From c1fe25f191f794da09e6b6d97ad601f4f5c7023e Mon Sep 17 00:00:00 2001 From: Alejandro Lopez Osornio Date: Thu, 4 Apr 2024 10:46:05 -0300 Subject: [PATCH] Completed migration to Angular and Angular Material 17 --- docs/3rdpartylicenses.txt | 4 +- docs/index.html | 4 +- docs/main.05356eae41755777.js | 1 + docs/main.2830fddb2a03d392.js | 1 - docs/styles.24aa9ff7052c5bfb.css | 1 - docs/styles.b0373a02df2a675f.css | 1 + package-lock.json | 1202 +++++++++++++++--------------- package.json | 6 +- 8 files changed, 610 insertions(+), 610 deletions(-) create mode 100644 docs/main.05356eae41755777.js delete mode 100644 docs/main.2830fddb2a03d392.js delete mode 100644 docs/styles.24aa9ff7052c5bfb.css create mode 100644 docs/styles.b0373a02df2a675f.css diff --git a/docs/3rdpartylicenses.txt b/docs/3rdpartylicenses.txt index 1976a0c..ccb6467 100644 --- a/docs/3rdpartylicenses.txt +++ b/docs/3rdpartylicenses.txt @@ -5,7 +5,7 @@ MIT MIT The MIT License -Copyright (c) 2023 Google LLC. +Copyright (c) 2024 Google LLC. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -39,7 +39,7 @@ MIT MIT The MIT License -Copyright (c) 2023 Google LLC. +Copyright (c) 2024 Google LLC. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/docs/index.html b/docs/index.html index ecbcabf..e1a1fcc 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.05356eae41755777.js b/docs/main.05356eae41755777.js new file mode 100644 index 0000000..999fa98 --- /dev/null +++ b/docs/main.05356eae41755777.js @@ -0,0 +1 @@ +(self.webpackChunksct_implementation_demonstrator=self.webpackChunksct_implementation_demonstrator||[]).push([[792],{169:(Vr,Yh,ho)=>{"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 ar=Symbol("SIGNAL");function jt(t){const n=hi;return hi=t,n}const ks={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 kv(t){if((!tg(t)||t.dirty)&&(t.dirty||t.lastCleanEpoch!==ji)){if(!t.producerMustRecompute(t)&&!QC(t))return t.dirty=!1,void(t.lastCleanEpoch=ji);t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=ji}}function eg(t){t.dirty=!0,function Jp(t){if(void 0===t.liveConsumerNode)return;const n=si;si=!0;try{for(const e of t.liveConsumerNode)e.dirty||eg(e)}finally{si=n}}(t),t.consumerMarkedDirty?.(t)}function Jh(t){return t&&(t.nextProducerIndex=0),jt(t)}function Vl(t,n){if(jt(n),t&&void 0!==t.producerNode&&void 0!==t.producerIndexOfThis&&void 0!==t.producerLastReadVersion){if(tg(t))for(let e=t.nextProducerIndex;et.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function QC(t){ef(t);for(let n=0;n0}function ef(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}let OO=null;const XC=()=>{},FZ={...ks,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{null!==t.schedule&&t.schedule(t.ref)},hasRun:!1,cleanupFn:XC};function On(t){return"function"==typeof t}function YC(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 ZC=YC(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 $t{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 ZC?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{BO(o)}catch(s){n=n??[],s instanceof ZC?n=[...n,...s.errors]:n.push(s)}}if(n)throw new ZC(n)}}add(n){var e;if(n&&n!==this)if(this.closed)BO(n);else{if(n instanceof $t){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 $t&&n._removeParent(this)}}$t.EMPTY=(()=>{const t=new $t;return t.closed=!0,t})();const LO=$t.EMPTY;function VO(t){return t instanceof $t||t&&"closed"in t&&On(t.remove)&&On(t.add)&&On(t.unsubscribe)}function BO(t){On(t)?t():t.unsubscribe()}const lu={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Tv={setTimeout(t,n,...e){const{delegate:i}=Tv;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=Tv;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function UO(t){Tv.setTimeout(()=>{const{onUnhandledError:n}=lu;if(!n)throw t;n(t)})}function Sv(){}const OZ=JC("C",void 0,void 0);function JC(t,n,e){return{kind:t,value:n,error:e}}let du=null;function Dv(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 eE extends $t{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,VO(n)&&n.add(this)):this.destination=HZ}static create(n,e,i){return new tf(n,e,i)}next(n){this.isStopped?nE(function LZ(t){return JC("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?nE(function NZ(t){return JC("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?nE(OZ,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 BZ=Function.prototype.bind;function tE(t,n){return BZ.call(t,n)}class UZ{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){Iv(i)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){Iv(i)}else Iv(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){Iv(e)}}}class tf extends eE{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&&tE(n.next,o),error:n.error&&tE(n.error,o),complete:n.complete&&tE(n.complete,o)}):r=n}this.destination=new UZ(r)}}function Iv(t){lu.useDeprecatedSynchronousErrorHandling?function VZ(t){lu.useDeprecatedSynchronousErrorHandling&&du&&(du.errorThrown=!0,du.error=t)}(t):UO(t)}function nE(t,n){const{onStoppedNotification:e}=lu;e&&Tv.setTimeout(()=>e(t,n))}const HZ={closed:!0,next:Sv,error:function zZ(t){throw t},complete:Sv},iE="function"==typeof Symbol&&Symbol.observable||"@@observable";function Bl(t){return t}function zO(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 GZ(t){return t&&t instanceof eE||function $Z(t){return t&&On(t.next)&&On(t.error)&&On(t.complete)}(t)&&VO(t)}(e)?e:new tf(e,i,r);return Dv(()=>{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=HO(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)}[iE](){return this}pipe(...e){return zO(e)(this)}toPromise(e){return new(e=HO(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return t.create=n=>new t(n),t})();function HO(t){var n;return null!==(n=t??lu.Promise)&&void 0!==n?n:Promise}const WZ=YC(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 jO(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new WZ}next(e){Dv(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){Dv(()=>{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(){Dv(()=>{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?LO:(this.currentObservers=null,o.push(e),new $t(()=>{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 jO(n,e),t})();class jO 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:LO}}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 $O(t){return On(t?.lift)}function Oi(t){return n=>{if($O(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 qZ(t,n,e,i,r)}class qZ extends eE{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 Oi((e,i)=>{let r=0;e.subscribe(ki(i,o=>{i.next(t.call(n,o,r++))}))})}const GO="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 rE(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 QZ(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function yr(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(yr).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 oE(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const KZ=Kn({__forward_ref__:Kn});function fn(t){return t.__forward_ref__=fn,t.toString=function(){return yr(this())},t}function At(t){return Mv(t)?t():t}function Mv(t){return"function"==typeof t&&t.hasOwnProperty(KZ)&&t.__forward_ref__===fn}function we(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function kt(t){return{providers:t.providers||[],imports:t.imports||[]}}function Rv(t){return KO(t,Fv)||KO(t,XO)}function KO(t,n){return t.hasOwnProperty(n)?t[n]:null}function Pv(t){return t&&(t.hasOwnProperty(sE)||t.hasOwnProperty(tJ))?t[sE]:null}const Fv=Kn({\u0275prov:Kn}),sE=Kn({\u0275inj:Kn}),XO=Kn({ngInjectableDef:Kn}),tJ=Kn({ngInjectorDef:Kn});class ee{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 uE(t){return t&&!!t.\u0275providers}const ng=Kn({\u0275cmp:Kn}),hE=Kn({\u0275dir:Kn}),fE=Kn({\u0275pipe:Kn}),ZO=Kn({\u0275mod:Kn}),Bc=Kn({\u0275fac:Kn}),ig=Kn({__NG_ELEMENT_ID__:Kn}),JO=Kn({__NG_ENV_ID__:Kn});function Lt(t){return"string"==typeof t?t:null==t?"":String(t)}function mE(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 pE;function eN(){return pE}function os(t){const n=pE;return pE=t,n}function tN(t,n,e){const i=Rv(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 mE()}const rg={},gE="__NG_DI_FLAG__",Ov="ngTempTokenPath",aJ=/\n/gm,nN="__source";let lf;function zl(t){const n=lf;return lf=t,n}function dJ(t,n=mn.Default){if(void 0===lf)throw new le(-203,!1);return null===lf?tN(t,void 0,n):lf.get(t,n&mn.Optional?null:void 0,n)}function Y(t,n=mn.Default){return(eN()||dJ)(At(t),n)}function fe(t,n=mn.Default){return Y(t,Nv(n))}function Nv(t){return typeof t>"u"||"number"==typeof t?t:(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function _E(t){const n=[];for(let e=0;eArray.isArray(e)?uf(e,n):n(e))}function rN(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Lv(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function Ts(t,n,e){let i=hf(t,n);return i>=0?t[1|i]=e:(i=~i,function oN(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 vE(t,n){const e=hf(t,n);if(e>=0)return t[1|e]}function hf(t,n){return function sN(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(ba(i))return!1;s=!0}}}}else{if(!s&&!ba(i)&&!ba(c))return!1;if(s&&ba(c))continue;s=!1,i=c|1&i}}return ba(i)||s}function ba(t){return!(1&t)}function wJ(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&&!ba(s)&&(n+=fN(o,r),r=""),i=s,o=o||!ba(i);e++}return""!==r&&(n+=fN(o,r)),n}function $e(t){return Vc(()=>{const n=pN(t),e={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Uv.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||_a.Emulated,styles:t.styles||An,_:null,schemas:t.schemas||null,tView:null,id:""};gN(e);const i=t.dependencies;return e.directiveDefs=zv(i,!1),e.pipeDefs=zv(i,!0),e.id=function PJ(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 AJ(t){return an(t)||xr(t)}function MJ(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 mN(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=pN(t);return gN(n),n})}function fo(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 an(t){return t[ng]||null}function xr(t){return t[hE]||null}function Zr(t){return t[fE]||null}function mo(t,n){const e=t[ZO]||null;if(!e&&!0===n)throw new Error(`Type ${yr(t)} does not have '\u0275mod' property.`);return e}function pN(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:mN(t.inputs,n),outputs:mN(t.outputs),debugInfo:null}}function gN(t){t.features?.forEach(n=>n(t))}function zv(t,n){if(!t)return null;const e=n?Zr:AJ;return()=>("function"==typeof t?t():t).map(i=>e(i)).filter(MJ)}function FJ(...t){return{\u0275providers:kE(0,t),\u0275fromNgModule:!0}}function kE(t,...n){const e=[],i=new Set;let r;const o=s=>{e.push(s)};return uf(n,s=>{const a=s;Hv(a,o,[],i)&&(r||=[],r.push(a))}),void 0!==r&&_N(r,o),e}function _N(t,n){for(let e=0;e{n(o,i)})}}function Hv(t,n,e,i){if(!(t=At(t)))return!1;let r=null,o=Pv(t);const s=!o&&an(t);if(o||s){if(s&&!s.standalone)return!1;r=t}else{const c=t.ngModule;if(o=Pv(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)Hv(l,n,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let l;i.add(r);try{uf(o.imports,d=>{Hv(d,n,e,i)&&(l||=[],l.push(d))})}finally{}void 0!==l&&_N(l,n)}if(!a){const l=uu(r)||(()=>new r);n({provide:r,useFactory:l,deps:An},r),n({provide:yE,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;CE(c,d=>{n(d,l)})}}}return r!==t&&void 0!==t.providers}function CE(t,n){for(let e of t)uE(e)&&(e=e.\u0275providers),Array.isArray(e)?CE(e,n):n(e)}const OJ=Kn({provide:String,useValue:Kn});function EE(t){return null!==t&&"object"==typeof t&&OJ in t}function fu(t){return"function"==typeof t}const TE=new ee(""),jv={},LJ={};let SE;function $v(){return void 0===SE&&(SE=new Bv),SE}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,IE(n,s=>this.processProvider(s)),this.records.set(aN,mf(void 0,this)),r.has("environment")&&this.records.set(as,mf(void 0,this));const o=this.records.get(TE);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(yE,An,mn.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const n=jt(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(),jt(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=rg,i=mn.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(JO))return n[JO](this);i=Nv(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 HJ(t){return"function"==typeof t||"object"==typeof t&&t instanceof ee}(n)&&Rv(n);c=l&&this.injectableDefInScope(l)?mf(DE(n),jv):null,this.records.set(n,c)}if(null!=c)return this.hydrate(n,c)}return(i&mn.Self?$v():this.parent).get(n,e=i&mn.Optional&&e===rg?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[Ov]=a[Ov]||[]).unshift(yr(n)),o)throw a;return function hJ(t,n,e,i){const r=t[Ov];throw n[nN]&&r.unshift(n[nN]),t.message=function fJ(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let r=yr(n);if(Array.isArray(n))r=n.map(yr).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):yr(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(aJ,"\n ")}`}("\n"+t.message,r,e,i),t.ngTokenPath=r,t[Ov]=null,t}(a,n,"R3InjectorError",this.source)}throw a}finally{os(s),zl(o)}}resolveInjectorInitializers(){const n=jt(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),jt(n)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(yr(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 BJ(t){return EE(t)?mf(void 0,t.useValue):mf(yN(t),jv)}(n);if(!fu(n)&&!0===n.multi){let r=this.records.get(e);r||(r=mf(void 0,jv,!0),r.factory=()=>_E(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e){const i=jt(null);try{return e.value===jv&&(e.value=LJ,e.value=e.factory()),"object"==typeof e.value&&e.value&&function zJ(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{jt(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 DE(t){const n=Rv(t),e=null!==n?n.factory:uu(t);if(null!==e)return e;if(t instanceof ee)throw new le(204,!1);if(t instanceof Function)return function VJ(t){if(t.length>0)throw new le(204,!1);const e=function eJ(t){return t&&(t[Fv]||t[XO])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new le(204,!1)}function yN(t,n,e){let i;if(fu(t)){const r=At(t);return uu(r)||DE(r)}if(EE(t))i=()=>At(t.useValue);else if(function vN(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(..._E(t.deps||[]));else if(function bN(t){return!(!t||!t.useExisting)}(t))i=()=>Y(At(t.useExisting));else{const r=At(t&&(t.useClass||t.provide));if(!function UJ(t){return!!t.deps}(t))return uu(r)||DE(r);i=()=>new r(..._E(t.deps))}return i}function mf(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function IE(t,n){for(const e of t)Array.isArray(e)?IE(e,n):e&&uE(e)?IE(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 xN(){return void 0!==eN()||null!=function lJ(){return lf}()}function Gv(t){if(!xN())throw new le(-203,!1)}const Si=0,Le=1,bt=2,$i=3,va=4,po=5,Ss=6,gf=7,fi=8,Jr=9,ya=10,Rt=11,lg=12,kN=13,_f=14,Ni=15,dg=16,bf=17,Uc=18,ug=19,CN=20,$l=21,qv=22,mu=23,Vt=25,ME=1,Wa=7,vf=9,Gi=10;var RE=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(RE||{});function go(t){return Array.isArray(t)&&"object"==typeof t[ME]}function _o(t){return Array.isArray(t)&&!0===t[ME]}function PE(t){return!!(4&t.flags)}function pu(t){return t.componentOffset>-1}function Kv(t){return!(1&~t.flags)}function xa(t){return!!t.template}function FE(t){return!!(512&t[bt])}class tee{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function DN(t,n,e,i){null!==n?n.applyValueToInputSignal(n,i):t[e]=i}function Bn(){return IN}function IN(t){return t.type.prototype.ngOnChanges&&(t.setInput=iee),nee}function nee(){const t=MN(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 iee(t,n,e,i,r){const o=this.declaredInputs[i],s=MN(t)||function ree(t,n){return t[AN]=n}(t,{previous:$a,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[o];a[o]=new tee(l&&l.currentValue,e,c===$a),DN(t,n,r,e)}Bn.ngInherit=!0;const AN="__ngSimpleChanges__";function MN(t){return t[AN]||null}const qa=function(t,n,e){},RN="svg";let FN=!1;function ai(t){for(;Array.isArray(t);)t=t[Si];return t}function fg(t,n){return ai(n[t])}function $o(t,n){return ai(n[t.index])}function mg(t,n){return t.data[n]}function yf(t,n){return t[n]}function Ds(t,n){const e=n[t];return go(e)?e:e[Si]}function BE(t){return!(128&~t[bt])}function Qa(t,n){return null==n?null:t[n]}function ON(t){t[bf]=0}function dee(t){1024&t[bt]||(t[bt]|=1024,BE(t)&&pg(t))}function UE(t){return!!(9216&t[bt]||t[mu]?.dirty)}function zE(t){t[ya].changeDetectionScheduler?.notify(1),UE(t)?pg(t):64&t[bt]&&(function see(){return FN}()?(t[bt]|=1024,pg(t)):t[ya].changeDetectionScheduler?.notify())}function pg(t){t[ya].changeDetectionScheduler?.notify();let n=gu(t);for(;null!==n&&!(8192&n[bt])&&(n[bt]|=8192,BE(n));)n=gu(n)}function Xv(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 _o(n)?n[$i]:n}const Pt={lFrame:GN(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function VN(){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=BN();for(;null!==t&&64===t.type;)t=t.parent;return t}function BN(){return Pt.lFrame.currentTNode}function Ka(t,n){const e=Pt.lFrame;e.currentTNode=t,e.isParent=n}function jE(){return Pt.lFrame.isParent}function $E(){Pt.lFrame.isParent=!1}function Go(){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 wa(){return Pt.lFrame.bindingIndex++}function Hc(t){const n=Pt.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function xee(t,n){const e=Pt.lFrame;e.bindingIndex=e.bindingRootIndex=t,GE(n)}function GE(t){Pt.lFrame.currentDirectiveIndex=t}function WE(t){const n=Pt.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}function qE(){return Pt.lFrame.currentQueryIndex}function Yv(t){Pt.lFrame.currentQueryIndex=t}function kee(t){const n=t[Le];return 2===n.type?n.declTNode:1===n.type?t[po]:null}function jN(t,n,e){if(e&mn.SkipSelf){let r=n,o=t;for(;!(r=r.parent,null!==r||e&mn.Host||(r=kee(o),null===r||(o=o[_f],10&r.type))););if(null===r)return!1;n=r,t=o}const i=Pt.lFrame=$N();return i.currentTNode=n,i.lView=t,!0}function QE(t){const n=$N(),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 $N(){const t=Pt.lFrame,n=null===t?null:t.child;return null===n?GN(t):n}function GN(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 WN(){const t=Pt.lFrame;return Pt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const qN=WN;function KE(){const t=WN();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 bo(){return Pt.lFrame.selectedIndex}function _u(t){Pt.lFrame.selectedIndex=t}function mi(){const t=Pt.lFrame;return mg(t.tView,t.selectedIndex)}function jc(){Pt.lFrame.currentNamespace=RN}function Zv(){!function Tee(){Pt.lFrame.currentNamespace=null}()}let KN=!0;function _g(){return KN}function Xa(t){KN=t}function Jv(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,YN(a,o)):YN(a,o)}const wf=-1;class bg{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function ZE(t){return t!==wf}function vg(t){return 32767&t}function yg(t,n){let e=function Pee(t){return t>>16}(t),i=n;for(;e>0;)i=i[_f],e--;return i}let JE=!0;function ny(t){const n=JE;return JE=t,n}const ZN=255,JN=5;let Fee=0;const Ya={};function iy(t,n){const e=e4(t,n);if(-1!==e)return e;const i=n[Le];i.firstCreatePass&&(t.injectorIndex=n.length,eT(i.data,t),eT(n,null),eT(i.blueprint,null));const r=ry(t,n),o=t.injectorIndex;if(ZE(r)){const s=vg(r),a=yg(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 eT(t,n){t.push(0,0,0,0,0,0,0,0,n)}function e4(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function ry(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=c4(r),null===i)return wf;if(e++,r=r[_f],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return wf}function tT(t,n,e){!function Oee(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(ig)&&(i=e[ig]),null==i&&(i=e[ig]=Fee++);const r=i&ZN;n.data[t+(r>>JN)]|=1<=0?n&ZN:Bee:n}(e);if("function"==typeof o){if(!jN(n,t,i))return i&mn.Host?t4(r,0,i):n4(n,e,i,r);try{let s;if(s=o(i),null!=s||i&mn.Optional)return s;mE()}finally{qN()}}else if("number"==typeof o){let s=null,a=e4(t,n),c=wf,l=i&mn.Host?n[Ni][po]:null;for((-1===a||i&mn.SkipSelf)&&(c=-1===a?ry(t,n):n[a+8],c!==wf&&a4(i,!1)?(s=n[Le],a=vg(c),n=yg(c,n)):a=-1);-1!==a;){const d=n[Le];if(s4(o,a,d.data)){const u=Lee(a,n,e,s,i,l);if(u!==Ya)return u}c=n[a+8],c!==wf&&a4(i,n[Le].data[a+8]===l)&&s4(o,a,n)?(s=d,a=vg(c),n=yg(c,n)):a=-1}}return r}function Lee(t,n,e,i,r,o){const s=n[Le],a=s.data[t+8],d=oy(a,s,e,null==i?pu(a)&&JE:i!=s&&!!(3&a.type),r&mn.Host&&o===a);return null!==d?bu(n,s,d,a):Ya}function oy(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&&xa(f)&&f.type===e)return c}return null}function bu(t,n,e,i){let r=t[e];const o=n.data;if(function Iee(t){return t instanceof bg}(r)){const s=r;s.resolving&&function rJ(t,n){throw n&&n.join(" > "),new le(-200,t)}(function Vn(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=ny(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?os(s.injectImpl):null;jN(t,i,mn.Default);try{r=t[e]=s.factory(void 0,o,t,i),n.firstCreatePass&&e>=i.directiveStart&&function See(t,n,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const s=IN(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),ny(a),s.resolving=!1,qN()}}return r}function s4(t,n,e){return!!(e[n+(t>>JN)]&1<{const n=t.prototype.constructor,e=n[Bc]||nT(n),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const o=r[Bc]||nT(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function nT(t){return Mv(t)?()=>{const n=nT(At(t));return n&&n()}:uu(t)}function c4(t){const n=t[Le],e=n.type;return 2===e?n.declTNode:1===e?t[po]:null}function Is(t){return function Nee(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=rg;static#t=this.NULL=new Bv;static create(e,i){if(Array.isArray(e))return f4({name:""},i,e,"");{const r=e.name??"";return f4({name:r},e.parent,e.providers,r)}}static#n=this.\u0275prov=we({token:t,providedIn:"any",factory:()=>Y(aN)});static#i=this.__NG_ELEMENT_ID__=-1}return t})();function rT(t){return t.ngOriginalError}class As{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&&rT(n);for(;e&&rT(e);)e=rT(e);return e||null}}const g4=new ee("",{providedIn:"root",factory:()=>fe(As).handleError.bind(void 0)});let Ef=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=Kee;static#t=this.__NG_ENV_ID__=e=>e}return t})();class Qee extends Ef{constructor(n){super(),this._lView=n}onDestroy(n){return Xv(this._lView,n),()=>function HE(t,n){if(null===t[$l])return;const e=t[$l].indexOf(n);-1!==e&&t[$l].splice(e,1)}(this._lView,n)}}function Kee(){return new Qee(be())}function Xee(){return Tf(Xn(),be())}function Tf(t,n){return new Ge($o(t,n))}let Ge=(()=>{class t{constructor(e){this.nativeElement=e}static#e=this.__NG_ELEMENT_ID__=Xee}return t})();function b4(t){return t instanceof Ge?t.nativeElement:t}function oT(t){return n=>{setTimeout(t,void 0,n)}}const Te=class Yee extends Me{constructor(n=!1){super(),this.destroyRef=void 0,this.__isAsync=n,xN()&&(this.destroyRef=fe(Ef,{optional:!0})??void 0)}emit(n){const e=jt(null);try{super.next(n)}finally{jt(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=oT(o),r&&(r=oT(r)),s&&(s=oT(s)));const a=super.subscribe({next:r,error:o,complete:s});return n instanceof $t&&n.add(a),a}};function Zee(){return this._results[Symbol.iterator]()}class Gl{static#e=Symbol.iterator;get changes(){return this._changes??=new Te}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]=Zee)}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 _J(t,n,e){if(t.length!==n.length)return!1;for(let i=0;iyte}),yte="ng",V4=new ee(""),$c=new ee("",{providedIn:"platform",factory:()=>"unknown"}),pi=new ee(""),dT=new ee("",{providedIn:"root",factory:()=>Wl().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let B4=()=>null;function bT(t,n,e=!1){return B4(t,n,e)}const $4=new ee("",{providedIn:"root",factory:()=>!1});let gy,_y;function If(t){return function wT(){if(void 0===gy&&(gy=null,$n.trustedTypes))try{gy=$n.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return gy}()?.createHTML(t)||t}function W4(t){return function kT(){if(void 0===_y&&(_y=null,$n.trustedTypes))try{_y=$n.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return _y}()?.createHTML(t)||t}class vu{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${GO})`}}class Fte extends vu{getTypeName(){return"HTML"}}class Ote extends vu{getTypeName(){return"Style"}}class Nte extends vu{getTypeName(){return"Script"}}class Lte extends vu{getTypeName(){return"URL"}}class Vte extends vu{getTypeName(){return"ResourceURL"}}function Ms(t){return t instanceof vu?t.changingThisBreaksApplicationSecurity:t}function Za(t,n){const e=function Bte(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 ${GO})`)}return e===n}class Gte{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 Wte{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 Qte=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function by(t){return(t=String(t)).match(Qte)?t:"unsafe:"+t}function Gc(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function Dg(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const X4=Gc("area,br,col,hr,img,wbr"),Y4=Gc("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Z4=Gc("rp,rt"),CT=Dg(X4,Dg(Y4,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")),Dg(Z4,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")),Dg(Z4,Y4)),ET=Gc("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),J4=Dg(ET,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")),Kte=Gc("script,style,template");class Xte{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=Jte(e);else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=Zte(e);if(o){e=o;break}e=r.pop()}return this.buf.join("")}startElement(n){const e=eL(n).toLowerCase();if(!CT.hasOwnProperty(e))return this.sanitizedSomething=!0,!Kte.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let r=0;r"),!0}endElement(n){const e=eL(n).toLowerCase();CT.hasOwnProperty(e)&&!X4.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(nL(n))}}function Zte(t){const n=t.nextSibling;if(n&&t!==n.previousSibling)throw tL(n);return n}function Jte(t){const n=t.firstChild;if(n&&function Yte(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(t,n))throw tL(n);return n}function eL(t){const n=t.nodeName;return"string"==typeof n?n:"FORM"}function tL(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}const ene=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,tne=/([^\#-~ |!])/g;function nL(t){return t.replace(/&/g,"&").replace(ene,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(tne,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let vy;function iL(t,n){let e=null;try{vy=vy||function K4(t){const n=new Wte(t);return function qte(){try{return!!(new window.DOMParser).parseFromString(If(""),"text/html")}catch{return!1}}()?new Gte(n):n}(t);let i=n?String(n):"";e=vy.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=vy.getInertBodyElement(i)}while(i!==o);return If((new Xte).sanitizeChildren(TT(e)||e))}finally{if(e){const i=TT(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function TT(t){return"content"in t&&function nne(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var eo=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}(eo||{});function yu(t){const n=Ig();return n?W4(n.sanitize(eo.HTML,t)||""):Za(t,"HTML")?W4(Ms(t)):iL(Wl(),Lt(t))}function yy(t){const n=Ig();return n?n.sanitize(eo.URL,t)||"":Za(t,"URL")?Ms(t):by(Lt(t))}function Ig(){const t=be();return t&&t[ya].sanitizer}const cne=/^>|^->||--!>|)/g,dne="\u200b$1\u200b";function Rs(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 AT;function MT(t,n){return AT(t,n)}function Mf(t,n,e,i,r){if(null!=i){let o,s=!1;_o(i)?o=i:go(i)&&(s=!0,i=i[Si]);const a=ai(i);0===t&&null!==e?null==r?_L(n,e,a):xu(n,e,a,r||null,!0):1===t&&null!==e?xu(n,e,a,r||null,!0):2===t?function Rg(t,n,e){const i=Ey(t,n);i&&function Ine(t,n,e,i){t.removeChild(n,e,i)}(t,i,n,e)}(n,a,s):3===t&&n.destroyNode(a),null!=o&&function Rne(t,n,e,i,r){const o=e[Wa];o!==ai(e)&&Mf(n,t,i,o,r);for(let a=Gi;an.replace(lne,dne))}(n))}function ky(t,n,e){return t.createElement(n,e)}function mL(t,n){n[ya].changeDetectionScheduler?.notify(1),Sy(t,n,n[Rt],2,null,null)}function pL(t,n){const e=t[vf],i=e.indexOf(n);e.splice(i,1)}function Ag(t,n){if(t.length<=Gi)return;const e=Gi+n,i=t[e];if(i){const r=i[dg];null!==r&&r!==t&&pL(r,i),n>0&&(t[e-1][va]=i[va]);const o=Lv(t,Gi+n);!function wne(t,n){mL(t,n),n[Si]=null,n[po]=null}(i[Le],i);const s=o[Uc];null!==s&&s.detachView(o[Le]),i[$i]=null,i[va]=null,i[bt]&=-129}return i}function Cy(t,n){if(!(256&n[bt])){const e=n[Rt];e.destroyNode&&Sy(t,n,e,3,null,null),function Cne(t){let n=t[lg];if(!n)return FT(t[Le],t);for(;n;){let e=null;if(go(n))e=n[lg];else{const i=n[Gi];i&&(e=i)}if(!e){for(;n&&!n[va]&&n!==t;)go(n)&&FT(n[Le],n),n=n[$i];null===n&&(n=t),go(n)&&FT(n[Le],n),e=n&&n[va]}n=e}}(n)}}function FT(t,n){if(256&n[bt])return;const e=jt(null);try{n[bt]&=-129,n[bt]|=256,n[mu]&&RO(n[mu]),function Dne(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===_a.None||o===_a.Emulated)return null}return $o(i,e)}}(t,n.parent,e)}function xu(t,n,e,i,r){t.insertBefore(n,e,i,r)}function _L(t,n,e){t.appendChild(n,e)}function bL(t,n,e,i,r){null!==i?xu(t,n,e,i,r):_L(t,n,e)}function Ey(t,n){return t.parentNode(n)}function vL(t,n,e){return xL(t,n,e)}let NT,xL=function yL(t,n,e){return 40&t.type?$o(t,e):null};function Ty(t,n,e,i){const r=OT(t,i,n),o=n[Rt],a=vL(i.parent||n[po],i,n);if(null!=r)if(Array.isArray(e))for(let c=0;cVt&&DL(t,n,Vt,!1),qa(s?2:0,r),e(i,r)}finally{_u(o),qa(s?3:1,r)}}function UT(t,n,e){if(PE(n)){const i=jt(null);try{const o=n.directiveEnd;for(let s=n.directiveStart;snull;function PL(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?FL(i,e,l,a,c):FL(i,e,l,a)}return i}function FL(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=$o(n,e);let d,l=n.inputs;!a&&null!=l&&(d=l[i])?(QT(t,e,d,i,r),pu(n)&&function Gne(t,n){const e=Ds(n,t);16&e[bt]||(e[bt]|=64)}(e,n.index)):3&n.type&&(i=function $ne(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 $T(t,n,e,i){if(VN()){const r=null===i?null:{"":-1},o=function Yne(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,Pg(t,e,r.hostVars,Ut),r)}function Ja(t,n,e,i,r,o){const s=$o(t,n);!function WT(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 iie(t,n,e,i,r,o){const s=o[n];if(null!==s)for(let a=0;a0&&(e[r-1][va]=n),i{pg(t.lView)},consumerOnSignalRead(){this.lView[mu]=this}},GL=100;function Ry(t,n=!0,e=0){const i=t[ya],r=i.rendererFactory;r.begin?.();try{!function hie(t,n){YT(t,n);let e=0;for(;UE(t);){if(e===GL)throw new le(103,!1);e++,YT(t,1)}}(t,e)}catch(s){throw n&&My(t,s),s}finally{r.end?.(),i.inlineEffectRunner?.flush()}}function fie(t,n,e,i){const r=n[bt];if(!(256&~r))return;n[ya].inlineEffectRunner?.flush(),QE(n);let s=null,a=null;(function mie(t){return 2!==t.type})(t)&&(a=function cie(t){return t[mu]??function lie(t){const n=$L.pop()??Object.create(uie);return n.lView=t,n}(t)}(n),s=Jh(a));try{ON(n),function zN(t){return Pt.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&AL(t,n,e,2,i);const c=!(3&~r);if(c){const u=t.preOrderCheckHooks;null!==u&&ey(n,u,null)}else{const u=t.preOrderHooks;null!==u&&ty(n,u,0,null),XE(n,0)}if(function pie(t){for(let n=D4(t);null!==n;n=I4(n)){if(!(n[bt]&RE.HasTransplantedViews))continue;const e=n[vf];for(let i=0;i-1&&(Ag(n,i),Lv(e,i))}this._attachedToViewContainer=!1}Cy(this._lView[Le],this._lView)}onDestroy(n){Xv(this._lView,n)}markForCheck(){Lg(this._cdRefInjectingView||this._lView)}detach(){this._lView[bt]&=-129}reattach(){zE(this._lView),this._lView[bt]|=128}detectChanges(){this._lView[bt]|=1024,Ry(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new le(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,mL(this._lView[Le],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new le(902,!1);this._appRef=n,zE(this._lView)}}let Gn=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=vie}return t})();const _ie=Gn,bie=class extends _ie{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=Fg(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:e,dehydratedView:i});return new Vg(r)}};function vie(){return Py(Xn(),be())}function Py(t,n){return 4&t.type?new bie(n,t,Tf(t,n)):null}let e3=()=>null;function Ff(t,n){return e3(t,n)}class Vy{}class jie{}class t3{}class Gie{resolveComponentFactory(n){throw function $ie(t){const n=Error(`No component factory found for ${yr(t)}.`);return n.ngComponent=t,n}(n)}}let wu=(()=>{class t{static#e=this.NULL=new Gie}return t})();class iS{}let qc=(()=>{class t{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function Wie(){const t=be(),e=Ds(Xn().index,t);return(go(e)?e:t)[Rt]}()}return t})(),qie=(()=>{class t{static#e=this.\u0275prov=we({token:t,providedIn:"root",factory:()=>null})}return t})();const rS={},r3=new Set;function ec(t){r3.has(t)||(r3.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function o3(...t){}class ze{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Te(!1),this.onMicrotaskEmpty=new Te(!1),this.onStable=new Te(!1),this.onError=new Te(!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 Qie(){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 Yie(t){const n=()=>{!function Xie(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call($n,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,sS(t),t.isCheckStableRunning=!0,oS(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),sS(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{if(function Zie(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 s3(t),e.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&n(),a3(t)}},onInvoke:(e,i,r,o,s,a,c)=>{try{return s3(t),e.invoke(r,o,s,a,c)}finally{t.shouldCoalesceRunChangeDetection&&n(),a3(t)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,sS(t),oS(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(!ze.isInAngularZone())throw new le(909,!1)}static assertNotInAngularZone(){if(ze.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,Kie,o3,o3);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 Kie={};function oS(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 sS(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function s3(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function a3(t){t._nesting--,oS(t)}class c3{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Te,this.onMicrotaskEmpty=new Te,this.onStable=new Te,this.onError=new Te}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 l3={destroy(){}};function d3(t,n){!n&&Gv();const e=n?.injector??fe(Di);if(!function ql(t){return"browser"===(t??fe(Di)).get($c)}(e))return l3;ec("NgAfterNextRender");const i=e.get(jg),r=i.handler??=new h3,o=n?.phase??ku.MixedReadWrite,s=()=>{r.unregister(c),a()},a=e.get(Ef).onDestroy(s),c=Ga(e,()=>new u3(o,()=>{s(),t()}));return r.register(c),{destroy:s}}class u3{constructor(n,e){this.phase=n,this.callbackFn=e,this.zone=fe(ze),this.errorHandler=fe(As,{optional:!0}),fe(Vy,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(n){this.errorHandler?.handleError(n)}}}class h3{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 jg=(()=>{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 Uy(t,n,e){let i=e?t.styles:null,r=e?t.classes:null,o=0;if(null!==n)for(let s=0;s0&&TL(t,e,o.join(" "))}}(f,A,g,i),void 0!==e&&function dre(t,n,e){const i=t.projection=[];for(let r=0;r{class t{static#e=this.__NG_ELEMENT_ID__=hre}return t})();function hre(){return v3(Xn(),be())}const fre=di,_3=class extends fre{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Tf(this._hostTNode,this._hostLView)}get injector(){return new kr(this._hostTNode,this._hostLView)}get parentInjector(){const n=ry(this._hostTNode,this._hostLView);if(ZE(n)){const e=yg(n,this._hostLView),i=vg(n);return new kr(e[Le].data[i+8],e)}return new kr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=b3(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 cg(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 Wg(an(n)),l=i||this.parentInjector;if(!o&&null==c.ngModule){const g=(s?l:this.parentInjector).get(as,null);g&&(o=g)}const d=an(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 lee(t){return _o(t[$i])}(r)){const a=this.indexOf(n);if(-1!==a)this.detach(a);else{const c=r[$i],l=new _3(c,c[po],c[$i]);l.detach(l.indexOf(n))}}const o=this._adjustIndex(e),s=this._lContainer;return Og(s,r,o,i),n.attachToViewContainerRef(),rN(dS(s),o,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=b3(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=Ag(this._lContainer,e);i&&(Lv(dS(this._lContainer),e),Cy(i[Le],i))}detach(n){const e=this._adjustIndex(n,-1),i=Ag(this._lContainer,e);return i&&null!=Lv(dS(this._lContainer),e)?new Vg(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function b3(t){return t[8]}function dS(t){return t[8]||(t[8]=[])}function v3(t,n){let e;const i=n[t.index];return _o(i)?e=i:(e=LL(i,n,null,t),n[t.index]=e,Ay(n,e)),y3(e,n,t,i),new _3(e,t,n)}let y3=function w3(t,n,e,i){if(t[Wa])return;let r;r=8&e.type?ai(i):function mre(t,n){const e=t[Rt],i=e.createComment(""),r=$o(n,t);return xu(e,Ey(e,r),i,function Ane(t,n){return t.nextSibling(n)}(e,r),!1),i}(n,e),t[Wa]=r},uS=()=>!1;class hS{constructor(n){this.queryList=n,this.matches=null}clone(){return new hS(this.queryList)}setDirty(){this.queryList.setDirty()}}class fS{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 mS{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=sg(r.hostAttrs,e=sg(e,r.hostAttrs))}}(i)}function Fre(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 $y(t){return t===$a?{}:t===An?[]:t}function Nre(t,n){const e=t.viewQuery;t.viewQuery=e?(i,r)=>{n(i,r),e(i,r)}:n}function Lre(t,n){const e=t.contentQueries;t.contentQueries=e?(i,r,o)=>{n(i,r,o),e(i,r,o)}:n}function Vre(t,n){const e=t.hostBindings;t.hostBindings=e?(i,r)=>{n(i,r),e(i,r)}:n}function Zt(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 W3{}class yS extends Cu{constructor(n,e,i){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new p3(this);const r=mo(n);this._bootstrapComponents=Rs(r.bootstrap),this._r3Injector=m4(n,e,[{provide:Cu,useValue:this},{provide:wu,useValue:this.componentFactoryResolver},...i],yr(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 xS extends W3{constructor(n){super(),this.moduleType=n}create(n){return new yS(this.moduleType,n,[])}}class q3 extends Cu{constructor(n){super(),this.componentFactoryResolver=new p3(this),this.instance=null;const e=new ff([...n.providers,{provide:Cu,useValue:this},{provide:wu,useValue:this.componentFactoryResolver}],n.parent||$v(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Gy(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 wS(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 Eu(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 Yre(t,n,e,i,r,o,s,a,c){const l=n.consts,d=Rf(n,t,4,s||null,Qa(l,a));$T(n,e,d,Qa(l,c)),Jv(n,d);const u=d.tView=jT(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=Q3(l,c,u,t);_g()&&Ty(l,c,h,u),vo(h,c);const f=LL(h,c,h,u);return c[d]=f,Ay(c,f),function x3(t,n,e){return uS(t,n,e)}(f,u,c),Kv(u)&&zT(l,c,u),null!=s&&HT(c,u,a),q}let Q3=function K3(t,n,e,i){return Xa(!0),n[Rt].createComment("")};function _t(t,n,e,i){const r=be();return Wi(r,wa(),n)&&(pn(),Ja(mi(),r,t,n,e,i)),_t}function jf(t,n,e,i){return Wi(t,wa(),e)?n+Lt(e)+i:Ut}function Gf(t,n,e,i,r,o,s,a){const l=function Qy(t,n,e,i,r){const o=Eu(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 ex(t,n){return t<<17|n<<2}function Jl(t){return t>>17&32767}function RS(t){return 2|t}function Su(t){return(131068&t)>>2}function PS(t,n){return-131069&t|n<<2}function FS(t){return 1|t}function TV(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];Noe(t[s],n)&&(a=!0,t[s+1]=i?FS(l):RS(l)),s=i?Jl(l):Su(l)}a&&(t[e+1]=i?RS(r):FS(r))}function Noe(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 Cr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function SV(t){return t.substring(Cr.key,Cr.keyEnd)}function DV(t,n){const e=Cr.textEnd;return e===n?-1:(n=Cr.keyEnd=function Uoe(t,n,e){for(;n32;)n++;return n}(t,Cr.key=n,e),Yf(t,n,e))}function Yf(t,n,e){for(;n=0;e=DV(n,e))Ts(t,SV(n),!0)}function ka(t,n,e,i){const r=be(),o=pn(),s=Hc(2);o.firstUpdatePass&&FV(o,t,s,i),n!==Ut&&Wi(r,s,n)&&NV(o,o.data[bo()],r,r[Rt],t,r[s+1]=function Yoe(t,n){return null==t||""===t||("string"==typeof n?t+=n:"object"==typeof t&&(t=yr(Ms(t)))),t}(n,e),i,s)}function Ca(t,n,e,i){const r=pn(),o=Hc(2);r.firstUpdatePass&&FV(r,null,o,i);const s=be();if(e!==Ut&&Wi(s,o,e)){const a=r.data[bo()];if(VV(a,i)&&!PV(r,o)){let c=i?a.classesWithoutHost:a.stylesWithoutHost;null!==c&&(e=oE(c,e||"")),OS(r,a,s,e,i)}else!function Xoe(t,n,e,i,r,o,s,a){r===Ut&&(r=An);let c=0,l=0,d=0=t.expandoStartIndex}function FV(t,n,e,i){const r=t.data;if(null===r[e+1]){const o=r[bo()],s=PV(t,e);VV(o,i)&&null===n&&!s&&(n=!1),n=function $oe(t,n,e,i){const r=WE(t);let o=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(e=Jg(e=NS(null,t,n,e,i),n.attrs,i),o=null);else{const s=n.directiveStylingLast;if(-1===s||t[s]!==r)if(e=NS(r,t,n,e,i),null===o){let c=function Goe(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=NS(null,t,n,c[1],i),c=Jg(c,n.attrs,i),function Woe(t,n,e,i){t[Jl(e?n.classBindings:n.styleBindings)]=i}(t,n,i,c))}else o=function qoe(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]=ex(h,a),0!==h&&(t[h+1]=PS(t[h+1],i)),t[a+1]=function Roe(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=ex(a,0),0!==a&&(t[a+1]=PS(t[a+1],i)),a=i;else t[i+1]=ex(c,0),0===a?a=i:t[c+1]=PS(t[c+1],i),c=i;l&&(t[i+1]=RS(t[i+1])),TV(t,d,i,!0),TV(t,d,i,!1),function Ooe(t,n,e,i,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof n&&hf(o,n)>=0&&(e[i+1]=FS(e[i+1]))}(n,d,t,i,o),s=ex(a,c),o?n.classBindings=s:n.styleBindings=s}(r,o,n,e,s,i)}}function NS(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?vE(h,i):d===i?h:void 0;if(l&&!tx(f)&&(f=vE(c,i)),tx(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=vE(c,i))}return a}function tx(t){return void 0!==t}function VV(t,n){return!!(t.flags&(n?8:16))}class ase{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 LS(t,n,e,i,r){return t===e&&Object.is(n,i)?1:Object.is(r(t,n),r(e,i))?-1:0}function VS(t,n,e,i){return!(void 0===n||!n.has(i)||(t.attach(e,n.get(i)),n.delete(i),0))}function UV(t,n,e,i,r){if(VS(t,n,i,e(i,r)))t.updateValue(i,r);else{const o=t.create(i,r);t.attach(i,o)}}function zV(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 HV{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 gn(t,n,e){ec("NgControlFlow");const i=be(),r=wa(),o=HS(i,Vt+t);if(Wi(i,r,n)){const a=jt(null);try{if(XT(o,0),-1!==n){const c=jS(i[Le],Vt+n),l=Ff(o,c.tView.ssrId);Og(o,Fg(i,c,e,{dehydratedView:l}),0,Pf(c,l))}}finally{jt(a)}}else{const a=HL(o,0);void 0!==a&&(a[fi]=e)}}class lse{constructor(n,e,i){this.lContainer=n,this.$implicit=e,this.$index=i}get $count(){return this.lContainer.length-Gi}}function BS(t,n){return n}class use{constructor(n,e,i){this.hasEmptyBlock=n,this.trackByFn=e,this.liveCollection=i}}function US(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[Ni][fi]):s,p=new use(f,g);m[Vt+t]=p,q(t+1,n,e,i,r,o),f&&q(t+2,c,l,d,u,h)}class hse extends ase{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[Ss];this.needsIndexUpdate||=n!==this.length,Og(this.lContainer,e,n,Pf(this.templateTNode,i))}detach(n){return this.needsIndexUpdate||=n!==this.length-1,function fse(t,n){return Ag(t,n)}(this.lContainer,n)}create(n,e){const i=Ff(this.lContainer,this.templateTNode.tView.ssrId);return Fg(this.hostLView,this.templateTNode,new lse(this.lContainer,e,n),{dehydratedView:i})}destroy(n){Cy(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=wa(),c=0===s.length;if(Wi(i,a,c)){const l=e+2,d=HS(i,l);if(c){const u=jS(r,l),h=Ff(d,u.tView.ssrId);Og(d,Fg(i,u,void 0,{dehydratedView:h}),0,Pf(u,h))}else XT(d,0)}}}finally{jt(n)}}function HS(t,n){return t[n]}function jS(t,n){return mg(t,n)}function _(t,n,e,i){const r=be(),o=pn(),s=Vt+t,a=r[Rt],c=o.firstCreatePass?function pse(t,n,e,i,r,o){const s=n.consts,c=Rf(n,t,2,i,Qa(s,r));return $T(n,e,c,Qa(s,o)),null!==c.attrs&&Uy(c,c.attrs,!1),null!==c.mergedAttrs&&Uy(c,c.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,c),c}(s,o,r,n,e,i):o.data[s],l=jV(o,r,c,a,n,t);r[s]=l;const d=Kv(c);return Ka(c,!0),SL(a,l,c),!function Kg(t){return!(32&~t.flags)}(c)&&_g()&&Ty(o,r,l,c),0===function uee(){return Pt.lFrame.elementDepthCount}()&&vo(l,r),function hee(){Pt.lFrame.elementDepthCount++}(),d&&(zT(o,r,c),UT(o,c,r)),null!==i&&HT(r,c),_}function v(){let t=Xn();jE()?$E():(t=t.parent,Ka(t,!1));const n=t;(function mee(t){return Pt.skipHydrationRootTNode===t})(n)&&function bee(){Pt.skipHydrationRootTNode=null}(),function fee(){Pt.lFrame.elementDepthCount--}();const e=pn();return e.firstCreatePass&&(Jv(e,t),PE(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function Mee(t){return!!(8&t.flags)}(n)&&OS(e,n,be(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function Ree(t){return!!(16&t.flags)}(n)&&OS(e,n,be(),n.stylesWithoutHost,!1),v}function xe(t,n,e,i){return _(t,n,e,i),v(),xe}let jV=(t,n,e,i,r,o)=>(Xa(!0),ky(i,r,function QN(){return Pt.lFrame.currentNamespace}()));function Gt(t,n,e){const i=be(),r=pn(),o=t+Vt,s=r.firstCreatePass?function bse(t,n,e,i,r){const o=n.consts,s=Qa(o,i),a=Rf(n,t,8,"ng-container",s);return null!==s&&Uy(a,s,!0),$T(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=$V(r,i,s,t);return i[o]=a,_g()&&Ty(r,i,a,s),vo(a,i),Kv(s)&&(zT(r,i,s),UT(r,s,i)),null!=e&&HT(i,s),Gt}function Wt(){let t=Xn();const n=pn();return jE()?$E():(t=t.parent,Ka(t,!1)),n.firstCreatePass&&(Jv(n,t),PE(t)&&n.queries.elementEnd(t)),Wt}function Er(t,n,e){return Gt(t,n,e),Wt(),Er}let $V=(t,n,e,i)=>(Xa(!0),PT(n[Rt],""));function Se(){return be()}function rc(t,n,e){const i=be();return Wi(i,wa(),n)&&ls(pn(),mi(),i,t,n,i[Rt],e,!0),rc}function nx(t,n,e){const i=be();if(Wi(i,wa(),n)){const o=pn(),s=mi();ls(o,s,i,t,n,zL(WE(o.data),s,i),e,!0)}return nx}const Du=void 0;var wse=["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 xse(t){const e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let Zf={};function Wo(t){const n=function kse(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=WV(n);if(e)return e;const i=n.split("-")[0];if(e=WV(i),e)return e;if("en"===i)return wse;throw new le(701,!1)}function WV(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 H(t,n,e,i){const r=be(),o=pn(),s=Xn();return WS(o,r,r[Rt],s,t,n,i),H}function ax(t,n){const e=Xn(),i=be(),r=pn();return WS(r,i,zL(WE(r.data),e,i),e,t,n),ax}function WS(t,n,e,i,r,o,s){const a=Kv(i),l=t.firstCreatePass&&UL(t),d=n[fi],u=BL(n);let h=!0;if(3&i.type||s){const g=$o(i,n),p=s?s(g):g,b=u.length,y=s?D=>s(ai(D[i.index])):i.index;let k=null;if(!s&&a&&(k=function vae(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!==k)(k.__ngLastListenerFn__||k).__ngNextListenerFn__=o,k.__ngLastListenerFn__=o,h=!1;else{o=yB(i,n,d,o,!1);const D=e.listen(p,r,o);u.push(o,D),l&&l.push(r,y,b,b+1)}}else o=yB(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?Ds(t.index,n):n);let c=vB(n,e,i,s),l=o.__ngNextListenerFn__;for(;l;)c=vB(n,e,l,s)&&c,l=l.__ngNextListenerFn__;return r&&!1===c&&s.preventDefault(),c}}function P(t=1){return function Cee(t){return(Pt.lFrame.contextLView=function NN(t,n){for(;t>0;)n=n[_f],t--;return n}(t,Pt.lFrame.contextLView))[fi]}(t)}function yae(t,n){let e=null;const i=function kJ(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 RT(t,n){return t.createText(n)}(n[Rt],i));function nt(t){return Ze("",t,""),nt}function Ze(t,n,e){const i=be(),r=jf(i,t,n,e);return r!==Ut&&Wc(i,bo(),r),Ze}function Iu(t,n,e,i,r){const o=be(),s=function $f(t,n,e,i,r,o){const a=Eu(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,bo(),s),Iu}function s_(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,bo(),c),s_}function Br(t,n,e){M3(n)&&(n=n());const i=be();return Wi(i,wa(),n)&&ls(pn(),mi(),i,t,n,i[Rt],e,!1),Br}function to(t,n){const e=M3(t);return e&&t.set(n),e}function Ur(t,n){const e=be(),i=pn(),r=Xn();return WS(i,e,e[Rt],r,t,n),Ur}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 bg(l,r,w),m=KS(c,n,r?d:d+h,u);-1===m?(tT(iy(a,s),o,c),QS(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=KS(c,n,d+h,u),m=KS(c,n,d,d+h),p=m>=0&&e[m];if(r&&!p||!r&&!(f>=0&&e[f])){tT(iy(a,s),o,c);const b=function Bae(t,n,e,i,r){const o=new bg(t,e,w);return o.multi=[],o.index=n,o.componentProviders=0,GB(o,r,i&&!e),o}(r?Vae:Lae,e.length,r,i,l);!r&&p&&(e[m].providerFactory=b),QS(o,t,n.length,0),n.push(c),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),e.push(b),s.push(b)}else QS(o,t,f>-1?f:m,GB(e[r?m:f],l,!r&&i));!r&&i&&p&&e[m].componentProviders++}}}function QS(t,n,e,i){const r=fu(n),o=function NJ(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 GB(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function KS(t,n,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function Nae(t,n,e){const i=pn();if(i.firstCreatePass){const r=xa(t);qS(e,i.data,i.blueprint,r,!0),qS(n,i.data,i.blueprint,r,!1)}}(i,r?r(t):t,n)}}let Uae=(()=>{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=kE(0,e.type),r=i.length>0?Gy([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(Uae).getOrCreateStandaloneInjector(t)}function Fs(t,n,e){const i=Go()+t,r=be();return r[i]===Ut?tc(r,i,e?n.call(e):n()):function Qg(t,n){return t[n]}(r,i)}function Ea(t,n,e,i){return qB(be(),Go(),t,n,e,i)}function YS(t,n,e,i,r){return QB(be(),Go(),t,n,e,i,r)}function a_(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)):a_(t,s+1)}function QB(t,n,e,i,r,o,s){const a=n+e;return Eu(t,a,r,o)?tc(t,a+2,s?i.call(s,r,o):i(r,o)):a_(t,a+2)}function yo(t,n){const e=pn();let i;const r=t+Vt;e.firstCreatePass?(i=function Xae(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=ny(!1),l=o();return ny(c),function Cae(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 c_(r,i)?qB(r,Go(),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 c_(o,r)?QB(o,Go(),n,s.transform,e,i,s):s.transform(e,i)}function c_(t,n){return t[Le].data[n].pure}function tm(t,n){return Py(t,n)}let f5=(()=>{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 b5=new ee(""),hx=new ee("");let oD,iD=(()=>{class t{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,oD||(function Wce(t){oD=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:()=>{ze.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(ze),Y(rD),Y(hx))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})(),rD=(()=>{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 oD?.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 u_(t){return!!t&&"function"==typeof t.then}function v5(t){return!!t&&"function"==typeof t.subscribe}const sD=new ee("");let aD=(()=>{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i}),this.appInits=fe(sD,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const r of this.appInits){const o=r();if(u_(o))e.push(o);else if(v5(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 cD=new ee("");function w5(t,n){return Array.isArray(n)?n.reduce(w5,t):{...t,...n}}let Qc=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=fe(g4),this.afterRenderEffectManager=fe(jg),this.externalTestViews=new Set,this.beforeRender=new Me,this.afterTick=new Me,this.componentTypes=[],this.components=[],this.isStable=fe(Yl).hasPendingTasks.pipe(mt(e=>!e)),this._injector=fe(as)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const r=e instanceof t3;if(!this._injector.get(aD).done)throw!r&&function jl(t){const n=an(t)||xr(t)||Zr(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 qce(t){return t.isBoundToModule}(s)?void 0:this._injector.get(Cu),l=s.create(Di.NULL,[],i||s.selector,a),d=l.location.nativeElement,u=l.injector.get(b5,null);return u?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),fx(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=jt(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(e)}catch(r){this.internalErrorHandler(r)}finally{this.afterTick.next(),this._runningTick=!1,jt(i)}}detectChangesInAttachedViews(e){let i=0;const r=this.afterRenderEffectManager;for(;;){if(i===GL)throw new le(103,!1);if(e){const o=0===i;this.beforeRender.next(o);for(let{_lView:s,notifyErrorHandler:a}of this._views)Kce(s,o,a)}if(i++,r.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:o})=>lD(o))&&(r.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:o})=>lD(o))))break}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;fx(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(cD,[]);[...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),()=>fx(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 fx(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function Kce(t,n,e){!n&&!lD(t)||function Xce(t,n,e){let i;e?(i=0,t[bt]|=1024):i=64&t[bt]?0:1,Ry(t,n,i)}(t,e,n)}function lD(t){return UE(t)}class Yce{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let k5=(()=>{class t{compileModuleSync(e){return new xS(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=Rs(mo(e).declarations).reduce((s,a)=>{const c=an(a);return c&&s.push(new Wg(c)),s},[]);return new Yce(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})(),ele=(()=>{class t{constructor(){this.zone=fe(ze),this.applicationRef=fe(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 tle(){const t=fe(ze),n=fe(As);return e=>t.runOutsideAngular(()=>n.handleError(e))}let ile=(()=>{class t{constructor(){this.subscription=new $t,this.initialized=!1,this.zone=fe(ze),this.pendingTasks=fe(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(()=>{ze.assertNotInAngularZone(),queueMicrotask(()=>{null!==e&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ze.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 ee("",{providedIn:"root",factory:()=>fe(sc,mn.Optional|mn.SkipSelf)||function rle(){return typeof $localize<"u"&&$localize.locale||Jf}()}),dD=new ee("");let S5=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function Jie(t="zone.js",n){return"noop"===t?new c3:"zone.js"===t?new ze(n):t}(i?.ngZone,function T5(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return r.run(()=>{const o=function Gre(t,n,e){return new yS(t,n,e)}(e.moduleType,this.injector,function E5(t){return[{provide:ze,useFactory:t},{provide:hu,multi:!0,useFactory:()=>{const n=fe(ele,{optional:!0});return()=>n.initialize()}},{provide:hu,multi:!0,useFactory:()=>{const n=fe(ile);return()=>{n.initialize()}}},{provide:g4,useFactory:tle}]}(()=>r)),s=o.injector.get(As,null);return r.runOutsideAngular(()=>{const a=r.onError.subscribe({next:c=>{s.handleError(c)}});o.onDestroy(()=>{fx(this._modules,o),a.unsubscribe()})}),function x5(t,n,e){try{const i=e();return u_(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(aD);return a.runInitializers(),a.donePromise.then(()=>(function QV(t){"string"==typeof t&&(qV=t.toLowerCase().replace(/_/g,"-"))}(o.injector.get(sc,Jf)||Jf),this._moduleDoBootstrap(o),o))})})}bootstrapModule(e,i=[]){const r=w5({},i);return function Jce(t,n,e){const i=new xS(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(dD,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(Di))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),ed=null;const D5=new ee("");function I5(t,n,e=[]){const i=`Platform: ${n}`,r=new ee(i);return(o=[])=>{let s=uD();if(!s||s.injector.get(D5,!1)){const a=[...e,...o,{provide:r,useValue:!0}];t?t(a):function ale(t){if(ed&&!ed.get(D5,!1))throw new le(400,!1);(function y5(){!function IZ(t){OO=t}(()=>{throw new le(600,!1)})})(),ed=t;const n=t.get(S5);(function M5(t){t.get(V4,null)?.forEach(e=>e())})(t)}(function A5(t=[],n){return Di.create({name:n,providers:[{provide:TE,useValue:"platform"},{provide:dD,useValue:new Set([()=>ed=null])},...t]})}(a,i))}return function cle(t){const n=uD();if(!n)throw new le(401,!1);return n}()}}function uD(){return ed?.get(S5)??null}let Tn=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=dle}return t})();function dle(t){return function ule(t,n,e){if(pu(t)&&!e){const i=Ds(t.index,n);return new Vg(i,i)}return 47&t.type?new Vg(n[Ni],n):null}(Xn(),be(),!(16&~t))}class N5{constructor(){}supports(n){return qy(n)}create(n){return new gle(n)}}const ple=(t,n)=>n;class gle{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||ple}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 _le(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 L5),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 L5),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 _le{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 ble{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 L5{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new ble,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 V5(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:U5});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||U5()),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 kle=I5(null,"core",[]);let Cle=(()=>{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=kt({})}return t})();function Be(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}function xo(t,n=NaN){return isNaN(parseFloat(t))||isNaN(Number(t))?n:Number(t)}function l8(t){const n=jt(null);try{return t()}finally{jt(n)}}const ede=new ee("",{providedIn:"root",factory:()=>fe(tde)});let tde=(()=>{class t{static#e=this.\u0275prov=we({token:t,providedIn:"root",factory:()=>new nde})}return t})();class nde{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=fe(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 ide{constructor(n,e,i,r,o,s){this.scheduler=n,this.effectFn=e,this.creationZone=i,this.injector=o,this.watcher=function PZ(t,n,e){const i=Object.create(FZ);e&&(i.consumerAllowSignalWrites=!0),i.fn=t,i.schedule=n;const r=c=>{i.cleanupFn=c};return i.ref={notify:()=>eg(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&&!QC(i))return;i.hasRun=!0;const c=Jh(i);try{i.cleanupFn(),i.cleanupFn=XC,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)||(RO(c),c.cleanupFn(),c.fn=null,c.schedule=null,c.cleanupFn=XC)}(i),[ar]: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(As,null,{optional:!0})?.handleError(e)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}let u8=null;function nd(){return u8}class sde{}const yt=new ee("");let bD=(()=>{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:()=>fe(cde),providedIn:"platform"})}return t})();const ade=new ee("");let cde=(()=>{class t extends bD{constructor(){super(),this._doc=fe(yt),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 vD(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 h8(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:()=>fe(m8),providedIn:"root"})}return t})();const f8=new ee("");let m8=(()=>{class t extends Pu{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??fe(yt).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 vD(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(bD),Y(f8,8))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),lde=(()=>{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=vD(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(bD),Y(f8,8))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})(),Fu=(()=>{class t{constructor(e){this._subject=new Te,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function hde(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(h8(p8(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 ude(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,p8(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=vD;static#n=this.stripTrailingSlash=h8;static#i=this.\u0275fac=function(i){return new(i||t)(Y(Pu))};static#r=this.\u0275prov=we({token:t,factory:()=>function dde(){return new Fu(Y(Pu))}(),providedIn:"root"})}return t})();function p8(t){return t.replace(/\/index.html$/,"")}var Qo=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(Qo||{}),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 cr={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 Cx(t,n){return Js(Wo(t)[gi.DateFormat],n)}function Ex(t,n){return Js(Wo(t)[gi.TimeFormat],n)}function Tx(t,n){return Js(Wo(t)[gi.DateTimeFormat],n)}function Zs(t,n){const e=Wo(t),i=e[gi.NumberSymbols][n];if(typeof i>"u"){if(n===cr.CurrencyDecimal)return e[gi.NumberSymbols][cr.Decimal];if(n===cr.CurrencyGroup)return e[gi.NumberSymbols][cr.Group]}return i}function _8(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 xD(t){const[n,e]=t.split(":");return{hours:+n,minutes:+e}}const Tde=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Sx={},Sde=/((?:[^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||{}),Un=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}(Un||{}),zn=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(zn||{});function Dde(t,n,e,i){let r=function Lde(t){if(y8(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 Dx(r,o-1,s)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(Tde))return function Vde(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(!y8(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=Sde.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=v8(i,c),r=function Nde(t,n,e){const i=e?-1:1,r=t.getTimezoneOffset();return function Ode(t,n){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+n),t}(t,i*(v8(n,r)-r))}(r,i,!0));let l="";return s.forEach(d=>{const u=function Fde(t){if(kD[t])return kD[t];let n;switch(t){case"G":case"GG":case"GGG":n=_i(zn.Eras,ui.Abbreviated);break;case"GGGG":n=_i(zn.Eras,ui.Wide);break;case"GGGGG":n=_i(zn.Eras,ui.Narrow);break;case"y":n=lr(Un.FullYear,1,0,!1,!0);break;case"yy":n=lr(Un.FullYear,2,0,!0,!0);break;case"yyy":n=lr(Un.FullYear,3,0,!1,!0);break;case"yyyy":n=lr(Un.FullYear,4,0,!1,!0);break;case"Y":n=Rx(1);break;case"YY":n=Rx(2,!0);break;case"YYY":n=Rx(3);break;case"YYYY":n=Rx(4);break;case"M":case"L":n=lr(Un.Month,1,1);break;case"MM":case"LL":n=lr(Un.Month,2,1);break;case"MMM":n=_i(zn.Months,ui.Abbreviated);break;case"MMMM":n=_i(zn.Months,ui.Wide);break;case"MMMMM":n=_i(zn.Months,ui.Narrow);break;case"LLL":n=_i(zn.Months,ui.Abbreviated,Qo.Standalone);break;case"LLLL":n=_i(zn.Months,ui.Wide,Qo.Standalone);break;case"LLLLL":n=_i(zn.Months,ui.Narrow,Qo.Standalone);break;case"w":n=wD(1);break;case"ww":n=wD(2);break;case"W":n=wD(1,!0);break;case"d":n=lr(Un.Date,1);break;case"dd":n=lr(Un.Date,2);break;case"c":case"cc":n=lr(Un.Day,1);break;case"ccc":n=_i(zn.Days,ui.Abbreviated,Qo.Standalone);break;case"cccc":n=_i(zn.Days,ui.Wide,Qo.Standalone);break;case"ccccc":n=_i(zn.Days,ui.Narrow,Qo.Standalone);break;case"cccccc":n=_i(zn.Days,ui.Short,Qo.Standalone);break;case"E":case"EE":case"EEE":n=_i(zn.Days,ui.Abbreviated);break;case"EEEE":n=_i(zn.Days,ui.Wide);break;case"EEEEE":n=_i(zn.Days,ui.Narrow);break;case"EEEEEE":n=_i(zn.Days,ui.Short);break;case"a":case"aa":case"aaa":n=_i(zn.DayPeriods,ui.Abbreviated);break;case"aaaa":n=_i(zn.DayPeriods,ui.Wide);break;case"aaaaa":n=_i(zn.DayPeriods,ui.Narrow);break;case"b":case"bb":case"bbb":n=_i(zn.DayPeriods,ui.Abbreviated,Qo.Standalone,!0);break;case"bbbb":n=_i(zn.DayPeriods,ui.Wide,Qo.Standalone,!0);break;case"bbbbb":n=_i(zn.DayPeriods,ui.Narrow,Qo.Standalone,!0);break;case"B":case"BB":case"BBB":n=_i(zn.DayPeriods,ui.Abbreviated,Qo.Format,!0);break;case"BBBB":n=_i(zn.DayPeriods,ui.Wide,Qo.Format,!0);break;case"BBBBB":n=_i(zn.DayPeriods,ui.Narrow,Qo.Format,!0);break;case"h":n=lr(Un.Hours,1,-12);break;case"hh":n=lr(Un.Hours,2,-12);break;case"H":n=lr(Un.Hours,1);break;case"HH":n=lr(Un.Hours,2);break;case"m":n=lr(Un.Minutes,1);break;case"mm":n=lr(Un.Minutes,2);break;case"s":n=lr(Un.Seconds,1);break;case"ss":n=lr(Un.Seconds,2);break;case"S":n=lr(Un.FractionalSeconds,1);break;case"SS":n=lr(Un.FractionalSeconds,2);break;case"SSS":n=lr(Un.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=Ax(Xc.Short);break;case"ZZZZZ":n=Ax(Xc.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=Ax(Xc.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=Ax(Xc.Long);break;default:return null}return kD[t]=n,n}(d);l+=u?u(r,e,c):"''"===d?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Dx(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 mde(t){return Wo(t)[gi.LocaleId]}(t);if(Sx[e]??={},Sx[e][n])return Sx[e][n];let i="";switch(n){case"shortDate":i=Cx(t,Os.Short);break;case"mediumDate":i=Cx(t,Os.Medium);break;case"longDate":i=Cx(t,Os.Long);break;case"fullDate":i=Cx(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=Ix(Tx(t,Os.Short),[r,o]);break;case"medium":const s=Yc(t,"mediumTime"),a=Yc(t,"mediumDate");i=Ix(Tx(t,Os.Medium),[s,a]);break;case"long":const c=Yc(t,"longTime"),l=Yc(t,"longDate");i=Ix(Tx(t,Os.Long),[c,l]);break;case"full":const d=Yc(t,"fullTime"),u=Yc(t,"fullDate");i=Ix(Tx(t,Os.Full),[d,u])}return i&&(Sx[e][n]=i),i}function Ix(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return null!=n&&i in n?n[i]:e})),t}function Ta(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===Un.Hours)0===a&&-12===e&&(a=12);else if(t===Un.FractionalSeconds)return function Ide(t,n){return Ta(t,3).substring(0,n)}(a,n);const c=Zs(s,cr.MinusSign);return Ta(a,n,c,i,r)}}function _i(t,n,e=Qo.Format,i=!1){return function(r,o){return function Mde(t,n,e,i,r,o){switch(e){case zn.Months:return function _de(t,n,e){const i=Wo(t),o=Js([i[gi.MonthsFormat],i[gi.MonthsStandalone]],n);return Js(o,e)}(n,r,i)[t.getMonth()];case zn.Days:return function gde(t,n,e){const i=Wo(t),o=Js([i[gi.DaysFormat],i[gi.DaysStandalone]],n);return Js(o,e)}(n,r,i)[t.getDay()];case zn.DayPeriods:const s=t.getHours(),a=t.getMinutes();if(o){const l=function xde(t){const n=Wo(t);return _8(n),(n[gi.ExtraData][2]||[]).map(i=>"string"==typeof i?xD(i):[xD(i[0]),xD(i[1])])}(n),d=function wde(t,n,e){const i=Wo(t);_8(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?"+":"")+Ta(s,2,o)+Ta(Math.abs(r%60),2,o);case Xc.ShortGMT:return"GMT"+(r>=0?"+":"")+Ta(s,1,o);case Xc.Long:return"GMT"+(r>=0?"+":"")+Ta(s,2,o)+":"+Ta(Math.abs(r%60),2,o);case Xc.Extended:return 0===i?"Z":(r>=0?"+":"")+Ta(s,2,o)+":"+Ta(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}const Rde=0,Mx=4;function b8(t){const n=t.getDay(),e=0===n?-3:Mx-n;return Dx(t.getFullYear(),t.getMonth(),t.getDate()+e)}function wD(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=b8(e),s=function Pde(t){const n=Dx(t,Rde,1).getDay();return Dx(t,0,1+(n<=Mx?Mx:Mx+7)-n)}(o.getFullYear()),a=o.getTime()-s.getTime();r=1+Math.round(a/6048e5)}return Ta(r,t,Zs(i,cr.MinusSign))}}function Rx(t,n=!1){return function(e,i){return Ta(b8(e).getFullYear(),t,Zs(i,cr.MinusSign),n)}}const kD={};function v8(t,n){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function y8(t){return t instanceof Date&&!isNaN(t.valueOf())}function C8(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 ID=/\s+/,E8=[];let Sa=(()=>{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(ID):E8}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(ID):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(ID).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(Ge),w(qc))};static#t=this.\u0275dir=ce({type:t,selectors:[["","ngClass",""]],inputs:{klass:[W.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}return t})();class Yde{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 Ko=(()=>{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 Yde(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),S8(a,r)}});for(let r=0,o=i.length;r{S8(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 S8(t,n){t.context.$implicit=n.item}let zr=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new Zde,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){D8("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){D8("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 Zde{constructor(){this.$implicit=null,this.ngIf=null}}function D8(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${yr(n)}'.`)}let Fx=(()=>{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:[Bn]})}return t})();function Da(t,n){return new le(2100,!1)}class rue{createSubscription(n,e){return l8(()=>n.subscribe({next:e,error:i=>{throw i}}))}dispose(n){l8(()=>n.unsubscribe())}}class oue{createSubscription(n,e){return n.then(e,i=>{throw i})}dispose(n){}}const sue=new oue,aue=new rue;let RD=(()=>{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(u_(e))return sue;if(v5(e))return aue;throw Da()}_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(Tn,16))};static#t=this.\u0275pipe=fo({name:"async",type:t,pure:!1,standalone:!0})}return t})(),PD=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw Da();return e.toUpperCase()}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275pipe=fo({name:"uppercase",type:t,pure:!0,standalone:!0})}return t})();const hue=new ee(""),fue=new ee("");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 Dde(e,i??this.defaultOptions?.dateFormat??"mediumDate",o||this.locale,r??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(s){throw Da()}}static#e=this.\u0275fac=function(i){return new(i||t)(w(sc,16),w(hue,24),w(fue,24))};static#t=this.\u0275pipe=fo({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=kt({})}return t})();const M8="browser";function R8(t){return t===M8}function P8(t){return"server"===t}let Tue=(()=>{class t{static#e=this.\u0275prov=we({token:t,providedIn:"root",factory:()=>R8(fe($c))?new Sue(fe(yt),window):new Iue})}return t})();class Sue{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 Due(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 Iue{setOffset(n){}getScrollPosition(){return[0,0]}scrollToPosition(n){}scrollToAnchor(n){}setHistoryScrollRestoration(n){}}class F8{}class ihe extends sde{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class LD extends ihe{static makeCurrent(){!function ode(t){u8??=t}(new LD)}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 rhe(){return __=__||document.querySelector("base"),__?__.getAttribute("href"):null}();return null==e?null:function ohe(t){return new URL(t,document.baseURI).pathname}(e)}resetBaseElement(){__=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return C8(document.cookie,n)}}let __=null,ahe=(()=>{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 VD=new ee("");let j8=(()=>{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(VD),Y(ze))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();class $8{constructor(n){this._doc=n}}const BD="ng-app-id";let G8=(()=>{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=P8(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[${BD}="${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(BD),o;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=i,this.platformIsServer&&s.setAttribute(BD,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(yt),Y(kg),Y(dT,8),Y($c))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();const UD={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/"},zD=/%COMP%/g,uhe=new ee("",{providedIn:"root",factory:()=>!0});function q8(t,n){return n.map(e=>e.replace(zD,t))}let HD=(()=>{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=P8(a),this.defaultRenderer=new jD(e,s,c,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===_a.ShadowDom&&(i={...i,encapsulation:_a.Emulated});const r=this.getOrCreateRenderer(e,i);return r instanceof K8?r.applyToHost(e):r instanceof $D&&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 _a.Emulated:o=new K8(c,l,i,this.appId,d,s,a,u);break;case _a.ShadowDom:return new phe(c,l,e,i,s,a,this.nonce,u);default:o=new $D(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(j8),Y(G8),Y(kg),Y(uhe),Y(yt),Y($c),Y(ze),Y(dT))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();class jD{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(UD[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(Q8(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(Q8(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=UD[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const r=UD[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 Q8(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class phe extends jD{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 $D extends jD{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 K8 extends $D{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 hhe(t){return"_ngcontent-%COMP%".replace(zD,t)}(l),this.hostAttr=function fhe(t){return"_nghost-%COMP%".replace(zD,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 ghe=(()=>{class t extends $8{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(yt))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();const X8=["alt","control","meta","shift"],_he={"\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"},bhe={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let vhe=(()=>{class t extends $8{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."),X8.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=_he[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"),X8.forEach(s=>{s!==r&&(0,bhe[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(yt))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();const Z8=[{provide:$c,useValue:M8},{provide:V4,useValue:function yhe(){LD.makeCurrent()},multi:!0},{provide:yt,useFactory:function whe(){return function vte(t){lT=t}(document),document},deps:[]}],khe=I5(kle,"browser",Z8),Che=new ee(""),J8=[{provide:hx,useClass:class she{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:b5,useClass:iD,deps:[ze,rD,hx]},{provide:iD,useClass:iD,deps:[ze,rD,hx]}],e6=[{provide:TE,useValue:"root"},{provide:As,useFactory:function xhe(){return new As},deps:[]},{provide:VD,useClass:ghe,multi:!0,deps:[yt,ze,$c]},{provide:VD,useClass:vhe,multi:!0,deps:[yt]},HD,G8,j8,{provide:iS,useExisting:HD},{provide:F8,useClass:ahe,deps:[]},[]];let t6=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:kg,useValue:e.appId}]}}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Che,12))};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({providers:[...e6,...J8],imports:[ac,Cle]})}return t})(),Ehe=(()=>{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(yt))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),GD=(()=>{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(Ihe),r},providedIn:"root"})}return t})(),Ihe=(()=>{class t extends GD{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case eo.NONE:return i;case eo.HTML:return Za(i,"HTML")?Ms(i):iL(this._doc,String(i)).toString();case eo.STYLE:return Za(i,"Style")?Ms(i):i;case eo.SCRIPT:if(Za(i,"Script"))return Ms(i);throw new le(5200,!1);case eo.URL:return Za(i,"URL")?Ms(i):by(String(i));case eo.RESOURCE_URL:if(Za(i,"ResourceURL"))return Ms(i);throw new le(5201,!1);default:throw new le(5202,!1)}}bypassSecurityTrustHtml(e){return function Ute(t){return new Fte(t)}(e)}bypassSecurityTrustStyle(e){return function zte(t){return new Ote(t)}(e)}bypassSecurityTrustScript(e){return function Hte(t){return new Nte(t)}(e)}bypassSecurityTrustUrl(e){return function jte(t){return new Lte(t)}(e)}bypassSecurityTrustResourceUrl(e){return function $te(t){return new Vte(t)}(e)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(yt))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function WD(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 c6(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 XD(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 YD=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function l6(t){return On(t?.then)}function d6(t){return On(t[iE])}function u6(t){return Symbol.asyncIterator&&On(t?.[Symbol.asyncIterator])}function h6(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 f6=function Yhe(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function m6(t){return On(t?.[f6])}function p6(t){return function a6(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 g6(t){return On(t?.getReader)}function wo(t){if(t instanceof jn)return t;if(null!=t){if(d6(t))return function Zhe(t){return new jn(n=>{const e=t[iE]();if(On(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(YD(t))return function Jhe(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,UO)})}(t);if(u6(t))return _6(t);if(m6(t))return function tfe(t){return new jn(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(g6(t))return function nfe(t){return _6(p6(t))}(t)}throw h6(t)}function _6(t){return new jn(n=>{(function ife(t,n){var e,i,r,o;return function o6(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=c6(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 b6(t,n=0){return Oi((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 v6(t,n=0){return Oi((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function y6(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 Xi(t,n){return n?function lfe(t,n){if(null!=t){if(d6(t))return function rfe(t,n){return wo(t).pipe(v6(n),b6(n))}(t,n);if(YD(t))return function sfe(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(l6(t))return function ofe(t,n){return wo(t).pipe(v6(n),b6(n))}(t,n);if(u6(t))return y6(t,n);if(m6(t))return function afe(t,n){return new jn(e=>{let i;return Zc(e,n,()=>{i=t[f6](),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(g6(t))return function cfe(t,n){return y6(p6(t),n)}(t,n)}throw h6(t)}(t,n):wo(t)}function x6(t){return t&&On(t.schedule)}function ZD(t){return t[t.length-1]}function w6(t){return On(ZD(t))?t.pop():void 0}function v_(t){return x6(ZD(t))?t.pop():void 0}function st(...t){return Xi(t,v_(t))}const{isArray:ufe}=Array,{getPrototypeOf:hfe,prototype:ffe,keys:mfe}=Object;function k6(t){if(1===t.length){const n=t[0];if(ufe(n))return{args:n,keys:null};if(function pfe(t){return t&&"object"==typeof t&&hfe(t)===ffe}(n)){const e=mfe(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}const{isArray:gfe}=Array;function JD(t){return mt(n=>function _fe(t,n){return gfe(n)?t(...n):t(n)}(t,n))}function C6(t,n){return t.reduce((e,i,r)=>(e[i]=n[r],e),{})}function Jc(...t){const n=v_(t),e=w6(t),{args:i,keys:r}=k6(t);if(0===i.length)return Xi([],n);const o=new jn(function bfe(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=Xi(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=>C6(r,s):Bl));return e?o.pipe(JD(e)):o}function E6(t,n,e){t?Zc(e,t,n):n()}const sm=YC(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Hr(t,n,e=1/0){return On(n)?Hr((i,r)=>mt((o,s)=>n(i,o,r,s))(wo(t(i,r))),e):("number"==typeof n&&(e=n),Oi((i,r)=>function vfe(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;wo(e(g,d++)).subscribe(ki(n,b=>{r?.(b),o?f(b):n.next(b)},()=>{p=!0},void 0,()=>{if(p)try{for(l--;c.length&&lm(b)):m(b)}h()}catch(b){n.error(b)}}))};return t.subscribe(ki(n,f,()=>{u=!0,h()})),()=>{a?.()}}(i,r,t,e)))}function am(t=1/0){return Hr(Bl,t)}function y_(...t){return function yfe(){return am(1)}()(Xi(t,v_(t)))}function cm(t){return new jn(n=>{wo(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 us=new jn(t=>t.complete());function eI(){return Oi((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 tI extends jn{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,$O(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 $t;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=$t.EMPTY)}return n}refCount(){return eI()(this)}}function Yi(t,n){return Oi((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++;wo(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?()=>us:Oi((n,e)=>{let i=0;n.subscribe(ki(e,r=>{++i<=t&&(e.next(r),t<=i&&e.complete())}))})}function jr(...t){const n=v_(t);return Oi((e,i)=>{(n?y_(t,e,n):y_(t,e)).subscribe(i)})}function dn(t,n){return Oi((e,i)=>{let r=0;e.subscribe(ki(i,o=>t.call(n,o,r++)&&i.next(o)))})}function Vx(t){return Oi((n,e)=>{let i=!1;n.subscribe(ki(e,r=>{i=!0,e.next(r)},()=>{i||e.next(t),e.complete()}))})}function T6(t=wfe){return Oi((n,e)=>{let i=!1;n.subscribe(ki(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(t())))})}function wfe(){return new sm}function Ia(t,n){const e=arguments.length>=2;return i=>i.pipe(t?dn((r,o)=>t(r,o,i)):Bl,Nn(1),e?Vx(n):T6(()=>new sm))}function dm(t,n){return On(n)?Hr(t,n,1):Hr(t,1)}function Li(t,n,e){const i=On(t)||n||e?{next:t,error:n,complete:e}:t;return i?Oi((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 Sr(t){return Oi((n,e)=>{let o,i=null,r=!1;i=n.subscribe(ki(e,void 0,void 0,s=>{o=wo(t(s,Sr(t)(n))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}function nI(t){return t<=0?()=>us:Oi((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 Bx(t){return mt(()=>t)}function um(t){return Oi((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function Et(t){return Oi((n,e)=>{wo(t).subscribe(ki(e,()=>e.complete(),Sv)),!e.closed&&n.subscribe(e)})}const Jt="primary",x_=Symbol("RouteTitle");class Tfe{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 Tfe(t)}function Sfe(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 D6(t){return t.length>0?t[t.length-1]:null}function rd(t){return WD(t)?t:u_(t)?Xi(Promise.resolve(t)):st(t)}const Ife={exact:function M6(t,n,e){if(!Nu(t.segments,n.segments)||!Ux(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!M6(t.children[i],n.children[i],e))return!1;return!0},subset:R6},I6={exact:function Afe(t,n){return cc(t,n)},subset:function Mfe(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>S6(t[e],n[e]))},ignored:()=>!0};function A6(t,n,e){return Ife[e.paths](t.root,n.root,e.matrixParams)&&I6[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function R6(t,n,e){return P6(t,n,n.segments,e)}function P6(t,n,e,i){if(t.segments.length>e.length){const r=t.segments.slice(0,e.length);return!(!Nu(r,e)||n.hasChildren()||!Ux(r,e,i))}if(t.segments.length===e.length){if(!Nu(t.segments,e)||!Ux(t.segments,e,i))return!1;for(const r in n.children)if(!t.children[r]||!R6(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)&&Ux(t.segments,r,i)&&t.children[Jt])&&P6(t.children[Jt],n,o,i)}}function Ux(t,n,e){return n.every((i,r)=>I6[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 Ffe.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 zx(this)}}class w_{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=hm(this.parameters),this._parameterMap}toString(){return N6(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 rI,providedIn:"root"})}return t})();class rI{parse(n){const e=new Gfe(n);return new fm(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${k_(n.root,!0)}`,i=function Lfe(t){const n=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(r=>`${Hx(e)}=${Hx(r)}`).join("&"):`${Hx(e)}=${Hx(i)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${i}${"string"==typeof n.fragment?`#${function Ofe(t){return encodeURI(t)}(n.fragment)}`:""}`}}const Ffe=new rI;function zx(t){return t.segments.map(n=>N6(n)).join("/")}function k_(t,n){if(!t.hasChildren())return zx(t);if(n){const e=t.children[Jt]?k_(t.children[Jt],!1):"",i=[];return Object.entries(t.children).forEach(([r,o])=>{r!==Jt&&i.push(`${r}:${k_(o,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function Pfe(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?[k_(t.children[Jt],!1)]:[`${r}:${k_(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Jt]?`${zx(t)}/${e[0]}`:`${zx(t)}/(${e.join("//")})`}}function F6(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Hx(t){return F6(t).replace(/%3B/gi,";")}function oI(t){return F6(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function jx(t){return decodeURIComponent(t)}function O6(t){return jx(t.replace(/\+/g,"%20"))}function N6(t){return`${oI(t.path)}${function Nfe(t){return Object.entries(t).map(([n,e])=>`;${oI(n)}=${oI(e)}`).join("")}(t.parameters)}`}const Vfe=/^[^\/()?;#]+/;function sI(t){const n=t.match(Vfe);return n?n[0]:""}const Bfe=/^[^\/()?;=#]+/,zfe=/^[^=?&#]+/,jfe=/^[^&#]+/;class Gfe{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=sI(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new le(4009,!1);return this.capture(n),new w_(jx(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=function Ufe(t){const n=t.match(Bfe);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=sI(this.remaining);r&&(i=r,this.capture(i))}n[jx(e)]=jx(i)}parseQueryParam(n){const e=function Hfe(t){const n=t.match(zfe);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function $fe(t){const n=t.match(jfe);return n?n[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=O6(e),o=O6(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=sI(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 L6(t){return t.segments.length>0?new ci([],{[Jt]:t}):t}function V6(t){const n={};for(const[i,r]of Object.entries(t.children)){const o=V6(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 Wfe(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 B6(t){let n;const r=L6(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 U6(t,n,e,i){let r=t;for(;r.parent;)r=r.parent;if(0===n.length)return aI(r,r,r,e,i);const o=function Qfe(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new H6(!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 H6(e,n,i)}(n);if(o.toRoot())return aI(r,r,new ci([],{}),e,i);const s=function Kfe(t,n,e){if(t.isAbsolute)return new Gx(n,!0,0);if(!e)return new Gx(n,!1,NaN);if(null===e.parent)return new Gx(e,!0,0);const i=$x(t.commands[0])?0:1;return function Xfe(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 Gx(i,!1,r-o)}(e,e.segments.length-1+i,t.numberOfDoubleDots)}(o,r,t),a=s.processChildren?E_(s.segmentGroup,s.index,o.commands):j6(s.segmentGroup,s.index,o.commands);return aI(r,s.segmentGroup,a,e,i)}function $x(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function C_(t){return"object"==typeof t&&null!=t&&t.outlets}function aI(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:z6(t,n,e);const a=L6(V6(s));return new fm(a,o,r)}function z6(t,n,e){const i={};return Object.entries(t.children).forEach(([r,o])=>{i[r]=o===n?e:z6(o,n,e)}),new ci(t.segments,i)}class H6{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&$x(i[0]))throw new le(4003,!1);const r=i.find(C_);if(r&&r!==D6(i))throw new le(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Gx{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function j6(t,n,e){if(t??=new ci([],{}),0===t.segments.length&&t.hasChildren())return E_(t,n,e);const i=function Zfe(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(C_(a))break;const c=`${a}`,l=i0&&void 0===c)break;if(c&&l&&"object"==typeof l&&void 0===l.outlets){if(!G6(c,l,s))return o;i+=2}else{if(!G6(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=E_(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]=j6(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 cI(t,n,e){const i=t.segments.slice(0,n);let r=0;for(;r{"string"==typeof i&&(i=[i]),null!==i&&(n[e]=cI(new ci([],{}),0,i))}),n}function $6(t){const n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function G6(t,n,e){return t==e.path&&cc(n,e.parameters)}const T_="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 Wx 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 Qx 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 W6 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 eme 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 tme 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 nme 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 ime 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 rme{constructor(n){this.route=n,this.type=Sn.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ome{constructor(n){this.route=n,this.type=Sn.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class sme{constructor(n){this.snapshot=n,this.type=Sn.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ame{constructor(n){this.snapshot=n,this.type=Sn.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class cme{constructor(n){this.snapshot=n,this.type=Sn.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class lme{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 lI{}class dI{constructor(n){this.url=n}}class dme{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new S_,this.attachRef=null}}let S_=(()=>{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 dme,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 Q6{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=uI(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=uI(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=hI(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return hI(n,this._root).map(e=>e.value)}}function uI(t,n){if(t===n.value)return n;for(const e of n.children){const i=uI(t,e);if(i)return i}return null}function hI(t,n){if(t===n.value)return[n];for(const e of n.children){const i=hI(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 K6 extends Q6{constructor(n,e){super(n),this.snapshot=e,pI(this,n)}toString(){return this.snapshot.toString()}}function X6(t){const n=function ume(t){const o=new mI([],{},{},"",{},Jt,t,null,{});return new Y6("",new Aa(o,[]))}(t),e=new wi([new w_("",{})]),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 K6(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[x_]))??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 fI(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&&J6(r)&&(i.resolve[x_]=r.title),i}class mI{get title(){return this.data?.[x_]}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 Y6 extends Q6{constructor(n,e){super(e),this.url=n,pI(this,e)}toString(){return Z6(this._root)}}function pI(t,n){n.value._routerState=t,n.children.forEach(e=>pI(t,e))}function Z6(t){const n=t.children.length>0?` { ${t.children.map(Z6).join(", ")} } `:"";return`${t.value}${n}`}function gI(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 Dfe(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||_I(t.parent,n.parent))}function J6(t){return"string"==typeof t.title||null===t.title}let bI=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=Jt,this.activateEvents=new Te,this.deactivateEvents=new Te,this.attachEvents=new Te,this.detachEvents=new Te,this.parentContexts=fe(S_),this.location=fe(di),this.changeDetector=fe(Tn),this.environmentInjector=fe(as),this.inputBinder=fe(Kx,{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 hme(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:[Bn]})}return t})();class hme{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===S_?this.childContexts:this.parent.get(n,e)}}const Kx=new ee("");let eU=(()=>{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(Yi(([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 rde(t){const n=an(t);if(!n)return null;const e=new Wg(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 D_(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const r=function mme(t,n,e){return n.children.map(i=>{for(const r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return D_(t,i,r);return D_(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=>D_(t,a)),s}}const i=function pme(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=>D_(t,o));return new Aa(i,r)}}const tU="ngNavigationCancelingError";function nU(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=pm(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=iU(!1,Ns.Redirect);return r.url=e,r.navigationBehaviorOptions=i,r}function iU(t,n){const e=new Error(`NavigationCancelingError: ${t||""}`);return e[tU]=!0,e.cancellationCode=n,e}function rU(t){return!!t&&t[tU]}let oU=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=$e({type:t,selectors:[["ng-component"]],standalone:!0,features:[St],decls:1,vars:0,template:function(i,r){1&i&&xe(0,"router-outlet")},dependencies:[bI],encapsulation:2})}return t})();function vI(t){const n=t.children&&t.children.map(vI),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==Jt&&(e.component=oU),e}function uc(t){return t.outlet||Jt}function I_(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 kme{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),gI(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 lme(o.value.snapshot))}),n.children.length&&this.forwardEvent(new ame(n.value.snapshot))}activateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(gI(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),gI(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=I_(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 sU{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class Xx{constructor(n,e){this.component=n,this.route=e}}function Cme(t,n,e){const i=t._root;return A_(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 JZ(t){return null!==Rv(t)}(t)?n.get(t):t:i}function A_(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=bm(n);return t.children.forEach(s=>{(function Tme(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 Sme(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!_I(t,n)||!cc(t.queryParams,n.queryParams);default:return!_I(t,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new sU(i)):(o.data=s.data,o._resolvedData=s._resolvedData),A_(t,n,o.component?a?a.children:null:e,i,r),c&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Xx(a.outlet.component,s))}else s&&M_(n,a,r),r.canActivateChecks.push(new sU(i)),A_(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])=>M_(a,e.getContext(s),r)),r}function M_(t,n,e){const i=bm(t),r=t.value;Object.entries(i).forEach(([o,s])=>{M_(s,r.component?n?n.children.getContext(o):null:n,e)}),e.canDeactivateChecks.push(new Xx(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}function R_(t){return"function"==typeof t}function aU(t){return t instanceof sm||"EmptyError"===t?.name}const Yx=Symbol("INITIAL_VALUE");function ym(){return Yi(t=>Jc(t.map(n=>n.pipe(Nn(1),jr(Yx)))).pipe(mt(n=>{for(const e of n)if(!0!==e){if(e===Yx)return Yx;if(!1===e||e instanceof fm)return e}return!0}),dn(n=>n!==Yx),Nn(1)))}function cU(t){return function jZ(...t){return zO(t)}(Li(n=>{if(pm(n))throw nU(0,n)}),mt(n=>!0===n))}class yI{constructor(n){this.segmentGroup=n||null}}class xI extends Error{constructor(n){super(),this.urlTree=n}}function xm(t){return lm(new yI(t))}class Wme{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 xI(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 wI={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function qme(t,n,e,i,r){const o=kI(t,n,e);return o.matched?(i=function _me(t,n){return t.providers&&!t._injector&&(t._injector=Gy(t.providers,n,`Route: ${t.path}`)),t._injector??n}(n,i),function jme(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 Pme(t){return t&&R_(t.canMatch)}(a)?a.canMatch(n,e):Ga(t,()=>a(n,e)))})).pipe(ym(),cU()):st(!0)}(i,n,e).pipe(mt(s=>!0===s?o:{...wI}))):st(o)}function kI(t,n,e){if("**"===n.path)return function Qme(t){return{matched:!0,parameters:t.length>0?D6(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}(e);if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...wI}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(n.matcher||Sfe)(e,t,n);if(!r)return{...wI};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 lU(t,n,e,i){return e.length>0&&function Yme(t,n,e){return e.some(i=>Zx(t,n,i)&&uc(i)!==Jt)}(t,e,i)?{segmentGroup:new ci(n,Xme(i,new ci(e,t.children))),slicedSegments:[]}:0===e.length&&function Zme(t,n,e){return e.some(i=>Zx(t,n,i))}(t,e,i)?{segmentGroup:new ci(t.segments,Kme(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new ci(t.segments,t.children),slicedSegments:e}}function Kme(t,n,e,i){const r={};for(const o of e)if(Zx(t,n,o)&&!i[uc(o)]){const s=new ci([],{});r[uc(o)]=s}return{...i,...r}}function Xme(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 Zx(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}class tpe{}class rpe{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 Wme(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(n){return new le(4002,`'${n.segmentGroup}'`)}recognize(){const n=lU(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(mt(e=>{const i=new mI([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Jt,this.rootComponentType,null,{}),r=new Aa(i,e),o=new Y6("",r),s=function qfe(t,n,e=null,i=null){return U6(B6(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(Sr(i=>{if(i instanceof xI)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof yI?this.noMatchError(i):i}))}inheritParamsAndData(n,e){const i=n.value,r=fI(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 Xi(r).pipe(dm(o=>{const s=i.children[o],a=function xme(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 Cfe(t,n){return Oi(function kfe(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)),Vx(null),function Efe(t,n){const e=arguments.length>=2;return i=>i.pipe(t?dn((r,o)=>t(r,o,i)):Bl,nI(1),e?Vx(n):T6(()=>new sm))}(),Hr(o=>{if(null===o)return xm(i);const s=dU(o);return function ope(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 Xi(e).pipe(dm(a=>this.processSegmentAgainstRoute(a._injector??n,e,a,i,r,o,s).pipe(Sr(c=>{if(c instanceof yI)return st(null);throw c}))),Ia(a=>!!a),Sr(a=>{if(aU(a))return function epe(t,n,e){return 0===n.length&&!t.children[e]}(i,r,o)?st(new tpe):xm(i);throw a}))}processSegmentAgainstRoute(n,e,i,r,o,s,a){return function Jme(t,n,e,i){return!!(uc(t)===i||i!==Jt&&Zx(n,e,t))&&kI(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}=kI(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(Hr(h=>this.processSegment(n,i,e,h.concat(d),s,!1)))}matchSegmentAgainstRoute(n,e,i,r,o){const s=qme(e,i,r,n);return"**"===i.path&&(e.children={}),s.pipe(Yi(a=>a.matched?this.getChildConfig(n=i._injector??n,i,r).pipe(Yi(({routes:c})=>{const l=i._loadedInjector??n,{consumedSegments:d,remainingSegments:u,parameters:h}=a,f=new mI(d,h,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function ape(t){return t.data||{}}(i),uc(i),i.component??i._loadedComponent??null,i,function cpe(t){return t.resolve||{}}(i)),{segmentGroup:m,slicedSegments:g}=lU(e,d,u,c);if(0===g.length&&m.hasChildren())return this.processChildren(l,c,m).pipe(mt(b=>null===b?null:new Aa(f,b)));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(b=>new Aa(f,b instanceof Aa?[b]:[])))})):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 Hme(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 Ime(t){return t&&R_(t.canLoad)}(a)?a.canLoad(n,e):Ga(t,()=>a(n,e)))})).pipe(ym(),cU())}(n,e,i).pipe(Hr(r=>r?this.configLoader.loadChildren(n,e).pipe(Li(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function Gme(t){return lm(iU(!1,Ns.GuardRejected))}())):st({routes:[],injector:n})}}function spe(t){const n=t.value.routeConfig;return n&&""===n.path}function dU(t){const n=[],e=new Set;for(const i of t){if(!spe(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=dU(i.children);n.push(new Aa(i.value,r))}return n.filter(i=>!e.has(i))}function uU(t){const n=t.children.map(e=>uU(e)).flat();return[t,...n]}function CI(t){return Yi(n=>{const e=t(n);return e?Xi(e).pipe(mt(()=>n)):st(n)})}let hU=(()=>{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[x_]}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:()=>fe(mpe),providedIn:"root"})}return t})(),mpe=(()=>{class t extends hU{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(Ehe))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const wm=new ee("",{providedIn:"root",factory:()=>({})}),km=new ee("");let EI=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=fe(k5)}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(fU),Li(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),um(()=>{this.componentLoaders.delete(e)})),r=new tI(i,()=>new Me).pipe(eI());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 ppe(t,n,e,i){return rd(t.loadChildren()).pipe(mt(fU),Hr(r=>r instanceof W3||Array.isArray(r)?st(r):Xi(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(vI),injector:o}}))}(i,this.compiler,e,this.onLoadEndListener).pipe(um(()=>{this.childrenLoaders.delete(i)})),s=new tI(o,()=>new Me).pipe(eI());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 fU(t){return function gpe(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let TI=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:()=>fe(_pe),providedIn:"root"})}return t})(),_pe=(()=>{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 mU=new ee(""),pU=new ee("");function bpe(t,n,e){const i=t.get(pU),r=t.get(yt);return t.get(ze).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 vpe(t){return new Promise(n=>{d3(n,{injector:t})})}(t))),{onViewTransitionCreated:c}=i;return c&&Ga(t,()=>c({transition:a,from:n,to:e})),s})}let Jx=(()=>{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=fe(EI),this.environmentInjector=fe(as),this.urlSerializer=fe(mm),this.rootContexts=fe(S_),this.location=fe(Fu),this.inputBindingEnabled=null!==fe(Kx,{optional:!0}),this.titleStrategy=fe(hU),this.options=fe(wm,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=fe(TI),this.createViewTransition=fe(mU,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>st(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new ome(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new rme(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:T_,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(dn(o=>0!==o.id),mt(o=>({...o,extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),Yi(o=>{let s=!1,a=!1;return st(o).pipe(Yi(c=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",Ns.SupersededByNewNavigation),us;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),us}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return st(c).pipe(Yi(u=>{const h=this.transitions?.getValue();return this.events.next(new Wx(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),h!==this.transitions?.getValue()?us:Promise.resolve(u)}),function lpe(t,n,e,i,r,o){return Hr(s=>function npe(t,n,e,i,r,o,s="emptyOnly"){return new rpe(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),Li(u=>{o.targetSnapshot=u.targetSnapshot,o.urlAfterRedirects=u.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects};const h=new W6(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 Wx(u,this.urlSerializer.serialize(h),f,m);this.events.next(p);const b=X6(this.rootComponentType).snapshot;return this.currentTransition=o={...c,targetSnapshot:b,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),us}}),Li(c=>{const l=new eme(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:Cme(c.targetSnapshot,c.currentSnapshot,this.rootContexts)},o)),function Fme(t,n){return Hr(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?st({...e,guardsResult:!0}):function Ome(t,n,e,i){return Xi(t).pipe(Hr(r=>function zme(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=I_(n)??r,l=vm(a,c);return rd(function Rme(t){return t&&R_(t.canDeactivate)}(l)?l.canDeactivate(t,n,e,i):Ga(c,()=>l(t,n,e,i))).pipe(Ia())})).pipe(ym()):st(!0)}(r.component,r.route,e,n,i)),Ia(r=>!0!==r,!0))}(s,i,r,t).pipe(Hr(a=>a&&function Dme(t){return"boolean"==typeof t}(a)?function Nme(t,n,e,i){return Xi(n).pipe(dm(r=>y_(function Vme(t,n){return null!==t&&n&&n(new sme(t)),st(!0)}(r.route.parent,i),function Lme(t,n){return null!==t&&n&&n(new cme(t)),st(!0)}(r.route,i),function Ume(t,n,e){const i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function Eme(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=I_(s.node)??e,d=vm(c,l);return rd(function Mme(t){return t&&R_(t.canActivateChild)}(d)?d.canActivateChild(i,t):Ga(l,()=>d(i,t))).pipe(Ia())})).pipe(ym())));return st(o).pipe(ym())}(t,r.path,e),function Bme(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=I_(n)??e,a=vm(o,s);return rd(function Ame(t){return t&&R_(t.canActivate)}(a)?a.canActivate(n,t):Ga(s,()=>a(n,t))).pipe(Ia())}));return st(r).pipe(ym())}(t,r.route,e))),Ia(r=>!0!==r,!0))}(i,o,t,n):st(a)),mt(a=>({...e,guardsResult:a})))})}(this.environmentInjector,c=>this.events.next(c)),Li(c=>{if(o.guardsResult=c.guardsResult,pm(c.guardsResult))throw nU(0,c.guardsResult);const l=new tme(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),dn(c=>!!c.guardsResult||(this.cancelNavigationTransition(c,"",Ns.GuardRejected),!1)),CI(c=>{if(c.guards.canActivateChecks.length)return st(c).pipe(Li(l=>{const d=new nme(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),Yi(l=>{let d=!1;return st(l).pipe(function dpe(t,n){return Hr(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 uU(c))s.add(l);let a=0;return Xi(s).pipe(dm(c=>o.has(c)?function upe(t,n,e,i){const r=t.routeConfig,o=t._resolve;return void 0!==r?.title&&!J6(r)&&(o[x_]=r.title),function hpe(t,n,e,i){const r=iI(t);if(0===r.length)return st({});const o={};return Xi(r).pipe(Hr(s=>function fpe(t,n,e,i){const r=I_(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(Ia(),Li(a=>{o[s]=a}))),nI(1),Bx(o),Sr(s=>aU(s)?us:lm(s)))}(o,t,n,i).pipe(mt(s=>(t._resolvedData=s,t.data=fI(t,t.parent,e).resolve,null)))}(c,i,t,n):(c.data=fI(c,c.parent,t).resolve,st(void 0))),Li(()=>a++),nI(1),Hr(c=>a===s.size?st(e):us))})}(this.paramsInheritanceStrategy,this.environmentInjector),Li({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",Ns.NoDataFromResolver)}}))}),Li(l=>{const d=new ime(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),CI(c=>{const l=d=>{const u=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(d.routeConfig).pipe(Li(h=>{d.component=h}),mt(()=>{})));for(const h of d.children)u.push(...l(h));return u};return Jc(l(c.targetSnapshot.root)).pipe(Vx(null),Nn(1))}),CI(()=>this.afterPreactivation()),Yi(()=>{const{currentSnapshot:c,targetSnapshot:l}=o,d=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return d?Xi(d).pipe(mt(()=>o)):st(o)}),mt(c=>{const l=function fme(t,n,e){const i=D_(t,n._root,e?e._root:void 0);return new K6(i,n)}(e.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=o={...c,targetRouterState:l},this.currentNavigation.targetRouterState=l,o}),Li(()=>{this.events.next(new lI)}),((t,n,e,i)=>mt(r=>(new kme(n,r.targetRouterState,r.currentRouterState,e,i).activate(t),r)))(this.rootContexts,e.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),Nn(1),Li({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}}),Et(this.transitionAbortSubject.pipe(Li(c=>{throw c}))),um(()=>{!s&&!a&&this.cancelNavigationTransition(o,"",Ns.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),Sr(c=>{if(a=!0,rU(c))this.events.next(new gm(o.id,this.urlSerializer.serialize(o.extractedUrl),c.message,c.cancellationCode)),function gme(t){return rU(t)&&pm(t.url)}(c)?this.events.next(new dI(c.url)):o.resolve(!1);else{this.events.next(new Qx(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 us}))}))}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 ype(t){return t!==T_}let xpe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:()=>fe(kpe),providedIn:"root"})}return t})();class wpe{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let kpe=(()=>{class t extends wpe{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})(),gU=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=we({token:t,factory:()=>fe(Cpe),providedIn:"root"})}return t})(),Cpe=(()=>{class t extends gU{constructor(){super(...arguments),this.location=fe(Fu),this.urlSerializer=fe(mm),this.options=fe(wm,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=fe(TI),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new fm,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=X6(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 Wx)this.stateMemento=this.createStateMemento();else if(e instanceof _m)this.rawUrlTree=i.initialUrl;else if(e instanceof W6){if("eager"===this.urlUpdateStrategy&&!i.extras.skipLocationChange){const r=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(r,i)}}else e instanceof lI?(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 Qx?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 P_=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(P_||{});function _U(t,n){t.events.pipe(dn(e=>e instanceof dc||e instanceof gm||e instanceof Qx||e instanceof _m),mt(e=>e instanceof dc||e instanceof _m?P_.COMPLETE:e instanceof gm&&(e.code===Ns.Redirect||e.code===Ns.SupersededByNewNavigation)?P_.REDIRECTING:P_.FAILED),dn(e=>e!==P_.REDIRECTING),Nn(1)).subscribe(()=>{n()})}function Epe(t){throw t}const Tpe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Spe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let hs=(()=>{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=fe(f5),this.stateManager=fe(gU),this.options=fe(wm,{optional:!0})||{},this.pendingTasks=fe(Yl),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=fe(Jx),this.urlSerializer=fe(mm),this.location=fe(Fu),this.urlHandlingStrategy=fe(TI),this._events=new Me,this.errorHandler=this.options.errorHandler||Epe,this.navigated=!1,this.routeReuseStrategy=fe(xpe),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=fe(km,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!fe(Kx,{optional:!0}),this.eventsSubscription=new $t,this.isNgZoneEnabled=fe(ze)instanceof ze&&ze.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 dI){const s=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),a={info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||ype(r.source)};this.scheduleNavigation(s,T_,null,a,{resolve:r.resolve,reject:r.reject,promise:r.promise})}(function Ipe(t){return!(t instanceof lI||t instanceof dI)})(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),T_,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(vI),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=B6(r?r.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof e[0]||!e[0].startsWith("/"))&&(e=[]),u=this.currentUrlTree.root}return U6(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,T_,null,i)}navigate(e,i={skipLocationChange:!1}){return function Dpe(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 _U(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 bU{}let Rpe=(()=>{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(dn(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=Gy(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 Xi(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(Hr(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?Xi([o,this.loader.loadComponent(i)]).pipe(am()):o})}static#e=this.\u0275fac=function(i){return new(i||t)(Y(hs),Y(k5),Y(as),Y(bU),Y(EI))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const DI=new ee("");let vU=(()=>{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 Wx?(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){Dy()};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();function hc(t,n){return{\u0275kind:t,\u0275providers:n}}function xU(){const t=fe(Di);return n=>{const e=t.get(Qc);if(n!==e.components[0])return;const i=t.get(hs),r=t.get(wU);1===t.get(II)&&i.initialNavigation(),t.get(kU,null,mn.Optional)?.setUpPreloading(),t.get(DI,null,mn.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const wU=new ee("",{factory:()=>new Me}),II=new ee("",{providedIn:"root",factory:()=>1}),kU=new ee("");function Npe(t){return hc(0,[{provide:kU,useExisting:Rpe},{provide:bU,useExisting:t}])}function Vpe(t){return hc(9,[{provide:mU,useValue:bpe},{provide:pU,useValue:{skipNextTransition:!!t?.skipInitialTransition,...t}}])}const CU=new ee("ROUTER_FORROOT_GUARD"),Bpe=[Fu,{provide:mm,useClass:rI},hs,S_,{provide:od,useFactory:function yU(t){return t.routerState.root},deps:[hs]},EI,[]];let EU=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[Bpe,[],{provide:km,multi:!0,useValue:e},{provide:CU,useFactory:jpe,deps:[[hs,new Hl,new df]]},{provide:wm,useValue:i||{}},i?.useHash?{provide:Pu,useClass:lde}:{provide:Pu,useClass:m8},{provide:DI,useFactory:()=>{const t=fe(Tue),n=fe(ze),e=fe(wm),i=fe(Jx),r=fe(mm);return e.scrollOffset&&t.setOffset(e.scrollOffset),new vU(r,i,t,n,e)}},i?.preloadingStrategy?Npe(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?$pe(i):[],i?.bindToComponentInputs?hc(8,[eU,{provide:Kx,useExisting:eU}]).\u0275providers:[],i?.enableViewTransitions?Vpe().\u0275providers:[],[{provide:TU,useFactory:xU},{provide:cD,multi:!0,useExisting:TU}]]}}static forChild(e){return{ngModule:t,providers:[{provide:km,multi:!0,useValue:e}]}}static#e=this.\u0275fac=function(i){return new(i||t)(Y(CU,8))};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({})}return t})();function jpe(t){return"guarded"}function $pe(t){return["disabled"===t.initialNavigation?hc(3,[{provide:sD,multi:!0,useFactory:()=>{const n=fe(hs);return()=>{n.setUpLocationChangeListener()}}},{provide:II,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?hc(2,[{provide:II,useValue:0},{provide:sD,multi:!0,deps:[Di],useFactory:n=>{const e=n.get(ade,Promise.resolve());return()=>e.then(()=>new Promise(i=>{const r=n.get(hs),o=n.get(wU);_U(r,()=>{i(!0)}),n.get(Jx).afterPreactivation=()=>(i(!0),o.closed?st(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const TU=new ee("");class ew{}function AI(t){return t&&"function"==typeof t.connect&&!(t instanceof tI)}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 F_=new ee("_ViewRepeater");class SU{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 MI{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 RI=(()=>{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 ko(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 PI={now:()=>(PI.delegate||Date).now(),delegate:void 0};class tw extends Me{constructor(n=1/0,e=1/0,i=PI){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 fs?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 fs;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof fs?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 Wpe{encodeKey(n){return IU(n)}encodeValue(n){return IU(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const Qpe=/%(\d[a-f0-9])/gi,Kpe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function IU(t){return encodeURIComponent(t).replace(Qpe,(n,e)=>Kpe[e]??n)}function rw(t){return`${t}`}class sd{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new Wpe,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function qpe(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(rw):[rw(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(rw(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(rw(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 Xpe{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 AU(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function MU(t){return typeof Blob<"u"&&t instanceof Blob}function RU(t){return typeof FormData<"u"&&t instanceof FormData}class O_{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 Ype(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 fs,this.context??=new Xpe,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 O_(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 FI{constructor(n,e=N_.Ok,i="OK"){this.headers=n.headers||new fs,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 ow extends FI{constructor(n={}){super(n),this.type=ad.ResponseHeader}clone(n={}){return new ow({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 FI{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 FI{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 N_=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}(N_||{});function OI(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 O_)o=e;else{let c,l;c=r.headers instanceof fs?r.headers:new fs(r.headers),r.params&&(l=r.params instanceof sd?r.params:new sd({fromObject:r.params})),o=new O_(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 O_||"events"===r.observe)return s;const a=s.pipe(dn(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,OI(r,i))}post(e,i,r={}){return this.request("POST",e,OI(r,i))}put(e,i,r={}){return this.request("PUT",e,OI(r,i))}static#e=this.\u0275fac=function(i){return new(i||t)(Y(nw))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();function FU(t,n){return n(t)}function ige(t,n){return(e,i)=>n.intercept(e,{handle:r=>t(r,i)})}const oge=new ee(""),L_=new ee(""),OU=new ee(""),NU=new ee("");function sge(){let t=null;return(n,e)=>{null===t&&(t=(fe(oge,{optional:!0})??[]).reduceRight(ige,FU));const i=fe(Yl),r=i.add();return t(n,e).pipe(um(()=>i.remove(r)))}}let LU=(()=>{class t extends nw{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null,this.pendingTasks=fe(Yl);const r=fe(NU,{optional:!0});this.backend=r??e}handle(e){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(L_),...this.injector.get(OU,[])]));this.chain=r.reduceRight((o,s)=>function rge(t,n,e){return(i,r)=>Ga(e,()=>n(i,o=>t(o,r)))}(o,s,this.injector),FU)}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(iw),Y(as))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();const uge=/^\)\]\}',?\n/;let BU=(()=>{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?Xi(i.\u0275loadImpl()):st(null)).pipe(Yi(()=>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 fs(s.getAllResponseHeaders()),b=function hge(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 ow({headers:p,status:s.status,statusText:g,url:b}),c},d=()=>{let{headers:g,status:p,statusText:b,url:y}=l(),k=null;p!==N_.NoContent&&(k=typeof s.response>"u"?s.responseText:s.response),0===p&&(p=k?N_.Ok:0);let D=p>=200&&p<300;if("json"===e.responseType&&"string"==typeof k){const U=k;k=k.replace(uge,"");try{k=""!==k?JSON.parse(k):null}catch(A){k=U,D&&(D=!1,k={error:A,text:k})}}D?(o.next(new Lu({body:k,headers:g,status:p,statusText:b,url:y||void 0})),o.complete()):o.error(new Cm({error:k,headers:g,status:p,statusText:b,url:y||void 0}))},u=g=>{const{url:p}=l(),b=new Cm({error:g,status:s.status||0,statusText:s.statusText||"Unknown Error",url:p||void 0});o.error(b)};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(F8))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();const VI=new ee(""),UU=new ee("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),zU=new ee("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class HU{}let pge=(()=>{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=C8(e,this.cookieName),this.lastCookieString=e),this.lastToken}static#e=this.\u0275fac=function(i){return new(i||t)(Y(yt),Y($c),Y(UU))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();function gge(t,n){const e=t.url.toLowerCase();if(!fe(VI)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const i=fe(HU).getToken(),r=fe(zU);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 _ge(...t){const n=[cd,BU,LU,{provide:nw,useExisting:LU},{provide:iw,useExisting:BU},{provide:L_,useValue:gge,multi:!0},{provide:VI,useValue:!0},{provide:HU,useClass:pge}];for(const e of t)n.push(...e.\u0275providers);return function ag(t){return{\u0275providers:t}}(n)}const jU=new ee("");function bge(){return function Vu(t,n){return{\u0275kind:t,\u0275providers:n}}(ld.LegacyInterceptors,[{provide:jU,useFactory:sge},{provide:L_,useExisting:jU,multi:!0}])}let BI,vge=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({providers:[_ge(bge())]})}return t})();try{BI=typeof Intl<"u"&&Intl.v8BreakIterator}catch{BI=!1}let Em,Hn=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?R8(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&&!BI)&&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 YU=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function ZU(){if(Em)return Em;if("object"!=typeof document||!document)return Em=new Set(YU),Em;let t=document.createElement("input");return Em=new Set(YU.filter(n=>(t.setAttribute("type",n),t.type===n))),Em}let V_;function Ma(t){return function Ege(){if(null==V_&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>V_=!0}))}finally{V_=V_||!1}return V_}()?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 aw,Bu,UI;function JU(){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 B_(){if("object"!=typeof document||!document)return fc.NORMAL;if(null==aw){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),aw=fc.NORMAL,0===t.scrollLeft&&(t.scrollLeft=1,aw=0===t.scrollLeft?fc.NEGATED:fc.INVERTED),t.remove()}return aw}function zI(t){if(function Tge(){if(null==UI){const t=typeof document<"u"?document.head:null;UI=!(!t||!t.createShadowRoot&&!t.attachShadow)}return UI}()){const n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function cw(){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 HI(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Co(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}class Bge extends $t{constructor(n,e){super()}schedule(n,e=0){return this}}const uw={setInterval(t,n,...e){const{delegate:i}=uw;return i?.setInterval?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=uw;return(n?.clearInterval||clearInterval)(t)},delegate:void 0};class $I extends Bge{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 uw.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&&uw.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 z_{constructor(n,e=z_.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}}z_.now=PI.now;class GI extends z_{constructor(n,e=z_.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 H_=new GI($I),Uge=H_;function nl(t,n=H_){return Oi((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 WI(t){return dn((n,e)=>t<=e)}function il(t,n=Bl){return t=t??zge,Oi((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 zge(t,n){return t===n}function Dr(t){return null!=t&&"false"!=`${t}`}function hd(t,n=0){return t9(t)?Number(t):n}function t9(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function j_(t){return Array.isArray(t)?t:[t]}function dr(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Bi(t){return t instanceof Ge?t.nativeElement:t}let n9=(()=>{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})(),jge=(()=>{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(n9))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),i9=(()=>{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 Te,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(jge),w(Ge),w(ze))};static#t=this.\u0275dir=ce({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[W.HasDecoratorInputTransform,"cdkObserveContentDisabled","disabled",Be],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],standalone:!0,features:[Zt]})}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=kt({providers:[n9]})}return t})();const r9=new Set;let Uu,$ge=(()=>{class t{constructor(e,i){this._platform=e,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Wge}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function Gge(t,n){if(!r9.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),r9.add(t))}catch(e){console.error(e)}}(e,this._nonce),this._matchMedia(e)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Hn),Y(dT,8))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Wge(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let o9=(()=>{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 s9(j_(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let o=Jc(s9(j_(e)).map(s=>this._registerQuery(s).observable));return o=y_(o.pipe(Nn(1)),o.pipe(WI(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(jr(i),mt(({matches:s})=>({query:e,matches:s})),Et(this._destroySubject)),mql:i};return this._queries.set(e,o),o}static#e=this.\u0275fac=function(i){return new(i||t)(Y($ge),Y(ze))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function s9(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}function hw(t,n,e){const i=fw(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=fw(t,n);e=e.trim();const r=i.filter(o=>o!==e);r.length?t.setAttribute(n,r.join(" ")):t.removeAttribute(n)}function fw(t,n){return t.getAttribute(n)?.match(/\S+/g)??[]}const c9="cdk-describedby-message",mw="cdk-describedby-host";let QI=0,l9=(()=>{class t{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+QI++,this._document=e,this._id=fe(kg)+"-"+QI++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;const o=KI(i,r);"string"!=typeof i?(d9(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=KI(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(`[${mw}="${this._id}"]`);for(let i=0;i0!=r.indexOf(c9));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const r=this._messageRegistry.get(i);hw(e,"aria-describedby",r.messageElement.id),e.setAttribute(mw,this._id),r.referenceCount++}_removeMessageReference(e,i){const r=this._messageRegistry.get(i);r.referenceCount--,Sm(e,"aria-describedby",r.messageElement.id),e.removeAttribute(mw)}_isElementDescribedByMessage(e,i){const r=fw(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(yt),Y(Hn))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function KI(t,n){return"string"==typeof t?`${n||""}/${t}`:t}function d9(t,n){t.id||(t.id=`${c9}-${n}-${QI++}`)}class u9{constructor(n,e){this._items=n,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Me,this._typeaheadSubscription=$t.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())):Hy(n)&&(this._effectRef=function d8(t,n){ec("NgSignals"),!n?.injector&&Gv();const e=n?.injector??fe(Di),i=!0!==n?.manualCleanup?e.get(Ef):null,r=new ide(e.get(ede),t,typeof Zone>"u"?null:Zone.current,i,e,n?.allowSignalWrites??!1),o=e.get(Tn,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(Li(e=>this._pressedLetters.push(e)),nl(n),dn(()=>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 Hy(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 h9 extends u9{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}}class XI extends u9{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 pw=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Kge(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 Qge(t){try{return t.frameElement}catch{return null}}(function i_e(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(e));if(i&&(-1===m9(i)||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=m9(e);return e.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function t_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 n_e(t){return!function Yge(t){return function Jge(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function Xge(t){let n=t.nodeName.toLowerCase();return"input"===n||"select"===n||"button"===n||"textarea"===n}(t)||function Zge(t){return function e_e(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||f9(t))}(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Hn))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function f9(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let n=t.getAttribute("tabindex");return!(!n||isNaN(parseInt(n,10)))}function m9(t){if(!f9(t))return null;const n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}class p9{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 YI=(()=>{class t{constructor(e,i,r){this._checker=e,this._ngZone=i,this._document=r}create(e,i=!1){return new p9(e,this._checker,this._ngZone,this._document,i)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(pw),Y(ze),Y(yt))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function gw(t){return 0===t.buttons||0===t.detail}function _w(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 r_e=new ee("cdk-input-modality-detector-options"),o_e={ignoreKeys:[18,17,224,91,16]},Dm=Ma({passive:!0,capture:!0});let s_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(gw(s)?"keyboard":"mouse"),this._mostRecentTarget=Ls(s))},this._onTouchstart=s=>{_w(s)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Ls(s))},this._options={...o_e,...o},this.modalityDetected=this._modality.pipe(WI(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(Hn),Y(ze),Y(yt),Y(r_e,8))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const a_e=new ee("liveAnnouncerElement",{providedIn:"root",factory:function c_e(){return null}}),l_e=new ee("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let d_e=0,_9=(()=>{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||bw.IMMEDIATE}monitor(e,i=!1){const r=Bi(e);if(!this._platform.isBrowser||1!==r.nodeType)return st();const o=zI(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===bw.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===bw.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,vw),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,vw)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Et(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,vw),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,vw),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 Te}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(Ge),w(ea))};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 b9="cdk-high-contrast-black-on-white",v9="cdk-high-contrast-white-on-black",ZI="cdk-high-contrast-active";let y9=(()=>{class t{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=fe(o9).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(ZI,b9,v9),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();i===zu.BLACK_ON_WHITE?e.add(ZI,b9):i===zu.WHITE_ON_BLACK&&e.add(ZI,v9)}}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Hn),Y(yt))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),x9=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(i){return new(i||t)(Y(y9))};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({imports:[qI]})}return t})();const f_e=new ee("cdk-dir-doc",{providedIn:"root",factory:function m_e(){return fe(yt)}}),p_e=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let no=(()=>{class t{constructor(e){this.value="ltr",this.change=new Te,e&&(this.value=function g_e(t){const n=t?.toLowerCase()||"";return"auto"===n&&typeof navigator<"u"&&navigator?.language?p_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(f_e,8))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),$_=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({})}return t})();const __e=["text"],b_e=[[["mat-icon"]],"*"],v_e=["mat-icon","*"];function y_e(t,n){if(1&t&&xe(0,"mat-pseudo-checkbox",1),2&t){const e=P();E("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function x_e(t,n){1&t&&xe(0,"mat-pseudo-checkbox",3),2&t&&E("disabled",P().disabled)}function w_e(t,n){if(1&t&&(_(0,"span",4),C(1),v()),2&t){const e=P();x(),Ze("(",e.group.label,")")}}const k_e=["mat-internal-form-field",""],C_e=["*"];let E_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})(),T_e=(()=>{class t{static#e=this.COMPLEX="375ms";static#t=this.ENTERING="225ms";static#n=this.EXITING="195ms"}return t})();const D_e=new ee("mat-sanity-checks",{providedIn:"root",factory:function S_e(){return!0}});let Ot=(()=>{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!HI()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}static#e=this.\u0275fac=function(i){return new(i||t)(Y(y9),Y(D_e,8),Y(yt))};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({imports:[$_,$_]})}return t})();class JI{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 C9=(()=>{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 ta=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}(ta||{});class F_e{constructor(n,e,i,r=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r,this.state=ta.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}}const E9=Ma({passive:!0,capture:!0});class O_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 T9={enterDuration:225,exitDuration:150},S9=Ma({passive:!0,capture:!0}),D9=["mousedown","touchstart"],I9=["mouseup","mouseleave","touchend","touchcancel"];class W_{static#e=this._eventManager=new O_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={...T9,...i.animation};i.centered&&(n=r.left+r.width/2,e=r.top+r.height/2);const s=i.radius||function L_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 F_e(this,d,i,m);d.style.transform="scale3d(1, 1, 1)",g.state=ta.FADING_IN,i.persistent||(this._mostRecentTransientRipple=g);let p=null;return!m&&(l||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const b=()=>this._finishRippleTransition(g),y=()=>this._destroyRipple(g);d.addEventListener("transitionend",b),d.addEventListener("transitioncancel",y),p={onTransitionEnd:b,onTransitionCancel:y}}),this._activeRipples.set(g,p),(m||!l)&&this._finishRippleTransition(g),g}fadeOutRipple(n){if(n.state===ta.FADING_OUT||n.state===ta.HIDDEN)return;const e=n.element,i={...T9,...n.config.animation};e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=ta.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,D9.forEach(i=>{W_._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(()=>{I9.forEach(e=>{this._triggerElement.addEventListener(e,this,S9)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){n.state===ta.FADING_IN?this._startFadeOutTransition(n):n.state===ta.FADING_OUT&&this._destroyRipple(n)}_startFadeOutTransition(n){const e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=ta.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=ta.HIDDEN,null!==e&&(n.element.removeEventListener("transitionend",e.onTransitionEnd),n.element.removeEventListener("transitioncancel",e.onTransitionCancel)),n.element.remove()}_onMousedown(n){const e=gw(n),i=this._lastTouchStartEvent&&Date.now(){!n.config.persistent&&(n.state===ta.VISIBLE||n.config.terminateOnPointerUp&&n.state===ta.FADING_IN)&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const n=this._triggerElement;n&&(D9.forEach(e=>W_._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&I9.forEach(e=>n.removeEventListener(e,this,S9)))}}const yw=new ee("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 W_(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(Ge),w(ze),w(Hn),w(yw,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})(),q_=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({imports:[Ot,Ot]})}return t})(),V_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=$e({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})(),A9=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({imports:[Ot]})}return t})();const e2=new ee("MAT_OPTION_PARENT_COMPONENT"),t2=new ee("MatOptgroup");let B_e=0;class M9{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-"+B_e++,this.onSelectionChange=new Te,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)&&!Co(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 M9(this,e))}static#e=this.\u0275fac=function(i){return new(i||t)(w(Ge),w(Tn),w(e2,8),w(t2,8))};static#t=this.\u0275cmp=$e({type:t,selectors:[["mat-option"]],viewQuery:function(i,r){if(1&i&&vt(__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&&H("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",Be]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[Zt,St],ngContentSelectors:v_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(b_e),q(0,y_e,1,2,"mat-pseudo-checkbox",1),ct(1),_(2,"span",2,0),ct(4,1),v(),q(5,x_e,1,1,"mat-pseudo-checkbox",3)(6,w_e,2,1,"span",4),xe(7,"div",5)),2&i&&(gn(0,r.multiple?0:-1),x(5),gn(5,r.multiple||!r.selected||r.hideSingleSelectionIndicator?-1:5),x(),gn(6,r.group&&r.group._inert?6:-1),x(),E("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple))},dependencies:[V_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 R9(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 xw=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({imports:[q_,Ot,A9]})}return t})();const F9={capture:!0},O9=["focus","click","mouseenter","touchstart"],n2="mat-ripple-loader-uninitialized",r2="mat-ripple-loader-class-name",N9="mat-ripple-loader-centered",ww="mat-ripple-loader-disabled";let U_e=(()=>{class t{constructor(){this._document=fe(yt,{optional:!0}),this._animationMode=fe(pi,{optional:!0}),this._globalRippleOptions=fe(yw,{optional:!0}),this._platform=fe(Hn),this._ngZone=fe(ze),this._hosts=new Map,this._onInteraction=e=>{if(!(e.target instanceof HTMLElement))return;const r=e.target.closest(`[${n2}]`);r&&this._createRipple(r)},this._ngZone.runOutsideAngular(()=>{for(const e of O9)this._document?.addEventListener(e,this._onInteraction,F9)})}ngOnDestroy(){const e=this._hosts.keys();for(const i of e)this.destroyRipple(i);for(const i of O9)this._document?.removeEventListener(i,this._onInteraction,F9)}configureRipple(e,i){e.setAttribute(n2,""),(i.className||!e.hasAttribute(r2))&&e.setAttribute(r2,i.className||""),i.centered&&e.setAttribute(N9,""),i.disabled&&e.setAttribute(ww,"")}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(ww,""):e.removeAttribute(ww)}_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(r2)),e.append(r);const o=new rl(new Ge(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(N9),o.disabled=e.hasAttribute(ww),this.attachRipple(e,o),o}attachRipple(e,i){e.removeAttribute(n2),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})(),o2=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=$e({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:k_e,ngContentSelectors:C_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 L9=["mat-button",""],V9=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],B9=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],U9=".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}",H_e=["mat-icon-button",""],j_e=["*"],$_e=new ee("MAT_BUTTON_CONFIG"),G_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 s2=(()=>{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=fe(ea),this._rippleLoader=fe(U_e),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;const s=fe($_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 G_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){Dy()};static#t=this.\u0275dir=ce({type:t,inputs:{color:"color",disableRipple:[W.HasDecoratorInputTransform,"disableRipple","disableRipple",Be],disabled:[W.HasDecoratorInputTransform,"disabled","disabled",Be],ariaDisabled:[W.HasDecoratorInputTransform,"aria-disabled","ariaDisabled",Be],disabledInteractive:[W.HasDecoratorInputTransform,"disabledInteractive","disabledInteractive",Be]},features:[Zt]})}return t})(),W_e=(()=>{class t extends s2{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){Dy()};static#t=this.\u0275dir=ce({type:t,inputs:{tabIndex:[W.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>null==e?void 0:xo(e)]},features:[Zt,tt]})}return t})(),Eo=(()=>{class t extends s2{constructor(e,i,r,o){super(e,i,r,o)}static#e=this.\u0275fac=function(i){return new(i||t)(w(Ge),w(Hn),w(ze),w(pi,8))};static#t=this.\u0275cmp=$e({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:L9,ngContentSelectors:B9,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(V9),xe(0,"span",0),ct(1),_(2,"span",1),ct(3,1),v(),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})(),q_e=(()=>{class t extends W_e{constructor(e,i,r,o){super(e,i,r,o)}static#e=this.\u0275fac=function(i){return new(i||t)(w(Ge),w(Hn),w(ze),w(pi,8))};static#t=this.\u0275cmp=$e({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:L9,ngContentSelectors:B9,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(V9),xe(0,"span",0),ct(1),_(2,"span",1),ct(3,1),v(),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)}',U9],encapsulation:2,changeDetection:0})}return t})(),na=(()=>{class t extends s2{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(Ge),w(Hn),w(ze),w(pi,8))};static#t=this.\u0275cmp=$e({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:H_e,ngContentSelectors:j_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}',U9],encapsulation:2,changeDetection:0})}return t})(),z9=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({imports:[Ot,q_,Ot]})}return t})();var Ft=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}(Ft||{});const ol="*";function Yn(t,n){return{type:Ft.Trigger,name:t,definitions:n,options:{}}}function qt(t,n=null){return{type:Ft.Animate,styles:n,timings:t}}function a2(t,n=null){return{type:Ft.Group,steps:t,options:n}}function We(t){return{type:Ft.Style,styles:t,offset:null}}function _n(t,n,e){return{type:Ft.State,name:t,styles:n,options:e}}function Im(t){return{type:Ft.Keyframes,steps:t}}function Kt(t,n,e=null){return{type:Ft.Transition,expr:t,animation:n,options:e}}function kw(t=null){return{type:Ft.AnimateChild,options:t}}function Cw(t,n,e=null){return{type:Ft.Query,selector:t,animation:n,options:e}}class Q_{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 H9{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 l2{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 Am extends l2{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 l2{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 e0e extends l2{constructor(n){super(),this.element=n instanceof Ge?n.nativeElement:n}}class Ew{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof Am?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof sl?(this._attachedPortal=n,this.attachTemplatePortal(n)):this.attachDomPortal&&n instanceof e0e?(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 t0e 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||Di.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 n0e=(()=>{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 Te,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(yt))};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})(),Mm=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({})}return t})();const i0e=["addListener","removeListener"],r0e=["addEventListener","removeEventListener"],o0e=["on","off"];function Ra(t,n,e,i){if(On(e)&&(i=e,e=void 0),i)return Ra(t,n,e).pipe(JD(i));const[r,o]=function c0e(t){return On(t.addEventListener)&&On(t.removeEventListener)}(t)?r0e.map(s=>a=>t[s](n,a,e)):function s0e(t){return On(t.addListener)&&On(t.removeListener)}(t)?i0e.map(j9(t,n)):function a0e(t){return On(t.on)&&On(t.off)}(t)?o0e.map(j9(t,n)):[];if(!r&&YD(t))return Hr(s=>Ra(s,n,e))(wo(t));if(!r)throw new TypeError("Invalid event target");return new jn(s=>{const a=(...c)=>s.next(1o(a)})}function j9(t,n){return e=>i=>t[e](n,i)}const K_={schedule(t){let n=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=K_;i&&(n=i.requestAnimationFrame,e=i.cancelAnimationFrame);const r=n(o=>{e=void 0,t(o)});return new $t(()=>e?.(r))},requestAnimationFrame(...t){const{delegate:n}=K_;return(n?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){const{delegate:n}=K_;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0},$9=new class d0e extends GI{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 l0e extends $I{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=K_.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&&(K_.cancelAnimationFrame(e),n._scheduled=void 0)}});let d2,u0e=1;const Tw={};function G9(t){return t in Tw&&(delete Tw[t],!0)}const h0e={setImmediate(t){const n=u0e++;return Tw[n]=!0,d2||(d2=Promise.resolve()),d2.then(()=>G9(n)&&t()),n},clearImmediate(t){G9(t)}},{setImmediate:f0e,clearImmediate:m0e}=h0e,Sw={setImmediate(...t){const{delegate:n}=Sw;return(n?.setImmediate||f0e)(...t)},clearImmediate(t){const{delegate:n}=Sw;return(n?.clearImmediate||m0e)(t)},delegate:void 0},u2=new class g0e extends GI{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 p0e extends $I{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=Sw.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&&(Sw.clearImmediate(e),n._scheduled===e&&(n._scheduled=void 0))}});function X_(t=0,n,e=Uge){let i=-1;return null!=n&&(x6(n)?e=n:i=n),new jn(r=>{let o=function b0e(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 W9(t,n=H_){return function _0e(t){return Oi((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||wo(t(l)).subscribe(o=ki(e,a,c))},()=>{s=!0,(!i||!o||o.closed)&&e.complete()}))})}(()=>X_(t,n))}let Y_=(()=>{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(W9(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(dn(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(ze),Y(Hn),Y(yt,8))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Dw=(()=>{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(Et(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&&B_()!=fc.NORMAL?(null!=e.left&&(e.right=i.scrollWidth-i.clientWidth-e.left),B_()==fc.INVERTED?e.left=e.right:B_()==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;JU()?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&&B_()==fc.INVERTED?e==i?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:s&&B_()==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(Ge),w(Y_),w(ze),w(no,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(W9(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(Hn),Y(ze),Y(yt,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=kt({})}return t})(),h2=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({imports:[$_,ll,$_,ll]})}return t})();function q9(t,n=!1){return Oi((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=v_(t),e=function dfe(t,n){return"number"==typeof ZD(t)?t.pop():n}(t,1/0),i=t;return i.length?1===i.length?wo(i[0]):am(e)(Xi(i,n)):us}const Q9=JU();class x0e{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=dr(-this._previousScrollPosition.left),n.style.top=dr(-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"),Q9&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Q9&&(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 w0e{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(dn(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 K9{enable(){}disable(){}attach(){}}function f2(t,n){return n.some(e=>t.bottome.bottom||t.righte.right)}function X9(t,n){return n.some(e=>t.tope.bottom||t.lefte.right)}class k0e{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();f2(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 C0e=(()=>{class t{constructor(e,i,r,o){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new K9,this.close=s=>new w0e(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new x0e(this._viewportRuler,this._document),this.reposition=s=>new k0e(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Y_),Y(cl),Y(ze),Y(yt))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class Rm{constructor(n){if(this.scrollStrategy=new K9,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 E0e{constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}}let Y9=(()=>{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(yt))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),T0e=(()=>{class t extends Y9{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(yt),Y(ze,8))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),S0e=(()=>{class t extends Y9{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(yt),Y(Hn),Y(ze,8))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Iw=(()=>{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||HI()){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=dr(this._config.width),n.height=dr(this._config.height),n.minWidth=dr(this._config.minWidth),n.minHeight=dr(this._config.minHeight),n.maxWidth=dr(this._config.maxWidth),n.maxHeight=dr(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=j_(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(Et(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 Z9="cdk-overlay-connected-position-bounding-box",D0e=/([A-Za-z%]+)$/;class I0e{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=$t.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(n)}attach(n){this._validatePositions(),n.hostElement.classList.add(Z9),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(Z9),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=ez(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=J9(this._overlayRef.getConfig().minHeight),a=J9(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=ez(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=dr(i.height),r.top=dr(i.top),r.bottom=dr(i.bottom),r.width=dr(i.width),r.left=dr(i.left),r.right=dr(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=dr(o)),s&&(r.maxWidth=dr(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=dr(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=dr(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=dr(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=dr(o.x),r}_getScrollVisibility(){const n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:X9(n,i),isOriginOutsideView:f2(n,i),isOverlayClipped:X9(e,i),isOverlayOutsideView:f2(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&&j_(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 Ge)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 J9(t){if("number"!=typeof t&&null!=t){const[n,e]=t.split(D0e);return e&&"px"!==e?null:parseFloat(n)}return t||null}function ez(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 tz="cdk-global-overlay-wrapper";class M0e{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(tz),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(tz),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}}let R0e=(()=>{class t{constructor(e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new M0e}flexibleConnectedTo(e){return new I0e(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(cl),Y(yt),Y(Hn),Y(Iw))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),P0e=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 Rm(e);return s.direction=s.direction||this._directionality.value,new Aw(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-"+P0e++,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 t0e(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(C0e),Y(Iw),Y(wu),Y(R0e),Y(T0e),Y(Di),Y(ze),Y(yt),Y(no),Y(Fu),Y(S0e),Y(pi,8))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const F0e=[{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"}],nz=new ee("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const t=fe(Ui);return()=>t.scrollStrategies.reposition()}});let m2=(()=>{class t{constructor(e){this.elementRef=e}static#e=this.\u0275fac=function(i){return new(i||t)(w(Ge))};static#t=this.\u0275dir=ce({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}return t})(),iz=(()=>{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=$t.EMPTY,this._attachSubscription=$t.EMPTY,this._detachSubscription=$t.EMPTY,this._positionSubscription=$t.EMPTY,this._disposeOnNavigation=!1,this._ngZone=fe(ze),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 Te,this.positionChange=new Te,this.attach=new Te,this.detach=new Te,this.overlayKeydown=new Te,this.overlayOutsideClick=new Te,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=F0e);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&&!Co(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 Rm({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 m2?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(nz),w(no,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",Be],lockPosition:[W.HasDecoratorInputTransform,"cdkConnectedOverlayLockPosition","lockPosition",Be],flexibleDimensions:[W.HasDecoratorInputTransform,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",Be],growAfterOpen:[W.HasDecoratorInputTransform,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",Be],push:[W.HasDecoratorInputTransform,"cdkConnectedOverlayPush","push",Be],disposeOnNavigation:[W.HasDecoratorInputTransform,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",Be]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[Zt,Bn]})}return t})();const N0e={provide:nz,deps:[Ui],useFactory:function O0e(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=kt({providers:[Ui,N0e],imports:[$_,Mm,h2,h2]})}return t})();function L0e(t,n){if(1&t){const e=Se();_(0,"div",1)(1,"button",2),H("click",function(){return j(e),G(P().action())}),C(2),v()()}if(2&t){const e=P();x(2),Ze(" ",e.data.action," ")}}const V0e=["label"];function B0e(t,n){}const U0e=Math.pow(2,31)-1;class Mw{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,U0e))}_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 p2=new ee("MatSnackBarData");class Rw{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let rz=(()=>{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})(),oz=(()=>{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})(),sz=(()=>{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})(),az=(()=>{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(Mw),w(p2))};static#t=this.\u0275cmp=$e({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),C(1),v(),q(2,L0e,3,1,"div",1)),2&i&&(x(),Ze(" ",r.data.message,"\n"),x(),gn(2,r.hasAction?2:-1))},dependencies:[Eo,rz,oz,sz],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0})}return t})();const z0e={snackBarState:Yn("state",[_n("void, hidden",We({transform:"scale(0.8)",opacity:0})),_n("visible",We({transform:"scale(1)",opacity:1})),Kt("* => visible",qt("150ms cubic-bezier(0, 0, 0.2, 1)")),Kt("* => void, * => hidden",qt("75ms cubic-bezier(0.4, 0.0, 1, 1)",We({opacity:0})))])};let H0e=0,cz=(()=>{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=fe(yt),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-"+H0e++,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(ze),w(Ge),w(Tn),w(Hn),w(Rw))};static#t=this.\u0275cmp=$e({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(i,r){if(1&i&&(vt(al,7),vt(V0e,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&&ax("@state.done",function(s){return r.onAnimationEnd(s)}),2&i&&nx("@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,B0e,0,0,"ng-template",4),v(),xe(5,"div"),v()()),2&i&&(x(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:[z0e.snackBarState]}})}return t})();const $0e=new ee("mat-snack-bar-default-options",{providedIn:"root",factory:function j0e(){return new Rw}});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=az,this.snackBarContainerComponent=cz,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=Di.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:Rw,useValue:i}]}),s=new Am(this.snackBarContainerComponent,i.viewContainerRef,o),a=e.attach(s);return a.instance.snackBarConfig=i,a.instance}_attach(e,i){const r={...new Rw,...this._defaultConfig,...i},o=this._createOverlay(r),s=this._attachSnackBarContainer(o,r),a=new Mw(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 Am(e,void 0,c),d=s.attachComponentPortal(l);a.instance=d.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Et(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 Rm;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 Di.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:Mw,useValue:i},{provide:p2,useValue:e.data}]})}static#e=this.\u0275fac=function(i){return new(i||t)(Y(Ui),Y(_9),Y(Di),Y(o9),Y(t,12),Y($0e))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),G0e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({providers:[$u],imports:[ju,Mm,z9,Ot,az,Ot]})}return t})(),Vi=(()=>{class t{constructor(e,i){this.sbRef=e,this.data=i}static#e=this.\u0275fac=function(i){return new(i||t)(w(Mw),w(p2))};static#t=this.\u0275cmp=$e({type:t,selectors:[["snack-alert"]],decls:2,vars:1,consts:[[1,"example-alert"]],template:function(i,r){1&i&&(_(0,"span",0),C(1),v()),2&i&&(x(),nt(r.data))},styles:[".example-alert[_ngcontent-%COMP%]{color:#fff}"]})}return t})(),io=(()=>{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(Sr(this.handleError("getCodeSystems",{})))}getCodeSystem(e){return this.http.get(`${this.snowstormFhirBase}/CodeSystem?version=${e}`).pipe(Sr(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(Sr(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(Sr(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(Sr(this.handleError("expandValueSet",{})))}handleError(e="operation",i){return r=>(console.error("There was an error!"),console.error(r),this._snackBar.openFromComponent(Vi,{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 fs({"Accept-Language":"en"})};return this.http.get(s,a).pipe(Li(c=>{this.conceptCache.set(r,c)}),Sr(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(Sr(this.handleError("getMRCMAttributes",{})))}addPostcoordinatedExpression(e){let i=`${this.snowstormFhirBase}/CodeSystem/sct_11000003104_EXP`;const r={headers:new fs({"Content-Type":"application/fhir+json"})};return this.http.patch(i,{resourceType:"CodeSystem",concept:[{code:e}]},r).pipe(Sr(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(Sr(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(Sr(this.handleError("translate",{})))}lookupOtherCodeSystems(e,i){return this.http.get(`${this.snowstormFhirBase}/CodeSystem/$lookup?system=${e}&code=${i}`).pipe(Sr(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 lz(...t){const n=w6(t),{args:e,keys:i}=k6(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?C6(i,a):a),o.complete())}))}});return n?r.pipe(JD(n)):r}function dz(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 Oi((g,p)=>{l++,!u&&!d&&h();const b=c=c??n();p.add(()=>{l--,0===l&&!u&&!d&&(a=g2(m,r))}),b.subscribe(p),!s&&l>0&&(s=new tf({next:y=>b.next(y),error:y=>{u=!0,h(),a=g2(f,e,y),b.error(y)},complete:()=>{d=!0,h(),a=g2(f,i),b.complete()}}),wo(g).subscribe(s))})(o)}}function g2(t,n,...e){if(!0===n)return void t();if(!1===n)return;const i=new tf({next:()=>{i.unsubscribe(),t()}});return wo(n(...e)).subscribe(i)}const W0e=["*"];let Pw;function Z_(t){return function q0e(){if(void 0===Pw&&(Pw=null,typeof window<"u")){const t=window;void 0!==t.trustedTypes&&(Pw=t.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return Pw}()?.createHTML(t)||t}function uz(t){return Error(`Unable to find icon with the name "${t}"`)}function hz(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function fz(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 Fw=(()=>{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(eo.HTML,r);if(!s)throw fz(r);const a=Z_(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(eo.HTML,i);if(!o)throw fz(i);const s=Z_(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(eo.RESOURCE_URL,e);if(!i)throw hz(e);const r=this._cachedIconsByUrl.get(i);return r?st(Ow(r)):this._loadSvgIconFromConfig(new Gu(e,null)).pipe(Li(o=>this._cachedIconsByUrl.set(i,o)),mt(o=>Ow(o)))}getNamedSvgIcon(e,i=""){const r=mz(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(uz(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?st(Ow(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(mt(i=>Ow(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);return r?st(r):lz(i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(Sr(a=>{const l=`Loading icon set URL: ${this._sanitizer.sanitize(eo.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 uz(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(Li(i=>e.svgText=i),mt(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?st(null):this._fetchIcon(e).pipe(Li(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(Z_(""));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(Z_("")),r=e.attributes;for(let o=0;oZ_(l)),um(()=>this._inProgressUrlFetches.delete(s)),dz());return this._inProgressUrlFetches.set(s,c),c}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(mz(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:""}}}),pz=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],ebe=pz.map(t=>`[${t}]`).join(", "),tbe=/^url\(['"]?#(.*?)['"]?\)$/;let To=(()=>{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=$t.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(ebe),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const a=i[o],c=a.getAttribute(s),l=c?c.match(tbe):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(Ge),w(Fw),Is("aria-hidden"),w(Z0e),w(As),w(Y0e,8))};static#t=this.\u0275cmp=$e({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",Be],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[Zt,St],ngContentSelectors:W0e,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})(),nbe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({imports:[Ot,Ot]})}return t})();function gz(t,n){return n?e=>y_(n.pipe(Nn(1),function ibe(){return Oi((t,n)=>{t.subscribe(ki(n,Sv))})}()),e.pipe(gz(t))):Hr((e,i)=>wo(t(e,i)).pipe(Nn(1),Bx(e)))}function _2(t,n=H_){const e=X_(t,n);return gz(()=>e)}const rbe=["mat-menu-item",""],obe=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],sbe=["mat-icon, [matMenuItemIcon]","*"];function abe(t,n){1&t&&(jc(),_(0,"svg",2),xe(1,"polygon",3),v())}const cbe=["*"];function lbe(t,n){if(1&t){const e=Se();_(0,"div",0),H("keydown",function(r){return j(e),G(P()._handleKeydown(r))})("click",function(){return j(e),G(P().closed.emit("click"))})("@transformMenu.start",function(r){return j(e),G(P()._onAnimationStart(r))})("@transformMenu.done",function(r){return j(e),G(P()._onAnimationDone(r))}),_(1,"div",1),ct(2),v()()}if(2&t){const e=P();E("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 b2=new ee("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)"}))),Kt("* => void",qt("100ms 25ms linear",We({opacity:0})))]),fadeInItems:Yn("fadeInItems",[_n("showing",We({opacity:1})),Kt("void => *",[We({opacity:0}),qt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let ube=0;const hbe=new ee("mat-menu-default-options",{providedIn:"root",factory:function fbe(){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 Te,this.close=this.closed,this.panelId="mat-menu-panel-"+ube++,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 XI(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(jr(this._directDescendantItems),Yi(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(jr(this._directDescendantItems),Yi(i=>Ci(...i.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const i=e.keyCode,r=this._keyManager;switch(i){case 27:Co(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(jr(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(Ge),w(ze),w(hbe),w(Tn))};static#t=this.\u0275cmp=$e({type:t,selectors:[["mat-menu"]],contentQueries:function(i,r,o){if(1&i&&(cn(o,dbe,5),cn(o,mc,5),cn(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",Be],hasBackdrop:[W.HasDecoratorInputTransform,"hasBackdrop","hasBackdrop",e=>null==e?null:Be(e)],panelClass:[W.None,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],standalone:!0,features:[rt([{provide:b2,useExisting:t}]),Zt,St],ngContentSelectors:cbe,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,lbe,3,6,"ng-template"))},dependencies:[Sa],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:[Nw.transformMenu,Nw.fadeInItems]},changeDetection:0})}return t})();const _z=new ee("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{const t=fe(Ui);return()=>t.scrollStrategies.reposition()}}),pbe={provide:_z,deps:[Ui],useFactory:function mbe(t){return()=>t.scrollStrategies.reposition()}},bz=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=$t.EMPTY,this._hoverSubscription=$t.EMPTY,this._menuCloseSubscription=$t.EMPTY,this._changeDetectorRef=fe(Tn),this._handleTouchStart=u=>{_w(u)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Te,this.onMenuOpen=this.menuOpened,this.menuClosed=new Te,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=s instanceof Pa?s:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,bz)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,bz),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(Et(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(dn(r=>"void"===r.toState),Nn(1),Et(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 Rm({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(dn(s=>s!==this._menuItemInstance),dn(()=>this._menuOpen)):st(),i)}_handleMousedown(e){gw(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(dn(e=>e===this._menuItemInstance&&!e.disabled),_2(0,u2)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Pa&&this.menu._isAnimating?this.menu._animationDone.pipe(Nn(1),_2(0,u2),Et(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(Ge),w(di),w(_z),w(b2,8),w(mc,10),w(no,8),w(ea),w(ze))};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&&H("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})(),gbe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({providers:[pbe],imports:[ac,q_,Ot,ju,ll,Ot]})}return t})();const _be=["determinateSpinner"];function bbe(t,n){if(1&t&&(jc(),_(0,"svg",11),xe(1,"circle",12),v()),2&t){const e=P();_t("viewBox",e._viewBox()),x(),Ki("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),_t("r",e._circleRadius())}}const vbe=new ee("mat-progress-spinner-default-options",{providedIn:"root",factory:function ybe(){return{diameter:vz}}}),vz=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=vz,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(Ge),w(pi,8),w(vbe))};static#t=this.\u0275cmp=$e({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(i,r){if(1&i&&vt(_be,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",xo],diameter:[W.HasDecoratorInputTransform,"diameter","diameter",xo],strokeWidth:[W.HasDecoratorInputTransform,"strokeWidth","strokeWidth",xo]},exportAs:["matProgressSpinner"],standalone:!0,features:[Zt,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,bbe,2,8,"ng-template",null,0,tm),_(2,"div",2,1),jc(),_(4,"svg",3),xe(5,"circle",4),v()(),Zv(),_(6,"div",5)(7,"div",6)(8,"div",7),Er(9,8),v(),_(10,"div",9),Er(11,8),v(),_(12,"div",10),Er(13,8),v()()()),2&i){const o=zt(1);x(4),_t("viewBox",r._viewBox()),x(),Ki("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeDashOffset(),"px")("stroke-width",r._circleStrokeWidth(),"%"),_t("r",r._circleRadius()),x(4),E("ngTemplateOutlet",o),x(2),E("ngTemplateOutlet",o),x(2),E("ngTemplateOutlet",o)}},dependencies:[Fx],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})(),wbe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({imports:[ac,Ot]})}return t})();const kbe=["*"],Dbe=new ee("MAT_CARD_CONFIG");let v2=(()=>{class t{constructor(e){this.appearance=e?.appearance||"raised"}static#e=this.\u0275fac=function(i){return new(i||t)(w(Dbe,8))};static#t=this.\u0275cmp=$e({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:kbe,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})(),Ibe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({imports:[Ot,ac,Ot]})}return t})();const Abe=[[["caption"]],[["colgroup"],["col"]],"*"],Mbe=["caption","colgroup, col","*"];function Rbe(t,n){1&t&&ct(0,2)}function Pbe(t,n){1&t&&(_(0,"thead",0),Er(1,1),v(),_(2,"tbody",0),Er(3,2)(4,3),v(),_(5,"tfoot",0),Er(6,4),v())}function Fbe(t,n){1&t&&Er(0,1)(1,2)(2,3)(3,4)}const pc=new ee("CDK_TABLE");let Pm=(()=>{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})(),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:[["","cdkHeaderCellDef",""]],standalone:!0})}return t})(),Lw=(()=>{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&&(cn(o,Pm,5),cn(o,Fm,5),cn(o,Lw,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",Be],stickyEnd:[W.HasDecoratorInputTransform,"stickyEnd","stickyEnd",Be]},standalone:!0,features:[rt([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),Zt]})}return t})();class y2{constructor(n,e){e.nativeElement.classList.add(...n._columnCssClassName)}}let x2=(()=>{class t extends y2{constructor(e,i){super(e,i)}static#e=this.\u0275fac=function(i){return new(i||t)(w(dl),w(Ge))};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})(),w2=(()=>{class t extends y2{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(Ge))};static#t=this.\u0275dir=ce({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],standalone:!0,features:[tt]})}return t})();class xz{constructor(){this.tasks=[],this.endTasks=[]}}const k2=new ee("_COALESCED_STYLE_SCHEDULER");let wz=(()=>{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 xz,this._getScheduleObservable().pipe(Et(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new xz;for(const i of e.tasks)i();for(const i of e.endTasks)i()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Xi(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Nn(1))}static#e=this.\u0275fac=function(i){return new(i||t)(Y(ze))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})(),C2=(()=>{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 J_?e.headerCell.template:this instanceof e0?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:[Bn]})}return t})(),J_=(()=>{class t extends C2{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",Be]},standalone:!0,features:[Zt,tt,Bn]})}return t})(),e0=(()=>{class t extends C2{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",Be]},standalone:!0,features:[Zt,tt,Bn]})}return t})(),Vw=(()=>{class t extends C2{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=$e({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})(),S2=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=$e({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})(),Bw=(()=>{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 kz=["top","bottom","left","right"];class Vbe{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]);kz.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 kz)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 D2=new ee("CDK_SPL");let I2=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i;const r=fe(pc);r._rowOutlet=this,r._outletAssigned()}static#e=this.\u0275fac=function(i){return new(i||t)(w(di),w(Ge))};static#t=this.\u0275dir=ce({type:t,selectors:[["","rowOutlet",""]],standalone:!0})}return t})(),A2=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i;const r=fe(pc);r._headerRowOutlet=this,r._outletAssigned()}static#e=this.\u0275fac=function(i){return new(i||t)(w(di),w(Ge))};static#t=this.\u0275dir=ce({type:t,selectors:[["","headerRowOutlet",""]],standalone:!0})}return t})(),M2=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i;const r=fe(pc);r._footerRowOutlet=this,r._outletAssigned()}static#e=this.\u0275fac=function(i){return new(i||t)(w(di),w(Ge))};static#t=this.\u0275dir=ce({type:t,selectors:[["","footerRowOutlet",""]],standalone:!0})}return t})(),R2=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i;const r=fe(pc);r._noDataRowOutlet=this,r._outletAssigned()}static#e=this.\u0275fac=function(i){return new(i||t)(w(di),w(Ge))};static#t=this.\u0275dir=ce({type:t,selectors:[["","noDataRowOutlet",""]],standalone:!0})}return t})(),Uw=(()=>{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 Te,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(Et(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(),AI(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&&ze.isInAngularZone()?this._ngZone.onStable.pipe(Nn(1),Et(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=Cz(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=Cz(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(),zw(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=zw(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=zw(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=zw(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=[],AI(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;AI(this.dataSource)?e=this.dataSource.connect(this):WD(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=st(this.dataSource)),this._renderChangeSubscription=e.pipe(Et(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 Vbe(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(Et(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(Tn),w(Ge),Is("role"),w(no,8),w(yt),w(Hn),w(F_),w(k2),w(cl),w(D2,12),w(ze,8))};static#t=this.\u0275cmp=$e({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(i,r,o){if(1&i&&(cn(o,Bw,5),cn(o,dl,5),cn(o,Vw,5),cn(o,J_,5),cn(o,e0,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",Be],fixedLayout:[W.HasDecoratorInputTransform,"fixedLayout","fixedLayout",Be]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],standalone:!0,features:[rt([{provide:pc,useExisting:t},{provide:F_,useClass:SU},{provide:k2,useClass:wz},{provide:D2,useValue:null}]),Zt,St],ngContentSelectors:Mbe,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,r){1&i&&(Mn(Abe),ct(0),ct(1,1),q(2,Rbe,1,0)(3,Pbe,7,0)(4,Fbe,4,0)),2&i&&(x(2),gn(2,r._isServer?2:-1),x(),gn(3,r._isNativeHtmlTable?3:4))},dependencies:[A2,I2,R2,M2],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2})}return t})();function zw(t,n){return t.concat(Array.from(n))}function Cz(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 Ube=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({imports:[h2]})}return t})();const zbe=[[["caption"]],[["colgroup"],["col"]],"*"],Hbe=["caption","colgroup, col","*"];function jbe(t,n){1&t&&ct(0,2)}function $be(t,n){1&t&&(_(0,"thead",0),Er(1,1),v(),_(2,"tbody",2),Er(3,3)(4,4),v(),_(5,"tfoot",0),Er(6,5),v())}function Gbe(t,n){1&t&&Er(0,1)(1,3)(2,4)(3,5)}let pd=(()=>{class t extends Uw{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=$e({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:[rt([{provide:Uw,useExisting:t},{provide:pc,useExisting:t},{provide:k2,useClass:wz},{provide:F_,useClass:SU},{provide:D2,useValue:null}]),tt,St],ngContentSelectors:Hbe,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(zbe),ct(0),ct(1,1),q(2,jbe,1,0)(3,$be,7,0)(4,Gbe,4,0)),2&i&&(x(2),gn(2,r._isServer?2:-1),x(),gn(3,r._isNativeHtmlTable?3:4))},dependencies:[A2,I2,R2,M2],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 Pm{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:[rt([{provide:Pm,useExisting:t}]),tt]})}return t})(),fl=(()=>{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:[["","matHeaderCellDef",""]],standalone:!0,features:[rt([{provide:Fm,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:[rt([{provide:dl,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),tt]})}return t})(),pl=(()=>{class t extends x2{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 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-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],standalone:!0,features:[tt]})}return t})(),gd=(()=>{class t extends J_{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",Be]},standalone:!0,features:[rt([{provide:J_,useExisting:t}]),Zt,tt]})}return t})(),_d=(()=>{class t extends Vw{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:[rt([{provide:Vw,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=$e({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:[rt([{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 S2{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=rn(t)))(r||t)}})();static#t=this.\u0275cmp=$e({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],standalone:!0,features:[rt([{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})(),Jbe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({imports:[Ot,Ube,Ot]})}return t})();class qu extends ew{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(t9(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 Tz=(()=>{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(Ge))};static#t=this.\u0275dir=ce({type:t})}return t})(),Qu=(()=>{class t extends Tz{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 ro=new ee(""),nve={provide:ro,useExisting:fn(()=>ia),multi:!0},rve=new ee("");let ia=(()=>{class t extends Tz{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function ive(){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(Ge),w(rve,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&&H("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:[rt([nve]),tt]})}return t})();function yd(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function Dz(t){return null!=t&&"number"==typeof t.length}const ur=new ee(""),xd=new ee(""),ove=/^(?=.{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 Om{static min(n){return function Iz(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 Mz(n)}static requiredTrue(n){return function Rz(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function Pz(t){return yd(t.value)||ove.test(t.value)?null:{email:!0}}(n)}static minLength(n){return Fz(n)}static maxLength(n){return function Oz(t){return n=>Dz(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}(n)}static pattern(n){return Nz(n)}static nullValidator(n){return null}static compose(n){return Hz(n)}static composeAsync(n){return jz(n)}}function Mz(t){return yd(t.value)?{required:!0}:null}function Fz(t){return n=>yd(n.value)||!Dz(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 Hw(t){return null}function Lz(t){return null!=t}function Vz(t){return u_(t)?Xi(t):t}function Bz(t){let n={};return t.forEach(e=>{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function Uz(t,n){return n.map(e=>e(t))}function zz(t){return t.map(n=>function sve(t){return!t.validate}(n)?n:e=>n.validate(e))}function Hz(t){if(!t)return null;const n=t.filter(Lz);return 0==n.length?null:function(e){return Bz(Uz(e,n))}}function P2(t){return null!=t?Hz(zz(t)):null}function jz(t){if(!t)return null;const n=t.filter(Lz);return 0==n.length?null:function(e){return lz(Uz(e,n).map(Vz)).pipe(mt(Bz))}}function F2(t){return null!=t?jz(zz(t)):null}function $z(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function Gz(t){return t._rawValidators}function Wz(t){return t._rawAsyncValidators}function O2(t){return t?Array.isArray(t)?t:[t]:[]}function jw(t,n){return Array.isArray(t)?t.includes(n):t===n}function qz(t,n){const e=O2(n);return O2(t).forEach(r=>{jw(e,r)||e.push(r)}),e}function Qz(t,n){return O2(n).filter(e=>!jw(t,e))}class Kz{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=P2(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=F2(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 Kz{get formDirective(){return null}get path(){return null}}class gc extends Kz{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Xz{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 ms=(()=>{class t extends Xz{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})(),t0=(()=>{class t extends Xz{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 n0="VALID",Gw="INVALID",Nm="PENDING",r0="DISABLED";function V2(t){return(Ww(t)?t.validators:t)||null}function B2(t,n){return(Ww(n)?n.asyncValidators:t)||null}function Ww(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function Zz(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 Jz(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===n0}get invalid(){return this.status===Gw}get pending(){return this.status==Nm}get disabled(){return this.status===r0}get enabled(){return this.status!==r0}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(Qz(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(Qz(n,this._rawAsyncValidators))}hasValidator(n){return jw(this._rawValidators,n)}hasAsyncValidator(n){return jw(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=Nm,!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=r0,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=n0,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===n0||this.status===Nm)&&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()?r0:n0}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Nm,this._hasOwnPendingAsyncValidator=!0;const e=Vz(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 Te,this.statusChanges=new Te}_calculateStatus(){return this._allControlsDisabled()?r0:this.errors?Gw:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Nm)?Nm:this._anyControlsHaveStatus(Gw)?Gw:n0}_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){Ww(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 dve(t){return Array.isArray(t)?P2(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function uve(t){return Array.isArray(t)?F2(t):t||null}(this._rawAsyncValidators)}}class Lm extends qw{constructor(n,e,i){super(V2(e),B2(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={}){Jz(this,0,n),Object.keys(n).forEach(i=>{Zz(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 e7 extends Lm{}const Ku=new ee("CallSetDisabledState",{providedIn:"root",factory:()=>o0}),o0="always";function Qw(t,n){return[...n.path,t]}function s0(t,n,e=o0){U2(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function fve(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&t7(t,n)})}(t,n),function pve(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 mve(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&t7(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function hve(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function Kw(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),Yw(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Xw(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function U2(t,n){const e=Gz(t);null!==n.validator?t.setValidators($z(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=Wz(t);null!==n.asyncValidator?t.setAsyncValidators($z(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();Xw(n._rawValidators,r),Xw(n._rawAsyncValidators,r)}function Yw(t,n){let e=!1;if(null!==t){if(null!==n.validator){const r=Gz(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=Wz(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 Xw(n._rawValidators,i),Xw(n._rawAsyncValidators,i),e}function t7(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function n7(t,n){U2(t,n)}function H2(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}function i7(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function j2(t,n){if(!n)return null;let e,i,r;return Array.isArray(n),n.forEach(o=>{o.constructor===ia?e=o:function bve(t){return Object.getPrototypeOf(t.constructor)===Qu}(o)?i=o:r=o}),r||i||e||null}const yve={provide:Xo,useExisting:fn(()=>Xu)},a0=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 Te,this.form=new Lm({},P2(e),F2(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){a0.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),s0(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){a0.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){a0.then(()=>{const i=this._findContainer(e.path),r=new Lm({});n7(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){a0.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){a0.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,i7(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(ur,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&&H("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{options:[W.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[rt([yve]),tt]})}return t})();function r7(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function o7(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const ps=class extends qw{constructor(n=null,e,i){super(V2(e),B2(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}),Ww(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=o7(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){r7(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){r7(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){o7(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}},xve=ps,Cve={provide:gc,useExisting:fn(()=>Vs)},c7=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 ps,this._registered=!1,this.name="",this.update=new Te,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=j2(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),H2(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(){s0(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){c7.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=0!==i&&Be(i);c7.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Qw(e,this._parent):[e]}static#e=this.\u0275fac=function(i){return new(i||t)(w(Xo,9),w(ur,10),w(xd,10),w(ro,10),w(Tn,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:[rt([Cve]),tt,Bn]})}return t})(),c0=(()=>{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 Eve={provide:ro,useExisting:fn(()=>Zw),multi:!0};let Zw=(()=>{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&&H("input",function(s){return r.onChange(s.target.value)})("blur",function(){return r.onTouched()})},features:[rt([Eve]),tt]})}return t})();const $2=new ee(""),Ive={provide:gc,useExisting:fn(()=>Jw)};let Jw=(()=>{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 Te,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=j2(0,r)}ngOnChanges(e){if(this._isControlChanged(e)){const i=e.form.previousValue;i&&Kw(i,this,!1),s0(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}H2(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Kw(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(ur,10),w(xd,10),w(ro,10),w($2,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:[rt([Ive]),tt,Bn]})}return t})();const Ave={provide:Xo,useExisting:fn(()=>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 Te,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&&(Yw(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 s0(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){Kw(e.control||null,e,!1),function vve(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,i7(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&&(Kw(i||null,e),(t=>t instanceof ps)(r)&&(s0(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);n7(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function gve(t,n){return Yw(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){U2(this.form,this),this._oldForm&&Yw(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(i){return new(i||t)(w(ur,10),w(xd,10),w(Ku,8))};static#t=this.\u0275dir=ce({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,r){1&i&&H("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{form:[W.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[rt([Ave]),tt,Bn]})}return t})();const Pve={provide:gc,useExisting:fn(()=>l0)};let l0=(()=>{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 Te,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=j2(0,o)}ngOnChanges(e){this._added||this._setUpControl(),H2(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 Qw(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(ur,10),w(xd,10),w(ro,10),w($2,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:[rt([Pve]),tt,Bn]})}return t})();let Yu=(()=>{class t{constructor(){this._validator=Hw}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):Hw,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:[Bn]})}return t})();const Hve={provide:ur,useExisting:fn(()=>e1),multi:!0};let e1=(()=>{class t extends Yu{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Be,this.createValidator=e=>Mz}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:[rt([Hve]),tt]})}return t})();const Gve={provide:ur,useExisting:fn(()=>K2),multi:!0};let K2=(()=>{class t extends Yu{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=e=>function m7(t){return"number"==typeof t?t:parseInt(t,10)}(e),this.createValidator=e=>Fz(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:[rt([Gve]),tt]})}return t})();const qve={provide:ur,useExisting:fn(()=>n1),multi:!0};let n1=(()=>{class t extends Yu{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=e=>e,this.createValidator=e=>Nz(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:[rt([qve]),tt]})}return t})(),y7=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({})}return t})();class x7 extends qw{constructor(n,e,i){super(V2(e),B2(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={}){Jz(this,0,n),n.forEach((i,r)=>{Zz(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 w7(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let k7=(()=>{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 w7(i)?o=i:null!==i&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new Lm(r,o)}record(e,i=null){const r=this._reduceControls(e);return new e7(r,i)}control(e,i,r){let o={};return this.useNonNullable?(w7(i)?o=i:(o.validators=i,o.asyncValidators=r),new ps(e,{...o,nonNullable:!0})):new ps(e,i,r)}array(e,i,r){const o=e.map(s=>this._createControl(s));return new x7(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 ps||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})(),X2=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Ku,useValue:e.callSetDisabledState??o0}]}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({imports:[y7]})}return t})(),Qve=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:$2,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Ku,useValue:e.callSetDisabledState??o0}]}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({imports:[y7]})}return t})();class Xve{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(dn(e=>e.some(i=>i.target===n)),function Kve(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,dz({connector:()=>new tw(i,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}({bufferSize:1,refCount:!0}),Et(this._destroyed))),this._elementObservables.get(n)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let Yve=(()=>{class t{constructor(){this._observers=new Map,this._ngZone=fe(ze)}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 Xve(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 Zve=["notch"],Jve=["matFormFieldNotchedOutline",""],eye=["*"],tye=["textField"],nye=["iconPrefixContainer"],iye=["textPrefixContainer"],rye=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],oye=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function sye(t,n){1&t&&xe(0,"span",17)}function aye(t,n){if(1&t&&(_(0,"label",16),ct(1,1),q(2,sye,1,0,"span",17),v()),2&t){const e=P(2);E("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),_t("for",e._control.id),x(2),gn(2,!e.hideRequiredMarker&&e._control.required?2:-1)}}function cye(t,n){1&t&&q(0,aye,3,5,"label",16),2&t&&gn(0,P()._hasFloatingLabel()?0:-1)}function lye(t,n){1&t&&xe(0,"div",5)}function dye(t,n){}function uye(t,n){1&t&&q(0,dye,0,0,"ng-template",11),2&t&&(P(2),E("ngTemplateOutlet",zt(1)))}function hye(t,n){if(1&t&&(_(0,"div",7),q(1,uye,1,1,null,11),v()),2&t){const e=P();E("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),x(),gn(1,e._forceDisplayInfixLabel()?-1:1)}}function fye(t,n){1&t&&(_(0,"div",8,2),ct(2,2),v())}function mye(t,n){1&t&&(_(0,"div",9,3),ct(2,3),v())}function pye(t,n){}function gye(t,n){1&t&&q(0,pye,0,0,"ng-template",11),2&t&&(P(),E("ngTemplateOutlet",zt(1)))}function _ye(t,n){1&t&&(_(0,"div",12),ct(1,4),v())}function bye(t,n){1&t&&(_(0,"div",13),ct(1,5),v())}function vye(t,n){1&t&&xe(0,"div",14)}function yye(t,n){1&t&&(_(0,"div",18),ct(1,6),v()),2&t&&E("@transitionMessages",P()._subscriptAnimationState)}function xye(t,n){if(1&t&&(_(0,"mat-hint",20),C(1),v()),2&t){const e=P(2);E("id",e._hintLabelId),x(),nt(e.hintLabel)}}function wye(t,n){if(1&t&&(_(0,"div",19),q(1,xye,2,2,"mat-hint",20),ct(2,7),xe(3,"div",21),ct(4,8),v()),2&t){const e=P();E("@transitionMessages",e._subscriptAnimationState),x(),gn(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})(),kye=0;const C7=new ee("MatError");let E7=(()=>{class t{constructor(e,i){this.id="mat-mdc-error-"+kye++,e||i.nativeElement.setAttribute("aria-live","polite")}static#e=this.\u0275fac=function(i){return new(i||t)(Is("aria-live"),w(Ge))};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:[rt([{provide:C7,useExisting:t}])]})}return t})(),Cye=0,Zu=(()=>{class t{constructor(){this.align="start",this.id="mat-mdc-hint-"+Cye++}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 Eye=new ee("MatPrefix"),T7=new ee("MatSuffix");let S7=(()=>{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:[rt([{provide:T7,useExisting:t}])]})}return t})();const D7=new ee("FloatingLabelParent");let I7=(()=>{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=fe(Yve),this._ngZone=fe(ze),this._parent=fe(D7),this._resizeSubscription=new $t}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function Tye(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(Ge))};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 A7="mdc-line-ripple--active",r1="mdc-line-ripple--deactivating";let M7=(()=>{class t{constructor(e,i){this._elementRef=e,this._handleTransitionEnd=r=>{const o=this._elementRef.nativeElement.classList,s=o.contains(r1);"opacity"===r.propertyName&&s&&o.remove(A7,r1)},i.runOutsideAngular(()=>{e.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const e=this._elementRef.nativeElement.classList;e.remove(r1),e.add(A7)}deactivate(){this._elementRef.nativeElement.classList.add(r1)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static#e=this.\u0275fac=function(i){return new(i||t)(w(Ge),w(ze))};static#t=this.\u0275dir=ce({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0})}return t})(),R7=(()=>{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(Ge),w(ze))};static#t=this.\u0275cmp=$e({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(i,r){if(1&i&&vt(Zve,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:Jve,ngContentSelectors:eye,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),v(),xe(4,"div",3))},encapsulation:2,changeDetection:0})}return t})();const Sye={transitionMessages:Yn("transitionMessages",[_n("enter",We({opacity:1,transform:"translateY(0%)"})),Kt("void => enter",[We({opacity:0,transform:"translateY(-5px)"}),qt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let o1=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=ce({type:t})}return t})();const s1=new ee("MatFormField"),Dye=new ee("MAT_FORM_FIELD_DEFAULT_OPTIONS");let P7=0,Fa=(()=>{class t{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Dr(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-"+P7++,this._hintLabelId="mat-mdc-hint-"+P7++,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(Et(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(Et(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe(Et(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(Ge),w(Tn),w(ze),w(no),w(Hn),w(Dye,8),w(pi,8),w(yt))};static#t=this.\u0275cmp=$e({type:t,selectors:[["mat-form-field"]],contentQueries:function(i,r,o){if(1&i&&(cn(o,Bs,5),cn(o,Bs,7),cn(o,o1,5),cn(o,Eye,5),cn(o,T7,5),cn(o,C7,5),cn(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(tye,5),vt(nye,5),vt(iye,5),vt(I7,5),vt(R7,5),vt(M7,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:[rt([{provide:s1,useExisting:t},{provide:D7,useExisting:t}]),St],ngContentSelectors:oye,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(rye),q(0,cye,1,1,"ng-template",null,0,tm),_(2,"div",4,1),H("click",function(a){return j(o),G(r._control.onContainerClick(a))}),q(4,lye,1,0,"div",5),_(5,"div",6),q(6,hye,2,2,"div",7)(7,fye,3,0,"div",8)(8,mye,3,0,"div",9),_(9,"div",10),q(10,gye,1,1,null,11),ct(11),v(),q(12,_ye,2,0,"div",12)(13,bye,2,0,"div",13),v(),q(14,vye,1,0,"div",14),v(),_(15,"div",15),q(16,yye,2,1)(17,wye,5,2),v()}if(2&i){let o;x(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),x(2),gn(4,r._hasOutline()||r._control.disabled?-1:4),x(2),gn(6,r._hasOutline()?6:-1),x(),gn(7,r._hasIconPrefix?7:-1),x(),gn(8,r._hasTextPrefix?8:-1),x(2),gn(10,!r._hasOutline()||r._forceDisplayInfixLabel()?10:-1),x(2),gn(12,r._hasTextSuffix?12:-1),x(),gn(13,r._hasIconSuffix?13:-1),x(),gn(14,r._hasOutline()?-1:14),x(),lt("mat-mdc-form-field-subscript-dynamic-size","dynamic"===r.subscriptSizing),x(),gn(16,"error"===(o=r._getDisplayedMessages())?16:"hint"===o?17:-1)}},dependencies:[I7,R7,Fx,M7,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:[Sye.transitionMessages]},changeDetection:0})}return t})(),a1=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({imports:[Ot,ac,qI,Ot]})}return t})();const Mye=["panel"],Rye=["*"];function Pye(t,n){if(1&t){const e=Se();_(0,"div",1,0),H("@panelAnimation.done",function(r){return j(e),G(P()._animationDone.next(r))}),ct(2),v()}if(2&t){const e=n.id,i=P();E("id",i.id)("ngClass",i._classList)("@panelAnimation",i.isOpen?"visible":"hidden"),_t("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}const Fye=Yn("panelAnimation",[_n("void, hidden",We({opacity:0,transform:"scaleY(0.8)"})),Kt(":enter, hidden => visible",[a2([qt("0.03s linear",We({opacity:1})),qt("0.12s cubic-bezier(0, 0, 0.2, 1)",We({transform:"scaleY(1)"}))])]),Kt(":leave, visible => hidden",[qt("0.075s linear",We({opacity:0}))])]);let Oye=0;class Nye{constructor(n,e){this.source=n,this.option=e}}const N7=new ee("mat-autocomplete-default-options",{providedIn:"root",factory:function Lye(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}});let Vye=(()=>{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 Hge(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=$t.EMPTY,this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden",this._animationDone=new Te,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new Te,this.opened=new Te,this.closed=new Te,this.optionActivated=new Te,this._classList={},this.id="mat-autocomplete-"+Oye++,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 h9(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 Nye(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(Tn),w(Ge),w(N7),w(Hn))};static#t=this.\u0275cmp=$e({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(i,r,o){if(1&i&&(cn(o,fd,5),cn(o,t2,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(Mye,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",Be],autoSelectActiveOption:[W.HasDecoratorInputTransform,"autoSelectActiveOption","autoSelectActiveOption",Be],requireSelection:[W.HasDecoratorInputTransform,"requireSelection","requireSelection",Be],panelWidth:"panelWidth",disableRipple:[W.HasDecoratorInputTransform,"disableRipple","disableRipple",Be],classList:[W.None,"class","classList"],hideSingleSelectionIndicator:[W.HasDecoratorInputTransform,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Be]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],standalone:!0,features:[rt([{provide:e2,useExisting:t}]),Zt,St],ngContentSelectors:Rye,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,Pye,3,5,"ng-template"))},dependencies:[Sa],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:[Fye]},changeDetection:0})}return t})();const Bye={provide:ro,useExisting:fn(()=>V7),multi:!0},L7=new ee("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{const t=fe(Ui);return()=>t.scrollStrategies.reposition()}}),zye={provide:L7,deps:[Ui],useFactory:function Uye(t){return()=>t.scrollStrategies.reposition()}};let V7=(()=>{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=$t.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(jr(f),Yi(()=>Ci(...f.map(m=>m.onSelectionChange)))):this._zone.onStable.pipe(Nn(1),Yi(()=>this.optionSelections))}),this._handlePanelKeydown=f=>{(27===f.keyCode&&!Co(f)||38===f.keyCode&&Co(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(dn(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(dn(()=>this._overlayAttached)):st()).pipe(mt(e=>e instanceof M9?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(dn(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=Co(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(Li(()=>this._positionStrategy.reapplyLastPosition()),_2(0))).pipe(Yi(()=>(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&&hw(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 Rm({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),hw(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(Ge),w(Ui),w(di),w(ze),w(Tn),w(L7),w(no,8),w(s1,9),w(yt,8),w(cl),w(N7,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&&H("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",Be]},exportAs:["matAutocompleteTrigger"],standalone:!0,features:[rt([Bye]),Zt,Bn]})}return t})(),Hye=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({providers:[zye],imports:[ju,xw,Ot,ac,ll,xw,Ot]})}return t})();const B7=Ma({passive:!0});let jye=(()=>{class t{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return us;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,B7),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:o,unlisten:()=>{i.removeEventListener("animationstart",a,B7)}}),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(Hn),Y(ze))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),$ye=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({})}return t})();const Gye=new ee("MAT_INPUT_VALUE_ACCESSOR"),Wye=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let qye=0,kd=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=Dr(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(Om.required)??!1}set required(e){this._required=Dr(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&ZU().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=Dr(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-"+qye++,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=>ZU().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 JI(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(){Wye.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(Ge),w(Hn),w(gc,10),w(Xu,8),w(wd,8),w(C9),w(Gye,10),w(jye),w(ze),w(s1,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&&H("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:[rt([{provide:o1,useExisting:t}]),Bn]})}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=kt({imports:[Ot,a1,a1,$ye,Ot]})}return t})();function Kye(t,n){if(1&t&&(_(0,"mat-label"),C(1),v()),2&t){const e=P();x(),nt(e.binding.title)}}function Xye(t,n){if(1&t){const e=Se();_(0,"button",7),H("click",function(){return j(e),G(P().clearInput())}),_(1,"mat-icon"),C(2,"close"),v()()}}function Yye(t,n){1&t&&(_(0,"mat-option",8),xe(1,"mat-spinner",9),v())}function Zye(t,n){if(1&t&&(_(0,"mat-option",10)(1,"span",11),C(2),v(),C(3),v()),2&t){const e=n.$implicit;E("value",e),x(2),nt(e.code),x(),Ze("",e.display," ")}}let d0=(()=>{class t{static#e=this.nextId=0;constructor(e){this.terminologyService=e,this.term="",this.selectionChange=new Te,this.formControl=new xve,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(),Yi(e=>e?.length>=3?(this.loading=!0,this.terminologyService.expandValueSet(this.binding.ecl,e,0,50)):st([])),Li(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(io))};static#n=this.\u0275cmp=$e({type:t,selectors:[["app-autocomplete-binding"]],inputs:{binding:"binding",term:"term"},outputs:{selectionChange:"selectionChange"},features:[rt([{provide:ro,useExisting:fn(()=>t),multi:!0},{provide:o1,useExisting:t}]),Bn],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,Kye,2,1,"mat-label",1),xe(2,"input",2),_(3,"mat-hint"),C(4),v(),q(5,Xye,3,0,"button",3),_(6,"mat-autocomplete",4,0),H("optionSelected",function(a){return j(o),G(r.change(a))}),q(8,Yye,2,0,"mat-option",5)(9,Zye,4,3,"mat-option",6),yo(10,"async"),v()()}if(2&i){let o;const s=zt(7);x(),E("ngIf",r.binding.title),x(),em("placeholder",(null==r.formControl.value?null:r.formControl.value.display)||r.binding.title||"Search..."),E("formControl",r.formControl)("matAutocomplete",s),x(2),nt(r.binding.note),x(),E("ngIf",r.formControl.value),x(3),E("ngIf",r.loading),x(),E("ngForOf",null==(o=oc(10,8,r.autoFilter))||null==o.expansion?null:o.expansion.contains)}},dependencies:[Ko,zr,na,To,Fa,Bs,Zu,S7,Vye,fd,V7,md,kd,ia,ms,Jw,RD],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 Jye(t,n){1&t&&xe(0,"mat-spinner",20)}function exe(t,n){1&t&&(_(0,"th",21),C(1," Date "),v())}function txe(t,n){if(1&t&&(_(0,"td",22),C(1),yo(2,"date"),v()),2&t){const e=n.$implicit;x(),Ze(" ",Au(2,1,e.date,"yyyy-MM-dd")," ")}}function nxe(t,n){1&t&&(_(0,"th",21),C(1," ConceptId "),v())}function ixe(t,n){if(1&t&&(_(0,"td",22),C(1),v()),2&t){const e=n.$implicit;x(),Ze(" ",e.code," ")}}function rxe(t,n){1&t&&(_(0,"th",21),C(1," Term "),v())}function oxe(t,n){1&t&&(_(0,"span",24),C(1,"Allergy / Intolerance condition"),v())}function sxe(t,n){if(1&t&&(_(0,"td",22),q(1,oxe,2,0,"span",23),C(2),v()),2&t){const e=n.$implicit;x(),E("ngIf",e.allergy),x(),Ze(" ",e.display," ")}}function axe(t,n){1&t&&xe(0,"tr",25)}function cxe(t,n){1&t&&xe(0,"tr",26)}function lxe(t,n){1&t&&(_(0,"th",21),C(1," ConceptId "),v())}function dxe(t,n){if(1&t&&(_(0,"td",22),C(1),v()),2&t){const e=n.$implicit;x(),Ze(" ",e.code," ")}}function uxe(t,n){1&t&&(_(0,"th",21),C(1," Term "),v())}function hxe(t,n){if(1&t&&(_(0,"td",22),C(1),v()),2&t){const e=n.$implicit;x(),Ze(" ",e.display," ")}}function fxe(t,n){1&t&&xe(0,"tr",25)}function mxe(t,n){1&t&&xe(0,"tr",26)}const pxe=[],gxe=[];let U7=(()=>{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=[...pxe],this.dataSource=new _xe(this.dataToDisplay),this.loading=!1,this.displayedColumns2=["code","display"],this.dataToDisplay2=[...gxe],this.dataSource2=new bxe(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 ko((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 ko((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(io))};static#t=this.\u0275cmp=$e({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"),C(4,"Problem List "),_(5,"button",4)(6,"mat-icon"),C(7,"info"),v()(),_(8,"mat-menu",null,0)(10,"span",5),H("click",function(a){return j(o),G(a.stopPropagation())}),_(11,"h4"),C(12,"Problem list"),v(),_(13,"p"),C(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."),v(),_(15,"p"),C(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."),v(),_(17,"p"),C(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)."),v(),_(19,"p"),C(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."),v(),_(21,"p"),C(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."),v(),_(23,"p"),C(24,"For more information check the "),_(25,"a",6),C(26,"Implementation Guide"),v(),C(27," developed by the SNOMED International Allergy Clinical Reference Group."),v()()()(),_(28,"div",7)(29,"div",8)(30,"app-autocomplete-binding",9),H("selectionChange",function(a){return j(o),G(r.updateProblem(a))}),v()(),_(31,"div",8)(32,"button",10),H("click",function(){return j(o),G(r.addProblem())}),C(33,"Add problem"),v()(),_(34,"div",8),q(35,Jye,1,0,"mat-spinner",11),v()(),_(36,"table",12),Gt(37,13),q(38,exe,2,0,"th",14)(39,txe,3,4,"td",15),Wt(),Gt(40,16),q(41,nxe,2,0,"th",14)(42,ixe,2,1,"td",15),Wt(),Gt(43,17),q(44,rxe,2,0,"th",14)(45,sxe,3,2,"td",15),Wt(),q(46,axe,1,0,"tr",18)(47,cxe,1,0,"tr",19),v()(),_(48,"div",3)(49,"h4"),C(50,"Substances the patient is allergic to:"),v(),_(51,"table",12),Gt(52,16),q(53,lxe,2,0,"th",14)(54,dxe,2,1,"td",15),Wt(),Gt(55,17),q(56,uxe,2,0,"th",14)(57,hxe,2,1,"td",15),Wt(),q(58,fxe,1,0,"tr",18)(59,mxe,1,0,"tr",19),v()()()()}if(2&i){const o=zt(9);x(5),E("matMenuTriggerFor",o),x(5),E("disableRipple",!0),x(20),E("binding",r.problemBinding)("term",r.term),x(5),E("ngIf",r.loading),x(),E("dataSource",r.dataSource),x(10),E("matHeaderRowDef",r.displayedColumns),x(),E("matRowDefColumns",r.displayedColumns),x(4),E("dataSource",r.dataSource2),x(7),E("matHeaderRowDef",r.displayedColumns2),x(),E("matRowDefColumns",r.displayedColumns2)}},dependencies:[zr,Eo,na,To,Pa,mc,Wu,md,v2,pd,fl,gd,ml,hl,_d,pl,gl,bd,vd,d0,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 _xe extends ew{constructor(n){super(),this._dataStream=new tw,this.setData(n)}connect(){return this._dataStream}disconnect(){}setData(n){this._dataStream.next(n)}}class bxe extends ew{constructor(n){super(),this._dataStream=new tw,this.setData(n)}connect(){return this._dataStream}disconnect(){}setData(n){this._dataStream.next(n)}}const Y2=["*"];function vxe(t,n){1&t&&ct(0)}const yxe=["tabListContainer"],xxe=["tabList"],wxe=["tabListInner"],kxe=["nextPaginator"],Cxe=["previousPaginator"],Exe=t=>({animationDuration:t}),Txe=(t,n)=>({value:t,params:n});function Sxe(t,n){}const Dxe=["tabBodyWrapper"],Ixe=["tabHeader"];function Axe(t,n){}function Mxe(t,n){1&t&&q(0,Axe,0,0,"ng-template",12),2&t&&E("cdkPortalOutlet",P().$implicit.templateLabel)}function Rxe(t,n){1&t&&C(0),2&t&&nt(P().$implicit.textLabel)}function Pxe(t,n){if(1&t){const e=Se();_(0,"div",7,2),H("click",function(){const r=j(e),o=r.$implicit,s=r.$index,a=P(),c=zt(1);return G(a._handleClick(o,c,s))})("cdkFocusChange",function(r){const o=j(e).$index;return G(P()._tabFocusChanged(r,o))}),xe(2,"span",8)(3,"div",9),_(4,"span",10)(5,"span",11),q(6,Mxe,1,1,null,12)(7,Rxe,1,1),v()()()}if(2&t){const e=n.$implicit,i=n.$index,r=zt(1),o=P();lt("mdc-tab--active",o.selectedIndex===i),E("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),x(3),E("matRippleTrigger",r)("matRippleDisabled",e.disabled||o.disableRipple),x(3),gn(6,e.templateLabel?6:7)}}function Fxe(t,n){1&t&&ct(0)}function Oxe(t,n){if(1&t){const e=Se();_(0,"mat-tab-body",13),H("_onCentered",function(){return j(e),G(P()._removeTabBodyWrapperHeight())})("_onCentering",function(r){return j(e),G(P()._setTabBodyWrapperHeight(r))}),v()}if(2&t){const e=n.$implicit,i=n.$index,r=P();lt("mat-mdc-tab-body-active",r.selectedIndex===i),E("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 Nxe=new ee("MatTabContent");let Lxe=(()=>{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:[rt([{provide:Nxe,useExisting:t}])]})}return t})();const Vxe=new ee("MatTabLabel"),z7=new ee("MAT_TAB");let Bxe=(()=>{class t extends n0e{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(z7,8))};static#t=this.\u0275dir=ce({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],standalone:!0,features:[rt([{provide:Vxe,useExisting:t}]),tt]})}return t})();const H7=new ee("MAT_TAB_GROUP");let c1=(()=>{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(H7,8))};static#t=this.\u0275cmp=$e({type:t,selectors:[["mat-tab"]],contentQueries:function(i,r,o){if(1&i&&(cn(o,Bxe,5),cn(o,Lxe,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",Be],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:[rt([{provide:z7,useExisting:t}]),Zt,Bn,St],ngContentSelectors:Y2,decls:1,vars:0,template:function(i,r){1&i&&(Mn(),q(0,vxe,1,0,"ng-template"))},encapsulation:2})}return t})();const Z2="mdc-tab-indicator--active",j7="mdc-tab-indicator--no-transition";class Uxe{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 zxe=(()=>{class t{constructor(){this._elementRef=fe(Ge),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(Z2);const r=i.getBoundingClientRect(),o=e.width/r.width,s=e.left-r.left;i.classList.add(j7),this._inkBarContentElement.style.setProperty("transform",`translateX(${s}px) scaleX(${o})`),i.getBoundingClientRect(),i.classList.remove(j7),i.classList.add(Z2),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(Z2)}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",Be]},features:[Zt]})}return t})(),$7=(()=>{class t extends zxe{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(Ge))};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",Be]},standalone:!0,features:[Zt,tt]})}return t})();const G7=Ma({passive:!0});let Gxe=(()=>{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 Te,this.indexFocused=new Te,s.runOutsideAngular(()=>{Ra(e.nativeElement,"mouseleave").pipe(Et(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){Ra(this._previousPaginator.nativeElement,"touchstart",G7).pipe(Et(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Ra(this._nextPaginator.nativeElement,"touchstart",G7).pipe(Et(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 XI(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(Et(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?us:this._items.changes.pipe(jr(this._items),Yi(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()}}))),WI(1),dn(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(!Co(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(),X_(650,100).pipe(Et(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(Ge),w(Tn),w(cl),w(no,8),w(ze),w(Hn),w(pi,8))};static#t=this.\u0275dir=ce({type:t,inputs:{disablePagination:[W.HasDecoratorInputTransform,"disablePagination","disablePagination",Be],selectedIndex:[W.HasDecoratorInputTransform,"selectedIndex","selectedIndex",xo]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[Zt]})}return t})(),Wxe=(()=>{class t extends Gxe{constructor(e,i,r,o,s,a,c){super(e,i,r,o,s,a,c),this.disableRipple=!1}ngAfterContentInit(){this._inkBar=new Uxe(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static#e=this.\u0275fac=function(i){return new(i||t)(w(Ge),w(Tn),w(cl),w(no,8),w(ze),w(Hn),w(pi,8))};static#t=this.\u0275cmp=$e({type:t,selectors:[["mat-tab-header"]],contentQueries:function(i,r,o){if(1&i&&cn(o,$7,4),2&i){let s;Re(s=Pe())&&(r._items=s)}},viewQuery:function(i,r){if(1&i&&(vt(yxe,7),vt(xxe,7),vt(wxe,7),vt(kxe,5),vt(Cxe,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",Be]},standalone:!0,features:[Zt,tt,St],ngContentSelectors:Y2,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),H("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),v(),_(3,"div",7,1),H("keydown",function(a){return j(o),G(r._handleKeydown(a))}),_(5,"div",8,2),H("cdkObserveContent",function(){return j(o),G(r._onContentChanges())}),_(7,"div",9,3),ct(9),v()()(),_(10,"button",10,4),H("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),v()}2&i&&(lt("mat-mdc-tab-header-pagination-disabled",r._disableScrollBefore),E("matRippleDisabled",r._disableScrollBefore||r.disableRipple)("disabled",r._disableScrollBefore||null),x(3),lt("_mat-animation-noopable","NoopAnimations"===r._animationMode),x(7),lt("mat-mdc-tab-header-pagination-disabled",r._disableScrollAfter),E("matRippleDisabled",r._disableScrollAfter||r.disableRipple)("disabled",r._disableScrollAfter||null))},dependencies:[rl,i9],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 qxe=new ee("MAT_TABS_CONFIG"),Qxe={translateTab:Yn("translateTab",[_n("center, void, left-origin-center, right-origin-center",We({transform:"none"})),_n("left",We({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),_n("right",We({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Kt("* => left, * => right, left => center, right => center",qt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Kt("void => left-origin-center",[We({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),qt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Kt("void => right-origin-center",[We({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),qt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let Kxe=(()=>{class t extends al{constructor(e,i,r,o){super(e,i,o),this._host=r,this._centeringSub=$t.EMPTY,this._leavingSub=$t.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(jr(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(fn(()=>W7)),w(yt))};static#t=this.\u0275dir=ce({type:t,selectors:[["","matTabBodyHost",""]],standalone:!0,features:[tt]})}return t})(),W7=(()=>{class t{set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(e,i,r){this._elementRef=e,this._dir=i,this._dirChangeSubscription=$t.EMPTY,this._translateTabComplete=new Me,this._onCentering=new Te,this._beforeCentering=new Te,this._afterLeavingCenter=new Te,this._onCentered=new Te(!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(Ge),w(no,8),w(Tn))};static#t=this.\u0275cmp=$e({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),H("@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,Sxe,0,0,"ng-template",2),v()}2&i&&E("@translateTab",YS(3,Txe,r._position,Ea(1,Exe,r.animationDuration)))},dependencies:[Kxe,Dw],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:[Qxe.translateTab]}})}return t})(),Xxe=0,u0=(()=>{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=$t.EMPTY,this._tabLabelSubscription=$t.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 Te,this.focusChange=new Te,this.animationDone=new Te,this.selectedTabChange=new Te(!0),this._isServer=!fe(Hn).isBrowser,this._groupId=Xxe++,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(jr(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 Zxe;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(Ge),w(Tn),w(qxe,8),w(pi,8))};static#t=this.\u0275cmp=$e({type:t,selectors:[["mat-tab-group"]],contentQueries:function(i,r,o){if(1&i&&cn(o,c1,5),2&i){let s;Re(s=Pe())&&(r._allTabs=s)}},viewQuery:function(i,r){if(1&i&&(vt(Dxe,5),vt(Ixe,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",Be],stretchTabs:[W.HasDecoratorInputTransform,"mat-stretch-tabs","stretchTabs",Be],dynamicHeight:[W.HasDecoratorInputTransform,"dynamicHeight","dynamicHeight",Be],selectedIndex:[W.HasDecoratorInputTransform,"selectedIndex","selectedIndex",xo],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[W.HasDecoratorInputTransform,"contentTabIndex","contentTabIndex",xo],disablePagination:[W.HasDecoratorInputTransform,"disablePagination","disablePagination",Be],disableRipple:[W.HasDecoratorInputTransform,"disableRipple","disableRipple",Be],preserveContent:[W.HasDecoratorInputTransform,"preserveContent","preserveContent",Be],backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],standalone:!0,features:[rt([{provide:H7,useExisting:t}]),Zt,St],ngContentSelectors:Y2,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),H("indexFocused",function(a){return j(o),G(r._focusChanged(a))})("selectFocusedIndex",function(a){return j(o),G(r.selectedIndex=a)}),US(2,Pxe,8,16,"div",4,BS),v(),q(4,Fxe,1,0),_(5,"div",5,1),US(7,Oxe,1,12,"mat-tab-body",6,BS),v()}2&i&&(E("selectedIndex",r.selectedIndex||0)("disableRipple",r.disableRipple)("disablePagination",r.disablePagination),x(2),zS(r._tabs),x(2),gn(4,r._isServer?4:-1),x(),lt("_mat-animation-noopable","NoopAnimations"===r._animationMode),x(2),zS(r._tabs))},dependencies:[Wxe,$7,h_e,Sa,rl,al,W7],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 Zxe{}let Jxe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({imports:[Ot,Ot]})}return t})();var _c=ho(578);class ewe{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 J2=(()=>{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 ewe(e,this._document)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(yt))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const twe=new ee("HighlightJs-Config");let l1=(()=>{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(Ge),w(Vs,8),w(yt),w(twe,8),w(ze))},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})(),nwe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ct({type:t}),t.\u0275inj=kt({imports:[X2]}),t})();const iwe=["trigger"],rwe=["panel"],owe=[[["mat-select-trigger"]],"*"],swe=["mat-select-trigger","*"];function awe(t,n){if(1&t&&(_(0,"span",4),C(1),v()),2&t){const e=P();x(),nt(e.placeholder)}}function cwe(t,n){1&t&&ct(0)}function lwe(t,n){if(1&t&&(_(0,"span",11),C(1),v()),2&t){const e=P(2);x(),nt(e.triggerValue)}}function dwe(t,n){if(1&t&&(_(0,"span",10),q(1,cwe,1,0)(2,lwe,2,1),v()),2&t){const e=P();x(),gn(1,e.customTrigger?1:2)}}function uwe(t,n){if(1&t){const e=Se();_(0,"div",12,1),H("@transformPanel.done",function(r){return j(e),G(P()._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){return j(e),G(P()._handleKeydown(r))}),ct(2,1),v()}if(2&t){const e=P();(function BV(t,n,e){Ca(Ts,ic,jf(be(),t,n,e),!0)})("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),E("ngClass",e.panelClass)("@transformPanel","showing"),_t("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const hwe={transformPanelWrap:Yn("transformPanelWrap",[Kt("* => void",Cw("@transformPanel",[kw()],{optional:!0}))]),transformPanel:Yn("transformPanel",[_n("void",We({opacity:0,transform:"scale(1, 0.8)"})),Kt("void => showing",qt("120ms cubic-bezier(0, 0, 0.2, 1)",We({opacity:1,transform:"scale(1, 1)"}))),Kt("* => void",qt("100ms linear",We({opacity:0})))])};let q7=0;const Q7=new ee("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{const t=fe(Ui);return()=>t.scrollStrategies.reposition()}}),mwe=new ee("MAT_SELECT_CONFIG"),pwe={provide:Q7,deps:[Ui],useFactory:function fwe(t){return()=>t.scrollStrategies.reposition()}},gwe=new ee("MatSelectTrigger");class _we{constructor(n,e){this.source=n,this.value=e}}let h0=(()=>{class t{_scrollOptionIntoView(e){const i=this.options.toArray()[e];if(i){const r=this.panel.nativeElement,o=R9(e,this.options,this.optionGroups),s=i._getHostElement();r.scrollTop=0===e&&1===o?0:P9(s.offsetTop,s.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new _we(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(Om.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,b)=>p===b,this._uid="mat-select-"+q7++,this._triggerAriaLabelledBy=null,this._destroy=new Me,this.stateChanges=new Me,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+q7++,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(jr(p),Yi(()=>Ci(...p.map(b=>b.onSelectionChange)))):this._initialized.pipe(Yi(()=>this.optionSelectionChanges))}),this.openedChange=new Te,this._openedStream=this.openedChange.pipe(dn(p=>p),mt(()=>{})),this._closedStream=this.openedChange.pipe(dn(p=>!p),mt(()=>{})),this.selectionChange=new Te,this.valueChange=new Te,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 JI(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 MI(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(il(),Et(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(Et(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(Et(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(jr(null),Et(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),hw(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&&!Co(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||Co(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 m2?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 h9(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(Et(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(Et(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(Tn),w(ze),w(C9),w(Ge),w(no,8),w(Xu,8),w(wd,8),w(s1,8),w(gc,10),Is("tabindex"),w(Q7),w(_9),w(mwe,8))};static#t=this.\u0275cmp=$e({type:t,selectors:[["mat-select"]],contentQueries:function(i,r,o){if(1&i&&(cn(o,gwe,5),cn(o,fd,5),cn(o,t2,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(iwe,5),vt(rwe,5),vt(iz,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&&H("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",Be],disableRipple:[W.HasDecoratorInputTransform,"disableRipple","disableRipple",Be],tabIndex:[W.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>null==e?0:xo(e)],hideSingleSelectionIndicator:[W.HasDecoratorInputTransform,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Be],placeholder:"placeholder",required:[W.HasDecoratorInputTransform,"required","required",Be],multiple:[W.HasDecoratorInputTransform,"multiple","multiple",Be],disableOptionCentering:[W.HasDecoratorInputTransform,"disableOptionCentering","disableOptionCentering",Be],compareWith:"compareWith",value:"value",ariaLabel:[W.None,"aria-label","ariaLabel"],ariaLabelledby:[W.None,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[W.HasDecoratorInputTransform,"typeaheadDebounceInterval","typeaheadDebounceInterval",xo],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[rt([{provide:o1,useExisting:t},{provide:e2,useExisting:t}]),Zt,Bn,St],ngContentSelectors:swe,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(owe),_(0,"div",2,0),H("click",function(){return j(o),G(r.open())}),_(3,"div",3),q(4,awe,2,1,"span",4)(5,dwe,3,1),v(),_(6,"div",5)(7,"div",6),jc(),_(8,"svg",7),xe(9,"path",8),v()()()(),q(10,uwe,3,9,"ng-template",9),H("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=zt(1);x(3),_t("id",r._valueId),x(),gn(4,r.empty?4:5),x(6),E("cdkConnectedOverlayPanelClass",r._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",r._scrollStrategy)("cdkConnectedOverlayOrigin",r._preferredOverlayOrigin||o)("cdkConnectedOverlayOpen",r.panelOpen)("cdkConnectedOverlayPositions",r._positions)("cdkConnectedOverlayWidth",r._overlayWidth)}},dependencies:[m2,iz,Sa],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:[hwe.transformPanel]},changeDetection:0})}return t})(),bwe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({providers:[pwe],imports:[ac,ju,xw,Ot,ll,a1,xw,Ot]})}return t})();const vwe=["tooltip"],X7=new ee("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{const t=fe(Ui);return()=>t.scrollStrategies.reposition({scrollThrottle:20})}}),xwe={provide:X7,deps:[Ui],useFactory:function ywe(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},kwe=new ee("mat-tooltip-default-options",{providedIn:"root",factory:function wwe(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),Y7="tooltip-panel",Z7=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=Dr(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Dr(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=Dwe,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(Et(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=8}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Et(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,Z7)}),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 Am(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(Et(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 Ge)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(Et(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}-${Y7}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Et(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Et(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Et(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&27===o.keyCode&&!Co(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),Et(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}-${Y7}-`;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,Z7)})}_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(Ge),w(Y_),w(di),w(ze),w(Hn),w(l9),w(ea),w(X7),w(no),w(kwe,8),w(yt))};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})(),Dwe=(()=>{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(Tn),w(Ge),w(pi,8))};static#t=this.\u0275cmp=$e({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(i,r){if(1&i&&vt(vwe,7),2&i){let o;Re(o=Pe())&&(r._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(i,r){1&i&&H("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),H("animationend",function(a){return j(o),G(r._handleAnimationEnd(a))}),_(2,"div",2),C(3),v()()}2&i&&(lt("mdc-tooltip--multiline",r._isMultiline),E("ngClass",r.tooltipClass),x(3),nt(r.message))},dependencies:[Sa],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})(),Iwe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({providers:[xwe],imports:[x9,ac,ju,Ot,Ot,ll]})}return t})();const Awe=["switch"],Mwe=["*"];function Rwe(t,n){1&t&&(_(0,"div",10),jc(),_(1,"svg",12),xe(2,"path",13),v(),_(3,"svg",14),xe(4,"path",15),v()())}const Pwe=new ee("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1})}),Fwe={provide:ro,useExisting:fn(()=>eA),multi:!0};class J7{constructor(n,e){this.source=n,this.checked=e}}let Owe=0,eA=(()=>{class t{_createChangeEvent(e){return new J7(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 Te,this.toggleChange=new Te,this.tabIndex=parseInt(o)||0,this.color=s.color||"accent",this._noopAnimations="NoopAnimations"===a,this.id=this._uniqueId="mat-mdc-slide-toggle-"+ ++Owe,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 J7(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(Ge),w(ea),w(Tn),Is("tabindex"),w(Pwe),w(pi,8))};static#t=this.\u0275cmp=$e({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(i,r){if(1&i&&vt(Awe,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",Be],color:"color",disabled:[W.HasDecoratorInputTransform,"disabled","disabled",Be],disableRipple:[W.HasDecoratorInputTransform,"disableRipple","disableRipple",Be],tabIndex:[W.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>null==e?0:xo(e)],checked:[W.HasDecoratorInputTransform,"checked","checked",Be],hideIcon:[W.HasDecoratorInputTransform,"hideIcon","hideIcon",Be]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],standalone:!0,features:[rt([Fwe,{provide:ur,useExisting:t,multi:!0}]),Zt,Bn,St],ngContentSelectors:Mwe,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),H("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),v(),_(8,"div",8),xe(9,"div",9),v(),q(10,Rwe,5,0,"div",10),v()()(),_(11,"label",11),H("click",function(a){return j(o),G(a.stopPropagation())}),ct(12),v()()}if(2&i){const o=zt(2);E("labelPosition",r.labelPosition),x(),lt("mdc-switch--selected",r.checked)("mdc-switch--unselected",!r.checked)("mdc-switch--checked",r.checked)("mdc-switch--disabled",r.disabled),E("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),x(8),E("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),x(),gn(10,r.hideIcon?-1:10),x(),E("for",r.buttonId),_t("id",r._labelId)}},dependencies:[rl,o2],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})(),Vwe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({imports:[eA,Ot,Ot]})}return t})();function Bwe(t,n){if(1&t){const e=Se();_(0,"button",14),H("click",function(){j(e);const r=P().index;return G(P().removeReaction(r))}),_(1,"mat-icon"),C(2,"close"),v()()}}function Uwe(t,n){if(1&t){const e=Se();_(0,"mat-option",15),H("click",function(){const r=j(e).$implicit,o=P().$implicit;return G(P().reactionSeveritySelected(o,r))}),C(1),v()}if(2&t){const e=n.$implicit;E("value",e),x(),nt(e.display)}}function zwe(t,n){if(1&t){const e=Se();_(0,"div",4)(1,"div",5),q(2,Bwe,3,0,"button",6),v(),_(3,"div",7)(4,"div",8)(5,"app-autocomplete-binding",9),H("selectionChange",function(r){const o=j(e).$implicit;return G(P().reactionManifestationSelected(o,r))}),v()(),_(6,"button",10)(7,"mat-icon"),C(8,"info"),v()(),_(9,"mat-menu",null,0)(11,"span",11),H("click",function(r){return j(e),G(r.stopPropagation())}),_(12,"p"),C(13,"Terminology binding:"),v(),_(14,"pre"),C(15),v()()()(),_(16,"mat-form-field",12)(17,"mat-label"),C(18,"Reaction Severity"),v(),_(19,"mat-select"),q(20,Uwe,2,2,"mat-option",13),v()(),_(21,"div",7)(22,"div",8)(23,"app-autocomplete-binding",9),H("selectionChange",function(r){const o=j(e).$implicit;return G(P().reactionRouteSelected(o,r))}),v()(),_(24,"button",10)(25,"mat-icon"),C(26,"info"),v()(),_(27,"mat-menu",null,1)(29,"span",11),H("click",function(r){return j(e),G(r.stopPropagation())}),_(30,"p"),C(31,"Terminology binding:"),v(),_(32,"pre"),C(33),v()()()()()}if(2&t){const e=n.index,i=zt(10),r=zt(28),o=P();x(2),E("ngIf",e>0),x(3),E("binding",o.reactionManifestationBinding),x(),E("matMenuTriggerFor",i),x(5),E("disableRipple",!0),x(4),nt(o.reactionManifestationBinding.ecl),x(5),E("ngForOf",o.severityOptions),x(3),E("binding",o.routeBinding),x(),E("matMenuTriggerFor",r),x(5),E("disableRipple",!0),x(4),nt(o.routeBinding.ecl)}}let Hwe=(()=>{class t{constructor(){this.reactions=[],this.newManifestation=new Te,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=$e({type:t,selectors:[["app-allergies-allergy-list-reaction"]],inputs:{reactions:"reactions"},outputs:{newManifestation:"newManifestation"},features:[rt([{provide:ro,useExisting:fn(()=>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,zwe,34,10,"div",2),_(1,"div")(2,"button",3),H("click",function(){return r.addNewReaction()}),_(3,"mat-icon"),C(4,"add"),v()()()),2&i&&E("ngForOf",r.reactions)},dependencies:[Ko,zr,na,To,Pa,mc,Wu,Fa,Bs,fd,h0,Ju,d0],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 jwe=()=>({});function $we(t,n){if(1&t){const e=Se();_(0,"mat-option",31),H("click",function(){return j(e),G(P().updateAllergyStr())}),C(1),v()}if(2&t){const e=n.$implicit;E("value",e),x(),nt(e.display)}}function Gwe(t,n){if(1&t){const e=Se();_(0,"mat-option",31),H("click",function(){return j(e),G(P().updateAllergyStr())}),C(1),v()}if(2&t){const e=n.$implicit;E("value",e),x(),nt(e.display)}}function Wwe(t,n){if(1&t){const e=Se();_(0,"mat-option",31),H("click",function(){return j(e),G(P().updateAllergyStr())}),C(1),v()}if(2&t){const e=n.$implicit;E("value",e),x(),nt(e.display)}}function qwe(t,n){if(1&t){const e=Se();_(0,"app-autocomplete-binding",11),H("selectionChange",function(r){return j(e),G(P().substanceSelected(r,!0))}),v()}if(2&t){const e=P();E("binding",e.substanceBinding)("term",e.selectedSubstanceTerm)}}function Qwe(t,n){if(1&t){const e=Se();_(0,"app-autocomplete-binding",11),H("selectionChange",function(r){return j(e),G(P().substanceSelected(r))}),v()}if(2&t){const e=P();E("binding",e.refinedSubstanceBinding)("term",e.selectedSubstanceTerm)}}function Kwe(t,n){if(1&t&&(_(0,"pre"),C(1),v()),2&t){const e=P();x(),nt(e.substanceBinding.ecl)}}function Xwe(t,n){if(1&t&&(_(0,"pre"),C(1),v()),2&t){const e=P();x(),nt(e.refinedSubstanceBinding.ecl)}}function Ywe(t,n){if(1&t){const e=Se();_(0,"mat-option",31),H("click",function(){return j(e),G(P().updateAllergyStr())}),C(1),v()}if(2&t){const e=n.$implicit;E("value",e),x(),nt(e.display)}}function Zwe(t,n){if(1&t){const e=Se();_(0,"mat-option",31),H("click",function(){return j(e),G(P().updateAllergyStr())}),C(1),v()}if(2&t){const e=n.$implicit;E("value",e),x(),nt(e.display)}}let Jwe=(()=>{class t{constructor(e,i,r){this.terminologyService=e,this.clipboard=i,this._snackBar=r,this.newProblem=new Te,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 ps(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 ps(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 ko((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 ko((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 ko((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 ko((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(Vi,{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(io),w(J2),w($u))};static#t=this.\u0275cmp=$e({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"),C(4,"Allergy Intolerance Form "),_(5,"button",5)(6,"mat-icon"),C(7,"info"),v()(),_(8,"mat-menu",null,0)(10,"span",6),H("click",function(a){return j(o),G(a.stopPropagation())}),_(11,"h4"),C(12,"Allergy list"),v(),_(13,"p"),C(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."),v(),_(15,"p"),C(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."),v(),_(17,"p"),C(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."),v(),_(19,"p"),C(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."),v(),_(21,"p"),C(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."),v(),_(23,"p"),C(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)."),v(),_(25,"p"),C(26,"For more information check the "),_(27,"a",7),C(28,"Implementation Guide"),v(),C(29," developed by the SNOMED International Allergy Clinical Reference Group."),v()()()(),_(30,"button",8),H("click",function(){return j(o),G(r.clear())}),C(31,"Clear"),v(),_(32,"div",9)(33,"div",10)(34,"app-autocomplete-binding",11),H("selectionChange",function(a){return j(o),G(r.codeSelected(a))}),v()(),_(35,"button",5)(36,"mat-icon"),C(37,"info"),v()(),_(38,"mat-menu",null,1)(40,"span",12),H("click",function(a){return j(o),G(a.stopPropagation())}),_(41,"p"),C(42,"Terminology binding:"),v(),_(43,"pre"),C(44),v()()(),_(45,"mat-slide-toggle",13),Ur("ngModelChange",function(a){return j(o),to(r.recordPropensity,a)||(r.recordPropensity=a),G(a)}),H("click",function(){return j(o),G(r.propensityRecordChanged())}),C(46," Propensity based model "),v()(),_(47,"mat-form-field",14)(48,"mat-label"),C(49,"Allergy Intolerance Type"),v(),_(50,"mat-select",15),Ur("ngModelChange",function(a){return j(o),to(r.selectedIntoleranceType,a)||(r.selectedIntoleranceType=a),G(a)}),q(51,$we,2,2,"mat-option",16),v()(),_(52,"div",9)(53,"mat-form-field",4)(54,"mat-label"),C(55,"Clinical Status"),v(),_(56,"mat-select",15),Ur("ngModelChange",function(a){return j(o),to(r.selectedClinicalStatus,a)||(r.selectedClinicalStatus=a),G(a)}),q(57,Gwe,2,2,"mat-option",16),v()(),_(58,"mat-form-field",4)(59,"mat-label"),C(60,"Verification Status"),v(),_(61,"mat-select",15),Ur("ngModelChange",function(a){return j(o),to(r.selectedVerificationStatus,a)||(r.selectedVerificationStatus=a),G(a)}),q(62,Wwe,2,2,"mat-option",16),v()()(),_(63,"div",9)(64,"div",17),q(65,qwe,1,2,"app-autocomplete-binding",18)(66,Qwe,1,2,"app-autocomplete-binding",18),v(),_(67,"button",5)(68,"mat-icon"),C(69,"info"),v()(),_(70,"mat-menu",null,0)(72,"span",12),H("click",function(a){return j(o),G(a.stopPropagation())}),_(73,"p"),C(74,"Terminology binding:"),v(),q(75,Kwe,2,1,"pre",19)(76,Xwe,2,1,"pre",19),v()()(),_(77,"div",9)(78,"mat-form-field",4)(79,"mat-label"),C(80,"Substance Category"),v(),_(81,"mat-select",20),q(82,Ywe,2,2,"mat-option",16),v()(),_(83,"mat-form-field",4)(84,"mat-label"),C(85,"Allergy Criticality"),v(),_(86,"mat-select",15),Ur("ngModelChange",function(a){return j(o),to(r.selectedCriticality,a)||(r.selectedCriticality=a),G(a)}),q(87,Zwe,2,2,"mat-option",16),v()()(),_(88,"app-allergies-allergy-list-reaction",21),Ur("ngModelChange",function(a){return j(o),to(r.selectedReactions,a)||(r.selectedReactions=a),G(a)}),H("ngModelChange",function(a){return j(o),G(r.onReactionsChange(a))})("newManifestation",function(a){return j(o),G(r.newProblem.emit(a))}),v(),_(89,"button",22),H("click",function(){return j(o),G(r.addToProblemsList())}),C(90,"Save"),v()(),_(91,"div",4)(92,"h4"),C(93,"AllergyIntolerance HL7 FHIR Resource ("),_(94,"a",23),C(95,"link"),v(),C(96,")"),v(),_(97,"div",24)(98,"div",25)(99,"button",26),H("click",function(){return j(o),G(r.saveFhirResource())}),xe(100,"mat-icon",27),v(),_(101,"button",28),H("click",function(){return j(o),G(r.copyToClipboard(r.outputAllergyStr))}),xe(102,"mat-icon",29),v()(),_(103,"textarea",30),C(104," "),v()()()()()}if(2&i){const o=zt(9),s=zt(39);x(5),E("matMenuTriggerFor",o),x(5),E("disableRipple",!0),x(24),E("binding",r.codeBinding)("term",r.selectedCodeTerm),x(),E("matMenuTriggerFor",s),x(5),E("disableRipple",!0),x(4),nt(r.codeBinding.ecl),x(),Br("ngModel",r.recordPropensity),x(5),Br("ngModel",r.selectedIntoleranceType),x(),E("ngForOf",r.intoleranceTypeOptions),x(5),Br("ngModel",r.selectedClinicalStatus),x(),E("ngForOf",r.clinicalStatusOptions),x(4),Br("ngModel",r.selectedVerificationStatus),x(),E("ngForOf",r.verificationStatusOptions),x(3),E("ngIf",!r.recordPropensity),x(),E("ngIf",r.recordPropensity),x(),E("matMenuTriggerFor",o),x(5),E("disableRipple",!0),x(3),E("ngIf",!r.recordPropensity),x(),E("ngIf",r.recordPropensity),x(5),E("formControl",r.selectedIntoleranceCategoriesControl)("multiple",!0),x(),E("ngForOf",r.intoleranceCategoryOptions),x(4),Br("ngModel",r.selectedCriticality),x(),E("ngForOf",r.criticalityOptions),x(),Br("ngModel",r.selectedReactions),x(15),E("options",Fs(29,jwe))("lang","json")("innerHTML",r.outputAllergyStr,yu)}},dependencies:[Ko,zr,l1,Eo,na,To,Pa,mc,Wu,Fa,Bs,fd,ms,Jw,v2,h0,Vs,Ju,eA,d0,Hwe],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})(),eH=(()=>{class t{constructor(e){this._snackBar=e}addProblem(e){var i=this;return me(function*(){i.allergiesProblemListComponent.addProblem(e),i._snackBar.openFromComponent(Vi,{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=$e({type:t,selectors:[["app-allergies"]],viewQuery:function(i,r){if(1&i&&vt(U7,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"),C(2,"Allergy, Hypersensitivity and Intolerance "),_(3,"button",2)(4,"mat-icon"),C(5,"info"),v()(),_(6,"mat-menu",null,0)(8,"span",3),H("click",function(a){return j(o),G(a.stopPropagation())}),_(9,"h4"),C(10,"Allergy, Hypersensitivity and Intolerance Implementation Demo"),v(),_(11,"p"),C(12,"This is a demonstration of different implementation approaches for recording Allergies, Hypersensitivity and Intolerance."),v(),_(13,"p")(14,"b"),C(15,"Allergy list:"),v(),C(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."),v(),_(17,"p")(18,"b"),C(19,"Problem list:"),v(),C(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."),v(),_(21,"p"),C(22,"For more information check the "),_(23,"a",4),C(24,"Implementation Guide"),v(),C(25," developed by the SNOMED International Allergy Clinical Reference Group."),v()()()(),_(26,"mat-tab-group",5)(27,"mat-tab",6)(28,"app-allergies-allergy-list",7),H("newProblem",function(a){return j(o),G(r.addProblem(a))}),v()(),_(29,"mat-tab",8),xe(30,"app-allergies-problem-list"),v()()()}if(2&i){const o=zt(7);x(3),E("matMenuTriggerFor",o),x(5),E("disableRipple",!0)}},dependencies:[na,To,Pa,mc,Wu,c1,u0,U7,Jwe],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 tA(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 Vm(t,n){const e=n?"":"none";tA(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 tH(t,n,e){tA(t.style,{position:n?"":"fixed",top:n?"":"0",opacity:n?"":"0",left:n?"":"-999em"},e)}function d1(t,n){return n&&"none"!=n?t+" "+n:t}function nH(t){const n=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*n}function nA(t,n){return t.getPropertyValue(n).split(",").map(i=>i.trim())}function iA(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 rA(t,n,e){const{top:i,bottom:r,left:o,right:s}=t;return e>=i&&e<=r&&n>=o&&n<=s}function f0(t,n,e){t.top+=n,t.bottom=t.top+t.height,t.left+=e,t.right=t.left+t.width}function iH(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:iA(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)&&f0(l.clientRect,a,c)}),r.top=o,r.left=s,{top:a,left:c}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function oH(t){const n=t.cloneNode(!0),e=n.querySelectorAll("[id]"),i=t.nodeName.toLowerCase();n.removeAttribute("id");for(let r=0;rVm(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=$t.EMPTY,this._pointerUpSubscription=$t.EMPTY,this._scrollSubscription=$t.EMPTY,this._resizeSubscription=$t.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 rH(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=>Vm(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,u1),e.addEventListener("touchstart",this._pointerDown,lH),e.addEventListener("dragstart",this._nativeDragStart,u1)}),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),Vm(n,!0))}enableHandle(n){this._disabledHandles.has(n)&&(this._disabledHandles.delete(n),Vm(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){m0(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(),tH(i,!1,oA),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=m0(e),o=!r&&0!==e.button,s=this._rootElement,a=Ls(e),c=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),l=r?_w(e):gw(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=iA(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){tH(this._rootElement,!0,oA),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=uH(s,this._document),this._previewRef=s,n.matchSize?hH(r,o):r.style.transform=h1(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=oH(this._rootElement),hH(r,this._initialDomRect),this._initialTransform&&(r.style.transform=this._initialTransform);return tA(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},oA),Vm(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 t1e(t){const n=getComputedStyle(t),e=nA(n,"transition-property"),i=e.find(a=>"transform"===a||"all"===a);if(!i)return 0;const r=e.indexOf(i),o=nA(n,"transition-duration"),s=nA(n,"transition-delay");return nH(o[r])+nH(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=uH(this._placeholderRef,this._document)):i=oH(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=m0(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=m0(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=dH(i,a.left+o,a.right-(c-o)),r=dH(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,Vm(this._rootElement,n))}_removeRootElementListeners(n){n.removeEventListener("mousedown",this._pointerDown,u1),n.removeEventListener("touchstart",this._pointerDown,lH),n.removeEventListener("dragstart",this._nativeDragStart,u1)}_applyRootElementTransform(n,e){const i=h1(n,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=d1(i,this._initialTransform)}_applyPreviewTransform(n,e){const i=this._previewTemplate?.template?void 0:this._initialTransform,r=h1(n,e);this._preview.style.transform=d1(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:m0(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)&&f0(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=zI(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 h1(t,n){return`translate3d(${Math.round(t)}px, ${Math.round(n)}px, 0)`}function dH(t,n,e){return Math.max(n,Math.min(e,t))}function m0(t){return"t"===t.type[0]}function uH(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 hH(t,n){t.style.width=`${n.width}px`,t.style.height=`${n.height}px`,t.style.transform=h1(n.left,n.top)}function sA(t,n,e){const i=p0(n,t.length-1),r=p0(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 sA(o,c,s),o.forEach((p,b)=>{if(g[b]===p)return;const y=p.drag===n,k=y?f:m,D=y?n.getPlaceholderElement():p.drag.getRootElement();p.offset+=k,a?(D.style.transform=d1(`translate3d(${Math.round(p.offset)}px, 0, 0)`,p.initialTransform),f0(p.clientRect,0,k)):(D.style.transform=d1(`translate3d(0, ${Math.round(p.offset)}px, 0)`,p.initialTransform),f0(p.clientRect,k,0))}),this._previousSwap.overlaps=rA(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})=>{f0(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:iA(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=$t.EMPTY,this._verticalScrollDirection=ra.NONE,this._horizontalScrollDirection=Yo.NONE,this._stopScrollTimers=new Me,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function e1e(t=0,n=H_){return t<0&&(t=0),X_(t,t,n)}(0,$9).pipe(Et(this._stopScrollTimers)).subscribe(()=>{const s=this._scrollNode,a=this.autoScrollStep;this._verticalScrollDirection===ra.UP?s.scrollBy(0,-a):this._verticalScrollDirection===ra.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 rH(i),this._sortStrategy=new o1e(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||!iH(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=ra.NONE,o=Yo.NONE;if(this._parentPositions.positions.forEach((s,a)=>{a===this._document||!s.clientRect||i||iH(s.clientRect,.05,n,e)&&([r,o]=function a1e(t,n,e,i,r){const o=pH(n,r),s=gH(n,i);let a=ra.NONE,c=Yo.NONE;if(o){const l=t.scrollTop;o===ra.UP?l>0&&(a=ra.UP):t.scrollHeight-l>t.clientHeight&&(a=ra.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=pH(c,e),o=gH(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&&rA(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||!rA(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=zI(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 pH(t,n){const{top:e,bottom:i,height:r}=t,o=.05*r;return n>=e-o&&n<=e+o?ra.UP:n>=i-o&&n<=i+o?ra.DOWN:ra.NONE}function gH(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 f1=Ma({passive:!1,capture:!0});let c1e=(()=>{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,f1)})}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,f1)}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:f1}),r||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:f1}),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(ze),Y(yt))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const l1e={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let aA=(()=>{class t{constructor(e,i,r,o){this._document=e,this._ngZone=i,this._viewportRuler=r,this._dragDropRegistry=o}createDrag(e,i=l1e){return new r1e(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new s1e(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static#e=this.\u0275fac=function(i){return new(i||t)(Y(yt),Y(ze),Y(cl),Y(c1e))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const g0=new ee("CDK_DRAG_PARENT"),_H=new ee("CdkDragHandle");let bH=(()=>{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(Ge),w(g0,12))};static#t=this.\u0275dir=ce({type:t,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:[W.HasDecoratorInputTransform,"cdkDragHandleDisabled","disabled",Be]},standalone:!0,features:[rt([{provide:_H,useExisting:t}]),Zt]})}return t})();const vH=new ee("CDK_DRAG_CONFIG"),yH=new ee("CdkDropList");let cA=(()=>{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 Te,this.released=new Te,this.ended=new Te,this.entered=new Te,this.exited=new Te,this.dropped=new Te,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),Et(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(Li(e=>{const i=e.map(r=>r.element);this._selfHandle&&this.rootElementSelector&&i.push(this.element),this._dragRef.withHandles(i)}),Yi(e=>Ci(...e.map(i=>i._stateChanges.pipe(jr(i))))),Et(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(Ge),w(yH,12),w(yt),w(ze),w(di),w(vH,8),w(no,8),w(aA),w(Tn),w(_H,10),w(g0,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",Be],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:[rt([{provide:g0,useExisting:t}]),Zt,Bn]})}return t})();const lA=new ee("CdkDropListGroup");let h1e=0,dA=(()=>{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-"+h1e++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new Te,this.entered=new Te,this.exited=new Te,this.sorted=new Te,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(jr(this._dir.value),Et(this._destroyed)).subscribe(i=>e.withDirection(i)),e.beforeStarted.subscribe(()=>{const i=j_(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(Ge),w(aA),w(Tn),w(Y_),w(no,8),w(lA,12),w(vH,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",Be],sortingDisabled:[W.HasDecoratorInputTransform,"cdkDropListSortingDisabled","sortingDisabled",Be],enterPredicate:[W.None,"cdkDropListEnterPredicate","enterPredicate"],sortPredicate:[W.None,"cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:[W.HasDecoratorInputTransform,"cdkDropListAutoScrollDisabled","autoScrollDisabled",Be],autoScrollStep:[W.None,"cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],standalone:!0,features:[rt([{provide:lA,useValue:void 0},{provide:yH,useExisting:t}]),Zt]})}return t})(),g1e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({providers:[aA],imports:[ll]})}return t})();function _1e(t,n){}class m1{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 xH=(()=>{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=fe(Hn),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=fe(Tn),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=cw(),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=cw();return e===i||e.contains(i)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=cw()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static#e=this.\u0275fac=function(i){return new(i||t)(w(Ge),w(YI),w(yt,8),w(m1),w(pw),w(ze),w(Aw),w(ea))};static#t=this.\u0275cmp=$e({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,_1e,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 uA{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&&!Co(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 wH=new ee("DialogScrollStrategy",{providedIn:"root",factory:()=>{const t=fe(Ui);return()=>t.scrollStrategies.block()}}),b1e=new ee("DialogData"),v1e=new ee("DefaultDialogConfig");let x1e=0,kH=(()=>{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(jr(void 0))),this._scrollStrategy=a}open(e,i){(i={...this._defaultOptions||new m1,...i}).id=i.id||"cdk-dialog-"+x1e++,i.id&&this.getDialogById(i.id);const o=this._getOverlayConfig(i),s=this._overlay.create(o),a=new uA(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(){hA(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){hA(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),hA(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const i=new Rm({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:m1,useValue:r},{provide:uA,useValue:i},{provide:Aw,useValue:e}];let a;r.container?"function"==typeof r.container?a=r.container:(a=r.container.type,s.push(...r.container.providers(r))):a=xH;const c=new Am(a,r.viewContainerRef,Di.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 Am(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:b1e,useValue:e.data},{provide:uA,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(no,null,{optional:!0}))&&a.push({provide:no,useValue:{value:e.direction,change:st()}}),Di.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(Di),Y(v1e,8),Y(t,12),Y(Iw),Y(wH))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function hA(t,n){let e=t.length;for(;e--;)n(t[e])}let w1e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({providers:[kH],imports:[ju,Mm,x9,Mm]})}return t})();function k1e(t,n){}class fA{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 mA="mdc-dialog--open",CH="mdc-dialog--opening",EH="mdc-dialog--closing";let TH=(()=>{class t extends xH{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 Te,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?DH(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?DH(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(SH,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(CH,mA)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(mA),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(mA),this._animationsEnabled?(this._hostElement.style.setProperty(SH,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(EH)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(CH,EH)}_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(Ge),w(YI),w(yt,8),w(fA),w(pw),w(ze),w(Aw),w(pi,8),w(ea))};static#t=this.\u0275cmp=$e({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,k1e,0,0,"ng-template",2),v()())},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 SH="--mat-dialog-transition-duration";function DH(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 p1=function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t}(p1||{});class Cd{constructor(n,e,i){this._ref=n,this._containerInstance=i,this._afterOpened=new Me,this._beforeClosed=new Me,this._state=p1.OPEN,this.disableClose=e.disableClose,this.id=n.id,n.addPanelClass("mat-mdc-dialog-panel"),i._animationStateChanged.pipe(dn(r=>"opened"===r.state),Nn(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(dn(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(dn(r=>27===r.keyCode&&!this.disableClose&&!Co(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),IH(this,"keydown"===r.type?"keyboard":"mouse"))})}close(n){this._result=n,this._containerInstance._animationStateChanged.pipe(dn(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=p1.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=p1.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function IH(t,n,e){return t._closeInteractionType=n,t.close(e)}const g1=new ee("MatMdcDialogData"),T1e=new ee("mat-mdc-dialog-default-options"),AH=new ee("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{const t=fe(Ui);return()=>t.scrollStrategies.block()}});let D1e=0,Bm=(()=>{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=fA,this.afterAllClosed=cm(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(jr(void 0))),this._dialog=i.get(kH),this._dialogRefConstructor=Cd,this._dialogContainerType=TH,this._dialogDataToken=g1}open(e,i){let r;(i={...this._defaultOptions||new fA,...i}).id=i.id||"mat-mdc-dialog-"+D1e++,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:m1,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(Di),Y(Fu,8),Y(T1e,8),Y(AH),Y(t,12),Y(Iw),Y(pi,8))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),I1e=0,Um=(()=>{class t{constructor(e,i,r){this.dialogRef=e,this._elementRef=i,this._dialog=r,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=RH(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){const i=e._matDialogClose||e._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}_onButtonClick(e){IH(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(Ge),w(Bm))};static#t=this.\u0275dir=ce({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(i,r){1&i&&H("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:[Bn]})}return t})(),MH=(()=>{class t{constructor(e,i,r){this._dialogRef=e,this._elementRef=i,this._dialog=r}ngOnInit(){this._dialogRef||(this._dialogRef=RH(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(Ge),w(Bm))};static#t=this.\u0275dir=ce({type:t,standalone:!0})}return t})(),pA=(()=>{class t extends MH{constructor(){super(...arguments),this.id="mat-mdc-dialog-title-"+I1e++}_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})(),_0=(()=>{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})(),b0=(()=>{class t extends MH{_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 RH(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 A1e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({providers:[Bm],imports:[w1e,ju,Mm,Ot,Ot]})}return t})(),M1e=(()=>{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(g1))};static#t=this.\u0275cmp=$e({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),C(1,"ECL Builder"),v(),_(2,"div",1)(3,"snomed-ecl-builder",2),H("eclOutput",function(s){return r.eclChanged(s)}),v()(),_(4,"div",3)(5,"button",4),C(6,"Ok"),v()()),2&i&&(x(3),em("eclstring",r.localEcl),x(2),E("mat-dialog-close",r.data))},dependencies:[Eo,Um,pA,b0,_0],styles:[".full-height[_ngcontent-%COMP%]{height:78%}.actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"]})}return t})();const FH=new ee("CdkAccordion");let R1e=0,P1e=(()=>{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=$t.EMPTY,this.closed=new Te,this.opened=new Te,this.destroyed=new Te,this.expandedChange=new Te,this.id="cdk-accordion-child-"+R1e++,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(FH,12),w(Tn),w(RI))};static#t=this.\u0275dir=ce({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[W.HasDecoratorInputTransform,"expanded","expanded",Be],disabled:[W.HasDecoratorInputTransform,"disabled","disabled",Be]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],standalone:!0,features:[rt([{provide:FH,useValue:void 0}]),Zt]})}return t})(),F1e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({})}return t})();const O1e=["body"],N1e=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],L1e=["mat-expansion-panel-header","*","mat-action-row"];function V1e(t,n){}const B1e=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],U1e=["mat-panel-title","mat-panel-description","*"];function z1e(t,n){1&t&&(_(0,"span",1),jc(),_(1,"svg",2),xe(2,"path",3),v()()),2&t&&E("@indicatorRotate",P()._getExpandedState())}const OH=new ee("MAT_ACCORDION"),NH="225ms cubic-bezier(0.4,0.0,0.2,1)",LH={indicatorRotate:Yn("indicatorRotate",[_n("collapsed, void",We({transform:"rotate(0deg)"})),_n("expanded",We({transform:"rotate(180deg)"})),Kt("expanded <=> collapsed, void => collapsed",qt(NH))]),bodyExpansion:Yn("bodyExpansion",[_n("collapsed, void",We({height:"0px",visibility:"hidden"})),_n("expanded",We({height:"*",visibility:""})),Kt("expanded <=> collapsed, void => collapsed",qt(NH))])},VH=new ee("MAT_EXPANSION_PANEL");let H1e=(()=>{class t{constructor(e,i){this._template=e,this._expansionPanel=i}static#e=this.\u0275fac=function(i){return new(i||t)(w(Gn),w(VH,8))};static#t=this.\u0275dir=ce({type:t,selectors:[["ng-template","matExpansionPanelContent",""]],standalone:!0})}return t})(),j1e=0;const BH=new ee("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let UH=(()=>{class t extends P1e{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 Te,this.afterCollapse=new Te,this._inputChanges=new Me,this._headerId="mat-expansion-panel-header-"+j1e++,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(jr(null),dn(()=>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){!zH(e)&&!this._animationsDisabled&&this._body&&this._body?.nativeElement.setAttribute("inert","")}_animationDone(e){zH(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(OH,12),w(Tn),w(RI),w(di),w(yt),w(pi,8),w(BH,8))};static#t=this.\u0275cmp=$e({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(i,r,o){if(1&i&&cn(o,H1e,5),2&i){let s;Re(s=Pe())&&(r._lazyContent=s.first)}},viewQuery:function(i,r){if(1&i&&vt(O1e,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",Be],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],standalone:!0,features:[rt([{provide:OH,useValue:void 0},{provide:VH,useExisting:t}]),Zt,tt,Bn,St],ngContentSelectors:L1e,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(N1e),ct(0),_(1,"div",1,0),H("@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,V1e,0,0,"ng-template",3),v(),ct(6,2),v()}2&i&&(x(),E("@bodyExpansion",r._getExpandedState())("id",r.id),_t("aria-labelledby",r._headerId),x(4),E("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:[LH.bodyExpansion]},changeDetection:0})}return t})();function zH(t){return"void"===t.fromState}let $1e=(()=>{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=$t.EMPTY,this.tabIndex=0;const l=e.accordion?e.accordion._stateChanges.pipe(dn(d=>!(!d.hideToggle&&!d.togglePosition))):us;this.tabIndex=parseInt(c||"")||0,this._parentChangeSubscription=Ci(e.opened,e.closed,l,e._inputChanges.pipe(dn(d=>!!(d.hideToggle||d.disabled||d.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(dn(()=>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:Co(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(UH,1),w(Ge),w(ea),w(Tn),w(BH,8),w(pi,8),Is("tabindex"))};static#t=this.\u0275cmp=$e({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&&H("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:xo(e)]},standalone:!0,features:[Zt,St],ngContentSelectors:U1e,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(B1e),_(0,"span",0),ct(1),ct(2,1),ct(3,2),v(),q(4,z1e,3,1,"span",1)),2&i&&(lt("mat-content-hide-toggle",!r._showToggle()),x(4),gn(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:[LH.indicatorRotate]},changeDetection:0})}return t})(),G1e=(()=>{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})(),W1e=(()=>{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})(),q1e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({imports:[Ot,F1e,Mm]})}return t})();function Q1e(t,n){if(1&t){const e=Se();_(0,"mat-option",2),H("click",function(){return j(e),G(P().optionClicked())}),C(1),v()}if(2&t){const e=n.$implicit;E("value",e),x(),Ze(" ",e.display," ")}}let K1e=(()=>{class t{constructor(e){this.terminologyService=e,this.selectionChange=new Te}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(io))};static#t=this.\u0275cmp=$e({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"),C(2),v(),_(3,"mat-select",0),Ur("ngModelChange",function(s){return to(r.selectedOptions,s)||(r.selectedOptions=s),s}),q(4,Q1e,2,2,"mat-option",1),v(),_(5,"mat-hint"),C(6),v()()),2&i&&(x(2),nt(r.binding.title),x(),E("multiple","Select (Multiple)"==r.binding.type),Br("ngModel",r.selectedOptions),x(),E("ngForOf",r.options),x(2),nt(r.binding.note))},dependencies:[Ko,Fa,Bs,Zu,fd,ms,h0,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 X1e=["input"],Y1e=["formField"],Z1e=["*"];let HH=0;class jH{constructor(n,e){this.source=n,this.value=e}}const J1e={provide:ro,useExisting:fn(()=>gA),multi:!0},$H=new ee("MatRadioGroup"),eke=new ee("mat-radio-default-options",{providedIn:"root",factory:function tke(){return{color:"accent"}}});let gA=(()=>{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-"+HH++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new Te}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 jH(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(Tn))};static#t=this.\u0275dir=ce({type:t,selectors:[["mat-radio-group"]],contentQueries:function(i,r,o){if(1&i&&cn(o,_1,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",Be],required:[W.HasDecoratorInputTransform,"required","required",Be]},outputs:{change:"change"},exportAs:["matRadioGroup"],standalone:!0,features:[rt([J1e,{provide:$H,useExisting:t}]),Zt]})}return t})(),_1=(()=>{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-"+ ++HH,this.id=this._uniqueId,this.disableRipple=!1,this.tabIndex=0,this.change=new Te,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._noopAnimations="NoopAnimations"===a,l&&(this.tabIndex=xo(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 jH(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($H,8),w(Ge),w(Tn),w(ea),w(RI),w(pi,8),w(eke,8),Is("tabindex"))};static#t=this.\u0275cmp=$e({type:t,selectors:[["mat-radio-button"]],viewQuery:function(i,r){if(1&i&&(vt(X1e,5),vt(Y1e,7,Ge)),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&&H("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",Be],tabIndex:[W.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>null==e?0:xo(e)],checked:[W.HasDecoratorInputTransform,"checked","checked",Be],value:"value",labelPosition:"labelPosition",disabled:[W.HasDecoratorInputTransform,"disabled","disabled",Be],required:[W.HasDecoratorInputTransform,"required","required",Be],color:"color"},outputs:{change:"change"},exportAs:["matRadioButton"],standalone:!0,features:[Zt,St],ngContentSelectors:Z1e,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),H("click",function(a){return j(o),G(r._onTouchTargetClick(a))}),v(),_(4,"input",5,1),H("change",function(a){return j(o),G(r._onInputInteraction(a))}),v(),_(6,"div",6),xe(7,"div",7)(8,"div",8),v(),_(9,"div",9),xe(10,"div",10),v()(),_(11,"label",11),ct(12),v()()}2&i&&(E("labelPosition",r.labelPosition),x(2),lt("mdc-radio--disabled",r.disabled),x(2),E("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),x(5),E("matRippleTrigger",r._rippleTrigger.nativeElement)("matRippleDisabled",r._isRippleDisabled())("matRippleCentered",!0),x(2),E("for",r.inputId))},dependencies:[rl,o2],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})(),nke=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({imports:[Ot,ac,q_,_1,Ot]})}return t})();function ike(t,n){if(1&t){const e=Se();_(0,"mat-radio-button",3),H("click",function(){const r=j(e).$implicit;return G(P().optionSelected(r))}),C(1),v()}if(2&t){const e=n.$implicit;E("value",e.code),x(),Ze(" ",e.display," ")}}let rke=(()=>{class t{constructor(e){this.terminologyService=e,this.selectionChange=new Te}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(io))};static#t=this.\u0275cmp=$e({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"),C(1),v(),_(2,"mat-radio-group",0),q(3,ike,2,2,"mat-radio-button",1),v(),_(4,"div",2),C(5),v()),2&i&&(x(),nt(r.binding.title),x(2),E("ngForOf",r.options),x(2),nt(r.binding.note))},dependencies:[Ko,gA,_1],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})(),oke=(()=>{class t{constructor(e){this.terminologyService=e,this.textChange=new Te,this.text=""}ngOnInit(){}onTextChange(e){this.text=e,this.textChange.emit(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(io))};static#t=this.\u0275cmp=$e({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"),C(2),v(),_(3,"textarea",1),Ur("ngModelChange",function(s){return to(r.text,s)||(r.text=s),s}),H("ngModelChange",function(s){return r.onTextChange(s)}),v(),_(4,"mat-hint"),C(5),v()()),2&i&&(x(2),nt(r.binding.title),x(),Br("ngModel",r.text),x(2),nt(r.binding.note))},dependencies:[Fa,Bs,Zu,kd,ia,ms,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 ske=["input"],ake=["label"],cke=["*"],lke=new ee("mat-checkbox-default-options",{providedIn:"root",factory:GH});function GH(){return{color:"accent",clickAction:"check-indeterminate"}}var So=function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t}(So||{});const dke={provide:ro,useExisting:fn(()=>_A),multi:!0};class uke{}let hke=0;const WH=GH();let _A=(()=>{class t{focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){const i=new uke;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 Te,this.indeterminateChange=new Te,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=So.Init,this._controlValueAccessorChangeFn=()=>{},this._validatorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||WH,this.color=this._options.color||WH.color,this.tabIndex=parseInt(o)||0,this.id=this._uniqueId="mat-mdc-checkbox-"+ ++hke}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?So.Indeterminate:this.checked?So.Checked:So.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?So.Checked:So.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 So.Init:if(i===So.Checked)return this._animationClasses.uncheckedToChecked;if(i==So.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case So.Unchecked:return i===So.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case So.Checked:return i===So.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case So.Indeterminate:return i===So.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(Ge),w(Tn),w(ze),Is("tabindex"),w(pi,8),w(lke,8))};static#t=this.\u0275cmp=$e({type:t,selectors:[["mat-checkbox"]],viewQuery:function(i,r){if(1&i&&(vt(ske,5),vt(ake,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",Be],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[W.HasDecoratorInputTransform,"disableRipple","disableRipple",Be],tabIndex:[W.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>null==e?void 0:xo(e)],color:"color",checked:[W.HasDecoratorInputTransform,"checked","checked",Be],disabled:[W.HasDecoratorInputTransform,"disabled","disabled",Be],indeterminate:[W.HasDecoratorInputTransform,"indeterminate","indeterminate",Be]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],standalone:!0,features:[rt([dke,{provide:ur,useExisting:t,multi:!0}]),Zt,Bn,St],ngContentSelectors:cke,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),H("click",function(a){return j(o),G(r._preventBubblingFromLabel(a))}),_(1,"div",4,0)(3,"div",5),H("click",function(){return j(o),G(r._onTouchTargetClick())}),v(),_(4,"input",6,1),H("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))}),v(),xe(6,"div",7),_(7,"div",8),jc(),_(8,"svg",9),xe(9,"path",10),v(),Zv(),xe(10,"div",11),v(),xe(11,"div",12),v(),_(12,"label",13,2),ct(14),v()()}if(2&i){const o=zt(2);E("labelPosition",r.labelPosition),x(4),lt("mdc-checkbox--selected",r.checked),E("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),x(7),E("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),x(),E("for",r.inputId)}},dependencies:[rl,o2],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})(),pke=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({imports:[_A,Ot,Ot]})}return t})();function gke(t,n){if(1&t){const e=Se();_(0,"mat-checkbox",3),H("click",function(){return j(e),G(P().optionClicked())}),C(1),v()}if(2&t){const e=n.$implicit;em("formControlName",e.display),x(),Ze(" ",e.display," ")}}let _ke=(()=>{class t{constructor(e,i){this.terminologyService=e,this._formBuilder=i,this.selectionChange=new Te,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(io),w(k7))};static#t=this.\u0275cmp=$e({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,gke,2,2,"mat-checkbox",1),_(2,"span",2),C(3),v()()),2&i&&(E("formGroup",r.checkboxes),x(),E("ngForOf",r.options),x(2),nt(r.binding.note))},dependencies:[Ko,c0,ms,t0,wd,l0,_A],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})(),bke=(()=>{class t{constructor(e){this.terminologyService=e,this.textChange=new Te,this.value=0}ngOnInit(){}onValueChange(e){this.value=e,this.textChange.emit(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(io))};static#t=this.\u0275cmp=$e({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"),C(2),v(),_(3,"input",1),Ur("ngModelChange",function(s){return to(r.value,s)||(r.value=s),s}),H("ngModelChange",function(s){return r.onValueChange(s)}),v(),_(4,"mat-hint"),C(5),v()()),2&i&&(x(2),nt(r.binding.title),x(),Br("ngModel",r.value),x(2),nt(r.binding.note))},dependencies:[Fa,Bs,Zu,kd,ia,Zw,ms,n1,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})(),vke=(()=>{class t{constructor(e){this.terminologyService=e,this.textChange=new Te,this.value=0}ngOnInit(){}onValueChange(e){this.value=e,this.textChange.emit(e)}static#e=this.\u0275fac=function(i){return new(i||t)(w(io))};static#t=this.\u0275cmp=$e({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"),C(2),v(),_(3,"input",1),Ur("ngModelChange",function(s){return to(r.value,s)||(r.value=s),s}),H("ngModelChange",function(s){return r.onValueChange(s)}),v(),_(4,"mat-hint"),C(5),v()()),2&i&&(x(2),nt(r.binding.title),x(),Br("ngModel",r.value),x(2),nt(r.binding.note))},dependencies:[Fa,Bs,Zu,kd,ia,Zw,ms,n1,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 yke=["newPanel"],xke=()=>({standalone:!0}),bA=()=>({});function wke(t,n){1&t&&(_(0,"mat-panel-description"),C(1," Click to add new binding "),v())}function kke(t,n){if(1&t){const e=Se();_(0,"button",46),H("click",function(){let r;return j(e),G(null==(r=P().newBindingForm.get("title"))?null:r.reset())}),_(1,"mat-icon"),C(2,"close"),v()()}}function Cke(t,n){1&t&&(_(0,"span"),C(1,"Restrict to Observables"),v())}function Eke(t,n){1&t&&(_(0,"span"),C(1,"Open to Observables + Findings + Procedures + Situations"),v())}function Tke(t,n){if(1&t&&(_(0,"mat-option",47),C(1),v()),2&t){const e=n.$implicit;E("value",e),x(),Ze(" ",e," ")}}function Ske(t,n){if(1&t){const e=Se();_(0,"button",46),H("click",function(){let r;return j(e),G(null==(r=P(2).newBindingForm.get("ecl"))?null:r.reset())}),_(1,"mat-icon"),C(2,"close"),v()()}}function Dke(t,n){if(1&t){const e=Se();_(0,"mat-form-field",14)(1,"mat-label"),C(2,"Answer options: ECL Expression"),v(),xe(3,"input",48),_(4,"a",49),H("click",function(){let r;j(e);const o=P();return G(o.openEclBuilder(null==(r=o.newBindingForm.get("ecl"))?null:r.value,"ecl"))}),C(5,"ECL Builder"),v(),q(6,Ske,3,0,"button",16),_(7,"mat-error"),C(8),v()()}if(2&t){let e;const i=P();x(6),E("ngIf",null==(e=i.newBindingForm.get("ecl"))?null:e.value),x(2),nt(i.getErrorMessage("ecl"))}}function Ike(t,n){1&t&&(_(0,"span"),C(1,"Restrict to Observables"),v())}function Ake(t,n){1&t&&(_(0,"span"),C(1,"Open to Observables + Findings + Procedures"),v())}function Mke(t,n){if(1&t){const e=Se();_(0,"mat-form-field",14),xe(1,"app-autocomplete-binding",50),_(2,"a",19),H("click",function(){return j(e),G(P().toggleCheckboxBinding())}),q(3,Ike,2,0,"span",10)(4,Ake,2,0,"span",10),v(),_(5,"mat-error"),C(6),v()()}if(2&t){const e=P();x(),E("binding",e.checkboxBinding),x(2),E("ngIf",e.checkboxBinding.ecl===e.codeBindingAll.ecl),x(),E("ngIf",e.checkboxBinding.ecl!=e.codeBindingAll.ecl),x(2),nt(e.getErrorMessage("ecl"))}}function Rke(t,n){if(1&t){const e=Se();_(0,"button",46),H("click",function(){let r;return j(e),G(null==(r=P(2).newBindingForm.get("note"))?null:r.reset())}),_(1,"mat-icon"),C(2,"close"),v()()}}function Pke(t,n){if(1&t&&(_(0,"mat-form-field",51)(1,"mat-label"),C(2,"Note"),v(),xe(3,"input",52),q(4,Rke,3,0,"button",16),_(5,"mat-error"),C(6),v()()),2&t){let e;const i=P();x(4),E("ngIf",null==(e=i.newBindingForm.get("note"))?null:e.value),x(2),nt(i.getErrorMessage("note"))}}function Fke(t,n){if(1&t){const e=Se();_(0,"button",27),H("click",function(){return j(e),G(P().addBinding())}),C(1,"Add binding"),v()}}function Oke(t,n){if(1&t){const e=Se();_(0,"button",27),H("click",function(){j(e);const r=P();return r.addBinding(),G(r.clearOutput())}),C(1,"Update binding"),v()}}function Nke(t,n){if(1&t){const e=Se();_(0,"button",35),H("click",function(){j(e);const r=P();return G(r.showRightContainer=!r.showRightContainer)}),C(1),v()}if(2&t){const e=P();x(),Ze(" ",e.showRightContainer?"Close data panel":"Open data panel"," ")}}function Lke(t,n){1&t&&(_(0,"button",53),C(1," Download form "),v()),2&t&&(P(),E("matMenuTriggerFor",zt(69)))}function Vke(t,n){if(1&t){const e=Se();_(0,"div",54)(1,"p",55),C(2),v(),_(3,"button",56),H("click",function(){return j(e),G(P().titleEditMode=!0)}),_(4,"mat-icon"),C(5,"edit"),v()()()}if(2&t){const e=P();x(2),nt(e.formTitle)}}function Bke(t,n){if(1&t){const e=Se();_(0,"div",54)(1,"form",57)(2,"mat-form-field")(3,"mat-label"),C(4,"Title"),v(),_(5,"input",58),Ur("ngModelChange",function(r){j(e);const o=P();return to(o.formTitle,r)||(o.formTitle=r),G(r)}),H("ngModelChange",function(){return j(e),G(P().refreshFhirQuestionnaire())}),v(),_(6,"button",46),H("click",function(){return j(e),G(P().formTitle="")}),_(7,"mat-icon"),C(8,"close"),v()()()(),_(9,"button",56),H("click",function(){return j(e),G(P().titleEditMode=!1)}),_(10,"mat-icon"),C(11,"save"),v()()()}if(2&t){const e=P();x(5),Br("ngModel",e.formTitle),E("ngModelOptions",Fs(2,xke))}}function Uke(t,n){if(1&t){const e=Se();_(0,"app-autocomplete-binding",67),H("selectionChange",function(r){j(e);const o=P().$implicit;return G(P().optionSelected(o.title,o.code,r))}),v()}2&t&&E("binding",P().$implicit)}function zke(t,n){if(1&t){const e=Se();_(0,"app-dropdown-binding",67),H("selectionChange",function(r){j(e);const o=P().$implicit;return G(P().optionSelected(o.title,o.code,r))}),v()}2&t&&E("binding",P().$implicit)}function Hke(t,n){if(1&t){const e=Se();_(0,"app-radios-binding",67),H("selectionChange",function(r){j(e);const o=P().$implicit;return G(P().optionSelected(o.title,o.code,r))}),v()}2&t&&E("binding",P().$implicit)}function jke(t,n){if(1&t&&(_(0,"span",68),C(1),v()),2&t){const e=P().$implicit;x(),nt(e.title)}}function $ke(t,n){if(1&t){const e=Se();_(0,"app-textbox-binding",69),H("textChange",function(r){j(e);const o=P().$implicit;return G(P().optionSelected(o.title,o.code,r))}),v()}2&t&&E("binding",P().$implicit)}function Gke(t,n){if(1&t){const e=Se();_(0,"app-integer-binding",69),H("textChange",function(r){j(e);const o=P().$implicit;return G(P().optionSelected(o.title,o.code,r))}),v()}2&t&&E("binding",P().$implicit)}function Wke(t,n){if(1&t){const e=Se();_(0,"app-decimal-binding",69),H("textChange",function(r){j(e);const o=P().$implicit;return G(P().optionSelected(o.title,o.code,r))}),v()}2&t&&E("binding",P().$implicit)}function qke(t,n){if(1&t){const e=Se();_(0,"app-checkbox-binding",67),H("selectionChange",function(r){j(e);const o=P().$implicit;return G(P().optionSelected(o.title,o.code,r))}),v()}2&t&&E("binding",P().$implicit)}function Qke(t,n){if(1&t&&(_(0,"button",70)(1,"mat-icon"),C(2,"info"),v()()),2&t){const e=P().$implicit;E("matMenuTriggerFor",zt(14))("disabled",!e.code&&!e.ecl)}}function Kke(t,n){if(1&t){const e=Se();_(0,"span",6),H("click",function(r){return j(e),G(r.stopPropagation())}),_(1,"h4"),C(2,"Question terminology binding"),v(),_(3,"pre"),C(4),v()()}if(2&t){const e=P().$implicit;E("disableRipple",!0),x(4),Iu("",null==e.code?null:e.code.code," |",null==e.code?null:e.code.display,"|")}}function Xke(t,n){if(1&t){const e=Se();_(0,"span",6),H("click",function(r){return j(e),G(r.stopPropagation())}),_(1,"h4"),C(2,"Answer terminology binding"),v(),_(3,"pre"),C(4),v()()}if(2&t){const e=P().$implicit;E("disableRipple",!0),x(4),nt(e.ecl)}}function Yke(t,n){if(1&t){const e=Se();_(0,"div",59)(1,"div",60)(2,"mat-icon",61),C(3,"drag_indicator"),v(),q(4,Uke,1,1,"app-autocomplete-binding",62)(5,zke,1,1,"app-dropdown-binding",62)(6,Hke,1,1,"app-radios-binding",62)(7,jke,2,1,"span",63)(8,$ke,1,1,"app-textbox-binding",64)(9,Gke,1,1,"app-integer-binding",64)(10,Wke,1,1,"app-decimal-binding",64)(11,qke,1,1,"app-checkbox-binding",62)(12,Qke,3,2,"button",65),_(13,"mat-menu",null,0),q(15,Kke,5,3,"span",66)(16,Xke,5,2,"span",66),v(),_(17,"button",56),H("click",function(){const r=j(e).index;return G(P().bindings.splice(r,1))}),_(18,"mat-icon"),C(19,"delete"),v()(),_(20,"button",56),H("click",function(){const r=j(e).index;return G(P().edit(r))}),_(21,"mat-icon"),C(22,"edit"),v()()()()}if(2&t){const e=n.$implicit;x(4),E("ngIf","Autocomplete"==e.type),x(),E("ngIf","Select (Single)"==e.type||"Select (Multiple)"==e.type),x(),E("ngIf","Options"==e.type),x(),E("ngIf","Section header"==e.type),x(),E("ngIf","Text box"==e.type),x(),E("ngIf","Integer"==e.type),x(),E("ngIf","Decimal"==e.type),x(),E("ngIf","Checkbox"==e.type),x(),E("ngIf","Section header"!=e.type),x(3),E("ngIf",e.code),x(),E("ngIf",e.ecl)}}function Zke(t,n){if(1&t){const e=Se();_(0,"div",74)(1,"button",75),H("click",function(){j(e);const r=P(2);return G(r.saveOutput(r.outputStr))}),xe(2,"mat-icon",76),v(),_(3,"button",77),H("click",function(){j(e);const r=P(2);return G(r.copyOutputToClipboard(r.outputStr))}),xe(4,"mat-icon",78),v()()}}function Jke(t,n){if(1&t&&(_(0,"div",71),q(1,Zke,5,0,"div",72),_(2,"textarea",73),C(3," "),v()()),2&t){const e=P();x(),E("ngIf",e.showRightContainer),x(),E("options",Fs(4,bA))("lang","json")("innerHTML",e.responseStr,yu)}}function eCe(t,n){if(1&t){const e=Se();_(0,"div",74)(1,"button",75),H("click",function(){j(e);const r=P(2);return G(r.saveBundleOutput(r.responseBundleStr))}),xe(2,"mat-icon",76),v(),_(3,"button",77),H("click",function(){j(e);const r=P(2);return G(r.copyOutputToClipboard(r.responseBundleStr))}),xe(4,"mat-icon",78),v()()}}function tCe(t,n){if(1&t&&(_(0,"div",71),q(1,eCe,5,0,"div",72),_(2,"textarea",73),C(3," "),v()()),2&t){const e=P();x(),E("ngIf",e.showRightContainer),x(),E("options",Fs(4,bA))("lang","json")("innerHTML",e.responseBundleStr,yu)}}function nCe(t,n){if(1&t){const e=Se();_(0,"div",74)(1,"button",75),H("click",function(){j(e);const r=P(2);return G(r.saveOutput(r.fhirQuestionnaireStr))}),xe(2,"mat-icon",76),v(),_(3,"button",77),H("click",function(){j(e);const r=P(2);return G(r.copyOutputToClipboard(r.fhirQuestionnaireStr))}),xe(4,"mat-icon",78),v()()}}function iCe(t,n){if(1&t&&(_(0,"div",71),q(1,nCe,5,0,"div",72),_(2,"textarea",73),C(3," "),v()()),2&t){const e=P();x(),E("ngIf",e.showRightContainer),x(),E("options",Fs(4,bA))("lang","json")("innerHTML",e.fhirQuestionnaireStr,yu)}}let rCe=(()=>{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 Lm({title:new ps("",[Om.required,Om.maxLength(50)]),code:new ps("",[]),type:new ps("",[Om.required]),ecl:new ps("",[]),value:new ps("",[]),note:new ps("",[Om.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 ko((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){sA(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(M1e,{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(io),w(J2),w(Bm))};static#t=this.\u0275cmp=$e({type:t,selectors:[["app-bindings-sandbox"]],viewQuery:function(i,r){if(1&i&&vt(yke,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"),C(2,"Terminology Bindings Sandbox "),_(3,"button",5)(4,"mat-icon"),C(5,"info"),v()(),_(6,"mat-menu",null,0)(8,"span",6),H("click",function(a){return j(o),G(a.stopPropagation())}),_(9,"h4"),C(10,"Terminology Bindings Sandbox"),v(),_(11,"p"),C(12,"This is a sandbox for creating terminology bindings, designed to support education activities."),v()()()(),_(13,"div",7)(14,"div",8)(15,"mat-expansion-panel",9,1),H("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"),C(20,"New binding:"),v()(),q(21,wke,2,0,"mat-panel-description",10),v(),_(22,"div")(23,"form",11)(24,"div",12)(25,"div",13)(26,"h5"),C(27,"Question"),v(),_(28,"mat-form-field",14)(29,"mat-label"),C(30,"Question text"),v(),xe(31,"input",15),q(32,kke,3,0,"button",16),_(33,"mat-error"),C(34),v()(),_(35,"mat-form-field",17),xe(36,"app-autocomplete-binding",18),_(37,"a",19),H("click",function(){return j(o),G(r.toggleCodeBinding())}),q(38,Cke,2,0,"span",10)(39,Eke,2,0,"span",10),v(),_(40,"mat-error"),C(41),v()()(),_(42,"div",13)(43,"h5"),C(44,"Answer"),v(),_(45,"mat-form-field",14)(46,"mat-label"),C(47,"Answer Type"),v(),_(48,"mat-select",20),q(49,Tke,2,2,"mat-option",21),v(),_(50,"mat-error"),C(51),v()(),q(52,Dke,9,2,"mat-form-field",22)(53,Mke,7,4,"mat-form-field",22),v()(),q(54,Pke,7,2,"mat-form-field",23),v(),xe(55,"br"),_(56,"div",24),xe(57,"span",25),q(58,Fke,2,0,"button",26)(59,Oke,2,0,"button",26),_(60,"button",27),H("click",function(){return j(o),G(r.cancelEdit())}),C(61,"Cancel"),v()()()()(),_(62,"div",28)(63,"div",29),q(64,Nke,2,1,"button",30),_(65,"input",31,2),H("change",function(a){return j(o),G(r.uploadFile(a))}),v(),q(67,Lke,2,1,"button",32),_(68,"mat-menu",33,3)(70,"button",34),H("click",function(){return j(o),G(r.saveForm())}),C(71,"Download"),v(),_(72,"button",34),H("click",function(){return j(o),G(r.saveOutput(r.fhirQuestionnaireStr))}),C(73,"Download as FHIR Questionnaire"),v()(),_(74,"button",35),H("click",function(){return j(o),G(zt(66).click())}),C(75,"Upload form"),v(),_(76,"button",35),H("click",function(){return j(o),G(r.loadExample1())}),C(77,"Example"),v(),_(78,"button",35),H("click",function(){return j(o),G(r.clear())}),C(79,"Clear"),v()()()(),q(80,Vke,6,1,"div",36)(81,Bke,12,3,"div",36),_(82,"div",37)(83,"div",38)(84,"div",39),H("cdkDropListDropped",function(a){return j(o),G(r.onDrop(a))}),q(85,Yke,23,11,"div",40),v()(),_(86,"div",38)(87,"mat-tab-group",41)(88,"mat-tab",42),q(89,Jke,4,5,"div",43),v(),_(90,"mat-tab",44),q(91,tCe,4,5,"div",43),v(),_(92,"mat-tab",45),q(93,iCe,4,5,"div",43),v()()()()()}if(2&i){let o;const s=zt(7);x(3),E("matMenuTriggerFor",s),x(5),E("disableRipple",!0),x(13),E("ngIf",!r.panelOpenState),x(2),E("formGroup",r.newBindingForm),x(9),E("ngIf",null==(o=r.newBindingForm.get("title"))?null:o.value),x(2),nt(r.getErrorMessage("title")),x(2),E("binding",r.codeBinding),x(2),E("ngIf",r.codeBinding===r.codeBindingAll),x(),E("ngIf",r.codeBinding!=r.codeBindingAll),x(2),nt(r.getErrorMessage("code")),x(8),E("ngForOf",r.controlTypes),x(2),nt(r.getErrorMessage("type")),x(),E("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),x(),E("ngIf","Checkbox"==r.newBindingForm.controls.type.value),x(),E("ngIf","Section header"!=r.newBindingForm.controls.type.value),x(4),E("ngIf",-1==r.indexInEdit),x(),E("ngIf",r.indexInEdit>-1),x(5),E("ngIf",r.bindings.length),x(3),E("ngIf",r.bindings.length),x(13),E("ngIf",!r.titleEditMode),x(),E("ngIf",r.titleEditMode),x(2),E("@growShrink",r.stateName),x(2),E("ngForOf",r.bindings),x(),E("@openClose",r.stateName),x(3),E("ngIf",r.bindings.length>0),x(2),E("ngIf",r.bindings.length>0),x(2),E("ngIf",r.bindings.length>0)}},dependencies:[Ko,zr,l1,dA,cA,bH,Eo,na,To,Pa,mc,Wu,Fa,Bs,E7,S7,fd,kd,c0,ia,ms,t0,wd,l0,c1,u0,h0,Vs,Xu,Ju,UH,$1e,W1e,G1e,d0,K1e,rke,oke,_ke,bke,vke],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",[_n("open",We({opacity:1,width:"50%"})),_n("closed",We({opacity:0,width:"0"})),Kt("open <=> closed",[qt("0.5s")])]),Yn("growShrink",[_n("open",We({width:"50%"})),_n("closed",We({width:"100%"})),Kt("open <=> closed",[qt("0.5s")])])]}})}return t})(),oCe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=$e({type:t,selectors:[["app-prescription-main"]],decls:2,vars:0,template:function(i,r){1&i&&(_(0,"p"),C(1,"prescription-main works!, no?"),v())}})}return t})();const sCe=["mat-sort-header",""],aCe=["*"];function cCe(t,n){if(1&t){const e=Se();_(0,"div",2),H("@arrowPosition.start",function(){return j(e),G(P()._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){return j(e),G(P()._disableViewStateAnimation=!1)}),xe(1,"div",3),_(2,"div",4),xe(3,"div",5)(4,"div",6)(5,"div",7),v()()}if(2&t){const e=P();E("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),x(2),E("@indicator",e._getArrowDirectionState()),x(),E("@leftPointer",e._getArrowDirectionState()),x(),E("@rightPointer",e._getArrowDirectionState())}}const qH=new ee("MAT_SORT_DEFAULT_OPTIONS");let Ed=(()=>{class t{get direction(){return this._direction}set direction(e){this._direction=e}constructor(e){this._defaultOptions=e,this._initializedStream=new tw(1),this.sortables=new Map,this._stateChanges=new Me,this.start="asc",this._direction="",this.disabled=!1,this.sortChange=new Te,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 lCe(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(qH,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",Be],disabled:[W.HasDecoratorInputTransform,"matSortDisabled","disabled",Be]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],standalone:!0,features:[Zt,Bn]})}return t})();const Td=T_e.ENTERING+" "+E_e.STANDARD_CURVE,zm={indicator:Yn("indicator",[_n("active-asc, asc",We({transform:"translateY(0px)"})),_n("active-desc, desc",We({transform:"translateY(10px)"})),Kt("active-asc <=> active-desc",qt(Td))]),leftPointer:Yn("leftPointer",[_n("active-asc, asc",We({transform:"rotate(-45deg)"})),_n("active-desc, desc",We({transform:"rotate(45deg)"})),Kt("active-asc <=> active-desc",qt(Td))]),rightPointer:Yn("rightPointer",[_n("active-asc, asc",We({transform:"rotate(45deg)"})),_n("active-desc, desc",We({transform:"rotate(-45deg)"})),Kt("active-asc <=> active-desc",qt(Td))]),arrowOpacity:Yn("arrowOpacity",[_n("desc-to-active, asc-to-active, active",We({opacity:1})),_n("desc-to-hint, asc-to-hint, hint",We({opacity:.54})),_n("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",We({opacity:0})),Kt("* => asc, * => desc, * => active, * => hint, * => void",qt("0ms")),Kt("* <=> *",qt(Td))]),arrowPosition:Yn("arrowPosition",[Kt("* => desc-to-hint, * => desc-to-active",qt(Td,Im([We({transform:"translateY(-25%)"}),We({transform:"translateY(0)"})]))),Kt("* => hint-to-desc, * => active-to-desc",qt(Td,Im([We({transform:"translateY(0)"}),We({transform:"translateY(25%)"})]))),Kt("* => asc-to-hint, * => asc-to-active",qt(Td,Im([We({transform:"translateY(25%)"}),We({transform:"translateY(0)"})]))),Kt("* => hint-to-asc, * => active-to-asc",qt(Td,Im([We({transform:"translateY(0)"}),We({transform:"translateY(-25%)"})]))),_n("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",We({transform:"translateY(0)"})),_n("hint-to-desc, active-to-desc, desc",We({transform:"translateY(-25%)"})),_n("hint-to-asc, active-to-asc, asc",We({transform:"translateY(25%)"}))]),allowChildren:Yn("allowChildren",[Kt("* <=> *",[Cw("@*",kw(),{optional:!0})])])};let b1=(()=>{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 uCe={provide:b1,deps:[[new Hl,new df,b1]],useFactory:function dCe(t){return t||new b1}};let vA=(()=>{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(b1),w(Tn),w(Ed,8),w("MAT_SORT_HEADER_COLUMN_DEF",8),w(ea),w(Ge),w(l9,8),w(qH,8))};static#t=this.\u0275cmp=$e({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(i,r){1&i&&H("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",Be],sortActionDescription:"sortActionDescription",disableClear:[W.HasDecoratorInputTransform,"disableClear","disableClear",Be]},exportAs:["matSortHeader"],standalone:!0,features:[Zt,St],attrs:sCe,ngContentSelectors:aCe,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),v(),q(3,cCe,6,6,"div",2),v()),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"),x(3),gn(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:[zm.indicator,zm.leftPointer,zm.rightPointer,zm.arrowOpacity,zm.arrowPosition,zm.allowChildren]},changeDetection:0})}return t})(),hCe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({providers:[uCe],imports:[Ot]})}return t})(),fCe=(()=>{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})(),Hm=(()=>{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(Sr(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(fCe))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function mCe(t,n){if(1&t&&(_(0,"mat-option",15),C(1),v()),2&t){const e=n.$implicit;E("value",e),x(),Ze(" ",e.title," ")}}function pCe(t,n){1&t&&xe(0,"mat-spinner",16)}function gCe(t,n){if(1&t){const e=Se();_(0,"div",17)(1,"span",18),C(2,"\u2261"),v(),C(3),_(4,"button",19),H("click",function(){const r=j(e).index;return G(P().deleteQuestionnaire(r))}),_(5,"mat-icon"),C(6,"delete"),v()()()}if(2&t){const e=n.$implicit;x(3),Ze(" ",e.title," ")}}let QH=(()=>{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){sA(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(k7),w(Hm),w(g1),w(Cd))};static#t=this.\u0275cmp=$e({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"),C(2,"Create a modular Questionnaire"),v(),_(3,"form",0)(4,"div",1)(5,"mat-form-field",2)(6,"mat-label"),C(7,"Assign Name"),v(),xe(8,"input",3),v()(),_(9,"div",1)(10,"mat-form-field",4)(11,"mat-label"),C(12,"Select Child Questionnaire"),v(),_(13,"mat-select",5),q(14,mCe,2,2,"mat-option",6),v()(),_(15,"button",7),H("click",function(){return r.addQuestionnaire()}),C(16,"Add questionnaire"),v(),q(17,pCe,1,0,"mat-spinner",8),v()(),_(18,"div",9)(19,"cdk-drop-list",10),H("cdkDropListDropped",function(s){return r.drop(s)}),q(20,gCe,7,1,"div",11),v()()(),_(21,"mat-dialog-actions",12)(22,"button",13),C(23,"Cancel"),v(),_(24,"button",14),H("click",function(){return r.closeModal()}),C(25,"Save"),v()()),2&i&&(x(3),E("formGroup",r.questionnaireForm),x(11),E("ngForOf",r.availableQuestionnaires),x(),E("disabled",r.loading),x(2),E("ngIf",r.loading),x(3),E("ngForOf",r.addedQuestionnaires),x(4),E("disabled",r.isSaveDisabled()||r.loading))},dependencies:[Ko,zr,dA,cA,Eo,na,To,Fa,Bs,fd,md,kd,c0,ia,ms,t0,wd,l0,h0,Um,b0,_0],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})(),KH=(()=>{class t{constructor(e,i){this.http=e,this.fhirService=i}generateRootQuestionnaire(e,i){var r=this;return me(function*(){try{let s=yield ko(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 ko(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(Hm))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const _Ce=t=>["status-pill",t],bCe=()=>["status-pill","active"],vCe=()=>["status-pill","draft"];function yCe(t,n){1&t&&(_(0,"th",17),C(1," Title "),v())}function xCe(t,n){if(1&t&&(_(0,"td",18),C(1),v()),2&t){const e=n.$implicit;x(),Ze(" ",e.title," ")}}function wCe(t,n){1&t&&(_(0,"th",17),C(1," Status "),v())}function kCe(t,n){if(1&t&&(_(0,"td",18)(1,"span",19),C(2),yo(3,"uppercase"),v()()),2&t){const e=n.$implicit;x(),E("ngClass",Ea(4,_Ce,e.status)),x(),nt(oc(3,2,e.status))}}function CCe(t,n){1&t&&(_(0,"th",17),C(1," Version "),v())}function ECe(t,n){if(1&t&&(_(0,"td",18),C(1),v()),2&t){const e=n.$implicit;x(),Ze(" ",e.meta.versionId," ")}}function TCe(t,n){1&t&&(_(0,"th",17),C(1," Type "),v())}function SCe(t,n){1&t&&(_(0,"span",19),C(1,"QUESTIONNAIRE"),v()),2&t&&E("ngClass",Fs(1,bCe))}function DCe(t,n){1&t&&(_(0,"span",19),C(1,"MODULAR ROOT"),v()),2&t&&E("ngClass",Fs(1,vCe))}function ICe(t,n){if(1&t&&(_(0,"td",18),q(1,SCe,2,2,"span",20)(2,DCe,2,2,"span",20),v()),2&t){const e=n.$implicit,i=P();x(),E("ngIf",!i.isRootQuestionnaire(e)),x(),E("ngIf",i.isRootQuestionnaire(e))}}function ACe(t,n){1&t&&(_(0,"th",21),C(1," Actions "),v())}function MCe(t,n){if(1&t){const e=Se();_(0,"button",32),H("click",function(){j(e);const r=P().$implicit;return G(P().validate(r))}),_(1,"mat-icon"),C(2,"done"),v()()}if(2&t){const e=P().$implicit;E("disabled",P().isRootQuestionnaire(e))}}function RCe(t,n){if(1&t){const e=Se();_(0,"button",33),H("click",function(){j(e);const r=P().$implicit;return G(P().assemble(r))}),_(1,"mat-icon"),C(2,"build"),v()()}}function PCe(t,n){if(1&t){const e=Se();_(0,"button",34),H("click",function(){j(e);const r=P().$implicit;return G(P().preview(r))}),_(1,"mat-icon"),C(2,"visibility"),v()()}}function FCe(t,n){if(1&t){const e=Se();_(0,"button",35),H("click",function(){j(e);const r=P().$implicit;return G(P().openInNewTab(r))}),_(1,"mat-icon"),C(2,"open_in_new"),v()()}}function OCe(t,n){if(1&t){const e=Se();_(0,"button",36),H("click",function(){j(e);const r=P().$implicit;return G(P().editQuestionnaire(r))}),_(1,"mat-icon"),C(2,"edit"),v()()}}function NCe(t,n){if(1&t){const e=Se();_(0,"button",37),H("click",function(){j(e);const r=P().$implicit;return G(P().openModularQuestionnaireModal(r))}),_(1,"mat-icon"),C(2,"edit"),v()()}}function LCe(t,n){if(1&t){const e=Se();_(0,"td",18),q(1,MCe,3,1,"button",22)(2,RCe,3,0,"button",23)(3,PCe,3,0,"button",24)(4,FCe,3,0,"button",25),_(5,"button",26),H("click",function(){const r=j(e).$implicit;return G(P().saveQuestionnaire(r))}),_(6,"mat-icon"),C(7,"cloud_download"),v()(),q(8,OCe,3,0,"button",27)(9,NCe,3,0,"button",28),_(10,"button",29),H("click",function(){const r=j(e).$implicit;return G(P().viewHistory(r))}),_(11,"mat-icon"),C(12,"history"),v()(),_(13,"span",30)(14,"button",31),H("click",function(){const r=j(e).$implicit;return G(P().deleteQuestionnaire(r))}),_(15,"mat-icon"),C(16,"delete"),v()()()()}if(2&t){const e=n.$implicit,i=P();x(),E("ngIf",i.config.validate),x(),E("ngIf",i.isRootQuestionnaire(e)),x(),E("ngIf",i.config.preview&&!i.isRootQuestionnaire(e)),x(),E("ngIf",i.config.preview),x(4),E("ngIf",!i.isRootQuestionnaire(e)),x(),E("ngIf",i.isRootQuestionnaire(e)),x(),E("disabled",1==e.meta.versionId),x(3),em("matTooltip",i.getDeleteTooltip(e)),x(),E("disabled",i.getReferencingQuestionnaires(e).length>0)}}function VCe(t,n){1&t&&xe(0,"tr",38)}function BCe(t,n){1&t&&xe(0,"tr",39)}function UCe(t,n){1&t&&(_(0,"p",40)(1,"i"),C(2," No questionnaires found. Upload your questionnaires to start. "),v()())}function zCe(t,n){1&t&&xe(0,"mat-spinner",41)}function HCe(t,n){if(1&t){const e=Se();_(0,"button",42),H("click",function(){return j(e),G(P().downloadAllQuestionnaires())}),C(1," Download bundle "),v()}}let XH=(()=>{class t{constructor(e,i,r,o){this.fhirService=e,this.questionnaireService=i,this.dialog=r,this._snackBar=o,this.questionnaireSelected=new Te,this.validateQuestionnaire=new Te,this.previewQuestionnaire=new Te,this.viewQuestionaireHistory=new Te,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}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(Vi,{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(Vi,{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(Vi,{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(Vi,{duration:2e3,data:"Questionnaire ready",panelClass:["green-snackbar"]})}).catch(i=>{console.error("Error assembling questionnaire:",i)})}editQuestionnaire(e){this.saveQuestionnaire(e),window.open("https://lhcformbuilder.nlm.nih.gov/","_blank")}openModularQuestionnaireModal(e){var i=this;return me(function*(){let r=yield i.questionnaireService.getRootQuestionnaireData(e);i.dialog.open(QH,{data:r,width:"75%"}).afterClosed().subscribe(s=>{s&&i.handleDialogResult(s,e)})})()}handleDialogResult(e,i){var r=this;return me(function*(){r._snackBar.openFromComponent(Vi,{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(Ia()).subscribe(s=>{r._snackBar.openFromComponent(Vi,{duration:5e3,data:"Questionnaire updated successfully",panelClass:["green-snackbar"]}),r.updateQuestionnairesList(s)},s=>{r._snackBar.openFromComponent(Vi,{duration:5e3,data:"Error saving questionnaire",panelClass:["red-snackbar"]})}))}catch(o){console.error("Error handling dialog result:",o)}})()}downloadAllQuestionnaires(){this._snackBar.openFromComponent(Vi,{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(Vi,{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(Hm),w(KH),w(Bm),w($u))};static#t=this.\u0275cmp=$e({type:t,selectors:[["app-list-questionnaires"]],viewQuery:function(i,r){if(1&i&&vt(Ed,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:[Bn],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),Gt(2,2),q(3,yCe,2,0,"th",3)(4,xCe,2,1,"td",4),Wt(),Gt(5,5),q(6,wCe,2,0,"th",3)(7,kCe,4,6,"td",4),Wt(),Gt(8,6),q(9,CCe,2,0,"th",3)(10,ECe,2,1,"td",4),Wt(),Gt(11,7),q(12,TCe,2,0,"th",3)(13,ICe,3,2,"td",4),Wt(),Gt(14,8),q(15,ACe,2,0,"th",9)(16,LCe,17,9,"td",4),Wt(),q(17,VCe,1,0,"tr",10)(18,BCe,1,0,"tr",11),v(),q(19,UCe,3,0,"p",12)(20,zCe,1,0,"mat-spinner",13),v(),_(21,"div",14)(22,"div",15),q(23,HCe,2,0,"button",16),v()()),2&i&&(x(),E("dataSource",r.dataSource),x(16),E("matHeaderRowDef",r.displayedColumns),x(),E("matRowDefColumns",r.displayedColumns),x(),E("ngIf",r.notFound&&!r.questionnaires.length),x(),E("ngIf",r.loading),x(3),E("ngIf",!r.loading&&r.questionnaires.length>0))},dependencies:[Sa,zr,Eo,na,To,md,pd,fl,gd,ml,hl,_d,pl,gl,bd,vd,Ju,Ed,vA,PD],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})(),jCe=(()=>{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=$e({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"),C(2,"Available Questionnaires"),v(),_(3,"app-list-questionnaires",0),H("questionnaireSelected",function(s){return r.selectAndDownload(s)}),v()(),_(4,"mat-dialog-actions",1)(5,"button",2),C(6,"Close"),v()()),2&i&&(x(3),E("config",r.listConfig))},dependencies:[Eo,Um,b0,_0,XH]})}return t})();const $Ce=["settingsForm"];function GCe(t,n){1&t&&(_(0,"mat-error"),C(1,"Base URL is required"),v())}function WCe(t,n){1&t&&(_(0,"mat-error"),C(1,"User Tag is required and must be at least 3 characters"),v())}let yA=(()=>{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(Hm),w(Cd))};static#t=this.\u0275cmp=$e({type:t,selectors:[["app-fhir-server-settings-modal"]],viewQuery:function(i,r){if(1&i&&vt($Ce,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"),C(2,"FHIR Server Connection"),v(),_(3,"p"),C(4,"Manager mode allows you to store questionnares in a FHIR Server. Enter the FHIR server URL and your "),_(5,"b"),C(6,"User Tag"),v(),C(7,", this value will be used to identify your questionnaires."),v(),_(8,"p",4),C(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."),v(),_(10,"form",5,0),H("ngSubmit",function(){return j(o),G(r.updateSettings())}),_(12,"mat-form-field")(13,"mat-label"),C(14,"Base URL of the FHIR Server"),v(),_(15,"input",6,1),Ur("ngModelChange",function(a){return j(o),to(r.baseUrl,a)||(r.baseUrl=a),G(a)}),v(),q(17,GCe,2,0,"mat-error",7),v(),_(18,"mat-form-field")(19,"mat-label"),C(20,"User Tag"),v(),_(21,"input",8,2),Ur("ngModelChange",function(a){return j(o),to(r.userTag,a)||(r.userTag=a),G(a)}),v(),q(23,WCe,2,0,"mat-error",7),v(),_(24,"div",9)(25,"button",10),C(26,"Open FHIR Repository"),v(),_(27,"button",11),C(28,"Close"),v()()()()}if(2&i){const o=zt(11),s=zt(16),a=zt(22);x(15),Br("ngModel",r.baseUrl),x(2),E("ngIf",s.invalid&&s.touched),x(4),Br("ngModel",r.userTag),x(2),E("ngIf",a.invalid&&a.touched),x(2),E("disabled",!o.valid)}},dependencies:[zr,Eo,Fa,Bs,E7,kd,c0,ia,ms,t0,e1,K2,Vs,Xu,Um],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})(),YH=(()=>{class t{constructor(e,i){this.data=e,this.dialogRef=i}static#e=this.\u0275fac=function(i){return new(i||t)(w(g1),w(Cd))};static#t=this.\u0275cmp=$e({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),C(1),v(),_(2,"div",1)(3,"p"),C(4),v()(),_(5,"div",2)(6,"button",3),C(7,"Yes"),v(),_(8,"button",3),C(9,"No"),v()()),2&i&&(x(),nt(r.data.title),x(3),nt(r.data.message),x(2),E("mat-dialog-close",!0),x(2),E("mat-dialog-close",!1))},dependencies:[Eo,Um,pA,b0,_0],encapsulation:2})}return t})();const qCe=new ee("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let ZH=(()=>{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 Te,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=JH(e||0),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(e){this._bufferValue=JH(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(Ge),w(ze),w(Tn),w(pi,8),w(qCe,8))};static#t=this.\u0275cmp=$e({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",xo],bufferValue:[W.HasDecoratorInputTransform,"bufferValue","bufferValue",xo],mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],standalone:!0,features:[Zt,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),v(),_(3,"div",3),xe(4,"span",4),v(),_(5,"div",5),xe(6,"span",4),v()),2&i&&(x(),Ki("flex-basis",r._getBufferBarFlexBasis()),x(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 JH(t,n=0,e=100){return Math.max(n,Math.min(e,t))}let KCe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({imports:[Ot]})}return t})();const XCe=["questionnairesList"];function YCe(t,n){if(1&t&&(_(0,"div",20),xe(1,"mat-progress-bar",21),_(2,"div",22),C(3),v()()),2&t){const e=P();x(),E("value",e.validatingProgress),x(2),Ze("",e.validatingProgress,"%")}}function ZCe(t,n){1&t&&(_(0,"span"),C(1,"Run validation"),v())}function JCe(t,n){1&t&&xe(0,"mat-spinner",23)}function eEe(t,n){if(1&t&&(_(0,"span",29),C(1),v()),2&t){const e=P(2);x(),Ze("Error: ",e.loadResults.error,"")}}function tEe(t,n){if(1&t&&(_(0,"span",30),C(1),v()),2&t){const e=P(2);x(),Ze("Inactive: ",e.loadResults.inactive,"")}}function nEe(t,n){if(1&t&&(_(0,"span",31),C(1),v()),2&t){const e=P(2);x(),Ze("Active: ",e.loadResults.active,"")}}function iEe(t,n){if(1&t&&(_(0,"p",24)(1,"b"),C(2,"Questionnaire:"),v(),C(3),_(4,"i"),C(5),v(),C(6,") - "),_(7,"span",25),C(8),v(),C(9),yo(10,"date"),q(11,eEe,2,1,"span",26)(12,tEe,2,1,"span",27)(13,nEe,2,1,"span",28),v()),2&t){const e=P();x(3),Ze(" ",e.questionnaire.title," ("),x(2),nt(e.questionnaire.url),x(3),Ze("",e.dataSource.data.length," bindings"),x(),Iu(" - - Version: ",e.questionnaire.meta.versionId," (",Au(10,8,e.questionnaire.meta.lastUpdated,"fullDate"),") "),x(2),E("ngIf",e.loadResults.total>0),x(),E("ngIf",e.loadResults.total>0),x(),E("ngIf",e.loadResults.total>0)}}function rEe(t,n){1&t&&(_(0,"th",32),C(1," # "),v())}function oEe(t,n){if(1&t&&(_(0,"td",33),C(1),v()),2&t){const e=n.$implicit;x(),Ze(" ",e.order," ")}}function sEe(t,n){1&t&&(_(0,"th",32),C(1," FHIRPath "),v())}function aEe(t,n){if(1&t&&(_(0,"td",33),C(1),v()),2&t){const e=n.$implicit;x(),Ze(" ",e.path," ")}}function cEe(t,n){1&t&&(_(0,"th",32),C(1," Path "),v())}function lEe(t,n){if(1&t&&(_(0,"td",33),C(1),v()),2&t){const e=n.$implicit;x(),Ze(" ",e.readablePath," ")}}function dEe(t,n){1&t&&(_(0,"th",32),C(1,"Code "),v())}function uEe(t,n){if(1&t&&(_(0,"td",33)(1,"a",34),C(2),v()()),2&t){const e=n.$implicit;x(),cx("href","http://snomed.info/id/",e.code,"",yy),x(),nt(e.code)}}function hEe(t,n){1&t&&(_(0,"th",32),C(1," Display "),v())}function fEe(t,n){if(1&t&&(_(0,"p",38),C(1),v()),2&t){const e=P().$implicit;x(),Ze("Concept FSN: ",e.serverDisplay,"")}}function mEe(t,n){1&t&&(_(0,"p",39),C(1,"Concept is inactive"),v())}function pEe(t,n){if(1&t){const e=Se();_(0,"p",40),C(1),_(2,"button",41),H("click",function(){const r=j(e).$implicit,o=P().$implicit;return G(P().replaceInactiveConcept(o,r.replacement))}),_(3,"mat-icon"),C(4,"arrow_forward"),v()()()}if(2&t){const e=n.$implicit,i=P(2);x(),s_(" Replacement: ",e.equivalence," to ",e.replacement.code," |",e.replacement.display,"| "),x(),E("disabled",i.validating)}}function gEe(t,n){if(1&t&&(_(0,"td",33),C(1),q(2,fEe,2,1,"p",35)(3,mEe,2,0,"p",36)(4,pEe,5,4,"p",37),v()),2&t){const e=n.$implicit;x(),Ze(" ",e.display," "),x(),E("ngIf",e.serverDisplay),x(),E("ngIf","Inactive"==e.status),x(),E("ngForOf",e.replacements)}}function _Ee(t,n){1&t&&(_(0,"th",32),C(1," System "),v())}function bEe(t,n){if(1&t&&(_(0,"td",33),C(1),v()),2&t){const e=n.$implicit;x(),Ze(" ",e.system," ")}}function vEe(t,n){1&t&&(_(0,"th",32),C(1," Status "),v())}function yEe(t,n){1&t&&(_(0,"span"),xe(1,"mat-progress-bar",42),v())}function xEe(t,n){if(1&t&&(_(0,"span")(1,"span",43),C(2),v()()),2&t){const e=P().$implicit;x(),E("ngClass",e.status),x(),nt(e.status)}}function wEe(t,n){if(1&t&&(_(0,"td",33),q(1,yEe,2,0,"span",3)(2,xEe,3,2,"span",3),v()),2&t){const e=n.$implicit;x(),E("ngIf","Validating"==e.status),x(),E("ngIf","Validating"!=e.status)}}function kEe(t,n){1&t&&xe(0,"tr",44)}function CEe(t,n){1&t&&xe(0,"tr",45)}function EEe(t,n){1&t&&xe(0,"mat-spinner",46)}let TEe=(()=>{class t{constructor(e){this.terminologyService=e,this.questionnaireUpdated=new Te,this.validatingQuestionnaire=new Te,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(Ia()).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 ko(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(io))};static#t=this.\u0275cmp=$e({type:t,selectors:[["app-validate-questionnaire"]],viewQuery:function(i,r){if(1&i&&(vt(Ed,5),vt(u0,5),vt(XCe,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:[Bn],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,YCe,4,2,"div",1),_(2,"button",2),H("click",function(){return r.validate()}),q(3,ZCe,2,0,"span",3)(4,JCe,1,0,"mat-spinner",4),v()(),q(5,iEe,14,11,"p",5),_(6,"div",6)(7,"table",7),Gt(8,8),q(9,rEe,2,0,"th",9)(10,oEe,2,1,"td",10),Wt(),Gt(11,11),q(12,sEe,2,0,"th",9)(13,aEe,2,1,"td",10),Wt(),Gt(14,12),q(15,cEe,2,0,"th",9)(16,lEe,2,1,"td",10),Wt(),Gt(17,13),q(18,dEe,2,0,"th",9)(19,uEe,3,3,"td",10),Wt(),Gt(20,14),q(21,hEe,2,0,"th",9)(22,gEe,5,4,"td",10),Wt(),Gt(23,15),q(24,_Ee,2,0,"th",9)(25,bEe,2,1,"td",10),Wt(),Gt(26,16),q(27,vEe,2,0,"th",9)(28,wEe,3,2,"td",10),Wt(),q(29,kEe,1,0,"tr",17)(30,CEe,1,0,"tr",18),v(),q(31,EEe,1,0,"mat-spinner",19),v()),2&i&&(x(),E("ngIf",r.validating),x(),E("disabled",r.validating||!r.questionnaire),x(),E("ngIf",!r.validating),x(),E("ngIf",r.validating),x(),E("ngIf",r.questionnaire),x(2),E("dataSource",r.dataSource),x(22),E("matHeaderRowDef",r.displayedColumns),x(),E("matRowDefColumns",r.displayedColumns),x(),E("ngIf",r.loading))},dependencies:[Sa,Ko,zr,Eo,na,To,ZH,md,pd,fl,gd,ml,hl,_d,pl,gl,bd,vd,Ju,Ed,vA,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 SEe=t=>["status-pill",t],DEe=()=>["status-pill","active"],IEe=()=>["status-pill","draft"];function AEe(t,n){1&t&&(_(0,"th",15),C(1," Title "),v())}function MEe(t,n){if(1&t&&(_(0,"td",16),C(1),v()),2&t){const e=n.$implicit;x(),Ze(" ",e.title," ")}}function REe(t,n){1&t&&(_(0,"th",15),C(1," Status "),v())}function PEe(t,n){if(1&t&&(_(0,"td",16)(1,"span",17),C(2),yo(3,"uppercase"),v()()),2&t){const e=n.$implicit;x(),E("ngClass",Ea(4,SEe,e.status)),x(),nt(oc(3,2,e.status))}}function FEe(t,n){1&t&&(_(0,"th",15),C(1," Version "),v())}function OEe(t,n){if(1&t&&(_(0,"td",16),C(1),v()),2&t){const e=n.$implicit;x(),Ze(" ",e.meta.versionId," ")}}function NEe(t,n){1&t&&(_(0,"th",15),C(1," Date "),v())}function LEe(t,n){if(1&t&&(_(0,"td",16)(1,"i"),C(2),yo(3,"date"),v()()),2&t){const e=n.$implicit;x(2),nt(Au(3,1,e.meta.lastUpdated,"MMMM d, y, h:mm:ss a"))}}function VEe(t,n){1&t&&(_(0,"th",15),C(1," Type "),v())}function BEe(t,n){1&t&&(_(0,"span",17),C(1,"QUESTIONNAIRE"),v()),2&t&&E("ngClass",Fs(1,DEe))}function UEe(t,n){1&t&&(_(0,"span",17),C(1,"MODULAR ROOT"),v()),2&t&&E("ngClass",Fs(1,IEe))}function zEe(t,n){if(1&t&&(_(0,"td",16),q(1,BEe,2,2,"span",18)(2,UEe,2,2,"span",18),v()),2&t){const e=n.$implicit,i=P();x(),E("ngIf",!i.isRootQuestionnaire(e)),x(),E("ngIf",i.isRootQuestionnaire(e))}}function HEe(t,n){1&t&&(_(0,"th",19),C(1," Actions "),v())}function jEe(t,n){if(1&t){const e=Se();_(0,"button",24),H("click",function(){j(e);const r=P().$implicit;return G(P().restore(r))}),_(1,"mat-icon"),C(2,"restore_page"),v()()}}function $Ee(t,n){if(1&t){const e=Se();_(0,"td",16)(1,"button",20),H("click",function(){const r=j(e).$implicit;return G(P().preview(r))}),_(2,"mat-icon"),C(3,"visibility"),v()(),_(4,"button",21),H("click",function(){const r=j(e).$implicit;return G(P().openInNewTab(r))}),_(5,"mat-icon"),C(6,"open_in_new"),v()(),_(7,"button",22),H("click",function(){const r=j(e).$implicit;return G(P().saveQuestionnaire(r))}),_(8,"mat-icon"),C(9,"cloud_download"),v()(),q(10,jEe,3,0,"button",23),v()}if(2&t){const e=n.$implicit,i=P();x(10),E("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 GEe(t,n){1&t&&xe(0,"tr",25)}function WEe(t,n){1&t&&xe(0,"tr",26)}function qEe(t,n){1&t&&(_(0,"p",27)(1,"i"),C(2," No questionnaire selected. "),v()())}function QEe(t,n){1&t&&xe(0,"mat-spinner",28)}let KEe=(()=>{class t{constructor(e){this.fhirService=e,this.previewQuestionnaire=new Te,this.restoreQuestionnaireVersion=new Te,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(Hm))};static#t=this.\u0275cmp=$e({type:t,selectors:[["app-questionnaire-history"]],inputs:{questionnaire:"questionnaire"},outputs:{previewQuestionnaire:"previewQuestionnaire",restoreQuestionnaireVersion:"restoreQuestionnaireVersion"},features:[Bn],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),Gt(2,2),q(3,AEe,2,0,"th",3)(4,MEe,2,1,"td",4),Wt(),Gt(5,5),q(6,REe,2,0,"th",3)(7,PEe,4,6,"td",4),Wt(),Gt(8,6),q(9,FEe,2,0,"th",3)(10,OEe,2,1,"td",4),Wt(),Gt(11,7),q(12,NEe,2,0,"th",3)(13,LEe,4,4,"td",4),Wt(),Gt(14,8),q(15,VEe,2,0,"th",3)(16,zEe,3,2,"td",4),Wt(),Gt(17,9),q(18,HEe,2,0,"th",10)(19,$Ee,11,1,"td",4),Wt(),q(20,GEe,1,0,"tr",11)(21,WEe,1,0,"tr",12),v(),q(22,qEe,3,0,"p",13)(23,QEe,1,0,"mat-spinner",14),v()),2&i&&(x(),E("dataSource",r.dataSource),x(19),E("matHeaderRowDef",r.displayedColumns),x(),E("matRowDefColumns",r.displayedColumns),x(),E("ngIf",!r.questionnaire),x(),E("ngIf",r.loading))},dependencies:[Sa,zr,na,To,md,pd,fl,gd,ml,hl,_d,pl,gl,bd,vd,Ju,Ed,vA,PD,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 XEe=["questionnairesList"],YEe=["fileInput"],ZEe=["questionnaireHistory"];function JEe(t,n){1&t&&(_(0,"span"),C(1," / Validator"),v())}function eTe(t,n){1&t&&(_(0,"span"),C(1," / Questionnaires repository"),v())}function tTe(t,n){if(1&t){const e=Se();_(0,"span",19)(1,"a",20),H("click",function(){return j(e),G(P(2).mode="Manager")}),_(2,"mat-icon"),C(3,"play_arrow"),v(),_(4,"span"),C(5,"Reconnect to last FHIR Server"),v()(),_(6,"span",21),C(7),_(8,"i"),C(9),v(),C(10,'" )'),v()()}if(2&t){const e=P(2);x(7),Ze(" ( ",e.selectedFhirServer,' as "'),x(2),nt(e.selectedUserTag)}}function nTe(t,n){if(1&t){const e=Se();_(0,"div",10)(1,"p"),C(2,"What do you want to do today?"),v(),_(3,"mat-radio-group",11),Ur("ngModelChange",function(r){j(e);const o=P();return to(o.step1Response,r)||(o.step1Response=r),G(r)}),_(4,"mat-radio-button",12),C(5,"Edit a questionnaire in the NLM Form Builder"),v(),_(6,"mat-radio-button",13),C(7,"Load an example questionnaire"),v(),_(8,"mat-radio-button",14),C(9,"Upload and validate a questionnaire"),v(),_(10,"mat-radio-button",15),C(11,"Work with your questionnaires from a FHIR server"),v(),q(12,tTe,11,2,"span",16),v(),_(13,"div",17)(14,"button",18),H("click",function(){return j(e),G(P().advanceFromStep1())}),C(15,"Next"),v()()()}if(2&t){const e=P();x(3),Br("ngModel",e.step1Response),x(9),E("ngIf",e.selectedFhirServer&&e.selectedUserTag),x(2),E("disabled",!e.step1Response)}}function iTe(t,n){if(1&t&&(_(0,"span"),C(1," Connected to "),_(2,"a",34),C(3),v(),C(4,' as "'),_(5,"i"),C(6),v(),C(7,'" '),v()),2&t){const e=P(2);x(3),nt(e.selectedFhirServer),x(3),nt(e.selectedUserTag)}}function rTe(t,n){if(1&t){const e=Se();_(0,"button",18),H("click",function(){return j(e),G(P(2).openModularQuestionnaireModal())}),C(1," Create Modular Questionnaire "),v()}2&t&&E("disabled",P(2).validating)}function oTe(t,n){if(1&t){const e=Se();_(0,"mat-tab",35)(1,"div",28)(2,"app-list-questionnaires",36,3),H("validateQuestionnaire",function(r){return j(e),G(P(2).switchToValidateTab(r))})("previewQuestionnaire",function(r){return j(e),G(P(2).switchToPreviewTab(r))})("viewQuestionaireHistory",function(r){return j(e),G(P(2).switchToHistoryTab(r))}),v()()()}if(2&t){const e=P(2);x(2),E("config",e.listConfig)}}function sTe(t,n){if(1&t&&(_(0,"h4"),C(1),yo(2,"date"),v()),2&t){const e=P(2);x(),s_("",e.questionnaire.title," - Version: ",e.questionnaire.meta.versionId," (",Au(2,3,e.questionnaire.meta.lastUpdated,"fullDate"),")")}}function aTe(t,n){if(1&t){const e=Se();_(0,"div")(1,"div",22),q(2,iTe,8,2,"span",8),_(3,"input",23,0),H("change",function(r){return j(e),G(P().onFileSelected(r))}),v(),_(5,"button",18),H("click",function(){return j(e),G(zt(4).click())}),C(6," Upload "),v(),_(7,"button",18),H("click",function(){return j(e),G(P().saveQuestionnaireToDisk())}),C(8,"Download"),v(),q(9,rTe,2,1,"button",24),v(),_(10,"mat-tab-group",25),H("selectedIndexChange",function(r){return j(e),G(P().onTabChange(r))}),q(11,oTe,4,1,"mat-tab",26),_(12,"mat-tab",27)(13,"div",28),q(14,sTe,3,6,"h4",8),xe(15,"div",29),v()(),_(16,"mat-tab",30)(17,"app-validate-questionnaire",31,1),H("questionnaireUpdated",function(r){return j(e),G(P().loadQuestionnaire(r))})("validatingQuestionnaire",function(r){return j(e),G(P().validating=r)}),v()(),_(19,"mat-tab",32)(20,"app-questionnaire-history",33,2),H("previewQuestionnaire",function(r){return j(e),G(P().switchToPreviewTab(r))})("restoreQuestionnaireVersion",function(r){return j(e),G(P().saveQuestionnaire(r))}),v()()()()}if(2&t){const e=P();x(2),E("ngIf","Manager"==e.mode),x(3),E("disabled",e.validating),x(2),E("disabled",e.validating||!e.questionnaire),x(2),E("ngIf","Manager"==e.mode),x(2),E("ngIf","Manager"===e.mode),x(3),E("ngIf",e.questionnaire),x(),lt("hidden",!e.questionnaire),x(2),E("questionnaire",e.questionnaire),x(3),E("questionnaire",e.questionnaire)}}let cTe=(()=>{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(yA,{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(){ko(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()}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(Vi,{duration:5e3,data:"The file is not a FHIR Questionnaire Resource",panelClass:["red-snackbar"]})}catch(s){console.error(s),this._snackBar.openFromComponent(Vi,{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(YH,{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(Vi,{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(YH,{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(Vi,{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(Vi,{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(Ia()).subscribe(i=>{setTimeout(()=>{this.tabGroup.selectedIndex=0,setTimeout(()=>{this.savingQuestionnaire=!1,this.questionnairesList.addQuestionnaire(i)},300)},300),this._snackBar.openFromComponent(Vi,{duration:5e3,data:"Questionnaire saved successfully",panelClass:["green-snackbar"]})},i=>{this.savingQuestionnaire=!1,this._snackBar.openFromComponent(Vi,{duration:5e3,data:"Error saving questionnaire",panelClass:["red-snackbar"]})})}listQuestionnaires(){this.fhirService.getQuestionnairesByTag(this.selectedUserTag).pipe(Ia()).subscribe(e=>{},e=>{console.error(e)})}openLoadQuestionnairesDialog(){this.dialog.open(jCe,{width:"70%"}).afterClosed().subscribe(i=>{this.loadQuestionnaire(i)})}setFhirServer(){this.fhirService.setBaseUrl(this.selectedFhirServer),this.fhirService.setUserTag(this.selectedUserTag)}setupFhirServer(){this.dialog.open(yA,{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(yA,{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(QH,{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(io),w(Hm),w(KH),w(Bm),w($u))};static#t=this.\u0275cmp=$e({type:t,selectors:[["app-questionnaires-main"]],viewQuery:function(i,r){if(1&i&&(vt(Ed,5),vt(u0,5),vt(XEe,5),vt(YEe,5),vt(ZEe,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),C(2," SNOMED CT Terminology Bindings Validator - FHIR Questionnaire Manager "),v(),_(3,"div",6)(4,"span")(5,"a",7),H("click",function(){return r.mode="step1"}),C(6,"Home"),v(),q(7,JEe,2,0,"span",8)(8,eTe,2,0,"span",8),v()()(),q(9,nTe,16,3,"div",9)(10,aTe,22,10,"div",8)),2&i&&(x(7),E("ngIf","Validator"==r.mode),x(),E("ngIf","Manager"==r.mode),x(),E("ngIf","step1"==r.mode),x(),E("ngIf","Manager"==r.mode||"Validator"==r.mode))},dependencies:[zr,Eo,To,ms,c1,u0,Vs,gA,_1,XH,TEe,KEe,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 lTe=t=>({"bg-pink":t});function dTe(t,n){if(1&t&&(_(0,"p",18),C(1),v()),2&t){const e=P();x(),nt(e.studentSubsetDefinition)}}function uTe(t,n){1&t&&xe(0,"mat-spinner",19)}function hTe(t,n){if(1&t&&(_(0,"p",23),C(1),v()),2&t){const e=P(2);x(),nt(e.definitionVsMembersValidationResult)}}function fTe(t,n){if(1&t&&(_(0,"p",23),C(1),v()),2&t){const e=P(2);x(),nt(e.keyConceptValidationResult)}}function mTe(t,n){if(1&t&&(_(0,"div",20)(1,"h3",21),C(2,"Validation Results"),v(),q(3,hTe,2,1,"p",22)(4,fTe,2,1,"p",22),_(5,"p",23),C(6),v(),_(7,"p",23),C(8),v()()),2&t){const e=P();x(3),E("ngIf",e.selectedAssignment.referenceDefinition),x(),E("ngIf",e.selectedAssignment.referenceDefinition),x(2),nt(e.membersNotInRefrenceListResult),x(2),nt(e.refrenceListVsStudentListResult)}}function pTe(t,n){1&t&&(_(0,"th",33),C(1,"ID"),v())}function gTe(t,n){if(1&t&&(_(0,"td",34),C(1),v()),2&t){const e=n.$implicit;x(),nt(e.referencedComponentId)}}function _Te(t,n){1&t&&(_(0,"th",33),C(1,"Name"),v())}function bTe(t,n){if(1&t&&(_(0,"td",34),C(1),v()),2&t){const e=n.$implicit;x(),nt(e.name)}}function vTe(t,n){1&t&&(_(0,"th",33),C(1,"Result"),v())}function yTe(t,n){1&t&&(_(0,"span"),C(1,"OK"),v())}function xTe(t,n){if(1&t&&(_(0,"span"),C(1),v()),2&t){const e=P(2).$implicit;x(),Ze(" ",e.customMessage.note," ")}}function wTe(t,n){1&t&&(_(0,"span"),C(1," Error "),v())}function kTe(t,n){if(1&t&&(_(0,"span"),q(1,yTe,2,0,"span",16)(2,xTe,2,1,"span",16)(3,wTe,2,0,"span",16),v()),2&t){const e=P().$implicit;x(),E("ngIf",null==e||null==e.inReferenceList?null:e.inReferenceList.value),x(),E("ngIf",!(null!=e&&null!=e.inReferenceList&&e.inReferenceList.value)&&(null==e||null==e.customMessage?null:e.customMessage.value)),x(),E("ngIf",!(null!=e&&null!=e.inReferenceList&&e.inReferenceList.value||null!=e&&null!=e.customMessage&&e.customMessage.value))}}function CTe(t,n){if(1&t&&(_(0,"td",34),q(1,kTe,4,3,"span",16),v()),2&t){const e=P(2);x(),E("ngIf",e.membersValidationResult)}}function ETe(t,n){1&t&&xe(0,"tr",35)}function TTe(t,n){if(1&t&&xe(0,"tr",36),2&t){const e=n.$implicit,i=P(2);E("ngClass",Ea(1,lTe,!(null!=e.inReferenceList&&e.inReferenceList.value)&&i.membersValidationResult))}}function STe(t,n){if(1&t&&(_(0,"div",24)(1,"table",25),Gt(2,26),q(3,pTe,2,0,"th",27)(4,gTe,2,1,"td",28),Wt(),Gt(5,29),q(6,_Te,2,0,"th",27)(7,bTe,2,1,"td",28),Wt(),Gt(8,30),q(9,vTe,2,0,"th",27)(10,CTe,2,1,"td",28),Wt(),q(11,ETe,1,0,"tr",31)(12,TTe,1,3,"tr",32),v()()),2&t){const e=P();x(),E("dataSource",e.studentSubsetMembersDataSource),x(10),E("matHeaderRowDef",e.studentSubsetMembersDisplayedColumns),x(),E("matRowDefColumns",e.studentSubsetMembersDisplayedColumns)}}function DTe(t,n){if(1&t){const e=Se();_(0,"button",40),H("click",function(){const r=j(e).$implicit;return G(P(2).setAssignment(r))}),C(1),v()}if(2&t){const e=n.$implicit;x(),nt(e.name)}}function ITe(t,n){if(1&t&&(_(0,"div")(1,"h3"),C(2,"Assignment"),v(),_(3,"button",37),C(4),v(),_(5,"mat-menu",38,2),q(7,DTe,2,1,"button",39),v()()),2&t){const e=zt(6),i=P();x(3),E("matMenuTriggerFor",e),x(),Ze("Selected assignment: ",null==i.selectedAssignment?null:i.selectedAssignment.name,""),x(3),E("ngForOf",i.assignments)}}function ATe(t,n){if(1&t&&(_(0,"h3"),C(1),v()),2&t){const e=P();x(),Ze(" Assignment: ",null==e.selectedAssignment?null:e.selectedAssignment.name," ")}}function MTe(t,n){1&t&&(_(0,"ol")(1,"li"),C(2,"1- Upload definition file"),v(),_(3,"li"),C(4,"2- Upload members file"),v(),_(5,"li"),C(6,"3- Click validate"),v()())}function RTe(t,n){1&t&&(_(0,"ol")(1,"li"),C(2,"1- Upload members file"),v(),_(3,"li"),C(4,"2- Click validate"),v()())}function PTe(t,n){if(1&t){const e=Se();_(0,"div")(1,"div")(2,"h3"),C(3,"Reference Data"),v(),_(4,"mat-form-field",41)(5,"mat-label"),C(6,"Textarea"),v(),_(7,"textarea",42),Ur("ngModelChange",function(r){j(e);const o=P();return to(o.assignmentsString,r)||(o.assignmentsString=r),G(r)}),v()(),_(8,"button",11),H("click",function(){return j(e),G(P().updateAssignments())}),C(9,"Update Assignments"),v()()()}if(2&t){const e=P();x(7),Br("ngModel",e.assignmentsString)}}let FTe=(()=>{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 ko(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*(){if(e.loading=!0,e.keyConceptValidationResult="",e.definitionVsMembersValidationResult="",e.membersValidationResult=!1,e.loading=!0,e.studentSubsetDefinition){let o=yield e.checkStudentECLvsStudentList();e.definitionVsMembersValidationResult=o>0?e.error+" "+o+" members not found in student ECL":e.ok+" All members found in student ECL",e.keyConceptValidationResult=e.checkStudentECLvsKeyConcept()?e.ok+" Student ECL contains all key concepts":e.error+" Student ECL does not contain all key concepts"}e.checkStudentListVsReferenceList();let i=e.studentSubsetmembers.filter(o=>!o.inReferenceList.value).length;e.membersNotInRefrenceListResult=i>0?e.error+" "+i+" members not found in reference list":e.ok+" All members found in reference list",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(Vi,{duration:5e3,data:"Error reading file: "+s.message,panelClass:["red-snackbar"]}),this.loading=!1}},r.onerror=o=>{this._snackBar.openFromComponent(Vi,{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(Vi,{duration:5e3,data:"Error reading file: "+s.message,panelClass:["red-snackbar"]}),this.loading=!1}},r.onerror=o=>{this._snackBar.openFromComponent(Vi,{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(io),w($u),w(od))};static#t=this.\u0275cmp=$e({type:t,selectors:[["app-subset-validator"]],viewQuery:function(i,r){if(1&i&&vt(Ed,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"),C(4,"Subset Members Validator"),v(),_(5,"p",6),C(6),v(),q(7,dTe,2,1,"p",7),_(8,"input",8,0),H("change",function(a){return j(o),G(r.onSubsetmembersFileSelected(a))}),v(),_(10,"input",8,1),H("change",function(a){return j(o),G(r.onDefinitionFileSelected(a))}),v(),_(12,"div",9)(13,"button",10),H("click",function(){return j(o),G(zt(11).click())}),C(14," Upload Definition File "),v(),_(15,"button",11),H("click",function(){return j(o),G(zt(9).click())}),C(16,"Upload Members File"),v(),_(17,"button",10),H("click",function(){return j(o),G(r.validateAssignment())}),C(18,"Validate"),v(),q(19,uTe,1,0,"mat-spinner",12),v(),q(20,mTe,9,4,"div",13),v(),q(21,STe,13,3,"div",14),v(),_(22,"div",15),q(23,ITe,8,3,"div",16)(24,ATe,2,1,"h3",16),_(25,"h3"),C(26,"Instructions"),v(),_(27,"div",17),q(28,MTe,7,0,"ol",16)(29,RTe,5,0,"ol",16),v(),q(30,PTe,10,1,"div",16),v()()}2&i&&(x(6),Ze("Validating against ",r.terminologyService.getFhirUrlParam(),""),x(),E("ngIf",r.studentSubsetDefinition),x(6),E("disabled",!r.selectedAssignment.referenceDefinition),x(4),E("disabled",!r.studentSubsetMembersDataSource.data.length),x(2),E("ngIf",r.loading),x(),E("ngIf",!r.loading&&r.membersNotInRefrenceListResult),x(),E("ngIf",!r.loading&&r.studentSubsetMembersDataSource.data.length),x(2),E("ngIf",!r.embeddedMode),x(),E("ngIf",r.embeddedMode),x(4),E("ngIf",r.selectedAssignment.referenceDefinition),x(),E("ngIf",!r.selectedAssignment.referenceDefinition),x(),E("ngIf",!r.embeddedMode))},dependencies:[Sa,Ko,zr,Eo,Pa,mc,Wu,Fa,Bs,md,kd,ia,ms,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 ej=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},tj={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(ej(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 BTe extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const v1=function(t){return function(t){const n=ej(t);return tj.encodeByteArray(n,!0)}(t).replace(/\./g,"")},y1=()=>{try{return function HTe(){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 tj.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}`)}},ij=()=>{var t;return null===(t=y1())||void 0===t?void 0:t.config};class rj{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 sj(){try{return"object"==typeof indexedDB}catch{return!1}}class jm extends Error{constructor(n,e,i){super(e),this.code=n,this.customData=i,this.name="FirebaseError",Object.setPrototypeOf(this,jm.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,aj.prototype.create)}}class aj{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 ZTe(t,n){return t.replace(JTe,(e,i)=>{const r=n[i];return null!=r?String(r):`<${i}?>`})}(o,i):"Error";return new jm(r,`${this.serviceName}: ${s} (${r}).`,i)}}const JTe=/\{\$([^}]+)}/g;function v0(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(lj(o)&&lj(s)){if(!v0(o,s))return!1}else if(o!==s)return!1}for(const r of i)if(!e.includes(r))return!1;return!0}function lj(t){return null!==t&&"object"==typeof t}function Oa(t){return t&&t._delegate?t._delegate:t}class y0{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 aSe{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 rj;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 lSe(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 dSe{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 aSe(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 dj={debug:Dn.DEBUG,verbose:Dn.VERBOSE,info:Dn.INFO,warn:Dn.WARN,error:Dn.ERROR,silent:Dn.SILENT},uSe=Dn.INFO,hSe={[Dn.DEBUG]:"log",[Dn.VERBOSE]:"log",[Dn.INFO]:"info",[Dn.WARN]:"warn",[Dn.ERROR]:"error"},fSe=(t,n,...e)=>{if(nn.some(e=>t instanceof e);let hj,fj;const mj=new WeakMap,TA=new WeakMap,pj=new WeakMap,SA=new WeakMap,DA=new WeakMap;let IA={get(t,n,e){if(t instanceof IDBTransaction){if("done"===n)return TA.get(t);if("objectStoreNames"===n)return t.objectStoreNames||pj.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 xSe(t){return"function"==typeof t?function ySe(t){return t!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function gSe(){return fj||(fj=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(t)?function(...n){return t.apply(AA(this),n),Dd(mj.get(this))}:function(...n){return Dd(t.apply(AA(this),n))}:function(n,...e){const i=t.call(AA(this),n,...e);return pj.set(i,n.sort?n.sort():[n]),Dd(i)}}(t):(t instanceof IDBTransaction&&function bSe(t){if(TA.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)});TA.set(t,n)}(t),mSe(t,function pSe(){return hj||(hj=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(t,IA):t)}function Dd(t){if(t instanceof IDBRequest)return function _Se(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&&mj.set(e,t)}).catch(()=>{}),DA.set(n,t),n}(t);if(SA.has(t))return SA.get(t);const n=xSe(t);return n!==t&&(SA.set(t,n),DA.set(n,t)),n}const AA=t=>DA.get(t),kSe=["get","getKey","getAll","getAllKeys","count"],CSe=["put","add","delete","clear"],MA=new Map;function gj(t,n){if(!(t instanceof IDBDatabase)||n in t||"string"!=typeof n)return;if(MA.get(n))return MA.get(n);const e=n.replace(/FromIndex$/,""),i=n!==e,r=CSe.includes(e);if(!(e in(i?IDBIndex:IDBObjectStore).prototype)||!r&&!kSe.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 MA.set(n,o),o}!function vSe(t){IA=t(IA)}(t=>({...t,get:(n,e,i)=>gj(n,e)||t.get(n,e,i),has:(n,e)=>!!gj(n,e)||t.has(n,e)}));class ESe{constructor(n){this.container=n}getPlatformInfoString(){return this.container.getProviders().map(e=>{if(function TSe(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 RA="@firebase/app",th=new uj("@firebase/app"),w1="[DEFAULT]",ZSe={[RA]:"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,k1=new Map;function JSe(t,n){try{t.container.addComponent(n)}catch(e){th.debug(`Component ${n.name} failed to register with FirebaseApp ${t.name}`,e)}}function C1(t){const n=t.name;if(k1.has(n))return th.debug(`There were multiple attempts to register component ${n}.`),!1;k1.set(n,t);for(const e of nh.values())JSe(e,t);return!0}const _l=new aj("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 tDe{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 y0("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 vj(t,n={}){let e=t;"object"!=typeof n&&(n={name:n});const i=Object.assign({name:w1,automaticDataCollectionEnabled:!1},n),r=i.name;if("string"!=typeof r||!r)throw _l.create("bad-app-name",{appName:String(r)});if(e||(e=ij()),!e)throw _l.create("no-options");const o=nh.get(r);if(o){if(v0(e,o.options)&&v0(i,o.config))return o;throw _l.create("duplicate-app",{appName:r})}const s=new dSe(r);for(const c of k1.values())s.addComponent(c);const a=new tDe(e,i,s);return nh.set(r,a),a}function $m(t,n,e){var i;let r=null!==(i=ZSe[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(" "))}C1(new y0(`${r}-version`,()=>({library:r,version:n}),"VERSION"))}const rDe="firebase-heartbeat-database",oDe=1,x0="firebase-heartbeat-store";let FA=null;function yj(){return FA||(FA=function wSe(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}(rDe,oDe,{upgrade:(t,n)=>{if(0===n)try{t.createObjectStore(x0)}catch(e){console.warn(e)}}}).catch(t=>{throw _l.create("idb-open",{originalErrorMessage:t.message})})),FA}function OA(){return(OA=me(function*(t){try{const e=(yield yj()).transaction(x0),i=yield e.objectStore(x0).get(wj(t));return yield e.done,i}catch(n){if(n instanceof jm)th.warn(n.message);else{const e=_l.create("idb-get",{originalErrorMessage:n?.message});th.warn(e.message)}}})).apply(this,arguments)}function xj(t,n){return NA.apply(this,arguments)}function NA(){return(NA=me(function*(t,n){try{const i=(yield yj()).transaction(x0,"readwrite");yield i.objectStore(x0).put(n,wj(t)),yield i.done}catch(e){if(e instanceof jm)th.warn(e.message);else{const i=_l.create("idb-set",{originalErrorMessage:e?.message});th.warn(i.message)}}})).apply(this,arguments)}function wj(t){return`${t.name}!${t.options.appId}`}class lDe{constructor(n){this.container=n,this._heartbeatsCache=null;const e=this.container.getProvider("app").getImmediate();this._storage=new uDe(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=kj();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=kj(),{heartbeatsToSend:r,unsentEntries:o}=function dDe(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),Cj(e)>n){o.dates.pop();break}}else if(e.push({agent:r.agent,dates:[r.date]}),Cj(e)>n){e.pop();break}i=i.slice(1)}return{heartbeatsToSend:e,unsentEntries:i}}(n._heartbeatsCache.heartbeats),s=v1(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 kj(){return(new Date).toISOString().substring(0,10)}class uDe{constructor(n){this.app=n,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return me(function*(){return!!sj()&&function XTe(){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 sDe(t){return OA.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 xj(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 xj(e.app,{lastSentHeartbeatDate:null!==(i=n.lastSentHeartbeatDate)&&void 0!==i?i:o.lastSentHeartbeatDate,heartbeats:[...o.heartbeats,...n.heartbeats]})}})()}}function Cj(t){return v1(JSON.stringify({version:2,heartbeats:t})).length}!function hDe(t){C1(new y0("platform-logger",n=>new ESe(n),"PRIVATE")),C1(new y0("heartbeat",n=>new lDe(n),"PRIVATE")),$m(RA,"0.9.29",t),$m(RA,"0.9.29","esm2017"),$m("fire-js","")}("");var et,fDe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Na={},LA=LA||{},Bt=fDe||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 w0(t){var n=typeof t;return"object"==n&&null!=t||"function"==n}var VA="closure_uid_"+(1e9*Math.random()>>>0),pDe=0;function gDe(t,n,e){return t.call.apply(t.bind,arguments)}function _De(t,n,e){if(!t)throw Error();if(2{};Bt.addEventListener("test",e,n),Bt.removeEventListener("test",e,n)}catch{}return t}();function k0(t){return/^[\s\xa0]*$/.test(t)}function S1(){var t=Bt.navigator;return t&&(t=t.userAgent)?t:""}function bc(t){return-1!=S1().indexOf(t)}function UA(t){return UA[" "](t),t}UA[" "]=function(){};var HA,t,xDe=bc("Opera"),Gm=bc("Trident")||bc("MSIE"),Sj=bc("Edge"),zA=Sj||Gm,Dj=bc("Gecko")&&!(-1!=S1().toLowerCase().indexOf("webkit")&&!bc("Edge"))&&!(bc("Trident")||bc("MSIE"))&&!bc("Edge"),wDe=-1!=S1().toLowerCase().indexOf("webkit")&&!bc("Edge");function Ij(){var t=Bt.document;return t?t.documentMode:void 0}e:{var jA="",$A=(t=S1(),Dj?/rv:([^\);]+)(\)|;)/.exec(t):Sj?/Edge\/([\d\.]+)/.exec(t):Gm?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(t):wDe?/WebKit\/(\S+)/.exec(t):xDe?/(?:Version)[ \/]?(\S+)/.exec(t):void 0);if($A&&(jA=$A?$A[1]:""),Gm){var GA=Ij();if(null!=GA&&GA>parseFloat(jA)){HA=String(GA);break e}}HA=jA}var kDe=Bt.document&&Gm&&(Ij()||parseInt(HA,10))||void 0;function C0(t,n){if(Io.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(Dj){e:{try{UA(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:CDe[t.pointerType]||"",this.state=t.state,this.i=t,t.defaultPrevented&&C0.$.h.call(this)}}$r(C0,Io);var CDe={2:"touch",3:"pen",4:"mouse"};C0.prototype.h=function(){C0.$.h.call(this);var t=this.i;t.preventDefault?t.preventDefault():t.returnValue=!1};var E0="closure_listenable_"+(1e6*Math.random()|0),EDe=0;function TDe(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=++EDe,this.fa=this.ia=!1}function D1(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 Mj(t){const n={};for(const e in t)n[e]=t[e];return n}const Rj="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Pj(t,n){let e,i;for(let r=1;r>>0);function tM(t){return"function"==typeof t?t:(t[eM]||(t[eM]=function(n){return t.handleEvent(n)}),t[eM])}function Gr(){Id.call(this),this.i=new I1(this),this.S=this,this.J=null}function oo(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 Io(n,t);else if(n instanceof Io)n.target=n.target||t;else{var r=n;Pj(n=new Io(i,t),r)}if(r=!0,e)for(var o=e.length-1;0<=o;o--){var s=n.g=e[o];r=A1(s,i,!0,n)&&r}if(r=A1(s=n.g=t,i,!0,n)&&r,r=A1(s,i,!1,n)&&r,e)for(o=0;onew PDe,t=>t.reset());class PDe{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 FDe(t){var n=1;t=t.split(":");const e=[];for(;0{throw t},0)}let T0,S0=!1,iM=new class RDe{constructor(){this.h=this.g=null}add(n,e){const i=Bj.get();i.set(n,e),this.h?this.h.next=i:this.g=i,this.h=i}},Uj=()=>{const t=Bt.Promise.resolve(void 0);T0=()=>{t.then(NDe)}};var NDe=()=>{for(var t;t=MDe();){try{t.h.call(t.g)}catch(e){ODe(e)}var n=Bj;n.j(t),100>n.h&&(n.h++,t.next=n.g,n.g=t)}S0=!1};function M1(t,n){Gr.call(this),this.h=t||1,this.g=n||Bt,this.j=Do(this.qb,this),this.l=Date.now()}function rM(t){t.ga=!1,t.T&&(t.g.clearTimeout(t.T),t.T=null)}function oM(t,n,e){if("function"==typeof t)e&&(t=Do(t,e));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=Do(t.handleEvent,t)}return 2147483647{t.g=null,t.i&&(t.i=!1,zj(t))},t.j);const n=t.h;t.h=null,t.m.apply(null,n)}$r(M1,Gr),(et=M1.prototype).ga=!1,et.T=null,et.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?dM:(n=n.slice(i,i+e),t.o=i+e,n))}function P0(t){t.Y=Date.now()+t.P,i$(t,t.P)}function i$(t,n){if(null!=t.C)throw Error("WatchDog timer not null");t.C=A0(Do(t.lb,t),n)}function N1(t){t.C&&(Bt.clearTimeout(t.C),t.C=null)}function F0(t){0==t.l.H||t.J||A$(t.l,t)}function rh(t){N1(t);var n=t.M;n&&"function"==typeof n.sa&&n.sa(),t.M=null,rM(t.V),$j(t.U),t.g&&(n=t.g,t.g=null,n.abort(),n.sa())}function hM(t,n){try{var e=t.l;if(0!=e.H&&(e.g==t||fM(e.i,t)))if(!t.K&&fM(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=A0(Do(e.ib,e),6e3));if(1>=f$(e.i)&&e.oa){try{e.oa()}catch{}e.oa=void 0}}else sh(e,11)}else if((t.K||e.g==t)&&G1(e),!k0(n))for(r=e.Ja.g.parse(n),n=0;nd)&&(3!=d||zA||this.g&&(this.h.h||this.g.ja()||w$(this.g)))){this.J||4!=d||7==n||I0(),N1(this);var e=this.g.da();this.ca=e;t:if(t$(this)){var i=w$(this.g);t="";var r=i.length,o=4==vc(this.g);if(!this.h.i){if(typeof TextDecoder>"u"){rh(this),F0(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 s$(t,n,e){n instanceof L0?(t.i=n,function ZDe(t,n){n&&!t.j&&(Ad(t),t.i=null,t.g.forEach(function(e,i){var r=i.toLowerCase();i!=r&&(c$(this,i),d$(this,r,e))},t)),t.j=n}(t.i,t.h)):(e||(n=N0(n,XDe)),t.i=new L0(n,t.h))}function Ei(t,n,e){t.i.set(n,e)}function B1(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 O0(t,n){return t?n?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function N0(t,n,e){return"string"==typeof t?(t=encodeURI(t).replace(n,qDe),e&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function qDe(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(N0(n,a$,!0),":");var e=this.g;return(e||"file"==n)&&(t.push("//"),(n=this.s)&&t.push(N0(n,a$,!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(N0(e,"/"==e.charAt(0)?KDe:QDe,!0))),(e=this.i.toString())&&t.push("?",e),(e=this.o)&&t.push("#",N0(e,YDe)),t.join("")};var a$=/[#\/\?@]/g,QDe=/[#\?:]/g,KDe=/[#\?]/g,XDe=/[#\?@]/g,YDe=/#/g;function L0(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 WDe(t,n){if(t){t=t.split("&");for(var e=0;e=t.j}function f$(t){return t.h?1:t.g?t.g.size:0}function fM(t,n){return t.h?t.h==n:!!t.g&&t.g.has(n)}function mM(t,n){t.g?t.g.add(n):t.h=n}function m$(t,n){t.h&&t.h==n?t.h=null:t.g&&t.g.has(n)&&t.g.delete(n)}function p$(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 BA(t.i)}u$.prototype.cancel=function(){if(this.i=p$(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 tIe=class{stringify(t){return Bt.JSON.stringify(t,void 0)}parse(t){return Bt.JSON.parse(t,void 0)}};function nIe(){this.g=new tIe}function iIe(t,n,e){const i=e||"";try{r$(t,function(r,o){let s=r;w0(r)&&(s=nM(r)),n.push(i+o+"="+encodeURIComponent(s))})}catch(r){throw n.push(i+"type="+encodeURIComponent("_badmap")),r}}function U1(t,n,e,i,r){try{n.onload=null,n.onerror=null,n.onabort=null,n.ontimeout=null,r(i)}catch{}}function V0(t){this.l=t.ec||null,this.j=t.ob||!1}function z1(t,n){Gr.call(this),this.F=t,this.u=n,this.m=void 0,this.readyState=pM,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}$r(V0,sM),V0.prototype.g=function(){return new z1(this.l,this.j)},V0.prototype.i=function(t){return function(){return t}}({}),$r(z1,Gr);var pM=0;function g$(t){t.j.read().then(t.Xa.bind(t)).catch(t.ka.bind(t))}function B0(t){t.readyState=4,t.l=null,t.j=null,t.A=null,U0(t)}function U0(t){t.onreadystatechange&&t.onreadystatechange.call(t)}(et=z1.prototype).open=function(t,n){if(this.readyState!=pM)throw this.abort(),Error("Error reopening a connection");this.C=t,this.B=n,this.readyState=1,U0(this)},et.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))},et.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,B0(this)),this.readyState=pM},et.$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,U0(this)),this.g&&(this.readyState=3,U0(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;g$(this)}else t.text().then(this.Za.bind(this),this.ka.bind(this))},et.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?B0(this):U0(this),3==this.readyState&&g$(this)}},et.Za=function(t){this.g&&(this.response=this.responseText=t,B0(this))},et.Ya=function(t){this.g&&(this.response=t,B0(this))},et.ka=function(){this.g&&B0(this)},et.setRequestHeader=function(t,n){this.v.append(t,n)},et.getResponseHeader=function(t){return this.h&&this.h.get(t.toLowerCase())||""},et.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(z1.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(t){this.m=t?"include":"same-origin"}});var oIe=Bt.JSON.parse;function zi(t){Gr.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=_$,this.L=this.M=!1}$r(zi,Gr);var _$="",sIe=/^https?$/i,aIe=["POST","PUT"];function b$(t,n){t.h=!1,t.g&&(t.l=!0,t.g.abort(),t.l=!1),t.j=n,t.m=5,v$(t),H1(t)}function v$(t){t.F||(t.F=!0,oo(t,"complete"),oo(t,"error"))}function y$(t){if(t.h&&typeof LA<"u"&&(!t.C[1]||4!=vc(t)||2!=t.da()))if(t.v&&4==vc(t))oM(t.La,0,t);else if(oo(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(o$)[1]||null;!r&&Bt.self&&Bt.self.location&&(r=Bt.self.location.protocol.slice(0,-1)),i=!sIe.test(r?r.toLowerCase():"")}e=i}if(e)oo(t,"complete"),oo(t,"success");else{t.m=6;try{var o=2{}:null;t.g=null,t.C=null,n||oo(t,"ready");try{e.onreadystatechange=i}catch{}}}function x$(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 w$(t){try{if(!t.g)return null;if("response"in t.g)return t.g.response;switch(t.K){case _$:case"text":return t.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in t.g)return t.g.mozResponseArrayBuffer}return null}catch{return null}}function k$(t){let n="";return qA(t,function(e,i){n+=i,n+=":",n+=e,n+="\r\n"}),n}function gM(t,n,e){e:{for(i in e){var i=!1;break e}i=!0}i||(e=k$(e),"string"==typeof t?null!=e&&encodeURIComponent(String(e)):Ei(t,n,e))}function z0(t,n,e){return e&&e.internalChannelParams&&e.internalChannelParams[t]||n}function C$(t){this.Ga=0,this.j=[],this.l=new R1,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=z0("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=z0("baseRetryDelayMs",5e3,t),this.hb=z0("retryDelaySeedMs",1e4,t),this.eb=z0("forwardChannelMaxRetries",2,t),this.xa=z0("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 u$(t&&t.concurrentRequestLimit),this.Ja=new nIe,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{iIe(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 D$(t){if(!t.g&&!t.u){t.ba=1;var n=t.Ma;T0||Uj(),S0||(T0(),S0=!0),iM.add(n,t),t.A=0}}function bM(t){return!(t.g||t.u||3<=t.A||(t.ba++,t.u=A0(Do(t.Ma,t),M$(t,t.A)),t.A++,0))}function vM(t){null!=t.B&&(Bt.clearTimeout(t.B),t.B=null)}function I$(t){t.g=new R0(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"),H0(t,n),t.o&&t.s&&gM(n,t.o,t.s),t.L&&t.g.setTimeout(t.L);var e=t.g;t=t.pa,e.L=1,e.A=B1(bl(n)),e.u=null,e.S=!0,e$(e,t)}function G1(t){null!=t.v&&(Bt.clearTimeout(t.v),t.v=null)}function A$(t,n){var e=null;if(t.g==n){G1(t),vM(t),t.g=null;var i=2}else{if(!fM(t.i,n))return;e=n.F,m$(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;oo(i=P1(),new Qj(i,e)),$1(t)}else D$(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=A0(Do(t.Na,t,n),M$(t,t.C)),t.C++,0)))}(t,n)||2==i&&bM(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}(et=zi.prototype).Oa=function(t){this.M=t},et.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():lM.g(),this.C=function Xj(t){return t.h||(t.h=t.i())}(this.u?this.u:lM),this.g.onreadystatechange=Do(this.La,this);try{this.G=!0,this.g.open(n,String(t),!0),this.G=!1}catch(o){return void b$(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(aIe,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{x$(this),0=this.S)){var t=2*this.S;this.l.info("BP detection timer enabled: "+t),this.B=A0(Do(this.jb,this),t)}},et.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),j1(this),I$(this))},et.ib=function(){null!=this.v&&(this.v=null,j1(this),bM(this),Zo(19))},et.pb=function(t){t?(this.l.info("Successfully pinged google.com"),Zo(2)):(this.l.info("Failed to ping google.com"),Zo(1))},et.isActive=function(){return!!this.h&&this.h.isActive(this)},(et=O$.prototype).Ba=function(){},et.Aa=function(){},et.za=function(){},et.ya=function(){},et.isActive=function(){return!0},et.Va=function(){},W1.prototype.g=function(t,n){return new Us(t,n)},$r(Us,Gr),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=P$(t,null,t.Y),$1(t)},Us.prototype.close=function(){_M(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__=nM(t),t=e);n.j.push(new JDe(n.fb++,t)),3==n.H&&$1(n)},Us.prototype.N=function(){this.g.h=null,delete this.j,_M(this.g),delete this.g,Us.$.N.call(this)},$r(N$,aM),$r(L$,cM),$r(Qm,O$),Qm.prototype.Ba=function(){oo(this.g,"a")},Qm.prototype.Aa=function(t){oo(this.g,new N$(t))},Qm.prototype.za=function(t){oo(this.g,new L$)},Qm.prototype.ya=function(){oo(this.g,"b")},$r(La,function uIe(){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 hIe={};function xM(t){return-128<=t&&128>t?function yDe(t,n){var e=hIe;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 Km;if(0>t)return so(yc(-t));for(var n=[],e=1,i=0;t>=e;i++)n[i]=t/e|0,e*=wM;return new Zn(n,0)}var wM=4294967296,Km=xM(0),kM=xM(1),B$=xM(16777216);function vl(t){if(0!=t.h)return!1;for(var n=0;n>>16,t[n]&=65535,n++}function j0(t,n){this.g=t,this.h=n}function K1(t,n){if(vl(n))throw Error("division by zero");if(vl(t))return new j0(Km,Km);if(oa(t))return n=K1(so(t),n),new j0(so(n.g),so(n.h));if(oa(n))return n=K1(t,so(n)),new j0(so(n.g),n.h);if(30=i.X(t);)e=U$(e),i=U$(i);var r=Xm(e,1),o=Xm(i,1);for(i=Xm(i,2),e=Xm(e,2);!vl(i);){var s=o.add(i);0>=s.X(t)&&(r=r.add(e),o=s),i=Xm(i,1),e=Xm(e,1)}return n=q1(t,r.R(n)),new j0(r,n)}for(r=Km;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);oa(s)||0>>31;return new Zn(e,t.h)}function Xm(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)}(et=Zn.prototype).ea=function(){if(oa(this))return-so(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}},et.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)},et.R=function(t){if(vl(this)||vl(t))return Km;if(oa(this))return oa(t)?so(this).R(so(t)):so(so(this).R(t));if(oa(t))return so(this.R(so(t)));if(0>this.X(B$)&&0>t.X(B$))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,Q1(e,2*i+2*r),e[2*i+2*r+1]+=o*c,Q1(e,2*i+2*r+1),e[2*i+2*r+1]+=s*a,Q1(e,2*i+2*r+1),e[2*i+2*r+2]+=o*a,Q1(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 fIe=Na.createWebChannelTransport=function(){return new W1},mIe=Na.getStatEventTarget=function(){return P1()},CM=Na.ErrorCode=F1,pIe=Na.EventType=Kj,gIe=Na.Event=ih,z$=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},X1=(Na.FetchXmlHttpFactory=V0,Na.WebChannel=Yj),_Ie=Na.XhrIo=zi,bIe=Na.Md5=La,Ym=Na.Integer=Zn;const H$="@firebase/firestore";class Wr{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}}Wr.UNAUTHENTICATED=new Wr(null),Wr.GOOGLE_CREDENTIALS=new Wr("google-credentials-uid"),Wr.FIRST_PARTY=new Wr("first-party-uid"),Wr.MOCK_USER=new Wr("mock-user");let Zm="10.9.0";const Md=new uj("@firebase/firestore");function Jm(){return Md.logLevel}function De(t,...n){if(Md.logLevel<=Dn.DEBUG){const e=n.map(EM);Md.debug(`Firestore (${Zm}): ${t}`,...e)}}function Zi(t,...n){if(Md.logLevel<=Dn.ERROR){const e=n.map(EM);Md.error(`Firestore (${Zm}): ${t}`,...e)}}function zs(t,...n){if(Md.logLevel<=Dn.WARN){const e=n.map(EM);Md.warn(`Firestore (${Zm}): ${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 (${Zm}) INTERNAL ASSERTION FAILED: `+t;throw Zi(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 jm{constructor(n,e){super(n,e),this.code=n,this.message=e,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}class Ir{constructor(){this.promise=new Promise((n,e)=>{this.resolve=n,this.reject=e})}}class j${constructor(n,e){this.user=e,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${n}`)}}class vIe{getToken(){return Promise.resolve(null)}invalidateToken(){}start(n,e){n.enqueueRetryable(()=>e(Wr.UNAUTHENTICATED))}shutdown(){}}class yIe{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 xIe{constructor(n){this.t=n,this.currentUser=Wr.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 Ir;this.o=()=>{this.i++,this.currentUser=this.u(),s.resolve(),s=new Ir,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 Ir)}},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 j$(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 Wr(n)}}class wIe{constructor(n,e,i){this.l=n,this.h=e,this.P=i,this.type="FirstParty",this.user=Wr.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 kIe{constructor(n,e,i){this.l=n,this.h=e,this.P=i}getToken(){return Promise.resolve(new wIe(this.l,this.h,this.P))}start(n,e){n.enqueueRetryable(()=>e(Wr.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class $${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 CIe{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 $$(e.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}function EIe(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 ep(t,n,e){return t.length===n.length&&t.every((i,r)=>e(i,n[r]))}class Ii{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 Ii.fromMillis(Date.now())}static fromDate(n){return Ii.fromMillis(n.getTime())}static fromMillis(n){const e=Math.floor(n/1e3),i=Math.floor(1e6*(n-1e3*e));return new Ii(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 Ii(0,0))}static max(){return new pt(new Ii(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 $0{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===$0.comparator(this,n)}child(n){const e=this.segments.slice(this.offset,this.limit());return n instanceof $0?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 bn extends $0{construct(n,e,i){return new bn(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 bn(e)}static emptyPath(){return new bn([])}}const TIe=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class Ai extends $0{construct(n,e,i){return new Ai(n,e,i)}static isValidIdentifier(n){return TIe.test(n)}canonicalString(){return this.toArray().map(n=>(n=n.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),Ai.isValidIdentifier(n)||(n="`"+n+"`"),n)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&"__name__"===this.get(0)}static keyField(){return new Ai(["__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===bn.comparator(this.path,n.path)}toString(){return this.path.toString()}static comparator(n,e){return bn.comparator(n.path,e.path)}static isDocumentKey(n){return n.length%2==0}static fromSegments(n){return new Ke(new bn(n.slice()))}}function Q$(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(),Ke.empty(),-1)}static max(){return new Hs(pt.max(),Ke.empty(),-1)}}function SM(t,n){let e=t.readTime.compareTo(n.readTime);return 0!==e?e:(e=Ke.comparator(t.documentKey,n.documentKey),0!==e?e:Nt(t.largestBatchId,n.largestBatchId))}const K$="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class X${constructor(){this.onCommittedListeners=[]}addOnCommittedListener(n){this.onCommittedListeners.push(n)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(n=>n())}}function Rd(t){return DM.apply(this,arguments)}function DM(){return DM=me(function*(t){if(t.code!==de.FAILED_PRECONDITION||t.message!==K$)throw t;De("LocalStore","Unexpectedly lost primary lease")}),DM.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 Y1{constructor(n,e){this.action=n,this.transaction=e,this.aborted=!1,this.V=new Ir,this.transaction.oncomplete=()=>{this.V.resolve()},this.transaction.onabort=()=>{e.error?this.V.reject(new G0(n,e.error)):this.V.resolve()},this.transaction.onerror=i=>{const r=IM(i.target.error);this.V.reject(new G0(n,r))}}static open(n,e,i,r){try{return new Y1(e,n.transaction(r,i))}catch(o){throw new G0(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 AIe(e)}}class sa{constructor(n,e,i){this.name=n,this.version=e,this.p=i,12.2===sa.S(Sd())&&Zi("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(!sj())return!1;if(sa.C())return!0;const n=Sd(),e=sa.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 G0(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 G0(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=Y1.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 IIe{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 G0 extends Ie{constructor(n,e){super(de.UNAVAILABLE,`IndexedDB transaction '${n}' failed: ${e}`),this.name="IndexedDbTransactionError"}}function Pd(t){return"IndexedDbTransactionError"===t.name}class AIe{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=IM(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 IIe(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=IM(i.target.error);e(r)}})}let Y$=!1;function IM(t){const n=sa.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 Y$||(Y$=!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 W0(t){return null==t}function q0(t){return 0===t&&1/t==-1/0}function oG(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 sG(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||ao.EMPTY}insert(n,e){return new vi(this.comparator,this.root.insert(n,e,this.comparator).copy(null,null,ao.BLACK,null,null))}remove(n){return new vi(this.comparator,this.root.remove(n,this.comparator).copy(null,null,ao.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 J1(this.root,null,this.comparator,!1)}getIteratorFrom(n){return new J1(this.root,n,this.comparator,!1)}getReverseIterator(){return new J1(this.root,null,this.comparator,!0)}getReverseIteratorFrom(n){return new J1(this.root,n,this.comparator,!0)}}class J1{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 ao{constructor(n,e,i,r,o){this.key=n,this.value=e,this.color=i??ao.RED,this.left=r??ao.EMPTY,this.right=o??ao.EMPTY,this.size=this.left.size+1+this.right.size}copy(n,e,i,r,o){return new ao(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 ao.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 ao.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,ao.RED,null,this.right.left);return this.right.copy(null,null,this.color,n,null)}rotateRight(){const n=this.copy(null,null,ao.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)}}ao.EMPTY=null,ao.RED=!0,ao.BLACK=!1,ao.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 ao(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 aG(this.data.getIterator())}getIteratorFrom(n){return new aG(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 aG{constructor(n){this.iter=n}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}class gs{constructor(n){this.fields=n,n.sort(Ai.comparator)}static empty(){return new gs([])}unionWith(n){let e=new li(Ai.comparator);for(const i of this.fields)e=e.add(i);for(const i of n)e=e.add(i);return new gs(e.toArray())}covers(n){for(const e of this.fields)if(e.isPrefixOf(n))return!0;return!1}isEqual(n){return ep(this.fields,n.fields,(e,i)=>e.isEqual(i))}}class cG extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}class Ar{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 cG("Invalid base64 string: "+o):o}}(n);return new Ar(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 lG(t.timestampValue,n.timestampValue);case 4:return lG(Q0(t),Q0(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]=Y0(i)),n}if(t.arrayValue){const n={arrayValue:{values:[]}};for(let e=0;e<(t.arrayValue.values||[]).length;++e)n.arrayValue.values[e]=Y0(t.arrayValue.values[e]);return n}return Object.assign({},t)}function hG(t){return"__max__"===(((t.mapValue||{}).fields||{}).__type__||{}).stringValue}class co{constructor(n){this.value=n}static empty(){return new co({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()]=Y0(s):r.push(a.lastSegment())});const o=this.getFieldsMap(e);this.applyChanges(o,i,r)}delete(n){const e=this.field(n.popLast());rk(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 co(Y0(this.value))}}function pG(t){const n=[];return Fd(t.fields,(e,i)=>{const r=new Ai([e]);if(rk(i)){const o=pG(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 gs(n)}class Ti{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 Ti(n,0,pt.min(),pt.min(),pt.min(),co.empty(),0)}static newFoundDocument(n,e,i,r){return new Ti(n,1,e,pt.min(),i,r,0)}static newNoDocument(n,e){return new Ti(n,2,e,pt.min(),pt.min(),co.empty(),0)}static newUnknownDocument(n,e){return new Ti(n,3,e,pt.min(),pt.min(),co.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=co.empty(),this.documentState=0,this}convertToUnknownDocument(n){return this.version=n,this.documentType=3,this.data=co.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 Ti&&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 Ti(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 gG(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 bG{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 op(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 op(t){return"and"===t.op}function FM(t){return function vG(t){for(const n of t.filters)if(n instanceof Jn)return!1;return!0}(t)&&op(t)}function OM(t){if(t instanceof vn)return t.field.canonicalString()+t.op.toString()+rp(t.value);if(FM(t))return t.filters.map(n=>OM(n)).join(",");{const n=t.filters.map(e=>OM(e)).join(",");return`${t.op}(${n})`}}function yG(t,n){return t instanceof vn?(i=t,(r=n)instanceof vn&&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&&yG(s,r.filters[a]),!0)}(t,n):void ot();var i,r}function wG(t){return t instanceof vn?`${(e=t).field.canonicalString()} ${e.op} ${rp(e.value)}`:t instanceof Jn?function(e){return e.op.toString()+" {"+e.getFilters().map(wG).join(" ,")+"}"}(t):"Filter";var e}class n2e extends vn{constructor(n,e,i){super(n,e,i),this.key=Ke.fromName(i.referenceValue)}matches(n){const e=Ke.comparator(n.key,this.key);return this.matchesComparison(e)}}class i2e extends vn{constructor(n,e){super(n,"in",e),this.keys=kG(0,e)}matches(n){return this.keys.some(e=>e.isEqual(n.key))}}class r2e extends vn{constructor(n,e){super(n,"not-in",e),this.keys=kG(0,e)}matches(n){return!this.keys.some(e=>e.isEqual(n.key))}}function kG(t,n){var e;return((null===(e=n.arrayValue)||void 0===e?void 0:e.values)||[]).map(i=>Ke.fromName(i.referenceValue))}class o2e extends vn{constructor(n,e){super(n,"array-contains",e)}matches(n){const e=n.data.field(this.field);return X0(e)&&K0(e.arrayValue,this.value)}}class CG extends vn{constructor(n,e){super(n,"in",e)}matches(n){const e=n.data.field(this.field);return null!==e&&K0(this.value.arrayValue,e)}}class s2e extends vn{constructor(n,e){super(n,"not-in",e)}matches(n){if(K0(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const e=n.data.field(this.field);return null!==e&&!K0(this.value.arrayValue,e)}}class a2e extends vn{constructor(n,e){super(n,"array-contains-any",e)}matches(n){const e=n.data.field(this.field);return!(!X0(e)||!e.arrayValue.values)&&e.arrayValue.values.some(i=>K0(this.value.arrayValue,i))}}class c2e{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 NM(t,n=null,e=[],i=[],r=null,o=null,s=null){return new c2e(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=>OM(i)).join(","),e+="|ob:",e+=n.orderBy.map(i=>{return(o=i).field.canonicalString()+o.dir;var o}).join(","),W0(n.limit)||(e+="|l:",e+=n.limit),n.startAt&&(e+="|lb:",e+=n.startAt.inclusive?"b:":"a:",e+=n.startAt.position.map(i=>rp(i)).join(",")),n.endAt&&(e+="|ub:",e+=n.endAt.inclusive?"a:":"b:",e+=n.endAt.position.map(i=>rp(i)).join(",")),n.ce=e}return n.ce}function J0(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(Ai.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 Z0(o,i))}),e.has(Ai.keyField().canonicalString())||n.le.push(new Z0(Ai.keyField(),i))}return n.le}function Jo(t){const n=qe(t);return n.he||(n.he=function IG(t,n){if("F"===t.limitType)return NM(t.path,t.collectionGroup,n,t.filters,t.limit,t.startAt,t.endAt);{n=n.map(r=>new Z0(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 NM(t.path,t.collectionGroup,n,t.filters,t.limit,e,i)}}(n,ap(t))),n.he}function VM(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 ak(t,n,e){return new xl(t.path,t.collectionGroup,t.explicitOrderBy.slice(),t.filters.slice(),n,e,t.startAt,t.endAt)}function eb(t,n){return J0(Jo(t),Jo(n))&&t.limitType===n.limitType}function AG(t){return`${hh(Jo(t))}|lt:${t.limitType}`}function cp(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=>wG(r)).join(", ")}]`),W0(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=>rp(r)).join(",")),e.endAt&&(i+=", endAt: ",i+=e.endAt.inclusive?"a:":"b:",i+=e.endAt.position.map(r=>rp(r)).join(",")),`Target(${i})`}(Jo(t))}; limitType=${t.limitType})`}function tb(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):Ke.isDocumentKey(i.path)?i.path.isEqual(o):i.path.isImmediateParentOf(o)}(t,n)&&function(i,r){for(const o of ap(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=gG(s,a,c);return s.inclusive?l<=0:l<0}(i.startAt,ap(i),r)||i.endAt&&!function(s,a,c){const l=gG(s,a,c);return s.inclusive?l>=0:l>0}(i.endAt,ap(i),r)));var i,r}function RG(t){return(n,e)=>{let i=!1;for(const r of ap(t)){const o=l2e(r,n,e);if(0!==o)return o;i=i||r.field.isKeyField()}return 0}}function l2e(t,n,e){const i=t.field.isKeyField()?Ke.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 sG(this.inner)}size(){return this.innerSize}}const d2e=new vi(Ke.comparator);function _s(){return d2e}const PG=new vi(Ke.comparator);function nb(...t){let n=PG;for(const e of t)n=n.insert(e.key,e);return n}function FG(t){let n=PG;return t.forEach((e,i)=>n=n.insert(e,i.overlayedDocument)),n}function kc(){return ib()}function OG(){return ib()}function ib(){return new wl(t=>t.toString(),(t,n)=>t.isEqual(n))}const u2e=new vi(Ke.comparator),h2e=new li(Ke.comparator);function Xt(...t){let n=h2e;for(const e of t)n=n.add(e);return n}const f2e=new li(Nt);function NG(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 LG(t){return{integerValue:""+t}}function VG(t,n){return function Z$(t){return"number"==typeof t&&Number.isInteger(t)&&!q0(t)&&t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER}(n)?LG(n):NG(t,n)}class ck{constructor(){this._=void 0}}function m2e(t,n,e){return t instanceof lp?function(r,o){const s={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:r.seconds,nanos:r.nanoseconds}}}};return o&&ek(o)&&(o=tk(o)),o&&(s.fields.__previous_value__=o),{mapValue:s}}(e,n):t instanceof fh?UG(t,n):t instanceof mh?zG(t,n):function(r,o){const s=BG(r,o),a=HG(s)+HG(r.Ie);return RM(s)&&RM(r.Ie)?LG(a):NG(r.serializer,a)}(t,n)}function p2e(t,n,e){return t instanceof fh?UG(t,n):t instanceof mh?zG(t,n):e}function BG(t,n){return t instanceof dp?RM(i=n)||(o=i)&&"doubleValue"in o?n:{integerValue:0}:null;var i,o}class lp extends ck{}class fh extends ck{constructor(n){super(),this.elements=n}}function UG(t,n){const e=jG(n);for(const i of t.elements)e.some(r=>wc(r,i))||e.push(i);return{arrayValue:{values:e}}}class mh extends ck{constructor(n){super(),this.elements=n}}function zG(t,n){let e=jG(n);for(const i of t.elements)e=e.filter(r=>!wc(r,i));return{arrayValue:{values:e}}}class dp extends ck{constructor(n,e){super(),this.serializer=n,this.Ie=e}}function HG(t){return Hi(t.integerValue||t.doubleValue)}function jG(t){return X0(t)&&t.arrayValue.values?t.arrayValue.values.slice():[]}class _2e{constructor(n,e){this.version=n,this.transformResults=e}}class Mi{constructor(n,e){this.updateTime=n,this.exists=e}static none(){return new Mi}static exists(n){return new Mi(void 0,n)}static updateTime(n){return new Mi(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 lk(t,n){return void 0!==t.updateTime?n.isFoundDocument()&&n.version.isEqual(t.updateTime):void 0===t.exists||t.exists===n.isFoundDocument()}class dk{}function $G(t,n){if(!t.hasLocalMutations||n&&0===n.fields.length)return null;if(null===n)return t.isNoDocument()?new hp(t.key,Mi.none()):new up(t.key,t.data,Mi.none());{const e=t.data,i=co.empty();let r=new li(Ai.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 gs(r.toArray()),Mi.none())}}function b2e(t,n,e){t instanceof up?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(!lk(r.precondition,o))return void o.convertToUnknownDocument(s.version);const a=qG(r.fieldTransforms,o,s.transformResults),c=o.data;c.setAll(WG(r)),c.setAll(a),o.convertToFoundDocument(s.version,c).setHasCommittedMutations()}(t,n,e):n.convertToNoDocument(e.version).setHasCommittedMutations()}function ob(t,n,e,i){return t instanceof up?function(o,s,a,c){if(!lk(o.precondition,s))return a;const l=o.value.clone(),d=QG(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(!lk(o.precondition,s))return a;const l=QG(o.fieldTransforms,c,s),d=s.data;return d.setAll(WG(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,lk(t.precondition,s=n)?(s.convertToNoDocument(s.version).setHasLocalMutations(),null):a);var s,a}function v2e(t,n){let e=null;for(const i of t.fieldTransforms){const r=n.data.field(i.field),o=BG(i.transform,r||null);null!=o&&(null===e&&(e=co.empty()),e.set(i.field,o))}return e||null}function GG(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&&ep(i,r,(o,s)=>function g2e(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?ep(i.elements,r.elements,wc):i instanceof dp&&r instanceof dp?wc(i.Ie,r.Ie):i instanceof lp&&r instanceof lp);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 up extends dk{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 dk{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 WG(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=$G(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),Xt())}isEqual(n){return this.batchId===n.batchId&&ep(this.mutations,n.mutations,(e,i)=>GG(e,i))&&ep(this.baseMutations,n.baseMutations,(e,i)=>GG(e,i))}}class HM{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 u2e}();const o=n.mutations;for(let s=0;s=8)throw new sb(`Invalid padding: ${e}`);if(i<0)throw new sb(`Invalid hash count: ${i}`);if(n.length>0&&0===this.hashCount)throw new sb(`Invalid hash count: ${i}`);if(0===n.length&&0!==e)throw new sb(`Invalid padding when bitmap length is 0: ${e}`);this.Te=8*n.length-e,this.Ee=Ym.fromNumber(this.Te)}de(n,e,i){let r=n.add(e.multiply(Ym.fromNumber(i)));return 1===r.compare(w2e)&&(r=new Ym([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=ZG(n),[i,r]=JG(e);for(let o=0;o0&&(this.Se=!0,this.ye=n)}ve(){let n=Xt(),e=Xt(),i=Xt();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 cb(this.ye,this.we,n,e,i)}Fe(){this.Se=!1,this.pe=rW()}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 k2e{constructor(n){this.Be=n,this.ke=new Map,this.qe=_s(),this.Qe=iW(),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(ok(o))if(0===i){const s=new Ke(o.path);this.We(e,s,Ti.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 cG)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 $M(s,r,o)}catch(c){return zs(c instanceof sb?"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&&ok(a.target)){const c=new Ke(a.target.path);null!==this.qe.get(c)||this.st(s,c)||this.We(s,c,Ti.newNoDocument(c,n))}o.De&&(e.set(s,o.ve()),o.Fe())}});let i=Xt();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 ab(n,e,this.Ke,this.qe,i);return this.qe=_s(),this.Qe=iW(),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 nW,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 nW),this.Be.getRemoteKeysForTarget(n).forEach(e=>{this.We(n,e,null)})}st(n,e){return this.Be.getRemoteKeysForTarget(n).has(e)}}function iW(){return new vi(Ke.comparator)}function rW(){return new vi(Ke.comparator)}const C2e={asc:"ASCENDING",desc:"DESCENDING"},E2e={"<":"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"},T2e={and:"AND",or:"OR"};class S2e{constructor(n,e){this.databaseId=n,this.useProto3Json=e}}function GM(t,n){return t.useProto3Json||W0(n)?n:{value:n}}function fp(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 oW(t,n){return t.useProto3Json?n.toBase64():n.toUint8Array()}function D2e(t,n){return fp(t,n.toTimestamp())}function Ji(t){return ht(!!t),pt.fromTimestamp(function(e){const i=Od(e);return new Ii(i.seconds,i.nanos)}(t))}function WM(t,n){return qM(t,n).canonicalString()}function qM(t,n){const e=(r=t,new bn(["projects",r.projectId,"databases",r.database])).child("documents");var r;return void 0===n?e:e.child(n)}function sW(t){const n=bn.fromString(t);return ht(gW(n)),n}function lb(t,n){return WM(t.databaseId,n.path)}function Cc(t,n){const e=sW(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 Ke(lW(e))}function aW(t,n){return WM(t.databaseId,n)}function QM(t){return new bn(["projects",t.databaseId.projectId,"databases",t.databaseId.database]).canonicalString()}function lW(t){return ht(t.length>4&&"documents"===t.get(4)),t.popFirst(5)}function dW(t,n,e){return{name:lb(t,n),fields:e.value.mapValue.fields}}function hW(t,n){return{documents:[aW(t,n.path)]}}function XM(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=aW(t,r);const o=function(l){if(0!==l.length)return pW(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:P2e(h.dir)};var h})}(n.orderBy);s&&(e.structuredQuery.orderBy=s);const a=GM(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 fW(t){let n=function cW(t){const n=sW(t);return 4===n.length?bn.emptyPath():lW(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=mW(u);return h instanceof Jn&&FM(h)?h.getFilters():[h]}(e.where));let s=[];e.orderBy&&(s=e.orderBy.map(h=>{return new Z0(mp((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,W0(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 SG(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 mW(t){return void 0!==t.unaryFilter?function(e){switch(e.unaryFilter.op){case"IS_NAN":const i=mp(e.unaryFilter.field);return vn.create(i,"==",{doubleValue:NaN});case"IS_NULL":const r=mp(e.unaryFilter.field);return vn.create(r,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const o=mp(e.unaryFilter.field);return vn.create(o,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const s=mp(e.unaryFilter.field);return vn.create(s,"!=",{nullValue:"NULL_VALUE"});default:return ot()}}(t):void 0!==t.fieldFilter?vn.create(mp((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=>mW(i)),function(r){switch(r){case"AND":return"and";case"OR":return"or";default:return ot()}}(e.compositeFilter.op))}(t):ot();var e}function P2e(t){return C2e[t]}function F2e(t){return E2e[t]}function O2e(t){return T2e[t]}function Ud(t){return{fieldPath:t.canonicalString()}}function mp(t){return Ai.fromServerFormat(t.fieldPath)}function pW(t){return t instanceof vn?function(e){if("=="===e.op){if(uG(e.value))return{unaryFilter:{field:Ud(e.field),op:"IS_NAN"}};if(dG(e.value))return{unaryFilter:{field:Ud(e.field),op:"IS_NULL"}}}else if("!="===e.op){if(uG(e.value))return{unaryFilter:{field:Ud(e.field),op:"IS_NOT_NAN"}};if(dG(e.value))return{unaryFilter:{field:Ud(e.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Ud(e.field),op:F2e(e.op),value:e.value}}}(t):t instanceof Jn?function(e){const i=e.getFilters().map(r=>pW(r));return 1===i.length?i[0]:{compositeFilter:{op:O2e(e.op),filters:i}}}(t):ot()}function N2e(t){const n=[];return t.fields.forEach(e=>n.push(e.canonicalString())),{fieldPaths:n}}function gW(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=Ar.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 _W{constructor(n){this.ct=n}}function YM(t){const n=fW({parent:t.parent,structuredQuery:t.structuredQuery});return"LAST"===t.limitType?ak(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?hG(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),Ke.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 $2e{constructor(){this._n=new iR}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 iR{constructor(){this.index={}}add(n){const e=n.lastSegment(),i=n.popLast(),r=this.index[e]||new li(bn.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(bn.comparator)).toArray()}}new Uint8Array(0);class Mo{constructor(n,e,i){this.cacheSizeCollectionThreshold=n,this.percentileToCollect=e,this.maximumSequenceNumbersToCollect=i}static withCacheSize(n){return new Mo(n,Mo.DEFAULT_COLLECTION_PERCENTILE,Mo.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}}Mo.DEFAULT_COLLECTION_PERCENTILE=10,Mo.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,Mo.DEFAULT=new Mo(41943040,Mo.DEFAULT_COLLECTION_PERCENTILE,Mo.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),Mo.DISABLED=new Mo(-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 UW{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,Ti.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 Z2e{constructor(n,e){this.overlayedDocument=n,this.mutatedFields=e}}class GW{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&&ob(i.mutation,r,gs.empty(),Ii.now()),r))}getDocuments(n,e){return this.remoteDocumentCache.getEntries(n,e).next(i=>this.getLocalViewOfDocuments(n,i,Xt()).next(()=>i))}getLocalViewOfDocuments(n,e,i=Xt()){const r=kc();return this.populateOverlays(n,r,e).next(()=>this.computeViews(n,e,r,i).next(o=>{let s=nb();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,Xt()))}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=_s();const s=ib(),a=ib();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()),ob(d.mutation,l,d.mutation.getFieldMask(),Ii.now())):s.set(l.key,gs.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 Z2e(d,null!==(u=s.get(l))&&void 0!==u?u:null))}),a))}recalculateAndSaveOverlays(n,e){const i=ib();let r=new vi((s,a)=>s-a),o=Xt();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)||gs.empty();d=a.applyToLocalView(l,d),i.set(c,d);const u=(r.get(a.batchId)||Xt()).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=OG();d.forEach(h=>{if(!o.has(h)){const f=$G(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 Ke.isDocumentKey((s=e).path)&&null===s.collectionGroup&&0===s.filters.length?this.getDocumentsMatchingDocumentQuery(n,e.path):LM(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,Xt())).next(d=>({batchId:a,changes:FG(d)})))})}getDocumentsMatchingDocumentQuery(n,e){return this.getDocument(n,new Ke(e)).next(i=>{let r=nb();return i.isFoundDocument()&&(r=r.insert(i.key,i)),r})}getDocumentsMatchingCollectionGroupQuery(n,e,i,r){const o=e.collectionGroup;let s=nb();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,Ti.newInvalidDocument(d)))});let a=nb();return s.forEach((c,l)=>{const d=o.get(c);void 0!==d&&ob(d.mutation,l,gs.empty(),Ii.now()),tb(e,l)&&(a=a.insert(c,l))}),a})}}class J2e{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:Ji(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:YM(r.bundledQuery),readTime:Ji(r.readTime)}),Z.resolve();var r}}class eAe{constructor(){this.overlays=new vi(Ke.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 Ke(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 jM(e,i));let o=this.hr.get(e);void 0===o&&(o=Xt(),this.hr.set(e,o)),this.hr.set(e,o.add(i.key))}}class rR{constructor(){this.Pr=new li(Qr.Ir),this.Tr=new li(Qr.Er)}isEmpty(){return this.Pr.isEmpty()}addReference(n,e){const i=new Qr(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 Qr(n,e))}Rr(n,e){n.forEach(i=>this.removeReference(i,e))}Vr(n){const e=new Ke(new bn([])),i=new Qr(e,n),r=new Qr(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 Ke(new bn([])),i=new Qr(e,n),r=new Qr(e,n+1);let o=Xt();return this.Tr.forEachInRange([i,r],s=>{o=o.add(s.key)}),o}containsKey(n){const e=new Qr(n,0),i=this.Pr.firstAfterOrEqual(e);return null!==i&&n.isEqual(i.key)}}class Qr{constructor(n,e){this.key=n,this.pr=e}static Ir(n,e){return Ke.comparator(n.key,e.key)||Nt(n.pr,e.pr)}static Er(n,e){return Nt(n.pr,e.pr)||Ke.comparator(n.key,e.key)}}class tAe{constructor(n,e){this.indexManager=n,this.referenceDelegate=e,this.mutationQueue=[],this.yr=1,this.wr=new li(Qr.Ir)}checkEmpty(n){return Z.resolve(0===this.mutationQueue.length)}addMutationBatch(n,e,i,r){const o=this.yr;this.yr++;const s=new zM(o,e,i,r);this.mutationQueue.push(s);for(const a of r)this.wr=this.wr.add(new Qr(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 Qr(e,0),r=new Qr(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 Qr(r,0),s=new Qr(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;Ke.isDocumentKey(o)||(o=o.child(""));const s=new Qr(new Ke(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 Qr(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 Qr(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 nAe{constructor(n){this.vr=n,this.docs=new vi(Ke.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():Ti.newInvalidDocument(e))}getEntries(n,e){let i=_s();return e.forEach(r=>{const o=this.docs.get(r);i=i.insert(r,o?o.document.mutableCopy():Ti.newInvalidDocument(r))}),Z.resolve(i)}getDocumentsMatchingQuery(n,e,i,r){let o=_s();const s=e.path,a=new Ke(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||SM(Q$(d),i)<=0||(r.has(d.key)||tb(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 iAe(this)}getSize(n){return Z.resolve(this.size)}}class iAe extends UW{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 rAe{constructor(n){this.persistence=n,this.Mr=new wl(e=>hh(e),J0),this.lastRemoteSnapshotVersion=pt.min(),this.highestTargetId=0,this.Or=0,this.Nr=new rR,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 oR{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 rAe(this),this.indexManager=new $2e,this.remoteDocumentCache=new nAe(i=>this.referenceDelegate.Kr(i)),this.serializer=new _W(e),this.$r=new J2e(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 eAe,this.overlays[n.toKey()]=e),e}getMutationQueue(n,e){let i=this.Br[n.toKey()];return i||(i=new tAe(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 oAe(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 oAe extends X${constructor(n){super(),this.currentSequenceNumber=n}}class yk{constructor(n){this.persistence=n,this.zr=new rR,this.jr=null}static Hr(n){return new yk(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=Ke.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 lR{constructor(n,e,i,r){this.targetId=n,this.fromCache=e,this.qi=i,this.Qi=r}static Ki(n,e){let i=Xt(),r=Xt();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 lR(n,e.fromCache,i,r)}}class aAe{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 oj(){return!function KTe(){var t;const n=null===(t=y1())||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:sa.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 aAe;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?(Jm()<=Dn.DEBUG&&De("QueryEngine","The SDK decides to create cache indexes for query:",cp(e),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(n,Jo(e))):Z.resolve())}ji(n,e){if(DG(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=ak(e,null,"F"),i=Jo(e)),this.indexManager.getDocumentsMatchingTarget(n,i).next(o=>{const s=Xt(...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,ak(e,null,"F")):this.es(n,l,e,c)}))})))}Hi(n,e,i,r){return DG(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):(Jm()<=Dn.DEBUG&&De("QueryEngine","Re-using previous result from %s to execute query: %s",r.toString(),cp(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 Ii(e+1,0):new Ii(e,i));return new Hs(r,Ke.empty(),n)}(r,-1)).next(a=>a))})}Zi(n,e){let i=new li(RG(n));return e.forEach((r,o)=>{tb(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 Jm()<=Dn.DEBUG&&De("QueryEngine","Using full collection scan to execute query:",cp(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 cAe{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),J0),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 GW(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 KW(t,n){return dR.apply(this,arguments)}function dR(){return dR=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=Xt();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}))})})}),dR.apply(this,arguments)}function XW(t){const n=qe(t);return n.persistence.runTransaction("Get last remote snapshot version","readonly",e=>n.Qr.getLastRemoteSnapshotVersion(e))}function uAe(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 yp(t,n,e){return uR.apply(this,arguments)}function uR(){return uR=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)}),uR.apply(this,arguments)}function kk(t,n,e){const i=qe(t);let r=pt.min(),o=Xt();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:Xt())).next(a=>(function eq(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 MG(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 gR{constructor(){this.activeTargetIds=function BM(){return f2e}()}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 iq{constructor(){this.no=new gR,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 gR,Promise.resolve()}handleUserChange(n,e,i){}setOnlineState(n){}shutdown(){}writeSequenceNumber(n){}notifyBundleLoaded(n){}}class mAe{io(n){}shutdown(){}}class rq{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 Tk=null;function bR(){return null===Tk?Tk=268435456+Math.round(2147483648*Math.random()):Tk++,"0x"+Tk.toString(16)}const pAe={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"};class gAe{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 Ro="WebChannelConnection";class _Ae 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=bR(),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/"+Zm,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}:${pAe[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=bR();return new Promise((s,a)=>{const c=new _Ie;c.setWithCredentials(!0),c.listenOnce(pIe.COMPLETE,()=>{try{switch(c.getLastErrorCode()){case CM.NO_ERROR:const d=c.getResponseJson();De(Ro,`XHR for RPC '${n}' ${o} received:`,JSON.stringify(d)),s(d);break;case CM.TIMEOUT:De(Ro,`RPC '${n}' ${o} timed out`),a(new Ie(de.DEADLINE_EXCEEDED,"Request time out"));break;case CM.HTTP_ERROR:const u=c.getStatus();if(De(Ro,`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 b=p.toLowerCase().replace(/_/g,"-");return Object.values(de).indexOf(b)>=0?b: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(Ro,`RPC '${n}' ${o} completed.`)}});const l=JSON.stringify(r);De(Ro,`RPC '${n}' ${o} sending request:`,r),c.send(e,"POST",l,i,15)})}Fo(n,e,i){const r=bR(),o=[this.fo,"/","google.firestore.v1.Firestore","/",n,"/channel"],s=fIe(),a=mIe(),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(Ro,`Creating RPC '${n}' stream ${r}: ${d}`,c);const u=s.createWebChannel(d,c);let h=!1,f=!1;const m=new gAe({lo:p=>{f?De(Ro,`Not sending because RPC '${n}' stream ${r} is closed:`,p):(h||(De(Ro,`Opening RPC '${n}' stream ${r} transport.`),u.open(),h=!0),De(Ro,`RPC '${n}' stream ${r} sending:`,p),u.send(p))},ho:()=>u.close()}),g=(p,b,y)=>{p.listen(b,k=>{try{y(k)}catch(D){setTimeout(()=>{throw D},0)}})};return g(u,X1.EventType.OPEN,()=>{f||De(Ro,`RPC '${n}' stream ${r} transport opened.`)}),g(u,X1.EventType.CLOSE,()=>{f||(f=!0,De(Ro,`RPC '${n}' stream ${r} transport closed`),m.Vo())}),g(u,X1.EventType.ERROR,p=>{f||(f=!0,zs(Ro,`RPC '${n}' stream ${r} transport errored:`,p),m.Vo(new Ie(de.UNAVAILABLE,"The operation could not be completed")))}),g(u,X1.EventType.MESSAGE,p=>{var b;if(!f){const y=p.data[0];ht(!!y);const D=y.error||(null===(b=y[0])||void 0===b?void 0:b.error);if(D){De(Ro,`RPC '${n}' stream ${r} received error:`,D);const U=D.status;let A=function(B){const X=hr[B];if(void 0!==X)return XG(X)}(U),T=D.message;void 0===A&&(A=de.INTERNAL,T="Unknown error status: "+U+" with message "+D.message),f=!0,m.Vo(new Ie(A,T)),u.close()}else De(Ro,`RPC '${n}' stream ${r} received:`,y),m.mo(y)}}),g(a,gIe.STAT_EVENT,p=>{p.stat===z$.PROXY?De(Ro,`RPC '${n}' stream ${r} detected buffering proxy`):p.stat===z$.NOPROXY&&De(Ro,`RPC '${n}' stream ${r} detected no buffering proxy`)}),setTimeout(()=>{m.Ro()},0),m}}function Sk(){return typeof document<"u"?document:null}function bb(t){return new S2e(t,!0)}class vR{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 sq{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 vR(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?(Zi(e.toString()),Zi("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 bAe extends sq{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 A2e(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),Ar.fromBase64String(d||"")):(ht(void 0===d||d instanceof Uint8Array),Ar.fromUint8Array(d||new Uint8Array))}(t,n.targetChange.resumeToken),s=n.targetChange.cause,a=s&&function(l){const d=void 0===l.code?de.UNKNOWN:XG(l.code);return new Ie(d,l.message||"")}(s);e=new tW(i,r,o,a||null)}else if("documentChange"in n){const i=n.documentChange,r=Cc(t,i.document.name),o=Ji(i.document.updateTime),s=i.document.createTime?Ji(i.document.createTime):pt.min(),a=new co({mapValue:{fields:i.document.fields}}),c=Ti.newFoundDocument(r,o,s,a);e=new hk(i.targetIds||[],i.removedTargetIds||[],c.key,c)}else if("documentDelete"in n){const i=n.documentDelete,r=Cc(t,i.document),o=i.readTime?Ji(i.readTime):pt.min(),s=Ti.newNoDocument(r,o);e=new hk([],i.removedTargetIds||[],s.key,s)}else if("documentRemove"in n){const i=n.documentRemove,r=Cc(t,i.document);e=new hk([],i.removedTargetIds||[],r,null)}else{if(!("filter"in n))return ot();{const i=n.filter,{count:r=0,unchangedNames:o}=i,s=new x2e(r,o);e=new eW(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?Ji(s.readTime):pt.min()}(n);return this.listener.u_(e,i)}c_(n){const e={};e.database=QM(this.serializer),e.addTarget=function(o,s){let a;const c=s.target;if(a=ok(c)?{documents:hW(o,c)}:{query:XM(o,c).ut},a.targetId=s.targetId,s.resumeToken.approximateByteSize()>0){a.resumeToken=oW(o,s.resumeToken);const l=GM(o,s.expectedCount);null!==l&&(a.expectedCount=l)}else if(s.snapshotVersion.compareTo(pt.min())>0){a.readTime=fp(o,s.snapshotVersion.toTimestamp());const l=GM(o,s.expectedCount);null!==l&&(a.expectedCount=l)}return a}(this.serializer,n);const i=function R2e(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=QM(this.serializer),e.removeTarget=n,this.t_(e)}}class vAe extends sq{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 M2e(t,n){return t&&t.length>0?(ht(void 0!==n),t.map(e=>function(r,o){let s=Ji(r.updateTime?r.updateTime:o);return s.isEqual(pt.min())&&(s=Ji(o)),new _2e(s,r.transformResults||[])}(e,n))):[]}(n.writeResults,n.commitTime),i=Ji(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=QM(this.serializer),this.t_(n)}I_(n){const e={streamToken:this.lastStreamToken,writes:n.map(i=>function db(t,n){let e;if(n instanceof up)e={update:dW(t,n.key,n.value)};else if(n instanceof hp)e={delete:lb(t,n.key)};else if(n instanceof kl)e={update:dW(t,n.key,n.data),updateMask:N2e(n.fieldMask)};else{if(!(n instanceof UM))return ot();e={verify:lb(t,n.key)}}return n.fieldTransforms.length>0&&(e.updateTransforms=n.fieldTransforms.map(i=>function(o,s){const a=s.transform;if(a instanceof lp)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 dp)return{fieldPath:s.field.canonicalString(),increment:a.Ie};throw ot()}(0,i))),n.precondition.isNone||(e.currentDocument=void 0!==(o=n.precondition).updateTime?{updateTime:D2e(t,o.updateTime)}:void 0!==o.exists?{exists:o.exists}:ot()),e;var o}(this.serializer,i))};this.t_(e)}}class yAe 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 wAe{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_?(Zi(e),this.g_=!1):De("OnlineStateTracker",e)}b_(){null!==this.f_&&(this.f_.cancel(),this.f_=null)}}class kAe{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 xp(u),u.x_.set("Unknown"),u.v_.delete(4),yield vb(u)}),function l(d){return c.apply(this,arguments)})(s))}))}),this.x_=new wAe(i,r)}}function vb(t){return xR.apply(this,arguments)}function xR(){return xR=me(function*(t){if($d(t))for(const n of t.F_)yield n(!0)}),xR.apply(this,arguments)}function xp(t){return wR.apply(this,arguments)}function wR(){return wR=me(function*(t){for(const n of t.F_)yield n(!1)}),wR.apply(this,arguments)}function Dk(t,n){const e=qe(t);e.C_.has(n.targetId)||(e.C_.set(n.targetId,n),ER(e)?CR(e):Cp(e).Jo()&&kR(e,n))}function wp(t,n){const e=qe(t),i=Cp(e);e.C_.delete(n),i.Jo()&&aq(e,n),0===e.C_.size&&(i.Jo()?i.Xo():$d(e)&&e.x_.set("Unknown"))}function kR(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)}Cp(t).c_(n)}function aq(t,n){t.O_.Oe(n),Cp(t).l_(n)}function CR(t){t.O_=new k2e({getRemoteKeysForTarget:n=>t.remoteSyncer.getRemoteKeysForTarget(n),_t:n=>t.C_.get(n)||null,nt:()=>t.datastore.serializer.databaseId}),Cp(t).start(),t.x_.p_()}function ER(t){return $d(t)&&!Cp(t).Ho()&&t.C_.size>0}function $d(t){return 0===qe(t).v_.size}function cq(t){t.O_=void 0}function CAe(t){return TR.apply(this,arguments)}function TR(){return TR=me(function*(t){t.C_.forEach((n,e)=>{kR(t,n)})}),TR.apply(this,arguments)}function EAe(t,n){return SR.apply(this,arguments)}function SR(){return SR=me(function*(t,n){cq(t),ER(t)?(t.x_.S_(n),CR(t)):t.x_.set("Unknown")}),SR.apply(this,arguments)}function TAe(t,n,e){return DR.apply(this,arguments)}function DR(){return DR=me(function*(t,n,e){if(t.x_.set("Online"),n instanceof tW&&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 Ik(t,i)}else if(n instanceof hk?t.O_.$e(n):n instanceof eW?t.O_.Je(n):t.O_.Ge(n),!e.isEqual(pt.min()))try{const i=yield XW(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(Ar.EMPTY_BYTE_STRING,d.snapshotVersion)),aq(o,c);const u=new Cl(d.target,c,l,d.sequenceNumber);kR(o,u)}),o.remoteSyncer.applyRemoteEvent(a)}(t,e))}catch(i){De("RemoteStore","Failed to raise snapshot:",i),yield Ik(t,i)}var i}),DR.apply(this,arguments)}function Ik(t,n,e){return IR.apply(this,arguments)}function IR(){return IR=me(function*(t,n,e){if(!Pd(n))throw n;t.v_.add(1),yield xp(t),t.x_.set("Offline"),e||(e=()=>XW(t.localStore)),t.asyncQueue.enqueueRetryable(me(function*(){De("RemoteStore","Retrying IndexedDB access"),yield e(),t.v_.delete(1),yield vb(t)}))}),IR.apply(this,arguments)}function lq(t,n){return n().catch(e=>Ik(t,e,n))}function kp(t){return AR.apply(this,arguments)}function AR(){return AR=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(;SAe(n);)try{const r=yield uAe(n.localStore,i);if(null===r){0===n.D_.length&&e.Xo();break}i=r.batchId,DAe(n,r)}catch(r){yield Ik(n,r)}dq(n)&&uq(n)}),AR.apply(this,arguments)}function SAe(t){return $d(t)&&t.D_.length<10}function DAe(t,n){t.D_.push(n);const e=Gd(t);e.Jo()&&e.P_&&e.I_(n.mutations)}function dq(t){return $d(t)&&!Gd(t).Ho()&&t.D_.length>0}function uq(t){Gd(t).start()}function IAe(t){return MR.apply(this,arguments)}function MR(){return MR=me(function*(t){Gd(t).d_()}),MR.apply(this,arguments)}function AAe(t){return RR.apply(this,arguments)}function RR(){return RR=me(function*(t){const n=Gd(t);for(const e of t.D_)n.I_(e.mutations)}),RR.apply(this,arguments)}function MAe(t,n,e){return PR.apply(this,arguments)}function PR(){return PR=me(function*(t,n,e){const i=t.D_.shift(),r=HM.from(i,n,e);yield lq(t,()=>t.remoteSyncer.applySuccessfulWrite(r)),yield kp(t)}),PR.apply(this,arguments)}function RAe(t,n){return FR.apply(this,arguments)}function FR(){return FR=me(function*(t,n){var e;n&&Gd(t).P_&&(yield(e=me(function*(r,o){if(function KG(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 lq(r,()=>r.remoteSyncer.rejectFailedWrite(s.batchId,o)),yield kp(r)}var a}),function i(r,o){return e.apply(this,arguments)})(t,n)),dq(t)&&uq(t)}),FR.apply(this,arguments)}function hq(t,n){return OR.apply(this,arguments)}function OR(){return OR=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 xp(e),i&&e.x_.set("Unknown"),yield e.remoteSyncer.handleCredentialChange(n),e.v_.delete(3),yield vb(e)}),OR.apply(this,arguments)}function LR(){return LR=me(function*(t,n){const e=qe(t);n?(e.v_.delete(2),yield vb(e)):n||(e.v_.add(2),yield xp(e),e.x_.set("Unknown"))}),LR.apply(this,arguments)}function Cp(t){return t.N_||(t.N_=function(e,i,r){const o=qe(e);return o.R_(),new bAe(i,o.connection,o.authCredentials,o.appCheckCredentials,o.serializer,r)}(t.datastore,t.asyncQueue,{Po:CAe.bind(null,t),To:EAe.bind(null,t),u_:TAe.bind(null,t)}),t.F_.push(function(){var n=me(function*(e){e?(t.N_.Zo(),ER(t)?CR(t):t.x_.set("Unknown")):(yield t.N_.stop(),cq(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 vAe(i,o.connection,o.authCredentials,o.appCheckCredentials,o.serializer,r)}(t.datastore,t.asyncQueue,{Po:IAe.bind(null,t),To:RAe.bind(null,t),E_:AAe.bind(null,t),T_:MAe.bind(null,t)}),t.F_.push(function(){var n=me(function*(e){e?(t.L_.Zo(),yield kp(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 VR{constructor(n,e,i,r,o){this.asyncQueue=n,this.timerId=e,this.targetTimeMs=i,this.op=r,this.removalCallback=o,this.deferred=new Ir,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 VR(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(Zi("AsyncQueue",`${n}: ${t}`),Pd(t))return new Ie(de.UNAVAILABLE,`${n}: ${t}`);throw t}class Tp{constructor(n){this.comparator=n?(e,i)=>n(e,i)||Ke.comparator(e.key,i.key):(e,i)=>Ke.comparator(e.key,i.key),this.keyedMap=nb(),this.sortedSet=new vi(this.comparator)}static emptySet(n){return new Tp(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 Tp)||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 Tp;return i.comparator=this.comparator,i.keyedMap=n,i.sortedSet=e,i}}class fq{constructor(){this.B_=new vi(Ke.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 Sp{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 Sp(n,e,Tp.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)&&eb(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 FAe{constructor(){this.queries=new wl(n=>AG(n),eb),this.onlineState="Unknown",this.W_=new Set}}function UR(){return UR=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 PAe,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 '${cp(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_)&&jR(e)}),UR.apply(this,arguments)}function HR(){return HR=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}}),HR.apply(this,arguments)}function OAe(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&&jR(e)}function NAe(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 jR(t){t.W_.forEach(n=>{n.next()})}var $R,mq;(mq=$R||($R={})).j_="default",mq.Cache="cache";class GR{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 Sp(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=Sp.fromInitialDocuments(n.query,n.docs,n.mutatedKeys,n.fromCache,n.hasCachedResults),this.J_=!0,this.H_.next(n)}U_(){return this.options.source!==$R.Cache}}class _q{constructor(n){this.key=n}}class bq{constructor(n){this.key=n}}class vq{constructor(n,e){this.query=n,this.ua=e,this.ca=null,this.hasCachedResults=!1,this.current=!1,this.la=Xt(),this.mutatedKeys=Xt(),this.ha=RG(n),this.Pa=new Tp(this.ha)}get Ia(){return this.ua}Ta(n,e){const i=e?e.Ea:new fq,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=tb(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 Sp(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 fq,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=Xt(),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 bq(i))}),this.la.forEach(i=>{n.has(i)||e.push(new _q(i))}),e}fa(n){this.ua=n.hs,this.la=Xt();const e=this.Ta(n.documents);return this.applyChanges(e,!0)}ga(){return Sp.fromInitialDocuments(this.query,this.Pa,this.mutatedKeys,0===this.ca,this.hasCachedResults)}}class BAe{constructor(n,e,i){this.query=n,this.targetId=e,this.view=i}}class UAe{constructor(n){this.key=n,this.pa=!1}}class zAe{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=>AG(a),eb),this.Sa=new Map,this.ba=new Set,this.Da=new vi(Ke.comparator),this.Ca=new Map,this.va=new rR,this.Fa={},this.Ma=new Map,this.xa=yh.Ln(),this.onlineState="Unknown",this.Oa=void 0}get isPrimaryClient(){return!0===this.Oa}}function HAe(t,n){return WR.apply(this,arguments)}function WR(){return WR=me(function*(t,n,e=!0){const i=Ak(t);let r;const o=i.wa.get(n);return o?(i.sharedClientState.addLocalQueryTarget(o.targetId),r=o.view.ga()):r=yield yq(i,n,e,!0),r}),WR.apply(this,arguments)}function jAe(t,n){return qR.apply(this,arguments)}function qR(){return qR=me(function*(t,n){const e=Ak(t);yield yq(e,n,!0,!1)}),qR.apply(this,arguments)}function yq(t,n,e,i){return QR.apply(this,arguments)}function QR(){return QR=me(function*(t,n,e,i){const r=yield function vp(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 KR(t,n,e,i,r){return XR.apply(this,arguments)}(t,n,o,"current"===s,r.resumeToken)),t.isPrimaryClient&&e&&Dk(t.remoteStore,r),a}),QR.apply(this,arguments)}function XR(){return XR=me(function*(t,n,e,i,r){t.Na=(u,h,f)=>{return(m=me(function*(p,b,y,k){let D=b.view.Ta(y);D.Xi&&(D=yield kk(p.localStore,b.query,!1).then(({documents:V})=>b.view.Ta(V,D)));const U=k&&k.targetChanges.get(b.targetId),A=k&&null!=k.targetMismatches.get(b.targetId),T=b.view.applyChanges(D,p.isPrimaryClient,U,A);return aP(p,b.targetId,T.Va),T.snapshot}),function g(p,b,y,k){return m.apply(this,arguments)})(t,u,h,f);var m};const o=yield kk(t.localStore,n,!0),s=new vq(n,o.hs),a=s.Ta(o.documents),c=cb.createSynthesizedTargetChangeForCurrentChange(e,i&&"Offline"!==t.onlineState,r),l=s.applyChanges(a,t.isPrimaryClient,c);aP(t,e,l.Va);const d=new BAe(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}),XR.apply(this,arguments)}function $Ae(t,n,e){return YR.apply(this,arguments)}function YR(){return YR=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=>!eb(s,n))),void i.wa.delete(n);i.isPrimaryClient?(i.sharedClientState.removeLocalQueryTarget(r.targetId),i.sharedClientState.isActiveQueryTarget(r.targetId)||(yield yp(i.localStore,r.targetId,!1).then(()=>{i.sharedClientState.clearQueryState(r.targetId),e&&wp(i.remoteStore,r.targetId),Dp(i,r.targetId)}).catch(Rd))):(Dp(i,r.targetId),yield yp(i.localStore,r.targetId,!0))}),YR.apply(this,arguments)}function GAe(t,n){return ZR.apply(this,arguments)}function ZR(){return ZR=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),wp(e.remoteStore,i.targetId))}),ZR.apply(this,arguments)}function JR(){return JR=me(function*(t,n,e){const i=function bP(t){const n=qe(t);return n.remoteStore.remoteSyncer.applySuccessfulWrite=QAe.bind(null,n),n.remoteStore.remoteSyncer.rejectFailedWrite=KAe.bind(null,n),n}(t);try{const r=yield function(s,a){const c=qe(s),l=Ii.now(),d=a.reduce((f,m)=>f.add(m.key),Xt());let u,h;return c.persistence.runTransaction("Locally write mutations","readwrite",f=>{let m=_s(),g=Xt();return c.os.getEntries(f,d).next(p=>{m=p,m.forEach((b,y)=>{y.isValidDocument()||(g=g.add(b))})}).next(()=>c.localDocuments.getOverlayedDocuments(f,m)).next(p=>{u=p;const b=[];for(const y of a){const k=v2e(y,u.get(y.key).overlayedDocument);null!=k&&b.push(new kl(y.key,k,pG(k.value.mapValue),Mi.exists(!0)))}return c.mutationQueue.addMutationBatch(f,l,b,a)}).next(p=>{h=p;const b=p.applyToLocalDocumentSet(u,g);return c.documentOverlayCache.saveOverlays(f,p.batchId,b)})}).then(()=>({batchId:h.batchId,changes:FG(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 El(i,r.changes),yield kp(i.remoteStore)}catch(r){const o=Ep(r,"Failed to persist write");e.reject(o)}}),JR.apply(this,arguments)}function xq(t,n){return eP.apply(this,arguments)}function eP(){return eP=me(function*(t,n){const e=qe(t);try{const i=yield function dAe(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,b;null!==n.targetMismatches.get(u)?f=f.withResumeToken(Ar.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,b=d,(0===(g=h).resumeToken.approximateByteSize()||p.snapshotVersion.toMicroseconds()-g.snapshotVersion.toMicroseconds()>=3e8||b.addedDocuments.size+b.modifiedDocuments.size+b.removedDocuments.size>0)&&a.push(e.Qr.updateTargetData(o,f))});let c=_s(),l=Xt();if(n.documentUpdates.forEach(d=>{n.resolvedLimboDocuments.has(d)&&a.push(e.persistence.referenceDelegate.updateLimboDocument(o,d))}),a.push(function YW(t,n,e){let i=Xt(),r=Xt();return e.forEach(o=>i=i.add(o)),n.getEntries(t,i).next(o=>{let s=_s();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 El(e,i,n)}catch(i){yield Rd(i)}}),eP.apply(this,arguments)}function wq(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&&jR(c)}(i.eventManager,n),r.length&&i.ya.u_(r),i.onlineState=n,i.isPrimaryClient&&i.sharedClientState.setOnlineState(n)}}function qAe(t,n,e){return tP.apply(this,arguments)}function tP(){return tP=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(Ke.comparator);s=s.insert(o,Ti.newNoDocument(o,pt.min()));const a=Xt().add(o),c=new ab(pt.min(),new Map,new vi(Nt),s,a);yield xq(i,c),i.Da=i.Da.remove(o),i.Ca.delete(n),cP(i)}else yield yp(i.localStore,n,!1).then(()=>Dp(i,n,e)).catch(Rd)}),tP.apply(this,arguments)}function QAe(t,n){return nP.apply(this,arguments)}function nP(){return nP=me(function*(t,n){const e=qe(t),i=n.batch.batchId;try{const r=yield function lAe(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=Xt();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);sP(e,i,null),oP(e,i),e.sharedClientState.updateMutationState(i,"acknowledged"),yield El(e,r)}catch(r){yield Rd(r)}}),nP.apply(this,arguments)}function KAe(t,n,e){return iP.apply(this,arguments)}function iP(){return iP=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);sP(i,n,e),oP(i,n),i.sharedClientState.updateMutationState(n,"rejected",e),yield El(i,r)}catch(r){yield Rd(r)}}),iP.apply(this,arguments)}function oP(t,n){(t.Ma.get(n)||[]).forEach(e=>{e.resolve()}),t.Ma.delete(n)}function sP(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 Dp(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)||kq(t,i)})}function kq(t,n){t.ba.delete(n.path.canonicalString());const e=t.Da.get(n);null!==e&&(wp(t.remoteStore,e),t.Da=t.Da.remove(n),t.Ca.delete(e),cP(t))}function aP(t,n,e){for(const i of e)i instanceof _q?(t.va.addReference(i.key,n),YAe(t,i)):i instanceof bq?(De("SyncEngine","Document no longer in limbo: "+i.key),t.va.removeReference(i.key,n),t.va.containsKey(i.key)||kq(t,i.key)):ot()}function YAe(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),cP(t))}function cP(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=lR.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))}),lP.apply(this,arguments)}function ZAe(t,n){return dP.apply(this,arguments)}function dP(){return dP=me(function*(t,n){const e=qe(t);if(!e.currentUser.isEqual(n)){De("SyncEngine","User change. New user:",n.toKey());const i=yield KW(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 El(e,i.us)}var o}),dP.apply(this,arguments)}function JAe(t,n){const e=qe(t),i=e.Ca.get(n);if(i&&i.pa)return Xt().add(i.key);{let r=Xt();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 Ak(t){const n=qe(t);return n.remoteStore.remoteSyncer.applyRemoteEvent=xq.bind(null,n),n.remoteStore.remoteSyncer.getRemoteKeysForTarget=JAe.bind(null,n),n.remoteStore.remoteSyncer.rejectListen=qAe.bind(null,n),n.ya.u_=OAe.bind(null,n.eventManager),n.ya.La=NAe.bind(null,n.eventManager),n}class Ip{constructor(){this.synchronizeTabs=!1}initialize(n){var e=this;return me(function*(){e.serializer=bb(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 QW(t,n,e,i){return new cAe(t,n,e,i)}(this.persistence,new qW,n.initialUser,this.serializer)}createPersistence(n){return new oR(yk.Hr,this.serializer)}createSharedClientState(n){return new iq}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 Ap{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=>wq(i.syncEngine,r,1),i.remoteStore.remoteSyncer.handleCredentialChange=ZAe.bind(null,i.syncEngine),yield function NR(t,n){return LR.apply(this,arguments)}(i.remoteStore,i.syncEngine.isPrimaryClient))})()}createEventManager(n){return new FAe}createDatastore(n){const e=bb(n.databaseInfo.databaseId),i=new _Ae(n.databaseInfo);return new yAe(n.authCredentials,n.appCheckCredentials,i,e)}createRemoteStore(n){return i=this.localStore,r=this.datastore,o=n.asyncQueue,s=e=>wq(this.syncEngine,e,0),a=rq.D()?new rq:new mAe,new kAe(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 zAe(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 xp(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 Mk{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):Zi("Uncaught Error in snapshot listener:",n.toString())}Qa(){this.muted=!0}qa(n,e){this.muted||setTimeout(()=>{this.muted||n(e)},0)}}class hMe{constructor(n,e,i,r){var o=this;this.authCredentials=n,this.appCheckCredentials=e,this.asyncQueue=i,this.databaseInfo=r,this.user=Wr.UNAUTHENTICATED,this.clientId=G$.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 Ir;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 Rk(t,n){return yP.apply(this,arguments)}function yP(){return yP=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 KW(n.localStore,o),i=o)});return function(o){return r.apply(this,arguments)}}()),n.persistence.setDatabaseDeletedListener(()=>t.terminate()),t._offlineComponents=n}),yP.apply(this,arguments)}function xP(t,n){return wP.apply(this,arguments)}function wP(){return wP=me(function*(t,n){t.asyncQueue.verifyOperationInProgress();const e=yield function kP(t){return CP.apply(this,arguments)}(t);De("FirestoreClient","Initializing OnlineComponentProvider"),yield n.initialize(e,t.configuration),t.setCredentialChangeListener(i=>hq(n.remoteStore,i)),t.setAppCheckTokenChangeListener((i,r)=>hq(n.remoteStore,r)),t._onlineComponents=n}),wP.apply(this,arguments)}function CP(){return CP=me(function*(t){if(!t._offlineComponents)if(t._uninitializedComponentsProvider){De("FirestoreClient","Using user provided OfflineComponentProvider");try{yield Rk(t,t._uninitializedComponentsProvider._offline)}catch(n){const e=n;if(!function Dq(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 Rk(t,new Ip)}}else De("FirestoreClient","Using default OfflineComponentProvider"),yield Rk(t,new Ip);return t._offlineComponents}),CP.apply(this,arguments)}function Pk(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 xP(t,t._uninitializedComponentsProvider._online)):(De("FirestoreClient","Using default OnlineComponentProvider"),yield xP(t,new Ap))),t._onlineComponents}),EP.apply(this,arguments)}function SP(){return SP=me(function*(t){const n=yield Pk(t),e=n.eventManager;return e.onListen=HAe.bind(null,n.syncEngine),e.onUnlisten=$Ae.bind(null,n.syncEngine),e.onFirstRemoteStoreListen=jAe.bind(null,n.syncEngine),e.onLastRemoteStoreUnlisten=GAe.bind(null,n.syncEngine),e}),SP.apply(this,arguments)}function Pq(t,n,e={}){const i=new Ir;return t.asyncQueue.enqueueAndForget(me(function*(){return function(o,s,a,c,l){const d=new Mk({next:h=>{s.enqueueAndForget(()=>function zR(t,n){return HR.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 GR(a,d,{includeMetadataChanges:!0,ta:!0});return function BR(t,n){return UR.apply(this,arguments)}(o,u)}(yield function Rp(t){return SP.apply(this,arguments)}(t),t.asyncQueue,n,e,i)})),i.promise}function Fq(t){const n={};return void 0!==t.timeoutSeconds&&(n.timeoutSeconds=t.timeoutSeconds),n}const Oq=new Map;function DP(t,n,e){if(!e)throw new Ie(de.INVALID_ARGUMENT,`Function ${t}() cannot be called with an empty ${n}.`)}function Nq(t){if(!Ke.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 Lq(t){if(Ke.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 Fk(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 yn(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=Fk(t);throw new Ie(de.INVALID_ARGUMENT,`Expected type '${n.name}', but it was: ${e}`)}}return t}class Bq{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 kMe(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=Fq(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 yb{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 Bq({}),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 Bq(n),void 0!==n.credentials&&(this._authCredentials=function(i){if(!i)return new vIe;switch(i.type){case"firstParty":return new kIe(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=Oq.get(e);i&&(De("ComponentProvider","Removing Datastore"),Oq.delete(e),i.terminate())}(this),Promise.resolve()}}class lo{constructor(n,e,i){this.converter=e,this._query=i,this.type="query",this.firestore=n}withConverter(n){return new lo(this.firestore,n,this._query)}}class er{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 Ec(this.firestore,this.converter,this._key.path.popLast())}withConverter(n){return new er(this.firestore,n,this._key)}}class Ec extends lo{constructor(n,e,i){super(n,e,sp(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 er(this.firestore,null,new Ke(n))}withConverter(n){return new Ec(this.firestore,n,this._path)}}function Uq(t,n,...e){if(t=Oa(t),DP("collection","path",n),t instanceof yb){const i=bn.fromString(n,...e);return Lq(i),new Ec(t,null,i)}{if(!(t instanceof er||t instanceof Ec))throw new Ie(de.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const i=t._path.child(bn.fromString(n,...e));return Lq(i),new Ec(t.firestore,null,i)}}class TMe{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 vR(this,"async_queue_retry"),this.cu=()=>{const e=Sk();e&&De("AsyncQueue","Visibility state changed to "+e.visibilityState),this.jo.Ko()};const n=Sk();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=Sk();e&&"function"==typeof e.removeEventListener&&e.removeEventListener("visibilitychange",this.cu)}}enqueue(n){if(this.lu(),this.iu)return new Promise(()=>{});const e=new Ir;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,Zi("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=VR.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 yb{constructor(n,e,i,r){super(n,e,i,r),this.type="firestore",this._queue=new TMe,this._persistenceKey=r?.name||"[DEFAULT]"}_terminate(){return this._firestoreClient||Hq(this),this._firestoreClient.terminate()}}function DMe(t,n){const e="object"==typeof t?t:function iDe(t=w1){const n=nh.get(t);if(!n&&t===w1&&ij())return vj();if(!n)throw _l.create("no-app",{appName:t});return n}(),i="string"==typeof t?t:n||"(default)",r=function bj(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=y1())||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 CMe(t,n,e,i={}){var r;const o=(t=yn(t,yb))._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=Wr.MOCK_USER;else{a=function QTe(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[v1(JSON.stringify({alg:"none",type:"JWT"})),v1(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 Wr(l)}t._authCredentials=new yIe(new j$(a,c))}}(r,...o)}return r}function tr(t){return t._firestoreClient||Hq(t),t._firestoreClient.verifyNotTerminated(),t._firestoreClient}function Hq(t){var n,e,i;const r=t._freezeSettings(),o=(c=(null===(n=t._app)||void 0===n?void 0:n.options.appId)||"",new ZIe(t._databaseId,c,t._persistenceKey,(d=r).host,d.ssl,d.experimentalForceLongPolling,d.experimentalAutoDetectLongPolling,Fq(d.experimentalLongPollingOptions),d.useFetchStreams));var c,d;t._firestoreClient=new hMe(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(Ar.fromBase64String(n))}catch(e){throw new Ie(de.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+e)}}static fromUint8Array(n){return new wh(Ar.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 AMe=/^__.*__$/;class MMe{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 up(n,this.data,e,this.fieldTransforms)}}function Wq(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw ot()}}class Ok{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 Ok(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 Vk(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 MMe(new co(a),c,l)}function Eh(t,n){if(Xq(t=Oa(t)))return LP("Unsupported field value:",n,t),Kq(t,n);if(t instanceof Pp)return function(i,r){if(!Wq(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=Eh(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 VG(r.serializer,i);if("boolean"==typeof i)return{booleanValue:i};if("string"==typeof i)return{stringValue:i};if(i instanceof Date){const o=Ii.fromDate(i);return{timestampValue:fp(r.serializer,o)}}if(i instanceof Ii){const o=new Ii(i.seconds,1e3*Math.floor(i.nanoseconds/1e3));return{timestampValue:fp(r.serializer,o)}}if(i instanceof AP)return{geoPointValue:{latitude:i.latitude,longitude:i.longitude}};if(i instanceof wh)return{bytesValue:oW(r.serializer,i._byteString)};if(i instanceof er){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:WM(i.firestore._databaseId||r.databaseId,i._key.path)}}throw r.Su(`Unsupported field value: ${Fk(i)}`)}(t,n)}function Kq(t,n){const e={};return sG(t)?n.path&&n.path.length>0&&n.fieldMask.push(n.path):Fd(t,(i,r)=>{const o=Eh(r,n.fu(i));null!=o&&(e[i]=o)}),{mapValue:{fields:e}}}function Xq(t){return!("object"!=typeof t||null===t||t instanceof Array||t instanceof Date||t instanceof Ii||t instanceof AP||t instanceof wh||t instanceof er||t instanceof Pp)}function LP(t,n,e){if(!Xq(e)||"object"!=typeof(r=e)||null===r||Object.getPrototypeOf(r)!==Object.prototype&&null!==Object.getPrototypeOf(r)){const i=Fk(e);throw n.Su("an object"===i?t+" a custom object":t+" "+i)}var r}function kb(t,n,e){if((n=Oa(n))instanceof kh)return n._internalPath;if("string"==typeof n)return Lk(t,n);throw Vk("Field path arguments must be of type string or ",t,!1,void 0,e)}const PMe=new RegExp("[~\\*/\\[\\]]");function Lk(t,n,e){if(n.search(PMe)>=0)throw Vk(`Invalid field path (${n}). Paths must not contain '~', '*', '/', '[', or ']'`,t,!1,void 0,e);try{return new kh(...n.split("."))._internalPath}catch{throw Vk(`Invalid field path (${n}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,t,!1,void 0,e)}}function Vk(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 Yq(t,n){return t.some(e=>e.isEqual(n))}class Cb{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 er(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){const n=new FMe(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(Bk("DocumentSnapshot.get",n));if(null!==e)return this._userDataWriter.convertValue(e)}}}class FMe extends Cb{data(){return super.data()}}function Bk(t,n){return"string"==typeof n?Lk(t,n):n instanceof kh?n._internalPath:n._delegate._internalPath}class VP{}class Eb extends VP{}class Tb 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 Tb(n,e,i)}_apply(n){const e=this._parse(n);return nQ(n._query,e),new lo(n.firestore,n.converter,VM(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){tQ(u,d);const f=[];for(const m of u)f.push(eQ(c,o,m));h={arrayValue:{values:f}}}else h=eQ(c,o,u)}else"in"!==d&&"not-in"!==d&&"array-contains-any"!==d||tQ(u,d),h=function Qq(t,n,e,i=!1){return Eh(e,t.Cu(i?4:3,n))}(a,"where",u,"in"===d||"not-in"===d);return vn.create(l,d,h)}(n._query,0,e,n.firestore._databaseId,this._field,this._op,this._value)}}class Fp extends VP{constructor(n,e){super(),this.type=n,this._queryConstraints=e}static _create(n,e){return new Fp(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)nQ(s,c),s=VM(s,c)}(n._query,e),new lo(n.firestore,n.converter,VM(n._query,e)))}_getQueryConstraints(){return this._queryConstraints}_getOperator(){return"and"===this.type?"and":"or"}}class BP extends Eb{constructor(n,e){super(),this._field=n,this._direction=e,this.type="orderBy"}static _create(n,e){return new BP(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 Z0(o,s)}(n._query,this._field,this._direction);return new lo(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 Uk extends Eb{constructor(n,e,i){super(),this.type=n,this._limit=e,this._limitType=i}static _create(n,e,i){return new Uk(n,e,i)}_apply(n){return new lo(n.firestore,n.converter,ak(n._query,this._limit,this._limitType))}}function eQ(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(!LM(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(bn.fromString(e));if(!Ke.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 Ke(i))}if(e instanceof er)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: ${Fk(e)}.`)}function tQ(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 nQ(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 rQ{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 AP(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=tk(n);return null==i?null:this.convertValue(i,e);case"estimate":return this.convertTimestamp(Q0(n));default:return null}}convertTimestamp(n){const e=Od(n);return new Ii(e.seconds,e.nanos)}convertDocumentKey(n,e){const i=bn.fromString(n);ht(gW(i));const r=new dh(i.get(1),i.get(3)),o=new Ke(i.popFirst(5));return r.isEqual(e)||Zi(`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 Th{constructor(n,e){this.hasPendingWrites=n,this.fromCache=e}isEqual(n){return this.hasPendingWrites===n.hasPendingWrites&&this.fromCache===n.fromCache}}class Op extends Cb{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 $k(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(Bk("DocumentSnapshot.get",n));if(null!==i)return this._userDataWriter.convertValue(i,e.serverTimestamps)}}}class $k extends Op{data(n={}){return super.data(n)}}class Np{constructor(n,e,i,r){this._firestore=n,this._userDataWriter=e,this._snapshot=r,this.metadata=new Th(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 $k(this._firestore,this._userDataWriter,i.key,i,new Th(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 $k(r._firestore,r._userDataWriter,a.doc.key,a.doc,new Th(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 $k(r._firestore,r._userDataWriter,a.doc.key,a.doc,new Th(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:UMe(a.type),doc:c,oldIndex:l,newIndex:d}})}}(this,e),this._cachedChangesIncludeMetadataChanges=e),this._cachedChanges}}function UMe(t){switch(t){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return ot()}}class Wd extends rQ{constructor(n){super(),this.firestore=n}convertBytes(n){return new wh(n)}convertReference(n){const e=this.convertDocumentKey(n,this.firestore._databaseId);return new er(this.firestore,null,e)}}function HMe(t,n){const e=yn(t.firestore,yi),i=function EMe(t,n,...e){if(t=Oa(t),1===arguments.length&&(n=G$.newId()),DP("doc","path",n),t instanceof yb){const i=bn.fromString(n,...e);return Nq(i),new er(t,null,new Ke(i))}{if(!(t instanceof er||t instanceof Ec))throw new Ie(de.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const i=t._path.child(bn.fromString(n,...e));return Nq(i),new er(t.firestore,t instanceof Ec?t.converter:null,new Ke(i))}}(t),r=function jk(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 Sb(t,n){return function(i,r){const o=new Ir;return i.asyncQueue.enqueueAndForget(me(function*(){return function WAe(t,n,e){return JR.apply(this,arguments)}(yield function TP(t){return Pk(t).then(n=>n.syncEngine)}(i),r,o)})),o.promise}(tr(t),n)}(e,[Nk(Ch(t.firestore),"addDoc",i._key,r,null!==t.converter,{}).toMutation(i._key,Mi.exists(!1))]).then(()=>i)}!function(n,e=!0){Zm="10.9.0",C1(new y0("firestore",(i,{instanceIdentifier:r,options:o})=>{const s=i.getProvider("app").getImmediate(),a=new yi(new xIe(i.getProvider("auth-internal")),new CIe(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)),$m(H$,"4.5.0",n),$m(H$,"4.5.0","esm2017")}();let tRe=(()=>{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 Te,this.termResult=new Te,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 ko(i.terminologyService.expandValueSet("^ 816080008 |International Patient Summary| {{ C definitionStatus = defined }}","",r,1));i.randomLimit=o.expansion.total-1;const s=yield ko(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(io))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),nRe=(()=>{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})(),cQ=(()=>{class t{constructor(){this.db=DMe(),this.scoreLimit=20}addScore(e){var i=this;return me(function*(){try{yield HMe(Uq(i.db,"scoreboard"),e)}catch(r){console.error("Error adding document: ",r)}})()}getScores(){var e=this;return me(function*(){const r=function OMe(t,n,...e){let i=[];n instanceof VP&&i.push(n),i=i.concat(e),function(o){const s=o.filter(c=>c instanceof Fp).length,a=o.filter(c=>c instanceof Tb).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}(Uq(e.db,"scoreboard"),function NMe(t,n="asc"){const e=n,i=Bk("orderBy",t);return BP._create(i,e)}("score","desc"),function LMe(t){return function Vq(t,n){if(n<=0)throw new Ie(de.INVALID_ARGUMENT,`Function ${t}() requires a positive number, but it was: ${n}.`)}("limit",t),Uk._create("limit",t,"F")}(e.scoreLimit));return(yield function zMe(t){t=yn(t,lo);const n=yn(t.firestore,yi),e=tr(n),i=new Wd(n);return function Zq(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),Pq(e,t._query).then(r=>new Np(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 iRe(t,n){if(1&t){const e=Se();_(0,"button",4),H("click",function(){const r=j(e).$implicit;return G(P(2).guessLetter(r))}),C(1),v()}if(2&t){const e=n.$implicit,i=P(2);lt("guessed-correct","correct"===i.guessedLetters[e])("guessed-wrong","wrong"===i.guessedLetters[e]),E("disabled",i.isLetterGuessed(e)),x(),Ze(" ",e," ")}}function rRe(t,n){if(1&t&&(_(0,"div",2),q(1,iRe,2,6,"button",3),v()),2&t){const e=n.$implicit;x(),E("ngForOf",e)}}let oRe=(()=>{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 Te}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=$e({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,rRe,2,1,"div",1),v()),2&i&&(x(),E("ngForOf",r.keyboardLayout))},dependencies:[Ko,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})(),sRe=(()=>{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 aRe(t,n){if(1&t){const e=Se();_(0,"div",1)(1,"div",2),C(2," Install this webapp on your iPhone: tap "),_(3,"mat-icon"),C(4,"ios_share"),v(),C(5," and then 'Add to Home Screen' "),v(),_(6,"button",3),H("click",function(){return j(e),G(P().dismiss())}),_(7,"mat-icon"),C(8,"close"),v()()()}}let cRe=(()=>{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(sRe))};static#t=this.\u0275cmp=$e({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,aRe,9,0,"div",0),2&i&&E("ngIf",r.isIosSafari&&!r.tooltipDismissed)},dependencies:[zr,To],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})(),lQ=(()=>{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=fo({name:"elapsedTime",type:t,pure:!0})}return t})();const lRe=["keyboard"],dQ=()=>[],dRe=(t,n)=>[t,n],HP=t=>[t],uQ=t=>[t,"shadow-local"],uRe=t=>[t,"trophy-large","shadow-local"];function hRe(t,n){if(1&t&&(_(0,"div",8)(1,"div",9)(2,"div",10),C(3," Loading... "),v(),xe(4,"mat-progress-bar",11),v()()),2&t){const e=P(2);x(4),E("value",e.loadingAssetsProgress)}}function fRe(t,n){1&t&&(_(0,"span")(1,"mat-icon"),C(2,"favorite"),v()())}function mRe(t,n){1&t&&(_(0,"span")(1,"mat-icon"),C(2,"favorite_border"),v()())}function pRe(t,n){if(1&t&&(_(0,"span"),C(1),v()),2&t){const e=n.$implicit;x(),nt(e)}}function gRe(t,n){if(1&t&&(_(0,"span",33),q(1,pRe,2,1,"span",18),v()),2&t){const e=n.$implicit;x(),E("ngForOf",e.split(""))}}function _Re(t,n){if(1&t&&(_(0,"div",31),q(1,gRe,2,1,"span",32),v()),2&t){const e=P(2).ngIf;x(),E("ngForOf",e.displayTerm.join("").split(" "))}}function bRe(t,n){1&t&&(_(0,"div",34)(1,"div",35),C(2," Choosing a random SNOMED CT concept using the FHIR API "),v(),xe(3,"mat-progress-bar",36),v())}function vRe(t,n){if(1&t){const e=Se();_(0,"div",37),H("click",function(){return j(e),G(P(3).revealHint())}),C(1," Reveal Hint "),v()}}function yRe(t,n){if(1&t){const e=Se();_(0,"div",37),H("click",function(){return j(e),G(P(3).loadMenu())}),C(1," Abandon game "),v()}}function xRe(t,n){1&t&&xe(0,"li",41),2&t&&E("innerHTML",n.$implicit,yu)}function wRe(t,n){if(1&t&&(_(0,"div",38)(1,"div",39)(2,"h2"),C(3,"Hints:"),v(),_(4,"ul"),q(5,xRe,1,1,"li",40),v()()()),2&t){const e=P(2).ngIf;x(5),E("ngForOf",e.hints)}}function kRe(t,n){if(1&t&&(_(0,"mat-icon",47),C(1,"grade"),v()),2&t){const e=P().$implicit;Ki("left",P(3).calculateGoalPosition(e.score-5),"%"),E("ngClass",Ea(3,HP,e.name.toLowerCase()))}}function CRe(t,n){if(1&t&&(_(0,"mat-icon",48),C(1,"grade"),v()),2&t){const e=P().$implicit;Ki("left",P(3).calculateGoalPosition(e.score-1),"%"),E("ngClass",Ea(3,HP,e.name.toLowerCase()))}}function ERe(t,n){if(1&t&&(_(0,"div",49),C(1),v()),2&t){const e=P().$implicit;Ki("left",P(3).calculateGoalPosition(e.score),"%"),E("ngClass",Ea(4,HP,e.name.toLowerCase())),x(),Ze("",e.name," trophy!")}}function TRe(t,n){if(1&t&&(Gt(0),xe(1,"div",42),q(2,kRe,2,5,"mat-icon",43),_(3,"mat-icon",44),C(4,"emoji_events"),v(),q(5,CRe,2,5,"mat-icon",45)(6,ERe,2,6,"div",46),Wt()),2&t){const e=n.$implicit,i=P(2).ngIf,r=P();x(),Ys(e.name.toLowerCase()),Ki("left",r.calculateGoalPosition(e.score),"%"),x(),E("ngIf",i.score>=e.score),x(),Ki("left",r.calculateGoalPosition(e.score-3),"%"),E("ngClass",YS(10,dRe,e.name.toLowerCase(),i.score>=e.score?"trophy-large":"")),x(2),E("ngIf",i.score>=e.score),x(),E("ngIf",i.score>=e.score)}}function SRe(t,n){if(1&t){const e=Se();_(0,"div")(1,"div",12)(2,"div",13),xe(3,"img",14),_(4,"div",15),C(5),v()()(),_(6,"div",16)(7,"span",17),C(8),v(),q(9,fRe,3,0,"span",18)(10,mRe,3,0,"span",18),_(11,"span",17),C(12),yo(13,"elapsedTime"),v()(),q(14,_Re,2,1,"div",19)(15,bRe,4,0,"div",20),_(16,"p",21),C(17,"Click the keys to guess the letters of the term!"),v(),_(18,"div")(19,"app-keyboard",22,0),H("letterGuessed",function(r){return j(e),G(P(2).guessLetter(r))}),v()(),_(21,"div",23),q(22,vRe,2,0,"div",24)(23,yRe,2,0,"div",25),v(),q(24,wRe,6,1,"div",26),_(25,"div",27),C(26," * Hints are generated from the definition of the SNOMED CT concept, retrieved from the FHIR API as an SCG grammar expression "),v(),_(27,"div",28)(28,"h3"),C(29,"Score Progression"),v(),_(30,"div",29),xe(31,"mat-progress-bar",30),q(32,TRe,7,13,"ng-container",18),v()()()}if(2&t){const e=P().ngIf,i=P();x(3),E("@popIn",void 0),x(2),Iu(" ",e.difficultyLevel," - ",i.getLanguageName(i.selectedLanguage)," "),x(3),Iu(" Round: ",e.round," \xa0\xa0\xa0\xa0 Score: ",e.score," \xa0\xa0\xa0\xa0 Life: "),x(),E("ngForOf",Fs(18,dQ).constructor(e.hitPoints)),x(),E("ngForOf",Fs(19,dQ).constructor(e.rules.maxHitPoints-e.hitPoints)),x(2),Ze(" \xa0\xa0\xa0\xa0 Time: ",oc(13,16,1e3*i.elapsedTime),""),x(2),E("ngIf","playing"==e.state),x(),E("ngIf","choosingTerm"===e.state),x(3),E("@shake",i.shakeState),x(4),E("ngIf","playing"==e.state&&e.hintsAvailable&&e.hitPoints>1),x(),E("ngIf","playing"==e.state),x(),E("ngIf",e.hints.length>0&&"playing"==e.state),x(7),E("value",i.calculateProgress(e.score)),x(),E("ngForOf",i.goals)}}function DRe(t,n){if(1&t){const e=Se();_(0,"div",50),xe(1,"img",51)(2,"img",52),_(3,"p",53)(4,"b"),C(5,"Welcome to SnoGuess!"),v()(),_(6,"p",53),C(7," A fun way to learn about SNOMED CT concepts and their definitions. "),v(),_(8,"div",54),H("click",function(){return j(e),G(P(2).chooseDifficultyLevel())}),C(9," New game "),v(),_(10,"div",54),H("click",function(){return j(e),G(P(2).showInstructionsPanel())}),C(11," Instructions "),v(),_(12,"div",55),H("click",function(){return j(e),G(P(2).openScoreboard())}),C(13," High Scores "),v(),_(14,"p",56),C(15," Playing with terms in the IPS Reference Set in "),_(16,"b"),C(17),v(),C(18,", change language: "),v(),_(19,"div",57)(20,"button",58),H("click",function(){return j(e),G(P(2).setLanguage("da"))}),C(21,"DA"),v(),_(22,"button",58),H("click",function(){return j(e),G(P(2).setLanguage("de"))}),C(23,"DE"),v(),_(24,"button",58),H("click",function(){return j(e),G(P(2).setLanguage("en"))}),C(25,"EN"),v(),_(26,"button",58),H("click",function(){return j(e),G(P(2).setLanguage("es"))}),C(27,"ES"),v(),_(28,"button",58),H("click",function(){return j(e),G(P(2).setLanguage("et"))}),C(29,"ET"),v(),_(30,"button",58),H("click",function(){return j(e),G(P(2).setLanguage("fi"))}),C(31,"FI"),v(),_(32,"button",58),H("click",function(){return j(e),G(P(2).setLanguage("fr"))}),C(33,"FR"),v(),_(34,"button",58),H("click",function(){return j(e),G(P(2).setLanguage("nl"))}),C(35,"NL"),v(),_(36,"button",58),H("click",function(){return j(e),G(P(2).setLanguage("no"))}),C(37,"NO"),v(),_(38,"button",58),H("click",function(){return j(e),G(P(2).setLanguage("sv"))}),C(39,"SV"),v()()()}if(2&t){const e=P(2);x(2),E("@popIn",void 0),x(6),E("@scrollUp",void 0),x(2),E("@scrollUp",void 0),x(2),E("@scrollUp",void 0),x(5),nt(e.getLanguageName(e.selectedLanguage))}}function IRe(t,n){if(1&t){const e=Se();_(0,"div",62)(1,"div",63),H("click",function(){const r=j(e).$implicit;return G(P(3).startGame(r.name))}),C(2),v(),_(3,"p",64),C(4),_(5,"mat-icon",65),C(6,"favorite"),v(),C(7),_(8,"mat-icon",66),C(9,"contact_support"),v(),C(10),v()()}if(2&t){const e=n.$implicit;x(),E("@scrollUp",void 0),x(),Ze(" ",e.name," "),x(),E("@fadeInDelayed",void 0),x(),Ze(" Life: ",e.rules.maxHitPoints," "),x(3),Ze(", Free hints: ",e.rules.freeHints," "),x(3),Ze(", Points per letter: ",e.rules.pointsPerGuessedLetter," ")}}function ARe(t,n){if(1&t){const e=Se();_(0,"div",50),xe(1,"img",51)(2,"img",59),_(3,"p",53)(4,"b"),C(5,"Choose the game difficulty"),v()(),q(6,IRe,11,6,"div",60),_(7,"div",61),H("click",function(){return j(e),G(P(2).backToMenu())}),C(8," Back "),v()()}if(2&t){const e=P(2);x(2),E("@popIn",void 0),x(4),E("ngForOf",e.difficultyLevels),x(),E("@scrollUp",void 0)}}function MRe(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"),C(6,"check"),v(),C(7,"Click the keys on the screen to guess the letters of the term "),_(8,"mat-icon",70),C(9,"keyboard"),v()(),_(10,"li",69)(11,"mat-icon"),C(12,"check"),v(),C(13,"You have three to five lives, depending on your difficulty level "),_(14,"span",71)(15,"mat-icon"),C(16,"favorite"),v(),_(17,"mat-icon"),C(18,"favorite"),v(),_(19,"mat-icon"),C(20,"favorite"),v()()(),_(21,"li",69)(22,"mat-icon"),C(23,"check"),v(),C(24,"You will loose one life with each wrong guess "),_(25,"mat-icon",71),C(26,"favorite_border"),v()(),_(27,"li",69)(28,"mat-icon"),C(29,"check"),v(),C(30,"You earn points for each correct guess "),_(31,"mat-icon",70),C(32,"plus_one"),v()(),_(33,"li",69)(34,"mat-icon"),C(35,"check"),v(),C(36,"In Easy mode you get 2 hints for free, and in Medium mode you get one \u{1f4a1} "),v(),_(37,"li",69)(38,"mat-icon"),C(39,"check"),v(),C(40,"You can reveal more hints, but each hint it will cost one life "),_(41,"mat-icon",71),C(42,"favorite_border"),v()(),_(43,"li",69)(44,"mat-icon"),C(45,"check"),v(),C(46,"If you guess the whole term you can recover one life"),_(47,"mat-icon",71),C(48,"favorite"),v()(),_(49,"li",69)(50,"mat-icon"),C(51,"check"),v(),C(52,"Keep guessing terms to increase your score and earn trophies "),_(53,"mat-icon",72),C(54,"emoji_events"),v()()(),_(55,"div",73),H("click",function(){return j(e),G(P(2).hideInstructionsPanel())}),C(56," Back "),v()()}2&t&&(x(2),E("@popIn",void 0),x(53),E("@scrollUp",void 0))}function RRe(t,n){1&t&&(_(0,"div",74),xe(1,"img",75),v()),2&t&&(x(),E("@popIn",void 0))}function PRe(t,n){if(1&t&&(_(0,"div"),C(1),v()),2&t){const e=P(2).ngIf,i=P();x(),Ze(" Trophy: ",i.getMaxTrophyObtained(e.score)," ")}}function FRe(t,n){if(1&t&&(_(0,"div")(1,"mat-icon",83),C(2,"grade"),v(),C(3," \xa0\xa0 "),_(4,"mat-icon",83),C(5,"emoji_events"),v(),C(6," \xa0 "),_(7,"mat-icon",83),C(8,"grade"),v()()),2&t){const e=P(2).ngIf,i=P();x(),E("ngClass",Ea(3,uQ,i.getMaxTrophyObtained(e.score).toLocaleLowerCase())),x(3),E("ngClass",Ea(5,uRe,i.getMaxTrophyObtained(e.score).toLocaleLowerCase())),x(3),E("ngClass",Ea(7,uQ,i.getMaxTrophyObtained(e.score).toLocaleLowerCase()))}}function ORe(t,n){if(1&t){const e=Se();_(0,"div",50),xe(1,"img",51)(2,"img",76),_(3,"div",77)(4,"div"),C(5," The term was: "),v(),_(6,"div",78),C(7),v(),_(8,"div",79),C(9),v(),_(10,"div",80),C(11),yo(12,"elapsedTime"),v(),q(13,PRe,2,1,"div",5),v(),q(14,FRe,9,9,"div",5),_(15,"div",81),H("click",function(){j(e);const r=P(2);return r.loadMenu(),G(r.chooseDifficultyLevel())}),C(16," New game "),v(),_(17,"div",81),H("click",function(){return j(e),G(P(2).openScoreboard())}),C(18," High Scores "),v(),_(19,"div",82),H("click",function(){return j(e),G(P(2).loadMenu())}),C(20," Main menu "),v()()}if(2&t){const e=P().ngIf,i=P();x(2),E("@popIn",void 0),x(5),Ze(" ",e.term,""),x(2),Iu("",e.round," ",1==e.round?"round":"rounds",""),x(2),s_(" Final Score: ",e.score," points - Difficulty: ",e.difficultyLevel," - Time: ",oc(12,12,e.endTimestamp-e.startTimestamp)," "),x(2),E("ngIf",i.getMaxTrophyObtained(e.score)),x(),E("ngIf",i.getMaxTrophyObtained(e.score)),x(),E("@scrollUp",void 0),x(2),E("@scrollUp",void 0),x(2),E("@scrollUp",void 0)}}function NRe(t,n){if(1&t&&(_(0,"span"),C(1),v()),2&t){const e=P(2).ngIf;x(),Ze("\u2192 Bonus: ",e.livesBonus,"")}}function LRe(t,n){if(1&t&&(_(0,"span"),C(1),v()),2&t){const e=P(2).ngIf;x(),Ze("\u2192 Bonus: ",e.difficultyBonus,"")}}function VRe(t,n){if(1&t&&(_(0,"span"),C(1),v()),2&t){const e=P(2).ngIf;x(),Ze("\u2192 Bonus: ",e.timeBonus,"")}}function BRe(t,n){if(1&t){const e=Se();_(0,"div",90)(1,"p",91),C(2,"This is a High Score! Save a message to the public leaderboard!"),v(),_(3,"div",92)(4,"input",93),Ur("ngModelChange",function(r){j(e);const o=P(3);return to(o.messageForLeaderboard,r)||(o.messageForLeaderboard=r),G(r)}),v(),_(5,"div",94),H("click",function(){j(e);const r=P(2).ngIf;return G(P().saveScore(r))}),C(6," Save "),v()(),_(7,"p",95),C(8,"No personal information is recorded"),v()()}if(2&t){const e=P(3);x(4),Br("ngModel",e.messageForLeaderboard)}}function URe(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),C(5,"grade"),v(),_(6,"mat-icon",86),C(7,"emoji_events"),v(),_(8,"mat-icon",86),C(9,"grade"),v()(),_(10,"div",87),C(11),q(12,NRe,2,1,"span",5),v(),_(13,"div",87),C(14),q(15,LRe,2,1,"span",5),v(),_(16,"div",87),C(17),yo(18,"elapsedTime"),q(19,VRe,2,1,"span",5),v(),_(20,"div",88),C(21),v(),q(22,BRe,9,1,"div",89),_(23,"div",81),H("click",function(){j(e);const r=P(2);return r.loadMenu(),G(r.chooseDifficultyLevel())}),C(24," New game "),v(),_(25,"div",81),H("click",function(){return j(e),G(P(2).openScoreboard())}),C(26," High Scores "),v(),_(27,"div",82),H("click",function(){return j(e),G(P(2).loadMenu())}),C(28," Main menu "),v()()}if(2&t){const e=P().ngIf,i=P();x(2),E("@popIn",void 0),x(9),Ze("Lives left: ",e.hitPoints," "),x(),E("ngIf",e.livesBonus>0),x(2),Ze("Difficulty: ",e.difficultyLevel," "),x(),E("ngIf",e.difficultyBonus>0),x(2),Ze("Time: ",oc(18,12,e.endTimestamp-e.startTimestamp)," "),x(2),E("ngIf",e.timeBonus>0),x(2),Ze("Final score: ",e.score,""),x(),E("ngIf",i.highScore),x(),E("@scrollUp",void 0),x(2),E("@scrollUp",void 0),x(2),E("@scrollUp",void 0)}}function zRe(t,n){if(1&t&&(_(0,"div",3),q(1,hRe,5,1,"div",4)(2,SRe,33,20,"div",5)(3,DRe,40,5,"div",6)(4,ARe,9,3,"div",6)(5,MRe,57,2,"div",6)(6,RRe,2,1,"div",7)(7,ORe,21,14,"div",6)(8,URe,29,14,"div",6),v()),2&t){const e=n.ngIf,i=P();x(),E("ngIf",i.loadingAssets),x(),E("ngIf",("playing"==e.state||"choosingTerm"==e.state)&&!i.loadingAssets),x(),E("ngIf","menu"===e.state&&!i.chooseDifficulty&&!i.showInstructions&&!i.loadingAssets),x(),E("ngIf","menu"===e.state&&i.chooseDifficulty&&!i.showInstructions&&!i.loadingAssets),x(),E("ngIf",i.showInstructions),x(),E("ngIf",i.termGuessed),x(),E("ngIf","gameOver"===e.state),x(),E("ngIf","won"==e.state)}}let HRe=(()=>{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 OTe(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=X_(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:Ii.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(tRe),w(nRe),w(io),w(cQ),w(hs))};static#t=this.\u0275cmp=$e({type:t,selectors:[["app-snoguess-main"]],viewQuery:function(i,r){if(1&i&&vt(lRe,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,zRe,9,8,"div",1),yo(1,"async"),_(2,"div",2),C(3),yo(4,"date"),v(),xe(5,"app-add-to-home")),2&i&&(E("ngIf",oc(1,2,r.game)),x(3),Ze(" Copyright \xa9 ",Au(4,4,r.currentYear,"yyyy")," SNOMED International\n"))},dependencies:[Sa,Ko,zr,Eo,To,ZH,ia,ms,Vs,oRe,cRe,RD,Ou,lQ],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",[Kt("normal => shake",qt(200,Im([We({transform:"translateX(0)"}),We({transform:"translateX(-10px)"}),We({transform:"translateX(10px)"}),We({transform:"translateX(0)"})])))]),Yn("popIn",[Kt(":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",[Kt(":enter",[We({transform:"translateY(100%)",opacity:0}),qt("0.5s ease-out",We({transform:"translateY(0)",opacity:1}))])]),Yn("fadeInDelayed",[Kt(":enter",[We({opacity:0}),qt("1s 0.5s ease-out",We({opacity:1}))])])]}})}return t})();const jRe=()=>({});function $Re(t,n){if(1&t){const e=Se();_(0,"li")(1,"a",11),H("click",function(){const r=j(e).$implicit;return G(P().findingWithExplicitContextSelected(r))}),C(2),v()()}if(2&t){const e=n.$implicit;x(2),nt(e.display)}}function GRe(t,n){1&t&&(_(0,"th",20),C(1," Type "),v())}function WRe(t,n){if(1&t&&(_(0,"td",21),C(1),v()),2&t){const e=n.$implicit;x(),Ze(" ",e.type.display," ")}}function qRe(t,n){1&t&&(_(0,"th",20),C(1," Target "),v())}function QRe(t,n){if(1&t&&(_(0,"td",21),C(1),v()),2&t){const e=n.$implicit;x(),Ze(" ",e.target.code," ")}}function KRe(t,n){1&t&&(_(0,"th",20),C(1," Target "),v())}function XRe(t,n){if(1&t&&(_(0,"td",21),C(1),v()),2&t){const e=n.$implicit;x(),Ze(" ",e.target.display," ")}}function YRe(t,n){1&t&&xe(0,"tr",22)}function ZRe(t,n){1&t&&xe(0,"tr",23)}function JRe(t,n){if(1&t&&(_(0,"div",4)(1,"h3"),C(2),v(),_(3,"table",12),Gt(4,13),q(5,GRe,2,0,"th",14)(6,WRe,2,1,"td",15),Wt(),Gt(7,16),q(8,qRe,2,0,"th",14)(9,QRe,2,1,"td",15),Wt(),Gt(10,17),q(11,KRe,2,0,"th",14)(12,XRe,2,1,"td",15),Wt(),q(13,YRe,1,0,"tr",18)(14,ZRe,1,0,"tr",19),v()()),2&t){const e=P();x(2),Ze("Relevant attributes (",e.selectedSituation.display,")"),x(),E("dataSource",e.dataSource),x(10),E("matHeaderRowDef",e.displayedColumns),x(),E("matRowDefColumns",e.displayedColumns)}}function ePe(t,n){if(1&t&&(_(0,"div",4)(1,"h3"),C(2,"Resource Type"),v(),_(3,"a",24)(4,"span"),C(5),v(),_(6,"mat-icon"),C(7,"open_in_new"),v()()()),2&t){const e=P();x(3),E("href","https://hl7.org/fhir/R4/"+e.resourceType+".html",yy),x(2),Ze("FHIR R4 ",e.resourceType,"")}}function tPe(t,n){if(1&t){const e=Se();_(0,"div",25)(1,"button",26),H("click",function(){j(e);const r=P();return G(r.saveOutput(r.fhirRepresentationString))}),xe(2,"mat-icon",27),v(),_(3,"button",28),H("click",function(){j(e);const r=P();return G(r.copyOutputToClipboard(r.fhirRepresentationString))}),xe(4,"mat-icon",29),v()()}}let nPe=(()=>{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 ko(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 ko(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),b=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&&b?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(io),w(J2))};static#t=this.\u0275cmp=$e({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"),C(2,"Consistent Context Representation for Situations with Explicit Context"),v(),_(3,"div",1)(4,"div",2)(5,"app-autocomplete-binding",3),H("selectionChange",function(s){return r.findingWithExplicitContextSelected(s)}),v(),_(6,"h3",4),C(7,"Examples"),v(),_(8,"ul"),q(9,$Re,3,1,"li",5),v(),q(10,JRe,15,4,"div",6)(11,ePe,8,2,"div",6),v(),_(12,"div",7)(13,"div",8),q(14,tPe,5,0,"div",9),_(15,"textarea",10),C(16," "),v()()()()()),2&i&&(x(5),E("binding",r.situationsBinding),x(4),E("ngForOf",r.examples),x(),E("ngIf",null==r.selectedSituation?null:r.selectedSituation.display),x(),E("ngIf",r.resourceType),x(3),E("ngIf",r.fhirRepresentationString.length>15),x(),E("options",Fs(8,jRe))("lang","json")("innerHTML",r.fhirRepresentationString,yu))},dependencies:[Ko,zr,l1,na,To,pd,fl,gd,ml,hl,_d,pl,gl,bd,vd,Ju,d0],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})(),iPe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=$e({type:t,selectors:[["app-context-main"]],decls:1,vars:0,template:function(i,r){1&i&&xe(0,"app-situation-map")},dependencies:[nPe]})}return t})();var rPe=ho(867),oPe=ho.n(rPe);let sPe=(()=>{class t{constructor(){this.filter=new(oPe())}transform(e){return e&&this.filter.clean(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275pipe=fo({name:"safeText",type:t,pure:!0})}return t})();function aPe(t,n){1&t&&xe(0,"mat-spinner",8)}function cPe(t,n){1&t&&(_(0,"th",20),C(1," Message "),v())}function lPe(t,n){if(1&t&&(_(0,"td",21),C(1),yo(2,"safeText"),v()),2&t){const e=n.$implicit;x(),Ze(" ",oc(2,1,e.message)," ")}}function dPe(t,n){1&t&&(_(0,"th",20),C(1," Score "),v())}function uPe(t,n){if(1&t&&(_(0,"td",21),C(1),v()),2&t){const e=n.$implicit;x(),Ze(" ",e.score," ")}}function hPe(t,n){1&t&&(_(0,"th",20),C(1," Rounds "),v())}function fPe(t,n){if(1&t&&(_(0,"td",21),C(1),v()),2&t){const e=n.$implicit;x(),Ze(" ",e.numberOfRounds," ")}}function mPe(t,n){1&t&&(_(0,"th",20),C(1," Difficulty "),v())}function pPe(t,n){if(1&t&&(_(0,"td",21),C(1),v()),2&t){const e=n.$implicit;x(),Ze(" ",e.difficulty," ")}}function gPe(t,n){1&t&&(_(0,"th",20),C(1," Time Played "),v())}function _Pe(t,n){if(1&t&&(_(0,"td",21),C(1),yo(2,"elapsedTime"),v()),2&t){const e=n.$implicit;x(),Ze(" ",oc(2,1,e.elapsed)," ")}}function bPe(t,n){1&t&&(_(0,"th",20),C(1," Date "),v())}function vPe(t,n){if(1&t&&(_(0,"td",21),C(1),yo(2,"date"),v()),2&t){const e=n.$implicit;x(),Ze(" ",Au(2,1,e.date,"short")," ")}}function yPe(t,n){1&t&&xe(0,"tr",22)}function xPe(t,n){1&t&&xe(0,"tr",23)}function wPe(t,n){if(1&t&&(_(0,"div")(1,"table",9),Gt(2,10),q(3,cPe,2,0,"th",11)(4,lPe,3,3,"td",12),Wt(),Gt(5,13),q(6,dPe,2,0,"th",11)(7,uPe,2,1,"td",12),Wt(),Gt(8,14),q(9,hPe,2,0,"th",11)(10,fPe,2,1,"td",12),Wt(),Gt(11,15),q(12,mPe,2,0,"th",11)(13,pPe,2,1,"td",12),Wt(),Gt(14,16),q(15,gPe,2,0,"th",11)(16,_Pe,3,3,"td",12),Wt(),Gt(17,17),q(18,bPe,2,0,"th",11)(19,vPe,3,4,"td",12),Wt(),q(20,yPe,1,0,"tr",18)(21,xPe,1,0,"tr",19),v()()),2&t){const e=P();x(),E("dataSource",e.dataSource),x(19),E("matHeaderRowDef",e.displayedColumns),x(),E("matRowDefColumns",e.displayedColumns)}}const kPe=[{path:"",component:eH},{path:"allergies",component:eH},{path:"sandbox",component:rCe},{path:"prescription",component:oCe},{path:"questionnaires",component:cTe},{path:"implementation-course/subset-validator",component:FTe},{path:"snoguess",component:HRe},{path:"snoguess/scoreboard",component:(()=>{class t{constructor(e,i){this.firebaseService=e,this.router=i,this.displayedColumns=["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(cQ),w(hs))};static#t=this.\u0275cmp=$e({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","message"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["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",""],["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"),C(5,"Messages posted by playes who reached the Diamond trophy"),v(),_(6,"mat-icon",4),C(7,"emoji_events"),v()(),q(8,aPe,1,0,"mat-spinner",5)(9,wPe,22,3,"div",6),_(10,"div",7),H("click",function(){return r.backToGame()}),C(11," Back to game "),v()()),2&i&&(x(2),E("@popIn",void 0),x(6),E("ngIf",r.loadingScores),x(),E("ngIf",!r.loadingScores),x(),E("@scrollUp",void 0))},dependencies:[zr,To,md,pd,fl,gd,ml,hl,_d,pl,gl,bd,vd,Ou,lQ,sPe],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",[Kt("normal => shake",qt(200,Im([We({transform:"translateX(0)"}),We({transform:"translateX(-10px)"}),We({transform:"translateX(10px)"}),We({transform:"translateX(0)"})])))]),Yn("popIn",[Kt(":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",[Kt(":enter",[We({transform:"translateY(100%)",opacity:0}),qt("0.5s ease-out",We({transform:"translateY(0)",opacity:1}))])]),Yn("fadeInDelayed",[Kt(":enter",[We({opacity:0}),qt("1s 0.5s ease-out",We({opacity:1}))])])]}})}return t})()},{path:"context",component:iPe},{path:"**",redirectTo:""}];let CPe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({imports:[EU.forRoot(kPe,{useHash:!0}),EU]})}return t})();const EPe=[{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 TPe=(()=>{class t{constructor(){}getCodingSpec(){return EPe}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 Yt,Db={version:"0.19.3"},Mr=1200,Sh=1252,SPe=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],jP={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},Wk=function(t){-1!=SPe.indexOf(t)&&(Sh=jP[0]=t)},aa=function(t){Mr=t,Wk(t)};var Ib=function(n){return String.fromCharCode(n)},$P=function(n){return String.fromCharCode(n)},nr=null,ca="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Kk(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+=ca.charAt(o)+ca.charAt(s)+ca.charAt(a)+ca.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=ca.indexOf(t.charAt(l++)))&&(n+=String.fromCharCode((15&s)<<4|a>>2)),64!==(c=ca.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}(),Tc=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(){}}(),Ab=function(){if(typeof Buffer>"u")return!1;var t=Tc([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 pQ(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?Tc(n,"binary"):n.split("").map(function(e){return 255&e.charCodeAt(0)})};function Mb(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 WP(t,n){var e=""+t;return e.length>=n?e:Rn(" ",n-e.length)+e}function Xk(t,n){var e=""+t;return e.length>=n?e:e+Rn(" ",n-e.length)}var gQ=Math.pow(2,32);function Bp(t,n){return t>gQ||t<-gQ?function FPe(t,n){var e=""+Math.round(t);return e.length>=n?e:Rn("0",n-e.length)+e}(t,n):function OPe(t,n){var e=""+t;return e.length>=n?e:Rn("0",n-e.length)+e}(Math.round(t),n)}function Yk(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 _Q=[["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"]],Tt={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 "'},bQ={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},LPe={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 Zk(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 jPe(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 vQ=new Date(1899,11,31,0,0,0),VPe=vQ.getTime(),BPe=new Date(1900,2,1,0,0,0);function yQ(t,n){var e=t.getTime();return n?e-=1262304e5:t>=BPe&&(e+=864e5),(e-(VPe+6e4*(t.getTimezoneOffset()-vQ.getTimezoneOffset())))/864e5}function QP(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 Pb(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 zPe(t){var n=t<0?12:11,e=QP(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 HPe(t){var n=QP(t.toFixed(11));return n.length>(t<0?12:11)||"0"===n||"-0"===n?t.toPrecision(6):n}(t),QP(function UPe(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 bs(14,yQ(t,n&&n.date1904),n)}throw new Error("unsupported value in General format: "+t)}function $Pe(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 _Q[e.q][0];default:return _Q[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 Tl(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 xQ=/%/g;function wQ(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"-"+wQ(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 kQ=/# (\?+)( ?)\/( ?)(\d+)/,CQ=/^#*0*\.([0#]+)/,EQ=/\).*[0#]/,TQ=/\(###\) ###\\?-####/;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 SQ(t,n){var e=Math.pow(10,n);return""+Math.round(t*e)/e}function DQ(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 la(t,n,e){if(40===t.charCodeAt(0)&&!n.match(EQ)){var i=n.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return e>=0?la("n",i,e):"("+la("n",i,-e)+")"}if(44===n.charCodeAt(n.length-1))return function WPe(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 GPe(t,n,e){var i=n.replace(xQ,""),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 wQ(n,e);if(36===n.charCodeAt(0))return"$"+la(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+Bp(c,n.length);if(n.match(/^[#?]+$/))return"0"===(r=Bp(e,0))&&(r=""),r.length>n.length?r:ts(n.substr(0,n.length-r.length))+r;if(o=n.match(kQ))return function qPe(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):WP(s,t[1].length)+t[2]+"/"+t[3]+Va(a,t[4].length))}(o,c,l);if(n.match(/^#+0+$/))return l+Bp(c,n.length-n.indexOf("0"));if(o=n.match(CQ))return r=SQ(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+SQ(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+Tl(Bp(c,0));if(o=n.match(/^#,##0\.([#0]*0)$/))return e<0?"-"+la(t,n,-e):Tl(""+(Math.floor(e)+function KPe(t,n){return n<(""+Math.round((t-Math.floor(t))*Math.pow(10,n))).length?1:0}(e,o[1].length)))+"."+Va(DQ(e,o[1].length),o[1].length);if(o=n.match(/^#,#*,#0/))return la(t,n.replace(/^#,#*,/,""),e);if(o=n.match(/^([0#]+)(\\?-([0#]+))+$/))return r=Vp(la(t,n.replace(/[\\-]/g,""),e)),s=0,Vp(Vp(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 la(t,"#,##0.00",e);case"###,###":case"##,###":case"#,###":var f=Tl(Bp(c,0));return"0"!==f?l+f:"";case"###,###.00":return la(t,"###,##0.00",e).replace(/^0\./,".");case"#,###.00":return la(t,"#,##0.00",e).replace(/^0\./,".")}throw new Error("unsupported format |"+n+"|")}function IQ(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"-"+IQ(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 YPe(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 ZPe(t,n,e){var i=n.replace(xQ,""),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 IQ(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(kQ))return function QPe(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(CQ))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+Tl(""+c);if(o=n.match(/^#,##0\.([#0]*0)$/))return e<0?"-"+Dc(t,n,-e):Tl(""+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=Vp(Dc(t,n.replace(/[\\-]/g,""),e)),s=0,Vp(Vp(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 MQ=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function RQ(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 bs(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:Tt)[t])&&(i=e.table&&e.table[bQ[t]]||Tt[bQ[t]]),null==i&&(i=LPe[t]||"General")}if(Yk(i,0))return Dh(n,e);n instanceof Date&&(n=yQ(n,e.date1904));var r=function tFe(t,n){var e=function JPe(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(MQ),a=e[1].match(MQ);return RQ(n,s)?[i,e[0]]:RQ(n,a)?[i,e[1]]:[i,e[null!=s&&null!=a?2:1]]}return[i,o]}(i,n);if(Yk(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 eFe(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 y,p=0,b=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":(y=r[s].v.match(/\.0+$/))&&(b=Math.max(b,y[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,k="";for(s=0;s0){40==k.charCodeAt(0)?(A=n<0&&45===k.charCodeAt(0)?-n:n,T=Sl("n",k,A)):(T=Sl("n",k,A=n<0&&i>1?-n:n),A<0&&r[0]&&"t"==r[0].t&&(T=T.substr(1),r[0].v="-"+r[0].v)),D=T.length-1;var V=r.length;for(s=0;s-1){V=s;break}var B=r.length;if(V===r.length&&-1===T.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=T.substr(1+(D-=r[s].v.length),r[s].v.length):D<0?r[s].v="":(r[s].v=T.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,U=r[s].v.substr(d+1);d>=0;--d)D>=0&&("0"===r[s].v.charAt(d)||"#"===r[s].v.charAt(d))&&(U=T.charAt(D--)+U);r[s].v=U,r[s].t="t",B=s}for(D>=0&&B-1&&s===V?r[s].v.indexOf(".")+1:0,U=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 KP(t,n){if("number"!=typeof n){n=+n||-1;for(var e=0;e<392;++e)if(null!=Tt[e]){if(Tt[e]==t){n=e;break}}else n<0&&(n=e);n<0&&(n=391)}return Tt[n]=t,n}function Fb(t){for(var n=0;392!=n;++n)void 0!==t[n]&&KP(t[n],n)}function Up(){Tt=function NPe(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 FQ=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g,oFe={"d.m":"d\\.m"};function Yd(t,n){return KP(oFe[t]||t,n)}var Dl,OQ=function(){var t={version:"1.2.0"},e=function n(){for(var T=0,V=new Array(256),B=0;256!=B;++B)V[B]=T=1&(T=1&(T=1&(T=1&(T=1&(T=1&(T=1&(T=1&(T=B)?-306674912^T>>>1:T>>>1)?-306674912^T>>>1:T>>>1)?-306674912^T>>>1:T>>>1)?-306674912^T>>>1:T>>>1)?-306674912^T>>>1:T>>>1)?-306674912^T>>>1:T>>>1)?-306674912^T>>>1:T>>>1)?-306674912^T>>>1:T>>>1;return typeof Int32Array<"u"?new Int32Array(V):V}(),r=function i(T){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]=T[X];for(X=0;256!=X;++X)for(B=T[X],V=256+X;V<4096;V+=256)B=ne[V]=B>>>8^T[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],b=r[12],y=r[13],k=r[14];return t.table=e,t.bstr=function D(T,V){for(var B=~V,X=0,ne=T.length;X>>8^e[255&(B^T.charCodeAt(X++))];return~B},t.buf=function U(T,V){for(var B=~V,X=T.length-15,ne=0;ne>8&255]^b[T[ne++]^B>>16&255]^p[T[ne++]^B>>>24]^g[T[ne++]]^m[T[ne++]]^f[T[ne++]]^h[T[ne++]]^u[T[ne++]]^d[T[ne++]]^l[T[ne++]]^c[T[ne++]]^a[T[ne++]]^s[T[ne++]]^o[T[ne++]]^e[T[ne++]];for(X+=15;ne>>8^e[255&(B^T[ne++])];return~B},t.str=function A(T,V){for(var B=~V,X=0,ne=T.length,Q=0,Ce=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),Ce=1023&T.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|Ce>>6&15|(3&Q)<<4))])>>>8^e[255&(B^(128|63&Ce))]):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}(),xt=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 R=O.getFullYear()-1980;R=(R=R<<4|O.getMonth()+1)<<5|O.getDate(),S.write_shift(2,R)}function a(S){Pr(S,0);for(var O={},I=0;S.l<=S.length-4;){var R=S.read_shift(2),N=S.read_shift(2),L=S.l+N,re={};switch(R){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[R]=re}return O}function l(){return c||(c=Dl)}function d(S,O){if(80==S[0]&&75==S[1])return TZ(S,O);if(109==(32|S[0])&&105==(32|S[1]))return function eHe(S,O){if("mime-version:"!=pe(S.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var I=O&&O.root||"",R=(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=(R[1]||"").match(/boundary="(.*?)"/);if(!re)throw new Error("MAD cannot find boundary");var _e="--"+(re[1]||""),se={FileIndex:[],FullPaths:[]};T(se);var Oe,Ve=0;for(N=0;N=N&&(Ve-=N),!re[Ve]){ie=[];var je=[];for(Oe=Ve;Oe>=0;){je[Oe]=!0,re[Oe]=!0,_e[_e.length]=Oe,ie.push(S[Oe]);var Fe=I[Math.floor(4*Oe/R)];if(R<4+(dt=4*Oe&oe))throw new Error("FAT boundary crossed: "+Oe+" 4 "+R);if(!S[Fe]||je[Oe=Mh(S[Fe],dt)])break}L[Ve]={nodes:_e,data:iK([ie])}}return L}(Ht,re,oe,R);re0&&_e!==Ce&&(xi[_e].name="!MiniFAT"),xi[oe[0]].name="!FAT",xi.fat_addrs=oe,xi.ssz=R;var vr=[],Ks=[],xv=[];(function k(S,O,I,R,N,L,re,_e){for(var dt,ie=0,oe=R.length?2:0,se=O[S].data,Oe=0,Ve=0;Oe0&&ie!==Ce&&(O[ie].name="!StreamData")):Fe.size>=4096?(Fe.storage="fat",void 0===O[Fe.start]&&(O[Fe.start]=b(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!==Ce&&Fe.start!==Ce&&O[ie]&&(Fe.content=g(Fe,O[ie].data,(O[_e]||{}).data))),Fe.content&&Pr(Fe.content,0),L[dt]=Fe,re.push(Fe)}})(re,xi,Ht,vr,N,{},Ks,_e),function m(S,O,I){for(var R=0,N=0,L=0,re=0,_e=0,ie=I.length,oe=[],se=[];R0&&re>=0;)L.push(O.slice(re*Q,re*Q+Q)),N-=Q,re=Mh(I,4*re);return 0===L.length?ue(0):fr(L).slice(0,S.size)}function p(S,O,I,R,N){var L=Ce;if(S===Ce){if(0!==O)throw new Error("DIFAT chain shorter than expected")}else if(-1!==S){var re=I[S],_e=(R>>>2)-1;if(!re)return;for(var ie=0;ie<_e&&(L=Mh(re,4*ie))!==Ce;++ie)N.push(L);O>=1&&p(Mh(re,R-4),O-1,I,R,N)}}function b(S,O,I,R,N){var L=[],re=[];N||(N=[]);var _e=R-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/R)];if(R<4+(oe=4*ie&_e))throw new Error("FAT boundary crossed: "+ie+" 4 "+R);if(!S[se])break;ie=Mh(S[se],oe)}return{nodes:L,data:iK([re])}}function D(S,O){return new Date(1e3*(Kr(S,O+4)/1e7*Math.pow(2,32)+Kr(S,O)/1e7-11644473600))}function T(S,O){var I=O||{},R=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]=R+"/",S.FileIndex[0]={name:R,type:5}),I.CLSID&&(S.FileIndex[0].clsid=I.CLSID),function V(S){var O="\x01Sh33tJ5";if(!xt.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){T(S);for(var I=!1,R=!1,N=S.FullPaths.length-1;N>=0;--N){var L=S.FileIndex[N];switch(L.type){case 0:R?I=!0:(S.FileIndex.pop(),S.FullPaths.pop());break;case 1:case 2:case 5:R=!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 tHe(S,O){for(var I=O||{},R=I.boundary||"SheetJS",N=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(R="------="+R).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(R),N.push("Content-Location: "+(I.root||"file:///C:/SheetJS/")+re),N.push("Content-Transfer-Encoding: "+(Fe?"quoted-printable":"base64")),N.push("Content-Type: "+K7e(_e,re)),N.push(""),N.push(Fe?Y7e(se):X7e(se))}return N.push(R+"--\r\n"),N.join("\r\n")}(S,I);if("zip"===(B(S),I.fileType))return function Q7e(S,O){var I=O||{},R=[],N=[],L=ue(1),re=I.compression?8:0,_e=0,oe=0,se=0,Oe=0,Ve=0,dt=S.FullPaths[0],je=dt,Fe=S.FileIndex[0],Ht=[],xi=0;for(oe=1;oe0&&(ws<4096?je+=ws+63>>6:Fe+=ws+511>>9)}}for(var vr=dt.FullPaths.length+3>>2,xv=je+127>>7,wv=(je+7>>3)+Fe+vr+xv,Xh=wv+127>>7,MO=Xh<=109?0:Math.ceil((Xh-109)/127);wv+Xh+MO+127>>7>Xh;)MO=++Xh<=109?0:Math.ceil((Xh-109)/127);var Ll=[1,MO,Xh,xv,vr,Fe,je,0];return dt.FileIndex[0].size=je<<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(R[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,R[2]),N.write_shift(4,R[0]+R[1]+R[2]+R[3]-1),N.write_shift(4,0),N.write_shift(4,4096),N.write_shift(4,R[3]?R[0]+R[1]+R[2]-1:Ce),N.write_shift(4,R[3]),N.write_shift(-4,R[1]?R[0]-1:Ce),N.write_shift(4,R[1]),L=0;L<109;++L)N.write_shift(-4,L>9));for(_e(R[6]+7>>3);511&N.l;)N.write_shift(-4,J.ENDOFCHAIN);for(re=L=0,ie=0;ie=4096)&&(se.start=re,_e(oe+63>>6));for(;511&N.l;)N.write_shift(-4,J.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=He[255&S];return O<=8?I>>>8-O:(I=I<<8|He[S>>8&255],O<=16?I>>>16-O:(I=I<<8|He[S>>16&255])>>>24-O)}function Mt(S,O){var I=7&O,R=O>>>3;return(S[R]|(I<=6?0:S[R+1]<<8))>>>I&3}function En(S,O){var I=7&O,R=O>>>3;return(S[R]|(I<=5?0:S[R+1]<<8))>>>I&7}function un(S,O){var I=7&O,R=O>>>3;return(S[R]|(I<=3?0:S[R+1]<<8))>>>I&31}function Fi(S,O){var I=7&O,R=O>>>3;return(S[R]|(I<=1?0:S[R+1]<<8))>>>I&127}function Ln(S,O,I){var R=7&O,N=O>>>3,re=S[N]>>>R;return I<8-R||(re|=S[N+1]<<8-R,I<16-R)||(re|=S[N+2]<<16-R,I<24-R)||(re|=S[N+3]<<24-R),re&(1<>>3;return R<=5?S[N]|=(7&I)<>8-R),O+3}function Ye(S,O,I){return S[O>>>3]|=I=(1&I)<<(7&O),O+1}function zo(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,R=2*I>O?2*I:O+5,N=0;if(I>=O)return S;if(on){var L=pQ(R);if(S.copy)S.copy(L);else for(;N>R-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 je=_e[se],Fe=-1,Ht=0;if((Fe=Oe[dt=32767&(dt<<5^je)])&&((Fe|=-32768&se)>se&&(Fe-=32768),Fe2){(je=N[Ht])<=22?oe=zo(ie,oe,He[je+1]>>1)-1:(zo(ie,oe,3),zo(ie,oe+=5,He[je-23]>>5),oe+=3);var xi=je<8?0:je-4>>2;xi>0&&(Pn(ie,oe,Ht-K[je]),oe+=xi),oe=zo(ie,oe,He[je=O[se-Fe]]>>3),oe-=3;var ws=je<4?0:je-2>>1;ws>0&&(Pn(ie,oe,se-Fe-z[je]),oe+=ws);for(var vr=0;vr>>3;return(S[R]|(I<=4?0:S[R+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-je;for(var Fe=(1<<7-je)-1;Fe>=0;--Fe)Lr[dt|Fe<>>=3){case 16:for(L=3+Mt(S,O),O+=2,dt=Ht[Ht.length-1];L-- >0;)Ht.push(dt);break;case 17:for(L=3+En(S,O),O+=3;L-- >0;)Ht.push(0);break;case 18:for(L=11+Fi(S,O),O+=7;L-- >0;)Ht.push(0);break;default:Ht.push(dt),ie>>0,_e=0,ie=0;!(1&R);)if(R=En(S,I),I+=3,R>>>1)for(R>>1==1?(_e=9,ie=5):(I=G7e(S,I),_e=Kh,ie=kZ);;){!O&&re>>1==1?au[se]:sr[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+=Ln(S,I,Ve),I+=Ve),se=Ln(S,I,ie),I+=15&(Oe=R>>>1==1?yv[se]:ga[se]);var je=(Oe>>>=4)<4?0:Oe-2>>1,Fe=z[Oe];for(je>0&&(Fe+=Ln(S,I,je),I+=je),!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+=R[1],R[0]}function EZ(S,O){if(!S)throw new Error(O);typeof console<"u"&&console.error(O)}function TZ(S,O){var I=S;Pr(I,0);var L={FileIndex:[],FullPaths:[]};T(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 je=I.read_shift(4),Fe=a(I.slice(I.l+Oe,I.l+Oe+Ve));I.l+=Oe+Ve+dt;var Ht=I.l;I.l=je+4,Fe&&Fe[1]&&((Fe[1]||{}).usz&&(se=Fe[1].usz),(Fe[1]||{}).csz&&(oe=Fe[1].csz)),q7e(I,oe,se,L,Fe),I.l=Ht}return L}function q7e(S,O,I,R,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),R=new Date,N=31&I,L=15&(I>>>=5);I>>>=4,R.setMilliseconds(0),R.setFullYear(I+1980),R.setMonth(L-1),R.setDate(N);var re=31&O,_e=63&(O>>>=5);return R.setHours(O>>>=6),R.setMinutes(_e),R.setSeconds(re<<1),R}(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="",je=0;je"u")throw new Error("Unsupported");return new Uint8Array(t)}(t):t}function Ob(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=Mb(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([aFe(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 Ri(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==UQ.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&&Ab){if(255==t[0]&&254==t[1])return Ic(t.slice(2).toString("utf16le"));if(254==t[1]&&255==t[2])return Ic(function fQ(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==pFe.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?Tc(e):function PPe(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)),fr(n)}(e),xt.utils.cfb_add(t,n,i);xt.utils.cfb_add(t,n,e)}else t.file(n,e)}function YP(){return xt.utils.cfb_new()}var ir='\r\n',ZP=Jk({""":'"',"'":"'",">":">","<":"<","&":"&"}),JP=/[&<>'"]/g,wFe=/[\u0000-\u0008\u000b-\u001f\uFFFE-\uFFFF]/g;function tn(t){return(t+"").replace(JP,function(e){return ZP[e]}).replace(wFe,function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"})}function QQ(t){return tn(t).replace(/ /g,"_x0020_")}var KQ=/[\u0000-\u001f]/g;function iC(t){return(t+"").replace(JP,function(e){return ZP[e]}).replace(/\n/g,"
").replace(KQ,function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"})}function eF(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 YQ(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 ZQ(t){return Tc(t,"binary").toString("utf8")}var rC="foo bar baz\xe2\x98\x83\xf0\x9f\x8d\xa3",ni=on&&(ZQ(rC)==eF(rC)&&ZQ||YQ(rC)==eF(rC)&&YQ)||eF,Ic=on?function(t){return Tc(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("")},tK=/(^\s|\s$|\n)/;function uo(t,n){return"<"+t+(n.match(tK)?' xml:space="preserve"':"")+">"+n+""}function Vb(t){return Ri(t).map(function(n){return" "+n+'="'+t[n]+'"'}).join("")}function Ne(t,n,e){return"<"+t+(null!=e?Vb(e):"")+(null!=n?(n.match(tK)?' xml:space="preserve"':"")+">"+n+""}function tF(t,n){try{return t.toISOString().replace(/\.\d*/,"")}catch(e){if(n)throw e}return""}var Rr={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"},nK=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:Tc(n)})):nK(t)}:nK,rK=function(t,n,e){for(var i=[],r=n;r0?Hp(t,n+4,n+4+e-1):""},nF=cK,lK=function(t,n){var e=Kr(t,n);return e>0?Hp(t,n+4,n+4+e-1):""},iF=lK,dK=function(t,n){var e=2*Kr(t,n);return e>0?Hp(t,n+4,n+4+e-1):""},rF=dK,uK=function(n,e){var i=Kr(n,e);return i>0?sC(n,e+4,e+4+i):""},oF=uK,hK=function(t,n){var e=Kr(t,n);return e>0?Hp(t,n+4,n+4+e):""},sF=hK,fK=function(t,n){return function IFe(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)},aC=fK,aF=function(n){return Array.isArray(n)||typeof Uint8Array<"u"&&n instanceof Uint8Array};on&&(nF=function(n,e){if(!Buffer.isBuffer(n))return cK(n,e);var i=n.readUInt32LE(e);return i>0?n.toString("utf8",e+4,e+4+i-1):""},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)||!Ab)return dK(n,e);var i=2*n.readUInt32LE(e);return n.toString("utf16le",e+4,e+4+i-1)},oF=function(n,e){if(!Buffer.isBuffer(n)||!Ab)return uK(n,e);var i=n.readUInt32LE(e);return n.toString("utf16le",e+4,e+4+i)},sF=function(n,e){if(!Buffer.isBuffer(n))return hK(n,e);var i=n.readUInt32LE(e);return n.toString("utf8",e+4,e+4+i)},aC=function(n,e){return Buffer.isBuffer(n)?n.readDoubleLE(e):fK(n,e)},aF=function(n){return Buffer.isBuffer(n)||Array.isArray(n)||typeof Uint8Array<"u"&&n instanceof Uint8Array}),typeof Yt<"u"&&function mK(){sC=function(t,n,e){return Yt.utils.decode(1200,t.slice(n,e)).replace(Po,"")},Hp=function(t,n,e){return Yt.utils.decode(65001,t.slice(n,e))},nF=function(t,n){var e=Kr(t,n);return e>0?Yt.utils.decode(Sh,t.slice(n+4,n+4+e-1)):""},iF=function(t,n){var e=Kr(t,n);return e>0?Yt.utils.decode(Mr,t.slice(n+4,n+4+e-1)):""},rF=function(t,n){var e=2*Kr(t,n);return e>0?Yt.utils.decode(1200,t.slice(n+4,n+4+e-1)):""},oF=function(t,n){var e=Kr(t,n);return e>0?Yt.utils.decode(1200,t.slice(n+4,n+4+e)):""},sF=function(t,n){var e=Kr(t,n);return e>0?Yt.utils.decode(65001,t.slice(n+4,n+4+e)):""}}();var jp=function(t,n){return t[n]},Il=function(t,n){return 256*t[n+1]+t[n]},MFe=function(t,n){var e=256*t[n+1]+t[n];return e<32768?e:-1*(65535-e+1)},Kr=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]},RFe=function(t,n){return t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3]};function Bb(t,n){var i,r,s,a,c,l,e="",o=[];switch(n){case"dbcs":if(l=this.l,on&&Buffer.isBuffer(this)&&Ab)e=this.slice(this.l,this.l+2*t).toString("utf16le");else for(c=0;c0?Mh:RFe)(this,this.l),this.l+=4,i);case 8:case-8:if("f"===n)return r=8==t?aC(this,this.l):aC([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=sK(this,this.l,t)}}return this.l+=t,e}var PFe=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},FFe=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},OFe=function(t,n,e){t[e]=255&n,t[e+1]=n>>>8&255};function NFe(t,n,e){var i=0,r=0;if("dbcs"===e){for(r=0;r!=n.length;++r)OFe(this,n.charCodeAt(r),this.l+2*r);i=2*n.length}else if("sbcs"===e||"cpstr"==e)if(typeof Yt<"u"&&874==Sh){for(r=0;r!=n.length;++r){var o=Yt.utils.encode(Sh,n.charAt(r));this[this.l+r]=o[0]}i=n.length}else if(typeof Yt<"u"&&"cpstr"==e){if((o=Yt.utils.encode(Mr,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,PFe(this,n,this.l);break;case 8:if(i=8,"f"===e){!function AFe(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,FFe(this,n,this.l)}}return this.l+=i,this}function pK(t,n){var e=sK(this,this.l,t.length>>1);if(e!==t)throw new Error(n+"Expected "+t+" saw "+e);this.l+=t.length>>1}function Pr(t,n){t.l=n,t.read_shift=Bb,t.chk=pK,t.write_shift=NFe}function Oo(t,n){t.l+=n}function ue(t){var n=Qd(t);return Pr(n,0),n}function ys(){var t=[],n=on?256:2048,e=function(l){var d=ue(l);return Pr(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&&aF(e)&&t.push(e)}}function Ub(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 gK(t,n,e){var i=ei(t);return i.s=Ub(i.s,n.s,e),i.e=Ub(i.e,n.s,e),i}function zb(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=ln(t);return!t.cRel&&null!=t.cRel&&(e=function BFe(t){return t.replace(/^([A-Z])/,"$$$1")}(e)),!t.rRel&&null!=t.rRel&&(e=function LFe(t){return t.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}(e)),e}function cF(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?zb(t.s,n.biff)+":"+zb(t.e,n.biff):(t.s.rRel?"":"$")+wn(t.s.r)+":"+(t.e.rRel?"":"$")+wn(t.e.r):(t.s.cRel?"":"$")+sn(t.s.c)+":"+(t.e.cRel?"":"$")+sn(t.e.c)}function lF(t){return parseInt(function VFe(t){return t.replace(/\$(\d+)$/,"$1")}(t),10)-1}function wn(t){return""+(t+1)}function dF(t){for(var n=function UFe(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 ln(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 Fr(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=ln(t)),"string"!=typeof n&&(n=ln(n)),t==n?t:t+":"+n)}function Hb(t){var n=Fr(t);return"$"+sn(n.s.c)+"$"+wn(n.s.r)+":$"+sn(n.e.c)+"$"+wn(n.e.r)}function jb(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 kn(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 _K(t,n){var e="d"==t.t&&n instanceof Date;if(null!=t.z)try{return t.w=bs(t.z,e?mr(n):n)}catch{}try{return t.w=bs((t.XF||{}).numFmtId||(e?14:0),e?mr(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 bK(t,n,e){var i=e||{},r=t?null!=t["!data"]:i.dense;null!=nr&&null==r&&(r=nr);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=kn(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]},b=a+g;if(l.s.r>f&&(l.s.r=f),l.s.c>b&&(l.s.c=b),l.e.r0&&n.write_shift(0,t,"dbcs"),e?n.slice(0,n.l):n}function jFe(t){return{ich:t.read_shift(2),ifnt:t.read_shift(2)}}function uF(t,n){var e=t.l,i=t.read_shift(1),r=No(t),o=[],s={t:r,h:r};if(1&i){for(var a=t.read_shift(4),c=0;c!=a;++c)o.push(jFe(t));s.r=o}else s.r=[{ich:0,ifnt:0}];return t.l=e+n,s}var WFe=uF;function ua(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 QFe=No,vK=Or;function hF(t){var n=t.read_shift(4);return 0===n||4294967295===n?"":t.read_shift(n,"dbcs")}function $b(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 KFe=No,fF=hF,mF=$b;function pF(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?aC([0,0,0,0,252&n[0],n[1],n[2],n[3]],0):Mh(n,0)>>2;return e?r/100:r}function yK(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 xK(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=xK,Gp=function XFe(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 Lo(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 cC(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 _F={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:{}},bF={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?"},vF={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},yF=["_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"],xF={"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"},hC={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 TK(t,n,e){var o,i=function lFe(t){for(var n=[],e=Ri(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}(xF),r=[];e||(r[r.length]=ir,r[r.length]=Ne("Types",null,{xmlns:Rr.CT,"xmlns:xsd":Rr.xsd,"xmlns:xsi":Rr.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:hC[l][n.bookType]||hC[l].xlsx}))},a=function(l){(t[l]||[]).forEach(function(d){r[r.length]=Ne("Override",null,{PartName:("/"==d[0]?"":"/")+d,ContentType:hC[l][n.bookType]||hC[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 Gb(t){var n=t.lastIndexOf("/");return t.slice(0,n+1)+"_rels/"+t.slice(n+1)+".rels"}function Wp(t){var n=[ir,Ne("Relationships",null,{xmlns:Rr.RELS})];return Ri(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 SK(t,n,e){return[' \n',' \n'," \n"].join("")}function mOe(t,n){return[' \n',' \n'," \n"].join("")}function DK(t,n){return'SheetJS '+Db.version+""}var ha=[["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 kF(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):uo(t,n))}function AK(t,n){var e=n||{},i=[ir,Ne("cp:coreProperties",null,{"xmlns:cp":Rr.CORE_PROPS,"xmlns:dc":Rr.dc,"xmlns:dcterms":Rr.dcterms,"xmlns:dcmitype":Rr.dcmitype,"xmlns:xsi":Rr.xsi})],r={};if(!t&&!e.Props)return i.join("");t&&(null!=t.CreatedDate&&kF("dcterms:created","string"==typeof t.CreatedDate?t.CreatedDate:tF(t.CreatedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},i,r),null!=t.ModifiedDate&&kF("dcterms:modified","string"==typeof t.ModifiedDate?t.ModifiedDate:tF(t.ModifiedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},i,r));for(var o=0;o!=ha.length;++o){var s=ha[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&&kF(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"]],MK=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function PK(t){var n=[],e=Ne;return t||(t={}),t.Application="SheetJS",n[n.length]=ir,n[n.length]=Ne("Properties",null,{xmlns:Rr.EXT_PROPS,"xmlns:vt":Rr.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 FK(t){var n=[ir,Ne("Properties",null,{xmlns:Rr.CUST_PROPS,"xmlns:vt":Rr.vt})];if(!t)return n.join("");var e=1;return Ri(t).forEach(function(r){++e,n[n.length]=Ne("property",function DFe(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",tF(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 CF={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 UK(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 kOe(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 fr([e,i])}var HK=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function AOe(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 jK(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||MK.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=UK(m.t,h)}else{var p=AOe(h);-1==p&&(p=31,h=String(h)),c=UK(p,h)}o.push(c),(l=ue(8)).write_shift(4,n?f:2+a),r.push(l),s+=8+c.length}var b=8*(o.length+1);for(a=0;a=12?2:1),r="sbcs-cont",o=Mr;e&&e.biff>=8&&(Mr=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 Mr=o,a}function OOe(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"),fr([i,r])}function QK(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 KK(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 pC(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 JK(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 DF(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 nNe(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 xNe(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 rX(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 qNe(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 fr([n,zOe(t[1])])}function KNe(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 b=d.read_shift(2),y=c.codepage||1252;2!=u&&(d.l+=16,d.read_shift(1),0!==d[d.l]&&(y=t[d[d.l]]),d.l+=1,d.l+=2),m&&(d.l+=36);for(var k=[],D={},U=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[++T]=[],V=0,V=0;V!=k.length;++V){var B=d.slice(d.l,d.l+k[V].len);d.l+=k[V].len,Pr(B,0);var X=typeof Yt<"u"?Yt.utils.decode(y,B):Sc(B);switch(k[V].type){case"C":X.trim().length&&(l[T][V]=X.replace(/\s+$/,""));break;case"D":l[T][V]=8===X.length?new Date(+X.slice(0,4),+X.slice(4,6)-1,+X.slice(6,8)):X;break;case"F":l[T][V]=parseFloat(X.trim());break;case"+":case"I":l[T][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[T][V]=!0;break;case"N":case"F":l[T][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[T][V]="##MEMO##"+(m?parseInt(X.trim(),10):B.read_shift(4));break;case"N":(X=X.replace(/\u0000/g,"").trim())&&"."!=X&&(l[T][V]=+X||0);break;case"@":l[T][V]=new Date(B.read_shift(-8,"f")-621356832e5);break;case"T":l[T][V]=new Date(864e5*(B.read_shift(4)-2440588)+B.read_shift(4));break;case"Y":l[T][V]=B.read_shift(4,"i")/1e4+B.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":l[T][V]=-B.read_shift(-8,"f");break;case"B":if(f&&8==k[V].len){l[T][V]=B.read_shift(8,"f");break}case"G":case"P":B.l+=k[V].len;break;case"0":if("_NullFlags"===k[V].name)break;default:throw new Error("DBF Unsupported data type "+k[V].type)}}else d.l+=b;if(2!=u&&d.l=0&&aa(+l.codepage),"string"==l.type)throw new Error("Cannot write DBF to JS string");var u=ys(),h=MC(a,{header:1,raw:!0,cellDates:!0}),f=h[0],m=h.slice(1),g=a["!cols"]||[],p=0,b=0,y=0,k=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",T[p]=g[p].DBF.dec,X=g[p].DBF.len),A[p]="C"==V||"N"==B?X:o[V]||0,k+=A[p],U[p]=V}else U[p]="?"}var Q=u.next(32);for(Q.write_shift(4,318902576),Q.write_shift(4,m.length),Q.write_shift(2,296+32*y),Q.write_shift(2,k),p=0;p<4;++p)Q.write_shift(4,0);var Ce=+n[Mr]||3;for(Q.write_shift(4,Ce<<8),t[Ce]!=+l.codepage&&(l.codepage&&console.error("DBF Unsupported codepage "+Mr+", using 1252"),Mr=1252),p=0,b=0;pA[b]&&(ye=ye.slice(0,A[b])),y=0;y":190,"?":191,"{":223},n=new RegExp("\x1bN("+Ri(t).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),e=function(u,h){var f=t[h];return"number"==typeof f?$P(f):f},i=function(u,h,f){var m=h.charCodeAt(0)-32<<4|f.charCodeAt(0)-48;return 59==m?u:$P(m)};function o(u,h){var X,f=u.split(/[\n\r]+/),m=-1,g=-1,p=0,b=0,y=[],k=[],D=null,U={},A=[],T=[],V=[],B=0,ne={Workbook:{WBProps:{},Names:[]}};for(+h.codepage>=0&&aa(+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),Ce=Q.replace(/;;/g,"\0").split(";").map(function(he){return he.replace(/\u0000/g,";")});if(Q.length>0)switch(Ce[0]){case"ID":case"E":case"B":case"W":break;case"O":for(b=1;b=1&&ae<=4&&(ne.Workbook.WBProps.date1904=!0)}break;case"P":"P"===Ce[1].charAt(0)&&k.push(Q.slice(3).replace(/;;/g,";"));break;case"NN":var J={Sheet:0};for(b=1;b-1&&y[at][Dt];if(!K||!K[1])throw new Error("SYLK shared formula cannot find base");F=SX(K[1],{r:m-at,c:g-Dt})}F&&(y[m][g]?y[m][g].f=F:y[m][g]={t:"n",f:F});break;case"F":var z=0;for(b=1;b0?(A[m].hpt=B,A[m].hpx=Qp(B)):0===B&&(A[m].hidden=!0);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+Q)}z<1&&(D=null);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+Q)}}return A.length>0&&(U["!rows"]=A),T.length>0&&(U["!cols"]=T),T.forEach(function(he){eu(he)}),h&&h.sheetRows&&(y=y.slice(0,h.sheetRows)),[y,U,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"+wC(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],b=ei(h);b.date1904=(((p||{}).Workbook||{}).WBProps||{}).date1904;var y=$p(m,b);Ri(g).forEach(function(D){y[D]=g[D]});var k=Zd(y,h);return Ri(p).forEach(function(D){k[D]=p[D]}),k.bookType="sylk",k},from_sheet:function d(u,h,f){var b,m=["ID;PSheetJS;N;E"],g=[],p=kn(u["!ref"]),y=null!=u["!data"],k="\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=Xb(f.width)),"number"==typeof f.wpx&&!f.wch&&(f.wch=Yb(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*Zb(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 U=p.s.r;U<=p.e.r;++U)if(!y||u["!data"][U]){for(var A=[],T=p.s.c;T<=p.e.c;++T)(b=y?u["!data"][U][T]:u[sn(T)+wn(U)])&&(null!=b.v||b.f&&!b.F)&&A.push(a(b,0,U,T));g.push(A.join(k))}return m.join(k)+k+g.join(k)+k+"E"+k}}}(),mX=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],b=l[++h]||"";1&(b.match(/["]/g)||[]).length&&h=0||d.indexOf(",")>=0||d.indexOf(";")>=0?function o(d,u){var h=u||{},f="";null!=nr&&null==h.dense&&(h.dense=nr);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,b=0,y=0,k=0,D=0,U=f.charCodeAt(0),A=!1,T=0,V=d.charCodeAt(0),B=null!=h.dateNF?function iFe(t){var n="number"==typeof t?Tt[t]:t;return n=n.replace(FQ,"(\\d+)"),new RegExp("^"+n+"$")}(h.dateNF):null;function X(){var ne=d.slice(k,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 z3e(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(y=Gs(ne))?!isNaN((y=zp(ne)).getDate())||B&&ne.match(B)?(Q.z=h.dateNF||Tt[14],B&&ne.match(B)&&(ne=function rFe(t,n,e){var i=-1,r=-1,o=-1,s=-1,a=-1,c=-1;(n.match(FQ)||[]).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)||[]),y=Pi(ne,1)),h.cellDates?(Q.t="d",Q.v=y):(Q.t="n",Q.v=mr(y)),!1!==h.cellText&&(Q.w=bs(Q.z,Q.v instanceof Date?mr(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=y),"z"==Q.t||(h.dense?(m["!data"][p]||(m["!data"][p]=[]),m["!data"][p][b]=Q):m[ln({c:b,r:p})]=Q),V=d.charCodeAt(k=D+1),g.e.c0&&X(),m["!ref"]=Qt(g),m}(d,u):$p(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,b=0,y=0;y<=g;++y)-1==(b=m[y].indexOf(" "))?b=m[y].length:b++,p=Math.max(p,b);for(y=0;y<=g;++y){f[y]=[];var k=0;for(t(m[y].slice(0,p).trim(),f,y,k,h),k=1;k<=(m[y].length-p)/10+1;++k)t(m[y].slice(p+10*(k-1),p+10*k).trim(),f,y,k,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 YF(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 Yt<"u"?Yt.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 Yt<"u"&&u.codepage&&(h=Yt.utils.decode(u.codepage,Yt.utils.encode(28591,h))),"socialcalc:version:"==h.slice(0,19)?pX.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=kn(d["!ref"]),m=null!=d["!data"],g=h.s.r;g<=h.e.r;++g){for(var p=[],b=h.s.c;b<=h.e.c;++b){var y=ln({r:g,c:b});if((f=m?(d["!data"][g]||[])[b]:d[y])&&null!=f.v){for(var k=(f.w||(Ac(f),f.w)||"").slice(0,10);k.length<10;)k+=" ";p.push(k+(0===b?" ":""))}else p.push(" ")}u.push(p.join(""))}return u.join("\n")}}}(),Hh=function(){function t(F,te,K){if(F){Pr(F,F.l||0);for(var z=K.Enum||ge;F.l255||Qe.s.r>999999)break;Qe.e.cEn&&(Qe.s.c=En),it=ft.read_shift(4),Qe.s.r>it&&(Qe.s.r=it),it=ft.read_shift(4),Qe.e.rit&&(Qe.s.r=it),Qe.e.r0&&M>=0;){if(32&oi)switch(31&oi){case 2:Pn={t:"n",v:Pn.v+Ho&65535};break;case 3:(Pn={t:"n",v:Pn.v+Ho&65535}).v>32767&&(Pn.v-=65536);break;case 7:Pn={t:"s",v:he[Mt=Mt+Ho>>>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:he[Mt=ft.read_shift(4)-1]};break;default:throw"Cannot apply repeat for QPW cell type "+(31&oi)}!K.sheetStubs&&"z"==Pn.t||(null!=z["!data"]?(z["!data"][it]||(z["!data"][it]=[]),z["!data"][it][En]=Pn):z[zo+wn(it)]=Pn),++it,--M}}}F.l+=Ln}return un}(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(Ye,zo,Pn){switch(Pn){case 0:K.vers=Ye,Ye>=4096&&(K.qpro=!0);break;case 255:K.vers=Ye,K.works=!0;break;case 6:it=Ye;break;case 204:Ye&&(Ee=Ye);break;case 222:Ee=Ye;break;case 15:case 51:(!K.qpro&&!K.works||51==Pn)&&Ye[1].v.charCodeAt(0)<48&&(Ye[1].v=Ye[1].v.slice(1)),(K.works||K.works2)&&(Ye[1].v=Ye[1].v.replace(/\r\n/g,"\n"));case 13:case 14:case 16:14==Pn&&!(112&~Ye[2])&&(15&Ye[2])>1&&(15&Ye[2])<15&&(Ye[1].z=K.dateNF||Tt[14],K.cellDates&&(Ye[1].t="d",Ye[1].v=nC(Ye[1].v))),K.qpro&&Ye[3]>He&&(z["!ref"]=Qt(it),Qe[he]=z,M.push(he),z={},K.dense&&(En=z["!data"]=[]),it={s:{r:0,c:0},e:{r:0,c:0}},He=Ye[3],he=Ee||"Sheet"+(He+1),Ee="");var oi=K.dense?(En[Ye[0].r]||[])[Ye[0].c]:z[ln(Ye[0])];if(oi){oi.t=Ye[1].t,oi.v=Ye[1].v,null!=Ye[1].z&&(oi.z=Ye[1].z),null!=Ye[1].f&&(oi.f=Ye[1].f);break}K.dense?(En[Ye[0].r]||(En[Ye[0].r]=[]),En[Ye[0].r][Ye[0].c]=Ye[1]):z[ln(Ye[0])]=Ye[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(Ye,zo,Pn){switch(Pn){case 204:he=Ye;break;case 22:Ye[1].v.charCodeAt(0)<48&&(Ye[1].v=Ye[1].v.slice(1)),Ye[1].v=Ye[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(Ye[3]>He&&(z["!ref"]=Qt(it),Qe[he]=z,M.push(he),z={},K.dense&&(En=z["!data"]=[]),it={s:{r:0,c:0},e:{r:0,c:0}},he="Sheet"+((He=Ye[3])+1)),un>0&&Ye[0].r>=un)break;K.dense?(En[Ye[0].r]||(En[Ye[0].r]=[]),En[Ye[0].r][Ye[0].c]=Ye[1]):z[ln(Ye[0])]=Ye[1],it.e.c=128?95:Ee)}return z.write_shift(1,0),z}function m(F,te,K){var z=ue(7);return z.write_shift(1,255),z.write_shift(2,te),z.write_shift(2,F),z.write_shift(2,K,"i"),z}function p(F,te,K){var z=ue(13);return z.write_shift(1,255),z.write_shift(2,te),z.write_shift(2,F),z.write_shift(8,K,"f"),z}function y(F,te,K){var z=32768&te;return te=(z?F:0)+((te&=-32769)>=8192?te-16384:te),(z?"":"$")+(K?sn(te):wn(te))}var k={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,z){var he=ue(6+z.length);he.write_shift(2,F),he.write_shift(1,K),he.write_shift(1,te),he.write_shift(1,39);for(var Ee=0;Ee=128?95:He)}return he.write_shift(1,0),he}function X(F,te){var K=A(F),z=F.read_shift(4),he=F.read_shift(4),Ee=F.read_shift(2);if(65535==Ee)return 0===z&&3221225472===he?(K[1].t="e",K[1].v=15):0===z&&3489660928===he?(K[1].t="e",K[1].v=42):K[1].v=0,K;var He=32768&Ee;return Ee=(32767&Ee)-16446,K[1].v=(1-2*He)*(he*Math.pow(2,Ee+32)+z*Math.pow(2,Ee)),K}function ne(F,te,K,z){var he=ue(14);if(he.write_shift(2,F),he.write_shift(1,K),he.write_shift(1,te),0==z)return he.write_shift(4,0),he.write_shift(4,0),he.write_shift(2,65535),he;var Ee=0,He=0,M=0;return z<0&&(Ee=1,z=-z),He=0|Math.log2(z),2147483648&(M=(z/=Math.pow(2,He-31))>>>0)||(++He,M=(z/=2)>>>0),z-=M,M|=2147483648,M>>>=0,z*=Math.pow(2,32),he.write_shift(4,z>>>0),he.write_shift(4,M),he.write_shift(2,He+=16383+(Ee?32768:0)),he}function Ae(F,te){var K=A(F),z=F.read_shift(8,"f");return K[1].v=z,K}function ae(F,te){return 0==F[F.l+te-1]?F.read_shift(te,"cstr"):""}function Xe(F,te){var K=ue(5+F.length);K.write_shift(2,14e3),K.write_shift(2,te);for(var z=0;z127?95:he}return K[K.l++]=0,K}var ge={0:{n:"BOF",f:or},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 z={s:{c:0,r:0},e:{c:0,r:0}};return 8==te&&K.qpro?(z.s.c=F.read_shift(1),F.l++,z.s.r=F.read_shift(2),z.e.c=F.read_shift(1),F.l++,z.e.r=F.read_shift(2),z):(z.s.c=F.read_shift(2),z.s.r=F.read_shift(2),12==te&&K.qpro&&(F.l+=2),z.e.c=F.read_shift(2),z.e.r=F.read_shift(2),12==te&&K.qpro&&(F.l+=2),65535==z.s.c&&(z.s.c=z.e.c=z.s.r=z.e.r=0),z)}},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 z=l(F,0,K);return z[1].v=F.read_shift(2,"i"),z}},14:{n:"NUMBER",f:function g(F,te,K){var z=l(F,0,K);return z[1].v=F.read_shift(8,"f"),z}},15:{n:"LABEL",f:function d(F,te,K){var z=F.l+te,he=l(F,0,K);if(he[1].t="s",20768==K.vers){F.l++;var Ee=F.read_shift(1);return he[1].v=F.read_shift(Ee,"utf8"),he}return K.qpro&&F.l++,he[1].v=F.read_shift(z-F.l,"cstr"),he}},16:{n:"FORMULA",f:function b(F,te,K){var z=F.l+te,he=l(F,0,K);if(he[1].v=F.read_shift(8,"f"),K.qpro)F.l=z;else{var Ee=F.read_shift(2);(function U(F,te){Pr(F,0);for(var K=[],z=0,he="",Ee="",He="",Qe="";F.lK.length)return void console.error("WK1 bad formula parse 0x"+M.toString(16)+":|"+K.join("|")+"|");var un=K.slice(-z);K.length-=z,K.push(k[M][0]+"("+un.join(",")+")")}}}1==K.length?te[1].f=""+K[0]:console.error("WK1 bad formula parse |"+K.join("|")+"|")})(F.slice(F.l,F.l+Ee),he),F.l+=Ee}return he}},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 z=F.l+te,he=l(F,0,K);if(he[1].t="s",20768==K.vers){var Ee=F.read_shift(1);return he[1].v=F.read_shift(Ee,"utf8"),he}return he[1].v=F.read_shift(z-F.l,"cstr"),he}},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 J(F,te){var K=F[F.l++];K>te-1&&(K=te-1);for(var z="";z.length>1;if(1&K[1].v)switch(7&z){case 0:z=5e3*(z>>3);break;case 1:z=500*(z>>3);break;case 2:z=(z>>3)/20;break;case 3:z=(z>>3)/200;break;case 4:z=(z>>3)/2e3;break;case 5:z=(z>>3)/2e4;break;case 6:z=(z>>3)/16;break;case 7:z=(z>>3)/64}return K[1].v=z,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={},z=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 z=F.read_shift(1);return F.l+=17,F.l+=1,F.l+=2,[z,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&&aa(+K.codepage),"string"==K.type)throw new Error("Cannot write WK1 to JS string");var z=ys(),he=kn(F["!ref"]),Ee=null!=F["!data"],He=[];Ue(z,0,function o(F){var te=ue(2);return te.write_shift(2,F),te}(1030)),Ue(z,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}(he));for(var Qe=Math.min(he.e.r,8191),M=he.s.c;M<=he.e.c;++M)He[M]=sn(M);for(var Mt=he.s.r;Mt<=Qe;++Mt){var En=wn(Mt);for(M=he.s.c;M<=he.e.c;++M){var it=Ee?(F["!data"][Mt]||[])[M]:F[He[M]+En];it&&"z"!=it.t&&("n"==it.t?(0|it.v)==it.v&&it.v>=-32768&&it.v<=32767?Ue(z,13,m(Mt,M,it.v)):Ue(z,14,p(Mt,M,it.v)):Ue(z,15,u(Mt,M,Ac(it).slice(0,239))))}}return Ue(z,1),z.end()},book_to_wk3:function r(F,te){var K=te||{};if(+K.codepage>=0&&aa(+K.codepage),"string"==K.type)throw new Error("Cannot write WK3 to JS string");var z=ys();Ue(z,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,z=0,he=0,Ee=0;Ee8191&&(K=8191),te.write_shift(2,K),te.write_shift(1,he),te.write_shift(1,z),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 he=0,Ee=0;he=0;--o)n=((16384&n?1:0)|n<<1&32767)^e[o];return 52811^n}function Kb(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 Bo=6;function Xb(t){return Math.floor((t+Math.round(128/Bo)/256)*Bo)}function Yb(t){return Math.floor((t-5)/Bo*100+.5)/100}function vC(t){return Math.round((t*Bo+5)/Bo*256)/256}function eu(t){t.width?(t.wpx=Xb(t.width),t.wch=Yb(t.wpx),t.MDW=Bo):t.wpx?(t.wch=Yb(t.wpx),t.width=vC(t.wch),t.MDW=Bo):"number"==typeof t.wch&&(t.width=vC(t.wch),t.wpx=Xb(t.width),t.MDW=Bo),t.customWidth&&delete t.customWidth}var xX=96;function Zb(t){return 96*t/xX}function Qp(t){return t*xX/96}function vLe(t,n,e){e||(e=ue(6+4*n.length)),e.write_shift(2,t),Or(n,e);var i=e.length>e.l?e.slice(0,e.l):e;return null==e.l&&(e.l=e.length),i}var FF,wLe=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],kLe=Oo;function wX(t,n){n||(n=ue(84)),FF||(FF=Jk(wLe));var e=FF[t.patternType];null==e&&(e=40),n.write_shift(4,e);var i=0;if(40!=e)for(cC({auto:1},n),cC({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 kX(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 Jb(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 ELe=Oo;function BLe(t,n){var e=ys();return ke(e,278),function ALe(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,vLe(r,n[r]))}),ke(t,616))}}(e,t.SSF),function MLe(t){ke(t,611,Ua(1)),ke(t,43,function xLe(t,n){n||(n=ue(153)),n.write_shift(2,20*t.sz),function JFe(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),cC(t.color,n);var i=0;return"major"==t.scheme&&(i=1),"minor"==t.scheme&&(i=2),n.write_shift(1,i),Or(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 RLe(t){ke(t,603,Ua(2)),ke(t,45,wX({patternType:"none"})),ke(t,45,wX({patternType:"gray125"})),ke(t,604)}(e),function PLe(t){ke(t,613,Ua(1)),ke(t,46,function TLe(t,n){return n||(n=ue(51)),n.write_shift(1,0),Jb(0,n),Jb(0,n),Jb(0,n),Jb(0,n),Jb(0,n),n.length>n.l?n.slice(0,n.l):n}()),ke(t,614)}(e),function FLe(t){ke(t,626,Ua(1)),ke(t,47,kX({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),ke(t,627)}(e),function OLe(t,n){ke(t,617,Ua(n.length)),n.forEach(function(e){ke(t,47,kX(e,0))}),ke(t,618)}(e,n.cellXfs),function NLe(t){ke(t,619,Ua(1)),ke(t,48,function SLe(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),$b(t.name||"",n),n.length>n.l?n.slice(0,n.l):n}({xfId:0,builtinId:0,name:"Normal"})),ke(t,620)}(e),function LLe(t){ke(t,505,Ua(0)),ke(t,506)}(e),function VLe(t){ke(t,508,function DLe(t,n,e){var i=ue(2052);return i.write_shift(4,t),$b(n,i),$b(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 OF(t,n){if(n&&n.themeXLSX)return n.themeXLSX;if(t&&"string"==typeof t.raw)return t.raw;var e=[ir];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 v3e(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"}),'
','',"","",uo("x:Anchor",[e.c+1,0,e.r+1,0,e.c+3,20,e.r+5,20].join(",")),uo("x:AutoFill","False"),uo("x:Row",String(e.r)),uo("x:Column",String(e.c)),t[1].hidden?"":"","",""].join("")}(a,o))}),r.push(""),r.join("")}function x3e(t){var n=[ir,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(uo("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 k3e(t,n,e){var i=[ir,Ne("ThreadedComments",null,{xmlns:Rr.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",uo("text",s.t||""),c))}else delete s.ID})}),i.push(""),i.join("")}var D3e=No;function M3e(t){var n=ys(),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 I3e(t){return Or(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 S3e(t,n){return null==n&&(n=ue(36)),n.write_shift(4,t[1].iauthor),Gp(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 qFe(t,n){var e=!1;return null==n&&(e=!0,n=ue(23+4*t.t.length)),n.write_shift(1,1),Or(t.t,n),n.write_shift(4,1),function $Fe(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 O3e=["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?"":"$")+wn(l)}return function(r,o){return n=o,r.replace(t,e)}}(),NF=/(^|[^._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,wC=function(){return function(n,e){return n.replace(NF,function(i,r,o,s,a,c){var l=dF(s)-(o?0:e.c),d=lF(c)-(a?0:e.r);return r+"R"+("$"==a?d+1:0==d?"":"["+d+"]")+"C"+("$"==o?l+1:0==l?"":"["+l+"]")})}}();function SX(t,n){return t.replace(NF,function(e,i,r,o,s,a){return i+("$"==r?r+o:sn(dF(o)+n.c))+("$"==s?s+a:wn(lF(a)+n.r))})}function _r(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 IX(t,n,e){var i=2;if(e){if(e.biff>=2&&e.biff<=5)return AX(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 AX(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 MX(t,n,e){if(e&&e.biff>=2&&e.biff<=5)return function j3e(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 $3e(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 RX(t){var n=1&t[t.l+1];return t.l+=4,[n,1]}function PX(t){return[t.read_shift(1),t.read_shift(1)]}function vVe(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 rr(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]=Lo(t);break;case 2:e[1]=function Uh(t,n,e){if(e.biff>5)return function Qb(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 yVe(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:pC)(t,8));return r}function xVe(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]=vVe(t,e.biff);return s}function ev(t,n,e){return t.l+=2,[$3e(t)]}function LF(t){return t.l+=6,[]}function FX(t){return t.l+=2,[or(t),1&t.read_shift(2)]}var zVe=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"],OX={1:{n:"PtgExp",f:function fVe(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:Oo},3:{n:"PtgAdd",f:_r},4:{n:"PtgSub",f:_r},5:{n:"PtgMul",f:_r},6:{n:"PtgDiv",f:_r},7:{n:"PtgPower",f:_r},8:{n:"PtgConcat",f:_r},9:{n:"PtgLt",f:_r},10:{n:"PtgLe",f:_r},11:{n:"PtgEq",f:_r},12:{n:"PtgGe",f:_r},13:{n:"PtgGt",f:_r},14:{n:"PtgNe",f:_r},15:{n:"PtgIsect",f:_r},16:{n:"PtgUnion",f:_r},17:{n:"PtgRange",f:_r},18:{n:"PtgUplus",f:_r},19:{n:"PtgUminus",f:_r},20:{n:"PtgPercent",f:_r},21:{n:"PtgParen",f:_r},22:{n:"PtgMissArg",f:_r},23:{n:"PtgStr",f:function bVe(t,n,e){return t.l++,qb(t,0,e)}},26:{n:"PtgSheet",f:function $Ve(t,n,e){return t.l+=5,t.l+=2,t.l+=2==e.biff?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function GVe(t,n,e){return t.l+=2==e.biff?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function mVe(t){return t.l++,Ml[t.read_shift(1)]}},29:{n:"PtgBool",f:function gVe(t){return t.l++,0!==t.read_shift(1)}},30:{n:"PtgInt",f:function pVe(t){return t.l++,t.read_shift(2)}},31:{n:"PtgNum",f:function _Ve(t){return t.l++,Lo(t)}},32:{n:"PtgArray",f:function Z3e(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 lVe(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[kBe[r],BX[r],i]}},34:{n:"PtgFuncVar",f:function dVe(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 uVe(t){return[t[t.l+1]>>7,32767&t.read_shift(2)]}(t);return[r,(0===o[0]?BX:wBe)[o[1]]]}},35:{n:"PtgName",f:function wVe(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 sVe(t,n,e){var i=(96&t[t.l])>>5;return t.l+=1,[i,MX(t,0,e)]}},37:{n:"PtgArea",f:function q3e(t,n,e){return[(96&t[t.l++])>>5,IX(t,0,e)]}},38:{n:"PtgMemArea",f:function EVe(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:Oo},40:{n:"PtgMemNoMem",f:Oo},41:{n:"PtgMemFunc",f:function TVe(t,n,e){return[t.read_shift(1)>>>5&3,t.read_shift(e&&2==e.biff?1:2)]}},42:{n:"PtgRefErr",f:function SVe(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 K3e(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 aVe(t,n,e){var i=(96&t[t.l])>>5;t.l+=1;var r=function G3e(t,n,e){var i=e&&e.biff?e.biff:8;if(i>=2&&i<=5)return function W3e(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 Y3e(t,n,e){var i=(96&t[t.l++])>>5,r=function H3e(t,n,e){if(e.biff<8)return AX(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 WVe(t){return[t.read_shift(1)>>>5&3,t.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function qVe(t){return[t.read_shift(1)>>>5&3,t.read_shift(2)]}},57:{n:"PtgNameX",f:function kVe(t,n,e){return 5==e.biff?function CVe(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,MX(t,0,e)]}},59:{n:"PtgArea3d",f:function Q3e(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,IX(t,0,e)]}},60:{n:"PtgRefErr3d",f:function DVe(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 X3e(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:{}},KVe={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},XVe={1:{n:"PtgElfLel",f:FX},2:{n:"PtgElfRw",f:ev},3:{n:"PtgElfCol",f:ev},6:{n:"PtgElfRwV",f:ev},7:{n:"PtgElfColV",f:ev},10:{n:"PtgElfRadical",f:ev},11:{n:"PtgElfRadicalS",f:LF},13:{n:"PtgElfColS",f:LF},15:{n:"PtgElfColSV",f:LF},16:{n:"PtgElfRadicalLel",f:FX},25:{n:"PtgList",f:function HVe(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:zVe[e>>2&31],idx:i,c:r,C:o}}},29:{n:"PtgSxName",f:function jVe(t){return t.l+=2,[t.read_shift(4)]}},255:{}},YVe={0:{n:"PtgAttrNoop",f:function QVe(t){return t.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function iVe(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 tVe(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 J3e(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 eVe(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 hVe(t,n,e){t.l+=e&&2==e.biff?3:4}},32:{n:"PtgAttrBaxcel",f:RX},33:{n:"PtgAttrBaxcel",f:RX},64:{n:"PtgAttrSpace",f:function rVe(t){return t.read_shift(2),PX(t)}},65:{n:"PtgAttrSpaceSemi",f:function oVe(t){return t.read_shift(2),PX(t)}},128:{n:"PtgAttrIfError",f:function nVe(t){var n=255&t[t.l+1]?1:0;return t.l+=2,[n,t.read_shift(2)]}},255:{}};function tv(t,n,e,i){if(i.biff<8)return Oo(t,n);for(var r=t.l+n,o=[],s=0;s!==e.length;++s)switch(e[s][0]){case"PtgArray":e[s][1]=xVe(t,0,i),o.push(e[s][1]);break;case"PtgMemArea":e[s][2]=yVe(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(Oo(t,n)),o}function ZVe(t){for(var n=[],e=0;e=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function eBe(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 NX(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 LX(t,n,e){var i=NX(t,n,e);return"#REF"==i?i:jb(i,e)}function Uo(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="",b=0,y=t[0].length;b=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+JVe[k[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(eBe(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=Ub(k[1][1],s,r),a.push(zb(d,o));break;case"PtgRefN":d=e?Ub(k[1][1],e,r):k[1][1],a.push(zb(d,o));break;case"PtgRef3d":u=k[1][1],d=Ub(k[1][2],s,r),m=LX(i,u,r),a.push(m+"!"+zb(d,o));break;case"PtgFunc":case"PtgFuncVar":var U=k[1][0],A=k[1][1];U||(U=0);var T=0==(U&=127)?[]:a.slice(-U);a.length-=U,"User"===A&&(A=T.shift()),a.push(A+"("+T.join(",")+")");break;case"PtgBool":a.push(k[1]?"TRUE":"FALSE");break;case"PtgInt":case"PtgErr":a.push(k[1]);break;case"PtgNum":a.push(String(k[1]));break;case"PtgStr":a.push('"'+k[1].replace(/"/g,'""')+'"');break;case"PtgAreaN":f=gK(k[1][1],e?{s:e}:s,r),a.push(cF(f,r));break;case"PtgArea":f=gK(k[1][1],s,r),a.push(cF(f,r));break;case"PtgArea3d":f=k[1][2],m=LX(i,u=k[1][1],r),a.push(m+"!"+cF(f,r));break;case"PtgAttrSum":a.push("SUM("+a.pop()+")");break;case"PtgName":var V=(i.names||[])[(h=k[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=k[1][1];if(h=k[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 Ce=(NX(i,X,r)||"").split(";;");Ce[h-1]?Q=Ce[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[ln(d={c:k[1][1],r:k[1][0]})]){var J=i.sharedf[ln(d)];a.push(Uo(J,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(Uo(l[1],0,ae,i,r)),ye=!0;break}ye||a.push(k[1])}break;case"PtgArray":a.push("{"+ZVe(k[1])+"}");break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":g=b;break;case"PtgMissArg":a.push("");break;case"PtgList":a.push("Table"+k[1].idx+"[#"+k[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(k))}if(3!=r.biff&&g>=0&&-1==["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(t[0][b][0])){var Xe=!0;switch((k=t[0][g])[1][0]){case 4:Xe=!1;case 0:p=Rn(" ",k[1][1]);break;case 5:Xe=!1;case 1:p=Rn("\r",k[1][1]);break;default:if(p="",r.WTF)throw new Error("Unexpected PtgAttrSpaceType "+k[1][0])}a.push((Xe?p:"")+a.pop()+(Xe?"":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 kC(t,n,e){var i=t.read_shift(4),r=function nv(t,n,e){for(var r,o,i=t.l+n,s=[];i!=t.l;)n=i-t.l,r=OX[o=t[t.l]]||OX[KVe[o]],(24===o||25===o)&&(r=(24===o?XVe:YVe)[t[t.l+1]]),r&&r.f?s.push([r.n,r.f(t,n,e)]):Oo(t,n);return s}(t,i,e),o=t.read_shift(4);return[r,o>0?tv(t,o,r,e):null]}var cBe=kC,CC=kC,lBe=kC,dBe=kC;function VX(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 xBe=function yBe(t,n){if("number"==typeof t)return VX(t);if("boolean"==typeof t)return function hBe(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 uBe(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}(+vF[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 mBe(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 _Be(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 vBe(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=Fr(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 pBe(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 bBe(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 gBe(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 fBe(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),fr([n,e,i])}(t);if(/^[+-]\d+$/.test(t))return VX(parseInt(t,10));throw"Formula |"+t+"| not supported for XLSB"},wBe={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"},BX={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"},kBe={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 CBe(t){return("of:="+t.replace(NF,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")}function zX(t){return t.replace(/!/,".")}var rv=typeof Map<"u";function UF(t,n,e){var i=0,r=t.length;if(e){if(rv?e.has(n):Object.prototype.hasOwnProperty.call(e,n))for(var o=rv?e.get(n):e[n];i-1?(e.width=vC(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 EBe(t,n,e){if(t&&t["!ref"]){var i=kn(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=Pi(t.v,-1).toISOString():((t=ei(t)).t="n",r=""+(t.v=mr(Pi(t.v)))),typeof t.z>"u"&&(t.z=Tt[14]);break;default:r=t.v}var a="z"==t.t||null==t.v?"":uo("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=uo("v",""+UF(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 n5e(t,n,e,i){var s,r=[ir,Ne("worksheet",null,{xmlns:Ah[0],"xmlns:r":Rr.r})],a="",c=e.Sheets[e.SheetNames[t]];null==c&&(c={});var l=c["!ref"]||"A1",d=kn(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 BBe(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 ZBe(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 qBe(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 t5e(t,n,e,i){var c,p,r=[],o=[],s=kn(t["!ref"]),a="",l="",d=[],u=0,h=0,f=t["!rows"],m=null!=t["!data"],g={r:l},b=-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=wn(u),h=s.s.c;h<=s.e.c;++h){c=d[h]+l;var y=m?(t["!data"][u]||[])[h]:t[c];void 0!==y&&null!=(a=JBe(y,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),b=-1,p.hpx?b=Zb(p.hpx):p.hpt&&(b=p.hpt),b>-1&&(g.ht=b,g.customHeight=1),p.level&&(g.outlineLevel=p.level)),r[r.length]=Ne("row",o.join(""),g))}if(f)for(;u-1&&(g.ht=b,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 HBe(t){var n={sheet:1};return UBe.forEach(function(e){null!=t[e]&&t[e]&&(n[e]="1")}),zBe.forEach(function(e){null!=t[e]&&!t[e]&&(n[e]="0")}),t.password&&(n.password=MF(t.password).toString(16).toUpperCase()),Ne("sheetProtection",null,n)}(c["!protect"])),null!=c["!autofilter"]&&(r[r.length]=function KBe(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=Fr(r);s.s.r==s.e.r&&(s.e.r=Fr(n["!ref"]).e.r,r=Qt(s));for(var a=0;a0&&(r[r.length]=function LBe(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 GBe(t){return $h(t),Ne("pageMargins",null,t)}(c["!margins"])),(!n||n.ignoreEC||null==n.ignoreEC)&&(r[r.length]=uo("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 o5e(t,n,e,i){var r=function r5e(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*Zb(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 s5e=Oh,a5e=Gp;var j5e=Oh,$5e=Gp,GX=["left","right","top","bottom","header","footer"];function a8e(t,n,e,i,r,o,s){var a={r:e,c:i};if(n.c&&o["!comments"].push([ln(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||Tt[14],n.v=mr(Pi(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([ln(a),n.l]),n.t){case"s":case"str":return r.bookSST?(c=UF(r.Strings,null==n.v?"":String(n.v),r.revStrings),a.t="s",a.v=c,s?ke(t,18,function T5e(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 C5e(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 V5e(t,n,e){var i=null==t.v?"":String(t.v);return null==e&&(e=ue(8+4*i.length)),Fh(n,e),Or(i,e),e.length>e.l?e.slice(0,e.l):e}(n,a)):ke(t,6,function N5e(t,n,e){var i=null==t.v?"":String(t.v);return null==e&&(e=ue(12+4*t.v.length)),Rh(n,e),Or(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 P5e(t,n,e){return null==e&&(e=ue(8)),Fh(n,e),yK(t.v,e),e}(n,a)):ke(t,2,function M5e(t,n,e){return null==e&&(e=ue(12)),Rh(n,e),yK(t.v,e),e}(n,a)):s?ke(t,16,function I5e(t,n,e){return null==e&&(e=ue(12)),Fh(n,e),Nh(t.v,e),e}(n,a)):ke(t,5,function D5e(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 b5e(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 g5e(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 w5e(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 y5e(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 m5e(t,n,e){return null==e&&(e=ue(4)),Fh(n,e)}(0,a)):ke(t,1,function h5e(t,n,e){return null==e&&(e=ue(8)),Rh(n,e)}(0,a)),!0}function _8e(t,n,e,i){var r=ys(),o=e.SheetNames[t],s=e.Sheets[o]||{},a=o;try{e&&e.Workbook&&(a=e.Workbook.Sheets[t].CodeName||a)}catch{}var c=kn(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 d5e(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 cC({auto:1},e),e.write_shift(-4,-1),e.write_shift(-4,-1),vK(t,e),e.slice(0,e.l)}(a,s["!outline"])),ke(r,148,a5e(c)),function p8e(t,n,e){ke(t,133),ke(t,137,function t8e(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 d8e(t,n){!n||!n["!cols"]||(ke(t,390),n["!cols"].forEach(function(e,i){e&&ke(t,60,function Y5e(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=kn(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=wn(d),o5e(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&&a8e(t,f,d,h,i,n,u)}}ke(t,146)}(r,s,0,n),function g8e(t,n){n["!protect"]&&ke(t,535,function i8e(t,n){return null==n&&(n=ue(66)),n.write_shift(2,t.password?MF(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 m8e(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=Fr(o);a.s.r==a.e.r&&(a.e.r=Fr(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,mF("rId"+r)),n["!legacy"]=r}}(r,s,t,i),ke(r,130),r.end()}var HF=[["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"]],S8e=":][*?/\\".split("");function KX(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'");S8e.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 P8e(t,n){return n||(n=ue(127)),n.write_shift(4,t.Hidden),n.write_shift(4,t.iTabID),mF(t.strRelID,n),Or(t.name.slice(0,31),n),n.length>n.l?n.slice(0,n.l):n}function q8e(t,n){var e=ys();return ke(e,131),ke(e,128,function z8e(t,n){n||(n=ue(127));for(var e=0;4!=e;++e)n.write_shift(4,0);return Or("SheetJS",n),Or(Db.version,n),Or(Db.version,n),Or("7262",n),n.length>n.l?n.slice(0,n.l):n}()),ke(e,153,function O8e(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),vK(t&&t.CodeName||"ThisWorkbook",n),n.slice(0,n.l)}(t.Workbook&&t.Workbook.WBProps||null)),function j8e(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 H8e(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 U8e(t,n){ke(t,143);for(var e=0;e!=n.SheetNames.length;++e)ke(t,156,P8e({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 W8e(t,n){ke(t,353),ke(t,357),ke(t,362,function G8e(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,Or(r),xBe(t.Ref,n)];if(t.Comment)o.push($b(t.Comment));else{var s=ue(4);s.write_shift(4,4294967295),o.push(s)}return fr(o)}(e,n))}catch{console.error("Could not serialize defined name "+JSON.stringify(e))}})}(e,t),ke(e,132),e.end()}function JX(t){return Ne("NamedRange",null,{"ss:Name":"_xlnm."==t.Name.slice(0,6)?t.Name.slice(6):t.Name,"ss:RefersTo":"="+wC(t.Ref,{r:0,c:0})})}function y6e(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(wC(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||Tt[14]);break;case"s":u="String",h=function kFe(t){return(t+"").replace(JP,function(e){return ZP[e]}).replace(KQ,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 v6e(t){return t.map(function(n){var e=function CFe(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 x6e(t,n){var e='"}function k6e(t,n,e){var i=[],o=e.Sheets[e.SheetNames[t]],s=o?function _6e(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 w6e(t,n,e,i){if(!t["!ref"])return"";var r=kn(t["!ref"]),o=t["!merges"]||[],s=0,a=[];t["!cols"]&&t["!cols"].forEach(function(p,b){eu(p);var y=!!p.width,k=EC(b,p),D={"ss:Index":b+1};y&&(D["ss:Width"]=Xb(k.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=[x6e(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 b6e(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(uo("ProtectContents","True")),t["!protect"].objects&&r.push(uo("ProtectObjects","True")),t["!protect"].scenarios&&r.push(uo("ProtectScenarios","True")),null==t["!protect"].selectLockedCells||t["!protect"].selectLockedCells?null!=t["!protect"].selectUnlockedCells&&!t["!protect"].selectUnlockedCells&&r.push(uo("EnableSelection","UnlockedCells")):r.push(uo("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 C6e(t,n){n||(n={}),t.SSF||(t.SSF=ei(Tt)),t.SSF&&(Up(),Fb(t.SSF),n.revssf=eC(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 f6e(t,n){var e=[];return t.Props&&e.push(function xOe(t,n){var e=[];return Ri(CF).map(function(i){for(var r=0;r'+r.join("")+""}(t.Props,t.Custprops)),e.join("")}(t,n)),e.push(function m6e(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(Tt[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 g6e(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 YFe(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=Kb(l));break;case 2:n.rgb=Kb([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=No(t),i}},44:{f:function bLe(t,n){return[t.read_shift(2),No(t)]}},45:{f:kLe},46:{f:ELe},47:{f:function CLe(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 HFe(t){return t.read_shift(4,"i")}},50:{},51:{f:function o3e(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 hX(t,n,e){if(!e.cellStyles)return Oo(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 F5e(t){return[ua(t),uF(t),"is"]}},63:{f:function p3e(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=ln(e);var i=t.read_shift(1);return 2&i&&(n.l="1"),8&i&&(n.a="1"),n}},64:{f:function r8e(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Oo,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function e8e(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 l5e(t,n){var e={},i=t[t.l];return++t.l,e.above=!(64&i),e.left=!(128&i),t.l+=18,e.name=QFe(t,n-19),e}},148:{f:s5e,p:16},151:{f:function Q5e(){}},152:{},153:{f:function F8e(t,n){var e={},i=t.read_shift(4);e.defaultThemeVersion=t.read_shift(4);var r=n>8?No(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 R8e(t,n){var e={};return e.Hidden=t.read_shift(4),e.iTabID=t.read_shift(4),e.strRelID=fF(t,n-8),e.name=No(t),e}},157:{},158:{},159:{T:1,f:function M4e(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:j5e},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 i3e(t,n){return{flags:t.read_shift(4),version:t.read_shift(4),name:No(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:fF},357:{},358:{},359:{},360:{T:1},361:{},362:{f:function lX(t,n,e){if(e.biff<8||!(e.biff>8)&&n==t[t.l]+(3==t[t.l+1]?1:0)+1)return function dX(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($Oe(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 K5e(t,n,e){var i=t.l+n,r=xK(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 X5e(t,n,e){var i=t.l+n,o=[Oh(t,16)];if(e.cellFormula){var s=dBe(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 Z5e(t){var n={};return GX.forEach(function(e){n[e]=Lo(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 W5e(t,n){var e=t.l+n,i=Oh(t,16),r=hF(t),o=No(t),s=No(t),a=No(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:fF},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:D3e},633:{T:1},634:{T:-1},635:{T:1,f:function T3e(t){var n={};n.iauthor=t.read_shift(4);var e=Oh(t,16);return n.rfx=e.s,n.ref=ln(e.s),t.l+=16,n}},636:{T:-1},637:{f:WFe},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 x8e(t,n){return t.l+=10,{name:No(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 o8e(){}},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 Ue(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&&aF(e)&&t.push(e)}}function cv(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 O6e(t,n,e,i){if(null!=n.v)switch(n.t){case"d":case"n":var r="d"==n.t?mr(Pi(n.v)):n.v;return void(r==(0|r)&&r>=0&&r<65536?Ue(t,2,function f4e(t,n,e){var i=ue(9);return cv(i,t,n),i.write_shift(2,e),i}(e,i,r)):Ue(t,3,function u4e(t,n,e){var i=ue(15);return cv(i,t,n),i.write_shift(8,e,"f"),i}(e,i,r)));case"b":case"e":return void Ue(t,5,function P6e(t,n,e,i){var r=ue(9);return cv(r,t,n),qK(e,i||"b",r),r}(e,i,n.v,n.t));case"s":case"str":return void Ue(t,4,function F6e(t,n,e){var i=ue(8+2*e.length);return cv(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)}Ue(i,2057,DF(0,16,n)),Ue(i,13,fa(1)),Ue(i,12,fa(100)),Ue(i,15,ns(!0)),Ue(i,17,ns(!1)),Ue(i,16,Nh(.001)),Ue(i,95,ns(!0)),Ue(i,42,ns(!1)),Ue(i,43,ns(!1)),Ue(i,130,fa(1)),Ue(i,128,function ANe(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])),Ue(i,131,ns(!1)),Ue(i,132,ns(!1)),l&&function j6e(t,n){if(n){var e=0;n.forEach(function(i,r){++e<=256&&i&&Ue(t,125,function t4e(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"]),Ue(i,512,function kNe(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=[],b=f.s.c;b<=f.e.c;++b)h[b]=sn(b);for(var y=f.s.r;y<=f.e.r;++y)for(c&&(p=o["!data"][y]||[]),u=wn(y),b=f.s.c;b<=f.e.c;++b){d=h[b]+u;var k=c?p[b]:o[d];k&&($6e(i,k,y,b,n),l&&k.l&&o["!links"].push([d,k.l]),l&&k.c&&g.push([d,k.c]))}var D=a.CodeName||a.name||r;return l&&Ue(i,574,function hNe(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&&Ue(i,229,function zNe(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 q6e(t,n){var e=n||{},i=[];t&&!t.SSF&&(t.SSF=ei(Tt)),t&&t.SSF&&(Up(),Fb(t.SSF),e.revssf=eC(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,XF(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=wn(u),d=o.s.c;d<=o.e.c;++d){var h=r?l[d]:n[c[d]+a];h&&O6e(t,h,u,d)}}(i,t.Sheets[t.SheetNames[r]],0,e),Ue(i,10),i.end()}(t,n)}throw new Error("invalid type "+o.bookType+" for BIFF")}function nY(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 iY='SheetJS Table Export',rY="";function sY(t,n){var e=n||{},r=null!=e.footer?e.footer:rY,o=[null!=e.header?e.header:iY],s=Fr(t["!ref"]);o.push(function oY(t,n,e){return[].join("")+""}(0,0,e));for(var a=s.s.r;a<=s.e.r;++a)o.push(nY(t,s,a,e));return o.push(""+r),o.join("")}var Z6e=function(){var t=["",'',"",'',"",'',"",""].join(""),n=""+t+"";return function(){return ir+n}}();function J6e(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 mY(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=zX(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 pY=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=Fr(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 y=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=ln({r:u,c:h}),T=p?(o["!data"][u]||[])[h]:o[A];if(T&&T.f&&(D["table:formula"]=tn(CBe(T.f)),T.F&&T.F.slice(0,A.length)==A)){var V=Fr(T.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(T){switch(T.t){case"b":U=T.v?"TRUE":"FALSE",D["office:value-type"]="boolean",D["office:boolean-value"]=T.v?"true":"false";break;case"n":U=T.w||String(T.v||0),D["office:value-type"]="float",D["office:value"]=T.v||0;break;case"s":case"str":U=null==T.v?"":T.v,D["office:value-type"]="string";break;case"d":U=T.w||Pi(T.v).toISOString(),D["office:value-type"]="date",D["office:date-value"]=Pi(T.v).toISOString(),D["table:style-name"]="ce1";break;default:d.push(n);continue}var B=t(U);if(T.l&&T.l.Target){var X=T.l.Target;"#"!=(X="#"==X.charAt(0)?"#"+zX(X.slice(1)):X).charAt(0)&&!X.match(/^\w+:/)&&(X="../"+X),B=Ne("text:a",B,{"xlink:href":X.replace(/&/g,"&")})}l[T.z]&&(D["table:style-name"]="ce"+l[T.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(mY(s.Workbook.Names,0,a)),d.push(" \n"),d.join("")};return function(s,a){var c=[ir],l=Vb({"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=Vb({"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(DK().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=Fr(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[ln({r:m,c:g})];if(p&&p.z&&"general"!=p.z.toLowerCase()&&!l[p.z]){var b=J6e(p.z,"N"+d);b&&(l[p.z]="N"+d,++d,o.push(b+"\n"))}}}),o.push(' \n'),Ri(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(mY(s.Workbook.Names,0,-1)),c.push(" \n"),c.push(" \n"),c.push("fods"==a.bookType?"":""),c.join("")}}();function gY(t,n){if("fods"==n.bookType)return pY(t,n);var e=YP(),i="",r=[],o=[];return en(e,i="mimetype","application/vnd.oasis.opendocument.spreadsheet"),en(e,i="content.xml",pY(t,n)),r.push([i,"text/xml"]),o.push([i,"ContentFile"]),en(e,i="styles.xml",Z6e(t,n)),r.push([i,"text/xml"]),o.push([i,"StylesFile"]),en(e,i="meta.xml",ir+DK()),r.push([i,"text/xml"]),o.push([i,"MetadataFile"]),en(e,i="manifest.rdf",function pOe(t){var n=[ir];n.push('\n');for(var e=0;e!=t.length;++e)n.push(SK(t[e][0],t[e][1])),n.push(mOe("",t[e][0]));return n.push(SK("","Document","pkg")),n.push(""),n.join("")}(o)),r.push([i,"application/rdf+xml"]),en(e,i="META-INF/manifest.xml",function fOe(t){var n=[ir];n.push('\n'),n.push(' \n');for(var e=0;e\n');return n.push(""),n.join("")}(r)),e}var br=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 Yr(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[br](0,e)}function _Y(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 Je(t){for(var n=[],e={l:0};e.l=128;);s=t[br](e.l,a),e.l=a;break;case 1:s=t[br](a,a+8),e.l=a+8;break;case 2:var c=lv(t,e);s=t[br](e.l,e.l+c),e.l+=c;break;case 5:s=t[br](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 wt(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 dv(t){for(var n,e=[],i={l:0};i.l>>0>0),e.push(s)}return e}function uv(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:wt(s.meta),type:2})});var o=wt(i);n.push(gt(o.length)),n.push(o),r.forEach(function(s){return n.push(s)})}),iu(n)}function nUe(t,n){if(0!=t)throw new Error("Unexpected Snappy chunk type ".concat(t));for(var e={l:0},i=lv(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][br](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][br](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[br](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[br](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 SC(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 tUe(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[br](0,r)}function DC(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[br](0,r)}function ri(t){return Cn(Je(t)[1][0].data)}function Fl(t){return wt([[],[{type:0,data:gt(t)}]])}function ru(t,n){var e,i=null!=(e=t.messages[0].meta[5])&&e[0]?_Y(t.messages[0].meta[5][0].data):[];-1==i.indexOf(n)&&(i.push(n),t.messages[0].meta[5]=[{type:2,data:bY(i)}])}function Ol(t,n){var e,i=null!=(e=t.messages[0].meta[5])&&e[0]?_Y(t.messages[0].meta[5][0].data):[];t.messages[0].meta[5]=[{type:2,data:bY(i.filter(function(r){return r!=n}))}]}function fUe(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:""};XF(n=n||{});var o=YP(),s="",a=0;if(n.cellXfs=[],nu(n.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),en(o,s="docProps/core.xml",AK(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",FK(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,n5e(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 b=!1;m.forEach(function(y){y[1].forEach(function(k){1==k.T&&(b=!0)})}),b&&(en(o,p="xl/threadedComments/threadedComment"+a+".xml",k3e(m,d,n)),r.threadedcomments.push(p),ii(u,-1,"../threadedComments/threadedComment"+a+".xml",nn.TCMNT)),en(o,p="xl/comments"+a+"."+e,x3e(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,Gb(s),Wp(u))}return null!=n.Strings&&n.Strings.length>0&&(en(o,s="xl/sharedStrings."+e,function A4e(t,n){if(!n.bookSST)return"";var e=[ir];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 M8e(t){var n=[ir];n[n.length]=Ne("workbook",null,{xmlns:Ah[0],"xmlns:r":Rr.r});var e=t.Workbook&&(t.Workbook.Names||[]).length>0,i={codeName:"ThisWorkbook"};t.Workbook&&t.Workbook.WBProps&&(HF.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",OF(t.Themes,n)),r.themes.push(s),ii(n.wbrels,-1,"theme/theme1.xml",nn.THEME),en(o,s="xl/styles."+e,function _Le(t,n){var i,e=[ir,Ne("styleSheet",null,{xmlns:Ah[0],"xmlns:vt":Rr.vt})];return t.SSF&&null!=(i=function fLe(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 pLe(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 f3e(){var t=[ir];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 E3e(t){var n=[ir,Ne("personList",null,{xmlns:Rr.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",TK(r,n)),en(o,"_rels/.rels",Wp(n.rels)),en(o,"xl/_rels/workbook.xml.rels",Wp(n.wbrels)),delete n.revssf,delete n.ssf,o}function SY(t,n){switch(n.type){case"base64":case"binary":break;case"buffer":case"array":n.type="";break;case"file":return Ob(n.file,xt.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 xt.write(t,n)}function IUe(t,n){switch(n.bookType){case"ods":return gY(t,n);case"numbers":return function pUe(t,n){if(!n||!n.numbers)throw new Error("Must pass a `numbers` option -- check the README");var e=xt.read(n.numbers,{type:"base64"}),i=function mUe(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]&&dv(hv(r.content)).forEach(function(s){e.push(s.id),n[s.id]={deps:[],location:o,type:Cn(s.messages[0].meta[1][0].data)}})}),t.FileIndex.forEach(function(i){i.name.match(/\.iwa/)&&0==i.content[0]&&dv(hv(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(Cn(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(Je(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 gUe(t,n,e){var i=-1,r=-1,o={};Nr(t,n,1,function(l,d){var u=Je(l.messages[0].data);i=ri(Je(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):Nr(t,n,r,function(f,m){return m.push(h)}),l.messages[0].data=wt(u)});var s=-1;Nr(t,n,r,function(l,d){for(var u=Je(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$/,""),Nr(t,n,2,function(p){var b=Je(p.messages[0].data),y=b[3].findIndex(function(D){var U,A,T=Je(D.data);return null!=(U=T[3])&&U[0]?Yr(T[3][0].data)==g:!(null==(A=T[2])||!A[0]||Yr(T[2][0].data)!=g)}),k=Je(b[3][y].data);k[6]||(k[6]=[]),k[6].push({type:2,data:wt([[],[{type:0,data:gt(s)}]])}),b[3][y].data=wt(k),p.messages[0].data=wt(b)}),Nr(t,n,s,function(p,b){return b.push(m)})}l.messages[0].data=wt(u)});var a=-1;Nr(t,n,s,function(l,d){for(var u=Je(l.messages[0].data),h=Je(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=wt(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):Nr(t,n,a,function(b,y){return y.push(p)}),l.messages[0].data=wt(u)});var c=n[a].location;c=(c=c.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,""),Nr(t,n,a,function(l,d){var u,h,f=Je(l.messages[0].data),g=Yr(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 b=ri(Je(f[45][0].data)[1][0].data);Ol(l,b),delete f[45]}f[70]&&(null==(u=Je(f[70][0].data)[2])||u.forEach(function(A){var T=Je(A.data);[2,3].map(function(V){return T[V][0]}).forEach(function(V){var B=Je(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 T=ri(f[A][0].data);delete f[A],Ol(l,T)}});var k=Je(f[4][0].data);[2,4,5,6,11,12,13,15,16,17,18,19,20,21,22].forEach(function(A){var T;if(null!=(T=k[A])&&T[0]){var V=ri(k[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"))),xt.utils.cfb_add(t,n[B].location,fv(uv([X])));var ne=n[B].location;ne=(ne=ne.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,""),Nr(t,n,2,function(Q){var Ce=Je(Q.messages[0].data);Ce[3].push({type:2,data:wt([[],[{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)}]])}),Ce[1]=[{type:0,data:gt(Math.max(B+1,Cn(Ce[1][0].data)))}];var Ae=Ce[3].findIndex(function(ae){var J,ye,pe=Je(ae.data);return null!=(J=pe[3])&&J[0]?Yr(pe[3][0].data)==c:!(null==(ye=pe[2])||!ye[0]||Yr(pe[2][0].data)!=c)}),ve=Je(Ce[3][Ae].data);ve[6]||(ve[6]=[]),ve[6].push({type:2,data:wt([[],[{type:0,data:gt(B)}]])}),Ce[3][Ae].data=wt(ve),Q.messages[0].data=wt(Ce)})}k[A][0].data=Fl(B)}});var D=Je(k[1][0].data);null==(h=D[2])||h.forEach(function(A){var T=ri(A.data),V=ou({deps:[a],location:n[T].location,type:n[T].type},n);Ol(l,T),ru(l,V),o[T]=V;var B=Pc(t,n,T);if(B.id=V,n[T].location==n[a].location)d.push(B);else{n[V].location=n[T].location.replace(T.toString(),V.toString()),n[V].location==n[T].location&&(n[V].location=n[V].location.replace(/\.iwa/,"-".concat(V,".iwa"))),xt.utils.cfb_add(t,n[V].location,fv(uv([B])));var X=n[V].location;X=(X=X.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,""),Nr(t,n,2,function(ne){var Q=Je(ne.messages[0].data);Q[3].push({type:2,data:wt([[],[{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,Cn(Q[1][0].data)))}];var Ce=Q[3].findIndex(function(ve){var ae,J,ye=Je(ve.data);return null!=(ae=ye[3])&&ae[0]?Yr(ye[3][0].data)==c:!(null==(J=ye[2])||!J[0]||Yr(ye[2][0].data)!=c)}),Ae=Je(Q[3][Ce].data);Ae[6]||(Ae[6]=[]),Ae[6].push({type:2,data:wt([[],[{type:0,data:gt(V)}]])}),Q[3][Ce].data=wt(Ae),ne.messages[0].data=wt(Q)})}A.data=Fl(V)}),k[1][0].data=wt(D);var U=Je(k[3][0].data);U[1].forEach(function(A){var T=Je(A.data),V=ri(T[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),xt.utils.cfb_add(t,"/Index/Tables/Tile-".concat(B,".iwa"),fv(uv([X]))),Nr(t,n,2,function(ne){var Q=Je(ne.messages[0].data);Q[3].push({type:2,data:wt([[],[{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,Cn(Q[1][0].data)))}];var Ce=Q[3].findIndex(function(ve){var ae,J,ye=Je(ve.data);return null!=(ae=ye[3])&&ae[0]?Yr(ye[3][0].data)==c:!(null==(J=ye[2])||!J[0]||Yr(ye[2][0].data)!=c)}),Ae=Je(Q[3][Ce].data);Ae[6]||(Ae[6]=[]),Ae[6].push({type:2,data:wt([[],[{type:0,data:gt(B)}]])}),Q[3][Ce].data=wt(Ae),ne.messages[0].data=wt(Q)})}T[2][0].data=Fl(B),A.data=wt(T)}),k[3][0].data=wt(U),f[4][0].data=wt(k),l.messages[0].data=wt(f)})}(e,i,a+1),r=Pc(e,i,1),o=Gh(Je(r.messages[0].data)[1],ri)),function _Ue(t,n,e,i,r,o){var s=[];Nr(t,n,o,function(l){var d=Je(l.messages[0].data);d[1]=[{type:2,data:Ha(i)}],s=Gh(d[2],ri),l.messages[0].data=wt(d)});var c=ri(Je(Pc(t,n,s[0]).messages[0].data)[2][0].data);Nr(t,n,c,function(l,d){return function bUe(t,n,e,i,r,o){var s=Fr(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=MC(e,{range:s,header:1}),l=["~Sh33tJ5~"],d=n[o].location;d=(d=d.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,"");var u=Je(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=Je(u[4][0].data);Nr(t,n,ri(Je(h[1][0].data)[2][0].data),function(Ae,ve){var ae,J=Je(Ae.messages[0].data);if(null!=(ae=J?.[2])&&ae[0])for(var ye=0;ye0&&(en(o,s="docProps/custom.xml",FK(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,_8e(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,M3e(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,Gb(s),Wp(d))}return null!=n.Strings&&n.Strings.length>0&&(en(o,s="xl/sharedStrings."+e,function O4e(t){var n=ys();ke(n,159,function P4e(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+=ca.charAt(o)+ca.charAt(s)+ca.charAt(a)+ca.charAt(c);return n}(t);case"binary":case"string":return t;case"file":return Ob(n.file,t,"binary");case"buffer":return on?Tc(t,"binary"):t.split("").map(function(e){return e.charCodeAt(0)})}throw new Error("Unrecognized type "+n.type)}(PY(t.Sheets[t.SheetNames[r]],e),e);case"csv":return Fc(tO(t.Sheets[t.SheetNames[r]],e),e,"\ufeff");case"dif":return Fc(mX.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"dbf":return AC(IF.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 tLe(t,n){var e=["{\\rtf1\\ansi"];if(!t["!ref"])return e[0]+"}";for(var r,i=kn(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=ln({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(pX.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"fods":return Fc(gY(t,e),e);case"wk1":return AC(Hh.sheet_to_wk1(t.Sheets[t.SheetNames[r]],e),e);case"wk3":return AC(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),AC(eY(t,e),e);case"biff5":e.biff||(e.biff=5);case"biff8":case"xla":case"xls":return e.biff||(e.biff=8),function RUe(t,n){var e=n||{};return SY(function M6e(t,n){var e=n||{},i=xt.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 xt.utils.cfb_add(i,r,eY(t,e)),8==e.biff&&(t.Props||t.Custprops)&&function A6e(t,n){var s,e=[],i=[],r=[],o=0,a=NQ(_F,"n"),c=NQ(bF,"n");if(t.Props)for(s=Ri(t.Props),o=0;o-1||MK.indexOf(r[o][0])>-1||null!=r[o][1]&&l.push(r[o]);i.length&&xt.utils.cfb_add(n,"/\x05SummaryInformation",GK(i,sv.SI,c,bF)),(e.length||l.length)&&xt.utils.cfb_add(n,"/\x05DocumentSummaryInformation",GK(e,sv.DSI,a,_F,l.length?l:null,sv.UDI))}(t,i),8==e.biff&&t.vbaraw&&function F3e(t,n){n.FullPaths.forEach(function(e,i){if(0!=i){var r=e.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");"/"!==r.slice(-1)&&xt.utils.cfb_add(t,r,n.FileIndex[i].content)}})}(i,xt.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 AUe(t,n){var e=ei(n||{});return function DY(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?xt.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(Mb(r))}return n.password&&typeof encrypt_agile<"u"?SY(encrypt_agile(r,n.password),n):"file"===n.type?Ob(n.file,r):"string"==n.type?ni(r):r}(IUe(t,e),e)}(t,e);default:throw new Error("Unrecognized bookType |"+e.bookType+"|")}}function AY(t,n,e,i,r,o,s){var a=wn(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 MC(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=kn(d);break;case"number":(c=kn(t["!ref"])).s.r=d;break;default:c=d}i>0&&(r=0);var u=wn(c.s.r),h=[],f=[],m=0,g=0,p=null!=t["!data"],b=c.s.r,y=0,k={};p&&!t["!data"][b]&&(t["!data"][b]=[]);var D=l.skipHidden&&t["!cols"]||[],U=l.skipHidden&&t["!rows"]||[];for(y=c.s.c;y<=c.e.c;++y)if(!(D[y]||{}).hidden)switch(h[y]=sn(y),e=p?t["!data"][b][y]:t[h[y]+u],i){case 1:o[y]=y-c.s.c;break;case 2:o[y]=h[y];break;case 3:o[y]=l.header[y-c.s.c];break;default:if(null==e&&(e={w:"__EMPTY",t:"s"}),a=s=Ac(e,null,l),g=k[s]||0){do{a=s+"_"+g++}while(k[a]);k[s]=g,k[a]=1}else k[s]=1;o[y]=a}for(b=c.s.r+r;b<=c.e.r;++b)if(!(U[b]||{}).hidden){var A=AY(t,c,b,h,i,o,l);(!1===A.isempty||(1===i?!1!==l.blankrows:l.blankrows))&&(f[m++]=A.row)}return f.length=m,f}var MY=/"/g;function RY(t,n,e,i,r,o,s,a){for(var c=!0,l=[],d="",u=wn(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,b=0;p!==d.length;++p)if((b=d.charCodeAt(p))===r||b===o||34===b||a.forceQuotes){d='"'+d.replace(MY,'""')+'"';break}"ID"==d&&(d='"ID"')}else null==g.f||g.F?d="":(c=!1,(d="="+g.f).indexOf(",")>=0&&(d='"'+d.replace(MY,'""')+'"'));l.push(d)}return!1===a.blankrows&&c?null:l.join(s)}function tO(t,n){var e=[],i=n??{};if(null==t||null==t["!ref"])return"";for(var r=kn(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=RY(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 PY(t,n){n||(n={}),n.FS="\t",n.RS="\n";var e=tO(t,n);return typeof Yt>"u"||"string"==n.type?e:"\xff\xfe"+Yt.utils.encode(1200,e,"str")}function FY(t,n,e){var i=e||{},r=t?null!=t["!data"]:i.dense;null!=nr&&null==r&&(r=nr);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=kn(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,b){r&&!s["!data"][a+b+o]&&(s["!data"][a+b+o]=[]),r&&(m=s["!data"][a+b+o]),Ri(p).forEach(function(y){-1==(f=h.indexOf(y))&&(h[f=h.length]=y);var k=p[y],D="z",U="",A=r?"":sn(c+f)+wn(a+b+o),T=r?m[c+f]:s[A];!k||"object"!=typeof k||k instanceof Date?("number"==typeof k?D="n":"boolean"==typeof k?D="b":"string"==typeof k?D="s":k instanceof Date?(D="d",i.cellDates||(D="n",k=mr(k)),U=null!=T&&T.z&&Xd(T.z)?T.z:i.dateNF||Tt[14]):null===k&&i.nullError&&(D="e",k=0),T?(T.t=D,T.v=k,delete T.w,delete T.R,U&&(T.z=U)):r?m[c+f]=T={t:D,v:k}:s[A]=T={t:D,v:k},U&&(T.z=U)):r?m[c+f]=k:s[A]=k})}),d.e.c=Math.max(d.e.c,c+h.length-1);var g=wn(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(KX(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 NY_json_to_sheet=function LUe(t,n){return FY(null,t,n)};let YUe=(()=>{class t{constructor(){}exportAsExcelFile(e,i){const s=mv({Sheets:{data:NY_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 ZUe=["*",[["mat-toolbar-row"]]],JUe=["*","mat-toolbar-row"];let e9e=(()=>{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})(),t9e=(()=>{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(Ge),w(Hn),w(yt))};static#t=this.\u0275cmp=$e({type:t,selectors:[["mat-toolbar"]],contentQueries:function(i,r,o){if(1&i&&cn(o,e9e,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:JUe,decls:2,vars:0,template:function(i,r){1&i&&(Mn(ZUe),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})(),n9e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({imports:[Ot,Ot]})}return t})();const LY=["*"],i9e=["content"],r9e=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],o9e=["mat-drawer","mat-drawer-content","*"];function s9e(t,n){if(1&t){const e=Se();_(0,"div",1),H("click",function(){return j(e),G(P()._onBackdropClicked())}),v()}2&t&<("mat-drawer-shown",P()._isShowingBackdrop())}function a9e(t,n){1&t&&(_(0,"mat-drawer-content"),ct(1,2),v())}const c9e={transformDrawer:Yn("transform",[_n("open, open-instant",We({transform:"none",visibility:"visible"})),_n("void",We({"box-shadow":"none",visibility:"hidden"})),Kt("void => open-instant",qt("0ms")),Kt("void <=> open, open-instant => void",qt("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},l9e=new ee("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function d9e(){return!1}}),VY=new ee("MAT_DRAWER_CONTAINER");let iO=(()=>{class t extends Dw{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(Tn),w(fn(()=>UY)),w(Ge),w(Y_),w(ze))};static#t=this.\u0275cmp=$e({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:[rt([{provide:Dw,useExisting:t}]),tt,St],ngContentSelectors:LY,decls:1,vars:0,template:function(i,r){1&i&&(Mn(),ct(0))},encapsulation:2,changeDetection:0})}return t})(),BY=(()=>{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=Dr(e)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=Dr(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(Dr(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 Te(!0),this._openedStream=this.openedChange.pipe(dn(d=>d),mt(()=>{})),this.openedStart=this._animationStarted.pipe(dn(d=>d.fromState!==d.toState&&0===d.toState.indexOf("open")),Bx(void 0)),this._closedStream=this.openedChange.pipe(dn(d=>!d),mt(()=>{})),this.closedStart=this._animationStarted.pipe(dn(d=>d.fromState!==d.toState&&"void"===d.toState),Bx(void 0)),this._destroyed=new Me,this.onPositionChanged=new Te,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(dn(d=>27===d.keyCode&&!this.disableClose&&!Co(d)),Et(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(Ge),w(YI),w(ea),w(Hn),w(ze),w(pw),w(yt,8),w(VY,8))};static#t=this.\u0275cmp=$e({type:t,selectors:[["mat-drawer"]],viewQuery:function(i,r){if(1&i&&vt(i9e,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&&ax("@transform.start",function(s){return r._animationStarted.next(s)})("@transform.done",function(s){return r._animationEnd.next(s)}),2&i&&(nx("@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:LY,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),v())},dependencies:[Dw],encapsulation:2,data:{animation:[c9e.transformDrawer]},changeDetection:0})}return t})(),UY=(()=>{class t{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=Dr(e)}get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(e){this._backdropOverride=null==e?null:Dr(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 Te,this._destroyed=new Me,this._doCheckSubject=new Me,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Me,e&&e.change.pipe(Et(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),s.change().pipe(Et(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=a}ngAfterContentInit(){this._allDrawers.changes.pipe(jr(this._allDrawers),Et(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(jr(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),Et(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(dn(i=>i.fromState!==i.toState),Et(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(Et(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e&&e.onPositionChanged.pipe(Et(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(Nn(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(Et(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(no,8),w(Ge),w(ze),w(Tn),w(cl),w(l9e),w(pi,8))};static#t=this.\u0275cmp=$e({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(i,r,o){if(1&i&&(cn(o,iO,5),cn(o,BY,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(iO,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:[rt([{provide:VY,useExisting:t}]),St],ngContentSelectors:o9e,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(r9e),q(0,s9e,1,2,"div",0),ct(1),ct(2,1),q(3,a9e,2,0,"mat-drawer-content")),2&i&&(gn(0,r.hasBackdrop?0:-1),x(3),gn(3,r._content?-1:3))},dependencies:[iO],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})(),u9e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({imports:[Ot,ll,ll,Ot]})}return t})();function h9e(t,n){if(1&t){const e=Se();_(0,"button",15),H("click",function(){const r=j(e).$implicit;return G(P().setFhirServer(r))}),C(1),v()}if(2&t){const e=n.$implicit;x(),nt(e.name)}}function f9e(t,n){if(1&t){const e=Se();_(0,"button",15),H("click",function(){const r=j(e).$implicit;return G(P(2).setEdition(r))}),C(1),v()}if(2&t){const e=n.$implicit;x(),nt(e.resource.version)}}function m9e(t,n){if(1&t&&(Gt(0),_(1,"button",20),C(2),v(),_(3,"mat-menu",null,5)(5,"span",17),C(6,"Versions / Releases"),v(),q(7,f9e,2,1,"button",16),v(),Wt()),2&t){const e=n.$implicit,i=zt(4);x(),E("matMenuTriggerFor",i),x(),nt(e.editionName),x(5),E("ngForOf",e.editions)}}function p9e(t,n){if(1&t){const e=Se();_(0,"button",15),H("click",function(){const r=j(e).$implicit;return G(P().setLanguage(r))}),C(1),v()}if(2&t){const e=n.$implicit;x(),nt(e)}}function g9e(t,n){if(1&t){const e=Se();_(0,"button",15),H("click",function(){const r=j(e).$implicit;return G(P(2).setFhirServer(r))}),C(1),v()}if(2&t){const e=n.$implicit;x(),nt(e.name)}}function _9e(t,n){if(1&t){const e=Se();_(0,"button",15),H("click",function(){const r=j(e).$implicit;return G(P(3).setEdition(r))}),C(1),v()}if(2&t){const e=n.$implicit;x(),nt(e.resource.version)}}function b9e(t,n){if(1&t&&(Gt(0),_(1,"button",20),C(2),v(),_(3,"mat-menu",null,5)(5,"span",17),C(6,"Versions / Releases"),v(),q(7,_9e,2,1,"button",16),v(),Wt()),2&t){const e=n.$implicit,i=zt(4);x(),E("matMenuTriggerFor",i),x(),nt(e.editionName),x(5),E("ngForOf",e.editions)}}function v9e(t,n){if(1&t){const e=Se();_(0,"button",15),H("click",function(){const r=j(e).$implicit;return G(P(2).setLanguage(r))}),C(1),v()}if(2&t){const e=n.$implicit;x(),nt(e)}}function y9e(t,n){if(1&t){const e=Se();_(0,"mat-toolbar")(1,"button",21),H("click",function(){return j(e),P(),G(zt(2).toggle())}),_(2,"mat-icon"),C(3,"menu"),v()(),xe(4,"img",22),_(5,"span",23),C(6,"SNOMED CT Implementation Demos"),v(),_(7,"span",24),C(8,"Implementation Demos"),v(),xe(9,"span",25),_(10,"button",26),C(11,"Select Demonstrator"),v(),_(12,"mat-menu",14,6)(14,"button",15),H("click",function(){return j(e),G(P().navigate("/allergies"))}),C(15,"Allergies CRG"),v(),_(16,"button",15),H("click",function(){return j(e),G(P().navigate("/sandbox"))}),C(17,"Terminology Bindings Sandbox"),v(),_(18,"button",15),H("click",function(){return j(e),G(P().navigate("/questionnaires"))}),C(19,"SNOMED & FHIR Questionnaires"),v(),_(20,"button",15),H("click",function(){return j(e),G(P().navigate("/context"))}),C(21,"Context Representation"),v(),_(22,"button",15),H("click",function(){return j(e),G(P().navigate("/snoguess"))}),C(23,"Playground"),v()(),_(24,"button",27),C(25),v(),_(26,"mat-menu",null,7),q(28,g9e,2,1,"button",16),v(),_(29,"button",27),C(30),v(),_(31,"mat-menu",14,8)(33,"span",17),C(34,"Editions"),v(),q(35,b9e,8,3,"ng-container",18),v(),_(36,"button",27),C(37),v(),_(38,"mat-menu",null,9),q(40,v9e,2,1,"button",16),v(),_(41,"a",28)(42,"mat-icon"),C(43,"info"),v()()()}if(2&t){const e=zt(13),i=zt(27),r=zt(32),o=zt(39),s=P();x(10),E("matMenuTriggerFor",e),x(14),E("matMenuTriggerFor",i),x(),Ze("FHIR Server: ",s.selectedServer.name,""),x(3),E("ngForOf",s.fhirServers),x(),E("matMenuTriggerFor",r),x(),nt(s.selectedEdition),x(5),E("ngForOf",s.editionsDetails),x(),E("matMenuTriggerFor",o),x(),nt(s.selectedLanguage),x(3),E("ngForOf",s.languages)}}let x9e=(()=>{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(TPe),w(YUe),w(io),w(hs),w(od))};static#t=this.\u0275cmp=$e({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),C(5,"Select Demonstrator"),v(),_(6,"mat-menu",14,1)(8,"button",15),H("click",function(){return j(o),G(r.navigate("/allergies"))}),C(9,"Allergies CRG"),v(),_(10,"button",15),H("click",function(){return j(o),G(r.navigate("/sandbox"))}),C(11,"Terminology Bindings Sandbox"),v(),_(12,"button",15),H("click",function(){return j(o),G(r.navigate("/questionnaires"))}),C(13,"SNOMED & FHIR Questionnaires"),v(),_(14,"button",15),H("click",function(){return j(o),G(r.navigate("/context"))}),C(15,"Context Representation"),v(),_(16,"button",15),H("click",function(){return j(o),G(r.navigate("/snoguess"))}),C(17,"Playground"),v()(),_(18,"button",13),C(19),v(),_(20,"mat-menu",null,2),q(22,h9e,2,1,"button",16),v(),_(23,"button",13),C(24),v(),_(25,"mat-menu",14,3)(27,"span",17),C(28,"Editions"),v(),q(29,m9e,8,3,"ng-container",18),v(),_(30,"button",13),C(31),v(),_(32,"mat-menu",null,4),q(34,p9e,2,1,"button",16),v()()(),q(35,y9e,44,10,"mat-toolbar",19),xe(36,"router-outlet"),v()}if(2&i){const o=zt(7),s=zt(21),a=zt(26),c=zt(33);x(4),E("matMenuTriggerFor",o),x(14),E("matMenuTriggerFor",s),x(),Ze("FHIR Server: ",r.selectedServer.name,""),x(3),E("ngForOf",r.fhirServers),x(),E("matMenuTriggerFor",a),x(),Ze("Edition: ",r.selectedEdition,""),x(5),E("ngForOf",r.editionsDetails),x(),E("matMenuTriggerFor",c),x(),Ze("Language: ",r.selectedLanguage,""),x(3),E("ngForOf",r.languages),x(),E("ngIf",!r.embeddedMode)}},dependencies:[Ko,zr,bI,t9e,q_e,Eo,na,To,Pa,mc,Wu,BY,UY],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 zY(t){return new le(3e3,!1)}function su(t){switch(t.length){case 0:return new Q_;case 1:return t[0];default:return new H9(t)}}function HY(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 $9e(t){return new le(3502,!1)}();return o}function rO(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&oO(e,"start",t)));break;case"done":t.onDone(()=>i(e&&oO(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&oO(e,"destroy",t)))}}function oO(t,n,e){const o=sO(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 sO(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 jY(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}const nze=typeof document>"u"?null:document.documentElement;function aO(t){const n=t.parentNode||t.host||null;return n===nze?null:n}let Wh=null,$Y=!1;function GY(t,n){for(;n;){if(n===t)return!0;n=aO(n)}return!1}function WY(t,n,e){if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]}let cO=(()=>{class t{validateStyleProperty(e){return function rze(t){Wh||(Wh=function oze(){return typeof document<"u"?document.body:null}()||{},$Y=!!Wh.style&&"WebkitAppearance"in Wh.style);let n=!0;return Wh.style&&!function ize(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Wh.style,!n&&$Y&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Wh.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return GY(e,i)}getParentElement(e){return aO(e)}query(e,i,r){return WY(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],c){return new Q_(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 lO{static#e=this.NOOP=new cO}class dO{}const aze=1e3,uO="ng-enter",OC="ng-leave",NC="ng-trigger",LC=".ng-trigger",QY="ng-animating",hO=".ng-animating";function Nl(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:fO(parseFloat(n[1]),n[2])}function fO(t,n){return"s"===n?t*aze:t}function VC(t,n,e){return t.hasOwnProperty("duration")?t:function lze(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(zY()),{duration:0,delay:0,easing:""};r=fO(parseFloat(a[1]),a[2]);const c=a[3];null!=c&&(o=fO(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 w9e(){return new le(3100,!1)}()),a=!0),o<0&&(n.push(function k9e(){return new le(3101,!1)}()),a=!0),a&&n.splice(c,0,zY())}return{duration:r,delay:o,easing:s}}(t,n,e)}function Oc(t,n,e){n.forEach((i,r)=>{const o=pO(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=pO(i);t.style[r]=""})}function pv(t){return Array.isArray(t)?1==t.length?t[0]:function K_e(t,n=null){return{type:Ft.Sequence,steps:t,options:n}}(t):t}const mO=new RegExp("{{\\s*(.+?)\\s*}}","g");function XY(t){let n=[];if("string"==typeof t){let e;for(;e=mO.exec(t);)n.push(e[1]);mO.lastIndex=0}return n}function gv(t,n,e){const i=`${t}`,r=i.replace(mO,(o,s)=>{let a=n[s];return null==a&&(e.push(function E9e(t){return new le(3003,!1)}()),a=""),a.toString()});return r==i?t:r}const hze=/-+([a-z0-9])/g;function pO(t){return t.replace(hze,(...n)=>n[1].toUpperCase())}function Qs(t,n,e){switch(n.type){case Ft.Trigger:return t.visitTrigger(n,e);case Ft.State:return t.visitState(n,e);case Ft.Transition:return t.visitTransition(n,e);case Ft.Sequence:return t.visitSequence(n,e);case Ft.Group:return t.visitGroup(n,e);case Ft.Animate:return t.visitAnimate(n,e);case Ft.Keyframes:return t.visitKeyframes(n,e);case Ft.Style:return t.visitStyle(n,e);case Ft.Reference:return t.visitReference(n,e);case Ft.AnimateChild:return t.visitAnimateChild(n,e);case Ft.AnimateRef:return t.visitAnimateRef(n,e);case Ft.Query:return t.visitQuery(n,e);case Ft.Stagger:return t.visitStagger(n,e);default:throw function T9e(t){return new le(3004,!1)}()}}function gO(t,n){return window.getComputedStyle(t)[n]}const pze=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 YY extends dO{normalizePropertyName(n,e){return pO(n)}normalizeStyleValue(n,e,i,r){let o="";const s=i.toString().trim();if(pze.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 S9e(t,n){return new le(3005,!1)}())}return s+o}}const BC="*";const UC=new Set(["true","1"]),zC=new Set(["false","0"]);function ZY(t,n){const e=UC.has(t)||zC.has(t),i=UC.has(n)||zC.has(n);return(r,o)=>{let s=t==BC||t==r,a=n==BC||n==o;return!s&&e&&"boolean"==typeof r&&(s=r?UC.has(t):zC.has(t)),!a&&i&&"boolean"==typeof o&&(a=o?UC.has(n):zC.has(n)),s&&a}}const vze=new RegExp("s*:selfs*,?","g");function _O(t,n,e,i){return new yze(t).build(n,e,i)}class yze{constructor(n){this._driver=n}build(n,e,i){const r=new kze(e);return this._resetContextStyleTimingState(r),Qs(this,pv(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 D9e(){return new le(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),a.type==Ft.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==Ft.Transition){const c=this.visitTransition(a,e);i+=c.queryCount,r+=c.depCount,s.push(c)}else e.errors.push(function I9e(){return new le(3007,!1)}())}),{type:Ft.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=>{XY(c).forEach(l=>{s.hasOwnProperty(l)||o.add(l)})})}),o.size&&e.errors.push(function A9e(t,n){return new le(3008,!1)}(0,o.values()))}return{type:Ft.State,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=Qs(this,pv(n.animation),e),r=function gze(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function _ze(t,n,e){if(":"==t[0]){const c=function bze(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 B9e(t){return new le(3015,!1)}()),n;const r=i[1],o=i[2],s=i[3];n.push(ZY(r,s)),"<"==o[0]&&(r!=BC||s!=BC)&&n.push(ZY(s,r))}(i,e,n)):e.push(t),e}(n.expr,e.errors);return{type:Ft.Transition,matchers:r,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Qh(n.options)}}visitSequence(n,e){return{type:Ft.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:Ft.Group,steps:o,options:Qh(n.options)}}visitAnimate(n,e){const i=function Eze(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return bO(VC(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=bO(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=VC(e,n);return bO(r.duration,r.delay,r.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let r,o=n.styles?n.styles:We({});if(o.type==Ft.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:Ft.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:Ft.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 R9e(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 uze(t,n,e){const i=n.params||{},r=XY(t);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function C9e(t){return new le(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:Ft.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function P9e(){return new le(3011,!1)}()),i;let o=0;const s=[];let a=!1,c=!1,l=0;const d=n.steps.map(b=>{const y=this._makeStyleAst(b,e);let k=null!=y.offset?y.offset:function Cze(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}(y.styles),D=0;return null!=k&&(o++,D=y.offset=k),c=c||D<0||D>1,a=a||D0&&o{const k=h>0?y==f?1:h*y:s[y],D=k*p;e.currentTime=m+g.delay+D,g.duration=D,this._validateStyleAst(b,e),b.offset=k,i.styles.push(b)}),i}visitReference(n,e){return{type:Ft.Reference,animation:Qs(this,pv(n.animation),e),options:Qh(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:Ft.AnimateChild,options:Qh(n.options)}}visitAnimateRef(n,e){return{type:Ft.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 xze(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(vze,"")),t=t.replace(/@\*/g,LC).replace(/@\w+/g,e=>LC+"-"+e.slice(1)).replace(/:animating/g,hO),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+o:o,qs(e.collectedStyles,e.currentQuerySelector,new Map);const a=Qs(this,pv(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:Ft.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 L9e(){return new le(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:VC(n.timings,e.errors,!0);return{type:Ft.Stagger,animation:Qs(this,pv(n.animation),e),timings:i,options:null}}}class kze{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 wze(t){return t?{...t}:null}(t.params)):t={},t}function bO(t,n,e){return{duration:t,delay:n,easing:e}}function vO(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 HC{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 Dze=new RegExp(":enter","g"),Aze=new RegExp(":leave","g");function yO(t,n,e,i,r,o=new Map,s=new Map,a,c,l=[]){return(new Mze).buildKeyframes(t,n,e,i,r,o,s,a,c,l)}class Mze{buildKeyframes(n,e,i,r,o,s,a,c,l,d=[]){l=l||new HC;const u=new xO(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()):[vO(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(gv(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==Ft.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=jC);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 VC(e.params?gv(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==Ft.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===Ft.Style||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=jC);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 jC={};class xO{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=jC,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new $C(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]=gv(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 xO(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=jC,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 Rze(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(Dze,"."+this._enterClassName)).replace(Aze,"."+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 V9e(t){return new le(3014,!1)}()),a}}class $C{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 $C(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 Pze(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=gv(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 vO(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class Rze extends $C{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",tZ(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",tZ((e+f*i)/s)),o.push(h)}i=s,e=0,r="",n=o}return vO(this.element,n,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function tZ(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}function nZ(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 wO={};class iZ{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,r){return function Fze(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||wO,m=this.buildStyles(i,a&&a.params||wO,u),g=c&&c.params||wO,p=this.buildStyles(r,g,u),b=new Set,y=new Map,k=new Map,D="void"===r,U={params:rZ(g,h),delay:this.ast.options?.delay},A=d?[]:yO(n,e,this.ast.animation,o,s,m,p,U,l,u);let T=0;return A.forEach(V=>{T=Math.max(V.duration+V.delay,T)}),u.length?nZ(e,this._triggerName,i,r,D,m,p,[],[],y,k,T,u):(A.forEach(V=>{const B=V.element,X=qs(y,B,new Set);V.preStyleProps.forEach(Q=>X.add(Q));const ne=qs(k,B,new Set);V.postStyleProps.forEach(Q=>ne.add(Q)),B!==e&&b.add(B)}),nZ(e,this._triggerName,i,r,D,m,p,A,[...b.values()],y,k,T))}}function rZ(t,n){const e={...n};return Object.entries(t).forEach(([i,r])=>{null!=r&&(e[i]=r)}),e}class Oze{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,r=rZ(n,this.defaultParams);return this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=gv(s,r,e));const c=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,c,s,e),i.set(a,s)})}),i}}class Lze{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 Oze(r.style,r.options&&r.options.params||{},i))}),oZ(this.states,"true","1"),oZ(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new iZ(n,r,this.states))}),this.fallbackTransition=function Vze(t,n,e){return new iZ(t,{type:Ft.Transition,animation:{type:Ft.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 oZ(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 Bze=new HC;class Uze{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=_O(this._driver,e,i,[]);if(i.length)throw function G9e(t){return new le(3503,!1)}();this._animations.set(n,o)}_buildPlayer(n,e,i){const r=n.element,o=HY(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=yO(this._driver,e,o,uO,OC,new Map,new Map,i,Bze,r),s.forEach(d=>{const u=qs(a,d.element,new Map);d.postStyleProps.forEach(h=>u.set(h,null))})):(r.push(function W9e(){return new le(3300,!1)}()),s=[]),r.length)throw function q9e(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 Q9e(t){return new le(3301,!1)}();return e}listen(n,e,i,r){const o=sO(e,"","","");return rO(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 sZ="ng-animate-queued",kO="ng-animate-disabled",Gze=[],aZ={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Wze={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ja="__ng_removed";class CO{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function Xze(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 _v="void",EO=new CO(_v);class qze{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,pa(e,this._hostClassName)}listen(n,e,i,r){if(!this._triggers.has(e))throw function K9e(t,n){return new le(3302,!1)}();if(null==i||0==i.length)throw function X9e(t){return new le(3303,!1)}();if(!function Yze(t){return"start"==t||"done"==t}(i))throw function Y9e(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)||(pa(n,NC),pa(n,NC+"-"+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 Z9e(t){return new le(3401,!1)}();return e}trigger(n,e,i,r=!0){const o=this._getTrigger(e),s=new TO(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(pa(n,NC),pa(n,NC+"-"+e),this._engine.statesByElement.set(n,a=new Map));let c=a.get(e);const l=new CO(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a.set(e,l),c||(c=EO),l.value!==_v&&c.value===l.value){if(!function e7e(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,b)})}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||(pa(n,sZ),s.onStart(()=>{Yp(n,sZ)})),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 b=p.indexOf(s);b>=0&&p.splice(b,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,LC,!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,_v,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 CO(_v),u=new TO(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===aZ)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){pa(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=sO(o,i.triggerName,i.fromState.value,i.toState.value);c._data=n,rO(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 Qze{_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 qze(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(GC(e)){const o=this._fetchNamespace(n);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(n,e,i,r){if(!GC(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),pa(n,kO)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Yp(n,kO))}removeNode(n,e,i){if(GC(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 GC(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,LC,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,hO,!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]=aZ,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(kO)&&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 J9e(t){return new le(3402,!1)}()}_flushAnimations(n,e){const i=new HC,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 J=this.driver.query(ae,".ng-animate-queued",!0);for(let ye=0;ye{const ye=uO+g++;m.set(J,ye),ae.forEach(pe=>pa(pe,ye))});const p=[],b=new Set,y=new Set;for(let ae=0;aeb.add(pe)):y.add(J))}const k=new Map,D=dZ(h,Array.from(b));D.forEach((ae,J)=>{const ye=OC+g++;k.set(J,ye),ae.forEach(pe=>pa(pe,ye))}),n.push(()=>{f.forEach((ae,J)=>{const ye=m.get(J);ae.forEach(pe=>Yp(pe,ye))}),D.forEach((ae,J)=>{const ye=k.get(J);ae.forEach(pe=>Yp(pe,ye))}),p.forEach(ae=>{this.processLeaveNode(ae)})});const U=[],A=[];for(let ae=this._namespaceList.length-1;ae>=0;ae--)this._namespaceList[ae].drainQueuedTransitions(e).forEach(ye=>{const pe=ye.player,Xe=ye.element;if(U.push(pe),this.collectedEnterElements.length){const z=Xe[ja];if(z&&z.setForMove){if(z.previousTriggersValues&&z.previousTriggersValues.has(ye.triggerName)){const he=z.previousTriggersValues.get(ye.triggerName),Ee=this.statesByElement.get(ye.element);if(Ee&&Ee.has(ye.triggerName)){const He=Ee.get(ye.triggerName);He.value=he,Ee.set(ye.triggerName,He)}}return void pe.destroy()}}const ge=!u||!this.driver.containsElement(u,Xe),at=k.get(Xe),Dt=m.get(Xe),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(Xe,F.fromStyles)),pe.onDestroy(()=>Oc(Xe,F.toStyles)),void r.push(pe);if(ye.isFallbackTransition)return pe.onStart(()=>qh(Xe,F.fromStyles)),pe.onDestroy(()=>Oc(Xe,F.toStyles)),void r.push(pe);const te=[];F.timelines.forEach(z=>{z.stretchStartingKeyframe=!0,this.disabledNodes.has(z.element)||te.push(z)}),F.timelines=te,i.append(Xe,F.timelines),s.push({instruction:F,player:pe,element:Xe}),F.queriedElements.forEach(z=>qs(a,z,[]).push(pe)),F.preStyleProps.forEach((z,he)=>{if(z.size){let Ee=c.get(he);Ee||c.set(he,Ee=new Set),z.forEach((He,Qe)=>Ee.add(Qe))}}),F.postStyleProps.forEach((z,he)=>{let Ee=l.get(he);Ee||l.set(he,Ee=new Set),z.forEach((He,Qe)=>Ee.add(Qe))})});if(A.length){const ae=[];A.forEach(J=>{ae.push(function eze(t,n){return new le(3505,!1)}())}),U.forEach(J=>J.destroy()),this.reportError(ae)}const T=new Map,V=new Map;s.forEach(ae=>{const J=ae.element;i.has(J)&&(V.set(J,J),this._beforeAnimationBuild(ae.player.namespaceId,ae.instruction,T))}),r.forEach(ae=>{const J=ae.element;this._getPreviousPlayers(J,!1,ae.namespaceId,ae.triggerName,null).forEach(pe=>{qs(T,J,[]).push(pe),pe.destroy()})});const B=p.filter(ae=>hZ(ae,c,l)),X=new Map;lZ(X,this.driver,y,l,ol).forEach(ae=>{hZ(ae,c,l)&&B.push(ae)});const Q=new Map;f.forEach((ae,J)=>{lZ(Q,this.driver,new Set(ae),c,"!")}),B.forEach(ae=>{const J=X.get(ae),ye=Q.get(ae);X.set(ae,new Map([...J?.entries()??[],...ye?.entries()??[]]))});const Ce=[],Ae=[],ve={};s.forEach(ae=>{const{element:J,player:ye,instruction:pe}=ae;if(i.has(J)){if(d.has(J))return ye.onDestroy(()=>Oc(J,pe.toStyles)),ye.disabled=!0,ye.overrideTotalTime(pe.totalTime),void r.push(ye);let Xe=ve;if(V.size>1){let at=J;const Dt=[];for(;at=at.parentNode;){const F=V.get(at);if(F){Xe=F;break}Dt.push(at)}Dt.forEach(F=>V.set(F,Xe))}const ge=this._buildAnimation(ye.namespaceId,pe,T,o,Q,X);if(ye.setRealPlayer(ge),Xe===ve)Ce.push(ye);else{const at=this.playersByElement.get(Xe);at&&at.length&&(ye.parentPlayer=su(at)),r.push(ye)}}else qh(J,pe.fromStyles),ye.onDestroy(()=>Oc(J,pe.toStyles)),Ae.push(ye),d.has(J)&&r.push(ye)}),Ae.forEach(ae=>{const J=o.get(ae.element);if(J&&J.length){const ye=su(J);ae.setRealPlayer(ye)}}),r.forEach(ae=>{ae.parentPlayer?ae.syncPlayerEvents(ae.parentPlayer):ae.destroy()});for(let ae=0;ae!ge.destroyed);Xe.length?Zze(this,J,Xe):this.processLeaveNode(J)}return p.length=0,Ce.forEach(ae=>{this.players.push(ae),ae.onDone(()=>{ae.destroy();const J=this.players.indexOf(ae);this.players.splice(J,1)}),ae.play()}),Ce}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==_v;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 Q_(m.duration,m.delay);const b=g!==c,y=function Jze(t){const n=[];return uZ(t,n),n}((i.get(g)||Gze).map(T=>T.getRealPlayer())).filter(T=>!!T.element&&T.element===g),k=o.get(g),D=s.get(g),U=HY(this._normalizer,m.keyframes,k,D),A=this._buildPlayer(m,U,y);if(m.subTimeline&&r&&u.add(g),b){const T=new TO(n,a,g);T.setRealPlayer(A),l.push(T)}return A});l.forEach(m=>{qs(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>function Kze(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=>pa(m,QY));const f=su(h);return f.onDestroy(()=>{d.forEach(m=>Yp(m,QY)),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 Q_(n.duration,n.delay)}}class TO{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new Q_,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=>rO(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 GC(t){return t&&1===t.nodeType}function cZ(t,n){const e=t.style.display;return t.style.display=n??"none",e}function lZ(t,n,e,i,r){const o=[];e.forEach(c=>o.push(cZ(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]=Wze,s.push(l))}),t.set(l,d)});let a=0;return e.forEach(c=>cZ(c,o[a++])),s}function dZ(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 pa(t,n){t.classList?.add(n)}function Yp(t,n){t.classList?.remove(n)}function Zze(t,n,e){su(e).onDone(()=>t.processLeaveNode(n))}function uZ(t,n){for(let e=0;er.add(o)):n.set(t,i),e.delete(t),!0}class bv{constructor(n,e,i,r){this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(o,s)=>{},this._transitionEngine=new Qze(n.body,e,i,r),this._timelineEngine=new Uze(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=_O(this._driver,o,c,[]);if(c.length)throw function j9e(t,n){return new le(3404,!1)}();a=function Nze(t,n,e){return new Lze(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]=jY(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]=jY(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 vv{static#e=this.initialStylesByElement=new WeakMap;constructor(n,e,i){this._element=n,this._startStyles=e,this._endStyles=i,this._state=0;let r=vv.initialStylesByElement.get(n);r||vv.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&&(vv.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 SO(t){let n=null;return t.forEach((e,i)=>{(function n7e(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class fZ{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:gO(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class mZ{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return GY(n,e)}getParentElement(n){return aO(n)}query(n,e,i){return WY(n,e,i)}computeStyle(n,e,i){return gO(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 fZ);(function fze(t,n){return 0===t||0===n})(i,r)&&d.forEach(f=>{f.currentSnapshot.forEach((m,g)=>l.set(g,m))});let u=function dze(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 mze(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,gO(t,a)))}}return n}(n,u,l);const h=function t7e(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=SO(n[0]),n.length>1&&(i=SO(n[n.length-1]))):n instanceof Map&&(e=SO(n)),e||i?new vv(t,e,i):null}(n,u);return new fZ(n,u,c,h)}}const pZ="@.disabled";class gZ{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==pZ?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 i7e extends gZ{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==pZ?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 r7e(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 o7e(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 s7e{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 gZ("",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 i7e(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 a7e=(()=>{class t extends bv{constructor(e,i,r){super(e,i,r,fe(Vy,{optional:!0}))}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(i){return new(i||t)(Y(yt),Y(lO),Y(dO))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac})}return t})();const _Z=[{provide:dO,useFactory:function c7e(){return new YY}},{provide:bv,useClass:a7e},{provide:iS,useFactory:function l7e(t,n,e){return new s7e(t,n,e)},deps:[HD,bv,ze]}],DO=[{provide:lO,useFactory:()=>new mZ},{provide:pi,useValue:"BrowserAnimations"},..._Z],bZ=[{provide:lO,useClass:cO},{provide:pi,useValue:"NoopAnimations"},..._Z];let d7e=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?bZ:DO}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({providers:DO,imports:[t6]})}return t})(),u7e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({imports:[Ot,Ot]})}return t})(),z7e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t});static#n=this.\u0275inj=kt({imports:[qI,ac,Ot,q_,A9,u7e]})}return t})();$m("firebase","10.9.0","app"),vj({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 $7e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=Ct({type:t,bootstrap:[x9e]});static#n=this.\u0275inj=kt({imports:[vge,t6,nwe,CPe,d7e,g1e,n9e,z9,nbe,gbe,G0e,KCe,a1,Hye,wbe,Qye,Qve,Jxe,Ibe,Jbe,bwe,X2,Iwe,Vwe,q1e,nke,A1e,pke,z7e,hCe,X2,u9e]})}return t})();khe().bootstrapModule($7e).catch(t=>console.error(t))},867:(Vr,Yh,ho)=>{const Lc=ho(293).a,me=ho(687).array;Vr.exports=class Zp{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 ar=new RegExp(`\\b${ji.replace(/(\W)/g,"\\$1")}\\b`,"gi");return!this.exclude.includes(ji.toLowerCase())&&ar.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:Vr=>{Vr.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:(Vr,Yh,ho)=>{Vr.exports={object:ho(424),array:ho(402),regex:ho(658)}},424:Vr=>{Vr.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:Vr=>{Vr.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(Vr,Yh){var ho,me;void 0!==(me="function"==typeof(ho=function(){"use strict";function hi(Fn,qn,ks){var Qn=new XMLHttpRequest;Qn.open("GET",Fn),Qn.responseType="blob",Qn.onload=function(){cu(Qn.response,qn,ks)},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 ar="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,jt=ar.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),cu=ar.saveAs||("object"!=typeof window||window!==ar?function(){}:"download"in HTMLAnchorElement.prototype&&!jt?function(Fn,qn,ks){var Qn=ar.URL||ar.webkitURL,jo=document.createElement("a");jo.download=qn=qn||Fn.name||"download",jo.rel="noopener","string"==typeof Fn?(jo.href=Fn,jo.origin===location.origin?ji(jo):si(jo.href)?hi(Fn,qn,ks):ji(jo,jo.target="_blank")):(jo.href=Qn.createObjectURL(Fn),setTimeout(function(){Qn.revokeObjectURL(jo.href)},4e4),setTimeout(function(){ji(jo)},0))}:"msSaveOrOpenBlob"in navigator?function(Fn,qn,ks){if(qn=qn||Fn.name||"download","string"!=typeof Fn)navigator.msSaveOrOpenBlob(function Zp(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,ks),qn);else if(si(Fn))hi(Fn,qn,ks);else{var Qn=document.createElement("a");Qn.href=Fn,Qn.target="_blank",setTimeout(function(){ji(Qn)})}}:function(Fn,qn,ks,Qn){if((Qn=Qn||open("","_blank"))&&(Qn.document.title=Qn.document.body.innerText="downloading..."),"string"==typeof Fn)return hi(Fn,qn,ks);var jo="application/octet-stream"===Fn.type,kv=/constructor/i.test(ar.HTMLElement)||ar.safari,Jp=/CriOS\/[\d]+/.test(navigator.userAgent);if((Jp||jo&&kv||jt)&&typeof FileReader<"u"){var Zh=new FileReader;Zh.onloadend=function(){var Vl=Zh.result;Vl=Jp?Vl:Vl.replace(/^data:[^;]*;/,"data:attachment/file;"),Qn?Qn.location.href=Vl:location=Vl,Qn=null},Zh.readAsDataURL(Fn)}else{var eg=ar.URL||ar.webkitURL,Jh=eg.createObjectURL(Fn);Qn?Qn.location=Jh:location.href=Jh,Qn=null,setTimeout(function(){eg.revokeObjectURL(Jh)},4e4)}});ar.saveAs=cu.saveAs=cu,Vr.exports=cu})?ho.apply(Yh,[]):ho)&&(Vr.exports=me)},293:Vr=>{"use strict";Vr.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"]}')}},Vr=>{Vr(Vr.s=169)}]); \ No newline at end of file diff --git a/docs/main.2830fddb2a03d392.js b/docs/main.2830fddb2a03d392.js deleted file mode 100644 index 7de4e3a..0000000 --- a/docs/main.2830fddb2a03d392.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunksct_implementation_demonstrator=self.webpackChunksct_implementation_demonstrator||[]).push([[792],{169:(Or,Hh,ao)=>{"use strict";function Dc(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 fe(t){return function(){var n=this,e=arguments;return new Promise(function(i,r){var o=t.apply(n,e);function s(c){Dc(o,i,r,s,a,"next",c)}function a(c){Dc(o,i,r,s,a,"throw",c)}s(void 0)})}}let ui=null,Ui=1;const rr=Symbol("SIGNAL");function jt(t){const n=ui;return ui=t,n}function _b(t){if((!qp(t)||t.dirty)&&(t.dirty||t.lastCleanEpoch!==Ui)){if(!t.producerMustRecompute(t)&&!Hk(t))return t.dirty=!1,void(t.lastCleanEpoch=Ui);t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=Ui}}function Hk(t){Wh(t);for(let n=0;n0}function Wh(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}let xO=null;function Rn(t){return"function"==typeof t}function $k(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 Gk=$k(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 bb(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class $t{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(Rn(i))try{i()}catch(o){n=o instanceof Gk?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{TO(o)}catch(s){n=n??[],s instanceof Gk?n=[...n,...s.errors]:n.push(s)}}if(n)throw new Gk(n)}}add(n){var e;if(n&&n!==this)if(this.closed)TO(n);else{if(n instanceof $t){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)&&bb(e,n)}remove(n){const{_finalizers:e}=this;e&&bb(e,n),n instanceof $t&&n._removeParent(this)}}$t.EMPTY=(()=>{const t=new $t;return t.closed=!0,t})();const kO=$t.EMPTY;function EO(t){return t instanceof $t||t&&"closed"in t&&Rn(t.remove)&&Rn(t.add)&&Rn(t.unsubscribe)}function TO(t){Rn(t)?t():t.unsubscribe()}const Jd={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},yb={setTimeout(t,n,...e){const{delegate:i}=yb;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=yb;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function SO(t){yb.setTimeout(()=>{const{onUnhandledError:n}=Jd;if(!n)throw t;n(t)})}function xb(){}const EZ=Wk("C",void 0,void 0);function Wk(t,n,e){return{kind:t,value:n,error:e}}let eu=null;function wb(t){if(Jd.useDeprecatedSynchronousErrorHandling){const n=!eu;if(n&&(eu={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:i}=eu;if(eu=null,e)throw i}}else t()}class qk extends $t{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,EO(n)&&n.add(this)):this.destination=RZ}static create(n,e,i){return new qh(n,e,i)}next(n){this.isStopped?Kk(function SZ(t){return Wk("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?Kk(function TZ(t){return Wk("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Kk(EZ,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 IZ=Function.prototype.bind;function Qk(t,n){return IZ.call(t,n)}class AZ{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){Cb(i)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){Cb(i)}else Cb(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){Cb(e)}}}class qh extends qk{constructor(n,e,i){let r;if(super(),Rn(n)||!n)r={next:n??void 0,error:e??void 0,complete:i??void 0};else{let o;this&&Jd.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&Qk(n.next,o),error:n.error&&Qk(n.error,o),complete:n.complete&&Qk(n.complete,o)}):r=n}this.destination=new AZ(r)}}function Cb(t){Jd.useDeprecatedSynchronousErrorHandling?function DZ(t){Jd.useDeprecatedSynchronousErrorHandling&&eu&&(eu.errorThrown=!0,eu.error=t)}(t):SO(t)}function Kk(t,n){const{onStoppedNotification:e}=Jd;e&&yb.setTimeout(()=>e(t,n))}const RZ={closed:!0,next:xb,error:function MZ(t){throw t},complete:xb},Xk="function"==typeof Symbol&&Symbol.observable||"@@observable";function Sl(t){return t}function DO(t){return 0===t.length?Sl:1===t.length?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}let Fn=(()=>{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 OZ(t){return t&&t instanceof qk||function FZ(t){return t&&Rn(t.next)&&Rn(t.error)&&Rn(t.complete)}(t)&&EO(t)}(e)?e:new qh(e,i,r);return wb(()=>{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=IO(i))((r,o)=>{const s=new qh({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)}[Xk](){return this}pipe(...e){return DO(e)(this)}toPromise(e){return new(e=IO(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return t.create=n=>new t(n),t})();function IO(t){var n;return null!==(n=t??Jd.Promise)&&void 0!==n?n:Promise}const NZ=$k(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Re=(()=>{class t extends Fn{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new AO(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new NZ}next(e){wb(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){wb(()=>{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(){wb(()=>{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?kO:(this.currentObservers=null,o.push(e),new $t(()=>{this.currentObservers=null,bb(o,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){const e=new Fn;return e.source=this,e}}return t.create=(n,e)=>new AO(n,e),t})();class AO extends Re{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:kO}}class Ei extends Re{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 MO(t){return Rn(t?.lift)}function Pi(t){return n=>{if(MO(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 yi(t,n,e,i,r){return new LZ(t,n,e,i,r)}class LZ extends qk{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 Pi((e,i)=>{let r=0;e.subscribe(yi(i,o=>{i.next(t.call(n,o,r++))}))})}const RO="https://g.co/ng/security#xss";class ce extends Error{constructor(n,e){super(function Qh(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,e)),this.code=n}}function Ic(t){return{toString:t}.toString()}const Xh="__parameters__";function Zh(t,n,e){return Ic(()=>{const i=function Yk(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(Xh)?c[Xh]:Object.defineProperty(c,Xh,{value:[]})[Xh];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 Vn=globalThis;function Gn(t){for(let n in t)if(t[n]===Gn)return n;throw Error("Could not find renamed property on target object.")}function BZ(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function gr(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(gr).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 Zk(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const VZ=Gn({__forward_ref__:Gn});function hn(t){return t.__forward_ref__=hn,t.toString=function(){return gr(this())},t}function It(t){return Eb(t)?t():t}function Eb(t){return"function"==typeof t&&t.hasOwnProperty(VZ)&&t.__forward_ref__===hn}function xe(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function bt(t){return{providers:t.providers||[],imports:t.imports||[]}}function Tb(t){return NO(t,Db)||NO(t,LO)}function NO(t,n){return t.hasOwnProperty(n)?t[n]:null}function Sb(t){return t&&(t.hasOwnProperty(Jk)||t.hasOwnProperty(GZ))?t[Jk]:null}const Db=Gn({\u0275prov:Gn}),Jk=Gn({\u0275inj:Gn}),LO=Gn({ngInjectableDef:Gn}),GZ=Gn({ngInjectorDef:Gn});class ee{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=xe({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function rE(t){return t&&!!t.\u0275providers}const Qp=Gn({\u0275cmp:Gn}),oE=Gn({\u0275dir:Gn}),sE=Gn({\u0275pipe:Gn}),VO=Gn({\u0275mod:Gn}),Ac=Gn({\u0275fac:Gn}),Kp=Gn({__NG_ELEMENT_ID__:Gn}),UO=Gn({__NG_ENV_ID__:Gn});function Bt(t){return"string"==typeof t?t:null==t?"":String(t)}function aE(t,n){throw new ce(-201,!1)}var fn=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}(fn||{});let cE;function zO(){return cE}function Jo(t){const n=cE;return cE=t,n}function HO(t,n,e){const i=Tb(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&fn.Optional?null:void 0!==n?n:void aE()}const Xp={},lE="__NG_DI_FLAG__",Ib="ngTempTokenPath",YZ=/\n/gm,jO="__source";let Jh;function Il(t){const n=Jh;return Jh=t,n}function eJ(t,n=fn.Default){if(void 0===Jh)throw new ce(-203,!1);return null===Jh?HO(t,void 0,n):Jh.get(t,n&fn.Optional?null:void 0,n)}function X(t,n=fn.Default){return(zO()||eJ)(It(t),n)}function be(t,n=fn.Default){return X(t,Ab(n))}function Ab(t){return typeof t>"u"||"number"==typeof t?t:(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function dE(t){const n=[];for(let e=0;eArray.isArray(e)?tf(e,n):n(e))}function GO(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Mb(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function bs(t,n,e){let i=nf(t,n);return i>=0?t[1|i]=e:(i=~i,function WO(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 hE(t,n){const e=nf(t,n);if(e>=0)return t[1|e]}function nf(t,n){return function qO(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(da(i))return!1;s=!0}}}}else{if(!s&&!da(i)&&!da(c))return!1;if(s&&da(c))continue;s=!1,i=c|1&i}}return da(i)||s}function da(t){return!(1&t)}function hJ(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&&!da(s)&&(n+=eN(o,r),r=""),i=s,o=o||!da(i);e++}return""!==r&&(n+=eN(o,r)),n}function Ge(t){return Ic(()=>{const n=nN(t),e={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Fb.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||la.Emulated,styles:t.styles||Dn,_:null,schemas:t.schemas||null,tView:null,id:""};iN(e);const i=t.dependencies;return e.directiveDefs=Ob(i,!1),e.pipeDefs=Ob(i,!0),e.id=function CJ(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 yJ(t){return sn(t)||_r(t)}function xJ(t){return null!==t}function wt(t){return Ic(()=>({type:t.type,bootstrap:t.bootstrap||Dn,declarations:t.declarations||Dn,imports:t.imports||Dn,exports:t.exports||Dn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function tN(t,n){if(null==t)return Oa;const e={};for(const i in t)if(t.hasOwnProperty(i)){const r=t[i];let o,s,a=ue.None;Array.isArray(r)?(a=r[0],o=r[1],s=r[2]??o):(o=r,s=r),n?(e[o]=a!==ue.None?[i,a]:i,n[o]=s):e[o]=i}return e}function J(t){return Ic(()=>{const n=nN(t);return iN(n),n})}function co(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 sn(t){return t[Qp]||null}function _r(t){return t[oE]||null}function Qr(t){return t[sE]||null}function lo(t,n){const e=t[VO]||null;if(!e&&!0===n)throw new Error(`Type ${gr(t)} does not have '\u0275mod' property.`);return e}function nN(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||Oa,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||Dn,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:tN(t.inputs,n),outputs:tN(t.outputs),debugInfo:null}}function iN(t){t.features?.forEach(n=>n(t))}function Ob(t,n){if(!t)return null;const e=n?Qr:yJ;return()=>("function"==typeof t?t():t).map(i=>e(i)).filter(xJ)}function kJ(...t){return{\u0275providers:gE(0,t),\u0275fromNgModule:!0}}function gE(t,...n){const e=[],i=new Set;let r;const o=s=>{e.push(s)};return tf(n,s=>{const a=s;Nb(a,o,[],i)&&(r||=[],r.push(a))}),void 0!==r&&rN(r,o),e}function rN(t,n){for(let e=0;e{n(o,i)})}}function Nb(t,n,e,i){if(!(t=It(t)))return!1;let r=null,o=Sb(t);const s=!o&&sn(t);if(o||s){if(s&&!s.standalone)return!1;r=t}else{const c=t.ngModule;if(o=Sb(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)Nb(l,n,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let l;i.add(r);try{tf(o.imports,d=>{Nb(d,n,e,i)&&(l||=[],l.push(d))})}finally{}void 0!==l&&rN(l,n)}if(!a){const l=tu(r)||(()=>new r);n({provide:r,useFactory:l,deps:Dn},r),n({provide:fE,useValue:r,multi:!0},r),n({provide:nu,useValue:()=>X(r),multi:!0},r)}const c=o.providers;if(null!=c&&!a){const l=t;_E(c,d=>{n(d,l)})}}}return r!==t&&void 0!==t.providers}function _E(t,n){for(let e of t)rE(e)&&(e=e.\u0275providers),Array.isArray(e)?_E(e,n):n(e)}const EJ=Gn({provide:String,useValue:Gn});function vE(t){return null!==t&&"object"==typeof t&&EJ in t}function iu(t){return"function"==typeof t}const bE=new ee(""),Lb={},SJ={};let yE;function Bb(){return void 0===yE&&(yE=new Pb),yE}class ts{}class rf extends ts{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,wE(n,s=>this.processProvider(s)),this.records.set(QO,sf(void 0,this)),r.has("environment")&&this.records.set(ts,sf(void 0,this));const o=this.records.get(bE);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(fE,Dn,fn.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const n=jt(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(),jt(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const e=Il(this),i=Jo(void 0);try{return n()}finally{Il(e),Jo(i)}}get(n,e=Xp,i=fn.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(UO))return n[UO](this);i=Ab(i);const o=Il(this),s=Jo(void 0);try{if(!(i&fn.SkipSelf)){let c=this.records.get(n);if(void 0===c){const l=function RJ(t){return"function"==typeof t||"object"==typeof t&&t instanceof ee}(n)&&Tb(n);c=l&&this.injectableDefInScope(l)?sf(xE(n),Lb):null,this.records.set(n,c)}if(null!=c)return this.hydrate(n,c)}return(i&fn.Self?Bb():this.parent).get(n,e=i&fn.Optional&&e===Xp?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[Ib]=a[Ib]||[]).unshift(gr(n)),o)throw a;return function nJ(t,n,e,i){const r=t[Ib];throw n[jO]&&r.unshift(n[jO]),t.message=function iJ(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let r=gr(n);if(Array.isArray(n))r=n.map(gr).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):gr(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(YZ,"\n ")}`}("\n"+t.message,r,e,i),t.ngTokenPath=r,t[Ib]=null,t}(a,n,"R3InjectorError",this.source)}throw a}finally{Jo(s),Il(o)}}resolveInjectorInitializers(){const n=jt(null),e=Il(this),i=Jo(void 0);try{const o=this.get(nu,Dn,fn.Self);for(const s of o)s()}finally{Il(e),Jo(i),jt(n)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(gr(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ce(205,!1)}processProvider(n){let e=iu(n=It(n))?n:It(n&&n.provide);const i=function IJ(t){return vE(t)?sf(void 0,t.useValue):sf(aN(t),Lb)}(n);if(!iu(n)&&!0===n.multi){let r=this.records.get(e);r||(r=sf(void 0,Lb,!0),r.factory=()=>dE(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e){const i=jt(null);try{return e.value===Lb&&(e.value=SJ,e.value=e.factory()),"object"==typeof e.value&&e.value&&function MJ(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{jt(i)}}injectableDefInScope(n){if(!n.providedIn)return!1;const e=It(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 xE(t){const n=Tb(t),e=null!==n?n.factory:tu(t);if(null!==e)return e;if(t instanceof ee)throw new ce(204,!1);if(t instanceof Function)return function DJ(t){if(t.length>0)throw new ce(204,!1);const e=function $Z(t){return t&&(t[Db]||t[LO])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new ce(204,!1)}function aN(t,n,e){let i;if(iu(t)){const r=It(t);return tu(r)||xE(r)}if(vE(t))i=()=>It(t.useValue);else if(function sN(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...dE(t.deps||[]));else if(function oN(t){return!(!t||!t.useExisting)}(t))i=()=>X(It(t.useExisting));else{const r=It(t&&(t.useClass||t.provide));if(!function AJ(t){return!!t.deps}(t))return tu(r)||xE(r);i=()=>new r(...dE(t.deps))}return i}function sf(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function wE(t,n){for(const e of t)Array.isArray(e)?wE(e,n):e&&rE(e)?wE(e.\u0275providers,n):n(e)}function Na(t,n){t instanceof rf&&t.assertNotDestroyed();const i=Il(t),r=Jo(void 0);try{return n()}finally{Il(i),Jo(r)}}function cN(){return void 0!==zO()||null!=function JZ(){return Jh}()}const Ti=0,Be=1,yt=2,zi=3,ua=4,uo=5,ys=6,cf=7,hi=8,Kr=9,ha=10,Mt=11,tg=12,dN=13,lf=14,Fi=15,ng=16,df=17,Mc=18,ig=19,uN=20,Rl=21,zb=22,ru=23,Vt=25,kE=1,La=7,uf=9,Hi=10;var EE=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(EE||{});function ho(t){return Array.isArray(t)&&"object"==typeof t[kE]}function fo(t){return Array.isArray(t)&&!0===t[kE]}function TE(t){return!!(4&t.flags)}function ou(t){return t.componentOffset>-1}function jb(t){return!(1&~t.flags)}function fa(t){return!!t.template}function SE(t){return!!(512&t[yt])}class GJ{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function pN(t,n,e,i){null!==n?n.applyValueToInputSignal(n,i):t[e]=i}function Wn(){return gN}function gN(t){return t.type.prototype.ngOnChanges&&(t.setInput=qJ),WJ}function WJ(){const t=vN(this),n=t?.current;if(n){const e=t.previous;if(e===Oa)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function qJ(t,n,e,i,r){const o=this.declaredInputs[i],s=vN(t)||function QJ(t,n){return t[_N]=n}(t,{previous:Oa,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[o];a[o]=new GJ(l&&l.currentValue,e,c===Oa),pN(t,n,r,e)}Wn.ngInherit=!0;const _N="__ngSimpleChanges__";function vN(t){return t[_N]||null}const Ba=function(t,n,e){},bN="svg";let xN=!1;function oi(t){for(;Array.isArray(t);)t=t[Ti];return t}function og(t,n){return oi(n[t])}function Uo(t,n){return oi(n[t.index])}function sg(t,n){return t.data[n]}function hf(t,n){return t[n]}function xs(t,n){const e=n[t];return ho(e)?e:e[Ti]}function RE(t){return!(128&~t[yt])}function Va(t,n){return null==n?null:t[n]}function wN(t){t[df]=0}function eee(t){1024&t[yt]||(t[yt]|=1024,RE(t)&&ag(t))}function PE(t){return!!(9216&t[yt]||t[ru]?.dirty)}function FE(t){t[ha].changeDetectionScheduler?.notify(1),PE(t)?ag(t):64&t[yt]&&(function XJ(){return xN}()?(t[yt]|=1024,ag(t)):t[ha].changeDetectionScheduler?.notify())}function ag(t){t[ha].changeDetectionScheduler?.notify();let n=su(t);for(;null!==n&&!(8192&n[yt])&&(n[yt]|=8192,RE(n));)n=su(n)}function $b(t,n){if(!(256&~t[yt]))throw new ce(911,!1);null===t[Rl]&&(t[Rl]=[]),t[Rl].push(n)}function su(t){const n=t[zi];return fo(n)?n[zi]:n}const Rt={lFrame:RN(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function EN(){return Rt.bindingsEnabled}function ff(){return null!==Rt.skipHydrationRootTNode}function _e(){return Rt.lFrame.lView}function mn(){return Rt.lFrame.tView}function j(t){return Rt.lFrame.contextLView=t,t[hi]}function G(t){return Rt.lFrame.contextLView=null,t}function qn(){let t=TN();for(;null!==t&&64===t.type;)t=t.parent;return t}function TN(){return Rt.lFrame.currentTNode}function Ua(t,n){const e=Rt.lFrame;e.currentTNode=t,e.isParent=n}function NE(){return Rt.lFrame.isParent}function LE(){Rt.lFrame.isParent=!1}function zo(){const t=Rt.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function Rc(){return Rt.lFrame.bindingIndex}function ma(){return Rt.lFrame.bindingIndex++}function Pc(t){const n=Rt.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function uee(t,n){const e=Rt.lFrame;e.bindingIndex=e.bindingRootIndex=t,BE(n)}function BE(t){Rt.lFrame.currentDirectiveIndex=t}function VE(t){const n=Rt.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}function UE(){return Rt.lFrame.currentQueryIndex}function Gb(t){Rt.lFrame.currentQueryIndex=t}function fee(t){const n=t[Be];return 2===n.type?n.declTNode:1===n.type?t[uo]:null}function AN(t,n,e){if(e&fn.SkipSelf){let r=n,o=t;for(;!(r=r.parent,null!==r||e&fn.Host||(r=fee(o),null===r||(o=o[lf],10&r.type))););if(null===r)return!1;n=r,t=o}const i=Rt.lFrame=MN();return i.currentTNode=n,i.lView=t,!0}function zE(t){const n=MN(),e=t[Be];Rt.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function MN(){const t=Rt.lFrame,n=null===t?null:t.child;return null===n?RN(t):n}function RN(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 PN(){const t=Rt.lFrame;return Rt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const FN=PN;function HE(){const t=PN();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 mo(){return Rt.lFrame.selectedIndex}function au(t){Rt.lFrame.selectedIndex=t}function fi(){const t=Rt.lFrame;return sg(t.tView,t.selectedIndex)}function Pl(){Rt.lFrame.currentNamespace=bN}function Wb(){!function gee(){Rt.lFrame.currentNamespace=null}()}let NN=!0;function lg(){return NN}function za(t){NN=t}function qb(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[c]<0&&(t[df]+=65536),(a>14>16&&(3&t[yt])===n&&(t[yt]+=16384,BN(a,o)):BN(a,o)}const mf=-1;class dg{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function GE(t){return t!==mf}function ug(t){return 32767&t}function hg(t,n){let e=function Cee(t){return t>>16}(t),i=n;for(;e>0;)i=i[lf],e--;return i}let WE=!0;function Xb(t){const n=WE;return WE=t,n}const VN=255,UN=5;let kee=0;const Ha={};function Yb(t,n){const e=zN(t,n);if(-1!==e)return e;const i=n[Be];i.firstCreatePass&&(t.injectorIndex=n.length,qE(i.data,t),qE(n,null),qE(i.blueprint,null));const r=Zb(t,n),o=t.injectorIndex;if(GE(r)){const s=ug(r),a=hg(r,n),c=a[Be].data;for(let l=0;l<8;l++)n[o+l]=a[s+l]|c[s+l]}return n[o+8]=r,o}function qE(t,n){t.push(0,0,0,0,0,0,0,0,n)}function zN(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function Zb(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=QN(r),null===i)return mf;if(e++,r=r[lf],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return mf}function QE(t,n,e){!function Eee(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Kp)&&(i=e[Kp]),null==i&&(i=e[Kp]=kee++);const r=i&VN;n.data[t+(r>>UN)]|=1<=0?n&VN:Iee:n}(e);if("function"==typeof o){if(!AN(n,t,i))return i&fn.Host?HN(r,0,i):jN(n,e,i,r);try{let s;if(s=o(i),null!=s||i&fn.Optional)return s;aE()}finally{FN()}}else if("number"==typeof o){let s=null,a=zN(t,n),c=mf,l=i&fn.Host?n[Fi][uo]:null;for((-1===a||i&fn.SkipSelf)&&(c=-1===a?Zb(t,n):n[a+8],c!==mf&&qN(i,!1)?(s=n[Be],a=ug(c),n=hg(c,n)):a=-1);-1!==a;){const d=n[Be];if(WN(o,a,d.data)){const u=See(a,n,e,s,i,l);if(u!==Ha)return u}c=n[a+8],c!==mf&&qN(i,n[Be].data[a+8]===l)&&WN(o,a,n)?(s=d,a=ug(c),n=hg(c,n)):a=-1}}return r}function See(t,n,e,i,r,o){const s=n[Be],a=s.data[t+8],d=Jb(a,s,e,null==i?ou(a)&&WE:i!=s&&!!(3&a.type),r&fn.Host&&o===a);return null!==d?cu(n,s,d,a):Ha}function Jb(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&&fa(f)&&f.type===e)return c}return null}function cu(t,n,e,i){let r=t[e];const o=n.data;if(function bee(t){return t instanceof dg}(r)){const s=r;s.resolving&&function QZ(t,n){throw n&&n.join(" > "),new ce(-200,t)}(function On(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Bt(t)}(o[e]));const a=Xb(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Jo(s.injectImpl):null;AN(t,i,fn.Default);try{r=t[e]=s.factory(void 0,o,t,i),n.firstCreatePass&&e>=i.directiveStart&&function _ee(t,n,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const s=gN(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&&Jo(l),Xb(a),s.resolving=!1,FN()}}return r}function WN(t,n,e){return!!(e[n+(t>>UN)]&1<{const n=t.prototype.constructor,e=n[Ac]||KE(n),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const o=r[Ac]||KE(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function KE(t){return Eb(t)?()=>{const n=KE(It(t));return n&&n()}:tu(t)}function QN(t){const n=t[Be],e=n.type;return 2===e?n.declTNode:1===e?t[uo]:null}function ws(t){return function Tee(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=Xp;static#t=this.NULL=new Pb;static create(e,i){if(Array.isArray(e))return JN({name:""},i,e,"");{const r=e.name??"";return JN({name:r},e.parent,e.providers,r)}}static#n=this.\u0275prov=xe({token:t,providedIn:"any",factory:()=>X(QO)});static#i=this.__NG_ELEMENT_ID__=-1}return t})();function YE(t){return t.ngOriginalError}class Cs{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&&YE(n);for(;e&&YE(e);)e=YE(e);return e||null}}const n4=new ee("",{providedIn:"root",factory:()=>be(Cs).handleError.bind(void 0)});let _f=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=Vee;static#t=this.__NG_ENV_ID__=e=>e}return t})();class Bee extends _f{constructor(n){super(),this._lView=n}onDestroy(n){return $b(this._lView,n),()=>function OE(t,n){if(null===t[Rl])return;const e=t[Rl].indexOf(n);-1!==e&&t[Rl].splice(e,1)}(this._lView,n)}}function Vee(){return new Bee(_e())}function Uee(){return vf(qn(),_e())}function vf(t,n){return new Ue(Uo(t,n))}let Ue=(()=>{class t{constructor(e){this.nativeElement=e}static#e=this.__NG_ELEMENT_ID__=Uee}return t})();function o4(t){return t instanceof Ue?t.nativeElement:t}function ZE(t){return n=>{setTimeout(t,void 0,n)}}const Se=class zee extends Re{constructor(n=!1){super(),this.destroyRef=void 0,this.__isAsync=n,cN()&&(this.destroyRef=be(_f,{optional:!0})??void 0)}emit(n){const e=jt(null);try{super.next(n)}finally{jt(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=ZE(o),r&&(r=ZE(r)),s&&(s=ZE(s)));const a=super.subscribe({next:r,error:o,complete:s});return n instanceof $t&&n.add(a),a}};function Hee(){return this._results[Symbol.iterator]()}class Fl{static#e=Symbol.iterator;get changes(){return this._changes??=new Se}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=Fl.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=Hee)}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 es(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function aJ(t,n,e){if(t.length!==n.length)return!1;for(let i=0;idte}),dte="ng",E4=new ee(""),Fc=new ee("",{providedIn:"platform",factory:()=>"unknown"}),Qn=new ee(""),iT=new ee("",{providedIn:"root",factory:()=>Ol().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let T4=()=>null;function uT(t,n,e=!1){return T4(t,n,e)}const M4=new ee("",{providedIn:"root",factory:()=>!1});let dy,uy;function xf(t){return function pT(){if(void 0===dy&&(dy=null,Vn.trustedTypes))try{dy=Vn.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return dy}()?.createHTML(t)||t}function P4(t){return function gT(){if(void 0===uy&&(uy=null,Vn.trustedTypes))try{uy=Vn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return uy}()?.createHTML(t)||t}class lu{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${RO})`}}class kte extends lu{getTypeName(){return"HTML"}}class Ete extends lu{getTypeName(){return"Style"}}class Tte extends lu{getTypeName(){return"Script"}}class Ste extends lu{getTypeName(){return"URL"}}class Dte extends lu{getTypeName(){return"ResourceURL"}}function ks(t){return t instanceof lu?t.changingThisBreaksApplicationSecurity:t}function ja(t,n){const e=function Ite(t){return t instanceof lu&&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 ${RO})`)}return e===n}class Ote{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString(xf(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class Nte{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const e=this.inertDocument.createElement("template");return e.innerHTML=xf(n),e}}const Bte=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function hy(t){return(t=String(t)).match(Bte)?t:"unsafe:"+t}function Oc(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function yg(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const L4=Oc("area,br,col,hr,img,wbr"),B4=Oc("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),V4=Oc("rp,rt"),_T=yg(L4,yg(B4,Oc("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")),yg(V4,Oc("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")),yg(V4,B4)),vT=Oc("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),U4=yg(vT,Oc("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"),Oc("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")),Vte=Oc("script,style,template");class Ute{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=jte(e);else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=Hte(e);if(o){e=o;break}e=r.pop()}return this.buf.join("")}startElement(n){const e=z4(n).toLowerCase();if(!_T.hasOwnProperty(e))return this.sanitizedSomething=!0,!Vte.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let r=0;r"),!0}endElement(n){const e=z4(n).toLowerCase();_T.hasOwnProperty(e)&&!L4.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(j4(n))}}function Hte(t){const n=t.nextSibling;if(n&&t!==n.previousSibling)throw H4(n);return n}function jte(t){const n=t.firstChild;if(n&&function zte(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(t,n))throw H4(n);return n}function z4(t){const n=t.nodeName;return"string"==typeof n?n:"FORM"}function H4(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}const $te=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Gte=/([^\#-~ |!])/g;function j4(t){return t.replace(/&/g,"&").replace($te,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(Gte,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let fy;function $4(t,n){let e=null;try{fy=fy||function N4(t){const n=new Nte(t);return function Lte(){try{return!!(new window.DOMParser).parseFromString(xf(""),"text/html")}catch{return!1}}()?new Ote(n):n}(t);let i=n?String(n):"";e=fy.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=fy.getInertBodyElement(i)}while(i!==o);return xf((new Ute).sanitizeChildren(bT(e)||e))}finally{if(e){const i=bT(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function bT(t){return"content"in t&&function Wte(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Xr=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}(Xr||{});function du(t){const n=xg();return n?P4(n.sanitize(Xr.HTML,t)||""):ja(t,"HTML")?P4(ks(t)):$4(Ol(),Bt(t))}function my(t){const n=xg();return n?n.sanitize(Xr.URL,t)||"":ja(t,"URL")?ks(t):hy(Bt(t))}function xg(){const t=_e();return t&&t[ha].sanitizer}const Zte=/^>|^->||--!>|)/g,ene="\u200b$1\u200b";function Es(t){return t instanceof Function?t():t}var Ll=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Ll||{});let CT;function kT(t,n){return CT(t,n)}function Cf(t,n,e,i,r){if(null!=i){let o,s=!1;fo(i)?o=i:ho(i)&&(s=!0,i=i[Ti]);const a=oi(i);0===t&&null!==e?null==r?rL(n,e,a):uu(n,e,a,r||null,!0):1===t&&null!==e?uu(n,e,a,r||null,!0):2===t?function kg(t,n,e){const i=by(t,n);i&&function bne(t,n,e,i){t.removeChild(n,e,i)}(t,i,n,e)}(n,a,s):3===t&&n.destroyNode(a),null!=o&&function wne(t,n,e,i,r){const o=e[La];o!==oi(e)&&Cf(n,t,i,o,r);for(let a=Hi;an.replace(Jte,ene))}(n))}function _y(t,n,e){return t.createElement(n,e)}function tL(t,n){n[ha].changeDetectionScheduler?.notify(1),xy(t,n,n[Mt],2,null,null)}function nL(t,n){const e=t[uf],i=e.indexOf(n);e.splice(i,1)}function wg(t,n){if(t.length<=Hi)return;const e=Hi+n,i=t[e];if(i){const r=i[ng];null!==r&&r!==t&&nL(r,i),n>0&&(t[e-1][ua]=i[ua]);const o=Mb(t,Hi+n);!function hne(t,n){tL(t,n),n[Ti]=null,n[uo]=null}(i[Be],i);const s=o[Mc];null!==s&&s.detachView(o[Be]),i[zi]=null,i[ua]=null,i[yt]&=-129}return i}function vy(t,n){if(!(256&n[yt])){const e=n[Mt];e.destroyNode&&xy(t,n,e,3,null,null),function mne(t){let n=t[tg];if(!n)return ST(t[Be],t);for(;n;){let e=null;if(ho(n))e=n[tg];else{const i=n[Hi];i&&(e=i)}if(!e){for(;n&&!n[ua]&&n!==t;)ho(n)&&ST(n[Be],n),n=n[zi];null===n&&(n=t),ho(n)&&ST(n[Be],n),e=n&&n[ua]}n=e}}(n)}}function ST(t,n){if(256&n[yt])return;const e=jt(null);try{n[yt]&=-129,n[yt]|=256,n[ru]&&function vO(t){if(Wh(t),qp(t))for(let n=0;n=0?i[s]():i[-s].unsubscribe(),o+=2}else e[o].call(i[e[o+1]]);null!==i&&(n[cf]=null);const r=n[Rl];if(null!==r){n[Rl]=null;for(let o=0;o-1){const{encapsulation:o}=t.data[i.directiveStart+r];if(o===la.None||o===la.Emulated)return null}return Uo(i,e)}}(t,n.parent,e)}function uu(t,n,e,i,r){t.insertBefore(n,e,i,r)}function rL(t,n,e){t.appendChild(n,e)}function oL(t,n,e,i,r){null!==i?uu(t,n,e,i,r):rL(t,n,e)}function by(t,n){return t.parentNode(n)}function sL(t,n,e){return cL(t,n,e)}let IT,cL=function aL(t,n,e){return 40&t.type?Uo(t,e):null};function yy(t,n,e,i){const r=DT(t,i,n),o=n[Mt],a=sL(i.parent||n[uo],i,n);if(null!=r)if(Array.isArray(e))for(let c=0;cVt&&pL(t,n,Vt,!1),Ba(s?2:0,r),e(i,r)}finally{au(o),Ba(s?3:1,r)}}function PT(t,n,e){if(TE(n)){const i=jt(null);try{const o=n.directiveEnd;for(let s=n.directiveStart;snull;function yL(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=ue.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?xL(i,e,l,a,c):xL(i,e,l,a)}return i}function xL(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 is(t,n,e,i,r,o,s,a){const c=Uo(n,e);let d,l=n.inputs;!a&&null!=l&&(d=l[i])?(zT(t,e,d,i,r),ou(n)&&function One(t,n){const e=xs(n,t);16&e[yt]||(e[yt]|=64)}(e,n.index)):3&n.type&&(i=function Fne(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 LT(t,n,e,i){if(EN()){const r=null===i?null:{"":-1},o=function zne(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,Eg(t,e,r.hostVars,zt),r)}function Ga(t,n,e,i,r,o){const s=Uo(t,n);!function VT(t,n,e,i,r,o,s){if(null==o)t.removeAttribute(n,r,e);else{const a=null==s?Bt(o):s(o,i||"",r);t.setAttribute(n,r,a,e)}}(n[Mt],s,o,t.value,e,i,r)}function qne(t,n,e,i,r,o){const s=o[n];if(null!==s)for(let a=0;a0&&(e[r-1][ua]=n),i!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{ag(t.lView)},consumerOnSignalRead(){this.lView[ru]=this}},RL=100;function Ey(t,n=!0,e=0){const i=t[ha],r=i.rendererFactory;r.begin?.();try{!function nie(t,n){$T(t,n);let e=0;for(;PE(t);){if(e===RL)throw new ce(103,!1);e++,$T(t,1)}}(t,e)}catch(s){throw n&&ky(t,s),s}finally{r.end?.(),i.inlineEffectRunner?.flush()}}function iie(t,n,e,i){const r=n[yt];if(!(256&~r))return;n[ha].inlineEffectRunner?.flush(),zE(n);let s=null,a=null;(function rie(t){return 2!==t.type})(t)&&(a=function Zne(t){return t[ru]??function Jne(t){const n=ML.pop()??Object.create(tie);return n.lView=t,n}(t)}(n),s=function Gh(t){return t&&(t.nextProducerIndex=0),jt(t)}(a));try{wN(n),function DN(t){return Rt.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&_L(t,n,e,2,i);const c=!(3&~r);if(c){const u=t.preOrderCheckHooks;null!==u&&Qb(n,u,null)}else{const u=t.preOrderHooks;null!==u&&Kb(n,u,0,null),jE(n,0)}if(function oie(t){for(let n=p4(t);null!==n;n=g4(n)){if(!(n[yt]&EE.HasTransplantedViews))continue;const e=n[uf];for(let i=0;it.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}(a,s),function eie(t){t.lView[ru]!==t&&(t.lView=null,ML.push(t))}(a)),HE()}}function PL(t,n){for(let e=p4(t);null!==e;e=g4(e))for(let i=Hi;i-1&&(wg(n,i),Mb(e,i))}this._attachedToViewContainer=!1}vy(this._lView[Be],this._lView)}onDestroy(n){$b(this._lView,n)}markForCheck(){Ig(this._cdRefInjectingView||this._lView)}detach(){this._lView[yt]&=-129}reattach(){FE(this._lView),this._lView[yt]|=128}detectChanges(){this._lView[yt]|=1024,Ey(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ce(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,tL(this._lView[Be],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new ce(902,!1);this._appRef=n,FE(this._lView)}}let Un=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=lie}return t})();const aie=Un,cie=class extends aie{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=function Tg(t,n,e,i){const r=jt(null);try{const o=n.tView,c=wy(t,o,e,4096&t[yt]?4096:16,null,n,null,null,i?.injector??null,i?.embeddedViewInjector??null,i?.dehydratedView??null);c[ng]=t[n.index];const d=t[Mc];return null!==d&&(c[Mc]=d.createEmbeddedView(o)),HT(o,c,e),c}finally{jt(r)}}(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:e,dehydratedView:i});return new Ag(r)}};function lie(){return Ty(qn(),_e())}function Ty(t,n){return 4&t.type?new cie(n,t,vf(t,n)):null}class My{}class Pie{}class HL{}class Oie{resolveComponentFactory(n){throw function Fie(t){const n=Error(`No component factory found for ${gr(t)}.`);return n.ngComponent=t,n}(n)}}let hu=(()=>{class t{static#e=this.NULL=new Oie}return t})();class XT{}let Lc=(()=>{class t{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function Nie(){const t=_e(),e=xs(qn().index,t);return(ho(e)?e:t)[Mt]}()}return t})(),Lie=(()=>{class t{static#e=this.\u0275prov=xe({token:t,providedIn:"root",factory:()=>null})}return t})();const YT={},$L=new Set;function Wa(t){$L.has(t)||($L.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function GL(...t){}class ze{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Se(!1),this.onMicrotaskEmpty=new Se(!1),this.onStable=new Se(!1),this.onError=new Se(!1),typeof Zone>"u")throw new ce(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 Bie(){const t="function"==typeof Vn.requestAnimationFrame;let n=Vn[t?"requestAnimationFrame":"setTimeout"],e=Vn[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 zie(t){const n=()=>{!function Uie(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Vn,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,JT(t),t.isCheckStableRunning=!0,ZT(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),JT(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{if(function Hie(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 WL(t),e.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&n(),qL(t)}},onInvoke:(e,i,r,o,s,a,c)=>{try{return WL(t),e.invoke(r,o,s,a,c)}finally{t.shouldCoalesceRunChangeDetection&&n(),qL(t)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,JT(t),ZT(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(!ze.isInAngularZone())throw new ce(909,!1)}static assertNotInAngularZone(){if(ze.isInAngularZone())throw new ce(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,Vie,GL,GL);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 Vie={};function ZT(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 JT(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function WL(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function qL(t){t._nesting--,ZT(t)}class QL{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Se,this.onMicrotaskEmpty=new Se,this.onStable=new Se,this.onError=new Se}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 fu=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(fu||{});const KL={destroy(){}};function XL(t,n){!n&&function Vb(t){if(!cN())throw new ce(-203,!1)}();const e=n?.injector??be(xi);if(!function Nl(t){return"browser"===(t??be(xi)).get(Fc)}(e))return KL;Wa("NgAfterNextRender");const i=e.get(Og),r=i.handler??=new ZL,o=n?.phase??fu.MixedReadWrite,s=()=>{r.unregister(c),a()},a=e.get(_f).onDestroy(s),c=Na(e,()=>new YL(o,()=>{s(),t()}));return r.register(c),{destroy:s}}class YL{constructor(n,e){this.phase=n,this.callbackFn=e,this.zone=be(ze),this.errorHandler=be(Cs,{optional:!0}),be(My,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(n){this.errorHandler?.handleError(n)}}}class ZL{constructor(){this.executingCallbacks=!1,this.buckets={[fu.EarlyRead]:new Set,[fu.Write]:new Set,[fu.MixedReadWrite]:new Set,[fu.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 Og=(()=>{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=xe({token:t,providedIn:"root",factory:()=>new t})}return t})();function Py(t,n,e){let i=e?t.styles:null,r=e?t.classes:null,o=0;if(null!==n)for(let s=0;s0&&fL(t,e,o.join(" "))}}(f,A,g,i),void 0!==e&&function ere(t,n,e){const i=t.projection=[];for(let r=0;r{class t{static#e=this.__NG_ELEMENT_ID__=nre}return t})();function nre(){return s3(qn(),_e())}const ire=li,r3=class extends ire{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return vf(this._hostTNode,this._hostLView)}get injector(){return new br(this._hostTNode,this._hostLView)}get parentInjector(){const n=Zb(this._hostTNode,this._hostLView);if(GE(n)){const e=hg(n,this._hostLView),i=ug(n);return new br(e[Be].data[i+8],e)}return new br(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=o3(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-Hi}createEmbeddedView(n,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const a=n.createEmbeddedViewImpl(e||{},o,null);return this.insertImpl(a,r,Ef(this._hostTNode,null)),a}createComponent(n,e,i,r,o){const s=n&&!function eg(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 Bg(sn(n)),l=i||this.parentInjector;if(!o&&null==c.ngModule){const g=(s?l:this.parentInjector).get(ts,null);g&&(o=g)}sn(c.componentType??{});const f=c.create(l,r,null,o);return this.insertImpl(f.hostView,a,Ef(this._hostTNode,null)),f}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,i){const r=n._lView;if(function JJ(t){return fo(t[zi])}(r)){const a=this.indexOf(n);if(-1!==a)this.detach(a);else{const c=r[zi],l=new r3(c,c[uo],c[zi]);l.detach(l.indexOf(n))}}const o=this._adjustIndex(e),s=this._lContainer;return Sg(s,r,o,i),n.attachToViewContainerRef(),GO(iS(s),o,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=o3(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=wg(this._lContainer,e);i&&(Mb(iS(this._lContainer),e),vy(i[Be],i))}detach(n){const e=this._adjustIndex(n,-1),i=wg(this._lContainer,e);return i&&null!=Mb(iS(this._lContainer),e)?new Ag(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function o3(t){return t[8]}function iS(t){return t[8]||(t[8]=[])}function s3(t,n){let e;const i=n[t.index];return fo(i)?e=i:(e=kL(i,n,null,t),n[t.index]=e,Cy(n,e)),a3(e,n,t,i),new r3(e,t,n)}let a3=function l3(t,n,e,i){if(t[La])return;let r;r=8&e.type?oi(i):function rre(t,n){const e=t[Mt],i=e.createComment(""),r=Uo(n,t);return uu(e,by(e,r),i,function yne(t,n){return t.nextSibling(n)}(e,r),!1),i}(n,e),t[La]=r},rS=()=>!1;class oS{constructor(n){this.queryList=n,this.matches=null}clone(){return new oS(this.queryList)}setDirty(){this.queryList.setDirty()}}class sS{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 aS{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=Hi;u=0;i--){const r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=Zp(r.hostAttrs,e=Zp(e,r.hostAttrs))}}(i)}function kre(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 Ny(t){return t===Oa?{}:t===Dn?[]:t}function Tre(t,n){const e=t.viewQuery;t.viewQuery=e?(i,r)=>{n(i,r),e(i,r)}:n}function Sre(t,n){const e=t.contentQueries;t.contentQueries=e?(i,r,o)=>{n(i,r,o),e(i,r,o)}:n}function Dre(t,n){const e=t.hostBindings;t.hostBindings=e?(i,r)=>{n(i,r),e(i,r)}:n}class mu{}class O3{}class fS extends mu{constructor(n,e,i){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new t3(this);const r=lo(n);this._bootstrapComponents=Es(r.bootstrap),this._r3Injector=e4(n,e,[{provide:mu,useValue:this},{provide:hu,useValue:this.componentFactoryResolver},...i],gr(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 mS extends O3{constructor(n){super(),this.moduleType=n}create(n){return new fS(this.moduleType,n,[])}}class N3 extends mu{constructor(n){super(),this.componentFactoryResolver=new t3(this),this.instance=null;const e=new rf([...n.providers,{provide:mu,useValue:this},{provide:hu,useValue:this.componentFactoryResolver}],n.parent||Bb(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Ly(t,n,e=null){return new N3({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}let Ul=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Ei(!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=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Vy(t){return!!function pS(t){return null!==t&&("function"==typeof t||"object"==typeof t)}(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function qa(t,n,e){return t[n]=e}function ji(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function pu(t,n,e,i){const r=ji(t,n,e);return ji(t,n+1,i)||r}function W(t,n,e,i,r,o,s,a){const c=_e(),l=mn(),d=t+Vt,u=l.firstCreatePass?function zre(t,n,e,i,r,o,s,a,c){const l=n.consts,d=kf(n,t,4,s||null,Va(l,a));LT(n,e,d,Va(l,c)),qb(n,d);const u=d.tView=NT(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];Ua(u,!1);const h=L3(l,c,u,t);lg()&&yy(l,c,h,u),po(h,c);const f=kL(h,c,h,u);return c[d]=f,Cy(c,f),function c3(t,n,e){return rS(t,n,e)}(f,u,c),jb(u)&&FT(l,c,u),null!=s&&OT(c,u,a),W}let L3=function B3(t,n,e,i){return za(!0),n[Mt].createComment("")};function vt(t,n,e,i){const r=_e();return ji(r,ma(),n)&&(mn(),Ga(fi(),r,t,n,e,i)),vt}function Of(t,n,e,i){return ji(t,ma(),e)?n+Bt(e)+i:zt}function Lf(t,n,e,i,r,o,s,a){const l=function Uy(t,n,e,i,r){const o=pu(t,n,e,i);return ji(t,n+2,r)||o}(t,Rc(),e,r,s);return Pc(3),l?n+Bt(e)+i+Bt(r)+o+Bt(s)+a:zt}function Wy(t,n){return t<<17|n<<2}function Hl(t){return t>>17&32767}function ES(t){return 2|t}function _u(t){return(131068&t)>>2}function TS(t,n){return-131069&t|n<<2}function SS(t){return 1|t}function pB(t,n,e,i){const r=t[e+1],o=null===n;let s=i?Hl(r):_u(r),a=!1;for(;0!==s&&(!1===a||o);){const l=t[s+1];Toe(t[s],n)&&(a=!0,t[s+1]=i?SS(l):ES(l)),s=i?Hl(l):_u(l)}a&&(t[e+1]=i?ES(r):SS(r))}function Toe(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&nf(t,n)>=0}const yr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function gB(t){return t.substring(yr.key,yr.keyEnd)}function _B(t,n){const e=yr.textEnd;return e===n?-1:(n=yr.keyEnd=function Aoe(t,n,e){for(;n32;)n++;return n}(t,yr.key=n,e),jf(t,n,e))}function jf(t,n,e){for(;n=0;e=_B(n,e))bs(t,gB(n),!0)}function pa(t,n,e,i){const r=_e(),o=mn(),s=Pc(2);o.firstUpdatePass&&kB(o,t,s,i),n!==zt&&ji(r,s,n)&&TB(o,o.data[mo()],r,r[Mt],t,r[s+1]=function zoe(t,n){return null==t||""===t||("string"==typeof n?t+=n:"object"==typeof t&&(t=gr(ks(t)))),t}(n,e),i,s)}function ga(t,n,e,i){const r=mn(),o=Pc(2);r.firstUpdatePass&&kB(r,null,o,i);const s=_e();if(e!==zt&&ji(s,o,e)){const a=r.data[mo()];if(DB(a,i)&&!CB(r,o)){let c=i?a.classesWithoutHost:a.stylesWithoutHost;null!==c&&(e=Zk(c,e||"")),DS(r,a,s,e,i)}else!function Uoe(t,n,e,i,r,o,s,a){r===zt&&(r=Dn);let c=0,l=0,d=0=t.expandoStartIndex}function kB(t,n,e,i){const r=t.data;if(null===r[e+1]){const o=r[mo()],s=CB(t,e);DB(o,i)&&null===n&&!s&&(n=!1),n=function Foe(t,n,e,i){const r=VE(t);let o=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(e=Gg(e=IS(null,t,n,e,i),n.attrs,i),o=null);else{const s=n.directiveStylingLast;if(-1===s||t[s]!==r)if(e=IS(r,t,n,e,i),null===o){let c=function Ooe(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==_u(i))return t[Hl(i)]}(t,n,i);void 0!==c&&Array.isArray(c)&&(c=IS(null,t,n,c[1],i),c=Gg(c,n.attrs,i),function Noe(t,n,e,i){t[Hl(e?n.classBindings:n.styleBindings)]=i}(t,n,i,c))}else o=function Loe(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=Hl(t[a+1]);t[i+1]=Wy(h,a),0!==h&&(t[h+1]=TS(t[h+1],i)),t[a+1]=function woe(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=Wy(a,0),0!==a&&(t[a+1]=TS(t[a+1],i)),a=i;else t[i+1]=Wy(c,0),0===a?a=i:t[c+1]=TS(t[c+1],i),c=i;l&&(t[i+1]=ES(t[i+1])),pB(t,d,i,!0),pB(t,d,i,!1),function Eoe(t,n,e,i,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof n&&nf(o,n)>=0&&(e[i+1]=SS(e[i+1]))}(n,d,t,i,o),s=Wy(a,c),o?n.classBindings=s:n.styleBindings=s}(r,o,n,e,s,i)}}function IS(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===zt&&(h=u?Dn:void 0);let f=u?hE(h,i):d===i?h:void 0;if(l&&!qy(f)&&(f=hE(c,i)),qy(f)&&(a=f,s))return a;const m=t[r+1];r=s?Hl(m):_u(m)}if(null!==n){let c=o?n.residualClasses:n.residualStyles;null!=c&&(a=hE(c,i))}return a}function qy(t){return void 0!==t}function DB(t,n){return!!(t.flags&(n?8:16))}function _(t,n,e,i){const r=_e(),o=mn(),s=Vt+t,a=r[Mt],c=o.firstCreatePass?function lse(t,n,e,i,r,o){const s=n.consts,c=kf(n,t,2,i,Va(s,r));return LT(n,e,c,Va(s,o)),null!==c.attrs&&Py(c,c.attrs,!1),null!==c.mergedAttrs&&Py(c,c.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,c),c}(s,o,r,n,e,i):o.data[s],l=PB(o,r,c,a,n,t);r[s]=l;const d=jb(c);return Ua(c,!0),mL(a,l,c),!function zg(t){return!(32&~t.flags)}(c)&&lg()&&yy(o,r,l,c),0===function tee(){return Rt.lFrame.elementDepthCount}()&&po(l,r),function nee(){Rt.lFrame.elementDepthCount++}(),d&&(FT(o,r,c),PT(o,c,r)),null!==i&&OT(r,c),_}function b(){let t=qn();NE()?LE():(t=t.parent,Ua(t,!1));const n=t;(function ree(t){return Rt.skipHydrationRootTNode===t})(n)&&function cee(){Rt.skipHydrationRootTNode=null}(),function iee(){Rt.lFrame.elementDepthCount--}();const e=mn();return e.firstCreatePass&&(qb(e,t),TE(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function xee(t){return!!(8&t.flags)}(n)&&DS(e,n,_e(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function wee(t){return!!(16&t.flags)}(n)&&DS(e,n,_e(),n.stylesWithoutHost,!1),b}function we(t,n,e,i){return _(t,n,e,i),b(),we}let PB=(t,n,e,i,r,o)=>(za(!0),_y(i,r,function ON(){return Rt.lFrame.currentNamespace}()));function Gt(t,n,e){const i=_e(),r=mn(),o=t+Vt,s=r.firstCreatePass?function hse(t,n,e,i,r){const o=n.consts,s=Va(o,i),a=kf(n,t,8,"ng-container",s);return null!==s&&Py(a,s,!0),LT(n,e,a,Va(o,r)),null!==n.queries&&n.queries.elementStart(n,a),a}(o,r,i,n,e):r.data[o];Ua(s,!0);const a=FB(r,i,s,t);return i[o]=a,lg()&&yy(r,i,a,s),po(a,i),jb(s)&&(FT(r,i,s),PT(r,s,i)),null!=e&&OT(i,s),Gt}function Wt(){let t=qn();const n=mn();return NE()?LE():(t=t.parent,Ua(t,!1)),n.firstCreatePass&&(qb(n,t),TE(t)&&n.queries.elementEnd(t)),Wt}function Ss(t,n,e){return Gt(t,n,e),Wt(),Ss}let FB=(t,n,e,i)=>(za(!0),TT(n[Mt],""));function De(){return _e()}function Xa(t,n,e){const i=_e();return ji(i,ma(),n)&&is(mn(),fi(),i,t,n,i[Mt],e,!0),Xa}function Qy(t,n,e){const i=_e();if(ji(i,ma(),n)){const o=mn(),s=fi();is(o,s,i,t,n,DL(VE(o.data),s,i),e,!0)}return Qy}const vu=void 0;var gse=["en",[["a","p"],["AM","PM"],vu],[["AM","PM"],vu,vu],[["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"]],vu,[["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"]],vu,[["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}",vu,"{1} 'at' {0}",vu],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function pse(t){const e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let $f={};function Ho(t){const n=function _se(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=NB(n);if(e)return e;const i=n.split("-")[0];if(e=NB(i),e)return e;if("en"===i)return gse;throw new ce(701,!1)}function NB(t){return t in $f||($f[t]=Vn.ng&&Vn.ng.common&&Vn.ng.common.locales&&Vn.ng.common.locales[t]),$f[t]}var mi=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}(mi||{});const Gf="en-US";let LB=Gf;function H(t,n,e,i){const r=_e(),o=mn(),s=qn();return NS(o,r,r[Mt],s,t,n,i),H}function Jy(t,n){const e=qn(),i=_e(),r=mn();return NS(r,i,DL(VE(r.data),e,i),e,t,n),Jy}function NS(t,n,e,i,r,o,s){const a=jb(i),l=t.firstCreatePass&&SL(t),d=n[hi],u=TL(n);let h=!0;if(3&i.type||s){const g=Uo(i,n),p=s?s(g):g,v=u.length,x=s?D=>s(oi(D[i.index])):i.index;let C=null;if(!s&&a&&(C=function fae(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=dV(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=dV(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?xs(t.index,n):n);let c=lV(n,e,i,s),l=o.__ngNextListenerFn__;for(;l;)c=lV(n,e,l,s)&&c,l=l.__ngNextListenerFn__;return r&&!1===c&&s.preventDefault(),c}}function P(t=1){return function mee(t){return(Rt.lFrame.contextLView=function CN(t,n){for(;t>0;)n=n[lf],t--;return n}(t,Rt.lFrame.contextLView))[hi]}(t)}function mae(t,n){let e=null;const i=function fJ(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(za(!0),function ET(t,n){return t.createText(n)}(n[Mt],i));function nt(t){return Je("",t,""),nt}function Je(t,n,e){const i=_e(),r=Of(i,t,n,e);return r!==zt&&Nc(i,mo(),r),Je}function bu(t,n,e,i,r){const o=_e(),s=function Nf(t,n,e,i,r,o){const a=pu(t,Rc(),e,r);return Pc(2),a?n+Bt(e)+i+Bt(r)+o:zt}(o,t,n,e,i,r);return s!==zt&&Nc(o,mo(),s),bu}function Zg(t,n,e,i,r,o,s){const a=_e(),c=Lf(a,t,n,e,i,r,o,s);return c!==zt&&Nc(a,mo(),c),Zg}function Nr(t,n,e){b3(n)&&(n=n());const i=_e();return ji(i,ma(),n)&&is(mn(),fi(),i,t,n,i[Mt],e,!1),Nr}function Yr(t,n){const e=b3(t);return e&&t.set(n),e}function Lr(t,n){const e=_e(),i=mn(),r=qn();return NS(i,e,e[Mt],r,t,n),Lr}function LS(t,n,e,i,r){if(t=It(t),Array.isArray(t))for(let o=0;o>20;if(iu(t)||!t.multi){const f=new dg(l,r,y),m=VS(c,n,r?d:d+h,u);-1===m?(QE(Yb(a,s),o,c),BS(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=VS(c,n,d+h,u),m=VS(c,n,d,d+h),p=m>=0&&e[m];if(r&&!p||!r&&!(f>=0&&e[f])){QE(Yb(a,s),o,c);const v=function Pae(t,n,e,i,r){const o=new dg(t,e,y);return o.multi=[],o.index=n,o.componentProviders=0,OV(o,r,i&&!e),o}(r?Rae:Mae,e.length,r,i,l);!r&&p&&(e[m].providerFactory=v),BS(o,t,n.length,0),n.push(c),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),e.push(v),s.push(v)}else BS(o,t,f>-1?f:m,OV(e[r?m:f],l,!r&&i));!r&&i&&p&&e[m].componentProviders++}}}function BS(t,n,e,i){const r=iu(n),o=function TJ(t){return!!t.useClass}(n);if(r||o){const c=(o?It(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 OV(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function VS(t,n,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function Aae(t,n,e){const i=mn();if(i.firstCreatePass){const r=fa(t);LS(e,i.data,i.blueprint,r,!0),LS(n,i.data,i.blueprint,r,!1)}}(i,r?r(t):t,n)}}let Fae=(()=>{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=gE(0,e.type),r=i.length>0?Ly([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=xe({token:t,providedIn:"environment",factory:()=>new t(X(ts))})}return t})();function NV(t){Wa("NgStandalone"),t.getStandaloneInjector=n=>n.get(Fae).getOrCreateStandaloneInjector(t)}function Ds(t,n,e){const i=zo()+t,r=_e();return r[i]===zt?qa(r,i,e?n.call(e):n()):function Ug(t,n){return t[n]}(r,i)}function _a(t,n,e,i){return BV(_e(),zo(),t,n,e,i)}function zS(t,n,e,i,r){return VV(_e(),zo(),t,n,e,i,r)}function Jg(t,n){const e=t[n];return e===zt?void 0:e}function BV(t,n,e,i,r,o){const s=n+e;return ji(t,s,r)?qa(t,s+1,o?i.call(o,r):i(r)):Jg(t,s+1)}function VV(t,n,e,i,r,o,s){const a=n+e;return pu(t,a,r,o)?qa(t,a+2,s?i.call(s,r,o):i(r,o)):Jg(t,a+2)}function go(t,n){const e=mn();let i;const r=t+Vt;e.firstCreatePass?(i=function $ae(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=tu(i.type)),a=Jo(y);try{const c=Xb(!1),l=o();return Xb(c),function vae(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,_e(),r,l),l}finally{Jo(a)}}function Ya(t,n,e){const i=t+Vt,r=_e(),o=hf(r,i);return e_(r,i)?BV(r,zo(),n,o.transform,e,o):o.transform(e)}function yu(t,n,e,i){const r=t+Vt,o=_e(),s=hf(o,r);return e_(o,r)?VV(o,zo(),n,s.transform,e,i,s):s.transform(e,i)}function e_(t,n){return t[Be].data[n].pure}function xu(t,n){return Ty(t,n)}let o5=(()=>{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=xe({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();const d5=new ee(""),rx=new ee("");let KS,qS=(()=>{class t{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,KS||(function Uce(t){KS=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:()=>{ze.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)(X(ze),X(QS),X(rx))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac})}return t})(),QS=(()=>{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 KS?.findTestabilityInTree(this,e,i)??null}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function i_(t){return!!t&&"function"==typeof t.then}function u5(t){return!!t&&"function"==typeof t.subscribe}const XS=new ee("");let YS=(()=>{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i}),this.appInits=be(XS,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const r of this.appInits){const o=r();if(i_(o))e.push(o);else if(u5(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=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const ZS=new ee("");function m5(t,n){return Array.isArray(n)?n.reduce(m5,t):{...t,...n}}let Bc=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=be(n4),this.afterRenderEffectManager=be(Og),this.externalTestViews=new Set,this.beforeRender=new Re,this.afterTick=new Re,this.componentTypes=[],this.components=[],this.isStable=be(Ul).hasPendingTasks.pipe(mt(e=>!e)),this._injector=be(ts)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const r=e instanceof HL;if(!this._injector.get(YS).done)throw!r&&function Ml(t){const n=sn(t)||_r(t)||Qr(t);return null!==n&&n.standalone}(e),new ce(405,!1);let s;s=r?e:this._injector.get(hu).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function zce(t){return t.isBoundToModule}(s)?void 0:this._injector.get(mu),l=s.create(xi.NULL,[],i||s.selector,a),d=l.location.nativeElement,u=l.injector.get(d5,null);return u?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),ox(this.components,l),u?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(e){if(this._runningTick)throw new ce(101,!1);const i=jt(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(e)}catch(r){this.internalErrorHandler(r)}finally{this.afterTick.next(),this._runningTick=!1,jt(i)}}detectChangesInAttachedViews(e){let i=0;const r=this.afterRenderEffectManager;for(;;){if(i===RL)throw new ce(103,!1);if(e){const o=0===i;this.beforeRender.next(o);for(let{_lView:s,notifyErrorHandler:a}of this._views)jce(s,o,a)}if(i++,r.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:o})=>JS(o))&&(r.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:o})=>JS(o))))break}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;ox(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(ZS,[]);[...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),()=>ox(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new ce(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=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ox(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function jce(t,n,e){!n&&!JS(t)||function $ce(t,n,e){let i;e?(i=0,t[yt]|=1024):i=64&t[yt]?0:1,Ey(t,n,i)}(t,e,n)}function JS(t){return PE(t)}class Gce{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let p5=(()=>{class t{compileModuleSync(e){return new mS(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=Es(lo(e).declarations).reduce((s,a)=>{const c=sn(a);return c&&s.push(new Bg(c)),s},[]);return new Gce(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=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Qce=(()=>{class t{constructor(){this.zone=be(ze),this.applicationRef=be(Bc)}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=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Kce(){const t=be(ze),n=be(Cs);return e=>t.runOutsideAngular(()=>n.handleError(e))}let Yce=(()=>{class t{constructor(){this.subscription=new $t,this.initialized=!1,this.zone=be(ze),this.pendingTasks=be(Ul)}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(()=>{ze.assertNotInAngularZone(),queueMicrotask(()=>{null!==e&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ze.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Za=new ee("",{providedIn:"root",factory:()=>be(Za,fn.Optional|fn.SkipSelf)||function Zce(){return typeof $localize<"u"&&$localize.locale||Gf}()}),eD=new ee("");let b5=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function jie(t="zone.js",n){return"noop"===t?new QL:"zone.js"===t?new ze(n):t}(i?.ngZone,function v5(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return r.run(()=>{const o=function Ore(t,n,e){return new fS(t,n,e)}(e.moduleType,this.injector,function _5(t){return[{provide:ze,useFactory:t},{provide:nu,multi:!0,useFactory:()=>{const n=be(Qce,{optional:!0});return()=>n.initialize()}},{provide:nu,multi:!0,useFactory:()=>{const n=be(Yce);return()=>{n.initialize()}}},{provide:n4,useFactory:Kce}]}(()=>r)),s=o.injector.get(Cs,null);return r.runOutsideAngular(()=>{const a=r.onError.subscribe({next:c=>{s.handleError(c)}});o.onDestroy(()=>{ox(this._modules,o),a.unsubscribe()})}),function f5(t,n,e){try{const i=e();return i_(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(YS);return a.runInitializers(),a.donePromise.then(()=>(function BB(t){"string"==typeof t&&(LB=t.toLowerCase().replace(/_/g,"-"))}(o.injector.get(Za,Gf)||Gf),this._moduleDoBootstrap(o),o))})})}bootstrapModule(e,i=[]){const r=m5({},i);return function qce(t,n,e){const i=new mS(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(Bc);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new ce(-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 ce(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(eD,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)(X(xi))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),jl=null;const y5=new ee("");function x5(t,n,e=[]){const i=`Platform: ${n}`,r=new ee(i);return(o=[])=>{let s=tD();if(!s||s.injector.get(y5,!1)){const a=[...e,...o,{provide:r,useValue:!0}];t?t(a):function tle(t){if(jl&&!jl.get(y5,!1))throw new ce(400,!1);(function h5(){!function yZ(t){xO=t}(()=>{throw new ce(600,!1)})})(),jl=t;const n=t.get(b5);(function C5(t){t.get(E4,null)?.forEach(e=>e())})(t)}(function w5(t=[],n){return xi.create({name:n,providers:[{provide:bE,useValue:"platform"},{provide:eD,useValue:new Set([()=>jl=null])},...t]})}(a,i))}return function nle(t){const n=tD();if(!n)throw new ce(401,!1);return n}()}}function tD(){return jl?.get(b5)??null}let an=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=rle}return t})();function rle(t){return function ole(t,n,e){if(ou(t)&&!e){const i=xs(t.index,n);return new Ag(i,i)}return 47&t.type?new Ag(n[Fi],n):null}(qn(),_e(),!(16&~t))}class D5{constructor(){}supports(n){return Vy(n)}create(n){return new dle(n)}}const lle=(t,n)=>n;class dle{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||lle}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 ule(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 I5),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 I5),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 ule{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 hle{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 I5{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new hle,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 A5(t,n,e){const i=t.previousIndex;if(null===i)return i;let r=0;return e&&i{class t{static#e=this.\u0275prov=xe({token:t,providedIn:"root",factory:R5});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||R5()),deps:[[t,new ef,new Al]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new ce(901,!1)}}return t})();const _le=x5(null,"core",[]);let vle=(()=>{class t{constructor(e){}static#e=this.\u0275fac=function(i){return new(i||t)(X(Bc))};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({})}return t})();function Xf(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}function t8(t){const n=jt(null);try{return t()}finally{jt(n)}}let n8=null;function Gl(){return n8}class tde{}const xt=new ee("");let cD=(()=>{class t{historyGo(e){throw new Error("")}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=xe({token:t,factory:()=>be(ide),providedIn:"platform"})}return t})();const nde=new ee("");let ide=(()=>{class t extends cD{constructor(){super(),this._doc=be(xt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Gl().getBaseHref(this._doc)}onPopState(e){const i=Gl().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Gl().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=xe({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function lD(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 i8(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 Vc(t){return t&&"?"!==t[0]?"?"+t:t}let ku=(()=>{class t{historyGo(e){throw new Error("")}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=xe({token:t,factory:()=>be(o8),providedIn:"root"})}return t})();const r8=new ee("");let o8=(()=>{class t extends ku{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??be(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 lD(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Vc(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+Vc(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+Vc(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)(X(cD),X(r8,8))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),rde=(()=>{class t extends ku{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=lD(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+Vc(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+Vc(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)(X(cD),X(r8,8))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac})}return t})(),Eu=(()=>{class t{constructor(e){this._subject=new Se,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function ade(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(i8(s8(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+Vc(i))}normalize(e){return t.stripTrailingSlash(function sde(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,s8(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+Vc(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Vc(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=Vc;static#t=this.joinWithSlash=lD;static#n=this.stripTrailingSlash=i8;static#i=this.\u0275fac=function(i){return new(i||t)(X(ku))};static#r=this.\u0275prov=xe({token:t,factory:()=>function ode(){return new Eu(X(ku))}(),providedIn:"root"})}return t})();function s8(t){return t.replace(/\/index.html$/,"")}var $o=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}($o||{}),di=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(di||{}),Is=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(Is||{});const or={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 gx(t,n){return Qs(Ho(t)[mi.DateFormat],n)}function _x(t,n){return Qs(Ho(t)[mi.TimeFormat],n)}function vx(t,n){return Qs(Ho(t)[mi.DateTimeFormat],n)}function qs(t,n){const e=Ho(t),i=e[mi.NumberSymbols][n];if(typeof i>"u"){if(n===or.CurrencyDecimal)return e[mi.NumberSymbols][or.Decimal];if(n===or.CurrencyGroup)return e[mi.NumberSymbols][or.Group]}return i}function c8(t){if(!t[mi.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[mi.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Qs(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 uD(t){const[n,e]=t.split(":");return{hours:+n,minutes:+e}}const xde=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,bx={},wde=/((?:[^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 Uc=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(Uc||{}),Ln=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}(Ln||{}),Bn=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(Bn||{});function Cde(t,n,e,i){let r=function Rde(t){if(u8(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 yx(r,o-1,s)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(xde))return function Pde(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(!u8(n))throw new Error(`Unable to convert "${t}" into a date`);return n}(t);n=zc(e,n)||n;let a,s=[];for(;n;){if(a=wde.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=d8(i,c),r=function Mde(t,n,e){const i=e?-1:1,r=t.getTimezoneOffset();return function Ade(t,n){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+n),t}(t,i*(d8(n,r)-r))}(r,i,!0));let l="";return s.forEach(d=>{const u=function Ide(t){if(fD[t])return fD[t];let n;switch(t){case"G":case"GG":case"GGG":n=pi(Bn.Eras,di.Abbreviated);break;case"GGGG":n=pi(Bn.Eras,di.Wide);break;case"GGGGG":n=pi(Bn.Eras,di.Narrow);break;case"y":n=sr(Ln.FullYear,1,0,!1,!0);break;case"yy":n=sr(Ln.FullYear,2,0,!0,!0);break;case"yyy":n=sr(Ln.FullYear,3,0,!1,!0);break;case"yyyy":n=sr(Ln.FullYear,4,0,!1,!0);break;case"Y":n=kx(1);break;case"YY":n=kx(2,!0);break;case"YYY":n=kx(3);break;case"YYYY":n=kx(4);break;case"M":case"L":n=sr(Ln.Month,1,1);break;case"MM":case"LL":n=sr(Ln.Month,2,1);break;case"MMM":n=pi(Bn.Months,di.Abbreviated);break;case"MMMM":n=pi(Bn.Months,di.Wide);break;case"MMMMM":n=pi(Bn.Months,di.Narrow);break;case"LLL":n=pi(Bn.Months,di.Abbreviated,$o.Standalone);break;case"LLLL":n=pi(Bn.Months,di.Wide,$o.Standalone);break;case"LLLLL":n=pi(Bn.Months,di.Narrow,$o.Standalone);break;case"w":n=hD(1);break;case"ww":n=hD(2);break;case"W":n=hD(1,!0);break;case"d":n=sr(Ln.Date,1);break;case"dd":n=sr(Ln.Date,2);break;case"c":case"cc":n=sr(Ln.Day,1);break;case"ccc":n=pi(Bn.Days,di.Abbreviated,$o.Standalone);break;case"cccc":n=pi(Bn.Days,di.Wide,$o.Standalone);break;case"ccccc":n=pi(Bn.Days,di.Narrow,$o.Standalone);break;case"cccccc":n=pi(Bn.Days,di.Short,$o.Standalone);break;case"E":case"EE":case"EEE":n=pi(Bn.Days,di.Abbreviated);break;case"EEEE":n=pi(Bn.Days,di.Wide);break;case"EEEEE":n=pi(Bn.Days,di.Narrow);break;case"EEEEEE":n=pi(Bn.Days,di.Short);break;case"a":case"aa":case"aaa":n=pi(Bn.DayPeriods,di.Abbreviated);break;case"aaaa":n=pi(Bn.DayPeriods,di.Wide);break;case"aaaaa":n=pi(Bn.DayPeriods,di.Narrow);break;case"b":case"bb":case"bbb":n=pi(Bn.DayPeriods,di.Abbreviated,$o.Standalone,!0);break;case"bbbb":n=pi(Bn.DayPeriods,di.Wide,$o.Standalone,!0);break;case"bbbbb":n=pi(Bn.DayPeriods,di.Narrow,$o.Standalone,!0);break;case"B":case"BB":case"BBB":n=pi(Bn.DayPeriods,di.Abbreviated,$o.Format,!0);break;case"BBBB":n=pi(Bn.DayPeriods,di.Wide,$o.Format,!0);break;case"BBBBB":n=pi(Bn.DayPeriods,di.Narrow,$o.Format,!0);break;case"h":n=sr(Ln.Hours,1,-12);break;case"hh":n=sr(Ln.Hours,2,-12);break;case"H":n=sr(Ln.Hours,1);break;case"HH":n=sr(Ln.Hours,2);break;case"m":n=sr(Ln.Minutes,1);break;case"mm":n=sr(Ln.Minutes,2);break;case"s":n=sr(Ln.Seconds,1);break;case"ss":n=sr(Ln.Seconds,2);break;case"S":n=sr(Ln.FractionalSeconds,1);break;case"SS":n=sr(Ln.FractionalSeconds,2);break;case"SSS":n=sr(Ln.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=wx(Uc.Short);break;case"ZZZZZ":n=wx(Uc.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=wx(Uc.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=wx(Uc.Long);break;default:return null}return fD[t]=n,n}(d);l+=u?u(r,e,c):"''"===d?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function yx(t,n,e){const i=new Date(0);return i.setFullYear(t,n,e),i.setHours(0,0,0),i}function zc(t,n){const e=function lde(t){return Ho(t)[mi.LocaleId]}(t);if(bx[e]??={},bx[e][n])return bx[e][n];let i="";switch(n){case"shortDate":i=gx(t,Is.Short);break;case"mediumDate":i=gx(t,Is.Medium);break;case"longDate":i=gx(t,Is.Long);break;case"fullDate":i=gx(t,Is.Full);break;case"shortTime":i=_x(t,Is.Short);break;case"mediumTime":i=_x(t,Is.Medium);break;case"longTime":i=_x(t,Is.Long);break;case"fullTime":i=_x(t,Is.Full);break;case"short":const r=zc(t,"shortTime"),o=zc(t,"shortDate");i=xx(vx(t,Is.Short),[r,o]);break;case"medium":const s=zc(t,"mediumTime"),a=zc(t,"mediumDate");i=xx(vx(t,Is.Medium),[s,a]);break;case"long":const c=zc(t,"longTime"),l=zc(t,"longDate");i=xx(vx(t,Is.Long),[c,l]);break;case"full":const d=zc(t,"fullTime"),u=zc(t,"fullDate");i=xx(vx(t,Is.Full),[d,u])}return i&&(bx[e][n]=i),i}function xx(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return null!=n&&i in n?n[i]:e})),t}function va(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===Ln.Hours)0===a&&-12===e&&(a=12);else if(t===Ln.FractionalSeconds)return function kde(t,n){return va(t,3).substring(0,n)}(a,n);const c=qs(s,or.MinusSign);return va(a,n,c,i,r)}}function pi(t,n,e=$o.Format,i=!1){return function(r,o){return function Tde(t,n,e,i,r,o){switch(e){case Bn.Months:return function hde(t,n,e){const i=Ho(t),o=Qs([i[mi.MonthsFormat],i[mi.MonthsStandalone]],n);return Qs(o,e)}(n,r,i)[t.getMonth()];case Bn.Days:return function ude(t,n,e){const i=Ho(t),o=Qs([i[mi.DaysFormat],i[mi.DaysStandalone]],n);return Qs(o,e)}(n,r,i)[t.getDay()];case Bn.DayPeriods:const s=t.getHours(),a=t.getMinutes();if(o){const l=function gde(t){const n=Ho(t);return c8(n),(n[mi.ExtraData][2]||[]).map(i=>"string"==typeof i?uD(i):[uD(i[0]),uD(i[1])])}(n),d=function _de(t,n,e){const i=Ho(t);c8(i);const o=Qs([i[mi.ExtraData][0],i[mi.ExtraData][1]],n)||[];return Qs(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 Uc.Short:return(r>=0?"+":"")+va(s,2,o)+va(Math.abs(r%60),2,o);case Uc.ShortGMT:return"GMT"+(r>=0?"+":"")+va(s,1,o);case Uc.Long:return"GMT"+(r>=0?"+":"")+va(s,2,o)+":"+va(Math.abs(r%60),2,o);case Uc.Extended:return 0===i?"Z":(r>=0?"+":"")+va(s,2,o)+":"+va(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}const Sde=0,Cx=4;function l8(t){const n=t.getDay(),e=0===n?-3:Cx-n;return yx(t.getFullYear(),t.getMonth(),t.getDate()+e)}function hD(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=l8(e),s=function Dde(t){const n=yx(t,Sde,1).getDay();return yx(t,0,1+(n<=Cx?Cx:Cx+7)-n)}(o.getFullYear()),a=o.getTime()-s.getTime();r=1+Math.round(a/6048e5)}return va(r,t,qs(i,or.MinusSign))}}function kx(t,n=!1){return function(e,i){return va(l8(e).getFullYear(),t,qs(i,or.MinusSign),n)}}const fD={};function d8(t,n){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function u8(t){return t instanceof Date&&!isNaN(t.valueOf())}function p8(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 bD=/\s+/,g8=[];let ba=(()=>{class t{constructor(e,i){this._ngEl=e,this._renderer=i,this.initialClasses=g8,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(bD):g8}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(bD):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(bD).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)(y(Ue),y(Lc))};static#t=this.\u0275dir=J({type:t,selectors:[["","ngClass",""]],inputs:{klass:[ue.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}return t})();class Wde{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 _o=(()=>{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 Wde(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),v8(a,r)}});for(let r=0,o=i.length;r{v8(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}static#e=this.\u0275fac=function(i){return new(i||t)(y(li),y(Un),y($l))};static#t=this.\u0275dir=J({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return t})();function v8(t,n){t.context.$implicit=n.item}let si=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new qde,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){b8("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){b8("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)(y(li),y(Un))};static#t=this.\u0275dir=J({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return t})();class qde{constructor(){this.$implicit=null,this.ngIf=null}}function b8(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${gr(n)}'.`)}class yD{constructor(n,e){this._viewContainerRef=n,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let a_=(()=>{class t{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const i=e===this._ngSwitch;return this._lastCasesMatched||=i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const i of this._defaultViews)i.enforceState(e)}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=J({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return t})(),xD=(()=>{class t{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new yD(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(i){return new(i||t)(y(li),y(Un),y(a_,9))};static#t=this.\u0275dir=J({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return t})(),y8=(()=>{class t{constructor(e,i,r){r._addDefault(new yD(e,i))}static#e=this.\u0275fac=function(i){return new(i||t)(y(li),y(Un),y(a_,9))};static#t=this.\u0275dir=J({type:t,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return t})(),Tx=(()=>{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)(y(li))};static#t=this.\u0275dir=J({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Wn]})}return t})();function ya(t,n){return new ce(2100,!1)}class Yde{createSubscription(n,e){return t8(()=>n.subscribe({next:e,error:i=>{throw i}}))}dispose(n){t8(()=>n.unsubscribe())}}class Zde{createSubscription(n,e){return n.then(e,i=>{throw i})}dispose(n){}}const Jde=new Zde,eue=new Yde;let wD=(()=>{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(i_(e))return Jde;if(u5(e))return eue;throw ya()}_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)(y(an,16))};static#t=this.\u0275pipe=co({name:"async",type:t,pure:!1,standalone:!0})}return t})(),CD=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw ya();return e.toUpperCase()}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275pipe=co({name:"uppercase",type:t,pure:!0,standalone:!0})}return t})();const oue=new ee(""),sue=new ee("");let Tu=(()=>{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 Cde(e,i??this.defaultOptions?.dateFormat??"mediumDate",o||this.locale,r??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(s){throw ya()}}static#e=this.\u0275fac=function(i){return new(i||t)(y(Za,16),y(oue,24),y(sue,24))};static#t=this.\u0275pipe=co({name:"date",type:t,pure:!0,standalone:!0})}return t})(),Zr=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({})}return t})();const C8="browser";function k8(t){return t===C8}function E8(t){return"server"===t}let bue=(()=>{class t{static#e=this.\u0275prov=xe({token:t,providedIn:"root",factory:()=>k8(be(Fc))?new yue(be(xt),window):new wue})}return t})();class yue{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 xue(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 wue{setOffset(n){}getScrollPosition(){return[0,0]}scrollToPosition(n){}scrollToAnchor(n){}setHistoryScrollRestoration(n){}}class T8{}class Xue extends tde{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class SD extends Xue{static makeCurrent(){!function ede(t){n8??=t}(new SD)}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 Yue(){return d_=d_||document.querySelector("base"),d_?d_.getAttribute("href"):null}();return null==e?null:function Zue(t){return new URL(t,document.baseURI).pathname}(e)}resetBaseElement(){d_=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return p8(document.cookie,n)}}let d_=null,ehe=(()=>{class t{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac})}return t})();const DD=new ee("");let O8=(()=>{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 ce(5101,!1);return this._eventNameToPlugin.set(e,i),i}static#e=this.\u0275fac=function(i){return new(i||t)(X(DD),X(ze))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac})}return t})();class N8{constructor(n){this._doc=n}}const ID="ng-app-id";let L8=(()=>{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=E8(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[${ID}="${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(ID),o;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=i,this.platformIsServer&&s.setAttribute(ID,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)(X(xt),X(pg),X(iT,8),X(Fc))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac})}return t})();const AD={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/"},MD=/%COMP%/g,rhe=new ee("",{providedIn:"root",factory:()=>!0});function V8(t,n){return n.map(e=>e.replace(MD,t))}let RD=(()=>{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=E8(a),this.defaultRenderer=new PD(e,s,c,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===la.ShadowDom&&(i={...i,encapsulation:la.Emulated});const r=this.getOrCreateRenderer(e,i);return r instanceof z8?r.applyToHost(e):r instanceof FD&&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 la.Emulated:o=new z8(c,l,i,this.appId,d,s,a,u);break;case la.ShadowDom:return new che(c,l,e,i,s,a,this.nonce,u);default:o=new FD(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)(X(O8),X(L8),X(pg),X(rhe),X(xt),X(Fc),X(ze),X(iT))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac})}return t})();class PD{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(AD[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(U8(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(U8(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 ce(-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=AD[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const r=AD[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&(Ll.DashCase|Ll.Important)?n.style.setProperty(e,i,r&Ll.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&Ll.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=Gl().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 U8(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class che extends PD{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=V8(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 FD extends PD{constructor(n,e,i,r,o,s,a,c){super(n,o,s,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r,this.styles=c?V8(c,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class z8 extends FD{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 ohe(t){return"_ngcontent-%COMP%".replace(MD,t)}(l),this.hostAttr=function she(t){return"_nghost-%COMP%".replace(MD,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 lhe=(()=>{class t extends N8{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)(X(xt))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac})}return t})();const H8=["alt","control","meta","shift"],dhe={"\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"},uhe={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let hhe=(()=>{class t extends N8{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(()=>Gl().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."),H8.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=dhe[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"),H8.forEach(s=>{s!==r&&(0,uhe[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)(X(xt))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac})}return t})();const $8=[{provide:Fc,useValue:C8},{provide:E4,useValue:function fhe(){SD.makeCurrent()},multi:!0},{provide:xt,useFactory:function phe(){return function lte(t){nT=t}(document),document},deps:[]}],ghe=x5(_le,"browser",$8),_he=new ee(""),G8=[{provide:rx,useClass:class Jue{addToWindow(n){Vn.getAngularTestability=(i,r=!0)=>{const o=n.findTestabilityInTree(i,r);if(null==o)throw new ce(5103,!1);return o},Vn.getAllAngularTestabilities=()=>n.getAllTestabilities(),Vn.getAllAngularRootElements=()=>n.getAllRootElements(),Vn.frameworkStabilizers||(Vn.frameworkStabilizers=[]),Vn.frameworkStabilizers.push(i=>{const r=Vn.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?Gl().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:d5,useClass:qS,deps:[ze,QS,rx]},{provide:qS,useClass:qS,deps:[ze,QS,rx]}],W8=[{provide:bE,useValue:"root"},{provide:Cs,useFactory:function mhe(){return new Cs},deps:[]},{provide:DD,useClass:lhe,multi:!0,deps:[xt,ze,Fc]},{provide:DD,useClass:hhe,multi:!0,deps:[xt]},RD,L8,O8,{provide:XT,useExisting:RD},{provide:T8,useClass:ehe,deps:[]},[]];let q8=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:pg,useValue:e.appId}]}}static#e=this.\u0275fac=function(i){return new(i||t)(X(_he,12))};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({providers:[...W8,...G8],imports:[Zr,vle]})}return t})(),vhe=(()=>{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)(X(xt))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),OD=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=xe({token:t,factory:function(i){let r=null;return r=i?new(i||t):X(whe),r},providedIn:"root"})}return t})(),whe=(()=>{class t extends OD{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case Xr.NONE:return i;case Xr.HTML:return ja(i,"HTML")?ks(i):$4(this._doc,String(i)).toString();case Xr.STYLE:return ja(i,"Style")?ks(i):i;case Xr.SCRIPT:if(ja(i,"Script"))return ks(i);throw new ce(5200,!1);case Xr.URL:return ja(i,"URL")?ks(i):hy(String(i));case Xr.RESOURCE_URL:if(ja(i,"ResourceURL"))return ks(i);throw new ce(5201,!1);default:throw new ce(5202,!1)}}bypassSecurityTrustHtml(e){return function Ate(t){return new kte(t)}(e)}bypassSecurityTrustStyle(e){return function Mte(t){return new Ete(t)}(e)}bypassSecurityTrustScript(e){return function Rte(t){return new Tte(t)}(e)}bypassSecurityTrustUrl(e){return function Pte(t){return new Ste(t)}(e)}bypassSecurityTrustResourceUrl(e){return function Fte(t){return new Dte(t)}(e)}static#e=this.\u0275fac=function(i){return new(i||t)(X(xt))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ND(t){return!!t&&(t instanceof Fn||Rn(t.lift)&&Rn(t.subscribe))}function Wl(t){return this instanceof Wl?(this.v=t,this):new Wl(t)}function e6(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 UD(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 t6(t){return Rn(t?.then)}function n6(t){return Rn(t[Xk])}function i6(t){return Symbol.asyncIterator&&Rn(t?.[Symbol.asyncIterator])}function r6(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 o6=function $he(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function s6(t){return Rn(t?.[o6])}function a6(t){return function J8(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 Wl?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 Wl(e.read());if(r)return yield Wl(void 0);yield yield Wl(i)}}finally{e.releaseLock()}})}function c6(t){return Rn(t?.getReader)}function vo(t){if(t instanceof Fn)return t;if(null!=t){if(n6(t))return function Ghe(t){return new Fn(n=>{const e=t[Xk]();if(Rn(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(zD(t))return function Whe(t){return new Fn(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,SO)})}(t);if(i6(t))return l6(t);if(s6(t))return function Qhe(t){return new Fn(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(c6(t))return function Khe(t){return l6(a6(t))}(t)}throw r6(t)}function l6(t){return new Fn(n=>{(function Xhe(t,n){var e,i,r,o;return function Y8(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=e6(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 Hc(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 d6(t,n=0){return Pi((e,i)=>{e.subscribe(yi(i,r=>Hc(i,t,()=>i.next(r),n),()=>Hc(i,t,()=>i.complete(),n),r=>Hc(i,t,()=>i.error(r),n)))})}function u6(t,n=0){return Pi((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function h6(t,n){if(!t)throw new Error("Iterable cannot be null");return new Fn(e=>{Hc(e,n,()=>{const i=t[Symbol.asyncIterator]();Hc(e,n,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function qi(t,n){return n?function nfe(t,n){if(null!=t){if(n6(t))return function Yhe(t,n){return vo(t).pipe(u6(n),d6(n))}(t,n);if(zD(t))return function Jhe(t,n){return new Fn(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}(t,n);if(t6(t))return function Zhe(t,n){return vo(t).pipe(u6(n),d6(n))}(t,n);if(i6(t))return h6(t,n);if(s6(t))return function efe(t,n){return new Fn(e=>{let i;return Hc(e,n,()=>{i=t[o6](),Hc(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)}),()=>Rn(i?.return)&&i.return()})}(t,n);if(c6(t))return function tfe(t,n){return h6(a6(t),n)}(t,n)}throw r6(t)}(t,n):vo(t)}function f6(t){return t&&Rn(t.schedule)}function HD(t){return t[t.length-1]}function m6(t){return Rn(HD(t))?t.pop():void 0}function h_(t){return f6(HD(t))?t.pop():void 0}function at(...t){return qi(t,h_(t))}const{isArray:rfe}=Array,{getPrototypeOf:ofe,prototype:sfe,keys:afe}=Object;function p6(t){if(1===t.length){const n=t[0];if(rfe(n))return{args:n,keys:null};if(function cfe(t){return t&&"object"==typeof t&&ofe(t)===sfe}(n)){const e=afe(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}const{isArray:lfe}=Array;function jD(t){return mt(n=>function dfe(t,n){return lfe(n)?t(...n):t(n)}(t,n))}function g6(t,n){return t.reduce((e,i,r)=>(e[i]=n[r],e),{})}function jc(...t){const n=h_(t),e=m6(t),{args:i,keys:r}=p6(t);if(0===i.length)return qi([],n);const o=new Fn(function ufe(t,n,e=Sl){return i=>{_6(n,()=>{const{length:r}=t,o=new Array(r);let s=r,a=r;for(let c=0;c{const l=qi(t[c],n);let d=!1;l.subscribe(yi(i,u=>{o[c]=u,d||(d=!0,a--),a||i.next(e(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}(i,n,r?s=>g6(r,s):Sl));return e?o.pipe(jD(e)):o}function _6(t,n,e){t?Hc(e,t,n):n()}const Zf=$k(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Br(t,n,e=1/0){return Rn(n)?Br((i,r)=>mt((o,s)=>n(i,o,r,s))(vo(t(i,r))),e):("number"==typeof n&&(e=n),Pi((i,r)=>function hfe(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;vo(e(g,d++)).subscribe(yi(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(yi(n,f,()=>{u=!0,h()})),()=>{a?.()}}(i,r,t,e)))}function Jf(t=1/0){return Br(Sl,t)}function f_(...t){return function ffe(){return Jf(1)}()(qi(t,h_(t)))}function em(t){return new Fn(n=>{vo(t()).subscribe(n)})}function tm(t,n){const e=Rn(t)?t:()=>t,i=r=>r.error(e());return new Fn(n?r=>n.schedule(i,0,r):i)}const os=new Fn(t=>t.complete());function $D(){return Pi((t,n)=>{let e=null;t._refCount++;const i=yi(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 GD extends Fn{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,MO(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 $t;const e=this.getSubject();n.add(this.source.subscribe(yi(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=$t.EMPTY)}return n}refCount(){return $D()(this)}}function Qi(t,n){return Pi((e,i)=>{let r=null,o=0,s=!1;const a=()=>s&&!r&&i.complete();e.subscribe(yi(i,c=>{r?.unsubscribe();let l=0;const d=o++;vo(t(c,d)).subscribe(r=yi(i,u=>i.next(n?n(c,u,d,l++):u),()=>{r=null,a()}))},()=>{s=!0,a()}))})}function En(t){return t<=0?()=>os:Pi((n,e)=>{let i=0;n.subscribe(yi(e,r=>{++i<=t&&(e.next(r),t<=i&&e.complete())}))})}function wr(...t){const n=h_(t);return Pi((e,i)=>{(n?f_(t,e,n):f_(t,e)).subscribe(i)})}function ln(t,n){return Pi((e,i)=>{let r=0;e.subscribe(yi(i,o=>t.call(n,o,r++)&&i.next(o)))})}function Ax(t){return Pi((n,e)=>{let i=!1;n.subscribe(yi(e,r=>{i=!0,e.next(r)},()=>{i||e.next(t),e.complete()}))})}function v6(t=pfe){return Pi((n,e)=>{let i=!1;n.subscribe(yi(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(t())))})}function pfe(){return new Zf}function xa(t,n){const e=arguments.length>=2;return i=>i.pipe(t?ln((r,o)=>t(r,o,i)):Sl,En(1),e?Ax(n):v6(()=>new Zf))}function nm(t,n){return Rn(n)?Br(t,n,1):Br(t,1)}function Oi(t,n,e){const i=Rn(t)||n||e?{next:t,error:n,complete:e}:t;return i?Pi((r,o)=>{var s;null===(s=i.subscribe)||void 0===s||s.call(i);let a=!0;r.subscribe(yi(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)}))}):Sl}function Cr(t){return Pi((n,e)=>{let o,i=null,r=!1;i=n.subscribe(yi(e,void 0,void 0,s=>{o=vo(t(s,Cr(t)(n))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}function WD(t){return t<=0?()=>os:Pi((n,e)=>{let i=[];n.subscribe(yi(e,r=>{i.push(r),t{for(const r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function Mx(t){return mt(()=>t)}function im(t){return Pi((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function Et(t){return Pi((n,e)=>{vo(t).subscribe(yi(e,()=>e.complete(),xb)),!e.closed&&n.subscribe(e)})}const Jt="primary",m_=Symbol("RouteTitle");class bfe{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 rm(t){return new bfe(t)}function yfe(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 y6(t){return t.length>0?t[t.length-1]:null}function ql(t){return ND(t)?t:i_(t)?qi(Promise.resolve(t)):at(t)}const wfe={exact:function C6(t,n,e){if(!Su(t.segments,n.segments)||!Rx(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!C6(t.children[i],n.children[i],e))return!1;return!0},subset:k6},x6={exact:function Cfe(t,n){return Ja(t,n)},subset:function kfe(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>b6(t[e],n[e]))},ignored:()=>!0};function w6(t,n,e){return wfe[e.paths](t.root,n.root,e.matrixParams)&&x6[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function k6(t,n,e){return E6(t,n,n.segments,e)}function E6(t,n,e,i){if(t.segments.length>e.length){const r=t.segments.slice(0,e.length);return!(!Su(r,e)||n.hasChildren()||!Rx(r,e,i))}if(t.segments.length===e.length){if(!Su(t.segments,e)||!Rx(t.segments,e,i))return!1;for(const r in n.children)if(!t.children[r]||!k6(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!!(Su(t.segments,r)&&Rx(t.segments,r,i)&&t.children[Jt])&&E6(t.children[Jt],n,o,i)}}function Rx(t,n,e){return n.every((i,r)=>x6[e](t[r].parameters,i.parameters))}class om{constructor(n=new ai([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=rm(this.queryParams),this._queryParamMap}toString(){return Sfe.serialize(this)}}class ai{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 Px(this)}}class p_{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=rm(this.parameters),this._parameterMap}toString(){return D6(this)}}function Su(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let sm=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=xe({token:t,factory:()=>new QD,providedIn:"root"})}return t})();class QD{parse(n){const e=new Bfe(n);return new om(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${g_(n.root,!0)}`,i=function Afe(t){const n=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(r=>`${Fx(e)}=${Fx(r)}`).join("&"):`${Fx(e)}=${Fx(i)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${i}${"string"==typeof n.fragment?`#${function Dfe(t){return encodeURI(t)}(n.fragment)}`:""}`}}const Sfe=new QD;function Px(t){return t.segments.map(n=>D6(n)).join("/")}function g_(t,n){if(!t.hasChildren())return Px(t);if(n){const e=t.children[Jt]?g_(t.children[Jt],!1):"",i=[];return Object.entries(t.children).forEach(([r,o])=>{r!==Jt&&i.push(`${r}:${g_(o,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function Tfe(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?[g_(t.children[Jt],!1)]:[`${r}:${g_(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Jt]?`${Px(t)}/${e[0]}`:`${Px(t)}/(${e.join("//")})`}}function T6(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Fx(t){return T6(t).replace(/%3B/gi,";")}function KD(t){return T6(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ox(t){return decodeURIComponent(t)}function S6(t){return Ox(t.replace(/\+/g,"%20"))}function D6(t){return`${KD(t.path)}${function Ife(t){return Object.entries(t).map(([n,e])=>`;${KD(n)}=${KD(e)}`).join("")}(t.parameters)}`}const Mfe=/^[^\/()?;#]+/;function XD(t){const n=t.match(Mfe);return n?n[0]:""}const Rfe=/^[^\/()?;=#]+/,Ffe=/^[^=?&#]+/,Nfe=/^[^&#]+/;class Bfe{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ai([],{}):new ai([],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 ai(n,e)),i}parseSegment(){const n=XD(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new ce(4009,!1);return this.capture(n),new p_(Ox(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=function Pfe(t){const n=t.match(Rfe);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=XD(this.remaining);r&&(i=r,this.capture(i))}n[Ox(e)]=Ox(i)}parseQueryParam(n){const e=function Ofe(t){const n=t.match(Ffe);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function Lfe(t){const n=t.match(Nfe);return n?n[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=S6(e),o=S6(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=XD(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new ce(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 ai([],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 ce(4011,!1)}}function I6(t){return t.segments.length>0?new ai([],{[Jt]:t}):t}function A6(t){const n={};for(const[i,r]of Object.entries(t.children)){const o=A6(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 Vfe(t){if(1===t.numberOfChildren&&t.children[Jt]){const n=t.children[Jt];return new ai(t.segments.concat(n.segments),n.children)}return t}(new ai(t.segments,n))}function am(t){return t instanceof om}function M6(t){let n;const r=I6(function e(o){const s={};for(const c of o.children){const l=e(c);s[c.outlet]=l}const a=new ai(o.url,s);return o===t&&(n=a),a}(t.root));return n??r}function R6(t,n,e,i){let r=t;for(;r.parent;)r=r.parent;if(0===n.length)return YD(r,r,r,e,i);const o=function zfe(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new F6(!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 F6(e,n,i)}(n);if(o.toRoot())return YD(r,r,new ai([],{}),e,i);const s=function Hfe(t,n,e){if(t.isAbsolute)return new Lx(n,!0,0);if(!e)return new Lx(n,!1,NaN);if(null===e.parent)return new Lx(e,!0,0);const i=Nx(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 ce(4005,!1);r=i.segments.length}return new Lx(i,!1,r-o)}(e,e.segments.length-1+i,t.numberOfDoubleDots)}(o,r,t),a=s.processChildren?v_(s.segmentGroup,s.index,o.commands):O6(s.segmentGroup,s.index,o.commands);return YD(r,s.segmentGroup,a,e,i)}function Nx(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function __(t){return"object"==typeof t&&null!=t&&t.outlets}function YD(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:P6(t,n,e);const a=I6(A6(s));return new om(a,o,r)}function P6(t,n,e){const i={};return Object.entries(t.children).forEach(([r,o])=>{i[r]=o===n?e:P6(o,n,e)}),new ai(t.segments,i)}class F6{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&Nx(i[0]))throw new ce(4003,!1);const r=i.find(__);if(r&&r!==y6(i))throw new ce(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Lx{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function O6(t,n,e){if(t??=new ai([],{}),0===t.segments.length&&t.hasChildren())return v_(t,n,e);const i=function Gfe(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(__(a))break;const c=`${a}`,l=i0&&void 0===c)break;if(c&&l&&"object"==typeof l&&void 0===l.outlets){if(!L6(c,l,s))return o;i+=2}else{if(!L6(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=v_(t.children[Jt],n,e);return new ai(t.segments,o.children)}return Object.entries(i).forEach(([o,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(r[o]=O6(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{void 0===i[o]&&(r[o]=s)}),new ai(t.segments,r)}}function ZD(t,n,e){const i=t.segments.slice(0,n);let r=0;for(;r{"string"==typeof i&&(i=[i]),null!==i&&(n[e]=ZD(new ai([],{}),0,i))}),n}function N6(t){const n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function L6(t,n,e){return t==e.path&&Ja(n,e.parameters)}const b_="imperative";var kn=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}(kn||{});class ec{constructor(n,e){this.id=n,this.url=e}}class Bx extends ec{constructor(n,e,i="imperative",r=null){super(n,e),this.type=kn.NavigationStart,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class tc extends ec{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=kn.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var As=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(As||{}),Vx=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Vx||{});class cm extends ec{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=kn.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class lm extends ec{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=kn.NavigationSkipped}}class Ux extends ec{constructor(n,e,i,r){super(n,e),this.error=i,this.target=r,this.type=kn.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class B6 extends ec{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=kn.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class qfe extends ec{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=kn.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Qfe extends ec{constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=kn.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Kfe extends ec{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=kn.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Xfe extends ec{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=kn.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Yfe{constructor(n){this.route=n,this.type=kn.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Zfe{constructor(n){this.route=n,this.type=kn.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Jfe{constructor(n){this.snapshot=n,this.type=kn.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class eme{constructor(n){this.snapshot=n,this.type=kn.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class tme{constructor(n){this.snapshot=n,this.type=kn.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nme{constructor(n){this.snapshot=n,this.type=kn.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class V6{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=kn.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class JD{}class e2{constructor(n){this.url=n}}class ime{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new y_,this.attachRef=null}}let y_=(()=>{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 ime,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=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class U6{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=t2(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=t2(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=n2(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return n2(n,this._root).map(e=>e.value)}}function t2(t,n){if(t===n.value)return n;for(const e of n.children){const i=t2(t,e);if(i)return i}return null}function n2(t,n){if(t===n.value)return[n];for(const e of n.children){const i=n2(t,e);if(i.length)return i.unshift(n),i}return[]}class wa{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function dm(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class z6 extends U6{constructor(n,e){super(n),this.snapshot=e,s2(this,n)}toString(){return this.snapshot.toString()}}function H6(t){const n=function rme(t){const o=new o2([],{},{},"",{},Jt,t,null,{});return new j6("",new wa(o,[]))}(t),e=new Ei([new p_("",{})]),i=new Ei({}),r=new Ei({}),o=new Ei({}),s=new Ei(""),a=new Ql(e,i,o,s,r,Jt,t,n.root);return a.snapshot=n.root,new z6(new wa(a,[]),n)}class Ql{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[m_]))??at(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=>rm(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(mt(n=>rm(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function r2(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&&G6(r)&&(i.resolve[m_]=r.title),i}class o2{get title(){return this.data?.[m_]}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??=rm(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=rm(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class j6 extends U6{constructor(n,e){super(e),this.url=n,s2(this,e)}toString(){return $6(this._root)}}function s2(t,n){n.value._routerState=t,n.children.forEach(e=>s2(t,e))}function $6(t){const n=t.children.length>0?` { ${t.children.map($6).join(", ")} } `:"";return`${t.value}${n}`}function a2(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,Ja(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),Ja(n.params,e.params)||t.paramsSubject.next(e.params),function xfe(t,n){if(t.length!==n.length)return!1;for(let e=0;eJa(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||c2(t.parent,n.parent))}function G6(t){return"string"==typeof t.title||null===t.title}let l2=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=Jt,this.activateEvents=new Se,this.deactivateEvents=new Se,this.attachEvents=new Se,this.detachEvents=new Se,this.parentContexts=be(y_),this.location=be(li),this.changeDetector=be(an),this.environmentInjector=be(ts),this.inputBinder=be(zx,{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 ce(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ce(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ce(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 ce(4013,!1);this._activatedRoute=e;const r=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new ome(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=J({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Wn]})}return t})();class ome{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i,this.__ngOutletInjector=!0}get(n,e){return n===Ql?this.route:n===y_?this.childContexts:this.parent.get(n,e)}}const zx=new ee("");let W6=(()=>{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(Qi(([o,s,a],c)=>(a={...o,...s,...a},0===c?at(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 Jle(t){const n=sn(t);if(!n)return null;const e=new Bg(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=xe({token:t,factory:t.\u0275fac})}return t})();function x_(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const r=function ame(t,n,e){return n.children.map(i=>{for(const r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return x_(t,i,r);return x_(t,i)})}(t,n,e);return new wa(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=>x_(t,a)),s}}const i=function cme(t){return new Ql(new Ei(t.url),new Ei(t.params),new Ei(t.queryParams),new Ei(t.fragment),new Ei(t.data),t.outlet,t.component,t)}(n.value),r=n.children.map(o=>x_(t,o));return new wa(i,r)}}const q6="ngNavigationCancelingError";function Q6(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=am(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=K6(!1,As.Redirect);return r.url=e,r.navigationBehaviorOptions=i,r}function K6(t,n){const e=new Error(`NavigationCancelingError: ${t||""}`);return e[q6]=!0,e.cancellationCode=n,e}function X6(t){return!!t&&t[q6]}let Y6=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=Ge({type:t,selectors:[["ng-component"]],standalone:!0,features:[NV],decls:1,vars:0,template:function(i,r){1&i&&we(0,"router-outlet")},dependencies:[l2],encapsulation:2})}return t})();function d2(t){const n=t.children&&t.children.map(d2),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==Jt&&(e.component=Y6),e}function nc(t){return t.outlet||Jt}function w_(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 gme{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),a2(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const r=dm(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=dm(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=dm(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=dm(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new nme(o.value.snapshot))}),n.children.length&&this.forwardEvent(new eme(n.value.snapshot))}activateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(a2(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),a2(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=w_(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 Z6{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class Hx{constructor(n,e){this.component=n,this.route=e}}function _me(t,n,e){const i=t._root;return C_(i,n?n._root:null,e,[i.value])}function um(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function jZ(t){return null!==Tb(t)}(t)?n.get(t):t:i}function C_(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=dm(n);return t.children.forEach(s=>{(function bme(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 yme(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!Su(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Su(t.url,n.url)||!Ja(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!c2(t,n)||!Ja(t.queryParams,n.queryParams);default:return!c2(t,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new Z6(i)):(o.data=s.data,o._resolvedData=s._resolvedData),C_(t,n,o.component?a?a.children:null:e,i,r),c&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Hx(a.outlet.component,s))}else s&&k_(n,a,r),r.canActivateChecks.push(new Z6(i)),C_(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])=>k_(a,e.getContext(s),r)),r}function k_(t,n,e){const i=dm(t),r=t.value;Object.entries(i).forEach(([o,s])=>{k_(s,r.component?n?n.children.getContext(o):null:n,e)}),e.canDeactivateChecks.push(new Hx(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}function E_(t){return"function"==typeof t}function J6(t){return t instanceof Zf||"EmptyError"===t?.name}const jx=Symbol("INITIAL_VALUE");function hm(){return Qi(t=>jc(t.map(n=>n.pipe(En(1),wr(jx)))).pipe(mt(n=>{for(const e of n)if(!0!==e){if(e===jx)return jx;if(!1===e||e instanceof om)return e}return!0}),ln(n=>n!==jx),En(1)))}function eU(t){return function PZ(...t){return DO(t)}(Oi(n=>{if(am(n))throw Q6(0,n)}),mt(n=>!0===n))}class u2{constructor(n){this.segmentGroup=n||null}}class h2 extends Error{constructor(n){super(),this.urlTree=n}}function fm(t){return tm(new u2(t))}class Vme{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 at(i);if(r.numberOfChildren>1||!r.children[Jt])return tm(new ce(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 h2(r);return r}applyRedirectCreateUrlTree(n,e,i,r){const o=this.createSegmentGroup(n,e.root,i,r);return new om(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 ai(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 ce(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 f2={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ume(t,n,e,i,r){const o=m2(t,n,e);return o.matched?(i=function dme(t,n){return t.providers&&!t._injector&&(t._injector=Ly(t.providers,n,`Route: ${t.path}`)),t._injector??n}(n,i),function Nme(t,n,e,i){const r=n.canMatch;return r&&0!==r.length?at(r.map(s=>{const a=um(s,t);return ql(function Tme(t){return t&&E_(t.canMatch)}(a)?a.canMatch(n,e):Na(t,()=>a(n,e)))})).pipe(hm(),eU()):at(!0)}(i,n,e).pipe(mt(s=>!0===s?o:{...f2}))):at(o)}function m2(t,n,e){if("**"===n.path)return function zme(t){return{matched:!0,parameters:t.length>0?y6(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}(e);if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...f2}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(n.matcher||yfe)(e,t,n);if(!r)return{...f2};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 tU(t,n,e,i){return e.length>0&&function $me(t,n,e){return e.some(i=>$x(t,n,i)&&nc(i)!==Jt)}(t,e,i)?{segmentGroup:new ai(n,jme(i,new ai(e,t.children))),slicedSegments:[]}:0===e.length&&function Gme(t,n,e){return e.some(i=>$x(t,n,i))}(t,e,i)?{segmentGroup:new ai(t.segments,Hme(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new ai(t.segments,t.children),slicedSegments:e}}function Hme(t,n,e,i){const r={};for(const o of e)if($x(t,n,o)&&!i[nc(o)]){const s=new ai([],{});r[nc(o)]=s}return{...i,...r}}function jme(t,n){const e={};e[Jt]=n;for(const i of t)if(""===i.path&&nc(i)!==Jt){const r=new ai([],{});e[nc(i)]=r}return e}function $x(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}class Qme{}class Yme{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 Vme(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(n){return new ce(4002,`'${n.segmentGroup}'`)}recognize(){const n=tU(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(mt(e=>{const i=new o2([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Jt,this.rootComponentType,null,{}),r=new wa(i,e),o=new j6("",r),s=function Ufe(t,n,e=null,i=null){return R6(M6(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(Cr(i=>{if(i instanceof h2)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof u2?this.noMatchError(i):i}))}inheritParamsAndData(n,e){const i=n.value,r=r2(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 wa?[o]:[]))}processChildren(n,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return qi(r).pipe(nm(o=>{const s=i.children[o],a=function mme(t,n){const e=t.filter(i=>nc(i)===n);return e.push(...t.filter(i=>nc(i)!==n)),e}(e,o);return this.processSegmentGroup(n,a,s,o)}),function _fe(t,n){return Pi(function gfe(t,n,e,i,r){return(o,s)=>{let a=e,c=n,l=0;o.subscribe(yi(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)),Ax(null),function vfe(t,n){const e=arguments.length>=2;return i=>i.pipe(t?ln((r,o)=>t(r,o,i)):Sl,WD(1),e?Ax(n):v6(()=>new Zf))}(),Br(o=>{if(null===o)return fm(i);const s=nU(o);return function Zme(t){t.sort((n,e)=>n.value.outlet===Jt?-1:e.value.outlet===Jt?1:n.value.outlet.localeCompare(e.value.outlet))}(s),at(s)}))}processSegment(n,e,i,r,o,s){return qi(e).pipe(nm(a=>this.processSegmentAgainstRoute(a._injector??n,e,a,i,r,o,s).pipe(Cr(c=>{if(c instanceof u2)return at(null);throw c}))),xa(a=>!!a),Cr(a=>{if(J6(a))return function qme(t,n,e){return 0===n.length&&!t.children[e]}(i,r,o)?at(new Qme):fm(i);throw a}))}processSegmentAgainstRoute(n,e,i,r,o,s,a){return function Wme(t,n,e,i){return!!(nc(t)===i||i!==Jt&&$x(n,e,t))&&m2(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):fm(r):fm(r)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){const{matched:a,consumedSegments:c,positionalParamSegments:l,remainingSegments:d}=m2(e,r,o);if(!a)return fm(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(Br(h=>this.processSegment(n,i,e,h.concat(d),s,!1)))}matchSegmentAgainstRoute(n,e,i,r,o){const s=Ume(e,i,r,n);return"**"===i.path&&(e.children={}),s.pipe(Qi(a=>a.matched?this.getChildConfig(n=i._injector??n,i,r).pipe(Qi(({routes:c})=>{const l=i._loadedInjector??n,{consumedSegments:d,remainingSegments:u,parameters:h}=a,f=new o2(d,h,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function epe(t){return t.data||{}}(i),nc(i),i.component??i._loadedComponent??null,i,function tpe(t){return t.resolve||{}}(i)),{segmentGroup:m,slicedSegments:g}=tU(e,d,u,c);if(0===g.length&&m.hasChildren())return this.processChildren(l,c,m).pipe(mt(v=>null===v?null:new wa(f,v)));if(0===c.length&&0===g.length)return at(new wa(f,[]));const p=nc(i)===o;return this.processSegment(l,c,m,g,p?Jt:o,!0).pipe(mt(v=>new wa(f,v instanceof wa?[v]:[])))})):fm(e)))}getChildConfig(n,e,i){return e.children?at({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?at({routes:e._loadedRoutes,injector:e._loadedInjector}):function Ome(t,n,e,i){const r=n.canLoad;return void 0===r||0===r.length?at(!0):at(r.map(s=>{const a=um(s,t);return ql(function wme(t){return t&&E_(t.canLoad)}(a)?a.canLoad(n,e):Na(t,()=>a(n,e)))})).pipe(hm(),eU())}(n,e,i).pipe(Br(r=>r?this.configLoader.loadChildren(n,e).pipe(Oi(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function Bme(t){return tm(K6(!1,As.GuardRejected))}())):at({routes:[],injector:n})}}function Jme(t){const n=t.value.routeConfig;return n&&""===n.path}function nU(t){const n=[],e=new Set;for(const i of t){if(!Jme(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=nU(i.children);n.push(new wa(i.value,r))}return n.filter(i=>!e.has(i))}function iU(t){const n=t.children.map(e=>iU(e)).flat();return[t,...n]}function p2(t){return Qi(n=>{const e=t(n);return e?qi(e).pipe(mt(()=>n)):at(n)})}let rU=(()=>{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[m_]}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=xe({token:t,factory:()=>be(ape),providedIn:"root"})}return t})(),ape=(()=>{class t extends rU{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)(X(vhe))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const mm=new ee("",{providedIn:"root",factory:()=>({})}),pm=new ee("");let g2=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=be(p5)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return at(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=ql(e.loadComponent()).pipe(mt(oU),Oi(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),im(()=>{this.componentLoaders.delete(e)})),r=new GD(i,()=>new Re).pipe($D());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return at({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=function cpe(t,n,e,i){return ql(t.loadChildren()).pipe(mt(oU),Br(r=>r instanceof O3||Array.isArray(r)?at(r):qi(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(pm,[],{optional:!0,self:!0}).flat()),{routes:s.map(d2),injector:o}}))}(i,this.compiler,e,this.onLoadEndListener).pipe(im(()=>{this.childrenLoaders.delete(i)})),s=new GD(o,()=>new Re).pipe($D());return this.childrenLoaders.set(i,s),s}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function oU(t){return function lpe(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let _2=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=xe({token:t,factory:()=>be(dpe),providedIn:"root"})}return t})(),dpe=(()=>{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=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const sU=new ee(""),aU=new ee("");function upe(t,n,e){const i=t.get(aU),r=t.get(xt);return t.get(ze).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 hpe(t){return new Promise(n=>{XL(n,{injector:t})})}(t))),{onViewTransitionCreated:c}=i;return c&&Na(t,()=>c({transition:a,from:n,to:e})),s})}let Gx=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Re,this.transitionAbortSubject=new Re,this.configLoader=be(g2),this.environmentInjector=be(ts),this.urlSerializer=be(sm),this.rootContexts=be(y_),this.location=be(Eu),this.inputBindingEnabled=null!==be(zx,{optional:!0}),this.titleStrategy=be(rU),this.options=be(mm,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=be(_2),this.createViewTransition=be(sU,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>at(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new Zfe(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new Yfe(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 Ei({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:b_,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ln(o=>0!==o.id),mt(o=>({...o,extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),Qi(o=>{let s=!1,a=!1;return at(o).pipe(Qi(c=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",As.SupersededByNewNavigation),os;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 lm(c.id,this.urlSerializer.serialize(c.rawUrl),u,Vx.IgnoredSameUrlNavigation)),c.resolve(null),os}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return at(c).pipe(Qi(u=>{const h=this.transitions?.getValue();return this.events.next(new Bx(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),h!==this.transitions?.getValue()?os:Promise.resolve(u)}),function npe(t,n,e,i,r,o){return Br(s=>function Kme(t,n,e,i,r,o,s="emptyOnly"){return new Yme(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),Oi(u=>{o.targetSnapshot=u.targetSnapshot,o.urlAfterRedirects=u.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects};const h=new B6(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 Bx(u,this.urlSerializer.serialize(h),f,m);this.events.next(p);const v=H6(this.rootComponentType).snapshot;return this.currentTransition=o={...c,targetSnapshot:v,urlAfterRedirects:h,extras:{...g,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=h,at(o)}{const u="";return this.events.next(new lm(c.id,this.urlSerializer.serialize(c.extractedUrl),u,Vx.IgnoredByUrlHandlingStrategy)),c.resolve(null),os}}),Oi(c=>{const l=new qfe(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:_me(c.targetSnapshot,c.currentSnapshot,this.rootContexts)},o)),function Sme(t,n){return Br(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?at({...e,guardsResult:!0}):function Dme(t,n,e,i){return qi(t).pipe(Br(r=>function Fme(t,n,e,i,r){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?at(o.map(a=>{const c=w_(n)??r,l=um(a,c);return ql(function Eme(t){return t&&E_(t.canDeactivate)}(l)?l.canDeactivate(t,n,e,i):Na(c,()=>l(t,n,e,i))).pipe(xa())})).pipe(hm()):at(!0)}(r.component,r.route,e,n,i)),xa(r=>!0!==r,!0))}(s,i,r,t).pipe(Br(a=>a&&function xme(t){return"boolean"==typeof t}(a)?function Ime(t,n,e,i){return qi(n).pipe(nm(r=>f_(function Mme(t,n){return null!==t&&n&&n(new Jfe(t)),at(!0)}(r.route.parent,i),function Ame(t,n){return null!==t&&n&&n(new tme(t)),at(!0)}(r.route,i),function Pme(t,n,e){const i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function vme(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=>em(()=>at(s.guards.map(c=>{const l=w_(s.node)??e,d=um(c,l);return ql(function kme(t){return t&&E_(t.canActivateChild)}(d)?d.canActivateChild(i,t):Na(l,()=>d(i,t))).pipe(xa())})).pipe(hm())));return at(o).pipe(hm())}(t,r.path,e),function Rme(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return at(!0);const r=i.map(o=>em(()=>{const s=w_(n)??e,a=um(o,s);return ql(function Cme(t){return t&&E_(t.canActivate)}(a)?a.canActivate(n,t):Na(s,()=>a(n,t))).pipe(xa())}));return at(r).pipe(hm())}(t,r.route,e))),xa(r=>!0!==r,!0))}(i,o,t,n):at(a)),mt(a=>({...e,guardsResult:a})))})}(this.environmentInjector,c=>this.events.next(c)),Oi(c=>{if(o.guardsResult=c.guardsResult,am(c.guardsResult))throw Q6(0,c.guardsResult);const l=new Qfe(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),ln(c=>!!c.guardsResult||(this.cancelNavigationTransition(c,"",As.GuardRejected),!1)),p2(c=>{if(c.guards.canActivateChecks.length)return at(c).pipe(Oi(l=>{const d=new Kfe(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),Qi(l=>{let d=!1;return at(l).pipe(function ipe(t,n){return Br(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return at(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 iU(c))s.add(l);let a=0;return qi(s).pipe(nm(c=>o.has(c)?function rpe(t,n,e,i){const r=t.routeConfig,o=t._resolve;return void 0!==r?.title&&!G6(r)&&(o[m_]=r.title),function ope(t,n,e,i){const r=qD(t);if(0===r.length)return at({});const o={};return qi(r).pipe(Br(s=>function spe(t,n,e,i){const r=w_(n)??i,o=um(t,r);return ql(o.resolve?o.resolve(n,e):Na(r,()=>o(n,e)))}(t[s],n,e,i).pipe(xa(),Oi(a=>{o[s]=a}))),WD(1),Mx(o),Cr(s=>J6(s)?os:tm(s)))}(o,t,n,i).pipe(mt(s=>(t._resolvedData=s,t.data=r2(t,t.parent,e).resolve,null)))}(c,i,t,n):(c.data=r2(c,c.parent,t).resolve,at(void 0))),Oi(()=>a++),WD(1),Br(c=>a===s.size?at(e):os))})}(this.paramsInheritanceStrategy,this.environmentInjector),Oi({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",As.NoDataFromResolver)}}))}),Oi(l=>{const d=new Xfe(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),p2(c=>{const l=d=>{const u=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(d.routeConfig).pipe(Oi(h=>{d.component=h}),mt(()=>{})));for(const h of d.children)u.push(...l(h));return u};return jc(l(c.targetSnapshot.root)).pipe(Ax(null),En(1))}),p2(()=>this.afterPreactivation()),Qi(()=>{const{currentSnapshot:c,targetSnapshot:l}=o,d=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return d?qi(d).pipe(mt(()=>o)):at(o)}),mt(c=>{const l=function sme(t,n,e){const i=x_(t,n._root,e?e._root:void 0);return new z6(i,n)}(e.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=o={...c,targetRouterState:l},this.currentNavigation.targetRouterState=l,o}),Oi(()=>{this.events.next(new JD)}),((t,n,e,i)=>mt(r=>(new gme(n,r.targetRouterState,r.currentRouterState,e,i).activate(t),r)))(this.rootContexts,e.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),En(1),Oi({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new tc(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),Et(this.transitionAbortSubject.pipe(Oi(c=>{throw c}))),im(()=>{!s&&!a&&this.cancelNavigationTransition(o,"",As.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),Cr(c=>{if(a=!0,X6(c))this.events.next(new cm(o.id,this.urlSerializer.serialize(o.extractedUrl),c.message,c.cancellationCode)),function lme(t){return X6(t)&&am(t.url)}(c)?this.events.next(new e2(c.url)):o.resolve(!1);else{this.events.next(new Ux(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 os}))}))}cancelNavigationTransition(e,i,r){const o=new cm(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=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function fpe(t){return t!==b_}let mpe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=xe({token:t,factory:()=>be(gpe),providedIn:"root"})}return t})();class ppe{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let gpe=(()=>{class t extends ppe{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ot(t)))(r||t)}})();static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),cU=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=xe({token:t,factory:()=>be(_pe),providedIn:"root"})}return t})(),_pe=(()=>{class t extends cU{constructor(){super(...arguments),this.location=be(Eu),this.urlSerializer=be(sm),this.options=be(mm,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=be(_2),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new om,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=H6(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 Bx)this.stateMemento=this.createStateMemento();else if(e instanceof lm)this.rawUrlTree=i.initialUrl;else if(e instanceof B6){if("eager"===this.urlUpdateStrategy&&!i.extras.skipLocationChange){const r=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(r,i)}}else e instanceof JD?(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 cm&&(e.code===As.GuardRejected||e.code===As.NoDataFromResolver)?this.restoreHistory(i):e instanceof Ux?this.restoreHistory(i,!0):e instanceof tc&&(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=Ot(t)))(r||t)}})();static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var T_=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(T_||{});function lU(t,n){t.events.pipe(ln(e=>e instanceof tc||e instanceof cm||e instanceof Ux||e instanceof lm),mt(e=>e instanceof tc||e instanceof lm?T_.COMPLETE:e instanceof cm&&(e.code===As.Redirect||e.code===As.SupersededByNewNavigation)?T_.REDIRECTING:T_.FAILED),ln(e=>e!==T_.REDIRECTING),En(1)).subscribe(()=>{n()})}function vpe(t){throw t}const bpe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ype={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ss=(()=>{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=be(o5),this.stateManager=be(cU),this.options=be(mm,{optional:!0})||{},this.pendingTasks=be(Ul),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=be(Gx),this.urlSerializer=be(sm),this.location=be(Eu),this.urlHandlingStrategy=be(_2),this._events=new Re,this.errorHandler=this.options.errorHandler||vpe,this.navigated=!1,this.routeReuseStrategy=be(mpe),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=be(pm,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!be(zx,{optional:!0}),this.eventsSubscription=new $t,this.isNgZoneEnabled=be(ze)instanceof ze&&ze.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 cm&&i.code!==As.Redirect&&i.code!==As.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof tc)this.navigated=!0;else if(i instanceof e2){const s=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),a={info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||fpe(r.source)};this.scheduleNavigation(s,b_,null,a,{resolve:r.resolve,reject:r.reject,promise:r.promise})}(function wpe(t){return!(t instanceof JD||t instanceof e2)})(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),b_,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(d2),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=M6(r?r.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof e[0]||!e[0].startsWith("/"))&&(e=[]),u=this.currentUrlTree.root}return R6(u,e,d,l??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=am(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,b_,null,i)}navigate(e,i={skipLocationChange:!1}){return function xpe(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 lU(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=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class dU{}let Epe=(()=>{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(ln(e=>e instanceof tc),nm(()=>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=Ly(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 qi(r).pipe(Jf())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):at(null);const o=r.pipe(Br(s=>null===s?at(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));return i.loadComponent&&!i._loadedComponent?qi([o,this.loader.loadComponent(i)]).pipe(Jf()):o})}static#e=this.\u0275fac=function(i){return new(i||t)(X(ss),X(p5),X(ts),X(dU),X(g2))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const b2=new ee("");let uU=(()=>{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 Bx?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof tc?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof lm&&e.code===Vx.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 V6&&(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 V6(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){$a()};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac})}return t})();function ic(t,n){return{\u0275kind:t,\u0275providers:n}}function fU(){const t=be(xi);return n=>{const e=t.get(Bc);if(n!==e.components[0])return;const i=t.get(ss),r=t.get(mU);1===t.get(y2)&&i.initialNavigation(),t.get(pU,null,fn.Optional)?.setUpPreloading(),t.get(b2,null,fn.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const mU=new ee("",{factory:()=>new Re}),y2=new ee("",{providedIn:"root",factory:()=>1}),pU=new ee("");function Ipe(t){return ic(0,[{provide:pU,useExisting:Epe},{provide:dU,useExisting:t}])}function Mpe(t){return ic(9,[{provide:sU,useValue:upe},{provide:aU,useValue:{skipNextTransition:!!t?.skipInitialTransition,...t}}])}const gU=new ee("ROUTER_FORROOT_GUARD"),Rpe=[Eu,{provide:sm,useClass:QD},ss,y_,{provide:Ql,useFactory:function hU(t){return t.routerState.root},deps:[ss]},g2,[]];let _U=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[Rpe,[],{provide:pm,multi:!0,useValue:e},{provide:gU,useFactory:Npe,deps:[[ss,new Al,new ef]]},{provide:mm,useValue:i||{}},i?.useHash?{provide:ku,useClass:rde}:{provide:ku,useClass:o8},{provide:b2,useFactory:()=>{const t=be(bue),n=be(ze),e=be(mm),i=be(Gx),r=be(sm);return e.scrollOffset&&t.setOffset(e.scrollOffset),new uU(r,i,t,n,e)}},i?.preloadingStrategy?Ipe(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?Lpe(i):[],i?.bindToComponentInputs?ic(8,[W6,{provide:zx,useExisting:W6}]).\u0275providers:[],i?.enableViewTransitions?Mpe().\u0275providers:[],[{provide:vU,useFactory:fU},{provide:ZS,multi:!0,useExisting:vU}]]}}static forChild(e){return{ngModule:t,providers:[{provide:pm,multi:!0,useValue:e}]}}static#e=this.\u0275fac=function(i){return new(i||t)(X(gU,8))};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({})}return t})();function Npe(t){return"guarded"}function Lpe(t){return["disabled"===t.initialNavigation?ic(3,[{provide:XS,multi:!0,useFactory:()=>{const n=be(ss);return()=>{n.setUpLocationChangeListener()}}},{provide:y2,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?ic(2,[{provide:y2,useValue:0},{provide:XS,multi:!0,deps:[xi],useFactory:n=>{const e=n.get(nde,Promise.resolve());return()=>e.then(()=>new Promise(i=>{const r=n.get(ss),o=n.get(mU);lU(r,()=>{i(!0)}),n.get(Gx).afterPreactivation=()=>(i(!0),o.closed?at(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const vU=new ee("");class Wx{}function x2(t){return t&&"function"==typeof t.connect&&!(t instanceof GD)}class bU{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=1}else null==c?(e.remove(a),d=3):(l=e.get(a),e.move(l,c),d=2);o&&o({context:l?.context,operation:d,record:s})})}detach(){}}class w2{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 Re,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(o)).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){if(this.compareWith){for(let e of this._selection)if(this.compareWith(n,e))return e;return n}return n}}let C2=(()=>{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=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const S_=new ee("_ViewRepeater");function bo(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 Zf)}})})}const k2={now:()=>(k2.delegate||Date).now(),delegate:void 0};class E2 extends Re{constructor(n=1/0,e=1/0,i=k2){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 as?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 as;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof as?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 Vpe{encodeKey(n){return xU(n)}encodeValue(n){return xU(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const zpe=/%(\d[a-f0-9])/gi,Hpe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function xU(t){return encodeURIComponent(t).replace(zpe,(n,e)=>Hpe[e]??n)}function Kx(t){return`${t}`}class Kl{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new Vpe,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function Upe(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(Kx):[Kx(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 Kl({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(Kx(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(Kx(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 wU(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function CU(t){return typeof Blob<"u"&&t instanceof Blob}function kU(t){return typeof FormData<"u"&&t instanceof FormData}class D_{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 $pe(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 as,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 D_(e,i,s,{params:d,headers:l,context:u,reportProgress:c,responseType:r,withCredentials:a,transferCache:o})}}var Xl=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}(Xl||{});class T2{constructor(n,e=I_.Ok,i="OK"){this.headers=n.headers||new as,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 Xx extends T2{constructor(n={}){super(n),this.type=Xl.ResponseHeader}clone(n={}){return new Xx({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 Du extends T2{constructor(n={}){super(n),this.type=Xl.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new Du({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 gm extends T2{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 I_=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}(I_||{});function S2(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 Yl=(()=>{class t{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof D_)o=e;else{let c,l;c=r.headers instanceof as?r.headers:new as(r.headers),r.params&&(l=r.params instanceof Kl?r.params:new Kl({fromObject:r.params})),o=new D_(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=at(o).pipe(nm(c=>this.handler.handle(c)));if(e instanceof D_||"events"===r.observe)return s;const a=s.pipe(ln(c=>c instanceof Du));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 Kl).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,S2(r,i))}post(e,i,r={}){return this.request("POST",e,S2(r,i))}put(e,i,r={}){return this.request("PUT",e,S2(r,i))}static#e=this.\u0275fac=function(i){return new(i||t)(X(qx))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac})}return t})();function TU(t,n){return n(t)}function Xpe(t,n){return(e,i)=>n.intercept(e,{handle:r=>t(r,i)})}const Zpe=new ee(""),A_=new ee(""),SU=new ee(""),DU=new ee("");function Jpe(){let t=null;return(n,e)=>{null===t&&(t=(be(Zpe,{optional:!0})??[]).reduceRight(Xpe,TU));const i=be(Ul),r=i.add();return t(n,e).pipe(im(()=>i.remove(r)))}}let IU=(()=>{class t extends qx{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null,this.pendingTasks=be(Ul);const r=be(DU,{optional:!0});this.backend=r??e}handle(e){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(A_),...this.injector.get(SU,[])]));this.chain=r.reduceRight((o,s)=>function Ype(t,n,e){return(i,r)=>Na(e,()=>n(i,o=>t(o,r)))}(o,s,this.injector),TU)}const i=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(im(()=>this.pendingTasks.remove(i)))}static#e=this.\u0275fac=function(i){return new(i||t)(X(Qx),X(ts))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac})}return t})();const rge=/^\)\]\}',?\n/;let MU=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new ce(-2800,!1);const i=this.xhrFactory;return(i.\u0275loadImpl?qi(i.\u0275loadImpl()):at(null)).pipe(Qi(()=>new Fn(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 as(s.getAllResponseHeaders()),v=function oge(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 Xx({headers:p,status:s.status,statusText:g,url:v}),c},d=()=>{let{headers:g,status:p,statusText:v,url:x}=l(),C=null;p!==I_.NoContent&&(C=typeof s.response>"u"?s.responseText:s.response),0===p&&(p=C?I_.Ok:0);let D=p>=200&&p<300;if("json"===e.responseType&&"string"==typeof C){const U=C;C=C.replace(rge,"");try{C=""!==C?JSON.parse(C):null}catch(A){C=U,D&&(D=!1,C={error:A,text:C})}}D?(o.next(new Du({body:C,headers:g,status:p,statusText:v,url:x||void 0})),o.complete()):o.error(new gm({error:C,headers:g,status:p,statusText:v,url:x||void 0}))},u=g=>{const{url:p}=l(),v=new gm({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:Xl.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:Xl.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:Xl.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)(X(T8))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac})}return t})();const A2=new ee(""),RU=new ee("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),PU=new ee("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class FU{}let cge=(()=>{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=p8(e,this.cookieName),this.lastCookieString=e),this.lastToken}static#e=this.\u0275fac=function(i){return new(i||t)(X(xt),X(Fc),X(RU))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac})}return t})();function lge(t,n){const e=t.url.toLowerCase();if(!be(A2)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const i=be(FU).getToken(),r=be(PU);return null!=i&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,i)})),n(t)}var Zl=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}(Zl||{});function dge(...t){const n=[Yl,MU,IU,{provide:qx,useExisting:IU},{provide:Qx,useExisting:MU},{provide:A_,useValue:lge,multi:!0},{provide:A2,useValue:!0},{provide:FU,useClass:cge}];for(const e of t)n.push(...e.\u0275providers);return function Jp(t){return{\u0275providers:t}}(n)}const OU=new ee("");function uge(){return function Iu(t,n){return{\u0275kind:t,\u0275providers:n}}(Zl.LegacyInterceptors,[{provide:OU,useFactory:Jpe},{provide:A_,useExisting:OU,multi:!0}])}let M2,hge=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({providers:[dge(uge())]})}return t})();try{M2=typeof Intl<"u"&&Intl.v8BreakIterator}catch{M2=!1}let _m,zn=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?k8(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&&!M2)&&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)(X(Fc))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const jU=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function $U(){if(_m)return _m;if("object"!=typeof document||!document)return _m=new Set(jU),_m;let t=document.createElement("input");return _m=new Set(jU.filter(n=>(t.setAttribute("type",n),t.type===n))),_m}let M_,Zx,Au,R2;function Ca(t){return function vge(){if(null==M_&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>M_=!0}))}finally{M_=M_||!1}return M_}()?t:!!t.capture}function GU(){if(null==Au){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Au=!1,Au;if("scrollBehavior"in document.documentElement.style)Au=!0;else{const t=Element.prototype.scrollTo;Au=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Au}function R_(){if("object"!=typeof document||!document)return 0;if(null==Zx){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),Zx=0,0===t.scrollLeft&&(t.scrollLeft=1,Zx=0===t.scrollLeft?1:2),t.remove()}return Zx}function P2(t){if(function bge(){if(null==R2){const t=typeof document<"u"?document.head:null;R2=!(!t||!t.createShadowRoot&&!t.attachShadow)}return R2}()){const n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function Jx(){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 Ms(t){return t.composedPath?t.composedPath()[0]:t.target}function F2(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function yo(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}class Rge extends $t{constructor(n,e){super()}schedule(n,e=0){return this}}const n1={setInterval(t,n,...e){const{delegate:i}=n1;return i?.setInterval?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=n1;return(n?.clearInterval||clearInterval)(t)},delegate:void 0};class N2 extends Rge{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 n1.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&&n1.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,bb(i,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}}class F_{constructor(n,e=F_.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}}F_.now=k2.now;class L2 extends F_{constructor(n,e=F_.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 O_=new L2(N2),Pge=O_;function Gc(t,n=O_){return Pi((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 B2(t){return ln((n,e)=>t<=e)}function rc(t,n=Sl){return t=t??Fge,Pi((e,i)=>{let r,o=!0;e.subscribe(yi(i,s=>{const a=n(s);(o||!t(r,a))&&(o=!1,r=a,i.next(s))}))})}function Fge(t,n){return t===n}function Ke(t){return null!=t&&"false"!=`${t}`}function kr(t,n=0){return qU(t)?Number(t):n}function qU(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function N_(t){return Array.isArray(t)?t:[t]}function ar(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Li(t){return t instanceof Ue?t.nativeElement:t}let QU=(()=>{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=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nge=(()=>{class t{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=Li(e);return new Fn(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 Re,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)(X(QU))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),KU=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=Ke(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=kr(e),this._subscribe()}constructor(e,i,r){this._contentObserver=e,this._elementRef=i,this._ngZone=r,this.event=new Se,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(Gc(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||t)(y(Nge),y(Ue),y(ze))};static#t=this.\u0275dir=J({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[ue.None,"cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),r1=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({providers:[QU]})}return t})();const XU=new Set;let Mu,Lge=(()=>{class t{constructor(e,i){this._platform=e,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Vge}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function Bge(t,n){if(!XU.has(t))try{Mu||(Mu=document.createElement("style"),n&&(Mu.nonce=n),Mu.setAttribute("type","text/css"),document.head.appendChild(Mu)),Mu.sheet&&(Mu.sheet.insertRule(`@media ${t} {body{ }}`,0),XU.add(t))}catch(e){console.error(e)}}(e,this._nonce),this._matchMedia(e)}static#e=this.\u0275fac=function(i){return new(i||t)(X(zn),X(iT,8))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Vge(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let V2=(()=>{class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new Re}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return YU(N_(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let o=jc(YU(N_(e)).map(s=>this._registerQuery(s).observable));return o=f_(o.pipe(En(1)),o.pipe(B2(1),Gc(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 Fn(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})),Et(this._destroySubject)),mql:i};return this._queries.set(e,o),o}static#e=this.\u0275fac=function(i){return new(i||t)(X(Lge),X(ze))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function YU(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}function o1(t,n,e){const i=s1(t,n);i.some(r=>r.trim()==e.trim())||(i.push(e.trim()),t.setAttribute(n,i.join(" ")))}function bm(t,n,e){const r=s1(t,n).filter(o=>o!=e.trim());r.length?t.setAttribute(n,r.join(" ")):t.removeAttribute(n)}function s1(t,n){return(t.getAttribute(n)||"").match(/\S+/g)||[]}const JU="cdk-describedby-message",a1="cdk-describedby-host";let U2=0,e9=(()=>{class t{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+U2++,this._document=e,this._id=be(pg)+"-"+U2++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;const o=z2(i,r);"string"!=typeof i?(t9(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=z2(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(`[${a1}="${this._id}"]`);for(let i=0;i0!=r.indexOf(JU));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const r=this._messageRegistry.get(i);o1(e,"aria-describedby",r.messageElement.id),e.setAttribute(a1,this._id),r.referenceCount++}_removeMessageReference(e,i){const r=this._messageRegistry.get(i);r.referenceCount--,bm(e,"aria-describedby",r.messageElement.id),e.removeAttribute(a1)}_isElementDescribedByMessage(e,i){const r=s1(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)(X(xt),X(zn))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function z2(t,n){return"string"==typeof t?`${n||""}/${t}`:t}function t9(t,n){t.id||(t.id=`${JU}-${n}-${U2++}`)}class n9{constructor(n){this._items=n,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Re,this._typeaheadSubscription=$t.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new Re,this.change=new Re,n instanceof Fl&&(this._itemChangesSubscription=n.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}}))}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(Oi(e=>this._pressedLetters.push(e)),Gc(n),ln(()=>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._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 this._items instanceof Fl?this._items.toArray():this._items}}class i9 extends n9{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}}class H2 extends n9{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 L_=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Hge(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 zge(t){try{return t.frameElement}catch{return null}}(function Xge(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(e));if(i&&(-1===o9(i)||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=o9(e);return e.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function Qge(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 Kge(t){return!function $ge(t){return function Wge(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 Gge(t){return function qge(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||r9(t))}(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static#e=this.\u0275fac=function(i){return new(i||t)(X(zn))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function r9(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let n=t.getAttribute("tabindex");return!(!n||isNaN(parseInt(n,10)))}function o9(t){if(!r9(t))return null;const n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}class s9{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(En(1)).subscribe(n)}}let c1=(()=>{class t{constructor(e,i,r){this._checker=e,this._ngZone=i,this._document=r}create(e,i=!1){return new s9(e,this._checker,this._ngZone,this._document,i)}static#e=this.\u0275fac=function(i){return new(i||t)(X(L_),X(ze),X(xt))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function l1(t){return 0===t.buttons||0===t.detail}function d1(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 Yge=new ee("cdk-input-modality-detector-options"),Zge={ignoreKeys:[18,17,224,91,16]},ym=Ca({passive:!0,capture:!0});let Jge=(()=>{class t{get mostRecentModality(){return this._modality.value}constructor(e,i,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new Ei(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(a=>a===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Ms(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(l1(s)?"keyboard":"mouse"),this._mostRecentTarget=Ms(s))},this._onTouchstart=s=>{d1(s)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Ms(s))},this._options={...Zge,...o},this.modalityDetected=this._modality.pipe(B2(1)),this.modalityChanged=this.modalityDetected.pipe(rc()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,ym),r.addEventListener("mousedown",this._onMousedown,ym),r.addEventListener("touchstart",this._onTouchstart,ym)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ym),document.removeEventListener("mousedown",this._onMousedown,ym),document.removeEventListener("touchstart",this._onTouchstart,ym))}static#e=this.\u0275fac=function(i){return new(i||t)(X(zn),X(ze),X(xt),X(Yge,8))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const e_e=new ee("liveAnnouncerElement",{providedIn:"root",factory:function t_e(){return null}}),n_e=new ee("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let i_e=0,j2=(()=>{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 Re,this._rootNodeFocusAndBlurListener=a=>{for(let l=Ms(a);l;l=l.parentElement)"focus"===a.type?this._onFocus(a,l):this._onBlur(a,l)},this._document=o,this._detectionMode=s?.detectionMode||0}monitor(e,i=!1){const r=Li(e);if(!this._platform.isBrowser||1!==r.nodeType)return at();const o=P2(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;const a={checkChildren:i,subject:new Re,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=Li(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=Li(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 1===this._detectionMode||!!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,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const r=this._elementInfo.get(i),o=Ms(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,u1),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,u1)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Et(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,u1),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,u1),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 Se}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)(y(Ue),y(Rs))};static#t=this.\u0275dir=J({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();const c9="cdk-high-contrast-black-on-white",l9="cdk-high-contrast-white-on-black",$2="cdk-high-contrast-active";let d9=(()=>{class t{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=be(V2).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;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 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove($2,c9,l9),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?e.add($2,c9):2===i&&e.add($2,l9)}}static#e=this.\u0275fac=function(i){return new(i||t)(X(zn),X(xt))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),G2=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(i){return new(i||t)(X(d9))};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({imports:[r1]})}return t})();const s_e=new ee("cdk-dir-doc",{providedIn:"root",factory:function a_e(){return be(xt)}}),c_e=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Er=(()=>{class t{constructor(e){this.value="ltr",this.change=new Se,e&&(this.value=function l_e(t){const n=t?.toLowerCase()||"";return"auto"===n&&typeof navigator<"u"&&navigator?.language?c_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)(X(s_e,8))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),B_=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({})}return t})();const d_e=["text"],u_e=[[["mat-icon"]],"*"],h_e=["mat-icon","*"];function f_e(t,n){if(1&t&&we(0,"mat-pseudo-checkbox",6),2&t){const e=P();E("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function m_e(t,n){1&t&&we(0,"mat-pseudo-checkbox",7),2&t&&E("disabled",P().disabled)}function p_e(t,n){if(1&t&&(_(0,"span",8),k(1),b()),2&t){const e=P();w(),Je("(",e.group.label,")")}}let g_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})(),__e=(()=>{class t{static#e=this.COMPLEX="375ms";static#t=this.ENTERING="225ms";static#n=this.EXITING="195ms"}return t})();const b_e=new ee("mat-sanity-checks",{providedIn:"root",factory:function v_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!F2()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}static#e=this.\u0275fac=function(i){return new(i||t)(X(d9),X(b_e,8),X(xt))};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({imports:[B_,B_]})}return t})();function Wc(t){return class extends t{get disabled(){return this._disabled}set disabled(n){this._disabled=Ke(n)}constructor(...n){super(...n),this._disabled=!1}}}function td(t,n){return class extends t{get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}constructor(...e){super(...e),this.defaultColor=n,this.color=n}}}function nd(t){return class extends t{get disableRipple(){return this._disableRipple}set disableRipple(n){this._disableRipple=Ke(n)}constructor(...n){super(...n),this._disableRipple=!1}}}function V_(t,n=0){return class extends t{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?kr(e):this.defaultTabIndex}constructor(...e){super(...e),this._tabIndex=n,this.defaultTabIndex=n}}}function f9(t){return class extends t{updateErrorState(){const n=this.errorState,o=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);o!==n&&(this.errorState=o,this.stateChanges.next())}constructor(...n){super(...n),this.errorState=!1}}}function y_e(t){return class extends t{constructor(...n){super(...n),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new Fn(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(n){n.next(),n.complete()}}}let m9=(()=>{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=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class w_e{constructor(n,e,i,r=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const p9=Ca({passive:!0,capture:!0});class C_e{constructor(){this._events=new Map,this._delegateEventHandler=n=>{const e=Ms(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,p9)})}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,p9)))}}const g9={enterDuration:225,exitDuration:150},_9=Ca({passive:!0,capture:!0}),v9=["mousedown","touchstart"],b9=["mouseup","mouseleave","touchend","touchcancel"];class z_{static#e=this._eventManager=new C_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=Li(i))}fadeInRipple(n,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...g9,...i.animation};i.centered&&(n=r.left+r.width/2,e=r.top+r.height/2);const s=i.radius||function E_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 w_e(this,d,i,m);d.style.transform="scale3d(1, 1, 1)",g.state=0,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(2===n.state||3===n.state)return;const e=n.element,i={...g9,...n.config.animation};e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=2,(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=Li(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,v9.forEach(i=>{z_._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(()=>{b9.forEach(e=>{this._triggerElement.addEventListener(e,this,_9)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){0===n.state?this._startFadeOutTransition(n):2===n.state&&this._destroyRipple(n)}_startFadeOutTransition(n){const e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=1,!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=3,null!==e&&(n.element.removeEventListener("transitionend",e.onTransitionEnd),n.element.removeEventListener("transitioncancel",e.onTransitionCancel)),n.element.remove()}_onMousedown(n){const e=l1(n),i=this._lastTouchStartEvent&&Date.now(){!n.config.persistent&&(1===n.state||n.config.terminateOnPointerUp&&0===n.state)&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const n=this._triggerElement;n&&(v9.forEach(e=>z_._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&b9.forEach(e=>n.removeEventListener(e,this,_9)))}}const h1=new ee("mat-ripple-global-options");let qc=(()=>{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 z_(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)(y(Ue),y(ze),y(zn),y(h1,8),y(Qn,8))};static#t=this.\u0275dir=J({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,r){2&i&&st("mat-ripple-unbounded",r.unbounded)},inputs:{color:[ue.None,"matRippleColor","color"],unbounded:[ue.None,"matRippleUnbounded","unbounded"],centered:[ue.None,"matRippleCentered","centered"],radius:[ue.None,"matRippleRadius","radius"],animation:[ue.None,"matRippleAnimation","animation"],disabled:[ue.None,"matRippleDisabled","disabled"],trigger:[ue.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return t})(),id=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({imports:[Ft,Ft]})}return t})(),T_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)(y(Qn,8))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,r){2&i&&st("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"},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-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.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})(),y9=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({imports:[Ft]})}return t})();const W2=new ee("MAT_OPTION_PARENT_COMPONENT"),q2=new ee("MatOptgroup");let S_e=0;class x9{constructor(n,e=!1){this.source=n,this.isUserInput=e}}let D_e=(()=>{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=Ke(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-"+S_e++,this.onSelectionChange=new Se,this._stateChanges=new Re}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)&&!yo(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 x9(this,e))}static#e=this.\u0275fac=function(i){$a()};static#t=this.\u0275dir=J({type:t,viewQuery:function(i,r){if(1&i&&pt(d_e,7),2&i){let o;Pe(o=Fe())&&(r._text=o.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}})}return t})(),rd=(()=>{class t extends D_e{constructor(e,i,r,o){super(e,i,r,o)}static#e=this.\u0275fac=function(i){return new(i||t)(y(Ue),y(an),y(W2,8),y(q2,8))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,r){1&i&&H("click",function(){return r._selectViaInteraction()})("keydown",function(s){return r._handleKeydown(s)}),2&i&&(Xa("id",r.id),vt("aria-selected",r.selected)("aria-disabled",r.disabled.toString()),st("mdc-list-item--selected",r.selected)("mat-mdc-option-multiple",r.multiple)("mat-mdc-option-active",r.active)("mdc-list-item--disabled",r.disabled))},exportAs:["matOption"],features:[ke],ngContentSelectors:h_e,decls:8,vars:5,consts:[["text",""],["class","mat-mdc-option-pseudo-checkbox","aria-hidden","true",3,"disabled","state",4,"ngIf"],[1,"mdc-list-item__primary-text"],["class","mat-mdc-option-pseudo-checkbox","state","checked","aria-hidden","true","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(i,r){1&i&&(Nn(u_e),W(0,f_e,1,2,"mat-pseudo-checkbox",1),dt(1),_(2,"span",2,0),dt(4,1),b(),W(5,m_e,1,1,"mat-pseudo-checkbox",3)(6,p_e,2,1,"span",4),we(7,"div",5)),2&i&&(E("ngIf",r.multiple),w(5),E("ngIf",!r.multiple&&r.selected&&!r.hideSingleSelectionIndicator),w(),E("ngIf",r.group&&r.group._inert),w(),E("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple))},dependencies:[qc,si,T_e],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}.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-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return t})();function w9(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 f1=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({imports:[id,Zr,Ft,y9]})}return t})();const k9={capture:!0},E9=["focus","click","mouseenter","touchstart"],Q2="mat-ripple-loader-uninitialized",K2="mat-ripple-loader-class-name",T9="mat-ripple-loader-centered",m1="mat-ripple-loader-disabled";let I_e=(()=>{class t{constructor(){this._document=be(xt,{optional:!0}),this._animationMode=be(Qn,{optional:!0}),this._globalRippleOptions=be(h1,{optional:!0}),this._platform=be(zn),this._ngZone=be(ze),this._hosts=new Map,this._onInteraction=e=>{if(!(e.target instanceof HTMLElement))return;const r=e.target.closest(`[${Q2}]`);r&&this._createRipple(r)},this._ngZone.runOutsideAngular(()=>{for(const e of E9)this._document?.addEventListener(e,this._onInteraction,k9)})}ngOnDestroy(){const e=this._hosts.keys();for(const i of e)this.destroyRipple(i);for(const i of E9)this._document?.removeEventListener(i,this._onInteraction,k9)}configureRipple(e,i){e.setAttribute(Q2,""),(i.className||!e.hasAttribute(K2))&&e.setAttribute(K2,i.className||""),i.centered&&e.setAttribute(T9,""),i.disabled&&e.setAttribute(m1,"")}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(m1,""):e.removeAttribute(m1)}_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(K2)),e.append(r);const o=new qc(new Ue(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(T9),o.disabled=e.hasAttribute(m1),this.attachRipple(e,o),o}attachRipple(e,i){e.removeAttribute(Q2),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=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const S9=["mat-button",""],D9=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],I9=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],A9=".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}",M_e=["mat-icon-button",""],R_e=["*"],P_e=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],F_e=td(Wc(nd(class{constructor(t){this._elementRef=t}})));let X2=(()=>{class t extends F_e{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=Ke(e),this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(e){this._disabled=Ke(e),this._updateRippleDisabled()}constructor(e,i,r,o){super(e),this._platform=i,this._ngZone=r,this._animationMode=o,this._focusMonitor=be(Rs),this._rippleLoader=be(I_e),this._isFab=!1,this._disableRipple=!1,this._disabled=!1,this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-button-ripple"});const s=e.nativeElement.classList;for(const a of P_e)this._hasHostAttributes(a.selector)&&a.mdcClasses.forEach(c=>{s.add(c)})}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)}_hasHostAttributes(...e){return e.some(i=>this._elementRef.nativeElement.hasAttribute(i))}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static#e=this.\u0275fac=function(i){$a()};static#t=this.\u0275dir=J({type:t,features:[ke]})}return t})(),N_e=(()=>{class t extends X2{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)}static#e=this.\u0275fac=function(i){$a()};static#t=this.\u0275dir=J({type:t,features:[ke]})}return t})(),xo=(()=>{class t extends X2{constructor(e,i,r,o){super(e,i,r,o)}static#e=this.\u0275fac=function(i){return new(i||t)(y(Ue),y(zn),y(ze),y(Qn,8))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(i,r){2&i&&(vt("disabled",r.disabled||null),st("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[ke],attrs:S9,ngContentSelectors:I9,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&&(Nn(D9),we(0,"span",0),dt(1),_(2,"span",1),dt(3,1),b(),dt(4,2),we(5,"span",2)(6,"span",3)),2&i&&st("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(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );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{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 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-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.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, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.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;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.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[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.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{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.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})(),L_e=(()=>{class t extends N_e{constructor(e,i,r,o){super(e,i,r,o)}static#e=this.\u0275fac=function(i){return new(i||t)(y(Ue),y(zn),y(ze),y(Qn,8))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:9,hostBindings:function(i,r){2&i&&(vt("disabled",r.disabled||null)("tabindex",r.disabled?-1:r.tabIndex)("aria-disabled",r.disabled.toString()),st("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[ke],attrs:S9,ngContentSelectors:I9,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&&(Nn(D9),we(0,"span",0),dt(1),_(2,"span",1),dt(3,1),b(),dt(4,2),we(5,"span",2)(6,"span",3)),2&i&&st("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(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );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{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 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-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.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, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.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;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.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[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.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{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.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)}',A9],encapsulation:2,changeDetection:0})}return t})(),Ks=(()=>{class t extends X2{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)(y(Ue),y(zn),y(ze),y(Qn,8))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(i,r){2&i&&(vt("disabled",r.disabled||null),st("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[ke],attrs:M_e,ngContentSelectors:R_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&&(Nn(),we(0,"span",0),dt(1),we(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{height:var(--mdc-icon-button-state-layer-size);width:var(--mdc-icon-button-state-layer-size);color:var(--mdc-icon-button-icon-color);--mdc-icon-button-state-layer-size:48px;--mdc-icon-button-icon-size:24px;--mdc-icon-button-disabled-icon-color:black;--mdc-icon-button-disabled-icon-opacity:0.38}.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{opacity:var(--mdc-icon-button-disabled-icon-opacity)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{padding:12px;font-size:var(--mdc-icon-button-icon-size);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.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;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.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-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.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}',A9],encapsulation:2,changeDetection:0})}return t})(),M9=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({imports:[Ft,id,Ft]})}return t})();var Pt=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}(Pt||{});const Qc="*";function Kn(t,n){return{type:Pt.Trigger,name:t,definitions:n,options:{}}}function qt(t,n=null){return{type:Pt.Animate,styles:n,timings:t}}function Y2(t,n=null){return{type:Pt.Group,steps:t,options:n}}function We(t){return{type:Pt.Style,styles:t,offset:null}}function pn(t,n,e){return{type:Pt.State,name:t,styles:n,options:e}}function xm(t){return{type:Pt.Keyframes,steps:t}}function Xt(t,n,e=null){return{type:Pt.Transition,expr:t,animation:n,options:e}}function p1(t=null){return{type:Pt.AnimateChild,options:t}}function g1(t,n,e=null){return{type:Pt.Query,selector:t,animation:n,options:e}}class H_{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 R9{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 J2{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 wm extends J2{constructor(n,e,i,r,o){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r,this.projectableNodes=o}}class Kc extends J2{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 $_e extends J2{constructor(n){super(),this.element=n instanceof Ue?n.nativeElement:n}}class _1{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof wm?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof Kc?(this._attachedPortal=n,this.attachTemplatePortal(n)):this.attachDomPortal&&n instanceof $_e?(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 G_e extends _1{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||xi.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 W_e=(()=>{class t extends Kc{constructor(e,i){super(e,i)}static#e=this.\u0275fac=function(i){return new(i||t)(y(Un),y(li))};static#t=this.\u0275dir=J({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[ke]})}return t})(),Xc=(()=>{class t extends _1{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new Se,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)(y(hu),y(li),y(xt))};static#t=this.\u0275dir=J({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[ue.None,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[ke]})}return t})(),Ru=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({})}return t})();const q_e=["addListener","removeListener"],Q_e=["addEventListener","removeEventListener"],K_e=["on","off"];function ka(t,n,e,i){if(Rn(e)&&(i=e,e=void 0),i)return ka(t,n,e).pipe(jD(i));const[r,o]=function Z_e(t){return Rn(t.addEventListener)&&Rn(t.removeEventListener)}(t)?Q_e.map(s=>a=>t[s](n,a,e)):function X_e(t){return Rn(t.addListener)&&Rn(t.removeListener)}(t)?q_e.map(P9(t,n)):function Y_e(t){return Rn(t.on)&&Rn(t.off)}(t)?K_e.map(P9(t,n)):[];if(!r&&zD(t))return Br(s=>ka(s,n,e))(vo(t));if(!r)throw new TypeError("Invalid event target");return new Fn(s=>{const a=(...c)=>s.next(1o(a)})}function P9(t,n){return e=>i=>t[e](n,i)}const j_={schedule(t){let n=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=j_;i&&(n=i.requestAnimationFrame,e=i.cancelAnimationFrame);const r=n(o=>{e=void 0,t(o)});return new $t(()=>e?.(r))},requestAnimationFrame(...t){const{delegate:n}=j_;return(n?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){const{delegate:n}=j_;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0},F9=new class e0e extends L2{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 J_e extends N2{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=j_.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&&(j_.cancelAnimationFrame(e),n._scheduled=void 0)}});let eI,t0e=1;const v1={};function O9(t){return t in v1&&(delete v1[t],!0)}const n0e={setImmediate(t){const n=t0e++;return v1[n]=!0,eI||(eI=Promise.resolve()),eI.then(()=>O9(n)&&t()),n},clearImmediate(t){O9(t)}},{setImmediate:i0e,clearImmediate:r0e}=n0e,b1={setImmediate(...t){const{delegate:n}=b1;return(n?.setImmediate||i0e)(...t)},clearImmediate(t){const{delegate:n}=b1;return(n?.clearImmediate||r0e)(t)},delegate:void 0},tI=new class s0e extends L2{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 o0e extends N2{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=b1.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&&(b1.clearImmediate(e),n._scheduled===e&&(n._scheduled=void 0))}});function $_(t=0,n,e=Pge){let i=-1;return null!=n&&(f6(n)?e=n:i=n),new Fn(r=>{let o=function c0e(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 N9(t,n=O_){return function a0e(t){return Pi((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(yi(e,l=>{i=!0,r=l,o||vo(t(l)).subscribe(o=yi(e,a,c))},()=>{s=!0,(!i||!o||o.closed)&&e.complete()}))})}(()=>$_(t,n))}let G_=(()=>{class t{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new Re,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 Fn(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(N9(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):at()}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(ln(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=Li(i),o=e.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>ka(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)(X(ze),X(zn),X(xt,8))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),nI=(()=>{class t{constructor(e,i,r,o){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=r,this.dir=o,this._destroyed=new Re,this._elementScrolled=new Fn(s=>this.ngZone.runOutsideAngular(()=>ka(this.elementRef.nativeElement,"scroll").pipe(Et(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&&0!=R_()?(null!=e.left&&(e.right=i.scrollWidth-i.clientWidth-e.left),2==R_()?e.left=e.right:1==R_()&&(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;GU()?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&&2==R_()?e==i?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:s&&1==R_()?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)(y(Ue),y(G_),y(ze),y(Er,8))};static#t=this.\u0275dir=J({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0})}return t})(),oc=(()=>{class t{constructor(e,i,r){this._platform=e,this._change=new Re,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(N9(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)(X(zn),X(ze),X(xt,8))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Yc=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({})}return t})(),iI=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({imports:[B_,Yc,B_,Yc]})}return t})();function L9(t,n=!1){return Pi((e,i)=>{let r=0;e.subscribe(yi(i,o=>{const s=t(o,r++);(s||n)&&i.next(o),!s&&i.complete()}))})}function wi(...t){const n=h_(t),e=function ife(t,n){return"number"==typeof HD(t)?t.pop():n}(t,1/0),i=t;return i.length?1===i.length?vo(i[0]):Jf(e)(qi(i,n)):os}const B9=GU();class u0e{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=ar(-this._previousScrollPosition.left),n.style.top=ar(-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"),B9&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),B9&&(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 h0e{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(ln(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 V9{enable(){}disable(){}attach(){}}function rI(t,n){return n.some(e=>t.bottome.bottom||t.righte.right)}function U9(t,n){return n.some(e=>t.tope.bottom||t.lefte.right)}class f0e{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();rI(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 m0e=(()=>{class t{constructor(e,i,r,o){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new V9,this.close=s=>new h0e(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new u0e(this._viewportRuler,this._document),this.reposition=s=>new f0e(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}static#e=this.\u0275fac=function(i){return new(i||t)(X(G_),X(oc),X(ze),X(xt))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class Cm{constructor(n){if(this.scrollStrategy=new V9,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 p0e{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)(X(xt))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),g0e=(()=>{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)(X(xt),X(ze,8))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),_0e=(()=>{class t extends z9{constructor(e,i,r){super(e),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=Ms(o)},this._clickListener=o=>{const s=Ms(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)(X(xt),X(zn),X(ze,8))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),y1=(()=>{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||F2()){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 Re,this._outsidePointerEvents=new Re,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(En(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=ar(this._config.width),n.height=ar(this._config.height),n.minWidth=ar(this._config.minWidth),n.minHeight=ar(this._config.minHeight),n.maxWidth=ar(this._config.maxWidth),n.maxHeight=ar(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=N_(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(Et(wi(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 H9="cdk-overlay-connected-position-bounding-box",v0e=/([A-Za-z%]+)$/;class b0e{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 Re,this._resizeSubscription=$t.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(n)}attach(n){this._validatePositions(),n.hostElement.classList.add(H9),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&&Pu(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(H9),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=$9(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=j9(this._overlayRef.getConfig().minHeight),a=j9(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=$9(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+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=ar(i.height),r.top=ar(i.top),r.bottom=ar(i.bottom),r.width=ar(i.width),r.left=ar(i.left),r.right=ar(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=ar(o)),s&&(r.maxWidth=ar(s))}this._lastBoundingBoxSize=i,Pu(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Pu(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Pu(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();Pu(i,this._getExactOverlayY(e,n,d)),Pu(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=ar(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=ar(s.maxWidth):o&&(i.maxWidth="")),Pu(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=ar(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=ar(o.x),r}_getScrollVisibility(){const n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:U9(n,i),isOriginOutsideView:rI(n,i),isOverlayClipped:U9(e,i),isOverlayOutsideView:rI(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&&N_(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 Ue)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 Pu(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function j9(t){if("number"!=typeof t&&null!=t){const[n,e]=t.split(v0e);return e&&"px"!==e?null:parseFloat(n)}return t||null}function $9(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 G9="cdk-global-overlay-wrapper";class y0e{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(G9),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(G9),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}}let x0e=(()=>{class t{constructor(e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new y0e}flexibleConnectedTo(e){return new b0e(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(i){return new(i||t)(X(oc),X(xt),X(zn),X(y1))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),w0e=0,wo=(()=>{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 Cm(e);return s.direction=s.direction||this._directionality.value,new W_(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-"+w0e++,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(Bc)),new G_e(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(i){return new(i||t)(X(m0e),X(y1),X(hu),X(x0e),X(g0e),X(xi),X(ze),X(xt),X(Er),X(Eu),X(_0e),X(Qn,8))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const C0e=[{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"}],W9=new ee("cdk-connected-overlay-scroll-strategy");let oI=(()=>{class t{constructor(e){this.elementRef=e}static#e=this.\u0275fac=function(i){return new(i||t)(y(Ue))};static#t=this.\u0275dir=J({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}return t})(),q9=(()=>{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 hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Ke(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=Ke(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=Ke(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=Ke(e)}get push(){return this._push}set push(e){this._push=Ke(e)}constructor(e,i,r,o,s){this._overlay=e,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=$t.EMPTY,this._attachSubscription=$t.EMPTY,this._detachSubscription=$t.EMPTY,this._positionSubscription=$t.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Se,this.positionChange=new Se,this.attach=new Se,this.detach=new Se,this.overlayKeydown=new Se,this.overlayOutsideClick=new Se,this._templatePortal=new Kc(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=C0e);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&&!yo(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 Cm({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});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 oI?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(L9(()=>this.positionChange.observers.length>0)).subscribe(e=>{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)(y(wo),y(Un),y(li),y(W9),y(Er,8))};static#t=this.\u0275dir=J({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[ue.None,"cdkConnectedOverlayOrigin","origin"],positions:[ue.None,"cdkConnectedOverlayPositions","positions"],positionStrategy:[ue.None,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[ue.None,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[ue.None,"cdkConnectedOverlayOffsetY","offsetY"],width:[ue.None,"cdkConnectedOverlayWidth","width"],height:[ue.None,"cdkConnectedOverlayHeight","height"],minWidth:[ue.None,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[ue.None,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[ue.None,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[ue.None,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[ue.None,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[ue.None,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[ue.None,"cdkConnectedOverlayOpen","open"],disableClose:[ue.None,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[ue.None,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[ue.None,"cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:[ue.None,"cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:[ue.None,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:[ue.None,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:[ue.None,"cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[Wn]})}return t})();const E0e={provide:W9,deps:[wo],useFactory:function k0e(t){return()=>t.scrollStrategies.reposition()}};let Fu=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({providers:[wo,E0e],imports:[B_,Ru,iI,iI]})}return t})();function T0e(t,n){if(1&t){const e=De();_(0,"div",2)(1,"button",3),H("click",function(){return j(e),G(P().action())}),k(2),b()()}if(2&t){const e=P();w(2),Je(" ",e.data.action," ")}}const S0e=["label"];function D0e(t,n){}const I0e=Math.pow(2,31)-1;class x1{constructor(n,e){this._overlayRef=e,this._afterDismissed=new Re,this._afterOpened=new Re,this._onAction=new Re,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,I0e))}_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 sI=new ee("MatSnackBarData");class w1{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let A0e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=J({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return t})(),M0e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=J({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return t})(),R0e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=J({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return t})(),P0e=(()=>{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)(y(x1),y(sI))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions","",4,"ngIf"],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(i,r){1&i&&(_(0,"div",0),k(1),b(),W(2,T0e,3,1,"div",1)),2&i&&(w(),Je(" ",r.data.message,"\n"),w(),E("ngIf",r.hasAction))},dependencies:[si,xo,A0e,M0e,R0e],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0})}return t})();const F0e={snackBarState:Kn("state",[pn("void, hidden",We({transform:"scale(0.8)",opacity:0})),pn("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 O0e=0,N0e=(()=>{class t extends _1{constructor(e,i,r,o,s){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=r,this._platform=o,this.snackBarConfig=s,this._document=be(xt),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new Re,this._onExit=new Re,this._onEnter=new Re,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+O0e++,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.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(En(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const e=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(r=>e.classList.add(r)):e.classList.add(i)),this._exposeToModals()}_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)(y(ze),y(Ue),y(an),y(zn),y(w1))};static#t=this.\u0275dir=J({type:t,viewQuery:function(i,r){if(1&i&&pt(Xc,7),2&i){let o;Pe(o=Fe())&&(r._portalOutlet=o.first)}},features:[ke]})}return t})(),L0e=(()=>{class t extends N0e{_afterPortalAttached(){super._afterPortalAttached();const e=this._label.nativeElement,i="mdc-snackbar__label";e.classList.toggle(i,!e.querySelector(`.${i}`))}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ot(t)))(r||t)}})();static#t=this.\u0275cmp=Ge({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(i,r){if(1&i&&pt(S0e,7),2&i){let o;Pe(o=Fe())&&(r._label=o.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(i,r){1&i&&Jy("@state.done",function(s){return r.onAnimationEnd(s)}),2&i&&Qy("@state",r._animationState)},features:[ke],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),W(4,D0e,0,0,"ng-template",4),b(),we(5,"div"),b()()),2&i&&(w(5),vt("aria-live",r._live)("role",r._role)("id",r._liveElementId))},dependencies:[Xc],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;--mdc-snackbar-container-shape:4px;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-mdc-button-persistent-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{background-color:currentColor;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:[F0e.snackBarState]}})}return t})(),Q9=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({imports:[Fu,Ru,Zr,M9,Ft,Ft]})}return t})();const K9=new ee("mat-snack-bar-default-options",{providedIn:"root",factory:function B0e(){return new w1}});let V0e=(()=>{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}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=xi.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:w1,useValue:i}]}),s=new wm(this.snackBarContainerComponent,i.viewContainerRef,o),a=e.attach(s);return a.instance.snackBarConfig=i,a.instance}_attach(e,i){const r={...new w1,...this._defaultConfig,...i},o=this._createOverlay(r),s=this._attachSnackBarContainer(o,r),a=new x1(s,o);if(e instanceof Un){const c=new Kc(e,null,{$implicit:r.data,snackBarRef:a});a.instance=s.attachTemplatePortal(c)}else{const c=this._createInjector(r,a),l=new wm(e,void 0,c),d=s.attachComponentPortal(l);a.instance=d.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Et(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 Cm;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 xi.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:x1,useValue:i},{provide:sI,useValue:e.data}]})}static#e=this.\u0275fac=function(i){return new(i||t)(X(wo),X(j2),X(xi),X(V2),X(t,12),X(K9))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac})}return t})(),km=(()=>{class t extends V0e{constructor(e,i,r,o,s,a){super(e,i,r,o,s,a),this.simpleSnackBarComponent=P0e,this.snackBarContainerComponent=L0e,this.handsetCssClass="mat-mdc-snack-bar-handset"}static#e=this.\u0275fac=function(i){return new(i||t)(X(wo),X(j2),X(xi),X(V2),X(t,12),X(K9))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:Q9})}return t})(),Ni=(()=>{class t{constructor(e,i){this.sbRef=e,this.data=i}static#e=this.\u0275fac=function(i){return new(i||t)(y(x1),y(sI))};static#t=this.\u0275cmp=Ge({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&&(w(),nt(r.data))},styles:[".example-alert[_ngcontent-%COMP%]{color:#fff}"]})}return t})(),Jr=(()=>{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 Ei(this.snowstormFhirBase),this.fhirUrlParamSubject=new Ei(this.fhirUrlParam),this.langSubject=new Ei(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(Cr(this.handleError("getCodeSystems",{})))}getCodeSystem(e){return this.http.get(`${this.snowstormFhirBase}/CodeSystem?version=${e}`).pipe(Cr(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(Cr(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(Cr(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(Cr(this.handleError("expandValueSet",{})))}handleError(e="operation",i){return r=>(console.error("There was an error!"),console.error(r),this._snackBar.openFromComponent(Ni,{duration:5e3,data:r.message,panelClass:["red-snackbar"]}),at(i))}lookupConcept(e,i){i||(i=this.fhirUrlParam);const r=`${i}:${e}`,o=this.conceptCache.get(r);if(o)return at(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 as({"Accept-Language":"en"})};return this.http.get(s,a).pipe(Oi(c=>{this.conceptCache.set(r,c)}),Cr(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(Cr(this.handleError("getMRCMAttributes",{})))}addPostcoordinatedExpression(e){let i=`${this.snowstormFhirBase}/CodeSystem/sct_11000003104_EXP`;const r={headers:new as({"Content-Type":"application/fhir+json"})};return this.http.patch(i,{resourceType:"CodeSystem",concept:[{code:e}]},r).pipe(Cr(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(Cr(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(Cr(this.handleError("translate",{})))}lookupOtherCodeSystems(e,i){return this.http.get(`${this.snowstormFhirBase}/CodeSystem/$lookup?system=${e}&code=${i}`).pipe(Cr(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)(X(Yl),X(km))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function X9(...t){const n=m6(t),{args:e,keys:i}=p6(t),r=new Fn(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?g6(i,a):a),o.complete())}))}});return n?r.pipe(jD(n)):r}function Y9(t={}){const{connector:n=(()=>new Re),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 Pi((g,p)=>{l++,!u&&!d&&h();const v=c=c??n();p.add(()=>{l--,0===l&&!u&&!d&&(a=aI(m,r))}),v.subscribe(p),!s&&l>0&&(s=new qh({next:x=>v.next(x),error:x=>{u=!0,h(),a=aI(f,e,x),v.error(x)},complete:()=>{d=!0,h(),a=aI(f,i),v.complete()}}),vo(g).subscribe(s))})(o)}}function aI(t,n,...e){if(!0===n)return void t();if(!1===n)return;const i=new qh({next:()=>{i.unsubscribe(),t()}});return vo(n(...e)).subscribe(i)}const U0e=["*"];let C1;function q_(t){return function z0e(){if(void 0===C1&&(C1=null,typeof window<"u")){const t=window;void 0!==t.trustedTypes&&(C1=t.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return C1}()?.createHTML(t)||t}function Z9(t){return Error(`Unable to find icon with the name "${t}"`)}function J9(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function e7(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class Ou{constructor(n,e,i){this.url=n,this.svgText=e,this.options=i}}let k1=(()=>{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 Ou(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,o){const s=this._sanitizer.sanitize(Xr.HTML,r);if(!s)throw e7(r);const a=q_(s);return this._addSvgIconConfig(e,i,new Ou("",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 Ou(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){const o=this._sanitizer.sanitize(Xr.HTML,i);if(!o)throw e7(i);const s=q_(o);return this._addSvgIconSetConfig(e,new Ou("",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(Xr.RESOURCE_URL,e);if(!i)throw J9(e);const r=this._cachedIconsByUrl.get(i);return r?at(E1(r)):this._loadSvgIconFromConfig(new Ou(e,null)).pipe(Oi(o=>this._cachedIconsByUrl.set(i,o)),mt(o=>E1(o)))}getNamedSvgIcon(e,i=""){const r=t7(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):tm(Z9(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?at(E1(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(mt(i=>E1(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);return r?at(r):X9(i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(Cr(a=>{const l=`Loading icon set URL: ${this._sanitizer.sanitize(Xr.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(l)),at(null)})))).pipe(mt(()=>{const s=this._extractIconWithNameFromAnySet(e,i);if(!s)throw Z9(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(Oi(i=>e.svgText=i),mt(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?at(null):this._fetchIcon(e).pipe(Oi(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(q_(""));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(q_("")),r=e.attributes;for(let o=0;oq_(l)),im(()=>this._inProgressUrlFetches.delete(s)),Y9());return this._inProgressUrlFetches.set(s,c),c}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(t7(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:""}}}),n7=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],K0e=n7.map(t=>`[${t}]`).join(", "),X0e=/^url\(['"]?#(.*?)['"]?\)$/;let Co=(()=>{class t extends G0e{get inline(){return this._inline}set inline(e){this._inline=Ke(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){super(e),this._iconRegistry=i,this._location=o,this._errorHandler=s,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=$t.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(K0e),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const a=i[o],c=a.getAttribute(s),l=c?c.match(X0e):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(En(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)(y(Ue),y(k1),ws("aria-hidden"),y(q0e),y(Cs),y(W0e,8))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(i,r){2&i&&(vt("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),st("mat-icon-inline",r.inline)("mat-icon-no-color","primary"!==r.color&&"accent"!==r.color&&"warn"!==r.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[ke],ngContentSelectors:U0e,decls:1,vars:0,template:function(i,r){1&i&&(Nn(),dt(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})(),Y0e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({imports:[Ft,Ft]})}return t})();function i7(t,n){return n?e=>f_(n.pipe(En(1),function Z0e(){return Pi((t,n)=>{t.subscribe(yi(n,xb))})}()),e.pipe(i7(t))):Br((e,i)=>vo(t(e,i)).pipe(En(1),Mx(e)))}function cI(t,n=O_){const e=$_(t,n);return i7(()=>e)}const J0e=["mat-menu-item",""],eve=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],tve=["mat-icon, [matMenuItemIcon]","*"];function nve(t,n){1&t&&(Pl(),_(0,"svg",3),we(1,"polygon",4),b())}const ive=["*"];function rve(t,n){if(1&t){const e=De();_(0,"div",0),H("keydown",function(r){return j(e),G(P()._handleKeydown(r))})("click",function(){return j(e),G(P().closed.emit("click"))})("@transformMenu.start",function(r){return j(e),G(P()._onAnimationStart(r))})("@transformMenu.done",function(r){return j(e),G(P()._onAnimationDone(r))}),_(1,"div",1),dt(2),b()()}if(2&t){const e=P();E("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),vt("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const lI=new ee("MAT_MENU_PANEL"),ove=nd(Wc(class{}));let sc=(()=>{class t extends ove{constructor(e,i,r,o,s){super(),this._elementRef=e,this._document=i,this._focusMonitor=r,this._parentMenu=o,this._changeDetectorRef=s,this.role="menuitem",this._hovered=new Re,this._focused=new Re,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:Kn("fadeInItems",[pn("showing",We({opacity:1})),Xt("void => *",[We({opacity:0}),qt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let ave=0;const r7=new ee("mat-menu-default-options",{providedIn:"root",factory:function cve(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let Q_=(()=>{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()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=Ke(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Ke(e)}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._directDescendantItems=new Fl,this._classList={},this._panelAnimationState="void",this._animationDone=new Re,this.closed=new Se,this.close=this.closed,this.panelId="mat-menu-panel-"+ave++,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 H2(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(wr(this._directDescendantItems),Qi(e=>wi(...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),Qi(i=>wi(...i.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const i=e.keyCode,r=this._keyManager;switch(i){case 27:yo(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(En(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)(y(Ue),y(ze),y(r7),y(an))};static#t=this.\u0275dir=J({type:t,contentQueries:function(i,r,o){if(1&i&&(Kt(o,sve,5),Kt(o,sc,5),Kt(o,sc,4)),2&i){let s;Pe(s=Fe())&&(r.lazyContent=s.first),Pe(s=Fe())&&(r._allItems=s),Pe(s=Fe())&&(r.items=s)}},viewQuery:function(i,r){if(1&i&&pt(Un,5),2&i){let o;Pe(o=Fe())&&(r.templateRef=o.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:[ue.None,"aria-label","ariaLabel"],ariaLabelledby:[ue.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[ue.None,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:[ue.None,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}})}return t})(),Nu=(()=>{class t extends Q_{constructor(e,i,r,o){super(e,i,r,o),this._elevationPrefix="mat-elevation-z",this._baseElevation=8}static#e=this.\u0275fac=function(i){return new(i||t)(y(Ue),y(ze),y(r7),y(an))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["mat-menu"]],hostAttrs:["ngSkipHydration",""],hostVars:3,hostBindings:function(i,r){2&i&&vt("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[rt([{provide:lI,useExisting:t}]),ke],ngContentSelectors:ive,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&&(Nn(),W(0,rve,3,6,"ng-template"))},dependencies:[ba],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;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{--mat-menu-container-shape:4px;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-mdc-menu-item{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;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:16px;padding-right:16px}.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{margin-right:16px}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:16px}.mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.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{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-mdc-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[T1.transformMenu,T1.fadeInItems]},changeDetection:0})}return t})();const o7=new ee("mat-menu-scroll-strategy"),dve={provide:o7,deps:[wo],useFactory:function lve(t){return()=>t.scrollStrategies.reposition()}},s7=Ca({passive:!0});let uve=(()=>{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=$t.EMPTY,this._hoverSubscription=$t.EMPTY,this._menuCloseSubscription=$t.EMPTY,this._changeDetectorRef=be(an),this._handleTouchStart=u=>{d1(u)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Se,this.onMenuOpen=this.menuOpened,this.menuClosed=new Se,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=s instanceof Q_?s:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,s7)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,s7),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 Q_&&(e._startAnimation(),e._directDescendantItems.changes.pipe(Et(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 Q_?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe(ln(r=>"void"===r.toState),En(1),Et(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 Cm({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 wi(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:at(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(ln(s=>s!==this._menuItemInstance),ln(()=>this._menuOpen)):at(),i)}_handleMousedown(e){l1(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(ln(e=>e===this._menuItemInstance&&!e.disabled),cI(0,tI)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Q_&&this.menu._isAnimating?this.menu._animationDone.pipe(En(1),cI(0,tI),Et(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Kc(e.templateRef,this._viewContainerRef)),this._portal}static#e=this.\u0275fac=function(i){return new(i||t)(y(wo),y(Ue),y(li),y(o7),y(lI,8),y(sc,10),y(Er,8),y(Rs),y(ze))};static#t=this.\u0275dir=J({type:t,hostVars:3,hostBindings:function(i,r){1&i&&H("click",function(s){return r._handleClick(s)})("mousedown",function(s){return r._handleMousedown(s)})("keydown",function(s){return r._handleKeydown(s)}),2&i&&vt("aria-haspopup",r.menu?"menu":null)("aria-expanded",r.menuOpen)("aria-controls",r.menuOpen?r.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[ue.None,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[ue.None,"matMenuTriggerFor","menu"],menuData:[ue.None,"matMenuTriggerData","menuData"],restoreFocus:[ue.None,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}})}return t})(),Lu=(()=>{class t extends uve{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ot(t)))(r||t)}})();static#t=this.\u0275dir=J({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],exportAs:["matMenuTrigger"],features:[ke]})}return t})(),hve=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({providers:[dve],imports:[Zr,id,Ft,Fu,Yc,Ft]})}return t})();const fve=["determinateSpinner"];function mve(t,n){if(1&t&&(Pl(),_(0,"svg",11),we(1,"circle",12),b()),2&t){const e=P();vt("viewBox",e._viewBox()),w(),Wi("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),vt("r",e._circleRadius())}}const pve=td(class{constructor(t){this._elementRef=t}},"primary"),gve=new ee("mat-progress-spinner-default-options",{providedIn:"root",factory:function _ve(){return{diameter:a7}}}),a7=100;let od=(()=>{class t extends pve{constructor(e,i,r){super(e),this.mode="mat-spinner"===this._elementRef.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",this._value=0,this._diameter=a7,this._noopAnimations="NoopAnimations"===i&&!!r&&!r._forceAnimations,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,kr(e)))}get diameter(){return this._diameter}set diameter(e){this._diameter=kr(e)}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=kr(e)}_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)(y(Ue),y(Qn,8),y(gve))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(i,r){if(1&i&&pt(fve,5),2&i){let o;Pe(o=Fe())&&(r._determinateCircle=o.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:16,hostBindings:function(i,r){2&i&&(vt("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===r.mode?r.value:null)("mode",r.mode),Wi("width",r.diameter,"px")("height",r.diameter,"px")("--mdc-circular-progress-size",r.diameter+"px")("--mdc-circular-progress-active-indicator-width",r.diameter+"px"),st("_mat-animation-noopable",r._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===r.mode))},inputs:{color:"color",mode:"mode",value:"value",diameter:"diameter",strokeWidth:"strokeWidth"},exportAs:["matProgressSpinner"],features:[ke],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&&(W(0,mve,2,8,"ng-template",null,0,xu),_(2,"div",2,1),Pl(),_(4,"svg",3),we(5,"circle",4),b()(),Wb(),_(6,"div",5)(7,"div",6)(8,"div",7),Ss(9,8),b(),_(10,"div",9),Ss(11,8),b(),_(12,"div",10),Ss(13,8),b()()()),2&i){const o=Nt(1);w(4),vt("viewBox",r._viewBox()),w(),Wi("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeDashOffset(),"px")("stroke-width",r._circleStrokeWidth(),"%"),vt("r",r._circleRadius()),w(4),E("ngTemplateOutlet",o),w(2),E("ngTemplateOutlet",o),w(2),E("ngTemplateOutlet",o)}},dependencies:[Tx],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-active-indicator-width:4px;--mdc-circular-progress-size:48px}.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})(),bve=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({imports:[Zr,Ft]})}return t})();const yve=["*"],Eve=new ee("MAT_CARD_CONFIG");let dI=(()=>{class t{constructor(e){this.appearance=e?.appearance||"raised"}static#e=this.\u0275fac=function(i){return new(i||t)(y(Eve,8))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(i,r){2&i&&st("mat-mdc-card-outlined","outlined"===r.appearance)("mdc-card--outlined","outlined"===r.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:yve,decls:1,vars:0,template:function(i,r){1&i&&(Nn(),dt(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);--mdc-elevated-card-container-shape:4px;--mdc-outlined-card-container-shape:4px;--mdc-outlined-card-outline-width:1px}.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})(),Tve=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({imports:[Ft,Zr,Ft]})}return t})();const Sve=[[["caption"]],[["colgroup"],["col"]]],Dve=["caption","colgroup, col"];function uI(t){return class extends t{get sticky(){return this._sticky}set sticky(n){const e=this._sticky;this._sticky=Ke(n),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const n=this._hasStickyChanged;return this._hasStickyChanged=!1,n}resetStickyChanged(){this._hasStickyChanged=!1}constructor(...n){super(...n),this._sticky=!1,this._hasStickyChanged=!1}}}const Em=new ee("CDK_TABLE");let Tm=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(y(Un))};static#t=this.\u0275dir=J({type:t,selectors:[["","cdkCellDef",""]]})}return t})(),Sm=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(y(Un))};static#t=this.\u0275dir=J({type:t,selectors:[["","cdkHeaderCellDef",""]]})}return t})(),S1=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(y(Un))};static#t=this.\u0275dir=J({type:t,selectors:[["","cdkFooterCellDef",""]]})}return t})();class Rve{}const Pve=uI(Rve);let Zc=(()=>{class t extends Pve{get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const i=this._stickyEnd;this._stickyEnd=Ke(e),this._hasStickyChanged=i!==this._stickyEnd}constructor(e){super(),this._table=e,this._stickyEnd=!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)(y(Em,8))};static#t=this.\u0275dir=J({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(i,r,o){if(1&i&&(Kt(o,Tm,5),Kt(o,Sm,5),Kt(o,S1,5)),2&i){let s;Pe(s=Fe())&&(r.cell=s.first),Pe(s=Fe())&&(r.headerCell=s.first),Pe(s=Fe())&&(r.footerCell=s.first)}},inputs:{sticky:"sticky",name:[ue.None,"cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[rt([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),ke]})}return t})();class hI{constructor(n,e){e.nativeElement.classList.add(...n._columnCssClassName)}}let fI=(()=>{class t extends hI{constructor(e,i){super(e,i)}static#e=this.\u0275fac=function(i){return new(i||t)(y(Zc),y(Ue))};static#t=this.\u0275dir=J({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[ke]})}return t})(),mI=(()=>{class t extends hI{constructor(e,i){if(super(e,i),1===e._table?._elementRef.nativeElement.nodeType){const r=e._table._elementRef.nativeElement.getAttribute("role");i.nativeElement.setAttribute("role","grid"===r||"treegrid"===r?"gridcell":"cell")}}static#e=this.\u0275fac=function(i){return new(i||t)(y(Zc),y(Ue))};static#t=this.\u0275dir=J({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[ke]})}return t})();class l7{constructor(){this.tasks=[],this.endTasks=[]}}const pI=new ee("_COALESCED_STYLE_SCHEDULER");let d7=(()=>{class t{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new Re}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 l7,this._getScheduleObservable().pipe(Et(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new l7;for(const i of e.tasks)i();for(const i of e.endTasks)i()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?qi(Promise.resolve(void 0)):this._ngZone.onStable.pipe(En(1))}static#e=this.\u0275fac=function(i){return new(i||t)(X(ze))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac})}return t})(),gI=(()=>{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 K_?e.headerCell.template:this instanceof X_?e.footerCell.template:e.cell.template}static#e=this.\u0275fac=function(i){return new(i||t)(y(Un),y($l))};static#t=this.\u0275dir=J({type:t,features:[Wn]})}return t})();class Fve extends gI{}const Ove=uI(Fve);let K_=(()=>{class t extends Ove{constructor(e,i,r){super(e,i),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}static#e=this.\u0275fac=function(i){return new(i||t)(y(Un),y($l),y(Em,8))};static#t=this.\u0275dir=J({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[ue.None,"cdkHeaderRowDef","columns"],sticky:[ue.None,"cdkHeaderRowDefSticky","sticky"]},features:[ke,Wn]})}return t})();class Nve extends gI{}const Lve=uI(Nve);let X_=(()=>{class t extends Lve{constructor(e,i,r){super(e,i),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}static#e=this.\u0275fac=function(i){return new(i||t)(y(Un),y($l),y(Em,8))};static#t=this.\u0275dir=J({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[ue.None,"cdkFooterRowDef","columns"],sticky:[ue.None,"cdkFooterRowDefSticky","sticky"]},features:[ke,Wn]})}return t})(),D1=(()=>{class t extends gI{constructor(e,i,r){super(e,i),this._table=r}static#e=this.\u0275fac=function(i){return new(i||t)(y(Un),y($l),y(Em,8))};static#t=this.\u0275dir=J({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[ue.None,"cdkRowDefColumns","columns"],when:[ue.None,"cdkRowDefWhen","when"]},features:[ke]})}return t})(),Jc=(()=>{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)(y(li))};static#n=this.\u0275dir=J({type:t,selectors:[["","cdkCellOutlet",""]]})}return t})(),_I=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=Ge({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){1&i&&Ss(0,0)},dependencies:[Jc],encapsulation:2})}return t})(),bI=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=Ge({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){1&i&&Ss(0,0)},dependencies:[Jc],encapsulation:2})}return t})(),I1=(()=>{class t{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}static#e=this.\u0275fac=function(i){return new(i||t)(y(Un))};static#t=this.\u0275dir=J({type:t,selectors:[["ng-template","cdkNoDataRow",""]]})}return t})();const u7=["top","bottom","left","right"];class Bve{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){if(!n.length||!this._isBrowser||!e.some(h=>h)&&!i.some(h=>h))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));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);this._coalescedStyleScheduler.schedule(()=>{const 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()}))})}stickRows(n,e,i){if(!this._isBrowser)return;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{for(let d=0;d{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]);u7.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 u7)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 yI=new ee("CDK_SPL");let A1=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}static#e=this.\u0275fac=function(i){return new(i||t)(y(li),y(Ue))};static#t=this.\u0275dir=J({type:t,selectors:[["","rowOutlet",""]]})}return t})(),M1=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}static#e=this.\u0275fac=function(i){return new(i||t)(y(li),y(Ue))};static#t=this.\u0275dir=J({type:t,selectors:[["","headerRowOutlet",""]]})}return t})(),R1=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}static#e=this.\u0275fac=function(i){return new(i||t)(y(li),y(Ue))};static#t=this.\u0275dir=J({type:t,selectors:[["","footerRowOutlet",""]]})}return t})(),P1=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i}static#e=this.\u0275fac=function(i){return new(i||t)(y(li),y(Ue))};static#t=this.\u0275dir=J({type:t,selectors:[["","noDataRowOutlet",""]]})}return t})(),F1=(()=>{class t{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=Ke(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=Ke(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 Re,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._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new Se,this.viewChange=new Ei({start:0,end:Number.MAX_VALUE}),o||this._elementRef.nativeElement.setAttribute("role","table"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i),this._viewportRuler.change().pipe(Et(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){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()}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(),x2(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=>{1===r.operation&&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&&ze.isInAngularZone()?this._ngZone.onStable.pipe(En(1),Et(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),r=this._elementRef.nativeElement.querySelector("thead");r&&(r.style.display=e.length?"":"none");const o=this._headerRowDefs.map(s=>s.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,o,"top"),this._headerRowDefs.forEach(s=>s.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=e.length?"":"none");const o=this._footerRowDefs.map(s=>s.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,o,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,o),this._footerRowDefs.forEach(s=>s.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())}_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(),O1(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=O1(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=O1(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=O1(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=[],x2(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;x2(this.dataSource)?e=this.dataSource.connect(this):ND(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=at(this.dataSource)),this._renderChangeSubscription=e.pipe(Et(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))Jc.mostRecentCellOutlet&&Jc.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)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),i=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const r of i){const o=this._document.createElement(r.tag);o.setAttribute("role","rowgroup");for(const s of r.outlets)o.appendChild(s.elementRef.nativeElement);e.appendChild(o)}this._elementRef.nativeElement.appendChild(e)}_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 Bve(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:at()).pipe(Et(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)(y($l),y(an),y(Ue),ws("role"),y(Er,8),y(xt),y(zn),y(S_),y(pI),y(oc),y(yI,12),y(ze,8))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(i,r,o){if(1&i&&(Kt(o,I1,5),Kt(o,Zc,5),Kt(o,D1,5),Kt(o,K_,5),Kt(o,X_,5)),2&i){let s;Pe(s=Fe())&&(r._noDataRow=s.first),Pe(s=Fe())&&(r._contentColumnDefs=s),Pe(s=Fe())&&(r._contentRowDefs=s),Pe(s=Fe())&&(r._contentHeaderRowDefs=s),Pe(s=Fe())&&(r._contentFooterRowDefs=s)}},viewQuery:function(i,r){if(1&i&&(pt(A1,7),pt(M1,7),pt(R1,7),pt(P1,7)),2&i){let o;Pe(o=Fe())&&(r._rowOutlet=o.first),Pe(o=Fe())&&(r._headerRowOutlet=o.first),Pe(o=Fe())&&(r._footerRowOutlet=o.first),Pe(o=Fe())&&(r._noDataRowOutlet=o.first)}},hostAttrs:["ngSkipHydration","",1,"cdk-table"],hostVars:2,hostBindings:function(i,r){2&i&&st("cdk-table-fixed-layout",r.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[rt([{provide:Em,useExisting:t},{provide:S_,useClass:bU},{provide:pI,useClass:d7},{provide:yI,useValue:null}])],ngContentSelectors:Dve,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,r){1&i&&(Nn(Sve),dt(0),dt(1,1),Ss(2,0)(3,1)(4,2)(5,3))},dependencies:[A1,M1,R1,P1],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2})}return t})();function O1(t,n){return t.concat(Array.from(n))}let Uve=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({imports:[iI]})}return t})();const zve=[[["caption"]],[["colgroup"],["col"]]],Hve=["caption","colgroup, col"];let sd=(()=>{class t extends F1{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}ngOnInit(){super.ngOnInit(),this._isNativeHtmlTable&&this._elementRef.nativeElement.querySelector("tbody").classList.add("mdc-data-table__content")}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ot(t)))(r||t)}})();static#t=this.\u0275cmp=Ge({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:["ngSkipHydration","",1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(i,r){2&i&&st("mdc-table-fixed-layout",r.fixedLayout)},exportAs:["matTable"],features:[rt([{provide:F1,useExisting:t},{provide:Em,useExisting:t},{provide:pI,useClass:d7},{provide:S_,useClass:bU},{provide:yI,useValue:null}]),ke],ngContentSelectors:Hve,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,r){1&i&&(Nn(zve),dt(0),dt(1,1),Ss(2,0)(3,1)(4,2)(5,3))},dependencies:[A1,M1,R1,P1],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{--mat-table-row-item-outline-width:1px;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})(),el=(()=>{class t extends Tm{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ot(t)))(r||t)}})();static#t=this.\u0275dir=J({type:t,selectors:[["","matCellDef",""]],features:[rt([{provide:Tm,useExisting:t}]),ke]})}return t})(),tl=(()=>{class t extends Sm{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ot(t)))(r||t)}})();static#t=this.\u0275dir=J({type:t,selectors:[["","matHeaderCellDef",""]],features:[rt([{provide:Sm,useExisting:t}]),ke]})}return t})(),nl=(()=>{class t extends Zc{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=Ot(t)))(r||t)}})();static#t=this.\u0275dir=J({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:[ue.None,"matColumnDef","name"]},features:[rt([{provide:Zc,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),ke]})}return t})(),il=(()=>{class t extends fI{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ot(t)))(r||t)}})();static#t=this.\u0275dir=J({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[ke]})}return t})(),rl=(()=>{class t extends mI{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ot(t)))(r||t)}})();static#t=this.\u0275dir=J({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[ke]})}return t})(),ad=(()=>{class t extends K_{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ot(t)))(r||t)}})();static#t=this.\u0275dir=J({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[ue.None,"matHeaderRowDef","columns"],sticky:[ue.None,"matHeaderRowDefSticky","sticky"]},features:[rt([{provide:K_,useExisting:t}]),ke]})}return t})(),cd=(()=>{class t extends D1{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ot(t)))(r||t)}})();static#t=this.\u0275dir=J({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[ue.None,"matRowDefColumns","columns"],when:[ue.None,"matRowDefWhen","when"]},features:[rt([{provide:D1,useExisting:t}]),ke]})}return t})(),ld=(()=>{class t extends _I{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ot(t)))(r||t)}})();static#t=this.\u0275cmp=Ge({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"],features:[rt([{provide:_I,useExisting:t}]),ke],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){1&i&&Ss(0,0)},dependencies:[Jc],encapsulation:2})}return t})(),dd=(()=>{class t extends bI{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ot(t)))(r||t)}})();static#t=this.\u0275cmp=Ge({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[rt([{provide:bI,useExisting:t}]),ke],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){1&i&&Ss(0,0)},dependencies:[Jc],encapsulation:2})}return t})(),Xve=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({imports:[Ft,Uve,Ft]})}return t})();class Zve extends Wx{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 Ei([]),this._filter=new Ei(""),this._internalPageChanges=new Re,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,i)=>{const r=e[i];if(qU(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 Ei(n),this._updateChangeSubscription()}_updateChangeSubscription(){const n=this._sort?wi(this._sort.sortChange,this._sort.initialized):at(null),e=this._paginator?wi(this._paginator.page,this._internalPageChanges,this._paginator.initialized):at(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}}class Bu extends Zve{}let f7=(()=>{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)(y(Lc),y(Ue))};static#t=this.\u0275dir=J({type:t})}return t})(),Vu=(()=>{class t extends f7{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ot(t)))(r||t)}})();static#t=this.\u0275dir=J({type:t,features:[ke]})}return t})();const eo=new ee(""),ebe={provide:eo,useExisting:hn(()=>Xs),multi:!0},nbe=new ee("");let Xs=(()=>{class t extends f7{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function tbe(){const t=Gl()?Gl().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)(y(Lc),y(Ue),y(nbe,8))};static#t=this.\u0275dir=J({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&&H("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:[rt([ebe]),ke]})}return t})();function ud(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function p7(t){return null!=t&&"number"==typeof t.length}const Vr=new ee(""),hd=new ee(""),ibe=/^(?=.{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 Dm{static min(n){return function g7(t){return n=>{if(ud(n.value)||ud(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{if(ud(n.value)||ud(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 v7(n)}static requiredTrue(n){return function b7(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function y7(t){return ud(t.value)||ibe.test(t.value)?null:{email:!0}}(n)}static minLength(n){return x7(n)}static maxLength(n){return function w7(t){return n=>p7(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}(n)}static pattern(n){return C7(n)}static nullValidator(n){return null}static compose(n){return I7(n)}static composeAsync(n){return A7(n)}}function v7(t){return ud(t.value)?{required:!0}:null}function x7(t){return n=>ud(n.value)||!p7(n.value)?null:n.value.length{if(ud(i.value))return null;const r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function N1(t){return null}function k7(t){return null!=t}function E7(t){return i_(t)?qi(t):t}function T7(t){let n={};return t.forEach(e=>{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function S7(t,n){return n.map(e=>e(t))}function D7(t){return t.map(n=>function rbe(t){return!t.validate}(n)?n:e=>n.validate(e))}function I7(t){if(!t)return null;const n=t.filter(k7);return 0==n.length?null:function(e){return T7(S7(e,n))}}function xI(t){return null!=t?I7(D7(t)):null}function A7(t){if(!t)return null;const n=t.filter(k7);return 0==n.length?null:function(e){return X9(S7(e,n).map(E7)).pipe(mt(T7))}}function wI(t){return null!=t?A7(D7(t)):null}function M7(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function R7(t){return t._rawValidators}function P7(t){return t._rawAsyncValidators}function CI(t){return t?Array.isArray(t)?t:[t]:[]}function L1(t,n){return Array.isArray(t)?t.includes(n):t===n}function F7(t,n){const e=CI(n);return CI(t).forEach(r=>{L1(e,r)||e.push(r)}),e}function O7(t,n){return CI(n).filter(e=>!L1(t,e))}class N7{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=xI(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=wI(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 Go extends N7{get formDirective(){return null}get path(){return null}}class ac extends N7{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class L7{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 cs=(()=>{class t extends L7{constructor(e){super(e)}static#e=this.\u0275fac=function(i){return new(i||t)(y(ac,2))};static#t=this.\u0275dir=J({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){2&i&&st("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:[ke]})}return t})(),Y_=(()=>{class t extends L7{constructor(e){super(e)}static#e=this.\u0275fac=function(i){return new(i||t)(y(Go,10))};static#t=this.\u0275dir=J({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){2&i&&st("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:[ke]})}return t})();const Z_="VALID",V1="INVALID",Im="PENDING",J_="DISABLED";function TI(t){return(U1(t)?t.validators:t)||null}function SI(t,n){return(U1(n)?n.asyncValidators:t)||null}function U1(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function V7(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new ce(1e3,"");if(!i[e])throw new ce(1001,"")}function U7(t,n,e){t._forEachChild((i,r)=>{if(void 0===e[r])throw new ce(1002,"")})}class z1{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===Z_}get invalid(){return this.status===V1}get pending(){return this.status==Im}get disabled(){return this.status===J_}get enabled(){return this.status!==J_}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(F7(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(F7(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(O7(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(O7(n,this._rawAsyncValidators))}hasValidator(n){return L1(this._rawValidators,n)}hasAsyncValidator(n){return L1(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=Im,!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=J_,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=Z_,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===Z_||this.status===Im)&&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()?J_:Z_}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Im,this._hasOwnPendingAsyncValidator=!0;const e=E7(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 Se,this.statusChanges=new Se}_calculateStatus(){return this._allControlsDisabled()?J_:this.errors?V1:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Im)?Im:this._anyControlsHaveStatus(V1)?V1:Z_}_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){U1(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 cbe(t){return Array.isArray(t)?xI(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function lbe(t){return Array.isArray(t)?wI(t):t||null}(this._rawAsyncValidators)}}class Am extends z1{constructor(n,e,i){super(TI(e),SI(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={}){U7(this,0,n),Object.keys(n).forEach(i=>{V7(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 z7 extends Am{}const Uu=new ee("CallSetDisabledState",{providedIn:"root",factory:()=>e0}),e0="always";function H1(t,n){return[...n.path,t]}function t0(t,n,e=e0){DI(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function ube(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&H7(t,n)})}(t,n),function fbe(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 hbe(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&H7(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function dbe(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function j1(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),G1(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function $1(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function DI(t,n){const e=R7(t);null!==n.validator?t.setValidators(M7(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=P7(t);null!==n.asyncValidator?t.setAsyncValidators(M7(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();$1(n._rawValidators,r),$1(n._rawAsyncValidators,r)}function G1(t,n){let e=!1;if(null!==t){if(null!==n.validator){const r=R7(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=P7(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 $1(n._rawValidators,i),$1(n._rawAsyncValidators,i),e}function H7(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function j7(t,n){DI(t,n)}function AI(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}function $7(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function MI(t,n){if(!n)return null;let e,i,r;return Array.isArray(n),n.forEach(o=>{o.constructor===Xs?e=o:function gbe(t){return Object.getPrototypeOf(t.constructor)===Vu}(o)?i=o:r=o}),r||i||e||null}const vbe={provide:Go,useExisting:hn(()=>zu)},n0=Promise.resolve();let zu=(()=>{class t extends Go{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Se,this.form=new Am({},xI(e),wI(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){n0.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),t0(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){n0.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){n0.then(()=>{const i=this._findContainer(e.path),r=new Am({});j7(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){n0.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){n0.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,$7(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)(y(Vr,10),y(hd,10),y(Uu,8))};static#t=this.\u0275dir=J({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,r){1&i&&H("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{options:[ue.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[rt([vbe]),ke]})}return t})();function G7(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function W7(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const ls=class extends z1{constructor(n=null,e,i){super(TI(e),SI(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}),U1(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=W7(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){G7(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){G7(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){W7(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}},bbe=ls,wbe={provide:ac,useExisting:hn(()=>Ps)},K7=Promise.resolve();let Ps=(()=>{class t extends ac{constructor(e,i,r,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new ls,this._registered=!1,this.name="",this.update=new Se,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=MI(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),AI(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(){t0(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){K7.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=0!==i&&Xf(i);K7.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?H1(e,this._parent):[e]}static#e=this.\u0275fac=function(i){return new(i||t)(y(Go,9),y(Vr,10),y(hd,10),y(eo,10),y(an,8),y(Uu,8))};static#t=this.\u0275dir=J({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[ue.None,"disabled","isDisabled"],model:[ue.None,"ngModel","model"],options:[ue.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[rt([wbe]),ke,Wn]})}return t})(),r0=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=J({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return t})();const Cbe={provide:eo,useExisting:hn(()=>W1),multi:!0};let W1=(()=>{class t extends Vu{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=Ot(t)))(r||t)}})();static#t=this.\u0275dir=J({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,r){1&i&&H("input",function(s){return r.onChange(s.target.value)})("blur",function(){return r.onTouched()})},features:[rt([Cbe]),ke]})}return t})();const RI=new ee(""),Sbe={provide:ac,useExisting:hn(()=>q1)};let q1=(()=>{class t extends ac{set isDisabled(e){}static#e=this._ngModelWarningSentOnce=!1;constructor(e,i,r,o,s){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=s,this.update=new Se,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=MI(0,r)}ngOnChanges(e){if(this._isControlChanged(e)){const i=e.form.previousValue;i&&j1(i,this,!1),t0(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}AI(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&j1(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)(y(Vr,10),y(hd,10),y(eo,10),y(RI,8),y(Uu,8))};static#n=this.\u0275dir=J({type:t,selectors:[["","formControl",""]],inputs:{form:[ue.None,"formControl","form"],isDisabled:[ue.None,"disabled","isDisabled"],model:[ue.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[rt([Sbe]),ke,Wn]})}return t})();const Dbe={provide:Go,useExisting:hn(()=>fd)};let fd=(()=>{class t extends Go{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Se,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&&(G1(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 t0(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){j1(e.control||null,e,!1),function _be(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,$7(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&&(j1(i||null,e),(t=>t instanceof ls)(r)&&(t0(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);j7(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function mbe(t,n){return G1(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){DI(this.form,this),this._oldForm&&G1(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(i){return new(i||t)(y(Vr,10),y(hd,10),y(Uu,8))};static#t=this.\u0275dir=J({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,r){1&i&&H("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{form:[ue.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[rt([Dbe]),ke,Wn]})}return t})();const Mbe={provide:ac,useExisting:hn(()=>o0)};let o0=(()=>{class t extends ac{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 Se,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=MI(0,o)}ngOnChanges(e){this._added||this._setUpControl(),AI(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 H1(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)(y(Go,13),y(Vr,10),y(hd,10),y(eo,10),y(RI,8))};static#n=this.\u0275dir=J({type:t,selectors:[["","formControlName",""]],inputs:{name:[ue.None,"formControlName","name"],isDisabled:[ue.None,"disabled","isDisabled"],model:[ue.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[rt([Mbe]),ke,Wn]})}return t})();let Hu=(()=>{class t{constructor(){this._validator=N1}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):N1,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=J({type:t,features:[Wn]})}return t})();const Ube={provide:Vr,useExisting:hn(()=>Q1),multi:!0};let Q1=(()=>{class t extends Hu{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Xf,this.createValidator=e=>v7}enabled(e){return e}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ot(t)))(r||t)}})();static#t=this.\u0275dir=J({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&&vt("required",r._enabled?"":null)},inputs:{required:"required"},features:[rt([Ube]),ke]})}return t})();const jbe={provide:Vr,useExisting:hn(()=>LI),multi:!0};let LI=(()=>{class t extends Hu{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=e=>function tz(t){return"number"==typeof t?t:parseInt(t,10)}(e),this.createValidator=e=>x7(e)}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ot(t)))(r||t)}})();static#t=this.\u0275dir=J({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(i,r){2&i&&vt("minlength",r._enabled?r.minlength:null)},inputs:{minlength:"minlength"},features:[rt([jbe]),ke]})}return t})();const Gbe={provide:Vr,useExisting:hn(()=>X1),multi:!0};let X1=(()=>{class t extends Hu{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=e=>e,this.createValidator=e=>C7(e)}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ot(t)))(r||t)}})();static#t=this.\u0275dir=J({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(i,r){2&i&&vt("pattern",r._enabled?r.pattern:null)},inputs:{pattern:"pattern"},features:[rt([Gbe]),ke]})}return t})(),az=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({})}return t})();class cz extends z1{constructor(n,e,i){super(TI(e),SI(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={}){U7(this,0,n),n.forEach((i,r)=>{V7(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 lz(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let dz=(()=>{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 lz(i)?o=i:null!==i&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new Am(r,o)}record(e,i=null){const r=this._reduceControls(e);return new z7(r,i)}control(e,i,r){let o={};return this.useNonNullable?(lz(i)?o=i:(o.validators=i,o.asyncValidators=r),new ls(e,{...o,nonNullable:!0})):new ls(e,i,r)}array(e,i,r){const o=e.map(s=>this._createControl(s));return new cz(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 ls||e instanceof z1?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=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),BI=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Uu,useValue:e.callSetDisabledState??e0}]}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({imports:[az]})}return t})(),Wbe=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:RI,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Uu,useValue:e.callSetDisabledState??e0}]}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({imports:[az]})}return t})();class Qbe{constructor(n){this._box=n,this._destroyed=new Re,this._resizeSubject=new Re,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 Fn(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(ln(e=>e.some(i=>i.target===n)),function qbe(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,Y9({connector:()=>new E2(i,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}({bufferSize:1,refCount:!0}),Et(this._destroyed))),this._elementObservables.get(n)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let Kbe=(()=>{class t{constructor(){this._observers=new Map,this._ngZone=be(ze)}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 Qbe(r)),this._observers.get(r).observe(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Xbe=["notch"],Ybe=["matFormFieldNotchedOutline",""],Zbe=["*"],Jbe=["textField"],eye=["iconPrefixContainer"],tye=["textPrefixContainer"],nye=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],iye=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function rye(t,n){1&t&&we(0,"span",21)}function oye(t,n){if(1&t&&(_(0,"label",19),dt(1,1),W(2,rye,1,0,"span",20),b()),2&t){const e=P(2);E("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),vt("for",e._control.id),w(2),E("ngIf",!e.hideRequiredMarker&&e._control.required)}}function sye(t,n){1&t&&W(0,oye,3,5,"label",18),2&t&&E("ngIf",P()._hasFloatingLabel())}function aye(t,n){1&t&&we(0,"div",22)}function cye(t,n){}function lye(t,n){1&t&&W(0,cye,0,0,"ng-template",24),2&t&&(P(2),E("ngTemplateOutlet",Nt(1)))}function dye(t,n){if(1&t&&(_(0,"div",23),W(1,lye,1,1,"ng-template",11),b()),2&t){const e=P();E("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),w(),E("ngIf",!e._forceDisplayInfixLabel())}}function uye(t,n){1&t&&(_(0,"div",25,2),dt(2,2),b())}function hye(t,n){1&t&&(_(0,"div",26,3),dt(2,3),b())}function fye(t,n){}function mye(t,n){1&t&&W(0,fye,0,0,"ng-template",24),2&t&&(P(),E("ngTemplateOutlet",Nt(1)))}function pye(t,n){1&t&&(_(0,"div",27),dt(1,4),b())}function gye(t,n){1&t&&(_(0,"div",28),dt(1,5),b())}function _ye(t,n){1&t&&we(0,"div",29)}function vye(t,n){1&t&&(_(0,"div",30),dt(1,6),b()),2&t&&E("@transitionMessages",P()._subscriptAnimationState)}function bye(t,n){if(1&t&&(_(0,"mat-hint",34),k(1),b()),2&t){const e=P(2);E("id",e._hintLabelId),w(),nt(e.hintLabel)}}function yye(t,n){if(1&t&&(_(0,"div",31),W(1,bye,2,2,"mat-hint",32),dt(2,7),we(3,"div",33),dt(4,8),b()),2&t){const e=P();E("@transitionMessages",e._subscriptAnimationState),w(),E("ngIf",e.hintLabel)}}let Fs=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=J({type:t,selectors:[["mat-label"]]})}return t})(),xye=0;const uz=new ee("MatError");let hz=(()=>{class t{constructor(e,i){this.id="mat-mdc-error-"+xye++,e||i.nativeElement.setAttribute("aria-live","polite")}static#e=this.\u0275fac=function(i){return new(i||t)(ws("aria-live"),y(Ue))};static#t=this.\u0275dir=J({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&&Xa("id",r.id)},inputs:{id:"id"},features:[rt([{provide:uz,useExisting:t}])]})}return t})(),wye=0,ju=(()=>{class t{constructor(){this.align="start",this.id="mat-mdc-hint-"+wye++}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=J({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&&(Xa("id",r.id),vt("align",null),st("mat-mdc-form-field-hint-end","end"===r.align))},inputs:{align:"align",id:"id"}})}return t})();const Cye=new ee("MatPrefix"),fz=new ee("MatSuffix");let mz=(()=>{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=J({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[ue.None,"matTextSuffix","_isTextSelector"]},features:[rt([{provide:fz,useExisting:t}])]})}return t})();const pz=new ee("FloatingLabelParent");let gz=(()=>{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=be(Kbe),this._ngZone=be(ze),this._parent=be(pz),this._resizeSubscription=new $t}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function kye(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)(y(Ue))};static#t=this.\u0275dir=J({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(i,r){2&i&&st("mdc-floating-label--float-above",r.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return t})();const _z="mdc-line-ripple--active",Y1="mdc-line-ripple--deactivating";let vz=(()=>{class t{constructor(e,i){this._elementRef=e,this._handleTransitionEnd=r=>{const o=this._elementRef.nativeElement.classList,s=o.contains(Y1);"opacity"===r.propertyName&&s&&o.remove(_z,Y1)},i.runOutsideAngular(()=>{e.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const e=this._elementRef.nativeElement.classList;e.remove(Y1),e.add(_z)}deactivate(){this._elementRef.nativeElement.classList.add(Y1)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static#e=this.\u0275fac=function(i){return new(i||t)(y(Ue),y(ze))};static#t=this.\u0275dir=J({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return t})(),bz=(()=>{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)(y(Ue),y(ze))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(i,r){if(1&i&&pt(Xbe,5),2&i){let o;Pe(o=Fe())&&(r._notch=o.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(i,r){2&i&&st("mdc-notched-outline--notched",r.open)},inputs:{open:[ue.None,"matFormFieldNotchedOutlineOpen","open"]},attrs:Ybe,ngContentSelectors:Zbe,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&&(Nn(),we(0,"div",1),_(1,"div",2,0),dt(3),b(),we(4,"div",3))},encapsulation:2,changeDetection:0})}return t})();const Eye={transitionMessages:Kn("transitionMessages",[pn("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 Z1=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=J({type:t})}return t})();const J1=new ee("MatFormField"),Tye=new ee("MAT_FORM_FIELD_DEFAULT_OPTIONS");let yz=0,Ea=(()=>{class t{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Ke(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-"+yz++,this._hintLabelId="mat-mdc-hint-"+yz++,this._subscriptAnimationState="",this._destroyed=new Re,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(Et(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(),wi(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(Et(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe(Et(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)(y(Ue),y(an),y(ze),y(Er),y(zn),y(Tye,8),y(Qn,8),y(xt))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["mat-form-field"]],contentQueries:function(i,r,o){if(1&i&&(Kt(o,Fs,5),Kt(o,Fs,7),Kt(o,Z1,5),Kt(o,Cye,5),Kt(o,fz,5),Kt(o,uz,5),Kt(o,ju,5)),2&i){let s;Pe(s=Fe())&&(r._labelChildNonStatic=s.first),Pe(s=Fe())&&(r._labelChildStatic=s.first),Pe(s=Fe())&&(r._formFieldControl=s.first),Pe(s=Fe())&&(r._prefixChildren=s),Pe(s=Fe())&&(r._suffixChildren=s),Pe(s=Fe())&&(r._errorChildren=s),Pe(s=Fe())&&(r._hintChildren=s)}},viewQuery:function(i,r){if(1&i&&(pt(Jbe,5),pt(eye,5),pt(tye,5),pt(gz,5),pt(bz,5),pt(vz,5)),2&i){let o;Pe(o=Fe())&&(r._textField=o.first),Pe(o=Fe())&&(r._iconPrefixContainer=o.first),Pe(o=Fe())&&(r._textPrefixContainer=o.first),Pe(o=Fe())&&(r._floatingLabel=o.first),Pe(o=Fe())&&(r._notchedOutline=o.first),Pe(o=Fe())&&(r._lineRipple=o.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(i,r){2&i&&st("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"],features:[rt([{provide:J1,useExisting:t},{provide:pz,useExisting:t}])],ngContentSelectors:iye,decls:18,vars:23,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen",4,"ngIf"],["class","mat-mdc-form-field-icon-prefix",4,"ngIf"],["class","mat-mdc-form-field-text-prefix",4,"ngIf"],[1,"mat-mdc-form-field-infix"],[3,"ngIf"],["class","mat-mdc-form-field-text-suffix",4,"ngIf"],["class","mat-mdc-form-field-icon-suffix",4,"ngIf"],["matFormFieldLineRipple","",4,"ngIf"],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align",3,"ngSwitch"],["class","mat-mdc-form-field-error-wrapper",4,"ngSwitchCase"],["class","mat-mdc-form-field-hint-wrapper",4,"ngSwitchCase"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required",4,"ngIf"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id",4,"ngIf"],[1,"mat-mdc-form-field-hint-spacer"],[3,"id"]],template:function(i,r){if(1&i){const o=De();Nn(nye),W(0,sye,1,1,"ng-template",null,0,xu),_(2,"div",4,1),H("click",function(a){return j(o),G(r._control.onContainerClick(a))}),W(4,aye,1,0,"div",5),_(5,"div",6),W(6,dye,2,2,"div",7)(7,uye,3,0,"div",8)(8,hye,3,0,"div",9),_(9,"div",10),W(10,mye,1,1,"ng-template",11),dt(11),b(),W(12,pye,2,0,"div",12)(13,gye,2,0,"div",13),b(),W(14,_ye,1,0,"div",14),b(),_(15,"div",15),W(16,vye,2,1,"div",16)(17,yye,5,2,"div",17),b()}2&i&&(w(2),st("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),w(2),E("ngIf",!r._hasOutline()&&!r._control.disabled),w(2),E("ngIf",r._hasOutline()),w(),E("ngIf",r._hasIconPrefix),w(),E("ngIf",r._hasTextPrefix),w(2),E("ngIf",!r._hasOutline()||r._forceDisplayInfixLabel()),w(2),E("ngIf",r._hasTextSuffix),w(),E("ngIf",r._hasIconSuffix),w(),E("ngIf",!r._hasOutline()),w(),st("mat-mdc-form-field-subscript-dynamic-size","dynamic"===r.subscriptSizing),E("ngSwitch",r._getDisplayedMessages()),w(),E("ngSwitchCase","error"),w(),E("ngSwitchCase","hint"))},dependencies:[si,Tx,a_,xD,ju,gz,bz,vz],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-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{transform:translateY(-34.75px) scale(0.75)}.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-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{transform:translateY(-24.75px) scale(0.75)}.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-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{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-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{--mdc-filled-text-field-active-indicator-height:1px;--mdc-filled-text-field-focus-active-indicator-height:2px;--mdc-filled-text-field-container-shape:4px;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.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-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{--mdc-outlined-text-field-outline-width:1px;--mdc-outlined-text-field-focus-outline-width:2px;--mdc-outlined-text-field-container-shape:4px}.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.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-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-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}.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}.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-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}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}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}.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}[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-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%}.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,[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-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.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:[Eye.transitionMessages]},changeDetection:0})}return t})(),ew=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({imports:[Ft,Zr,r1,Ft]})}return t})();const Iye=["panel"],Aye=["*"];function Mye(t,n){if(1&t){const e=De();_(0,"div",1,0),H("@panelAnimation.done",function(r){return j(e),G(P()._animationDone.next(r))}),dt(2),b()}if(2&t){const e=n.id,i=P();E("id",i.id)("ngClass",i._classList)("@panelAnimation",i.isOpen?"visible":"hidden"),vt("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}const Rye=Kn("panelAnimation",[pn("void, hidden",We({opacity:0,transform:"scaleY(0.8)"})),Xt(":enter, hidden => visible",[Y2([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 Pye=0;class Fye{constructor(n,e){this.source=n,this.option=e}}const Oye=nd(class{}),Cz=new ee("mat-autocomplete-default-options",{providedIn:"root",factory:function Nye(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}});let Lye=(()=>{class t extends Oye{get isOpen(){return this._isOpen&&this.showPanel}_setColor(e){this._color=e,this._setThemeClasses(this._classList)}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(e){this._autoActiveFirstOption=Ke(e)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(e){this._autoSelectActiveOption=Ke(e)}get requireSelection(){return this._requireSelection}set requireSelection(e){this._requireSelection=Ke(e)}set classList(e){this._classList=e&&e.length?function Oge(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=""}constructor(e,i,r,o){super(),this._changeDetectorRef=e,this._elementRef=i,this._defaults=r,this._activeOptionChanges=$t.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new Se,this.opened=new Se,this.closed=new Se,this.optionActivated=new Se,this._classList={},this.id="mat-autocomplete-"+Pye++,this.inertGroups=o?.SAFARI||!1,this._autoActiveFirstOption=!!r.autoActiveFirstOption,this._autoSelectActiveOption=!!r.autoSelectActiveOption,this._requireSelection=!!r.requireSelection}ngAfterContentInit(){this._keyManager=new i9(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()}_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 Fye(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(e){return e.disabled}static#e=this.\u0275fac=function(i){return new(i||t)(y(an),y(Ue),y(Cz),y(zn))};static#t=this.\u0275dir=J({type:t,viewQuery:function(i,r){if(1&i&&(pt(Un,7),pt(Iye,5)),2&i){let o;Pe(o=Fe())&&(r.template=o.first),Pe(o=Fe())&&(r.panel=o.first)}},inputs:{ariaLabel:[ue.None,"aria-label","ariaLabel"],ariaLabelledby:[ue.None,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",requireSelection:"requireSelection",panelWidth:"panelWidth",classList:[ue.None,"class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[ke]})}return t})(),Bye=(()=>{class t extends Lye{constructor(){super(...arguments),this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden",this._animationDone=new Se,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=Ke(e),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}ngOnDestroy(){super.ngOnDestroy(),this._animationDone.complete()}_skipPredicate(e){return!1}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ot(t)))(r||t)}})();static#t=this.\u0275cmp=Ge({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(i,r,o){if(1&i&&(Kt(o,q2,5),Kt(o,rd,5)),2&i){let s;Pe(s=Fe())&&(r.optionGroups=s),Pe(s=Fe())&&(r.options=s)}},hostAttrs:["ngSkipHydration","",1,"mat-mdc-autocomplete"],inputs:{disableRipple:"disableRipple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matAutocomplete"],features:[rt([{provide:W2,useExisting:t}]),ke],ngContentSelectors:Aye,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&&(Nn(),W(0,Mye,3,5,"ng-template"))},dependencies:[ba],styles:["div.mat-mdc-autocomplete-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;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}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[Rye]},changeDetection:0})}return t})();const Vye={provide:eo,useExisting:hn(()=>Ez),multi:!0},kz=new ee("mat-autocomplete-scroll-strategy"),zye={provide:kz,deps:[wo],useFactory:function Uye(t){return()=>t.scrollStrategies.reposition()}};let Hye=(()=>{class t{get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=Ke(e)}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._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=$t.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Re,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=em(()=>{const f=this.autocomplete?this.autocomplete.options:null;return f?f.changes.pipe(wr(f),Qi(()=>wi(...f.map(m=>m.onSelectionChange)))):this._zone.onStable.pipe(En(1),Qi(()=>this.optionSelections))}),this._handlePanelKeydown=f=>{(27===f.keyCode&&!yo(f)||38===f.keyCode&&yo(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._attachOverlay(),this._floatLabel(),this._trackedModal&&o1(this._trackedModal,"aria-owns",this.autocomplete.id)}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)&&bm(this._trackedModal,"aria-owns",this.autocomplete.id)}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return wi(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(ln(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(ln(()=>this._overlayAttached)):at()).pipe(mt(e=>e instanceof x9?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return wi(ka(this._document,"click"),ka(this._document,"auxclick"),ka(this._document,"touchend")).pipe(ln(e=>{const i=Ms(e),r=this._formField?this._formField._elementRef.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=yo(e);if(27===i&&!r&&e.preventDefault(),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.openPanel(),(s||this.autocomplete._keyManager.activeItem!==o)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let i=e.target,r=i.value;"number"===i.type&&(r=""==r?null:parseFloat(r)),this._previousValue!==r&&(this._previousValue=r,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(r),r||this._clearPreviousSelectedOption(null,!1),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_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 wi(this._zone.onStable.pipe(En(1)),this.autocomplete.options.changes.pipe(Oi(()=>this._positionStrategy.reapplyLastPosition()),cI(0))).pipe(Qi(()=>(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._captureValueOnAttach(),this._emitOpened()):this.autocomplete.closed.emit())}),this.panelClosingActions)),En(1)).subscribe(r=>this._setValueAndClose(r))}_emitOpened(){this.autocomplete.opened.emit()}_captureValueOnAttach(){this._valueOnAttach=this._element.nativeElement.value}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(e){const i=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e;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(En(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)})}_attachOverlay(){let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new Kc(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})})),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const i=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this._captureValueOnAttach(),this.panelOpen&&i!==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 Cm({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&&bm(this._trackedModal,"aria-owns",i),o1(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){this._trackedModal&&(bm(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)}static#e=this.\u0275fac=function(i){return new(i||t)(y(Ue),y(wo),y(li),y(ze),y(an),y(kz),y(Er,8),y(J1,9),y(xt,8),y(oc),y(Cz,8))};static#t=this.\u0275dir=J({type:t,inputs:{autocomplete:[ue.None,"matAutocomplete","autocomplete"],position:[ue.None,"matAutocompletePosition","position"],connectedTo:[ue.None,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[ue.None,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[ue.None,"matAutocompleteDisabled","autocompleteDisabled"]},features:[Wn]})}return t})(),Ez=(()=>{class t extends Hye{constructor(){super(...arguments),this._aboveClass="mat-mdc-autocomplete-panel-above"}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ot(t)))(r||t)}})();static#t=this.\u0275dir=J({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(i,r){1&i&&H("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&&vt("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")},exportAs:["matAutocompleteTrigger"],features:[rt([Vye]),ke]})}return t})(),jye=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({providers:[zye],imports:[Fu,f1,Ft,Zr,Yc,f1,Ft]})}return t})();const Tz=Ca({passive:!0});let $ye=(()=>{class t{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return os;const i=Li(e),r=this._monitoredElements.get(i);if(r)return r.subject;const o=new Re,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,Tz),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:o,unlisten:()=>{i.removeEventListener("animationstart",a,Tz)}}),o}stopMonitoring(e){const i=Li(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)(X(zn),X(ze))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Gye=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({})}return t})();const Wye=new ee("MAT_INPUT_VALUE_ACCESSOR"),qye=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Qye=0;const Kye=f9(class{constructor(t,n,e,i){this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=e,this.ngControl=i,this.stateChanges=new Re}});let md=(()=>{class t extends Kye{get disabled(){return this._disabled}set disabled(e){this._disabled=Ke(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(Dm.required)??!1}set required(e){this._required=Ke(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&$U().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}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=Ke(e)}constructor(e,i,r,o,s,a,c,l,d,u){super(a,o,s,r),this._elementRef=e,this._platform=i,this._autofillMonitor=l,this._formField=u,this._uid="mat-input-"+Qye++,this.focused=!1,this.stateChanges=new Re,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=>$U().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._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)}_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(){qye.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)(y(Ue),y(zn),y(ac,10),y(zu,8),y(fd,8),y(m9),y(Wye,10),y($ye),y(ze),y(J1,8))};static#t=this.\u0275dir=J({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&&H("focus",function(){return r._focusChanged(!0)})("blur",function(){return r._focusChanged(!1)})("input",function(){return r._onInput()}),2&i&&(Xa("id",r.id)("disabled",r.disabled)("required",r.required),vt("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),st("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:[ue.None,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[rt([{provide:Z1,useExisting:t}]),ke,Wn]})}return t})(),Xye=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({imports:[Ft,ew,ew,Gye,Ft]})}return t})();function Yye(t,n){if(1&t&&(_(0,"mat-label"),k(1),b()),2&t){const e=P();w(),nt(e.binding.title)}}function Zye(t,n){if(1&t){const e=De();_(0,"button",7),H("click",function(){return j(e),G(P().clearInput())}),_(1,"mat-icon"),k(2,"close"),b()()}}function Jye(t,n){1&t&&(_(0,"mat-option",8),we(1,"mat-spinner",9),b())}function exe(t,n){if(1&t&&(_(0,"mat-option",10)(1,"span",11),k(2),b(),k(3),b()),2&t){const e=n.$implicit;E("value",e),w(2),nt(e.code),w(),Je("",e.display," ")}}let s0=(()=>{class t{static#e=this.nextId=0;constructor(e){this.terminologyService=e,this.term="",this.selectionChange=new Se,this.formControl=new bbe,this.loading=!1,this.selectedConcept={},this.stateChanges=new Re,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(Gc(300),rc(),Qi(e=>e?.length>=3?(this.loading=!0,this.terminologyService.expandValueSet(this.binding.ecl,e,0,50)):at([])),Oi(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)(y(Jr))};static#n=this.\u0275cmp=Ge({type:t,selectors:[["app-autocomplete-binding"]],inputs:{binding:"binding",term:"term"},outputs:{selectionChange:"selectionChange"},features:[rt([{provide:eo,useExisting:hn(()=>t),multi:!0},{provide:Z1,useExisting:t}]),Wn],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=De();_(0,"mat-form-field"),W(1,Yye,2,1,"mat-label",1),we(2,"input",2),_(3,"mat-hint"),k(4),b(),W(5,Zye,3,0,"button",3),_(6,"mat-autocomplete",4,0),H("optionSelected",function(a){return j(o),G(r.change(a))}),W(8,Jye,2,0,"mat-option",5)(9,exe,4,3,"mat-option",6),go(10,"async"),b()()}if(2&i){let o;const s=Nt(7);w(),E("ngIf",r.binding.title),w(),Wf("placeholder",(null==r.formControl.value?null:r.formControl.value.display)||r.binding.title||"Search..."),E("formControl",r.formControl)("matAutocomplete",s),w(2),nt(r.binding.note),w(),E("ngIf",r.formControl.value),w(3),E("ngIf",r.loading),w(),E("ngForOf",null==(o=Ya(10,8,r.autoFilter))||null==o.expansion?null:o.expansion.contains)}},dependencies:[_o,si,Ks,Co,Ea,Fs,ju,mz,Bye,rd,Ez,od,md,Xs,cs,q1,wD],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 txe(t,n){1&t&&we(0,"mat-spinner",20)}function nxe(t,n){1&t&&(_(0,"th",21),k(1," Date "),b())}function ixe(t,n){if(1&t&&(_(0,"td",22),k(1),go(2,"date"),b()),2&t){const e=n.$implicit;w(),Je(" ",yu(2,1,e.date,"yyyy-MM-dd")," ")}}function rxe(t,n){1&t&&(_(0,"th",21),k(1," ConceptId "),b())}function oxe(t,n){if(1&t&&(_(0,"td",22),k(1),b()),2&t){const e=n.$implicit;w(),Je(" ",e.code," ")}}function sxe(t,n){1&t&&(_(0,"th",21),k(1," Term "),b())}function axe(t,n){1&t&&(_(0,"span",24),k(1,"Allergy / Intolerance condition"),b())}function cxe(t,n){if(1&t&&(_(0,"td",22),W(1,axe,2,0,"span",23),k(2),b()),2&t){const e=n.$implicit;w(),E("ngIf",e.allergy),w(),Je(" ",e.display," ")}}function lxe(t,n){1&t&&we(0,"tr",25)}function dxe(t,n){1&t&&we(0,"tr",26)}function uxe(t,n){1&t&&(_(0,"th",21),k(1," ConceptId "),b())}function hxe(t,n){if(1&t&&(_(0,"td",22),k(1),b()),2&t){const e=n.$implicit;w(),Je(" ",e.code," ")}}function fxe(t,n){1&t&&(_(0,"th",21),k(1," Term "),b())}function mxe(t,n){if(1&t&&(_(0,"td",22),k(1),b()),2&t){const e=n.$implicit;w(),Je(" ",e.display," ")}}function pxe(t,n){1&t&&we(0,"tr",25)}function gxe(t,n){1&t&&we(0,"tr",26)}const _xe=[],vxe=[];let Sz=(()=>{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=[..._xe],this.dataSource=new bxe(this.dataToDisplay),this.loading=!1,this.displayedColumns2=["code","display"],this.dataToDisplay2=[...vxe],this.dataSource2=new yxe(this.dataToDisplay2)}updateProblem(e){var i=this;return fe(function*(){i.selectedProblemSct=e})()}addProblem(e){var i=this;return fe(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 fe(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 fe(function*(){return bo((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 fe(function*(){return bo((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)(y(Jr))};static#t=this.\u0275cmp=Ge({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=De();_(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),H("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),H("selectionChange",function(a){return j(o),G(r.updateProblem(a))}),b()(),_(31,"div",8)(32,"button",10),H("click",function(){return j(o),G(r.addProblem())}),k(33,"Add problem"),b()(),_(34,"div",8),W(35,txe,1,0,"mat-spinner",11),b()(),_(36,"table",12),Gt(37,13),W(38,nxe,2,0,"th",14)(39,ixe,3,4,"td",15),Wt(),Gt(40,16),W(41,rxe,2,0,"th",14)(42,oxe,2,1,"td",15),Wt(),Gt(43,17),W(44,sxe,2,0,"th",14)(45,cxe,3,2,"td",15),Wt(),W(46,lxe,1,0,"tr",18)(47,dxe,1,0,"tr",19),b()(),_(48,"div",3)(49,"h4"),k(50,"Substances the patient is allergic to:"),b(),_(51,"table",12),Gt(52,16),W(53,uxe,2,0,"th",14)(54,hxe,2,1,"td",15),Wt(),Gt(55,17),W(56,fxe,2,0,"th",14)(57,mxe,2,1,"td",15),Wt(),W(58,pxe,1,0,"tr",18)(59,gxe,1,0,"tr",19),b()()()()}if(2&i){const o=Nt(9);w(5),E("matMenuTriggerFor",o),w(5),E("disableRipple",!0),w(20),E("binding",r.problemBinding)("term",r.term),w(5),E("ngIf",r.loading),w(),E("dataSource",r.dataSource),w(10),E("matHeaderRowDef",r.displayedColumns),w(),E("matRowDefColumns",r.displayedColumns),w(4),E("dataSource",r.dataSource2),w(7),E("matHeaderRowDef",r.displayedColumns2),w(),E("matRowDefColumns",r.displayedColumns2)}},dependencies:[si,xo,Ks,Co,Nu,sc,Lu,od,dI,sd,tl,ad,nl,el,cd,il,rl,ld,dd,s0,Tu],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 bxe extends Wx{constructor(n){super(),this._dataStream=new E2,this.setData(n)}connect(){return this._dataStream}disconnect(){}setData(n){this._dataStream.next(n)}}class yxe extends Wx{constructor(n){super(),this._dataStream=new E2,this.setData(n)}connect(){return this._dataStream}disconnect(){}setData(n){this._dataStream.next(n)}}const xxe=t=>({animationDuration:t}),wxe=(t,n)=>({value:t,params:n});function Cxe(t,n){}const Dz=["*"];function kxe(t,n){1&t&&dt(0)}const Exe=["tabListContainer"],Txe=["tabList"],Sxe=["tabListInner"],Dxe=["nextPaginator"],Ixe=["previousPaginator"],Axe=["tabBodyWrapper"],Mxe=["tabHeader"];function Rxe(t,n){}function Pxe(t,n){1&t&&W(0,Rxe,0,0,"ng-template",14),2&t&&E("cdkPortalOutlet",P().$implicit.templateLabel)}function Fxe(t,n){1&t&&k(0),2&t&&nt(P().$implicit.textLabel)}function Oxe(t,n){if(1&t){const e=De();_(0,"div",8,2),H("click",function(){const r=j(e),o=r.$implicit,s=r.index,a=P(),c=Nt(1);return G(a._handleClick(o,c,s))})("cdkFocusChange",function(r){const o=j(e).index;return G(P()._tabFocusChanged(r,o))}),we(2,"span",9)(3,"div",10),_(4,"span",11)(5,"span",12),W(6,Pxe,1,1,"ng-template",13)(7,Fxe,1,1,"ng-template",null,3,xu),b()()()}if(2&t){const e=n.$implicit,i=n.index,r=Nt(1),o=Nt(8),s=P();st("mdc-tab--active",s.selectedIndex===i),E("id",s._getTabLabelId(i))("ngClass",e.labelClass)("disabled",e.disabled)("fitInkBarToContent",s.fitInkBarToContent),vt("tabIndex",s._getTabIndex(i))("aria-posinset",i+1)("aria-setsize",s._tabs.length)("aria-controls",s._getTabContentId(i))("aria-selected",s.selectedIndex===i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),w(3),E("matRippleTrigger",r)("matRippleDisabled",e.disabled||s.disableRipple),w(3),E("ngIf",e.templateLabel)("ngIfElse",o)}}function Nxe(t,n){if(1&t){const e=De();_(0,"mat-tab-body",15),H("_onCentered",function(){return j(e),G(P()._removeTabBodyWrapperHeight())})("_onCentering",function(r){return j(e),G(P()._setTabBodyWrapperHeight(r))}),b()}if(2&t){const e=n.$implicit,i=n.index,r=P();st("mat-mdc-tab-body-active",r.selectedIndex===i),E("id",r._getTabContentId(i))("ngClass",e.bodyClass)("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),vt("tabindex",null!=r.contentTabIndex&&r.selectedIndex===i?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(i))("aria-hidden",r.selectedIndex!==i)}}const Lxe={translateTab:Kn("translateTab",[pn("center, void, left-origin-center, right-origin-center",We({transform:"none"})),pn("left",We({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),pn("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 Bxe=(()=>{class t extends Xc{constructor(e,i,r,o){super(e,i,o),this._host=r,this._centeringSub=$t.EMPTY,this._leavingSub=$t.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)(y(hu),y(li),y(hn(()=>Iz)),y(xt))};static#t=this.\u0275dir=J({type:t,selectors:[["","matTabBodyHost",""]],features:[ke]})}return t})(),Vxe=(()=>{class t{set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(e,i,r){this._elementRef=e,this._dir=i,this._dirChangeSubscription=$t.EMPTY,this._translateTabComplete=new Re,this._onCentering=new Se,this._beforeCentering=new Se,this._afterLeavingCenter=new Se,this._onCentered=new Se(!0),this.animationDuration="500ms",this.preserveContent=!1,i&&(this._dirChangeSubscription=i.change.subscribe(o=>{this._computePositionAnimationState(o),r.markForCheck()})),this._translateTabComplete.pipe(rc((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)(y(Ue),y(Er,8),y(an))};static#t=this.\u0275dir=J({type:t,inputs:{_content:[ue.None,"content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}})}return t})(),Iz=(()=>{class t extends Vxe{constructor(e,i,r){super(e,i,r)}static#e=this.\u0275fac=function(i){return new(i||t)(y(Ue),y(Er,8),y(an))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["mat-tab-body"]],viewQuery:function(i,r){if(1&i&&pt(Xc,5),2&i){let o;Pe(o=Fe())&&(r._portalHost=o.first)}},hostAttrs:[1,"mat-mdc-tab-body"],features:[ke],decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(i,r){if(1&i){const o=De();_(0,"div",1,0),H("@translateTab.start",function(a){return j(o),G(r._onTranslateTabStarted(a))})("@translateTab.done",function(a){return j(o),G(r._translateTabComplete.next(a))}),W(2,Cxe,0,0,"ng-template",2),b()}2&i&&E("@translateTab",zS(3,wxe,r._position,_a(1,xxe,r.animationDuration)))},dependencies:[Bxe],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:[Lxe.translateTab]}})}return t})();const Uxe=new ee("MatTabContent");let zxe=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(y(Un))};static#t=this.\u0275dir=J({type:t,selectors:[["","matTabContent",""]],features:[rt([{provide:Uxe,useExisting:t}])]})}return t})();const Hxe=new ee("MatTabLabel"),Az=new ee("MAT_TAB");let jxe=(()=>{class t extends W_e{constructor(e,i,r){super(e,i),this._closestTab=r}static#e=this.\u0275fac=function(i){return new(i||t)(y(Un),y(li),y(Az,8))};static#t=this.\u0275dir=J({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[rt([{provide:Hxe,useExisting:t}]),ke]})}return t})();const VI="mdc-tab-indicator--active",Mz="mdc-tab-indicator--no-transition";class $xe{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}}}function Gxe(t){return class extends t{constructor(...n){super(...n),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(n){const e=Ke(n);this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(n){const e=this.elementRef.nativeElement;if(!n||!e.getBoundingClientRect||!this._inkBarContentElement)return void e.classList.add(VI);const i=e.getBoundingClientRect(),r=n.width/i.width,o=n.left-i.left;e.classList.add(Mz),this._inkBarContentElement.style.setProperty("transform",`translateX(${o}px) scaleX(${r})`),e.getBoundingClientRect(),e.classList.remove(Mz),e.classList.add(VI),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove(VI)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const n=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=n.createElement("span"),this._inkBarContentElement=n.createElement("span"),this._inkBarElement.className="mdc-tab-indicator",this._inkBarContentElement.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",this._inkBarElement.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this.elementRef.nativeElement.querySelector(".mdc-tab__content"):this.elementRef.nativeElement).appendChild(this._inkBarElement)}}}const qxe=Wc(class{}),Qxe=Gxe((()=>{class t extends qxe{constructor(e){super(),this.elementRef=e}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)(y(Ue))};static#t=this.\u0275dir=J({type:t,features:[ke]})}return t})());let Rz=(()=>{class t extends Qxe{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ot(t)))(r||t)}})();static#t=this.\u0275dir=J({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(i,r){2&i&&(vt("aria-disabled",!!r.disabled),st("mat-mdc-tab-disabled",r.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[ke]})}return t})();const Kxe=Wc(class{}),Pz=new ee("MAT_TAB_GROUP");let Xxe=(()=>{class t extends Kxe{get content(){return this._contentPortal}constructor(e,i){super(),this._viewContainerRef=e,this._closestTabGroup=i,this.textLabel="",this._contentPortal=null,this._stateChanges=new Re,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 Kc(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)(y(li),y(Pz,8))};static#t=this.\u0275dir=J({type:t,viewQuery:function(i,r){if(1&i&&pt(Un,7),2&i){let o;Pe(o=Fe())&&(r._implicitContent=o.first)}},inputs:{textLabel:[ue.None,"label","textLabel"],ariaLabel:[ue.None,"aria-label","ariaLabel"],ariaLabelledby:[ue.None,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[ke,Wn]})}return t})(),tw=(()=>{class t extends Xxe{constructor(){super(...arguments),this._explicitContent=void 0}get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ot(t)))(r||t)}})();static#t=this.\u0275cmp=Ge({type:t,selectors:[["mat-tab"]],contentQueries:function(i,r,o){if(1&i&&(Kt(o,zxe,7,Un),Kt(o,jxe,5)),2&i){let s;Pe(s=Fe())&&(r._explicitContent=s.first),Pe(s=Fe())&&(r.templateLabel=s.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[rt([{provide:Az,useExisting:t}]),ke],ngContentSelectors:Dz,decls:1,vars:0,template:function(i,r){1&i&&(Nn(),W(0,kxe,1,0,"ng-template"))},encapsulation:2})}return t})();const Fz=Ca({passive:!0});let Jxe=(()=>{class t{get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=Ke(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=kr(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}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 Re,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Re,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Se,this.indexFocused=new Se,s.runOutsideAngular(()=>{ka(e.nativeElement,"mouseleave").pipe(Et(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){ka(this._previousPaginator.nativeElement,"touchstart",Fz).pipe(Et(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),ka(this._nextPaginator.nativeElement,"touchstart",Fz).pipe(Et(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:at("ltr"),i=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new H2(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(En(1)).subscribe(r),wi(e,i,this._items.changes,this._itemsResized()).pipe(Et(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?os:this._items.changes.pipe(wr(this._items),Qi(e=>new Fn(i=>this._ngZone.runOutsideAngular(()=>{const r=new ResizeObserver(o=>i.next(o));return e.forEach(o=>r.observe(o.elementRef.nativeElement)),()=>{r.disconnect()}}))),B2(1),ln(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(!yo(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(),$_(650,100).pipe(Et(wi(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)(y(Ue),y(an),y(oc),y(Er,8),y(ze),y(zn),y(Qn,8))};static#t=this.\u0275dir=J({type:t,inputs:{disablePagination:"disablePagination"}})}return t})(),e1e=(()=>{class t extends Jxe{get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Ke(e)}constructor(e,i,r,o,s,a,c){super(e,i,r,o,s,a,c),this._disableRipple=!1}_itemSelected(e){e.preventDefault()}static#e=this.\u0275fac=function(i){return new(i||t)(y(Ue),y(an),y(oc),y(Er,8),y(ze),y(zn),y(Qn,8))};static#t=this.\u0275dir=J({type:t,inputs:{disableRipple:"disableRipple"},features:[ke]})}return t})(),t1e=(()=>{class t extends e1e{constructor(e,i,r,o,s,a,c){super(e,i,r,o,s,a,c)}ngAfterContentInit(){this._inkBar=new $xe(this._items),super.ngAfterContentInit()}static#e=this.\u0275fac=function(i){return new(i||t)(y(Ue),y(an),y(oc),y(Er,8),y(ze),y(zn),y(Qn,8))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["mat-tab-header"]],contentQueries:function(i,r,o){if(1&i&&Kt(o,Rz,4),2&i){let s;Pe(s=Fe())&&(r._items=s)}},viewQuery:function(i,r){if(1&i&&(pt(Exe,7),pt(Txe,7),pt(Sxe,7),pt(Dxe,5),pt(Ixe,5)),2&i){let o;Pe(o=Fe())&&(r._tabListContainer=o.first),Pe(o=Fe())&&(r._tabList=o.first),Pe(o=Fe())&&(r._tabListInner=o.first),Pe(o=Fe())&&(r._nextPaginator=o.first),Pe(o=Fe())&&(r._previousPaginator=o.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(i,r){2&i&&st("mat-mdc-tab-header-pagination-controls-enabled",r._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==r._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[ke],ngContentSelectors:Dz,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=De();Nn(),_(0,"button",5,0),H("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())}),we(2,"div",6),b(),_(3,"div",7,1),H("keydown",function(a){return j(o),G(r._handleKeydown(a))}),_(5,"div",8,2),H("cdkObserveContent",function(){return j(o),G(r._onContentChanges())}),_(7,"div",9,3),dt(9),b()()(),_(10,"button",10,4),H("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())}),we(12,"div",6),b()}2&i&&(st("mat-mdc-tab-header-pagination-disabled",r._disableScrollBefore),E("matRippleDisabled",r._disableScrollBefore||r.disableRipple)("disabled",r._disableScrollBefore||null),w(3),st("_mat-animation-noopable","NoopAnimations"===r._animationMode),w(7),st("mat-mdc-tab-header-pagination-disabled",r._disableScrollAfter),E("matRippleDisabled",r._disableScrollAfter||r.disableRipple)("disabled",r._disableScrollAfter||null))},dependencies:[qc,KU],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0;--mdc-tab-indicator-active-indicator-height:2px;--mdc-tab-indicator-active-indicator-shape:0;--mdc-secondary-navigation-tab-container-height:48px}.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}.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 Oz=new ee("MAT_TABS_CONFIG");let n1e=0;const i1e=td(nd(class{constructor(t){this._elementRef=t}}),"primary");let r1e=(()=>{class t extends i1e{get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=Ke(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=kr(e,null)}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e+"")?e+"ms":e}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=kr(e,null)}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=Ke(e)}get preserveContent(){return this._preserveContent}set preserveContent(e){this._preserveContent=Ke(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){super(e),this._changeDetectorRef=i,this._animationMode=o,this._tabs=new Fl,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=$t.EMPTY,this._tabLabelSubscription=$t.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new Se,this.focusChange=new Se,this.animationDone=new Se,this.selectedTabChange=new Se(!0),this._groupId=n1e++,this.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",this.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,this.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,this.contentTabIndex=r?.contentTabIndex??null,this.preserveContent=!!r?.preserveContent}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 o1e;return i.index=e,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[e]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=wi(...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)(y(Ue),y(an),y(Oz,8),y(Qn,8))};static#t=this.\u0275dir=J({type:t,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[ke]})}return t})(),a0=(()=>{class t extends r1e{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=Ke(e),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(e){this._stretchTabs=Ke(e)}constructor(e,i,r,o){super(e,i,r,o),this._fitInkBarToContent=!1,this._stretchTabs=!0,this.fitInkBarToContent=!(!r||null==r.fitInkBarToContent)&&r.fitInkBarToContent,this.stretchTabs=!r||null==r.stretchTabs||r.stretchTabs}static#e=this.\u0275fac=function(i){return new(i||t)(y(Ue),y(an),y(Oz,8),y(Qn,8))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["mat-tab-group"]],contentQueries:function(i,r,o){if(1&i&&Kt(o,tw,5),2&i){let s;Pe(s=Fe())&&(r._allTabs=s)}},viewQuery:function(i,r){if(1&i&&(pt(Axe,5),pt(Mxe,5)),2&i){let o;Pe(o=Fe())&&(r._tabBodyWrapper=o.first),Pe(o=Fe())&&(r._tabHeader=o.first)}},hostAttrs:["ngSkipHydration","",1,"mat-mdc-tab-group"],hostVars:8,hostBindings:function(i,r){2&i&&(Wi("--mat-tab-animation-duration",r.animationDuration),st("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",disableRipple:"disableRipple",fitInkBarToContent:"fitInkBarToContent",stretchTabs:[ue.None,"mat-stretch-tabs","stretchTabs"]},exportAs:["matTabGroup"],features:[rt([{provide:Pz,useExisting:t}]),ke],decls:6,vars:7,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],["tabTextLabel",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination"],["class","mdc-tab mat-mdc-tab mat-mdc-focus-indicator","role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",3,"id","mdc-tab--active","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["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,"ngIf","ngIfElse"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","id","ngClass","content","position","origin","animationDuration","preserveContent"]],template:function(i,r){if(1&i){const o=De();_(0,"mat-tab-header",4,0),H("indexFocused",function(a){return j(o),G(r._focusChanged(a))})("selectFocusedIndex",function(a){return j(o),G(r.selectedIndex=a)}),W(2,Oxe,9,17,"div",5),b(),_(3,"div",6,1),W(5,Nxe,1,12,"mat-tab-body",7),b()}2&i&&(E("selectedIndex",r.selectedIndex||0)("disableRipple",r.disableRipple)("disablePagination",r.disablePagination),w(2),E("ngForOf",r._tabs),w(),st("_mat-animation-noopable","NoopAnimations"===r._animationMode),w(2),E("ngForOf",r._tabs))},dependencies:[ba,_o,si,Xc,qc,o_e,Iz,Rz,t1e],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 o1e{}let s1e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({imports:[Zr,Ft,Ru,id,r1,G2,Ft]})}return t})();var cc=ao(578);class a1e{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 UI=(()=>{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 a1e(e,this._document)}static#e=this.\u0275fac=function(i){return new(i||t)(X(xt))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const c1e=new ee("HighlightJs-Config");let nw=(()=>{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)(y(Ue),y(Ps,8),y(xt),y(c1e,8),y(ze))},t.\u0275dir=J({type:t,selectors:[["","highlight-js",""]],hostVars:2,hostBindings:function(e,i){2&e&&Wi("display","simple"===i.mode?"none":null)},inputs:{options:"options",lang:"lang",code:"code",mode:"mode"},exportAs:["highlightJs"],standalone:!0}),t})(),l1e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=wt({type:t}),t.\u0275inj=bt({imports:[BI]}),t})();const d1e=["trigger"],u1e=["panel"],h1e=[[["mat-select-trigger"]],"*"],f1e=["mat-select-trigger","*"];function m1e(t,n){if(1&t&&(_(0,"span",11),k(1),b()),2&t){const e=P();w(),nt(e.placeholder)}}function p1e(t,n){if(1&t&&(_(0,"span",15),k(1),b()),2&t){const e=P(2);w(),nt(e.triggerValue)}}function g1e(t,n){1&t&&dt(0,0,["*ngSwitchCase","true"])}function _1e(t,n){1&t&&(_(0,"span",12),W(1,p1e,2,1,"span",13)(2,g1e,1,0,"ng-content",14),b()),2&t&&(E("ngSwitch",!!P().customTrigger),w(2),E("ngSwitchCase",!0))}function v1e(t,n){if(1&t){const e=De();_(0,"div",16,1),H("@transformPanel.done",function(r){return j(e),G(P()._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){return j(e),G(P()._handleKeydown(r))}),dt(2,1),b()}if(2&t){const e=P();(function IB(t,n,e){ga(bs,Ka,Of(_e(),t,n,e),!0)})("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),E("ngClass",e.panelClass)("@transformPanel","showing"),vt("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const b1e={transformPanelWrap:Kn("transformPanelWrap",[Xt("* => void",g1("@transformPanel",[p1()],{optional:!0}))]),transformPanel:Kn("transformPanel",[pn("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 Nz=0;const Lz=new ee("mat-select-scroll-strategy"),x1e=new ee("MAT_SELECT_CONFIG"),w1e={provide:Lz,deps:[wo],useFactory:function y1e(t){return()=>t.scrollStrategies.reposition()}},C1e=new ee("MatSelectTrigger");class k1e{constructor(n,e){this.source=n,this.value=e}}const E1e=nd(V_(Wc(f9(class{constructor(t,n,e,i,r){this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=e,this._parentFormGroup=i,this.ngControl=r,this.stateChanges=new Re}}))));let T1e=(()=>{class t extends E1e{get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(Dm.required)??!1}set required(e){this._required=Ke(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=Ke(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=Ke(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 typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=kr(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}constructor(e,i,r,o,s,a,c,l,d,u,h,f,m,g){super(s,o,c,l,u),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=r,this._dir=a,this._parentFormField=d,this._liveAnnouncer=m,this._defaultOptions=g,this._panelOpen=!1,this._compareWith=(p,v)=>p===v,this._uid="mat-select-"+Nz++,this._triggerAriaLabelledBy=null,this._destroy=new Re,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Nz++,this._panelDoneAnimatingStream=new Re,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=em(()=>{const p=this.options;return p?p.changes.pipe(wr(p),Qi(()=>wi(...p.map(v=>v.onSelectionChange)))):this._ngZone.onStable.pipe(En(1),Qi(()=>this.optionSelectionChanges))}),this.openedChange=new Se,this._openedStream=this.openedChange.pipe(ln(p=>p),mt(()=>{})),this._closedStream=this.openedChange.pipe(ln(p=>!p),mt(()=>{})),this.selectionChange=new Se,this.valueChange=new Se,this._trackedModal=null,this.ngControl&&(this.ngControl.valueAccessor=this),null!=g?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=g.typeaheadDebounceInterval),this._scrollStrategyFactory=f,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}ngOnInit(){this._selectionModel=new w2(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(rc(),Et(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Et(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(wr(null),Et(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._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}_applyModalPanelOwnership(){const e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;const i=`${this.id}-panel`;this._trackedModal&&bm(this._trackedModal,"aria-owns",i),o1(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){this._trackedModal&&(bm(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())}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}_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&&!yo(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||yo(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(En(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)}_skipPredicate(e){return e.disabled}_initKeyManager(){this._keyManager=new i9(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=wi(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Et(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),wi(...this.options.map(i=>i._stateChanges)).pipe(Et(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=null;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)(y(oc),y(an),y(ze),y(m9),y(Ue),y(Er,8),y(zu,8),y(fd,8),y(J1,8),y(ac,10),ws("tabindex"),y(Lz),y(j2),y(x1e,8))};static#t=this.\u0275dir=J({type:t,viewQuery:function(i,r){if(1&i&&(pt(d1e,5),pt(u1e,5),pt(q9,5)),2&i){let o;Pe(o=Fe())&&(r.trigger=o.first),Pe(o=Fe())&&(r.panel=o.first),Pe(o=Fe())&&(r._overlayDir=o.first)}},inputs:{userAriaDescribedBy:[ue.None,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:[ue.None,"aria-label","ariaLabel"],ariaLabelledby:[ue.None,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[ke,Wn]})}return t})(),c0=(()=>{class t extends T1e{constructor(){super(...arguments),this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",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._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._skipPredicate=e=>!this.panelOpen&&e.disabled}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Et(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}open(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(e){const i=this.options.toArray()[e];if(i){const r=this.panel.nativeElement,o=w9(e,this.options,this.optionGroups),s=i._getHostElement();r.scrollTop=0===e&&1===o?0:C9(s.offsetTop,s.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new k1e(this,e)}_getOverlayWidth(e){return"auto"===this.panelWidth?(e instanceof oI?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=Ke(e),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ot(t)))(r||t)}})();static#t=this.\u0275cmp=Ge({type:t,selectors:[["mat-select"]],contentQueries:function(i,r,o){if(1&i&&(Kt(o,C1e,5),Kt(o,rd,5),Kt(o,q2,5)),2&i){let s;Pe(s=Fe())&&(r.customTrigger=s.first),Pe(s=Fe())&&(r.options=s),Pe(s=Fe())&&(r.optionGroups=s)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox","ngSkipHydration","",1,"mat-mdc-select"],hostVars:19,hostBindings:function(i,r){1&i&&H("keydown",function(s){return r._handleKeydown(s)})("focus",function(){return r._onFocus()})("blur",function(){return r._onBlur()}),2&i&&(vt("id",r.id)("tabindex",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()),st("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:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",panelWidth:"panelWidth",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matSelect"],features:[rt([{provide:Z1,useExisting:t},{provide:W2,useExisting:t}]),ke],ngContentSelectors:f1e,decls:11,vars:10,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value",3,"ngSwitch"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line",4,"ngSwitchCase"],["class","mat-mdc-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[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-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text",3,"ngSwitch"],["class","mat-mdc-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(i,r){if(1&i){const o=De();Nn(h1e),_(0,"div",2,0),H("click",function(){return j(o),G(r.toggle())}),_(3,"div",3),W(4,m1e,2,1,"span",4)(5,_1e,3,2,"span",5),b(),_(6,"div",6)(7,"div",7),Pl(),_(8,"svg",8),we(9,"path",9),b()()()(),W(10,v1e,3,9,"ng-template",10),H("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=Nt(1);w(3),E("ngSwitch",r.empty),vt("id",r._valueId),w(),E("ngSwitchCase",!0),w(),E("ngSwitchCase",!1),w(5),E("cdkConnectedOverlayPanelClass",r._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",r._scrollStrategy)("cdkConnectedOverlayOrigin",r._preferredOverlayOrigin||o)("cdkConnectedOverlayOpen",r.panelOpen)("cdkConnectedOverlayPositions",r._positions)("cdkConnectedOverlayWidth",r._overlayWidth)}},dependencies:[ba,a_,xD,y8,q9,oI],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)}.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 .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.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-invalid .mat-mdc-select-arrow{color:var(--mat-select-invalid-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{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);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}.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}'],encapsulation:2,data:{animation:[b1e.transformPanel]},changeDetection:0})}return t})(),S1e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({providers:[w1e],imports:[Zr,Fu,f1,Ft,Yc,ew,f1,Ft]})}return t})();const D1e=["tooltip"],Bz=new ee("mat-tooltip-scroll-strategy"),M1e={provide:Bz,deps:[wo],useFactory:function A1e(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},P1e=new ee("mat-tooltip-default-options",{providedIn:"root",factory:function R1e(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),Vz="tooltip-panel",Uz=Ca({passive:!0});let V1e=(()=>{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=Ke(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Ke(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=kr(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=kr(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._viewportMargin=8,this._cssClassPrefix="mat",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Re,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(Et(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Et(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,Uz)}),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 wm(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(Et(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 Ue)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(Et(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}-${Vz}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Et(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Et(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Et(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&27===o.keyCode&&!yo(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){return 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(En(1),Et(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}-${Vz}-`;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),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,Uz)})}_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){$a()};static#t=this.\u0275dir=J({type:t,inputs:{position:[ue.None,"matTooltipPosition","position"],positionAtOrigin:[ue.None,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[ue.None,"matTooltipDisabled","disabled"],showDelay:[ue.None,"matTooltipShowDelay","showDelay"],hideDelay:[ue.None,"matTooltipHideDelay","hideDelay"],touchGestures:[ue.None,"matTooltipTouchGestures","touchGestures"],message:[ue.None,"matTooltip","message"],tooltipClass:[ue.None,"matTooltipClass","tooltipClass"]}})}return t})(),$u=(()=>{class t extends V1e{constructor(e,i,r,o,s,a,c,l,d,u,h,f){super(e,i,r,o,s,a,c,l,d,u,h,f),this._tooltipComponent=z1e,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_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}static#e=this.\u0275fac=function(i){return new(i||t)(y(wo),y(Ue),y(G_),y(li),y(ze),y(zn),y(e9),y(Rs),y(Bz),y(Er,8),y(P1e,8),y(xt))};static#t=this.\u0275dir=J({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,r){2&i&&st("mat-mdc-tooltip-disabled",r.disabled)},exportAs:["matTooltip"],features:[ke]})}return t})(),U1e=(()=>{class t{constructor(e,i){this._changeDetectorRef=e,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Re,this._animationsDisabled="NoopAnimations"===i}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(){}_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)(y(an),y(Qn,8))};static#t=this.\u0275dir=J({type:t})}return t})(),z1e=(()=>{class t extends U1e{constructor(e,i,r){super(e,r),this._elementRef=i,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>24&&e.width>=200}static#e=this.\u0275fac=function(i){return new(i||t)(y(an),y(Ue),y(Qn,8))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(i,r){if(1&i&&pt(D1e,7),2&i){let o;Pe(o=Fe())&&(r._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(i,r){1&i&&H("mouseleave",function(s){return r._handleMouseLeave(s)}),2&i&&Wi("zoom",r.isVisible()?1:null)},features:[ke],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=De();_(0,"div",1,0),H("animationend",function(a){return j(o),G(r._handleAnimationEnd(a))}),_(2,"div",2),k(3),b()()}2&i&&(st("mdc-tooltip--multiline",r._isMultiline),E("ngClass",r.tooltipClass),w(3),nt(r.message))},dependencies:[ba],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-plain-tooltip-container-shape:4px;--mdc-plain-tooltip-supporting-text-line-height:16px}.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-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})(),H1e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({providers:[M1e],imports:[G2,Zr,Fu,Ft,Ft,Yc]})}return t})();const j1e=["switch"],$1e=["*"];function G1e(t,n){1&t&&(_(0,"div",12),Pl(),_(1,"svg",13),we(2,"path",14),b(),_(3,"svg",15),we(4,"path",16),b()())}const W1e=new ee("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1})}),q1e={provide:eo,useExisting:hn(()=>Hz),multi:!0};class zz{constructor(n,e){this.source=n,this.checked=e}}let Q1e=0;const K1e=V_(td(nd(Wc(class{constructor(t){this._elementRef=t}}))));let X1e=(()=>{class t extends K1e{get required(){return this._required}set required(e){this._required=Ke(e)}get checked(){return this._checked}set checked(e){this._checked=Ke(e),this._changeDetectorRef.markForCheck()}get hideIcon(){return this._hideIcon}set hideIcon(e){this._hideIcon=Ke(e)}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,i,r,o,s,a,c){super(e),this._focusMonitor=i,this._changeDetectorRef=r,this.defaults=s,this._onChange=l=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this._hideIcon=!1,this.change=new Se,this.toggleChange=new Se,this.tabIndex=parseInt(o)||0,this.color=this.defaultColor=s.color||"accent",this._noopAnimations="NoopAnimations"===a,this.id=this._uniqueId=`${c}${++Q1e}`,this._hideIcon=s.hideIcon??!1}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()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=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))}static#e=this.\u0275fac=function(i){$a()};static#t=this.\u0275dir=J({type:t,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[ue.None,"aria-label","ariaLabel"],ariaLabelledby:[ue.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[ue.None,"aria-describedby","ariaDescribedby"],required:"required",checked:"checked",hideIcon:"hideIcon"},outputs:{change:"change",toggleChange:"toggleChange"},features:[ke]})}return t})(),Hz=(()=>{class t extends X1e{get buttonId(){return`${this.id||this._uniqueId}-button`}constructor(e,i,r,o,s,a){super(e,i,r,o,s,a,"mat-mdc-slide-toggle-"),this._labelId=this._uniqueId+"-label"}_handleClick(){this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new zz(this,this.checked)))}focus(){this._switchElement.nativeElement.focus()}_createChangeEvent(e){return new zz(this,e)}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static#e=this.\u0275fac=function(i){return new(i||t)(y(Ue),y(Rs),y(an),ws("tabindex"),y(W1e),y(Qn,8))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(i,r){if(1&i&&pt(j1e,5),2&i){let o;Pe(o=Fe())&&(r._switchElement=o.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:11,hostBindings:function(i,r){2&i&&(Xa("id",r.id),vt("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),st("mat-mdc-slide-toggle-focused",r._focused)("mat-mdc-slide-toggle-checked",r.checked)("_mat-animation-noopable",r._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[rt([q1e]),ke],ngContentSelectors:$1e,decls:13,vars:25,consts:[["switch",""],[1,"mdc-form-field"],["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"],["class","mdc-switch__icons",4,"ngIf"],[1,"mdc-label",3,"click","for"],[1,"mdc-switch__icons"],["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=De();Nn(),_(0,"div",1)(1,"button",2,0),H("click",function(){return j(o),G(r._handleClick())}),we(3,"div",3),_(4,"div",4)(5,"div",5)(6,"div",6),we(7,"div",7),b(),_(8,"div",8),we(9,"div",9),b(),W(10,G1e,5,0,"div",10),b()()(),_(11,"label",11),H("click",function(a){return j(o),G(a.stopPropagation())}),dt(12),b()()}if(2&i){const o=Nt(2);st("mdc-form-field--align-end","before"==r.labelPosition),w(),st("mdc-switch--selected",r.checked)("mdc-switch--unselected",!r.checked)("mdc-switch--checked",r.checked)("mdc-switch--disabled",r.disabled),E("tabIndex",r.tabIndex)("disabled",r.disabled),vt("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),w(8),E("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),w(),E("ngIf",!r.hideIcon),w(),E("for",r.buttonId),vt("id",r._labelId)}},dependencies:[qc,si],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-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)}.mdc-switch{width:var(--mdc-switch-track-width);--mdc-switch-disabled-handle-opacity:0.38;--mdc-switch-disabled-selected-icon-opacity:0.38;--mdc-switch-disabled-track-opacity:0.12;--mdc-switch-disabled-unselected-icon-opacity:0.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-state-layer-size:40px;--mdc-switch-selected-focus-state-layer-opacity:0.12;--mdc-switch-selected-hover-state-layer-opacity:0.04;--mdc-switch-selected-pressed-state-layer-opacity:0.1;--mdc-switch-unselected-focus-state-layer-opacity:0.12;--mdc-switch-unselected-hover-state-layer-opacity:0.04;--mdc-switch-unselected-pressed-state-layer-opacity:0.1}.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:disabled .mdc-switch__handle::after{opacity:var(--mdc-switch-disabled-handle-opacity)}.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 .mdc-label{font-family:var(--mat-slide-toggle-label-text-font);font-size:var(--mat-slide-toggle-label-text-size);letter-spacing:var(--mat-slide-toggle-label-text-tracking);line-height:var(--mat-slide-toggle-label-text-line-height);font-weight:var(--mat-slide-toggle-label-text-weight)}.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}'],encapsulation:2,changeDetection:0})}return t})(),jz=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({})}return t})(),J1e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({imports:[jz,Ft,id,Zr,jz,Ft]})}return t})();function ewe(t,n){if(1&t){const e=De();_(0,"button",14),H("click",function(){j(e);const r=P().index;return G(P().removeReaction(r))}),_(1,"mat-icon"),k(2,"close"),b()()}}function twe(t,n){if(1&t){const e=De();_(0,"mat-option",15),H("click",function(){const r=j(e).$implicit,o=P().$implicit;return G(P().reactionSeveritySelected(o,r))}),k(1),b()}if(2&t){const e=n.$implicit;E("value",e),w(),nt(e.display)}}function nwe(t,n){if(1&t){const e=De();_(0,"div",4)(1,"div",5),W(2,ewe,3,0,"button",6),b(),_(3,"div",7)(4,"div",8)(5,"app-autocomplete-binding",9),H("selectionChange",function(r){const o=j(e).$implicit;return G(P().reactionManifestationSelected(o,r))}),b()(),_(6,"button",10)(7,"mat-icon"),k(8,"info"),b()(),_(9,"mat-menu",null,0)(11,"span",11),H("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"),W(20,twe,2,2,"mat-option",13),b()(),_(21,"div",7)(22,"div",8)(23,"app-autocomplete-binding",9),H("selectionChange",function(r){const o=j(e).$implicit;return G(P().reactionRouteSelected(o,r))}),b()(),_(24,"button",10)(25,"mat-icon"),k(26,"info"),b()(),_(27,"mat-menu",null,1)(29,"span",11),H("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=Nt(10),r=Nt(28),o=P();w(2),E("ngIf",e>0),w(3),E("binding",o.reactionManifestationBinding),w(),E("matMenuTriggerFor",i),w(5),E("disableRipple",!0),w(4),nt(o.reactionManifestationBinding.ecl),w(5),E("ngForOf",o.severityOptions),w(3),E("binding",o.routeBinding),w(),E("matMenuTriggerFor",r),w(5),E("disableRipple",!0),w(4),nt(o.routeBinding.ecl)}}let iwe=(()=>{class t{constructor(){this.reactions=[],this.newManifestation=new Se,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=Ge({type:t,selectors:[["app-allergies-allergy-list-reaction"]],inputs:{reactions:"reactions"},outputs:{newManifestation:"newManifestation"},features:[rt([{provide:eo,useExisting:hn(()=>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&&(W(0,nwe,34,10,"div",2),_(1,"div")(2,"button",3),H("click",function(){return r.addNewReaction()}),_(3,"mat-icon"),k(4,"add"),b()()()),2&i&&E("ngForOf",r.reactions)},dependencies:[_o,si,Ks,Co,Nu,sc,Lu,Ea,Fs,rd,c0,$u,s0],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 rwe=()=>({});function owe(t,n){if(1&t){const e=De();_(0,"mat-option",31),H("click",function(){return j(e),G(P().updateAllergyStr())}),k(1),b()}if(2&t){const e=n.$implicit;E("value",e),w(),nt(e.display)}}function swe(t,n){if(1&t){const e=De();_(0,"mat-option",31),H("click",function(){return j(e),G(P().updateAllergyStr())}),k(1),b()}if(2&t){const e=n.$implicit;E("value",e),w(),nt(e.display)}}function awe(t,n){if(1&t){const e=De();_(0,"mat-option",31),H("click",function(){return j(e),G(P().updateAllergyStr())}),k(1),b()}if(2&t){const e=n.$implicit;E("value",e),w(),nt(e.display)}}function cwe(t,n){if(1&t){const e=De();_(0,"app-autocomplete-binding",11),H("selectionChange",function(r){return j(e),G(P().substanceSelected(r,!0))}),b()}if(2&t){const e=P();E("binding",e.substanceBinding)("term",e.selectedSubstanceTerm)}}function lwe(t,n){if(1&t){const e=De();_(0,"app-autocomplete-binding",11),H("selectionChange",function(r){return j(e),G(P().substanceSelected(r))}),b()}if(2&t){const e=P();E("binding",e.refinedSubstanceBinding)("term",e.selectedSubstanceTerm)}}function dwe(t,n){if(1&t&&(_(0,"pre"),k(1),b()),2&t){const e=P();w(),nt(e.substanceBinding.ecl)}}function uwe(t,n){if(1&t&&(_(0,"pre"),k(1),b()),2&t){const e=P();w(),nt(e.refinedSubstanceBinding.ecl)}}function hwe(t,n){if(1&t){const e=De();_(0,"mat-option",31),H("click",function(){return j(e),G(P().updateAllergyStr())}),k(1),b()}if(2&t){const e=n.$implicit;E("value",e),w(),nt(e.display)}}function fwe(t,n){if(1&t){const e=De();_(0,"mat-option",31),H("click",function(){return j(e),G(P().updateAllergyStr())}),k(1),b()}if(2&t){const e=n.$implicit;E("value",e),w(),nt(e.display)}}let mwe=(()=>{class t{constructor(e,i,r){this.terminologyService=e,this.clipboard=i,this._snackBar=r,this.newProblem=new Se,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 ls(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 ls(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 fe(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 fe(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 fe(function*(){return bo((yield i.terminologyService.expandValueSet(`${e.code} |${e.display}| . 47429007 |Associated with (attribute)|`,"")).pipe(mt(o=>o)))})()}getAllergySubstance(e){var i=this;return fe(function*(){return bo((yield i.terminologyService.expandValueSet(`${e.code} |${e.display}| . 246075003 |Causative agent (attribute)|`,"")).pipe(mt(o=>o)))})()}getSubstanceCategories(e){var i=this;return fe(function*(){return bo((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 fe(function*(){return bo((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,cc.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(Ni,{duration:1e3,data:"Nothing to add to problem list",panelClass:["yellow-snackbar"]});this.clear()}static#e=this.\u0275fac=function(i){return new(i||t)(y(Jr),y(UI),y(km))};static#t=this.\u0275cmp=Ge({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=De();_(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),H("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),H("click",function(){return j(o),G(r.clear())}),k(31,"Clear"),b(),_(32,"div",9)(33,"div",10)(34,"app-autocomplete-binding",11),H("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),H("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),Lr("ngModelChange",function(a){return j(o),Yr(r.recordPropensity,a)||(r.recordPropensity=a),G(a)}),H("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),Lr("ngModelChange",function(a){return j(o),Yr(r.selectedIntoleranceType,a)||(r.selectedIntoleranceType=a),G(a)}),W(51,owe,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),Lr("ngModelChange",function(a){return j(o),Yr(r.selectedClinicalStatus,a)||(r.selectedClinicalStatus=a),G(a)}),W(57,swe,2,2,"mat-option",16),b()(),_(58,"mat-form-field",4)(59,"mat-label"),k(60,"Verification Status"),b(),_(61,"mat-select",15),Lr("ngModelChange",function(a){return j(o),Yr(r.selectedVerificationStatus,a)||(r.selectedVerificationStatus=a),G(a)}),W(62,awe,2,2,"mat-option",16),b()()(),_(63,"div",9)(64,"div",17),W(65,cwe,1,2,"app-autocomplete-binding",18)(66,lwe,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),H("click",function(a){return j(o),G(a.stopPropagation())}),_(73,"p"),k(74,"Terminology binding:"),b(),W(75,dwe,2,1,"pre",19)(76,uwe,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),W(82,hwe,2,2,"mat-option",16),b()(),_(83,"mat-form-field",4)(84,"mat-label"),k(85,"Allergy Criticality"),b(),_(86,"mat-select",15),Lr("ngModelChange",function(a){return j(o),Yr(r.selectedCriticality,a)||(r.selectedCriticality=a),G(a)}),W(87,fwe,2,2,"mat-option",16),b()()(),_(88,"app-allergies-allergy-list-reaction",21),Lr("ngModelChange",function(a){return j(o),Yr(r.selectedReactions,a)||(r.selectedReactions=a),G(a)}),H("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),H("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),H("click",function(){return j(o),G(r.saveFhirResource())}),we(100,"mat-icon",27),b(),_(101,"button",28),H("click",function(){return j(o),G(r.copyToClipboard(r.outputAllergyStr))}),we(102,"mat-icon",29),b()(),_(103,"textarea",30),k(104," "),b()()()()()}if(2&i){const o=Nt(9),s=Nt(39);w(5),E("matMenuTriggerFor",o),w(5),E("disableRipple",!0),w(24),E("binding",r.codeBinding)("term",r.selectedCodeTerm),w(),E("matMenuTriggerFor",s),w(5),E("disableRipple",!0),w(4),nt(r.codeBinding.ecl),w(),Nr("ngModel",r.recordPropensity),w(5),Nr("ngModel",r.selectedIntoleranceType),w(),E("ngForOf",r.intoleranceTypeOptions),w(5),Nr("ngModel",r.selectedClinicalStatus),w(),E("ngForOf",r.clinicalStatusOptions),w(4),Nr("ngModel",r.selectedVerificationStatus),w(),E("ngForOf",r.verificationStatusOptions),w(3),E("ngIf",!r.recordPropensity),w(),E("ngIf",r.recordPropensity),w(),E("matMenuTriggerFor",o),w(5),E("disableRipple",!0),w(3),E("ngIf",!r.recordPropensity),w(),E("ngIf",r.recordPropensity),w(5),E("formControl",r.selectedIntoleranceCategoriesControl)("multiple",!0),w(),E("ngForOf",r.intoleranceCategoryOptions),w(4),Nr("ngModel",r.selectedCriticality),w(),E("ngForOf",r.criticalityOptions),w(),Nr("ngModel",r.selectedReactions),w(15),E("options",Ds(29,rwe))("lang","json")("innerHTML",r.outputAllergyStr,du)}},dependencies:[_o,si,nw,xo,Ks,Co,Nu,sc,Lu,Ea,Fs,rd,cs,q1,dI,c0,Ps,$u,Hz,s0,iwe],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})(),$z=(()=>{class t{constructor(e){this._snackBar=e}addProblem(e){var i=this;return fe(function*(){i.allergiesProblemListComponent.addProblem(e),i._snackBar.openFromComponent(Ni,{duration:1e3,data:"Problem list updated",panelClass:["green-snackbar"]})})()}static#e=this.\u0275fac=function(i){return new(i||t)(y(km))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["app-allergies"]],viewQuery:function(i,r){if(1&i&&pt(Sz,5),2&i){let o;Pe(o=Fe())&&(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=De();_(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),H("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),H("newProblem",function(a){return j(o),G(r.addProblem(a))}),b()(),_(29,"mat-tab",8),we(30,"app-allergies-problem-list"),b()()()}if(2&i){const o=Nt(7);w(3),E("matMenuTriggerFor",o),w(5),E("disableRipple",!0)}},dependencies:[Ks,Co,Nu,sc,Lu,tw,a0,Sz,mwe],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 zI(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 Mm(t,n){const e=n?"":"none";zI(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 Gz(t,n,e){zI(t.style,{position:n?"":"fixed",top:n?"":"0",opacity:n?"":"0",left:n?"":"-999em"},e)}function iw(t,n){return n&&"none"!=n?t+" "+n:t}function Wz(t){const n=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*n}function HI(t,n){return t.getPropertyValue(n).split(",").map(i=>i.trim())}function jI(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 $I(t,n,e){const{top:i,bottom:r,left:o,right:s}=t;return e>=i&&e<=r&&n>=o&&n<=s}function l0(t,n,e){t.top+=n,t.bottom=t.top+t.height,t.left+=e,t.right=t.left+t.width}function qz(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:jI(e)})})}handleScroll(n){const e=Ms(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)&&l0(l.clientRect,a,c)}),r.top=o,r.left=s,{top:a,left:c}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function Kz(t){const n=t.cloneNode(!0),e=n.querySelectorAll("[id]"),i=t.nodeName.toLowerCase();n.removeAttribute("id");for(let r=0;rMm(i,e)))}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 Re,this._pointerMoveSubscription=$t.EMPTY,this._pointerUpSubscription=$t.EMPTY,this._scrollSubscription=$t.EMPTY,this._resizeSubscription=$t.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 Re,this.started=new Re,this.released=new Re,this.ended=new Re,this.entered=new Re,this.exited=new Re,this.dropped=new Re,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._initialClientRect: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 Qz(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=>Li(i)),this._handles.forEach(i=>Mm(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=Li(n);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,rw),e.addEventListener("touchstart",this._pointerDown,Jz),e.addEventListener("dragstart",this._nativeDragStart,rw)}),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?Li(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),Mm(n,!0))}enableHandle(n){this._disabledHandles.has(n)&&(this._disabledHandles.delete(n),Mm(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){d0(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(),Gz(i,!1,GI),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=d0(e),o=!r&&0!==e.button,s=this._rootElement,a=Ms(e),c=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),l=r?d1(e):l1(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._initialClientRect=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=jI(this._boundaryElement));const d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,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){Gz(this._rootElement,!0,GI),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=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._initialClientRect:null,s=n.viewContainer.createEmbeddedView(i,n.context);s.detectChanges(),r=tH(s,this._document),this._previewRef=s,n.matchSize?nH(r,o):r.style.transform=ow(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=Kz(this._rootElement),nH(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return zI(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},GI),Mm(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 gwe(t){const n=getComputedStyle(t),e=HI(n,"transition-property"),i=e.find(a=>"transform"===a||"all"===a);if(!i)return 0;const r=e.indexOf(i),o=HI(n,"transition-duration"),s=HI(n,"transition-delay");return Wz(o[r])+Wz(s[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{const r=s=>{(!s||Ms(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=tH(this._placeholderRef,this._document)):i=Kz(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=d0(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=d0(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._initialClientRect,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=eH(i,a.left+o,a.right-(c-o)),r=eH(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,Mm(this._rootElement,n))}_removeRootElementListeners(n){n.removeEventListener("mousedown",this._pointerDown,rw),n.removeEventListener("touchstart",this._pointerDown,Jz),n.removeEventListener("dragstart",this._nativeDragStart,rw)}_applyRootElementTransform(n,e){const i=ow(n,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=iw(i,this._initialTransform)}_applyPreviewTransform(n,e){const i=this._previewTemplate?.template?void 0:this._initialTransform,r=ow(n,e);this._preview.style.transform=iw(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:d0(n)?e.touch:e?e.mouse:0}_updateOnScroll(n){const e=this._parentPositions.handleScroll(n);if(e){const i=Ms(n);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&l0(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=P2(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 Li(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(n){return this._handles.find(e=>n.target&&(n.target===e||e.contains(n.target)))}}function ow(t,n){return`translate3d(${Math.round(t)}px, ${Math.round(n)}px, 0)`}function eH(t,n,e){return Math.max(n,Math.min(e,t))}function d0(t){return"t"===t.type[0]}function tH(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 nH(t,n){t.style.width=`${n.width}px`,t.style.height=`${n.height}px`,t.style.transform=ow(n.left,n.top)}function WI(t,n,e){const i=u0(n,t.length-1),r=u0(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 WI(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=iw(`translate3d(${Math.round(p.offset)}px, 0, 0)`,p.initialTransform),l0(p.clientRect,0,C)):(D.style.transform=iw(`translate3d(0, ${Math.round(p.offset)}px, 0)`,p.initialTransform),l0(p.clientRect,C,0))}),this._previousSwap.overlaps=$I(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 Li(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})=>{l0(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:jI(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 Re,this.entered=new Re,this.exited=new Re,this.dropped=new Re,this.sorted=new Re,this.receivingStarted=new Re,this.receivingStopped=new Re,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=$t.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Re,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function pwe(t=0,n=O_){return t<0&&(t=0),$_(t,t,n)}(0,F9).pipe(Et(this._stopScrollTimers)).subscribe(()=>{const s=this._scrollNode,a=this.autoScrollStep;1===this._verticalScrollDirection?s.scrollBy(0,-a):2===this._verticalScrollDirection&&s.scrollBy(0,a),1===this._horizontalScrollDirection?s.scrollBy(-a,0):2===this._horizontalScrollDirection&&s.scrollBy(a,0)})},this.element=Li(n),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new Qz(i),this._sortStrategy=new ywe(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=Li(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._clientRect||!qz(this._clientRect,.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=0,o=0;if(this._parentPositions.positions.forEach((s,a)=>{a===this._document||!s.clientRect||i||qz(s.clientRect,.05,n,e)&&([r,o]=function wwe(t,n,e,i){const r=oH(n,i),o=sH(n,e);let s=0,a=0;if(r){const c=t.scrollTop;1===r?c>0&&(s=1):t.scrollHeight-c>t.clientHeight&&(s=2)}if(o){const c=t.scrollLeft;1===o?c>0&&(a=1):t.scrollWidth-c>t.clientWidth&&(a=2)}return[s,a]}(a,s.clientRect,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=oH(c,e),o=sH(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=Li(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=Li(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(n).clientRect}_reset(){this._isDragging=!1;const n=Li(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._clientRect&&$I(this._clientRect,n,e)}_getSiblingContainerFromPosition(n,e,i){return this._siblings.find(r=>r._canReceive(n,e,i))}_canReceive(n,e,i){if(!this._clientRect||!$I(this._clientRect,e,i)||!this.enterPredicate(n,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,i);if(!r)return!1;const o=Li(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=P2(Li(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 oH(t,n){const{top:e,bottom:i,height:r}=t,o=.05*r;return n>=e-o&&n<=e+o?1:n>=i-o&&n<=i+o?2:0}function sH(t,n){const{left:e,right:i,width:r}=t,o=.05*r;return n>=e-o&&n<=e+o?1:n>=i-o&&n<=i+o?2:0}const sw=Ca({passive:!1,capture:!0});let Cwe=(()=>{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 Re,this.pointerUp=new Re,this.scroll=new Re,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,sw)})}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,sw)}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:sw}),r||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:sw}),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 Fn(r=>this._ngZone.runOutsideAngular(()=>{const s=a=>{this._activeDragInstances.length&&r.next(a)};return e.addEventListener("scroll",s,!0),()=>{e.removeEventListener("scroll",s,!0)}}))),wi(...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)(X(ze),X(xt))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const kwe={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let qI=(()=>{class t{constructor(e,i,r,o){this._document=e,this._ngZone=i,this._viewportRuler=r,this._dragDropRegistry=o}createDrag(e,i=kwe){return new bwe(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new xwe(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static#e=this.\u0275fac=function(i){return new(i||t)(X(xt),X(ze),X(oc),X(Cwe))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const QI=new ee("CDK_DRAG_PARENT"),KI=new ee("CdkDragHandle");let aH=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=Ke(e),this._stateChanges.next(this)}constructor(e,i){this.element=e,this._stateChanges=new Re,this._disabled=!1,this._parentDrag=i}ngOnDestroy(){this._stateChanges.complete()}static#e=this.\u0275fac=function(i){return new(i||t)(y(Ue),y(QI,12))};static#t=this.\u0275dir=J({type:t,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:[ue.None,"cdkDragHandleDisabled","disabled"]},standalone:!0,features:[rt([{provide:KI,useExisting:t}])]})}return t})();const cH=new ee("CdkDragPlaceholder"),lH=new ee("CdkDragPreview"),dH=new ee("CDK_DRAG_CONFIG"),uH=new ee("CdkDropList");let XI=(()=>{class t{static#e=this._dragInstances=[];get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=Ke(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 Re,this.started=new Se,this.released=new Se,this.ended=new Se,this.entered=new Se,this.exited=new Se,this.dropped=new Se,this.moved=new Fn(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(En(1),Et(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._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_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):Li(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:kr(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(En(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.changes.pipe(wr(this._handles),Oi(e=>{const i=e.filter(r=>r._parentDrag===this).map(r=>r.element);this._selfHandle&&this.rootElementSelector&&i.push(this.element),this._dragRef.withHandles(i)}),Qi(e=>wi(...e.map(i=>i._stateChanges.pipe(wr(i))))),Et(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)(y(Ue),y(uH,12),y(xt),y(ze),y(li),y(dH,8),y(Er,8),y(qI),y(an),y(KI,10),y(QI,12))};static#n=this.\u0275dir=J({type:t,selectors:[["","cdkDrag",""]],contentQueries:function(i,r,o){if(1&i&&(Kt(o,lH,5),Kt(o,cH,5),Kt(o,KI,5)),2&i){let s;Pe(s=Fe())&&(r._previewTemplate=s.first),Pe(s=Fe())&&(r._placeholderTemplate=s.first),Pe(s=Fe())&&(r._handles=s)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(i,r){2&i&&st("cdk-drag-disabled",r.disabled)("cdk-drag-dragging",r._dragRef.isDragging())},inputs:{data:[ue.None,"cdkDragData","data"],lockAxis:[ue.None,"cdkDragLockAxis","lockAxis"],rootElementSelector:[ue.None,"cdkDragRootElement","rootElementSelector"],boundaryElement:[ue.None,"cdkDragBoundary","boundaryElement"],dragStartDelay:[ue.None,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[ue.None,"cdkDragFreeDragPosition","freeDragPosition"],disabled:[ue.None,"cdkDragDisabled","disabled"],constrainPosition:[ue.None,"cdkDragConstrainPosition","constrainPosition"],previewClass:[ue.None,"cdkDragPreviewClass","previewClass"],previewContainer:[ue.None,"cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],standalone:!0,features:[rt([{provide:QI,useExisting:t}]),Wn]})}return t})();const YI=new ee("CdkDropListGroup");let Iwe=0,ZI=(()=>{class t{static#e=this._dropLists=[];get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=Ke(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 Re,this.connectedTo=[],this.id="cdk-drop-list-"+Iwe++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new Se,this.entered=new Se,this.exited=new Se,this.sorted=new Se,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),Et(this._destroyed)).subscribe(i=>e.withDirection(i)),e.beforeStarted.subscribe(()=>{const i=N_(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=Ke(this.sortingDisabled),e.autoScrollDisabled=Ke(this.autoScrollDisabled),e.autoScrollStep=kr(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()}),wi(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)(y(Ue),y(qI),y(an),y(G_),y(Er,8),y(YI,12),y(dH,8))};static#n=this.\u0275dir=J({type:t,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(i,r){2&i&&(vt("id",r.id),st("cdk-drop-list-disabled",r.disabled)("cdk-drop-list-dragging",r._dropListRef.isDragging())("cdk-drop-list-receiving",r._dropListRef.isReceiving()))},inputs:{connectedTo:[ue.None,"cdkDropListConnectedTo","connectedTo"],data:[ue.None,"cdkDropListData","data"],orientation:[ue.None,"cdkDropListOrientation","orientation"],id:"id",lockAxis:[ue.None,"cdkDropListLockAxis","lockAxis"],disabled:[ue.None,"cdkDropListDisabled","disabled"],sortingDisabled:[ue.None,"cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:[ue.None,"cdkDropListEnterPredicate","enterPredicate"],sortPredicate:[ue.None,"cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:[ue.None,"cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:[ue.None,"cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],standalone:!0,features:[rt([{provide:YI,useValue:void 0},{provide:uH,useExisting:t}])]})}return t})(),Awe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({providers:[qI],imports:[Yc]})}return t})();function Mwe(t,n){}class aw{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 hH=(()=>{class t extends _1{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._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],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)}_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=Jx(),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=Jx();return e===i||e.contains(i)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Jx())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static#e=this.\u0275fac=function(i){return new(i||t)(y(Ue),y(c1),y(xt,8),y(aw),y(L_),y(ze),y(W_),y(Rs))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(i,r){if(1&i&&pt(Xc,7),2&i){let o;Pe(o=Fe())&&(r._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,r){2&i&&vt("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)},features:[ke],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,r){1&i&&W(0,Mwe,0,0,"ng-template",0)},dependencies:[Xc],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return t})();class JI{constructor(n,e){this.overlayRef=n,this.config=e,this.closed=new Re,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&&!yo(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 fH=new ee("DialogScrollStrategy"),Rwe=new ee("DialogData"),Pwe=new ee("DefaultDialogConfig"),Owe={provide:fH,deps:[wo],useFactory:function Fwe(t){return()=>t.scrollStrategies.block()}};let Nwe=0,mH=(()=>{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 Re,this._afterOpenedAtThisLevel=new Re,this._ariaHiddenElements=new Map,this.afterAllClosed=em(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(wr(void 0))),this._scrollStrategy=a}open(e,i){(i={...this._defaultOptions||new aw,...i}).id=i.id||"cdk-dialog-"+Nwe++,i.id&&this.getDialogById(i.id);const o=this._getOverlayConfig(i),s=this._overlay.create(o),a=new JI(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(){eA(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){eA(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),eA(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const i=new Cm({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:aw,useValue:r},{provide:JI,useValue:i},{provide:W_,useValue:e}];let a;r.container?"function"==typeof r.container?a=r.container:(a=r.container.type,s.push(...r.container.providers(r))):a=hH;const c=new wm(a,r.viewContainerRef,xi.create({parent:o||this._injector,providers:s}),r.componentFactoryResolver);return e.attach(c).instance}_attachDialogContent(e,i,r,o){if(e instanceof Un){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 Kc(e,null,a,s))}else{const s=this._createInjector(o,i,r,this._injector),a=r.attachComponentPortal(new wm(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:Rwe,useValue:e.data},{provide:JI,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(Er,null,{optional:!0}))&&a.push({provide:Er,useValue:{value:e.direction,change:at()}}),xi.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)(X(wo),X(xi),X(Pwe,8),X(t,12),X(y1),X(fH))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac})}return t})();function eA(t,n){let e=t.length;for(;e--;)n(t[e])}let Lwe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({providers:[mH,Owe],imports:[Fu,Ru,G2,Ru]})}return t})();function Bwe(t,n){}class cw{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",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 tA="mdc-dialog--open",pH="mdc-dialog--opening",gH="mdc-dialog--closing";let zwe=(()=>{class t extends hH{constructor(e,i,r,o,s,a,c,l){super(e,i,r,o,s,a,c,l),this._animationStateChanged=new Se}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}static#e=this.\u0275fac=function(i){return new(i||t)(y(Ue),y(c1),y(xt,8),y(cw),y(L_),y(ze),y(W_),y(Rs))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["ng-component"]],features:[ke],decls:0,vars:0,template:function(i,r){},encapsulation:2})}return t})();const _H="--mat-dialog-transition-duration";function vH(t){return null==t?null:"number"==typeof t?t:t.endsWith("ms")?kr(t.substring(0,t.length-2)):t.endsWith("s")?1e3*kr(t.substring(0,t.length-1)):"0"===t?0:null}let Hwe=(()=>{class t extends zwe{constructor(e,i,r,o,s,a,c,l,d){super(e,i,r,o,s,a,c,d),this._animationMode=l,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?vH(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?vH(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()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(_H,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(pH,tA)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(tA),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(tA),this._animationsEnabled?(this._hostElement.style.setProperty(_H,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(gH)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(pH,gH)}_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()})}static#e=this.\u0275fac=function(i){return new(i||t)(y(Ue),y(c1),y(xt,8),y(cw),y(L_),y(ze),y(W_),y(Qn,8),y(Rs))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(i,r){2&i&&(Xa("id",r._config.id),vt("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),st("_mat-animation-noopable",!r._animationsEnabled))},features:[ke],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),W(2,Bwe,0,0,"ng-template",2),b()())},dependencies:[Xc],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%;transform:scale(0.8);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}.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--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.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{display:block;width:100%;height:100%}.mat-mdc-dialog-container{--mdc-dialog-container-elevation-shadow: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);--mdc-dialog-container-shadow-color:#000;--mdc-dialog-container-shape:4px;--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-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{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})();class pd{constructor(n,e,i){this._ref=n,this._containerInstance=i,this._afterOpened=new Re,this._beforeClosed=new Re,this._state=0,this.disableClose=e.disableClose,this.id=n.id,i._animationStateChanged.pipe(ln(r=>"opened"===r.state),En(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(ln(r=>"closed"===r.state),En(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),n.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),wi(this.backdropClick(),this.keydownEvents().pipe(ln(r=>27===r.keyCode&&!this.disableClose&&!yo(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),bH(this,"keydown"===r.type?"keyboard":"mouse"))})}close(n){this._result=n,this._containerInstance._animationStateChanged.pipe(ln(e=>"closing"===e.state),En(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,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=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function bH(t,n,e){return t._closeInteractionType=n,t.close(e)}const lw=new ee("MatMdcDialogData"),jwe=new ee("mat-mdc-dialog-default-options"),yH=new ee("mat-mdc-dialog-scroll-strategy"),Gwe={provide:yH,deps:[wo],useFactory:function $we(t){return()=>t.scrollStrategies.block()}};let Wwe=0,qwe=(()=>{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,d,u){this._overlay=e,this._defaultOptions=r,this._parentDialog=o,this._dialogRefConstructor=c,this._dialogContainerType=l,this._dialogDataToken=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Re,this._afterOpenedAtThisLevel=new Re,this._idPrefix="mat-dialog-",this.dialogConfigClass=cw,this.afterAllClosed=em(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(wr(void 0))),this._scrollStrategy=a,this._dialog=i.get(mH)}open(e,i){let r;(i={...this._defaultOptions||new cw,...i}).id=i.id||`${this._idPrefix}${Wwe++}`,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:aw,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){$a()};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac})}return t})(),Rm=(()=>{class t extends qwe{constructor(e,i,r,o,s,a,c,l){super(e,i,o,a,c,s,pd,Hwe,lw,l),this._idPrefix="mat-mdc-dialog-"}static#e=this.\u0275fac=function(i){return new(i||t)(X(wo),X(xi),X(Eu,8),X(jwe,8),X(yH),X(t,12),X(y1),X(Qn,8))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac})}return t})(),Qwe=0,h0=(()=>{class t{constructor(e,i,r){this.dialogRef=e,this._elementRef=i,this._dialog=r,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=wH(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){const i=e._matDialogClose||e._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}_onButtonClick(e){bH(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}static#e=this.\u0275fac=function(i){return new(i||t)(y(pd,8),y(Ue),y(Rm))};static#t=this.\u0275dir=J({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(i,r){1&i&&H("click",function(s){return r._onButtonClick(s)}),2&i&&vt("aria-label",r.ariaLabel||null)("type",r.type)},inputs:{ariaLabel:[ue.None,"aria-label","ariaLabel"],type:"type",dialogResult:[ue.None,"mat-dialog-close","dialogResult"],_matDialogClose:[ue.None,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Wn]})}return t})(),xH=(()=>{class t{constructor(e,i,r){this._dialogRef=e,this._elementRef=i,this._dialog=r,this.id="mat-mdc-dialog-title-"+Qwe++}ngOnInit(){this._dialogRef||(this._dialogRef=wH(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._dialogRef._containerInstance?._ariaLabelledByQueue?.push(this.id)})}ngOnDestroy(){const e=this._dialogRef?._containerInstance?._ariaLabelledByQueue;e&&Promise.resolve().then(()=>{const i=e.indexOf(this.id);i>-1&&e.splice(i,1)})}static#e=this.\u0275fac=function(i){return new(i||t)(y(pd,8),y(Ue),y(Rm))};static#t=this.\u0275dir=J({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(i,r){2&i&&Xa("id",r.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]})}return t})(),dw=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=J({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"]})}return t})(),uw=(()=>{class t{constructor(){this.align="start"}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=J({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:4,hostBindings:function(i,r){2&i&&st("mat-mdc-dialog-actions-align-center","center"===r.align)("mat-mdc-dialog-actions-align-end","end"===r.align)},inputs:{align:"align"}})}return t})();function wH(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 Kwe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({providers:[Rm,Gwe],imports:[Lwe,Fu,Ru,Ft,Ft]})}return t})(),Xwe=(()=>{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)(y(pd),y(lw))};static#t=this.\u0275cmp=Ge({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),H("eclOutput",function(s){return r.eclChanged(s)}),b()(),_(4,"div",3)(5,"button",4),k(6,"Ok"),b()()),2&i&&(w(3),Wf("eclstring",r.localEcl),w(2),E("mat-dialog-close",r.data))},dependencies:[xo,h0,xH,dw,uw],styles:[".full-height[_ngcontent-%COMP%]{height:78%}.actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"]})}return t})();const kH=new ee("CdkAccordion");let Ywe=0,Zwe=(()=>{class t{get expanded(){return this._expanded}set expanded(e){e=Ke(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())}get disabled(){return this._disabled}set disabled(e){this._disabled=Ke(e)}constructor(e,i,r){this.accordion=e,this._changeDetectorRef=i,this._expansionDispatcher=r,this._openCloseAllSubscription=$t.EMPTY,this.closed=new Se,this.opened=new Se,this.destroyed=new Se,this.expandedChange=new Se,this.id="cdk-accordion-child-"+Ywe++,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)(y(kH,12),y(an),y(C2))};static#t=this.\u0275dir=J({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[rt([{provide:kH,useValue:void 0}])]})}return t})(),Jwe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({})}return t})();const eCe=["body"],tCe=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],nCe=["mat-expansion-panel-header","*","mat-action-row"];function iCe(t,n){}const rCe=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],oCe=["mat-panel-title","mat-panel-description","*"];function sCe(t,n){1&t&&we(0,"span",2),2&t&&E("@indicatorRotate",P()._getExpandedState())}const EH=new ee("MAT_ACCORDION"),TH="225ms cubic-bezier(0.4,0.0,0.2,1)",SH={indicatorRotate:Kn("indicatorRotate",[pn("collapsed, void",We({transform:"rotate(0deg)"})),pn("expanded",We({transform:"rotate(180deg)"})),Xt("expanded <=> collapsed, void => collapsed",qt(TH))]),bodyExpansion:Kn("bodyExpansion",[pn("collapsed, void",We({height:"0px",visibility:"hidden"})),pn("expanded",We({height:"*",visibility:""})),Xt("expanded <=> collapsed, void => collapsed",qt(TH))])},DH=new ee("MAT_EXPANSION_PANEL");let aCe=(()=>{class t{constructor(e,i){this._template=e,this._expansionPanel=i}static#e=this.\u0275fac=function(i){return new(i||t)(y(Un),y(DH,8))};static#t=this.\u0275dir=J({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]})}return t})(),cCe=0;const IH=new ee("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let AH=(()=>{class t extends Zwe{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=Ke(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 Se,this.afterCollapse=new Se,this._inputChanges=new Re,this._headerId="mat-expansion-panel-header-"+cCe++,this._bodyAnimationDone=new Re,this.accordion=e,this._document=s,this._bodyAnimationDone.pipe(rc((l,d)=>l.fromState===d.fromState&&l.toState===d.toState)).subscribe(l=>{"void"!==l.fromState&&("expanded"===l.toState?this.afterExpand.emit():"collapsed"===l.toState&&this.afterCollapse.emit())}),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),ln(()=>this.expanded&&!this._portal),En(1)).subscribe(()=>{this._portal=new Kc(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,i=this._body.nativeElement;return e===i||i.contains(e)}return!1}static#e=this.\u0275fac=function(i){return new(i||t)(y(EH,12),y(an),y(C2),y(li),y(xt),y(Qn,8),y(IH,8))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(i,r,o){if(1&i&&Kt(o,aCe,5),2&i){let s;Pe(s=Fe())&&(r._lazyContent=s.first)}},viewQuery:function(i,r){if(1&i&&pt(eCe,5),2&i){let o;Pe(o=Fe())&&(r._body=o.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(i,r){2&i&&st("mat-expanded",r.expanded)("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-expansion-panel-spacing",r._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[rt([{provide:EH,useValue:void 0},{provide:DH,useExisting:t}]),ke,Wn],ngContentSelectors:nCe,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=De();Nn(tCe),dt(0),_(1,"div",1,0),H("@bodyExpansion.done",function(a){return j(o),G(r._bodyAnimationDone.next(a))}),_(3,"div",2),dt(4,1),W(5,iCe,0,0,"ng-template",3),b(),dt(6,2),b()}2&i&&(w(),E("@bodyExpansion",r._getExpandedState())("id",r.id),vt("aria-labelledby",r._headerId),w(4),E("cdkPortalOutlet",r._portal))},dependencies:[Xc],styles:['.mat-expansion-panel{--mat-expansion-container-shape:4px;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:[SH.bodyExpansion]},changeDetection:0})}return t})();class lCe{}const dCe=V_(lCe);let uCe=(()=>{class t extends dCe{constructor(e,i,r,o,s,a,c){super(),this.panel=e,this._element=i,this._focusMonitor=r,this._changeDetectorRef=o,this._animationMode=a,this._parentChangeSubscription=$t.EMPTY;const l=e.accordion?e.accordion._stateChanges.pipe(ln(d=>!(!d.hideToggle&&!d.togglePosition))):os;this.tabIndex=parseInt(c||"")||0,this._parentChangeSubscription=wi(e.opened,e.closed,l,e._inputChanges.pipe(ln(d=>!!(d.hideToggle||d.disabled||d.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(ln(()=>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:yo(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)(y(AH,1),y(Ue),y(Rs),y(an),y(IH,8),y(Qn,8),ws("tabindex"))};static#t=this.\u0275cmp=Ge({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&&H("click",function(){return r._toggle()})("keydown",function(s){return r._keydown(s)}),2&i&&(vt("id",r.panel._headerId)("tabindex",r.tabIndex)("aria-controls",r._getPanelId())("aria-expanded",r._isExpanded())("aria-disabled",r.panel.disabled),Wi("height",r._getHeaderHeight()),st("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:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[ke],ngContentSelectors:oCe,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(i,r){1&i&&(Nn(rCe),_(0,"span",0),dt(1),dt(2,1),dt(3,2),b(),W(4,sCe,1,1,"span",1)),2&i&&(st("mat-content-hide-toggle",!r._showToggle()),w(4),E("ngIf",r._showToggle()))},dependencies:[si],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)}.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:[SH.indicatorRotate]},changeDetection:0})}return t})(),hCe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=J({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]})}return t})(),fCe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=J({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]})}return t})(),mCe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({imports:[Zr,Ft,Jwe,Ru]})}return t})();function pCe(t,n){if(1&t){const e=De();_(0,"mat-option",2),H("click",function(){return j(e),G(P().optionClicked())}),k(1),b()}if(2&t){const e=n.$implicit;E("value",e),w(),Je(" ",e.display," ")}}let gCe=(()=>{class t{constructor(e){this.terminologyService=e,this.selectionChange=new Se}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)(y(Jr))};static#t=this.\u0275cmp=Ge({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),Lr("ngModelChange",function(s){return Yr(r.selectedOptions,s)||(r.selectedOptions=s),s}),W(4,pCe,2,2,"mat-option",1),b(),_(5,"mat-hint"),k(6),b()()),2&i&&(w(2),nt(r.binding.title),w(),E("multiple","Select (Multiple)"==r.binding.type),Nr("ngModel",r.selectedOptions),w(),E("ngForOf",r.options),w(2),nt(r.binding.note))},dependencies:[_o,Ea,Fs,ju,rd,cs,c0,Ps],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 _Ce=["input"],vCe=["*"];let MH=0;class RH{constructor(n,e){this.source=n,this.value=e}}const bCe={provide:eo,useExisting:hn(()=>nA),multi:!0},PH=new ee("MatRadioGroup"),yCe=new ee("mat-radio-default-options",{providedIn:"root",factory:function xCe(){return{color:"accent"}}});let wCe=(()=>{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=Ke(e),this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=Ke(e),this._markRadiosForCheck()}constructor(e){this._changeDetector=e,this._value=null,this._name="mat-radio-group-"+MH++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new Se}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 RH(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)(y(an))};static#t=this.\u0275dir=J({type:t,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}})}return t})();class CCe{constructor(n){this._elementRef=n}}const kCe=nd(V_(CCe));let ECe=(()=>{class t extends kCe{get checked(){return this._checked}set checked(e){const i=Ke(e);this._checked!==i&&(this._checked=i,i&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!i&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),i&&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(Ke(e))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=Ke(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){super(i),this._changeDetector=r,this._focusMonitor=o,this._radioDispatcher=s,this._providerOverride=c,this._uniqueId="mat-radio-"+ ++MH,this.id=this._uniqueId,this.change=new Se,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._noopAnimations="NoopAnimations"===a,l&&(this.tabIndex=kr(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 RH(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){$a()};static#t=this.\u0275dir=J({type:t,viewQuery:function(i,r){if(1&i&&pt(_Ce,5),2&i){let o;Pe(o=Fe())&&(r._inputElement=o.first)}},inputs:{id:"id",name:"name",ariaLabel:[ue.None,"aria-label","ariaLabel"],ariaLabelledby:[ue.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[ue.None,"aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[ke]})}return t})(),nA=(()=>{class t extends wCe{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ot(t)))(r||t)}})();static#t=this.\u0275dir=J({type:t,selectors:[["mat-radio-group"]],contentQueries:function(i,r,o){if(1&i&&Kt(o,iA,5),2&i){let s;Pe(s=Fe())&&(r._radios=s)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],exportAs:["matRadioGroup"],features:[rt([bCe,{provide:PH,useExisting:t}]),ke]})}return t})(),iA=(()=>{class t extends ECe{constructor(e,i,r,o,s,a,c,l){super(e,i,r,o,s,a,c,l)}static#e=this.\u0275fac=function(i){return new(i||t)(y(PH,8),y(Ue),y(an),y(Rs),y(C2),y(Qn,8),y(yCe,8),ws("tabindex"))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function(i,r){1&i&&H("focus",function(){return r._inputElement.nativeElement.focus()}),2&i&&(vt("id",r.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),st("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:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[ke],ngContentSelectors:vCe,decls:13,vars:17,consts:[["formField",""],["input",""],[1,"mdc-form-field"],[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=De();Nn(),_(0,"div",2,0)(2,"div",3)(3,"div",4),H("click",function(a){return j(o),G(r._onTouchTargetClick(a))}),b(),_(4,"input",5,1),H("change",function(a){return j(o),G(r._onInputInteraction(a))}),b(),_(6,"div",6),we(7,"div",7)(8,"div",8),b(),_(9,"div",9),we(10,"div",10),b()(),_(11,"label",11),dt(12),b()()}if(2&i){const o=Nt(1);st("mdc-form-field--align-end","before"==r.labelPosition),w(2),st("mdc-radio--disabled",r.disabled),w(2),E("id",r.inputId)("checked",r.checked)("disabled",r.disabled)("required",r.required),vt("name",r.name)("value",r.value)("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby),w(5),E("matRippleTrigger",o)("matRippleDisabled",r._isRippleDisabled())("matRippleCentered",!0),w(2),E("for",r.inputId)}},dependencies:[qc],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)}.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}.mat-mdc-radio-button{--mdc-radio-disabled-selected-icon-opacity:0.38;--mdc-radio-disabled-unselected-icon-opacity:0.38;--mdc-radio-state-layer-size:40px;-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%)}[dir=rtl] .mat-mdc-radio-touch-target{left:0;right:50%;transform:translate(50%, -50%)}'],encapsulation:2,changeDetection:0})}return t})(),TCe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({imports:[Ft,Zr,id,Ft]})}return t})();function SCe(t,n){if(1&t){const e=De();_(0,"mat-radio-button",3),H("click",function(){const r=j(e).$implicit;return G(P().optionSelected(r))}),k(1),b()}if(2&t){const e=n.$implicit;E("value",e.code),w(),Je(" ",e.display," ")}}let DCe=(()=>{class t{constructor(e){this.terminologyService=e,this.selectionChange=new Se}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)(y(Jr))};static#t=this.\u0275cmp=Ge({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),W(3,SCe,2,2,"mat-radio-button",1),b(),_(4,"div",2),k(5),b()),2&i&&(w(),nt(r.binding.title),w(2),E("ngForOf",r.options),w(2),nt(r.binding.note))},dependencies:[_o,nA,iA],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})(),ICe=(()=>{class t{constructor(e){this.terminologyService=e,this.textChange=new Se,this.text=""}ngOnInit(){}onTextChange(e){this.text=e,this.textChange.emit(e)}static#e=this.\u0275fac=function(i){return new(i||t)(y(Jr))};static#t=this.\u0275cmp=Ge({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),Lr("ngModelChange",function(s){return Yr(r.text,s)||(r.text=s),s}),H("ngModelChange",function(s){return r.onTextChange(s)}),b(),_(4,"mat-hint"),k(5),b()()),2&i&&(w(2),nt(r.binding.title),w(),Nr("ngModel",r.text),w(2),nt(r.binding.note))},dependencies:[Ea,Fs,ju,md,Xs,cs,Ps],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 ACe=["input"],MCe=["label"],RCe=["*"],PCe=new ee("mat-checkbox-default-options",{providedIn:"root",factory:FH});function FH(){return{color:"accent",clickAction:"check-indeterminate"}}const FCe={provide:eo,useExisting:hn(()=>NH),multi:!0};class OCe{}let NCe=0;const OH=FH(),LCe=V_(td(nd(Wc(class{constructor(t){this._elementRef=t}}))));let BCe=(()=>{class t extends LCe{get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=Ke(e)}constructor(e,i,r,o,s,a,c){super(i),this._changeDetectorRef=r,this._ngZone=o,this._animationMode=a,this._options=c,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new Se,this.indeterminateChange=new Se,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||OH,this.color=this.defaultColor=this._options.color||OH.color,this.tabIndex=parseInt(s)||0,this.id=this._uniqueId=`${e}${++NCe}`}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const i=Ke(e);i!=this.checked&&(this._checked=i,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const i=Ke(e);i!==this.disabled&&(this._disabled=i,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const i=e!=this._indeterminate;this._indeterminate=Ke(e),i&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),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}_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?1:2),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 0:if(1===i)return this._animationClasses.uncheckedToChecked;if(3==i)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===i?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===i?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===i?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const i=this._inputElement;i&&(i.nativeElement.indeterminate=e)}static#e=this.\u0275fac=function(i){$a()};static#t=this.\u0275dir=J({type:t,viewQuery:function(i,r){if(1&i&&(pt(ACe,5),pt(MCe,5),pt(qc,5)),2&i){let o;Pe(o=Fe())&&(r._inputElement=o.first),Pe(o=Fe())&&(r._labelElement=o.first),Pe(o=Fe())&&(r.ripple=o.first)}},inputs:{ariaLabel:[ue.None,"aria-label","ariaLabel"],ariaLabelledby:[ue.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[ue.None,"aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[ke]})}return t})(),NH=(()=>{class t extends BCe{constructor(e,i,r,o,s,a){super("mat-mdc-checkbox-",e,i,r,o,s,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"}}focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){const i=new OCe;return i.source=this,i.checked=e,i}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_onInputClick(){super._handleInputClick()}_onTouchTargetClick(){super._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)(y(Ue),y(an),y(ze),ws("tabindex"),y(Qn,8),y(PCe,8))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-mdc-checkbox"],hostVars:12,hostBindings:function(i,r){2&i&&(Xa("id",r.id),vt("tabindex",null)("aria-label",null)("aria-labelledby",null),st("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mdc-checkbox--disabled",r.disabled)("mat-mdc-checkbox-disabled",r.disabled)("mat-mdc-checkbox-checked",r.checked))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[rt([FCe]),ke],ngContentSelectors:RCe,decls:15,vars:20,consts:[["checkbox",""],["input",""],["label",""],[1,"mdc-form-field",3,"click"],[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=De();Nn(),_(0,"div",3),H("click",function(a){return j(o),G(r._preventBubblingFromLabel(a))}),_(1,"div",4,0)(3,"div",5),H("click",function(){return j(o),G(r._onTouchTargetClick())}),b(),_(4,"input",6,1),H("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(),we(6,"div",7),_(7,"div",8),Pl(),_(8,"svg",9),we(9,"path",10),b(),Wb(),we(10,"div",11),b(),we(11,"div",12),b(),_(12,"label",13,2),dt(14),b()()}if(2&i){const o=Nt(2);st("mdc-form-field--align-end","before"==r.labelPosition),w(4),st("mdc-checkbox--selected",r.checked),E("checked",r.checked)("indeterminate",r.indeterminate)("disabled",r.disabled)("id",r.inputId)("required",r.required)("tabIndex",r.tabIndex),vt("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),w(7),E("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),w(),E("for",r.inputId)}},dependencies:[qc],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-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-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)}html{--mdc-checkbox-disabled-selected-checkmark-color:#fff;--mdc-checkbox-selected-focus-state-layer-opacity:0.16;--mdc-checkbox-selected-hover-state-layer-opacity:0.04;--mdc-checkbox-selected-pressed-state-layer-opacity:0.16;--mdc-checkbox-unselected-focus-state-layer-opacity:0.16;--mdc-checkbox-unselected-hover-state-layer-opacity:0.04;--mdc-checkbox-unselected-pressed-state-layer-opacity:0.16}.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}.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%)}.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})(),LH=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({})}return t})(),zCe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({imports:[Ft,id,LH,Ft,LH]})}return t})();function HCe(t,n){if(1&t){const e=De();_(0,"mat-checkbox",3),H("click",function(){return j(e),G(P().optionClicked())}),k(1),b()}if(2&t){const e=n.$implicit;Wf("formControlName",e.display),w(),Je(" ",e.display," ")}}let jCe=(()=>{class t{constructor(e,i){this.terminologyService=e,this._formBuilder=i,this.selectionChange=new Se,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)(y(Jr),y(dz))};static#t=this.\u0275cmp=Ge({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),W(1,HCe,2,2,"mat-checkbox",1),_(2,"span",2),k(3),b()()),2&i&&(E("formGroup",r.checkboxes),w(),E("ngForOf",r.options),w(2),nt(r.binding.note))},dependencies:[_o,r0,cs,Y_,fd,o0,NH],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})(),$Ce=(()=>{class t{constructor(e){this.terminologyService=e,this.textChange=new Se,this.value=0}ngOnInit(){}onValueChange(e){this.value=e,this.textChange.emit(e)}static#e=this.\u0275fac=function(i){return new(i||t)(y(Jr))};static#t=this.\u0275cmp=Ge({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),Lr("ngModelChange",function(s){return Yr(r.value,s)||(r.value=s),s}),H("ngModelChange",function(s){return r.onValueChange(s)}),b(),_(4,"mat-hint"),k(5),b()()),2&i&&(w(2),nt(r.binding.title),w(),Nr("ngModel",r.value),w(2),nt(r.binding.note))},dependencies:[Ea,Fs,ju,md,Xs,W1,cs,X1,Ps],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})(),GCe=(()=>{class t{constructor(e){this.terminologyService=e,this.textChange=new Se,this.value=0}ngOnInit(){}onValueChange(e){this.value=e,this.textChange.emit(e)}static#e=this.\u0275fac=function(i){return new(i||t)(y(Jr))};static#t=this.\u0275cmp=Ge({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),Lr("ngModelChange",function(s){return Yr(r.value,s)||(r.value=s),s}),H("ngModelChange",function(s){return r.onValueChange(s)}),b(),_(4,"mat-hint"),k(5),b()()),2&i&&(w(2),nt(r.binding.title),w(),Nr("ngModel",r.value),w(2),nt(r.binding.note))},dependencies:[Ea,Fs,ju,md,Xs,W1,cs,X1,Ps],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 WCe=["newPanel"],qCe=()=>({standalone:!0}),rA=()=>({});function QCe(t,n){1&t&&(_(0,"mat-panel-description"),k(1," Click to add new binding "),b())}function KCe(t,n){if(1&t){const e=De();_(0,"button",46),H("click",function(){let r;return j(e),G(null==(r=P().newBindingForm.get("title"))?null:r.reset())}),_(1,"mat-icon"),k(2,"close"),b()()}}function XCe(t,n){1&t&&(_(0,"span"),k(1,"Restrict to Observables"),b())}function YCe(t,n){1&t&&(_(0,"span"),k(1,"Open to Observables + Findings + Procedures + Situations"),b())}function ZCe(t,n){if(1&t&&(_(0,"mat-option",47),k(1),b()),2&t){const e=n.$implicit;E("value",e),w(),Je(" ",e," ")}}function JCe(t,n){if(1&t){const e=De();_(0,"button",46),H("click",function(){let r;return j(e),G(null==(r=P(2).newBindingForm.get("ecl"))?null:r.reset())}),_(1,"mat-icon"),k(2,"close"),b()()}}function eke(t,n){if(1&t){const e=De();_(0,"mat-form-field",14)(1,"mat-label"),k(2,"Answer options: ECL Expression"),b(),we(3,"input",48),_(4,"a",49),H("click",function(){let r;j(e);const o=P();return G(o.openEclBuilder(null==(r=o.newBindingForm.get("ecl"))?null:r.value,"ecl"))}),k(5,"ECL Builder"),b(),W(6,JCe,3,0,"button",16),_(7,"mat-error"),k(8),b()()}if(2&t){let e;const i=P();w(6),E("ngIf",null==(e=i.newBindingForm.get("ecl"))?null:e.value),w(2),nt(i.getErrorMessage("ecl"))}}function tke(t,n){1&t&&(_(0,"span"),k(1,"Restrict to Observables"),b())}function nke(t,n){1&t&&(_(0,"span"),k(1,"Open to Observables + Findings + Procedures"),b())}function ike(t,n){if(1&t){const e=De();_(0,"mat-form-field",14),we(1,"app-autocomplete-binding",50),_(2,"a",19),H("click",function(){return j(e),G(P().toggleCheckboxBinding())}),W(3,tke,2,0,"span",10)(4,nke,2,0,"span",10),b(),_(5,"mat-error"),k(6),b()()}if(2&t){const e=P();w(),E("binding",e.checkboxBinding),w(2),E("ngIf",e.checkboxBinding.ecl===e.codeBindingAll.ecl),w(),E("ngIf",e.checkboxBinding.ecl!=e.codeBindingAll.ecl),w(2),nt(e.getErrorMessage("ecl"))}}function rke(t,n){if(1&t){const e=De();_(0,"button",46),H("click",function(){let r;return j(e),G(null==(r=P(2).newBindingForm.get("note"))?null:r.reset())}),_(1,"mat-icon"),k(2,"close"),b()()}}function oke(t,n){if(1&t&&(_(0,"mat-form-field",51)(1,"mat-label"),k(2,"Note"),b(),we(3,"input",52),W(4,rke,3,0,"button",16),_(5,"mat-error"),k(6),b()()),2&t){let e;const i=P();w(4),E("ngIf",null==(e=i.newBindingForm.get("note"))?null:e.value),w(2),nt(i.getErrorMessage("note"))}}function ske(t,n){if(1&t){const e=De();_(0,"button",27),H("click",function(){return j(e),G(P().addBinding())}),k(1,"Add binding"),b()}}function ake(t,n){if(1&t){const e=De();_(0,"button",27),H("click",function(){j(e);const r=P();return r.addBinding(),G(r.clearOutput())}),k(1,"Update binding"),b()}}function cke(t,n){if(1&t){const e=De();_(0,"button",35),H("click",function(){j(e);const r=P();return G(r.showRightContainer=!r.showRightContainer)}),k(1),b()}if(2&t){const e=P();w(),Je(" ",e.showRightContainer?"Close data panel":"Open data panel"," ")}}function lke(t,n){1&t&&(_(0,"button",53),k(1," Download form "),b()),2&t&&(P(),E("matMenuTriggerFor",Nt(69)))}function dke(t,n){if(1&t){const e=De();_(0,"div",54)(1,"p",55),k(2),b(),_(3,"button",56),H("click",function(){return j(e),G(P().titleEditMode=!0)}),_(4,"mat-icon"),k(5,"edit"),b()()()}if(2&t){const e=P();w(2),nt(e.formTitle)}}function uke(t,n){if(1&t){const e=De();_(0,"div",54)(1,"form",57)(2,"mat-form-field")(3,"mat-label"),k(4,"Title"),b(),_(5,"input",58),Lr("ngModelChange",function(r){j(e);const o=P();return Yr(o.formTitle,r)||(o.formTitle=r),G(r)}),H("ngModelChange",function(){return j(e),G(P().refreshFhirQuestionnaire())}),b(),_(6,"button",46),H("click",function(){return j(e),G(P().formTitle="")}),_(7,"mat-icon"),k(8,"close"),b()()()(),_(9,"button",56),H("click",function(){return j(e),G(P().titleEditMode=!1)}),_(10,"mat-icon"),k(11,"save"),b()()()}if(2&t){const e=P();w(5),Nr("ngModel",e.formTitle),E("ngModelOptions",Ds(2,qCe))}}function hke(t,n){if(1&t){const e=De();_(0,"app-autocomplete-binding",67),H("selectionChange",function(r){j(e);const o=P().$implicit;return G(P().optionSelected(o.title,o.code,r))}),b()}2&t&&E("binding",P().$implicit)}function fke(t,n){if(1&t){const e=De();_(0,"app-dropdown-binding",67),H("selectionChange",function(r){j(e);const o=P().$implicit;return G(P().optionSelected(o.title,o.code,r))}),b()}2&t&&E("binding",P().$implicit)}function mke(t,n){if(1&t){const e=De();_(0,"app-radios-binding",67),H("selectionChange",function(r){j(e);const o=P().$implicit;return G(P().optionSelected(o.title,o.code,r))}),b()}2&t&&E("binding",P().$implicit)}function pke(t,n){if(1&t&&(_(0,"span",68),k(1),b()),2&t){const e=P().$implicit;w(),nt(e.title)}}function gke(t,n){if(1&t){const e=De();_(0,"app-textbox-binding",69),H("textChange",function(r){j(e);const o=P().$implicit;return G(P().optionSelected(o.title,o.code,r))}),b()}2&t&&E("binding",P().$implicit)}function _ke(t,n){if(1&t){const e=De();_(0,"app-integer-binding",69),H("textChange",function(r){j(e);const o=P().$implicit;return G(P().optionSelected(o.title,o.code,r))}),b()}2&t&&E("binding",P().$implicit)}function vke(t,n){if(1&t){const e=De();_(0,"app-decimal-binding",69),H("textChange",function(r){j(e);const o=P().$implicit;return G(P().optionSelected(o.title,o.code,r))}),b()}2&t&&E("binding",P().$implicit)}function bke(t,n){if(1&t){const e=De();_(0,"app-checkbox-binding",67),H("selectionChange",function(r){j(e);const o=P().$implicit;return G(P().optionSelected(o.title,o.code,r))}),b()}2&t&&E("binding",P().$implicit)}function yke(t,n){if(1&t&&(_(0,"button",70)(1,"mat-icon"),k(2,"info"),b()()),2&t){const e=P().$implicit;E("matMenuTriggerFor",Nt(14))("disabled",!e.code&&!e.ecl)}}function xke(t,n){if(1&t){const e=De();_(0,"span",6),H("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=P().$implicit;E("disableRipple",!0),w(4),bu("",null==e.code?null:e.code.code," |",null==e.code?null:e.code.display,"|")}}function wke(t,n){if(1&t){const e=De();_(0,"span",6),H("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=P().$implicit;E("disableRipple",!0),w(4),nt(e.ecl)}}function Cke(t,n){if(1&t){const e=De();_(0,"div",59)(1,"div",60)(2,"mat-icon",61),k(3,"drag_indicator"),b(),W(4,hke,1,1,"app-autocomplete-binding",62)(5,fke,1,1,"app-dropdown-binding",62)(6,mke,1,1,"app-radios-binding",62)(7,pke,2,1,"span",63)(8,gke,1,1,"app-textbox-binding",64)(9,_ke,1,1,"app-integer-binding",64)(10,vke,1,1,"app-decimal-binding",64)(11,bke,1,1,"app-checkbox-binding",62)(12,yke,3,2,"button",65),_(13,"mat-menu",null,0),W(15,xke,5,3,"span",66)(16,wke,5,2,"span",66),b(),_(17,"button",56),H("click",function(){const r=j(e).index;return G(P().bindings.splice(r,1))}),_(18,"mat-icon"),k(19,"delete"),b()(),_(20,"button",56),H("click",function(){const r=j(e).index;return G(P().edit(r))}),_(21,"mat-icon"),k(22,"edit"),b()()()()}if(2&t){const e=n.$implicit;w(4),E("ngIf","Autocomplete"==e.type),w(),E("ngIf","Select (Single)"==e.type||"Select (Multiple)"==e.type),w(),E("ngIf","Options"==e.type),w(),E("ngIf","Section header"==e.type),w(),E("ngIf","Text box"==e.type),w(),E("ngIf","Integer"==e.type),w(),E("ngIf","Decimal"==e.type),w(),E("ngIf","Checkbox"==e.type),w(),E("ngIf","Section header"!=e.type),w(3),E("ngIf",e.code),w(),E("ngIf",e.ecl)}}function kke(t,n){if(1&t){const e=De();_(0,"div",74)(1,"button",75),H("click",function(){j(e);const r=P(2);return G(r.saveOutput(r.outputStr))}),we(2,"mat-icon",76),b(),_(3,"button",77),H("click",function(){j(e);const r=P(2);return G(r.copyOutputToClipboard(r.outputStr))}),we(4,"mat-icon",78),b()()}}function Eke(t,n){if(1&t&&(_(0,"div",71),W(1,kke,5,0,"div",72),_(2,"textarea",73),k(3," "),b()()),2&t){const e=P();w(),E("ngIf",e.showRightContainer),w(),E("options",Ds(4,rA))("lang","json")("innerHTML",e.responseStr,du)}}function Tke(t,n){if(1&t){const e=De();_(0,"div",74)(1,"button",75),H("click",function(){j(e);const r=P(2);return G(r.saveBundleOutput(r.responseBundleStr))}),we(2,"mat-icon",76),b(),_(3,"button",77),H("click",function(){j(e);const r=P(2);return G(r.copyOutputToClipboard(r.responseBundleStr))}),we(4,"mat-icon",78),b()()}}function Ske(t,n){if(1&t&&(_(0,"div",71),W(1,Tke,5,0,"div",72),_(2,"textarea",73),k(3," "),b()()),2&t){const e=P();w(),E("ngIf",e.showRightContainer),w(),E("options",Ds(4,rA))("lang","json")("innerHTML",e.responseBundleStr,du)}}function Dke(t,n){if(1&t){const e=De();_(0,"div",74)(1,"button",75),H("click",function(){j(e);const r=P(2);return G(r.saveOutput(r.fhirQuestionnaireStr))}),we(2,"mat-icon",76),b(),_(3,"button",77),H("click",function(){j(e);const r=P(2);return G(r.copyOutputToClipboard(r.fhirQuestionnaireStr))}),we(4,"mat-icon",78),b()()}}function Ike(t,n){if(1&t&&(_(0,"div",71),W(1,Dke,5,0,"div",72),_(2,"textarea",73),k(3," "),b()()),2&t){const e=P();w(),E("ngIf",e.showRightContainer),w(),E("options",Ds(4,rA))("lang","json")("innerHTML",e.fhirQuestionnaireStr,du)}}let Ake=(()=>{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 Am({title:new ls("",[Dm.required,Dm.maxLength(50)]),code:new ls("",[]),type:new ls("",[Dm.required]),ecl:new ls("",[]),value:new ls("",[]),note:new ls("",[Dm.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 fe(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 fe(function*(){return bo((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){WI(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,cc.saveAs)(e,`${this.formTitle}.json`)}saveOutput(e){var i=new Blob([e],{type:"text/plain;charset=utf-8"});(0,cc.saveAs)(i,`${this.formTitle}-data.json`)}saveBundleOutput(e){var i=new Blob([e],{type:"text/plain;charset=utf-8"});(0,cc.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(Xwe,{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)(y(Jr),y(UI),y(Rm))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["app-bindings-sandbox"]],viewQuery:function(i,r){if(1&i&&pt(WCe,5),2&i){let o;Pe(o=Fe())&&(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=De();_(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),H("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),H("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()(),W(21,QCe,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(),we(31,"input",15),W(32,KCe,3,0,"button",16),_(33,"mat-error"),k(34),b()(),_(35,"mat-form-field",17),we(36,"app-autocomplete-binding",18),_(37,"a",19),H("click",function(){return j(o),G(r.toggleCodeBinding())}),W(38,XCe,2,0,"span",10)(39,YCe,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),W(49,ZCe,2,2,"mat-option",21),b(),_(50,"mat-error"),k(51),b()(),W(52,eke,9,2,"mat-form-field",22)(53,ike,7,4,"mat-form-field",22),b()(),W(54,oke,7,2,"mat-form-field",23),b(),we(55,"br"),_(56,"div",24),we(57,"span",25),W(58,ske,2,0,"button",26)(59,ake,2,0,"button",26),_(60,"button",27),H("click",function(){return j(o),G(r.cancelEdit())}),k(61,"Cancel"),b()()()()(),_(62,"div",28)(63,"div",29),W(64,cke,2,1,"button",30),_(65,"input",31,2),H("change",function(a){return j(o),G(r.uploadFile(a))}),b(),W(67,lke,2,1,"button",32),_(68,"mat-menu",33,3)(70,"button",34),H("click",function(){return j(o),G(r.saveForm())}),k(71,"Download"),b(),_(72,"button",34),H("click",function(){return j(o),G(r.saveOutput(r.fhirQuestionnaireStr))}),k(73,"Download as FHIR Questionnaire"),b()(),_(74,"button",35),H("click",function(){return j(o),G(Nt(66).click())}),k(75,"Upload form"),b(),_(76,"button",35),H("click",function(){return j(o),G(r.loadExample1())}),k(77,"Example"),b(),_(78,"button",35),H("click",function(){return j(o),G(r.clear())}),k(79,"Clear"),b()()()(),W(80,dke,6,1,"div",36)(81,uke,12,3,"div",36),_(82,"div",37)(83,"div",38)(84,"div",39),H("cdkDropListDropped",function(a){return j(o),G(r.onDrop(a))}),W(85,Cke,23,11,"div",40),b()(),_(86,"div",38)(87,"mat-tab-group",41)(88,"mat-tab",42),W(89,Eke,4,5,"div",43),b(),_(90,"mat-tab",44),W(91,Ske,4,5,"div",43),b(),_(92,"mat-tab",45),W(93,Ike,4,5,"div",43),b()()()()()}if(2&i){let o;const s=Nt(7);w(3),E("matMenuTriggerFor",s),w(5),E("disableRipple",!0),w(13),E("ngIf",!r.panelOpenState),w(2),E("formGroup",r.newBindingForm),w(9),E("ngIf",null==(o=r.newBindingForm.get("title"))?null:o.value),w(2),nt(r.getErrorMessage("title")),w(2),E("binding",r.codeBinding),w(2),E("ngIf",r.codeBinding===r.codeBindingAll),w(),E("ngIf",r.codeBinding!=r.codeBindingAll),w(2),nt(r.getErrorMessage("code")),w(8),E("ngForOf",r.controlTypes),w(2),nt(r.getErrorMessage("type")),w(),E("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),w(),E("ngIf","Checkbox"==r.newBindingForm.controls.type.value),w(),E("ngIf","Section header"!=r.newBindingForm.controls.type.value),w(4),E("ngIf",-1==r.indexInEdit),w(),E("ngIf",r.indexInEdit>-1),w(5),E("ngIf",r.bindings.length),w(3),E("ngIf",r.bindings.length),w(13),E("ngIf",!r.titleEditMode),w(),E("ngIf",r.titleEditMode),w(2),E("@growShrink",r.stateName),w(2),E("ngForOf",r.bindings),w(),E("@openClose",r.stateName),w(3),E("ngIf",r.bindings.length>0),w(2),E("ngIf",r.bindings.length>0),w(2),E("ngIf",r.bindings.length>0)}},dependencies:[_o,si,nw,ZI,XI,aH,xo,Ks,Co,Nu,sc,Lu,Ea,Fs,hz,mz,rd,md,r0,Xs,cs,Y_,fd,o0,tw,a0,c0,Ps,zu,$u,AH,uCe,fCe,hCe,s0,gCe,DCe,ICe,jCe,$Ce,GCe],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:[Kn("openClose",[pn("open",We({opacity:1,width:"50%"})),pn("closed",We({opacity:0,width:"0"})),Xt("open <=> closed",[qt("0.5s")])]),Kn("growShrink",[pn("open",We({width:"50%"})),pn("closed",We({width:"100%"})),Xt("open <=> closed",[qt("0.5s")])])]}})}return t})(),Mke=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=Ge({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 Rke=["mat-sort-header",""],Pke=["*"];function Fke(t,n){if(1&t){const e=De();_(0,"div",3),H("@arrowPosition.start",function(){return j(e),G(P()._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){return j(e),G(P()._disableViewStateAnimation=!1)}),we(1,"div",4),_(2,"div",5),we(3,"div",6)(4,"div",7)(5,"div",8),b()()}if(2&t){const e=P();E("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),w(2),E("@indicator",e._getArrowDirectionState()),w(),E("@leftPointer",e._getArrowDirectionState()),w(),E("@rightPointer",e._getArrowDirectionState())}}const BH=new ee("MAT_SORT_DEFAULT_OPTIONS"),Oke=y_e(Wc(class{}));let gd=(()=>{class t extends Oke{get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Ke(e)}constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new Re,this.start="asc",this._direction="",this.sortChange=new Se}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 Nke(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._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}static#e=this.\u0275fac=function(i){return new(i||t)(y(BH,8))};static#t=this.\u0275dir=J({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:[ue.None,"matSortDisabled","disabled"],active:[ue.None,"matSortActive","active"],start:[ue.None,"matSortStart","start"],direction:[ue.None,"matSortDirection","direction"],disableClear:[ue.None,"matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[ke,Wn]})}return t})();const _d=__e.ENTERING+" "+g_e.STANDARD_CURVE,Pm={indicator:Kn("indicator",[pn("active-asc, asc",We({transform:"translateY(0px)"})),pn("active-desc, desc",We({transform:"translateY(10px)"})),Xt("active-asc <=> active-desc",qt(_d))]),leftPointer:Kn("leftPointer",[pn("active-asc, asc",We({transform:"rotate(-45deg)"})),pn("active-desc, desc",We({transform:"rotate(45deg)"})),Xt("active-asc <=> active-desc",qt(_d))]),rightPointer:Kn("rightPointer",[pn("active-asc, asc",We({transform:"rotate(45deg)"})),pn("active-desc, desc",We({transform:"rotate(-45deg)"})),Xt("active-asc <=> active-desc",qt(_d))]),arrowOpacity:Kn("arrowOpacity",[pn("desc-to-active, asc-to-active, active",We({opacity:1})),pn("desc-to-hint, asc-to-hint, hint",We({opacity:.54})),pn("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(_d))]),arrowPosition:Kn("arrowPosition",[Xt("* => desc-to-hint, * => desc-to-active",qt(_d,xm([We({transform:"translateY(-25%)"}),We({transform:"translateY(0)"})]))),Xt("* => hint-to-desc, * => active-to-desc",qt(_d,xm([We({transform:"translateY(0)"}),We({transform:"translateY(25%)"})]))),Xt("* => asc-to-hint, * => asc-to-active",qt(_d,xm([We({transform:"translateY(25%)"}),We({transform:"translateY(0)"})]))),Xt("* => hint-to-asc, * => active-to-asc",qt(_d,xm([We({transform:"translateY(0)"}),We({transform:"translateY(-25%)"})]))),pn("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",We({transform:"translateY(0)"})),pn("hint-to-desc, active-to-desc, desc",We({transform:"translateY(-25%)"})),pn("hint-to-asc, active-to-asc, asc",We({transform:"translateY(25%)"}))]),allowChildren:Kn("allowChildren",[Xt("* <=> *",[g1("@*",p1(),{optional:!0})])])};let hw=(()=>{class t{constructor(){this.changes=new Re}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Bke={provide:hw,deps:[[new Al,new ef,hw]],useFactory:function Lke(t){return t||new hw}},Vke=Wc(class{});let oA=(()=>{class t extends Vke{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Ke(e)}constructor(e,i,r,o,s,a,c,l){super(),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._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()}_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=wi(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)(y(hw),y(an),y(gd,8),y("MAT_SORT_HEADER_COLUMN_DEF",8),y(Rs),y(Ue),y(e9,8),y(BH,8))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(i,r){1&i&&H("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&&(vt("aria-sort",r._getAriaSortAttribute()),st("mat-sort-header-disabled",r._isDisabled()))},inputs:{disabled:"disabled",id:[ue.None,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[ke],attrs:Rke,ngContentSelectors:Pke,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[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&&(Nn(),_(0,"div",0)(1,"div",1),dt(2),b(),W(3,Fke,6,6,"div",2),b()),2&i&&(st("mat-sort-header-sorted",r._isSorted())("mat-sort-header-position-before","before"===r.arrowPosition),vt("tabindex",r._isDisabled()?null:0)("role",r._isDisabled()?null:"button"),w(3),E("ngIf",r._renderArrow()))},dependencies:[si],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;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:[Pm.indicator,Pm.leftPointer,Pm.rightPointer,Pm.arrowOpacity,Pm.arrowPosition,Pm.allowChildren]},changeDetection:0})}return t})(),Uke=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({providers:[Bke],imports:[Zr,Ft]})}return t})(),zke=(()=>{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=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Fm=(()=>{class t{constructor(e,i){this.http=e,this.storageService=i,this.baseUrlSubject=new Ei("https://hapi.fhir.org/baseR4"),this.baseUrl$=this.baseUrlSubject.asObservable(),this.userTagSubject=new Ei(""),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(Cr(o=>404===o.status?this.postQuestionnaire(e):tm(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)(X(Yl),X(zke))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Hke(t,n){if(1&t&&(_(0,"mat-option",15),k(1),b()),2&t){const e=n.$implicit;E("value",e),w(),Je(" ",e.title," ")}}function jke(t,n){1&t&&we(0,"mat-spinner",16)}function $ke(t,n){if(1&t){const e=De();_(0,"div",17)(1,"span",18),k(2,"\u2261"),b(),k(3),_(4,"button",19),H("click",function(){const r=j(e).index;return G(P().deleteQuestionnaire(r))}),_(5,"mat-icon"),k(6,"delete"),b()()()}if(2&t){const e=n.$implicit;w(3),Je(" ",e.title," ")}}let VH=(()=>{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){WI(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)(y(dz),y(Fm),y(lw),y(pd))};static#t=this.\u0275cmp=Ge({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(),we(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),W(14,Hke,2,2,"mat-option",6),b()(),_(15,"button",7),H("click",function(){return r.addQuestionnaire()}),k(16,"Add questionnaire"),b(),W(17,jke,1,0,"mat-spinner",8),b()(),_(18,"div",9)(19,"cdk-drop-list",10),H("cdkDropListDropped",function(s){return r.drop(s)}),W(20,$ke,7,1,"div",11),b()()(),_(21,"mat-dialog-actions",12)(22,"button",13),k(23,"Cancel"),b(),_(24,"button",14),H("click",function(){return r.closeModal()}),k(25,"Save"),b()()),2&i&&(w(3),E("formGroup",r.questionnaireForm),w(11),E("ngForOf",r.availableQuestionnaires),w(),E("disabled",r.loading),w(2),E("ngIf",r.loading),w(3),E("ngForOf",r.addedQuestionnaires),w(4),E("disabled",r.isSaveDisabled()||r.loading))},dependencies:[_o,si,ZI,XI,xo,Ks,Co,Ea,Fs,rd,od,md,r0,Xs,cs,Y_,fd,o0,c0,h0,dw,uw],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})(),UH=(()=>{class t{constructor(e,i){this.http=e,this.fhirService=i}generateRootQuestionnaire(e,i){var r=this;return fe(function*(){try{let s=yield bo(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 fe(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=fe(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 fe(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 fe(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 fe(function*(){try{return yield bo(i.http.get(e))}catch(r){return console.error("Error fetching questionnaire:",r),null}})()}static#e=this.\u0275fac=function(i){return new(i||t)(X(Yl),X(Fm))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Gke=t=>["status-pill",t],Wke=()=>["status-pill","active"],qke=()=>["status-pill","draft"];function Qke(t,n){1&t&&(_(0,"th",17),k(1," Title "),b())}function Kke(t,n){if(1&t&&(_(0,"td",18),k(1),b()),2&t){const e=n.$implicit;w(),Je(" ",e.title," ")}}function Xke(t,n){1&t&&(_(0,"th",17),k(1," Status "),b())}function Yke(t,n){if(1&t&&(_(0,"td",18)(1,"span",19),k(2),go(3,"uppercase"),b()()),2&t){const e=n.$implicit;w(),E("ngClass",_a(4,Gke,e.status)),w(),nt(Ya(3,2,e.status))}}function Zke(t,n){1&t&&(_(0,"th",17),k(1," Version "),b())}function Jke(t,n){if(1&t&&(_(0,"td",18),k(1),b()),2&t){const e=n.$implicit;w(),Je(" ",e.meta.versionId," ")}}function eEe(t,n){1&t&&(_(0,"th",17),k(1," Type "),b())}function tEe(t,n){1&t&&(_(0,"span",19),k(1,"QUESTIONNAIRE"),b()),2&t&&E("ngClass",Ds(1,Wke))}function nEe(t,n){1&t&&(_(0,"span",19),k(1,"MODULAR ROOT"),b()),2&t&&E("ngClass",Ds(1,qke))}function iEe(t,n){if(1&t&&(_(0,"td",18),W(1,tEe,2,2,"span",20)(2,nEe,2,2,"span",20),b()),2&t){const e=n.$implicit,i=P();w(),E("ngIf",!i.isRootQuestionnaire(e)),w(),E("ngIf",i.isRootQuestionnaire(e))}}function rEe(t,n){1&t&&(_(0,"th",21),k(1," Actions "),b())}function oEe(t,n){if(1&t){const e=De();_(0,"button",32),H("click",function(){j(e);const r=P().$implicit;return G(P().validate(r))}),_(1,"mat-icon"),k(2,"done"),b()()}if(2&t){const e=P().$implicit;E("disabled",P().isRootQuestionnaire(e))}}function sEe(t,n){if(1&t){const e=De();_(0,"button",33),H("click",function(){j(e);const r=P().$implicit;return G(P().assemble(r))}),_(1,"mat-icon"),k(2,"build"),b()()}}function aEe(t,n){if(1&t){const e=De();_(0,"button",34),H("click",function(){j(e);const r=P().$implicit;return G(P().preview(r))}),_(1,"mat-icon"),k(2,"visibility"),b()()}}function cEe(t,n){if(1&t){const e=De();_(0,"button",35),H("click",function(){j(e);const r=P().$implicit;return G(P().openInNewTab(r))}),_(1,"mat-icon"),k(2,"open_in_new"),b()()}}function lEe(t,n){if(1&t){const e=De();_(0,"button",36),H("click",function(){j(e);const r=P().$implicit;return G(P().editQuestionnaire(r))}),_(1,"mat-icon"),k(2,"edit"),b()()}}function dEe(t,n){if(1&t){const e=De();_(0,"button",37),H("click",function(){j(e);const r=P().$implicit;return G(P().openModularQuestionnaireModal(r))}),_(1,"mat-icon"),k(2,"edit"),b()()}}function uEe(t,n){if(1&t){const e=De();_(0,"td",18),W(1,oEe,3,1,"button",22)(2,sEe,3,0,"button",23)(3,aEe,3,0,"button",24)(4,cEe,3,0,"button",25),_(5,"button",26),H("click",function(){const r=j(e).$implicit;return G(P().saveQuestionnaire(r))}),_(6,"mat-icon"),k(7,"cloud_download"),b()(),W(8,lEe,3,0,"button",27)(9,dEe,3,0,"button",28),_(10,"button",29),H("click",function(){const r=j(e).$implicit;return G(P().viewHistory(r))}),_(11,"mat-icon"),k(12,"history"),b()(),_(13,"span",30)(14,"button",31),H("click",function(){const r=j(e).$implicit;return G(P().deleteQuestionnaire(r))}),_(15,"mat-icon"),k(16,"delete"),b()()()()}if(2&t){const e=n.$implicit,i=P();w(),E("ngIf",i.config.validate),w(),E("ngIf",i.isRootQuestionnaire(e)),w(),E("ngIf",i.config.preview&&!i.isRootQuestionnaire(e)),w(),E("ngIf",i.config.preview),w(4),E("ngIf",!i.isRootQuestionnaire(e)),w(),E("ngIf",i.isRootQuestionnaire(e)),w(),E("disabled",1==e.meta.versionId),w(3),Wf("matTooltip",i.getDeleteTooltip(e)),w(),E("disabled",i.getReferencingQuestionnaires(e).length>0)}}function hEe(t,n){1&t&&we(0,"tr",38)}function fEe(t,n){1&t&&we(0,"tr",39)}function mEe(t,n){1&t&&(_(0,"p",40)(1,"i"),k(2," No questionnaires found. Upload your questionnaires to start. "),b()())}function pEe(t,n){1&t&&we(0,"mat-spinner",41)}function gEe(t,n){if(1&t){const e=De();_(0,"button",42),H("click",function(){return j(e),G(P().downloadAllQuestionnaires())}),k(1," Download bundle "),b()}}let zH=(()=>{class t{constructor(e,i,r,o){this.fhirService=e,this.questionnaireService=i,this.dialog=r,this._snackBar=o,this.questionnaireSelected=new Se,this.validateQuestionnaire=new Se,this.previewQuestionnaire=new Se,this.viewQuestionaireHistory=new Se,this.config={},this.displayedColumns=["title","status","version","type","actions"],this.dataSource=new Bu,this.questionnaires=[],this.loading=!1,this.selectedFhirServer="",this.selectedUserTag="",this.notFound=!1,this.baseUrlChanged=new Re,this.userTagChanged=new Re}ngOnInit(){jc([this.fhirService.baseUrl$.pipe(Gc(1e3),rc()),this.fhirService.userTag$.pipe(Gc(1e3),rc())]).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(Ni,{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(Ni,{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"});cc(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(Ni,{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(Ni,{duration:2e3,data:"Questionnaire ready",panelClass:["green-snackbar"]})}).catch(i=>{console.error("Error assembling questionnaire:",i)})}editQuestionnaire(e){this.saveQuestionnaire(e),window.open("https://lhcformbuilder.nlm.nih.gov/","_blank")}openModularQuestionnaireModal(e){var i=this;return fe(function*(){let r=yield i.questionnaireService.getRootQuestionnaireData(e);i.dialog.open(VH,{data:r,width:"75%"}).afterClosed().subscribe(s=>{s&&i.handleDialogResult(s,e)})})()}handleDialogResult(e,i){var r=this;return fe(function*(){r._snackBar.openFromComponent(Ni,{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(xa()).subscribe(s=>{r._snackBar.openFromComponent(Ni,{duration:5e3,data:"Questionnaire updated successfully",panelClass:["green-snackbar"]}),r.updateQuestionnairesList(s)},s=>{r._snackBar.openFromComponent(Ni,{duration:5e3,data:"Error saving questionnaire",panelClass:["red-snackbar"]})}))}catch(o){console.error("Error handling dialog result:",o)}})()}downloadAllQuestionnaires(){this._snackBar.openFromComponent(Ni,{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"});cc(i,"questionnaires-bundle.json"),this._snackBar.openFromComponent(Ni,{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)(y(Fm),y(UH),y(Rm),y(km))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["app-list-questionnaires"]],viewQuery:function(i,r){if(1&i&&pt(gd,5),2&i){let o;Pe(o=Fe())&&(r.sort=o.first)}},inputs:{config:"config"},outputs:{questionnaireSelected:"questionnaireSelected",validateQuestionnaire:"validateQuestionnaire",previewQuestionnaire:"previewQuestionnaire",viewQuestionaireHistory:"viewQuestionaireHistory"},features:[Wn],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),Gt(2,2),W(3,Qke,2,0,"th",3)(4,Kke,2,1,"td",4),Wt(),Gt(5,5),W(6,Xke,2,0,"th",3)(7,Yke,4,6,"td",4),Wt(),Gt(8,6),W(9,Zke,2,0,"th",3)(10,Jke,2,1,"td",4),Wt(),Gt(11,7),W(12,eEe,2,0,"th",3)(13,iEe,3,2,"td",4),Wt(),Gt(14,8),W(15,rEe,2,0,"th",9)(16,uEe,17,9,"td",4),Wt(),W(17,hEe,1,0,"tr",10)(18,fEe,1,0,"tr",11),b(),W(19,mEe,3,0,"p",12)(20,pEe,1,0,"mat-spinner",13),b(),_(21,"div",14)(22,"div",15),W(23,gEe,2,0,"button",16),b()()),2&i&&(w(),E("dataSource",r.dataSource),w(16),E("matHeaderRowDef",r.displayedColumns),w(),E("matRowDefColumns",r.displayedColumns),w(),E("ngIf",r.notFound&&!r.questionnaires.length),w(),E("ngIf",r.loading),w(3),E("ngIf",!r.loading&&r.questionnaires.length>0))},dependencies:[ba,si,xo,Ks,Co,od,sd,tl,ad,nl,el,cd,il,rl,ld,dd,$u,gd,oA,CD],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})(),_Ee=(()=>{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)(y(pd))};static#t=this.\u0275cmp=Ge({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),H("questionnaireSelected",function(s){return r.selectAndDownload(s)}),b()(),_(4,"mat-dialog-actions",1)(5,"button",2),k(6,"Close"),b()()),2&i&&(w(3),E("config",r.listConfig))},dependencies:[xo,h0,dw,uw,zH]})}return t})();const vEe=["settingsForm"];function bEe(t,n){1&t&&(_(0,"mat-error"),k(1,"Base URL is required"),b())}function yEe(t,n){1&t&&(_(0,"mat-error"),k(1,"User Tag is required and must be at least 3 characters"),b())}let sA=(()=>{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)(y(Fm),y(pd))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["app-fhir-server-settings-modal"]],viewQuery:function(i,r){if(1&i&&pt(vEe,5),2&i){let o;Pe(o=Fe())&&(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=De();_(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),H("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),Lr("ngModelChange",function(a){return j(o),Yr(r.baseUrl,a)||(r.baseUrl=a),G(a)}),b(),W(17,bEe,2,0,"mat-error",7),b(),_(18,"mat-form-field")(19,"mat-label"),k(20,"User Tag"),b(),_(21,"input",8,2),Lr("ngModelChange",function(a){return j(o),Yr(r.userTag,a)||(r.userTag=a),G(a)}),b(),W(23,yEe,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=Nt(11),s=Nt(16),a=Nt(22);w(15),Nr("ngModel",r.baseUrl),w(2),E("ngIf",s.invalid&&s.touched),w(4),Nr("ngModel",r.userTag),w(2),E("ngIf",a.invalid&&a.touched),w(2),E("disabled",!o.valid)}},dependencies:[si,xo,Ea,Fs,hz,md,r0,Xs,cs,Y_,Q1,LI,Ps,zu,h0],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})(),HH=(()=>{class t{constructor(e,i){this.data=e,this.dialogRef=i}static#e=this.\u0275fac=function(i){return new(i||t)(y(lw),y(pd))};static#t=this.\u0275cmp=Ge({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&&(w(),nt(r.data.title),w(3),nt(r.data.message),w(2),E("mat-dialog-close",!0),w(2),E("mat-dialog-close",!1))},dependencies:[xo,h0,xH,dw,uw],encapsulation:2})}return t})();const xEe=new ee("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),CEe=td(class{constructor(t){this._elementRef=t}},"primary");let jH=(()=>{class t extends CEe{constructor(e,i,r,o,s){super(e),this._ngZone=i,this._changeDetectorRef=r,this._animationMode=o,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new Se,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 value(){return this._value}set value(e){this._value=$H(kr(e)),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(e){this._bufferValue=$H(kr(e)),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)(y(Ue),y(ze),y(an),y(Qn,8),y(xEe,8))};static#t=this.\u0275cmp=Ge({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:8,hostBindings:function(i,r){2&i&&(vt("aria-valuenow",r._isIndeterminate()?null:r.value)("mode",r.mode),st("_mat-animation-noopable",r._isNoopAnimation)("mdc-linear-progress--animation-ready",!r._isNoopAnimation)("mdc-linear-progress--indeterminate",r._isIndeterminate()))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[ke],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),we(1,"div",1)(2,"div",2),b(),_(3,"div",3),we(4,"span",4),b(),_(5,"div",5),we(6,"span",4),b()),2&i&&(w(),Wi("flex-basis",r._getBufferBarFlexBasis()),w(2),Wi("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)}@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=''/%3E%3C/svg%3E\")}}.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{--mdc-linear-progress-active-indicator-height:4px;--mdc-linear-progress-track-height:4px;--mdc-linear-progress-track-shape:0}.mat-mdc-progress-bar{display:block;text-align:left;--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%}[dir=rtl] .mat-mdc-progress-bar{text-align:right}.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 $H(t,n=0,e=100){return Math.max(n,Math.min(e,t))}let kEe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({imports:[Ft]})}return t})();const EEe=["questionnairesList"];function TEe(t,n){if(1&t&&(_(0,"div",20),we(1,"mat-progress-bar",21),_(2,"div",22),k(3),b()()),2&t){const e=P();w(),E("value",e.validatingProgress),w(2),Je("",e.validatingProgress,"%")}}function SEe(t,n){1&t&&(_(0,"span"),k(1,"Run validation"),b())}function DEe(t,n){1&t&&we(0,"mat-spinner",23)}function IEe(t,n){if(1&t&&(_(0,"span",29),k(1),b()),2&t){const e=P(2);w(),Je("Error: ",e.loadResults.error,"")}}function AEe(t,n){if(1&t&&(_(0,"span",30),k(1),b()),2&t){const e=P(2);w(),Je("Inactive: ",e.loadResults.inactive,"")}}function MEe(t,n){if(1&t&&(_(0,"span",31),k(1),b()),2&t){const e=P(2);w(),Je("Active: ",e.loadResults.active,"")}}function REe(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),go(10,"date"),W(11,IEe,2,1,"span",26)(12,AEe,2,1,"span",27)(13,MEe,2,1,"span",28),b()),2&t){const e=P();w(3),Je(" ",e.questionnaire.title," ("),w(2),nt(e.questionnaire.url),w(3),Je("",e.dataSource.data.length," bindings"),w(),bu(" - - Version: ",e.questionnaire.meta.versionId," (",yu(10,8,e.questionnaire.meta.lastUpdated,"fullDate"),") "),w(2),E("ngIf",e.loadResults.total>0),w(),E("ngIf",e.loadResults.total>0),w(),E("ngIf",e.loadResults.total>0)}}function PEe(t,n){1&t&&(_(0,"th",32),k(1," # "),b())}function FEe(t,n){if(1&t&&(_(0,"td",33),k(1),b()),2&t){const e=n.$implicit;w(),Je(" ",e.order," ")}}function OEe(t,n){1&t&&(_(0,"th",32),k(1," FHIRPath "),b())}function NEe(t,n){if(1&t&&(_(0,"td",33),k(1),b()),2&t){const e=n.$implicit;w(),Je(" ",e.path," ")}}function LEe(t,n){1&t&&(_(0,"th",32),k(1," Path "),b())}function BEe(t,n){if(1&t&&(_(0,"td",33),k(1),b()),2&t){const e=n.$implicit;w(),Je(" ",e.readablePath," ")}}function VEe(t,n){1&t&&(_(0,"th",32),k(1,"Code "),b())}function UEe(t,n){if(1&t&&(_(0,"td",33)(1,"a",34),k(2),b()()),2&t){const e=n.$implicit;w(),ex("href","http://snomed.info/id/",e.code,"",my),w(),nt(e.code)}}function zEe(t,n){1&t&&(_(0,"th",32),k(1," Display "),b())}function HEe(t,n){if(1&t&&(_(0,"p",38),k(1),b()),2&t){const e=P().$implicit;w(),Je("Concept FSN: ",e.serverDisplay,"")}}function jEe(t,n){1&t&&(_(0,"p",39),k(1,"Concept is inactive"),b())}function $Ee(t,n){if(1&t){const e=De();_(0,"p",40),k(1),_(2,"button",41),H("click",function(){const r=j(e).$implicit,o=P().$implicit;return G(P().replaceInactiveConcept(o,r.replacement))}),_(3,"mat-icon"),k(4,"arrow_forward"),b()()()}if(2&t){const e=n.$implicit,i=P(2);w(),Zg(" Replacement: ",e.equivalence," to ",e.replacement.code," |",e.replacement.display,"| "),w(),E("disabled",i.validating)}}function GEe(t,n){if(1&t&&(_(0,"td",33),k(1),W(2,HEe,2,1,"p",35)(3,jEe,2,0,"p",36)(4,$Ee,5,4,"p",37),b()),2&t){const e=n.$implicit;w(),Je(" ",e.display," "),w(),E("ngIf",e.serverDisplay),w(),E("ngIf","Inactive"==e.status),w(),E("ngForOf",e.replacements)}}function WEe(t,n){1&t&&(_(0,"th",32),k(1," System "),b())}function qEe(t,n){if(1&t&&(_(0,"td",33),k(1),b()),2&t){const e=n.$implicit;w(),Je(" ",e.system," ")}}function QEe(t,n){1&t&&(_(0,"th",32),k(1," Status "),b())}function KEe(t,n){1&t&&(_(0,"span"),we(1,"mat-progress-bar",42),b())}function XEe(t,n){if(1&t&&(_(0,"span")(1,"span",43),k(2),b()()),2&t){const e=P().$implicit;w(),E("ngClass",e.status),w(),nt(e.status)}}function YEe(t,n){if(1&t&&(_(0,"td",33),W(1,KEe,2,0,"span",3)(2,XEe,3,2,"span",3),b()),2&t){const e=n.$implicit;w(),E("ngIf","Validating"==e.status),w(),E("ngIf","Validating"!=e.status)}}function ZEe(t,n){1&t&&we(0,"tr",44)}function JEe(t,n){1&t&&we(0,"tr",45)}function eTe(t,n){1&t&&we(0,"mat-spinner",46)}let tTe=(()=>{class t{constructor(e){this.terminologyService=e,this.questionnaireUpdated=new Se,this.validatingQuestionnaire=new Se,this.loading=!1,this.validating=!1,this.displayedColumns=["order","readablePath","code","display","system","status"],this.dataSource=new Bu,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=fe(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(xa()).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 fe(function*(){let o=[];const s=r.terminologyService.translate(e,i);let a=yield bo(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 fe(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)(y(Jr))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["app-validate-questionnaire"]],viewQuery:function(i,r){if(1&i&&(pt(gd,5),pt(a0,5),pt(EEe,5)),2&i){let o;Pe(o=Fe())&&(r.sort=o.first),Pe(o=Fe())&&(r.tabGroup=o.first),Pe(o=Fe())&&(r.questionnairesList=o.first)}},inputs:{questionnaire:"questionnaire"},outputs:{questionnaireUpdated:"questionnaireUpdated",validatingQuestionnaire:"validatingQuestionnaire"},features:[Wn],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),W(1,TEe,4,2,"div",1),_(2,"button",2),H("click",function(){return r.validate()}),W(3,SEe,2,0,"span",3)(4,DEe,1,0,"mat-spinner",4),b()(),W(5,REe,14,11,"p",5),_(6,"div",6)(7,"table",7),Gt(8,8),W(9,PEe,2,0,"th",9)(10,FEe,2,1,"td",10),Wt(),Gt(11,11),W(12,OEe,2,0,"th",9)(13,NEe,2,1,"td",10),Wt(),Gt(14,12),W(15,LEe,2,0,"th",9)(16,BEe,2,1,"td",10),Wt(),Gt(17,13),W(18,VEe,2,0,"th",9)(19,UEe,3,3,"td",10),Wt(),Gt(20,14),W(21,zEe,2,0,"th",9)(22,GEe,5,4,"td",10),Wt(),Gt(23,15),W(24,WEe,2,0,"th",9)(25,qEe,2,1,"td",10),Wt(),Gt(26,16),W(27,QEe,2,0,"th",9)(28,YEe,3,2,"td",10),Wt(),W(29,ZEe,1,0,"tr",17)(30,JEe,1,0,"tr",18),b(),W(31,eTe,1,0,"mat-spinner",19),b()),2&i&&(w(),E("ngIf",r.validating),w(),E("disabled",r.validating||!r.questionnaire),w(),E("ngIf",!r.validating),w(),E("ngIf",r.validating),w(),E("ngIf",r.questionnaire),w(2),E("dataSource",r.dataSource),w(22),E("matHeaderRowDef",r.displayedColumns),w(),E("matRowDefColumns",r.displayedColumns),w(),E("ngIf",r.loading))},dependencies:[ba,_o,si,xo,Ks,Co,jH,od,sd,tl,ad,nl,el,cd,il,rl,ld,dd,$u,gd,oA,Tu],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 nTe=t=>["status-pill",t],iTe=()=>["status-pill","active"],rTe=()=>["status-pill","draft"];function oTe(t,n){1&t&&(_(0,"th",15),k(1," Title "),b())}function sTe(t,n){if(1&t&&(_(0,"td",16),k(1),b()),2&t){const e=n.$implicit;w(),Je(" ",e.title," ")}}function aTe(t,n){1&t&&(_(0,"th",15),k(1," Status "),b())}function cTe(t,n){if(1&t&&(_(0,"td",16)(1,"span",17),k(2),go(3,"uppercase"),b()()),2&t){const e=n.$implicit;w(),E("ngClass",_a(4,nTe,e.status)),w(),nt(Ya(3,2,e.status))}}function lTe(t,n){1&t&&(_(0,"th",15),k(1," Version "),b())}function dTe(t,n){if(1&t&&(_(0,"td",16),k(1),b()),2&t){const e=n.$implicit;w(),Je(" ",e.meta.versionId," ")}}function uTe(t,n){1&t&&(_(0,"th",15),k(1," Date "),b())}function hTe(t,n){if(1&t&&(_(0,"td",16)(1,"i"),k(2),go(3,"date"),b()()),2&t){const e=n.$implicit;w(2),nt(yu(3,1,e.meta.lastUpdated,"MMMM d, y, h:mm:ss a"))}}function fTe(t,n){1&t&&(_(0,"th",15),k(1," Type "),b())}function mTe(t,n){1&t&&(_(0,"span",17),k(1,"QUESTIONNAIRE"),b()),2&t&&E("ngClass",Ds(1,iTe))}function pTe(t,n){1&t&&(_(0,"span",17),k(1,"MODULAR ROOT"),b()),2&t&&E("ngClass",Ds(1,rTe))}function gTe(t,n){if(1&t&&(_(0,"td",16),W(1,mTe,2,2,"span",18)(2,pTe,2,2,"span",18),b()),2&t){const e=n.$implicit,i=P();w(),E("ngIf",!i.isRootQuestionnaire(e)),w(),E("ngIf",i.isRootQuestionnaire(e))}}function _Te(t,n){1&t&&(_(0,"th",19),k(1," Actions "),b())}function vTe(t,n){if(1&t){const e=De();_(0,"button",24),H("click",function(){j(e);const r=P().$implicit;return G(P().restore(r))}),_(1,"mat-icon"),k(2,"restore_page"),b()()}}function bTe(t,n){if(1&t){const e=De();_(0,"td",16)(1,"button",20),H("click",function(){const r=j(e).$implicit;return G(P().preview(r))}),_(2,"mat-icon"),k(3,"visibility"),b()(),_(4,"button",21),H("click",function(){const r=j(e).$implicit;return G(P().openInNewTab(r))}),_(5,"mat-icon"),k(6,"open_in_new"),b()(),_(7,"button",22),H("click",function(){const r=j(e).$implicit;return G(P().saveQuestionnaire(r))}),_(8,"mat-icon"),k(9,"cloud_download"),b()(),W(10,vTe,3,0,"button",23),b()}if(2&t){const e=n.$implicit,i=P();w(10),E("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 yTe(t,n){1&t&&we(0,"tr",25)}function xTe(t,n){1&t&&we(0,"tr",26)}function wTe(t,n){1&t&&(_(0,"p",27)(1,"i"),k(2," No questionnaire selected. "),b()())}function CTe(t,n){1&t&&we(0,"mat-spinner",28)}let kTe=(()=>{class t{constructor(e){this.fhirService=e,this.previewQuestionnaire=new Se,this.restoreQuestionnaireVersion=new Se,this.versions=[],this.loading=!1,this.selectedFhirServer="",this.selectedUserTag="",this.displayedColumns=["title","status","version","lastUpdated","type","actions"],this.dataSource=new Bu}ngOnChanges(e){e.questionnaire&&e.questionnaire.currentValue&&this.loadVersions()}ngOnInit(){jc([this.fhirService.baseUrl$.pipe(Gc(1e3),rc()),this.fhirService.userTag$.pipe(Gc(1e3),rc())]).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"});cc(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)(y(Fm))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["app-questionnaire-history"]],inputs:{questionnaire:"questionnaire"},outputs:{previewQuestionnaire:"previewQuestionnaire",restoreQuestionnaireVersion:"restoreQuestionnaireVersion"},features:[Wn],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),Gt(2,2),W(3,oTe,2,0,"th",3)(4,sTe,2,1,"td",4),Wt(),Gt(5,5),W(6,aTe,2,0,"th",3)(7,cTe,4,6,"td",4),Wt(),Gt(8,6),W(9,lTe,2,0,"th",3)(10,dTe,2,1,"td",4),Wt(),Gt(11,7),W(12,uTe,2,0,"th",3)(13,hTe,4,4,"td",4),Wt(),Gt(14,8),W(15,fTe,2,0,"th",3)(16,gTe,3,2,"td",4),Wt(),Gt(17,9),W(18,_Te,2,0,"th",10)(19,bTe,11,1,"td",4),Wt(),W(20,yTe,1,0,"tr",11)(21,xTe,1,0,"tr",12),b(),W(22,wTe,3,0,"p",13)(23,CTe,1,0,"mat-spinner",14),b()),2&i&&(w(),E("dataSource",r.dataSource),w(19),E("matHeaderRowDef",r.displayedColumns),w(),E("matRowDefColumns",r.displayedColumns),w(),E("ngIf",!r.questionnaire),w(),E("ngIf",r.loading))},dependencies:[ba,si,Ks,Co,od,sd,tl,ad,nl,el,cd,il,rl,ld,dd,$u,gd,oA,CD,Tu],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 ETe=["questionnairesList"],TTe=["fileInput"],STe=["questionnaireHistory"];function DTe(t,n){1&t&&(_(0,"span"),k(1," / Validator"),b())}function ITe(t,n){1&t&&(_(0,"span"),k(1," / Questionnaires repository"),b())}function ATe(t,n){if(1&t){const e=De();_(0,"span",19)(1,"a",20),H("click",function(){return j(e),G(P(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=P(2);w(7),Je(" ( ",e.selectedFhirServer,' as "'),w(2),nt(e.selectedUserTag)}}function MTe(t,n){if(1&t){const e=De();_(0,"div",10)(1,"p"),k(2,"What do you want to do today?"),b(),_(3,"mat-radio-group",11),Lr("ngModelChange",function(r){j(e);const o=P();return Yr(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(),W(12,ATe,11,2,"span",16),b(),_(13,"div",17)(14,"button",18),H("click",function(){return j(e),G(P().advanceFromStep1())}),k(15,"Next"),b()()()}if(2&t){const e=P();w(3),Nr("ngModel",e.step1Response),w(9),E("ngIf",e.selectedFhirServer&&e.selectedUserTag),w(2),E("disabled",!e.step1Response)}}function RTe(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=P(2);w(3),nt(e.selectedFhirServer),w(3),nt(e.selectedUserTag)}}function PTe(t,n){if(1&t){const e=De();_(0,"button",18),H("click",function(){return j(e),G(P(2).openModularQuestionnaireModal())}),k(1," Create Modular Questionnaire "),b()}2&t&&E("disabled",P(2).validating)}function FTe(t,n){if(1&t){const e=De();_(0,"mat-tab",35)(1,"div",28)(2,"app-list-questionnaires",36,3),H("validateQuestionnaire",function(r){return j(e),G(P(2).switchToValidateTab(r))})("previewQuestionnaire",function(r){return j(e),G(P(2).switchToPreviewTab(r))})("viewQuestionaireHistory",function(r){return j(e),G(P(2).switchToHistoryTab(r))}),b()()()}if(2&t){const e=P(2);w(2),E("config",e.listConfig)}}function OTe(t,n){if(1&t&&(_(0,"h4"),k(1),go(2,"date"),b()),2&t){const e=P(2);w(),Zg("",e.questionnaire.title," - Version: ",e.questionnaire.meta.versionId," (",yu(2,3,e.questionnaire.meta.lastUpdated,"fullDate"),")")}}function NTe(t,n){if(1&t){const e=De();_(0,"div")(1,"div",22),W(2,RTe,8,2,"span",8),_(3,"input",23,0),H("change",function(r){return j(e),G(P().onFileSelected(r))}),b(),_(5,"button",18),H("click",function(){return j(e),G(Nt(4).click())}),k(6," Upload "),b(),_(7,"button",18),H("click",function(){return j(e),G(P().saveQuestionnaireToDisk())}),k(8,"Download"),b(),W(9,PTe,2,1,"button",24),b(),_(10,"mat-tab-group",25),H("selectedIndexChange",function(r){return j(e),G(P().onTabChange(r))}),W(11,FTe,4,1,"mat-tab",26),_(12,"mat-tab",27)(13,"div",28),W(14,OTe,3,6,"h4",8),we(15,"div",29),b()(),_(16,"mat-tab",30)(17,"app-validate-questionnaire",31,1),H("questionnaireUpdated",function(r){return j(e),G(P().loadQuestionnaire(r))})("validatingQuestionnaire",function(r){return j(e),G(P().validating=r)}),b()(),_(19,"mat-tab",32)(20,"app-questionnaire-history",33,2),H("previewQuestionnaire",function(r){return j(e),G(P().switchToPreviewTab(r))})("restoreQuestionnaireVersion",function(r){return j(e),G(P().saveQuestionnaire(r))}),b()()()()}if(2&t){const e=P();w(2),E("ngIf","Manager"==e.mode),w(3),E("disabled",e.validating),w(2),E("disabled",e.validating||!e.questionnaire),w(2),E("ngIf","Manager"==e.mode),w(2),E("ngIf","Manager"===e.mode),w(3),E("ngIf",e.questionnaire),w(),st("hidden",!e.questionnaire),w(2),E("questionnaire",e.questionnaire),w(3),E("questionnaire",e.questionnaire)}}let LTe=(()=>{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(sA,{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(){bo(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()}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"});cc(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(Ni,{duration:5e3,data:"The file is not a FHIR Questionnaire Resource",panelClass:["red-snackbar"]})}catch(s){console.error(s),this._snackBar.openFromComponent(Ni,{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(HH,{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(Ni,{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(HH,{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(Ni,{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(Ni,{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(xa()).subscribe(i=>{setTimeout(()=>{this.tabGroup.selectedIndex=0,setTimeout(()=>{this.savingQuestionnaire=!1,this.questionnairesList.addQuestionnaire(i)},300)},300),this._snackBar.openFromComponent(Ni,{duration:5e3,data:"Questionnaire saved successfully",panelClass:["green-snackbar"]})},i=>{this.savingQuestionnaire=!1,this._snackBar.openFromComponent(Ni,{duration:5e3,data:"Error saving questionnaire",panelClass:["red-snackbar"]})})}listQuestionnaires(){this.fhirService.getQuestionnairesByTag(this.selectedUserTag).pipe(xa()).subscribe(e=>{},e=>{console.error(e)})}openLoadQuestionnairesDialog(){this.dialog.open(_Ee,{width:"70%"}).afterClosed().subscribe(i=>{this.loadQuestionnaire(i)})}setFhirServer(){this.fhirService.setBaseUrl(this.selectedFhirServer),this.fhirService.setUserTag(this.selectedUserTag)}setupFhirServer(){this.dialog.open(sA,{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(sA,{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(VH,{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)(y(Yl),y(Jr),y(Fm),y(UH),y(Rm),y(km))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["app-questionnaires-main"]],viewQuery:function(i,r){if(1&i&&(pt(gd,5),pt(a0,5),pt(ETe,5),pt(TTe,5),pt(STe,5)),2&i){let o;Pe(o=Fe())&&(r.sort=o.first),Pe(o=Fe())&&(r.tabGroup=o.first),Pe(o=Fe())&&(r.questionnairesList=o.first),Pe(o=Fe())&&(r.uploadInput=o.first),Pe(o=Fe())&&(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),H("click",function(){return r.mode="step1"}),k(6,"Home"),b(),W(7,DTe,2,0,"span",8)(8,ITe,2,0,"span",8),b()()(),W(9,MTe,16,3,"div",9)(10,NTe,22,10,"div",8)),2&i&&(w(7),E("ngIf","Validator"==r.mode),w(),E("ngIf","Manager"==r.mode),w(),E("ngIf","step1"==r.mode),w(),E("ngIf","Manager"==r.mode||"Validator"==r.mode))},dependencies:[si,xo,Co,cs,tw,a0,Ps,nA,iA,zH,tTe,kTe,Tu],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 BTe=t=>({"bg-pink":t});function VTe(t,n){if(1&t&&(_(0,"p",18),k(1),b()),2&t){const e=P();w(),nt(e.studentSubsetDefinition)}}function UTe(t,n){1&t&&we(0,"mat-spinner",19)}function zTe(t,n){if(1&t&&(_(0,"p",23),k(1),b()),2&t){const e=P(2);w(),nt(e.definitionVsMembersValidationResult)}}function HTe(t,n){if(1&t&&(_(0,"p",23),k(1),b()),2&t){const e=P(2);w(),nt(e.keyConceptValidationResult)}}function jTe(t,n){if(1&t&&(_(0,"div",20)(1,"h3",21),k(2,"Validation Results"),b(),W(3,zTe,2,1,"p",22)(4,HTe,2,1,"p",22),_(5,"p",23),k(6),b(),_(7,"p",23),k(8),b()()),2&t){const e=P();w(3),E("ngIf",e.selectedAssignment.referenceDefinition),w(),E("ngIf",e.selectedAssignment.referenceDefinition),w(2),nt(e.membersNotInRefrenceListResult),w(2),nt(e.refrenceListVsStudentListResult)}}function $Te(t,n){1&t&&(_(0,"th",33),k(1,"ID"),b())}function GTe(t,n){if(1&t&&(_(0,"td",34),k(1),b()),2&t){const e=n.$implicit;w(),nt(e.referencedComponentId)}}function WTe(t,n){1&t&&(_(0,"th",33),k(1,"Name"),b())}function qTe(t,n){if(1&t&&(_(0,"td",34),k(1),b()),2&t){const e=n.$implicit;w(),nt(e.name)}}function QTe(t,n){1&t&&(_(0,"th",33),k(1,"Result"),b())}function KTe(t,n){1&t&&(_(0,"span"),k(1,"OK"),b())}function XTe(t,n){if(1&t&&(_(0,"span"),k(1),b()),2&t){const e=P(2).$implicit;w(),Je(" ",e.customMessage.note," ")}}function YTe(t,n){1&t&&(_(0,"span"),k(1," Error "),b())}function ZTe(t,n){if(1&t&&(_(0,"span"),W(1,KTe,2,0,"span",16)(2,XTe,2,1,"span",16)(3,YTe,2,0,"span",16),b()),2&t){const e=P().$implicit;w(),E("ngIf",null==e||null==e.inReferenceList?null:e.inReferenceList.value),w(),E("ngIf",!(null!=e&&null!=e.inReferenceList&&e.inReferenceList.value)&&(null==e||null==e.customMessage?null:e.customMessage.value)),w(),E("ngIf",!(null!=e&&null!=e.inReferenceList&&e.inReferenceList.value||null!=e&&null!=e.customMessage&&e.customMessage.value))}}function JTe(t,n){if(1&t&&(_(0,"td",34),W(1,ZTe,4,3,"span",16),b()),2&t){const e=P(2);w(),E("ngIf",e.membersValidationResult)}}function eSe(t,n){1&t&&we(0,"tr",35)}function tSe(t,n){if(1&t&&we(0,"tr",36),2&t){const e=n.$implicit,i=P(2);E("ngClass",_a(1,BTe,!(null!=e.inReferenceList&&e.inReferenceList.value)&&i.membersValidationResult))}}function nSe(t,n){if(1&t&&(_(0,"div",24)(1,"table",25),Gt(2,26),W(3,$Te,2,0,"th",27)(4,GTe,2,1,"td",28),Wt(),Gt(5,29),W(6,WTe,2,0,"th",27)(7,qTe,2,1,"td",28),Wt(),Gt(8,30),W(9,QTe,2,0,"th",27)(10,JTe,2,1,"td",28),Wt(),W(11,eSe,1,0,"tr",31)(12,tSe,1,3,"tr",32),b()()),2&t){const e=P();w(),E("dataSource",e.studentSubsetMembersDataSource),w(10),E("matHeaderRowDef",e.studentSubsetMembersDisplayedColumns),w(),E("matRowDefColumns",e.studentSubsetMembersDisplayedColumns)}}function iSe(t,n){if(1&t){const e=De();_(0,"button",40),H("click",function(){const r=j(e).$implicit;return G(P(2).setAssignment(r))}),k(1),b()}if(2&t){const e=n.$implicit;w(),nt(e.name)}}function rSe(t,n){if(1&t&&(_(0,"div")(1,"h3"),k(2,"Assignment"),b(),_(3,"button",37),k(4),b(),_(5,"mat-menu",38,2),W(7,iSe,2,1,"button",39),b()()),2&t){const e=Nt(6),i=P();w(3),E("matMenuTriggerFor",e),w(),Je("Selected assignment: ",null==i.selectedAssignment?null:i.selectedAssignment.name,""),w(3),E("ngForOf",i.assignments)}}function oSe(t,n){if(1&t&&(_(0,"h3"),k(1),b()),2&t){const e=P();w(),Je(" Assignment: ",null==e.selectedAssignment?null:e.selectedAssignment.name," ")}}function sSe(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 aSe(t,n){1&t&&(_(0,"ol")(1,"li"),k(2,"1- Upload members file"),b(),_(3,"li"),k(4,"2- Click validate"),b()())}function cSe(t,n){if(1&t){const e=De();_(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),Lr("ngModelChange",function(r){j(e);const o=P();return Yr(o.assignmentsString,r)||(o.assignmentsString=r),G(r)}),b()(),_(8,"button",11),H("click",function(){return j(e),G(P().updateAssignments())}),k(9,"Update Assignments"),b()()()}if(2&t){const e=P();w(7),Nr("ngModel",e.assignmentsString)}}let lSe=(()=>{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 Bu,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 Bu(this.selectedAssignment.referenceData)}ngOnInit(){var e=this;return fe(function*(){const i=yield bo(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 Bu(this.selectedAssignment.referenceData))}checkStudentECLvsStudentList(){var e=this;return fe(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 fe(function*(){if(e.loading=!0,e.keyConceptValidationResult="",e.definitionVsMembersValidationResult="",e.membersValidationResult=!1,e.loading=!0,e.studentSubsetDefinition){let o=yield e.checkStudentECLvsStudentList();e.definitionVsMembersValidationResult=o>0?e.error+" "+o+" members not found in student ECL":e.ok+" All members found in student ECL",e.keyConceptValidationResult=e.checkStudentECLvsKeyConcept()?e.ok+" Student ECL contains all key concepts":e.error+" Student ECL does not contain all key concepts"}e.checkStudentListVsReferenceList();let i=e.studentSubsetmembers.filter(o=>!o.inReferenceList.value).length;e.membersNotInRefrenceListResult=i>0?e.error+" "+i+" members not found in reference list":e.ok+" All members found in reference list",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 Bu,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(Ni,{duration:5e3,data:"Error reading file: "+s.message,panelClass:["red-snackbar"]}),this.loading=!1}},r.onerror=o=>{this._snackBar.openFromComponent(Ni,{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(Ni,{duration:5e3,data:"Error reading file: "+s.message,panelClass:["red-snackbar"]}),this.loading=!1}},r.onerror=o=>{this._snackBar.openFromComponent(Ni,{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)(y(Yl),y(Jr),y(km),y(Ql))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["app-subset-validator"]],viewQuery:function(i,r){if(1&i&&pt(gd,5),2&i){let o;Pe(o=Fe())&&(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=De();_(0,"div",3)(1,"div",4)(2,"div",5)(3,"h3"),k(4,"Subset Members Validator"),b(),_(5,"p",6),k(6),b(),W(7,VTe,2,1,"p",7),_(8,"input",8,0),H("change",function(a){return j(o),G(r.onSubsetmembersFileSelected(a))}),b(),_(10,"input",8,1),H("change",function(a){return j(o),G(r.onDefinitionFileSelected(a))}),b(),_(12,"div",9)(13,"button",10),H("click",function(){return j(o),G(Nt(11).click())}),k(14," Upload Definition File "),b(),_(15,"button",11),H("click",function(){return j(o),G(Nt(9).click())}),k(16,"Upload Members File"),b(),_(17,"button",10),H("click",function(){return j(o),G(r.validateAssignment())}),k(18,"Validate"),b(),W(19,UTe,1,0,"mat-spinner",12),b(),W(20,jTe,9,4,"div",13),b(),W(21,nSe,13,3,"div",14),b(),_(22,"div",15),W(23,rSe,8,3,"div",16)(24,oSe,2,1,"h3",16),_(25,"h3"),k(26,"Instructions"),b(),_(27,"div",17),W(28,sSe,7,0,"ol",16)(29,aSe,5,0,"ol",16),b(),W(30,cSe,10,1,"div",16),b()()}2&i&&(w(6),Je("Validating against ",r.terminologyService.getFhirUrlParam(),""),w(),E("ngIf",r.studentSubsetDefinition),w(6),E("disabled",!r.selectedAssignment.referenceDefinition),w(4),E("disabled",!r.studentSubsetMembersDataSource.data.length),w(2),E("ngIf",r.loading),w(),E("ngIf",!r.loading&&r.membersNotInRefrenceListResult),w(),E("ngIf",!r.loading&&r.studentSubsetMembersDataSource.data.length),w(2),E("ngIf",!r.embeddedMode),w(),E("ngIf",r.embeddedMode),w(4),E("ngIf",r.selectedAssignment.referenceDefinition),w(),E("ngIf",!r.selectedAssignment.referenceDefinition),w(),E("ngIf",!r.embeddedMode))},dependencies:[ba,_o,si,xo,Nu,sc,Lu,Ea,Fs,od,md,Xs,cs,sd,tl,ad,nl,el,cd,il,rl,ld,dd,Ps],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 GH=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},WH={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(GH(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 mSe extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const fw=function(t){return function(t){const n=GH(t);return WH.encodeByteArray(n,!0)}(t).replace(/\./g,"")},mw=()=>{try{return function _Se(){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 WH.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}`)}},QH=()=>{var t;return null===(t=mw())||void 0===t?void 0:t.config};class KH{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 vd(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function YH(){try{return"object"==typeof indexedDB}catch{return!1}}class Om extends Error{constructor(n,e,i){super(e),this.code=n,this.customData=i,this.name="FirebaseError",Object.setPrototypeOf(this,Om.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,ZH.prototype.create)}}class ZH{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 SSe(t,n){return t.replace(DSe,(e,i)=>{const r=n[i];return null!=r?String(r):`<${i}?>`})}(o,i):"Error";return new Om(r,`${this.serviceName}: ${s} (${r}).`,i)}}const DSe=/\{\$([^}]+)}/g;function f0(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(ej(o)&&ej(s)){if(!f0(o,s))return!1}else if(o!==s)return!1}for(const r of i)if(!e.includes(r))return!1;return!0}function ej(t){return null!==t&&"object"==typeof t}function Ta(t){return t&&t._delegate?t._delegate:t}class m0{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 Gu="[DEFAULT]";class NSe{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 KH;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 BSe(t){return"EAGER"===t.instantiationMode}(n))try{this.getOrInitializeService({instanceIdentifier:Gu})}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=Gu){this.instancesDeferred.delete(n),this.instancesOptions.delete(n),this.instances.delete(n)}delete(){var n=this;return fe(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=Gu){return this.instances.has(n)}getOptions(n=Gu){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===Gu?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=Gu){return this.component?this.component.multipleInstances?n:Gu:n}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class VSe{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 NSe(n,this);return this.providers.set(n,e),e}getProviders(){return Array.from(this.providers.values())}}const uA=[];var Tn=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}(Tn||{});const tj={debug:Tn.DEBUG,verbose:Tn.VERBOSE,info:Tn.INFO,warn:Tn.WARN,error:Tn.ERROR,silent:Tn.SILENT},USe=Tn.INFO,zSe={[Tn.DEBUG]:"log",[Tn.VERBOSE]:"log",[Tn.INFO]:"info",[Tn.WARN]:"warn",[Tn.ERROR]:"error"},HSe=(t,n,...e)=>{if(nn.some(e=>t instanceof e);let ij,rj;const oj=new WeakMap,hA=new WeakMap,sj=new WeakMap,fA=new WeakMap,mA=new WeakMap;let pA={get(t,n,e){if(t instanceof IDBTransaction){if("done"===n)return hA.get(t);if("objectStoreNames"===n)return t.objectStoreNames||sj.get(t);if("store"===n)return e.objectStoreNames[1]?void 0:e.objectStore(e.objectStoreNames[0])}return bd(t[n])},set:(t,n,e)=>(t[n]=e,!0),has:(t,n)=>t instanceof IDBTransaction&&("done"===n||"store"===n)||n in t};function XSe(t){return"function"==typeof t?function KSe(t){return t!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function GSe(){return rj||(rj=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(t)?function(...n){return t.apply(gA(this),n),bd(oj.get(this))}:function(...n){return bd(t.apply(gA(this),n))}:function(n,...e){const i=t.call(gA(this),n,...e);return sj.set(i,n.sort?n.sort():[n]),bd(i)}}(t):(t instanceof IDBTransaction&&function qSe(t){if(hA.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)});hA.set(t,n)}(t),jSe(t,function $Se(){return ij||(ij=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(t,pA):t)}function bd(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(bd(t.result)),r()},s=()=>{i(t.error),r()};t.addEventListener("success",o),t.addEventListener("error",s)});return n.then(e=>{e instanceof IDBCursor&&oj.set(e,t)}).catch(()=>{}),mA.set(n,t),n}(t);if(fA.has(t))return fA.get(t);const n=XSe(t);return n!==t&&(fA.set(t,n),mA.set(n,t)),n}const gA=t=>mA.get(t),ZSe=["get","getKey","getAll","getAllKeys","count"],JSe=["put","add","delete","clear"],_A=new Map;function aj(t,n){if(!(t instanceof IDBDatabase)||n in t||"string"!=typeof n)return;if(_A.get(n))return _A.get(n);const e=n.replace(/FromIndex$/,""),i=n!==e,r=JSe.includes(e);if(!(e in(i?IDBIndex:IDBObjectStore).prototype)||!r&&!ZSe.includes(e))return;const o=function(){var s=fe(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 _A.set(n,o),o}!function QSe(t){pA=t(pA)}(t=>({...t,get:(n,e,i)=>aj(n,e)||t.get(n,e,i),has:(n,e)=>!!aj(n,e)||t.has(n,e)}));class eDe{constructor(n){this.container=n}getPlatformInfoString(){return this.container.getProviders().map(e=>{if(function tDe(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 vA="@firebase/app",Wu=new nj("@firebase/app"),gw="[DEFAULT]",SDe={[vA]:"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"},qu=new Map,_w=new Map;function DDe(t,n){try{t.container.addComponent(n)}catch(e){Wu.debug(`Component ${n.name} failed to register with FirebaseApp ${t.name}`,e)}}function vw(t){const n=t.name;if(_w.has(n))return Wu.debug(`There were multiple attempts to register component ${n}.`),!1;_w.set(n,t);for(const e of qu.values())DDe(e,t);return!0}const ol=new ZH("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 ADe{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 m0("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 ol.create("app-deleted",{appName:this._name})}}function dj(t,n={}){let e=t;"object"!=typeof n&&(n={name:n});const i=Object.assign({name:gw,automaticDataCollectionEnabled:!1},n),r=i.name;if("string"!=typeof r||!r)throw ol.create("bad-app-name",{appName:String(r)});if(e||(e=QH()),!e)throw ol.create("no-options");const o=qu.get(r);if(o){if(f0(e,o.options)&&f0(i,o.config))return o;throw ol.create("duplicate-app",{appName:r})}const s=new VSe(r);for(const c of _w.values())s.addComponent(c);const a=new ADe(e,i,s);return qu.set(r,a),a}function Nm(t,n,e){var i;let r=null!==(i=SDe[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 Wu.warn(a.join(" "))}vw(new m0(`${r}-version`,()=>({library:r,version:n}),"VERSION"))}const PDe="firebase-heartbeat-database",FDe=1,p0="firebase-heartbeat-store";let yA=null;function uj(){return yA||(yA=function YSe(t,n,{blocked:e,upgrade:i,blocking:r,terminated:o}={}){const s=indexedDB.open(t,n),a=bd(s);return i&&s.addEventListener("upgradeneeded",c=>{i(bd(s.result),c.oldVersion,c.newVersion,bd(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}(PDe,FDe,{upgrade:(t,n)=>{if(0===n)try{t.createObjectStore(p0)}catch(e){console.warn(e)}}}).catch(t=>{throw ol.create("idb-open",{originalErrorMessage:t.message})})),yA}function xA(){return(xA=fe(function*(t){try{const e=(yield uj()).transaction(p0),i=yield e.objectStore(p0).get(fj(t));return yield e.done,i}catch(n){if(n instanceof Om)Wu.warn(n.message);else{const e=ol.create("idb-get",{originalErrorMessage:n?.message});Wu.warn(e.message)}}})).apply(this,arguments)}function hj(t,n){return wA.apply(this,arguments)}function wA(){return(wA=fe(function*(t,n){try{const i=(yield uj()).transaction(p0,"readwrite");yield i.objectStore(p0).put(n,fj(t)),yield i.done}catch(e){if(e instanceof Om)Wu.warn(e.message);else{const i=ol.create("idb-set",{originalErrorMessage:e?.message});Wu.warn(i.message)}}})).apply(this,arguments)}function fj(t){return`${t.name}!${t.options.appId}`}class BDe{constructor(n){this.container=n,this._heartbeatsCache=null;const e=this.container.getProvider("app").getImmediate();this._storage=new UDe(e),this._heartbeatsCachePromise=this._storage.read().then(i=>(this._heartbeatsCache=i,i))}triggerHeartbeat(){var n=this;return fe(function*(){var e,i;const o=n.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),s=mj();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 fe(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=mj(),{heartbeatsToSend:r,unsentEntries:o}=function VDe(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),pj(e)>n){o.dates.pop();break}}else if(e.push({agent:r.agent,dates:[r.date]}),pj(e)>n){e.pop();break}i=i.slice(1)}return{heartbeatsToSend:e,unsentEntries:i}}(n._heartbeatsCache.heartbeats),s=fw(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 mj(){return(new Date).toISOString().substring(0,10)}class UDe{constructor(n){this.app=n,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return fe(function*(){return!!YH()&&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 fe(function*(){if(yield n._canUseIndexedDBPromise){const i=yield function ODe(t){return xA.apply(this,arguments)}(n.app);return i?.heartbeats?i:{heartbeats:[]}}return{heartbeats:[]}})()}overwrite(n){var e=this;return fe(function*(){var i;if(yield e._canUseIndexedDBPromise){const o=yield e.read();return hj(e.app,{lastSentHeartbeatDate:null!==(i=n.lastSentHeartbeatDate)&&void 0!==i?i:o.lastSentHeartbeatDate,heartbeats:n.heartbeats})}})()}add(n){var e=this;return fe(function*(){var i;if(yield e._canUseIndexedDBPromise){const o=yield e.read();return hj(e.app,{lastSentHeartbeatDate:null!==(i=n.lastSentHeartbeatDate)&&void 0!==i?i:o.lastSentHeartbeatDate,heartbeats:[...o.heartbeats,...n.heartbeats]})}})()}}function pj(t){return fw(JSON.stringify({version:2,heartbeats:t})).length}!function zDe(t){vw(new m0("platform-logger",n=>new eDe(n),"PRIVATE")),vw(new m0("heartbeat",n=>new BDe(n),"PRIVATE")),Nm(vA,"0.9.29",t),Nm(vA,"0.9.29","esm2017"),Nm("fire-js","")}("");var tt,HDe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Sa={},CA=CA||{},Ut=HDe||self;function bw(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 g0(t){var n=typeof t;return"object"==n&&null!=t||"function"==n}var kA="closure_uid_"+(1e9*Math.random()>>>0),$De=0;function GDe(t,n,e){return t.call.apply(t.bind,arguments)}function WDe(t,n,e){if(!t)throw Error();if(2{};Ut.addEventListener("test",e,n),Ut.removeEventListener("test",e,n)}catch{}return t}();function _0(t){return/^[\s\xa0]*$/.test(t)}function xw(){var t=Ut.navigator;return t&&(t=t.userAgent)?t:""}function lc(t){return-1!=xw().indexOf(t)}function TA(t){return TA[" "](t),t}TA[" "]=function(){};var DA,t,XDe=lc("Opera"),Lm=lc("Trident")||lc("MSIE"),vj=lc("Edge"),SA=vj||Lm,bj=lc("Gecko")&&!(-1!=xw().toLowerCase().indexOf("webkit")&&!lc("Edge"))&&!(lc("Trident")||lc("MSIE"))&&!lc("Edge"),YDe=-1!=xw().toLowerCase().indexOf("webkit")&&!lc("Edge");function yj(){var t=Ut.document;return t?t.documentMode:void 0}e:{var IA="",AA=(t=xw(),bj?/rv:([^\);]+)(\)|;)/.exec(t):vj?/Edge\/([\d\.]+)/.exec(t):Lm?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(t):YDe?/WebKit\/(\S+)/.exec(t):XDe?/(?:Version)[ \/]?(\S+)/.exec(t):void 0);if(AA&&(IA=AA?AA[1]:""),Lm){var MA=yj();if(null!=MA&&MA>parseFloat(IA)){DA=String(MA);break e}}DA=IA}var ZDe=Ut.document&&Lm&&(yj()||parseInt(DA,10))||void 0;function v0(t,n){if(Eo.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(bj){e:{try{TA(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:JDe[t.pointerType]||"",this.state=t.state,this.i=t,t.defaultPrevented&&v0.$.h.call(this)}}Ur(v0,Eo);var JDe={2:"touch",3:"pen",4:"mouse"};v0.prototype.h=function(){v0.$.h.call(this);var t=this.i;t.preventDefault?t.preventDefault():t.returnValue=!1};var b0="closure_listenable_"+(1e6*Math.random()|0),e2e=0;function t2e(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=++e2e,this.fa=this.ia=!1}function ww(t){t.fa=!0,t.listener=null,t.proxy=null,t.src=null,t.la=null}function PA(t,n,e){for(const i in t)n.call(e,t[i],i,t)}function wj(t){const n={};for(const e in t)n[e]=t[e];return n}const Cj="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function kj(t,n){let e,i;for(let r=1;r>>0);function zA(t){return"function"==typeof t?t:(t[UA]||(t[UA]=function(n){return t.handleEvent(n)}),t[UA])}function zr(){yd.call(this),this.i=new Cw(this),this.S=this,this.J=null}function to(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 Eo(n,t);else if(n instanceof Eo)n.target=n.target||t;else{var r=n;kj(n=new Eo(i,t),r)}if(r=!0,e)for(var o=e.length-1;0<=o;o--){var s=n.g=e[o];r=kw(s,i,!0,n)&&r}if(r=kw(s=n.g=t,i,!0,n)&&r,r=kw(s,i,!1,n)&&r,e)for(o=0;onew c2e,t=>t.reset());class c2e{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 l2e(t){var n=1;t=t.split(":");const e=[];for(;0{throw t},0)}let y0,x0=!1,jA=new class a2e{constructor(){this.h=this.g=null}add(n,e){const i=Aj.get();i.set(n,e),this.h?this.h.next=i:this.g=i,this.h=i}},Mj=()=>{const t=Ut.Promise.resolve(void 0);y0=()=>{t.then(u2e)}};var u2e=()=>{for(var t;t=s2e();){try{t.h.call(t.g)}catch(e){d2e(e)}var n=Aj;n.j(t),100>n.h&&(n.h++,t.next=n.g,n.g=t)}x0=!1};function Ew(t,n){zr.call(this),this.h=t||1,this.g=n||Ut,this.j=ko(this.qb,this),this.l=Date.now()}function $A(t){t.ga=!1,t.T&&(t.g.clearTimeout(t.T),t.T=null)}function GA(t,n,e){if("function"==typeof t)e&&(t=ko(t,e));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=ko(t.handleEvent,t)}return 2147483647{t.g=null,t.i&&(t.i=!1,Rj(t))},t.j);const n=t.h;t.h=null,t.m.apply(null,n)}Ur(Ew,zr),(tt=Ew.prototype).ga=!1,tt.T=null,tt.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?XA:(n=n.slice(i,i+e),t.o=i+e,n))}function S0(t){t.Y=Date.now()+t.P,Qj(t,t.P)}function Qj(t,n){if(null!=t.C)throw Error("WatchDog timer not null");t.C=k0(ko(t.lb,t),n)}function Aw(t){t.C&&(Ut.clearTimeout(t.C),t.C=null)}function D0(t){0==t.l.H||t.J||x$(t.l,t)}function Ku(t){Aw(t);var n=t.M;n&&"function"==typeof n.sa&&n.sa(),t.M=null,$A(t.V),Oj(t.U),t.g&&(n=t.g,t.g=null,n.abort(),n.sa())}function ZA(t,n){try{var e=t.l;if(0!=e.H&&(e.g==t||JA(e.i,t)))if(!t.K&&JA(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=k0(ko(e.ib,e),6e3));if(1>=r$(e.i)&&e.oa){try{e.oa()}catch{}e.oa=void 0}}else Yu(e,11)}else if((t.K||e.g==t)&&Vw(e),!_0(n))for(r=e.Ja.g.parse(n),n=0;nd)&&(3!=d||SA||this.g&&(this.h.h||this.g.ja()||f$(this.g)))){this.J||4!=d||7==n||C0(),Aw(this);var e=this.g.da();this.ca=e;t:if(Wj(this)){var i=f$(this.g);t="";var r=i.length,o=4==dc(this.g);if(!this.h.i){if(typeof TextDecoder>"u"){Ku(this),D0(this);var s="";break t}this.h.i=new Ut.TextDecoder}for(n=0;nn)throw Error("Bad port number "+n);t.m=n}else t.m=null}function Yj(t,n,e){n instanceof M0?(t.i=n,function S2e(t,n){n&&!t.j&&(xd(t),t.i=null,t.g.forEach(function(e,i){var r=i.toLowerCase();i!=r&&(Jj(this,i),t$(this,r,e))},t)),t.j=n}(t.i,t.h)):(e||(n=A0(n,E2e)),t.i=new M0(n,t.h))}function Ci(t,n,e){t.i.set(n,e)}function Pw(t){return Ci(t,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),t}function I0(t,n){return t?n?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function A0(t,n,e){return"string"==typeof t?(t=encodeURI(t).replace(n,w2e),e&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function w2e(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}Xu.prototype.toString=function(){var t=[],n=this.j;n&&t.push(A0(n,Zj,!0),":");var e=this.g;return(e||"file"==n)&&(t.push("//"),(n=this.s)&&t.push(A0(n,Zj,!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(A0(e,"/"==e.charAt(0)?k2e:C2e,!0))),(e=this.i.toString())&&t.push("?",e),(e=this.o)&&t.push("#",A0(e,T2e)),t.join("")};var Zj=/[#\/\?@]/g,C2e=/[#\?:]/g,k2e=/[#\?]/g,E2e=/[#\?@]/g,T2e=/#/g;function M0(t,n){this.h=this.g=null,this.i=t||null,this.j=!!n}function xd(t){t.g||(t.g=new Map,t.h=0,t.i&&function x2e(t,n){if(t){t=t.split("&");for(var e=0;e=t.j}function r$(t){return t.h?1:t.g?t.g.size:0}function JA(t,n){return t.h?t.h==n:!!t.g&&t.g.has(n)}function eM(t,n){t.g?t.g.add(n):t.h=n}function o$(t,n){t.h&&t.h==n?t.h=null:t.g&&t.g.has(n)&&t.g.delete(n)}function s$(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 EA(t.i)}n$.prototype.cancel=function(){if(this.i=s$(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 A2e=class{stringify(t){return Ut.JSON.stringify(t,void 0)}parse(t){return Ut.JSON.parse(t,void 0)}};function M2e(){this.g=new A2e}function R2e(t,n,e){const i=e||"";try{Kj(t,function(r,o){let s=r;g0(r)&&(s=HA(r)),n.push(i+o+"="+encodeURIComponent(s))})}catch(r){throw n.push(i+"type="+encodeURIComponent("_badmap")),r}}function Fw(t,n,e,i,r){try{n.onload=null,n.onerror=null,n.onabort=null,n.ontimeout=null,r(i)}catch{}}function R0(t){this.l=t.ec||null,this.j=t.ob||!1}function Ow(t,n){zr.call(this),this.F=t,this.u=n,this.m=void 0,this.readyState=tM,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}Ur(R0,WA),R0.prototype.g=function(){return new Ow(this.l,this.j)},R0.prototype.i=function(t){return function(){return t}}({}),Ur(Ow,zr);var tM=0;function a$(t){t.j.read().then(t.Xa.bind(t)).catch(t.ka.bind(t))}function P0(t){t.readyState=4,t.l=null,t.j=null,t.A=null,F0(t)}function F0(t){t.onreadystatechange&&t.onreadystatechange.call(t)}(tt=Ow.prototype).open=function(t,n){if(this.readyState!=tM)throw this.abort(),Error("Error reopening a connection");this.C=t,this.B=n,this.readyState=1,F0(this)},tt.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||Ut).fetch(new Request(this.B,n)).then(this.$a.bind(this),this.ka.bind(this))},tt.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,P0(this)),this.readyState=tM},tt.$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,F0(this)),this.g&&(this.readyState=3,F0(this),this.g)))if("arraybuffer"===this.responseType)t.arrayBuffer().then(this.Ya.bind(this),this.ka.bind(this));else if(typeof Ut.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;a$(this)}else t.text().then(this.Za.bind(this),this.ka.bind(this))},tt.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?P0(this):F0(this),3==this.readyState&&a$(this)}},tt.Za=function(t){this.g&&(this.response=this.responseText=t,P0(this))},tt.Ya=function(t){this.g&&(this.response=t,P0(this))},tt.ka=function(){this.g&&P0(this)},tt.setRequestHeader=function(t,n){this.v.append(t,n)},tt.getResponseHeader=function(t){return this.h&&this.h.get(t.toLowerCase())||""},tt.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(Ow.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(t){this.m=t?"include":"same-origin"}});var F2e=Ut.JSON.parse;function Bi(t){zr.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=c$,this.L=this.M=!1}Ur(Bi,zr);var c$="",O2e=/^https?$/i,N2e=["POST","PUT"];function l$(t,n){t.h=!1,t.g&&(t.l=!0,t.g.abort(),t.l=!1),t.j=n,t.m=5,d$(t),Nw(t)}function d$(t){t.F||(t.F=!0,to(t,"complete"),to(t,"error"))}function u$(t){if(t.h&&typeof CA<"u"&&(!t.C[1]||4!=dc(t)||2!=t.da()))if(t.v&&4==dc(t))GA(t.La,0,t);else if(to(t,"readystatechange"),4==dc(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(Xj)[1]||null;!r&&Ut.self&&Ut.self.location&&(r=Ut.self.location.protocol.slice(0,-1)),i=!O2e.test(r?r.toLowerCase():"")}e=i}if(e)to(t,"complete"),to(t,"success");else{t.m=6;try{var o=2{}:null;t.g=null,t.C=null,n||to(t,"ready");try{e.onreadystatechange=i}catch{}}}function h$(t){t.g&&t.L&&(t.g.ontimeout=null),t.A&&(Ut.clearTimeout(t.A),t.A=null)}function dc(t){return t.g?t.g.readyState:0}function f$(t){try{if(!t.g)return null;if("response"in t.g)return t.g.response;switch(t.K){case c$:case"text":return t.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in t.g)return t.g.mozResponseArrayBuffer}return null}catch{return null}}function m$(t){let n="";return PA(t,function(e,i){n+=i,n+=":",n+=e,n+="\r\n"}),n}function nM(t,n,e){e:{for(i in e){var i=!1;break e}i=!0}i||(e=m$(e),"string"==typeof t?null!=e&&encodeURIComponent(String(e)):Ci(t,n,e))}function O0(t,n,e){return e&&e.internalChannelParams&&e.internalChannelParams[t]||n}function p$(t){this.Ga=0,this.j=[],this.l=new Tw,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=O0("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=O0("baseRetryDelayMs",5e3,t),this.hb=O0("retryDelaySeedMs",1e4,t),this.eb=O0("forwardChannelMaxRetries",2,t),this.xa=O0("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 n$(t&&t.concurrentRequestLimit),this.Ja=new M2e,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{R2e(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 b$(t){if(!t.g&&!t.u){t.ba=1;var n=t.Ma;y0||Mj(),x0||(y0(),x0=!0),jA.add(n,t),t.A=0}}function rM(t){return!(t.g||t.u||3<=t.A||(t.ba++,t.u=k0(ko(t.Ma,t),w$(t,t.A)),t.A++,0))}function oM(t){null!=t.B&&(Ut.clearTimeout(t.B),t.B=null)}function y$(t){t.g=new T0(t,t.l,"rpc",t.ba),null===t.o&&(t.g.I=t.s),t.g.O=0;var n=sl(t.wa);Ci(n,"RID","rpc"),Ci(n,"SID",t.K),Ci(n,"AID",t.V),Ci(n,"CI",t.G?"0":"1"),!t.G&&t.qa&&Ci(n,"TO",t.qa),Ci(n,"TYPE","xmlhttp"),N0(t,n),t.o&&t.s&&nM(n,t.o,t.s),t.L&&t.g.setTimeout(t.L);var e=t.g;t=t.pa,e.L=1,e.A=Pw(sl(n)),e.u=null,e.S=!0,Gj(e,t)}function Vw(t){null!=t.v&&(Ut.clearTimeout(t.v),t.v=null)}function x$(t,n){var e=null;if(t.g==n){Vw(t),oM(t),t.g=null;var i=2}else{if(!JA(t.i,n))return;e=n.F,o$(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;to(i=Sw(),new Vj(i,e)),Bw(t)}else b$(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=k0(ko(t.Na,t,n),w$(t,t.C)),t.C++,0)))}(t,n)||2==i&&rM(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 Xn(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}(tt=Bi.prototype).Oa=function(t){this.M=t},tt.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():KA.g(),this.C=function zj(t){return t.h||(t.h=t.i())}(this.u?this.u:KA),this.g.onreadystatechange=ko(this.La,this);try{this.G=!0,this.g.open(n,String(t),!0),this.G=!1}catch(o){return void l$(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=Ut.FormData&&t instanceof Ut.FormData,!(0<=gj(N2e,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{h$(this),0=this.S)){var t=2*this.S;this.l.info("BP detection timer enabled: "+t),this.B=k0(ko(this.jb,this),t)}},tt.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,Wo(10),Lw(this),y$(this))},tt.ib=function(){null!=this.v&&(this.v=null,Lw(this),rM(this),Wo(19))},tt.pb=function(t){t?(this.l.info("Successfully pinged google.com"),Wo(2)):(this.l.info("Failed to ping google.com"),Wo(1))},tt.isActive=function(){return!!this.h&&this.h.isActive(this)},(tt=T$.prototype).Ba=function(){},tt.Aa=function(){},tt.za=function(){},tt.ya=function(){},tt.isActive=function(){return!0},tt.Va=function(){},Uw.prototype.g=function(t,n){return new Os(t,n)},Ur(Os,zr),Os.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;Wo(0),t.Y=n,t.na=e||{},t.G=t.aa,t.I=k$(t,null,t.Y),Bw(t)},Os.prototype.close=function(){iM(this.g)},Os.prototype.u=function(t){var n=this.g;if("string"==typeof t){var e={};e.__data__=t,t=e}else this.v&&((e={}).__data__=HA(t),t=e);n.j.push(new D2e(n.fb++,t)),3==n.H&&Bw(n)},Os.prototype.N=function(){this.g.h=null,delete this.j,iM(this.g),delete this.g,Os.$.N.call(this)},Ur(S$,qA),Ur(D$,QA),Ur(Um,T$),Um.prototype.Ba=function(){to(this.g,"a")},Um.prototype.Aa=function(t){to(this.g,new S$(t))},Um.prototype.za=function(t){to(this.g,new D$)},Um.prototype.ya=function(){to(this.g,"b")},Ur(Da,function U2e(){this.blockSize=-1}),Da.prototype.reset=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.i=this.h=0},Da.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 z2e={};function aM(t){return-128<=t&&128>t?function KDe(t,n){var e=z2e;return Object.prototype.hasOwnProperty.call(e,t)?e[t]:e[t]=n(t)}(t,function(n){return new Xn([0|n],0>n?-1:0)}):new Xn([0|t],0>t?-1:0)}function uc(t){if(isNaN(t)||!isFinite(t))return zm;if(0>t)return no(uc(-t));for(var n=[],e=1,i=0;t>=e;i++)n[i]=t/e|0,e*=cM;return new Xn(n,0)}var cM=4294967296,zm=aM(0),lM=aM(1),A$=aM(16777216);function al(t){if(0!=t.h)return!1;for(var n=0;n>>16,t[n]&=65535,n++}function L0(t,n){this.g=t,this.h=n}function jw(t,n){if(al(n))throw Error("division by zero");if(al(t))return new L0(zm,zm);if(Ys(t))return n=jw(no(t),n),new L0(no(n.g),no(n.h));if(Ys(n))return n=jw(t,no(n)),new L0(no(n.g),n.h);if(30=i.X(t);)e=M$(e),i=M$(i);var r=Hm(e,1),o=Hm(i,1);for(i=Hm(i,2),e=Hm(e,2);!al(i);){var s=o.add(i);0>=s.X(t)&&(r=r.add(e),o=s),i=Hm(i,1),e=Hm(e,1)}return n=zw(t,r.R(n)),new L0(r,n)}for(r=zm;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=uc(e)).R(n);Ys(s)||0>>31;return new Xn(e,t.h)}function Hm(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 Xn(r,t.h)}(tt=Xn.prototype).ea=function(){if(Ys(this))return-no(this).ea();for(var t=0,n=1,e=0;e(t=t||10)||36>>0).toString(t);if(al(e=r))return o+i;for(;6>o.length;)o="0"+o;i=o+i}},tt.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 Xn(e,-2147483648&e[e.length-1]?-1:0)},tt.R=function(t){if(al(this)||al(t))return zm;if(Ys(this))return Ys(t)?no(this).R(no(t)):no(no(this).R(t));if(Ys(t))return no(this.R(no(t)));if(0>this.X(A$)&&0>t.X(A$))return uc(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,Hw(e,2*i+2*r),e[2*i+2*r+1]+=o*c,Hw(e,2*i+2*r+1),e[2*i+2*r+1]+=s*a,Hw(e,2*i+2*r+1),e[2*i+2*r+2]+=o*a,Hw(e,2*i+2*r+2)}for(i=0;i(n=n||10)||36o?(o=uc(Math.pow(n,o)),i=i.R(o).add(uc(s))):i=(i=i.R(e)).add(uc(s))}return i};var H2e=Sa.createWebChannelTransport=function(){return new Uw},j2e=Sa.getStatEventTarget=function(){return Sw()},dM=Sa.ErrorCode=Dw,$2e=Sa.EventType=Uj,G2e=Sa.Event=Qu,R$=Sa.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},$w=(Sa.FetchXmlHttpFactory=R0,Sa.WebChannel=Hj),W2e=Sa.XhrIo=Bi,q2e=Sa.Md5=Da,jm=Sa.Integer=Xn;const P$="@firebase/firestore";class Hr{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}}Hr.UNAUTHENTICATED=new Hr(null),Hr.GOOGLE_CREDENTIALS=new Hr("google-credentials-uid"),Hr.FIRST_PARTY=new Hr("first-party-uid"),Hr.MOCK_USER=new Hr("mock-user");let $m="10.9.0";const wd=new nj("@firebase/firestore");function Gm(){return wd.logLevel}function Ie(t,...n){if(wd.logLevel<=Tn.DEBUG){const e=n.map(uM);wd.debug(`Firestore (${$m}): ${t}`,...e)}}function Ki(t,...n){if(wd.logLevel<=Tn.ERROR){const e=n.map(uM);wd.error(`Firestore (${$m}): ${t}`,...e)}}function Ns(t,...n){if(wd.logLevel<=Tn.WARN){const e=n.map(uM);wd.warn(`Firestore (${$m}): ${t}`,...e)}}function uM(t){if("string"==typeof t)return t;try{return JSON.stringify(t)}catch{return t}}function ot(t="Unexpected state"){const n=`FIRESTORE (${$m}) INTERNAL ASSERTION FAILED: `+t;throw Ki(n),new Error(n)}function ht(t,n){t||ot()}function qe(t,n){return t}const le={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 Ae extends Om{constructor(n,e){super(n,e),this.code=n,this.message=e,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}class Tr{constructor(){this.promise=new Promise((n,e)=>{this.resolve=n,this.reject=e})}}class F${constructor(n,e){this.user=e,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${n}`)}}class Q2e{getToken(){return Promise.resolve(null)}invalidateToken(){}start(n,e){n.enqueueRetryable(()=>e(Hr.UNAUTHENTICATED))}shutdown(){}}class K2e{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 X2e{constructor(n){this.t=n,this.currentUser=Hr.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 Tr;this.o=()=>{this.i++,this.currentUser=this.u(),s.resolve(),s=new Tr,n.enqueueRetryable(()=>o(this.currentUser))};const a=()=>{const l=s;n.enqueueRetryable(fe(function*(){yield l.promise,yield o(i.currentUser)}))},c=l=>{Ie("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):(Ie("FirebaseAuthCredentialsProvider","Auth not yet detected"),s.resolve(),s=new Tr)}},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?(Ie("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):i?(ht("string"==typeof i.accessToken),new F$(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 Hr(n)}}class Y2e{constructor(n,e,i){this.l=n,this.h=e,this.P=i,this.type="FirstParty",this.user=Hr.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 Z2e{constructor(n,e,i){this.l=n,this.h=e,this.P=i}getToken(){return Promise.resolve(new Y2e(this.l,this.h,this.P))}start(n,e){n.enqueueRetryable(()=>e(Hr.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class O${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 J2e{constructor(n){this.A=n,this.forceRefresh=!1,this.appCheck=null,this.R=null}start(n,e){const i=o=>{null!=o.error&&Ie("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,Ie("FirebaseAppCheckTokenProvider",`Received ${s?"new":"existing"} token.`),s?e(o.token):Promise.resolve()};this.o=o=>{n.enqueueRetryable(()=>i(o))};const r=o=>{Ie("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):Ie("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 O$(e.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}function eIe(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 Wm(t,n,e){return t.length===n.length&&t.every((i,r)=>e(i,n[r]))}class Si{constructor(n,e){if(this.seconds=n,this.nanoseconds=e,e<0)throw new Ae(le.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(e>=1e9)throw new Ae(le.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(n<-62135596800)throw new Ae(le.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n);if(n>=253402300800)throw new Ae(le.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n)}static now(){return Si.fromMillis(Date.now())}static fromDate(n){return Si.fromMillis(n.getTime())}static fromMillis(n){const e=Math.floor(n/1e3),i=Math.floor(1e6*(n-1e3*e));return new Si(e,i)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(n){return this.seconds===n.seconds?Lt(this.nanoseconds,n.nanoseconds):Lt(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 gt{constructor(n){this.timestamp=n}static fromTimestamp(n){return new gt(n)}static min(){return new gt(new Si(0,0))}static max(){return new gt(new Si(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 B0{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===B0.comparator(this,n)}child(n){const e=this.segments.slice(this.offset,this.limit());return n instanceof B0?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 gn extends B0{construct(n,e,i){return new gn(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 Ae(le.INVALID_ARGUMENT,`Invalid segment (${i}). Paths must not contain // in them.`);e.push(...i.split("/").filter(r=>r.length>0))}return new gn(e)}static emptyPath(){return new gn([])}}const tIe=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class Di extends B0{construct(n,e,i){return new Di(n,e,i)}static isValidIdentifier(n){return tIe.test(n)}canonicalString(){return this.toArray().map(n=>(n=n.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),Di.isValidIdentifier(n)||(n="`"+n+"`"),n)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&"__name__"===this.get(0)}static keyField(){return new Di(["__name__"])}static fromServerFormat(n){const e=[];let i="",r=0;const o=()=>{if(0===i.length)throw new Ae(le.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===gn.comparator(this.path,n.path)}toString(){return this.path.toString()}static comparator(n,e){return gn.comparator(n.path,e.path)}static isDocumentKey(n){return n.length%2==0}static fromSegments(n){return new Xe(new gn(n.slice()))}}function V$(t){return new Ls(t.readTime,t.key,-1)}class Ls{constructor(n,e,i){this.readTime=n,this.documentKey=e,this.largestBatchId=i}static min(){return new Ls(gt.min(),Xe.empty(),-1)}static max(){return new Ls(gt.max(),Xe.empty(),-1)}}function fM(t,n){let e=t.readTime.compareTo(n.readTime);return 0!==e?e:(e=Xe.comparator(t.documentKey,n.documentKey),0!==e?e:Lt(t.largestBatchId,n.largestBatchId))}const U$="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class z${constructor(){this.onCommittedListeners=[]}addOnCommittedListener(n){this.onCommittedListeners.push(n)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(n=>n())}}function Cd(t){return mM.apply(this,arguments)}function mM(){return mM=fe(function*(t){if(t.code!==le.FAILED_PRECONDITION||t.message!==U$)throw t;Ie("LocalStore","Unexpectedly lost primary lease")}),mM.apply(this,arguments)}class Y{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 Y((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 Y?e:Y.resolve(e)}catch(e){return Y.reject(e)}}wrapSuccess(n,e){return n?this.wrapUserFunction(()=>n(e)):Y.resolve(e)}wrapFailure(n,e){return n?this.wrapUserFunction(()=>n(e)):Y.reject(e)}static resolve(n){return new Y((e,i)=>{e(n)})}static reject(n){return new Y((e,i)=>{i(n)})}static waitFor(n){return new Y((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=Y.resolve(!1);for(const i of n)e=e.next(r=>r?Y.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 Y((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 Y((i,r)=>{const o=()=>{!0===n()?e().next(()=>{o()},r):i()};o()})}}class Gw{constructor(n,e){this.action=n,this.transaction=e,this.aborted=!1,this.V=new Tr,this.transaction.oncomplete=()=>{this.V.resolve()},this.transaction.onabort=()=>{e.error?this.V.reject(new V0(n,e.error)):this.V.resolve()},this.transaction.onerror=i=>{const r=pM(i.target.error);this.V.reject(new V0(n,r))}}static open(n,e,i,r){try{return new Gw(e,n.transaction(r,i))}catch(o){throw new V0(e,o)}}get m(){return this.V.promise}abort(n){n&&this.V.reject(n),this.aborted||(Ie("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 Zs{constructor(n,e,i){this.name=n,this.version=e,this.p=i,12.2===Zs.S(vd())&&Ki("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 Ie("SimpleDb","Removing database:",n),eh(window.indexedDB.deleteDatabase(n)).toPromise()}static D(){if(!YH())return!1;if(Zs.C())return!0;const n=vd(),e=Zs.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 fe(function*(){return e.db||(Ie("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 V0(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 Ae(le.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 Ae(le.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 V0(n,a))},o.onupgradeneeded=s=>{Ie("SimpleDb",'Database "'+e.name+'" requires upgrade from version:',s.oldVersion),e.p.N(s.target.result,o.transaction,s.oldVersion,e.version).next(()=>{Ie("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 fe(function*(){const s="readonly"===e;let a=0;for(;;){++a;try{o.db=yield o.O(n);const c=Gw.open(o.db,n,s?"readonly":"readwrite",i),l=r(c).next(d=>(c.g(),d)).catch(d=>(c.abort(d),Y.reject(d))).toPromise();return l.catch(()=>{}),yield c.m,l}catch(c){const l=c,d="FirebaseError"!==l.name&&a<3;if(Ie("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 rIe{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 eh(this.k.delete())}}class V0 extends Ae{constructor(n,e){super(le.UNAVAILABLE,`IndexedDB transaction '${n}' failed: ${e}`),this.name="IndexedDbTransactionError"}}function kd(t){return"IndexedDbTransactionError"===t.name}class oIe{constructor(n){this.store=n}put(n,e){let i;return void 0!==e?(Ie("SimpleDb","PUT",this.store.name,n,e),i=this.store.put(e,n)):(Ie("SimpleDb","PUT",this.store.name,"",n),i=this.store.put(n)),eh(i)}add(n){return Ie("SimpleDb","ADD",this.store.name,n,n),eh(this.store.add(n))}get(n){return eh(this.store.get(n)).next(e=>(void 0===e&&(e=null),Ie("SimpleDb","GET",this.store.name,n,e),e))}delete(n){return Ie("SimpleDb","DELETE",this.store.name,n),eh(this.store.delete(n))}count(){return Ie("SimpleDb","COUNT",this.store.name),eh(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 Y((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 Y((r,o)=>{i.onerror=s=>{o(s.target.error)},i.onsuccess=s=>{r(s.target.result)}})}H(n,e){Ie("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 Y((i,r)=>{e.onerror=o=>{const s=pM(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 Y((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 rIe(a),l=e(a.primaryKey,a.value,c);if(l instanceof Y){const d=l.catch(u=>(c.done(),Y.reject(u)));i.push(d)}c.isDone?r():null===c.$?a.continue():a.continue(c.$)}}).next(()=>Y.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 eh(t){return new Y((n,e)=>{t.onsuccess=i=>{n(i.target.result)},t.onerror=i=>{const r=pM(i.target.error);e(r)}})}let H$=!1;function pM(t){const n=Zs.S(vd());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 Ae("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 H$||(H$=!0,setTimeout(()=>{throw i},0)),i}}return t}let Bs=(()=>{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 U0(t){return null==t}function z0(t){return 0===t&&1/t==-1/0}function X$(t){let n=0;for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&n++;return n}function Ed(t,n){for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&n(e,t[e])}function Y$(t){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}class _i{constructor(n,e){this.comparator=n,this.root=e||io.EMPTY}insert(n,e){return new _i(this.comparator,this.root.insert(n,e,this.comparator).copy(null,null,io.BLACK,null,null))}remove(n){return new _i(this.comparator,this.root.remove(n,this.comparator).copy(null,null,io.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 qw(this.root,null,this.comparator,!1)}getIteratorFrom(n){return new qw(this.root,n,this.comparator,!1)}getReverseIterator(){return new qw(this.root,null,this.comparator,!0)}getReverseIteratorFrom(n){return new qw(this.root,n,this.comparator,!0)}}class qw{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 io{constructor(n,e,i,r,o){this.key=n,this.value=e,this.color=i??io.RED,this.left=r??io.EMPTY,this.right=o??io.EMPTY,this.size=this.left.size+1+this.right.size}copy(n,e,i,r,o){return new io(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 io.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 io.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,io.RED,null,this.right.left);return this.right.copy(null,null,this.color,n,null)}rotateRight(){const n=this.copy(null,null,io.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)}}io.EMPTY=null,io.RED=!0,io.BLACK=!1,io.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 io(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 ci{constructor(n){this.comparator=n,this.data=new _i(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 Z$(this.data.getIterator())}getIteratorFrom(n){return new Z$(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 ci)||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 ci(this.comparator);return e.data=n,e}}class Z${constructor(n){this.iter=n}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}class ds{constructor(n){this.fields=n,n.sort(Di.comparator)}static empty(){return new ds([])}unionWith(n){let e=new ci(Di.comparator);for(const i of this.fields)e=e.add(i);for(const i of n)e=e.add(i);return new ds(e.toArray())}covers(n){for(const e of this.fields)if(e.isPrefixOf(n))return!0;return!1}isEqual(n){return Wm(this.fields,n.fields,(e,i)=>e.isEqual(i))}}class J$ extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}class Sr{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 J$("Invalid base64 string: "+o):o}}(n);return new Sr(e)}static fromUint8Array(n){const e=function(r){let o="";for(let s=0;snfc(e,n))}function Id(t,n){if(t===n)return 0;const e=Dd(t),i=Dd(n);if(e!==i)return Lt(e,i);switch(e){case 0:case 9007199254740991:return 0;case 1:return Lt(t.booleanValue,n.booleanValue);case 2:return function(o,s){const a=Vi(o.integerValue||o.doubleValue),c=Vi(s.integerValue||s.doubleValue);return ac?1:a===c?0:isNaN(a)?isNaN(c)?0:-1:1}(t,n);case 3:return eG(t.timestampValue,n.timestampValue);case 4:return eG(H0(t),H0(n));case 5:return Lt(t.stringValue,n.stringValue);case 6:return function(o,s){const a=cl(o),c=cl(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]=G0(i)),n}if(t.arrayValue){const n={arrayValue:{values:[]}};for(let e=0;e<(t.arrayValue.values||[]).length;++e)n.arrayValue.values[e]=G0(t.arrayValue.values[e]);return n}return Object.assign({},t)}function iG(t){return"__max__"===(((t.mapValue||{}).fields||{}).__type__||{}).stringValue}class ro{constructor(n){this.value=n}static empty(){return new ro({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()]=G0(s):r.push(a.lastSegment())});const o=this.getFieldsMap(e);this.applyChanges(o,i,r)}delete(n){const e=this.field(n.popLast());Zw(e)&&e.mapValue.fields&&delete e.mapValue.fields[n.lastSegment()]}isEqual(n){return fc(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 ro(G0(this.value))}}function sG(t){const n=[];return Ed(t.fields,(e,i)=>{const r=new Di([e]);if(Zw(i)){const o=sG(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 ds(n)}class ki{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 ki(n,0,gt.min(),gt.min(),gt.min(),ro.empty(),0)}static newFoundDocument(n,e,i,r){return new ki(n,1,e,gt.min(),i,r,0)}static newNoDocument(n,e){return new ki(n,2,e,gt.min(),gt.min(),ro.empty(),0)}static newUnknownDocument(n,e){return new ki(n,3,e,gt.min(),gt.min(),ro.empty(),2)}convertToFoundDocument(n,e){return!this.createTime.isEqual(gt.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=ro.empty(),this.documentState=0,this}convertToUnknownDocument(n){return this.version=n,this.documentType=3,this.data=ro.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=gt.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 ki&&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 ki(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 Ad{constructor(n,e){this.position=n,this.inclusive=e}}function aG(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 Yn extends lG{constructor(n,e){super(),this.filters=n,this.op=e,this.ue=null}static create(n,e){return new Yn(n,e)}matches(n){return Ym(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 Ym(t){return"and"===t.op}function yM(t){return function dG(t){for(const n of t.filters)if(n instanceof Yn)return!1;return!0}(t)&&Ym(t)}function xM(t){if(t instanceof _n)return t.field.canonicalString()+t.op.toString()+Xm(t.value);if(yM(t))return t.filters.map(n=>xM(n)).join(",");{const n=t.filters.map(e=>xM(e)).join(",");return`${t.op}(${n})`}}function uG(t,n){return t instanceof _n?(i=t,(r=n)instanceof _n&&i.op===r.op&&i.field.isEqual(r.field)&&fc(i.value,r.value)):t instanceof Yn?function(i,r){return r instanceof Yn&&i.op===r.op&&i.filters.length===r.filters.length&&i.filters.reduce((o,s,a)=>o&&uG(s,r.filters[a]),!0)}(t,n):void ot();var i,r}function fG(t){return t instanceof _n?`${(e=t).field.canonicalString()} ${e.op} ${Xm(e.value)}`:t instanceof Yn?function(e){return e.op.toString()+" {"+e.getFilters().map(fG).join(" ,")+"}"}(t):"Filter";var e}class MIe extends _n{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 RIe extends _n{constructor(n,e){super(n,"in",e),this.keys=mG(0,e)}matches(n){return this.keys.some(e=>e.isEqual(n.key))}}class PIe extends _n{constructor(n,e){super(n,"not-in",e),this.keys=mG(0,e)}matches(n){return!this.keys.some(e=>e.isEqual(n.key))}}function mG(t,n){var e;return((null===(e=n.arrayValue)||void 0===e?void 0:e.values)||[]).map(i=>Xe.fromName(i.referenceValue))}class FIe extends _n{constructor(n,e){super(n,"array-contains",e)}matches(n){const e=n.data.field(this.field);return $0(e)&&j0(e.arrayValue,this.value)}}class pG extends _n{constructor(n,e){super(n,"in",e)}matches(n){const e=n.data.field(this.field);return null!==e&&j0(this.value.arrayValue,e)}}class OIe extends _n{constructor(n,e){super(n,"not-in",e)}matches(n){if(j0(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const e=n.data.field(this.field);return null!==e&&!j0(this.value.arrayValue,e)}}class NIe extends _n{constructor(n,e){super(n,"array-contains-any",e)}matches(n){const e=n.data.field(this.field);return!(!$0(e)||!e.arrayValue.values)&&e.arrayValue.values.some(i=>j0(this.value.arrayValue,i))}}class LIe{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 wM(t,n=null,e=[],i=[],r=null,o=null,s=null){return new LIe(t,n,e,i,r,o,s)}function ih(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=>xM(i)).join(","),e+="|ob:",e+=n.orderBy.map(i=>{return(o=i).field.canonicalString()+o.dir;var o}).join(","),U0(n.limit)||(e+="|l:",e+=n.limit),n.startAt&&(e+="|lb:",e+=n.startAt.inclusive?"b:":"a:",e+=n.startAt.position.map(i=>Xm(i)).join(",")),n.endAt&&(e+="|ub:",e+=n.endAt.inclusive?"a:":"b:",e+=n.endAt.position.map(i=>Xm(i)).join(",")),n.ce=e}return n.ce}function q0(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 ci(Di.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 W0(o,i))}),e.has(Di.keyField().canonicalString())||n.le.push(new W0(Di.keyField(),i))}return n.le}function qo(t){const n=qe(t);return n.he||(n.he=function yG(t,n){if("F"===t.limitType)return wM(t.path,t.collectionGroup,n,t.filters,t.limit,t.startAt,t.endAt);{n=n.map(r=>new W0(r.field,"desc"===r.dir?"asc":"desc"));const e=t.endAt?new Ad(t.endAt.position,t.endAt.inclusive):null,i=t.startAt?new Ad(t.startAt.position,t.startAt.inclusive):null;return wM(t.path,t.collectionGroup,n,t.filters,t.limit,e,i)}}(n,Jm(t))),n.he}function kM(t,n){const e=t.filters.concat([n]);return new ll(t.path,t.collectionGroup,t.explicitOrderBy.slice(),e,t.limit,t.limitType,t.startAt,t.endAt)}function tC(t,n,e){return new ll(t.path,t.collectionGroup,t.explicitOrderBy.slice(),t.filters.slice(),n,e,t.startAt,t.endAt)}function Q0(t,n){return q0(qo(t),qo(n))&&t.limitType===n.limitType}function xG(t){return`${ih(qo(t))}|lt:${t.limitType}`}function ep(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=>fG(r)).join(", ")}]`),U0(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=>Xm(r)).join(",")),e.endAt&&(i+=", endAt: ",i+=e.endAt.inclusive?"a:":"b:",i+=e.endAt.position.map(r=>Xm(r)).join(",")),`Target(${i})`}(qo(t))}; limitType=${t.limitType})`}function K0(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 Jm(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=aG(s,a,c);return s.inclusive?l<=0:l<0}(i.startAt,Jm(i),r)||i.endAt&&!function(s,a,c){const l=aG(s,a,c);return s.inclusive?l>=0:l>0}(i.endAt,Jm(i),r)));var i,r}function CG(t){return(n,e)=>{let i=!1;for(const r of Jm(t)){const o=BIe(r,n,e);if(0!==o)return o;i=i||r.field.isKeyField()}return 0}}function BIe(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?Id(c,l):ot()}(t.field,n,e);switch(t.dir){case"asc":return i;case"desc":return-1*i;default:return ot()}}class dl{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 Y$(this.inner)}size(){return this.innerSize}}const VIe=new _i(Xe.comparator);function us(){return VIe}const kG=new _i(Xe.comparator);function X0(...t){let n=kG;for(const e of t)n=n.insert(e.key,e);return n}function EG(t){let n=kG;return t.forEach((e,i)=>n=n.insert(e,i.overlayedDocument)),n}function mc(){return Y0()}function TG(){return Y0()}function Y0(){return new dl(t=>t.toString(),(t,n)=>t.isEqual(n))}const UIe=new _i(Xe.comparator),zIe=new ci(Xe.comparator);function Yt(...t){let n=zIe;for(const e of t)n=n.add(e);return n}const HIe=new ci(Lt);function SG(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:z0(n)?"-0":n}}function DG(t){return{integerValue:""+t}}function IG(t,n){return function j$(t){return"number"==typeof t&&Number.isInteger(t)&&!z0(t)&&t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER}(n)?DG(n):SG(t,n)}class nC{constructor(){this._=void 0}}function jIe(t,n,e){return t instanceof tp?function(r,o){const s={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:r.seconds,nanos:r.nanoseconds}}}};return o&&Qw(o)&&(o=Kw(o)),o&&(s.fields.__previous_value__=o),{mapValue:s}}(e,n):t instanceof rh?MG(t,n):t instanceof oh?RG(t,n):function(r,o){const s=AG(r,o),a=PG(s)+PG(r.Ie);return vM(s)&&vM(r.Ie)?DG(a):SG(r.serializer,a)}(t,n)}function $Ie(t,n,e){return t instanceof rh?MG(t,n):t instanceof oh?RG(t,n):e}function AG(t,n){return t instanceof np?vM(i=n)||(o=i)&&"doubleValue"in o?n:{integerValue:0}:null;var i,o}class tp extends nC{}class rh extends nC{constructor(n){super(),this.elements=n}}function MG(t,n){const e=FG(n);for(const i of t.elements)e.some(r=>fc(r,i))||e.push(i);return{arrayValue:{values:e}}}class oh extends nC{constructor(n){super(),this.elements=n}}function RG(t,n){let e=FG(n);for(const i of t.elements)e=e.filter(r=>!fc(r,i));return{arrayValue:{values:e}}}class np extends nC{constructor(n,e){super(),this.serializer=n,this.Ie=e}}function PG(t){return Vi(t.integerValue||t.doubleValue)}function FG(t){return $0(t)&&t.arrayValue.values?t.arrayValue.values.slice():[]}class WIe{constructor(n,e){this.version=n,this.transformResults=e}}class Ii{constructor(n,e){this.updateTime=n,this.exists=e}static none(){return new Ii}static exists(n){return new Ii(void 0,n)}static updateTime(n){return new Ii(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 iC(t,n){return void 0!==t.updateTime?n.isFoundDocument()&&n.version.isEqual(t.updateTime):void 0===t.exists||t.exists===n.isFoundDocument()}class rC{}function OG(t,n){if(!t.hasLocalMutations||n&&0===n.fields.length)return null;if(null===n)return t.isNoDocument()?new rp(t.key,Ii.none()):new ip(t.key,t.data,Ii.none());{const e=t.data,i=ro.empty();let r=new ci(Di.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 ul(t.key,i,new ds(r.toArray()),Ii.none())}}function qIe(t,n,e){t instanceof ip?function(r,o,s){const a=r.value.clone(),c=BG(r.fieldTransforms,o,s.transformResults);a.setAll(c),o.convertToFoundDocument(s.version,a).setHasCommittedMutations()}(t,n,e):t instanceof ul?function(r,o,s){if(!iC(r.precondition,o))return void o.convertToUnknownDocument(s.version);const a=BG(r.fieldTransforms,o,s.transformResults),c=o.data;c.setAll(LG(r)),c.setAll(a),o.convertToFoundDocument(s.version,c).setHasCommittedMutations()}(t,n,e):n.convertToNoDocument(e.version).setHasCommittedMutations()}function J0(t,n,e,i){return t instanceof ip?function(o,s,a,c){if(!iC(o.precondition,s))return a;const l=o.value.clone(),d=VG(o.fieldTransforms,c,s);return l.setAll(d),s.convertToFoundDocument(s.version,l).setHasLocalMutations(),null}(t,n,e,i):t instanceof ul?function(o,s,a,c){if(!iC(o.precondition,s))return a;const l=VG(o.fieldTransforms,c,s),d=s.data;return d.setAll(LG(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,iC(t.precondition,s=n)?(s.convertToNoDocument(s.version).setHasLocalMutations(),null):a);var s,a}function QIe(t,n){let e=null;for(const i of t.fieldTransforms){const r=n.data.field(i.field),o=AG(i.transform,r||null);null!=o&&(null===e&&(e=ro.empty()),e.set(i.field,o))}return e||null}function NG(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&&Wm(i,r,(o,s)=>function GIe(t,n){return t.field.isEqual(n.field)&&(r=n.transform,(i=t.transform)instanceof rh&&r instanceof rh||i instanceof oh&&r instanceof oh?Wm(i.elements,r.elements,fc):i instanceof np&&r instanceof np?fc(i.Ie,r.Ie):i instanceof tp&&r instanceof tp);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 ip extends rC{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 ul extends rC{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 LG(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 BG(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=OG(s,a);null!==c&&i.set(r.key,c),s.isValidDocument()||s.convertToNoDocument(gt.min())}),i}keys(){return this.mutations.reduce((n,e)=>n.add(e.key),Yt())}isEqual(n){return this.batchId===n.batchId&&Wm(this.mutations,n.mutations,(e,i)=>NG(e,i))&&Wm(this.baseMutations,n.baseMutations,(e,i)=>NG(e,i))}}class DM{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 UIe}();const o=n.mutations;for(let s=0;s=8)throw new ev(`Invalid padding: ${e}`);if(i<0)throw new ev(`Invalid hash count: ${i}`);if(n.length>0&&0===this.hashCount)throw new ev(`Invalid hash count: ${i}`);if(0===n.length&&0!==e)throw new ev(`Invalid padding when bitmap length is 0: ${e}`);this.Te=8*n.length-e,this.Ee=jm.fromNumber(this.Te)}de(n,e,i){let r=n.add(e.multiply(jm.fromNumber(i)));return 1===r.compare(YIe)&&(r=new jm([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]=$G(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 nv(this.ye,this.we,n,e,i)}Fe(){this.Se=!1,this.pe=KG()}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 ZIe{constructor(n){this.Be=n,this.ke=new Map,this.qe=us(),this.Qe=QG(),this.Ke=new _i(Lt)}$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(Jw(o))if(0===i){const s=new Xe(o.path);this.We(e,s,ki.newNoDocument(s,gt.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=cl(i).toUint8Array()}catch(c){if(c instanceof J$)return Ns("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 AM(s,r,o)}catch(c){return Ns(c instanceof ev?"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&&Jw(a.target)){const c=new Xe(a.target.path);null!==this.qe.get(c)||this.st(s,c)||this.We(s,c,ki.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 tv(n,e,this.Ke,this.qe,i);return this.qe=us(),this.Qe=QG(),this.Ke=new _i(Lt),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 qG,this.ke.set(n,e)),e}ot(n){let e=this.Qe.get(n);return e||(e=new ci(Lt),this.Qe=this.Qe.insert(n,e)),e}je(n){const e=null!==this.Ye(n);return e||Ie("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 qG),this.Be.getRemoteKeysForTarget(n).forEach(e=>{this.We(n,e,null)})}st(n,e){return this.Be.getRemoteKeysForTarget(n).has(e)}}function QG(){return new _i(Xe.comparator)}function KG(){return new _i(Xe.comparator)}const JIe={asc:"ASCENDING",desc:"DESCENDING"},eAe={"<":"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"},tAe={and:"AND",or:"OR"};class nAe{constructor(n,e){this.databaseId=n,this.useProto3Json=e}}function MM(t,n){return t.useProto3Json||U0(n)?n:{value:n}}function op(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 XG(t,n){return t.useProto3Json?n.toBase64():n.toUint8Array()}function iAe(t,n){return op(t,n.toTimestamp())}function Xi(t){return ht(!!t),gt.fromTimestamp(function(e){const i=Td(e);return new Si(i.seconds,i.nanos)}(t))}function RM(t,n){return PM(t,n).canonicalString()}function PM(t,n){const e=(r=t,new gn(["projects",r.projectId,"databases",r.database])).child("documents");var r;return void 0===n?e:e.child(n)}function YG(t){const n=gn.fromString(t);return ht(aW(n)),n}function iv(t,n){return RM(t.databaseId,n.path)}function pc(t,n){const e=YG(n);if(e.get(1)!==t.databaseId.projectId)throw new Ae(le.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 Ae(le.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+e.get(3)+" vs "+t.databaseId.database);return new Xe(eW(e))}function ZG(t,n){return RM(t.databaseId,n)}function FM(t){return new gn(["projects",t.databaseId.projectId,"databases",t.databaseId.database]).canonicalString()}function eW(t){return ht(t.length>4&&"documents"===t.get(4)),t.popFirst(5)}function tW(t,n,e){return{name:iv(t,n),fields:e.value.mapValue.fields}}function iW(t,n){return{documents:[ZG(t,n.path)]}}function NM(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=ZG(t,r);const o=function(l){if(0!==l.length)return sW(Yn.create(l,"and"))}(n.filters);o&&(e.structuredQuery.where=o);const s=function(l){if(0!==l.length)return l.map(d=>{return{field:Md((h=d).field),direction:cAe(h.dir)};var h})}(n.orderBy);s&&(e.structuredQuery.orderBy=s);const a=MM(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 rW(t){let n=function JG(t){const n=YG(t);return 4===n.length?gn.emptyPath():eW(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=oW(u);return h instanceof Yn&&yM(h)?h.getFilters():[h]}(e.where));let s=[];e.orderBy&&(s=e.orderBy.map(h=>{return new W0(sp((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,U0(h)?null:h}(e.limit));let c=null;var u;e.startAt&&(c=new Ad((u=e.startAt).values||[],!!u.before));let l=null;return e.endAt&&(l=function(u){return new Ad(u.values||[],!u.before)}(e.endAt)),function vG(t,n,e,i,r,o,s,a){return new ll(t,n,e,i,r,o,s,a)}(n,r,s,o,a,"F",c,l)}function oW(t){return void 0!==t.unaryFilter?function(e){switch(e.unaryFilter.op){case"IS_NAN":const i=sp(e.unaryFilter.field);return _n.create(i,"==",{doubleValue:NaN});case"IS_NULL":const r=sp(e.unaryFilter.field);return _n.create(r,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const o=sp(e.unaryFilter.field);return _n.create(o,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const s=sp(e.unaryFilter.field);return _n.create(s,"!=",{nullValue:"NULL_VALUE"});default:return ot()}}(t):void 0!==t.fieldFilter?_n.create(sp((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 Yn.create(e.compositeFilter.filters.map(i=>oW(i)),function(r){switch(r){case"AND":return"and";case"OR":return"or";default:return ot()}}(e.compositeFilter.op))}(t):ot();var e}function cAe(t){return JIe[t]}function lAe(t){return eAe[t]}function dAe(t){return tAe[t]}function Md(t){return{fieldPath:t.canonicalString()}}function sp(t){return Di.fromServerFormat(t.fieldPath)}function sW(t){return t instanceof _n?function(e){if("=="===e.op){if(nG(e.value))return{unaryFilter:{field:Md(e.field),op:"IS_NAN"}};if(tG(e.value))return{unaryFilter:{field:Md(e.field),op:"IS_NULL"}}}else if("!="===e.op){if(nG(e.value))return{unaryFilter:{field:Md(e.field),op:"IS_NOT_NAN"}};if(tG(e.value))return{unaryFilter:{field:Md(e.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Md(e.field),op:lAe(e.op),value:e.value}}}(t):t instanceof Yn?function(e){const i=e.getFilters().map(r=>sW(r));return 1===i.length?i[0]:{compositeFilter:{op:dAe(e.op),filters:i}}}(t):ot()}function uAe(t){const n=[];return t.fields.forEach(e=>n.push(e.canonicalString())),{fieldPaths:n}}function aW(t){return t.length>=4&&"projects"===t.get(0)&&"databases"===t.get(2)}class hl{constructor(n,e,i,r,o=gt.min(),s=gt.min(),a=Sr.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 hl(this.target,this.targetId,this.purpose,n,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(n,e){return new hl(this.target,this.targetId,this.purpose,this.sequenceNumber,e,this.lastLimboFreeSnapshotVersion,n,null)}withExpectedCount(n){return new hl(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,n)}withLastLimboFreeSnapshotVersion(n){return new hl(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,n,this.resumeToken,this.expectedCount)}}class cW{constructor(n){this.ct=n}}function LM(t){const n=rW({parent:t.parent,structuredQuery:t.structuredQuery});return"LAST"===t.limitType?tC(n,n.limit,"L"):n}class lh{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(Vi(n.integerValue));else if("doubleValue"in n){const i=Vi(n.doubleValue);isNaN(i)?this.Et(e,13):(this.Et(e,15),z0(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(cl(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?iG(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)}}lh.bt=new lh;class bAe{constructor(){this._n=new jM}addToCollectionParentIndex(n,e){return this._n.add(e),Y.resolve()}getCollectionParents(n,e){return Y.resolve(this._n.getEntries(e))}addFieldIndex(n,e){return Y.resolve()}deleteFieldIndex(n,e){return Y.resolve()}deleteAllFieldIndexes(n){return Y.resolve()}createTargetIndexes(n,e){return Y.resolve()}getDocumentsMatchingTarget(n,e){return Y.resolve(null)}getIndexType(n,e){return Y.resolve(0)}getFieldIndexes(n,e){return Y.resolve([])}getNextCollectionGroupToUpdate(n){return Y.resolve(null)}getMinOffset(n,e){return Y.resolve(Ls.min())}getMinOffsetFromCollectionGroup(n,e){return Y.resolve(Ls.min())}updateCollectionGroup(n,e,i){return Y.resolve()}updateIndexEntries(n,e){return Y.resolve()}}class jM{constructor(){this.index={}}add(n){const e=n.lastSegment(),i=n.popLast(),r=this.index[e]||new ci(gn.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 ci(gn.comparator)).toArray()}}new Uint8Array(0);class So{constructor(n,e,i){this.cacheSizeCollectionThreshold=n,this.percentileToCollect=e,this.maximumSequenceNumbersToCollect=i}static withCacheSize(n){return new So(n,So.DEFAULT_COLLECTION_PERCENTILE,So.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}}So.DEFAULT_COLLECTION_PERCENTILE=10,So.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,So.DEFAULT=new So(41943040,So.DEFAULT_COLLECTION_PERCENTILE,So.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),So.DISABLED=new So(-1,0,0);class uh{constructor(n){this.On=n}next(){return this.On+=2,this.On}static Nn(){return new uh(0)}static Ln(){return new uh(-1)}}class MW{constructor(){this.changes=new dl(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,ki.newInvalidDocument(n).setReadTime(e))}getEntry(n,e){this.assertNotApplied();const i=this.changes.get(e);return void 0!==i?Y.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 SAe{constructor(n,e){this.overlayedDocument=n,this.mutatedFields=e}}class NW{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&&J0(i.mutation,r,ds.empty(),Si.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=mc();return this.populateOverlays(n,r,e).next(()=>this.computeViews(n,e,r,i).next(o=>{let s=X0();return o.forEach((a,c)=>{s=s.insert(a,c.overlayedDocument)}),s}))}getOverlayedDocuments(n,e){const i=mc();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=us();const s=Y0(),a=Y0();return e.forEach((c,l)=>{const d=i.get(l.key);r.has(l.key)&&(void 0===d||d.mutation instanceof ul)?o=o.insert(l.key,l):void 0!==d?(s.set(l.key,d.mutation.getFieldMask()),J0(d.mutation,l,d.mutation.getFieldMask(),Si.now())):s.set(l.key,ds.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 SAe(d,null!==(u=s.get(l))&&void 0!==u?u:null))}),a))}recalculateAndSaveOverlays(n,e){const i=Y0();let r=new _i((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)||ds.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=TG();d.forEach(h=>{if(!o.has(h)){const f=OG(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 Y.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):CM(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):Y.resolve(mc());let a=-1,c=o;return s.next(l=>Y.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:EG(d)})))})}getDocumentsMatchingDocumentQuery(n,e){return this.getDocument(n,new Xe(e)).next(i=>{let r=X0();return i.isFoundDocument()&&(r=r.insert(i.key,i)),r})}getDocumentsMatchingCollectionGroupQuery(n,e,i,r){const o=e.collectionGroup;let s=X0();return this.indexManager.getCollectionParents(n,o).next(a=>Y.forEach(a,c=>{const l=(u=e,h=c.child(o),new ll(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,ki.newInvalidDocument(d)))});let a=X0();return s.forEach((c,l)=>{const d=o.get(c);void 0!==d&&J0(d.mutation,l,ds.empty(),Si.now()),K0(e,l)&&(a=a.insert(c,l))}),a})}}class DAe{constructor(n){this.serializer=n,this.cr=new Map,this.lr=new Map}getBundleMetadata(n,e){return Y.resolve(this.cr.get(e))}saveBundleMetadata(n,e){return this.cr.set(e.id,{id:(r=e).id,version:r.version,createTime:Xi(r.createTime)}),Y.resolve();var r}getNamedQuery(n,e){return Y.resolve(this.lr.get(e))}saveNamedQuery(n,e){return this.lr.set(e.name,{name:(r=e).name,query:LM(r.bundledQuery),readTime:Xi(r.readTime)}),Y.resolve();var r}}class IAe{constructor(){this.overlays=new _i(Xe.comparator),this.hr=new Map}getOverlay(n,e){return Y.resolve(this.overlays.get(e))}getOverlays(n,e){const i=mc();return Y.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)}),Y.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)),Y.resolve()}getOverlaysForCollection(n,e,i){const r=mc(),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 Y.resolve(r)}getOverlaysForCollectionGroup(n,e,i,r){let o=new _i((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=mc(),o=o.insert(l.largestBatchId,d)),d.set(l.getKey(),l)}}const a=mc(),c=o.getIterator();for(;c.hasNext()&&(c.getNext().value.forEach((l,d)=>a.set(l,d)),!(a.size()>=r)););return Y.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 IM(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 $M{constructor(){this.Pr=new ci($r.Ir),this.Tr=new ci($r.Er)}isEmpty(){return this.Pr.isEmpty()}addReference(n,e){const i=new $r(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 $r(n,e))}Rr(n,e){n.forEach(i=>this.removeReference(i,e))}Vr(n){const e=new Xe(new gn([])),i=new $r(e,n),r=new $r(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 gn([])),i=new $r(e,n),r=new $r(e,n+1);let o=Yt();return this.Tr.forEachInRange([i,r],s=>{o=o.add(s.key)}),o}containsKey(n){const e=new $r(n,0),i=this.Pr.firstAfterOrEqual(e);return null!==i&&n.isEqual(i.key)}}class $r{constructor(n,e){this.key=n,this.pr=e}static Ir(n,e){return Xe.comparator(n.key,e.key)||Lt(n.pr,e.pr)}static Er(n,e){return Lt(n.pr,e.pr)||Xe.comparator(n.key,e.key)}}class AAe{constructor(n,e){this.indexManager=n,this.referenceDelegate=e,this.mutationQueue=[],this.yr=1,this.wr=new ci($r.Ir)}checkEmpty(n){return Y.resolve(0===this.mutationQueue.length)}addMutationBatch(n,e,i,r){const o=this.yr;this.yr++;const s=new SM(o,e,i,r);this.mutationQueue.push(s);for(const a of r)this.wr=this.wr.add(new $r(a.key,o)),this.indexManager.addToCollectionParentIndex(n,a.key.path.popLast());return Y.resolve(s)}lookupMutationBatch(n,e){return Y.resolve(this.Sr(e))}getNextMutationBatchAfterBatchId(n,e){const r=this.br(e+1),o=r<0?0:r;return Y.resolve(this.mutationQueue.length>o?this.mutationQueue[o]:null)}getHighestUnacknowledgedBatchId(){return Y.resolve(0===this.mutationQueue.length?-1:this.yr-1)}getAllMutationBatches(n){return Y.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(n,e){const i=new $r(e,0),r=new $r(e,Number.POSITIVE_INFINITY),o=[];return this.wr.forEachInRange([i,r],s=>{const a=this.Sr(s.pr);o.push(a)}),Y.resolve(o)}getAllMutationBatchesAffectingDocumentKeys(n,e){let i=new ci(Lt);return e.forEach(r=>{const o=new $r(r,0),s=new $r(r,Number.POSITIVE_INFINITY);this.wr.forEachInRange([o,s],a=>{i=i.add(a.pr)})}),Y.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 $r(new Xe(o),0);let a=new ci(Lt);return this.wr.forEachWhile(c=>{const l=c.key.path;return!!i.isPrefixOf(l)&&(l.length===r&&(a=a.add(c.pr)),!0)},s),Y.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 Y.forEach(e.mutations,r=>{const o=new $r(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 $r(e,0),r=this.wr.firstAfterOrEqual(i);return Y.resolve(e.isEqual(r&&r.key))}performConsistencyCheck(n){return Y.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 MAe{constructor(n){this.vr=n,this.docs=new _i(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 Y.resolve(i?i.document.mutableCopy():ki.newInvalidDocument(e))}getEntries(n,e){let i=us();return e.forEach(r=>{const o=this.docs.get(r);i=i.insert(r,o?o.document.mutableCopy():ki.newInvalidDocument(r))}),Y.resolve(i)}getDocumentsMatchingQuery(n,e,i,r){let o=us();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||fM(V$(d),i)<=0||(r.has(d.key)||K0(e,d))&&(o=o.insert(d.key,d.mutableCopy()))}return Y.resolve(o)}getAllFromCollectionGroup(n,e,i,r){ot()}Fr(n,e){return Y.forEach(this.docs,i=>e(i))}newChangeBuffer(n){return new RAe(this)}getSize(n){return Y.resolve(this.size)}}class RAe extends MW{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)}),Y.waitFor(e)}getFromCache(n,e){return this.ar.getEntry(n,e)}getAllFromCache(n,e){return this.ar.getEntries(n,e)}}class PAe{constructor(n){this.persistence=n,this.Mr=new dl(e=>ih(e),q0),this.lastRemoteSnapshotVersion=gt.min(),this.highestTargetId=0,this.Or=0,this.Nr=new $M,this.targetCount=0,this.Lr=uh.Nn()}forEachTarget(n,e){return this.Mr.forEach((i,r)=>e(r)),Y.resolve()}getLastRemoteSnapshotVersion(n){return Y.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(n){return Y.resolve(this.Or)}allocateTargetId(n){return this.highestTargetId=this.Lr.next(),Y.resolve(this.highestTargetId)}setTargetsMetadata(n,e,i){return i&&(this.lastRemoteSnapshotVersion=i),e>this.Or&&(this.Or=e),Y.resolve()}qn(n){this.Mr.set(n.target,n);const e=n.targetId;e>this.highestTargetId&&(this.Lr=new uh(e),this.highestTargetId=e),n.sequenceNumber>this.Or&&(this.Or=n.sequenceNumber)}addTargetData(n,e){return this.qn(e),this.targetCount+=1,Y.resolve()}updateTargetData(n,e){return this.qn(e),Y.resolve()}removeTargetData(n,e){return this.Mr.delete(e.target),this.Nr.Vr(e.targetId),this.targetCount-=1,Y.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++)}),Y.waitFor(o).next(()=>r)}getTargetCount(n){return Y.resolve(this.targetCount)}getTargetData(n,e){const i=this.Mr.get(e)||null;return Y.resolve(i)}addMatchingKeys(n,e,i){return this.Nr.dr(e,i),Y.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))}),Y.waitFor(o)}removeMatchingKeysForTargetId(n,e){return this.Nr.Vr(e),Y.resolve()}getMatchingKeysForTargetId(n,e){const i=this.Nr.gr(e);return Y.resolve(i)}containsKey(n,e){return Y.resolve(this.Nr.containsKey(e))}}class GM{constructor(n,e){this.Br={},this.overlays={},this.kr=new Bs(0),this.qr=!1,this.qr=!0,this.referenceDelegate=n(this),this.Qr=new PAe(this),this.indexManager=new bAe,this.remoteDocumentCache=new MAe(i=>this.referenceDelegate.Kr(i)),this.serializer=new cW(e),this.$r=new DAe(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 IAe,this.overlays[n.toKey()]=e),e}getMutationQueue(n,e){let i=this.Br[n.toKey()];return i||(i=new AAe(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){Ie("MemoryPersistence","Starting transaction:",n);const r=new FAe(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 Y.or(Object.values(this.Br).map(i=>()=>i.containsKey(n,e)))}}class FAe extends z${constructor(n){super(),this.currentSequenceNumber=n}}class mC{constructor(n){this.persistence=n,this.zr=new $M,this.jr=null}static Hr(n){return new mC(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()),Y.resolve()}removeReference(n,e,i){return this.zr.removeReference(i,e),this.Jr.add(i.toString()),Y.resolve()}markPotentiallyOrphaned(n,e){return this.Jr.add(e.toString()),Y.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 Y.forEach(this.Jr,i=>{const r=Xe.fromPath(i);return this.Yr(n,r).next(o=>{o||e.removeEntry(r,gt.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 Y.or([()=>Y.resolve(this.zr.containsKey(e)),()=>this.persistence.getTargetCache().containsKey(n,e),()=>this.persistence.Gr(n,e)])}}class KM{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 KM(n,e.fromCache,i,r)}}class NAe{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(n){this._documentReadCount+=n}}class BW{constructor(){this.$i=!1,this.Ui=!1,this.Wi=100,this.Gi=function XH(){return!function kSe(){var t;const n=null===(t=mw())||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:Zs.v(vd())>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 NAe;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?(Gm()<=Tn.DEBUG&&Ie("QueryEngine","The SDK decides to create cache indexes for query:",ep(e),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(n,qo(e))):Y.resolve())}ji(n,e){if(bG(e))return Y.resolve(null);let i=qo(e);return this.indexManager.getIndexType(n,i).next(r=>0===r?null:(null!==e.limit&&1===r&&(e=tC(e,null,"F"),i=qo(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,tC(e,null,"F")):this.es(n,l,e,c)}))})))}Hi(n,e,i,r){return bG(e)||r.isEqual(gt.min())?Y.resolve(null):this.zi.getDocuments(n,i).next(o=>{const s=this.Zi(e,o);return this.Xi(e,s,i,r)?Y.resolve(null):(Gm()<=Tn.DEBUG&&Ie("QueryEngine","Re-using previous result from %s to execute query: %s",r.toString(),ep(e)),this.es(n,s,e,function B$(t,n){const e=t.toTimestamp().seconds,i=t.toTimestamp().nanoseconds+1,r=gt.fromTimestamp(1e9===i?new Si(e+1,0):new Si(e,i));return new Ls(r,Xe.empty(),n)}(r,-1)).next(a=>a))})}Zi(n,e){let i=new ci(CG(n));return e.forEach((r,o)=>{K0(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 Gm()<=Tn.DEBUG&&Ie("QueryEngine","Using full collection scan to execute query:",ep(e)),this.zi.getDocumentsMatchingQuery(n,e,Ls.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 LAe{constructor(n,e,i,r){this.persistence=n,this.ts=e,this.serializer=r,this.ns=new _i(Lt),this.rs=new dl(o=>ih(o),q0),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 NW(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 UW(t,n){return XM.apply(this,arguments)}function XM(){return XM=fe(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}))})})}),XM.apply(this,arguments)}function zW(t){const n=qe(t);return n.persistence.runTransaction("Get last remote snapshot version","readonly",e=>n.Qr.getLastRemoteSnapshotVersion(e))}function UAe(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 hp(t,n,e){return YM.apply(this,arguments)}function YM(){return YM=fe(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(!kd(s))throw s;Ie("LocalStore",`Failed to update sequence numbers for target ${n}: ${s}`)}i.ns=i.ns.remove(n),i.rs.delete(r.target)}),YM.apply(this,arguments)}function _C(t,n,e){const i=qe(t);let r=gt.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?Y.resolve(u.ns.get(h)):u.Qr.getTargetData(l,d)}(i,s,qo(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:gt.min(),e?o:Yt())).next(a=>(function GW(t,n,e){let i=t.ss.get(n)||gt.min();e.forEach((r,o)=>{o.readTime.compareTo(i)>0&&(i=o.readTime)}),t.ss.set(n,i)}(i,function wG(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 nR{constructor(){this.activeTargetIds=function EM(){return HIe}()}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 QW{constructor(){this.no=new nR,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 nR,Promise.resolve()}handleUserChange(n,e,i){}setOnlineState(n){}shutdown(){}writeSequenceNumber(n){}notifyBundleLoaded(n){}}class jAe{io(n){}shutdown(){}}class KW{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(){Ie("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(const n of this.uo)n(0)}ao(){Ie("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 yC=null;function rR(){return null===yC?yC=268435456+Math.round(2147483648*Math.random()):yC++,"0x"+yC.toString(16)}const $Ae={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"};class GAe{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 Do="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=rR(),c=this.bo(e,i.toUriEncodedString());Ie("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=>(Ie("RestConnection",`Received RPC '${e}' ${a}: `,d),d),d=>{throw Ns("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/"+$m,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}:${$Ae[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=rR();return new Promise((s,a)=>{const c=new W2e;c.setWithCredentials(!0),c.listenOnce($2e.COMPLETE,()=>{try{switch(c.getLastErrorCode()){case dM.NO_ERROR:const d=c.getResponseJson();Ie(Do,`XHR for RPC '${n}' ${o} received:`,JSON.stringify(d)),s(d);break;case dM.TIMEOUT:Ie(Do,`RPC '${n}' ${o} timed out`),a(new Ae(le.DEADLINE_EXCEEDED,"Request time out"));break;case dM.HTTP_ERROR:const u=c.getStatus();if(Ie(Do,`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(le).indexOf(v)>=0?v:le.UNKNOWN}(f.status);a(new Ae(m,f.message))}else a(new Ae(le.UNKNOWN,"Server responded with status "+c.getStatus()))}else a(new Ae(le.UNAVAILABLE,"Connection failed."));break;default:ot()}}finally{Ie(Do,`RPC '${n}' ${o} completed.`)}});const l=JSON.stringify(r);Ie(Do,`RPC '${n}' ${o} sending request:`,r),c.send(e,"POST",l,i,15)})}Fo(n,e,i){const r=rR(),o=[this.fo,"/","google.firestore.v1.Firestore","/",n,"/channel"],s=H2e(),a=j2e(),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("");Ie(Do,`Creating RPC '${n}' stream ${r}: ${d}`,c);const u=s.createWebChannel(d,c);let h=!1,f=!1;const m=new GAe({lo:p=>{f?Ie(Do,`Not sending because RPC '${n}' stream ${r} is closed:`,p):(h||(Ie(Do,`Opening RPC '${n}' stream ${r} transport.`),u.open(),h=!0),Ie(Do,`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,$w.EventType.OPEN,()=>{f||Ie(Do,`RPC '${n}' stream ${r} transport opened.`)}),g(u,$w.EventType.CLOSE,()=>{f||(f=!0,Ie(Do,`RPC '${n}' stream ${r} transport closed`),m.Vo())}),g(u,$w.EventType.ERROR,p=>{f||(f=!0,Ns(Do,`RPC '${n}' stream ${r} transport errored:`,p),m.Vo(new Ae(le.UNAVAILABLE,"The operation could not be completed")))}),g(u,$w.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){Ie(Do,`RPC '${n}' stream ${r} received error:`,D);const U=D.status;let A=function(V){const K=cr[V];if(void 0!==K)return zG(K)}(U),T=D.message;void 0===A&&(A=le.INTERNAL,T="Unknown error status: "+U+" with message "+D.message),f=!0,m.Vo(new Ae(A,T)),u.close()}else Ie(Do,`RPC '${n}' stream ${r} received:`,x),m.mo(x)}}),g(a,G2e.STAT_EVENT,p=>{p.stat===R$.PROXY?Ie(Do,`RPC '${n}' stream ${r} detected buffering proxy`):p.stat===R$.NOPROXY&&Ie(Do,`RPC '${n}' stream ${r} detected no buffering proxy`)}),setTimeout(()=>{m.Ro()},0),m}}function xC(){return typeof document<"u"?document:null}function hv(t){return new nAe(t,!0)}class oR{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&&Ie("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 YW{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 oR(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 fe(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 fe(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 fe(function*(){i.n_(),i.r_(),i.jo.cancel(),i.Wo++,4!==n?i.jo.reset():e&&e.code===le.RESOURCE_EXHAUSTED?(Ki(e.toString()),Ki("Using maximum backoff delay to prevent overloading the backend."),i.jo.ko()):e&&e.code===le.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 Ae(le.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(fe(function*(){n.state=0,n.start()}))}__(n){return Ie("PersistentStream",`close with error: ${n}`),this.stream=null,this.close(4,n)}s_(n){return e=>{this.oi.enqueueAndForget(()=>this.Wo===n?e():(Ie("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class qAe extends YW{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 oAe(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),Sr.fromBase64String(d||"")):(ht(void 0===d||d instanceof Uint8Array),Sr.fromUint8Array(d||new Uint8Array))}(t,n.targetChange.resumeToken),s=n.targetChange.cause,a=s&&function(l){const d=void 0===l.code?le.UNKNOWN:zG(l.code);return new Ae(d,l.message||"")}(s);e=new WG(i,r,o,a||null)}else if("documentChange"in n){const i=n.documentChange,r=pc(t,i.document.name),o=Xi(i.document.updateTime),s=i.document.createTime?Xi(i.document.createTime):gt.min(),a=new ro({mapValue:{fields:i.document.fields}}),c=ki.newFoundDocument(r,o,s,a);e=new sC(i.targetIds||[],i.removedTargetIds||[],c.key,c)}else if("documentDelete"in n){const i=n.documentDelete,r=pc(t,i.document),o=i.readTime?Xi(i.readTime):gt.min(),s=ki.newNoDocument(r,o);e=new sC([],i.removedTargetIds||[],s.key,s)}else if("documentRemove"in n){const i=n.documentRemove,r=pc(t,i.document);e=new sC([],i.removedTargetIds||[],r,null)}else{if(!("filter"in n))return ot();{const i=n.filter,{count:r=0,unchangedNames:o}=i,s=new XIe(r,o);e=new GG(i.targetId,s)}}var l;return e}(this.serializer,n),i=function(o){if(!("targetChange"in o))return gt.min();const s=o.targetChange;return s.targetIds&&s.targetIds.length?gt.min():s.readTime?Xi(s.readTime):gt.min()}(n);return this.listener.u_(e,i)}c_(n){const e={};e.database=FM(this.serializer),e.addTarget=function(o,s){let a;const c=s.target;if(a=Jw(c)?{documents:iW(o,c)}:{query:NM(o,c).ut},a.targetId=s.targetId,s.resumeToken.approximateByteSize()>0){a.resumeToken=XG(o,s.resumeToken);const l=MM(o,s.expectedCount);null!==l&&(a.expectedCount=l)}else if(s.snapshotVersion.compareTo(gt.min())>0){a.readTime=op(o,s.snapshotVersion.toTimestamp());const l=MM(o,s.expectedCount);null!==l&&(a.expectedCount=l)}return a}(this.serializer,n);const i=function aAe(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=FM(this.serializer),e.removeTarget=n,this.t_(e)}}class QAe extends YW{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 sAe(t,n){return t&&t.length>0?(ht(void 0!==n),t.map(e=>function(r,o){let s=Xi(r.updateTime?r.updateTime:o);return s.isEqual(gt.min())&&(s=Xi(o)),new WIe(s,r.transformResults||[])}(e,n))):[]}(n.writeResults,n.commitTime),i=Xi(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=FM(this.serializer),this.t_(n)}I_(n){const e={streamToken:this.lastStreamToken,writes:n.map(i=>function rv(t,n){let e;if(n instanceof ip)e={update:tW(t,n.key,n.value)};else if(n instanceof rp)e={delete:iv(t,n.key)};else if(n instanceof ul)e={update:tW(t,n.key,n.data),updateMask:uAe(n.fieldMask)};else{if(!(n instanceof TM))return ot();e={verify:iv(t,n.key)}}return n.fieldTransforms.length>0&&(e.updateTransforms=n.fieldTransforms.map(i=>function(o,s){const a=s.transform;if(a instanceof tp)return{fieldPath:s.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(a instanceof rh)return{fieldPath:s.field.canonicalString(),appendMissingElements:{values:a.elements}};if(a instanceof oh)return{fieldPath:s.field.canonicalString(),removeAllFromArray:{values:a.elements}};if(a instanceof np)return{fieldPath:s.field.canonicalString(),increment:a.Ie};throw ot()}(0,i))),n.precondition.isNone||(e.currentDocument=void 0!==(o=n.precondition).updateTime?{updateTime:iAe(t,o.updateTime)}:void 0!==o.exists?{exists:o.exists}:ot()),e;var o}(this.serializer,i))};this.t_(e)}}class KAe 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 Ae(le.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,PM(e,i),r,o,s)).catch(o=>{throw"FirebaseError"===o.name?(o.code===le.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),o):new Ae(le.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,PM(e,i),r,s,a,o)).catch(s=>{throw"FirebaseError"===s.name?(s.code===le.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),s):new Ae(le.UNKNOWN,s.toString())})}terminate(){this.A_=!0,this.connection.terminate()}}class YAe{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_?(Ki(e),this.g_=!1):Ie("OnlineStateTracker",e)}b_(){null!==this.f_&&(this.f_.cancel(),this.f_=null)}}class ZAe{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(fe(function*(){var c;Od(s)&&(Ie("RemoteStore","Restarting streams for network reachability change."),yield(c=fe(function*(d){const u=qe(d);u.v_.add(4),yield fp(u),u.x_.set("Unknown"),u.v_.delete(4),yield fv(u)}),function l(d){return c.apply(this,arguments)})(s))}))}),this.x_=new YAe(i,r)}}function fv(t){return aR.apply(this,arguments)}function aR(){return aR=fe(function*(t){if(Od(t))for(const n of t.F_)yield n(!0)}),aR.apply(this,arguments)}function fp(t){return cR.apply(this,arguments)}function cR(){return cR=fe(function*(t){for(const n of t.F_)yield n(!1)}),cR.apply(this,arguments)}function wC(t,n){const e=qe(t);e.C_.has(n.targetId)||(e.C_.set(n.targetId,n),uR(e)?dR(e):gp(e).Jo()&&lR(e,n))}function mp(t,n){const e=qe(t),i=gp(e);e.C_.delete(n),i.Jo()&&ZW(e,n),0===e.C_.size&&(i.Jo()?i.Xo():Od(e)&&e.x_.set("Unknown"))}function lR(t,n){if(t.O_.Oe(n.targetId),n.resumeToken.approximateByteSize()>0||n.snapshotVersion.compareTo(gt.min())>0){const e=t.remoteSyncer.getRemoteKeysForTarget(n.targetId).size;n=n.withExpectedCount(e)}gp(t).c_(n)}function ZW(t,n){t.O_.Oe(n),gp(t).l_(n)}function dR(t){t.O_=new ZIe({getRemoteKeysForTarget:n=>t.remoteSyncer.getRemoteKeysForTarget(n),_t:n=>t.C_.get(n)||null,nt:()=>t.datastore.serializer.databaseId}),gp(t).start(),t.x_.p_()}function uR(t){return Od(t)&&!gp(t).Ho()&&t.C_.size>0}function Od(t){return 0===qe(t).v_.size}function JW(t){t.O_=void 0}function JAe(t){return hR.apply(this,arguments)}function hR(){return hR=fe(function*(t){t.C_.forEach((n,e)=>{lR(t,n)})}),hR.apply(this,arguments)}function eMe(t,n){return fR.apply(this,arguments)}function fR(){return fR=fe(function*(t,n){JW(t),uR(t)?(t.x_.S_(n),dR(t)):t.x_.set("Unknown")}),fR.apply(this,arguments)}function tMe(t,n,e){return mR.apply(this,arguments)}function mR(){return mR=fe(function*(t,n,e){if(t.x_.set("Online"),n instanceof WG&&2===n.state&&n.cause)try{yield(i=fe(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){Ie("RemoteStore","Failed to remove targets %s: %s ",n.targetIds.join(","),i),yield CC(t,i)}else if(n instanceof sC?t.O_.$e(n):n instanceof GG?t.O_.Je(n):t.O_.Ge(n),!e.isEqual(gt.min()))try{const i=yield zW(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(Sr.EMPTY_BYTE_STRING,d.snapshotVersion)),ZW(o,c);const u=new hl(d.target,c,l,d.sequenceNumber);lR(o,u)}),o.remoteSyncer.applyRemoteEvent(a)}(t,e))}catch(i){Ie("RemoteStore","Failed to raise snapshot:",i),yield CC(t,i)}var i}),mR.apply(this,arguments)}function CC(t,n,e){return pR.apply(this,arguments)}function pR(){return pR=fe(function*(t,n,e){if(!kd(n))throw n;t.v_.add(1),yield fp(t),t.x_.set("Offline"),e||(e=()=>zW(t.localStore)),t.asyncQueue.enqueueRetryable(fe(function*(){Ie("RemoteStore","Retrying IndexedDB access"),yield e(),t.v_.delete(1),yield fv(t)}))}),pR.apply(this,arguments)}function eq(t,n){return n().catch(e=>CC(t,e,n))}function pp(t){return gR.apply(this,arguments)}function gR(){return gR=fe(function*(t){const n=qe(t),e=Nd(n);let i=n.D_.length>0?n.D_[n.D_.length-1].batchId:-1;for(;nMe(n);)try{const r=yield UAe(n.localStore,i);if(null===r){0===n.D_.length&&e.Xo();break}i=r.batchId,iMe(n,r)}catch(r){yield CC(n,r)}tq(n)&&nq(n)}),gR.apply(this,arguments)}function nMe(t){return Od(t)&&t.D_.length<10}function iMe(t,n){t.D_.push(n);const e=Nd(t);e.Jo()&&e.P_&&e.I_(n.mutations)}function tq(t){return Od(t)&&!Nd(t).Ho()&&t.D_.length>0}function nq(t){Nd(t).start()}function rMe(t){return _R.apply(this,arguments)}function _R(){return _R=fe(function*(t){Nd(t).d_()}),_R.apply(this,arguments)}function oMe(t){return vR.apply(this,arguments)}function vR(){return vR=fe(function*(t){const n=Nd(t);for(const e of t.D_)n.I_(e.mutations)}),vR.apply(this,arguments)}function sMe(t,n,e){return bR.apply(this,arguments)}function bR(){return bR=fe(function*(t,n,e){const i=t.D_.shift(),r=DM.from(i,n,e);yield eq(t,()=>t.remoteSyncer.applySuccessfulWrite(r)),yield pp(t)}),bR.apply(this,arguments)}function aMe(t,n){return yR.apply(this,arguments)}function yR(){return yR=fe(function*(t,n){var e;n&&Nd(t).P_&&(yield(e=fe(function*(r,o){if(function UG(t){switch(t){default:return ot();case le.CANCELLED:case le.UNKNOWN:case le.DEADLINE_EXCEEDED:case le.RESOURCE_EXHAUSTED:case le.INTERNAL:case le.UNAVAILABLE:case le.UNAUTHENTICATED:return!1;case le.INVALID_ARGUMENT:case le.NOT_FOUND:case le.ALREADY_EXISTS:case le.PERMISSION_DENIED:case le.FAILED_PRECONDITION:case le.ABORTED:case le.OUT_OF_RANGE:case le.UNIMPLEMENTED:case le.DATA_LOSS:return!0}}(a=o.code)&&a!==le.ABORTED){const s=r.D_.shift();Nd(r).Zo(),yield eq(r,()=>r.remoteSyncer.rejectFailedWrite(s.batchId,o)),yield pp(r)}var a}),function i(r,o){return e.apply(this,arguments)})(t,n)),tq(t)&&nq(t)}),yR.apply(this,arguments)}function iq(t,n){return xR.apply(this,arguments)}function xR(){return xR=fe(function*(t,n){const e=qe(t);e.asyncQueue.verifyOperationInProgress(),Ie("RemoteStore","RemoteStore received new credentials");const i=Od(e);e.v_.add(3),yield fp(e),i&&e.x_.set("Unknown"),yield e.remoteSyncer.handleCredentialChange(n),e.v_.delete(3),yield fv(e)}),xR.apply(this,arguments)}function CR(){return CR=fe(function*(t,n){const e=qe(t);n?(e.v_.delete(2),yield fv(e)):n||(e.v_.add(2),yield fp(e),e.x_.set("Unknown"))}),CR.apply(this,arguments)}function gp(t){return t.N_||(t.N_=function(e,i,r){const o=qe(e);return o.R_(),new qAe(i,o.connection,o.authCredentials,o.appCheckCredentials,o.serializer,r)}(t.datastore,t.asyncQueue,{Po:JAe.bind(null,t),To:eMe.bind(null,t),u_:tMe.bind(null,t)}),t.F_.push(function(){var n=fe(function*(e){e?(t.N_.Zo(),uR(t)?dR(t):t.x_.set("Unknown")):(yield t.N_.stop(),JW(t))});return function(e){return n.apply(this,arguments)}}())),t.N_}function Nd(t){return t.L_||(t.L_=function(e,i,r){const o=qe(e);return o.R_(),new QAe(i,o.connection,o.authCredentials,o.appCheckCredentials,o.serializer,r)}(t.datastore,t.asyncQueue,{Po:rMe.bind(null,t),To:aMe.bind(null,t),E_:oMe.bind(null,t),T_:sMe.bind(null,t)}),t.F_.push(function(){var n=fe(function*(e){e?(t.L_.Zo(),yield pp(t)):(yield t.L_.stop(),t.D_.length>0&&(Ie("RemoteStore",`Stopping write stream with ${t.D_.length} pending writes`),t.D_=[]))});return function(e){return n.apply(this,arguments)}}())),t.L_}class kR{constructor(n,e,i,r,o){this.asyncQueue=n,this.timerId=e,this.targetTimeMs=i,this.op=r,this.removalCallback=o,this.deferred=new Tr,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 kR(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 Ae(le.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 _p(t,n){if(Ki("AsyncQueue",`${n}: ${t}`),kd(t))return new Ae(le.UNAVAILABLE,`${n}: ${t}`);throw t}class vp{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=X0(),this.sortedSet=new _i(this.comparator)}static emptySet(n){return new vp(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 vp)||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 vp;return i.comparator=this.comparator,i.keyedMap=n,i.sortedSet=e,i}}class rq{constructor(){this.B_=new _i(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 bp{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 bp(n,e,vp.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)&&Q0(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 lMe{constructor(){this.queries=new dl(n=>xG(n),Q0),this.onlineState="Unknown",this.W_=new Set}}function TR(){return TR=fe(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 cMe,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=_p(s,`Initialization of query '${ep(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_)&&IR(e)}),TR.apply(this,arguments)}function DR(){return DR=fe(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}}),DR.apply(this,arguments)}function dMe(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&&IR(e)}function uMe(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 IR(t){t.W_.forEach(n=>{n.next()})}var AR,oq;(oq=AR||(AR={})).j_="default",oq.Cache="cache";class MR{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 bp(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=bp.fromInitialDocuments(n.query,n.docs,n.mutatedKeys,n.fromCache,n.hasCachedResults),this.J_=!0,this.H_.next(n)}U_(){return this.options.source!==AR.Cache}}class cq{constructor(n){this.key=n}}class lq{constructor(n){this.key=n}}class dq{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=CG(n),this.Pa=new vp(this.ha)}get Ia(){return this.ua}Ta(n,e){const i=e?e.Ea:new rq,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=K0(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 bp(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 rq,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 lq(i))}),this.la.forEach(i=>{n.has(i)||e.push(new cq(i))}),e}fa(n){this.ua=n.hs,this.la=Yt();const e=this.Ta(n.documents);return this.applyChanges(e,!0)}ga(){return bp.fromInitialDocuments(this.query,this.Pa,this.mutatedKeys,0===this.ca,this.hasCachedResults)}}class mMe{constructor(n,e,i){this.query=n,this.targetId=e,this.view=i}}class pMe{constructor(n){this.key=n,this.pa=!1}}class gMe{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 dl(a=>xG(a),Q0),this.Sa=new Map,this.ba=new Set,this.Da=new _i(Xe.comparator),this.Ca=new Map,this.va=new $M,this.Fa={},this.Ma=new Map,this.xa=uh.Ln(),this.onlineState="Unknown",this.Oa=void 0}get isPrimaryClient(){return!0===this.Oa}}function _Me(t,n){return RR.apply(this,arguments)}function RR(){return RR=fe(function*(t,n,e=!0){const i=kC(t);let r;const o=i.wa.get(n);return o?(i.sharedClientState.addLocalQueryTarget(o.targetId),r=o.view.ga()):r=yield uq(i,n,e,!0),r}),RR.apply(this,arguments)}function vMe(t,n){return PR.apply(this,arguments)}function PR(){return PR=fe(function*(t,n){const e=kC(t);yield uq(e,n,!0,!1)}),PR.apply(this,arguments)}function uq(t,n,e,i){return FR.apply(this,arguments)}function FR(){return FR=fe(function*(t,n,e,i){const r=yield function up(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,Y.resolve(r)):e.Qr.allocateTargetId(i).next(s=>(r=new hl(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,qo(n)),o=r.targetId,s=e?t.sharedClientState.addLocalQueryTarget(o):"not-current";let a;return i&&(a=yield function OR(t,n,e,i,r){return NR.apply(this,arguments)}(t,n,o,"current"===s,r.resumeToken)),t.isPrimaryClient&&e&&wC(t.remoteStore,r),a}),FR.apply(this,arguments)}function NR(){return NR=fe(function*(t,n,e,i,r){t.Na=(u,h,f)=>{return(m=fe(function*(p,v,x,C){let D=v.view.Ta(x);D.Xi&&(D=yield _C(p.localStore,v.query,!1).then(({documents:B})=>v.view.Ta(B,D)));const U=C&&C.targetChanges.get(v.targetId),A=C&&null!=C.targetMismatches.get(v.targetId),T=v.view.applyChanges(D,p.isPrimaryClient,U,A);return qR(p,v.targetId,T.Va),T.snapshot}),function g(p,v,x,C){return m.apply(this,arguments)})(t,u,h,f);var m};const o=yield _C(t.localStore,n,!0),s=new dq(n,o.hs),a=s.Ta(o.documents),c=nv.createSynthesizedTargetChangeForCurrentChange(e,i&&"Offline"!==t.onlineState,r),l=s.applyChanges(a,t.isPrimaryClient,c);qR(t,e,l.Va);const d=new mMe(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}),NR.apply(this,arguments)}function bMe(t,n,e){return LR.apply(this,arguments)}function LR(){return LR=fe(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=>!Q0(s,n))),void i.wa.delete(n);i.isPrimaryClient?(i.sharedClientState.removeLocalQueryTarget(r.targetId),i.sharedClientState.isActiveQueryTarget(r.targetId)||(yield hp(i.localStore,r.targetId,!1).then(()=>{i.sharedClientState.clearQueryState(r.targetId),e&&mp(i.remoteStore,r.targetId),yp(i,r.targetId)}).catch(Cd))):(yp(i,r.targetId),yield hp(i.localStore,r.targetId,!0))}),LR.apply(this,arguments)}function yMe(t,n){return BR.apply(this,arguments)}function BR(){return BR=fe(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),mp(e.remoteStore,i.targetId))}),BR.apply(this,arguments)}function VR(){return VR=fe(function*(t,n,e){const i=function rP(t){const n=qe(t);return n.remoteStore.remoteSyncer.applySuccessfulWrite=CMe.bind(null,n),n.remoteStore.remoteSyncer.rejectFailedWrite=kMe.bind(null,n),n}(t);try{const r=yield function(s,a){const c=qe(s),l=Si.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=us(),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=QIe(x,u.get(x.key).overlayedDocument);null!=C&&v.push(new ul(x.key,C,sG(C.value.mapValue),Ii.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:EG(u)}))}(i.localStore,n);i.sharedClientState.addPendingMutation(r.batchId),function(s,a,c){let l=s.Fa[s.currentUser.toKey()];l||(l=new _i(Lt)),l=l.insert(a,c),s.Fa[s.currentUser.toKey()]=l}(i,r.batchId,e),yield fl(i,r.changes),yield pp(i.remoteStore)}catch(r){const o=_p(r,"Failed to persist write");e.reject(o)}}),VR.apply(this,arguments)}function hq(t,n){return UR.apply(this,arguments)}function UR(){return UR=fe(function*(t,n){const e=qe(t);try{const i=yield function VAe(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(Sr.EMPTY_BYTE_STRING,gt.min()).withLastLimboFreeSnapshotVersion(gt.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=us(),l=Yt();if(n.documentUpdates.forEach(d=>{n.resolvedLimboDocuments.has(d)&&a.push(e.persistence.referenceDelegate.updateLimboDocument(o,d))}),a.push(function HW(t,n,e){let i=Yt(),r=Yt();return e.forEach(o=>i=i.add(o)),n.getEntries(t,i).next(o=>{let s=us();return e.forEach((a,c)=>{const l=o.get(a);c.isFoundDocument()!==l.isFoundDocument()&&(r=r.add(a)),c.isNoDocument()&&c.version.isEqual(gt.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)):Ie("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(gt.min())){const d=e.Qr.getLastRemoteSnapshotVersion(o).next(u=>e.Qr.setTargetsMetadata(o,o.currentSequenceNumber,i));a.push(d)}return Y.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 fl(e,i,n)}catch(i){yield Cd(i)}}),UR.apply(this,arguments)}function fq(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&&IR(c)}(i.eventManager,n),r.length&&i.ya.u_(r),i.onlineState=n,i.isPrimaryClient&&i.sharedClientState.setOnlineState(n)}}function wMe(t,n,e){return zR.apply(this,arguments)}function zR(){return zR=fe(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 _i(Xe.comparator);s=s.insert(o,ki.newNoDocument(o,gt.min()));const a=Yt().add(o),c=new tv(gt.min(),new Map,new _i(Lt),s,a);yield hq(i,c),i.Da=i.Da.remove(o),i.Ca.delete(n),QR(i)}else yield hp(i.localStore,n,!1).then(()=>yp(i,n,e)).catch(Cd)}),zR.apply(this,arguments)}function CMe(t,n){return HR.apply(this,arguments)}function HR(){return HR=fe(function*(t,n){const e=qe(t),i=n.batch.batchId;try{const r=yield function BAe(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=Y.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);WR(e,i,null),GR(e,i),e.sharedClientState.updateMutationState(i,"acknowledged"),yield fl(e,r)}catch(r){yield Cd(r)}}),HR.apply(this,arguments)}function kMe(t,n,e){return jR.apply(this,arguments)}function jR(){return jR=fe(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);WR(i,n,e),GR(i,n),i.sharedClientState.updateMutationState(n,"rejected",e),yield fl(i,r)}catch(r){yield Cd(r)}}),jR.apply(this,arguments)}function GR(t,n){(t.Ma.get(n)||[]).forEach(e=>{e.resolve()}),t.Ma.delete(n)}function WR(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 yp(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)||mq(t,i)})}function mq(t,n){t.ba.delete(n.path.canonicalString());const e=t.Da.get(n);null!==e&&(mp(t.remoteStore,e),t.Da=t.Da.remove(n),t.Ca.delete(e),QR(t))}function qR(t,n,e){for(const i of e)i instanceof cq?(t.va.addReference(i.key,n),TMe(t,i)):i instanceof lq?(Ie("SyncEngine","Document no longer in limbo: "+i.key),t.va.removeReference(i.key,n),t.va.containsKey(i.key)||mq(t,i.key)):ot()}function TMe(t,n){const e=n.key,i=e.path.canonicalString();t.Da.get(e)||t.ba.has(i)||(Ie("SyncEngine","New document in limbo: "+e),t.ba.add(i),QR(t))}function QR(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=KM.Ki(c.targetId,l);o.push(d)}}))}),yield Promise.all(s),i.ya.u_(r),yield(a=fe(function*(l,d){const u=qe(l);try{yield u.persistence.runTransaction("notifyLocalViewChanges","readwrite",h=>Y.forEach(d,f=>Y.forEach(f.qi,m=>u.persistence.referenceDelegate.addReference(h,f.targetId,m)).next(()=>Y.forEach(f.Qi,m=>u.persistence.referenceDelegate.removeReference(h,f.targetId,m)))))}catch(h){if(!kd(h))throw h;Ie("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))}),KR.apply(this,arguments)}function SMe(t,n){return XR.apply(this,arguments)}function XR(){return XR=fe(function*(t,n){const e=qe(t);if(!e.currentUser.isEqual(n)){Ie("SyncEngine","User change. New user:",n.toKey());const i=yield UW(e.localStore,n);e.currentUser=n,(o=e).Ma.forEach(a=>{a.forEach(c=>{c.reject(new Ae(le.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))})}),o.Ma.clear(),e.sharedClientState.handleUserChange(n,i.removedBatchIds,i.addedBatchIds),yield fl(e,i.us)}var o}),XR.apply(this,arguments)}function DMe(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 kC(t){const n=qe(t);return n.remoteStore.remoteSyncer.applyRemoteEvent=hq.bind(null,n),n.remoteStore.remoteSyncer.getRemoteKeysForTarget=DMe.bind(null,n),n.remoteStore.remoteSyncer.rejectListen=wMe.bind(null,n),n.ya.u_=dMe.bind(null,n.eventManager),n.ya.La=uMe.bind(null,n.eventManager),n}class xp{constructor(){this.synchronizeTabs=!1}initialize(n){var e=this;return fe(function*(){e.serializer=hv(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 VW(t,n,e,i){return new LAe(t,n,e,i)}(this.persistence,new BW,n.initialUser,this.serializer)}createPersistence(n){return new GM(mC.Hr,this.serializer)}createSharedClientState(n){return new QW}terminate(){var n=this;return fe(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 wp{initialize(n,e){var i=this;return fe(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=>fq(i.syncEngine,r,1),i.remoteStore.remoteSyncer.handleCredentialChange=SMe.bind(null,i.syncEngine),yield function wR(t,n){return CR.apply(this,arguments)}(i.remoteStore,i.syncEngine.isPrimaryClient))})()}createEventManager(n){return new lMe}createDatastore(n){const e=hv(n.databaseInfo.databaseId),i=new WAe(n.databaseInfo);return new KAe(n.authCredentials,n.appCheckCredentials,i,e)}createRemoteStore(n){return i=this.localStore,r=this.datastore,o=n.asyncQueue,s=e=>fq(this.syncEngine,e,0),a=KW.D()?new KW:new jAe,new ZAe(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 gMe(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 fe(function*(){var e,i;yield(i=fe(function*(o){const s=qe(o);Ie("RemoteStore","RemoteStore shutting down."),s.v_.add(5),yield fp(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 EC{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):Ki("Uncaught Error in snapshot listener:",n.toString())}Qa(){this.muted=!0}qa(n,e){this.muted||setTimeout(()=>{this.muted||n(e)},0)}}class zMe{constructor(n,e,i,r){var o=this;this.authCredentials=n,this.appCheckCredentials=e,this.asyncQueue=i,this.databaseInfo=r,this.user=Hr.UNAUTHENTICATED,this.clientId=N$.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this.authCredentials.start(i,function(){var s=fe(function*(a){Ie("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=>(Ie("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 Ae(le.FAILED_PRECONDITION,"The client has already been terminated.")}terminate(){var n=this;this.asyncQueue.enterRestrictedMode();const e=new Tr;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted(fe(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=_p(i,"Failed to shutdown persistence");e.reject(r)}})),e.promise}}function TC(t,n){return sP.apply(this,arguments)}function sP(){return sP=fe(function*(t,n){t.asyncQueue.verifyOperationInProgress(),Ie("FirestoreClient","Initializing OfflineComponentProvider");const e=t.configuration;yield n.initialize(e);let i=e.initialUser;t.setCredentialChangeListener(function(){var r=fe(function*(o){i.isEqual(o)||(yield UW(n.localStore,o),i=o)});return function(o){return r.apply(this,arguments)}}()),n.persistence.setDatabaseDeletedListener(()=>t.terminate()),t._offlineComponents=n}),sP.apply(this,arguments)}function aP(t,n){return cP.apply(this,arguments)}function cP(){return cP=fe(function*(t,n){t.asyncQueue.verifyOperationInProgress();const e=yield function lP(t){return dP.apply(this,arguments)}(t);Ie("FirestoreClient","Initializing OnlineComponentProvider"),yield n.initialize(e,t.configuration),t.setCredentialChangeListener(i=>iq(n.remoteStore,i)),t.setAppCheckTokenChangeListener((i,r)=>iq(n.remoteStore,r)),t._onlineComponents=n}),cP.apply(this,arguments)}function dP(){return dP=fe(function*(t){if(!t._offlineComponents)if(t._uninitializedComponentsProvider){Ie("FirestoreClient","Using user provided OfflineComponentProvider");try{yield TC(t,t._uninitializedComponentsProvider._offline)}catch(n){const e=n;if(!function bq(t){return"FirebaseError"===t.name?t.code===le.FAILED_PRECONDITION||t.code===le.UNIMPLEMENTED:!(typeof DOMException<"u"&&t instanceof DOMException)||22===t.code||20===t.code||11===t.code}(e))throw e;Ns("Error using user provided cache. Falling back to memory cache: "+e),yield TC(t,new xp)}}else Ie("FirestoreClient","Using default OfflineComponentProvider"),yield TC(t,new xp);return t._offlineComponents}),dP.apply(this,arguments)}function SC(t){return uP.apply(this,arguments)}function uP(){return uP=fe(function*(t){return t._onlineComponents||(t._uninitializedComponentsProvider?(Ie("FirestoreClient","Using user provided OnlineComponentProvider"),yield aP(t,t._uninitializedComponentsProvider._online)):(Ie("FirestoreClient","Using default OnlineComponentProvider"),yield aP(t,new wp))),t._onlineComponents}),uP.apply(this,arguments)}function fP(){return fP=fe(function*(t){const n=yield SC(t),e=n.eventManager;return e.onListen=_Me.bind(null,n.syncEngine),e.onUnlisten=bMe.bind(null,n.syncEngine),e.onFirstRemoteStoreListen=vMe.bind(null,n.syncEngine),e.onLastRemoteStoreUnlisten=yMe.bind(null,n.syncEngine),e}),fP.apply(this,arguments)}function kq(t,n,e={}){const i=new Tr;return t.asyncQueue.enqueueAndForget(fe(function*(){return function(o,s,a,c,l){const d=new EC({next:h=>{s.enqueueAndForget(()=>function SR(t,n){return DR.apply(this,arguments)}(o,u)),h.fromCache&&"server"===c.source?l.reject(new Ae(le.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 MR(a,d,{includeMetadataChanges:!0,ta:!0});return function ER(t,n){return TR.apply(this,arguments)}(o,u)}(yield function kp(t){return fP.apply(this,arguments)}(t),t.asyncQueue,n,e,i)})),i.promise}function Eq(t){const n={};return void 0!==t.timeoutSeconds&&(n.timeoutSeconds=t.timeoutSeconds),n}const Tq=new Map;function mP(t,n,e){if(!e)throw new Ae(le.INVALID_ARGUMENT,`Function ${t}() cannot be called with an empty ${n}.`)}function Sq(t){if(!Xe.isDocumentKey(t))throw new Ae(le.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${t} has ${t.length}.`)}function Dq(t){if(Xe.isDocumentKey(t))throw new Ae(le.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${t} has ${t.length}.`)}function DC(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 vn(t,n){if("_delegate"in t&&(t=t._delegate),!(t instanceof n)){if(n.name===t.constructor.name)throw new Ae(le.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const e=DC(t);throw new Ae(le.INVALID_ARGUMENT,`Expected type '${n.name}', but it was: ${e}`)}}return t}class Aq{constructor(n){var e,i;if(void 0===n.host){if(void 0!==n.ssl)throw new Ae(le.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 Ae(le.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=n.cacheSizeBytes}(function ZMe(t,n,e,i){if(!0===n&&!0===i)throw new Ae(le.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=Eq(null!==(i=n.experimentalLongPollingOptions)&&void 0!==i?i:{}),function(o){if(void 0!==o.timeoutSeconds){if(isNaN(o.timeoutSeconds))throw new Ae(le.INVALID_ARGUMENT,`invalid long polling timeout: ${o.timeoutSeconds} (must not be NaN)`);if(o.timeoutSeconds<5)throw new Ae(le.INVALID_ARGUMENT,`invalid long polling timeout: ${o.timeoutSeconds} (minimum allowed value is 5)`);if(o.timeoutSeconds>30)throw new Ae(le.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 mv{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 Aq({}),this._settingsFrozen=!1}get app(){if(!this._app)throw new Ae(le.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 Ae(le.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 Aq(n),void 0!==n.credentials&&(this._authCredentials=function(i){if(!i)return new Q2e;switch(i.type){case"firstParty":return new Z2e(i.sessionIndex||"0",i.iamToken||null,i.authTokenFactory||null);case"provider":return i.client;default:throw new Ae(le.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=Tq.get(e);i&&(Ie("ComponentProvider","Removing Datastore"),Tq.delete(e),i.terminate())}(this),Promise.resolve()}}class oo{constructor(n,e,i){this.converter=e,this._query=i,this.type="query",this.firestore=n}withConverter(n){return new oo(this.firestore,n,this._query)}}class Yi{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 gc(this.firestore,this.converter,this._key.path.popLast())}withConverter(n){return new Yi(this.firestore,n,this._key)}}class gc extends oo{constructor(n,e,i){super(n,e,Zm(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 Yi(this.firestore,null,new Xe(n))}withConverter(n){return new gc(this.firestore,n,this._path)}}function Mq(t,n,...e){if(t=Ta(t),mP("collection","path",n),t instanceof mv){const i=gn.fromString(n,...e);return Dq(i),new gc(t,null,i)}{if(!(t instanceof Yi||t instanceof gc))throw new Ae(le.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const i=t._path.child(gn.fromString(n,...e));return Dq(i),new gc(t.firestore,null,i)}}class tRe{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 oR(this,"async_queue_retry"),this.cu=()=>{const e=xC();e&&Ie("AsyncQueue","Visibility state changed to "+e.visibilityState),this.jo.Ko()};const n=xC();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=xC();e&&"function"==typeof e.removeEventListener&&e.removeEventListener("visibilitychange",this.cu)}}enqueue(n){if(this.lu(),this.iu)return new Promise(()=>{});const e=new Tr;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 fe(function*(){if(0!==n.ru.length){try{yield n.ru[0](),n.ru.shift(),n.jo.reset()}catch(e){if(!kd(e))throw e;Ie("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,Ki("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=kR.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 fe(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 vi extends mv{constructor(n,e,i,r){super(n,e,i,r),this.type="firestore",this._queue=new tRe,this._persistenceKey=r?.name||"[DEFAULT]"}_terminate(){return this._firestoreClient||Pq(this),this._firestoreClient.terminate()}}function iRe(t,n){const e="object"==typeof t?t:function RDe(t=gw){const n=qu.get(t);if(!n&&t===gw&&QH())return dj();if(!n)throw ol.create("no-app",{appName:t});return n}(),i="string"==typeof t?t:n||"(default)",r=function lj(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=mw())||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 JMe(t,n,e,i={}){var r;const o=(t=vn(t,mv))._getSettings(),s=`${n}:${e}`;if("firestore.googleapis.com"!==o.host&&o.host!==s&&Ns("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=Hr.MOCK_USER;else{a=function CSe(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[fw(JSON.stringify({alg:"none",type:"JWT"})),fw(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 Ae(le.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");c=new Hr(l)}t._authCredentials=new K2e(new F$(a,c))}}(r,...o)}return r}function Zi(t){return t._firestoreClient||Pq(t),t._firestoreClient.verifyNotTerminated(),t._firestoreClient}function Pq(t){var n,e,i;const r=t._freezeSettings(),o=(c=(null===(n=t._app)||void 0===n?void 0:n.options.appId)||"",new SIe(t._databaseId,c,t._persistenceKey,(d=r).host,d.ssl,d.experimentalForceLongPolling,d.experimentalAutoDetectLongPolling,Eq(d.experimentalLongPollingOptions),d.useFetchStreams));var c,d;t._firestoreClient=new zMe(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 fh{constructor(n){this._byteString=n}static fromBase64String(n){try{return new fh(Sr.fromBase64String(n))}catch(e){throw new Ae(le.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+e)}}static fromUint8Array(n){return new fh(Sr.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 mh{constructor(...n){for(let e=0;e90)throw new Ae(le.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+n);if(!isFinite(e)||e<-180||e>180)throw new Ae(le.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 Lt(this._lat,n._lat)||Lt(this._long,n._long)}}const oRe=/^__.*__$/;class sRe{constructor(n,e,i){this.data=n,this.fieldMask=e,this.fieldTransforms=i}toMutation(n,e){return null!==this.fieldMask?new ul(n,this.data,this.fieldMask,e,this.fieldTransforms):new ip(n,this.data,e,this.fieldTransforms)}}function Lq(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw ot()}}class IC{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 IC(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 RC(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 sRe(new ro(a),c,l)}function gh(t,n){if(zq(t=Ta(t)))return CP("Unsupported field value:",n,t),Uq(t,n);if(t instanceof Ep)return function(i,r){if(!Lq(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=gh(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=Ta(i)))return{nullValue:"NULL_VALUE"};if("number"==typeof i)return IG(r.serializer,i);if("boolean"==typeof i)return{booleanValue:i};if("string"==typeof i)return{stringValue:i};if(i instanceof Date){const o=Si.fromDate(i);return{timestampValue:op(r.serializer,o)}}if(i instanceof Si){const o=new Si(i.seconds,1e3*Math.floor(i.nanoseconds/1e3));return{timestampValue:op(r.serializer,o)}}if(i instanceof gP)return{geoPointValue:{latitude:i.latitude,longitude:i.longitude}};if(i instanceof fh)return{bytesValue:XG(r.serializer,i._byteString)};if(i instanceof Yi){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:RM(i.firestore._databaseId||r.databaseId,i._key.path)}}throw r.Su(`Unsupported field value: ${DC(i)}`)}(t,n)}function Uq(t,n){const e={};return Y$(t)?n.path&&n.path.length>0&&n.fieldMask.push(n.path):Ed(t,(i,r)=>{const o=gh(r,n.fu(i));null!=o&&(e[i]=o)}),{mapValue:{fields:e}}}function zq(t){return!("object"!=typeof t||null===t||t instanceof Array||t instanceof Date||t instanceof Si||t instanceof gP||t instanceof fh||t instanceof Yi||t instanceof Ep)}function CP(t,n,e){if(!zq(e)||"object"!=typeof(r=e)||null===r||Object.getPrototypeOf(r)!==Object.prototype&&null!==Object.getPrototypeOf(r)){const i=DC(e);throw n.Su("an object"===i?t+" a custom object":t+" "+i)}var r}function _v(t,n,e){if((n=Ta(n))instanceof mh)return n._internalPath;if("string"==typeof n)return MC(t,n);throw RC("Field path arguments must be of type string or ",t,!1,void 0,e)}const cRe=new RegExp("[~\\*/\\[\\]]");function MC(t,n,e){if(n.search(cRe)>=0)throw RC(`Invalid field path (${n}). Paths must not contain '~', '*', '/', '[', or ']'`,t,!1,void 0,e);try{return new mh(...n.split("."))._internalPath}catch{throw RC(`Invalid field path (${n}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,t,!1,void 0,e)}}function RC(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 Ae(le.INVALID_ARGUMENT,a+t+c)}function Hq(t,n){return t.some(e=>e.isEqual(n))}class vv{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 Yi(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){const n=new lRe(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(PC("DocumentSnapshot.get",n));if(null!==e)return this._userDataWriter.convertValue(e)}}}class lRe extends vv{data(){return super.data()}}function PC(t,n){return"string"==typeof n?MC(t,n):n instanceof mh?n._internalPath:n._delegate._internalPath}class kP{}class bv extends kP{}class yv extends bv{constructor(n,e,i){super(),this._field=n,this._op=e,this._value=i,this.type="where"}static _create(n,e,i){return new yv(n,e,i)}_apply(n){const e=this._parse(n);return qq(n._query,e),new oo(n.firestore,n.converter,kM(n._query,e))}_parse(n){const e=ph(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 Ae(le.INVALID_ARGUMENT,`Invalid Query. You can't perform '${d}' queries on documentId().`);if("in"===d||"not-in"===d){Wq(u,d);const f=[];for(const m of u)f.push(Gq(c,o,m));h={arrayValue:{values:f}}}else h=Gq(c,o,u)}else"in"!==d&&"not-in"!==d&&"array-contains-any"!==d||Wq(u,d),h=function Vq(t,n,e,i=!1){return gh(e,t.Cu(i?4:3,n))}(a,"where",u,"in"===d||"not-in"===d);return _n.create(l,d,h)}(n._query,0,e,n.firestore._databaseId,this._field,this._op,this._value)}}class Tp extends kP{constructor(n,e){super(),this.type=n,this._queryConstraints=e}static _create(n,e){return new Tp(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]:Yn.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)qq(s,c),s=kM(s,c)}(n._query,e),new oo(n.firestore,n.converter,kM(n._query,e)))}_getQueryConstraints(){return this._queryConstraints}_getOperator(){return"and"===this.type?"and":"or"}}class EP extends bv{constructor(n,e){super(),this._field=n,this._direction=e,this.type="orderBy"}static _create(n,e){return new EP(n,e)}_apply(n){const e=function(r,o,s){if(null!==r.startAt)throw new Ae(le.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==r.endAt)throw new Ae(le.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");return new W0(o,s)}(n._query,this._field,this._direction);return new oo(n.firestore,n.converter,function(r,o){const s=r.explicitOrderBy.concat([o]);return new ll(r.path,r.collectionGroup,s,r.filters.slice(),r.limit,r.limitType,r.startAt,r.endAt)}(n._query,e))}}class FC extends bv{constructor(n,e,i){super(),this.type=n,this._limit=e,this._limitType=i}static _create(n,e,i){return new FC(n,e,i)}_apply(n){return new oo(n.firestore,n.converter,tC(n._query,this._limit,this._limitType))}}function Gq(t,n,e){if("string"==typeof(e=Ta(e))){if(""===e)throw new Ae(le.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");if(!CM(n)&&-1!==e.indexOf("/"))throw new Ae(le.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(gn.fromString(e));if(!Xe.isDocumentKey(i))throw new Ae(le.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 nh(t,new Xe(i))}if(e instanceof Yi)return nh(t,e._key);throw new Ae(le.INVALID_ARGUMENT,`Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: ${DC(e)}.`)}function Wq(t,n){if(!Array.isArray(t)||0===t.length)throw new Ae(le.INVALID_ARGUMENT,`Invalid Query. A non-empty array is required for '${n.toString()}' filters.`)}function qq(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 Ae(le.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 Kq{convertValue(n,e="none"){switch(Dd(n)){case 0:return null;case 1:return n.booleanValue;case 2:return Vi(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(cl(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 Ed(n,(r,o)=>{i[r]=this.convertValue(o,e)}),i}convertGeoPoint(n){return new gP(Vi(n.latitude),Vi(n.longitude))}convertArray(n,e){return(n.values||[]).map(i=>this.convertValue(i,e))}convertServerTimestamp(n,e){switch(e){case"previous":const i=Kw(n);return null==i?null:this.convertValue(i,e);case"estimate":return this.convertTimestamp(H0(n));default:return null}}convertTimestamp(n){const e=Td(n);return new Si(e.seconds,e.nanos)}convertDocumentKey(n,e){const i=gn.fromString(n);ht(aW(i));const r=new th(i.get(1),i.get(3)),o=new Xe(i.popFirst(5));return r.isEqual(e)||Ki(`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 _h{constructor(n,e){this.hasPendingWrites=n,this.fromCache=e}isEqual(n){return this.hasPendingWrites===n.hasPendingWrites&&this.fromCache===n.fromCache}}class Sp extends vv{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 BC(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(PC("DocumentSnapshot.get",n));if(null!==i)return this._userDataWriter.convertValue(i,e.serverTimestamps)}}}class BC extends Sp{data(n={}){return super.data(n)}}class Dp{constructor(n,e,i,r){this._firestore=n,this._userDataWriter=e,this._snapshot=r,this.metadata=new _h(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 BC(this._firestore,this._userDataWriter,i.key,i,new _h(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 Ae(le.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 BC(r._firestore,r._userDataWriter,a.doc.key,a.doc,new _h(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 BC(r._firestore,r._userDataWriter,a.doc.key,a.doc,new _h(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:pRe(a.type),doc:c,oldIndex:l,newIndex:d}})}}(this,e),this._cachedChangesIncludeMetadataChanges=e),this._cachedChanges}}function pRe(t){switch(t){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return ot()}}class Ld extends Kq{constructor(n){super(),this.firestore=n}convertBytes(n){return new fh(n)}convertReference(n){const e=this.convertDocumentKey(n,this.firestore._databaseId);return new Yi(this.firestore,null,e)}}function _Re(t,n){const e=vn(t.firestore,vi),i=function eRe(t,n,...e){if(t=Ta(t),1===arguments.length&&(n=N$.newId()),mP("doc","path",n),t instanceof mv){const i=gn.fromString(n,...e);return Sq(i),new Yi(t,null,new Xe(i))}{if(!(t instanceof Yi||t instanceof gc))throw new Ae(le.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const i=t._path.child(gn.fromString(n,...e));return Sq(i),new Yi(t.firestore,t instanceof gc?t.converter:null,new Xe(i))}}(t),r=function LC(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 xv(t,n){return function(i,r){const o=new Tr;return i.asyncQueue.enqueueAndForget(fe(function*(){return function xMe(t,n,e){return VR.apply(this,arguments)}(yield function hP(t){return SC(t).then(n=>n.syncEngine)}(i),r,o)})),o.promise}(Zi(t),n)}(e,[AC(ph(t.firestore),"addDoc",i._key,r,null!==t.converter,{}).toMutation(i._key,Ii.exists(!1))]).then(()=>i)}!function(n,e=!0){$m="10.9.0",vw(new m0("firestore",(i,{instanceIdentifier:r,options:o})=>{const s=i.getProvider("app").getImmediate(),a=new vi(new X2e(i.getProvider("auth-internal")),new J2e(i.getProvider("app-check-internal")),function(l,d){if(!Object.prototype.hasOwnProperty.apply(l.options,["projectId"]))throw new Ae(le.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new th(l.options.projectId,d)}(s,r),s);return o=Object.assign({useFetchStreams:e},o),a._setSettings(o),a},"PUBLIC").setMultipleInstances(!0)),Nm(P$,"4.5.0",n),Nm(P$,"4.5.0","esm2017")}();let ARe=(()=>{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 Se,this.termResult=new Se,this.game=new Ei(this.initialize())}loadMenu(){this.game.next({...this.game.value,state:"menu"})}getDifficultyLevels(){return this.difficultyLevels}newRound(e){var i=this;return fe(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 bo(i.terminologyService.expandValueSet("^ 816080008 |International Patient Summary| {{ C definitionStatus = defined }}","",r,1));i.randomLimit=o.expansion.total-1;const s=yield bo(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)(X(Jr))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),MRe=(()=>{class t{constructor(){this.loadingProgress=new Ei(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=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Jq=(()=>{class t{constructor(){this.db=iRe(),this.scoreLimit=20}addScore(e){var i=this;return fe(function*(){try{yield _Re(Mq(i.db,"scoreboard"),e)}catch(r){console.error("Error adding document: ",r)}})()}getScores(){var e=this;return fe(function*(){const r=function dRe(t,n,...e){let i=[];n instanceof kP&&i.push(n),i=i.concat(e),function(o){const s=o.filter(c=>c instanceof Tp).length,a=o.filter(c=>c instanceof yv).length;if(s>1||s>0&&a>0)throw new Ae(le.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}(Mq(e.db,"scoreboard"),function uRe(t,n="asc"){const e=n,i=PC("orderBy",t);return EP._create(i,e)}("score","desc"),function hRe(t){return function Iq(t,n){if(n<=0)throw new Ae(le.INVALID_ARGUMENT,`Function ${t}() requires a positive number, but it was: ${n}.`)}("limit",t),FC._create("limit",t,"F")}(e.scoreLimit));return(yield function gRe(t){t=vn(t,oo);const n=vn(t.firestore,vi),e=Zi(n),i=new Ld(n);return function jq(t){if("L"===t.limitType&&0===t.explicitOrderBy.length)throw new Ae(le.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}(t._query),kq(e,t._query).then(r=>new Dp(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=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function RRe(t,n){if(1&t){const e=De();_(0,"button",4),H("click",function(){const r=j(e).$implicit;return G(P(2).guessLetter(r))}),k(1),b()}if(2&t){const e=n.$implicit,i=P(2);st("guessed-correct","correct"===i.guessedLetters[e])("guessed-wrong","wrong"===i.guessedLetters[e]),E("disabled",i.isLetterGuessed(e)),w(),Je(" ",e," ")}}function PRe(t,n){if(1&t&&(_(0,"div",2),W(1,RRe,2,6,"button",3),b()),2&t){const e=n.$implicit;w(),E("ngForOf",e)}}let FRe=(()=>{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 Se}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=Ge({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),W(1,PRe,2,1,"div",1),b()),2&i&&(w(),E("ngForOf",r.keyboardLayout))},dependencies:[_o,xo],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})(),ORe=(()=>{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=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function NRe(t,n){if(1&t){const e=De();_(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),H("click",function(){return j(e),G(P().dismiss())}),_(7,"mat-icon"),k(8,"close"),b()()()}}let LRe=(()=>{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)(y(ORe))};static#t=this.\u0275cmp=Ge({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&&W(0,NRe,9,0,"div",0),2&i&&E("ngIf",r.isIosSafari&&!r.tooltipDismissed)},dependencies:[si,Co],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})(),eQ=(()=>{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=co({name:"elapsedTime",type:t,pure:!0})}return t})();const BRe=["keyboard"],tQ=()=>[],VRe=(t,n)=>[t,n],DP=t=>[t],nQ=t=>[t,"shadow-local"],URe=t=>[t,"trophy-large","shadow-local"];function zRe(t,n){if(1&t&&(_(0,"div",8)(1,"div",9)(2,"div",10),k(3," Loading... "),b(),we(4,"mat-progress-bar",11),b()()),2&t){const e=P(2);w(4),E("value",e.loadingAssetsProgress)}}function HRe(t,n){1&t&&(_(0,"span")(1,"mat-icon"),k(2,"favorite"),b()())}function jRe(t,n){1&t&&(_(0,"span")(1,"mat-icon"),k(2,"favorite_border"),b()())}function $Re(t,n){if(1&t&&(_(0,"span"),k(1),b()),2&t){const e=n.$implicit;w(),nt(e)}}function GRe(t,n){if(1&t&&(_(0,"span",33),W(1,$Re,2,1,"span",18),b()),2&t){const e=n.$implicit;w(),E("ngForOf",e.split(""))}}function WRe(t,n){if(1&t&&(_(0,"div",31),W(1,GRe,2,1,"span",32),b()),2&t){const e=P(2).ngIf;w(),E("ngForOf",e.displayTerm.join("").split(" "))}}function qRe(t,n){1&t&&(_(0,"div",34)(1,"div",35),k(2," Choosing a random SNOMED CT concept using the FHIR API "),b(),we(3,"mat-progress-bar",36),b())}function QRe(t,n){if(1&t){const e=De();_(0,"div",37),H("click",function(){return j(e),G(P(3).revealHint())}),k(1," Reveal Hint "),b()}}function KRe(t,n){if(1&t){const e=De();_(0,"div",37),H("click",function(){return j(e),G(P(3).loadMenu())}),k(1," Abandon game "),b()}}function XRe(t,n){1&t&&we(0,"li",41),2&t&&E("innerHTML",n.$implicit,du)}function YRe(t,n){if(1&t&&(_(0,"div",38)(1,"div",39)(2,"h2"),k(3,"Hints:"),b(),_(4,"ul"),W(5,XRe,1,1,"li",40),b()()()),2&t){const e=P(2).ngIf;w(5),E("ngForOf",e.hints)}}function ZRe(t,n){if(1&t&&(_(0,"mat-icon",47),k(1,"grade"),b()),2&t){const e=P().$implicit;Wi("left",P(3).calculateGoalPosition(e.score-5),"%"),E("ngClass",_a(3,DP,e.name.toLowerCase()))}}function JRe(t,n){if(1&t&&(_(0,"mat-icon",48),k(1,"grade"),b()),2&t){const e=P().$implicit;Wi("left",P(3).calculateGoalPosition(e.score-1),"%"),E("ngClass",_a(3,DP,e.name.toLowerCase()))}}function ePe(t,n){if(1&t&&(_(0,"div",49),k(1),b()),2&t){const e=P().$implicit;Wi("left",P(3).calculateGoalPosition(e.score),"%"),E("ngClass",_a(4,DP,e.name.toLowerCase())),w(),Je("",e.name," trophy!")}}function tPe(t,n){if(1&t&&(Gt(0),we(1,"div",42),W(2,ZRe,2,5,"mat-icon",43),_(3,"mat-icon",44),k(4,"emoji_events"),b(),W(5,JRe,2,5,"mat-icon",45)(6,ePe,2,6,"div",46),Wt()),2&t){const e=n.$implicit,i=P(2).ngIf,r=P();w(),function wB(t){ga(Voe,Ka,t,!0)}(e.name.toLowerCase()),Wi("left",r.calculateGoalPosition(e.score),"%"),w(),E("ngIf",i.score>=e.score),w(),Wi("left",r.calculateGoalPosition(e.score-3),"%"),E("ngClass",zS(10,VRe,e.name.toLowerCase(),i.score>=e.score?"trophy-large":"")),w(2),E("ngIf",i.score>=e.score),w(),E("ngIf",i.score>=e.score)}}function nPe(t,n){if(1&t){const e=De();_(0,"div")(1,"div",12)(2,"div",13),we(3,"img",14),_(4,"div",15),k(5),b()()(),_(6,"div",16)(7,"span",17),k(8),b(),W(9,HRe,3,0,"span",18)(10,jRe,3,0,"span",18),_(11,"span",17),k(12),go(13,"elapsedTime"),b()(),W(14,WRe,2,1,"div",19)(15,qRe,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),H("letterGuessed",function(r){return j(e),G(P(2).guessLetter(r))}),b()(),_(21,"div",23),W(22,QRe,2,0,"div",24)(23,KRe,2,0,"div",25),b(),W(24,YRe,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),we(31,"mat-progress-bar",30),W(32,tPe,7,13,"ng-container",18),b()()()}if(2&t){const e=P().ngIf,i=P();w(3),E("@popIn",void 0),w(2),bu(" ",e.difficultyLevel," - ",i.getLanguageName(i.selectedLanguage)," "),w(3),bu(" Round: ",e.round," \xa0\xa0\xa0\xa0 Score: ",e.score," \xa0\xa0\xa0\xa0 Life: "),w(),E("ngForOf",Ds(18,tQ).constructor(e.hitPoints)),w(),E("ngForOf",Ds(19,tQ).constructor(e.rules.maxHitPoints-e.hitPoints)),w(2),Je(" \xa0\xa0\xa0\xa0 Time: ",Ya(13,16,1e3*i.elapsedTime),""),w(2),E("ngIf","playing"==e.state),w(),E("ngIf","choosingTerm"===e.state),w(3),E("@shake",i.shakeState),w(4),E("ngIf","playing"==e.state&&e.hintsAvailable&&e.hitPoints>1),w(),E("ngIf","playing"==e.state),w(),E("ngIf",e.hints.length>0&&"playing"==e.state),w(7),E("value",i.calculateProgress(e.score)),w(),E("ngForOf",i.goals)}}function iPe(t,n){if(1&t){const e=De();_(0,"div",50),we(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),H("click",function(){return j(e),G(P(2).chooseDifficultyLevel())}),k(9," New game "),b(),_(10,"div",54),H("click",function(){return j(e),G(P(2).showInstructionsPanel())}),k(11," Instructions "),b(),_(12,"div",55),H("click",function(){return j(e),G(P(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),H("click",function(){return j(e),G(P(2).setLanguage("da"))}),k(21,"DA"),b(),_(22,"button",58),H("click",function(){return j(e),G(P(2).setLanguage("de"))}),k(23,"DE"),b(),_(24,"button",58),H("click",function(){return j(e),G(P(2).setLanguage("en"))}),k(25,"EN"),b(),_(26,"button",58),H("click",function(){return j(e),G(P(2).setLanguage("es"))}),k(27,"ES"),b(),_(28,"button",58),H("click",function(){return j(e),G(P(2).setLanguage("et"))}),k(29,"ET"),b(),_(30,"button",58),H("click",function(){return j(e),G(P(2).setLanguage("fi"))}),k(31,"FI"),b(),_(32,"button",58),H("click",function(){return j(e),G(P(2).setLanguage("fr"))}),k(33,"FR"),b(),_(34,"button",58),H("click",function(){return j(e),G(P(2).setLanguage("nl"))}),k(35,"NL"),b(),_(36,"button",58),H("click",function(){return j(e),G(P(2).setLanguage("no"))}),k(37,"NO"),b(),_(38,"button",58),H("click",function(){return j(e),G(P(2).setLanguage("sv"))}),k(39,"SV"),b()()()}if(2&t){const e=P(2);w(2),E("@popIn",void 0),w(6),E("@scrollUp",void 0),w(2),E("@scrollUp",void 0),w(2),E("@scrollUp",void 0),w(5),nt(e.getLanguageName(e.selectedLanguage))}}function rPe(t,n){if(1&t){const e=De();_(0,"div",62)(1,"div",63),H("click",function(){const r=j(e).$implicit;return G(P(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;w(),E("@scrollUp",void 0),w(),Je(" ",e.name," "),w(),E("@fadeInDelayed",void 0),w(),Je(" Life: ",e.rules.maxHitPoints," "),w(3),Je(", Free hints: ",e.rules.freeHints," "),w(3),Je(", Points per letter: ",e.rules.pointsPerGuessedLetter," ")}}function oPe(t,n){if(1&t){const e=De();_(0,"div",50),we(1,"img",51)(2,"img",59),_(3,"p",53)(4,"b"),k(5,"Choose the game difficulty"),b()(),W(6,rPe,11,6,"div",60),_(7,"div",61),H("click",function(){return j(e),G(P(2).backToMenu())}),k(8," Back "),b()()}if(2&t){const e=P(2);w(2),E("@popIn",void 0),w(4),E("ngForOf",e.difficultyLevels),w(),E("@scrollUp",void 0)}}function sPe(t,n){if(1&t){const e=De();_(0,"div",50),we(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),H("click",function(){return j(e),G(P(2).hideInstructionsPanel())}),k(56," Back "),b()()}2&t&&(w(2),E("@popIn",void 0),w(53),E("@scrollUp",void 0))}function aPe(t,n){1&t&&(_(0,"div",74),we(1,"img",75),b()),2&t&&(w(),E("@popIn",void 0))}function cPe(t,n){if(1&t&&(_(0,"div"),k(1),b()),2&t){const e=P(2).ngIf,i=P();w(),Je(" Trophy: ",i.getMaxTrophyObtained(e.score)," ")}}function lPe(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=P(2).ngIf,i=P();w(),E("ngClass",_a(3,nQ,i.getMaxTrophyObtained(e.score).toLocaleLowerCase())),w(3),E("ngClass",_a(5,URe,i.getMaxTrophyObtained(e.score).toLocaleLowerCase())),w(3),E("ngClass",_a(7,nQ,i.getMaxTrophyObtained(e.score).toLocaleLowerCase()))}}function dPe(t,n){if(1&t){const e=De();_(0,"div",50),we(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),go(12,"elapsedTime"),b(),W(13,cPe,2,1,"div",5),b(),W(14,lPe,9,9,"div",5),_(15,"div",81),H("click",function(){j(e);const r=P(2);return r.loadMenu(),G(r.chooseDifficultyLevel())}),k(16," New game "),b(),_(17,"div",81),H("click",function(){return j(e),G(P(2).openScoreboard())}),k(18," High Scores "),b(),_(19,"div",82),H("click",function(){return j(e),G(P(2).loadMenu())}),k(20," Main menu "),b()()}if(2&t){const e=P().ngIf,i=P();w(2),E("@popIn",void 0),w(5),Je(" ",e.term,""),w(2),bu("",e.round," ",1==e.round?"round":"rounds",""),w(2),Zg(" Final Score: ",e.score," points - Difficulty: ",e.difficultyLevel," - Time: ",Ya(12,12,e.endTimestamp-e.startTimestamp)," "),w(2),E("ngIf",i.getMaxTrophyObtained(e.score)),w(),E("ngIf",i.getMaxTrophyObtained(e.score)),w(),E("@scrollUp",void 0),w(2),E("@scrollUp",void 0),w(2),E("@scrollUp",void 0)}}function uPe(t,n){if(1&t&&(_(0,"span"),k(1),b()),2&t){const e=P(2).ngIf;w(),Je("\u2192 Bonus: ",e.livesBonus,"")}}function hPe(t,n){if(1&t&&(_(0,"span"),k(1),b()),2&t){const e=P(2).ngIf;w(),Je("\u2192 Bonus: ",e.difficultyBonus,"")}}function fPe(t,n){if(1&t&&(_(0,"span"),k(1),b()),2&t){const e=P(2).ngIf;w(),Je("\u2192 Bonus: ",e.timeBonus,"")}}function mPe(t,n){if(1&t){const e=De();_(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),Lr("ngModelChange",function(r){j(e);const o=P(3);return Yr(o.messageForLeaderboard,r)||(o.messageForLeaderboard=r),G(r)}),b(),_(5,"div",94),H("click",function(){j(e);const r=P(2).ngIf;return G(P().saveScore(r))}),k(6," Save "),b()(),_(7,"p",95),k(8,"No personal information is recorded"),b()()}if(2&t){const e=P(3);w(4),Nr("ngModel",e.messageForLeaderboard)}}function pPe(t,n){if(1&t){const e=De();_(0,"div",50),we(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),W(12,uPe,2,1,"span",5),b(),_(13,"div",87),k(14),W(15,hPe,2,1,"span",5),b(),_(16,"div",87),k(17),go(18,"elapsedTime"),W(19,fPe,2,1,"span",5),b(),_(20,"div",88),k(21),b(),W(22,mPe,9,1,"div",89),_(23,"div",81),H("click",function(){j(e);const r=P(2);return r.loadMenu(),G(r.chooseDifficultyLevel())}),k(24," New game "),b(),_(25,"div",81),H("click",function(){return j(e),G(P(2).openScoreboard())}),k(26," High Scores "),b(),_(27,"div",82),H("click",function(){return j(e),G(P(2).loadMenu())}),k(28," Main menu "),b()()}if(2&t){const e=P().ngIf,i=P();w(2),E("@popIn",void 0),w(9),Je("Lives left: ",e.hitPoints," "),w(),E("ngIf",e.livesBonus>0),w(2),Je("Difficulty: ",e.difficultyLevel," "),w(),E("ngIf",e.difficultyBonus>0),w(2),Je("Time: ",Ya(18,12,e.endTimestamp-e.startTimestamp)," "),w(2),E("ngIf",e.timeBonus>0),w(2),Je("Final score: ",e.score,""),w(),E("ngIf",i.highScore),w(),E("@scrollUp",void 0),w(2),E("@scrollUp",void 0),w(2),E("@scrollUp",void 0)}}function gPe(t,n){if(1&t&&(_(0,"div",3),W(1,zRe,5,1,"div",4)(2,nPe,33,20,"div",5)(3,iPe,40,5,"div",6)(4,oPe,9,3,"div",6)(5,sPe,57,2,"div",6)(6,aPe,2,1,"div",7)(7,dPe,21,14,"div",6)(8,pPe,29,14,"div",6),b()),2&t){const e=n.ngIf,i=P();w(),E("ngIf",i.loadingAssets),w(),E("ngIf",("playing"==e.state||"choosingTerm"==e.state)&&!i.loadingAssets),w(),E("ngIf","menu"===e.state&&!i.chooseDifficulty&&!i.showInstructions&&!i.loadingAssets),w(),E("ngIf","menu"===e.state&&i.chooseDifficulty&&!i.showInstructions&&!i.loadingAssets),w(),E("ngIf",i.showInstructions),w(),E("ngIf",i.termGuessed),w(),E("ngIf","gameOver"===e.state),w(),E("ngIf","won"==e.state)}}let _Pe=(()=>{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 fe(function*(){"playing"===(yield function dSe(t,n){const e="object"==typeof n;return new Promise((i,r)=>{const o=new qh({next:s=>{i(s),o.unsubscribe()},error:r,complete:()=>{e?i(n.defaultValue):r(new Zf)}});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=$_(0,1e3).pipe(mt(i=>this.elapsedTime=i),L9(()=>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:Si.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)(y(ARe),y(MRe),y(Jr),y(Jq),y(ss))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["app-snoguess-main"]],viewQuery:function(i,r){if(1&i&&pt(BRe,5),2&i){let o;Pe(o=Fe())&&(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&&(W(0,gPe,9,8,"div",1),go(1,"async"),_(2,"div",2),k(3),go(4,"date"),b(),we(5,"app-add-to-home")),2&i&&(E("ngIf",Ya(1,2,r.game)),w(3),Je(" Copyright \xa9 ",yu(4,4,r.currentYear,"yyyy")," SNOMED International\n"))},dependencies:[ba,_o,si,xo,Co,jH,Xs,cs,Ps,FRe,LRe,wD,Tu,eQ],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:[Kn("shake",[Xt("normal => shake",qt(200,xm([We({transform:"translateX(0)"}),We({transform:"translateX(-10px)"}),We({transform:"translateX(10px)"}),We({transform:"translateX(0)"})])))]),Kn("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}))])]),Kn("scrollUp",[Xt(":enter",[We({transform:"translateY(100%)",opacity:0}),qt("0.5s ease-out",We({transform:"translateY(0)",opacity:1}))])]),Kn("fadeInDelayed",[Xt(":enter",[We({opacity:0}),qt("1s 0.5s ease-out",We({opacity:1}))])])]}})}return t})();const vPe=()=>({});function bPe(t,n){if(1&t){const e=De();_(0,"li")(1,"a",11),H("click",function(){const r=j(e).$implicit;return G(P().findingWithExplicitContextSelected(r))}),k(2),b()()}if(2&t){const e=n.$implicit;w(2),nt(e.display)}}function yPe(t,n){1&t&&(_(0,"th",20),k(1," Type "),b())}function xPe(t,n){if(1&t&&(_(0,"td",21),k(1),b()),2&t){const e=n.$implicit;w(),Je(" ",e.type.display," ")}}function wPe(t,n){1&t&&(_(0,"th",20),k(1," Target "),b())}function CPe(t,n){if(1&t&&(_(0,"td",21),k(1),b()),2&t){const e=n.$implicit;w(),Je(" ",e.target.code," ")}}function kPe(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;w(),Je(" ",e.target.display," ")}}function TPe(t,n){1&t&&we(0,"tr",22)}function SPe(t,n){1&t&&we(0,"tr",23)}function DPe(t,n){if(1&t&&(_(0,"div",4)(1,"h3"),k(2),b(),_(3,"table",12),Gt(4,13),W(5,yPe,2,0,"th",14)(6,xPe,2,1,"td",15),Wt(),Gt(7,16),W(8,wPe,2,0,"th",14)(9,CPe,2,1,"td",15),Wt(),Gt(10,17),W(11,kPe,2,0,"th",14)(12,EPe,2,1,"td",15),Wt(),W(13,TPe,1,0,"tr",18)(14,SPe,1,0,"tr",19),b()()),2&t){const e=P();w(2),Je("Relevant attributes (",e.selectedSituation.display,")"),w(),E("dataSource",e.dataSource),w(10),E("matHeaderRowDef",e.displayedColumns),w(),E("matRowDefColumns",e.displayedColumns)}}function IPe(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=P();w(3),E("href","https://hl7.org/fhir/R4/"+e.resourceType+".html",my),w(2),Je("FHIR R4 ",e.resourceType,"")}}function APe(t,n){if(1&t){const e=De();_(0,"div",25)(1,"button",26),H("click",function(){j(e);const r=P();return G(r.saveOutput(r.fhirRepresentationString))}),we(2,"mat-icon",27),b(),_(3,"button",28),H("click",function(){j(e);const r=P();return G(r.copyOutputToClipboard(r.fhirRepresentationString))}),we(4,"mat-icon",29),b()()}}let MPe=(()=>{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 fe(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 fe(function*(){for(const i in e.SituationConstants)if(Object.prototype.hasOwnProperty.call(e.SituationConstants,i)){const r=e.SituationConstants[i];let o=yield bo(e.terminologyService.expandValueSet("<< "+r.code,"",0,1e3));r.selfAndDescendants=o.expansion.contains.map(s=>s.code)}})()}convertSituationToFhir(e){var i=this;return fe(function*(){i.selectedSituation=e,i.fhirRepresentation=null,i.fhirRepresentationString="Loading...",i.dataSource=[],i.resourceType=void 0;let a,c,l,d,r=yield bo(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,cc.saveAs)(i,`${this.selectedSituation.display}-fhir.json`)}copyOutputToClipboard(e){this.clipboard.copy(e)}static#e=this.\u0275fac=function(i){return new(i||t)(y(Jr),y(UI))};static#t=this.\u0275cmp=Ge({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),H("selectionChange",function(s){return r.findingWithExplicitContextSelected(s)}),b(),_(6,"h3",4),k(7,"Examples"),b(),_(8,"ul"),W(9,bPe,3,1,"li",5),b(),W(10,DPe,15,4,"div",6)(11,IPe,8,2,"div",6),b(),_(12,"div",7)(13,"div",8),W(14,APe,5,0,"div",9),_(15,"textarea",10),k(16," "),b()()()()()),2&i&&(w(5),E("binding",r.situationsBinding),w(4),E("ngForOf",r.examples),w(),E("ngIf",null==r.selectedSituation?null:r.selectedSituation.display),w(),E("ngIf",r.resourceType),w(3),E("ngIf",r.fhirRepresentationString.length>15),w(),E("options",Ds(8,vPe))("lang","json")("innerHTML",r.fhirRepresentationString,du))},dependencies:[_o,si,nw,Ks,Co,sd,tl,ad,nl,el,cd,il,rl,ld,dd,$u,s0],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})(),RPe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=Ge({type:t,selectors:[["app-context-main"]],decls:1,vars:0,template:function(i,r){1&i&&we(0,"app-situation-map")},dependencies:[MPe]})}return t})();var PPe=ao(867),FPe=ao.n(PPe);let OPe=(()=>{class t{constructor(){this.filter=new(FPe())}transform(e){return e&&this.filter.clean(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275pipe=co({name:"safeText",type:t,pure:!0})}return t})();function NPe(t,n){1&t&&we(0,"mat-spinner",8)}function LPe(t,n){1&t&&(_(0,"th",20),k(1," Message "),b())}function BPe(t,n){if(1&t&&(_(0,"td",21),k(1),go(2,"safeText"),b()),2&t){const e=n.$implicit;w(),Je(" ",Ya(2,1,e.message)," ")}}function VPe(t,n){1&t&&(_(0,"th",20),k(1," Score "),b())}function UPe(t,n){if(1&t&&(_(0,"td",21),k(1),b()),2&t){const e=n.$implicit;w(),Je(" ",e.score," ")}}function zPe(t,n){1&t&&(_(0,"th",20),k(1," Rounds "),b())}function HPe(t,n){if(1&t&&(_(0,"td",21),k(1),b()),2&t){const e=n.$implicit;w(),Je(" ",e.numberOfRounds," ")}}function jPe(t,n){1&t&&(_(0,"th",20),k(1," Difficulty "),b())}function $Pe(t,n){if(1&t&&(_(0,"td",21),k(1),b()),2&t){const e=n.$implicit;w(),Je(" ",e.difficulty," ")}}function GPe(t,n){1&t&&(_(0,"th",20),k(1," Time Played "),b())}function WPe(t,n){if(1&t&&(_(0,"td",21),k(1),go(2,"elapsedTime"),b()),2&t){const e=n.$implicit;w(),Je(" ",Ya(2,1,e.elapsed)," ")}}function qPe(t,n){1&t&&(_(0,"th",20),k(1," Date "),b())}function QPe(t,n){if(1&t&&(_(0,"td",21),k(1),go(2,"date"),b()),2&t){const e=n.$implicit;w(),Je(" ",yu(2,1,e.date,"short")," ")}}function KPe(t,n){1&t&&we(0,"tr",22)}function XPe(t,n){1&t&&we(0,"tr",23)}function YPe(t,n){if(1&t&&(_(0,"div")(1,"table",9),Gt(2,10),W(3,LPe,2,0,"th",11)(4,BPe,3,3,"td",12),Wt(),Gt(5,13),W(6,VPe,2,0,"th",11)(7,UPe,2,1,"td",12),Wt(),Gt(8,14),W(9,zPe,2,0,"th",11)(10,HPe,2,1,"td",12),Wt(),Gt(11,15),W(12,jPe,2,0,"th",11)(13,$Pe,2,1,"td",12),Wt(),Gt(14,16),W(15,GPe,2,0,"th",11)(16,WPe,3,3,"td",12),Wt(),Gt(17,17),W(18,qPe,2,0,"th",11)(19,QPe,3,4,"td",12),Wt(),W(20,KPe,1,0,"tr",18)(21,XPe,1,0,"tr",19),b()()),2&t){const e=P();w(),E("dataSource",e.dataSource),w(19),E("matHeaderRowDef",e.displayedColumns),w(),E("matRowDefColumns",e.displayedColumns)}}const ZPe=[{path:"",component:$z},{path:"allergies",component:$z},{path:"sandbox",component:Ake},{path:"prescription",component:Mke},{path:"questionnaires",component:LTe},{path:"implementation-course/subset-validator",component:lSe},{path:"snoguess",component:_Pe},{path:"snoguess/scoreboard",component:(()=>{class t{constructor(e,i){this.firebaseService=e,this.router=i,this.displayedColumns=["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)(y(Jq),y(ss))};static#t=this.\u0275cmp=Ge({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","message"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["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",""],["mat-header-row",""],["mat-row",""]],template:function(i,r){1&i&&(_(0,"div",0),we(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()(),W(8,NPe,1,0,"mat-spinner",5)(9,YPe,22,3,"div",6),_(10,"div",7),H("click",function(){return r.backToGame()}),k(11," Back to game "),b()()),2&i&&(w(2),E("@popIn",void 0),w(6),E("ngIf",r.loadingScores),w(),E("ngIf",!r.loadingScores),w(),E("@scrollUp",void 0))},dependencies:[si,Co,od,sd,tl,ad,nl,el,cd,il,rl,ld,dd,Tu,eQ,OPe],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:[Kn("shake",[Xt("normal => shake",qt(200,xm([We({transform:"translateX(0)"}),We({transform:"translateX(-10px)"}),We({transform:"translateX(10px)"}),We({transform:"translateX(0)"})])))]),Kn("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}))])]),Kn("scrollUp",[Xt(":enter",[We({transform:"translateY(100%)",opacity:0}),qt("0.5s ease-out",We({transform:"translateY(0)",opacity:1}))])]),Kn("fadeInDelayed",[Xt(":enter",[We({opacity:0}),qt("1s 0.5s ease-out",We({opacity:1}))])])]}})}return t})()},{path:"context",component:RPe},{path:"**",redirectTo:""}];let JPe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({imports:[_U.forRoot(ZPe,{useHash:!0}),_U]})}return t})();const eFe=[{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 tFe=(()=>{class t{constructor(){}getCodingSpec(){return eFe}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Zt,wv={version:"0.19.3"},Dr=1200,vh=1252,nFe=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],IP={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},UC=function(t){-1!=nFe.indexOf(t)&&(vh=IP[0]=t)},Js=function(t){Dr=t,UC(t)};var Cv=function(n){return String.fromCharCode(n)},AP=function(n){return String.fromCharCode(n)},Ji=null,ea="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function jC(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+=ea.charAt(o)+ea.charAt(s)+ea.charAt(a)+ea.charAt(c);return n}function Vs(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=ea.indexOf(t.charAt(l++)))&&(n+=String.fromCharCode((15&s)<<4|a>>2)),64!==(c=ea.indexOf(t.charAt(l++)))&&(n+=String.fromCharCode((3&a)<<6|c));return n}var rn=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),_c=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(){}}(),kv=function(){if(typeof Buffer>"u")return!1;var t=_c([65,0]);return!!t&&1==t.toString("utf16le").length}();function Vd(t){return rn?Buffer.alloc?Buffer.alloc(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}function sQ(t){return rn?Buffer.allocUnsafe?Buffer.allocUnsafe(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}var Qo=function(n){return rn?_c(n,"binary"):n.split("").map(function(e){return 255&e.charCodeAt(0)})};function Ev(t){if(typeof ArrayBuffer>"u")return Qo(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 vc(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 Ia(t,n){var e=""+t;return e.length>=n?e:In("0",n-e.length)+e}function RP(t,n){var e=""+t;return e.length>=n?e:In(" ",n-e.length)+e}function $C(t,n){var e=""+t;return e.length>=n?e:e+In(" ",n-e.length)}var aQ=Math.pow(2,32);function Mp(t,n){return t>aQ||t<-aQ?function lFe(t,n){var e=""+Math.round(t);return e.length>=n?e:In("0",n-e.length)+e}(t,n):function dFe(t,n){var e=""+t;return e.length>=n?e:In("0",n-e.length)+e}(Math.round(t),n)}function GC(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 cQ=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],PP=[["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"]],Tt={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 "'},lQ={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},hFe={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 WC(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 Ud(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 vFe(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 dQ=new Date(1899,11,31,0,0,0),fFe=dQ.getTime(),mFe=new Date(1900,2,1,0,0,0);function uQ(t,n){var e=t.getTime();return n?e-=1262304e5:t>=mFe&&(e+=864e5),(e-(fFe+6e4*(t.getTimezoneOffset()-dQ.getTimezoneOffset())))/864e5}function FP(t){return-1==t.indexOf(".")?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function bh(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 Sv(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 gFe(t){var n=t<0?12:11,e=FP(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 _Fe(t){var n=FP(t.toFixed(11));return n.length>(t<0?12:11)||"0"===n||"-0"===n?t.toPrecision(6):n}(t),FP(function pFe(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 hs(14,uQ(t,n&&n.date1904),n)}throw new Error("unsupported value in General format: "+t)}function bFe(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 PP[e.m-1][1];case 5:return PP[e.m-1][0];default:return PP[e.m-1][2]}break;case 100:switch(n.length){case 1:case 2:c=e.d,l=n.length;break;case 3:return cQ[e.q][0];default:return cQ[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=Ia(o,2+i),"ss"===n?r.substr(0,2):"."+r.substr(2,n.length-1))):Ia(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?Ia(c,l):""}function ml(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 hQ=/%/g;function fQ(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"-"+fQ(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 mQ=/# (\?+)( ?)\/( ?)(\d+)/,pQ=/^#*0*\.([0#]+)/,gQ=/\).*[0#]/,_Q=/\(###\) ###\\?-####/;function Ko(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 vQ(t,n){var e=Math.pow(10,n);return""+Math.round(t*e)/e}function bQ(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 ta(t,n,e){if(40===t.charCodeAt(0)&&!n.match(gQ)){var i=n.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return e>=0?ta("n",i,e):"("+ta("n",i,-e)+")"}if(44===n.charCodeAt(n.length-1))return function xFe(t,n,e){for(var i=n.length-1;44===n.charCodeAt(i-1);)--i;return pl(t,n.substr(0,i),e/Math.pow(10,3*(n.length-i)))}(t,n,e);if(-1!==n.indexOf("%"))return function yFe(t,n,e){var i=n.replace(hQ,""),r=n.length-i.length;return pl(t,i,e*Math.pow(10,2*r))+In("%",r)}(t,n,e);if(-1!==n.indexOf("E"))return fQ(n,e);if(36===n.charCodeAt(0))return"$"+ta(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+Mp(c,n.length);if(n.match(/^[#?]+$/))return"0"===(r=Mp(e,0))&&(r=""),r.length>n.length?r:Ko(n.substr(0,n.length-r.length))+r;if(o=n.match(mQ))return function wFe(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?In(" ",t[1].length+1+t[4].length):RP(s,t[1].length)+t[2]+"/"+t[3]+Ia(a,t[4].length))}(o,c,l);if(n.match(/^#+0+$/))return l+Mp(c,n.length-n.indexOf("0"));if(o=n.match(pQ))return r=vQ(e,o[1].length).replace(/^([^\.]+)$/,"$1."+Ko(o[1])).replace(/\.$/,"."+Ko(o[1])).replace(/\.(\d*)$/,function(m,g){return"."+g+In("0",Ko(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+vQ(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+ml(Mp(c,0));if(o=n.match(/^#,##0\.([#0]*0)$/))return e<0?"-"+ta(t,n,-e):ml(""+(Math.floor(e)+function kFe(t,n){return n<(""+Math.round((t-Math.floor(t))*Math.pow(10,n))).length?1:0}(e,o[1].length)))+"."+Ia(bQ(e,o[1].length),o[1].length);if(o=n.match(/^#,#*,#0/))return ta(t,n.replace(/^#,#*,/,""),e);if(o=n.match(/^([0#]+)(\\?-([0#]+))+$/))return r=Ap(ta(t,n.replace(/[\\-]/g,""),e)),s=0,Ap(Ap(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?Ia(0,3-m.length):"")+m})+"."+Ia(s,o[1].length);switch(n){case"###,##0.00":return ta(t,"#,##0.00",e);case"###,###":case"##,###":case"#,###":var f=ml(Mp(c,0));return"0"!==f?l+f:"";case"###,###.00":return ta(t,"###,##0.00",e).replace(/^0\./,".");case"#,###.00":return ta(t,"#,##0.00",e).replace(/^0\./,".")}throw new Error("unsupported format |"+n+"|")}function yQ(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"-"+yQ(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 bc(t,n,e){if(40===t.charCodeAt(0)&&!n.match(gQ)){var i=n.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return e>=0?bc("n",i,e):"("+bc("n",i,-e)+")"}if(44===n.charCodeAt(n.length-1))return function TFe(t,n,e){for(var i=n.length-1;44===n.charCodeAt(i-1);)--i;return pl(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(hQ,""),r=n.length-i.length;return pl(t,i,e*Math.pow(10,2*r))+In("%",r)}(t,n,e);if(-1!==n.indexOf("E"))return yQ(n,e);if(36===n.charCodeAt(0))return"$"+bc(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+Ia(c,n.length);if(n.match(/^[#?]+$/))return r=""+e,0===e&&(r=""),r.length>n.length?r:Ko(n.substr(0,n.length-r.length))+r;if(o=n.match(mQ))return function CFe(t,n,e){return e+(0===n?"":""+n)+In(" ",t[1].length+2+t[4].length)}(o,c,l);if(n.match(/^#+0+$/))return l+Ia(c,n.length-n.indexOf("0"));if(o=n.match(pQ))return r=(r=(""+e).replace(/^([^\.]+)$/,"$1."+Ko(o[1])).replace(/\.$/,"."+Ko(o[1]))).replace(/\.(\d*)$/,function(m,g){return"."+g+In("0",Ko(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+ml(""+c);if(o=n.match(/^#,##0\.([#0]*0)$/))return e<0?"-"+bc(t,n,-e):ml(""+e)+"."+In("0",o[1].length);if(o=n.match(/^#,#*,#0/))return bc(t,n.replace(/^#,#*,/,""),e);if(o=n.match(/^([0#]+)(\\?-([0#]+))+$/))return r=Ap(bc(t,n.replace(/[\\-]/g,""),e)),s=0,Ap(Ap(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 wQ=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function CQ(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 hs(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:Tt)[t])&&(i=e.table&&e.table[lQ[t]]||Tt[lQ[t]]),null==i&&(i=hFe[t]||"General")}if(GC(i,0))return bh(n,e);n instanceof Date&&(n=uQ(n,e.date1904));var r=function AFe(t,n){var e=function DFe(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(wQ),a=e[1].match(wQ);return CQ(n,s)?[i,e[0]]:CQ(n,a)?[i,e[1]]:[i,e[null!=s&&null!=a?2:1]]}return[i,o]}(i,n);if(GC(r[1]))return bh(n,e);if(!0===n)n="TRUE";else if(!1===n)n="FALSE";else if(""===n||null==n)return"";return function IFe(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]||"$",zd(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,T=pl("n",C,A)):(T=pl("n",C,A=n<0&&i>1?-n:n),A<0&&r[0]&&"t"==r[0].t&&(T=T.substr(1),r[0].v="-"+r[0].v)),D=T.length-1;var B=r.length;for(s=0;s-1){B=s;break}var V=r.length;if(B===r.length&&-1===T.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=T.substr(1+(D-=r[s].v.length),r[s].v.length):D<0?r[s].v="":(r[s].v=T.substr(0,D+1),D=-1),r[s].t="t",V=s);D>=0&&V=0;--s)if(null!=r[s]&&-1!=="n?".indexOf(r[s].t)){for(d=r[s].v.indexOf(".")>-1&&s===B?r[s].v.indexOf(".")-1:r[s].v.length-1,U=r[s].v.substr(d+1);d>=0;--d)D>=0&&("0"===r[s].v.charAt(d)||"#"===r[s].v.charAt(d))&&(U=T.charAt(D--)+U);r[s].v=U,r[s].t="t",V=s}for(D>=0&&V-1&&s===B?r[s].v.indexOf(".")+1:0,U=r[s].v.substr(0,d);d-1&&(r[s].v=pl(r[s].t,r[s].v,A=i>1&&n<0&&s>0&&"-"===r[s-1].v?-n:n),r[s].t="t");var K="";for(s=0;s!==r.length;++s)null!=r[s]&&(K+=r[s].v);return K}(r[1],n,e,r[0])}function OP(t,n){if("number"!=typeof n){n=+n||-1;for(var e=0;e<392;++e)if(null!=Tt[e]){if(Tt[e]==t){n=e;break}}else n<0&&(n=e);n<0&&(n=391)}return Tt[n]=t,n}function Dv(t){for(var n=0;392!=n;++n)void 0!==t[n]&&OP(t[n],n)}function Rp(){Tt=function uFe(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 EQ=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g,FFe={"d.m":"d\\.m"};function Hd(t,n){return OP(FFe[t]||t,n)}var gl,TQ=function(){var t={version:"1.2.0"},e=function n(){for(var T=0,B=new Array(256),V=0;256!=V;++V)B[V]=T=1&(T=1&(T=1&(T=1&(T=1&(T=1&(T=1&(T=1&(T=V)?-306674912^T>>>1:T>>>1)?-306674912^T>>>1:T>>>1)?-306674912^T>>>1:T>>>1)?-306674912^T>>>1:T>>>1)?-306674912^T>>>1:T>>>1)?-306674912^T>>>1:T>>>1)?-306674912^T>>>1:T>>>1)?-306674912^T>>>1:T>>>1;return typeof Int32Array<"u"?new Int32Array(B):B}(),r=function i(T){var B=0,V=0,K=0,ne=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(K=0;256!=K;++K)ne[K]=T[K];for(K=0;256!=K;++K)for(V=T[K],B=256+K;B<4096;B+=256)V=ne[B]=V>>>8^T[255&V];var q=[];for(K=1;16!=K;++K)q[K-1]=typeof Int32Array<"u"&&"function"==typeof ne.subarray?ne.subarray(256*K,256*K+256):ne.slice(256*K,256*K+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(T,B){for(var V=~B,K=0,ne=T.length;K>>8^e[255&(V^T.charCodeAt(K++))];return~V},t.buf=function U(T,B){for(var V=~B,K=T.length-15,ne=0;ne>8&255]^v[T[ne++]^V>>16&255]^p[T[ne++]^V>>>24]^g[T[ne++]]^m[T[ne++]]^f[T[ne++]]^h[T[ne++]]^u[T[ne++]]^d[T[ne++]]^l[T[ne++]]^c[T[ne++]]^a[T[ne++]]^s[T[ne++]]^o[T[ne++]]^e[T[ne++]];for(K+=15;ne>>8^e[255&(V^T[ne++])];return~V},t.str=function A(T,B){for(var V=~B,K=0,ne=T.length,q=0,Ee=0;K>>8^e[255&(V^q)]:q<2048?V=(V=V>>>8^e[255&(V^(192|q>>6&31))])>>>8^e[255&(V^(128|63&q))]:q>=55296&&q<57344?(q=64+(1023&q),Ee=1023&T.charCodeAt(K++),V=(V=(V=(V=V>>>8^e[255&(V^(240|q>>8&7))])>>>8^e[255&(V^(128|q>>2&63))])>>>8^e[255&(V^(128|Ee>>6&15|(3&q)<<4))])>>>8^e[255&(V^(128|63&Ee))]):V=(V=(V=V>>>8^e[255&(V^(224|q>>12&15))])>>>8^e[255&(V^(128|q>>6&63))])>>>8^e[255&(V^(128|63&q))];return~V},t}(),Ct=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 R=O.getFullYear()-1980;R=(R=R<<4|O.getMonth()+1)<<5|O.getDate(),S.write_shift(2,R)}function a(S){Ar(S,0);for(var O={},I=0;S.l<=S.length-4;){var R=S.read_shift(2),N=S.read_shift(2),L=S.l+N,re={};switch(R){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 ge=S.read_shift(4),ie=S.read_shift(4);re.usz=ie*Math.pow(2,32)+ge,ge=S.read_shift(4),ie=S.read_shift(4),re.csz=ie*Math.pow(2,32)+ge}S.l=L,O[R]=re}return O}function l(){return c||(c=gl)}function d(S,O){if(80==S[0]&&75==S[1])return _Z(S,O);if(109==(32|S[0])&&105==(32|S[1]))return function AHe(S,O){if("mime-version:"!=me(S.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var I=O&&O.root||"",R=(rn&&Buffer.isBuffer(S)?S.toString("binary"):me(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=(R[1]||"").match(/boundary="(.*?)"/);if(!re)throw new Error("MAD cannot find boundary");var ge="--"+(re[1]||""),se={FileIndex:[],FullPaths:[]};T(se);var Ne,Ve=0;for(N=0;N=N&&(Ve-=N),!re[Ve]){ie=[];var $e=[];for(Ne=Ve;Ne>=0;){$e[Ne]=!0,re[Ne]=!0,ge[ge.length]=Ne,ie.push(S[Ne]);var Oe=I[Math.floor(4*Ne/R)];if(R<4+(lt=4*Ne&oe))throw new Error("FAT boundary crossed: "+Ne+" 4 "+R);if(!S[Oe]||$e[Ne=wh(S[Oe],lt)])break}L[Ve]={nodes:ge,data:QQ([ie])}}return L}(Ht,re,oe,R);re0&&ge!==Ee&&(bi[ge].name="!MiniFAT"),bi[oe[0]].name="!FAT",bi.fat_addrs=oe,bi.ssz=R;var pr=[],$s=[],pb=[];(function C(S,O,I,R,N,L,re,ge){for(var lt,ie=0,oe=R.length?2:0,se=O[S].data,Ne=0,Ve=0;Ne0&&ie!==Ee&&(O[ie].name="!StreamData")):Oe.size>=4096?(Oe.storage="fat",void 0===O[Oe.start]&&(O[Oe.start]=v(I,Oe.start,O.fat_addrs,O.ssz)),O[Oe.start].name=Oe.name,Oe.content=O[Oe.start].data.slice(0,Oe.size)):(Oe.storage="minifat",Oe.size<0?Oe.size=0:ie!==Ee&&Oe.start!==Ee&&O[ie]&&(Oe.content=g(Oe,O[ie].data,(O[ge]||{}).data))),Oe.content&&Ar(Oe.content,0),L[lt]=Oe,re.push(Oe)}})(re,bi,Ht,pr,N,{},$s,ge),function m(S,O,I){for(var R=0,N=0,L=0,re=0,ge=0,ie=I.length,oe=[],se=[];R0&&re>=0;)L.push(O.slice(re*q,re*q+q)),N-=q,re=wh(I,4*re);return 0===L.length?de(0):lr(L).slice(0,S.size)}function p(S,O,I,R,N){var L=Ee;if(S===Ee){if(0!==O)throw new Error("DIFAT chain shorter than expected")}else if(-1!==S){var re=I[S],ge=(R>>>2)-1;if(!re)return;for(var ie=0;ie=1&&p(wh(re,R-4),O-1,I,R,N)}}function v(S,O,I,R,N){var L=[],re=[];N||(N=[]);var ge=R-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/R)];if(R<4+(oe=4*ie&ge))throw new Error("FAT boundary crossed: "+ie+" 4 "+R);if(!S[se])break;ie=wh(S[se],oe)}return{nodes:L,data:QQ([re])}}function D(S,O){return new Date(1e3*(Gr(S,O+4)/1e7*Math.pow(2,32)+Gr(S,O)/1e7-11644473600))}function T(S,O){var I=O||{},R=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]=R+"/",S.FileIndex[0]={name:R,type:5}),I.CLSID&&(S.FileIndex[0].clsid=I.CLSID),function B(S){var O="\x01Sh33tJ5";if(!Ct.find(S,"/"+O)){var I=de(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),V(S)}}(S)}function V(S,O){T(S);for(var I=!1,R=!1,N=S.FullPaths.length-1;N>=0;--N){var L=S.FileIndex[N];switch(L.type){case 0:R?I=!0:(S.FileIndex.pop(),S.FullPaths.pop());break;case 1:case 2:case 5:R=!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),ge=0,ie=Object.create?Object.create(null):{},oe=[];for(N=0;N1?1:-1,Ne.size=0,Ne.type=5;else if("/"==Ve.slice(-1)){for(ge=N+1;ge=oe.length?-1:ge,ge=N+1;ge=oe.length?-1:ge,Ne.type=1}else i(S.FullPaths[N+1]||"")==i(Ve)&&(Ne.R=N+1),Ne.type=2}}}function K(S,O){var I=O||{};if("mad"==I.fileType)return function MHe(S,O){for(var I=O||{},R=I.boundary||"SheetJS",N=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(R="------="+R).slice(2)+'"',"","",""],L=S.FullPaths[0],re=L,ge=S.FileIndex[0],ie=1;ie=32&<<128&&++Ne;var Oe=Ne>=4*Ve/5;N.push(R),N.push("Content-Location: "+(I.root||"file:///C:/SheetJS/")+re),N.push("Content-Transfer-Encoding: "+(Oe?"quoted-printable":"base64")),N.push("Content-Type: "+EHe(ge,re)),N.push(""),N.push(Oe?SHe(se):THe(se))}return N.push(R+"--\r\n"),N.join("\r\n")}(S,I);if("zip"===(V(S),I.fileType))return function kHe(S,O){var I=O||{},R=[],N=[],L=de(1),re=I.compression?8:0,ge=0,oe=0,se=0,Ne=0,Ve=0,lt=S.FullPaths[0],$e=lt,Oe=S.FileIndex[0],Ht=[],bi=0;for(oe=1;oe0&&(gs<4096?$e+=gs+63>>6:Oe+=gs+511>>9)}}for(var pr=lt.FullPaths.length+3>>2,pb=$e+127>>7,gb=($e+7>>3)+Oe+pr+pb,zh=gb+127>>7,_O=zh<=109?0:Math.ceil((zh-109)/127);gb+zh+_O+127>>7>zh;)_O=++zh<=109?0:Math.ceil((zh-109)/127);var El=[1,_O,zh,pb,pr,Oe,$e,0];return lt.FileIndex[0].size=$e<<6,El[7]=(lt.FileIndex[0].start=El[0]+El[1]+El[2]+El[3]+El[4]+El[5])+(El[6]+7>>3),El}(S),N=de(R[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,R[2]),N.write_shift(4,R[0]+R[1]+R[2]+R[3]-1),N.write_shift(4,0),N.write_shift(4,4096),N.write_shift(4,R[3]?R[0]+R[1]+R[2]-1:Ee),N.write_shift(4,R[3]),N.write_shift(-4,R[1]?R[0]-1:Ee),N.write_shift(4,R[1]),L=0;L<109;++L)N.write_shift(-4,L>9));for(ge(R[6]+7>>3);511&N.l;)N.write_shift(-4,Z.ENDOFCHAIN);for(re=L=0,ie=0;ie=4096)&&(se.start=re,ge(oe+63>>6));for(;511&N.l;)N.write_shift(-4,Z.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,rn&&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(rn&&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=je[255&S];return O<=8?I>>>8-O:(I=I<<8|je[S>>8&255],O<=16?I>>>16-O:(I=I<<8|je[S>>16&255])>>>24-O)}function At(S,O){var I=7&O,R=O>>>3;return(S[R]|(I<=6?0:S[R+1]<<8))>>>I&3}function Cn(S,O){var I=7&O,R=O>>>3;return(S[R]|(I<=5?0:S[R+1]<<8))>>>I&7}function dn(S,O){var I=7&O,R=O>>>3;return(S[R]|(I<=3?0:S[R+1]<<8))>>>I&31}function Ri(S,O){var I=7&O,R=O>>>3;return(S[R]|(I<=1?0:S[R+1]<<8))>>>I&127}function Pn(S,O,I){var R=7&O,N=O>>>3,re=S[N]>>>R;return I<8-R||(re|=S[N+1]<<8-R,I<16-R)||(re|=S[N+2]<<16-R,I<24-R)||(re|=S[N+3]<<24-R),re&(1<>>3;return R<=5?S[N]|=(7&I)<>8-R),O+3}function Ze(S,O,I){return S[O>>>3]|=I=(1&I)<<(7&O),O+1}function Lo(S,O,I){var N=O>>>3;return S[N]|=255&(I<<=7&O),S[N+1]=I>>>=8,O+8}function An(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 ii(S,O){var I=S.length,R=2*I>O?2*I:O+5,N=0;if(I>=O)return S;if(rn){var L=sQ(R);if(S.copy)S.copy(L);else for(;N>R-Ne,re=(1<=0;--re)O[ge|re<0;)ie[ie.l++]=ge[oe++]}return ie.l}(ie,oe):function re(ge,ie){for(var oe=0,se=0,Ne=Te?new Uint16Array(32768):[];se0;)ie[ie.l++]=ge[se++];oe=8*ie.l}else{oe=ft(ie,oe,+(se+Ve==ge.length)+2);for(var lt=0;Ve-- >0;){var $e=ge[se],Oe=-1,Ht=0;if((Oe=Ne[lt=32767&(lt<<5^$e)])&&((Oe|=-32768&se)>se&&(Oe-=32768),Oe2){($e=N[Ht])<=22?oe=Lo(ie,oe,je[$e+1]>>1)-1:(Lo(ie,oe,3),Lo(ie,oe+=5,je[$e-23]>>5),oe+=3);var bi=$e<8?0:$e-4>>2;bi>0&&(An(ie,oe,Ht-Q[$e]),oe+=bi),oe=Lo(ie,oe,je[$e=O[se-Oe]]>>3),oe-=3;var gs=$e<4?0:$e-2>>1;gs>0&&(An(ie,oe,se-Oe-z[$e]),oe+=gs);for(var pr=0;pr>>3;return(S[R]|(I<=4?0:S[R+1]<<8))>>>I&15}(S,O+=5)+4;O+=4;for(var L=0,re=Te?new Uint8Array(19):Yo(19),ge=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],ie=1,oe=Te?new Uint8Array(8):Yo(8),se=Te?new Uint8Array(8):Yo(8),Ne=re.length,Ve=0;Ve>8-$e;for(var Oe=(1<<7-$e)-1;Oe>=0;--Oe)Fr[lt|Oe<<$e]=7&$e|Ve<<3}var Ht=[];for(ie=1;Ht.length>>=3){case 16:for(L=3+At(S,O),O+=2,lt=Ht[Ht.length-1];L-- >0;)Ht.push(lt);break;case 17:for(L=3+Cn(S,O),O+=3;L-- >0;)Ht.push(0);break;case 18:for(L=11+Ri(S,O),O+=7;L-- >0;)Ht.push(0);break;default:Ht.push(lt),ie>>0,ge=0,ie=0;!(1&R);)if(R=Cn(S,I),I+=3,R>>>1)for(R>>1==1?(ge=9,ie=5):(I=xHe(S,I),ge=Uh,ie=mZ);;){!O&&re>>1==1?Zd[se]:ir[se];if(I+=15&Ne,(Ne>>>=4)>>>8&255){if(256==Ne)break;var Ve=(Ne-=257)<8?0:Ne-4>>2;Ve>5&&(Ve=0);var lt=L+Q[Ne];Ve>0&&(lt+=Pn(S,I,Ve),I+=Ve),se=Pn(S,I,ie),I+=15&(Ne=R>>>1==1?mb[se]:ca[se]);var $e=(Ne>>>=4)<4?0:Ne-2>>1,Oe=z[Ne];for($e>0&&(Oe+=Pn(S,I,$e),I+=$e),!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+=R[1],R[0]}function gZ(S,O){if(!S)throw new Error(O);typeof console<"u"&&console.error(O)}function _Z(S,O){var I=S;Ar(I,0);var L={FileIndex:[],FullPaths:[]};T(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 ge=I.read_shift(2);I.l+=6;var ie=I.read_shift(4);for(I.l=ie,re=0;re>>=5);I>>>=4,R.setMilliseconds(0),R.setFullYear(I+1980),R.setMonth(L-1),R.setDate(N);var re=31&O,ge=63&(O>>>=5);return R.setHours(O>>>=6),R.setMinutes(ge),R.setSeconds(re<<1),R}(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),Ne=S.read_shift(2),Ve=S.read_shift(2),lt="",$e=0;$e"u")throw new Error("Unsupported");return new Uint8Array(t)}(t):t}function Iv(t,n,e){if(typeof gl<"u"&&gl.writeFileSync)return e?gl.writeFileSync(t,n,e):gl.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=Ev(n);break;default:throw new Error("Unsupported encoding "+e)}return Deno.writeFileSync(t,n)}var i="utf8"==e?yc(n):n;if(typeof IE_SaveFile<"u")return IE_SaveFile(i,t);if(typeof Blob<"u"){var r=new Blob([NFe(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=vc(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 Ai(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==MQ.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 yh(t,n){if(rn&&Buffer.isBuffer(t)){if(n&&kv){if(255==t[0]&&254==t[1])return yc(t.slice(2).toString("utf16le"));if(254==t[1]&&255==t[2])return yc(function rQ(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 yc(new TextDecoder("utf-16le").decode(t.slice(2)));if(254==t[0]&&255==t[1])return yc(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 Zn(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]=Zn(t[e]));return n}function In(t,n){for(var e="";e.length3&&-1==$Fe.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=rn?_c(e):function cFe(t){for(var n=[],e=0,i=t.length+250,r=Vd(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=Vd(65535),i=65530)}return n.push(r.slice(0,e)),lr(n)}(e),Ct.utils.cfb_add(t,n,i);Ct.utils.cfb_add(t,n,e)}else t.file(n,e)}function LP(){return Ct.utils.cfb_new()}var er='\r\n',BP=qC({""":'"',"'":"'",">":">","<":"<","&":"&"}),VP=/[&<>'"]/g,YFe=/[\u0000-\u0008\u000b-\u001f\uFFFE-\uFFFF]/g;function tn(t){return(t+"").replace(VP,function(e){return BP[e]}).replace(YFe,function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"})}function VQ(t){return tn(t).replace(/ /g,"_x0020_")}var UQ=/[\u0000-\u001f]/g;function YC(t){return(t+"").replace(VP,function(e){return BP[e]}).replace(/\n/g,"
").replace(UQ,function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"})}function UP(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 HQ(t){var e,i,a,n=Vd(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 _c(t,"binary").toString("utf8")}var ZC="foo bar baz\xe2\x98\x83\xf0\x9f\x8d\xa3",ei=rn&&(jQ(ZC)==UP(ZC)&&jQ||HQ(ZC)==UP(ZC)&&HQ)||UP,yc=rn?function(t){return _c(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("")},WQ=/(^\s|\s$|\n)/;function so(t,n){return"<"+t+(n.match(WQ)?' xml:space="preserve"':"")+">"+n+""}function Rv(t){return Ai(t).map(function(n){return" "+n+'="'+t[n]+'"'}).join("")}function Le(t,n,e){return"<"+t+(null!=e?Rv(e):"")+(null!=n?(n.match(WQ)?' xml:space="preserve"':"")+">"+n+""}function zP(t,n){try{return t.toISOString().replace(/\.\d*/,"")}catch(e){if(n)throw e}return""}var Ir={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"},xh=["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"],zs={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"},qQ=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:_c(n)})):qQ(t)}:qQ,KQ=function(t,n,e){for(var i=[],r=n;r0?Fp(t,n+4,n+4+e-1):""},HP=JQ,eK=function(t,n){var e=Gr(t,n);return e>0?Fp(t,n+4,n+4+e-1):""},jP=eK,tK=function(t,n){var e=2*Gr(t,n);return e>0?Fp(t,n+4,n+4+e-1):""},$P=tK,nK=function(n,e){var i=Gr(n,e);return i>0?ek(n,e+4,e+4+i):""},GP=nK,iK=function(t,n){var e=Gr(t,n);return e>0?Fp(t,n+4,n+4+e):""},WP=iK,rK=function(t,n){return function rOe(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)},tk=rK,qP=function(n){return Array.isArray(n)||typeof Uint8Array<"u"&&n instanceof Uint8Array};rn&&(HP=function(n,e){if(!Buffer.isBuffer(n))return JQ(n,e);var i=n.readUInt32LE(e);return i>0?n.toString("utf8",e+4,e+4+i-1):""},jP=function(n,e){if(!Buffer.isBuffer(n))return eK(n,e);var i=n.readUInt32LE(e);return i>0?n.toString("utf8",e+4,e+4+i-1):""},$P=function(n,e){if(!Buffer.isBuffer(n)||!kv)return tK(n,e);var i=2*n.readUInt32LE(e);return n.toString("utf16le",e+4,e+4+i-1)},GP=function(n,e){if(!Buffer.isBuffer(n)||!kv)return nK(n,e);var i=n.readUInt32LE(e);return n.toString("utf16le",e+4,e+4+i)},WP=function(n,e){if(!Buffer.isBuffer(n))return iK(n,e);var i=n.readUInt32LE(e);return n.toString("utf8",e+4,e+4+i)},tk=function(n,e){return Buffer.isBuffer(n)?n.readDoubleLE(e):rK(n,e)},qP=function(n){return Buffer.isBuffer(n)||Array.isArray(n)||typeof Uint8Array<"u"&&n instanceof Uint8Array}),typeof Zt<"u"&&function oK(){ek=function(t,n,e){return Zt.utils.decode(1200,t.slice(n,e)).replace(Io,"")},Fp=function(t,n,e){return Zt.utils.decode(65001,t.slice(n,e))},HP=function(t,n){var e=Gr(t,n);return e>0?Zt.utils.decode(vh,t.slice(n+4,n+4+e-1)):""},jP=function(t,n){var e=Gr(t,n);return e>0?Zt.utils.decode(Dr,t.slice(n+4,n+4+e-1)):""},$P=function(t,n){var e=2*Gr(t,n);return e>0?Zt.utils.decode(1200,t.slice(n+4,n+4+e-1)):""},GP=function(t,n){var e=Gr(t,n);return e>0?Zt.utils.decode(1200,t.slice(n+4,n+4+e)):""},WP=function(t,n){var e=Gr(t,n);return e>0?Zt.utils.decode(65001,t.slice(n+4,n+4+e)):""}}();var Op=function(t,n){return t[n]},_l=function(t,n){return 256*t[n+1]+t[n]},sOe=function(t,n){var e=256*t[n+1]+t[n];return e<32768?e:-1*(65535-e+1)},Gr=function(t,n){return t[n+3]*(1<<24)+(t[n+2]<<16)+(t[n+1]<<8)+t[n]},wh=function(t,n){return t[n+3]<<24|t[n+2]<<16|t[n+1]<<8|t[n]},aOe=function(t,n){return t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3]};function Pv(t,n){var i,r,s,a,c,l,e="",o=[];switch(n){case"dbcs":if(l=this.l,rn&&Buffer.isBuffer(this)&&kv)e=this.slice(this.l,this.l+2*t).toString("utf16le");else for(c=0;c0?wh:aOe)(this,this.l),this.l+=4,i);case 8:case-8:if("f"===n)return r=8==t?tk(this,this.l):tk([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=YQ(this,this.l,t)}}return this.l+=t,e}var cOe=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},lOe=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},dOe=function(t,n,e){t[e]=255&n,t[e+1]=n>>>8&255};function uOe(t,n,e){var i=0,r=0;if("dbcs"===e){for(r=0;r!=n.length;++r)dOe(this,n.charCodeAt(r),this.l+2*r);i=2*n.length}else if("sbcs"===e||"cpstr"==e)if(typeof Zt<"u"&&874==vh){for(r=0;r!=n.length;++r){var o=Zt.utils.encode(vh,n.charAt(r));this[this.l+r]=o[0]}i=n.length}else if(typeof Zt<"u"&&"cpstr"==e){if((o=Zt.utils.encode(Dr,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,cOe(this,n,this.l);break;case 8:if(i=8,"f"===e){!function oOe(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,lOe(this,n,this.l)}}return this.l+=i,this}function sK(t,n){var e=YQ(this,this.l,t.length>>1);if(e!==t)throw new Error(n+"Expected "+t+" saw "+e);this.l+=t.length>>1}function Ar(t,n){t.l=n,t.read_shift=Pv,t.chk=sK,t.write_shift=uOe}function Mo(t,n){t.l+=n}function de(t){var n=Vd(t);return Ar(n,0),n}function ms(){var t=[],n=rn?256:2048,e=function(l){var d=de(l);return Ar(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&&qP(e)&&t.push(e)}}function Fv(t,n,e){var i=Zn(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 aK(t,n,e){var i=Zn(t);return i.s=Fv(i.s,n.s,e),i.e=Fv(i.e,n.s,e),i}function Ov(t,n){if(t.cRel&&t.c<0)for(t=Zn(t);t.c<0;)t.c+=n>8?16384:256;if(t.rRel&&t.r<0)for(t=Zn(t);t.r<0;)t.r+=n>8?1048576:n>5?65536:16384;var e=cn(t);return!t.cRel&&null!=t.cRel&&(e=function mOe(t){return t.replace(/^([A-Z])/,"$$$1")}(e)),!t.rRel&&null!=t.rRel&&(e=function hOe(t){return t.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}(e)),e}function QP(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?Ov(t.s,n.biff)+":"+Ov(t.e,n.biff):(t.s.rRel?"":"$")+yn(t.s.r)+":"+(t.e.rRel?"":"$")+yn(t.e.r):(t.s.cRel?"":"$")+on(t.s.c)+":"+(t.e.cRel?"":"$")+on(t.e.c)}function KP(t){return parseInt(function fOe(t){return t.replace(/\$(\d+)$/,"$1")}(t),10)-1}function yn(t){return""+(t+1)}function XP(t){for(var n=function pOe(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 on(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 Hn(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 cn(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 Mr(t){var n=t.indexOf(":");return-1==n?{s:Hn(t),e:Hn(t)}:{s:Hn(t.slice(0,n)),e:Hn(t.slice(n+1))}}function Qt(t,n){return typeof n>"u"||"number"==typeof n?Qt(t.s,t.e):("string"!=typeof t&&(t=cn(t)),"string"!=typeof n&&(n=cn(n)),t==n?t:t+":"+n)}function Nv(t){var n=Mr(t);return"$"+on(n.s.c)+"$"+yn(n.s.r)+":$"+on(n.e.c)+"$"+yn(n.e.r)}function Lv(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 xn(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 xc(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?bl[t.v]||t.v:function cK(t,n){var e="d"==t.t&&n instanceof Date;if(null!=t.z)try{return t.w=hs(t.z,e?dr(n):n)}catch{}try{return t.w=hs((t.XF||{}).numFmtId||(e?14:0),e?dr(n):n)}catch{return""+n}}(t,null==n?t.v:n))}function jd(t,n){var e=n&&n.sheet?n.sheet:"Sheet1",i={};return i[e]=t,{SheetNames:[e],Sheets:i}}function lK(t,n,e){var i=e||{},r=t?null!=t["!data"]:i.dense;null!=Ji&&null==r&&(r=Ji);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?Hn(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=xn(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 vOe(t){return{ich:t.read_shift(2),ifnt:t.read_shift(2)}}function YP(t,n){var e=t.l,i=t.read_shift(1),r=Ro(t),o=[],s={t:r,h:r};if(1&i){for(var a=t.read_shift(4),c=0;c!=a;++c)o.push(vOe(t));s.r=o}else s.r=[{ich:0,ifnt:0}];return t.l=e+n,s}var xOe=YP;function ia(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 Ch(t,n){return null==n&&(n=de(8)),n.write_shift(-4,t.c),n.write_shift(3,t.iStyleRef||t.s),n.write_shift(1,0),n}function kh(t){var n=t.read_shift(2);return n+=t.read_shift(1)<<16,t.l++,{c:-1,iStyleRef:n}}function Eh(t,n){return null==n&&(n=de(4)),n.write_shift(3,t.iStyleRef||t.s),n.write_shift(1,0),n}var COe=Ro,dK=Rr;function ZP(t){var n=t.read_shift(4);return 0===n||4294967295===n?"":t.read_shift(n,"dbcs")}function Bv(t,n){var e=!1;return null==n&&(e=!0,n=de(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 kOe=Ro,JP=ZP,eF=Bv;function tF(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?tk([0,0,0,0,252&n[0],n[1],n[2],n[3]],0):wh(n,0)>>2;return e?r/100:r}function uK(t,n){null==n&&(n=de(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 hK(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 Th=hK,Lp=function EOe(t,n){return n||(n=de(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 Po(t){if(t.length-t.l<8)throw"XLS Xnum Buffer underflow";return t.read_shift(8,"f")}function Sh(t,n){return(n||de(8)).write_shift(8,t,"f")}function nk(t,n){if(n||(n=de(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 iF={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:{}},rF={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 LOe(t){return t.map(function(n){return[n>>16&255,n>>8&255,255&n]})}var Dh=Zn(LOe([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])),bl={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},oF={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},sF=["_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"],aF={"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"},sk={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 _K(t,n,e){var o,i=function BFe(t){for(var n=[],e=Ai(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}(aF),r=[];e||(r[r.length]=er,r[r.length]=Le("Types",null,{xmlns:Ir.CT,"xmlns:xsd":Ir.xsd,"xmlns:xsi":Ir.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 Le("Default",null,{Extension:l[0],ContentType:l[1]})})));var s=function(l){t[l]&&t[l].length>0&&(r[r.length]=Le("Override",null,{PartName:("/"==(o=t[l][0])[0]?"":"/")+o,ContentType:sk[l][n.bookType]||sk[l].xlsx}))},a=function(l){(t[l]||[]).forEach(function(d){r[r.length]=Le("Override",null,{PartName:("/"==d[0]?"":"/")+d,ContentType:sk[l][n.bookType]||sk[l].xlsx})})},c=function(l){(t[l]||[]).forEach(function(d){r[r.length]=Le("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 Vv(t){var n=t.lastIndexOf("/");return t.slice(0,n+1)+"_rels/"+t.slice(n+1)+".rels"}function Bp(t){var n=[er,Le("Relationships",null,{xmlns:Ir.RELS})];return Ai(t["!id"]).forEach(function(e){n[n.length]=Le("Relationship",null,t["!id"][e])}),n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}function ti(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 vK(t,n,e){return[' \n',' \n'," \n"].join("")}function jOe(t,n){return[' \n',' \n'," \n"].join("")}function bK(t,n){return'SheetJS '+wv.version+""}var ra=[["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 lF(t,n,e,i,r){null!=r[t]||null==n||""===n||(r[t]=n,n=tn(n),i[i.length]=e?Le(t,n,e):so(t,n))}function xK(t,n){var e=n||{},i=[er,Le("cp:coreProperties",null,{"xmlns:cp":Ir.CORE_PROPS,"xmlns:dc":Ir.dc,"xmlns:dcterms":Ir.dcterms,"xmlns:dcmitype":Ir.dcmitype,"xmlns:xsi":Ir.xsi})],r={};if(!t&&!e.Props)return i.join("");t&&(null!=t.CreatedDate&&lF("dcterms:created","string"==typeof t.CreatedDate?t.CreatedDate:zP(t.CreatedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},i,r),null!=t.ModifiedDate&&lF("dcterms:modified","string"==typeof t.ModifiedDate?t.ModifiedDate:zP(t.ModifiedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},i,r));for(var o=0;o!=ra.length;++o){var s=ra[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&&lF(s[0],a,null,i,r)}return i.length>2&&(i[i.length]="",i[1]=i[1].replace("/>",">")),i.join("")}var Ih=[["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"]],wK=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function kK(t){var n=[],e=Le;return t||(t={}),t.Application="SheetJS",n[n.length]=er,n[n.length]=Le("Properties",null,{xmlns:Ir.EXT_PROPS,"xmlns:vt":Ir.vt}),Ih.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 EK(t){var n=[er,Le("Properties",null,{xmlns:Ir.CUST_PROPS,"xmlns:vt":Ir.vt})];if(!t)return n.join("");var e=1;return Ai(t).forEach(function(r){++e,n[n.length]=Le("property",function iOe(t,n){switch(typeof t){case"string":var e=Le("vt:lpwstr",tn(t));return n&&(e=e.replace(/"/g,"_x0022_")),e;case"number":return Le((0|t)==t?"vt:i4":"vt:r8",tn(String(t)));case"boolean":return Le("vt:bool",t?"true":"false")}if(t instanceof Date)return Le("vt:filetime",zP(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 dF={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 MK(t,n){var e=de(4),i=de(4);switch(e.write_shift(4,80==t?31:t),t){case 3:i.write_shift(-4,n);break;case 5:(i=de(8)).write_shift(8,n,"f");break;case 11:i.write_shift(4,n?1:0);break;case 64:i=function ZOe(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=de(8);return s.write_shift(4,i),s.write_shift(4,r),s}(n);break;case 31:case 80:for((i=de(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 lr([e,i])}var PK=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function oNe(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 FK(t,n,e){var i=de(8),r=[],o=[],s=8,a=0,c=de(8),l=de(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=de(8)).write_shift(4,0),r.unshift(l);var d=[de(4)];for(d[0].write_shift(4,t.length),a=0;a-1||wK.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=MK(m.t,h)}else{var p=oNe(h);-1==p&&(p=31,h=String(h)),c=MK(p,h)}o.push(c),(l=de(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=Dr;e&&e.biff>=8&&(Dr=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 Dr=o,a}function dNe(t){var n=t.t||"",i=de(3);i.write_shift(2,n.length),i.write_shift(1,1);var r=de(2*n.length);return r.write_shift(2*n.length,n,"utf16le"),lr([i,r])}function VK(t,n,e){return e||(e=de(3+2*t.length)),e.write_shift(2,t.length),e.write_shift(1,1),e.write_shift(31,t,"utf16le"),e}function UK(t,n){n||(n=de(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 lk(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 $K(t,n){return n||(n=de(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 mF(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=de(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 MNe(t,n){var e=!n||n.biff>=8?2:1,i=de(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 XNe(t,n,e,i){var r=e&&5==e.biff;i||(i=de(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 KK(t,n,e,i){var r=e&&5==e.biff;i||(i=de(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 w4e(t){var n=de(24),e=Hn(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 lr([n,gNe(t[1])])}function k4e(t){var n=t[1].Tooltip,e=de(10+2*(n.length+1));e.write_shift(2,2048);var i=Hn(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={},U=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[++T]=[],B=0,B=0;B!=C.length;++B){var V=d.slice(d.l,d.l+C[B].len);d.l+=C[B].len,Ar(V,0);var K=typeof Zt<"u"?Zt.utils.decode(x,V):vc(V);switch(C[B].type){case"C":K.trim().length&&(l[T][B]=K.replace(/\s+$/,""));break;case"D":l[T][B]=8===K.length?new Date(+K.slice(0,4),+K.slice(4,6)-1,+K.slice(6,8)):K;break;case"F":l[T][B]=parseFloat(K.trim());break;case"+":case"I":l[T][B]=m?2147483648^V.read_shift(-4,"i"):V.read_shift(4,"i");break;case"L":switch(K.trim().toUpperCase()){case"Y":case"T":l[T][B]=!0;break;case"N":case"F":l[T][B]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+K+"|")}break;case"M":if(!h)throw new Error("DBF Unexpected MEMO for type "+u.toString(16));l[T][B]="##MEMO##"+(m?parseInt(K.trim(),10):V.read_shift(4));break;case"N":(K=K.replace(/\u0000/g,"").trim())&&"."!=K&&(l[T][B]=+K||0);break;case"@":l[T][B]=new Date(V.read_shift(-8,"f")-621356832e5);break;case"T":l[T][B]=new Date(864e5*(V.read_shift(4)-2440588)+V.read_shift(4));break;case"Y":l[T][B]=V.read_shift(4,"i")/1e4+V.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":l[T][B]=-V.read_shift(-8,"f");break;case"B":if(f&&8==C[B].len){l[T][B]=V.read_shift(8,"f");break}case"G":case"P":V.l+=C[B].len;break;case"0":if("_NullFlags"===C[B].name)break;default:throw new Error("DBF Unsupported data type "+C[B].type)}}else d.l+=v;if(2!=u&&d.l=0&&Js(+l.codepage),"string"==l.type)throw new Error("Cannot write DBF to JS string");var u=ms(),h=Ek(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&&(K=250),"C"==(V=((g[p]||{}).DBF||{}).type)&&g[p].DBF.len>K&&(K=g[p].DBF.len),"B"==B&&"N"==V&&(B="N",T[p]=g[p].DBF.dec,K=g[p].DBF.len),A[p]="C"==B||"N"==V?K:o[B]||0,C+=A[p],U[p]=B}else U[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 Ee=+n[Dr]||3;for(q.write_shift(4,Ee<<8),t[Ee]!=+l.codepage&&(l.codepage&&console.error("DBF Unsupported codepage "+Dr+", using 1252"),Dr=1252),p=0,v=0;pA[v]&&(ye=ye.slice(0,A[v])),x=0;x":190,"?":191,"{":223},n=new RegExp("\x1bN("+Ai(t).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),e=function(u,h){var f=t[h];return"number"==typeof f?AP(f):f},i=function(u,h,f){var m=h.charCodeAt(0)-32<<4|f.charCodeAt(0)-48;return 59==m?u:AP(m)};function o(u,h){var K,f=u.split(/[\n\r]+/),m=-1,g=-1,p=0,v=0,x=[],C=[],D=null,U={},A=[],T=[],B=[],V=0,ne={Workbook:{WBProps:{},Names:[]}};for(+h.codepage>=0&&Js(+h.codepage);p!==f.length;++p){V=0;var ve,q=f[p].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,i).replace(n,e),Ee=q.replace(/;;/g,"\0").split(";").map(function(he){return he.replace(/\u0000/g,";")});if(q.length>0)switch(Ee[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"===Ee[1].charAt(0)&&C.push(q.slice(3).replace(/;;/g,";"));break;case"NN":var Z={Sheet:0};for(v=1;v-1&&x[ct][St];if(!Q||!Q[1])throw new Error("SYLK shared formula cannot find base");F=vX(Q[1],{r:m-ct,c:g-St})}F&&(x[m][g]?x[m][g].f=F:x[m][g]={t:"n",f:F});break;case"F":var z=0;for(v=1;v0?(A[m].hpt=V,A[m].hpx=Up(V)):0===V&&(A[m].hidden=!0);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+q)}z<1&&(D=null);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+q)}}return A.length>0&&(U["!rows"]=A),T.length>0&&(U["!cols"]=T),T.forEach(function(he){Gd(he)}),h&&h.sheetRows&&(x=x.slice(0,h.sheetRows)),[x,U,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"+gk(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(Vs(u),h);case"binary":return o(u,h);case"buffer":return o(rn&&Buffer.isBuffer(u)?u.toString("binary"):vc(u),h);case"array":return o(yh(u),h)}throw new Error("Unrecognized type "+h.type)}(u,h),m=f[0],g=f[1],p=f[2],v=Zn(h);v.date1904=(((p||{}).Workbook||{}).WBProps||{}).date1904;var x=Np(m,v);Ai(g).forEach(function(D){x[D]=g[D]});var C=jd(x,h);return Ai(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=xn(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=$v(f.width)),"number"==typeof f.wpx&&!f.wch&&(f.wch=Gv(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*Wv(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 U=p.s.r;U<=p.e.r;++U)if(!x||u["!data"][U]){for(var A=[],T=p.s.c;T<=p.e.c;++T)(v=x?u["!data"][U][T]:u[on(T)+yn(U)])&&(null!=v.v||v.f&&!v.F)&&A.push(a(v,0,U,T));g.push(A.join(C))}return m.join(C)+C+g.join(C)+C+"E"+C}}}(),oX=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!=Ji&&null==h.dense&&(h.dense=Ji);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,U=f.charCodeAt(0),A=!1,T=0,B=d.charCodeAt(0),V=null!=h.dateNF?function RFe(t){var n="number"==typeof t?Tt[t]:t;return n=n.replace(EQ,"(\\d+)"),new RegExp("^"+n+"$")}(h.dateNF):null;function K(){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 gBe(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=Us(ne))?!isNaN((x=Pp(ne)).getDate())||V&&ne.match(V)?(q.z=h.dateNF||Tt[14],V&&ne.match(V)&&(ne=function PFe(t,n,e){var i=-1,r=-1,o=-1,s=-1,a=-1,c=-1;(n.match(EQ)||[]).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(V)||[]),x=Mi(ne,1)),h.cellDates?(q.t="d",q.v=x):(q.t="n",q.v=dr(x)),!1!==h.cellText&&(q.w=hs(q.z,q.v instanceof Date?dr(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[cn({c:v,r:p})]=q),B=d.charCodeAt(C=D+1),g.e.c0&&K(),m["!ref"]=Qt(g),m}(d,u):Np(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 LF(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=Vs(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=Vs(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):rn&&Buffer.isBuffer(d)?d.toString("binary"):vc(d);break;case"array":h=yh(d);break;default:throw new Error("Unrecognized type "+u.type)}return 239==f[0]&&187==f[1]&&191==f[2]?h=ei(h.slice(3)):"string"!=u.type&&"buffer"!=u.type&&65001==u.codepage?h=ei(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)?sX.to_sheet("string"==u.type?h:ei(h),u):s(h,u)}return{to_workbook:function c(d,u){return jd(a(d,u),u)},to_sheet:a,from_sheet:function l(d){for(var f,u=[],h=xn(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=cn({r:g,c:v});if((f=m?(d["!data"][g]||[])[v]:d[x])&&null!=f.v){for(var C=(f.w||(xc(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")}}}(),Ph=function(){function t(F,te,Q){if(F){Ar(F,F.l||0);for(var z=Q.Enum||pe;F.l255||Qe.s.r>999999)break;Qe.e.cCn&&(Qe.s.c=Cn),it=ft.read_shift(4),Qe.s.r>it&&(Qe.s.r=it),it=ft.read_shift(4),Qe.e.rit&&(Qe.s.r=it),Qe.e.r0&&M>=0;){if(32&ii)switch(31&ii){case 2:An={t:"n",v:An.v+Bo&65535};break;case 3:(An={t:"n",v:An.v+Bo&65535}).v>32767&&(An.v-=65536);break;case 7:An={t:"s",v:he[At=At+Bo>>>0]};break;default:throw"Cannot apply delta for QPW cell type "+(31&ii)}else switch(31&ii){case 1:An={t:"z"};break;case 2:An={t:"n",v:ft.read_shift(2)};break;case 7:An={t:"s",v:he[At=ft.read_shift(4)-1]};break;default:throw"Cannot apply repeat for QPW cell type "+(31&ii)}!Q.sheetStubs&&"z"==An.t||(null!=z["!data"]?(z["!data"][it]||(z["!data"][it]=[]),z["!data"][it][Cn]=An):z[Lo+yn(it)]=An),++it,--M}}}F.l+=Pn}return dn}(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])Q.Enum=pe,t(F,function(Ze,Lo,An){switch(An){case 0:Q.vers=Ze,Ze>=4096&&(Q.qpro=!0);break;case 255:Q.vers=Ze,Q.works=!0;break;case 6:it=Ze;break;case 204:Ze&&(Te=Ze);break;case 222:Te=Ze;break;case 15:case 51:(!Q.qpro&&!Q.works||51==An)&&Ze[1].v.charCodeAt(0)<48&&(Ze[1].v=Ze[1].v.slice(1)),(Q.works||Q.works2)&&(Ze[1].v=Ze[1].v.replace(/\r\n/g,"\n"));case 13:case 14:case 16:14==An&&!(112&~Ze[2])&&(15&Ze[2])>1&&(15&Ze[2])<15&&(Ze[1].z=Q.dateNF||Tt[14],Q.cellDates&&(Ze[1].t="d",Ze[1].v=XC(Ze[1].v))),Q.qpro&&Ze[3]>je&&(z["!ref"]=Qt(it),Qe[he]=z,M.push(he),z={},Q.dense&&(Cn=z["!data"]=[]),it={s:{r:0,c:0},e:{r:0,c:0}},je=Ze[3],he=Te||"Sheet"+(je+1),Te="");var ii=Q.dense?(Cn[Ze[0].r]||[])[Ze[0].c]:z[cn(Ze[0])];if(ii){ii.t=Ze[1].t,ii.v=Ze[1].v,null!=Ze[1].z&&(ii.z=Ze[1].z),null!=Ze[1].f&&(ii.f=Ze[1].f);break}Q.dense?(Cn[Ze[0].r]||(Cn[Ze[0].r]=[]),Cn[Ze[0].r][Ze[0].c]=Ze[1]):z[cn(Ze[0])]=Ze[1];break;case 21509:Q.works2=!0}},Q);else{if(26!=F[2]&&14!=F[2])throw new Error("Unrecognized LOTUS BOF "+F[2]);Q.Enum=ct,14==F[2]&&(Q.qpro=!0,F.l=0),t(F,function(Ze,Lo,An){switch(An){case 204:he=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(ii){return String.fromCharCode(ii.charCodeAt(1)-32)}).replace(/\r\n/g,"\n");case 23:case 24:case 25:case 37:case 39:case 40:if(Ze[3]>je&&(z["!ref"]=Qt(it),Qe[he]=z,M.push(he),z={},Q.dense&&(Cn=z["!data"]=[]),it={s:{r:0,c:0},e:{r:0,c:0}},he="Sheet"+((je=Ze[3])+1)),dn>0&&Ze[0].r>=dn)break;Q.dense?(Cn[Ze[0].r]||(Cn[Ze[0].r]=[]),Cn[Ze[0].r][Ze[0].c]=Ze[1]):z[cn(Ze[0])]=Ze[1],it.e.c=128?95:Te)}return z.write_shift(1,0),z}function m(F,te,Q){var z=de(7);return z.write_shift(1,255),z.write_shift(2,te),z.write_shift(2,F),z.write_shift(2,Q,"i"),z}function p(F,te,Q){var z=de(13);return z.write_shift(1,255),z.write_shift(2,te),z.write_shift(2,F),z.write_shift(8,Q,"f"),z}function x(F,te,Q){var z=32768&te;return te=(z?F:0)+((te&=-32769)>=8192?te-16384:te),(z?"":"$")+(Q?on(te):yn(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 B(F,te,Q,z){var he=de(6+z.length);he.write_shift(2,F),he.write_shift(1,Q),he.write_shift(1,te),he.write_shift(1,39);for(var Te=0;Te=128?95:je)}return he.write_shift(1,0),he}function K(F,te){var Q=A(F),z=F.read_shift(4),he=F.read_shift(4),Te=F.read_shift(2);if(65535==Te)return 0===z&&3221225472===he?(Q[1].t="e",Q[1].v=15):0===z&&3489660928===he?(Q[1].t="e",Q[1].v=42):Q[1].v=0,Q;var je=32768&Te;return Te=(32767&Te)-16446,Q[1].v=(1-2*je)*(he*Math.pow(2,Te+32)+z*Math.pow(2,Te)),Q}function ne(F,te,Q,z){var he=de(14);if(he.write_shift(2,F),he.write_shift(1,Q),he.write_shift(1,te),0==z)return he.write_shift(4,0),he.write_shift(4,0),he.write_shift(2,65535),he;var Te=0,je=0,M=0;return z<0&&(Te=1,z=-z),je=0|Math.log2(z),2147483648&(M=(z/=Math.pow(2,je-31))>>>0)||(++je,M=(z/=2)>>>0),z-=M,M|=2147483648,M>>>=0,z*=Math.pow(2,32),he.write_shift(4,z>>>0),he.write_shift(4,M),he.write_shift(2,je+=16383+(Te?32768:0)),he}function Me(F,te){var Q=A(F),z=F.read_shift(8,"f");return Q[1].v=z,Q}function ae(F,te){return 0==F[F.l+te-1]?F.read_shift(te,"cstr"):""}function Ye(F,te){var Q=de(5+F.length);Q.write_shift(2,14e3),Q.write_shift(2,te);for(var z=0;z127?95:he}return Q[Q.l++]=0,Q}var pe={0:{n:"BOF",f:nr},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function a(F,te,Q){var z={s:{c:0,r:0},e:{c:0,r:0}};return 8==te&&Q.qpro?(z.s.c=F.read_shift(1),F.l++,z.s.r=F.read_shift(2),z.e.c=F.read_shift(1),F.l++,z.e.r=F.read_shift(2),z):(z.s.c=F.read_shift(2),z.s.r=F.read_shift(2),12==te&&Q.qpro&&(F.l+=2),z.e.c=F.read_shift(2),z.e.r=F.read_shift(2),12==te&&Q.qpro&&(F.l+=2),65535==z.s.c&&(z.s.c=z.e.c=z.s.r=z.e.r=0),z)}},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,Q){var z=l(F,0,Q);return z[1].v=F.read_shift(2,"i"),z}},14:{n:"NUMBER",f:function g(F,te,Q){var z=l(F,0,Q);return z[1].v=F.read_shift(8,"f"),z}},15:{n:"LABEL",f:function d(F,te,Q){var z=F.l+te,he=l(F,0,Q);if(he[1].t="s",20768==Q.vers){F.l++;var Te=F.read_shift(1);return he[1].v=F.read_shift(Te,"utf8"),he}return Q.qpro&&F.l++,he[1].v=F.read_shift(z-F.l,"cstr"),he}},16:{n:"FORMULA",f:function v(F,te,Q){var z=F.l+te,he=l(F,0,Q);if(he[1].v=F.read_shift(8,"f"),Q.qpro)F.l=z;else{var Te=F.read_shift(2);(function U(F,te){Ar(F,0);for(var Q=[],z=0,he="",Te="",je="",Qe="";F.lQ.length)return void console.error("WK1 bad formula parse 0x"+M.toString(16)+":|"+Q.join("|")+"|");var dn=Q.slice(-z);Q.length-=z,Q.push(C[M][0]+"("+dn.join(",")+")")}}}1==Q.length?te[1].f=""+Q[0]:console.error("WK1 bad formula parse |"+Q.join("|")+"|")})(F.slice(F.l,F.l+Te),he),F.l+=Te}return he}},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,Q){var z=F.l+te,he=l(F,0,Q);if(he[1].t="s",20768==Q.vers){var Te=F.read_shift(1);return he[1].v=F.read_shift(Te,"utf8"),he}return he[1].v=F.read_shift(z-F.l,"cstr"),he}},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 Z(F,te){var Q=F[F.l++];Q>te-1&&(Q=te-1);for(var z="";z.length>1;if(1&Q[1].v)switch(7&z){case 0:z=5e3*(z>>3);break;case 1:z=500*(z>>3);break;case 2:z=(z>>3)/20;break;case 3:z=(z>>3)/200;break;case 4:z=(z>>3)/2e3;break;case 5:z=(z>>3)/2e4;break;case 6:z=(z>>3)/16;break;case 7:z=(z>>3)/64}return Q[1].v=z,Q}},25:{n:"FORMULA19",f:function q(F,te){var Q=K(F);return F.l+=te-14,Q}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function me(F,te){for(var Q={},z=F.l+te;F.l>6,Q}},38:{n:"??"},39:{n:"NUMBER27",f:Me},40:{n:"FORMULA28",f:function ve(F,te){var Q=Me(F);return F.l+=te-12,Q}},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,Q){if(Q.qpro&&!(te<21)){var z=F.read_shift(1);return F.l+=17,F.l+=1,F.l+=2,[z,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 Q=te||{};if(+Q.codepage>=0&&Js(+Q.codepage),"string"==Q.type)throw new Error("Cannot write WK1 to JS string");var z=ms(),he=xn(F["!ref"]),Te=null!=F["!data"],je=[];He(z,0,function o(F){var te=de(2);return te.write_shift(2,F),te}(1030)),He(z,6,function c(F){var te=de(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}(he));for(var Qe=Math.min(he.e.r,8191),M=he.s.c;M<=he.e.c;++M)je[M]=on(M);for(var At=he.s.r;At<=Qe;++At){var Cn=yn(At);for(M=he.s.c;M<=he.e.c;++M){var it=Te?(F["!data"][At]||[])[M]:F[je[M]+Cn];it&&"z"!=it.t&&("n"==it.t?(0|it.v)==it.v&&it.v>=-32768&&it.v<=32767?He(z,13,m(At,M,it.v)):He(z,14,p(At,M,it.v)):He(z,15,u(At,M,xc(it).slice(0,239))))}}return He(z,1),z.end()},book_to_wk3:function r(F,te){var Q=te||{};if(+Q.codepage>=0&&Js(+Q.codepage),"string"==Q.type)throw new Error("Cannot write WK3 to JS string");var z=ms();He(z,0,function s(F){var te=de(26);te.write_shift(2,4096),te.write_shift(2,4),te.write_shift(4,0);for(var Q=0,z=0,he=0,Te=0;Te8191&&(Q=8191),te.write_shift(2,Q),te.write_shift(1,he),te.write_shift(1,z),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 he=0,Te=0;he=0;--o)n=((16384&n?1:0)|n<<1&32767)^e[o];return 52811^n}function jv(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 Oo=6;function $v(t){return Math.floor((t+Math.round(128/Oo)/256)*Oo)}function Gv(t){return Math.floor((t-5)/Oo*100+.5)/100}function fk(t){return Math.round((t*Oo+5)/Oo*256)/256}function Gd(t){t.width?(t.wpx=$v(t.width),t.wch=Gv(t.wpx),t.MDW=Oo):t.wpx?(t.wch=Gv(t.wpx),t.width=fk(t.wch),t.MDW=Oo):"number"==typeof t.wch&&(t.width=fk(t.wch),t.wpx=$v(t.width),t.MDW=Oo),t.customWidth&&delete t.customWidth}var hX=96;function Wv(t){return 96*t/hX}function Up(t){return t*hX/96}function QLe(t,n,e){e||(e=de(6+4*n.length)),e.write_shift(2,t),Rr(n,e);var i=e.length>e.l?e.slice(0,e.l):e;return null==e.l&&(e.l=e.length),i}var yF,YLe=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],ZLe=Mo;function fX(t,n){n||(n=de(84)),yF||(yF=qC(YLe));var e=yF[t.patternType];null==e&&(e=40),n.write_shift(4,e);var i=0;if(40!=e)for(nk({auto:1},n),nk({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 mX(t,n,e){return e||(e=de(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 qv(t,n){return n||(n=de(10)),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(4,0),n.write_shift(4,0),n}var e3e=Mo;function m3e(t,n){var e=ms();return Ce(e,278),function o3e(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&&(Ce(t,615,Ma(e)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(i){for(var r=i[0];r<=i[1];++r)null!=n[r]&&Ce(t,44,QLe(r,n[r]))}),Ce(t,616))}}(e,t.SSF),function s3e(t){Ce(t,611,Ma(1)),Ce(t,43,function XLe(t,n){n||(n=de(153)),n.write_shift(2,20*t.sz),function DOe(t,n){n||(n=de(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),nk(t.color,n);var i=0;return"major"==t.scheme&&(i=1),"minor"==t.scheme&&(i=2),n.write_shift(1,i),Rr(t.name,n),n.length>n.l?n.slice(0,n.l):n}({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),Ce(t,612)}(e),function a3e(t){Ce(t,603,Ma(2)),Ce(t,45,fX({patternType:"none"})),Ce(t,45,fX({patternType:"gray125"})),Ce(t,604)}(e),function c3e(t){Ce(t,613,Ma(1)),Ce(t,46,function t3e(t,n){return n||(n=de(51)),n.write_shift(1,0),qv(0,n),qv(0,n),qv(0,n),qv(0,n),qv(0,n),n.length>n.l?n.slice(0,n.l):n}()),Ce(t,614)}(e),function l3e(t){Ce(t,626,Ma(1)),Ce(t,47,mX({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),Ce(t,627)}(e),function d3e(t,n){Ce(t,617,Ma(n.length)),n.forEach(function(e){Ce(t,47,mX(e,0))}),Ce(t,618)}(e,n.cellXfs),function u3e(t){Ce(t,619,Ma(1)),Ce(t,48,function n3e(t,n){return n||(n=de(52)),n.write_shift(4,t.xfId),n.write_shift(2,1),n.write_shift(1,+t.builtinId),n.write_shift(1,0),Bv(t.name||"",n),n.length>n.l?n.slice(0,n.l):n}({xfId:0,builtinId:0,name:"Normal"})),Ce(t,620)}(e),function h3e(t){Ce(t,505,Ma(0)),Ce(t,506)}(e),function f3e(t){Ce(t,508,function i3e(t,n,e){var i=de(2052);return i.write_shift(4,t),Bv(n,i),Bv(e,i),i.length>i.l?i.slice(0,i.l):i}(0,"TableStyleMedium9","PivotStyleMedium4")),Ce(t,509)}(e),Ce(e,279),e.end()}function xF(t,n){if(n&&n.themeXLSX)return n.themeXLSX;if(t&&"string"==typeof t.raw)return t.raw;var e=[er];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 gX(t,n){var e=[21600,21600],i=["m0,0l0",e[1],e[0],e[1],e[0],"0xe"].join(","),r=[Le("xml",null,{"xmlns:v":zs.v,"xmlns:o":zs.o,"xmlns:x":zs.x,"xmlns:mv":zs.mv}).replace(/\/>/,">"),Le("o:shapelayout",Le("o:idmap",null,{"v:ext":"edit",data:t}),{"v:ext":"edit"})],o=65536*t,s=n||[];return s.length>0&&r.push(Le("v:shapetype",[Le("v:stroke",null,{joinstyle:"miter"}),Le("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 Q3e(t,n){var e=Hn(t[0]),i={color2:"#BEFF82",type:"gradient"};"gradient"==i.type&&(i.angle="-180");var r="gradient"==i.type?Le("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,o=Le("v:fill",r,i);return["",o,Le("v:shadow",null,{on:"t",obscured:"t"}),Le("v:path",null,{"o:connecttype":"none"}),'
','',"","",so("x:Anchor",[e.c+1,0,e.r+1,0,e.c+3,20,e.r+5,20].join(",")),so("x:AutoFill","False"),so("x:Row",String(e.r)),so("x:Column",String(e.c)),t[1].hidden?"":"","",""].join("")}(a,o))}),r.push(""),r.join("")}function X3e(t){var n=[er,Le("comments",null,{xmlns:xh[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(so("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 Z3e(t,n,e){var i=[er,Le("ThreadedComments",null,{xmlns:Ir.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(Le("threadedComment",so("text",s.t||""),c))}else delete s.ID})}),i.push(""),i.join("")}var iBe=Ro;function sBe(t){var n=ms(),e=[];return Ce(n,628),Ce(n,630),t.forEach(function(i){i[1].forEach(function(r){e.indexOf(r.a)>-1||(e.push(r.a.slice(0,54)),Ce(n,632,function rBe(t){return Rr(t.slice(0,54))}(r.a)))})}),Ce(n,631),Ce(n,633),t.forEach(function(i){i[1].forEach(function(r){r.iauthor=e.indexOf(r.a);var o={s:Hn(i[0]),e:Hn(i[0])};Ce(n,635,function nBe(t,n){return null==n&&(n=de(36)),n.write_shift(4,t[1].iauthor),Lp(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&&Ce(n,637,function wOe(t,n){var e=!1;return null==n&&(e=!0,n=de(23+4*t.t.length)),n.write_shift(1,1),Rr(t.t,n),n.write_shift(4,1),function bOe(t,n){n||(n=de(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)),Ce(n,636),delete r.iauthor})}),Ce(n,634),Ce(n,629),n.end()}var dBe=["xlsb","xlsm","xlam","biff8","xla"],Fh=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?"":"$")+on(d)+(c?"":"$")+yn(l)}return function(r,o){return n=o,r.replace(t,e)}}(),wF=/(^|[^._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,gk=function(){return function(n,e){return n.replace(wF,function(i,r,o,s,a,c){var l=XP(s)-(o?0:e.c),d=KP(c)-(a?0:e.r);return r+"R"+("$"==a?d+1:0==d?"":"["+d+"]")+"C"+("$"==o?l+1:0==l?"":"["+l+"]")})}}();function vX(t,n){return t.replace(wF,function(e,i,r,o,s,a){return i+("$"==r?r+o:on(XP(o)+n.c))+("$"==s?s+a:yn(KP(a)+n.r))})}function fr(t){t.l+=1}function Wd(t,n){var e=t.read_shift(1==n?1:2);return[16383&e,e>>14&1,e>>15&1]}function yX(t,n,e){var i=2;if(e){if(e.biff>=2&&e.biff<=5)return xX(t);12==e.biff&&(i=4)}var r=t.read_shift(i),o=t.read_shift(i),s=Wd(t,2),a=Wd(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 xX(t){var n=Wd(t,2),e=Wd(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 wX(t,n,e){if(e&&e.biff>=2&&e.biff<=5)return function vBe(t){var n=Wd(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=Wd(t,2);return{r:i,c:r[0],cRel:r[1],rRel:r[2]}}function bBe(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 CX(t){var n=1&t[t.l+1];return t.l+=4,[n,1]}function kX(t){return[t.read_shift(1),t.read_shift(1)]}function QBe(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 tr(t,n){return 1===t.read_shift(n)}(t,1)?"TRUE":"FALSE",12!=n&&(t.l+=7);break;case 37:case 16:e[1]=bl[t[t.l]],t.l+=12==n?4:8;break;case 0:t.l+=8;break;case 1:e[1]=Po(t);break;case 2:e[1]=function Mh(t,n,e){if(e.biff>5)return function Hv(t,n,e){var i=t.read_shift(e&&2==e.biff?1:2);return 0===i?(t.l++,""):function Ah(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 KBe(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?Th:lk)(t,8));return r}function XBe(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]=QBe(t,e.biff);return s}function Qv(t,n,e){return t.l+=2,[bBe(t)]}function CF(t){return t.l+=6,[]}function EX(t){return t.l+=2,[nr(t),1&t.read_shift(2)]}var gVe=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"],TX={1:{n:"PtgExp",f:function HBe(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:Mo},3:{n:"PtgAdd",f:fr},4:{n:"PtgSub",f:fr},5:{n:"PtgMul",f:fr},6:{n:"PtgDiv",f:fr},7:{n:"PtgPower",f:fr},8:{n:"PtgConcat",f:fr},9:{n:"PtgLt",f:fr},10:{n:"PtgLe",f:fr},11:{n:"PtgEq",f:fr},12:{n:"PtgGe",f:fr},13:{n:"PtgGt",f:fr},14:{n:"PtgNe",f:fr},15:{n:"PtgIsect",f:fr},16:{n:"PtgUnion",f:fr},17:{n:"PtgRange",f:fr},18:{n:"PtgUplus",f:fr},19:{n:"PtgUminus",f:fr},20:{n:"PtgPercent",f:fr},21:{n:"PtgParen",f:fr},22:{n:"PtgMissArg",f:fr},23:{n:"PtgStr",f:function qBe(t,n,e){return t.l++,zv(t,0,e)}},26:{n:"PtgSheet",f:function bVe(t,n,e){return t.l+=5,t.l+=2,t.l+=2==e.biff?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function yVe(t,n,e){return t.l+=2==e.biff?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function jBe(t){return t.l++,bl[t.read_shift(1)]}},29:{n:"PtgBool",f:function GBe(t){return t.l++,0!==t.read_shift(1)}},30:{n:"PtgInt",f:function $Be(t){return t.l++,t.read_shift(2)}},31:{n:"PtgNum",f:function WBe(t){return t.l++,Po(t)}},32:{n:"PtgArray",f:function SBe(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 BBe(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[ZVe[r],AX[r],i]}},34:{n:"PtgFuncVar",f:function VBe(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 UBe(t){return[t[t.l+1]>>7,32767&t.read_shift(2)]}(t);return[r,(0===o[0]?AX:YVe)[o[1]]]}},35:{n:"PtgName",f:function YBe(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 OBe(t,n,e){var i=(96&t[t.l])>>5;return t.l+=1,[i,wX(t,0,e)]}},37:{n:"PtgArea",f:function wBe(t,n,e){return[(96&t[t.l++])>>5,yX(t,0,e)]}},38:{n:"PtgMemArea",f:function eVe(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:Mo},40:{n:"PtgMemNoMem",f:Mo},41:{n:"PtgMemFunc",f:function tVe(t,n,e){return[t.read_shift(1)>>>5&3,t.read_shift(e&&2==e.biff?1:2)]}},42:{n:"PtgRefErr",f:function nVe(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 kBe(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 NBe(t,n,e){var i=(96&t[t.l])>>5;t.l+=1;var r=function yBe(t,n,e){var i=e&&e.biff?e.biff:8;if(i>=2&&i<=5)return function xBe(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 TBe(t,n,e){var i=(96&t[t.l++])>>5,r=function _Be(t,n,e){if(e.biff<8)return xX(t);var i=t.read_shift(12==e.biff?4:2),r=t.read_shift(12==e.biff?4:2),o=Wd(t,2),s=Wd(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 xVe(t){return[t.read_shift(1)>>>5&3,t.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function wVe(t){return[t.read_shift(1)>>>5&3,t.read_shift(2)]}},57:{n:"PtgNameX",f:function ZBe(t,n,e){return 5==e.biff?function JBe(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 LBe(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,wX(t,0,e)]}},59:{n:"PtgArea3d",f:function CBe(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,yX(t,0,e)]}},60:{n:"PtgRefErr3d",f:function iVe(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 EBe(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:{}},kVe={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},EVe={1:{n:"PtgElfLel",f:EX},2:{n:"PtgElfRw",f:Qv},3:{n:"PtgElfCol",f:Qv},6:{n:"PtgElfRwV",f:Qv},7:{n:"PtgElfColV",f:Qv},10:{n:"PtgElfRadical",f:Qv},11:{n:"PtgElfRadicalS",f:CF},13:{n:"PtgElfColS",f:CF},15:{n:"PtgElfColSV",f:CF},16:{n:"PtgElfRadicalLel",f:EX},25:{n:"PtgList",f:function _Ve(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:gVe[e>>2&31],idx:i,c:r,C:o}}},29:{n:"PtgSxName",f:function vVe(t){return t.l+=2,[t.read_shift(4)]}},255:{}},TVe={0:{n:"PtgAttrNoop",f:function CVe(t){return t.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function RBe(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 ABe(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 DBe(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 IBe(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 zBe(t,n,e){t.l+=e&&2==e.biff?3:4}},32:{n:"PtgAttrBaxcel",f:CX},33:{n:"PtgAttrBaxcel",f:CX},64:{n:"PtgAttrSpace",f:function PBe(t){return t.read_shift(2),kX(t)}},65:{n:"PtgAttrSpaceSemi",f:function FBe(t){return t.read_shift(2),kX(t)}},128:{n:"PtgAttrIfError",f:function MBe(t){var n=255&t[t.l+1]?1:0;return t.l+=2,[n,t.read_shift(2)]}},255:{}};function Kv(t,n,e,i){if(i.biff<8)return Mo(t,n);for(var r=t.l+n,o=[],s=0;s!==e.length;++s)switch(e[s][0]){case"PtgArray":e[s][1]=XBe(t,0,i),o.push(e[s][1]);break;case"PtgMemArea":e[s][2]=KBe(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(Mo(t,n)),o}function SVe(t){for(var n=[],e=0;e=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function IVe(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 SX(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 DX(t,n,e){var i=SX(t,n,e);return"#REF"==i?i:Lv(i,e)}function No(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=In(" ",t[0][g][1][1]);break;case 1:p=In("\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+DVe[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(IVe(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=Fv(C[1][1],s,r),a.push(Ov(d,o));break;case"PtgRefN":d=e?Fv(C[1][1],e,r):C[1][1],a.push(Ov(d,o));break;case"PtgRef3d":u=C[1][1],d=Fv(C[1][2],s,r),m=DX(i,u,r),a.push(m+"!"+Ov(d,o));break;case"PtgFunc":case"PtgFuncVar":var U=C[1][0],A=C[1][1];U||(U=0);var T=0==(U&=127)?[]:a.slice(-U);a.length-=U,"User"===A&&(A=T.shift()),a.push(A+"("+T.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=aK(C[1][1],e?{s:e}:s,r),a.push(QP(f,r));break;case"PtgArea":f=aK(C[1][1],s,r),a.push(QP(f,r));break;case"PtgArea3d":f=C[1][2],m=DX(i,u=C[1][1],r),a.push(m+"!"+QP(f,r));break;case"PtgAttrSum":a.push("SUM("+a.pop()+")");break;case"PtgName":var B=(i.names||[])[(h=C[1][2])-1]||(i[0]||[])[h],V=B?B.Name:"SH33TJSNAME"+String(h);V&&"_xlfn."==V.slice(0,6)&&!r.xlfn&&(V=V.slice(6)),a.push(V);break;case"PtgNameX":var ne,K=C[1][1];if(h=C[1][2],!(r.biff<=5)){var q="";if(14849==((i[K]||[])[0]||[])[0]||(1025==((i[K]||[])[0]||[])[0]?i[K][h]&&i[K][h].itab>0&&(q=i.SheetNames[i[K][h].itab-1]+"!"):q=i.SheetNames[h-1]+"!"),i[K]&&i[K][h])q+=i[K][h].Name;else if(i[0]&&i[0][h])q+=i[0][h].Name;else{var Ee=(SX(i,K,r)||"").split(";;");Ee[h-1]?q=Ee[h-1]:q+="SH33TJSERRX"}a.push(q);break}K<0&&(K=-K),i[K]&&(ne=i[K][h]),ne||(ne={Name:"SH33TJSERRY"}),a.push(ne.Name);break;case"PtgParen":var Me="(",ve=")";if(g>=0){switch(p="",t[0][g][1][0]){case 2:Me=In(" ",t[0][g][1][1])+Me;break;case 3:Me=In("\r",t[0][g][1][1])+Me;break;case 4:ve=In(" ",t[0][g][1][1])+ve;break;case 5:ve=In("\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(Me+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[cn(d={c:C[1][1],r:C[1][0]})]){var Z=i.sharedf[cn(d)];a.push(No(Z,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(No(l[1],0,ae,i,r)),ye=!0;break}ye||a.push(C[1])}break;case"PtgArray":a.push("{"+SVe(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=In(" ",C[1][1]);break;case 5:Ye=!1;case 1:p=In("\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 _k(t,n,e){var i=t.read_shift(4),r=function Xv(t,n,e){for(var r,o,i=t.l+n,s=[];i!=t.l;)n=i-t.l,r=TX[o=t[t.l]]||TX[kVe[o]],(24===o||25===o)&&(r=(24===o?EVe:TVe)[t[t.l+1]]),r&&r.f?s.push([r.n,r.f(t,n,e)]):Mo(t,n);return s}(t,i,e),o=t.read_shift(4);return[r,o>0?Kv(t,o,r,e):null]}var LVe=_k,vk=_k,BVe=_k,VVe=_k;function IX(t){if((0|t)==t&&t=0){var n=de(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=de(17);return e.write_shift(4,11),e.write_shift(1,31),e.write_shift(8,t),e.write_shift(4,0),e}var XVe=function KVe(t,n){if("number"==typeof t)return IX(t);if("boolean"==typeof t)return function zVe(t){var n=de(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 UVe(t){var n=de(10);return n.write_shift(4,2),n.write_shift(1,28),n.write_shift(1,t),n.write_shift(4,0),n}(+oF[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 jVe(t){var n=Hn(t),e=de(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 WVe(t){var n=t.split(":"),e=n[0],i=de(23);i.write_shift(4,15);var r=Hn(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=Hn(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 QVe(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=Mr(t),o=de(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 $Ve(t,n){var e=t.lastIndexOf("!"),i=t.slice(0,e),r=Hn(t=t.slice(e+1));"'"==i.charAt(0)&&(i=i.slice(1,-1).replace(/''/g,"'"));var o=de(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 qVe(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=de(27);o.write_shift(4,19);var s=r[0],a=Hn(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=Hn(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 GVe(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=de(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 HVe(t){var n=de(7);n.write_shift(4,3+2*t.length),n.write_shift(1,23),n.write_shift(2,t.length);var e=de(2*t.length);e.write_shift(2*t.length,t,"utf16le");var i=de(4);return i.write_shift(4,0),lr([n,e,i])}(t);if(/^[+-]\d+$/.test(t))return IX(parseInt(t,10));throw"Formula |"+t+"| not supported for XLSB"},YVe={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"},AX={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"},ZVe={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 JVe(t){return("of:="+t.replace(wF,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")}function RX(t){return t.replace(/!/,".")}var Zv=typeof Map<"u";function TF(t,n,e){var i=0,r=t.length;if(e){if(Zv?e.has(n):Object.prototype.hasOwnProperty.call(e,n))for(var o=Zv?e.get(n):e[n];i-1?(e.width=fk(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 Oh(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 qd(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]){Hd(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 e5e(t,n,e){if(t&&t["!ref"]){var i=xn(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=bl[t.v];break;case"d":i&&i.cellDates?r=Mi(t.v,-1).toISOString():((t=Zn(t)).t="n",r=""+(t.v=dr(Mi(t.v)))),typeof t.z>"u"&&(t.z=Tt[14]);break;default:r=t.v}var a="z"==t.t||null==t.v?"":so("v",tn(r)),c={r:n},l=qd(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=so("v",""+TF(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=Le("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),Le("c",a,c)}function M5e(t,n,e,i){var s,r=[er,Le("worksheet",null,{xmlns:xh[0],"xmlns:r":Ir.r})],a="",c=e.Sheets[e.SheetNames[t]];null==c&&(c={});var l=c["!ref"]||"A1",d=xn(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 m5e(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=yc(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||"")+Le("outlinePr",null,l)}!o&&!a||(r[r.length]=Le("sheetPr",a,s))})(c,e,t,n,r),r[r.length]=Le("dimension",null,{ref:l}),r[r.length]=function S5e(t,n,e,i){var r={workbookViewId:"0"};return(((i||{}).Workbook||{}).Views||[])[0]&&(r.rightToLeft=i.Workbook.Views[0].RTL?"1":"0"),Le("sheetViews",Le("sheetView",null,r),{})}(0,0,0,e),n.sheetFormat&&(r[r.length]=Le("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 w5e(t,n){for(var i,e=[""],r=0;r!=n.length;++r)(i=n[r])&&(e[e.length]=Le("col",null,bk(r,i)));return e[e.length]="",e.join("")}(0,c["!cols"])),r[s=r.length]="",c["!links"]=[],null!=c["!ref"]&&(a=function A5e(t,n,e,i){var c,p,r=[],o=[],s=xn(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]=on(h);for(u=s.s.r;u<=s.e.r;++u){for(o=[],l=yn(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=D5e(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=Wv(p.hpx):p.hpt&&(v=p.hpt),v>-1&&(g.ht=v,g.customHeight=1),p.level&&(g.outlineLevel=p.level)),r[r.length]=Le("row",o.join(""),g))}if(f)for(;u-1&&(g.ht=v,g.customHeight=1),p.level&&(g.outlineLevel=p.level),r[r.length]=Le("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 _5e(t){var n={sheet:1};return p5e.forEach(function(e){null!=t[e]&&t[e]&&(n[e]="1")}),g5e.forEach(function(e){null!=t[e]&&!t[e]&&(n[e]="0")}),t.password&&(n.password=_F(t.password).toString(16).toUpperCase()),Le("sheetProtection",null,n)}(c["!protect"])),null!=c["!autofilter"]&&(r[r.length]=function k5e(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=Mr(r);s.s.r==s.e.r&&(s.e.r=Mr(n["!ref"]).e.r,r=Qt(s));for(var a=0;a0&&(r[r.length]=function h5e(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=ti(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]=Le("hyperlink",null,f))}),r[r.length]=""),delete c["!links"],null!=c["!margins"]&&(r[r.length]=function y5e(t){return Oh(t),Le("pageMargins",null,t)}(c["!margins"])),(!n||n.ignoreEC||null==n.ignoreEC)&&(r[r.length]=so("ignoredErrors",Le("ignoredError",null,{numberStoredAsText:1,sqref:l}))),u.length>0&&(m=ti(i,-1,"../drawings/drawing"+(t+1)+".xml",nn.DRAW),r[r.length]=Le("drawing",null,{"r:id":"rId"+m}),c["!drawing"]=u),c["!comments"].length>0&&(m=ti(i,-1,"../drawings/vmlDrawing"+(t+1)+".vml",nn.VML),r[r.length]=Le("legacyDrawing",null,{"r:id":"rId"+m}),c["!legacy"]=m),r.length>1&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}function F5e(t,n,e,i){var r=function P5e(t,n,e){var i=de(145),r=(e["!rows"]||[])[t]||{};i.write_shift(4,t),i.write_shift(4,0);var o=320;r.hpx?o=20*Wv(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])&&Ce(t,0,r)}var O5e=Th,N5e=Lp;var v8e=Th,b8e=Lp,NX=["left","right","top","bottom","header","footer"];function N8e(t,n,e,i,r,o,s){var a={r:e,c:i};if(n.c&&o["!comments"].push([cn(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=Zn(n)).z=n.z||Tt[14],n.v=dr(Mi(n.v)),n.t="n";break;case"n":case"e":c=""+n.v;break;default:c=n.v}switch(a.s=qd(r.cellXfs,n,r),n.l&&o["!links"].push([cn(a),n.l]),n.t){case"s":case"str":return r.bookSST?(c=TF(r.Strings,null==n.v?"":String(n.v),r.revStrings),a.t="s",a.v=c,s?Ce(t,18,function t8e(t,n,e){return null==e&&(e=de(8)),Eh(n,e),e.write_shift(4,n.v),e}(0,a)):Ce(t,7,function J5e(t,n,e){return null==e&&(e=de(12)),Ch(n,e),e.write_shift(4,n.v),e}(0,a))):(a.t="str",s?Ce(t,17,function f8e(t,n,e){var i=null==t.v?"":String(t.v);return null==e&&(e=de(8+4*i.length)),Eh(n,e),Rr(i,e),e.length>e.l?e.slice(0,e.l):e}(n,a)):Ce(t,6,function u8e(t,n,e){var i=null==t.v?"":String(t.v);return null==e&&(e=de(12+4*t.v.length)),Ch(n,e),Rr(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?Ce(t,13,function c8e(t,n,e){return null==e&&(e=de(8)),Eh(n,e),uK(t.v,e),e}(n,a)):Ce(t,2,function s8e(t,n,e){return null==e&&(e=de(12)),Ch(n,e),uK(t.v,e),e}(n,a)):s?Ce(t,16,function r8e(t,n,e){return null==e&&(e=de(12)),Eh(n,e),Sh(t.v,e),e}(n,a)):Ce(t,5,function i8e(t,n,e){return null==e&&(e=de(16)),Ch(n,e),Sh(t.v,e),e}(n,a)),!0;case"b":return a.t="b",s?Ce(t,15,function q5e(t,n,e){return null==e&&(e=de(5)),Eh(n,e),e.write_shift(1,t.v?1:0),e}(n,a)):Ce(t,4,function G5e(t,n,e){return null==e&&(e=de(9)),Ch(n,e),e.write_shift(1,t.v?1:0),e}(n,a)),!0;case"e":return a.t="e",s?Ce(t,14,function Y5e(t,n,e){return null==e&&(e=de(8)),Eh(n,e),e.write_shift(1,t.v),e.write_shift(2,0),e.write_shift(1,0),e}(n,a)):Ce(t,3,function K5e(t,n,e){return null==e&&(e=de(9)),Ch(n,e),e.write_shift(1,t.v),e}(n,a)),!0}return s?Ce(t,12,function j5e(t,n,e){return null==e&&(e=de(4)),Eh(n,e)}(0,a)):Ce(t,1,function z5e(t,n,e){return null==e&&(e=de(8)),Ch(n,e)}(0,a)),!0}function W8e(t,n,e,i){var r=ms(),o=e.SheetNames[t],s=e.Sheets[o]||{},a=o;try{e&&e.Workbook&&(a=e.Workbook.Sheets[t].CodeName||a)}catch{}var c=xn(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"]=[],Ce(r,129),(e.vbaraw||s["!outline"])&&Ce(r,147,function V5e(t,n,e){null==e&&(e=de(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 nk({auto:1},e),e.write_shift(-4,-1),e.write_shift(-4,-1),dK(t,e),e.slice(0,e.l)}(a,s["!outline"])),Ce(r,148,N5e(c)),function $8e(t,n,e){Ce(t,133),Ce(t,137,function A8e(t,n,e){null==e&&(e=de(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)),Ce(t,138),Ce(t,134)}(r,0,e.Workbook),function V8e(t,n){!n||!n["!cols"]||(Ce(t,390),n["!cols"].forEach(function(e,i){e&&Ce(t,60,function T8e(t,n,e){null==e&&(e=de(18));var i=bk(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))}),Ce(t,391))}(r,s),function L8e(t,n,e,i){var r=xn(n["!ref"]||"A1"),s="",a=[];Ce(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=yn(d),F5e(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]=on(h));var f=c?(n["!data"][d]||[])[h]:n[a[h]+s];u=!!f&&N8e(t,f,d,h,i,n,u)}}Ce(t,146)}(r,s,0,n),function G8e(t,n){n["!protect"]&&Ce(t,535,function R8e(t,n){return null==n&&(n=de(66)),n.write_shift(2,t.password?_F(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 j8e(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=Mr(o);a.s.r==a.e.r&&(a.e.r=Mr(n["!ref"]).e.r,o=Qt(a));for(var c=0;c0){var r=ti(i,-1,"../drawings/vmlDrawing"+(e+1)+".vml",nn.VML);Ce(t,551,eF("rId"+r)),n["!legacy"]=r}}(r,s,t,i),Ce(r,130),r.end()}var DF=[["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"]],n6e=":][*?/\\".split("");function UX(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'");n6e.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 c6e(t,n){return n||(n=de(127)),n.write_shift(4,t.Hidden),n.write_shift(4,t.iTabID),eF(t.strRelID,n),Rr(t.name.slice(0,31),n),n.length>n.l?n.slice(0,n.l):n}function w6e(t,n){var e=ms();return Ce(e,131),Ce(e,128,function g6e(t,n){n||(n=de(127));for(var e=0;4!=e;++e)n.write_shift(4,0);return Rr("SheetJS",n),Rr(wv.version,n),Rr(wv.version,n),Rr("7262",n),n.length>n.l?n.slice(0,n.l):n}()),Ce(e,153,function d6e(t,n){n||(n=de(72));var e=0;return t&&(t.date1904&&(e|=1),t.filterPrivacy&&(e|=8)),n.write_shift(4,e),n.write_shift(4,0),dK(t&&t.CodeName||"ThisWorkbook",n),n.slice(0,n.l)}(t.Workbook&&t.Workbook.WBProps||null)),function v6e(t,n){if(n.Workbook&&n.Workbook.Sheets){for(var e=n.Workbook.Sheets,i=0,r=-1,o=-1;ir||(Ce(t,135),Ce(t,158,function _6e(t,n){return n||(n=de(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)),Ce(t,136))}}(e,t),function p6e(t,n){Ce(t,143);for(var e=0;e!=n.SheetNames.length;++e)Ce(t,156,c6e({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]}));Ce(t,144)}(e,t),function x6e(t,n){Ce(t,353),Ce(t,357),Ce(t,362,function y6e(t){var n=t.SheetNames.length,e=de(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,Rr(r),XVe(t.Ref,n)];if(t.Comment)o.push(Bv(t.Comment));else{var s=de(4);s.write_shift(4,4294967295),o.push(s)}return lr(o)}(e,n))}catch{console.error("Could not serialize defined name "+JSON.stringify(e))}})}(e,t),Ce(e,132),e.end()}function $X(t){return Le("NamedRange",null,{"ss:Name":"_xlnm."==t.Name.slice(0,6)?t.Name.slice(6):t.Name,"ss:RefersTo":"="+gk(t.Ref,{r:0,c:0})})}function K6e(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(gk(t.f,s))),t.F&&t.F.slice(0,n.length)==n){var c=Hn(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=bl[t.v];break;case"d":u="DateTime",h=new Date(t.v).toISOString(),null==t.z&&(t.z=t.z||Tt[14]);break;case"s":u="String",h=function ZFe(t){return(t+"").replace(VP,function(e){return BP[e]}).replace(UQ,function(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"})}(t.v||"")}var f=qd(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 Q6e(t){return t.map(function(n){var e=function JFe(t){return t.replace(/(\r\n|[\r\n])/g," ")}(n.t||""),i=Le("ss:Data",e,{xmlns:"http://www.w3.org/TR/REC-html40"});return Le("Comment",i,{"ss:Author":n.a})}).join("")}(t.c)),Le("Cell",g,a)}function X6e(t,n){var e='"}function Z6e(t,n,e){var i=[],o=e.Sheets[e.SheetNames[t]],s=o?function W6e(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 Y6e(t,n,e,i){if(!t["!ref"])return"";var r=xn(t["!ref"]),o=t["!merges"]||[],s=0,a=[];t["!cols"]&&t["!cols"].forEach(function(p,v){Gd(p);var x=!!p.width,C=bk(v,p),D={"ss:Index":v+1};x&&(D["ss:Width"]=$v(C.width)),p.hidden&&(D["ss:Hidden"]="1"),a.push(Le("Column",null,D))});for(var c=null!=t["!data"],l=r.s.r;l<=r.e.r;++l){for(var d=[X6e(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 q6e(t,n,e,i){if(!t)return"";var r=[];if(t["!margins"]&&(r.push(""),t["!margins"].header&&r.push(Le("Header",null,{"x:Margin":t["!margins"].header})),t["!margins"].footer&&r.push(Le("Footer",null,{"x:Margin":t["!margins"].footer})),r.push(Le("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(Le("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(so("ProtectContents","True")),t["!protect"].objects&&r.push(so("ProtectObjects","True")),t["!protect"].scenarios&&r.push(so("ProtectScenarios","True")),null==t["!protect"].selectLockedCells||t["!protect"].selectLockedCells?null!=t["!protect"].selectUnlockedCells&&!t["!protect"].selectUnlockedCells&&r.push(so("EnableSelection","UnlockedCells")):r.push(so("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?"":Le("WorksheetOptions",r.join(""),{xmlns:zs.x})}(o,0,t,e)),o["!autofilter"]&&i.push(''),i.join("")}function J6e(t,n){n||(n={}),t.SSF||(t.SSF=Zn(Tt)),t.SSF&&(Rp(),Dv(t.SSF),n.revssf=QC(t.SSF),n.revssf[t.SSF[65535]]=0,n.ssf=t.SSF,n.cellXfs=[],qd(n.cellXfs,{},{revssf:{General:0}}));var e=[];e.push(function H6e(t,n){var e=[];return t.Props&&e.push(function XOe(t,n){var e=[];return Ai(dF).map(function(i){for(var r=0;r'+r.join("")+""}(t.Props,t.Custprops)),e.join("")}(t,n)),e.push(function j6e(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(Le("NumberFormat",null,{"ss:Format":tn(Tt[i.numFmtId])}));var s={"ss:ID":"s"+(21+r)};e.push(Le("Style",o.join(""),s))}),Le("Styles",e.join(""))}(0,n),e[3]=function G6e(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 TOe(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=Dh[r];l&&(n.rgb=jv(l));break;case 2:n.rgb=jv([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=Ro(t),i}},44:{f:function qLe(t,n){return[t.read_shift(2),Ro(t)]}},45:{f:ZLe},46:{f:e3e},47:{f:function JLe(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 _Oe(t){return t.read_shift(4,"i")}},50:{},51:{f:function F3e(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 iX(t,n,e){if(!e.cellStyles)return Mo(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 l8e(t){return[ia(t),YP(t),"is"]}},63:{f:function $3e(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=cn(e);var i=t.read_shift(1);return 2&i&&(n.l="1"),8&i&&(n.a="1"),n}},64:{f:function P8e(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Mo,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function I8e(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 B5e(t,n){var e={},i=t[t.l];return++t.l,e.above=!(64&i),e.left=!(128&i),t.l+=18,e.name=COe(t,n-19),e}},148:{f:O5e,p:16},151:{f:function C8e(){}},152:{},153:{f:function l6e(t,n){var e={},i=t.read_shift(4);e.defaultThemeVersion=t.read_shift(4);var r=n>8?Ro(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 a6e(t,n){var e={};return e.Hidden=t.read_shift(4),e.iTabID=t.read_shift(4),e.strRelID=JP(t,n-8),e.name=Ro(t),e}},157:{},158:{},159:{T:1,f:function sLe(t){return[t.read_shift(4),t.read_shift(4)]}},160:{T:-1},161:{T:1,f:Th},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:v8e},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 R3e(t,n){return{flags:t.read_shift(4),version:t.read_shift(4),name:Ro(t)}}},336:{T:-1},337:{f:function L3e(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:JP},357:{},358:{},359:{},360:{T:1},361:{},362:{f:function eX(t,n,e){if(e.biff<8||!(e.biff>8)&&n==t[t.l]+(3==t[t.l+1]?1:0)+1)return function tX(t,n,e){3==t[t.l+1]&&t[t.l]++;var i=zv(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(bNe(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 k8e(t,n,e){var i=t.l+n,r=hK(t),o=t.read_shift(1),s=[r];if(s[2]=o,e.cellFormula){var a=LVe(t,i-t.l,e);s[1]=a}else t.l=i;return s}},427:{f:function E8e(t,n,e){var i=t.l+n,o=[Th(t,16)];if(e.cellFormula){var s=VVe(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 S8e(t){var n={};return NX.forEach(function(e){n[e]=Po(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 L5e(){}},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 x8e(t,n){var e=t.l+n,i=Th(t,16),r=ZP(t),o=Ro(t),s=Ro(t),a=Ro(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:JP},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:iBe},633:{T:1},634:{T:-1},635:{T:1,f:function tBe(t){var n={};n.iauthor=t.read_shift(4);var e=Th(t,16);return n.rfx=e.s,n.ref=cn(e.s),t.l+=16,n}},636:{T:-1},637:{f:xOe},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 X8e(t,n){return t.l+=10,{name:Ro(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 F8e(){}},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 He(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&&qP(e)&&t.push(e)}}function nb(t,n,e){return t||(t=de(7)),t.write_shift(2,n),t.write_shift(2,e),t.write_shift(2,0),t.write_shift(1,0),t}function dUe(t,n,e,i){if(null!=n.v)switch(n.t){case"d":case"n":var r="d"==n.t?dr(Mi(n.v)):n.v;return void(r==(0|r)&&r>=0&&r<65536?He(t,2,function H4e(t,n,e){var i=de(9);return nb(i,t,n),i.write_shift(2,e),i}(e,i,r)):He(t,3,function U4e(t,n,e){var i=de(15);return nb(i,t,n),i.write_shift(8,e,"f"),i}(e,i,r)));case"b":case"e":return void He(t,5,function cUe(t,n,e,i){var r=de(9);return nb(r,t,n),BK(e,i||"b",r),r}(e,i,n.v,n.t));case"s":case"str":return void He(t,4,function lUe(t,n,e){var i=de(8+2*e.length);return nb(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)}He(i,2057,mF(0,16,n)),He(i,13,oa(1)),He(i,12,oa(100)),He(i,15,Xo(!0)),He(i,17,Xo(!1)),He(i,16,Sh(.001)),He(i,95,Xo(!0)),He(i,42,Xo(!1)),He(i,43,Xo(!1)),He(i,130,oa(1)),He(i,128,function o4e(t){var n=de(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])),He(i,131,Xo(!1)),He(i,132,Xo(!1)),l&&function vUe(t,n){if(n){var e=0;n.forEach(function(i,r){++e<=256&&i&&He(t,125,function A4e(t,n){var e=de(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}(bk(r,i),r))})}}(i,o["!cols"]),He(i,512,function ZNe(t,n){var e=8!=n.biff&&n.biff?2:4,i=de(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]=on(v);for(var x=f.s.r;x<=f.e.r;++x)for(c&&(p=o["!data"][x]||[]),u=yn(x),v=f.s.c;v<=f.e.c;++v){d=h[v]+u;var C=c?p[v]:o[d];C&&(bUe(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&&He(i,574,function zNe(t){var n=de(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&&He(i,229,function g4e(t){var n=de(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 wUe(t,n){var e=n||{},i=[];t&&!t.SSF&&(t.SSF=Zn(Tt)),t&&t.SSF&&(Rp(),Dv(t.SSF),e.revssf=QC(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,NF(e),e.cellXfs=[],qd(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]=on(d);for(var u=o.s.r;u<=o.e.r;++u)for(r&&(l=n["!data"][u]||[]),a=yn(u),d=o.s.c;d<=o.e.c;++d){var h=r?l[d]:n[c[d]+a];h&&dUe(t,h,u,d)}}(i,t.Sheets[t.SheetNames[r]],0,e),He(i,10),i.end()}(t,n)}throw new Error("invalid type "+o.bookType+" for BIFF")}function qX(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(Le("td",m,s))}}return""+o.join("")+""}var QX='SheetJS Table Export',KX="";function YX(t,n){var e=n||{},r=null!=e.footer?e.footer:KX,o=[null!=e.header?e.header:QX],s=Mr(t["!ref"]);o.push(function XX(t,n,e){return[].join("")+""}(0,0,e));for(var a=s.s.r;a<=s.e.r;++a)o.push(qX(t,s,a,e));return o.push(""+r),o.join("")}var SUe=function(){var t=["",'',"",'',"",'',"",""].join(""),n=""+t+"";return function(){return er+n}}();function DUe(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+=Le("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+=Le("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+=Le("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?Le("number:"+e+"-style",i,r):(console.error("Could not generate ODS number format for |"+t+"|"),"")}function oY(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=RX(r.Ref);return" "+Le("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 sY=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=Mr(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=cn({r:u,c:h}),T=p?(o["!data"][u]||[])[h]:o[A];if(T&&T.f&&(D["table:formula"]=tn(JVe(T.f)),T.F&&T.F.slice(0,A.length)==A)){var B=Mr(T.F);D["table:number-matrix-columns-spanned"]=B.e.c-B.s.c+1,D["table:number-matrix-rows-spanned"]=B.e.r-B.s.r+1}if(T){switch(T.t){case"b":U=T.v?"TRUE":"FALSE",D["office:value-type"]="boolean",D["office:boolean-value"]=T.v?"true":"false";break;case"n":U=T.w||String(T.v||0),D["office:value-type"]="float",D["office:value"]=T.v||0;break;case"s":case"str":U=null==T.v?"":T.v,D["office:value-type"]="string";break;case"d":U=T.w||Mi(T.v).toISOString(),D["office:value-type"]="date",D["office:date-value"]=Mi(T.v).toISOString(),D["table:style-name"]="ce1";break;default:d.push(n);continue}var V=t(U);if(T.l&&T.l.Target){var K=T.l.Target;"#"!=(K="#"==K.charAt(0)?"#"+RX(K.slice(1)):K).charAt(0)&&!K.match(/^\w+:/)&&(K="../"+K),V=Le("text:a",V,{"xlink:href":K.replace(/&/g,"&")})}l[T.z]&&(D["table:style-name"]="ce"+l[T.z].slice(1)),d.push(" "+Le("table:table-cell",Le("text:p",V,{}),D)+"\n")}else d.push(n)}}d.push(" \n")}return(s.Workbook||{}).Names&&d.push(oY(s.Workbook.Names,0,a)),d.push(" \n"),d.join("")};return function(s,a){var c=[er],l=Rv({"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=Rv({"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(bK().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=Mr(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[cn({r:m,c:g})];if(p&&p.z&&"general"!=p.z.toLowerCase()&&!l[p.z]){var v=DUe(p.z,"N"+d);v&&(l[p.z]="N"+d,++d,o.push(v+"\n"))}}}),o.push(' \n'),Ai(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(oY(s.Workbook.Names,0,-1)),c.push(" \n"),c.push(" \n"),c.push("fods"==a.bookType?"":""),c.join("")}}();function aY(t,n){if("fods"==n.bookType)return sY(t,n);var e=LP(),i="",r=[],o=[];return en(e,i="mimetype","application/vnd.oasis.opendocument.spreadsheet"),en(e,i="content.xml",sY(t,n)),r.push([i,"text/xml"]),o.push([i,"ContentFile"]),en(e,i="styles.xml",SUe(t,n)),r.push([i,"text/xml"]),o.push([i,"StylesFile"]),en(e,i="meta.xml",er+bK()),r.push([i,"text/xml"]),o.push([i,"MetadataFile"]),en(e,i="manifest.rdf",function $Oe(t){var n=[er];n.push('\n');for(var e=0;e!=t.length;++e)n.push(vK(t[e][0],t[e][1])),n.push(jOe("",t[e][0]));return n.push(vK("","Document","pkg")),n.push(""),n.join("")}(o)),r.push([i,"application/rdf+xml"]),en(e,i="META-INF/manifest.xml",function HOe(t){var n=[er];n.push('\n'),n.push(' \n');for(var e=0;e\n');return n.push(""),n.join("")}(r)),e}var mr=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 xl(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function qr(t){return typeof TextDecoder<"u"?(new TextDecoder).decode(t):ei(vc(t))}function Pa(t){return typeof TextEncoder<"u"?(new TextEncoder).encode(t):Qo(yc(t))}function Qd(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 _t(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[mr](0,e)}function cY(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[mr](e.l,a),e.l=a;break;case 1:s=t[mr](a,a+8),e.l=a+8;break;case 2:var c=ib(t,e);s=t[mr](e.l,e.l+c),e.l+=c;break;case 5:s=t[mr](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(_t(8*i+r.type)),2==r.type&&n.push(_t(r.data.length)),n.push(r.data))})}),Qd(n)}function Nh(t,n){return t?.map(function(e){return n(e.data)})||[]}function rb(t){for(var n,e=[],i={l:0};i.l>>0>0),e.push(s)}return e}function ob(t){var n=[];return t.forEach(function(e){var i=[[],[{data:_t(e.id),type:0}],[]];null!=e.merge&&(i[3]=[{data:_t(+!!e.merge),type:0}]);var r=[];e.messages.forEach(function(s){r.push(s.data),s.meta[3]=[{type:0,data:_t(s.data.length)}],i[2].push({data:kt(s.meta),type:2})});var o=kt(i);n.push(_t(o.length)),n.push(o),r.forEach(function(s){return n.push(s)})}),Qd(n)}function MUe(t,n){if(0!=t)throw new Error("Unexpected Snappy chunk type ".concat(t));for(var e={l:0},i=ib(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][mr](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][mr](0,d))}r.length>25&&(r=[Qd(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[mr](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[mr](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 Qd(n)}function xk(t,n){var e=new Uint8Array(32),i=xl(e),r=12,o=0;switch(e[0]=5,t.t){case"n":e[1]=2,function AUe(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[mr](0,r)}function wk(t,n){var e=new Uint8Array(32),i=xl(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[mr](0,r)}function ni(t){return wn(et(t)[1][0].data)}function wl(t){return kt([[],[{type:0,data:_t(t)}]])}function Kd(t,n){var e,i=null!=(e=t.messages[0].meta[5])&&e[0]?cY(t.messages[0].meta[5][0].data):[];-1==i.indexOf(n)&&(i.push(n),t.messages[0].meta[5]=[{type:2,data:lY(i)}])}function Cl(t,n){var e,i=null!=(e=t.messages[0].meta[5])&&e[0]?cY(t.messages[0].meta[5][0].data):[];t.messages[0].meta[5]=[{type:2,data:lY(i.filter(function(r){return r!=n}))}]}function HUe(t,n,e){var i,r,o=[[],[{type:0,data:_t(0)}],[{type:0,data:_t(0)}],[{type:2,data:new Uint8Array([])}],[{type:2,data:new Uint8Array(Array.from({length:510},function(){return 255}))}],[{type:0,data:_t(5)}],[{type:2,data:new Uint8Array([])}],[{type:2,data:new Uint8Array(Array.from({length:510},function(){return 255}))}],[{type:0,data:_t(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=xl(o[7][0].data),d=0,u=[],h=xl(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:""};NF(n=n||{});var o=LP(),s="",a=0;if(n.cellXfs=[],qd(n.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),en(o,s="docProps/core.xml",xK(t.Props,n)),r.coreprops.push(s),ti(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",EK(t.Custprops)),r.custprops.push(s),ti(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,M5e(a-1,n,t,u)),r.sheets.push(s),ti(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",Z3e(m,d,n)),r.threadedcomments.push(p),ti(u,-1,"../threadedComments/threadedComment"+a+".xml",nn.TCMNT)),en(o,p="xl/comments"+a+"."+e,X3e(m)),r.comments.push(p),ti(u,-1,"../comments"+a+"."+e,nn.CMNT),g=!0}h["!legacy"]&&g&&en(o,"xl/drawings/vmlDrawing"+a+".vml",gX(a,h["!comments"])),delete h["!comments"],delete h["!legacy"]}u["!id"].rId1&&en(o,Vv(s),Bp(u))}return null!=n.Strings&&n.Strings.length>0&&(en(o,s="xl/sharedStrings."+e,function oLe(t,n){if(!n.bookSST)return"";var e=[er];e[e.length]=Le("sst",null,{xmlns:xh[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),ti(n.wbrels,-1,"sharedStrings."+e,nn.SST)),en(o,s="xl/workbook."+e,function s6e(t){var n=[er];n[n.length]=Le("workbook",null,{xmlns:xh[0],"xmlns:r":Ir.r});var e=t.Workbook&&(t.Workbook.Names||[]).length>0,i={codeName:"ThisWorkbook"};t.Workbook&&t.Workbook.WBProps&&(DF.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]=Le("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]=Le("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]=Le("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),ti(n.rels,1,s,nn.WB),en(o,s="xl/theme/theme1.xml",xF(t.Themes,n)),r.themes.push(s),ti(n.wbrels,-1,"theme/theme1.xml",nn.THEME),en(o,s="xl/styles."+e,function WLe(t,n){var i,e=[er,Le("styleSheet",null,{xmlns:xh[0],"xmlns:vt":Ir.vt})];return t.SSF&&null!=(i=function HLe(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]=Le("numFmt",null,{numFmtId:i,formatCode:tn(t[i])}))}),1===n.length?"":(n[n.length]="",n[0]=Le("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 $Le(t){var n=[];return n[n.length]=Le("cellXfs",null),t.forEach(function(e){n[n.length]=Le("xf",null,e)}),n[n.length]="",2===n.length?"":(n[0]=Le("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),ti(n.wbrels,-1,"styles."+e,nn.STY),t.vbaraw&&i&&(en(o,s="xl/vbaProject.bin",t.vbaraw),r.vba.push(s),ti(n.wbrels,-1,"vbaProject.bin",nn.VBA)),en(o,s="xl/metadata."+e,function H3e(){var t=[er];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),ti(n.wbrels,-1,"metadata."+e,nn.XLMETA),d.length>1&&(en(o,s="xl/persons/person.xml",function eBe(t){var n=[er,Le("personList",null,{xmlns:Ir.TCMNT,"xmlns:x":xh[0]}).replace(/[\/]>/,">")];return t.forEach(function(e,i){n.push(Le("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),ti(n.wbrels,-1,"persons/person.xml",nn.PEOPLE)),en(o,"[Content_Types].xml",_K(r,n)),en(o,"_rels/.rels",Bp(n.rels)),en(o,"xl/_rels/workbook.xml.rels",Bp(n.wbrels)),delete n.revssf,delete n.ssf,o}function vY(t,n){switch(n.type){case"base64":case"binary":break;case"buffer":case"array":n.type="";break;case"file":return Iv(n.file,Ct.write(t,{type:rn?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+n.bookType+"' files");default:throw new Error("Unrecognized type "+n.type)}return Ct.write(t,n)}function r9e(t,n){switch(n.bookType){case"ods":return aY(t,n);case"numbers":return function $Ue(t,n){if(!n||!n.numbers)throw new Error("Must pass a `numbers` option -- check the README");var e=Ct.read(n.numbers,{type:"base64"}),i=function jUe(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]&&rb(sb(r.content)).forEach(function(s){e.push(s.id),n[s.id]={deps:[],location:o,type:wn(s.messages[0].meta[1][0].data)}})}),t.FileIndex.forEach(function(i){i.name.match(/\.iwa/)&&0==i.content[0]&&rb(sb(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(wn(a.data))})})})})}),n}(e),r=kc(e,i,1);if(null==r)throw"Could not find message ".concat(1," in Numbers template");var o=Nh(et(r.messages[0].data)[1],ni);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 GUe(t,n,e){var i=-1,r=-1,o={};Pr(t,n,1,function(l,d){var u=et(l.messages[0].data);i=ni(et(l.messages[0].data)[1][0].data),r=Xd({deps:[1],location:n[i].location,type:2},n),o[i]=r,Kd(l,r),u[1].push({type:2,data:wl(r)});var h=kc(t,n,i);h.id=r,n[1].location==n[r].location?d.push(h):Pr(t,n,r,function(f,m){return m.push(h)}),l.messages[0].data=kt(u)});var s=-1;Pr(t,n,r,function(l,d){for(var u=et(l.messages[0].data),h=3;h<=69;++h)delete u[h];var f=Nh(u[2],ni);f.forEach(function(p){return Cl(l,p)}),s=Xd({deps:[r],location:n[f[0]].location,type:n[f[0]].type},n),Kd(l,s),o[f[0]]=s,u[2]=[{type:2,data:wl(s)}];var m=kc(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$/,""),Pr(t,n,2,function(p){var v=et(p.messages[0].data),x=v[3].findIndex(function(D){var U,A,T=et(D.data);return null!=(U=T[3])&&U[0]?qr(T[3][0].data)==g:!(null==(A=T[2])||!A[0]||qr(T[2][0].data)!=g)}),C=et(v[3][x].data);C[6]||(C[6]=[]),C[6].push({type:2,data:kt([[],[{type:0,data:_t(s)}]])}),v[3][x].data=kt(C),p.messages[0].data=kt(v)}),Pr(t,n,s,function(p,v){return v.push(m)})}l.messages[0].data=kt(u)});var a=-1;Pr(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=ni(h[2][0].data);h[2][0].data=wl(o[m]),u[1][0].data=kt(h);var g=ni(u[2][0].data);Cl(l,g),Kd(l,a=Xd({deps:[s],location:n[g].location,type:n[g].type},n)),o[g]=a,u[2][0].data=wl(a);var p=kc(t,n,g);p.id=a,n[s].location==n[a].location?d.push(p):Pr(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$/,""),Pr(t,n,a,function(l,d){var u,h,f=et(l.messages[0].data),g=qr(f[1][0].data).replace(/-[A-Z0-9]*/,"-".concat(e.toString(16).padStart(4,"0")));if(f[1][0].data=Pa(g),[12,13,29,31,32,33,39,44,47,81,82,84].forEach(function(A){return delete f[A]}),f[45]){var v=ni(et(f[45][0].data)[1][0].data);Cl(l,v),delete f[45]}f[70]&&(null==(u=et(f[70][0].data)[2])||u.forEach(function(A){var T=et(A.data);[2,3].map(function(B){return T[B][0]}).forEach(function(B){var V=et(B.data);if(V[8]){var K=ni(V[8][0].data);Cl(l,K)}})}),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 T=ni(f[A][0].data);delete f[A],Cl(l,T)}});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 T;if(null!=(T=C[A])&&T[0]){var B=ni(C[A][0].data),V=Xd({deps:[a],location:n[B].location,type:n[B].type},n);Cl(l,B),Kd(l,V),o[B]=V;var K=kc(t,n,B);if(K.id=V,n[B].location==n[a].location)d.push(K);else{n[V].location=n[B].location.replace(B.toString(),V.toString()),n[V].location==n[B].location&&(n[V].location=n[V].location.replace(/\.iwa/,"-".concat(V,".iwa"))),Ct.utils.cfb_add(t,n[V].location,ab(ob([K])));var ne=n[V].location;ne=(ne=ne.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,""),Pr(t,n,2,function(q){var Ee=et(q.messages[0].data);Ee[3].push({type:2,data:kt([[],[{type:0,data:_t(V)}],[{type:2,data:Pa(ne.replace(/-.*$/,""))}],[{type:2,data:Pa(ne)}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:_t(0)}],[],[{type:0,data:_t(0)}]])}),Ee[1]=[{type:0,data:_t(Math.max(V+1,wn(Ee[1][0].data)))}];var Me=Ee[3].findIndex(function(ae){var Z,ye,me=et(ae.data);return null!=(Z=me[3])&&Z[0]?qr(me[3][0].data)==c:!(null==(ye=me[2])||!ye[0]||qr(me[2][0].data)!=c)}),ve=et(Ee[3][Me].data);ve[6]||(ve[6]=[]),ve[6].push({type:2,data:kt([[],[{type:0,data:_t(V)}]])}),Ee[3][Me].data=kt(ve),q.messages[0].data=kt(Ee)})}C[A][0].data=wl(V)}});var D=et(C[1][0].data);null==(h=D[2])||h.forEach(function(A){var T=ni(A.data),B=Xd({deps:[a],location:n[T].location,type:n[T].type},n);Cl(l,T),Kd(l,B),o[T]=B;var V=kc(t,n,T);if(V.id=B,n[T].location==n[a].location)d.push(V);else{n[B].location=n[T].location.replace(T.toString(),B.toString()),n[B].location==n[T].location&&(n[B].location=n[B].location.replace(/\.iwa/,"-".concat(B,".iwa"))),Ct.utils.cfb_add(t,n[B].location,ab(ob([V])));var K=n[B].location;K=(K=K.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,""),Pr(t,n,2,function(ne){var q=et(ne.messages[0].data);q[3].push({type:2,data:kt([[],[{type:0,data:_t(B)}],[{type:2,data:Pa(K.replace(/-.*$/,""))}],[{type:2,data:Pa(K)}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:_t(0)}],[],[{type:0,data:_t(0)}]])}),q[1]=[{type:0,data:_t(Math.max(B+1,wn(q[1][0].data)))}];var Ee=q[3].findIndex(function(ve){var ae,Z,ye=et(ve.data);return null!=(ae=ye[3])&&ae[0]?qr(ye[3][0].data)==c:!(null==(Z=ye[2])||!Z[0]||qr(ye[2][0].data)!=c)}),Me=et(q[3][Ee].data);Me[6]||(Me[6]=[]),Me[6].push({type:2,data:kt([[],[{type:0,data:_t(B)}]])}),q[3][Ee].data=kt(Me),ne.messages[0].data=kt(q)})}A.data=wl(B)}),C[1][0].data=kt(D);var U=et(C[3][0].data);U[1].forEach(function(A){var T=et(A.data),B=ni(T[2][0].data),V=o[B];if(!o[B]){V=Xd({deps:[a],location:"",type:n[B].type},n),n[V].location="Root Entry/Index/Tables/Tile-".concat(V,".iwa"),o[B]=V;var K=kc(t,n,B);K.id=V,Cl(l,B),Kd(l,V),Ct.utils.cfb_add(t,"/Index/Tables/Tile-".concat(V,".iwa"),ab(ob([K]))),Pr(t,n,2,function(ne){var q=et(ne.messages[0].data);q[3].push({type:2,data:kt([[],[{type:0,data:_t(V)}],[{type:2,data:Pa("Tables/Tile")}],[{type:2,data:Pa("Tables/Tile-".concat(V))}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:_t(0)}],[],[{type:0,data:_t(0)}]])}),q[1]=[{type:0,data:_t(Math.max(V+1,wn(q[1][0].data)))}];var Ee=q[3].findIndex(function(ve){var ae,Z,ye=et(ve.data);return null!=(ae=ye[3])&&ae[0]?qr(ye[3][0].data)==c:!(null==(Z=ye[2])||!Z[0]||qr(ye[2][0].data)!=c)}),Me=et(q[3][Ee].data);Me[6]||(Me[6]=[]),Me[6].push({type:2,data:kt([[],[{type:0,data:_t(V)}]])}),q[3][Ee].data=kt(Me),ne.messages[0].data=kt(q)})}T[2][0].data=wl(V),A.data=kt(T)}),C[3][0].data=kt(U),f[4][0].data=kt(C),l.messages[0].data=kt(f)})}(e,i,a+1),r=kc(e,i,1),o=Nh(et(r.messages[0].data)[1],ni)),function WUe(t,n,e,i,r,o){var s=[];Pr(t,n,o,function(l){var d=et(l.messages[0].data);d[1]=[{type:2,data:Pa(i)}],s=Nh(d[2],ni),l.messages[0].data=kt(d)});var c=ni(et(kc(t,n,s[0]).messages[0].data)[2][0].data);Pr(t,n,c,function(l,d){return function qUe(t,n,e,i,r,o){var s=Mr(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=Ek(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=_t(s.e.r+1),u[7][0].data=_t(s.e.c+1),delete u[46];var h=et(u[4][0].data);Pr(t,n,ni(et(h[1][0].data)[2][0].data),function(Me,ve){var ae,Z=et(Me.messages[0].data);if(null!=(ae=Z?.[2])&&ae[0])for(var ye=0;ye0&&(en(o,s="docProps/custom.xml",EK(t.Custprops)),r.custprops.push(s),ti(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,W8e(a-1,n,t,d)),r.sheets.push(s),ti(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,sBe(f)),r.comments.push(g),ti(d,-1,"../comments"+a+"."+e,nn.CMNT),m=!0),u["!legacy"]&&m&&en(o,"xl/drawings/vmlDrawing"+a+".vml",gX(a,u["!comments"])),delete u["!comments"],delete u["!legacy"]}d["!id"].rId1&&en(o,Vv(s),Bp(d))}return null!=n.Strings&&n.Strings.length>0&&(en(o,s="xl/sharedStrings."+e,function dLe(t){var n=ms();Ce(n,159,function cLe(t,n){return n||(n=de(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+=ea.charAt(o)+ea.charAt(s)+ea.charAt(a)+ea.charAt(c);return n}(t);case"binary":case"string":return t;case"file":return Iv(n.file,t,"binary");case"buffer":return rn?_c(t,"binary"):t.split("").map(function(e){return e.charCodeAt(0)})}throw new Error("Unrecognized type "+n.type)}(kY(t.Sheets[t.SheetNames[r]],e),e);case"csv":return Ec(zF(t.Sheets[t.SheetNames[r]],e),e,"\ufeff");case"dif":return Ec(oX.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"dbf":return kk(pF.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"prn":return Ec(Vp.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"rtf":return Ec(function ALe(t,n){var e=["{\\rtf1\\ansi"];if(!t["!ref"])return e[0]+"}";for(var r,i=xn(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=cn({r:a,c});(r=o?s[c]:t[l])&&(null!=r.v||r.f&&!r.F)?(e.push(" "+(r.w||(xc(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 Ec(sX.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"fods":return Ec(aY(t,e),e);case"wk1":return kk(Ph.sheet_to_wk1(t.Sheets[t.SheetNames[r]],e),e);case"wk3":return kk(Ph.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),kk(GX(t,e),e);case"biff5":e.biff||(e.biff=5);case"biff8":case"xla":case"xls":return e.biff||(e.biff=8),function a9e(t,n){var e=n||{};return vY(function sUe(t,n){var e=n||{},i=Ct.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 Ct.utils.cfb_add(i,r,GX(t,e)),8==e.biff&&(t.Props||t.Custprops)&&function oUe(t,n){var s,e=[],i=[],r=[],o=0,a=SQ(iF,"n"),c=SQ(rF,"n");if(t.Props)for(s=Ai(t.Props),o=0;o-1||wK.indexOf(r[o][0])>-1||null!=r[o][1]&&l.push(r[o]);i.length&&Ct.utils.cfb_add(n,"/\x05SummaryInformation",NK(i,eb.SI,c,rF)),(e.length||l.length)&&Ct.utils.cfb_add(n,"/\x05DocumentSummaryInformation",NK(e,eb.DSI,a,iF,l.length?l:null,eb.UDI))}(t,i),8==e.biff&&t.vbaraw&&function lBe(t,n){n.FullPaths.forEach(function(e,i){if(0!=i){var r=e.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");"/"!==r.slice(-1)&&Ct.utils.cfb_add(t,r,n.FileIndex[i].content)}})}(i,Ct.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 o9e(t,n){var e=Zn(n||{});return function bY(t,n){var e={},i=rn?"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?Ct.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(Ev(r))}return n.password&&typeof encrypt_agile<"u"?vY(encrypt_agile(r,n.password),n):"file"===n.type?Iv(n.file,r):"string"==n.type?ei(r):r}(r9e(t,e),e)}(t,e);default:throw new Error("Unrecognized bookType |"+e.bookType+"|")}}function xY(t,n,e,i,r,o,s){var a=yn(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:xc(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 Ek(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=xn(d);break;case"number":(c=xn(t["!ref"])).s.r=d;break;default:c=d}i>0&&(r=0);var u=yn(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"]||[],U=l.skipHidden&&t["!rows"]||[];for(x=c.s.c;x<=c.e.c;++x)if(!(D[x]||{}).hidden)switch(h[x]=on(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=xc(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(!(U[v]||{}).hidden){var A=xY(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 wY=/"/g;function CY(t,n,e,i,r,o,s,a){for(var c=!0,l=[],d="",u=yn(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:xc(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(wY,'""')+'"';break}"ID"==d&&(d='"ID"')}else null==g.f||g.F?d="":(c=!1,(d="="+g.f).indexOf(",")>=0&&(d='"'+d.replace(wY,'""')+'"'));l.push(d)}return!1===a.blankrows&&c?null:l.join(s)}function zF(t,n){var e=[],i=n??{};if(null==t||null==t["!ref"])return"";for(var r=xn(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]=on(m));for(var g=0,p=r.s.r;p<=r.e.r;++p)(f[p]||{}).hidden||null!=(d=CY(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 kY(t,n){n||(n={}),n.FS="\t",n.RS="\n";var e=zF(t,n);return typeof Zt>"u"||"string"==n.type?e:"\xff\xfe"+Zt.utils.encode(1200,e,"str")}function EY(t,n,e){var i=e||{},r=t?null!=t["!data"]:i.dense;null!=Ji&&null==r&&(r=Ji);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?Hn(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=xn(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]),Ai(p).forEach(function(x){-1==(f=h.indexOf(x))&&(h[f=h.length]=x);var C=p[x],D="z",U="",A=r?"":on(c+f)+yn(a+v+o),T=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=dr(C)),U=null!=T&&T.z&&zd(T.z)?T.z:i.dateNF||Tt[14]):null===C&&i.nullError&&(D="e",C=0),T?(T.t=D,T.v=C,delete T.w,delete T.R,U&&(T.z=U)):r?m[c+f]=T={t:D,v:C}:s[A]=T={t:D,v:C},U&&(T.z=U)):r?m[c+f]=C:s[A]=C})}),d.e.c=Math.max(d.e.c,c+h.length-1);var g=yn(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(UX(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 SY_json_to_sheet=function h9e(t,n){return EY(null,t,n)};let T9e=(()=>{class t{constructor(){}exportAsExcelFile(e,i){const s=cb({Sheets:{data:SY_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"});cc.saveAs(r,i+"_export_"+(new Date).getTime()+".xlsx")}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const S9e=["*",[["mat-toolbar-row"]]],D9e=["*","mat-toolbar-row"],I9e=td(class{constructor(t){this._elementRef=t}});let A9e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=J({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return t})(),M9e=(()=>{class t extends I9e{constructor(e,i,r){super(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)(y(Ue),y(zn),y(xt))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["mat-toolbar"]],contentQueries:function(i,r,o){if(1&i&&Kt(o,A9e,5),2&i){let s;Pe(s=Fe())&&(r._toolbarRows=s)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(i,r){2&i&&st("mat-toolbar-multiple-rows",r._toolbarRows.length>0)("mat-toolbar-single-row",0===r._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[ke],ngContentSelectors:D9e,decls:2,vars:0,template:function(i,r){1&i&&(Nn(S9e),dt(0),dt(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: inherit;--mdc-outlined-button-label-text-color: inherit}.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})(),R9e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({imports:[Ft,Ft]})}return t})();const DY=["*"],P9e=["content"],F9e=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],O9e=["mat-drawer","mat-drawer-content","*"];function N9e(t,n){if(1&t){const e=De();_(0,"div",2),H("click",function(){return j(e),G(P()._onBackdropClicked())}),b()}2&t&&st("mat-drawer-shown",P()._isShowingBackdrop())}function L9e(t,n){1&t&&(_(0,"mat-drawer-content"),dt(1,2),b())}const B9e={transformDrawer:Kn("transform",[pn("open, open-instant",We({transform:"none",visibility:"visible"})),pn("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)"))])},V9e=new ee("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function U9e(){return!1}}),IY=new ee("MAT_DRAWER_CONTAINER");let jF=(()=>{class t extends nI{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)(y(an),y(hn(()=>MY)),y(Ue),y(G_),y(ze))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["mat-drawer-content"]],hostAttrs:["ngSkipHydration","",1,"mat-drawer-content"],hostVars:4,hostBindings:function(i,r){2&i&&Wi("margin-left",r._container._contentMargins.left,"px")("margin-right",r._container._contentMargins.right,"px")},features:[rt([{provide:nI,useExisting:t}]),ke],ngContentSelectors:DY,decls:1,vars:0,template:function(i,r){1&i&&(Nn(),dt(0))},encapsulation:2,changeDetection:0})}return t})(),AY=(()=>{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=Ke(e)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=Ke(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(Ke(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._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Re,this._animationEnd=new Re,this._animationState="void",this.openedChange=new Se(!0),this._openedStream=this.openedChange.pipe(ln(d=>d),mt(()=>{})),this.openedStart=this._animationStarted.pipe(ln(d=>d.fromState!==d.toState&&0===d.toState.indexOf("open")),Mx(void 0)),this._closedStream=this.openedChange.pipe(ln(d=>!d),mt(()=>{})),this.closedStart=this._animationStarted.pipe(ln(d=>d.fromState!==d.toState&&"void"===d.toState),Mx(void 0)),this._destroyed=new Re,this.onPositionChanged=new Se,this._modeChanged=new Re,this.openedChange.subscribe(d=>{d?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{ka(this._elementRef.nativeElement,"keydown").pipe(ln(d=>27===d.keyCode&&!this.disableClose&&!yo(d)),Et(this._destroyed)).subscribe(d=>this._ngZone.run(()=>{this.close(),d.stopPropagation(),d.preventDefault()}))}),this._animationEnd.pipe(rc((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,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&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(En(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){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)(y(Ue),y(c1),y(Rs),y(zn),y(ze),y(L_),y(xt,8),y(IY,8))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["mat-drawer"]],viewQuery:function(i,r){if(1&i&&pt(P9e,5),2&i){let o;Pe(o=Fe())&&(r._content=o.first)}},hostAttrs:["tabIndex","-1","ngSkipHydration","",1,"mat-drawer"],hostVars:12,hostBindings:function(i,r){1&i&&Jy("@transform.start",function(s){return r._animationStarted.next(s)})("@transform.done",function(s){return r._animationEnd.next(s)}),2&i&&(Qy("@transform",r._animationState),vt("align",null),st("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"],ngContentSelectors:DY,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(i,r){1&i&&(Nn(),_(0,"div",1,0),dt(2),b())},dependencies:[nI],encapsulation:2,data:{animation:[B9e.transformDrawer]},changeDetection:0})}return t})(),MY=(()=>{class t{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=Ke(e)}get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(e){this._backdropOverride=null==e?null:Ke(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 Fl,this.backdropClick=new Se,this._destroyed=new Re,this._doCheckSubject=new Re,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Re,e&&e.change.pipe(Et(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),s.change().pipe(Et(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=a}ngAfterContentInit(){this._allDrawers.changes.pipe(wr(this._allDrawers),Et(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(Gc(10),Et(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(ln(i=>i.fromState!==i.toState),Et(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(Et(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e&&e.onPositionChanged.pipe(Et(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(En(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(Et(wi(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)(y(Er,8),y(Ue),y(ze),y(an),y(oc),y(V9e),y(Qn,8))};static#t=this.\u0275cmp=Ge({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(i,r,o){if(1&i&&(Kt(o,jF,5),Kt(o,AY,5)),2&i){let s;Pe(s=Fe())&&(r._content=s.first),Pe(s=Fe())&&(r._allDrawers=s)}},viewQuery:function(i,r){if(1&i&&pt(jF,5),2&i){let o;Pe(o=Fe())&&(r._userContent=o.first)}},hostAttrs:["ngSkipHydration","",1,"mat-drawer-container"],hostVars:2,hostBindings:function(i,r){2&i&&st("mat-drawer-container-explicit-backdrop",r._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[rt([{provide:IY,useExisting:t}])],ngContentSelectors:O9e,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,r){1&i&&(Nn(F9e),W(0,N9e,1,2,"div",0),dt(1),dt(2,1),W(3,L9e,2,0,"mat-drawer-content",1)),2&i&&(E("ngIf",r.hasBackdrop),w(3),E("ngIf",!r._content))},dependencies:[si,jF],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{box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);position:relative;z-index:4;--mat-sidenav-container-shape:0;color:var(--mat-sidenav-container-text-color);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);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})(),z9e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({imports:[Zr,Ft,Yc,Yc,Ft]})}return t})();function H9e(t,n){if(1&t){const e=De();_(0,"button",15),H("click",function(){const r=j(e).$implicit;return G(P().setFhirServer(r))}),k(1),b()}if(2&t){const e=n.$implicit;w(),nt(e.name)}}function j9e(t,n){if(1&t){const e=De();_(0,"button",15),H("click",function(){const r=j(e).$implicit;return G(P(2).setEdition(r))}),k(1),b()}if(2&t){const e=n.$implicit;w(),nt(e.resource.version)}}function $9e(t,n){if(1&t&&(Gt(0),_(1,"button",20),k(2),b(),_(3,"mat-menu",null,5)(5,"span",17),k(6,"Versions / Releases"),b(),W(7,j9e,2,1,"button",16),b(),Wt()),2&t){const e=n.$implicit,i=Nt(4);w(),E("matMenuTriggerFor",i),w(),nt(e.editionName),w(5),E("ngForOf",e.editions)}}function G9e(t,n){if(1&t){const e=De();_(0,"button",15),H("click",function(){const r=j(e).$implicit;return G(P().setLanguage(r))}),k(1),b()}if(2&t){const e=n.$implicit;w(),nt(e)}}function W9e(t,n){if(1&t){const e=De();_(0,"button",15),H("click",function(){const r=j(e).$implicit;return G(P(2).setFhirServer(r))}),k(1),b()}if(2&t){const e=n.$implicit;w(),nt(e.name)}}function q9e(t,n){if(1&t){const e=De();_(0,"button",15),H("click",function(){const r=j(e).$implicit;return G(P(3).setEdition(r))}),k(1),b()}if(2&t){const e=n.$implicit;w(),nt(e.resource.version)}}function Q9e(t,n){if(1&t&&(Gt(0),_(1,"button",20),k(2),b(),_(3,"mat-menu",null,5)(5,"span",17),k(6,"Versions / Releases"),b(),W(7,q9e,2,1,"button",16),b(),Wt()),2&t){const e=n.$implicit,i=Nt(4);w(),E("matMenuTriggerFor",i),w(),nt(e.editionName),w(5),E("ngForOf",e.editions)}}function K9e(t,n){if(1&t){const e=De();_(0,"button",15),H("click",function(){const r=j(e).$implicit;return G(P(2).setLanguage(r))}),k(1),b()}if(2&t){const e=n.$implicit;w(),nt(e)}}function X9e(t,n){if(1&t){const e=De();_(0,"mat-toolbar")(1,"button",21),H("click",function(){return j(e),P(),G(Nt(2).toggle())}),_(2,"mat-icon"),k(3,"menu"),b()(),we(4,"img",22),_(5,"span",23),k(6,"SNOMED CT Implementation Demos"),b(),_(7,"span",24),k(8,"Implementation Demos"),b(),we(9,"span",25),_(10,"button",26),k(11,"Select Demonstrator"),b(),_(12,"mat-menu",14,6)(14,"button",15),H("click",function(){return j(e),G(P().navigate("/allergies"))}),k(15,"Allergies CRG"),b(),_(16,"button",15),H("click",function(){return j(e),G(P().navigate("/sandbox"))}),k(17,"Terminology Bindings Sandbox"),b(),_(18,"button",15),H("click",function(){return j(e),G(P().navigate("/questionnaires"))}),k(19,"SNOMED & FHIR Questionnaires"),b(),_(20,"button",15),H("click",function(){return j(e),G(P().navigate("/context"))}),k(21,"Context Representation"),b(),_(22,"button",15),H("click",function(){return j(e),G(P().navigate("/snoguess"))}),k(23,"Playground"),b()(),_(24,"button",27),k(25),b(),_(26,"mat-menu",null,7),W(28,W9e,2,1,"button",16),b(),_(29,"button",27),k(30),b(),_(31,"mat-menu",14,8)(33,"span",17),k(34,"Editions"),b(),W(35,Q9e,8,3,"ng-container",18),b(),_(36,"button",27),k(37),b(),_(38,"mat-menu",null,9),W(40,K9e,2,1,"button",16),b(),_(41,"a",28)(42,"mat-icon"),k(43,"info"),b()()()}if(2&t){const e=Nt(13),i=Nt(27),r=Nt(32),o=Nt(39),s=P();w(10),E("matMenuTriggerFor",e),w(14),E("matMenuTriggerFor",i),w(),Je("FHIR Server: ",s.selectedServer.name,""),w(3),E("ngForOf",s.fhirServers),w(),E("matMenuTriggerFor",r),w(),nt(s.selectedEdition),w(5),E("ngForOf",s.editionsDetails),w(),E("matMenuTriggerFor",o),w(),nt(s.selectedLanguage),w(3),E("ngForOf",s.languages)}}let Y9e=(()=>{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 tc&>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)(y(tFe),y(T9e),y(Jr),y(ss),y(Ql))};static#t=this.\u0275cmp=Ge({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=De();_(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),H("click",function(){return j(o),G(r.navigate("/allergies"))}),k(9,"Allergies CRG"),b(),_(10,"button",15),H("click",function(){return j(o),G(r.navigate("/sandbox"))}),k(11,"Terminology Bindings Sandbox"),b(),_(12,"button",15),H("click",function(){return j(o),G(r.navigate("/questionnaires"))}),k(13,"SNOMED & FHIR Questionnaires"),b(),_(14,"button",15),H("click",function(){return j(o),G(r.navigate("/context"))}),k(15,"Context Representation"),b(),_(16,"button",15),H("click",function(){return j(o),G(r.navigate("/snoguess"))}),k(17,"Playground"),b()(),_(18,"button",13),k(19),b(),_(20,"mat-menu",null,2),W(22,H9e,2,1,"button",16),b(),_(23,"button",13),k(24),b(),_(25,"mat-menu",14,3)(27,"span",17),k(28,"Editions"),b(),W(29,$9e,8,3,"ng-container",18),b(),_(30,"button",13),k(31),b(),_(32,"mat-menu",null,4),W(34,G9e,2,1,"button",16),b()()(),W(35,X9e,44,10,"mat-toolbar",19),we(36,"router-outlet"),b()}if(2&i){const o=Nt(7),s=Nt(21),a=Nt(26),c=Nt(33);w(4),E("matMenuTriggerFor",o),w(14),E("matMenuTriggerFor",s),w(),Je("FHIR Server: ",r.selectedServer.name,""),w(3),E("ngForOf",r.fhirServers),w(),E("matMenuTriggerFor",a),w(),Je("Edition: ",r.selectedEdition,""),w(5),E("ngForOf",r.editionsDetails),w(),E("matMenuTriggerFor",c),w(),Je("Language: ",r.selectedLanguage,""),w(3),E("ngForOf",r.languages),w(),E("ngIf",!r.embeddedMode)}},dependencies:[_o,si,l2,M9e,L_e,xo,Ks,Co,Nu,sc,Lu,AY,MY],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 RY(t){return new ce(3e3,!1)}function Yd(t){switch(t.length){case 0:return new H_;case 1:return t[0];default:return new R9(t)}}function PY(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 Qc: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 y7e(t){return new ce(3502,!1)}();return o}function $F(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&GF(e,"start",t)));break;case"done":t.onDone(()=>i(e&&GF(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&GF(e,"destroy",t)))}}function GF(t,n,e){const o=WF(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 WF(t,n,e,i,r="",o=0,s){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function Hs(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function FY(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}const R7e=typeof document>"u"?null:document.documentElement;function qF(t){const n=t.parentNode||t.host||null;return n===R7e?null:n}let Lh=null,OY=!1;function NY(t,n){for(;n;){if(n===t)return!0;n=qF(n)}return!1}function LY(t,n,e){if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]}let QF=(()=>{class t{validateStyleProperty(e){return function F7e(t){Lh||(Lh=function O7e(){return typeof document<"u"?document.body:null}()||{},OY=!!Lh.style&&"WebkitAppearance"in Lh.style);let n=!0;return Lh.style&&!function P7e(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Lh.style,!n&&OY&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Lh.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return NY(e,i)}getParentElement(e){return qF(e)}query(e,i,r){return LY(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],c){return new H_(r,o)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac})}return t})();class KF{static#e=this.NOOP=new QF}class XF{}const L7e=1e3,YF="ng-enter",Ik="ng-leave",Ak="ng-trigger",Mk=".ng-trigger",VY="ng-animating",ZF=".ng-animating";function kl(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:JF(parseFloat(n[1]),n[2])}function JF(t,n){return"s"===n?t*L7e:t}function Rk(t,n,e){return t.hasOwnProperty("duration")?t:function V7e(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(RY()),{duration:0,delay:0,easing:""};r=JF(parseFloat(a[1]),a[2]);const c=a[3];null!=c&&(o=JF(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 Z9e(){return new ce(3100,!1)}()),a=!0),o<0&&(n.push(function J9e(){return new ce(3101,!1)}()),a=!0),a&&n.splice(c,0,RY())}return{duration:r,delay:o,easing:s}}(t,n,e)}function Tc(t,n,e){n.forEach((i,r)=>{const o=tO(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=i})}function Bh(t,n){n.forEach((e,i)=>{const r=tO(i);t.style[r]=""})}function lb(t){return Array.isArray(t)?1==t.length?t[0]:function V_e(t,n=null){return{type:Pt.Sequence,steps:t,options:n}}(t):t}const eO=new RegExp("{{\\s*(.+?)\\s*}}","g");function zY(t){let n=[];if("string"==typeof t){let e;for(;e=eO.exec(t);)n.push(e[1]);eO.lastIndex=0}return n}function db(t,n,e){const i=`${t}`,r=i.replace(eO,(o,s)=>{let a=n[s];return null==a&&(e.push(function t7e(t){return new ce(3003,!1)}()),a=""),a.toString()});return r==i?t:r}const H7e=/-+([a-z0-9])/g;function tO(t){return t.replace(H7e,(...n)=>n[1].toUpperCase())}function js(t,n,e){switch(n.type){case Pt.Trigger:return t.visitTrigger(n,e);case Pt.State:return t.visitState(n,e);case Pt.Transition:return t.visitTransition(n,e);case Pt.Sequence:return t.visitSequence(n,e);case Pt.Group:return t.visitGroup(n,e);case Pt.Animate:return t.visitAnimate(n,e);case Pt.Keyframes:return t.visitKeyframes(n,e);case Pt.Style:return t.visitStyle(n,e);case Pt.Reference:return t.visitReference(n,e);case Pt.AnimateChild:return t.visitAnimateChild(n,e);case Pt.AnimateRef:return t.visitAnimateRef(n,e);case Pt.Query:return t.visitQuery(n,e);case Pt.Stagger:return t.visitStagger(n,e);default:throw function n7e(t){return new ce(3004,!1)}()}}function nO(t,n){return window.getComputedStyle(t)[n]}const G7e=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 HY extends XF{normalizePropertyName(n,e){return tO(n)}normalizeStyleValue(n,e,i,r){let o="";const s=i.toString().trim();if(G7e.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 i7e(t,n){return new ce(3005,!1)}())}return s+o}}const Pk="*";const Fk=new Set(["true","1"]),Ok=new Set(["false","0"]);function jY(t,n){const e=Fk.has(t)||Ok.has(t),i=Fk.has(n)||Ok.has(n);return(r,o)=>{let s=t==Pk||t==r,a=n==Pk||n==o;return!s&&e&&"boolean"==typeof r&&(s=r?Fk.has(t):Ok.has(t)),!a&&i&&"boolean"==typeof o&&(a=o?Fk.has(n):Ok.has(n)),s&&a}}const K7e=new RegExp("s*:selfs*,?","g");function iO(t,n,e,i){return new X7e(t).build(n,e,i)}class X7e{constructor(n){this._driver=n}build(n,e,i){const r=new J7e(e);return this._resetContextStyleTimingState(r),js(this,lb(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 r7e(){return new ce(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),a.type==Pt.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==Pt.Transition){const c=this.visitTransition(a,e);i+=c.queryCount,r+=c.depCount,s.push(c)}else e.errors.push(function o7e(){return new ce(3007,!1)}())}),{type:Pt.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=>{zY(c).forEach(l=>{s.hasOwnProperty(l)||o.add(l)})})}),o.size&&e.errors.push(function s7e(t,n){return new ce(3008,!1)}(0,o.values()))}return{type:Pt.State,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=js(this,lb(n.animation),e),r=function W7e(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function q7e(t,n,e){if(":"==t[0]){const c=function Q7e(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 p7e(t){return new ce(3015,!1)}()),n;const r=i[1],o=i[2],s=i[3];n.push(jY(r,s)),"<"==o[0]&&(r!=Pk||s!=Pk)&&n.push(jY(s,r))}(i,e,n)):e.push(t),e}(n.expr,e.errors);return{type:Pt.Transition,matchers:r,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Vh(n.options)}}visitSequence(n,e){return{type:Pt.Sequence,steps:n.steps.map(i=>js(this,i,e)),options:Vh(n.options)}}visitGroup(n,e){const i=e.currentTime;let r=0;const o=n.steps.map(s=>{e.currentTime=i;const a=js(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:Pt.Group,steps:o,options:Vh(n.options)}}visitAnimate(n,e){const i=function tze(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return rO(Rk(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=rO(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=Rk(e,n);return rO(r.duration,r.delay,r.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let r,o=n.styles?n.styles:We({});if(o.type==Pt.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:Pt.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===Qc?i.push(a):e.errors.push(new ce(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:Pt.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 c7e(t,n,e,i,r){return new ce(3010,!1)}()),u=!1),o=d.startTime),u&&l.set(c,{startTime:o,endTime:r}),e.options&&function z7e(t,n,e){const i=n.params||{},r=zY(t);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function e7e(t){return new ce(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:Pt.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function l7e(){return new ce(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 eze(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:Pt.Reference,animation:js(this,lb(n.animation),e),options:Vh(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:Pt.AnimateChild,options:Vh(n.options)}}visitAnimateRef(n,e){return{type:Pt.AnimateRef,animation:this.visitReference(n.animation,e),options:Vh(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,r=n.options||{};e.queryCount++,e.currentQuery=n;const[o,s]=function Y7e(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(K7e,"")),t=t.replace(/@\*/g,Mk).replace(/@\w+/g,e=>Mk+"-"+e.slice(1)).replace(/:animating/g,ZF),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+o:o,Hs(e.collectedStyles,e.currentQuerySelector,new Map);const a=js(this,lb(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:Pt.Query,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:Vh(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function f7e(){return new ce(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:Rk(n.timings,e.errors,!0);return{type:Pt.Stagger,animation:js(this,lb(n.animation),e),timings:i,options:null}}}class J7e{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 Vh(t){return t?(t={...t}).params&&(t.params=function Z7e(t){return t?{...t}:null}(t.params)):t={},t}function rO(t,n,e){return{duration:t,delay:n,easing:e}}function oO(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 Nk{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 rze=new RegExp(":enter","g"),sze=new RegExp(":leave","g");function sO(t,n,e,i,r,o=new Map,s=new Map,a,c,l=[]){return(new aze).buildKeyframes(t,n,e,i,r,o,s,a,c,l)}class aze{buildKeyframes(n,e,i,r,o,s,a,c,l,d=[]){l=l||new Nk;const u=new aO(n,e,l,r,o,d,[]);u.options=c;const h=c.delay?kl(c.delay):0;u.currentTimeline.delayNextStep(h),u.currentTimeline.setStyles([s],null,u.errors,c),js(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()):[oO(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:kl(db(o,r?.params??{},e.errors));i.delayNextStep(s)}}}_visitSubInstructions(n,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?kl(i.duration):null,a=null!=i.delay?kl(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),js(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==Pt.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Lk);const s=kl(o.delay);r.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>js(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?kl(n.options.delay):0;n.steps.forEach(s=>{const a=e.createSubContext(n.options);o&&a.delayNextStep(o),js(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 Rk(e.params?db(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==Pt.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?kl(r.delay):0;o&&(e.previousNode.type===Pt.Style||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Lk);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),js(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;js(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=r.currentTime-u+(r.startTime-i.currentTimeline.startTime)}}const Lk={};class aO{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=Lk,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new Bk(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=kl(i.duration)),null!=i.delay&&(r.delay=kl(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]=db(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 aO(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=Lk,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 cze(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(rze,"."+this._enterClassName)).replace(sze,"."+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 m7e(t){return new ce(3014,!1)}()),a}}class Bk{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 Bk(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||Qc),this._currentKeyframe.set(e,Qc);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},s=function lze(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,Qc)}else for(let[o,s]of r)e.set(o,s)}),e}(n,this._globalTimelineStyles);for(let[a,c]of s){const l=db(c,o,i);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Qc),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===Qc&&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 oO(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class cze extends Bk{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",WY(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",WY((e+f*i)/s)),o.push(h)}i=s,e=0,r="",n=o}return oO(this.element,n,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function WY(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}function qY(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 cO={};class QY{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,r){return function dze(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||cO,m=this.buildStyles(i,a&&a.params||cO,u),g=c&&c.params||cO,p=this.buildStyles(r,g,u),v=new Set,x=new Map,C=new Map,D="void"===r,U={params:KY(g,h),delay:this.ast.options?.delay},A=d?[]:sO(n,e,this.ast.animation,o,s,m,p,U,l,u);let T=0;return A.forEach(B=>{T=Math.max(B.duration+B.delay,T)}),u.length?qY(e,this._triggerName,i,r,D,m,p,[],[],x,C,T,u):(A.forEach(B=>{const V=B.element,K=Hs(x,V,new Set);B.preStyleProps.forEach(q=>K.add(q));const ne=Hs(C,V,new Set);B.postStyleProps.forEach(q=>ne.add(q)),V!==e&&v.add(V)}),qY(e,this._triggerName,i,r,D,m,p,A,[...v.values()],x,C,T))}}function KY(t,n){const e={...n};return Object.entries(t).forEach(([i,r])=>{null!=r&&(e[i]=r)}),e}class uze{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,r=KY(n,this.defaultParams);return this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=db(s,r,e));const c=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,c,s,e),i.set(a,s)})}),i}}class fze{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 uze(r.style,r.options&&r.options.params||{},i))}),XY(this.states,"true","1"),XY(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new QY(n,r,this.states))}),this.fallbackTransition=function mze(t,n,e){return new QY(t,{type:Pt.Transition,animation:{type:Pt.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 XY(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 pze=new Nk;class gze{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=iO(this._driver,e,i,[]);if(i.length)throw function x7e(t){return new ce(3503,!1)}();this._animations.set(n,o)}_buildPlayer(n,e,i){const r=n.element,o=PY(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=sO(this._driver,e,o,YF,Ik,new Map,new Map,i,pze,r),s.forEach(d=>{const u=Hs(a,d.element,new Map);d.postStyleProps.forEach(h=>u.set(h,null))})):(r.push(function w7e(){return new ce(3300,!1)}()),s=[]),r.length)throw function C7e(t){return new ce(3504,!1)}();a.forEach((d,u)=>{d.forEach((h,f)=>{d.set(f,this._driver.computeStyle(u,f,Qc))})});const l=Yd(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 k7e(t){return new ce(3301,!1)}();return e}listen(n,e,i,r){const o=WF(e,"","","");return $F(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 YY="ng-animate-queued",lO="ng-animate-disabled",xze=[],ZY={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},wze={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Fa="__ng_removed";class dO{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function Tze(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 ub="void",uO=new dO(ub);class Cze{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,aa(e,this._hostClassName)}listen(n,e,i,r){if(!this._triggers.has(e))throw function E7e(t,n){return new ce(3302,!1)}();if(null==i||0==i.length)throw function T7e(t){return new ce(3303,!1)}();if(!function Sze(t){return"start"==t||"done"==t}(i))throw function S7e(t,n){return new ce(3400,!1)}();const o=Hs(this._elementListeners,n,[]),s={name:e,phase:i,callback:r};o.push(s);const a=Hs(this._engine.statesByElement,n,new Map);return a.has(e)||(aa(n,Ak),aa(n,Ak+"-"+e),a.set(e,uO)),()=>{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 D7e(t){return new ce(3401,!1)}();return e}trigger(n,e,i,r=!0){const o=this._getTrigger(e),s=new hO(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(aa(n,Ak),aa(n,Ak+"-"+e),this._engine.statesByElement.set(n,a=new Map));let c=a.get(e);const l=new dO(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a.set(e,l),c||(c=uO),l.value!==ub&&c.value===l.value){if(!function Aze(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let r=0;r{Bh(n,p),Tc(n,v)})}return}const h=Hs(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||(aa(n,YY),s.onStart(()=>{jp(n,YY)})),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,Mk,!0);i.forEach(r=>{if(r[Fa])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,ub,r);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,s),i&&Yd(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)||uO,d=new dO(ub),u=new hO(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[Fa];(!o||o===ZY)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){aa(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=WF(o,i.triggerName,i.fromState.value,i.toState.value);c._data=n,$F(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 kze{_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 Cze(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(Vk(e)){const o=this._fetchNamespace(n);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(n,e,i,r){if(!Vk(e))return;const o=e[Fa];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),aa(n,lO)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),jp(n,lO))}removeNode(n,e,i){if(Vk(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[Fa]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,e,i,r,o){return Vk(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,Mk,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,ZF,!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 Yd(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[Fa];if(e&&e.setForRemoval){if(n[Fa]=ZY,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(lO)&&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?Yd(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw function I7e(t){return new ce(3402,!1)}()}_flushAnimations(n,e){const i=new Nk,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 Z=this.driver.query(ae,".ng-animate-queued",!0);for(let ye=0;ye{const ye=YF+g++;m.set(Z,ye),ae.forEach(me=>aa(me,ye))});const p=[],v=new Set,x=new Set;for(let ae=0;aev.add(me)):x.add(Z))}const C=new Map,D=tZ(h,Array.from(v));D.forEach((ae,Z)=>{const ye=Ik+g++;C.set(Z,ye),ae.forEach(me=>aa(me,ye))}),n.push(()=>{f.forEach((ae,Z)=>{const ye=m.get(Z);ae.forEach(me=>jp(me,ye))}),D.forEach((ae,Z)=>{const ye=C.get(Z);ae.forEach(me=>jp(me,ye))}),p.forEach(ae=>{this.processLeaveNode(ae)})});const U=[],A=[];for(let ae=this._namespaceList.length-1;ae>=0;ae--)this._namespaceList[ae].drainQueuedTransitions(e).forEach(ye=>{const me=ye.player,Ye=ye.element;if(U.push(me),this.collectedEnterElements.length){const z=Ye[Fa];if(z&&z.setForMove){if(z.previousTriggersValues&&z.previousTriggersValues.has(ye.triggerName)){const he=z.previousTriggersValues.get(ye.triggerName),Te=this.statesByElement.get(ye.element);if(Te&&Te.has(ye.triggerName)){const je=Te.get(ye.triggerName);je.value=he,Te.set(ye.triggerName,je)}}return void me.destroy()}}const pe=!u||!this.driver.containsElement(u,Ye),ct=C.get(Ye),St=m.get(Ye),F=this._buildInstruction(ye,i,St,ct,pe);if(F.errors&&F.errors.length)return void A.push(F);if(pe)return me.onStart(()=>Bh(Ye,F.fromStyles)),me.onDestroy(()=>Tc(Ye,F.toStyles)),void r.push(me);if(ye.isFallbackTransition)return me.onStart(()=>Bh(Ye,F.fromStyles)),me.onDestroy(()=>Tc(Ye,F.toStyles)),void r.push(me);const te=[];F.timelines.forEach(z=>{z.stretchStartingKeyframe=!0,this.disabledNodes.has(z.element)||te.push(z)}),F.timelines=te,i.append(Ye,F.timelines),s.push({instruction:F,player:me,element:Ye}),F.queriedElements.forEach(z=>Hs(a,z,[]).push(me)),F.preStyleProps.forEach((z,he)=>{if(z.size){let Te=c.get(he);Te||c.set(he,Te=new Set),z.forEach((je,Qe)=>Te.add(Qe))}}),F.postStyleProps.forEach((z,he)=>{let Te=l.get(he);Te||l.set(he,Te=new Set),z.forEach((je,Qe)=>Te.add(Qe))})});if(A.length){const ae=[];A.forEach(Z=>{ae.push(function A7e(t,n){return new ce(3505,!1)}())}),U.forEach(Z=>Z.destroy()),this.reportError(ae)}const T=new Map,B=new Map;s.forEach(ae=>{const Z=ae.element;i.has(Z)&&(B.set(Z,Z),this._beforeAnimationBuild(ae.player.namespaceId,ae.instruction,T))}),r.forEach(ae=>{const Z=ae.element;this._getPreviousPlayers(Z,!1,ae.namespaceId,ae.triggerName,null).forEach(me=>{Hs(T,Z,[]).push(me),me.destroy()})});const V=p.filter(ae=>iZ(ae,c,l)),K=new Map;eZ(K,this.driver,x,l,Qc).forEach(ae=>{iZ(ae,c,l)&&V.push(ae)});const q=new Map;f.forEach((ae,Z)=>{eZ(q,this.driver,new Set(ae),c,"!")}),V.forEach(ae=>{const Z=K.get(ae),ye=q.get(ae);K.set(ae,new Map([...Z?.entries()??[],...ye?.entries()??[]]))});const Ee=[],Me=[],ve={};s.forEach(ae=>{const{element:Z,player:ye,instruction:me}=ae;if(i.has(Z)){if(d.has(Z))return ye.onDestroy(()=>Tc(Z,me.toStyles)),ye.disabled=!0,ye.overrideTotalTime(me.totalTime),void r.push(ye);let Ye=ve;if(B.size>1){let ct=Z;const St=[];for(;ct=ct.parentNode;){const F=B.get(ct);if(F){Ye=F;break}St.push(ct)}St.forEach(F=>B.set(F,Ye))}const pe=this._buildAnimation(ye.namespaceId,me,T,o,q,K);if(ye.setRealPlayer(pe),Ye===ve)Ee.push(ye);else{const ct=this.playersByElement.get(Ye);ct&&ct.length&&(ye.parentPlayer=Yd(ct)),r.push(ye)}}else Bh(Z,me.fromStyles),ye.onDestroy(()=>Tc(Z,me.toStyles)),Me.push(ye),d.has(Z)&&r.push(ye)}),Me.forEach(ae=>{const Z=o.get(ae.element);if(Z&&Z.length){const ye=Yd(Z);ae.setRealPlayer(ye)}}),r.forEach(ae=>{ae.parentPlayer?ae.syncPlayerEvents(ae.parentPlayer):ae.destroy()});for(let ae=0;ae!pe.destroyed);Ye.length?Dze(this,Z,Ye):this.processLeaveNode(Z)}return p.length=0,Ee.forEach(ae=>{this.players.push(ae),ae.onDone(()=>{ae.destroy();const Z=this.players.indexOf(ae);this.players.splice(Z,1)}),ae.play()}),Ee}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==ub;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=Hs(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)})}Bh(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[Fa];if(p&&p.removedBeforeQueried)return new H_(m.duration,m.delay);const v=g!==c,x=function Ize(t){const n=[];return nZ(t,n),n}((i.get(g)||xze).map(T=>T.getRealPlayer())).filter(T=>!!T.element&&T.element===g),C=o.get(g),D=s.get(g),U=PY(this._normalizer,m.keyframes,C,D),A=this._buildPlayer(m,U,x);if(m.subTimeline&&r&&u.add(g),v){const T=new hO(n,a,g);T.setRealPlayer(A),l.push(T)}return A});l.forEach(m=>{Hs(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>function Eze(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=>aa(m,VY));const f=Yd(h);return f.onDestroy(()=>{d.forEach(m=>jp(m,VY)),Tc(c,e.toStyles)}),u.forEach(m=>{Hs(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 H_(n.duration,n.delay)}}class hO{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new H_,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=>$F(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){Hs(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 Vk(t){return t&&1===t.nodeType}function JY(t,n){const e=t.style.display;return t.style.display=n??"none",e}function eZ(t,n,e,i,r){const o=[];e.forEach(c=>o.push(JY(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[Fa]=wze,s.push(l))}),t.set(l,d)});let a=0;return e.forEach(c=>JY(c,o[a++])),s}function tZ(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 aa(t,n){t.classList?.add(n)}function jp(t,n){t.classList?.remove(n)}function Dze(t,n,e){Yd(e).onDone(()=>t.processLeaveNode(n))}function nZ(t,n){for(let e=0;er.add(o)):n.set(t,i),e.delete(t),!0}class hb{constructor(n,e,i,r){this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(o,s)=>{},this._transitionEngine=new kze(n.body,e,i,r),this._timelineEngine=new gze(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=iO(this._driver,o,c,[]);if(c.length)throw function b7e(t,n){return new ce(3404,!1)}();a=function hze(t,n,e){return new fze(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]=FY(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]=FY(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 fb{static#e=this.initialStylesByElement=new WeakMap;constructor(n,e,i){this._element=n,this._startStyles=e,this._endStyles=i,this._state=0;let r=fb.initialStylesByElement.get(n);r||fb.initialStylesByElement.set(n,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Tc(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Tc(this._element,this._initialStyles),this._endStyles&&(Tc(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(fb.initialStylesByElement.delete(this._element),this._startStyles&&(Bh(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Bh(this._element,this._endStyles),this._endStyles=null),Tc(this._element,this._initialStyles),this._state=3)}}function fO(t){let n=null;return t.forEach((e,i)=>{(function Rze(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class rZ{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:nO(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class oZ{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return NY(n,e)}getParentElement(n){return qF(n)}query(n,e,i){return LY(n,e,i)}computeStyle(n,e,i){return nO(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 rZ);(function j7e(t,n){return 0===t||0===n})(i,r)&&d.forEach(f=>{f.currentSnapshot.forEach((m,g)=>l.set(g,m))});let u=function U7e(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 $7e(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,nO(t,a)))}}return n}(n,u,l);const h=function Mze(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=fO(n[0]),n.length>1&&(i=fO(n[n.length-1]))):n instanceof Map&&(e=fO(n)),e||i?new fb(t,e,i):null}(n,u);return new rZ(n,u,c,h)}}const sZ="@.disabled";class aZ{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==sZ?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 Pze extends aZ{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==sZ?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 Fze(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 Oze(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 Nze{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 aZ("",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 Pze(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 Lze=(()=>{class t extends hb{constructor(e,i,r){super(e,i,r,be(My,{optional:!0}))}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(i){return new(i||t)(X(xt),X(KF),X(XF))};static#t=this.\u0275prov=xe({token:t,factory:t.\u0275fac})}return t})();const cZ=[{provide:XF,useFactory:function Bze(){return new HY}},{provide:hb,useClass:Lze},{provide:XT,useFactory:function Vze(t,n,e){return new Nze(t,n,e)},deps:[RD,hb,ze]}],mO=[{provide:KF,useFactory:()=>new oZ},{provide:Qn,useValue:"BrowserAnimations"},...cZ],lZ=[{provide:KF,useClass:QF},{provide:Qn,useValue:"NoopAnimations"},...cZ];let Uze=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?lZ:mO}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({providers:mO,imports:[q8]})}return t})(),zze=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({imports:[Ft,Ft]})}return t})(),_He=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t});static#n=this.\u0275inj=bt({imports:[r1,Zr,Ft,id,y9,zze]})}return t})();Nm("firebase","10.9.0","app"),dj({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 yHe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=wt({type:t,bootstrap:[Y9e]});static#n=this.\u0275inj=bt({imports:[hge,q8,l1e,JPe,Uze,Awe,R9e,M9,Y0e,hve,Q9,kEe,ew,jye,bve,Xye,Wbe,s1e,Tve,Xve,S1e,BI,H1e,J1e,mCe,TCe,Kwe,zCe,_He,Uke,BI,z9e]})}return t})();ghe().bootstrapModule(yHe).catch(t=>console.error(t))},867:(Or,Hh,ao)=>{const Dc=ao(293).a,fe=ao(687).array;Or.exports=class $p{constructor(ri={}){Object.assign(this,{list:ri.emptyList&&[]||Array.prototype.concat.apply(Dc,[fe,ri.list||[]]),exclude:ri.exclude||[],splitRegex:ri.splitRegex||/\b/,placeHolder:ri.placeHolder||"*",regex:ri.regex||/[^a-zA-Z0-9|\$|\@]|\^/g,replaceRegex:ri.replaceRegex||/\w/g})}isProfane(ri){return this.list.filter(Ui=>{const rr=new RegExp(`\\b${Ui.replace(/(\W)/g,"\\$1")}\\b`,"gi");return!this.exclude.includes(Ui.toLowerCase())&&rr.test(ri)}).length>0||!1}replaceWord(ri){return ri.replace(this.regex,"").replace(this.replaceRegex,this.placeHolder)}clean(ri){return ri.split(this.splitRegex).map(Ui=>this.isProfane(Ui)?this.replaceWord(Ui):Ui).join(this.splitRegex.exec(ri)[0])}addWords(){let ri=Array.from(arguments);this.list.push(...ri),ri.map(Ui=>Ui.toLowerCase()).forEach(Ui=>{this.exclude.includes(Ui)&&this.exclude.splice(this.exclude.indexOf(Ui),1)})}removeWords(){this.exclude.push(...Array.from(arguments).map(ri=>ri.toLowerCase()))}}},402:Or=>{Or.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:(Or,Hh,ao)=>{Or.exports={object:ao(424),array:ao(402),regex:ao(658)}},424:Or=>{Or.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:Or=>{Or.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(Or,Hh){var ao,fe;void 0!==(fe="function"==typeof(ao=function(){"use strict";function ui(Mn,jn,Gs){var $n=new XMLHttpRequest;$n.open("GET",Mn),$n.responseType="blob",$n.onload=function(){jh($n.response,jn,Gs)},$n.onerror=function(){console.error("could not download file")},$n.send()}function ri(Mn){var jn=new XMLHttpRequest;jn.open("HEAD",Mn,!1);try{jn.send()}catch{}return 200<=jn.status&&299>=jn.status}function Ui(Mn){try{Mn.dispatchEvent(new MouseEvent("click"))}catch{var jn=document.createEvent("MouseEvents");jn.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Mn.dispatchEvent(jn)}}var rr="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,jt=rr.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),jh=rr.saveAs||("object"!=typeof window||window!==rr?function(){}:"download"in HTMLAnchorElement.prototype&&!jt?function(Mn,jn,Gs){var $n=rr.URL||rr.webkitURL,Vo=document.createElement("a");Vo.download=jn=jn||Mn.name||"download",Vo.rel="noopener","string"==typeof Mn?(Vo.href=Mn,Vo.origin===location.origin?Ui(Vo):ri(Vo.href)?ui(Mn,jn,Gs):Ui(Vo,Vo.target="_blank")):(Vo.href=$n.createObjectURL(Mn),setTimeout(function(){$n.revokeObjectURL(Vo.href)},4e4),setTimeout(function(){Ui(Vo)},0))}:"msSaveOrOpenBlob"in navigator?function(Mn,jn,Gs){if(jn=jn||Mn.name||"download","string"!=typeof Mn)navigator.msSaveOrOpenBlob(function $p(Mn,jn){return typeof jn>"u"?jn={autoBom:!1}:"object"!=typeof jn&&(console.warn("Deprecated: Expected third argument to be a object"),jn={autoBom:!jn}),jn.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Mn.type)?new Blob(["\ufeff",Mn],{type:Mn.type}):Mn}(Mn,Gs),jn);else if(ri(Mn))ui(Mn,jn,Gs);else{var $n=document.createElement("a");$n.href=Mn,$n.target="_blank",setTimeout(function(){Ui($n)})}}:function(Mn,jn,Gs,$n){if(($n=$n||open("","_blank"))&&($n.document.title=$n.document.body.innerText="downloading..."),"string"==typeof Mn)return ui(Mn,jn,Gs);var Vo="application/octet-stream"===Mn.type,_b=/constructor/i.test(rr.HTMLElement)||rr.safari,Gp=/CriOS\/[\d]+/.test(navigator.userAgent);if((Gp||Vo&&_b||jt)&&typeof FileReader<"u"){var $h=new FileReader;$h.onloadend=function(){var Tl=$h.result;Tl=Gp?Tl:Tl.replace(/^data:[^;]*;/,"data:attachment/file;"),$n?$n.location.href=Tl:location=Tl,$n=null},$h.readAsDataURL(Mn)}else{var Wp=rr.URL||rr.webkitURL,Gh=Wp.createObjectURL(Mn);$n?$n.location=Gh:location.href=Gh,$n=null,setTimeout(function(){Wp.revokeObjectURL(Gh)},4e4)}});rr.saveAs=jh.saveAs=jh,Or.exports=jh})?ao.apply(Hh,[]):ao)&&(Or.exports=fe)},293:Or=>{"use strict";Or.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"]}')}},Or=>{Or(Or.s=169)}]); \ No newline at end of file diff --git a/docs/styles.24aa9ff7052c5bfb.css b/docs/styles.24aa9ff7052c5bfb.css deleted file mode 100644 index bafbe08..0000000 --- a/docs/styles.24aa9ff7052c5bfb.css +++ /dev/null @@ -1 +0,0 @@ -.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)}.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-ripple-element{background-color:#0000001a}html{--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-warn{--mat-option-selected-state-label-text-color: #f44336}html{--mat-optgroup-label-text-color: rgba(0, 0, 0, .87)}.mat-pseudo-checkbox-full{color:#0000008a}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{color:#b0b0b0}.mat-primary .mat-pseudo-checkbox-checked.mat-pseudo-checkbox-minimal:after,.mat-primary .mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-minimal:after{color:#616161}.mat-primary .mat-pseudo-checkbox-checked.mat-pseudo-checkbox-full,.mat-primary .mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-full{background:#616161}.mat-primary .mat-pseudo-checkbox-checked.mat-pseudo-checkbox-full:after,.mat-primary .mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-full:after{color:#fafafa}.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-minimal:after,.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-minimal:after{color:#0277bd}.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-full,.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-full{background:#0277bd}.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-full:after,.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-full:after{color:#fafafa}.mat-accent .mat-pseudo-checkbox-checked.mat-pseudo-checkbox-minimal:after,.mat-accent .mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-minimal:after{color:#0277bd}.mat-accent .mat-pseudo-checkbox-checked.mat-pseudo-checkbox-full,.mat-accent .mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-full{background:#0277bd}.mat-accent .mat-pseudo-checkbox-checked.mat-pseudo-checkbox-full:after,.mat-accent .mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-full:after{color:#fafafa}.mat-warn .mat-pseudo-checkbox-checked.mat-pseudo-checkbox-minimal:after,.mat-warn .mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-minimal:after{color:#f44336}.mat-warn .mat-pseudo-checkbox-checked.mat-pseudo-checkbox-full,.mat-warn .mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-full{background:#f44336}.mat-warn .mat-pseudo-checkbox-checked.mat-pseudo-checkbox-full:after,.mat-warn .mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-full:after{color:#fafafa}.mat-pseudo-checkbox-disabled.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-minimal:after,.mat-pseudo-checkbox-disabled.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-minimal:after{color:#b0b0b0}.mat-pseudo-checkbox-disabled.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-full,.mat-pseudo-checkbox-disabled.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-full{background:#b0b0b0}.mat-app-background{background-color:#fafafa;color:#000000de}.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}.mat-mdc-card{--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)}.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 .mdc-linear-progress__buffer-dots{background-color:#61616140;background-color:var(--mdc-linear-progress-track-color, rgba(97, 97, 97, .25))}@media (forced-colors: active){.mat-mdc-progress-bar .mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mat-mdc-progress-bar .mdc-linear-progress__buffer-dots{background-color:transparent;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(97, 97, 97, 0.25)'/%3E%3C/svg%3E")}}.mat-mdc-progress-bar .mdc-linear-progress__buffer-bar{background-color:#61616140;background-color:var(--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-accent .mdc-linear-progress__buffer-dots{background-color:#0277bd40;background-color:var(--mdc-linear-progress-track-color, rgba(2, 119, 189, .25))}@media (forced-colors: active){.mat-mdc-progress-bar.mat-accent .mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mat-mdc-progress-bar.mat-accent .mdc-linear-progress__buffer-dots{background-color:transparent;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(2, 119, 189, 0.25)'/%3E%3C/svg%3E")}}.mat-mdc-progress-bar.mat-accent .mdc-linear-progress__buffer-bar{background-color:#0277bd40;background-color:var(--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)}@keyframes mdc-linear-progress-buffering{}.mat-mdc-progress-bar.mat-warn .mdc-linear-progress__buffer-dots{background-color:#f4433640;background-color:var(--mdc-linear-progress-track-color, rgba(244, 67, 54, .25))}@media (forced-colors: active){.mat-mdc-progress-bar.mat-warn .mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mat-mdc-progress-bar.mat-warn .mdc-linear-progress__buffer-dots{background-color:transparent;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")}}.mat-mdc-progress-bar.mat-warn .mdc-linear-progress__buffer-bar{background-color:#f4433640;background-color:var(--mdc-linear-progress-track-color, rgba(244, 67, 54, .25))}.mat-mdc-tooltip{--mdc-plain-tooltip-container-color: #616161;--mdc-plain-tooltip-supporting-text-color: #fff}html{--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-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-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-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-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-disabled-input-text-placeholder-color: rgba(0, 0, 0, .38)}.mat-mdc-form-field-error{color:var(--mdc-theme-error, #f44336)}.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{background-color:#000000de}.mat-mdc-form-field:hover .mat-mdc-form-field-focus-overlay{opacity:.04}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:.12}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix:after{color:#0000008a}.mat-mdc-form-field-type-mat-native-select.mat-focused.mat-primary .mat-mdc-form-field-infix:after{color:#616161de}.mat-mdc-form-field-type-mat-native-select.mat-focused.mat-accent .mat-mdc-form-field-infix:after{color:#0277bdde}.mat-mdc-form-field-type-mat-native-select.mat-focused.mat-warn .mat-mdc-form-field-infix:after{color:#f44336de}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix:after{color:#00000061}.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-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-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 transparent}[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 transparent}.mat-mdc-form-field-infix{min-height:56px}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:28px}.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( -34.75px) scale(var(--mat-mdc-form-field-floating-label-scale, .75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mat-mdc-form-field-infix{padding-top:16px;padding-bottom:16px}.mat-mdc-text-field-wrapper:not(.mdc-text-field--outlined) .mat-mdc-form-field-infix{padding-top:24px;padding-bottom:8px}.mdc-text-field--no-label:not(.mdc-text-field--outlined):not(.mdc-text-field--textarea) .mat-mdc-form-field-infix{padding-top:16px;padding-bottom:16px}html{--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-autocomplete-background-color: white}.mat-mdc-dialog-container{--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-disabled-label-text-color: #212121;--mdc-chip-elevated-container-color: #e0e0e0;--mdc-chip-elevated-disabled-container-color: #e0e0e0;--mdc-chip-focus-state-layer-color: black;--mdc-chip-focus-state-layer-opacity: .12;--mdc-chip-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-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-disabled-container-color: #616161;--mdc-chip-focus-state-layer-color: black;--mdc-chip-focus-state-layer-opacity: .12;--mdc-chip-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-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-disabled-container-color: #0277bd;--mdc-chip-focus-state-layer-color: black;--mdc-chip-focus-state-layer-opacity: .12;--mdc-chip-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-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-disabled-container-color: #f44336;--mdc-chip-focus-state-layer-color: black;--mdc-chip-focus-state-layer-opacity: .12;--mdc-chip-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-mdc-chip.mat-mdc-standard-chip{--mdc-chip-container-height: 32px}.mat-mdc-slide-toggle{--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}.mat-mdc-slide-toggle .mdc-form-field{color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, .87))}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:#00000061}.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}.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}.mat-mdc-slide-toggle{--mdc-switch-state-layer-size: 48px}.mat-mdc-radio-button .mdc-form-field{color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, .87))}.mat-mdc-radio-button.mat-primary{--mdc-radio-disabled-selected-icon-color: #000;--mdc-radio-disabled-unselected-icon-color: #000;--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: #000;--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: #000;--mdc-radio-disabled-unselected-icon-color: #000;--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: #000;--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: #000;--mdc-radio-disabled-unselected-icon-color: #000;--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: #000;--mat-radio-checked-ripple-color: #f44336;--mat-radio-disabled-label-color: rgba(0, 0, 0, .38)}.mat-mdc-radio-button .mdc-radio{--mdc-radio-state-layer-size: 40px}.mat-mdc-slider{--mdc-slider-label-container-color: black;--mdc-slider-label-label-text-color: white;--mdc-slider-disabled-handle-color: #000;--mdc-slider-disabled-active-track-color: #000;--mdc-slider-disabled-inactive-track-color: #000;--mdc-slider-with-tick-marks-disabled-container-color: #000;--mat-mdc-slider-value-indicator-opacity: .6}.mat-mdc-slider.mat-primary{--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-active-container-color: #fff;--mdc-slider-with-tick-marks-inactive-container-color: #616161;--mat-mdc-slider-ripple-color: #616161;--mat-mdc-slider-hover-ripple-color: rgba(97, 97, 97, .05);--mat-mdc-slider-focus-ripple-color: rgba(97, 97, 97, .2)}.mat-mdc-slider.mat-accent{--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-active-container-color: #fff;--mdc-slider-with-tick-marks-inactive-container-color: #0277bd;--mat-mdc-slider-ripple-color: #0277bd;--mat-mdc-slider-hover-ripple-color: rgba(2, 119, 189, .05);--mat-mdc-slider-focus-ripple-color: rgba(2, 119, 189, .2)}.mat-mdc-slider.mat-warn{--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-active-container-color: #fff;--mdc-slider-with-tick-marks-inactive-container-color: #f44336;--mat-mdc-slider-ripple-color: #f44336;--mat-mdc-slider-hover-ripple-color: rgba(244, 67, 54, .05);--mat-mdc-slider-focus-ripple-color: rgba(244, 67, 54, .2)}html{--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-mdc-list-base{--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: #000;--mdc-radio-disabled-unselected-icon-color: #000;--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: #000;--mdc-radio-disabled-unselected-icon-color: #000;--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: #000;--mdc-radio-disabled-unselected-icon-color: #000;--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: #fff;--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: #fff;--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: #fff;--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}.mat-mdc-list-base{--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-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-mdc-paginator .mat-mdc-form-field-infix{min-height:40px}.mat-mdc-paginator .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:20px}.mat-mdc-paginator .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( -26.75px) scale(var(--mat-mdc-form-field-floating-label-scale, .75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-paginator .mat-mdc-text-field-wrapper.mdc-text-field--outlined .mat-mdc-form-field-infix{padding-top:8px;padding-bottom:8px}.mat-mdc-paginator .mat-mdc-text-field-wrapper:not(.mdc-text-field--outlined) .mat-mdc-form-field-infix{padding-top:8px;padding-bottom:8px}.mat-mdc-paginator .mdc-text-field--no-label:not(.mdc-text-field--outlined):not(.mdc-text-field--textarea) .mat-mdc-form-field-infix{padding-top:8px;padding-bottom:8px}.mat-mdc-paginator .mat-mdc-text-field-wrapper:not(.mdc-text-field--outlined) .mat-mdc-floating-label{display:none}.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: #000;--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: #000;--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: #000;--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-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: #fff;--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-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: #fff;--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: #fff;--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-checkbox .mdc-form-field{color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, .87))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{color:#00000061}html{--mdc-checkbox-state-layer-size: 40px}.mat-mdc-button.mat-unthemed{--mdc-text-button-label-text-color: #000}.mat-mdc-button.mat-primary{--mdc-text-button-label-text-color: #616161}.mat-mdc-button.mat-accent{--mdc-text-button-label-text-color: #0277bd}.mat-mdc-button.mat-warn{--mdc-text-button-label-text-color: #f44336}.mat-mdc-button[disabled][disabled]{--mdc-text-button-disabled-label-text-color: rgba(0, 0, 0, .38);--mdc-text-button-label-text-color: rgba(0, 0, 0, .38)}.mat-mdc-unelevated-button.mat-unthemed{--mdc-filled-button-container-color: #fff;--mdc-filled-button-label-text-color: #000}.mat-mdc-unelevated-button.mat-primary{--mdc-filled-button-container-color: #616161;--mdc-filled-button-label-text-color: #fff}.mat-mdc-unelevated-button.mat-accent{--mdc-filled-button-container-color: #0277bd;--mdc-filled-button-label-text-color: #fff}.mat-mdc-unelevated-button.mat-warn{--mdc-filled-button-container-color: #f44336;--mdc-filled-button-label-text-color: #fff}.mat-mdc-unelevated-button[disabled][disabled]{--mdc-filled-button-disabled-container-color: rgba(0, 0, 0, .12);--mdc-filled-button-disabled-label-text-color: rgba(0, 0, 0, .38);--mdc-filled-button-container-color: rgba(0, 0, 0, .12);--mdc-filled-button-label-text-color: rgba(0, 0, 0, .38)}.mat-mdc-raised-button.mat-unthemed{--mdc-protected-button-container-color: #fff;--mdc-protected-button-label-text-color: #000}.mat-mdc-raised-button.mat-primary{--mdc-protected-button-container-color: #616161;--mdc-protected-button-label-text-color: #fff}.mat-mdc-raised-button.mat-accent{--mdc-protected-button-container-color: #0277bd;--mdc-protected-button-label-text-color: #fff}.mat-mdc-raised-button.mat-warn{--mdc-protected-button-container-color: #f44336;--mdc-protected-button-label-text-color: #fff}.mat-mdc-raised-button[disabled][disabled]{--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-color: rgba(0, 0, 0, .12);--mdc-protected-button-label-text-color: rgba(0, 0, 0, .38);--mdc-protected-button-container-elevation: 0}.mat-mdc-outlined-button{--mdc-outlined-button-outline-color: rgba(0, 0, 0, .12)}.mat-mdc-outlined-button.mat-unthemed{--mdc-outlined-button-label-text-color: #000}.mat-mdc-outlined-button.mat-primary{--mdc-outlined-button-label-text-color: #616161}.mat-mdc-outlined-button.mat-accent{--mdc-outlined-button-label-text-color: #0277bd}.mat-mdc-outlined-button.mat-warn{--mdc-outlined-button-label-text-color: #f44336}.mat-mdc-outlined-button[disabled][disabled]{--mdc-outlined-button-label-text-color: rgba(0, 0, 0, .38);--mdc-outlined-button-disabled-label-text-color: rgba(0, 0, 0, .38);--mdc-outlined-button-outline-color: rgba(0, 0, 0, .12);--mdc-outlined-button-disabled-outline-color: rgba(0, 0, 0, .12)}.mat-mdc-button,.mat-mdc-outlined-button{--mat-mdc-button-persistent-ripple-color: #000;--mat-mdc-button-ripple-color: rgba(0, 0, 0, .1)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple:before,.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple:before{opacity:.04}.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-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple:before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple:before{opacity:.12}.mat-mdc-button:active .mat-mdc-button-persistent-ripple:before,.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple:before{opacity:.12}.mat-mdc-button.mat-primary,.mat-mdc-outlined-button.mat-primary{--mat-mdc-button-persistent-ripple-color: #616161;--mat-mdc-button-ripple-color: rgba(97, 97, 97, .1)}.mat-mdc-button.mat-accent,.mat-mdc-outlined-button.mat-accent{--mat-mdc-button-persistent-ripple-color: #0277bd;--mat-mdc-button-ripple-color: rgba(2, 119, 189, .1)}.mat-mdc-button.mat-warn,.mat-mdc-outlined-button.mat-warn{--mat-mdc-button-persistent-ripple-color: #f44336;--mat-mdc-button-ripple-color: rgba(244, 67, 54, .1)}.mat-mdc-raised-button,.mat-mdc-unelevated-button{--mat-mdc-button-persistent-ripple-color: #000;--mat-mdc-button-ripple-color: rgba(0, 0, 0, .1)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple:before,.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple:before{opacity:.04}.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-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple:before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple:before{opacity:.12}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple:before,.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple:before{opacity:.12}.mat-mdc-raised-button.mat-primary,.mat-mdc-unelevated-button.mat-primary,.mat-mdc-raised-button.mat-accent,.mat-mdc-unelevated-button.mat-accent,.mat-mdc-raised-button.mat-warn,.mat-mdc-unelevated-button.mat-warn{--mat-mdc-button-persistent-ripple-color: #fff;--mat-mdc-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-button.mat-mdc-button-base,.mat-mdc-raised-button.mat-mdc-button-base,.mat-mdc-unelevated-button.mat-mdc-button-base,.mat-mdc-outlined-button.mat-mdc-button-base{height:36px}.mat-mdc-icon-button{--mdc-icon-button-icon-color: inherit;--mat-mdc-button-persistent-ripple-color: #000;--mat-mdc-button-ripple-color: rgba(0, 0, 0, .1)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple:before{opacity:.04}.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{opacity:.12}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple:before{opacity:.12}.mat-mdc-icon-button.mat-primary{--mat-mdc-button-persistent-ripple-color: #6200ee;--mat-mdc-button-ripple-color: rgba(98, 0, 238, .1)}.mat-mdc-icon-button.mat-accent{--mat-mdc-button-persistent-ripple-color: #018786;--mat-mdc-button-ripple-color: rgba(1, 135, 134, .1)}.mat-mdc-icon-button.mat-warn{--mat-mdc-button-persistent-ripple-color: #b00020;--mat-mdc-button-ripple-color: rgba(176, 0, 32, .1)}.mat-mdc-icon-button.mat-primary{--mdc-icon-button-icon-color: #616161;--mat-mdc-button-persistent-ripple-color: #616161;--mat-mdc-button-ripple-color: rgba(97, 97, 97, .1)}.mat-mdc-icon-button.mat-accent{--mdc-icon-button-icon-color: #0277bd;--mat-mdc-button-persistent-ripple-color: #0277bd;--mat-mdc-button-ripple-color: rgba(2, 119, 189, .1)}.mat-mdc-icon-button.mat-warn{--mdc-icon-button-icon-color: #f44336;--mat-mdc-button-persistent-ripple-color: #f44336;--mat-mdc-button-ripple-color: rgba(244, 67, 54, .1)}.mat-mdc-icon-button[disabled][disabled]{--mdc-icon-button-icon-color: rgba(0, 0, 0, .38);--mdc-icon-button-disabled-icon-color: rgba(0, 0, 0, .38)}.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}.mat-mdc-fab,.mat-mdc-mini-fab{--mat-mdc-button-persistent-ripple-color: #000;--mat-mdc-button-ripple-color: rgba(0, 0, 0, .1)}.mat-mdc-fab:hover .mat-mdc-button-persistent-ripple:before,.mat-mdc-mini-fab:hover .mat-mdc-button-persistent-ripple:before{opacity:.04}.mat-mdc-fab.cdk-program-focused .mat-mdc-button-persistent-ripple:before,.mat-mdc-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple:before,.mat-mdc-mini-fab.cdk-program-focused .mat-mdc-button-persistent-ripple:before,.mat-mdc-mini-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple:before{opacity:.12}.mat-mdc-fab:active .mat-mdc-button-persistent-ripple:before,.mat-mdc-mini-fab:active .mat-mdc-button-persistent-ripple:before{opacity:.12}.mat-mdc-fab.mat-primary,.mat-mdc-mini-fab.mat-primary,.mat-mdc-fab.mat-accent,.mat-mdc-mini-fab.mat-accent,.mat-mdc-fab.mat-warn,.mat-mdc-mini-fab.mat-warn{--mat-mdc-button-persistent-ripple-color: #fff;--mat-mdc-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-fab[disabled][disabled],.mat-mdc-mini-fab[disabled][disabled]{--mdc-fab-container-color: rgba(0, 0, 0, .12);--mdc-fab-icon-color: rgba(0, 0, 0, .38);--mat-mdc-fab-color: rgba(0, 0, 0, .38)}.mat-mdc-fab.mat-unthemed,.mat-mdc-mini-fab.mat-unthemed{--mdc-fab-container-color: white;--mdc-fab-icon-color: black;--mat-mdc-fab-color: #000}.mat-mdc-fab.mat-primary,.mat-mdc-mini-fab.mat-primary{--mdc-fab-container-color: #616161;--mdc-fab-icon-color: white;--mat-mdc-fab-color: #fff}.mat-mdc-fab.mat-accent,.mat-mdc-mini-fab.mat-accent{--mdc-fab-container-color: #0277bd;--mdc-fab-icon-color: white;--mat-mdc-fab-color: #fff}.mat-mdc-fab.mat-warn,.mat-mdc-mini-fab.mat-warn{--mdc-fab-container-color: #f44336;--mdc-fab-icon-color: white;--mat-mdc-fab-color: #fff}.mat-mdc-snack-bar-container{--mdc-snackbar-container-color: #333333;--mdc-snackbar-supporting-text-color: rgba(255, 255, 255, .87);--mat-snack-bar-button-color: #0277bd}html{--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}.mat-mdc-progress-spinner{--mdc-circular-progress-active-indicator-color: #616161}.mat-mdc-progress-spinner.mat-accent{--mdc-circular-progress-active-indicator-color: #0277bd}.mat-mdc-progress-spinner.mat-warn{--mdc-circular-progress-active-indicator-color: #f44336}.mat-badge{position:relative}.mat-badge.mat-badge{overflow:visible}.mat-badge-content{position:absolute;text-align:center;display:inline-block;border-radius:50%;transition:transform .2s ease-in-out;transform:scale(.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;pointer-events:none;background-color:var(--mat-badge-background-color);color:var(--mat-badge-text-color);font-family:Roboto,sans-serif;font-family:var(--mat-badge-text-font, Roboto, sans-serif);font-size:12px;font-size:var(--mat-badge-text-size, 12px);font-weight:600;font-weight:var(--mat-badge-text-weight, 600)}.cdk-high-contrast-active .mat-badge-content{outline:solid 1px;border-radius:0}.mat-badge-disabled .mat-badge-content{background-color:var(--mat-badge-disabled-state-background-color);color:var(--mat-badge-disabled-state-text-color)}.mat-badge-hidden .mat-badge-content{display:none}.ng-animate-disabled .mat-badge-content,.mat-badge-content._mat-animation-noopable{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:16px;height:16px;line-height:16px;font-size:9px;font-size:var(--mat-badge-small-size-text-size, 9px)}.mat-badge-small.mat-badge-above .mat-badge-content{top:-8px}.mat-badge-small.mat-badge-below .mat-badge-content{bottom:-8px}.mat-badge-small.mat-badge-before .mat-badge-content{left:-16px}[dir=rtl] .mat-badge-small.mat-badge-before .mat-badge-content{left:auto;right:-16px}.mat-badge-small.mat-badge-after .mat-badge-content{right:-16px}[dir=rtl] .mat-badge-small.mat-badge-after .mat-badge-content{right:auto;left:-16px}.mat-badge-small.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-8px}[dir=rtl] .mat-badge-small.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-8px}.mat-badge-small.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-8px}[dir=rtl] .mat-badge-small.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-8px}.mat-badge-medium .mat-badge-content{width:22px;height:22px;line-height:22px}.mat-badge-medium.mat-badge-above .mat-badge-content{top:-11px}.mat-badge-medium.mat-badge-below .mat-badge-content{bottom:-11px}.mat-badge-medium.mat-badge-before .mat-badge-content{left:-22px}[dir=rtl] .mat-badge-medium.mat-badge-before .mat-badge-content{left:auto;right:-22px}.mat-badge-medium.mat-badge-after .mat-badge-content{right:-22px}[dir=rtl] .mat-badge-medium.mat-badge-after .mat-badge-content{right:auto;left:-22px}.mat-badge-medium.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-11px}[dir=rtl] .mat-badge-medium.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-11px}.mat-badge-medium.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-11px}[dir=rtl] .mat-badge-medium.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-11px}.mat-badge-large .mat-badge-content{width:28px;height:28px;line-height:28px;font-size:24px;font-size:var(--mat-badge-large-size-text-size, 24px)}.mat-badge-large.mat-badge-above .mat-badge-content{top:-14px}.mat-badge-large.mat-badge-below .mat-badge-content{bottom:-14px}.mat-badge-large.mat-badge-before .mat-badge-content{left:-28px}[dir=rtl] .mat-badge-large.mat-badge-before .mat-badge-content{left:auto;right:-28px}.mat-badge-large.mat-badge-after .mat-badge-content{right:-28px}[dir=rtl] .mat-badge-large.mat-badge-after .mat-badge-content{right:auto;left:-28px}.mat-badge-large.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-14px}[dir=rtl] .mat-badge-large.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-14px}.mat-badge-large.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-14px}[dir=rtl] .mat-badge-large.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-14px}html{--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-text-color: rgba(0, 0, 0, .87);--mat-bottom-sheet-container-background-color: white;--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-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-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-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}.mat-calendar-controls .mat-mdc-icon-button.mat-mdc-button-base .mat-mdc-button-touch-target{display:none}html{--mat-divider-color: rgba(0, 0, 0, .12);--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-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-header-arrow{color:#757575}html{--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{background:#fff}.mat-tree-node,.mat-nested-tree-node{color:#000000de}.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)} diff --git a/docs/styles.b0373a02df2a675f.css b/docs/styles.b0373a02df2a675f.css new file mode 100644 index 0000000..5f3ab6f --- /dev/null +++ b/docs/styles.b0373a02df2a675f.css @@ -0,0 +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)} diff --git a/package-lock.json b/package-lock.json index 012916b..ba2b7f4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,12 +9,12 @@ "version": "0.0.0", "dependencies": { "@angular/animations": "^17.3.3", - "@angular/cdk": "^16.2.14", + "@angular/cdk": "^17.3.3", "@angular/common": "^17.3.3", "@angular/compiler": "^17.3.3", "@angular/core": "^17.3.3", "@angular/forms": "^17.3.3", - "@angular/material": "^16.2.14", + "@angular/material": "^17.3.3", "@angular/platform-browser": "^17.3.3", "@angular/platform-browser-dynamic": "^17.3.3", "@angular/router": "^17.3.3", @@ -375,9 +375,9 @@ } }, "node_modules/@angular/cdk": { - "version": "16.2.14", - "resolved": "https://registry.npmjs.org/@angular/cdk/-/cdk-16.2.14.tgz", - "integrity": "sha512-n6PrGdiVeSTEmM/HEiwIyg6YQUUymZrb5afaNLGFRM5YL0Y8OBqd+XhCjb0OfD/AfgCUtedVEPwNqrfW8KzgGw==", + "version": "17.3.3", + "resolved": "https://registry.npmjs.org/@angular/cdk/-/cdk-17.3.3.tgz", + "integrity": "sha512-hfS9pwaNE6CTZqP3FBh9tZPbuf//bDqZ5IpMzscfDFrwX8ycxBiI3znH/rFSf9l1rL0OQGoqWWNVfJCT+RrukA==", "dependencies": { "tslib": "^2.3.0" }, @@ -385,8 +385,8 @@ "parse5": "^7.1.2" }, "peerDependencies": { - "@angular/common": "^16.0.0 || ^17.0.0", - "@angular/core": "^16.0.0 || ^17.0.0", + "@angular/common": "^17.0.0 || ^18.0.0", + "@angular/core": "^17.0.0 || ^18.0.0", "rxjs": "^6.5.3 || ^7.4.0" } }, @@ -531,66 +531,66 @@ } }, "node_modules/@angular/material": { - "version": "16.2.14", - "resolved": "https://registry.npmjs.org/@angular/material/-/material-16.2.14.tgz", - "integrity": "sha512-zQIxUb23elPfiIvddqkIDYqQhAHa9ZwMblfbv+ug8bxr4D0Dw360jIarxCgMjAcLj7Ccl3GBqZMUnVeM6cjthw==", - "dependencies": { - "@material/animation": "15.0.0-canary.bc9ae6c9c.0", - "@material/auto-init": "15.0.0-canary.bc9ae6c9c.0", - "@material/banner": "15.0.0-canary.bc9ae6c9c.0", - "@material/base": "15.0.0-canary.bc9ae6c9c.0", - "@material/button": "15.0.0-canary.bc9ae6c9c.0", - "@material/card": "15.0.0-canary.bc9ae6c9c.0", - "@material/checkbox": "15.0.0-canary.bc9ae6c9c.0", - "@material/chips": "15.0.0-canary.bc9ae6c9c.0", - "@material/circular-progress": "15.0.0-canary.bc9ae6c9c.0", - "@material/data-table": "15.0.0-canary.bc9ae6c9c.0", - "@material/density": "15.0.0-canary.bc9ae6c9c.0", - "@material/dialog": "15.0.0-canary.bc9ae6c9c.0", - "@material/dom": "15.0.0-canary.bc9ae6c9c.0", - "@material/drawer": "15.0.0-canary.bc9ae6c9c.0", - "@material/elevation": "15.0.0-canary.bc9ae6c9c.0", - "@material/fab": "15.0.0-canary.bc9ae6c9c.0", - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/floating-label": "15.0.0-canary.bc9ae6c9c.0", - "@material/form-field": "15.0.0-canary.bc9ae6c9c.0", - "@material/icon-button": "15.0.0-canary.bc9ae6c9c.0", - "@material/image-list": "15.0.0-canary.bc9ae6c9c.0", - "@material/layout-grid": "15.0.0-canary.bc9ae6c9c.0", - "@material/line-ripple": "15.0.0-canary.bc9ae6c9c.0", - "@material/linear-progress": "15.0.0-canary.bc9ae6c9c.0", - "@material/list": "15.0.0-canary.bc9ae6c9c.0", - "@material/menu": "15.0.0-canary.bc9ae6c9c.0", - "@material/menu-surface": "15.0.0-canary.bc9ae6c9c.0", - "@material/notched-outline": "15.0.0-canary.bc9ae6c9c.0", - "@material/radio": "15.0.0-canary.bc9ae6c9c.0", - "@material/ripple": "15.0.0-canary.bc9ae6c9c.0", - "@material/rtl": "15.0.0-canary.bc9ae6c9c.0", - "@material/segmented-button": "15.0.0-canary.bc9ae6c9c.0", - "@material/select": "15.0.0-canary.bc9ae6c9c.0", - "@material/shape": "15.0.0-canary.bc9ae6c9c.0", - "@material/slider": "15.0.0-canary.bc9ae6c9c.0", - "@material/snackbar": "15.0.0-canary.bc9ae6c9c.0", - "@material/switch": "15.0.0-canary.bc9ae6c9c.0", - "@material/tab": "15.0.0-canary.bc9ae6c9c.0", - "@material/tab-bar": "15.0.0-canary.bc9ae6c9c.0", - "@material/tab-indicator": "15.0.0-canary.bc9ae6c9c.0", - "@material/tab-scroller": "15.0.0-canary.bc9ae6c9c.0", - "@material/textfield": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", - "@material/tooltip": "15.0.0-canary.bc9ae6c9c.0", - "@material/top-app-bar": "15.0.0-canary.bc9ae6c9c.0", - "@material/touch-target": "15.0.0-canary.bc9ae6c9c.0", - "@material/typography": "15.0.0-canary.bc9ae6c9c.0", + "version": "17.3.3", + "resolved": "https://registry.npmjs.org/@angular/material/-/material-17.3.3.tgz", + "integrity": "sha512-cb3PYY+Lf3FvXxXIRmOBcTn5QS9Ghr5Eq0aiJiiYV6YVohr0YGWsndMCZ/5a2j8fxpboDo9THeTnOuuAOJv7AA==", + "dependencies": { + "@material/animation": "15.0.0-canary.7f224ddd4.0", + "@material/auto-init": "15.0.0-canary.7f224ddd4.0", + "@material/banner": "15.0.0-canary.7f224ddd4.0", + "@material/base": "15.0.0-canary.7f224ddd4.0", + "@material/button": "15.0.0-canary.7f224ddd4.0", + "@material/card": "15.0.0-canary.7f224ddd4.0", + "@material/checkbox": "15.0.0-canary.7f224ddd4.0", + "@material/chips": "15.0.0-canary.7f224ddd4.0", + "@material/circular-progress": "15.0.0-canary.7f224ddd4.0", + "@material/data-table": "15.0.0-canary.7f224ddd4.0", + "@material/density": "15.0.0-canary.7f224ddd4.0", + "@material/dialog": "15.0.0-canary.7f224ddd4.0", + "@material/dom": "15.0.0-canary.7f224ddd4.0", + "@material/drawer": "15.0.0-canary.7f224ddd4.0", + "@material/elevation": "15.0.0-canary.7f224ddd4.0", + "@material/fab": "15.0.0-canary.7f224ddd4.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/floating-label": "15.0.0-canary.7f224ddd4.0", + "@material/form-field": "15.0.0-canary.7f224ddd4.0", + "@material/icon-button": "15.0.0-canary.7f224ddd4.0", + "@material/image-list": "15.0.0-canary.7f224ddd4.0", + "@material/layout-grid": "15.0.0-canary.7f224ddd4.0", + "@material/line-ripple": "15.0.0-canary.7f224ddd4.0", + "@material/linear-progress": "15.0.0-canary.7f224ddd4.0", + "@material/list": "15.0.0-canary.7f224ddd4.0", + "@material/menu": "15.0.0-canary.7f224ddd4.0", + "@material/menu-surface": "15.0.0-canary.7f224ddd4.0", + "@material/notched-outline": "15.0.0-canary.7f224ddd4.0", + "@material/radio": "15.0.0-canary.7f224ddd4.0", + "@material/ripple": "15.0.0-canary.7f224ddd4.0", + "@material/rtl": "15.0.0-canary.7f224ddd4.0", + "@material/segmented-button": "15.0.0-canary.7f224ddd4.0", + "@material/select": "15.0.0-canary.7f224ddd4.0", + "@material/shape": "15.0.0-canary.7f224ddd4.0", + "@material/slider": "15.0.0-canary.7f224ddd4.0", + "@material/snackbar": "15.0.0-canary.7f224ddd4.0", + "@material/switch": "15.0.0-canary.7f224ddd4.0", + "@material/tab": "15.0.0-canary.7f224ddd4.0", + "@material/tab-bar": "15.0.0-canary.7f224ddd4.0", + "@material/tab-indicator": "15.0.0-canary.7f224ddd4.0", + "@material/tab-scroller": "15.0.0-canary.7f224ddd4.0", + "@material/textfield": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", + "@material/tooltip": "15.0.0-canary.7f224ddd4.0", + "@material/top-app-bar": "15.0.0-canary.7f224ddd4.0", + "@material/touch-target": "15.0.0-canary.7f224ddd4.0", + "@material/typography": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.3.0" }, "peerDependencies": { - "@angular/animations": "^16.0.0 || ^17.0.0", - "@angular/cdk": "16.2.14", - "@angular/common": "^16.0.0 || ^17.0.0", - "@angular/core": "^16.0.0 || ^17.0.0", - "@angular/forms": "^16.0.0 || ^17.0.0", - "@angular/platform-browser": "^16.0.0 || ^17.0.0", + "@angular/animations": "^17.0.0 || ^18.0.0", + "@angular/cdk": "17.3.3", + "@angular/common": "^17.0.0 || ^18.0.0", + "@angular/core": "^17.0.0 || ^18.0.0", + "@angular/forms": "^17.0.0 || ^18.0.0", + "@angular/platform-browser": "^17.0.0 || ^18.0.0", "rxjs": "^6.5.3 || ^7.4.0" } }, @@ -3518,754 +3518,754 @@ } }, "node_modules/@material/animation": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/animation/-/animation-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-leRf+BcZTfC/iSigLXnYgcHAGvFVQveoJT5+2PIRdyPI/bIG7hhciRgacHRsCKC0sGya81dDblLgdkjSUemYLw==", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/animation/-/animation-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-1GSJaPKef+7HRuV+HusVZHps64cmZuOItDbt40tjJVaikcaZvwmHlcTxRIqzcRoCdt5ZKHh3NoO7GB9Khg4Jnw==", "dependencies": { "tslib": "^2.1.0" } }, "node_modules/@material/auto-init": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/auto-init/-/auto-init-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-uxzDq7q3c0Bu1pAsMugc1Ik9ftQYQqZY+5e2ybNplT8gTImJhNt4M2mMiMHbMANk2l3UgICmUyRSomgPBWCPIA==", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/auto-init/-/auto-init-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-t7ZGpRJ3ec0QDUO0nJu/SMgLW7qcuG2KqIsEYD1Ej8qhI2xpdR2ydSDQOkVEitXmKoGol1oq4nYSBjTlB65GqA==", "dependencies": { - "@material/base": "15.0.0-canary.bc9ae6c9c.0", + "@material/base": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/banner": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/banner/-/banner-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-SHeVoidCUFVhXANN6MNWxK9SZoTSgpIP8GZB7kAl52BywLxtV+FirTtLXkg/8RUkxZRyRWl7HvQ0ZFZa7QQAyA==", - "dependencies": { - "@material/base": "15.0.0-canary.bc9ae6c9c.0", - "@material/button": "15.0.0-canary.bc9ae6c9c.0", - "@material/dom": "15.0.0-canary.bc9ae6c9c.0", - "@material/elevation": "15.0.0-canary.bc9ae6c9c.0", - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/ripple": "15.0.0-canary.bc9ae6c9c.0", - "@material/rtl": "15.0.0-canary.bc9ae6c9c.0", - "@material/shape": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", - "@material/tokens": "15.0.0-canary.bc9ae6c9c.0", - "@material/typography": "15.0.0-canary.bc9ae6c9c.0", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/banner/-/banner-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-g9wBUZzYBizyBcBQXTIafnRUUPi7efU9gPJfzeGgkynXiccP/vh5XMmH+PBxl5v+4MlP/d4cZ2NUYoAN7UTqSA==", + "dependencies": { + "@material/base": "15.0.0-canary.7f224ddd4.0", + "@material/button": "15.0.0-canary.7f224ddd4.0", + "@material/dom": "15.0.0-canary.7f224ddd4.0", + "@material/elevation": "15.0.0-canary.7f224ddd4.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/ripple": "15.0.0-canary.7f224ddd4.0", + "@material/rtl": "15.0.0-canary.7f224ddd4.0", + "@material/shape": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", + "@material/tokens": "15.0.0-canary.7f224ddd4.0", + "@material/typography": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/base": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/base/-/base-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-Fc3vGuOf+duGo22HTRP6dHdc+MUe0VqQfWOuKrn/wXKD62m0QQR2TqJd3rRhCumH557T5QUyheW943M3E+IGfg==", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/base/-/base-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-I9KQOKXpLfJkP8MqZyr8wZIzdPHrwPjFvGd9zSK91/vPyE4hzHRJc/0njsh9g8Lm9PRYLbifXX+719uTbHxx+A==", "dependencies": { "tslib": "^2.1.0" } }, "node_modules/@material/button": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/button/-/button-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-3AQgwrPZCTWHDJvwgKq7Cj+BurQ4wTjDdGL+FEnIGUAjJDskwi1yzx5tW2Wf/NxIi7IoPFyOY3UB41jwMiOrnw==", - "dependencies": { - "@material/density": "15.0.0-canary.bc9ae6c9c.0", - "@material/dom": "15.0.0-canary.bc9ae6c9c.0", - "@material/elevation": "15.0.0-canary.bc9ae6c9c.0", - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/focus-ring": "15.0.0-canary.bc9ae6c9c.0", - "@material/ripple": "15.0.0-canary.bc9ae6c9c.0", - "@material/rtl": "15.0.0-canary.bc9ae6c9c.0", - "@material/shape": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", - "@material/tokens": "15.0.0-canary.bc9ae6c9c.0", - "@material/touch-target": "15.0.0-canary.bc9ae6c9c.0", - "@material/typography": "15.0.0-canary.bc9ae6c9c.0", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/button/-/button-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-BHB7iyHgRVH+JF16+iscR+Qaic+p7LU1FOLgP8KucRlpF9tTwIxQA6mJwGRi5gUtcG+vyCmzVS+hIQ6DqT/7BA==", + "dependencies": { + "@material/density": "15.0.0-canary.7f224ddd4.0", + "@material/dom": "15.0.0-canary.7f224ddd4.0", + "@material/elevation": "15.0.0-canary.7f224ddd4.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/focus-ring": "15.0.0-canary.7f224ddd4.0", + "@material/ripple": "15.0.0-canary.7f224ddd4.0", + "@material/rtl": "15.0.0-canary.7f224ddd4.0", + "@material/shape": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", + "@material/tokens": "15.0.0-canary.7f224ddd4.0", + "@material/touch-target": "15.0.0-canary.7f224ddd4.0", + "@material/typography": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/card": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/card/-/card-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-nPlhiWvbLmooTnBmV5gmzB0eLWSgLKsSRBYAbIBmO76Okgz1y+fQNLag+lpm/TDaHVsn5fmQJH8e0zIg0rYsQA==", - "dependencies": { - "@material/dom": "15.0.0-canary.bc9ae6c9c.0", - "@material/elevation": "15.0.0-canary.bc9ae6c9c.0", - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/ripple": "15.0.0-canary.bc9ae6c9c.0", - "@material/rtl": "15.0.0-canary.bc9ae6c9c.0", - "@material/shape": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", - "@material/tokens": "15.0.0-canary.bc9ae6c9c.0", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/card/-/card-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-kt7y9/IWOtJTr3Z/AoWJT3ZLN7CLlzXhx2udCLP9ootZU2bfGK0lzNwmo80bv/pJfrY9ihQKCtuGTtNxUy+vIw==", + "dependencies": { + "@material/dom": "15.0.0-canary.7f224ddd4.0", + "@material/elevation": "15.0.0-canary.7f224ddd4.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/ripple": "15.0.0-canary.7f224ddd4.0", + "@material/rtl": "15.0.0-canary.7f224ddd4.0", + "@material/shape": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", + "@material/tokens": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/checkbox": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/checkbox/-/checkbox-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-4tpNnO1L0IppoMF3oeQn8F17t2n0WHB0D7mdJK9rhrujen/fLbekkIC82APB3fdGtLGg3qeNqDqPsJm1YnmrwA==", - "dependencies": { - "@material/animation": "15.0.0-canary.bc9ae6c9c.0", - "@material/base": "15.0.0-canary.bc9ae6c9c.0", - "@material/density": "15.0.0-canary.bc9ae6c9c.0", - "@material/dom": "15.0.0-canary.bc9ae6c9c.0", - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/focus-ring": "15.0.0-canary.bc9ae6c9c.0", - "@material/ripple": "15.0.0-canary.bc9ae6c9c.0", - "@material/rtl": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", - "@material/touch-target": "15.0.0-canary.bc9ae6c9c.0", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/checkbox/-/checkbox-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-rURcrL5O1u6hzWR+dNgiQ/n89vk6tdmdP3mZgnxJx61q4I/k1yijKqNJSLrkXH7Rto3bM5NRKMOlgvMvVd7UMQ==", + "dependencies": { + "@material/animation": "15.0.0-canary.7f224ddd4.0", + "@material/base": "15.0.0-canary.7f224ddd4.0", + "@material/density": "15.0.0-canary.7f224ddd4.0", + "@material/dom": "15.0.0-canary.7f224ddd4.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/focus-ring": "15.0.0-canary.7f224ddd4.0", + "@material/ripple": "15.0.0-canary.7f224ddd4.0", + "@material/rtl": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", + "@material/touch-target": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/chips": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/chips/-/chips-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-fqHKvE5bSWK0bXVkf57MWxZtytGqYBZvvHIOs4JI9HPHEhaJy4CpSw562BEtbm3yFxxALoQknvPW2KYzvADnmA==", - "dependencies": { - "@material/animation": "15.0.0-canary.bc9ae6c9c.0", - "@material/base": "15.0.0-canary.bc9ae6c9c.0", - "@material/checkbox": "15.0.0-canary.bc9ae6c9c.0", - "@material/density": "15.0.0-canary.bc9ae6c9c.0", - "@material/dom": "15.0.0-canary.bc9ae6c9c.0", - "@material/elevation": "15.0.0-canary.bc9ae6c9c.0", - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/focus-ring": "15.0.0-canary.bc9ae6c9c.0", - "@material/ripple": "15.0.0-canary.bc9ae6c9c.0", - "@material/rtl": "15.0.0-canary.bc9ae6c9c.0", - "@material/shape": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", - "@material/tokens": "15.0.0-canary.bc9ae6c9c.0", - "@material/touch-target": "15.0.0-canary.bc9ae6c9c.0", - "@material/typography": "15.0.0-canary.bc9ae6c9c.0", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/chips/-/chips-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-AYAivV3GSk/T/nRIpH27sOHFPaSMrE3L0WYbnb5Wa93FgY8a0fbsFYtSH2QmtwnzXveg+B1zGTt7/xIIcynKdQ==", + "dependencies": { + "@material/animation": "15.0.0-canary.7f224ddd4.0", + "@material/base": "15.0.0-canary.7f224ddd4.0", + "@material/checkbox": "15.0.0-canary.7f224ddd4.0", + "@material/density": "15.0.0-canary.7f224ddd4.0", + "@material/dom": "15.0.0-canary.7f224ddd4.0", + "@material/elevation": "15.0.0-canary.7f224ddd4.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/focus-ring": "15.0.0-canary.7f224ddd4.0", + "@material/ripple": "15.0.0-canary.7f224ddd4.0", + "@material/rtl": "15.0.0-canary.7f224ddd4.0", + "@material/shape": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", + "@material/tokens": "15.0.0-canary.7f224ddd4.0", + "@material/touch-target": "15.0.0-canary.7f224ddd4.0", + "@material/typography": "15.0.0-canary.7f224ddd4.0", "safevalues": "^0.3.4", "tslib": "^2.1.0" } }, "node_modules/@material/circular-progress": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/circular-progress/-/circular-progress-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-Lxe8BGAxQwCQqrLhrYrIP0Uok10h7aYS3RBXP41ph+5GmwJd5zdyE2t93qm2dyThvU6qKuXw9726Dtq/N+wvZQ==", - "dependencies": { - "@material/animation": "15.0.0-canary.bc9ae6c9c.0", - "@material/base": "15.0.0-canary.bc9ae6c9c.0", - "@material/dom": "15.0.0-canary.bc9ae6c9c.0", - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/progress-indicator": "15.0.0-canary.bc9ae6c9c.0", - "@material/rtl": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/circular-progress/-/circular-progress-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-DJrqCKb+LuGtjNvKl8XigvyK02y36GRkfhMUYTcJEi3PrOE00bwXtyj7ilhzEVshQiXg6AHGWXtf5UqwNrx3Ow==", + "dependencies": { + "@material/animation": "15.0.0-canary.7f224ddd4.0", + "@material/base": "15.0.0-canary.7f224ddd4.0", + "@material/dom": "15.0.0-canary.7f224ddd4.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/progress-indicator": "15.0.0-canary.7f224ddd4.0", + "@material/rtl": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/data-table": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/data-table/-/data-table-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-j/7qplT9+sUpfe4pyWhPbl01qJA+OoNAG3VMJruBBR461ZBKyTi7ssKH9yksFGZ8eCEPkOsk/+kDxsiZvRWkeQ==", - "dependencies": { - "@material/animation": "15.0.0-canary.bc9ae6c9c.0", - "@material/base": "15.0.0-canary.bc9ae6c9c.0", - "@material/checkbox": "15.0.0-canary.bc9ae6c9c.0", - "@material/density": "15.0.0-canary.bc9ae6c9c.0", - "@material/dom": "15.0.0-canary.bc9ae6c9c.0", - "@material/elevation": "15.0.0-canary.bc9ae6c9c.0", - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/icon-button": "15.0.0-canary.bc9ae6c9c.0", - "@material/linear-progress": "15.0.0-canary.bc9ae6c9c.0", - "@material/list": "15.0.0-canary.bc9ae6c9c.0", - "@material/menu": "15.0.0-canary.bc9ae6c9c.0", - "@material/rtl": "15.0.0-canary.bc9ae6c9c.0", - "@material/select": "15.0.0-canary.bc9ae6c9c.0", - "@material/shape": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", - "@material/tokens": "15.0.0-canary.bc9ae6c9c.0", - "@material/touch-target": "15.0.0-canary.bc9ae6c9c.0", - "@material/typography": "15.0.0-canary.bc9ae6c9c.0", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/data-table/-/data-table-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-/2WZsuBIq9z9RWYF5Jo6b7P6u0fwit+29/mN7rmAZ6akqUR54nXyNfoSNiyydMkzPlZZsep5KrSHododDhBZbA==", + "dependencies": { + "@material/animation": "15.0.0-canary.7f224ddd4.0", + "@material/base": "15.0.0-canary.7f224ddd4.0", + "@material/checkbox": "15.0.0-canary.7f224ddd4.0", + "@material/density": "15.0.0-canary.7f224ddd4.0", + "@material/dom": "15.0.0-canary.7f224ddd4.0", + "@material/elevation": "15.0.0-canary.7f224ddd4.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/icon-button": "15.0.0-canary.7f224ddd4.0", + "@material/linear-progress": "15.0.0-canary.7f224ddd4.0", + "@material/list": "15.0.0-canary.7f224ddd4.0", + "@material/menu": "15.0.0-canary.7f224ddd4.0", + "@material/rtl": "15.0.0-canary.7f224ddd4.0", + "@material/select": "15.0.0-canary.7f224ddd4.0", + "@material/shape": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", + "@material/tokens": "15.0.0-canary.7f224ddd4.0", + "@material/touch-target": "15.0.0-canary.7f224ddd4.0", + "@material/typography": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/density": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/density/-/density-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-Zt3u07fXrBWLW06Tl5fgvjicxNQMkFdawLyNTzZ5TvbXfVkErILLePwwGaw8LNcvzqJP6ABLA8jiR+sKNoJQCg==", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/density/-/density-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-o9EXmGKVpiQ6mHhyV3oDDzc78Ow3E7v8dlaOhgaDSXgmqaE8v5sIlLNa/LKSyUga83/fpGk3QViSGXotpQx0jA==", "dependencies": { "tslib": "^2.1.0" } }, "node_modules/@material/dialog": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/dialog/-/dialog-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-o+9a/fmwJ9+gY3Z/uhj/PMVJDq7it1NTWKJn2GwAKdB+fDkT4hb9qEdcxMPyvJJ5ups+XiKZo03+tZrD+38c1w==", - "dependencies": { - "@material/animation": "15.0.0-canary.bc9ae6c9c.0", - "@material/base": "15.0.0-canary.bc9ae6c9c.0", - "@material/button": "15.0.0-canary.bc9ae6c9c.0", - "@material/dom": "15.0.0-canary.bc9ae6c9c.0", - "@material/elevation": "15.0.0-canary.bc9ae6c9c.0", - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/icon-button": "15.0.0-canary.bc9ae6c9c.0", - "@material/ripple": "15.0.0-canary.bc9ae6c9c.0", - "@material/rtl": "15.0.0-canary.bc9ae6c9c.0", - "@material/shape": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", - "@material/tokens": "15.0.0-canary.bc9ae6c9c.0", - "@material/touch-target": "15.0.0-canary.bc9ae6c9c.0", - "@material/typography": "15.0.0-canary.bc9ae6c9c.0", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/dialog/-/dialog-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-u0XpTlv1JqWC/bQ3DavJ1JguofTelLT2wloj59l3/1b60jv42JQ6Am7jU3I8/SIUB1MKaW7dYocXjDWtWJakLA==", + "dependencies": { + "@material/animation": "15.0.0-canary.7f224ddd4.0", + "@material/base": "15.0.0-canary.7f224ddd4.0", + "@material/button": "15.0.0-canary.7f224ddd4.0", + "@material/dom": "15.0.0-canary.7f224ddd4.0", + "@material/elevation": "15.0.0-canary.7f224ddd4.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/icon-button": "15.0.0-canary.7f224ddd4.0", + "@material/ripple": "15.0.0-canary.7f224ddd4.0", + "@material/rtl": "15.0.0-canary.7f224ddd4.0", + "@material/shape": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", + "@material/tokens": "15.0.0-canary.7f224ddd4.0", + "@material/touch-target": "15.0.0-canary.7f224ddd4.0", + "@material/typography": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/dom": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/dom/-/dom-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-ly78R7aoCJtundSUu0UROU+5pQD5Piae0Y1MkN6bs0724azeazX1KeXFeaf06JOXnlr5/41ol+fSUPowjoqnOg==", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/dom/-/dom-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-mQ1HT186GPQSkRg5S18i70typ5ZytfjL09R0gJ2Qg5/G+MLCGi7TAjZZSH65tuD/QGOjel4rDdWOTmYbPYV6HA==", "dependencies": { - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/rtl": "15.0.0-canary.bc9ae6c9c.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/rtl": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/drawer": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/drawer/-/drawer-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-PFL4cEFnt7VTxDsuspFVNhsFDYyumjU0VWfj3PWB7XudsEfQ3lo85D3HCEtTTbRsCainGN8bgYNDNafLBqiigw==", - "dependencies": { - "@material/animation": "15.0.0-canary.bc9ae6c9c.0", - "@material/base": "15.0.0-canary.bc9ae6c9c.0", - "@material/dom": "15.0.0-canary.bc9ae6c9c.0", - "@material/elevation": "15.0.0-canary.bc9ae6c9c.0", - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/list": "15.0.0-canary.bc9ae6c9c.0", - "@material/ripple": "15.0.0-canary.bc9ae6c9c.0", - "@material/rtl": "15.0.0-canary.bc9ae6c9c.0", - "@material/shape": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", - "@material/typography": "15.0.0-canary.bc9ae6c9c.0", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/drawer/-/drawer-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-qyO0W0KBftfH8dlLR0gVAgv7ZHNvU8ae11Ao6zJif/YxcvK4+gph1z8AO4H410YmC2kZiwpSKyxM1iQCCzbb4g==", + "dependencies": { + "@material/animation": "15.0.0-canary.7f224ddd4.0", + "@material/base": "15.0.0-canary.7f224ddd4.0", + "@material/dom": "15.0.0-canary.7f224ddd4.0", + "@material/elevation": "15.0.0-canary.7f224ddd4.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/list": "15.0.0-canary.7f224ddd4.0", + "@material/ripple": "15.0.0-canary.7f224ddd4.0", + "@material/rtl": "15.0.0-canary.7f224ddd4.0", + "@material/shape": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", + "@material/typography": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/elevation": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/elevation/-/elevation-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-Ro+Pk8jFuap+T0B0shA3xI1hs2b89dNQ2EIPCNjNMp87emHKAzJfhKb7EZGIwv3+gFLlVaLyIVkb94I89KLsyg==", - "dependencies": { - "@material/animation": "15.0.0-canary.bc9ae6c9c.0", - "@material/base": "15.0.0-canary.bc9ae6c9c.0", - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/rtl": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/elevation/-/elevation-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-tV6s4/pUBECedaI36Yj18KmRCk1vfue/JP/5yYRlFNnLMRVISePbZaKkn/BHXVf+26I3W879+XqIGlDVdmOoMA==", + "dependencies": { + "@material/animation": "15.0.0-canary.7f224ddd4.0", + "@material/base": "15.0.0-canary.7f224ddd4.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/rtl": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/fab": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/fab/-/fab-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-dvU0KWMRglwJEQwmQtFAmJcAjzg9VFF6Aqj78bJYu/DAIGFJ1VTTTSgoXM/XCm1YyQEZ7kZRvxBO37CH54rSDg==", - "dependencies": { - "@material/animation": "15.0.0-canary.bc9ae6c9c.0", - "@material/dom": "15.0.0-canary.bc9ae6c9c.0", - "@material/elevation": "15.0.0-canary.bc9ae6c9c.0", - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/focus-ring": "15.0.0-canary.bc9ae6c9c.0", - "@material/ripple": "15.0.0-canary.bc9ae6c9c.0", - "@material/rtl": "15.0.0-canary.bc9ae6c9c.0", - "@material/shape": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", - "@material/tokens": "15.0.0-canary.bc9ae6c9c.0", - "@material/touch-target": "15.0.0-canary.bc9ae6c9c.0", - "@material/typography": "15.0.0-canary.bc9ae6c9c.0", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/fab/-/fab-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-4h76QrzfZTcPdd+awDPZ4Q0YdSqsXQnS540TPtyXUJ/5G99V6VwGpjMPIxAsW0y+pmI9UkLL/srrMaJec+7r4Q==", + "dependencies": { + "@material/animation": "15.0.0-canary.7f224ddd4.0", + "@material/dom": "15.0.0-canary.7f224ddd4.0", + "@material/elevation": "15.0.0-canary.7f224ddd4.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/focus-ring": "15.0.0-canary.7f224ddd4.0", + "@material/ripple": "15.0.0-canary.7f224ddd4.0", + "@material/rtl": "15.0.0-canary.7f224ddd4.0", + "@material/shape": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", + "@material/tokens": "15.0.0-canary.7f224ddd4.0", + "@material/touch-target": "15.0.0-canary.7f224ddd4.0", + "@material/typography": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/feature-targeting": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/feature-targeting/-/feature-targeting-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-wkDjVcoVEYYaJvun28IXdln/foLgPD7n9ZC9TY76GErGCwTq+HWpU6wBAAk+ePmpRFDayw4vI4wBlaWGxLtysQ==", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/feature-targeting/-/feature-targeting-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-SAjtxYh6YlKZriU83diDEQ7jNSP2MnxKsER0TvFeyG1vX/DWsUyYDOIJTOEa9K1N+fgJEBkNK8hY55QhQaspew==", "dependencies": { "tslib": "^2.1.0" } }, "node_modules/@material/floating-label": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/floating-label/-/floating-label-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-bUWPtXzZITOD/2mkvLkEPO1ngDWmb74y0Kgbz6llHLOQBtycyJIpuoQJ1q2Ez0NM/tFLwPphhAgRqmL3YQ/Kzw==", - "dependencies": { - "@material/animation": "15.0.0-canary.bc9ae6c9c.0", - "@material/base": "15.0.0-canary.bc9ae6c9c.0", - "@material/dom": "15.0.0-canary.bc9ae6c9c.0", - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/rtl": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", - "@material/typography": "15.0.0-canary.bc9ae6c9c.0", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/floating-label/-/floating-label-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-0KMo5ijjYaEHPiZ2pCVIcbaTS2LycvH9zEhEMKwPPGssBCX7iz5ffYQFk7e5yrQand1r3jnQQgYfHAwtykArnQ==", + "dependencies": { + "@material/animation": "15.0.0-canary.7f224ddd4.0", + "@material/base": "15.0.0-canary.7f224ddd4.0", + "@material/dom": "15.0.0-canary.7f224ddd4.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/rtl": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", + "@material/typography": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/focus-ring": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/focus-ring/-/focus-ring-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-cZHThVose3GvAlJzpJoBI1iqL6d1/Jj9hXrR+r8Mwtb1hBIUEG3hxfsRd4vGREuzROPlf0OgNf/V+YHoSwgR5w==", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/focus-ring/-/focus-ring-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-Jmg1nltq4J6S6A10EGMZnvufrvU3YTi+8R8ZD9lkSbun0Fm2TVdICQt/Auyi6An9zP66oQN6c31eqO6KfIPsDg==", "dependencies": { - "@material/dom": "15.0.0-canary.bc9ae6c9c.0", - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/rtl": "15.0.0-canary.bc9ae6c9c.0" + "@material/dom": "15.0.0-canary.7f224ddd4.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/rtl": "15.0.0-canary.7f224ddd4.0" } }, "node_modules/@material/form-field": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/form-field/-/form-field-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-+JFXy5X44Gue1CbZZAQ6YejnI203lebYwL0i6k0ylDpWHEOdD5xkF2PyHR28r9/65Ebcbwbff6q7kI1SGoT7MA==", - "dependencies": { - "@material/base": "15.0.0-canary.bc9ae6c9c.0", - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/ripple": "15.0.0-canary.bc9ae6c9c.0", - "@material/rtl": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", - "@material/typography": "15.0.0-canary.bc9ae6c9c.0", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/form-field/-/form-field-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-fEPWgDQEPJ6WF7hNnIStxucHR9LE4DoDSMqCsGWS2Yu+NLZYLuCEecgR0UqQsl1EQdNRaFh8VH93KuxGd2hiPg==", + "dependencies": { + "@material/base": "15.0.0-canary.7f224ddd4.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/ripple": "15.0.0-canary.7f224ddd4.0", + "@material/rtl": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", + "@material/typography": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/icon-button": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/icon-button/-/icon-button-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-1a0MHgyIwOs4RzxrVljsqSizGYFlM1zY2AZaLDsgT4G3kzsplTx8HZQ022GpUCjAygW+WLvg4z1qAhQHvsbqlw==", - "dependencies": { - "@material/base": "15.0.0-canary.bc9ae6c9c.0", - "@material/density": "15.0.0-canary.bc9ae6c9c.0", - "@material/dom": "15.0.0-canary.bc9ae6c9c.0", - "@material/elevation": "15.0.0-canary.bc9ae6c9c.0", - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/focus-ring": "15.0.0-canary.bc9ae6c9c.0", - "@material/ripple": "15.0.0-canary.bc9ae6c9c.0", - "@material/rtl": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", - "@material/touch-target": "15.0.0-canary.bc9ae6c9c.0", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/icon-button/-/icon-button-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-DcK7IL4ICY/DW+48YQZZs9g0U1kRaW0Wb0BxhvppDMYziHo/CTpFdle4gjyuTyRxPOdHQz5a97ru48Z9O4muTw==", + "dependencies": { + "@material/base": "15.0.0-canary.7f224ddd4.0", + "@material/density": "15.0.0-canary.7f224ddd4.0", + "@material/dom": "15.0.0-canary.7f224ddd4.0", + "@material/elevation": "15.0.0-canary.7f224ddd4.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/focus-ring": "15.0.0-canary.7f224ddd4.0", + "@material/ripple": "15.0.0-canary.7f224ddd4.0", + "@material/rtl": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", + "@material/touch-target": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/image-list": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/image-list/-/image-list-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-WKWmiYap2iu4QdqmeUSliLlN4O2Ueqa0OuVAYHn/TCzmQ2xmnhZ1pvDLbs6TplpOmlki7vFfe+aSt5SU9gwfOQ==", - "dependencies": { - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/shape": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", - "@material/typography": "15.0.0-canary.bc9ae6c9c.0", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/image-list/-/image-list-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-voMjG2p80XbjL1B2lmF65zO5gEgJOVKClLdqh4wbYzYfwY/SR9c8eLvlYG7DLdFaFBl/7gGxD8TvvZ329HUFPw==", + "dependencies": { + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/shape": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", + "@material/typography": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/layout-grid": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/layout-grid/-/layout-grid-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-5GqmT6oTZhUGWIb+CLD0ZNyDyTiJsr/rm9oRIi3+vCujACwxFkON9tzBlZohdtFS16nuzUusthN6Jt9UrJcN6Q==", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/layout-grid/-/layout-grid-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-veDABLxMn2RmvfnUO2RUmC1OFfWr4cU+MrxKPoDD2hl3l3eDYv5fxws6r5T1JoSyXoaN+oEZpheS0+M9Ure8Pg==", "dependencies": { "tslib": "^2.1.0" } }, "node_modules/@material/line-ripple": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/line-ripple/-/line-ripple-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-8S30WXEuUdgDdBulzUDlPXD6qMzwCX9SxYb5mGDYLwl199cpSGdXHtGgEcCjokvnpLhdZhcT1Dsxeo1g2Evh5Q==", - "dependencies": { - "@material/animation": "15.0.0-canary.bc9ae6c9c.0", - "@material/base": "15.0.0-canary.bc9ae6c9c.0", - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/line-ripple/-/line-ripple-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-f60hVJhIU6I3/17Tqqzch1emUKEcfVVgHVqADbU14JD+oEIz429ZX9ksZ3VChoU3+eejFl+jVdZMLE/LrAuwpg==", + "dependencies": { + "@material/animation": "15.0.0-canary.7f224ddd4.0", + "@material/base": "15.0.0-canary.7f224ddd4.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/linear-progress": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/linear-progress/-/linear-progress-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-6EJpjrz6aoH2/gXLg9iMe0yF2C42hpQyZoHpmcgTLKeci85ktDvJIjwup8tnk8ULQyFiGiIrhXw2v2RSsiFjvQ==", - "dependencies": { - "@material/animation": "15.0.0-canary.bc9ae6c9c.0", - "@material/base": "15.0.0-canary.bc9ae6c9c.0", - "@material/dom": "15.0.0-canary.bc9ae6c9c.0", - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/progress-indicator": "15.0.0-canary.bc9ae6c9c.0", - "@material/rtl": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/linear-progress/-/linear-progress-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-pRDEwPQielDiC9Sc5XhCXrGxP8wWOnAO8sQlMebfBYHYqy5hhiIzibezS8CSaW4MFQFyXmCmpmqWlbqGYRmiyg==", + "dependencies": { + "@material/animation": "15.0.0-canary.7f224ddd4.0", + "@material/base": "15.0.0-canary.7f224ddd4.0", + "@material/dom": "15.0.0-canary.7f224ddd4.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/progress-indicator": "15.0.0-canary.7f224ddd4.0", + "@material/rtl": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/list": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/list/-/list-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-TQ1ppqiCMQj/P7bGD4edbIIv4goczZUoiUAaPq/feb1dflvrFMzYqJ7tQRRCyBL8nRhJoI2x99tk8Q2RXvlGUQ==", - "dependencies": { - "@material/base": "15.0.0-canary.bc9ae6c9c.0", - "@material/density": "15.0.0-canary.bc9ae6c9c.0", - "@material/dom": "15.0.0-canary.bc9ae6c9c.0", - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/ripple": "15.0.0-canary.bc9ae6c9c.0", - "@material/rtl": "15.0.0-canary.bc9ae6c9c.0", - "@material/shape": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", - "@material/tokens": "15.0.0-canary.bc9ae6c9c.0", - "@material/typography": "15.0.0-canary.bc9ae6c9c.0", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/list/-/list-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-Is0NV91sJlXF5pOebYAtWLF4wU2MJDbYqztML/zQNENkQxDOvEXu3nWNb3YScMIYJJXvARO0Liur5K4yPagS1Q==", + "dependencies": { + "@material/base": "15.0.0-canary.7f224ddd4.0", + "@material/density": "15.0.0-canary.7f224ddd4.0", + "@material/dom": "15.0.0-canary.7f224ddd4.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/ripple": "15.0.0-canary.7f224ddd4.0", + "@material/rtl": "15.0.0-canary.7f224ddd4.0", + "@material/shape": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", + "@material/tokens": "15.0.0-canary.7f224ddd4.0", + "@material/typography": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/menu": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/menu/-/menu-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-IlAh61xzrzxXs38QZlt74UYt8J431zGznSzDtB1Fqs6YFNd11QPKoiRXn1J2Qu/lUxbFV7i8NBKMCKtia0n6/Q==", - "dependencies": { - "@material/base": "15.0.0-canary.bc9ae6c9c.0", - "@material/dom": "15.0.0-canary.bc9ae6c9c.0", - "@material/elevation": "15.0.0-canary.bc9ae6c9c.0", - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/list": "15.0.0-canary.bc9ae6c9c.0", - "@material/menu-surface": "15.0.0-canary.bc9ae6c9c.0", - "@material/ripple": "15.0.0-canary.bc9ae6c9c.0", - "@material/rtl": "15.0.0-canary.bc9ae6c9c.0", - "@material/shape": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", - "@material/tokens": "15.0.0-canary.bc9ae6c9c.0", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/menu/-/menu-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-D11QU1dXqLbh5X1zKlEhS3QWh0b5BPNXlafc5MXfkdJHhOiieb7LC9hMJhbrHtj24FadJ7evaFW/T2ugJbJNnQ==", + "dependencies": { + "@material/base": "15.0.0-canary.7f224ddd4.0", + "@material/dom": "15.0.0-canary.7f224ddd4.0", + "@material/elevation": "15.0.0-canary.7f224ddd4.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/list": "15.0.0-canary.7f224ddd4.0", + "@material/menu-surface": "15.0.0-canary.7f224ddd4.0", + "@material/ripple": "15.0.0-canary.7f224ddd4.0", + "@material/rtl": "15.0.0-canary.7f224ddd4.0", + "@material/shape": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", + "@material/tokens": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/menu-surface": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/menu-surface/-/menu-surface-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-dMtSPN+olTWE+08M5qe4ea1IZOhVryYqzK0Gyb2u1G75rSArUxCOB5rr6OC/ST3Mq3RS6zGuYo7srZt4534K9Q==", - "dependencies": { - "@material/animation": "15.0.0-canary.bc9ae6c9c.0", - "@material/base": "15.0.0-canary.bc9ae6c9c.0", - "@material/elevation": "15.0.0-canary.bc9ae6c9c.0", - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/rtl": "15.0.0-canary.bc9ae6c9c.0", - "@material/shape": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/menu-surface/-/menu-surface-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-7RZHvw0gbwppaAJ/Oh5SWmfAKJ62aw1IMB3+3MRwsb5PLoV666wInYa+zJfE4i7qBeOn904xqT2Nko5hY0ssrg==", + "dependencies": { + "@material/animation": "15.0.0-canary.7f224ddd4.0", + "@material/base": "15.0.0-canary.7f224ddd4.0", + "@material/elevation": "15.0.0-canary.7f224ddd4.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/rtl": "15.0.0-canary.7f224ddd4.0", + "@material/shape": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/notched-outline": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/notched-outline/-/notched-outline-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-WuurMg44xexkvLTBTnsO0A+qnzFjpcPdvgWBGstBepYozsvSF9zJGdb1x7Zv1MmqbpYh/Ohnuxtb/Y3jOh6irg==", - "dependencies": { - "@material/base": "15.0.0-canary.bc9ae6c9c.0", - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/floating-label": "15.0.0-canary.bc9ae6c9c.0", - "@material/rtl": "15.0.0-canary.bc9ae6c9c.0", - "@material/shape": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/notched-outline/-/notched-outline-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-Yg2usuKB2DKlKIBISbie9BFsOVuffF71xjbxPbybvqemxqUBd+bD5/t6H1fLE+F8/NCu5JMigho4ewUU+0RCiw==", + "dependencies": { + "@material/base": "15.0.0-canary.7f224ddd4.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/floating-label": "15.0.0-canary.7f224ddd4.0", + "@material/rtl": "15.0.0-canary.7f224ddd4.0", + "@material/shape": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/progress-indicator": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/progress-indicator/-/progress-indicator-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-uOnsvqw5F2fkeTnTl4MrYzjI7KCLmmLyZaM0cgLNuLsWVlddQE+SGMl28tENx7DUK3HebWq0FxCP8f25LuDD+w==", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/progress-indicator/-/progress-indicator-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-UPbDjE5CqT+SqTs0mNFG6uFEw7wBlgYmh+noSkQ6ty/EURm8lF125dmi4dv4kW0+octonMXqkGtAoZwLIHKf/w==", "dependencies": { "tslib": "^2.1.0" } }, "node_modules/@material/radio": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/radio/-/radio-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-ehzOK+U1IxQN+OQjgD2lsnf1t7t7RAwQzeO6Czkiuid29ookYbQynWuLWk7NW8H8ohl7lnmfqTP1xSNkkL/F0g==", - "dependencies": { - "@material/animation": "15.0.0-canary.bc9ae6c9c.0", - "@material/base": "15.0.0-canary.bc9ae6c9c.0", - "@material/density": "15.0.0-canary.bc9ae6c9c.0", - "@material/dom": "15.0.0-canary.bc9ae6c9c.0", - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/focus-ring": "15.0.0-canary.bc9ae6c9c.0", - "@material/ripple": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", - "@material/touch-target": "15.0.0-canary.bc9ae6c9c.0", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/radio/-/radio-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-wR1X0Sr0KmQLu6+YOFKAI84G3L6psqd7Kys5kfb8WKBM36zxO5HQXC5nJm/Y0rdn22ixzsIz2GBo0MNU4V4k1A==", + "dependencies": { + "@material/animation": "15.0.0-canary.7f224ddd4.0", + "@material/base": "15.0.0-canary.7f224ddd4.0", + "@material/density": "15.0.0-canary.7f224ddd4.0", + "@material/dom": "15.0.0-canary.7f224ddd4.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/focus-ring": "15.0.0-canary.7f224ddd4.0", + "@material/ripple": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", + "@material/touch-target": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/ripple": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/ripple/-/ripple-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-JfLW+g3GMVDv4cruQ19+HUxpKVdWCldFlIPw1UYezz2h3WTNDy05S3uP2zUdXzZ01C3dkBFviv4nqZ0GCT16MA==", - "dependencies": { - "@material/animation": "15.0.0-canary.bc9ae6c9c.0", - "@material/base": "15.0.0-canary.bc9ae6c9c.0", - "@material/dom": "15.0.0-canary.bc9ae6c9c.0", - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/rtl": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/ripple/-/ripple-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-JqOsWM1f4aGdotP0rh1vZlPZTg6lZgh39FIYHFMfOwfhR+LAikUJ+37ciqZuewgzXB6iiRO6a8aUH6HR5SJYPg==", + "dependencies": { + "@material/animation": "15.0.0-canary.7f224ddd4.0", + "@material/base": "15.0.0-canary.7f224ddd4.0", + "@material/dom": "15.0.0-canary.7f224ddd4.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/rtl": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/rtl": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/rtl/-/rtl-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-SkKLNLFp5QtG7/JEFg9R92qq4MzTcZ5As6sWbH7rRg6ahTHoJEuqE+pOb9Vrtbj84k5gtX+vCYPvCILtSlr2uw==", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/rtl/-/rtl-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-UVf14qAtmPiaaZjuJtmN36HETyoKWmsZM/qn1L5ciR2URb8O035dFWnz4ZWFMmAYBno/L7JiZaCkPurv2ZNrGA==", "dependencies": { - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/segmented-button": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/segmented-button/-/segmented-button-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-YDwkCWP9l5mIZJ7pZJZ2hMDxfBlIGVJ+deNzr8O+Z7/xC5LGXbl4R5aPtUVHygvXAXxpf5096ZD+dSXzYzvWlw==", - "dependencies": { - "@material/base": "15.0.0-canary.bc9ae6c9c.0", - "@material/elevation": "15.0.0-canary.bc9ae6c9c.0", - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/ripple": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", - "@material/touch-target": "15.0.0-canary.bc9ae6c9c.0", - "@material/typography": "15.0.0-canary.bc9ae6c9c.0", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/segmented-button/-/segmented-button-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-LCnVRUSAhELTKI/9hSvyvIvQIpPpqF29BV+O9yM4WoNNmNWqTulvuiv7grHZl6Z+kJuxSg4BGbsPxxb9dXozPg==", + "dependencies": { + "@material/base": "15.0.0-canary.7f224ddd4.0", + "@material/elevation": "15.0.0-canary.7f224ddd4.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/ripple": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", + "@material/touch-target": "15.0.0-canary.7f224ddd4.0", + "@material/typography": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/select": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/select/-/select-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-unfOWVf7T0sixVG+3k3RTuATfzqvCF6QAzA6J9rlCh/Tq4HuIBNDdV4z19IVu4zwmgWYxY0iSvqWUvdJJYwakQ==", - "dependencies": { - "@material/animation": "15.0.0-canary.bc9ae6c9c.0", - "@material/base": "15.0.0-canary.bc9ae6c9c.0", - "@material/density": "15.0.0-canary.bc9ae6c9c.0", - "@material/dom": "15.0.0-canary.bc9ae6c9c.0", - "@material/elevation": "15.0.0-canary.bc9ae6c9c.0", - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/floating-label": "15.0.0-canary.bc9ae6c9c.0", - "@material/line-ripple": "15.0.0-canary.bc9ae6c9c.0", - "@material/list": "15.0.0-canary.bc9ae6c9c.0", - "@material/menu": "15.0.0-canary.bc9ae6c9c.0", - "@material/menu-surface": "15.0.0-canary.bc9ae6c9c.0", - "@material/notched-outline": "15.0.0-canary.bc9ae6c9c.0", - "@material/ripple": "15.0.0-canary.bc9ae6c9c.0", - "@material/rtl": "15.0.0-canary.bc9ae6c9c.0", - "@material/shape": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", - "@material/tokens": "15.0.0-canary.bc9ae6c9c.0", - "@material/typography": "15.0.0-canary.bc9ae6c9c.0", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/select/-/select-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-WioZtQEXRpglum0cMSzSqocnhsGRr+ZIhvKb3FlaNrTaK8H3Y4QA7rVjv3emRtrLOOjaT6/RiIaUMTo9AGzWQQ==", + "dependencies": { + "@material/animation": "15.0.0-canary.7f224ddd4.0", + "@material/base": "15.0.0-canary.7f224ddd4.0", + "@material/density": "15.0.0-canary.7f224ddd4.0", + "@material/dom": "15.0.0-canary.7f224ddd4.0", + "@material/elevation": "15.0.0-canary.7f224ddd4.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/floating-label": "15.0.0-canary.7f224ddd4.0", + "@material/line-ripple": "15.0.0-canary.7f224ddd4.0", + "@material/list": "15.0.0-canary.7f224ddd4.0", + "@material/menu": "15.0.0-canary.7f224ddd4.0", + "@material/menu-surface": "15.0.0-canary.7f224ddd4.0", + "@material/notched-outline": "15.0.0-canary.7f224ddd4.0", + "@material/ripple": "15.0.0-canary.7f224ddd4.0", + "@material/rtl": "15.0.0-canary.7f224ddd4.0", + "@material/shape": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", + "@material/tokens": "15.0.0-canary.7f224ddd4.0", + "@material/typography": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/shape": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/shape/-/shape-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-Dsvr771ZKC46ODzoixLdGwlLEQLfxfLrtnRojXABoZf5G3o9KtJU+J+5Ld5aa960OAsCzzANuaub4iR88b1guA==", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/shape/-/shape-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-8z8l1W3+cymObunJoRhwFPKZ+FyECfJ4MJykNiaZq7XJFZkV6xNmqAVrrbQj93FtLsECn9g4PjjIomguVn/OEw==", "dependencies": { - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/rtl": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/rtl": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/slider": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/slider/-/slider-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-3AEu+7PwW4DSNLndue47dh2u7ga4hDJRYmuu7wnJCIWJBnLCkp6C92kNc4Rj5iQY2ftJio5aj1gqryluh5tlYg==", - "dependencies": { - "@material/animation": "15.0.0-canary.bc9ae6c9c.0", - "@material/base": "15.0.0-canary.bc9ae6c9c.0", - "@material/dom": "15.0.0-canary.bc9ae6c9c.0", - "@material/elevation": "15.0.0-canary.bc9ae6c9c.0", - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/ripple": "15.0.0-canary.bc9ae6c9c.0", - "@material/rtl": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", - "@material/tokens": "15.0.0-canary.bc9ae6c9c.0", - "@material/typography": "15.0.0-canary.bc9ae6c9c.0", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/slider/-/slider-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-QU/WSaSWlLKQRqOhJrPgm29wqvvzRusMqwAcrCh1JTrCl+xwJ43q5WLDfjYhubeKtrEEgGu9tekkAiYfMG7EBw==", + "dependencies": { + "@material/animation": "15.0.0-canary.7f224ddd4.0", + "@material/base": "15.0.0-canary.7f224ddd4.0", + "@material/dom": "15.0.0-canary.7f224ddd4.0", + "@material/elevation": "15.0.0-canary.7f224ddd4.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/ripple": "15.0.0-canary.7f224ddd4.0", + "@material/rtl": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", + "@material/tokens": "15.0.0-canary.7f224ddd4.0", + "@material/typography": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/snackbar": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/snackbar/-/snackbar-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-TwwQSYxfGK6mc03/rdDamycND6o+1p61WNd7ElZv1F1CLxB4ihRjbCoH7Qo+oVDaP8CTpjeclka+24RLhQq0mA==", - "dependencies": { - "@material/animation": "15.0.0-canary.bc9ae6c9c.0", - "@material/base": "15.0.0-canary.bc9ae6c9c.0", - "@material/button": "15.0.0-canary.bc9ae6c9c.0", - "@material/dom": "15.0.0-canary.bc9ae6c9c.0", - "@material/elevation": "15.0.0-canary.bc9ae6c9c.0", - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/icon-button": "15.0.0-canary.bc9ae6c9c.0", - "@material/ripple": "15.0.0-canary.bc9ae6c9c.0", - "@material/rtl": "15.0.0-canary.bc9ae6c9c.0", - "@material/shape": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", - "@material/tokens": "15.0.0-canary.bc9ae6c9c.0", - "@material/typography": "15.0.0-canary.bc9ae6c9c.0", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/snackbar/-/snackbar-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-sm7EbVKddaXpT/aXAYBdPoN0k8yeg9+dprgBUkrdqGzWJAeCkxb4fv2B3He88YiCtvkTz2KLY4CThPQBSEsMFQ==", + "dependencies": { + "@material/animation": "15.0.0-canary.7f224ddd4.0", + "@material/base": "15.0.0-canary.7f224ddd4.0", + "@material/button": "15.0.0-canary.7f224ddd4.0", + "@material/dom": "15.0.0-canary.7f224ddd4.0", + "@material/elevation": "15.0.0-canary.7f224ddd4.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/icon-button": "15.0.0-canary.7f224ddd4.0", + "@material/ripple": "15.0.0-canary.7f224ddd4.0", + "@material/rtl": "15.0.0-canary.7f224ddd4.0", + "@material/shape": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", + "@material/tokens": "15.0.0-canary.7f224ddd4.0", + "@material/typography": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/switch": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/switch/-/switch-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-OjUjtT0kRz1ASAsOS+dNzwMwvsjmqy5edK57692qmrP6bL4GblFfBDoiNJ6t0AN4OaKcmL5Hy/xNrTdOZW7Qqw==", - "dependencies": { - "@material/animation": "15.0.0-canary.bc9ae6c9c.0", - "@material/base": "15.0.0-canary.bc9ae6c9c.0", - "@material/density": "15.0.0-canary.bc9ae6c9c.0", - "@material/dom": "15.0.0-canary.bc9ae6c9c.0", - "@material/elevation": "15.0.0-canary.bc9ae6c9c.0", - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/focus-ring": "15.0.0-canary.bc9ae6c9c.0", - "@material/ripple": "15.0.0-canary.bc9ae6c9c.0", - "@material/rtl": "15.0.0-canary.bc9ae6c9c.0", - "@material/shape": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", - "@material/tokens": "15.0.0-canary.bc9ae6c9c.0", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/switch/-/switch-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-lEDJfRvkVyyeHWIBfoxYjJVl+WlEAE2kZ/+6OqB1FW0OV8ftTODZGhHRSzjVBA1/p4FPuhAtKtoK9jTpa4AZjA==", + "dependencies": { + "@material/animation": "15.0.0-canary.7f224ddd4.0", + "@material/base": "15.0.0-canary.7f224ddd4.0", + "@material/density": "15.0.0-canary.7f224ddd4.0", + "@material/dom": "15.0.0-canary.7f224ddd4.0", + "@material/elevation": "15.0.0-canary.7f224ddd4.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/focus-ring": "15.0.0-canary.7f224ddd4.0", + "@material/ripple": "15.0.0-canary.7f224ddd4.0", + "@material/rtl": "15.0.0-canary.7f224ddd4.0", + "@material/shape": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", + "@material/tokens": "15.0.0-canary.7f224ddd4.0", "safevalues": "^0.3.4", "tslib": "^2.1.0" } }, "node_modules/@material/tab": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/tab/-/tab-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-s/L9otAwn/pZwVQZBRQJmPqYeNbjoEbzbjMpDQf/VBG/6dJ+aP03ilIBEkqo8NVnCoChqcdtVCoDNRtbU+yp6w==", - "dependencies": { - "@material/base": "15.0.0-canary.bc9ae6c9c.0", - "@material/elevation": "15.0.0-canary.bc9ae6c9c.0", - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/focus-ring": "15.0.0-canary.bc9ae6c9c.0", - "@material/ripple": "15.0.0-canary.bc9ae6c9c.0", - "@material/rtl": "15.0.0-canary.bc9ae6c9c.0", - "@material/tab-indicator": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", - "@material/tokens": "15.0.0-canary.bc9ae6c9c.0", - "@material/typography": "15.0.0-canary.bc9ae6c9c.0", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/tab/-/tab-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-E1xGACImyCLurhnizyOTCgOiVezce4HlBFAI6YhJo/AyVwjN2Dtas4ZLQMvvWWqpyhITNkeYdOchwCC1mrz3AQ==", + "dependencies": { + "@material/base": "15.0.0-canary.7f224ddd4.0", + "@material/elevation": "15.0.0-canary.7f224ddd4.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/focus-ring": "15.0.0-canary.7f224ddd4.0", + "@material/ripple": "15.0.0-canary.7f224ddd4.0", + "@material/rtl": "15.0.0-canary.7f224ddd4.0", + "@material/tab-indicator": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", + "@material/tokens": "15.0.0-canary.7f224ddd4.0", + "@material/typography": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/tab-bar": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/tab-bar/-/tab-bar-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-Xmtq0wJGfu5k+zQeFeNsr4bUKv7L+feCmUp/gsapJ655LQKMXOUQZtSv9ZqWOfrCMy55hoF1CzGFV+oN3tyWWQ==", - "dependencies": { - "@material/animation": "15.0.0-canary.bc9ae6c9c.0", - "@material/base": "15.0.0-canary.bc9ae6c9c.0", - "@material/density": "15.0.0-canary.bc9ae6c9c.0", - "@material/elevation": "15.0.0-canary.bc9ae6c9c.0", - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/tab": "15.0.0-canary.bc9ae6c9c.0", - "@material/tab-indicator": "15.0.0-canary.bc9ae6c9c.0", - "@material/tab-scroller": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", - "@material/tokens": "15.0.0-canary.bc9ae6c9c.0", - "@material/typography": "15.0.0-canary.bc9ae6c9c.0", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/tab-bar/-/tab-bar-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-p1Asb2NzrcECvAQU3b2SYrpyJGyJLQWR+nXTYzDKE8WOpLIRCXap2audNqD7fvN/A20UJ1J8U01ptrvCkwJ4eA==", + "dependencies": { + "@material/animation": "15.0.0-canary.7f224ddd4.0", + "@material/base": "15.0.0-canary.7f224ddd4.0", + "@material/density": "15.0.0-canary.7f224ddd4.0", + "@material/elevation": "15.0.0-canary.7f224ddd4.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/tab": "15.0.0-canary.7f224ddd4.0", + "@material/tab-indicator": "15.0.0-canary.7f224ddd4.0", + "@material/tab-scroller": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", + "@material/tokens": "15.0.0-canary.7f224ddd4.0", + "@material/typography": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/tab-indicator": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/tab-indicator/-/tab-indicator-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-despCJYi1GrDDq7F2hvLQkObHnSLZPPDxnOzU16zJ6FNYvIdszgfzn2HgAZ6pl5hLOexQ8cla6cAqjTDuaJBhQ==", - "dependencies": { - "@material/animation": "15.0.0-canary.bc9ae6c9c.0", - "@material/base": "15.0.0-canary.bc9ae6c9c.0", - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/tab-indicator/-/tab-indicator-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-h9Td3MPqbs33spcPS7ecByRHraYgU4tNCZpZzZXw31RypjKvISDv/PS5wcA4RmWqNGih78T7xg4QIGsZg4Pk4w==", + "dependencies": { + "@material/animation": "15.0.0-canary.7f224ddd4.0", + "@material/base": "15.0.0-canary.7f224ddd4.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/tab-scroller": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/tab-scroller/-/tab-scroller-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-QWHG/EWxirj4V9u2IHz+OSY9XCWrnNrPnNgEufxAJVUKV/A8ma1DYeFSQqxhX709R8wKGdycJksg0Flkl7Gq7w==", - "dependencies": { - "@material/animation": "15.0.0-canary.bc9ae6c9c.0", - "@material/base": "15.0.0-canary.bc9ae6c9c.0", - "@material/dom": "15.0.0-canary.bc9ae6c9c.0", - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/tab": "15.0.0-canary.bc9ae6c9c.0", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/tab-scroller/-/tab-scroller-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-LFeYNjQpdXecwECd8UaqHYbhscDCwhGln5Yh+3ctvcEgvmDPNjhKn/DL3sWprWvG8NAhP6sHMrsGhQFVdCWtTg==", + "dependencies": { + "@material/animation": "15.0.0-canary.7f224ddd4.0", + "@material/base": "15.0.0-canary.7f224ddd4.0", + "@material/dom": "15.0.0-canary.7f224ddd4.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/tab": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/textfield": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/textfield/-/textfield-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-R3qRex9kCaZIAK8DuxPnVC42R0OaW7AB7fsFknDKeTeVQvRcbnV8E+iWSdqTiGdsi6QQHifX8idUrXw+O45zPw==", - "dependencies": { - "@material/animation": "15.0.0-canary.bc9ae6c9c.0", - "@material/base": "15.0.0-canary.bc9ae6c9c.0", - "@material/density": "15.0.0-canary.bc9ae6c9c.0", - "@material/dom": "15.0.0-canary.bc9ae6c9c.0", - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/floating-label": "15.0.0-canary.bc9ae6c9c.0", - "@material/line-ripple": "15.0.0-canary.bc9ae6c9c.0", - "@material/notched-outline": "15.0.0-canary.bc9ae6c9c.0", - "@material/ripple": "15.0.0-canary.bc9ae6c9c.0", - "@material/rtl": "15.0.0-canary.bc9ae6c9c.0", - "@material/shape": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", - "@material/tokens": "15.0.0-canary.bc9ae6c9c.0", - "@material/typography": "15.0.0-canary.bc9ae6c9c.0", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/textfield/-/textfield-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-AExmFvgE5nNF0UA4l2cSzPghtxSUQeeoyRjFLHLy+oAaE4eKZFrSy0zEpqPeWPQpEMDZk+6Y+6T3cOFYBeSvsw==", + "dependencies": { + "@material/animation": "15.0.0-canary.7f224ddd4.0", + "@material/base": "15.0.0-canary.7f224ddd4.0", + "@material/density": "15.0.0-canary.7f224ddd4.0", + "@material/dom": "15.0.0-canary.7f224ddd4.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/floating-label": "15.0.0-canary.7f224ddd4.0", + "@material/line-ripple": "15.0.0-canary.7f224ddd4.0", + "@material/notched-outline": "15.0.0-canary.7f224ddd4.0", + "@material/ripple": "15.0.0-canary.7f224ddd4.0", + "@material/rtl": "15.0.0-canary.7f224ddd4.0", + "@material/shape": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", + "@material/tokens": "15.0.0-canary.7f224ddd4.0", + "@material/typography": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/theme": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/theme/-/theme-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-CpUwXGE0dbhxQ45Hu9r9wbJtO/MAlv5ER4tBHA9tp/K+SU+lDgurBE2touFMg5INmdfVNtdumxb0nPPLaNQcUg==", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/theme/-/theme-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-hs45hJoE9yVnoVOcsN1jklyOa51U4lzWsEnQEuJTPOk2+0HqCQ0yv/q0InpSnm2i69fNSyZC60+8HADZGF8ugQ==", "dependencies": { - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/tokens": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/tokens/-/tokens-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-nbEuGj05txWz6ZMUanpM47SaAD7soyjKILR+XwDell9Zg3bGhsnexCNXPEz2fD+YgomS+jM5XmIcaJJHg/H93Q==", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/tokens/-/tokens-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-r9TDoicmcT7FhUXC4eYMFnt9TZsz0G8T3wXvkKncLppYvZ517gPyD/1+yhuGfGOxAzxTrM66S/oEc1fFE2q4hw==", "dependencies": { - "@material/elevation": "15.0.0-canary.bc9ae6c9c.0" + "@material/elevation": "15.0.0-canary.7f224ddd4.0" } }, "node_modules/@material/tooltip": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/tooltip/-/tooltip-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-UzuXp0b9NuWuYLYpPguxrjbJnCmT/Cco8CkjI/6JajxaeA3o2XEBbQfRMTq8PTafuBjCHTc0b0mQY7rtxUp1Gg==", - "dependencies": { - "@material/animation": "15.0.0-canary.bc9ae6c9c.0", - "@material/base": "15.0.0-canary.bc9ae6c9c.0", - "@material/button": "15.0.0-canary.bc9ae6c9c.0", - "@material/dom": "15.0.0-canary.bc9ae6c9c.0", - "@material/elevation": "15.0.0-canary.bc9ae6c9c.0", - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/rtl": "15.0.0-canary.bc9ae6c9c.0", - "@material/shape": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", - "@material/tokens": "15.0.0-canary.bc9ae6c9c.0", - "@material/typography": "15.0.0-canary.bc9ae6c9c.0", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/tooltip/-/tooltip-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-8qNk3pmPLTnam3XYC1sZuplQXW9xLn4Z4MI3D+U17Q7pfNZfoOugGr+d2cLA9yWAEjVJYB0mj8Yu86+udo4N9w==", + "dependencies": { + "@material/animation": "15.0.0-canary.7f224ddd4.0", + "@material/base": "15.0.0-canary.7f224ddd4.0", + "@material/button": "15.0.0-canary.7f224ddd4.0", + "@material/dom": "15.0.0-canary.7f224ddd4.0", + "@material/elevation": "15.0.0-canary.7f224ddd4.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/rtl": "15.0.0-canary.7f224ddd4.0", + "@material/shape": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", + "@material/tokens": "15.0.0-canary.7f224ddd4.0", + "@material/typography": "15.0.0-canary.7f224ddd4.0", "safevalues": "^0.3.4", "tslib": "^2.1.0" } }, "node_modules/@material/top-app-bar": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-vJWjsvqtdSD5+yQ/9vgoBtBSCvPJ5uF/DVssv8Hdhgs1PYaAcODUi77kdi0+sy/TaWyOsTkQixqmwnFS16zesA==", - "dependencies": { - "@material/animation": "15.0.0-canary.bc9ae6c9c.0", - "@material/base": "15.0.0-canary.bc9ae6c9c.0", - "@material/elevation": "15.0.0-canary.bc9ae6c9c.0", - "@material/ripple": "15.0.0-canary.bc9ae6c9c.0", - "@material/rtl": "15.0.0-canary.bc9ae6c9c.0", - "@material/shape": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", - "@material/typography": "15.0.0-canary.bc9ae6c9c.0", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/top-app-bar/-/top-app-bar-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-SARR5/ClYT4CLe9qAXakbr0i0cMY0V3V4pe3ElIJPfL2Z2c4wGR1mTR8m2LxU1MfGKK8aRoUdtfKaxWejp+eNA==", + "dependencies": { + "@material/animation": "15.0.0-canary.7f224ddd4.0", + "@material/base": "15.0.0-canary.7f224ddd4.0", + "@material/elevation": "15.0.0-canary.7f224ddd4.0", + "@material/ripple": "15.0.0-canary.7f224ddd4.0", + "@material/rtl": "15.0.0-canary.7f224ddd4.0", + "@material/shape": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", + "@material/typography": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/touch-target": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/touch-target/-/touch-target-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-AqYh9fjt+tv4ZE0C6MeYHblS2H+XwLbDl2mtyrK0DOEnCVQk5/l5ImKDfhrUdFWHvS4a5nBM4AA+sa7KaroLoA==", - "dependencies": { - "@material/base": "15.0.0-canary.bc9ae6c9c.0", - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/rtl": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/touch-target/-/touch-target-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-BJo/wFKHPYLGsRaIpd7vsQwKr02LtO2e89Psv0on/p0OephlNIgeB9dD9W+bQmaeZsZ6liKSKRl6wJWDiK71PA==", + "dependencies": { + "@material/base": "15.0.0-canary.7f224ddd4.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/rtl": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, "node_modules/@material/typography": { - "version": "15.0.0-canary.bc9ae6c9c.0", - "resolved": "https://registry.npmjs.org/@material/typography/-/typography-15.0.0-canary.bc9ae6c9c.0.tgz", - "integrity": "sha512-CKsG1zyv34AKPNyZC8olER2OdPII64iR2SzQjpqh1UUvmIFiMPk23LvQ1OnC5aCB14pOXzmVgvJt31r9eNdZ6Q==", + "version": "15.0.0-canary.7f224ddd4.0", + "resolved": "https://registry.npmjs.org/@material/typography/-/typography-15.0.0-canary.7f224ddd4.0.tgz", + "integrity": "sha512-kBaZeCGD50iq1DeRRH5OM5Jl7Gdk+/NOfKArkY4ksBZvJiStJ7ACAhpvb8MEGm4s3jvDInQFLsDq3hL+SA79sQ==", "dependencies": { - "@material/feature-targeting": "15.0.0-canary.bc9ae6c9c.0", - "@material/theme": "15.0.0-canary.bc9ae6c9c.0", + "@material/feature-targeting": "15.0.0-canary.7f224ddd4.0", + "@material/theme": "15.0.0-canary.7f224ddd4.0", "tslib": "^2.1.0" } }, diff --git a/package.json b/package.json index 58b528a..ecad067 100644 --- a/package.json +++ b/package.json @@ -11,12 +11,12 @@ "private": true, "dependencies": { "@angular/animations": "^17.3.3", - "@angular/cdk": "^16.2.14", + "@angular/cdk": "^17.3.3", "@angular/common": "^17.3.3", "@angular/compiler": "^17.3.3", "@angular/core": "^17.3.3", "@angular/forms": "^17.3.3", - "@angular/material": "^16.2.14", + "@angular/material": "^17.3.3", "@angular/platform-browser": "^17.3.3", "@angular/platform-browser-dynamic": "^17.3.3", "@angular/router": "^17.3.3", @@ -50,4 +50,4 @@ "tailwindcss": "^3.4.1", "typescript": "^5.4.3" } -} +} \ No newline at end of file