From f0498f1dfdd01df25f1bdc879159893b0b699e60 Mon Sep 17 00:00:00 2001 From: Alejandro Lopez Osornio Date: Tue, 23 Jan 2024 16:07:30 -0300 Subject: [PATCH] Adding modular forms edit --- docs/index.html | 2 +- docs/main.42d3c077cd573b8d.js | 1 + docs/main.4ed5209b3b623529.js | 1 - .../create-root-module.component.ts | 19 +++-- .../list-questionnaires.component.html | 6 +- .../list-questionnaires.component.ts | 69 +++++++++++++++++-- .../questionnaires-main.component.html | 2 +- .../questionnaires-main.component.ts | 2 +- src/app/services/questionnaire.service.ts | 51 ++++++++++++++ 9 files changed, 136 insertions(+), 17 deletions(-) create mode 100644 docs/main.42d3c077cd573b8d.js delete mode 100644 docs/main.4ed5209b3b623529.js diff --git a/docs/index.html b/docs/index.html index 5281184..a0f5def 100644 --- a/docs/index.html +++ b/docs/index.html @@ -26,6 +26,6 @@ - + \ No newline at end of file diff --git a/docs/main.42d3c077cd573b8d.js b/docs/main.42d3c077cd573b8d.js new file mode 100644 index 0000000..b4a9ed6 --- /dev/null +++ b/docs/main.42d3c077cd573b8d.js @@ -0,0 +1 @@ +(self.webpackChunksct_implementation_demonstrator=self.webpackChunksct_implementation_demonstrator||[]).push([[179],{880:(yl,cm,cc)=>{"use strict";function Wt(t){return"function"==typeof t}function lc(t){const e=t(n=>{Error.call(n),n.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const wl=lc(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((n,r)=>`${r+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function Zo(t,i){if(t){const e=t.indexOf(i);0<=e&&t.splice(e,1)}}class yt{constructor(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let i;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:n}=this;if(Wt(n))try{n()}catch(o){i=o instanceof wl?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{hu(o)}catch(a){i=i??[],a instanceof wl?i=[...i,...a.errors]:i.push(a)}}if(i)throw new wl(i)}}add(i){var e;if(i&&i!==this)if(this.closed)hu(i);else{if(i instanceof yt){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(i)}}_hasParent(i){const{_parentage:e}=this;return e===i||Array.isArray(e)&&e.includes(i)}_addParent(i){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(i),e):e?[e,i]:i}_removeParent(i){const{_parentage:e}=this;e===i?this._parentage=null:Array.isArray(e)&&Zo(e,i)}remove(i){const{_finalizers:e}=this;e&&Zo(e,i),i instanceof yt&&i._removeParent(this)}}yt.EMPTY=(()=>{const t=new yt;return t.closed=!0,t})();const dc=yt.EMPTY;function Ur(t){return t instanceof yt||t&&"closed"in t&&Wt(t.remove)&&Wt(t.add)&&Wt(t.unsubscribe)}function hu(t){Wt(t)?t():t.unsubscribe()}const ao={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ei={setTimeout(t,i,...e){const{delegate:n}=ei;return n?.setTimeout?n.setTimeout(t,i,...e):setTimeout(t,i,...e)},clearTimeout(t){const{delegate:i}=ei;return(i?.clearTimeout||clearTimeout)(t)},delegate:void 0};function ci(t){ei.setTimeout(()=>{const{onUnhandledError:i}=ao;if(!i)throw t;i(t)})}function pr(){}const Ti=Cl("C",void 0,void 0);function Cl(t,i,e){return{kind:t,value:i,error:e}}let Oo=null;function uc(t){if(ao.useDeprecatedSynchronousErrorHandling){const i=!Oo;if(i&&(Oo={errorThrown:!1,error:null}),t(),i){const{errorThrown:e,error:n}=Oo;if(Oo=null,e)throw n}}else t()}class Oa extends yt{constructor(i){super(),this.isStopped=!1,i?(this.destination=i,Ur(i)&&i.add(this)):this.destination=L3}static create(i,e,n){return new mu(i,e,n)}next(i){this.isStopped?A_(function T_(t){return Cl("N",t,void 0)}(i),this):this._next(i)}error(i){this.isStopped?A_(function gr(t){return Cl("E",void 0,t)}(i),this):(this.isStopped=!0,this._error(i))}complete(){this.isStopped?A_(Ti,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(i){this.destination.next(i)}_error(i){try{this.destination.error(i)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const R3=Function.prototype.bind;function M_(t,i){return R3.call(t,i)}class O3{constructor(i){this.partialObserver=i}next(i){const{partialObserver:e}=this;if(e.next)try{e.next(i)}catch(n){lm(n)}}error(i){const{partialObserver:e}=this;if(e.error)try{e.error(i)}catch(n){lm(n)}else lm(i)}complete(){const{partialObserver:i}=this;if(i.complete)try{i.complete()}catch(e){lm(e)}}}class mu extends Oa{constructor(i,e,n){let r;if(super(),Wt(i)||!i)r={next:i??void 0,error:e??void 0,complete:n??void 0};else{let o;this&&ao.useDeprecatedNextContext?(o=Object.create(i),o.unsubscribe=()=>this.unsubscribe(),r={next:i.next&&M_(i.next,o),error:i.error&&M_(i.error,o),complete:i.complete&&M_(i.complete,o)}):r=i}this.destination=new O3(r)}}function lm(t){ao.useDeprecatedSynchronousErrorHandling?function fu(t){ao.useDeprecatedSynchronousErrorHandling&&Oo&&(Oo.errorThrown=!0,Oo.error=t)}(t):ci(t)}function A_(t,i){const{onStoppedNotification:e}=ao;e&&ei.setTimeout(()=>e(t,i))}const L3={closed:!0,next:pr,error:function P3(t){throw t},complete:pr},I_="function"==typeof Symbol&&Symbol.observable||"@@observable";function ys(t){return t}function zC(t){return 0===t.length?ys:1===t.length?t[0]:function(e){return t.reduce((n,r)=>r(n),e)}}let ni=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(e,n,r){const o=function V3(t){return t&&t instanceof Oa||function B3(t){return t&&Wt(t.next)&&Wt(t.error)&&Wt(t.complete)}(t)&&Ur(t)}(e)?e:new mu(e,n,r);return uc(()=>{const{operator:a,source:s}=this;o.add(a?a.call(o,s):s?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(n){e.error(n)}}forEach(e,n){return new(n=$C(n))((r,o)=>{const a=new mu({next:s=>{try{e(s)}catch(c){o(c),a.unsubscribe()}},error:o,complete:r});this.subscribe(a)})}_subscribe(e){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(e)}[I_](){return this}pipe(...e){return zC(e)(this)}toPromise(e){return new(e=$C(e))((n,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>n(o))})}}return t.create=i=>new t(i),t})();function $C(t){var i;return null!==(i=t??ao.Promise)&&void 0!==i?i:Promise}const H3=lc(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Ce=(()=>{class t extends ni{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const n=new jC(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new H3}next(e){uc(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const n of this.currentObservers)n.next(e)}})}error(e){uc(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:n}=this;for(;n.length;)n.shift().error(e)}})}complete(){uc(()=>{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:n,isStopped:r,observers:o}=this;return n||r?dc:(this.currentObservers=null,o.push(e),new yt(()=>{this.currentObservers=null,Zo(o,e)}))}_checkFinalizedStatuses(e){const{hasError:n,thrownError:r,isStopped:o}=this;n?e.error(r):o&&e.complete()}asObservable(){const e=new ni;return e.source=this,e}}return t.create=(i,e)=>new jC(i,e),t})();class jC extends Ce{constructor(i,e){super(),this.destination=i,this.source=e}next(i){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,i)}error(i){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,i)}complete(){var i,e;null===(e=null===(i=this.destination)||void 0===i?void 0:i.complete)||void 0===e||e.call(i)}_subscribe(i){var e,n;return null!==(n=null===(e=this.source)||void 0===e?void 0:e.subscribe(i))&&void 0!==n?n:dc}}function WC(t){return Wt(t?.lift)}function Gi(t){return i=>{if(WC(i))return i.lift(function(e){try{return t(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Bi(t,i,e,n,r){return new U3(t,i,e,n,r)}class U3 extends Oa{constructor(i,e,n,r,o,a){super(i),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(c){i.error(c)}}:super._next,this._error=r?function(s){try{r(s)}catch(c){i.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(s){i.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var i;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(i=this.onFinalize)||void 0===i||i.call(this))}}}function Ye(t,i){return Gi((e,n)=>{let r=0;e.subscribe(Bi(n,o=>{n.next(t.call(i,o,r++))}))})}function hc(t){return this instanceof hc?(this.v=t,this):new hc(t)}function W3(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,i=t[Symbol.asyncIterator];return i?i.call(t):(t=function XC(t){var i="function"==typeof Symbol&&Symbol.iterator,e=i&&t[i],n=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(o){e[o]=t[o]&&function(a){return new Promise(function(s,c){!function r(o,a,s,c){Promise.resolve(c).then(function(l){o({value:l,done:s})},a)}(s,c,(a=t[o](a)).done,a.value)})}}}const R_=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function QC(t){return Wt(t?.then)}function YC(t){return Wt(t[I_])}function KC(t){return Symbol.asyncIterator&&Wt(t?.[Symbol.asyncIterator])}function ZC(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 JC=function q3(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function ek(t){return Wt(t?.[JC])}function tk(t){return function j3(t,i,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,n=e.apply(t,i||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(h){n[h]&&(r[h]=function(f){return new Promise(function(m,g){o.push([h,f,m,g])>1||s(h,f)})})}function s(h,f){try{!function c(h){h.value instanceof hc?Promise.resolve(h.value.v).then(l,d):u(o[0][2],h)}(n[h](f))}catch(m){u(o[0][3],m)}}function l(h){s("next",h)}function d(h){s("throw",h)}function u(h,f){h(f),o.shift(),o.length&&s(o[0][0],o[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:n,done:r}=yield hc(e.read());if(r)return yield hc(void 0);yield yield hc(n)}}finally{e.releaseLock()}})}function ik(t){return Wt(t?.getReader)}function Yn(t){if(t instanceof ni)return t;if(null!=t){if(YC(t))return function X3(t){return new ni(i=>{const e=t[I_]();if(Wt(e.subscribe))return e.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(R_(t))return function Q3(t){return new ni(i=>{for(let e=0;e{t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,ci)})}(t);if(KC(t))return nk(t);if(ek(t))return function K3(t){return new ni(i=>{for(const e of t)if(i.next(e),i.closed)return;i.complete()})}(t);if(ik(t))return function Z3(t){return nk(tk(t))}(t)}throw ZC(t)}function nk(t){return new ni(i=>{(function J3(t,i){var e,n,r,o;return function z3(t,i,e,n){return new(e||(e=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):function r(o){return o instanceof e?o:new e(function(a){a(o)})}(d.value).then(s,c)}l((n=n.apply(t,i||[])).next())})}(this,void 0,void 0,function*(){try{for(e=W3(t);!(n=yield e.next()).done;)if(i.next(n.value),i.closed)return}catch(a){r={error:a}}finally{try{n&&!n.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}i.complete()})})(t,i).catch(e=>i.error(e))})}function Pa(t,i,e,n=0,r=!1){const o=i.schedule(function(){e(),r?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!r)return o}function Sn(t,i,e=1/0){return Wt(i)?Sn((n,r)=>Ye((o,a)=>i(n,o,r,a))(Yn(t(n,r))),e):("number"==typeof i&&(e=i),Gi((n,r)=>function e8(t,i,e,n,r,o,a,s){const c=[];let l=0,d=0,u=!1;const h=()=>{u&&!c.length&&!l&&i.complete()},f=g=>l{o&&i.next(g),l++;let p=!1;Yn(e(g,d++)).subscribe(Bi(i,_=>{r?.(_),o?f(_):i.next(_)},()=>{p=!0},void 0,()=>{if(p)try{for(l--;c.length&&lm(_)):m(_)}h()}catch(_){i.error(_)}}))};return t.subscribe(Bi(i,f,()=>{u=!0,h()})),()=>{s?.()}}(n,r,t,e)))}function kl(t=1/0){return Sn(ys,t)}const zr=new ni(t=>t.complete());function rk(t){return t&&Wt(t.schedule)}function O_(t){return t[t.length-1]}function ok(t){return Wt(O_(t))?t.pop():void 0}function pu(t){return rk(O_(t))?t.pop():void 0}function ak(t,i=0){return Gi((e,n)=>{e.subscribe(Bi(n,r=>Pa(n,t,()=>n.next(r),i),()=>Pa(n,t,()=>n.complete(),i),r=>Pa(n,t,()=>n.error(r),i)))})}function sk(t,i=0){return Gi((e,n)=>{n.add(t.schedule(()=>e.subscribe(n),i))})}function ck(t,i){if(!t)throw new Error("Iterable cannot be null");return new ni(e=>{Pa(e,i,()=>{const n=t[Symbol.asyncIterator]();Pa(e,i,()=>{n.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function Zi(t,i){return i?function c8(t,i){if(null!=t){if(YC(t))return function n8(t,i){return Yn(t).pipe(sk(i),ak(i))}(t,i);if(R_(t))return function o8(t,i){return new ni(e=>{let n=0;return i.schedule(function(){n===t.length?e.complete():(e.next(t[n++]),e.closed||this.schedule())})})}(t,i);if(QC(t))return function r8(t,i){return Yn(t).pipe(sk(i),ak(i))}(t,i);if(KC(t))return ck(t,i);if(ek(t))return function a8(t,i){return new ni(e=>{let n;return Pa(e,i,()=>{n=t[JC](),Pa(e,i,()=>{let r,o;try{({value:r,done:o}=n.next())}catch(a){return void e.error(a)}o?e.complete():e.next(r)},0,!0)}),()=>Wt(n?.return)&&n.return()})}(t,i);if(ik(t))return function s8(t,i){return ck(tk(t),i)}(t,i)}throw ZC(t)}(t,i):Yn(t)}function Vi(...t){const i=pu(t),e=function i8(t,i){return"number"==typeof O_(t)?t.pop():i}(t,1/0),n=t;return n.length?1===n.length?Yn(n[0]):kl(e)(Zi(n,i)):zr}function lk(t={}){const{connector:i=(()=>new Ce),resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:r=!0}=t;return o=>{let a,s,c,l=0,d=!1,u=!1;const h=()=>{s?.unsubscribe(),s=void 0},f=()=>{h(),a=c=void 0,d=u=!1},m=()=>{const g=a;f(),g?.unsubscribe()};return Gi((g,p)=>{l++,!u&&!d&&h();const _=c=c??i();p.add(()=>{l--,0===l&&!u&&!d&&(s=P_(m,r))}),_.subscribe(p),!a&&l>0&&(a=new mu({next:w=>_.next(w),error:w=>{u=!0,h(),s=P_(f,e,w),_.error(w)},complete:()=>{d=!0,h(),s=P_(f,n),_.complete()}}),Yn(g).subscribe(a))})(o)}}function P_(t,i,...e){if(!0===i)return void t();if(!1===i)return;const n=new mu({next:()=>{n.unsubscribe(),t()}});return Yn(i(...e)).subscribe(n)}function Mi(t){for(let i in t)if(t[i]===Mi)return i;throw Error("Could not find renamed property on target object.")}function L_(t,i){for(const e in i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function Pi(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Pi).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const i=t.toString();if(null==i)return""+i;const e=i.indexOf("\n");return-1===e?i:i.substring(0,e)}function N_(t,i){return null==t||""===t?null===i?"":i:null==i||""===i?t:t+" "+i}const l8=Mi({__forward_ref__:Mi});function Xt(t){return t.__forward_ref__=Xt,t.toString=function(){return Pi(this())},t}function pt(t){return B_(t)?t():t}function B_(t){return"function"==typeof t&&t.hasOwnProperty(l8)&&t.__forward_ref__===Xt}function V_(t){return t&&!!t.\u0275providers}const dm="https://g.co/ng/security#xss";class ue extends Error{constructor(i,e){super(um(i,e)),this.code=i}}function um(t,i){return`NG0${Math.abs(t)}${i?": "+i.trim():""}`}function wt(t){return"string"==typeof t?t:null==t?"":String(t)}function hm(t,i){throw new ue(-201,!1)}function so(t,i){null==t&&function pi(t,i,e,n){throw new Error(`ASSERTION ERROR: ${t}`+(null==n?"":` [Expected=> ${e} ${n} ${i} <=Actual]`))}(i,t,null,"!=")}function ve(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function at(t){return{providers:t.providers||[],imports:t.imports||[]}}function fm(t){return dk(t,mm)||dk(t,hk)}function dk(t,i){return t.hasOwnProperty(i)?t[i]:null}function uk(t){return t&&(t.hasOwnProperty(H_)||t.hasOwnProperty(_8))?t[H_]:null}const mm=Mi({\u0275prov:Mi}),H_=Mi({\u0275inj:Mi}),hk=Mi({ngInjectableDef:Mi}),_8=Mi({ngInjectorDef:Mi});var gt=(()=>((gt=gt||{})[gt.Default=0]="Default",gt[gt.Host=1]="Host",gt[gt.Self=2]="Self",gt[gt.SkipSelf=4]="SkipSelf",gt[gt.Optional=8]="Optional",gt))();let U_;function co(t){const i=U_;return U_=t,i}function fk(t,i,e){const n=fm(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:e>.Optional?null:void 0!==i?i:void hm(Pi(t))}const Hi=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),gu={},z_="__NG_DI_FLAG__",pm="ngTempTokenPath",v8="ngTokenPath",x8=/\n/gm,y8="\u0275",mk="__source";let _u;function Dl(t){const i=_u;return _u=t,i}function w8(t,i=gt.Default){if(void 0===_u)throw new ue(-203,!1);return null===_u?fk(t,void 0,i):_u.get(t,i>.Optional?null:void 0,i)}function G(t,i=gt.Default){return(function b8(){return U_}()||w8)(pt(t),i)}function ht(t,i=gt.Default){return G(t,gm(i))}function gm(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function $_(t){const i=[];for(let e=0;e((Jo=Jo||{})[Jo.OnPush=0]="OnPush",Jo[Jo.Default=1]="Default",Jo))(),Po=(()=>{return(t=Po||(Po={}))[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",Po;var t})();const Na={},li=[],_m=Mi({\u0275cmp:Mi}),j_=Mi({\u0275dir:Mi}),W_=Mi({\u0275pipe:Mi}),gk=Mi({\u0275mod:Mi}),Ba=Mi({\u0275fac:Mi}),vu=Mi({__NG_ELEMENT_ID__:Mi});let S8=0;function je(t){return La(()=>{const i=bk(t),e={...i,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Jo.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:null,data:t.data||{},encapsulation:t.encapsulation||Po.Emulated,id:"c"+S8++,styles:t.styles||li,_:null,schemas:t.schemas||null,tView:null};vk(e);const n=t.dependencies;return e.directiveDefs=bm(n,!1),e.pipeDefs=bm(n,!0),e})}function T8(t){return gi(t)||Kn(t)}function M8(t){return null!==t}function ct(t){return La(()=>({type:t.type,bootstrap:t.bootstrap||li,declarations:t.declarations||li,imports:t.imports||li,exports:t.exports||li,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function _k(t,i){if(null==t)return Na;const e={};for(const n in t)if(t.hasOwnProperty(n)){let r=t[n],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=n,i&&(i[r]=o)}return e}function Q(t){return La(()=>{const i=bk(t);return vk(i),i})}function Mr(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 gi(t){return t[_m]||null}function Kn(t){return t[j_]||null}function Ar(t){return t[W_]||null}function jr(t,i){const e=t[gk]||null;if(!e&&!0===i)throw new Error(`Type ${Pi(t)} does not have '\u0275mod' property.`);return e}function bk(t){const i={};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:i,exportAs:t.exportAs||null,standalone:!0===t.standalone,selectors:t.selectors||li,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:_k(t.inputs,i),outputs:_k(t.outputs)}}function vk(t){t.features?.forEach(i=>i(t))}function bm(t,i){if(!t)return null;const e=i?Ar:T8;return()=>("function"==typeof t?t():t).map(n=>e(n)).filter(M8)}const Va=0,Ge=1,At=2,Qi=3,Lo=4,fc=5,Zn=6,El=7,Ji=8,vm=9,xm=10,Lt=11,G_=12,xu=13,xk=14,Tl=15,Jn=16,yu=17,Ml=18,ea=19,wu=20,yk=21,Ui=22,q_=1,wk=2,ym=7,wm=8,Al=9,_r=10;function Wr(t){return Array.isArray(t)&&"object"==typeof t[q_]}function No(t){return Array.isArray(t)&&!0===t[q_]}function X_(t){return 0!=(4&t.flags)}function Cu(t){return t.componentOffset>-1}function Cm(t){return 1==(1&t.flags)}function Bo(t){return!!t.template}function I8(t){return 0!=(256&t[At])}function mc(t,i){return t.hasOwnProperty(Ba)?t[Ba]:null}class O8{constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Ei(){return Dk}function Dk(t){return t.type.prototype.ngOnChanges&&(t.setInput=L8),P8}function P8(){const t=Ek(this),i=t?.current;if(i){const e=t.previous;if(e===Na)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function L8(t,i,e,n){const r=this.declaredInputs[e],o=Ek(t)||function N8(t,i){return t[Sk]=i}(t,{previous:Na,current:null}),a=o.current||(o.current={}),s=o.previous,c=s[r];a[r]=new O8(c&&c.currentValue,i,s===Na),t[n]=i}Ei.ngInherit=!0;const Sk="__ngSimpleChanges__";function Ek(t){return t[Sk]||null}const lo=function(t,i,e){},Tk="svg";function Wn(t){for(;Array.isArray(t);)t=t[Va];return t}function km(t,i){return Wn(i[t])}function Gr(t,i){return Wn(i[t.index])}function Ak(t,i){return t.data[i]}function Il(t,i){return t[i]}function Ir(t,i){const e=i[t];return Wr(e)?e:e[Va]}function Dm(t){return 64==(64&t[At])}function Cs(t,i){return null==i?null:t[i]}function Ik(t){t[Ml]=0}function Y_(t,i){t[fc]+=i;let e=t,n=t[Qi];for(;null!==n&&(1===i&&1===e[fc]||-1===i&&0===e[fc]);)n[fc]+=i,e=n,n=n[Qi]}const Ct={lFrame:Uk(null),bindingsEnabled:!0};function Rk(){return Ct.bindingsEnabled}function ge(){return Ct.lFrame.lView}function ti(){return Ct.lFrame.tView}function Oe(t){return Ct.lFrame.contextLView=t,t[Ji]}function Pe(t){return Ct.lFrame.contextLView=null,t}function Gn(){let t=Ok();for(;null!==t&&64===t.type;)t=t.parent;return t}function Ok(){return Ct.lFrame.currentTNode}function ta(t,i){const e=Ct.lFrame;e.currentTNode=t,e.isParent=i}function K_(){return Ct.lFrame.isParent}function Z_(){Ct.lFrame.isParent=!1}function br(){const t=Ct.lFrame;let i=t.bindingRootIndex;return-1===i&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function Fl(){return Ct.lFrame.bindingIndex++}function Ua(t){const i=Ct.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function Y8(t,i){const e=Ct.lFrame;e.bindingIndex=e.bindingRootIndex=t,J_(i)}function J_(t){Ct.lFrame.currentDirectiveIndex=t}function eb(t){const i=Ct.lFrame.currentDirectiveIndex;return-1===i?null:t[i]}function Bk(){return Ct.lFrame.currentQueryIndex}function tb(t){Ct.lFrame.currentQueryIndex=t}function Z8(t){const i=t[Ge];return 2===i.type?i.declTNode:1===i.type?t[Zn]:null}function Vk(t,i,e){if(e>.SkipSelf){let r=i,o=t;for(;!(r=r.parent,null!==r||e>.Host||(r=Z8(o),null===r||(o=o[Tl],10&r.type))););if(null===r)return!1;i=r,t=o}const n=Ct.lFrame=Hk();return n.currentTNode=i,n.lView=t,!0}function ib(t){const i=Hk(),e=t[Ge];Ct.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function Hk(){const t=Ct.lFrame,i=null===t?null:t.child;return null===i?Uk(t):i}function Uk(t){const i={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=i),i}function zk(){const t=Ct.lFrame;return Ct.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const $k=zk;function nb(){const t=zk();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 vr(){return Ct.lFrame.selectedIndex}function pc(t){Ct.lFrame.selectedIndex=t}function qi(){const t=Ct.lFrame;return Ak(t.tView,t.selectedIndex)}function za(){Ct.lFrame.currentNamespace=Tk}function Rl(){!function iB(){Ct.lFrame.currentNamespace=null}()}function Sm(t,i){for(let e=i.directiveStart,n=i.directiveEnd;e=n)break}else i[c]<0&&(t[Ml]+=65536),(s>11>16&&(3&t[At])===i){t[At]+=2048,lo(4,s,o);try{o.call(s)}finally{lo(5,s,o)}}}else{lo(4,s,o);try{o.call(s)}finally{lo(5,s,o)}}}const Ol=-1;class Du{constructor(i,e,n){this.factory=i,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function ab(t,i,e){let n=0;for(;ni){a=o-1;break}}}for(;o>16}(t),n=i;for(;e>0;)n=n[Tl],e--;return n}let sb=!0;function Im(t){const i=sb;return sb=t,i}const Qk=255,Yk=5;let dB=0;const ia={};function Fm(t,i){const e=Kk(t,i);if(-1!==e)return e;const n=i[Ge];n.firstCreatePass&&(t.injectorIndex=i.length,cb(n.data,t),cb(i,null),cb(n.blueprint,null));const r=lb(t,i),o=t.injectorIndex;if(Xk(r)){const a=Mm(r),s=Am(r,i),c=s[Ge].data;for(let l=0;l<8;l++)i[o+l]=s[a+l]|c[a+l]}return i[o+8]=r,o}function cb(t,i){t.push(0,0,0,0,0,0,0,0,i)}function Kk(t,i){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===i[t.injectorIndex+8]?-1:t.injectorIndex}function lb(t,i){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,n=null,r=i;for(;null!==r;){if(n=rD(r),null===n)return Ol;if(e++,r=r[Tl],-1!==n.injectorIndex)return n.injectorIndex|e<<16}return Ol}function db(t,i,e){!function uB(t,i,e){let n;"string"==typeof e?n=e.charCodeAt(0)||0:e.hasOwnProperty(vu)&&(n=e[vu]),null==n&&(n=e[vu]=dB++);const r=n&Qk;i.data[t+(r>>Yk)]|=1<=0?i&Qk:pB:i}(e);if("function"==typeof o){if(!Vk(i,t,n))return n>.Host?Zk(r,0,n):Jk(i,e,n,r);try{const a=o(n);if(null!=a||n>.Optional)return a;hm()}finally{$k()}}else if("number"==typeof o){let a=null,s=Kk(t,i),c=Ol,l=n>.Host?i[Jn][Zn]:null;for((-1===s||n>.SkipSelf)&&(c=-1===s?lb(t,i):i[s+8],c!==Ol&&nD(n,!1)?(a=i[Ge],s=Mm(c),i=Am(c,i)):s=-1);-1!==s;){const d=i[Ge];if(iD(o,s,d.data)){const u=fB(s,i,e,a,n,l);if(u!==ia)return u}c=i[s+8],c!==Ol&&nD(n,i[Ge].data[s+8]===l)&&iD(o,s,i)?(a=d,s=Mm(c),i=Am(c,i)):s=-1}}return r}function fB(t,i,e,n,r,o){const a=i[Ge],s=a.data[t+8],d=Rm(s,a,e,null==n?Cu(s)&&sb:n!=a&&0!=(3&s.type),r>.Host&&o===s);return null!==d?gc(i,a,d,s):ia}function Rm(t,i,e,n,r){const o=t.providerIndexes,a=i.data,s=1048575&o,c=t.directiveStart,d=o>>20,h=r?s+d:t.directiveEnd;for(let f=n?s:s+d;f=c&&m.type===e)return f}if(r){const f=a[c];if(f&&Bo(f)&&f.type===e)return c}return null}function gc(t,i,e,n){let r=t[e];const o=i.data;if(function aB(t){return t instanceof Du}(r)){const a=r;a.resolving&&function d8(t,i){const e=i?`. Dependency path: ${i.join(" > ")} > ${t}`:"";throw new ue(-200,`Circular dependency in DI detected for ${t}${e}`)}(function mi(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():wt(t)}(o[e]));const s=Im(a.canSeeViewProviders);a.resolving=!0;const c=a.injectImpl?co(a.injectImpl):null;Vk(t,n,gt.Default);try{r=t[e]=a.factory(void 0,o,t,n),i.firstCreatePass&&e>=n.directiveStart&&function rB(t,i,e){const{ngOnChanges:n,ngOnInit:r,ngDoCheck:o}=i.type.prototype;if(n){const a=Dk(i);(e.preOrderHooks??(e.preOrderHooks=[])).push(t,a),(e.preOrderCheckHooks??(e.preOrderCheckHooks=[])).push(t,a)}r&&(e.preOrderHooks??(e.preOrderHooks=[])).push(0-t,r),o&&((e.preOrderHooks??(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks??(e.preOrderCheckHooks=[])).push(t,o))}(e,o[e],i)}finally{null!==c&&co(c),Im(s),a.resolving=!1,$k()}}return r}function iD(t,i,e){return!!(e[i+(t>>Yk)]&1<{const i=t.prototype.constructor,e=i[Ba]||ub(i),n=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==n;){const o=r[Ba]||ub(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function ub(t){return B_(t)?()=>{const i=ub(pt(t));return i&&i()}:mc(t)}function rD(t){const i=t[Ge],e=i.type;return 2===e?i.declTNode:1===e?t[Zn]:null}function uo(t){return function hB(t,i){if("class"===i)return t.classes;if("style"===i)return t.styles;const e=t.attrs;if(e){const n=e.length;let r=0;for(;r{const n=function hb(t){return function(...e){if(t){const n=t(...e);for(const r in n)this[r]=n[r]}}}(i);function r(...o){if(this instanceof r)return n.apply(this,o),this;const a=new r(...o);return s.annotation=a,s;function s(c,l,d){const u=c.hasOwnProperty(Nl)?c[Nl]:Object.defineProperty(c,Nl,{value:[]})[Nl];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(a),c}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class ae{constructor(i,e){this._desc=i,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ve({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function _c(t,i){t.forEach(e=>Array.isArray(e)?_c(e,i):i(e))}function aD(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function Om(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function Mu(t,i){const e=[];for(let n=0;n=0?t[1|n]=e:(n=~n,function xB(t,i,e,n){let r=t.length;if(r==i)t.push(e,n);else if(1===r)t.push(n,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>i;)t[r]=t[r-2],r--;t[i]=e,t[i+1]=n}}(t,n,i,e)),n}function mb(t,i){const e=Hl(t,i);if(e>=0)return t[1|e]}function Hl(t,i){return function sD(t,i,e){let n=0,r=t.length>>e;for(;r!==n;){const o=n+(r-n>>1),a=t[o<i?r=o:n=o+1}return~(r<({token:t})),-1),na=bu(Vl("Optional"),8),bc=bu(Vl("SkipSelf"),4);var Fr=(()=>((Fr=Fr||{})[Fr.Important=1]="Important",Fr[Fr.DashCase=2]="DashCase",Fr))();const vb=new Map;let zB=0;const yb="__ngContext__";function er(t,i){Wr(i)?(t[yb]=i[wu],function jB(t){vb.set(t[wu],t)}(i)):t[yb]=i}let wb;function Cb(t,i){return wb(t,i)}function Ru(t){const i=t[Qi];return No(i)?i[Qi]:i}function kb(t){return ED(t[xu])}function Db(t){return ED(t[Lo])}function ED(t){for(;null!==t&&!No(t);)t=t[Lo];return t}function zl(t,i,e,n,r){if(null!=n){let o,a=!1;No(n)?o=n:Wr(n)&&(a=!0,n=n[Va]);const s=Wn(n);0===t&&null!==e?null==r?RD(i,e,s):vc(i,e,s,r||null,!0):1===t&&null!==e?vc(i,e,s,r||null,!0):2===t?function Fb(t,i,e){const n=Vm(t,i);n&&function u5(t,i,e,n){t.removeChild(i,e,n)}(t,n,i,e)}(i,s,a):3===t&&i.destroyNode(s),null!=o&&function m5(t,i,e,n,r){const o=e[ym];o!==Wn(e)&&zl(i,t,n,o,r);for(let s=_r;s0&&(t[e-1][Lo]=n[Lo]);const o=Om(t,_r+i);!function n5(t,i){Ou(t,i,i[Lt],2,null,null),i[Va]=null,i[Zn]=null}(n[Ge],n);const a=o[ea];null!==a&&a.detachView(o[Ge]),n[Qi]=null,n[Lo]=null,n[At]&=-65}return n}function AD(t,i){if(!(128&i[At])){const e=i[Lt];e.destroyNode&&Ou(t,i,e,3,null,null),function a5(t){let i=t[xu];if(!i)return Mb(t[Ge],t);for(;i;){let e=null;if(Wr(i))e=i[xu];else{const n=i[_r];n&&(e=n)}if(!e){for(;i&&!i[Lo]&&i!==t;)Wr(i)&&Mb(i[Ge],i),i=i[Qi];null===i&&(i=t),Wr(i)&&Mb(i[Ge],i),e=i&&i[Lo]}i=e}}(i)}}function Mb(t,i){if(!(128&i[At])){i[At]&=-65,i[At]|=128,function d5(t,i){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let n=0;n=0?n[r=a]():n[r=-a].unsubscribe(),o+=2}else{const a=n[r=e[o+1]];e[o].call(a)}if(null!==n){for(let o=r+1;o-1){const{encapsulation:o}=t.data[n.directiveStart+r];if(o===Po.None||o===Po.Emulated)return null}return Gr(n,e)}}(t,i.parent,e)}function vc(t,i,e,n,r){t.insertBefore(i,e,n,r)}function RD(t,i,e){t.appendChild(i,e)}function OD(t,i,e,n,r){null!==n?vc(t,i,e,n,r):RD(t,i,e)}function Vm(t,i){return t.parentNode(i)}function PD(t,i,e){return ND(t,i,e)}let Ab,zm,Pb,$m,ND=function LD(t,i,e){return 40&t.type?Gr(t,e):null};function Hm(t,i,e,n){const r=ID(t,n,i),o=i[Lt],s=PD(n.parent||i[Zn],n,i);if(null!=r)if(Array.isArray(e))for(let c=0;ct,createScript:t=>t,createScriptURL:t=>t})}catch{}return zm}()?.createHTML(t)||t}function jD(t){return function Lb(){if(void 0===$m&&($m=null,Hi.trustedTypes))try{$m=Hi.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return $m}()?.createHTML(t)||t}class xc{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${dm})`}}class y5 extends xc{getTypeName(){return"HTML"}}class w5 extends xc{getTypeName(){return"Style"}}class C5 extends xc{getTypeName(){return"Script"}}class k5 extends xc{getTypeName(){return"URL"}}class D5 extends xc{getTypeName(){return"ResourceURL"}}function Xr(t){return t instanceof xc?t.changingThisBreaksApplicationSecurity:t}function ra(t,i){const e=function S5(t){return t instanceof xc&&t.getTypeName()||null}(t);if(null!=e&&e!==i){if("ResourceURL"===e&&"URL"===i)return!0;throw new Error(`Required a safe ${i}, got a ${e} (see ${dm})`)}return e===i}class F5{constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{const e=(new window.DOMParser).parseFromString($l(i),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(i):(e.removeChild(e.firstChild),e)}catch{return null}}}class R5{constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){const e=this.inertDocument.createElement("template");return e.innerHTML=$l(i),e}}const P5=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function jm(t){return(t=String(t)).match(P5)?t:"unsafe:"+t}function $a(t){const i={};for(const e of t.split(","))i[e]=!0;return i}function Pu(...t){const i={};for(const e of t)for(const n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}const XD=$a("area,br,col,hr,img,wbr"),QD=$a("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),YD=$a("rp,rt"),Nb=Pu(XD,Pu(QD,$a("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")),Pu(YD,$a("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")),Pu(YD,QD)),Bb=$a("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),KD=Pu(Bb,$a("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"),$a("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")),L5=$a("script,style,template");class N5{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(i){let e=i.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(i){const e=i.nodeName.toLowerCase();if(!Nb.hasOwnProperty(e))return this.sanitizedSomething=!0,!L5.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=i.attributes;for(let r=0;r"),!0}endElement(i){const e=i.nodeName.toLowerCase();Nb.hasOwnProperty(e)&&!XD.hasOwnProperty(e)&&(this.buf.push(""))}chars(i){this.buf.push(ZD(i))}checkClobberedElement(i,e){if(e&&(i.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${i.outerHTML}`);return e}}const B5=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,V5=/([^\#-~ |!])/g;function ZD(t){return t.replace(/&/g,"&").replace(B5,function(i){return"&#"+(1024*(i.charCodeAt(0)-55296)+(i.charCodeAt(1)-56320)+65536)+";"}).replace(V5,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}let Wm;function JD(t,i){let e=null;try{Wm=Wm||function qD(t){const i=new R5(t);return function O5(){try{return!!(new window.DOMParser).parseFromString($l(""),"text/html")}catch{return!1}}()?new F5(i):i}(t);let n=i?String(i):"";e=Wm.getInertBodyElement(n);let r=5,o=n;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,n=o,o=e.innerHTML,e=Wm.getInertBodyElement(n)}while(n!==o);return $l((new N5).sanitizeChildren(Vb(e)||e))}finally{if(e){const n=Vb(e)||e;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function Vb(t){return"content"in t&&function H5(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var di=(()=>((di=di||{})[di.NONE=0]="NONE",di[di.HTML=1]="HTML",di[di.STYLE=2]="STYLE",di[di.SCRIPT=3]="SCRIPT",di[di.URL=4]="URL",di[di.RESOURCE_URL=5]="RESOURCE_URL",di))();function Gm(t){const i=Lu();return i?jD(i.sanitize(di.HTML,t)||""):ra(t,"HTML")?jD(Xr(t)):JD(function $D(){return void 0!==Pb?Pb:typeof document<"u"?document:void 0}(),wt(t))}function Hb(t){const i=Lu();return i?i.sanitize(di.URL,t)||"":ra(t,"URL")?Xr(t):jm(wt(t))}function Lu(){const t=ge();return t&&t[G_]}const qm=new ae("ENVIRONMENT_INITIALIZER"),iS=new ae("INJECTOR",-1),nS=new ae("INJECTOR_DEF_TYPES");class rS{get(i,e=gu){if(e===gu){const n=new Error(`NullInjectorError: No provider for ${Pi(i)}!`);throw n.name="NullInjectorError",n}return e}}function q5(...t){return{\u0275providers:oS(0,t),\u0275fromNgModule:!0}}function oS(t,...i){const e=[],n=new Set;let r;return _c(i,o=>{const a=o;Ub(a,e,[],n)&&(r||(r=[]),r.push(a))}),void 0!==r&&aS(r,e),e}function aS(t,i){for(let e=0;e{i.push(o)})}}function Ub(t,i,e,n){if(!(t=pt(t)))return!1;let r=null,o=uk(t);const a=!o&&gi(t);if(o||a){if(a&&!a.standalone)return!1;r=t}else{const c=t.ngModule;if(o=uk(c),!o)return!1;r=c}const s=n.has(r);if(a){if(s)return!1;if(n.add(r),a.dependencies){const c="function"==typeof a.dependencies?a.dependencies():a.dependencies;for(const l of c)Ub(l,i,e,n)}}else{if(!o)return!1;{if(null!=o.imports&&!s){let l;n.add(r);try{_c(o.imports,d=>{Ub(d,i,e,n)&&(l||(l=[]),l.push(d))})}finally{}void 0!==l&&aS(l,i)}if(!s){const l=mc(r)||(()=>new r);i.push({provide:r,useFactory:l,deps:li},{provide:nS,useValue:r,multi:!0},{provide:qm,useValue:()=>G(r),multi:!0})}const c=o.providers;null==c||s||zb(c,d=>{i.push(d)})}}return r!==t&&void 0!==t.providers}function zb(t,i){for(let e of t)V_(e)&&(e=e.\u0275providers),Array.isArray(e)?zb(e,i):i(e)}const X5=Mi({provide:String,useValue:Mi});function $b(t){return null!==t&&"object"==typeof t&&X5 in t}function yc(t){return"function"==typeof t}const jb=new ae("Set Injector scope."),Xm={},Y5={};let Wb;function Qm(){return void 0===Wb&&(Wb=new rS),Wb}class oa{}class lS extends oa{get destroyed(){return this._destroyed}constructor(i,e,n,r){super(),this.parent=e,this.source=n,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,qb(i,a=>this.processProvider(a)),this.records.set(iS,jl(void 0,this)),r.has("environment")&&this.records.set(oa,jl(void 0,this));const o=this.records.get(jb);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(nS.multi,li,gt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();for(const i of this._onDestroyHooks)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(i){this._onDestroyHooks.push(i)}runInContext(i){this.assertNotDestroyed();const e=Dl(this),n=co(void 0);try{return i()}finally{Dl(e),co(n)}}get(i,e=gu,n=gt.Default){this.assertNotDestroyed(),n=gm(n);const r=Dl(this),o=co(void 0);try{if(!(n>.SkipSelf)){let s=this.records.get(i);if(void 0===s){const c=function t6(t){return"function"==typeof t||"object"==typeof t&&t instanceof ae}(i)&&fm(i);s=c&&this.injectableDefInScope(c)?jl(Gb(i),Xm):null,this.records.set(i,s)}if(null!=s)return this.hydrate(i,s)}return(n>.Self?Qm():this.parent).get(i,e=n>.Optional&&e===gu?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[pm]=a[pm]||[]).unshift(Pi(i)),r)throw a;return function k8(t,i,e,n){const r=t[pm];throw i[mk]&&r.unshift(i[mk]),t.message=function D8(t,i,e,n=null){t=t&&"\n"===t.charAt(0)&&t.charAt(1)==y8?t.slice(2):t;let r=Pi(i);if(Array.isArray(i))r=i.map(Pi).join(" -> ");else if("object"==typeof i){let o=[];for(let a in i)if(i.hasOwnProperty(a)){let s=i[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):Pi(s)))}r=`{${o.join(", ")}}`}return`${e}${n?"("+n+")":""}[${r}]: ${t.replace(x8,"\n ")}`}("\n"+t.message,r,e,n),t[v8]=r,t[pm]=null,t}(a,i,"R3InjectorError",this.source)}throw a}finally{co(o),Dl(r)}}resolveInjectorInitializers(){const i=Dl(this),e=co(void 0);try{const n=this.get(qm.multi,li,gt.Self);for(const r of n)r()}finally{Dl(i),co(e)}}toString(){const i=[],e=this.records;for(const n of e.keys())i.push(Pi(n));return`R3Injector[${i.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ue(205,!1)}processProvider(i){let e=yc(i=pt(i))?i:pt(i&&i.provide);const n=function Z5(t){return $b(t)?jl(void 0,t.useValue):jl(dS(t),Xm)}(i);if(yc(i)||!0!==i.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=jl(void 0,Xm,!0),r.factory=()=>$_(r.multi),this.records.set(e,r)),e=i,r.multi.push(i)}this.records.set(e,n)}hydrate(i,e){return e.value===Xm&&(e.value=Y5,e.value=e.factory()),"object"==typeof e.value&&e.value&&function e6(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(i){if(!i.providedIn)return!1;const e=pt(i.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function Gb(t){const i=fm(t),e=null!==i?i.factory:mc(t);if(null!==e)return e;if(t instanceof ae)throw new ue(204,!1);if(t instanceof Function)return function K5(t){const i=t.length;if(i>0)throw Mu(i,"?"),new ue(204,!1);const e=function g8(t){return t&&(t[mm]||t[hk])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new ue(204,!1)}function dS(t,i,e){let n;if(yc(t)){const r=pt(t);return mc(r)||Gb(r)}if($b(t))n=()=>pt(t.useValue);else if(function cS(t){return!(!t||!t.useFactory)}(t))n=()=>t.useFactory(...$_(t.deps||[]));else if(function sS(t){return!(!t||!t.useExisting)}(t))n=()=>G(pt(t.useExisting));else{const r=pt(t&&(t.useClass||t.provide));if(!function J5(t){return!!t.deps}(t))return mc(r)||Gb(r);n=()=>new r(...$_(t.deps))}return n}function jl(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function qb(t,i){for(const e of t)Array.isArray(e)?qb(e,i):e&&V_(e)?qb(e.\u0275providers,i):i(e)}class i6{}class uS{}class r6{resolveComponentFactory(i){throw function n6(t){const i=Error(`No component factory found for ${Pi(t)}. Did you add it to @NgModule.entryComponents?`);return i.ngComponent=t,i}(i)}}let ks=(()=>{class t{}return t.NULL=new r6,t})();function o6(){return Wl(Gn(),ge())}function Wl(t,i){return new Ae(Gr(t,i))}let Ae=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=o6,t})();function a6(t){return t instanceof Ae?t.nativeElement:t}class Nu{}let ja=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function s6(){const t=ge(),e=Ir(Gn().index,t);return(Wr(e)?e:t)[Lt]}(),t})(),c6=(()=>{class t{}return t.\u0275prov=ve({token:t,providedIn:"root",factory:()=>null}),t})();class wc{constructor(i){this.full=i,this.major=i.split(".")[0],this.minor=i.split(".")[1],this.patch=i.split(".").slice(2).join(".")}}const l6=new wc("15.2.8"),Xb={},Qb="ngOriginalError";function Yb(t){return t[Qb]}class Wa{constructor(){this._console=console}handleError(i){const e=this._findOriginalError(i);this._console.error("ERROR",i),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(i){let e=i&&Yb(i);for(;e&&Yb(e);)e=Yb(e);return e||null}}function Ga(t){return t instanceof Function?t():t}function mS(t,i,e){let n=t.length;for(;;){const r=t.indexOf(i,e);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const o=i.length;if(r+o===n||t.charCodeAt(r+o)<=32)return r}e=r+1}}const pS="ng-template";function x6(t,i,e){let n=0,r=!0;for(;no?"":r[u+1].toLowerCase();const f=8&n?h:null;if(f&&-1!==mS(f,l,0)||2&n&&l!==h){if(Vo(n))return!1;a=!0}}}}else{if(!a&&!Vo(n)&&!Vo(c))return!1;if(a&&Vo(c))continue;a=!1,n=c|1&n}}return Vo(n)||a}function Vo(t){return 0==(1&t)}function C6(t,i,e,n){if(null===i)return-1;let r=0;if(n||!e){let o=!1;for(;r-1)for(e++;e0?'="'+s+'"':"")+"]"}else 8&n?r+="."+a:4&n&&(r+=" "+a);else""!==r&&!Vo(a)&&(i+=bS(o,r),r=""),n=a,o=o||!Vo(n);e++}return""!==r&&(i+=bS(o,r)),i}const kt={};function k(t){vS(ti(),ge(),vr()+t,!1)}function vS(t,i,e,n){if(!n)if(3==(3&i[At])){const o=t.preOrderCheckHooks;null!==o&&Em(i,o,e)}else{const o=t.preOrderHooks;null!==o&&Tm(i,o,0,e)}pc(e)}function CS(t,i=null,e=null,n){const r=kS(t,i,e,n);return r.resolveInjectorInitializers(),r}function kS(t,i=null,e=null,n,r=new Set){const o=[e||li,q5(t)];return n=n||("object"==typeof t?void 0:Pi(t)),new lS(o,i||Qm(),n||null,r)}let en=(()=>{class t{static create(e,n){if(Array.isArray(e))return CS({name:""},n,e,"");{const r=e.name??"";return CS({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=gu,t.NULL=new rS,t.\u0275prov=ve({token:t,providedIn:"any",factory:()=>G(iS)}),t.__NG_ELEMENT_ID__=-1,t})();function b(t,i=gt.Default){const e=ge();return null===e?G(t,i):eD(Gn(),e,pt(t),i)}function aa(){throw new Error("invalid")}function IS(t,i){const e=t.contentQueries;if(null!==e)for(let n=0;nUi&&vS(t,i,Ui,!1),lo(a?2:0,r),e(n,r)}finally{pc(o),lo(a?3:1,r)}}function nv(t,i,e){if(X_(i)){const r=i.directiveEnd;for(let o=i.directiveStart;o0;){const e=t[--i];if("number"==typeof e&&e<0)return e}return 0})(a)!=s&&a.push(s),a.push(e,n,o)}}(t,i,n,Bu(t,e,r.hostVars,kt),r)}function sa(t,i,e,n,r,o){const a=Gr(t,i);!function lv(t,i,e,n,r,o,a){if(null==o)t.removeAttribute(i,r,e);else{const s=null==a?wt(o):a(o,n||"",r);t.setAttribute(i,r,s,e)}}(i[Lt],a,o,t.value,e,n,r)}function pV(t,i,e,n,r,o){const a=o[i];if(null!==a){const s=n.setInput;for(let c=0;c0&&dv(e)}}function dv(t){for(let n=kb(t);null!==n;n=Db(n))for(let r=_r;r0&&dv(o)}const e=t[Ge].components;if(null!==e)for(let n=0;n0&&dv(r)}}function xV(t,i){const e=Ir(i,t),n=e[Ge];(function yV(t,i){for(let e=i.length;e-1&&(Tb(i,n),Om(e,n))}this._attachedToViewContainer=!1}AD(this._lView[Ge],this._lView)}onDestroy(i){OS(this._lView[Ge],this._lView,null,i)}markForCheck(){ep(this._cdRefInjectingView||this._lView)}detach(){this._lView[At]&=-65}reattach(){this._lView[At]|=64}detectChanges(){tp(this._lView[Ge],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ue(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function o5(t,i){Ou(t,i,i[Lt],2,null,null)}(this._lView[Ge],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new ue(902,!1);this._appRef=i}}class wV extends Vu{constructor(i){super(i),this._view=i}detectChanges(){const i=this._view;tp(i[Ge],i,i[Ji],!1)}checkNoChanges(){}get context(){return null}}class jS extends ks{constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){const e=gi(i);return new Hu(e,this.ngModule)}}function WS(t){const i=[];for(let e in t)t.hasOwnProperty(e)&&i.push({propName:t[e],templateName:e});return i}class kV{constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){n=gm(n);const r=this.injector.get(i,Xb,n);return r!==Xb||e===Xb?r:this.parentInjector.get(i,e,n)}}class Hu extends uS{get inputs(){return WS(this.componentDef.inputs)}get outputs(){return WS(this.componentDef.outputs)}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=function M6(t){return t.map(T6).join(",")}(i.selectors),this.ngContentSelectors=i.ngContentSelectors?i.ngContentSelectors:[],this.isBoundToModule=!!e}create(i,e,n,r){let o=(r=r||this.ngModule)instanceof oa?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const a=o?new kV(i,o):i,s=a.get(Nu,null);if(null===s)throw new ue(407,!1);const c=a.get(c6,null),l=s.createRenderer(null,this.componentDef),d=this.componentDef.selectors[0][0]||"div",u=n?function J6(t,i,e){return t.selectRootElement(i,e===Po.ShadowDom)}(l,n,this.componentDef.encapsulation):Eb(l,d,function CV(t){const i=t.toLowerCase();return"svg"===i?Tk:"math"===i?"math":null}(d)),h=this.componentDef.onPush?288:272,f=av(0,null,null,1,0,null,null,null,null,null),m=Km(null,f,null,h,null,null,s,l,c,a,null);let g,p;ib(m);try{const _=this.componentDef;let w,x=null;_.findHostDirectiveDefs?(w=[],x=new Map,_.findHostDirectiveDefs(_,w,x),w.push(_)):w=[_];const E=function SV(t,i){const e=t[Ge],n=Ui;return t[n]=i,Xl(e,n,2,"#host",null)}(m,u),W=function EV(t,i,e,n,r,o,a,s){const c=r[Ge];!function TV(t,i,e,n){for(const r of t)i.mergedAttrs=Su(i.mergedAttrs,r.hostAttrs);null!==i.mergedAttrs&&(ip(i,i.mergedAttrs,!0),null!==e&&zD(n,e,i))}(n,t,i,a);const l=o.createRenderer(i,e),d=Km(r,RS(e),null,e.onPush?32:16,r[t.index],t,o,l,s||null,null,null);return c.firstCreatePass&&cv(c,t,n.length-1),Jm(r,d),r[t.index]=d}(E,u,_,w,m,s,l);p=Ak(f,Ui),u&&function AV(t,i,e,n){if(n)ab(t,e,["ng-version",l6.full]);else{const{attrs:r,classes:o}=function A6(t){const i=[],e=[];let n=1,r=2;for(;n0&&UD(t,e,o.join(" "))}}(l,_,u,n),void 0!==e&&function IV(t,i,e){const n=t.projection=[];for(let r=0;r=0;n--){const r=t[n];r.hostVars=i+=r.hostVars,r.hostAttrs=Su(r.hostAttrs,e=Su(e,r.hostAttrs))}}(n)}function fv(t){return t===Na?{}:t===li?[]:t}function OV(t,i){const e=t.viewQuery;t.viewQuery=e?(n,r)=>{i(n,r),e(n,r)}:i}function PV(t,i){const e=t.contentQueries;t.contentQueries=e?(n,r,o)=>{i(n,r,o),e(n,r,o)}:i}function LV(t,i){const e=t.hostBindings;t.hostBindings=e?(n,r)=>{i(n,r),e(n,r)}:i}function rp(t){return!!mv(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function mv(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function ca(t,i,e){return t[i]=e}function tr(t,i,e){return!Object.is(t[i],e)&&(t[i]=e,!0)}function Cc(t,i,e,n){const r=tr(t,i,e);return tr(t,i+1,n)||r}function rt(t,i,e,n){const r=ge();return tr(r,Fl(),i)&&(ti(),sa(qi(),r,t,i,e,n)),rt}function Yl(t,i,e,n){return tr(t,Fl(),e)?i+wt(e)+n:kt}function Zl(t,i,e,n,r,o,a,s){const l=function op(t,i,e,n,r){const o=Cc(t,i,e,n);return tr(t,i+2,r)||o}(t,function Ha(){return Ct.lFrame.bindingIndex}(),e,r,a);return Ua(3),l?i+wt(e)+n+wt(r)+o+wt(a)+s:kt}function H(t,i,e,n,r,o,a,s){const c=ge(),l=ti(),d=t+Ui,u=l.firstCreatePass?function GV(t,i,e,n,r,o,a,s,c){const l=i.consts,d=Xl(i,t,4,a||null,Cs(l,s));sv(i,e,d,Cs(l,c)),Sm(i,d);const u=d.tView=av(2,d,n,r,o,i.directiveRegistry,i.pipeRegistry,null,i.schemas,l);return null!==i.queries&&(i.queries.template(i,d),u.queries=i.queries.embeddedTView(d)),d}(d,l,c,i,e,n,r,o,a):l.data[d];ta(u,!1);const h=c[Lt].createComment("");Hm(l,c,h,u),er(h,c),Jm(c,c[d]=VS(h,c,h,u)),Cm(u)&&rv(l,c,u),null!=a&&ov(c,u,s)}function Nt(t){return Il(function X8(){return Ct.lFrame.contextLView}(),Ui+t)}function A(t,i,e){const n=ge();return tr(n,Fl(),i)&&Qr(ti(),qi(),n,t,i,n[Lt],e,!1),A}function pv(t,i,e,n,r){const a=r?"class":"style";hv(t,e,i.inputs[a],a,n)}function v(t,i,e,n){const r=ge(),o=ti(),a=Ui+t,s=r[Lt],c=o.firstCreatePass?function XV(t,i,e,n,r,o){const a=i.consts,c=Xl(i,t,2,n,Cs(a,r));return sv(i,e,c,Cs(a,o)),null!==c.attrs&&ip(c,c.attrs,!1),null!==c.mergedAttrs&&ip(c,c.mergedAttrs,!0),null!==i.queries&&i.queries.elementStart(i,c),c}(a,o,r,i,e,n):o.data[a],l=r[a]=Eb(s,i,function nB(){return Ct.lFrame.currentNamespace}()),d=Cm(c);return ta(c,!0),zD(s,l,c),32!=(32&c.flags)&&Hm(o,r,l,c),0===function $8(){return Ct.lFrame.elementDepthCount}()&&er(l,r),function j8(){Ct.lFrame.elementDepthCount++}(),d&&(rv(o,r,c),nv(o,c,r)),null!==n&&ov(r,c),v}function y(){let t=Gn();K_()?Z_():(t=t.parent,ta(t,!1));const i=t;!function W8(){Ct.lFrame.elementDepthCount--}();const e=ti();return e.firstCreatePass&&(Sm(e,t),X_(t)&&e.queries.elementEnd(t)),null!=i.classesWithoutHost&&function sB(t){return 0!=(8&t.flags)}(i)&&pv(e,i,ge(),i.classesWithoutHost,!0),null!=i.stylesWithoutHost&&function cB(t){return 0!=(16&t.flags)}(i)&&pv(e,i,ge(),i.stylesWithoutHost,!1),y}function Ee(t,i,e,n){return v(t,i,e,n),y(),Ee}function Ai(t,i,e){const n=ge(),r=ti(),o=t+Ui,a=r.firstCreatePass?function QV(t,i,e,n,r){const o=i.consts,a=Cs(o,n),s=Xl(i,t,8,"ng-container",a);return null!==a&&ip(s,a,!0),sv(i,e,s,Cs(o,r)),null!==i.queries&&i.queries.elementStart(i,s),s}(o,r,n,i,e):r.data[o];ta(a,!0);const s=n[o]=n[Lt].createComment("");return Hm(r,n,s,a),er(s,n),Cm(a)&&(rv(r,n,a),nv(r,a,n)),null!=e&&ov(n,a),Ai}function Ii(){let t=Gn();const i=ti();return K_()?Z_():(t=t.parent,ta(t,!1)),i.firstCreatePass&&(Sm(i,t),X_(t)&&i.queries.elementEnd(t)),Ii}function Yr(t,i,e){return Ai(t,i,e),Ii(),Yr}function ot(){return ge()}function zu(t){return!!t&&"function"==typeof t.then}function oE(t){return!!t&&"function"==typeof t.subscribe}const gv=oE;function X(t,i,e,n){const r=ge(),o=ti(),a=Gn();return aE(o,r,r[Lt],a,t,i,n),X}function _v(t,i){const e=Gn(),n=ge(),r=ti();return aE(r,n,zS(eb(r.data),e,n),e,t,i),_v}function aE(t,i,e,n,r,o,a){const s=Cm(n),l=t.firstCreatePass&&US(t),d=i[Ji],u=HS(i);let h=!0;if(3&n.type||a){const g=Gr(n,i),p=a?a(g):g,_=u.length,w=a?E=>a(Wn(E[n.index])):n.index;let x=null;if(!a&&s&&(x=function YV(t,i,e,n){const r=t.cleanup;if(null!=r)for(let o=0;oc?s[c]:null}"string"==typeof a&&(o+=2)}return null}(t,i,r,n.index)),null!==x)(x.__ngLastListenerFn__||x).__ngNextListenerFn__=o,x.__ngLastListenerFn__=o,h=!1;else{o=cE(n,i,d,o,!1);const E=e.listen(p,r,o);u.push(o,E),l&&l.push(r,w,_,_+1)}}else o=cE(n,i,d,o,!1);const f=n.outputs;let m;if(h&&null!==f&&(m=f[r])){const g=m.length;if(g)for(let p=0;p-1?Ir(t.index,i):i);let c=sE(i,e,n,a),l=o.__ngNextListenerFn__;for(;l;)c=sE(i,e,l,a)&&c,l=l.__ngNextListenerFn__;return r&&!1===c&&(a.preventDefault(),a.returnValue=!1),c}}function q(t=1){return function J8(t){return(Ct.lFrame.contextLView=function eB(t,i){for(;t>0;)i=i[Tl],t--;return i}(t,Ct.lFrame.contextLView))[Ji]}(t)}function KV(t,i){let e=null;const n=function k6(t){const i=t.attrs;if(null!=i){const e=i.indexOf(5);if(!(1&e))return i[e+1]}return null}(t);for(let r=0;r>17&32767}function bv(t){return 2|t}function kc(t){return(131068&t)>>2}function vv(t,i){return-131069&t|i<<2}function xv(t){return 1|t}function _E(t,i,e,n,r){const o=t[e+1],a=null===i;let s=n?Ds(o):kc(o),c=!1;for(;0!==s&&(!1===c||a);){const d=t[s+1];n7(t[s],i)&&(c=!0,t[s+1]=n?xv(d):bv(d)),s=n?Ds(d):kc(d)}c&&(t[e+1]=n?bv(o):xv(o))}function n7(t,i){return null===t||null==i||(Array.isArray(t)?t[1]:t)===i||!(!Array.isArray(t)||"string"!=typeof i)&&Hl(t,i)>=0}const Tn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function bE(t){return t.substring(Tn.key,Tn.keyEnd)}function vE(t,i){const e=Tn.textEnd;return e===i?-1:(i=Tn.keyEnd=function s7(t,i,e){for(;i32;)i++;return i}(t,Tn.key=i,e),rd(t,i,e))}function rd(t,i,e){for(;i=0;e=vE(i,e))qr(t,bE(i),!0)}function Ho(t,i,e,n){const r=ge(),o=ti(),a=Ua(2);o.firstUpdatePass&&DE(o,t,a,n),i!==kt&&tr(r,a,i)&&EE(o,o.data[vr()],r,r[Lt],t,r[a+1]=function v7(t,i){return null==t||""===t||("string"==typeof i?t+=i:"object"==typeof t&&(t=Pi(Xr(t)))),t}(i,e),n,a)}function kE(t,i){return i>=t.expandoStartIndex}function DE(t,i,e,n){const r=t.data;if(null===r[e+1]){const o=r[vr()],a=kE(t,e);ME(o,n)&&null===i&&!a&&(i=!1),i=function h7(t,i,e,n){const r=eb(t);let o=n?i.residualClasses:i.residualStyles;if(null===r)0===(n?i.classBindings:i.styleBindings)&&(e=ju(e=yv(null,t,i,e,n),i.attrs,n),o=null);else{const a=i.directiveStylingLast;if(-1===a||t[a]!==r)if(e=yv(r,t,i,e,n),null===o){let c=function f7(t,i,e){const n=e?i.classBindings:i.styleBindings;if(0!==kc(n))return t[Ds(n)]}(t,i,n);void 0!==c&&Array.isArray(c)&&(c=yv(null,t,i,c[1],n),c=ju(c,i.attrs,n),function m7(t,i,e,n){t[Ds(e?i.classBindings:i.styleBindings)]=n}(t,i,n,c))}else o=function p7(t,i,e){let n;const r=i.directiveEnd;for(let o=1+i.directiveStylingLast;o0)&&(l=!0)):d=e,r)if(0!==c){const h=Ds(t[s+1]);t[n+1]=sp(h,s),0!==h&&(t[h+1]=vv(t[h+1],n)),t[s+1]=function JV(t,i){return 131071&t|i<<17}(t[s+1],n)}else t[n+1]=sp(s,0),0!==s&&(t[s+1]=vv(t[s+1],n)),s=n;else t[n+1]=sp(c,0),0===s?s=n:t[c+1]=vv(t[c+1],n),c=n;l&&(t[n+1]=bv(t[n+1])),_E(t,d,n,!0),_E(t,d,n,!1),function i7(t,i,e,n,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof i&&Hl(o,i)>=0&&(e[n+1]=xv(e[n+1]))}(i,d,t,n,o),a=sp(s,c),o?i.classBindings=a:i.styleBindings=a}(r,o,i,e,a,n)}}function yv(t,i,e,n,r){let o=null;const a=e.directiveEnd;let s=e.directiveStylingLast;for(-1===s?s=e.directiveStart:s++;s0;){const c=t[r],l=Array.isArray(c),d=l?c[1]:c,u=null===d;let h=e[r+1];h===kt&&(h=u?li:void 0);let f=u?mb(h,n):d===n?h:void 0;if(l&&!cp(f)&&(f=mb(c,n)),cp(f)&&(s=f,a))return s;const m=t[r+1];r=a?Ds(m):kc(m)}if(null!==i){let c=o?i.residualClasses:i.residualStyles;null!=c&&(s=mb(c,n))}return s}function cp(t){return void 0!==t}function ME(t,i){return 0!=(t.flags&(i?8:16))}function M(t,i=""){const e=ge(),n=ti(),r=t+Ui,o=n.firstCreatePass?Xl(n,r,1,i,null):n.data[r],a=e[r]=function Sb(t,i){return t.createText(i)}(e[Lt],i);Hm(n,e,a,o),ta(o,!1)}function tt(t){return It("",t,""),tt}function It(t,i,e){const n=ge(),r=Yl(n,t,i,e);return r!==kt&&qa(n,vr(),r),It}function wv(t,i,e,n,r,o,a){const s=ge(),c=Zl(s,t,i,e,n,r,o,a);return c!==kt&&qa(s,vr(),c),wv}function NE(t,i,e){!function Uo(t,i,e,n){const r=ti(),o=Ua(2);r.firstUpdatePass&&DE(r,null,o,n);const a=ge();if(e!==kt&&tr(a,o,e)){const s=r.data[vr()];if(ME(s,n)&&!kE(r,o)){let c=n?s.classesWithoutHost:s.stylesWithoutHost;null!==c&&(e=N_(c,e||"")),pv(r,s,a,e,n)}else!function b7(t,i,e,n,r,o,a,s){r===kt&&(r=li);let c=0,l=0,d=0((He=He||{})[He.LocaleId=0]="LocaleId",He[He.DayPeriodsFormat=1]="DayPeriodsFormat",He[He.DayPeriodsStandalone=2]="DayPeriodsStandalone",He[He.DaysFormat=3]="DaysFormat",He[He.DaysStandalone=4]="DaysStandalone",He[He.MonthsFormat=5]="MonthsFormat",He[He.MonthsStandalone=6]="MonthsStandalone",He[He.Eras=7]="Eras",He[He.FirstDayOfWeek=8]="FirstDayOfWeek",He[He.WeekendRange=9]="WeekendRange",He[He.DateFormat=10]="DateFormat",He[He.TimeFormat=11]="TimeFormat",He[He.DateTimeFormat=12]="DateTimeFormat",He[He.NumberSymbols=13]="NumberSymbols",He[He.NumberFormats=14]="NumberFormats",He[He.CurrencyCode=15]="CurrencyCode",He[He.CurrencySymbol=16]="CurrencySymbol",He[He.CurrencyName=17]="CurrencyName",He[He.Currencies=18]="Currencies",He[He.Directionality=19]="Directionality",He[He.PluralCase=20]="PluralCase",He[He.ExtraData=21]="ExtraData",He))();const ad="en-US";let QE=ad;function Sv(t,i,e,n,r){if(t=pt(t),Array.isArray(t))for(let o=0;o>20;if(yc(t)||!t.multi){const f=new Du(c,r,b),m=Tv(s,i,r?d:d+h,u);-1===m?(db(Fm(l,a),o,s),Ev(o,t,i.length),i.push(s),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),e.push(f),a.push(f)):(e[m]=f,a[m]=f)}else{const f=Tv(s,i,d+h,u),m=Tv(s,i,d,d+h),p=m>=0&&e[m];if(r&&!p||!r&&!(f>=0&&e[f])){db(Fm(l,a),o,s);const _=function LH(t,i,e,n,r){const o=new Du(t,e,b);return o.multi=[],o.index=i,o.componentProviders=0,xT(o,r,n&&!e),o}(r?PH:OH,e.length,r,n,c);!r&&p&&(e[m].providerFactory=_),Ev(o,t,i.length,0),i.push(s),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),e.push(_),a.push(_)}else Ev(o,t,f>-1?f:m,xT(e[r?m:f],c,!r&&n));!r&&n&&p&&e[m].componentProviders++}}}function Ev(t,i,e,n){const r=yc(i),o=function Q5(t){return!!t.useClass}(i);if(r||o){const c=(o?pt(i.useClass):i).prototype.ngOnDestroy;if(c){const l=t.destroyHooks||(t.destroyHooks=[]);if(!r&&i.multi){const d=l.indexOf(e);-1===d?l.push(e,[n,c]):l[d+1].push(n,c)}else l.push(e,c)}}}function xT(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function Tv(t,i,e,n){for(let r=e;r{e.providersResolver=(n,r)=>function RH(t,i,e){const n=ti();if(n.firstCreatePass){const r=Bo(t);Sv(e,n.data,n.blueprint,r,!0),Sv(i,n.data,n.blueprint,r,!1)}}(n,r?r(t):t,i)}}class sd{}class yT{}class wT extends sd{constructor(i,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new jS(this);const n=jr(i);this._bootstrapComponents=Ga(n.bootstrap),this._r3Injector=kS(i,e,[{provide:sd,useValue:this},{provide:ks,useValue:this.componentFactoryResolver}],Pi(i),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(i)}get injector(){return this._r3Injector}destroy(){const i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}}class Av extends yT{constructor(i){super(),this.moduleType=i}create(i){return new wT(this.moduleType,i)}}class BH extends sd{constructor(i,e,n){super(),this.componentFactoryResolver=new jS(this),this.instance=null;const r=new lS([...i,{provide:sd,useValue:this},{provide:ks,useValue:this.componentFactoryResolver}],e||Qm(),n,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}}function fp(t,i,e=null){return new BH(t,i,e).injector}let VH=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const n=oS(0,e.type),r=n.length>0?fp([n],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,r)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return t.\u0275prov=ve({token:t,providedIn:"environment",factory:()=>new t(G(oa))}),t})();function Iv(t){t.getStandaloneInjector=i=>i.get(VH).getOrCreateStandaloneInjector(t)}function Sc(t,i,e){const n=br()+t,r=ge();return r[n]===kt?ca(r,n,e?i.call(e):i()):function Uu(t,i){return t[i]}(r,n)}function Rv(t,i,e,n){return AT(ge(),br(),t,i,e,n)}function Yu(t,i){const e=t[i];return e===kt?void 0:e}function AT(t,i,e,n,r,o){const a=i+e;return tr(t,a,r)?ca(t,a+1,o?n.call(o,r):n(r)):Yu(t,a+1)}function IT(t,i,e,n,r,o,a){const s=i+e;return Cc(t,s,r,o)?ca(t,s+2,a?n.call(a,r,o):n(r,o)):Yu(t,s+2)}function mp(t,i){const e=ti();let n;const r=t+Ui;e.firstCreatePass?(n=function tU(t,i){if(i)for(let e=i.length-1;e>=0;e--){const n=i[e];if(t===n.name)return n}}(i,e.pipeRegistry),e.data[r]=n,n.onDestroy&&(e.destroyHooks??(e.destroyHooks=[])).push(r,n.onDestroy)):n=e.data[r];const o=n.factory||(n.factory=mc(n.type)),a=co(b);try{const s=Im(!1),c=o();return Im(s),function qV(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}(e,ge(),r,c),c}finally{co(a)}}function Ov(t,i,e){const n=t+Ui,r=ge(),o=Il(r,n);return Ku(r,n)?AT(r,br(),i,o.transform,e,o):o.transform(e)}function Ku(t,i){return t[Ge].data[i].pure}function Pv(t){return i=>{setTimeout(t,void 0,i)}}const ke=class oU extends Ce{constructor(i=!1){super(),this.__isAsync=i}emit(i){super.next(i)}subscribe(i,e,n){let r=i,o=e||(()=>null),a=n;if(i&&"object"==typeof i){const c=i;r=c.next?.bind(c),o=c.error?.bind(c),a=c.complete?.bind(c)}this.__isAsync&&(o=Pv(o),r&&(r=Pv(r)),a&&(a=Pv(a)));const s=super.subscribe({next:r,error:o,complete:a});return i instanceof yt&&i.add(s),s}};function aU(){return this._results[Symbol.iterator]()}class Ec{get changes(){return this._changes||(this._changes=new ke)}constructor(i=!1){this._emitDistinctChangesOnly=i,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Ec.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=aU)}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,e){return this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,e){const n=this;n.dirty=!1;const r=function ho(t){return t.flat(Number.POSITIVE_INFINITY)}(i);(this._changesDetected=!function bB(t,i,e){if(t.length!==i.length)return!1;for(let n=0;n{class t{}return t.__NG_ELEMENT_ID__=lU,t})();const sU=_i,cU=class extends sU{constructor(i,e,n){super(),this._declarationLView=i,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(i,e){const n=this._declarationTContainer.tView,r=Km(this._declarationLView,n,i,16,null,n.declTNode,null,null,null,null,e||null);r[yu]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[ea];return null!==a&&(r[ea]=a.createEmbeddedView(n)),iv(n,r,i),new Vu(r)}};function lU(){return pp(Gn(),ge())}function pp(t,i){return 4&t.type?new cU(i,t,Wl(t,i)):null}let Fi=(()=>{class t{}return t.__NG_ELEMENT_ID__=dU,t})();function dU(){return BT(Gn(),ge())}const uU=Fi,LT=class extends uU{constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return Wl(this._hostTNode,this._hostLView)}get injector(){return new Pl(this._hostTNode,this._hostLView)}get parentInjector(){const i=lb(this._hostTNode,this._hostLView);if(Xk(i)){const e=Am(i,this._hostLView),n=Mm(i);return new Pl(e[Ge].data[n+8],e)}return new Pl(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){const e=NT(this._lContainer);return null!==e&&e[i]||null}get length(){return this._lContainer.length-_r}createEmbeddedView(i,e,n){let r,o;"number"==typeof n?r=n:null!=n&&(r=n.index,o=n.injector);const a=i.createEmbeddedView(e||{},o);return this.insert(a,r),a}createComponent(i,e,n,r,o){const a=i&&!function Tu(t){return"function"==typeof t}(i);let s;if(a)s=e;else{const u=e||{};s=u.index,n=u.injector,r=u.projectableNodes,o=u.environmentInjector||u.ngModuleRef}const c=a?i:new Hu(gi(i)),l=n||this.parentInjector;if(!o&&null==c.ngModule){const h=(a?l:this.parentInjector).get(oa,null);h&&(o=h)}const d=c.create(l,r,void 0,o);return this.insert(d.hostView,s),d}insert(i,e){const n=i._lView,r=n[Ge];if(function z8(t){return No(t[Qi])}(n)){const d=this.indexOf(i);if(-1!==d)this.detach(d);else{const u=n[Qi],h=new LT(u,u[Zn],u[Qi]);h.detach(h.indexOf(i))}}const o=this._adjustIndex(e),a=this._lContainer;!function s5(t,i,e,n){const r=_r+n,o=e.length;n>0&&(e[r-1][Lo]=i),n0)n.push(a[s/2]);else{const l=o[s+1],d=i[-c];for(let u=_r;u{class t{constructor(e){this.appInits=e,this.resolve=_p,this.reject=_p,this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],n=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:s,error:c})});e.push(a)}}Promise.all(e).then(()=>{n()}).catch(r=>{this.reject(r)}),0===e.length&&n(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(G(bp,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const dd=new ae("AppId",{providedIn:"root",factory:function c2(){return`${qv()}${qv()}${qv()}`}});function qv(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const l2=new ae("Platform Initializer"),xp=new ae("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Ri=new ae("AnimationModuleType");let NU=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const ha=new ae("LocaleId",{providedIn:"root",factory:()=>ht(ha,gt.Optional|gt.SkipSelf)||function BU(){return typeof $localize<"u"&&$localize.locale||ad}()});class HU{constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}}let d2=(()=>{class t{compileModuleSync(e){return new Av(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const n=this.compileModuleSync(e),o=Ga(jr(e).declarations).reduce((a,s)=>{const c=gi(s);return c&&a.push(new Hu(c)),a},[]);return new HU(n,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const $U=(()=>Promise.resolve(0))();function Xv(t){typeof Zone>"u"?$U.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Ue{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ke(!1),this.onMicrotaskEmpty=new ke(!1),this.onStable=new ke(!1),this.onError=new ke(!1),typeof Zone>"u")throw new ue(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)),i&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&e,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function jU(){let t=Hi.requestAnimationFrame,i=Hi.cancelAnimationFrame;if(typeof Zone<"u"&&t&&i){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const n=i[Zone.__symbol__("OriginalDelegate")];n&&(i=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:i}}().nativeRequestAnimationFrame,function qU(t){const i=()=>{!function GU(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Hi,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Yv(t),t.isCheckStableRunning=!0,Qv(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Yv(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,r,o,a,s)=>{try{return f2(t),e.invokeTask(r,o,a,s)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&i(),m2(t)}},onInvoke:(e,n,r,o,a,s,c)=>{try{return f2(t),e.invoke(r,o,a,s,c)}finally{t.shouldCoalesceRunChangeDetection&&i(),m2(t)}},onHasTask:(e,n,r,o)=>{e.hasTask(r,o),n===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,Yv(t),Qv(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,n,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(!Ue.isInAngularZone())throw new ue(909,!1)}static assertNotInAngularZone(){if(Ue.isInAngularZone())throw new ue(909,!1)}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,r){const o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+r,i,WU,_p,_p);try{return o.runTask(a,e,n)}finally{o.cancelTask(a)}}runGuarded(i,e,n){return this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}}const WU={};function Qv(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 Yv(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function f2(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function m2(t){t._nesting--,Qv(t)}class XU{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ke,this.onMicrotaskEmpty=new ke,this.onStable=new ke,this.onError=new ke}run(i,e,n){return i.apply(e,n)}runGuarded(i,e,n){return i.apply(e,n)}runOutsideAngular(i){return i()}runTask(i,e,n,r){return i.apply(e,n)}}const p2=new ae(""),yp=new ae("");let Jv,Kv=(()=>{class t{constructor(e,n,r){this._ngZone=e,this.registry=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Jv||(function QU(t){Jv=t}(r),r.addToWindow(n)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ue.assertNotInAngularZone(),Xv(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Xv(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>!n.updateCb||!n.updateCb(e)||(clearTimeout(n.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,n,r){let o=-1;n&&n>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==o),e(this._didWork,this.getPendingTasks())},n)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,n,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,n,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,n,r){return[]}}return t.\u0275fac=function(e){return new(e||t)(G(Ue),G(Zv),G(yp))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})(),Zv=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,n){this._applications.set(e,n)}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,n=!0){return Jv?.findTestabilityInTree(this,e,n)??null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const Xa=!1;let Ss=null;const g2=new ae("AllowMultipleToken"),ex=new ae("PlatformDestroyListeners"),_2=new ae("appBootstrapListener");class b2{constructor(i,e){this.name=i,this.token=e}}function x2(t,i,e=[]){const n=`Platform: ${i}`,r=new ae(n);return(o=[])=>{let a=tx();if(!a||a.injector.get(g2,!1)){const s=[...e,...o,{provide:r,useValue:!0}];t?t(s):function ZU(t){if(Ss&&!Ss.get(g2,!1))throw new ue(400,!1);Ss=t;const i=t.get(w2);(function v2(t){const i=t.get(l2,null);i&&i.forEach(e=>e())})(t)}(function y2(t=[],i){return en.create({name:i,providers:[{provide:jb,useValue:"platform"},{provide:ex,useValue:new Set([()=>Ss=null])},...t]})}(s,n))}return function e9(t){const i=tx();if(!i)throw new ue(401,!1);return i}()}}function tx(){return Ss?.get(w2)??null}let w2=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,n){const r=function k2(t,i){let e;return e="noop"===t?new XU:("zone.js"===t?void 0:t)||new Ue(i),e}(n?.ngZone,function C2(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}(n)),o=[{provide:Ue,useValue:r}];return r.run(()=>{const a=en.create({providers:o,parent:this.injector,name:e.moduleType.name}),s=e.create(a),c=s.injector.get(Wa,null);if(!c)throw new ue(402,!1);return r.runOutsideAngular(()=>{const l=r.onError.subscribe({next:d=>{c.handleError(d)}});s.onDestroy(()=>{wp(this._modules,s),l.unsubscribe()})}),function D2(t,i,e){try{const n=e();return zu(n)?n.catch(r=>{throw i.runOutsideAngular(()=>t.handleError(r)),r}):n}catch(n){throw i.runOutsideAngular(()=>t.handleError(n)),n}}(c,r,()=>{const l=s.injector.get(vp);return l.runInitializers(),l.donePromise.then(()=>(function YE(t){so(t,"Expected localeId to be defined"),"string"==typeof t&&(QE=t.toLowerCase().replace(/_/g,"-"))}(s.injector.get(ha,ad)||ad),this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,n=[]){const r=S2({},n);return function YU(t,i,e){const n=new Av(e);return Promise.resolve(n)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const n=e.injector.get(ud);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new ue(-403,!1);e.instance.ngDoBootstrap(n)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ue(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());const e=this._injector.get(ex,null);e&&(e.forEach(n=>n()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(G(en))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function S2(t,i){return Array.isArray(i)?i.reduce(S2,t):{...t,...i}}let ud=(()=>{class t{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(e,n,r){this._zone=e,this._injector=n,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new ni(s=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{s.next(this._stable),s.complete()})}),a=new ni(s=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{Ue.assertNotInAngularZone(),Xv(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,s.next(!0))})})});const l=this._zone.onUnstable.subscribe(()=>{Ue.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{s.next(!1)}))});return()=>{c.unsubscribe(),l.unsubscribe()}});this.isStable=Vi(o,a.pipe(lk()))}bootstrap(e,n){const r=e instanceof uS;if(!this._injector.get(vp).done){!r&&function Sl(t){const i=gi(t)||Kn(t)||Ar(t);return null!==i&&i.standalone}(e);throw new ue(405,Xa)}let a;a=r?e:this._injector.get(ks).resolveComponentFactory(e),this.componentTypes.push(a.componentType);const s=function KU(t){return t.isBoundToModule}(a)?void 0:this._injector.get(sd),l=a.create(en.NULL,[],n||a.selector,s),d=l.location.nativeElement,u=l.injector.get(p2,null);return u?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),wp(this.components,l),u?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new ue(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){const n=e;wp(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const n=this._injector.get(_2,[]);n.push(...this._bootstrapListeners),n.forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>wp(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new ue(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return t.\u0275fac=function(e){return new(e||t)(G(Ue),G(oa),G(Wa))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function wp(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}let Gt=(()=>{class t{}return t.__NG_ELEMENT_ID__=i9,t})();function i9(t){return function n9(t,i,e){if(Cu(t)&&!e){const n=Ir(t.index,i);return new Vu(n,n)}return 47&t.type?new Vu(i[Jn],i):null}(Gn(),ge(),16==(16&t))}class I2{constructor(){}supports(i){return rp(i)}create(i){return new l9(i)}}const c9=(t,i)=>i;class l9{constructor(i){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=i||c9}forEachItem(i){let e;for(e=this._itHead;null!==e;e=e._next)i(e)}forEachOperation(i){let e=this._itHead,n=this._removalsHead,r=0,o=null;for(;e||n;){const a=!n||e&&e.currentIndex{a=this._trackByFn(r,s),null!==e&&Object.is(e.trackById,a)?(n&&(e=this._verifyReinsertion(e,s,a,r)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,a,r),n=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;null!==i;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;null!==i;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,r){let o;return null===i?o=this._itTail:(o=i._prev,this._remove(i)),null!==(i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,o,r)):null!==(i=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,o,r)):i=this._addAfter(new d9(e,n),o,r),i}_verifyReinsertion(i,e,n,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?i=this._reinsertAfter(o,i._prev,r):i.currentIndex!=r&&(i.currentIndex=r,this._addToMoves(i,r)),i}_truncate(i){for(;null!==i;){const e=i._next;this._addToRemovals(this._unlink(i)),i=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(i,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(i);const r=i._prevRemoved,o=i._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(i,e,n),this._addToMoves(i,n),i}_moveAfter(i,e,n){return this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i}_addAfter(i,e,n){return this._insertAfter(i,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=i:this._additionsTail._nextAdded=i,i}_insertAfter(i,e,n){const r=null===e?this._itHead:e._next;return i._next=r,i._prev=e,null===r?this._itTail=i:r._prev=i,null===e?this._itHead=i:e._next=i,null===this._linkedRecords&&(this._linkedRecords=new F2),this._linkedRecords.put(i),i.currentIndex=n,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){null!==this._linkedRecords&&this._linkedRecords.remove(i);const e=i._prev,n=i._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,i}_addToMoves(i,e){return i.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=i:this._movesTail._nextMoved=i),i}_addToRemovals(i){return null===this._unlinkedRecords&&(this._unlinkedRecords=new F2),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,e){return i.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=i:this._identityChangesTail._nextIdentityChange=i,i}}class d9{constructor(i,e){this.item=i,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 u9{constructor(){this._head=null,this._tail=null}add(i){null===this._head?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,i))return n;return null}remove(i){const e=i._prevDup,n=i._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class F2{constructor(){this.map=new Map}put(i){const e=i.trackById;let n=this.map.get(e);n||(n=new u9,this.map.set(e,n)),n.add(i)}get(i,e){const r=this.map.get(i);return r?r.get(i,e):null}remove(i){const e=i.trackById;return this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function R2(t,i,e){const n=t.previousIndex;if(null===n)return n;let r=0;return e&&n{if(e&&e.key===r)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,n);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;null!==n;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,e){if(i){const n=i._prev;return e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){const r=this._records.get(i);this._maybeAddToChanges(r,e);const o=r._prev,a=r._next;return o&&(o._next=a),a&&(a._prev=o),r._next=null,r._prev=null,r}const n=new f9(i);return this._records.set(i,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;null!==i;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;null!=i;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,e){Object.is(e,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=e,this._addToChanges(i))}_addToAdditions(i){null===this._additionsHead?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){null===this._changesHead?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,e){i instanceof Map?i.forEach(e):Object.keys(i).forEach(n=>e(i[n],n))}}class f9{constructor(i){this.key=i,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function P2(){return new Qa([new I2])}let Qa=(()=>{class t{constructor(e){this.factories=e}static create(e,n){if(null!=n){const r=n.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||P2()),deps:[[t,new bc,new na]]}}find(e){const n=this.factories.find(r=>r.supports(e));if(null!=n)return n;throw new ue(901,!1)}}return t.\u0275prov=ve({token:t,providedIn:"root",factory:P2}),t})();function L2(){return new Ju([new O2])}let Ju=(()=>{class t{constructor(e){this.factories=e}static create(e,n){if(n){const r=n.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||L2()),deps:[[t,new bc,new na]]}}find(e){const n=this.factories.find(r=>r.supports(e));if(n)return n;throw new ue(901,!1)}}return t.\u0275prov=ve({token:t,providedIn:"root",factory:L2}),t})();const g9=x2(null,"core",[]);let _9=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(G(ud))},t.\u0275mod=ct({type:t}),t.\u0275inj=at({}),t})();function hd(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}let ax=null;function Ya(){return ax}class x9{}const it=new ae("DocumentToken");let sx=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:function(){return function y9(){return G(N2)}()},providedIn:"platform"}),t})();const w9=new ae("Location Initialized");let N2=(()=>{class t extends sx{constructor(e){super(),this._doc=e,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Ya().getBaseHref(this._doc)}onPopState(e){const n=Ya().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){const n=Ya().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.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,n,r){B2()?this._history.pushState(e,n,r):this._location.hash=r}replaceState(e,n,r){B2()?this._history.replaceState(e,n,r):this._location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(G(it))},t.\u0275prov=ve({token:t,factory:function(){return function C9(){return new N2(G(it))}()},providedIn:"platform"}),t})();function B2(){return!!window.history.pushState}function cx(t,i){if(0==t.length)return i;if(0==i.length)return t;let e=0;return t.endsWith("/")&&e++,i.startsWith("/")&&e++,2==e?t+i.substring(1):1==e?t+i:t+"/"+i}function V2(t){const i=t.match(/#|\?|$/),e=i&&i.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Ka(t){return t&&"?"!==t[0]?"?"+t:t}let Ac=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:function(){return ht(U2)},providedIn:"root"}),t})();const H2=new ae("appBaseHref");let U2=(()=>{class t extends Ac{constructor(e,n){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??ht(it).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 cx(this._baseHref,e)}path(e=!1){const n=this._platformLocation.pathname+Ka(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${n}${r}`:n}pushState(e,n,r,o){const a=this.prepareExternalUrl(r+Ka(o));this._platformLocation.pushState(e,n,a)}replaceState(e,n,r,o){const a=this.prepareExternalUrl(r+Ka(o));this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(G(sx),G(H2,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),k9=(()=>{class t extends Ac{constructor(e,n){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=n&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let n=this._platformLocation.hash;return null==n&&(n="#"),n.length>0?n.substring(1):n}prepareExternalUrl(e){const n=cx(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,r,o){let a=this.prepareExternalUrl(r+Ka(o));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(e,n,a)}replaceState(e,n,r,o){let a=this.prepareExternalUrl(r+Ka(o));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(G(sx),G(H2,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})(),eh=(()=>{class t{constructor(e){this._subject=new ke,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const n=this._locationStrategy.getBaseHref();this._basePath=function E9(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(V2(z2(n))),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,n=""){return this.path()==this.normalize(e+Ka(n))}normalize(e){return t.stripTrailingSlash(function S9(t,i){if(!t||!i.startsWith(t))return i;const e=i.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:i}(this._basePath,z2(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",r=null){this._locationStrategy.pushState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ka(n)),r)}replaceState(e,n="",r=null){this._locationStrategy.replaceState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ka(n)),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._urlChangeSubscription=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)})),()=>{const n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(r=>r(e,n))}subscribe(e,n,r){return this._subject.subscribe({next:e,error:n,complete:r})}}return t.normalizeQueryParams=Ka,t.joinWithSlash=cx,t.stripTrailingSlash=V2,t.\u0275fac=function(e){return new(e||t)(G(Ac))},t.\u0275prov=ve({token:t,factory:function(){return function D9(){return new eh(G(Ac))}()},providedIn:"root"}),t})();function z2(t){return t.replace(/\/index.html$/,"")}var tn=(()=>((tn=tn||{})[tn.Format=0]="Format",tn[tn.Standalone=1]="Standalone",tn))(),qt=(()=>((qt=qt||{})[qt.Narrow=0]="Narrow",qt[qt.Abbreviated=1]="Abbreviated",qt[qt.Wide=2]="Wide",qt[qt.Short=3]="Short",qt))(),Xi=(()=>((Xi=Xi||{})[Xi.Short=0]="Short",Xi[Xi.Medium=1]="Medium",Xi[Xi.Long=2]="Long",Xi[Xi.Full=3]="Full",Xi))(),ft=(()=>((ft=ft||{})[ft.Decimal=0]="Decimal",ft[ft.Group=1]="Group",ft[ft.List=2]="List",ft[ft.PercentSign=3]="PercentSign",ft[ft.PlusSign=4]="PlusSign",ft[ft.MinusSign=5]="MinusSign",ft[ft.Exponential=6]="Exponential",ft[ft.SuperscriptingExponent=7]="SuperscriptingExponent",ft[ft.PerMille=8]="PerMille",ft[ft.Infinity=9]="Infinity",ft[ft.NaN=10]="NaN",ft[ft.TimeSeparator=11]="TimeSeparator",ft[ft.CurrencyDecimal=12]="CurrencyDecimal",ft[ft.CurrencyGroup=13]="CurrencyGroup",ft))();function Dp(t,i){return po(xr(t)[He.DateFormat],i)}function Sp(t,i){return po(xr(t)[He.TimeFormat],i)}function Ep(t,i){return po(xr(t)[He.DateTimeFormat],i)}function mo(t,i){const e=xr(t),n=e[He.NumberSymbols][i];if(typeof n>"u"){if(i===ft.CurrencyDecimal)return e[He.NumberSymbols][ft.Decimal];if(i===ft.CurrencyGroup)return e[He.NumberSymbols][ft.Group]}return n}function j2(t){if(!t[He.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[He.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function po(t,i){for(let e=i;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined")}function dx(t){const[i,e]=t.split(":");return{hours:+i,minutes:+e}}const H9=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,th={},U9=/((?:[^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 Mn=(()=>((Mn=Mn||{})[Mn.Short=0]="Short",Mn[Mn.ShortGMT=1]="ShortGMT",Mn[Mn.Long=2]="Long",Mn[Mn.Extended=3]="Extended",Mn))(),_t=(()=>((_t=_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))(),Ft=(()=>((Ft=Ft||{})[Ft.DayPeriods=0]="DayPeriods",Ft[Ft.Days=1]="Days",Ft[Ft.Months=2]="Months",Ft[Ft.Eras=3]="Eras",Ft))();function z9(t,i,e,n){let r=function K9(t){if(q2(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,a=1]=t.split("-").map(s=>+s);return Tp(r,o-1,a)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(H9))return function Z9(t){const i=new Date(0);let e=0,n=0;const r=t[8]?i.setUTCFullYear:i.setFullYear,o=t[8]?i.setUTCHours:i.setHours;t[9]&&(e=Number(t[9]+t[10]),n=Number(t[9]+t[11])),r.call(i,Number(t[1]),Number(t[2])-1,Number(t[3]));const a=Number(t[4]||0)-e,s=Number(t[5]||0)-n,c=Number(t[6]||0),l=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(i,a,s,c,l),i}(n)}const i=new Date(t);if(!q2(i))throw new Error(`Unable to convert "${t}" into a date`);return i}(t);i=Za(e,i)||i;let s,a=[];for(;i;){if(s=U9.exec(i),!s){a.push(i);break}{a=a.concat(s.slice(1));const d=a.pop();if(!d)break;i=d}}let c=r.getTimezoneOffset();n&&(c=G2(n,c),r=function Y9(t,i,e){const n=e?-1:1,r=t.getTimezoneOffset();return function Q9(t,i){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+i),t}(t,n*(G2(i,r)-r))}(r,n,!0));let l="";return a.forEach(d=>{const u=function X9(t){if(hx[t])return hx[t];let i;switch(t){case"G":case"GG":case"GGG":i=Li(Ft.Eras,qt.Abbreviated);break;case"GGGG":i=Li(Ft.Eras,qt.Wide);break;case"GGGGG":i=Li(Ft.Eras,qt.Narrow);break;case"y":i=un(_t.FullYear,1,0,!1,!0);break;case"yy":i=un(_t.FullYear,2,0,!0,!0);break;case"yyy":i=un(_t.FullYear,3,0,!1,!0);break;case"yyyy":i=un(_t.FullYear,4,0,!1,!0);break;case"Y":i=Fp(1);break;case"YY":i=Fp(2,!0);break;case"YYY":i=Fp(3);break;case"YYYY":i=Fp(4);break;case"M":case"L":i=un(_t.Month,1,1);break;case"MM":case"LL":i=un(_t.Month,2,1);break;case"MMM":i=Li(Ft.Months,qt.Abbreviated);break;case"MMMM":i=Li(Ft.Months,qt.Wide);break;case"MMMMM":i=Li(Ft.Months,qt.Narrow);break;case"LLL":i=Li(Ft.Months,qt.Abbreviated,tn.Standalone);break;case"LLLL":i=Li(Ft.Months,qt.Wide,tn.Standalone);break;case"LLLLL":i=Li(Ft.Months,qt.Narrow,tn.Standalone);break;case"w":i=ux(1);break;case"ww":i=ux(2);break;case"W":i=ux(1,!0);break;case"d":i=un(_t.Date,1);break;case"dd":i=un(_t.Date,2);break;case"c":case"cc":i=un(_t.Day,1);break;case"ccc":i=Li(Ft.Days,qt.Abbreviated,tn.Standalone);break;case"cccc":i=Li(Ft.Days,qt.Wide,tn.Standalone);break;case"ccccc":i=Li(Ft.Days,qt.Narrow,tn.Standalone);break;case"cccccc":i=Li(Ft.Days,qt.Short,tn.Standalone);break;case"E":case"EE":case"EEE":i=Li(Ft.Days,qt.Abbreviated);break;case"EEEE":i=Li(Ft.Days,qt.Wide);break;case"EEEEE":i=Li(Ft.Days,qt.Narrow);break;case"EEEEEE":i=Li(Ft.Days,qt.Short);break;case"a":case"aa":case"aaa":i=Li(Ft.DayPeriods,qt.Abbreviated);break;case"aaaa":i=Li(Ft.DayPeriods,qt.Wide);break;case"aaaaa":i=Li(Ft.DayPeriods,qt.Narrow);break;case"b":case"bb":case"bbb":i=Li(Ft.DayPeriods,qt.Abbreviated,tn.Standalone,!0);break;case"bbbb":i=Li(Ft.DayPeriods,qt.Wide,tn.Standalone,!0);break;case"bbbbb":i=Li(Ft.DayPeriods,qt.Narrow,tn.Standalone,!0);break;case"B":case"BB":case"BBB":i=Li(Ft.DayPeriods,qt.Abbreviated,tn.Format,!0);break;case"BBBB":i=Li(Ft.DayPeriods,qt.Wide,tn.Format,!0);break;case"BBBBB":i=Li(Ft.DayPeriods,qt.Narrow,tn.Format,!0);break;case"h":i=un(_t.Hours,1,-12);break;case"hh":i=un(_t.Hours,2,-12);break;case"H":i=un(_t.Hours,1);break;case"HH":i=un(_t.Hours,2);break;case"m":i=un(_t.Minutes,1);break;case"mm":i=un(_t.Minutes,2);break;case"s":i=un(_t.Seconds,1);break;case"ss":i=un(_t.Seconds,2);break;case"S":i=un(_t.FractionalSeconds,1);break;case"SS":i=un(_t.FractionalSeconds,2);break;case"SSS":i=un(_t.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":i=Ap(Mn.Short);break;case"ZZZZZ":i=Ap(Mn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":i=Ap(Mn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":i=Ap(Mn.Long);break;default:return null}return hx[t]=i,i}(d);l+=u?u(r,e,c):"''"===d?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Tp(t,i,e){const n=new Date(0);return n.setFullYear(t,i,e),n.setHours(0,0,0),n}function Za(t,i){const e=function T9(t){return xr(t)[He.LocaleId]}(t);if(th[e]=th[e]||{},th[e][i])return th[e][i];let n="";switch(i){case"shortDate":n=Dp(t,Xi.Short);break;case"mediumDate":n=Dp(t,Xi.Medium);break;case"longDate":n=Dp(t,Xi.Long);break;case"fullDate":n=Dp(t,Xi.Full);break;case"shortTime":n=Sp(t,Xi.Short);break;case"mediumTime":n=Sp(t,Xi.Medium);break;case"longTime":n=Sp(t,Xi.Long);break;case"fullTime":n=Sp(t,Xi.Full);break;case"short":const r=Za(t,"shortTime"),o=Za(t,"shortDate");n=Mp(Ep(t,Xi.Short),[r,o]);break;case"medium":const a=Za(t,"mediumTime"),s=Za(t,"mediumDate");n=Mp(Ep(t,Xi.Medium),[a,s]);break;case"long":const c=Za(t,"longTime"),l=Za(t,"longDate");n=Mp(Ep(t,Xi.Long),[c,l]);break;case"full":const d=Za(t,"fullTime"),u=Za(t,"fullDate");n=Mp(Ep(t,Xi.Full),[d,u])}return n&&(th[e][i]=n),n}function Mp(t,i){return i&&(t=t.replace(/\{([^}]+)}/g,function(e,n){return null!=i&&n in i?i[n]:e})),t}function $o(t,i,e="-",n,r){let o="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,o=e));let a=String(t);for(;a.length0||s>-e)&&(s+=e),t===_t.Hours)0===s&&-12===e&&(s=12);else if(t===_t.FractionalSeconds)return function $9(t,i){return $o(t,3).substring(0,i)}(s,i);const c=mo(a,ft.MinusSign);return $o(s,i,c,n,r)}}function Li(t,i,e=tn.Format,n=!1){return function(r,o){return function W9(t,i,e,n,r,o){switch(e){case Ft.Months:return function I9(t,i,e){const n=xr(t),o=po([n[He.MonthsFormat],n[He.MonthsStandalone]],i);return po(o,e)}(i,r,n)[t.getMonth()];case Ft.Days:return function A9(t,i,e){const n=xr(t),o=po([n[He.DaysFormat],n[He.DaysStandalone]],i);return po(o,e)}(i,r,n)[t.getDay()];case Ft.DayPeriods:const a=t.getHours(),s=t.getMinutes();if(o){const l=function P9(t){const i=xr(t);return j2(i),(i[He.ExtraData][2]||[]).map(n=>"string"==typeof n?dx(n):[dx(n[0]),dx(n[1])])}(i),d=function L9(t,i,e){const n=xr(t);j2(n);const o=po([n[He.ExtraData][0],n[He.ExtraData][1]],i)||[];return po(o,e)||[]}(i,r,n),u=l.findIndex(h=>{if(Array.isArray(h)){const[f,m]=h,g=a>=f.hours&&s>=f.minutes,p=a0?Math.floor(r/60):Math.ceil(r/60);switch(t){case Mn.Short:return(r>=0?"+":"")+$o(a,2,o)+$o(Math.abs(r%60),2,o);case Mn.ShortGMT:return"GMT"+(r>=0?"+":"")+$o(a,1,o);case Mn.Long:return"GMT"+(r>=0?"+":"")+$o(a,2,o)+":"+$o(Math.abs(r%60),2,o);case Mn.Extended:return 0===n?"Z":(r>=0?"+":"")+$o(a,2,o)+":"+$o(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}const G9=0,Ip=4;function W2(t){return Tp(t.getFullYear(),t.getMonth(),t.getDate()+(Ip-t.getDay()))}function ux(t,i=!1){return function(e,n){let r;if(i){const o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,a=e.getDate();r=1+Math.floor((a+o)/7)}else{const o=W2(e),a=function q9(t){const i=Tp(t,G9,1).getDay();return Tp(t,0,1+(i<=Ip?Ip:Ip+7)-i)}(o.getFullYear()),s=o.getTime()-a.getTime();r=1+Math.round(s/6048e5)}return $o(r,t,mo(n,ft.MinusSign))}}function Fp(t,i=!1){return function(e,n){return $o(W2(e).getFullYear(),t,mo(n,ft.MinusSign),i)}}const hx={};function G2(t,i){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?i:e}function q2(t){return t instanceof Date&&!isNaN(t.valueOf())}function K2(t,i){i=encodeURIComponent(i);for(const e of t.split(";")){const n=e.indexOf("="),[r,o]=-1==n?[e,""]:[e.slice(0,n),e.slice(n+1)];if(r.trim()===i)return decodeURIComponent(o)}return null}const bx=/\s+/,Z2=[];let Es=(()=>{class t{constructor(e,n,r,o){this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=r,this._renderer=o,this.initialClasses=Z2,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(bx):Z2}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(bx):e}ngDoCheck(){for(const n of this.initialClasses)this._updateState(n,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const n of e)this._updateState(n,!0);else if(null!=e)for(const n of Object.keys(e))this._updateState(n,Boolean(e[n]));this._applyStateDiff()}_updateState(e,n){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==n&&(r.changed=!0,r.enabled=n),r.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const n=e[0],r=e[1];r.changed?(this._toggleClass(n,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),r.touched=!1}}_toggleClass(e,n){(e=e.trim()).length>0&&e.split(bx).forEach(r=>{n?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return t.\u0275fac=function(e){return new(e||t)(b(Qa),b(Ju),b(Ae),b(ja))},t.\u0275dir=Q({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),t})();class uz{constructor(i,e,n,r){this.$implicit=i,this.ngForOf=e,this.index=n,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 go=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,n,r){this._viewContainer=e,this._template=n,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 n=this._viewContainer;e.forEachOperation((r,o,a)=>{if(null==r.previousIndex)n.createEmbeddedView(this._template,new uz(r.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)n.remove(null===o?void 0:o);else if(null!==o){const s=n.get(o);n.move(s,a),tM(s,r)}});for(let r=0,o=n.length;r{tM(n.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,n){return!0}}return t.\u0275fac=function(e){return new(e||t)(b(Fi),b(_i),b(Qa))},t.\u0275dir=Q({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function tM(t,i){t.context.$implicit=i.item}let hn=(()=>{class t{constructor(e,n){this._viewContainer=e,this._context=new fz,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){iM("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){iM("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,n){return!0}}return t.\u0275fac=function(e){return new(e||t)(b(Fi),b(_i))},t.\u0275dir=Q({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class fz{constructor(){this.$implicit=null,this.ngIf=null}}function iM(t,i){if(i&&!i.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Pi(i)}'.`)}class vx{constructor(i,e){this._viewContainerRef=i,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(i){i&&!this._created?this.create():!i&&this._created&&this.destroy()}}let nh=(()=>{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 n=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const n of this._defaultViews)n.enforceState(e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),t})(),xx=(()=>{class t{constructor(e,n,r){this.ngSwitch=r,r._addCase(),this._view=new vx(e,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(b(Fi),b(_i),b(nh,9))},t.\u0275dir=Q({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),t})(),nM=(()=>{class t{constructor(e,n,r){r._addDefault(new vx(e,n))}}return t.\u0275fac=function(e){return new(e||t)(b(Fi),b(_i),b(nh,9))},t.\u0275dir=Q({type:t,selectors:[["","ngSwitchDefault",""]],standalone:!0}),t})(),Op=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:o,ngTemplateOutletInjector:a}=this;this._viewRef=n.createEmbeddedView(r,o,a?{injector:a}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(b(Fi))},t.\u0275dir=Q({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Ei]}),t})();function jo(t,i){return new ue(2100,!1)}class gz{createSubscription(i,e){return i.subscribe({next:e,error:n=>{throw n}})}dispose(i){i.unsubscribe()}}class _z{createSubscription(i,e){return i.then(e,n=>{throw n})}dispose(i){}}const bz=new _z,vz=new gz;let oM=(()=>{class t{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,n=>this._updateLatestValue(e,n))}_selectStrategy(e){if(zu(e))return bz;if(oE(e))return vz;throw jo()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(b(Gt,16))},t.\u0275pipe=Mr({name:"async",type:t,pure:!1,standalone:!0}),t})(),aM=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw jo();return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Mr({name:"uppercase",type:t,pure:!0,standalone:!0}),t})();const kz=new ae("DATE_PIPE_DEFAULT_TIMEZONE"),Dz=new ae("DATE_PIPE_DEFAULT_OPTIONS");let sM=(()=>{class t{constructor(e,n,r){this.locale=e,this.defaultTimezone=n,this.defaultOptions=r}transform(e,n,r,o){if(null==e||""===e||e!=e)return null;try{return z9(e,n??this.defaultOptions?.dateFormat??"mediumDate",o||this.locale,r??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(a){throw jo()}}}return t.\u0275fac=function(e){return new(e||t)(b(ha,16),b(kz,24),b(Dz,24))},t.\u0275pipe=Mr({name:"date",type:t,pure:!0,standalone:!0}),t})(),nr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({}),t})();const lM="browser";let Vz=(()=>{class t{}return t.\u0275prov=ve({token:t,providedIn:"root",factory:()=>new Hz(G(it),window)}),t})();class Hz{constructor(i,e){this.document=i,this.window=e,this.offset=()=>[0,0]}setOffset(i){this.offset=Array.isArray(i)?()=>i:i}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(i){this.supportsScrolling()&&this.window.scrollTo(i[0],i[1])}scrollToAnchor(i){if(!this.supportsScrolling())return;const e=function Uz(t,i){const e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=n.currentNode;for(;r;){const o=r.shadowRoot;if(o){const a=o.getElementById(i)||o.querySelector(`[name="${i}"]`);if(a)return a}r=n.nextNode()}}return null}(this.document,i);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(i){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=i)}}scrollToElement(i){const e=i.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const i=dM(this.window.history)||dM(Object.getPrototypeOf(this.window.history));return!(!i||!i.writable&&!i.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function dM(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class uM{}class m$ extends x9{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Dx extends m${static makeCurrent(){!function v9(t){ax||(ax=t)}(new Dx)}onAndCancel(i,e,n){return i.addEventListener(e,n,!1),()=>{i.removeEventListener(e,n,!1)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.parentNode&&i.parentNode.removeChild(i)}createElement(i,e){return(e=e||this.getDefaultDocument()).createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return"window"===e?window:"document"===e?i:"body"===e?i.body:null}getBaseHref(i){const e=function p$(){return oh=oh||document.querySelector("base"),oh?oh.getAttribute("href"):null}();return null==e?null:function g$(t){Np=Np||document.createElement("a"),Np.setAttribute("href",t);const i=Np.pathname;return"/"===i.charAt(0)?i:`/${i}`}(e)}resetBaseElement(){oh=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return K2(document.cookie,i)}}let Np,oh=null;const gM=new ae("TRANSITION_ID"),b$=[{provide:bp,useFactory:function _$(t,i,e){return()=>{e.get(vp).donePromise.then(()=>{const n=Ya(),r=i.querySelectorAll(`style[ng-transition="${t}"]`);for(let o=0;o{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();const Bp=new ae("EventManagerPlugins");let Vp=(()=>{class t{constructor(e,n){this._zone=n,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,n,r){return this._findPluginFor(n).addEventListener(e,n,r)}addGlobalEventListener(e,n,r){return this._findPluginFor(n).addGlobalEventListener(e,n,r)}getZone(){return this._zone}_findPluginFor(e){const n=this._eventNameToPlugin.get(e);if(n)return n;const r=this._plugins;for(let o=0;o{class t{constructor(){this.usageCount=new Map}addStyles(e){for(const n of e)1===this.changeUsageCount(n,1)&&this.onStyleAdded(n)}removeStyles(e){for(const n of e)0===this.changeUsageCount(n,-1)&&this.onStyleRemoved(n)}onStyleRemoved(e){}onStyleAdded(e){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(e,n){const r=this.usageCount;let o=r.get(e)??0;return o+=n,o>0?r.set(e,o):r.delete(e),o}ngOnDestroy(){for(const e of this.getAllStyles())this.onStyleRemoved(e);this.usageCount.clear()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})(),ah=(()=>{class t extends bM{constructor(e){super(),this.doc=e,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(e){for(const n of this.hostNodes)this.addStyleToHost(n,e)}onStyleRemoved(e){const n=this.styleRef;n.get(e)?.forEach(o=>o.remove()),n.delete(e)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const n of this.getAllStyles())this.addStyleToHost(e,n)}removeHost(e){this.hostNodes.delete(e)}addStyleToHost(e,n){const r=this.doc.createElement("style");r.textContent=n,e.appendChild(r);const o=this.styleRef.get(n);o?o.push(r):this.styleRef.set(n,[r])}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}}return t.\u0275fac=function(e){return new(e||t)(G(it))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();const Sx={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/"},Ex=/%COMP%/g,yM=new ae("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function wM(t,i){return i.flat(100).map(e=>e.replace(Ex,t))}function CM(t){return i=>{if("__ngUnwrap__"===i)return t;!1===t(i)&&(i.preventDefault(),i.returnValue=!1)}}let Hp=(()=>{class t{constructor(e,n,r,o){this.eventManager=e,this.sharedStylesHost=n,this.appId=r,this.removeStylesOnCompDestory=o,this.rendererByCompId=new Map,this.defaultRenderer=new Tx(e)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;const r=this.getOrCreateRenderer(e,n);return r instanceof SM?r.applyToHost(e):r instanceof Mx&&r.applyStyles(),r}getOrCreateRenderer(e,n){const r=this.rendererByCompId;let o=r.get(n.id);if(!o){const a=this.eventManager,s=this.sharedStylesHost,c=this.removeStylesOnCompDestory;switch(n.encapsulation){case Po.Emulated:o=new SM(a,s,n,this.appId,c);break;case Po.ShadowDom:return new E$(a,s,e,n);default:o=new Mx(a,s,n,c)}o.onDestroy=()=>r.delete(n.id),r.set(n.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(G(Vp),G(ah),G(dd),G(yM))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();class Tx{constructor(i){this.eventManager=i,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(i,e){return e?document.createElementNS(Sx[e]||e,i):document.createElement(i)}createComment(i){return document.createComment(i)}createText(i){return document.createTextNode(i)}appendChild(i,e){(DM(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(DM(i)?i.content:i).insertBefore(e,n)}removeChild(i,e){i&&i.removeChild(e)}selectRootElement(i,e){let n="string"==typeof i?document.querySelector(i):i;if(!n)throw new Error(`The selector "${i}" did not match any elements`);return e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,n,r){if(r){e=r+":"+e;const o=Sx[r];o?i.setAttributeNS(o,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){const r=Sx[n];r?i.removeAttributeNS(r,e):i.removeAttribute(`${n}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,r){r&(Fr.DashCase|Fr.Important)?i.style.setProperty(e,n,r&Fr.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&Fr.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i[e]=n}setValue(i,e){i.nodeValue=e}listen(i,e,n){return"string"==typeof i?this.eventManager.addGlobalEventListener(i,e,CM(n)):this.eventManager.addEventListener(i,e,CM(n))}}function DM(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class E$ extends Tx{constructor(i,e,n,r){super(i),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=wM(r.id,r.styles);for(const a of o){const s=document.createElement("style");s.textContent=a,this.shadowRoot.appendChild(s)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,e){return super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return super.removeChild(this.nodeOrShadowRoot(i),e)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Mx extends Tx{constructor(i,e,n,r,o=n.id){super(i),this.sharedStylesHost=e,this.removeStylesOnCompDestory=r,this.rendererUsageCount=0,this.styles=wM(o,n.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class SM extends Mx{constructor(i,e,n,r,o){const a=r+"-"+n.id;super(i,e,n,o,a),this.contentAttr=function k$(t){return"_ngcontent-%COMP%".replace(Ex,t)}(a),this.hostAttr=function D$(t){return"_nghost-%COMP%".replace(Ex,t)}(a)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,e){const n=super.createElement(i,e);return super.setAttribute(n,this.contentAttr,""),n}}let T$=(()=>{class t extends _M{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,r){return e.addEventListener(n,r,!1),()=>this.removeEventListener(e,n,r)}removeEventListener(e,n,r){return e.removeEventListener(n,r)}}return t.\u0275fac=function(e){return new(e||t)(G(it))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();const EM=["alt","control","meta","shift"],M$={"\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"},A$={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let I$=(()=>{class t extends _M{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,r){const o=t.parseEventName(n),a=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ya().onAndCancel(e,o.domEventName,a))}static parseEventName(e){const n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const o=t._normalizeKey(n.pop());let a="",s=n.indexOf("code");if(s>-1&&(n.splice(s,1),a="code."),EM.forEach(l=>{const d=n.indexOf(l);d>-1&&(n.splice(d,1),a+=l+".")}),a+=o,0!=n.length||0===o.length)return null;const c={};return c.domEventName=r,c.fullKey=a,c}static matchEventFullKeyCode(e,n){let r=M$[e.key]||e.key,o="";return n.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),EM.forEach(a=>{a!==r&&(0,A$[a])(e)&&(o+=a+".")}),o+=r,o===n)}static eventCallback(e,n,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>n(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(G(it))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();const P$=x2(g9,"browser",[{provide:xp,useValue:lM},{provide:l2,useValue:function F$(){Dx.makeCurrent()},multi:!0},{provide:it,useFactory:function O$(){return function x5(t){Pb=t}(document),document},deps:[]}]),AM=new ae(""),IM=[{provide:yp,useClass:class v${addToWindow(i){Hi.getAngularTestability=(n,r=!0)=>{const o=i.findTestabilityInTree(n,r);if(null==o)throw new Error("Could not find testability for element.");return o},Hi.getAllAngularTestabilities=()=>i.getAllTestabilities(),Hi.getAllAngularRootElements=()=>i.getAllRootElements(),Hi.frameworkStabilizers||(Hi.frameworkStabilizers=[]),Hi.frameworkStabilizers.push(n=>{const r=Hi.getAllAngularTestabilities();let o=r.length,a=!1;const s=function(c){a=a||c,o--,0==o&&n(a)};r.forEach(function(c){c.whenStable(s)})})}findTestabilityInTree(i,e,n){return null==e?null:i.getTestability(e)??(n?Ya().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null)}},deps:[]},{provide:p2,useClass:Kv,deps:[Ue,Zv,yp]},{provide:Kv,useClass:Kv,deps:[Ue,Zv,yp]}],FM=[{provide:jb,useValue:"root"},{provide:Wa,useFactory:function R$(){return new Wa},deps:[]},{provide:Bp,useClass:T$,multi:!0,deps:[it,Ue,xp]},{provide:Bp,useClass:I$,multi:!0,deps:[it]},{provide:Hp,useClass:Hp,deps:[Vp,ah,dd,yM]},{provide:Nu,useExisting:Hp},{provide:bM,useExisting:ah},{provide:ah,useClass:ah,deps:[it]},{provide:Vp,useClass:Vp,deps:[Bp,Ue]},{provide:uM,useClass:x$,deps:[]},[]];let RM=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:dd,useValue:e.appId},{provide:gM,useExisting:dd},b$]}}}return t.\u0275fac=function(e){return new(e||t)(G(AM,12))},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[...FM,...IM],imports:[nr,_9]}),t})(),OM=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return t.\u0275fac=function(e){return new(e||t)(G(it))},t.\u0275prov=ve({token:t,factory:function(e){let n=null;return n=e?new e:function N$(){return new OM(G(it))}(),n},providedIn:"root"}),t})();typeof window<"u"&&window;let Fx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:function(e){let n=null;return n=e?new(e||t):G(NM),n},providedIn:"root"}),t})(),NM=(()=>{class t extends Fx{constructor(e){super(),this._doc=e}sanitize(e,n){if(null==n)return null;switch(e){case di.NONE:return n;case di.HTML:return ra(n,"HTML")?Xr(n):JD(this._doc,String(n)).toString();case di.STYLE:return ra(n,"Style")?Xr(n):n;case di.SCRIPT:if(ra(n,"Script"))return Xr(n);throw new Error("unsafe value used in a script context");case di.URL:return ra(n,"URL")?Xr(n):jm(String(n));case di.RESOURCE_URL:if(ra(n,"ResourceURL"))return Xr(n);throw new Error(`unsafe value used in a resource URL context (see ${dm})`);default:throw new Error(`Unexpected SecurityContext ${e} (see ${dm})`)}}bypassSecurityTrustHtml(e){return function E5(t){return new y5(t)}(e)}bypassSecurityTrustStyle(e){return function T5(t){return new w5(t)}(e)}bypassSecurityTrustScript(e){return function M5(t){return new C5(t)}(e)}bypassSecurityTrustUrl(e){return function A5(t){return new k5(t)}(e)}bypassSecurityTrustResourceUrl(e){return function I5(t){return new D5(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(G(it))},t.\u0275prov=ve({token:t,factory:function(e){let n=null;return n=e?new e:function z$(t){return new NM(t.get(it))}(G(en)),n},providedIn:"root"}),t})();function ze(...t){return Zi(t,pu(t))}class Bn extends Ce{constructor(i){super(),this._value=i}get value(){return this.getValue()}_subscribe(i){const e=super._subscribe(i);return!e.closed&&i.next(this._value),e}getValue(){const{hasError:i,thrownError:e,_value:n}=this;if(i)throw e;return this._throwIfClosed(),n}next(i){super.next(this._value=i)}}const sh=lc(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}),{isArray:$$}=Array,{getPrototypeOf:j$,prototype:W$,keys:G$}=Object;function BM(t){if(1===t.length){const i=t[0];if($$(i))return{args:i,keys:null};if(function q$(t){return t&&"object"==typeof t&&j$(t)===W$}(i)){const e=G$(i);return{args:e.map(n=>i[n]),keys:e}}}return{args:t,keys:null}}const{isArray:X$}=Array;function Rx(t){return Ye(i=>function Q$(t,i){return X$(i)?t(...i):t(i)}(t,i))}function VM(t,i){return t.reduce((e,n,r)=>(e[n]=i[r],e),{})}function Ic(...t){const i=pu(t),e=ok(t),{args:n,keys:r}=BM(t);if(0===n.length)return Zi([],i);const o=new ni(function Y$(t,i,e=ys){return n=>{HM(i,()=>{const{length:r}=t,o=new Array(r);let a=r,s=r;for(let c=0;c{const l=Zi(t[c],i);let d=!1;l.subscribe(Bi(n,u=>{o[c]=u,d||(d=!0,s--),s||n.next(e(o.slice()))},()=>{--a||n.complete()}))},n)},n)}}(n,i,r?a=>VM(r,a):ys));return e?o.pipe(Rx(e)):o}function HM(t,i,e){t?Pa(e,t,i):i()}function ch(...t){return function K$(){return kl(1)}()(Zi(t,pu(t)))}function fd(t){return new ni(i=>{Yn(t()).subscribe(i)})}function Fc(t,i){const e=Wt(t)?t:()=>t,n=r=>r.error(e());return new ni(i?r=>i.schedule(n,0,r):n)}function Ox(){return Gi((t,i)=>{let e=null;t._refCount++;const n=Bi(i,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(),i.unsubscribe()});t.subscribe(n),n.closed||(e=t.connect())})}class Px extends ni{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,WC(i)&&(this.lift=i.lift)}_subscribe(i){return this.getSubject().subscribe(i)}getSubject(){const i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:i}=this;this._subject=this._connection=null,i?.unsubscribe()}connect(){let i=this._connection;if(!i){i=this._connection=new yt;const e=this.getSubject();i.add(this.source.subscribe(Bi(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),i.closed&&(this._connection=null,i=yt.EMPTY)}return i}refCount(){return Ox()(this)}}function fn(t,i){return Gi((e,n)=>{let r=null,o=0,a=!1;const s=()=>a&&!r&&n.complete();e.subscribe(Bi(n,c=>{r?.unsubscribe();let l=0;const d=o++;Yn(t(c,d)).subscribe(r=Bi(n,u=>n.next(i?i(c,u,d,l++):u),()=>{r=null,s()}))},()=>{a=!0,s()}))})}function ui(t){return t<=0?()=>zr:Gi((i,e)=>{let n=0;i.subscribe(Bi(e,r=>{++n<=t&&(e.next(r),t<=n&&e.complete())}))})}function Vn(...t){const i=pu(t);return Gi((e,n)=>{(i?ch(t,e,i):ch(t,e)).subscribe(n)})}function hi(t,i){return Gi((e,n)=>{let r=0;e.subscribe(Bi(n,o=>t.call(i,o,r++)&&n.next(o)))})}function Up(t){return Gi((i,e)=>{let n=!1;i.subscribe(Bi(e,r=>{n=!0,e.next(r)},()=>{n||e.next(t),e.complete()}))})}function UM(t=Z$){return Gi((i,e)=>{let n=!1;i.subscribe(Bi(e,r=>{n=!0,e.next(r)},()=>n?e.complete():e.error(t())))})}function Z$(){return new sh}function _o(t,i){const e=arguments.length>=2;return n=>n.pipe(t?hi((r,o)=>t(r,o,n)):ys,ui(1),e?Up(i):UM(()=>new sh))}function Ms(t,i){return Wt(i)?Sn(t,i,1):Sn(t,1)}function zi(t,i,e){const n=Wt(t)||i||e?{next:t,error:i,complete:e}:t;return n?Gi((r,o)=>{var a;null===(a=n.subscribe)||void 0===a||a.call(n);let s=!0;r.subscribe(Bi(o,c=>{var l;null===(l=n.next)||void 0===l||l.call(n,c),o.next(c)},()=>{var c;s=!1,null===(c=n.complete)||void 0===c||c.call(n),o.complete()},c=>{var l;s=!1,null===(l=n.error)||void 0===l||l.call(n,c),o.error(c)},()=>{var c,l;s&&(null===(c=n.unsubscribe)||void 0===c||c.call(n)),null===(l=n.finalize)||void 0===l||l.call(n)}))}):ys}function mn(t){return Gi((i,e)=>{let o,n=null,r=!1;n=i.subscribe(Bi(e,void 0,void 0,a=>{o=Yn(t(a,mn(t)(i))),n?(n.unsubscribe(),n=null,o.subscribe(e)):r=!0})),r&&(n.unsubscribe(),n=null,o.subscribe(e))})}function zM(t,i){return Gi(function J$(t,i,e,n,r){return(o,a)=>{let s=e,c=i,l=0;o.subscribe(Bi(a,d=>{const u=l++;c=s?t(c,d,u):(s=!0,d),n&&a.next(c)},r&&(()=>{s&&a.next(c),a.complete()})))}}(t,i,arguments.length>=2,!0))}function Lx(t){return t<=0?()=>zr:Gi((i,e)=>{let n=[];i.subscribe(Bi(e,r=>{n.push(r),t{for(const r of n)e.next(r);e.complete()},void 0,()=>{n=null}))})}function $M(t,i){const e=arguments.length>=2;return n=>n.pipe(t?hi((r,o)=>t(r,o,n)):ys,Lx(1),e?Up(i):UM(()=>new sh))}function jM(t,i=!1){return Gi((e,n)=>{let r=0;e.subscribe(Bi(n,o=>{const a=t(o,r++);(a||i)&&n.next(o),!a&&n.complete()}))})}function WM(t){return Ye(()=>t)}function zp(t){return Gi((i,e)=>{try{i.subscribe(e)}finally{e.add(t)}})}const St="primary",lh=Symbol("RouteTitle");class ej{constructor(i){this.params=i||{}}has(i){return Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){const e=this.params[i];return Array.isArray(e)?e[0]:e}return null}getAll(i){if(this.has(i)){const e=this.params[i];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function md(t){return new ej(t)}function tj(t,i,e){const n=e.path.split("/");if(n.length>t.length||"full"===e.pathMatch&&(i.hasChildren()||n.lengthn[o]===r)}return t===i}function qM(t){return Array.prototype.concat.apply([],t)}function XM(t){return t.length>0?t[t.length-1]:null}function qn(t,i){for(const e in t)t.hasOwnProperty(e)&&i(t[e],e)}function As(t){return gv(t)?t:zu(t)?Zi(Promise.resolve(t)):ze(t)}const $p=!1,nj={exact:function KM(t,i,e){if(!Rc(t.segments,i.segments)||!jp(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(const n in i.children)if(!t.children[n]||!KM(t.children[n],i.children[n],e))return!1;return!0},subset:ZM},QM={exact:function rj(t,i){return fa(t,i)},subset:function oj(t,i){return Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>GM(t[e],i[e]))},ignored:()=>!0};function YM(t,i,e){return nj[e.paths](t.root,i.root,e.matrixParams)&&QM[e.queryParams](t.queryParams,i.queryParams)&&!("exact"===e.fragment&&t.fragment!==i.fragment)}function ZM(t,i,e){return JM(t,i,i.segments,e)}function JM(t,i,e,n){if(t.segments.length>e.length){const r=t.segments.slice(0,e.length);return!(!Rc(r,e)||i.hasChildren()||!jp(r,e,n))}if(t.segments.length===e.length){if(!Rc(t.segments,e)||!jp(t.segments,e,n))return!1;for(const r in i.children)if(!t.children[r]||!ZM(t.children[r],i.children[r],n))return!1;return!0}{const r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!!(Rc(t.segments,r)&&jp(t.segments,r,n)&&t.children[St])&&JM(t.children[St],i,o,n)}}function jp(t,i,e){return i.every((n,r)=>QM[e](t[r].parameters,n.parameters))}class Is{constructor(i=new Ut([],{}),e={},n=null){this.root=i,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=md(this.queryParams)),this._queryParamMap}toString(){return cj.serialize(this)}}class Ut{constructor(i,e){this.segments=i,this.children=e,this.parent=null,qn(e,(n,r)=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Wp(this)}}class dh{constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=md(this.parameters)),this._parameterMap}toString(){return iA(this)}}function Rc(t,i){return t.length===i.length&&t.every((e,n)=>e.path===i[n].path)}let uh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:function(){return new Nx},providedIn:"root"}),t})();class Nx{parse(i){const e=new _j(i);return new Is(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){const e=`/${hh(i.root,!0)}`,n=function uj(t){const i=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(r=>`${Gp(e)}=${Gp(r)}`).join("&"):`${Gp(e)}=${Gp(n)}`}).filter(e=>!!e);return i.length?`?${i.join("&")}`:""}(i.queryParams);return`${e}${n}${"string"==typeof i.fragment?`#${function lj(t){return encodeURI(t)}(i.fragment)}`:""}`}}const cj=new Nx;function Wp(t){return t.segments.map(i=>iA(i)).join("/")}function hh(t,i){if(!t.hasChildren())return Wp(t);if(i){const e=t.children[St]?hh(t.children[St],!1):"",n=[];return qn(t.children,(r,o)=>{o!==St&&n.push(`${o}:${hh(r,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function sj(t,i){let e=[];return qn(t.children,(n,r)=>{r===St&&(e=e.concat(i(n,r)))}),qn(t.children,(n,r)=>{r!==St&&(e=e.concat(i(n,r)))}),e}(t,(n,r)=>r===St?[hh(t.children[St],!1)]:[`${r}:${hh(n,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[St]?`${Wp(t)}/${e[0]}`:`${Wp(t)}/(${e.join("//")})`}}function eA(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Gp(t){return eA(t).replace(/%3B/gi,";")}function Bx(t){return eA(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function qp(t){return decodeURIComponent(t)}function tA(t){return qp(t.replace(/\+/g,"%20"))}function iA(t){return`${Bx(t.path)}${function dj(t){return Object.keys(t).map(i=>`;${Bx(i)}=${Bx(t[i])}`).join("")}(t.parameters)}`}const hj=/^[^\/()?;=#]+/;function Xp(t){const i=t.match(hj);return i?i[0]:""}const fj=/^[^=?&#]+/,pj=/^[^&#]+/;class _j{constructor(i){this.url=i,this.remaining=i}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ut([],{}):new Ut([],this.parseChildren())}parseQueryParams(){const i={};if(this.consumeOptional("?"))do{this.parseQueryParam(i)}while(this.consumeOptional("&"));return i}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const i=[];for(this.peekStartsWith("(")||i.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),i.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(i.length>0||Object.keys(e).length>0)&&(n[St]=new Ut(i,e)),n}parseSegment(){const i=Xp(this.remaining);if(""===i&&this.peekStartsWith(";"))throw new ue(4009,$p);return this.capture(i),new dh(qp(i),this.parseMatrixParams())}parseMatrixParams(){const i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){const e=Xp(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const r=Xp(this.remaining);r&&(n=r,this.capture(n))}i[qp(e)]=qp(n)}parseQueryParam(i){const e=function mj(t){const i=t.match(fj);return i?i[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const a=function gj(t){const i=t.match(pj);return i?i[0]:""}(this.remaining);a&&(n=a,this.capture(n))}const r=tA(e),o=tA(n);if(i.hasOwnProperty(r)){let a=i[r];Array.isArray(a)||(a=[a],i[r]=a),a.push(o)}else i[r]=o}parseParens(i){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Xp(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new ue(4010,$p);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):i&&(o=St);const a=this.parseChildren();e[o]=1===Object.keys(a).length?a[St]:new Ut([],a),this.consumeOptional("//")}return e}peekStartsWith(i){return this.remaining.startsWith(i)}consumeOptional(i){return!!this.peekStartsWith(i)&&(this.remaining=this.remaining.substring(i.length),!0)}capture(i){if(!this.consumeOptional(i))throw new ue(4011,$p)}}function Vx(t){return t.segments.length>0?new Ut([],{[St]:t}):t}function Qp(t){const i={};for(const n of Object.keys(t.children)){const o=Qp(t.children[n]);(o.segments.length>0||o.hasChildren())&&(i[n]=o)}return function bj(t){if(1===t.numberOfChildren&&t.children[St]){const i=t.children[St];return new Ut(t.segments.concat(i.segments),i.children)}return t}(new Ut(t.segments,i))}function Oc(t){return t instanceof Is}const Hx=!1;function vj(t,i,e,n,r){if(0===e.length)return pd(i.root,i.root,i.root,n,r);const o=function sA(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new aA(!0,0,t);let i=0,e=!1;const n=t.reduce((r,o,a)=>{if("object"==typeof o&&null!=o){if(o.outlets){const s={};return qn(o.outlets,(c,l)=>{s[l]="string"==typeof c?c.split("/"):c}),[...r,{outlets:s}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===a?(o.split("/").forEach((s,c)=>{0==c&&"."===s||(0==c&&""===s?e=!0:".."===s?i++:""!=s&&r.push(s))}),r):[...r,o]},[]);return new aA(e,i,n)}(e);return o.toRoot()?pd(i.root,i.root,new Ut([],{}),n,r):function a(c){const l=function yj(t,i,e,n){if(t.isAbsolute)return new gd(i.root,!0,0);if(-1===n)return new gd(e,e===i.root,0);return function cA(t,i,e){let n=t,r=i,o=e;for(;o>r;){if(o-=r,n=n.parent,!n)throw new ue(4005,Hx&&"Invalid number of '../'");r=n.segments.length}return new gd(n,!1,r-o)}(e,n+(fh(t.commands[0])?0:1),t.numberOfDoubleDots)}(o,i,t.snapshot?._urlSegment,c),d=l.processChildren?_d(l.segmentGroup,l.index,o.commands):Ux(l.segmentGroup,l.index,o.commands);return pd(i.root,l.segmentGroup,d,n,r)}(t.snapshot?._lastPathIndex)}function fh(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function mh(t){return"object"==typeof t&&null!=t&&t.outlets}function pd(t,i,e,n,r){let a,o={};n&&qn(n,(c,l)=>{o[l]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`}),a=t===i?e:oA(t,i,e);const s=Vx(Qp(a));return new Is(s,o,r)}function oA(t,i,e){const n={};return qn(t.children,(r,o)=>{n[o]=r===i?e:oA(r,i,e)}),new Ut(t.segments,n)}class aA{constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&fh(n[0]))throw new ue(4003,Hx&&"Root segment cannot have matrix parameters");const r=n.find(mh);if(r&&r!==XM(n))throw new ue(4004,Hx&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class gd{constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}}function Ux(t,i,e){if(t||(t=new Ut([],{})),0===t.segments.length&&t.hasChildren())return _d(t,i,e);const n=function Cj(t,i,e){let n=0,r=i;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const a=t.segments[r],s=e[n];if(mh(s))break;const c=`${s}`,l=n0&&void 0===c)break;if(c&&l&&"object"==typeof l&&void 0===l.outlets){if(!dA(c,l,a))return o;n+=2}else{if(!dA(c,{},a))return o;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}(t,i,e),r=e.slice(n.commandIndex);if(n.match&&n.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[a]=Ux(t.children[a],i,o))}),qn(t.children,(o,a)=>{void 0===n[a]&&(r[a]=o)}),new Ut(t.segments,r)}}function zx(t,i,e){const n=t.segments.slice(0,i);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(i[n]=zx(new Ut([],{}),0,e))}),i}function lA(t){const i={};return qn(t,(e,n)=>i[n]=`${e}`),i}function dA(t,i,e){return t==e.path&&fa(i,e.parameters)}const ph="imperative";class ma{constructor(i,e){this.id=i,this.url=e}}class $x extends ma{constructor(i,e,n="imperative",r=null){super(i,e),this.type=0,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Fs extends ma{constructor(i,e,n){super(i,e),this.urlAfterRedirects=n,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Yp extends ma{constructor(i,e,n,r){super(i,e),this.reason=n,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Kp extends ma{constructor(i,e,n,r){super(i,e),this.reason=n,this.code=r,this.type=16}}class jx extends ma{constructor(i,e,n,r){super(i,e),this.error=n,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Dj extends ma{constructor(i,e,n,r){super(i,e),this.urlAfterRedirects=n,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Sj extends ma{constructor(i,e,n,r){super(i,e),this.urlAfterRedirects=n,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ej extends ma{constructor(i,e,n,r,o){super(i,e),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Tj extends ma{constructor(i,e,n,r){super(i,e),this.urlAfterRedirects=n,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Mj extends ma{constructor(i,e,n,r){super(i,e),this.urlAfterRedirects=n,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Aj{constructor(i){this.route=i,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Ij{constructor(i){this.route=i,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Fj{constructor(i){this.snapshot=i,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Rj{constructor(i){this.snapshot=i,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Oj{constructor(i){this.snapshot=i,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Pj{constructor(i){this.snapshot=i,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class uA{constructor(i,e,n){this.routerEvent=i,this.position=e,this.anchor=n,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let Bj=(()=>{class t{createUrlTree(e,n,r,o,a,s){return vj(e||n.root,r,o,a,s)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})(),Hj=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:function(i){return Bj.\u0275fac(i)},providedIn:"root"}),t})();class hA{constructor(i){this._root=i}get root(){return this._root.value}parent(i){const e=this.pathFromRoot(i);return e.length>1?e[e.length-2]:null}children(i){const e=Wx(i,this._root);return e?e.children.map(n=>n.value):[]}firstChild(i){const e=Wx(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){const e=Gx(i,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==i)}pathFromRoot(i){return Gx(i,this._root).map(e=>e.value)}}function Wx(t,i){if(t===i.value)return i;for(const e of i.children){const n=Wx(t,e);if(n)return n}return null}function Gx(t,i){if(t===i.value)return[i];for(const e of i.children){const n=Gx(t,e);if(n.length)return n.unshift(i),n}return[]}class Ja{constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}}function bd(t){const i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}class fA extends hA{constructor(i,e){super(i),this.snapshot=e,qx(this,i)}toString(){return this.snapshot.toString()}}function mA(t,i){const e=function Uj(t,i){const a=new Zp([],{},{},"",{},St,i,null,t.root,-1,{});return new gA("",new Ja(a,[]))}(t,i),n=new Bn([new dh("",{})]),r=new Bn({}),o=new Bn({}),a=new Bn({}),s=new Bn(""),c=new vd(n,r,a,s,o,St,i,e.root);return c.snapshot=e.root,new fA(new Ja(c,[]),e)}class vd{constructor(i,e,n,r,o,a,s,c){this.url=i,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.title=this.data?.pipe(Ye(l=>l[lh]))??ze(void 0),this._futureSnapshot=c}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Ye(i=>md(i)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Ye(i=>md(i)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function pA(t,i="emptyOnly"){const e=t.pathFromRoot;let n=0;if("always"!==i)for(n=e.length-1;n>=1;){const r=e[n],o=e[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(o.component)break;n--}}return function zj(t){return t.reduce((i,e)=>({params:{...i.params,...e.params},data:{...i.data,...e.data},resolve:{...e.data,...i.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(n))}class Zp{get title(){return this.data?.[lh]}constructor(i,e,n,r,o,a,s,c,l,d,u){this.url=i,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=c,this._urlSegment=l,this._lastPathIndex=d,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=md(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=md(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class gA extends hA{constructor(i,e){super(e),this.url=i,qx(this,e)}toString(){return _A(this._root)}}function qx(t,i){i.value._routerState=t,i.children.forEach(e=>qx(t,e))}function _A(t){const i=t.children.length>0?` { ${t.children.map(_A).join(", ")} } `:"";return`${t.value}${i}`}function Xx(t){if(t.snapshot){const i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,fa(i.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),i.fragment!==e.fragment&&t.fragment.next(e.fragment),fa(i.params,e.params)||t.params.next(e.params),function ij(t,i){if(t.length!==i.length)return!1;for(let e=0;efa(e.parameters,i[n].parameters))}(t.url,i.url);return e&&!(!t.parent!=!i.parent)&&(!t.parent||Qx(t.parent,i.parent))}function gh(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){const n=e.value;n._futureSnapshot=i.value;const r=function jj(t,i,e){return i.children.map(n=>{for(const r of e.children)if(t.shouldReuseRoute(n.value,r.value.snapshot))return gh(t,n,r);return gh(t,n)})}(t,i,e);return new Ja(n,r)}{if(t.shouldAttach(i.value)){const o=t.retrieve(i.value);if(null!==o){const a=o.route;return a.value._futureSnapshot=i.value,a.children=i.children.map(s=>gh(t,s)),a}}const n=function Wj(t){return new vd(new Bn(t.url),new Bn(t.params),new Bn(t.queryParams),new Bn(t.fragment),new Bn(t.data),t.outlet,t.component,t)}(i.value),r=i.children.map(o=>gh(t,o));return new Ja(n,r)}}const Yx="ngNavigationCancelingError";function bA(t,i){const{redirectTo:e,navigationBehaviorOptions:n}=Oc(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,r=vA(!1,0,i);return r.url=e,r.navigationBehaviorOptions=n,r}function vA(t,i,e){const n=new Error("NavigationCancelingError: "+(t||""));return n[Yx]=!0,n.cancellationCode=i,e&&(n.url=e),n}function xA(t){return yA(t)&&Oc(t.url)}function yA(t){return t&&t[Yx]}class Gj{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new _h,this.attachRef=null}}let _h=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,n){const r=this.getOrCreateContext(e);r.outlet=n,this.contexts.set(e,r)}onChildOutletDestroyed(e){const n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new Gj,this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Jp=!1;let Kx=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=St,this.activateEvents=new ke,this.deactivateEvents=new ke,this.attachEvents=new ke,this.detachEvents=new ke,this.parentContexts=ht(_h),this.location=ht(Fi),this.changeDetector=ht(Gt),this.environmentInjector=ht(oa)}ngOnChanges(e){if(e.name){const{firstChange:n,previousValue:r}=e.name;if(n)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new ue(4012,Jp);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ue(4012,Jp);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ue(4012,Jp);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new ue(4013,Jp);this._activatedRoute=e;const r=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,c=new qj(e,s,r.injector);if(n&&function Xj(t){return!!t.resolveComponentFactory}(n)){const l=n.resolveComponentFactory(a);this.activated=r.createComponent(l,r.length,c)}else this.activated=r.createComponent(a,{index:r.length,injector:c,environmentInjector:n??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Ei]}),t})();class qj{constructor(i,e,n){this.route=i,this.childContexts=e,this.parent=n}get(i,e){return i===vd?this.route:i===_h?this.childContexts:this.parent.get(i,e)}}let Zx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=je({type:t,selectors:[["ng-component"]],standalone:!0,features:[Iv],decls:1,vars:0,template:function(e,n){1&e&&Ee(0,"router-outlet")},dependencies:[Kx],encapsulation:2}),t})();function wA(t,i){return t.providers&&!t._injector&&(t._injector=fp(t.providers,i,`Route: ${t.path}`)),t._injector??i}function ey(t){const i=t.children&&t.children.map(ey),e=i?{...t,children:i}:{...t};return!e.component&&!e.loadComponent&&(i||e.loadChildren)&&e.outlet&&e.outlet!==St&&(e.component=Zx),e}function bo(t){return t.outlet||St}function CA(t,i){const e=t.filter(n=>bo(n)===i);return e.push(...t.filter(n=>bo(n)!==i)),e}function bh(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let i=t.parent;i;i=i.parent){const e=i.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class Jj{constructor(i,e,n,r){this.routeReuseStrategy=i,this.futureState=e,this.currState=n,this.forwardEvent=r}activate(i){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,i),Xx(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){const r=bd(e);i.children.forEach(o=>{const a=o.value.outlet;this.deactivateRoutes(o,r[a],n),delete r[a]}),qn(r,(o,a)=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(i,e,n){const r=i.value,o=e?e.value:null;if(r===o)if(r.component){const a=n.getContext(r.outlet);a&&this.deactivateChildRoutes(i,e,a.children)}else this.deactivateChildRoutes(i,e,n);else o&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){const n=e.getContext(i.value.outlet),r=n&&i.value.component?n.children:e,o=bd(i);for(const a of Object.keys(o))this.deactivateRouteAndItsChildren(o[a],r);if(n&&n.outlet){const a=n.outlet.detach(),s=n.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:a,route:i,contexts:s})}}deactivateRouteAndOutlet(i,e){const n=e.getContext(i.value.outlet),r=n&&i.value.component?n.children:e,o=bd(i);for(const a of Object.keys(o))this.deactivateRouteAndItsChildren(o[a],r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(i,e,n){const r=bd(e);i.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],n),this.forwardEvent(new Pj(o.value.snapshot))}),i.children.length&&this.forwardEvent(new Rj(i.value.snapshot))}activateRoutes(i,e,n){const r=i.value,o=e?e.value:null;if(Xx(r),r===o)if(r.component){const a=n.getOrCreateContext(r.outlet);this.activateChildRoutes(i,e,a.children)}else this.activateChildRoutes(i,e,n);else if(r.component){const a=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),Xx(s.route.value),this.activateChildRoutes(i,null,a.children)}else{const s=bh(r.snapshot),c=s?.get(ks)??null;a.attachRef=null,a.route=r,a.resolver=c,a.injector=s,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(i,null,a.children)}}else this.activateChildRoutes(i,null,n)}}class kA{constructor(i){this.path=i,this.route=this.path[this.path.length-1]}}class eg{constructor(i,e){this.component=i,this.route=e}}function eW(t,i,e){const n=t._root;return vh(n,i?i._root:null,e,[n.value])}function xd(t,i){const e=Symbol(),n=i.get(t,e);return n===e?"function"!=typeof t||function p8(t){return null!==fm(t)}(t)?i.get(t):t:n}function vh(t,i,e,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=bd(i);return t.children.forEach(a=>{(function iW(t,i,e,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,a=i?i.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const c=function nW(t,i,e){if("function"==typeof e)return e(t,i);switch(e){case"pathParamsChange":return!Rc(t.url,i.url);case"pathParamsOrQueryParamsChange":return!Rc(t.url,i.url)||!fa(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Qx(t,i)||!fa(t.queryParams,i.queryParams);default:return!Qx(t,i)}}(a,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new kA(n)):(o.data=a.data,o._resolvedData=a._resolvedData),vh(t,i,o.component?s?s.children:null:e,n,r),c&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new eg(s.outlet.component,a))}else a&&xh(i,s,r),r.canActivateChecks.push(new kA(n)),vh(t,null,o.component?s?s.children:null:e,n,r)})(a,o[a.value.outlet],e,n.concat([a.value]),r),delete o[a.value.outlet]}),qn(o,(a,s)=>xh(a,e.getContext(s),r)),r}function xh(t,i,e){const n=bd(t),r=t.value;qn(n,(o,a)=>{xh(o,r.component?i?i.children.getContext(a):null:i,e)}),e.canDeactivateChecks.push(new eg(r.component&&i&&i.outlet&&i.outlet.isActivated?i.outlet.component:null,r))}function yh(t){return"function"==typeof t}function ty(t){return t instanceof sh||"EmptyError"===t?.name}const tg=Symbol("INITIAL_VALUE");function yd(){return fn(t=>Ic(t.map(i=>i.pipe(ui(1),Vn(tg)))).pipe(Ye(i=>{for(const e of i)if(!0!==e){if(e===tg)return tg;if(!1===e||e instanceof Is)return e}return!0}),hi(i=>i!==tg),ui(1)))}function DA(t){return function N3(...t){return zC(t)}(zi(i=>{if(Oc(i))throw bA(0,i)}),Ye(i=>!0===i))}const iy={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function SA(t,i,e,n,r){const o=ny(t,i,e);return o.matched?function xW(t,i,e,n){const r=i.canMatch;return r&&0!==r.length?ze(r.map(a=>{const s=xd(a,t);return As(function lW(t){return t&&yh(t.canMatch)}(s)?s.canMatch(i,e):t.runInContext(()=>s(i,e)))})).pipe(yd(),DA()):ze(!0)}(n=wA(i,n),i,e).pipe(Ye(a=>!0===a?o:{...iy})):ze(o)}function ny(t,i,e){if(""===i.path)return"full"===i.pathMatch&&(t.hasChildren()||e.length>0)?{...iy}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(i.matcher||tj)(e,t,i);if(!r)return{...iy};const o={};qn(r.posParams,(s,c)=>{o[c]=s.path});const a=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:a,positionalParamSegments:r.posParams??{}}}function ig(t,i,e,n){if(e.length>0&&function CW(t,i,e){return e.some(n=>ng(t,i,n)&&bo(n)!==St)}(t,e,n)){const o=new Ut(i,function wW(t,i,e,n){const r={};r[St]=n,n._sourceSegment=t,n._segmentIndexShift=i.length;for(const o of e)if(""===o.path&&bo(o)!==St){const a=new Ut([],{});a._sourceSegment=t,a._segmentIndexShift=i.length,r[bo(o)]=a}return r}(t,i,n,new Ut(e,t.children)));return o._sourceSegment=t,o._segmentIndexShift=i.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function kW(t,i,e){return e.some(n=>ng(t,i,n))}(t,e,n)){const o=new Ut(t.segments,function yW(t,i,e,n,r){const o={};for(const a of n)if(ng(t,e,a)&&!r[bo(a)]){const s=new Ut([],{});s._sourceSegment=t,s._segmentIndexShift=i.length,o[bo(a)]=s}return{...r,...o}}(t,i,e,n,t.children));return o._sourceSegment=t,o._segmentIndexShift=i.length,{segmentGroup:o,slicedSegments:e}}const r=new Ut(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=i.length,{segmentGroup:r,slicedSegments:e}}function ng(t,i,e){return(!(t.hasChildren()||i.length>0)||"full"!==e.pathMatch)&&""===e.path}function EA(t,i,e,n){return!!(bo(t)===n||n!==St&&ng(i,e,t))&&("**"===t.path||ny(i,t,e).matched)}function TA(t,i,e){return 0===i.length&&!t.children[e]}const rg=!1;class og{constructor(i){this.segmentGroup=i||null}}class MA{constructor(i){this.urlTree=i}}function wh(t){return Fc(new og(t))}function AA(t){return Fc(new MA(t))}class TW{constructor(i,e,n,r,o){this.injector=i,this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const i=ig(this.urlTree.root,[],[],this.config).segmentGroup,e=new Ut(i.segments,i.children);return this.expandSegmentGroup(this.injector,this.config,e,St).pipe(Ye(o=>this.createUrlTree(Qp(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(mn(o=>{if(o instanceof MA)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof og?this.noMatchError(o):o}))}match(i){return this.expandSegmentGroup(this.injector,this.config,i.root,St).pipe(Ye(r=>this.createUrlTree(Qp(r),i.queryParams,i.fragment))).pipe(mn(r=>{throw r instanceof og?this.noMatchError(r):r}))}noMatchError(i){return new ue(4002,rg)}createUrlTree(i,e,n){const r=Vx(i);return new Is(r,e,n)}expandSegmentGroup(i,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(i,e,n).pipe(Ye(o=>new Ut([],o))):this.expandSegment(i,n,e,n.segments,r,!0)}expandChildren(i,e,n){const r=[];for(const o of Object.keys(n.children))"primary"===o?r.unshift(o):r.push(o);return Zi(r).pipe(Ms(o=>{const a=n.children[o],s=CA(e,o);return this.expandSegmentGroup(i,s,a,o).pipe(Ye(c=>({segment:c,outlet:o})))}),zM((o,a)=>(o[a.outlet]=a.segment,o),{}),$M())}expandSegment(i,e,n,r,o,a){return Zi(n).pipe(Ms(s=>this.expandSegmentAgainstRoute(i,e,n,s,r,o,a).pipe(mn(l=>{if(l instanceof og)return ze(null);throw l}))),_o(s=>!!s),mn((s,c)=>{if(ty(s))return TA(e,r,o)?ze(new Ut([],{})):wh(e);throw s}))}expandSegmentAgainstRoute(i,e,n,r,o,a,s){return EA(r,e,o,a)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(i,e,r,o,a):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(i,e,n,r,o,a):wh(e):wh(e)}expandSegmentAgainstRouteUsingRedirect(i,e,n,r,o,a){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(i,n,r,a):this.expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,r,o,a)}expandWildCardWithParamsAgainstRouteUsingRedirect(i,e,n,r){const o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?AA(o):this.lineralizeSegments(n,o).pipe(Sn(a=>{const s=new Ut(a,{});return this.expandSegment(i,s,e,a,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,r,o,a){const{matched:s,consumedSegments:c,remainingSegments:l,positionalParamSegments:d}=ny(e,r,o);if(!s)return wh(e);const u=this.applyRedirectCommands(c,r.redirectTo,d);return r.redirectTo.startsWith("/")?AA(u):this.lineralizeSegments(r,u).pipe(Sn(h=>this.expandSegment(i,e,n,h.concat(l),a,!1)))}matchSegmentAgainstRoute(i,e,n,r,o){return"**"===n.path?(i=wA(n,i),n.loadChildren?(n._loadedRoutes?ze({routes:n._loadedRoutes,injector:n._loadedInjector}):this.configLoader.loadChildren(i,n)).pipe(Ye(s=>(n._loadedRoutes=s.routes,n._loadedInjector=s.injector,new Ut(r,{})))):ze(new Ut(r,{}))):SA(e,n,r,i).pipe(fn(({matched:a,consumedSegments:s,remainingSegments:c})=>a?this.getChildConfig(i=n._injector??i,n,r).pipe(Sn(d=>{const u=d.injector??i,h=d.routes,{segmentGroup:f,slicedSegments:m}=ig(e,s,c,h),g=new Ut(f.segments,f.children);if(0===m.length&&g.hasChildren())return this.expandChildren(u,h,g).pipe(Ye(x=>new Ut(s,x)));if(0===h.length&&0===m.length)return ze(new Ut(s,{}));const p=bo(n)===o;return this.expandSegment(u,g,h,m,p?St:o,!0).pipe(Ye(w=>new Ut(s.concat(w.segments),w.children)))})):wh(e)))}getChildConfig(i,e,n){return e.children?ze({routes:e.children,injector:i}):e.loadChildren?void 0!==e._loadedRoutes?ze({routes:e._loadedRoutes,injector:e._loadedInjector}):function vW(t,i,e,n){const r=i.canLoad;return void 0===r||0===r.length?ze(!0):ze(r.map(a=>{const s=xd(a,t);return As(function oW(t){return t&&yh(t.canLoad)}(s)?s.canLoad(i,e):t.runInContext(()=>s(i,e)))})).pipe(yd(),DA())}(i,e,n).pipe(Sn(r=>r?this.configLoader.loadChildren(i,e).pipe(zi(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function SW(t){return Fc(vA(rg,3))}())):ze({routes:[],injector:i})}lineralizeSegments(i,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return ze(n);if(r.numberOfChildren>1||!r.children[St])return i.redirectTo,Fc(new ue(4e3,rg));r=r.children[St]}}applyRedirectCommands(i,e,n){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),i,n)}applyRedirectCreateUrlTree(i,e,n,r){const o=this.createSegmentGroup(i,e.root,n,r);return new Is(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){const n={};return qn(i,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const s=r.substring(1);n[o]=e[s]}else n[o]=r}),n}createSegmentGroup(i,e,n,r){const o=this.createSegments(i,e.segments,n,r);let a={};return qn(e.children,(s,c)=>{a[c]=this.createSegmentGroup(i,s,n,r)}),new Ut(o,a)}createSegments(i,e,n,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(i,o,r):this.findOrReturn(o,n))}findPosParam(i,e,n){const r=n[e.path.substring(1)];if(!r)throw new ue(4001,rg);return r}findOrReturn(i,e){let n=0;for(const r of e){if(r.path===i.path)return e.splice(n),r;n++}return i}}class AW{}class RW{constructor(i,e,n,r,o,a,s){this.injector=i,this.rootComponentType=e,this.config=n,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=a,this.urlSerializer=s}recognize(){const i=ig(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,i,St).pipe(Ye(e=>{if(null===e)return null;const n=new Zp([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},St,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Ja(n,e),o=new gA(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(i){const e=i.value,n=pA(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),i.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(i,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.processChildren(i,e,n):this.processSegment(i,e,n,n.segments,r)}processChildren(i,e,n){return Zi(Object.keys(n.children)).pipe(Ms(r=>{const o=n.children[r],a=CA(e,r);return this.processSegmentGroup(i,a,o,r)}),zM((r,o)=>r&&o?(r.push(...o),r):null),jM(r=>null!==r),Up(null),$M(),Ye(r=>{if(null===r)return null;const o=FA(r);return function OW(t){t.sort((i,e)=>i.value.outlet===St?-1:e.value.outlet===St?1:i.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(i,e,n,r,o){return Zi(e).pipe(Ms(a=>this.processSegmentAgainstRoute(a._injector??i,a,n,r,o)),_o(a=>!!a),mn(a=>{if(ty(a))return TA(n,r,o)?ze([]):ze(null);throw a}))}processSegmentAgainstRoute(i,e,n,r,o){if(e.redirectTo||!EA(e,n,r,o))return ze(null);let a;if("**"===e.path){const s=r.length>0?XM(r).parameters:{},c=OA(n)+r.length;a=ze({snapshot:new Zp(r,s,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,PA(e),bo(e),e.component??e._loadedComponent??null,e,RA(n),c,LA(e)),consumedSegments:[],remainingSegments:[]})}else a=SA(n,e,r,i).pipe(Ye(({matched:s,consumedSegments:c,remainingSegments:l,parameters:d})=>{if(!s)return null;const u=OA(n)+c.length;return{snapshot:new Zp(c,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,PA(e),bo(e),e.component??e._loadedComponent??null,e,RA(n),u,LA(e)),consumedSegments:c,remainingSegments:l}}));return a.pipe(fn(s=>{if(null===s)return ze(null);const{snapshot:c,consumedSegments:l,remainingSegments:d}=s;i=e._injector??i;const u=e._loadedInjector??i,h=function PW(t){return t.children?t.children:t.loadChildren?t._loadedRoutes:[]}(e),{segmentGroup:f,slicedSegments:m}=ig(n,l,d,h.filter(p=>void 0===p.redirectTo));if(0===m.length&&f.hasChildren())return this.processChildren(u,h,f).pipe(Ye(p=>null===p?null:[new Ja(c,p)]));if(0===h.length&&0===m.length)return ze([new Ja(c,[])]);const g=bo(e)===o;return this.processSegment(u,h,f,m,g?St:o).pipe(Ye(p=>null===p?null:[new Ja(c,p)]))}))}}function LW(t){const i=t.value.routeConfig;return i&&""===i.path&&void 0===i.redirectTo}function FA(t){const i=[],e=new Set;for(const n of t){if(!LW(n)){i.push(n);continue}const r=i.find(o=>n.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...n.children),e.add(r)):i.push(n)}for(const n of e){const r=FA(n.children);i.push(new Ja(n.value,r))}return i.filter(n=>!e.has(n))}function RA(t){let i=t;for(;i._sourceSegment;)i=i._sourceSegment;return i}function OA(t){let i=t,e=i._segmentIndexShift??0;for(;i._sourceSegment;)i=i._sourceSegment,e+=i._segmentIndexShift??0;return e-1}function PA(t){return t.data||{}}function LA(t){return t.resolve||{}}function NA(t){return"string"==typeof t.title||null===t.title}function ry(t){return fn(i=>{const e=t(i);return e?Zi(e).pipe(Ye(()=>i)):ze(i)})}const wd=new ae("ROUTES");let oy=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=ht(d2)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return ze(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const n=As(e.loadComponent()).pipe(Ye(VA),zi(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),zp(()=>{this.componentLoaders.delete(e)})),r=new Px(n,()=>new Ce).pipe(Ox());return this.componentLoaders.set(e,r),r}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return ze({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);const o=this.loadModuleFactoryOrRoutes(n.loadChildren).pipe(Ye(s=>{this.onLoadEndListener&&this.onLoadEndListener(n);let c,l,d=!1;Array.isArray(s)?l=s:(c=s.create(e).injector,l=qM(c.get(wd,[],gt.Self|gt.Optional)));return{routes:l.map(ey),injector:c}}),zp(()=>{this.childrenLoaders.delete(n)})),a=new Px(o,()=>new Ce).pipe(Ox());return this.childrenLoaders.set(n,a),a}loadModuleFactoryOrRoutes(e){return As(e()).pipe(Ye(VA),Sn(n=>n instanceof yT||Array.isArray(n)?ze(n):Zi(this.compiler.compileModuleAsync(n))))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function VA(t){return function jW(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let sg=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new Ce,this.configLoader=ht(oy),this.environmentInjector=ht(oa),this.urlSerializer=ht(uh),this.rootContexts=ht(_h),this.navigationId=0,this.afterPreactivation=()=>ze(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new Ij(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new Aj(r))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const n=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:n})}setupNavigations(e){return this.transitions=new Bn({id:0,targetPageId:0,currentUrlTree:e.currentUrlTree,currentRawUrl:e.currentUrlTree,extractedUrl:e.urlHandlingStrategy.extract(e.currentUrlTree),urlAfterRedirects:e.urlHandlingStrategy.extract(e.currentUrlTree),rawUrl:e.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:ph,restoredState:null,currentSnapshot:e.routerState.snapshot,targetSnapshot:null,currentRouterState:e.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(hi(n=>0!==n.id),Ye(n=>({...n,extractedUrl:e.urlHandlingStrategy.extract(n.rawUrl)})),fn(n=>{let r=!1,o=!1;return ze(n).pipe(zi(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),fn(a=>{const s=e.browserUrlTree.toString(),c=!e.navigated||a.extractedUrl.toString()!==s||s!==e.currentUrlTree.toString();if(!c&&"reload"!==(a.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const d="";return this.events.next(new Kp(a.id,e.serializeUrl(n.rawUrl),d,0)),e.rawUrlTree=a.rawUrl,a.resolve(null),zr}if(e.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return HA(a.source)&&(e.browserUrlTree=a.extractedUrl),ze(a).pipe(fn(d=>{const u=this.transitions?.getValue();return this.events.next(new $x(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),u!==this.transitions?.getValue()?zr:Promise.resolve(d)}),function MW(t,i,e,n){return fn(r=>function EW(t,i,e,n,r){return new TW(t,i,e,n,r).apply()}(t,i,e,r.extractedUrl,n).pipe(Ye(o=>({...r,urlAfterRedirects:o}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,e.config),zi(d=>{this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects},n.urlAfterRedirects=d.urlAfterRedirects}),function BW(t,i,e,n,r){return Sn(o=>function FW(t,i,e,n,r,o,a="emptyOnly"){return new RW(t,i,e,n,r,a,o).recognize().pipe(fn(s=>null===s?function IW(t){return new ni(i=>i.error(t))}(new AW):ze(s)))}(t,i,e,o.urlAfterRedirects,n.serialize(o.urlAfterRedirects),n,r).pipe(Ye(a=>({...o,targetSnapshot:a}))))}(this.environmentInjector,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),zi(d=>{if(n.targetSnapshot=d.targetSnapshot,"eager"===e.urlUpdateStrategy){if(!d.extras.skipLocationChange){const h=e.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);e.setBrowserUrl(h,d)}e.browserUrlTree=d.urlAfterRedirects}const u=new Dj(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(u)}));if(c&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){const{id:d,extractedUrl:u,source:h,restoredState:f,extras:m}=a,g=new $x(d,this.urlSerializer.serialize(u),h,f);this.events.next(g);const p=mA(u,this.rootComponentType).snapshot;return ze(n={...a,targetSnapshot:p,urlAfterRedirects:u,extras:{...m,skipLocationChange:!1,replaceUrl:!1}})}{const d="";return this.events.next(new Kp(a.id,e.serializeUrl(n.extractedUrl),d,1)),e.rawUrlTree=a.rawUrl,a.resolve(null),zr}}),zi(a=>{const s=new Sj(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}),Ye(a=>n={...a,guards:eW(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function uW(t,i){return Sn(e=>{const{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:a}}=e;return 0===a.length&&0===o.length?ze({...e,guardsResult:!0}):function hW(t,i,e,n){return Zi(t).pipe(Sn(r=>function bW(t,i,e,n,r){const o=i&&i.routeConfig?i.routeConfig.canDeactivate:null;return o&&0!==o.length?ze(o.map(s=>{const c=bh(i)??r,l=xd(s,c);return As(function cW(t){return t&&yh(t.canDeactivate)}(l)?l.canDeactivate(t,i,e,n):c.runInContext(()=>l(t,i,e,n))).pipe(_o())})).pipe(yd()):ze(!0)}(r.component,r.route,e,i,n)),_o(r=>!0!==r,!0))}(a,n,r,t).pipe(Sn(s=>s&&function rW(t){return"boolean"==typeof t}(s)?function fW(t,i,e,n){return Zi(i).pipe(Ms(r=>ch(function pW(t,i){return null!==t&&i&&i(new Fj(t)),ze(!0)}(r.route.parent,n),function mW(t,i){return null!==t&&i&&i(new Oj(t)),ze(!0)}(r.route,n),function _W(t,i,e){const n=i[i.length-1],o=i.slice(0,i.length-1).reverse().map(a=>function tW(t){const i=t.routeConfig?t.routeConfig.canActivateChild:null;return i&&0!==i.length?{node:t,guards:i}:null}(a)).filter(a=>null!==a).map(a=>fd(()=>ze(a.guards.map(c=>{const l=bh(a.node)??e,d=xd(c,l);return As(function sW(t){return t&&yh(t.canActivateChild)}(d)?d.canActivateChild(n,t):l.runInContext(()=>d(n,t))).pipe(_o())})).pipe(yd())));return ze(o).pipe(yd())}(t,r.path,e),function gW(t,i,e){const n=i.routeConfig?i.routeConfig.canActivate:null;if(!n||0===n.length)return ze(!0);const r=n.map(o=>fd(()=>{const a=bh(i)??e,s=xd(o,a);return As(function aW(t){return t&&yh(t.canActivate)}(s)?s.canActivate(i,t):a.runInContext(()=>s(i,t))).pipe(_o())}));return ze(r).pipe(yd())}(t,r.route,e))),_o(r=>!0!==r,!0))}(n,o,t,i):ze(s)),Ye(s=>({...e,guardsResult:s})))})}(this.environmentInjector,a=>this.events.next(a)),zi(a=>{if(n.guardsResult=a.guardsResult,Oc(a.guardsResult))throw bA(0,a.guardsResult);const s=new Ej(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(s)}),hi(a=>!!a.guardsResult||(e.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),ry(a=>{if(a.guards.canActivateChecks.length)return ze(a).pipe(zi(s=>{const c=new Tj(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(c)}),fn(s=>{let c=!1;return ze(s).pipe(function VW(t,i){return Sn(e=>{const{targetSnapshot:n,guards:{canActivateChecks:r}}=e;if(!r.length)return ze(e);let o=0;return Zi(r).pipe(Ms(a=>function HW(t,i,e,n){const r=t.routeConfig,o=t._resolve;return void 0!==r?.title&&!NA(r)&&(o[lh]=r.title),function UW(t,i,e,n){const r=function zW(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===r.length)return ze({});const o={};return Zi(r).pipe(Sn(a=>function $W(t,i,e,n){const r=bh(i)??n,o=xd(t,r);return As(o.resolve?o.resolve(i,e):r.runInContext(()=>o(i,e)))}(t[a],i,e,n).pipe(_o(),zi(s=>{o[a]=s}))),Lx(1),WM(o),mn(a=>ty(a)?zr:Fc(a)))}(o,t,i,n).pipe(Ye(a=>(t._resolvedData=a,t.data=pA(t,e).resolve,r&&NA(r)&&(t.data[lh]=r.title),null)))}(a.route,n,t,i)),zi(()=>o++),Lx(1),Sn(a=>o===r.length?ze(e):zr))})}(e.paramsInheritanceStrategy,this.environmentInjector),zi({next:()=>c=!0,complete:()=>{c||(e.restoreHistory(s),this.cancelNavigationTransition(s,"",2))}}))}),zi(s=>{const c=new Mj(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(c)}))}),ry(a=>{const s=c=>{const l=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&l.push(this.configLoader.loadComponent(c.routeConfig).pipe(zi(d=>{c.component=d}),Ye(()=>{})));for(const d of c.children)l.push(...s(d));return l};return Ic(s(a.targetSnapshot.root)).pipe(Up(),ui(1))}),ry(()=>this.afterPreactivation()),Ye(a=>{const s=function $j(t,i,e){const n=gh(t,i._root,e?e._root:void 0);return new fA(n,i)}(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return n={...a,targetRouterState:s}}),zi(a=>{e.currentUrlTree=a.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),e.routerState=a.targetRouterState,"deferred"===e.urlUpdateStrategy&&(a.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,a),e.browserUrlTree=a.urlAfterRedirects)}),((t,i,e)=>Ye(n=>(new Jj(i,n.targetRouterState,n.currentRouterState,e).activate(t),n)))(this.rootContexts,e.routeReuseStrategy,a=>this.events.next(a)),ui(1),zi({next:a=>{r=!0,this.lastSuccessfulNavigation=this.currentNavigation,e.navigated=!0,this.events.next(new Fs(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(e.currentUrlTree))),e.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{r=!0}}),zp(()=>{r||o||this.cancelNavigationTransition(n,"",1),this.currentNavigation?.id===n.id&&(this.currentNavigation=null)}),mn(a=>{if(o=!0,yA(a)){xA(a)||(e.navigated=!0,e.restoreHistory(n,!0));const s=new Yp(n.id,this.urlSerializer.serialize(n.extractedUrl),a.message,a.cancellationCode);if(this.events.next(s),xA(a)){const c=e.urlHandlingStrategy.merge(a.url,e.rawUrlTree),l={skipLocationChange:n.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy||HA(n.source)};e.scheduleNavigation(c,ph,null,l,{resolve:n.resolve,reject:n.reject,promise:n.promise})}else n.resolve(!1)}else{e.restoreHistory(n,!0);const s=new jx(n.id,this.urlSerializer.serialize(n.extractedUrl),a,n.targetSnapshot??void 0);this.events.next(s);try{n.resolve(e.errorHandler(a))}catch(c){n.reject(c)}}return zr}))}))}cancelNavigationTransition(e,n,r){const o=new Yp(e.id,this.urlSerializer.serialize(e.extractedUrl),n,r);this.events.next(o),e.resolve(!1)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function HA(t){return t!==ph}let UA=(()=>{class t{buildTitle(e){let n,r=e.root;for(;void 0!==r;)n=this.getResolvedTitleForRoute(r)??n,r=r.children.find(o=>o.outlet===St);return n}getResolvedTitleForRoute(e){return e.data[lh]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:function(){return ht(WW)},providedIn:"root"}),t})(),WW=(()=>{class t extends UA{constructor(e){super(),this.title=e}updateTitle(e){const n=this.buildTitle(e);void 0!==n&&this.title.setTitle(n)}}return t.\u0275fac=function(e){return new(e||t)(G(OM))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),GW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:function(){return ht(XW)},providedIn:"root"}),t})();class qW{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}}let XW=(()=>{class t extends qW{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const cg=new ae("",{providedIn:"root",factory:()=>({})});let YW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:function(){return ht(KW)},providedIn:"root"}),t})(),KW=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function ZW(t){throw t}function JW(t,i,e){return i.parse("/")}const eG={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},tG={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Pr=(()=>{class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=ht(NU),this.isNgZoneEnabled=!1,this.options=ht(cg,{optional:!0})||{},this.errorHandler=this.options.errorHandler||ZW,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||JW,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=ht(YW),this.routeReuseStrategy=ht(GW),this.urlCreationStrategy=ht(Hj),this.titleStrategy=ht(UA),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=qM(ht(wd,{optional:!0})??[]),this.navigationTransitions=ht(sg),this.urlSerializer=ht(uh),this.location=ht(eh),this.isNgZoneEnabled=ht(Ue)instanceof Ue&&Ue.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Is,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=mA(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId??0},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const e=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),ph,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const n="popstate"===e.type?"popstate":"hashchange";"popstate"===n&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,n,e.state)},0)}))}navigateToSyncWithBrowser(e,n,r){const o={replaceUrl:!0},a=r?.navigationId?r:null;if(r){const c={...r};delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(o.state=c)}const s=this.parseUrl(e);this.scheduleNavigation(s,n,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(e){this.config=e.map(ey),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,n={}){const{relativeTo:r,queryParams:o,fragment:a,queryParamsHandling:s,preserveFragment:c}=n,l=c?this.currentUrlTree.fragment:a;let d=null;switch(s){case"merge":d={...this.currentUrlTree.queryParams,...o};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}return null!==d&&(d=this.removeEmptyProps(d)),this.urlCreationStrategy.createUrlTree(r,this.routerState,this.currentUrlTree,e,d,l??null)}navigateByUrl(e,n={skipLocationChange:!1}){const r=Oc(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,ph,null,n)}navigate(e,n={skipLocationChange:!1}){return function iG(t){for(let i=0;i{const o=e[r];return null!=o&&(n[r]=o),n},{})}scheduleNavigation(e,n,r,o,a){if(this.disposed)return Promise.resolve(!1);let s,c,l,d;return a?(s=a.resolve,c=a.reject,l=a.promise):l=new Promise((u,h)=>{s=u,c=h}),d="computed"===this.canceledNavigationResolution?r&&r.\u0275routerPageId?r.\u0275routerPageId:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:d,source:n,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:s,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(u=>Promise.reject(u))}setBrowserUrl(e,n){const r=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(r)||n.extras.replaceUrl){const a={...n.extras.state,...this.generateNgRouterState(n.id,this.browserPageId)};this.location.replaceState(r,"",a)}else{const o={...n.extras.state,...this.generateNgRouterState(n.id,n.targetPageId)};this.location.go(r,"",o)}}restoreHistory(e,n=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-(this.browserPageId??this.currentPageId);0!==o?this.location.historyGo(o):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(n&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class zA{}let oG=(()=>{class t{constructor(e,n,r,o,a){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(hi(e=>e instanceof Fs),Ms(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,n){const r=[];for(const o of n){o.providers&&!o._injector&&(o._injector=fp(o.providers,e,`Route: ${o.path}`));const a=o._injector??e,s=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(s,o.children??o._loadedRoutes))}return Zi(r).pipe(kl())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{let r;r=n.loadChildren&&void 0===n.canLoad?this.loader.loadChildren(e,n):ze(null);const o=r.pipe(Sn(a=>null===a?ze(void 0):(n._loadedRoutes=a.routes,n._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));return n.loadComponent&&!n._loadedComponent?Zi([o,this.loader.loadComponent(n)]).pipe(kl()):o})}}return t.\u0275fac=function(e){return new(e||t)(G(Pr),G(d2),G(oa),G(zA),G(oy))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const cy=new ae("");let $A=(()=>{class t{constructor(e,n,r,o,a={}){this.urlSerializer=e,this.transitions=n,this.viewportScroller=r,this.zone=o,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration=a.scrollPositionRestoration||"disabled",a.anchorScrolling=a.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 $x?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Fs&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof uA&&(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,n){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new uA(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return t.\u0275fac=function(e){aa()},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();var Kr=(()=>((Kr=Kr||{})[Kr.COMPLETE=0]="COMPLETE",Kr[Kr.FAILED=1]="FAILED",Kr[Kr.REDIRECTING=2]="REDIRECTING",Kr))();const Cd=!1;function Rs(t,i){return{\u0275kind:t,\u0275providers:i}}const ly=new ae("",{providedIn:"root",factory:()=>!1});function WA(){const t=ht(en);return i=>{const e=t.get(ud);if(i!==e.components[0])return;const n=t.get(Pr),r=t.get(GA);1===t.get(dy)&&n.initialNavigation(),t.get(qA,null,gt.Optional)?.setUpPreloading(),t.get(cy,null,gt.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const GA=new ae(Cd?"bootstrap done indicator":"",{factory:()=>new Ce}),dy=new ae(Cd?"initial navigation":"",{providedIn:"root",factory:()=>1});function dG(){let t=[];return t=Cd?[{provide:qm,multi:!0,useFactory:()=>{const i=ht(Pr);return()=>i.events.subscribe(e=>{console.group?.(`Router Event: ${e.constructor.name}`),console.log(function Lj(t){if(!("type"in t))return`Unknown Router Event: ${t.constructor.name}`;switch(t.type){case 14:return`ActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state}, shouldActivate: ${t.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 2:return`NavigationCancel(id: ${t.id}, url: '${t.url}')`;case 16:return`NavigationSkipped(id: ${t.id}, url: '${t.url}')`;case 1:return`NavigationEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${t.id}, url: '${t.url}', error: ${t.error})`;case 0:return`NavigationStart(id: ${t.id}, url: '${t.url}')`;case 6:return`ResolveEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 5:return`ResolveStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 10:return`RouteConfigLoadEnd(path: ${t.route.path})`;case 9:return`RouteConfigLoadStart(path: ${t.route.path})`;case 4:return`RoutesRecognized(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 15:return`Scroll(anchor: '${t.anchor}', position: '${t.position?`${t.position[0]}, ${t.position[1]}`:null}')`}}(e)),console.log(e),console.groupEnd?.()})}}]:[],Rs(1,t)}const qA=new ae(Cd?"router preloader":"");function uG(t){return Rs(0,[{provide:qA,useExisting:oG},{provide:zA,useExisting:t}])}const Ch=!1,XA=new ae(Ch?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),hG=[eh,{provide:uh,useClass:Nx},Pr,_h,{provide:vd,useFactory:function jA(t){return t.routerState.root},deps:[Pr]},oy,Ch?{provide:ly,useValue:!0}:[]];function fG(){return new b2("Router",Pr)}let QA=(()=>{class t{constructor(e){}static forRoot(e,n){return{ngModule:t,providers:[hG,Ch&&n?.enableTracing?dG().\u0275providers:[],{provide:wd,multi:!0,useValue:e},{provide:XA,useFactory:_G,deps:[[Pr,new na,new bc]]},{provide:cg,useValue:n||{}},n?.useHash?{provide:Ac,useClass:k9}:{provide:Ac,useClass:U2},{provide:cy,useFactory:()=>{const t=ht(Vz),i=ht(Ue),e=ht(cg),n=ht(sg),r=ht(uh);return e.scrollOffset&&t.setOffset(e.scrollOffset),new $A(r,n,t,i,e)}},n?.preloadingStrategy?uG(n.preloadingStrategy).\u0275providers:[],{provide:b2,multi:!0,useFactory:fG},n?.initialNavigation?bG(n):[],[{provide:YA,useFactory:WA},{provide:_2,multi:!0,useExisting:YA}]]}}static forChild(e){return{ngModule:t,providers:[{provide:wd,multi:!0,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)(G(XA,8))},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[Zx]}),t})();function _G(t){if(Ch&&t)throw new ue(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function bG(t){return["disabled"===t.initialNavigation?Rs(3,[{provide:bp,multi:!0,useFactory:()=>{const i=ht(Pr);return()=>{i.setUpLocationChangeListener()}}},{provide:dy,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Rs(2,[{provide:dy,useValue:0},{provide:bp,multi:!0,deps:[en],useFactory:i=>{const e=i.get(w9,Promise.resolve());return()=>e.then(()=>new Promise(n=>{const r=i.get(Pr),o=i.get(GA);(function aG(t,i){t.events.pipe(hi(e=>e instanceof Fs||e instanceof Yp||e instanceof jx||e instanceof Kp),Ye(e=>e instanceof Fs||e instanceof Kp?Kr.COMPLETE:e instanceof Yp&&(0===e.code||1===e.code)?Kr.REDIRECTING:Kr.FAILED),hi(e=>e!==Kr.REDIRECTING),ui(1)).subscribe(()=>{i()})})(r,()=>{n(!0)}),i.get(sg).afterPreactivation=()=>(n(!0),o.closed?ze(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const YA=new ae(Ch?"Router Initializer":"");function KA(t,i,e,n,r,o,a){try{var s=t[o](a),c=s.value}catch(l){return void e(l)}s.done?i(c):Promise.resolve(c).then(n,r)}function Oi(t){return function(){var i=this,e=arguments;return new Promise(function(n,r){var o=t.apply(i,e);function a(c){KA(o,n,r,a,s,"next",c)}function s(c){KA(o,n,r,a,s,"throw",c)}a(void 0)})}}class uy{}function hy(t){return t&&"function"==typeof t.connect&&!(t instanceof Px)}class ZA{applyChanges(i,e,n,r,o){i.forEachOperation((a,s,c)=>{let l,d;if(null==a.previousIndex){const u=n(a,s,c);l=e.createEmbeddedView(u.templateRef,u.context,u.index),d=1}else null==c?(e.remove(s),d=3):(l=e.get(s),e.move(l,c),d=2);o&&o({context:l?.context,operation:d,record:a})})}detach(){}}class fy{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(i=!1,e,n=!0,r){this._multiple=i,this._emitChanges=n,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Ce,e&&e.length&&(i?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...i){this._verifyValueAssignment(i),i.forEach(n=>this._markSelected(n));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...i){this._verifyValueAssignment(i),i.forEach(n=>this._unmarkSelected(n));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...i){this._verifyValueAssignment(i);const e=this.selected,n=new Set(i);i.forEach(o=>this._markSelected(o)),e.filter(o=>!n.has(o)).forEach(o=>this._unmarkSelected(o));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(i){return this.isSelected(i)?this.deselect(i):this.select(i)}clear(i=!0){this._unmarkAll();const e=this._hasQueuedChanges();return i&&this._emitChangeEvent(),e}isSelected(i){return this._selection.has(this._getConcreteValue(i))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(i){this._multiple&&this.selected&&this._selected.sort(i)}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(i){i=this._getConcreteValue(i),this.isSelected(i)||(this._multiple||this._unmarkAll(),this.isSelected(i)||this._selection.add(i),this._emitChanges&&this._selectedToEmit.push(i))}_unmarkSelected(i){i=this._getConcreteValue(i),this.isSelected(i)&&(this._selection.delete(i),this._emitChanges&&this._deselectedToEmit.push(i))}_unmarkAll(){this.isEmpty()||this._selection.forEach(i=>this._unmarkSelected(i))}_verifyValueAssignment(i){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(i){if(this.compareWith){for(let e of this._selection)if(this.compareWith(i,e))return e;return i}return i}}let my=(()=>{class t{constructor(){this._listeners=[]}notify(e,n){for(let r of this._listeners)r(e,n)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(n=>e!==n)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const kh=new ae("_ViewRepeater");function Wo(t,i){const e="object"==typeof i;return new Promise((n,r)=>{let a,o=!1;t.subscribe({next:s=>{a=s,o=!0},error:r,complete:()=>{o?n(a):e?n(i.defaultValue):r(new sh)}})})}const py={now:()=>(py.delegate||Date).now(),delegate:void 0};class eI extends Ce{constructor(i=1/0,e=1/0,n=py){super(),this._bufferSize=i,this._windowTime=e,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,i),this._windowTime=Math.max(1,e)}next(i){const{isStopped:e,_buffer:n,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:a}=this;e||(n.push(i),!r&&n.push(o.now()+a)),this._trimBuffer(),super.next(i)}_subscribe(i){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(i),{_infiniteTimeWindow:n,_buffer:r}=this,o=r.slice();for(let a=0;a{this.headers=new Map,i.split("\n").forEach(e=>{const n=e.indexOf(":");if(n>0){const r=e.slice(0,n),o=r.toLowerCase(),a=e.slice(n+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(a):this.headers.set(o,[a])}})}:()=>{this.headers=new Map,Object.entries(i).forEach(([e,n])=>{let r;if(r="string"==typeof n?[n]:"number"==typeof n?[n.toString()]:n.map(o=>o.toString()),r.length>0){const o=e.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(e,o)}})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();const e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof pa?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){const e=new pa;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof pa?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){const e=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(i.name,e);const r=("a"===i.op?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":const o=i.value;if(o){let a=this.headers.get(e);if(!a)return;a=a.filter(s=>-1===o.indexOf(s)),0===a.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}}class xG{encodeKey(i){return tI(i)}encodeValue(i){return tI(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}}const wG=/%(\d[a-f0-9])/gi,CG={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function tI(t){return encodeURIComponent(t).replace(wG,(i,e)=>CG[e]??i)}function dg(t){return`${t}`}class Os{constructor(i={}){if(this.updates=null,this.cloneFrom=null,this.encoder=i.encoder||new xG,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function yG(t,i){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[a,s]=-1==o?[i.decodeKey(r),""]:[i.decodeKey(r.slice(0,o)),i.decodeValue(r.slice(o+1))],c=e.get(a)||[];c.push(s),e.set(a,c)}),e}(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{const n=i.fromObject[e],r=Array.isArray(n)?n.map(dg):[dg(n)];this.map.set(e,r)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();const e=this.map.get(i);return e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,e){return this.clone({param:i,value:e,op:"a"})}appendAll(i){const e=[];return Object.keys(i).forEach(n=>{const r=i[n];Array.isArray(r)?r.forEach(o=>{e.push({param:n,value:o,op:"a"})}):e.push({param:n,value:r,op:"a"})}),this.clone(e)}set(i,e){return this.clone({param:i,value:e,op:"s"})}delete(i,e){return this.clone({param:i,value:e,op:"d"})}toString(){return this.init(),this.keys().map(i=>{const e=this.encoder.encodeKey(i);return this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>""!==i).join("&")}clone(i){const e=new Os({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":const e=("a"===i.op?this.map.get(i.param):void 0)||[];e.push(dg(i.value)),this.map.set(i.param,e);break;case"d":if(void 0===i.value){this.map.delete(i.param);break}{let n=this.map.get(i.param)||[];const r=n.indexOf(dg(i.value));-1!==r&&n.splice(r,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}}}),this.cloneFrom=this.updates=null)}}class kG{constructor(){this.map=new Map}set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}}function iI(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function nI(t){return typeof Blob<"u"&&t instanceof Blob}function rI(t){return typeof FormData<"u"&&t instanceof FormData}class Dh{constructor(i,e,n,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=i.toUpperCase(),function DG(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!==n?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new pa),this.context||(this.context=new kG),this.params){const a=this.params.toString();if(0===a.length)this.urlWithParams=e;else{const s=e.indexOf("?");this.urlWithParams=e+(-1===s?"?":su.set(h,i.setHeaders[h]),c)),i.setParams&&(l=Object.keys(i.setParams).reduce((u,h)=>u.set(h,i.setParams[h]),l)),new Dh(e,n,o,{params:l,headers:c,context:d,reportProgress:s,responseType:r,withCredentials:a})}}var pn=(()=>((pn=pn||{})[pn.Sent=0]="Sent",pn[pn.UploadProgress=1]="UploadProgress",pn[pn.ResponseHeader=2]="ResponseHeader",pn[pn.DownloadProgress=3]="DownloadProgress",pn[pn.Response=4]="Response",pn[pn.User=5]="User",pn))();class _y{constructor(i,e=200,n="OK"){this.headers=i.headers||new pa,this.status=void 0!==i.status?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}}class by extends _y{constructor(i={}){super(i),this.type=pn.ResponseHeader}clone(i={}){return new by({headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class ug extends _y{constructor(i={}){super(i),this.type=pn.Response,this.body=void 0!==i.body?i.body:null}clone(i={}){return new ug({body:void 0!==i.body?i.body:this.body,headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class oI extends _y{constructor(i){super(i,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${i.url||"(unknown url)"}`:`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}}function vy(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Ps=(()=>{class t{constructor(e){this.handler=e}request(e,n,r={}){let o;if(e instanceof Dh)o=e;else{let c,l;c=r.headers instanceof pa?r.headers:new pa(r.headers),r.params&&(l=r.params instanceof Os?r.params:new Os({fromObject:r.params})),o=new Dh(e,n,void 0!==r.body?r.body:null,{headers:c,context:r.context,params:l,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const a=ze(o).pipe(Ms(c=>this.handler.handle(c)));if(e instanceof Dh||"events"===r.observe)return a;const s=a.pipe(hi(c=>c instanceof ug));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return s.pipe(Ye(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return s.pipe(Ye(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return s.pipe(Ye(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return s.pipe(Ye(c=>c.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:(new Os).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,r={}){return this.request("PATCH",e,vy(r,n))}post(e,n,r={}){return this.request("POST",e,vy(r,n))}put(e,n,r={}){return this.request("PUT",e,vy(r,n))}}return t.\u0275fac=function(e){return new(e||t)(G(lg))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();function aI(t,i){return i(t)}function EG(t,i){return(e,n)=>i.intercept(e,{handle:r=>t(r,n)})}const MG=new ae("HTTP_INTERCEPTORS"),Sh=new ae("HTTP_INTERCEPTOR_FNS");function AG(){let t=null;return(i,e)=>(null===t&&(t=(ht(MG,{optional:!0})??[]).reduceRight(EG,aI)),t(i,e))}let sI=(()=>{class t extends lg{constructor(e,n){super(),this.backend=e,this.injector=n,this.chain=null}handle(e){if(null===this.chain){const n=Array.from(new Set(this.injector.get(Sh)));this.chain=n.reduceRight((r,o)=>function TG(t,i,e){return(n,r)=>e.runInContext(()=>i(n,o=>t(o,r)))}(r,o,this.injector),aI)}return this.chain(e,n=>this.backend.handle(n))}}return t.\u0275fac=function(e){return new(e||t)(G(gy),G(oa))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();const OG=/^\)\]\}',?\n/;let lI=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new ni(n=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((f,m)=>r.setRequestHeader(f,m.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const f=e.detectContentTypeHeader();null!==f&&r.setRequestHeader("Content-Type",f)}if(e.responseType){const f=e.responseType.toLowerCase();r.responseType="json"!==f?f:"text"}const o=e.serializeBody();let a=null;const s=()=>{if(null!==a)return a;const f=r.statusText||"OK",m=new pa(r.getAllResponseHeaders()),g=function PG(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||e.url;return a=new by({headers:m,status:r.status,statusText:f,url:g}),a},c=()=>{let{headers:f,status:m,statusText:g,url:p}=s(),_=null;204!==m&&(_=typeof r.response>"u"?r.responseText:r.response),0===m&&(m=_?200:0);let w=m>=200&&m<300;if("json"===e.responseType&&"string"==typeof _){const x=_;_=_.replace(OG,"");try{_=""!==_?JSON.parse(_):null}catch(E){_=x,w&&(w=!1,_={error:E,text:_})}}w?(n.next(new ug({body:_,headers:f,status:m,statusText:g,url:p||void 0})),n.complete()):n.error(new oI({error:_,headers:f,status:m,statusText:g,url:p||void 0}))},l=f=>{const{url:m}=s(),g=new oI({error:f,status:r.status||0,statusText:r.statusText||"Unknown Error",url:m||void 0});n.error(g)};let d=!1;const u=f=>{d||(n.next(s()),d=!0);let m={type:pn.DownloadProgress,loaded:f.loaded};f.lengthComputable&&(m.total=f.total),"text"===e.responseType&&r.responseText&&(m.partialText=r.responseText),n.next(m)},h=f=>{let m={type:pn.UploadProgress,loaded:f.loaded};f.lengthComputable&&(m.total=f.total),n.next(m)};return r.addEventListener("load",c),r.addEventListener("error",l),r.addEventListener("timeout",l),r.addEventListener("abort",l),e.reportProgress&&(r.addEventListener("progress",u),null!==o&&r.upload&&r.upload.addEventListener("progress",h)),r.send(o),n.next({type:pn.Sent}),()=>{r.removeEventListener("error",l),r.removeEventListener("abort",l),r.removeEventListener("load",c),r.removeEventListener("timeout",l),e.reportProgress&&(r.removeEventListener("progress",u),null!==o&&r.upload&&r.upload.removeEventListener("progress",h)),r.readyState!==r.DONE&&r.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(G(uM))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();const xy=new ae("XSRF_ENABLED"),dI=new ae("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),uI=new ae("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class hI{}let BG=(()=>{class t{constructor(e,n,r){this.doc=e,this.platform=n,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=K2(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(G(it),G(xp),G(dI))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();function VG(t,i){const e=t.url.toLowerCase();if(!ht(xy)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return i(t);const n=ht(hI).getToken(),r=ht(uI);return null!=n&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),i(t)}var rn=(()=>((rn=rn||{})[rn.Interceptors=0]="Interceptors",rn[rn.LegacyInterceptors=1]="LegacyInterceptors",rn[rn.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",rn[rn.NoXsrfProtection=3]="NoXsrfProtection",rn[rn.JsonpSupport=4]="JsonpSupport",rn[rn.RequestsMadeViaParent=5]="RequestsMadeViaParent",rn))();function kd(t,i){return{\u0275kind:t,\u0275providers:i}}function HG(...t){const i=[Ps,lI,sI,{provide:lg,useExisting:sI},{provide:gy,useExisting:lI},{provide:Sh,useValue:VG,multi:!0},{provide:xy,useValue:!0},{provide:hI,useClass:BG}];for(const e of t)i.push(...e.\u0275providers);return function G5(t){return{\u0275providers:t}}(i)}const fI=new ae("LEGACY_INTERCEPTOR_FN");let yy,zG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[HG(kd(rn.LegacyInterceptors,[{provide:fI,useFactory:AG},{provide:Sh,useExisting:fI,multi:!0}]))]}),t})();try{yy=typeof Intl<"u"&&Intl.v8BreakIterator}catch{yy=!1}let Dd,xi=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function Bz(t){return t===lM}(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&&!yy)&&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}}return t.\u0275fac=function(e){return new(e||t)(G(xp))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const mI=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function pI(){if(Dd)return Dd;if("object"!=typeof document||!document)return Dd=new Set(mI),Dd;let t=document.createElement("input");return Dd=new Set(mI.filter(i=>(t.setAttribute("type",i),t.type===i))),Dd}let Eh,hg,Pc,wy;function Go(t){return function $G(){if(null==Eh&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Eh=!0}))}finally{Eh=Eh||!1}return Eh}()?t:!!t.capture}function gI(){if(null==Pc){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Pc=!1,Pc;if("scrollBehavior"in document.documentElement.style)Pc=!0;else{const t=Element.prototype.scrollTo;Pc=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Pc}function Th(){if("object"!=typeof document||!document)return 0;if(null==hg){const t=document.createElement("div"),i=t.style;t.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";const e=document.createElement("div"),n=e.style;n.width="2px",n.height="1px",t.appendChild(e),document.body.appendChild(t),hg=0,0===t.scrollLeft&&(t.scrollLeft=1,hg=0===t.scrollLeft?1:2),t.remove()}return hg}function Cy(t){if(function jG(){if(null==wy){const t=typeof document<"u"?document.head:null;wy=!(!t||!t.createShadowRoot&&!t.attachShadow)}return wy}()){const i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function fg(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const i=t.shadowRoot.activeElement;if(i===t)break;t=i}return t}function Zr(t){return t.composedPath?t.composedPath()[0]:t.target}function ky(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function wr(t,...i){return i.length?i.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}class nq extends yt{constructor(i,e){super()}schedule(i,e=0){return this}}const gg={setInterval(t,i,...e){const{delegate:n}=gg;return n?.setInterval?n.setInterval(t,i,...e):setInterval(t,i,...e)},clearInterval(t){const{delegate:i}=gg;return(i?.clearInterval||clearInterval)(t)},delegate:void 0};class Sy extends nq{constructor(i,e){super(i,e),this.scheduler=i,this.work=e,this.pending=!1}schedule(i,e=0){var n;if(this.closed)return this;this.state=i;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!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(o,this.id,e),this}requestAsyncId(i,e,n=0){return gg.setInterval(i.flush.bind(i,this),n)}recycleAsyncId(i,e,n=0){if(null!=n&&this.delay===n&&!1===this.pending)return e;null!=e&&gg.clearInterval(e)}execute(i,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(i,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(i,e){let r,n=!1;try{this.work(i)}catch(o){n=!0,r=o||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:i,scheduler:e}=this,{actions:n}=e;this.work=this.state=this.scheduler=null,this.pending=!1,Zo(n,this),null!=i&&(this.id=this.recycleAsyncId(e,i,null)),this.delay=null,super.unsubscribe()}}}class Ah{constructor(i,e=Ah.now){this.schedulerActionCtor=i,this.now=e}schedule(i,e=0,n){return new this.schedulerActionCtor(this,i).schedule(n,e)}}Ah.now=py.now;class Ey extends Ah{constructor(i,e=Ah.now){super(i,e),this.actions=[],this._active=!1}flush(i){const{actions:e}=this;if(this._active)return void e.push(i);let n;this._active=!0;do{if(n=i.execute(i.state,i.delay))break}while(i=e.shift());if(this._active=!1,n){for(;i=e.shift();)i.unsubscribe();throw n}}}const Ih=new Ey(Sy),rq=Ih;function Ed(t,i=Ih){return Gi((e,n)=>{let r=null,o=null,a=null;const s=()=>{if(r){r.unsubscribe(),r=null;const l=o;o=null,n.next(l)}};function c(){const l=a+t,d=i.now();if(d{o=l,a=i.now(),r||(r=i.schedule(c,t),n.add(r))},()=>{s(),n.complete()},void 0,()=>{o=r=null}))})}function Ty(t){return hi((i,e)=>t<=e)}function Nc(t,i=ys){return t=t??oq,Gi((e,n)=>{let r,o=!0;e.subscribe(Bi(n,a=>{const s=i(a);(o||!t(r,s))&&(o=!1,r=s,n.next(a))}))})}function oq(t,i){return t===i}function Tt(t){return Gi((i,e)=>{Yn(t).subscribe(Bi(e,()=>e.complete(),pr)),!e.closed&&i.subscribe(e)})}function $e(t){return null!=t&&"false"!=`${t}`}function An(t,i=0){return bI(t)?Number(t):i}function bI(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Fh(t){return Array.isArray(t)?t:[t]}function gn(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Ki(t){return t instanceof Ae?t.nativeElement:t}let vI=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),sq=(()=>{class t{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,n)=>this._cleanupObserver(n))}observe(e){const n=Ki(e);return new ni(r=>{const a=this._observeElement(n).subscribe(r);return()=>{a.unsubscribe(),this._unobserveElement(n)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const n=new Ce,r=this._mutationObserverFactory.create(o=>n.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:n,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:n,stream:r}=this._observedElements.get(e);n&&n.disconnect(),r.complete(),this._observedElements.delete(e)}}}return t.\u0275fac=function(e){return new(e||t)(G(vI))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),My=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=$e(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=An(e),this._subscribe()}constructor(e,n,r){this._contentObserver=e,this._elementRef=n,this._ngZone=r,this.event=new ke,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(Ed(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(b(sq),b(Ae),b(Ue))},t.\u0275dir=Q({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),_g=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[vI]}),t})();const xI=new Set;let Td,cq=(()=>{class t{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):dq}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function lq(t){if(!xI.has(t))try{Td||(Td=document.createElement("style"),Td.setAttribute("type","text/css"),document.head.appendChild(Td)),Td.sheet&&(Td.sheet.insertRule(`@media ${t} {body{ }}`,0),xI.add(t))}catch(i){console.error(i)}}(e),this._matchMedia(e)}}return t.\u0275fac=function(e){return new(e||t)(G(xi))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function dq(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let Ay=(()=>{class t{constructor(e,n){this._mediaMatcher=e,this._zone=n,this._queries=new Map,this._destroySubject=new Ce}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return yI(Fh(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let o=Ic(yI(Fh(e)).map(a=>this._registerQuery(a).observable));return o=ch(o.pipe(ui(1)),o.pipe(Ty(1),Ed(0))),o.pipe(Ye(a=>{const s={matches:!1,breakpoints:{}};return a.forEach(({matches:c,query:l})=>{s.matches=s.matches||c,s.breakpoints[l]=c}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const n=this._mediaMatcher.matchMedia(e),o={observable:new ni(a=>{const s=c=>this._zone.run(()=>a.next(c));return n.addListener(s),()=>{n.removeListener(s)}}).pipe(Vn(n),Ye(({matches:a})=>({query:e,matches:a})),Tt(this._destroySubject)),mql:n};return this._queries.set(e,o),o}}return t.\u0275fac=function(e){return new(e||t)(G(cq),G(Ue))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function yI(t){return t.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}function bg(t,i){return(t.getAttribute(i)||"").match(/\S+/g)||[]}const CI="cdk-describedby-message",vg="cdk-describedby-host";let Iy=0,kI=(()=>{class t{constructor(e,n){this._platform=n,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Iy++,this._document=e,this._id=ht(dd)+"-"+Iy++}describe(e,n,r){if(!this._canBeDescribed(e,n))return;const o=Fy(n,r);"string"!=typeof n?(DI(n,this._id),this._messageRegistry.set(o,{messageElement:n,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(n,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,n,r){if(!n||!this._isElementNode(e))return;const o=Fy(n,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),"string"==typeof n){const a=this._messageRegistry.get(o);a&&0===a.referenceCount&&this._deleteMessageElement(o)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${vg}="${this._id}"]`);for(let n=0;n0!=r.indexOf(CI));e.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(e,n){const r=this._messageRegistry.get(n);(function hq(t,i,e){const n=bg(t,i);n.some(r=>r.trim()==e.trim())||(n.push(e.trim()),t.setAttribute(i,n.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(vg,this._id),r.referenceCount++}_removeMessageReference(e,n){const r=this._messageRegistry.get(n);r.referenceCount--,function fq(t,i,e){const r=bg(t,i).filter(o=>o!=e.trim());r.length?t.setAttribute(i,r.join(" ")):t.removeAttribute(i)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(vg)}_isElementDescribedByMessage(e,n){const r=bg(e,"aria-describedby"),o=this._messageRegistry.get(n),a=o&&o.messageElement.id;return!!a&&-1!=r.indexOf(a)}_canBeDescribed(e,n){if(!this._isElementNode(e))return!1;if(n&&"object"==typeof n)return!0;const r=null==n?"":`${n}`.trim(),o=e.getAttribute("aria-label");return!(!r||o&&o.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(G(it),G(xi))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Fy(t,i){return"string"==typeof t?`${i||""}/${t}`:t}function DI(t,i){t.id||(t.id=`${CI}-${i}-${Iy++}`)}class SI{constructor(i){this._items=i,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Ce,this._typeaheadSubscription=yt.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 Ce,this.change=new Ce,i instanceof Ec&&(this._itemChangesSubscription=i.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}}))}skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=!0){return this._wrap=i,this}withVerticalOrientation(i=!0){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(zi(e=>this._pressedLetters.push(e)),Ed(i),hi(()=>this._pressedLetters.length>0),Ye(()=>this._pressedLetters.join(""))).subscribe(e=>{const n=this._getItemsArray();for(let r=1;r!i[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,a=this._getItemsArray().length;this._setActiveItemByIndex(o=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],i.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(i){const e=this._getItemsArray(),n="number"==typeof i?i:e.indexOf(i);this._activeItem=e[n]??null,this._activeItemIndex=n}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(i){this._wrap?this._setActiveInWrapMode(i):this._setActiveInDefaultMode(i)}_setActiveInWrapMode(i){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const r=(this._activeItemIndex+i*n+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(i){this._setActiveItemByIndex(this._activeItemIndex+i,i)}_setActiveItemByIndex(i,e){const n=this._getItemsArray();if(n[i]){for(;this._skipPredicateFn(n[i]);)if(!n[i+=e])return;this.setActiveItem(i)}}_getItemsArray(){return this._items instanceof Ec?this._items.toArray():this._items}}class EI extends SI{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}}class Ry extends SI{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}}let xg=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function pq(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 n=function mq(t){try{return t.frameElement}catch{return null}}(function Cq(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(e));if(n&&(-1===MI(n)||!this.isVisible(n)))return!1;let r=e.nodeName.toLowerCase(),o=MI(e);return e.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function yq(t){let i=t.nodeName.toLowerCase(),e="input"===i&&t.type;return"text"===e||"password"===e||"select"===i||"textarea"===i}(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,n){return function wq(t){return!function _q(t){return function vq(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function gq(t){let i=t.nodeName.toLowerCase();return"input"===i||"select"===i||"button"===i||"textarea"===i}(t)||function bq(t){return function xq(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||TI(t))}(e)&&!this.isDisabled(e)&&(n?.ignoreVisibility||this.isVisible(e))}}return t.\u0275fac=function(e){return new(e||t)(G(xi))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function TI(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let i=t.getAttribute("tabindex");return!(!i||isNaN(parseInt(i,10)))}function MI(t){if(!TI(t))return null;const i=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}class kq{get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}constructor(i,e,n,r,o=!1){this._element=i,this._checker=e,this._ngZone=n,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}destroy(){const i=this._startAnchor,e=this._endAnchor;i&&(i.removeEventListener("focus",this.startAnchorListener),i.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(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(i)))})}focusFirstTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(i)))})}focusLastTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(i)))})}_getRegionBoundary(i){const e=this._element.querySelectorAll(`[cdk-focus-region-${i}], [cdkFocusRegion${i}], [cdk-focus-${i}]`);return"start"==i?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(i){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const n=this._getFirstTabbableElement(e);return n?.focus(i),!!n}return e.focus(i),!0}return this.focusFirstTabbableElement(i)}focusFirstTabbableElement(i){const e=this._getRegionBoundary("start");return e&&e.focus(i),!!e}focusLastTabbableElement(i){const e=this._getRegionBoundary("end");return e&&e.focus(i),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;const e=i.children;for(let n=0;n=0;n--){const r=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(r)return r}return null}_createAnchor(){const i=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,i),i.classList.add("cdk-visually-hidden"),i.classList.add("cdk-focus-trap-anchor"),i.setAttribute("aria-hidden","true"),i}_toggleAnchorTabIndex(i,e){i?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(i){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_executeOnStable(i){this._ngZone.isStable?i():this._ngZone.onStable.pipe(ui(1)).subscribe(i)}}let Oy=(()=>{class t{constructor(e,n,r){this._checker=e,this._ngZone=n,this._document=r}create(e,n=!1){return new kq(e,this._checker,this._ngZone,this._document,n)}}return t.\u0275fac=function(e){return new(e||t)(G(xg),G(Ue),G(it))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function yg(t){return 0===t.buttons||0===t.offsetX&&0===t.offsetY}function wg(t){const i=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!i||-1!==i.identifier||null!=i.radiusX&&1!==i.radiusX||null!=i.radiusY&&1!==i.radiusY)}const Dq=new ae("cdk-input-modality-detector-options"),Sq={ignoreKeys:[18,17,224,91,16]},Md=Go({passive:!0,capture:!0});let Eq=(()=>{class t{get mostRecentModality(){return this._modality.value}constructor(e,n,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new Bn(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(s=>s===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Zr(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(yg(a)?"keyboard":"mouse"),this._mostRecentTarget=Zr(a))},this._onTouchstart=a=>{wg(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Zr(a))},this._options={...Sq,...o},this.modalityDetected=this._modality.pipe(Ty(1)),this.modalityChanged=this.modalityDetected.pipe(Nc()),e.isBrowser&&n.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Md),r.addEventListener("mousedown",this._onMousedown,Md),r.addEventListener("touchstart",this._onTouchstart,Md)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Md),document.removeEventListener("mousedown",this._onMousedown,Md),document.removeEventListener("touchstart",this._onTouchstart,Md))}}return t.\u0275fac=function(e){return new(e||t)(G(xi),G(Ue),G(it),G(Dq,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Tq=new ae("liveAnnouncerElement",{providedIn:"root",factory:function Mq(){return null}}),Aq=new ae("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Iq=0,Py=(()=>{class t{constructor(e,n,r,o){this._ngZone=n,this._defaultOptions=o,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...n){const r=this._defaultOptions;let o,a;return 1===n.length&&"number"==typeof n[0]?a=n[0]:[o,a]=n,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),null==a&&r&&(a=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(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof a&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",n=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,n,r,o,a){this._ngZone=e,this._platform=n,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 Ce,this._rootNodeFocusAndBlurListener=s=>{for(let l=Zr(s);l;l=l.parentElement)"focus"===s.type?this._onFocus(s,l):this._onBlur(s,l)},this._document=o,this._detectionMode=a?.detectionMode||0}monitor(e,n=!1){const r=Ki(e);if(!this._platform.isBrowser||1!==r.nodeType)return ze(null);const o=Cy(r)||this._getDocument(),a=this._elementInfo.get(r);if(a)return n&&(a.checkChildren=!0),a.subject;const s={checkChildren:n,subject:new Ce,rootNode:o};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){const n=Ki(e),r=this._elementInfo.get(n);r&&(r.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(r))}focusVia(e,n,r){const o=Ki(e);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([s,c])=>this._originChanged(s,n,c)):(this._setOrigin(n),"function"==typeof o.focus&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,n)=>this.stopMonitoring(n))}_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,n){e.classList.toggle("cdk-focused",!!n),e.classList.toggle("cdk-touch-focused","touch"===n),e.classList.toggle("cdk-keyboard-focused","keyboard"===n),e.classList.toggle("cdk-mouse-focused","mouse"===n),e.classList.toggle("cdk-program-focused","program"===n)}_setOrigin(e,n=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&n,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,n){const r=this._elementInfo.get(n),o=Zr(e);!r||!r.checkChildren&&n!==o||this._originChanged(n,this._getFocusOrigin(o),r)}_onBlur(e,n){const r=this._elementInfo.get(n);!r||r.checkChildren&&e.relatedTarget instanceof Node&&n.contains(e.relatedTarget)||(this._setClasses(n),this._emitOrigin(r,null))}_emitOrigin(e,n){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(n))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const n=e.rootNode,r=this._rootNodeFocusListenerCount.get(n)||0;r||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,Cg),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,Cg)}),this._rootNodeFocusListenerCount.set(n,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Tt(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){const n=e.rootNode;if(this._rootNodeFocusListenerCount.has(n)){const r=this._rootNodeFocusListenerCount.get(n);r>1?this._rootNodeFocusListenerCount.set(n,r-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Cg),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Cg),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,n,r){this._setClasses(e,n),this._emitOrigin(r,n),this._lastFocusOrigin=n}_getClosestElementsInfo(e){const n=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&n.push([o,r])}),n}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:n,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!n||n===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const o=e.labels;if(o)for(let a=0;a{class t{constructor(e,n){this._elementRef=e,this._focusMonitor=n,this._focusOrigin=null,this.cdkFocusChange=new ke}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(n=>{this._focusOrigin=n,this.cdkFocusChange.emit(n)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(vo))},t.\u0275dir=Q({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),t})();const II="cdk-high-contrast-black-on-white",FI="cdk-high-contrast-white-on-black",Ly="cdk-high-contrast-active";let RI=(()=>{class t{constructor(e,n){this._platform=e,this._document=n,this._breakpointSubscription=ht(Ay).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 n=this._document.defaultView||window,r=n&&n.getComputedStyle?n.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(Ly,II,FI),this._hasCheckedHighContrastMode=!0;const n=this.getHighContrastMode();1===n?e.add(Ly,II):2===n&&e.add(Ly,FI)}}}return t.\u0275fac=function(e){return new(e||t)(G(xi),G(it))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ny=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(G(RI))},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[_g]}),t})();const Oq=new ae("cdk-dir-doc",{providedIn:"root",factory:function Pq(){return ht(it)}}),Lq=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let _n=(()=>{class t{constructor(e){this.value="ltr",this.change=new ke,e&&(this.value=function Nq(t){const i=t?.toLowerCase()||"";return"auto"===i&&typeof navigator<"u"&&navigator?.language?Lq.test(navigator.language)?"rtl":"ltr":"rtl"===i?"rtl":"ltr"}((e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(G(Oq,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Rh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({}),t})();const Bq=["text"];function Vq(t,i){if(1&t&&Ee(0,"mat-pseudo-checkbox",6),2&t){const e=q();A("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function Hq(t,i){1&t&&Ee(0,"mat-pseudo-checkbox",7),2&t&&A("disabled",q().disabled)}function Uq(t,i){if(1&t&&(v(0,"span",8),M(1),y()),2&t){const e=q();k(1),It("(",e.group.label,")")}}const zq=[[["mat-icon"]],"*"],$q=["mat-icon","*"];let jq=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),Wq=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const qq=new ae("mat-sanity-checks",{providedIn:"root",factory:function Gq(){return!0}});let xt=(()=>{class t{constructor(e,n,r){this._sanityChecks=n,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!ky()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return t.\u0275fac=function(e){return new(e||t)(G(RI),G(qq,8),G(it))},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[Rh,Rh]}),t})();function ts(t){return class extends t{get disabled(){return this._disabled}set disabled(i){this._disabled=$e(i)}constructor(...i){super(...i),this._disabled=!1}}}function Ns(t,i){return class extends t{get color(){return this._color}set color(e){const n=e||this.defaultColor;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),n&&this._elementRef.nativeElement.classList.add(`mat-${n}`),this._color=n)}constructor(...e){super(...e),this.defaultColor=i,this.color=i}}}function Bs(t){return class extends t{get disableRipple(){return this._disableRipple}set disableRipple(i){this._disableRipple=$e(i)}constructor(...i){super(...i),this._disableRipple=!1}}}function Oh(t,i=0){return class extends t{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?An(e):this.defaultTabIndex}constructor(...e){super(...e),this._tabIndex=i,this.defaultTabIndex=i}}}function LI(t){return class extends t{updateErrorState(){const i=this.errorState,o=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);o!==i&&(this.errorState=o,this.stateChanges.next())}constructor(...i){super(...i),this.errorState=!1}}}function Xq(t){return class extends t{constructor(...i){super(...i),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new ni(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(i){i.next(),i.complete()}}}let NI=(()=>{class t{isErrorState(e,n){return!!(e&&e.invalid&&(e.touched||n&&n.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class Yq{constructor(i,e,n,r=!1){this._renderer=i,this.element=e,this.config=n,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const BI=Go({passive:!0,capture:!0});class Kq{constructor(){this._events=new Map,this._delegateEventHandler=i=>{const e=Zr(i);e&&this._events.get(i.type)?.forEach((n,r)=>{(r===e||r.contains(e))&&n.forEach(o=>o.handleEvent(i))})}}addHandler(i,e,n,r){const o=this._events.get(e);if(o){const a=o.get(n);a?a.add(r):o.set(n,new Set([r]))}else this._events.set(e,new Map([[n,new Set([r])]])),i.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,BI)})}removeHandler(i,e,n){const r=this._events.get(i);if(!r)return;const o=r.get(e);o&&(o.delete(n),0===o.size&&r.delete(e),0===r.size&&(this._events.delete(i),document.removeEventListener(i,this._delegateEventHandler,BI)))}}const VI={enterDuration:225,exitDuration:150},HI=Go({passive:!0,capture:!0}),UI=["mousedown","touchstart"],zI=["mouseup","mouseleave","touchend","touchcancel"];class Ad{constructor(i,e,n,r){this._target=i,this._ngZone=e,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Ki(n))}fadeInRipple(i,e,n={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...VI,...n.animation};n.centered&&(i=r.left+r.width/2,e=r.top+r.height/2);const a=n.radius||function Jq(t,i,e){const n=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),r=Math.max(Math.abs(i-e.top),Math.abs(i-e.bottom));return Math.sqrt(n*n+r*r)}(i,e,r),s=i-r.left,c=e-r.top,l=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=s-a+"px",d.style.top=c-a+"px",d.style.height=2*a+"px",d.style.width=2*a+"px",null!=n.color&&(d.style.backgroundColor=n.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 Yq(this,d,n,m);d.style.transform="scale3d(1, 1, 1)",g.state=0,n.persistent||(this._mostRecentTransientRipple=g);let p=null;return!m&&(l||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const _=()=>this._finishRippleTransition(g),w=()=>this._destroyRipple(g);d.addEventListener("transitionend",_),d.addEventListener("transitioncancel",w),p={onTransitionEnd:_,onTransitionCancel:w}}),this._activeRipples.set(g,p),(m||!l)&&this._finishRippleTransition(g),g}fadeOutRipple(i){if(2===i.state||3===i.state)return;const e=i.element,n={...VI,...i.config.animation};e.style.transitionDuration=`${n.exitDuration}ms`,e.style.opacity="0",i.state=2,(i._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(i)}fadeOutAll(){this._getActiveRipples().forEach(i=>i.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(i=>{i.config.persistent||i.fadeOut()})}setupTriggerEvents(i){const e=Ki(i);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,UI.forEach(n=>{Ad._eventManager.addHandler(this._ngZone,n,e,this)}))}handleEvent(i){"mousedown"===i.type?this._onMousedown(i):"touchstart"===i.type?this._onTouchStart(i):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{zI.forEach(e=>{this._triggerElement.addEventListener(e,this,HI)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(i){0===i.state?this._startFadeOutTransition(i):2===i.state&&this._destroyRipple(i)}_startFadeOutTransition(i){const e=i===this._mostRecentTransientRipple,{persistent:n}=i.config;i.state=1,!n&&(!e||!this._isPointerDown)&&i.fadeOut()}_destroyRipple(i){const e=this._activeRipples.get(i)??null;this._activeRipples.delete(i),this._activeRipples.size||(this._containerRect=null),i===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),i.state=3,null!==e&&(i.element.removeEventListener("transitionend",e.onTransitionEnd),i.element.removeEventListener("transitioncancel",e.onTransitionCancel)),i.element.remove()}_onMousedown(i){const e=yg(i),n=this._lastTouchStartEvent&&Date.now(){!i.config.persistent&&(1===i.state||i.config.terminateOnPointerUp&&0===i.state)&&i.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const i=this._triggerElement;i&&(UI.forEach(e=>Ad._eventManager.removeHandler(e,i,this)),this._pointerUpEventsRegistered&&zI.forEach(e=>i.removeEventListener(e,this,HI)))}}Ad._eventManager=new Kq;const By=new ae("mat-ripple-global-options");let xo=(()=>{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,n,r,o,a){this._elementRef=e,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new Ad(this,n,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,n=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,n,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Ue),b(xi),b(By,8),b(Ri,8))},t.\u0275dir=Q({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,n){2&e&&Xe("mat-ripple-unbounded",n.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),t})(),Vs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt,xt]}),t})(),eX=(()=>{class t{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}}return t.\u0275fac=function(e){return new(e||t)(b(Ri,8))},t.\u0275cmp=je({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(e,n){2&e&&Xe("mat-pseudo-checkbox-indeterminate","indeterminate"===n.state)("mat-pseudo-checkbox-checked","checked"===n.state)("mat-pseudo-checkbox-disabled",n.disabled)("mat-pseudo-checkbox-minimal","minimal"===n.appearance)("mat-pseudo-checkbox-full","full"===n.appearance)("_mat-animation-noopable","NoopAnimations"===n._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(e,n){},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}),t})(),$I=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt]}),t})();const Vy=new ae("MAT_OPTION_PARENT_COMPONENT"),Hy=new ae("MatOptgroup");let tX=0;class jI{constructor(i,e=!1){this.source=i,this.isUserInput=e}}let iX=(()=>{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(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(e,n,r,o){this._element=e,this._changeDetectorRef=n,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+tX++,this.onSelectionChange=new ke,this._stateChanges=new Ce}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,n){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(n)}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)&&!wr(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 jI(this,e))}}return t.\u0275fac=function(e){aa()},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&st(Bq,7),2&e){let r;xe(r=ye())&&(n._text=r.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),Hs=(()=>{class t extends iX{constructor(e,n,r,o){super(e,n,r,o)}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Gt),b(Vy,8),b(Hy,8))},t.\u0275cmp=je({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(e,n){1&e&&X("click",function(){return n._selectViaInteraction()})("keydown",function(o){return n._handleKeydown(o)}),2&e&&(ua("id",n.id),rt("aria-selected",n.selected)("aria-disabled",n.disabled.toString()),Xe("mdc-list-item--selected",n.selected)("mat-mdc-option-multiple",n.multiple)("mat-mdc-option-active",n.active)("mdc-list-item--disabled",n.disabled))},exportAs:["matOption"],features:[pe],ngContentSelectors:$q,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-mdc-option-pseudo-checkbox",3,"state","disabled"],["state","checked","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(e,n){1&e&&(vi(zq),H(0,Vq,1,2,"mat-pseudo-checkbox",0),Je(1),v(2,"span",1,2),Je(4,1),y(),H(5,Hq,1,1,"mat-pseudo-checkbox",3),H(6,Uq,2,1,"span",4),Ee(7,"div",5)),2&e&&(A("ngIf",n.multiple),k(5),A("ngIf",!n.multiple&&n.selected&&!n.hideSingleSelectionIndicator),k(1),A("ngIf",n.group&&n.group._inert),k(1),A("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disabled||n.disableRipple))},dependencies:[xo,hn,eX],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;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);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.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{opacity:.38;cursor:default}.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}),t})();function WI(t,i,e){if(e.length){let n=i.toArray(),r=e.toArray(),o=0;for(let a=0;ae+n?Math.max(0,t-n+i):e}let kg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[Vs,nr,xt,$I]}),t})();const qI=["mat-button",""],XI=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],QI=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],YI=".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}",rX=["mat-icon-button",""],oX=["*"],aX=[{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"]}],sX=Ns(ts(Bs(class{constructor(t){this._elementRef=t}})));let Uy=(()=>{class t extends sX{constructor(e,n,r,o){super(e),this._platform=n,this._ngZone=r,this._animationMode=o,this._focusMonitor=ht(vo),this._isFab=!1;const a=e.nativeElement.classList;for(const s of aX)this._hasHostAttributes(s.selector)&&s.mdcClasses.forEach(c=>{a.add(c)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e="program",n){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,n):this._elementRef.nativeElement.focus(n)}_hasHostAttributes(...e){return e.some(n=>this._elementRef.nativeElement.hasAttribute(n))}_isRippleDisabled(){return this.disableRipple||this.disabled}}return t.\u0275fac=function(e){aa()},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&st(xo,5),2&e){let r;xe(r=ye())&&(n.ripple=r.first)}},features:[pe]}),t})(),lX=(()=>{class t extends Uy{constructor(e,n,r,o){super(e,n,r,o),this._haltDisabledEvents=a=>{this.disabled&&(a.preventDefault(),a.stopImmediatePropagation())}}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}return t.\u0275fac=function(e){aa()},t.\u0275dir=Q({type:t,features:[pe]}),t})(),yo=(()=>{class t extends Uy{constructor(e,n,r,o){super(e,n,r,o)}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(xi),b(Ue),b(Ri,8))},t.\u0275cmp=je({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(e,n){2&e&&(rt("disabled",n.disabled||null),Xe("_mat-animation-noopable","NoopAnimations"===n._animationMode)("mat-unthemed",!n.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[pe],attrs:qI,ngContentSelectors:QI,decls:8,vars:6,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(e,n){1&e&&(vi(XI),Ee(0,"span",0),Je(1),v(2,"span",1),Je(3,1),y(),Je(4,2),Ee(5,"span",2)(6,"span",3)(7,"span",4)),2&e&&(Xe("mdc-button__ripple",!n._isFab)("mdc-fab__ripple",n._isFab),k(6),A("matRippleDisabled",n._isRippleDisabled())("matRippleTrigger",n._elementRef.nativeElement))},dependencies:[xo],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-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}),t})(),dX=(()=>{class t extends lX{constructor(e,n,r,o){super(e,n,r,o)}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(xi),b(Ue),b(Ri,8))},t.\u0275cmp=je({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:9,hostBindings:function(e,n){2&e&&(rt("disabled",n.disabled||null)("tabindex",n.disabled?-1:n.tabIndex)("aria-disabled",n.disabled.toString()),Xe("_mat-animation-noopable","NoopAnimations"===n._animationMode)("mat-unthemed",!n.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[pe],attrs:qI,ngContentSelectors:QI,decls:8,vars:6,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(e,n){1&e&&(vi(XI),Ee(0,"span",0),Je(1),v(2,"span",1),Je(3,1),y(),Je(4,2),Ee(5,"span",2)(6,"span",3)(7,"span",4)),2&e&&(Xe("mdc-button__ripple",!n._isFab)("mdc-fab__ripple",n._isFab),k(6),A("matRippleDisabled",n._isRippleDisabled())("matRippleTrigger",n._elementRef.nativeElement))},dependencies:[xo],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-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)}',YI],encapsulation:2,changeDetection:0}),t})(),is=(()=>{class t extends Uy{constructor(e,n,r,o){super(e,n,r,o)}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(xi),b(Ue),b(Ri,8))},t.\u0275cmp=je({type:t,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(e,n){2&e&&(rt("disabled",n.disabled||null),Xe("_mat-animation-noopable","NoopAnimations"===n._animationMode)("mat-unthemed",!n.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[pe],attrs:rX,ngContentSelectors:oX,decls:5,vars:3,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(e,n){1&e&&(vi(),Ee(0,"span",0),Je(1),Ee(2,"span",1)(3,"span",2)(4,"span",3)),2&e&&(k(3),A("matRippleDisabled",n._isRippleDisabled())("matRippleCentered",!0)("matRippleTrigger",n._elementRef.nativeElement))},dependencies:[xo],styles:['.mdc-icon-button{font-size:24px;width:48px;height:48px;padding:12px}.mdc-icon-button .mdc-icon-button__focus-ring{max-height:48px;max-width:48px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:40px;height:40px;margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:40px;max-width:40px}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button svg,.mdc-icon-button img{width:24px;height:24px}.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, 48px);width:var(--mdc-icon-button-state-layer-size, 48px);color:var(--mdc-icon-button-icon-color, inherit);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity, 0.38)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color, #000)}.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-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}',YI],encapsulation:2,changeDetection:0}),t})(),KI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt,Vs,xt]}),t})();class ZI{}class hX{}const ns="*";function bn(t,i){return{type:7,name:t,definitions:i,options:{}}}function fi(t,i=null){return{type:4,styles:i,timings:t}}function zy(t,i=null){return{type:3,steps:t,options:i}}function JI(t,i=null){return{type:2,steps:t,options:i}}function nt(t){return{type:6,styles:t,offset:null}}function ii(t,i,e){return{type:0,name:t,styles:i,options:e}}function Dg(t){return{type:5,steps:t}}function ai(t,i,e=null){return{type:1,expr:t,animation:i,options:e}}function Sg(t=null){return{type:9,options:t}}function Eg(t,i,e=null){return{type:11,selector:t,animation:i,options:e}}function eF(t){Promise.resolve().then(t)}class Lh{constructor(i=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=i+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){eF(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(i){this._position=this.totalTime?i*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(i){const e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class tF{constructor(i){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=i;let e=0,n=0,r=0;const o=this.players.length;0==o?eF(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==o&&this._onFinish()}),a.onDestroy(()=>{++n==o&&this._onDestroy()}),a.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this.players.forEach(i=>i.init())}onStart(i){this._onStartFns.push(i)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[])}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play())}pause(){this.players.forEach(i=>i.pause())}restart(){this.players.forEach(i=>i.restart())}finish(){this._onFinish(),this.players.forEach(i=>i.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(i){const e=i*this.totalTime;this.players.forEach(n=>{const r=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(r)})}getPosition(){const i=this.players.reduce((e,n)=>null===e||n.totalTime>e.totalTime?n:e,null);return null!=i?i.getPosition():0}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy()})}triggerCallback(i){const e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}const $y="!";class jy{attach(i){return this._attachedHost=i,i.attach(this)}detach(){let i=this._attachedHost;null!=i&&(this._attachedHost=null,i.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(i){this._attachedHost=i}}class Id extends jy{constructor(i,e,n,r,o){super(),this.component=i,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=r,this.projectableNodes=o}}class rs extends jy{constructor(i,e,n,r){super(),this.templateRef=i,this.viewContainerRef=e,this.context=n,this.injector=r}get origin(){return this.templateRef.elementRef}attach(i,e=this.context){return this.context=e,super.attach(i)}detach(){return this.context=void 0,super.detach()}}class fX extends jy{constructor(i){super(),this.element=i instanceof Ae?i.nativeElement:i}}class Tg{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(i){return i instanceof Id?(this._attachedPortal=i,this.attachComponentPortal(i)):i instanceof rs?(this._attachedPortal=i,this.attachTemplatePortal(i)):this.attachDomPortal&&i instanceof fX?(this._attachedPortal=i,this.attachDomPortal(i)):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(i){this._disposeFn=i}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class mX extends Tg{constructor(i,e,n,r,o){super(),this.outletElement=i,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=r,this.attachDomPortal=a=>{const s=a.element,c=this._document.createComment("dom-portal");s.parentNode.insertBefore(c,s),this.outletElement.appendChild(s),this._attachedPortal=a,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(s,c)})},this._document=o}attachComponentPortal(i){const n=(i.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(i.component);let r;return i.viewContainerRef?(r=i.viewContainerRef.createComponent(n,i.viewContainerRef.length,i.injector||i.viewContainerRef.injector,i.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=n.create(i.injector||this._defaultInjector||en.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=i,r}attachTemplatePortal(i){let e=i.viewContainerRef,n=e.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return n.rootNodes.forEach(r=>this.outletElement.appendChild(r)),n.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(n);-1!==r&&e.remove(r)}),this._attachedPortal=i,n}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(i){return i.hostView.rootNodes[0]}}let pX=(()=>{class t extends rs{constructor(e,n){super(e,n)}}return t.\u0275fac=function(e){return new(e||t)(b(_i),b(Fi))},t.\u0275dir=Q({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[pe]}),t})(),os=(()=>{class t extends Tg{constructor(e,n,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=n,this._isInitialized=!1,this.attached=new ke,this.attachDomPortal=o=>{const a=o.element,s=this._document.createComment("dom-portal");o.setAttachedHost(this),a.parentNode.insertBefore(s,a),this._getRootNode().appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{s.parentNode&&s.parentNode.replaceChild(a,s)})},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 n=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=n.createComponent(o,n.length,e.injector||n.injector,e.projectableNodes||void 0);return n!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(e){e.setAttachedHost(this);const n=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=n,this.attached.emit(n),n}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return t.\u0275fac=function(e){return new(e||t)(b(ks),b(Fi),b(it))},t.\u0275dir=Q({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[pe]}),t})(),Bc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({}),t})();const gX=["addListener","removeListener"],_X=["addEventListener","removeEventListener"],bX=["on","off"];function ga(t,i,e,n){if(Wt(e)&&(n=e,e=void 0),n)return ga(t,i,e).pipe(Rx(n));const[r,o]=function yX(t){return Wt(t.addEventListener)&&Wt(t.removeEventListener)}(t)?_X.map(a=>s=>t[a](i,s,e)):function vX(t){return Wt(t.addListener)&&Wt(t.removeListener)}(t)?gX.map(iF(t,i)):function xX(t){return Wt(t.on)&&Wt(t.off)}(t)?bX.map(iF(t,i)):[];if(!r&&R_(t))return Sn(a=>ga(a,i,e))(Yn(t));if(!r)throw new TypeError("Invalid event target");return new ni(a=>{const s=(...c)=>a.next(1o(s)})}function iF(t,i){return e=>n=>t[e](i,n)}const Nh={schedule(t){let i=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:n}=Nh;n&&(i=n.requestAnimationFrame,e=n.cancelAnimationFrame);const r=i(o=>{e=void 0,t(o)});return new yt(()=>e?.(r))},requestAnimationFrame(...t){const{delegate:i}=Nh;return(i?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){const{delegate:i}=Nh;return(i?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0},nF=new class CX extends Ey{flush(i){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:n}=this;let r;i=i||n.shift();do{if(r=i.execute(i.state,i.delay))break}while((i=n[0])&&i.id===e&&n.shift());if(this._active=!1,r){for(;(i=n[0])&&i.id===e&&n.shift();)i.unsubscribe();throw r}}}(class wX extends Sy{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return null!==n&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i._scheduled||(i._scheduled=Nh.requestAnimationFrame(()=>i.flush(void 0))))}recycleAsyncId(i,e,n=0){var r;if(null!=n?n>0:this.delay>0)return super.recycleAsyncId(i,e,n);const{actions:o}=i;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(Nh.cancelAnimationFrame(e),i._scheduled=void 0)}});let Wy,kX=1;const Mg={};function rF(t){return t in Mg&&(delete Mg[t],!0)}const DX={setImmediate(t){const i=kX++;return Mg[i]=!0,Wy||(Wy=Promise.resolve()),Wy.then(()=>rF(i)&&t()),i},clearImmediate(t){rF(t)}},{setImmediate:SX,clearImmediate:EX}=DX,Ag={setImmediate(...t){const{delegate:i}=Ag;return(i?.setImmediate||SX)(...t)},clearImmediate(t){const{delegate:i}=Ag;return(i?.clearImmediate||EX)(t)},delegate:void 0},Gy=new class MX extends Ey{flush(i){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:n}=this;let r;i=i||n.shift();do{if(r=i.execute(i.state,i.delay))break}while((i=n[0])&&i.id===e&&n.shift());if(this._active=!1,r){for(;(i=n[0])&&i.id===e&&n.shift();)i.unsubscribe();throw r}}}(class TX extends Sy{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return null!==n&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i._scheduled||(i._scheduled=Ag.setImmediate(i.flush.bind(i,void 0))))}recycleAsyncId(i,e,n=0){var r;if(null!=n?n>0:this.delay>0)return super.recycleAsyncId(i,e,n);const{actions:o}=i;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(Ag.clearImmediate(e),i._scheduled=void 0)}});function Ig(t=0,i,e=rq){let n=-1;return null!=i&&(rk(i)?e=i:n=i),new ni(r=>{let o=function IX(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;o<0&&(o=0);let a=0;return e.schedule(function(){r.closed||(r.next(a++),0<=n?this.schedule(void 0,n):r.complete())},o)})}function qy(t,i=Ih){return function AX(t){return Gi((i,e)=>{let n=!1,r=null,o=null,a=!1;const s=()=>{if(o?.unsubscribe(),o=null,n){n=!1;const l=r;r=null,e.next(l)}a&&e.complete()},c=()=>{o=null,a&&e.complete()};i.subscribe(Bi(e,l=>{n=!0,r=l,o||Yn(t(l)).subscribe(o=Bi(e,s,c))},()=>{a=!0,(!n||!o||o.closed)&&e.complete()}))})}(()=>Ig(t,i))}const FX=["contentWrapper"],RX=["*"],OX=new ae("VIRTUAL_SCROLL_STRATEGY");let Fd=(()=>{class t{constructor(e,n,r){this._ngZone=e,this._platform=n,this._scrolled=new Ce,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 n=this.scrollContainers.get(e);n&&(n.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new ni(n=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(qy(e)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):ze()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(e,n){const r=this.getAncestorScrollContainers(e);return this.scrolled(n).pipe(hi(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){const n=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&n.push(o)}),n}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,n){let r=Ki(n),o=e.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>ga(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(G(Ue),G(xi),G(it,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),oF=(()=>{class t{constructor(e,n,r,o){this.elementRef=e,this.scrollDispatcher=n,this.ngZone=r,this.dir=o,this._destroyed=new Ce,this._elementScrolled=new ni(a=>this.ngZone.runOutsideAngular(()=>ga(this.elementRef.nativeElement,"scroll").pipe(Tt(this._destroyed)).subscribe(a)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const n=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=n.scrollHeight-n.clientHeight-e.bottom),r&&0!=Th()?(null!=e.left&&(e.right=n.scrollWidth-n.clientWidth-e.left),2==Th()?e.left=e.right:1==Th()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=n.scrollWidth-n.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const n=this.elementRef.nativeElement;gI()?n.scrollTo(e):(null!=e.top&&(n.scrollTop=e.top),null!=e.left&&(n.scrollLeft=e.left))}measureScrollOffset(e){const n="left",r="right",o=this.elementRef.nativeElement;if("top"==e)return o.scrollTop;if("bottom"==e)return o.scrollHeight-o.clientHeight-o.scrollTop;const a=this.dir&&"rtl"==this.dir.value;return"start"==e?e=a?r:n:"end"==e&&(e=a?n:r),a&&2==Th()?e==n?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:a&&1==Th()?e==n?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==n?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Fd),b(Ue),b(_n,8))},t.\u0275dir=Q({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),t})(),_a=(()=>{class t{constructor(e,n,r){this._platform=e,this._change=new Ce,this._changeListener=o=>{this._change.next(o)},this._document=r,n.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:n,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+n,height:r,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,n=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect();return{top:-o.top||e.body.scrollTop||n.scrollY||r.scrollTop||0,left:-o.left||e.body.scrollLeft||n.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(qy(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}}}return t.\u0275fac=function(e){return new(e||t)(G(xi),G(Ue),G(it,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const aF=new ae("VIRTUAL_SCROLLABLE");let NX=(()=>{class t extends oF{constructor(e,n,r,o){super(e,n,r,o)}measureViewportSize(e){const n=this.elementRef.nativeElement;return"horizontal"===e?n.clientWidth:n.clientHeight}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Fd),b(Ue),b(_n,8))},t.\u0275dir=Q({type:t,features:[pe]}),t})();const VX=typeof requestAnimationFrame<"u"?nF:Gy;let HX=(()=>{class t extends NX{get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=$e(e)}constructor(e,n,r,o,a,s,c,l){super(e,s,r,a),this.elementRef=e,this._changeDetectorRef=n,this._scrollStrategy=o,this.scrollable=l,this._platform=ht(xi),this._detachedSubject=new Ce,this._renderedRangeSubject=new Ce,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new ni(d=>this._scrollStrategy.scrolledIndexChange.subscribe(u=>Promise.resolve().then(()=>this.ngZone.run(()=>d.next(u))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=yt.EMPTY,this._viewportChanges=c.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(Vn(null),qy(0,VX)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(Tt(this._detachedSubject)).subscribe(n=>{const r=n.length;r!==this._dataLength&&(this._dataLength=r,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function BX(t,i){return t.start==i.start&&t.end==i.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,n="to-start"){e=this.appendOnly&&"to-start"===n?0:e;const o="horizontal"==this.orientation,a=o?"X":"Y";let c=`translate${a}(${Number((o&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===n&&(c+=` translate${a}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=c&&(this._renderedContentTransform=c,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,n="auto"){const r={behavior:n};"horizontal"===this.orientation?r.start=e:r.top=e,this.scrollable.scrollTo(r)}scrollToIndex(e,n="auto"){this._scrollStrategy.scrollToIndex(e,n)}measureScrollOffset(e){let n;return n=this.scrollable==this?r=>super.measureScrollOffset(r):r=>this.scrollable.measureScrollOffset(r),Math.max(0,n(e??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(e){let n;const r="left",o="right",a="rtl"==this.dir?.value;n="start"==e?a?o:r:"end"==e?a?r:o:e||("horizontal"===this.orientation?"left":"top");const s=this.scrollable.measureBoundingClientRectWithScrollOffset(n);return this.elementRef.nativeElement.getBoundingClientRect()[n]-s}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const n of e)n()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Gt),b(Ue),b(OX,8),b(_n,8),b(Fd),b(_a),b(aF,8))},t.\u0275cmp=je({type:t,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,n){if(1&e&&st(FX,7),2&e){let r;xe(r=ye())&&(n._contentWrapper=r.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,n){2&e&&Xe("cdk-virtual-scroll-orientation-horizontal","horizontal"===n.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==n.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[We([{provide:oF,useFactory:(i,e)=>i||e,deps:[[new na,new Lm(aF)],t]}]),pe,Iv],ngContentSelectors:RX,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,n){1&e&&(vi(),v(0,"div",0,1),Je(2),y(),Ee(3,"div",2)),2&e&&(k(3),ir("width",n._totalContentWidth)("height",n._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),t})(),Vc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({}),t})(),Xy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[Rh,Vc,HX,Rh,Vc]}),t})();const sF=gI();class UX{constructor(i,e){this._viewportRuler=i,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const i=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=i.style.left||"",this._previousHTMLStyles.top=i.style.top||"",i.style.left=gn(-this._previousScrollPosition.left),i.style.top=gn(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const i=this._document.documentElement,n=i.style,r=this._document.body.style,o=n.scrollBehavior||"",a=r.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),sF&&(n.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),sF&&(n.scrollBehavior=o,r.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,n=this._viewportRuler.getViewportSize();return e.scrollHeight>n.height||e.scrollWidth>n.width}}class zX{constructor(i,e,n,r){this._scrollDispatcher=i,this._ngZone=e,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(i){this._overlayRef=i}enable(){if(this._scrollSubscription)return;const i=this._scrollDispatcher.scrolled(0).pipe(hi(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=i.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=i.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class cF{enable(){}disable(){}attach(){}}function Qy(t,i){return i.some(e=>t.bottome.bottom||t.righte.right)}function lF(t,i){return i.some(e=>t.tope.bottom||t.lefte.right)}class $X{constructor(i,e,n,r){this._scrollDispatcher=i,this._viewportRuler=e,this._ngZone=n,this._config=r,this._scrollSubscription=null}attach(i){this._overlayRef=i}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:n,height:r}=this._viewportRuler.getViewportSize();Qy(e,[{width:n,height:r,bottom:r,right:n,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 jX=(()=>{class t{constructor(e,n,r,o){this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=r,this.noop=()=>new cF,this.close=a=>new zX(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new UX(this._viewportRuler,this._document),this.reposition=a=>new $X(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=o}}return t.\u0275fac=function(e){return new(e||t)(G(Fd),G(_a),G(Ue),G(it))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class Rd{constructor(i){if(this.scrollStrategy=new cF,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,i){const e=Object.keys(i);for(const n of e)void 0!==i[n]&&(this[n]=i[n])}}}class WX{constructor(i,e){this.connectionPair=i,this.scrollableViewProperties=e}}let dF=(()=>{class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const n=this._attachedOverlays.indexOf(e);n>-1&&this._attachedOverlays.splice(n,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(G(it))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),GX=(()=>{class t extends dF{constructor(e,n){super(e),this._ngZone=n,this._keydownListener=r=>{const o=this._attachedOverlays;for(let a=o.length-1;a>-1;a--)if(o[a]._keydownEvents.observers.length>0){const s=o[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>s.next(r)):s.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)}}return t.\u0275fac=function(e){return new(e||t)(G(it),G(Ue,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),qX=(()=>{class t extends dF{constructor(e,n,r){super(e),this._platform=n,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=Zr(o)},this._clickListener=o=>{const a=Zr(o),s="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;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(a)||d.overlayElement.contains(s))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 n=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(n)):this._addEventListeners(n),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.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)}}return t.\u0275fac=function(e){return new(e||t)(G(it),G(xi),G(Ue,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Fg=(()=>{class t{constructor(e,n){this._platform=n,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||ky()){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 Ce,this._outsidePointerEvents=new Ce,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(i){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(i);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(ui(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 i=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i}dispose(){const i=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,i&&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(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()))}updateSize(i){this._config={...this._config,...i},this._updateElementSize()}setDirection(i){this._config={...this._config,direction:i},this._updateElementDirection()}addPanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!0)}removePanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!1)}getDirection(){const i=this._config.direction;return i?"string"==typeof i?i:i.value:"ltr"}updateScrollStrategy(i){i!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=i,this.hasAttached()&&(i.attach(this),i.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const i=this._pane.style;i.width=gn(this._config.width),i.height=gn(this._config.height),i.minWidth=gn(this._config.minWidth),i.minHeight=gn(this._config.minHeight),i.maxWidth=gn(this._config.maxWidth),i.maxHeight=gn(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachBackdrop(){const i="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(i)})}):this._backdropElement.classList.add(i)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const i=this._backdropElement;if(i){if(this._animationsDisabled)return void this._disposeBackdrop(i);i.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{i.addEventListener("transitionend",this._backdropTransitionendHandler)}),i.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(i)},500))}}_toggleClasses(i,e,n){const r=Fh(e||[]).filter(o=>!!o);r.length&&(n?i.classList.add(...r):i.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const i=this._ngZone.onStable.pipe(Tt(Vi(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()),i.unsubscribe())})})}_disposeScrollStrategy(){const i=this._scrollStrategy;i&&(i.disable(),i.detach&&i.detach())}_disposeBackdrop(i){i&&(i.removeEventListener("click",this._backdropClickHandler),i.removeEventListener("transitionend",this._backdropTransitionendHandler),i.remove(),this._backdropElement===i&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const uF="cdk-overlay-connected-position-bounding-box",XX=/([A-Za-z%]+)$/;class QX{get positions(){return this._preferredPositions}constructor(i,e,n,r,o){this._viewportRuler=e,this._document=n,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 Ce,this._resizeSubscription=yt.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(i)}attach(i){this._validatePositions(),i.hostElement.classList.add(uF),this._overlayRef=i,this._boundingBox=i.hostElement,this._pane=i.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 i=this._originRect,e=this._overlayRect,n=this._viewportRect,r=this._containerRect,o=[];let a;for(let s of this._preferredPositions){let c=this._getOriginPoint(i,r,s),l=this._getOverlayPoint(c,e,s),d=this._getOverlayFit(l,e,n,s);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,c);this._canFitWithFlexibleDimensions(d,l,n)?o.push({position:s,origin:c,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(c,s)}):(!a||a.overlayFit.visibleAreac&&(c=d,s=l)}return this._isPushed=!1,void this._applyPosition(s.position,s.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(a.position,a.originPoint);this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Hc(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(uF),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const i=this._lastPosition;if(i){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,i);this._applyPosition(i,e)}else this.apply()}withScrollableContainers(i){return this._scrollables=i,this}withPositions(i){return this._preferredPositions=i,-1===i.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(i){return this._viewportMargin=i,this}withFlexibleDimensions(i=!0){return this._hasFlexibleDimensions=i,this}withGrowAfterOpen(i=!0){return this._growAfterOpen=i,this}withPush(i=!0){return this._canPush=i,this}withLockedPosition(i=!0){return this._positionLocked=i,this}setOrigin(i){return this._origin=i,this}withDefaultOffsetX(i){return this._offsetX=i,this}withDefaultOffsetY(i){return this._offsetY=i,this}withTransformOriginOn(i){return this._transformOriginSelector=i,this}_getOriginPoint(i,e,n){let r,o;if("center"==n.originX)r=i.left+i.width/2;else{const a=this._isRtl()?i.right:i.left,s=this._isRtl()?i.left:i.right;r="start"==n.originX?a:s}return e.left<0&&(r-=e.left),o="center"==n.originY?i.top+i.height/2:"top"==n.originY?i.top:i.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(i,e,n){let r,o;return r="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,o="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:i.x+r,y:i.y+o}}_getOverlayFit(i,e,n,r){const o=fF(e);let{x:a,y:s}=i,c=this._getOffset(r,"x"),l=this._getOffset(r,"y");c&&(a+=c),l&&(s+=l);let h=0-s,f=s+o.height-n.height,m=this._subtractOverflows(o.width,0-a,a+o.width-n.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(i,e,n){if(this._hasFlexibleDimensions){const r=n.bottom-e.y,o=n.right-e.x,a=hF(this._overlayRef.getConfig().minHeight),s=hF(this._overlayRef.getConfig().minWidth);return(i.fitsInViewportVertically||null!=a&&a<=r)&&(i.fitsInViewportHorizontally||null!=s&&s<=o)}return!1}_pushOverlayOnScreen(i,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};const r=fF(e),o=this._viewportRect,a=Math.max(i.x+r.width-o.width,0),s=Math.max(i.y+r.height-o.height,0),c=Math.max(o.top-n.top-i.y,0),l=Math.max(o.left-n.left-i.x,0);let d=0,u=0;return d=r.width<=o.width?l||-a:i.xm&&!this._isInitialRender&&!this._growAfterOpen&&(a=i.y-m/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)h=n.width-i.x+this._viewportMargin,d=i.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)u=i.x,d=n.right-i.x;else{const f=Math.min(n.right-i.x+n.left,i.x),m=this._lastBoundingBoxSize.width;d=2*f,u=i.x-f,d>m&&!this._isInitialRender&&!this._growAfterOpen&&(u=i.x-m/2)}return{top:a,left:u,bottom:s,right:h,width:d,height:o}}_setBoundingBoxStyles(i,e){const n=this._calculateBoundingBoxRect(i,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.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,a=this._overlayRef.getConfig().maxWidth;r.height=gn(n.height),r.top=gn(n.top),r.bottom=gn(n.bottom),r.width=gn(n.width),r.left=gn(n.left),r.right=gn(n.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=gn(o)),a&&(r.maxWidth=gn(a))}this._lastBoundingBoxSize=n,Hc(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Hc(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Hc(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(i,e){const n={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(r){const d=this._viewportRuler.getViewportScrollPosition();Hc(n,this._getExactOverlayY(e,i,d)),Hc(n,this._getExactOverlayX(e,i,d))}else n.position="static";let s="",c=this._getOffset(e,"x"),l=this._getOffset(e,"y");c&&(s+=`translateX(${c}px) `),l&&(s+=`translateY(${l}px)`),n.transform=s.trim(),a.maxHeight&&(r?n.maxHeight=gn(a.maxHeight):o&&(n.maxHeight="")),a.maxWidth&&(r?n.maxWidth=gn(a.maxWidth):o&&(n.maxWidth="")),Hc(this._pane.style,n)}_getExactOverlayY(i,e,n){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,i);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),"bottom"===i.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=gn(o.y),r}_getExactOverlayX(i,e,n){let a,r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,i);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),a=this._isRtl()?"end"===i.overlayX?"left":"right":"end"===i.overlayX?"right":"left","right"===a?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=gn(o.x),r}_getScrollVisibility(){const i=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:lF(i,n),isOriginOutsideView:Qy(i,n),isOverlayClipped:lF(e,n),isOverlayOutsideView:Qy(e,n)}}_subtractOverflows(i,...e){return e.reduce((n,r)=>n-Math.max(r,0),i)}_getNarrowedViewportRect(){const i=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+i-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:i-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(i,e){return"x"===e?null==i.offsetX?this._offsetX:i.offsetX:null==i.offsetY?this._offsetY:i.offsetY}_validatePositions(){}_addPanelClasses(i){this._pane&&Fh(i).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i)}),this._appliedPanelClasses=[])}_getOriginRect(){const i=this._origin;if(i instanceof Ae)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();const e=i.width||0,n=i.height||0;return{top:i.y,bottom:i.y+n,left:i.x,right:i.x+e,height:n,width:e}}}function Hc(t,i){for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t}function hF(t){if("number"!=typeof t&&null!=t){const[i,e]=t.split(XX);return e&&"px"!==e?null:parseFloat(i)}return t||null}function fF(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 mF="cdk-global-overlay-wrapper";class YX{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(i){const e=i.getConfig();this._overlayRef=i,this._width&&!e.width&&i.updateSize({width:this._width}),this._height&&!e.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(mF),this._isDisposed=!1}top(i=""){return this._bottomOffset="",this._topOffset=i,this._alignItems="flex-start",this}left(i=""){return this._xOffset=i,this._xPosition="left",this}bottom(i=""){return this._topOffset="",this._bottomOffset=i,this._alignItems="flex-end",this}right(i=""){return this._xOffset=i,this._xPosition="right",this}start(i=""){return this._xOffset=i,this._xPosition="start",this}end(i=""){return this._xOffset=i,this._xPosition="end",this}width(i=""){return this._overlayRef?this._overlayRef.updateSize({width:i}):this._width=i,this}height(i=""){return this._overlayRef?this._overlayRef.updateSize({height:i}):this._height=i,this}centerHorizontally(i=""){return this.left(i),this._xPosition="center",this}centerVertically(i=""){return this.top(i),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:a,maxHeight:s}=n,c=!("100%"!==r&&"100vw"!==r||a&&"100%"!==a&&"100vw"!==a),l=!("100%"!==o&&"100vh"!==o||s&&"100%"!==s&&"100vh"!==s),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),i.position=this._cssPosition,i.marginLeft=c?"0":f,i.marginTop=l?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=c?"0":m,e.justifyContent=g,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(mF),n.justifyContent=n.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}}let KX=(()=>{class t{constructor(e,n,r,o){this._viewportRuler=e,this._document=n,this._platform=r,this._overlayContainer=o}global(){return new YX}flexibleConnectedTo(e){return new QX(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(G(_a),G(it),G(xi),G(Fg))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ZX=0,rr=(()=>{class t{constructor(e,n,r,o,a,s,c,l,d,u,h,f){this.scrollStrategies=e,this._overlayContainer=n,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=a,this._injector=s,this._ngZone=c,this._document=l,this._directionality=d,this._location=u,this._outsideClickDispatcher=h,this._animationsModuleType=f}create(e){const n=this._createHostElement(),r=this._createPaneElement(n),o=this._createPortalOutlet(r),a=new Rd(e);return a.direction=a.direction||this._directionality.value,new Bh(o,n,r,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const n=this._document.createElement("div");return n.id="cdk-overlay-"+ZX++,n.classList.add("cdk-overlay-pane"),e.appendChild(n),n}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(ud)),new mX(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(G(jX),G(Fg),G(ks),G(KX),G(GX),G(en),G(Ue),G(it),G(_n),G(eh),G(qX),G(Ri,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const JX=[{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"}],pF=new ae("cdk-connected-overlay-scroll-strategy");let Yy=(()=>{class t{constructor(e){this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(b(Ae))},t.\u0275dir=Q({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0}),t})(),gF=(()=>{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=$e(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=$e(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=$e(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=$e(e)}get push(){return this._push}set push(e){this._push=$e(e)}constructor(e,n,r,o,a){this._overlay=e,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=yt.EMPTY,this._attachSubscription=yt.EMPTY,this._detachSubscription=yt.EMPTY,this._positionSubscription=yt.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new ke,this.positionChange=new ke,this.attach=new ke,this.detach=new ke,this.overlayKeydown=new ke,this.overlayOutsideClick=new ke,this._templatePortal=new rs(n,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=JX);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(n=>{this.overlayKeydown.next(n),27===n.keyCode&&!this.disableClose&&!wr(n)&&(n.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{this.overlayOutsideClick.next(n)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),n=new Rd({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(n.width=this.width),(this.height||0===this.height)&&(n.height=this.height),(this.minWidth||0===this.minWidth)&&(n.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(n.minHeight=this.minHeight),this.backdropClass&&(n.backdropClass=this.backdropClass),this.panelClass&&(n.panelClass=this.panelClass),n}_updatePositionStrategy(e){const n=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(n).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 Yy?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(jM(()=>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()}}return t.\u0275fac=function(e){return new(e||t)(b(rr),b(_i),b(Fi),b(pF),b(_n,8))},t.\u0275dir=Q({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[Ei]}),t})();const tQ={provide:pF,deps:[rr],useFactory:function eQ(t){return()=>t.scrollStrategies.reposition()}};let Uc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[rr,tQ],imports:[Rh,Bc,Xy,Xy]}),t})();function iQ(t,i){if(1&t){const e=ot();v(0,"div",2)(1,"button",3),X("click",function(){return Oe(e),Pe(q().action())}),M(2),y()()}if(2&t){const e=q();k(2),It(" ",e.data.action," ")}}const nQ=["label"];function rQ(t,i){}const oQ=Math.pow(2,31)-1;class Rg{constructor(i,e){this._overlayRef=e,this._afterDismissed=new Ce,this._afterOpened=new Ce,this._onAction=new Ce,this._dismissedByAction=!1,this.containerInstance=i,i._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(i){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(i,oQ))}_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 Ky=new ae("MatSnackBarData");class Og{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let aQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]}),t})(),sQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]}),t})(),cQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]}),t})(),lQ=(()=>{class t{constructor(e,n){this.snackBarRef=e,this.data=n}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return t.\u0275fac=function(e){return new(e||t)(b(Rg),b(Ky))},t.\u0275cmp=je({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(e,n){1&e&&(v(0,"div",0),M(1),y(),H(2,iQ,3,1,"div",1)),2&e&&(k(1),It(" ",n.data.message,"\n"),k(1),A("ngIf",n.hasAction))},dependencies:[hn,yo,aQ,sQ,cQ],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0}),t})();const dQ={snackBarState:bn("state",[ii("void, hidden",nt({transform:"scale(0.8)",opacity:0})),ii("visible",nt({transform:"scale(1)",opacity:1})),ai("* => visible",fi("150ms cubic-bezier(0, 0, 0.2, 1)")),ai("* => void, * => hidden",fi("75ms cubic-bezier(0.4, 0.0, 1, 1)",nt({opacity:0})))])};let uQ=0,hQ=(()=>{class t extends Tg{constructor(e,n,r,o,a){super(),this._ngZone=e,this._elementRef=n,this._changeDetectorRef=r,this._platform=o,this.snackBarConfig=a,this._document=ht(it),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new Ce,this._onExit=new Ce,this._onEnter=new Ce,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+uQ++,this.attachDomPortal=s=>{this._assertNotAttached();const c=this._portalOutlet.attachDomPortal(s);return this._afterPortalAttached(),c},this._live="assertive"!==a.politeness||a.announcementMessage?"off"===a.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();const n=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),n}attachTemplatePortal(e){this._assertNotAttached();const n=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),n}onAnimationEnd(e){const{fromState:n,toState:r}=e;if(("void"===r&&"void"!==n||"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(ui(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const e=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;n&&(Array.isArray(n)?n.forEach(r=>e.classList.add(r)):e.classList.add(n)),this._exposeToModals()}_exposeToModals(){const e=this._liveElementId,n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{const n=e.getAttribute("aria-owns");if(n){const r=n.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]"),n=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&n){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),n.appendChild(e),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return t.\u0275fac=function(e){return new(e||t)(b(Ue),b(Ae),b(Gt),b(xi),b(Og))},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&st(os,7),2&e){let r;xe(r=ye())&&(n._portalOutlet=r.first)}},features:[pe]}),t})(),fQ=(()=>{class t extends hQ{_afterPortalAttached(){super._afterPortalAttached();const e=this._label.nativeElement,n="mdc-snackbar__label";e.classList.toggle(n,!e.querySelector(`.${n}`))}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275cmp=je({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(e,n){if(1&e&&st(nQ,7),2&e){let r;xe(r=ye())&&(n._label=r.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(e,n){1&e&&_v("@state.done",function(o){return n.onAnimationEnd(o)}),2&e&&Cv("@state",n._animationState)},features:[pe],decls:6,vars:3,consts:[[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["label",""],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,n){1&e&&(v(0,"div",0)(1,"div",1,2)(3,"div",3),H(4,rQ,0,0,"ng-template",4),y(),Ee(5,"div"),y()()),2&e&&(k(5),rt("aria-live",n._live)("role",n._role)("id",n._liveElementId))},dependencies:[os],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__dismiss .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px))}.mat-mdc-snack-bar-container .mdc-snackbar__dismiss svg,.mat-mdc-snack-bar-container .mdc-snackbar__dismiss img{width:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px));height:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px))}.mat-mdc-snack-bar-container .mdc-snackbar__surface{background-color:var(--mdc-snackbar-container-color, inherit)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{border-radius:var(--mdc-snackbar-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-snack-bar-container .mdc-snackbar__label{color:var(--mdc-snackbar-supporting-text-color, inherit)}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-size:var(--mdc-snackbar-supporting-text-size, inherit);font-family:var(--mdc-snackbar-supporting-text-font, inherit);font-weight:var(--mdc-snackbar-supporting-text-weight, inherit);line-height:var(--mdc-snackbar-supporting-text-line-height, inherit)}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-mdc-snack-bar-button-color, transparent);--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:[dQ.snackBarState]}}),t})(),_F=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[Uc,Bc,nr,KI,xt,xt]}),t})();const bF=new ae("mat-snack-bar-default-options",{providedIn:"root",factory:function mQ(){return new Og}});let pQ=(()=>{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,n,r,o,a,s){this._overlay=e,this._live=n,this._injector=r,this._breakpointObserver=o,this._parentSnackBar=a,this._defaultConfig=s,this._snackBarRefAtThisLevel=null}openFromComponent(e,n){return this._attach(e,n)}openFromTemplate(e,n){return this._attach(e,n)}open(e,n="",r){const o={...this._defaultConfig,...r};return o.data={message:e,action:n},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,n){const o=en.create({parent:n&&n.viewContainerRef&&n.viewContainerRef.injector||this._injector,providers:[{provide:Og,useValue:n}]}),a=new Id(this.snackBarContainerComponent,n.viewContainerRef,o),s=e.attach(a);return s.instance.snackBarConfig=n,s.instance}_attach(e,n){const r={...new Og,...this._defaultConfig,...n},o=this._createOverlay(r),a=this._attachSnackBarContainer(o,r),s=new Rg(a,o);if(e instanceof _i){const c=new rs(e,null,{$implicit:r.data,snackBarRef:s});s.instance=a.attachTemplatePortal(c)}else{const c=this._createInjector(r,s),l=new Id(e,void 0,c),d=a.attachComponentPortal(l);s.instance=d.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Tt(o.detachments())).subscribe(c=>{o.overlayElement.classList.toggle(this.handsetCssClass,c.matches)}),r.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(s,r),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(e,n){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),n.duration&&n.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(n.duration))}_createOverlay(e){const n=new Rd;n.direction=e.direction;let r=this._overlay.position().global();const o="rtl"===e.direction,a="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!o||"end"===e.horizontalPosition&&o,s=!a&&"center"!==e.horizontalPosition;return a?r.left("0"):s?r.right("0"):r.centerHorizontally(),"top"===e.verticalPosition?r.top("0"):r.bottom("0"),n.positionStrategy=r,this._overlay.create(n)}_createInjector(e,n){return en.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:Rg,useValue:n},{provide:Ky,useValue:e.data}]})}}return t.\u0275fac=function(e){return new(e||t)(G(rr),G(Py),G(en),G(Ay),G(t,12),G(bF))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})(),Od=(()=>{class t extends pQ{constructor(e,n,r,o,a,s){super(e,n,r,o,a,s),this.simpleSnackBarComponent=lQ,this.snackBarContainerComponent=fQ,this.handsetCssClass="mat-mdc-snack-bar-handset"}}return t.\u0275fac=function(e){return new(e||t)(G(rr),G(Py),G(en),G(Ay),G(t,12),G(bF))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:_F}),t})(),Hn=(()=>{class t{constructor(e,n){this.sbRef=e,this.data=n}}return t.\u0275fac=function(e){return new(e||t)(b(Rg),b(Ky))},t.\u0275cmp=je({type:t,selectors:[["snack-alert"]],decls:2,vars:1,consts:[[1,"example-alert"]],template:function(e,n){1&e&&(v(0,"span",0),M(1),y()),2&e&&(k(1),tt(n.data))},styles:[".example-alert[_ngcontent-%COMP%]{color:#fff}"]}),t})(),wo=(()=>{class t{constructor(e,n){this.http=e,this._snackBar=n,this.snowstormFhirBase="https://snowstorm.ihtsdotools.org/fhir",this.defaultFhirUrlParam="http://snomed.info/sct",this.fhirUrlParam=this.defaultFhirUrlParam,this.lang="en",this.conceptCache=new Map}setSnowstormFhirBase(e){this.snowstormFhirBase=e}setFhirUrlParam(e){this.fhirUrlParam=e}getFhirUrlParam(){return this.fhirUrlParam}setLang(e){this.lang=e}getCodeSystems(){return this.http.get(`${this.snowstormFhirBase}/CodeSystem`).pipe(mn(this.handleError("getCodeSystems",{})))}getValueSetExpansionUrl(e,n,r,o){return r||(r=0),o||(o=20),"string"!=typeof n&&(n=""),`${this.snowstormFhirBase}/ValueSet/$expand?url=${this.fhirUrlParam}?fhir_vs=ecl/${encodeURIComponent(e)}&count=${o}&offset=${r}&filter=${n}&language=${this.lang}&displayLanguage=${this.lang}`}expandValueSet(e,n,r,o){let a=this.getValueSetExpansionUrl(e,n,r,o);return this.http.get(a).pipe(mn(this.handleError("expandValueSet",{})))}translate(e,n,r){return r||(r=this.defaultFhirUrlParam),this.http.get(`${this.snowstormFhirBase}/ConceptMap/$translate?url=http://snomed.info/sct?fhir_cm=${e}&code=${n}&system=${r}`).pipe(mn(this.handleError("translate",{})))}expandValueSetFromServer(e,n,r,o,a,s){a||(a=0),s||(s=20),e||(e=this.snowstormFhirBase),n||(n=this.fhirUrlParam),"string"!=typeof o&&(o="");let c=`${e}/ValueSet/$expand?url=${n}?fhir_vs=ecl/${encodeURIComponent(r)}&count=${s}&offset=${a}&filter=${o}&language=${this.lang}&displayLanguage=${this.lang}`;return this.http.get(c).pipe(mn(this.handleError("expandValueSet",{})))}handleError(e="operation",n){return r=>(console.error("There was an error!"),console.error(r),this._snackBar.openFromComponent(Hn,{duration:5e3,data:r.message,panelClass:["red-snackbar"]}),ze(n))}lookupConcept(e,n){n||(n=this.fhirUrlParam);const r=`${n}:${e}`,o=this.conceptCache.get(r);return o?ze(o):this.http.get(`${this.snowstormFhirBase}/CodeSystem/$lookup?system=${n}&code=${e}&property=normalForm`).pipe(zi(s=>{this.conceptCache.set(r,s)}),mn(this.handleError("lookupConcept",{})))}getMRCMAttributes(e){let n=`${this.snowstormFhirBase.replace("fhir","snowstorm/snomed-ct")}mrcm/MAIN/domain-attributes?parentIds=${e}&proximalPrimitiveModeling=false&contentType=POSTCOORDINATED`;return this.http.get(n).pipe(mn(this.handleError("getMRCMAttributes",{})))}addPostcoordinatedExpression(e){let n=`${this.snowstormFhirBase}/CodeSystem/sct_11000003104_EXP`;const r={headers:new pa({"Content-Type":"application/fhir+json"})};return this.http.patch(n,{resourceType:"CodeSystem",concept:[{code:e}]},r).pipe(mn(this.handleError("addPostcoordinatedExpression",{})))}runEclLegacy(e){let n=`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(n).pipe(mn(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(mn(this.handleError("translate",{})))}lookupOtherCodeSystems(e,n){return this.http.get(`${this.snowstormFhirBase}/CodeSystem/$lookup?system=${e}&code=${n}`).pipe(mn(this.handleError("lookup",{})))}}return t.\u0275fac=function(e){return new(e||t)(G(Ps),G(Od))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function vF(...t){const i=ok(t),{args:e,keys:n}=BM(t),r=new ni(o=>{const{length:a}=e;if(!a)return void o.complete();const s=new Array(a);let c=a,l=a;for(let d=0;d{u||(u=!0,l--),s[d]=h},()=>c--,void 0,()=>{(!c||!u)&&(l||o.next(n?VM(n,s):s),o.complete())}))}});return i?r.pipe(Rx(i)):r}const gQ=["*"];let Pg;function Vh(t){return function _Q(){if(void 0===Pg&&(Pg=null,typeof window<"u")){const t=window;void 0!==t.trustedTypes&&(Pg=t.trustedTypes.createPolicy("angular#components",{createHTML:i=>i}))}return Pg}()?.createHTML(t)||t}function xF(t){return Error(`Unable to find icon with the name "${t}"`)}function yF(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function wF(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class zc{constructor(i,e,n){this.url=i,this.svgText=e,this.options=n}}let Lg=(()=>{class t{constructor(e,n,r,o){this._httpClient=e,this._sanitizer=n,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,n,r){return this.addSvgIconInNamespace("",e,n,r)}addSvgIconLiteral(e,n,r){return this.addSvgIconLiteralInNamespace("",e,n,r)}addSvgIconInNamespace(e,n,r,o){return this._addSvgIconConfig(e,n,new zc(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,n,r,o){const a=this._sanitizer.sanitize(di.HTML,r);if(!a)throw wF(r);const s=Vh(a);return this._addSvgIconConfig(e,n,new zc("",s,o))}addSvgIconSet(e,n){return this.addSvgIconSetInNamespace("",e,n)}addSvgIconSetLiteral(e,n){return this.addSvgIconSetLiteralInNamespace("",e,n)}addSvgIconSetInNamespace(e,n,r){return this._addSvgIconSetConfig(e,new zc(n,null,r))}addSvgIconSetLiteralInNamespace(e,n,r){const o=this._sanitizer.sanitize(di.HTML,n);if(!o)throw wF(n);const a=Vh(o);return this._addSvgIconSetConfig(e,new zc("",a,r))}registerFontClassAlias(e,n=e){return this._fontCssClassesByAlias.set(e,n),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const n=this._sanitizer.sanitize(di.RESOURCE_URL,e);if(!n)throw yF(e);const r=this._cachedIconsByUrl.get(n);return r?ze(Ng(r)):this._loadSvgIconFromConfig(new zc(e,null)).pipe(zi(o=>this._cachedIconsByUrl.set(n,o)),Ye(o=>Ng(o)))}getNamedSvgIcon(e,n=""){const r=CF(n,e);let o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(n,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);const a=this._iconSetConfigs.get(n);return a?this._getSvgFromIconSetConfigs(e,a):Fc(xF(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?ze(Ng(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Ye(n=>Ng(n)))}_getSvgFromIconSetConfigs(e,n){const r=this._extractIconWithNameFromAnySet(e,n);return r?ze(r):vF(n.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(mn(s=>{const l=`Loading icon set URL: ${this._sanitizer.sanitize(di.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(l)),ze(null)})))).pipe(Ye(()=>{const a=this._extractIconWithNameFromAnySet(e,n);if(!a)throw xF(e);return a}))}_extractIconWithNameFromAnySet(e,n){for(let r=n.length-1;r>=0;r--){const o=n[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){const a=this._svgElementFromConfig(o),s=this._extractSvgIconFromSet(a,e,o.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(zi(n=>e.svgText=n),Ye(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?ze(null):this._fetchIcon(e).pipe(zi(n=>e.svgText=n))}_extractSvgIconFromSet(e,n,r){const o=e.querySelector(`[id="${n}"]`);if(!o)return null;const a=o.cloneNode(!0);if(a.removeAttribute("id"),"svg"===a.nodeName.toLowerCase())return this._setSvgAttributes(a,r);if("symbol"===a.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(a),r);const s=this._svgElementFromString(Vh(""));return s.appendChild(a),this._setSvgAttributes(s,r)}_svgElementFromString(e){const n=this._document.createElement("DIV");n.innerHTML=e;const r=n.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const n=this._svgElementFromString(Vh("")),r=e.attributes;for(let o=0;oVh(l)),zp(()=>this._inProgressUrlFetches.delete(a)),lk());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,n,r){return this._svgIconConfigs.set(CF(e,n),r),this}_addSvgIconSetConfig(e,n){const r=this._iconSetConfigs.get(e);return r?r.push(n):this._iconSetConfigs.set(e,[n]),this}_svgElementFromConfig(e){if(!e.svgElement){const n=this._svgElementFromString(e.svgText);this._setSvgAttributes(n,e.options),e.svgElement=n}return e.svgElement}_getIconConfigFromResolvers(e,n){for(let r=0;ri?i.pathname+i.search:""}}}),kF=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],DQ=kF.map(t=>`[${t}]`).join(", "),SQ=/^url\(['"]?#(.*?)['"]?\)$/;let ba=(()=>{class t extends yQ{get inline(){return this._inline}set inline(e){this._inline=$e(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 n=this._cleanupFontValue(e);n!==this._fontSet&&(this._fontSet=n,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const n=this._cleanupFontValue(e);n!==this._fontIcon&&(this._fontIcon=n,this._updateFontIconClasses())}constructor(e,n,r,o,a,s){super(e),this._iconRegistry=n,this._location=o,this._errorHandler=a,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=yt.EMPTY,s&&(s.color&&(this.color=this.defaultColor=s.color),s.fontSet&&(this.fontSet=s.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];const n=e.split(":");switch(n.length){case 1:return["",n[0]];case 2:return n;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const n=this._location.getPathname();n!==this._previousPath&&(this._previousPath=n,this._prependPathToReferences(n))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let n=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();n--;){const r=e.childNodes[n];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,n=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),n.forEach(r=>e.classList.add(r)),this._previousFontSetClass=n,this.fontIcon!==this._previousFontIconClass&&!n.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 n=this._elementsWithExternalReferences;n&&n.forEach((r,o)=>{r.forEach(a=>{o.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){const n=e.querySelectorAll(DQ),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const s=n[o],c=s.getAttribute(a),l=c?c.match(SQ):null;if(l){let d=r.get(s);d||(d=[],r.set(s,d)),d.push({name:a,value:l[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[n,r]=this._splitIconName(e);n&&(this._svgNamespace=n),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,n).pipe(ui(1)).subscribe(o=>this._setSvgElement(o),o=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${n}:${r}! ${o.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Lg),uo("aria-hidden"),b(CQ),b(Wa),b(wQ,8))},t.\u0275cmp=je({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(e,n){2&e&&(rt("data-mat-icon-type",n._usingFontIcon()?"font":"svg")("data-mat-icon-name",n._svgName||n.fontIcon)("data-mat-icon-namespace",n._svgNamespace||n.fontSet)("fontIcon",n._usingFontIcon()?n.fontIcon:null),Xe("mat-icon-inline",n.inline)("mat-icon-no-color","primary"!==n.color&&"accent"!==n.color&&"warn"!==n.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[pe],ngContentSelectors:gQ,decls:1,vars:0,template:function(e,n){1&e&&(vi(),Je(0))},styles:[".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}),t})(),EQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt,xt]}),t})();function DF(t,i){return i?e=>ch(i.pipe(ui(1),function TQ(){return Gi((t,i)=>{t.subscribe(Bi(i,pr))})}()),e.pipe(DF(t))):Sn((e,n)=>Yn(t(e,n)).pipe(ui(1),WM(e)))}function Zy(t,i=Ih){const e=Ig(t,i);return DF(()=>e)}const MQ=["mat-menu-item",""];function AQ(t,i){1&t&&(za(),v(0,"svg",3),Ee(1,"polygon",4),y())}const IQ=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],FQ=["mat-icon, [matMenuItemIcon]","*"];function RQ(t,i){if(1&t){const e=ot();v(0,"div",0),X("keydown",function(r){return Oe(e),Pe(q()._handleKeydown(r))})("click",function(){return Oe(e),Pe(q().closed.emit("click"))})("@transformMenu.start",function(r){return Oe(e),Pe(q()._onAnimationStart(r))})("@transformMenu.done",function(r){return Oe(e),Pe(q()._onAnimationDone(r))}),v(1,"div",1),Je(2),y()()}if(2&t){const e=q();A("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),rt("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const OQ=["*"],Jy=new ae("MAT_MENU_PANEL"),PQ=Bs(ts(class{}));let va=(()=>{class t extends PQ{constructor(e,n,r,o,a){super(),this._elementRef=e,this._document=n,this._focusMonitor=r,this._parentMenu=o,this._changeDetectorRef=a,this.role="menuitem",this._hovered=new Ce,this._focused=new Ce,this._highlighted=!1,this._triggersSubmenu=!1,o?.addItem?.(this)}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,n):this._getHostElement().focus(n),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),n=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r enter",fi("120ms cubic-bezier(0, 0, 0.2, 1)",nt({opacity:1,transform:"scale(1)"}))),ai("* => void",fi("100ms 25ms linear",nt({opacity:0})))]),fadeInItems:bn("fadeInItems",[ii("showing",nt({opacity:1})),ai("void => *",[nt({opacity:0}),fi("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let NQ=0;const SF=new ae("mat-menu-default-options",{providedIn:"root",factory:function BQ(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let Hh=(()=>{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=$e(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=$e(e)}set panelClass(e){const n=this._previousPanelClass;n&&n.length&&n.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,n,r,o){this._elementRef=e,this._ngZone=n,this._defaultOptions=r,this._changeDetectorRef=o,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new Ec,this._classList={},this._panelAnimationState="void",this._animationDone=new Ce,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new ke,this.close=this.closed,this.panelId="mat-menu-panel-"+NQ++}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Ry(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Vn(this._directDescendantItems),fn(e=>Vi(...e.map(n=>n._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const n=this._keyManager;if("enter"===this._panelAnimationState&&n.activeItem?._hasFocus()){const r=e.toArray(),o=Math.max(0,Math.min(r.length-1,n.activeItemIndex||0));r[o]&&!r[o].disabled?n.setActiveItem(o):n.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe(Vn(this._directDescendantItems),fn(n=>Vi(...n.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const n=e.keyCode,r=this._keyManager;switch(n){case 27:wr(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===n||40===n)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe(ui(1)).subscribe(()=>{let n=null;if(this._directDescendantItems.length&&(n=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!n||!n.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&n&&n.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const n=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${n}`,o=Object.keys(this._classList).find(a=>a.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,n=this.yPosition){const r=this._classList;r["mat-menu-before"]="before"===e,r["mat-menu-after"]="after"===e,r["mat-menu-above"]="above"===n,r["mat-menu-below"]="below"===n,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(Vn(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(n=>n._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Ue),b(SF),b(Gt))},t.\u0275dir=Q({type:t,contentQueries:function(e,n,r){if(1&e&&(Bt(r,LQ,5),Bt(r,va,5),Bt(r,va,4)),2&e){let o;xe(o=ye())&&(n.lazyContent=o.first),xe(o=ye())&&(n._allItems=o),xe(o=ye())&&(n.items=o)}},viewQuery:function(e,n){if(1&e&&st(_i,5),2&e){let r;xe(r=ye())&&(n.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),t})(),$c=(()=>{class t extends Hh{constructor(e,n,r,o){super(e,n,r,o),this._elevationPrefix="mat-elevation-z",this._baseElevation=8}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Ue),b(SF),b(Gt))},t.\u0275cmp=je({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,n){2&e&&rt("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[We([{provide:Jy,useExisting:t}]),pe],ngContentSelectors:OQ,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mdc-menu-surface","mdc-menu-surface--open","mat-mdc-elevation-specific",3,"id","ngClass","keydown","click"],[1,"mat-mdc-menu-content","mdc-list"]],template:function(e,n){1&e&&(vi(),H(0,RQ,3,6,"ng-template"))},dependencies:[Es],styles:['.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}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-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;position:relative}.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;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.mdc-list-item{align-items:center}.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 .mdc-list-item__primary-text{white-space:normal}.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}.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:[Bg.transformMenu,Bg.fadeInItems]},changeDetection:0}),t})();const EF=new ae("mat-menu-scroll-strategy"),HQ={provide:EF,deps:[rr],useFactory:function VQ(t){return()=>t.scrollStrategies.reposition()}},TF=Go({passive:!0});let UQ=(()=>{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(n=>{this._destroyMenu(n),("click"===n||"tab"===n)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(n)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(e,n,r,o,a,s,c,l,d){this._overlay=e,this._element=n,this._viewContainerRef=r,this._menuItemInstance=s,this._dir=c,this._focusMonitor=l,this._ngZone=d,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=yt.EMPTY,this._hoverSubscription=yt.EMPTY,this._menuCloseSubscription=yt.EMPTY,this._changeDetectorRef=ht(Gt),this._handleTouchStart=u=>{wg(u)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new ke,this.onMenuOpen=this.menuOpened,this.menuClosed=new ke,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=a instanceof Hh?a:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,TF)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,TF),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 n=this._createOverlay(e),r=n.getConfig(),o=r.positionStrategy;this._setPosition(e,o),r.hasBackdrop=null==e.hasBackdrop?!this.triggersSubmenu():e.hasBackdrop,n.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof Hh&&(e._startAnimation(),e._directDescendantItems.changes.pipe(Tt(e.close)).subscribe(()=>{o.withLockedPosition(!1).reapplyLastPosition(),o.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,n):this._element.nativeElement.focus(n)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,n instanceof Hh?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(hi(r=>"void"===r.toState),ui(1),Tt(n.lazyContent._attached)).subscribe({next:()=>n.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n?.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 n=0,r=e.parentMenu;for(;r;)n++,r=r.parentMenu;e.setElevation(n)}}_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 n=this._getOverlayConfig(e);this._subscribeToPositions(e,n.positionStrategy),this._overlayRef=this._overlay.create(n),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new Rd({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,n){e.setPositionClasses&&n.positionChanges.subscribe(r=>{const o="start"===r.connectionPair.overlayX?"after":"before",a="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(o,a)):e.setPositionClasses(o,a)})}_setPosition(e,n){let[r,o]="before"===e.xPosition?["end","start"]:["start","end"],[a,s]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[c,l]=[a,s],[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"===a?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(c="top"===a?"bottom":"top",l="top"===s?"bottom":"top");n.withPositions([{originX:r,originY:c,overlayX:d,overlayY:a,offsetY:h},{originX:o,originY:c,overlayX:u,overlayY:a,offsetY:h},{originX:r,originY:l,overlayX:d,overlayY:s,offsetY:-h},{originX:o,originY:l,overlayX:u,overlayY:s,offsetY:-h}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return Vi(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:ze(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(hi(a=>a!==this._menuItemInstance),hi(()=>this._menuOpen)):ze(),n)}_handleMousedown(e){yg(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const n=e.keyCode;(13===n||32===n)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===n&&"ltr"===this.dir||37===n&&"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(hi(e=>e===this._menuItemInstance&&!e.disabled),Zy(0,Gy)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Hh&&this.menu._isAnimating?this.menu._animationDone.pipe(ui(1),Zy(0,Gy),Tt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new rs(e.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(b(rr),b(Ae),b(Fi),b(EF),b(Jy,8),b(va,10),b(_n,8),b(vo),b(Ue))},t.\u0275dir=Q({type:t,hostVars:3,hostBindings:function(e,n){1&e&&X("click",function(o){return n._handleClick(o)})("mousedown",function(o){return n._handleMousedown(o)})("keydown",function(o){return n._handleKeydown(o)}),2&e&&rt("aria-haspopup",n.menu?"menu":null)("aria-expanded",n.menuOpen)("aria-controls",n.menuOpen?n.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),t})(),jc=(()=>{class t extends UQ{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],exportAs:["matMenuTrigger"],features:[pe]}),t})(),zQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[HQ],imports:[nr,Vs,xt,Uc,Vc,xt]}),t})();const $Q=["determinateSpinner"];function jQ(t,i){if(1&t&&(za(),v(0,"svg",11),Ee(1,"circle",12),y()),2&t){const e=q();rt("viewBox",e._viewBox()),k(1),ir("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),rt("r",e._circleRadius())}}const WQ=Ns(class{constructor(t){this._elementRef=t}},"primary"),GQ=new ae("mat-progress-spinner-default-options",{providedIn:"root",factory:function qQ(){return{diameter:MF}}}),MF=100;let Pd=(()=>{class t extends WQ{constructor(e,n,r){super(e),this.mode="mat-spinner"===this._elementRef.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",this._value=0,this._diameter=MF,this._noopAnimations="NoopAnimations"===n&&!!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,An(e)))}get diameter(){return this._diameter}set diameter(e){this._diameter=An(e)}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=An(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}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Ri,8),b(GQ))},t.\u0275cmp=je({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(e,n){if(1&e&&st($Q,5),2&e){let r;xe(r=ye())&&(n._determinateCircle=r.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:12,hostBindings:function(e,n){2&e&&(rt("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===n.mode?n.value:null)("mode",n.mode),ir("width",n.diameter,"px")("height",n.diameter,"px"),Xe("_mat-animation-noopable",n._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===n.mode))},inputs:{color:"color",mode:"mode",value:"value",diameter:"diameter",strokeWidth:"strokeWidth"},exportAs:["matProgressSpinner"],features:[pe],decls:14,vars:11,consts:[["circle",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["determinateSpinner",""],["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(e,n){if(1&e&&(H(0,jQ,2,8,"ng-template",null,0,Tc),v(2,"div",1,2),za(),v(4,"svg",3),Ee(5,"circle",4),y()(),Rl(),v(6,"div",5)(7,"div",6)(8,"div",7),Yr(9,8),y(),v(10,"div",9),Yr(11,8),y(),v(12,"div",10),Yr(13,8),y()()()),2&e){const r=Nt(1);k(4),rt("viewBox",n._viewBox()),k(1),ir("stroke-dasharray",n._strokeCircumference(),"px")("stroke-dashoffset",n._strokeDashOffset(),"px")("stroke-width",n._circleStrokeWidth(),"%"),rt("r",n._circleRadius()),k(4),A("ngTemplateOutlet",r),k(2),A("ngTemplateOutlet",r),k(2),A("ngTemplateOutlet",r)}},dependencies:[Op],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{display:block;overflow:hidden;line-height: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, transparent)}@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}}@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._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}),t})(),QQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[nr,xt]}),t})();const YQ=["*"],tY=new ae("MAT_CARD_CONFIG");let e1=(()=>{class t{constructor(e){this.appearance=e?.appearance||"raised"}}return t.\u0275fac=function(e){return new(e||t)(b(tY,8))},t.\u0275cmp=je({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(e,n){2&e&&Xe("mat-mdc-card-outlined","outlined"===n.appearance)("mdc-card--outlined","outlined"===n.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:YQ,decls:1,vars:0,template:function(e,n){1&e&&(vi(),Je(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{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}.mat-mdc-card{position:relative;border-radius:var(--mdc-elevated-card-container-shape, var(--mdc-shape-medium, 4px));background-color:var(--mdc-elevated-card-container-color, transparent);border-width:0;border-style:solid;border-color:var(--mdc-elevated-card-container-color, transparent)}.mat-mdc-card .mdc-card::after{border-radius:var(--mdc-elevated-card-container-shape, var(--mdc-shape-medium, 4px))}.mat-mdc-card-outlined{border-width:var(--mdc-outlined-card-outline-width, 1px);border-style:solid;border-color:var(--mdc-outlined-card-outline-color, transparent)}.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}),t})(),pY=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt,nr,xt]}),t})();const _Y=[[["caption"]],[["colgroup"],["col"]]],bY=["caption","colgroup, col"];function t1(t){return class extends t{get sticky(){return this._sticky}set sticky(i){const e=this._sticky;this._sticky=$e(i),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const i=this._hasStickyChanged;return this._hasStickyChanged=!1,i}resetStickyChanged(){this._hasStickyChanged=!1}constructor(...i){super(...i),this._sticky=!1,this._hasStickyChanged=!1}}}const Ld=new ae("CDK_TABLE");let Nd=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(b(_i))},t.\u0275dir=Q({type:t,selectors:[["","cdkCellDef",""]]}),t})(),Bd=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(b(_i))},t.\u0275dir=Q({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),Vg=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(b(_i))},t.\u0275dir=Q({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class wY{}const CY=t1(wY);let as=(()=>{class t extends CY{get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const n=this._stickyEnd;this._stickyEnd=$e(e),this._hasStickyChanged=n!==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())}}return t.\u0275fac=function(e){return new(e||t)(b(Ld,8))},t.\u0275dir=Q({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,n,r){if(1&e&&(Bt(r,Nd,5),Bt(r,Bd,5),Bt(r,Vg,5)),2&e){let o;xe(o=ye())&&(n.cell=o.first),xe(o=ye())&&(n.headerCell=o.first),xe(o=ye())&&(n.footerCell=o.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[We([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),pe]}),t})();class n1{constructor(i,e){e.nativeElement.classList.add(...i._columnCssClassName)}}let r1=(()=>{class t extends n1{constructor(e,n){super(e,n)}}return t.\u0275fac=function(e){return new(e||t)(b(as),b(Ae))},t.\u0275dir=Q({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[pe]}),t})(),o1=(()=>{class t extends n1{constructor(e,n){if(super(e,n),1===e._table?._elementRef.nativeElement.nodeType){const r=e._table._elementRef.nativeElement.getAttribute("role");n.nativeElement.setAttribute("role","grid"===r||"treegrid"===r?"gridcell":"cell")}}}return t.\u0275fac=function(e){return new(e||t)(b(as),b(Ae))},t.\u0275dir=Q({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[pe]}),t})();class IF{constructor(){this.tasks=[],this.endTasks=[]}}const a1=new ae("_COALESCED_STYLE_SCHEDULER");let FF=(()=>{class t{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new Ce}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 IF,this._getScheduleObservable().pipe(Tt(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new IF;for(const n of e.tasks)n();for(const n of e.endTasks)n()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Zi(Promise.resolve(void 0)):this._ngZone.onStable.pipe(ui(1))}}return t.\u0275fac=function(e){return new(e||t)(G(Ue))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})(),s1=(()=>{class t{constructor(e,n){this.template=e,this._differs=n}ngOnChanges(e){if(!this._columnsDiffer){const n=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(n).create(),this._columnsDiffer.diff(n)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof Uh?e.headerCell.template:this instanceof zh?e.footerCell.template:e.cell.template}}return t.\u0275fac=function(e){return new(e||t)(b(_i),b(Qa))},t.\u0275dir=Q({type:t,features:[Ei]}),t})();class kY extends s1{}const DY=t1(kY);let Uh=(()=>{class t extends DY{constructor(e,n,r){super(e,n),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return t.\u0275fac=function(e){return new(e||t)(b(_i),b(Qa),b(Ld,8))},t.\u0275dir=Q({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[pe,Ei]}),t})();class SY extends s1{}const EY=t1(SY);let zh=(()=>{class t extends EY{constructor(e,n,r){super(e,n),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return t.\u0275fac=function(e){return new(e||t)(b(_i),b(Qa),b(Ld,8))},t.\u0275dir=Q({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[pe,Ei]}),t})(),Hg=(()=>{class t extends s1{constructor(e,n,r){super(e,n),this._table=r}}return t.\u0275fac=function(e){return new(e||t)(b(_i),b(Qa),b(Ld,8))},t.\u0275dir=Q({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[pe]}),t})(),ss=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.mostRecentCellOutlet=null,t.\u0275fac=function(e){return new(e||t)(b(Fi))},t.\u0275dir=Q({type:t,selectors:[["","cdkCellOutlet",""]]}),t})(),c1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=je({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(e,n){1&e&&Yr(0,0)},dependencies:[ss],encapsulation:2}),t})(),d1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=je({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,n){1&e&&Yr(0,0)},dependencies:[ss],encapsulation:2}),t})(),Ug=(()=>{class t{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return t.\u0275fac=function(e){return new(e||t)(b(_i))},t.\u0275dir=Q({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const RF=["top","bottom","left","right"];class TY{constructor(i,e,n,r,o=!0,a=!0,s){this._isNativeHtmlTable=i,this._stickCellCss=e,this.direction=n,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=a,this._positionListener=s,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(i,e){const n=[];for(const r of i)if(r.nodeType===r.ELEMENT_NODE){n.push(r);for(let o=0;o{for(const r of n)this._removeStickyStyle(r,e)})}updateStickyColumns(i,e,n,r=!0){if(!i.length||!this._isBrowser||!e.some(h=>h)&&!n.some(h=>h))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const o=i[0],a=o.children.length,s=this._getCellWidths(o,r),c=this._getStickyStartColumnPositions(s,e),l=this._getStickyEndColumnPositions(s,n),d=e.lastIndexOf(!0),u=n.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const h="rtl"===this.direction,f=h?"right":"left",m=h?"left":"right";for(const g of i)for(let p=0;pe[p]?g:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===u?[]:s.slice(u).map((g,p)=>n[p+u]?g:null).reverse()}))})}stickRows(i,e,n){if(!this._isBrowser)return;const r="bottom"===n?i.slice().reverse():i,o="bottom"===n?e.slice().reverse():e,a=[],s=[],c=[];for(let d=0,u=0;d{for(let d=0;d{e.some(r=>!r)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0,!1)})}_removeStickyStyle(i,e){for(const r of e)i.style[r]="",i.classList.remove(this._borderCellCss[r]);RF.some(r=>-1===e.indexOf(r)&&i.style[r])?i.style.zIndex=this._getCalculatedZIndex(i):(i.style.zIndex="",this._needsPositionStickyOnElement&&(i.style.position=""),i.classList.remove(this._stickCellCss))}_addStickyStyle(i,e,n,r){i.classList.add(this._stickCellCss),r&&i.classList.add(this._borderCellCss[e]),i.style[e]=`${n}px`,i.style.zIndex=this._getCalculatedZIndex(i),this._needsPositionStickyOnElement&&(i.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(i){const e={top:100,bottom:10,left:1,right:1};let n=0;for(const r of RF)i.style[r]&&(n+=e[r]);return n?`${n}`:""}_getCellWidths(i,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const n=[],r=i.children;for(let o=0;o0;o--)e[o]&&(n[o]=r,r+=i[o]);return n}}const u1=new ae("CDK_SPL");let zg=(()=>{class t{constructor(e,n){this.viewContainer=e,this.elementRef=n}}return t.\u0275fac=function(e){return new(e||t)(b(Fi),b(Ae))},t.\u0275dir=Q({type:t,selectors:[["","rowOutlet",""]]}),t})(),$g=(()=>{class t{constructor(e,n){this.viewContainer=e,this.elementRef=n}}return t.\u0275fac=function(e){return new(e||t)(b(Fi),b(Ae))},t.\u0275dir=Q({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),jg=(()=>{class t{constructor(e,n){this.viewContainer=e,this.elementRef=n}}return t.\u0275fac=function(e){return new(e||t)(b(Fi),b(Ae))},t.\u0275dir=Q({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),Wg=(()=>{class t{constructor(e,n){this.viewContainer=e,this.elementRef=n}}return t.\u0275fac=function(e){return new(e||t)(b(Fi),b(Ae))},t.\u0275dir=Q({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),Gg=(()=>{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=$e(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=$e(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(e,n,r,o,a,s,c,l,d,u,h,f){this._differs=e,this._changeDetectorRef=n,this._elementRef=r,this._dir=a,this._platform=c,this._viewRepeater=l,this._coalescedStyleScheduler=d,this._viewportRuler=u,this._stickyPositioningListener=h,this._ngZone=f,this._onDestroy=new Ce,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 ke,this.viewChange=new Bn({start:0,end:Number.MAX_VALUE}),o||this._elementRef.nativeElement.setAttribute("role","table"),this._document=s,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,n)=>this.trackBy?this.trackBy(n.dataIndex,n.data):n),this._viewportRuler.change().pipe(Tt(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const n=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||n,this._forceRecalculateCellWidths=n,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(),hy(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 n=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,n,(r,o,a)=>this._getEmbeddedViewArgs(r.item,a),r=>r.item.data,r=>{1===r.operation&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{n.get(r.currentIndex).context.$implicit=r.item.data}),this._updateNoDataRow(),this._ngZone&&Ue.isInAngularZone()?this._ngZone.onStable.pipe(ui(1),Tt(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),r=this._elementRef.nativeElement.querySelector("thead");r&&(r.style.display=e.length?"":"none");const o=this._headerRowDefs.map(a=>a.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,o,"top"),this._headerRowDefs.forEach(a=>a.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(a=>a.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,o,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,o),this._footerRowDefs.forEach(a=>a.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...n,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((o,a)=>{this._addStickyColumnStyles([o],this._headerRowDefs[a])}),this._rowDefs.forEach(o=>{const a=[];for(let s=0;s{this._addStickyColumnStyles([o],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(o=>o.resetStickyChanged())}_getAllRenderRows(){const e=[],n=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const s=r&&r.has(a)?r.get(a):[];if(s.length){const c=s.shift();return c.dataIndex=n,c}return{data:e,rowDef:a,dataIndex:n}})}_cacheColumnDefs(){this._columnDefsByName.clear(),qg(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(n=>{this._columnDefsByName.has(n.name),this._columnDefsByName.set(n.name,n)})}_cacheRowDefs(){this._headerRowDefs=qg(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=qg(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=qg(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(n=>!n.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(a,s)=>a||!!s.getColumnsDiff(),n=this._rowDefs.reduce(e,!1);n&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const o=this._footerRowDefs.reduce(e,!1);return o&&this._forceRenderFooterRows(),n||r||o}_switchDataSource(e){this._data=[],hy(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;hy(this.dataSource)?e=this.dataSource.connect(this):function gY(t){return!!t&&(t instanceof ni||Wt(t.lift)&&Wt(t.subscribe))}(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=ze(this.dataSource)),this._renderChangeSubscription=e.pipe(Tt(this._onDestroy)).subscribe(n=>{this._data=n||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,n)=>this._renderRow(this._headerRowOutlet,e,n)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,n)=>this._renderRow(this._footerRowOutlet,e,n)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,n){const r=Array.from(n.columns||[]).map(s=>this._columnDefsByName.get(s)),o=r.map(s=>s.sticky),a=r.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,o,a,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const n=[];for(let r=0;r!o.when||o.when(n,e));else{let o=this._rowDefs.find(a=>a.when&&a.when(n,e))||this._defaultRowDef;o&&r.push(o)}return r}_getEmbeddedViewArgs(e,n){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:n}}_renderRow(e,n,r,o={}){const a=e.viewContainer.createEmbeddedView(n.template,o,r);return this._renderCellTemplateForItem(n,o),a}_renderCellTemplateForItem(e,n){for(let r of this._getCellTemplates(e))ss.mostRecentCellOutlet&&ss.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,n);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let n=0,r=e.length;n{const r=this._columnDefsByName.get(n);return e.extractCellTemplate(r)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),n=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const r of n){const o=this._document.createElement(r.tag);o.setAttribute("role","rowgroup");for(const a of r.outlets)o.appendChild(a.elementRef.nativeElement);e.appendChild(o)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(n,r)=>n||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 TY(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:ze()).pipe(Tt(this._onDestroy)).subscribe(n=>{this._stickyStyler.direction=n,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(n=>!n._table||n._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const n=0===this._rowOutlet.viewContainer.length;if(n===this._isShowingNoDataRow)return;const r=this._noDataRowOutlet.viewContainer;if(n){const o=r.createEmbeddedView(e.templateRef),a=o.rootNodes[0];1===o.rootNodes.length&&a?.nodeType===this._document.ELEMENT_NODE&&(a.setAttribute("role","row"),a.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=n}}return t.\u0275fac=function(e){return new(e||t)(b(Qa),b(Gt),b(Ae),uo("role"),b(_n,8),b(it),b(xi),b(kh),b(a1),b(_a),b(u1,12),b(Ue,8))},t.\u0275cmp=je({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,n,r){if(1&e&&(Bt(r,Ug,5),Bt(r,as,5),Bt(r,Hg,5),Bt(r,Uh,5),Bt(r,zh,5)),2&e){let o;xe(o=ye())&&(n._noDataRow=o.first),xe(o=ye())&&(n._contentColumnDefs=o),xe(o=ye())&&(n._contentRowDefs=o),xe(o=ye())&&(n._contentHeaderRowDefs=o),xe(o=ye())&&(n._contentFooterRowDefs=o)}},viewQuery:function(e,n){if(1&e&&(st(zg,7),st($g,7),st(jg,7),st(Wg,7)),2&e){let r;xe(r=ye())&&(n._rowOutlet=r.first),xe(r=ye())&&(n._headerRowOutlet=r.first),xe(r=ye())&&(n._footerRowOutlet=r.first),xe(r=ye())&&(n._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,n){2&e&&Xe("cdk-table-fixed-layout",n.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[We([{provide:Ld,useExisting:t},{provide:kh,useClass:ZA},{provide:a1,useClass:FF},{provide:u1,useValue:null}])],ngContentSelectors:bY,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,n){1&e&&(vi(_Y),Je(0),Je(1,1),Yr(2,0)(3,1)(4,2)(5,3))},dependencies:[zg,$g,jg,Wg],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),t})();function qg(t,i){return t.concat(Array.from(i))}let AY=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[Xy]}),t})();const IY=[[["caption"]],[["colgroup"],["col"]]],FY=["caption","colgroup, col"];let $h=(()=>{class t extends Gg{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")}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275cmp=je({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(e,n){2&e&&Xe("mdc-table-fixed-layout",n.fixedLayout)},exportAs:["matTable"],features:[We([{provide:Gg,useExisting:t},{provide:Ld,useExisting:t},{provide:a1,useClass:FF},{provide:kh,useClass:ZA},{provide:u1,useValue:null}]),pe],ngContentSelectors:FY,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,n){1&e&&(vi(IY),Je(0),Je(1,1),Yr(2,0)(3,1)(4,2)(5,3))},dependencies:[zg,$g,jg,Wg],styles:[".mdc-data-table{border-radius:var(--mdc-shape-medium, 4px);border-width:1px;border-style:solid}.mdc-data-table .mdc-data-table__header-cell:first-child{border-top-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:first-child,.mdc-data-table .mdc-data-table__header-cell:first-child[dir=rtl]{border-top-right-radius:var(--mdc-shape-medium, 4px);border-top-left-radius:0}.mdc-data-table .mdc-data-table__header-cell:last-child{border-top-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:last-child,.mdc-data-table .mdc-data-table__header-cell:last-child[dir=rtl]{border-top-left-radius:var(--mdc-shape-medium, 4px);border-top-right-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child{border-bottom-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child[dir=rtl]{border-bottom-right-radius:var(--mdc-shape-medium, 4px);border-bottom-left-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child{border-bottom-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child[dir=rtl]{border-bottom-left-radius:var(--mdc-shape-medium, 4px);border-bottom-right-radius:0}.mdc-data-table__cell,.mdc-data-table__header-cell{border-bottom-width:1px;border-bottom-style:solid}.mdc-data-table__pagination{border-top-width:1px;border-top-style:solid}.mdc-data-table__row:last-child .mdc-data-table__cell{border-bottom:none}.mdc-data-table__row{height:52px}.mdc-data-table__pagination{min-height:52px}.mdc-data-table__header-row{height:56px}.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}.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__cell--checkbox{width:1px}.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--checkbox{width:1px}.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__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table--sticky-header .mdc-data-table__header-cell{position:sticky;top:0;z-index:1}.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__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--checkbox{width:1px}.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__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.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__cell--checkbox{width:1px}.mdc-data-table__pagination{box-sizing:border-box;display:flex;justify-content:flex-end}.mdc-data-table__pagination-trailing{margin-left:4px;margin-right:0;align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end}[dir=rtl] .mdc-data-table__pagination-trailing,.mdc-data-table__pagination-trailing[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__pagination-navigation{align-items:center;display:flex}.mdc-data-table__pagination-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__pagination-button .mdc-button__icon,.mdc-data-table__pagination-button .mdc-button__icon[dir=rtl]{transform:rotate(180deg)}[dir=rtl] .mdc-data-table__pagination-button,.mdc-data-table__pagination-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__pagination-total{margin-left:14px;margin-right:36px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-total,.mdc-data-table__pagination-total[dir=rtl]{margin-left:36px;margin-right:14px}.mdc-data-table__pagination-rows-per-page{margin-left:0;margin-right:22px;align-items:center;display:inline-flex}[dir=rtl] .mdc-data-table__pagination-rows-per-page,.mdc-data-table__pagination-rows-per-page[dir=rtl]{margin-left:22px;margin-right:0}.mdc-data-table__pagination-rows-per-page-label{margin-left:0;margin-right:12px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-rows-per-page-label,.mdc-data-table__pagination-rows-per-page-label[dir=rtl]{margin-left:12px;margin-right:0}.mdc-data-table__pagination-rows-per-page-select{min-width:var(--mdc-menu-min-width, 80px);margin:8px 0}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{width:100%;min-width:80px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{height:36px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{font-size:.75rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__dropdown-icon{width:20px;height:20px}.mdc-data-table__pagination-rows-per-page-select.mdc-select--outlined .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 56px)}.mdc-data-table__pagination-rows-per-page-select .mdc-list-item.mdc-list-item--with-one-line{height:36px}.mdc-data-table__progress-indicator{display:none;position:absolute;width:100%}.mdc-data-table--in-progress .mdc-data-table__progress-indicator{display:block}.mdc-data-table__scrim{background-color:var(--mdc-theme-surface, #fff);height:100%;opacity:.32;position:absolute;top:0;width:100%}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-sticky{position:sticky !important}.mat-mdc-table{table-layout:auto;white-space:normal}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-mdc-row:hover,.mat-mdc-table .mat-mdc-footer-row:hover{background-color: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}),t})(),Vd=(()=>{class t extends Nd{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","matCellDef",""]],features:[We([{provide:Nd,useExisting:t}]),pe]}),t})(),Hd=(()=>{class t extends Bd{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","matHeaderCellDef",""]],features:[We([{provide:Bd,useExisting:t}]),pe]}),t})(),Ud=(()=>{class t extends as{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[We([{provide:as,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),pe]}),t})(),zd=(()=>{class t extends r1{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[pe]}),t})(),$d=(()=>{class t extends o1{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[pe]}),t})(),jh=(()=>{class t extends Uh{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[We([{provide:Uh,useExisting:t}]),pe]}),t})(),Wh=(()=>{class t extends Hg{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[We([{provide:Hg,useExisting:t}]),pe]}),t})(),Gh=(()=>{class t extends c1{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275cmp=je({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:[We([{provide:c1,useExisting:t}]),pe],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,n){1&e&&Yr(0,0)},dependencies:[ss],encapsulation:2}),t})(),qh=(()=>{class t extends d1{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275cmp=je({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[We([{provide:d1,useExisting:t}]),pe],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,n){1&e&&Yr(0,0)},dependencies:[ss],encapsulation:2}),t})(),zY=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt,AY,xt]}),t})();class jY extends uy{get data(){return this._data.value}set data(i){i=Array.isArray(i)?i:[],this._data.next(i),this._renderChangesSubscription||this._filterData(i)}get filter(){return this._filter.value}set filter(i){this._filter.next(i),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(i){this._sort=i,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(i){this._paginator=i,this._updateChangeSubscription()}constructor(i=[]){super(),this._renderData=new Bn([]),this._filter=new Bn(""),this._internalPageChanges=new Ce,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,n)=>{const r=e[n];if(bI(r)){const o=Number(r);return o<9007199254740991?o:r}return r},this.sortData=(e,n)=>{const r=n.active,o=n.direction;return r&&""!=o?e.sort((a,s)=>{let c=this.sortingDataAccessor(a,r),l=this.sortingDataAccessor(s,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((a,s)=>a+e[s]+"\u25ec","").toLowerCase(),o=n.trim().toLowerCase();return-1!=r.indexOf(o)},this._data=new Bn(i),this._updateChangeSubscription()}_updateChangeSubscription(){const i=this._sort?Vi(this._sort.sortChange,this._sort.initialized):ze(null),e=this._paginator?Vi(this._paginator.page,this._internalPageChanges,this._paginator.initialized):ze(null),r=Ic([this._data,this._filter]).pipe(Ye(([s])=>this._filterData(s))),o=Ic([r,i]).pipe(Ye(([s])=>this._orderData(s))),a=Ic([o,e]).pipe(Ye(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(i){return this.filteredData=null==this.filter||""===this.filter?i:i.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(i){return this.sort?this.sortData(i.slice(),this.sort):i}_pageData(i){if(!this.paginator)return i;const e=this.paginator.pageIndex*this.paginator.pageSize;return i.slice(e,e+this.paginator.pageSize)}_updatePaginator(i){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=i,e.pageIndex>0)){const n=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,n);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 Xh extends jY{}let PF=(()=>{class t{constructor(e,n){this._renderer=e,this._elementRef=n,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(b(ja),b(Ae))},t.\u0275dir=Q({type:t}),t})(),Wc=(()=>{class t extends PF{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,features:[pe]}),t})();const Xn=new ae("NgValueAccessor"),GY={provide:Xn,useExisting:Xt(()=>Us),multi:!0},XY=new ae("CompositionEventMode");let Us=(()=>{class t extends PF{constructor(e,n,r){super(e,n),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function qY(){const t=Ya()?Ya().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)}}return t.\u0275fac=function(e){return new(e||t)(b(ja),b(Ae),b(XY,8))},t.\u0275dir=Q({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(e,n){1&e&&X("input",function(o){return n._handleInput(o.target.value)})("blur",function(){return n.onTouched()})("compositionstart",function(){return n._compositionStart()})("compositionend",function(o){return n._compositionEnd(o.target.value)})},features:[We([GY]),pe]}),t})();const QY=!1;function zs(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function NF(t){return null!=t&&"number"==typeof t.length}const Un=new ae("NgValidators"),$s=new ae("NgAsyncValidators"),YY=/^(?=.{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 jd{static min(i){return function BF(t){return i=>{if(zs(i.value)||zs(t))return null;const e=parseFloat(i.value);return!isNaN(e)&&e{if(zs(i.value)||zs(t))return null;const e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null}}(i)}static required(i){return HF(i)}static requiredTrue(i){return function UF(t){return!0===t.value?null:{required:!0}}(i)}static email(i){return function zF(t){return zs(t.value)||YY.test(t.value)?null:{email:!0}}(i)}static minLength(i){return $F(i)}static maxLength(i){return function jF(t){return i=>NF(i.value)&&i.value.length>t?{maxlength:{requiredLength:t,actualLength:i.value.length}}:null}(i)}static pattern(i){return function WF(t){if(!t)return Xg;let i,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),i=new RegExp(e)):(e=t.toString(),i=t),n=>{if(zs(n.value))return null;const r=n.value;return i.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(i)}static nullValidator(i){return null}static compose(i){return KF(i)}static composeAsync(i){return ZF(i)}}function HF(t){return zs(t.value)?{required:!0}:null}function $F(t){return i=>zs(i.value)||!NF(i.value)?null:i.value.length{i=null!=e?{...i,...e}:i}),0===Object.keys(i).length?null:i}function QF(t,i){return i.map(e=>e(t))}function YF(t){return t.map(i=>function KY(t){return!t.validate}(i)?i:e=>i.validate(e))}function KF(t){if(!t)return null;const i=t.filter(GF);return 0==i.length?null:function(e){return XF(QF(e,i))}}function h1(t){return null!=t?KF(YF(t)):null}function ZF(t){if(!t)return null;const i=t.filter(GF);return 0==i.length?null:function(e){return vF(QF(e,i).map(qF)).pipe(Ye(XF))}}function f1(t){return null!=t?ZF(YF(t)):null}function JF(t,i){return null===t?[i]:Array.isArray(t)?[...t,i]:[t,i]}function eR(t){return t._rawValidators}function tR(t){return t._rawAsyncValidators}function m1(t){return t?Array.isArray(t)?t:[t]:[]}function Qg(t,i){return Array.isArray(t)?t.includes(i):t===i}function iR(t,i){const e=m1(i);return m1(t).forEach(r=>{Qg(e,r)||e.push(r)}),e}function nR(t,i){return m1(i).filter(e=>!Qg(t,e))}class rR{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(i){this._rawValidators=i||[],this._composedValidatorFn=h1(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=f1(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i){this.control&&this.control.reset(i)}hasError(i,e){return!!this.control&&this.control.hasError(i,e)}getError(i,e){return this.control?this.control.getError(i,e):null}}class Cr extends rR{get formDirective(){return null}get path(){return null}}class xa extends rR{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class oR{constructor(i){this._cd=i}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 ya=(()=>{class t extends oR{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(b(xa,2))},t.\u0275dir=Q({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,n){2&e&&Xe("ng-untouched",n.isUntouched)("ng-touched",n.isTouched)("ng-pristine",n.isPristine)("ng-dirty",n.isDirty)("ng-valid",n.isValid)("ng-invalid",n.isInvalid)("ng-pending",n.isPending)},features:[pe]}),t})(),Qh=(()=>{class t extends oR{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(b(Cr,10))},t.\u0275dir=Q({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,n){2&e&&Xe("ng-untouched",n.isUntouched)("ng-touched",n.isTouched)("ng-pristine",n.isPristine)("ng-dirty",n.isDirty)("ng-valid",n.isValid)("ng-invalid",n.isInvalid)("ng-pending",n.isPending)("ng-submitted",n.isSubmitted)},features:[pe]}),t})();function aR(t,i){return t?`with name: '${i}'`:`at index: ${i}`}const _1=!1,Yh="VALID",Kg="INVALID",Wd="PENDING",Kh="DISABLED";function b1(t){return(Zg(t)?t.validators:t)||null}function v1(t,i){return(Zg(i)?i.asyncValidators:t)||null}function Zg(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function sR(t,i,e){const n=t.controls;if(!(i?Object.keys(n):n).length)throw new ue(1e3,_1?function tK(t){return`\n There are no form controls registered with this ${t?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(i):"");if(!n[e])throw new ue(1001,_1?function iK(t,i){return`Cannot find form control ${aR(t,i)}`}(i,e):"")}function cR(t,i,e){t._forEachChild((n,r)=>{if(void 0===e[r])throw new ue(1002,_1?function nK(t,i){return`Must supply a value for form control ${aR(t,i)}`}(i,r):"")})}class Jg{constructor(i,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(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get valid(){return this.status===Yh}get invalid(){return this.status===Kg}get pending(){return this.status==Wd}get disabled(){return this.status===Kh}get enabled(){return this.status!==Kh}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(iR(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(iR(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(nR(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(nR(i,this._rawAsyncValidators))}hasValidator(i){return Qg(this._rawValidators,i)}hasAsyncValidator(i){return Qg(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){this.touched=!0,this._parent&&!i.onlySelf&&this._parent.markAsTouched(i)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(i=>i.markAllAsTouched())}markAsUntouched(i={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}markAsDirty(i={}){this.pristine=!1,this._parent&&!i.onlySelf&&this._parent.markAsDirty(i)}markAsPristine(i={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}markAsPending(i={}){this.status=Wd,!1!==i.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!i.onlySelf&&this._parent.markAsPending(i)}disable(i={}){const e=this._parentMarkedDirty(i.onlySelf);this.status=Kh,this.errors=null,this._forEachChild(n=>{n.disable({...i,onlySelf:!0})}),this._updateValue(),!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...i,skipPristineCheck:e}),this._onDisabledChange.forEach(n=>n(!0))}enable(i={}){const e=this._parentMarkedDirty(i.onlySelf);this.status=Yh,this._forEachChild(n=>{n.enable({...i,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors({...i,skipPristineCheck:e}),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Yh||this.status===Wd)&&this._runAsyncValidator(i.emitEvent)),!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(i)}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Kh:Yh}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i){if(this.asyncValidator){this.status=Wd,this._hasOwnPendingAsyncValidator=!0;const e=qF(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:i})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(!1!==e.emitEvent)}get(i){let e=i;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((n,r)=>n&&n._find(r),this)}getError(i,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(i)}_initObservables(){this.valueChanges=new ke,this.statusChanges=new ke}_calculateStatus(){return this._allControlsDisabled()?Kh:this.errors?Kg:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Wd)?Wd:this._anyControlsHaveStatus(Kg)?Kg:Yh}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i={}){this.pristine=!this._anyControlsDirty(),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}_updateTouched(i={}){this.touched=this._anyControlsTouched(),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){Zg(i)&&null!=i.updateOn&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=function rK(t){return Array.isArray(t)?h1(t):t||null}(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=function oK(t){return Array.isArray(t)?f1(t):t||null}(this._rawAsyncValidators)}}class Gd extends Jg{constructor(i,e,n){super(b1(e),v1(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(i,e){return this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,n={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){cR(this,!0,i),Object.keys(i).forEach(n=>{sR(this,!0,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){null!=i&&(Object.keys(i).forEach(n=>{const r=this.controls[n];r&&r.patchValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((n,r)=>{n.reset(i[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(i,e,n)=>(i[n]=e.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(e,n)=>!!n._syncPendingControls()||e);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&i(n,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(const[e,n]of Object.entries(this.controls))if(this.contains(e)&&i(n))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,n,r)=>((n.enabled||this.disabled)&&(e[r]=n.value),e))}_reduceChildren(i,e){let n=i;return this._forEachChild((r,o)=>{n=e(n,r,o)}),n}_allControlsDisabled(){for(const i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return this.controls.hasOwnProperty(i)?this.controls[i]:null}}class lR extends Gd{}const Gc=new ae("CallSetDisabledState",{providedIn:"root",factory:()=>Zh}),Zh="always";function e0(t,i){return[...i.path,t]}function Jh(t,i,e=Zh){x1(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&i.valueAccessor.setDisabledState?.(t.disabled),function sK(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&dR(t,i)})}(t,i),function lK(t,i){const e=(n,r)=>{i.valueAccessor.writeValue(n),r&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,i),function cK(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&dR(t,i),"submit"!==t.updateOn&&t.markAsTouched()})}(t,i),function aK(t,i){if(i.valueAccessor.setDisabledState){const e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,i)}function t0(t,i,e=!0){const n=()=>{};i.valueAccessor&&(i.valueAccessor.registerOnChange(n),i.valueAccessor.registerOnTouched(n)),r0(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function n0(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function x1(t,i){const e=eR(t);null!==i.validator?t.setValidators(JF(e,i.validator)):"function"==typeof e&&t.setValidators([e]);const n=tR(t);null!==i.asyncValidator?t.setAsyncValidators(JF(n,i.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);const r=()=>t.updateValueAndValidity();n0(i._rawValidators,r),n0(i._rawAsyncValidators,r)}function r0(t,i){let e=!1;if(null!==t){if(null!==i.validator){const r=eR(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(a=>a!==i.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(null!==i.asyncValidator){const r=tR(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(a=>a!==i.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}const n=()=>{};return n0(i._rawValidators,n),n0(i._rawAsyncValidators,n),e}function dR(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function uR(t,i){x1(t,i)}function w1(t,i){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(i,e.currentValue)}function hR(t,i){t._syncPendingControls(),i.forEach(e=>{const n=e.control;"submit"===n.updateOn&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function C1(t,i){if(!i)return null;let e,n,r;return Array.isArray(i),i.forEach(o=>{o.constructor===Us?e=o:function hK(t){return Object.getPrototypeOf(t.constructor)===Wc}(o)?n=o:r=o}),r||n||e||null}const mK={provide:Cr,useExisting:Xt(()=>qc)},ef=(()=>Promise.resolve())();let qc=(()=>{class t extends Cr{constructor(e,n,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._directives=new Set,this.ngSubmit=new ke,this.form=new Gd({},h1(e),f1(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){ef.then(()=>{const n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Jh(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){ef.then(()=>{const n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){ef.then(()=>{const n=this._findContainer(e.path),r=new Gd({});uR(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){ef.then(()=>{const n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){ef.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,hR(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){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}}return t.\u0275fac=function(e){return new(e||t)(b(Un,10),b($s,10),b(Gc,8))},t.\u0275dir=Q({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,n){1&e&&X("submit",function(o){return n.onSubmit(o)})("reset",function(){return n.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[We([mK]),pe]}),t})();function fR(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}function mR(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const Jr=class extends Jg{constructor(i=null,e,n){super(b1(e),v1(n,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Zg(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=mR(i)?i.value:i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(n=>n(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){fR(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){fR(this._onDisabledChange,i)}_forEachChild(i){}_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(i){mR(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}},pK=Jr,bK={provide:xa,useExisting:Xt(()=>cs)},_R=(()=>Promise.resolve())();let cs=(()=>{class t extends xa{constructor(e,n,r,o,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this.control=new Jr,this._registered=!1,this.update=new ke,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=C1(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),w1(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(){Jh(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){_R.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const n=e.isDisabled.currentValue,r=0!==n&&hd(n);_R.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?e0(e,this._parent):[e]}}return t.\u0275fac=function(e){return new(e||t)(b(Cr,9),b(Un,10),b($s,10),b(Xn,10),b(Gt,8),b(Gc,8))},t.\u0275dir=Q({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[We([bK]),pe,Ei]}),t})(),tf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),vR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({}),t})();const k1=new ae("NgModelWithFormControlWarning"),CK={provide:xa,useExisting:Xt(()=>o0)};let o0=(()=>{class t extends xa{set isDisabled(e){}constructor(e,n,r,o,a){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=a,this.update=new ke,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=C1(0,r)}ngOnChanges(e){if(this._isControlChanged(e)){const n=e.form.previousValue;n&&t0(n,this,!1),Jh(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}w1(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&t0(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")}}return t._ngModelWarningSentOnce=!1,t.\u0275fac=function(e){return new(e||t)(b(Un,10),b($s,10),b(Xn,10),b(k1,8),b(Gc,8))},t.\u0275dir=Q({type:t,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[We([CK]),pe,Ei]}),t})();const kK={provide:Cr,useExisting:Xt(()=>js)};let js=(()=>{class t extends Cr{constructor(e,n,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new ke,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(r0(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 n=this.form.get(e.path);return Jh(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){t0(e.control||null,e,!1),function fK(t,i){const e=t.indexOf(i);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,n){this.form.get(e.path).setValue(n)}onSubmit(e){return this.submitted=!0,hR(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const n=e.control,r=this.form.get(e.path);n!==r&&(t0(n||null,e),(t=>t instanceof Jr)(r)&&(Jh(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const n=this.form.get(e.path);uR(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const n=this.form.get(e.path);n&&function dK(t,i){return r0(t,i)}(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){x1(this.form,this),this._oldForm&&r0(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(b(Un,10),b($s,10),b(Gc,8))},t.\u0275dir=Q({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,n){1&e&&X("submit",function(o){return n.onSubmit(o)})("reset",function(){return n.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[We([kK]),pe,Ei]}),t})();const EK={provide:xa,useExisting:Xt(()=>nf)};let nf=(()=>{class t extends xa{set isDisabled(e){}constructor(e,n,r,o,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.update=new ke,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=C1(0,o)}ngOnChanges(e){this._added||this._setUpControl(),w1(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 e0(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return t._ngModelWarningSentOnce=!1,t.\u0275fac=function(e){return new(e||t)(b(Cr,13),b(Un,10),b($s,10),b(Xn,10),b(k1,8))},t.\u0275dir=Q({type:t,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[We([EK]),pe,Ei]}),t})();let Xc=(()=>{class t{constructor(){this._validator=Xg}ngOnChanges(e){if(this.inputName in e){const n=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):Xg,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,features:[Ei]}),t})();const LK={provide:Un,useExisting:Xt(()=>a0),multi:!0};let a0=(()=>{class t extends Xc{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=hd,this.createValidator=e=>HF}enabled(e){return e}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,n){2&e&&rt("required",n._enabled?"":null)},inputs:{required:"required"},features:[We([LK]),pe]}),t})();const VK={provide:Un,useExisting:Xt(()=>M1),multi:!0};let M1=(()=>{class t extends Xc{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=e=>function DR(t){return"number"==typeof t?t:parseInt(t,10)}(e),this.createValidator=e=>$F(e)}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(e,n){2&e&&rt("minlength",n._enabled?n.minlength:null)},inputs:{minlength:"minlength"},features:[We([VK]),pe]}),t})(),FR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[vR]}),t})();class RR extends Jg{constructor(i,e,n){super(b1(e),v1(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(i){return this.controls[this._adjustIndex(i)]}push(i,e={}){this.controls.push(i),this._registerControl(i),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(i,e,n={}){this.controls.splice(i,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(i,e={}){let n=this._adjustIndex(i);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(i,e,n={}){let r=this._adjustIndex(i);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:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(i,e={}){cR(this,!1,i),i.forEach((n,r)=>{sR(this,!1,r),this.at(r).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){null!=i&&(i.forEach((n,r)=>{this.at(r)&&this.at(r).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i=[],e={}){this._forEachChild((n,r)=>{n.reset(i[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(i=>i.getRawValue())}clear(i={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}_adjustIndex(i){return i<0?i+this.length:i}_syncPendingControls(){let i=this.controls.reduce((e,n)=>!!n._syncPendingControls()||e,!1);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){this.controls.forEach((e,n)=>{i(e,n)})}_updateValue(){this.value=this.controls.filter(i=>i.enabled||this.disabled).map(i=>i.value)}_anyControls(i){return this.controls.some(e=>e.enabled&&i(e))}_setUpControls(){this._forEachChild(i=>this._registerControl(i))}_allControlsDisabled(){for(const i of this.controls)if(i.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}_find(i){return this.at(i)??null}}function OR(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let PR=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,n=null){const r=this._reduceControls(e);let o={};return OR(n)?o=n:null!==n&&(o.validators=n.validator,o.asyncValidators=n.asyncValidator),new Gd(r,o)}record(e,n=null){const r=this._reduceControls(e);return new lR(r,n)}control(e,n,r){let o={};return this.useNonNullable?(OR(n)?o=n:(o.validators=n,o.asyncValidators=r),new Jr(e,{...o,nonNullable:!0})):new Jr(e,n,r)}array(e,n,r){const o=e.map(a=>this._createControl(a));return new RR(o,n,r)}_reduceControls(e){const n={};return Object.keys(e).forEach(r=>{n[r]=this._createControl(e[r])}),n}_createControl(e){return e instanceof Jr||e instanceof Jg?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),A1=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Gc,useValue:e.callSetDisabledState??Zh}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[FR]}),t})(),zK=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:k1,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Gc,useValue:e.callSetDisabledState??Zh}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[FR]}),t})();const $K=["matFormFieldNotchedOutline",""],jK=["*"],WK=["textField"],GK=["iconPrefixContainer"],qK=["textPrefixContainer"];function XK(t,i){1&t&&Ee(0,"span",19)}function QK(t,i){if(1&t){const e=ot();v(0,"label",17),X("cdkObserveContent",function(){return Oe(e),Pe(q(2)._refreshOutlineNotchWidth())}),Je(1,1),H(2,XK,1,0,"span",18),y()}if(2&t){const e=q(2);A("floating",e._shouldLabelFloat())("cdkObserveContentDisabled",!e._hasOutline())("id",e._labelId),rt("for",e._control.id)("aria-owns",e._control.id),k(2),A("ngIf",!e.hideRequiredMarker&&e._control.required)}}function YK(t,i){1&t&&H(0,QK,3,6,"label",16),2&t&&A("ngIf",q()._hasFloatingLabel())}function KK(t,i){1&t&&Ee(0,"div",20)}function ZK(t,i){}function JK(t,i){1&t&&H(0,ZK,0,0,"ng-template",22),2&t&&(q(2),A("ngTemplateOutlet",Nt(1)))}function eZ(t,i){if(1&t&&(v(0,"div",21),H(1,JK,1,1,"ng-template",9),y()),2&t){const e=q();A("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat())("matFormFieldNotchedOutlineLabelWidth",e._labelWidth),k(1),A("ngIf",!e._forceDisplayInfixLabel())}}function tZ(t,i){1&t&&(v(0,"div",23,24),Je(2,2),y())}function iZ(t,i){1&t&&(v(0,"div",25,26),Je(2,3),y())}function nZ(t,i){}function rZ(t,i){1&t&&H(0,nZ,0,0,"ng-template",22),2&t&&(q(),A("ngTemplateOutlet",Nt(1)))}function oZ(t,i){1&t&&(v(0,"div",27),Je(1,4),y())}function aZ(t,i){1&t&&(v(0,"div",28),Je(1,5),y())}function sZ(t,i){1&t&&Ee(0,"div",29)}function cZ(t,i){1&t&&(v(0,"div",30),Je(1,6),y()),2&t&&A("@transitionMessages",q()._subscriptAnimationState)}function lZ(t,i){if(1&t&&(v(0,"mat-hint",34),M(1),y()),2&t){const e=q(2);A("id",e._hintLabelId),k(1),tt(e.hintLabel)}}function dZ(t,i){if(1&t&&(v(0,"div",31),H(1,lZ,2,2,"mat-hint",32),Je(2,7),Ee(3,"div",33),Je(4,8),y()),2&t){const e=q();A("@transitionMessages",e._subscriptAnimationState),k(1),A("ngIf",e.hintLabel)}}const uZ=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],hZ=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let wa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["mat-label"]]}),t})(),fZ=0;const LR=new ae("MatError");let NR=(()=>{class t{constructor(e,n){this.id="mat-mdc-error-"+fZ++,e||n.nativeElement.setAttribute("aria-live","polite")}}return t.\u0275fac=function(e){return new(e||t)(uo("aria-live"),b(Ae))},t.\u0275dir=Q({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(e,n){2&e&&ua("id",n.id)},inputs:{id:"id"},features:[We([{provide:LR,useExisting:t}])]}),t})(),mZ=0,rf=(()=>{class t{constructor(){this.align="start",this.id="mat-mdc-hint-"+mZ++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(e,n){2&e&&(ua("id",n.id),rt("align",null),Xe("mat-mdc-form-field-hint-end","end"===n.align))},inputs:{align:"align",id:"id"}}),t})();const pZ=new ae("MatPrefix"),BR=new ae("MatSuffix");let VR=(()=>{class t{constructor(){this._isText=!1}set _isTextSelector(e){this._isText=!0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:["matTextSuffix","_isTextSelector"]},features:[We([{provide:BR,useExisting:t}])]}),t})(),HR=(()=>{class t{constructor(e){this._elementRef=e,this.floating=!1}getWidth(){return function gZ(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 n=e.scrollWidth;return e.remove(),n}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(b(Ae))},t.\u0275dir=Q({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(e,n){2&e&&Xe("mdc-floating-label--float-above",n.floating)},inputs:{floating:"floating"}}),t})();const UR="mdc-line-ripple--active",c0="mdc-line-ripple--deactivating";let zR=(()=>{class t{constructor(e,n){this._elementRef=e,this._handleTransitionEnd=r=>{const o=this._elementRef.nativeElement.classList,a=o.contains(c0);"opacity"===r.propertyName&&a&&o.remove(UR,c0)},n.runOutsideAngular(()=>{e.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const e=this._elementRef.nativeElement.classList;e.remove(c0),e.add(UR)}deactivate(){this._elementRef.nativeElement.classList.add(c0)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Ue))},t.\u0275dir=Q({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]}),t})(),$R=(()=>{class t{constructor(e,n){this._elementRef=e,this._ngZone=n,this.labelWidth=0,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")}_getNotchWidth(){return this.open?this.labelWidth>0?`calc(${this.labelWidth}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:"0px":null}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Ue))},t.\u0275cmp=je({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(e,n){2&e&&Xe("mdc-notched-outline--notched",n.open)},inputs:{labelWidth:["matFormFieldNotchedOutlineLabelWidth","labelWidth"],open:["matFormFieldNotchedOutlineOpen","open"]},attrs:$K,ngContentSelectors:jK,decls:4,vars:2,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(e,n){1&e&&(vi(),Ee(0,"div",0),v(1,"div",1),Je(2),y(),Ee(3,"div",2)),2&e&&(k(1),ir("width",n._getNotchWidth()))},encapsulation:2,changeDetection:0}),t})();const _Z={transitionMessages:bn("transitionMessages",[ii("enter",nt({opacity:1,transform:"translateY(0%)"})),ai("void => enter",[nt({opacity:0,transform:"translateY(-5px)"}),fi("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let l0=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t}),t})();const d0=new ae("MatFormField"),bZ=new ae("MAT_FORM_FIELD_DEFAULT_OPTIONS");let jR=0,Ws=(()=>{class t{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=$e(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 n=this._appearance;this._appearance=e||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==n&&(this._refreshOutlineNotchWidth(),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,n,r,o,a,s,c,l){this._elementRef=e,this._changeDetectorRef=n,this._ngZone=r,this._dir=o,this._platform=a,this._defaults=s,this._animationMode=c,this._document=l,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-"+jR++,this._hintLabelId="mat-mdc-hint-"+jR++,this._subscriptAnimationState="",this._labelWidth=0,this._destroyed=new Ce,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,s&&(s.appearance&&(this.appearance=s.appearance),this._hideRequiredMarker=Boolean(s?.hideRequiredMarker),s.color&&(this.color=s.color))}ngAfterViewInit(){this._updateFocusState(),this._refreshOutlineNotchWidth(),this._document?.fonts?.ready?this._document.fonts.ready.then(()=>{this._refreshOutlineNotchWidth(),this._changeDetectorRef.markForCheck()}):setTimeout(()=>this._refreshOutlineNotchWidth(),100),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${e.controlType}`),e.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Tt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),Vi(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Tt(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe(Tt(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(e){const n=this._control?this._control.ngControl:null;return n&&n[e]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||(this._labelWidth=this._floatingLabel.getWidth())}_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 n=this._hintChildren?this._hintChildren.find(o=>"start"===o.align):null,r=this._hintChildren?this._hintChildren.find(o=>"end"===o.align):null;n?e.push(n.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(n=>n.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 n=this._iconPrefixContainer?.nativeElement,r=this._textPrefixContainer?.nativeElement,o=n?.getBoundingClientRect().width??0,a=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+a}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const e=this._elementRef.nativeElement;if(e.getRootNode){const n=e.getRootNode();return n&&n!==e}return document.documentElement.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Gt),b(Ue),b(_n),b(xi),b(bZ,8),b(Ri,8),b(it))},t.\u0275cmp=je({type:t,selectors:[["mat-form-field"]],contentQueries:function(e,n,r){if(1&e&&(Bt(r,wa,5),Bt(r,wa,7),Bt(r,l0,5),Bt(r,pZ,5),Bt(r,BR,5),Bt(r,LR,5),Bt(r,rf,5)),2&e){let o;xe(o=ye())&&(n._labelChildNonStatic=o.first),xe(o=ye())&&(n._labelChildStatic=o.first),xe(o=ye())&&(n._formFieldControl=o.first),xe(o=ye())&&(n._prefixChildren=o),xe(o=ye())&&(n._suffixChildren=o),xe(o=ye())&&(n._errorChildren=o),xe(o=ye())&&(n._hintChildren=o)}},viewQuery:function(e,n){if(1&e&&(st(WK,5),st(GK,5),st(qK,5),st(HR,5),st($R,5),st(zR,5)),2&e){let r;xe(r=ye())&&(n._textField=r.first),xe(r=ye())&&(n._iconPrefixContainer=r.first),xe(r=ye())&&(n._textPrefixContainer=r.first),xe(r=ye())&&(n._floatingLabel=r.first),xe(r=ye())&&(n._notchedOutline=r.first),xe(r=ye())&&(n._lineRipple=r.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(e,n){2&e&&Xe("mat-mdc-form-field-label-always-float",n._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",n._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",n._hasIconSuffix)("mat-form-field-invalid",n._control.errorState)("mat-form-field-disabled",n._control.disabled)("mat-form-field-autofilled",n._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===n._animationMode)("mat-form-field-appearance-fill","fill"==n.appearance)("mat-form-field-appearance-outline","outline"==n.appearance)("mat-form-field-hide-placeholder",n._hasFloatingLabel()&&!n._shouldLabelFloat())("mat-focused",n._control.focused)("mat-primary","accent"!==n.color&&"warn"!==n.color)("mat-accent","accent"===n.color)("mat-warn","warn"===n.color)("ng-untouched",n._shouldForward("untouched"))("ng-touched",n._shouldForward("touched"))("ng-pristine",n._shouldForward("pristine"))("ng-dirty",n._shouldForward("dirty"))("ng-valid",n._shouldForward("valid"))("ng-invalid",n._shouldForward("invalid"))("ng-pending",n._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[We([{provide:d0,useExisting:t}])],ngContentSelectors:hZ,decls:18,vars:23,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth",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","cdkObserveContentDisabled","id","cdkObserveContent",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent"],["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","matFormFieldNotchedOutlineLabelWidth"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[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(e,n){1&e&&(vi(uZ),H(0,YK,1,1,"ng-template",null,0,Tc),v(2,"div",1,2),X("click",function(o){return n._control.onContainerClick&&n._control.onContainerClick(o)}),H(4,KK,1,0,"div",3),v(5,"div",4),H(6,eZ,2,3,"div",5),H(7,tZ,3,0,"div",6),H(8,iZ,3,0,"div",7),v(9,"div",8),H(10,rZ,1,1,"ng-template",9),Je(11),y(),H(12,oZ,2,0,"div",10),H(13,aZ,2,0,"div",11),y(),H(14,sZ,1,0,"div",12),y(),v(15,"div",13),H(16,cZ,2,1,"div",14),H(17,dZ,5,2,"div",15),y()),2&e&&(k(2),Xe("mdc-text-field--filled",!n._hasOutline())("mdc-text-field--outlined",n._hasOutline())("mdc-text-field--no-label",!n._hasFloatingLabel())("mdc-text-field--disabled",n._control.disabled)("mdc-text-field--invalid",n._control.errorState),k(2),A("ngIf",!n._hasOutline()&&!n._control.disabled),k(2),A("ngIf",n._hasOutline()),k(1),A("ngIf",n._hasIconPrefix),k(1),A("ngIf",n._hasTextPrefix),k(2),A("ngIf",!n._hasOutline()||n._forceDisplayInfixLabel()),k(2),A("ngIf",n._hasTextSuffix),k(1),A("ngIf",n._hasIconSuffix),k(1),A("ngIf",!n._hasOutline()),k(1),Xe("mat-mdc-form-field-subscript-dynamic-size","dynamic"===n.subscriptSizing),A("ngSwitch",n._getDisplayedMessages()),k(1),A("ngSwitchCase","error"),k(1),A("ngSwitchCase","hint"))},dependencies:[hn,Op,nh,xx,My,rf,HR,$R,zR],styles:['.mdc-text-field{border-top-left-radius:var(--mdc-shape-small, 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:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;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:var(--mdc-shape-small, 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:var(--mdc-shape-small, 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:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;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-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.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%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.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;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.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{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.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}.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{font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{line-height:normal;pointer-events:all}.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-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}[dir=rtl] .mat-mdc-form-field{text-align:right}.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}.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(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-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(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-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(-10.25px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-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(-10.25px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-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(-24.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-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(-24.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-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(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(-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(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 32px)) translateY(-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(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(-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(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - -32px)) translateY(-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(-106%) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-106%) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-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)}'],encapsulation:2,data:{animation:[_Z.transitionMessages]},changeDetection:0}),t})(),u0=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt,nr,_g,xt]}),t})();const yZ=["panel"];function wZ(t,i){if(1&t&&(v(0,"div",0,1),Je(2),y()),2&t){const e=i.id,n=q();A("id",n.id)("ngClass",n._classList)("@panelAnimation",n.isOpen?"visible":"hidden"),rt("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(e))}}const CZ=["*"],kZ=bn("panelAnimation",[ii("void, hidden",nt({opacity:0,transform:"scaleY(0.8)"})),ai(":enter, hidden => visible",[zy([fi("0.03s linear",nt({opacity:1})),fi("0.12s cubic-bezier(0, 0, 0.2, 1)",nt({transform:"scaleY(1)"}))])]),ai(":leave, visible => hidden",[fi("0.075s linear",nt({opacity:0}))])]);let DZ=0;class SZ{constructor(i,e){this.source=i,this.option=e}}const EZ=Bs(class{}),qR=new ae("mat-autocomplete-default-options",{providedIn:"root",factory:function TZ(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1}}});let MZ=(()=>{class t extends EZ{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=$e(e)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(e){this._autoSelectActiveOption=$e(e)}set classList(e){this._classList=e&&e.length?function aq(t,i=/\s+/){const e=[];if(null!=t){const n=Array.isArray(t)?t:`${t}`.split(i);for(const r of n){const o=`${r}`.trim();o&&e.push(o)}}return e}(e).reduce((n,r)=>(n[r]=!0,n),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}constructor(e,n,r,o){super(),this._changeDetectorRef=e,this._elementRef=n,this._defaults=r,this._activeOptionChanges=yt.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this._autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this._autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.optionSelected=new ke,this.opened=new ke,this.closed=new ke,this.optionActivated=new ke,this._classList={},this.id="mat-autocomplete-"+DZ++,this.inertGroups=o?.SAFARI||!1}ngAfterContentInit(){this._keyManager=new EI(this.options).withWrap(),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 n=new SZ(this,e);this.optionSelected.emit(n)}_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}}return t.\u0275fac=function(e){return new(e||t)(b(Gt),b(Ae),b(qR),b(xi))},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&(st(_i,7),st(yZ,5)),2&e){let r;xe(r=ye())&&(n.template=r.first),xe(r=ye())&&(n.panel=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[pe]}),t})(),AZ=(()=>{class t extends MZ{constructor(){super(...arguments),this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden",this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=$e(e),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275cmp=je({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(e,n,r){if(1&e&&(Bt(r,Hy,5),Bt(r,Hs,5)),2&e){let o;xe(o=ye())&&(n.optionGroups=o),xe(o=ye())&&(n.options=o)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{disableRipple:"disableRipple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matAutocomplete"],features:[We([{provide:Vy,useExisting:t}]),pe],ngContentSelectors:CZ,decls:1,vars:0,consts:[["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id","ngClass"],["panel",""]],template:function(e,n){1&e&&(vi(),H(0,wZ,3,5,"ng-template"))},dependencies:[Es],styles:[".mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mdc-menu-surface.mat-mdc-autocomplete-panel{width:100%;max-height:256px;position:static;visibility:hidden;transform-origin:center top;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-autocomplete-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) .mdc-menu-surface.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above .mdc-menu-surface.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}.mdc-menu-surface.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}.mdc-menu-surface.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[kZ]},changeDetection:0}),t})();const IZ={provide:Xn,useExisting:Xt(()=>QR),multi:!0},XR=new ae("mat-autocomplete-scroll-strategy"),RZ={provide:XR,deps:[rr],useFactory:function FZ(t){return()=>t.scrollStrategies.reposition()}};let OZ=(()=>{class t{get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=$e(e)}constructor(e,n,r,o,a,s,c,l,d,u,h){this._element=e,this._overlay=n,this._viewContainerRef=r,this._zone=o,this._changeDetectorRef=a,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=yt.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Ce,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=fd(()=>{const f=this.autocomplete?this.autocomplete.options:null;return f?f.changes.pipe(Vn(f),fn(()=>Vi(...f.map(m=>m.onSelectionChange)))):this._zone.onStable.pipe(ui(1),fn(()=>this.optionSelections))}),this._scrollStrategy=s}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()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}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._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Vi(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(hi(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(hi(()=>this._overlayAttached)):ze()).pipe(Ye(e=>e instanceof jI?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Vi(ga(this._document,"click"),ga(this._document,"auxclick"),ga(this._document,"touchend")).pipe(hi(e=>{const n=Zr(e),r=this._formField?this._formField._elementRef.nativeElement:null,o=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&n!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!r||!r.contains(n))&&(!o||!o.contains(n))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(n)}))}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 n=e.keyCode,r=wr(e);if(27===n&&!r&&e.preventDefault(),this.activeOption&&13===n&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const o=this.autocomplete._keyManager.activeItem,a=38===n||40===n;9===n||a&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):a&&this._canOpen()&&this.openPanel(),(a||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 n=e.target,r=n.value;"number"===n.type&&(r=""==r?null:parseFloat(r)),this._previousValue!==r&&(this._previousValue=r,this._pendingAutoselectedOption=null,this._onChange(r),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 Vi(this._zone.onStable.pipe(ui(1)),this.autocomplete.options.changes.pipe(zi(()=>this._positionStrategy.reapplyLastPosition()),Zy(0))).pipe(fn(()=>(this._zone.run(()=>{const r=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),r!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),ui(1)).subscribe(r=>this._setValueAndClose(r))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(e){const n=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e;this._updateNativeInputValue(n??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){const n=e?e.source:this._pendingAutoselectedOption;n&&(this._clearPreviousSelectedOption(n),this._assignOptionValue(n.value),this._onChange(n.value),this.autocomplete._emitSelectEvent(n),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(e){this.autocomplete.options.forEach(n=>{n!==e&&n.selected&&n.deselect()})}_attachOverlay(){let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new rs(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,this._handleOverlayEvents(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 n=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this.panelOpen&&n!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new Rd({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 n=[{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 a;a="above"===this.position?o:"below"===this.position?n:[...n,...o],e.withPositions(a)}_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;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}_canOpen(){const e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(e){const n=this.autocomplete,r=WI(e,n.options,n.optionGroups);if(0===e&&1===r)n._setScrollTop(0);else if(n.panel){const o=n.options.toArray()[e];if(o){const a=o._getHostElement(),s=GI(a.offsetTop,a.offsetHeight,n._getScrollTop(),n.panel.nativeElement.offsetHeight);n._setScrollTop(s)}}}_handleOverlayEvents(e){e.keydownEvents().subscribe(n=>{(27===n.keyCode&&!wr(n)||38===n.keyCode&&wr(n,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),n.stopPropagation(),n.preventDefault())}),e.outsidePointerEvents().subscribe()}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(rr),b(Fi),b(Ue),b(Gt),b(XR),b(_n,8),b(d0,9),b(it,8),b(_a),b(qR,8))},t.\u0275dir=Q({type:t,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[Ei]}),t})(),QR=(()=>{class t extends OZ{constructor(){super(...arguments),this._aboveClass="mat-mdc-autocomplete-panel-above"}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(e,n){1&e&&X("focusin",function(){return n._handleFocus()})("blur",function(){return n._onTouched()})("input",function(o){return n._handleInput(o)})("keydown",function(o){return n._handleKeydown(o)})("click",function(){return n._handleClick()}),2&e&&rt("autocomplete",n.autocompleteAttribute)("role",n.autocompleteDisabled?null:"combobox")("aria-autocomplete",n.autocompleteDisabled?null:"list")("aria-activedescendant",n.panelOpen&&n.activeOption?n.activeOption.id:null)("aria-expanded",n.autocompleteDisabled?null:n.panelOpen.toString())("aria-owns",n.autocompleteDisabled||!n.panelOpen||null==n.autocomplete?null:n.autocomplete.id)("aria-haspopup",n.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[We([IZ]),pe]}),t})(),PZ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[RZ],imports:[Uc,kg,xt,nr,Vc,kg,xt]}),t})();const YR=Go({passive:!0});let LZ=(()=>{class t{constructor(e,n){this._platform=e,this._ngZone=n,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return zr;const n=Ki(e),r=this._monitoredElements.get(n);if(r)return r.subject;const o=new Ce,a="cdk-text-field-autofilled",s=c=>{"cdk-text-field-autofill-start"!==c.animationName||n.classList.contains(a)?"cdk-text-field-autofill-end"===c.animationName&&n.classList.contains(a)&&(n.classList.remove(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!1}))):(n.classList.add(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{n.addEventListener("animationstart",s,YR),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:o,unlisten:()=>{n.removeEventListener("animationstart",s,YR)}}),o}stopMonitoring(e){const n=Ki(e),r=this._monitoredElements.get(n);r&&(r.unlisten(),r.subject.complete(),n.classList.remove("cdk-text-field-autofill-monitored"),n.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(n))}ngOnDestroy(){this._monitoredElements.forEach((e,n)=>this.stopMonitoring(n))}}return t.\u0275fac=function(e){return new(e||t)(G(xi),G(Ue))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),NZ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({}),t})();const BZ=new ae("MAT_INPUT_VALUE_ACCESSOR"),VZ=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let HZ=0;const UZ=LI(class{constructor(t,i,e,n){this._defaultErrorStateMatcher=t,this._parentForm=i,this._parentFormGroup=e,this.ngControl=n,this.stateChanges=new Ce}});let af=(()=>{class t extends UZ{get disabled(){return this._disabled}set disabled(e){this._disabled=$e(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(jd.required)??!1}set required(e){this._required=$e(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&pI().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=$e(e)}constructor(e,n,r,o,a,s,c,l,d,u){super(s,o,a,r),this._elementRef=e,this._platform=n,this._autofillMonitor=l,this._formField=u,this._uid="mat-input-"+HZ++,this.focused=!1,this.stateChanges=new Ce,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=>pI().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,n.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 n=this._elementRef.nativeElement;this._previousPlaceholder=e,e?n.setAttribute("placeholder",e):n.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){VZ.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,n=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&n&&n.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)}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(xi),b(xa,10),b(qc,8),b(js,8),b(NI),b(BZ,10),b(LZ),b(Ue),b(d0,8))},t.\u0275dir=Q({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(e,n){1&e&&X("focus",function(){return n._focusChanged(!0)})("blur",function(){return n._focusChanged(!1)})("input",function(){return n._onInput()}),2&e&&(ua("id",n.id)("disabled",n.disabled)("required",n.required),rt("name",n.name||null)("readonly",n.readonly&&!n._isNativeSelect||null)("aria-invalid",n.empty&&n.required?null:n.errorState)("aria-required",n.required)("id",n.id),Xe("mat-input-server",n._isServer)("mat-mdc-form-field-textarea-control",n._isInFormField&&n._isTextarea)("mat-mdc-form-field-input-control",n._isInFormField)("mdc-text-field__input",n._isInFormField)("mat-mdc-native-select-inline",n._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[We([{provide:l0,useExisting:t}]),pe,Ei]}),t})(),zZ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt,u0,u0,NZ,xt]}),t})();function $Z(t,i){if(1&t&&(v(0,"mat-label"),M(1),y()),2&t){const e=q();k(1),tt(e.binding.title)}}function jZ(t,i){if(1&t){const e=ot();v(0,"button",7),X("click",function(){return Oe(e),Pe(q().clearInput())}),v(1,"mat-icon"),M(2,"close"),y()()}}function WZ(t,i){1&t&&(v(0,"mat-option",8),Ee(1,"mat-spinner",9),y())}function GZ(t,i){if(1&t&&(v(0,"mat-option",10)(1,"span",11),M(2),y(),M(3),y()),2&t){const e=i.$implicit;A("value",e),k(2),tt(e.code),k(1),It("",e.display," ")}}let h0=(()=>{class t{constructor(e){this.terminologyService=e,this.term="",this.selectionChange=new ke,this.formControl=new pK,this.loading=!1,this.selectedConcept={},this.stateChanges=new Ce,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(Ed(300),Nc(),fn(e=>e?.length>=3?(this.loading=!0,this.terminologyService.expandValueSet(this.binding.ecl,e,0,50)):ze([])),zi(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:""}}change(e){const n=e?.option?.value;n&&(this.optionSelected({code:n.code,display:n.display}),this.formControl.setValue(n.display))}}return t.nextId=0,t.\u0275fac=function(e){return new(e||t)(b(wo))},t.\u0275cmp=je({type:t,selectors:[["app-autocomplete-binding"]],inputs:{binding:"binding",term:"term"},outputs:{selectionChange:"selectionChange"},features:[We([{provide:Xn,useExisting:Xt(()=>t),multi:!0},{provide:l0,useExisting:t}]),Ei],decls:11,vars:10,consts:[[4,"ngIf"],["type","text","matInput","",3,"placeholder","formControl","matAutocomplete"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],["autoActiveFirstOption","",3,"optionSelected"],["auto","matAutocomplete"],["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(e,n){if(1&e&&(v(0,"mat-form-field"),H(1,$Z,2,1,"mat-label",0),Ee(2,"input",1),v(3,"mat-hint"),M(4),y(),H(5,jZ,3,0,"button",2),v(6,"mat-autocomplete",3,4),X("optionSelected",function(o){return n.change(o)}),H(8,WZ,2,0,"mat-option",5),H(9,GZ,4,3,"mat-option",6),mp(10,"async"),y()()),2&e){const r=Nt(7);let o;k(1),A("ngIf",n.binding.title),k(1),$u("placeholder",(null==n.formControl.value?null:n.formControl.value.display)||"Search..."),A("formControl",n.formControl)("matAutocomplete",r),k(2),tt(n.binding.note),k(1),A("ngIf",n.formControl.value),k(3),A("ngIf",n.loading),k(1),A("ngForOf",null==(o=Ov(10,8,n.autoFilter))||null==o.expansion?null:o.expansion.contains)}},dependencies:[go,hn,is,ba,Ws,wa,rf,VR,AZ,Hs,QR,Pd,af,Us,ya,o0,oM],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}"]}),t})();function qZ(t,i){1&t&&Ee(0,"mat-spinner",20)}function XZ(t,i){1&t&&(v(0,"th",21),M(1," Date "),y())}function QZ(t,i){if(1&t&&(v(0,"td",22),M(1),mp(2,"date"),y()),2&t){const e=i.$implicit;k(1),It(" ",function PT(t,i,e,n){const r=t+Ui,o=ge(),a=Il(o,r);return Ku(o,r)?IT(o,br(),i,a.transform,e,n,a):a.transform(e,n)}(2,1,e.date,"yyyy-MM-dd")," ")}}function YZ(t,i){1&t&&(v(0,"th",21),M(1," ConceptId "),y())}function KZ(t,i){if(1&t&&(v(0,"td",22),M(1),y()),2&t){const e=i.$implicit;k(1),It(" ",e.code," ")}}function ZZ(t,i){1&t&&(v(0,"th",21),M(1," Term "),y())}function JZ(t,i){1&t&&(v(0,"span",24),M(1,"Allergy / Intolerance condition"),y())}function eJ(t,i){if(1&t&&(v(0,"td",22),H(1,JZ,2,0,"span",23),M(2),y()),2&t){const e=i.$implicit;k(1),A("ngIf",e.allergy),k(1),It(" ",e.display," ")}}function tJ(t,i){1&t&&Ee(0,"tr",25)}function iJ(t,i){1&t&&Ee(0,"tr",26)}function nJ(t,i){1&t&&(v(0,"th",21),M(1," ConceptId "),y())}function rJ(t,i){if(1&t&&(v(0,"td",22),M(1),y()),2&t){const e=i.$implicit;k(1),It(" ",e.code," ")}}function oJ(t,i){1&t&&(v(0,"th",21),M(1," Term "),y())}function aJ(t,i){if(1&t&&(v(0,"td",22),M(1),y()),2&t){const e=i.$implicit;k(1),It(" ",e.display," ")}}function sJ(t,i){1&t&&Ee(0,"tr",25)}function cJ(t,i){1&t&&Ee(0,"tr",26)}const lJ=[],dJ=[];let KR=(()=>{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=[...lJ],this.dataSource=new uJ(this.dataToDisplay),this.loading=!1,this.displayedColumns2=["code","display"],this.dataToDisplay2=[...dJ],this.dataSource2=new hJ(this.dataToDisplay2)}updateProblem(e){var n=this;return Oi(function*(){n.selectedProblemSct=e})()}addProblem(e){var n=this;return Oi(function*(){if(n.selectedProblemSct||e){let r=e||n.selectedProblemSct;if(n.loading=!0,n.term=r.display,r.date=new Date,r.code.indexOf(":")>-1){r.allergy=!0;let o=r.substance;n.dataToDisplay2.find(a=>a.code===o.code)||(n.dataToDisplay2=[...n.dataToDisplay2,o],n.dataSource2.setData(n.dataToDisplay2))}else(yield n.getAllergyData(r))?.expansion?.contains?.length>0&&(r.allergy=!0,n.addAllergySubstanceToList(r));n.dataToDisplay.find(o=>o.code===r.code)||(n.dataToDisplay=[...n.dataToDisplay,r],n.dataSource.setData(n.dataToDisplay)),n.loading=!1,n.term=""}})()}addAllergySubstanceToList(e){var n=this;return Oi(function*(){(yield n.getAllergySubstance(e))?.expansion?.contains?.forEach(o=>{n.dataToDisplay2.find(a=>a.code===o.code)||(n.dataToDisplay2=[...n.dataToDisplay2,o],n.dataSource2.setData(n.dataToDisplay2))})})()}getAllergyData(e){var n=this;return Oi(function*(){return Wo((yield n.terminologyService.expandValueSet("<<418038007 |Propensity to adverse reactions to substance| OR <<420134006 |Propensity to adverse reaction (finding)|",e.code,0,1)).pipe(Ye(o=>o)))})()}getAllergySubstance(e){var n=this;return Oi(function*(){return Wo((yield n.terminologyService.expandValueSet(`${e.code} |${e.display}| . (246075003 |Causative agent (attribute)| OR 47429007 |Associated with (attribute)|)`,"")).pipe(Ye(o=>o)))})()}}return t.\u0275fac=function(e){return new(e||t)(b(wo))},t.\u0275cmp=je({type:t,selectors:[["app-allergies-problem-list"]],decls:60,vars:11,consts:[["id","main-card"],[1,"container-space"],[1,"problem-list"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor"],["substancePopoverMenu","matMenu"],["mat-menu-item","",1,"long-tooltip",3,"disableRipple","click"],["href","https://confluence.ihtsdotools.org/x/PaDICg","target","_blank"],[1,"container"],[1,"item"],[3,"binding","term","selectionChange"],["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(e,n){if(1&e&&(v(0,"mat-card",0)(1,"div",1)(2,"div",2)(3,"h4"),M(4,"Problem List "),v(5,"button",3)(6,"mat-icon"),M(7,"info"),y()(),v(8,"mat-menu",null,4)(10,"span",5),X("click",function(o){return o.stopPropagation()}),v(11,"h4"),M(12,"Problem list"),y(),v(13,"p"),M(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."),y(),v(15,"p"),M(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."),y(),v(17,"p"),M(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)."),y(),v(19,"p"),M(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."),y(),v(21,"p"),M(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."),y(),v(23,"p"),M(24,"For more information check the "),v(25,"a",6),M(26,"Implementation Guide"),y(),M(27," developed by the SNOMED International Allergy Clinical Reference Group."),y()()()(),v(28,"div",7)(29,"div",8)(30,"app-autocomplete-binding",9),X("selectionChange",function(o){return n.updateProblem(o)}),y()(),v(31,"div",8)(32,"button",10),X("click",function(){return n.addProblem()}),M(33,"Add problem"),y()(),v(34,"div",8),H(35,qZ,1,0,"mat-spinner",11),y()(),v(36,"table",12),Ai(37,13),H(38,XZ,2,0,"th",14),H(39,QZ,3,4,"td",15),Ii(),Ai(40,16),H(41,YZ,2,0,"th",14),H(42,KZ,2,1,"td",15),Ii(),Ai(43,17),H(44,ZZ,2,0,"th",14),H(45,eJ,3,2,"td",15),Ii(),H(46,tJ,1,0,"tr",18),H(47,iJ,1,0,"tr",19),y()(),v(48,"div",2)(49,"h4"),M(50,"Substances the patient is allergic to:"),y(),v(51,"table",12),Ai(52,16),H(53,nJ,2,0,"th",14),H(54,rJ,2,1,"td",15),Ii(),Ai(55,17),H(56,oJ,2,0,"th",14),H(57,aJ,2,1,"td",15),Ii(),H(58,sJ,1,0,"tr",18),H(59,cJ,1,0,"tr",19),y()()()()),2&e){const r=Nt(9);k(5),A("matMenuTriggerFor",r),k(5),A("disableRipple",!0),k(20),A("binding",n.problemBinding)("term",n.term),k(5),A("ngIf",n.loading),k(1),A("dataSource",n.dataSource),k(10),A("matHeaderRowDef",n.displayedColumns),k(1),A("matRowDefColumns",n.displayedColumns),k(4),A("dataSource",n.dataSource2),k(7),A("matHeaderRowDef",n.displayedColumns2),k(1),A("matRowDefColumns",n.displayedColumns2)}},dependencies:[hn,yo,is,ba,$c,va,jc,Pd,e1,$h,Hd,jh,Ud,Vd,Wh,zd,$d,Gh,qh,h0,sM],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}"]}),t})();class uJ extends uy{constructor(i){super(),this._dataStream=new eI,this.setData(i)}connect(){return this._dataStream}disconnect(){}setData(i){this._dataStream.next(i)}}class hJ extends uy{constructor(i){super(),this._dataStream=new eI,this.setData(i)}connect(){return this._dataStream}disconnect(){}setData(i){this._dataStream.next(i)}}function fJ(t,i){}const mJ=function(t){return{animationDuration:t}},pJ=function(t,i){return{value:t,params:i}};function gJ(t,i){1&t&&Je(0)}const ZR=["*"],_J=["tabListContainer"],bJ=["tabList"],vJ=["tabListInner"],xJ=["nextPaginator"],yJ=["previousPaginator"],wJ=["tabBodyWrapper"],CJ=["tabHeader"];function kJ(t,i){}function DJ(t,i){1&t&&H(0,kJ,0,0,"ng-template",14),2&t&&A("cdkPortalOutlet",q().$implicit.templateLabel)}function SJ(t,i){1&t&&M(0),2&t&&tt(q().$implicit.textLabel)}function EJ(t,i){if(1&t){const e=ot();v(0,"div",6,7),X("click",function(){const r=Oe(e),o=r.$implicit,a=r.index,s=q(),c=Nt(1);return Pe(s._handleClick(o,c,a))})("cdkFocusChange",function(r){const a=Oe(e).index;return Pe(q()._tabFocusChanged(r,a))}),Ee(2,"span",8)(3,"div",9),v(4,"span",10)(5,"span",11),H(6,DJ,1,1,"ng-template",12),H(7,SJ,1,1,"ng-template",null,13,Tc),y()()()}if(2&t){const e=i.$implicit,n=i.index,r=Nt(1),o=Nt(8),a=q();Xe("mdc-tab--active",a.selectedIndex===n),A("id",a._getTabLabelId(n))("ngClass",e.labelClass)("disabled",e.disabled)("fitInkBarToContent",a.fitInkBarToContent),rt("tabIndex",a._getTabIndex(n))("aria-posinset",n+1)("aria-setsize",a._tabs.length)("aria-controls",a._getTabContentId(n))("aria-selected",a.selectedIndex===n)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),k(3),A("matRippleTrigger",r)("matRippleDisabled",e.disabled||a.disableRipple),k(3),A("ngIf",e.templateLabel)("ngIfElse",o)}}function TJ(t,i){if(1&t){const e=ot();v(0,"mat-tab-body",15),X("_onCentered",function(){return Oe(e),Pe(q()._removeTabBodyWrapperHeight())})("_onCentering",function(r){return Oe(e),Pe(q()._setTabBodyWrapperHeight(r))}),y()}if(2&t){const e=i.$implicit,n=i.index,r=q();Xe("mat-mdc-tab-body-active",r.selectedIndex===n),A("id",r._getTabContentId(n))("ngClass",e.bodyClass)("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),rt("tabindex",null!=r.contentTabIndex&&r.selectedIndex===n?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(n))}}const MJ={translateTab:bn("translateTab",[ii("center, void, left-origin-center, right-origin-center",nt({transform:"none"})),ii("left",nt({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),ii("right",nt({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),ai("* => left, * => right, left => center, right => center",fi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),ai("void => left-origin-center",[nt({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),fi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),ai("void => right-origin-center",[nt({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),fi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let AJ=(()=>{class t extends os{constructor(e,n,r,o){super(e,n,o),this._host=r,this._centeringSub=yt.EMPTY,this._leavingSub=yt.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Vn(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()}}return t.\u0275fac=function(e){return new(e||t)(b(ks),b(Fi),b(Xt(()=>JR)),b(it))},t.\u0275dir=Q({type:t,selectors:[["","matTabBodyHost",""]],features:[pe]}),t})(),IJ=(()=>{class t{set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(e,n,r){this._elementRef=e,this._dir=n,this._dirChangeSubscription=yt.EMPTY,this._translateTabComplete=new Ce,this._onCentering=new ke,this._beforeCentering=new ke,this._afterLeavingCenter=new ke,this._onCentered=new ke(!0),this.animationDuration="500ms",this.preserveContent=!1,n&&(this._dirChangeSubscription=n.change.subscribe(o=>{this._computePositionAnimationState(o),r.markForCheck()})),this._translateTabComplete.pipe(Nc((o,a)=>o.fromState===a.fromState&&o.toState===a.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 n=this._isCenterPosition(e.toState);this._beforeCentering.emit(n),n&&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 n=this._getLayoutDirection();return"ltr"==n&&e<=0||"rtl"==n&&e>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(_n,8),b(Gt))},t.\u0275dir=Q({type:t,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),JR=(()=>{class t extends IJ{constructor(e,n,r){super(e,n,r)}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(_n,8),b(Gt))},t.\u0275cmp=je({type:t,selectors:[["mat-tab-body"]],viewQuery:function(e,n){if(1&e&&st(os,5),2&e){let r;xe(r=ye())&&(n._portalHost=r.first)}},hostAttrs:[1,"mat-mdc-tab-body"],features:[pe],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,n){1&e&&(v(0,"div",0,1),X("@translateTab.start",function(o){return n._onTranslateTabStarted(o)})("@translateTab.done",function(o){return n._translateTabComplete.next(o)}),H(2,fJ,0,0,"ng-template",2),y()),2&e&&A("@translateTab",function MT(t,i,e,n,r){return IT(ge(),br(),t,i,e,n,r)}(3,pJ,n._position,Rv(1,mJ,n.animationDuration)))},dependencies:[AJ],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:[MJ.translateTab]}}),t})();const FJ=new ae("MatTabContent");let RJ=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(b(_i))},t.\u0275dir=Q({type:t,selectors:[["","matTabContent",""]],features:[We([{provide:FJ,useExisting:t}])]}),t})();const OJ=new ae("MatTabLabel"),eO=new ae("MAT_TAB");let PJ=(()=>{class t extends pX{constructor(e,n,r){super(e,n),this._closestTab=r}}return t.\u0275fac=function(e){return new(e||t)(b(_i),b(Fi),b(eO,8))},t.\u0275dir=Q({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[We([{provide:OJ,useExisting:t}]),pe]}),t})();const I1="mdc-tab-indicator--active",tO="mdc-tab-indicator--no-transition";class LJ{constructor(i){this._items=i}hide(){this._items.forEach(i=>i.deactivateInkBar())}alignToElement(i){const e=this._items.find(r=>r.elementRef.nativeElement===i),n=this._currentItem;if(n?.deactivateInkBar(),e){const r=n?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(r),this._currentItem=e}}}function NJ(t){return class extends t{constructor(...i){super(...i),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(i){const e=$e(i);this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(i){const e=this.elementRef.nativeElement;if(!i||!e.getBoundingClientRect||!this._inkBarContentElement)return void e.classList.add(I1);const n=e.getBoundingClientRect(),r=i.width/n.width,o=i.left-n.left;e.classList.add(tO),this._inkBarContentElement.style.setProperty("transform",`translateX(${o}px) scaleX(${r})`),e.getBoundingClientRect(),e.classList.remove(tO),e.classList.add(I1),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove(I1)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const i=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=i.createElement("span"),this._inkBarContentElement=i.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 VJ=ts(class{}),HJ=NJ((()=>{class t extends VJ{constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)(b(Ae))},t.\u0275dir=Q({type:t,features:[pe]}),t})());let iO=(()=>{class t extends HJ{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,n){2&e&&(rt("aria-disabled",!!n.disabled),Xe("mat-mdc-tab-disabled",n.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[pe]}),t})();const UJ=ts(class{}),nO=new ae("MAT_TAB_GROUP");let zJ=(()=>{class t extends UJ{get content(){return this._contentPortal}constructor(e,n){super(),this._viewContainerRef=e,this._closestTabGroup=n,this.textLabel="",this._contentPortal=null,this._stateChanges=new Ce,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 rs(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return t.\u0275fac=function(e){return new(e||t)(b(Fi),b(nO,8))},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&st(_i,7),2&e){let r;xe(r=ye())&&(n._implicitContent=r.first)}},inputs:{textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[pe,Ei]}),t})(),f0=(()=>{class t extends zJ{get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275cmp=je({type:t,selectors:[["mat-tab"]],contentQueries:function(e,n,r){if(1&e&&(Bt(r,RJ,7,_i),Bt(r,PJ,5)),2&e){let o;xe(o=ye())&&(n._explicitContent=o.first),xe(o=ye())&&(n.templateLabel=o.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[We([{provide:eO,useExisting:t}]),pe],ngContentSelectors:ZR,decls:1,vars:0,template:function(e,n){1&e&&(vi(),H(0,gJ,1,0,"ng-template"))},encapsulation:2}),t})();const rO=Go({passive:!0});let WJ=(()=>{class t{get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=$e(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=An(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}constructor(e,n,r,o,a,s,c){this._elementRef=e,this._changeDetectorRef=n,this._viewportRuler=r,this._dir=o,this._ngZone=a,this._platform=s,this._animationMode=c,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Ce,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Ce,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new ke,this.indexFocused=new ke,a.runOutsideAngular(()=>{ga(e.nativeElement,"mouseleave").pipe(Tt(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){ga(this._previousPaginator.nativeElement,"touchstart",rO).pipe(Tt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),ga(this._nextPaginator.nativeElement,"touchstart",rO).pipe(Tt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:ze("ltr"),n=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Ry(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(ui(1)).subscribe(r),Vi(e,n,this._items.changes,this._itemsResized()).pipe(Tt(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(o=>{this.indexFocused.emit(o),this._setTabFocus(o)})}_itemsResized(){return"function"!=typeof ResizeObserver?zr:this._items.changes.pipe(Vn(this._items),fn(e=>new ni(n=>this._ngZone.runOutsideAngular(()=>{const r=new ResizeObserver(o=>n.next(o));return e.forEach(o=>r.observe(o.elementRef.nativeElement)),()=>{r.disconnect()}}))),Ty(1),hi(e=>e.some(n=>n.contentRect.width>0&&n.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(!wr(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){const n=this._items.get(this.focusIndex);n&&!n.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 n=this._tabListContainer.nativeElement;n.scrollLeft="ltr"==this._getLayoutDirection()?0:n.scrollWidth-n.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,n="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(n)}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 n=this._items?this._items.toArray()[e]:null;if(!n)return;const r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:a}=n.elementRef.nativeElement;let s,c;"ltr"==this._getLayoutDirection()?(s=o,c=s+a):(c=this._tabListInner.nativeElement.offsetWidth-o,s=c-a);const l=this.scrollDistance,d=this.scrollDistance+r;sd&&(this.scrollDistance+=Math.min(c-d,s-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,n=e?e.elementRef.nativeElement:null;n?this._inkBar.alignToElement(n):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,n){n&&null!=n.button&&0!==n.button||(this._stopInterval(),Ig(650,100).pipe(Tt(Vi(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 n=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(n,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:n,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Gt),b(_a),b(_n,8),b(Ue),b(xi),b(Ri,8))},t.\u0275dir=Q({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),GJ=(()=>{class t extends WJ{get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=$e(e)}constructor(e,n,r,o,a,s,c){super(e,n,r,o,a,s,c),this._disableRipple=!1}_itemSelected(e){e.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Gt),b(_a),b(_n,8),b(Ue),b(xi),b(Ri,8))},t.\u0275dir=Q({type:t,inputs:{disableRipple:"disableRipple"},features:[pe]}),t})(),qJ=(()=>{class t extends GJ{constructor(e,n,r,o,a,s,c){super(e,n,r,o,a,s,c)}ngAfterContentInit(){this._inkBar=new LJ(this._items),super.ngAfterContentInit()}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Gt),b(_a),b(_n,8),b(Ue),b(xi),b(Ri,8))},t.\u0275cmp=je({type:t,selectors:[["mat-tab-header"]],contentQueries:function(e,n,r){if(1&e&&Bt(r,iO,4),2&e){let o;xe(o=ye())&&(n._items=o)}},viewQuery:function(e,n){if(1&e&&(st(_J,7),st(bJ,7),st(vJ,7),st(xJ,5),st(yJ,5)),2&e){let r;xe(r=ye())&&(n._tabListContainer=r.first),xe(r=ye())&&(n._tabList=r.first),xe(r=ye())&&(n._tabListInner=r.first),xe(r=ye())&&(n._nextPaginator=r.first),xe(r=ye())&&(n._previousPaginator=r.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(e,n){2&e&&Xe("mat-mdc-tab-header-pagination-controls-enabled",n._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==n._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[pe],ngContentSelectors:ZR,decls:13,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-mdc-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,n){1&e&&(vi(),v(0,"button",0,1),X("click",function(){return n._handlePaginatorClick("before")})("mousedown",function(o){return n._handlePaginatorPress("before",o)})("touchend",function(){return n._stopInterval()}),Ee(2,"div",2),y(),v(3,"div",3,4),X("keydown",function(o){return n._handleKeydown(o)}),v(5,"div",5,6),X("cdkObserveContent",function(){return n._onContentChanges()}),v(7,"div",7,8),Je(9),y()()(),v(10,"button",9,10),X("mousedown",function(o){return n._handlePaginatorPress("after",o)})("click",function(){return n._handlePaginatorClick("after")})("touchend",function(){return n._stopInterval()}),Ee(12,"div",2),y()),2&e&&(Xe("mat-mdc-tab-header-pagination-disabled",n._disableScrollBefore),A("matRippleDisabled",n._disableScrollBefore||n.disableRipple)("disabled",n._disableScrollBefore||null),k(3),Xe("_mat-animation-noopable","NoopAnimations"===n._animationMode),k(7),Xe("mat-mdc-tab-header-pagination-disabled",n._disableScrollAfter),A("matRippleDisabled",n._disableScrollAfter||n.disableRipple)("disabled",n._disableScrollAfter||null))},dependencies:[xo,My],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.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}.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}.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}),t})();const oO=new ae("MAT_TABS_CONFIG");let XJ=0;const QJ=Ns(Bs(class{constructor(t){this._elementRef=t}}),"primary");let YJ=(()=>{class t extends QJ{get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=$e(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=An(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=An(e,null)}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=$e(e)}get preserveContent(){return this._preserveContent}set preserveContent(e){this._preserveContent=$e(e)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const n=this._elementRef.nativeElement.classList;n.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&n.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}constructor(e,n,r,o){super(e),this._changeDetectorRef=n,this._animationMode=o,this._tabs=new Ec,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=yt.EMPTY,this._tabLabelSubscription=yt.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new ke,this.focusChange=new ke,this.animationDone=new ke,this.selectedTabChange=new ke(!0),this._groupId=XJ++,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 n=null==this._selectedIndex;if(!n){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),n||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((n,r)=>{n.position=r-e,null!=this._selectedIndex&&0==n.position&&!n.origin&&(n.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 n=this._tabs.toArray();let r;for(let o=0;o{n[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Vn(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(n=>n._closestTabGroup===this||!n._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 n=this._tabHeader;n&&(n.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const n=new KJ;return n.index=e,this._tabs&&this._tabs.length&&(n.tab=this._tabs.toArray()[e]),n}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Vi(...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 n=this._tabBodyWrapper.nativeElement;n.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(n.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,n,r){n.focusIndex=r,e.disabled||(this.selectedIndex=r)}_getTabIndex(e){return e===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(e,n){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=n)}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Gt),b(oO,8),b(Ri,8))},t.\u0275dir=Q({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:[pe]}),t})(),sf=(()=>{class t extends YJ{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=$e(e),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(e){this._stretchTabs=$e(e)}constructor(e,n,r,o){super(e,n,r,o),this._fitInkBarToContent=!1,this._stretchTabs=!0,this.fitInkBarToContent=!(!r||null==r.fitInkBarToContent)&&r.fitInkBarToContent}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Gt),b(oO,8),b(Ri,8))},t.\u0275cmp=je({type:t,selectors:[["mat-tab-group"]],contentQueries:function(e,n,r){if(1&e&&Bt(r,f0,5),2&e){let o;xe(o=ye())&&(n._allTabs=o)}},viewQuery:function(e,n){if(1&e&&(st(wJ,5),st(CJ,5)),2&e){let r;xe(r=ye())&&(n._tabBodyWrapper=r.first),xe(r=ye())&&(n._tabHeader=r.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:6,hostBindings:function(e,n){2&e&&Xe("mat-mdc-tab-group-dynamic-height",n.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===n.headerPosition)("mat-mdc-tab-group-stretch-tabs",n.stretchTabs)},inputs:{color:"color",disableRipple:"disableRipple",fitInkBarToContent:"fitInkBarToContent",stretchTabs:["mat-stretch-tabs","stretchTabs"]},exportAs:["matTabGroup"],features:[We([{provide:nO,useExisting:t}]),pe],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["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"],["tabBodyWrapper",""],["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,"id","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange"],["tabNode",""],[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"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(e,n){1&e&&(v(0,"mat-tab-header",0,1),X("indexFocused",function(o){return n._focusChanged(o)})("selectFocusedIndex",function(o){return n.selectedIndex=o}),H(2,EJ,9,17,"div",2),y(),v(3,"div",3,4),H(5,TJ,1,11,"mat-tab-body",5),y()),2&e&&(A("selectedIndex",n.selectedIndex||0)("disableRipple",n.disableRipple)("disablePagination",n.disablePagination),k(2),A("ngForOf",n._tabs),k(1),Xe("_mat-animation-noopable","NoopAnimations"===n._animationMode),k(2),A("ngForOf",n._tabs))},dependencies:[Es,go,hn,os,xo,Rq,JR,iO,qJ],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 .mdc-tab-indicator__content--underline{border-top-width:2px}.mdc-tab-indicator .mdc-tab-indicator__content--icon{height:34px;font-size:34px}.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)}.mat-mdc-tab.mdc-tab{height:48px;flex-grow:0}.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}.mat-mdc-tab .mdc-tab__text-label{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}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-disabled{opacity:.4}.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-mdc-tab-header-with-background-background-color, transparent)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab-indicator__content--underline,.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{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.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-mdc-tab-header-with-background-foreground-color, inherit)}.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{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.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}),t})();class KJ{}let ZJ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[nr,xt,Bc,Vs,_g,Ny,xt]}),t})();var qd=cc(327);class JJ{constructor(i,e){this._document=e;const n=this._textarea=this._document.createElement("textarea"),r=n.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",n.setAttribute("aria-hidden","true"),n.value=i,n.readOnly=!0,this._document.body.appendChild(n)}copy(){const i=this._textarea;let e=!1;try{if(i){const n=this._document.activeElement;i.select(),i.setSelectionRange(0,i.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch{}return e}destroy(){const i=this._textarea;i&&(i.remove(),this._textarea=void 0)}}let aO=(()=>{class t{constructor(e){this._document=e}copy(e){const n=this.beginCopy(e),r=n.copy();return n.destroy(),r}beginCopy(e){return new JJ(e,this._document)}}return t.\u0275fac=function(e){return new(e||t)(G(it))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const eee=new ae("HighlightJs-Config");let F1=(()=>{class t{constructor(e,n,r,o,a){this.el=e,this.ngModel=n,this.doc=r,this.ngZone=a,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,n=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=n,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)(b(Ae),b(cs,8),b(it),b(eee,8),b(Ue))},t.\u0275dir=Q({type:t,selectors:[["","highlight-js",""]],hostVars:2,hostBindings:function(e,n){2&e&&ir("display","simple"===n.mode?"none":null)},inputs:{options:"options",lang:"lang",code:"code",mode:"mode"},exportAs:["highlightJs"],standalone:!0}),t})(),tee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[A1]}),t})();const iee=["trigger"],nee=["panel"];function ree(t,i){if(1&t&&(v(0,"span",10),M(1),y()),2&t){const e=q();k(1),tt(e.placeholder)}}function oee(t,i){if(1&t&&(v(0,"span",14),M(1),y()),2&t){const e=q(2);k(1),tt(e.triggerValue)}}function aee(t,i){1&t&&Je(0,0,["*ngSwitchCase","true"])}function see(t,i){1&t&&(v(0,"span",11),H(1,oee,2,1,"span",12),H(2,aee,1,0,"ng-content",13),y()),2&t&&(A("ngSwitch",!!q().customTrigger),k(2),A("ngSwitchCase",!0))}function cee(t,i){if(1&t){const e=ot();za(),Rl(),v(0,"div",15,16),X("@transformPanel.done",function(r){return Oe(e),Pe(q()._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){return Oe(e),Pe(q()._handleKeydown(r))}),Je(2,1),y()}if(2&t){const e=q();NE("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),A("ngClass",e.panelClass)("@transformPanel","showing"),rt("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const lee=[[["mat-select-trigger"]],"*"],dee=["mat-select-trigger","*"],uee={transformPanelWrap:bn("transformPanelWrap",[ai("* => void",Eg("@transformPanel",[Sg()],{optional:!0}))]),transformPanel:bn("transformPanel",[ii("void",nt({opacity:0,transform:"scale(1, 0.8)"})),ai("void => showing",fi("120ms cubic-bezier(0, 0, 0.2, 1)",nt({opacity:1,transform:"scale(1, 1)"}))),ai("* => void",fi("100ms linear",nt({opacity:0})))])};let sO=0;const cO=new ae("mat-select-scroll-strategy"),fee=new ae("MAT_SELECT_CONFIG"),mee={provide:cO,deps:[rr],useFactory:function hee(t){return()=>t.scrollStrategies.reposition()}},pee=new ae("MatSelectTrigger");class gee{constructor(i,e){this.source=i,this.value=e}}const _ee=Bs(Oh(ts(LI(class{constructor(t,i,e,n,r){this._elementRef=t,this._defaultErrorStateMatcher=i,this._parentForm=e,this._parentFormGroup=n,this.ngControl=r,this.stateChanges=new Ce}}))));let bee=(()=>{class t extends _ee{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(jd.required)??!1}set required(e){this._required=$e(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=$e(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=$e(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=An(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}constructor(e,n,r,o,a,s,c,l,d,u,h,f,m,g){super(a,o,c,l,u),this._viewportRuler=e,this._changeDetectorRef=n,this._ngZone=r,this._dir=s,this._parentFormField=d,this._liveAnnouncer=m,this._defaultOptions=g,this._panelOpen=!1,this._compareWith=(p,_)=>p===_,this._uid="mat-select-"+sO++,this._triggerAriaLabelledBy=null,this._destroy=new Ce,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+sO++,this._panelDoneAnimatingStream=new Ce,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=fd(()=>{const p=this.options;return p?p.changes.pipe(Vn(p),fn(()=>Vi(...p.map(_=>_.onSelectionChange)))):this._ngZone.onStable.pipe(ui(1),fn(()=>this.optionSelectionChanges))}),this.openedChange=new ke,this._openedStream=this.openedChange.pipe(hi(p=>p),Ye(()=>{})),this._closedStream=this.openedChange.pipe(hi(p=>!p),Ye(()=>{})),this.selectionChange=new ke,this.valueChange=new ke,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 fy(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Nc(),Tt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Tt(this._destroy)).subscribe(e=>{e.added.forEach(n=>n.select()),e.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(Vn(null),Tt(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),n=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}n&&(this._previousControl!==n.control&&(void 0!==this._previousControl&&null!==n.disabled&&n.disabled!==this.disabled&&(this.disabled=n.disabled),this._previousControl=n.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()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}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(n=>n.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 n=e.keyCode,r=40===n||38===n||37===n||39===n,o=13===n||32===n,a=this._keyManager;if(!a.isTyping()&&o&&!wr(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const s=this.selected;a.onKeydown(e);const c=this.selected;c&&s!==c&&this._liveAnnouncer.announce(c.viewValue,1e4)}}_handleOpenKeydown(e){const n=this._keyManager,r=e.keyCode,o=40===r||38===r,a=n.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(a||13!==r&&32!==r||!n.activeItem||wr(e))if(!a&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const s=this.options.some(c=>!c.disabled&&!c.selected);this.options.forEach(c=>{c.disabled||(s?c.select():c.deselect())})}else{const s=n.activeItemIndex;n.onKeydown(e),this._multiple&&o&&e.shiftKey&&n.activeItem&&n.activeItemIndex!==s&&n.activeItem._selectViaInteraction()}else e.preventDefault(),n.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(ui(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(n=>n.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(n=>this._selectOptionByValue(n)),this._sortValues();else{const n=this._selectOptionByValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const n=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 n&&this._selectionModel.select(n),n}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new EI(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]),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=Vi(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Tt(e)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Vi(...this.options.map(n=>n._stateChanges)).pipe(Tt(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,n){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),n&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),n&&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((n,r)=>this.sortComparator?this.sortComparator(n,r,e):e.indexOf(n)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let n=null;n=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=n,this.valueChange.emit(n),this._onChange(n),this.selectionChange.emit(this._getChangeEvent(n)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}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 n=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}_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}}return t.\u0275fac=function(e){return new(e||t)(b(_a),b(Gt),b(Ue),b(NI),b(Ae),b(_n,8),b(qc,8),b(js,8),b(d0,8),b(xa,10),uo("tabindex"),b(cO),b(Py),b(fee,8))},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&(st(iee,5),st(nee,5),st(gF,5)),2&e){let r;xe(r=ye())&&(n.trigger=r.first),xe(r=ye())&&(n.panel=r.first),xe(r=ye())&&(n._overlayDir=r.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[pe,Ei]}),t})(),cf=(()=>{class t extends bee{constructor(){super(...arguments),this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Tt(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(),this._changeDetectorRef.detectChanges())})}ngAfterViewInit(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin())}open(){this._overlayWidth=this._getOverlayWidth(),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(e){const n=this.options.toArray()[e];if(n){const r=this.panel.nativeElement,o=WI(e,this.options,this.optionGroups),a=n._getHostElement();r.scrollTop=0===e&&1===o?0:GI(a.offsetTop,a.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new gee(this,e)}_getOverlayWidth(){return(this._preferredOverlayOrigin instanceof Yy?this._preferredOverlayOrigin.elementRef:this._preferredOverlayOrigin||this._elementRef).nativeElement.getBoundingClientRect().width}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=$e(e),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275cmp=je({type:t,selectors:[["mat-select"]],contentQueries:function(e,n,r){if(1&e&&(Bt(r,pee,5),Bt(r,Hs,5),Bt(r,Hy,5)),2&e){let o;xe(o=ye())&&(n.customTrigger=o.first),xe(o=ye())&&(n.options=o),xe(o=ye())&&(n.optionGroups=o)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(e,n){1&e&&X("keydown",function(o){return n._handleKeydown(o)})("focus",function(){return n._onFocus()})("blur",function(){return n._onBlur()}),2&e&&(rt("id",n.id)("tabindex",n.tabIndex)("aria-controls",n.panelOpen?n.id+"-panel":null)("aria-expanded",n.panelOpen)("aria-label",n.ariaLabel||null)("aria-required",n.required.toString())("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState)("aria-activedescendant",n._getAriaActiveDescendant()),Xe("mat-mdc-select-disabled",n.disabled)("mat-mdc-select-invalid",n.errorState)("mat-mdc-select-required",n.required)("mat-mdc-select-empty",n.empty)("mat-mdc-select-multiple",n.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matSelect"],features:[We([{provide:l0,useExisting:t},{provide:Vy,useExisting:t}]),pe],ngContentSelectors:dee,decls:11,vars:11,consts:[["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],[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"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","backdropClick","attach","detach"],[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,"ngClass","keydown"],["panel",""]],template:function(e,n){if(1&e&&(vi(lee),v(0,"div",0,1),X("click",function(){return n.toggle()}),v(3,"div",2),H(4,ree,2,1,"span",3),H(5,see,3,2,"span",4),y(),v(6,"div",5)(7,"div",6),za(),v(8,"svg",7),Ee(9,"path",8),y()()()(),H(10,cee,3,9,"ng-template",9),X("backdropClick",function(){return n.close()})("attach",function(){return n._onAttached()})("detach",function(){return n.close()})),2&e){const r=Nt(1);rt("aria-owns",n.panelOpen?n.id+"-panel":null),k(3),A("ngSwitch",n.empty),rt("id",n._valueId),k(1),A("ngSwitchCase",!0),k(1),A("ngSwitchCase",!1),k(5),A("cdkConnectedOverlayPanelClass",n._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",n._scrollStrategy)("cdkConnectedOverlayOrigin",n._preferredOverlayOrigin||r)("cdkConnectedOverlayOpen",n.panelOpen)("cdkConnectedOverlayPositions",n._positions)("cdkConnectedOverlayWidth",n._overlayWidth)}},dependencies:[Es,nh,xx,nM,gF,Yy],styles:['.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mat-mdc-select{display:inline-block;width:100%;outline:none}.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}.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}.mdc-menu-surface.mat-mdc-select-panel{width:100%;max-height:275px;position:static;outline:0;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-select-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) .mdc-menu-surface.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above .mdc-menu-surface.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)}._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.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:[uee.transformPanel]},changeDetection:0}),t})(),vee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[mee],imports:[nr,Uc,kg,xt,Vc,u0,kg,xt]}),t})();const xee=["tooltip"],lO=new ae("mat-tooltip-scroll-strategy"),Cee={provide:lO,deps:[rr],useFactory:function wee(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},Dee=new ae("mat-tooltip-default-options",{providedIn:"root",factory:function kee(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),dO="tooltip-panel",uO=Go({passive:!0});let Iee=(()=>{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=$e(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){this._disabled=$e(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=An(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=An(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,n,r,o,a,s,c,l,d,u,h,f){this._overlay=e,this._elementRef=n,this._scrollDispatcher=r,this._viewContainerRef=o,this._ngZone=a,this._platform=s,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._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Ce,this._scrollStrategy=d,this._document=f,h&&(h.position&&(this.position=h.position),h.positionAtOrigin&&(this.positionAtOrigin=h.positionAtOrigin),h.touchGestures&&(this.touchGestures=h.touchGestures)),u.change.pipe(Tt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Tt(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([n,r])=>{e.removeEventListener(n,r,uO)}),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,n){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const r=this._createOverlay(n);this._detach(),this._portal=this._portal||new Id(this._tooltipComponent,this._viewContainerRef);const o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(Tt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){const n=this._tooltipInstance;n&&(n.isVisible()?n.hide(e):(n._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 Ae)return this._overlayRef;this._detach()}const n=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(n);return r.positionChanges.pipe(Tt(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${dO}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Tt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Tt(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Tt(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&27===o.keyCode&&!wr(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 n=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();n.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,n=this.position;let r;"above"==n||"below"==n?r={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&e||"right"==n&&!e?r={originX:"start",originY:"center"}:("after"==n||"right"==n&&e||"left"==n&&!e)&&(r={originX:"end",originY:"center"});const{x:o,y:a}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:a}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,n=this.position;let r;"above"==n?r={overlayX:"center",overlayY:"bottom"}:"below"==n?r={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&e||"right"==n&&!e?r={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&e||"left"==n&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:o,y:a}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(ui(1),Tt(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,n){return"above"===this.position||"below"===this.position?"top"===n?n="bottom":"bottom"===n&&(n="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:n}}_updateCurrentPositionClass(e){const{overlayY:n,originX:r,originY:o}=e;let a;if(a="center"===n?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===n&&"top"===o?"above":"below",a!==this._currentPosition){const s=this._overlayRef;if(s){const c=`${this._cssClassPrefix}-${dO}-`;s.removePanelClass(c+this._currentPosition),s.addPanelClass(c+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{let n;this._setupPointerExitEventsIfNeeded(),void 0!==e.x&&void 0!==e.y&&(n=e),this.show(void 0,n)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{const n=e.targetTouches?.[0],r=n?{x:n.clientX,y:n.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",n=>{const r=n.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",n=>this._wheelListener(n)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const n=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",n],["touchcancel",n])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([n,r])=>{this._elementRef.nativeElement.addEventListener(n,r,uO)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const n=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;n!==r&&!r.contains(n)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const n=this._elementRef.nativeElement,r=n.style;("on"===e||"INPUT"!==n.nodeName&&"TEXTAREA"!==n.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!n.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){aa()},t.\u0275dir=Q({type:t,inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),lf=(()=>{class t extends Iee{constructor(e,n,r,o,a,s,c,l,d,u,h,f){super(e,n,r,o,a,s,c,l,d,u,h,f),this._tooltipComponent=Ree,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}}return t.\u0275fac=function(e){return new(e||t)(b(rr),b(Ae),b(Fd),b(Fi),b(Ue),b(xi),b(kI),b(vo),b(lO),b(_n,8),b(Dee,8),b(it))},t.\u0275dir=Q({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],exportAs:["matTooltip"],features:[pe]}),t})(),Fee=(()=>{class t{constructor(e,n){this._changeDetectorRef=e,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Ce,this._animationsDisabled="NoopAnimations"===n}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){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(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const n=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(n.classList.remove(e?o:r),n.classList.add(e?r:o),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const a=getComputedStyle(n);("0s"===a.getPropertyValue("animation-duration")||"none"===a.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(n.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return t.\u0275fac=function(e){return new(e||t)(b(Gt),b(Ri,8))},t.\u0275dir=Q({type:t}),t})(),Ree=(()=>{class t extends Fee{constructor(e,n,r){super(e,r),this._elementRef=n,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}}return t.\u0275fac=function(e){return new(e||t)(b(Gt),b(Ae),b(Ri,8))},t.\u0275cmp=je({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(e,n){if(1&e&&st(xee,7),2&e){let r;xe(r=ye())&&(n._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,n){1&e&&X("mouseleave",function(o){return n._handleMouseLeave(o)}),2&e&&ir("zoom",n.isVisible()?1:null)},features:[pe],decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(e,n){1&e&&(v(0,"div",0,1),X("animationend",function(o){return n._handleAnimationEnd(o)}),v(2,"div",2),M(3),y()()),2&e&&(Xe("mdc-tooltip--multiline",n._isMultiline),A("ngClass",n.tooltipClass),k(3),tt(n.message))},dependencies:[Es],styles:['.mdc-tooltip__surface{word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.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{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}}.mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color, #fff)}.mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color, #000)}.mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font, inherit);font-size:var(--mdc-plain-tooltip-supporting-text-size, inherit);font-weight:var(--mdc-plain-tooltip-supporting-text-weight, inherit);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, inherit)}.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}),t})(),Oee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[Cee],imports:[Ny,nr,Uc,xt,xt,Vc]}),t})();const Pee=["switch"],Lee=["*"],Nee=new ae("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})}),Bee={provide:Xn,useExisting:Xt(()=>fO),multi:!0};class hO{constructor(i,e){this.source=i,this.checked=e}}let Vee=0;const Hee=Oh(Ns(Bs(ts(class{constructor(t){this._elementRef=t}}))));let Uee=(()=>{class t extends Hee{get required(){return this._required}set required(e){this._required=$e(e)}get checked(){return this._checked}set checked(e){this._checked=$e(e),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,n,r,o,a,s,c){super(e),this._focusMonitor=n,this._changeDetectorRef=r,this.defaults=a,this._onChange=l=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new ke,this.toggleChange=new ke,this.tabIndex=parseInt(o)||0,this.color=this.defaultColor=a.color||"accent",this._noopAnimations="NoopAnimations"===s,this.id=this._uniqueId=`${c}${++Vee}`}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))}}return t.\u0275fac=function(e){aa()},t.\u0275dir=Q({type:t,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[pe]}),t})(),fO=(()=>{class t extends Uee{get buttonId(){return`${this.id||this._uniqueId}-button`}constructor(e,n,r,o,a,s){super(e,n,r,o,a,s,"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 hO(this,this.checked)))}focus(){this._switchElement.nativeElement.focus()}_createChangeEvent(e){return new hO(this,e)}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(vo),b(Gt),uo("tabindex"),b(Nee),b(Ri,8))},t.\u0275cmp=je({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(e,n){if(1&e&&st(Pee,5),2&e){let r;xe(r=ye())&&(n._switchElement=r.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:11,hostBindings:function(e,n){2&e&&(ua("id",n.id),rt("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Xe("mat-mdc-slide-toggle-focused",n._focused)("mat-mdc-slide-toggle-checked",n.checked)("_mat-animation-noopable",n._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[We([Bee]),pe],ngContentSelectors:Lee,decls:17,vars:24,consts:[[1,"mdc-form-field"],["role","switch","type","button",1,"mdc-switch",3,"tabIndex","disabled","click"],["switch",""],[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"],["viewBox","0 0 24 24",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",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"],[3,"for","click"]],template:function(e,n){if(1&e&&(vi(),v(0,"div",0)(1,"button",1,2),X("click",function(){return n._handleClick()}),Ee(3,"div",3),v(4,"div",4)(5,"div",5)(6,"div",6),Ee(7,"div",7),y(),v(8,"div",8),Ee(9,"div",9),y(),v(10,"div",10),za(),v(11,"svg",11),Ee(12,"path",12),y(),v(13,"svg",13),Ee(14,"path",14),y()()()()(),Rl(),v(15,"label",15),X("click",function(o){return o.stopPropagation()}),Je(16),y()()),2&e){const r=Nt(2);Xe("mdc-form-field--align-end","before"==n.labelPosition),k(1),Xe("mdc-switch--selected",n.checked)("mdc-switch--unselected",!n.checked)("mdc-switch--checked",n.checked)("mdc-switch--disabled",n.disabled),A("tabIndex",n.tabIndex)("disabled",n.disabled),rt("id",n.buttonId)("name",n.name)("aria-label",n.ariaLabel)("aria-labelledby",n._getAriaLabelledBy())("aria-describedby",n.ariaDescribedby)("aria-required",n.required||null)("aria-checked",n.checked),k(8),A("matRippleTrigger",r)("matRippleDisabled",n.disableRipple||n.disabled)("matRippleCentered",!0),k(6),A("for",n.buttonId),rt("id",n._labelId)}},dependencies:[xo],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, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color, #fff)}.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{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mdc-switch{width:var(--mdc-switch-track-width, 36px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color, #616161)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color, #424242)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color, var(--mdc-theme-surface, #fff))}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation, 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-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-slide-toggle .mdc-switch .mdc-switch__focus-ring-wrapper,.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{height:var(--mdc-switch-handle-height, 20px)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__handle::after{opacity:var(--mdc-switch-disabled-handle-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{border-radius:var(--mdc-switch-handle-shape, 10px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{width:var(--mdc-switch-handle-width, 20px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle-track{width:calc(100% - var(--mdc-switch-handle-width, 20px))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:var(--mdc-switch-selected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:var(--mdc-switch-unselected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size, 18px);height:var(--mdc-switch-selected-icon-size, 18px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size, 18px);height:var(--mdc-switch-unselected-icon-size, 18px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-hover-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-focus-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-pressed-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-hover-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-focus-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-pressed-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mat-mdc-slide-toggle .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, 0.04)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mat-mdc-slide-toggle .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, 0.12)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mat-mdc-slide-toggle .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, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mat-mdc-slide-toggle .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, 0.04)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mat-mdc-slide-toggle .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, 0.12)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mat-mdc-slide-toggle .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, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__ripple{height:var(--mdc-switch-state-layer-size, 48px);width:var(--mdc-switch-state-layer-size, 48px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__track{height:var(--mdc-switch-track-height, 14px)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__track::after{background:var(--mdc-switch-selected-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color, #424242)}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__track::before{background:var(--mdc-switch-unselected-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color, #424242)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__track{border-radius:var(--mdc-switch-track-shape, 7px)}.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}'],encapsulation:2,changeDetection:0}),t})(),mO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({}),t})(),jee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[mO,xt,Vs,nr,mO,xt]}),t})();function Wee(t,i){if(1&t){const e=ot();v(0,"button",14),X("click",function(){Oe(e);const r=q().index;return Pe(q().removeReaction(r))}),v(1,"mat-icon"),M(2,"close"),y()()}}function Gee(t,i){if(1&t){const e=ot();v(0,"mat-option",15),X("click",function(){const o=Oe(e).$implicit,a=q().$implicit;return Pe(q().reactionSeveritySelected(a,o))}),M(1),y()}if(2&t){const e=i.$implicit;A("value",e),k(1),tt(e.display)}}function qee(t,i){if(1&t){const e=ot();v(0,"div",2)(1,"div",3),H(2,Wee,3,0,"button",4),y(),v(3,"div",5)(4,"div",6)(5,"app-autocomplete-binding",7),X("selectionChange",function(r){const a=Oe(e).$implicit;return Pe(q().reactionManifestationSelected(a,r))}),y()(),v(6,"button",8)(7,"mat-icon"),M(8,"info"),y()(),v(9,"mat-menu",null,9)(11,"span",10),X("click",function(r){return r.stopPropagation()}),v(12,"p"),M(13,"Terminology binding:"),y(),v(14,"pre"),M(15),y()()()(),v(16,"mat-form-field",11)(17,"mat-label"),M(18,"Reaction Severity"),y(),v(19,"mat-select"),H(20,Gee,2,2,"mat-option",12),y()(),v(21,"div",5)(22,"div",6)(23,"app-autocomplete-binding",7),X("selectionChange",function(r){const a=Oe(e).$implicit;return Pe(q().reactionRouteSelected(a,r))}),y()(),v(24,"button",8)(25,"mat-icon"),M(26,"info"),y()(),v(27,"mat-menu",null,13)(29,"span",10),X("click",function(r){return r.stopPropagation()}),v(30,"p"),M(31,"Terminology binding:"),y(),v(32,"pre"),M(33),y()()()()()}if(2&t){const e=i.index,n=Nt(10),r=Nt(28),o=q();k(2),A("ngIf",e>0),k(3),A("binding",o.reactionManifestationBinding),k(1),A("matMenuTriggerFor",n),k(5),A("disableRipple",!0),k(4),tt(o.reactionManifestationBinding.ecl),k(5),A("ngForOf",o.severityOptions),k(3),A("binding",o.routeBinding),k(1),A("matMenuTriggerFor",r),k(5),A("disableRipple",!0),k(4),tt(o.routeBinding.ecl)}}let Xee=(()=>{class t{constructor(){this.reactions=[],this.newManifestation=new ke,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,n){e.manifestation=n,this.newManifestation.emit(n),this.onChangeCallback(this.reactions)}reactionSeveritySelected(e,n){e.severity=n,this.onChangeCallback(this.reactions)}reactionRouteSelected(e,n){e.route=n,this.onChangeCallback(this.reactions)}registerOnChange(e){this.onChangeCallback=e}registerOnTouched(e){this.onTouchedCallback=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=je({type:t,selectors:[["app-allergies-allergy-list-reaction"]],inputs:{reactions:"reactions"},outputs:{newManifestation:"newManifestation"},features:[We([{provide:Xn,useExisting:Xt(()=>t),multi:!0}])],decls:5,vars:1,consts:[["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,"binding","selectionChange"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor"],["reactionPopoverMenu","matMenu"],["mat-menu-item","",3,"disableRipple","click"],[1,"form-field"],[3,"value","click",4,"ngFor","ngForOf"],["routePopoverMenu","matMenu"],["mat-icon-button","","color","primary","matTooltip","Remove reaction",1,"remove",3,"click"],[3,"value","click"]],template:function(e,n){1&e&&(H(0,qee,34,10,"div",0),v(1,"div")(2,"button",1),X("click",function(){return n.addNewReaction()}),v(3,"mat-icon"),M(4,"add"),y()()()),2&e&&A("ngForOf",n.reactions)},dependencies:[go,hn,is,ba,$c,va,jc,Ws,wa,Hs,cf,lf,h0],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%}"]}),t})();function Qee(t,i){if(1&t){const e=ot();v(0,"mat-option",31),X("click",function(){return Oe(e),Pe(q().updateAllergyStr())}),M(1),y()}if(2&t){const e=i.$implicit;A("value",e),k(1),tt(e.display)}}function Yee(t,i){if(1&t){const e=ot();v(0,"mat-option",31),X("click",function(){return Oe(e),Pe(q().updateAllergyStr())}),M(1),y()}if(2&t){const e=i.$implicit;A("value",e),k(1),tt(e.display)}}function Kee(t,i){if(1&t){const e=ot();v(0,"mat-option",31),X("click",function(){return Oe(e),Pe(q().updateAllergyStr())}),M(1),y()}if(2&t){const e=i.$implicit;A("value",e),k(1),tt(e.display)}}function Zee(t,i){if(1&t){const e=ot();v(0,"app-autocomplete-binding",10),X("selectionChange",function(r){return Oe(e),Pe(q().substanceSelected(r,!0))}),y()}if(2&t){const e=q();A("binding",e.substanceBinding)("term",e.selectedSubstanceTerm)}}function Jee(t,i){if(1&t){const e=ot();v(0,"app-autocomplete-binding",10),X("selectionChange",function(r){return Oe(e),Pe(q().substanceSelected(r))}),y()}if(2&t){const e=q();A("binding",e.refinedSubstanceBinding)("term",e.selectedSubstanceTerm)}}function ete(t,i){if(1&t&&(v(0,"pre"),M(1),y()),2&t){const e=q();k(1),tt(e.substanceBinding.ecl)}}function tte(t,i){if(1&t&&(v(0,"pre"),M(1),y()),2&t){const e=q();k(1),tt(e.refinedSubstanceBinding.ecl)}}function ite(t,i){if(1&t){const e=ot();v(0,"mat-option",31),X("click",function(){return Oe(e),Pe(q().updateAllergyStr())}),M(1),y()}if(2&t){const e=i.$implicit;A("value",e),k(1),tt(e.display)}}function nte(t,i){if(1&t){const e=ot();v(0,"mat-option",31),X("click",function(){return Oe(e),Pe(q().updateAllergyStr())}),M(1),y()}if(2&t){const e=i.$implicit;A("value",e),k(1),tt(e.display)}}const rte=function(){return{}};let ote=(()=>{class t{constructor(e,n,r){this.terminologyService=e,this.clipboard=n,this._snackBar=r,this.newProblem=new ke,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 Jr(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 Jr(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,n){var r=this;return Oi(function*(){n&&(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(a=>{"762766007"==a.code?r.selectedIntoleranceCategories.push(r.intoleranceCategoryOptions[0]):"115668003"==a.code?r.selectedIntoleranceCategories.push(r.intoleranceCategoryOptions[3]):"410942007"==a.code?r.selectedIntoleranceCategories.push(r.intoleranceCategoryOptions[1]):"57795002"==a.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 n=this;return Oi(function*(){if(e=Object.assign({system:"http://snomed.info/sct"},e)){n.selectedCodeTerm=e.display,n.selectedCode=e,n.recordPropensity&&(n.outputAllergy.code.coding=[e]);let r=yield n.getTypes(e);if(r.expansion?.contains){const a=r.expansion?.contains[0];n.selectedIntoleranceType=n.intoleranceTypeOptions.find(s=>s.code===a.code)}let o=yield n.getAllergySubstance(e);if(o.expansion.contains||(o=yield n.getIntoleranceSubstance(e)),o.expansion?.contains){const a=o.expansion?.contains[0];n.refinedSubstanceBinding.ecl=`<<${a.code} | ${a.display} |`,n.substanceSelected(a),n.selectedSubstanceTerm=a.display}else n.refinedSubstanceBinding.ecl="<<105590001 | Substance (substance) |"}})()}getIntoleranceSubstance(e){var n=this;return Oi(function*(){return Wo((yield n.terminologyService.expandValueSet(`${e.code} |${e.display}| . 47429007 |Associated with (attribute)|`,"")).pipe(Ye(o=>o)))})()}getAllergySubstance(e){var n=this;return Oi(function*(){return Wo((yield n.terminologyService.expandValueSet(`${e.code} |${e.display}| . 246075003 |Causative agent (attribute)|`,"")).pipe(Ye(o=>o)))})()}getSubstanceCategories(e){var n=this;return Oi(function*(){return Wo((yield n.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(Ye(o=>o)))})()}getTypes(e){var n=this;return Oi(function*(){return Wo((yield n.terminologyService.expandValueSet(`> ${e.code} |${e.display}| AND (609433001 |Hypersensitivity disposition| OR 782197009 |Intolerance to substance|)`,"")).pipe(Ye(o=>o)))})()}saveFhirResource(){var e=new Blob([this.outputAllergyStr],{type:"text/plain;charset=utf-8"});(0,qd.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(Hn,{duration:1e3,data:"Nothing to add to problem list",panelClass:["yellow-snackbar"]});this.clear()}}return t.\u0275fac=function(e){return new(e||t)(b(wo),b(aO),b(Od))},t.\u0275cmp=je({type:t,selectors:[["app-allergies-allergy-list"]],outputs:{newProblem:"newProblem"},decls:105,vars:30,consts:[["id","main-card"],[1,"row"],[1,"column"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor"],["substancePopoverMenu","matMenu"],["mat-menu-item","",1,"long-tooltip",3,"disableRipple","click"],["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,"binding","term","selectionChange"],["codePopoverMenu","matMenu"],["mat-menu-item","",3,"disableRipple","click"],["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,"ngModel","ngModelChange","click"],[1,"form-field"],[3,"ngModel","ngModelChange"],[3,"value","click",4,"ngFor","ngForOf"],[1,"small-form-field"],[3,"binding","term","selectionChange",4,"ngIf"],[4,"ngIf"],[3,"formControl","multiple"],[3,"ngModel","ngModelChange","newManifestation"],["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,"value","click"]],template:function(e,n){if(1&e&&(v(0,"mat-card",0)(1,"div",1)(2,"div",2)(3,"h4"),M(4,"Allergy Intolerance Form "),v(5,"button",3)(6,"mat-icon"),M(7,"info"),y()(),v(8,"mat-menu",null,4)(10,"span",5),X("click",function(o){return o.stopPropagation()}),v(11,"h4"),M(12,"Allergy list"),y(),v(13,"p"),M(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."),y(),v(15,"p"),M(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."),y(),v(17,"p"),M(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."),y(),v(19,"p"),M(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."),y(),v(21,"p"),M(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."),y(),v(23,"p"),M(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)."),y(),v(25,"p"),M(26,"For more information check the "),v(27,"a",6),M(28,"Implementation Guide"),y(),M(29," developed by the SNOMED International Allergy Clinical Reference Group."),y()()()(),v(30,"button",7),X("click",function(){return n.clear()}),M(31,"Clear"),y(),v(32,"div",8)(33,"div",9)(34,"app-autocomplete-binding",10),X("selectionChange",function(o){return n.codeSelected(o)}),y()(),v(35,"button",3)(36,"mat-icon"),M(37,"info"),y()(),v(38,"mat-menu",null,11)(40,"span",12),X("click",function(o){return o.stopPropagation()}),v(41,"p"),M(42,"Terminology binding:"),y(),v(43,"pre"),M(44),y()()(),v(45,"mat-slide-toggle",13),X("ngModelChange",function(o){return n.recordPropensity=o})("click",function(){return n.propensityRecordChanged()}),M(46," Propensity based model "),y()(),v(47,"mat-form-field",14)(48,"mat-label"),M(49,"Allergy Intolerance Type"),y(),v(50,"mat-select",15),X("ngModelChange",function(o){return n.selectedIntoleranceType=o}),H(51,Qee,2,2,"mat-option",16),y()(),v(52,"div",8)(53,"mat-form-field",2)(54,"mat-label"),M(55,"Clinical Status"),y(),v(56,"mat-select",15),X("ngModelChange",function(o){return n.selectedClinicalStatus=o}),H(57,Yee,2,2,"mat-option",16),y()(),v(58,"mat-form-field",2)(59,"mat-label"),M(60,"Verification Status"),y(),v(61,"mat-select",15),X("ngModelChange",function(o){return n.selectedVerificationStatus=o}),H(62,Kee,2,2,"mat-option",16),y()()(),v(63,"div",8)(64,"div",17),H(65,Zee,1,2,"app-autocomplete-binding",18),H(66,Jee,1,2,"app-autocomplete-binding",18),y(),v(67,"button",3)(68,"mat-icon"),M(69,"info"),y()(),v(70,"mat-menu",null,4)(72,"span",12),X("click",function(o){return o.stopPropagation()}),v(73,"p"),M(74,"Terminology binding:"),y(),H(75,ete,2,1,"pre",19),H(76,tte,2,1,"pre",19),y()()(),v(77,"div",8)(78,"mat-form-field",2)(79,"mat-label"),M(80,"Substance Category"),y(),v(81,"mat-select",20),H(82,ite,2,2,"mat-option",16),y()(),v(83,"mat-form-field",2)(84,"mat-label"),M(85,"Allergy Criticality"),y(),v(86,"mat-select",15),X("ngModelChange",function(o){return n.selectedCriticality=o}),H(87,nte,2,2,"mat-option",16),y()()(),v(88,"app-allergies-allergy-list-reaction",21),X("ngModelChange",function(o){return n.selectedReactions=o})("ngModelChange",function(o){return n.onReactionsChange(o)})("newManifestation",function(o){return n.newProblem.emit(o)}),y(),v(89,"button",22),X("click",function(){return n.addToProblemsList()}),M(90,"Save"),y()(),v(91,"div",2)(92,"h4"),M(93,"AllergyIntolerance HL7 FHIR Resource ("),v(94,"a",23),M(95,"link"),y(),M(96,")"),y(),v(97,"div",24)(98,"div",25)(99,"button",26),X("click",function(){return n.saveFhirResource()}),Ee(100,"mat-icon",27),y(),v(101,"button",28),X("click",function(){return n.copyToClipboard(n.outputAllergyStr)}),Ee(102,"mat-icon",29),y()(),v(103,"textarea",30),M(104," "),y()()()()()),2&e){const r=Nt(9),o=Nt(39);k(5),A("matMenuTriggerFor",r),k(5),A("disableRipple",!0),k(24),A("binding",n.codeBinding)("term",n.selectedCodeTerm),k(1),A("matMenuTriggerFor",o),k(5),A("disableRipple",!0),k(4),tt(n.codeBinding.ecl),k(1),A("ngModel",n.recordPropensity),k(5),A("ngModel",n.selectedIntoleranceType),k(1),A("ngForOf",n.intoleranceTypeOptions),k(5),A("ngModel",n.selectedClinicalStatus),k(1),A("ngForOf",n.clinicalStatusOptions),k(4),A("ngModel",n.selectedVerificationStatus),k(1),A("ngForOf",n.verificationStatusOptions),k(3),A("ngIf",!n.recordPropensity),k(1),A("ngIf",n.recordPropensity),k(1),A("matMenuTriggerFor",r),k(5),A("disableRipple",!0),k(3),A("ngIf",!n.recordPropensity),k(1),A("ngIf",n.recordPropensity),k(5),A("formControl",n.selectedIntoleranceCategoriesControl)("multiple",!0),k(1),A("ngForOf",n.intoleranceCategoryOptions),k(4),A("ngModel",n.selectedCriticality),k(1),A("ngForOf",n.criticalityOptions),k(1),A("ngModel",n.selectedReactions),k(15),A("options",Sc(29,rte))("lang","json")("innerHTML",n.outputAllergyStr,Gm)}},dependencies:[go,hn,F1,yo,is,ba,$c,va,jc,Ws,wa,Hs,ya,o0,e1,cf,cs,lf,fO,h0,Xee],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}"]}),t})(),pO=(()=>{class t{constructor(e){this._snackBar=e}addProblem(e){var n=this;return Oi(function*(){n.allergiesProblemListComponent.addProblem(e),n._snackBar.openFromComponent(Hn,{duration:1e3,data:"Problem list updated",panelClass:["green-snackbar"]})})()}}return t.\u0275fac=function(e){return new(e||t)(b(Od))},t.\u0275cmp=je({type:t,selectors:[["app-allergies"]],viewQuery:function(e,n){if(1&e&&st(KR,5),2&e){let r;xe(r=ye())&&(n.allergiesProblemListComponent=r.first)}},decls:31,vars:2,consts:[["id","main-panel"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor"],["substancePopoverMenu","matMenu"],["mat-menu-item","",1,"long-tooltip",3,"disableRipple","click"],["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(e,n){if(1&e&&(v(0,"div",0)(1,"h3"),M(2,"Allergy, Hypersensitivity and Intolerance "),v(3,"button",1)(4,"mat-icon"),M(5,"info"),y()(),v(6,"mat-menu",null,2)(8,"span",3),X("click",function(o){return o.stopPropagation()}),v(9,"h4"),M(10,"Allergy, Hypersensitivity and Intolerance Implementation Demo"),y(),v(11,"p"),M(12,"This is a demonstration of different implementation approaches for recording Allergies, Hypersensitivity and Intolerance."),y(),v(13,"p")(14,"b"),M(15,"Allergy list:"),y(),M(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."),y(),v(17,"p")(18,"b"),M(19,"Problem list:"),y(),M(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."),y(),v(21,"p"),M(22,"For more information check the "),v(23,"a",4),M(24,"Implementation Guide"),y(),M(25," developed by the SNOMED International Allergy Clinical Reference Group."),y()()()(),v(26,"mat-tab-group",5)(27,"mat-tab",6)(28,"app-allergies-allergy-list",7),X("newProblem",function(o){return n.addProblem(o)}),y()(),v(29,"mat-tab",8),Ee(30,"app-allergies-problem-list"),y()()()),2&e){const r=Nt(7);k(3),A("matMenuTriggerFor",r),k(5),A("disableRipple",!0)}},dependencies:[is,ba,$c,va,jc,f0,sf,KR,ote],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}"]}),t})();function R1(t,i,e){for(let n in i)if(i.hasOwnProperty(n)){const r=i[n];r?t.setProperty(n,r,e?.has(n)?"important":""):t.removeProperty(n)}return t}function Xd(t,i){const e=i?"":"none";R1(t.style,{"touch-action":i?"":"none","-webkit-user-drag":i?"":"none","-webkit-tap-highlight-color":i?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function gO(t,i,e){R1(t.style,{position:i?"":"fixed",top:i?"":"0",opacity:i?"":"0",left:i?"":"-999em"},e)}function m0(t,i){return i&&"none"!=i?t+" "+i:t}function _O(t){const i=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*i}function O1(t,i){return t.getPropertyValue(i).split(",").map(n=>n.trim())}function P1(t){const i=t.getBoundingClientRect();return{top:i.top,right:i.right,bottom:i.bottom,left:i.left,width:i.width,height:i.height,x:i.x,y:i.y}}function L1(t,i,e){const{top:n,bottom:r,left:o,right:a}=t;return e>=n&&e<=r&&i>=o&&i<=a}function df(t,i,e){t.top+=i,t.bottom=t.top+t.height,t.left+=e,t.right=t.left+t.width}function bO(t,i,e,n){const{top:r,right:o,bottom:a,left:s,width:c,height:l}=t,d=c*i,u=l*i;return n>r-u&&ns-d&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:P1(e)})})}handleScroll(i){const e=Zr(i),n=this.positions.get(e);if(!n)return null;const r=n.scrollPosition;let o,a;if(e===this._document){const l=this.getViewportScrollPosition();o=l.top,a=l.left}else o=e.scrollTop,a=e.scrollLeft;const s=r.top-o,c=r.left-a;return this.positions.forEach((l,d)=>{l.clientRect&&e!==d&&e.contains(d)&&df(l.clientRect,s,c)}),r.top=o,r.left=a,{top:s,left:c}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function xO(t){const i=t.cloneNode(!0),e=i.querySelectorAll("[id]"),n=t.nodeName.toLowerCase();i.removeAttribute("id");for(let r=0;rXd(n,e)))}constructor(i,e,n,r,o,a){this._config=e,this._document=n,this._ngZone=r,this._viewportRuler=o,this._dragDropRegistry=a,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new Ce,this._pointerMoveSubscription=yt.EMPTY,this._pointerUpSubscription=yt.EMPTY,this._scrollSubscription=yt.EMPTY,this._resizeSubscription=yt.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 Ce,this.started=new Ce,this.released=new Ce,this.ended=new Ce,this.entered=new Ce,this.exited=new Ce,this.dropped=new Ce,this.moved=this._moveEvents,this._pointerDown=s=>{if(this.beforeStarted.next(),this._handles.length){const c=this._getTargetHandle(s);c&&!this._disabledHandles.has(c)&&!this.disabled&&this._initializeDragSequence(c,s)}else this.disabled||this._initializeDragSequence(this._rootElement,s)},this._pointerMove=s=>{const c=this._getPointerPositionOnPage(s);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(s),m=this._dropContainer;if(!f)return void this._endDragSequence(s);(!m||!m.isDragging()&&!m.isReceiving())&&(s.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(s)))}return}s.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:s,distance:this._getDragDistance(l),delta:this._pointerDirectionDelta})})},this._pointerUp=s=>{this._endDragSequence(s)},this._nativeDragStart=s=>{if(this._handles.length){const c=this._getTargetHandle(s);c&&!this._disabledHandles.has(c)&&!this.disabled&&s.preventDefault()}else this.disabled||s.preventDefault()},this.withRootElement(i).withParent(e.parentDragRef||null),this._parentPositions=new vO(n),a.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(i){this._handles=i.map(n=>Ki(n)),this._handles.forEach(n=>Xd(n,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(n=>{this._handles.indexOf(n)>-1&&e.add(n)}),this._disabledHandles=e,this}withPreviewTemplate(i){return this._previewTemplate=i,this}withPlaceholderTemplate(i){return this._placeholderTemplate=i,this}withRootElement(i){const e=Ki(i);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,p0),e.addEventListener("touchstart",this._pointerDown,kO),e.addEventListener("dragstart",this._nativeDragStart,p0)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(i){return this._boundaryElement=i?Ki(i):null,this._resizeSubscription.unsubscribe(),i&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(i){return this._parentDragRef=i,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(i){!this._disabledHandles.has(i)&&this._handles.indexOf(i)>-1&&(this._disabledHandles.add(i),Xd(i,!0))}enableHandle(i){this._disabledHandles.has(i)&&(this._disabledHandles.delete(i),Xd(i,this.disabled))}withDirection(i){return this._direction=i,this}_withDropContainer(i){this._dropContainer=i}getFreeDragPosition(){const i=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:i.x,y:i.y}}setFreeDragPosition(i){return this._activeTransform={x:0,y:0},this._passiveTransform.x=i.x,this._passiveTransform.y=i.y,this._dropContainer||this._applyRootElementTransform(i.x,i.y),this}withPreviewContainer(i){return this._previewContainer=i,this}_sortFromLastPointerPosition(){const i=this._lastKnownPointerPosition;i&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(i),i)}_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(i){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:i}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(i),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(i);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:i})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(i){uf(i)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const n=this._rootElement,r=n.parentNode,o=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment(""),s=this._getShadowRoot();r.insertBefore(a,n),this._initialTransform=n.style.transform||"",this._preview=this._createPreviewElement(),gO(n,!1,N1),this._document.body.appendChild(r.replaceChild(o,n)),this._getPreviewInsertionPoint(r,s).appendChild(this._preview),this.started.next({source:this,event:i}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:i}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(i,e){this._parentDragRef&&e.stopPropagation();const n=this.isDragging(),r=uf(e),o=!r&&0!==e.button,a=this._rootElement,s=Zr(e),c=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),l=r?wg(e):yg(e);if(s&&s.draggable&&"mousedown"===e.type&&e.preventDefault(),n||o||c||l)return;if(this._handles.length){const h=a.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=P1(this._boundaryElement));const d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,i,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(i){gO(this._rootElement,!0,N1),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,n=e.getItemIndex(this),r=this._getPointerPositionOnPage(i),o=this._getDragDistance(r),a=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:o,dropPoint:r,event:i}),this.dropped.next({item:this,currentIndex:n,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:a,distance:o,dropPoint:r,event:i}),e.drop(this,n,this._initialIndex,this._initialContainer,a,o,r,i),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:i,y:e},{x:n,y:r}){let o=this._initialContainer._getSiblingContainerFromPosition(this,i,e);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(i,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,i,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(n,r),this._dropContainer._sortItem(this,i,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(i,e):this._applyPreviewTransform(i-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const i=this._previewTemplate,e=this.previewClass,n=i?i.template:null;let r;if(n&&i){const o=i.matchSize?this._initialClientRect:null,a=i.viewContainer.createEmbeddedView(n,i.context);a.detectChanges(),r=SO(a,this._document),this._previewRef=a,i.matchSize?EO(r,o):r.style.transform=g0(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=xO(this._rootElement),EO(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return R1(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},N1),Xd(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 i=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(i.left,i.top);const e=function ste(t){const i=getComputedStyle(t),e=O1(i,"transition-property"),n=e.find(s=>"transform"===s||"all"===s);if(!n)return 0;const r=e.indexOf(n),o=O1(i,"transition-duration"),a=O1(i,"transition-delay");return _O(o[r])+_O(a[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(n=>{const r=a=>{(!a||Zr(a)===this._preview&&"transform"===a.propertyName)&&(this._preview?.removeEventListener("transitionend",r),n(),clearTimeout(o))},o=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const i=this._placeholderTemplate,e=i?i.template:null;let n;return e?(this._placeholderRef=i.viewContainer.createEmbeddedView(e,i.context),this._placeholderRef.detectChanges(),n=SO(this._placeholderRef,this._document)):n=xO(this._rootElement),n.style.pointerEvents="none",n.classList.add("cdk-drag-placeholder"),n}_getPointerPositionInElement(i,e,n){const r=e===this._rootElement?null:e,o=r?r.getBoundingClientRect():i,a=uf(n)?n.targetTouches[0]:n,s=this._getViewportScrollPosition();return{x:o.left-i.left+(a.pageX-o.left-s.left),y:o.top-i.top+(a.pageY-o.top-s.top)}}_getPointerPositionOnPage(i){const e=this._getViewportScrollPosition(),n=uf(i)?i.touches[0]||i.changedTouches[0]||{pageX:0,pageY:0}:i,r=n.pageX-e.left,o=n.pageY-e.top;if(this._ownerSVGElement){const a=this._ownerSVGElement.getScreenCTM();if(a){const s=this._ownerSVGElement.createSVGPoint();return s.x=r,s.y=o,s.matrixTransform(a.inverse())}}return{x:r,y:o}}_getConstrainedPointerPosition(i){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:n,y:r}=this.constrainPosition?this.constrainPosition(i,this,this._initialClientRect,this._pickupPositionInElement):i;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(n=this._pickupPositionOnPage.x),this._boundaryRect){const{x:o,y:a}=this._pickupPositionInElement,s=this._boundaryRect,{width:c,height:l}=this._getPreviewRect(),d=s.top+a,u=s.bottom-(l-a);n=DO(n,s.left+o,s.right-(c-o)),r=DO(r,d,u)}return{x:n,y:r}}_updatePointerDirectionDelta(i){const{x:e,y:n}=i,r=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,a=Math.abs(e-o.x),s=Math.abs(n-o.y);return a>this._config.pointerDirectionChangeThreshold&&(r.x=e>o.x?1:-1,o.x=e),s>this._config.pointerDirectionChangeThreshold&&(r.y=n>o.y?1:-1,o.y=n),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const i=this._handles.length>0||!this.isDragging();i!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=i,Xd(this._rootElement,i))}_removeRootElementListeners(i){i.removeEventListener("mousedown",this._pointerDown,p0),i.removeEventListener("touchstart",this._pointerDown,kO),i.removeEventListener("dragstart",this._nativeDragStart,p0)}_applyRootElementTransform(i,e){const n=g0(i,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=m0(n,this._initialTransform)}_applyPreviewTransform(i,e){const n=this._previewTemplate?.template?void 0:this._initialTransform,r=g0(i,e);this._preview.style.transform=m0(r,n)}_getDragDistance(i){const e=this._pickupPositionOnPage;return e?{x:i.x-e.x,y:i.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:i,y:e}=this._passiveTransform;if(0===i&&0===e||this.isDragging()||!this._boundaryElement)return;const n=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===n.width&&0===n.height)return;const o=r.left-n.left,a=n.right-r.right,s=r.top-n.top,c=n.bottom-r.bottom;r.width>n.width?(o>0&&(i+=o),a>0&&(i-=a)):i=0,r.height>n.height?(s>0&&(e+=s),c>0&&(e-=c)):e=0,(i!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:i})}_getDragStartDelay(i){const e=this.dragStartDelay;return"number"==typeof e?e:uf(i)?e.touch:e?e.mouse:0}_updateOnScroll(i){const e=this._parentPositions.handleScroll(i);if(e){const n=Zr(i);this._boundaryRect&&n!==this._boundaryElement&&n.contains(this._boundaryElement)&&df(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=Cy(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(i,e){const n=this._previewContainer||"global";if("parent"===n)return i;if("global"===n){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return Ki(n)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(i){return this._handles.find(e=>i.target&&(i.target===e||e.contains(i.target)))}}function g0(t,i){return`translate3d(${Math.round(t)}px, ${Math.round(i)}px, 0)`}function DO(t,i,e){return Math.max(i,Math.min(e,t))}function uf(t){return"t"===t.type[0]}function SO(t,i){const e=t.rootNodes;if(1===e.length&&e[0].nodeType===i.ELEMENT_NODE)return e[0];const n=i.createElement("div");return e.forEach(r=>n.appendChild(r)),n}function EO(t,i){t.style.width=`${i.width}px`,t.style.height=`${i.height}px`,t.style.transform=g0(i.left,i.top)}function B1(t,i,e){const n=hf(i,t.length-1),r=hf(e,t.length-1);if(n===r)return;const o=t[n],a=r0)return null;const s="horizontal"===this.orientation,c=o.findIndex(p=>p.drag===i),l=o[a],u=l.clientRect,h=c>a?1:-1,f=this._getItemOffsetPx(o[c].clientRect,u,h),m=this._getSiblingOffsetPx(c,o,h),g=o.slice();return B1(o,c,a),o.forEach((p,_)=>{if(g[_]===p)return;const w=p.drag===i,x=w?f:m,E=w?i.getPlaceholderElement():p.drag.getRootElement();p.offset+=x,s?(E.style.transform=m0(`translate3d(${Math.round(p.offset)}px, 0, 0)`,p.initialTransform),df(p.clientRect,0,x)):(E.style.transform=m0(`translate3d(0, ${Math.round(p.offset)}px, 0)`,p.initialTransform),df(p.clientRect,x,0))}),this._previousSwap.overlaps=L1(u,e,n),this._previousSwap.drag=l.drag,this._previousSwap.delta=s?r.x:r.y,{previousIndex:c,currentIndex:a}}enter(i,e,n,r){const o=null==r||r<0?this._getItemIndexFromPointerPosition(i,e,n):r,a=this._activeDraggables,s=a.indexOf(i),c=i.getPlaceholderElement();let l=a[o];if(l===i&&(l=a[o+1]),!l&&(null==o||-1===o||o-1&&a.splice(s,1),l&&!this._dragDropRegistry.isDragging(l)){const d=l.getRootElement();d.parentElement.insertBefore(c,d),a.splice(o,0,i)}else Ki(this._element).appendChild(c),a.push(i);c.style.transform="",this._cacheItemPositions()}withItems(i){this._activeDraggables=i.slice(),this._cacheItemPositions()}withSortPredicate(i){this._sortPredicate=i}reset(){this._activeDraggables.forEach(i=>{const e=i.getRootElement();if(e){const n=this._itemPositions.find(r=>r.drag===i)?.initialTransform;e.style.transform=n||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(i){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(n=>n.drag===i)}updateOnScroll(i,e){this._itemPositions.forEach(({clientRect:n})=>{df(n,i,e)}),this._itemPositions.forEach(({drag:n})=>{this._dragDropRegistry.isDragging(n)&&n._sortFromLastPointerPosition()})}_cacheItemPositions(){const i="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const n=e.getVisibleElement();return{drag:e,offset:0,initialTransform:n.style.transform||"",clientRect:P1(n)}}).sort((e,n)=>i?e.clientRect.left-n.clientRect.left:e.clientRect.top-n.clientRect.top)}_getItemOffsetPx(i,e,n){const r="horizontal"===this.orientation;let o=r?e.left-i.left:e.top-i.top;return-1===n&&(o+=r?e.width-i.width:e.height-i.height),o}_getSiblingOffsetPx(i,e,n){const r="horizontal"===this.orientation,o=e[i].clientRect,a=e[i+-1*n];let s=o[r?"width":"height"]*n;if(a){const c=r?"left":"top",l=r?"right":"bottom";-1===n?s-=a.clientRect[c]-o[l]:s+=o[c]-a.clientRect[l]}return s}_shouldEnterAsFirstChild(i,e){if(!this._activeDraggables.length)return!1;const n=this._itemPositions,r="horizontal"===this.orientation;if(n[0].drag!==this._activeDraggables[0]){const a=n[n.length-1].clientRect;return r?i>=a.right:e>=a.bottom}{const a=n[0].clientRect;return r?i<=a.left:e<=a.top}}_getItemIndexFromPointerPosition(i,e,n,r){const o="horizontal"===this.orientation,a=this._itemPositions.findIndex(({drag:s,clientRect:c})=>s!==i&&((!r||s!==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)&&n!0,this.sortPredicate=()=>!0,this.beforeStarted=new Ce,this.entered=new Ce,this.exited=new Ce,this.dropped=new Ce,this.sorted=new Ce,this.receivingStarted=new Ce,this.receivingStopped=new Ce,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=yt.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Ce,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function ate(t=0,i=Ih){return t<0&&(t=0),Ig(t,t,i)}(0,nF).pipe(Tt(this._stopScrollTimers)).subscribe(()=>{const a=this._scrollNode,s=this.autoScrollStep;1===this._verticalScrollDirection?a.scrollBy(0,-s):2===this._verticalScrollDirection&&a.scrollBy(0,s),1===this._horizontalScrollDirection?a.scrollBy(-s,0):2===this._horizontalScrollDirection&&a.scrollBy(s,0)})},this.element=Ki(i),this._document=n,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new vO(n),this._sortStrategy=new ute(this.element,e),this._sortStrategy.withSortPredicate((a,s)=>this.sortPredicate(a,s,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(i,e,n,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(i)),this._sortStrategy.enter(i,e,n,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:i,container:this,currentIndex:this.getItemIndex(i)})}exit(i){this._reset(),this.exited.next({item:i,container:this})}drop(i,e,n,r,o,a,s,c={}){this._reset(),this.dropped.next({item:i,currentIndex:e,previousIndex:n,container:this,previousContainer:r,isPointerOverContainer:o,distance:a,dropPoint:s,event:c})}withItems(i){const e=this._draggables;return this._draggables=i,i.forEach(n=>n._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===i.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(i){return this._sortStrategy.direction=i,this}connectedTo(i){return this._siblings=i.slice(),this}withOrientation(i){return this._sortStrategy.orientation=i,this}withScrollableParents(i){const e=Ki(this.element);return this._scrollableElements=-1===i.indexOf(e)?[e,...i]:i.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(i){return this._isDragging?this._sortStrategy.getItemIndex(i):this._draggables.indexOf(i)}isReceiving(){return this._activeSiblings.size>0}_sortItem(i,e,n,r){if(this.sortingDisabled||!this._clientRect||!bO(this._clientRect,.05,e,n))return;const o=this._sortStrategy.sort(i,e,n,r);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:i})}_startScrollingIfNecessary(i,e){if(this.autoScrollDisabled)return;let n,r=0,o=0;if(this._parentPositions.positions.forEach((a,s)=>{s===this._document||!a.clientRect||n||bO(a.clientRect,.05,i,e)&&([r,o]=function fte(t,i,e,n){const r=AO(i,n),o=IO(i,e);let a=0,s=0;if(r){const c=t.scrollTop;1===r?c>0&&(a=1):t.scrollHeight-c>t.clientHeight&&(a=2)}if(o){const c=t.scrollLeft;1===o?c>0&&(s=1):t.scrollWidth-c>t.clientWidth&&(s=2)}return[a,s]}(s,a.clientRect,i,e),(r||o)&&(n=s))}),!r&&!o){const{width:a,height:s}=this._viewportRuler.getViewportSize(),c={width:a,height:s,top:0,right:a,bottom:s,left:0};r=AO(c,e),o=IO(c,i),n=window}n&&(r!==this._verticalScrollDirection||o!==this._horizontalScrollDirection||n!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=n,(r||o)&&n?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const i=Ki(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=i.msScrollSnapType||i.scrollSnapType||"",i.scrollSnapType=i.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const i=Ki(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(i).clientRect}_reset(){this._isDragging=!1;const i=Ki(this.element).style;i.scrollSnapType=i.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(i,e){return null!=this._clientRect&&L1(this._clientRect,i,e)}_getSiblingContainerFromPosition(i,e,n){return this._siblings.find(r=>r._canReceive(i,e,n))}_canReceive(i,e,n){if(!this._clientRect||!L1(this._clientRect,e,n)||!this.enterPredicate(i,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,n);if(!r)return!1;const o=Ki(this.element);return r===o||o.contains(r)}_startReceiving(i,e){const n=this._activeSiblings;!n.has(i)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(n.add(i),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:i,receiver:this,items:e}))}_stopReceiving(i){this._activeSiblings.delete(i),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:i,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(i=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(i);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const i=Cy(Ki(this.element));this._cachedShadowRoot=i||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const i=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,i))}}function AO(t,i){const{top:e,bottom:n,height:r}=t,o=r*MO;return i>=e-o&&i<=e+o?1:i>=n-o&&i<=n+o?2:0}function IO(t,i){const{left:e,right:n,width:r}=t,o=r*MO;return i>=e-o&&i<=e+o?1:i>=n-o&&i<=n+o?2:0}const _0=Go({passive:!1,capture:!0});let mte=(()=>{class t{constructor(e,n){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 Ce,this.pointerUp=new Ce,this.scroll=new Ce,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=n}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,_0)})}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,_0)}startDragging(e,n){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=n.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:_0}),r||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:_0}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((o,a)=>{this._document.addEventListener(a,o.handler,o.options)})})}}stopDragging(e){const n=this._activeDragInstances.indexOf(e);n>-1&&(this._activeDragInstances.splice(n,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const n=[this.scroll];return e&&e!==this._document&&n.push(new ni(r=>this._ngZone.runOutsideAngular(()=>{const a=s=>{this._activeDragInstances.length&&r.next(s)};return e.addEventListener("scroll",a,!0),()=>{e.removeEventListener("scroll",a,!0)}}))),Vi(...n)}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,n)=>{this._document.removeEventListener(n,e.handler,e.options)}),this._globalListeners.clear()}}return t.\u0275fac=function(e){return new(e||t)(G(Ue),G(it))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const pte={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let V1=(()=>{class t{constructor(e,n,r,o){this._document=e,this._ngZone=n,this._viewportRuler=r,this._dragDropRegistry=o}createDrag(e,n=pte){return new dte(e,n,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new hte(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return t.\u0275fac=function(e){return new(e||t)(G(it),G(Ue),G(_a),G(mte))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const H1=new ae("CDK_DRAG_PARENT"),U1=new ae("CdkDropListGroup"),FO=new ae("CDK_DRAG_CONFIG");let _te=0;const RO=new ae("CdkDropList");let z1=(()=>{class t{get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=$e(e)}constructor(e,n,r,o,a,s,c){this.element=e,this._changeDetectorRef=r,this._scrollDispatcher=o,this._dir=a,this._group=s,this._destroyed=new Ce,this.connectedTo=[],this.id="cdk-drop-list-"+_te++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new ke,this.entered=new ke,this.exited=new ke,this.sorted=new ke,this._unsortedItems=new Set,this._dropListRef=n.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),s&&s._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,n)=>e._dragRef.getVisibleElement().compareDocumentPosition(n._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(Vn(this._dir.value),Tt(this._destroyed)).subscribe(n=>e.withDirection(n)),e.beforeStarted.subscribe(()=>{const n=Fh(this.connectedTo).map(r=>"string"==typeof r?t._dropLists.find(a=>a.id===r):r);if(this._group&&this._group._items.forEach(r=>{-1===n.indexOf(r)&&n.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=$e(this.sortingDisabled),e.autoScrollDisabled=$e(this.autoScrollDisabled),e.autoScrollStep=An(this.autoScrollStep,2),e.connectedTo(n.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(n=>{this.entered.emit({container:this,item:n.item.data,currentIndex:n.currentIndex})}),e.exited.subscribe(n=>{this.exited.emit({container:this,item:n.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(n=>{this.sorted.emit({previousIndex:n.previousIndex,currentIndex:n.currentIndex,container:this,item:n.item.data})}),e.dropped.subscribe(n=>{this.dropped.emit({previousIndex:n.previousIndex,currentIndex:n.currentIndex,previousContainer:n.previousContainer.data,container:n.container.data,item:n.item.data,isPointerOverContainer:n.isPointerOverContainer,distance:n.distance,dropPoint:n.dropPoint,event:n.event}),this._changeDetectorRef.markForCheck()}),Vi(e.receivingStarted,e.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck())}_assignDefaults(e){const{lockAxis:n,draggingDisabled:r,sortingDisabled:o,listAutoScrollDisabled:a,listOrientation:s}=e;this.disabled=r??!1,this.sortingDisabled=o??!1,this.autoScrollDisabled=a??!1,this.orientation=s||"vertical",n&&(this.lockAxis=n)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(e=>e._dragRef))}}return t._dropLists=[],t.\u0275fac=function(e){return new(e||t)(b(Ae),b(V1),b(Gt),b(Fd),b(_n,8),b(U1,12),b(FO,8))},t.\u0275dir=Q({type:t,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,n){2&e&&(rt("id",n.id),Xe("cdk-drop-list-disabled",n.disabled)("cdk-drop-list-dragging",n._dropListRef.isDragging())("cdk-drop-list-receiving",n._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],standalone:!0,features:[We([{provide:U1,useValue:void 0},{provide:RO,useExisting:t}])]}),t})();const $1=new ae("CdkDragHandle");let OO=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=$e(e),this._stateChanges.next(this)}constructor(e,n){this.element=e,this._stateChanges=new Ce,this._disabled=!1,this._parentDrag=n}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(H1,12))},t.\u0275dir=Q({type:t,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},standalone:!0,features:[We([{provide:$1,useExisting:t}])]}),t})();const PO=new ae("CdkDragPlaceholder"),LO=new ae("CdkDragPreview");let j1=(()=>{class t{get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=$e(e),this._dragRef.disabled=this._disabled}constructor(e,n,r,o,a,s,c,l,d,u,h){this.element=e,this.dropContainer=n,this._ngZone=o,this._viewContainerRef=a,this._dir=c,this._changeDetectorRef=d,this._selfHandle=u,this._parentDrag=h,this._destroyed=new Ce,this.started=new ke,this.released=new ke,this.ended=new ke,this.entered=new ke,this.exited=new ke,this.dropped=new ke,this.moved=new ni(f=>{const m=this._dragRef.moved.pipe(Ye(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:s&&null!=s.dragStartThreshold?s.dragStartThreshold:5,pointerDirectionChangeThreshold:s&&null!=s.pointerDirectionChangeThreshold?s.pointerDirectionChangeThreshold:5,zIndex:s?.zIndex}),this._dragRef.data=this,t._dragInstances.push(this),s&&this._assignDefaults(s),n&&(this._dragRef._withDropContainer(n._dropListRef),n.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(ui(1),Tt(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(e){const n=e.rootElementSelector,r=e.freeDragPosition;n&&!n.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 n=e;this.rootElementSelector&&(n=void 0!==e.closest?e.closest(this.rootElementSelector):e.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(n||e)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):Ki(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const n=this._dir,r=this.dragStartDelay,o=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,a=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:An(r),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(o).withPreviewTemplate(a).withPreviewContainer(this.previewContainer||"global"),n&&e.withDirection(n.value)}}),e.beforeStarted.pipe(ui(1)).subscribe(()=>{if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let n=this.element.nativeElement.parentElement;for(;n;){if(n.classList.contains("cdk-drag")){e.withParent(t._dragInstances.find(r=>r.element.nativeElement===n)?._dragRef||null);break}n=n.parentElement}})}_handleEvents(e){e.started.subscribe(n=>{this.started.emit({source:this,event:n.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(n=>{this.released.emit({source:this,event:n.event})}),e.ended.subscribe(n=>{this.ended.emit({source:this,distance:n.distance,dropPoint:n.dropPoint,event:n.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(n=>{this.entered.emit({container:n.container.data,item:this,currentIndex:n.currentIndex})}),e.exited.subscribe(n=>{this.exited.emit({container:n.container.data,item:this})}),e.dropped.subscribe(n=>{this.dropped.emit({previousIndex:n.previousIndex,currentIndex:n.currentIndex,previousContainer:n.previousContainer.data,container:n.container.data,isPointerOverContainer:n.isPointerOverContainer,item:this,distance:n.distance,dropPoint:n.dropPoint,event:n.event})})}_assignDefaults(e){const{lockAxis:n,dragStartDelay:r,constrainPosition:o,previewClass:a,boundaryElement:s,draggingDisabled:c,rootElementSelector:l,previewContainer:d}=e;this.disabled=c??!1,this.dragStartDelay=r||0,n&&(this.lockAxis=n),o&&(this.constrainPosition=o),a&&(this.previewClass=a),s&&(this.boundaryElement=s),l&&(this.rootElementSelector=l),d&&(this.previewContainer=d)}_setupHandlesListener(){this._handles.changes.pipe(Vn(this._handles),zi(e=>{const n=e.filter(r=>r._parentDrag===this).map(r=>r.element);this._selfHandle&&this.rootElementSelector&&n.push(this.element),this._dragRef.withHandles(n)}),fn(e=>Vi(...e.map(n=>n._stateChanges.pipe(Vn(n))))),Tt(this._destroyed)).subscribe(e=>{const n=this._dragRef,r=e.element.nativeElement;e.disabled?n.disableHandle(r):n.enableHandle(r)})}}return t._dragInstances=[],t.\u0275fac=function(e){return new(e||t)(b(Ae),b(RO,12),b(it),b(Ue),b(Fi),b(FO,8),b(_n,8),b(V1),b(Gt),b($1,10),b(H1,12))},t.\u0275dir=Q({type:t,selectors:[["","cdkDrag",""]],contentQueries:function(e,n,r){if(1&e&&(Bt(r,LO,5),Bt(r,PO,5),Bt(r,$1,5)),2&e){let o;xe(o=ye())&&(n._previewTemplate=o.first),xe(o=ye())&&(n._placeholderTemplate=o.first),xe(o=ye())&&(n._handles=o)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,n){2&e&&Xe("cdk-drag-disabled",n.disabled)("cdk-drag-dragging",n._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],standalone:!0,features:[We([{provide:H1,useExisting:t}]),Ei]}),t})(),yte=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[V1],imports:[Vc]}),t})();function wte(t,i){}class b0{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 NO=(()=>{class t extends Tg{constructor(e,n,r,o,a,s,c,l){super(),this._elementRef=e,this._focusTrapFactory=n,this._config=o,this._interactivityChecker=a,this._ngZone=s,this._overlayRef=c,this._focusMonitor=l,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=d=>{this._portalOutlet.hasAttached();const u=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),u},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=r}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const n=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),n}attachTemplatePortal(e){this._portalOutlet.hasAttached();const n=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),n}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,n){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(n)}_focusByCssSelector(e,n){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,n)}_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(n=>{n||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 n=null;if("string"==typeof e?n=this._document.querySelector(e):"boolean"==typeof e?n=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(n=e),this._config.restoreFocus&&n&&"function"==typeof n.focus){const r=fg(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(n,this._closeInteractionType),this._closeInteractionType=null):n.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,n=fg();return e===n||e.contains(n)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=fg())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Oy),b(it,8),b(b0),b(xg),b(Ue),b(Bh),b(vo))},t.\u0275cmp=je({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(e,n){if(1&e&&st(os,7),2&e){let r;xe(r=ye())&&(n._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,n){2&e&&rt("id",n._config.id||null)("role",n._config.role)("aria-modal",n._config.ariaModal)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledBy)("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null)},features:[pe],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,n){1&e&&H(0,wte,0,0,"ng-template",0)},dependencies:[os],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),t})();class W1{constructor(i,e){this.overlayRef=i,this.config=e,this.closed=new Ce,this.disableClose=e.disableClose,this.backdropClick=i.backdropClick(),this.keydownEvents=i.keydownEvents(),this.outsidePointerEvents=i.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(n=>{27===n.keyCode&&!this.disableClose&&!wr(n)&&(n.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=i.detachments().subscribe(()=>{!1!==e.closeOnOverlayDetachments&&this.close()})}close(i,e){if(this.containerInstance){const n=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),n.next(i),n.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(i="",e=""){return this.overlayRef.updateSize({width:i,height:e}),this}addPanelClass(i){return this.overlayRef.addPanelClass(i),this}removePanelClass(i){return this.overlayRef.removePanelClass(i),this}}const BO=new ae("DialogScrollStrategy"),Cte=new ae("DialogData"),kte=new ae("DefaultDialogConfig"),Ste={provide:BO,deps:[rr],useFactory:function Dte(t){return()=>t.scrollStrategies.block()}};let Ete=0,VO=(()=>{class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(e,n,r,o,a,s){this._overlay=e,this._injector=n,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Ce,this._afterOpenedAtThisLevel=new Ce,this._ariaHiddenElements=new Map,this.afterAllClosed=fd(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Vn(void 0))),this._scrollStrategy=s}open(e,n){(n={...this._defaultOptions||new b0,...n}).id=n.id||"cdk-dialog-"+Ete++,n.id&&this.getDialogById(n.id);const o=this._getOverlayConfig(n),a=this._overlay.create(o),s=new W1(a,n),c=this._attachContainer(a,s,n);return s.containerInstance=c,this._attachDialogContent(e,s,c,n),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){G1(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){G1(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),G1(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const n=new Rd({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&&(n.backdropClass=e.backdropClass),n}_attachContainer(e,n,r){const o=r.injector||r.viewContainerRef?.injector,a=[{provide:b0,useValue:r},{provide:W1,useValue:n},{provide:Bh,useValue:e}];let s;r.container?"function"==typeof r.container?s=r.container:(s=r.container.type,a.push(...r.container.providers(r))):s=NO;const c=new Id(s,r.viewContainerRef,en.create({parent:o||this._injector,providers:a}),r.componentFactoryResolver);return e.attach(c).instance}_attachDialogContent(e,n,r,o){if(e instanceof _i){const a=this._createInjector(o,n,r,void 0);let s={$implicit:o.data,dialogRef:n};o.templateContext&&(s={...s,..."function"==typeof o.templateContext?o.templateContext():o.templateContext}),r.attachTemplatePortal(new rs(e,null,s,a))}else{const a=this._createInjector(o,n,r,this._injector),s=r.attachComponentPortal(new Id(e,o.viewContainerRef,a,o.componentFactoryResolver));n.componentInstance=s.instance}}_createInjector(e,n,r,o){const a=e.injector||e.viewContainerRef?.injector,s=[{provide:Cte,useValue:e.data},{provide:W1,useValue:n}];return e.providers&&("function"==typeof e.providers?s.push(...e.providers(n,e,r)):s.push(...e.providers)),e.direction&&(!a||!a.get(_n,null,{optional:!0}))&&s.push({provide:_n,useValue:{value:e.direction,change:ze()}}),en.create({parent:a||o,providers:s})}_removeOpenDialog(e,n){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,a)=>{o?a.setAttribute("aria-hidden",o):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),n&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const n=e.parentElement.children;for(let r=n.length-1;r>-1;r--){const o=n[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}}return t.\u0275fac=function(e){return new(e||t)(G(rr),G(en),G(kte,8),G(t,12),G(Fg),G(BO))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();function G1(t,i){let e=t.length;for(;e--;)i(t[e])}let Tte=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[VO,Ste],imports:[Uc,Bc,Ny,Bc]}),t})();function Mte(t,i){}class v0{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 q1="mdc-dialog--open",HO="mdc-dialog--opening",UO="mdc-dialog--closing";let Fte=(()=>{class t extends NO{constructor(e,n,r,o,a,s,c,l){super(e,n,r,o,a,s,c,l),this._animationStateChanged=new ke}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Oy),b(it,8),b(v0),b(xg),b(Ue),b(Bh),b(vo))},t.\u0275cmp=je({type:t,selectors:[["ng-component"]],features:[pe],decls:0,vars:0,template:function(e,n){},encapsulation:2}),t})();const zO="--mat-dialog-transition-duration";function $O(t){return null==t?null:"number"==typeof t?t:t.endsWith("ms")?An(t.substring(0,t.length-2)):t.endsWith("s")?1e3*An(t.substring(0,t.length-1)):"0"===t?0:null}let Rte=(()=>{class t extends Fte{constructor(e,n,r,o,a,s,c,l,d){super(e,n,r,o,a,s,c,d),this._animationMode=l,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._openAnimationDuration=this._animationsEnabled?$O(this._config.enterAnimationDuration)??150:0,this._closeAnimationDuration=this._animationsEnabled?$O(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._openAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._closeAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._openAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(zO,`${this._openAnimationDuration}ms`),this._hostElement.classList.add(HO),this._hostElement.classList.add(q1),this._waitForAnimationToComplete(this._openAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(q1),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._closeAnimationDuration}),this._hostElement.classList.remove(q1),this._animationsEnabled?(this._hostElement.style.setProperty(zO,`${this._openAnimationDuration}ms`),this._hostElement.classList.add(UO),this._waitForAnimationToComplete(this._closeAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(HO),this._hostElement.classList.remove(UO)}_waitForAnimationToComplete(e,n){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(n,e)}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Oy),b(it,8),b(v0),b(xg),b(Ue),b(Bh),b(Ri,8),b(vo))},t.\u0275cmp=je({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(e,n){2&e&&(ua("id",n._config.id),rt("aria-modal",n._config.ariaModal)("role",n._config.role)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledBy)("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null),Xe("_mat-animation-noopable",!n._animationsEnabled))},features:[pe],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(e,n){1&e&&(v(0,"div",0)(1,"div",1),H(2,Mte,0,0,"ng-template",2),y()())},dependencies:[os],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}.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__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{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, var(--mdc-shape-medium, 4px))}.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__title,.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__actions,.mat-mdc-dialog-container.mdc-dialog--scrollable.mdc-dialog-scroll-divider-footer .mdc-dialog__actions{border-color:var(--mdc-dialog-with-divider-divider-color, black)}.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__title{border-bottom-color:var(--mdc-dialog-with-divider-divider-color, black)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, "Arial");line-height:var(--mdc-dialog-subhead-line-height, 14px);font-size:var(--mdc-dialog-subhead-size, 14px);font-weight:var(--mdc-dialog-subhead-weight, 500);letter-spacing:var(--mdc-dialog-subhead-tracking, 1px)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, black)}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, "Arial");line-height:var(--mdc-dialog-supporting-text-line-height, 14px);font-size:var(--mdc-dialog-supporting-text-size, 14px);font-weight:var(--mdc-dialog-supporting-text-weight, 500);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 1px)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, black)}.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}),t})();class Qc{constructor(i,e,n){this._ref=i,this._containerInstance=n,this._afterOpened=new Ce,this._beforeClosed=new Ce,this._state=0,this.disableClose=e.disableClose,this.id=i.id,n._animationStateChanged.pipe(hi(r=>"opened"===r.state),ui(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(hi(r=>"closed"===r.state),ui(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),i.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Vi(this.backdropClick(),this.keydownEvents().pipe(hi(r=>27===r.keyCode&&!this.disableClose&&!wr(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),jO(this,"keydown"===r.type?"keyboard":"mouse"))})}close(i){this._result=i,this._containerInstance._animationStateChanged.pipe(hi(e=>"closing"===e.state),ui(1)).subscribe(e=>{this._beforeClosed.next(i),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(i){let e=this._ref.config.positionStrategy;return i&&(i.left||i.right)?i.left?e.left(i.left):e.right(i.right):e.centerHorizontally(),i&&(i.top||i.bottom)?i.top?e.top(i.top):e.bottom(i.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(i="",e=""){return this._ref.updateSize(i,e),this}addPanelClass(i){return this._ref.addPanelClass(i),this}removePanelClass(i){return this._ref.removePanelClass(i),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function jO(t,i,e){return t._closeInteractionType=i,t.close(e)}const X1=new ae("MatMdcDialogData"),Ote=new ae("mat-mdc-dialog-default-options"),WO=new ae("mat-mdc-dialog-scroll-strategy"),Lte={provide:WO,deps:[rr],useFactory:function Pte(t){return()=>t.scrollStrategies.block()}};let Nte=0,Bte=(()=>{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,n,r,o,a,s,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 Ce,this._afterOpenedAtThisLevel=new Ce,this._idPrefix="mat-dialog-",this.dialogConfigClass=v0,this.afterAllClosed=fd(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Vn(void 0))),this._scrollStrategy=s,this._dialog=n.get(VO)}open(e,n){let r;(n={...this._defaultOptions||new v0,...n}).id=n.id||`${this._idPrefix}${Nte++}`,n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();const o=this._dialog.open(e,{...n,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:n},{provide:b0,useValue:n}]},templateContext:()=>({dialogRef:r}),providers:(a,s,c)=>(r=new this._dialogRefConstructor(a,n,c),r.updatePosition(n?.position),[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:r}])});return r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const a=this.openDialogs.indexOf(r);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let n=e.length;for(;n--;)e[n].close()}}return t.\u0275fac=function(e){aa()},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})(),Qd=(()=>{class t extends Bte{constructor(e,n,r,o,a,s,c,l){super(e,n,o,s,c,a,Qc,Rte,X1,l),this._idPrefix="mat-mdc-dialog-"}}return t.\u0275fac=function(e){return new(e||t)(G(rr),G(en),G(eh,8),G(Ote,8),G(WO),G(t,12),G(Fg),G(Ri,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})(),Vte=0,x0=(()=>{class t{constructor(e,n,r){this.dialogRef=e,this._elementRef=n,this._dialog=r,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=GO(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){const n=e._matDialogClose||e._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(e){jO(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}return t.\u0275fac=function(e){return new(e||t)(b(Qc,8),b(Ae),b(Qd))},t.\u0275dir=Q({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,n){1&e&&X("click",function(o){return n._onButtonClick(o)}),2&e&&rt("aria-label",n.ariaLabel||null)("type",n.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Ei]}),t})(),Hte=(()=>{class t{constructor(e,n,r){this._dialogRef=e,this._elementRef=n,this._dialog=r,this.id="mat-mdc-dialog-title-"+Vte++}ngOnInit(){this._dialogRef||(this._dialogRef=GO(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(b(Qc,8),b(Ae),b(Qd))},t.\u0275dir=Q({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(e,n){2&e&&ua("id",n.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),Q1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"]}),t})(),Y1=(()=>{class t{constructor(){this.align="start"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:4,hostBindings:function(e,n){2&e&&Xe("mat-mdc-dialog-actions-align-center","center"===n.align)("mat-mdc-dialog-actions-align-end","end"===n.align)},inputs:{align:"align"}}),t})();function GO(t,i){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?i.find(n=>n.id===e.id):null}let Ute=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[Qd,Lte],imports:[Tte,Uc,Bc,xt,xt]}),t})(),zte=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.localEcl="",this.localEcl=n.ecl}onNoClick(){this.dialogRef.close()}eclChanged(e){this.data.ecl=e?.detail[0]}}return t.\u0275fac=function(e){return new(e||t)(b(Qc),b(X1))},t.\u0275cmp=je({type:t,selectors:[["app-ecl-builder-dialog"]],decls:7,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"full-height"],["apiurl","https://dev-is-browser.ihtsdotools.org/snowstorm/snomed-ct","branch","MAIN/2023-01-31","v-on:eclOutput","eclChange",3,"eclstring","eclOutput"],["mat-dialog-actions","",1,"actions"],["mat-flat-button","","color","accent","cdkFocusInitial","",3,"mat-dialog-close"]],template:function(e,n){1&e&&(v(0,"h1",0),M(1,"ECL Builder"),y(),v(2,"div",1)(3,"snomed-ecl-builder",2),X("eclOutput",function(o){return n.eclChanged(o)}),y()(),v(4,"div",3)(5,"button",4),M(6,"Ok"),y()()),2&e&&(k(3),$u("eclstring",n.localEcl),k(2),A("mat-dialog-close",n.data))},dependencies:[yo,x0,Hte,Q1,Y1],styles:[".full-height[_ngcontent-%COMP%]{height:78%}.actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"]}),t})();const XO=new ae("CdkAccordion");let $te=0,jte=(()=>{class t{get expanded(){return this._expanded}set expanded(e){e=$e(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=$e(e)}constructor(e,n,r){this.accordion=e,this._changeDetectorRef=n,this._expansionDispatcher=r,this._openCloseAllSubscription=yt.EMPTY,this.closed=new ke,this.opened=new ke,this.destroyed=new ke,this.expandedChange=new ke,this.id="cdk-accordion-child-"+$te++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((o,a)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===a&&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)})}}return t.\u0275fac=function(e){return new(e||t)(b(XO,12),b(Gt),b(my))},t.\u0275dir=Q({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[We([{provide:XO,useValue:void 0}])]}),t})(),Wte=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({}),t})();const Gte=["body"];function qte(t,i){}const Xte=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Qte=["mat-expansion-panel-header","*","mat-action-row"];function Yte(t,i){1&t&&Ee(0,"span",2),2&t&&A("@indicatorRotate",q()._getExpandedState())}const Kte=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Zte=["mat-panel-title","mat-panel-description","*"],QO=new ae("MAT_ACCORDION"),YO="225ms cubic-bezier(0.4,0.0,0.2,1)",KO={indicatorRotate:bn("indicatorRotate",[ii("collapsed, void",nt({transform:"rotate(0deg)"})),ii("expanded",nt({transform:"rotate(180deg)"})),ai("expanded <=> collapsed, void => collapsed",fi(YO))]),bodyExpansion:bn("bodyExpansion",[ii("collapsed, void",nt({height:"0px",visibility:"hidden"})),ii("expanded",nt({height:"*",visibility:"visible"})),ai("expanded <=> collapsed, void => collapsed",fi(YO))])},ZO=new ae("MAT_EXPANSION_PANEL");let Jte=(()=>{class t{constructor(e,n){this._template=e,this._expansionPanel=n}}return t.\u0275fac=function(e){return new(e||t)(b(_i),b(ZO,8))},t.\u0275dir=Q({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),eie=0;const JO=new ae("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let eP=(()=>{class t extends jte{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=$e(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}constructor(e,n,r,o,a,s,c){super(e,n,r),this._viewContainerRef=o,this._animationMode=s,this._hideToggle=!1,this.afterExpand=new ke,this.afterCollapse=new ke,this._inputChanges=new Ce,this._headerId="mat-expansion-panel-header-"+eie++,this._bodyAnimationDone=new Ce,this.accordion=e,this._document=a,this._bodyAnimationDone.pipe(Nc((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(Vn(null),hi(()=>this.expanded&&!this._portal),ui(1)).subscribe(()=>{this._portal=new rs(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,n=this._body.nativeElement;return e===n||n.contains(e)}return!1}}return t.\u0275fac=function(e){return new(e||t)(b(QO,12),b(Gt),b(my),b(Fi),b(it),b(Ri,8),b(JO,8))},t.\u0275cmp=je({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(e,n,r){if(1&e&&Bt(r,Jte,5),2&e){let o;xe(o=ye())&&(n._lazyContent=o.first)}},viewQuery:function(e,n){if(1&e&&st(Gte,5),2&e){let r;xe(r=ye())&&(n._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,n){2&e&&Xe("mat-expanded",n.expanded)("_mat-animation-noopable","NoopAnimations"===n._animationMode)("mat-expansion-panel-spacing",n._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[We([{provide:QO,useValue:void 0},{provide:ZO,useExisting:t}]),pe,Ei],ngContentSelectors:Qte,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,n){1&e&&(vi(Xte),Je(0),v(1,"div",0,1),X("@bodyExpansion.done",function(o){return n._bodyAnimationDone.next(o)}),v(3,"div",2),Je(4,1),H(5,qte,0,0,"ng-template",3),y(),Je(6,2),y()),2&e&&(k(1),A("@bodyExpansion",n._getExpandedState())("id",n.id),rt("aria-labelledby",n._headerId),k(4),A("cdkPortalOutlet",n._portal))},dependencies:[os],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;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}.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:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.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}.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}.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:[KO.bodyExpansion]},changeDetection:0}),t})();class tie{}const iie=Oh(tie);let nie=(()=>{class t extends iie{constructor(e,n,r,o,a,s,c){super(),this.panel=e,this._element=n,this._focusMonitor=r,this._changeDetectorRef=o,this._animationMode=s,this._parentChangeSubscription=yt.EMPTY;const l=e.accordion?e.accordion._stateChanges.pipe(hi(d=>!(!d.hideToggle&&!d.togglePosition))):zr;this.tabIndex=parseInt(c||"")||0,this._parentChangeSubscription=Vi(e.opened,e.closed,l,e._inputChanges.pipe(hi(d=>!!(d.hideToggle||d.disabled||d.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(hi(()=>e._containsFocus())).subscribe(()=>r.focusVia(n,"program")),a&&(this.expandedHeight=a.expandedHeight,this.collapsedHeight=a.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:wr(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,n){e?this._focusMonitor.focusVia(this._element,e,n):this._element.nativeElement.focus(n)}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)}}return t.\u0275fac=function(e){return new(e||t)(b(eP,1),b(Ae),b(vo),b(Gt),b(JO,8),b(Ri,8),uo("tabindex"))},t.\u0275cmp=je({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,n){1&e&&X("click",function(){return n._toggle()})("keydown",function(o){return n._keydown(o)}),2&e&&(rt("id",n.panel._headerId)("tabindex",n.tabIndex)("aria-controls",n._getPanelId())("aria-expanded",n._isExpanded())("aria-disabled",n.panel.disabled),ir("height",n._getHeaderHeight()),Xe("mat-expanded",n._isExpanded())("mat-expansion-toggle-indicator-after","after"===n._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===n._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===n._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[pe],ngContentSelectors:Zte,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,n){1&e&&(vi(Kte),v(0,"span",0),Je(1),Je(2,1),Je(3,2),y(),H(4,Yte,1,1,"span",1)),2&e&&(Xe("mat-content-hide-toggle",!n._showToggle()),k(4),A("ngIf",n._showToggle()))},dependencies:[hn],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)}.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:not([aria-disabled=true]){cursor:pointer}.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,.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-description{flex-grow:2}.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}.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:[KO.indicatorRotate]},changeDetection:0}),t})(),rie=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t})(),oie=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),aie=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[nr,xt,Wte,Bc]}),t})();function sie(t,i){if(1&t){const e=ot();v(0,"mat-option",2),X("click",function(){return Oe(e),Pe(q().optionClicked())}),M(1),y()}if(2&t){const e=i.$implicit;A("value",e),k(1),It(" ",e.display," ")}}let cie=(()=>{class t{constructor(e){this.terminologyService=e,this.selectionChange=new ke}ngOnInit(){this.terminologyService.expandValueSet(this.binding.ecl,"").subscribe(e=>this.options=e.expansion.contains)}optionClicked(){this.selectionChange.emit(this.selectedOptions)}}return t.\u0275fac=function(e){return new(e||t)(b(wo))},t.\u0275cmp=je({type:t,selectors:[["app-dropdown-binding"]],inputs:{binding:"binding"},outputs:{selectionChange:"selectionChange"},decls:7,vars:5,consts:[[3,"multiple","ngModel","ngModelChange"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"]],template:function(e,n){1&e&&(v(0,"mat-form-field")(1,"mat-label"),M(2),y(),v(3,"mat-select",0),X("ngModelChange",function(o){return n.selectedOptions=o}),H(4,sie,2,2,"mat-option",1),y(),v(5,"mat-hint"),M(6),y()()),2&e&&(k(2),tt(n.binding.title),k(1),A("multiple","Select (Multiple)"==n.binding.type)("ngModel",n.selectedOptions),k(1),A("ngForOf",n.options),k(2),tt(n.binding.note))},dependencies:[go,Ws,wa,rf,Hs,ya,cf,cs],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}"]}),t})();const lie=["input"],die=["*"];let tP=0;class iP{constructor(i,e){this.source=i,this.value=e}}const uie={provide:Xn,useExisting:Xt(()=>K1),multi:!0},nP=new ae("MatRadioGroup"),hie=new ae("mat-radio-default-options",{providedIn:"root",factory:function fie(){return{color:"accent"}}});let mie=(()=>{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(e),this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=$e(e),this._markRadiosForCheck()}constructor(e){this._changeDetector=e,this._value=null,this._name="mat-radio-group-"+tP++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new ke}ngAfterContentInit(){this._isInitialized=!0}_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(n=>{n.checked=this.value===n.value,n.checked&&(this._selected=n)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new iP(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()}}return t.\u0275fac=function(e){return new(e||t)(b(Gt))},t.\u0275dir=Q({type:t,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),t})();class pie{constructor(i){this._elementRef=i}}const gie=Bs(Oh(pie));let _ie=(()=>{class t extends gie{get checked(){return this._checked}set checked(e){const n=$e(e);this._checked!==n&&(this._checked=n,n&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!n&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),n&&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(e))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=$e(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,n,r,o,a,s,c,l){super(n),this._changeDetector=r,this._focusMonitor=o,this._radioDispatcher=a,this._providerOverride=c,this._uniqueId="mat-radio-"+ ++tP,this.id=this._uniqueId,this.change=new ke,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._noopAnimations="NoopAnimations"===s,l&&(this.tabIndex=An(l,0))}focus(e,n){n?this._focusMonitor.focusVia(this._inputElement,n,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,n)=>{e!==this.id&&n===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 iP(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(e){e.stopPropagation()}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){const n=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),n&&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 n;if(n=e&&e.selected&&!this.disabled?e.selected===this?this.tabIndex:-1:this.tabIndex,n!==this._previousTabIndex){const r=this._inputElement?.nativeElement;r&&(r.setAttribute("tabindex",n+""),this._previousTabIndex=n)}}}return t.\u0275fac=function(e){aa()},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&st(lie,5),2&e){let r;xe(r=ye())&&(n._inputElement=r.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[pe]}),t})(),K1=(()=>{class t extends mie{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["mat-radio-group"]],contentQueries:function(e,n,r){if(1&e&&Bt(r,Z1,5),2&e){let o;xe(o=ye())&&(n._radios=o)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],exportAs:["matRadioGroup"],features:[We([uie,{provide:nP,useExisting:t}]),pe]}),t})(),Z1=(()=>{class t extends _ie{constructor(e,n,r,o,a,s,c,l){super(e,n,r,o,a,s,c,l)}}return t.\u0275fac=function(e){return new(e||t)(b(nP,8),b(Ae),b(Gt),b(vo),b(my),b(Ri,8),b(hie,8),uo("tabindex"))},t.\u0275cmp=je({type:t,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function(e,n){1&e&&X("focus",function(){return n._inputElement.nativeElement.focus()}),2&e&&(rt("id",n.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),Xe("mat-primary","primary"===n.color)("mat-accent","accent"===n.color)("mat-warn","warn"===n.color)("mat-mdc-radio-checked",n.checked)("_mat-animation-noopable",n._noopAnimations))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[pe],ngContentSelectors:die,decls:13,vars:17,consts:[[1,"mdc-form-field"],["formField",""],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"id","checked","disabled","required","change"],["input",""],[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"],[3,"for"]],template:function(e,n){if(1&e&&(vi(),v(0,"div",0,1)(2,"div",2)(3,"div",3),X("click",function(o){return n._onTouchTargetClick(o)}),y(),v(4,"input",4,5),X("change",function(o){return n._onInputInteraction(o)}),y(),v(6,"div",6),Ee(7,"div",7)(8,"div",8),y(),v(9,"div",9),Ee(10,"div",10),y()(),v(11,"label",11),Je(12),y()()),2&e){const r=Nt(1);Xe("mdc-form-field--align-end","before"==n.labelPosition),k(2),Xe("mdc-radio--disabled",n.disabled),k(2),A("id",n.inputId)("checked",n.checked)("disabled",n.disabled)("required",n.required),rt("name",n.name)("value",n.value)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledby)("aria-describedby",n.ariaDescribedby),k(5),A("matRippleTrigger",r)("matRippleDisabled",n._isRippleDisabled())("matRippleCentered",!0),k(2),A("for",n.inputId)}},dependencies:[xo],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{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{padding:calc((var(--mdc-radio-state-layer-size, 40px) - 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, #000)}.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, #000)}.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, 0.38)}.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, 0.38)}.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, #000)}.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, 0.38)}.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, #6200ee)}.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, #6200ee)}.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, #6200ee)}.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, #6200ee)}.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, #6200ee)}.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, #6200ee)}.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, #6200ee)}.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, #6200ee)}.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, #000)}.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, #000)}.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, #000)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{top:calc(-1 * (var(--mdc-radio-state-layer-size, 40px) - 20px) / 2);left:calc(-1 * (var(--mdc-radio-state-layer-size, 40px) - 20px) / 2);width:var(--mdc-radio-state-layer-size, 40px);height:var(--mdc-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control{top:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);right:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);left:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);width:var(--mdc-radio-state-layer-size, 40px);height:var(--mdc-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{background-color:var(--mat-mdc-radio-ripple-color, transparent)}.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-mdc-radio-checked-ripple-color, transparent)}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element{background-color:var(--mat-mdc-radio-checked-ripple-color, transparent)}.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}),t})(),bie=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt,nr,Vs,xt]}),t})();function vie(t,i){if(1&t){const e=ot();v(0,"mat-radio-button",3),X("click",function(){const o=Oe(e).$implicit;return Pe(q().optionSelected(o))}),M(1),y()}if(2&t){const e=i.$implicit;A("value",e.code),k(1),It(" ",e.display," ")}}let xie=(()=>{class t{constructor(e){this.terminologyService=e,this.selectionChange=new ke}ngOnInit(){this.terminologyService.expandValueSet(this.binding.ecl,"").subscribe(e=>this.options=e.expansion.contains)}optionSelected(e){this.selectionChange.emit(e)}}return t.\u0275fac=function(e){return new(e||t)(b(wo))},t.\u0275cmp=je({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,"value","click"]],template:function(e,n){1&e&&(v(0,"div"),M(1),y(),v(2,"mat-radio-group",0),H(3,vie,2,2,"mat-radio-button",1),y(),v(4,"div",2),M(5),y()),2&e&&(k(1),tt(n.binding.title),k(2),A("ngForOf",n.options),k(2),tt(n.binding.note))},dependencies:[go,K1,Z1],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}"]}),t})(),yie=(()=>{class t{constructor(e){this.terminologyService=e,this.textChange=new ke,this.text=""}ngOnInit(){}onTextChange(e){this.text=e,this.textChange.emit(e)}}return t.\u0275fac=function(e){return new(e||t)(b(wo))},t.\u0275cmp=je({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,"ngModel","ngModelChange"]],template:function(e,n){1&e&&(v(0,"mat-form-field",0)(1,"mat-label"),M(2),y(),v(3,"textarea",1),X("ngModelChange",function(o){return n.text=o})("ngModelChange",function(o){return n.onTextChange(o)}),y(),v(4,"mat-hint"),M(5),y()()),2&e&&(k(2),tt(n.binding.title),k(1),A("ngModel",n.text),k(2),tt(n.binding.note))},dependencies:[Ws,wa,rf,af,Us,ya,cs],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}"]}),t})();const wie=["input"],Cie=["label"],kie=["*"],Die=new ae("mat-checkbox-default-options",{providedIn:"root",factory:rP});function rP(){return{color:"accent",clickAction:"check-indeterminate"}}const Sie={provide:Xn,useExisting:Xt(()=>aP),multi:!0};class Eie{}let Tie=0;const oP=rP(),Mie=Oh(Ns(Bs(ts(class{constructor(t){this._elementRef=t}}))));let Aie=(()=>{class t extends Mie{get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=$e(e)}constructor(e,n,r,o,a,s,c){super(n),this._changeDetectorRef=r,this._ngZone=o,this._animationMode=s,this._options=c,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new ke,this.indeterminateChange=new ke,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||oP,this.color=this.defaultColor=this._options.color||oP.color,this.tabIndex=parseInt(a)||0,this.id=this._uniqueId=`${e}${++Tie}`}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const n=$e(e);n!=this.checked&&(this._checked=n,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const n=$e(e);n!==this.disabled&&(this._disabled=n,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const n=e!=this._indeterminate;this._indeterminate=$e(e),n&&(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 n=this._currentCheckState,r=this._getAnimationTargetElement();if(n!==e&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(n,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,n){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===n)return this._animationClasses.uncheckedToChecked;if(3==n)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===n?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===n?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===n?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const n=this._inputElement;n&&(n.nativeElement.indeterminate=e)}}return t.\u0275fac=function(e){aa()},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&(st(wie,5),st(Cie,5),st(xo,5)),2&e){let r;xe(r=ye())&&(n._inputElement=r.first),xe(r=ye())&&(n._labelElement=r.first),xe(r=ye())&&(n.ripple=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["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:[pe]}),t})(),aP=(()=>{class t extends Aie{constructor(e,n,r,o,a,s){super("mat-mdc-checkbox-",e,n,r,o,a,s),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 n=new Eie;return n.source=this,n.checked=e,n}_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()}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Gt),b(Ue),uo("tabindex"),b(Ri,8),b(Die,8))},t.\u0275cmp=je({type:t,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-mdc-checkbox"],hostVars:12,hostBindings:function(e,n){2&e&&(ua("id",n.id),rt("tabindex",null)("aria-label",null)("aria-labelledby",null),Xe("_mat-animation-noopable","NoopAnimations"===n._animationMode)("mdc-checkbox--disabled",n.disabled)("mat-mdc-checkbox-disabled",n.disabled)("mat-mdc-checkbox-checked",n.checked))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[We([Sie]),pe],ngContentSelectors:kie,decls:15,vars:19,consts:[[1,"mdc-form-field",3,"click"],[1,"mdc-checkbox"],["checkbox",""],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","indeterminate","disabled","id","required","tabIndex","blur","click","change"],["input",""],[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"],[3,"for"],["label",""]],template:function(e,n){if(1&e&&(vi(),v(0,"div",0),X("click",function(o){return n._preventBubblingFromLabel(o)}),v(1,"div",1,2)(3,"div",3),X("click",function(){return n._onTouchTargetClick()}),y(),v(4,"input",4,5),X("blur",function(){return n._onBlur()})("click",function(){return n._onInputClick()})("change",function(o){return n._onInteractionEvent(o)}),y(),Ee(6,"div",6),v(7,"div",7),za(),v(8,"svg",8),Ee(9,"path",9),y(),Rl(),Ee(10,"div",10),y(),Ee(11,"div",11),y(),v(12,"label",12,13),Je(14),y()()),2&e){const r=Nt(2);Xe("mdc-form-field--align-end","before"==n.labelPosition),k(4),Xe("mdc-checkbox--selected",n.checked),A("checked",n.checked)("indeterminate",n.indeterminate)("disabled",n.disabled)("id",n.inputId)("required",n.required)("tabIndex",n.tabIndex),rt("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby)("aria-describedby",n.ariaDescribedby)("name",n.name)("value",n.value),k(7),A("matRippleTrigger",r)("matRippleDisabled",n.disableRipple||n.disabled)("matRippleCentered",!0),k(1),A("for",n.inputId)}},dependencies:[xo],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, 48px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);width:var(--mdc-checkbox-state-layer-size, 48px);height:var(--mdc-checkbox-state-layer-size, 48px)}.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}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mat-mdc-checkbox .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, rgba(0, 0, 0, 0.38));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .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, rgba(0, 0, 0, 0.38))}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-checkbox .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, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .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, var(--mdc-theme-secondary, #018786));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .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, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .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, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .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-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .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-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px)}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:not([disabled])~.mdc-checkbox__ripple{opacity:.04;transform:scale(1);transition:opacity 80ms 0 cubic-bezier(0, 0, 0.2, 1),transform 80ms 0 cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:not([disabled]):focus~.mdc-checkbox__ripple{opacity:.16}.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}.mat-mdc-checkbox .mdc-checkbox__native-control:focus:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, black)}.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-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}),t})(),sP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({}),t})(),Rie=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt,Vs,sP,xt,sP]}),t})();function Oie(t,i){if(1&t){const e=ot();v(0,"mat-checkbox",3),X("click",function(){return Oe(e),Pe(q().optionClicked())}),M(1),y()}if(2&t){const e=i.$implicit;$u("formControlName",e.display),k(1),It(" ",e.display," ")}}let Pie=(()=>{class t{constructor(e,n){this.terminologyService=e,this._formBuilder=n,this.selectionChange=new ke,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)}}return t.\u0275fac=function(e){return new(e||t)(b(wo),b(PR))},t.\u0275cmp=je({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,"formControlName","click"]],template:function(e,n){1&e&&(v(0,"form",0),H(1,Oie,2,2,"mat-checkbox",1),v(2,"span",2),M(3),y()()),2&e&&(A("formGroup",n.checkboxes),k(1),A("ngForOf",n.options),k(2),tt(n.binding.note))},dependencies:[go,tf,ya,Qh,js,nf,aP],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}"]}),t})();const Lie=["newPanel"];function Nie(t,i){if(1&t){const e=ot();v(0,"button",12),X("click",function(){Oe(e);const r=q();return Pe(r.showRightContainer=!r.showRightContainer)}),M(1),y()}if(2&t){const e=q();k(1),It(" ",e.showRightContainer?"Close data panel":"Open data panel"," ")}}function Bie(t,i){1&t&&(v(0,"button",36),M(1," Download form "),y()),2&t&&(q(),A("matMenuTriggerFor",Nt(19)))}function Vie(t,i){1&t&&(v(0,"mat-panel-description"),M(1," Click to add new binding "),y())}function Hie(t,i){if(1&t){const e=ot();v(0,"button",37),X("click",function(){let o;return Oe(e),Pe(null==(o=q().newBindingForm.get("title"))?null:o.reset())}),v(1,"mat-icon"),M(2,"close"),y()()}}function Uie(t,i){if(1&t&&(v(0,"mat-option",38),M(1),y()),2&t){const e=i.$implicit;A("value",e),k(1),It(" ",e," ")}}function zie(t,i){if(1&t){const e=ot();v(0,"button",37),X("click",function(){let o;return Oe(e),Pe(null==(o=q(2).newBindingForm.get("ecl"))?null:o.reset())}),v(1,"mat-icon"),M(2,"close"),y()()}}function $ie(t,i){if(1&t){const e=ot();v(0,"mat-form-field",17)(1,"mat-label"),M(2,"ECL Expression"),y(),Ee(3,"input",39),v(4,"a",40),X("click",function(){Oe(e);const r=q();let o;return Pe(r.openEclBuilder(null==(o=r.newBindingForm.get("ecl"))?null:o.value,"ecl"))}),M(5,"ECL Builder"),y(),H(6,zie,3,0,"button",19),v(7,"mat-error"),M(8),y()()}if(2&t){const e=q();let n;k(6),A("ngIf",null==(n=e.newBindingForm.get("ecl"))?null:n.value),k(2),tt(e.getErrorMessage("ecl"))}}function jie(t,i){if(1&t&&(v(0,"mat-form-field",17),Ee(1,"app-autocomplete-binding",41),v(2,"mat-error"),M(3),y()()),2&t){const e=q();k(1),A("binding",e.observableBinding),k(2),tt(e.getErrorMessage("ecl"))}}function Wie(t,i){if(1&t){const e=ot();v(0,"button",37),X("click",function(){let o;return Oe(e),Pe(null==(o=q(2).newBindingForm.get("note"))?null:o.reset())}),v(1,"mat-icon"),M(2,"close"),y()()}}function Gie(t,i){if(1&t&&(v(0,"mat-form-field",17)(1,"mat-label"),M(2,"Note"),y(),Ee(3,"input",42),H(4,Wie,3,0,"button",19),v(5,"mat-error"),M(6),y()()),2&t){const e=q();let n;k(4),A("ngIf",null==(n=e.newBindingForm.get("note"))?null:n.value),k(2),tt(e.getErrorMessage("note"))}}function qie(t,i){if(1&t){const e=ot();v(0,"button",26),X("click",function(){return Oe(e),Pe(q().addBinding())}),M(1,"Add binding"),y()}}function Xie(t,i){if(1&t){const e=ot();v(0,"button",26),X("click",function(){Oe(e);const r=q();return r.addBinding(),Pe(r.clearOutput())}),M(1,"Update binding"),y()}}function Qie(t,i){if(1&t){const e=ot();v(0,"div",43)(1,"p",44),M(2),y(),v(3,"button",45),X("click",function(){return Oe(e),Pe(q().titleEditMode=!0)}),v(4,"mat-icon"),M(5,"edit"),y()()()}if(2&t){const e=q();k(2),tt(e.formTitle)}}const Yie=function(){return{standalone:!0}};function Kie(t,i){if(1&t){const e=ot();v(0,"div",43)(1,"form",46)(2,"mat-form-field")(3,"mat-label"),M(4,"Title"),y(),v(5,"input",47),X("ngModelChange",function(r){return Oe(e),Pe(q().formTitle=r)})("ngModelChange",function(){return Oe(e),Pe(q().refreshFhirQuestionnaire())}),y(),v(6,"button",37),X("click",function(){return Oe(e),Pe(q().formTitle="")}),v(7,"mat-icon"),M(8,"close"),y()()()(),v(9,"button",45),X("click",function(){return Oe(e),Pe(q().titleEditMode=!1)}),v(10,"mat-icon"),M(11,"save"),y()()()}if(2&t){const e=q();k(5),A("ngModel",e.formTitle)("ngModelOptions",Sc(2,Yie))}}function Zie(t,i){if(1&t){const e=ot();v(0,"app-autocomplete-binding",55),X("selectionChange",function(r){Oe(e);const o=q().$implicit;return Pe(q().optionSelected(o.title,r))}),y()}2&t&&A("binding",q().$implicit)}function Jie(t,i){if(1&t){const e=ot();v(0,"app-dropdown-binding",55),X("selectionChange",function(r){Oe(e);const o=q().$implicit;return Pe(q().optionSelected(o.title,r))}),y()}2&t&&A("binding",q().$implicit)}function ene(t,i){if(1&t){const e=ot();v(0,"app-radios-binding",55),X("selectionChange",function(r){Oe(e);const o=q().$implicit;return Pe(q().optionSelected(o.title,r))}),y()}2&t&&A("binding",q().$implicit)}function tne(t,i){if(1&t&&(v(0,"span",56),M(1),y()),2&t){const e=q().$implicit;k(1),tt(e.title)}}function ine(t,i){if(1&t){const e=ot();v(0,"app-textbox-binding",57),X("textChange",function(r){Oe(e);const o=q().$implicit;return Pe(q().optionSelected(o.title,r))}),y()}2&t&&A("binding",q().$implicit)}function nne(t,i){if(1&t){const e=ot();v(0,"app-checkbox-binding",55),X("selectionChange",function(r){Oe(e);const o=q().$implicit;return Pe(q().optionSelected(o.title,r))}),y()}2&t&&A("binding",q().$implicit)}function rne(t,i){if(1&t&&(v(0,"button",58)(1,"mat-icon"),M(2,"info"),y()()),2&t){const e=q().$implicit;A("matMenuTriggerFor",Nt(12))("disabled","Text box"==e.type)}}function one(t,i){if(1&t){const e=ot();v(0,"div",48)(1,"div",49)(2,"mat-icon",50),M(3,"drag_indicator"),y(),H(4,Zie,1,1,"app-autocomplete-binding",51),H(5,Jie,1,1,"app-dropdown-binding",51),H(6,ene,1,1,"app-radios-binding",51),H(7,tne,2,1,"span",52),H(8,ine,1,1,"app-textbox-binding",53),H(9,nne,1,1,"app-checkbox-binding",51),H(10,rne,3,2,"button",54),v(11,"mat-menu",null,2)(13,"span",3),X("click",function(r){return r.stopPropagation()}),v(14,"h4"),M(15,"Terminology binding"),y(),v(16,"pre"),M(17),y()()(),v(18,"button",45),X("click",function(){const o=Oe(e).index;return Pe(q().bindings.splice(o,1))}),v(19,"mat-icon"),M(20,"delete"),y()(),v(21,"button",45),X("click",function(){const o=Oe(e).index;return Pe(q().edit(o))}),v(22,"mat-icon"),M(23,"edit"),y()()()()}if(2&t){const e=i.$implicit;k(4),A("ngIf","Autocomplete"==e.type),k(1),A("ngIf","Select (Single)"==e.type||"Select (Multiple)"==e.type),k(1),A("ngIf","Options"==e.type),k(1),A("ngIf","Title"==e.type),k(1),A("ngIf","Text box"==e.type),k(1),A("ngIf","Checkbox"==e.type),k(1),A("ngIf","Title"!=e.type),k(3),A("disableRipple",!0),k(4),tt(e.ecl)}}function ane(t,i){if(1&t){const e=ot();v(0,"div",62)(1,"button",63),X("click",function(){Oe(e);const r=q(2);return Pe(r.saveOutput(r.outputStr))}),Ee(2,"mat-icon",64),y(),v(3,"button",65),X("click",function(){Oe(e);const r=q(2);return Pe(r.copyOutputToClipboard(r.outputStr))}),Ee(4,"mat-icon",66),y()()}}const cP=function(){return{}};function sne(t,i){if(1&t&&(v(0,"div",59),H(1,ane,5,0,"div",60),v(2,"textarea",61),M(3," "),y()()),2&t){const e=q();k(1),A("ngIf",e.showRightContainer),k(1),A("options",Sc(4,cP))("lang","json")("innerHTML",e.outputStr,Gm)}}function cne(t,i){if(1&t){const e=ot();v(0,"div",62)(1,"button",63),X("click",function(){Oe(e);const r=q(2);return Pe(r.saveOutput(r.fhirQuestionnaireStr))}),Ee(2,"mat-icon",64),y(),v(3,"button",65),X("click",function(){Oe(e);const r=q(2);return Pe(r.copyOutputToClipboard(r.fhirQuestionnaireStr))}),Ee(4,"mat-icon",66),y()()}}function lne(t,i){if(1&t&&(v(0,"div",59),H(1,cne,5,0,"div",60),v(2,"textarea",61),M(3," "),y()()),2&t){const e=q();k(1),A("ngIf",e.showRightContainer),k(1),A("options",Sc(4,cP))("lang","json")("innerHTML",e.fhirQuestionnaireStr,Gm)}}let dne=(()=>{class t{constructor(e,n,r){this.terminologyService=e,this.clipboard=n,this.dialog=r,this.formTitle="My new form",this.titleEditMode=!1,this.bindings=[],this.output={},this.outputStr="{}",this.fhirQuestionnaire={},this.fhirQuestionnaireStr="{}",this.observableBinding={title:"Question code",type:"Autocomplete",ecl:"<< 363787002 |Observable entity (observable entity)|",value:""},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 Gd({title:new Jr("",[jd.required,jd.maxLength(50)]),type:new Jr("",[jd.required]),ecl:new Jr("",[]),value:new Jr("",[]),note:new Jr("",[jd.maxLength(500)])}),this.indexInEdit=-1,this.panelOpenState=!1,this.maxSelectCount=50,this.maxOptionsCount=10,this.controlTypes=["Autocomplete","Select (Single)","Select (Multiple)","Options","Title","Text box","Checkbox"].sort((o,a)=>o.localeCompare(a)),this.showRightContainer=!1}get stateName(){return this.showRightContainer?"open":"closed"}addBinding(){var e=this;return Oi(function*(){if(e.newBindingForm.markAllAsTouched(),e.newBindingForm.invalid)return;const{title:n,type:r,ecl:o,value:a,note:s}=e.newBindingForm.controls;let c={title:n.value,type:r.value,ecl:o.value,value:a.value,note:s.value},l=!1;o.value?typeof c.type?.indexOf("Select")<"u"&&c.type?.indexOf("Select")>-1?(yield e.getEclPreview(o.value)).expansion.contains.length>e.maxSelectCount&&(l=!0,o.setErrors({selectTooManyResults:!0})):typeof c.type?.indexOf("Options")<"u"&&c.type?.indexOf("Options")>-1&&(yield e.getEclPreview(o.value)).expansion.contains.length>e.maxOptionsCount&&(l=!0,o.setErrors({optionsTooManyResults:!0})):"Title"!=c.type&&"Text box"!=c.type&&(l=!0,o.setErrors({required:!0})),!l&&(e.indexInEdit>-1?e.bindings[e.indexInEdit]=c:e.bindings.push(c),e.newBindingForm.reset(),e.newPanel.close(),e.indexInEdit=-1,e.refreshFhirQuestionnaire())})()}refreshFhirQuestionnaire(){this.fhirQuestionnaire={resourceType:"Questionnaire",title:this.formTitle,status:"draft",item:[]};for(let[e,n]of this.bindings.entries()){if("Title"==n.type&&this.fhirQuestionnaire.item.push({linkId:e+1,type:"display",text:n.title}),"Select (Single)"==n.type||"Options"==n.type){let r={linkId:e+1,type:"choice",extension:[{url:"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-preferredTerminologyServer",valueUrl:"https://snowstorm.ihtsdotools.org/fhir"}],text:n.title,answerValueSet:`http://snomed.info/sct/900000000000207008?fhir_vs=ecl%2F${encodeURIComponent(n.ecl)}`};this.fhirQuestionnaire.item.push(r)}if("Select (Multiple)"==n.type){let r={linkId:e+1,type:"choice",repeats:!0,extension:[{url:"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-preferredTerminologyServer",valueUrl:"https://snowstorm.ihtsdotools.org/fhir"}],text:n.title,answerValueSet:`http://snomed.info/sct/900000000000207008?fhir_vs=ecl%2F${encodeURIComponent(n.ecl)}`};this.fhirQuestionnaire.item.push(r)}if("Autocomplete"==n.type){let r={linkId:e+1,type:"choice",extension:[{url:"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-preferredTerminologyServer",valueUrl:"https://snowstorm.ihtsdotools.org/fhir"},{url:"http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",valueCodeableConcept:{coding:[{system:"http://hl7.org/fhir/questionnaire-item-control",code:"autocomplete",display:"Auto-complete"}]}}],text:n.title,answerValueSet:`http://snomed.info/sct/900000000000207008?fhir_vs=ecl%2F${encodeURIComponent(n.ecl)}`};this.fhirQuestionnaire.item.push(r)}"Text box"==n.type&&this.fhirQuestionnaire.item.push({linkId:e+1,type:"text",text:n.title}),"Checkbox"==n.type&&this.fhirQuestionnaire.item.push({linkId:e+1,type:"boolean",text:n.title,code:[{system:"http://snomed.info/sct",code:n.ecl.code,display:n.ecl.display}]})}this.fhirQuestionnaireStr=JSON.stringify(this.fhirQuestionnaire,null,2)}getEclPreview(e){var n=this;return Oi(function*(){return Wo((yield n.terminologyService.expandValueSet(e,"")).pipe(Ye(o=>o)))})()}edit(e){this.indexInEdit=e;const n=this.bindings[e];this.newBindingForm.setValue({title:n.title,type:n.type,ecl:n.ecl,value:n.value,note:n.note}),this.newPanel.open()}onDrop(e){B1(this.bindings,e.previousIndex,e.currentIndex)}getErrors(e){const n=this.newBindingForm.get(e);return n?n.errors:null}getErrorMessage(e){const n=this.getErrors(e);if(n){if(n.required)return"This field is required";if(n.maxlength)return`This field must be less than ${n.maxlength.requiredLength} characters`;if(n.selectTooManyResults)return`Too many results (Max = ${this.maxSelectCount})`;if(n.optionsTooManyResults)return`Too many results (Max = ${this.maxOptionsCount})`}return null}optionSelected(e,n){this.output[e]=n,this.outputStr=JSON.stringify(this.output,null,2)}loadExample1(){this.formTitle=this.example1.title,this.bindings=this.example1.bindings,this.refreshFhirQuestionnaire()}cancelEdit(){this.newBindingForm.reset(),this.newPanel.close(),this.indexInEdit=-1}clear(){this.bindings=[],this.clearOutput(),this.newBindingForm.reset()}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,qd.saveAs)(e,`${this.formTitle}.json`)}saveOutput(e){var n=new Blob([e],{type:"text/plain;charset=utf-8"});(0,qd.saveAs)(n,`${this.formTitle}-fhir.json`)}copyOutputToClipboard(e){this.clipboard.copy(e)}uploadFile(e){if(1!==e.target.files.length)console.error("No file selected");else{const n=new FileReader;n.onloadend=r=>{if(n.result){const o=JSON.parse(n.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()}},n.readAsText(e.target.files[0])}}openEclBuilder(e,n){this.dialog.open(zte,{data:{ecl:e},width:"80%",height:"80%"}).afterClosed().subscribe(o=>{if(o){const a=this.newBindingForm.get(n);a&&a.setValue(o.ecl)}})}}return t.\u0275fac=function(e){return new(e||t)(b(wo),b(aO),b(Qd))},t.\u0275cmp=je({type:t,selectors:[["app-bindings-sandbox"]],viewQuery:function(e,n){if(1&e&&st(Lie,5),2&e){let r;xe(r=ye())&&(n.newPanel=r.first)}},decls:75,vars:22,consts:[["id","main-panel"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor"],["substancePopoverMenu","matMenu"],["mat-menu-item","",3,"disableRipple","click"],[1,"action-button"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],["hidden","","type","file","id","file",3,"change"],["fileInput",""],["mat-flat-button","","color","accent",3,"matMenuTriggerFor",4,"ngIf"],[1,"wide-menu"],["demosMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-flat-button","","color","accent",3,"click"],[1,"editPanel",3,"opened","closed"],["newPanel",""],[4,"ngIf"],[1,"row",3,"formGroup"],[1,"input-field"],["matInput","","type","text","formControlName","title","placeholder","Enter title..."],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],["formControlName","type"],[3,"value",4,"ngFor","ngForOf"],["class","input-field",4,"ngIf"],[1,"row"],[1,"grow"],["mat-flat-button","","color","primary",3,"click",4,"ngIf"],["mat-flat-button","","color","primary",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","FHIR Questionnaire"],["mat-flat-button","","color","accent",3,"matMenuTriggerFor"],["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"],["matInput","","type","text","formControlName","note","placeholder","Enter a description..."],[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,"ngModel","ngModelOptions","ngModelChange"],["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"],[1,"grow",3,"binding","selectionChange"],[1,"title","grow"],[1,"grow",3,"binding","textChange"],["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(e,n){if(1&e){const r=ot();v(0,"div",0)(1,"h3"),M(2,"Terminology Bindings Sandbox "),v(3,"button",1)(4,"mat-icon"),M(5,"info"),y()(),v(6,"mat-menu",null,2)(8,"span",3),X("click",function(a){return a.stopPropagation()}),v(9,"h4"),M(10,"Terminology Bindings Sandbox"),y(),v(11,"p"),M(12,"This is a sandbox for creating terminology bindings, designed to support education activities."),y()()()(),v(13,"div",4),H(14,Nie,2,1,"button",5),v(15,"input",6,7),X("change",function(a){return n.uploadFile(a)}),y(),H(17,Bie,2,1,"button",8),v(18,"mat-menu",9,10)(20,"button",11),X("click",function(){return n.saveForm()}),M(21,"Download"),y(),v(22,"button",11),X("click",function(){return n.saveOutput(n.fhirQuestionnaireStr)}),M(23,"Download as FHIR Questionnaire"),y()(),v(24,"button",12),X("click",function(){return Oe(r),Pe(Nt(16).click())}),M(25,"Upload form"),y(),v(26,"button",12),X("click",function(){return n.loadExample1()}),M(27,"Example"),y(),v(28,"button",12),X("click",function(){return n.clear()}),M(29,"Clear"),y()(),v(30,"mat-expansion-panel",13,14),X("opened",function(){return n.panelOpenState=!0})("closed",function(){return n.panelOpenState=!1}),v(32,"mat-expansion-panel-header")(33,"mat-panel-title")(34,"h4"),M(35,"New binding:"),y()(),H(36,Vie,2,0,"mat-panel-description",15),y(),v(37,"div")(38,"form",16)(39,"mat-form-field",17)(40,"mat-label"),M(41,"Title"),y(),Ee(42,"input",18),H(43,Hie,3,0,"button",19),v(44,"mat-error"),M(45),y()(),v(46,"mat-form-field",17)(47,"mat-label"),M(48,"Type"),y(),v(49,"mat-select",20),H(50,Uie,2,2,"mat-option",21),y(),v(51,"mat-error"),M(52),y()(),H(53,$ie,9,2,"mat-form-field",22),H(54,jie,4,2,"mat-form-field",22),H(55,Gie,7,2,"mat-form-field",22),y(),Ee(56,"br"),v(57,"div",23),Ee(58,"span",24),H(59,qie,2,0,"button",25),H(60,Xie,2,0,"button",25),v(61,"button",26),X("click",function(){return n.cancelEdit()}),M(62,"Cancel"),y()()()(),H(63,Qie,6,1,"div",27),H(64,Kie,12,3,"div",27),v(65,"div",28)(66,"div",29)(67,"div",30),X("cdkDropListDropped",function(a){return n.onDrop(a)}),H(68,one,24,9,"div",31),y()(),v(69,"div",29)(70,"mat-tab-group",32)(71,"mat-tab",33),H(72,sne,4,5,"div",34),y(),v(73,"mat-tab",35),H(74,lne,4,5,"div",34),y()()()()()}if(2&e){const r=Nt(7);let o;k(3),A("matMenuTriggerFor",r),k(5),A("disableRipple",!0),k(6),A("ngIf",n.bindings.length),k(3),A("ngIf",n.bindings.length),k(19),A("ngIf",!n.panelOpenState),k(2),A("formGroup",n.newBindingForm),k(5),A("ngIf",null==(o=n.newBindingForm.get("title"))?null:o.value),k(2),tt(n.getErrorMessage("title")),k(5),A("ngForOf",n.controlTypes),k(2),tt(n.getErrorMessage("type")),k(1),A("ngIf","Title"!=n.newBindingForm.controls.type.value&&"Text box"!=n.newBindingForm.controls.type.value&&"Checkbox"!=n.newBindingForm.controls.type.value),k(1),A("ngIf","Checkbox"==n.newBindingForm.controls.type.value),k(1),A("ngIf","Title"!=n.newBindingForm.controls.type.value),k(4),A("ngIf",-1==n.indexInEdit),k(1),A("ngIf",n.indexInEdit>-1),k(3),A("ngIf",!n.titleEditMode),k(1),A("ngIf",n.titleEditMode),k(2),A("@growShrink",n.stateName),k(2),A("ngForOf",n.bindings),k(1),A("@openClose",n.stateName),k(3),A("ngIf",n.bindings.length>0),k(2),A("ngIf",n.bindings.length>0)}},dependencies:[go,hn,F1,z1,j1,OO,yo,is,ba,$c,va,jc,Ws,wa,NR,VR,Hs,af,tf,Us,ya,Qh,js,nf,f0,sf,cf,cs,qc,lf,eP,nie,oie,rie,h0,cie,xie,yie,Pie],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}.input-field[_ngcontent-%COMP%]{width:calc(50% - 5px)}mat-hint[_ngcontent-%COMP%], mat-error[_ngcontent-%COMP%]{font-size:12px}.editPanel[_ngcontent-%COMP%]{width:calc(50% - 5px);margin:5px 5px 25px;padding:10px;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}"],data:{animation:[bn("openClose",[ii("open",nt({opacity:1,width:"50%"})),ii("closed",nt({opacity:0,width:"0"})),ai("open <=> closed",[fi("0.5s")])]),bn("growShrink",[ii("open",nt({width:"50%"})),ii("closed",nt({width:"100%"})),ai("open <=> closed",[fi("0.5s")])])]}}),t})(),une=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=je({type:t,selectors:[["app-prescription-main"]],decls:2,vars:0,template:function(e,n){1&e&&(v(0,"p"),M(1,"prescription-main works!, no?"),y())}}),t})();const hne=["mat-sort-header",""];function fne(t,i){if(1&t){const e=ot();v(0,"div",3),X("@arrowPosition.start",function(){return Oe(e),Pe(q()._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){return Oe(e),Pe(q()._disableViewStateAnimation=!1)}),Ee(1,"div",4),v(2,"div",5),Ee(3,"div",6)(4,"div",7)(5,"div",8),y()()}if(2&t){const e=q();A("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),k(2),A("@indicator",e._getArrowDirectionState()),k(1),A("@leftPointer",e._getArrowDirectionState()),k(1),A("@rightPointer",e._getArrowDirectionState())}}const mne=["*"],lP=new ae("MAT_SORT_DEFAULT_OPTIONS"),pne=Xq(ts(class{}));let Yc=(()=>{class t extends pne{get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=$e(e)}constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new Ce,this.start="asc",this._direction="",this.sortChange=new ke}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 gne(t,i){let e=["asc","desc"];return"desc"==t&&e.reverse(),i||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()}}return t.\u0275fac=function(e){return new(e||t)(b(lP,8))},t.\u0275dir=Q({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[pe,Ei]}),t})();const Gs=Wq.ENTERING+" "+jq.STANDARD_CURVE,Yd={indicator:bn("indicator",[ii("active-asc, asc",nt({transform:"translateY(0px)"})),ii("active-desc, desc",nt({transform:"translateY(10px)"})),ai("active-asc <=> active-desc",fi(Gs))]),leftPointer:bn("leftPointer",[ii("active-asc, asc",nt({transform:"rotate(-45deg)"})),ii("active-desc, desc",nt({transform:"rotate(45deg)"})),ai("active-asc <=> active-desc",fi(Gs))]),rightPointer:bn("rightPointer",[ii("active-asc, asc",nt({transform:"rotate(45deg)"})),ii("active-desc, desc",nt({transform:"rotate(-45deg)"})),ai("active-asc <=> active-desc",fi(Gs))]),arrowOpacity:bn("arrowOpacity",[ii("desc-to-active, asc-to-active, active",nt({opacity:1})),ii("desc-to-hint, asc-to-hint, hint",nt({opacity:.54})),ii("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",nt({opacity:0})),ai("* => asc, * => desc, * => active, * => hint, * => void",fi("0ms")),ai("* <=> *",fi(Gs))]),arrowPosition:bn("arrowPosition",[ai("* => desc-to-hint, * => desc-to-active",fi(Gs,Dg([nt({transform:"translateY(-25%)"}),nt({transform:"translateY(0)"})]))),ai("* => hint-to-desc, * => active-to-desc",fi(Gs,Dg([nt({transform:"translateY(0)"}),nt({transform:"translateY(25%)"})]))),ai("* => asc-to-hint, * => asc-to-active",fi(Gs,Dg([nt({transform:"translateY(25%)"}),nt({transform:"translateY(0)"})]))),ai("* => hint-to-asc, * => active-to-asc",fi(Gs,Dg([nt({transform:"translateY(0)"}),nt({transform:"translateY(-25%)"})]))),ii("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",nt({transform:"translateY(0)"})),ii("hint-to-desc, active-to-desc, desc",nt({transform:"translateY(-25%)"})),ii("hint-to-asc, active-to-asc, asc",nt({transform:"translateY(25%)"}))]),allowChildren:bn("allowChildren",[ai("* <=> *",[Eg("@*",Sg(),{optional:!0})])])};let y0=(()=>{class t{constructor(){this.changes=new Ce}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const bne={provide:y0,deps:[[new na,new bc,y0]],useFactory:function _ne(t){return t||new y0}},vne=ts(class{});let dP=(()=>{class t extends vne{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=$e(e)}constructor(e,n,r,o,a,s,c,l){super(),this._intl=e,this._changeDetectorRef=n,this._sort=r,this._columnDef=o,this._focusMonitor=a,this._elementRef=s,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 n=!!e;n!==this._showIndicatorHint&&(this._setIndicatorHintVisible(n),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=Vi(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()})}}return t.\u0275fac=function(e){return new(e||t)(b(y0),b(Gt),b(Yc,8),b("MAT_SORT_HEADER_COLUMN_DEF",8),b(vo),b(Ae),b(kI,8),b(lP,8))},t.\u0275cmp=je({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,n){1&e&&X("click",function(){return n._handleClick()})("keydown",function(o){return n._handleKeydown(o)})("mouseenter",function(){return n._setIndicatorHintVisible(!0)})("mouseleave",function(){return n._setIndicatorHintVisible(!1)}),2&e&&(rt("aria-sort",n._getAriaSortAttribute()),Xe("mat-sort-header-disabled",n._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[pe],attrs:hne,ngContentSelectors:mne,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(e,n){1&e&&(vi(),v(0,"div",0)(1,"div",1),Je(2),y(),H(3,fne,6,6,"div",2),y()),2&e&&(Xe("mat-sort-header-sorted",n._isSorted())("mat-sort-header-position-before","before"===n.arrowPosition),rt("tabindex",n._isDisabled()?null:0)("role",n._isDisabled()?null:"button"),k(3),A("ngIf",n._renderArrow()))},dependencies:[hn],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:[Yd.indicator,Yd.leftPointer,Yd.rightPointer,Yd.arrowOpacity,Yd.arrowPosition,Yd.allowChildren]},changeDetection:0}),t})(),xne=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[bne],imports:[nr,xt]}),t})(),yne=(()=>{class t{saveItem(e,n){localStorage.setItem(e,n)}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}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ff=(()=>{class t{constructor(e,n){this.http=e,this.storageService=n,this.baseUrlSubject=new Bn("https://hapi.fhir.org/baseR4"),this.baseUrl$=this.baseUrlSubject.asObservable(),this.userTagSubject=new Bn(""),this.userTag$=this.userTagSubject.asObservable(),this.initialize()}initialize(){if(this.storageService.isLocalStorageSupported()){const e=this.storageService.getItem("baseUrl");e&&this.baseUrlSubject.next(e);const n=this.storageService.getItem("userTag");n&&this.userTagSubject.next(n)}}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,n){return this.http.post(`${this.baseUrlSubject.value}/Questionnaire/${e}/$meta-add`,{resourceType:"Parameters",parameter:[{name:"meta",valueMeta:{tag:[{system:"http://snomed.org/tags",code:n}]}}]})}deleteQuestionnaire(e){return this.http.delete(`${this.baseUrlSubject.value}/Questionnaire/${e}`)}updateOrCreateQuestionnaire(e,n){return e.id?this.http.put(`${this.baseUrlSubject.value}/Questionnaire?_id=${e.id}&_tag=${n}`,e).pipe(mn(o=>404===o.status?this.postQuestionnaire(e):Fc(o))):this.postQuestionnaire(e)}}return t.\u0275fac=function(e){return new(e||t)(G(Ps),G(yne))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function wne(t,i){if(1&t&&(v(0,"mat-option",15),M(1),y()),2&t){const e=i.$implicit;A("value",e),k(1),It(" ",e.title," ")}}function Cne(t,i){1&t&&Ee(0,"mat-spinner",16)}function kne(t,i){if(1&t){const e=ot();v(0,"div",17)(1,"span",18),M(2,"\u2261"),y(),M(3),v(4,"button",19),X("click",function(){const o=Oe(e).index;return Pe(q().deleteQuestionnaire(o))}),v(5,"mat-icon"),M(6,"delete"),y()()()}if(2&t){const e=i.$implicit;k(3),It(" ",e.title," ")}}let uP=(()=>{class t{constructor(e,n,r,o){this.fb=e,this.fhirService=n,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(n=>n.id===e.id)):this.allQuestionnaires}loadAvailableQuestionnaires(){this.loading=!0,this.fhirService.getQuestionnairesByTag(this.userTag).subscribe(e=>{this.allQuestionnaires=e.entry.map(n=>n.resource),this.allQuestionnaires.sort((n,r)=>n.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){B1(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})}}return t.\u0275fac=function(e){return new(e||t)(b(PR),b(ff),b(X1),b(Qc))},t.\u0275cmp=je({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,"disabled","click"],["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,"disabled","click"],[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(e,n){1&e&&(v(0,"mat-dialog-content")(1,"h2"),M(2,"Create a modular Questionnaire"),y(),v(3,"form",0)(4,"div",1)(5,"mat-form-field",2)(6,"mat-label"),M(7,"Assign Name"),y(),Ee(8,"input",3),y()(),v(9,"div",1)(10,"mat-form-field",4)(11,"mat-label"),M(12,"Select Child Questionnaire"),y(),v(13,"mat-select",5),H(14,wne,2,2,"mat-option",6),y()(),v(15,"button",7),X("click",function(){return n.addQuestionnaire()}),M(16,"Add questionnaire"),y(),H(17,Cne,1,0,"mat-spinner",8),y()(),v(18,"div",9)(19,"cdk-drop-list",10),X("cdkDropListDropped",function(o){return n.drop(o)}),H(20,kne,7,1,"div",11),y()()(),v(21,"mat-dialog-actions",12)(22,"button",13),M(23,"Cancel"),y(),v(24,"button",14),X("click",function(){return n.closeModal()}),M(25,"Save"),y()()),2&e&&(k(3),A("formGroup",n.questionnaireForm),k(11),A("ngForOf",n.availableQuestionnaires),k(1),A("disabled",n.loading),k(2),A("ngIf",n.loading),k(3),A("ngForOf",n.addedQuestionnaires),k(4),A("disabled",n.isSaveDisabled()))},dependencies:[go,hn,z1,j1,yo,is,ba,Ws,wa,Hs,Pd,af,tf,Us,ya,Qh,js,nf,cf,x0,Q1,Y1],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}"]}),t})(),hP=(()=>{class t{constructor(e,n){this.http=e,this.fhirService=n}generateRootQuestionnaire(e,n){var r=this;return Oi(function*(){try{let a=yield Wo(r.http.get("assets/questionnaires/root-questionnaire-template.json"));a.title=e;let s=0,c=r.fhirService.getBaseUrl();return r.fhirService.getUserTag(),n.forEach(d=>{s++,d.url=c+"/Questionnaire/"+d.id,a.item.push({linkId:s.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:s.toString()+".1",text:"Unable to resolve sub-questionnaire",type:"display"}]})}),a}catch(o){throw console.error("Error generating root questionnaire:",o),o}})()}getRootQuestionnaireData(e){var n=this;return Oi(function*(){if(!e||!Array.isArray(e.item))throw new Error("Invalid root questionnaire");const r=e.title,o=e.item.filter(s=>"group"===s.type&&s.item&&Array.isArray(s.item)).flatMap(s=>s.item).map(function(){var s=Oi(function*(c){const l=c.extension?.find(d=>"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire"===d.url);return l?n.getQuestionnaireFromUrl(l.valueCanonical):null});return function(c){return s.apply(this,arguments)}}());return{title:r,questionnaires:(yield Promise.all(o)).filter(s=>null!==s)}})()}checkForAssembleRoot(e){return!!(e&&e.extension&&Array.isArray(e.extension))&&e.extension.some(n=>"assemble-root"===n.valueCode)}assembleQuestionnaire(e){var n=this;return Oi(function*(){if(e=JSON.parse(JSON.stringify(e)),!n.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 a of o.extension)if("http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire"===a.url){let s=yield n.getQuestionnaireFromUrl(a.valueCanonical);s&&(r.item=s.item),r.extension||(r.extension=[]),r.extension.push({url:"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assembledFrom",valueCanonical:a.valueCanonical})}}return e.extension=e.extension.filter(r=>"assemble-root"!==r.valueCode),e})()}disassembleQuestionnaire(e){var n=this;return Oi(function*(){if(!e||!e.item||!Array.isArray(e.item))throw new Error("Invalid root questionnaire");const r=e.title,o=[];for(const a of e.item)if("group"===a.type&&a.extension&&Array.isArray(a.extension)){const s=a.extension.find(c=>"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assembledFrom"===c.url);if(s){const c=s.valueCanonical,l=yield n.getQuestionnaireFromUrl(c);l&&o.push(l)}}return{title:r,questionnaires:o}})()}getQuestionnaireFromUrl(e){var n=this;return Oi(function*(){try{return yield Wo(n.http.get(e))}catch(r){return console.error("Error fetching questionnaire:",r),null}})()}}return t.\u0275fac=function(e){return new(e||t)(G(Ps),G(ff))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Dne(t,i){1&t&&(v(0,"th",14),M(1," Title "),y())}function Sne(t,i){if(1&t&&(v(0,"td",15),M(1),y()),2&t){const e=i.$implicit;k(1),It(" ",e.title," ")}}function Ene(t,i){1&t&&(v(0,"th",14),M(1," Status "),y())}const Tne=function(t){return["status-pill",t]};function Mne(t,i){if(1&t&&(v(0,"td",15)(1,"span",16),M(2),mp(3,"uppercase"),y()()),2&t){const e=i.$implicit;k(1),A("ngClass",Rv(4,Tne,e.status)),k(1),tt(Ov(3,2,e.status))}}function Ane(t,i){1&t&&(v(0,"th",14),M(1," Version "),y())}function Ine(t,i){if(1&t&&(v(0,"td",15),M(1),y()),2&t){const e=i.$implicit;k(1),It(" ",e.meta.versionId," ")}}function Fne(t,i){1&t&&(v(0,"th",14),M(1," Type "),y())}const Rne=function(){return["status-pill","active"]};function One(t,i){1&t&&(v(0,"span",16),M(1,"QUESTIONNAIRE"),y()),2&t&&A("ngClass",Sc(1,Rne))}const Pne=function(){return["status-pill","draft"]};function Lne(t,i){1&t&&(v(0,"span",16),M(1,"MODULAR ROOT"),y()),2&t&&A("ngClass",Sc(1,Pne))}function Nne(t,i){if(1&t&&(v(0,"td",15),H(1,One,2,2,"span",17),H(2,Lne,2,2,"span",17),y()),2&t){const e=i.$implicit,n=q();k(1),A("ngIf",!n.isRootQuestionnaire(e)),k(1),A("ngIf",n.isRootQuestionnaire(e))}}function Bne(t,i){1&t&&(v(0,"th",18),M(1," Actions "),y())}function Vne(t,i){if(1&t){const e=ot();v(0,"button",27),X("click",function(){Oe(e);const r=q().$implicit;return Pe(q().assemble(r))}),v(1,"mat-icon"),M(2,"build"),y()()}}function Hne(t,i){if(1&t){const e=ot();v(0,"button",28),X("click",function(){Oe(e);const r=q().$implicit;return Pe(q().validate(r))}),v(1,"mat-icon"),M(2,"done"),y()()}}function Une(t,i){if(1&t){const e=ot();v(0,"button",29),X("click",function(){Oe(e);const r=q().$implicit;return Pe(q().preview(r))}),v(1,"mat-icon"),M(2,"visibility"),y()()}}function zne(t,i){if(1&t){const e=ot();v(0,"button",30),X("click",function(){Oe(e);const r=q().$implicit;return Pe(q().openInNewTab(r))}),v(1,"mat-icon"),M(2,"open_in_new"),y()()}}function $ne(t,i){if(1&t){const e=ot();v(0,"button",31),X("click",function(){Oe(e);const r=q().$implicit;return Pe(q().editQuestionnaire(r))}),v(1,"mat-icon"),M(2,"edit"),y()()}}function jne(t,i){if(1&t){const e=ot();v(0,"button",32),X("click",function(){Oe(e);const r=q().$implicit;return Pe(q().openModularQuestionnaireModal(r))}),v(1,"mat-icon"),M(2,"edit"),y()()}}function Wne(t,i){if(1&t){const e=ot();v(0,"td",15),H(1,Vne,3,0,"button",19),H(2,Hne,3,0,"button",20),H(3,Une,3,0,"button",21),H(4,zne,3,0,"button",22),v(5,"button",23),X("click",function(){const o=Oe(e).$implicit;return Pe(q().saveQuestionnaire(o))}),v(6,"mat-icon"),M(7,"cloud_download"),y()(),H(8,$ne,3,0,"button",24),H(9,jne,3,0,"button",25),v(10,"button",26),X("click",function(){const o=Oe(e).$implicit;return Pe(q().deleteQuestionnaire(o))}),v(11,"mat-icon"),M(12,"delete"),y()()()}if(2&t){const e=i.$implicit,n=q();k(1),A("ngIf",n.isRootQuestionnaire(e)),k(1),A("ngIf",n.config.validate&&!n.isRootQuestionnaire(e)),k(1),A("ngIf",n.config.preview&&!n.isRootQuestionnaire(e)),k(1),A("ngIf",n.config.preview),k(4),A("ngIf",!n.isRootQuestionnaire(e)),k(1),A("ngIf",n.isRootQuestionnaire(e))}}function Gne(t,i){1&t&&Ee(0,"tr",33)}function qne(t,i){1&t&&Ee(0,"tr",34)}function Xne(t,i){1&t&&(v(0,"p")(1,"i"),M(2,"No questionnaires found"),y()())}function Qne(t,i){1&t&&Ee(0,"mat-spinner",35)}let fP=(()=>{class t{constructor(e,n,r,o){this.fhirService=e,this.questionnaireService=n,this.dialog=r,this._snackBar=o,this.questionnaireSelected=new ke,this.validateQuestionnaire=new ke,this.previewQuestionnaire=new ke,this.config={},this.displayedColumns=["title","status","version","type","actions"],this.dataSource=new Xh,this.questionnaires=[],this.loading=!1,this.selectedFhirServer="",this.selectedUserTag="",this.notFound=!1,this.baseUrlChanged=new Ce,this.userTagChanged=new Ce}ngOnInit(){Ic([this.fhirService.baseUrl$.pipe(Ed(1e3),Nc()),this.fhirService.userTag$.pipe(Ed(1e3),Nc())]).subscribe(([e,n])=>{(this.selectedFhirServer!==e||this.selectedUserTag!==n)&&(this.selectedFhirServer=e,this.selectedUserTag=n,this.selectedUserTag&&this.selectedFhirServer&&this.loadQuestionnaires())})}ngOnChanges(e){}ngAfterViewInit(){this.dataSource.sort=this.sort,this.dataSource.sortingDataAccessor=(e,n)=>{switch(n){case"type":return this.isRootQuestionnaire(e)?"Modular root":"Questionnaire";case"version":return e.meta&&e.meta.versionId?e.meta.versionId:"";default:return e[n]}},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(n=>n.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 n=this.questionnaires.findIndex(r=>r.id===e.id);-1!==n?(this.questionnaires[n]=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(Hn,{duration:5e3,data:"Deleting Questionnaire...",panelClass:["green-snackbar"]}),this.fhirService.deleteQuestionnaire(e.id).subscribe(()=>{this.questionnaires=this.questionnaires.filter(n=>n.id!==e.id),this.dataSource.data=this.questionnaires,this._snackBar.openFromComponent(Hn,{duration:5e3,data:"Questionnaire deleted successfully",panelClass:["green-snackbar"]})})}selectQuestionnaire(e){this.questionnaireSelected.emit(e)}validate(e){this.validateQuestionnaire.emit(e)}preview(e){this.previewQuestionnaire.emit(e)}openInNewTab(e){window.open(this.selectedFhirServer+"/Questionnaire/"+e.id,"_blank")}saveQuestionnaire(e){var n=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});qd(n,`${e.title}-v${e.meta.versionId}.json`)}isRootQuestionnaire(e){return!(!e.extension||!Array.isArray(e.extension))&&e.extension.some(n=>"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assemble-expectation"===n.url&&"assemble-root"===n.valueCode)}assemble(e){this._snackBar.openFromComponent(Hn,{duration:2e3,data:"Assembling Questionnaire...",panelClass:["green-snackbar"]}),this.questionnaireService.assembleQuestionnaire(e).then(n=>{n.title=e.title+" (assembled)",this.previewQuestionnaire.emit(n)}).catch(n=>{console.error("Error assembling questionnaire:",n)})}editQuestionnaire(e){this.saveQuestionnaire(e),window.open("https://lhcformbuilder.nlm.nih.gov/","_blank")}openModularQuestionnaireModal(e){var n=this;return Oi(function*(){let r=yield n.questionnaireService.getRootQuestionnaireData(e);n.dialog.open(uP,{data:r,width:"75%"}).afterClosed().subscribe(a=>{a&&n.handleDialogResult(a,e)})})()}handleDialogResult(e,n){var r=this;return Oi(function*(){r._snackBar.openFromComponent(Hn,{duration:5e3,data:"Updating questionnaire...",panelClass:["green-snackbar"]});try{let o=yield r.questionnaireService.generateRootQuestionnaire(e.title,e.questionnaires);o&&(n.title=e.title,n.item=o.item,r.addQuestionnaire(n),r.fhirService.updateOrCreateQuestionnaire(n,r.selectedUserTag).pipe(_o()).subscribe(a=>{r._snackBar.openFromComponent(Hn,{duration:5e3,data:"Questionnaire updated successfully",panelClass:["green-snackbar"]})},a=>{r._snackBar.openFromComponent(Hn,{duration:5e3,data:"Error saving questionnaire",panelClass:["red-snackbar"]})}))}catch(o){console.error("Error handling dialog result:",o)}})()}}return t.\u0275fac=function(e){return new(e||t)(b(ff),b(hP),b(Qd),b(Od))},t.\u0275cmp=je({type:t,selectors:[["app-list-questionnaires"]],viewQuery:function(e,n){if(1&e&&st(Yc,5),2&e){let r;xe(r=ye())&&(n.sort=r.first)}},inputs:{config:"config"},outputs:{questionnaireSelected:"questionnaireSelected",validateQuestionnaire:"validateQuestionnaire",previewQuestionnaire:"previewQuestionnaire"},features:[Ei],decls:21,vars:5,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"],[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","class","action-button","matTooltip","Assemble Questionnaire",3,"click",4,"ngIf"],["mat-icon-button","","color","accent","class","action-button","matTooltip","Validate 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","Delete Questionnaire",1,"action-button",3,"click"],["mat-icon-button","","color","accent","matTooltip","Assemble Questionnaire",1,"action-button",3,"click"],["mat-icon-button","","color","accent","matTooltip","Validate 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",""],["diameter","35",1,"loading-spinner"]],template:function(e,n){1&e&&(v(0,"div",0)(1,"table",1),Ai(2,2),H(3,Dne,2,0,"th",3),H(4,Sne,2,1,"td",4),Ii(),Ai(5,5),H(6,Ene,2,0,"th",3),H(7,Mne,4,6,"td",4),Ii(),Ai(8,6),H(9,Ane,2,0,"th",3),H(10,Ine,2,1,"td",4),Ii(),Ai(11,7),H(12,Fne,2,0,"th",3),H(13,Nne,3,2,"td",4),Ii(),Ai(14,8),H(15,Bne,2,0,"th",9),H(16,Wne,13,6,"td",4),Ii(),H(17,Gne,1,0,"tr",10),H(18,qne,1,0,"tr",11),y(),H(19,Xne,3,0,"p",12),H(20,Qne,1,0,"mat-spinner",13),y()),2&e&&(k(1),A("dataSource",n.dataSource),k(16),A("matHeaderRowDef",n.displayedColumns),k(1),A("matRowDefColumns",n.displayedColumns),k(1),A("ngIf",n.notFound&&!n.questionnaires.length),k(1),A("ngIf",n.loading))},dependencies:[Es,hn,is,ba,Pd,$h,Hd,jh,Ud,Vd,Wh,zd,$d,Gh,qh,lf,Yc,dP,aM],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}"]}),t})(),Yne=(()=>{class t{constructor(e){this.dialogRef=e,this.listConfig={select:!0}}selectAndDownload(e){this.dialogRef.close(e)}}return t.\u0275fac=function(e){return new(e||t)(b(Qc))},t.\u0275cmp=je({type:t,selectors:[["app-load-questionnaire-modal"]],decls:7,vars:1,consts:[[3,"config","questionnaireSelected"],["align","end"],["mat-flat-button","","color","accent","mat-dialog-close",""]],template:function(e,n){1&e&&(v(0,"mat-dialog-content")(1,"h2"),M(2,"Available Questionnaires"),y(),v(3,"app-list-questionnaires",0),X("questionnaireSelected",function(o){return n.selectAndDownload(o)}),y()(),v(4,"mat-dialog-actions",1)(5,"button",2),M(6,"Close"),y()()),2&e&&(k(3),A("config",n.listConfig))},dependencies:[yo,x0,Q1,Y1,fP]}),t})();const Kne=["settingsForm"];function Zne(t,i){1&t&&(v(0,"mat-error"),M(1,"Base URL is required"),y())}function Jne(t,i){1&t&&(v(0,"mat-error"),M(1,"User Tag is required and must be at least 3 characters"),y())}let J1=(()=>{class t{constructor(e,n){this.fhirService=e,this.dialogRef=n,this.baseUrl="",this.userTag=""}ngAfterViewInit(){this.triggerValidation()}triggerValidation(){Object.keys(this.settingsForm.controls).forEach(e=>{const n=this.settingsForm.control.get(e);n?.markAsTouched({onlySelf:!0}),n?.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"))}}return t.\u0275fac=function(e){return new(e||t)(b(ff),b(Qc))},t.\u0275cmp=je({type:t,selectors:[["app-fhir-server-settings-modal"]],viewQuery:function(e,n){if(1&e&&st(Kne,5),2&e){let r;xe(r=ye())&&(n.settingsForm=r.first)}},decls:29,vars:5,consts:[[1,"form-container"],[1,"warning"],[3,"ngSubmit"],["settingsForm","ngForm"],["matInput","","name","baseUrl","required","",3,"ngModel","ngModelChange"],["baseUrlField","ngModel"],[4,"ngIf"],["matInput","","name","userTag","required","","minlength","3",3,"ngModel","ngModelChange"],["userTagField","ngModel"],[1,"button-container"],["mat-flat-button","","color","accent","type","submit",3,"disabled"],["mat-flat-button","","color","primary","mat-dialog-close",""]],template:function(e,n){if(1&e&&(v(0,"div",0)(1,"h2"),M(2,"FHIR Server Connection"),y(),v(3,"p"),M(4,"Manager mode allows you to store questionnares in a FHIR Server. Enter the FHIR server URL and your "),v(5,"b"),M(6,"User Tag"),y(),M(7,", this value will be used to identify your questionnaires."),y(),v(8,"p",1),M(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."),y(),v(10,"form",2,3),X("ngSubmit",function(){return n.updateSettings()}),v(12,"mat-form-field")(13,"mat-label"),M(14,"Base URL of the FHIR Server"),y(),v(15,"input",4,5),X("ngModelChange",function(o){return n.baseUrl=o}),y(),H(17,Zne,2,0,"mat-error",6),y(),v(18,"mat-form-field")(19,"mat-label"),M(20,"User Tag"),y(),v(21,"input",7,8),X("ngModelChange",function(o){return n.userTag=o}),y(),H(23,Jne,2,0,"mat-error",6),y(),v(24,"div",9)(25,"button",10),M(26,"Open FHIR Repository"),y(),v(27,"button",11),M(28,"Close"),y()()()()),2&e){const r=Nt(11),o=Nt(16),a=Nt(22);k(15),A("ngModel",n.baseUrl),k(2),A("ngIf",o.invalid&&o.touched),k(4),A("ngModel",n.userTag),k(2),A("ngIf",a.invalid&&a.touched),k(2),A("disabled",!r.valid)}},dependencies:[hn,yo,Ws,wa,NR,af,tf,Us,ya,Qh,a0,M1,cs,qc,x0],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}"]}),t})();const ere=new ae("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),ire=Ns(class{constructor(t){this._elementRef=t}},"primary");let nre=(()=>{class t extends ire{constructor(e,n,r,o,a){super(e),this._ngZone=n,this._changeDetectorRef=r,this._animationMode=o,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new ke,this._mode="determinate",this._transitionendHandler=s=>{0===this.animationEnd.observers.length||!s.target||!s.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,a&&(a.color&&(this.color=this.defaultColor=a.color),this.mode=a.mode||this.mode)}get value(){return this._value}set value(e){this._value=mP(An(e)),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(e){this._bufferValue=mP(An(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}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Ue),b(Gt),b(Ri,8),b(ere,8))},t.\u0275cmp=je({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(e,n){2&e&&(rt("aria-valuenow",n._isIndeterminate()?null:n.value)("mode",n.mode),Xe("_mat-animation-noopable",n._isNoopAnimation)("mdc-linear-progress--animation-ready",!n._isNoopAnimation)("mdc-linear-progress--indeterminate",n._isIndeterminate()))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[pe],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(e,n){1&e&&(v(0,"div",0),Ee(1,"div",1)(2,"div",2),y(),v(3,"div",3),Ee(4,"span",4),y(),v(5,"div",5),Ee(6,"span",4),y()),2&e&&(k(1),ir("flex-basis",n._getBufferBarFlexBasis()),k(2),ir("transform",n._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, 83.67142%))}100%{transform:translateX(var(--mdc-linear-progress-primary-full, 200.611057%))}}@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, 37.651913%))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half, 84.386165%))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full, 160.277782%))}}@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-buffering{from{transform:rotate(180deg) translateX(-10px)}}@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, -83.67142%))}100%{transform:translateX(var(--mdc-linear-progress-primary-full-neg, -200.611057%))}}@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, -37.651913%))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half-neg, -84.386165%))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full-neg, -160.277782%))}}@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: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;width:100%;height: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;width:100%;height:100%}.mdc-linear-progress__buffer-dots{background-repeat:repeat-x;flex:auto;transform:rotate(180deg);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}.mdc-linear-progress__bar-inner{border-color:var(--mdc-linear-progress-active-indicator-color, #6200ee)}.mdc-linear-progress__buffer-dots{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='%23e6e6e6'/%3E%3C/svg%3E\")}.mdc-linear-progress__buffer-bar{background-color:#e6e6e6}.mdc-linear-progress{height:var(--mdc-linear-progress-track-height, 4px)}.mdc-linear-progress__bar-inner{border-top-width:var(--mdc-linear-progress-track-height, 4px)}.mdc-linear-progress__buffer-dots{background-size:10px var(--mdc-linear-progress-track-height, 4px)}.mat-mdc-progress-bar{display:block}.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}),t})();function mP(t,i=0,e=100){return Math.max(i,Math.min(e,t))}let rre=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt]}),t})();const ore=["questionnairesList"];function are(t,i){if(1&t&&(v(0,"div",20),Ee(1,"mat-progress-bar",21),v(2,"div",22),M(3),y()()),2&t){const e=q();k(1),A("value",e.validatingProgress),k(2),It("",e.validatingProgress,"%")}}function sre(t,i){1&t&&(v(0,"span"),M(1,"Run validation"),y())}function cre(t,i){1&t&&Ee(0,"mat-spinner",23)}function lre(t,i){if(1&t&&(v(0,"span",29),M(1),y()),2&t){const e=q(2);k(1),It("Error: ",e.loadResults.error,"")}}function dre(t,i){if(1&t&&(v(0,"span",30),M(1),y()),2&t){const e=q(2);k(1),It("Inactive: ",e.loadResults.inactive,"")}}function ure(t,i){if(1&t&&(v(0,"span",31),M(1),y()),2&t){const e=q(2);k(1),It("Active: ",e.loadResults.active,"")}}function hre(t,i){if(1&t&&(v(0,"p",24)(1,"b"),M(2,"Questionnaire:"),y(),M(3),v(4,"i"),M(5),y(),M(6,") - "),v(7,"span",25),M(8),y(),H(9,lre,2,1,"span",26),H(10,dre,2,1,"span",27),H(11,ure,2,1,"span",28),y()),2&t){const e=q();k(3),It(" ",e.questionnaire.title," ("),k(2),tt(e.questionnaire.url),k(3),It("",e.dataSource.data.length," bindings"),k(1),A("ngIf",e.loadResults.total>0),k(1),A("ngIf",e.loadResults.total>0),k(1),A("ngIf",e.loadResults.total>0)}}function fre(t,i){1&t&&(v(0,"th",32),M(1," # "),y())}function mre(t,i){if(1&t&&(v(0,"td",33),M(1),y()),2&t){const e=i.$implicit;k(1),It(" ",e.order," ")}}function pre(t,i){1&t&&(v(0,"th",32),M(1," FHIRPath "),y())}function gre(t,i){if(1&t&&(v(0,"td",33),M(1),y()),2&t){const e=i.$implicit;k(1),It(" ",e.path," ")}}function _re(t,i){1&t&&(v(0,"th",32),M(1," Path "),y())}function bre(t,i){if(1&t&&(v(0,"td",33),M(1),y()),2&t){const e=i.$implicit;k(1),It(" ",e.readablePath," ")}}function vre(t,i){1&t&&(v(0,"th",32),M(1,"Code "),y())}function xre(t,i){if(1&t&&(v(0,"td",33)(1,"a",34),M(2),y()()),2&t){const e=i.$implicit;k(1),ap("href","http://snomed.info/id/",e.code,"",Hb),k(1),tt(e.code)}}function yre(t,i){1&t&&(v(0,"th",32),M(1," Display "),y())}function wre(t,i){if(1&t&&(v(0,"p",38),M(1),y()),2&t){const e=q().$implicit;k(1),It("Concept FSN: ",e.serverDisplay,"")}}function Cre(t,i){1&t&&(v(0,"p",39),M(1,"Concept is inactive"),y())}function kre(t,i){if(1&t){const e=ot();v(0,"p",40),M(1),v(2,"button",41),X("click",function(){const o=Oe(e).$implicit,a=q().$implicit;return Pe(q().replaceInactiveConcept(a,o.replacement))}),v(3,"mat-icon"),M(4,"arrow_forward"),y()()()}if(2&t){const e=i.$implicit,n=q(2);k(1),wv(" Replacement: ",e.equivalence," to ",e.replacement.code," |",e.replacement.display,"| "),k(1),A("disabled",n.validating)}}function Dre(t,i){if(1&t&&(v(0,"td",33),M(1),H(2,wre,2,1,"p",35),H(3,Cre,2,0,"p",36),H(4,kre,5,4,"p",37),y()),2&t){const e=i.$implicit;k(1),It(" ",e.display," "),k(1),A("ngIf",e.serverDisplay),k(1),A("ngIf","Inactive"==e.status),k(1),A("ngForOf",e.replacements)}}function Sre(t,i){1&t&&(v(0,"th",32),M(1," System "),y())}function Ere(t,i){if(1&t&&(v(0,"td",33),M(1),y()),2&t){const e=i.$implicit;k(1),It(" ",e.system," ")}}function Tre(t,i){1&t&&(v(0,"th",32),M(1," Status "),y())}function Mre(t,i){1&t&&(v(0,"span"),Ee(1,"mat-progress-bar",42),y())}function Are(t,i){if(1&t&&(v(0,"span")(1,"span",43),M(2),y()()),2&t){const e=q().$implicit;k(1),A("ngClass",e.status),k(1),tt(e.status)}}function Ire(t,i){if(1&t&&(v(0,"td",33),H(1,Mre,2,0,"span",3),H(2,Are,3,2,"span",3),y()),2&t){const e=i.$implicit;k(1),A("ngIf","Validating"==e.status),k(1),A("ngIf","Validating"!=e.status)}}function Fre(t,i){1&t&&Ee(0,"tr",44)}function Rre(t,i){1&t&&Ee(0,"tr",45)}function Ore(t,i){1&t&&Ee(0,"mat-spinner",46)}let Pre=(()=>{class t{constructor(e){this.terminologyService=e,this.questionnaireUpdated=new ke,this.validatingQuestionnaire=new ke,this.loading=!1,this.validating=!1,this.displayedColumns=["order","readablePath","code","display","system","status"],this.dataSource=new Xh,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 n=this.extractObjects(e);this.dataSource.data=n,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 n=this.dataSource.data.length,r=0;this.asyncForEach(this.dataSource.data,function(){var o=Oi(function*(a){e.loadResults.total++,a.status="Validating",r++,e.validatingProgress=Math.round(r/n*100);try{const s=yield e.terminologyService.lookupConcept(a.code,a.system).pipe(_o()).toPromise();let c=[],l="";for(const d of s.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?(a.status="Inactive",e.loadResults.inactive++):(a.status="Active",e.loadResults.active++))}if((!a.display||!c.includes(a.display))&&(a.serverDisplay=l),"Inactive"==a.status){const d=yield e.getHistoricalAssociationsTarget("900000000000527005",a.code),u=yield e.getHistoricalAssociationsTarget("900000000000530003",a.code),h=yield e.getHistoricalAssociationsTarget("900000000000523009",a.code),f=yield e.getHistoricalAssociationsTarget("900000000000526001",a.code),m=d.concat(u,h,f);a.replacements=m}}catch{a.status="Error",e.loadResults.error++}});return function(a){return o.apply(this,arguments)}}()).then(()=>{this.validating=!1,this.validatingQuestionnaire.emit(!1)})}getHistoricalAssociationsTarget(e,n){var r=this;return Oi(function*(){let o=[];const a=r.terminologyService.translate(e,n);let s=yield Wo(a.pipe(Ye(c=>c)));if(s.parameter)for(const c of s.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,n){return Oi(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 a={order:this.orderCounter,system:e.system,code:e.code,display:e.display,path:n,readablePath:r,status:"Not checked"};o.some(s=>s.system===a.system&&s.code===a.code&&s.display===a.display)||o.push(a)}if(Array.isArray(e))for(let a in e)o=o.concat(this.extractObjects(e[a],`${n}[${a}]`,r));else for(let a in e)e.hasOwnProperty(a)&&(o=o.concat(this.extractObjects(e[a],n?`${n}.${a}`:a,r)));if(e.answerValueSet){const s=new URL(e.answerValueSet).searchParams.get("fhir_vs");if(s){const c=decodeURIComponent(s),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:n+".answerValueSet",readablePath:r+" -> answerValueSet [ECL]",status:"Not checked"})}}return o}replaceInactiveConcept(e,n){this.searchAndReplace(this.questionnaire,e,n,!1)&&(this.loadQuestionnaire(this.questionnaire),this.questionnaireUpdated.emit(this.questionnaire))}searchAndReplace(e,n,r,o){if("object"!=typeof e||null===e)return o;if(e.system==n.system&&e.code==n.code&&e.display==n.display&&(e.system=r.system,e.code=r.code,e.display=r.display,o=!0),e.answerValueSet){const a=new URL(e.answerValueSet),s=a.searchParams.get("fhir_vs");if(s){const c=decodeURIComponent(s),l=new RegExp(`(\\s|^)${n.code}(\\s|$|\\|)`,"g");if(l.test(c)){const d=c.replace(l,`$1${r.code}$2`);o=!0;const u=new RegExp(`\\|\\s*${n.display}\\s*\\|`,"g");if(u.test(d)){const h=d.replace(u,`| ${r.display} |`);a.searchParams.set("fhir_vs",encodeURIComponent(h)),e.answerValueSet=a.toString()}a.searchParams.set("fhir_vs",encodeURIComponent(d)),e.answerValueSet=a.toString()}}}if(Array.isArray(e))for(let a in e)o=this.searchAndReplace(e[a],n,r,o);else for(let a in e)e.hasOwnProperty(a)&&(o=this.searchAndReplace(e[a],n,r,o));return o}}return t.\u0275fac=function(e){return new(e||t)(b(wo))},t.\u0275cmp=je({type:t,selectors:[["app-validate-questionnaire"]],viewQuery:function(e,n){if(1&e&&(st(Yc,5),st(sf,5),st(ore,5)),2&e){let r;xe(r=ye())&&(n.sort=r.first),xe(r=ye())&&(n.tabGroup=r.first),xe(r=ye())&&(n.questionnairesList=r.first)}},inputs:{questionnaire:"questionnaire"},outputs:{questionnaireUpdated:"questionnaireUpdated",validatingQuestionnaire:"validatingQuestionnaire"},features:[Ei],decls:32,vars:9,consts:[[1,"button-container","bottom-spacer"],["class","progress-container",4,"ngIf"],["mat-flat-button","","color","accent",3,"disabled","click"],[4,"ngIf"],["diameter","20",4,"ngIf"],["class","header","id","tab-header",4,"ngIf"],[1,"table-container"],["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,"disabled","click"],["mode","indeterminate"],[1,"pill",3,"ngClass"],["mat-header-row",""],["mat-row",""],["diameter","35",1,"loading-spinner"]],template:function(e,n){1&e&&(v(0,"div",0),H(1,are,4,2,"div",1),v(2,"button",2),X("click",function(){return n.validate()}),H(3,sre,2,0,"span",3),H(4,cre,1,0,"mat-spinner",4),y()(),H(5,hre,12,6,"p",5),v(6,"div",6)(7,"table",7),Ai(8,8),H(9,fre,2,0,"th",9),H(10,mre,2,1,"td",10),Ii(),Ai(11,11),H(12,pre,2,0,"th",9),H(13,gre,2,1,"td",10),Ii(),Ai(14,12),H(15,_re,2,0,"th",9),H(16,bre,2,1,"td",10),Ii(),Ai(17,13),H(18,vre,2,0,"th",9),H(19,xre,3,2,"td",10),Ii(),Ai(20,14),H(21,yre,2,0,"th",9),H(22,Dre,5,4,"td",10),Ii(),Ai(23,15),H(24,Sre,2,0,"th",9),H(25,Ere,2,1,"td",10),Ii(),Ai(26,16),H(27,Tre,2,0,"th",9),H(28,Ire,3,2,"td",10),Ii(),H(29,Fre,1,0,"tr",17),H(30,Rre,1,0,"tr",18),y(),H(31,Ore,1,0,"mat-spinner",19),y()),2&e&&(k(1),A("ngIf",n.validating),k(1),A("disabled",n.validating||!n.questionnaire),k(1),A("ngIf",!n.validating),k(1),A("ngIf",n.validating),k(1),A("ngIf",n.questionnaire),k(2),A("dataSource",n.dataSource),k(22),A("matHeaderRowDef",n.displayedColumns),k(1),A("matRowDefColumns",n.displayedColumns),k(1),A("ngIf",n.loading))},dependencies:[Es,go,hn,yo,is,ba,nre,Pd,$h,Hd,jh,Ud,Vd,Wh,zd,$d,Gh,qh,lf,Yc,dP],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}"]}),t})();const Lre=["questionnairesList"],Nre=["fileInput"];function Bre(t,i){1&t&&(v(0,"span"),M(1," / Validator"),y())}function Vre(t,i){1&t&&(v(0,"span"),M(1," / Questionnaires repository"),y())}function Hre(t,i){if(1&t&&(v(0,"mat-radio-button",15),M(1," Reconnect to last FHIR Server: "),v(2,"span",16),M(3),v(4,"i"),M(5),y(),M(6,'" '),y()()),2&t){const e=q(2);k(3),It(" ",e.selectedFhirServer,' as "'),k(2),tt(e.selectedUserTag)}}function Ure(t,i){if(1&t){const e=ot();v(0,"div",6)(1,"p"),M(2,"What do you want to do today?"),y(),v(3,"mat-radio-group",7),X("ngModelChange",function(r){return Oe(e),Pe(q().step1Response=r)}),v(4,"mat-radio-button",8),M(5,"Edit a questionnaire in the NLM Form Builder"),y(),v(6,"mat-radio-button",9),M(7,"Load an example questionnaire"),y(),v(8,"mat-radio-button",10),M(9,"Upload and validate a questionnaire"),y(),v(10,"mat-radio-button",11),M(11,"Work with your questionnaires from a FHIR server"),y(),H(12,Hre,7,2,"mat-radio-button",12),y(),v(13,"div",13)(14,"button",14),X("click",function(){return Oe(e),Pe(q().advanceFromStep1())}),M(15,"Next"),y()()()}if(2&t){const e=q();k(3),A("ngModel",e.step1Response),k(9),A("ngIf",e.selectedFhirServer&&e.selectedUserTag),k(2),A("disabled",!e.step1Response)}}function zre(t,i){if(1&t&&(v(0,"span"),M(1," Connected to "),v(2,"a",29),M(3),y(),M(4,' as "'),v(5,"i"),M(6),y(),M(7,'" '),y()),2&t){const e=q(2);k(3),tt(e.selectedFhirServer),k(3),tt(e.selectedUserTag)}}function $re(t,i){if(1&t){const e=ot();v(0,"button",14),X("click",function(){return Oe(e),Pe(q(2).openModularQuestionnaireModal())}),M(1," Create Modular Questionnaire "),y()}2&t&&A("disabled",q(2).validating)}function jre(t,i){if(1&t){const e=ot();v(0,"mat-tab",30)(1,"div",24)(2,"app-list-questionnaires",31,32),X("validateQuestionnaire",function(r){return Oe(e),Pe(q(2).switchToValidateTab(r))})("previewQuestionnaire",function(r){return Oe(e),Pe(q(2).switchToPreviewTab(r))}),y()()()}if(2&t){const e=q(2);k(2),A("config",e.listConfig)}}function Wre(t,i){if(1&t){const e=ot();v(0,"div")(1,"div",17),H(2,zre,8,2,"span",4),v(3,"input",18,19),X("change",function(r){return Oe(e),Pe(q().onFileSelected(r))}),y(),v(5,"button",14),X("click",function(){return Oe(e),Pe(Nt(4).click())}),M(6," Upload "),y(),v(7,"button",14),X("click",function(){return Oe(e),Pe(q().saveQuestionnaire())}),M(8,"Download"),y(),H(9,$re,2,1,"button",20),y(),v(10,"mat-tab-group",21),X("selectedIndexChange",function(r){return Oe(e),Pe(q().onTabChange(r))}),H(11,jre,4,1,"mat-tab",22),v(12,"mat-tab",23)(13,"div",24),Ee(14,"div",25),y()(),v(15,"mat-tab",26)(16,"app-validate-questionnaire",27,28),X("questionnaireUpdated",function(r){return Oe(e),Pe(q().loadQuestionnaire(r))})("validatingQuestionnaire",function(r){return Oe(e),Pe(q().validating=r)}),y()()()()}if(2&t){const e=q();k(2),A("ngIf","Manager"==e.mode),k(3),A("disabled",e.validating),k(2),A("disabled",e.validating||!e.questionnaire),k(2),A("ngIf","Manager"==e.mode),k(2),A("ngIf","Manager"===e.mode),k(3),Xe("hidden",!e.questionnaire),k(2),A("questionnaire",e.questionnaire)}}function qre(t,i){if(1&t&&(v(0,"p",19),M(1),y()),2&t){const e=q();k(1),tt(e.studentSubsetDefinition)}}function Xre(t,i){1&t&&Ee(0,"mat-spinner",20)}function Qre(t,i){if(1&t&&(v(0,"div",21)(1,"h4"),M(2,"Validation Results"),y(),v(3,"p",22),M(4),y(),v(5,"p",22),M(6),y(),v(7,"p",22),M(8),y()()),2&t){const e=q();k(4),tt(e.definitionVsMembersValudationResult),k(2),tt(e.definitionValidationResult),k(2),tt(e.membersValidationResult)}}function Yre(t,i){1&t&&(v(0,"th",33),M(1,"ID"),y())}function Kre(t,i){if(1&t&&(v(0,"td",34),M(1),y()),2&t){const e=i.$implicit;k(1),tt(e.referencedComponentId)}}function Zre(t,i){1&t&&(v(0,"th",33),M(1,"Name"),y())}function Jre(t,i){if(1&t&&(v(0,"td",34),M(1),y()),2&t){const e=i.$implicit;k(1),tt(e.name)}}function eoe(t,i){1&t&&(v(0,"th",33),M(1,"Result"),y())}function toe(t,i){if(1&t&&(v(0,"td",34),M(1),y()),2&t){const e=i.$implicit;k(1),tt(e.result.value)}}function ioe(t,i){1&t&&(v(0,"th",33),M(1,"Definition"),y())}function noe(t,i){if(1&t&&(v(0,"td",34),M(1),y()),2&t){const e=i.$implicit;k(1),tt(e.scope.value)}}function roe(t,i){1&t&&Ee(0,"tr",35)}function ooe(t,i){1&t&&Ee(0,"tr",36)}function aoe(t,i){if(1&t&&(v(0,"div",23)(1,"table",24),Ai(2,25),H(3,Yre,2,0,"th",26),H(4,Kre,2,1,"td",27),Ii(),Ai(5,28),H(6,Zre,2,0,"th",26),H(7,Jre,2,1,"td",27),Ii(),Ai(8,29),H(9,eoe,2,0,"th",26),H(10,toe,2,1,"td",27),Ii(),Ai(11,30),H(12,ioe,2,0,"th",26),H(13,noe,2,1,"td",27),Ii(),H(14,roe,1,0,"tr",31),H(15,ooe,1,0,"tr",32),y()()),2&t){const e=q();k(1),A("dataSource",e.studentSubsetMembersDataSource),k(13),A("matHeaderRowDef",e.studentSubsetMembersDisplayedColumns),k(1),A("matRowDefColumns",e.studentSubsetMembersDisplayedColumns)}}const soe=[{path:"",component:pO},{path:"allergies",component:pO},{path:"sandbox",component:dne},{path:"prescription",component:une},{path:"questionnaires",component:(()=>{class t{constructor(e,n,r,o,a,s){this.http=e,this.terminologyService=n,this.fhirService=r,this.questionnaireService=o,this.dialog=a,this._snackBar=s,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/34.3.1/webcomponent/lhc-forms.js",e.onload=()=>{const n=document.createElement("script");n.src="https://clinicaltables.nlm.nih.gov/lforms-versions/34.0.0/fhir/R4/lformsFHIR.min.js",n.onload=()=>{},document.head.appendChild(n)},document.head.appendChild(e)}toggleMode(){"Validator"===this.mode?this.dialog.open(J1,{width:"60%",disableClose:!0}).afterClosed().subscribe(n=>{"save"===n&&(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"))}loadExampleQuestionnaire(){Wo(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)}saveQuestionnaire(){var e=new Blob([JSON.stringify(this.questionnaire,null,2)],{type:"text/plain;charset=utf-8"});qd(e,`${this.questionnaire.title}.json`)}onFileSelected(e){const n=e.target.files?.[0];if(n){const r=new FileReader;r.onload=o=>{try{const a=JSON.parse(o.target?.result);"Questionnaire"===a.resourceType?(this.loadQuestionnaire(a),setTimeout(()=>{"Manager"===this.mode?this.postCurrentQuestionnaire():this.tabGroup.selectedIndex=1},1e3)):this._snackBar.openFromComponent(Hn,{duration:5e3,data:"The file is not a FHIR Questionnaire Resource",panelClass:["red-snackbar"]})}catch(a){console.error(a),this._snackBar.openFromComponent(Hn,{duration:5e3,data:"Invalid JSON file",panelClass:["red-snackbar"]})}},r.readAsText(n)}}postCurrentQuestionnaire(){this.postQuestionnaire(this.questionnaire)}postQuestionnaire(e){this.savingQuestionnaire=!0,this._snackBar.openFromComponent(Hn,{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(_o()).subscribe(n=>{setTimeout(()=>{this.tabGroup.selectedIndex=0,setTimeout(()=>{this.savingQuestionnaire=!1,this.questionnairesList.addQuestionnaire(n)},300)},300),this._snackBar.openFromComponent(Hn,{duration:5e3,data:"Questionnaire saved successfully",panelClass:["green-snackbar"]})},n=>{this.savingQuestionnaire=!1,this._snackBar.openFromComponent(Hn,{duration:5e3,data:"Error saving questionnaire",panelClass:["red-snackbar"]})})}listQuestionnaires(){this.fhirService.getQuestionnairesByTag(this.selectedUserTag).pipe(_o()).subscribe(e=>{},e=>{console.error(e)})}openLoadQuestionnairesDialog(){this.dialog.open(Yne,{width:"70%"}).afterClosed().subscribe(n=>{this.loadQuestionnaire(n)})}setFhirServer(){this.fhirService.setBaseUrl(this.selectedFhirServer),this.fhirService.setUserTag(this.selectedUserTag)}setupFhirServer(){this.dialog.open(J1,{width:"60%"})}switchToValidateTab(e){this.loadQuestionnaire(e),this.tabGroup.selectedIndex=2}switchToPreviewTab(e){this.loadQuestionnaire(e),this.tabGroup.selectedIndex=1}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(J1,{width:"60%"}).afterClosed().subscribe(n=>{n&&(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(uP,{width:"75%"}).afterClosed().subscribe(n=>{n&&this.questionnaireService.generateRootQuestionnaire(n.title,n.questionnaires).then(r=>{this.postQuestionnaire(r)}).catch(r=>{console.error("Error:",r)})})}}return t.\u0275fac=function(e){return new(e||t)(b(Ps),b(wo),b(ff),b(hP),b(Qd),b(Od))},t.\u0275cmp=je({type:t,selectors:[["app-questionnaires-main"]],viewQuery:function(e,n){if(1&e&&(st(Yc,5),st(sf,5),st(Lre,5),st(Nre,5)),2&e){let r;xe(r=ye())&&(n.sort=r.first),xe(r=ye())&&(n.tabGroup=r.first),xe(r=ye())&&(n.questionnairesList=r.first),xe(r=ye())&&(n.uploadInput=r.first)}},decls:11,vars:4,consts:[[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,"ngModel","ngModelChange"],["value","edit"],["value","example"],["value","validate"],["value","repository"],["value","reconnect",4,"ngIf"],[1,"step-button-container"],["mat-flat-button","","color","accent",3,"disabled","click"],["value","reconnect"],[1,"muted"],[1,"button-container","bottom-spacer"],["type","file","hidden","",3,"change"],["fileInput",""],["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,"questionnaire","questionnaireUpdated","validatingQuestionnaire"],["validateQuestionnaire",""],["href","selectedFhirServer"],["label","My Questionnaires"],[3,"config","validateQuestionnaire","previewQuestionnaire"],["questionnairesList",""]],template:function(e,n){1&e&&(v(0,"div",0)(1,"h2",1),M(2," SNOMED CT Terminology Bindings Validator - FHIR Questionnaire Manager "),y(),v(3,"div",2)(4,"span")(5,"a",3),X("click",function(){return n.mode="step1"}),M(6,"Home"),y(),H(7,Bre,2,0,"span",4),H(8,Vre,2,0,"span",4),y()()(),H(9,Ure,16,3,"div",5),H(10,Wre,18,8,"div",4)),2&e&&(k(7),A("ngIf","Validator"==n.mode),k(1),A("ngIf","Manager"==n.mode),k(1),A("ngIf","step1"==n.mode),k(1),A("ngIf","Manager"==n.mode||"Validator"==n.mode))},dependencies:[hn,yo,ya,f0,sf,cs,K1,Z1,fP,Pre],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}"]}),t})()},{path:"implementation-course/subset-validator",component:(()=>{class t{constructor(e,n,r){this.http=e,this.terminologyService=n,this._snackBar=r,this.studentSubsetMembersDisplayedColumns=["referencedComponentId","name","result","scope"],this.studentSubsetMembersDataSource=new Xh,this.studentSubsetmembers=[],this.studentSubsetDefinition="",this.definitionValidationResult="",this.definitionVsMembersValudationResult="",this.membersValidationResult="",this.validatingMembers=!1,this.validatingDefinition=!1,this.loading=!1,this.ok="\u2705",this.error="\u{1f7e5}",this.referenceData=[],this.moduleDReferenceData=[{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"}],this.referenceDataDisplayedColumns=["referencedComponentId","name"],this.referenceDataDataSource=new Xh(this.referenceData),this.referenceDefinition="",this.moduleDReferenceDefinition="< 185823004 |Finding of skin texture (finding)|",this.selectedAssignment="Module D"}ngAfterViewInit(){this.setAssignment("Module D")}setAssignment(e){"Module D"===e&&(this.referenceData=this.moduleDReferenceData,this.referenceDefinition=this.moduleDReferenceDefinition)}validateSubsetMembers(){var e=this;return Oi(function*(){e.validatingMembers=!0,e.membersValidationResult="",e.studentSubsetDefinition&&e.validateExpansion();let n=0,r=0;const a=(yield e.terminologyService.expandValueSet(e.studentSubsetDefinition,"").toPromise()).expansion.contains.map(d=>d.code);a.sort((d,u)=>d.localeCompare(u));const s=e.studentSubsetMembersDataSource.data.map(d=>d.referencedComponentId);s.sort((d,u)=>d.localeCompare(u)),e.definitionVsMembersValudationResult=a.length===s.length&&a.every((d,u)=>d===s[u])?`${e.ok} The members list contains exactly the same concepts as the definition expansion`:`${e.error} The members list does not contain exactly the same concepts as the definition expansion`,e.studentSubsetMembersDataSource.data.forEach(d=>{e.referenceData.find(h=>h.referencedComponentId===d.referencedComponentId)?(d.result={value:"Correct",message:""},n++):(d.result={value:"Not acceptable",message:"Subset member not found in reference data"},r++)}),e.validatingMembers=!1,e.membersValidationResult=`${r>0?e.error:e.ok} The student Members list contains ${n} correct concepts, and ${r} incorrect concepts, based on the exercise reference data`})()}validateExpansion(){var e=this;return Oi(function*(){e.validatingDefinition=!0,e.definitionValidationResult="";let n=yield e.terminologyService.expandValueSet(e.studentSubsetDefinition,"").toPromise(),r=yield e.terminologyService.expandValueSet(e.referenceDefinition,"").toPromise(),o=0;e.studentSubsetMembersDataSource.data.forEach(c=>{r.expansion.contains.find(d=>d.code===c.referencedComponentId)?c.scope={value:"Not in expansion",message:""}:(c.scope={value:"In expansion",message:""},o++)});const a=Math.round(o/n.expansion.contains.length*100);e.validatingDefinition=!1,e.definitionValidationResult=`${o>0?e.error:e.ok} The student ECL Definition Expasion contains ${o} concepts that out of scope from expected answer (${a}%)`})()}onSubsetmembersFileSelected(e){this.studentSubsetmembers=[],this.studentSubsetMembersDataSource=new Xh,this.studentSubsetMembersDataSource.sort=this.sort,this.loading=!0;const n=e.target.files?.[0];if(n){const r=new FileReader;r.onload=o=>{try{const s=r.result.split("\n"),c=s[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.studentSubsetMembersDataSource.data=u,this.loading=!1}catch(a){this._snackBar.openFromComponent(Hn,{duration:5e3,data:"Error reading file: "+a.message,panelClass:["red-snackbar"]}),this.loading=!1}},r.onerror=o=>{this._snackBar.openFromComponent(Hn,{duration:5e3,data:"Error reading file: "+o,panelClass:["red-snackbar"]}),this.loading=!1},r.readAsText(n)}else this.loading=!1}onDefinitionFileSelected(e){this.studentSubsetDefinition="",this.loading=!0;const n=e.target.files?.[0];if(n){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(a){this._snackBar.openFromComponent(Hn,{duration:5e3,data:"Error reading file: "+a.message,panelClass:["red-snackbar"]}),this.loading=!1}},r.onerror=o=>{this._snackBar.openFromComponent(Hn,{duration:5e3,data:"Error reading file: "+o,panelClass:["red-snackbar"]}),this.loading=!1},r.readAsText(n)}else this.loading=!1}}return t.\u0275fac=function(e){return new(e||t)(b(Ps),b(wo),b(Od))},t.\u0275cmp=je({type:t,selectors:[["app-subset-validator"]],viewQuery:function(e,n){if(1&e&&st(Yc,5),2&e){let r;xe(r=ye())&&(n.sort=r.first)}},decls:43,vars:8,consts:[[1,"layout-container"],[1,"left-column"],[1,"upload-controls"],["class","terminal-style",4,"ngIf"],["type","file",2,"display","none",3,"change"],["fileInput",""],["fileInputDefinition",""],[1,"buttons-panel"],["mat-flat-button","","color","primary",3,"click"],["mat-flat-button","","color","primary",3,"disabled","click"],["class","spinner","diameter","30",4,"ngIf"],["class","blue-rounded-div",4,"ngIf"],["class","table-container",4,"ngIf"],[1,"right-column"],["mat-flat-button","","color","accent",3,"matMenuTriggerFor"],[1,"wide-menu"],["demosMenu","matMenu"],["mat-menu-item","",3,"click"],[1,"instructions"],[1,"terminal-style"],["diameter","30",1,"spinner"],[1,"blue-rounded-div"],[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"],["matColumnDef","scope"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(e,n){if(1&e){const r=ot();v(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3"),M(4,"Subset Members Validator"),y(),v(5,"p"),M(6),y(),H(7,qre,2,1,"p",3),v(8,"input",4,5),X("change",function(a){return n.onSubsetmembersFileSelected(a)}),y(),v(10,"input",4,6),X("change",function(a){return n.onDefinitionFileSelected(a)}),y(),v(12,"div",7)(13,"button",8),X("click",function(){return Oe(r),Pe(Nt(11).click())}),M(14,"Upload Definition File"),y(),v(15,"button",8),X("click",function(){return Oe(r),Pe(Nt(9).click())}),M(16,"Upload Members File"),y(),v(17,"button",9),X("click",function(){return n.validateSubsetMembers()}),M(18,"Validate"),y(),H(19,Xre,1,0,"mat-spinner",10),y(),H(20,Qre,9,3,"div",11),y(),H(21,aoe,16,3,"div",12),y(),v(22,"div",13)(23,"h3"),M(24,"Assignment"),y(),v(25,"button",14),M(26),y(),v(27,"mat-menu",15,16)(29,"button",17),X("click",function(){return n.setAssignment("moduleD")}),M(30,"Module D Assignment"),y()(),v(31,"h3"),M(32,"Instructions"),y(),v(33,"div",18)(34,"ol")(35,"li"),M(36,"Select assignment"),y(),v(37,"li"),M(38,"Upload definition file"),y(),v(39,"li"),M(40,"Upload members file"),y(),v(41,"li"),M(42,"Click validate"),y()()()()()}if(2&e){const r=Nt(28);k(6),It("Validating against ",n.terminologyService.getFhirUrlParam(),""),k(1),A("ngIf",n.studentSubsetDefinition),k(10),A("disabled",!n.studentSubsetDefinition||!n.studentSubsetMembersDataSource.data.length),k(2),A("ngIf",n.loading||n.validatingMembers||n.validatingDefinition),k(1),A("ngIf",n.definitionValidationResult||n.membersValidationResult),k(1),A("ngIf",!n.loading&&n.studentSubsetMembersDataSource.data.length),k(4),A("matMenuTriggerFor",r),k(1),It("Selected assignment: ",n.selectedAssignment,"")}},dependencies:[hn,yo,$c,va,jc,Pd,$h,Hd,jh,Ud,Vd,Wh,zd,$d,Gh,qh],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}.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:smaller}.blue-rounded-div[_ngcontent-%COMP%]{border-radius:10px;background-color:#4d7fb4;padding:10px;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}"]}),t})()}];let coe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[QA.forRoot(soe,{useHash:!0}),QA]}),t})();const loe=[{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 doe=(()=>{class t{constructor(){}getCodingSpec(){return loe}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Mt,mf={version:"0.19.3"},In=1200,Kc=1252,uoe=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],ew={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},w0=function(t){-1!=uoe.indexOf(t)&&(Kc=ew[0]=t)},Co=function(t){In=t,w0(t)};var pf=function(i){return String.fromCharCode(i)},tw=function(i){return String.fromCharCode(i)},on=null,_P=!0,ko="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function D0(t){for(var i="",e=0,n=0,r=0,o=0,a=0,s=0,c=0,l=0;l>2,a=(3&e)<<4|(n=t.charCodeAt(l++))>>4,s=(15&n)<<2|(r=t.charCodeAt(l++))>>6,c=63&r,isNaN(n)?s=c=64:isNaN(r)&&(c=64),i+=ko.charAt(o)+ko.charAt(a)+ko.charAt(s)+ko.charAt(c);return i}function eo(t){var i="",o=0,a=0,s=0,c=0;t=t.replace(/^data:([^\/]+\/[^\/]+)?;base64\,/,"").replace(/[^\w\+\/\=]/g,"");for(var l=0;l>4),64!==(s=ko.indexOf(t.charAt(l++)))&&(i+=String.fromCharCode((15&a)<<4|s>>2)),64!==(c=ko.indexOf(t.charAt(l++)))&&(i+=String.fromCharCode((3&s)<<6|c));return i}var Vt=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),Ca=function(){if(typeof Buffer<"u"){var t=!Buffer.from;if(!t)try{Buffer.from("foo","utf8")}catch{t=!0}return t?function(i,e){return e?new Buffer(i,e):new Buffer(i)}:Buffer.from.bind(Buffer)}return function(){}}(),gf=function(){if(typeof Buffer>"u")return!1;var t=Ca([65,0]);return!!t&&1==t.toString("utf16le").length}();function qs(t){return Vt?Buffer.alloc?Buffer.alloc(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}function bP(t){return Vt?Buffer.allocUnsafe?Buffer.allocUnsafe(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}var kr=function(i){return Vt?Ca(i,"binary"):i.split("").map(function(e){return 255&e.charCodeAt(0)})};function _f(t){if(typeof ArrayBuffer>"u")return kr(t);for(var i=new ArrayBuffer(t.length),e=new Uint8Array(i),n=0;n!=t.length;++n)e[n]=255&t.charCodeAt(n);return i}function ka(t){if(Array.isArray(t))return t.map(function(n){return String.fromCharCode(n)}).join("");for(var i=[],e=0;e=0;)i+=t.charAt(e--);return i}function qo(t,i){var e=""+t;return e.length>=i?e:ri("0",i-e.length)+e}function nw(t,i){var e=""+t;return e.length>=i?e:ri(" ",i-e.length)+e}function S0(t,i){var e=""+t;return e.length>=i?e:e+ri(" ",i-e.length)}var vP=Math.pow(2,32);function Jd(t,i){return t>vP||t<-vP?function boe(t,i){var e=""+Math.round(t);return e.length>=i?e:ri("0",i-e.length)+e}(t,i):function voe(t,i){var e=""+t;return e.length>=i?e:ri("0",i-e.length)+e}(Math.round(t),i)}function E0(t,i){return t.length>=7+(i=i||0)&&103==(32|t.charCodeAt(i))&&101==(32|t.charCodeAt(i+1))&&110==(32|t.charCodeAt(i+2))&&101==(32|t.charCodeAt(i+3))&&114==(32|t.charCodeAt(i+4))&&97==(32|t.charCodeAt(i+5))&&108==(32|t.charCodeAt(i+6))}var xP=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],rw=[["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"]],ut={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 "'},yP={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},yoe={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 T0(t,i,e){for(var n=t<0?-1:1,r=t*n,o=0,a=1,s=0,c=1,l=0,d=0,u=Math.floor(r);li&&(l>i?(d=c,s=o):(d=l,s=a)),!e)return[0,n*s,d];var h=Math.floor(n*s/d);return[h,n*s-h*d,d]}function Xs(t,i,e){if(t>2958465||t<0)return null;var n=0|t,r=Math.floor(86400*(t-n)),o=0,a=[],s={D:n,T:r,u:86400*(t-n)-r,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(s.u)<1e-6&&(s.u=0),i&&i.date1904&&(n+=1462),s.u>.9999&&(s.u=0,86400==++r&&(s.T=r=0,++n,++s.D)),60===n)a=e?[1317,10,29]:[1900,2,29],o=3;else if(0===n)a=e?[1317,8,29]:[1900,1,0],o=6;else{n>60&&--n;var c=new Date(1900,0,1);c.setDate(c.getDate()+n-1),a=[c.getFullYear(),c.getMonth()+1,c.getDate()],o=c.getDay(),n<60&&(o=(o+6)%7),e&&(o=function Eoe(t,i){i[0]-=581;var e=t.getDay();return t<60&&(e=(e+6)%7),e}(c,a))}return s.y=a[0],s.m=a[1],s.d=a[2],s.S=r%60,r=Math.floor(r/60),s.M=r%60,r=Math.floor(r/60),s.H=r,s.q=o,s}var wP=new Date(1899,11,31,0,0,0),woe=wP.getTime(),Coe=new Date(1900,2,1,0,0,0);function CP(t,i){var e=t.getTime();return i?e-=1262304e5:t>=Coe&&(e+=864e5),(e-(woe+6e4*(t.getTimezoneOffset()-wP.getTimezoneOffset())))/864e5}function ow(t){return-1==t.indexOf(".")?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Zc(t,i){switch(typeof t){case"string":return t;case"boolean":return t?"TRUE":"FALSE";case"number":return(0|t)===t?t.toString(10):function vf(t){var e,i=Math.floor(Math.log(Math.abs(t))*Math.LOG10E);return e=i>=-4&&i<=-1?t.toPrecision(10+i):Math.abs(i)<=9?function Doe(t){var i=t<0?12:11,e=ow(t.toFixed(12));return e.length<=i||(e=t.toPrecision(10)).length<=i?e:t.toExponential(5)}(t):10===i?t.toFixed(10).substr(0,12):function Soe(t){var i=ow(t.toFixed(11));return i.length>(t<0?12:11)||"0"===i||"-0"===i?t.toPrecision(6):i}(t),ow(function koe(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 Lr(14,CP(t,i&&i.date1904),i)}throw new Error("unsupported value in General format: "+t)}function Toe(t,i,e,n){var c,r="",o=0,a=0,s=e.y,l=0;switch(t){case 98:s=e.y+543;case 121:switch(i.length){case 1:case 2:c=s%100,l=2;break;default:c=s%1e4,l=4}break;case 109:switch(i.length){case 1:case 2:c=e.m,l=i.length;break;case 3:return rw[e.m-1][1];case 5:return rw[e.m-1][0];default:return rw[e.m-1][2]}break;case 100:switch(i.length){case 1:case 2:c=e.d,l=i.length;break;case 3:return xP[e.q][0];default:return xP[e.q][1]}break;case 104:switch(i.length){case 1:case 2:c=1+(e.H+11)%12,l=i.length;break;default:throw"bad hour format: "+i}break;case 72:switch(i.length){case 1:case 2:c=e.H,l=i.length;break;default:throw"bad hour format: "+i}break;case 77:switch(i.length){case 1:case 2:c=e.M,l=i.length;break;default:throw"bad minute format: "+i}break;case 115:if("s"!=i&&"ss"!=i&&".0"!=i&&".00"!=i&&".000"!=i)throw"bad second format: "+i;return 0!==e.u||"s"!=i&&"ss"!=i?(a=n>=2?3===n?1e3:100:1===n?10:1,(o=Math.round(a*(e.S+e.u)))>=60*a&&(o=0),"s"===i?0===o?"0":""+o/a:(r=qo(o,2+n),"ss"===i?r.substr(0,2):"."+r.substr(2,i.length-1))):qo(e.S,i.length);case 90:switch(i){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: "+i}l=3===i.length?1:2;break;case 101:c=s,l=1}return l>0?qo(c,l):""}function ls(t){if(t.length<=3)return t;for(var e=t.length%3,n=t.substr(0,e);e!=t.length;e+=3)n+=(n.length>0?",":"")+t.substr(e,3);return n}var kP=/%/g;function DP(t,i){var e,n=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(0==i)return"0.0E+0";if(i<0)return"-"+DP(t,-i);var r=t.indexOf(".");-1===r&&(r=t.indexOf("E"));var o=Math.floor(Math.log(i)*Math.LOG10E)%r;if(o<0&&(o+=r),-1===(e=(i/Math.pow(10,o)).toPrecision(n+1+(r+o)%r)).indexOf("e")){var a=Math.floor(Math.log(i)*Math.LOG10E);for(-1===e.indexOf(".")?e=e.charAt(0)+"."+e.substr(1)+"E+"+(a-e.length+o):e+="E+"+(a-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(s,c,l,d){return c+l+d.substr(0,(r+o)%r)+"."+d.substr(o)+"E"})}else e=i.toExponential(n);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 SP=/# (\?+)( ?)\/( ?)(\d+)/,EP=/^#*0*\.([0#]+)/,TP=/\).*[0#]/,MP=/\(###\) ###\\?-####/;function Dr(t){for(var e,i="",n=0;n!=t.length;++n)switch(e=t.charCodeAt(n)){case 35:break;case 63:i+=" ";break;case 48:i+="0";break;default:i+=String.fromCharCode(e)}return i}function AP(t,i){var e=Math.pow(10,i);return""+Math.round(t*e)/e}function IP(t,i){var e=t-Math.floor(t),n=Math.pow(10,i);return i<(""+Math.round(e*n)).length?0:Math.round(e*n)}function Do(t,i,e){if(40===t.charCodeAt(0)&&!i.match(TP)){var n=i.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return e>=0?Do("n",n,e):"("+Do("n",n,-e)+")"}if(44===i.charCodeAt(i.length-1))return function Aoe(t,i,e){for(var n=i.length-1;44===i.charCodeAt(n-1);)--n;return ds(t,i.substr(0,n),e/Math.pow(10,3*(i.length-n)))}(t,i,e);if(-1!==i.indexOf("%"))return function Moe(t,i,e){var n=i.replace(kP,""),r=i.length-n.length;return ds(t,n,e*Math.pow(10,2*r))+ri("%",r)}(t,i,e);if(-1!==i.indexOf("E"))return DP(i,e);if(36===i.charCodeAt(0))return"$"+Do(t,i.substr(" "==i.charAt(1)?2:1),e);var r,o,a,s,c=Math.abs(e),l=e<0?"-":"";if(i.match(/^00+$/))return l+Jd(c,i.length);if(i.match(/^[#?]+$/))return"0"===(r=Jd(e,0))&&(r=""),r.length>i.length?r:Dr(i.substr(0,i.length-r.length))+r;if(o=i.match(SP))return function Ioe(t,i,e){var n=parseInt(t[4],10),r=Math.round(i*n),o=Math.floor(r/n),a=r-o*n,s=n;return e+(0===o?"":""+o)+" "+(0===a?ri(" ",t[1].length+1+t[4].length):nw(a,t[1].length)+t[2]+"/"+t[3]+qo(s,t[4].length))}(o,c,l);if(i.match(/^#+0+$/))return l+Jd(c,i.length-i.indexOf("0"));if(o=i.match(EP))return r=AP(e,o[1].length).replace(/^([^\.]+)$/,"$1."+Dr(o[1])).replace(/\.$/,"."+Dr(o[1])).replace(/\.(\d*)$/,function(m,g){return"."+g+ri("0",Dr(o[1]).length-g.length)}),-1!==i.indexOf("0.")?r:r.replace(/^0\./,".");if(i=i.replace(/^#+([0.])/,"$1"),o=i.match(/^(0*)\.(#*)$/))return l+AP(c,o[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=i.match(/^#{1,3},##0(\.?)$/))return l+ls(Jd(c,0));if(o=i.match(/^#,##0\.([#0]*0)$/))return e<0?"-"+Do(t,i,-e):ls(""+(Math.floor(e)+function Roe(t,i){return i<(""+Math.round((t-Math.floor(t))*Math.pow(10,i))).length?1:0}(e,o[1].length)))+"."+qo(IP(e,o[1].length),o[1].length);if(o=i.match(/^#,#*,#0/))return Do(t,i.replace(/^#,#*,/,""),e);if(o=i.match(/^([0#]+)(\\?-([0#]+))+$/))return r=Zd(Do(t,i.replace(/[\\-]/g,""),e)),a=0,Zd(Zd(i.replace(/\\/g,"")).replace(/[0#]/g,function(m){return a-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?qo(0,3-m.length):"")+m})+"."+qo(a,o[1].length);switch(i){case"###,##0.00":return Do(t,"#,##0.00",e);case"###,###":case"##,###":case"#,###":var f=ls(Jd(c,0));return"0"!==f?l+f:"";case"###,###.00":return Do(t,"###,##0.00",e).replace(/^0\./,".");case"#,###.00":return Do(t,"#,##0.00",e).replace(/^0\./,".")}throw new Error("unsupported format |"+i+"|")}function FP(t,i){var e,n=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(0==i)return"0.0E+0";if(i<0)return"-"+FP(t,-i);var r=t.indexOf(".");-1===r&&(r=t.indexOf("E"));var o=Math.floor(Math.log(i)*Math.LOG10E)%r;if(o<0&&(o+=r),!(e=(i/Math.pow(10,o)).toPrecision(n+1+(r+o)%r)).match(/[Ee]/)){var a=Math.floor(Math.log(i)*Math.LOG10E);-1===e.indexOf(".")?e=e.charAt(0)+"."+e.substr(1)+"E+"+(a-e.length+o):e+="E+"+(a-o),e=e.replace(/\+-/,"-")}e=e.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(s,c,l,d){return c+l+d.substr(0,(r+o)%r)+"."+d.substr(o)+"E"})}else e=i.toExponential(n);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 Da(t,i,e){if(40===t.charCodeAt(0)&&!i.match(TP)){var n=i.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return e>=0?Da("n",n,e):"("+Da("n",n,-e)+")"}if(44===i.charCodeAt(i.length-1))return function Poe(t,i,e){for(var n=i.length-1;44===i.charCodeAt(n-1);)--n;return ds(t,i.substr(0,n),e/Math.pow(10,3*(i.length-n)))}(t,i,e);if(-1!==i.indexOf("%"))return function Loe(t,i,e){var n=i.replace(kP,""),r=i.length-n.length;return ds(t,n,e*Math.pow(10,2*r))+ri("%",r)}(t,i,e);if(-1!==i.indexOf("E"))return FP(i,e);if(36===i.charCodeAt(0))return"$"+Da(t,i.substr(" "==i.charAt(1)?2:1),e);var r,o,a,s,c=Math.abs(e),l=e<0?"-":"";if(i.match(/^00+$/))return l+qo(c,i.length);if(i.match(/^[#?]+$/))return r=""+e,0===e&&(r=""),r.length>i.length?r:Dr(i.substr(0,i.length-r.length))+r;if(o=i.match(SP))return function Foe(t,i,e){return e+(0===i?"":""+i)+ri(" ",t[1].length+2+t[4].length)}(o,c,l);if(i.match(/^#+0+$/))return l+qo(c,i.length-i.indexOf("0"));if(o=i.match(EP))return r=(r=(""+e).replace(/^([^\.]+)$/,"$1."+Dr(o[1])).replace(/\.$/,"."+Dr(o[1]))).replace(/\.(\d*)$/,function(m,g){return"."+g+ri("0",Dr(o[1]).length-g.length)}),-1!==i.indexOf("0.")?r:r.replace(/^0\./,".");if(i=i.replace(/^#+([0.])/,"$1"),o=i.match(/^(0*)\.(#*)$/))return l+(""+c).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=i.match(/^#{1,3},##0(\.?)$/))return l+ls(""+c);if(o=i.match(/^#,##0\.([#0]*0)$/))return e<0?"-"+Da(t,i,-e):ls(""+e)+"."+ri("0",o[1].length);if(o=i.match(/^#,#*,#0/))return Da(t,i.replace(/^#,#*,/,""),e);if(o=i.match(/^([0#]+)(\\?-([0#]+))+$/))return r=Zd(Da(t,i.replace(/[\\-]/g,""),e)),a=0,Zd(Zd(i.replace(/\\/g,"")).replace(/[0#]/g,function(m){return a-1||"\\"==e&&"-"==t.charAt(i+1)&&"0#".indexOf(t.charAt(i+2))>-1););break;case"?":for(;t.charAt(++i)===e;);break;case"*":++i,(" "==t.charAt(i)||"*"==t.charAt(i))&&++i;break;case"(":case")":++i;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;i-1;);break;default:++i}return!1}var OP=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function PP(t,i){if(null==i)return!1;var e=parseFloat(i[2]);switch(i[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 Lr(t,i,e){null==e&&(e={});var n="";switch(typeof t){case"string":n="m/d/yy"==t&&e.dateNF?e.dateNF:t;break;case"number":null==(n=14==t&&e.dateNF?e.dateNF:(null!=e.table?e.table:ut)[t])&&(n=e.table&&e.table[yP[t]]||ut[yP[t]]),null==n&&(n=yoe[t]||"General")}if(E0(n,0))return Zc(i,e);i instanceof Date&&(i=CP(i,e.date1904));var r=function Voe(t,i){var e=function Noe(t){for(var i=[],e=!1,n=0,r=0;n-1&&--n,e.length>4)throw new Error("cannot find right format for |"+e.join("|")+"|");if("number"!=typeof i)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=i>0?e[0]:i<0?e[1]:e[2];if(-1===e[0].indexOf("[")&&-1===e[1].indexOf("["))return[n,o];if(null!=e[0].match(/\[[=<>]/)||null!=e[1].match(/\[[=<>]/)){var a=e[0].match(OP),s=e[1].match(OP);return PP(i,a)?[n,e[0]]:PP(i,s)?[n,e[1]]:[n,e[null!=a&&null!=s?2:1]]}return[n,o]}(n,i);if(E0(r[1]))return Zc(i,e);if(!0===i)i="TRUE";else if(!1===i)i="FALSE";else if(""===i||null==i)return"";return function Boe(t,i,e,n){for(var l,d,u,r=[],o="",a=0,s="",c="t",h="H";a=12?t.charAt(a+2):s),g.t="T",h="h",a+=3):"AM/PM"===t.substr(a,5).toUpperCase()?(null!=l&&(g.v=l.H>=12?"PM":"AM"),g.t="T",a+=5,h="h"):"\u4e0a\u5348/\u4e0b\u5348"===t.substr(a,5).toUpperCase()?(null!=l&&(g.v=l.H>=12?"\u4e0b\u5348":"\u4e0a\u5348"),g.t="T",a+=5,h="h"):(g.t="t",++a),null==l&&"T"===g.t)return"";r[r.length]=g,c=s;break;case"[":for(o=s;"]"!==t.charAt(a++)&&a-1&&(o=(o.match(/\$([^-\[\]]*)/)||[])[1]||"$",Qs(t)||(r[r.length]={t:"t",v:o}));break;case".":if(null!=l){for(o=s;++a-1;)o+=s;r[r.length]={t:"n",v:o};break;case"?":for(o=s;t.charAt(++a)===s;)o+=s;r[r.length]={t:s,v:o},c=s;break;case"*":++a,(" "==t.charAt(a)||"*"==t.charAt(a))&&++a;break;case"(":case")":r[r.length]={t:1===n?"t":s,v:s},++a;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(o=s;a-1;)o+=t.charAt(a);r[r.length]={t:"D",v:o};break;case" ":r[r.length]={t:s,v:s},++a;break;case"$":r[r.length]={t:"t",v:"$"},++a;break;default:if(-1===",$-+/():!^&'~{}<>=\u20acacfijklopqrtuvwxzP".indexOf(s))throw new Error("unrecognized character "+s+" in "+t);r[r.length]={t:"t",v:s},++a}var w,p=0,_=0;for(a=r.length-1,c="t";a>=0;--a)switch(r[a].t){case"h":case"H":r[a].t=h,c="h",p<1&&(p=1);break;case"s":(w=r[a].v.match(/\.0+$/))&&(_=Math.max(_,w[0].length-1)),p<3&&(p=3);case"d":case"y":case"M":case"e":c=r[a].t;break;case"m":"s"===c&&(r[a].t="M",p<2&&(p=2));break;case"X":break;case"Z":p<1&&r[a].v.match(/[Hh]/)&&(p=1),p<2&&r[a].v.match(/[Mm]/)&&(p=2),p<3&&r[a].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 E,x="";for(a=0;a0){40==x.charCodeAt(0)?(L=i<0&&45===x.charCodeAt(0)?-i:i,D=ds("n",x,L)):(D=ds("n",x,L=i<0&&n>1?-i:i),L<0&&r[0]&&"t"==r[0].t&&(D=D.substr(1),r[0].v="-"+r[0].v)),E=D.length-1;var B=r.length;for(a=0;a-1){B=a;break}var N=r.length;if(B===r.length&&-1===D.indexOf("E")){for(a=r.length-1;a>=0;--a)null==r[a]||-1==="n?".indexOf(r[a].t)||(E>=r[a].v.length-1?r[a].v=D.substr(1+(E-=r[a].v.length),r[a].v.length):E<0?r[a].v="":(r[a].v=D.substr(0,E+1),E=-1),r[a].t="t",N=a);E>=0&&N=0;--a)if(null!=r[a]&&-1!=="n?".indexOf(r[a].t)){for(d=r[a].v.indexOf(".")>-1&&a===B?r[a].v.indexOf(".")-1:r[a].v.length-1,W=r[a].v.substr(d+1);d>=0;--d)E>=0&&("0"===r[a].v.charAt(d)||"#"===r[a].v.charAt(d))&&(W=D.charAt(E--)+W);r[a].v=W,r[a].t="t",N=a}for(E>=0&&N-1&&a===B?r[a].v.indexOf(".")+1:0,W=r[a].v.substr(0,d);d-1&&(r[a].v=ds(r[a].t,r[a].v,L=n>1&&i<0&&a>0&&"-"===r[a-1].v?-i:i),r[a].t="t");var j="";for(a=0;a!==r.length;++a)null!=r[a]&&(j+=r[a].v);return j}(r[1],i,e,r[0])}function aw(t,i){if("number"!=typeof i){i=+i||-1;for(var e=0;e<392;++e)if(null!=ut[e]){if(ut[e]==t){i=e;break}}else i<0&&(i=e);i<0&&(i=391)}return ut[i]=t,i}function xf(t){for(var i=0;392!=i;++i)void 0!==t[i]&&aw(t[i],i)}function eu(){ut=function xoe(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 NP=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g,$oe={"d.m":"d\\.m"};function Ys(t,i){return aw($oe[t]||t,i)}var us,BP=function(){var t={version:"1.2.0"},e=function i(){for(var D=0,B=new Array(256),N=0;256!=N;++N)B[N]=D=1&(D=1&(D=1&(D=1&(D=1&(D=1&(D=1&(D=1&(D=N)?-306674912^D>>>1:D>>>1)?-306674912^D>>>1:D>>>1)?-306674912^D>>>1:D>>>1)?-306674912^D>>>1:D>>>1)?-306674912^D>>>1:D>>>1)?-306674912^D>>>1:D>>>1)?-306674912^D>>>1:D>>>1)?-306674912^D>>>1:D>>>1;return typeof Int32Array<"u"?new Int32Array(B):B}(),r=function n(D){var B=0,N=0,j=0,Z=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(j=0;256!=j;++j)Z[j]=D[j];for(j=0;256!=j;++j)for(N=D[j],B=256+j;B<4096;B+=256)N=Z[B]=N>>>8^D[255&N];var U=[];for(j=1;16!=j;++j)U[j-1]=typeof Int32Array<"u"&&"function"==typeof Z.subarray?Z.subarray(256*j,256*j+256):Z.slice(256*j,256*j+256);return U}(e),o=r[0],a=r[1],s=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],_=r[12],w=r[13],x=r[14];return t.table=e,t.bstr=function E(D,B){for(var N=-1^B,j=0,Z=D.length;j>>8^e[255&(N^D.charCodeAt(j++))];return~N},t.buf=function W(D,B){for(var N=-1^B,j=D.length-15,Z=0;Z>8&255]^_[D[Z++]^N>>16&255]^p[D[Z++]^N>>>24]^g[D[Z++]]^m[D[Z++]]^f[D[Z++]]^h[D[Z++]]^u[D[Z++]]^d[D[Z++]]^l[D[Z++]]^c[D[Z++]]^s[D[Z++]]^a[D[Z++]]^o[D[Z++]]^e[D[Z++]];for(j+=15;Z>>8^e[255&(N^D[Z++])];return~N},t.str=function L(D,B){for(var N=-1^B,j=0,Z=D.length,U=0,me=0;j>>8^e[255&(N^U)]:U<2048?N=(N=N>>>8^e[255&(N^(192|U>>6&31))])>>>8^e[255&(N^(128|63&U))]:U>=55296&&U<57344?(U=64+(1023&U),me=1023&D.charCodeAt(j++),N=(N=(N=(N=N>>>8^e[255&(N^(240|U>>8&7))])>>>8^e[255&(N^(128|U>>2&63))])>>>8^e[255&(N^(128|me>>6&15|(3&U)<<4))])>>>8^e[255&(N^(128|63&me))]):N=(N=(N=N>>>8^e[255&(N^(224|U>>12&15))])>>>8^e[255&(N^(128|U>>6&63))])>>>8^e[255&(N^(128|63&U))];return~N},t}(),lt=function(){var c,i={};function n(C){if("/"==C.charAt(C.length-1))return-1===C.slice(0,-1).indexOf("/")?C:n(C.slice(0,-1));var R=C.lastIndexOf("/");return-1===R?C:C.slice(0,R+1)}function r(C){if("/"==C.charAt(C.length-1))return r(C.slice(0,-1));var R=C.lastIndexOf("/");return-1===R?C:C.slice(R+1)}function o(C,R){"string"==typeof R&&(R=new Date(R));var S=R.getHours();S=(S=S<<6|R.getMinutes())<<5|R.getSeconds()>>>1,C.write_shift(2,S);var I=R.getFullYear()-1980;I=(I=I<<4|R.getMonth()+1)<<5|R.getDate(),C.write_shift(2,I)}function s(C){Rn(C,0);for(var R={},S=0;C.l<=C.length-4;){var I=C.read_shift(2),O=C.read_shift(2),P=C.l+O,ee={};switch(I){case 21589:1&(S=C.read_shift(1))&&(ee.mtime=C.read_shift(4)),O>5&&(2&S&&(ee.atime=C.read_shift(4)),4&S&&(ee.ctime=C.read_shift(4))),ee.mtime&&(ee.mt=new Date(1e3*ee.mtime));break;case 1:var le=C.read_shift(4),J=C.read_shift(4);ee.usz=J*Math.pow(2,32)+le,le=C.read_shift(4),J=C.read_shift(4),ee.csz=J*Math.pow(2,32)+le}C.l=P,R[I]=ee}return R}function l(){return c||(c=us)}function d(C,R){if(80==C[0]&&75==C[1])return F3(C,R);if(109==(32|C[0])&&105==(32|C[1]))return function Rve(C,R){if("mime-version:"!=se(C.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var S=R&&R.root||"",I=(Vt&&Buffer.isBuffer(C)?C.toString("binary"):se(C)).split("\r\n"),O=0,P="";for(O=0;O0&&(S=(S=S.slice(0,S.length-1)).slice(0,S.lastIndexOf("/")+1),P.slice(0,S.length)!=S););var ee=(I[1]||"").match(/boundary="(.*?)"/);if(!ee)throw new Error("MAD cannot find boundary");var le="--"+(ee[1]||""),ie={FileIndex:[],FullPaths:[]};D(ie);var De,Te=0;for(O=0;O=O&&(Te-=O),!ee[Te]){J=[];var Fe=[];for(De=Te;De>=0;){Fe[De]=!0,ee[De]=!0,le[le.length]=De,J.push(C[De]);var we=S[Math.floor(4*De/I)];if(I<4+(Qe=4*De&te))throw new Error("FAT boundary crossed: "+De+" 4 "+I);if(!C[we]||Fe[De=tl(C[we],Qe)])break}P[Te]={nodes:le,data:s4([J])}}return P}(Dt,ee,te,I);ee0&&le!==me&&(Ni[le].name="!MiniFAT"),Ni[te[0]].name="!FAT",Ni.fat_addrs=te,Ni.ssz=I;var Dn=[],oo=[],am=[];(function x(C,R,S,I,O,P,ee,le){for(var Qe,J=0,te=I.length?2:0,ie=R[C].data,De=0,Te=0;De0&&J!==me&&(R[J].name="!StreamData")):we.size>=4096?(we.storage="fat",void 0===R[we.start]&&(R[we.start]=_(S,we.start,R.fat_addrs,R.ssz)),R[we.start].name=we.name,we.content=R[we.start].data.slice(0,we.size)):(we.storage="minifat",we.size<0?we.size=0:J!==me&&we.start!==me&&R[J]&&(we.content=g(we,R[J].data,(R[le]||{}).data))),we.content&&Rn(we.content,0),P[Qe]=we,ee.push(we)}})(ee,Ni,Dt,Dn,O,{},oo,le),function m(C,R,S){for(var I=0,O=0,P=0,ee=0,le=0,J=S.length,te=[],ie=[];I0&&ee>=0;)P.push(R.slice(ee*U,ee*U+U)),O-=U,ee=tl(S,4*ee);return 0===P.length?re(0):vn(P).slice(0,C.size)}function p(C,R,S,I,O){var P=me;if(C===me){if(0!==R)throw new Error("DIFAT chain shorter than expected")}else if(-1!==C){var ee=S[C],le=(I>>>2)-1;if(!ee)return;for(var J=0;J=1&&p(tl(ee,I-4),R-1,S,I,O)}}function _(C,R,S,I,O){var P=[],ee=[];O||(O=[]);var le=I-1,J=0,te=0;for(J=R;J>=0;){O[J]=!0,P[P.length]=J,ee.push(C[J]);var ie=S[Math.floor(4*J/I)];if(I<4+(te=4*J&le))throw new Error("FAT boundary crossed: "+J+" 4 "+I);if(!C[ie])break;J=tl(C[ie],te)}return{nodes:P,data:s4([ee])}}function E(C,R){return new Date(1e3*(zn(C,R+4)/1e7*Math.pow(2,32)+zn(C,R)/1e7-11644473600))}function D(C,R){var S=R||{},I=S.root||"Root Entry";if(C.FullPaths||(C.FullPaths=[]),C.FileIndex||(C.FileIndex=[]),C.FullPaths.length!==C.FileIndex.length)throw new Error("inconsistent CFB structure");0===C.FullPaths.length&&(C.FullPaths[0]=I+"/",C.FileIndex[0]={name:I,type:5}),S.CLSID&&(C.FileIndex[0].clsid=S.CLSID),function B(C){var R="\x01Sh33tJ5";if(!lt.find(C,"/"+R)){var S=re(4);S[0]=55,S[1]=S[3]=50,S[2]=54,C.FileIndex.push({name:R,type:2,content:S,size:4,L:69,R:69,C:69}),C.FullPaths.push(C.FullPaths[0]+R),N(C)}}(C)}function N(C,R){D(C);for(var S=!1,I=!1,O=C.FullPaths.length-1;O>=0;--O){var P=C.FileIndex[O];switch(P.type){case 0:I?S=!0:(C.FileIndex.pop(),C.FullPaths.pop());break;case 1:case 2:case 5:I=!0,isNaN(P.R*P.L*P.C)&&(S=!0),P.R>-1&&P.L>-1&&P.R==P.L&&(S=!0);break;default:S=!0}}if(S||R){var ee=new Date(1987,1,19),le=0,J=Object.create?Object.create(null):{},te=[];for(O=0;O1?1:-1,De.size=0,De.type=5;else if("/"==Te.slice(-1)){for(le=O+1;le=te.length?-1:le,le=O+1;le=te.length?-1:le,De.type=1}else n(C.FullPaths[O+1]||"")==n(Te)&&(De.R=O+1),De.type=2}}}function j(C,R){var S=R||{};if("mad"==S.fileType)return function Ove(C,R){for(var S=R||{},I=S.boundary||"SheetJS",O=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(I="------="+I).slice(2)+'"',"","",""],P=C.FullPaths[0],ee=P,le=C.FileIndex[0],J=1;J=32&&Qe<128&&++De;var we=De>=4*Te/5;O.push(I),O.push("Content-Location: "+(S.root||"file:///C:/SheetJS/")+ee),O.push("Content-Transfer-Encoding: "+(we?"quoted-printable":"base64")),O.push("Content-Type: "+Tve(le,ee)),O.push(""),O.push(we?Ave(ie):Mve(ie))}return O.push(I+"--\r\n"),O.join("\r\n")}(C,S);if("zip"===(N(C),S.fileType))return function Eve(C,R){var S=R||{},I=[],O=[],P=re(1),ee=S.compression?8:0,le=0,te=0,ie=0,De=0,Te=0,Qe=C.FullPaths[0],Fe=Qe,we=C.FileIndex[0],Dt=[],Ni=0;for(te=1;te0&&(Hr<4096?Fe+=Hr+63>>6:we+=Hr+511>>9)}}for(var Dn=Qe.FullPaths.length+3>>2,am=Fe+127>>7,sm=(Fe+7>>3)+we+Dn+am,xl=sm+127>>7,UC=xl<=109?0:Math.ceil((xl-109)/127);sm+xl+UC+127>>7>xl;)UC=++xl<=109?0:Math.ceil((xl-109)/127);var xs=[1,UC,xl,am,Dn,we,Fe,0];return Qe.FileIndex[0].size=Fe<<6,xs[7]=(Qe.FileIndex[0].start=xs[0]+xs[1]+xs[2]+xs[3]+xs[4]+xs[5])+(xs[6]+7>>3),xs}(C),O=re(I[7]<<9),P=0,ee=0;for(P=0;P<8;++P)O.write_shift(1,de[P]);for(P=0;P<8;++P)O.write_shift(2,0);for(O.write_shift(2,62),O.write_shift(2,3),O.write_shift(2,65534),O.write_shift(2,9),O.write_shift(2,6),P=0;P<3;++P)O.write_shift(2,0);for(O.write_shift(4,0),O.write_shift(4,I[2]),O.write_shift(4,I[0]+I[1]+I[2]+I[3]-1),O.write_shift(4,0),O.write_shift(4,4096),O.write_shift(4,I[3]?I[0]+I[1]+I[2]-1:me),O.write_shift(4,I[3]),O.write_shift(-4,I[1]?I[0]-1:me),O.write_shift(4,I[1]),P=0;P<109;++P)O.write_shift(-4,P>9));for(le(I[6]+7>>3);511&O.l;)O.write_shift(-4,Y.ENDOFCHAIN);for(ee=P=0,J=0;J=4096)&&(ie.start=ee,le(te+63>>6));for(;511&O.l;)O.write_shift(-4,Y.ENDOFCHAIN);for(P=0;P32&&(console.error("Name "+Te+" will be truncated to "+Te.slice(0,32)),Te=Te.slice(0,32)),te=2*(Te.length+1),O.write_shift(64,Te,"utf16le"),O.write_shift(2,te),O.write_shift(1,ie.type),O.write_shift(1,ie.color),O.write_shift(-4,ie.L),O.write_shift(-4,ie.R),O.write_shift(-4,ie.C),ie.clsid)O.write_shift(16,ie.clsid,"hex");else for(J=0;J<4;++J)O.write_shift(4,0);O.write_shift(4,ie.state||0),O.write_shift(4,0),O.write_shift(4,0),O.write_shift(4,0),O.write_shift(4,0),O.write_shift(4,ie.start),O.write_shift(4,ie.size),O.write_shift(4,0)}else{for(J=0;J<17;++J)O.write_shift(4,0);for(J=0;J<3;++J)O.write_shift(4,-1);for(J=0;J<12;++J)O.write_shift(4,0)}}for(P=1;P=4096)if(O.l=ie.start+1<<9,Vt&&Buffer.isBuffer(ie.content))ie.content.copy(O,O.l,0,ie.size),O.l+=ie.size+511&-512;else{for(J=0;J0&&ie.size<4096)if(Vt&&Buffer.isBuffer(ie.content))ie.content.copy(O,O.l,0,ie.size),O.l+=ie.size+63&-64;else{for(J=0;J>16|R>>8|R));function T(C,R){var S=Ie[255&C];return R<=8?S>>>8-R:(S=S<<8|Ie[C>>8&255],R<=16?S>>>16-R:(S=S<<8|Ie[C>>16&255])>>>24-R)}function bt(C,R){var S=7&R,I=R>>>3;return(C[I]|(S<=6?0:C[I+1]<<8))>>>S&3}function Jt(C,R){var S=7&R,I=R>>>3;return(C[I]|(S<=5?0:C[I+1]<<8))>>>S&7}function $t(C,R){var S=7&R,I=R>>>3;return(C[I]|(S<=3?0:C[I+1]<<8))>>>S&31}function Wi(C,R){var S=7&R,I=R>>>3;return(C[I]|(S<=1?0:C[I+1]<<8))>>>S&127}function si(C,R,S){var I=7&R,O=R>>>3,ee=C[O]>>>I;return S<8-I||(ee|=C[O+1]<<8-I,S<16-I)||(ee|=C[O+2]<<16-I,S<24-I)||(ee|=C[O+3]<<24-I),ee&(1<>>3;return I<=5?C[O]|=(7&S)<>8-I),R+3}function Ne(C,R,S){return C[R>>>3]|=S=(1&S)<<(7&R),R+1}function fr(C,R,S){var O=R>>>3;return C[O]|=255&(S<<=7&R),C[O+1]=S>>>=8,R+8}function oi(C,R,S){var O=R>>>3;return C[O]|=255&(S<<=7&R),C[O+1]=255&(S>>>=8),C[O+2]=S>>>8,R+16}function Si(C,R){var S=C.length,I=2*S>R?2*S:R+5,O=0;if(S>=R)return C;if(Vt){var P=bP(I);if(C.copy)C.copy(P);else for(;O>I-De,ee=(1<=0;--ee)R[le|ee<0;)J[J.l++]=le[te++]}return J.l}(J,te):function ee(le,J){for(var te=0,ie=0,De=_e?new Uint16Array(32768):[];ie0;)J[J.l++]=le[ie++];te=8*J.l}else{te=Ze(J,te,+(ie+Te==le.length)+2);for(var Qe=0;Te-- >0;){var Fe=le[ie],we=-1,Dt=0;if((we=De[Qe=32767&(Qe<<5^Fe)])&&((we|=-32768&ie)>ie&&(we-=32768),we2){(Fe=O[Dt])<=22?te=fr(J,te,Ie[Fe+1]>>1)-1:(fr(J,te,3),fr(J,te+=5,Ie[Fe-23]>>5),te+=3);var Ni=Fe<8?0:Fe-4>>2;Ni>0&&(oi(J,te,Dt-z[Fe]),te+=Ni),te=fr(J,te,Ie[Fe=R[ie-we]]>>3),te-=3;var Hr=Fe<4?0:Fe-2>>1;Hr>0&&(oi(J,te,ie-we-V[Fe]),te+=Hr);for(var Dn=0;Dn>>3;return(C[I]|(S<=4?0:C[I+1]<<8))>>>S&15}(C,R+=5)+4;R+=4;for(var P=0,ee=_e?new Uint8Array(19):Er(19),le=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],J=1,te=_e?new Uint8Array(8):Er(8),ie=_e?new Uint8Array(8):Er(8),De=ee.length,Te=0;Te>8-Fe;for(var we=(1<<7-Fe)-1;we>=0;--we)Nn[Qe|we<>>=3){case 16:for(P=3+bt(C,R),R+=2,Qe=Dt[Dt.length-1];P-- >0;)Dt.push(Qe);break;case 17:for(P=3+Jt(C,R),R+=3;P-- >0;)Dt.push(0);break;case 18:for(P=11+Wi(C,R),R+=7;P-- >0;)Dt.push(0);break;default:Dt.push(Qe),J>>0,le=0,J=0;!(1&I);)if(I=Jt(C,S),S+=3,I>>>1)for(I>>1==1?(le=9,J=5):(S=kve(C,S),le=vl,J=M3);;){!R&&ee>>1==1?sc[ie]:ln[ie];if(S+=15&De,(De>>>=4)>>>8&255){if(256==De)break;var Te=(De-=257)<8?0:De-4>>2;Te>5&&(Te=0);var Qe=P+z[De];Te>0&&(Qe+=si(C,S,Te),S+=Te),ie=si(C,S,J),S+=15&(De=I>>>1==1?om[ie]:Ro[ie]);var Fe=(De>>>=4)<4?0:De-2>>1,we=V[De];for(Fe>0&&(we+=si(C,S,Fe),S+=Fe),!R&&ee>>3]|C[1+(S>>>3)]<<8;if(S+=32,te>0)for(!R&&ee0;)O[P++]=C[S>>>3],S+=8}return R?[O,S+7>>>3]:[O.slice(0,P),S+7>>>3]}(C.slice(C.l||0),R);return C.l+=I[1],I[0]}function I3(C,R){if(!C)throw new Error(R);typeof console<"u"&&console.error(R)}function F3(C,R){var S=C;Rn(S,0);var P={FileIndex:[],FullPaths:[]};D(P,{root:R.root});for(var ee=S.length-4;(80!=S[ee]||75!=S[ee+1]||5!=S[ee+2]||6!=S[ee+3])&&ee>=0;)--ee;S.l=ee+4,S.l+=4;var le=S.read_shift(2);S.l+=6;var J=S.read_shift(4);for(S.l=J,ee=0;ee>>=5);S>>>=4,I.setMilliseconds(0),I.setFullYear(S+1980),I.setMonth(P-1),I.setDate(O);var ee=31&R,le=63&(R>>>=5);return I.setHours(R>>>=6),I.setMinutes(le),I.setSeconds(ee<<1),I}(C);if(8257&P)throw new Error("Unsupported ZIP encryption");C.read_shift(4);for(var te=C.read_shift(4),ie=C.read_shift(4),De=C.read_shift(2),Te=C.read_shift(2),Qe="",Fe=0;Fe"u")throw new Error("Unsupported");return new Uint8Array(t)}(t):t}function yf(t,i,e){if(typeof us<"u"&&us.writeFileSync)return e?us.writeFileSync(t,i,e):us.writeFileSync(t,i);if(typeof Deno<"u"){if(e&&"string"==typeof i)switch(e){case"utf8":i=new TextEncoder(e).encode(i);break;case"binary":i=_f(i);break;default:throw new Error("Unsupported encoding "+e)}return Deno.writeFileSync(t,i)}var n="utf8"==e?Sa(i):i;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,t);if(typeof Blob<"u"){var r=new Blob([Woe(n)],{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 a=document.createElement("a");if(null!=a.download)return a.download=t,a.href=o,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(o)},6e4),o}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var s=File(t);return s.open("w"),s.encoding="binary",Array.isArray(i)&&(i=ka(i)),s.write(i),s.close(),i}catch(c){if(!c.message||!c.message.match(/onstruct/))throw c}throw new Error("cannot save file "+t)}function $i(t){for(var i=Object.keys(t),e=[],n=0;n0?e.setTime(e.getTime()+60*e.getTimezoneOffset()*1e3):i<0&&e.setTime(e.getTime()-60*e.getTimezoneOffset()*1e3),e;if(t instanceof Date)return t;if(1917==$P.getFullYear()&&!isNaN(e.getFullYear())){var n=e.getFullYear();return t.indexOf(""+n)>-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 Jc(t,i){if(Vt&&Buffer.isBuffer(t)){if(i&&gf){if(255==t[0]&&254==t[1])return Sa(t.slice(2).toString("utf16le"));if(254==t[1]&&255==t[2])return Sa(function gP(t){for(var i=[],e=0;e>1;++e)i[e]=String.fromCharCode(t.charCodeAt(2*e+1)+(t.charCodeAt(2*e)<<8));return i.join("")}(t.slice(2).toString("binary")))}return t.toString("binary")}if(typeof TextDecoder<"u")try{if(i){if(255==t[0]&&254==t[1])return Sa(new TextDecoder("utf-16le").decode(t.slice(2)));if(254==t[0]&&255==t[1])return Sa(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 n=[],r=0;r!=t.length;++r)n.push(String.fromCharCode(t[r]));return n.join("")}function yi(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 i={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(i[e]=yi(t[e]));return i}function ri(t,i){for(var e="";e.length3&&-1==Joe.indexOf(i))return o}else if(i.replace(/[ap]m?/,"").match(/[a-z]/))return o;return a<0||a>8099||t.match(/[^-0-9:,\/\\]/)?o:r}function Rt(t,i,e){if(t.FullPaths){var n;if("string"==typeof e)return n=Vt?Ca(e):function _oe(t){for(var i=[],e=0,n=t.length+250,r=qs(t.length+255),o=0;o>6&31,r[e++]=128|63&a;else if(a>=55296&&a<57344){a=64+(1023&a);var s=1023&t.charCodeAt(++o);r[e++]=240|a>>8&7,r[e++]=128|a>>2&63,r[e++]=128|s>>6&15|(3&a)<<4,r[e++]=128|63&s}else r[e++]=224|a>>12&15,r[e++]=128|a>>6&63,r[e++]=128|63&a;e>n&&(i.push(r.slice(0,e)),e=0,r=qs(65535),n=65530)}return i.push(r.slice(0,e)),vn(i)}(e),lt.utils.cfb_add(t,i,n);lt.utils.cfb_add(t,i,e)}else t.file(i,e)}function cw(){return lt.utils.cfb_new()}var an='\r\n',lw=M0({""":'"',"'":"'",">":">","<":"<","&":"&"}),dw=/[&<>'"]/g,aae=/[\u0000-\u0008\u000b-\u001f\uFFFE-\uFFFF]/g;function Ot(t){return(t+"").replace(dw,function(e){return lw[e]}).replace(aae,function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"})}function KP(t){return Ot(t).replace(/ /g,"_x0020_")}var ZP=/[\u0000-\u001f]/g;function R0(t){return(t+"").replace(dw,function(e){return lw[e]}).replace(/\n/g,"
").replace(ZP,function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"})}function uw(t){for(var i="",e=0,n=0,r=0,o=0,a=0,s=0;e191&&n<224?(a=(31&n)<<6,a|=63&r,i+=String.fromCharCode(a)):(o=t.charCodeAt(e++),n<240?i+=String.fromCharCode((15&n)<<12|(63&r)<<6|63&o):(s=((7&n)<<18|(63&r)<<12|(63&o)<<6|63&(a=t.charCodeAt(e++)))-65536,i+=String.fromCharCode(55296+(s>>>10&1023)),i+=String.fromCharCode(56320+(1023&s)))));return i}function e4(t){var e,n,s,i=qs(2*t.length),r=1,o=0,a=0;for(n=0;n>>10&1023),e=56320+(1023&e)),0!==a&&(i[o++]=255&a,i[o++]=a>>>8,a=0),i[o++]=e%256,i[o++]=e>>>8;return i.slice(0,o).toString("ucs2")}function t4(t){return Ca(t,"binary").toString("utf8")}var O0="foo bar baz\xe2\x98\x83\xf0\x9f\x8d\xa3",Ci=Vt&&(t4(O0)==uw(O0)&&t4||e4(O0)==uw(O0)&&e4)||uw,Sa=Vt?function(t){return Ca(t,"utf8").toString("binary")}:function(t){for(var i=[],e=0,n=0,r=0;e>6))),i.push(String.fromCharCode(128+(63&n)));break;case n>=55296&&n<57344:n-=55296,r=t.charCodeAt(e++)-56320+(n<<10),i.push(String.fromCharCode(240+(r>>18&7))),i.push(String.fromCharCode(144+(r>>12&63))),i.push(String.fromCharCode(128+(r>>6&63))),i.push(String.fromCharCode(128+(63&r)));break;default:i.push(String.fromCharCode(224+(n>>12))),i.push(String.fromCharCode(128+(n>>6&63))),i.push(String.fromCharCode(128+(63&n)))}return i.join("")},o4=/(^\s|\s$|\n)/;function Qn(t,i){return"<"+t+(i.match(o4)?' xml:space="preserve"':"")+">"+i+""}function kf(t){return $i(t).map(function(i){return" "+i+'="'+t[i]+'"'}).join("")}function Se(t,i,e){return"<"+t+(null!=e?kf(e):"")+(null!=i?(i.match(o4)?' xml:space="preserve"':"")+">"+i+""}function hw(t,i){try{return t.toISOString().replace(/\.\d*/,"")}catch(e){if(i)throw e}return""}var Fn={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"},el=["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"],io={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"},a4=function(t){for(var i=[],n=0;n0&&Buffer.isBuffer(t[0][0])?Buffer.concat(t[0].map(function(i){return Buffer.isBuffer(i)?i:Ca(i)})):a4(t)}:a4,c4=function(t,i,e){for(var n=[],r=i;r0?iu(t,i+4,i+4+e-1):""},fw=h4,f4=function(t,i){var e=zn(t,i);return e>0?iu(t,i+4,i+4+e-1):""},mw=f4,m4=function(t,i){var e=2*zn(t,i);return e>0?iu(t,i+4,i+4+e-1):""},pw=m4,p4=function(i,e){var n=zn(i,e);return n>0?L0(i,e+4,e+4+n):""},gw=p4,g4=function(t,i){var e=zn(t,i);return e>0?iu(t,i+4,i+4+e):""},_w=g4,_4=function(t,i){return function fae(t,i){for(var e=1-2*(t[i+7]>>>7),n=((127&t[i+7])<<4)+(t[i+6]>>>4&15),r=15&t[i+6],o=5;o>=0;--o)r=256*r+t[i+o];return 2047==n?0==r?e*(1/0):NaN:(0==n?n=-1022:(n-=1023,r+=Math.pow(2,52)),e*Math.pow(2,n-52)*r)}(t,i)},N0=_4,bw=function(i){return Array.isArray(i)||typeof Uint8Array<"u"&&i instanceof Uint8Array};Vt&&(fw=function(i,e){if(!Buffer.isBuffer(i))return h4(i,e);var n=i.readUInt32LE(e);return n>0?i.toString("utf8",e+4,e+4+n-1):""},mw=function(i,e){if(!Buffer.isBuffer(i))return f4(i,e);var n=i.readUInt32LE(e);return n>0?i.toString("utf8",e+4,e+4+n-1):""},pw=function(i,e){if(!Buffer.isBuffer(i)||!gf)return m4(i,e);var n=2*i.readUInt32LE(e);return i.toString("utf16le",e+4,e+4+n-1)},gw=function(i,e){if(!Buffer.isBuffer(i)||!gf)return p4(i,e);var n=i.readUInt32LE(e);return i.toString("utf16le",e+4,e+4+n)},_w=function(i,e){if(!Buffer.isBuffer(i))return g4(i,e);var n=i.readUInt32LE(e);return i.toString("utf8",e+4,e+4+n)},N0=function(i,e){return Buffer.isBuffer(i)?i.readDoubleLE(e):_4(i,e)},bw=function(i){return Buffer.isBuffer(i)||Array.isArray(i)||typeof Uint8Array<"u"&&i instanceof Uint8Array}),typeof Mt<"u"&&function b4(){L0=function(t,i,e){return Mt.utils.decode(1200,t.slice(i,e)).replace(or,"")},iu=function(t,i,e){return Mt.utils.decode(65001,t.slice(i,e))},fw=function(t,i){var e=zn(t,i);return e>0?Mt.utils.decode(Kc,t.slice(i+4,i+4+e-1)):""},mw=function(t,i){var e=zn(t,i);return e>0?Mt.utils.decode(In,t.slice(i+4,i+4+e-1)):""},pw=function(t,i){var e=2*zn(t,i);return e>0?Mt.utils.decode(1200,t.slice(i+4,i+4+e-1)):""},gw=function(t,i){var e=zn(t,i);return e>0?Mt.utils.decode(1200,t.slice(i+4,i+4+e)):""},_w=function(t,i){var e=zn(t,i);return e>0?Mt.utils.decode(65001,t.slice(i+4,i+4+e)):""}}();var nu=function(t,i){return t[i]},hs=function(t,i){return 256*t[i+1]+t[i]},pae=function(t,i){var e=256*t[i+1]+t[i];return e<32768?e:-1*(65535-e+1)},zn=function(t,i){return t[i+3]*(1<<24)+(t[i+2]<<16)+(t[i+1]<<8)+t[i]},tl=function(t,i){return t[i+3]<<24|t[i+2]<<16|t[i+1]<<8|t[i]},gae=function(t,i){return t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3]};function Df(t,i){var n,r,a,s,c,l,e="",o=[];switch(i){case"dbcs":if(l=this.l,Vt&&Buffer.isBuffer(this)&&gf)e=this.slice(this.l,this.l+2*t).toString("utf16le");else for(c=0;c0?tl:gae)(this,this.l),this.l+=4,n);case 8:case-8:if("f"===i)return r=8==t?N0(this,this.l):N0([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=d4(this,this.l,t)}}return this.l+=t,e}var _ae=function(t,i,e){t[e]=255&i,t[e+1]=i>>>8&255,t[e+2]=i>>>16&255,t[e+3]=i>>>24&255},bae=function(t,i,e){t[e]=255&i,t[e+1]=i>>8&255,t[e+2]=i>>16&255,t[e+3]=i>>24&255},vae=function(t,i,e){t[e]=255&i,t[e+1]=i>>>8&255};function xae(t,i,e){var n=0,r=0;if("dbcs"===e){for(r=0;r!=i.length;++r)vae(this,i.charCodeAt(r),this.l+2*r);n=2*i.length}else if("sbcs"===e||"cpstr"==e)if(typeof Mt<"u"&&874==Kc){for(r=0;r!=i.length;++r){var o=Mt.utils.encode(Kc,i.charAt(r));this[this.l+r]=o[0]}n=i.length}else if(typeof Mt<"u"&&"cpstr"==e){if((o=Mt.utils.encode(In,i)).length==i.length)for(r=0;r>8}for(;this.l>>=8);break;case 3:n=3,this[this.l]=255&i,this[this.l+1]=255&(i>>>=8),this[this.l+2]=255&(i>>>=8);break;case 4:n=4,_ae(this,i,this.l);break;case 8:if(n=8,"f"===e){!function mae(t,i,e){var n=(i<0||1/i==-1/0?1:0)<<7,r=0,o=0,a=n?-i:i;isFinite(a)?0==a?r=o=0:(r=Math.floor(Math.log(a)/Math.LN2),o=a*Math.pow(2,52-r),r<=-1023&&(!isFinite(o)||o>4|n}(this,i,this.l);break}case 16:break;case-4:n=4,bae(this,i,this.l)}}return this.l+=n,this}function v4(t,i){var e=d4(this,this.l,t.length>>1);if(e!==t)throw new Error(i+"Expected "+t+" saw "+e);this.l+=t.length>>1}function Rn(t,i){t.l=i,t.read_shift=Df,t.chk=v4,t.write_shift=xae}function sr(t,i){t.l+=i}function re(t){var i=qs(t);return Rn(i,0),i}function Br(){var t=[],i=Vt?256:2048,e=function(l){var d=re(l);return Rn(d,0),d},n=e(i),r=function(){n&&(n.l&&(n.length>n.l&&((n=n.slice(0,n.l)).l=n.length),n.length>0&&t.push(n)),n=null)},o=function(l){return n&&l=128?1:0)+1,n>=128&&++o,n>=16384&&++o,n>=2097152&&++o;var a=t.next(o);r<=127?a.write_shift(1,r):(a.write_shift(1,128+(127&r)),a.write_shift(1,r>>7));for(var s=0;4!=s;++s){if(!(n>=128)){a.write_shift(1,n);break}a.write_shift(1,128+(127&n)),n>>=7}n>0&&bw(e)&&t.push(e)}}function Sf(t,i,e){var n=yi(t);if(i.s?(n.cRel&&(n.c+=i.s.c),n.rRel&&(n.r+=i.s.r)):(n.cRel&&(n.c+=i.c),n.rRel&&(n.r+=i.r)),!e||e.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function x4(t,i,e){var n=yi(t);return n.s=Sf(n.s,i.s,e),n.e=Sf(n.e,i.s,e),n}function Ef(t,i){if(t.cRel&&t.c<0)for(t=yi(t);t.c<0;)t.c+=i>8?16384:256;if(t.rRel&&t.r<0)for(t=yi(t);t.r<0;)t.r+=i>8?1048576:i>5?65536:16384;var e=zt(t);return!t.cRel&&null!=t.cRel&&(e=function Cae(t){return t.replace(/^([A-Z])/,"$$$1")}(e)),!t.rRel&&null!=t.rRel&&(e=function yae(t){return t.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}(e)),e}function vw(t,i){return 0!=t.s.r||t.s.rRel||t.e.r!=(i.biff>=12?1048575:i.biff>=8?65536:16384)||t.e.rRel?0!=t.s.c||t.s.cRel||t.e.c!=(i.biff>=12?16383:255)||t.e.cRel?Ef(t.s,i.biff)+":"+Ef(t.e,i.biff):(t.s.rRel?"":"$")+Yt(t.s.r)+":"+(t.e.rRel?"":"$")+Yt(t.e.r):(t.s.cRel?"":"$")+Ht(t.s.c)+":"+(t.e.cRel?"":"$")+Ht(t.e.c)}function xw(t){return parseInt(function wae(t){return t.replace(/\$(\d+)$/,"$1")}(t),10)-1}function Yt(t){return""+(t+1)}function yw(t){for(var i=function kae(t){return t.replace(/^\$([A-Z])/,"$1")}(t),e=0,n=0;n!==i.length;++n)e=26*e+i.charCodeAt(n)-64;return e-1}function Ht(t){if(t<0)throw new Error("invalid column "+t);var i="";for(++t;t;t=Math.floor((t-1)/26))i=String.fromCharCode((t-1)%26+65)+i;return i}function bi(t){for(var i=0,e=0,n=0;n=48&&r<=57?i=10*i+(r-48):r>=65&&r<=90&&(e=26*e+(r-64))}return{c:e-1,r:i-1}}function zt(t){for(var i=t.c+1,e="";i;i=(i-1)/26|0)e=String.fromCharCode((i-1)%26+65)+e;return e+(t.r+1)}function On(t){var i=t.indexOf(":");return-1==i?{s:bi(t),e:bi(t)}:{s:bi(t.slice(0,i)),e:bi(t.slice(i+1))}}function Et(t,i){return typeof i>"u"||"number"==typeof i?Et(t.s,t.e):("string"!=typeof t&&(t=zt(t)),"string"!=typeof i&&(i=zt(i)),t==i?t:t+":"+i)}function Tf(t){var i=On(t);return"$"+Ht(i.s.c)+"$"+Yt(i.s.r)+":$"+Ht(i.e.c)+"$"+Yt(i.e.r)}function Mf(t,i){if(!(t||i&&i.biff<=5&&i.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(t)?"'"+t.replace(/'/g,"''")+"'":t}function Kt(t){var i={s:{c:0,r:0},e:{c:0,r:0}},e=0,n=0,r=0,o=t.length;for(e=0;n26);++n)e=26*e+r;for(i.s.c=--e,e=0;n9);++n)e=10*e+r;if(i.s.r=--e,n===o||10!=r)return i.e.c=i.s.c,i.e.r=i.s.r,i;for(++n,e=0;n!=o&&!((r=t.charCodeAt(n)-64)<1||r>26);++n)e=26*e+r;for(i.e.c=--e,e=0;n!=o&&!((r=t.charCodeAt(n)-48)<0||r>9);++n)e=10*e+r;return i.e.r=--e,i}function Ea(t,i,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?ms[t.v]||t.v:function y4(t,i){var e="d"==t.t&&i instanceof Date;if(null!=t.z)try{return t.w=Lr(t.z,e?xn(i):i)}catch{}try{return t.w=Lr((t.XF||{}).numFmtId||(e?14:0),e?xn(i):i)}catch{return""+i}}(t,null==i?t.v:i))}function Ks(t,i){var e=i&&i.sheet?i.sheet:"Sheet1",n={};return n[e]=t,{SheetNames:[e],Sheets:n}}function w4(t,i,e){var n=e||{},r=t?null!=t["!data"]:n.dense;null!=on&&null==r&&(r=on);var o=t||{};r&&!o["!data"]&&(o["!data"]=[]);var a=0,s=0;if(o&&null!=n.origin){if("number"==typeof n.origin)a=n.origin;else{var c="string"==typeof n.origin?bi(n.origin):n.origin;a=c.r,s=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=Kt(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==a&&(l.e.r=a=d.e.r+1)}for(var u=[],h=0;h!=i.length;++h)if(i[h]){if(!Array.isArray(i[h]))throw new Error("aoa_to_sheet expects an array of arrays");var f=a+h,m=""+(f+1);r&&(o["!data"][f]||(o["!data"][f]=[]),u=o["!data"][f]);for(var g=0;g!=i[h].length;++g)if(!(typeof i[h][g]>"u")){var p={v:i[h][g]},_=s+g;if(l.s.r>f&&(l.s.r=f),l.s.c>_&&(l.s.c=_),l.e.r0&&i.write_shift(0,t,"dbcs"),e?i.slice(0,i.l):i}function Eae(t){return{ich:t.read_shift(2),ifnt:t.read_shift(2)}}function ww(t,i){var e=t.l,n=t.read_shift(1),r=cr(t),o=[],a={t:r,h:r};if(1&n){for(var s=t.read_shift(4),c=0;c!=s;++c)o.push(Eae(t));a.r=o}else a.r=[{ich:0,ifnt:0}];return t.l=e+i,a}var Aae=ww;function Eo(t){var i=t.read_shift(4),e=t.read_shift(2);return e+=t.read_shift(1)<<16,t.l++,{c:i,iStyleRef:e}}function il(t,i){return null==i&&(i=re(8)),i.write_shift(-4,t.c),i.write_shift(3,t.iStyleRef||t.s),i.write_shift(1,0),i}function nl(t){var i=t.read_shift(2);return i+=t.read_shift(1)<<16,t.l++,{c:-1,iStyleRef:i}}function rl(t,i){return null==i&&(i=re(4)),i.write_shift(3,t.iStyleRef||t.s),i.write_shift(1,0),i}var Fae=cr,C4=Pn;function Cw(t){var i=t.read_shift(4);return 0===i||4294967295===i?"":t.read_shift(i,"dbcs")}function Af(t,i){var e=!1;return null==i&&(e=!0,i=re(127)),i.write_shift(4,t.length>0?t.length:4294967295),t.length>0&&i.write_shift(0,t,"dbcs"),e?i.slice(0,i.l):i}var Rae=cr,kw=Cw,Dw=Af;function Sw(t){var i=t.slice(t.l,t.l+4),e=1&i[0],n=2&i[0];t.l+=4;var r=0===n?N0([0,0,0,0,252&i[0],i[1],i[2],i[3]],0):tl(i,0)>>2;return e?r/100:r}function k4(t,i){null==i&&(i=re(4));var e=0,n=0,r=100*t;if(t==(0|t)&&t>=-(1<<29)&&t<1<<29?n=1:r==(0|r)&&r>=-(1<<29)&&r<1<<29&&(n=1,e=1),!n)throw new Error("unsupported RkNumber "+t);i.write_shift(-4,((e?r:t)<<2)+(e+2))}function D4(t){var i={s:{},e:{}};return i.s.r=t.read_shift(4),i.e.r=t.read_shift(4),i.s.c=t.read_shift(4),i.e.c=t.read_shift(4),i}var ol=D4,ou=function Oae(t,i){return i||(i=re(16)),i.write_shift(4,t.s.r),i.write_shift(4,t.e.r),i.write_shift(4,t.s.c),i.write_shift(4,t.e.c),i};function lr(t){if(t.length-t.l<8)throw"XLS Xnum Buffer underflow";return t.read_shift(8,"f")}function al(t,i){return(i||re(8)).write_shift(8,t,"f")}function B0(t,i){if(i||(i=re(8)),!t||t.auto)return i.write_shift(4,0),i.write_shift(4,0),i;null!=t.index?(i.write_shift(1,2),i.write_shift(1,t.index)):null!=t.theme?(i.write_shift(1,6),i.write_shift(1,t.theme)):(i.write_shift(1,5),i.write_shift(1,0));var e=t.tint||0;if(e>0?e*=32767:e<0&&(e*=32768),i.write_shift(2,e),t.rgb&&null==t.theme){var n=t.rgb||"FFFFFF";"number"==typeof n&&(n=("000000"+n.toString(16)).slice(-6)),i.write_shift(1,parseInt(n.slice(0,2),16)),i.write_shift(1,parseInt(n.slice(2,4),16)),i.write_shift(1,parseInt(n.slice(4,6),16)),i.write_shift(1,255)}else i.write_shift(2,0),i.write_shift(1,0),i.write_shift(1,0);return i}var Tw={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:{}},Mw={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 Gae(t){return t.map(function(i){return[i>>16&255,i>>8&255,255&i]})}var sl=yi(Gae([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])),ms={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},Aw={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},Iw=["_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"],Fw={"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"},z0={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 A4(t,i,e){var o,n=function qoe(t){for(var i=[],e=$i(t),n=0;n!==e.length;++n)null==i[t[e[n]]]&&(i[t[e[n]]]=[]),i[t[e[n]]].push(e[n]);return i}(Fw),r=[];e||(r[r.length]=an,r[r.length]=Se("Types",null,{xmlns:Fn.CT,"xmlns:xsd":Fn.xsd,"xmlns:xsi":Fn.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 Se("Default",null,{Extension:l[0],ContentType:l[1]})})));var a=function(l){t[l]&&t[l].length>0&&(r[r.length]=Se("Override",null,{PartName:("/"==(o=t[l][0])[0]?"":"/")+o,ContentType:z0[l][i.bookType]||z0[l].xlsx}))},s=function(l){(t[l]||[]).forEach(function(d){r[r.length]=Se("Override",null,{PartName:("/"==d[0]?"":"/")+d,ContentType:z0[l][i.bookType]||z0[l].xlsx})})},c=function(l){(t[l]||[]).forEach(function(d){r[r.length]=Se("Override",null,{PartName:("/"==d[0]?"":"/")+d,ContentType:n[l][0]})})};return a("workbooks"),s("sheets"),s("charts"),c("themes"),["strs","styles"].forEach(a),["coreprops","extprops","custprops"].forEach(c),c("vba"),c("comments"),c("threadedcomments"),c("drawings"),s("metadata"),c("people"),!e&&r.length>2&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}var Pt={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 If(t){var i=t.lastIndexOf("/");return t.slice(0,i+1)+"_rels/"+t.slice(i+1)+".rels"}function au(t){var i=[an,Se("Relationships",null,{xmlns:Fn.RELS})];return $i(t["!id"]).forEach(function(e){i[i.length]=Se("Relationship",null,t["!id"][e])}),i.length>2&&(i[i.length]="",i[1]=i[1].replace("/>",">")),i.join("")}function ki(t,i,e,n,r,o){if(r||(r={}),t["!id"]||(t["!id"]={}),t["!idx"]||(t["!idx"]=1),i<0)for(i=t["!idx"];t["!id"]["rId"+i];++i);if(t["!idx"]=i+1,r.Id="rId"+i,r.Type=n,r.Target=e,o?r.TargetMode=o:[Pt.HLINK,Pt.XPATH,Pt.XMISS].indexOf(r.Type)>-1&&(r.TargetMode="External"),t["!id"][r.Id])throw new Error("Cannot rewrite rId "+i);return t["!id"][r.Id]=r,t[("/"+r.Target).replace("//","/")]=r,i}function I4(t,i,e){return[' \n',' \n'," \n"].join("")}function Zae(t,i){return[' \n',' \n'," \n"].join("")}function F4(t,i){return'SheetJS '+mf.version+""}var To=[["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 Ow(t,i,e,n,r){null!=r[t]||null==i||""===i||(r[t]=i,i=Ot(i),n[n.length]=e?Se(t,i,e):Qn(t,i))}function O4(t,i){var e=i||{},n=[an,Se("cp:coreProperties",null,{"xmlns:cp":Fn.CORE_PROPS,"xmlns:dc":Fn.dc,"xmlns:dcterms":Fn.dcterms,"xmlns:dcmitype":Fn.dcmitype,"xmlns:xsi":Fn.xsi})],r={};if(!t&&!e.Props)return n.join("");t&&(null!=t.CreatedDate&&Ow("dcterms:created","string"==typeof t.CreatedDate?t.CreatedDate:hw(t.CreatedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},n,r),null!=t.ModifiedDate&&Ow("dcterms:modified","string"==typeof t.ModifiedDate?t.ModifiedDate:hw(t.ModifiedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},n,r));for(var o=0;o!=To.length;++o){var a=To[o],s=e.Props&&null!=e.Props[a[1]]?e.Props[a[1]]:t?t[a[1]]:null;!0===s?s="1":!1===s?s="0":"number"==typeof s&&(s=String(s)),null!=s&&Ow(a[0],s,null,n,r)}return n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}var cl=[["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"]],P4=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function N4(t){var i=[],e=Se;return t||(t={}),t.Application="SheetJS",i[i.length]=an,i[i.length]=Se("Properties",null,{xmlns:Fn.EXT_PROPS,"xmlns:vt":Fn.vt}),cl.forEach(function(n){if(void 0!==t[n[1]]){var r;switch(n[2]){case"string":r=Ot(String(t[n[1]]));break;case"bool":r=t[n[1]]?"true":"false"}void 0!==r&&(i[i.length]=e(n[0],r))}}),i[i.length]=e("HeadingPairs",e("vt:vector",e("vt:variant","Worksheets")+e("vt:variant",e("vt:i4",String(t.Worksheets))),{size:2,baseType:"variant"})),i[i.length]=e("TitlesOfParts",e("vt:vector",t.SheetNames.map(function(n){return""+Ot(n)+""}).join(""),{size:t.Worksheets,baseType:"lpstr"})),i.length>2&&(i[i.length]="",i[1]=i[1].replace("/>",">")),i.join("")}function B4(t){var i=[an,Se("Properties",null,{xmlns:Fn.CUST_PROPS,"xmlns:vt":Fn.vt})];if(!t)return i.join("");var e=1;return $i(t).forEach(function(r){++e,i[i.length]=Se("property",function hae(t,i){switch(typeof t){case"string":var e=Se("vt:lpwstr",Ot(t));return i&&(e=e.replace(/"/g,"_x0022_")),e;case"number":return Se((0|t)==t?"vt:i4":"vt:r8",Ot(String(t)));case"boolean":return Se("vt:bool",t?"true":"false")}if(t instanceof Date)return Se("vt:filetime",hw(t));throw new Error("Unable to serialize "+t)}(t[r],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e,name:Ot(r)})}),i.length>2&&(i[i.length]="",i[1]=i[1].replace("/>",">")),i.join("")}var Pw={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 j4(t,i){var e=re(4),n=re(4);switch(e.write_shift(4,80==t?31:t),t){case 3:n.write_shift(-4,i);break;case 5:(n=re(8)).write_shift(8,i,"f");break;case 11:n.write_shift(4,i?1:0);break;case 64:n=function sse(t){var e=("string"==typeof t?new Date(Date.parse(t)):t).getTime()/1e3+11644473600,n=e%Math.pow(2,32),r=(e-n)/Math.pow(2,32);r*=1e7;var o=(n*=1e7)/Math.pow(2,32)|0;o>0&&(n%=Math.pow(2,32),r+=o);var a=re(8);return a.write_shift(4,n),a.write_shift(4,r),a}(i);break;case 31:case 80:for((n=re(4+2*(i.length+1)+(i.length%2?0:2))).write_shift(4,i.length+1),n.write_shift(0,i,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+i)}return vn([e,n])}var G4=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function mse(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 q4(t,i,e){var n=re(8),r=[],o=[],a=8,s=0,c=re(8),l=re(8);if(c.write_shift(4,2),c.write_shift(4,1200),l.write_shift(4,1),o.push(c),r.push(l),a+=8+c.length,!i){(l=re(8)).write_shift(4,0),r.unshift(l);var d=[re(4)];for(d[0].write_shift(4,t.length),s=0;s-1||P4.indexOf(t[s][0])>-1)&&null!=t[s][1]){var h=t[s][1],f=0;if(i){var m=e[f=+i[t[s][0]]];if("version"==m.p&&"string"==typeof h){var g=h.split(".");h=(+g[0]<<16)+(+g[1]||0)}c=j4(m.t,h)}else{var p=mse(h);-1==p&&(p=31,h=String(h)),c=j4(p,h)}o.push(c),(l=re(8)).write_shift(4,i?f:2+s),r.push(l),a+=8+c.length}var _=8*(o.length+1);for(s=0;s=12?2:1),r="sbcs-cont",o=In;e&&e.biff>=8&&(In=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 s=n?t.read_shift(n,r):"";return In=o,s}function vse(t){var i=t.t||"",n=re(3);n.write_shift(2,i.length),n.write_shift(1,1);var r=re(2*i.length);return r.write_shift(2*i.length,i,"utf16le"),vn([n,r])}function Z4(t,i,e){return e||(e=re(3+2*t.length)),e.write_shift(2,t.length),e.write_shift(1,1),e.write_shift(31,t,"utf16le"),e}function J4(t,i){i||(i=re(6+2*t.length)),i.write_shift(4,1+t.length);for(var e=0;e-1?31:23;switch(n.charAt(0)){case"#":o=28;break;case".":o&=-3}i.write_shift(4,2),i.write_shift(4,o);var a=[8,6815827,6619237,4849780,83];for(e=0;e-1?n.slice(0,r):n;for(i.write_shift(4,2*(s.length+1)),e=0;e-1?n.slice(r+1):"",i)}else{for(a="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(n),t.read_shift(n,"i"),t.read_shift(n,"i")]}function W0(t){var i=t.read_shift(2),e=t.read_shift(2);return{s:{c:t.read_shift(2),r:i},e:{c:t.read_shift(2),r:e}}}function nL(t,i){return i||(i=re(8)),i.write_shift(2,t.s.r),i.write_shift(2,t.e.r),i.write_shift(2,t.s.c),i.write_shift(2,t.e.c),i}function Vw(t,i,e){var n=1536,r=16;switch(e.bookType){case"biff8":case"xla":break;case"biff5":n=1280,r=8;break;case"biff4":n=4,r=6;break;case"biff3":n=3,r=6;break;case"biff2":n=2,r=4;break;default:throw new Error("unsupported BIFF version")}var o=re(r);return o.write_shift(2,n),o.write_shift(2,i),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 Hse(t,i){var e=!i||i.biff>=8?2:1,n=re(8+e*t.name.length);n.write_shift(4,t.pos),n.write_shift(1,t.hs||0),n.write_shift(1,t.dt),n.write_shift(1,t.name.length),i.biff>=8&&n.write_shift(1,1),n.write_shift(e*t.name.length,t.name,i.biff<8?"sbcs":"utf16le");var r=n.slice(0,n.l);return r.l=n.l,r}function oce(t,i,e,n){var r=e&&5==e.biff;n||(n=re(r?3+i.length:5+2*i.length)),n.write_shift(2,t),n.write_shift(r?1:2,i.length),r||n.write_shift(1,1),n.write_shift((r?1:2)*i.length,i,r?"sbcs":"utf16le");var o=n.length>n.l?n.slice(0,n.l):n;return null==o.l&&(o.l=o.length),o}function cL(t,i,e,n){var r=e&&5==e.biff;n||(n=re(r?16:20)),n.write_shift(2,0),t.style?(n.write_shift(2,t.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,t.numFmtId||0),n.write_shift(2,i<<4));var o=0;return t.numFmtId>0&&r&&(o|=1024),n.write_shift(4,o),n.write_shift(4,0),r||n.write_shift(4,0),n.write_shift(2,0),n}function Ice(t){var i=re(24),e=bi(t[0]);i.write_shift(2,e.r),i.write_shift(2,e.r),i.write_shift(2,e.c),i.write_shift(2,e.c);for(var n="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),r=0;r<16;++r)i.write_shift(1,parseInt(n[r],16));return vn([i,Dse(t[1])])}function Rce(t){var i=t[1].Tooltip,e=re(10+2*(i.length+1));e.write_shift(2,2048);var n=bi(t[0]);e.write_shift(2,n.r),e.write_shift(2,n.r),e.write_shift(2,n.c),e.write_shift(2,n.c);for(var r=0;r1048576&&(g=1e6),2!=u&&(p=d.read_shift(2));var _=d.read_shift(2),w=c.codepage||1252;2!=u&&(d.l+=16,d.read_shift(1),0!==d[d.l]&&(w=t[d[d.l]]),d.l+=1,d.l+=2),m&&(d.l+=36);for(var x=[],E={},W=Math.min(d.length,2==u?521:p-10-(f?264:0)),L=m?32:11;d.l0;)if(42!==d[d.l])for(++d.l,l[++D]=[],B=0,B=0;B!=x.length;++B){var N=d.slice(d.l,d.l+x[B].len);d.l+=x[B].len,Rn(N,0);var j=typeof Mt<"u"?Mt.utils.decode(w,N):ka(N);switch(x[B].type){case"C":j.trim().length&&(l[D][B]=j.replace(/\s+$/,""));break;case"D":l[D][B]=8===j.length?new Date(+j.slice(0,4),+j.slice(4,6)-1,+j.slice(6,8)):j;break;case"F":l[D][B]=parseFloat(j.trim());break;case"+":case"I":l[D][B]=m?2147483648^N.read_shift(-4,"i"):N.read_shift(4,"i");break;case"L":switch(j.trim().toUpperCase()){case"Y":case"T":l[D][B]=!0;break;case"N":case"F":l[D][B]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+j+"|")}break;case"M":if(!h)throw new Error("DBF Unexpected MEMO for type "+u.toString(16));l[D][B]="##MEMO##"+(m?parseInt(j.trim(),10):N.read_shift(4));break;case"N":(j=j.replace(/\u0000/g,"").trim())&&"."!=j&&(l[D][B]=+j||0);break;case"@":l[D][B]=new Date(N.read_shift(-8,"f")-621356832e5);break;case"T":l[D][B]=new Date(864e5*(N.read_shift(4)-2440588)+N.read_shift(4));break;case"Y":l[D][B]=N.read_shift(4,"i")/1e4+N.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":l[D][B]=-N.read_shift(-8,"f");break;case"B":if(f&&8==x[B].len){l[D][B]=N.read_shift(8,"f");break}case"G":case"P":N.l+=x[B].len;break;case"0":if("_NullFlags"===x[B].name)break;default:throw new Error("DBF Unsupported data type "+x[B].type)}}else d.l+=_;if(2!=u&&d.l=0&&Co(+l.codepage),"string"==l.type)throw new Error("Cannot write DBF to JS string");var u=Br(),h=s_(s,{header:1,raw:!0,cellDates:!0}),f=h[0],m=h.slice(1),g=s["!cols"]||[],p=0,_=0,w=0,x=1;for(p=0;p250&&(j=250),"C"==(N=((g[p]||{}).DBF||{}).type)&&g[p].DBF.len>j&&(j=g[p].DBF.len),"B"==B&&"N"==N&&(B="N",D[p]=g[p].DBF.dec,j=g[p].DBF.len),L[p]="C"==B||"N"==N?j:o[B]||0,x+=L[p],W[p]=B}else W[p]="?"}var U=u.next(32);for(U.write_shift(4,318902576),U.write_shift(4,m.length),U.write_shift(2,296+32*w),U.write_shift(2,x),p=0;p<4;++p)U.write_shift(4,0);var me=+i[In]||3;for(U.write_shift(4,0|me<<8),t[me]!=+l.codepage&&(l.codepage&&console.error("DBF Unsupported codepage "+In+", using 1252"),In=1252),p=0,_=0;pL[_]&&(he=he.slice(0,L[_])),w=0;w":190,"?":191,"{":223},i=new RegExp("\x1bN("+$i(t).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),e=function(u,h){var f=t[h];return"number"==typeof f?tw(f):f},n=function(u,h,f){var m=h.charCodeAt(0)-32<<4|f.charCodeAt(0)-48;return 59==m?u:tw(m)};function o(u,h){var j,f=u.split(/[\n\r]+/),m=-1,g=-1,p=0,_=0,w=[],x=[],E=null,W={},L=[],D=[],B=[],N=0,Z={Workbook:{WBProps:{},Names:[]}};for(+h.codepage>=0&&Co(+h.codepage);p!==f.length;++p){N=0;var de,U=f[p].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(i,e),me=U.replace(/;;/g,"\0").split(";").map(function(oe){return oe.replace(/\u0000/g,";")});if(U.length>0)switch(me[0]){case"ID":case"E":case"B":case"W":break;case"O":for(_=1;_=1&&ne<=4&&(Z.Workbook.WBProps.date1904=!0)}break;case"P":"P"===me[1].charAt(0)&&x.push(U.slice(3).replace(/;;/g,";"));break;case"NN":var Y={Sheet:0};for(_=1;_-1&&w[qe][mt];if(!z||!z[1])throw new Error("SYLK shared formula cannot find base");F=IL(z[1],{r:m-qe,c:g-mt})}F&&(w[m][g]?w[m][g].f=F:w[m][g]={t:"n",f:F});break;case"F":var V=0;for(_=1;_0?(L[m].hpt=N,L[m].hpx=cu(N)):0===N&&(L[m].hidden=!0);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+U)}V<1&&(E=null);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+U)}}return L.length>0&&(W["!rows"]=L),D.length>0&&(W["!cols"]=D),D.forEach(function(oe){Js(oe)}),h&&h.sheetRows&&(w=w.slice(0,h.sheetRows)),[w,W,Z]}function s(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"+Z0(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 a(u,h){var f=function r(u,h){switch(h.type){case"base64":return o(eo(u),h);case"binary":return o(u,h);case"buffer":return o(Vt&&Buffer.isBuffer(u)?u.toString("binary"):ka(u),h);case"array":return o(Jc(u),h)}throw new Error("Unrecognized type "+h.type)}(u,h),m=f[0],g=f[1],p=f[2],_=yi(h);_.date1904=(((p||{}).Workbook||{}).WBProps||{}).date1904;var w=ru(m,_);$i(g).forEach(function(E){w[E]=g[E]});var x=Ks(w,h);return $i(p).forEach(function(E){x[E]=p[E]}),x.bookType="sylk",x},from_sheet:function d(u,h,f){var _,m=["ID;PSheetJS;N;E"],g=[],p=Kt(u["!ref"]),w=null!=u["!data"],x="\r\n",E=(((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=Lf(f.width)),"number"==typeof f.wpx&&!f.wch&&(f.wch=Nf(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*Bf(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"+(E?";V4":"")+";K47;G100 0.001");for(var W=p.s.r;W<=p.e.r;++W)if(!w||u["!data"][W]){for(var L=[],D=p.s.c;D<=p.e.c;++D)(_=w?u["!data"][W][D]:u[Ht(D)+Yt(W)])&&(null!=_.v||_.f&&!_.F)&&L.push(s(_,0,W,D));g.push(L.join(x))}return m.join(x)+x+g.join(x)+x+"E"+x}}}(),bL=function(){function i(s,c){for(var l=s.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],_=l[++h]||"";1&(_.match(/["]/g)||[]).length&&h=0||d.indexOf(",")>=0||d.indexOf(";")>=0?function o(d,u){var h=u||{},f="";null!=on&&null==h.dense&&(h.dense=on);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,_=0,w=0,x=0,E=0,W=f.charCodeAt(0),L=!1,D=0,B=d.charCodeAt(0),N=null!=h.dateNF?function Uoe(t){var i="number"==typeof t?ut[t]:t;return i=i.replace(NP,"(\\d+)"),new RegExp("^"+i+"$")}(h.dateNF):null;function j(){var Z=d.slice(x,E);"\r"==Z.slice(-1)&&(Z=Z.slice(0,-1));var U={};if('"'==Z.charAt(0)&&'"'==Z.charAt(Z.length-1)&&(Z=Z.slice(1,-1).replace(/""/g,'"')),0===Z.length?U.t="z":h.raw||0===Z.trim().length?(U.t="s",U.v=Z):61==Z.charCodeAt(0)?34==Z.charCodeAt(1)&&34==Z.charCodeAt(Z.length-1)?(U.t="s",U.v=Z.slice(2,-1).replace(/""/g,'"')):function Due(t){return 1!=t.length}(Z)?(U.t="n",U.f=Z.slice(1)):(U.t="s",U.v=Z):"TRUE"==Z?(U.t="b",U.v=!0):"FALSE"==Z?(U.t="b",U.v=!1):isNaN(w=to(Z))?!isNaN((w=tu(Z)).getDate())||N&&Z.match(N)?(U.z=h.dateNF||ut[14],N&&Z.match(N)&&(Z=function zoe(t,i,e){var n=-1,r=-1,o=-1,a=-1,s=-1,c=-1;(i.match(NP)||[]).forEach(function(u,h){var f=parseInt(e[h+1],10);switch(u.toLowerCase().charAt(0)){case"y":n=f;break;case"d":o=f;break;case"h":a=f;break;case"s":c=f;break;case"m":a>=0?s=f:r=f}}),c>=0&&-1==s&&r>=0&&(s=r,r=-1);var l=(""+(n>=0?n:(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"+(a>=0?a:0)).slice(-2)+":"+("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(c>=0?c:0)).slice(-2);return-1==a&&-1==s&&-1==c?l:-1==n&&-1==r&&-1==o?d:l+"T"+d}(0,h.dateNF,Z.match(N)||[]),w=ji(Z,1)),h.cellDates?(U.t="d",U.v=w):(U.t="n",U.v=xn(w)),!1!==h.cellText&&(U.w=Lr(U.z,U.v instanceof Date?xn(U.v):U.v)),h.cellNF||delete U.z):(U.t="s",U.v=Z):(U.t="n",!1!==h.cellText&&(U.w=Z),U.v=w),"z"==U.t||(h.dense?(m["!data"][p]||(m["!data"][p]=[]),m["!data"][p][_]=U):m[zt({c:_,r:p})]=U),B=d.charCodeAt(x=E+1),g.e.c<_&&(g.e.c=_),g.e.r0&&j(),m["!ref"]=Et(g),m}(d,u):ru(function i(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,_=0,w=0;w<=g;++w)-1==(_=m[w].indexOf(" "))?_=m[w].length:_++,p=Math.max(p,_);for(w=0;w<=g;++w){f[w]=[];var x=0;for(t(m[w].slice(0,p).trim(),f,w,x,h),x=1;x<=(m[w].length-p)/10+1;++x)t(m[w].slice(p+10*(x-1),p+10*x).trim(),f,w,x,h)}return h.sheetRows&&(f=f.slice(0,h.sheetRows)),f}(d,u),u)}function s(d,u){var h="",f="string"==u.type?[0,0,0,0]:function cC(t,i){var e="";switch((i||{}).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=eo(t.slice(0,12));break;case"binary":e=t;break;default:throw new Error("Unrecognized type "+(i&&i.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=eo(d);break;case"binary":case"string":h=d;break;case"buffer":h=65001==u.codepage?d.toString("utf8"):u.codepage&&typeof Mt<"u"?Mt.utils.decode(u.codepage,d):Vt&&Buffer.isBuffer(d)?d.toString("binary"):ka(d);break;case"array":h=Jc(d);break;default:throw new Error("Unrecognized type "+u.type)}return 239==f[0]&&187==f[1]&&191==f[2]?h=Ci(h.slice(3)):"string"!=u.type&&"buffer"!=u.type&&65001==u.codepage?h=Ci(h):"binary"==u.type&&typeof Mt<"u"&&u.codepage&&(h=Mt.utils.decode(u.codepage,Mt.utils.encode(28591,h))),"socialcalc:version:"==h.slice(0,19)?vL.to_sheet("string"==u.type?h:Ci(h),u):a(h,u)}return{to_workbook:function c(d,u){return Ks(s(d,u),u)},to_sheet:s,from_sheet:function l(d){for(var f,u=[],h=Kt(d["!ref"]),m=null!=d["!data"],g=h.s.r;g<=h.e.r;++g){for(var p=[],_=h.s.c;_<=h.e.c;++_){var w=zt({r:g,c:_});if((f=m?(d["!data"][g]||[])[_]:d[w])&&null!=f.v){for(var x=(f.w||(Ea(f),f.w)||"").slice(0,10);x.length<10;)x+=" ";p.push(x+(0===_?" ":""))}else p.push(" ")}u.push(p.join(""))}return u.join("\n")}}}(),hl=function(){function t(F,K,z){if(F){Rn(F,F.l||0);for(var V=z.Enum||ce;F.l255||Re.s.r>999999)break;Re.e.cJt&&(Re.s.c=Jt),Ve=Ze.read_shift(4),Re.s.r>Ve&&(Re.s.r=Ve),Ve=Ze.read_shift(4),Re.e.rVe&&(Re.s.r=Ve),Re.e.r0&&T>=0;){if(32&Si)switch(31&Si){case 2:oi={t:"n",v:oi.v+mr&65535};break;case 3:(oi={t:"n",v:oi.v+mr&65535}).v>32767&&(oi.v-=65536);break;case 7:oi={t:"s",v:oe[bt=bt+mr>>>0]};break;default:throw"Cannot apply delta for QPW cell type "+(31&Si)}else switch(31&Si){case 1:oi={t:"z"};break;case 2:oi={t:"n",v:Ze.read_shift(2)};break;case 7:oi={t:"s",v:oe[bt=Ze.read_shift(4)-1]};break;default:throw"Cannot apply repeat for QPW cell type "+(31&Si)}!z.sheetStubs&&"z"==oi.t||(null!=V["!data"]?(V["!data"][Ve]||(V["!data"][Ve]=[]),V["!data"][Ve][Jt]=oi):V[fr+Yt(Ve)]=oi),++Ve,--T}}}F.l+=si}return $t}(F,K);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])z.Enum=ce,t(F,function(Ne,fr,oi){switch(oi){case 0:z.vers=Ne,Ne>=4096&&(z.qpro=!0);break;case 255:z.vers=Ne,z.works=!0;break;case 6:Ve=Ne;break;case 204:Ne&&(_e=Ne);break;case 222:_e=Ne;break;case 15:case 51:(!z.qpro&&!z.works||51==oi)&&Ne[1].v.charCodeAt(0)<48&&(Ne[1].v=Ne[1].v.slice(1)),(z.works||z.works2)&&(Ne[1].v=Ne[1].v.replace(/\r\n/g,"\n"));case 13:case 14:case 16:14==oi&&112==(112&Ne[2])&&(15&Ne[2])>1&&(15&Ne[2])<15&&(Ne[1].z=z.dateNF||ut[14],z.cellDates&&(Ne[1].t="d",Ne[1].v=F0(Ne[1].v))),z.qpro&&Ne[3]>Ie&&(V["!ref"]=Et(Ve),Re[oe]=V,T.push(oe),V={},z.dense&&(Jt=V["!data"]=[]),Ve={s:{r:0,c:0},e:{r:0,c:0}},Ie=Ne[3],oe=_e||"Sheet"+(Ie+1),_e="");var Si=z.dense?(Jt[Ne[0].r]||[])[Ne[0].c]:V[zt(Ne[0])];if(Si){Si.t=Ne[1].t,Si.v=Ne[1].v,null!=Ne[1].z&&(Si.z=Ne[1].z),null!=Ne[1].f&&(Si.f=Ne[1].f);break}z.dense?(Jt[Ne[0].r]||(Jt[Ne[0].r]=[]),Jt[Ne[0].r][Ne[0].c]=Ne[1]):V[zt(Ne[0])]=Ne[1];break;case 21509:z.works2=!0}},z);else{if(26!=F[2]&&14!=F[2])throw new Error("Unrecognized LOTUS BOF "+F[2]);z.Enum=qe,14==F[2]&&(z.qpro=!0,F.l=0),t(F,function(Ne,fr,oi){switch(oi){case 204:oe=Ne;break;case 22:Ne[1].v.charCodeAt(0)<48&&(Ne[1].v=Ne[1].v.slice(1)),Ne[1].v=Ne[1].v.replace(/\x0F./g,function(Si){return String.fromCharCode(Si.charCodeAt(1)-32)}).replace(/\r\n/g,"\n");case 23:case 24:case 25:case 37:case 39:case 40:if(Ne[3]>Ie&&(V["!ref"]=Et(Ve),Re[oe]=V,T.push(oe),V={},z.dense&&(Jt=V["!data"]=[]),Ve={s:{r:0,c:0},e:{r:0,c:0}},oe="Sheet"+((Ie=Ne[3])+1)),$t>0&&Ne[0].r>=$t)break;z.dense?(Jt[Ne[0].r]||(Jt[Ne[0].r]=[]),Jt[Ne[0].r][Ne[0].c]=Ne[1]):V[zt(Ne[0])]=Ne[1],Ve.e.c=128?95:_e)}return V.write_shift(1,0),V}function m(F,K,z){var V=re(7);return V.write_shift(1,255),V.write_shift(2,K),V.write_shift(2,F),V.write_shift(2,z,"i"),V}function p(F,K,z){var V=re(13);return V.write_shift(1,255),V.write_shift(2,K),V.write_shift(2,F),V.write_shift(8,z,"f"),V}function w(F,K,z){var V=32768&K;return K=(V?F:0)+((K&=-32769)>=8192?K-16384:K),(V?"":"$")+(z?Ht(K):Yt(K))}var x={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]},E=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function L(F){var K=[{c:0,r:0},{t:"n",v:0},0];return K[0].r=F.read_shift(2),K[3]=F[F.l++],K[0].c=F[F.l++],K}function B(F,K,z,V){var oe=re(6+V.length);oe.write_shift(2,F),oe.write_shift(1,z),oe.write_shift(1,K),oe.write_shift(1,39);for(var _e=0;_e=128?95:Ie)}return oe.write_shift(1,0),oe}function j(F,K){var z=L(F),V=F.read_shift(4),oe=F.read_shift(4),_e=F.read_shift(2);if(65535==_e)return 0===V&&3221225472===oe?(z[1].t="e",z[1].v=15):0===V&&3489660928===oe?(z[1].t="e",z[1].v=42):z[1].v=0,z;var Ie=32768&_e;return _e=(32767&_e)-16446,z[1].v=(1-2*Ie)*(oe*Math.pow(2,_e+32)+V*Math.pow(2,_e)),z}function Z(F,K,z,V){var oe=re(14);if(oe.write_shift(2,F),oe.write_shift(1,z),oe.write_shift(1,K),0==V)return oe.write_shift(4,0),oe.write_shift(4,0),oe.write_shift(2,65535),oe;var _e=0,Ie=0,T=0;return V<0&&(_e=1,V=-V),Ie=0|Math.log2(V),2147483648&(T=(V/=Math.pow(2,Ie-31))>>>0)||(++Ie,T=(V/=2)>>>0),V-=T,T|=2147483648,T>>>=0,V*=Math.pow(2,32),oe.write_shift(4,V>>>0),oe.write_shift(4,T),oe.write_shift(2,Ie+=16383+(_e?32768:0)),oe}function be(F,K){var z=L(F),V=F.read_shift(8,"f");return z[1].v=V,z}function ne(F,K){return 0==F[F.l+K-1]?F.read_shift(K,"cstr"):""}function Le(F,K){var z=re(5+F.length);z.write_shift(2,14e3),z.write_shift(2,K);for(var V=0;V127?95:oe}return z[z.l++]=0,z}var ce={0:{n:"BOF",f:cn},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function s(F,K,z){var V={s:{c:0,r:0},e:{c:0,r:0}};return 8==K&&z.qpro?(V.s.c=F.read_shift(1),F.l++,V.s.r=F.read_shift(2),V.e.c=F.read_shift(1),F.l++,V.e.r=F.read_shift(2),V):(V.s.c=F.read_shift(2),V.s.r=F.read_shift(2),12==K&&z.qpro&&(F.l+=2),V.e.c=F.read_shift(2),V.e.r=F.read_shift(2),12==K&&z.qpro&&(F.l+=2),65535==V.s.c&&(V.s.c=V.e.c=V.s.r=V.e.r=0),V)}},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,K,z){var V=l(F,0,z);return V[1].v=F.read_shift(2,"i"),V}},14:{n:"NUMBER",f:function g(F,K,z){var V=l(F,0,z);return V[1].v=F.read_shift(8,"f"),V}},15:{n:"LABEL",f:function d(F,K,z){var V=F.l+K,oe=l(F,0,z);if(oe[1].t="s",20768==z.vers){F.l++;var _e=F.read_shift(1);return oe[1].v=F.read_shift(_e,"utf8"),oe}return z.qpro&&F.l++,oe[1].v=F.read_shift(V-F.l,"cstr"),oe}},16:{n:"FORMULA",f:function _(F,K,z){var V=F.l+K,oe=l(F,0,z);if(oe[1].v=F.read_shift(8,"f"),z.qpro)F.l=V;else{var _e=F.read_shift(2);(function W(F,K){Rn(F,0);for(var z=[],V=0,oe="",_e="",Ie="",Re="";F.lz.length)return void console.error("WK1 bad formula parse 0x"+T.toString(16)+":|"+z.join("|")+"|");var $t=z.slice(-V);z.length-=V,z.push(x[T][0]+"("+$t.join(",")+")")}}}1==z.length?K[1].f=""+z[0]:console.error("WK1 bad formula parse |"+z.join("|")+"|")})(F.slice(F.l,F.l+_e),oe),F.l+=_e}return oe}},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,K,z){var V=F.l+K,oe=l(F,0,z);if(oe[1].t="s",20768==z.vers){var _e=F.read_shift(1);return oe[1].v=F.read_shift(_e,"utf8"),oe}return oe[1].v=F.read_shift(V-F.l,"cstr"),oe}},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:ne},222:{n:"SHEETNAMELP",f:function Y(F,K){var z=F[F.l++];z>K-1&&(z=K-1);for(var V="";V.length>1;if(1&z[1].v)switch(7&V){case 0:V=5e3*(V>>3);break;case 1:V=500*(V>>3);break;case 2:V=(V>>3)/20;break;case 3:V=(V>>3)/200;break;case 4:V=(V>>3)/2e3;break;case 5:V=(V>>3)/2e4;break;case 6:V=(V>>3)/16;break;case 7:V=(V>>3)/64}return z[1].v=V,z}},25:{n:"FORMULA19",f:function U(F,K){var z=j(F);return F.l+=K-14,z}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function se(F,K){for(var z={},V=F.l+K;F.l>6,z}},38:{n:"??"},39:{n:"NUMBER27",f:be},40:{n:"FORMULA28",f:function de(F,K){var z=be(F);return F.l+=K-12,z}},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:ne},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 he(F,K,z){if(z.qpro&&!(K<21)){var V=F.read_shift(1);return F.l+=17,F.l+=1,F.l+=2,[V,F.read_shift(K-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 n(F,K){var z=K||{};if(+z.codepage>=0&&Co(+z.codepage),"string"==z.type)throw new Error("Cannot write WK1 to JS string");var V=Br(),oe=Kt(F["!ref"]),_e=null!=F["!data"],Ie=[];Me(V,0,function o(F){var K=re(2);return K.write_shift(2,F),K}(1030)),Me(V,6,function c(F){var K=re(8);return K.write_shift(2,F.s.c),K.write_shift(2,F.s.r),K.write_shift(2,F.e.c),K.write_shift(2,F.e.r),K}(oe));for(var Re=Math.min(oe.e.r,8191),T=oe.s.c;T<=oe.e.c;++T)Ie[T]=Ht(T);for(var bt=oe.s.r;bt<=Re;++bt){var Jt=Yt(bt);for(T=oe.s.c;T<=oe.e.c;++T){var Ve=_e?(F["!data"][bt]||[])[T]:F[Ie[T]+Jt];Ve&&"z"!=Ve.t&&("n"==Ve.t?(0|Ve.v)==Ve.v&&Ve.v>=-32768&&Ve.v<=32767?Me(V,13,m(bt,T,Ve.v)):Me(V,14,p(bt,T,Ve.v)):Me(V,15,u(bt,T,Ea(Ve).slice(0,239))))}}return Me(V,1),V.end()},book_to_wk3:function r(F,K){var z=K||{};if(+z.codepage>=0&&Co(+z.codepage),"string"==z.type)throw new Error("Cannot write WK3 to JS string");var V=Br();Me(V,0,function a(F){var K=re(26);K.write_shift(2,4096),K.write_shift(2,4),K.write_shift(4,0);for(var z=0,V=0,oe=0,_e=0;_e8191&&(z=8191),K.write_shift(2,z),K.write_shift(1,oe),K.write_shift(1,V),K.write_shift(2,0),K.write_shift(2,0),K.write_shift(1,1),K.write_shift(1,2),K.write_shift(4,0),K.write_shift(4,0),K}(F));for(var oe=0,_e=0;oe=0;--o)i=((16384&i?1:0)|i<<1&32767)^e[o];return 52811^i}function Pf(t){for(var i=0,e=1;3!=i;++i)e=256*e+(t[i]>255?255:t[i]<0?0:t[i]);return e.toString(16).toUpperCase().slice(1)}var ur=6;function Lf(t){return Math.floor((t+Math.round(128/ur)/256)*ur)}function Nf(t){return Math.floor((t-5)/ur*100+.5)/100}function Q0(t){return Math.round((t*ur+5)/ur*256)/256}function Js(t){t.width?(t.wpx=Lf(t.width),t.wch=Nf(t.wpx),t.MDW=ur):t.wpx?(t.wch=Nf(t.wpx),t.width=Q0(t.wch),t.MDW=ur):"number"==typeof t.wch&&(t.width=Q0(t.wch),t.wpx=Lf(t.width),t.MDW=ur),t.customWidth&&delete t.customWidth}var DL=96;function Bf(t){return 96*t/DL}function cu(t){return t*DL/96}function nde(t,i,e){e||(e=re(6+4*i.length)),e.write_shift(2,t),Pn(i,e);var n=e.length>e.l?e.slice(0,e.l):e;return null==e.l&&(e.l=e.length),n}var Ww,ade=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],sde=sr;function SL(t,i){i||(i=re(84)),Ww||(Ww=M0(ade));var e=Ww[t.patternType];null==e&&(e=40),i.write_shift(4,e);var n=0;if(40!=e)for(B0({auto:1},i),B0({auto:1},i);n<12;++n)i.write_shift(4,0);else{for(;n<4;++n)i.write_shift(4,0);for(;n<12;++n)i.write_shift(4,0)}return i.length>i.l?i.slice(0,i.l):i}function EL(t,i,e){return e||(e=re(16)),e.write_shift(2,i||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 Vf(t,i){return i||(i=re(10)),i.write_shift(1,0),i.write_shift(1,0),i.write_shift(4,0),i.write_shift(4,0),i}var lde=sr;function Cde(t,i){var e=Br();return fe(e,278),function mde(t,i){if(i){var e=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var r=n[0];r<=n[1];++r)null!=i[r]&&++e}),0!=e&&(fe(t,615,Qo(e)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var r=n[0];r<=n[1];++r)null!=i[r]&&fe(t,44,nde(r,i[r]))}),fe(t,616))}}(e,t.SSF),function pde(t){fe(t,611,Qo(1)),fe(t,43,function ode(t,i){i||(i=re(153)),i.write_shift(2,20*t.sz),function Nae(t,i){i||(i=re(2)),i.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)),i.write_shift(1,0)}(t,i),i.write_shift(2,t.bold?700:400);var e=0;"superscript"==t.vertAlign?e=1:"subscript"==t.vertAlign&&(e=2),i.write_shift(2,e),i.write_shift(1,t.underline||0),i.write_shift(1,t.family||0),i.write_shift(1,t.charset||0),i.write_shift(1,0),B0(t.color,i);var n=0;return"major"==t.scheme&&(n=1),"minor"==t.scheme&&(n=2),i.write_shift(1,n),Pn(t.name,i),i.length>i.l?i.slice(0,i.l):i}({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),fe(t,612)}(e),function gde(t){fe(t,603,Qo(2)),fe(t,45,SL({patternType:"none"})),fe(t,45,SL({patternType:"gray125"})),fe(t,604)}(e),function _de(t){fe(t,613,Qo(1)),fe(t,46,function dde(t,i){return i||(i=re(51)),i.write_shift(1,0),Vf(0,i),Vf(0,i),Vf(0,i),Vf(0,i),Vf(0,i),i.length>i.l?i.slice(0,i.l):i}()),fe(t,614)}(e),function bde(t){fe(t,626,Qo(1)),fe(t,47,EL({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),fe(t,627)}(e),function vde(t,i){fe(t,617,Qo(i.length)),i.forEach(function(e){fe(t,47,EL(e,0))}),fe(t,618)}(e,i.cellXfs),function xde(t){fe(t,619,Qo(1)),fe(t,48,function ude(t,i){return i||(i=re(52)),i.write_shift(4,t.xfId),i.write_shift(2,1),i.write_shift(1,+t.builtinId),i.write_shift(1,0),Af(t.name||"",i),i.length>i.l?i.slice(0,i.l):i}({xfId:0,builtinId:0,name:"Normal"})),fe(t,620)}(e),function yde(t){fe(t,505,Qo(0)),fe(t,506)}(e),function wde(t){fe(t,508,function hde(t,i,e){var n=re(2052);return n.write_shift(4,t),Af(i,n),Af(e,n),n.length>n.l?n.slice(0,n.l):n}(0,"TableStyleMedium9","PivotStyleMedium4")),fe(t,509)}(e),fe(e,279),e.end()}function Gw(t,i){if(i&&i.themeXLSX)return i.themeXLSX;if(t&&"string"==typeof t.raw)return t.raw;var e=[an];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 ML(t,i){var e=[21600,21600],n=["m0,0l0",e[1],e[0],e[1],e[0],"0xe"].join(","),r=[Se("xml",null,{"xmlns:v":io.v,"xmlns:o":io.o,"xmlns:x":io.x,"xmlns:mv":io.mv}).replace(/\/>/,">"),Se("o:shapelayout",Se("o:idmap",null,{"v:ext":"edit",data:t}),{"v:ext":"edit"})],o=65536*t,a=i||[];return a.length>0&&r.push(Se("v:shapetype",[Se("v:stroke",null,{joinstyle:"miter"}),Se("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202",coordsize:e.join(","),"o:spt":202,path:n})),a.forEach(function(s){++o,r.push(function nue(t,i){var e=bi(t[0]),n={color2:"#BEFF82",type:"gradient"};"gradient"==n.type&&(n.angle="-180");var r="gradient"==n.type?Se("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,o=Se("v:fill",r,n);return["",o,Se("v:shadow",null,{on:"t",obscured:"t"}),Se("v:path",null,{"o:connecttype":"none"}),'
','',"","",Qn("x:Anchor",[e.c+1,0,e.r+1,0,e.c+3,20,e.r+5,20].join(",")),Qn("x:AutoFill","False"),Qn("x:Row",String(e.r)),Qn("x:Column",String(e.c)),t[1].hidden?"":"","",""].join("")}(s,o))}),r.push(""),r.join("")}function oue(t){var i=[an,Se("comments",null,{xmlns:el[0]})],e=[];return i.push(""),t.forEach(function(n){n[1].forEach(function(r){var o=Ot(r.a);-1==e.indexOf(o)&&(e.push(o),i.push(""+o+"")),r.T&&r.ID&&-1==e.indexOf("tc="+r.ID)&&(e.push("tc="+r.ID),i.push("tc="+r.ID+""))})}),0==e.length&&(e.push("SheetJ5"),i.push("SheetJ5")),i.push(""),i.push(""),t.forEach(function(n){var r=0,o=[],a=0;if(n[1][0]&&n[1][0].T&&n[1][0].ID&&(r=e.indexOf("tc="+n[1][0].ID)),n[1].forEach(function(l){l.a&&(r=e.indexOf(Ot(l.a))),l.T&&++a,o.push(null==l.t?"":Ot(l.t))}),0===a)n[1].forEach(function(l){i.push(''),i.push(Qn("t",null==l.t?"":Ot(l.t))),i.push("")});else{i.push('');for(var s="Comment:\n "+o[0]+"\n",c=1;c")}}),i.push(""),i.length>2&&(i[i.length]="",i[1]=i[1].replace("/>",">")),i.join("")}function sue(t,i,e){var n=[an,Se("ThreadedComments",null,{xmlns:Fn.TCMNT}).replace(/[\/]>/,">")];return t.forEach(function(r){var o="";(r[1]||[]).forEach(function(a,s){if(a.T){a.a&&-1==i.indexOf(a.a)&&i.push(a.a);var c={ref:r[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+e.tcid++).slice(-12)+"}"};0==s?o=c.id:c.parentId=o,a.ID=c.id,a.a&&(c.personId="{54EE7950-7262-4200-6969-"+("000000000000"+i.indexOf(a.a)).slice(-12)+"}"),n.push(Se("threadedComment",Qn("text",a.t||""),c))}else delete a.ID})}),n.push(""),n.join("")}var hue=cr;function pue(t){var i=Br(),e=[];return fe(i,628),fe(i,630),t.forEach(function(n){n[1].forEach(function(r){e.indexOf(r.a)>-1||(e.push(r.a.slice(0,54)),fe(i,632,function fue(t){return Pn(t.slice(0,54))}(r.a)))})}),fe(i,631),fe(i,633),t.forEach(function(n){n[1].forEach(function(r){r.iauthor=e.indexOf(r.a);var o={s:bi(n[0]),e:bi(n[0])};fe(i,635,function uue(t,i){return null==i&&(i=re(36)),i.write_shift(4,t[1].iauthor),ou(t[0],i),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,0),i}([o,r])),r.t&&r.t.length>0&&fe(i,637,function Iae(t,i){var e=!1;return null==i&&(e=!0,i=re(23+4*t.t.length)),i.write_shift(1,1),Pn(t.t,i),i.write_shift(4,1),function Tae(t,i){i||(i=re(4)),i.write_shift(2,t.ich||0),i.write_shift(2,t.ifnt||0)}({ich:0,ifnt:0},i),e?i.slice(0,i.l):i}(r)),fe(i,636),delete r.iauthor})}),fe(i,634),fe(i,629),i.end()}var vue=["xlsb","xlsm","xlam","biff8","xla"],fl=function(){var t=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,i={r:0,c:0};function e(n,r,o,a){var s=!1,c=!1;0==o.length?c=!0:"["==o.charAt(0)&&(c=!0,o=o.slice(1,-1)),0==a.length?s=!0:"["==a.charAt(0)&&(s=!0,a=a.slice(1,-1));var l=o.length>0?0|parseInt(o,10):0,d=a.length>0?0|parseInt(a,10):0;return s?d+=i.c:--d,c?l+=i.r:--l,r+(s?"":"$")+Ht(d)+(c?"":"$")+Yt(l)}return function(r,o){return i=o,r.replace(t,e)}}(),qw=/(^|[^._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,Z0=function(){return function(i,e){return i.replace(qw,function(n,r,o,a,s,c){var l=yw(a)-(o?0:e.c),d=xw(c)-(s?0:e.r);return r+"R"+("$"==s?d+1:0==d?"":"["+d+"]")+"C"+("$"==o?l+1:0==l?"":"["+l+"]")})}}();function IL(t,i){return t.replace(qw,function(e,n,r,o,a,s){return n+("$"==r?r+o:Ht(yw(o)+i.c))+("$"==a?a+s:Yt(xw(s)+i.r))})}function Cn(t){t.l+=1}function ec(t,i){var e=t.read_shift(1==i?1:2);return[16383&e,e>>14&1,e>>15&1]}function RL(t,i,e){var n=2;if(e){if(e.biff>=2&&e.biff<=5)return OL(t);12==e.biff&&(n=4)}var r=t.read_shift(n),o=t.read_shift(n),a=ec(t,2),s=ec(t,2);return{s:{r,c:a[0],cRel:a[1],rRel:a[2]},e:{r:o,c:s[0],cRel:s[1],rRel:s[2]}}}function OL(t){var i=ec(t,2),e=ec(t,2),n=t.read_shift(1),r=t.read_shift(1);return{s:{r:i[0],c:n,cRel:i[1],rRel:i[2]},e:{r:e[0],c:r,cRel:e[1],rRel:e[2]}}}function PL(t,i,e){if(e&&e.biff>=2&&e.biff<=5)return function Eue(t){var i=ec(t,2),e=t.read_shift(1);return{r:i[0],c:e,cRel:i[1],rRel:i[2]}}(t);var n=t.read_shift(e&&12==e.biff?4:2),r=ec(t,2);return{r:n,c:r[0],cRel:r[1],rRel:r[2]}}function Tue(t){var i=t.read_shift(2),e=t.read_shift(2);return{r:i,c:255&e,fQuoted:!!(16384&e),cRel:e>>15,rRel:e>>15}}function LL(t){var i=1&t[t.l+1];return t.l+=4,[i,1]}function NL(t){return[t.read_shift(1),t.read_shift(1)]}function nhe(t,i){var e=[t.read_shift(1)];if(12==i)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 sn(t,i){return 1===t.read_shift(i)}(t,1)?"TRUE":"FALSE",12!=i&&(t.l+=7);break;case 37:case 16:e[1]=ms[t[t.l]],t.l+=12==i?4:8;break;case 0:t.l+=8;break;case 1:e[1]=lr(t);break;case 2:e[1]=function dl(t,i,e){if(e.biff>5)return function Of(t,i,e){var n=t.read_shift(e&&2==e.biff?1:2);return 0===n?(t.l++,""):function ll(t,i,e){if(e){if(e.biff>=2&&e.biff<=5)return t.read_shift(i,"cpstr");if(e.biff>=12)return t.read_shift(i,"dbcs-cont")}var r=t.read_shift(1);return t.read_shift(i,0===r?"sbcs-cont":"dbcs-cont")}(t,n,e)}(t,0,e);var n=t.read_shift(1);return 0===n?(t.l++,""):t.read_shift(n,e.biff<=4||!t.lens?"cpstr":"sbcs-cont")}(t,0,{biff:i>0&&i<8?2:i});break;default:throw new Error("Bad SerAr: "+e[0])}return e}function rhe(t,i,e){for(var n=t.read_shift(12==e.biff?4:2),r=[],o=0;o!=n;++o)r.push((12==e.biff?ol:W0)(t,8));return r}function ohe(t,i,e){var n=0,r=0;12==e.biff?(n=t.read_shift(4),r=t.read_shift(4)):(r=1+t.read_shift(1),n=1+t.read_shift(2)),e.biff>=2&&e.biff<8&&(--n,0==--r&&(r=256));for(var o=0,a=[];o!=n&&(a[o]=[]);++o)for(var s=0;s!=r;++s)a[o][s]=nhe(t,e.biff);return a}function Hf(t,i,e){return t.l+=2,[Tue(t)]}function Xw(t){return t.l+=6,[]}function BL(t){return t.l+=2,[cn(t),1&t.read_shift(2)]}var Dhe=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"],VL={1:{n:"PtgExp",f:function Kue(t,i,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:sr},3:{n:"PtgAdd",f:Cn},4:{n:"PtgSub",f:Cn},5:{n:"PtgMul",f:Cn},6:{n:"PtgDiv",f:Cn},7:{n:"PtgPower",f:Cn},8:{n:"PtgConcat",f:Cn},9:{n:"PtgLt",f:Cn},10:{n:"PtgLe",f:Cn},11:{n:"PtgEq",f:Cn},12:{n:"PtgGe",f:Cn},13:{n:"PtgGt",f:Cn},14:{n:"PtgNe",f:Cn},15:{n:"PtgIsect",f:Cn},16:{n:"PtgUnion",f:Cn},17:{n:"PtgRange",f:Cn},18:{n:"PtgUplus",f:Cn},19:{n:"PtgUminus",f:Cn},20:{n:"PtgPercent",f:Cn},21:{n:"PtgParen",f:Cn},22:{n:"PtgMissArg",f:Cn},23:{n:"PtgStr",f:function ihe(t,i,e){return t.l++,Rf(t,0,e)}},26:{n:"PtgSheet",f:function The(t,i,e){return t.l+=5,t.l+=2,t.l+=2==e.biff?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function Mhe(t,i,e){return t.l+=2==e.biff?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function Zue(t){return t.l++,ms[t.read_shift(1)]}},29:{n:"PtgBool",f:function ehe(t){return t.l++,0!==t.read_shift(1)}},30:{n:"PtgInt",f:function Jue(t){return t.l++,t.read_shift(2)}},31:{n:"PtgNum",f:function the(t){return t.l++,lr(t)}},32:{n:"PtgArray",f:function Lue(t,i,e){var n=(96&t[t.l++])>>5;return t.l+=2==e.biff?6:12==e.biff?14:7,[n]}},33:{n:"PtgFunc",f:function que(t,i,e){var n=(96&t[t.l])>>5;t.l+=1;var r=t.read_shift(e&&e.biff<=3?1:2);return[sfe[r],$L[r],n]}},34:{n:"PtgFuncVar",f:function Xue(t,i,e){var n=t[t.l++],r=t.read_shift(1),o=e&&e.biff<=3?[88==n?-1:0,t.read_shift(1)]:function Que(t){return[t[t.l+1]>>7,32767&t.read_shift(2)]}(t);return[r,(0===o[0]?$L:afe)[o[1]]]}},35:{n:"PtgName",f:function ahe(t,i,e){var n=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[n,0,o]}},36:{n:"PtgRef",f:function jue(t,i,e){var n=(96&t[t.l])>>5;return t.l+=1,[n,PL(t,0,e)]}},37:{n:"PtgArea",f:function Iue(t,i,e){return[(96&t[t.l++])>>5,RL(t,0,e)]}},38:{n:"PtgMemArea",f:function lhe(t,i,e){var n=t.read_shift(1)>>>5&3;return t.l+=e&&2==e.biff?3:4,[n,t.read_shift(e&&2==e.biff?1:2)]}},39:{n:"PtgMemErr",f:sr},40:{n:"PtgMemNoMem",f:sr},41:{n:"PtgMemFunc",f:function dhe(t,i,e){return[t.read_shift(1)>>>5&3,t.read_shift(e&&2==e.biff?1:2)]}},42:{n:"PtgRefErr",f:function uhe(t,i,e){var n=t.read_shift(1)>>>5&3;return t.l+=4,e.biff<8&&t.l--,12==e.biff&&(t.l+=2),[n]}},43:{n:"PtgAreaErr",f:function Rue(t,i,e){var n=(96&t[t.l++])>>5;return t.l+=e&&e.biff>8?12:e.biff<8?6:8,[n]}},44:{n:"PtgRefN",f:function Wue(t,i,e){var n=(96&t[t.l])>>5;t.l+=1;var r=function Mue(t,i,e){var n=e&&e.biff?e.biff:8;if(n>=2&&n<=5)return function Aue(t){var i=t.read_shift(2),e=t.read_shift(1),n=(32768&i)>>15,r=(16384&i)>>14;return i&=16383,1==n&&i>=8192&&(i-=16384),1==r&&e>=128&&(e-=256),{r:i,c:e,cRel:r,rRel:n}}(t);var r=t.read_shift(n>=12?4:2),o=t.read_shift(2),a=(16384&o)>>14,s=(32768&o)>>15;if(o&=16383,1==s)for(;r>524287;)r-=1048576;if(1==a)for(;o>8191;)o-=16384;return{r,c:o,cRel:a,rRel:s}}(t,0,e);return[n,r]}},45:{n:"PtgAreaN",f:function Pue(t,i,e){var n=(96&t[t.l++])>>5,r=function Sue(t,i,e){if(e.biff<8)return OL(t);var n=t.read_shift(12==e.biff?4:2),r=t.read_shift(12==e.biff?4:2),o=ec(t,2),a=ec(t,2);return{s:{r:n,c:o[0],cRel:o[1],rRel:o[2]},e:{r,c:a[0],cRel:a[1],rRel:a[2]}}}(t,0,e);return[n,r]}},46:{n:"PtgMemAreaN",f:function Ahe(t){return[t.read_shift(1)>>>5&3,t.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function Ihe(t){return[t.read_shift(1)>>>5&3,t.read_shift(2)]}},57:{n:"PtgNameX",f:function she(t,i,e){return 5==e.biff?function che(t){var i=t.read_shift(1)>>>5&3,e=t.read_shift(2,"i");t.l+=8;var n=t.read_shift(2);return t.l+=12,[i,e,n]}(t):[t.read_shift(1)>>>5&3,t.read_shift(2),t.read_shift(4)]}},58:{n:"PtgRef3d",f:function Gue(t,i,e){var n=(96&t[t.l])>>5;t.l+=1;var r=t.read_shift(2);return e&&5==e.biff&&(t.l+=12),[n,r,PL(t,0,e)]}},59:{n:"PtgArea3d",f:function Fue(t,i,e){var n=(96&t[t.l++])>>5,r=t.read_shift(2,"i");if(e&&5===e.biff)t.l+=12;return[n,r,RL(t,0,e)]}},60:{n:"PtgRefErr3d",f:function hhe(t,i,e){var n=(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,[n,r]}},61:{n:"PtgAreaErr3d",f:function Oue(t,i,e){var n=(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,[n,r]}},255:{}},Rhe={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},Ohe={1:{n:"PtgElfLel",f:BL},2:{n:"PtgElfRw",f:Hf},3:{n:"PtgElfCol",f:Hf},6:{n:"PtgElfRwV",f:Hf},7:{n:"PtgElfColV",f:Hf},10:{n:"PtgElfRadical",f:Hf},11:{n:"PtgElfRadicalS",f:Xw},13:{n:"PtgElfColS",f:Xw},15:{n:"PtgElfColSV",f:Xw},16:{n:"PtgElfRadicalLel",f:BL},25:{n:"PtgList",f:function She(t){t.l+=2;var i=t.read_shift(2),e=t.read_shift(2),n=t.read_shift(4),r=t.read_shift(2),o=t.read_shift(2);return{ixti:i,coltype:3&e,rt:Dhe[e>>2&31],idx:n,c:r,C:o}}},29:{n:"PtgSxName",f:function Ehe(t){return t.l+=2,[t.read_shift(4)]}},255:{}},Phe={0:{n:"PtgAttrNoop",f:function Fhe(t){return t.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function Uue(t,i,e){var n=255&t[t.l+1]?1:0;return t.l+=e&&2==e.biff?3:4,[n]}},2:{n:"PtgAttrIf",f:function Vue(t,i,e){var n=255&t[t.l+1]?1:0;return t.l+=2,[n,t.read_shift(e&&2==e.biff?1:2)]}},4:{n:"PtgAttrChoose",f:function Nue(t,i,e){t.l+=2;for(var n=t.read_shift(e&&2==e.biff?1:2),r=[],o=0;o<=n;++o)r.push(t.read_shift(e&&2==e.biff?1:2));return r}},8:{n:"PtgAttrGoto",f:function Bue(t,i,e){var n=255&t[t.l+1]?1:0;return t.l+=2,[n,t.read_shift(e&&2==e.biff?1:2)]}},16:{n:"PtgAttrSum",f:function Yue(t,i,e){t.l+=e&&2==e.biff?3:4}},32:{n:"PtgAttrBaxcel",f:LL},33:{n:"PtgAttrBaxcel",f:LL},64:{n:"PtgAttrSpace",f:function zue(t){return t.read_shift(2),NL(t)}},65:{n:"PtgAttrSpaceSemi",f:function $ue(t){return t.read_shift(2),NL(t)}},128:{n:"PtgAttrIfError",f:function Hue(t){var i=255&t[t.l+1]?1:0;return t.l+=2,[i,t.read_shift(2)]}},255:{}};function Uf(t,i,e,n){if(n.biff<8)return sr(t,i);for(var r=t.l+i,o=[],a=0;a!==e.length;++a)switch(e[a][0]){case"PtgArray":e[a][1]=ohe(t,0,n),o.push(e[a][1]);break;case"PtgMemArea":e[a][2]=rhe(t,0,n),o.push(e[a][2]);break;case"PtgExp":n&&12==n.biff&&(e[a][1][1]=t.read_shift(4),o.push(e[a][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+e[a][0]}return 0!=(i=r-t.l)&&o.push(sr(t,i)),o}function Lhe(t){for(var i=[],e=0;e=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function Bhe(t,i){var e=t.lastIndexOf("!"),n=i.lastIndexOf("!");return-1==e&&-1==n?t+":"+i:e>0&&n>0&&t.slice(0,e).toLowerCase()==i.slice(0,n).toLowerCase()?t+":"+i.slice(n+1):(console.error("Cannot hydrate range",t,i),t+":"+i)}function HL(t,i,e){if(!t)return"SH33TJSERR0";if(e.biff>8&&(!t.XTI||!t.XTI[i]))return t.SheetNames[i];if(!t.XTI)return"SH33TJSERR6";var n=t.XTI[i];if(e.biff<8)return i>1e4&&(i-=65536),i<0&&(i=-i),0==i?"":t.XTI[i-1];if(!n)return"SH33TJSERR1";var r="";if(e.biff>8)switch(t[n[0]][0]){case 357:return r=-1==n[1]?"#REF":t.SheetNames[n[1]],n[1]==n[2]?r:r+":"+t.SheetNames[n[2]];case 358:return null!=e.SID?t.SheetNames[e.SID]:"SH33TJSSAME"+t[n[0]][0];default:return"SH33TJSSRC"+t[n[0]][0]}switch(t[n[0]][0][0]){case 1025:return r=-1==n[1]?"#REF":t.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?r:r+":"+t.SheetNames[n[2]];case 14849:return t[n[0]].slice(1).map(function(o){return o.Name}).join(";;");default:return t[n[0]][0][3]?(r=-1==n[1]?"#REF":t[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?r:r+":"+t[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function UL(t,i,e){var n=HL(t,i,e);return"#REF"==n?n:Mf(n,e)}function hr(t,i,e,n,r){var c,l,d,f,o=r&&r.biff||8,a={s:{c:0,r:0},e:{c:0,r:0}},s=[],u=0,h=0,m="";if(!t[0]||!t[0][0])return"";for(var g=-1,p="",_=0,w=t[0].length;_=0){switch(t[0][g][1][0]){case 0:p=ri(" ",t[0][g][1][1]);break;case 1:p=ri("\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}s.push(l+Nhe[x[0]]+c);break;case"PtgIsect":c=s.pop(),l=s.pop(),s.push(l+" "+c);break;case"PtgUnion":c=s.pop(),l=s.pop(),s.push(l+","+c);break;case"PtgRange":c=s.pop(),l=s.pop(),s.push(Bhe(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=Sf(x[1][1],a,r),s.push(Ef(d,o));break;case"PtgRefN":d=e?Sf(x[1][1],e,r):x[1][1],s.push(Ef(d,o));break;case"PtgRef3d":u=x[1][1],d=Sf(x[1][2],a,r),m=UL(n,u,r),s.push(m+"!"+Ef(d,o));break;case"PtgFunc":case"PtgFuncVar":var W=x[1][0],L=x[1][1];W||(W=0);var D=0==(W&=127)?[]:s.slice(-W);s.length-=W,"User"===L&&(L=D.shift()),s.push(L+"("+D.join(",")+")");break;case"PtgBool":s.push(x[1]?"TRUE":"FALSE");break;case"PtgInt":case"PtgErr":s.push(x[1]);break;case"PtgNum":s.push(String(x[1]));break;case"PtgStr":s.push('"'+x[1].replace(/"/g,'""')+'"');break;case"PtgAreaN":f=x4(x[1][1],e?{s:e}:a,r),s.push(vw(f,r));break;case"PtgArea":f=x4(x[1][1],a,r),s.push(vw(f,r));break;case"PtgArea3d":f=x[1][2],m=UL(n,u=x[1][1],r),s.push(m+"!"+vw(f,r));break;case"PtgAttrSum":s.push("SUM("+s.pop()+")");break;case"PtgName":var B=(n.names||[])[(h=x[1][2])-1]||(n[0]||[])[h],N=B?B.Name:"SH33TJSNAME"+String(h);N&&"_xlfn."==N.slice(0,6)&&!r.xlfn&&(N=N.slice(6)),s.push(N);break;case"PtgNameX":var Z,j=x[1][1];if(h=x[1][2],!(r.biff<=5)){var U="";if(14849==((n[j]||[])[0]||[])[0]||(1025==((n[j]||[])[0]||[])[0]?n[j][h]&&n[j][h].itab>0&&(U=n.SheetNames[n[j][h].itab-1]+"!"):U=n.SheetNames[h-1]+"!"),n[j]&&n[j][h])U+=n[j][h].Name;else if(n[0]&&n[0][h])U+=n[0][h].Name;else{var me=(HL(n,j,r)||"").split(";;");me[h-1]?U=me[h-1]:U+="SH33TJSERRX"}s.push(U);break}j<0&&(j=-j),n[j]&&(Z=n[j][h]),Z||(Z={Name:"SH33TJSERRY"}),s.push(Z.Name);break;case"PtgParen":var be="(",de=")";if(g>=0){switch(p="",t[0][g][1][0]){case 2:be=ri(" ",t[0][g][1][1])+be;break;case 3:be=ri("\r",t[0][g][1][1])+be;break;case 4:de=ri(" ",t[0][g][1][1])+de;break;case 5:de=ri("\r",t[0][g][1][1])+de;break;default:if(r.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][g][1][0])}g=-1}s.push(be+s.pop()+de);break;case"PtgRefErr":case"PtgRefErr3d":case"PtgAreaErr":case"PtgAreaErr3d":s.push("#REF!");break;case"PtgExp":var ne={c:e.c,r:e.r};if(n.sharedf[zt(d={c:x[1][1],r:x[1][0]})]){var Y=n.sharedf[zt(d)];s.push(hr(Y,0,ne,n,r))}else{var he=!1;for(c=0;c!=n.arrayf.length;++c)if(!(d.c<(l=n.arrayf[c])[0].s.c||d.c>l[0].e.c||d.rl[0].e.r)){s.push(hr(l[1],0,ne,n,r)),he=!0;break}he||s.push(x[1])}break;case"PtgArray":s.push("{"+Lhe(x[1])+"}");break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":g=_;break;case"PtgMissArg":s.push("");break;case"PtgList":s.push("Table"+x[1].idx+"[#"+x[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(x))}if(3!=r.biff&&g>=0&&-1==["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(t[0][_][0])){var Le=!0;switch((x=t[0][g])[1][0]){case 4:Le=!1;case 0:p=ri(" ",x[1][1]);break;case 5:Le=!1;case 1:p=ri("\r",x[1][1]);break;default:if(p="",r.WTF)throw new Error("Unexpected PtgAttrSpaceType "+x[1][0])}s.push((Le?p:"")+s.pop()+(Le?"":p)),g=-1}}if(s.length>1&&r.WTF)throw new Error("bad formula stack");return"TRUE"==s[0]||"FALSE"!=s[0]&&s[0]}function J0(t,i,e){var n=t.read_shift(4),r=function zf(t,i,e){for(var r,o,n=t.l+i,a=[];n!=t.l;)i=n-t.l,r=VL[o=t[t.l]]||VL[Rhe[o]],(24===o||25===o)&&(r=(24===o?Ohe:Phe)[t[t.l+1]]),r&&r.f?a.push([r.n,r.f(t,i,e)]):sr(t,i);return a}(t,n,e),o=t.read_shift(4);return[r,o>0?Uf(t,o,r,e):null]}var Ghe=J0,e_=J0,qhe=J0,Xhe=J0;function zL(t){if((0|t)==t&&t=0){var i=re(11);return i.write_shift(4,3),i.write_shift(1,30),i.write_shift(2,t),i.write_shift(4,0),i}var e=re(17);return e.write_shift(4,11),e.write_shift(1,31),e.write_shift(8,t),e.write_shift(4,0),e}var ofe=function rfe(t,i){if("number"==typeof t)return zL(t);if("boolean"==typeof t)return function Yhe(t){var i=re(10);return i.write_shift(4,2),i.write_shift(1,29),i.write_shift(1,t?1:0),i.write_shift(4,0),i}(t);if(/^#(DIV\/0!|GETTING_DATA|N\/A|NAME\?|NULL!|NUM!|REF!|VALUE!)$/.test(t))return function Qhe(t){var i=re(10);return i.write_shift(4,2),i.write_shift(1,28),i.write_shift(1,t),i.write_shift(4,0),i}(+Aw[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 Zhe(t){var i=bi(t),e=re(15);return e.write_shift(4,7),e.write_shift(1,36),e.write_shift(4,i.r),e.write_shift(2,i.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 tfe(t){var i=t.split(":"),e=i[0],n=re(23);n.write_shift(4,15);var r=bi(e=i[0]);return n.write_shift(1,36),n.write_shift(4,r.r),n.write_shift(2,r.c|("$"==e.charAt(0)?0:1)<<14|(e.match(/\$\d/)?0:1)<<15),n.write_shift(4,0),r=bi(e=i[1]),n.write_shift(1,36),n.write_shift(4,r.r),n.write_shift(2,r.c|("$"==e.charAt(0)?0:1)<<14|(e.match(/\$\d/)?0:1)<<15),n.write_shift(4,0),n.write_shift(1,17),n.write_shift(4,0),n}(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 nfe(t,i){var e=t.lastIndexOf("!"),n=t.slice(0,e);t=t.slice(e+1),"'"==n.charAt(0)&&(n=n.slice(1,-1).replace(/''/g,"'"));var r=On(t),o=re(23);return o.write_shift(4,15),o.write_shift(1,59),o.write_shift(2,2+i.SheetNames.map(function(a){return a.toLowerCase()}).indexOf(n.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,i);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 Jhe(t,i){var e=t.lastIndexOf("!"),n=t.slice(0,e),r=bi(t=t.slice(e+1));"'"==n.charAt(0)&&(n=n.slice(1,-1).replace(/''/g,"'"));var o=re(17);return o.write_shift(4,9),o.write_shift(1,58),o.write_shift(2,2+i.SheetNames.map(function(a){return a.toLowerCase()}).indexOf(n.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,i);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 ife(t,i){var e=t.lastIndexOf("!"),n=t.slice(0,e);t=t.slice(e+1),"'"==n.charAt(0)&&(n=n.slice(1,-1).replace(/''/g,"'"));var r=t.split(":");a=r[0];var o=re(27);o.write_shift(4,19);var a=r[0],s=bi(a);return o.write_shift(1,58),o.write_shift(2,2+i.SheetNames.map(function(c){return c.toLowerCase()}).indexOf(n.toLowerCase())),o.write_shift(4,s.r),o.write_shift(2,s.c|("$"==a.charAt(0)?0:1)<<14|(a.match(/\$\d/)?0:1)<<15),s=bi(a=r[1]),o.write_shift(1,58),o.write_shift(2,2+i.SheetNames.map(function(c){return c.toLowerCase()}).indexOf(n.toLowerCase())),o.write_shift(4,s.r),o.write_shift(2,s.c|("$"==a.charAt(0)?0:1)<<14|(a.match(/\$\d/)?0:1)<<15),o.write_shift(1,17),o.write_shift(4,0),o}(t,i);if(/^(?:'[^\\\/?*\[\]:]*'|[^'][^\\\/?*\[\]:'`~!@#$%^()\-=+{}|;,<.>]*)!#REF!$/.test(t))return function efe(t,i){var e=t.lastIndexOf("!"),n=t.slice(0,e);t=t.slice(e+1),"'"==n.charAt(0)&&(n=n.slice(1,-1).replace(/''/g,"'"));var r=re(17);return r.write_shift(4,9),r.write_shift(1,60),r.write_shift(2,2+i.SheetNames.map(function(o){return o.toLowerCase()}).indexOf(n.toLowerCase())),r.write_shift(4,0),r.write_shift(2,0),r.write_shift(4,0),r}(t,i);if(/^".*"$/.test(t))return function Khe(t){var i=re(7);i.write_shift(4,3+2*t.length),i.write_shift(1,23),i.write_shift(2,t.length);var e=re(2*t.length);e.write_shift(2*t.length,t,"utf16le");var n=re(4);return n.write_shift(4,0),vn([i,e,n])}(t);if(/^[+-]\d+$/.test(t))return zL(parseInt(t,10));throw"Formula |"+t+"| not supported for XLSB"},afe={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"},$L={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"},sfe={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 cfe(t){return("of:="+t.replace(qw,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")}function WL(t){return t.replace(/!/,".")}var jf=typeof Map<"u";function Kw(t,i,e){var n=0,r=t.length;if(e){if(jf?e.has(i):Object.prototype.hasOwnProperty.call(e,i))for(var o=jf?e.get(i):e[i];n-1?(e.width=Q0(n),e.customWidth=1):null!=i.width&&(e.width=i.width),i.hidden&&(e.hidden=!0),null!=i.level&&(e.outlineLevel=e.level=i.level),e}function ml(t,i){if(t){var e=[.7,.7,.75,.75,.3,.3];"xlml"==i&&(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 tc(t,i,e){var n=e.revssf[null!=i.z?i.z:"General"],r=60,o=t.length;if(null==n&&e.ssf)for(;r<392;++r)if(null==e.ssf[r]){Ys(i.z,r),e.ssf[r]=i.z,e.revssf[i.z]=n=r;break}for(r=0;r!=o;++r)if(t[r].numFmtId===n)return r;return t[o]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},o}function lfe(t,i,e){if(t&&t["!ref"]){var n=Kt(t["!ref"]);if(n.e.c"u")return"";var r="",o=t.t,a=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=ms[t.v];break;case"d":n&&n.cellDates?r=ji(t.v,-1).toISOString():((t=yi(t)).t="n",r=""+(t.v=xn(ji(t.v)))),typeof t.z>"u"&&(t.z=ut[14]);break;default:r=t.v}var s="z"==t.t||null==t.v?"":Qn("v",Ot(r)),c={r:i},l=tc(n.cellXfs,t,n);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(n&&n.bookSST){s=Qn("v",""+Kw(n.Strings,t.v,n.revStrings)),c.t="s";break}c.t="str"}if(t.t!=o&&(t.t=o,t.v=a),"string"==typeof t.f&&t.f){var d=t.F&&t.F.slice(0,i.length)==i?{t:"array",ref:t.F}:null;s=Se("f",Ot(t.f),d)+(null!=t.v?s:"")}return t.l&&(t.l.display=Ot(r),e["!links"].push([i,t.l])),t.D&&(c.cm=1),Se("c",s,c)}function Hfe(t,i,e,n){var a,r=[an,Se("worksheet",null,{xmlns:el[0],"xmlns:r":Fn.r})],s="",c=e.Sheets[e.SheetNames[t]];null==c&&(c={});var l=c["!ref"]||"A1",d=Kt(l);if(d.e.c>16383||d.e.r>1048575){if(i.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=Et(d)}n||(n={}),c["!comments"]=[];var u=[];(function Cfe(t,i,e,n,r){var o=!1,a={},s=null;if("xlsx"!==n.bookType&&i.vbaraw){var c=i.SheetNames[e];try{i.Workbook&&(c=i.Workbook.Sheets[e].CodeName||c)}catch{}o=!0,a.codeName=Sa(Ot(c))}if(t&&t["!outline"]){var l={summaryBelow:1,summaryRight:1};t["!outline"].above&&(l.summaryBelow=0),t["!outline"].left&&(l.summaryRight=0),s=(s||"")+Se("outlinePr",null,l)}!o&&!s||(r[r.length]=Se("sheetPr",s,a))})(c,e,t,i,r),r[r.length]=Se("dimension",null,{ref:l}),r[r.length]=function Lfe(t,i,e,n){var r={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(r.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),Se("sheetViews",Se("sheetView",null,r),{})}(0,0,0,e),i.sheetFormat&&(r[r.length]=Se("sheetFormatPr",null,{defaultRowHeight:i.sheetFormat.defaultRowHeight||"16",baseColWidth:i.sheetFormat.baseColWidth||"10",outlineLevelRow:i.sheetFormat.outlineLevelRow||"7"})),null!=c["!cols"]&&c["!cols"].length>0&&(r[r.length]=function Ife(t,i){for(var n,e=[""],r=0;r!=i.length;++r)(n=i[r])&&(e[e.length]=Se("col",null,t_(r,n)));return e[e.length]="",e.join("")}(0,c["!cols"])),r[a=r.length]="",c["!links"]=[],null!=c["!ref"]&&(s=function Vfe(t,i,e,n){var c,p,r=[],o=[],a=Kt(t["!ref"]),s="",l="",d=[],u=0,h=0,f=t["!rows"],m=null!=t["!data"],g={r:l},_=-1;for(h=a.s.c;h<=a.e.c;++h)d[h]=Ht(h);for(u=a.s.r;u<=a.e.r;++u){for(o=[],l=Yt(u),h=a.s.c;h<=a.e.c;++h){c=d[h]+l;var w=m?(t["!data"][u]||[])[h]:t[c];void 0!==w&&null!=(s=Nfe(w,c,t,i))&&o.push(s)}(o.length>0||f&&f[u])&&(g={r:l},f&&f[u]&&((p=f[u]).hidden&&(g.hidden=1),_=-1,p.hpx?_=Bf(p.hpx):p.hpt&&(_=p.hpt),_>-1&&(g.ht=_,g.customHeight=1),p.level&&(g.outlineLevel=p.level)),r[r.length]=Se("row",o.join(""),g))}if(f)for(;u-1&&(g.ht=_,g.customHeight=1),p.level&&(g.outlineLevel=p.level),r[r.length]=Se("row","",g));return r.join("")}(c,i),s.length>0&&(r[r.length]=s)),r.length>a+1&&(r[r.length]="",r[a]=r[a].replace("/>",">")),c["!protect"]&&(r[r.length]=function Sfe(t){var i={sheet:1};return kfe.forEach(function(e){null!=t[e]&&t[e]&&(i[e]="1")}),Dfe.forEach(function(e){null!=t[e]&&!t[e]&&(i[e]="0")}),t.password&&(i.password=zw(t.password).toString(16).toUpperCase()),Se("sheetProtection",null,i)}(c["!protect"])),null!=c["!autofilter"]&&(r[r.length]=function Rfe(t,i,e,n){var r="string"==typeof t.ref?t.ref:Et(t.ref);e.Workbook||(e.Workbook={Sheets:[]}),e.Workbook.Names||(e.Workbook.Names=[]);var o=e.Workbook.Names,a=On(r);a.s.r==a.e.r&&(a.e.r=On(i["!ref"]).e.r,r=Et(a));for(var s=0;s0&&(r[r.length]=function yfe(t){if(0===t.length)return"";for(var i='',e=0;e!=t.length;++e)i+='';return i+""}(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=ki(n,-1,Ot(g[1].Target).replace(/#.*$/,""),Pt.HLINK),f["r:id"]="rId"+m),(h=g[1].Target.indexOf("#"))>-1&&(f.location=Ot(g[1].Target.slice(h+1))),g[1].Tooltip&&(f.tooltip=Ot(g[1].Tooltip)),f.display=g[1].display,r[r.length]=Se("hyperlink",null,f))}),r[r.length]=""),delete c["!links"],null!=c["!margins"]&&(r[r.length]=function Mfe(t){return ml(t),Se("pageMargins",null,t)}(c["!margins"])),(!i||i.ignoreEC||null==i.ignoreEC)&&(r[r.length]=Qn("ignoredErrors",Se("ignoredError",null,{numberStoredAsText:1,sqref:l}))),u.length>0&&(m=ki(n,-1,"../drawings/drawing"+(t+1)+".xml",Pt.DRAW),r[r.length]=Se("drawing",null,{"r:id":"rId"+m}),c["!drawing"]=u),c["!comments"].length>0&&(m=ki(n,-1,"../drawings/vmlDrawing"+(t+1)+".vml",Pt.VML),r[r.length]=Se("legacyDrawing",null,{"r:id":"rId"+m}),c["!legacy"]=m),r.length>1&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}function $fe(t,i,e,n){var r=function zfe(t,i,e){var n=re(145),r=(e["!rows"]||[])[t]||{};n.write_shift(4,t),n.write_shift(4,0);var o=320;r.hpx?o=20*Bf(r.hpx):r.hpt&&(o=20*r.hpt),n.write_shift(2,o),n.write_shift(1,0);var a=0;r.level&&(a|=r.level),r.hidden&&(a|=16),(r.hpx||r.hpt)&&(a|=32),n.write_shift(1,a),n.write_shift(1,0);var s=0,c=n.l;n.l+=4;for(var l={r:t,c:0},d=null!=e["!data"],u=0;u<16;++u)if(!(i.s.c>u+1<<10||i.e.cn.l?n.slice(0,n.l):n}(n,e,i);(r.length>17||(i["!rows"]||[])[n])&&fe(t,0,r)}var jfe=ol,Wfe=ou;var Eme=ol,Tme=ou,QL=["left","right","top","bottom","header","footer"];function Wme(t,i,e,n,r,o,a){var s={r:e,c:n};if(i.c&&o["!comments"].push([zt(s),i.c]),void 0===i.v)return!1;var c="";switch(i.t){case"b":c=i.v?"1":"0";break;case"d":(i=yi(i)).z=i.z||ut[14],i.v=xn(ji(i.v)),i.t="n";break;case"n":case"e":c=""+i.v;break;default:c=i.v}switch(s.s=tc(r.cellXfs,i,r),i.l&&o["!links"].push([zt(s),i.l]),i.t){case"s":case"str":return r.bookSST?(c=Kw(r.Strings,null==i.v?"":String(i.v),r.revStrings),s.t="s",s.v=c,a?fe(t,18,function dme(t,i,e){return null==e&&(e=re(8)),rl(i,e),e.write_shift(4,i.v),e}(0,s)):fe(t,7,function cme(t,i,e){return null==e&&(e=re(12)),il(i,e),e.write_shift(4,i.v),e}(0,s))):(s.t="str",a?fe(t,17,function wme(t,i,e){var n=null==t.v?"":String(t.v);return null==e&&(e=re(8+4*n.length)),rl(i,e),Pn(n,e),e.length>e.l?e.slice(0,e.l):e}(i,s)):fe(t,6,function xme(t,i,e){var n=null==t.v?"":String(t.v);return null==e&&(e=re(12+4*t.v.length)),il(i,e),Pn(n,e),e.length>e.l?e.slice(0,e.l):e}(i,s))),!0;case"n":return i.v==(0|i.v)&&i.v>-1e3&&i.v<1e3?a?fe(t,13,function _me(t,i,e){return null==e&&(e=re(8)),rl(i,e),k4(t.v,e),e}(i,s)):fe(t,2,function pme(t,i,e){return null==e&&(e=re(12)),il(i,e),k4(t.v,e),e}(i,s)):a?fe(t,16,function fme(t,i,e){return null==e&&(e=re(12)),rl(i,e),al(t.v,e),e}(i,s)):fe(t,5,function hme(t,i,e){return null==e&&(e=re(16)),il(i,e),al(t.v,e),e}(i,s)),!0;case"b":return s.t="b",a?fe(t,15,function ime(t,i,e){return null==e&&(e=re(5)),rl(i,e),e.write_shift(1,t.v?1:0),e}(i,s)):fe(t,4,function eme(t,i,e){return null==e&&(e=re(9)),il(i,e),e.write_shift(1,t.v?1:0),e}(i,s)),!0;case"e":return s.t="e",a?fe(t,14,function ame(t,i,e){return null==e&&(e=re(8)),rl(i,e),e.write_shift(1,t.v),e.write_shift(2,0),e.write_shift(1,0),e}(i,s)):fe(t,3,function rme(t,i,e){return null==e&&(e=re(9)),il(i,e),e.write_shift(1,t.v),e}(i,s)),!0}return a?fe(t,12,function Zfe(t,i,e){return null==e&&(e=re(4)),rl(i,e)}(0,s)):fe(t,1,function Yfe(t,i,e){return null==e&&(e=re(8)),il(i,e)}(0,s)),!0}function tpe(t,i,e,n){var r=Br(),o=e.SheetNames[t],a=e.Sheets[o]||{},s=o;try{e&&e.Workbook&&(s=e.Workbook.Sheets[t].CodeName||s)}catch{}var c=Kt(a["!ref"]||"A1");if(c.e.c>16383||c.e.r>1048575){if(i.WTF)throw new Error("Range "+(a["!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 a["!links"]=[],a["!comments"]=[],fe(r,129),(e.vbaraw||a["!outline"])&&fe(r,147,function Xfe(t,i,e){null==e&&(e=re(84+4*t.length));var n=192;i&&(i.above&&(n&=-65),i.left&&(n&=-129)),e.write_shift(1,n);for(var r=1;r<3;++r)e.write_shift(1,0);return B0({auto:1},e),e.write_shift(-4,-1),e.write_shift(-4,-1),C4(t,e),e.slice(0,e.l)}(s,a["!outline"])),fe(r,148,Wfe(c)),function Jme(t,i,e){fe(t,133),fe(t,137,function Vme(t,i,e){null==e&&(e=re(30));var n=924;return(((i||{}).Views||[])[0]||{}).RTL&&(n|=32),e.write_shift(2,n),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)),fe(t,138),fe(t,134)}(r,0,e.Workbook),function Xme(t,i){!i||!i["!cols"]||(fe(t,390),i["!cols"].forEach(function(e,n){e&&fe(t,60,function Pme(t,i,e){null==e&&(e=re(18));var n=t_(t,i);e.write_shift(-4,t),e.write_shift(-4,t),e.write_shift(4,256*(n.width||10)),e.write_shift(4,0);var r=0;return i.hidden&&(r|=1),"number"==typeof n.width&&(r|=2),i.level&&(r|=i.level<<8),e.write_shift(2,r),e}(n,e))}),fe(t,391))}(r,a),function Gme(t,i,e,n){var r=Kt(i["!ref"]||"A1"),a="",s=[];fe(t,145);var c=null!=i["!data"],l=r.e.r;i["!rows"]&&(l=Math.max(r.e.r,i["!rows"].length-1));for(var d=r.s.r;d<=l;++d){a=Yt(d),$fe(t,i,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&&(s[h]=Ht(h));var f=c?(i["!data"][d]||[])[h]:i[s[h]+a];u=!!f&&Wme(t,f,d,h,n,i,u)}}fe(t,146)}(r,a,0,i),function epe(t,i){i["!protect"]&&fe(t,535,function Ume(t,i){return null==i&&(i=re(66)),i.write_shift(2,t.password?zw(t.password):0),i.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){i.write_shift(4,e[1]?null==t[e[0]]||t[e[0]]?0:1:null!=t[e[0]]&&t[e[0]]?0:1)}),i}(i["!protect"]))}(r,a),function Zme(t,i,e,n){if(i["!autofilter"]){var r=i["!autofilter"],o="string"==typeof r.ref?r.ref:Et(r.ref);e.Workbook||(e.Workbook={Sheets:[]}),e.Workbook.Names||(e.Workbook.Names=[]);var a=e.Workbook.Names,s=On(o);s.s.r==s.e.r&&(s.e.r=On(i["!ref"]).e.r,o=Et(s));for(var c=0;c0){var r=ki(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",Pt.VML);fe(t,551,Dw("rId"+r)),i["!legacy"]=r}}(r,a,t,n),fe(r,130),r.end()}var Jw=[["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"]],upe=":][*?/\\".split("");function JL(t,i){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'");upe.forEach(function(e){if(-1!=t.indexOf(e))throw new Error("Sheet name cannot contain : \\ / ? * [ ]")})}catch(e){if(i)return!1;throw e}return!0}function _pe(t,i){return i||(i=re(127)),i.write_shift(4,t.Hidden),i.write_shift(4,t.iTabID),Dw(t.strRelID,i),Pn(t.name.slice(0,31),i),i.length>i.l?i.slice(0,i.l):i}function Ipe(t,i){var e=Br();return fe(e,131),fe(e,128,function Dpe(t,i){i||(i=re(127));for(var e=0;4!=e;++e)i.write_shift(4,0);return Pn("SheetJS",i),Pn(mf.version,i),Pn(mf.version,i),Pn("7262",i),i.length>i.l?i.slice(0,i.l):i}()),fe(e,153,function vpe(t,i){i||(i=re(72));var e=0;return t&&(t.date1904&&(e|=1),t.filterPrivacy&&(e|=8)),i.write_shift(4,e),i.write_shift(4,0),C4(t&&t.CodeName||"ThisWorkbook",i),i.slice(0,i.l)}(t.Workbook&&t.Workbook.WBProps||null)),function Epe(t,i){if(i.Workbook&&i.Workbook.Sheets){for(var e=i.Workbook.Sheets,n=0,r=-1,o=-1;nr||(fe(t,135),fe(t,158,function Spe(t,i){return i||(i=re(29)),i.write_shift(-4,0),i.write_shift(-4,460),i.write_shift(4,28800),i.write_shift(4,17600),i.write_shift(4,500),i.write_shift(4,t),i.write_shift(4,t),i.write_shift(1,120),i.length>i.l?i.slice(0,i.l):i}(r)),fe(t,136))}}(e,t),function kpe(t,i){fe(t,143);for(var e=0;e!=i.SheetNames.length;++e)fe(t,156,_pe({Hidden:i.Workbook&&i.Workbook.Sheets&&i.Workbook.Sheets[e]&&i.Workbook.Sheets[e].Hidden||0,iTabID:e+1,strRelID:"rId"+(e+1),name:i.SheetNames[e]}));fe(t,144)}(e,t),function Ape(t,i){fe(t,353),fe(t,357),fe(t,362,function Mpe(t){var i=t.SheetNames.length,e=re(12*i+28);e.write_shift(4,i+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 n=0;n-1&&(n|=32,r=r.slice(6)),e.write_shift(4,n),e.write_shift(1,0),e.write_shift(4,null==t.Sheet?4294967295:t.Sheet);var o=[e,Pn(r),ofe(t.Ref,i)];if(t.Comment)o.push(Af(t.Comment));else{var a=re(4);a.write_shift(4,4294967295),o.push(a)}return vn(o)}(e,i))}catch{console.error("Could not serialize defined name "+JSON.stringify(e))}})}(e,t),fe(e,132),e.end()}function nN(t){return Se("NamedRange",null,{"ss:Name":"_xlnm."==t.Name.slice(0,6)?t.Name.slice(6):t.Name,"ss:RefersTo":"="+Z0(t.Ref,{r:0,c:0})})}function rge(t,i,e,n,r,o,a){if(!t||null==t.v&&null==t.f)return"";var s={};if(t.f&&(s["ss:Formula"]="="+Ot(Z0(t.f,a))),t.F&&t.F.slice(0,i.length)==i){var c=bi(t.F.slice(i.length+1));s["ss:ArrayRange"]="RC:R"+(c.r==a.r?"":"["+(c.r-a.r)+"]")+"C"+(c.c==a.c?"":"["+(c.c-a.c)+"]")}if(t.l&&t.l.Target&&(s["ss:HRef"]=Ot(t.l.Target),t.l.Tooltip&&(s["x:HRefScreenTip"]=Ot(t.l.Tooltip))),e["!merges"])for(var l=e["!merges"],d=0;d!=l.length;++d)l[d].s.c!=a.c||l[d].s.r!=a.r||(l[d].e.c>l[d].s.c&&(s["ss:MergeAcross"]=l[d].e.c-l[d].s.c),l[d].e.r>l[d].s.r&&(s["ss:MergeDown"]=l[d].e.r-l[d].s.r));var u="",h="";switch(t.t){case"z":if(!n.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=ms[t.v];break;case"d":u="DateTime",h=new Date(t.v).toISOString(),null==t.z&&(t.z=t.z||ut[14]);break;case"s":u="String",h=function sae(t){return(t+"").replace(dw,function(e){return lw[e]}).replace(ZP,function(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"})}(t.v||"")}var f=tc(n.cellXfs,t,n);s["ss:StyleID"]="s"+(21+f),s["ss:Index"]=a.c+1;var g="z"==t.t?"":''+(null!=t.v?h:"")+"";return(t.c||[]).length>0&&(g+=function nge(t){return t.map(function(i){var e=function cae(t){return t.replace(/(\r\n|[\r\n])/g," ")}(i.t||""),n=Se("ss:Data",e,{xmlns:"http://www.w3.org/TR/REC-html40"});return Se("Comment",n,{"ss:Author":i.a})}).join("")}(t.c)),Se("Cell",g,s)}function oge(t,i){var e='"}function sge(t,i,e){var n=[],o=e.Sheets[e.SheetNames[t]],a=o?function tge(t,i,e,n){if(!t||!((n||{}).Workbook||{}).Names)return"";for(var r=n.Workbook.Names,o=[],a=0;a0&&n.push(""+a+""),a=o?function age(t,i,e,n){if(!t["!ref"])return"";var r=Kt(t["!ref"]),o=t["!merges"]||[],a=0,s=[];t["!cols"]&&t["!cols"].forEach(function(p,_){Js(p);var w=!!p.width,x=t_(_,p),E={"ss:Index":_+1};w&&(E["ss:Width"]=Lf(x.width)),p.hidden&&(E["ss:Hidden"]="1"),s.push(Se("Column",null,E))});for(var c=null!=t["!data"],l=r.s.r;l<=r.e.r;++l){for(var d=[oge(l,(t["!rows"]||[])[l])],u=r.s.c;u<=r.e.c;++u){var h=!1;for(a=0;a!=o.length;++a)if(!(o[a].s.c>u||o[a].s.r>l||o[a].e.c"),d.length>2&&s.push(d.join(""))}return s.join("")}(o,i):"",a.length>0&&n.push(""+a+"
"),n.push(function ige(t,i,e,n){if(!t)return"";var r=[];if(t["!margins"]&&(r.push(""),t["!margins"].header&&r.push(Se("Header",null,{"x:Margin":t["!margins"].header})),t["!margins"].footer&&r.push(Se("Footer",null,{"x:Margin":t["!margins"].footer})),r.push(Se("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("")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[e])if(n.Workbook.Sheets[e].Hidden)r.push(Se("Visible",1==n.Workbook.Sheets[e].Hidden?"SheetHidden":"SheetVeryHidden",{}));else{for(var o=0;o")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&r.push(""),t["!protect"]&&(r.push(Qn("ProtectContents","True")),t["!protect"].objects&&r.push(Qn("ProtectObjects","True")),t["!protect"].scenarios&&r.push(Qn("ProtectScenarios","True")),null==t["!protect"].selectLockedCells||t["!protect"].selectLockedCells?null!=t["!protect"].selectUnlockedCells&&!t["!protect"].selectUnlockedCells&&r.push(Qn("EnableSelection","UnlockedCells")):r.push(Qn("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(a){t["!protect"][a[0]]&&r.push("<"+a[1]+"/>")})),0==r.length?"":Se("WorksheetOptions",r.join(""),{xmlns:io.x})}(o,0,t,e)),o["!autofilter"]&&n.push(''),n.join("")}function cge(t,i){i||(i={}),t.SSF||(t.SSF=yi(ut)),t.SSF&&(eu(),xf(t.SSF),i.revssf=A0(t.SSF),i.revssf[t.SSF[65535]]=0,i.ssf=t.SSF,i.cellXfs=[],tc(i.cellXfs,{},{revssf:{General:0}}));var e=[];e.push(function Kpe(t,i){var e=[];return t.Props&&e.push(function ose(t,i){var e=[];return $i(Pw).map(function(n){for(var r=0;r'+r.join("")+""}(t.Props,t.Custprops)),e.join("")}(t,i)),e.push(function Zpe(t){return(((t||{}).Workbook||{}).WBProps||{}).date1904?'':""}(t)),e.push(""),e.push("");for(var n=0;n'];return i.cellXfs.forEach(function(n,r){var o=[];o.push(Se("NumberFormat",null,{"ss:Format":Ot(ut[n.numFmtId])}));var a={"ss:ID":"s"+(21+r)};e.push(Se("Style",o.join(""),a))}),Se("Styles",e.join(""))}(0,i),e[3]=function ege(t){if(!((t||{}).Workbook||{}).Names)return"";for(var i=t.Workbook.Names,e=[],n=0;n0&&(n.family=s);var c=t.read_shift(1);switch(c>0&&(n.charset=c),t.l++,n.color=function Pae(t){var i={},n=t.read_shift(1)>>>1,r=t.read_shift(1),o=t.read_shift(2,"i"),a=t.read_shift(1),s=t.read_shift(1),c=t.read_shift(1);switch(t.l++,n){case 0:i.auto=1;break;case 1:i.index=r;var l=sl[r];l&&(i.rgb=Pf(l));break;case 2:i.rgb=Pf([a,s,c]);break;case 3:i.theme=r}return 0!=o&&(i.tint=o>0?o/32767:o/32768),i}(t),t.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor"}return n.name=cr(t),n}},44:{f:function ide(t,i){return[t.read_shift(2),cr(t)]}},45:{f:sde},46:{f:lde},47:{f:function cde(t,i){var e=t.l+i,n=t.read_shift(2),r=t.read_shift(2);return t.l=e,{ixfe:n,numFmtId:r}}},48:{},49:{f:function Sae(t){return t.read_shift(4,"i")}},50:{},51:{f:function $de(t){for(var i=[],e=t.read_shift(4);e-- >0;)i.push([t.read_shift(4),t.read_shift(4)]);return i}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:function gL(t,i,e){if(!e.cellStyles)return sr(t,i);var n=e&&e.biff>=12?4:2,r=t.read_shift(n),o=t.read_shift(n),a=t.read_shift(n),s=t.read_shift(n),c=t.read_shift(2);2==n&&(t.l+=2);var l={s:r,e:o,w:a,ixfe:s,flags:c};return(e.biff>=5||!e.biff)&&(l.level=c>>8&7),l}},62:{f:function bme(t){return[Eo(t),ww(t),"is"]}},63:{f:function Jde(t){var i={};i.i=t.read_shift(4);var e={};e.r=t.read_shift(4),e.c=t.read_shift(4),i.r=zt(e);var n=t.read_shift(1);return 2&n&&(i.l="1"),8&n&&(i.a="1"),i}},64:{f:function zme(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:sr,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function Bme(t){var i=t.read_shift(2);return t.l+=28,{RTL:32&i}}},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 qfe(t,i){var e={},n=t[t.l];return++t.l,e.above=!(64&n),e.left=!(128&n),t.l+=18,e.name=Fae(t,i-19),e}},148:{f:jfe,p:16},151:{f:function Fme(){}},152:{},153:{f:function bpe(t,i){var e={},n=t.read_shift(4);e.defaultThemeVersion=t.read_shift(4);var r=i>8?cr(t):"";return r.length>0&&(e.CodeName=r),e.autoCompressPictures=!!(65536&n),e.backupFile=!!(64&n),e.checkCompatibility=!!(4096&n),e.date1904=!!(1&n),e.filterPrivacy=!!(8&n),e.hidePivotFieldList=!!(1024&n),e.promptedSolutions=!!(16&n),e.publishItems=!!(2048&n),e.refreshAllConnections=!!(262144&n),e.saveExternalLinkValues=!!(128&n),e.showBorderUnselectedTables=!!(4&n),e.showInkAnnotation=!!(32&n),e.showObjects=["all","placeholders","none"][n>>13&3],e.showPivotChartFilter=!!(32768&n),e.updateLinks=["userSet","never","always"][n>>8&3],e}},154:{},155:{},156:{f:function gpe(t,i){var e={};return e.Hidden=t.read_shift(4),e.iTabID=t.read_shift(4),e.strRelID=kw(t,i-8),e.name=cr(t),e}},157:{},158:{},159:{T:1,f:function ple(t){return[t.read_shift(4),t.read_shift(4)]}},160:{T:-1},161:{T:1,f:ol},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:Eme},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 Ude(t,i){return{flags:t.read_shift(4),version:t.read_shift(4),name:cr(t)}}},336:{T:-1},337:{f:function Gde(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:kw},357:{},358:{},359:{},360:{T:1},361:{},362:{f:function fL(t,i,e){if(e.biff<8||!(e.biff>8)&&i==t[t.l]+(3==t[t.l+1]?1:0)+1)return function mL(t,i,e){3==t[t.l+1]&&t[t.l]++;var n=Rf(t,0,e);return 3==n.charCodeAt(0)?n.slice(1):n}(t,0,e);for(var n=[],r=t.l+i,o=t.read_shift(e.biff>8?4:2);0!=o--;)n.push(Tse(t,0,e));if(t.l!=r)throw new Error("Bad ExternSheet: "+t.l+" != "+r);return n}},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 Rme(t,i,e){var n=t.l+i,r=D4(t),o=t.read_shift(1),a=[r];if(a[2]=o,e.cellFormula){var s=Ghe(t,n-t.l,e);a[1]=s}else t.l=n;return a}},427:{f:function Ome(t,i,e){var n=t.l+i,o=[ol(t,16)];if(e.cellFormula){var a=Xhe(t,n-t.l,e);o[1]=a,t.l=n}else t.l=n;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 Lme(t){var i={};return QL.forEach(function(e){i[e]=lr(t)}),i}},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:function Gfe(){}},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 Ame(t,i){var e=t.l+i,n=ol(t,16),r=Cw(t),o=cr(t),a=cr(t),s=cr(t);t.l=e;var c={rfx:n,relId:r,loc:o,display:s};return a&&(c.Tooltip=a),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:kw},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:hue},633:{T:1},634:{T:-1},635:{T:1,f:function due(t){var i={};i.iauthor=t.read_shift(4);var e=ol(t,16);return i.rfx=e.s,i.ref=zt(e.s),t.l+=16,i}},636:{T:-1},637:{f:Aae},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 ope(t,i){return t.l+=10,{name:cr(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 $me(){}},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 Me(t,i,e,n){var r=i;if(!isNaN(r)){var o=n||(e||[]).length||0,a=t.next(4);a.write_shift(2,r),a.write_shift(2,o),o>0&&bw(e)&&t.push(e)}}function Xf(t,i,e){return t||(t=re(7)),t.write_shift(2,i),t.write_shift(2,e),t.write_shift(2,0),t.write_shift(1,0),t}function vge(t,i,e,n){if(null!=i.v)switch(i.t){case"d":case"n":var r="d"==i.t?xn(ji(i.v)):i.v;return void(r==(0|r)&&r>=0&&r<65536?Me(t,2,function Kce(t,i,e){var n=re(9);return Xf(n,t,i),n.write_shift(2,e),n}(e,n,r)):Me(t,3,function Qce(t,i,e){var n=re(15);return Xf(n,t,i),n.write_shift(8,e,"f"),n}(e,n,r)));case"b":case"e":return void Me(t,5,function _ge(t,i,e,n){var r=re(9);return Xf(r,t,i),K4(e,n||"b",r),r}(e,n,i.v,i.t));case"s":case"str":return void Me(t,4,function bge(t,i,e){var n=re(8+2*e.length);return Xf(n,t,i),n.write_shift(1,e.length),n.write_shift(e.length,e,"sbcs"),n.l255||f.e.r>=m){if(i.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)}Me(n,2057,Vw(0,16,i)),Me(n,13,Mo(1)),Me(n,12,Mo(100)),Me(n,15,Sr(!0)),Me(n,17,Sr(!1)),Me(n,16,al(.001)),Me(n,95,Sr(!0)),Me(n,42,Sr(!1)),Me(n,43,Sr(!1)),Me(n,130,Mo(1)),Me(n,128,function mce(t){var i=re(8);return i.write_shift(4,0),i.write_shift(2,t[0]?t[0]+1:0),i.write_shift(2,t[1]?t[1]+1:0),i}([0,0])),Me(n,131,Sr(!1)),Me(n,132,Sr(!1)),l&&function Ege(t,i){if(i){var e=0;i.forEach(function(n,r){++e<=256&&n&&Me(t,125,function Vce(t,i){var e=re(12);e.write_shift(2,i),e.write_shift(2,i),e.write_shift(2,256*t.width),e.write_shift(2,0);var n=0;return t.hidden&&(n|=1),e.write_shift(1,n),e.write_shift(1,n=t.level||0),e.write_shift(2,0),e}(t_(r,n),r))})}}(n,o["!cols"]),Me(n,512,function sce(t,i){var e=8!=i.biff&&i.biff?2:4,n=re(2*e+6);return n.write_shift(e,t.s.r),n.write_shift(e,t.e.r+1),n.write_shift(2,t.s.c),n.write_shift(2,t.e.c+1),n.write_shift(2,0),n}(f,i)),l&&(o["!links"]=[]);for(var g=[],p=[],_=f.s.c;_<=f.e.c;++_)h[_]=Ht(_);for(var w=f.s.r;w<=f.e.r;++w)for(c&&(p=o["!data"][w]||[]),u=Yt(w),_=f.s.c;_<=f.e.c;++_){d=h[_]+u;var x=c?p[_]:o[d];x&&(Tge(n,x,w,_,i),l&&x.l&&o["!links"].push([d,x.l]),l&&x.c&&g.push([d,x.c]))}var E=s.CodeName||s.name||r;return l&&Me(n,574,function Yse(t){var i=re(18),e=1718;return t&&t.RTL&&(e|=64),i.write_shift(2,e),i.write_shift(4,0),i.write_shift(4,64),i.write_shift(4,0),i.write_shift(4,0),i}((a.Views||[])[0])),l&&(o["!merges"]||[]).length&&Me(n,229,function Dce(t){var i=re(2+8*t.length);i.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=i||{};switch(o.biff||2){case 8:case 5:return function Ige(t,i){var e=i||{},n=[];t&&!t.SSF&&(t.SSF=yi(ut)),t&&t.SSF&&(eu(),xf(t.SSF),e.revssf=A0(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,sC(e),e.cellXfs=[],tc(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={});for(var r=0;r255||o.e.r>16383){if(n.WTF)throw new Error("Range "+(i["!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]=Ht(d);for(var u=o.s.r;u<=o.e.r;++u)for(r&&(l=i["!data"][u]||[]),s=Yt(u),d=o.s.c;d<=o.e.c;++d){var h=r?l[d]:i[c[d]+s];h&&vge(t,h,u,d)}}(n,t.Sheets[t.SheetNames[r]],0,e),Me(n,10),n.end()}(t,i)}throw new Error("invalid type "+o.bookType+" for BIFF")}function aN(t,i,e,n){for(var r=t["!merges"]||[],o=[],a={},s=null!=t["!data"],c=i.s.c;c<=i.e.c;++c){for(var l=0,d=0,u=0;ue||r[u].s.c>c||r[u].e.r1&&(a.rowspan=l),d>1&&(a.colspan=d),n.editable?m=''+m+"":f&&(a["data-t"]=f&&f.t||"z",null!=f.v&&(a["data-v"]=f.v),null!=f.z&&(a["data-z"]=f.z),f.l&&"#"!=(f.l.Target||"#").charAt(0)&&(m=''+m+"")),a.id=(n.id||"sjs")+"-"+h,o.push(Se("td",m,a))}}return""+o.join("")+""}var sN='SheetJS Table Export',cN="";function dN(t,i){var e=i||{},r=null!=e.footer?e.footer:cN,o=[null!=e.header?e.header:sN],a=On(t["!ref"]);o.push(function lN(t,i,e){return[].join("")+""}(0,0,e));for(var s=a.s.r;s<=a.e.r;++s)o.push(aN(t,a,s,e));return o.push(""+r),o.join("")}var Lge=function(){var t=["",'',"",'',"",'',"",""].join(""),i=""+t+"";return function(){return an+i}}();function Nge(t,i){var e="number",n="",r={"style:name":i},o="",a=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[a]){for(o="";'"'!=t[++a]||'"'==t[++a];)o+=t[a];"*"==t[1+--a]?(a++,n+=""+Ot(o.replace(/""/g,'"'))+""):n+=""+Ot(o.replace(/""/g,'"'))+"",t=t.slice(a+1),a=0}var s=t.match(/# (\?+)\/(\?+)/);if(s)n+=Se("number:fraction",null,{"number:min-integer-digits":0,"number:min-numerator-digits":s[1].length,"number:max-denominator-value":Math.max(+s[1].replace(/./g,"9"),+s[2].replace(/./g,"9"))});else if(s=t.match(/# (\?+)\/(\d+)/))n+=Se("number:fraction",null,{"number:min-integer-digits":0,"number:min-numerator-digits":s[1].length,"number:denominator-value":+s[2]});else if(s=t.match(/(\d+)(|\.\d+)%/))e="percentage",n+=Se("number:number",null,{"number:decimal-places":s[2]&&s.length-1||0,"number:min-decimal-places":s[2]&&s.length-1||0,"number:min-integer-digits":s[1].length})+"%";else{var c=!1;if(["y","m","d"].indexOf(t[0])>-1){e="date";t:for(;a";break;case"yyy":case"yyyy":n+='';break;case"mmmmm":console.error("ODS has no equivalent of format |mmmmm|");case"m":case"mm":case"mmm":case"mmmm":n+='';break;case"d":case"dd":n+='';break;case"ddd":case"dddd":n+=''}break;case'"':for(;'"'!=t[++a]||'"'==t[++a];)o+=t[a];--a,n+=""+Ot(o.slice(1).replace(/""/g,'"'))+"";break;case"/":n+=""+Ot(o)+"";break;default:console.error("unrecognized character "+o+" in ODF format "+t)}if(!c)break e;t=t.slice(a+1),a=0}if(t.match(/^\[?[hms]/))for("number"==e&&(e="time"),t.match(/\[/)&&(t=t.replace(/[\[\]]/g,""),r["number:truncate-on-overflow"]="false");a';break;case"m":case"mm":n+='';break;case"s":case"ss":if("."==t[a+1])do{o+=t[a+1],++a}while("0"==t[a+1]);n+='"}break;case'"':for(;'"'!=t[++a]||'"'==t[++a];)o+=t[a];--a,n+=""+Ot(o.slice(1).replace(/""/g,'"'))+"";break;case"/":n+=""+Ot(o)+"";break;case"a":if("a/p"==t.slice(a,a+3).toLowerCase()){n+="",a+=2;break}if("am/pm"==t.slice(a,a+5).toLowerCase()){n+="",a+=4;break}default:console.error("unrecognized character "+o+" in ODF format "+t)}else{if(t.indexOf(/\$/)>-1&&(e="currency"),"$"==t[0]&&(n+='$',t=t.slice(1),a=0),'"'==t[a=0]){for(;'"'!=t[++a]||'"'==t[++a];)o+=t[a];"*"==t[1+--a]?(a++,n+=""+Ot(o.replace(/""/g,'"'))+""):n+=""+Ot(o.replace(/""/g,'"'))+"",t=t.slice(a+1),a=0}var d=t.match(/([#0][0#,]*)(\.[0#]*|)(E[+]?0*|)/i);if(d&&d[0]){var u=d[1].replace(/,/g,"");n+="-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+'"':"")+">",a=d.index+d[0].length}else console.error("Could not find numeric part of "+t);if('"'==t[a]){for(o="";'"'!=t[++a]||'"'==t[++a];)o+=t[a];--a,n+=""+Ot(o.replace(/""/g,'"'))+""}}}}else e="text",n="";return n?Se("number:"+e+"-style",n,r):(console.error("Could not generate ODS number format for |"+t+"|"),"")}function bN(t,i,e){var n=t.filter(function(r){return r.Sheet==(-1==e?null:e)});return n.length?" \n"+n.map(function(r){var o=WL(r.Ref);return" "+Se("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 vN=function(){var t=function(o){return Ot(o).replace(/ +/g,function(a){return''}).replace(/\t/g,"").replace(/\n/g,"").replace(/^ /,"").replace(/ $/,"")},i=" \n",n=function(o,a,s,c,l){var d=[];d.push(' \n');var u=0,h=0,f=On(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 w=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 L=zt({r:u,c:h}),D=p?(o["!data"][u]||[])[h]:o[L];if(D&&D.f&&(E["table:formula"]=Ot(cfe(D.f)),D.F&&D.F.slice(0,L.length)==L)){var B=On(D.F);E["table:number-matrix-columns-spanned"]=B.e.c-B.s.c+1,E["table:number-matrix-rows-spanned"]=B.e.r-B.s.r+1}if(D){switch(D.t){case"b":W=D.v?"TRUE":"FALSE",E["office:value-type"]="boolean",E["office:boolean-value"]=D.v?"true":"false";break;case"n":W=D.w||String(D.v||0),E["office:value-type"]="float",E["office:value"]=D.v||0;break;case"s":case"str":W=null==D.v?"":D.v,E["office:value-type"]="string";break;case"d":W=D.w||ji(D.v).toISOString(),E["office:value-type"]="date",E["office:date-value"]=ji(D.v).toISOString(),E["table:style-name"]="ce1";break;default:d.push(i);continue}var N=t(W);if(D.l&&D.l.Target){var j=D.l.Target;"#"!=(j="#"==j.charAt(0)?"#"+WL(j.slice(1)):j).charAt(0)&&!j.match(/^\w+:/)&&(j="../"+j),N=Se("text:a",N,{"xlink:href":j.replace(/&/g,"&")})}l[D.z]&&(E["table:style-name"]="ce"+l[D.z].slice(1)),d.push(" "+Se("table:table-cell",Se("text:p",N,{}),E)+"\n")}else d.push(i)}}d.push(" \n")}return(a.Workbook||{}).Names&&d.push(bN(a.Workbook.Names,0,s)),d.push(" \n"),d.join("")};return function(a,s){var c=[an],l=kf({"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=kf({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});"fods"==s.bookType?(c.push("\n"),c.push(F4().replace(//,"").replace(/<\/office:document-meta>/,"")+"\n")):c.push("\n");var u=function(o,a){o.push(" \n");var s=0;a.SheetNames.map(function(u){return a.Sheets[u]}).forEach(function(u){if(u&&u["!cols"])for(var h=0;h\n'),o.push(' \n'),o.push(" \n"),++s}});var c=0;a.SheetNames.map(function(u){return a.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 a.SheetNames.map(function(u){return a.Sheets[u]}).forEach(function(u){if(u)for(var h=null!=u["!data"],f=On(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[zt({r:m,c:g})];if(p&&p.z&&"general"!=p.z.toLowerCase()&&!l[p.z]){var _=Nge(p.z,"N"+d);_&&(l[p.z]="N"+d,++d,o.push(_+"\n"))}}}),o.push(' \n'),$i(l).forEach(function(u){o.push('\n')}),o.push(" \n"),l}(c,a);c.push(" \n"),c.push(" \n"),((a.Workbook||{}).WBProps||{}).date1904&&c.push(' \n \n \n');for(var h=0;h!=a.SheetNames.length;++h)c.push(n(a.Sheets[a.SheetNames[h]],a,h,0,u));return(a.Workbook||{}).Names&&c.push(bN(a.Workbook.Names,0,-1)),c.push(" \n"),c.push(" \n"),c.push("fods"==s.bookType?"":""),c.join("")}}();function xN(t,i){if("fods"==i.bookType)return vN(t,i);var e=cw(),n="",r=[],o=[];return Rt(e,n="mimetype","application/vnd.oasis.opendocument.spreadsheet"),Rt(e,n="content.xml",vN(t,i)),r.push([n,"text/xml"]),o.push([n,"ContentFile"]),Rt(e,n="styles.xml",Lge(t,i)),r.push([n,"text/xml"]),o.push([n,"StylesFile"]),Rt(e,n="meta.xml",an+F4()),r.push([n,"text/xml"]),o.push([n,"MetadataFile"]),Rt(e,n="manifest.rdf",function Jae(t){var i=[an];i.push('\n');for(var e=0;e!=t.length;++e)i.push(I4(t[e][0],t[e][1])),i.push(Zae("",t[e][0]));return i.push(I4("","Document","pkg")),i.push(""),i.join("")}(o)),r.push([n,"application/rdf+xml"]),Rt(e,n="META-INF/manifest.xml",function Kae(t){var i=[an];i.push('\n'),i.push(' \n');for(var e=0;e\n');return i.push(""),i.join("")}(r)),e}var kn=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 gs(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function jn(t){return typeof TextDecoder<"u"?(new TextDecoder).decode(t):Ci(ka(t))}function Ko(t){return typeof TextEncoder<"u"?(new TextEncoder).encode(t):kr(Sa(t))}function ic(t){for(var i=0,e=0;e=128&&(n|=(127&t[e])<<7,t[e++]<128||(n|=(127&t[e])<<14,t[e++]<128)||(n|=(127&t[e])<<21,t[e++]<128)||(n+=(127&t[e])*Math.pow(2,28),++e,t[e++]<128)||(n+=(127&t[e])*Math.pow(2,35),++e,t[e++]<128)||(n+=(127&t[e])*Math.pow(2,42),++e,t[e++]<128)))break e;return i.l=e,n}function et(t){var i=new Uint8Array(7);i[0]=127&t;var e=1;e:if(t>127){if(i[e-1]|=128,i[e]=t>>7&127,++e,t<=16383||(i[e-1]|=128,i[e]=t>>14&127,++e,t<=2097151)||(i[e-1]|=128,i[e]=t>>21&127,++e,t<=268435455)||(i[e-1]|=128,i[e]=t/256>>>21&127,++e,t<=34359738367)||(i[e-1]|=128,i[e]=t/65536>>>21&127,++e,t<=4398046511103))break e;i[e-1]|=128,i[e]=t/16777216>>>21&127,++e}return i[kn](0,e)}function yN(t){for(var i={l:0},e=[];i.l=128){if(e|=(127&t[i])<<7,t[i++]<128||(e|=(127&t[i])<<14,t[i++]<128)||(e|=(127&t[i])<<21,t[i++]<128))break e;e|=(127&t[i])<<28}return e}function Be(t){for(var i=[],e={l:0};e.l=128;);a=t[kn](e.l,s),e.l=s;break;case 1:a=t[kn](s,s+8),e.l=s+8;break;case 2:var c=Qf(t,e);a=t[kn](e.l,e.l+c),e.l+=c;break;case 5:a=t[kn](s,s+4),e.l=s+4;break;default:throw new Error("PB Type ".concat(o," for Field ").concat(r," at offset ").concat(n))}var l={data:a,type:o};null==i[r]&&(i[r]=[]),i[r].push(l)}return i}function dt(t){var i=[];return t.forEach(function(e,n){0!=n&&e.forEach(function(r){r.data&&(i.push(et(8*n+r.type)),2==r.type&&i.push(et(r.data.length)),i.push(r.data))})}),ic(i)}function pl(t,i){return t?.map(function(e){return i(e.data)})||[]}function Yf(t){for(var i,e=[],n={l:0};n.l>>0>0),e.push(a)}return e}function Kf(t){var i=[];return t.forEach(function(e){var n=[[],[{data:et(e.id),type:0}],[]];null!=e.merge&&(n[3]=[{data:et(+!!e.merge),type:0}]);var r=[];e.messages.forEach(function(a){r.push(a.data),a.meta[3]=[{type:0,data:et(a.data.length)}],n[2].push({data:dt(a.meta),type:2})});var o=dt(n);i.push(et(o.length)),i.push(o),r.forEach(function(a){return i.push(a)})}),ic(i)}function Hge(t,i){if(0!=t)throw new Error("Unexpected Snappy chunk type ".concat(t));for(var e={l:0},n=Qf(i,e),r=[],o=e.l;o>2&7),l=(224&i[o++])<<3,l|=i[o++]):(d=1+(i[o++]>>2),2==a?(l=i[o]|i[o+1]<<8,o+=2):(l=(i[o]|i[o+1]<<8|i[o+2]<<16|i[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][kn](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][kn](0,d))}r.length>25&&(r=[ic(r)])}else{var s=i[o++]>>2;if(s<60)++s;else{var c=s-59;s=i[o],c>1&&(s|=i[o+1]<<8),c>2&&(s|=i[o+2]<<16),c>3&&(s|=i[o+3]<<24),s>>>=0,s++,o+=c}r.push(i[kn](o,o+s)),o+=s}}for(var f=0,m=0;m>8&255]))):n<=16777216?(a+=4,i.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(a+=5,i.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),i.push(t[kn](e,e+n)),a+=n,r[0]=0,r[1]=255&a,r[2]=a>>8&255,r[3]=a>>16&255,e+=n}return ic(i)}function n_(t,i){var e=new Uint8Array(32),n=gs(e),r=12,o=0;switch(e[0]=5,t.t){case"n":e[1]=2,function Vge(t,i,e){var n=Math.floor(0==e?0:Math.LOG10E*Math.log(Math.abs(e)))+6176-16,r=e/Math.pow(10,n-6176);t[i+15]|=n>>7,t[i+14]|=(127&n)<<1;for(var o=0;r>=1;++o,r/=256)t[i+o]=255&r;t[i+15]|=e>=0?0:128}(e,r,t.v),o|=1,r+=16;break;case"b":e[1]=6,n.setFloat64(r,t.v?1:0,!0),o|=2,r+=8;break;case"s":var a=null==t.v?"":String(t.v),s=i.indexOf(a);-1==s&&(i[s=i.length]=a),e[1]=3,n.setUint32(r,s,!0),o|=8,r+=4;break;default:throw"unsupported cell type "+t.t}return n.setUint32(8,o,!0),e[kn](0,r)}function r_(t,i){var e=new Uint8Array(32),n=gs(e),r=12,o=0;switch(e[0]=4,t.t){case"n":e[2]=2,n.setFloat64(r,t.v,!0),o|=32,r+=8;break;case"b":e[2]=6,n.setFloat64(r,t.v?1:0,!0),o|=32,r+=8;break;case"s":var a=null==t.v?"":String(t.v),s=i.indexOf(a);-1==s&&(i[s=i.length]=a),e[2]=3,n.setUint32(r,s,!0),o|=16,r+=4;break;default:throw"unsupported cell type "+t.t}return n.setUint32(8,o,!0),e[kn](0,r)}function Di(t){return Zt(Be(t)[1][0].data)}function _s(t){return dt([[],[{type:0,data:et(t)}]])}function nc(t,i){var e,n=null!=(e=t.messages[0].meta[5])&&e[0]?yN(t.messages[0].meta[5][0].data):[];-1==n.indexOf(i)&&(n.push(i),t.messages[0].meta[5]=[{type:2,data:wN(n)}])}function bs(t,i){var e,n=null!=(e=t.messages[0].meta[5])&&e[0]?yN(t.messages[0].meta[5][0].data):[];t.messages[0].meta[5]=[{type:2,data:wN(n.filter(function(r){return r!=i}))}]}function Kge(t,i,e){var n,r,o=[[],[{type:0,data:et(0)}],[{type:0,data:et(0)}],[{type:2,data:new Uint8Array([])}],[{type:2,data:new Uint8Array(Array.from({length:510},function(){return 255}))}],[{type:0,data:et(5)}],[{type:2,data:new Uint8Array([])}],[{type:2,data:new Uint8Array(Array.from({length:510},function(){return 255}))}],[{type:0,data:et(1)}]];if(null==(n=o[6])||!n[0]||null==(r=o[7])||!r[0])throw"Mutation only works on post-BNC storages!";var a=0;if(o[7][0].data.length<2*t.length){var s=new Uint8Array(2*t.length);s.set(o[7][0].data),o[7][0].data=s}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=gs(o[7][0].data),d=0,u=[],h=gs(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:""};sC(i=i||{});var o=cw(),a="",s=0;if(i.cellXfs=[],tc(i.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),Rt(o,a="docProps/core.xml",O4(t.Props,i)),r.coreprops.push(a),ki(i.rels,2,a,Pt.CORE_PROPS),a="docProps/app.xml",!t.Props||!t.Props.SheetNames)if(t.Workbook&&t.Workbook.Sheets){for(var c=[],l=0;l0&&(Rt(o,a="docProps/custom.xml",B4(t.Custprops)),r.custprops.push(a),ki(i.rels,4,a,Pt.CUST_PROPS));var d=["SheetJ5"];for(i.tcid=0,s=1;s<=t.SheetNames.length;++s){var u={"!id":{}},h=t.Sheets[t.SheetNames[s-1]];if(Rt(o,a="xl/worksheets/sheet"+s+"."+e,Hfe(s-1,i,t,u)),r.sheets.push(a),ki(i.wbrels,-1,"worksheets/sheet"+s+"."+e,Pt.WS[0]),h){var m=h["!comments"],g=!1,p="";if(m&&m.length>0){var _=!1;m.forEach(function(w){w[1].forEach(function(x){1==x.T&&(_=!0)})}),_&&(Rt(o,p="xl/threadedComments/threadedComment"+s+".xml",sue(m,d,i)),r.threadedcomments.push(p),ki(u,-1,"../threadedComments/threadedComment"+s+".xml",Pt.TCMNT)),Rt(o,p="xl/comments"+s+"."+e,oue(m)),r.comments.push(p),ki(u,-1,"../comments"+s+"."+e,Pt.CMNT),g=!0}h["!legacy"]&&g&&Rt(o,"xl/drawings/vmlDrawing"+s+".vml",ML(s,h["!comments"])),delete h["!comments"],delete h["!legacy"]}u["!id"].rId1&&Rt(o,If(a),au(u))}return null!=i.Strings&&i.Strings.length>0&&(Rt(o,a="xl/sharedStrings."+e,function mle(t,i){if(!i.bookSST)return"";var e=[an];e[e.length]=Se("sst",null,{xmlns:el[0],count:t.Count,uniqueCount:t.Unique});for(var n=0;n!=t.length;++n)if(null!=t[n]){var r=t[n],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("")}(i.Strings,i)),r.strs.push(a),ki(i.wbrels,-1,"sharedStrings."+e,Pt.SST)),Rt(o,a="xl/workbook."+e,function ppe(t){var i=[an];i[i.length]=Se("workbook",null,{xmlns:el[0],"xmlns:r":Fn.r});var e=t.Workbook&&(t.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};t.Workbook&&t.Workbook.WBProps&&(Jw.forEach(function(s){null!=t.Workbook.WBProps[s[0]]&&t.Workbook.WBProps[s[0]]!=s[1]&&(n[s[0]]=t.Workbook.WBProps[s[0]])}),t.Workbook.WBProps.CodeName&&(n.codeName=t.Workbook.WBProps.CodeName,delete n.CodeName)),i[i.length]=Se("workbookPr",null,n);var r=t.Workbook&&t.Workbook.Sheets||[],o=0;if(r&&r[0]&&r[0].Hidden){for(i[i.length]="",o=0;o!=t.SheetNames.length&&r[o]&&r[o].Hidden;++o);o==t.SheetNames.length&&(o=0),i[i.length]='',i[i.length]=""}for(i[i.length]="",o=0;o!=t.SheetNames.length;++o){var a={name:Ot(t.SheetNames[o].slice(0,31))};if(a.sheetId=""+(o+1),a["r:id"]="rId"+(o+1),r[o])switch(r[o].Hidden){case 1:a.state="hidden";break;case 2:a.state="veryHidden"}i[i.length]=Se("sheet",null,a)}return i[i.length]="",e&&(i[i.length]="",t.Workbook&&t.Workbook.Names&&t.Workbook.Names.forEach(function(s){var c={name:s.Name};s.Comment&&(c.comment=s.Comment),null!=s.Sheet&&(c.localSheetId=""+s.Sheet),s.Hidden&&(c.hidden="1"),s.Ref&&(i[i.length]=Se("definedName",Ot(s.Ref),c))}),i[i.length]=""),i.length>2&&(i[i.length]="",i[1]=i[1].replace("/>",">")),i.join("")}(t)),r.workbooks.push(a),ki(i.rels,1,a,Pt.WB),Rt(o,a="xl/theme/theme1.xml",Gw(t.Themes,i)),r.themes.push(a),ki(i.wbrels,-1,"theme/theme1.xml",Pt.THEME),Rt(o,a="xl/styles."+e,function tde(t,i){var n,e=[an,Se("styleSheet",null,{xmlns:el[0],"xmlns:vt":Fn.vt})];return t.SSF&&null!=(n=function Kle(t){var i=[""];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(e){for(var n=e[0];n<=e[1];++n)null!=t[n]&&(i[i.length]=Se("numFmt",null,{numFmtId:n,formatCode:Ot(t[n])}))}),1===i.length?"":(i[i.length]="",i[0]=Se("numFmts",null,{count:i.length-2}).replace("/>",">"),i.join(""))}(t.SSF))&&(e[e.length]=n),e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',(n=function Jle(t){var i=[];return i[i.length]=Se("cellXfs",null),t.forEach(function(e){i[i.length]=Se("xf",null,e)}),i[i.length]="",2===i.length?"":(i[0]=Se("cellXfs",null,{count:i.length-2}).replace("/>",">"),i.join(""))}(i.cellXfs))&&(e[e.length]=n),e[e.length]='',e[e.length]='',e[e.length]='',e.length>2&&(e[e.length]="",e[1]=e[1].replace("/>",">")),e.join("")}(t,i)),r.styles.push(a),ki(i.wbrels,-1,"styles."+e,Pt.STY),t.vbaraw&&n&&(Rt(o,a="xl/vbaProject.bin",t.vbaraw),r.vba.push(a),ki(i.wbrels,-1,"vbaProject.bin",Pt.VBA)),Rt(o,a="xl/metadata."+e,function Kde(){var t=[an];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(a),ki(i.wbrels,-1,"metadata."+e,Pt.XLMETA),d.length>1&&(Rt(o,a="xl/persons/person.xml",function lue(t){var i=[an,Se("personList",null,{xmlns:Fn.TCMNT,"xmlns:x":el[0]}).replace(/[\/]>/,">")];return t.forEach(function(e,n){i.push(Se("person",null,{displayName:e,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:e,providerId:"None"}))}),i.push(""),i.join("")}(d)),r.people.push(a),ki(i.wbrels,-1,"persons/person.xml",Pt.PEOPLE)),Rt(o,"[Content_Types].xml",A4(r,i)),Rt(o,"_rels/.rels",au(i.rels)),Rt(o,"xl/_rels/workbook.xml.rels",au(i.wbrels)),delete i.revssf,delete i.ssf,o}function IN(t,i){switch(i.type){case"base64":case"binary":break;case"buffer":case"array":i.type="";break;case"file":return yf(i.file,lt.write(t,{type:Vt?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+i.bookType+"' files");default:throw new Error("Unrecognized type "+i.type)}return lt.write(t,i)}function f0e(t,i){switch(i.bookType){case"ods":return xN(t,i);case"numbers":return function Jge(t,i){if(!i||!i.numbers)throw new Error("Must pass a `numbers` option -- check the README");var e=lt.read(i.numbers,{type:"base64"}),n=function Zge(t){var i={},e=[];return t.FileIndex.map(function(n,r){return[n,t.FullPaths[r]]}).forEach(function(n){var r=n[0],o=n[1];2==r.type&&r.name.match(/\.iwa/)&&0==r.content[0]&&Yf(Zf(r.content)).forEach(function(a){e.push(a.id),i[a.id]={deps:[],location:o,type:Zt(a.messages[0].meta[1][0].data)}})}),t.FileIndex.forEach(function(n){n.name.match(/\.iwa/)&&0==n.content[0]&&Yf(Zf(n.content)).forEach(function(r){r.messages.forEach(function(o){[5,6].forEach(function(a){o.meta[a]&&o.meta[a].forEach(function(s){i[r.id].deps.push(Zt(s.data))})})})})}),i}(e),r=Aa(e,n,1);if(null==r)throw"Could not find message ".concat(1," in Numbers template");var o=pl(Be(r.messages[0].data)[1],Di);if(o.length>1)throw new Error("Template NUMBERS file must have exactly one sheet");return t.SheetNames.forEach(function(a,s){s>=1&&(function e0e(t,i,e){var n=-1,r=-1,o={};Ln(t,i,1,function(l,d){var u=Be(l.messages[0].data);n=Di(Be(l.messages[0].data)[1][0].data),r=rc({deps:[1],location:i[n].location,type:2},i),o[n]=r,nc(l,r),u[1].push({type:2,data:_s(r)});var h=Aa(t,i,n);h.id=r,i[1].location==i[r].location?d.push(h):Ln(t,i,r,function(f,m){return m.push(h)}),l.messages[0].data=dt(u)});var a=-1;Ln(t,i,r,function(l,d){for(var u=Be(l.messages[0].data),h=3;h<=69;++h)delete u[h];var f=pl(u[2],Di);f.forEach(function(p){return bs(l,p)}),a=rc({deps:[r],location:i[f[0]].location,type:i[f[0]].type},i),nc(l,a),o[f[0]]=a,u[2]=[{type:2,data:_s(a)}];var m=Aa(t,i,f[0]);if(m.id=a,i[f[0]].location==i[r].location)d.push(m);else{var g=i[r].location;g=(g=g.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,""),Ln(t,i,2,function(p){var _=Be(p.messages[0].data),w=_[3].findIndex(function(E){var W,L,D=Be(E.data);return null!=(W=D[3])&&W[0]?jn(D[3][0].data)==g:!(null==(L=D[2])||!L[0]||jn(D[2][0].data)!=g)}),x=Be(_[3][w].data);x[6]||(x[6]=[]),x[6].push({type:2,data:dt([[],[{type:0,data:et(a)}]])}),_[3][w].data=dt(x),p.messages[0].data=dt(_)}),Ln(t,i,a,function(p,_){return _.push(m)})}l.messages[0].data=dt(u)});var s=-1;Ln(t,i,a,function(l,d){for(var u=Be(l.messages[0].data),h=Be(u[1][0].data),f=3;f<=69;++f)delete h[f];var m=Di(h[2][0].data);h[2][0].data=_s(o[m]),u[1][0].data=dt(h);var g=Di(u[2][0].data);bs(l,g),nc(l,s=rc({deps:[a],location:i[g].location,type:i[g].type},i)),o[g]=s,u[2][0].data=_s(s);var p=Aa(t,i,g);p.id=s,i[a].location==i[s].location?d.push(p):Ln(t,i,s,function(_,w){return w.push(p)}),l.messages[0].data=dt(u)});var c=i[s].location;c=(c=c.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,""),Ln(t,i,s,function(l,d){var u,h,f=Be(l.messages[0].data),g=jn(f[1][0].data).replace(/-[A-Z0-9]*/,"-".concat(e.toString(16).padStart(4,"0")));if(f[1][0].data=Ko(g),[12,13,29,31,32,33,39,44,47,81,82,84].forEach(function(L){return delete f[L]}),f[45]){var _=Di(Be(f[45][0].data)[1][0].data);bs(l,_),delete f[45]}f[70]&&(null==(u=Be(f[70][0].data)[2])||u.forEach(function(L){var D=Be(L.data);[2,3].map(function(B){return D[B][0]}).forEach(function(B){var N=Be(B.data);if(N[8]){var j=Di(N[8][0].data);bs(l,j)}})}),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(L){if(f[L]){var D=Di(f[L][0].data);delete f[L],bs(l,D)}});var x=Be(f[4][0].data);[2,4,5,6,11,12,13,15,16,17,18,19,20,21,22].forEach(function(L){var D;if(null!=(D=x[L])&&D[0]){var B=Di(x[L][0].data),N=rc({deps:[s],location:i[B].location,type:i[B].type},i);bs(l,B),nc(l,N),o[B]=N;var j=Aa(t,i,B);if(j.id=N,i[B].location==i[s].location)d.push(j);else{i[N].location=i[B].location.replace(B.toString(),N.toString()),i[N].location==i[B].location&&(i[N].location=i[N].location.replace(/\.iwa/,"-".concat(N,".iwa"))),lt.utils.cfb_add(t,i[N].location,Jf(Kf([j])));var Z=i[N].location;Z=(Z=Z.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,""),Ln(t,i,2,function(U){var me=Be(U.messages[0].data);me[3].push({type:2,data:dt([[],[{type:0,data:et(N)}],[{type:2,data:Ko(Z.replace(/-.*$/,""))}],[{type:2,data:Ko(Z)}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:et(0)}],[],[{type:0,data:et(0)}]])}),me[1]=[{type:0,data:et(Math.max(N+1,Zt(me[1][0].data)))}];var be=me[3].findIndex(function(ne){var Y,he,se=Be(ne.data);return null!=(Y=se[3])&&Y[0]?jn(se[3][0].data)==c:!(null==(he=se[2])||!he[0]||jn(se[2][0].data)!=c)}),de=Be(me[3][be].data);de[6]||(de[6]=[]),de[6].push({type:2,data:dt([[],[{type:0,data:et(N)}]])}),me[3][be].data=dt(de),U.messages[0].data=dt(me)})}x[L][0].data=_s(N)}});var E=Be(x[1][0].data);null==(h=E[2])||h.forEach(function(L){var D=Di(L.data),B=rc({deps:[s],location:i[D].location,type:i[D].type},i);bs(l,D),nc(l,B),o[D]=B;var N=Aa(t,i,D);if(N.id=B,i[D].location==i[s].location)d.push(N);else{i[B].location=i[D].location.replace(D.toString(),B.toString()),i[B].location==i[D].location&&(i[B].location=i[B].location.replace(/\.iwa/,"-".concat(B,".iwa"))),lt.utils.cfb_add(t,i[B].location,Jf(Kf([N])));var j=i[B].location;j=(j=j.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,""),Ln(t,i,2,function(Z){var U=Be(Z.messages[0].data);U[3].push({type:2,data:dt([[],[{type:0,data:et(B)}],[{type:2,data:Ko(j.replace(/-.*$/,""))}],[{type:2,data:Ko(j)}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:et(0)}],[],[{type:0,data:et(0)}]])}),U[1]=[{type:0,data:et(Math.max(B+1,Zt(U[1][0].data)))}];var me=U[3].findIndex(function(de){var ne,Y,he=Be(de.data);return null!=(ne=he[3])&&ne[0]?jn(he[3][0].data)==c:!(null==(Y=he[2])||!Y[0]||jn(he[2][0].data)!=c)}),be=Be(U[3][me].data);be[6]||(be[6]=[]),be[6].push({type:2,data:dt([[],[{type:0,data:et(B)}]])}),U[3][me].data=dt(be),Z.messages[0].data=dt(U)})}L.data=_s(B)}),x[1][0].data=dt(E);var W=Be(x[3][0].data);W[1].forEach(function(L){var D=Be(L.data),B=Di(D[2][0].data),N=o[B];if(!o[B]){N=rc({deps:[s],location:"",type:i[B].type},i),i[N].location="Root Entry/Index/Tables/Tile-".concat(N,".iwa"),o[B]=N;var j=Aa(t,i,B);j.id=N,bs(l,B),nc(l,N),lt.utils.cfb_add(t,"/Index/Tables/Tile-".concat(N,".iwa"),Jf(Kf([j]))),Ln(t,i,2,function(Z){var U=Be(Z.messages[0].data);U[3].push({type:2,data:dt([[],[{type:0,data:et(N)}],[{type:2,data:Ko("Tables/Tile")}],[{type:2,data:Ko("Tables/Tile-".concat(N))}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:et(0)}],[],[{type:0,data:et(0)}]])}),U[1]=[{type:0,data:et(Math.max(N+1,Zt(U[1][0].data)))}];var me=U[3].findIndex(function(de){var ne,Y,he=Be(de.data);return null!=(ne=he[3])&&ne[0]?jn(he[3][0].data)==c:!(null==(Y=he[2])||!Y[0]||jn(he[2][0].data)!=c)}),be=Be(U[3][me].data);be[6]||(be[6]=[]),be[6].push({type:2,data:dt([[],[{type:0,data:et(N)}]])}),U[3][me].data=dt(be),Z.messages[0].data=dt(U)})}D[2][0].data=_s(N),L.data=dt(D)}),x[3][0].data=dt(W),f[4][0].data=dt(x),l.messages[0].data=dt(f)})}(e,n,s+1),r=Aa(e,n,1),o=pl(Be(r.messages[0].data)[1],Di)),function t0e(t,i,e,n,r,o){var a=[];Ln(t,i,o,function(l){var d=Be(l.messages[0].data);d[1]=[{type:2,data:Ko(n)}],a=pl(d[2],Di),l.messages[0].data=dt(d)});var c=Di(Be(Aa(t,i,a[0]).messages[0].data)[2][0].data);Ln(t,i,c,function(l,d){return function i0e(t,i,e,n,r,o){var a=On(e["!ref"]);a.s.r=a.s.c=0;var s=!1;a.e.c>999&&(s=!0,a.e.c=999),a.e.r>999999&&(s=!0,a.e.r=999999),s&&console.error("Truncating to ".concat(Et(a)));var c=s_(e,{range:a,header:1}),l=["~Sh33tJ5~"],d=i[o].location;d=(d=d.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,"");var u=Be(n.messages[0].data);u[6][0].data=et(a.e.r+1),u[7][0].data=et(a.e.c+1),delete u[46];var h=Be(u[4][0].data);Ln(t,i,Di(Be(h[1][0].data)[2][0].data),function(be,de){var ne,Y=Be(be.messages[0].data);if(null!=(ne=Y?.[2])&&ne[0])for(var he=0;he0&&(Rt(o,a="docProps/custom.xml",B4(t.Custprops)),r.custprops.push(a),ki(i.rels,4,a,Pt.CUST_PROPS)),s=1;s<=t.SheetNames.length;++s){var d={"!id":{}},u=t.Sheets[t.SheetNames[s-1]];if(Rt(o,a="xl/worksheets/sheet"+s+"."+e,tpe(s-1,i,t,d)),r.sheets.push(a),ki(i.wbrels,-1,"worksheets/sheet"+s+"."+e,Pt.WS[0]),u){var f=u["!comments"],m=!1,g="";f&&f.length>0&&(Rt(o,g="xl/comments"+s+"."+e,pue(f)),r.comments.push(g),ki(d,-1,"../comments"+s+"."+e,Pt.CMNT),m=!0),u["!legacy"]&&m&&Rt(o,"xl/drawings/vmlDrawing"+s+".vml",ML(s,u["!comments"])),delete u["!comments"],delete u["!legacy"]}d["!id"].rId1&&Rt(o,If(a),au(d))}return null!=i.Strings&&i.Strings.length>0&&(Rt(o,a="xl/sharedStrings."+e,function vle(t){var i=Br();fe(i,159,function _le(t,i){return i||(i=re(8)),i.write_shift(4,t.Count),i.write_shift(4,t.Unique),i}(t));for(var e=0;e22)throw new Error("Bad Code Name: Worksheet"+a)}})}(t.SheetNames,t.Workbook&&t.Workbook.Sheets||[],!!t.vbaraw);for(var e=0;e255&&(e=95),o=e>>2,(n=t.charCodeAt(l++))>255&&(n=95),a=(3&e)<<4|n>>4,(r=t.charCodeAt(l++))>255&&(r=95),s=(15&n)<<2|r>>6,c=63&r,isNaN(n)?s=c=64:isNaN(r)&&(c=64),i+=ko.charAt(o)+ko.charAt(a)+ko.charAt(s)+ko.charAt(c);return i}(t);case"binary":case"string":return t;case"file":return yf(i.file,t,"binary");case"buffer":return Vt?Ca(t,"binary"):t.split("").map(function(e){return e.charCodeAt(0)})}throw new Error("Unrecognized type "+i.type)}(NN(t.Sheets[t.SheetNames[r]],e),e);case"csv":return Ia(hC(t.Sheets[t.SheetNames[r]],e),e,"\ufeff");case"dif":return Ia(bL.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"dbf":return a_(Hw.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"prn":return Ia(su.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"rtf":return Ia(function Vle(t,i){var e=["{\\rtf1\\ansi"];if(!t["!ref"])return e[0]+"}";for(var r,n=Kt(t["!ref"]),o=null!=t["!data"],a=[],s=n.s.r;s<=n.e.r;++s){e.push("\\trowd\\trautofit1");for(var c=n.s.c;c<=n.e.c;++c)e.push("\\cellx"+(c+1));for(e.push("\\pard\\intbl"),o&&(a=t["!data"][s]||[]),c=n.s.c;c<=n.e.c;++c){var l=zt({r:s,c});(r=o?a[c]:t[l])&&(null!=r.v||r.f&&!r.F)?(e.push(" "+(r.w||(Ea(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 Ia(vL.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"fods":return Ia(xN(t,e),e);case"wk1":return a_(hl.sheet_to_wk1(t.Sheets[t.SheetNames[r]],e),e);case"wk3":return a_(hl.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),a_(rN(t,e),e);case"biff5":e.biff||(e.biff=5);case"biff8":case"xla":case"xls":return e.biff||(e.biff=8),function g0e(t,i){var e=i||{};return IN(function pge(t,i){var e=i||{},n=lt.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 lt.utils.cfb_add(n,r,rN(t,e)),8==e.biff&&(t.Props||t.Custprops)&&function mge(t,i){var a,e=[],n=[],r=[],o=0,s=VP(Tw,"n"),c=VP(Mw,"n");if(t.Props)for(a=$i(t.Props),o=0;o-1||P4.indexOf(r[o][0])>-1||null!=r[o][1]&&l.push(r[o]);n.length&<.utils.cfb_add(i,"/\x05SummaryInformation",Q4(n,Gf.SI,c,Mw)),(e.length||l.length)&<.utils.cfb_add(i,"/\x05DocumentSummaryInformation",Q4(e,Gf.DSI,s,Tw,l.length?l:null,Gf.UDI))}(t,n),8==e.biff&&t.vbaraw&&function bue(t,i){i.FullPaths.forEach(function(e,n){if(0!=n){var r=e.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");"/"!==r.slice(-1)&<.utils.cfb_add(t,r,i.FileIndex[n].content)}})}(n,lt.read(t.vbaraw,{type:"string"==typeof t.vbaraw?"binary":"buffer"})),n}(t,e),e)}(t,e);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return function m0e(t,i){var e=yi(i||{});return function FN(t,i){var e={},n=Vt?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(i.compression&&(e.compression="DEFLATE"),i.password)e.type=n;else switch(i.type){case"base64":e.type="base64";break;case"binary":e.type="string";break;case"string":throw new Error("'string' output type invalid for '"+i.bookType+"' files");case"buffer":case"file":e.type=n;break;default:throw new Error("Unrecognized type "+i.type)}var r=t.FullPaths?lt.write(t,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[e.type]||e.type,compression:!!i.compression}):t.generate(e);if(typeof Deno<"u"&&"string"==typeof r){if("binary"==i.type||"base64"==i.type)return r;r=new Uint8Array(_f(r))}return i.password&&typeof encrypt_agile<"u"?IN(encrypt_agile(r,i.password),i):"file"===i.type?yf(i.file,r):"string"==i.type?Ci(r):r}(f0e(t,e),e)}(t,e);default:throw new Error("Unrecognized bookType |"+e.bookType+"|")}}function ON(t,i,e,n,r,o,a){var s=Yt(e),c=a.defval,l=a.raw||!Object.prototype.hasOwnProperty.call(a,"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=i.s.c;f<=i.e.c;++f){var m=u?(t["!data"][e]||[])[f]:t[n[f]+s];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!==a.rawNumbers)?g:Ea(m,g,a);null!=g&&(d=!1)}}else{if(void 0===c)continue;null!=o[f]&&(h[o[f]]=c)}}return{row:h,isempty:d}}function s_(t,i){if(null==t||null==t["!ref"])return[];var e={t:"n",v:0},n=0,r=1,o=[],a=0,s="",c={s:{r:0,c:0},e:{r:0,c:0}},l=i||{},d=null!=l.range?l.range:t["!ref"];switch(1===l.header?n=1:"A"===l.header?n=2:Array.isArray(l.header)?n=3:null==l.header&&(n=0),typeof d){case"string":c=Kt(d);break;case"number":(c=Kt(t["!ref"])).s.r=d;break;default:c=d}n>0&&(r=0);var u=Yt(c.s.r),h=[],f=[],m=0,g=0,p=null!=t["!data"],_=c.s.r,w=0,x={};p&&!t["!data"][_]&&(t["!data"][_]=[]);var E=l.skipHidden&&t["!cols"]||[],W=l.skipHidden&&t["!rows"]||[];for(w=c.s.c;w<=c.e.c;++w)if(!(E[w]||{}).hidden)switch(h[w]=Ht(w),e=p?t["!data"][_][w]:t[h[w]+u],n){case 1:o[w]=w-c.s.c;break;case 2:o[w]=h[w];break;case 3:o[w]=l.header[w-c.s.c];break;default:if(null==e&&(e={w:"__EMPTY",t:"s"}),s=a=Ea(e,null,l),g=x[a]||0){do{s=a+"_"+g++}while(x[s]);x[a]=g,x[s]=1}else x[a]=1;o[w]=s}for(_=c.s.r+r;_<=c.e.r;++_)if(!(W[_]||{}).hidden){var L=ON(t,c,_,h,n,o,l);(!1===L.isempty||(1===n?!1!==l.blankrows:l.blankrows))&&(f[m++]=L.row)}return f.length=m,f}var PN=/"/g;function LN(t,i,e,n,r,o,a,s){for(var c=!0,l=[],d="",u=Yt(e),h=null!=t["!data"],f=h&&t["!data"][e]||[],m=i.s.c;m<=i.e.c;++m)if(n[m]){var g=h?f[m]:t[n[m]+u];if(null==g)d="";else if(null!=g.v){c=!1,d=""+(s.rawNumbers&&"n"==g.t?g.v:Ea(g,null,s));for(var p=0,_=0;p!==d.length;++p)if((_=d.charCodeAt(p))===r||_===o||34===_||s.forceQuotes){d='"'+d.replace(PN,'""')+'"';break}"ID"==d&&(d='"ID"')}else null==g.f||g.F?d="":(c=!1,(d="="+g.f).indexOf(",")>=0&&(d='"'+d.replace(PN,'""')+'"'));l.push(d)}return!1===s.blankrows&&c?null:l.join(a)}function hC(t,i){var e=[],n=i??{};if(null==t||null==t["!ref"])return"";for(var r=Kt(t["!ref"]),o=void 0!==n.FS?n.FS:",",a=o.charCodeAt(0),s=void 0!==n.RS?n.RS:"\n",c=s.charCodeAt(0),l=new RegExp(("|"==o?"\\|":o)+"+$"),d="",u=[],h=n.skipHidden&&t["!cols"]||[],f=n.skipHidden&&t["!rows"]||[],m=r.s.c;m<=r.e.c;++m)(h[m]||{}).hidden||(u[m]=Ht(m));for(var g=0,p=r.s.r;p<=r.e.r;++p)(f[p]||{}).hidden||null!=(d=LN(t,r,p,u,a,c,o,n))&&(n.strip&&(d=d.replace(l,"")),(d||!1!==n.blankrows)&&e.push((g++?s:"")+d));return e.join("")}function NN(t,i){i||(i={}),i.FS="\t",i.RS="\n";var e=hC(t,i);if(typeof Mt>"u"||"string"==i.type)return e;var n=Mt.utils.encode(1200,e,"str");return String.fromCharCode(255)+String.fromCharCode(254)+n}function BN(t,i,e){var n=e||{},r=t?null!=t["!data"]:n.dense;null!=on&&null==r&&(r=on);var o=+!n.skipHeader,a=t||{};!t&&r&&(a["!data"]=[]);var s=0,c=0;if(a&&null!=n.origin)if("number"==typeof n.origin)s=n.origin;else{var l="string"==typeof n.origin?bi(n.origin):n.origin;s=l.r,c=l.c}var d={s:{c:0,r:0},e:{c,r:s+i.length-1+o}};if(a["!ref"]){var u=Kt(a["!ref"]);d.e.c=Math.max(d.e.c,u.e.c),d.e.r=Math.max(d.e.r,u.e.r),-1==s&&(d.e.r=(s=u.e.r+1)+i.length-1+o)}else-1==s&&(s=0,d.e.r=i.length-1+o);var h=n.header||[],f=0,m=[];i.forEach(function(p,_){r&&!a["!data"][s+_+o]&&(a["!data"][s+_+o]=[]),r&&(m=a["!data"][s+_+o]),$i(p).forEach(function(w){-1==(f=h.indexOf(w))&&(h[f=h.length]=w);var x=p[w],E="z",W="",L=r?"":Ht(c+f)+Yt(s+_+o),D=r?m[c+f]:a[L];!x||"object"!=typeof x||x instanceof Date?("number"==typeof x?E="n":"boolean"==typeof x?E="b":"string"==typeof x?E="s":x instanceof Date?(E="d",n.cellDates||(E="n",x=xn(x)),W=null!=D&&D.z&&Qs(D.z)?D.z:n.dateNF||ut[14]):null===x&&n.nullError&&(E="e",x=0),D?(D.t=E,D.v=x,delete D.w,delete D.R,W&&(D.z=W)):r?m[c+f]=D={t:E,v:x}:a[L]=D={t:E,v:x},W&&(D.z=W)):r?m[c+f]=x:a[L]=x})}),d.e.c=Math.max(d.e.c,c+h.length-1);var g=Yt(s);if(r&&!a["!data"][s]&&(a["!data"][s]=[]),o)for(f=0;f=65535)throw new Error("Too many worksheets");if(n&&t.SheetNames.indexOf(e)>=0){var o=e.match(/(^.*?)(\d+)$/);r=o&&+o[2]||0;var a=o&&o[1]||e;for(++r;r<=65535&&-1!=t.SheetNames.indexOf(e=a+r);++r);}if(JL(e),t.SheetNames.indexOf(e)>=0)throw new Error("Worksheet with name |"+e+"| already exists!");return t.SheetNames.push(e),t.Sheets[e]=i,e}var HN_json_to_sheet=function y0e(t,i){return BN(null,t,i)};let P0e=(()=>{class t{constructor(){}exportAsExcelFile(e,n){const a=em({Sheets:{data:HN_json_to_sheet(e)},SheetNames:["data"]},{bookType:"xlsx",type:"array"});this.saveAsExcelFile(a,n)}saveAsExcelFile(e,n){const r=new Blob([e],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"});qd.saveAs(r,n+"_export_"+(new Date).getTime()+".xlsx")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const L0e=["*",[["mat-toolbar-row"]]],N0e=["*","mat-toolbar-row"],B0e=Ns(class{constructor(t){this._elementRef=t}});let V0e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),H0e=(()=>{class t extends B0e{constructor(e,n,r){super(e),this._platform=n,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(xi),b(it))},t.\u0275cmp=je({type:t,selectors:[["mat-toolbar"]],contentQueries:function(e,n,r){if(1&e&&Bt(r,V0e,5),2&e){let o;xe(o=ye())&&(n._toolbarRows=o)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,n){2&e&&Xe("mat-toolbar-multiple-rows",n._toolbarRows.length>0)("mat-toolbar-single-row",0===n._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[pe],ngContentSelectors:N0e,decls:2,vars:0,template:function(e,n){1&e&&(vi(L0e),Je(0),Je(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .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}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),t})(),U0e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt,xt]}),t})();function z0e(t,i){if(1&t){const e=ot();v(0,"button",6),X("click",function(){const o=Oe(e).$implicit;return Pe(q().setFhirServer(o))}),M(1),y()}if(2&t){const e=i.$implicit;k(1),tt(e.name)}}function $0e(t,i){if(1&t){const e=ot();v(0,"button",6),X("click",function(){const o=Oe(e).$implicit;return Pe(q(2).setEdition(o))}),M(1),y()}if(2&t){const e=i.$implicit;k(1),tt(e.resource.version)}}function j0e(t,i){if(1&t&&(Ai(0),v(1,"button",14),M(2),y(),v(3,"mat-menu",null,15),H(5,$0e,2,1,"button",9),y(),Ii()),2&t){const e=i.$implicit,n=Nt(4);k(1),A("matMenuTriggerFor",n),k(1),tt(e.editionName),k(3),A("ngForOf",e.editions)}}function W0e(t,i){if(1&t){const e=ot();v(0,"button",6),X("click",function(){const o=Oe(e).$implicit;return Pe(q().setLanguage(o))}),M(1),y()}if(2&t){const e=i.$implicit;k(1),tt(e)}}let G0e=(()=>{class t{constructor(e,n,r,o){this.codingSpecService=e,this.excelService=n,this.terminologyService=r,this.router=o,this.title="sct-implementation-demonstrator",this.bindingsForExport=[],this.editions=[],this.editionsDetails=[],this.languages=["be","en","es","fr","no"],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.router.events.subscribe(a=>{a instanceof Fs&>ag("config","G-7SK998GPMX",{page_path:a.urlAfterRedirects})})}ngOnInit(){this.setFhirServer(this.selectedServer),this.bindingsForExport=[];let e=this.codingSpecService.getCodingSpec();for(const n of e)for(const r of n.bindings)this.bindingsForExport.push({section:n.title,title:r.title,ecl:r.ecl.replace(/\s\s+/g," ")});this.updateCodeSystemOptions()}navigate(e){this.router.navigate([e])}updateCodeSystemOptions(){this.terminologyService.getCodeSystems().subscribe(e=>{this.editionsDetails=[],this.editions=e.entry;let n=new Set;this.editions.forEach(o=>{n.add(o.resource.title)}),n.forEach(o=>{this.editionsDetails.push({editionName:o,editions:this.editions.filter(a=>a.resource.title.includes(o)).sort(this.compare)})});const r=this.editionsDetails.findIndex(o=>"International Edition"===o.editionName);this.setEdition(r>=0?this.editionsDetails[r].editions[0]:this.editions[0])})}compare(e,n){return e.resource.daten.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)}}return t.\u0275fac=function(e){return new(e||t)(b(doe),b(P0e),b(wo),b(Pr))},t.\u0275cmp=je({type:t,selectors:[["app-root"]],decls:34,vars:10,consts:[["src","assets/img/small_logo.png","height","60px"],["id","title"],[1,"example-spacer"],["mat-flat-button","","color","accent",3,"matMenuTriggerFor"],[1,"wide-menu"],["demosMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-flat-button","","color","primary",3,"matMenuTriggerFor"],["serverMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["editionsMenu","matMenu"],[4,"ngFor","ngForOf"],["menu","matMenu"],["mat-flat-button","","href","https://github.com/IHTSDO/sct-implementation-demonstrator","target","_blank","color","primary"],["mat-menu-item","",3,"matMenuTriggerFor"],["sub_menu","matMenu"]],template:function(e,n){if(1&e&&(v(0,"mat-toolbar"),Ee(1,"img",0),v(2,"span",1),M(3,"SNOMED CT Implementation Demos"),y(),Ee(4,"span",2),v(5,"button",3),M(6,"Select Demonstrator"),y(),v(7,"mat-menu",4,5)(9,"button",6),X("click",function(){return n.navigate("/allergies")}),M(10,"Allergies CRG"),y(),v(11,"button",6),X("click",function(){return n.navigate("/sandbox")}),M(12,"Terminology Bindings Sandbox"),y(),v(13,"button",6),X("click",function(){return n.navigate("/questionnaires")}),M(14,"FHIR Questionnaire Validation Tool"),y()(),v(15,"button",7),M(16),y(),v(17,"mat-menu",null,8),H(19,z0e,2,1,"button",9),y(),v(20,"button",7),M(21),y(),v(22,"mat-menu",4,10),H(24,j0e,6,3,"ng-container",11),y(),v(25,"button",7),M(26),y(),v(27,"mat-menu",null,12),H(29,W0e,2,1,"button",9),y(),v(30,"a",13)(31,"mat-icon"),M(32,"info"),y()()(),Ee(33,"router-outlet")),2&e){const r=Nt(8),o=Nt(18),a=Nt(23),s=Nt(28);k(5),A("matMenuTriggerFor",r),k(10),A("matMenuTriggerFor",o),k(1),It("FHIR Server: ",n.selectedServer.name,""),k(3),A("ngForOf",n.fhirServers),k(1),A("matMenuTriggerFor",a),k(1),tt(n.selectedEdition),k(3),A("ngForOf",n.editionsDetails),k(1),A("matMenuTriggerFor",s),k(1),tt(n.selectedLanguage),k(3),A("ngForOf",n.languages)}},dependencies:[go,Kx,H0e,dX,yo,ba,$c,va,jc],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}#title[_ngcontent-%COMP%]{margin-left:15px;font-size:1.4rem}.example-spacer[_ngcontent-%COMP%]{flex:1 1 auto}button[_ngcontent-%COMP%], 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}"]}),t})();function UN(t){return new ue(3e3,!1)}function E_e(){return typeof window<"u"&&typeof window.document<"u"}function mC(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function oc(t){switch(t.length){case 0:return new Lh;case 1:return t[0];default:return new tF(t)}}function zN(t,i,e,n,r=new Map,o=new Map){const a=[],s=[];let c=-1,l=null;if(n.forEach(d=>{const u=d.get("offset"),h=u==c,f=h&&l||new Map;d.forEach((m,g)=>{let p=g,_=m;if("offset"!==g)switch(p=i.normalizePropertyName(p,a),_){case $y:_=r.get(g);break;case ns:_=o.get(g);break;default:_=i.normalizeStyleValue(g,p,_,a)}f.set(p,_)}),h||s.push(f),l=f,c=u}),a.length)throw function p_e(t){return new ue(3502,!1)}();return s}function pC(t,i,e,n){switch(i){case"start":t.onStart(()=>n(e&&gC(e,"start",t)));break;case"done":t.onDone(()=>n(e&&gC(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&gC(e,"destroy",t)))}}function gC(t,i,e){const o=_C(t.element,t.triggerName,t.fromState,t.toState,i||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),a=t._data;return null!=a&&(o._data=a),o}function _C(t,i,e,n,r="",o=0,a){return{element:t,triggerName:i,fromState:e,toState:n,phaseName:r,totalTime:o,disabled:!!a}}function no(t,i,e){let n=t.get(i);return n||t.set(i,n=e),n}function $N(t){const i=t.indexOf(":");return[t.substring(1,i),t.slice(i+1)]}let bC=(t,i)=>!1,jN=(t,i,e)=>[],WN=null;function vC(t){const i=t.parentNode||t.host;return i===WN?null:i}(mC()||typeof Element<"u")&&(E_e()?(WN=(()=>document.documentElement)(),bC=(t,i)=>{for(;i;){if(i===t)return!0;i=vC(i)}return!1}):bC=(t,i)=>t.contains(i),jN=(t,i,e)=>{if(e)return Array.from(t.querySelectorAll(i));const n=t.querySelector(i);return n?[n]:[]});let gl=null,GN=!1;const qN=bC,XN=jN;let QN=(()=>{class t{validateStyleProperty(e){return function M_e(t){gl||(gl=function A_e(){return typeof document<"u"?document.body:null}()||{},GN=!!gl.style&&"WebkitAppearance"in gl.style);let i=!0;return gl.style&&!function T_e(t){return"ebkit"==t.substring(1,6)}(t)&&(i=t in gl.style,!i&&GN&&(i="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in gl.style)),i}(e)}matchesElement(e,n){return!1}containsElement(e,n){return qN(e,n)}getParentElement(e){return vC(e)}query(e,n,r){return XN(e,n,r)}computeStyle(e,n,r){return r||""}animate(e,n,r,o,a,s=[],c){return new Lh(r,o)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})(),xC=(()=>{class t{}return t.NOOP=new QN,t})();const I_e=1e3,yC="ng-enter",u_="ng-leave",h_="ng-trigger",f_=".ng-trigger",KN="ng-animating",wC=".ng-animating";function vs(t){if("number"==typeof t)return t;const i=t.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:CC(parseFloat(i[1]),i[2])}function CC(t,i){return"s"===i?t*I_e:t}function m_(t,i,e){return t.hasOwnProperty("duration")?t:function R_e(t,i,e){let r,o=0,a="";if("string"==typeof t){const s=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return i.push(UN()),{duration:0,delay:0,easing:""};r=CC(parseFloat(s[1]),s[2]);const c=s[3];null!=c&&(o=CC(parseFloat(c),s[4]));const l=s[5];l&&(a=l)}else r=t;if(!e){let s=!1,c=i.length;r<0&&(i.push(function q0e(){return new ue(3100,!1)}()),s=!0),o<0&&(i.push(function X0e(){return new ue(3101,!1)}()),s=!0),s&&i.splice(c,0,UN())}return{duration:r,delay:o,easing:a}}(t,i,e)}function tm(t,i={}){return Object.keys(t).forEach(e=>{i[e]=t[e]}),i}function ZN(t){const i=new Map;return Object.keys(t).forEach(e=>{i.set(e,t[e])}),i}function ac(t,i=new Map,e){if(e)for(let[n,r]of e)i.set(n,r);for(let[n,r]of t)i.set(n,r);return i}function e3(t,i,e){return e?i+":"+e+";":""}function t3(t){let i="";for(let e=0;e{const o=DC(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=n}),mC()&&t3(t))}function _l(t,i){t.style&&(i.forEach((e,n)=>{const r=DC(n);t.style[r]=""}),mC()&&t3(t))}function im(t){return Array.isArray(t)?1==t.length?t[0]:JI(t):t}const kC=new RegExp("{{\\s*(.+?)\\s*}}","g");function n3(t){let i=[];if("string"==typeof t){let e;for(;e=kC.exec(t);)i.push(e[1]);kC.lastIndex=0}return i}function nm(t,i,e){const n=t.toString(),r=n.replace(kC,(o,a)=>{let s=i[a];return null==s&&(e.push(function Y0e(t){return new ue(3003,!1)}()),s=""),s.toString()});return r==n?t:r}function p_(t){const i=[];let e=t.next();for(;!e.done;)i.push(e.value),e=t.next();return i}const L_e=/-+([a-z0-9])/g;function DC(t){return t.replace(L_e,(...i)=>i[1].toUpperCase())}function N_e(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ro(t,i,e){switch(i.type){case 7:return t.visitTrigger(i,e);case 0:return t.visitState(i,e);case 1:return t.visitTransition(i,e);case 2:return t.visitSequence(i,e);case 3:return t.visitGroup(i,e);case 4:return t.visitAnimate(i,e);case 5:return t.visitKeyframes(i,e);case 6:return t.visitStyle(i,e);case 8:return t.visitReference(i,e);case 9:return t.visitAnimateChild(i,e);case 10:return t.visitAnimateRef(i,e);case 11:return t.visitQuery(i,e);case 12:return t.visitStagger(i,e);default:throw function K0e(t){return new ue(3004,!1)}()}}function r3(t,i){return window.getComputedStyle(t)[i]}const b_="*";function $_e(t,i){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(n=>function j_e(t,i,e){if(":"==t[0]){const c=function W_e(t,i){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n) *"}}(t,e);if("function"==typeof c)return void i.push(c);t=c}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return e.push(function d_e(t){return new ue(3015,!1)}()),i;const r=n[1],o=n[2],a=n[3];i.push(o3(r,a));"<"==o[0]&&!(r==b_&&a==b_)&&i.push(o3(a,r))}(n,e,i)):e.push(t),e}const v_=new Set(["true","1"]),x_=new Set(["false","0"]);function o3(t,i){const e=v_.has(t)||x_.has(t),n=v_.has(i)||x_.has(i);return(r,o)=>{let a=t==b_||t==r,s=i==b_||i==o;return!a&&e&&"boolean"==typeof r&&(a=r?v_.has(t):x_.has(t)),!s&&n&&"boolean"==typeof o&&(s=o?v_.has(i):x_.has(i)),a&&s}}const G_e=new RegExp("s*:selfs*,?","g");function SC(t,i,e,n){return new q_e(t).build(i,e,n)}class q_e{constructor(i){this._driver=i}build(i,e,n){const r=new Y_e(e);return this._resetContextStyleTimingState(r),ro(this,im(i),r)}_resetContextStyleTimingState(i){i.currentQuerySelector="",i.collectedStyles=new Map,i.collectedStyles.set("",new Map),i.currentTime=0}visitTrigger(i,e){let n=e.queryCount=0,r=e.depCount=0;const o=[],a=[];return"@"==i.name.charAt(0)&&e.errors.push(function J0e(){return new ue(3006,!1)}()),i.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),0==s.type){const c=s,l=c.name;l.toString().split(/\s*,\s*/).forEach(d=>{c.name=d,o.push(this.visitState(c,e))}),c.name=l}else if(1==s.type){const c=this.visitTransition(s,e);n+=c.queryCount,r+=c.depCount,a.push(c)}else e.errors.push(function e_e(){return new ue(3007,!1)}())}),{type:7,name:i.name,states:o,transitions:a,queryCount:n,depCount:r,options:null}}visitState(i,e){const n=this.visitStyle(i.styles,e),r=i.options&&i.options.params||null;if(n.containsDynamicStyles){const o=new Set,a=r||{};n.styles.forEach(s=>{s instanceof Map&&s.forEach(c=>{n3(c).forEach(l=>{a.hasOwnProperty(l)||o.add(l)})})}),o.size&&(p_(o.values()),e.errors.push(function t_e(t,i){return new ue(3008,!1)}()))}return{type:0,name:i.name,style:n,options:r?{params:r}:null}}visitTransition(i,e){e.queryCount=0,e.depCount=0;const n=ro(this,im(i.animation),e);return{type:1,matchers:$_e(i.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:bl(i.options)}}visitSequence(i,e){return{type:2,steps:i.steps.map(n=>ro(this,n,e)),options:bl(i.options)}}visitGroup(i,e){const n=e.currentTime;let r=0;const o=i.steps.map(a=>{e.currentTime=n;const s=ro(this,a,e);return r=Math.max(r,e.currentTime),s});return e.currentTime=r,{type:3,steps:o,options:bl(i.options)}}visitAnimate(i,e){const n=function Z_e(t,i){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return EC(m_(t,i).duration,0,"");const e=t;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=EC(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=m_(e,i);return EC(r.duration,r.delay,r.easing)}(i.timings,e.errors);e.currentAnimateTimings=n;let r,o=i.styles?i.styles:nt({});if(5==o.type)r=this.visitKeyframes(o,e);else{let a=i.styles,s=!1;if(!a){s=!0;const l={};n.easing&&(l.easing=n.easing),a=nt(l)}e.currentTime+=n.duration+n.delay;const c=this.visitStyle(a,e);c.isEmptyStep=s,r=c}return e.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}visitStyle(i,e){const n=this._makeStyleAst(i,e);return this._validateStyleAst(n,e),n}_makeStyleAst(i,e){const n=[],r=Array.isArray(i.styles)?i.styles:[i.styles];for(let s of r)"string"==typeof s?s===ns?n.push(s):e.errors.push(new ue(3002,!1)):n.push(ZN(s));let o=!1,a=null;return n.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!o))for(let c of s.values())if(c.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:n,easing:a,offset:i.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(i,e){const n=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;n&&o>0&&(o-=n.duration+n.delay),i.styles.forEach(a=>{"string"!=typeof a&&a.forEach((s,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 n_e(t,i,e,n,r){return new ue(3010,!1)}()),u=!1),o=d.startTime),u&&l.set(c,{startTime:o,endTime:r}),e.options&&function P_e(t,i,e){const n=i.params||{},r=n3(t);r.length&&r.forEach(o=>{n.hasOwnProperty(o)||e.push(function Q0e(t){return new ue(3001,!1)}())})}(s,e.options,e.errors)})})}visitKeyframes(i,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function r_e(){return new ue(3011,!1)}()),n;let o=0;const a=[];let s=!1,c=!1,l=0;const d=i.steps.map(_=>{const w=this._makeStyleAst(_,e);let x=null!=w.offset?w.offset:function K_e(t){if("string"==typeof t)return null;let i=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const n=e;i=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;i=parseFloat(e.get("offset")),e.delete("offset")}return i}(w.styles),E=0;return null!=x&&(o++,E=w.offset=x),c=c||E<0||E>1,s=s||E0&&o{const x=h>0?w==f?1:h*w:a[w],E=x*p;e.currentTime=m+g.delay+E,g.duration=E,this._validateStyleAst(_,e),_.offset=x,n.styles.push(_)}),n}visitReference(i,e){return{type:8,animation:ro(this,im(i.animation),e),options:bl(i.options)}}visitAnimateChild(i,e){return e.depCount++,{type:9,options:bl(i.options)}}visitAnimateRef(i,e){return{type:10,animation:this.visitReference(i.animation,e),options:bl(i.options)}}visitQuery(i,e){const n=e.currentQuerySelector,r=i.options||{};e.queryCount++,e.currentQuery=i;const[o,a]=function X_e(t){const i=!!t.split(/\s*,\s*/).find(e=>":self"==e);return i&&(t=t.replace(G_e,"")),t=t.replace(/@\*/g,f_).replace(/@\w+/g,e=>f_+"-"+e.slice(1)).replace(/:animating/g,wC),[t,i]}(i.selector);e.currentQuerySelector=n.length?n+" "+o:o,no(e.collectedStyles,e.currentQuerySelector,new Map);const s=ro(this,im(i.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:s,originalSelector:i.selector,options:bl(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(function c_e(){return new ue(3013,!1)}());const n="full"===i.timings?{duration:0,delay:0,easing:"full"}:m_(i.timings,e.errors,!0);return{type:12,animation:ro(this,im(i.animation),e),timings:n,options:null}}}class Y_e{constructor(i){this.errors=i,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 bl(t){return t?(t=tm(t)).params&&(t.params=function Q_e(t){return t?tm(t):null}(t.params)):t={},t}function EC(t,i,e){return{duration:t,delay:i,easing:e}}function TC(t,i,e,n,r,o,a=null,s=!1){return{type:1,element:t,keyframes:i,preStyleProps:e,postStyleProps:n,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}class y_{constructor(){this._map=new Map}get(i){return this._map.get(i)||[]}append(i,e){let n=this._map.get(i);n||this._map.set(i,n=[]),n.push(...e)}has(i){return this._map.has(i)}clear(){this._map.clear()}}const tbe=new RegExp(":enter","g"),nbe=new RegExp(":leave","g");function MC(t,i,e,n,r,o=new Map,a=new Map,s,c,l=[]){return(new rbe).buildKeyframes(t,i,e,n,r,o,a,s,c,l)}class rbe{buildKeyframes(i,e,n,r,o,a,s,c,l,d=[]){l=l||new y_;const u=new AC(i,e,l,r,o,d,[]);u.options=c;const h=c.delay?vs(c.delay):0;u.currentTimeline.delayNextStep(h),u.currentTimeline.setStyles([a],null,u.errors,c),ro(this,n,u);const f=u.timelines.filter(m=>m.containsAnimation());if(f.length&&s.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([s],null,u.errors,c)}return f.length?f.map(m=>m.buildKeyframes()):[TC(e,[],[],[],0,h,"",!1)]}visitTrigger(i,e){}visitState(i,e){}visitTransition(i,e){}visitAnimateChild(i,e){const n=e.subInstructions.get(e.element);if(n){const r=e.createSubContext(i.options),o=e.currentTimeline.currentTime,a=this._visitSubInstructions(n,r,r.options);o!=a&&e.transformIntoNewTimeline(a)}e.previousNode=i}visitAnimateRef(i,e){const n=e.createSubContext(i.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([i.options,i.animation.options],e,n),this.visitReference(i.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=i}_applyAnimationRefDelays(i,e,n){for(const r of i){const o=r?.delay;if(o){const a="number"==typeof o?o:vs(nm(o,r?.params??{},e.errors));n.delayNextStep(a)}}}_visitSubInstructions(i,e,n){let o=e.currentTimeline.currentTime;const a=null!=n.duration?vs(n.duration):null,s=null!=n.delay?vs(n.delay):null;return 0!==a&&i.forEach(c=>{const l=e.appendInstructionToTimeline(c,a,s);o=Math.max(o,l.duration+l.delay)}),o}visitReference(i,e){e.updateOptions(i.options,!0),ro(this,i.animation,e),e.previousNode=i}visitSequence(i,e){const n=e.subContextCount;let r=e;const o=i.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=w_);const a=vs(o.delay);r.delayNextStep(a)}i.steps.length&&(i.steps.forEach(a=>ro(this,a,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),e.previousNode=i}visitGroup(i,e){const n=[];let r=e.currentTimeline.currentTime;const o=i.options&&i.options.delay?vs(i.options.delay):0;i.steps.forEach(a=>{const s=e.createSubContext(i.options);o&&s.delayNextStep(o),ro(this,a,s),r=Math.max(r,s.currentTimeline.currentTime),n.push(s.currentTimeline)}),n.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(r),e.previousNode=i}_visitTiming(i,e){if(i.dynamic){const n=i.strValue;return m_(e.params?nm(n,e.params,e.errors):n,e.errors)}return{duration:i.duration,delay:i.delay,easing:i.easing}}visitAnimate(i,e){const n=e.currentAnimateTimings=this._visitTiming(i.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());const o=i.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(n.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=i}visitStyle(i,e){const n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.hasCurrentStyleProperties()&&n.forwardFrame();const o=r&&r.easing||i.easing;i.isEmptyStep?n.applyEmptyStep(o):n.setStyles(i.styles,o,e.errors,e.options),e.previousNode=i}visitKeyframes(i,e){const n=e.currentAnimateTimings,r=e.currentTimeline.duration,o=n.duration,s=e.createSubContext().currentTimeline;s.easing=n.easing,i.styles.forEach(c=>{s.forwardTime((c.offset||0)*o),s.setStyles(c.styles,c.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(r+o),e.previousNode=i}visitQuery(i,e){const n=e.currentTimeline.currentTime,r=i.options||{},o=r.delay?vs(r.delay):0;o&&(6===e.previousNode.type||0==n&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=w_);let a=n;const s=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;let c=null;s.forEach((l,d)=>{e.currentQueryIndex=d;const u=e.createSubContext(i.options,l);o&&u.delayNextStep(o),l===e.element&&(c=u.currentTimeline),ro(this,i.animation,u),u.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,u.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),c&&(e.currentTimeline.mergeTimelineCollectedStyles(c),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=i}visitStagger(i,e){const n=e.parentContext,r=e.currentTimeline,o=i.timings,a=Math.abs(o.duration),s=a*(e.currentQueryTotal-1);let c=a*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":c=s-c;break;case"full":c=n.currentStaggerTime}const d=e.currentTimeline;c&&d.delayNextStep(c);const u=d.currentTime;ro(this,i.animation,e),e.previousNode=i,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)}}const w_={};class AC{constructor(i,e,n,r,o,a,s,c){this._driver=i,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=w_,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new C_(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(i,e){if(!i)return;const n=i;let r=this.options;null!=n.duration&&(r.duration=vs(n.duration)),null!=n.delay&&(r.delay=vs(n.delay));const o=n.params;if(o){let a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(s=>{(!e||!a.hasOwnProperty(s))&&(a[s]=nm(o[s],a,this.errors))})}}_copyOptions(){const i={};if(this.options){const e=this.options.params;if(e){const n=i.params={};Object.keys(e).forEach(r=>{n[r]=e[r]})}}return i}createSubContext(i=null,e,n){const r=e||this.element,o=new AC(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(i),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(i){return this.previousNode=w_,this.currentTimeline=this.currentTimeline.fork(this.element,i),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(i,e,n){const r={duration:e??i.duration,delay:this.currentTimeline.currentTime+(n??0)+i.delay,easing:""},o=new obe(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,r,i.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i)}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i)}invokeQuery(i,e,n,r,o,a){let s=[];if(r&&s.push(this.element),i.length>0){i=(i=i.replace(tbe,"."+this._enterClassName)).replace(nbe,"."+this._leaveClassName);let l=this._driver.query(this.element,i,1!=n);0!==n&&(l=n<0?l.slice(l.length+n,l.length):l.slice(0,n)),s.push(...l)}return!o&&0==s.length&&a.push(function l_e(t){return new ue(3014,!1)}()),s}}class C_{constructor(i,e,n,r){this._driver=i,this.element=e,this.startTime=n,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(i){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+i),e&&this.snapshotCurrentStyles()):this.startTime+=i}fork(i,e){return this.applyStylesToKeyframe(),new C_(this._driver,i,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(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe()}_updateStyle(i,e){this._localTimelineStyles.set(i,e),this._globalTimelineStyles.set(i,e),this._styleSummary.set(i,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(i){i&&this._previousKeyframe.set("easing",i);for(let[e,n]of this._globalTimelineStyles)this._backFill.set(e,n||ns),this._currentKeyframe.set(e,ns);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(i,e,n,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},a=function abe(t,i){const e=new Map;let n;return t.forEach(r=>{if("*"===r){n=n||i.keys();for(let o of n)e.set(o,ns)}else ac(r,e)}),e}(i,this._globalTimelineStyles);for(let[s,c]of a){const l=nm(c,o,n);this._pendingStyles.set(s,l),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??ns),this._updateStyle(s,l)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((i,e)=>{this._currentKeyframe.set(e,i)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((i,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,i)}))}snapshotCurrentStyles(){for(let[i,e]of this._localTimelineStyles)this._pendingStyles.set(i,e),this._updateStyle(i,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const i=[];for(let e in this._currentKeyframe)i.push(e);return i}mergeTimelineCollectedStyles(i){i._styleSummary.forEach((e,n)=>{const r=this._styleSummary.get(n);(!r||e.time>r.time)&&this._updateStyle(n,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const i=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((s,c)=>{const l=ac(s,new Map,this._backFill);l.forEach((d,u)=>{d===$y?i.add(u):d===ns&&e.add(u)}),n||l.set("offset",c/this.duration),r.push(l)});const o=i.size?p_(i.values()):[],a=e.size?p_(e.values()):[];if(n){const s=r[0],c=new Map(s);s.set("offset",0),c.set("offset",1),r=[s,c]}return TC(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}class obe extends C_{constructor(i,e,n,r,o,a,s=!1){super(i,e,a.delay),this.keyframes=n,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let i=this.keyframes,{delay:e,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],a=n+e,s=e/a,c=ac(i[0]);c.set("offset",0),o.push(c);const l=ac(i[0]);l.set("offset",c3(s)),o.push(l);const d=i.length-1;for(let u=1;u<=d;u++){let h=ac(i[u]);const f=h.get("offset");h.set("offset",c3((e+f*n)/a)),o.push(h)}n=a,e=0,r="",i=o}return TC(this.element,i,this.preStyleProps,this.postStyleProps,n,e,r,!0)}}function c3(t,i=3){const e=Math.pow(10,i-1);return Math.round(t*e)/e}class IC{}const sbe=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 cbe extends IC{normalizePropertyName(i,e){return DC(i)}normalizeStyleValue(i,e,n,r){let o="";const a=n.toString().trim();if(sbe.has(e)&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{const s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push(function Z0e(t,i){return new ue(3005,!1)}())}return a+o}}function l3(t,i,e,n,r,o,a,s,c,l,d,u,h){return{type:0,element:t,triggerName:i,isRemovalTransition:r,fromState:e,fromStyles:o,toState:n,toStyles:a,timelines:s,queriedElements:c,preStyleProps:l,postStyleProps:d,totalTime:u,errors:h}}const FC={};class d3{constructor(i,e,n){this._triggerName=i,this.ast=e,this._stateStyles=n}match(i,e,n,r){return function lbe(t,i,e,n,r){return t.some(o=>o(i,e,n,r))}(this.ast.matchers,i,e,n,r)}buildStyles(i,e,n){let r=this._stateStyles.get("*");return void 0!==i&&(r=this._stateStyles.get(i?.toString())||r),r?r.buildStyles(e,n):new Map}build(i,e,n,r,o,a,s,c,l,d){const u=[],h=this.ast.options&&this.ast.options.params||FC,m=this.buildStyles(n,s&&s.params||FC,u),g=c&&c.params||FC,p=this.buildStyles(r,g,u),_=new Set,w=new Map,x=new Map,E="void"===r,W={params:dbe(g,h),delay:this.ast.options?.delay},L=d?[]:MC(i,e,this.ast.animation,o,a,m,p,W,l,u);let D=0;if(L.forEach(N=>{D=Math.max(N.duration+N.delay,D)}),u.length)return l3(e,this._triggerName,n,r,E,m,p,[],[],w,x,D,u);L.forEach(N=>{const j=N.element,Z=no(w,j,new Set);N.preStyleProps.forEach(me=>Z.add(me));const U=no(x,j,new Set);N.postStyleProps.forEach(me=>U.add(me)),j!==e&&_.add(j)});const B=p_(_.values());return l3(e,this._triggerName,n,r,E,m,p,L,B,w,x,D)}}function dbe(t,i){const e=tm(i);for(const n in t)t.hasOwnProperty(n)&&null!=t[n]&&(e[n]=t[n]);return e}class ube{constructor(i,e,n){this.styles=i,this.defaultParams=e,this.normalizer=n}buildStyles(i,e){const n=new Map,r=tm(this.defaultParams);return Object.keys(i).forEach(o=>{const a=i[o];null!==a&&(r[o]=a)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((a,s)=>{a&&(a=nm(a,r,e));const c=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,c,a,e),n.set(s,a)})}),n}}class fbe{constructor(i,e,n){this.name=i,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new ube(r.style,r.options&&r.options.params||{},n))}),u3(this.states,"true","1"),u3(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new d3(i,r,this.states))}),this.fallbackTransition=function mbe(t,i,e){return new d3(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(a,s)=>!0],options:null,queryCount:0,depCount:0},i)}(i,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(i,e,n,r){return this.transitionFactories.find(a=>a.match(i,e,n,r))||null}matchStyles(i,e,n){return this.fallbackTransition.buildStyles(i,e,n)}}function u3(t,i,e){t.has(i)?t.has(e)||t.set(e,t.get(i)):t.has(e)&&t.set(i,t.get(e))}const pbe=new y_;class gbe{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(i,e){const n=[],r=[],o=SC(this._driver,e,n,r);if(n.length)throw function g_e(t){return new ue(3503,!1)}();this._animations.set(i,o)}_buildPlayer(i,e,n){const r=i.element,o=zN(0,this._normalizer,0,i.keyframes,e,n);return this._driver.animate(r,o,i.duration,i.delay,i.easing,[],!0)}create(i,e,n={}){const r=[],o=this._animations.get(i);let a;const s=new Map;if(o?(a=MC(this._driver,e,o,yC,u_,new Map,new Map,n,pbe,r),a.forEach(d=>{const u=no(s,d.element,new Map);d.postStyleProps.forEach(h=>u.set(h,null))})):(r.push(function __e(){return new ue(3300,!1)}()),a=[]),r.length)throw function b_e(t){return new ue(3504,!1)}();s.forEach((d,u)=>{d.forEach((h,f)=>{d.set(f,this._driver.computeStyle(u,f,ns))})});const l=oc(a.map(d=>{const u=s.get(d.element);return this._buildPlayer(d,new Map,u)}));return this._playersById.set(i,l),l.onDestroy(()=>this.destroy(i)),this.players.push(l),l}destroy(i){const e=this._getPlayer(i);e.destroy(),this._playersById.delete(i);const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(i){const e=this._playersById.get(i);if(!e)throw function v_e(t){return new ue(3301,!1)}();return e}listen(i,e,n,r){const o=_C(e,"","","");return pC(this._getPlayer(i),n,o,r),()=>{}}command(i,e,n,r){if("register"==n)return void this.register(i,r[0]);if("create"==n)return void this.create(i,e,r[0]||{});const o=this._getPlayer(i);switch(n){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(i)}}}const h3="ng-animate-queued",RC="ng-animate-disabled",ybe=[],f3={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},wbe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Io="__ng_removed";class OC{get params(){return this.options.params}constructor(i,e=""){this.namespaceId=e;const n=i&&i.hasOwnProperty("value");if(this.value=function Sbe(t){return t??null}(n?i.value:i),n){const o=tm(i);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(i){const e=i.params;if(e){const n=this.options.params;Object.keys(e).forEach(r=>{null==n[r]&&(n[r]=e[r])})}}}const rm="void",PC=new OC(rm);class Cbe{constructor(i,e,n){this.id=i,this.hostElement=e,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+i,Fo(e,this._hostClassName)}listen(i,e,n,r){if(!this._triggers.has(e))throw function x_e(t,i){return new ue(3302,!1)}();if(null==n||0==n.length)throw function y_e(t){return new ue(3303,!1)}();if(!function Ebe(t){return"start"==t||"done"==t}(n))throw function w_e(t,i){return new ue(3400,!1)}();const o=no(this._elementListeners,i,[]),a={name:e,phase:n,callback:r};o.push(a);const s=no(this._engine.statesByElement,i,new Map);return s.has(e)||(Fo(i,h_),Fo(i,h_+"-"+e),s.set(e,PC)),()=>{this._engine.afterFlush(()=>{const c=o.indexOf(a);c>=0&&o.splice(c,1),this._triggers.has(e)||s.delete(e)})}}register(i,e){return!this._triggers.has(i)&&(this._triggers.set(i,e),!0)}_getTrigger(i){const e=this._triggers.get(i);if(!e)throw function C_e(t){return new ue(3401,!1)}();return e}trigger(i,e,n,r=!0){const o=this._getTrigger(e),a=new LC(this.id,e,i);let s=this._engine.statesByElement.get(i);s||(Fo(i,h_),Fo(i,h_+"-"+e),this._engine.statesByElement.set(i,s=new Map));let c=s.get(e);const l=new OC(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),s.set(e,l),c||(c=PC),l.value!==rm&&c.value===l.value){if(!function Abe(t,i){const e=Object.keys(t),n=Object.keys(i);if(e.length!=n.length)return!1;for(let r=0;r{_l(i,p),Fa(i,_)})}return}const h=no(this._engine.playersByElement,i,[]);h.forEach(g=>{g.namespaceId==this.id&&g.triggerName==e&&g.queued&&g.destroy()});let f=o.matchTransition(c.value,l.value,i,l.params),m=!1;if(!f){if(!r)return;f=o.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:f,fromState:c,toState:l,player:a,isFallbackTransition:m}),m||(Fo(i,h3),a.onStart(()=>{uu(i,h3)})),a.onDone(()=>{let g=this.players.indexOf(a);g>=0&&this.players.splice(g,1);const p=this._engine.playersByElement.get(i);if(p){let _=p.indexOf(a);_>=0&&p.splice(_,1)}}),this.players.push(a),h.push(a),a}deregister(i){this._triggers.delete(i),this._engine.statesByElement.forEach(e=>e.delete(i)),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(r=>r.name!=i))})}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);const e=this._engine.playersByElement.get(i);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(i))}_signalRemovalForInnerTriggers(i,e){const n=this._engine.driver.query(i,f_,!0);n.forEach(r=>{if(r[Io])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(a=>a.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(i,e,n,r){const o=this._engine.statesByElement.get(i),a=new Map;if(o){const s=[];if(o.forEach((c,l)=>{if(a.set(l,c.value),this._triggers.has(l)){const d=this.trigger(i,l,rm,r);d&&s.push(d)}}),s.length)return this._engine.markElementAsRemoved(this.id,i,!0,e,a),n&&oc(s).onDone(()=>this._engine.processLeaveNode(i)),!0}return!1}prepareLeaveAnimationListeners(i){const e=this._elementListeners.get(i),n=this._engine.statesByElement.get(i);if(e&&n){const r=new Set;e.forEach(o=>{const a=o.name;if(r.has(a))return;r.add(a);const c=this._triggers.get(a).fallbackTransition,l=n.get(a)||PC,d=new OC(rm),u=new LC(this.id,a,i);this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:a,transition:c,fromState:l,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(i,e){const n=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,e),this.triggerLeaveAnimation(i,e,!0))return;let r=!1;if(n.totalAnimations){const o=n.players.length?n.playersByQueriedElement.get(i):[];if(o&&o.length)r=!0;else{let a=i;for(;a=a.parentNode;)if(n.statesByElement.get(a)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(i),r)n.markElementAsRemoved(this.id,i,!1,e);else{const o=i[Io];(!o||o===f3)&&(n.afterFlush(()=>this.clearElementCache(i)),n.destroyInnerAnimations(i),n._onRemovalComplete(i,e))}}insertNode(i,e){Fo(i,this._hostClassName)}drainQueuedTransitions(i){const e=[];return this._queue.forEach(n=>{const r=n.player;if(r.destroyed)return;const o=n.element,a=this._elementListeners.get(o);a&&a.forEach(s=>{if(s.name==n.triggerName){const c=_C(o,n.triggerName,n.fromState.value,n.toState.value);c._data=i,pC(n.player,s.phase,c,s.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(n)}),this._queue=[],e.sort((n,r)=>{const o=n.transition.ast.depCount,a=r.transition.ast.depCount;return 0==o||0==a?o-a:this._engine.driver.containsElement(n.element,r.element)?1:-1})}destroy(i){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i)}elementContainsData(i){let e=!1;return this._elementListeners.has(i)&&(e=!0),e=!!this._queue.find(n=>n.element===i)||e,e}}class kbe{_onRemovalComplete(i,e){this.onRemovalComplete(i,e)}constructor(i,e,n){this.bodyNode=i,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){const i=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&i.push(n)})}),i}createNamespace(i,e){const n=new Cbe(i,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[i]=n}_balanceNamespaceList(i,e){const n=this._namespaceList,r=this.namespacesByHostElement;if(n.length-1>=0){let a=!1,s=this.driver.getParentElement(e);for(;s;){const c=r.get(s);if(c){const l=n.indexOf(c);n.splice(l+1,0,i),a=!0;break}s=this.driver.getParentElement(s)}a||n.unshift(i)}else n.push(i);return r.set(e,i),i}register(i,e){let n=this._namespaceLookup[i];return n||(n=this.createNamespace(i,e)),n}registerTrigger(i,e,n){let r=this._namespaceLookup[i];r&&r.register(e,n)&&this.totalAnimations++}destroy(i,e){if(!i)return;const n=this._fetchNamespace(i);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[i];const r=this._namespaceList.indexOf(n);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(i){return this._namespaceLookup[i]}fetchNamespacesByElement(i){const e=new Set,n=this.statesByElement.get(i);if(n)for(let r of n.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(i,e,n,r){if(k_(e)){const o=this._fetchNamespace(i);if(o)return o.trigger(e,n,r),!0}return!1}insertNode(i,e,n,r){if(!k_(e))return;const o=e[Io];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(i){const a=this._fetchNamespace(i);a&&a.insertNode(e,n)}r&&this.collectEnterElement(e)}collectEnterElement(i){this.collectedEnterElements.push(i)}markElementAsDisabled(i,e){e?this.disabledNodes.has(i)||(this.disabledNodes.add(i),Fo(i,RC)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),uu(i,RC))}removeNode(i,e,n,r){if(k_(e)){const o=i?this._fetchNamespace(i):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(i,e,!1,r),n){const a=this.namespacesByHostElement.get(e);a&&a.id!==i&&a.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(i,e,n,r,o){this.collectedLeaveElements.push(e),e[Io]={namespaceId:i,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:o}}listen(i,e,n,r,o){return k_(e)?this._fetchNamespace(i).listen(e,n,r,o):()=>{}}_buildInstruction(i,e,n,r,o){return i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,n,r,i.fromState.options,i.toState.options,e,o)}destroyInnerAnimations(i){let e=this.driver.query(i,f_,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(i,wC,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(i){const e=this.playersByElement.get(i);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(i){const e=this.playersByQueriedElement.get(i);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(i=>{if(this.players.length)return oc(this.players).onDone(()=>i());i()})}processLeaveNode(i){const e=i[Io];if(e&&e.setForRemoval){if(i[Io]=f3,e.namespaceId){this.destroyInnerAnimations(i);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(i)}this._onRemovalComplete(i,e.setForRemoval)}i.classList?.contains(RC)&&this.markElementAsDisabled(i,!1),this.driver.query(i,".ng-animate-disabled",!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(i=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,r)=>this._balanceNamespaceList(n,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){const n=this._whenQuietFns;this._whenQuietFns=[],e.length?oc(e).onDone(()=>{n.forEach(r=>r())}):n.forEach(r=>r())}}reportError(i){throw function k_e(t){return new ue(3402,!1)}()}_flushAnimations(i,e){const n=new y_,r=[],o=new Map,a=[],s=new Map,c=new Map,l=new Map,d=new Set;this.disabledNodes.forEach(ne=>{d.add(ne);const Y=this.driver.query(ne,".ng-animate-queued",!0);for(let he=0;he{const he=yC+g++;m.set(Y,he),ne.forEach(se=>Fo(se,he))});const p=[],_=new Set,w=new Set;for(let ne=0;ne_.add(se)):w.add(Y))}const x=new Map,E=g3(h,Array.from(_));E.forEach((ne,Y)=>{const he=u_+g++;x.set(Y,he),ne.forEach(se=>Fo(se,he))}),i.push(()=>{f.forEach((ne,Y)=>{const he=m.get(Y);ne.forEach(se=>uu(se,he))}),E.forEach((ne,Y)=>{const he=x.get(Y);ne.forEach(se=>uu(se,he))}),p.forEach(ne=>{this.processLeaveNode(ne)})});const W=[],L=[];for(let ne=this._namespaceList.length-1;ne>=0;ne--)this._namespaceList[ne].drainQueuedTransitions(e).forEach(he=>{const se=he.player,Le=he.element;if(W.push(se),this.collectedEnterElements.length){const V=Le[Io];if(V&&V.setForMove){if(V.previousTriggersValues&&V.previousTriggersValues.has(he.triggerName)){const oe=V.previousTriggersValues.get(he.triggerName),_e=this.statesByElement.get(he.element);if(_e&&_e.has(he.triggerName)){const Ie=_e.get(he.triggerName);Ie.value=oe,_e.set(he.triggerName,Ie)}}return void se.destroy()}}const ce=!u||!this.driver.containsElement(u,Le),qe=x.get(Le),mt=m.get(Le),F=this._buildInstruction(he,n,mt,qe,ce);if(F.errors&&F.errors.length)return void L.push(F);if(ce)return se.onStart(()=>_l(Le,F.fromStyles)),se.onDestroy(()=>Fa(Le,F.toStyles)),void r.push(se);if(he.isFallbackTransition)return se.onStart(()=>_l(Le,F.fromStyles)),se.onDestroy(()=>Fa(Le,F.toStyles)),void r.push(se);const K=[];F.timelines.forEach(V=>{V.stretchStartingKeyframe=!0,this.disabledNodes.has(V.element)||K.push(V)}),F.timelines=K,n.append(Le,F.timelines),a.push({instruction:F,player:se,element:Le}),F.queriedElements.forEach(V=>no(s,V,[]).push(se)),F.preStyleProps.forEach((V,oe)=>{if(V.size){let _e=c.get(oe);_e||c.set(oe,_e=new Set),V.forEach((Ie,Re)=>_e.add(Re))}}),F.postStyleProps.forEach((V,oe)=>{let _e=l.get(oe);_e||l.set(oe,_e=new Set),V.forEach((Ie,Re)=>_e.add(Re))})});if(L.length){const ne=[];L.forEach(Y=>{ne.push(function D_e(t,i){return new ue(3505,!1)}())}),W.forEach(Y=>Y.destroy()),this.reportError(ne)}const D=new Map,B=new Map;a.forEach(ne=>{const Y=ne.element;n.has(Y)&&(B.set(Y,Y),this._beforeAnimationBuild(ne.player.namespaceId,ne.instruction,D))}),r.forEach(ne=>{const Y=ne.element;this._getPreviousPlayers(Y,!1,ne.namespaceId,ne.triggerName,null).forEach(se=>{no(D,Y,[]).push(se),se.destroy()})});const N=p.filter(ne=>b3(ne,c,l)),j=new Map;p3(j,this.driver,w,l,ns).forEach(ne=>{b3(ne,c,l)&&N.push(ne)});const U=new Map;f.forEach((ne,Y)=>{p3(U,this.driver,new Set(ne),c,$y)}),N.forEach(ne=>{const Y=j.get(ne),he=U.get(ne);j.set(ne,new Map([...Array.from(Y?.entries()??[]),...Array.from(he?.entries()??[])]))});const me=[],be=[],de={};a.forEach(ne=>{const{element:Y,player:he,instruction:se}=ne;if(n.has(Y)){if(d.has(Y))return he.onDestroy(()=>Fa(Y,se.toStyles)),he.disabled=!0,he.overrideTotalTime(se.totalTime),void r.push(he);let Le=de;if(B.size>1){let qe=Y;const mt=[];for(;qe=qe.parentNode;){const F=B.get(qe);if(F){Le=F;break}mt.push(qe)}mt.forEach(F=>B.set(F,Le))}const ce=this._buildAnimation(he.namespaceId,se,D,o,U,j);if(he.setRealPlayer(ce),Le===de)me.push(he);else{const qe=this.playersByElement.get(Le);qe&&qe.length&&(he.parentPlayer=oc(qe)),r.push(he)}}else _l(Y,se.fromStyles),he.onDestroy(()=>Fa(Y,se.toStyles)),be.push(he),d.has(Y)&&r.push(he)}),be.forEach(ne=>{const Y=o.get(ne.element);if(Y&&Y.length){const he=oc(Y);ne.setRealPlayer(he)}}),r.forEach(ne=>{ne.parentPlayer?ne.syncPlayerEvents(ne.parentPlayer):ne.destroy()});for(let ne=0;ne!ce.destroyed);Le.length?Tbe(this,Y,Le):this.processLeaveNode(Y)}return p.length=0,me.forEach(ne=>{this.players.push(ne),ne.onDone(()=>{ne.destroy();const Y=this.players.indexOf(ne);this.players.splice(Y,1)}),ne.play()}),me}elementContainsData(i,e){let n=!1;const r=e[Io];return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(i).elementContainsData(e)||n}afterFlush(i){this._flushFns.push(i)}afterFlushAnimationsDone(i){this._whenQuietFns.push(i)}_getPreviousPlayers(i,e,n,r,o){let a=[];if(e){const s=this.playersByQueriedElement.get(i);s&&(a=s)}else{const s=this.playersByElement.get(i);if(s){const c=!o||o==rm;s.forEach(l=>{l.queued||!c&&l.triggerName!=r||a.push(l)})}}return(n||r)&&(a=a.filter(s=>!(n&&n!=s.namespaceId||r&&r!=s.triggerName))),a}_beforeAnimationBuild(i,e,n){const o=e.element,a=e.isRemovalTransition?void 0:i,s=e.isRemovalTransition?void 0:e.triggerName;for(const c of e.timelines){const l=c.element,d=l!==o,u=no(n,l,[]);this._getPreviousPlayers(l,d,a,s,e.toState).forEach(f=>{const m=f.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),f.destroy(),u.push(f)})}_l(o,e.fromStyles)}_buildAnimation(i,e,n,r,o,a){const s=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[Io];if(p&&p.removedBeforeQueried)return new Lh(m.duration,m.delay);const _=g!==c,w=function Mbe(t){const i=[];return _3(t,i),i}((n.get(g)||ybe).map(D=>D.getRealPlayer())).filter(D=>!!D.element&&D.element===g),x=o.get(g),E=a.get(g),W=zN(0,this._normalizer,0,m.keyframes,x,E),L=this._buildPlayer(m,W,w);if(m.subTimeline&&r&&u.add(g),_){const D=new LC(i,s,g);D.setRealPlayer(L),l.push(D)}return L});l.forEach(m=>{no(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>function Dbe(t,i,e){let n=t.get(i);if(n){if(n.length){const r=n.indexOf(e);n.splice(r,1)}0==n.length&&t.delete(i)}return n}(this.playersByQueriedElement,m.element,m))}),d.forEach(m=>Fo(m,KN));const f=oc(h);return f.onDestroy(()=>{d.forEach(m=>uu(m,KN)),Fa(c,e.toStyles)}),u.forEach(m=>{no(r,m,[]).push(f)}),f}_buildPlayer(i,e,n){return e.length>0?this.driver.animate(i.element,e,i.duration,i.delay,i.easing,n):new Lh(i.duration,i.delay)}}class LC{constructor(i,e,n){this.namespaceId=i,this.triggerName=e,this.element=n,this._player=new Lh,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(i){this._containsRealPlayer||(this._player=i,this._queuedCallbacks.forEach((e,n)=>{e.forEach(r=>pC(i,n,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(i){this.totalTime=i}syncPlayerEvents(i){const e=this._player;e.triggerCallback&&i.onStart(()=>e.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy())}_queueEvent(i,e){no(this._queuedCallbacks,i,[]).push(e)}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i)}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i)}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i)}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(i){this.queued||this._player.setPosition(i)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(i){const e=this._player;e.triggerCallback&&e.triggerCallback(i)}}function k_(t){return t&&1===t.nodeType}function m3(t,i){const e=t.style.display;return t.style.display=i??"none",e}function p3(t,i,e,n,r){const o=[];e.forEach(c=>o.push(m3(c)));const a=[];n.forEach((c,l)=>{const d=new Map;c.forEach(u=>{const h=i.computeStyle(l,u,r);d.set(u,h),(!h||0==h.length)&&(l[Io]=wbe,a.push(l))}),t.set(l,d)});let s=0;return e.forEach(c=>m3(c,o[s++])),a}function g3(t,i){const e=new Map;if(t.forEach(s=>e.set(s,[])),0==i.length)return e;const n=1,r=new Set(i),o=new Map;function a(s){if(!s)return n;let c=o.get(s);if(c)return c;const l=s.parentNode;return c=e.has(l)?l:r.has(l)?n:a(l),o.set(s,c),c}return i.forEach(s=>{const c=a(s);c!==n&&e.get(c).push(s)}),e}function Fo(t,i){t.classList?.add(i)}function uu(t,i){t.classList?.remove(i)}function Tbe(t,i,e){oc(e).onDone(()=>t.processLeaveNode(i))}function _3(t,i){for(let e=0;er.add(o)):i.set(t,n),e.delete(t),!0}class D_{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new kbe(i,e,n),this._timelineEngine=new gbe(i,e,n),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(i,e,n,r,o){const a=i+"-"+r;let s=this._triggerCache[a];if(!s){const c=[],l=[],d=SC(this._driver,o,c,l);if(c.length)throw function m_e(t,i){return new ue(3404,!1)}();s=function hbe(t,i,e){return new fbe(t,i,e)}(r,d,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(e,r,s)}register(i,e){this._transitionEngine.register(i,e)}destroy(i,e){this._transitionEngine.destroy(i,e)}onInsert(i,e,n,r){this._transitionEngine.insertNode(i,e,n,r)}onRemove(i,e,n,r){this._transitionEngine.removeNode(i,e,r||!1,n)}disableAnimations(i,e){this._transitionEngine.markElementAsDisabled(i,e)}process(i,e,n,r){if("@"==n.charAt(0)){const[o,a]=$N(n);this._timelineEngine.command(o,e,a,r)}else this._transitionEngine.trigger(i,e,n,r)}listen(i,e,n,r,o){if("@"==n.charAt(0)){const[a,s]=$N(n);return this._timelineEngine.listen(a,e,s,o)}return this._transitionEngine.listen(i,e,n,r,o)}flush(i=-1){this._transitionEngine.flush(i)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Fbe=(()=>{class t{constructor(e,n,r){this._element=e,this._startStyles=n,this._endStyles=r,this._state=0;let o=t.initialStylesByElement.get(e);o||t.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Fa(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Fa(this._element,this._initialStyles),this._endStyles&&(Fa(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(_l(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(_l(this._element,this._endStyles),this._endStyles=null),Fa(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function NC(t){let i=null;return t.forEach((e,n)=>{(function Rbe(t){return"display"===t||"position"===t})(n)&&(i=i||new Map,i.set(n,e))}),i}class v3{constructor(i,e,n,r){this.element=i,this.keyframes=e,this.options=n,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=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const i=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,i,this.options),this._finalKeyframe=i.length?i[i.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(i){const e=[];return i.forEach(n=>{e.push(Object.fromEntries(n))}),e}_triggerWebAnimation(i,e,n){return i.animate(this._convertKeyframesToObject(e),n)}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(i=>i()),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(i=>i()),this._onDestroyFns=[])}setPosition(i){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=i*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const i=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,r)=>{"offset"!==r&&i.set(r,this._finished?n:r3(this.element,r))}),this.currentSnapshot=i}triggerCallback(i){const e="start"===i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class Obe{validateStyleProperty(i){return!0}validateAnimatableStyleProperty(i){return!0}matchesElement(i,e){return!1}containsElement(i,e){return qN(i,e)}getParentElement(i){return vC(i)}query(i,e,n){return XN(i,e,n)}computeStyle(i,e,n){return window.getComputedStyle(i)[e]}animate(i,e,n,r,o,a=[]){const c={duration:n,delay:r,fill:0==r?"both":"forwards"};o&&(c.easing=o);const l=new Map,d=a.filter(f=>f instanceof v3);(function B_e(t,i){return 0===t||0===i})(n,r)&&d.forEach(f=>{f.currentSnapshot.forEach((m,g)=>l.set(g,m))});let u=function O_e(t){return t.length?t[0]instanceof Map?t:t.map(i=>ZN(i)):[]}(e).map(f=>ac(f));u=function V_e(t,i,e){if(e.size&&i.length){let n=i[0],r=[];if(e.forEach((o,a)=>{n.has(a)||r.push(a),n.set(a,o)}),r.length)for(let o=1;oa.set(s,r3(t,s)))}}return i}(i,u,l);const h=function Ibe(t,i){let e=null,n=null;return Array.isArray(i)&&i.length?(e=NC(i[0]),i.length>1&&(n=NC(i[i.length-1]))):i instanceof Map&&(e=NC(i)),e||n?new Fbe(t,e,n):null}(i,u);return new v3(i,u,c,h)}}let Pbe=(()=>{class t extends ZI{constructor(e,n){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(n.body,{id:"0",encapsulation:Po.None,styles:[],data:{animation:[]}})}build(e){const n=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?JI(e):e;return x3(this._renderer,null,n,"register",[r]),new Lbe(n,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(G(Nu),G(it))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();class Lbe extends hX{constructor(i,e){super(),this._id=i,this._renderer=e}create(i,e){return new Nbe(this._id,i,e||{},this._renderer)}}class Nbe{constructor(i,e,n,r){this.id=i,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(i,e){return this._renderer.listen(this.element,`@@${this.id}:${i}`,e)}_command(i,...e){return x3(this._renderer,this.element,this.id,i,e)}onDone(i){this._listen("done",i)}onStart(i){this._listen("start",i)}onDestroy(i){this._listen("destroy",i)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(i){this._command("setPosition",i)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function x3(t,i,e,n,r){return t.setProperty(i,`@@${e}:${n}`,r)}const y3="@.disabled";let Bbe=(()=>{class t{constructor(e,n,r){this.delegate=e,this.engine=n,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=(o,a)=>{const s=a?.parentNode(o);s&&a.removeChild(s,o)}}createRenderer(e,n){const o=this.delegate.createRenderer(e,n);if(!(e&&n&&n.data&&n.data.animation)){let d=this._rendererCache.get(o);return d||(d=new w3("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,d)),d}const a=n.id,s=n.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);const c=d=>{Array.isArray(d)?d.forEach(c):this.engine.registerTrigger(a,s,e,d.name,d)};return n.data.animation.forEach(c),new Vbe(this,s,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,n,r){e>=0&&en(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[a,s]=o;a(s)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([n,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(G(Nu),G(D_),G(Ue))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();class w3{constructor(i,e,n,r){this.namespaceId=i,this.delegate=e,this.engine=n,this._onDestroy=r,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(i,e){return this.delegate.createElement(i,e)}createComment(i){return this.delegate.createComment(i)}createText(i){return this.delegate.createText(i)}appendChild(i,e){this.delegate.appendChild(i,e),this.engine.onInsert(this.namespaceId,e,i,!1)}insertBefore(i,e,n,r=!0){this.delegate.insertBefore(i,e,n),this.engine.onInsert(this.namespaceId,e,i,r)}removeChild(i,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(i,e){return this.delegate.selectRootElement(i,e)}parentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return this.delegate.nextSibling(i)}setAttribute(i,e,n,r){this.delegate.setAttribute(i,e,n,r)}removeAttribute(i,e,n){this.delegate.removeAttribute(i,e,n)}addClass(i,e){this.delegate.addClass(i,e)}removeClass(i,e){this.delegate.removeClass(i,e)}setStyle(i,e,n,r){this.delegate.setStyle(i,e,n,r)}removeStyle(i,e,n){this.delegate.removeStyle(i,e,n)}setProperty(i,e,n){"@"==e.charAt(0)&&e==y3?this.disableAnimations(i,!!n):this.delegate.setProperty(i,e,n)}setValue(i,e){this.delegate.setValue(i,e)}listen(i,e,n){return this.delegate.listen(i,e,n)}disableAnimations(i,e){this.engine.disableAnimations(i,e)}}class Vbe extends w3{constructor(i,e,n,r,o){super(e,n,r,o),this.factory=i,this.namespaceId=e}setProperty(i,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&e==y3?this.disableAnimations(i,n=void 0===n||!!n):this.engine.process(this.namespaceId,i,e.slice(1),n):this.delegate.setProperty(i,e,n)}listen(i,e,n){if("@"==e.charAt(0)){const r=function Hbe(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(i);let o=e.slice(1),a="";return"@"!=o.charAt(0)&&([o,a]=function Ube(t){const i=t.indexOf(".");return[t.substring(0,i),t.slice(i+1)]}(o)),this.engine.listen(this.namespaceId,r,o,a,s=>{this.factory.scheduleListenerCallback(s._data||-1,n,s)})}return this.delegate.listen(i,e,n)}}const C3=[{provide:ZI,useClass:Pbe},{provide:IC,useFactory:function $be(){return new cbe}},{provide:D_,useClass:(()=>{class t extends D_{constructor(e,n,r,o){super(e.body,n,r)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(G(it),G(xC),G(IC),G(ud))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})()},{provide:Nu,useFactory:function jbe(t,i,e){return new Bbe(t,i,e)},deps:[Hp,D_,Ue]}],BC=[{provide:xC,useFactory:()=>new Obe},{provide:Ri,useValue:"BrowserAnimations"},...C3],k3=[{provide:xC,useClass:QN},{provide:Ri,useValue:"NoopAnimations"},...C3];let Wbe=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?k3:BC}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:BC,imports:[RM]}),t})(),Gbe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[xt,xt]}),t})(),wve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({imports:[_g,nr,xt,Vs,$I,Gbe]}),t})(),Cve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ct({type:t,bootstrap:[G0e]}),t.\u0275inj=at({imports:[zG,RM,tee,coe,Wbe,yte,U0e,KI,EQ,zQ,_F,rre,u0,PZ,QQ,zZ,zK,ZJ,pY,zY,vee,A1,Oee,jee,aie,bie,Ute,Rie,wve,xne,A1]}),t})();P$().bootstrapModule(Cve).catch(t=>console.error(t))},327:function(yl,cm){var cc,lc;void 0!==(lc="function"==typeof(cc=function(){"use strict";function Zo(ei,ci,pr){var Ti=new XMLHttpRequest;Ti.open("GET",ei),Ti.responseType="blob",Ti.onload=function(){ao(Ti.response,ci,pr)},Ti.onerror=function(){console.error("could not download file")},Ti.send()}function yt(ei){var ci=new XMLHttpRequest;ci.open("HEAD",ei,!1);try{ci.send()}catch{}return 200<=ci.status&&299>=ci.status}function dc(ei){try{ei.dispatchEvent(new MouseEvent("click"))}catch{var ci=document.createEvent("MouseEvents");ci.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),ei.dispatchEvent(ci)}}var Ur="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,hu=Ur.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),ao=Ur.saveAs||("object"!=typeof window||window!==Ur?function(){}:"download"in HTMLAnchorElement.prototype&&!hu?function(ei,ci,pr){var Ti=Ur.URL||Ur.webkitURL,gr=document.createElement("a");gr.download=ci=ci||ei.name||"download",gr.rel="noopener","string"==typeof ei?(gr.href=ei,gr.origin===location.origin?dc(gr):yt(gr.href)?Zo(ei,ci,pr):dc(gr,gr.target="_blank")):(gr.href=Ti.createObjectURL(ei),setTimeout(function(){Ti.revokeObjectURL(gr.href)},4e4),setTimeout(function(){dc(gr)},0))}:"msSaveOrOpenBlob"in navigator?function(ei,ci,pr){if(ci=ci||ei.name||"download","string"!=typeof ei)navigator.msSaveOrOpenBlob(function wl(ei,ci){return typeof ci>"u"?ci={autoBom:!1}:"object"!=typeof ci&&(console.warn("Deprecated: Expected third argument to be a object"),ci={autoBom:!ci}),ci.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(ei.type)?new Blob(["\ufeff",ei],{type:ei.type}):ei}(ei,pr),ci);else if(yt(ei))Zo(ei,ci,pr);else{var Ti=document.createElement("a");Ti.href=ei,Ti.target="_blank",setTimeout(function(){dc(Ti)})}}:function(ei,ci,pr,Ti){if((Ti=Ti||open("","_blank"))&&(Ti.document.title=Ti.document.body.innerText="downloading..."),"string"==typeof ei)return Zo(ei,ci,pr);var gr="application/octet-stream"===ei.type,T_=/constructor/i.test(Ur.HTMLElement)||Ur.safari,Cl=/CriOS\/[\d]+/.test(navigator.userAgent);if((Cl||gr&&T_||hu)&&typeof FileReader<"u"){var Oo=new FileReader;Oo.onloadend=function(){var Oa=Oo.result;Oa=Cl?Oa:Oa.replace(/^data:[^;]*;/,"data:attachment/file;"),Ti?Ti.location.href=Oa:location=Oa,Ti=null},Oo.readAsDataURL(ei)}else{var uc=Ur.URL||Ur.webkitURL,fu=uc.createObjectURL(ei);Ti?Ti.location=fu:location.href=fu,Ti=null,setTimeout(function(){uc.revokeObjectURL(fu)},4e4)}});Ur.saveAs=ao.saveAs=ao,yl.exports=ao})?cc.apply(cm,[]):cc)&&(yl.exports=lc)}},yl=>{yl(yl.s=880)}]); \ No newline at end of file diff --git a/docs/main.4ed5209b3b623529.js b/docs/main.4ed5209b3b623529.js deleted file mode 100644 index 1f405f3..0000000 --- a/docs/main.4ed5209b3b623529.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunksct_implementation_demonstrator=self.webpackChunksct_implementation_demonstrator||[]).push([[179],{880:(yl,cm,cc)=>{"use strict";function Wt(t){return"function"==typeof t}function lc(t){const e=t(n=>{Error.call(n),n.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const wl=lc(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((n,r)=>`${r+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function Zo(t,i){if(t){const e=t.indexOf(i);0<=e&&t.splice(e,1)}}class yt{constructor(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let i;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:n}=this;if(Wt(n))try{n()}catch(o){i=o instanceof wl?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{uu(o)}catch(a){i=i??[],a instanceof wl?i=[...i,...a.errors]:i.push(a)}}if(i)throw new wl(i)}}add(i){var e;if(i&&i!==this)if(this.closed)uu(i);else{if(i instanceof yt){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(i)}}_hasParent(i){const{_parentage:e}=this;return e===i||Array.isArray(e)&&e.includes(i)}_addParent(i){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(i),e):e?[e,i]:i}_removeParent(i){const{_parentage:e}=this;e===i?this._parentage=null:Array.isArray(e)&&Zo(e,i)}remove(i){const{_finalizers:e}=this;e&&Zo(e,i),i instanceof yt&&i._removeParent(this)}}yt.EMPTY=(()=>{const t=new yt;return t.closed=!0,t})();const dc=yt.EMPTY;function Ur(t){return t instanceof yt||t&&"closed"in t&&Wt(t.remove)&&Wt(t.add)&&Wt(t.unsubscribe)}function uu(t){Wt(t)?t():t.unsubscribe()}const ao={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ei={setTimeout(t,i,...e){const{delegate:n}=ei;return n?.setTimeout?n.setTimeout(t,i,...e):setTimeout(t,i,...e)},clearTimeout(t){const{delegate:i}=ei;return(i?.clearTimeout||clearTimeout)(t)},delegate:void 0};function ci(t){ei.setTimeout(()=>{const{onUnhandledError:i}=ao;if(!i)throw t;i(t)})}function mr(){}const Ti=Cl("C",void 0,void 0);function Cl(t,i,e){return{kind:t,value:i,error:e}}let Ro=null;function uc(t){if(ao.useDeprecatedSynchronousErrorHandling){const i=!Ro;if(i&&(Ro={errorThrown:!1,error:null}),t(),i){const{errorThrown:e,error:n}=Ro;if(Ro=null,e)throw n}}else t()}class Oa extends yt{constructor(i){super(),this.isStopped=!1,i?(this.destination=i,Ur(i)&&i.add(this)):this.destination=P3}static create(i,e,n){return new fu(i,e,n)}next(i){this.isStopped?A_(function T_(t){return Cl("N",t,void 0)}(i),this):this._next(i)}error(i){this.isStopped?A_(function pr(t){return Cl("E",void 0,t)}(i),this):(this.isStopped=!0,this._error(i))}complete(){this.isStopped?A_(Ti,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(i){this.destination.next(i)}_error(i){try{this.destination.error(i)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const F3=Function.prototype.bind;function M_(t,i){return F3.call(t,i)}class R3{constructor(i){this.partialObserver=i}next(i){const{partialObserver:e}=this;if(e.next)try{e.next(i)}catch(n){lm(n)}}error(i){const{partialObserver:e}=this;if(e.error)try{e.error(i)}catch(n){lm(n)}else lm(i)}complete(){const{partialObserver:i}=this;if(i.complete)try{i.complete()}catch(e){lm(e)}}}class fu extends Oa{constructor(i,e,n){let r;if(super(),Wt(i)||!i)r={next:i??void 0,error:e??void 0,complete:n??void 0};else{let o;this&&ao.useDeprecatedNextContext?(o=Object.create(i),o.unsubscribe=()=>this.unsubscribe(),r={next:i.next&&M_(i.next,o),error:i.error&&M_(i.error,o),complete:i.complete&&M_(i.complete,o)}):r=i}this.destination=new R3(r)}}function lm(t){ao.useDeprecatedSynchronousErrorHandling?function hu(t){ao.useDeprecatedSynchronousErrorHandling&&Ro&&(Ro.errorThrown=!0,Ro.error=t)}(t):ci(t)}function A_(t,i){const{onStoppedNotification:e}=ao;e&&ei.setTimeout(()=>e(t,i))}const P3={closed:!0,next:mr,error:function O3(t){throw t},complete:mr},I_="function"==typeof Symbol&&Symbol.observable||"@@observable";function ys(t){return t}function UC(t){return 0===t.length?ys:1===t.length?t[0]:function(e){return t.reduce((n,r)=>r(n),e)}}let ni=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(e,n,r){const o=function B3(t){return t&&t instanceof Oa||function L3(t){return t&&Wt(t.next)&&Wt(t.error)&&Wt(t.complete)}(t)&&Ur(t)}(e)?e:new fu(e,n,r);return uc(()=>{const{operator:a,source:s}=this;o.add(a?a.call(o,s):s?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(n){e.error(n)}}forEach(e,n){return new(n=zC(n))((r,o)=>{const a=new fu({next:s=>{try{e(s)}catch(c){o(c),a.unsubscribe()}},error:o,complete:r});this.subscribe(a)})}_subscribe(e){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(e)}[I_](){return this}pipe(...e){return UC(e)(this)}toPromise(e){return new(e=zC(e))((n,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>n(o))})}}return t.create=i=>new t(i),t})();function zC(t){var i;return null!==(i=t??ao.Promise)&&void 0!==i?i:Promise}const V3=lc(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Ce=(()=>{class t extends ni{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const n=new $C(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new V3}next(e){uc(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const n of this.currentObservers)n.next(e)}})}error(e){uc(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:n}=this;for(;n.length;)n.shift().error(e)}})}complete(){uc(()=>{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:n,isStopped:r,observers:o}=this;return n||r?dc:(this.currentObservers=null,o.push(e),new yt(()=>{this.currentObservers=null,Zo(o,e)}))}_checkFinalizedStatuses(e){const{hasError:n,thrownError:r,isStopped:o}=this;n?e.error(r):o&&e.complete()}asObservable(){const e=new ni;return e.source=this,e}}return t.create=(i,e)=>new $C(i,e),t})();class $C extends Ce{constructor(i,e){super(),this.destination=i,this.source=e}next(i){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,i)}error(i){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,i)}complete(){var i,e;null===(e=null===(i=this.destination)||void 0===i?void 0:i.complete)||void 0===e||e.call(i)}_subscribe(i){var e,n;return null!==(n=null===(e=this.source)||void 0===e?void 0:e.subscribe(i))&&void 0!==n?n:dc}}function jC(t){return Wt(t?.lift)}function Wi(t){return i=>{if(jC(i))return i.lift(function(e){try{return t(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Li(t,i,e,n,r){return new H3(t,i,e,n,r)}class H3 extends Oa{constructor(i,e,n,r,o,a){super(i),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(c){i.error(c)}}:super._next,this._error=r?function(s){try{r(s)}catch(c){i.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(s){i.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var i;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(i=this.onFinalize)||void 0===i||i.call(this))}}}function Ye(t,i){return Wi((e,n)=>{let r=0;e.subscribe(Li(n,o=>{n.next(t.call(i,o,r++))}))})}function hc(t){return this instanceof hc?(this.v=t,this):new hc(t)}function j3(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,i=t[Symbol.asyncIterator];return i?i.call(t):(t=function qC(t){var i="function"==typeof Symbol&&Symbol.iterator,e=i&&t[i],n=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(o){e[o]=t[o]&&function(a){return new Promise(function(s,c){!function r(o,a,s,c){Promise.resolve(c).then(function(l){o({value:l,done:s})},a)}(s,c,(a=t[o](a)).done,a.value)})}}}const R_=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function XC(t){return Wt(t?.then)}function QC(t){return Wt(t[I_])}function YC(t){return Symbol.asyncIterator&&Wt(t?.[Symbol.asyncIterator])}function KC(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 ZC=function G3(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function JC(t){return Wt(t?.[ZC])}function ek(t){return function $3(t,i,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,n=e.apply(t,i||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(h){n[h]&&(r[h]=function(f){return new Promise(function(m,g){o.push([h,f,m,g])>1||s(h,f)})})}function s(h,f){try{!function c(h){h.value instanceof hc?Promise.resolve(h.value.v).then(l,d):u(o[0][2],h)}(n[h](f))}catch(m){u(o[0][3],m)}}function l(h){s("next",h)}function d(h){s("throw",h)}function u(h,f){h(f),o.shift(),o.length&&s(o[0][0],o[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:n,done:r}=yield hc(e.read());if(r)return yield hc(void 0);yield yield hc(n)}}finally{e.releaseLock()}})}function tk(t){return Wt(t?.getReader)}function Qn(t){if(t instanceof ni)return t;if(null!=t){if(QC(t))return function q3(t){return new ni(i=>{const e=t[I_]();if(Wt(e.subscribe))return e.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(R_(t))return function X3(t){return new ni(i=>{for(let e=0;e{t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,ci)})}(t);if(YC(t))return ik(t);if(JC(t))return function Y3(t){return new ni(i=>{for(const e of t)if(i.next(e),i.closed)return;i.complete()})}(t);if(tk(t))return function K3(t){return ik(ek(t))}(t)}throw KC(t)}function ik(t){return new ni(i=>{(function Z3(t,i){var e,n,r,o;return function U3(t,i,e,n){return new(e||(e=Promise))(function(o,a){function s(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?o(d.value):function r(o){return o instanceof e?o:new e(function(a){a(o)})}(d.value).then(s,c)}l((n=n.apply(t,i||[])).next())})}(this,void 0,void 0,function*(){try{for(e=j3(t);!(n=yield e.next()).done;)if(i.next(n.value),i.closed)return}catch(a){r={error:a}}finally{try{n&&!n.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}i.complete()})})(t,i).catch(e=>i.error(e))})}function Pa(t,i,e,n=0,r=!1){const o=i.schedule(function(){e(),r?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!r)return o}function Sn(t,i,e=1/0){return Wt(i)?Sn((n,r)=>Ye((o,a)=>i(n,o,r,a))(Qn(t(n,r))),e):("number"==typeof i&&(e=i),Wi((n,r)=>function J3(t,i,e,n,r,o,a,s){const c=[];let l=0,d=0,u=!1;const h=()=>{u&&!c.length&&!l&&i.complete()},f=g=>l{o&&i.next(g),l++;let p=!1;Qn(e(g,d++)).subscribe(Li(i,_=>{r?.(_),o?f(_):i.next(_)},()=>{p=!0},void 0,()=>{if(p)try{for(l--;c.length&&lm(_)):m(_)}h()}catch(_){i.error(_)}}))};return t.subscribe(Li(i,f,()=>{u=!0,h()})),()=>{s?.()}}(n,r,t,e)))}function kl(t=1/0){return Sn(ys,t)}const zr=new ni(t=>t.complete());function nk(t){return t&&Wt(t.schedule)}function O_(t){return t[t.length-1]}function rk(t){return Wt(O_(t))?t.pop():void 0}function mu(t){return nk(O_(t))?t.pop():void 0}function ok(t,i=0){return Wi((e,n)=>{e.subscribe(Li(n,r=>Pa(n,t,()=>n.next(r),i),()=>Pa(n,t,()=>n.complete(),i),r=>Pa(n,t,()=>n.error(r),i)))})}function ak(t,i=0){return Wi((e,n)=>{n.add(t.schedule(()=>e.subscribe(n),i))})}function sk(t,i){if(!t)throw new Error("Iterable cannot be null");return new ni(e=>{Pa(e,i,()=>{const n=t[Symbol.asyncIterator]();Pa(e,i,()=>{n.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function Zi(t,i){return i?function s8(t,i){if(null!=t){if(QC(t))return function i8(t,i){return Qn(t).pipe(ak(i),ok(i))}(t,i);if(R_(t))return function r8(t,i){return new ni(e=>{let n=0;return i.schedule(function(){n===t.length?e.complete():(e.next(t[n++]),e.closed||this.schedule())})})}(t,i);if(XC(t))return function n8(t,i){return Qn(t).pipe(ak(i),ok(i))}(t,i);if(YC(t))return sk(t,i);if(JC(t))return function o8(t,i){return new ni(e=>{let n;return Pa(e,i,()=>{n=t[ZC](),Pa(e,i,()=>{let r,o;try{({value:r,done:o}=n.next())}catch(a){return void e.error(a)}o?e.complete():e.next(r)},0,!0)}),()=>Wt(n?.return)&&n.return()})}(t,i);if(tk(t))return function a8(t,i){return sk(ek(t),i)}(t,i)}throw KC(t)}(t,i):Qn(t)}function Bi(...t){const i=mu(t),e=function t8(t,i){return"number"==typeof O_(t)?t.pop():i}(t,1/0),n=t;return n.length?1===n.length?Qn(n[0]):kl(e)(Zi(n,i)):zr}function ck(t={}){const{connector:i=(()=>new Ce),resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:r=!0}=t;return o=>{let a,s,c,l=0,d=!1,u=!1;const h=()=>{s?.unsubscribe(),s=void 0},f=()=>{h(),a=c=void 0,d=u=!1},m=()=>{const g=a;f(),g?.unsubscribe()};return Wi((g,p)=>{l++,!u&&!d&&h();const _=c=c??i();p.add(()=>{l--,0===l&&!u&&!d&&(s=P_(m,r))}),_.subscribe(p),!a&&l>0&&(a=new fu({next:w=>_.next(w),error:w=>{u=!0,h(),s=P_(f,e,w),_.error(w)},complete:()=>{d=!0,h(),s=P_(f,n),_.complete()}}),Qn(g).subscribe(a))})(o)}}function P_(t,i,...e){if(!0===i)return void t();if(!1===i)return;const n=new fu({next:()=>{n.unsubscribe(),t()}});return Qn(i(...e)).subscribe(n)}function Mi(t){for(let i in t)if(t[i]===Mi)return i;throw Error("Could not find renamed property on target object.")}function N_(t,i){for(const e in i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function Oi(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Oi).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const i=t.toString();if(null==i)return""+i;const e=i.indexOf("\n");return-1===e?i:i.substring(0,e)}function L_(t,i){return null==t||""===t?null===i?"":i:null==i||""===i?t:t+" "+i}const c8=Mi({__forward_ref__:Mi});function Xt(t){return t.__forward_ref__=Xt,t.toString=function(){return Oi(this())},t}function pt(t){return B_(t)?t():t}function B_(t){return"function"==typeof t&&t.hasOwnProperty(c8)&&t.__forward_ref__===Xt}function V_(t){return t&&!!t.\u0275providers}const dm="https://g.co/ng/security#xss";class ue extends Error{constructor(i,e){super(um(i,e)),this.code=i}}function um(t,i){return`NG0${Math.abs(t)}${i?": "+i.trim():""}`}function wt(t){return"string"==typeof t?t:null==t?"":String(t)}function hm(t,i){throw new ue(-201,!1)}function so(t,i){null==t&&function pi(t,i,e,n){throw new Error(`ASSERTION ERROR: ${t}`+(null==n?"":` [Expected=> ${e} ${n} ${i} <=Actual]`))}(i,t,null,"!=")}function ve(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ot(t){return{providers:t.providers||[],imports:t.imports||[]}}function fm(t){return lk(t,mm)||lk(t,uk)}function lk(t,i){return t.hasOwnProperty(i)?t[i]:null}function dk(t){return t&&(t.hasOwnProperty(H_)||t.hasOwnProperty(g8))?t[H_]:null}const mm=Mi({\u0275prov:Mi}),H_=Mi({\u0275inj:Mi}),uk=Mi({ngInjectableDef:Mi}),g8=Mi({ngInjectorDef:Mi});var gt=(()=>((gt=gt||{})[gt.Default=0]="Default",gt[gt.Host=1]="Host",gt[gt.Self=2]="Self",gt[gt.SkipSelf=4]="SkipSelf",gt[gt.Optional=8]="Optional",gt))();let U_;function co(t){const i=U_;return U_=t,i}function hk(t,i,e){const n=fm(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:e>.Optional?null:void 0!==i?i:void hm(Oi(t))}const Vi=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),pu={},z_="__NG_DI_FLAG__",pm="ngTempTokenPath",b8="ngTokenPath",v8=/\n/gm,x8="\u0275",fk="__source";let gu;function Dl(t){const i=gu;return gu=t,i}function y8(t,i=gt.Default){if(void 0===gu)throw new ue(-203,!1);return null===gu?hk(t,void 0,i):gu.get(t,i>.Optional?null:void 0,i)}function G(t,i=gt.Default){return(function _8(){return U_}()||y8)(pt(t),i)}function ht(t,i=gt.Default){return G(t,gm(i))}function gm(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function $_(t){const i=[];for(let e=0;e((Jo=Jo||{})[Jo.OnPush=0]="OnPush",Jo[Jo.Default=1]="Default",Jo))(),Oo=(()=>{return(t=Oo||(Oo={}))[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",Oo;var t})();const La={},li=[],_m=Mi({\u0275cmp:Mi}),j_=Mi({\u0275dir:Mi}),W_=Mi({\u0275pipe:Mi}),pk=Mi({\u0275mod:Mi}),Ba=Mi({\u0275fac:Mi}),bu=Mi({__NG_ELEMENT_ID__:Mi});let D8=0;function je(t){return Na(()=>{const i=_k(t),e={...i,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Jo.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:null,data:t.data||{},encapsulation:t.encapsulation||Oo.Emulated,id:"c"+D8++,styles:t.styles||li,_:null,schemas:t.schemas||null,tView:null};bk(e);const n=t.dependencies;return e.directiveDefs=bm(n,!1),e.pipeDefs=bm(n,!0),e})}function E8(t){return gi(t)||Yn(t)}function T8(t){return null!==t}function st(t){return Na(()=>({type:t.type,bootstrap:t.bootstrap||li,declarations:t.declarations||li,imports:t.imports||li,exports:t.exports||li,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function gk(t,i){if(null==t)return La;const e={};for(const n in t)if(t.hasOwnProperty(n)){let r=t[n],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=n,i&&(i[r]=o)}return e}function Q(t){return Na(()=>{const i=_k(t);return bk(i),i})}function Tr(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 gi(t){return t[_m]||null}function Yn(t){return t[j_]||null}function Mr(t){return t[W_]||null}function jr(t,i){const e=t[pk]||null;if(!e&&!0===i)throw new Error(`Type ${Oi(t)} does not have '\u0275mod' property.`);return e}function _k(t){const i={};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:i,exportAs:t.exportAs||null,standalone:!0===t.standalone,selectors:t.selectors||li,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:gk(t.inputs,i),outputs:gk(t.outputs)}}function bk(t){t.features?.forEach(i=>i(t))}function bm(t,i){if(!t)return null;const e=i?Mr:E8;return()=>("function"==typeof t?t():t).map(n=>e(n)).filter(T8)}const Va=0,Ge=1,At=2,Xi=3,Po=4,fc=5,Kn=6,El=7,Ji=8,vm=9,xm=10,Nt=11,G_=12,vu=13,vk=14,Tl=15,Zn=16,xu=17,Ml=18,ea=19,yu=20,xk=21,Hi=22,q_=1,yk=2,ym=7,wm=8,Al=9,gr=10;function Wr(t){return Array.isArray(t)&&"object"==typeof t[q_]}function No(t){return Array.isArray(t)&&!0===t[q_]}function X_(t){return 0!=(4&t.flags)}function wu(t){return t.componentOffset>-1}function Cm(t){return 1==(1&t.flags)}function Lo(t){return!!t.template}function A8(t){return 0!=(256&t[At])}function mc(t,i){return t.hasOwnProperty(Ba)?t[Ba]:null}class R8{constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Ei(){return kk}function kk(t){return t.type.prototype.ngOnChanges&&(t.setInput=P8),O8}function O8(){const t=Sk(this),i=t?.current;if(i){const e=t.previous;if(e===La)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function P8(t,i,e,n){const r=this.declaredInputs[e],o=Sk(t)||function N8(t,i){return t[Dk]=i}(t,{previous:La,current:null}),a=o.current||(o.current={}),s=o.previous,c=s[r];a[r]=new R8(c&&c.currentValue,i,s===La),t[n]=i}Ei.ngInherit=!0;const Dk="__ngSimpleChanges__";function Sk(t){return t[Dk]||null}const lo=function(t,i,e){},Ek="svg";function jn(t){for(;Array.isArray(t);)t=t[Va];return t}function km(t,i){return jn(i[t])}function Gr(t,i){return jn(i[t.index])}function Mk(t,i){return t.data[i]}function Il(t,i){return t[i]}function Ar(t,i){const e=i[t];return Wr(e)?e:e[Va]}function Dm(t){return 64==(64&t[At])}function Cs(t,i){return null==i?null:t[i]}function Ak(t){t[Ml]=0}function Y_(t,i){t[fc]+=i;let e=t,n=t[Xi];for(;null!==n&&(1===i&&1===e[fc]||-1===i&&0===e[fc]);)n[fc]+=i,e=n,n=n[Xi]}const Ct={lFrame:Hk(null),bindingsEnabled:!0};function Fk(){return Ct.bindingsEnabled}function ge(){return Ct.lFrame.lView}function ti(){return Ct.lFrame.tView}function Oe(t){return Ct.lFrame.contextLView=t,t[Ji]}function Pe(t){return Ct.lFrame.contextLView=null,t}function Wn(){let t=Rk();for(;null!==t&&64===t.type;)t=t.parent;return t}function Rk(){return Ct.lFrame.currentTNode}function ta(t,i){const e=Ct.lFrame;e.currentTNode=t,e.isParent=i}function K_(){return Ct.lFrame.isParent}function Z_(){Ct.lFrame.isParent=!1}function _r(){const t=Ct.lFrame;let i=t.bindingRootIndex;return-1===i&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function Fl(){return Ct.lFrame.bindingIndex++}function Ua(t){const i=Ct.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function Q8(t,i){const e=Ct.lFrame;e.bindingIndex=e.bindingRootIndex=t,J_(i)}function J_(t){Ct.lFrame.currentDirectiveIndex=t}function eb(t){const i=Ct.lFrame.currentDirectiveIndex;return-1===i?null:t[i]}function Lk(){return Ct.lFrame.currentQueryIndex}function tb(t){Ct.lFrame.currentQueryIndex=t}function K8(t){const i=t[Ge];return 2===i.type?i.declTNode:1===i.type?t[Kn]:null}function Bk(t,i,e){if(e>.SkipSelf){let r=i,o=t;for(;!(r=r.parent,null!==r||e>.Host||(r=K8(o),null===r||(o=o[Tl],10&r.type))););if(null===r)return!1;i=r,t=o}const n=Ct.lFrame=Vk();return n.currentTNode=i,n.lView=t,!0}function ib(t){const i=Vk(),e=t[Ge];Ct.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function Vk(){const t=Ct.lFrame,i=null===t?null:t.child;return null===i?Hk(t):i}function Hk(t){const i={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=i),i}function Uk(){const t=Ct.lFrame;return Ct.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const zk=Uk;function nb(){const t=Uk();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 br(){return Ct.lFrame.selectedIndex}function pc(t){Ct.lFrame.selectedIndex=t}function Gi(){const t=Ct.lFrame;return Mk(t.tView,t.selectedIndex)}function za(){Ct.lFrame.currentNamespace=Ek}function Rl(){!function tB(){Ct.lFrame.currentNamespace=null}()}function Sm(t,i){for(let e=i.directiveStart,n=i.directiveEnd;e=n)break}else i[c]<0&&(t[Ml]+=65536),(s>11>16&&(3&t[At])===i){t[At]+=2048,lo(4,s,o);try{o.call(s)}finally{lo(5,s,o)}}}else{lo(4,s,o);try{o.call(s)}finally{lo(5,s,o)}}}const Ol=-1;class ku{constructor(i,e,n){this.factory=i,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function ab(t,i,e){let n=0;for(;ni){a=o-1;break}}}for(;o>16}(t),n=i;for(;e>0;)n=n[Tl],e--;return n}let sb=!0;function Im(t){const i=sb;return sb=t,i}const Xk=255,Qk=5;let lB=0;const ia={};function Fm(t,i){const e=Yk(t,i);if(-1!==e)return e;const n=i[Ge];n.firstCreatePass&&(t.injectorIndex=i.length,cb(n.data,t),cb(i,null),cb(n.blueprint,null));const r=lb(t,i),o=t.injectorIndex;if(qk(r)){const a=Mm(r),s=Am(r,i),c=s[Ge].data;for(let l=0;l<8;l++)i[o+l]=s[a+l]|c[a+l]}return i[o+8]=r,o}function cb(t,i){t.push(0,0,0,0,0,0,0,0,i)}function Yk(t,i){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===i[t.injectorIndex+8]?-1:t.injectorIndex}function lb(t,i){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,n=null,r=i;for(;null!==r;){if(n=nD(r),null===n)return Ol;if(e++,r=r[Tl],-1!==n.injectorIndex)return n.injectorIndex|e<<16}return Ol}function db(t,i,e){!function dB(t,i,e){let n;"string"==typeof e?n=e.charCodeAt(0)||0:e.hasOwnProperty(bu)&&(n=e[bu]),null==n&&(n=e[bu]=lB++);const r=n&Xk;i.data[t+(r>>Qk)]|=1<=0?i&Xk:mB:i}(e);if("function"==typeof o){if(!Bk(i,t,n))return n>.Host?Kk(r,0,n):Zk(i,e,n,r);try{const a=o(n);if(null!=a||n>.Optional)return a;hm()}finally{zk()}}else if("number"==typeof o){let a=null,s=Yk(t,i),c=Ol,l=n>.Host?i[Zn][Kn]:null;for((-1===s||n>.SkipSelf)&&(c=-1===s?lb(t,i):i[s+8],c!==Ol&&iD(n,!1)?(a=i[Ge],s=Mm(c),i=Am(c,i)):s=-1);-1!==s;){const d=i[Ge];if(tD(o,s,d.data)){const u=hB(s,i,e,a,n,l);if(u!==ia)return u}c=i[s+8],c!==Ol&&iD(n,i[Ge].data[s+8]===l)&&tD(o,s,i)?(a=d,s=Mm(c),i=Am(c,i)):s=-1}}return r}function hB(t,i,e,n,r,o){const a=i[Ge],s=a.data[t+8],d=Rm(s,a,e,null==n?wu(s)&&sb:n!=a&&0!=(3&s.type),r>.Host&&o===s);return null!==d?gc(i,a,d,s):ia}function Rm(t,i,e,n,r){const o=t.providerIndexes,a=i.data,s=1048575&o,c=t.directiveStart,d=o>>20,h=r?s+d:t.directiveEnd;for(let f=n?s:s+d;f=c&&m.type===e)return f}if(r){const f=a[c];if(f&&Lo(f)&&f.type===e)return c}return null}function gc(t,i,e,n){let r=t[e];const o=i.data;if(function oB(t){return t instanceof ku}(r)){const a=r;a.resolving&&function l8(t,i){const e=i?`. Dependency path: ${i.join(" > ")} > ${t}`:"";throw new ue(-200,`Circular dependency in DI detected for ${t}${e}`)}(function mi(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():wt(t)}(o[e]));const s=Im(a.canSeeViewProviders);a.resolving=!0;const c=a.injectImpl?co(a.injectImpl):null;Bk(t,n,gt.Default);try{r=t[e]=a.factory(void 0,o,t,n),i.firstCreatePass&&e>=n.directiveStart&&function nB(t,i,e){const{ngOnChanges:n,ngOnInit:r,ngDoCheck:o}=i.type.prototype;if(n){const a=kk(i);(e.preOrderHooks??(e.preOrderHooks=[])).push(t,a),(e.preOrderCheckHooks??(e.preOrderCheckHooks=[])).push(t,a)}r&&(e.preOrderHooks??(e.preOrderHooks=[])).push(0-t,r),o&&((e.preOrderHooks??(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks??(e.preOrderCheckHooks=[])).push(t,o))}(e,o[e],i)}finally{null!==c&&co(c),Im(s),a.resolving=!1,zk()}}return r}function tD(t,i,e){return!!(e[i+(t>>Qk)]&1<{const i=t.prototype.constructor,e=i[Ba]||ub(i),n=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==n;){const o=r[Ba]||ub(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function ub(t){return B_(t)?()=>{const i=ub(pt(t));return i&&i()}:mc(t)}function nD(t){const i=t[Ge],e=i.type;return 2===e?i.declTNode:1===e?t[Kn]:null}function uo(t){return function uB(t,i){if("class"===i)return t.classes;if("style"===i)return t.styles;const e=t.attrs;if(e){const n=e.length;let r=0;for(;r{const n=function hb(t){return function(...e){if(t){const n=t(...e);for(const r in n)this[r]=n[r]}}}(i);function r(...o){if(this instanceof r)return n.apply(this,o),this;const a=new r(...o);return s.annotation=a,s;function s(c,l,d){const u=c.hasOwnProperty(Ll)?c[Ll]:Object.defineProperty(c,Ll,{value:[]})[Ll];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(a),c}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class ae{constructor(i,e){this._desc=i,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ve({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function _c(t,i){t.forEach(e=>Array.isArray(e)?_c(e,i):i(e))}function oD(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function Om(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function Tu(t,i){const e=[];for(let n=0;n=0?t[1|n]=e:(n=~n,function vB(t,i,e,n){let r=t.length;if(r==i)t.push(e,n);else if(1===r)t.push(n,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>i;)t[r]=t[r-2],r--;t[i]=e,t[i+1]=n}}(t,n,i,e)),n}function mb(t,i){const e=Hl(t,i);if(e>=0)return t[1|e]}function Hl(t,i){return function aD(t,i,e){let n=0,r=t.length>>e;for(;r!==n;){const o=n+(r-n>>1),a=t[o<i?r=o:n=o+1}return~(r<({token:t})),-1),na=_u(Vl("Optional"),8),bc=_u(Vl("SkipSelf"),4);var Ir=(()=>((Ir=Ir||{})[Ir.Important=1]="Important",Ir[Ir.DashCase=2]="DashCase",Ir))();const vb=new Map;let UB=0;const yb="__ngContext__";function Jn(t,i){Wr(i)?(t[yb]=i[yu],function $B(t){vb.set(t[yu],t)}(i)):t[yb]=i}let wb;function Cb(t,i){return wb(t,i)}function Fu(t){const i=t[Xi];return No(i)?i[Xi]:i}function kb(t){return SD(t[vu])}function Db(t){return SD(t[Po])}function SD(t){for(;null!==t&&!No(t);)t=t[Po];return t}function zl(t,i,e,n,r){if(null!=n){let o,a=!1;No(n)?o=n:Wr(n)&&(a=!0,n=n[Va]);const s=jn(n);0===t&&null!==e?null==r?FD(i,e,s):vc(i,e,s,r||null,!0):1===t&&null!==e?vc(i,e,s,r||null,!0):2===t?function Fb(t,i,e){const n=Vm(t,i);n&&function d5(t,i,e,n){t.removeChild(i,e,n)}(t,n,i,e)}(i,s,a):3===t&&i.destroyNode(s),null!=o&&function f5(t,i,e,n,r){const o=e[ym];o!==jn(e)&&zl(i,t,n,o,r);for(let s=gr;s0&&(t[e-1][Po]=n[Po]);const o=Om(t,gr+i);!function t5(t,i){Ru(t,i,i[Nt],2,null,null),i[Va]=null,i[Kn]=null}(n[Ge],n);const a=o[ea];null!==a&&a.detachView(o[Ge]),n[Xi]=null,n[Po]=null,n[At]&=-65}return n}function MD(t,i){if(!(128&i[At])){const e=i[Nt];e.destroyNode&&Ru(t,i,e,3,null,null),function o5(t){let i=t[vu];if(!i)return Mb(t[Ge],t);for(;i;){let e=null;if(Wr(i))e=i[vu];else{const n=i[gr];n&&(e=n)}if(!e){for(;i&&!i[Po]&&i!==t;)Wr(i)&&Mb(i[Ge],i),i=i[Xi];null===i&&(i=t),Wr(i)&&Mb(i[Ge],i),e=i&&i[Po]}i=e}}(i)}}function Mb(t,i){if(!(128&i[At])){i[At]&=-65,i[At]|=128,function l5(t,i){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let n=0;n=0?n[r=a]():n[r=-a].unsubscribe(),o+=2}else{const a=n[r=e[o+1]];e[o].call(a)}if(null!==n){for(let o=r+1;o-1){const{encapsulation:o}=t.data[n.directiveStart+r];if(o===Oo.None||o===Oo.Emulated)return null}return Gr(n,e)}}(t,i.parent,e)}function vc(t,i,e,n,r){t.insertBefore(i,e,n,r)}function FD(t,i,e){t.appendChild(i,e)}function RD(t,i,e,n,r){null!==n?vc(t,i,e,n,r):FD(t,i,e)}function Vm(t,i){return t.parentNode(i)}function OD(t,i,e){return ND(t,i,e)}let Ab,zm,Pb,$m,ND=function PD(t,i,e){return 40&t.type?Gr(t,e):null};function Hm(t,i,e,n){const r=AD(t,n,i),o=i[Nt],s=OD(n.parent||i[Kn],n,i);if(null!=r)if(Array.isArray(e))for(let c=0;ct,createScript:t=>t,createScriptURL:t=>t})}catch{}return zm}()?.createHTML(t)||t}function $D(t){return function Nb(){if(void 0===$m&&($m=null,Vi.trustedTypes))try{$m=Vi.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return $m}()?.createHTML(t)||t}class xc{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${dm})`}}class x5 extends xc{getTypeName(){return"HTML"}}class y5 extends xc{getTypeName(){return"Style"}}class w5 extends xc{getTypeName(){return"Script"}}class C5 extends xc{getTypeName(){return"URL"}}class k5 extends xc{getTypeName(){return"ResourceURL"}}function Xr(t){return t instanceof xc?t.changingThisBreaksApplicationSecurity:t}function ra(t,i){const e=function D5(t){return t instanceof xc&&t.getTypeName()||null}(t);if(null!=e&&e!==i){if("ResourceURL"===e&&"URL"===i)return!0;throw new Error(`Required a safe ${i}, got a ${e} (see ${dm})`)}return e===i}class I5{constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{const e=(new window.DOMParser).parseFromString($l(i),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(i):(e.removeChild(e.firstChild),e)}catch{return null}}}class F5{constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){const e=this.inertDocument.createElement("template");return e.innerHTML=$l(i),e}}const O5=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function jm(t){return(t=String(t)).match(O5)?t:"unsafe:"+t}function $a(t){const i={};for(const e of t.split(","))i[e]=!0;return i}function Ou(...t){const i={};for(const e of t)for(const n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}const qD=$a("area,br,col,hr,img,wbr"),XD=$a("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),QD=$a("rp,rt"),Lb=Ou(qD,Ou(XD,$a("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")),Ou(QD,$a("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")),Ou(QD,XD)),Bb=$a("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),YD=Ou(Bb,$a("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"),$a("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")),P5=$a("script,style,template");class N5{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(i){let e=i.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(i){const e=i.nodeName.toLowerCase();if(!Lb.hasOwnProperty(e))return this.sanitizedSomething=!0,!P5.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=i.attributes;for(let r=0;r"),!0}endElement(i){const e=i.nodeName.toLowerCase();Lb.hasOwnProperty(e)&&!qD.hasOwnProperty(e)&&(this.buf.push(""))}chars(i){this.buf.push(KD(i))}checkClobberedElement(i,e){if(e&&(i.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${i.outerHTML}`);return e}}const L5=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,B5=/([^\#-~ |!])/g;function KD(t){return t.replace(/&/g,"&").replace(L5,function(i){return"&#"+(1024*(i.charCodeAt(0)-55296)+(i.charCodeAt(1)-56320)+65536)+";"}).replace(B5,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}let Wm;function ZD(t,i){let e=null;try{Wm=Wm||function GD(t){const i=new F5(t);return function R5(){try{return!!(new window.DOMParser).parseFromString($l(""),"text/html")}catch{return!1}}()?new I5(i):i}(t);let n=i?String(i):"";e=Wm.getInertBodyElement(n);let r=5,o=n;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,n=o,o=e.innerHTML,e=Wm.getInertBodyElement(n)}while(n!==o);return $l((new N5).sanitizeChildren(Vb(e)||e))}finally{if(e){const n=Vb(e)||e;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function Vb(t){return"content"in t&&function V5(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var di=(()=>((di=di||{})[di.NONE=0]="NONE",di[di.HTML=1]="HTML",di[di.STYLE=2]="STYLE",di[di.SCRIPT=3]="SCRIPT",di[di.URL=4]="URL",di[di.RESOURCE_URL=5]="RESOURCE_URL",di))();function Gm(t){const i=Pu();return i?$D(i.sanitize(di.HTML,t)||""):ra(t,"HTML")?$D(Xr(t)):ZD(function zD(){return void 0!==Pb?Pb:typeof document<"u"?document:void 0}(),wt(t))}function Hb(t){const i=Pu();return i?i.sanitize(di.URL,t)||"":ra(t,"URL")?Xr(t):jm(wt(t))}function Pu(){const t=ge();return t&&t[G_]}const qm=new ae("ENVIRONMENT_INITIALIZER"),tS=new ae("INJECTOR",-1),iS=new ae("INJECTOR_DEF_TYPES");class nS{get(i,e=pu){if(e===pu){const n=new Error(`NullInjectorError: No provider for ${Oi(i)}!`);throw n.name="NullInjectorError",n}return e}}function G5(...t){return{\u0275providers:rS(0,t),\u0275fromNgModule:!0}}function rS(t,...i){const e=[],n=new Set;let r;return _c(i,o=>{const a=o;Ub(a,e,[],n)&&(r||(r=[]),r.push(a))}),void 0!==r&&oS(r,e),e}function oS(t,i){for(let e=0;e{i.push(o)})}}function Ub(t,i,e,n){if(!(t=pt(t)))return!1;let r=null,o=dk(t);const a=!o&&gi(t);if(o||a){if(a&&!a.standalone)return!1;r=t}else{const c=t.ngModule;if(o=dk(c),!o)return!1;r=c}const s=n.has(r);if(a){if(s)return!1;if(n.add(r),a.dependencies){const c="function"==typeof a.dependencies?a.dependencies():a.dependencies;for(const l of c)Ub(l,i,e,n)}}else{if(!o)return!1;{if(null!=o.imports&&!s){let l;n.add(r);try{_c(o.imports,d=>{Ub(d,i,e,n)&&(l||(l=[]),l.push(d))})}finally{}void 0!==l&&oS(l,i)}if(!s){const l=mc(r)||(()=>new r);i.push({provide:r,useFactory:l,deps:li},{provide:iS,useValue:r,multi:!0},{provide:qm,useValue:()=>G(r),multi:!0})}const c=o.providers;null==c||s||zb(c,d=>{i.push(d)})}}return r!==t&&void 0!==t.providers}function zb(t,i){for(let e of t)V_(e)&&(e=e.\u0275providers),Array.isArray(e)?zb(e,i):i(e)}const q5=Mi({provide:String,useValue:Mi});function $b(t){return null!==t&&"object"==typeof t&&q5 in t}function yc(t){return"function"==typeof t}const jb=new ae("Set Injector scope."),Xm={},Q5={};let Wb;function Qm(){return void 0===Wb&&(Wb=new nS),Wb}class oa{}class cS extends oa{get destroyed(){return this._destroyed}constructor(i,e,n,r){super(),this.parent=e,this.source=n,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,qb(i,a=>this.processProvider(a)),this.records.set(tS,jl(void 0,this)),r.has("environment")&&this.records.set(oa,jl(void 0,this));const o=this.records.get(jb);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(iS.multi,li,gt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();for(const i of this._onDestroyHooks)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(i){this._onDestroyHooks.push(i)}runInContext(i){this.assertNotDestroyed();const e=Dl(this),n=co(void 0);try{return i()}finally{Dl(e),co(n)}}get(i,e=pu,n=gt.Default){this.assertNotDestroyed(),n=gm(n);const r=Dl(this),o=co(void 0);try{if(!(n>.SkipSelf)){let s=this.records.get(i);if(void 0===s){const c=function e6(t){return"function"==typeof t||"object"==typeof t&&t instanceof ae}(i)&&fm(i);s=c&&this.injectableDefInScope(c)?jl(Gb(i),Xm):null,this.records.set(i,s)}if(null!=s)return this.hydrate(i,s)}return(n>.Self?Qm():this.parent).get(i,e=n>.Optional&&e===pu?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[pm]=a[pm]||[]).unshift(Oi(i)),r)throw a;return function C8(t,i,e,n){const r=t[pm];throw i[fk]&&r.unshift(i[fk]),t.message=function k8(t,i,e,n=null){t=t&&"\n"===t.charAt(0)&&t.charAt(1)==x8?t.slice(2):t;let r=Oi(i);if(Array.isArray(i))r=i.map(Oi).join(" -> ");else if("object"==typeof i){let o=[];for(let a in i)if(i.hasOwnProperty(a)){let s=i[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):Oi(s)))}r=`{${o.join(", ")}}`}return`${e}${n?"("+n+")":""}[${r}]: ${t.replace(v8,"\n ")}`}("\n"+t.message,r,e,n),t[b8]=r,t[pm]=null,t}(a,i,"R3InjectorError",this.source)}throw a}finally{co(o),Dl(r)}}resolveInjectorInitializers(){const i=Dl(this),e=co(void 0);try{const n=this.get(qm.multi,li,gt.Self);for(const r of n)r()}finally{Dl(i),co(e)}}toString(){const i=[],e=this.records;for(const n of e.keys())i.push(Oi(n));return`R3Injector[${i.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ue(205,!1)}processProvider(i){let e=yc(i=pt(i))?i:pt(i&&i.provide);const n=function K5(t){return $b(t)?jl(void 0,t.useValue):jl(lS(t),Xm)}(i);if(yc(i)||!0!==i.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=jl(void 0,Xm,!0),r.factory=()=>$_(r.multi),this.records.set(e,r)),e=i,r.multi.push(i)}this.records.set(e,n)}hydrate(i,e){return e.value===Xm&&(e.value=Q5,e.value=e.factory()),"object"==typeof e.value&&e.value&&function J5(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(i){if(!i.providedIn)return!1;const e=pt(i.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function Gb(t){const i=fm(t),e=null!==i?i.factory:mc(t);if(null!==e)return e;if(t instanceof ae)throw new ue(204,!1);if(t instanceof Function)return function Y5(t){const i=t.length;if(i>0)throw Tu(i,"?"),new ue(204,!1);const e=function p8(t){return t&&(t[mm]||t[uk])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new ue(204,!1)}function lS(t,i,e){let n;if(yc(t)){const r=pt(t);return mc(r)||Gb(r)}if($b(t))n=()=>pt(t.useValue);else if(function sS(t){return!(!t||!t.useFactory)}(t))n=()=>t.useFactory(...$_(t.deps||[]));else if(function aS(t){return!(!t||!t.useExisting)}(t))n=()=>G(pt(t.useExisting));else{const r=pt(t&&(t.useClass||t.provide));if(!function Z5(t){return!!t.deps}(t))return mc(r)||Gb(r);n=()=>new r(...$_(t.deps))}return n}function jl(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function qb(t,i){for(const e of t)Array.isArray(e)?qb(e,i):e&&V_(e)?qb(e.\u0275providers,i):i(e)}class t6{}class dS{}class n6{resolveComponentFactory(i){throw function i6(t){const i=Error(`No component factory found for ${Oi(t)}. Did you add it to @NgModule.entryComponents?`);return i.ngComponent=t,i}(i)}}let ks=(()=>{class t{}return t.NULL=new n6,t})();function r6(){return Wl(Wn(),ge())}function Wl(t,i){return new Ae(Gr(t,i))}let Ae=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=r6,t})();function o6(t){return t instanceof Ae?t.nativeElement:t}class Nu{}let ja=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function a6(){const t=ge(),e=Ar(Wn().index,t);return(Wr(e)?e:t)[Nt]}(),t})(),s6=(()=>{class t{}return t.\u0275prov=ve({token:t,providedIn:"root",factory:()=>null}),t})();class wc{constructor(i){this.full=i,this.major=i.split(".")[0],this.minor=i.split(".")[1],this.patch=i.split(".").slice(2).join(".")}}const c6=new wc("15.2.8"),Xb={},Qb="ngOriginalError";function Yb(t){return t[Qb]}class Wa{constructor(){this._console=console}handleError(i){const e=this._findOriginalError(i);this._console.error("ERROR",i),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(i){let e=i&&Yb(i);for(;e&&Yb(e);)e=Yb(e);return e||null}}function Ga(t){return t instanceof Function?t():t}function fS(t,i,e){let n=t.length;for(;;){const r=t.indexOf(i,e);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const o=i.length;if(r+o===n||t.charCodeAt(r+o)<=32)return r}e=r+1}}const mS="ng-template";function v6(t,i,e){let n=0,r=!0;for(;no?"":r[u+1].toLowerCase();const f=8&n?h:null;if(f&&-1!==fS(f,l,0)||2&n&&l!==h){if(Bo(n))return!1;a=!0}}}}else{if(!a&&!Bo(n)&&!Bo(c))return!1;if(a&&Bo(c))continue;a=!1,n=c|1&n}}return Bo(n)||a}function Bo(t){return 0==(1&t)}function w6(t,i,e,n){if(null===i)return-1;let r=0;if(n||!e){let o=!1;for(;r-1)for(e++;e0?'="'+s+'"':"")+"]"}else 8&n?r+="."+a:4&n&&(r+=" "+a);else""!==r&&!Bo(a)&&(i+=_S(o,r),r=""),n=a,o=o||!Bo(n);e++}return""!==r&&(i+=_S(o,r)),i}const kt={};function k(t){bS(ti(),ge(),br()+t,!1)}function bS(t,i,e,n){if(!n)if(3==(3&i[At])){const o=t.preOrderCheckHooks;null!==o&&Em(i,o,e)}else{const o=t.preOrderHooks;null!==o&&Tm(i,o,0,e)}pc(e)}function wS(t,i=null,e=null,n){const r=CS(t,i,e,n);return r.resolveInjectorInitializers(),r}function CS(t,i=null,e=null,n,r=new Set){const o=[e||li,G5(t)];return n=n||("object"==typeof t?void 0:Oi(t)),new cS(o,i||Qm(),n||null,r)}let en=(()=>{class t{static create(e,n){if(Array.isArray(e))return wS({name:""},n,e,"");{const r=e.name??"";return wS({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=pu,t.NULL=new nS,t.\u0275prov=ve({token:t,providedIn:"any",factory:()=>G(tS)}),t.__NG_ELEMENT_ID__=-1,t})();function b(t,i=gt.Default){const e=ge();return null===e?G(t,i):Jk(Wn(),e,pt(t),i)}function aa(){throw new Error("invalid")}function AS(t,i){const e=t.contentQueries;if(null!==e)for(let n=0;nHi&&bS(t,i,Hi,!1),lo(a?2:0,r),e(n,r)}finally{pc(o),lo(a?3:1,r)}}function nv(t,i,e){if(X_(i)){const r=i.directiveEnd;for(let o=i.directiveStart;o0;){const e=t[--i];if("number"==typeof e&&e<0)return e}return 0})(a)!=s&&a.push(s),a.push(e,n,o)}}(t,i,n,Lu(t,e,r.hostVars,kt),r)}function sa(t,i,e,n,r,o){const a=Gr(t,i);!function lv(t,i,e,n,r,o,a){if(null==o)t.removeAttribute(i,r,e);else{const s=null==a?wt(o):a(o,n||"",r);t.setAttribute(i,r,s,e)}}(i[Nt],a,o,t.value,e,n,r)}function mV(t,i,e,n,r,o){const a=o[i];if(null!==a){const s=n.setInput;for(let c=0;c0&&dv(e)}}function dv(t){for(let n=kb(t);null!==n;n=Db(n))for(let r=gr;r0&&dv(o)}const e=t[Ge].components;if(null!==e)for(let n=0;n0&&dv(r)}}function vV(t,i){const e=Ar(i,t),n=e[Ge];(function xV(t,i){for(let e=i.length;e-1&&(Tb(i,n),Om(e,n))}this._attachedToViewContainer=!1}MD(this._lView[Ge],this._lView)}onDestroy(i){RS(this._lView[Ge],this._lView,null,i)}markForCheck(){ep(this._cdRefInjectingView||this._lView)}detach(){this._lView[At]&=-65}reattach(){this._lView[At]|=64}detectChanges(){tp(this._lView[Ge],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ue(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function r5(t,i){Ru(t,i,i[Nt],2,null,null)}(this._lView[Ge],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new ue(902,!1);this._appRef=i}}class yV extends Bu{constructor(i){super(i),this._view=i}detectChanges(){const i=this._view;tp(i[Ge],i,i[Ji],!1)}checkNoChanges(){}get context(){return null}}class $S extends ks{constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){const e=gi(i);return new Vu(e,this.ngModule)}}function jS(t){const i=[];for(let e in t)t.hasOwnProperty(e)&&i.push({propName:t[e],templateName:e});return i}class CV{constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){n=gm(n);const r=this.injector.get(i,Xb,n);return r!==Xb||e===Xb?r:this.parentInjector.get(i,e,n)}}class Vu extends dS{get inputs(){return jS(this.componentDef.inputs)}get outputs(){return jS(this.componentDef.outputs)}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=function T6(t){return t.map(E6).join(",")}(i.selectors),this.ngContentSelectors=i.ngContentSelectors?i.ngContentSelectors:[],this.isBoundToModule=!!e}create(i,e,n,r){let o=(r=r||this.ngModule)instanceof oa?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const a=o?new CV(i,o):i,s=a.get(Nu,null);if(null===s)throw new ue(407,!1);const c=a.get(s6,null),l=s.createRenderer(null,this.componentDef),d=this.componentDef.selectors[0][0]||"div",u=n?function Z6(t,i,e){return t.selectRootElement(i,e===Oo.ShadowDom)}(l,n,this.componentDef.encapsulation):Eb(l,d,function wV(t){const i=t.toLowerCase();return"svg"===i?Ek:"math"===i?"math":null}(d)),h=this.componentDef.onPush?288:272,f=av(0,null,null,1,0,null,null,null,null,null),m=Km(null,f,null,h,null,null,s,l,c,a,null);let g,p;ib(m);try{const _=this.componentDef;let w,x=null;_.findHostDirectiveDefs?(w=[],x=new Map,_.findHostDirectiveDefs(_,w,x),w.push(_)):w=[_];const E=function DV(t,i){const e=t[Ge],n=Hi;return t[n]=i,Xl(e,n,2,"#host",null)}(m,u),W=function SV(t,i,e,n,r,o,a,s){const c=r[Ge];!function EV(t,i,e,n){for(const r of t)i.mergedAttrs=Du(i.mergedAttrs,r.hostAttrs);null!==i.mergedAttrs&&(ip(i,i.mergedAttrs,!0),null!==e&&UD(n,e,i))}(n,t,i,a);const l=o.createRenderer(i,e),d=Km(r,FS(e),null,e.onPush?32:16,r[t.index],t,o,l,s||null,null,null);return c.firstCreatePass&&cv(c,t,n.length-1),Jm(r,d),r[t.index]=d}(E,u,_,w,m,s,l);p=Mk(f,Hi),u&&function MV(t,i,e,n){if(n)ab(t,e,["ng-version",c6.full]);else{const{attrs:r,classes:o}=function M6(t){const i=[],e=[];let n=1,r=2;for(;n0&&HD(t,e,o.join(" "))}}(l,_,u,n),void 0!==e&&function AV(t,i,e){const n=t.projection=[];for(let r=0;r=0;n--){const r=t[n];r.hostVars=i+=r.hostVars,r.hostAttrs=Du(r.hostAttrs,e=Du(e,r.hostAttrs))}}(n)}function fv(t){return t===La?{}:t===li?[]:t}function RV(t,i){const e=t.viewQuery;t.viewQuery=e?(n,r)=>{i(n,r),e(n,r)}:i}function OV(t,i){const e=t.contentQueries;t.contentQueries=e?(n,r,o)=>{i(n,r,o),e(n,r,o)}:i}function PV(t,i){const e=t.hostBindings;t.hostBindings=e?(n,r)=>{i(n,r),e(n,r)}:i}function rp(t){return!!mv(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function mv(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function ca(t,i,e){return t[i]=e}function er(t,i,e){return!Object.is(t[i],e)&&(t[i]=e,!0)}function Cc(t,i,e,n){const r=er(t,i,e);return er(t,i+1,n)||r}function rt(t,i,e,n){const r=ge();return er(r,Fl(),i)&&(ti(),sa(Gi(),r,t,i,e,n)),rt}function Yl(t,i,e,n){return er(t,Fl(),e)?i+wt(e)+n:kt}function Zl(t,i,e,n,r,o,a,s){const l=function op(t,i,e,n,r){const o=Cc(t,i,e,n);return er(t,i+2,r)||o}(t,function Ha(){return Ct.lFrame.bindingIndex}(),e,r,a);return Ua(3),l?i+wt(e)+n+wt(r)+o+wt(a)+s:kt}function H(t,i,e,n,r,o,a,s){const c=ge(),l=ti(),d=t+Hi,u=l.firstCreatePass?function WV(t,i,e,n,r,o,a,s,c){const l=i.consts,d=Xl(i,t,4,a||null,Cs(l,s));sv(i,e,d,Cs(l,c)),Sm(i,d);const u=d.tView=av(2,d,n,r,o,i.directiveRegistry,i.pipeRegistry,null,i.schemas,l);return null!==i.queries&&(i.queries.template(i,d),u.queries=i.queries.embeddedTView(d)),d}(d,l,c,i,e,n,r,o,a):l.data[d];ta(u,!1);const h=c[Nt].createComment("");Hm(l,c,h,u),Jn(h,c),Jm(c,c[d]=BS(h,c,h,u)),Cm(u)&&rv(l,c,u),null!=a&&ov(c,u,s)}function Lt(t){return Il(function q8(){return Ct.lFrame.contextLView}(),Hi+t)}function I(t,i,e){const n=ge();return er(n,Fl(),i)&&Qr(ti(),Gi(),n,t,i,n[Nt],e,!1),I}function pv(t,i,e,n,r){const a=r?"class":"style";hv(t,e,i.inputs[a],a,n)}function v(t,i,e,n){const r=ge(),o=ti(),a=Hi+t,s=r[Nt],c=o.firstCreatePass?function qV(t,i,e,n,r,o){const a=i.consts,c=Xl(i,t,2,n,Cs(a,r));return sv(i,e,c,Cs(a,o)),null!==c.attrs&&ip(c,c.attrs,!1),null!==c.mergedAttrs&&ip(c,c.mergedAttrs,!0),null!==i.queries&&i.queries.elementStart(i,c),c}(a,o,r,i,e,n):o.data[a],l=r[a]=Eb(s,i,function iB(){return Ct.lFrame.currentNamespace}()),d=Cm(c);return ta(c,!0),UD(s,l,c),32!=(32&c.flags)&&Hm(o,r,l,c),0===function z8(){return Ct.lFrame.elementDepthCount}()&&Jn(l,r),function $8(){Ct.lFrame.elementDepthCount++}(),d&&(rv(o,r,c),nv(o,c,r)),null!==n&&ov(r,c),v}function y(){let t=Wn();K_()?Z_():(t=t.parent,ta(t,!1));const i=t;!function j8(){Ct.lFrame.elementDepthCount--}();const e=ti();return e.firstCreatePass&&(Sm(e,t),X_(t)&&e.queries.elementEnd(t)),null!=i.classesWithoutHost&&function aB(t){return 0!=(8&t.flags)}(i)&&pv(e,i,ge(),i.classesWithoutHost,!0),null!=i.stylesWithoutHost&&function sB(t){return 0!=(16&t.flags)}(i)&&pv(e,i,ge(),i.stylesWithoutHost,!1),y}function Ee(t,i,e,n){return v(t,i,e,n),y(),Ee}function Ai(t,i,e){const n=ge(),r=ti(),o=t+Hi,a=r.firstCreatePass?function XV(t,i,e,n,r){const o=i.consts,a=Cs(o,n),s=Xl(i,t,8,"ng-container",a);return null!==a&&ip(s,a,!0),sv(i,e,s,Cs(o,r)),null!==i.queries&&i.queries.elementStart(i,s),s}(o,r,n,i,e):r.data[o];ta(a,!0);const s=n[o]=n[Nt].createComment("");return Hm(r,n,s,a),Jn(s,n),Cm(a)&&(rv(r,n,a),nv(r,a,n)),null!=e&&ov(n,a),Ai}function Ii(){let t=Wn();const i=ti();return K_()?Z_():(t=t.parent,ta(t,!1)),i.firstCreatePass&&(Sm(i,t),X_(t)&&i.queries.elementEnd(t)),Ii}function Yr(t,i,e){return Ai(t,i,e),Ii(),Yr}function ct(){return ge()}function Uu(t){return!!t&&"function"==typeof t.then}function rE(t){return!!t&&"function"==typeof t.subscribe}const gv=rE;function X(t,i,e,n){const r=ge(),o=ti(),a=Wn();return oE(o,r,r[Nt],a,t,i,n),X}function _v(t,i){const e=Wn(),n=ge(),r=ti();return oE(r,n,US(eb(r.data),e,n),e,t,i),_v}function oE(t,i,e,n,r,o,a){const s=Cm(n),l=t.firstCreatePass&&HS(t),d=i[Ji],u=VS(i);let h=!0;if(3&n.type||a){const g=Gr(n,i),p=a?a(g):g,_=u.length,w=a?E=>a(jn(E[n.index])):n.index;let x=null;if(!a&&s&&(x=function QV(t,i,e,n){const r=t.cleanup;if(null!=r)for(let o=0;oc?s[c]:null}"string"==typeof a&&(o+=2)}return null}(t,i,r,n.index)),null!==x)(x.__ngLastListenerFn__||x).__ngNextListenerFn__=o,x.__ngLastListenerFn__=o,h=!1;else{o=sE(n,i,d,o,!1);const E=e.listen(p,r,o);u.push(o,E),l&&l.push(r,w,_,_+1)}}else o=sE(n,i,d,o,!1);const f=n.outputs;let m;if(h&&null!==f&&(m=f[r])){const g=m.length;if(g)for(let p=0;p-1?Ar(t.index,i):i);let c=aE(i,e,n,a),l=o.__ngNextListenerFn__;for(;l;)c=aE(i,e,l,a)&&c,l=l.__ngNextListenerFn__;return r&&!1===c&&(a.preventDefault(),a.returnValue=!1),c}}function q(t=1){return function Z8(t){return(Ct.lFrame.contextLView=function J8(t,i){for(;t>0;)i=i[Tl],t--;return i}(t,Ct.lFrame.contextLView))[Ji]}(t)}function YV(t,i){let e=null;const n=function C6(t){const i=t.attrs;if(null!=i){const e=i.indexOf(5);if(!(1&e))return i[e+1]}return null}(t);for(let r=0;r>17&32767}function bv(t){return 2|t}function kc(t){return(131068&t)>>2}function vv(t,i){return-131069&t|i<<2}function xv(t){return 1|t}function gE(t,i,e,n,r){const o=t[e+1],a=null===i;let s=n?Ds(o):kc(o),c=!1;for(;0!==s&&(!1===c||a);){const d=t[s+1];i7(t[s],i)&&(c=!0,t[s+1]=n?xv(d):bv(d)),s=n?Ds(d):kc(d)}c&&(t[e+1]=n?bv(o):xv(o))}function i7(t,i){return null===t||null==i||(Array.isArray(t)?t[1]:t)===i||!(!Array.isArray(t)||"string"!=typeof i)&&Hl(t,i)>=0}const Tn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function _E(t){return t.substring(Tn.key,Tn.keyEnd)}function bE(t,i){const e=Tn.textEnd;return e===i?-1:(i=Tn.keyEnd=function a7(t,i,e){for(;i32;)i++;return i}(t,Tn.key=i,e),rd(t,i,e))}function rd(t,i,e){for(;i=0;e=bE(i,e))qr(t,_E(i),!0)}function Vo(t,i,e,n){const r=ge(),o=ti(),a=Ua(2);o.firstUpdatePass&&kE(o,t,a,n),i!==kt&&er(r,a,i)&&SE(o,o.data[br()],r,r[Nt],t,r[a+1]=function b7(t,i){return null==t||""===t||("string"==typeof i?t+=i:"object"==typeof t&&(t=Oi(Xr(t)))),t}(i,e),n,a)}function CE(t,i){return i>=t.expandoStartIndex}function kE(t,i,e,n){const r=t.data;if(null===r[e+1]){const o=r[br()],a=CE(t,e);TE(o,n)&&null===i&&!a&&(i=!1),i=function u7(t,i,e,n){const r=eb(t);let o=n?i.residualClasses:i.residualStyles;if(null===r)0===(n?i.classBindings:i.styleBindings)&&(e=$u(e=yv(null,t,i,e,n),i.attrs,n),o=null);else{const a=i.directiveStylingLast;if(-1===a||t[a]!==r)if(e=yv(r,t,i,e,n),null===o){let c=function h7(t,i,e){const n=e?i.classBindings:i.styleBindings;if(0!==kc(n))return t[Ds(n)]}(t,i,n);void 0!==c&&Array.isArray(c)&&(c=yv(null,t,i,c[1],n),c=$u(c,i.attrs,n),function f7(t,i,e,n){t[Ds(e?i.classBindings:i.styleBindings)]=n}(t,i,n,c))}else o=function m7(t,i,e){let n;const r=i.directiveEnd;for(let o=1+i.directiveStylingLast;o0)&&(l=!0)):d=e,r)if(0!==c){const h=Ds(t[s+1]);t[n+1]=sp(h,s),0!==h&&(t[h+1]=vv(t[h+1],n)),t[s+1]=function ZV(t,i){return 131071&t|i<<17}(t[s+1],n)}else t[n+1]=sp(s,0),0!==s&&(t[s+1]=vv(t[s+1],n)),s=n;else t[n+1]=sp(c,0),0===s?s=n:t[c+1]=vv(t[c+1],n),c=n;l&&(t[n+1]=bv(t[n+1])),gE(t,d,n,!0),gE(t,d,n,!1),function t7(t,i,e,n,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof i&&Hl(o,i)>=0&&(e[n+1]=xv(e[n+1]))}(i,d,t,n,o),a=sp(s,c),o?i.classBindings=a:i.styleBindings=a}(r,o,i,e,a,n)}}function yv(t,i,e,n,r){let o=null;const a=e.directiveEnd;let s=e.directiveStylingLast;for(-1===s?s=e.directiveStart:s++;s0;){const c=t[r],l=Array.isArray(c),d=l?c[1]:c,u=null===d;let h=e[r+1];h===kt&&(h=u?li:void 0);let f=u?mb(h,n):d===n?h:void 0;if(l&&!cp(f)&&(f=mb(c,n)),cp(f)&&(s=f,a))return s;const m=t[r+1];r=a?Ds(m):kc(m)}if(null!==i){let c=o?i.residualClasses:i.residualStyles;null!=c&&(s=mb(c,n))}return s}function cp(t){return void 0!==t}function TE(t,i){return 0!=(t.flags&(i?8:16))}function M(t,i=""){const e=ge(),n=ti(),r=t+Hi,o=n.firstCreatePass?Xl(n,r,1,i,null):n.data[r],a=e[r]=function Sb(t,i){return t.createText(i)}(e[Nt],i);Hm(n,e,a,o),ta(o,!1)}function tt(t){return It("",t,""),tt}function It(t,i,e){const n=ge(),r=Yl(n,t,i,e);return r!==kt&&qa(n,br(),r),It}function wv(t,i,e,n,r,o,a){const s=ge(),c=Zl(s,t,i,e,n,r,o,a);return c!==kt&&qa(s,br(),c),wv}function NE(t,i,e){!function Ho(t,i,e,n){const r=ti(),o=Ua(2);r.firstUpdatePass&&kE(r,null,o,n);const a=ge();if(e!==kt&&er(a,o,e)){const s=r.data[br()];if(TE(s,n)&&!CE(r,o)){let c=n?s.classesWithoutHost:s.stylesWithoutHost;null!==c&&(e=L_(c,e||"")),pv(r,s,a,e,n)}else!function _7(t,i,e,n,r,o,a,s){r===kt&&(r=li);let c=0,l=0,d=0((He=He||{})[He.LocaleId=0]="LocaleId",He[He.DayPeriodsFormat=1]="DayPeriodsFormat",He[He.DayPeriodsStandalone=2]="DayPeriodsStandalone",He[He.DaysFormat=3]="DaysFormat",He[He.DaysStandalone=4]="DaysStandalone",He[He.MonthsFormat=5]="MonthsFormat",He[He.MonthsStandalone=6]="MonthsStandalone",He[He.Eras=7]="Eras",He[He.FirstDayOfWeek=8]="FirstDayOfWeek",He[He.WeekendRange=9]="WeekendRange",He[He.DateFormat=10]="DateFormat",He[He.TimeFormat=11]="TimeFormat",He[He.DateTimeFormat=12]="DateTimeFormat",He[He.NumberSymbols=13]="NumberSymbols",He[He.NumberFormats=14]="NumberFormats",He[He.CurrencyCode=15]="CurrencyCode",He[He.CurrencySymbol=16]="CurrencySymbol",He[He.CurrencyName=17]="CurrencyName",He[He.Currencies=18]="Currencies",He[He.Directionality=19]="Directionality",He[He.PluralCase=20]="PluralCase",He[He.ExtraData=21]="ExtraData",He))();const ad="en-US";let XE=ad;function Sv(t,i,e,n,r){if(t=pt(t),Array.isArray(t))for(let o=0;o>20;if(yc(t)||!t.multi){const f=new ku(c,r,b),m=Tv(s,i,r?d:d+h,u);-1===m?(db(Fm(l,a),o,s),Ev(o,t,i.length),i.push(s),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),e.push(f),a.push(f)):(e[m]=f,a[m]=f)}else{const f=Tv(s,i,d+h,u),m=Tv(s,i,d,d+h),p=m>=0&&e[m];if(r&&!p||!r&&!(f>=0&&e[f])){db(Fm(l,a),o,s);const _=function PH(t,i,e,n,r){const o=new ku(t,e,b);return o.multi=[],o.index=i,o.componentProviders=0,vT(o,r,n&&!e),o}(r?OH:RH,e.length,r,n,c);!r&&p&&(e[m].providerFactory=_),Ev(o,t,i.length,0),i.push(s),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),e.push(_),a.push(_)}else Ev(o,t,f>-1?f:m,vT(e[r?m:f],c,!r&&n));!r&&n&&p&&e[m].componentProviders++}}}function Ev(t,i,e,n){const r=yc(i),o=function X5(t){return!!t.useClass}(i);if(r||o){const c=(o?pt(i.useClass):i).prototype.ngOnDestroy;if(c){const l=t.destroyHooks||(t.destroyHooks=[]);if(!r&&i.multi){const d=l.indexOf(e);-1===d?l.push(e,[n,c]):l[d+1].push(n,c)}else l.push(e,c)}}}function vT(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function Tv(t,i,e,n){for(let r=e;r{e.providersResolver=(n,r)=>function FH(t,i,e){const n=ti();if(n.firstCreatePass){const r=Lo(t);Sv(e,n.data,n.blueprint,r,!0),Sv(i,n.data,n.blueprint,r,!1)}}(n,r?r(t):t,i)}}class sd{}class xT{}class yT extends sd{constructor(i,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new $S(this);const n=jr(i);this._bootstrapComponents=Ga(n.bootstrap),this._r3Injector=CS(i,e,[{provide:sd,useValue:this},{provide:ks,useValue:this.componentFactoryResolver}],Oi(i),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(i)}get injector(){return this._r3Injector}destroy(){const i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}}class Av extends xT{constructor(i){super(),this.moduleType=i}create(i){return new yT(this.moduleType,i)}}class LH extends sd{constructor(i,e,n){super(),this.componentFactoryResolver=new $S(this),this.instance=null;const r=new cS([...i,{provide:sd,useValue:this},{provide:ks,useValue:this.componentFactoryResolver}],e||Qm(),n,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}}function fp(t,i,e=null){return new LH(t,i,e).injector}let BH=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const n=rS(0,e.type),r=n.length>0?fp([n],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,r)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return t.\u0275prov=ve({token:t,providedIn:"environment",factory:()=>new t(G(oa))}),t})();function Iv(t){t.getStandaloneInjector=i=>i.get(BH).getOrCreateStandaloneInjector(t)}function Sc(t,i,e){const n=_r()+t,r=ge();return r[n]===kt?ca(r,n,e?i.call(e):i()):function Hu(t,i){return t[i]}(r,n)}function Rv(t,i,e,n){return MT(ge(),_r(),t,i,e,n)}function Qu(t,i){const e=t[i];return e===kt?void 0:e}function MT(t,i,e,n,r,o){const a=i+e;return er(t,a,r)?ca(t,a+1,o?n.call(o,r):n(r)):Qu(t,a+1)}function AT(t,i,e,n,r,o,a){const s=i+e;return Cc(t,s,r,o)?ca(t,s+2,a?n.call(a,r,o):n(r,o)):Qu(t,s+2)}function mp(t,i){const e=ti();let n;const r=t+Hi;e.firstCreatePass?(n=function eU(t,i){if(i)for(let e=i.length-1;e>=0;e--){const n=i[e];if(t===n.name)return n}}(i,e.pipeRegistry),e.data[r]=n,n.onDestroy&&(e.destroyHooks??(e.destroyHooks=[])).push(r,n.onDestroy)):n=e.data[r];const o=n.factory||(n.factory=mc(n.type)),a=co(b);try{const s=Im(!1),c=o();return Im(s),function GV(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}(e,ge(),r,c),c}finally{co(a)}}function Ov(t,i,e){const n=t+Hi,r=ge(),o=Il(r,n);return Yu(r,n)?MT(r,_r(),i,o.transform,e,o):o.transform(e)}function Yu(t,i){return t[Ge].data[i].pure}function Pv(t){return i=>{setTimeout(t,void 0,i)}}const ke=class rU extends Ce{constructor(i=!1){super(),this.__isAsync=i}emit(i){super.next(i)}subscribe(i,e,n){let r=i,o=e||(()=>null),a=n;if(i&&"object"==typeof i){const c=i;r=c.next?.bind(c),o=c.error?.bind(c),a=c.complete?.bind(c)}this.__isAsync&&(o=Pv(o),r&&(r=Pv(r)),a&&(a=Pv(a)));const s=super.subscribe({next:r,error:o,complete:a});return i instanceof yt&&i.add(s),s}};function oU(){return this._results[Symbol.iterator]()}class Ec{get changes(){return this._changes||(this._changes=new ke)}constructor(i=!1){this._emitDistinctChangesOnly=i,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Ec.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=oU)}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,e){return this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,e){const n=this;n.dirty=!1;const r=function ho(t){return t.flat(Number.POSITIVE_INFINITY)}(i);(this._changesDetected=!function _B(t,i,e){if(t.length!==i.length)return!1;for(let n=0;n{class t{}return t.__NG_ELEMENT_ID__=cU,t})();const aU=_i,sU=class extends aU{constructor(i,e,n){super(),this._declarationLView=i,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(i,e){const n=this._declarationTContainer.tView,r=Km(this._declarationLView,n,i,16,null,n.declTNode,null,null,null,null,e||null);r[xu]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[ea];return null!==a&&(r[ea]=a.createEmbeddedView(n)),iv(n,r,i),new Bu(r)}};function cU(){return pp(Wn(),ge())}function pp(t,i){return 4&t.type?new sU(i,t,Wl(t,i)):null}let Fi=(()=>{class t{}return t.__NG_ELEMENT_ID__=lU,t})();function lU(){return LT(Wn(),ge())}const dU=Fi,PT=class extends dU{constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return Wl(this._hostTNode,this._hostLView)}get injector(){return new Pl(this._hostTNode,this._hostLView)}get parentInjector(){const i=lb(this._hostTNode,this._hostLView);if(qk(i)){const e=Am(i,this._hostLView),n=Mm(i);return new Pl(e[Ge].data[n+8],e)}return new Pl(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){const e=NT(this._lContainer);return null!==e&&e[i]||null}get length(){return this._lContainer.length-gr}createEmbeddedView(i,e,n){let r,o;"number"==typeof n?r=n:null!=n&&(r=n.index,o=n.injector);const a=i.createEmbeddedView(e||{},o);return this.insert(a,r),a}createComponent(i,e,n,r,o){const a=i&&!function Eu(t){return"function"==typeof t}(i);let s;if(a)s=e;else{const u=e||{};s=u.index,n=u.injector,r=u.projectableNodes,o=u.environmentInjector||u.ngModuleRef}const c=a?i:new Vu(gi(i)),l=n||this.parentInjector;if(!o&&null==c.ngModule){const h=(a?l:this.parentInjector).get(oa,null);h&&(o=h)}const d=c.create(l,r,void 0,o);return this.insert(d.hostView,s),d}insert(i,e){const n=i._lView,r=n[Ge];if(function U8(t){return No(t[Xi])}(n)){const d=this.indexOf(i);if(-1!==d)this.detach(d);else{const u=n[Xi],h=new PT(u,u[Kn],u[Xi]);h.detach(h.indexOf(i))}}const o=this._adjustIndex(e),a=this._lContainer;!function a5(t,i,e,n){const r=gr+n,o=e.length;n>0&&(e[r-1][Po]=i),n0)n.push(a[s/2]);else{const l=o[s+1],d=i[-c];for(let u=gr;u{class t{constructor(e){this.appInits=e,this.resolve=_p,this.reject=_p,this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],n=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:s,error:c})});e.push(a)}}Promise.all(e).then(()=>{n()}).catch(r=>{this.reject(r)}),0===e.length&&n(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(G(bp,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const dd=new ae("AppId",{providedIn:"root",factory:function s2(){return`${qv()}${qv()}${qv()}`}});function qv(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const c2=new ae("Platform Initializer"),xp=new ae("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Ri=new ae("AnimationModuleType");let NU=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const ha=new ae("LocaleId",{providedIn:"root",factory:()=>ht(ha,gt.Optional|gt.SkipSelf)||function LU(){return typeof $localize<"u"&&$localize.locale||ad}()});class VU{constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}}let l2=(()=>{class t{compileModuleSync(e){return new Av(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const n=this.compileModuleSync(e),o=Ga(jr(e).declarations).reduce((a,s)=>{const c=gi(s);return c&&a.push(new Vu(c)),a},[]);return new VU(n,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const zU=(()=>Promise.resolve(0))();function Xv(t){typeof Zone>"u"?zU.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Ue{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ke(!1),this.onMicrotaskEmpty=new ke(!1),this.onStable=new ke(!1),this.onError=new ke(!1),typeof Zone>"u")throw new ue(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)),i&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&e,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function $U(){let t=Vi.requestAnimationFrame,i=Vi.cancelAnimationFrame;if(typeof Zone<"u"&&t&&i){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const n=i[Zone.__symbol__("OriginalDelegate")];n&&(i=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:i}}().nativeRequestAnimationFrame,function GU(t){const i=()=>{!function WU(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Vi,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Yv(t),t.isCheckStableRunning=!0,Qv(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Yv(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,r,o,a,s)=>{try{return h2(t),e.invokeTask(r,o,a,s)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&i(),f2(t)}},onInvoke:(e,n,r,o,a,s,c)=>{try{return h2(t),e.invoke(r,o,a,s,c)}finally{t.shouldCoalesceRunChangeDetection&&i(),f2(t)}},onHasTask:(e,n,r,o)=>{e.hasTask(r,o),n===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,Yv(t),Qv(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,n,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(!Ue.isInAngularZone())throw new ue(909,!1)}static assertNotInAngularZone(){if(Ue.isInAngularZone())throw new ue(909,!1)}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,r){const o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+r,i,jU,_p,_p);try{return o.runTask(a,e,n)}finally{o.cancelTask(a)}}runGuarded(i,e,n){return this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}}const jU={};function Qv(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 Yv(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function h2(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function f2(t){t._nesting--,Qv(t)}class qU{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ke,this.onMicrotaskEmpty=new ke,this.onStable=new ke,this.onError=new ke}run(i,e,n){return i.apply(e,n)}runGuarded(i,e,n){return i.apply(e,n)}runOutsideAngular(i){return i()}runTask(i,e,n,r){return i.apply(e,n)}}const m2=new ae(""),yp=new ae("");let Jv,Kv=(()=>{class t{constructor(e,n,r){this._ngZone=e,this.registry=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Jv||(function XU(t){Jv=t}(r),r.addToWindow(n)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ue.assertNotInAngularZone(),Xv(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Xv(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>!n.updateCb||!n.updateCb(e)||(clearTimeout(n.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,n,r){let o=-1;n&&n>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==o),e(this._didWork,this.getPendingTasks())},n)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,n,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,n,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,n,r){return[]}}return t.\u0275fac=function(e){return new(e||t)(G(Ue),G(Zv),G(yp))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})(),Zv=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,n){this._applications.set(e,n)}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,n=!0){return Jv?.findTestabilityInTree(this,e,n)??null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const Xa=!1;let Ss=null;const p2=new ae("AllowMultipleToken"),ex=new ae("PlatformDestroyListeners"),g2=new ae("appBootstrapListener");class _2{constructor(i,e){this.name=i,this.token=e}}function v2(t,i,e=[]){const n=`Platform: ${i}`,r=new ae(n);return(o=[])=>{let a=tx();if(!a||a.injector.get(p2,!1)){const s=[...e,...o,{provide:r,useValue:!0}];t?t(s):function KU(t){if(Ss&&!Ss.get(p2,!1))throw new ue(400,!1);Ss=t;const i=t.get(y2);(function b2(t){const i=t.get(c2,null);i&&i.forEach(e=>e())})(t)}(function x2(t=[],i){return en.create({name:i,providers:[{provide:jb,useValue:"platform"},{provide:ex,useValue:new Set([()=>Ss=null])},...t]})}(s,n))}return function JU(t){const i=tx();if(!i)throw new ue(401,!1);return i}()}}function tx(){return Ss?.get(y2)??null}let y2=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,n){const r=function C2(t,i){let e;return e="noop"===t?new qU:("zone.js"===t?void 0:t)||new Ue(i),e}(n?.ngZone,function w2(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}(n)),o=[{provide:Ue,useValue:r}];return r.run(()=>{const a=en.create({providers:o,parent:this.injector,name:e.moduleType.name}),s=e.create(a),c=s.injector.get(Wa,null);if(!c)throw new ue(402,!1);return r.runOutsideAngular(()=>{const l=r.onError.subscribe({next:d=>{c.handleError(d)}});s.onDestroy(()=>{wp(this._modules,s),l.unsubscribe()})}),function k2(t,i,e){try{const n=e();return Uu(n)?n.catch(r=>{throw i.runOutsideAngular(()=>t.handleError(r)),r}):n}catch(n){throw i.runOutsideAngular(()=>t.handleError(n)),n}}(c,r,()=>{const l=s.injector.get(vp);return l.runInitializers(),l.donePromise.then(()=>(function QE(t){so(t,"Expected localeId to be defined"),"string"==typeof t&&(XE=t.toLowerCase().replace(/_/g,"-"))}(s.injector.get(ha,ad)||ad),this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,n=[]){const r=D2({},n);return function QU(t,i,e){const n=new Av(e);return Promise.resolve(n)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const n=e.injector.get(ud);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new ue(-403,!1);e.instance.ngDoBootstrap(n)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ue(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());const e=this._injector.get(ex,null);e&&(e.forEach(n=>n()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(G(en))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function D2(t,i){return Array.isArray(i)?i.reduce(D2,t):{...t,...i}}let ud=(()=>{class t{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(e,n,r){this._zone=e,this._injector=n,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new ni(s=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{s.next(this._stable),s.complete()})}),a=new ni(s=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{Ue.assertNotInAngularZone(),Xv(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,s.next(!0))})})});const l=this._zone.onUnstable.subscribe(()=>{Ue.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{s.next(!1)}))});return()=>{c.unsubscribe(),l.unsubscribe()}});this.isStable=Bi(o,a.pipe(ck()))}bootstrap(e,n){const r=e instanceof dS;if(!this._injector.get(vp).done){!r&&function Sl(t){const i=gi(t)||Yn(t)||Mr(t);return null!==i&&i.standalone}(e);throw new ue(405,Xa)}let a;a=r?e:this._injector.get(ks).resolveComponentFactory(e),this.componentTypes.push(a.componentType);const s=function YU(t){return t.isBoundToModule}(a)?void 0:this._injector.get(sd),l=a.create(en.NULL,[],n||a.selector,s),d=l.location.nativeElement,u=l.injector.get(m2,null);return u?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),wp(this.components,l),u?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new ue(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){const n=e;wp(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const n=this._injector.get(g2,[]);n.push(...this._bootstrapListeners),n.forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>wp(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new ue(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return t.\u0275fac=function(e){return new(e||t)(G(Ue),G(oa),G(Wa))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function wp(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}let Gt=(()=>{class t{}return t.__NG_ELEMENT_ID__=t9,t})();function t9(t){return function i9(t,i,e){if(wu(t)&&!e){const n=Ar(t.index,i);return new Bu(n,n)}return 47&t.type?new Bu(i[Zn],i):null}(Wn(),ge(),16==(16&t))}class A2{constructor(){}supports(i){return rp(i)}create(i){return new c9(i)}}const s9=(t,i)=>i;class c9{constructor(i){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=i||s9}forEachItem(i){let e;for(e=this._itHead;null!==e;e=e._next)i(e)}forEachOperation(i){let e=this._itHead,n=this._removalsHead,r=0,o=null;for(;e||n;){const a=!n||e&&e.currentIndex{a=this._trackByFn(r,s),null!==e&&Object.is(e.trackById,a)?(n&&(e=this._verifyReinsertion(e,s,a,r)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,a,r),n=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;null!==i;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;null!==i;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,r){let o;return null===i?o=this._itTail:(o=i._prev,this._remove(i)),null!==(i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,o,r)):null!==(i=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,o,r)):i=this._addAfter(new l9(e,n),o,r),i}_verifyReinsertion(i,e,n,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?i=this._reinsertAfter(o,i._prev,r):i.currentIndex!=r&&(i.currentIndex=r,this._addToMoves(i,r)),i}_truncate(i){for(;null!==i;){const e=i._next;this._addToRemovals(this._unlink(i)),i=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(i,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(i);const r=i._prevRemoved,o=i._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(i,e,n),this._addToMoves(i,n),i}_moveAfter(i,e,n){return this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i}_addAfter(i,e,n){return this._insertAfter(i,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=i:this._additionsTail._nextAdded=i,i}_insertAfter(i,e,n){const r=null===e?this._itHead:e._next;return i._next=r,i._prev=e,null===r?this._itTail=i:r._prev=i,null===e?this._itHead=i:e._next=i,null===this._linkedRecords&&(this._linkedRecords=new I2),this._linkedRecords.put(i),i.currentIndex=n,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){null!==this._linkedRecords&&this._linkedRecords.remove(i);const e=i._prev,n=i._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,i}_addToMoves(i,e){return i.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=i:this._movesTail._nextMoved=i),i}_addToRemovals(i){return null===this._unlinkedRecords&&(this._unlinkedRecords=new I2),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,e){return i.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=i:this._identityChangesTail._nextIdentityChange=i,i}}class l9{constructor(i,e){this.item=i,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 d9{constructor(){this._head=null,this._tail=null}add(i){null===this._head?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,i))return n;return null}remove(i){const e=i._prevDup,n=i._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class I2{constructor(){this.map=new Map}put(i){const e=i.trackById;let n=this.map.get(e);n||(n=new d9,this.map.set(e,n)),n.add(i)}get(i,e){const r=this.map.get(i);return r?r.get(i,e):null}remove(i){const e=i.trackById;return this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function F2(t,i,e){const n=t.previousIndex;if(null===n)return n;let r=0;return e&&n{if(e&&e.key===r)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,n);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;null!==n;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,e){if(i){const n=i._prev;return e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){const r=this._records.get(i);this._maybeAddToChanges(r,e);const o=r._prev,a=r._next;return o&&(o._next=a),a&&(a._prev=o),r._next=null,r._prev=null,r}const n=new h9(i);return this._records.set(i,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;null!==i;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;null!=i;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,e){Object.is(e,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=e,this._addToChanges(i))}_addToAdditions(i){null===this._additionsHead?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){null===this._changesHead?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,e){i instanceof Map?i.forEach(e):Object.keys(i).forEach(n=>e(i[n],n))}}class h9{constructor(i){this.key=i,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function O2(){return new Qa([new A2])}let Qa=(()=>{class t{constructor(e){this.factories=e}static create(e,n){if(null!=n){const r=n.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||O2()),deps:[[t,new bc,new na]]}}find(e){const n=this.factories.find(r=>r.supports(e));if(null!=n)return n;throw new ue(901,!1)}}return t.\u0275prov=ve({token:t,providedIn:"root",factory:O2}),t})();function P2(){return new Zu([new R2])}let Zu=(()=>{class t{constructor(e){this.factories=e}static create(e,n){if(n){const r=n.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||P2()),deps:[[t,new bc,new na]]}}find(e){const n=this.factories.find(r=>r.supports(e));if(n)return n;throw new ue(901,!1)}}return t.\u0275prov=ve({token:t,providedIn:"root",factory:P2}),t})();const p9=v2(null,"core",[]);let g9=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(G(ud))},t.\u0275mod=st({type:t}),t.\u0275inj=ot({}),t})();function hd(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}let ax=null;function Ya(){return ax}class v9{}const it=new ae("DocumentToken");let sx=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:function(){return function x9(){return G(N2)}()},providedIn:"platform"}),t})();const y9=new ae("Location Initialized");let N2=(()=>{class t extends sx{constructor(e){super(),this._doc=e,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Ya().getBaseHref(this._doc)}onPopState(e){const n=Ya().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){const n=Ya().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.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,n,r){L2()?this._history.pushState(e,n,r):this._location.hash=r}replaceState(e,n,r){L2()?this._history.replaceState(e,n,r):this._location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(G(it))},t.\u0275prov=ve({token:t,factory:function(){return function w9(){return new N2(G(it))}()},providedIn:"platform"}),t})();function L2(){return!!window.history.pushState}function cx(t,i){if(0==t.length)return i;if(0==i.length)return t;let e=0;return t.endsWith("/")&&e++,i.startsWith("/")&&e++,2==e?t+i.substring(1):1==e?t+i:t+"/"+i}function B2(t){const i=t.match(/#|\?|$/),e=i&&i.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Ka(t){return t&&"?"!==t[0]?"?"+t:t}let Ac=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:function(){return ht(H2)},providedIn:"root"}),t})();const V2=new ae("appBaseHref");let H2=(()=>{class t extends Ac{constructor(e,n){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??ht(it).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 cx(this._baseHref,e)}path(e=!1){const n=this._platformLocation.pathname+Ka(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${n}${r}`:n}pushState(e,n,r,o){const a=this.prepareExternalUrl(r+Ka(o));this._platformLocation.pushState(e,n,a)}replaceState(e,n,r,o){const a=this.prepareExternalUrl(r+Ka(o));this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(G(sx),G(V2,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),C9=(()=>{class t extends Ac{constructor(e,n){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=n&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let n=this._platformLocation.hash;return null==n&&(n="#"),n.length>0?n.substring(1):n}prepareExternalUrl(e){const n=cx(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,r,o){let a=this.prepareExternalUrl(r+Ka(o));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(e,n,a)}replaceState(e,n,r,o){let a=this.prepareExternalUrl(r+Ka(o));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(G(sx),G(V2,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})(),Ju=(()=>{class t{constructor(e){this._subject=new ke,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const n=this._locationStrategy.getBaseHref();this._basePath=function S9(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(B2(U2(n))),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,n=""){return this.path()==this.normalize(e+Ka(n))}normalize(e){return t.stripTrailingSlash(function D9(t,i){if(!t||!i.startsWith(t))return i;const e=i.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:i}(this._basePath,U2(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",r=null){this._locationStrategy.pushState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ka(n)),r)}replaceState(e,n="",r=null){this._locationStrategy.replaceState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ka(n)),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._urlChangeSubscription=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)})),()=>{const n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(r=>r(e,n))}subscribe(e,n,r){return this._subject.subscribe({next:e,error:n,complete:r})}}return t.normalizeQueryParams=Ka,t.joinWithSlash=cx,t.stripTrailingSlash=B2,t.\u0275fac=function(e){return new(e||t)(G(Ac))},t.\u0275prov=ve({token:t,factory:function(){return function k9(){return new Ju(G(Ac))}()},providedIn:"root"}),t})();function U2(t){return t.replace(/\/index.html$/,"")}var tn=(()=>((tn=tn||{})[tn.Format=0]="Format",tn[tn.Standalone=1]="Standalone",tn))(),qt=(()=>((qt=qt||{})[qt.Narrow=0]="Narrow",qt[qt.Abbreviated=1]="Abbreviated",qt[qt.Wide=2]="Wide",qt[qt.Short=3]="Short",qt))(),qi=(()=>((qi=qi||{})[qi.Short=0]="Short",qi[qi.Medium=1]="Medium",qi[qi.Long=2]="Long",qi[qi.Full=3]="Full",qi))(),ft=(()=>((ft=ft||{})[ft.Decimal=0]="Decimal",ft[ft.Group=1]="Group",ft[ft.List=2]="List",ft[ft.PercentSign=3]="PercentSign",ft[ft.PlusSign=4]="PlusSign",ft[ft.MinusSign=5]="MinusSign",ft[ft.Exponential=6]="Exponential",ft[ft.SuperscriptingExponent=7]="SuperscriptingExponent",ft[ft.PerMille=8]="PerMille",ft[ft.Infinity=9]="Infinity",ft[ft.NaN=10]="NaN",ft[ft.TimeSeparator=11]="TimeSeparator",ft[ft.CurrencyDecimal=12]="CurrencyDecimal",ft[ft.CurrencyGroup=13]="CurrencyGroup",ft))();function Dp(t,i){return po(vr(t)[He.DateFormat],i)}function Sp(t,i){return po(vr(t)[He.TimeFormat],i)}function Ep(t,i){return po(vr(t)[He.DateTimeFormat],i)}function mo(t,i){const e=vr(t),n=e[He.NumberSymbols][i];if(typeof n>"u"){if(i===ft.CurrencyDecimal)return e[He.NumberSymbols][ft.Decimal];if(i===ft.CurrencyGroup)return e[He.NumberSymbols][ft.Group]}return n}function $2(t){if(!t[He.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[He.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function po(t,i){for(let e=i;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined")}function dx(t){const[i,e]=t.split(":");return{hours:+i,minutes:+e}}const V9=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,eh={},H9=/((?:[^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 Mn=(()=>((Mn=Mn||{})[Mn.Short=0]="Short",Mn[Mn.ShortGMT=1]="ShortGMT",Mn[Mn.Long=2]="Long",Mn[Mn.Extended=3]="Extended",Mn))(),_t=(()=>((_t=_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))(),Ft=(()=>((Ft=Ft||{})[Ft.DayPeriods=0]="DayPeriods",Ft[Ft.Days=1]="Days",Ft[Ft.Months=2]="Months",Ft[Ft.Eras=3]="Eras",Ft))();function U9(t,i,e,n){let r=function Y9(t){if(G2(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,a=1]=t.split("-").map(s=>+s);return Tp(r,o-1,a)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(V9))return function K9(t){const i=new Date(0);let e=0,n=0;const r=t[8]?i.setUTCFullYear:i.setFullYear,o=t[8]?i.setUTCHours:i.setHours;t[9]&&(e=Number(t[9]+t[10]),n=Number(t[9]+t[11])),r.call(i,Number(t[1]),Number(t[2])-1,Number(t[3]));const a=Number(t[4]||0)-e,s=Number(t[5]||0)-n,c=Number(t[6]||0),l=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(i,a,s,c,l),i}(n)}const i=new Date(t);if(!G2(i))throw new Error(`Unable to convert "${t}" into a date`);return i}(t);i=Za(e,i)||i;let s,a=[];for(;i;){if(s=H9.exec(i),!s){a.push(i);break}{a=a.concat(s.slice(1));const d=a.pop();if(!d)break;i=d}}let c=r.getTimezoneOffset();n&&(c=W2(n,c),r=function Q9(t,i,e){const n=e?-1:1,r=t.getTimezoneOffset();return function X9(t,i){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+i),t}(t,n*(W2(i,r)-r))}(r,n,!0));let l="";return a.forEach(d=>{const u=function q9(t){if(hx[t])return hx[t];let i;switch(t){case"G":case"GG":case"GGG":i=Pi(Ft.Eras,qt.Abbreviated);break;case"GGGG":i=Pi(Ft.Eras,qt.Wide);break;case"GGGGG":i=Pi(Ft.Eras,qt.Narrow);break;case"y":i=un(_t.FullYear,1,0,!1,!0);break;case"yy":i=un(_t.FullYear,2,0,!0,!0);break;case"yyy":i=un(_t.FullYear,3,0,!1,!0);break;case"yyyy":i=un(_t.FullYear,4,0,!1,!0);break;case"Y":i=Fp(1);break;case"YY":i=Fp(2,!0);break;case"YYY":i=Fp(3);break;case"YYYY":i=Fp(4);break;case"M":case"L":i=un(_t.Month,1,1);break;case"MM":case"LL":i=un(_t.Month,2,1);break;case"MMM":i=Pi(Ft.Months,qt.Abbreviated);break;case"MMMM":i=Pi(Ft.Months,qt.Wide);break;case"MMMMM":i=Pi(Ft.Months,qt.Narrow);break;case"LLL":i=Pi(Ft.Months,qt.Abbreviated,tn.Standalone);break;case"LLLL":i=Pi(Ft.Months,qt.Wide,tn.Standalone);break;case"LLLLL":i=Pi(Ft.Months,qt.Narrow,tn.Standalone);break;case"w":i=ux(1);break;case"ww":i=ux(2);break;case"W":i=ux(1,!0);break;case"d":i=un(_t.Date,1);break;case"dd":i=un(_t.Date,2);break;case"c":case"cc":i=un(_t.Day,1);break;case"ccc":i=Pi(Ft.Days,qt.Abbreviated,tn.Standalone);break;case"cccc":i=Pi(Ft.Days,qt.Wide,tn.Standalone);break;case"ccccc":i=Pi(Ft.Days,qt.Narrow,tn.Standalone);break;case"cccccc":i=Pi(Ft.Days,qt.Short,tn.Standalone);break;case"E":case"EE":case"EEE":i=Pi(Ft.Days,qt.Abbreviated);break;case"EEEE":i=Pi(Ft.Days,qt.Wide);break;case"EEEEE":i=Pi(Ft.Days,qt.Narrow);break;case"EEEEEE":i=Pi(Ft.Days,qt.Short);break;case"a":case"aa":case"aaa":i=Pi(Ft.DayPeriods,qt.Abbreviated);break;case"aaaa":i=Pi(Ft.DayPeriods,qt.Wide);break;case"aaaaa":i=Pi(Ft.DayPeriods,qt.Narrow);break;case"b":case"bb":case"bbb":i=Pi(Ft.DayPeriods,qt.Abbreviated,tn.Standalone,!0);break;case"bbbb":i=Pi(Ft.DayPeriods,qt.Wide,tn.Standalone,!0);break;case"bbbbb":i=Pi(Ft.DayPeriods,qt.Narrow,tn.Standalone,!0);break;case"B":case"BB":case"BBB":i=Pi(Ft.DayPeriods,qt.Abbreviated,tn.Format,!0);break;case"BBBB":i=Pi(Ft.DayPeriods,qt.Wide,tn.Format,!0);break;case"BBBBB":i=Pi(Ft.DayPeriods,qt.Narrow,tn.Format,!0);break;case"h":i=un(_t.Hours,1,-12);break;case"hh":i=un(_t.Hours,2,-12);break;case"H":i=un(_t.Hours,1);break;case"HH":i=un(_t.Hours,2);break;case"m":i=un(_t.Minutes,1);break;case"mm":i=un(_t.Minutes,2);break;case"s":i=un(_t.Seconds,1);break;case"ss":i=un(_t.Seconds,2);break;case"S":i=un(_t.FractionalSeconds,1);break;case"SS":i=un(_t.FractionalSeconds,2);break;case"SSS":i=un(_t.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":i=Ap(Mn.Short);break;case"ZZZZZ":i=Ap(Mn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":i=Ap(Mn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":i=Ap(Mn.Long);break;default:return null}return hx[t]=i,i}(d);l+=u?u(r,e,c):"''"===d?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Tp(t,i,e){const n=new Date(0);return n.setFullYear(t,i,e),n.setHours(0,0,0),n}function Za(t,i){const e=function E9(t){return vr(t)[He.LocaleId]}(t);if(eh[e]=eh[e]||{},eh[e][i])return eh[e][i];let n="";switch(i){case"shortDate":n=Dp(t,qi.Short);break;case"mediumDate":n=Dp(t,qi.Medium);break;case"longDate":n=Dp(t,qi.Long);break;case"fullDate":n=Dp(t,qi.Full);break;case"shortTime":n=Sp(t,qi.Short);break;case"mediumTime":n=Sp(t,qi.Medium);break;case"longTime":n=Sp(t,qi.Long);break;case"fullTime":n=Sp(t,qi.Full);break;case"short":const r=Za(t,"shortTime"),o=Za(t,"shortDate");n=Mp(Ep(t,qi.Short),[r,o]);break;case"medium":const a=Za(t,"mediumTime"),s=Za(t,"mediumDate");n=Mp(Ep(t,qi.Medium),[a,s]);break;case"long":const c=Za(t,"longTime"),l=Za(t,"longDate");n=Mp(Ep(t,qi.Long),[c,l]);break;case"full":const d=Za(t,"fullTime"),u=Za(t,"fullDate");n=Mp(Ep(t,qi.Full),[d,u])}return n&&(eh[e][i]=n),n}function Mp(t,i){return i&&(t=t.replace(/\{([^}]+)}/g,function(e,n){return null!=i&&n in i?i[n]:e})),t}function zo(t,i,e="-",n,r){let o="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,o=e));let a=String(t);for(;a.length0||s>-e)&&(s+=e),t===_t.Hours)0===s&&-12===e&&(s=12);else if(t===_t.FractionalSeconds)return function z9(t,i){return zo(t,3).substring(0,i)}(s,i);const c=mo(a,ft.MinusSign);return zo(s,i,c,n,r)}}function Pi(t,i,e=tn.Format,n=!1){return function(r,o){return function j9(t,i,e,n,r,o){switch(e){case Ft.Months:return function A9(t,i,e){const n=vr(t),o=po([n[He.MonthsFormat],n[He.MonthsStandalone]],i);return po(o,e)}(i,r,n)[t.getMonth()];case Ft.Days:return function M9(t,i,e){const n=vr(t),o=po([n[He.DaysFormat],n[He.DaysStandalone]],i);return po(o,e)}(i,r,n)[t.getDay()];case Ft.DayPeriods:const a=t.getHours(),s=t.getMinutes();if(o){const l=function O9(t){const i=vr(t);return $2(i),(i[He.ExtraData][2]||[]).map(n=>"string"==typeof n?dx(n):[dx(n[0]),dx(n[1])])}(i),d=function P9(t,i,e){const n=vr(t);$2(n);const o=po([n[He.ExtraData][0],n[He.ExtraData][1]],i)||[];return po(o,e)||[]}(i,r,n),u=l.findIndex(h=>{if(Array.isArray(h)){const[f,m]=h,g=a>=f.hours&&s>=f.minutes,p=a0?Math.floor(r/60):Math.ceil(r/60);switch(t){case Mn.Short:return(r>=0?"+":"")+zo(a,2,o)+zo(Math.abs(r%60),2,o);case Mn.ShortGMT:return"GMT"+(r>=0?"+":"")+zo(a,1,o);case Mn.Long:return"GMT"+(r>=0?"+":"")+zo(a,2,o)+":"+zo(Math.abs(r%60),2,o);case Mn.Extended:return 0===n?"Z":(r>=0?"+":"")+zo(a,2,o)+":"+zo(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}const W9=0,Ip=4;function j2(t){return Tp(t.getFullYear(),t.getMonth(),t.getDate()+(Ip-t.getDay()))}function ux(t,i=!1){return function(e,n){let r;if(i){const o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,a=e.getDate();r=1+Math.floor((a+o)/7)}else{const o=j2(e),a=function G9(t){const i=Tp(t,W9,1).getDay();return Tp(t,0,1+(i<=Ip?Ip:Ip+7)-i)}(o.getFullYear()),s=o.getTime()-a.getTime();r=1+Math.round(s/6048e5)}return zo(r,t,mo(n,ft.MinusSign))}}function Fp(t,i=!1){return function(e,n){return zo(j2(e).getFullYear(),t,mo(n,ft.MinusSign),i)}}const hx={};function W2(t,i){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?i:e}function G2(t){return t instanceof Date&&!isNaN(t.valueOf())}function Y2(t,i){i=encodeURIComponent(i);for(const e of t.split(";")){const n=e.indexOf("="),[r,o]=-1==n?[e,""]:[e.slice(0,n),e.slice(n+1)];if(r.trim()===i)return decodeURIComponent(o)}return null}const bx=/\s+/,K2=[];let Es=(()=>{class t{constructor(e,n,r,o){this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=r,this._renderer=o,this.initialClasses=K2,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(bx):K2}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(bx):e}ngDoCheck(){for(const n of this.initialClasses)this._updateState(n,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const n of e)this._updateState(n,!0);else if(null!=e)for(const n of Object.keys(e))this._updateState(n,Boolean(e[n]));this._applyStateDiff()}_updateState(e,n){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==n&&(r.changed=!0,r.enabled=n),r.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const n=e[0],r=e[1];r.changed?(this._toggleClass(n,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),r.touched=!1}}_toggleClass(e,n){(e=e.trim()).length>0&&e.split(bx).forEach(r=>{n?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return t.\u0275fac=function(e){return new(e||t)(b(Qa),b(Zu),b(Ae),b(ja))},t.\u0275dir=Q({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),t})();class dz{constructor(i,e,n,r){this.$implicit=i,this.ngForOf=e,this.index=n,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 go=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,n,r){this._viewContainer=e,this._template=n,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 n=this._viewContainer;e.forEachOperation((r,o,a)=>{if(null==r.previousIndex)n.createEmbeddedView(this._template,new dz(r.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)n.remove(null===o?void 0:o);else if(null!==o){const s=n.get(o);n.move(s,a),eM(s,r)}});for(let r=0,o=n.length;r{eM(n.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,n){return!0}}return t.\u0275fac=function(e){return new(e||t)(b(Fi),b(_i),b(Qa))},t.\u0275dir=Q({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function eM(t,i){t.context.$implicit=i.item}let hn=(()=>{class t{constructor(e,n){this._viewContainer=e,this._context=new hz,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){tM("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){tM("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,n){return!0}}return t.\u0275fac=function(e){return new(e||t)(b(Fi),b(_i))},t.\u0275dir=Q({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class hz{constructor(){this.$implicit=null,this.ngIf=null}}function tM(t,i){if(i&&!i.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Oi(i)}'.`)}class vx{constructor(i,e){this._viewContainerRef=i,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(i){i&&!this._created?this.create():!i&&this._created&&this.destroy()}}let ih=(()=>{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 n=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const n of this._defaultViews)n.enforceState(e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),t})(),xx=(()=>{class t{constructor(e,n,r){this.ngSwitch=r,r._addCase(),this._view=new vx(e,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(b(Fi),b(_i),b(ih,9))},t.\u0275dir=Q({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),t})(),iM=(()=>{class t{constructor(e,n,r){r._addDefault(new vx(e,n))}}return t.\u0275fac=function(e){return new(e||t)(b(Fi),b(_i),b(ih,9))},t.\u0275dir=Q({type:t,selectors:[["","ngSwitchDefault",""]],standalone:!0}),t})(),Op=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:o,ngTemplateOutletInjector:a}=this;this._viewRef=n.createEmbeddedView(r,o,a?{injector:a}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(b(Fi))},t.\u0275dir=Q({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Ei]}),t})();function $o(t,i){return new ue(2100,!1)}class pz{createSubscription(i,e){return i.subscribe({next:e,error:n=>{throw n}})}dispose(i){i.unsubscribe()}}class gz{createSubscription(i,e){return i.then(e,n=>{throw n})}dispose(i){}}const _z=new gz,bz=new pz;let rM=(()=>{class t{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,n=>this._updateLatestValue(e,n))}_selectStrategy(e){if(Uu(e))return _z;if(rE(e))return bz;throw $o()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(b(Gt,16))},t.\u0275pipe=Tr({name:"async",type:t,pure:!1,standalone:!0}),t})(),oM=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw $o();return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Tr({name:"uppercase",type:t,pure:!0,standalone:!0}),t})();const Cz=new ae("DATE_PIPE_DEFAULT_TIMEZONE"),kz=new ae("DATE_PIPE_DEFAULT_OPTIONS");let aM=(()=>{class t{constructor(e,n,r){this.locale=e,this.defaultTimezone=n,this.defaultOptions=r}transform(e,n,r,o){if(null==e||""===e||e!=e)return null;try{return U9(e,n??this.defaultOptions?.dateFormat??"mediumDate",o||this.locale,r??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(a){throw $o()}}}return t.\u0275fac=function(e){return new(e||t)(b(ha,16),b(Cz,24),b(kz,24))},t.\u0275pipe=Tr({name:"date",type:t,pure:!0,standalone:!0}),t})(),ir=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({}),t})();const cM="browser";let Bz=(()=>{class t{}return t.\u0275prov=ve({token:t,providedIn:"root",factory:()=>new Vz(G(it),window)}),t})();class Vz{constructor(i,e){this.document=i,this.window=e,this.offset=()=>[0,0]}setOffset(i){this.offset=Array.isArray(i)?()=>i:i}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(i){this.supportsScrolling()&&this.window.scrollTo(i[0],i[1])}scrollToAnchor(i){if(!this.supportsScrolling())return;const e=function Hz(t,i){const e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=n.currentNode;for(;r;){const o=r.shadowRoot;if(o){const a=o.getElementById(i)||o.querySelector(`[name="${i}"]`);if(a)return a}r=n.nextNode()}}return null}(this.document,i);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(i){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=i)}}scrollToElement(i){const e=i.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const i=lM(this.window.history)||lM(Object.getPrototypeOf(this.window.history));return!(!i||!i.writable&&!i.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function lM(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class dM{}class f$ extends v9{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Dx extends f${static makeCurrent(){!function b9(t){ax||(ax=t)}(new Dx)}onAndCancel(i,e,n){return i.addEventListener(e,n,!1),()=>{i.removeEventListener(e,n,!1)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.parentNode&&i.parentNode.removeChild(i)}createElement(i,e){return(e=e||this.getDefaultDocument()).createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return"window"===e?window:"document"===e?i:"body"===e?i.body:null}getBaseHref(i){const e=function m$(){return rh=rh||document.querySelector("base"),rh?rh.getAttribute("href"):null}();return null==e?null:function p$(t){Lp=Lp||document.createElement("a"),Lp.setAttribute("href",t);const i=Lp.pathname;return"/"===i.charAt(0)?i:`/${i}`}(e)}resetBaseElement(){rh=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return Y2(document.cookie,i)}}let Lp,rh=null;const pM=new ae("TRANSITION_ID"),_$=[{provide:bp,useFactory:function g$(t,i,e){return()=>{e.get(vp).donePromise.then(()=>{const n=Ya(),r=i.querySelectorAll(`style[ng-transition="${t}"]`);for(let o=0;o{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();const Bp=new ae("EventManagerPlugins");let Vp=(()=>{class t{constructor(e,n){this._zone=n,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,n,r){return this._findPluginFor(n).addEventListener(e,n,r)}addGlobalEventListener(e,n,r){return this._findPluginFor(n).addGlobalEventListener(e,n,r)}getZone(){return this._zone}_findPluginFor(e){const n=this._eventNameToPlugin.get(e);if(n)return n;const r=this._plugins;for(let o=0;o{class t{constructor(){this.usageCount=new Map}addStyles(e){for(const n of e)1===this.changeUsageCount(n,1)&&this.onStyleAdded(n)}removeStyles(e){for(const n of e)0===this.changeUsageCount(n,-1)&&this.onStyleRemoved(n)}onStyleRemoved(e){}onStyleAdded(e){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(e,n){const r=this.usageCount;let o=r.get(e)??0;return o+=n,o>0?r.set(e,o):r.delete(e),o}ngOnDestroy(){for(const e of this.getAllStyles())this.onStyleRemoved(e);this.usageCount.clear()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})(),oh=(()=>{class t extends _M{constructor(e){super(),this.doc=e,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(e){for(const n of this.hostNodes)this.addStyleToHost(n,e)}onStyleRemoved(e){const n=this.styleRef;n.get(e)?.forEach(o=>o.remove()),n.delete(e)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const n of this.getAllStyles())this.addStyleToHost(e,n)}removeHost(e){this.hostNodes.delete(e)}addStyleToHost(e,n){const r=this.doc.createElement("style");r.textContent=n,e.appendChild(r);const o=this.styleRef.get(n);o?o.push(r):this.styleRef.set(n,[r])}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}}return t.\u0275fac=function(e){return new(e||t)(G(it))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();const Sx={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/"},Ex=/%COMP%/g,xM=new ae("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function yM(t,i){return i.flat(100).map(e=>e.replace(Ex,t))}function wM(t){return i=>{if("__ngUnwrap__"===i)return t;!1===t(i)&&(i.preventDefault(),i.returnValue=!1)}}let Hp=(()=>{class t{constructor(e,n,r,o){this.eventManager=e,this.sharedStylesHost=n,this.appId=r,this.removeStylesOnCompDestory=o,this.rendererByCompId=new Map,this.defaultRenderer=new Tx(e)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;const r=this.getOrCreateRenderer(e,n);return r instanceof DM?r.applyToHost(e):r instanceof Mx&&r.applyStyles(),r}getOrCreateRenderer(e,n){const r=this.rendererByCompId;let o=r.get(n.id);if(!o){const a=this.eventManager,s=this.sharedStylesHost,c=this.removeStylesOnCompDestory;switch(n.encapsulation){case Oo.Emulated:o=new DM(a,s,n,this.appId,c);break;case Oo.ShadowDom:return new S$(a,s,e,n);default:o=new Mx(a,s,n,c)}o.onDestroy=()=>r.delete(n.id),r.set(n.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(G(Vp),G(oh),G(dd),G(xM))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();class Tx{constructor(i){this.eventManager=i,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(i,e){return e?document.createElementNS(Sx[e]||e,i):document.createElement(i)}createComment(i){return document.createComment(i)}createText(i){return document.createTextNode(i)}appendChild(i,e){(kM(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(kM(i)?i.content:i).insertBefore(e,n)}removeChild(i,e){i&&i.removeChild(e)}selectRootElement(i,e){let n="string"==typeof i?document.querySelector(i):i;if(!n)throw new Error(`The selector "${i}" did not match any elements`);return e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,n,r){if(r){e=r+":"+e;const o=Sx[r];o?i.setAttributeNS(o,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){const r=Sx[n];r?i.removeAttributeNS(r,e):i.removeAttribute(`${n}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,r){r&(Ir.DashCase|Ir.Important)?i.style.setProperty(e,n,r&Ir.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&Ir.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i[e]=n}setValue(i,e){i.nodeValue=e}listen(i,e,n){return"string"==typeof i?this.eventManager.addGlobalEventListener(i,e,wM(n)):this.eventManager.addEventListener(i,e,wM(n))}}function kM(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class S$ extends Tx{constructor(i,e,n,r){super(i),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=yM(r.id,r.styles);for(const a of o){const s=document.createElement("style");s.textContent=a,this.shadowRoot.appendChild(s)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,e){return super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return super.removeChild(this.nodeOrShadowRoot(i),e)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Mx extends Tx{constructor(i,e,n,r,o=n.id){super(i),this.sharedStylesHost=e,this.removeStylesOnCompDestory=r,this.rendererUsageCount=0,this.styles=yM(o,n.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class DM extends Mx{constructor(i,e,n,r,o){const a=r+"-"+n.id;super(i,e,n,o,a),this.contentAttr=function C$(t){return"_ngcontent-%COMP%".replace(Ex,t)}(a),this.hostAttr=function k$(t){return"_nghost-%COMP%".replace(Ex,t)}(a)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,e){const n=super.createElement(i,e);return super.setAttribute(n,this.contentAttr,""),n}}let E$=(()=>{class t extends gM{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,r){return e.addEventListener(n,r,!1),()=>this.removeEventListener(e,n,r)}removeEventListener(e,n,r){return e.removeEventListener(n,r)}}return t.\u0275fac=function(e){return new(e||t)(G(it))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();const SM=["alt","control","meta","shift"],T$={"\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"},M$={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let A$=(()=>{class t extends gM{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,r){const o=t.parseEventName(n),a=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ya().onAndCancel(e,o.domEventName,a))}static parseEventName(e){const n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const o=t._normalizeKey(n.pop());let a="",s=n.indexOf("code");if(s>-1&&(n.splice(s,1),a="code."),SM.forEach(l=>{const d=n.indexOf(l);d>-1&&(n.splice(d,1),a+=l+".")}),a+=o,0!=n.length||0===o.length)return null;const c={};return c.domEventName=r,c.fullKey=a,c}static matchEventFullKeyCode(e,n){let r=T$[e.key]||e.key,o="";return n.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),SM.forEach(a=>{a!==r&&(0,M$[a])(e)&&(o+=a+".")}),o+=r,o===n)}static eventCallback(e,n,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>n(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(G(it))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();const O$=v2(p9,"browser",[{provide:xp,useValue:cM},{provide:c2,useValue:function I$(){Dx.makeCurrent()},multi:!0},{provide:it,useFactory:function R$(){return function v5(t){Pb=t}(document),document},deps:[]}]),MM=new ae(""),AM=[{provide:yp,useClass:class b${addToWindow(i){Vi.getAngularTestability=(n,r=!0)=>{const o=i.findTestabilityInTree(n,r);if(null==o)throw new Error("Could not find testability for element.");return o},Vi.getAllAngularTestabilities=()=>i.getAllTestabilities(),Vi.getAllAngularRootElements=()=>i.getAllRootElements(),Vi.frameworkStabilizers||(Vi.frameworkStabilizers=[]),Vi.frameworkStabilizers.push(n=>{const r=Vi.getAllAngularTestabilities();let o=r.length,a=!1;const s=function(c){a=a||c,o--,0==o&&n(a)};r.forEach(function(c){c.whenStable(s)})})}findTestabilityInTree(i,e,n){return null==e?null:i.getTestability(e)??(n?Ya().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null)}},deps:[]},{provide:m2,useClass:Kv,deps:[Ue,Zv,yp]},{provide:Kv,useClass:Kv,deps:[Ue,Zv,yp]}],IM=[{provide:jb,useValue:"root"},{provide:Wa,useFactory:function F$(){return new Wa},deps:[]},{provide:Bp,useClass:E$,multi:!0,deps:[it,Ue,xp]},{provide:Bp,useClass:A$,multi:!0,deps:[it]},{provide:Hp,useClass:Hp,deps:[Vp,oh,dd,xM]},{provide:Nu,useExisting:Hp},{provide:_M,useExisting:oh},{provide:oh,useClass:oh,deps:[it]},{provide:Vp,useClass:Vp,deps:[Bp,Ue]},{provide:dM,useClass:v$,deps:[]},[]];let FM=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:dd,useValue:e.appId},{provide:pM,useExisting:dd},_$]}}}return t.\u0275fac=function(e){return new(e||t)(G(MM,12))},t.\u0275mod=st({type:t}),t.\u0275inj=ot({providers:[...IM,...AM],imports:[ir,g9]}),t})(),RM=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return t.\u0275fac=function(e){return new(e||t)(G(it))},t.\u0275prov=ve({token:t,factory:function(e){let n=null;return n=e?new e:function N$(){return new RM(G(it))}(),n},providedIn:"root"}),t})();typeof window<"u"&&window;let Fx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:function(e){let n=null;return n=e?new(e||t):G(NM),n},providedIn:"root"}),t})(),NM=(()=>{class t extends Fx{constructor(e){super(),this._doc=e}sanitize(e,n){if(null==n)return null;switch(e){case di.NONE:return n;case di.HTML:return ra(n,"HTML")?Xr(n):ZD(this._doc,String(n)).toString();case di.STYLE:return ra(n,"Style")?Xr(n):n;case di.SCRIPT:if(ra(n,"Script"))return Xr(n);throw new Error("unsafe value used in a script context");case di.URL:return ra(n,"URL")?Xr(n):jm(String(n));case di.RESOURCE_URL:if(ra(n,"ResourceURL"))return Xr(n);throw new Error(`unsafe value used in a resource URL context (see ${dm})`);default:throw new Error(`Unexpected SecurityContext ${e} (see ${dm})`)}}bypassSecurityTrustHtml(e){return function S5(t){return new x5(t)}(e)}bypassSecurityTrustStyle(e){return function E5(t){return new y5(t)}(e)}bypassSecurityTrustScript(e){return function T5(t){return new w5(t)}(e)}bypassSecurityTrustUrl(e){return function M5(t){return new C5(t)}(e)}bypassSecurityTrustResourceUrl(e){return function A5(t){return new k5(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(G(it))},t.\u0275prov=ve({token:t,factory:function(e){let n=null;return n=e?new e:function U$(t){return new NM(t.get(it))}(G(en)),n},providedIn:"root"}),t})();function ze(...t){return Zi(t,mu(t))}class Bn extends Ce{constructor(i){super(),this._value=i}get value(){return this.getValue()}_subscribe(i){const e=super._subscribe(i);return!e.closed&&i.next(this._value),e}getValue(){const{hasError:i,thrownError:e,_value:n}=this;if(i)throw e;return this._throwIfClosed(),n}next(i){super.next(this._value=i)}}const ah=lc(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}),{isArray:z$}=Array,{getPrototypeOf:$$,prototype:j$,keys:W$}=Object;function LM(t){if(1===t.length){const i=t[0];if(z$(i))return{args:i,keys:null};if(function G$(t){return t&&"object"==typeof t&&$$(t)===j$}(i)){const e=W$(i);return{args:e.map(n=>i[n]),keys:e}}}return{args:t,keys:null}}const{isArray:q$}=Array;function Rx(t){return Ye(i=>function X$(t,i){return q$(i)?t(...i):t(i)}(t,i))}function BM(t,i){return t.reduce((e,n,r)=>(e[n]=i[r],e),{})}function Ic(...t){const i=mu(t),e=rk(t),{args:n,keys:r}=LM(t);if(0===n.length)return Zi([],i);const o=new ni(function Q$(t,i,e=ys){return n=>{VM(i,()=>{const{length:r}=t,o=new Array(r);let a=r,s=r;for(let c=0;c{const l=Zi(t[c],i);let d=!1;l.subscribe(Li(n,u=>{o[c]=u,d||(d=!0,s--),s||n.next(e(o.slice()))},()=>{--a||n.complete()}))},n)},n)}}(n,i,r?a=>BM(r,a):ys));return e?o.pipe(Rx(e)):o}function VM(t,i,e){t?Pa(e,t,i):i()}function sh(...t){return function Y$(){return kl(1)}()(Zi(t,mu(t)))}function fd(t){return new ni(i=>{Qn(t()).subscribe(i)})}function Fc(t,i){const e=Wt(t)?t:()=>t,n=r=>r.error(e());return new ni(i?r=>i.schedule(n,0,r):n)}function Ox(){return Wi((t,i)=>{let e=null;t._refCount++;const n=Li(i,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(),i.unsubscribe()});t.subscribe(n),n.closed||(e=t.connect())})}class Px extends ni{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,jC(i)&&(this.lift=i.lift)}_subscribe(i){return this.getSubject().subscribe(i)}getSubject(){const i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:i}=this;this._subject=this._connection=null,i?.unsubscribe()}connect(){let i=this._connection;if(!i){i=this._connection=new yt;const e=this.getSubject();i.add(this.source.subscribe(Li(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),i.closed&&(this._connection=null,i=yt.EMPTY)}return i}refCount(){return Ox()(this)}}function fn(t,i){return Wi((e,n)=>{let r=null,o=0,a=!1;const s=()=>a&&!r&&n.complete();e.subscribe(Li(n,c=>{r?.unsubscribe();let l=0;const d=o++;Qn(t(c,d)).subscribe(r=Li(n,u=>n.next(i?i(c,u,d,l++):u),()=>{r=null,s()}))},()=>{a=!0,s()}))})}function ui(t){return t<=0?()=>zr:Wi((i,e)=>{let n=0;i.subscribe(Li(e,r=>{++n<=t&&(e.next(r),t<=n&&e.complete())}))})}function Vn(...t){const i=mu(t);return Wi((e,n)=>{(i?sh(t,e,i):sh(t,e)).subscribe(n)})}function hi(t,i){return Wi((e,n)=>{let r=0;e.subscribe(Li(n,o=>t.call(i,o,r++)&&n.next(o)))})}function Up(t){return Wi((i,e)=>{let n=!1;i.subscribe(Li(e,r=>{n=!0,e.next(r)},()=>{n||e.next(t),e.complete()}))})}function HM(t=K$){return Wi((i,e)=>{let n=!1;i.subscribe(Li(e,r=>{n=!0,e.next(r)},()=>n?e.complete():e.error(t())))})}function K$(){return new ah}function jo(t,i){const e=arguments.length>=2;return n=>n.pipe(t?hi((r,o)=>t(r,o,n)):ys,ui(1),e?Up(i):HM(()=>new ah))}function Ms(t,i){return Wt(i)?Sn(t,i,1):Sn(t,1)}function Ui(t,i,e){const n=Wt(t)||i||e?{next:t,error:i,complete:e}:t;return n?Wi((r,o)=>{var a;null===(a=n.subscribe)||void 0===a||a.call(n);let s=!0;r.subscribe(Li(o,c=>{var l;null===(l=n.next)||void 0===l||l.call(n,c),o.next(c)},()=>{var c;s=!1,null===(c=n.complete)||void 0===c||c.call(n),o.complete()},c=>{var l;s=!1,null===(l=n.error)||void 0===l||l.call(n,c),o.error(c)},()=>{var c,l;s&&(null===(c=n.unsubscribe)||void 0===c||c.call(n)),null===(l=n.finalize)||void 0===l||l.call(n)}))}):ys}function mn(t){return Wi((i,e)=>{let o,n=null,r=!1;n=i.subscribe(Li(e,void 0,void 0,a=>{o=Qn(t(a,mn(t)(i))),n?(n.unsubscribe(),n=null,o.subscribe(e)):r=!0})),r&&(n.unsubscribe(),n=null,o.subscribe(e))})}function UM(t,i){return Wi(function Z$(t,i,e,n,r){return(o,a)=>{let s=e,c=i,l=0;o.subscribe(Li(a,d=>{const u=l++;c=s?t(c,d,u):(s=!0,d),n&&a.next(c)},r&&(()=>{s&&a.next(c),a.complete()})))}}(t,i,arguments.length>=2,!0))}function Nx(t){return t<=0?()=>zr:Wi((i,e)=>{let n=[];i.subscribe(Li(e,r=>{n.push(r),t{for(const r of n)e.next(r);e.complete()},void 0,()=>{n=null}))})}function zM(t,i){const e=arguments.length>=2;return n=>n.pipe(t?hi((r,o)=>t(r,o,n)):ys,Nx(1),e?Up(i):HM(()=>new ah))}function $M(t,i=!1){return Wi((e,n)=>{let r=0;e.subscribe(Li(n,o=>{const a=t(o,r++);(a||i)&&n.next(o),!a&&n.complete()}))})}function jM(t){return Ye(()=>t)}function zp(t){return Wi((i,e)=>{try{i.subscribe(e)}finally{e.add(t)}})}const St="primary",ch=Symbol("RouteTitle");class J${constructor(i){this.params=i||{}}has(i){return Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){const e=this.params[i];return Array.isArray(e)?e[0]:e}return null}getAll(i){if(this.has(i)){const e=this.params[i];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function md(t){return new J$(t)}function ej(t,i,e){const n=e.path.split("/");if(n.length>t.length||"full"===e.pathMatch&&(i.hasChildren()||n.lengthn[o]===r)}return t===i}function GM(t){return Array.prototype.concat.apply([],t)}function qM(t){return t.length>0?t[t.length-1]:null}function Gn(t,i){for(const e in t)t.hasOwnProperty(e)&&i(t[e],e)}function As(t){return gv(t)?t:Uu(t)?Zi(Promise.resolve(t)):ze(t)}const $p=!1,ij={exact:function YM(t,i,e){if(!Rc(t.segments,i.segments)||!jp(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(const n in i.children)if(!t.children[n]||!YM(t.children[n],i.children[n],e))return!1;return!0},subset:KM},XM={exact:function nj(t,i){return fa(t,i)},subset:function rj(t,i){return Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>WM(t[e],i[e]))},ignored:()=>!0};function QM(t,i,e){return ij[e.paths](t.root,i.root,e.matrixParams)&&XM[e.queryParams](t.queryParams,i.queryParams)&&!("exact"===e.fragment&&t.fragment!==i.fragment)}function KM(t,i,e){return ZM(t,i,i.segments,e)}function ZM(t,i,e,n){if(t.segments.length>e.length){const r=t.segments.slice(0,e.length);return!(!Rc(r,e)||i.hasChildren()||!jp(r,e,n))}if(t.segments.length===e.length){if(!Rc(t.segments,e)||!jp(t.segments,e,n))return!1;for(const r in i.children)if(!t.children[r]||!KM(t.children[r],i.children[r],n))return!1;return!0}{const r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!!(Rc(t.segments,r)&&jp(t.segments,r,n)&&t.children[St])&&ZM(t.children[St],i,o,n)}}function jp(t,i,e){return i.every((n,r)=>XM[e](t[r].parameters,n.parameters))}class Is{constructor(i=new Ut([],{}),e={},n=null){this.root=i,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=md(this.queryParams)),this._queryParamMap}toString(){return sj.serialize(this)}}class Ut{constructor(i,e){this.segments=i,this.children=e,this.parent=null,Gn(e,(n,r)=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Wp(this)}}class lh{constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=md(this.parameters)),this._parameterMap}toString(){return tA(this)}}function Rc(t,i){return t.length===i.length&&t.every((e,n)=>e.path===i[n].path)}let dh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:function(){return new Lx},providedIn:"root"}),t})();class Lx{parse(i){const e=new gj(i);return new Is(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){const e=`/${uh(i.root,!0)}`,n=function dj(t){const i=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(r=>`${Gp(e)}=${Gp(r)}`).join("&"):`${Gp(e)}=${Gp(n)}`}).filter(e=>!!e);return i.length?`?${i.join("&")}`:""}(i.queryParams);return`${e}${n}${"string"==typeof i.fragment?`#${function cj(t){return encodeURI(t)}(i.fragment)}`:""}`}}const sj=new Lx;function Wp(t){return t.segments.map(i=>tA(i)).join("/")}function uh(t,i){if(!t.hasChildren())return Wp(t);if(i){const e=t.children[St]?uh(t.children[St],!1):"",n=[];return Gn(t.children,(r,o)=>{o!==St&&n.push(`${o}:${uh(r,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function aj(t,i){let e=[];return Gn(t.children,(n,r)=>{r===St&&(e=e.concat(i(n,r)))}),Gn(t.children,(n,r)=>{r!==St&&(e=e.concat(i(n,r)))}),e}(t,(n,r)=>r===St?[uh(t.children[St],!1)]:[`${r}:${uh(n,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[St]?`${Wp(t)}/${e[0]}`:`${Wp(t)}/(${e.join("//")})`}}function JM(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Gp(t){return JM(t).replace(/%3B/gi,";")}function Bx(t){return JM(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function qp(t){return decodeURIComponent(t)}function eA(t){return qp(t.replace(/\+/g,"%20"))}function tA(t){return`${Bx(t.path)}${function lj(t){return Object.keys(t).map(i=>`;${Bx(i)}=${Bx(t[i])}`).join("")}(t.parameters)}`}const uj=/^[^\/()?;=#]+/;function Xp(t){const i=t.match(uj);return i?i[0]:""}const hj=/^[^=?&#]+/,mj=/^[^&#]+/;class gj{constructor(i){this.url=i,this.remaining=i}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ut([],{}):new Ut([],this.parseChildren())}parseQueryParams(){const i={};if(this.consumeOptional("?"))do{this.parseQueryParam(i)}while(this.consumeOptional("&"));return i}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const i=[];for(this.peekStartsWith("(")||i.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),i.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(i.length>0||Object.keys(e).length>0)&&(n[St]=new Ut(i,e)),n}parseSegment(){const i=Xp(this.remaining);if(""===i&&this.peekStartsWith(";"))throw new ue(4009,$p);return this.capture(i),new lh(qp(i),this.parseMatrixParams())}parseMatrixParams(){const i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){const e=Xp(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const r=Xp(this.remaining);r&&(n=r,this.capture(n))}i[qp(e)]=qp(n)}parseQueryParam(i){const e=function fj(t){const i=t.match(hj);return i?i[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const a=function pj(t){const i=t.match(mj);return i?i[0]:""}(this.remaining);a&&(n=a,this.capture(n))}const r=eA(e),o=eA(n);if(i.hasOwnProperty(r)){let a=i[r];Array.isArray(a)||(a=[a],i[r]=a),a.push(o)}else i[r]=o}parseParens(i){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Xp(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new ue(4010,$p);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):i&&(o=St);const a=this.parseChildren();e[o]=1===Object.keys(a).length?a[St]:new Ut([],a),this.consumeOptional("//")}return e}peekStartsWith(i){return this.remaining.startsWith(i)}consumeOptional(i){return!!this.peekStartsWith(i)&&(this.remaining=this.remaining.substring(i.length),!0)}capture(i){if(!this.consumeOptional(i))throw new ue(4011,$p)}}function Vx(t){return t.segments.length>0?new Ut([],{[St]:t}):t}function Qp(t){const i={};for(const n of Object.keys(t.children)){const o=Qp(t.children[n]);(o.segments.length>0||o.hasChildren())&&(i[n]=o)}return function _j(t){if(1===t.numberOfChildren&&t.children[St]){const i=t.children[St];return new Ut(t.segments.concat(i.segments),i.children)}return t}(new Ut(t.segments,i))}function Oc(t){return t instanceof Is}const Hx=!1;function bj(t,i,e,n,r){if(0===e.length)return pd(i.root,i.root,i.root,n,r);const o=function aA(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new oA(!0,0,t);let i=0,e=!1;const n=t.reduce((r,o,a)=>{if("object"==typeof o&&null!=o){if(o.outlets){const s={};return Gn(o.outlets,(c,l)=>{s[l]="string"==typeof c?c.split("/"):c}),[...r,{outlets:s}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===a?(o.split("/").forEach((s,c)=>{0==c&&"."===s||(0==c&&""===s?e=!0:".."===s?i++:""!=s&&r.push(s))}),r):[...r,o]},[]);return new oA(e,i,n)}(e);return o.toRoot()?pd(i.root,i.root,new Ut([],{}),n,r):function a(c){const l=function xj(t,i,e,n){if(t.isAbsolute)return new gd(i.root,!0,0);if(-1===n)return new gd(e,e===i.root,0);return function sA(t,i,e){let n=t,r=i,o=e;for(;o>r;){if(o-=r,n=n.parent,!n)throw new ue(4005,Hx&&"Invalid number of '../'");r=n.segments.length}return new gd(n,!1,r-o)}(e,n+(hh(t.commands[0])?0:1),t.numberOfDoubleDots)}(o,i,t.snapshot?._urlSegment,c),d=l.processChildren?_d(l.segmentGroup,l.index,o.commands):Ux(l.segmentGroup,l.index,o.commands);return pd(i.root,l.segmentGroup,d,n,r)}(t.snapshot?._lastPathIndex)}function hh(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function fh(t){return"object"==typeof t&&null!=t&&t.outlets}function pd(t,i,e,n,r){let a,o={};n&&Gn(n,(c,l)=>{o[l]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`}),a=t===i?e:rA(t,i,e);const s=Vx(Qp(a));return new Is(s,o,r)}function rA(t,i,e){const n={};return Gn(t.children,(r,o)=>{n[o]=r===i?e:rA(r,i,e)}),new Ut(t.segments,n)}class oA{constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&hh(n[0]))throw new ue(4003,Hx&&"Root segment cannot have matrix parameters");const r=n.find(fh);if(r&&r!==qM(n))throw new ue(4004,Hx&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class gd{constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}}function Ux(t,i,e){if(t||(t=new Ut([],{})),0===t.segments.length&&t.hasChildren())return _d(t,i,e);const n=function wj(t,i,e){let n=0,r=i;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const a=t.segments[r],s=e[n];if(fh(s))break;const c=`${s}`,l=n0&&void 0===c)break;if(c&&l&&"object"==typeof l&&void 0===l.outlets){if(!lA(c,l,a))return o;n+=2}else{if(!lA(c,{},a))return o;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}(t,i,e),r=e.slice(n.commandIndex);if(n.match&&n.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[a]=Ux(t.children[a],i,o))}),Gn(t.children,(o,a)=>{void 0===n[a]&&(r[a]=o)}),new Ut(t.segments,r)}}function zx(t,i,e){const n=t.segments.slice(0,i);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(i[n]=zx(new Ut([],{}),0,e))}),i}function cA(t){const i={};return Gn(t,(e,n)=>i[n]=`${e}`),i}function lA(t,i,e){return t==e.path&&fa(i,e.parameters)}const mh="imperative";class ma{constructor(i,e){this.id=i,this.url=e}}class $x extends ma{constructor(i,e,n="imperative",r=null){super(i,e),this.type=0,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Fs extends ma{constructor(i,e,n){super(i,e),this.urlAfterRedirects=n,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Yp extends ma{constructor(i,e,n,r){super(i,e),this.reason=n,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Kp extends ma{constructor(i,e,n,r){super(i,e),this.reason=n,this.code=r,this.type=16}}class jx extends ma{constructor(i,e,n,r){super(i,e),this.error=n,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class kj extends ma{constructor(i,e,n,r){super(i,e),this.urlAfterRedirects=n,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Dj extends ma{constructor(i,e,n,r){super(i,e),this.urlAfterRedirects=n,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Sj extends ma{constructor(i,e,n,r,o){super(i,e),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ej extends ma{constructor(i,e,n,r){super(i,e),this.urlAfterRedirects=n,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Tj extends ma{constructor(i,e,n,r){super(i,e),this.urlAfterRedirects=n,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Mj{constructor(i){this.route=i,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Aj{constructor(i){this.route=i,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Ij{constructor(i){this.snapshot=i,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Fj{constructor(i){this.snapshot=i,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Rj{constructor(i){this.snapshot=i,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Oj{constructor(i){this.snapshot=i,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class dA{constructor(i,e,n){this.routerEvent=i,this.position=e,this.anchor=n,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let Lj=(()=>{class t{createUrlTree(e,n,r,o,a,s){return bj(e||n.root,r,o,a,s)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})(),Vj=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:function(i){return Lj.\u0275fac(i)},providedIn:"root"}),t})();class uA{constructor(i){this._root=i}get root(){return this._root.value}parent(i){const e=this.pathFromRoot(i);return e.length>1?e[e.length-2]:null}children(i){const e=Wx(i,this._root);return e?e.children.map(n=>n.value):[]}firstChild(i){const e=Wx(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){const e=Gx(i,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==i)}pathFromRoot(i){return Gx(i,this._root).map(e=>e.value)}}function Wx(t,i){if(t===i.value)return i;for(const e of i.children){const n=Wx(t,e);if(n)return n}return null}function Gx(t,i){if(t===i.value)return[i];for(const e of i.children){const n=Gx(t,e);if(n.length)return n.unshift(i),n}return[]}class Ja{constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}}function bd(t){const i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}class hA extends uA{constructor(i,e){super(i),this.snapshot=e,qx(this,i)}toString(){return this.snapshot.toString()}}function fA(t,i){const e=function Hj(t,i){const a=new Zp([],{},{},"",{},St,i,null,t.root,-1,{});return new pA("",new Ja(a,[]))}(t,i),n=new Bn([new lh("",{})]),r=new Bn({}),o=new Bn({}),a=new Bn({}),s=new Bn(""),c=new vd(n,r,a,s,o,St,i,e.root);return c.snapshot=e.root,new hA(new Ja(c,[]),e)}class vd{constructor(i,e,n,r,o,a,s,c){this.url=i,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.title=this.data?.pipe(Ye(l=>l[ch]))??ze(void 0),this._futureSnapshot=c}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Ye(i=>md(i)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Ye(i=>md(i)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function mA(t,i="emptyOnly"){const e=t.pathFromRoot;let n=0;if("always"!==i)for(n=e.length-1;n>=1;){const r=e[n],o=e[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(o.component)break;n--}}return function Uj(t){return t.reduce((i,e)=>({params:{...i.params,...e.params},data:{...i.data,...e.data},resolve:{...e.data,...i.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(n))}class Zp{get title(){return this.data?.[ch]}constructor(i,e,n,r,o,a,s,c,l,d,u){this.url=i,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=c,this._urlSegment=l,this._lastPathIndex=d,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=md(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=md(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class pA extends uA{constructor(i,e){super(e),this.url=i,qx(this,e)}toString(){return gA(this._root)}}function qx(t,i){i.value._routerState=t,i.children.forEach(e=>qx(t,e))}function gA(t){const i=t.children.length>0?` { ${t.children.map(gA).join(", ")} } `:"";return`${t.value}${i}`}function Xx(t){if(t.snapshot){const i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,fa(i.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),i.fragment!==e.fragment&&t.fragment.next(e.fragment),fa(i.params,e.params)||t.params.next(e.params),function tj(t,i){if(t.length!==i.length)return!1;for(let e=0;efa(e.parameters,i[n].parameters))}(t.url,i.url);return e&&!(!t.parent!=!i.parent)&&(!t.parent||Qx(t.parent,i.parent))}function ph(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){const n=e.value;n._futureSnapshot=i.value;const r=function $j(t,i,e){return i.children.map(n=>{for(const r of e.children)if(t.shouldReuseRoute(n.value,r.value.snapshot))return ph(t,n,r);return ph(t,n)})}(t,i,e);return new Ja(n,r)}{if(t.shouldAttach(i.value)){const o=t.retrieve(i.value);if(null!==o){const a=o.route;return a.value._futureSnapshot=i.value,a.children=i.children.map(s=>ph(t,s)),a}}const n=function jj(t){return new vd(new Bn(t.url),new Bn(t.params),new Bn(t.queryParams),new Bn(t.fragment),new Bn(t.data),t.outlet,t.component,t)}(i.value),r=i.children.map(o=>ph(t,o));return new Ja(n,r)}}const Yx="ngNavigationCancelingError";function _A(t,i){const{redirectTo:e,navigationBehaviorOptions:n}=Oc(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,r=bA(!1,0,i);return r.url=e,r.navigationBehaviorOptions=n,r}function bA(t,i,e){const n=new Error("NavigationCancelingError: "+(t||""));return n[Yx]=!0,n.cancellationCode=i,e&&(n.url=e),n}function vA(t){return xA(t)&&Oc(t.url)}function xA(t){return t&&t[Yx]}class Wj{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new gh,this.attachRef=null}}let gh=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,n){const r=this.getOrCreateContext(e);r.outlet=n,this.contexts.set(e,r)}onChildOutletDestroyed(e){const n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new Wj,this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Jp=!1;let Kx=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=St,this.activateEvents=new ke,this.deactivateEvents=new ke,this.attachEvents=new ke,this.detachEvents=new ke,this.parentContexts=ht(gh),this.location=ht(Fi),this.changeDetector=ht(Gt),this.environmentInjector=ht(oa)}ngOnChanges(e){if(e.name){const{firstChange:n,previousValue:r}=e.name;if(n)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new ue(4012,Jp);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ue(4012,Jp);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ue(4012,Jp);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new ue(4013,Jp);this._activatedRoute=e;const r=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,c=new Gj(e,s,r.injector);if(n&&function qj(t){return!!t.resolveComponentFactory}(n)){const l=n.resolveComponentFactory(a);this.activated=r.createComponent(l,r.length,c)}else this.activated=r.createComponent(a,{index:r.length,injector:c,environmentInjector:n??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Ei]}),t})();class Gj{constructor(i,e,n){this.route=i,this.childContexts=e,this.parent=n}get(i,e){return i===vd?this.route:i===gh?this.childContexts:this.parent.get(i,e)}}let Zx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=je({type:t,selectors:[["ng-component"]],standalone:!0,features:[Iv],decls:1,vars:0,template:function(e,n){1&e&&Ee(0,"router-outlet")},dependencies:[Kx],encapsulation:2}),t})();function yA(t,i){return t.providers&&!t._injector&&(t._injector=fp(t.providers,i,`Route: ${t.path}`)),t._injector??i}function ey(t){const i=t.children&&t.children.map(ey),e=i?{...t,children:i}:{...t};return!e.component&&!e.loadComponent&&(i||e.loadChildren)&&e.outlet&&e.outlet!==St&&(e.component=Zx),e}function _o(t){return t.outlet||St}function wA(t,i){const e=t.filter(n=>_o(n)===i);return e.push(...t.filter(n=>_o(n)!==i)),e}function _h(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let i=t.parent;i;i=i.parent){const e=i.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class Zj{constructor(i,e,n,r){this.routeReuseStrategy=i,this.futureState=e,this.currState=n,this.forwardEvent=r}activate(i){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,i),Xx(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){const r=bd(e);i.children.forEach(o=>{const a=o.value.outlet;this.deactivateRoutes(o,r[a],n),delete r[a]}),Gn(r,(o,a)=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(i,e,n){const r=i.value,o=e?e.value:null;if(r===o)if(r.component){const a=n.getContext(r.outlet);a&&this.deactivateChildRoutes(i,e,a.children)}else this.deactivateChildRoutes(i,e,n);else o&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){const n=e.getContext(i.value.outlet),r=n&&i.value.component?n.children:e,o=bd(i);for(const a of Object.keys(o))this.deactivateRouteAndItsChildren(o[a],r);if(n&&n.outlet){const a=n.outlet.detach(),s=n.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:a,route:i,contexts:s})}}deactivateRouteAndOutlet(i,e){const n=e.getContext(i.value.outlet),r=n&&i.value.component?n.children:e,o=bd(i);for(const a of Object.keys(o))this.deactivateRouteAndItsChildren(o[a],r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(i,e,n){const r=bd(e);i.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],n),this.forwardEvent(new Oj(o.value.snapshot))}),i.children.length&&this.forwardEvent(new Fj(i.value.snapshot))}activateRoutes(i,e,n){const r=i.value,o=e?e.value:null;if(Xx(r),r===o)if(r.component){const a=n.getOrCreateContext(r.outlet);this.activateChildRoutes(i,e,a.children)}else this.activateChildRoutes(i,e,n);else if(r.component){const a=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),Xx(s.route.value),this.activateChildRoutes(i,null,a.children)}else{const s=_h(r.snapshot),c=s?.get(ks)??null;a.attachRef=null,a.route=r,a.resolver=c,a.injector=s,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(i,null,a.children)}}else this.activateChildRoutes(i,null,n)}}class CA{constructor(i){this.path=i,this.route=this.path[this.path.length-1]}}class eg{constructor(i,e){this.component=i,this.route=e}}function Jj(t,i,e){const n=t._root;return bh(n,i?i._root:null,e,[n.value])}function xd(t,i){const e=Symbol(),n=i.get(t,e);return n===e?"function"!=typeof t||function m8(t){return null!==fm(t)}(t)?i.get(t):t:n}function bh(t,i,e,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=bd(i);return t.children.forEach(a=>{(function tW(t,i,e,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,a=i?i.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const c=function iW(t,i,e){if("function"==typeof e)return e(t,i);switch(e){case"pathParamsChange":return!Rc(t.url,i.url);case"pathParamsOrQueryParamsChange":return!Rc(t.url,i.url)||!fa(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Qx(t,i)||!fa(t.queryParams,i.queryParams);default:return!Qx(t,i)}}(a,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new CA(n)):(o.data=a.data,o._resolvedData=a._resolvedData),bh(t,i,o.component?s?s.children:null:e,n,r),c&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new eg(s.outlet.component,a))}else a&&vh(i,s,r),r.canActivateChecks.push(new CA(n)),bh(t,null,o.component?s?s.children:null:e,n,r)})(a,o[a.value.outlet],e,n.concat([a.value]),r),delete o[a.value.outlet]}),Gn(o,(a,s)=>vh(a,e.getContext(s),r)),r}function vh(t,i,e){const n=bd(t),r=t.value;Gn(n,(o,a)=>{vh(o,r.component?i?i.children.getContext(a):null:i,e)}),e.canDeactivateChecks.push(new eg(r.component&&i&&i.outlet&&i.outlet.isActivated?i.outlet.component:null,r))}function xh(t){return"function"==typeof t}function ty(t){return t instanceof ah||"EmptyError"===t?.name}const tg=Symbol("INITIAL_VALUE");function yd(){return fn(t=>Ic(t.map(i=>i.pipe(ui(1),Vn(tg)))).pipe(Ye(i=>{for(const e of i)if(!0!==e){if(e===tg)return tg;if(!1===e||e instanceof Is)return e}return!0}),hi(i=>i!==tg),ui(1)))}function kA(t){return function N3(...t){return UC(t)}(Ui(i=>{if(Oc(i))throw _A(0,i)}),Ye(i=>!0===i))}const iy={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function DA(t,i,e,n,r){const o=ny(t,i,e);return o.matched?function vW(t,i,e,n){const r=i.canMatch;return r&&0!==r.length?ze(r.map(a=>{const s=xd(a,t);return As(function cW(t){return t&&xh(t.canMatch)}(s)?s.canMatch(i,e):t.runInContext(()=>s(i,e)))})).pipe(yd(),kA()):ze(!0)}(n=yA(i,n),i,e).pipe(Ye(a=>!0===a?o:{...iy})):ze(o)}function ny(t,i,e){if(""===i.path)return"full"===i.pathMatch&&(t.hasChildren()||e.length>0)?{...iy}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(i.matcher||ej)(e,t,i);if(!r)return{...iy};const o={};Gn(r.posParams,(s,c)=>{o[c]=s.path});const a=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:a,positionalParamSegments:r.posParams??{}}}function ig(t,i,e,n){if(e.length>0&&function wW(t,i,e){return e.some(n=>ng(t,i,n)&&_o(n)!==St)}(t,e,n)){const o=new Ut(i,function yW(t,i,e,n){const r={};r[St]=n,n._sourceSegment=t,n._segmentIndexShift=i.length;for(const o of e)if(""===o.path&&_o(o)!==St){const a=new Ut([],{});a._sourceSegment=t,a._segmentIndexShift=i.length,r[_o(o)]=a}return r}(t,i,n,new Ut(e,t.children)));return o._sourceSegment=t,o._segmentIndexShift=i.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function CW(t,i,e){return e.some(n=>ng(t,i,n))}(t,e,n)){const o=new Ut(t.segments,function xW(t,i,e,n,r){const o={};for(const a of n)if(ng(t,e,a)&&!r[_o(a)]){const s=new Ut([],{});s._sourceSegment=t,s._segmentIndexShift=i.length,o[_o(a)]=s}return{...r,...o}}(t,i,e,n,t.children));return o._sourceSegment=t,o._segmentIndexShift=i.length,{segmentGroup:o,slicedSegments:e}}const r=new Ut(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=i.length,{segmentGroup:r,slicedSegments:e}}function ng(t,i,e){return(!(t.hasChildren()||i.length>0)||"full"!==e.pathMatch)&&""===e.path}function SA(t,i,e,n){return!!(_o(t)===n||n!==St&&ng(i,e,t))&&("**"===t.path||ny(i,t,e).matched)}function EA(t,i,e){return 0===i.length&&!t.children[e]}const rg=!1;class og{constructor(i){this.segmentGroup=i||null}}class TA{constructor(i){this.urlTree=i}}function yh(t){return Fc(new og(t))}function MA(t){return Fc(new TA(t))}class EW{constructor(i,e,n,r,o){this.injector=i,this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const i=ig(this.urlTree.root,[],[],this.config).segmentGroup,e=new Ut(i.segments,i.children);return this.expandSegmentGroup(this.injector,this.config,e,St).pipe(Ye(o=>this.createUrlTree(Qp(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(mn(o=>{if(o instanceof TA)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof og?this.noMatchError(o):o}))}match(i){return this.expandSegmentGroup(this.injector,this.config,i.root,St).pipe(Ye(r=>this.createUrlTree(Qp(r),i.queryParams,i.fragment))).pipe(mn(r=>{throw r instanceof og?this.noMatchError(r):r}))}noMatchError(i){return new ue(4002,rg)}createUrlTree(i,e,n){const r=Vx(i);return new Is(r,e,n)}expandSegmentGroup(i,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(i,e,n).pipe(Ye(o=>new Ut([],o))):this.expandSegment(i,n,e,n.segments,r,!0)}expandChildren(i,e,n){const r=[];for(const o of Object.keys(n.children))"primary"===o?r.unshift(o):r.push(o);return Zi(r).pipe(Ms(o=>{const a=n.children[o],s=wA(e,o);return this.expandSegmentGroup(i,s,a,o).pipe(Ye(c=>({segment:c,outlet:o})))}),UM((o,a)=>(o[a.outlet]=a.segment,o),{}),zM())}expandSegment(i,e,n,r,o,a){return Zi(n).pipe(Ms(s=>this.expandSegmentAgainstRoute(i,e,n,s,r,o,a).pipe(mn(l=>{if(l instanceof og)return ze(null);throw l}))),jo(s=>!!s),mn((s,c)=>{if(ty(s))return EA(e,r,o)?ze(new Ut([],{})):yh(e);throw s}))}expandSegmentAgainstRoute(i,e,n,r,o,a,s){return SA(r,e,o,a)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(i,e,r,o,a):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(i,e,n,r,o,a):yh(e):yh(e)}expandSegmentAgainstRouteUsingRedirect(i,e,n,r,o,a){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(i,n,r,a):this.expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,r,o,a)}expandWildCardWithParamsAgainstRouteUsingRedirect(i,e,n,r){const o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?MA(o):this.lineralizeSegments(n,o).pipe(Sn(a=>{const s=new Ut(a,{});return this.expandSegment(i,s,e,a,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,r,o,a){const{matched:s,consumedSegments:c,remainingSegments:l,positionalParamSegments:d}=ny(e,r,o);if(!s)return yh(e);const u=this.applyRedirectCommands(c,r.redirectTo,d);return r.redirectTo.startsWith("/")?MA(u):this.lineralizeSegments(r,u).pipe(Sn(h=>this.expandSegment(i,e,n,h.concat(l),a,!1)))}matchSegmentAgainstRoute(i,e,n,r,o){return"**"===n.path?(i=yA(n,i),n.loadChildren?(n._loadedRoutes?ze({routes:n._loadedRoutes,injector:n._loadedInjector}):this.configLoader.loadChildren(i,n)).pipe(Ye(s=>(n._loadedRoutes=s.routes,n._loadedInjector=s.injector,new Ut(r,{})))):ze(new Ut(r,{}))):DA(e,n,r,i).pipe(fn(({matched:a,consumedSegments:s,remainingSegments:c})=>a?this.getChildConfig(i=n._injector??i,n,r).pipe(Sn(d=>{const u=d.injector??i,h=d.routes,{segmentGroup:f,slicedSegments:m}=ig(e,s,c,h),g=new Ut(f.segments,f.children);if(0===m.length&&g.hasChildren())return this.expandChildren(u,h,g).pipe(Ye(x=>new Ut(s,x)));if(0===h.length&&0===m.length)return ze(new Ut(s,{}));const p=_o(n)===o;return this.expandSegment(u,g,h,m,p?St:o,!0).pipe(Ye(w=>new Ut(s.concat(w.segments),w.children)))})):yh(e)))}getChildConfig(i,e,n){return e.children?ze({routes:e.children,injector:i}):e.loadChildren?void 0!==e._loadedRoutes?ze({routes:e._loadedRoutes,injector:e._loadedInjector}):function bW(t,i,e,n){const r=i.canLoad;return void 0===r||0===r.length?ze(!0):ze(r.map(a=>{const s=xd(a,t);return As(function rW(t){return t&&xh(t.canLoad)}(s)?s.canLoad(i,e):t.runInContext(()=>s(i,e)))})).pipe(yd(),kA())}(i,e,n).pipe(Sn(r=>r?this.configLoader.loadChildren(i,e).pipe(Ui(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function DW(t){return Fc(bA(rg,3))}())):ze({routes:[],injector:i})}lineralizeSegments(i,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return ze(n);if(r.numberOfChildren>1||!r.children[St])return i.redirectTo,Fc(new ue(4e3,rg));r=r.children[St]}}applyRedirectCommands(i,e,n){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),i,n)}applyRedirectCreateUrlTree(i,e,n,r){const o=this.createSegmentGroup(i,e.root,n,r);return new Is(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){const n={};return Gn(i,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const s=r.substring(1);n[o]=e[s]}else n[o]=r}),n}createSegmentGroup(i,e,n,r){const o=this.createSegments(i,e.segments,n,r);let a={};return Gn(e.children,(s,c)=>{a[c]=this.createSegmentGroup(i,s,n,r)}),new Ut(o,a)}createSegments(i,e,n,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(i,o,r):this.findOrReturn(o,n))}findPosParam(i,e,n){const r=n[e.path.substring(1)];if(!r)throw new ue(4001,rg);return r}findOrReturn(i,e){let n=0;for(const r of e){if(r.path===i.path)return e.splice(n),r;n++}return i}}class MW{}class FW{constructor(i,e,n,r,o,a,s){this.injector=i,this.rootComponentType=e,this.config=n,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=a,this.urlSerializer=s}recognize(){const i=ig(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,i,St).pipe(Ye(e=>{if(null===e)return null;const n=new Zp([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},St,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Ja(n,e),o=new pA(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(i){const e=i.value,n=mA(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),i.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(i,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.processChildren(i,e,n):this.processSegment(i,e,n,n.segments,r)}processChildren(i,e,n){return Zi(Object.keys(n.children)).pipe(Ms(r=>{const o=n.children[r],a=wA(e,r);return this.processSegmentGroup(i,a,o,r)}),UM((r,o)=>r&&o?(r.push(...o),r):null),$M(r=>null!==r),Up(null),zM(),Ye(r=>{if(null===r)return null;const o=IA(r);return function RW(t){t.sort((i,e)=>i.value.outlet===St?-1:e.value.outlet===St?1:i.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(i,e,n,r,o){return Zi(e).pipe(Ms(a=>this.processSegmentAgainstRoute(a._injector??i,a,n,r,o)),jo(a=>!!a),mn(a=>{if(ty(a))return EA(n,r,o)?ze([]):ze(null);throw a}))}processSegmentAgainstRoute(i,e,n,r,o){if(e.redirectTo||!SA(e,n,r,o))return ze(null);let a;if("**"===e.path){const s=r.length>0?qM(r).parameters:{},c=RA(n)+r.length;a=ze({snapshot:new Zp(r,s,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,OA(e),_o(e),e.component??e._loadedComponent??null,e,FA(n),c,PA(e)),consumedSegments:[],remainingSegments:[]})}else a=DA(n,e,r,i).pipe(Ye(({matched:s,consumedSegments:c,remainingSegments:l,parameters:d})=>{if(!s)return null;const u=RA(n)+c.length;return{snapshot:new Zp(c,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,OA(e),_o(e),e.component??e._loadedComponent??null,e,FA(n),u,PA(e)),consumedSegments:c,remainingSegments:l}}));return a.pipe(fn(s=>{if(null===s)return ze(null);const{snapshot:c,consumedSegments:l,remainingSegments:d}=s;i=e._injector??i;const u=e._loadedInjector??i,h=function OW(t){return t.children?t.children:t.loadChildren?t._loadedRoutes:[]}(e),{segmentGroup:f,slicedSegments:m}=ig(n,l,d,h.filter(p=>void 0===p.redirectTo));if(0===m.length&&f.hasChildren())return this.processChildren(u,h,f).pipe(Ye(p=>null===p?null:[new Ja(c,p)]));if(0===h.length&&0===m.length)return ze([new Ja(c,[])]);const g=_o(e)===o;return this.processSegment(u,h,f,m,g?St:o).pipe(Ye(p=>null===p?null:[new Ja(c,p)]))}))}}function PW(t){const i=t.value.routeConfig;return i&&""===i.path&&void 0===i.redirectTo}function IA(t){const i=[],e=new Set;for(const n of t){if(!PW(n)){i.push(n);continue}const r=i.find(o=>n.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...n.children),e.add(r)):i.push(n)}for(const n of e){const r=IA(n.children);i.push(new Ja(n.value,r))}return i.filter(n=>!e.has(n))}function FA(t){let i=t;for(;i._sourceSegment;)i=i._sourceSegment;return i}function RA(t){let i=t,e=i._segmentIndexShift??0;for(;i._sourceSegment;)i=i._sourceSegment,e+=i._segmentIndexShift??0;return e-1}function OA(t){return t.data||{}}function PA(t){return t.resolve||{}}function NA(t){return"string"==typeof t.title||null===t.title}function ry(t){return fn(i=>{const e=t(i);return e?Zi(e).pipe(Ye(()=>i)):ze(i)})}const wd=new ae("ROUTES");let oy=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=ht(l2)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return ze(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const n=As(e.loadComponent()).pipe(Ye(BA),Ui(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),zp(()=>{this.componentLoaders.delete(e)})),r=new Px(n,()=>new Ce).pipe(Ox());return this.componentLoaders.set(e,r),r}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return ze({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);const o=this.loadModuleFactoryOrRoutes(n.loadChildren).pipe(Ye(s=>{this.onLoadEndListener&&this.onLoadEndListener(n);let c,l,d=!1;Array.isArray(s)?l=s:(c=s.create(e).injector,l=GM(c.get(wd,[],gt.Self|gt.Optional)));return{routes:l.map(ey),injector:c}}),zp(()=>{this.childrenLoaders.delete(n)})),a=new Px(o,()=>new Ce).pipe(Ox());return this.childrenLoaders.set(n,a),a}loadModuleFactoryOrRoutes(e){return As(e()).pipe(Ye(BA),Sn(n=>n instanceof xT||Array.isArray(n)?ze(n):Zi(this.compiler.compileModuleAsync(n))))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function BA(t){return function $W(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let sg=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new Ce,this.configLoader=ht(oy),this.environmentInjector=ht(oa),this.urlSerializer=ht(dh),this.rootContexts=ht(gh),this.navigationId=0,this.afterPreactivation=()=>ze(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new Aj(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new Mj(r))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const n=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:n})}setupNavigations(e){return this.transitions=new Bn({id:0,targetPageId:0,currentUrlTree:e.currentUrlTree,currentRawUrl:e.currentUrlTree,extractedUrl:e.urlHandlingStrategy.extract(e.currentUrlTree),urlAfterRedirects:e.urlHandlingStrategy.extract(e.currentUrlTree),rawUrl:e.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:mh,restoredState:null,currentSnapshot:e.routerState.snapshot,targetSnapshot:null,currentRouterState:e.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(hi(n=>0!==n.id),Ye(n=>({...n,extractedUrl:e.urlHandlingStrategy.extract(n.rawUrl)})),fn(n=>{let r=!1,o=!1;return ze(n).pipe(Ui(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),fn(a=>{const s=e.browserUrlTree.toString(),c=!e.navigated||a.extractedUrl.toString()!==s||s!==e.currentUrlTree.toString();if(!c&&"reload"!==(a.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const d="";return this.events.next(new Kp(a.id,e.serializeUrl(n.rawUrl),d,0)),e.rawUrlTree=a.rawUrl,a.resolve(null),zr}if(e.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return VA(a.source)&&(e.browserUrlTree=a.extractedUrl),ze(a).pipe(fn(d=>{const u=this.transitions?.getValue();return this.events.next(new $x(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),u!==this.transitions?.getValue()?zr:Promise.resolve(d)}),function TW(t,i,e,n){return fn(r=>function SW(t,i,e,n,r){return new EW(t,i,e,n,r).apply()}(t,i,e,r.extractedUrl,n).pipe(Ye(o=>({...r,urlAfterRedirects:o}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,e.config),Ui(d=>{this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects},n.urlAfterRedirects=d.urlAfterRedirects}),function LW(t,i,e,n,r){return Sn(o=>function IW(t,i,e,n,r,o,a="emptyOnly"){return new FW(t,i,e,n,r,a,o).recognize().pipe(fn(s=>null===s?function AW(t){return new ni(i=>i.error(t))}(new MW):ze(s)))}(t,i,e,o.urlAfterRedirects,n.serialize(o.urlAfterRedirects),n,r).pipe(Ye(a=>({...o,targetSnapshot:a}))))}(this.environmentInjector,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),Ui(d=>{if(n.targetSnapshot=d.targetSnapshot,"eager"===e.urlUpdateStrategy){if(!d.extras.skipLocationChange){const h=e.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);e.setBrowserUrl(h,d)}e.browserUrlTree=d.urlAfterRedirects}const u=new kj(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(u)}));if(c&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){const{id:d,extractedUrl:u,source:h,restoredState:f,extras:m}=a,g=new $x(d,this.urlSerializer.serialize(u),h,f);this.events.next(g);const p=fA(u,this.rootComponentType).snapshot;return ze(n={...a,targetSnapshot:p,urlAfterRedirects:u,extras:{...m,skipLocationChange:!1,replaceUrl:!1}})}{const d="";return this.events.next(new Kp(a.id,e.serializeUrl(n.extractedUrl),d,1)),e.rawUrlTree=a.rawUrl,a.resolve(null),zr}}),Ui(a=>{const s=new Dj(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}),Ye(a=>n={...a,guards:Jj(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function dW(t,i){return Sn(e=>{const{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:a}}=e;return 0===a.length&&0===o.length?ze({...e,guardsResult:!0}):function uW(t,i,e,n){return Zi(t).pipe(Sn(r=>function _W(t,i,e,n,r){const o=i&&i.routeConfig?i.routeConfig.canDeactivate:null;return o&&0!==o.length?ze(o.map(s=>{const c=_h(i)??r,l=xd(s,c);return As(function sW(t){return t&&xh(t.canDeactivate)}(l)?l.canDeactivate(t,i,e,n):c.runInContext(()=>l(t,i,e,n))).pipe(jo())})).pipe(yd()):ze(!0)}(r.component,r.route,e,i,n)),jo(r=>!0!==r,!0))}(a,n,r,t).pipe(Sn(s=>s&&function nW(t){return"boolean"==typeof t}(s)?function hW(t,i,e,n){return Zi(i).pipe(Ms(r=>sh(function mW(t,i){return null!==t&&i&&i(new Ij(t)),ze(!0)}(r.route.parent,n),function fW(t,i){return null!==t&&i&&i(new Rj(t)),ze(!0)}(r.route,n),function gW(t,i,e){const n=i[i.length-1],o=i.slice(0,i.length-1).reverse().map(a=>function eW(t){const i=t.routeConfig?t.routeConfig.canActivateChild:null;return i&&0!==i.length?{node:t,guards:i}:null}(a)).filter(a=>null!==a).map(a=>fd(()=>ze(a.guards.map(c=>{const l=_h(a.node)??e,d=xd(c,l);return As(function aW(t){return t&&xh(t.canActivateChild)}(d)?d.canActivateChild(n,t):l.runInContext(()=>d(n,t))).pipe(jo())})).pipe(yd())));return ze(o).pipe(yd())}(t,r.path,e),function pW(t,i,e){const n=i.routeConfig?i.routeConfig.canActivate:null;if(!n||0===n.length)return ze(!0);const r=n.map(o=>fd(()=>{const a=_h(i)??e,s=xd(o,a);return As(function oW(t){return t&&xh(t.canActivate)}(s)?s.canActivate(i,t):a.runInContext(()=>s(i,t))).pipe(jo())}));return ze(r).pipe(yd())}(t,r.route,e))),jo(r=>!0!==r,!0))}(n,o,t,i):ze(s)),Ye(s=>({...e,guardsResult:s})))})}(this.environmentInjector,a=>this.events.next(a)),Ui(a=>{if(n.guardsResult=a.guardsResult,Oc(a.guardsResult))throw _A(0,a.guardsResult);const s=new Sj(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(s)}),hi(a=>!!a.guardsResult||(e.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),ry(a=>{if(a.guards.canActivateChecks.length)return ze(a).pipe(Ui(s=>{const c=new Ej(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(c)}),fn(s=>{let c=!1;return ze(s).pipe(function BW(t,i){return Sn(e=>{const{targetSnapshot:n,guards:{canActivateChecks:r}}=e;if(!r.length)return ze(e);let o=0;return Zi(r).pipe(Ms(a=>function VW(t,i,e,n){const r=t.routeConfig,o=t._resolve;return void 0!==r?.title&&!NA(r)&&(o[ch]=r.title),function HW(t,i,e,n){const r=function UW(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===r.length)return ze({});const o={};return Zi(r).pipe(Sn(a=>function zW(t,i,e,n){const r=_h(i)??n,o=xd(t,r);return As(o.resolve?o.resolve(i,e):r.runInContext(()=>o(i,e)))}(t[a],i,e,n).pipe(jo(),Ui(s=>{o[a]=s}))),Nx(1),jM(o),mn(a=>ty(a)?zr:Fc(a)))}(o,t,i,n).pipe(Ye(a=>(t._resolvedData=a,t.data=mA(t,e).resolve,r&&NA(r)&&(t.data[ch]=r.title),null)))}(a.route,n,t,i)),Ui(()=>o++),Nx(1),Sn(a=>o===r.length?ze(e):zr))})}(e.paramsInheritanceStrategy,this.environmentInjector),Ui({next:()=>c=!0,complete:()=>{c||(e.restoreHistory(s),this.cancelNavigationTransition(s,"",2))}}))}),Ui(s=>{const c=new Tj(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(c)}))}),ry(a=>{const s=c=>{const l=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&l.push(this.configLoader.loadComponent(c.routeConfig).pipe(Ui(d=>{c.component=d}),Ye(()=>{})));for(const d of c.children)l.push(...s(d));return l};return Ic(s(a.targetSnapshot.root)).pipe(Up(),ui(1))}),ry(()=>this.afterPreactivation()),Ye(a=>{const s=function zj(t,i,e){const n=ph(t,i._root,e?e._root:void 0);return new hA(n,i)}(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return n={...a,targetRouterState:s}}),Ui(a=>{e.currentUrlTree=a.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),e.routerState=a.targetRouterState,"deferred"===e.urlUpdateStrategy&&(a.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,a),e.browserUrlTree=a.urlAfterRedirects)}),((t,i,e)=>Ye(n=>(new Zj(i,n.targetRouterState,n.currentRouterState,e).activate(t),n)))(this.rootContexts,e.routeReuseStrategy,a=>this.events.next(a)),ui(1),Ui({next:a=>{r=!0,this.lastSuccessfulNavigation=this.currentNavigation,e.navigated=!0,this.events.next(new Fs(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(e.currentUrlTree))),e.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{r=!0}}),zp(()=>{r||o||this.cancelNavigationTransition(n,"",1),this.currentNavigation?.id===n.id&&(this.currentNavigation=null)}),mn(a=>{if(o=!0,xA(a)){vA(a)||(e.navigated=!0,e.restoreHistory(n,!0));const s=new Yp(n.id,this.urlSerializer.serialize(n.extractedUrl),a.message,a.cancellationCode);if(this.events.next(s),vA(a)){const c=e.urlHandlingStrategy.merge(a.url,e.rawUrlTree),l={skipLocationChange:n.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy||VA(n.source)};e.scheduleNavigation(c,mh,null,l,{resolve:n.resolve,reject:n.reject,promise:n.promise})}else n.resolve(!1)}else{e.restoreHistory(n,!0);const s=new jx(n.id,this.urlSerializer.serialize(n.extractedUrl),a,n.targetSnapshot??void 0);this.events.next(s);try{n.resolve(e.errorHandler(a))}catch(c){n.reject(c)}}return zr}))}))}cancelNavigationTransition(e,n,r){const o=new Yp(e.id,this.urlSerializer.serialize(e.extractedUrl),n,r);this.events.next(o),e.resolve(!1)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function VA(t){return t!==mh}let HA=(()=>{class t{buildTitle(e){let n,r=e.root;for(;void 0!==r;)n=this.getResolvedTitleForRoute(r)??n,r=r.children.find(o=>o.outlet===St);return n}getResolvedTitleForRoute(e){return e.data[ch]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:function(){return ht(jW)},providedIn:"root"}),t})(),jW=(()=>{class t extends HA{constructor(e){super(),this.title=e}updateTitle(e){const n=this.buildTitle(e);void 0!==n&&this.title.setTitle(n)}}return t.\u0275fac=function(e){return new(e||t)(G(RM))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),WW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:function(){return ht(qW)},providedIn:"root"}),t})();class GW{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}}let qW=(()=>{class t extends GW{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const cg=new ae("",{providedIn:"root",factory:()=>({})});let QW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:function(){return ht(YW)},providedIn:"root"}),t})(),YW=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function KW(t){throw t}function ZW(t,i,e){return i.parse("/")}const JW={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},eG={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Or=(()=>{class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=ht(NU),this.isNgZoneEnabled=!1,this.options=ht(cg,{optional:!0})||{},this.errorHandler=this.options.errorHandler||KW,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||ZW,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=ht(QW),this.routeReuseStrategy=ht(WW),this.urlCreationStrategy=ht(Vj),this.titleStrategy=ht(HA),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=GM(ht(wd,{optional:!0})??[]),this.navigationTransitions=ht(sg),this.urlSerializer=ht(dh),this.location=ht(Ju),this.isNgZoneEnabled=ht(Ue)instanceof Ue&&Ue.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Is,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=fA(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId??0},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const e=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),mh,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const n="popstate"===e.type?"popstate":"hashchange";"popstate"===n&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,n,e.state)},0)}))}navigateToSyncWithBrowser(e,n,r){const o={replaceUrl:!0},a=r?.navigationId?r:null;if(r){const c={...r};delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(o.state=c)}const s=this.parseUrl(e);this.scheduleNavigation(s,n,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(e){this.config=e.map(ey),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,n={}){const{relativeTo:r,queryParams:o,fragment:a,queryParamsHandling:s,preserveFragment:c}=n,l=c?this.currentUrlTree.fragment:a;let d=null;switch(s){case"merge":d={...this.currentUrlTree.queryParams,...o};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}return null!==d&&(d=this.removeEmptyProps(d)),this.urlCreationStrategy.createUrlTree(r,this.routerState,this.currentUrlTree,e,d,l??null)}navigateByUrl(e,n={skipLocationChange:!1}){const r=Oc(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,mh,null,n)}navigate(e,n={skipLocationChange:!1}){return function tG(t){for(let i=0;i{const o=e[r];return null!=o&&(n[r]=o),n},{})}scheduleNavigation(e,n,r,o,a){if(this.disposed)return Promise.resolve(!1);let s,c,l,d;return a?(s=a.resolve,c=a.reject,l=a.promise):l=new Promise((u,h)=>{s=u,c=h}),d="computed"===this.canceledNavigationResolution?r&&r.\u0275routerPageId?r.\u0275routerPageId:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:d,source:n,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:s,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(u=>Promise.reject(u))}setBrowserUrl(e,n){const r=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(r)||n.extras.replaceUrl){const a={...n.extras.state,...this.generateNgRouterState(n.id,this.browserPageId)};this.location.replaceState(r,"",a)}else{const o={...n.extras.state,...this.generateNgRouterState(n.id,n.targetPageId)};this.location.go(r,"",o)}}restoreHistory(e,n=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-(this.browserPageId??this.currentPageId);0!==o?this.location.historyGo(o):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(n&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class UA{}let rG=(()=>{class t{constructor(e,n,r,o,a){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(hi(e=>e instanceof Fs),Ms(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,n){const r=[];for(const o of n){o.providers&&!o._injector&&(o._injector=fp(o.providers,e,`Route: ${o.path}`));const a=o._injector??e,s=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(s,o.children??o._loadedRoutes))}return Zi(r).pipe(kl())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{let r;r=n.loadChildren&&void 0===n.canLoad?this.loader.loadChildren(e,n):ze(null);const o=r.pipe(Sn(a=>null===a?ze(void 0):(n._loadedRoutes=a.routes,n._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));return n.loadComponent&&!n._loadedComponent?Zi([o,this.loader.loadComponent(n)]).pipe(kl()):o})}}return t.\u0275fac=function(e){return new(e||t)(G(Or),G(l2),G(oa),G(UA),G(oy))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const cy=new ae("");let zA=(()=>{class t{constructor(e,n,r,o,a={}){this.urlSerializer=e,this.transitions=n,this.viewportScroller=r,this.zone=o,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration=a.scrollPositionRestoration||"disabled",a.anchorScrolling=a.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 $x?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Fs&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof dA&&(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,n){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new dA(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return t.\u0275fac=function(e){aa()},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();var Kr=(()=>((Kr=Kr||{})[Kr.COMPLETE=0]="COMPLETE",Kr[Kr.FAILED=1]="FAILED",Kr[Kr.REDIRECTING=2]="REDIRECTING",Kr))();const Cd=!1;function Rs(t,i){return{\u0275kind:t,\u0275providers:i}}const ly=new ae("",{providedIn:"root",factory:()=>!1});function jA(){const t=ht(en);return i=>{const e=t.get(ud);if(i!==e.components[0])return;const n=t.get(Or),r=t.get(WA);1===t.get(dy)&&n.initialNavigation(),t.get(GA,null,gt.Optional)?.setUpPreloading(),t.get(cy,null,gt.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const WA=new ae(Cd?"bootstrap done indicator":"",{factory:()=>new Ce}),dy=new ae(Cd?"initial navigation":"",{providedIn:"root",factory:()=>1});function lG(){let t=[];return t=Cd?[{provide:qm,multi:!0,useFactory:()=>{const i=ht(Or);return()=>i.events.subscribe(e=>{console.group?.(`Router Event: ${e.constructor.name}`),console.log(function Pj(t){if(!("type"in t))return`Unknown Router Event: ${t.constructor.name}`;switch(t.type){case 14:return`ActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state}, shouldActivate: ${t.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 2:return`NavigationCancel(id: ${t.id}, url: '${t.url}')`;case 16:return`NavigationSkipped(id: ${t.id}, url: '${t.url}')`;case 1:return`NavigationEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${t.id}, url: '${t.url}', error: ${t.error})`;case 0:return`NavigationStart(id: ${t.id}, url: '${t.url}')`;case 6:return`ResolveEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 5:return`ResolveStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 10:return`RouteConfigLoadEnd(path: ${t.route.path})`;case 9:return`RouteConfigLoadStart(path: ${t.route.path})`;case 4:return`RoutesRecognized(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 15:return`Scroll(anchor: '${t.anchor}', position: '${t.position?`${t.position[0]}, ${t.position[1]}`:null}')`}}(e)),console.log(e),console.groupEnd?.()})}}]:[],Rs(1,t)}const GA=new ae(Cd?"router preloader":"");function dG(t){return Rs(0,[{provide:GA,useExisting:rG},{provide:UA,useExisting:t}])}const wh=!1,qA=new ae(wh?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),uG=[Ju,{provide:dh,useClass:Lx},Or,gh,{provide:vd,useFactory:function $A(t){return t.routerState.root},deps:[Or]},oy,wh?{provide:ly,useValue:!0}:[]];function hG(){return new _2("Router",Or)}let XA=(()=>{class t{constructor(e){}static forRoot(e,n){return{ngModule:t,providers:[uG,wh&&n?.enableTracing?lG().\u0275providers:[],{provide:wd,multi:!0,useValue:e},{provide:qA,useFactory:gG,deps:[[Or,new na,new bc]]},{provide:cg,useValue:n||{}},n?.useHash?{provide:Ac,useClass:C9}:{provide:Ac,useClass:H2},{provide:cy,useFactory:()=>{const t=ht(Bz),i=ht(Ue),e=ht(cg),n=ht(sg),r=ht(dh);return e.scrollOffset&&t.setOffset(e.scrollOffset),new zA(r,n,t,i,e)}},n?.preloadingStrategy?dG(n.preloadingStrategy).\u0275providers:[],{provide:_2,multi:!0,useFactory:hG},n?.initialNavigation?_G(n):[],[{provide:QA,useFactory:jA},{provide:g2,multi:!0,useExisting:QA}]]}}static forChild(e){return{ngModule:t,providers:[{provide:wd,multi:!0,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)(G(qA,8))},t.\u0275mod=st({type:t}),t.\u0275inj=ot({imports:[Zx]}),t})();function gG(t){if(wh&&t)throw new ue(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function _G(t){return["disabled"===t.initialNavigation?Rs(3,[{provide:bp,multi:!0,useFactory:()=>{const i=ht(Or);return()=>{i.setUpLocationChangeListener()}}},{provide:dy,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Rs(2,[{provide:dy,useValue:0},{provide:bp,multi:!0,deps:[en],useFactory:i=>{const e=i.get(y9,Promise.resolve());return()=>e.then(()=>new Promise(n=>{const r=i.get(Or),o=i.get(WA);(function oG(t,i){t.events.pipe(hi(e=>e instanceof Fs||e instanceof Yp||e instanceof jx||e instanceof Kp),Ye(e=>e instanceof Fs||e instanceof Kp?Kr.COMPLETE:e instanceof Yp&&(0===e.code||1===e.code)?Kr.REDIRECTING:Kr.FAILED),hi(e=>e!==Kr.REDIRECTING),ui(1)).subscribe(()=>{i()})})(r,()=>{n(!0)}),i.get(sg).afterPreactivation=()=>(n(!0),o.closed?ze(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const QA=new ae(wh?"Router Initializer":"");function YA(t,i,e,n,r,o,a){try{var s=t[o](a),c=s.value}catch(l){return void e(l)}s.done?i(c):Promise.resolve(c).then(n,r)}function Yi(t){return function(){var i=this,e=arguments;return new Promise(function(n,r){var o=t.apply(i,e);function a(c){YA(o,n,r,a,s,"next",c)}function s(c){YA(o,n,r,a,s,"throw",c)}a(void 0)})}}class uy{}function hy(t){return t&&"function"==typeof t.connect&&!(t instanceof Px)}class KA{applyChanges(i,e,n,r,o){i.forEachOperation((a,s,c)=>{let l,d;if(null==a.previousIndex){const u=n(a,s,c);l=e.createEmbeddedView(u.templateRef,u.context,u.index),d=1}else null==c?(e.remove(s),d=3):(l=e.get(s),e.move(l,c),d=2);o&&o({context:l?.context,operation:d,record:a})})}detach(){}}class fy{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(i=!1,e,n=!0,r){this._multiple=i,this._emitChanges=n,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Ce,e&&e.length&&(i?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...i){this._verifyValueAssignment(i),i.forEach(n=>this._markSelected(n));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...i){this._verifyValueAssignment(i),i.forEach(n=>this._unmarkSelected(n));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...i){this._verifyValueAssignment(i);const e=this.selected,n=new Set(i);i.forEach(o=>this._markSelected(o)),e.filter(o=>!n.has(o)).forEach(o=>this._unmarkSelected(o));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(i){return this.isSelected(i)?this.deselect(i):this.select(i)}clear(i=!0){this._unmarkAll();const e=this._hasQueuedChanges();return i&&this._emitChangeEvent(),e}isSelected(i){return this._selection.has(this._getConcreteValue(i))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(i){this._multiple&&this.selected&&this._selected.sort(i)}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(i){i=this._getConcreteValue(i),this.isSelected(i)||(this._multiple||this._unmarkAll(),this.isSelected(i)||this._selection.add(i),this._emitChanges&&this._selectedToEmit.push(i))}_unmarkSelected(i){i=this._getConcreteValue(i),this.isSelected(i)&&(this._selection.delete(i),this._emitChanges&&this._deselectedToEmit.push(i))}_unmarkAll(){this.isEmpty()||this._selection.forEach(i=>this._unmarkSelected(i))}_verifyValueAssignment(i){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(i){if(this.compareWith){for(let e of this._selection)if(this.compareWith(i,e))return e;return i}return i}}let my=(()=>{class t{constructor(){this._listeners=[]}notify(e,n){for(let r of this._listeners)r(e,n)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(n=>e!==n)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Ch=new ae("_ViewRepeater");function Wo(t,i){const e="object"==typeof i;return new Promise((n,r)=>{let a,o=!1;t.subscribe({next:s=>{a=s,o=!0},error:r,complete:()=>{o?n(a):e?n(i.defaultValue):r(new ah)}})})}const py={now:()=>(py.delegate||Date).now(),delegate:void 0};class JA extends Ce{constructor(i=1/0,e=1/0,n=py){super(),this._bufferSize=i,this._windowTime=e,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,i),this._windowTime=Math.max(1,e)}next(i){const{isStopped:e,_buffer:n,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:a}=this;e||(n.push(i),!r&&n.push(o.now()+a)),this._trimBuffer(),super.next(i)}_subscribe(i){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(i),{_infiniteTimeWindow:n,_buffer:r}=this,o=r.slice();for(let a=0;a{this.headers=new Map,i.split("\n").forEach(e=>{const n=e.indexOf(":");if(n>0){const r=e.slice(0,n),o=r.toLowerCase(),a=e.slice(n+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(a):this.headers.set(o,[a])}})}:()=>{this.headers=new Map,Object.entries(i).forEach(([e,n])=>{let r;if(r="string"==typeof n?[n]:"number"==typeof n?[n.toString()]:n.map(o=>o.toString()),r.length>0){const o=e.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(e,o)}})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();const e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof pa?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){const e=new pa;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof pa?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){const e=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(i.name,e);const r=("a"===i.op?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":const o=i.value;if(o){let a=this.headers.get(e);if(!a)return;a=a.filter(s=>-1===o.indexOf(s)),0===a.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}}class vG{encodeKey(i){return eI(i)}encodeValue(i){return eI(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}}const yG=/%(\d[a-f0-9])/gi,wG={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function eI(t){return encodeURIComponent(t).replace(yG,(i,e)=>wG[e]??i)}function dg(t){return`${t}`}class Os{constructor(i={}){if(this.updates=null,this.cloneFrom=null,this.encoder=i.encoder||new vG,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function xG(t,i){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[a,s]=-1==o?[i.decodeKey(r),""]:[i.decodeKey(r.slice(0,o)),i.decodeValue(r.slice(o+1))],c=e.get(a)||[];c.push(s),e.set(a,c)}),e}(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{const n=i.fromObject[e],r=Array.isArray(n)?n.map(dg):[dg(n)];this.map.set(e,r)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();const e=this.map.get(i);return e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,e){return this.clone({param:i,value:e,op:"a"})}appendAll(i){const e=[];return Object.keys(i).forEach(n=>{const r=i[n];Array.isArray(r)?r.forEach(o=>{e.push({param:n,value:o,op:"a"})}):e.push({param:n,value:r,op:"a"})}),this.clone(e)}set(i,e){return this.clone({param:i,value:e,op:"s"})}delete(i,e){return this.clone({param:i,value:e,op:"d"})}toString(){return this.init(),this.keys().map(i=>{const e=this.encoder.encodeKey(i);return this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>""!==i).join("&")}clone(i){const e=new Os({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":const e=("a"===i.op?this.map.get(i.param):void 0)||[];e.push(dg(i.value)),this.map.set(i.param,e);break;case"d":if(void 0===i.value){this.map.delete(i.param);break}{let n=this.map.get(i.param)||[];const r=n.indexOf(dg(i.value));-1!==r&&n.splice(r,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}}}),this.cloneFrom=this.updates=null)}}class CG{constructor(){this.map=new Map}set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}}function tI(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function iI(t){return typeof Blob<"u"&&t instanceof Blob}function nI(t){return typeof FormData<"u"&&t instanceof FormData}class kh{constructor(i,e,n,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=i.toUpperCase(),function kG(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!==n?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new pa),this.context||(this.context=new CG),this.params){const a=this.params.toString();if(0===a.length)this.urlWithParams=e;else{const s=e.indexOf("?");this.urlWithParams=e+(-1===s?"?":su.set(h,i.setHeaders[h]),c)),i.setParams&&(l=Object.keys(i.setParams).reduce((u,h)=>u.set(h,i.setParams[h]),l)),new kh(e,n,o,{params:l,headers:c,context:d,reportProgress:s,responseType:r,withCredentials:a})}}var pn=(()=>((pn=pn||{})[pn.Sent=0]="Sent",pn[pn.UploadProgress=1]="UploadProgress",pn[pn.ResponseHeader=2]="ResponseHeader",pn[pn.DownloadProgress=3]="DownloadProgress",pn[pn.Response=4]="Response",pn[pn.User=5]="User",pn))();class _y{constructor(i,e=200,n="OK"){this.headers=i.headers||new pa,this.status=void 0!==i.status?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}}class by extends _y{constructor(i={}){super(i),this.type=pn.ResponseHeader}clone(i={}){return new by({headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class ug extends _y{constructor(i={}){super(i),this.type=pn.Response,this.body=void 0!==i.body?i.body:null}clone(i={}){return new ug({body:void 0!==i.body?i.body:this.body,headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class rI extends _y{constructor(i){super(i,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${i.url||"(unknown url)"}`:`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}}function vy(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Ps=(()=>{class t{constructor(e){this.handler=e}request(e,n,r={}){let o;if(e instanceof kh)o=e;else{let c,l;c=r.headers instanceof pa?r.headers:new pa(r.headers),r.params&&(l=r.params instanceof Os?r.params:new Os({fromObject:r.params})),o=new kh(e,n,void 0!==r.body?r.body:null,{headers:c,context:r.context,params:l,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const a=ze(o).pipe(Ms(c=>this.handler.handle(c)));if(e instanceof kh||"events"===r.observe)return a;const s=a.pipe(hi(c=>c instanceof ug));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return s.pipe(Ye(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return s.pipe(Ye(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return s.pipe(Ye(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return s.pipe(Ye(c=>c.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:(new Os).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,r={}){return this.request("PATCH",e,vy(r,n))}post(e,n,r={}){return this.request("POST",e,vy(r,n))}put(e,n,r={}){return this.request("PUT",e,vy(r,n))}}return t.\u0275fac=function(e){return new(e||t)(G(lg))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();function oI(t,i){return i(t)}function SG(t,i){return(e,n)=>i.intercept(e,{handle:r=>t(r,n)})}const TG=new ae("HTTP_INTERCEPTORS"),Dh=new ae("HTTP_INTERCEPTOR_FNS");function MG(){let t=null;return(i,e)=>(null===t&&(t=(ht(TG,{optional:!0})??[]).reduceRight(SG,oI)),t(i,e))}let aI=(()=>{class t extends lg{constructor(e,n){super(),this.backend=e,this.injector=n,this.chain=null}handle(e){if(null===this.chain){const n=Array.from(new Set(this.injector.get(Dh)));this.chain=n.reduceRight((r,o)=>function EG(t,i,e){return(n,r)=>e.runInContext(()=>i(n,o=>t(o,r)))}(r,o,this.injector),oI)}return this.chain(e,n=>this.backend.handle(n))}}return t.\u0275fac=function(e){return new(e||t)(G(gy),G(oa))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();const RG=/^\)\]\}',?\n/;let cI=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new ni(n=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((f,m)=>r.setRequestHeader(f,m.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const f=e.detectContentTypeHeader();null!==f&&r.setRequestHeader("Content-Type",f)}if(e.responseType){const f=e.responseType.toLowerCase();r.responseType="json"!==f?f:"text"}const o=e.serializeBody();let a=null;const s=()=>{if(null!==a)return a;const f=r.statusText||"OK",m=new pa(r.getAllResponseHeaders()),g=function OG(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||e.url;return a=new by({headers:m,status:r.status,statusText:f,url:g}),a},c=()=>{let{headers:f,status:m,statusText:g,url:p}=s(),_=null;204!==m&&(_=typeof r.response>"u"?r.responseText:r.response),0===m&&(m=_?200:0);let w=m>=200&&m<300;if("json"===e.responseType&&"string"==typeof _){const x=_;_=_.replace(RG,"");try{_=""!==_?JSON.parse(_):null}catch(E){_=x,w&&(w=!1,_={error:E,text:_})}}w?(n.next(new ug({body:_,headers:f,status:m,statusText:g,url:p||void 0})),n.complete()):n.error(new rI({error:_,headers:f,status:m,statusText:g,url:p||void 0}))},l=f=>{const{url:m}=s(),g=new rI({error:f,status:r.status||0,statusText:r.statusText||"Unknown Error",url:m||void 0});n.error(g)};let d=!1;const u=f=>{d||(n.next(s()),d=!0);let m={type:pn.DownloadProgress,loaded:f.loaded};f.lengthComputable&&(m.total=f.total),"text"===e.responseType&&r.responseText&&(m.partialText=r.responseText),n.next(m)},h=f=>{let m={type:pn.UploadProgress,loaded:f.loaded};f.lengthComputable&&(m.total=f.total),n.next(m)};return r.addEventListener("load",c),r.addEventListener("error",l),r.addEventListener("timeout",l),r.addEventListener("abort",l),e.reportProgress&&(r.addEventListener("progress",u),null!==o&&r.upload&&r.upload.addEventListener("progress",h)),r.send(o),n.next({type:pn.Sent}),()=>{r.removeEventListener("error",l),r.removeEventListener("abort",l),r.removeEventListener("load",c),r.removeEventListener("timeout",l),e.reportProgress&&(r.removeEventListener("progress",u),null!==o&&r.upload&&r.upload.removeEventListener("progress",h)),r.readyState!==r.DONE&&r.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(G(dM))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();const xy=new ae("XSRF_ENABLED"),lI=new ae("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),dI=new ae("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class uI{}let LG=(()=>{class t{constructor(e,n,r){this.doc=e,this.platform=n,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=Y2(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(G(it),G(xp),G(lI))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();function BG(t,i){const e=t.url.toLowerCase();if(!ht(xy)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return i(t);const n=ht(uI).getToken(),r=ht(dI);return null!=n&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),i(t)}var rn=(()=>((rn=rn||{})[rn.Interceptors=0]="Interceptors",rn[rn.LegacyInterceptors=1]="LegacyInterceptors",rn[rn.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",rn[rn.NoXsrfProtection=3]="NoXsrfProtection",rn[rn.JsonpSupport=4]="JsonpSupport",rn[rn.RequestsMadeViaParent=5]="RequestsMadeViaParent",rn))();function kd(t,i){return{\u0275kind:t,\u0275providers:i}}function VG(...t){const i=[Ps,cI,aI,{provide:lg,useExisting:aI},{provide:gy,useExisting:cI},{provide:Dh,useValue:BG,multi:!0},{provide:xy,useValue:!0},{provide:uI,useClass:LG}];for(const e of t)i.push(...e.\u0275providers);return function W5(t){return{\u0275providers:t}}(i)}const hI=new ae("LEGACY_INTERCEPTOR_FN");let yy,UG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({providers:[VG(kd(rn.LegacyInterceptors,[{provide:hI,useFactory:MG},{provide:Dh,useExisting:hI,multi:!0}]))]}),t})();try{yy=typeof Intl<"u"&&Intl.v8BreakIterator}catch{yy=!1}let Dd,xi=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function Lz(t){return t===cM}(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&&!yy)&&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}}return t.\u0275fac=function(e){return new(e||t)(G(xp))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const fI=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function mI(){if(Dd)return Dd;if("object"!=typeof document||!document)return Dd=new Set(fI),Dd;let t=document.createElement("input");return Dd=new Set(fI.filter(i=>(t.setAttribute("type",i),t.type===i))),Dd}let Sh,hg,Pc,wy;function Go(t){return function zG(){if(null==Sh&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Sh=!0}))}finally{Sh=Sh||!1}return Sh}()?t:!!t.capture}function pI(){if(null==Pc){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Pc=!1,Pc;if("scrollBehavior"in document.documentElement.style)Pc=!0;else{const t=Element.prototype.scrollTo;Pc=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Pc}function Eh(){if("object"!=typeof document||!document)return 0;if(null==hg){const t=document.createElement("div"),i=t.style;t.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";const e=document.createElement("div"),n=e.style;n.width="2px",n.height="1px",t.appendChild(e),document.body.appendChild(t),hg=0,0===t.scrollLeft&&(t.scrollLeft=1,hg=0===t.scrollLeft?1:2),t.remove()}return hg}function Cy(t){if(function $G(){if(null==wy){const t=typeof document<"u"?document.head:null;wy=!(!t||!t.createShadowRoot&&!t.attachShadow)}return wy}()){const i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function fg(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const i=t.shadowRoot.activeElement;if(i===t)break;t=i}return t}function Zr(t){return t.composedPath?t.composedPath()[0]:t.target}function ky(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function yr(t,...i){return i.length?i.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}class iq extends yt{constructor(i,e){super()}schedule(i,e=0){return this}}const gg={setInterval(t,i,...e){const{delegate:n}=gg;return n?.setInterval?n.setInterval(t,i,...e):setInterval(t,i,...e)},clearInterval(t){const{delegate:i}=gg;return(i?.clearInterval||clearInterval)(t)},delegate:void 0};class Sy extends iq{constructor(i,e){super(i,e),this.scheduler=i,this.work=e,this.pending=!1}schedule(i,e=0){var n;if(this.closed)return this;this.state=i;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!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(o,this.id,e),this}requestAsyncId(i,e,n=0){return gg.setInterval(i.flush.bind(i,this),n)}recycleAsyncId(i,e,n=0){if(null!=n&&this.delay===n&&!1===this.pending)return e;null!=e&&gg.clearInterval(e)}execute(i,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(i,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(i,e){let r,n=!1;try{this.work(i)}catch(o){n=!0,r=o||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:i,scheduler:e}=this,{actions:n}=e;this.work=this.state=this.scheduler=null,this.pending=!1,Zo(n,this),null!=i&&(this.id=this.recycleAsyncId(e,i,null)),this.delay=null,super.unsubscribe()}}}class Mh{constructor(i,e=Mh.now){this.schedulerActionCtor=i,this.now=e}schedule(i,e=0,n){return new this.schedulerActionCtor(this,i).schedule(n,e)}}Mh.now=py.now;class Ey extends Mh{constructor(i,e=Mh.now){super(i,e),this.actions=[],this._active=!1}flush(i){const{actions:e}=this;if(this._active)return void e.push(i);let n;this._active=!0;do{if(n=i.execute(i.state,i.delay))break}while(i=e.shift());if(this._active=!1,n){for(;i=e.shift();)i.unsubscribe();throw n}}}const Ah=new Ey(Sy),nq=Ah;function Ed(t,i=Ah){return Wi((e,n)=>{let r=null,o=null,a=null;const s=()=>{if(r){r.unsubscribe(),r=null;const l=o;o=null,n.next(l)}};function c(){const l=a+t,d=i.now();if(d{o=l,a=i.now(),r||(r=i.schedule(c,t),n.add(r))},()=>{s(),n.complete()},void 0,()=>{o=r=null}))})}function Ty(t){return hi((i,e)=>t<=e)}function Lc(t,i=ys){return t=t??rq,Wi((e,n)=>{let r,o=!0;e.subscribe(Li(n,a=>{const s=i(a);(o||!t(r,s))&&(o=!1,r=s,n.next(a))}))})}function rq(t,i){return t===i}function Tt(t){return Wi((i,e)=>{Qn(t).subscribe(Li(e,()=>e.complete(),mr)),!e.closed&&i.subscribe(e)})}function $e(t){return null!=t&&"false"!=`${t}`}function An(t,i=0){return _I(t)?Number(t):i}function _I(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Ih(t){return Array.isArray(t)?t:[t]}function gn(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Ki(t){return t instanceof Ae?t.nativeElement:t}let bI=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),aq=(()=>{class t{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,n)=>this._cleanupObserver(n))}observe(e){const n=Ki(e);return new ni(r=>{const a=this._observeElement(n).subscribe(r);return()=>{a.unsubscribe(),this._unobserveElement(n)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const n=new Ce,r=this._mutationObserverFactory.create(o=>n.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:n,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:n,stream:r}=this._observedElements.get(e);n&&n.disconnect(),r.complete(),this._observedElements.delete(e)}}}return t.\u0275fac=function(e){return new(e||t)(G(bI))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),My=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=$e(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=An(e),this._subscribe()}constructor(e,n,r){this._contentObserver=e,this._elementRef=n,this._ngZone=r,this.event=new ke,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(Ed(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(b(aq),b(Ae),b(Ue))},t.\u0275dir=Q({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),_g=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({providers:[bI]}),t})();const vI=new Set;let Td,sq=(()=>{class t{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):lq}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function cq(t){if(!vI.has(t))try{Td||(Td=document.createElement("style"),Td.setAttribute("type","text/css"),document.head.appendChild(Td)),Td.sheet&&(Td.sheet.insertRule(`@media ${t} {body{ }}`,0),vI.add(t))}catch(i){console.error(i)}}(e),this._matchMedia(e)}}return t.\u0275fac=function(e){return new(e||t)(G(xi))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function lq(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let Ay=(()=>{class t{constructor(e,n){this._mediaMatcher=e,this._zone=n,this._queries=new Map,this._destroySubject=new Ce}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return xI(Ih(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let o=Ic(xI(Ih(e)).map(a=>this._registerQuery(a).observable));return o=sh(o.pipe(ui(1)),o.pipe(Ty(1),Ed(0))),o.pipe(Ye(a=>{const s={matches:!1,breakpoints:{}};return a.forEach(({matches:c,query:l})=>{s.matches=s.matches||c,s.breakpoints[l]=c}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const n=this._mediaMatcher.matchMedia(e),o={observable:new ni(a=>{const s=c=>this._zone.run(()=>a.next(c));return n.addListener(s),()=>{n.removeListener(s)}}).pipe(Vn(n),Ye(({matches:a})=>({query:e,matches:a})),Tt(this._destroySubject)),mql:n};return this._queries.set(e,o),o}}return t.\u0275fac=function(e){return new(e||t)(G(sq),G(Ue))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function xI(t){return t.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}function bg(t,i){return(t.getAttribute(i)||"").match(/\S+/g)||[]}const wI="cdk-describedby-message",vg="cdk-describedby-host";let Iy=0,CI=(()=>{class t{constructor(e,n){this._platform=n,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Iy++,this._document=e,this._id=ht(dd)+"-"+Iy++}describe(e,n,r){if(!this._canBeDescribed(e,n))return;const o=Fy(n,r);"string"!=typeof n?(kI(n,this._id),this._messageRegistry.set(o,{messageElement:n,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(n,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,n,r){if(!n||!this._isElementNode(e))return;const o=Fy(n,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),"string"==typeof n){const a=this._messageRegistry.get(o);a&&0===a.referenceCount&&this._deleteMessageElement(o)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${vg}="${this._id}"]`);for(let n=0;n0!=r.indexOf(wI));e.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(e,n){const r=this._messageRegistry.get(n);(function uq(t,i,e){const n=bg(t,i);n.some(r=>r.trim()==e.trim())||(n.push(e.trim()),t.setAttribute(i,n.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(vg,this._id),r.referenceCount++}_removeMessageReference(e,n){const r=this._messageRegistry.get(n);r.referenceCount--,function hq(t,i,e){const r=bg(t,i).filter(o=>o!=e.trim());r.length?t.setAttribute(i,r.join(" ")):t.removeAttribute(i)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(vg)}_isElementDescribedByMessage(e,n){const r=bg(e,"aria-describedby"),o=this._messageRegistry.get(n),a=o&&o.messageElement.id;return!!a&&-1!=r.indexOf(a)}_canBeDescribed(e,n){if(!this._isElementNode(e))return!1;if(n&&"object"==typeof n)return!0;const r=null==n?"":`${n}`.trim(),o=e.getAttribute("aria-label");return!(!r||o&&o.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(G(it),G(xi))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Fy(t,i){return"string"==typeof t?`${i||""}/${t}`:t}function kI(t,i){t.id||(t.id=`${wI}-${i}-${Iy++}`)}class DI{constructor(i){this._items=i,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Ce,this._typeaheadSubscription=yt.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 Ce,this.change=new Ce,i instanceof Ec&&(this._itemChangesSubscription=i.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}}))}skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=!0){return this._wrap=i,this}withVerticalOrientation(i=!0){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Ui(e=>this._pressedLetters.push(e)),Ed(i),hi(()=>this._pressedLetters.length>0),Ye(()=>this._pressedLetters.join(""))).subscribe(e=>{const n=this._getItemsArray();for(let r=1;r!i[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,a=this._getItemsArray().length;this._setActiveItemByIndex(o=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],i.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(i){const e=this._getItemsArray(),n="number"==typeof i?i:e.indexOf(i);this._activeItem=e[n]??null,this._activeItemIndex=n}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(i){this._wrap?this._setActiveInWrapMode(i):this._setActiveInDefaultMode(i)}_setActiveInWrapMode(i){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const r=(this._activeItemIndex+i*n+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(i){this._setActiveItemByIndex(this._activeItemIndex+i,i)}_setActiveItemByIndex(i,e){const n=this._getItemsArray();if(n[i]){for(;this._skipPredicateFn(n[i]);)if(!n[i+=e])return;this.setActiveItem(i)}}_getItemsArray(){return this._items instanceof Ec?this._items.toArray():this._items}}class SI extends DI{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}}class Ry extends DI{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}}let xg=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function mq(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 n=function fq(t){try{return t.frameElement}catch{return null}}(function wq(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(e));if(n&&(-1===TI(n)||!this.isVisible(n)))return!1;let r=e.nodeName.toLowerCase(),o=TI(e);return e.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function xq(t){let i=t.nodeName.toLowerCase(),e="input"===i&&t.type;return"text"===e||"password"===e||"select"===i||"textarea"===i}(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,n){return function yq(t){return!function gq(t){return function bq(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function pq(t){let i=t.nodeName.toLowerCase();return"input"===i||"select"===i||"button"===i||"textarea"===i}(t)||function _q(t){return function vq(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||EI(t))}(e)&&!this.isDisabled(e)&&(n?.ignoreVisibility||this.isVisible(e))}}return t.\u0275fac=function(e){return new(e||t)(G(xi))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function EI(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let i=t.getAttribute("tabindex");return!(!i||isNaN(parseInt(i,10)))}function TI(t){if(!EI(t))return null;const i=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}class Cq{get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}constructor(i,e,n,r,o=!1){this._element=i,this._checker=e,this._ngZone=n,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}destroy(){const i=this._startAnchor,e=this._endAnchor;i&&(i.removeEventListener("focus",this.startAnchorListener),i.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(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(i)))})}focusFirstTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(i)))})}focusLastTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(i)))})}_getRegionBoundary(i){const e=this._element.querySelectorAll(`[cdk-focus-region-${i}], [cdkFocusRegion${i}], [cdk-focus-${i}]`);return"start"==i?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(i){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const n=this._getFirstTabbableElement(e);return n?.focus(i),!!n}return e.focus(i),!0}return this.focusFirstTabbableElement(i)}focusFirstTabbableElement(i){const e=this._getRegionBoundary("start");return e&&e.focus(i),!!e}focusLastTabbableElement(i){const e=this._getRegionBoundary("end");return e&&e.focus(i),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;const e=i.children;for(let n=0;n=0;n--){const r=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(r)return r}return null}_createAnchor(){const i=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,i),i.classList.add("cdk-visually-hidden"),i.classList.add("cdk-focus-trap-anchor"),i.setAttribute("aria-hidden","true"),i}_toggleAnchorTabIndex(i,e){i?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(i){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_executeOnStable(i){this._ngZone.isStable?i():this._ngZone.onStable.pipe(ui(1)).subscribe(i)}}let Oy=(()=>{class t{constructor(e,n,r){this._checker=e,this._ngZone=n,this._document=r}create(e,n=!1){return new Cq(e,this._checker,this._ngZone,this._document,n)}}return t.\u0275fac=function(e){return new(e||t)(G(xg),G(Ue),G(it))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function yg(t){return 0===t.buttons||0===t.offsetX&&0===t.offsetY}function wg(t){const i=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!i||-1!==i.identifier||null!=i.radiusX&&1!==i.radiusX||null!=i.radiusY&&1!==i.radiusY)}const kq=new ae("cdk-input-modality-detector-options"),Dq={ignoreKeys:[18,17,224,91,16]},Md=Go({passive:!0,capture:!0});let Sq=(()=>{class t{get mostRecentModality(){return this._modality.value}constructor(e,n,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new Bn(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(s=>s===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Zr(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(yg(a)?"keyboard":"mouse"),this._mostRecentTarget=Zr(a))},this._onTouchstart=a=>{wg(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Zr(a))},this._options={...Dq,...o},this.modalityDetected=this._modality.pipe(Ty(1)),this.modalityChanged=this.modalityDetected.pipe(Lc()),e.isBrowser&&n.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Md),r.addEventListener("mousedown",this._onMousedown,Md),r.addEventListener("touchstart",this._onTouchstart,Md)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Md),document.removeEventListener("mousedown",this._onMousedown,Md),document.removeEventListener("touchstart",this._onTouchstart,Md))}}return t.\u0275fac=function(e){return new(e||t)(G(xi),G(Ue),G(it),G(kq,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Eq=new ae("liveAnnouncerElement",{providedIn:"root",factory:function Tq(){return null}}),Mq=new ae("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Aq=0,Py=(()=>{class t{constructor(e,n,r,o){this._ngZone=n,this._defaultOptions=o,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...n){const r=this._defaultOptions;let o,a;return 1===n.length&&"number"==typeof n[0]?a=n[0]:[o,a]=n,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),null==a&&r&&(a=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(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof a&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",n=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,n,r,o,a){this._ngZone=e,this._platform=n,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 Ce,this._rootNodeFocusAndBlurListener=s=>{for(let l=Zr(s);l;l=l.parentElement)"focus"===s.type?this._onFocus(s,l):this._onBlur(s,l)},this._document=o,this._detectionMode=a?.detectionMode||0}monitor(e,n=!1){const r=Ki(e);if(!this._platform.isBrowser||1!==r.nodeType)return ze(null);const o=Cy(r)||this._getDocument(),a=this._elementInfo.get(r);if(a)return n&&(a.checkChildren=!0),a.subject;const s={checkChildren:n,subject:new Ce,rootNode:o};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){const n=Ki(e),r=this._elementInfo.get(n);r&&(r.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(r))}focusVia(e,n,r){const o=Ki(e);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([s,c])=>this._originChanged(s,n,c)):(this._setOrigin(n),"function"==typeof o.focus&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,n)=>this.stopMonitoring(n))}_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,n){e.classList.toggle("cdk-focused",!!n),e.classList.toggle("cdk-touch-focused","touch"===n),e.classList.toggle("cdk-keyboard-focused","keyboard"===n),e.classList.toggle("cdk-mouse-focused","mouse"===n),e.classList.toggle("cdk-program-focused","program"===n)}_setOrigin(e,n=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&n,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,n){const r=this._elementInfo.get(n),o=Zr(e);!r||!r.checkChildren&&n!==o||this._originChanged(n,this._getFocusOrigin(o),r)}_onBlur(e,n){const r=this._elementInfo.get(n);!r||r.checkChildren&&e.relatedTarget instanceof Node&&n.contains(e.relatedTarget)||(this._setClasses(n),this._emitOrigin(r,null))}_emitOrigin(e,n){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(n))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const n=e.rootNode,r=this._rootNodeFocusListenerCount.get(n)||0;r||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,Cg),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,Cg)}),this._rootNodeFocusListenerCount.set(n,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Tt(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){const n=e.rootNode;if(this._rootNodeFocusListenerCount.has(n)){const r=this._rootNodeFocusListenerCount.get(n);r>1?this._rootNodeFocusListenerCount.set(n,r-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Cg),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Cg),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,n,r){this._setClasses(e,n),this._emitOrigin(r,n),this._lastFocusOrigin=n}_getClosestElementsInfo(e){const n=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&n.push([o,r])}),n}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:n,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!n||n===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const o=e.labels;if(o)for(let a=0;a{class t{constructor(e,n){this._elementRef=e,this._focusMonitor=n,this._focusOrigin=null,this.cdkFocusChange=new ke}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(n=>{this._focusOrigin=n,this.cdkFocusChange.emit(n)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(bo))},t.\u0275dir=Q({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),t})();const AI="cdk-high-contrast-black-on-white",II="cdk-high-contrast-white-on-black",Ny="cdk-high-contrast-active";let FI=(()=>{class t{constructor(e,n){this._platform=e,this._document=n,this._breakpointSubscription=ht(Ay).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 n=this._document.defaultView||window,r=n&&n.getComputedStyle?n.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(Ny,AI,II),this._hasCheckedHighContrastMode=!0;const n=this.getHighContrastMode();1===n?e.add(Ny,AI):2===n&&e.add(Ny,II)}}}return t.\u0275fac=function(e){return new(e||t)(G(xi),G(it))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ly=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(G(FI))},t.\u0275mod=st({type:t}),t.\u0275inj=ot({imports:[_g]}),t})();const Rq=new ae("cdk-dir-doc",{providedIn:"root",factory:function Oq(){return ht(it)}}),Pq=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let _n=(()=>{class t{constructor(e){this.value="ltr",this.change=new ke,e&&(this.value=function Nq(t){const i=t?.toLowerCase()||"";return"auto"===i&&typeof navigator<"u"&&navigator?.language?Pq.test(navigator.language)?"rtl":"ltr":"rtl"===i?"rtl":"ltr"}((e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(G(Rq,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Fh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({}),t})();const Lq=["text"];function Bq(t,i){if(1&t&&Ee(0,"mat-pseudo-checkbox",6),2&t){const e=q();I("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function Vq(t,i){1&t&&Ee(0,"mat-pseudo-checkbox",7),2&t&&I("disabled",q().disabled)}function Hq(t,i){if(1&t&&(v(0,"span",8),M(1),y()),2&t){const e=q();k(1),It("(",e.group.label,")")}}const Uq=[[["mat-icon"]],"*"],zq=["mat-icon","*"];let $q=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),jq=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const Gq=new ae("mat-sanity-checks",{providedIn:"root",factory:function Wq(){return!0}});let xt=(()=>{class t{constructor(e,n,r){this._sanityChecks=n,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!ky()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return t.\u0275fac=function(e){return new(e||t)(G(FI),G(Gq,8),G(it))},t.\u0275mod=st({type:t}),t.\u0275inj=ot({imports:[Fh,Fh]}),t})();function ts(t){return class extends t{get disabled(){return this._disabled}set disabled(i){this._disabled=$e(i)}constructor(...i){super(...i),this._disabled=!1}}}function Ls(t,i){return class extends t{get color(){return this._color}set color(e){const n=e||this.defaultColor;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),n&&this._elementRef.nativeElement.classList.add(`mat-${n}`),this._color=n)}constructor(...e){super(...e),this.defaultColor=i,this.color=i}}}function Bs(t){return class extends t{get disableRipple(){return this._disableRipple}set disableRipple(i){this._disableRipple=$e(i)}constructor(...i){super(...i),this._disableRipple=!1}}}function Rh(t,i=0){return class extends t{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?An(e):this.defaultTabIndex}constructor(...e){super(...e),this._tabIndex=i,this.defaultTabIndex=i}}}function PI(t){return class extends t{updateErrorState(){const i=this.errorState,o=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);o!==i&&(this.errorState=o,this.stateChanges.next())}constructor(...i){super(...i),this.errorState=!1}}}function qq(t){return class extends t{constructor(...i){super(...i),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new ni(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(i){i.next(),i.complete()}}}let NI=(()=>{class t{isErrorState(e,n){return!!(e&&e.invalid&&(e.touched||n&&n.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class Qq{constructor(i,e,n,r=!1){this._renderer=i,this.element=e,this.config=n,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const LI=Go({passive:!0,capture:!0});class Yq{constructor(){this._events=new Map,this._delegateEventHandler=i=>{const e=Zr(i);e&&this._events.get(i.type)?.forEach((n,r)=>{(r===e||r.contains(e))&&n.forEach(o=>o.handleEvent(i))})}}addHandler(i,e,n,r){const o=this._events.get(e);if(o){const a=o.get(n);a?a.add(r):o.set(n,new Set([r]))}else this._events.set(e,new Map([[n,new Set([r])]])),i.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,LI)})}removeHandler(i,e,n){const r=this._events.get(i);if(!r)return;const o=r.get(e);o&&(o.delete(n),0===o.size&&r.delete(e),0===r.size&&(this._events.delete(i),document.removeEventListener(i,this._delegateEventHandler,LI)))}}const BI={enterDuration:225,exitDuration:150},VI=Go({passive:!0,capture:!0}),HI=["mousedown","touchstart"],UI=["mouseup","mouseleave","touchend","touchcancel"];class Ad{constructor(i,e,n,r){this._target=i,this._ngZone=e,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Ki(n))}fadeInRipple(i,e,n={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...BI,...n.animation};n.centered&&(i=r.left+r.width/2,e=r.top+r.height/2);const a=n.radius||function Zq(t,i,e){const n=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),r=Math.max(Math.abs(i-e.top),Math.abs(i-e.bottom));return Math.sqrt(n*n+r*r)}(i,e,r),s=i-r.left,c=e-r.top,l=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=s-a+"px",d.style.top=c-a+"px",d.style.height=2*a+"px",d.style.width=2*a+"px",null!=n.color&&(d.style.backgroundColor=n.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 Qq(this,d,n,m);d.style.transform="scale3d(1, 1, 1)",g.state=0,n.persistent||(this._mostRecentTransientRipple=g);let p=null;return!m&&(l||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const _=()=>this._finishRippleTransition(g),w=()=>this._destroyRipple(g);d.addEventListener("transitionend",_),d.addEventListener("transitioncancel",w),p={onTransitionEnd:_,onTransitionCancel:w}}),this._activeRipples.set(g,p),(m||!l)&&this._finishRippleTransition(g),g}fadeOutRipple(i){if(2===i.state||3===i.state)return;const e=i.element,n={...BI,...i.config.animation};e.style.transitionDuration=`${n.exitDuration}ms`,e.style.opacity="0",i.state=2,(i._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(i)}fadeOutAll(){this._getActiveRipples().forEach(i=>i.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(i=>{i.config.persistent||i.fadeOut()})}setupTriggerEvents(i){const e=Ki(i);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,HI.forEach(n=>{Ad._eventManager.addHandler(this._ngZone,n,e,this)}))}handleEvent(i){"mousedown"===i.type?this._onMousedown(i):"touchstart"===i.type?this._onTouchStart(i):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{UI.forEach(e=>{this._triggerElement.addEventListener(e,this,VI)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(i){0===i.state?this._startFadeOutTransition(i):2===i.state&&this._destroyRipple(i)}_startFadeOutTransition(i){const e=i===this._mostRecentTransientRipple,{persistent:n}=i.config;i.state=1,!n&&(!e||!this._isPointerDown)&&i.fadeOut()}_destroyRipple(i){const e=this._activeRipples.get(i)??null;this._activeRipples.delete(i),this._activeRipples.size||(this._containerRect=null),i===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),i.state=3,null!==e&&(i.element.removeEventListener("transitionend",e.onTransitionEnd),i.element.removeEventListener("transitioncancel",e.onTransitionCancel)),i.element.remove()}_onMousedown(i){const e=yg(i),n=this._lastTouchStartEvent&&Date.now(){!i.config.persistent&&(1===i.state||i.config.terminateOnPointerUp&&0===i.state)&&i.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const i=this._triggerElement;i&&(HI.forEach(e=>Ad._eventManager.removeHandler(e,i,this)),this._pointerUpEventsRegistered&&UI.forEach(e=>i.removeEventListener(e,this,VI)))}}Ad._eventManager=new Yq;const By=new ae("mat-ripple-global-options");let vo=(()=>{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,n,r,o,a){this._elementRef=e,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new Ad(this,n,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,n=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,n,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Ue),b(xi),b(By,8),b(Ri,8))},t.\u0275dir=Q({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,n){2&e&&Xe("mat-ripple-unbounded",n.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),t})(),Vs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({imports:[xt,xt]}),t})(),Jq=(()=>{class t{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}}return t.\u0275fac=function(e){return new(e||t)(b(Ri,8))},t.\u0275cmp=je({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(e,n){2&e&&Xe("mat-pseudo-checkbox-indeterminate","indeterminate"===n.state)("mat-pseudo-checkbox-checked","checked"===n.state)("mat-pseudo-checkbox-disabled",n.disabled)("mat-pseudo-checkbox-minimal","minimal"===n.appearance)("mat-pseudo-checkbox-full","full"===n.appearance)("_mat-animation-noopable","NoopAnimations"===n._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(e,n){},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}),t})(),zI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({imports:[xt]}),t})();const Vy=new ae("MAT_OPTION_PARENT_COMPONENT"),Hy=new ae("MatOptgroup");let eX=0;class $I{constructor(i,e=!1){this.source=i,this.isUserInput=e}}let tX=(()=>{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(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(e,n,r,o){this._element=e,this._changeDetectorRef=n,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+eX++,this.onSelectionChange=new ke,this._stateChanges=new Ce}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,n){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(n)}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)&&!yr(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 $I(this,e))}}return t.\u0275fac=function(e){aa()},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&at(Lq,7),2&e){let r;xe(r=ye())&&(n._text=r.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),Hs=(()=>{class t extends tX{constructor(e,n,r,o){super(e,n,r,o)}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Gt),b(Vy,8),b(Hy,8))},t.\u0275cmp=je({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(e,n){1&e&&X("click",function(){return n._selectViaInteraction()})("keydown",function(o){return n._handleKeydown(o)}),2&e&&(ua("id",n.id),rt("aria-selected",n.selected)("aria-disabled",n.disabled.toString()),Xe("mdc-list-item--selected",n.selected)("mat-mdc-option-multiple",n.multiple)("mat-mdc-option-active",n.active)("mdc-list-item--disabled",n.disabled))},exportAs:["matOption"],features:[pe],ngContentSelectors:zq,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-mdc-option-pseudo-checkbox",3,"state","disabled"],["state","checked","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(e,n){1&e&&(vi(Uq),H(0,Bq,1,2,"mat-pseudo-checkbox",0),Je(1),v(2,"span",1,2),Je(4,1),y(),H(5,Vq,1,1,"mat-pseudo-checkbox",3),H(6,Hq,2,1,"span",4),Ee(7,"div",5)),2&e&&(I("ngIf",n.multiple),k(5),I("ngIf",!n.multiple&&n.selected&&!n.hideSingleSelectionIndicator),k(1),I("ngIf",n.group&&n.group._inert),k(1),I("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disabled||n.disableRipple))},dependencies:[vo,hn,Jq],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;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);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.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{opacity:.38;cursor:default}.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}),t})();function jI(t,i,e){if(e.length){let n=i.toArray(),r=e.toArray(),o=0;for(let a=0;ae+n?Math.max(0,t-n+i):e}let kg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({imports:[Vs,ir,xt,zI]}),t})();const GI=["mat-button",""],qI=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],XI=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],QI=".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}",nX=["mat-icon-button",""],rX=["*"],oX=[{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"]}],aX=Ls(ts(Bs(class{constructor(t){this._elementRef=t}})));let Uy=(()=>{class t extends aX{constructor(e,n,r,o){super(e),this._platform=n,this._ngZone=r,this._animationMode=o,this._focusMonitor=ht(bo),this._isFab=!1;const a=e.nativeElement.classList;for(const s of oX)this._hasHostAttributes(s.selector)&&s.mdcClasses.forEach(c=>{a.add(c)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e="program",n){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,n):this._elementRef.nativeElement.focus(n)}_hasHostAttributes(...e){return e.some(n=>this._elementRef.nativeElement.hasAttribute(n))}_isRippleDisabled(){return this.disableRipple||this.disabled}}return t.\u0275fac=function(e){aa()},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&at(vo,5),2&e){let r;xe(r=ye())&&(n.ripple=r.first)}},features:[pe]}),t})(),cX=(()=>{class t extends Uy{constructor(e,n,r,o){super(e,n,r,o),this._haltDisabledEvents=a=>{this.disabled&&(a.preventDefault(),a.stopImmediatePropagation())}}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}return t.\u0275fac=function(e){aa()},t.\u0275dir=Q({type:t,features:[pe]}),t})(),xo=(()=>{class t extends Uy{constructor(e,n,r,o){super(e,n,r,o)}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(xi),b(Ue),b(Ri,8))},t.\u0275cmp=je({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(e,n){2&e&&(rt("disabled",n.disabled||null),Xe("_mat-animation-noopable","NoopAnimations"===n._animationMode)("mat-unthemed",!n.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[pe],attrs:GI,ngContentSelectors:XI,decls:8,vars:6,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(e,n){1&e&&(vi(qI),Ee(0,"span",0),Je(1),v(2,"span",1),Je(3,1),y(),Je(4,2),Ee(5,"span",2)(6,"span",3)(7,"span",4)),2&e&&(Xe("mdc-button__ripple",!n._isFab)("mdc-fab__ripple",n._isFab),k(6),I("matRippleDisabled",n._isRippleDisabled())("matRippleTrigger",n._elementRef.nativeElement))},dependencies:[vo],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-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}),t})(),lX=(()=>{class t extends cX{constructor(e,n,r,o){super(e,n,r,o)}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(xi),b(Ue),b(Ri,8))},t.\u0275cmp=je({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:9,hostBindings:function(e,n){2&e&&(rt("disabled",n.disabled||null)("tabindex",n.disabled?-1:n.tabIndex)("aria-disabled",n.disabled.toString()),Xe("_mat-animation-noopable","NoopAnimations"===n._animationMode)("mat-unthemed",!n.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[pe],attrs:GI,ngContentSelectors:XI,decls:8,vars:6,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(e,n){1&e&&(vi(qI),Ee(0,"span",0),Je(1),v(2,"span",1),Je(3,1),y(),Je(4,2),Ee(5,"span",2)(6,"span",3)(7,"span",4)),2&e&&(Xe("mdc-button__ripple",!n._isFab)("mdc-fab__ripple",n._isFab),k(6),I("matRippleDisabled",n._isRippleDisabled())("matRippleTrigger",n._elementRef.nativeElement))},dependencies:[vo],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-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)}',QI],encapsulation:2,changeDetection:0}),t})(),is=(()=>{class t extends Uy{constructor(e,n,r,o){super(e,n,r,o)}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(xi),b(Ue),b(Ri,8))},t.\u0275cmp=je({type:t,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(e,n){2&e&&(rt("disabled",n.disabled||null),Xe("_mat-animation-noopable","NoopAnimations"===n._animationMode)("mat-unthemed",!n.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[pe],attrs:nX,ngContentSelectors:rX,decls:5,vars:3,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(e,n){1&e&&(vi(),Ee(0,"span",0),Je(1),Ee(2,"span",1)(3,"span",2)(4,"span",3)),2&e&&(k(3),I("matRippleDisabled",n._isRippleDisabled())("matRippleCentered",!0)("matRippleTrigger",n._elementRef.nativeElement))},dependencies:[vo],styles:['.mdc-icon-button{font-size:24px;width:48px;height:48px;padding:12px}.mdc-icon-button .mdc-icon-button__focus-ring{max-height:48px;max-width:48px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:40px;height:40px;margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:40px;max-width:40px}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button svg,.mdc-icon-button img{width:24px;height:24px}.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, 48px);width:var(--mdc-icon-button-state-layer-size, 48px);color:var(--mdc-icon-button-icon-color, inherit);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity, 0.38)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color, #000)}.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-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}',QI],encapsulation:2,changeDetection:0}),t})(),YI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({imports:[xt,Vs,xt]}),t})();class KI{}class uX{}const ns="*";function bn(t,i){return{type:7,name:t,definitions:i,options:{}}}function fi(t,i=null){return{type:4,styles:i,timings:t}}function zy(t,i=null){return{type:3,steps:t,options:i}}function ZI(t,i=null){return{type:2,steps:t,options:i}}function nt(t){return{type:6,styles:t,offset:null}}function ii(t,i,e){return{type:0,name:t,styles:i,options:e}}function Dg(t){return{type:5,steps:t}}function ai(t,i,e=null){return{type:1,expr:t,animation:i,options:e}}function Sg(t=null){return{type:9,options:t}}function Eg(t,i,e=null){return{type:11,selector:t,animation:i,options:e}}function JI(t){Promise.resolve().then(t)}class Ph{constructor(i=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=i+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){JI(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(i){this._position=this.totalTime?i*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(i){const e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class eF{constructor(i){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=i;let e=0,n=0,r=0;const o=this.players.length;0==o?JI(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==o&&this._onFinish()}),a.onDestroy(()=>{++n==o&&this._onDestroy()}),a.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this.players.forEach(i=>i.init())}onStart(i){this._onStartFns.push(i)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[])}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play())}pause(){this.players.forEach(i=>i.pause())}restart(){this.players.forEach(i=>i.restart())}finish(){this._onFinish(),this.players.forEach(i=>i.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(i){const e=i*this.totalTime;this.players.forEach(n=>{const r=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(r)})}getPosition(){const i=this.players.reduce((e,n)=>null===e||n.totalTime>e.totalTime?n:e,null);return null!=i?i.getPosition():0}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy()})}triggerCallback(i){const e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}const $y="!";class jy{attach(i){return this._attachedHost=i,i.attach(this)}detach(){let i=this._attachedHost;null!=i&&(this._attachedHost=null,i.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(i){this._attachedHost=i}}class Id extends jy{constructor(i,e,n,r,o){super(),this.component=i,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=r,this.projectableNodes=o}}class rs extends jy{constructor(i,e,n,r){super(),this.templateRef=i,this.viewContainerRef=e,this.context=n,this.injector=r}get origin(){return this.templateRef.elementRef}attach(i,e=this.context){return this.context=e,super.attach(i)}detach(){return this.context=void 0,super.detach()}}class hX extends jy{constructor(i){super(),this.element=i instanceof Ae?i.nativeElement:i}}class Tg{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(i){return i instanceof Id?(this._attachedPortal=i,this.attachComponentPortal(i)):i instanceof rs?(this._attachedPortal=i,this.attachTemplatePortal(i)):this.attachDomPortal&&i instanceof hX?(this._attachedPortal=i,this.attachDomPortal(i)):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(i){this._disposeFn=i}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class fX extends Tg{constructor(i,e,n,r,o){super(),this.outletElement=i,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=r,this.attachDomPortal=a=>{const s=a.element,c=this._document.createComment("dom-portal");s.parentNode.insertBefore(c,s),this.outletElement.appendChild(s),this._attachedPortal=a,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(s,c)})},this._document=o}attachComponentPortal(i){const n=(i.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(i.component);let r;return i.viewContainerRef?(r=i.viewContainerRef.createComponent(n,i.viewContainerRef.length,i.injector||i.viewContainerRef.injector,i.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=n.create(i.injector||this._defaultInjector||en.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=i,r}attachTemplatePortal(i){let e=i.viewContainerRef,n=e.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return n.rootNodes.forEach(r=>this.outletElement.appendChild(r)),n.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(n);-1!==r&&e.remove(r)}),this._attachedPortal=i,n}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(i){return i.hostView.rootNodes[0]}}let mX=(()=>{class t extends rs{constructor(e,n){super(e,n)}}return t.\u0275fac=function(e){return new(e||t)(b(_i),b(Fi))},t.\u0275dir=Q({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[pe]}),t})(),os=(()=>{class t extends Tg{constructor(e,n,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=n,this._isInitialized=!1,this.attached=new ke,this.attachDomPortal=o=>{const a=o.element,s=this._document.createComment("dom-portal");o.setAttachedHost(this),a.parentNode.insertBefore(s,a),this._getRootNode().appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{s.parentNode&&s.parentNode.replaceChild(a,s)})},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 n=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=n.createComponent(o,n.length,e.injector||n.injector,e.projectableNodes||void 0);return n!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(e){e.setAttachedHost(this);const n=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=n,this.attached.emit(n),n}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return t.\u0275fac=function(e){return new(e||t)(b(ks),b(Fi),b(it))},t.\u0275dir=Q({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[pe]}),t})(),Bc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({}),t})();const pX=["addListener","removeListener"],gX=["addEventListener","removeEventListener"],_X=["on","off"];function ga(t,i,e,n){if(Wt(e)&&(n=e,e=void 0),n)return ga(t,i,e).pipe(Rx(n));const[r,o]=function xX(t){return Wt(t.addEventListener)&&Wt(t.removeEventListener)}(t)?gX.map(a=>s=>t[a](i,s,e)):function bX(t){return Wt(t.addListener)&&Wt(t.removeListener)}(t)?pX.map(tF(t,i)):function vX(t){return Wt(t.on)&&Wt(t.off)}(t)?_X.map(tF(t,i)):[];if(!r&&R_(t))return Sn(a=>ga(a,i,e))(Qn(t));if(!r)throw new TypeError("Invalid event target");return new ni(a=>{const s=(...c)=>a.next(1o(s)})}function tF(t,i){return e=>n=>t[e](i,n)}const Nh={schedule(t){let i=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:n}=Nh;n&&(i=n.requestAnimationFrame,e=n.cancelAnimationFrame);const r=i(o=>{e=void 0,t(o)});return new yt(()=>e?.(r))},requestAnimationFrame(...t){const{delegate:i}=Nh;return(i?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){const{delegate:i}=Nh;return(i?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0},iF=new class wX extends Ey{flush(i){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:n}=this;let r;i=i||n.shift();do{if(r=i.execute(i.state,i.delay))break}while((i=n[0])&&i.id===e&&n.shift());if(this._active=!1,r){for(;(i=n[0])&&i.id===e&&n.shift();)i.unsubscribe();throw r}}}(class yX extends Sy{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return null!==n&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i._scheduled||(i._scheduled=Nh.requestAnimationFrame(()=>i.flush(void 0))))}recycleAsyncId(i,e,n=0){var r;if(null!=n?n>0:this.delay>0)return super.recycleAsyncId(i,e,n);const{actions:o}=i;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(Nh.cancelAnimationFrame(e),i._scheduled=void 0)}});let Wy,CX=1;const Mg={};function nF(t){return t in Mg&&(delete Mg[t],!0)}const kX={setImmediate(t){const i=CX++;return Mg[i]=!0,Wy||(Wy=Promise.resolve()),Wy.then(()=>nF(i)&&t()),i},clearImmediate(t){nF(t)}},{setImmediate:DX,clearImmediate:SX}=kX,Ag={setImmediate(...t){const{delegate:i}=Ag;return(i?.setImmediate||DX)(...t)},clearImmediate(t){const{delegate:i}=Ag;return(i?.clearImmediate||SX)(t)},delegate:void 0},Gy=new class TX extends Ey{flush(i){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:n}=this;let r;i=i||n.shift();do{if(r=i.execute(i.state,i.delay))break}while((i=n[0])&&i.id===e&&n.shift());if(this._active=!1,r){for(;(i=n[0])&&i.id===e&&n.shift();)i.unsubscribe();throw r}}}(class EX extends Sy{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return null!==n&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i._scheduled||(i._scheduled=Ag.setImmediate(i.flush.bind(i,void 0))))}recycleAsyncId(i,e,n=0){var r;if(null!=n?n>0:this.delay>0)return super.recycleAsyncId(i,e,n);const{actions:o}=i;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(Ag.clearImmediate(e),i._scheduled=void 0)}});function Ig(t=0,i,e=nq){let n=-1;return null!=i&&(nk(i)?e=i:n=i),new ni(r=>{let o=function AX(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;o<0&&(o=0);let a=0;return e.schedule(function(){r.closed||(r.next(a++),0<=n?this.schedule(void 0,n):r.complete())},o)})}function qy(t,i=Ah){return function MX(t){return Wi((i,e)=>{let n=!1,r=null,o=null,a=!1;const s=()=>{if(o?.unsubscribe(),o=null,n){n=!1;const l=r;r=null,e.next(l)}a&&e.complete()},c=()=>{o=null,a&&e.complete()};i.subscribe(Li(e,l=>{n=!0,r=l,o||Qn(t(l)).subscribe(o=Li(e,s,c))},()=>{a=!0,(!n||!o||o.closed)&&e.complete()}))})}(()=>Ig(t,i))}const IX=["contentWrapper"],FX=["*"],RX=new ae("VIRTUAL_SCROLL_STRATEGY");let Fd=(()=>{class t{constructor(e,n,r){this._ngZone=e,this._platform=n,this._scrolled=new Ce,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 n=this.scrollContainers.get(e);n&&(n.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new ni(n=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(qy(e)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):ze()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(e,n){const r=this.getAncestorScrollContainers(e);return this.scrolled(n).pipe(hi(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){const n=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&n.push(o)}),n}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,n){let r=Ki(n),o=e.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>ga(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(G(Ue),G(xi),G(it,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),rF=(()=>{class t{constructor(e,n,r,o){this.elementRef=e,this.scrollDispatcher=n,this.ngZone=r,this.dir=o,this._destroyed=new Ce,this._elementScrolled=new ni(a=>this.ngZone.runOutsideAngular(()=>ga(this.elementRef.nativeElement,"scroll").pipe(Tt(this._destroyed)).subscribe(a)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const n=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=n.scrollHeight-n.clientHeight-e.bottom),r&&0!=Eh()?(null!=e.left&&(e.right=n.scrollWidth-n.clientWidth-e.left),2==Eh()?e.left=e.right:1==Eh()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=n.scrollWidth-n.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const n=this.elementRef.nativeElement;pI()?n.scrollTo(e):(null!=e.top&&(n.scrollTop=e.top),null!=e.left&&(n.scrollLeft=e.left))}measureScrollOffset(e){const n="left",r="right",o=this.elementRef.nativeElement;if("top"==e)return o.scrollTop;if("bottom"==e)return o.scrollHeight-o.clientHeight-o.scrollTop;const a=this.dir&&"rtl"==this.dir.value;return"start"==e?e=a?r:n:"end"==e&&(e=a?n:r),a&&2==Eh()?e==n?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:a&&1==Eh()?e==n?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==n?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Fd),b(Ue),b(_n,8))},t.\u0275dir=Q({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),t})(),_a=(()=>{class t{constructor(e,n,r){this._platform=e,this._change=new Ce,this._changeListener=o=>{this._change.next(o)},this._document=r,n.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:n,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+n,height:r,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,n=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect();return{top:-o.top||e.body.scrollTop||n.scrollY||r.scrollTop||0,left:-o.left||e.body.scrollLeft||n.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(qy(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}}}return t.\u0275fac=function(e){return new(e||t)(G(xi),G(Ue),G(it,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const oF=new ae("VIRTUAL_SCROLLABLE");let NX=(()=>{class t extends rF{constructor(e,n,r,o){super(e,n,r,o)}measureViewportSize(e){const n=this.elementRef.nativeElement;return"horizontal"===e?n.clientWidth:n.clientHeight}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Fd),b(Ue),b(_n,8))},t.\u0275dir=Q({type:t,features:[pe]}),t})();const BX=typeof requestAnimationFrame<"u"?iF:Gy;let VX=(()=>{class t extends NX{get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=$e(e)}constructor(e,n,r,o,a,s,c,l){super(e,s,r,a),this.elementRef=e,this._changeDetectorRef=n,this._scrollStrategy=o,this.scrollable=l,this._platform=ht(xi),this._detachedSubject=new Ce,this._renderedRangeSubject=new Ce,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new ni(d=>this._scrollStrategy.scrolledIndexChange.subscribe(u=>Promise.resolve().then(()=>this.ngZone.run(()=>d.next(u))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=yt.EMPTY,this._viewportChanges=c.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(Vn(null),qy(0,BX)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(Tt(this._detachedSubject)).subscribe(n=>{const r=n.length;r!==this._dataLength&&(this._dataLength=r,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function LX(t,i){return t.start==i.start&&t.end==i.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,n="to-start"){e=this.appendOnly&&"to-start"===n?0:e;const o="horizontal"==this.orientation,a=o?"X":"Y";let c=`translate${a}(${Number((o&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===n&&(c+=` translate${a}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=c&&(this._renderedContentTransform=c,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,n="auto"){const r={behavior:n};"horizontal"===this.orientation?r.start=e:r.top=e,this.scrollable.scrollTo(r)}scrollToIndex(e,n="auto"){this._scrollStrategy.scrollToIndex(e,n)}measureScrollOffset(e){let n;return n=this.scrollable==this?r=>super.measureScrollOffset(r):r=>this.scrollable.measureScrollOffset(r),Math.max(0,n(e??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(e){let n;const r="left",o="right",a="rtl"==this.dir?.value;n="start"==e?a?o:r:"end"==e?a?r:o:e||("horizontal"===this.orientation?"left":"top");const s=this.scrollable.measureBoundingClientRectWithScrollOffset(n);return this.elementRef.nativeElement.getBoundingClientRect()[n]-s}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const n of e)n()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Gt),b(Ue),b(RX,8),b(_n,8),b(Fd),b(_a),b(oF,8))},t.\u0275cmp=je({type:t,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,n){if(1&e&&at(IX,7),2&e){let r;xe(r=ye())&&(n._contentWrapper=r.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,n){2&e&&Xe("cdk-virtual-scroll-orientation-horizontal","horizontal"===n.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==n.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[We([{provide:rF,useFactory:(i,e)=>i||e,deps:[[new na,new Nm(oF)],t]}]),pe,Iv],ngContentSelectors:FX,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,n){1&e&&(vi(),v(0,"div",0,1),Je(2),y(),Ee(3,"div",2)),2&e&&(k(3),tr("width",n._totalContentWidth)("height",n._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),t})(),Vc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({}),t})(),Xy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({imports:[Fh,Vc,VX,Fh,Vc]}),t})();const aF=pI();class HX{constructor(i,e){this._viewportRuler=i,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const i=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=i.style.left||"",this._previousHTMLStyles.top=i.style.top||"",i.style.left=gn(-this._previousScrollPosition.left),i.style.top=gn(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const i=this._document.documentElement,n=i.style,r=this._document.body.style,o=n.scrollBehavior||"",a=r.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),aF&&(n.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),aF&&(n.scrollBehavior=o,r.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,n=this._viewportRuler.getViewportSize();return e.scrollHeight>n.height||e.scrollWidth>n.width}}class UX{constructor(i,e,n,r){this._scrollDispatcher=i,this._ngZone=e,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(i){this._overlayRef=i}enable(){if(this._scrollSubscription)return;const i=this._scrollDispatcher.scrolled(0).pipe(hi(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=i.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=i.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class sF{enable(){}disable(){}attach(){}}function Qy(t,i){return i.some(e=>t.bottome.bottom||t.righte.right)}function cF(t,i){return i.some(e=>t.tope.bottom||t.lefte.right)}class zX{constructor(i,e,n,r){this._scrollDispatcher=i,this._viewportRuler=e,this._ngZone=n,this._config=r,this._scrollSubscription=null}attach(i){this._overlayRef=i}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:n,height:r}=this._viewportRuler.getViewportSize();Qy(e,[{width:n,height:r,bottom:r,right:n,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 $X=(()=>{class t{constructor(e,n,r,o){this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=r,this.noop=()=>new sF,this.close=a=>new UX(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new HX(this._viewportRuler,this._document),this.reposition=a=>new zX(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=o}}return t.\u0275fac=function(e){return new(e||t)(G(Fd),G(_a),G(Ue),G(it))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class Rd{constructor(i){if(this.scrollStrategy=new sF,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,i){const e=Object.keys(i);for(const n of e)void 0!==i[n]&&(this[n]=i[n])}}}class jX{constructor(i,e){this.connectionPair=i,this.scrollableViewProperties=e}}let lF=(()=>{class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const n=this._attachedOverlays.indexOf(e);n>-1&&this._attachedOverlays.splice(n,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(G(it))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),WX=(()=>{class t extends lF{constructor(e,n){super(e),this._ngZone=n,this._keydownListener=r=>{const o=this._attachedOverlays;for(let a=o.length-1;a>-1;a--)if(o[a]._keydownEvents.observers.length>0){const s=o[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>s.next(r)):s.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)}}return t.\u0275fac=function(e){return new(e||t)(G(it),G(Ue,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),GX=(()=>{class t extends lF{constructor(e,n,r){super(e),this._platform=n,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=Zr(o)},this._clickListener=o=>{const a=Zr(o),s="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;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(a)||d.overlayElement.contains(s))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 n=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(n)):this._addEventListeners(n),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.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)}}return t.\u0275fac=function(e){return new(e||t)(G(it),G(xi),G(Ue,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Fg=(()=>{class t{constructor(e,n){this._platform=n,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||ky()){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 Ce,this._outsidePointerEvents=new Ce,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(i){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(i);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(ui(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 i=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i}dispose(){const i=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,i&&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(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()))}updateSize(i){this._config={...this._config,...i},this._updateElementSize()}setDirection(i){this._config={...this._config,direction:i},this._updateElementDirection()}addPanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!0)}removePanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!1)}getDirection(){const i=this._config.direction;return i?"string"==typeof i?i:i.value:"ltr"}updateScrollStrategy(i){i!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=i,this.hasAttached()&&(i.attach(this),i.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const i=this._pane.style;i.width=gn(this._config.width),i.height=gn(this._config.height),i.minWidth=gn(this._config.minWidth),i.minHeight=gn(this._config.minHeight),i.maxWidth=gn(this._config.maxWidth),i.maxHeight=gn(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachBackdrop(){const i="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(i)})}):this._backdropElement.classList.add(i)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const i=this._backdropElement;if(i){if(this._animationsDisabled)return void this._disposeBackdrop(i);i.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{i.addEventListener("transitionend",this._backdropTransitionendHandler)}),i.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(i)},500))}}_toggleClasses(i,e,n){const r=Ih(e||[]).filter(o=>!!o);r.length&&(n?i.classList.add(...r):i.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const i=this._ngZone.onStable.pipe(Tt(Bi(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()),i.unsubscribe())})})}_disposeScrollStrategy(){const i=this._scrollStrategy;i&&(i.disable(),i.detach&&i.detach())}_disposeBackdrop(i){i&&(i.removeEventListener("click",this._backdropClickHandler),i.removeEventListener("transitionend",this._backdropTransitionendHandler),i.remove(),this._backdropElement===i&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const dF="cdk-overlay-connected-position-bounding-box",qX=/([A-Za-z%]+)$/;class XX{get positions(){return this._preferredPositions}constructor(i,e,n,r,o){this._viewportRuler=e,this._document=n,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 Ce,this._resizeSubscription=yt.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(i)}attach(i){this._validatePositions(),i.hostElement.classList.add(dF),this._overlayRef=i,this._boundingBox=i.hostElement,this._pane=i.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 i=this._originRect,e=this._overlayRect,n=this._viewportRect,r=this._containerRect,o=[];let a;for(let s of this._preferredPositions){let c=this._getOriginPoint(i,r,s),l=this._getOverlayPoint(c,e,s),d=this._getOverlayFit(l,e,n,s);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,c);this._canFitWithFlexibleDimensions(d,l,n)?o.push({position:s,origin:c,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(c,s)}):(!a||a.overlayFit.visibleAreac&&(c=d,s=l)}return this._isPushed=!1,void this._applyPosition(s.position,s.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(a.position,a.originPoint);this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Hc(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(dF),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const i=this._lastPosition;if(i){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,i);this._applyPosition(i,e)}else this.apply()}withScrollableContainers(i){return this._scrollables=i,this}withPositions(i){return this._preferredPositions=i,-1===i.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(i){return this._viewportMargin=i,this}withFlexibleDimensions(i=!0){return this._hasFlexibleDimensions=i,this}withGrowAfterOpen(i=!0){return this._growAfterOpen=i,this}withPush(i=!0){return this._canPush=i,this}withLockedPosition(i=!0){return this._positionLocked=i,this}setOrigin(i){return this._origin=i,this}withDefaultOffsetX(i){return this._offsetX=i,this}withDefaultOffsetY(i){return this._offsetY=i,this}withTransformOriginOn(i){return this._transformOriginSelector=i,this}_getOriginPoint(i,e,n){let r,o;if("center"==n.originX)r=i.left+i.width/2;else{const a=this._isRtl()?i.right:i.left,s=this._isRtl()?i.left:i.right;r="start"==n.originX?a:s}return e.left<0&&(r-=e.left),o="center"==n.originY?i.top+i.height/2:"top"==n.originY?i.top:i.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(i,e,n){let r,o;return r="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,o="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:i.x+r,y:i.y+o}}_getOverlayFit(i,e,n,r){const o=hF(e);let{x:a,y:s}=i,c=this._getOffset(r,"x"),l=this._getOffset(r,"y");c&&(a+=c),l&&(s+=l);let h=0-s,f=s+o.height-n.height,m=this._subtractOverflows(o.width,0-a,a+o.width-n.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(i,e,n){if(this._hasFlexibleDimensions){const r=n.bottom-e.y,o=n.right-e.x,a=uF(this._overlayRef.getConfig().minHeight),s=uF(this._overlayRef.getConfig().minWidth);return(i.fitsInViewportVertically||null!=a&&a<=r)&&(i.fitsInViewportHorizontally||null!=s&&s<=o)}return!1}_pushOverlayOnScreen(i,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};const r=hF(e),o=this._viewportRect,a=Math.max(i.x+r.width-o.width,0),s=Math.max(i.y+r.height-o.height,0),c=Math.max(o.top-n.top-i.y,0),l=Math.max(o.left-n.left-i.x,0);let d=0,u=0;return d=r.width<=o.width?l||-a:i.xm&&!this._isInitialRender&&!this._growAfterOpen&&(a=i.y-m/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)h=n.width-i.x+this._viewportMargin,d=i.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)u=i.x,d=n.right-i.x;else{const f=Math.min(n.right-i.x+n.left,i.x),m=this._lastBoundingBoxSize.width;d=2*f,u=i.x-f,d>m&&!this._isInitialRender&&!this._growAfterOpen&&(u=i.x-m/2)}return{top:a,left:u,bottom:s,right:h,width:d,height:o}}_setBoundingBoxStyles(i,e){const n=this._calculateBoundingBoxRect(i,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.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,a=this._overlayRef.getConfig().maxWidth;r.height=gn(n.height),r.top=gn(n.top),r.bottom=gn(n.bottom),r.width=gn(n.width),r.left=gn(n.left),r.right=gn(n.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=gn(o)),a&&(r.maxWidth=gn(a))}this._lastBoundingBoxSize=n,Hc(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Hc(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Hc(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(i,e){const n={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(r){const d=this._viewportRuler.getViewportScrollPosition();Hc(n,this._getExactOverlayY(e,i,d)),Hc(n,this._getExactOverlayX(e,i,d))}else n.position="static";let s="",c=this._getOffset(e,"x"),l=this._getOffset(e,"y");c&&(s+=`translateX(${c}px) `),l&&(s+=`translateY(${l}px)`),n.transform=s.trim(),a.maxHeight&&(r?n.maxHeight=gn(a.maxHeight):o&&(n.maxHeight="")),a.maxWidth&&(r?n.maxWidth=gn(a.maxWidth):o&&(n.maxWidth="")),Hc(this._pane.style,n)}_getExactOverlayY(i,e,n){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,i);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),"bottom"===i.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=gn(o.y),r}_getExactOverlayX(i,e,n){let a,r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,i);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),a=this._isRtl()?"end"===i.overlayX?"left":"right":"end"===i.overlayX?"right":"left","right"===a?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=gn(o.x),r}_getScrollVisibility(){const i=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:cF(i,n),isOriginOutsideView:Qy(i,n),isOverlayClipped:cF(e,n),isOverlayOutsideView:Qy(e,n)}}_subtractOverflows(i,...e){return e.reduce((n,r)=>n-Math.max(r,0),i)}_getNarrowedViewportRect(){const i=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+i-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:i-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(i,e){return"x"===e?null==i.offsetX?this._offsetX:i.offsetX:null==i.offsetY?this._offsetY:i.offsetY}_validatePositions(){}_addPanelClasses(i){this._pane&&Ih(i).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i)}),this._appliedPanelClasses=[])}_getOriginRect(){const i=this._origin;if(i instanceof Ae)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();const e=i.width||0,n=i.height||0;return{top:i.y,bottom:i.y+n,left:i.x,right:i.x+e,height:n,width:e}}}function Hc(t,i){for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t}function uF(t){if("number"!=typeof t&&null!=t){const[i,e]=t.split(qX);return e&&"px"!==e?null:parseFloat(i)}return t||null}function hF(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 fF="cdk-global-overlay-wrapper";class QX{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(i){const e=i.getConfig();this._overlayRef=i,this._width&&!e.width&&i.updateSize({width:this._width}),this._height&&!e.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(fF),this._isDisposed=!1}top(i=""){return this._bottomOffset="",this._topOffset=i,this._alignItems="flex-start",this}left(i=""){return this._xOffset=i,this._xPosition="left",this}bottom(i=""){return this._topOffset="",this._bottomOffset=i,this._alignItems="flex-end",this}right(i=""){return this._xOffset=i,this._xPosition="right",this}start(i=""){return this._xOffset=i,this._xPosition="start",this}end(i=""){return this._xOffset=i,this._xPosition="end",this}width(i=""){return this._overlayRef?this._overlayRef.updateSize({width:i}):this._width=i,this}height(i=""){return this._overlayRef?this._overlayRef.updateSize({height:i}):this._height=i,this}centerHorizontally(i=""){return this.left(i),this._xPosition="center",this}centerVertically(i=""){return this.top(i),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:a,maxHeight:s}=n,c=!("100%"!==r&&"100vw"!==r||a&&"100%"!==a&&"100vw"!==a),l=!("100%"!==o&&"100vh"!==o||s&&"100%"!==s&&"100vh"!==s),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),i.position=this._cssPosition,i.marginLeft=c?"0":f,i.marginTop=l?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=c?"0":m,e.justifyContent=g,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(fF),n.justifyContent=n.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}}let YX=(()=>{class t{constructor(e,n,r,o){this._viewportRuler=e,this._document=n,this._platform=r,this._overlayContainer=o}global(){return new QX}flexibleConnectedTo(e){return new XX(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(G(_a),G(it),G(xi),G(Fg))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),KX=0,nr=(()=>{class t{constructor(e,n,r,o,a,s,c,l,d,u,h,f){this.scrollStrategies=e,this._overlayContainer=n,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=a,this._injector=s,this._ngZone=c,this._document=l,this._directionality=d,this._location=u,this._outsideClickDispatcher=h,this._animationsModuleType=f}create(e){const n=this._createHostElement(),r=this._createPaneElement(n),o=this._createPortalOutlet(r),a=new Rd(e);return a.direction=a.direction||this._directionality.value,new Lh(o,n,r,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const n=this._document.createElement("div");return n.id="cdk-overlay-"+KX++,n.classList.add("cdk-overlay-pane"),e.appendChild(n),n}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(ud)),new fX(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(G($X),G(Fg),G(ks),G(YX),G(WX),G(en),G(Ue),G(it),G(_n),G(Ju),G(GX),G(Ri,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const ZX=[{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"}],mF=new ae("cdk-connected-overlay-scroll-strategy");let Yy=(()=>{class t{constructor(e){this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(b(Ae))},t.\u0275dir=Q({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0}),t})(),pF=(()=>{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=$e(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=$e(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=$e(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=$e(e)}get push(){return this._push}set push(e){this._push=$e(e)}constructor(e,n,r,o,a){this._overlay=e,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=yt.EMPTY,this._attachSubscription=yt.EMPTY,this._detachSubscription=yt.EMPTY,this._positionSubscription=yt.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new ke,this.positionChange=new ke,this.attach=new ke,this.detach=new ke,this.overlayKeydown=new ke,this.overlayOutsideClick=new ke,this._templatePortal=new rs(n,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=ZX);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(n=>{this.overlayKeydown.next(n),27===n.keyCode&&!this.disableClose&&!yr(n)&&(n.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{this.overlayOutsideClick.next(n)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),n=new Rd({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(n.width=this.width),(this.height||0===this.height)&&(n.height=this.height),(this.minWidth||0===this.minWidth)&&(n.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(n.minHeight=this.minHeight),this.backdropClass&&(n.backdropClass=this.backdropClass),this.panelClass&&(n.panelClass=this.panelClass),n}_updatePositionStrategy(e){const n=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(n).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 Yy?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($M(()=>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()}}return t.\u0275fac=function(e){return new(e||t)(b(nr),b(_i),b(Fi),b(mF),b(_n,8))},t.\u0275dir=Q({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[Ei]}),t})();const eQ={provide:mF,deps:[nr],useFactory:function JX(t){return()=>t.scrollStrategies.reposition()}};let Uc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({providers:[nr,eQ],imports:[Fh,Bc,Xy,Xy]}),t})();function tQ(t,i){if(1&t){const e=ct();v(0,"div",2)(1,"button",3),X("click",function(){return Oe(e),Pe(q().action())}),M(2),y()()}if(2&t){const e=q();k(2),It(" ",e.data.action," ")}}const iQ=["label"];function nQ(t,i){}const rQ=Math.pow(2,31)-1;class Rg{constructor(i,e){this._overlayRef=e,this._afterDismissed=new Ce,this._afterOpened=new Ce,this._onAction=new Ce,this._dismissedByAction=!1,this.containerInstance=i,i._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(i){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(i,rQ))}_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 Ky=new ae("MatSnackBarData");class Og{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let oQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]}),t})(),aQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]}),t})(),sQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]}),t})(),cQ=(()=>{class t{constructor(e,n){this.snackBarRef=e,this.data=n}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return t.\u0275fac=function(e){return new(e||t)(b(Rg),b(Ky))},t.\u0275cmp=je({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(e,n){1&e&&(v(0,"div",0),M(1),y(),H(2,tQ,3,1,"div",1)),2&e&&(k(1),It(" ",n.data.message,"\n"),k(1),I("ngIf",n.hasAction))},dependencies:[hn,xo,oQ,aQ,sQ],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0}),t})();const lQ={snackBarState:bn("state",[ii("void, hidden",nt({transform:"scale(0.8)",opacity:0})),ii("visible",nt({transform:"scale(1)",opacity:1})),ai("* => visible",fi("150ms cubic-bezier(0, 0, 0.2, 1)")),ai("* => void, * => hidden",fi("75ms cubic-bezier(0.4, 0.0, 1, 1)",nt({opacity:0})))])};let dQ=0,uQ=(()=>{class t extends Tg{constructor(e,n,r,o,a){super(),this._ngZone=e,this._elementRef=n,this._changeDetectorRef=r,this._platform=o,this.snackBarConfig=a,this._document=ht(it),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new Ce,this._onExit=new Ce,this._onEnter=new Ce,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+dQ++,this.attachDomPortal=s=>{this._assertNotAttached();const c=this._portalOutlet.attachDomPortal(s);return this._afterPortalAttached(),c},this._live="assertive"!==a.politeness||a.announcementMessage?"off"===a.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();const n=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),n}attachTemplatePortal(e){this._assertNotAttached();const n=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),n}onAnimationEnd(e){const{fromState:n,toState:r}=e;if(("void"===r&&"void"!==n||"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(ui(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const e=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;n&&(Array.isArray(n)?n.forEach(r=>e.classList.add(r)):e.classList.add(n)),this._exposeToModals()}_exposeToModals(){const e=this._liveElementId,n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{const n=e.getAttribute("aria-owns");if(n){const r=n.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]"),n=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&n){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),n.appendChild(e),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return t.\u0275fac=function(e){return new(e||t)(b(Ue),b(Ae),b(Gt),b(xi),b(Og))},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&at(os,7),2&e){let r;xe(r=ye())&&(n._portalOutlet=r.first)}},features:[pe]}),t})(),hQ=(()=>{class t extends uQ{_afterPortalAttached(){super._afterPortalAttached();const e=this._label.nativeElement,n="mdc-snackbar__label";e.classList.toggle(n,!e.querySelector(`.${n}`))}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275cmp=je({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(e,n){if(1&e&&at(iQ,7),2&e){let r;xe(r=ye())&&(n._label=r.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(e,n){1&e&&_v("@state.done",function(o){return n.onAnimationEnd(o)}),2&e&&Cv("@state",n._animationState)},features:[pe],decls:6,vars:3,consts:[[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["label",""],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,n){1&e&&(v(0,"div",0)(1,"div",1,2)(3,"div",3),H(4,nQ,0,0,"ng-template",4),y(),Ee(5,"div"),y()()),2&e&&(k(5),rt("aria-live",n._live)("role",n._role)("id",n._liveElementId))},dependencies:[os],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__dismiss .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px))}.mat-mdc-snack-bar-container .mdc-snackbar__dismiss svg,.mat-mdc-snack-bar-container .mdc-snackbar__dismiss img{width:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px));height:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px))}.mat-mdc-snack-bar-container .mdc-snackbar__surface{background-color:var(--mdc-snackbar-container-color, inherit)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{border-radius:var(--mdc-snackbar-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-snack-bar-container .mdc-snackbar__label{color:var(--mdc-snackbar-supporting-text-color, inherit)}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-size:var(--mdc-snackbar-supporting-text-size, inherit);font-family:var(--mdc-snackbar-supporting-text-font, inherit);font-weight:var(--mdc-snackbar-supporting-text-weight, inherit);line-height:var(--mdc-snackbar-supporting-text-line-height, inherit)}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-mdc-snack-bar-button-color, transparent);--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:[lQ.snackBarState]}}),t})(),gF=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({imports:[Uc,Bc,ir,YI,xt,xt]}),t})();const _F=new ae("mat-snack-bar-default-options",{providedIn:"root",factory:function fQ(){return new Og}});let mQ=(()=>{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,n,r,o,a,s){this._overlay=e,this._live=n,this._injector=r,this._breakpointObserver=o,this._parentSnackBar=a,this._defaultConfig=s,this._snackBarRefAtThisLevel=null}openFromComponent(e,n){return this._attach(e,n)}openFromTemplate(e,n){return this._attach(e,n)}open(e,n="",r){const o={...this._defaultConfig,...r};return o.data={message:e,action:n},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,n){const o=en.create({parent:n&&n.viewContainerRef&&n.viewContainerRef.injector||this._injector,providers:[{provide:Og,useValue:n}]}),a=new Id(this.snackBarContainerComponent,n.viewContainerRef,o),s=e.attach(a);return s.instance.snackBarConfig=n,s.instance}_attach(e,n){const r={...new Og,...this._defaultConfig,...n},o=this._createOverlay(r),a=this._attachSnackBarContainer(o,r),s=new Rg(a,o);if(e instanceof _i){const c=new rs(e,null,{$implicit:r.data,snackBarRef:s});s.instance=a.attachTemplatePortal(c)}else{const c=this._createInjector(r,s),l=new Id(e,void 0,c),d=a.attachComponentPortal(l);s.instance=d.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Tt(o.detachments())).subscribe(c=>{o.overlayElement.classList.toggle(this.handsetCssClass,c.matches)}),r.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(s,r),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(e,n){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),n.duration&&n.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(n.duration))}_createOverlay(e){const n=new Rd;n.direction=e.direction;let r=this._overlay.position().global();const o="rtl"===e.direction,a="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!o||"end"===e.horizontalPosition&&o,s=!a&&"center"!==e.horizontalPosition;return a?r.left("0"):s?r.right("0"):r.centerHorizontally(),"top"===e.verticalPosition?r.top("0"):r.bottom("0"),n.positionStrategy=r,this._overlay.create(n)}_createInjector(e,n){return en.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:Rg,useValue:n},{provide:Ky,useValue:e.data}]})}}return t.\u0275fac=function(e){return new(e||t)(G(nr),G(Py),G(en),G(Ay),G(t,12),G(_F))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})(),Od=(()=>{class t extends mQ{constructor(e,n,r,o,a,s){super(e,n,r,o,a,s),this.simpleSnackBarComponent=cQ,this.snackBarContainerComponent=hQ,this.handsetCssClass="mat-mdc-snack-bar-handset"}}return t.\u0275fac=function(e){return new(e||t)(G(nr),G(Py),G(en),G(Ay),G(t,12),G(_F))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:gF}),t})(),Pr=(()=>{class t{constructor(e,n){this.sbRef=e,this.data=n}}return t.\u0275fac=function(e){return new(e||t)(b(Rg),b(Ky))},t.\u0275cmp=je({type:t,selectors:[["snack-alert"]],decls:2,vars:1,consts:[[1,"example-alert"]],template:function(e,n){1&e&&(v(0,"span",0),M(1),y()),2&e&&(k(1),tt(n.data))},styles:[".example-alert[_ngcontent-%COMP%]{color:#fff}"]}),t})(),yo=(()=>{class t{constructor(e,n){this.http=e,this._snackBar=n,this.snowstormFhirBase="https://snowstorm.ihtsdotools.org/fhir",this.defaultFhirUrlParam="http://snomed.info/sct",this.fhirUrlParam=this.defaultFhirUrlParam,this.lang="en",this.conceptCache=new Map}setSnowstormFhirBase(e){this.snowstormFhirBase=e}setFhirUrlParam(e){this.fhirUrlParam=e}getFhirUrlParam(){return this.fhirUrlParam}setLang(e){this.lang=e}getCodeSystems(){return this.http.get(`${this.snowstormFhirBase}/CodeSystem`).pipe(mn(this.handleError("getCodeSystems",{})))}getValueSetExpansionUrl(e,n,r,o){return r||(r=0),o||(o=20),"string"!=typeof n&&(n=""),`${this.snowstormFhirBase}/ValueSet/$expand?url=${this.fhirUrlParam}?fhir_vs=ecl/${encodeURIComponent(e)}&count=${o}&offset=${r}&filter=${n}&language=${this.lang}&displayLanguage=${this.lang}`}expandValueSet(e,n,r,o){let a=this.getValueSetExpansionUrl(e,n,r,o);return this.http.get(a).pipe(mn(this.handleError("expandValueSet",{})))}translate(e,n,r){return r||(r=this.defaultFhirUrlParam),this.http.get(`${this.snowstormFhirBase}/ConceptMap/$translate?url=http://snomed.info/sct?fhir_cm=${e}&code=${n}&system=${r}`).pipe(mn(this.handleError("translate",{})))}expandValueSetFromServer(e,n,r,o,a,s){a||(a=0),s||(s=20),e||(e=this.snowstormFhirBase),n||(n=this.fhirUrlParam),"string"!=typeof o&&(o="");let c=`${e}/ValueSet/$expand?url=${n}?fhir_vs=ecl/${encodeURIComponent(r)}&count=${s}&offset=${a}&filter=${o}&language=${this.lang}&displayLanguage=${this.lang}`;return this.http.get(c).pipe(mn(this.handleError("expandValueSet",{})))}handleError(e="operation",n){return r=>(console.error("There was an error!"),console.error(r),this._snackBar.openFromComponent(Pr,{duration:5e3,data:r.message,panelClass:["red-snackbar"]}),ze(n))}lookupConcept(e,n){n||(n=this.fhirUrlParam);const r=`${n}:${e}`,o=this.conceptCache.get(r);return o?ze(o):this.http.get(`${this.snowstormFhirBase}/CodeSystem/$lookup?system=${n}&code=${e}&property=normalForm`).pipe(Ui(s=>{this.conceptCache.set(r,s)}),mn(this.handleError("lookupConcept",{})))}getMRCMAttributes(e){let n=`${this.snowstormFhirBase.replace("fhir","snowstorm/snomed-ct")}mrcm/MAIN/domain-attributes?parentIds=${e}&proximalPrimitiveModeling=false&contentType=POSTCOORDINATED`;return this.http.get(n).pipe(mn(this.handleError("getMRCMAttributes",{})))}addPostcoordinatedExpression(e){let n=`${this.snowstormFhirBase}/CodeSystem/sct_11000003104_EXP`;const r={headers:new pa({"Content-Type":"application/fhir+json"})};return this.http.patch(n,{resourceType:"CodeSystem",concept:[{code:e}]},r).pipe(mn(this.handleError("addPostcoordinatedExpression",{})))}runEclLegacy(e){let n=`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(n).pipe(mn(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(mn(this.handleError("translate",{})))}lookupOtherCodeSystems(e,n){return this.http.get(`${this.snowstormFhirBase}/CodeSystem/$lookup?system=${e}&code=${n}`).pipe(mn(this.handleError("lookup",{})))}}return t.\u0275fac=function(e){return new(e||t)(G(Ps),G(Od))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function bF(...t){const i=rk(t),{args:e,keys:n}=LM(t),r=new ni(o=>{const{length:a}=e;if(!a)return void o.complete();const s=new Array(a);let c=a,l=a;for(let d=0;d{u||(u=!0,l--),s[d]=h},()=>c--,void 0,()=>{(!c||!u)&&(l||o.next(n?BM(n,s):s),o.complete())}))}});return i?r.pipe(Rx(i)):r}const pQ=["*"];let Pg;function Bh(t){return function gQ(){if(void 0===Pg&&(Pg=null,typeof window<"u")){const t=window;void 0!==t.trustedTypes&&(Pg=t.trustedTypes.createPolicy("angular#components",{createHTML:i=>i}))}return Pg}()?.createHTML(t)||t}function vF(t){return Error(`Unable to find icon with the name "${t}"`)}function xF(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function yF(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class zc{constructor(i,e,n){this.url=i,this.svgText=e,this.options=n}}let Ng=(()=>{class t{constructor(e,n,r,o){this._httpClient=e,this._sanitizer=n,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,n,r){return this.addSvgIconInNamespace("",e,n,r)}addSvgIconLiteral(e,n,r){return this.addSvgIconLiteralInNamespace("",e,n,r)}addSvgIconInNamespace(e,n,r,o){return this._addSvgIconConfig(e,n,new zc(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,n,r,o){const a=this._sanitizer.sanitize(di.HTML,r);if(!a)throw yF(r);const s=Bh(a);return this._addSvgIconConfig(e,n,new zc("",s,o))}addSvgIconSet(e,n){return this.addSvgIconSetInNamespace("",e,n)}addSvgIconSetLiteral(e,n){return this.addSvgIconSetLiteralInNamespace("",e,n)}addSvgIconSetInNamespace(e,n,r){return this._addSvgIconSetConfig(e,new zc(n,null,r))}addSvgIconSetLiteralInNamespace(e,n,r){const o=this._sanitizer.sanitize(di.HTML,n);if(!o)throw yF(n);const a=Bh(o);return this._addSvgIconSetConfig(e,new zc("",a,r))}registerFontClassAlias(e,n=e){return this._fontCssClassesByAlias.set(e,n),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const n=this._sanitizer.sanitize(di.RESOURCE_URL,e);if(!n)throw xF(e);const r=this._cachedIconsByUrl.get(n);return r?ze(Lg(r)):this._loadSvgIconFromConfig(new zc(e,null)).pipe(Ui(o=>this._cachedIconsByUrl.set(n,o)),Ye(o=>Lg(o)))}getNamedSvgIcon(e,n=""){const r=wF(n,e);let o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(n,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);const a=this._iconSetConfigs.get(n);return a?this._getSvgFromIconSetConfigs(e,a):Fc(vF(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?ze(Lg(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Ye(n=>Lg(n)))}_getSvgFromIconSetConfigs(e,n){const r=this._extractIconWithNameFromAnySet(e,n);return r?ze(r):bF(n.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(mn(s=>{const l=`Loading icon set URL: ${this._sanitizer.sanitize(di.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(l)),ze(null)})))).pipe(Ye(()=>{const a=this._extractIconWithNameFromAnySet(e,n);if(!a)throw vF(e);return a}))}_extractIconWithNameFromAnySet(e,n){for(let r=n.length-1;r>=0;r--){const o=n[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){const a=this._svgElementFromConfig(o),s=this._extractSvgIconFromSet(a,e,o.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Ui(n=>e.svgText=n),Ye(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?ze(null):this._fetchIcon(e).pipe(Ui(n=>e.svgText=n))}_extractSvgIconFromSet(e,n,r){const o=e.querySelector(`[id="${n}"]`);if(!o)return null;const a=o.cloneNode(!0);if(a.removeAttribute("id"),"svg"===a.nodeName.toLowerCase())return this._setSvgAttributes(a,r);if("symbol"===a.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(a),r);const s=this._svgElementFromString(Bh(""));return s.appendChild(a),this._setSvgAttributes(s,r)}_svgElementFromString(e){const n=this._document.createElement("DIV");n.innerHTML=e;const r=n.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const n=this._svgElementFromString(Bh("")),r=e.attributes;for(let o=0;oBh(l)),zp(()=>this._inProgressUrlFetches.delete(a)),ck());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,n,r){return this._svgIconConfigs.set(wF(e,n),r),this}_addSvgIconSetConfig(e,n){const r=this._iconSetConfigs.get(e);return r?r.push(n):this._iconSetConfigs.set(e,[n]),this}_svgElementFromConfig(e){if(!e.svgElement){const n=this._svgElementFromString(e.svgText);this._setSvgAttributes(n,e.options),e.svgElement=n}return e.svgElement}_getIconConfigFromResolvers(e,n){for(let r=0;ri?i.pathname+i.search:""}}}),CF=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],kQ=CF.map(t=>`[${t}]`).join(", "),DQ=/^url\(['"]?#(.*?)['"]?\)$/;let ba=(()=>{class t extends xQ{get inline(){return this._inline}set inline(e){this._inline=$e(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 n=this._cleanupFontValue(e);n!==this._fontSet&&(this._fontSet=n,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const n=this._cleanupFontValue(e);n!==this._fontIcon&&(this._fontIcon=n,this._updateFontIconClasses())}constructor(e,n,r,o,a,s){super(e),this._iconRegistry=n,this._location=o,this._errorHandler=a,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=yt.EMPTY,s&&(s.color&&(this.color=this.defaultColor=s.color),s.fontSet&&(this.fontSet=s.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];const n=e.split(":");switch(n.length){case 1:return["",n[0]];case 2:return n;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const n=this._location.getPathname();n!==this._previousPath&&(this._previousPath=n,this._prependPathToReferences(n))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let n=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();n--;){const r=e.childNodes[n];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,n=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),n.forEach(r=>e.classList.add(r)),this._previousFontSetClass=n,this.fontIcon!==this._previousFontIconClass&&!n.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 n=this._elementsWithExternalReferences;n&&n.forEach((r,o)=>{r.forEach(a=>{o.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){const n=e.querySelectorAll(kQ),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const s=n[o],c=s.getAttribute(a),l=c?c.match(DQ):null;if(l){let d=r.get(s);d||(d=[],r.set(s,d)),d.push({name:a,value:l[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[n,r]=this._splitIconName(e);n&&(this._svgNamespace=n),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,n).pipe(ui(1)).subscribe(o=>this._setSvgElement(o),o=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${n}:${r}! ${o.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Ng),uo("aria-hidden"),b(wQ),b(Wa),b(yQ,8))},t.\u0275cmp=je({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(e,n){2&e&&(rt("data-mat-icon-type",n._usingFontIcon()?"font":"svg")("data-mat-icon-name",n._svgName||n.fontIcon)("data-mat-icon-namespace",n._svgNamespace||n.fontSet)("fontIcon",n._usingFontIcon()?n.fontIcon:null),Xe("mat-icon-inline",n.inline)("mat-icon-no-color","primary"!==n.color&&"accent"!==n.color&&"warn"!==n.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[pe],ngContentSelectors:pQ,decls:1,vars:0,template:function(e,n){1&e&&(vi(),Je(0))},styles:[".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}),t})(),SQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({imports:[xt,xt]}),t})();function kF(t,i){return i?e=>sh(i.pipe(ui(1),function EQ(){return Wi((t,i)=>{t.subscribe(Li(i,mr))})}()),e.pipe(kF(t))):Sn((e,n)=>Qn(t(e,n)).pipe(ui(1),jM(e)))}function Zy(t,i=Ah){const e=Ig(t,i);return kF(()=>e)}const TQ=["mat-menu-item",""];function MQ(t,i){1&t&&(za(),v(0,"svg",3),Ee(1,"polygon",4),y())}const AQ=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],IQ=["mat-icon, [matMenuItemIcon]","*"];function FQ(t,i){if(1&t){const e=ct();v(0,"div",0),X("keydown",function(r){return Oe(e),Pe(q()._handleKeydown(r))})("click",function(){return Oe(e),Pe(q().closed.emit("click"))})("@transformMenu.start",function(r){return Oe(e),Pe(q()._onAnimationStart(r))})("@transformMenu.done",function(r){return Oe(e),Pe(q()._onAnimationDone(r))}),v(1,"div",1),Je(2),y()()}if(2&t){const e=q();I("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),rt("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const RQ=["*"],Jy=new ae("MAT_MENU_PANEL"),OQ=Bs(ts(class{}));let va=(()=>{class t extends OQ{constructor(e,n,r,o,a){super(),this._elementRef=e,this._document=n,this._focusMonitor=r,this._parentMenu=o,this._changeDetectorRef=a,this.role="menuitem",this._hovered=new Ce,this._focused=new Ce,this._highlighted=!1,this._triggersSubmenu=!1,o?.addItem?.(this)}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,n):this._getHostElement().focus(n),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),n=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r enter",fi("120ms cubic-bezier(0, 0, 0.2, 1)",nt({opacity:1,transform:"scale(1)"}))),ai("* => void",fi("100ms 25ms linear",nt({opacity:0})))]),fadeInItems:bn("fadeInItems",[ii("showing",nt({opacity:1})),ai("void => *",[nt({opacity:0}),fi("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let NQ=0;const DF=new ae("mat-menu-default-options",{providedIn:"root",factory:function LQ(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let Vh=(()=>{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=$e(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=$e(e)}set panelClass(e){const n=this._previousPanelClass;n&&n.length&&n.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,n,r,o){this._elementRef=e,this._ngZone=n,this._defaultOptions=r,this._changeDetectorRef=o,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new Ec,this._classList={},this._panelAnimationState="void",this._animationDone=new Ce,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new ke,this.close=this.closed,this.panelId="mat-menu-panel-"+NQ++}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Ry(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Vn(this._directDescendantItems),fn(e=>Bi(...e.map(n=>n._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const n=this._keyManager;if("enter"===this._panelAnimationState&&n.activeItem?._hasFocus()){const r=e.toArray(),o=Math.max(0,Math.min(r.length-1,n.activeItemIndex||0));r[o]&&!r[o].disabled?n.setActiveItem(o):n.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe(Vn(this._directDescendantItems),fn(n=>Bi(...n.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const n=e.keyCode,r=this._keyManager;switch(n){case 27:yr(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===n||40===n)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe(ui(1)).subscribe(()=>{let n=null;if(this._directDescendantItems.length&&(n=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!n||!n.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&n&&n.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const n=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${n}`,o=Object.keys(this._classList).find(a=>a.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,n=this.yPosition){const r=this._classList;r["mat-menu-before"]="before"===e,r["mat-menu-after"]="after"===e,r["mat-menu-above"]="above"===n,r["mat-menu-below"]="below"===n,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(Vn(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(n=>n._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Ue),b(DF),b(Gt))},t.\u0275dir=Q({type:t,contentQueries:function(e,n,r){if(1&e&&(Bt(r,PQ,5),Bt(r,va,5),Bt(r,va,4)),2&e){let o;xe(o=ye())&&(n.lazyContent=o.first),xe(o=ye())&&(n._allItems=o),xe(o=ye())&&(n.items=o)}},viewQuery:function(e,n){if(1&e&&at(_i,5),2&e){let r;xe(r=ye())&&(n.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),t})(),$c=(()=>{class t extends Vh{constructor(e,n,r,o){super(e,n,r,o),this._elevationPrefix="mat-elevation-z",this._baseElevation=8}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Ue),b(DF),b(Gt))},t.\u0275cmp=je({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,n){2&e&&rt("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[We([{provide:Jy,useExisting:t}]),pe],ngContentSelectors:RQ,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mdc-menu-surface","mdc-menu-surface--open","mat-mdc-elevation-specific",3,"id","ngClass","keydown","click"],[1,"mat-mdc-menu-content","mdc-list"]],template:function(e,n){1&e&&(vi(),H(0,FQ,3,6,"ng-template"))},dependencies:[Es],styles:['.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}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-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;position:relative}.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;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.mdc-list-item{align-items:center}.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 .mdc-list-item__primary-text{white-space:normal}.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}.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:[Bg.transformMenu,Bg.fadeInItems]},changeDetection:0}),t})();const SF=new ae("mat-menu-scroll-strategy"),VQ={provide:SF,deps:[nr],useFactory:function BQ(t){return()=>t.scrollStrategies.reposition()}},EF=Go({passive:!0});let HQ=(()=>{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(n=>{this._destroyMenu(n),("click"===n||"tab"===n)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(n)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(e,n,r,o,a,s,c,l,d){this._overlay=e,this._element=n,this._viewContainerRef=r,this._menuItemInstance=s,this._dir=c,this._focusMonitor=l,this._ngZone=d,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=yt.EMPTY,this._hoverSubscription=yt.EMPTY,this._menuCloseSubscription=yt.EMPTY,this._changeDetectorRef=ht(Gt),this._handleTouchStart=u=>{wg(u)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new ke,this.onMenuOpen=this.menuOpened,this.menuClosed=new ke,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=a instanceof Vh?a:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,EF)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,EF),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 n=this._createOverlay(e),r=n.getConfig(),o=r.positionStrategy;this._setPosition(e,o),r.hasBackdrop=null==e.hasBackdrop?!this.triggersSubmenu():e.hasBackdrop,n.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof Vh&&(e._startAnimation(),e._directDescendantItems.changes.pipe(Tt(e.close)).subscribe(()=>{o.withLockedPosition(!1).reapplyLastPosition(),o.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,n):this._element.nativeElement.focus(n)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,n instanceof Vh?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(hi(r=>"void"===r.toState),ui(1),Tt(n.lazyContent._attached)).subscribe({next:()=>n.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n?.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 n=0,r=e.parentMenu;for(;r;)n++,r=r.parentMenu;e.setElevation(n)}}_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 n=this._getOverlayConfig(e);this._subscribeToPositions(e,n.positionStrategy),this._overlayRef=this._overlay.create(n),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new Rd({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,n){e.setPositionClasses&&n.positionChanges.subscribe(r=>{const o="start"===r.connectionPair.overlayX?"after":"before",a="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(o,a)):e.setPositionClasses(o,a)})}_setPosition(e,n){let[r,o]="before"===e.xPosition?["end","start"]:["start","end"],[a,s]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[c,l]=[a,s],[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"===a?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(c="top"===a?"bottom":"top",l="top"===s?"bottom":"top");n.withPositions([{originX:r,originY:c,overlayX:d,overlayY:a,offsetY:h},{originX:o,originY:c,overlayX:u,overlayY:a,offsetY:h},{originX:r,originY:l,overlayX:d,overlayY:s,offsetY:-h},{originX:o,originY:l,overlayX:u,overlayY:s,offsetY:-h}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return Bi(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:ze(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(hi(a=>a!==this._menuItemInstance),hi(()=>this._menuOpen)):ze(),n)}_handleMousedown(e){yg(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const n=e.keyCode;(13===n||32===n)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===n&&"ltr"===this.dir||37===n&&"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(hi(e=>e===this._menuItemInstance&&!e.disabled),Zy(0,Gy)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Vh&&this.menu._isAnimating?this.menu._animationDone.pipe(ui(1),Zy(0,Gy),Tt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new rs(e.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(b(nr),b(Ae),b(Fi),b(SF),b(Jy,8),b(va,10),b(_n,8),b(bo),b(Ue))},t.\u0275dir=Q({type:t,hostVars:3,hostBindings:function(e,n){1&e&&X("click",function(o){return n._handleClick(o)})("mousedown",function(o){return n._handleMousedown(o)})("keydown",function(o){return n._handleKeydown(o)}),2&e&&rt("aria-haspopup",n.menu?"menu":null)("aria-expanded",n.menuOpen)("aria-controls",n.menuOpen?n.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),t})(),jc=(()=>{class t extends HQ{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],exportAs:["matMenuTrigger"],features:[pe]}),t})(),UQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({providers:[VQ],imports:[ir,Vs,xt,Uc,Vc,xt]}),t})();const zQ=["determinateSpinner"];function $Q(t,i){if(1&t&&(za(),v(0,"svg",11),Ee(1,"circle",12),y()),2&t){const e=q();rt("viewBox",e._viewBox()),k(1),tr("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),rt("r",e._circleRadius())}}const jQ=Ls(class{constructor(t){this._elementRef=t}},"primary"),WQ=new ae("mat-progress-spinner-default-options",{providedIn:"root",factory:function GQ(){return{diameter:TF}}}),TF=100;let Pd=(()=>{class t extends jQ{constructor(e,n,r){super(e),this.mode="mat-spinner"===this._elementRef.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",this._value=0,this._diameter=TF,this._noopAnimations="NoopAnimations"===n&&!!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,An(e)))}get diameter(){return this._diameter}set diameter(e){this._diameter=An(e)}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=An(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}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Ri,8),b(WQ))},t.\u0275cmp=je({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(e,n){if(1&e&&at(zQ,5),2&e){let r;xe(r=ye())&&(n._determinateCircle=r.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:12,hostBindings:function(e,n){2&e&&(rt("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===n.mode?n.value:null)("mode",n.mode),tr("width",n.diameter,"px")("height",n.diameter,"px"),Xe("_mat-animation-noopable",n._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===n.mode))},inputs:{color:"color",mode:"mode",value:"value",diameter:"diameter",strokeWidth:"strokeWidth"},exportAs:["matProgressSpinner"],features:[pe],decls:14,vars:11,consts:[["circle",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["determinateSpinner",""],["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(e,n){if(1&e&&(H(0,$Q,2,8,"ng-template",null,0,Tc),v(2,"div",1,2),za(),v(4,"svg",3),Ee(5,"circle",4),y()(),Rl(),v(6,"div",5)(7,"div",6)(8,"div",7),Yr(9,8),y(),v(10,"div",9),Yr(11,8),y(),v(12,"div",10),Yr(13,8),y()()()),2&e){const r=Lt(1);k(4),rt("viewBox",n._viewBox()),k(1),tr("stroke-dasharray",n._strokeCircumference(),"px")("stroke-dashoffset",n._strokeDashOffset(),"px")("stroke-width",n._circleStrokeWidth(),"%"),rt("r",n._circleRadius()),k(4),I("ngTemplateOutlet",r),k(2),I("ngTemplateOutlet",r),k(2),I("ngTemplateOutlet",r)}},dependencies:[Op],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{display:block;overflow:hidden;line-height: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, transparent)}@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}}@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._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}),t})(),XQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({imports:[ir,xt]}),t})();const QQ=["*"],eY=new ae("MAT_CARD_CONFIG");let e1=(()=>{class t{constructor(e){this.appearance=e?.appearance||"raised"}}return t.\u0275fac=function(e){return new(e||t)(b(eY,8))},t.\u0275cmp=je({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(e,n){2&e&&Xe("mat-mdc-card-outlined","outlined"===n.appearance)("mdc-card--outlined","outlined"===n.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:QQ,decls:1,vars:0,template:function(e,n){1&e&&(vi(),Je(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{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}.mat-mdc-card{position:relative;border-radius:var(--mdc-elevated-card-container-shape, var(--mdc-shape-medium, 4px));background-color:var(--mdc-elevated-card-container-color, transparent);border-width:0;border-style:solid;border-color:var(--mdc-elevated-card-container-color, transparent)}.mat-mdc-card .mdc-card::after{border-radius:var(--mdc-elevated-card-container-shape, var(--mdc-shape-medium, 4px))}.mat-mdc-card-outlined{border-width:var(--mdc-outlined-card-outline-width, 1px);border-style:solid;border-color:var(--mdc-outlined-card-outline-color, transparent)}.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}),t})(),mY=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({imports:[xt,ir,xt]}),t})();const gY=[[["caption"]],[["colgroup"],["col"]]],_Y=["caption","colgroup, col"];function t1(t){return class extends t{get sticky(){return this._sticky}set sticky(i){const e=this._sticky;this._sticky=$e(i),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const i=this._hasStickyChanged;return this._hasStickyChanged=!1,i}resetStickyChanged(){this._hasStickyChanged=!1}constructor(...i){super(...i),this._sticky=!1,this._hasStickyChanged=!1}}}const Nd=new ae("CDK_TABLE");let Ld=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(b(_i))},t.\u0275dir=Q({type:t,selectors:[["","cdkCellDef",""]]}),t})(),Bd=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(b(_i))},t.\u0275dir=Q({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),Vg=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(b(_i))},t.\u0275dir=Q({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class yY{}const wY=t1(yY);let as=(()=>{class t extends wY{get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const n=this._stickyEnd;this._stickyEnd=$e(e),this._hasStickyChanged=n!==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())}}return t.\u0275fac=function(e){return new(e||t)(b(Nd,8))},t.\u0275dir=Q({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,n,r){if(1&e&&(Bt(r,Ld,5),Bt(r,Bd,5),Bt(r,Vg,5)),2&e){let o;xe(o=ye())&&(n.cell=o.first),xe(o=ye())&&(n.headerCell=o.first),xe(o=ye())&&(n.footerCell=o.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[We([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),pe]}),t})();class n1{constructor(i,e){e.nativeElement.classList.add(...i._columnCssClassName)}}let r1=(()=>{class t extends n1{constructor(e,n){super(e,n)}}return t.\u0275fac=function(e){return new(e||t)(b(as),b(Ae))},t.\u0275dir=Q({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[pe]}),t})(),o1=(()=>{class t extends n1{constructor(e,n){if(super(e,n),1===e._table?._elementRef.nativeElement.nodeType){const r=e._table._elementRef.nativeElement.getAttribute("role");n.nativeElement.setAttribute("role","grid"===r||"treegrid"===r?"gridcell":"cell")}}}return t.\u0275fac=function(e){return new(e||t)(b(as),b(Ae))},t.\u0275dir=Q({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[pe]}),t})();class AF{constructor(){this.tasks=[],this.endTasks=[]}}const a1=new ae("_COALESCED_STYLE_SCHEDULER");let IF=(()=>{class t{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new Ce}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 AF,this._getScheduleObservable().pipe(Tt(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new AF;for(const n of e.tasks)n();for(const n of e.endTasks)n()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Zi(Promise.resolve(void 0)):this._ngZone.onStable.pipe(ui(1))}}return t.\u0275fac=function(e){return new(e||t)(G(Ue))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})(),s1=(()=>{class t{constructor(e,n){this.template=e,this._differs=n}ngOnChanges(e){if(!this._columnsDiffer){const n=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(n).create(),this._columnsDiffer.diff(n)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof Hh?e.headerCell.template:this instanceof Uh?e.footerCell.template:e.cell.template}}return t.\u0275fac=function(e){return new(e||t)(b(_i),b(Qa))},t.\u0275dir=Q({type:t,features:[Ei]}),t})();class CY extends s1{}const kY=t1(CY);let Hh=(()=>{class t extends kY{constructor(e,n,r){super(e,n),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return t.\u0275fac=function(e){return new(e||t)(b(_i),b(Qa),b(Nd,8))},t.\u0275dir=Q({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[pe,Ei]}),t})();class DY extends s1{}const SY=t1(DY);let Uh=(()=>{class t extends SY{constructor(e,n,r){super(e,n),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return t.\u0275fac=function(e){return new(e||t)(b(_i),b(Qa),b(Nd,8))},t.\u0275dir=Q({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[pe,Ei]}),t})(),Hg=(()=>{class t extends s1{constructor(e,n,r){super(e,n),this._table=r}}return t.\u0275fac=function(e){return new(e||t)(b(_i),b(Qa),b(Nd,8))},t.\u0275dir=Q({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[pe]}),t})(),ss=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.mostRecentCellOutlet=null,t.\u0275fac=function(e){return new(e||t)(b(Fi))},t.\u0275dir=Q({type:t,selectors:[["","cdkCellOutlet",""]]}),t})(),c1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=je({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(e,n){1&e&&Yr(0,0)},dependencies:[ss],encapsulation:2}),t})(),d1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=je({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,n){1&e&&Yr(0,0)},dependencies:[ss],encapsulation:2}),t})(),Ug=(()=>{class t{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return t.\u0275fac=function(e){return new(e||t)(b(_i))},t.\u0275dir=Q({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const FF=["top","bottom","left","right"];class EY{constructor(i,e,n,r,o=!0,a=!0,s){this._isNativeHtmlTable=i,this._stickCellCss=e,this.direction=n,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=a,this._positionListener=s,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(i,e){const n=[];for(const r of i)if(r.nodeType===r.ELEMENT_NODE){n.push(r);for(let o=0;o{for(const r of n)this._removeStickyStyle(r,e)})}updateStickyColumns(i,e,n,r=!0){if(!i.length||!this._isBrowser||!e.some(h=>h)&&!n.some(h=>h))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const o=i[0],a=o.children.length,s=this._getCellWidths(o,r),c=this._getStickyStartColumnPositions(s,e),l=this._getStickyEndColumnPositions(s,n),d=e.lastIndexOf(!0),u=n.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const h="rtl"===this.direction,f=h?"right":"left",m=h?"left":"right";for(const g of i)for(let p=0;pe[p]?g:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===u?[]:s.slice(u).map((g,p)=>n[p+u]?g:null).reverse()}))})}stickRows(i,e,n){if(!this._isBrowser)return;const r="bottom"===n?i.slice().reverse():i,o="bottom"===n?e.slice().reverse():e,a=[],s=[],c=[];for(let d=0,u=0;d{for(let d=0;d{e.some(r=>!r)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0,!1)})}_removeStickyStyle(i,e){for(const r of e)i.style[r]="",i.classList.remove(this._borderCellCss[r]);FF.some(r=>-1===e.indexOf(r)&&i.style[r])?i.style.zIndex=this._getCalculatedZIndex(i):(i.style.zIndex="",this._needsPositionStickyOnElement&&(i.style.position=""),i.classList.remove(this._stickCellCss))}_addStickyStyle(i,e,n,r){i.classList.add(this._stickCellCss),r&&i.classList.add(this._borderCellCss[e]),i.style[e]=`${n}px`,i.style.zIndex=this._getCalculatedZIndex(i),this._needsPositionStickyOnElement&&(i.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(i){const e={top:100,bottom:10,left:1,right:1};let n=0;for(const r of FF)i.style[r]&&(n+=e[r]);return n?`${n}`:""}_getCellWidths(i,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const n=[],r=i.children;for(let o=0;o0;o--)e[o]&&(n[o]=r,r+=i[o]);return n}}const u1=new ae("CDK_SPL");let zg=(()=>{class t{constructor(e,n){this.viewContainer=e,this.elementRef=n}}return t.\u0275fac=function(e){return new(e||t)(b(Fi),b(Ae))},t.\u0275dir=Q({type:t,selectors:[["","rowOutlet",""]]}),t})(),$g=(()=>{class t{constructor(e,n){this.viewContainer=e,this.elementRef=n}}return t.\u0275fac=function(e){return new(e||t)(b(Fi),b(Ae))},t.\u0275dir=Q({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),jg=(()=>{class t{constructor(e,n){this.viewContainer=e,this.elementRef=n}}return t.\u0275fac=function(e){return new(e||t)(b(Fi),b(Ae))},t.\u0275dir=Q({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),Wg=(()=>{class t{constructor(e,n){this.viewContainer=e,this.elementRef=n}}return t.\u0275fac=function(e){return new(e||t)(b(Fi),b(Ae))},t.\u0275dir=Q({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),Gg=(()=>{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=$e(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=$e(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(e,n,r,o,a,s,c,l,d,u,h,f){this._differs=e,this._changeDetectorRef=n,this._elementRef=r,this._dir=a,this._platform=c,this._viewRepeater=l,this._coalescedStyleScheduler=d,this._viewportRuler=u,this._stickyPositioningListener=h,this._ngZone=f,this._onDestroy=new Ce,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 ke,this.viewChange=new Bn({start:0,end:Number.MAX_VALUE}),o||this._elementRef.nativeElement.setAttribute("role","table"),this._document=s,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,n)=>this.trackBy?this.trackBy(n.dataIndex,n.data):n),this._viewportRuler.change().pipe(Tt(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const n=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||n,this._forceRecalculateCellWidths=n,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(),hy(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 n=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,n,(r,o,a)=>this._getEmbeddedViewArgs(r.item,a),r=>r.item.data,r=>{1===r.operation&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{n.get(r.currentIndex).context.$implicit=r.item.data}),this._updateNoDataRow(),this._ngZone&&Ue.isInAngularZone()?this._ngZone.onStable.pipe(ui(1),Tt(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),r=this._elementRef.nativeElement.querySelector("thead");r&&(r.style.display=e.length?"":"none");const o=this._headerRowDefs.map(a=>a.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,o,"top"),this._headerRowDefs.forEach(a=>a.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(a=>a.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,o,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,o),this._footerRowDefs.forEach(a=>a.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...n,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((o,a)=>{this._addStickyColumnStyles([o],this._headerRowDefs[a])}),this._rowDefs.forEach(o=>{const a=[];for(let s=0;s{this._addStickyColumnStyles([o],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(o=>o.resetStickyChanged())}_getAllRenderRows(){const e=[],n=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const s=r&&r.has(a)?r.get(a):[];if(s.length){const c=s.shift();return c.dataIndex=n,c}return{data:e,rowDef:a,dataIndex:n}})}_cacheColumnDefs(){this._columnDefsByName.clear(),qg(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(n=>{this._columnDefsByName.has(n.name),this._columnDefsByName.set(n.name,n)})}_cacheRowDefs(){this._headerRowDefs=qg(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=qg(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=qg(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(n=>!n.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(a,s)=>a||!!s.getColumnsDiff(),n=this._rowDefs.reduce(e,!1);n&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const o=this._footerRowDefs.reduce(e,!1);return o&&this._forceRenderFooterRows(),n||r||o}_switchDataSource(e){this._data=[],hy(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;hy(this.dataSource)?e=this.dataSource.connect(this):function pY(t){return!!t&&(t instanceof ni||Wt(t.lift)&&Wt(t.subscribe))}(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=ze(this.dataSource)),this._renderChangeSubscription=e.pipe(Tt(this._onDestroy)).subscribe(n=>{this._data=n||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,n)=>this._renderRow(this._headerRowOutlet,e,n)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,n)=>this._renderRow(this._footerRowOutlet,e,n)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,n){const r=Array.from(n.columns||[]).map(s=>this._columnDefsByName.get(s)),o=r.map(s=>s.sticky),a=r.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,o,a,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const n=[];for(let r=0;r!o.when||o.when(n,e));else{let o=this._rowDefs.find(a=>a.when&&a.when(n,e))||this._defaultRowDef;o&&r.push(o)}return r}_getEmbeddedViewArgs(e,n){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:n}}_renderRow(e,n,r,o={}){const a=e.viewContainer.createEmbeddedView(n.template,o,r);return this._renderCellTemplateForItem(n,o),a}_renderCellTemplateForItem(e,n){for(let r of this._getCellTemplates(e))ss.mostRecentCellOutlet&&ss.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,n);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let n=0,r=e.length;n{const r=this._columnDefsByName.get(n);return e.extractCellTemplate(r)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),n=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const r of n){const o=this._document.createElement(r.tag);o.setAttribute("role","rowgroup");for(const a of r.outlets)o.appendChild(a.elementRef.nativeElement);e.appendChild(o)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(n,r)=>n||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 EY(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:ze()).pipe(Tt(this._onDestroy)).subscribe(n=>{this._stickyStyler.direction=n,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(n=>!n._table||n._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const n=0===this._rowOutlet.viewContainer.length;if(n===this._isShowingNoDataRow)return;const r=this._noDataRowOutlet.viewContainer;if(n){const o=r.createEmbeddedView(e.templateRef),a=o.rootNodes[0];1===o.rootNodes.length&&a?.nodeType===this._document.ELEMENT_NODE&&(a.setAttribute("role","row"),a.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=n}}return t.\u0275fac=function(e){return new(e||t)(b(Qa),b(Gt),b(Ae),uo("role"),b(_n,8),b(it),b(xi),b(Ch),b(a1),b(_a),b(u1,12),b(Ue,8))},t.\u0275cmp=je({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,n,r){if(1&e&&(Bt(r,Ug,5),Bt(r,as,5),Bt(r,Hg,5),Bt(r,Hh,5),Bt(r,Uh,5)),2&e){let o;xe(o=ye())&&(n._noDataRow=o.first),xe(o=ye())&&(n._contentColumnDefs=o),xe(o=ye())&&(n._contentRowDefs=o),xe(o=ye())&&(n._contentHeaderRowDefs=o),xe(o=ye())&&(n._contentFooterRowDefs=o)}},viewQuery:function(e,n){if(1&e&&(at(zg,7),at($g,7),at(jg,7),at(Wg,7)),2&e){let r;xe(r=ye())&&(n._rowOutlet=r.first),xe(r=ye())&&(n._headerRowOutlet=r.first),xe(r=ye())&&(n._footerRowOutlet=r.first),xe(r=ye())&&(n._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,n){2&e&&Xe("cdk-table-fixed-layout",n.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[We([{provide:Nd,useExisting:t},{provide:Ch,useClass:KA},{provide:a1,useClass:IF},{provide:u1,useValue:null}])],ngContentSelectors:_Y,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,n){1&e&&(vi(gY),Je(0),Je(1,1),Yr(2,0)(3,1)(4,2)(5,3))},dependencies:[zg,$g,jg,Wg],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),t})();function qg(t,i){return t.concat(Array.from(i))}let MY=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({imports:[Xy]}),t})();const AY=[[["caption"]],[["colgroup"],["col"]]],IY=["caption","colgroup, col"];let zh=(()=>{class t extends Gg{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")}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275cmp=je({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(e,n){2&e&&Xe("mdc-table-fixed-layout",n.fixedLayout)},exportAs:["matTable"],features:[We([{provide:Gg,useExisting:t},{provide:Nd,useExisting:t},{provide:a1,useClass:IF},{provide:Ch,useClass:KA},{provide:u1,useValue:null}]),pe],ngContentSelectors:IY,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,n){1&e&&(vi(AY),Je(0),Je(1,1),Yr(2,0)(3,1)(4,2)(5,3))},dependencies:[zg,$g,jg,Wg],styles:[".mdc-data-table{border-radius:var(--mdc-shape-medium, 4px);border-width:1px;border-style:solid}.mdc-data-table .mdc-data-table__header-cell:first-child{border-top-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:first-child,.mdc-data-table .mdc-data-table__header-cell:first-child[dir=rtl]{border-top-right-radius:var(--mdc-shape-medium, 4px);border-top-left-radius:0}.mdc-data-table .mdc-data-table__header-cell:last-child{border-top-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:last-child,.mdc-data-table .mdc-data-table__header-cell:last-child[dir=rtl]{border-top-left-radius:var(--mdc-shape-medium, 4px);border-top-right-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child{border-bottom-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child[dir=rtl]{border-bottom-right-radius:var(--mdc-shape-medium, 4px);border-bottom-left-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child{border-bottom-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child[dir=rtl]{border-bottom-left-radius:var(--mdc-shape-medium, 4px);border-bottom-right-radius:0}.mdc-data-table__cell,.mdc-data-table__header-cell{border-bottom-width:1px;border-bottom-style:solid}.mdc-data-table__pagination{border-top-width:1px;border-top-style:solid}.mdc-data-table__row:last-child .mdc-data-table__cell{border-bottom:none}.mdc-data-table__row{height:52px}.mdc-data-table__pagination{min-height:52px}.mdc-data-table__header-row{height:56px}.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}.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__cell--checkbox{width:1px}.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--checkbox{width:1px}.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__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table--sticky-header .mdc-data-table__header-cell{position:sticky;top:0;z-index:1}.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__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--checkbox{width:1px}.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__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.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__cell--checkbox{width:1px}.mdc-data-table__pagination{box-sizing:border-box;display:flex;justify-content:flex-end}.mdc-data-table__pagination-trailing{margin-left:4px;margin-right:0;align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end}[dir=rtl] .mdc-data-table__pagination-trailing,.mdc-data-table__pagination-trailing[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__pagination-navigation{align-items:center;display:flex}.mdc-data-table__pagination-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__pagination-button .mdc-button__icon,.mdc-data-table__pagination-button .mdc-button__icon[dir=rtl]{transform:rotate(180deg)}[dir=rtl] .mdc-data-table__pagination-button,.mdc-data-table__pagination-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__pagination-total{margin-left:14px;margin-right:36px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-total,.mdc-data-table__pagination-total[dir=rtl]{margin-left:36px;margin-right:14px}.mdc-data-table__pagination-rows-per-page{margin-left:0;margin-right:22px;align-items:center;display:inline-flex}[dir=rtl] .mdc-data-table__pagination-rows-per-page,.mdc-data-table__pagination-rows-per-page[dir=rtl]{margin-left:22px;margin-right:0}.mdc-data-table__pagination-rows-per-page-label{margin-left:0;margin-right:12px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-rows-per-page-label,.mdc-data-table__pagination-rows-per-page-label[dir=rtl]{margin-left:12px;margin-right:0}.mdc-data-table__pagination-rows-per-page-select{min-width:var(--mdc-menu-min-width, 80px);margin:8px 0}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{width:100%;min-width:80px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{height:36px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{font-size:.75rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__dropdown-icon{width:20px;height:20px}.mdc-data-table__pagination-rows-per-page-select.mdc-select--outlined .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 56px)}.mdc-data-table__pagination-rows-per-page-select .mdc-list-item.mdc-list-item--with-one-line{height:36px}.mdc-data-table__progress-indicator{display:none;position:absolute;width:100%}.mdc-data-table--in-progress .mdc-data-table__progress-indicator{display:block}.mdc-data-table__scrim{background-color:var(--mdc-theme-surface, #fff);height:100%;opacity:.32;position:absolute;top:0;width:100%}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-sticky{position:sticky !important}.mat-mdc-table{table-layout:auto;white-space:normal}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-mdc-row:hover,.mat-mdc-table .mat-mdc-footer-row:hover{background-color: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}),t})(),Vd=(()=>{class t extends Ld{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","matCellDef",""]],features:[We([{provide:Ld,useExisting:t}]),pe]}),t})(),Hd=(()=>{class t extends Bd{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","matHeaderCellDef",""]],features:[We([{provide:Bd,useExisting:t}]),pe]}),t})(),Ud=(()=>{class t extends as{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[We([{provide:as,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),pe]}),t})(),zd=(()=>{class t extends r1{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[pe]}),t})(),$d=(()=>{class t extends o1{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[pe]}),t})(),$h=(()=>{class t extends Hh{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[We([{provide:Hh,useExisting:t}]),pe]}),t})(),jh=(()=>{class t extends Hg{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[We([{provide:Hg,useExisting:t}]),pe]}),t})(),Wh=(()=>{class t extends c1{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275cmp=je({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:[We([{provide:c1,useExisting:t}]),pe],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,n){1&e&&Yr(0,0)},dependencies:[ss],encapsulation:2}),t})(),Gh=(()=>{class t extends d1{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275cmp=je({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[We([{provide:d1,useExisting:t}]),pe],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,n){1&e&&Yr(0,0)},dependencies:[ss],encapsulation:2}),t})(),UY=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({imports:[xt,MY,xt]}),t})();class $Y extends uy{get data(){return this._data.value}set data(i){i=Array.isArray(i)?i:[],this._data.next(i),this._renderChangesSubscription||this._filterData(i)}get filter(){return this._filter.value}set filter(i){this._filter.next(i),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(i){this._sort=i,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(i){this._paginator=i,this._updateChangeSubscription()}constructor(i=[]){super(),this._renderData=new Bn([]),this._filter=new Bn(""),this._internalPageChanges=new Ce,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,n)=>{const r=e[n];if(_I(r)){const o=Number(r);return o<9007199254740991?o:r}return r},this.sortData=(e,n)=>{const r=n.active,o=n.direction;return r&&""!=o?e.sort((a,s)=>{let c=this.sortingDataAccessor(a,r),l=this.sortingDataAccessor(s,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((a,s)=>a+e[s]+"\u25ec","").toLowerCase(),o=n.trim().toLowerCase();return-1!=r.indexOf(o)},this._data=new Bn(i),this._updateChangeSubscription()}_updateChangeSubscription(){const i=this._sort?Bi(this._sort.sortChange,this._sort.initialized):ze(null),e=this._paginator?Bi(this._paginator.page,this._internalPageChanges,this._paginator.initialized):ze(null),r=Ic([this._data,this._filter]).pipe(Ye(([s])=>this._filterData(s))),o=Ic([r,i]).pipe(Ye(([s])=>this._orderData(s))),a=Ic([o,e]).pipe(Ye(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(i){return this.filteredData=null==this.filter||""===this.filter?i:i.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(i){return this.sort?this.sortData(i.slice(),this.sort):i}_pageData(i){if(!this.paginator)return i;const e=this.paginator.pageIndex*this.paginator.pageSize;return i.slice(e,e+this.paginator.pageSize)}_updatePaginator(i){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=i,e.pageIndex>0)){const n=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,n);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 qh extends $Y{}let OF=(()=>{class t{constructor(e,n){this._renderer=e,this._elementRef=n,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(b(ja),b(Ae))},t.\u0275dir=Q({type:t}),t})(),Wc=(()=>{class t extends OF{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,features:[pe]}),t})();const qn=new ae("NgValueAccessor"),WY={provide:qn,useExisting:Xt(()=>Us),multi:!0},qY=new ae("CompositionEventMode");let Us=(()=>{class t extends OF{constructor(e,n,r){super(e,n),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function GY(){const t=Ya()?Ya().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)}}return t.\u0275fac=function(e){return new(e||t)(b(ja),b(Ae),b(qY,8))},t.\u0275dir=Q({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(e,n){1&e&&X("input",function(o){return n._handleInput(o.target.value)})("blur",function(){return n.onTouched()})("compositionstart",function(){return n._compositionStart()})("compositionend",function(o){return n._compositionEnd(o.target.value)})},features:[We([WY]),pe]}),t})();const XY=!1;function zs(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function NF(t){return null!=t&&"number"==typeof t.length}const Hn=new ae("NgValidators"),$s=new ae("NgAsyncValidators"),QY=/^(?=.{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 jd{static min(i){return function LF(t){return i=>{if(zs(i.value)||zs(t))return null;const e=parseFloat(i.value);return!isNaN(e)&&e{if(zs(i.value)||zs(t))return null;const e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null}}(i)}static required(i){return VF(i)}static requiredTrue(i){return function HF(t){return!0===t.value?null:{required:!0}}(i)}static email(i){return function UF(t){return zs(t.value)||QY.test(t.value)?null:{email:!0}}(i)}static minLength(i){return zF(i)}static maxLength(i){return function $F(t){return i=>NF(i.value)&&i.value.length>t?{maxlength:{requiredLength:t,actualLength:i.value.length}}:null}(i)}static pattern(i){return function jF(t){if(!t)return Xg;let i,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),i=new RegExp(e)):(e=t.toString(),i=t),n=>{if(zs(n.value))return null;const r=n.value;return i.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(i)}static nullValidator(i){return null}static compose(i){return YF(i)}static composeAsync(i){return KF(i)}}function VF(t){return zs(t.value)?{required:!0}:null}function zF(t){return i=>zs(i.value)||!NF(i.value)?null:i.value.length{i=null!=e?{...i,...e}:i}),0===Object.keys(i).length?null:i}function XF(t,i){return i.map(e=>e(t))}function QF(t){return t.map(i=>function YY(t){return!t.validate}(i)?i:e=>i.validate(e))}function YF(t){if(!t)return null;const i=t.filter(WF);return 0==i.length?null:function(e){return qF(XF(e,i))}}function h1(t){return null!=t?YF(QF(t)):null}function KF(t){if(!t)return null;const i=t.filter(WF);return 0==i.length?null:function(e){return bF(XF(e,i).map(GF)).pipe(Ye(qF))}}function f1(t){return null!=t?KF(QF(t)):null}function ZF(t,i){return null===t?[i]:Array.isArray(t)?[...t,i]:[t,i]}function JF(t){return t._rawValidators}function eR(t){return t._rawAsyncValidators}function m1(t){return t?Array.isArray(t)?t:[t]:[]}function Qg(t,i){return Array.isArray(t)?t.includes(i):t===i}function tR(t,i){const e=m1(i);return m1(t).forEach(r=>{Qg(e,r)||e.push(r)}),e}function iR(t,i){return m1(i).filter(e=>!Qg(t,e))}class nR{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(i){this._rawValidators=i||[],this._composedValidatorFn=h1(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=f1(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i){this.control&&this.control.reset(i)}hasError(i,e){return!!this.control&&this.control.hasError(i,e)}getError(i,e){return this.control?this.control.getError(i,e):null}}class wr extends nR{get formDirective(){return null}get path(){return null}}class xa extends nR{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class rR{constructor(i){this._cd=i}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 ya=(()=>{class t extends rR{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(b(xa,2))},t.\u0275dir=Q({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,n){2&e&&Xe("ng-untouched",n.isUntouched)("ng-touched",n.isTouched)("ng-pristine",n.isPristine)("ng-dirty",n.isDirty)("ng-valid",n.isValid)("ng-invalid",n.isInvalid)("ng-pending",n.isPending)},features:[pe]}),t})(),Xh=(()=>{class t extends rR{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(b(wr,10))},t.\u0275dir=Q({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,n){2&e&&Xe("ng-untouched",n.isUntouched)("ng-touched",n.isTouched)("ng-pristine",n.isPristine)("ng-dirty",n.isDirty)("ng-valid",n.isValid)("ng-invalid",n.isInvalid)("ng-pending",n.isPending)("ng-submitted",n.isSubmitted)},features:[pe]}),t})();function oR(t,i){return t?`with name: '${i}'`:`at index: ${i}`}const _1=!1,Qh="VALID",Kg="INVALID",Wd="PENDING",Yh="DISABLED";function b1(t){return(Zg(t)?t.validators:t)||null}function v1(t,i){return(Zg(i)?i.asyncValidators:t)||null}function Zg(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function aR(t,i,e){const n=t.controls;if(!(i?Object.keys(n):n).length)throw new ue(1e3,_1?function eK(t){return`\n There are no form controls registered with this ${t?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(i):"");if(!n[e])throw new ue(1001,_1?function tK(t,i){return`Cannot find form control ${oR(t,i)}`}(i,e):"")}function sR(t,i,e){t._forEachChild((n,r)=>{if(void 0===e[r])throw new ue(1002,_1?function iK(t,i){return`Must supply a value for form control ${oR(t,i)}`}(i,r):"")})}class Jg{constructor(i,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(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get valid(){return this.status===Qh}get invalid(){return this.status===Kg}get pending(){return this.status==Wd}get disabled(){return this.status===Yh}get enabled(){return this.status!==Yh}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(tR(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(tR(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(iR(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(iR(i,this._rawAsyncValidators))}hasValidator(i){return Qg(this._rawValidators,i)}hasAsyncValidator(i){return Qg(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){this.touched=!0,this._parent&&!i.onlySelf&&this._parent.markAsTouched(i)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(i=>i.markAllAsTouched())}markAsUntouched(i={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}markAsDirty(i={}){this.pristine=!1,this._parent&&!i.onlySelf&&this._parent.markAsDirty(i)}markAsPristine(i={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}markAsPending(i={}){this.status=Wd,!1!==i.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!i.onlySelf&&this._parent.markAsPending(i)}disable(i={}){const e=this._parentMarkedDirty(i.onlySelf);this.status=Yh,this.errors=null,this._forEachChild(n=>{n.disable({...i,onlySelf:!0})}),this._updateValue(),!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...i,skipPristineCheck:e}),this._onDisabledChange.forEach(n=>n(!0))}enable(i={}){const e=this._parentMarkedDirty(i.onlySelf);this.status=Qh,this._forEachChild(n=>{n.enable({...i,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors({...i,skipPristineCheck:e}),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Qh||this.status===Wd)&&this._runAsyncValidator(i.emitEvent)),!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(i)}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Yh:Qh}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i){if(this.asyncValidator){this.status=Wd,this._hasOwnPendingAsyncValidator=!0;const e=GF(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:i})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(!1!==e.emitEvent)}get(i){let e=i;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((n,r)=>n&&n._find(r),this)}getError(i,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(i)}_initObservables(){this.valueChanges=new ke,this.statusChanges=new ke}_calculateStatus(){return this._allControlsDisabled()?Yh:this.errors?Kg:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Wd)?Wd:this._anyControlsHaveStatus(Kg)?Kg:Qh}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i={}){this.pristine=!this._anyControlsDirty(),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}_updateTouched(i={}){this.touched=this._anyControlsTouched(),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){Zg(i)&&null!=i.updateOn&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=function nK(t){return Array.isArray(t)?h1(t):t||null}(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=function rK(t){return Array.isArray(t)?f1(t):t||null}(this._rawAsyncValidators)}}class Gd extends Jg{constructor(i,e,n){super(b1(e),v1(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(i,e){return this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,n={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){sR(this,!0,i),Object.keys(i).forEach(n=>{aR(this,!0,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){null!=i&&(Object.keys(i).forEach(n=>{const r=this.controls[n];r&&r.patchValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((n,r)=>{n.reset(i[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(i,e,n)=>(i[n]=e.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(e,n)=>!!n._syncPendingControls()||e);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&i(n,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(const[e,n]of Object.entries(this.controls))if(this.contains(e)&&i(n))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,n,r)=>((n.enabled||this.disabled)&&(e[r]=n.value),e))}_reduceChildren(i,e){let n=i;return this._forEachChild((r,o)=>{n=e(n,r,o)}),n}_allControlsDisabled(){for(const i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return this.controls.hasOwnProperty(i)?this.controls[i]:null}}class cR extends Gd{}const Gc=new ae("CallSetDisabledState",{providedIn:"root",factory:()=>Kh}),Kh="always";function e0(t,i){return[...i.path,t]}function Zh(t,i,e=Kh){x1(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&i.valueAccessor.setDisabledState?.(t.disabled),function aK(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&lR(t,i)})}(t,i),function cK(t,i){const e=(n,r)=>{i.valueAccessor.writeValue(n),r&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,i),function sK(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&lR(t,i),"submit"!==t.updateOn&&t.markAsTouched()})}(t,i),function oK(t,i){if(i.valueAccessor.setDisabledState){const e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,i)}function t0(t,i,e=!0){const n=()=>{};i.valueAccessor&&(i.valueAccessor.registerOnChange(n),i.valueAccessor.registerOnTouched(n)),r0(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function n0(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function x1(t,i){const e=JF(t);null!==i.validator?t.setValidators(ZF(e,i.validator)):"function"==typeof e&&t.setValidators([e]);const n=eR(t);null!==i.asyncValidator?t.setAsyncValidators(ZF(n,i.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);const r=()=>t.updateValueAndValidity();n0(i._rawValidators,r),n0(i._rawAsyncValidators,r)}function r0(t,i){let e=!1;if(null!==t){if(null!==i.validator){const r=JF(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(a=>a!==i.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(null!==i.asyncValidator){const r=eR(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(a=>a!==i.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}const n=()=>{};return n0(i._rawValidators,n),n0(i._rawAsyncValidators,n),e}function lR(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function dR(t,i){x1(t,i)}function w1(t,i){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(i,e.currentValue)}function uR(t,i){t._syncPendingControls(),i.forEach(e=>{const n=e.control;"submit"===n.updateOn&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function C1(t,i){if(!i)return null;let e,n,r;return Array.isArray(i),i.forEach(o=>{o.constructor===Us?e=o:function uK(t){return Object.getPrototypeOf(t.constructor)===Wc}(o)?n=o:r=o}),r||n||e||null}const fK={provide:wr,useExisting:Xt(()=>qc)},Jh=(()=>Promise.resolve())();let qc=(()=>{class t extends wr{constructor(e,n,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._directives=new Set,this.ngSubmit=new ke,this.form=new Gd({},h1(e),f1(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Jh.then(()=>{const n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Zh(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Jh.then(()=>{const n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Jh.then(()=>{const n=this._findContainer(e.path),r=new Gd({});dR(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Jh.then(()=>{const n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){Jh.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,uR(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){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}}return t.\u0275fac=function(e){return new(e||t)(b(Hn,10),b($s,10),b(Gc,8))},t.\u0275dir=Q({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,n){1&e&&X("submit",function(o){return n.onSubmit(o)})("reset",function(){return n.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[We([fK]),pe]}),t})();function hR(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}function fR(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const Jr=class extends Jg{constructor(i=null,e,n){super(b1(e),v1(n,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Zg(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=fR(i)?i.value:i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(n=>n(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){hR(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){hR(this._onDisabledChange,i)}_forEachChild(i){}_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(i){fR(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}},mK=Jr,_K={provide:xa,useExisting:Xt(()=>cs)},gR=(()=>Promise.resolve())();let cs=(()=>{class t extends xa{constructor(e,n,r,o,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this.control=new Jr,this._registered=!1,this.update=new ke,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=C1(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),w1(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(){Zh(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){gR.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const n=e.isDisabled.currentValue,r=0!==n&&hd(n);gR.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?e0(e,this._parent):[e]}}return t.\u0275fac=function(e){return new(e||t)(b(wr,9),b(Hn,10),b($s,10),b(qn,10),b(Gt,8),b(Gc,8))},t.\u0275dir=Q({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[We([_K]),pe,Ei]}),t})(),ef=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),bR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({}),t})();const k1=new ae("NgModelWithFormControlWarning"),wK={provide:xa,useExisting:Xt(()=>o0)};let o0=(()=>{class t extends xa{set isDisabled(e){}constructor(e,n,r,o,a){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=a,this.update=new ke,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=C1(0,r)}ngOnChanges(e){if(this._isControlChanged(e)){const n=e.form.previousValue;n&&t0(n,this,!1),Zh(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}w1(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&t0(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")}}return t._ngModelWarningSentOnce=!1,t.\u0275fac=function(e){return new(e||t)(b(Hn,10),b($s,10),b(qn,10),b(k1,8),b(Gc,8))},t.\u0275dir=Q({type:t,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[We([wK]),pe,Ei]}),t})();const CK={provide:wr,useExisting:Xt(()=>js)};let js=(()=>{class t extends wr{constructor(e,n,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new ke,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(r0(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 n=this.form.get(e.path);return Zh(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){t0(e.control||null,e,!1),function hK(t,i){const e=t.indexOf(i);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,n){this.form.get(e.path).setValue(n)}onSubmit(e){return this.submitted=!0,uR(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const n=e.control,r=this.form.get(e.path);n!==r&&(t0(n||null,e),(t=>t instanceof Jr)(r)&&(Zh(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const n=this.form.get(e.path);dR(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const n=this.form.get(e.path);n&&function lK(t,i){return r0(t,i)}(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){x1(this.form,this),this._oldForm&&r0(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(b(Hn,10),b($s,10),b(Gc,8))},t.\u0275dir=Q({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,n){1&e&&X("submit",function(o){return n.onSubmit(o)})("reset",function(){return n.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[We([CK]),pe,Ei]}),t})();const SK={provide:xa,useExisting:Xt(()=>tf)};let tf=(()=>{class t extends xa{set isDisabled(e){}constructor(e,n,r,o,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.update=new ke,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=C1(0,o)}ngOnChanges(e){this._added||this._setUpControl(),w1(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 e0(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return t._ngModelWarningSentOnce=!1,t.\u0275fac=function(e){return new(e||t)(b(wr,13),b(Hn,10),b($s,10),b(qn,10),b(k1,8))},t.\u0275dir=Q({type:t,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[We([SK]),pe,Ei]}),t})();let Xc=(()=>{class t{constructor(){this._validator=Xg}ngOnChanges(e){if(this.inputName in e){const n=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):Xg,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,features:[Ei]}),t})();const PK={provide:Hn,useExisting:Xt(()=>a0),multi:!0};let a0=(()=>{class t extends Xc{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=hd,this.createValidator=e=>VF}enabled(e){return e}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,n){2&e&&rt("required",n._enabled?"":null)},inputs:{required:"required"},features:[We([PK]),pe]}),t})();const BK={provide:Hn,useExisting:Xt(()=>M1),multi:!0};let M1=(()=>{class t extends Xc{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=e=>function kR(t){return"number"==typeof t?t:parseInt(t,10)}(e),this.createValidator=e=>zF(e)}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(e,n){2&e&&rt("minlength",n._enabled?n.minlength:null)},inputs:{minlength:"minlength"},features:[We([BK]),pe]}),t})(),IR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({imports:[bR]}),t})();class FR extends Jg{constructor(i,e,n){super(b1(e),v1(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(i){return this.controls[this._adjustIndex(i)]}push(i,e={}){this.controls.push(i),this._registerControl(i),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(i,e,n={}){this.controls.splice(i,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(i,e={}){let n=this._adjustIndex(i);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(i,e,n={}){let r=this._adjustIndex(i);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:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(i,e={}){sR(this,!1,i),i.forEach((n,r)=>{aR(this,!1,r),this.at(r).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){null!=i&&(i.forEach((n,r)=>{this.at(r)&&this.at(r).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i=[],e={}){this._forEachChild((n,r)=>{n.reset(i[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(i=>i.getRawValue())}clear(i={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}_adjustIndex(i){return i<0?i+this.length:i}_syncPendingControls(){let i=this.controls.reduce((e,n)=>!!n._syncPendingControls()||e,!1);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){this.controls.forEach((e,n)=>{i(e,n)})}_updateValue(){this.value=this.controls.filter(i=>i.enabled||this.disabled).map(i=>i.value)}_anyControls(i){return this.controls.some(e=>e.enabled&&i(e))}_setUpControls(){this._forEachChild(i=>this._registerControl(i))}_allControlsDisabled(){for(const i of this.controls)if(i.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}_find(i){return this.at(i)??null}}function RR(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let OR=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,n=null){const r=this._reduceControls(e);let o={};return RR(n)?o=n:null!==n&&(o.validators=n.validator,o.asyncValidators=n.asyncValidator),new Gd(r,o)}record(e,n=null){const r=this._reduceControls(e);return new cR(r,n)}control(e,n,r){let o={};return this.useNonNullable?(RR(n)?o=n:(o.validators=n,o.asyncValidators=r),new Jr(e,{...o,nonNullable:!0})):new Jr(e,n,r)}array(e,n,r){const o=e.map(a=>this._createControl(a));return new FR(o,n,r)}_reduceControls(e){const n={};return Object.keys(e).forEach(r=>{n[r]=this._createControl(e[r])}),n}_createControl(e){return e instanceof Jr||e instanceof Jg?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),A1=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Gc,useValue:e.callSetDisabledState??Kh}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({imports:[IR]}),t})(),UK=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:k1,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Gc,useValue:e.callSetDisabledState??Kh}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({imports:[IR]}),t})();const zK=["matFormFieldNotchedOutline",""],$K=["*"],jK=["textField"],WK=["iconPrefixContainer"],GK=["textPrefixContainer"];function qK(t,i){1&t&&Ee(0,"span",19)}function XK(t,i){if(1&t){const e=ct();v(0,"label",17),X("cdkObserveContent",function(){return Oe(e),Pe(q(2)._refreshOutlineNotchWidth())}),Je(1,1),H(2,qK,1,0,"span",18),y()}if(2&t){const e=q(2);I("floating",e._shouldLabelFloat())("cdkObserveContentDisabled",!e._hasOutline())("id",e._labelId),rt("for",e._control.id)("aria-owns",e._control.id),k(2),I("ngIf",!e.hideRequiredMarker&&e._control.required)}}function QK(t,i){1&t&&H(0,XK,3,6,"label",16),2&t&&I("ngIf",q()._hasFloatingLabel())}function YK(t,i){1&t&&Ee(0,"div",20)}function KK(t,i){}function ZK(t,i){1&t&&H(0,KK,0,0,"ng-template",22),2&t&&(q(2),I("ngTemplateOutlet",Lt(1)))}function JK(t,i){if(1&t&&(v(0,"div",21),H(1,ZK,1,1,"ng-template",9),y()),2&t){const e=q();I("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat())("matFormFieldNotchedOutlineLabelWidth",e._labelWidth),k(1),I("ngIf",!e._forceDisplayInfixLabel())}}function eZ(t,i){1&t&&(v(0,"div",23,24),Je(2,2),y())}function tZ(t,i){1&t&&(v(0,"div",25,26),Je(2,3),y())}function iZ(t,i){}function nZ(t,i){1&t&&H(0,iZ,0,0,"ng-template",22),2&t&&(q(),I("ngTemplateOutlet",Lt(1)))}function rZ(t,i){1&t&&(v(0,"div",27),Je(1,4),y())}function oZ(t,i){1&t&&(v(0,"div",28),Je(1,5),y())}function aZ(t,i){1&t&&Ee(0,"div",29)}function sZ(t,i){1&t&&(v(0,"div",30),Je(1,6),y()),2&t&&I("@transitionMessages",q()._subscriptAnimationState)}function cZ(t,i){if(1&t&&(v(0,"mat-hint",34),M(1),y()),2&t){const e=q(2);I("id",e._hintLabelId),k(1),tt(e.hintLabel)}}function lZ(t,i){if(1&t&&(v(0,"div",31),H(1,cZ,2,2,"mat-hint",32),Je(2,7),Ee(3,"div",33),Je(4,8),y()),2&t){const e=q();I("@transitionMessages",e._subscriptAnimationState),k(1),I("ngIf",e.hintLabel)}}const dZ=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],uZ=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let wa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["mat-label"]]}),t})(),hZ=0;const PR=new ae("MatError");let NR=(()=>{class t{constructor(e,n){this.id="mat-mdc-error-"+hZ++,e||n.nativeElement.setAttribute("aria-live","polite")}}return t.\u0275fac=function(e){return new(e||t)(uo("aria-live"),b(Ae))},t.\u0275dir=Q({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(e,n){2&e&&ua("id",n.id)},inputs:{id:"id"},features:[We([{provide:PR,useExisting:t}])]}),t})(),fZ=0,nf=(()=>{class t{constructor(){this.align="start",this.id="mat-mdc-hint-"+fZ++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(e,n){2&e&&(ua("id",n.id),rt("align",null),Xe("mat-mdc-form-field-hint-end","end"===n.align))},inputs:{align:"align",id:"id"}}),t})();const mZ=new ae("MatPrefix"),LR=new ae("MatSuffix");let BR=(()=>{class t{constructor(){this._isText=!1}set _isTextSelector(e){this._isText=!0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:["matTextSuffix","_isTextSelector"]},features:[We([{provide:LR,useExisting:t}])]}),t})(),VR=(()=>{class t{constructor(e){this._elementRef=e,this.floating=!1}getWidth(){return function pZ(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 n=e.scrollWidth;return e.remove(),n}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(b(Ae))},t.\u0275dir=Q({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(e,n){2&e&&Xe("mdc-floating-label--float-above",n.floating)},inputs:{floating:"floating"}}),t})();const HR="mdc-line-ripple--active",c0="mdc-line-ripple--deactivating";let UR=(()=>{class t{constructor(e,n){this._elementRef=e,this._handleTransitionEnd=r=>{const o=this._elementRef.nativeElement.classList,a=o.contains(c0);"opacity"===r.propertyName&&a&&o.remove(HR,c0)},n.runOutsideAngular(()=>{e.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const e=this._elementRef.nativeElement.classList;e.remove(c0),e.add(HR)}deactivate(){this._elementRef.nativeElement.classList.add(c0)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Ue))},t.\u0275dir=Q({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]}),t})(),zR=(()=>{class t{constructor(e,n){this._elementRef=e,this._ngZone=n,this.labelWidth=0,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")}_getNotchWidth(){return this.open?this.labelWidth>0?`calc(${this.labelWidth}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:"0px":null}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Ue))},t.\u0275cmp=je({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(e,n){2&e&&Xe("mdc-notched-outline--notched",n.open)},inputs:{labelWidth:["matFormFieldNotchedOutlineLabelWidth","labelWidth"],open:["matFormFieldNotchedOutlineOpen","open"]},attrs:zK,ngContentSelectors:$K,decls:4,vars:2,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(e,n){1&e&&(vi(),Ee(0,"div",0),v(1,"div",1),Je(2),y(),Ee(3,"div",2)),2&e&&(k(1),tr("width",n._getNotchWidth()))},encapsulation:2,changeDetection:0}),t})();const gZ={transitionMessages:bn("transitionMessages",[ii("enter",nt({opacity:1,transform:"translateY(0%)"})),ai("void => enter",[nt({opacity:0,transform:"translateY(-5px)"}),fi("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let l0=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t}),t})();const d0=new ae("MatFormField"),_Z=new ae("MAT_FORM_FIELD_DEFAULT_OPTIONS");let $R=0,Ws=(()=>{class t{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=$e(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 n=this._appearance;this._appearance=e||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==n&&(this._refreshOutlineNotchWidth(),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,n,r,o,a,s,c,l){this._elementRef=e,this._changeDetectorRef=n,this._ngZone=r,this._dir=o,this._platform=a,this._defaults=s,this._animationMode=c,this._document=l,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-"+$R++,this._hintLabelId="mat-mdc-hint-"+$R++,this._subscriptAnimationState="",this._labelWidth=0,this._destroyed=new Ce,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,s&&(s.appearance&&(this.appearance=s.appearance),this._hideRequiredMarker=Boolean(s?.hideRequiredMarker),s.color&&(this.color=s.color))}ngAfterViewInit(){this._updateFocusState(),this._refreshOutlineNotchWidth(),this._document?.fonts?.ready?this._document.fonts.ready.then(()=>{this._refreshOutlineNotchWidth(),this._changeDetectorRef.markForCheck()}):setTimeout(()=>this._refreshOutlineNotchWidth(),100),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${e.controlType}`),e.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Tt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),Bi(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Tt(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe(Tt(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(e){const n=this._control?this._control.ngControl:null;return n&&n[e]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||(this._labelWidth=this._floatingLabel.getWidth())}_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 n=this._hintChildren?this._hintChildren.find(o=>"start"===o.align):null,r=this._hintChildren?this._hintChildren.find(o=>"end"===o.align):null;n?e.push(n.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(n=>n.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 n=this._iconPrefixContainer?.nativeElement,r=this._textPrefixContainer?.nativeElement,o=n?.getBoundingClientRect().width??0,a=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+a}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const e=this._elementRef.nativeElement;if(e.getRootNode){const n=e.getRootNode();return n&&n!==e}return document.documentElement.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Gt),b(Ue),b(_n),b(xi),b(_Z,8),b(Ri,8),b(it))},t.\u0275cmp=je({type:t,selectors:[["mat-form-field"]],contentQueries:function(e,n,r){if(1&e&&(Bt(r,wa,5),Bt(r,wa,7),Bt(r,l0,5),Bt(r,mZ,5),Bt(r,LR,5),Bt(r,PR,5),Bt(r,nf,5)),2&e){let o;xe(o=ye())&&(n._labelChildNonStatic=o.first),xe(o=ye())&&(n._labelChildStatic=o.first),xe(o=ye())&&(n._formFieldControl=o.first),xe(o=ye())&&(n._prefixChildren=o),xe(o=ye())&&(n._suffixChildren=o),xe(o=ye())&&(n._errorChildren=o),xe(o=ye())&&(n._hintChildren=o)}},viewQuery:function(e,n){if(1&e&&(at(jK,5),at(WK,5),at(GK,5),at(VR,5),at(zR,5),at(UR,5)),2&e){let r;xe(r=ye())&&(n._textField=r.first),xe(r=ye())&&(n._iconPrefixContainer=r.first),xe(r=ye())&&(n._textPrefixContainer=r.first),xe(r=ye())&&(n._floatingLabel=r.first),xe(r=ye())&&(n._notchedOutline=r.first),xe(r=ye())&&(n._lineRipple=r.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(e,n){2&e&&Xe("mat-mdc-form-field-label-always-float",n._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",n._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",n._hasIconSuffix)("mat-form-field-invalid",n._control.errorState)("mat-form-field-disabled",n._control.disabled)("mat-form-field-autofilled",n._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===n._animationMode)("mat-form-field-appearance-fill","fill"==n.appearance)("mat-form-field-appearance-outline","outline"==n.appearance)("mat-form-field-hide-placeholder",n._hasFloatingLabel()&&!n._shouldLabelFloat())("mat-focused",n._control.focused)("mat-primary","accent"!==n.color&&"warn"!==n.color)("mat-accent","accent"===n.color)("mat-warn","warn"===n.color)("ng-untouched",n._shouldForward("untouched"))("ng-touched",n._shouldForward("touched"))("ng-pristine",n._shouldForward("pristine"))("ng-dirty",n._shouldForward("dirty"))("ng-valid",n._shouldForward("valid"))("ng-invalid",n._shouldForward("invalid"))("ng-pending",n._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[We([{provide:d0,useExisting:t}])],ngContentSelectors:uZ,decls:18,vars:23,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth",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","cdkObserveContentDisabled","id","cdkObserveContent",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent"],["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","matFormFieldNotchedOutlineLabelWidth"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[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(e,n){1&e&&(vi(dZ),H(0,QK,1,1,"ng-template",null,0,Tc),v(2,"div",1,2),X("click",function(o){return n._control.onContainerClick&&n._control.onContainerClick(o)}),H(4,YK,1,0,"div",3),v(5,"div",4),H(6,JK,2,3,"div",5),H(7,eZ,3,0,"div",6),H(8,tZ,3,0,"div",7),v(9,"div",8),H(10,nZ,1,1,"ng-template",9),Je(11),y(),H(12,rZ,2,0,"div",10),H(13,oZ,2,0,"div",11),y(),H(14,aZ,1,0,"div",12),y(),v(15,"div",13),H(16,sZ,2,1,"div",14),H(17,lZ,5,2,"div",15),y()),2&e&&(k(2),Xe("mdc-text-field--filled",!n._hasOutline())("mdc-text-field--outlined",n._hasOutline())("mdc-text-field--no-label",!n._hasFloatingLabel())("mdc-text-field--disabled",n._control.disabled)("mdc-text-field--invalid",n._control.errorState),k(2),I("ngIf",!n._hasOutline()&&!n._control.disabled),k(2),I("ngIf",n._hasOutline()),k(1),I("ngIf",n._hasIconPrefix),k(1),I("ngIf",n._hasTextPrefix),k(2),I("ngIf",!n._hasOutline()||n._forceDisplayInfixLabel()),k(2),I("ngIf",n._hasTextSuffix),k(1),I("ngIf",n._hasIconSuffix),k(1),I("ngIf",!n._hasOutline()),k(1),Xe("mat-mdc-form-field-subscript-dynamic-size","dynamic"===n.subscriptSizing),I("ngSwitch",n._getDisplayedMessages()),k(1),I("ngSwitchCase","error"),k(1),I("ngSwitchCase","hint"))},dependencies:[hn,Op,ih,xx,My,nf,VR,zR,UR],styles:['.mdc-text-field{border-top-left-radius:var(--mdc-shape-small, 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:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;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:var(--mdc-shape-small, 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:var(--mdc-shape-small, 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:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;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-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.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%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.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;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.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{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.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}.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{font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{line-height:normal;pointer-events:all}.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-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}[dir=rtl] .mat-mdc-form-field{text-align:right}.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}.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(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-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(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-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(-10.25px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-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(-10.25px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-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(-24.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-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(-24.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-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(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(-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(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 32px)) translateY(-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(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(-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(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - -32px)) translateY(-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(-106%) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-106%) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-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)}'],encapsulation:2,data:{animation:[gZ.transitionMessages]},changeDetection:0}),t})(),u0=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({imports:[xt,ir,_g,xt]}),t})();const xZ=["panel"];function yZ(t,i){if(1&t&&(v(0,"div",0,1),Je(2),y()),2&t){const e=i.id,n=q();I("id",n.id)("ngClass",n._classList)("@panelAnimation",n.isOpen?"visible":"hidden"),rt("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(e))}}const wZ=["*"],CZ=bn("panelAnimation",[ii("void, hidden",nt({opacity:0,transform:"scaleY(0.8)"})),ai(":enter, hidden => visible",[zy([fi("0.03s linear",nt({opacity:1})),fi("0.12s cubic-bezier(0, 0, 0.2, 1)",nt({transform:"scaleY(1)"}))])]),ai(":leave, visible => hidden",[fi("0.075s linear",nt({opacity:0}))])]);let kZ=0;class DZ{constructor(i,e){this.source=i,this.option=e}}const SZ=Bs(class{}),GR=new ae("mat-autocomplete-default-options",{providedIn:"root",factory:function EZ(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1}}});let TZ=(()=>{class t extends SZ{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=$e(e)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(e){this._autoSelectActiveOption=$e(e)}set classList(e){this._classList=e&&e.length?function oq(t,i=/\s+/){const e=[];if(null!=t){const n=Array.isArray(t)?t:`${t}`.split(i);for(const r of n){const o=`${r}`.trim();o&&e.push(o)}}return e}(e).reduce((n,r)=>(n[r]=!0,n),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}constructor(e,n,r,o){super(),this._changeDetectorRef=e,this._elementRef=n,this._defaults=r,this._activeOptionChanges=yt.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this._autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this._autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.optionSelected=new ke,this.opened=new ke,this.closed=new ke,this.optionActivated=new ke,this._classList={},this.id="mat-autocomplete-"+kZ++,this.inertGroups=o?.SAFARI||!1}ngAfterContentInit(){this._keyManager=new SI(this.options).withWrap(),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 n=new DZ(this,e);this.optionSelected.emit(n)}_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}}return t.\u0275fac=function(e){return new(e||t)(b(Gt),b(Ae),b(GR),b(xi))},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&(at(_i,7),at(xZ,5)),2&e){let r;xe(r=ye())&&(n.template=r.first),xe(r=ye())&&(n.panel=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[pe]}),t})(),MZ=(()=>{class t extends TZ{constructor(){super(...arguments),this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden",this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=$e(e),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275cmp=je({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(e,n,r){if(1&e&&(Bt(r,Hy,5),Bt(r,Hs,5)),2&e){let o;xe(o=ye())&&(n.optionGroups=o),xe(o=ye())&&(n.options=o)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{disableRipple:"disableRipple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matAutocomplete"],features:[We([{provide:Vy,useExisting:t}]),pe],ngContentSelectors:wZ,decls:1,vars:0,consts:[["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id","ngClass"],["panel",""]],template:function(e,n){1&e&&(vi(),H(0,yZ,3,5,"ng-template"))},dependencies:[Es],styles:[".mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mdc-menu-surface.mat-mdc-autocomplete-panel{width:100%;max-height:256px;position:static;visibility:hidden;transform-origin:center top;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-autocomplete-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) .mdc-menu-surface.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above .mdc-menu-surface.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}.mdc-menu-surface.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}.mdc-menu-surface.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[CZ]},changeDetection:0}),t})();const AZ={provide:qn,useExisting:Xt(()=>XR),multi:!0},qR=new ae("mat-autocomplete-scroll-strategy"),FZ={provide:qR,deps:[nr],useFactory:function IZ(t){return()=>t.scrollStrategies.reposition()}};let RZ=(()=>{class t{get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=$e(e)}constructor(e,n,r,o,a,s,c,l,d,u,h){this._element=e,this._overlay=n,this._viewContainerRef=r,this._zone=o,this._changeDetectorRef=a,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=yt.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Ce,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=fd(()=>{const f=this.autocomplete?this.autocomplete.options:null;return f?f.changes.pipe(Vn(f),fn(()=>Bi(...f.map(m=>m.onSelectionChange)))):this._zone.onStable.pipe(ui(1),fn(()=>this.optionSelections))}),this._scrollStrategy=s}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()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}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._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Bi(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(hi(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(hi(()=>this._overlayAttached)):ze()).pipe(Ye(e=>e instanceof $I?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Bi(ga(this._document,"click"),ga(this._document,"auxclick"),ga(this._document,"touchend")).pipe(hi(e=>{const n=Zr(e),r=this._formField?this._formField._elementRef.nativeElement:null,o=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&n!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!r||!r.contains(n))&&(!o||!o.contains(n))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(n)}))}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 n=e.keyCode,r=yr(e);if(27===n&&!r&&e.preventDefault(),this.activeOption&&13===n&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const o=this.autocomplete._keyManager.activeItem,a=38===n||40===n;9===n||a&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):a&&this._canOpen()&&this.openPanel(),(a||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 n=e.target,r=n.value;"number"===n.type&&(r=""==r?null:parseFloat(r)),this._previousValue!==r&&(this._previousValue=r,this._pendingAutoselectedOption=null,this._onChange(r),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 Bi(this._zone.onStable.pipe(ui(1)),this.autocomplete.options.changes.pipe(Ui(()=>this._positionStrategy.reapplyLastPosition()),Zy(0))).pipe(fn(()=>(this._zone.run(()=>{const r=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),r!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),ui(1)).subscribe(r=>this._setValueAndClose(r))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(e){const n=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e;this._updateNativeInputValue(n??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){const n=e?e.source:this._pendingAutoselectedOption;n&&(this._clearPreviousSelectedOption(n),this._assignOptionValue(n.value),this._onChange(n.value),this.autocomplete._emitSelectEvent(n),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(e){this.autocomplete.options.forEach(n=>{n!==e&&n.selected&&n.deselect()})}_attachOverlay(){let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new rs(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,this._handleOverlayEvents(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 n=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this.panelOpen&&n!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new Rd({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 n=[{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 a;a="above"===this.position?o:"below"===this.position?n:[...n,...o],e.withPositions(a)}_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;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}_canOpen(){const e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(e){const n=this.autocomplete,r=jI(e,n.options,n.optionGroups);if(0===e&&1===r)n._setScrollTop(0);else if(n.panel){const o=n.options.toArray()[e];if(o){const a=o._getHostElement(),s=WI(a.offsetTop,a.offsetHeight,n._getScrollTop(),n.panel.nativeElement.offsetHeight);n._setScrollTop(s)}}}_handleOverlayEvents(e){e.keydownEvents().subscribe(n=>{(27===n.keyCode&&!yr(n)||38===n.keyCode&&yr(n,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),n.stopPropagation(),n.preventDefault())}),e.outsidePointerEvents().subscribe()}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(nr),b(Fi),b(Ue),b(Gt),b(qR),b(_n,8),b(d0,9),b(it,8),b(_a),b(GR,8))},t.\u0275dir=Q({type:t,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[Ei]}),t})(),XR=(()=>{class t extends RZ{constructor(){super(...arguments),this._aboveClass="mat-mdc-autocomplete-panel-above"}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(e,n){1&e&&X("focusin",function(){return n._handleFocus()})("blur",function(){return n._onTouched()})("input",function(o){return n._handleInput(o)})("keydown",function(o){return n._handleKeydown(o)})("click",function(){return n._handleClick()}),2&e&&rt("autocomplete",n.autocompleteAttribute)("role",n.autocompleteDisabled?null:"combobox")("aria-autocomplete",n.autocompleteDisabled?null:"list")("aria-activedescendant",n.panelOpen&&n.activeOption?n.activeOption.id:null)("aria-expanded",n.autocompleteDisabled?null:n.panelOpen.toString())("aria-owns",n.autocompleteDisabled||!n.panelOpen||null==n.autocomplete?null:n.autocomplete.id)("aria-haspopup",n.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[We([AZ]),pe]}),t})(),OZ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({providers:[FZ],imports:[Uc,kg,xt,ir,Vc,kg,xt]}),t})();const QR=Go({passive:!0});let PZ=(()=>{class t{constructor(e,n){this._platform=e,this._ngZone=n,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return zr;const n=Ki(e),r=this._monitoredElements.get(n);if(r)return r.subject;const o=new Ce,a="cdk-text-field-autofilled",s=c=>{"cdk-text-field-autofill-start"!==c.animationName||n.classList.contains(a)?"cdk-text-field-autofill-end"===c.animationName&&n.classList.contains(a)&&(n.classList.remove(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!1}))):(n.classList.add(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{n.addEventListener("animationstart",s,QR),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:o,unlisten:()=>{n.removeEventListener("animationstart",s,QR)}}),o}stopMonitoring(e){const n=Ki(e),r=this._monitoredElements.get(n);r&&(r.unlisten(),r.subject.complete(),n.classList.remove("cdk-text-field-autofill-monitored"),n.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(n))}ngOnDestroy(){this._monitoredElements.forEach((e,n)=>this.stopMonitoring(n))}}return t.\u0275fac=function(e){return new(e||t)(G(xi),G(Ue))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),NZ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({}),t})();const LZ=new ae("MAT_INPUT_VALUE_ACCESSOR"),BZ=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let VZ=0;const HZ=PI(class{constructor(t,i,e,n){this._defaultErrorStateMatcher=t,this._parentForm=i,this._parentFormGroup=e,this.ngControl=n,this.stateChanges=new Ce}});let rf=(()=>{class t extends HZ{get disabled(){return this._disabled}set disabled(e){this._disabled=$e(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(jd.required)??!1}set required(e){this._required=$e(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&mI().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=$e(e)}constructor(e,n,r,o,a,s,c,l,d,u){super(s,o,a,r),this._elementRef=e,this._platform=n,this._autofillMonitor=l,this._formField=u,this._uid="mat-input-"+VZ++,this.focused=!1,this.stateChanges=new Ce,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=>mI().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,n.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 n=this._elementRef.nativeElement;this._previousPlaceholder=e,e?n.setAttribute("placeholder",e):n.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){BZ.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,n=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&n&&n.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)}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(xi),b(xa,10),b(qc,8),b(js,8),b(NI),b(LZ,10),b(PZ),b(Ue),b(d0,8))},t.\u0275dir=Q({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(e,n){1&e&&X("focus",function(){return n._focusChanged(!0)})("blur",function(){return n._focusChanged(!1)})("input",function(){return n._onInput()}),2&e&&(ua("id",n.id)("disabled",n.disabled)("required",n.required),rt("name",n.name||null)("readonly",n.readonly&&!n._isNativeSelect||null)("aria-invalid",n.empty&&n.required?null:n.errorState)("aria-required",n.required)("id",n.id),Xe("mat-input-server",n._isServer)("mat-mdc-form-field-textarea-control",n._isInFormField&&n._isTextarea)("mat-mdc-form-field-input-control",n._isInFormField)("mdc-text-field__input",n._isInFormField)("mat-mdc-native-select-inline",n._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[We([{provide:l0,useExisting:t}]),pe,Ei]}),t})(),UZ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({imports:[xt,u0,u0,NZ,xt]}),t})();function zZ(t,i){if(1&t&&(v(0,"mat-label"),M(1),y()),2&t){const e=q();k(1),tt(e.binding.title)}}function $Z(t,i){if(1&t){const e=ct();v(0,"button",7),X("click",function(){return Oe(e),Pe(q().clearInput())}),v(1,"mat-icon"),M(2,"close"),y()()}}function jZ(t,i){1&t&&(v(0,"mat-option",8),Ee(1,"mat-spinner",9),y())}function WZ(t,i){if(1&t&&(v(0,"mat-option",10)(1,"span",11),M(2),y(),M(3),y()),2&t){const e=i.$implicit;I("value",e),k(2),tt(e.code),k(1),It("",e.display," ")}}let h0=(()=>{class t{constructor(e){this.terminologyService=e,this.term="",this.selectionChange=new ke,this.formControl=new mK,this.loading=!1,this.selectedConcept={},this.stateChanges=new Ce,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(Ed(300),Lc(),fn(e=>e?.length>=3?(this.loading=!0,this.terminologyService.expandValueSet(this.binding.ecl,e,0,50)):ze([])),Ui(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:""}}change(e){const n=e?.option?.value;n&&(this.optionSelected({code:n.code,display:n.display}),this.formControl.setValue(n.display))}}return t.nextId=0,t.\u0275fac=function(e){return new(e||t)(b(yo))},t.\u0275cmp=je({type:t,selectors:[["app-autocomplete-binding"]],inputs:{binding:"binding",term:"term"},outputs:{selectionChange:"selectionChange"},features:[We([{provide:qn,useExisting:Xt(()=>t),multi:!0},{provide:l0,useExisting:t}]),Ei],decls:11,vars:10,consts:[[4,"ngIf"],["type","text","matInput","",3,"placeholder","formControl","matAutocomplete"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],["autoActiveFirstOption","",3,"optionSelected"],["auto","matAutocomplete"],["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(e,n){if(1&e&&(v(0,"mat-form-field"),H(1,zZ,2,1,"mat-label",0),Ee(2,"input",1),v(3,"mat-hint"),M(4),y(),H(5,$Z,3,0,"button",2),v(6,"mat-autocomplete",3,4),X("optionSelected",function(o){return n.change(o)}),H(8,jZ,2,0,"mat-option",5),H(9,WZ,4,3,"mat-option",6),mp(10,"async"),y()()),2&e){const r=Lt(7);let o;k(1),I("ngIf",n.binding.title),k(1),zu("placeholder",(null==n.formControl.value?null:n.formControl.value.display)||"Search..."),I("formControl",n.formControl)("matAutocomplete",r),k(2),tt(n.binding.note),k(1),I("ngIf",n.formControl.value),k(3),I("ngIf",n.loading),k(1),I("ngForOf",null==(o=Ov(10,8,n.autoFilter))||null==o.expansion?null:o.expansion.contains)}},dependencies:[go,hn,is,ba,Ws,wa,nf,BR,MZ,Hs,XR,Pd,rf,Us,ya,o0,rM],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}"]}),t})();function GZ(t,i){1&t&&Ee(0,"mat-spinner",20)}function qZ(t,i){1&t&&(v(0,"th",21),M(1," Date "),y())}function XZ(t,i){if(1&t&&(v(0,"td",22),M(1),mp(2,"date"),y()),2&t){const e=i.$implicit;k(1),It(" ",function OT(t,i,e,n){const r=t+Hi,o=ge(),a=Il(o,r);return Yu(o,r)?AT(o,_r(),i,a.transform,e,n,a):a.transform(e,n)}(2,1,e.date,"yyyy-MM-dd")," ")}}function QZ(t,i){1&t&&(v(0,"th",21),M(1," ConceptId "),y())}function YZ(t,i){if(1&t&&(v(0,"td",22),M(1),y()),2&t){const e=i.$implicit;k(1),It(" ",e.code," ")}}function KZ(t,i){1&t&&(v(0,"th",21),M(1," Term "),y())}function ZZ(t,i){1&t&&(v(0,"span",24),M(1,"Allergy / Intolerance condition"),y())}function JZ(t,i){if(1&t&&(v(0,"td",22),H(1,ZZ,2,0,"span",23),M(2),y()),2&t){const e=i.$implicit;k(1),I("ngIf",e.allergy),k(1),It(" ",e.display," ")}}function eJ(t,i){1&t&&Ee(0,"tr",25)}function tJ(t,i){1&t&&Ee(0,"tr",26)}function iJ(t,i){1&t&&(v(0,"th",21),M(1," ConceptId "),y())}function nJ(t,i){if(1&t&&(v(0,"td",22),M(1),y()),2&t){const e=i.$implicit;k(1),It(" ",e.code," ")}}function rJ(t,i){1&t&&(v(0,"th",21),M(1," Term "),y())}function oJ(t,i){if(1&t&&(v(0,"td",22),M(1),y()),2&t){const e=i.$implicit;k(1),It(" ",e.display," ")}}function aJ(t,i){1&t&&Ee(0,"tr",25)}function sJ(t,i){1&t&&Ee(0,"tr",26)}const cJ=[],lJ=[];let YR=(()=>{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=[...cJ],this.dataSource=new dJ(this.dataToDisplay),this.loading=!1,this.displayedColumns2=["code","display"],this.dataToDisplay2=[...lJ],this.dataSource2=new uJ(this.dataToDisplay2)}updateProblem(e){var n=this;return Yi(function*(){n.selectedProblemSct=e})()}addProblem(e){var n=this;return Yi(function*(){if(n.selectedProblemSct||e){let r=e||n.selectedProblemSct;if(n.loading=!0,n.term=r.display,r.date=new Date,r.code.indexOf(":")>-1){r.allergy=!0;let o=r.substance;n.dataToDisplay2.find(a=>a.code===o.code)||(n.dataToDisplay2=[...n.dataToDisplay2,o],n.dataSource2.setData(n.dataToDisplay2))}else(yield n.getAllergyData(r))?.expansion?.contains?.length>0&&(r.allergy=!0,n.addAllergySubstanceToList(r));n.dataToDisplay.find(o=>o.code===r.code)||(n.dataToDisplay=[...n.dataToDisplay,r],n.dataSource.setData(n.dataToDisplay)),n.loading=!1,n.term=""}})()}addAllergySubstanceToList(e){var n=this;return Yi(function*(){(yield n.getAllergySubstance(e))?.expansion?.contains?.forEach(o=>{n.dataToDisplay2.find(a=>a.code===o.code)||(n.dataToDisplay2=[...n.dataToDisplay2,o],n.dataSource2.setData(n.dataToDisplay2))})})()}getAllergyData(e){var n=this;return Yi(function*(){return Wo((yield n.terminologyService.expandValueSet("<<418038007 |Propensity to adverse reactions to substance| OR <<420134006 |Propensity to adverse reaction (finding)|",e.code,0,1)).pipe(Ye(o=>o)))})()}getAllergySubstance(e){var n=this;return Yi(function*(){return Wo((yield n.terminologyService.expandValueSet(`${e.code} |${e.display}| . (246075003 |Causative agent (attribute)| OR 47429007 |Associated with (attribute)|)`,"")).pipe(Ye(o=>o)))})()}}return t.\u0275fac=function(e){return new(e||t)(b(yo))},t.\u0275cmp=je({type:t,selectors:[["app-allergies-problem-list"]],decls:60,vars:11,consts:[["id","main-card"],[1,"container-space"],[1,"problem-list"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor"],["substancePopoverMenu","matMenu"],["mat-menu-item","",1,"long-tooltip",3,"disableRipple","click"],["href","https://confluence.ihtsdotools.org/x/PaDICg","target","_blank"],[1,"container"],[1,"item"],[3,"binding","term","selectionChange"],["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(e,n){if(1&e&&(v(0,"mat-card",0)(1,"div",1)(2,"div",2)(3,"h4"),M(4,"Problem List "),v(5,"button",3)(6,"mat-icon"),M(7,"info"),y()(),v(8,"mat-menu",null,4)(10,"span",5),X("click",function(o){return o.stopPropagation()}),v(11,"h4"),M(12,"Problem list"),y(),v(13,"p"),M(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."),y(),v(15,"p"),M(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."),y(),v(17,"p"),M(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)."),y(),v(19,"p"),M(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."),y(),v(21,"p"),M(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."),y(),v(23,"p"),M(24,"For more information check the "),v(25,"a",6),M(26,"Implementation Guide"),y(),M(27," developed by the SNOMED International Allergy Clinical Reference Group."),y()()()(),v(28,"div",7)(29,"div",8)(30,"app-autocomplete-binding",9),X("selectionChange",function(o){return n.updateProblem(o)}),y()(),v(31,"div",8)(32,"button",10),X("click",function(){return n.addProblem()}),M(33,"Add problem"),y()(),v(34,"div",8),H(35,GZ,1,0,"mat-spinner",11),y()(),v(36,"table",12),Ai(37,13),H(38,qZ,2,0,"th",14),H(39,XZ,3,4,"td",15),Ii(),Ai(40,16),H(41,QZ,2,0,"th",14),H(42,YZ,2,1,"td",15),Ii(),Ai(43,17),H(44,KZ,2,0,"th",14),H(45,JZ,3,2,"td",15),Ii(),H(46,eJ,1,0,"tr",18),H(47,tJ,1,0,"tr",19),y()(),v(48,"div",2)(49,"h4"),M(50,"Substances the patient is allergic to:"),y(),v(51,"table",12),Ai(52,16),H(53,iJ,2,0,"th",14),H(54,nJ,2,1,"td",15),Ii(),Ai(55,17),H(56,rJ,2,0,"th",14),H(57,oJ,2,1,"td",15),Ii(),H(58,aJ,1,0,"tr",18),H(59,sJ,1,0,"tr",19),y()()()()),2&e){const r=Lt(9);k(5),I("matMenuTriggerFor",r),k(5),I("disableRipple",!0),k(20),I("binding",n.problemBinding)("term",n.term),k(5),I("ngIf",n.loading),k(1),I("dataSource",n.dataSource),k(10),I("matHeaderRowDef",n.displayedColumns),k(1),I("matRowDefColumns",n.displayedColumns),k(4),I("dataSource",n.dataSource2),k(7),I("matHeaderRowDef",n.displayedColumns2),k(1),I("matRowDefColumns",n.displayedColumns2)}},dependencies:[hn,xo,is,ba,$c,va,jc,Pd,e1,zh,Hd,$h,Ud,Vd,jh,zd,$d,Wh,Gh,h0,aM],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}"]}),t})();class dJ extends uy{constructor(i){super(),this._dataStream=new JA,this.setData(i)}connect(){return this._dataStream}disconnect(){}setData(i){this._dataStream.next(i)}}class uJ extends uy{constructor(i){super(),this._dataStream=new JA,this.setData(i)}connect(){return this._dataStream}disconnect(){}setData(i){this._dataStream.next(i)}}function hJ(t,i){}const fJ=function(t){return{animationDuration:t}},mJ=function(t,i){return{value:t,params:i}};function pJ(t,i){1&t&&Je(0)}const KR=["*"],gJ=["tabListContainer"],_J=["tabList"],bJ=["tabListInner"],vJ=["nextPaginator"],xJ=["previousPaginator"],yJ=["tabBodyWrapper"],wJ=["tabHeader"];function CJ(t,i){}function kJ(t,i){1&t&&H(0,CJ,0,0,"ng-template",14),2&t&&I("cdkPortalOutlet",q().$implicit.templateLabel)}function DJ(t,i){1&t&&M(0),2&t&&tt(q().$implicit.textLabel)}function SJ(t,i){if(1&t){const e=ct();v(0,"div",6,7),X("click",function(){const r=Oe(e),o=r.$implicit,a=r.index,s=q(),c=Lt(1);return Pe(s._handleClick(o,c,a))})("cdkFocusChange",function(r){const a=Oe(e).index;return Pe(q()._tabFocusChanged(r,a))}),Ee(2,"span",8)(3,"div",9),v(4,"span",10)(5,"span",11),H(6,kJ,1,1,"ng-template",12),H(7,DJ,1,1,"ng-template",null,13,Tc),y()()()}if(2&t){const e=i.$implicit,n=i.index,r=Lt(1),o=Lt(8),a=q();Xe("mdc-tab--active",a.selectedIndex===n),I("id",a._getTabLabelId(n))("ngClass",e.labelClass)("disabled",e.disabled)("fitInkBarToContent",a.fitInkBarToContent),rt("tabIndex",a._getTabIndex(n))("aria-posinset",n+1)("aria-setsize",a._tabs.length)("aria-controls",a._getTabContentId(n))("aria-selected",a.selectedIndex===n)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),k(3),I("matRippleTrigger",r)("matRippleDisabled",e.disabled||a.disableRipple),k(3),I("ngIf",e.templateLabel)("ngIfElse",o)}}function EJ(t,i){if(1&t){const e=ct();v(0,"mat-tab-body",15),X("_onCentered",function(){return Oe(e),Pe(q()._removeTabBodyWrapperHeight())})("_onCentering",function(r){return Oe(e),Pe(q()._setTabBodyWrapperHeight(r))}),y()}if(2&t){const e=i.$implicit,n=i.index,r=q();Xe("mat-mdc-tab-body-active",r.selectedIndex===n),I("id",r._getTabContentId(n))("ngClass",e.bodyClass)("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),rt("tabindex",null!=r.contentTabIndex&&r.selectedIndex===n?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(n))}}const TJ={translateTab:bn("translateTab",[ii("center, void, left-origin-center, right-origin-center",nt({transform:"none"})),ii("left",nt({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),ii("right",nt({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),ai("* => left, * => right, left => center, right => center",fi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),ai("void => left-origin-center",[nt({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),fi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),ai("void => right-origin-center",[nt({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),fi("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let MJ=(()=>{class t extends os{constructor(e,n,r,o){super(e,n,o),this._host=r,this._centeringSub=yt.EMPTY,this._leavingSub=yt.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Vn(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()}}return t.\u0275fac=function(e){return new(e||t)(b(ks),b(Fi),b(Xt(()=>ZR)),b(it))},t.\u0275dir=Q({type:t,selectors:[["","matTabBodyHost",""]],features:[pe]}),t})(),AJ=(()=>{class t{set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(e,n,r){this._elementRef=e,this._dir=n,this._dirChangeSubscription=yt.EMPTY,this._translateTabComplete=new Ce,this._onCentering=new ke,this._beforeCentering=new ke,this._afterLeavingCenter=new ke,this._onCentered=new ke(!0),this.animationDuration="500ms",this.preserveContent=!1,n&&(this._dirChangeSubscription=n.change.subscribe(o=>{this._computePositionAnimationState(o),r.markForCheck()})),this._translateTabComplete.pipe(Lc((o,a)=>o.fromState===a.fromState&&o.toState===a.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 n=this._isCenterPosition(e.toState);this._beforeCentering.emit(n),n&&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 n=this._getLayoutDirection();return"ltr"==n&&e<=0||"rtl"==n&&e>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(_n,8),b(Gt))},t.\u0275dir=Q({type:t,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),ZR=(()=>{class t extends AJ{constructor(e,n,r){super(e,n,r)}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(_n,8),b(Gt))},t.\u0275cmp=je({type:t,selectors:[["mat-tab-body"]],viewQuery:function(e,n){if(1&e&&at(os,5),2&e){let r;xe(r=ye())&&(n._portalHost=r.first)}},hostAttrs:[1,"mat-mdc-tab-body"],features:[pe],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,n){1&e&&(v(0,"div",0,1),X("@translateTab.start",function(o){return n._onTranslateTabStarted(o)})("@translateTab.done",function(o){return n._translateTabComplete.next(o)}),H(2,hJ,0,0,"ng-template",2),y()),2&e&&I("@translateTab",function TT(t,i,e,n,r){return AT(ge(),_r(),t,i,e,n,r)}(3,mJ,n._position,Rv(1,fJ,n.animationDuration)))},dependencies:[MJ],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:[TJ.translateTab]}}),t})();const IJ=new ae("MatTabContent");let FJ=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(b(_i))},t.\u0275dir=Q({type:t,selectors:[["","matTabContent",""]],features:[We([{provide:IJ,useExisting:t}])]}),t})();const RJ=new ae("MatTabLabel"),JR=new ae("MAT_TAB");let OJ=(()=>{class t extends mX{constructor(e,n,r){super(e,n),this._closestTab=r}}return t.\u0275fac=function(e){return new(e||t)(b(_i),b(Fi),b(JR,8))},t.\u0275dir=Q({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[We([{provide:RJ,useExisting:t}]),pe]}),t})();const I1="mdc-tab-indicator--active",eO="mdc-tab-indicator--no-transition";class PJ{constructor(i){this._items=i}hide(){this._items.forEach(i=>i.deactivateInkBar())}alignToElement(i){const e=this._items.find(r=>r.elementRef.nativeElement===i),n=this._currentItem;if(n?.deactivateInkBar(),e){const r=n?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(r),this._currentItem=e}}}function NJ(t){return class extends t{constructor(...i){super(...i),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(i){const e=$e(i);this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(i){const e=this.elementRef.nativeElement;if(!i||!e.getBoundingClientRect||!this._inkBarContentElement)return void e.classList.add(I1);const n=e.getBoundingClientRect(),r=i.width/n.width,o=i.left-n.left;e.classList.add(eO),this._inkBarContentElement.style.setProperty("transform",`translateX(${o}px) scaleX(${r})`),e.getBoundingClientRect(),e.classList.remove(eO),e.classList.add(I1),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove(I1)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const i=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=i.createElement("span"),this._inkBarContentElement=i.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 BJ=ts(class{}),VJ=NJ((()=>{class t extends BJ{constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)(b(Ae))},t.\u0275dir=Q({type:t,features:[pe]}),t})());let tO=(()=>{class t extends VJ{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,n){2&e&&(rt("aria-disabled",!!n.disabled),Xe("mat-mdc-tab-disabled",n.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[pe]}),t})();const HJ=ts(class{}),iO=new ae("MAT_TAB_GROUP");let UJ=(()=>{class t extends HJ{get content(){return this._contentPortal}constructor(e,n){super(),this._viewContainerRef=e,this._closestTabGroup=n,this.textLabel="",this._contentPortal=null,this._stateChanges=new Ce,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 rs(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return t.\u0275fac=function(e){return new(e||t)(b(Fi),b(iO,8))},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&at(_i,7),2&e){let r;xe(r=ye())&&(n._implicitContent=r.first)}},inputs:{textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[pe,Ei]}),t})(),f0=(()=>{class t extends UJ{get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275cmp=je({type:t,selectors:[["mat-tab"]],contentQueries:function(e,n,r){if(1&e&&(Bt(r,FJ,7,_i),Bt(r,OJ,5)),2&e){let o;xe(o=ye())&&(n._explicitContent=o.first),xe(o=ye())&&(n.templateLabel=o.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[We([{provide:JR,useExisting:t}]),pe],ngContentSelectors:KR,decls:1,vars:0,template:function(e,n){1&e&&(vi(),H(0,pJ,1,0,"ng-template"))},encapsulation:2}),t})();const nO=Go({passive:!0});let jJ=(()=>{class t{get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=$e(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=An(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}constructor(e,n,r,o,a,s,c){this._elementRef=e,this._changeDetectorRef=n,this._viewportRuler=r,this._dir=o,this._ngZone=a,this._platform=s,this._animationMode=c,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Ce,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Ce,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new ke,this.indexFocused=new ke,a.runOutsideAngular(()=>{ga(e.nativeElement,"mouseleave").pipe(Tt(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){ga(this._previousPaginator.nativeElement,"touchstart",nO).pipe(Tt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),ga(this._nextPaginator.nativeElement,"touchstart",nO).pipe(Tt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:ze("ltr"),n=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Ry(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(ui(1)).subscribe(r),Bi(e,n,this._items.changes,this._itemsResized()).pipe(Tt(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(o=>{this.indexFocused.emit(o),this._setTabFocus(o)})}_itemsResized(){return"function"!=typeof ResizeObserver?zr:this._items.changes.pipe(Vn(this._items),fn(e=>new ni(n=>this._ngZone.runOutsideAngular(()=>{const r=new ResizeObserver(o=>n.next(o));return e.forEach(o=>r.observe(o.elementRef.nativeElement)),()=>{r.disconnect()}}))),Ty(1),hi(e=>e.some(n=>n.contentRect.width>0&&n.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(!yr(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){const n=this._items.get(this.focusIndex);n&&!n.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 n=this._tabListContainer.nativeElement;n.scrollLeft="ltr"==this._getLayoutDirection()?0:n.scrollWidth-n.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,n="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(n)}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 n=this._items?this._items.toArray()[e]:null;if(!n)return;const r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:a}=n.elementRef.nativeElement;let s,c;"ltr"==this._getLayoutDirection()?(s=o,c=s+a):(c=this._tabListInner.nativeElement.offsetWidth-o,s=c-a);const l=this.scrollDistance,d=this.scrollDistance+r;sd&&(this.scrollDistance+=Math.min(c-d,s-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,n=e?e.elementRef.nativeElement:null;n?this._inkBar.alignToElement(n):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,n){n&&null!=n.button&&0!==n.button||(this._stopInterval(),Ig(650,100).pipe(Tt(Bi(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 n=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(n,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:n,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Gt),b(_a),b(_n,8),b(Ue),b(xi),b(Ri,8))},t.\u0275dir=Q({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),WJ=(()=>{class t extends jJ{get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=$e(e)}constructor(e,n,r,o,a,s,c){super(e,n,r,o,a,s,c),this._disableRipple=!1}_itemSelected(e){e.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Gt),b(_a),b(_n,8),b(Ue),b(xi),b(Ri,8))},t.\u0275dir=Q({type:t,inputs:{disableRipple:"disableRipple"},features:[pe]}),t})(),GJ=(()=>{class t extends WJ{constructor(e,n,r,o,a,s,c){super(e,n,r,o,a,s,c)}ngAfterContentInit(){this._inkBar=new PJ(this._items),super.ngAfterContentInit()}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Gt),b(_a),b(_n,8),b(Ue),b(xi),b(Ri,8))},t.\u0275cmp=je({type:t,selectors:[["mat-tab-header"]],contentQueries:function(e,n,r){if(1&e&&Bt(r,tO,4),2&e){let o;xe(o=ye())&&(n._items=o)}},viewQuery:function(e,n){if(1&e&&(at(gJ,7),at(_J,7),at(bJ,7),at(vJ,5),at(xJ,5)),2&e){let r;xe(r=ye())&&(n._tabListContainer=r.first),xe(r=ye())&&(n._tabList=r.first),xe(r=ye())&&(n._tabListInner=r.first),xe(r=ye())&&(n._nextPaginator=r.first),xe(r=ye())&&(n._previousPaginator=r.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(e,n){2&e&&Xe("mat-mdc-tab-header-pagination-controls-enabled",n._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==n._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[pe],ngContentSelectors:KR,decls:13,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-mdc-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,n){1&e&&(vi(),v(0,"button",0,1),X("click",function(){return n._handlePaginatorClick("before")})("mousedown",function(o){return n._handlePaginatorPress("before",o)})("touchend",function(){return n._stopInterval()}),Ee(2,"div",2),y(),v(3,"div",3,4),X("keydown",function(o){return n._handleKeydown(o)}),v(5,"div",5,6),X("cdkObserveContent",function(){return n._onContentChanges()}),v(7,"div",7,8),Je(9),y()()(),v(10,"button",9,10),X("mousedown",function(o){return n._handlePaginatorPress("after",o)})("click",function(){return n._handlePaginatorClick("after")})("touchend",function(){return n._stopInterval()}),Ee(12,"div",2),y()),2&e&&(Xe("mat-mdc-tab-header-pagination-disabled",n._disableScrollBefore),I("matRippleDisabled",n._disableScrollBefore||n.disableRipple)("disabled",n._disableScrollBefore||null),k(3),Xe("_mat-animation-noopable","NoopAnimations"===n._animationMode),k(7),Xe("mat-mdc-tab-header-pagination-disabled",n._disableScrollAfter),I("matRippleDisabled",n._disableScrollAfter||n.disableRipple)("disabled",n._disableScrollAfter||null))},dependencies:[vo,My],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.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}.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}.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}),t})();const rO=new ae("MAT_TABS_CONFIG");let qJ=0;const XJ=Ls(Bs(class{constructor(t){this._elementRef=t}}),"primary");let QJ=(()=>{class t extends XJ{get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=$e(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=An(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=An(e,null)}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=$e(e)}get preserveContent(){return this._preserveContent}set preserveContent(e){this._preserveContent=$e(e)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const n=this._elementRef.nativeElement.classList;n.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&n.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}constructor(e,n,r,o){super(e),this._changeDetectorRef=n,this._animationMode=o,this._tabs=new Ec,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=yt.EMPTY,this._tabLabelSubscription=yt.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new ke,this.focusChange=new ke,this.animationDone=new ke,this.selectedTabChange=new ke(!0),this._groupId=qJ++,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 n=null==this._selectedIndex;if(!n){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),n||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((n,r)=>{n.position=r-e,null!=this._selectedIndex&&0==n.position&&!n.origin&&(n.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 n=this._tabs.toArray();let r;for(let o=0;o{n[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Vn(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(n=>n._closestTabGroup===this||!n._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 n=this._tabHeader;n&&(n.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const n=new YJ;return n.index=e,this._tabs&&this._tabs.length&&(n.tab=this._tabs.toArray()[e]),n}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Bi(...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 n=this._tabBodyWrapper.nativeElement;n.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(n.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,n,r){n.focusIndex=r,e.disabled||(this.selectedIndex=r)}_getTabIndex(e){return e===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(e,n){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=n)}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Gt),b(rO,8),b(Ri,8))},t.\u0275dir=Q({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:[pe]}),t})(),af=(()=>{class t extends QJ{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=$e(e),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(e){this._stretchTabs=$e(e)}constructor(e,n,r,o){super(e,n,r,o),this._fitInkBarToContent=!1,this._stretchTabs=!0,this.fitInkBarToContent=!(!r||null==r.fitInkBarToContent)&&r.fitInkBarToContent}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Gt),b(rO,8),b(Ri,8))},t.\u0275cmp=je({type:t,selectors:[["mat-tab-group"]],contentQueries:function(e,n,r){if(1&e&&Bt(r,f0,5),2&e){let o;xe(o=ye())&&(n._allTabs=o)}},viewQuery:function(e,n){if(1&e&&(at(yJ,5),at(wJ,5)),2&e){let r;xe(r=ye())&&(n._tabBodyWrapper=r.first),xe(r=ye())&&(n._tabHeader=r.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:6,hostBindings:function(e,n){2&e&&Xe("mat-mdc-tab-group-dynamic-height",n.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===n.headerPosition)("mat-mdc-tab-group-stretch-tabs",n.stretchTabs)},inputs:{color:"color",disableRipple:"disableRipple",fitInkBarToContent:"fitInkBarToContent",stretchTabs:["mat-stretch-tabs","stretchTabs"]},exportAs:["matTabGroup"],features:[We([{provide:iO,useExisting:t}]),pe],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["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"],["tabBodyWrapper",""],["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,"id","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange"],["tabNode",""],[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"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(e,n){1&e&&(v(0,"mat-tab-header",0,1),X("indexFocused",function(o){return n._focusChanged(o)})("selectFocusedIndex",function(o){return n.selectedIndex=o}),H(2,SJ,9,17,"div",2),y(),v(3,"div",3,4),H(5,EJ,1,11,"mat-tab-body",5),y()),2&e&&(I("selectedIndex",n.selectedIndex||0)("disableRipple",n.disableRipple)("disablePagination",n.disablePagination),k(2),I("ngForOf",n._tabs),k(1),Xe("_mat-animation-noopable","NoopAnimations"===n._animationMode),k(2),I("ngForOf",n._tabs))},dependencies:[Es,go,hn,os,vo,Fq,ZR,tO,GJ],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 .mdc-tab-indicator__content--underline{border-top-width:2px}.mdc-tab-indicator .mdc-tab-indicator__content--icon{height:34px;font-size:34px}.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)}.mat-mdc-tab.mdc-tab{height:48px;flex-grow:0}.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}.mat-mdc-tab .mdc-tab__text-label{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}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-disabled{opacity:.4}.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-mdc-tab-header-with-background-background-color, transparent)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab-indicator__content--underline,.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{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.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-mdc-tab-header-with-background-foreground-color, inherit)}.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{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.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}),t})();class YJ{}let KJ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({imports:[ir,xt,Bc,Vs,_g,Ly,xt]}),t})();var qd=cc(327);class ZJ{constructor(i,e){this._document=e;const n=this._textarea=this._document.createElement("textarea"),r=n.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",n.setAttribute("aria-hidden","true"),n.value=i,n.readOnly=!0,this._document.body.appendChild(n)}copy(){const i=this._textarea;let e=!1;try{if(i){const n=this._document.activeElement;i.select(),i.setSelectionRange(0,i.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch{}return e}destroy(){const i=this._textarea;i&&(i.remove(),this._textarea=void 0)}}let oO=(()=>{class t{constructor(e){this._document=e}copy(e){const n=this.beginCopy(e),r=n.copy();return n.destroy(),r}beginCopy(e){return new ZJ(e,this._document)}}return t.\u0275fac=function(e){return new(e||t)(G(it))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const JJ=new ae("HighlightJs-Config");let F1=(()=>{class t{constructor(e,n,r,o,a){this.el=e,this.ngModel=n,this.doc=r,this.ngZone=a,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,n=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=n,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)(b(Ae),b(cs,8),b(it),b(JJ,8),b(Ue))},t.\u0275dir=Q({type:t,selectors:[["","highlight-js",""]],hostVars:2,hostBindings:function(e,n){2&e&&tr("display","simple"===n.mode?"none":null)},inputs:{options:"options",lang:"lang",code:"code",mode:"mode"},exportAs:["highlightJs"],standalone:!0}),t})(),eee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({imports:[A1]}),t})();const tee=["trigger"],iee=["panel"];function nee(t,i){if(1&t&&(v(0,"span",10),M(1),y()),2&t){const e=q();k(1),tt(e.placeholder)}}function ree(t,i){if(1&t&&(v(0,"span",14),M(1),y()),2&t){const e=q(2);k(1),tt(e.triggerValue)}}function oee(t,i){1&t&&Je(0,0,["*ngSwitchCase","true"])}function aee(t,i){1&t&&(v(0,"span",11),H(1,ree,2,1,"span",12),H(2,oee,1,0,"ng-content",13),y()),2&t&&(I("ngSwitch",!!q().customTrigger),k(2),I("ngSwitchCase",!0))}function see(t,i){if(1&t){const e=ct();za(),Rl(),v(0,"div",15,16),X("@transformPanel.done",function(r){return Oe(e),Pe(q()._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){return Oe(e),Pe(q()._handleKeydown(r))}),Je(2,1),y()}if(2&t){const e=q();NE("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),I("ngClass",e.panelClass)("@transformPanel","showing"),rt("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const cee=[[["mat-select-trigger"]],"*"],lee=["mat-select-trigger","*"],dee={transformPanelWrap:bn("transformPanelWrap",[ai("* => void",Eg("@transformPanel",[Sg()],{optional:!0}))]),transformPanel:bn("transformPanel",[ii("void",nt({opacity:0,transform:"scale(1, 0.8)"})),ai("void => showing",fi("120ms cubic-bezier(0, 0, 0.2, 1)",nt({opacity:1,transform:"scale(1, 1)"}))),ai("* => void",fi("100ms linear",nt({opacity:0})))])};let aO=0;const sO=new ae("mat-select-scroll-strategy"),hee=new ae("MAT_SELECT_CONFIG"),fee={provide:sO,deps:[nr],useFactory:function uee(t){return()=>t.scrollStrategies.reposition()}},mee=new ae("MatSelectTrigger");class pee{constructor(i,e){this.source=i,this.value=e}}const gee=Bs(Rh(ts(PI(class{constructor(t,i,e,n,r){this._elementRef=t,this._defaultErrorStateMatcher=i,this._parentForm=e,this._parentFormGroup=n,this.ngControl=r,this.stateChanges=new Ce}}))));let _ee=(()=>{class t extends gee{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(jd.required)??!1}set required(e){this._required=$e(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=$e(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=$e(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=An(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}constructor(e,n,r,o,a,s,c,l,d,u,h,f,m,g){super(a,o,c,l,u),this._viewportRuler=e,this._changeDetectorRef=n,this._ngZone=r,this._dir=s,this._parentFormField=d,this._liveAnnouncer=m,this._defaultOptions=g,this._panelOpen=!1,this._compareWith=(p,_)=>p===_,this._uid="mat-select-"+aO++,this._triggerAriaLabelledBy=null,this._destroy=new Ce,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+aO++,this._panelDoneAnimatingStream=new Ce,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=fd(()=>{const p=this.options;return p?p.changes.pipe(Vn(p),fn(()=>Bi(...p.map(_=>_.onSelectionChange)))):this._ngZone.onStable.pipe(ui(1),fn(()=>this.optionSelectionChanges))}),this.openedChange=new ke,this._openedStream=this.openedChange.pipe(hi(p=>p),Ye(()=>{})),this._closedStream=this.openedChange.pipe(hi(p=>!p),Ye(()=>{})),this.selectionChange=new ke,this.valueChange=new ke,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 fy(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Lc(),Tt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Tt(this._destroy)).subscribe(e=>{e.added.forEach(n=>n.select()),e.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(Vn(null),Tt(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),n=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}n&&(this._previousControl!==n.control&&(void 0!==this._previousControl&&null!==n.disabled&&n.disabled!==this.disabled&&(this.disabled=n.disabled),this._previousControl=n.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()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}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(n=>n.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 n=e.keyCode,r=40===n||38===n||37===n||39===n,o=13===n||32===n,a=this._keyManager;if(!a.isTyping()&&o&&!yr(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const s=this.selected;a.onKeydown(e);const c=this.selected;c&&s!==c&&this._liveAnnouncer.announce(c.viewValue,1e4)}}_handleOpenKeydown(e){const n=this._keyManager,r=e.keyCode,o=40===r||38===r,a=n.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(a||13!==r&&32!==r||!n.activeItem||yr(e))if(!a&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const s=this.options.some(c=>!c.disabled&&!c.selected);this.options.forEach(c=>{c.disabled||(s?c.select():c.deselect())})}else{const s=n.activeItemIndex;n.onKeydown(e),this._multiple&&o&&e.shiftKey&&n.activeItem&&n.activeItemIndex!==s&&n.activeItem._selectViaInteraction()}else e.preventDefault(),n.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(ui(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(n=>n.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(n=>this._selectOptionByValue(n)),this._sortValues();else{const n=this._selectOptionByValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const n=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 n&&this._selectionModel.select(n),n}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new SI(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]),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=Bi(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Tt(e)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Bi(...this.options.map(n=>n._stateChanges)).pipe(Tt(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,n){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),n&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),n&&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((n,r)=>this.sortComparator?this.sortComparator(n,r,e):e.indexOf(n)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let n=null;n=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=n,this.valueChange.emit(n),this._onChange(n),this.selectionChange.emit(this._getChangeEvent(n)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}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 n=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}_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}}return t.\u0275fac=function(e){return new(e||t)(b(_a),b(Gt),b(Ue),b(NI),b(Ae),b(_n,8),b(qc,8),b(js,8),b(d0,8),b(xa,10),uo("tabindex"),b(sO),b(Py),b(hee,8))},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&(at(tee,5),at(iee,5),at(pF,5)),2&e){let r;xe(r=ye())&&(n.trigger=r.first),xe(r=ye())&&(n.panel=r.first),xe(r=ye())&&(n._overlayDir=r.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[pe,Ei]}),t})(),sf=(()=>{class t extends _ee{constructor(){super(...arguments),this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Tt(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(),this._changeDetectorRef.detectChanges())})}ngAfterViewInit(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin())}open(){this._overlayWidth=this._getOverlayWidth(),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(e){const n=this.options.toArray()[e];if(n){const r=this.panel.nativeElement,o=jI(e,this.options,this.optionGroups),a=n._getHostElement();r.scrollTop=0===e&&1===o?0:WI(a.offsetTop,a.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new pee(this,e)}_getOverlayWidth(){return(this._preferredOverlayOrigin instanceof Yy?this._preferredOverlayOrigin.elementRef:this._preferredOverlayOrigin||this._elementRef).nativeElement.getBoundingClientRect().width}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=$e(e),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275cmp=je({type:t,selectors:[["mat-select"]],contentQueries:function(e,n,r){if(1&e&&(Bt(r,mee,5),Bt(r,Hs,5),Bt(r,Hy,5)),2&e){let o;xe(o=ye())&&(n.customTrigger=o.first),xe(o=ye())&&(n.options=o),xe(o=ye())&&(n.optionGroups=o)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(e,n){1&e&&X("keydown",function(o){return n._handleKeydown(o)})("focus",function(){return n._onFocus()})("blur",function(){return n._onBlur()}),2&e&&(rt("id",n.id)("tabindex",n.tabIndex)("aria-controls",n.panelOpen?n.id+"-panel":null)("aria-expanded",n.panelOpen)("aria-label",n.ariaLabel||null)("aria-required",n.required.toString())("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState)("aria-activedescendant",n._getAriaActiveDescendant()),Xe("mat-mdc-select-disabled",n.disabled)("mat-mdc-select-invalid",n.errorState)("mat-mdc-select-required",n.required)("mat-mdc-select-empty",n.empty)("mat-mdc-select-multiple",n.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matSelect"],features:[We([{provide:l0,useExisting:t},{provide:Vy,useExisting:t}]),pe],ngContentSelectors:lee,decls:11,vars:11,consts:[["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],[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"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","backdropClick","attach","detach"],[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,"ngClass","keydown"],["panel",""]],template:function(e,n){if(1&e&&(vi(cee),v(0,"div",0,1),X("click",function(){return n.toggle()}),v(3,"div",2),H(4,nee,2,1,"span",3),H(5,aee,3,2,"span",4),y(),v(6,"div",5)(7,"div",6),za(),v(8,"svg",7),Ee(9,"path",8),y()()()(),H(10,see,3,9,"ng-template",9),X("backdropClick",function(){return n.close()})("attach",function(){return n._onAttached()})("detach",function(){return n.close()})),2&e){const r=Lt(1);rt("aria-owns",n.panelOpen?n.id+"-panel":null),k(3),I("ngSwitch",n.empty),rt("id",n._valueId),k(1),I("ngSwitchCase",!0),k(1),I("ngSwitchCase",!1),k(5),I("cdkConnectedOverlayPanelClass",n._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",n._scrollStrategy)("cdkConnectedOverlayOrigin",n._preferredOverlayOrigin||r)("cdkConnectedOverlayOpen",n.panelOpen)("cdkConnectedOverlayPositions",n._positions)("cdkConnectedOverlayWidth",n._overlayWidth)}},dependencies:[Es,ih,xx,iM,pF,Yy],styles:['.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mat-mdc-select{display:inline-block;width:100%;outline:none}.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}.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}.mdc-menu-surface.mat-mdc-select-panel{width:100%;max-height:275px;position:static;outline:0;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-select-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) .mdc-menu-surface.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above .mdc-menu-surface.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)}._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.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:[dee.transformPanel]},changeDetection:0}),t})(),bee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({providers:[fee],imports:[ir,Uc,kg,xt,Vc,u0,kg,xt]}),t})();const vee=["tooltip"],cO=new ae("mat-tooltip-scroll-strategy"),wee={provide:cO,deps:[nr],useFactory:function yee(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},kee=new ae("mat-tooltip-default-options",{providedIn:"root",factory:function Cee(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),lO="tooltip-panel",dO=Go({passive:!0});let Aee=(()=>{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=$e(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){this._disabled=$e(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=An(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=An(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,n,r,o,a,s,c,l,d,u,h,f){this._overlay=e,this._elementRef=n,this._scrollDispatcher=r,this._viewContainerRef=o,this._ngZone=a,this._platform=s,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._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Ce,this._scrollStrategy=d,this._document=f,h&&(h.position&&(this.position=h.position),h.positionAtOrigin&&(this.positionAtOrigin=h.positionAtOrigin),h.touchGestures&&(this.touchGestures=h.touchGestures)),u.change.pipe(Tt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Tt(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([n,r])=>{e.removeEventListener(n,r,dO)}),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,n){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const r=this._createOverlay(n);this._detach(),this._portal=this._portal||new Id(this._tooltipComponent,this._viewContainerRef);const o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(Tt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){const n=this._tooltipInstance;n&&(n.isVisible()?n.hide(e):(n._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 Ae)return this._overlayRef;this._detach()}const n=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(n);return r.positionChanges.pipe(Tt(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${lO}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Tt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Tt(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Tt(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&27===o.keyCode&&!yr(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 n=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();n.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,n=this.position;let r;"above"==n||"below"==n?r={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&e||"right"==n&&!e?r={originX:"start",originY:"center"}:("after"==n||"right"==n&&e||"left"==n&&!e)&&(r={originX:"end",originY:"center"});const{x:o,y:a}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:a}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,n=this.position;let r;"above"==n?r={overlayX:"center",overlayY:"bottom"}:"below"==n?r={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&e||"right"==n&&!e?r={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&e||"left"==n&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:o,y:a}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(ui(1),Tt(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,n){return"above"===this.position||"below"===this.position?"top"===n?n="bottom":"bottom"===n&&(n="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:n}}_updateCurrentPositionClass(e){const{overlayY:n,originX:r,originY:o}=e;let a;if(a="center"===n?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===n&&"top"===o?"above":"below",a!==this._currentPosition){const s=this._overlayRef;if(s){const c=`${this._cssClassPrefix}-${lO}-`;s.removePanelClass(c+this._currentPosition),s.addPanelClass(c+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{let n;this._setupPointerExitEventsIfNeeded(),void 0!==e.x&&void 0!==e.y&&(n=e),this.show(void 0,n)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{const n=e.targetTouches?.[0],r=n?{x:n.clientX,y:n.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",n=>{const r=n.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",n=>this._wheelListener(n)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const n=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",n],["touchcancel",n])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([n,r])=>{this._elementRef.nativeElement.addEventListener(n,r,dO)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const n=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;n!==r&&!r.contains(n)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const n=this._elementRef.nativeElement,r=n.style;("on"===e||"INPUT"!==n.nodeName&&"TEXTAREA"!==n.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!n.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){aa()},t.\u0275dir=Q({type:t,inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),cf=(()=>{class t extends Aee{constructor(e,n,r,o,a,s,c,l,d,u,h,f){super(e,n,r,o,a,s,c,l,d,u,h,f),this._tooltipComponent=Fee,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}}return t.\u0275fac=function(e){return new(e||t)(b(nr),b(Ae),b(Fd),b(Fi),b(Ue),b(xi),b(CI),b(bo),b(cO),b(_n,8),b(kee,8),b(it))},t.\u0275dir=Q({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],exportAs:["matTooltip"],features:[pe]}),t})(),Iee=(()=>{class t{constructor(e,n){this._changeDetectorRef=e,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Ce,this._animationsDisabled="NoopAnimations"===n}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){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(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const n=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(n.classList.remove(e?o:r),n.classList.add(e?r:o),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const a=getComputedStyle(n);("0s"===a.getPropertyValue("animation-duration")||"none"===a.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(n.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return t.\u0275fac=function(e){return new(e||t)(b(Gt),b(Ri,8))},t.\u0275dir=Q({type:t}),t})(),Fee=(()=>{class t extends Iee{constructor(e,n,r){super(e,r),this._elementRef=n,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}}return t.\u0275fac=function(e){return new(e||t)(b(Gt),b(Ae),b(Ri,8))},t.\u0275cmp=je({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(e,n){if(1&e&&at(vee,7),2&e){let r;xe(r=ye())&&(n._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,n){1&e&&X("mouseleave",function(o){return n._handleMouseLeave(o)}),2&e&&tr("zoom",n.isVisible()?1:null)},features:[pe],decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(e,n){1&e&&(v(0,"div",0,1),X("animationend",function(o){return n._handleAnimationEnd(o)}),v(2,"div",2),M(3),y()()),2&e&&(Xe("mdc-tooltip--multiline",n._isMultiline),I("ngClass",n.tooltipClass),k(3),tt(n.message))},dependencies:[Es],styles:['.mdc-tooltip__surface{word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.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{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}}.mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color, #fff)}.mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color, #000)}.mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font, inherit);font-size:var(--mdc-plain-tooltip-supporting-text-size, inherit);font-weight:var(--mdc-plain-tooltip-supporting-text-weight, inherit);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, inherit)}.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}),t})(),Ree=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({providers:[wee],imports:[Ly,ir,Uc,xt,xt,Vc]}),t})();const Oee=["switch"],Pee=["*"],Nee=new ae("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})}),Lee={provide:qn,useExisting:Xt(()=>hO),multi:!0};class uO{constructor(i,e){this.source=i,this.checked=e}}let Bee=0;const Vee=Rh(Ls(Bs(ts(class{constructor(t){this._elementRef=t}}))));let Hee=(()=>{class t extends Vee{get required(){return this._required}set required(e){this._required=$e(e)}get checked(){return this._checked}set checked(e){this._checked=$e(e),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,n,r,o,a,s,c){super(e),this._focusMonitor=n,this._changeDetectorRef=r,this.defaults=a,this._onChange=l=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new ke,this.toggleChange=new ke,this.tabIndex=parseInt(o)||0,this.color=this.defaultColor=a.color||"accent",this._noopAnimations="NoopAnimations"===s,this.id=this._uniqueId=`${c}${++Bee}`}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))}}return t.\u0275fac=function(e){aa()},t.\u0275dir=Q({type:t,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[pe]}),t})(),hO=(()=>{class t extends Hee{get buttonId(){return`${this.id||this._uniqueId}-button`}constructor(e,n,r,o,a,s){super(e,n,r,o,a,s,"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 uO(this,this.checked)))}focus(){this._switchElement.nativeElement.focus()}_createChangeEvent(e){return new uO(this,e)}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(bo),b(Gt),uo("tabindex"),b(Nee),b(Ri,8))},t.\u0275cmp=je({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(e,n){if(1&e&&at(Oee,5),2&e){let r;xe(r=ye())&&(n._switchElement=r.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:11,hostBindings:function(e,n){2&e&&(ua("id",n.id),rt("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Xe("mat-mdc-slide-toggle-focused",n._focused)("mat-mdc-slide-toggle-checked",n.checked)("_mat-animation-noopable",n._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[We([Lee]),pe],ngContentSelectors:Pee,decls:17,vars:24,consts:[[1,"mdc-form-field"],["role","switch","type","button",1,"mdc-switch",3,"tabIndex","disabled","click"],["switch",""],[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"],["viewBox","0 0 24 24",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",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"],[3,"for","click"]],template:function(e,n){if(1&e&&(vi(),v(0,"div",0)(1,"button",1,2),X("click",function(){return n._handleClick()}),Ee(3,"div",3),v(4,"div",4)(5,"div",5)(6,"div",6),Ee(7,"div",7),y(),v(8,"div",8),Ee(9,"div",9),y(),v(10,"div",10),za(),v(11,"svg",11),Ee(12,"path",12),y(),v(13,"svg",13),Ee(14,"path",14),y()()()()(),Rl(),v(15,"label",15),X("click",function(o){return o.stopPropagation()}),Je(16),y()()),2&e){const r=Lt(2);Xe("mdc-form-field--align-end","before"==n.labelPosition),k(1),Xe("mdc-switch--selected",n.checked)("mdc-switch--unselected",!n.checked)("mdc-switch--checked",n.checked)("mdc-switch--disabled",n.disabled),I("tabIndex",n.tabIndex)("disabled",n.disabled),rt("id",n.buttonId)("name",n.name)("aria-label",n.ariaLabel)("aria-labelledby",n._getAriaLabelledBy())("aria-describedby",n.ariaDescribedby)("aria-required",n.required||null)("aria-checked",n.checked),k(8),I("matRippleTrigger",r)("matRippleDisabled",n.disableRipple||n.disabled)("matRippleCentered",!0),k(6),I("for",n.buttonId),rt("id",n._labelId)}},dependencies:[vo],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, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color, #fff)}.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{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mdc-switch{width:var(--mdc-switch-track-width, 36px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color, #310077)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color, #616161)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color, #212121)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color, #424242)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color, var(--mdc-theme-surface, #fff))}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation, 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-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-slide-toggle .mdc-switch .mdc-switch__focus-ring-wrapper,.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{height:var(--mdc-switch-handle-height, 20px)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__handle::after{opacity:var(--mdc-switch-disabled-handle-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{border-radius:var(--mdc-switch-handle-shape, 10px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle{width:var(--mdc-switch-handle-width, 20px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__handle-track{width:calc(100% - var(--mdc-switch-handle-width, 20px))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:var(--mdc-switch-selected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:var(--mdc-switch-unselected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size, 18px);height:var(--mdc-switch-selected-icon-size, 18px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size, 18px);height:var(--mdc-switch-unselected-icon-size, 18px)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-hover-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-focus-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-pressed-state-layer-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-hover-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-focus-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::before,.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-pressed-state-layer-color, #424242)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mat-mdc-slide-toggle .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, 0.04)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mat-mdc-slide-toggle .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, 0.12)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mat-mdc-slide-toggle .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, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--selected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mat-mdc-slide-toggle .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, 0.04)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mat-mdc-slide-toggle .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, 0.12)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mat-mdc-slide-toggle .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, 0.1)}.mat-mdc-slide-toggle .mdc-switch.mdc-switch--unselected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, 0.1)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__ripple{height:var(--mdc-switch-state-layer-size, 48px);width:var(--mdc-switch-state-layer-size, 48px)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__track{height:var(--mdc-switch-track-height, 14px)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity, 0.12)}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__track::after{background:var(--mdc-switch-selected-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color, #d7bbff)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color, #424242)}.mat-mdc-slide-toggle .mdc-switch:enabled .mdc-switch__track::before{background:var(--mdc-switch-unselected-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color, #e0e0e0)}.mat-mdc-slide-toggle .mdc-switch:disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color, #424242)}.mat-mdc-slide-toggle .mdc-switch .mdc-switch__track{border-radius:var(--mdc-switch-track-shape, 7px)}.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}'],encapsulation:2,changeDetection:0}),t})(),fO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({}),t})(),$ee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({imports:[fO,xt,Vs,ir,fO,xt]}),t})();function jee(t,i){if(1&t){const e=ct();v(0,"button",14),X("click",function(){Oe(e);const r=q().index;return Pe(q().removeReaction(r))}),v(1,"mat-icon"),M(2,"close"),y()()}}function Wee(t,i){if(1&t){const e=ct();v(0,"mat-option",15),X("click",function(){const o=Oe(e).$implicit,a=q().$implicit;return Pe(q().reactionSeveritySelected(a,o))}),M(1),y()}if(2&t){const e=i.$implicit;I("value",e),k(1),tt(e.display)}}function Gee(t,i){if(1&t){const e=ct();v(0,"div",2)(1,"div",3),H(2,jee,3,0,"button",4),y(),v(3,"div",5)(4,"div",6)(5,"app-autocomplete-binding",7),X("selectionChange",function(r){const a=Oe(e).$implicit;return Pe(q().reactionManifestationSelected(a,r))}),y()(),v(6,"button",8)(7,"mat-icon"),M(8,"info"),y()(),v(9,"mat-menu",null,9)(11,"span",10),X("click",function(r){return r.stopPropagation()}),v(12,"p"),M(13,"Terminology binding:"),y(),v(14,"pre"),M(15),y()()()(),v(16,"mat-form-field",11)(17,"mat-label"),M(18,"Reaction Severity"),y(),v(19,"mat-select"),H(20,Wee,2,2,"mat-option",12),y()(),v(21,"div",5)(22,"div",6)(23,"app-autocomplete-binding",7),X("selectionChange",function(r){const a=Oe(e).$implicit;return Pe(q().reactionRouteSelected(a,r))}),y()(),v(24,"button",8)(25,"mat-icon"),M(26,"info"),y()(),v(27,"mat-menu",null,13)(29,"span",10),X("click",function(r){return r.stopPropagation()}),v(30,"p"),M(31,"Terminology binding:"),y(),v(32,"pre"),M(33),y()()()()()}if(2&t){const e=i.index,n=Lt(10),r=Lt(28),o=q();k(2),I("ngIf",e>0),k(3),I("binding",o.reactionManifestationBinding),k(1),I("matMenuTriggerFor",n),k(5),I("disableRipple",!0),k(4),tt(o.reactionManifestationBinding.ecl),k(5),I("ngForOf",o.severityOptions),k(3),I("binding",o.routeBinding),k(1),I("matMenuTriggerFor",r),k(5),I("disableRipple",!0),k(4),tt(o.routeBinding.ecl)}}let qee=(()=>{class t{constructor(){this.reactions=[],this.newManifestation=new ke,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,n){e.manifestation=n,this.newManifestation.emit(n),this.onChangeCallback(this.reactions)}reactionSeveritySelected(e,n){e.severity=n,this.onChangeCallback(this.reactions)}reactionRouteSelected(e,n){e.route=n,this.onChangeCallback(this.reactions)}registerOnChange(e){this.onChangeCallback=e}registerOnTouched(e){this.onTouchedCallback=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=je({type:t,selectors:[["app-allergies-allergy-list-reaction"]],inputs:{reactions:"reactions"},outputs:{newManifestation:"newManifestation"},features:[We([{provide:qn,useExisting:Xt(()=>t),multi:!0}])],decls:5,vars:1,consts:[["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,"binding","selectionChange"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor"],["reactionPopoverMenu","matMenu"],["mat-menu-item","",3,"disableRipple","click"],[1,"form-field"],[3,"value","click",4,"ngFor","ngForOf"],["routePopoverMenu","matMenu"],["mat-icon-button","","color","primary","matTooltip","Remove reaction",1,"remove",3,"click"],[3,"value","click"]],template:function(e,n){1&e&&(H(0,Gee,34,10,"div",0),v(1,"div")(2,"button",1),X("click",function(){return n.addNewReaction()}),v(3,"mat-icon"),M(4,"add"),y()()()),2&e&&I("ngForOf",n.reactions)},dependencies:[go,hn,is,ba,$c,va,jc,Ws,wa,Hs,sf,cf,h0],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%}"]}),t})();function Xee(t,i){if(1&t){const e=ct();v(0,"mat-option",31),X("click",function(){return Oe(e),Pe(q().updateAllergyStr())}),M(1),y()}if(2&t){const e=i.$implicit;I("value",e),k(1),tt(e.display)}}function Qee(t,i){if(1&t){const e=ct();v(0,"mat-option",31),X("click",function(){return Oe(e),Pe(q().updateAllergyStr())}),M(1),y()}if(2&t){const e=i.$implicit;I("value",e),k(1),tt(e.display)}}function Yee(t,i){if(1&t){const e=ct();v(0,"mat-option",31),X("click",function(){return Oe(e),Pe(q().updateAllergyStr())}),M(1),y()}if(2&t){const e=i.$implicit;I("value",e),k(1),tt(e.display)}}function Kee(t,i){if(1&t){const e=ct();v(0,"app-autocomplete-binding",10),X("selectionChange",function(r){return Oe(e),Pe(q().substanceSelected(r,!0))}),y()}if(2&t){const e=q();I("binding",e.substanceBinding)("term",e.selectedSubstanceTerm)}}function Zee(t,i){if(1&t){const e=ct();v(0,"app-autocomplete-binding",10),X("selectionChange",function(r){return Oe(e),Pe(q().substanceSelected(r))}),y()}if(2&t){const e=q();I("binding",e.refinedSubstanceBinding)("term",e.selectedSubstanceTerm)}}function Jee(t,i){if(1&t&&(v(0,"pre"),M(1),y()),2&t){const e=q();k(1),tt(e.substanceBinding.ecl)}}function ete(t,i){if(1&t&&(v(0,"pre"),M(1),y()),2&t){const e=q();k(1),tt(e.refinedSubstanceBinding.ecl)}}function tte(t,i){if(1&t){const e=ct();v(0,"mat-option",31),X("click",function(){return Oe(e),Pe(q().updateAllergyStr())}),M(1),y()}if(2&t){const e=i.$implicit;I("value",e),k(1),tt(e.display)}}function ite(t,i){if(1&t){const e=ct();v(0,"mat-option",31),X("click",function(){return Oe(e),Pe(q().updateAllergyStr())}),M(1),y()}if(2&t){const e=i.$implicit;I("value",e),k(1),tt(e.display)}}const nte=function(){return{}};let rte=(()=>{class t{constructor(e,n,r){this.terminologyService=e,this.clipboard=n,this._snackBar=r,this.newProblem=new ke,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 Jr(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 Jr(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,n){var r=this;return Yi(function*(){n&&(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(a=>{"762766007"==a.code?r.selectedIntoleranceCategories.push(r.intoleranceCategoryOptions[0]):"115668003"==a.code?r.selectedIntoleranceCategories.push(r.intoleranceCategoryOptions[3]):"410942007"==a.code?r.selectedIntoleranceCategories.push(r.intoleranceCategoryOptions[1]):"57795002"==a.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 n=this;return Yi(function*(){if(e=Object.assign({system:"http://snomed.info/sct"},e)){n.selectedCodeTerm=e.display,n.selectedCode=e,n.recordPropensity&&(n.outputAllergy.code.coding=[e]);let r=yield n.getTypes(e);if(r.expansion?.contains){const a=r.expansion?.contains[0];n.selectedIntoleranceType=n.intoleranceTypeOptions.find(s=>s.code===a.code)}let o=yield n.getAllergySubstance(e);if(o.expansion.contains||(o=yield n.getIntoleranceSubstance(e)),o.expansion?.contains){const a=o.expansion?.contains[0];n.refinedSubstanceBinding.ecl=`<<${a.code} | ${a.display} |`,n.substanceSelected(a),n.selectedSubstanceTerm=a.display}else n.refinedSubstanceBinding.ecl="<<105590001 | Substance (substance) |"}})()}getIntoleranceSubstance(e){var n=this;return Yi(function*(){return Wo((yield n.terminologyService.expandValueSet(`${e.code} |${e.display}| . 47429007 |Associated with (attribute)|`,"")).pipe(Ye(o=>o)))})()}getAllergySubstance(e){var n=this;return Yi(function*(){return Wo((yield n.terminologyService.expandValueSet(`${e.code} |${e.display}| . 246075003 |Causative agent (attribute)|`,"")).pipe(Ye(o=>o)))})()}getSubstanceCategories(e){var n=this;return Yi(function*(){return Wo((yield n.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(Ye(o=>o)))})()}getTypes(e){var n=this;return Yi(function*(){return Wo((yield n.terminologyService.expandValueSet(`> ${e.code} |${e.display}| AND (609433001 |Hypersensitivity disposition| OR 782197009 |Intolerance to substance|)`,"")).pipe(Ye(o=>o)))})()}saveFhirResource(){var e=new Blob([this.outputAllergyStr],{type:"text/plain;charset=utf-8"});(0,qd.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(Pr,{duration:1e3,data:"Nothing to add to problem list",panelClass:["yellow-snackbar"]});this.clear()}}return t.\u0275fac=function(e){return new(e||t)(b(yo),b(oO),b(Od))},t.\u0275cmp=je({type:t,selectors:[["app-allergies-allergy-list"]],outputs:{newProblem:"newProblem"},decls:105,vars:30,consts:[["id","main-card"],[1,"row"],[1,"column"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor"],["substancePopoverMenu","matMenu"],["mat-menu-item","",1,"long-tooltip",3,"disableRipple","click"],["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,"binding","term","selectionChange"],["codePopoverMenu","matMenu"],["mat-menu-item","",3,"disableRipple","click"],["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,"ngModel","ngModelChange","click"],[1,"form-field"],[3,"ngModel","ngModelChange"],[3,"value","click",4,"ngFor","ngForOf"],[1,"small-form-field"],[3,"binding","term","selectionChange",4,"ngIf"],[4,"ngIf"],[3,"formControl","multiple"],[3,"ngModel","ngModelChange","newManifestation"],["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,"value","click"]],template:function(e,n){if(1&e&&(v(0,"mat-card",0)(1,"div",1)(2,"div",2)(3,"h4"),M(4,"Allergy Intolerance Form "),v(5,"button",3)(6,"mat-icon"),M(7,"info"),y()(),v(8,"mat-menu",null,4)(10,"span",5),X("click",function(o){return o.stopPropagation()}),v(11,"h4"),M(12,"Allergy list"),y(),v(13,"p"),M(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."),y(),v(15,"p"),M(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."),y(),v(17,"p"),M(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."),y(),v(19,"p"),M(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."),y(),v(21,"p"),M(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."),y(),v(23,"p"),M(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)."),y(),v(25,"p"),M(26,"For more information check the "),v(27,"a",6),M(28,"Implementation Guide"),y(),M(29," developed by the SNOMED International Allergy Clinical Reference Group."),y()()()(),v(30,"button",7),X("click",function(){return n.clear()}),M(31,"Clear"),y(),v(32,"div",8)(33,"div",9)(34,"app-autocomplete-binding",10),X("selectionChange",function(o){return n.codeSelected(o)}),y()(),v(35,"button",3)(36,"mat-icon"),M(37,"info"),y()(),v(38,"mat-menu",null,11)(40,"span",12),X("click",function(o){return o.stopPropagation()}),v(41,"p"),M(42,"Terminology binding:"),y(),v(43,"pre"),M(44),y()()(),v(45,"mat-slide-toggle",13),X("ngModelChange",function(o){return n.recordPropensity=o})("click",function(){return n.propensityRecordChanged()}),M(46," Propensity based model "),y()(),v(47,"mat-form-field",14)(48,"mat-label"),M(49,"Allergy Intolerance Type"),y(),v(50,"mat-select",15),X("ngModelChange",function(o){return n.selectedIntoleranceType=o}),H(51,Xee,2,2,"mat-option",16),y()(),v(52,"div",8)(53,"mat-form-field",2)(54,"mat-label"),M(55,"Clinical Status"),y(),v(56,"mat-select",15),X("ngModelChange",function(o){return n.selectedClinicalStatus=o}),H(57,Qee,2,2,"mat-option",16),y()(),v(58,"mat-form-field",2)(59,"mat-label"),M(60,"Verification Status"),y(),v(61,"mat-select",15),X("ngModelChange",function(o){return n.selectedVerificationStatus=o}),H(62,Yee,2,2,"mat-option",16),y()()(),v(63,"div",8)(64,"div",17),H(65,Kee,1,2,"app-autocomplete-binding",18),H(66,Zee,1,2,"app-autocomplete-binding",18),y(),v(67,"button",3)(68,"mat-icon"),M(69,"info"),y()(),v(70,"mat-menu",null,4)(72,"span",12),X("click",function(o){return o.stopPropagation()}),v(73,"p"),M(74,"Terminology binding:"),y(),H(75,Jee,2,1,"pre",19),H(76,ete,2,1,"pre",19),y()()(),v(77,"div",8)(78,"mat-form-field",2)(79,"mat-label"),M(80,"Substance Category"),y(),v(81,"mat-select",20),H(82,tte,2,2,"mat-option",16),y()(),v(83,"mat-form-field",2)(84,"mat-label"),M(85,"Allergy Criticality"),y(),v(86,"mat-select",15),X("ngModelChange",function(o){return n.selectedCriticality=o}),H(87,ite,2,2,"mat-option",16),y()()(),v(88,"app-allergies-allergy-list-reaction",21),X("ngModelChange",function(o){return n.selectedReactions=o})("ngModelChange",function(o){return n.onReactionsChange(o)})("newManifestation",function(o){return n.newProblem.emit(o)}),y(),v(89,"button",22),X("click",function(){return n.addToProblemsList()}),M(90,"Save"),y()(),v(91,"div",2)(92,"h4"),M(93,"AllergyIntolerance HL7 FHIR Resource ("),v(94,"a",23),M(95,"link"),y(),M(96,")"),y(),v(97,"div",24)(98,"div",25)(99,"button",26),X("click",function(){return n.saveFhirResource()}),Ee(100,"mat-icon",27),y(),v(101,"button",28),X("click",function(){return n.copyToClipboard(n.outputAllergyStr)}),Ee(102,"mat-icon",29),y()(),v(103,"textarea",30),M(104," "),y()()()()()),2&e){const r=Lt(9),o=Lt(39);k(5),I("matMenuTriggerFor",r),k(5),I("disableRipple",!0),k(24),I("binding",n.codeBinding)("term",n.selectedCodeTerm),k(1),I("matMenuTriggerFor",o),k(5),I("disableRipple",!0),k(4),tt(n.codeBinding.ecl),k(1),I("ngModel",n.recordPropensity),k(5),I("ngModel",n.selectedIntoleranceType),k(1),I("ngForOf",n.intoleranceTypeOptions),k(5),I("ngModel",n.selectedClinicalStatus),k(1),I("ngForOf",n.clinicalStatusOptions),k(4),I("ngModel",n.selectedVerificationStatus),k(1),I("ngForOf",n.verificationStatusOptions),k(3),I("ngIf",!n.recordPropensity),k(1),I("ngIf",n.recordPropensity),k(1),I("matMenuTriggerFor",r),k(5),I("disableRipple",!0),k(3),I("ngIf",!n.recordPropensity),k(1),I("ngIf",n.recordPropensity),k(5),I("formControl",n.selectedIntoleranceCategoriesControl)("multiple",!0),k(1),I("ngForOf",n.intoleranceCategoryOptions),k(4),I("ngModel",n.selectedCriticality),k(1),I("ngForOf",n.criticalityOptions),k(1),I("ngModel",n.selectedReactions),k(15),I("options",Sc(29,nte))("lang","json")("innerHTML",n.outputAllergyStr,Gm)}},dependencies:[go,hn,F1,xo,is,ba,$c,va,jc,Ws,wa,Hs,ya,o0,e1,sf,cs,cf,hO,h0,qee],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}"]}),t})(),mO=(()=>{class t{constructor(e){this._snackBar=e}addProblem(e){var n=this;return Yi(function*(){n.allergiesProblemListComponent.addProblem(e),n._snackBar.openFromComponent(Pr,{duration:1e3,data:"Problem list updated",panelClass:["green-snackbar"]})})()}}return t.\u0275fac=function(e){return new(e||t)(b(Od))},t.\u0275cmp=je({type:t,selectors:[["app-allergies"]],viewQuery:function(e,n){if(1&e&&at(YR,5),2&e){let r;xe(r=ye())&&(n.allergiesProblemListComponent=r.first)}},decls:31,vars:2,consts:[["id","main-panel"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor"],["substancePopoverMenu","matMenu"],["mat-menu-item","",1,"long-tooltip",3,"disableRipple","click"],["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(e,n){if(1&e&&(v(0,"div",0)(1,"h3"),M(2,"Allergy, Hypersensitivity and Intolerance "),v(3,"button",1)(4,"mat-icon"),M(5,"info"),y()(),v(6,"mat-menu",null,2)(8,"span",3),X("click",function(o){return o.stopPropagation()}),v(9,"h4"),M(10,"Allergy, Hypersensitivity and Intolerance Implementation Demo"),y(),v(11,"p"),M(12,"This is a demonstration of different implementation approaches for recording Allergies, Hypersensitivity and Intolerance."),y(),v(13,"p")(14,"b"),M(15,"Allergy list:"),y(),M(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."),y(),v(17,"p")(18,"b"),M(19,"Problem list:"),y(),M(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."),y(),v(21,"p"),M(22,"For more information check the "),v(23,"a",4),M(24,"Implementation Guide"),y(),M(25," developed by the SNOMED International Allergy Clinical Reference Group."),y()()()(),v(26,"mat-tab-group",5)(27,"mat-tab",6)(28,"app-allergies-allergy-list",7),X("newProblem",function(o){return n.addProblem(o)}),y()(),v(29,"mat-tab",8),Ee(30,"app-allergies-problem-list"),y()()()),2&e){const r=Lt(7);k(3),I("matMenuTriggerFor",r),k(5),I("disableRipple",!0)}},dependencies:[is,ba,$c,va,jc,f0,af,YR,rte],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}"]}),t})();function R1(t,i,e){for(let n in i)if(i.hasOwnProperty(n)){const r=i[n];r?t.setProperty(n,r,e?.has(n)?"important":""):t.removeProperty(n)}return t}function Xd(t,i){const e=i?"":"none";R1(t.style,{"touch-action":i?"":"none","-webkit-user-drag":i?"":"none","-webkit-tap-highlight-color":i?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function pO(t,i,e){R1(t.style,{position:i?"":"fixed",top:i?"":"0",opacity:i?"":"0",left:i?"":"-999em"},e)}function m0(t,i){return i&&"none"!=i?t+" "+i:t}function gO(t){const i=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*i}function O1(t,i){return t.getPropertyValue(i).split(",").map(n=>n.trim())}function P1(t){const i=t.getBoundingClientRect();return{top:i.top,right:i.right,bottom:i.bottom,left:i.left,width:i.width,height:i.height,x:i.x,y:i.y}}function N1(t,i,e){const{top:n,bottom:r,left:o,right:a}=t;return e>=n&&e<=r&&i>=o&&i<=a}function lf(t,i,e){t.top+=i,t.bottom=t.top+t.height,t.left+=e,t.right=t.left+t.width}function _O(t,i,e,n){const{top:r,right:o,bottom:a,left:s,width:c,height:l}=t,d=c*i,u=l*i;return n>r-u&&ns-d&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:P1(e)})})}handleScroll(i){const e=Zr(i),n=this.positions.get(e);if(!n)return null;const r=n.scrollPosition;let o,a;if(e===this._document){const l=this.getViewportScrollPosition();o=l.top,a=l.left}else o=e.scrollTop,a=e.scrollLeft;const s=r.top-o,c=r.left-a;return this.positions.forEach((l,d)=>{l.clientRect&&e!==d&&e.contains(d)&&lf(l.clientRect,s,c)}),r.top=o,r.left=a,{top:s,left:c}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function vO(t){const i=t.cloneNode(!0),e=i.querySelectorAll("[id]"),n=t.nodeName.toLowerCase();i.removeAttribute("id");for(let r=0;rXd(n,e)))}constructor(i,e,n,r,o,a){this._config=e,this._document=n,this._ngZone=r,this._viewportRuler=o,this._dragDropRegistry=a,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new Ce,this._pointerMoveSubscription=yt.EMPTY,this._pointerUpSubscription=yt.EMPTY,this._scrollSubscription=yt.EMPTY,this._resizeSubscription=yt.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 Ce,this.started=new Ce,this.released=new Ce,this.ended=new Ce,this.entered=new Ce,this.exited=new Ce,this.dropped=new Ce,this.moved=this._moveEvents,this._pointerDown=s=>{if(this.beforeStarted.next(),this._handles.length){const c=this._getTargetHandle(s);c&&!this._disabledHandles.has(c)&&!this.disabled&&this._initializeDragSequence(c,s)}else this.disabled||this._initializeDragSequence(this._rootElement,s)},this._pointerMove=s=>{const c=this._getPointerPositionOnPage(s);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(s),m=this._dropContainer;if(!f)return void this._endDragSequence(s);(!m||!m.isDragging()&&!m.isReceiving())&&(s.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(s)))}return}s.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:s,distance:this._getDragDistance(l),delta:this._pointerDirectionDelta})})},this._pointerUp=s=>{this._endDragSequence(s)},this._nativeDragStart=s=>{if(this._handles.length){const c=this._getTargetHandle(s);c&&!this._disabledHandles.has(c)&&!this.disabled&&s.preventDefault()}else this.disabled||s.preventDefault()},this.withRootElement(i).withParent(e.parentDragRef||null),this._parentPositions=new bO(n),a.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(i){this._handles=i.map(n=>Ki(n)),this._handles.forEach(n=>Xd(n,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(n=>{this._handles.indexOf(n)>-1&&e.add(n)}),this._disabledHandles=e,this}withPreviewTemplate(i){return this._previewTemplate=i,this}withPlaceholderTemplate(i){return this._placeholderTemplate=i,this}withRootElement(i){const e=Ki(i);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,p0),e.addEventListener("touchstart",this._pointerDown,CO),e.addEventListener("dragstart",this._nativeDragStart,p0)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(i){return this._boundaryElement=i?Ki(i):null,this._resizeSubscription.unsubscribe(),i&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(i){return this._parentDragRef=i,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(i){!this._disabledHandles.has(i)&&this._handles.indexOf(i)>-1&&(this._disabledHandles.add(i),Xd(i,!0))}enableHandle(i){this._disabledHandles.has(i)&&(this._disabledHandles.delete(i),Xd(i,this.disabled))}withDirection(i){return this._direction=i,this}_withDropContainer(i){this._dropContainer=i}getFreeDragPosition(){const i=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:i.x,y:i.y}}setFreeDragPosition(i){return this._activeTransform={x:0,y:0},this._passiveTransform.x=i.x,this._passiveTransform.y=i.y,this._dropContainer||this._applyRootElementTransform(i.x,i.y),this}withPreviewContainer(i){return this._previewContainer=i,this}_sortFromLastPointerPosition(){const i=this._lastKnownPointerPosition;i&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(i),i)}_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(i){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:i}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(i),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(i);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:i})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(i){df(i)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const n=this._rootElement,r=n.parentNode,o=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment(""),s=this._getShadowRoot();r.insertBefore(a,n),this._initialTransform=n.style.transform||"",this._preview=this._createPreviewElement(),pO(n,!1,L1),this._document.body.appendChild(r.replaceChild(o,n)),this._getPreviewInsertionPoint(r,s).appendChild(this._preview),this.started.next({source:this,event:i}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:i}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(i,e){this._parentDragRef&&e.stopPropagation();const n=this.isDragging(),r=df(e),o=!r&&0!==e.button,a=this._rootElement,s=Zr(e),c=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),l=r?wg(e):yg(e);if(s&&s.draggable&&"mousedown"===e.type&&e.preventDefault(),n||o||c||l)return;if(this._handles.length){const h=a.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=P1(this._boundaryElement));const d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,i,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(i){pO(this._rootElement,!0,L1),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,n=e.getItemIndex(this),r=this._getPointerPositionOnPage(i),o=this._getDragDistance(r),a=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:o,dropPoint:r,event:i}),this.dropped.next({item:this,currentIndex:n,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:a,distance:o,dropPoint:r,event:i}),e.drop(this,n,this._initialIndex,this._initialContainer,a,o,r,i),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:i,y:e},{x:n,y:r}){let o=this._initialContainer._getSiblingContainerFromPosition(this,i,e);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(i,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,i,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(n,r),this._dropContainer._sortItem(this,i,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(i,e):this._applyPreviewTransform(i-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const i=this._previewTemplate,e=this.previewClass,n=i?i.template:null;let r;if(n&&i){const o=i.matchSize?this._initialClientRect:null,a=i.viewContainer.createEmbeddedView(n,i.context);a.detectChanges(),r=DO(a,this._document),this._previewRef=a,i.matchSize?SO(r,o):r.style.transform=g0(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=vO(this._rootElement),SO(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return R1(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},L1),Xd(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 i=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(i.left,i.top);const e=function ate(t){const i=getComputedStyle(t),e=O1(i,"transition-property"),n=e.find(s=>"transform"===s||"all"===s);if(!n)return 0;const r=e.indexOf(n),o=O1(i,"transition-duration"),a=O1(i,"transition-delay");return gO(o[r])+gO(a[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(n=>{const r=a=>{(!a||Zr(a)===this._preview&&"transform"===a.propertyName)&&(this._preview?.removeEventListener("transitionend",r),n(),clearTimeout(o))},o=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const i=this._placeholderTemplate,e=i?i.template:null;let n;return e?(this._placeholderRef=i.viewContainer.createEmbeddedView(e,i.context),this._placeholderRef.detectChanges(),n=DO(this._placeholderRef,this._document)):n=vO(this._rootElement),n.style.pointerEvents="none",n.classList.add("cdk-drag-placeholder"),n}_getPointerPositionInElement(i,e,n){const r=e===this._rootElement?null:e,o=r?r.getBoundingClientRect():i,a=df(n)?n.targetTouches[0]:n,s=this._getViewportScrollPosition();return{x:o.left-i.left+(a.pageX-o.left-s.left),y:o.top-i.top+(a.pageY-o.top-s.top)}}_getPointerPositionOnPage(i){const e=this._getViewportScrollPosition(),n=df(i)?i.touches[0]||i.changedTouches[0]||{pageX:0,pageY:0}:i,r=n.pageX-e.left,o=n.pageY-e.top;if(this._ownerSVGElement){const a=this._ownerSVGElement.getScreenCTM();if(a){const s=this._ownerSVGElement.createSVGPoint();return s.x=r,s.y=o,s.matrixTransform(a.inverse())}}return{x:r,y:o}}_getConstrainedPointerPosition(i){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:n,y:r}=this.constrainPosition?this.constrainPosition(i,this,this._initialClientRect,this._pickupPositionInElement):i;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(n=this._pickupPositionOnPage.x),this._boundaryRect){const{x:o,y:a}=this._pickupPositionInElement,s=this._boundaryRect,{width:c,height:l}=this._getPreviewRect(),d=s.top+a,u=s.bottom-(l-a);n=kO(n,s.left+o,s.right-(c-o)),r=kO(r,d,u)}return{x:n,y:r}}_updatePointerDirectionDelta(i){const{x:e,y:n}=i,r=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,a=Math.abs(e-o.x),s=Math.abs(n-o.y);return a>this._config.pointerDirectionChangeThreshold&&(r.x=e>o.x?1:-1,o.x=e),s>this._config.pointerDirectionChangeThreshold&&(r.y=n>o.y?1:-1,o.y=n),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const i=this._handles.length>0||!this.isDragging();i!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=i,Xd(this._rootElement,i))}_removeRootElementListeners(i){i.removeEventListener("mousedown",this._pointerDown,p0),i.removeEventListener("touchstart",this._pointerDown,CO),i.removeEventListener("dragstart",this._nativeDragStart,p0)}_applyRootElementTransform(i,e){const n=g0(i,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=m0(n,this._initialTransform)}_applyPreviewTransform(i,e){const n=this._previewTemplate?.template?void 0:this._initialTransform,r=g0(i,e);this._preview.style.transform=m0(r,n)}_getDragDistance(i){const e=this._pickupPositionOnPage;return e?{x:i.x-e.x,y:i.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:i,y:e}=this._passiveTransform;if(0===i&&0===e||this.isDragging()||!this._boundaryElement)return;const n=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===n.width&&0===n.height)return;const o=r.left-n.left,a=n.right-r.right,s=r.top-n.top,c=n.bottom-r.bottom;r.width>n.width?(o>0&&(i+=o),a>0&&(i-=a)):i=0,r.height>n.height?(s>0&&(e+=s),c>0&&(e-=c)):e=0,(i!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:i})}_getDragStartDelay(i){const e=this.dragStartDelay;return"number"==typeof e?e:df(i)?e.touch:e?e.mouse:0}_updateOnScroll(i){const e=this._parentPositions.handleScroll(i);if(e){const n=Zr(i);this._boundaryRect&&n!==this._boundaryElement&&n.contains(this._boundaryElement)&&lf(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=Cy(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(i,e){const n=this._previewContainer||"global";if("parent"===n)return i;if("global"===n){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return Ki(n)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(i){return this._handles.find(e=>i.target&&(i.target===e||e.contains(i.target)))}}function g0(t,i){return`translate3d(${Math.round(t)}px, ${Math.round(i)}px, 0)`}function kO(t,i,e){return Math.max(i,Math.min(e,t))}function df(t){return"t"===t.type[0]}function DO(t,i){const e=t.rootNodes;if(1===e.length&&e[0].nodeType===i.ELEMENT_NODE)return e[0];const n=i.createElement("div");return e.forEach(r=>n.appendChild(r)),n}function SO(t,i){t.style.width=`${i.width}px`,t.style.height=`${i.height}px`,t.style.transform=g0(i.left,i.top)}function B1(t,i,e){const n=uf(i,t.length-1),r=uf(e,t.length-1);if(n===r)return;const o=t[n],a=r0)return null;const s="horizontal"===this.orientation,c=o.findIndex(p=>p.drag===i),l=o[a],u=l.clientRect,h=c>a?1:-1,f=this._getItemOffsetPx(o[c].clientRect,u,h),m=this._getSiblingOffsetPx(c,o,h),g=o.slice();return B1(o,c,a),o.forEach((p,_)=>{if(g[_]===p)return;const w=p.drag===i,x=w?f:m,E=w?i.getPlaceholderElement():p.drag.getRootElement();p.offset+=x,s?(E.style.transform=m0(`translate3d(${Math.round(p.offset)}px, 0, 0)`,p.initialTransform),lf(p.clientRect,0,x)):(E.style.transform=m0(`translate3d(0, ${Math.round(p.offset)}px, 0)`,p.initialTransform),lf(p.clientRect,x,0))}),this._previousSwap.overlaps=N1(u,e,n),this._previousSwap.drag=l.drag,this._previousSwap.delta=s?r.x:r.y,{previousIndex:c,currentIndex:a}}enter(i,e,n,r){const o=null==r||r<0?this._getItemIndexFromPointerPosition(i,e,n):r,a=this._activeDraggables,s=a.indexOf(i),c=i.getPlaceholderElement();let l=a[o];if(l===i&&(l=a[o+1]),!l&&(null==o||-1===o||o-1&&a.splice(s,1),l&&!this._dragDropRegistry.isDragging(l)){const d=l.getRootElement();d.parentElement.insertBefore(c,d),a.splice(o,0,i)}else Ki(this._element).appendChild(c),a.push(i);c.style.transform="",this._cacheItemPositions()}withItems(i){this._activeDraggables=i.slice(),this._cacheItemPositions()}withSortPredicate(i){this._sortPredicate=i}reset(){this._activeDraggables.forEach(i=>{const e=i.getRootElement();if(e){const n=this._itemPositions.find(r=>r.drag===i)?.initialTransform;e.style.transform=n||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(i){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(n=>n.drag===i)}updateOnScroll(i,e){this._itemPositions.forEach(({clientRect:n})=>{lf(n,i,e)}),this._itemPositions.forEach(({drag:n})=>{this._dragDropRegistry.isDragging(n)&&n._sortFromLastPointerPosition()})}_cacheItemPositions(){const i="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const n=e.getVisibleElement();return{drag:e,offset:0,initialTransform:n.style.transform||"",clientRect:P1(n)}}).sort((e,n)=>i?e.clientRect.left-n.clientRect.left:e.clientRect.top-n.clientRect.top)}_getItemOffsetPx(i,e,n){const r="horizontal"===this.orientation;let o=r?e.left-i.left:e.top-i.top;return-1===n&&(o+=r?e.width-i.width:e.height-i.height),o}_getSiblingOffsetPx(i,e,n){const r="horizontal"===this.orientation,o=e[i].clientRect,a=e[i+-1*n];let s=o[r?"width":"height"]*n;if(a){const c=r?"left":"top",l=r?"right":"bottom";-1===n?s-=a.clientRect[c]-o[l]:s+=o[c]-a.clientRect[l]}return s}_shouldEnterAsFirstChild(i,e){if(!this._activeDraggables.length)return!1;const n=this._itemPositions,r="horizontal"===this.orientation;if(n[0].drag!==this._activeDraggables[0]){const a=n[n.length-1].clientRect;return r?i>=a.right:e>=a.bottom}{const a=n[0].clientRect;return r?i<=a.left:e<=a.top}}_getItemIndexFromPointerPosition(i,e,n,r){const o="horizontal"===this.orientation,a=this._itemPositions.findIndex(({drag:s,clientRect:c})=>s!==i&&((!r||s!==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)&&n!0,this.sortPredicate=()=>!0,this.beforeStarted=new Ce,this.entered=new Ce,this.exited=new Ce,this.dropped=new Ce,this.sorted=new Ce,this.receivingStarted=new Ce,this.receivingStopped=new Ce,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=yt.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Ce,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function ote(t=0,i=Ah){return t<0&&(t=0),Ig(t,t,i)}(0,iF).pipe(Tt(this._stopScrollTimers)).subscribe(()=>{const a=this._scrollNode,s=this.autoScrollStep;1===this._verticalScrollDirection?a.scrollBy(0,-s):2===this._verticalScrollDirection&&a.scrollBy(0,s),1===this._horizontalScrollDirection?a.scrollBy(-s,0):2===this._horizontalScrollDirection&&a.scrollBy(s,0)})},this.element=Ki(i),this._document=n,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new bO(n),this._sortStrategy=new dte(this.element,e),this._sortStrategy.withSortPredicate((a,s)=>this.sortPredicate(a,s,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(i,e,n,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(i)),this._sortStrategy.enter(i,e,n,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:i,container:this,currentIndex:this.getItemIndex(i)})}exit(i){this._reset(),this.exited.next({item:i,container:this})}drop(i,e,n,r,o,a,s,c={}){this._reset(),this.dropped.next({item:i,currentIndex:e,previousIndex:n,container:this,previousContainer:r,isPointerOverContainer:o,distance:a,dropPoint:s,event:c})}withItems(i){const e=this._draggables;return this._draggables=i,i.forEach(n=>n._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===i.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(i){return this._sortStrategy.direction=i,this}connectedTo(i){return this._siblings=i.slice(),this}withOrientation(i){return this._sortStrategy.orientation=i,this}withScrollableParents(i){const e=Ki(this.element);return this._scrollableElements=-1===i.indexOf(e)?[e,...i]:i.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(i){return this._isDragging?this._sortStrategy.getItemIndex(i):this._draggables.indexOf(i)}isReceiving(){return this._activeSiblings.size>0}_sortItem(i,e,n,r){if(this.sortingDisabled||!this._clientRect||!_O(this._clientRect,.05,e,n))return;const o=this._sortStrategy.sort(i,e,n,r);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:i})}_startScrollingIfNecessary(i,e){if(this.autoScrollDisabled)return;let n,r=0,o=0;if(this._parentPositions.positions.forEach((a,s)=>{s===this._document||!a.clientRect||n||_O(a.clientRect,.05,i,e)&&([r,o]=function hte(t,i,e,n){const r=MO(i,n),o=AO(i,e);let a=0,s=0;if(r){const c=t.scrollTop;1===r?c>0&&(a=1):t.scrollHeight-c>t.clientHeight&&(a=2)}if(o){const c=t.scrollLeft;1===o?c>0&&(s=1):t.scrollWidth-c>t.clientWidth&&(s=2)}return[a,s]}(s,a.clientRect,i,e),(r||o)&&(n=s))}),!r&&!o){const{width:a,height:s}=this._viewportRuler.getViewportSize(),c={width:a,height:s,top:0,right:a,bottom:s,left:0};r=MO(c,e),o=AO(c,i),n=window}n&&(r!==this._verticalScrollDirection||o!==this._horizontalScrollDirection||n!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=n,(r||o)&&n?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const i=Ki(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=i.msScrollSnapType||i.scrollSnapType||"",i.scrollSnapType=i.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const i=Ki(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(i).clientRect}_reset(){this._isDragging=!1;const i=Ki(this.element).style;i.scrollSnapType=i.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(i,e){return null!=this._clientRect&&N1(this._clientRect,i,e)}_getSiblingContainerFromPosition(i,e,n){return this._siblings.find(r=>r._canReceive(i,e,n))}_canReceive(i,e,n){if(!this._clientRect||!N1(this._clientRect,e,n)||!this.enterPredicate(i,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,n);if(!r)return!1;const o=Ki(this.element);return r===o||o.contains(r)}_startReceiving(i,e){const n=this._activeSiblings;!n.has(i)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(n.add(i),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:i,receiver:this,items:e}))}_stopReceiving(i){this._activeSiblings.delete(i),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:i,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(i=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(i);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const i=Cy(Ki(this.element));this._cachedShadowRoot=i||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const i=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,i))}}function MO(t,i){const{top:e,bottom:n,height:r}=t,o=r*TO;return i>=e-o&&i<=e+o?1:i>=n-o&&i<=n+o?2:0}function AO(t,i){const{left:e,right:n,width:r}=t,o=r*TO;return i>=e-o&&i<=e+o?1:i>=n-o&&i<=n+o?2:0}const _0=Go({passive:!1,capture:!0});let fte=(()=>{class t{constructor(e,n){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 Ce,this.pointerUp=new Ce,this.scroll=new Ce,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=n}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,_0)})}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,_0)}startDragging(e,n){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=n.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:_0}),r||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:_0}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((o,a)=>{this._document.addEventListener(a,o.handler,o.options)})})}}stopDragging(e){const n=this._activeDragInstances.indexOf(e);n>-1&&(this._activeDragInstances.splice(n,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const n=[this.scroll];return e&&e!==this._document&&n.push(new ni(r=>this._ngZone.runOutsideAngular(()=>{const a=s=>{this._activeDragInstances.length&&r.next(s)};return e.addEventListener("scroll",a,!0),()=>{e.removeEventListener("scroll",a,!0)}}))),Bi(...n)}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,n)=>{this._document.removeEventListener(n,e.handler,e.options)}),this._globalListeners.clear()}}return t.\u0275fac=function(e){return new(e||t)(G(Ue),G(it))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const mte={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let V1=(()=>{class t{constructor(e,n,r,o){this._document=e,this._ngZone=n,this._viewportRuler=r,this._dragDropRegistry=o}createDrag(e,n=mte){return new lte(e,n,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new ute(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return t.\u0275fac=function(e){return new(e||t)(G(it),G(Ue),G(_a),G(fte))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const H1=new ae("CDK_DRAG_PARENT"),U1=new ae("CdkDropListGroup"),IO=new ae("CDK_DRAG_CONFIG");let gte=0;const FO=new ae("CdkDropList");let z1=(()=>{class t{get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=$e(e)}constructor(e,n,r,o,a,s,c){this.element=e,this._changeDetectorRef=r,this._scrollDispatcher=o,this._dir=a,this._group=s,this._destroyed=new Ce,this.connectedTo=[],this.id="cdk-drop-list-"+gte++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new ke,this.entered=new ke,this.exited=new ke,this.sorted=new ke,this._unsortedItems=new Set,this._dropListRef=n.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),s&&s._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,n)=>e._dragRef.getVisibleElement().compareDocumentPosition(n._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(Vn(this._dir.value),Tt(this._destroyed)).subscribe(n=>e.withDirection(n)),e.beforeStarted.subscribe(()=>{const n=Ih(this.connectedTo).map(r=>"string"==typeof r?t._dropLists.find(a=>a.id===r):r);if(this._group&&this._group._items.forEach(r=>{-1===n.indexOf(r)&&n.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=$e(this.sortingDisabled),e.autoScrollDisabled=$e(this.autoScrollDisabled),e.autoScrollStep=An(this.autoScrollStep,2),e.connectedTo(n.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(n=>{this.entered.emit({container:this,item:n.item.data,currentIndex:n.currentIndex})}),e.exited.subscribe(n=>{this.exited.emit({container:this,item:n.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(n=>{this.sorted.emit({previousIndex:n.previousIndex,currentIndex:n.currentIndex,container:this,item:n.item.data})}),e.dropped.subscribe(n=>{this.dropped.emit({previousIndex:n.previousIndex,currentIndex:n.currentIndex,previousContainer:n.previousContainer.data,container:n.container.data,item:n.item.data,isPointerOverContainer:n.isPointerOverContainer,distance:n.distance,dropPoint:n.dropPoint,event:n.event}),this._changeDetectorRef.markForCheck()}),Bi(e.receivingStarted,e.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck())}_assignDefaults(e){const{lockAxis:n,draggingDisabled:r,sortingDisabled:o,listAutoScrollDisabled:a,listOrientation:s}=e;this.disabled=r??!1,this.sortingDisabled=o??!1,this.autoScrollDisabled=a??!1,this.orientation=s||"vertical",n&&(this.lockAxis=n)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(e=>e._dragRef))}}return t._dropLists=[],t.\u0275fac=function(e){return new(e||t)(b(Ae),b(V1),b(Gt),b(Fd),b(_n,8),b(U1,12),b(IO,8))},t.\u0275dir=Q({type:t,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,n){2&e&&(rt("id",n.id),Xe("cdk-drop-list-disabled",n.disabled)("cdk-drop-list-dragging",n._dropListRef.isDragging())("cdk-drop-list-receiving",n._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],standalone:!0,features:[We([{provide:U1,useValue:void 0},{provide:FO,useExisting:t}])]}),t})();const $1=new ae("CdkDragHandle");let RO=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=$e(e),this._stateChanges.next(this)}constructor(e,n){this.element=e,this._stateChanges=new Ce,this._disabled=!1,this._parentDrag=n}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(H1,12))},t.\u0275dir=Q({type:t,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},standalone:!0,features:[We([{provide:$1,useExisting:t}])]}),t})();const OO=new ae("CdkDragPlaceholder"),PO=new ae("CdkDragPreview");let j1=(()=>{class t{get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=$e(e),this._dragRef.disabled=this._disabled}constructor(e,n,r,o,a,s,c,l,d,u,h){this.element=e,this.dropContainer=n,this._ngZone=o,this._viewContainerRef=a,this._dir=c,this._changeDetectorRef=d,this._selfHandle=u,this._parentDrag=h,this._destroyed=new Ce,this.started=new ke,this.released=new ke,this.ended=new ke,this.entered=new ke,this.exited=new ke,this.dropped=new ke,this.moved=new ni(f=>{const m=this._dragRef.moved.pipe(Ye(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:s&&null!=s.dragStartThreshold?s.dragStartThreshold:5,pointerDirectionChangeThreshold:s&&null!=s.pointerDirectionChangeThreshold?s.pointerDirectionChangeThreshold:5,zIndex:s?.zIndex}),this._dragRef.data=this,t._dragInstances.push(this),s&&this._assignDefaults(s),n&&(this._dragRef._withDropContainer(n._dropListRef),n.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(ui(1),Tt(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(e){const n=e.rootElementSelector,r=e.freeDragPosition;n&&!n.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 n=e;this.rootElementSelector&&(n=void 0!==e.closest?e.closest(this.rootElementSelector):e.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(n||e)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):Ki(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const n=this._dir,r=this.dragStartDelay,o=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,a=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:An(r),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(o).withPreviewTemplate(a).withPreviewContainer(this.previewContainer||"global"),n&&e.withDirection(n.value)}}),e.beforeStarted.pipe(ui(1)).subscribe(()=>{if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let n=this.element.nativeElement.parentElement;for(;n;){if(n.classList.contains("cdk-drag")){e.withParent(t._dragInstances.find(r=>r.element.nativeElement===n)?._dragRef||null);break}n=n.parentElement}})}_handleEvents(e){e.started.subscribe(n=>{this.started.emit({source:this,event:n.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(n=>{this.released.emit({source:this,event:n.event})}),e.ended.subscribe(n=>{this.ended.emit({source:this,distance:n.distance,dropPoint:n.dropPoint,event:n.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(n=>{this.entered.emit({container:n.container.data,item:this,currentIndex:n.currentIndex})}),e.exited.subscribe(n=>{this.exited.emit({container:n.container.data,item:this})}),e.dropped.subscribe(n=>{this.dropped.emit({previousIndex:n.previousIndex,currentIndex:n.currentIndex,previousContainer:n.previousContainer.data,container:n.container.data,isPointerOverContainer:n.isPointerOverContainer,item:this,distance:n.distance,dropPoint:n.dropPoint,event:n.event})})}_assignDefaults(e){const{lockAxis:n,dragStartDelay:r,constrainPosition:o,previewClass:a,boundaryElement:s,draggingDisabled:c,rootElementSelector:l,previewContainer:d}=e;this.disabled=c??!1,this.dragStartDelay=r||0,n&&(this.lockAxis=n),o&&(this.constrainPosition=o),a&&(this.previewClass=a),s&&(this.boundaryElement=s),l&&(this.rootElementSelector=l),d&&(this.previewContainer=d)}_setupHandlesListener(){this._handles.changes.pipe(Vn(this._handles),Ui(e=>{const n=e.filter(r=>r._parentDrag===this).map(r=>r.element);this._selfHandle&&this.rootElementSelector&&n.push(this.element),this._dragRef.withHandles(n)}),fn(e=>Bi(...e.map(n=>n._stateChanges.pipe(Vn(n))))),Tt(this._destroyed)).subscribe(e=>{const n=this._dragRef,r=e.element.nativeElement;e.disabled?n.disableHandle(r):n.enableHandle(r)})}}return t._dragInstances=[],t.\u0275fac=function(e){return new(e||t)(b(Ae),b(FO,12),b(it),b(Ue),b(Fi),b(IO,8),b(_n,8),b(V1),b(Gt),b($1,10),b(H1,12))},t.\u0275dir=Q({type:t,selectors:[["","cdkDrag",""]],contentQueries:function(e,n,r){if(1&e&&(Bt(r,PO,5),Bt(r,OO,5),Bt(r,$1,5)),2&e){let o;xe(o=ye())&&(n._previewTemplate=o.first),xe(o=ye())&&(n._placeholderTemplate=o.first),xe(o=ye())&&(n._handles=o)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,n){2&e&&Xe("cdk-drag-disabled",n.disabled)("cdk-drag-dragging",n._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],standalone:!0,features:[We([{provide:H1,useExisting:t}]),Ei]}),t})(),xte=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({providers:[V1],imports:[Vc]}),t})();function yte(t,i){}class b0{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 NO=(()=>{class t extends Tg{constructor(e,n,r,o,a,s,c,l){super(),this._elementRef=e,this._focusTrapFactory=n,this._config=o,this._interactivityChecker=a,this._ngZone=s,this._overlayRef=c,this._focusMonitor=l,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=d=>{this._portalOutlet.hasAttached();const u=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),u},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=r}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const n=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),n}attachTemplatePortal(e){this._portalOutlet.hasAttached();const n=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),n}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,n){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(n)}_focusByCssSelector(e,n){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,n)}_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(n=>{n||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 n=null;if("string"==typeof e?n=this._document.querySelector(e):"boolean"==typeof e?n=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(n=e),this._config.restoreFocus&&n&&"function"==typeof n.focus){const r=fg(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(n,this._closeInteractionType),this._closeInteractionType=null):n.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,n=fg();return e===n||e.contains(n)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=fg())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Oy),b(it,8),b(b0),b(xg),b(Ue),b(Lh),b(bo))},t.\u0275cmp=je({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(e,n){if(1&e&&at(os,7),2&e){let r;xe(r=ye())&&(n._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,n){2&e&&rt("id",n._config.id||null)("role",n._config.role)("aria-modal",n._config.ariaModal)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledBy)("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null)},features:[pe],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,n){1&e&&H(0,yte,0,0,"ng-template",0)},dependencies:[os],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),t})();class W1{constructor(i,e){this.overlayRef=i,this.config=e,this.closed=new Ce,this.disableClose=e.disableClose,this.backdropClick=i.backdropClick(),this.keydownEvents=i.keydownEvents(),this.outsidePointerEvents=i.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(n=>{27===n.keyCode&&!this.disableClose&&!yr(n)&&(n.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=i.detachments().subscribe(()=>{!1!==e.closeOnOverlayDetachments&&this.close()})}close(i,e){if(this.containerInstance){const n=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),n.next(i),n.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(i="",e=""){return this.overlayRef.updateSize({width:i,height:e}),this}addPanelClass(i){return this.overlayRef.addPanelClass(i),this}removePanelClass(i){return this.overlayRef.removePanelClass(i),this}}const LO=new ae("DialogScrollStrategy"),wte=new ae("DialogData"),Cte=new ae("DefaultDialogConfig"),Dte={provide:LO,deps:[nr],useFactory:function kte(t){return()=>t.scrollStrategies.block()}};let Ste=0,BO=(()=>{class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(e,n,r,o,a,s){this._overlay=e,this._injector=n,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Ce,this._afterOpenedAtThisLevel=new Ce,this._ariaHiddenElements=new Map,this.afterAllClosed=fd(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Vn(void 0))),this._scrollStrategy=s}open(e,n){(n={...this._defaultOptions||new b0,...n}).id=n.id||"cdk-dialog-"+Ste++,n.id&&this.getDialogById(n.id);const o=this._getOverlayConfig(n),a=this._overlay.create(o),s=new W1(a,n),c=this._attachContainer(a,s,n);return s.containerInstance=c,this._attachDialogContent(e,s,c,n),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){G1(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){G1(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),G1(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const n=new Rd({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&&(n.backdropClass=e.backdropClass),n}_attachContainer(e,n,r){const o=r.injector||r.viewContainerRef?.injector,a=[{provide:b0,useValue:r},{provide:W1,useValue:n},{provide:Lh,useValue:e}];let s;r.container?"function"==typeof r.container?s=r.container:(s=r.container.type,a.push(...r.container.providers(r))):s=NO;const c=new Id(s,r.viewContainerRef,en.create({parent:o||this._injector,providers:a}),r.componentFactoryResolver);return e.attach(c).instance}_attachDialogContent(e,n,r,o){if(e instanceof _i){const a=this._createInjector(o,n,r,void 0);let s={$implicit:o.data,dialogRef:n};o.templateContext&&(s={...s,..."function"==typeof o.templateContext?o.templateContext():o.templateContext}),r.attachTemplatePortal(new rs(e,null,s,a))}else{const a=this._createInjector(o,n,r,this._injector),s=r.attachComponentPortal(new Id(e,o.viewContainerRef,a,o.componentFactoryResolver));n.componentInstance=s.instance}}_createInjector(e,n,r,o){const a=e.injector||e.viewContainerRef?.injector,s=[{provide:wte,useValue:e.data},{provide:W1,useValue:n}];return e.providers&&("function"==typeof e.providers?s.push(...e.providers(n,e,r)):s.push(...e.providers)),e.direction&&(!a||!a.get(_n,null,{optional:!0}))&&s.push({provide:_n,useValue:{value:e.direction,change:ze()}}),en.create({parent:a||o,providers:s})}_removeOpenDialog(e,n){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,a)=>{o?a.setAttribute("aria-hidden",o):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),n&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const n=e.parentElement.children;for(let r=n.length-1;r>-1;r--){const o=n[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}}return t.\u0275fac=function(e){return new(e||t)(G(nr),G(en),G(Cte,8),G(t,12),G(Fg),G(LO))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();function G1(t,i){let e=t.length;for(;e--;)i(t[e])}let Ete=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({providers:[BO,Dte],imports:[Uc,Bc,Ly,Bc]}),t})();function Tte(t,i){}class v0{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 q1="mdc-dialog--open",VO="mdc-dialog--opening",HO="mdc-dialog--closing";let Ite=(()=>{class t extends NO{constructor(e,n,r,o,a,s,c,l){super(e,n,r,o,a,s,c,l),this._animationStateChanged=new ke}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Oy),b(it,8),b(v0),b(xg),b(Ue),b(Lh),b(bo))},t.\u0275cmp=je({type:t,selectors:[["ng-component"]],features:[pe],decls:0,vars:0,template:function(e,n){},encapsulation:2}),t})();const UO="--mat-dialog-transition-duration";function zO(t){return null==t?null:"number"==typeof t?t:t.endsWith("ms")?An(t.substring(0,t.length-2)):t.endsWith("s")?1e3*An(t.substring(0,t.length-1)):"0"===t?0:null}let Fte=(()=>{class t extends Ite{constructor(e,n,r,o,a,s,c,l,d){super(e,n,r,o,a,s,c,d),this._animationMode=l,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._openAnimationDuration=this._animationsEnabled?zO(this._config.enterAnimationDuration)??150:0,this._closeAnimationDuration=this._animationsEnabled?zO(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._openAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._closeAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._openAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(UO,`${this._openAnimationDuration}ms`),this._hostElement.classList.add(VO),this._hostElement.classList.add(q1),this._waitForAnimationToComplete(this._openAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(q1),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._closeAnimationDuration}),this._hostElement.classList.remove(q1),this._animationsEnabled?(this._hostElement.style.setProperty(UO,`${this._openAnimationDuration}ms`),this._hostElement.classList.add(HO),this._waitForAnimationToComplete(this._closeAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(VO),this._hostElement.classList.remove(HO)}_waitForAnimationToComplete(e,n){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(n,e)}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Oy),b(it,8),b(v0),b(xg),b(Ue),b(Lh),b(Ri,8),b(bo))},t.\u0275cmp=je({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(e,n){2&e&&(ua("id",n._config.id),rt("aria-modal",n._config.ariaModal)("role",n._config.role)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledBy)("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null),Xe("_mat-animation-noopable",!n._animationsEnabled))},features:[pe],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(e,n){1&e&&(v(0,"div",0)(1,"div",1),H(2,Tte,0,0,"ng-template",2),y()())},dependencies:[os],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}.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__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{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, var(--mdc-shape-medium, 4px))}.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__title,.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__actions,.mat-mdc-dialog-container.mdc-dialog--scrollable.mdc-dialog-scroll-divider-footer .mdc-dialog__actions{border-color:var(--mdc-dialog-with-divider-divider-color, black)}.mat-mdc-dialog-container.mdc-dialog--scrollable .mdc-dialog__title{border-bottom-color:var(--mdc-dialog-with-divider-divider-color, black)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, "Arial");line-height:var(--mdc-dialog-subhead-line-height, 14px);font-size:var(--mdc-dialog-subhead-size, 14px);font-weight:var(--mdc-dialog-subhead-weight, 500);letter-spacing:var(--mdc-dialog-subhead-tracking, 1px)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, black)}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, "Arial");line-height:var(--mdc-dialog-supporting-text-line-height, 14px);font-size:var(--mdc-dialog-supporting-text-size, 14px);font-weight:var(--mdc-dialog-supporting-text-weight, 500);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 1px)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, black)}.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}),t})();class Qc{constructor(i,e,n){this._ref=i,this._containerInstance=n,this._afterOpened=new Ce,this._beforeClosed=new Ce,this._state=0,this.disableClose=e.disableClose,this.id=i.id,n._animationStateChanged.pipe(hi(r=>"opened"===r.state),ui(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(hi(r=>"closed"===r.state),ui(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),i.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Bi(this.backdropClick(),this.keydownEvents().pipe(hi(r=>27===r.keyCode&&!this.disableClose&&!yr(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),$O(this,"keydown"===r.type?"keyboard":"mouse"))})}close(i){this._result=i,this._containerInstance._animationStateChanged.pipe(hi(e=>"closing"===e.state),ui(1)).subscribe(e=>{this._beforeClosed.next(i),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(i){let e=this._ref.config.positionStrategy;return i&&(i.left||i.right)?i.left?e.left(i.left):e.right(i.right):e.centerHorizontally(),i&&(i.top||i.bottom)?i.top?e.top(i.top):e.bottom(i.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(i="",e=""){return this._ref.updateSize(i,e),this}addPanelClass(i){return this._ref.addPanelClass(i),this}removePanelClass(i){return this._ref.removePanelClass(i),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function $O(t,i,e){return t._closeInteractionType=i,t.close(e)}const jO=new ae("MatMdcDialogData"),Rte=new ae("mat-mdc-dialog-default-options"),WO=new ae("mat-mdc-dialog-scroll-strategy"),Pte={provide:WO,deps:[nr],useFactory:function Ote(t){return()=>t.scrollStrategies.block()}};let Nte=0,Lte=(()=>{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,n,r,o,a,s,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 Ce,this._afterOpenedAtThisLevel=new Ce,this._idPrefix="mat-dialog-",this.dialogConfigClass=v0,this.afterAllClosed=fd(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Vn(void 0))),this._scrollStrategy=s,this._dialog=n.get(BO)}open(e,n){let r;(n={...this._defaultOptions||new v0,...n}).id=n.id||`${this._idPrefix}${Nte++}`,n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();const o=this._dialog.open(e,{...n,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:n},{provide:b0,useValue:n}]},templateContext:()=>({dialogRef:r}),providers:(a,s,c)=>(r=new this._dialogRefConstructor(a,n,c),r.updatePosition(n?.position),[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:r}])});return r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const a=this.openDialogs.indexOf(r);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let n=e.length;for(;n--;)e[n].close()}}return t.\u0275fac=function(e){aa()},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})(),hf=(()=>{class t extends Lte{constructor(e,n,r,o,a,s,c,l){super(e,n,o,s,c,a,Qc,Fte,jO,l),this._idPrefix="mat-mdc-dialog-"}}return t.\u0275fac=function(e){return new(e||t)(G(nr),G(en),G(Ju,8),G(Rte,8),G(WO),G(t,12),G(Fg),G(Ri,8))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})(),Bte=0,x0=(()=>{class t{constructor(e,n,r){this.dialogRef=e,this._elementRef=n,this._dialog=r,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=GO(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){const n=e._matDialogClose||e._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(e){$O(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}return t.\u0275fac=function(e){return new(e||t)(b(Qc,8),b(Ae),b(hf))},t.\u0275dir=Q({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,n){1&e&&X("click",function(o){return n._onButtonClick(o)}),2&e&&rt("aria-label",n.ariaLabel||null)("type",n.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Ei]}),t})(),Vte=(()=>{class t{constructor(e,n,r){this._dialogRef=e,this._elementRef=n,this._dialog=r,this.id="mat-mdc-dialog-title-"+Bte++}ngOnInit(){this._dialogRef||(this._dialogRef=GO(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(b(Qc,8),b(Ae),b(hf))},t.\u0275dir=Q({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(e,n){2&e&&ua("id",n.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),X1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"]}),t})(),Q1=(()=>{class t{constructor(){this.align="start"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:4,hostBindings:function(e,n){2&e&&Xe("mat-mdc-dialog-actions-align-center","center"===n.align)("mat-mdc-dialog-actions-align-end","end"===n.align)},inputs:{align:"align"}}),t})();function GO(t,i){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?i.find(n=>n.id===e.id):null}let Hte=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({providers:[hf,Pte],imports:[Ete,Uc,Bc,xt,xt]}),t})(),Ute=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.localEcl="",this.localEcl=n.ecl}onNoClick(){this.dialogRef.close()}eclChanged(e){this.data.ecl=e?.detail[0]}}return t.\u0275fac=function(e){return new(e||t)(b(Qc),b(jO))},t.\u0275cmp=je({type:t,selectors:[["app-ecl-builder-dialog"]],decls:7,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"full-height"],["apiurl","https://dev-is-browser.ihtsdotools.org/snowstorm/snomed-ct","branch","MAIN/2023-01-31","v-on:eclOutput","eclChange",3,"eclstring","eclOutput"],["mat-dialog-actions","",1,"actions"],["mat-flat-button","","color","accent","cdkFocusInitial","",3,"mat-dialog-close"]],template:function(e,n){1&e&&(v(0,"h1",0),M(1,"ECL Builder"),y(),v(2,"div",1)(3,"snomed-ecl-builder",2),X("eclOutput",function(o){return n.eclChanged(o)}),y()(),v(4,"div",3)(5,"button",4),M(6,"Ok"),y()()),2&e&&(k(3),zu("eclstring",n.localEcl),k(2),I("mat-dialog-close",n.data))},dependencies:[xo,x0,Vte,X1,Q1],styles:[".full-height[_ngcontent-%COMP%]{height:78%}.actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"]}),t})();const XO=new ae("CdkAccordion");let zte=0,$te=(()=>{class t{get expanded(){return this._expanded}set expanded(e){e=$e(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=$e(e)}constructor(e,n,r){this.accordion=e,this._changeDetectorRef=n,this._expansionDispatcher=r,this._openCloseAllSubscription=yt.EMPTY,this.closed=new ke,this.opened=new ke,this.destroyed=new ke,this.expandedChange=new ke,this.id="cdk-accordion-child-"+zte++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((o,a)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===a&&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)})}}return t.\u0275fac=function(e){return new(e||t)(b(XO,12),b(Gt),b(my))},t.\u0275dir=Q({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[We([{provide:XO,useValue:void 0}])]}),t})(),jte=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({}),t})();const Wte=["body"];function Gte(t,i){}const qte=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Xte=["mat-expansion-panel-header","*","mat-action-row"];function Qte(t,i){1&t&&Ee(0,"span",2),2&t&&I("@indicatorRotate",q()._getExpandedState())}const Yte=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Kte=["mat-panel-title","mat-panel-description","*"],QO=new ae("MAT_ACCORDION"),YO="225ms cubic-bezier(0.4,0.0,0.2,1)",KO={indicatorRotate:bn("indicatorRotate",[ii("collapsed, void",nt({transform:"rotate(0deg)"})),ii("expanded",nt({transform:"rotate(180deg)"})),ai("expanded <=> collapsed, void => collapsed",fi(YO))]),bodyExpansion:bn("bodyExpansion",[ii("collapsed, void",nt({height:"0px",visibility:"hidden"})),ii("expanded",nt({height:"*",visibility:"visible"})),ai("expanded <=> collapsed, void => collapsed",fi(YO))])},ZO=new ae("MAT_EXPANSION_PANEL");let Zte=(()=>{class t{constructor(e,n){this._template=e,this._expansionPanel=n}}return t.\u0275fac=function(e){return new(e||t)(b(_i),b(ZO,8))},t.\u0275dir=Q({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),Jte=0;const JO=new ae("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let eP=(()=>{class t extends $te{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=$e(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}constructor(e,n,r,o,a,s,c){super(e,n,r),this._viewContainerRef=o,this._animationMode=s,this._hideToggle=!1,this.afterExpand=new ke,this.afterCollapse=new ke,this._inputChanges=new Ce,this._headerId="mat-expansion-panel-header-"+Jte++,this._bodyAnimationDone=new Ce,this.accordion=e,this._document=a,this._bodyAnimationDone.pipe(Lc((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(Vn(null),hi(()=>this.expanded&&!this._portal),ui(1)).subscribe(()=>{this._portal=new rs(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,n=this._body.nativeElement;return e===n||n.contains(e)}return!1}}return t.\u0275fac=function(e){return new(e||t)(b(QO,12),b(Gt),b(my),b(Fi),b(it),b(Ri,8),b(JO,8))},t.\u0275cmp=je({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(e,n,r){if(1&e&&Bt(r,Zte,5),2&e){let o;xe(o=ye())&&(n._lazyContent=o.first)}},viewQuery:function(e,n){if(1&e&&at(Wte,5),2&e){let r;xe(r=ye())&&(n._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,n){2&e&&Xe("mat-expanded",n.expanded)("_mat-animation-noopable","NoopAnimations"===n._animationMode)("mat-expansion-panel-spacing",n._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[We([{provide:QO,useValue:void 0},{provide:ZO,useExisting:t}]),pe,Ei],ngContentSelectors:Xte,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,n){1&e&&(vi(qte),Je(0),v(1,"div",0,1),X("@bodyExpansion.done",function(o){return n._bodyAnimationDone.next(o)}),v(3,"div",2),Je(4,1),H(5,Gte,0,0,"ng-template",3),y(),Je(6,2),y()),2&e&&(k(1),I("@bodyExpansion",n._getExpandedState())("id",n.id),rt("aria-labelledby",n._headerId),k(4),I("cdkPortalOutlet",n._portal))},dependencies:[os],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;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}.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:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.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}.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}.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:[KO.bodyExpansion]},changeDetection:0}),t})();class eie{}const tie=Rh(eie);let iie=(()=>{class t extends tie{constructor(e,n,r,o,a,s,c){super(),this.panel=e,this._element=n,this._focusMonitor=r,this._changeDetectorRef=o,this._animationMode=s,this._parentChangeSubscription=yt.EMPTY;const l=e.accordion?e.accordion._stateChanges.pipe(hi(d=>!(!d.hideToggle&&!d.togglePosition))):zr;this.tabIndex=parseInt(c||"")||0,this._parentChangeSubscription=Bi(e.opened,e.closed,l,e._inputChanges.pipe(hi(d=>!!(d.hideToggle||d.disabled||d.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(hi(()=>e._containsFocus())).subscribe(()=>r.focusVia(n,"program")),a&&(this.expandedHeight=a.expandedHeight,this.collapsedHeight=a.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:yr(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,n){e?this._focusMonitor.focusVia(this._element,e,n):this._element.nativeElement.focus(n)}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)}}return t.\u0275fac=function(e){return new(e||t)(b(eP,1),b(Ae),b(bo),b(Gt),b(JO,8),b(Ri,8),uo("tabindex"))},t.\u0275cmp=je({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,n){1&e&&X("click",function(){return n._toggle()})("keydown",function(o){return n._keydown(o)}),2&e&&(rt("id",n.panel._headerId)("tabindex",n.tabIndex)("aria-controls",n._getPanelId())("aria-expanded",n._isExpanded())("aria-disabled",n.panel.disabled),tr("height",n._getHeaderHeight()),Xe("mat-expanded",n._isExpanded())("mat-expansion-toggle-indicator-after","after"===n._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===n._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===n._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[pe],ngContentSelectors:Kte,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,n){1&e&&(vi(Yte),v(0,"span",0),Je(1),Je(2,1),Je(3,2),y(),H(4,Qte,1,1,"span",1)),2&e&&(Xe("mat-content-hide-toggle",!n._showToggle()),k(4),I("ngIf",n._showToggle()))},dependencies:[hn],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)}.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:not([aria-disabled=true]){cursor:pointer}.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,.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-description{flex-grow:2}.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}.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:[KO.indicatorRotate]},changeDetection:0}),t})(),nie=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t})(),rie=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),oie=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({imports:[ir,xt,jte,Bc]}),t})();function aie(t,i){if(1&t){const e=ct();v(0,"mat-option",2),X("click",function(){return Oe(e),Pe(q().optionClicked())}),M(1),y()}if(2&t){const e=i.$implicit;I("value",e),k(1),It(" ",e.display," ")}}let sie=(()=>{class t{constructor(e){this.terminologyService=e,this.selectionChange=new ke}ngOnInit(){this.terminologyService.expandValueSet(this.binding.ecl,"").subscribe(e=>this.options=e.expansion.contains)}optionClicked(){this.selectionChange.emit(this.selectedOptions)}}return t.\u0275fac=function(e){return new(e||t)(b(yo))},t.\u0275cmp=je({type:t,selectors:[["app-dropdown-binding"]],inputs:{binding:"binding"},outputs:{selectionChange:"selectionChange"},decls:7,vars:5,consts:[[3,"multiple","ngModel","ngModelChange"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"]],template:function(e,n){1&e&&(v(0,"mat-form-field")(1,"mat-label"),M(2),y(),v(3,"mat-select",0),X("ngModelChange",function(o){return n.selectedOptions=o}),H(4,aie,2,2,"mat-option",1),y(),v(5,"mat-hint"),M(6),y()()),2&e&&(k(2),tt(n.binding.title),k(1),I("multiple","Select (Multiple)"==n.binding.type)("ngModel",n.selectedOptions),k(1),I("ngForOf",n.options),k(2),tt(n.binding.note))},dependencies:[go,Ws,wa,nf,Hs,ya,sf,cs],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}"]}),t})();const cie=["input"],lie=["*"];let tP=0;class iP{constructor(i,e){this.source=i,this.value=e}}const die={provide:qn,useExisting:Xt(()=>Y1),multi:!0},nP=new ae("MatRadioGroup"),uie=new ae("mat-radio-default-options",{providedIn:"root",factory:function hie(){return{color:"accent"}}});let fie=(()=>{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(e),this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=$e(e),this._markRadiosForCheck()}constructor(e){this._changeDetector=e,this._value=null,this._name="mat-radio-group-"+tP++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new ke}ngAfterContentInit(){this._isInitialized=!0}_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(n=>{n.checked=this.value===n.value,n.checked&&(this._selected=n)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new iP(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()}}return t.\u0275fac=function(e){return new(e||t)(b(Gt))},t.\u0275dir=Q({type:t,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),t})();class mie{constructor(i){this._elementRef=i}}const pie=Bs(Rh(mie));let gie=(()=>{class t extends pie{get checked(){return this._checked}set checked(e){const n=$e(e);this._checked!==n&&(this._checked=n,n&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!n&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),n&&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(e))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=$e(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,n,r,o,a,s,c,l){super(n),this._changeDetector=r,this._focusMonitor=o,this._radioDispatcher=a,this._providerOverride=c,this._uniqueId="mat-radio-"+ ++tP,this.id=this._uniqueId,this.change=new ke,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._noopAnimations="NoopAnimations"===s,l&&(this.tabIndex=An(l,0))}focus(e,n){n?this._focusMonitor.focusVia(this._inputElement,n,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,n)=>{e!==this.id&&n===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 iP(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(e){e.stopPropagation()}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){const n=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),n&&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 n;if(n=e&&e.selected&&!this.disabled?e.selected===this?this.tabIndex:-1:this.tabIndex,n!==this._previousTabIndex){const r=this._inputElement?.nativeElement;r&&(r.setAttribute("tabindex",n+""),this._previousTabIndex=n)}}}return t.\u0275fac=function(e){aa()},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&at(cie,5),2&e){let r;xe(r=ye())&&(n._inputElement=r.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[pe]}),t})(),Y1=(()=>{class t extends fie{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=vt(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["mat-radio-group"]],contentQueries:function(e,n,r){if(1&e&&Bt(r,K1,5),2&e){let o;xe(o=ye())&&(n._radios=o)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],exportAs:["matRadioGroup"],features:[We([die,{provide:nP,useExisting:t}]),pe]}),t})(),K1=(()=>{class t extends gie{constructor(e,n,r,o,a,s,c,l){super(e,n,r,o,a,s,c,l)}}return t.\u0275fac=function(e){return new(e||t)(b(nP,8),b(Ae),b(Gt),b(bo),b(my),b(Ri,8),b(uie,8),uo("tabindex"))},t.\u0275cmp=je({type:t,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function(e,n){1&e&&X("focus",function(){return n._inputElement.nativeElement.focus()}),2&e&&(rt("id",n.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),Xe("mat-primary","primary"===n.color)("mat-accent","accent"===n.color)("mat-warn","warn"===n.color)("mat-mdc-radio-checked",n.checked)("_mat-animation-noopable",n._noopAnimations))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[pe],ngContentSelectors:lie,decls:13,vars:17,consts:[[1,"mdc-form-field"],["formField",""],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"id","checked","disabled","required","change"],["input",""],[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"],[3,"for"]],template:function(e,n){if(1&e&&(vi(),v(0,"div",0,1)(2,"div",2)(3,"div",3),X("click",function(o){return n._onTouchTargetClick(o)}),y(),v(4,"input",4,5),X("change",function(o){return n._onInputInteraction(o)}),y(),v(6,"div",6),Ee(7,"div",7)(8,"div",8),y(),v(9,"div",9),Ee(10,"div",10),y()(),v(11,"label",11),Je(12),y()()),2&e){const r=Lt(1);Xe("mdc-form-field--align-end","before"==n.labelPosition),k(2),Xe("mdc-radio--disabled",n.disabled),k(2),I("id",n.inputId)("checked",n.checked)("disabled",n.disabled)("required",n.required),rt("name",n.name)("value",n.value)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledby)("aria-describedby",n.ariaDescribedby),k(5),I("matRippleTrigger",r)("matRippleDisabled",n._isRippleDisabled())("matRippleCentered",!0),k(2),I("for",n.inputId)}},dependencies:[vo],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{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{padding:calc((var(--mdc-radio-state-layer-size, 40px) - 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, #000)}.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, #000)}.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, 0.38)}.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, 0.38)}.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, #000)}.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, 0.38)}.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, #6200ee)}.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, #6200ee)}.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, #6200ee)}.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, #6200ee)}.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, #6200ee)}.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, #6200ee)}.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, #6200ee)}.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, #6200ee)}.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, #000)}.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, #000)}.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, #000)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{top:calc(-1 * (var(--mdc-radio-state-layer-size, 40px) - 20px) / 2);left:calc(-1 * (var(--mdc-radio-state-layer-size, 40px) - 20px) / 2);width:var(--mdc-radio-state-layer-size, 40px);height:var(--mdc-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control{top:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);right:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);left:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);width:var(--mdc-radio-state-layer-size, 40px);height:var(--mdc-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{background-color:var(--mat-mdc-radio-ripple-color, transparent)}.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-mdc-radio-checked-ripple-color, transparent)}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element{background-color:var(--mat-mdc-radio-checked-ripple-color, transparent)}.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}),t})(),_ie=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({imports:[xt,ir,Vs,xt]}),t})();function bie(t,i){if(1&t){const e=ct();v(0,"mat-radio-button",3),X("click",function(){const o=Oe(e).$implicit;return Pe(q().optionSelected(o))}),M(1),y()}if(2&t){const e=i.$implicit;I("value",e.code),k(1),It(" ",e.display," ")}}let vie=(()=>{class t{constructor(e){this.terminologyService=e,this.selectionChange=new ke}ngOnInit(){this.terminologyService.expandValueSet(this.binding.ecl,"").subscribe(e=>this.options=e.expansion.contains)}optionSelected(e){this.selectionChange.emit(e)}}return t.\u0275fac=function(e){return new(e||t)(b(yo))},t.\u0275cmp=je({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,"value","click"]],template:function(e,n){1&e&&(v(0,"div"),M(1),y(),v(2,"mat-radio-group",0),H(3,bie,2,2,"mat-radio-button",1),y(),v(4,"div",2),M(5),y()),2&e&&(k(1),tt(n.binding.title),k(2),I("ngForOf",n.options),k(2),tt(n.binding.note))},dependencies:[go,Y1,K1],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}"]}),t})(),xie=(()=>{class t{constructor(e){this.terminologyService=e,this.textChange=new ke,this.text=""}ngOnInit(){}onTextChange(e){this.text=e,this.textChange.emit(e)}}return t.\u0275fac=function(e){return new(e||t)(b(yo))},t.\u0275cmp=je({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,"ngModel","ngModelChange"]],template:function(e,n){1&e&&(v(0,"mat-form-field",0)(1,"mat-label"),M(2),y(),v(3,"textarea",1),X("ngModelChange",function(o){return n.text=o})("ngModelChange",function(o){return n.onTextChange(o)}),y(),v(4,"mat-hint"),M(5),y()()),2&e&&(k(2),tt(n.binding.title),k(1),I("ngModel",n.text),k(2),tt(n.binding.note))},dependencies:[Ws,wa,nf,rf,Us,ya,cs],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}"]}),t})();const yie=["input"],wie=["label"],Cie=["*"],kie=new ae("mat-checkbox-default-options",{providedIn:"root",factory:rP});function rP(){return{color:"accent",clickAction:"check-indeterminate"}}const Die={provide:qn,useExisting:Xt(()=>aP),multi:!0};class Sie{}let Eie=0;const oP=rP(),Tie=Rh(Ls(Bs(ts(class{constructor(t){this._elementRef=t}}))));let Mie=(()=>{class t extends Tie{get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=$e(e)}constructor(e,n,r,o,a,s,c){super(n),this._changeDetectorRef=r,this._ngZone=o,this._animationMode=s,this._options=c,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new ke,this.indeterminateChange=new ke,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||oP,this.color=this.defaultColor=this._options.color||oP.color,this.tabIndex=parseInt(a)||0,this.id=this._uniqueId=`${e}${++Eie}`}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const n=$e(e);n!=this.checked&&(this._checked=n,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const n=$e(e);n!==this.disabled&&(this._disabled=n,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const n=e!=this._indeterminate;this._indeterminate=$e(e),n&&(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 n=this._currentCheckState,r=this._getAnimationTargetElement();if(n!==e&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(n,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,n){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===n)return this._animationClasses.uncheckedToChecked;if(3==n)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===n?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===n?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===n?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const n=this._inputElement;n&&(n.nativeElement.indeterminate=e)}}return t.\u0275fac=function(e){aa()},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&(at(yie,5),at(wie,5),at(vo,5)),2&e){let r;xe(r=ye())&&(n._inputElement=r.first),xe(r=ye())&&(n._labelElement=r.first),xe(r=ye())&&(n.ripple=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["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:[pe]}),t})(),aP=(()=>{class t extends Mie{constructor(e,n,r,o,a,s){super("mat-mdc-checkbox-",e,n,r,o,a,s),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 n=new Sie;return n.source=this,n.checked=e,n}_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()}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Gt),b(Ue),uo("tabindex"),b(Ri,8),b(kie,8))},t.\u0275cmp=je({type:t,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-mdc-checkbox"],hostVars:12,hostBindings:function(e,n){2&e&&(ua("id",n.id),rt("tabindex",null)("aria-label",null)("aria-labelledby",null),Xe("_mat-animation-noopable","NoopAnimations"===n._animationMode)("mdc-checkbox--disabled",n.disabled)("mat-mdc-checkbox-disabled",n.disabled)("mat-mdc-checkbox-checked",n.checked))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[We([Die]),pe],ngContentSelectors:Cie,decls:15,vars:19,consts:[[1,"mdc-form-field",3,"click"],[1,"mdc-checkbox"],["checkbox",""],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","indeterminate","disabled","id","required","tabIndex","blur","click","change"],["input",""],[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"],[3,"for"],["label",""]],template:function(e,n){if(1&e&&(vi(),v(0,"div",0),X("click",function(o){return n._preventBubblingFromLabel(o)}),v(1,"div",1,2)(3,"div",3),X("click",function(){return n._onTouchTargetClick()}),y(),v(4,"input",4,5),X("blur",function(){return n._onBlur()})("click",function(){return n._onInputClick()})("change",function(o){return n._onInteractionEvent(o)}),y(),Ee(6,"div",6),v(7,"div",7),za(),v(8,"svg",8),Ee(9,"path",9),y(),Rl(),Ee(10,"div",10),y(),Ee(11,"div",11),y(),v(12,"label",12,13),Je(14),y()()),2&e){const r=Lt(2);Xe("mdc-form-field--align-end","before"==n.labelPosition),k(4),Xe("mdc-checkbox--selected",n.checked),I("checked",n.checked)("indeterminate",n.indeterminate)("disabled",n.disabled)("id",n.inputId)("required",n.required)("tabIndex",n.tabIndex),rt("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby)("aria-describedby",n.ariaDescribedby)("name",n.name)("value",n.value),k(7),I("matRippleTrigger",r)("matRippleDisabled",n.disableRipple||n.disabled)("matRippleCentered",!0),k(1),I("for",n.inputId)}},dependencies:[vo],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, 48px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);width:var(--mdc-checkbox-state-layer-size, 48px);height:var(--mdc-checkbox-state-layer-size, 48px)}.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}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mat-mdc-checkbox .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, rgba(0, 0, 0, 0.38));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .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, rgba(0, 0, 0, 0.38))}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-checkbox .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, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .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, var(--mdc-theme-secondary, #018786));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .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, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .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, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .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-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .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-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px)}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:not([disabled])~.mdc-checkbox__ripple{opacity:.04;transform:scale(1);transition:opacity 80ms 0 cubic-bezier(0, 0, 0.2, 1),transform 80ms 0 cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:not([disabled]):focus~.mdc-checkbox__ripple{opacity:.16}.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}.mat-mdc-checkbox .mdc-checkbox__native-control:focus:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, black)}.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-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}),t})(),sP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({}),t})(),Fie=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({imports:[xt,Vs,sP,xt,sP]}),t})();function Rie(t,i){if(1&t){const e=ct();v(0,"mat-checkbox",3),X("click",function(){return Oe(e),Pe(q().optionClicked())}),M(1),y()}if(2&t){const e=i.$implicit;zu("formControlName",e.display),k(1),It(" ",e.display," ")}}let Oie=(()=>{class t{constructor(e,n){this.terminologyService=e,this._formBuilder=n,this.selectionChange=new ke,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)}}return t.\u0275fac=function(e){return new(e||t)(b(yo),b(OR))},t.\u0275cmp=je({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,"formControlName","click"]],template:function(e,n){1&e&&(v(0,"form",0),H(1,Rie,2,2,"mat-checkbox",1),v(2,"span",2),M(3),y()()),2&e&&(I("formGroup",n.checkboxes),k(1),I("ngForOf",n.options),k(2),tt(n.binding.note))},dependencies:[go,ef,ya,Xh,js,tf,aP],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}"]}),t})();const Pie=["newPanel"];function Nie(t,i){if(1&t){const e=ct();v(0,"button",12),X("click",function(){Oe(e);const r=q();return Pe(r.showRightContainer=!r.showRightContainer)}),M(1),y()}if(2&t){const e=q();k(1),It(" ",e.showRightContainer?"Close data panel":"Open data panel"," ")}}function Lie(t,i){1&t&&(v(0,"button",36),M(1," Download form "),y()),2&t&&(q(),I("matMenuTriggerFor",Lt(19)))}function Bie(t,i){1&t&&(v(0,"mat-panel-description"),M(1," Click to add new binding "),y())}function Vie(t,i){if(1&t){const e=ct();v(0,"button",37),X("click",function(){let o;return Oe(e),Pe(null==(o=q().newBindingForm.get("title"))?null:o.reset())}),v(1,"mat-icon"),M(2,"close"),y()()}}function Hie(t,i){if(1&t&&(v(0,"mat-option",38),M(1),y()),2&t){const e=i.$implicit;I("value",e),k(1),It(" ",e," ")}}function Uie(t,i){if(1&t){const e=ct();v(0,"button",37),X("click",function(){let o;return Oe(e),Pe(null==(o=q(2).newBindingForm.get("ecl"))?null:o.reset())}),v(1,"mat-icon"),M(2,"close"),y()()}}function zie(t,i){if(1&t){const e=ct();v(0,"mat-form-field",17)(1,"mat-label"),M(2,"ECL Expression"),y(),Ee(3,"input",39),v(4,"a",40),X("click",function(){Oe(e);const r=q();let o;return Pe(r.openEclBuilder(null==(o=r.newBindingForm.get("ecl"))?null:o.value,"ecl"))}),M(5,"ECL Builder"),y(),H(6,Uie,3,0,"button",19),v(7,"mat-error"),M(8),y()()}if(2&t){const e=q();let n;k(6),I("ngIf",null==(n=e.newBindingForm.get("ecl"))?null:n.value),k(2),tt(e.getErrorMessage("ecl"))}}function $ie(t,i){if(1&t&&(v(0,"mat-form-field",17),Ee(1,"app-autocomplete-binding",41),v(2,"mat-error"),M(3),y()()),2&t){const e=q();k(1),I("binding",e.observableBinding),k(2),tt(e.getErrorMessage("ecl"))}}function jie(t,i){if(1&t){const e=ct();v(0,"button",37),X("click",function(){let o;return Oe(e),Pe(null==(o=q(2).newBindingForm.get("note"))?null:o.reset())}),v(1,"mat-icon"),M(2,"close"),y()()}}function Wie(t,i){if(1&t&&(v(0,"mat-form-field",17)(1,"mat-label"),M(2,"Note"),y(),Ee(3,"input",42),H(4,jie,3,0,"button",19),v(5,"mat-error"),M(6),y()()),2&t){const e=q();let n;k(4),I("ngIf",null==(n=e.newBindingForm.get("note"))?null:n.value),k(2),tt(e.getErrorMessage("note"))}}function Gie(t,i){if(1&t){const e=ct();v(0,"button",26),X("click",function(){return Oe(e),Pe(q().addBinding())}),M(1,"Add binding"),y()}}function qie(t,i){if(1&t){const e=ct();v(0,"button",26),X("click",function(){Oe(e);const r=q();return r.addBinding(),Pe(r.clearOutput())}),M(1,"Update binding"),y()}}function Xie(t,i){if(1&t){const e=ct();v(0,"div",43)(1,"p",44),M(2),y(),v(3,"button",45),X("click",function(){return Oe(e),Pe(q().titleEditMode=!0)}),v(4,"mat-icon"),M(5,"edit"),y()()()}if(2&t){const e=q();k(2),tt(e.formTitle)}}const Qie=function(){return{standalone:!0}};function Yie(t,i){if(1&t){const e=ct();v(0,"div",43)(1,"form",46)(2,"mat-form-field")(3,"mat-label"),M(4,"Title"),y(),v(5,"input",47),X("ngModelChange",function(r){return Oe(e),Pe(q().formTitle=r)})("ngModelChange",function(){return Oe(e),Pe(q().refreshFhirQuestionnaire())}),y(),v(6,"button",37),X("click",function(){return Oe(e),Pe(q().formTitle="")}),v(7,"mat-icon"),M(8,"close"),y()()()(),v(9,"button",45),X("click",function(){return Oe(e),Pe(q().titleEditMode=!1)}),v(10,"mat-icon"),M(11,"save"),y()()()}if(2&t){const e=q();k(5),I("ngModel",e.formTitle)("ngModelOptions",Sc(2,Qie))}}function Kie(t,i){if(1&t){const e=ct();v(0,"app-autocomplete-binding",55),X("selectionChange",function(r){Oe(e);const o=q().$implicit;return Pe(q().optionSelected(o.title,r))}),y()}2&t&&I("binding",q().$implicit)}function Zie(t,i){if(1&t){const e=ct();v(0,"app-dropdown-binding",55),X("selectionChange",function(r){Oe(e);const o=q().$implicit;return Pe(q().optionSelected(o.title,r))}),y()}2&t&&I("binding",q().$implicit)}function Jie(t,i){if(1&t){const e=ct();v(0,"app-radios-binding",55),X("selectionChange",function(r){Oe(e);const o=q().$implicit;return Pe(q().optionSelected(o.title,r))}),y()}2&t&&I("binding",q().$implicit)}function ene(t,i){if(1&t&&(v(0,"span",56),M(1),y()),2&t){const e=q().$implicit;k(1),tt(e.title)}}function tne(t,i){if(1&t){const e=ct();v(0,"app-textbox-binding",57),X("textChange",function(r){Oe(e);const o=q().$implicit;return Pe(q().optionSelected(o.title,r))}),y()}2&t&&I("binding",q().$implicit)}function ine(t,i){if(1&t){const e=ct();v(0,"app-checkbox-binding",55),X("selectionChange",function(r){Oe(e);const o=q().$implicit;return Pe(q().optionSelected(o.title,r))}),y()}2&t&&I("binding",q().$implicit)}function nne(t,i){if(1&t&&(v(0,"button",58)(1,"mat-icon"),M(2,"info"),y()()),2&t){const e=q().$implicit;I("matMenuTriggerFor",Lt(12))("disabled","Text box"==e.type)}}function rne(t,i){if(1&t){const e=ct();v(0,"div",48)(1,"div",49)(2,"mat-icon",50),M(3,"drag_indicator"),y(),H(4,Kie,1,1,"app-autocomplete-binding",51),H(5,Zie,1,1,"app-dropdown-binding",51),H(6,Jie,1,1,"app-radios-binding",51),H(7,ene,2,1,"span",52),H(8,tne,1,1,"app-textbox-binding",53),H(9,ine,1,1,"app-checkbox-binding",51),H(10,nne,3,2,"button",54),v(11,"mat-menu",null,2)(13,"span",3),X("click",function(r){return r.stopPropagation()}),v(14,"h4"),M(15,"Terminology binding"),y(),v(16,"pre"),M(17),y()()(),v(18,"button",45),X("click",function(){const o=Oe(e).index;return Pe(q().bindings.splice(o,1))}),v(19,"mat-icon"),M(20,"delete"),y()(),v(21,"button",45),X("click",function(){const o=Oe(e).index;return Pe(q().edit(o))}),v(22,"mat-icon"),M(23,"edit"),y()()()()}if(2&t){const e=i.$implicit;k(4),I("ngIf","Autocomplete"==e.type),k(1),I("ngIf","Select (Single)"==e.type||"Select (Multiple)"==e.type),k(1),I("ngIf","Options"==e.type),k(1),I("ngIf","Title"==e.type),k(1),I("ngIf","Text box"==e.type),k(1),I("ngIf","Checkbox"==e.type),k(1),I("ngIf","Title"!=e.type),k(3),I("disableRipple",!0),k(4),tt(e.ecl)}}function one(t,i){if(1&t){const e=ct();v(0,"div",62)(1,"button",63),X("click",function(){Oe(e);const r=q(2);return Pe(r.saveOutput(r.outputStr))}),Ee(2,"mat-icon",64),y(),v(3,"button",65),X("click",function(){Oe(e);const r=q(2);return Pe(r.copyOutputToClipboard(r.outputStr))}),Ee(4,"mat-icon",66),y()()}}const cP=function(){return{}};function ane(t,i){if(1&t&&(v(0,"div",59),H(1,one,5,0,"div",60),v(2,"textarea",61),M(3," "),y()()),2&t){const e=q();k(1),I("ngIf",e.showRightContainer),k(1),I("options",Sc(4,cP))("lang","json")("innerHTML",e.outputStr,Gm)}}function sne(t,i){if(1&t){const e=ct();v(0,"div",62)(1,"button",63),X("click",function(){Oe(e);const r=q(2);return Pe(r.saveOutput(r.fhirQuestionnaireStr))}),Ee(2,"mat-icon",64),y(),v(3,"button",65),X("click",function(){Oe(e);const r=q(2);return Pe(r.copyOutputToClipboard(r.fhirQuestionnaireStr))}),Ee(4,"mat-icon",66),y()()}}function cne(t,i){if(1&t&&(v(0,"div",59),H(1,sne,5,0,"div",60),v(2,"textarea",61),M(3," "),y()()),2&t){const e=q();k(1),I("ngIf",e.showRightContainer),k(1),I("options",Sc(4,cP))("lang","json")("innerHTML",e.fhirQuestionnaireStr,Gm)}}let lne=(()=>{class t{constructor(e,n,r){this.terminologyService=e,this.clipboard=n,this.dialog=r,this.formTitle="My new form",this.titleEditMode=!1,this.bindings=[],this.output={},this.outputStr="{}",this.fhirQuestionnaire={},this.fhirQuestionnaireStr="{}",this.observableBinding={title:"Question code",type:"Autocomplete",ecl:"<< 363787002 |Observable entity (observable entity)|",value:""},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 Gd({title:new Jr("",[jd.required,jd.maxLength(50)]),type:new Jr("",[jd.required]),ecl:new Jr("",[]),value:new Jr("",[]),note:new Jr("",[jd.maxLength(500)])}),this.indexInEdit=-1,this.panelOpenState=!1,this.maxSelectCount=50,this.maxOptionsCount=10,this.controlTypes=["Autocomplete","Select (Single)","Select (Multiple)","Options","Title","Text box","Checkbox"].sort((o,a)=>o.localeCompare(a)),this.showRightContainer=!1}get stateName(){return this.showRightContainer?"open":"closed"}addBinding(){var e=this;return Yi(function*(){if(e.newBindingForm.markAllAsTouched(),e.newBindingForm.invalid)return;const{title:n,type:r,ecl:o,value:a,note:s}=e.newBindingForm.controls;let c={title:n.value,type:r.value,ecl:o.value,value:a.value,note:s.value},l=!1;o.value?typeof c.type?.indexOf("Select")<"u"&&c.type?.indexOf("Select")>-1?(yield e.getEclPreview(o.value)).expansion.contains.length>e.maxSelectCount&&(l=!0,o.setErrors({selectTooManyResults:!0})):typeof c.type?.indexOf("Options")<"u"&&c.type?.indexOf("Options")>-1&&(yield e.getEclPreview(o.value)).expansion.contains.length>e.maxOptionsCount&&(l=!0,o.setErrors({optionsTooManyResults:!0})):"Title"!=c.type&&"Text box"!=c.type&&(l=!0,o.setErrors({required:!0})),!l&&(e.indexInEdit>-1?e.bindings[e.indexInEdit]=c:e.bindings.push(c),e.newBindingForm.reset(),e.newPanel.close(),e.indexInEdit=-1,e.refreshFhirQuestionnaire())})()}refreshFhirQuestionnaire(){this.fhirQuestionnaire={resourceType:"Questionnaire",title:this.formTitle,status:"draft",item:[]};for(let[e,n]of this.bindings.entries()){if("Title"==n.type&&this.fhirQuestionnaire.item.push({linkId:e+1,type:"display",text:n.title}),"Select (Single)"==n.type||"Options"==n.type){let r={linkId:e+1,type:"choice",extension:[{url:"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-preferredTerminologyServer",valueUrl:"https://snowstorm.ihtsdotools.org/fhir"}],text:n.title,answerValueSet:`http://snomed.info/sct/900000000000207008?fhir_vs=ecl%2F${encodeURIComponent(n.ecl)}`};this.fhirQuestionnaire.item.push(r)}if("Select (Multiple)"==n.type){let r={linkId:e+1,type:"choice",repeats:!0,extension:[{url:"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-preferredTerminologyServer",valueUrl:"https://snowstorm.ihtsdotools.org/fhir"}],text:n.title,answerValueSet:`http://snomed.info/sct/900000000000207008?fhir_vs=ecl%2F${encodeURIComponent(n.ecl)}`};this.fhirQuestionnaire.item.push(r)}if("Autocomplete"==n.type){let r={linkId:e+1,type:"choice",extension:[{url:"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-preferredTerminologyServer",valueUrl:"https://snowstorm.ihtsdotools.org/fhir"},{url:"http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",valueCodeableConcept:{coding:[{system:"http://hl7.org/fhir/questionnaire-item-control",code:"autocomplete",display:"Auto-complete"}]}}],text:n.title,answerValueSet:`http://snomed.info/sct/900000000000207008?fhir_vs=ecl%2F${encodeURIComponent(n.ecl)}`};this.fhirQuestionnaire.item.push(r)}"Text box"==n.type&&this.fhirQuestionnaire.item.push({linkId:e+1,type:"text",text:n.title}),"Checkbox"==n.type&&this.fhirQuestionnaire.item.push({linkId:e+1,type:"boolean",text:n.title,code:[{system:"http://snomed.info/sct",code:n.ecl.code,display:n.ecl.display}]})}this.fhirQuestionnaireStr=JSON.stringify(this.fhirQuestionnaire,null,2)}getEclPreview(e){var n=this;return Yi(function*(){return Wo((yield n.terminologyService.expandValueSet(e,"")).pipe(Ye(o=>o)))})()}edit(e){this.indexInEdit=e;const n=this.bindings[e];this.newBindingForm.setValue({title:n.title,type:n.type,ecl:n.ecl,value:n.value,note:n.note}),this.newPanel.open()}onDrop(e){B1(this.bindings,e.previousIndex,e.currentIndex)}getErrors(e){const n=this.newBindingForm.get(e);return n?n.errors:null}getErrorMessage(e){const n=this.getErrors(e);if(n){if(n.required)return"This field is required";if(n.maxlength)return`This field must be less than ${n.maxlength.requiredLength} characters`;if(n.selectTooManyResults)return`Too many results (Max = ${this.maxSelectCount})`;if(n.optionsTooManyResults)return`Too many results (Max = ${this.maxOptionsCount})`}return null}optionSelected(e,n){this.output[e]=n,this.outputStr=JSON.stringify(this.output,null,2)}loadExample1(){this.formTitle=this.example1.title,this.bindings=this.example1.bindings,this.refreshFhirQuestionnaire()}cancelEdit(){this.newBindingForm.reset(),this.newPanel.close(),this.indexInEdit=-1}clear(){this.bindings=[],this.clearOutput(),this.newBindingForm.reset()}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,qd.saveAs)(e,`${this.formTitle}.json`)}saveOutput(e){var n=new Blob([e],{type:"text/plain;charset=utf-8"});(0,qd.saveAs)(n,`${this.formTitle}-fhir.json`)}copyOutputToClipboard(e){this.clipboard.copy(e)}uploadFile(e){if(1!==e.target.files.length)console.error("No file selected");else{const n=new FileReader;n.onloadend=r=>{if(n.result){const o=JSON.parse(n.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()}},n.readAsText(e.target.files[0])}}openEclBuilder(e,n){this.dialog.open(Ute,{data:{ecl:e},width:"80%",height:"80%"}).afterClosed().subscribe(o=>{if(o){const a=this.newBindingForm.get(n);a&&a.setValue(o.ecl)}})}}return t.\u0275fac=function(e){return new(e||t)(b(yo),b(oO),b(hf))},t.\u0275cmp=je({type:t,selectors:[["app-bindings-sandbox"]],viewQuery:function(e,n){if(1&e&&at(Pie,5),2&e){let r;xe(r=ye())&&(n.newPanel=r.first)}},decls:75,vars:22,consts:[["id","main-panel"],["mat-icon-button","","color","primary",3,"matMenuTriggerFor"],["substancePopoverMenu","matMenu"],["mat-menu-item","",3,"disableRipple","click"],[1,"action-button"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],["hidden","","type","file","id","file",3,"change"],["fileInput",""],["mat-flat-button","","color","accent",3,"matMenuTriggerFor",4,"ngIf"],[1,"wide-menu"],["demosMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-flat-button","","color","accent",3,"click"],[1,"editPanel",3,"opened","closed"],["newPanel",""],[4,"ngIf"],[1,"row",3,"formGroup"],[1,"input-field"],["matInput","","type","text","formControlName","title","placeholder","Enter title..."],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],["formControlName","type"],[3,"value",4,"ngFor","ngForOf"],["class","input-field",4,"ngIf"],[1,"row"],[1,"grow"],["mat-flat-button","","color","primary",3,"click",4,"ngIf"],["mat-flat-button","","color","primary",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","FHIR Questionnaire"],["mat-flat-button","","color","accent",3,"matMenuTriggerFor"],["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"],["matInput","","type","text","formControlName","note","placeholder","Enter a description..."],[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,"ngModel","ngModelOptions","ngModelChange"],["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"],[1,"grow",3,"binding","selectionChange"],[1,"title","grow"],[1,"grow",3,"binding","textChange"],["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(e,n){if(1&e){const r=ct();v(0,"div",0)(1,"h3"),M(2,"Terminology Bindings Sandbox "),v(3,"button",1)(4,"mat-icon"),M(5,"info"),y()(),v(6,"mat-menu",null,2)(8,"span",3),X("click",function(a){return a.stopPropagation()}),v(9,"h4"),M(10,"Terminology Bindings Sandbox"),y(),v(11,"p"),M(12,"This is a sandbox for creating terminology bindings, designed to support education activities."),y()()()(),v(13,"div",4),H(14,Nie,2,1,"button",5),v(15,"input",6,7),X("change",function(a){return n.uploadFile(a)}),y(),H(17,Lie,2,1,"button",8),v(18,"mat-menu",9,10)(20,"button",11),X("click",function(){return n.saveForm()}),M(21,"Download"),y(),v(22,"button",11),X("click",function(){return n.saveOutput(n.fhirQuestionnaireStr)}),M(23,"Download as FHIR Questionnaire"),y()(),v(24,"button",12),X("click",function(){return Oe(r),Pe(Lt(16).click())}),M(25,"Upload form"),y(),v(26,"button",12),X("click",function(){return n.loadExample1()}),M(27,"Example"),y(),v(28,"button",12),X("click",function(){return n.clear()}),M(29,"Clear"),y()(),v(30,"mat-expansion-panel",13,14),X("opened",function(){return n.panelOpenState=!0})("closed",function(){return n.panelOpenState=!1}),v(32,"mat-expansion-panel-header")(33,"mat-panel-title")(34,"h4"),M(35,"New binding:"),y()(),H(36,Bie,2,0,"mat-panel-description",15),y(),v(37,"div")(38,"form",16)(39,"mat-form-field",17)(40,"mat-label"),M(41,"Title"),y(),Ee(42,"input",18),H(43,Vie,3,0,"button",19),v(44,"mat-error"),M(45),y()(),v(46,"mat-form-field",17)(47,"mat-label"),M(48,"Type"),y(),v(49,"mat-select",20),H(50,Hie,2,2,"mat-option",21),y(),v(51,"mat-error"),M(52),y()(),H(53,zie,9,2,"mat-form-field",22),H(54,$ie,4,2,"mat-form-field",22),H(55,Wie,7,2,"mat-form-field",22),y(),Ee(56,"br"),v(57,"div",23),Ee(58,"span",24),H(59,Gie,2,0,"button",25),H(60,qie,2,0,"button",25),v(61,"button",26),X("click",function(){return n.cancelEdit()}),M(62,"Cancel"),y()()()(),H(63,Xie,6,1,"div",27),H(64,Yie,12,3,"div",27),v(65,"div",28)(66,"div",29)(67,"div",30),X("cdkDropListDropped",function(a){return n.onDrop(a)}),H(68,rne,24,9,"div",31),y()(),v(69,"div",29)(70,"mat-tab-group",32)(71,"mat-tab",33),H(72,ane,4,5,"div",34),y(),v(73,"mat-tab",35),H(74,cne,4,5,"div",34),y()()()()()}if(2&e){const r=Lt(7);let o;k(3),I("matMenuTriggerFor",r),k(5),I("disableRipple",!0),k(6),I("ngIf",n.bindings.length),k(3),I("ngIf",n.bindings.length),k(19),I("ngIf",!n.panelOpenState),k(2),I("formGroup",n.newBindingForm),k(5),I("ngIf",null==(o=n.newBindingForm.get("title"))?null:o.value),k(2),tt(n.getErrorMessage("title")),k(5),I("ngForOf",n.controlTypes),k(2),tt(n.getErrorMessage("type")),k(1),I("ngIf","Title"!=n.newBindingForm.controls.type.value&&"Text box"!=n.newBindingForm.controls.type.value&&"Checkbox"!=n.newBindingForm.controls.type.value),k(1),I("ngIf","Checkbox"==n.newBindingForm.controls.type.value),k(1),I("ngIf","Title"!=n.newBindingForm.controls.type.value),k(4),I("ngIf",-1==n.indexInEdit),k(1),I("ngIf",n.indexInEdit>-1),k(3),I("ngIf",!n.titleEditMode),k(1),I("ngIf",n.titleEditMode),k(2),I("@growShrink",n.stateName),k(2),I("ngForOf",n.bindings),k(1),I("@openClose",n.stateName),k(3),I("ngIf",n.bindings.length>0),k(2),I("ngIf",n.bindings.length>0)}},dependencies:[go,hn,F1,z1,j1,RO,xo,is,ba,$c,va,jc,Ws,wa,NR,BR,Hs,rf,ef,Us,ya,Xh,js,tf,f0,af,sf,cs,qc,cf,eP,iie,rie,nie,h0,sie,vie,xie,Oie],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}.input-field[_ngcontent-%COMP%]{width:calc(50% - 5px)}mat-hint[_ngcontent-%COMP%], mat-error[_ngcontent-%COMP%]{font-size:12px}.editPanel[_ngcontent-%COMP%]{width:calc(50% - 5px);margin:5px 5px 25px;padding:10px;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}"],data:{animation:[bn("openClose",[ii("open",nt({opacity:1,width:"50%"})),ii("closed",nt({opacity:0,width:"0"})),ai("open <=> closed",[fi("0.5s")])]),bn("growShrink",[ii("open",nt({width:"50%"})),ii("closed",nt({width:"100%"})),ai("open <=> closed",[fi("0.5s")])])]}}),t})(),dne=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=je({type:t,selectors:[["app-prescription-main"]],decls:2,vars:0,template:function(e,n){1&e&&(v(0,"p"),M(1,"prescription-main works!, no?"),y())}}),t})();const une=["mat-sort-header",""];function hne(t,i){if(1&t){const e=ct();v(0,"div",3),X("@arrowPosition.start",function(){return Oe(e),Pe(q()._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){return Oe(e),Pe(q()._disableViewStateAnimation=!1)}),Ee(1,"div",4),v(2,"div",5),Ee(3,"div",6)(4,"div",7)(5,"div",8),y()()}if(2&t){const e=q();I("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),k(2),I("@indicator",e._getArrowDirectionState()),k(1),I("@leftPointer",e._getArrowDirectionState()),k(1),I("@rightPointer",e._getArrowDirectionState())}}const fne=["*"],lP=new ae("MAT_SORT_DEFAULT_OPTIONS"),mne=qq(ts(class{}));let Yc=(()=>{class t extends mne{get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=$e(e)}constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new Ce,this.start="asc",this._direction="",this.sortChange=new ke}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 pne(t,i){let e=["asc","desc"];return"desc"==t&&e.reverse(),i||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()}}return t.\u0275fac=function(e){return new(e||t)(b(lP,8))},t.\u0275dir=Q({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[pe,Ei]}),t})();const Gs=jq.ENTERING+" "+$q.STANDARD_CURVE,Qd={indicator:bn("indicator",[ii("active-asc, asc",nt({transform:"translateY(0px)"})),ii("active-desc, desc",nt({transform:"translateY(10px)"})),ai("active-asc <=> active-desc",fi(Gs))]),leftPointer:bn("leftPointer",[ii("active-asc, asc",nt({transform:"rotate(-45deg)"})),ii("active-desc, desc",nt({transform:"rotate(45deg)"})),ai("active-asc <=> active-desc",fi(Gs))]),rightPointer:bn("rightPointer",[ii("active-asc, asc",nt({transform:"rotate(45deg)"})),ii("active-desc, desc",nt({transform:"rotate(-45deg)"})),ai("active-asc <=> active-desc",fi(Gs))]),arrowOpacity:bn("arrowOpacity",[ii("desc-to-active, asc-to-active, active",nt({opacity:1})),ii("desc-to-hint, asc-to-hint, hint",nt({opacity:.54})),ii("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",nt({opacity:0})),ai("* => asc, * => desc, * => active, * => hint, * => void",fi("0ms")),ai("* <=> *",fi(Gs))]),arrowPosition:bn("arrowPosition",[ai("* => desc-to-hint, * => desc-to-active",fi(Gs,Dg([nt({transform:"translateY(-25%)"}),nt({transform:"translateY(0)"})]))),ai("* => hint-to-desc, * => active-to-desc",fi(Gs,Dg([nt({transform:"translateY(0)"}),nt({transform:"translateY(25%)"})]))),ai("* => asc-to-hint, * => asc-to-active",fi(Gs,Dg([nt({transform:"translateY(25%)"}),nt({transform:"translateY(0)"})]))),ai("* => hint-to-asc, * => active-to-asc",fi(Gs,Dg([nt({transform:"translateY(0)"}),nt({transform:"translateY(-25%)"})]))),ii("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",nt({transform:"translateY(0)"})),ii("hint-to-desc, active-to-desc, desc",nt({transform:"translateY(-25%)"})),ii("hint-to-asc, active-to-asc, asc",nt({transform:"translateY(25%)"}))]),allowChildren:bn("allowChildren",[ai("* <=> *",[Eg("@*",Sg(),{optional:!0})])])};let y0=(()=>{class t{constructor(){this.changes=new Ce}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const _ne={provide:y0,deps:[[new na,new bc,y0]],useFactory:function gne(t){return t||new y0}},bne=ts(class{});let dP=(()=>{class t extends bne{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=$e(e)}constructor(e,n,r,o,a,s,c,l){super(),this._intl=e,this._changeDetectorRef=n,this._sort=r,this._columnDef=o,this._focusMonitor=a,this._elementRef=s,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 n=!!e;n!==this._showIndicatorHint&&(this._setIndicatorHintVisible(n),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=Bi(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()})}}return t.\u0275fac=function(e){return new(e||t)(b(y0),b(Gt),b(Yc,8),b("MAT_SORT_HEADER_COLUMN_DEF",8),b(bo),b(Ae),b(CI,8),b(lP,8))},t.\u0275cmp=je({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,n){1&e&&X("click",function(){return n._handleClick()})("keydown",function(o){return n._handleKeydown(o)})("mouseenter",function(){return n._setIndicatorHintVisible(!0)})("mouseleave",function(){return n._setIndicatorHintVisible(!1)}),2&e&&(rt("aria-sort",n._getAriaSortAttribute()),Xe("mat-sort-header-disabled",n._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[pe],attrs:une,ngContentSelectors:fne,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(e,n){1&e&&(vi(),v(0,"div",0)(1,"div",1),Je(2),y(),H(3,hne,6,6,"div",2),y()),2&e&&(Xe("mat-sort-header-sorted",n._isSorted())("mat-sort-header-position-before","before"===n.arrowPosition),rt("tabindex",n._isDisabled()?null:0)("role",n._isDisabled()?null:"button"),k(3),I("ngIf",n._renderArrow()))},dependencies:[hn],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:[Qd.indicator,Qd.leftPointer,Qd.rightPointer,Qd.arrowOpacity,Qd.arrowPosition,Qd.allowChildren]},changeDetection:0}),t})(),vne=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({providers:[_ne],imports:[ir,xt]}),t})(),xne=(()=>{class t{saveItem(e,n){localStorage.setItem(e,n)}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}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ff=(()=>{class t{constructor(e,n){this.http=e,this.storageService=n,this.baseUrlSubject=new Bn("https://hapi.fhir.org/baseR4"),this.baseUrl$=this.baseUrlSubject.asObservable(),this.userTagSubject=new Bn(""),this.userTag$=this.userTagSubject.asObservable(),this.initialize()}initialize(){if(this.storageService.isLocalStorageSupported()){const e=this.storageService.getItem("baseUrl");e&&this.baseUrlSubject.next(e);const n=this.storageService.getItem("userTag");n&&this.userTagSubject.next(n)}}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,n){return this.http.post(`${this.baseUrlSubject.value}/Questionnaire/${e}/$meta-add`,{resourceType:"Parameters",parameter:[{name:"meta",valueMeta:{tag:[{system:"http://snomed.org/tags",code:n}]}}]})}deleteQuestionnaire(e){return this.http.delete(`${this.baseUrlSubject.value}/Questionnaire/${e}`)}updateOrCreateQuestionnaire(e,n){return e.id?this.http.put(`${this.baseUrlSubject.value}/Questionnaire?_id=${e.id}&_tag=${n}`,e).pipe(mn(o=>404===o.status?this.postQuestionnaire(e):Fc(o))):this.postQuestionnaire(e)}}return t.\u0275fac=function(e){return new(e||t)(G(Ps),G(xne))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),uP=(()=>{class t{constructor(e,n){this.http=e,this.fhirService=n}generateRootQuestionnaire(e,n){var r=this;return Yi(function*(){try{let a=yield Wo(r.http.get("assets/questionnaires/root-questionnaire-template.json"));a.title=e;let s=0,c=r.fhirService.getBaseUrl();return r.fhirService.getUserTag(),n.forEach(d=>{s++,d.url=c+"/Questionnaire/"+d.id,a.item.push({linkId:s.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:s.toString()+".1",text:"Unable to resolve sub-questionnaire",type:"display"}]})}),a}catch(o){throw console.error("Error generating root questionnaire:",o),o}})()}checkForAssembleRoot(e){return!!(e&&e.extension&&Array.isArray(e.extension))&&e.extension.some(n=>"assemble-root"===n.valueCode)}assembleQuestionnaire(e){var n=this;return Yi(function*(){if(e=JSON.parse(JSON.stringify(e)),!n.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 a of o.extension)if("http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire"===a.url){let s=yield n.getQuestionnaireFromUrl(a.valueCanonical);s&&(r.item=s.item),r.extension||(r.extension=[]),r.extension.push({url:"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assembledFrom",valueCanonical:a.valueCanonical})}}return e.extension=e.extension.filter(r=>"assemble-root"!==r.valueCode),e})()}getQuestionnaireFromUrl(e){var n=this;return Yi(function*(){try{return yield Wo(n.http.get(e))}catch(r){return console.error("Error fetching questionnaire:",r),null}})()}}return t.\u0275fac=function(e){return new(e||t)(G(Ps),G(ff))},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function yne(t,i){1&t&&(v(0,"th",14),M(1," Title "),y())}function wne(t,i){if(1&t&&(v(0,"td",15),M(1),y()),2&t){const e=i.$implicit;k(1),It(" ",e.title," ")}}function Cne(t,i){1&t&&(v(0,"th",14),M(1," Status "),y())}const kne=function(t){return["status-pill",t]};function Dne(t,i){if(1&t&&(v(0,"td",15)(1,"span",16),M(2),mp(3,"uppercase"),y()()),2&t){const e=i.$implicit;k(1),I("ngClass",Rv(4,kne,e.status)),k(1),tt(Ov(3,2,e.status))}}function Sne(t,i){1&t&&(v(0,"th",14),M(1," Version "),y())}function Ene(t,i){if(1&t&&(v(0,"td",15),M(1),y()),2&t){const e=i.$implicit;k(1),It(" ",e.meta.versionId," ")}}function Tne(t,i){1&t&&(v(0,"th",14),M(1," Type "),y())}const Mne=function(){return["status-pill","active"]};function Ane(t,i){1&t&&(v(0,"span",16),M(1,"QUESTIONNAIRE"),y()),2&t&&I("ngClass",Sc(1,Mne))}const Ine=function(){return["status-pill","draft"]};function Fne(t,i){1&t&&(v(0,"span",16),M(1,"MODULAR ROOT"),y()),2&t&&I("ngClass",Sc(1,Ine))}function Rne(t,i){if(1&t&&(v(0,"td",15),H(1,Ane,2,2,"span",17),H(2,Fne,2,2,"span",17),y()),2&t){const e=i.$implicit,n=q();k(1),I("ngIf",!n.isRootQuestionnaire(e)),k(1),I("ngIf",n.isRootQuestionnaire(e))}}function One(t,i){1&t&&(v(0,"th",18),M(1," Actions "),y())}function Pne(t,i){if(1&t){const e=ct();v(0,"button",26),X("click",function(){Oe(e);const r=q().$implicit;return Pe(q().assemble(r))}),v(1,"mat-icon"),M(2,"build"),y()()}}function Nne(t,i){if(1&t){const e=ct();v(0,"button",27),X("click",function(){Oe(e);const r=q().$implicit;return Pe(q().validate(r))}),v(1,"mat-icon"),M(2,"done"),y()()}}function Lne(t,i){if(1&t){const e=ct();v(0,"button",28),X("click",function(){Oe(e);const r=q().$implicit;return Pe(q().preview(r))}),v(1,"mat-icon"),M(2,"visibility"),y()()}}function Bne(t,i){if(1&t){const e=ct();v(0,"button",29),X("click",function(){Oe(e);const r=q().$implicit;return Pe(q().openInNewTab(r))}),v(1,"mat-icon"),M(2,"open_in_new"),y()()}}function Vne(t,i){if(1&t){const e=ct();v(0,"td",15),H(1,Pne,3,0,"button",19),H(2,Nne,3,0,"button",20),H(3,Lne,3,0,"button",21),H(4,Bne,3,0,"button",22),v(5,"button",23),X("click",function(){const o=Oe(e).$implicit;return Pe(q().saveQuestionnaire(o))}),v(6,"mat-icon"),M(7,"cloud_download"),y()(),v(8,"button",24),X("click",function(){const o=Oe(e).$implicit;return Pe(q().editQuestionnaire(o))}),v(9,"mat-icon"),M(10,"edit"),y()(),v(11,"button",25),X("click",function(){const o=Oe(e).$implicit;return Pe(q().deleteQuestionnaire(o))}),v(12,"mat-icon"),M(13,"delete"),y()()()}if(2&t){const e=i.$implicit,n=q();k(1),I("ngIf",n.isRootQuestionnaire(e)),k(1),I("ngIf",n.config.validate&&!n.isRootQuestionnaire(e)),k(1),I("ngIf",n.config.preview&&!n.isRootQuestionnaire(e)),k(1),I("ngIf",n.config.preview)}}function Hne(t,i){1&t&&Ee(0,"tr",30)}function Une(t,i){1&t&&Ee(0,"tr",31)}function zne(t,i){1&t&&(v(0,"p")(1,"i"),M(2,"No questionnaires found"),y()())}function $ne(t,i){1&t&&Ee(0,"mat-spinner",32)}let hP=(()=>{class t{constructor(e,n,r){this.fhirService=e,this.questionnaireService=n,this._snackBar=r,this.questionnaireSelected=new ke,this.validateQuestionnaire=new ke,this.previewQuestionnaire=new ke,this.config={},this.displayedColumns=["title","status","version","type","actions"],this.dataSource=new qh,this.questionnaires=[],this.loading=!1,this.selectedFhirServer="",this.selectedUserTag="",this.notFound=!1,this.baseUrlChanged=new Ce,this.userTagChanged=new Ce}ngOnInit(){Ic([this.fhirService.baseUrl$.pipe(Ed(1e3),Lc()),this.fhirService.userTag$.pipe(Ed(1e3),Lc())]).subscribe(([e,n])=>{(this.selectedFhirServer!==e||this.selectedUserTag!==n)&&(this.selectedFhirServer=e,this.selectedUserTag=n,this.selectedUserTag&&this.selectedFhirServer&&this.loadQuestionnaires())})}ngOnChanges(e){}ngAfterViewInit(){this.dataSource.sort=this.sort,this.dataSource.sortingDataAccessor=(e,n)=>{switch(n){case"type":return this.isRootQuestionnaire(e)?"Modular root":"Questionnaire";case"version":return e.meta&&e.meta.versionId?e.meta.versionId:"";default:return e[n]}},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(n=>n.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 n=this.questionnaires.findIndex(r=>r.id===e.id);-1!==n?(this.questionnaires[n]=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(Pr,{duration:5e3,data:"Deleting Questionnaire...",panelClass:["green-snackbar"]}),this.fhirService.deleteQuestionnaire(e.id).subscribe(()=>{this.questionnaires=this.questionnaires.filter(n=>n.id!==e.id),this.dataSource.data=this.questionnaires,this._snackBar.openFromComponent(Pr,{duration:5e3,data:"Questionnaire deleted successfully",panelClass:["green-snackbar"]})})}selectQuestionnaire(e){this.questionnaireSelected.emit(e)}validate(e){this.validateQuestionnaire.emit(e)}preview(e){this.previewQuestionnaire.emit(e)}openInNewTab(e){window.open(this.selectedFhirServer+"/Questionnaire/"+e.id,"_blank")}saveQuestionnaire(e){var n=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});qd(n,`${e.title}-v${e.meta.versionId}.json`)}isRootQuestionnaire(e){return!(!e.extension||!Array.isArray(e.extension))&&e.extension.some(n=>"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assemble-expectation"===n.url&&"assemble-root"===n.valueCode)}assemble(e){this.questionnaireService.assembleQuestionnaire(e).then(n=>{n.title=e.title+" (assembled)",this.previewQuestionnaire.emit(n)}).catch(n=>{console.error("Error assembling questionnaire:",n)})}editQuestionnaire(e){this.saveQuestionnaire(e),window.open("https://lhcformbuilder.nlm.nih.gov/","_blank")}}return t.\u0275fac=function(e){return new(e||t)(b(ff),b(uP),b(Od))},t.\u0275cmp=je({type:t,selectors:[["app-list-questionnaires"]],viewQuery:function(e,n){if(1&e&&at(Yc,5),2&e){let r;xe(r=ye())&&(n.sort=r.first)}},inputs:{config:"config"},outputs:{questionnaireSelected:"questionnaireSelected",validateQuestionnaire:"validateQuestionnaire",previewQuestionnaire:"previewQuestionnaire"},features:[Ei],decls:21,vars:5,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"],[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","class","action-button","matTooltip","Assemble Questionnaire",3,"click",4,"ngIf"],["mat-icon-button","","color","accent","class","action-button","matTooltip","Validate 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","matTooltip","Edit Questionnaire",1,"action-button",3,"click"],["mat-icon-button","","color","accent","matTooltip","Delete Questionnaire",1,"action-button",3,"click"],["mat-icon-button","","color","accent","matTooltip","Assemble Questionnaire",1,"action-button",3,"click"],["mat-icon-button","","color","accent","matTooltip","Validate 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-header-row",""],["mat-row",""],["diameter","35",1,"loading-spinner"]],template:function(e,n){1&e&&(v(0,"div",0)(1,"table",1),Ai(2,2),H(3,yne,2,0,"th",3),H(4,wne,2,1,"td",4),Ii(),Ai(5,5),H(6,Cne,2,0,"th",3),H(7,Dne,4,6,"td",4),Ii(),Ai(8,6),H(9,Sne,2,0,"th",3),H(10,Ene,2,1,"td",4),Ii(),Ai(11,7),H(12,Tne,2,0,"th",3),H(13,Rne,3,2,"td",4),Ii(),Ai(14,8),H(15,One,2,0,"th",9),H(16,Vne,14,4,"td",4),Ii(),H(17,Hne,1,0,"tr",10),H(18,Une,1,0,"tr",11),y(),H(19,zne,3,0,"p",12),H(20,$ne,1,0,"mat-spinner",13),y()),2&e&&(k(1),I("dataSource",n.dataSource),k(16),I("matHeaderRowDef",n.displayedColumns),k(1),I("matRowDefColumns",n.displayedColumns),k(1),I("ngIf",n.notFound&&!n.questionnaires.length),k(1),I("ngIf",n.loading))},dependencies:[Es,hn,is,ba,Pd,zh,Hd,$h,Ud,Vd,jh,zd,$d,Wh,Gh,cf,Yc,dP,oM],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}"]}),t})(),jne=(()=>{class t{constructor(e){this.dialogRef=e,this.listConfig={select:!0}}selectAndDownload(e){this.dialogRef.close(e)}}return t.\u0275fac=function(e){return new(e||t)(b(Qc))},t.\u0275cmp=je({type:t,selectors:[["app-load-questionnaire-modal"]],decls:7,vars:1,consts:[[3,"config","questionnaireSelected"],["align","end"],["mat-flat-button","","color","accent","mat-dialog-close",""]],template:function(e,n){1&e&&(v(0,"mat-dialog-content")(1,"h2"),M(2,"Available Questionnaires"),y(),v(3,"app-list-questionnaires",0),X("questionnaireSelected",function(o){return n.selectAndDownload(o)}),y()(),v(4,"mat-dialog-actions",1)(5,"button",2),M(6,"Close"),y()()),2&e&&(k(3),I("config",n.listConfig))},dependencies:[xo,x0,X1,Q1,hP]}),t})();const Wne=["settingsForm"];function Gne(t,i){1&t&&(v(0,"mat-error"),M(1,"Base URL is required"),y())}function qne(t,i){1&t&&(v(0,"mat-error"),M(1,"User Tag is required and must be at least 3 characters"),y())}let Z1=(()=>{class t{constructor(e,n){this.fhirService=e,this.dialogRef=n,this.baseUrl="",this.userTag=""}ngAfterViewInit(){this.triggerValidation()}triggerValidation(){Object.keys(this.settingsForm.controls).forEach(e=>{const n=this.settingsForm.control.get(e);n?.markAsTouched({onlySelf:!0}),n?.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"))}}return t.\u0275fac=function(e){return new(e||t)(b(ff),b(Qc))},t.\u0275cmp=je({type:t,selectors:[["app-fhir-server-settings-modal"]],viewQuery:function(e,n){if(1&e&&at(Wne,5),2&e){let r;xe(r=ye())&&(n.settingsForm=r.first)}},decls:29,vars:5,consts:[[1,"form-container"],[1,"warning"],[3,"ngSubmit"],["settingsForm","ngForm"],["matInput","","name","baseUrl","required","",3,"ngModel","ngModelChange"],["baseUrlField","ngModel"],[4,"ngIf"],["matInput","","name","userTag","required","","minlength","3",3,"ngModel","ngModelChange"],["userTagField","ngModel"],[1,"button-container"],["mat-flat-button","","color","accent","type","submit",3,"disabled"],["mat-flat-button","","color","primary","mat-dialog-close",""]],template:function(e,n){if(1&e&&(v(0,"div",0)(1,"h2"),M(2,"FHIR Server Connection"),y(),v(3,"p"),M(4,"Manager mode allows you to store questionnares in a FHIR Server. Enter the FHIR server URL and your "),v(5,"b"),M(6,"User Tag"),y(),M(7,", this value will be used to identify your questionnaires."),y(),v(8,"p",1),M(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."),y(),v(10,"form",2,3),X("ngSubmit",function(){return n.updateSettings()}),v(12,"mat-form-field")(13,"mat-label"),M(14,"Base URL of the FHIR Server"),y(),v(15,"input",4,5),X("ngModelChange",function(o){return n.baseUrl=o}),y(),H(17,Gne,2,0,"mat-error",6),y(),v(18,"mat-form-field")(19,"mat-label"),M(20,"User Tag"),y(),v(21,"input",7,8),X("ngModelChange",function(o){return n.userTag=o}),y(),H(23,qne,2,0,"mat-error",6),y(),v(24,"div",9)(25,"button",10),M(26,"Open FHIR Repository"),y(),v(27,"button",11),M(28,"Close"),y()()()()),2&e){const r=Lt(11),o=Lt(16),a=Lt(22);k(15),I("ngModel",n.baseUrl),k(2),I("ngIf",o.invalid&&o.touched),k(4),I("ngModel",n.userTag),k(2),I("ngIf",a.invalid&&a.touched),k(2),I("disabled",!r.valid)}},dependencies:[hn,xo,Ws,wa,NR,rf,ef,Us,ya,Xh,a0,M1,cs,qc,x0],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}"]}),t})();function Xne(t,i){if(1&t&&(v(0,"mat-option",15),M(1),y()),2&t){const e=i.$implicit;I("value",e),k(1),It(" ",e.title," ")}}function Qne(t,i){1&t&&Ee(0,"mat-spinner",16)}function Yne(t,i){if(1&t){const e=ct();v(0,"div",17)(1,"span",18),M(2,"\u2261"),y(),M(3),v(4,"button",19),X("click",function(){const o=Oe(e).index;return Pe(q().deleteQuestionnaire(o))}),v(5,"mat-icon"),M(6,"delete"),y()()()}if(2&t){const e=i.$implicit;k(3),It(" ",e.title," ")}}let Kne=(()=>{class t{constructor(e,n,r){this.fb=e,this.fhirService=n,this.dialogRef=r,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.userTag=this.fhirService.getUserTag(),this.loadAvailableQuestionnaires()}updateAvailableQuestionnaires(){this.availableQuestionnaires=this.allQuestionnaires.filter(e=>!this.addedQuestionnaires.some(n=>n.id===e.id))}loadAvailableQuestionnaires(){this.loading=!0,this.fhirService.getQuestionnairesByTag(this.userTag).subscribe(e=>{this.allQuestionnaires=e.entry.map(n=>n.resource),this.allQuestionnaires.sort((n,r)=>n.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){B1(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})}}return t.\u0275fac=function(e){return new(e||t)(b(OR),b(ff),b(Qc))},t.\u0275cmp=je({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,"disabled","click"],["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,"disabled","click"],[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(e,n){1&e&&(v(0,"mat-dialog-content")(1,"h2"),M(2,"Create a modular Questionnaire"),y(),v(3,"form",0)(4,"div",1)(5,"mat-form-field",2)(6,"mat-label"),M(7,"Assign Name"),y(),Ee(8,"input",3),y()(),v(9,"div",1)(10,"mat-form-field",4)(11,"mat-label"),M(12,"Select Child Questionnaire"),y(),v(13,"mat-select",5),H(14,Xne,2,2,"mat-option",6),y()(),v(15,"button",7),X("click",function(){return n.addQuestionnaire()}),M(16,"Add questionnaire"),y(),H(17,Qne,1,0,"mat-spinner",8),y()(),v(18,"div",9)(19,"cdk-drop-list",10),X("cdkDropListDropped",function(o){return n.drop(o)}),H(20,Yne,7,1,"div",11),y()()(),v(21,"mat-dialog-actions",12)(22,"button",13),M(23,"Cancel"),y(),v(24,"button",14),X("click",function(){return n.closeModal()}),M(25,"Save"),y()()),2&e&&(k(3),I("formGroup",n.questionnaireForm),k(11),I("ngForOf",n.availableQuestionnaires),k(1),I("disabled",n.loading),k(2),I("ngIf",n.loading),k(3),I("ngForOf",n.addedQuestionnaires),k(4),I("disabled",n.isSaveDisabled()))},dependencies:[go,hn,z1,j1,xo,is,ba,Ws,wa,Hs,Pd,rf,ef,Us,ya,Xh,js,tf,sf,x0,X1,Q1],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}"]}),t})();const Zne=new ae("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),ere=Ls(class{constructor(t){this._elementRef=t}},"primary");let tre=(()=>{class t extends ere{constructor(e,n,r,o,a){super(e),this._ngZone=n,this._changeDetectorRef=r,this._animationMode=o,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new ke,this._mode="determinate",this._transitionendHandler=s=>{0===this.animationEnd.observers.length||!s.target||!s.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,a&&(a.color&&(this.color=this.defaultColor=a.color),this.mode=a.mode||this.mode)}get value(){return this._value}set value(e){this._value=fP(An(e)),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(e){this._bufferValue=fP(An(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}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(Ue),b(Gt),b(Ri,8),b(Zne,8))},t.\u0275cmp=je({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(e,n){2&e&&(rt("aria-valuenow",n._isIndeterminate()?null:n.value)("mode",n.mode),Xe("_mat-animation-noopable",n._isNoopAnimation)("mdc-linear-progress--animation-ready",!n._isNoopAnimation)("mdc-linear-progress--indeterminate",n._isIndeterminate()))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[pe],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(e,n){1&e&&(v(0,"div",0),Ee(1,"div",1)(2,"div",2),y(),v(3,"div",3),Ee(4,"span",4),y(),v(5,"div",5),Ee(6,"span",4),y()),2&e&&(k(1),tr("flex-basis",n._getBufferBarFlexBasis()),k(2),tr("transform",n._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, 83.67142%))}100%{transform:translateX(var(--mdc-linear-progress-primary-full, 200.611057%))}}@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, 37.651913%))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half, 84.386165%))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full, 160.277782%))}}@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-buffering{from{transform:rotate(180deg) translateX(-10px)}}@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, -83.67142%))}100%{transform:translateX(var(--mdc-linear-progress-primary-full-neg, -200.611057%))}}@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, -37.651913%))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half-neg, -84.386165%))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full-neg, -160.277782%))}}@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: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;width:100%;height: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;width:100%;height:100%}.mdc-linear-progress__buffer-dots{background-repeat:repeat-x;flex:auto;transform:rotate(180deg);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}.mdc-linear-progress__bar-inner{border-color:var(--mdc-linear-progress-active-indicator-color, #6200ee)}.mdc-linear-progress__buffer-dots{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='%23e6e6e6'/%3E%3C/svg%3E\")}.mdc-linear-progress__buffer-bar{background-color:#e6e6e6}.mdc-linear-progress{height:var(--mdc-linear-progress-track-height, 4px)}.mdc-linear-progress__bar-inner{border-top-width:var(--mdc-linear-progress-track-height, 4px)}.mdc-linear-progress__buffer-dots{background-size:10px var(--mdc-linear-progress-track-height, 4px)}.mat-mdc-progress-bar{display:block}.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}),t})();function fP(t,i=0,e=100){return Math.max(i,Math.min(e,t))}let ire=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({imports:[xt]}),t})();const nre=["questionnairesList"];function rre(t,i){if(1&t&&(v(0,"div",20),Ee(1,"mat-progress-bar",21),v(2,"div",22),M(3),y()()),2&t){const e=q();k(1),I("value",e.validatingProgress),k(2),It("",e.validatingProgress,"%")}}function ore(t,i){1&t&&(v(0,"span"),M(1,"Run validation"),y())}function are(t,i){1&t&&Ee(0,"mat-spinner",23)}function sre(t,i){if(1&t&&(v(0,"span",29),M(1),y()),2&t){const e=q(2);k(1),It("Error: ",e.loadResults.error,"")}}function cre(t,i){if(1&t&&(v(0,"span",30),M(1),y()),2&t){const e=q(2);k(1),It("Inactive: ",e.loadResults.inactive,"")}}function lre(t,i){if(1&t&&(v(0,"span",31),M(1),y()),2&t){const e=q(2);k(1),It("Active: ",e.loadResults.active,"")}}function dre(t,i){if(1&t&&(v(0,"p",24)(1,"b"),M(2,"Questionnaire:"),y(),M(3),v(4,"i"),M(5),y(),M(6,") - "),v(7,"span",25),M(8),y(),H(9,sre,2,1,"span",26),H(10,cre,2,1,"span",27),H(11,lre,2,1,"span",28),y()),2&t){const e=q();k(3),It(" ",e.questionnaire.title," ("),k(2),tt(e.questionnaire.url),k(3),It("",e.dataSource.data.length," bindings"),k(1),I("ngIf",e.loadResults.total>0),k(1),I("ngIf",e.loadResults.total>0),k(1),I("ngIf",e.loadResults.total>0)}}function ure(t,i){1&t&&(v(0,"th",32),M(1," # "),y())}function hre(t,i){if(1&t&&(v(0,"td",33),M(1),y()),2&t){const e=i.$implicit;k(1),It(" ",e.order," ")}}function fre(t,i){1&t&&(v(0,"th",32),M(1," FHIRPath "),y())}function mre(t,i){if(1&t&&(v(0,"td",33),M(1),y()),2&t){const e=i.$implicit;k(1),It(" ",e.path," ")}}function pre(t,i){1&t&&(v(0,"th",32),M(1," Path "),y())}function gre(t,i){if(1&t&&(v(0,"td",33),M(1),y()),2&t){const e=i.$implicit;k(1),It(" ",e.readablePath," ")}}function _re(t,i){1&t&&(v(0,"th",32),M(1,"Code "),y())}function bre(t,i){if(1&t&&(v(0,"td",33)(1,"a",34),M(2),y()()),2&t){const e=i.$implicit;k(1),ap("href","http://snomed.info/id/",e.code,"",Hb),k(1),tt(e.code)}}function vre(t,i){1&t&&(v(0,"th",32),M(1," Display "),y())}function xre(t,i){if(1&t&&(v(0,"p",38),M(1),y()),2&t){const e=q().$implicit;k(1),It("Concept FSN: ",e.serverDisplay,"")}}function yre(t,i){1&t&&(v(0,"p",39),M(1,"Concept is inactive"),y())}function wre(t,i){if(1&t){const e=ct();v(0,"p",40),M(1),v(2,"button",41),X("click",function(){const o=Oe(e).$implicit,a=q().$implicit;return Pe(q().replaceInactiveConcept(a,o.replacement))}),v(3,"mat-icon"),M(4,"arrow_forward"),y()()()}if(2&t){const e=i.$implicit,n=q(2);k(1),wv(" Replacement: ",e.equivalence," to ",e.replacement.code," |",e.replacement.display,"| "),k(1),I("disabled",n.validating)}}function Cre(t,i){if(1&t&&(v(0,"td",33),M(1),H(2,xre,2,1,"p",35),H(3,yre,2,0,"p",36),H(4,wre,5,4,"p",37),y()),2&t){const e=i.$implicit;k(1),It(" ",e.display," "),k(1),I("ngIf",e.serverDisplay),k(1),I("ngIf","Inactive"==e.status),k(1),I("ngForOf",e.replacements)}}function kre(t,i){1&t&&(v(0,"th",32),M(1," System "),y())}function Dre(t,i){if(1&t&&(v(0,"td",33),M(1),y()),2&t){const e=i.$implicit;k(1),It(" ",e.system," ")}}function Sre(t,i){1&t&&(v(0,"th",32),M(1," Status "),y())}function Ere(t,i){1&t&&(v(0,"span"),Ee(1,"mat-progress-bar",42),y())}function Tre(t,i){if(1&t&&(v(0,"span")(1,"span",43),M(2),y()()),2&t){const e=q().$implicit;k(1),I("ngClass",e.status),k(1),tt(e.status)}}function Mre(t,i){if(1&t&&(v(0,"td",33),H(1,Ere,2,0,"span",3),H(2,Tre,3,2,"span",3),y()),2&t){const e=i.$implicit;k(1),I("ngIf","Validating"==e.status),k(1),I("ngIf","Validating"!=e.status)}}function Are(t,i){1&t&&Ee(0,"tr",44)}function Ire(t,i){1&t&&Ee(0,"tr",45)}function Fre(t,i){1&t&&Ee(0,"mat-spinner",46)}let Rre=(()=>{class t{constructor(e){this.terminologyService=e,this.questionnaireUpdated=new ke,this.validatingQuestionnaire=new ke,this.loading=!1,this.validating=!1,this.displayedColumns=["order","readablePath","code","display","system","status"],this.dataSource=new qh,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 n=this.extractObjects(e);this.dataSource.data=n,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 n=this.dataSource.data.length,r=0;this.asyncForEach(this.dataSource.data,function(){var o=Yi(function*(a){e.loadResults.total++,a.status="Validating",r++,e.validatingProgress=Math.round(r/n*100);try{const s=yield e.terminologyService.lookupConcept(a.code,a.system).pipe(jo()).toPromise();let c=[],l="";for(const d of s.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?(a.status="Inactive",e.loadResults.inactive++):(a.status="Active",e.loadResults.active++))}if((!a.display||!c.includes(a.display))&&(a.serverDisplay=l),"Inactive"==a.status){const d=yield e.getHistoricalAssociationsTarget("900000000000527005",a.code),u=yield e.getHistoricalAssociationsTarget("900000000000530003",a.code),h=yield e.getHistoricalAssociationsTarget("900000000000523009",a.code),f=yield e.getHistoricalAssociationsTarget("900000000000526001",a.code),m=d.concat(u,h,f);a.replacements=m}}catch{a.status="Error",e.loadResults.error++}});return function(a){return o.apply(this,arguments)}}()).then(()=>{this.validating=!1,this.validatingQuestionnaire.emit(!1)})}getHistoricalAssociationsTarget(e,n){var r=this;return Yi(function*(){let o=[];const a=r.terminologyService.translate(e,n);let s=yield Wo(a.pipe(Ye(c=>c)));if(s.parameter)for(const c of s.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,n){return Yi(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 a={order:this.orderCounter,system:e.system,code:e.code,display:e.display,path:n,readablePath:r,status:"Not checked"};o.some(s=>s.system===a.system&&s.code===a.code&&s.display===a.display)||o.push(a)}if(Array.isArray(e))for(let a in e)o=o.concat(this.extractObjects(e[a],`${n}[${a}]`,r));else for(let a in e)e.hasOwnProperty(a)&&(o=o.concat(this.extractObjects(e[a],n?`${n}.${a}`:a,r)));if(e.answerValueSet){const s=new URL(e.answerValueSet).searchParams.get("fhir_vs");if(s){const c=decodeURIComponent(s),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:n+".answerValueSet",readablePath:r+" -> answerValueSet [ECL]",status:"Not checked"})}}return o}replaceInactiveConcept(e,n){this.searchAndReplace(this.questionnaire,e,n,!1)&&(this.loadQuestionnaire(this.questionnaire),this.questionnaireUpdated.emit(this.questionnaire))}searchAndReplace(e,n,r,o){if("object"!=typeof e||null===e)return o;if(e.system==n.system&&e.code==n.code&&e.display==n.display&&(e.system=r.system,e.code=r.code,e.display=r.display,o=!0),e.answerValueSet){const a=new URL(e.answerValueSet),s=a.searchParams.get("fhir_vs");if(s){const c=decodeURIComponent(s),l=new RegExp(`(\\s|^)${n.code}(\\s|$|\\|)`,"g");if(l.test(c)){const d=c.replace(l,`$1${r.code}$2`);o=!0;const u=new RegExp(`\\|\\s*${n.display}\\s*\\|`,"g");if(u.test(d)){const h=d.replace(u,`| ${r.display} |`);a.searchParams.set("fhir_vs",encodeURIComponent(h)),e.answerValueSet=a.toString()}a.searchParams.set("fhir_vs",encodeURIComponent(d)),e.answerValueSet=a.toString()}}}if(Array.isArray(e))for(let a in e)o=this.searchAndReplace(e[a],n,r,o);else for(let a in e)e.hasOwnProperty(a)&&(o=this.searchAndReplace(e[a],n,r,o));return o}}return t.\u0275fac=function(e){return new(e||t)(b(yo))},t.\u0275cmp=je({type:t,selectors:[["app-validate-questionnaire"]],viewQuery:function(e,n){if(1&e&&(at(Yc,5),at(af,5),at(nre,5)),2&e){let r;xe(r=ye())&&(n.sort=r.first),xe(r=ye())&&(n.tabGroup=r.first),xe(r=ye())&&(n.questionnairesList=r.first)}},inputs:{questionnaire:"questionnaire"},outputs:{questionnaireUpdated:"questionnaireUpdated",validatingQuestionnaire:"validatingQuestionnaire"},features:[Ei],decls:32,vars:9,consts:[[1,"button-container","bottom-spacer"],["class","progress-container",4,"ngIf"],["mat-flat-button","","color","accent",3,"disabled","click"],[4,"ngIf"],["diameter","20",4,"ngIf"],["class","header","id","tab-header",4,"ngIf"],[1,"table-container"],["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,"disabled","click"],["mode","indeterminate"],[1,"pill",3,"ngClass"],["mat-header-row",""],["mat-row",""],["diameter","35",1,"loading-spinner"]],template:function(e,n){1&e&&(v(0,"div",0),H(1,rre,4,2,"div",1),v(2,"button",2),X("click",function(){return n.validate()}),H(3,ore,2,0,"span",3),H(4,are,1,0,"mat-spinner",4),y()(),H(5,dre,12,6,"p",5),v(6,"div",6)(7,"table",7),Ai(8,8),H(9,ure,2,0,"th",9),H(10,hre,2,1,"td",10),Ii(),Ai(11,11),H(12,fre,2,0,"th",9),H(13,mre,2,1,"td",10),Ii(),Ai(14,12),H(15,pre,2,0,"th",9),H(16,gre,2,1,"td",10),Ii(),Ai(17,13),H(18,_re,2,0,"th",9),H(19,bre,3,2,"td",10),Ii(),Ai(20,14),H(21,vre,2,0,"th",9),H(22,Cre,5,4,"td",10),Ii(),Ai(23,15),H(24,kre,2,0,"th",9),H(25,Dre,2,1,"td",10),Ii(),Ai(26,16),H(27,Sre,2,0,"th",9),H(28,Mre,3,2,"td",10),Ii(),H(29,Are,1,0,"tr",17),H(30,Ire,1,0,"tr",18),y(),H(31,Fre,1,0,"mat-spinner",19),y()),2&e&&(k(1),I("ngIf",n.validating),k(1),I("disabled",n.validating||!n.questionnaire),k(1),I("ngIf",!n.validating),k(1),I("ngIf",n.validating),k(1),I("ngIf",n.questionnaire),k(2),I("dataSource",n.dataSource),k(22),I("matHeaderRowDef",n.displayedColumns),k(1),I("matRowDefColumns",n.displayedColumns),k(1),I("ngIf",n.loading))},dependencies:[Es,go,hn,xo,is,ba,tre,Pd,zh,Hd,$h,Ud,Vd,jh,zd,$d,Wh,Gh,cf,Yc,dP],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}"]}),t})();const Ore=["questionnairesList"],Pre=["fileInput"];function Nre(t,i){1&t&&(v(0,"span"),M(1," / Validator"),y())}function Lre(t,i){1&t&&(v(0,"span"),M(1," / Questionnaires repository"),y())}function Bre(t,i){if(1&t&&(v(0,"mat-radio-button",15),M(1," Reconnect to last FHIR Server: "),v(2,"span",16),M(3),v(4,"i"),M(5),y(),M(6,'" '),y()()),2&t){const e=q(2);k(3),It(" ",e.selectedFhirServer,' as "'),k(2),tt(e.selectedUserTag)}}function Vre(t,i){if(1&t){const e=ct();v(0,"div",6)(1,"p"),M(2,"What do you want to do today?"),y(),v(3,"mat-radio-group",7),X("ngModelChange",function(r){return Oe(e),Pe(q().step1Response=r)}),v(4,"mat-radio-button",8),M(5,"Edit a questionnaire in the NLM Form Builder"),y(),v(6,"mat-radio-button",9),M(7,"Load an example questionnaire"),y(),v(8,"mat-radio-button",10),M(9,"Upload and validate a questionnaire"),y(),v(10,"mat-radio-button",11),M(11,"Work with your questionnaires from a FHIR server"),y(),H(12,Bre,7,2,"mat-radio-button",12),y(),v(13,"div",13)(14,"button",14),X("click",function(){return Oe(e),Pe(q().advanceFromStep1())}),M(15,"Next"),y()()()}if(2&t){const e=q();k(3),I("ngModel",e.step1Response),k(9),I("ngIf",e.selectedFhirServer&&e.selectedUserTag),k(2),I("disabled",!e.step1Response)}}function Hre(t,i){if(1&t&&(v(0,"span"),M(1," Connected to "),v(2,"a",29),M(3),y(),M(4,' as "'),v(5,"i"),M(6),y(),M(7,'" '),y()),2&t){const e=q(2);k(3),tt(e.selectedFhirServer),k(3),tt(e.selectedUserTag)}}function Ure(t,i){if(1&t){const e=ct();v(0,"button",14),X("click",function(){return Oe(e),Pe(q(2).openQuestionnaireModal())}),M(1," Create Modular Questionnaire "),y()}2&t&&I("disabled",q(2).validating)}function zre(t,i){if(1&t){const e=ct();v(0,"mat-tab",30)(1,"div",24)(2,"app-list-questionnaires",31,32),X("validateQuestionnaire",function(r){return Oe(e),Pe(q(2).switchToValidateTab(r))})("previewQuestionnaire",function(r){return Oe(e),Pe(q(2).switchToPreviewTab(r))}),y()()()}if(2&t){const e=q(2);k(2),I("config",e.listConfig)}}function $re(t,i){if(1&t){const e=ct();v(0,"div")(1,"div",17),H(2,Hre,8,2,"span",4),v(3,"input",18,19),X("change",function(r){return Oe(e),Pe(q().onFileSelected(r))}),y(),v(5,"button",14),X("click",function(){return Oe(e),Pe(Lt(4).click())}),M(6," Upload "),y(),v(7,"button",14),X("click",function(){return Oe(e),Pe(q().saveQuestionnaire())}),M(8,"Download"),y(),H(9,Ure,2,1,"button",20),y(),v(10,"mat-tab-group",21),X("selectedIndexChange",function(r){return Oe(e),Pe(q().onTabChange(r))}),H(11,zre,4,1,"mat-tab",22),v(12,"mat-tab",23)(13,"div",24),Ee(14,"div",25),y()(),v(15,"mat-tab",26)(16,"app-validate-questionnaire",27,28),X("questionnaireUpdated",function(r){return Oe(e),Pe(q().loadQuestionnaire(r))})("validatingQuestionnaire",function(r){return Oe(e),Pe(q().validating=r)}),y()()()()}if(2&t){const e=q();k(2),I("ngIf","Manager"==e.mode),k(3),I("disabled",e.validating),k(2),I("disabled",e.validating||!e.questionnaire),k(2),I("ngIf","Manager"==e.mode),k(2),I("ngIf","Manager"===e.mode),k(3),Xe("hidden",!e.questionnaire),k(2),I("questionnaire",e.questionnaire)}}function Wre(t,i){if(1&t&&(v(0,"p",19),M(1),y()),2&t){const e=q();k(1),tt(e.studentSubsetDefinition)}}function Gre(t,i){1&t&&Ee(0,"mat-spinner",20)}function qre(t,i){if(1&t&&(v(0,"div",21)(1,"h4"),M(2,"Validation Results"),y(),v(3,"p",22),M(4),y(),v(5,"p",22),M(6),y(),v(7,"p",22),M(8),y()()),2&t){const e=q();k(4),tt(e.definitionVsMembersValudationResult),k(2),tt(e.definitionValidationResult),k(2),tt(e.membersValidationResult)}}function Xre(t,i){1&t&&(v(0,"th",33),M(1,"ID"),y())}function Qre(t,i){if(1&t&&(v(0,"td",34),M(1),y()),2&t){const e=i.$implicit;k(1),tt(e.referencedComponentId)}}function Yre(t,i){1&t&&(v(0,"th",33),M(1,"Name"),y())}function Kre(t,i){if(1&t&&(v(0,"td",34),M(1),y()),2&t){const e=i.$implicit;k(1),tt(e.name)}}function Zre(t,i){1&t&&(v(0,"th",33),M(1,"Result"),y())}function Jre(t,i){if(1&t&&(v(0,"td",34),M(1),y()),2&t){const e=i.$implicit;k(1),tt(e.result.value)}}function eoe(t,i){1&t&&(v(0,"th",33),M(1,"Definition"),y())}function toe(t,i){if(1&t&&(v(0,"td",34),M(1),y()),2&t){const e=i.$implicit;k(1),tt(e.scope.value)}}function ioe(t,i){1&t&&Ee(0,"tr",35)}function noe(t,i){1&t&&Ee(0,"tr",36)}function roe(t,i){if(1&t&&(v(0,"div",23)(1,"table",24),Ai(2,25),H(3,Xre,2,0,"th",26),H(4,Qre,2,1,"td",27),Ii(),Ai(5,28),H(6,Yre,2,0,"th",26),H(7,Kre,2,1,"td",27),Ii(),Ai(8,29),H(9,Zre,2,0,"th",26),H(10,Jre,2,1,"td",27),Ii(),Ai(11,30),H(12,eoe,2,0,"th",26),H(13,toe,2,1,"td",27),Ii(),H(14,ioe,1,0,"tr",31),H(15,noe,1,0,"tr",32),y()()),2&t){const e=q();k(1),I("dataSource",e.studentSubsetMembersDataSource),k(13),I("matHeaderRowDef",e.studentSubsetMembersDisplayedColumns),k(1),I("matRowDefColumns",e.studentSubsetMembersDisplayedColumns)}}const ooe=[{path:"",component:mO},{path:"allergies",component:mO},{path:"sandbox",component:lne},{path:"prescription",component:dne},{path:"questionnaires",component:(()=>{class t{constructor(e,n,r,o,a,s){this.http=e,this.terminologyService=n,this.fhirService=r,this.questionnaireService=o,this.dialog=a,this._snackBar=s,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/34.3.1/webcomponent/lhc-forms.js",e.onload=()=>{const n=document.createElement("script");n.src="https://clinicaltables.nlm.nih.gov/lforms-versions/34.0.0/fhir/R4/lformsFHIR.min.js",n.onload=()=>{},document.head.appendChild(n)},document.head.appendChild(e)}toggleMode(){"Validator"===this.mode?this.dialog.open(Z1,{width:"60%",disableClose:!0}).afterClosed().subscribe(n=>{"save"===n&&(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"))}loadExampleQuestionnaire(){Wo(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)}saveQuestionnaire(){var e=new Blob([JSON.stringify(this.questionnaire,null,2)],{type:"text/plain;charset=utf-8"});qd(e,`${this.questionnaire.title}.json`)}onFileSelected(e){const n=e.target.files?.[0];if(n){const r=new FileReader;r.onload=o=>{try{const a=JSON.parse(o.target?.result);"Questionnaire"===a.resourceType?(this.loadQuestionnaire(a),setTimeout(()=>{"Manager"===this.mode?this.postCurrentQuestionnaire():this.tabGroup.selectedIndex=1},1e3)):this._snackBar.openFromComponent(Pr,{duration:5e3,data:"The file is not a FHIR Questionnaire Resource",panelClass:["red-snackbar"]})}catch(a){console.error(a),this._snackBar.openFromComponent(Pr,{duration:5e3,data:"Invalid JSON file",panelClass:["red-snackbar"]})}},r.readAsText(n)}}postCurrentQuestionnaire(){this.postQuestionnaire(this.questionnaire)}postQuestionnaire(e){this.savingQuestionnaire=!0,this._snackBar.openFromComponent(Pr,{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(jo()).subscribe(n=>{setTimeout(()=>{this.tabGroup.selectedIndex=0,setTimeout(()=>{this.savingQuestionnaire=!1,this.questionnairesList.addQuestionnaire(n)},300)},300),this._snackBar.openFromComponent(Pr,{duration:5e3,data:"Questionnaire saved successfully",panelClass:["green-snackbar"]})},n=>{this.savingQuestionnaire=!1,this._snackBar.openFromComponent(Pr,{duration:5e3,data:"Error saving questionnaire",panelClass:["red-snackbar"]})})}listQuestionnaires(){this.fhirService.getQuestionnairesByTag(this.selectedUserTag).pipe(jo()).subscribe(e=>{},e=>{console.error(e)})}openLoadQuestionnairesDialog(){this.dialog.open(jne,{width:"70%"}).afterClosed().subscribe(n=>{this.loadQuestionnaire(n)})}setFhirServer(){this.fhirService.setBaseUrl(this.selectedFhirServer),this.fhirService.setUserTag(this.selectedUserTag)}setupFhirServer(){this.dialog.open(Z1,{width:"60%"})}switchToValidateTab(e){this.loadQuestionnaire(e),this.tabGroup.selectedIndex=2}switchToPreviewTab(e){this.loadQuestionnaire(e),this.tabGroup.selectedIndex=1}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(Z1,{width:"60%"}).afterClosed().subscribe(n=>{n&&(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)}openQuestionnaireModal(){this.dialog.open(Kne,{width:"75%"}).afterClosed().subscribe(n=>{n&&this.questionnaireService.generateRootQuestionnaire(n.title,n.questionnaires).then(r=>{this.postQuestionnaire(r)}).catch(r=>{console.error("Error:",r)})})}}return t.\u0275fac=function(e){return new(e||t)(b(Ps),b(yo),b(ff),b(uP),b(hf),b(Od))},t.\u0275cmp=je({type:t,selectors:[["app-questionnaires-main"]],viewQuery:function(e,n){if(1&e&&(at(Yc,5),at(af,5),at(Ore,5),at(Pre,5)),2&e){let r;xe(r=ye())&&(n.sort=r.first),xe(r=ye())&&(n.tabGroup=r.first),xe(r=ye())&&(n.questionnairesList=r.first),xe(r=ye())&&(n.uploadInput=r.first)}},decls:11,vars:4,consts:[[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,"ngModel","ngModelChange"],["value","edit"],["value","example"],["value","validate"],["value","repository"],["value","reconnect",4,"ngIf"],[1,"step-button-container"],["mat-flat-button","","color","accent",3,"disabled","click"],["value","reconnect"],[1,"muted"],[1,"button-container","bottom-spacer"],["type","file","hidden","",3,"change"],["fileInput",""],["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,"questionnaire","questionnaireUpdated","validatingQuestionnaire"],["validateQuestionnaire",""],["href","selectedFhirServer"],["label","My Questionnaires"],[3,"config","validateQuestionnaire","previewQuestionnaire"],["questionnairesList",""]],template:function(e,n){1&e&&(v(0,"div",0)(1,"h2",1),M(2," SNOMED CT Terminology Bindings Validator - FHIR Questionnaire Manager "),y(),v(3,"div",2)(4,"span")(5,"a",3),X("click",function(){return n.mode="step1"}),M(6,"Home"),y(),H(7,Nre,2,0,"span",4),H(8,Lre,2,0,"span",4),y()()(),H(9,Vre,16,3,"div",5),H(10,$re,18,8,"div",4)),2&e&&(k(7),I("ngIf","Validator"==n.mode),k(1),I("ngIf","Manager"==n.mode),k(1),I("ngIf","step1"==n.mode),k(1),I("ngIf","Manager"==n.mode||"Validator"==n.mode))},dependencies:[hn,xo,ya,f0,af,cs,Y1,K1,hP,Rre],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}"]}),t})()},{path:"implementation-course/subset-validator",component:(()=>{class t{constructor(e,n,r){this.http=e,this.terminologyService=n,this._snackBar=r,this.studentSubsetMembersDisplayedColumns=["referencedComponentId","name","result","scope"],this.studentSubsetMembersDataSource=new qh,this.studentSubsetmembers=[],this.studentSubsetDefinition="",this.definitionValidationResult="",this.definitionVsMembersValudationResult="",this.membersValidationResult="",this.validatingMembers=!1,this.validatingDefinition=!1,this.loading=!1,this.ok="\u2705",this.error="\u{1f7e5}",this.referenceData=[],this.moduleDReferenceData=[{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"}],this.referenceDataDisplayedColumns=["referencedComponentId","name"],this.referenceDataDataSource=new qh(this.referenceData),this.referenceDefinition="",this.moduleDReferenceDefinition="< 185823004 |Finding of skin texture (finding)|",this.selectedAssignment="Module D"}ngAfterViewInit(){this.setAssignment("Module D")}setAssignment(e){"Module D"===e&&(this.referenceData=this.moduleDReferenceData,this.referenceDefinition=this.moduleDReferenceDefinition)}validateSubsetMembers(){var e=this;return Yi(function*(){e.validatingMembers=!0,e.membersValidationResult="",e.studentSubsetDefinition&&e.validateExpansion();let n=0,r=0;const a=(yield e.terminologyService.expandValueSet(e.studentSubsetDefinition,"").toPromise()).expansion.contains.map(d=>d.code);a.sort((d,u)=>d.localeCompare(u));const s=e.studentSubsetMembersDataSource.data.map(d=>d.referencedComponentId);s.sort((d,u)=>d.localeCompare(u)),e.definitionVsMembersValudationResult=a.length===s.length&&a.every((d,u)=>d===s[u])?`${e.ok} The members list contains exactly the same concepts as the definition expansion`:`${e.error} The members list does not contain exactly the same concepts as the definition expansion`,e.studentSubsetMembersDataSource.data.forEach(d=>{e.referenceData.find(h=>h.referencedComponentId===d.referencedComponentId)?(d.result={value:"Correct",message:""},n++):(d.result={value:"Not acceptable",message:"Subset member not found in reference data"},r++)}),e.validatingMembers=!1,e.membersValidationResult=`${r>0?e.error:e.ok} The student Members list contains ${n} correct concepts, and ${r} incorrect concepts, based on the exercise reference data`})()}validateExpansion(){var e=this;return Yi(function*(){e.validatingDefinition=!0,e.definitionValidationResult="";let n=yield e.terminologyService.expandValueSet(e.studentSubsetDefinition,"").toPromise(),r=yield e.terminologyService.expandValueSet(e.referenceDefinition,"").toPromise(),o=0;e.studentSubsetMembersDataSource.data.forEach(c=>{r.expansion.contains.find(d=>d.code===c.referencedComponentId)?c.scope={value:"Not in expansion",message:""}:(c.scope={value:"In expansion",message:""},o++)});const a=Math.round(o/n.expansion.contains.length*100);e.validatingDefinition=!1,e.definitionValidationResult=`${o>0?e.error:e.ok} The student ECL Definition Expasion contains ${o} concepts that out of scope from expected answer (${a}%)`})()}onSubsetmembersFileSelected(e){this.studentSubsetmembers=[],this.studentSubsetMembersDataSource=new qh,this.studentSubsetMembersDataSource.sort=this.sort,this.loading=!0;const n=e.target.files?.[0];if(n){const r=new FileReader;r.onload=o=>{try{const s=r.result.split("\n"),c=s[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.studentSubsetMembersDataSource.data=u,this.loading=!1}catch(a){this._snackBar.openFromComponent(Pr,{duration:5e3,data:"Error reading file: "+a.message,panelClass:["red-snackbar"]}),this.loading=!1}},r.onerror=o=>{this._snackBar.openFromComponent(Pr,{duration:5e3,data:"Error reading file: "+o,panelClass:["red-snackbar"]}),this.loading=!1},r.readAsText(n)}else this.loading=!1}onDefinitionFileSelected(e){this.studentSubsetDefinition="",this.loading=!0;const n=e.target.files?.[0];if(n){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(a){this._snackBar.openFromComponent(Pr,{duration:5e3,data:"Error reading file: "+a.message,panelClass:["red-snackbar"]}),this.loading=!1}},r.onerror=o=>{this._snackBar.openFromComponent(Pr,{duration:5e3,data:"Error reading file: "+o,panelClass:["red-snackbar"]}),this.loading=!1},r.readAsText(n)}else this.loading=!1}}return t.\u0275fac=function(e){return new(e||t)(b(Ps),b(yo),b(Od))},t.\u0275cmp=je({type:t,selectors:[["app-subset-validator"]],viewQuery:function(e,n){if(1&e&&at(Yc,5),2&e){let r;xe(r=ye())&&(n.sort=r.first)}},decls:43,vars:8,consts:[[1,"layout-container"],[1,"left-column"],[1,"upload-controls"],["class","terminal-style",4,"ngIf"],["type","file",2,"display","none",3,"change"],["fileInput",""],["fileInputDefinition",""],[1,"buttons-panel"],["mat-flat-button","","color","primary",3,"click"],["mat-flat-button","","color","primary",3,"disabled","click"],["class","spinner","diameter","30",4,"ngIf"],["class","blue-rounded-div",4,"ngIf"],["class","table-container",4,"ngIf"],[1,"right-column"],["mat-flat-button","","color","accent",3,"matMenuTriggerFor"],[1,"wide-menu"],["demosMenu","matMenu"],["mat-menu-item","",3,"click"],[1,"instructions"],[1,"terminal-style"],["diameter","30",1,"spinner"],[1,"blue-rounded-div"],[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"],["matColumnDef","scope"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(e,n){if(1&e){const r=ct();v(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3"),M(4,"Subset Members Validator"),y(),v(5,"p"),M(6),y(),H(7,Wre,2,1,"p",3),v(8,"input",4,5),X("change",function(a){return n.onSubsetmembersFileSelected(a)}),y(),v(10,"input",4,6),X("change",function(a){return n.onDefinitionFileSelected(a)}),y(),v(12,"div",7)(13,"button",8),X("click",function(){return Oe(r),Pe(Lt(11).click())}),M(14,"Upload Definition File"),y(),v(15,"button",8),X("click",function(){return Oe(r),Pe(Lt(9).click())}),M(16,"Upload Members File"),y(),v(17,"button",9),X("click",function(){return n.validateSubsetMembers()}),M(18,"Validate"),y(),H(19,Gre,1,0,"mat-spinner",10),y(),H(20,qre,9,3,"div",11),y(),H(21,roe,16,3,"div",12),y(),v(22,"div",13)(23,"h3"),M(24,"Assignment"),y(),v(25,"button",14),M(26),y(),v(27,"mat-menu",15,16)(29,"button",17),X("click",function(){return n.setAssignment("moduleD")}),M(30,"Module D Assignment"),y()(),v(31,"h3"),M(32,"Instructions"),y(),v(33,"div",18)(34,"ol")(35,"li"),M(36,"Select assignment"),y(),v(37,"li"),M(38,"Upload definition file"),y(),v(39,"li"),M(40,"Upload members file"),y(),v(41,"li"),M(42,"Click validate"),y()()()()()}if(2&e){const r=Lt(28);k(6),It("Validating against ",n.terminologyService.getFhirUrlParam(),""),k(1),I("ngIf",n.studentSubsetDefinition),k(10),I("disabled",!n.studentSubsetDefinition||!n.studentSubsetMembersDataSource.data.length),k(2),I("ngIf",n.loading||n.validatingMembers||n.validatingDefinition),k(1),I("ngIf",n.definitionValidationResult||n.membersValidationResult),k(1),I("ngIf",!n.loading&&n.studentSubsetMembersDataSource.data.length),k(4),I("matMenuTriggerFor",r),k(1),It("Selected assignment: ",n.selectedAssignment,"")}},dependencies:[hn,xo,$c,va,jc,Pd,zh,Hd,$h,Ud,Vd,jh,zd,$d,Wh,Gh],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}.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:smaller}.blue-rounded-div[_ngcontent-%COMP%]{border-radius:10px;background-color:#4d7fb4;padding:10px;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}"]}),t})()}];let aoe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({imports:[XA.forRoot(ooe,{useHash:!0}),XA]}),t})();const soe=[{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 coe=(()=>{class t{constructor(){}getCodingSpec(){return soe}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Mt,mf={version:"0.19.3"},In=1200,Kc=1252,loe=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],J1={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},w0=function(t){-1!=loe.indexOf(t)&&(Kc=J1[0]=t)},wo=function(t){In=t,w0(t)};var pf=function(i){return String.fromCharCode(i)},ew=function(i){return String.fromCharCode(i)},on=null,gP=!0,Co="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function D0(t){for(var i="",e=0,n=0,r=0,o=0,a=0,s=0,c=0,l=0;l>2,a=(3&e)<<4|(n=t.charCodeAt(l++))>>4,s=(15&n)<<2|(r=t.charCodeAt(l++))>>6,c=63&r,isNaN(n)?s=c=64:isNaN(r)&&(c=64),i+=Co.charAt(o)+Co.charAt(a)+Co.charAt(s)+Co.charAt(c);return i}function eo(t){var i="",o=0,a=0,s=0,c=0;t=t.replace(/^data:([^\/]+\/[^\/]+)?;base64\,/,"").replace(/[^\w\+\/\=]/g,"");for(var l=0;l>4),64!==(s=Co.indexOf(t.charAt(l++)))&&(i+=String.fromCharCode((15&a)<<4|s>>2)),64!==(c=Co.indexOf(t.charAt(l++)))&&(i+=String.fromCharCode((3&s)<<6|c));return i}var Vt=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),Ca=function(){if(typeof Buffer<"u"){var t=!Buffer.from;if(!t)try{Buffer.from("foo","utf8")}catch{t=!0}return t?function(i,e){return e?new Buffer(i,e):new Buffer(i)}:Buffer.from.bind(Buffer)}return function(){}}(),gf=function(){if(typeof Buffer>"u")return!1;var t=Ca([65,0]);return!!t&&1==t.toString("utf16le").length}();function qs(t){return Vt?Buffer.alloc?Buffer.alloc(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}function _P(t){return Vt?Buffer.allocUnsafe?Buffer.allocUnsafe(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}var Cr=function(i){return Vt?Ca(i,"binary"):i.split("").map(function(e){return 255&e.charCodeAt(0)})};function _f(t){if(typeof ArrayBuffer>"u")return Cr(t);for(var i=new ArrayBuffer(t.length),e=new Uint8Array(i),n=0;n!=t.length;++n)e[n]=255&t.charCodeAt(n);return i}function ka(t){if(Array.isArray(t))return t.map(function(n){return String.fromCharCode(n)}).join("");for(var i=[],e=0;e=0;)i+=t.charAt(e--);return i}function qo(t,i){var e=""+t;return e.length>=i?e:ri("0",i-e.length)+e}function iw(t,i){var e=""+t;return e.length>=i?e:ri(" ",i-e.length)+e}function S0(t,i){var e=""+t;return e.length>=i?e:e+ri(" ",i-e.length)}var bP=Math.pow(2,32);function Zd(t,i){return t>bP||t<-bP?function goe(t,i){var e=""+Math.round(t);return e.length>=i?e:ri("0",i-e.length)+e}(t,i):function _oe(t,i){var e=""+t;return e.length>=i?e:ri("0",i-e.length)+e}(Math.round(t),i)}function E0(t,i){return t.length>=7+(i=i||0)&&103==(32|t.charCodeAt(i))&&101==(32|t.charCodeAt(i+1))&&110==(32|t.charCodeAt(i+2))&&101==(32|t.charCodeAt(i+3))&&114==(32|t.charCodeAt(i+4))&&97==(32|t.charCodeAt(i+5))&&108==(32|t.charCodeAt(i+6))}var vP=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],nw=[["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"]],ut={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 "'},xP={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},voe={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 T0(t,i,e){for(var n=t<0?-1:1,r=t*n,o=0,a=1,s=0,c=1,l=0,d=0,u=Math.floor(r);li&&(l>i?(d=c,s=o):(d=l,s=a)),!e)return[0,n*s,d];var h=Math.floor(n*s/d);return[h,n*s-h*d,d]}function Xs(t,i,e){if(t>2958465||t<0)return null;var n=0|t,r=Math.floor(86400*(t-n)),o=0,a=[],s={D:n,T:r,u:86400*(t-n)-r,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(s.u)<1e-6&&(s.u=0),i&&i.date1904&&(n+=1462),s.u>.9999&&(s.u=0,86400==++r&&(s.T=r=0,++n,++s.D)),60===n)a=e?[1317,10,29]:[1900,2,29],o=3;else if(0===n)a=e?[1317,8,29]:[1900,1,0],o=6;else{n>60&&--n;var c=new Date(1900,0,1);c.setDate(c.getDate()+n-1),a=[c.getFullYear(),c.getMonth()+1,c.getDate()],o=c.getDay(),n<60&&(o=(o+6)%7),e&&(o=function Doe(t,i){i[0]-=581;var e=t.getDay();return t<60&&(e=(e+6)%7),e}(c,a))}return s.y=a[0],s.m=a[1],s.d=a[2],s.S=r%60,r=Math.floor(r/60),s.M=r%60,r=Math.floor(r/60),s.H=r,s.q=o,s}var yP=new Date(1899,11,31,0,0,0),xoe=yP.getTime(),yoe=new Date(1900,2,1,0,0,0);function wP(t,i){var e=t.getTime();return i?e-=1262304e5:t>=yoe&&(e+=864e5),(e-(xoe+6e4*(t.getTimezoneOffset()-yP.getTimezoneOffset())))/864e5}function rw(t){return-1==t.indexOf(".")?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Zc(t,i){switch(typeof t){case"string":return t;case"boolean":return t?"TRUE":"FALSE";case"number":return(0|t)===t?t.toString(10):function vf(t){var e,i=Math.floor(Math.log(Math.abs(t))*Math.LOG10E);return e=i>=-4&&i<=-1?t.toPrecision(10+i):Math.abs(i)<=9?function Coe(t){var i=t<0?12:11,e=rw(t.toFixed(12));return e.length<=i||(e=t.toPrecision(10)).length<=i?e:t.toExponential(5)}(t):10===i?t.toFixed(10).substr(0,12):function koe(t){var i=rw(t.toFixed(11));return i.length>(t<0?12:11)||"0"===i||"-0"===i?t.toPrecision(6):i}(t),rw(function woe(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 Nr(14,wP(t,i&&i.date1904),i)}throw new Error("unsupported value in General format: "+t)}function Soe(t,i,e,n){var c,r="",o=0,a=0,s=e.y,l=0;switch(t){case 98:s=e.y+543;case 121:switch(i.length){case 1:case 2:c=s%100,l=2;break;default:c=s%1e4,l=4}break;case 109:switch(i.length){case 1:case 2:c=e.m,l=i.length;break;case 3:return nw[e.m-1][1];case 5:return nw[e.m-1][0];default:return nw[e.m-1][2]}break;case 100:switch(i.length){case 1:case 2:c=e.d,l=i.length;break;case 3:return vP[e.q][0];default:return vP[e.q][1]}break;case 104:switch(i.length){case 1:case 2:c=1+(e.H+11)%12,l=i.length;break;default:throw"bad hour format: "+i}break;case 72:switch(i.length){case 1:case 2:c=e.H,l=i.length;break;default:throw"bad hour format: "+i}break;case 77:switch(i.length){case 1:case 2:c=e.M,l=i.length;break;default:throw"bad minute format: "+i}break;case 115:if("s"!=i&&"ss"!=i&&".0"!=i&&".00"!=i&&".000"!=i)throw"bad second format: "+i;return 0!==e.u||"s"!=i&&"ss"!=i?(a=n>=2?3===n?1e3:100:1===n?10:1,(o=Math.round(a*(e.S+e.u)))>=60*a&&(o=0),"s"===i?0===o?"0":""+o/a:(r=qo(o,2+n),"ss"===i?r.substr(0,2):"."+r.substr(2,i.length-1))):qo(e.S,i.length);case 90:switch(i){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: "+i}l=3===i.length?1:2;break;case 101:c=s,l=1}return l>0?qo(c,l):""}function ls(t){if(t.length<=3)return t;for(var e=t.length%3,n=t.substr(0,e);e!=t.length;e+=3)n+=(n.length>0?",":"")+t.substr(e,3);return n}var CP=/%/g;function kP(t,i){var e,n=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(0==i)return"0.0E+0";if(i<0)return"-"+kP(t,-i);var r=t.indexOf(".");-1===r&&(r=t.indexOf("E"));var o=Math.floor(Math.log(i)*Math.LOG10E)%r;if(o<0&&(o+=r),-1===(e=(i/Math.pow(10,o)).toPrecision(n+1+(r+o)%r)).indexOf("e")){var a=Math.floor(Math.log(i)*Math.LOG10E);for(-1===e.indexOf(".")?e=e.charAt(0)+"."+e.substr(1)+"E+"+(a-e.length+o):e+="E+"+(a-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(s,c,l,d){return c+l+d.substr(0,(r+o)%r)+"."+d.substr(o)+"E"})}else e=i.toExponential(n);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 DP=/# (\?+)( ?)\/( ?)(\d+)/,SP=/^#*0*\.([0#]+)/,EP=/\).*[0#]/,TP=/\(###\) ###\\?-####/;function kr(t){for(var e,i="",n=0;n!=t.length;++n)switch(e=t.charCodeAt(n)){case 35:break;case 63:i+=" ";break;case 48:i+="0";break;default:i+=String.fromCharCode(e)}return i}function MP(t,i){var e=Math.pow(10,i);return""+Math.round(t*e)/e}function AP(t,i){var e=t-Math.floor(t),n=Math.pow(10,i);return i<(""+Math.round(e*n)).length?0:Math.round(e*n)}function ko(t,i,e){if(40===t.charCodeAt(0)&&!i.match(EP)){var n=i.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return e>=0?ko("n",n,e):"("+ko("n",n,-e)+")"}if(44===i.charCodeAt(i.length-1))return function Toe(t,i,e){for(var n=i.length-1;44===i.charCodeAt(n-1);)--n;return ds(t,i.substr(0,n),e/Math.pow(10,3*(i.length-n)))}(t,i,e);if(-1!==i.indexOf("%"))return function Eoe(t,i,e){var n=i.replace(CP,""),r=i.length-n.length;return ds(t,n,e*Math.pow(10,2*r))+ri("%",r)}(t,i,e);if(-1!==i.indexOf("E"))return kP(i,e);if(36===i.charCodeAt(0))return"$"+ko(t,i.substr(" "==i.charAt(1)?2:1),e);var r,o,a,s,c=Math.abs(e),l=e<0?"-":"";if(i.match(/^00+$/))return l+Zd(c,i.length);if(i.match(/^[#?]+$/))return"0"===(r=Zd(e,0))&&(r=""),r.length>i.length?r:kr(i.substr(0,i.length-r.length))+r;if(o=i.match(DP))return function Moe(t,i,e){var n=parseInt(t[4],10),r=Math.round(i*n),o=Math.floor(r/n),a=r-o*n,s=n;return e+(0===o?"":""+o)+" "+(0===a?ri(" ",t[1].length+1+t[4].length):iw(a,t[1].length)+t[2]+"/"+t[3]+qo(s,t[4].length))}(o,c,l);if(i.match(/^#+0+$/))return l+Zd(c,i.length-i.indexOf("0"));if(o=i.match(SP))return r=MP(e,o[1].length).replace(/^([^\.]+)$/,"$1."+kr(o[1])).replace(/\.$/,"."+kr(o[1])).replace(/\.(\d*)$/,function(m,g){return"."+g+ri("0",kr(o[1]).length-g.length)}),-1!==i.indexOf("0.")?r:r.replace(/^0\./,".");if(i=i.replace(/^#+([0.])/,"$1"),o=i.match(/^(0*)\.(#*)$/))return l+MP(c,o[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=i.match(/^#{1,3},##0(\.?)$/))return l+ls(Zd(c,0));if(o=i.match(/^#,##0\.([#0]*0)$/))return e<0?"-"+ko(t,i,-e):ls(""+(Math.floor(e)+function Ioe(t,i){return i<(""+Math.round((t-Math.floor(t))*Math.pow(10,i))).length?1:0}(e,o[1].length)))+"."+qo(AP(e,o[1].length),o[1].length);if(o=i.match(/^#,#*,#0/))return ko(t,i.replace(/^#,#*,/,""),e);if(o=i.match(/^([0#]+)(\\?-([0#]+))+$/))return r=Kd(ko(t,i.replace(/[\\-]/g,""),e)),a=0,Kd(Kd(i.replace(/\\/g,"")).replace(/[0#]/g,function(m){return a-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?qo(0,3-m.length):"")+m})+"."+qo(a,o[1].length);switch(i){case"###,##0.00":return ko(t,"#,##0.00",e);case"###,###":case"##,###":case"#,###":var f=ls(Zd(c,0));return"0"!==f?l+f:"";case"###,###.00":return ko(t,"###,##0.00",e).replace(/^0\./,".");case"#,###.00":return ko(t,"#,##0.00",e).replace(/^0\./,".")}throw new Error("unsupported format |"+i+"|")}function IP(t,i){var e,n=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(0==i)return"0.0E+0";if(i<0)return"-"+IP(t,-i);var r=t.indexOf(".");-1===r&&(r=t.indexOf("E"));var o=Math.floor(Math.log(i)*Math.LOG10E)%r;if(o<0&&(o+=r),!(e=(i/Math.pow(10,o)).toPrecision(n+1+(r+o)%r)).match(/[Ee]/)){var a=Math.floor(Math.log(i)*Math.LOG10E);-1===e.indexOf(".")?e=e.charAt(0)+"."+e.substr(1)+"E+"+(a-e.length+o):e+="E+"+(a-o),e=e.replace(/\+-/,"-")}e=e.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(s,c,l,d){return c+l+d.substr(0,(r+o)%r)+"."+d.substr(o)+"E"})}else e=i.toExponential(n);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 Da(t,i,e){if(40===t.charCodeAt(0)&&!i.match(EP)){var n=i.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return e>=0?Da("n",n,e):"("+Da("n",n,-e)+")"}if(44===i.charCodeAt(i.length-1))return function Roe(t,i,e){for(var n=i.length-1;44===i.charCodeAt(n-1);)--n;return ds(t,i.substr(0,n),e/Math.pow(10,3*(i.length-n)))}(t,i,e);if(-1!==i.indexOf("%"))return function Ooe(t,i,e){var n=i.replace(CP,""),r=i.length-n.length;return ds(t,n,e*Math.pow(10,2*r))+ri("%",r)}(t,i,e);if(-1!==i.indexOf("E"))return IP(i,e);if(36===i.charCodeAt(0))return"$"+Da(t,i.substr(" "==i.charAt(1)?2:1),e);var r,o,a,s,c=Math.abs(e),l=e<0?"-":"";if(i.match(/^00+$/))return l+qo(c,i.length);if(i.match(/^[#?]+$/))return r=""+e,0===e&&(r=""),r.length>i.length?r:kr(i.substr(0,i.length-r.length))+r;if(o=i.match(DP))return function Aoe(t,i,e){return e+(0===i?"":""+i)+ri(" ",t[1].length+2+t[4].length)}(o,c,l);if(i.match(/^#+0+$/))return l+qo(c,i.length-i.indexOf("0"));if(o=i.match(SP))return r=(r=(""+e).replace(/^([^\.]+)$/,"$1."+kr(o[1])).replace(/\.$/,"."+kr(o[1]))).replace(/\.(\d*)$/,function(m,g){return"."+g+ri("0",kr(o[1]).length-g.length)}),-1!==i.indexOf("0.")?r:r.replace(/^0\./,".");if(i=i.replace(/^#+([0.])/,"$1"),o=i.match(/^(0*)\.(#*)$/))return l+(""+c).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=i.match(/^#{1,3},##0(\.?)$/))return l+ls(""+c);if(o=i.match(/^#,##0\.([#0]*0)$/))return e<0?"-"+Da(t,i,-e):ls(""+e)+"."+ri("0",o[1].length);if(o=i.match(/^#,#*,#0/))return Da(t,i.replace(/^#,#*,/,""),e);if(o=i.match(/^([0#]+)(\\?-([0#]+))+$/))return r=Kd(Da(t,i.replace(/[\\-]/g,""),e)),a=0,Kd(Kd(i.replace(/\\/g,"")).replace(/[0#]/g,function(m){return a-1||"\\"==e&&"-"==t.charAt(i+1)&&"0#".indexOf(t.charAt(i+2))>-1););break;case"?":for(;t.charAt(++i)===e;);break;case"*":++i,(" "==t.charAt(i)||"*"==t.charAt(i))&&++i;break;case"(":case")":++i;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;i-1;);break;default:++i}return!1}var RP=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function OP(t,i){if(null==i)return!1;var e=parseFloat(i[2]);switch(i[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 Nr(t,i,e){null==e&&(e={});var n="";switch(typeof t){case"string":n="m/d/yy"==t&&e.dateNF?e.dateNF:t;break;case"number":null==(n=14==t&&e.dateNF?e.dateNF:(null!=e.table?e.table:ut)[t])&&(n=e.table&&e.table[xP[t]]||ut[xP[t]]),null==n&&(n=voe[t]||"General")}if(E0(n,0))return Zc(i,e);i instanceof Date&&(i=wP(i,e.date1904));var r=function Loe(t,i){var e=function Poe(t){for(var i=[],e=!1,n=0,r=0;n-1&&--n,e.length>4)throw new Error("cannot find right format for |"+e.join("|")+"|");if("number"!=typeof i)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=i>0?e[0]:i<0?e[1]:e[2];if(-1===e[0].indexOf("[")&&-1===e[1].indexOf("["))return[n,o];if(null!=e[0].match(/\[[=<>]/)||null!=e[1].match(/\[[=<>]/)){var a=e[0].match(RP),s=e[1].match(RP);return OP(i,a)?[n,e[0]]:OP(i,s)?[n,e[1]]:[n,e[null!=a&&null!=s?2:1]]}return[n,o]}(n,i);if(E0(r[1]))return Zc(i,e);if(!0===i)i="TRUE";else if(!1===i)i="FALSE";else if(""===i||null==i)return"";return function Noe(t,i,e,n){for(var l,d,u,r=[],o="",a=0,s="",c="t",h="H";a=12?t.charAt(a+2):s),g.t="T",h="h",a+=3):"AM/PM"===t.substr(a,5).toUpperCase()?(null!=l&&(g.v=l.H>=12?"PM":"AM"),g.t="T",a+=5,h="h"):"\u4e0a\u5348/\u4e0b\u5348"===t.substr(a,5).toUpperCase()?(null!=l&&(g.v=l.H>=12?"\u4e0b\u5348":"\u4e0a\u5348"),g.t="T",a+=5,h="h"):(g.t="t",++a),null==l&&"T"===g.t)return"";r[r.length]=g,c=s;break;case"[":for(o=s;"]"!==t.charAt(a++)&&a-1&&(o=(o.match(/\$([^-\[\]]*)/)||[])[1]||"$",Qs(t)||(r[r.length]={t:"t",v:o}));break;case".":if(null!=l){for(o=s;++a-1;)o+=s;r[r.length]={t:"n",v:o};break;case"?":for(o=s;t.charAt(++a)===s;)o+=s;r[r.length]={t:s,v:o},c=s;break;case"*":++a,(" "==t.charAt(a)||"*"==t.charAt(a))&&++a;break;case"(":case")":r[r.length]={t:1===n?"t":s,v:s},++a;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(o=s;a-1;)o+=t.charAt(a);r[r.length]={t:"D",v:o};break;case" ":r[r.length]={t:s,v:s},++a;break;case"$":r[r.length]={t:"t",v:"$"},++a;break;default:if(-1===",$-+/():!^&'~{}<>=\u20acacfijklopqrtuvwxzP".indexOf(s))throw new Error("unrecognized character "+s+" in "+t);r[r.length]={t:"t",v:s},++a}var w,p=0,_=0;for(a=r.length-1,c="t";a>=0;--a)switch(r[a].t){case"h":case"H":r[a].t=h,c="h",p<1&&(p=1);break;case"s":(w=r[a].v.match(/\.0+$/))&&(_=Math.max(_,w[0].length-1)),p<3&&(p=3);case"d":case"y":case"M":case"e":c=r[a].t;break;case"m":"s"===c&&(r[a].t="M",p<2&&(p=2));break;case"X":break;case"Z":p<1&&r[a].v.match(/[Hh]/)&&(p=1),p<2&&r[a].v.match(/[Mm]/)&&(p=2),p<3&&r[a].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 E,x="";for(a=0;a0){40==x.charCodeAt(0)?(N=i<0&&45===x.charCodeAt(0)?-i:i,D=ds("n",x,N)):(D=ds("n",x,N=i<0&&n>1?-i:i),N<0&&r[0]&&"t"==r[0].t&&(D=D.substr(1),r[0].v="-"+r[0].v)),E=D.length-1;var B=r.length;for(a=0;a-1){B=a;break}var L=r.length;if(B===r.length&&-1===D.indexOf("E")){for(a=r.length-1;a>=0;--a)null==r[a]||-1==="n?".indexOf(r[a].t)||(E>=r[a].v.length-1?r[a].v=D.substr(1+(E-=r[a].v.length),r[a].v.length):E<0?r[a].v="":(r[a].v=D.substr(0,E+1),E=-1),r[a].t="t",L=a);E>=0&&L=0;--a)if(null!=r[a]&&-1!=="n?".indexOf(r[a].t)){for(d=r[a].v.indexOf(".")>-1&&a===B?r[a].v.indexOf(".")-1:r[a].v.length-1,W=r[a].v.substr(d+1);d>=0;--d)E>=0&&("0"===r[a].v.charAt(d)||"#"===r[a].v.charAt(d))&&(W=D.charAt(E--)+W);r[a].v=W,r[a].t="t",L=a}for(E>=0&&L-1&&a===B?r[a].v.indexOf(".")+1:0,W=r[a].v.substr(0,d);d-1&&(r[a].v=ds(r[a].t,r[a].v,N=n>1&&i<0&&a>0&&"-"===r[a-1].v?-i:i),r[a].t="t");var j="";for(a=0;a!==r.length;++a)null!=r[a]&&(j+=r[a].v);return j}(r[1],i,e,r[0])}function ow(t,i){if("number"!=typeof i){i=+i||-1;for(var e=0;e<392;++e)if(null!=ut[e]){if(ut[e]==t){i=e;break}}else i<0&&(i=e);i<0&&(i=391)}return ut[i]=t,i}function xf(t){for(var i=0;392!=i;++i)void 0!==t[i]&&ow(t[i],i)}function Jd(){ut=function boe(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 NP=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g,Uoe={"d.m":"d\\.m"};function Ys(t,i){return ow(Uoe[t]||t,i)}var us,LP=function(){var t={version:"1.2.0"},e=function i(){for(var D=0,B=new Array(256),L=0;256!=L;++L)B[L]=D=1&(D=1&(D=1&(D=1&(D=1&(D=1&(D=1&(D=1&(D=L)?-306674912^D>>>1:D>>>1)?-306674912^D>>>1:D>>>1)?-306674912^D>>>1:D>>>1)?-306674912^D>>>1:D>>>1)?-306674912^D>>>1:D>>>1)?-306674912^D>>>1:D>>>1)?-306674912^D>>>1:D>>>1)?-306674912^D>>>1:D>>>1;return typeof Int32Array<"u"?new Int32Array(B):B}(),r=function n(D){var B=0,L=0,j=0,Z=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(j=0;256!=j;++j)Z[j]=D[j];for(j=0;256!=j;++j)for(L=D[j],B=256+j;B<4096;B+=256)L=Z[B]=L>>>8^D[255&L];var U=[];for(j=1;16!=j;++j)U[j-1]=typeof Int32Array<"u"&&"function"==typeof Z.subarray?Z.subarray(256*j,256*j+256):Z.slice(256*j,256*j+256);return U}(e),o=r[0],a=r[1],s=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],_=r[12],w=r[13],x=r[14];return t.table=e,t.bstr=function E(D,B){for(var L=-1^B,j=0,Z=D.length;j>>8^e[255&(L^D.charCodeAt(j++))];return~L},t.buf=function W(D,B){for(var L=-1^B,j=D.length-15,Z=0;Z>8&255]^_[D[Z++]^L>>16&255]^p[D[Z++]^L>>>24]^g[D[Z++]]^m[D[Z++]]^f[D[Z++]]^h[D[Z++]]^u[D[Z++]]^d[D[Z++]]^l[D[Z++]]^c[D[Z++]]^s[D[Z++]]^a[D[Z++]]^o[D[Z++]]^e[D[Z++]];for(j+=15;Z>>8^e[255&(L^D[Z++])];return~L},t.str=function N(D,B){for(var L=-1^B,j=0,Z=D.length,U=0,me=0;j>>8^e[255&(L^U)]:U<2048?L=(L=L>>>8^e[255&(L^(192|U>>6&31))])>>>8^e[255&(L^(128|63&U))]:U>=55296&&U<57344?(U=64+(1023&U),me=1023&D.charCodeAt(j++),L=(L=(L=(L=L>>>8^e[255&(L^(240|U>>8&7))])>>>8^e[255&(L^(128|U>>2&63))])>>>8^e[255&(L^(128|me>>6&15|(3&U)<<4))])>>>8^e[255&(L^(128|63&me))]):L=(L=(L=L>>>8^e[255&(L^(224|U>>12&15))])>>>8^e[255&(L^(128|U>>6&63))])>>>8^e[255&(L^(128|63&U))];return~L},t}(),lt=function(){var c,i={};function n(C){if("/"==C.charAt(C.length-1))return-1===C.slice(0,-1).indexOf("/")?C:n(C.slice(0,-1));var R=C.lastIndexOf("/");return-1===R?C:C.slice(0,R+1)}function r(C){if("/"==C.charAt(C.length-1))return r(C.slice(0,-1));var R=C.lastIndexOf("/");return-1===R?C:C.slice(R+1)}function o(C,R){"string"==typeof R&&(R=new Date(R));var S=R.getHours();S=(S=S<<6|R.getMinutes())<<5|R.getSeconds()>>>1,C.write_shift(2,S);var A=R.getFullYear()-1980;A=(A=A<<4|R.getMonth()+1)<<5|R.getDate(),C.write_shift(2,A)}function s(C){Rn(C,0);for(var R={},S=0;C.l<=C.length-4;){var A=C.read_shift(2),O=C.read_shift(2),P=C.l+O,ee={};switch(A){case 21589:1&(S=C.read_shift(1))&&(ee.mtime=C.read_shift(4)),O>5&&(2&S&&(ee.atime=C.read_shift(4)),4&S&&(ee.ctime=C.read_shift(4))),ee.mtime&&(ee.mt=new Date(1e3*ee.mtime));break;case 1:var le=C.read_shift(4),J=C.read_shift(4);ee.usz=J*Math.pow(2,32)+le,le=C.read_shift(4),J=C.read_shift(4),ee.csz=J*Math.pow(2,32)+le}C.l=P,R[A]=ee}return R}function l(){return c||(c=us)}function d(C,R){if(80==C[0]&&75==C[1])return I3(C,R);if(109==(32|C[0])&&105==(32|C[1]))return function Ive(C,R){if("mime-version:"!=se(C.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var S=R&&R.root||"",A=(Vt&&Buffer.isBuffer(C)?C.toString("binary"):se(C)).split("\r\n"),O=0,P="";for(O=0;O0&&(S=(S=S.slice(0,S.length-1)).slice(0,S.lastIndexOf("/")+1),P.slice(0,S.length)!=S););var ee=(A[1]||"").match(/boundary="(.*?)"/);if(!ee)throw new Error("MAD cannot find boundary");var le="--"+(ee[1]||""),ie={FileIndex:[],FullPaths:[]};D(ie);var De,Te=0;for(O=0;O=O&&(Te-=O),!ee[Te]){J=[];var Fe=[];for(De=Te;De>=0;){Fe[De]=!0,ee[De]=!0,le[le.length]=De,J.push(C[De]);var we=S[Math.floor(4*De/A)];if(A<4+(Qe=4*De&te))throw new Error("FAT boundary crossed: "+De+" 4 "+A);if(!C[we]||Fe[De=tl(C[we],Qe)])break}P[Te]={nodes:le,data:a4([J])}}return P}(Dt,ee,te,A);ee0&&le!==me&&(Ni[le].name="!MiniFAT"),Ni[te[0]].name="!FAT",Ni.fat_addrs=te,Ni.ssz=A;var Dn=[],oo=[],am=[];(function x(C,R,S,A,O,P,ee,le){for(var Qe,J=0,te=A.length?2:0,ie=R[C].data,De=0,Te=0;De0&&J!==me&&(R[J].name="!StreamData")):we.size>=4096?(we.storage="fat",void 0===R[we.start]&&(R[we.start]=_(S,we.start,R.fat_addrs,R.ssz)),R[we.start].name=we.name,we.content=R[we.start].data.slice(0,we.size)):(we.storage="minifat",we.size<0?we.size=0:J!==me&&we.start!==me&&R[J]&&(we.content=g(we,R[J].data,(R[le]||{}).data))),we.content&&Rn(we.content,0),P[Qe]=we,ee.push(we)}})(ee,Ni,Dt,Dn,O,{},oo,le),function m(C,R,S){for(var A=0,O=0,P=0,ee=0,le=0,J=S.length,te=[],ie=[];A0&&ee>=0;)P.push(R.slice(ee*U,ee*U+U)),O-=U,ee=tl(S,4*ee);return 0===P.length?re(0):vn(P).slice(0,C.size)}function p(C,R,S,A,O){var P=me;if(C===me){if(0!==R)throw new Error("DIFAT chain shorter than expected")}else if(-1!==C){var ee=S[C],le=(A>>>2)-1;if(!ee)return;for(var J=0;J=1&&p(tl(ee,A-4),R-1,S,A,O)}}function _(C,R,S,A,O){var P=[],ee=[];O||(O=[]);var le=A-1,J=0,te=0;for(J=R;J>=0;){O[J]=!0,P[P.length]=J,ee.push(C[J]);var ie=S[Math.floor(4*J/A)];if(A<4+(te=4*J&le))throw new Error("FAT boundary crossed: "+J+" 4 "+A);if(!C[ie])break;J=tl(C[ie],te)}return{nodes:P,data:a4([ee])}}function E(C,R){return new Date(1e3*(Un(C,R+4)/1e7*Math.pow(2,32)+Un(C,R)/1e7-11644473600))}function D(C,R){var S=R||{},A=S.root||"Root Entry";if(C.FullPaths||(C.FullPaths=[]),C.FileIndex||(C.FileIndex=[]),C.FullPaths.length!==C.FileIndex.length)throw new Error("inconsistent CFB structure");0===C.FullPaths.length&&(C.FullPaths[0]=A+"/",C.FileIndex[0]={name:A,type:5}),S.CLSID&&(C.FileIndex[0].clsid=S.CLSID),function B(C){var R="\x01Sh33tJ5";if(!lt.find(C,"/"+R)){var S=re(4);S[0]=55,S[1]=S[3]=50,S[2]=54,C.FileIndex.push({name:R,type:2,content:S,size:4,L:69,R:69,C:69}),C.FullPaths.push(C.FullPaths[0]+R),L(C)}}(C)}function L(C,R){D(C);for(var S=!1,A=!1,O=C.FullPaths.length-1;O>=0;--O){var P=C.FileIndex[O];switch(P.type){case 0:A?S=!0:(C.FileIndex.pop(),C.FullPaths.pop());break;case 1:case 2:case 5:A=!0,isNaN(P.R*P.L*P.C)&&(S=!0),P.R>-1&&P.L>-1&&P.R==P.L&&(S=!0);break;default:S=!0}}if(S||R){var ee=new Date(1987,1,19),le=0,J=Object.create?Object.create(null):{},te=[];for(O=0;O1?1:-1,De.size=0,De.type=5;else if("/"==Te.slice(-1)){for(le=O+1;le=te.length?-1:le,le=O+1;le=te.length?-1:le,De.type=1}else n(C.FullPaths[O+1]||"")==n(Te)&&(De.R=O+1),De.type=2}}}function j(C,R){var S=R||{};if("mad"==S.fileType)return function Fve(C,R){for(var S=R||{},A=S.boundary||"SheetJS",O=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(A="------="+A).slice(2)+'"',"","",""],P=C.FullPaths[0],ee=P,le=C.FileIndex[0],J=1;J=32&&Qe<128&&++De;var we=De>=4*Te/5;O.push(A),O.push("Content-Location: "+(S.root||"file:///C:/SheetJS/")+ee),O.push("Content-Transfer-Encoding: "+(we?"quoted-printable":"base64")),O.push("Content-Type: "+Sve(le,ee)),O.push(""),O.push(we?Tve(ie):Eve(ie))}return O.push(A+"--\r\n"),O.join("\r\n")}(C,S);if("zip"===(L(C),S.fileType))return function Dve(C,R){var S=R||{},A=[],O=[],P=re(1),ee=S.compression?8:0,le=0,te=0,ie=0,De=0,Te=0,Qe=C.FullPaths[0],Fe=Qe,we=C.FileIndex[0],Dt=[],Ni=0;for(te=1;te0&&(Hr<4096?Fe+=Hr+63>>6:we+=Hr+511>>9)}}for(var Dn=Qe.FullPaths.length+3>>2,am=Fe+127>>7,sm=(Fe+7>>3)+we+Dn+am,xl=sm+127>>7,HC=xl<=109?0:Math.ceil((xl-109)/127);sm+xl+HC+127>>7>xl;)HC=++xl<=109?0:Math.ceil((xl-109)/127);var xs=[1,HC,xl,am,Dn,we,Fe,0];return Qe.FileIndex[0].size=Fe<<6,xs[7]=(Qe.FileIndex[0].start=xs[0]+xs[1]+xs[2]+xs[3]+xs[4]+xs[5])+(xs[6]+7>>3),xs}(C),O=re(A[7]<<9),P=0,ee=0;for(P=0;P<8;++P)O.write_shift(1,de[P]);for(P=0;P<8;++P)O.write_shift(2,0);for(O.write_shift(2,62),O.write_shift(2,3),O.write_shift(2,65534),O.write_shift(2,9),O.write_shift(2,6),P=0;P<3;++P)O.write_shift(2,0);for(O.write_shift(4,0),O.write_shift(4,A[2]),O.write_shift(4,A[0]+A[1]+A[2]+A[3]-1),O.write_shift(4,0),O.write_shift(4,4096),O.write_shift(4,A[3]?A[0]+A[1]+A[2]-1:me),O.write_shift(4,A[3]),O.write_shift(-4,A[1]?A[0]-1:me),O.write_shift(4,A[1]),P=0;P<109;++P)O.write_shift(-4,P>9));for(le(A[6]+7>>3);511&O.l;)O.write_shift(-4,Y.ENDOFCHAIN);for(ee=P=0,J=0;J=4096)&&(ie.start=ee,le(te+63>>6));for(;511&O.l;)O.write_shift(-4,Y.ENDOFCHAIN);for(P=0;P32&&(console.error("Name "+Te+" will be truncated to "+Te.slice(0,32)),Te=Te.slice(0,32)),te=2*(Te.length+1),O.write_shift(64,Te,"utf16le"),O.write_shift(2,te),O.write_shift(1,ie.type),O.write_shift(1,ie.color),O.write_shift(-4,ie.L),O.write_shift(-4,ie.R),O.write_shift(-4,ie.C),ie.clsid)O.write_shift(16,ie.clsid,"hex");else for(J=0;J<4;++J)O.write_shift(4,0);O.write_shift(4,ie.state||0),O.write_shift(4,0),O.write_shift(4,0),O.write_shift(4,0),O.write_shift(4,0),O.write_shift(4,ie.start),O.write_shift(4,ie.size),O.write_shift(4,0)}else{for(J=0;J<17;++J)O.write_shift(4,0);for(J=0;J<3;++J)O.write_shift(4,-1);for(J=0;J<12;++J)O.write_shift(4,0)}}for(P=1;P=4096)if(O.l=ie.start+1<<9,Vt&&Buffer.isBuffer(ie.content))ie.content.copy(O,O.l,0,ie.size),O.l+=ie.size+511&-512;else{for(J=0;J0&&ie.size<4096)if(Vt&&Buffer.isBuffer(ie.content))ie.content.copy(O,O.l,0,ie.size),O.l+=ie.size+63&-64;else{for(J=0;J>16|R>>8|R));function T(C,R){var S=Ie[255&C];return R<=8?S>>>8-R:(S=S<<8|Ie[C>>8&255],R<=16?S>>>16-R:(S=S<<8|Ie[C>>16&255])>>>24-R)}function bt(C,R){var S=7&R,A=R>>>3;return(C[A]|(S<=6?0:C[A+1]<<8))>>>S&3}function Jt(C,R){var S=7&R,A=R>>>3;return(C[A]|(S<=5?0:C[A+1]<<8))>>>S&7}function $t(C,R){var S=7&R,A=R>>>3;return(C[A]|(S<=3?0:C[A+1]<<8))>>>S&31}function ji(C,R){var S=7&R,A=R>>>3;return(C[A]|(S<=1?0:C[A+1]<<8))>>>S&127}function si(C,R,S){var A=7&R,O=R>>>3,ee=C[O]>>>A;return S<8-A||(ee|=C[O+1]<<8-A,S<16-A)||(ee|=C[O+2]<<16-A,S<24-A)||(ee|=C[O+3]<<24-A),ee&(1<>>3;return A<=5?C[O]|=(7&S)<>8-A),R+3}function Le(C,R,S){return C[R>>>3]|=S=(1&S)<<(7&R),R+1}function hr(C,R,S){var O=R>>>3;return C[O]|=255&(S<<=7&R),C[O+1]=S>>>=8,R+8}function oi(C,R,S){var O=R>>>3;return C[O]|=255&(S<<=7&R),C[O+1]=255&(S>>>=8),C[O+2]=S>>>8,R+16}function Si(C,R){var S=C.length,A=2*S>R?2*S:R+5,O=0;if(S>=R)return C;if(Vt){var P=_P(A);if(C.copy)C.copy(P);else for(;O>A-De,ee=(1<=0;--ee)R[le|ee<0;)J[J.l++]=le[te++]}return J.l}(J,te):function ee(le,J){for(var te=0,ie=0,De=_e?new Uint16Array(32768):[];ie0;)J[J.l++]=le[ie++];te=8*J.l}else{te=Ze(J,te,+(ie+Te==le.length)+2);for(var Qe=0;Te-- >0;){var Fe=le[ie],we=-1,Dt=0;if((we=De[Qe=32767&(Qe<<5^Fe)])&&((we|=-32768&ie)>ie&&(we-=32768),we2){(Fe=O[Dt])<=22?te=hr(J,te,Ie[Fe+1]>>1)-1:(hr(J,te,3),hr(J,te+=5,Ie[Fe-23]>>5),te+=3);var Ni=Fe<8?0:Fe-4>>2;Ni>0&&(oi(J,te,Dt-z[Fe]),te+=Ni),te=hr(J,te,Ie[Fe=R[ie-we]]>>3),te-=3;var Hr=Fe<4?0:Fe-2>>1;Hr>0&&(oi(J,te,ie-we-V[Fe]),te+=Hr);for(var Dn=0;Dn>>3;return(C[A]|(S<=4?0:C[A+1]<<8))>>>S&15}(C,R+=5)+4;R+=4;for(var P=0,ee=_e?new Uint8Array(19):Sr(19),le=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],J=1,te=_e?new Uint8Array(8):Sr(8),ie=_e?new Uint8Array(8):Sr(8),De=ee.length,Te=0;Te>8-Fe;for(var we=(1<<7-Fe)-1;we>=0;--we)Ln[Qe|we<>>=3){case 16:for(P=3+bt(C,R),R+=2,Qe=Dt[Dt.length-1];P-- >0;)Dt.push(Qe);break;case 17:for(P=3+Jt(C,R),R+=3;P-- >0;)Dt.push(0);break;case 18:for(P=11+ji(C,R),R+=7;P-- >0;)Dt.push(0);break;default:Dt.push(Qe),J>>0,le=0,J=0;!(1&A);)if(A=Jt(C,S),S+=3,A>>>1)for(A>>1==1?(le=9,J=5):(S=wve(C,S),le=vl,J=T3);;){!R&&ee>>1==1?sc[ie]:ln[ie];if(S+=15&De,(De>>>=4)>>>8&255){if(256==De)break;var Te=(De-=257)<8?0:De-4>>2;Te>5&&(Te=0);var Qe=P+z[De];Te>0&&(Qe+=si(C,S,Te),S+=Te),ie=si(C,S,J),S+=15&(De=A>>>1==1?om[ie]:Fo[ie]);var Fe=(De>>>=4)<4?0:De-2>>1,we=V[De];for(Fe>0&&(we+=si(C,S,Fe),S+=Fe),!R&&ee>>3]|C[1+(S>>>3)]<<8;if(S+=32,te>0)for(!R&&ee0;)O[P++]=C[S>>>3],S+=8}return R?[O,S+7>>>3]:[O.slice(0,P),S+7>>>3]}(C.slice(C.l||0),R);return C.l+=A[1],A[0]}function A3(C,R){if(!C)throw new Error(R);typeof console<"u"&&console.error(R)}function I3(C,R){var S=C;Rn(S,0);var P={FileIndex:[],FullPaths:[]};D(P,{root:R.root});for(var ee=S.length-4;(80!=S[ee]||75!=S[ee+1]||5!=S[ee+2]||6!=S[ee+3])&&ee>=0;)--ee;S.l=ee+4,S.l+=4;var le=S.read_shift(2);S.l+=6;var J=S.read_shift(4);for(S.l=J,ee=0;ee>>=5);S>>>=4,A.setMilliseconds(0),A.setFullYear(S+1980),A.setMonth(P-1),A.setDate(O);var ee=31&R,le=63&(R>>>=5);return A.setHours(R>>>=6),A.setMinutes(le),A.setSeconds(ee<<1),A}(C);if(8257&P)throw new Error("Unsupported ZIP encryption");C.read_shift(4);for(var te=C.read_shift(4),ie=C.read_shift(4),De=C.read_shift(2),Te=C.read_shift(2),Qe="",Fe=0;Fe"u")throw new Error("Unsupported");return new Uint8Array(t)}(t):t}function yf(t,i,e){if(typeof us<"u"&&us.writeFileSync)return e?us.writeFileSync(t,i,e):us.writeFileSync(t,i);if(typeof Deno<"u"){if(e&&"string"==typeof i)switch(e){case"utf8":i=new TextEncoder(e).encode(i);break;case"binary":i=_f(i);break;default:throw new Error("Unsupported encoding "+e)}return Deno.writeFileSync(t,i)}var n="utf8"==e?Sa(i):i;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,t);if(typeof Blob<"u"){var r=new Blob([$oe(n)],{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 a=document.createElement("a");if(null!=a.download)return a.download=t,a.href=o,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(o)},6e4),o}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var s=File(t);return s.open("w"),s.encoding="binary",Array.isArray(i)&&(i=ka(i)),s.write(i),s.close(),i}catch(c){if(!c.message||!c.message.match(/onstruct/))throw c}throw new Error("cannot save file "+t)}function zi(t){for(var i=Object.keys(t),e=[],n=0;n0?e.setTime(e.getTime()+60*e.getTimezoneOffset()*1e3):i<0&&e.setTime(e.getTime()-60*e.getTimezoneOffset()*1e3),e;if(t instanceof Date)return t;if(1917==zP.getFullYear()&&!isNaN(e.getFullYear())){var n=e.getFullYear();return t.indexOf(""+n)>-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 Jc(t,i){if(Vt&&Buffer.isBuffer(t)){if(i&&gf){if(255==t[0]&&254==t[1])return Sa(t.slice(2).toString("utf16le"));if(254==t[1]&&255==t[2])return Sa(function pP(t){for(var i=[],e=0;e>1;++e)i[e]=String.fromCharCode(t.charCodeAt(2*e+1)+(t.charCodeAt(2*e)<<8));return i.join("")}(t.slice(2).toString("binary")))}return t.toString("binary")}if(typeof TextDecoder<"u")try{if(i){if(255==t[0]&&254==t[1])return Sa(new TextDecoder("utf-16le").decode(t.slice(2)));if(254==t[0]&&255==t[1])return Sa(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 n=[],r=0;r!=t.length;++r)n.push(String.fromCharCode(t[r]));return n.join("")}function yi(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 i={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(i[e]=yi(t[e]));return i}function ri(t,i){for(var e="";e.length3&&-1==Koe.indexOf(i))return o}else if(i.replace(/[ap]m?/,"").match(/[a-z]/))return o;return a<0||a>8099||t.match(/[^-0-9:,\/\\]/)?o:r}function Rt(t,i,e){if(t.FullPaths){var n;if("string"==typeof e)return n=Vt?Ca(e):function poe(t){for(var i=[],e=0,n=t.length+250,r=qs(t.length+255),o=0;o>6&31,r[e++]=128|63&a;else if(a>=55296&&a<57344){a=64+(1023&a);var s=1023&t.charCodeAt(++o);r[e++]=240|a>>8&7,r[e++]=128|a>>2&63,r[e++]=128|s>>6&15|(3&a)<<4,r[e++]=128|63&s}else r[e++]=224|a>>12&15,r[e++]=128|a>>6&63,r[e++]=128|63&a;e>n&&(i.push(r.slice(0,e)),e=0,r=qs(65535),n=65530)}return i.push(r.slice(0,e)),vn(i)}(e),lt.utils.cfb_add(t,i,n);lt.utils.cfb_add(t,i,e)}else t.file(i,e)}function sw(){return lt.utils.cfb_new()}var an='\r\n',cw=M0({""":'"',"'":"'",">":">","<":"<","&":"&"}),lw=/[&<>'"]/g,rae=/[\u0000-\u0008\u000b-\u001f\uFFFE-\uFFFF]/g;function Ot(t){return(t+"").replace(lw,function(e){return cw[e]}).replace(rae,function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"})}function YP(t){return Ot(t).replace(/ /g,"_x0020_")}var KP=/[\u0000-\u001f]/g;function R0(t){return(t+"").replace(lw,function(e){return cw[e]}).replace(/\n/g,"
").replace(KP,function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"})}function dw(t){for(var i="",e=0,n=0,r=0,o=0,a=0,s=0;e191&&n<224?(a=(31&n)<<6,a|=63&r,i+=String.fromCharCode(a)):(o=t.charCodeAt(e++),n<240?i+=String.fromCharCode((15&n)<<12|(63&r)<<6|63&o):(s=((7&n)<<18|(63&r)<<12|(63&o)<<6|63&(a=t.charCodeAt(e++)))-65536,i+=String.fromCharCode(55296+(s>>>10&1023)),i+=String.fromCharCode(56320+(1023&s)))));return i}function JP(t){var e,n,s,i=qs(2*t.length),r=1,o=0,a=0;for(n=0;n>>10&1023),e=56320+(1023&e)),0!==a&&(i[o++]=255&a,i[o++]=a>>>8,a=0),i[o++]=e%256,i[o++]=e>>>8;return i.slice(0,o).toString("ucs2")}function e4(t){return Ca(t,"binary").toString("utf8")}var O0="foo bar baz\xe2\x98\x83\xf0\x9f\x8d\xa3",Ci=Vt&&(e4(O0)==dw(O0)&&e4||JP(O0)==dw(O0)&&JP)||dw,Sa=Vt?function(t){return Ca(t,"utf8").toString("binary")}:function(t){for(var i=[],e=0,n=0,r=0;e>6))),i.push(String.fromCharCode(128+(63&n)));break;case n>=55296&&n<57344:n-=55296,r=t.charCodeAt(e++)-56320+(n<<10),i.push(String.fromCharCode(240+(r>>18&7))),i.push(String.fromCharCode(144+(r>>12&63))),i.push(String.fromCharCode(128+(r>>6&63))),i.push(String.fromCharCode(128+(63&r)));break;default:i.push(String.fromCharCode(224+(n>>12))),i.push(String.fromCharCode(128+(n>>6&63))),i.push(String.fromCharCode(128+(63&n)))}return i.join("")},r4=/(^\s|\s$|\n)/;function Xn(t,i){return"<"+t+(i.match(r4)?' xml:space="preserve"':"")+">"+i+""}function kf(t){return zi(t).map(function(i){return" "+i+'="'+t[i]+'"'}).join("")}function Se(t,i,e){return"<"+t+(null!=e?kf(e):"")+(null!=i?(i.match(r4)?' xml:space="preserve"':"")+">"+i+""}function uw(t,i){try{return t.toISOString().replace(/\.\d*/,"")}catch(e){if(i)throw e}return""}var Fn={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"},el=["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"],io={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"},o4=function(t){for(var i=[],n=0;n0&&Buffer.isBuffer(t[0][0])?Buffer.concat(t[0].map(function(i){return Buffer.isBuffer(i)?i:Ca(i)})):o4(t)}:o4,s4=function(t,i,e){for(var n=[],r=i;r0?tu(t,i+4,i+4+e-1):""},hw=u4,h4=function(t,i){var e=Un(t,i);return e>0?tu(t,i+4,i+4+e-1):""},fw=h4,f4=function(t,i){var e=2*Un(t,i);return e>0?tu(t,i+4,i+4+e-1):""},mw=f4,m4=function(i,e){var n=Un(i,e);return n>0?N0(i,e+4,e+4+n):""},pw=m4,p4=function(t,i){var e=Un(t,i);return e>0?tu(t,i+4,i+4+e):""},gw=p4,g4=function(t,i){return function uae(t,i){for(var e=1-2*(t[i+7]>>>7),n=((127&t[i+7])<<4)+(t[i+6]>>>4&15),r=15&t[i+6],o=5;o>=0;--o)r=256*r+t[i+o];return 2047==n?0==r?e*(1/0):NaN:(0==n?n=-1022:(n-=1023,r+=Math.pow(2,52)),e*Math.pow(2,n-52)*r)}(t,i)},L0=g4,_w=function(i){return Array.isArray(i)||typeof Uint8Array<"u"&&i instanceof Uint8Array};Vt&&(hw=function(i,e){if(!Buffer.isBuffer(i))return u4(i,e);var n=i.readUInt32LE(e);return n>0?i.toString("utf8",e+4,e+4+n-1):""},fw=function(i,e){if(!Buffer.isBuffer(i))return h4(i,e);var n=i.readUInt32LE(e);return n>0?i.toString("utf8",e+4,e+4+n-1):""},mw=function(i,e){if(!Buffer.isBuffer(i)||!gf)return f4(i,e);var n=2*i.readUInt32LE(e);return i.toString("utf16le",e+4,e+4+n-1)},pw=function(i,e){if(!Buffer.isBuffer(i)||!gf)return m4(i,e);var n=i.readUInt32LE(e);return i.toString("utf16le",e+4,e+4+n)},gw=function(i,e){if(!Buffer.isBuffer(i))return p4(i,e);var n=i.readUInt32LE(e);return i.toString("utf8",e+4,e+4+n)},L0=function(i,e){return Buffer.isBuffer(i)?i.readDoubleLE(e):g4(i,e)},_w=function(i){return Buffer.isBuffer(i)||Array.isArray(i)||typeof Uint8Array<"u"&&i instanceof Uint8Array}),typeof Mt<"u"&&function _4(){N0=function(t,i,e){return Mt.utils.decode(1200,t.slice(i,e)).replace(rr,"")},tu=function(t,i,e){return Mt.utils.decode(65001,t.slice(i,e))},hw=function(t,i){var e=Un(t,i);return e>0?Mt.utils.decode(Kc,t.slice(i+4,i+4+e-1)):""},fw=function(t,i){var e=Un(t,i);return e>0?Mt.utils.decode(In,t.slice(i+4,i+4+e-1)):""},mw=function(t,i){var e=2*Un(t,i);return e>0?Mt.utils.decode(1200,t.slice(i+4,i+4+e-1)):""},pw=function(t,i){var e=Un(t,i);return e>0?Mt.utils.decode(1200,t.slice(i+4,i+4+e)):""},gw=function(t,i){var e=Un(t,i);return e>0?Mt.utils.decode(65001,t.slice(i+4,i+4+e)):""}}();var iu=function(t,i){return t[i]},hs=function(t,i){return 256*t[i+1]+t[i]},fae=function(t,i){var e=256*t[i+1]+t[i];return e<32768?e:-1*(65535-e+1)},Un=function(t,i){return t[i+3]*(1<<24)+(t[i+2]<<16)+(t[i+1]<<8)+t[i]},tl=function(t,i){return t[i+3]<<24|t[i+2]<<16|t[i+1]<<8|t[i]},mae=function(t,i){return t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3]};function Df(t,i){var n,r,a,s,c,l,e="",o=[];switch(i){case"dbcs":if(l=this.l,Vt&&Buffer.isBuffer(this)&&gf)e=this.slice(this.l,this.l+2*t).toString("utf16le");else for(c=0;c0?tl:mae)(this,this.l),this.l+=4,n);case 8:case-8:if("f"===i)return r=8==t?L0(this,this.l):L0([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=l4(this,this.l,t)}}return this.l+=t,e}var pae=function(t,i,e){t[e]=255&i,t[e+1]=i>>>8&255,t[e+2]=i>>>16&255,t[e+3]=i>>>24&255},gae=function(t,i,e){t[e]=255&i,t[e+1]=i>>8&255,t[e+2]=i>>16&255,t[e+3]=i>>24&255},_ae=function(t,i,e){t[e]=255&i,t[e+1]=i>>>8&255};function bae(t,i,e){var n=0,r=0;if("dbcs"===e){for(r=0;r!=i.length;++r)_ae(this,i.charCodeAt(r),this.l+2*r);n=2*i.length}else if("sbcs"===e||"cpstr"==e)if(typeof Mt<"u"&&874==Kc){for(r=0;r!=i.length;++r){var o=Mt.utils.encode(Kc,i.charAt(r));this[this.l+r]=o[0]}n=i.length}else if(typeof Mt<"u"&&"cpstr"==e){if((o=Mt.utils.encode(In,i)).length==i.length)for(r=0;r>8}for(;this.l>>=8);break;case 3:n=3,this[this.l]=255&i,this[this.l+1]=255&(i>>>=8),this[this.l+2]=255&(i>>>=8);break;case 4:n=4,pae(this,i,this.l);break;case 8:if(n=8,"f"===e){!function hae(t,i,e){var n=(i<0||1/i==-1/0?1:0)<<7,r=0,o=0,a=n?-i:i;isFinite(a)?0==a?r=o=0:(r=Math.floor(Math.log(a)/Math.LN2),o=a*Math.pow(2,52-r),r<=-1023&&(!isFinite(o)||o>4|n}(this,i,this.l);break}case 16:break;case-4:n=4,gae(this,i,this.l)}}return this.l+=n,this}function b4(t,i){var e=l4(this,this.l,t.length>>1);if(e!==t)throw new Error(i+"Expected "+t+" saw "+e);this.l+=t.length>>1}function Rn(t,i){t.l=i,t.read_shift=Df,t.chk=b4,t.write_shift=bae}function ar(t,i){t.l+=i}function re(t){var i=qs(t);return Rn(i,0),i}function Br(){var t=[],i=Vt?256:2048,e=function(l){var d=re(l);return Rn(d,0),d},n=e(i),r=function(){n&&(n.l&&(n.length>n.l&&((n=n.slice(0,n.l)).l=n.length),n.length>0&&t.push(n)),n=null)},o=function(l){return n&&l=128?1:0)+1,n>=128&&++o,n>=16384&&++o,n>=2097152&&++o;var a=t.next(o);r<=127?a.write_shift(1,r):(a.write_shift(1,128+(127&r)),a.write_shift(1,r>>7));for(var s=0;4!=s;++s){if(!(n>=128)){a.write_shift(1,n);break}a.write_shift(1,128+(127&n)),n>>=7}n>0&&_w(e)&&t.push(e)}}function Sf(t,i,e){var n=yi(t);if(i.s?(n.cRel&&(n.c+=i.s.c),n.rRel&&(n.r+=i.s.r)):(n.cRel&&(n.c+=i.c),n.rRel&&(n.r+=i.r)),!e||e.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function v4(t,i,e){var n=yi(t);return n.s=Sf(n.s,i.s,e),n.e=Sf(n.e,i.s,e),n}function Ef(t,i){if(t.cRel&&t.c<0)for(t=yi(t);t.c<0;)t.c+=i>8?16384:256;if(t.rRel&&t.r<0)for(t=yi(t);t.r<0;)t.r+=i>8?1048576:i>5?65536:16384;var e=zt(t);return!t.cRel&&null!=t.cRel&&(e=function yae(t){return t.replace(/^([A-Z])/,"$$$1")}(e)),!t.rRel&&null!=t.rRel&&(e=function vae(t){return t.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}(e)),e}function bw(t,i){return 0!=t.s.r||t.s.rRel||t.e.r!=(i.biff>=12?1048575:i.biff>=8?65536:16384)||t.e.rRel?0!=t.s.c||t.s.cRel||t.e.c!=(i.biff>=12?16383:255)||t.e.cRel?Ef(t.s,i.biff)+":"+Ef(t.e,i.biff):(t.s.rRel?"":"$")+Yt(t.s.r)+":"+(t.e.rRel?"":"$")+Yt(t.e.r):(t.s.cRel?"":"$")+Ht(t.s.c)+":"+(t.e.cRel?"":"$")+Ht(t.e.c)}function vw(t){return parseInt(function xae(t){return t.replace(/\$(\d+)$/,"$1")}(t),10)-1}function Yt(t){return""+(t+1)}function xw(t){for(var i=function wae(t){return t.replace(/^\$([A-Z])/,"$1")}(t),e=0,n=0;n!==i.length;++n)e=26*e+i.charCodeAt(n)-64;return e-1}function Ht(t){if(t<0)throw new Error("invalid column "+t);var i="";for(++t;t;t=Math.floor((t-1)/26))i=String.fromCharCode((t-1)%26+65)+i;return i}function bi(t){for(var i=0,e=0,n=0;n=48&&r<=57?i=10*i+(r-48):r>=65&&r<=90&&(e=26*e+(r-64))}return{c:e-1,r:i-1}}function zt(t){for(var i=t.c+1,e="";i;i=(i-1)/26|0)e=String.fromCharCode((i-1)%26+65)+e;return e+(t.r+1)}function On(t){var i=t.indexOf(":");return-1==i?{s:bi(t),e:bi(t)}:{s:bi(t.slice(0,i)),e:bi(t.slice(i+1))}}function Et(t,i){return typeof i>"u"||"number"==typeof i?Et(t.s,t.e):("string"!=typeof t&&(t=zt(t)),"string"!=typeof i&&(i=zt(i)),t==i?t:t+":"+i)}function Tf(t){var i=On(t);return"$"+Ht(i.s.c)+"$"+Yt(i.s.r)+":$"+Ht(i.e.c)+"$"+Yt(i.e.r)}function Mf(t,i){if(!(t||i&&i.biff<=5&&i.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(t)?"'"+t.replace(/'/g,"''")+"'":t}function Kt(t){var i={s:{c:0,r:0},e:{c:0,r:0}},e=0,n=0,r=0,o=t.length;for(e=0;n26);++n)e=26*e+r;for(i.s.c=--e,e=0;n9);++n)e=10*e+r;if(i.s.r=--e,n===o||10!=r)return i.e.c=i.s.c,i.e.r=i.s.r,i;for(++n,e=0;n!=o&&!((r=t.charCodeAt(n)-64)<1||r>26);++n)e=26*e+r;for(i.e.c=--e,e=0;n!=o&&!((r=t.charCodeAt(n)-48)<0||r>9);++n)e=10*e+r;return i.e.r=--e,i}function Ea(t,i,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?ms[t.v]||t.v:function x4(t,i){var e="d"==t.t&&i instanceof Date;if(null!=t.z)try{return t.w=Nr(t.z,e?xn(i):i)}catch{}try{return t.w=Nr((t.XF||{}).numFmtId||(e?14:0),e?xn(i):i)}catch{return""+i}}(t,null==i?t.v:i))}function Ks(t,i){var e=i&&i.sheet?i.sheet:"Sheet1",n={};return n[e]=t,{SheetNames:[e],Sheets:n}}function y4(t,i,e){var n=e||{},r=t?null!=t["!data"]:n.dense;null!=on&&null==r&&(r=on);var o=t||{};r&&!o["!data"]&&(o["!data"]=[]);var a=0,s=0;if(o&&null!=n.origin){if("number"==typeof n.origin)a=n.origin;else{var c="string"==typeof n.origin?bi(n.origin):n.origin;a=c.r,s=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=Kt(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==a&&(l.e.r=a=d.e.r+1)}for(var u=[],h=0;h!=i.length;++h)if(i[h]){if(!Array.isArray(i[h]))throw new Error("aoa_to_sheet expects an array of arrays");var f=a+h,m=""+(f+1);r&&(o["!data"][f]||(o["!data"][f]=[]),u=o["!data"][f]);for(var g=0;g!=i[h].length;++g)if(!(typeof i[h][g]>"u")){var p={v:i[h][g]},_=s+g;if(l.s.r>f&&(l.s.r=f),l.s.c>_&&(l.s.c=_),l.e.r0&&i.write_shift(0,t,"dbcs"),e?i.slice(0,i.l):i}function Dae(t){return{ich:t.read_shift(2),ifnt:t.read_shift(2)}}function yw(t,i){var e=t.l,n=t.read_shift(1),r=sr(t),o=[],a={t:r,h:r};if(1&n){for(var s=t.read_shift(4),c=0;c!=s;++c)o.push(Dae(t));a.r=o}else a.r=[{ich:0,ifnt:0}];return t.l=e+i,a}var Tae=yw;function So(t){var i=t.read_shift(4),e=t.read_shift(2);return e+=t.read_shift(1)<<16,t.l++,{c:i,iStyleRef:e}}function il(t,i){return null==i&&(i=re(8)),i.write_shift(-4,t.c),i.write_shift(3,t.iStyleRef||t.s),i.write_shift(1,0),i}function nl(t){var i=t.read_shift(2);return i+=t.read_shift(1)<<16,t.l++,{c:-1,iStyleRef:i}}function rl(t,i){return null==i&&(i=re(4)),i.write_shift(3,t.iStyleRef||t.s),i.write_shift(1,0),i}var Aae=sr,w4=Pn;function ww(t){var i=t.read_shift(4);return 0===i||4294967295===i?"":t.read_shift(i,"dbcs")}function Af(t,i){var e=!1;return null==i&&(e=!0,i=re(127)),i.write_shift(4,t.length>0?t.length:4294967295),t.length>0&&i.write_shift(0,t,"dbcs"),e?i.slice(0,i.l):i}var Iae=sr,Cw=ww,kw=Af;function Dw(t){var i=t.slice(t.l,t.l+4),e=1&i[0],n=2&i[0];t.l+=4;var r=0===n?L0([0,0,0,0,252&i[0],i[1],i[2],i[3]],0):tl(i,0)>>2;return e?r/100:r}function C4(t,i){null==i&&(i=re(4));var e=0,n=0,r=100*t;if(t==(0|t)&&t>=-(1<<29)&&t<1<<29?n=1:r==(0|r)&&r>=-(1<<29)&&r<1<<29&&(n=1,e=1),!n)throw new Error("unsupported RkNumber "+t);i.write_shift(-4,((e?r:t)<<2)+(e+2))}function k4(t){var i={s:{},e:{}};return i.s.r=t.read_shift(4),i.e.r=t.read_shift(4),i.s.c=t.read_shift(4),i.e.c=t.read_shift(4),i}var ol=k4,ru=function Fae(t,i){return i||(i=re(16)),i.write_shift(4,t.s.r),i.write_shift(4,t.e.r),i.write_shift(4,t.s.c),i.write_shift(4,t.e.c),i};function cr(t){if(t.length-t.l<8)throw"XLS Xnum Buffer underflow";return t.read_shift(8,"f")}function al(t,i){return(i||re(8)).write_shift(8,t,"f")}function B0(t,i){if(i||(i=re(8)),!t||t.auto)return i.write_shift(4,0),i.write_shift(4,0),i;null!=t.index?(i.write_shift(1,2),i.write_shift(1,t.index)):null!=t.theme?(i.write_shift(1,6),i.write_shift(1,t.theme)):(i.write_shift(1,5),i.write_shift(1,0));var e=t.tint||0;if(e>0?e*=32767:e<0&&(e*=32768),i.write_shift(2,e),t.rgb&&null==t.theme){var n=t.rgb||"FFFFFF";"number"==typeof n&&(n=("000000"+n.toString(16)).slice(-6)),i.write_shift(1,parseInt(n.slice(0,2),16)),i.write_shift(1,parseInt(n.slice(2,4),16)),i.write_shift(1,parseInt(n.slice(4,6),16)),i.write_shift(1,255)}else i.write_shift(2,0),i.write_shift(1,0),i.write_shift(1,0);return i}var Ew={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:{}},Tw={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 jae(t){return t.map(function(i){return[i>>16&255,i>>8&255,255&i]})}var sl=yi(jae([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])),ms={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},Mw={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},Aw=["_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"],Iw={"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"},z0={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 M4(t,i,e){var o,n=function Woe(t){for(var i=[],e=zi(t),n=0;n!==e.length;++n)null==i[t[e[n]]]&&(i[t[e[n]]]=[]),i[t[e[n]]].push(e[n]);return i}(Iw),r=[];e||(r[r.length]=an,r[r.length]=Se("Types",null,{xmlns:Fn.CT,"xmlns:xsd":Fn.xsd,"xmlns:xsi":Fn.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 Se("Default",null,{Extension:l[0],ContentType:l[1]})})));var a=function(l){t[l]&&t[l].length>0&&(r[r.length]=Se("Override",null,{PartName:("/"==(o=t[l][0])[0]?"":"/")+o,ContentType:z0[l][i.bookType]||z0[l].xlsx}))},s=function(l){(t[l]||[]).forEach(function(d){r[r.length]=Se("Override",null,{PartName:("/"==d[0]?"":"/")+d,ContentType:z0[l][i.bookType]||z0[l].xlsx})})},c=function(l){(t[l]||[]).forEach(function(d){r[r.length]=Se("Override",null,{PartName:("/"==d[0]?"":"/")+d,ContentType:n[l][0]})})};return a("workbooks"),s("sheets"),s("charts"),c("themes"),["strs","styles"].forEach(a),["coreprops","extprops","custprops"].forEach(c),c("vba"),c("comments"),c("threadedcomments"),c("drawings"),s("metadata"),c("people"),!e&&r.length>2&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}var Pt={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 If(t){var i=t.lastIndexOf("/");return t.slice(0,i+1)+"_rels/"+t.slice(i+1)+".rels"}function ou(t){var i=[an,Se("Relationships",null,{xmlns:Fn.RELS})];return zi(t["!id"]).forEach(function(e){i[i.length]=Se("Relationship",null,t["!id"][e])}),i.length>2&&(i[i.length]="",i[1]=i[1].replace("/>",">")),i.join("")}function ki(t,i,e,n,r,o){if(r||(r={}),t["!id"]||(t["!id"]={}),t["!idx"]||(t["!idx"]=1),i<0)for(i=t["!idx"];t["!id"]["rId"+i];++i);if(t["!idx"]=i+1,r.Id="rId"+i,r.Type=n,r.Target=e,o?r.TargetMode=o:[Pt.HLINK,Pt.XPATH,Pt.XMISS].indexOf(r.Type)>-1&&(r.TargetMode="External"),t["!id"][r.Id])throw new Error("Cannot rewrite rId "+i);return t["!id"][r.Id]=r,t[("/"+r.Target).replace("//","/")]=r,i}function A4(t,i,e){return[' \n',' \n'," \n"].join("")}function Yae(t,i){return[' \n',' \n'," \n"].join("")}function I4(t,i){return'SheetJS '+mf.version+""}var Eo=[["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 Rw(t,i,e,n,r){null!=r[t]||null==i||""===i||(r[t]=i,i=Ot(i),n[n.length]=e?Se(t,i,e):Xn(t,i))}function R4(t,i){var e=i||{},n=[an,Se("cp:coreProperties",null,{"xmlns:cp":Fn.CORE_PROPS,"xmlns:dc":Fn.dc,"xmlns:dcterms":Fn.dcterms,"xmlns:dcmitype":Fn.dcmitype,"xmlns:xsi":Fn.xsi})],r={};if(!t&&!e.Props)return n.join("");t&&(null!=t.CreatedDate&&Rw("dcterms:created","string"==typeof t.CreatedDate?t.CreatedDate:uw(t.CreatedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},n,r),null!=t.ModifiedDate&&Rw("dcterms:modified","string"==typeof t.ModifiedDate?t.ModifiedDate:uw(t.ModifiedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},n,r));for(var o=0;o!=Eo.length;++o){var a=Eo[o],s=e.Props&&null!=e.Props[a[1]]?e.Props[a[1]]:t?t[a[1]]:null;!0===s?s="1":!1===s?s="0":"number"==typeof s&&(s=String(s)),null!=s&&Rw(a[0],s,null,n,r)}return n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}var cl=[["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"]],O4=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function N4(t){var i=[],e=Se;return t||(t={}),t.Application="SheetJS",i[i.length]=an,i[i.length]=Se("Properties",null,{xmlns:Fn.EXT_PROPS,"xmlns:vt":Fn.vt}),cl.forEach(function(n){if(void 0!==t[n[1]]){var r;switch(n[2]){case"string":r=Ot(String(t[n[1]]));break;case"bool":r=t[n[1]]?"true":"false"}void 0!==r&&(i[i.length]=e(n[0],r))}}),i[i.length]=e("HeadingPairs",e("vt:vector",e("vt:variant","Worksheets")+e("vt:variant",e("vt:i4",String(t.Worksheets))),{size:2,baseType:"variant"})),i[i.length]=e("TitlesOfParts",e("vt:vector",t.SheetNames.map(function(n){return""+Ot(n)+""}).join(""),{size:t.Worksheets,baseType:"lpstr"})),i.length>2&&(i[i.length]="",i[1]=i[1].replace("/>",">")),i.join("")}function L4(t){var i=[an,Se("Properties",null,{xmlns:Fn.CUST_PROPS,"xmlns:vt":Fn.vt})];if(!t)return i.join("");var e=1;return zi(t).forEach(function(r){++e,i[i.length]=Se("property",function dae(t,i){switch(typeof t){case"string":var e=Se("vt:lpwstr",Ot(t));return i&&(e=e.replace(/"/g,"_x0022_")),e;case"number":return Se((0|t)==t?"vt:i4":"vt:r8",Ot(String(t)));case"boolean":return Se("vt:bool",t?"true":"false")}if(t instanceof Date)return Se("vt:filetime",uw(t));throw new Error("Unable to serialize "+t)}(t[r],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e,name:Ot(r)})}),i.length>2&&(i[i.length]="",i[1]=i[1].replace("/>",">")),i.join("")}var Ow={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 $4(t,i){var e=re(4),n=re(4);switch(e.write_shift(4,80==t?31:t),t){case 3:n.write_shift(-4,i);break;case 5:(n=re(8)).write_shift(8,i,"f");break;case 11:n.write_shift(4,i?1:0);break;case 64:n=function ose(t){var e=("string"==typeof t?new Date(Date.parse(t)):t).getTime()/1e3+11644473600,n=e%Math.pow(2,32),r=(e-n)/Math.pow(2,32);r*=1e7;var o=(n*=1e7)/Math.pow(2,32)|0;o>0&&(n%=Math.pow(2,32),r+=o);var a=re(8);return a.write_shift(4,n),a.write_shift(4,r),a}(i);break;case 31:case 80:for((n=re(4+2*(i.length+1)+(i.length%2?0:2))).write_shift(4,i.length+1),n.write_shift(0,i,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+i)}return vn([e,n])}var W4=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function hse(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 G4(t,i,e){var n=re(8),r=[],o=[],a=8,s=0,c=re(8),l=re(8);if(c.write_shift(4,2),c.write_shift(4,1200),l.write_shift(4,1),o.push(c),r.push(l),a+=8+c.length,!i){(l=re(8)).write_shift(4,0),r.unshift(l);var d=[re(4)];for(d[0].write_shift(4,t.length),s=0;s-1||O4.indexOf(t[s][0])>-1)&&null!=t[s][1]){var h=t[s][1],f=0;if(i){var m=e[f=+i[t[s][0]]];if("version"==m.p&&"string"==typeof h){var g=h.split(".");h=(+g[0]<<16)+(+g[1]||0)}c=$4(m.t,h)}else{var p=hse(h);-1==p&&(p=31,h=String(h)),c=$4(p,h)}o.push(c),(l=re(8)).write_shift(4,i?f:2+s),r.push(l),a+=8+c.length}var _=8*(o.length+1);for(s=0;s=12?2:1),r="sbcs-cont",o=In;e&&e.biff>=8&&(In=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 s=n?t.read_shift(n,r):"";return In=o,s}function _se(t){var i=t.t||"",n=re(3);n.write_shift(2,i.length),n.write_shift(1,1);var r=re(2*i.length);return r.write_shift(2*i.length,i,"utf16le"),vn([n,r])}function K4(t,i,e){return e||(e=re(3+2*t.length)),e.write_shift(2,t.length),e.write_shift(1,1),e.write_shift(31,t,"utf16le"),e}function Z4(t,i){i||(i=re(6+2*t.length)),i.write_shift(4,1+t.length);for(var e=0;e-1?31:23;switch(n.charAt(0)){case"#":o=28;break;case".":o&=-3}i.write_shift(4,2),i.write_shift(4,o);var a=[8,6815827,6619237,4849780,83];for(e=0;e-1?n.slice(0,r):n;for(i.write_shift(4,2*(s.length+1)),e=0;e-1?n.slice(r+1):"",i)}else{for(a="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(n),t.read_shift(n,"i"),t.read_shift(n,"i")]}function W0(t){var i=t.read_shift(2),e=t.read_shift(2);return{s:{c:t.read_shift(2),r:i},e:{c:t.read_shift(2),r:e}}}function iN(t,i){return i||(i=re(8)),i.write_shift(2,t.s.r),i.write_shift(2,t.e.r),i.write_shift(2,t.s.c),i.write_shift(2,t.e.c),i}function Bw(t,i,e){var n=1536,r=16;switch(e.bookType){case"biff8":case"xla":break;case"biff5":n=1280,r=8;break;case"biff4":n=4,r=6;break;case"biff3":n=3,r=6;break;case"biff2":n=2,r=4;break;default:throw new Error("unsupported BIFF version")}var o=re(r);return o.write_shift(2,n),o.write_shift(2,i),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 Bse(t,i){var e=!i||i.biff>=8?2:1,n=re(8+e*t.name.length);n.write_shift(4,t.pos),n.write_shift(1,t.hs||0),n.write_shift(1,t.dt),n.write_shift(1,t.name.length),i.biff>=8&&n.write_shift(1,1),n.write_shift(e*t.name.length,t.name,i.biff<8?"sbcs":"utf16le");var r=n.slice(0,n.l);return r.l=n.l,r}function nce(t,i,e,n){var r=e&&5==e.biff;n||(n=re(r?3+i.length:5+2*i.length)),n.write_shift(2,t),n.write_shift(r?1:2,i.length),r||n.write_shift(1,1),n.write_shift((r?1:2)*i.length,i,r?"sbcs":"utf16le");var o=n.length>n.l?n.slice(0,n.l):n;return null==o.l&&(o.l=o.length),o}function sN(t,i,e,n){var r=e&&5==e.biff;n||(n=re(r?16:20)),n.write_shift(2,0),t.style?(n.write_shift(2,t.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,t.numFmtId||0),n.write_shift(2,i<<4));var o=0;return t.numFmtId>0&&r&&(o|=1024),n.write_shift(4,o),n.write_shift(4,0),r||n.write_shift(4,0),n.write_shift(2,0),n}function Mce(t){var i=re(24),e=bi(t[0]);i.write_shift(2,e.r),i.write_shift(2,e.r),i.write_shift(2,e.c),i.write_shift(2,e.c);for(var n="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),r=0;r<16;++r)i.write_shift(1,parseInt(n[r],16));return vn([i,Cse(t[1])])}function Ice(t){var i=t[1].Tooltip,e=re(10+2*(i.length+1));e.write_shift(2,2048);var n=bi(t[0]);e.write_shift(2,n.r),e.write_shift(2,n.r),e.write_shift(2,n.c),e.write_shift(2,n.c);for(var r=0;r1048576&&(g=1e6),2!=u&&(p=d.read_shift(2));var _=d.read_shift(2),w=c.codepage||1252;2!=u&&(d.l+=16,d.read_shift(1),0!==d[d.l]&&(w=t[d[d.l]]),d.l+=1,d.l+=2),m&&(d.l+=36);for(var x=[],E={},W=Math.min(d.length,2==u?521:p-10-(f?264:0)),N=m?32:11;d.l0;)if(42!==d[d.l])for(++d.l,l[++D]=[],B=0,B=0;B!=x.length;++B){var L=d.slice(d.l,d.l+x[B].len);d.l+=x[B].len,Rn(L,0);var j=typeof Mt<"u"?Mt.utils.decode(w,L):ka(L);switch(x[B].type){case"C":j.trim().length&&(l[D][B]=j.replace(/\s+$/,""));break;case"D":l[D][B]=8===j.length?new Date(+j.slice(0,4),+j.slice(4,6)-1,+j.slice(6,8)):j;break;case"F":l[D][B]=parseFloat(j.trim());break;case"+":case"I":l[D][B]=m?2147483648^L.read_shift(-4,"i"):L.read_shift(4,"i");break;case"L":switch(j.trim().toUpperCase()){case"Y":case"T":l[D][B]=!0;break;case"N":case"F":l[D][B]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+j+"|")}break;case"M":if(!h)throw new Error("DBF Unexpected MEMO for type "+u.toString(16));l[D][B]="##MEMO##"+(m?parseInt(j.trim(),10):L.read_shift(4));break;case"N":(j=j.replace(/\u0000/g,"").trim())&&"."!=j&&(l[D][B]=+j||0);break;case"@":l[D][B]=new Date(L.read_shift(-8,"f")-621356832e5);break;case"T":l[D][B]=new Date(864e5*(L.read_shift(4)-2440588)+L.read_shift(4));break;case"Y":l[D][B]=L.read_shift(4,"i")/1e4+L.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":l[D][B]=-L.read_shift(-8,"f");break;case"B":if(f&&8==x[B].len){l[D][B]=L.read_shift(8,"f");break}case"G":case"P":L.l+=x[B].len;break;case"0":if("_NullFlags"===x[B].name)break;default:throw new Error("DBF Unsupported data type "+x[B].type)}}else d.l+=_;if(2!=u&&d.l=0&&wo(+l.codepage),"string"==l.type)throw new Error("Cannot write DBF to JS string");var u=Br(),h=s_(s,{header:1,raw:!0,cellDates:!0}),f=h[0],m=h.slice(1),g=s["!cols"]||[],p=0,_=0,w=0,x=1;for(p=0;p250&&(j=250),"C"==(L=((g[p]||{}).DBF||{}).type)&&g[p].DBF.len>j&&(j=g[p].DBF.len),"B"==B&&"N"==L&&(B="N",D[p]=g[p].DBF.dec,j=g[p].DBF.len),N[p]="C"==B||"N"==L?j:o[B]||0,x+=N[p],W[p]=B}else W[p]="?"}var U=u.next(32);for(U.write_shift(4,318902576),U.write_shift(4,m.length),U.write_shift(2,296+32*w),U.write_shift(2,x),p=0;p<4;++p)U.write_shift(4,0);var me=+i[In]||3;for(U.write_shift(4,0|me<<8),t[me]!=+l.codepage&&(l.codepage&&console.error("DBF Unsupported codepage "+In+", using 1252"),In=1252),p=0,_=0;pN[_]&&(he=he.slice(0,N[_])),w=0;w":190,"?":191,"{":223},i=new RegExp("\x1bN("+zi(t).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),e=function(u,h){var f=t[h];return"number"==typeof f?ew(f):f},n=function(u,h,f){var m=h.charCodeAt(0)-32<<4|f.charCodeAt(0)-48;return 59==m?u:ew(m)};function o(u,h){var j,f=u.split(/[\n\r]+/),m=-1,g=-1,p=0,_=0,w=[],x=[],E=null,W={},N=[],D=[],B=[],L=0,Z={Workbook:{WBProps:{},Names:[]}};for(+h.codepage>=0&&wo(+h.codepage);p!==f.length;++p){L=0;var de,U=f[p].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(i,e),me=U.replace(/;;/g,"\0").split(";").map(function(oe){return oe.replace(/\u0000/g,";")});if(U.length>0)switch(me[0]){case"ID":case"E":case"B":case"W":break;case"O":for(_=1;_=1&&ne<=4&&(Z.Workbook.WBProps.date1904=!0)}break;case"P":"P"===me[1].charAt(0)&&x.push(U.slice(3).replace(/;;/g,";"));break;case"NN":var Y={Sheet:0};for(_=1;_-1&&w[qe][mt];if(!z||!z[1])throw new Error("SYLK shared formula cannot find base");F=AN(z[1],{r:m-qe,c:g-mt})}F&&(w[m][g]?w[m][g].f=F:w[m][g]={t:"n",f:F});break;case"F":var V=0;for(_=1;_0?(N[m].hpt=L,N[m].hpx=su(L)):0===L&&(N[m].hidden=!0);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+U)}V<1&&(E=null);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+U)}}return N.length>0&&(W["!rows"]=N),D.length>0&&(W["!cols"]=D),D.forEach(function(oe){Js(oe)}),h&&h.sheetRows&&(w=w.slice(0,h.sheetRows)),[w,W,Z]}function s(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"+Z0(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 a(u,h){var f=function r(u,h){switch(h.type){case"base64":return o(eo(u),h);case"binary":return o(u,h);case"buffer":return o(Vt&&Buffer.isBuffer(u)?u.toString("binary"):ka(u),h);case"array":return o(Jc(u),h)}throw new Error("Unrecognized type "+h.type)}(u,h),m=f[0],g=f[1],p=f[2],_=yi(h);_.date1904=(((p||{}).Workbook||{}).WBProps||{}).date1904;var w=nu(m,_);zi(g).forEach(function(E){w[E]=g[E]});var x=Ks(w,h);return zi(p).forEach(function(E){x[E]=p[E]}),x.bookType="sylk",x},from_sheet:function d(u,h,f){var _,m=["ID;PSheetJS;N;E"],g=[],p=Kt(u["!ref"]),w=null!=u["!data"],x="\r\n",E=(((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=Nf(f.width)),"number"==typeof f.wpx&&!f.wch&&(f.wch=Lf(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*Bf(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"+(E?";V4":"")+";K47;G100 0.001");for(var W=p.s.r;W<=p.e.r;++W)if(!w||u["!data"][W]){for(var N=[],D=p.s.c;D<=p.e.c;++D)(_=w?u["!data"][W][D]:u[Ht(D)+Yt(W)])&&(null!=_.v||_.f&&!_.F)&&N.push(s(_,0,W,D));g.push(N.join(x))}return m.join(x)+x+g.join(x)+x+"E"+x}}}(),_N=function(){function i(s,c){for(var l=s.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],_=l[++h]||"";1&(_.match(/["]/g)||[]).length&&h=0||d.indexOf(",")>=0||d.indexOf(";")>=0?function o(d,u){var h=u||{},f="";null!=on&&null==h.dense&&(h.dense=on);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,_=0,w=0,x=0,E=0,W=f.charCodeAt(0),N=!1,D=0,B=d.charCodeAt(0),L=null!=h.dateNF?function Voe(t){var i="number"==typeof t?ut[t]:t;return i=i.replace(NP,"(\\d+)"),new RegExp("^"+i+"$")}(h.dateNF):null;function j(){var Z=d.slice(x,E);"\r"==Z.slice(-1)&&(Z=Z.slice(0,-1));var U={};if('"'==Z.charAt(0)&&'"'==Z.charAt(Z.length-1)&&(Z=Z.slice(1,-1).replace(/""/g,'"')),0===Z.length?U.t="z":h.raw||0===Z.trim().length?(U.t="s",U.v=Z):61==Z.charCodeAt(0)?34==Z.charCodeAt(1)&&34==Z.charCodeAt(Z.length-1)?(U.t="s",U.v=Z.slice(2,-1).replace(/""/g,'"')):function Cue(t){return 1!=t.length}(Z)?(U.t="n",U.f=Z.slice(1)):(U.t="s",U.v=Z):"TRUE"==Z?(U.t="b",U.v=!0):"FALSE"==Z?(U.t="b",U.v=!1):isNaN(w=to(Z))?!isNaN((w=eu(Z)).getDate())||L&&Z.match(L)?(U.z=h.dateNF||ut[14],L&&Z.match(L)&&(Z=function Hoe(t,i,e){var n=-1,r=-1,o=-1,a=-1,s=-1,c=-1;(i.match(NP)||[]).forEach(function(u,h){var f=parseInt(e[h+1],10);switch(u.toLowerCase().charAt(0)){case"y":n=f;break;case"d":o=f;break;case"h":a=f;break;case"s":c=f;break;case"m":a>=0?s=f:r=f}}),c>=0&&-1==s&&r>=0&&(s=r,r=-1);var l=(""+(n>=0?n:(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"+(a>=0?a:0)).slice(-2)+":"+("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(c>=0?c:0)).slice(-2);return-1==a&&-1==s&&-1==c?l:-1==n&&-1==r&&-1==o?d:l+"T"+d}(0,h.dateNF,Z.match(L)||[]),w=$i(Z,1)),h.cellDates?(U.t="d",U.v=w):(U.t="n",U.v=xn(w)),!1!==h.cellText&&(U.w=Nr(U.z,U.v instanceof Date?xn(U.v):U.v)),h.cellNF||delete U.z):(U.t="s",U.v=Z):(U.t="n",!1!==h.cellText&&(U.w=Z),U.v=w),"z"==U.t||(h.dense?(m["!data"][p]||(m["!data"][p]=[]),m["!data"][p][_]=U):m[zt({c:_,r:p})]=U),B=d.charCodeAt(x=E+1),g.e.c<_&&(g.e.c=_),g.e.r0&&j(),m["!ref"]=Et(g),m}(d,u):nu(function i(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,_=0,w=0;w<=g;++w)-1==(_=m[w].indexOf(" "))?_=m[w].length:_++,p=Math.max(p,_);for(w=0;w<=g;++w){f[w]=[];var x=0;for(t(m[w].slice(0,p).trim(),f,w,x,h),x=1;x<=(m[w].length-p)/10+1;++x)t(m[w].slice(p+10*(x-1),p+10*x).trim(),f,w,x,h)}return h.sheetRows&&(f=f.slice(0,h.sheetRows)),f}(d,u),u)}function s(d,u){var h="",f="string"==u.type?[0,0,0,0]:function sC(t,i){var e="";switch((i||{}).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=eo(t.slice(0,12));break;case"binary":e=t;break;default:throw new Error("Unrecognized type "+(i&&i.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=eo(d);break;case"binary":case"string":h=d;break;case"buffer":h=65001==u.codepage?d.toString("utf8"):u.codepage&&typeof Mt<"u"?Mt.utils.decode(u.codepage,d):Vt&&Buffer.isBuffer(d)?d.toString("binary"):ka(d);break;case"array":h=Jc(d);break;default:throw new Error("Unrecognized type "+u.type)}return 239==f[0]&&187==f[1]&&191==f[2]?h=Ci(h.slice(3)):"string"!=u.type&&"buffer"!=u.type&&65001==u.codepage?h=Ci(h):"binary"==u.type&&typeof Mt<"u"&&u.codepage&&(h=Mt.utils.decode(u.codepage,Mt.utils.encode(28591,h))),"socialcalc:version:"==h.slice(0,19)?bN.to_sheet("string"==u.type?h:Ci(h),u):a(h,u)}return{to_workbook:function c(d,u){return Ks(s(d,u),u)},to_sheet:s,from_sheet:function l(d){for(var f,u=[],h=Kt(d["!ref"]),m=null!=d["!data"],g=h.s.r;g<=h.e.r;++g){for(var p=[],_=h.s.c;_<=h.e.c;++_){var w=zt({r:g,c:_});if((f=m?(d["!data"][g]||[])[_]:d[w])&&null!=f.v){for(var x=(f.w||(Ea(f),f.w)||"").slice(0,10);x.length<10;)x+=" ";p.push(x+(0===_?" ":""))}else p.push(" ")}u.push(p.join(""))}return u.join("\n")}}}(),hl=function(){function t(F,K,z){if(F){Rn(F,F.l||0);for(var V=z.Enum||ce;F.l255||Re.s.r>999999)break;Re.e.cJt&&(Re.s.c=Jt),Ve=Ze.read_shift(4),Re.s.r>Ve&&(Re.s.r=Ve),Ve=Ze.read_shift(4),Re.e.rVe&&(Re.s.r=Ve),Re.e.r0&&T>=0;){if(32&Si)switch(31&Si){case 2:oi={t:"n",v:oi.v+fr&65535};break;case 3:(oi={t:"n",v:oi.v+fr&65535}).v>32767&&(oi.v-=65536);break;case 7:oi={t:"s",v:oe[bt=bt+fr>>>0]};break;default:throw"Cannot apply delta for QPW cell type "+(31&Si)}else switch(31&Si){case 1:oi={t:"z"};break;case 2:oi={t:"n",v:Ze.read_shift(2)};break;case 7:oi={t:"s",v:oe[bt=Ze.read_shift(4)-1]};break;default:throw"Cannot apply repeat for QPW cell type "+(31&Si)}!z.sheetStubs&&"z"==oi.t||(null!=V["!data"]?(V["!data"][Ve]||(V["!data"][Ve]=[]),V["!data"][Ve][Jt]=oi):V[hr+Yt(Ve)]=oi),++Ve,--T}}}F.l+=si}return $t}(F,K);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])z.Enum=ce,t(F,function(Le,hr,oi){switch(oi){case 0:z.vers=Le,Le>=4096&&(z.qpro=!0);break;case 255:z.vers=Le,z.works=!0;break;case 6:Ve=Le;break;case 204:Le&&(_e=Le);break;case 222:_e=Le;break;case 15:case 51:(!z.qpro&&!z.works||51==oi)&&Le[1].v.charCodeAt(0)<48&&(Le[1].v=Le[1].v.slice(1)),(z.works||z.works2)&&(Le[1].v=Le[1].v.replace(/\r\n/g,"\n"));case 13:case 14:case 16:14==oi&&112==(112&Le[2])&&(15&Le[2])>1&&(15&Le[2])<15&&(Le[1].z=z.dateNF||ut[14],z.cellDates&&(Le[1].t="d",Le[1].v=F0(Le[1].v))),z.qpro&&Le[3]>Ie&&(V["!ref"]=Et(Ve),Re[oe]=V,T.push(oe),V={},z.dense&&(Jt=V["!data"]=[]),Ve={s:{r:0,c:0},e:{r:0,c:0}},Ie=Le[3],oe=_e||"Sheet"+(Ie+1),_e="");var Si=z.dense?(Jt[Le[0].r]||[])[Le[0].c]:V[zt(Le[0])];if(Si){Si.t=Le[1].t,Si.v=Le[1].v,null!=Le[1].z&&(Si.z=Le[1].z),null!=Le[1].f&&(Si.f=Le[1].f);break}z.dense?(Jt[Le[0].r]||(Jt[Le[0].r]=[]),Jt[Le[0].r][Le[0].c]=Le[1]):V[zt(Le[0])]=Le[1];break;case 21509:z.works2=!0}},z);else{if(26!=F[2]&&14!=F[2])throw new Error("Unrecognized LOTUS BOF "+F[2]);z.Enum=qe,14==F[2]&&(z.qpro=!0,F.l=0),t(F,function(Le,hr,oi){switch(oi){case 204:oe=Le;break;case 22:Le[1].v.charCodeAt(0)<48&&(Le[1].v=Le[1].v.slice(1)),Le[1].v=Le[1].v.replace(/\x0F./g,function(Si){return String.fromCharCode(Si.charCodeAt(1)-32)}).replace(/\r\n/g,"\n");case 23:case 24:case 25:case 37:case 39:case 40:if(Le[3]>Ie&&(V["!ref"]=Et(Ve),Re[oe]=V,T.push(oe),V={},z.dense&&(Jt=V["!data"]=[]),Ve={s:{r:0,c:0},e:{r:0,c:0}},oe="Sheet"+((Ie=Le[3])+1)),$t>0&&Le[0].r>=$t)break;z.dense?(Jt[Le[0].r]||(Jt[Le[0].r]=[]),Jt[Le[0].r][Le[0].c]=Le[1]):V[zt(Le[0])]=Le[1],Ve.e.c=128?95:_e)}return V.write_shift(1,0),V}function m(F,K,z){var V=re(7);return V.write_shift(1,255),V.write_shift(2,K),V.write_shift(2,F),V.write_shift(2,z,"i"),V}function p(F,K,z){var V=re(13);return V.write_shift(1,255),V.write_shift(2,K),V.write_shift(2,F),V.write_shift(8,z,"f"),V}function w(F,K,z){var V=32768&K;return K=(V?F:0)+((K&=-32769)>=8192?K-16384:K),(V?"":"$")+(z?Ht(K):Yt(K))}var x={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]},E=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function N(F){var K=[{c:0,r:0},{t:"n",v:0},0];return K[0].r=F.read_shift(2),K[3]=F[F.l++],K[0].c=F[F.l++],K}function B(F,K,z,V){var oe=re(6+V.length);oe.write_shift(2,F),oe.write_shift(1,z),oe.write_shift(1,K),oe.write_shift(1,39);for(var _e=0;_e=128?95:Ie)}return oe.write_shift(1,0),oe}function j(F,K){var z=N(F),V=F.read_shift(4),oe=F.read_shift(4),_e=F.read_shift(2);if(65535==_e)return 0===V&&3221225472===oe?(z[1].t="e",z[1].v=15):0===V&&3489660928===oe?(z[1].t="e",z[1].v=42):z[1].v=0,z;var Ie=32768&_e;return _e=(32767&_e)-16446,z[1].v=(1-2*Ie)*(oe*Math.pow(2,_e+32)+V*Math.pow(2,_e)),z}function Z(F,K,z,V){var oe=re(14);if(oe.write_shift(2,F),oe.write_shift(1,z),oe.write_shift(1,K),0==V)return oe.write_shift(4,0),oe.write_shift(4,0),oe.write_shift(2,65535),oe;var _e=0,Ie=0,T=0;return V<0&&(_e=1,V=-V),Ie=0|Math.log2(V),2147483648&(T=(V/=Math.pow(2,Ie-31))>>>0)||(++Ie,T=(V/=2)>>>0),V-=T,T|=2147483648,T>>>=0,V*=Math.pow(2,32),oe.write_shift(4,V>>>0),oe.write_shift(4,T),oe.write_shift(2,Ie+=16383+(_e?32768:0)),oe}function be(F,K){var z=N(F),V=F.read_shift(8,"f");return z[1].v=V,z}function ne(F,K){return 0==F[F.l+K-1]?F.read_shift(K,"cstr"):""}function Ne(F,K){var z=re(5+F.length);z.write_shift(2,14e3),z.write_shift(2,K);for(var V=0;V127?95:oe}return z[z.l++]=0,z}var ce={0:{n:"BOF",f:cn},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function s(F,K,z){var V={s:{c:0,r:0},e:{c:0,r:0}};return 8==K&&z.qpro?(V.s.c=F.read_shift(1),F.l++,V.s.r=F.read_shift(2),V.e.c=F.read_shift(1),F.l++,V.e.r=F.read_shift(2),V):(V.s.c=F.read_shift(2),V.s.r=F.read_shift(2),12==K&&z.qpro&&(F.l+=2),V.e.c=F.read_shift(2),V.e.r=F.read_shift(2),12==K&&z.qpro&&(F.l+=2),65535==V.s.c&&(V.s.c=V.e.c=V.s.r=V.e.r=0),V)}},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,K,z){var V=l(F,0,z);return V[1].v=F.read_shift(2,"i"),V}},14:{n:"NUMBER",f:function g(F,K,z){var V=l(F,0,z);return V[1].v=F.read_shift(8,"f"),V}},15:{n:"LABEL",f:function d(F,K,z){var V=F.l+K,oe=l(F,0,z);if(oe[1].t="s",20768==z.vers){F.l++;var _e=F.read_shift(1);return oe[1].v=F.read_shift(_e,"utf8"),oe}return z.qpro&&F.l++,oe[1].v=F.read_shift(V-F.l,"cstr"),oe}},16:{n:"FORMULA",f:function _(F,K,z){var V=F.l+K,oe=l(F,0,z);if(oe[1].v=F.read_shift(8,"f"),z.qpro)F.l=V;else{var _e=F.read_shift(2);(function W(F,K){Rn(F,0);for(var z=[],V=0,oe="",_e="",Ie="",Re="";F.lz.length)return void console.error("WK1 bad formula parse 0x"+T.toString(16)+":|"+z.join("|")+"|");var $t=z.slice(-V);z.length-=V,z.push(x[T][0]+"("+$t.join(",")+")")}}}1==z.length?K[1].f=""+z[0]:console.error("WK1 bad formula parse |"+z.join("|")+"|")})(F.slice(F.l,F.l+_e),oe),F.l+=_e}return oe}},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,K,z){var V=F.l+K,oe=l(F,0,z);if(oe[1].t="s",20768==z.vers){var _e=F.read_shift(1);return oe[1].v=F.read_shift(_e,"utf8"),oe}return oe[1].v=F.read_shift(V-F.l,"cstr"),oe}},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:ne},222:{n:"SHEETNAMELP",f:function Y(F,K){var z=F[F.l++];z>K-1&&(z=K-1);for(var V="";V.length>1;if(1&z[1].v)switch(7&V){case 0:V=5e3*(V>>3);break;case 1:V=500*(V>>3);break;case 2:V=(V>>3)/20;break;case 3:V=(V>>3)/200;break;case 4:V=(V>>3)/2e3;break;case 5:V=(V>>3)/2e4;break;case 6:V=(V>>3)/16;break;case 7:V=(V>>3)/64}return z[1].v=V,z}},25:{n:"FORMULA19",f:function U(F,K){var z=j(F);return F.l+=K-14,z}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function se(F,K){for(var z={},V=F.l+K;F.l>6,z}},38:{n:"??"},39:{n:"NUMBER27",f:be},40:{n:"FORMULA28",f:function de(F,K){var z=be(F);return F.l+=K-12,z}},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:ne},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 he(F,K,z){if(z.qpro&&!(K<21)){var V=F.read_shift(1);return F.l+=17,F.l+=1,F.l+=2,[V,F.read_shift(K-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 n(F,K){var z=K||{};if(+z.codepage>=0&&wo(+z.codepage),"string"==z.type)throw new Error("Cannot write WK1 to JS string");var V=Br(),oe=Kt(F["!ref"]),_e=null!=F["!data"],Ie=[];Me(V,0,function o(F){var K=re(2);return K.write_shift(2,F),K}(1030)),Me(V,6,function c(F){var K=re(8);return K.write_shift(2,F.s.c),K.write_shift(2,F.s.r),K.write_shift(2,F.e.c),K.write_shift(2,F.e.r),K}(oe));for(var Re=Math.min(oe.e.r,8191),T=oe.s.c;T<=oe.e.c;++T)Ie[T]=Ht(T);for(var bt=oe.s.r;bt<=Re;++bt){var Jt=Yt(bt);for(T=oe.s.c;T<=oe.e.c;++T){var Ve=_e?(F["!data"][bt]||[])[T]:F[Ie[T]+Jt];Ve&&"z"!=Ve.t&&("n"==Ve.t?(0|Ve.v)==Ve.v&&Ve.v>=-32768&&Ve.v<=32767?Me(V,13,m(bt,T,Ve.v)):Me(V,14,p(bt,T,Ve.v)):Me(V,15,u(bt,T,Ea(Ve).slice(0,239))))}}return Me(V,1),V.end()},book_to_wk3:function r(F,K){var z=K||{};if(+z.codepage>=0&&wo(+z.codepage),"string"==z.type)throw new Error("Cannot write WK3 to JS string");var V=Br();Me(V,0,function a(F){var K=re(26);K.write_shift(2,4096),K.write_shift(2,4),K.write_shift(4,0);for(var z=0,V=0,oe=0,_e=0;_e8191&&(z=8191),K.write_shift(2,z),K.write_shift(1,oe),K.write_shift(1,V),K.write_shift(2,0),K.write_shift(2,0),K.write_shift(1,1),K.write_shift(1,2),K.write_shift(4,0),K.write_shift(4,0),K}(F));for(var oe=0,_e=0;oe=0;--o)i=((16384&i?1:0)|i<<1&32767)^e[o];return 52811^i}function Pf(t){for(var i=0,e=1;3!=i;++i)e=256*e+(t[i]>255?255:t[i]<0?0:t[i]);return e.toString(16).toUpperCase().slice(1)}var dr=6;function Nf(t){return Math.floor((t+Math.round(128/dr)/256)*dr)}function Lf(t){return Math.floor((t-5)/dr*100+.5)/100}function Q0(t){return Math.round((t*dr+5)/dr*256)/256}function Js(t){t.width?(t.wpx=Nf(t.width),t.wch=Lf(t.wpx),t.MDW=dr):t.wpx?(t.wch=Lf(t.wpx),t.width=Q0(t.wch),t.MDW=dr):"number"==typeof t.wch&&(t.width=Q0(t.wch),t.wpx=Nf(t.width),t.MDW=dr),t.customWidth&&delete t.customWidth}var kN=96;function Bf(t){return 96*t/kN}function su(t){return t*kN/96}function tde(t,i,e){e||(e=re(6+4*i.length)),e.write_shift(2,t),Pn(i,e);var n=e.length>e.l?e.slice(0,e.l):e;return null==e.l&&(e.l=e.length),n}var jw,rde=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],ode=ar;function DN(t,i){i||(i=re(84)),jw||(jw=M0(rde));var e=jw[t.patternType];null==e&&(e=40),i.write_shift(4,e);var n=0;if(40!=e)for(B0({auto:1},i),B0({auto:1},i);n<12;++n)i.write_shift(4,0);else{for(;n<4;++n)i.write_shift(4,0);for(;n<12;++n)i.write_shift(4,0)}return i.length>i.l?i.slice(0,i.l):i}function SN(t,i,e){return e||(e=re(16)),e.write_shift(2,i||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 Vf(t,i){return i||(i=re(10)),i.write_shift(1,0),i.write_shift(1,0),i.write_shift(4,0),i.write_shift(4,0),i}var sde=ar;function yde(t,i){var e=Br();return fe(e,278),function hde(t,i){if(i){var e=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var r=n[0];r<=n[1];++r)null!=i[r]&&++e}),0!=e&&(fe(t,615,Qo(e)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var r=n[0];r<=n[1];++r)null!=i[r]&&fe(t,44,tde(r,i[r]))}),fe(t,616))}}(e,t.SSF),function fde(t){fe(t,611,Qo(1)),fe(t,43,function nde(t,i){i||(i=re(153)),i.write_shift(2,20*t.sz),function Pae(t,i){i||(i=re(2)),i.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)),i.write_shift(1,0)}(t,i),i.write_shift(2,t.bold?700:400);var e=0;"superscript"==t.vertAlign?e=1:"subscript"==t.vertAlign&&(e=2),i.write_shift(2,e),i.write_shift(1,t.underline||0),i.write_shift(1,t.family||0),i.write_shift(1,t.charset||0),i.write_shift(1,0),B0(t.color,i);var n=0;return"major"==t.scheme&&(n=1),"minor"==t.scheme&&(n=2),i.write_shift(1,n),Pn(t.name,i),i.length>i.l?i.slice(0,i.l):i}({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),fe(t,612)}(e),function mde(t){fe(t,603,Qo(2)),fe(t,45,DN({patternType:"none"})),fe(t,45,DN({patternType:"gray125"})),fe(t,604)}(e),function pde(t){fe(t,613,Qo(1)),fe(t,46,function cde(t,i){return i||(i=re(51)),i.write_shift(1,0),Vf(0,i),Vf(0,i),Vf(0,i),Vf(0,i),Vf(0,i),i.length>i.l?i.slice(0,i.l):i}()),fe(t,614)}(e),function gde(t){fe(t,626,Qo(1)),fe(t,47,SN({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),fe(t,627)}(e),function _de(t,i){fe(t,617,Qo(i.length)),i.forEach(function(e){fe(t,47,SN(e,0))}),fe(t,618)}(e,i.cellXfs),function bde(t){fe(t,619,Qo(1)),fe(t,48,function lde(t,i){return i||(i=re(52)),i.write_shift(4,t.xfId),i.write_shift(2,1),i.write_shift(1,+t.builtinId),i.write_shift(1,0),Af(t.name||"",i),i.length>i.l?i.slice(0,i.l):i}({xfId:0,builtinId:0,name:"Normal"})),fe(t,620)}(e),function vde(t){fe(t,505,Qo(0)),fe(t,506)}(e),function xde(t){fe(t,508,function dde(t,i,e){var n=re(2052);return n.write_shift(4,t),Af(i,n),Af(e,n),n.length>n.l?n.slice(0,n.l):n}(0,"TableStyleMedium9","PivotStyleMedium4")),fe(t,509)}(e),fe(e,279),e.end()}function Ww(t,i){if(i&&i.themeXLSX)return i.themeXLSX;if(t&&"string"==typeof t.raw)return t.raw;var e=[an];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 TN(t,i){var e=[21600,21600],n=["m0,0l0",e[1],e[0],e[1],e[0],"0xe"].join(","),r=[Se("xml",null,{"xmlns:v":io.v,"xmlns:o":io.o,"xmlns:x":io.x,"xmlns:mv":io.mv}).replace(/\/>/,">"),Se("o:shapelayout",Se("o:idmap",null,{"v:ext":"edit",data:t}),{"v:ext":"edit"})],o=65536*t,a=i||[];return a.length>0&&r.push(Se("v:shapetype",[Se("v:stroke",null,{joinstyle:"miter"}),Se("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202",coordsize:e.join(","),"o:spt":202,path:n})),a.forEach(function(s){++o,r.push(function tue(t,i){var e=bi(t[0]),n={color2:"#BEFF82",type:"gradient"};"gradient"==n.type&&(n.angle="-180");var r="gradient"==n.type?Se("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,o=Se("v:fill",r,n);return["",o,Se("v:shadow",null,{on:"t",obscured:"t"}),Se("v:path",null,{"o:connecttype":"none"}),'
','',"","",Xn("x:Anchor",[e.c+1,0,e.r+1,0,e.c+3,20,e.r+5,20].join(",")),Xn("x:AutoFill","False"),Xn("x:Row",String(e.r)),Xn("x:Column",String(e.c)),t[1].hidden?"":"","",""].join("")}(s,o))}),r.push(""),r.join("")}function nue(t){var i=[an,Se("comments",null,{xmlns:el[0]})],e=[];return i.push(""),t.forEach(function(n){n[1].forEach(function(r){var o=Ot(r.a);-1==e.indexOf(o)&&(e.push(o),i.push(""+o+"")),r.T&&r.ID&&-1==e.indexOf("tc="+r.ID)&&(e.push("tc="+r.ID),i.push("tc="+r.ID+""))})}),0==e.length&&(e.push("SheetJ5"),i.push("SheetJ5")),i.push(""),i.push(""),t.forEach(function(n){var r=0,o=[],a=0;if(n[1][0]&&n[1][0].T&&n[1][0].ID&&(r=e.indexOf("tc="+n[1][0].ID)),n[1].forEach(function(l){l.a&&(r=e.indexOf(Ot(l.a))),l.T&&++a,o.push(null==l.t?"":Ot(l.t))}),0===a)n[1].forEach(function(l){i.push(''),i.push(Xn("t",null==l.t?"":Ot(l.t))),i.push("")});else{i.push('');for(var s="Comment:\n "+o[0]+"\n",c=1;c")}}),i.push(""),i.length>2&&(i[i.length]="",i[1]=i[1].replace("/>",">")),i.join("")}function oue(t,i,e){var n=[an,Se("ThreadedComments",null,{xmlns:Fn.TCMNT}).replace(/[\/]>/,">")];return t.forEach(function(r){var o="";(r[1]||[]).forEach(function(a,s){if(a.T){a.a&&-1==i.indexOf(a.a)&&i.push(a.a);var c={ref:r[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+e.tcid++).slice(-12)+"}"};0==s?o=c.id:c.parentId=o,a.ID=c.id,a.a&&(c.personId="{54EE7950-7262-4200-6969-"+("000000000000"+i.indexOf(a.a)).slice(-12)+"}"),n.push(Se("threadedComment",Xn("text",a.t||""),c))}else delete a.ID})}),n.push(""),n.join("")}var due=sr;function fue(t){var i=Br(),e=[];return fe(i,628),fe(i,630),t.forEach(function(n){n[1].forEach(function(r){e.indexOf(r.a)>-1||(e.push(r.a.slice(0,54)),fe(i,632,function uue(t){return Pn(t.slice(0,54))}(r.a)))})}),fe(i,631),fe(i,633),t.forEach(function(n){n[1].forEach(function(r){r.iauthor=e.indexOf(r.a);var o={s:bi(n[0]),e:bi(n[0])};fe(i,635,function lue(t,i){return null==i&&(i=re(36)),i.write_shift(4,t[1].iauthor),ru(t[0],i),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,0),i}([o,r])),r.t&&r.t.length>0&&fe(i,637,function Mae(t,i){var e=!1;return null==i&&(e=!0,i=re(23+4*t.t.length)),i.write_shift(1,1),Pn(t.t,i),i.write_shift(4,1),function Sae(t,i){i||(i=re(4)),i.write_shift(2,t.ich||0),i.write_shift(2,t.ifnt||0)}({ich:0,ifnt:0},i),e?i.slice(0,i.l):i}(r)),fe(i,636),delete r.iauthor})}),fe(i,634),fe(i,629),i.end()}var _ue=["xlsb","xlsm","xlam","biff8","xla"],fl=function(){var t=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,i={r:0,c:0};function e(n,r,o,a){var s=!1,c=!1;0==o.length?c=!0:"["==o.charAt(0)&&(c=!0,o=o.slice(1,-1)),0==a.length?s=!0:"["==a.charAt(0)&&(s=!0,a=a.slice(1,-1));var l=o.length>0?0|parseInt(o,10):0,d=a.length>0?0|parseInt(a,10):0;return s?d+=i.c:--d,c?l+=i.r:--l,r+(s?"":"$")+Ht(d)+(c?"":"$")+Yt(l)}return function(r,o){return i=o,r.replace(t,e)}}(),Gw=/(^|[^._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,Z0=function(){return function(i,e){return i.replace(Gw,function(n,r,o,a,s,c){var l=xw(a)-(o?0:e.c),d=vw(c)-(s?0:e.r);return r+"R"+("$"==s?d+1:0==d?"":"["+d+"]")+"C"+("$"==o?l+1:0==l?"":"["+l+"]")})}}();function AN(t,i){return t.replace(Gw,function(e,n,r,o,a,s){return n+("$"==r?r+o:Ht(xw(o)+i.c))+("$"==a?a+s:Yt(vw(s)+i.r))})}function Cn(t){t.l+=1}function ec(t,i){var e=t.read_shift(1==i?1:2);return[16383&e,e>>14&1,e>>15&1]}function FN(t,i,e){var n=2;if(e){if(e.biff>=2&&e.biff<=5)return RN(t);12==e.biff&&(n=4)}var r=t.read_shift(n),o=t.read_shift(n),a=ec(t,2),s=ec(t,2);return{s:{r,c:a[0],cRel:a[1],rRel:a[2]},e:{r:o,c:s[0],cRel:s[1],rRel:s[2]}}}function RN(t){var i=ec(t,2),e=ec(t,2),n=t.read_shift(1),r=t.read_shift(1);return{s:{r:i[0],c:n,cRel:i[1],rRel:i[2]},e:{r:e[0],c:r,cRel:e[1],rRel:e[2]}}}function ON(t,i,e){if(e&&e.biff>=2&&e.biff<=5)return function Due(t){var i=ec(t,2),e=t.read_shift(1);return{r:i[0],c:e,cRel:i[1],rRel:i[2]}}(t);var n=t.read_shift(e&&12==e.biff?4:2),r=ec(t,2);return{r:n,c:r[0],cRel:r[1],rRel:r[2]}}function Sue(t){var i=t.read_shift(2),e=t.read_shift(2);return{r:i,c:255&e,fQuoted:!!(16384&e),cRel:e>>15,rRel:e>>15}}function PN(t){var i=1&t[t.l+1];return t.l+=4,[i,1]}function NN(t){return[t.read_shift(1),t.read_shift(1)]}function the(t,i){var e=[t.read_shift(1)];if(12==i)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 sn(t,i){return 1===t.read_shift(i)}(t,1)?"TRUE":"FALSE",12!=i&&(t.l+=7);break;case 37:case 16:e[1]=ms[t[t.l]],t.l+=12==i?4:8;break;case 0:t.l+=8;break;case 1:e[1]=cr(t);break;case 2:e[1]=function dl(t,i,e){if(e.biff>5)return function Of(t,i,e){var n=t.read_shift(e&&2==e.biff?1:2);return 0===n?(t.l++,""):function ll(t,i,e){if(e){if(e.biff>=2&&e.biff<=5)return t.read_shift(i,"cpstr");if(e.biff>=12)return t.read_shift(i,"dbcs-cont")}var r=t.read_shift(1);return t.read_shift(i,0===r?"sbcs-cont":"dbcs-cont")}(t,n,e)}(t,0,e);var n=t.read_shift(1);return 0===n?(t.l++,""):t.read_shift(n,e.biff<=4||!t.lens?"cpstr":"sbcs-cont")}(t,0,{biff:i>0&&i<8?2:i});break;default:throw new Error("Bad SerAr: "+e[0])}return e}function ihe(t,i,e){for(var n=t.read_shift(12==e.biff?4:2),r=[],o=0;o!=n;++o)r.push((12==e.biff?ol:W0)(t,8));return r}function nhe(t,i,e){var n=0,r=0;12==e.biff?(n=t.read_shift(4),r=t.read_shift(4)):(r=1+t.read_shift(1),n=1+t.read_shift(2)),e.biff>=2&&e.biff<8&&(--n,0==--r&&(r=256));for(var o=0,a=[];o!=n&&(a[o]=[]);++o)for(var s=0;s!=r;++s)a[o][s]=the(t,e.biff);return a}function Hf(t,i,e){return t.l+=2,[Sue(t)]}function qw(t){return t.l+=6,[]}function LN(t){return t.l+=2,[cn(t),1&t.read_shift(2)]}var Che=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"],BN={1:{n:"PtgExp",f:function Que(t,i,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:ar},3:{n:"PtgAdd",f:Cn},4:{n:"PtgSub",f:Cn},5:{n:"PtgMul",f:Cn},6:{n:"PtgDiv",f:Cn},7:{n:"PtgPower",f:Cn},8:{n:"PtgConcat",f:Cn},9:{n:"PtgLt",f:Cn},10:{n:"PtgLe",f:Cn},11:{n:"PtgEq",f:Cn},12:{n:"PtgGe",f:Cn},13:{n:"PtgGt",f:Cn},14:{n:"PtgNe",f:Cn},15:{n:"PtgIsect",f:Cn},16:{n:"PtgUnion",f:Cn},17:{n:"PtgRange",f:Cn},18:{n:"PtgUplus",f:Cn},19:{n:"PtgUminus",f:Cn},20:{n:"PtgPercent",f:Cn},21:{n:"PtgParen",f:Cn},22:{n:"PtgMissArg",f:Cn},23:{n:"PtgStr",f:function ehe(t,i,e){return t.l++,Rf(t,0,e)}},26:{n:"PtgSheet",f:function She(t,i,e){return t.l+=5,t.l+=2,t.l+=2==e.biff?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function Ehe(t,i,e){return t.l+=2==e.biff?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function Yue(t){return t.l++,ms[t.read_shift(1)]}},29:{n:"PtgBool",f:function Zue(t){return t.l++,0!==t.read_shift(1)}},30:{n:"PtgInt",f:function Kue(t){return t.l++,t.read_shift(2)}},31:{n:"PtgNum",f:function Jue(t){return t.l++,cr(t)}},32:{n:"PtgArray",f:function Oue(t,i,e){var n=(96&t[t.l++])>>5;return t.l+=2==e.biff?6:12==e.biff?14:7,[n]}},33:{n:"PtgFunc",f:function Wue(t,i,e){var n=(96&t[t.l])>>5;t.l+=1;var r=t.read_shift(e&&e.biff<=3?1:2);return[ofe[r],zN[r],n]}},34:{n:"PtgFuncVar",f:function Gue(t,i,e){var n=t[t.l++],r=t.read_shift(1),o=e&&e.biff<=3?[88==n?-1:0,t.read_shift(1)]:function que(t){return[t[t.l+1]>>7,32767&t.read_shift(2)]}(t);return[r,(0===o[0]?zN:rfe)[o[1]]]}},35:{n:"PtgName",f:function rhe(t,i,e){var n=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[n,0,o]}},36:{n:"PtgRef",f:function zue(t,i,e){var n=(96&t[t.l])>>5;return t.l+=1,[n,ON(t,0,e)]}},37:{n:"PtgArea",f:function Mue(t,i,e){return[(96&t[t.l++])>>5,FN(t,0,e)]}},38:{n:"PtgMemArea",f:function she(t,i,e){var n=t.read_shift(1)>>>5&3;return t.l+=e&&2==e.biff?3:4,[n,t.read_shift(e&&2==e.biff?1:2)]}},39:{n:"PtgMemErr",f:ar},40:{n:"PtgMemNoMem",f:ar},41:{n:"PtgMemFunc",f:function che(t,i,e){return[t.read_shift(1)>>>5&3,t.read_shift(e&&2==e.biff?1:2)]}},42:{n:"PtgRefErr",f:function lhe(t,i,e){var n=t.read_shift(1)>>>5&3;return t.l+=4,e.biff<8&&t.l--,12==e.biff&&(t.l+=2),[n]}},43:{n:"PtgAreaErr",f:function Iue(t,i,e){var n=(96&t[t.l++])>>5;return t.l+=e&&e.biff>8?12:e.biff<8?6:8,[n]}},44:{n:"PtgRefN",f:function $ue(t,i,e){var n=(96&t[t.l])>>5;t.l+=1;var r=function Eue(t,i,e){var n=e&&e.biff?e.biff:8;if(n>=2&&n<=5)return function Tue(t){var i=t.read_shift(2),e=t.read_shift(1),n=(32768&i)>>15,r=(16384&i)>>14;return i&=16383,1==n&&i>=8192&&(i-=16384),1==r&&e>=128&&(e-=256),{r:i,c:e,cRel:r,rRel:n}}(t);var r=t.read_shift(n>=12?4:2),o=t.read_shift(2),a=(16384&o)>>14,s=(32768&o)>>15;if(o&=16383,1==s)for(;r>524287;)r-=1048576;if(1==a)for(;o>8191;)o-=16384;return{r,c:o,cRel:a,rRel:s}}(t,0,e);return[n,r]}},45:{n:"PtgAreaN",f:function Rue(t,i,e){var n=(96&t[t.l++])>>5,r=function kue(t,i,e){if(e.biff<8)return RN(t);var n=t.read_shift(12==e.biff?4:2),r=t.read_shift(12==e.biff?4:2),o=ec(t,2),a=ec(t,2);return{s:{r:n,c:o[0],cRel:o[1],rRel:o[2]},e:{r,c:a[0],cRel:a[1],rRel:a[2]}}}(t,0,e);return[n,r]}},46:{n:"PtgMemAreaN",f:function The(t){return[t.read_shift(1)>>>5&3,t.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function Mhe(t){return[t.read_shift(1)>>>5&3,t.read_shift(2)]}},57:{n:"PtgNameX",f:function ohe(t,i,e){return 5==e.biff?function ahe(t){var i=t.read_shift(1)>>>5&3,e=t.read_shift(2,"i");t.l+=8;var n=t.read_shift(2);return t.l+=12,[i,e,n]}(t):[t.read_shift(1)>>>5&3,t.read_shift(2),t.read_shift(4)]}},58:{n:"PtgRef3d",f:function jue(t,i,e){var n=(96&t[t.l])>>5;t.l+=1;var r=t.read_shift(2);return e&&5==e.biff&&(t.l+=12),[n,r,ON(t,0,e)]}},59:{n:"PtgArea3d",f:function Aue(t,i,e){var n=(96&t[t.l++])>>5,r=t.read_shift(2,"i");if(e&&5===e.biff)t.l+=12;return[n,r,FN(t,0,e)]}},60:{n:"PtgRefErr3d",f:function dhe(t,i,e){var n=(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,[n,r]}},61:{n:"PtgAreaErr3d",f:function Fue(t,i,e){var n=(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,[n,r]}},255:{}},Ihe={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},Fhe={1:{n:"PtgElfLel",f:LN},2:{n:"PtgElfRw",f:Hf},3:{n:"PtgElfCol",f:Hf},6:{n:"PtgElfRwV",f:Hf},7:{n:"PtgElfColV",f:Hf},10:{n:"PtgElfRadical",f:Hf},11:{n:"PtgElfRadicalS",f:qw},13:{n:"PtgElfColS",f:qw},15:{n:"PtgElfColSV",f:qw},16:{n:"PtgElfRadicalLel",f:LN},25:{n:"PtgList",f:function khe(t){t.l+=2;var i=t.read_shift(2),e=t.read_shift(2),n=t.read_shift(4),r=t.read_shift(2),o=t.read_shift(2);return{ixti:i,coltype:3&e,rt:Che[e>>2&31],idx:n,c:r,C:o}}},29:{n:"PtgSxName",f:function Dhe(t){return t.l+=2,[t.read_shift(4)]}},255:{}},Rhe={0:{n:"PtgAttrNoop",f:function Ahe(t){return t.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function Vue(t,i,e){var n=255&t[t.l+1]?1:0;return t.l+=e&&2==e.biff?3:4,[n]}},2:{n:"PtgAttrIf",f:function Lue(t,i,e){var n=255&t[t.l+1]?1:0;return t.l+=2,[n,t.read_shift(e&&2==e.biff?1:2)]}},4:{n:"PtgAttrChoose",f:function Pue(t,i,e){t.l+=2;for(var n=t.read_shift(e&&2==e.biff?1:2),r=[],o=0;o<=n;++o)r.push(t.read_shift(e&&2==e.biff?1:2));return r}},8:{n:"PtgAttrGoto",f:function Nue(t,i,e){var n=255&t[t.l+1]?1:0;return t.l+=2,[n,t.read_shift(e&&2==e.biff?1:2)]}},16:{n:"PtgAttrSum",f:function Xue(t,i,e){t.l+=e&&2==e.biff?3:4}},32:{n:"PtgAttrBaxcel",f:PN},33:{n:"PtgAttrBaxcel",f:PN},64:{n:"PtgAttrSpace",f:function Hue(t){return t.read_shift(2),NN(t)}},65:{n:"PtgAttrSpaceSemi",f:function Uue(t){return t.read_shift(2),NN(t)}},128:{n:"PtgAttrIfError",f:function Bue(t){var i=255&t[t.l+1]?1:0;return t.l+=2,[i,t.read_shift(2)]}},255:{}};function Uf(t,i,e,n){if(n.biff<8)return ar(t,i);for(var r=t.l+i,o=[],a=0;a!==e.length;++a)switch(e[a][0]){case"PtgArray":e[a][1]=nhe(t,0,n),o.push(e[a][1]);break;case"PtgMemArea":e[a][2]=ihe(t,0,n),o.push(e[a][2]);break;case"PtgExp":n&&12==n.biff&&(e[a][1][1]=t.read_shift(4),o.push(e[a][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+e[a][0]}return 0!=(i=r-t.l)&&o.push(ar(t,i)),o}function Ohe(t){for(var i=[],e=0;e=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function Nhe(t,i){var e=t.lastIndexOf("!"),n=i.lastIndexOf("!");return-1==e&&-1==n?t+":"+i:e>0&&n>0&&t.slice(0,e).toLowerCase()==i.slice(0,n).toLowerCase()?t+":"+i.slice(n+1):(console.error("Cannot hydrate range",t,i),t+":"+i)}function VN(t,i,e){if(!t)return"SH33TJSERR0";if(e.biff>8&&(!t.XTI||!t.XTI[i]))return t.SheetNames[i];if(!t.XTI)return"SH33TJSERR6";var n=t.XTI[i];if(e.biff<8)return i>1e4&&(i-=65536),i<0&&(i=-i),0==i?"":t.XTI[i-1];if(!n)return"SH33TJSERR1";var r="";if(e.biff>8)switch(t[n[0]][0]){case 357:return r=-1==n[1]?"#REF":t.SheetNames[n[1]],n[1]==n[2]?r:r+":"+t.SheetNames[n[2]];case 358:return null!=e.SID?t.SheetNames[e.SID]:"SH33TJSSAME"+t[n[0]][0];default:return"SH33TJSSRC"+t[n[0]][0]}switch(t[n[0]][0][0]){case 1025:return r=-1==n[1]?"#REF":t.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?r:r+":"+t.SheetNames[n[2]];case 14849:return t[n[0]].slice(1).map(function(o){return o.Name}).join(";;");default:return t[n[0]][0][3]?(r=-1==n[1]?"#REF":t[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?r:r+":"+t[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function HN(t,i,e){var n=VN(t,i,e);return"#REF"==n?n:Mf(n,e)}function ur(t,i,e,n,r){var c,l,d,f,o=r&&r.biff||8,a={s:{c:0,r:0},e:{c:0,r:0}},s=[],u=0,h=0,m="";if(!t[0]||!t[0][0])return"";for(var g=-1,p="",_=0,w=t[0].length;_=0){switch(t[0][g][1][0]){case 0:p=ri(" ",t[0][g][1][1]);break;case 1:p=ri("\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}s.push(l+Phe[x[0]]+c);break;case"PtgIsect":c=s.pop(),l=s.pop(),s.push(l+" "+c);break;case"PtgUnion":c=s.pop(),l=s.pop(),s.push(l+","+c);break;case"PtgRange":c=s.pop(),l=s.pop(),s.push(Nhe(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=Sf(x[1][1],a,r),s.push(Ef(d,o));break;case"PtgRefN":d=e?Sf(x[1][1],e,r):x[1][1],s.push(Ef(d,o));break;case"PtgRef3d":u=x[1][1],d=Sf(x[1][2],a,r),m=HN(n,u,r),s.push(m+"!"+Ef(d,o));break;case"PtgFunc":case"PtgFuncVar":var W=x[1][0],N=x[1][1];W||(W=0);var D=0==(W&=127)?[]:s.slice(-W);s.length-=W,"User"===N&&(N=D.shift()),s.push(N+"("+D.join(",")+")");break;case"PtgBool":s.push(x[1]?"TRUE":"FALSE");break;case"PtgInt":case"PtgErr":s.push(x[1]);break;case"PtgNum":s.push(String(x[1]));break;case"PtgStr":s.push('"'+x[1].replace(/"/g,'""')+'"');break;case"PtgAreaN":f=v4(x[1][1],e?{s:e}:a,r),s.push(bw(f,r));break;case"PtgArea":f=v4(x[1][1],a,r),s.push(bw(f,r));break;case"PtgArea3d":f=x[1][2],m=HN(n,u=x[1][1],r),s.push(m+"!"+bw(f,r));break;case"PtgAttrSum":s.push("SUM("+s.pop()+")");break;case"PtgName":var B=(n.names||[])[(h=x[1][2])-1]||(n[0]||[])[h],L=B?B.Name:"SH33TJSNAME"+String(h);L&&"_xlfn."==L.slice(0,6)&&!r.xlfn&&(L=L.slice(6)),s.push(L);break;case"PtgNameX":var Z,j=x[1][1];if(h=x[1][2],!(r.biff<=5)){var U="";if(14849==((n[j]||[])[0]||[])[0]||(1025==((n[j]||[])[0]||[])[0]?n[j][h]&&n[j][h].itab>0&&(U=n.SheetNames[n[j][h].itab-1]+"!"):U=n.SheetNames[h-1]+"!"),n[j]&&n[j][h])U+=n[j][h].Name;else if(n[0]&&n[0][h])U+=n[0][h].Name;else{var me=(VN(n,j,r)||"").split(";;");me[h-1]?U=me[h-1]:U+="SH33TJSERRX"}s.push(U);break}j<0&&(j=-j),n[j]&&(Z=n[j][h]),Z||(Z={Name:"SH33TJSERRY"}),s.push(Z.Name);break;case"PtgParen":var be="(",de=")";if(g>=0){switch(p="",t[0][g][1][0]){case 2:be=ri(" ",t[0][g][1][1])+be;break;case 3:be=ri("\r",t[0][g][1][1])+be;break;case 4:de=ri(" ",t[0][g][1][1])+de;break;case 5:de=ri("\r",t[0][g][1][1])+de;break;default:if(r.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][g][1][0])}g=-1}s.push(be+s.pop()+de);break;case"PtgRefErr":case"PtgRefErr3d":case"PtgAreaErr":case"PtgAreaErr3d":s.push("#REF!");break;case"PtgExp":var ne={c:e.c,r:e.r};if(n.sharedf[zt(d={c:x[1][1],r:x[1][0]})]){var Y=n.sharedf[zt(d)];s.push(ur(Y,0,ne,n,r))}else{var he=!1;for(c=0;c!=n.arrayf.length;++c)if(!(d.c<(l=n.arrayf[c])[0].s.c||d.c>l[0].e.c||d.rl[0].e.r)){s.push(ur(l[1],0,ne,n,r)),he=!0;break}he||s.push(x[1])}break;case"PtgArray":s.push("{"+Ohe(x[1])+"}");break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":g=_;break;case"PtgMissArg":s.push("");break;case"PtgList":s.push("Table"+x[1].idx+"[#"+x[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(x))}if(3!=r.biff&&g>=0&&-1==["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(t[0][_][0])){var Ne=!0;switch((x=t[0][g])[1][0]){case 4:Ne=!1;case 0:p=ri(" ",x[1][1]);break;case 5:Ne=!1;case 1:p=ri("\r",x[1][1]);break;default:if(p="",r.WTF)throw new Error("Unexpected PtgAttrSpaceType "+x[1][0])}s.push((Ne?p:"")+s.pop()+(Ne?"":p)),g=-1}}if(s.length>1&&r.WTF)throw new Error("bad formula stack");return"TRUE"==s[0]||"FALSE"!=s[0]&&s[0]}function J0(t,i,e){var n=t.read_shift(4),r=function zf(t,i,e){for(var r,o,n=t.l+i,a=[];n!=t.l;)i=n-t.l,r=BN[o=t[t.l]]||BN[Ihe[o]],(24===o||25===o)&&(r=(24===o?Fhe:Rhe)[t[t.l+1]]),r&&r.f?a.push([r.n,r.f(t,i,e)]):ar(t,i);return a}(t,n,e),o=t.read_shift(4);return[r,o>0?Uf(t,o,r,e):null]}var jhe=J0,e_=J0,Whe=J0,Ghe=J0;function UN(t){if((0|t)==t&&t=0){var i=re(11);return i.write_shift(4,3),i.write_shift(1,30),i.write_shift(2,t),i.write_shift(4,0),i}var e=re(17);return e.write_shift(4,11),e.write_shift(1,31),e.write_shift(8,t),e.write_shift(4,0),e}var nfe=function ife(t,i){if("number"==typeof t)return UN(t);if("boolean"==typeof t)return function Xhe(t){var i=re(10);return i.write_shift(4,2),i.write_shift(1,29),i.write_shift(1,t?1:0),i.write_shift(4,0),i}(t);if(/^#(DIV\/0!|GETTING_DATA|N\/A|NAME\?|NULL!|NUM!|REF!|VALUE!)$/.test(t))return function qhe(t){var i=re(10);return i.write_shift(4,2),i.write_shift(1,28),i.write_shift(1,t),i.write_shift(4,0),i}(+Mw[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 Yhe(t){var i=bi(t),e=re(15);return e.write_shift(4,7),e.write_shift(1,36),e.write_shift(4,i.r),e.write_shift(2,i.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 Jhe(t){var i=t.split(":"),e=i[0],n=re(23);n.write_shift(4,15);var r=bi(e=i[0]);return n.write_shift(1,36),n.write_shift(4,r.r),n.write_shift(2,r.c|("$"==e.charAt(0)?0:1)<<14|(e.match(/\$\d/)?0:1)<<15),n.write_shift(4,0),r=bi(e=i[1]),n.write_shift(1,36),n.write_shift(4,r.r),n.write_shift(2,r.c|("$"==e.charAt(0)?0:1)<<14|(e.match(/\$\d/)?0:1)<<15),n.write_shift(4,0),n.write_shift(1,17),n.write_shift(4,0),n}(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 tfe(t,i){var e=t.lastIndexOf("!"),n=t.slice(0,e);t=t.slice(e+1),"'"==n.charAt(0)&&(n=n.slice(1,-1).replace(/''/g,"'"));var r=On(t),o=re(23);return o.write_shift(4,15),o.write_shift(1,59),o.write_shift(2,2+i.SheetNames.map(function(a){return a.toLowerCase()}).indexOf(n.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,i);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 Khe(t,i){var e=t.lastIndexOf("!"),n=t.slice(0,e),r=bi(t=t.slice(e+1));"'"==n.charAt(0)&&(n=n.slice(1,-1).replace(/''/g,"'"));var o=re(17);return o.write_shift(4,9),o.write_shift(1,58),o.write_shift(2,2+i.SheetNames.map(function(a){return a.toLowerCase()}).indexOf(n.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,i);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 efe(t,i){var e=t.lastIndexOf("!"),n=t.slice(0,e);t=t.slice(e+1),"'"==n.charAt(0)&&(n=n.slice(1,-1).replace(/''/g,"'"));var r=t.split(":");a=r[0];var o=re(27);o.write_shift(4,19);var a=r[0],s=bi(a);return o.write_shift(1,58),o.write_shift(2,2+i.SheetNames.map(function(c){return c.toLowerCase()}).indexOf(n.toLowerCase())),o.write_shift(4,s.r),o.write_shift(2,s.c|("$"==a.charAt(0)?0:1)<<14|(a.match(/\$\d/)?0:1)<<15),s=bi(a=r[1]),o.write_shift(1,58),o.write_shift(2,2+i.SheetNames.map(function(c){return c.toLowerCase()}).indexOf(n.toLowerCase())),o.write_shift(4,s.r),o.write_shift(2,s.c|("$"==a.charAt(0)?0:1)<<14|(a.match(/\$\d/)?0:1)<<15),o.write_shift(1,17),o.write_shift(4,0),o}(t,i);if(/^(?:'[^\\\/?*\[\]:]*'|[^'][^\\\/?*\[\]:'`~!@#$%^()\-=+{}|;,<.>]*)!#REF!$/.test(t))return function Zhe(t,i){var e=t.lastIndexOf("!"),n=t.slice(0,e);t=t.slice(e+1),"'"==n.charAt(0)&&(n=n.slice(1,-1).replace(/''/g,"'"));var r=re(17);return r.write_shift(4,9),r.write_shift(1,60),r.write_shift(2,2+i.SheetNames.map(function(o){return o.toLowerCase()}).indexOf(n.toLowerCase())),r.write_shift(4,0),r.write_shift(2,0),r.write_shift(4,0),r}(t,i);if(/^".*"$/.test(t))return function Qhe(t){var i=re(7);i.write_shift(4,3+2*t.length),i.write_shift(1,23),i.write_shift(2,t.length);var e=re(2*t.length);e.write_shift(2*t.length,t,"utf16le");var n=re(4);return n.write_shift(4,0),vn([i,e,n])}(t);if(/^[+-]\d+$/.test(t))return UN(parseInt(t,10));throw"Formula |"+t+"| not supported for XLSB"},rfe={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"},zN={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"},ofe={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 afe(t){return("of:="+t.replace(Gw,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")}function jN(t){return t.replace(/!/,".")}var jf=typeof Map<"u";function Yw(t,i,e){var n=0,r=t.length;if(e){if(jf?e.has(i):Object.prototype.hasOwnProperty.call(e,i))for(var o=jf?e.get(i):e[i];n-1?(e.width=Q0(n),e.customWidth=1):null!=i.width&&(e.width=i.width),i.hidden&&(e.hidden=!0),null!=i.level&&(e.outlineLevel=e.level=i.level),e}function ml(t,i){if(t){var e=[.7,.7,.75,.75,.3,.3];"xlml"==i&&(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 tc(t,i,e){var n=e.revssf[null!=i.z?i.z:"General"],r=60,o=t.length;if(null==n&&e.ssf)for(;r<392;++r)if(null==e.ssf[r]){Ys(i.z,r),e.ssf[r]=i.z,e.revssf[i.z]=n=r;break}for(r=0;r!=o;++r)if(t[r].numFmtId===n)return r;return t[o]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},o}function sfe(t,i,e){if(t&&t["!ref"]){var n=Kt(t["!ref"]);if(n.e.c"u")return"";var r="",o=t.t,a=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=ms[t.v];break;case"d":n&&n.cellDates?r=$i(t.v,-1).toISOString():((t=yi(t)).t="n",r=""+(t.v=xn($i(t.v)))),typeof t.z>"u"&&(t.z=ut[14]);break;default:r=t.v}var s="z"==t.t||null==t.v?"":Xn("v",Ot(r)),c={r:i},l=tc(n.cellXfs,t,n);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(n&&n.bookSST){s=Xn("v",""+Yw(n.Strings,t.v,n.revStrings)),c.t="s";break}c.t="str"}if(t.t!=o&&(t.t=o,t.v=a),"string"==typeof t.f&&t.f){var d=t.F&&t.F.slice(0,i.length)==i?{t:"array",ref:t.F}:null;s=Se("f",Ot(t.f),d)+(null!=t.v?s:"")}return t.l&&(t.l.display=Ot(r),e["!links"].push([i,t.l])),t.D&&(c.cm=1),Se("c",s,c)}function Bfe(t,i,e,n){var a,r=[an,Se("worksheet",null,{xmlns:el[0],"xmlns:r":Fn.r})],s="",c=e.Sheets[e.SheetNames[t]];null==c&&(c={});var l=c["!ref"]||"A1",d=Kt(l);if(d.e.c>16383||d.e.r>1048575){if(i.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=Et(d)}n||(n={}),c["!comments"]=[];var u=[];(function yfe(t,i,e,n,r){var o=!1,a={},s=null;if("xlsx"!==n.bookType&&i.vbaraw){var c=i.SheetNames[e];try{i.Workbook&&(c=i.Workbook.Sheets[e].CodeName||c)}catch{}o=!0,a.codeName=Sa(Ot(c))}if(t&&t["!outline"]){var l={summaryBelow:1,summaryRight:1};t["!outline"].above&&(l.summaryBelow=0),t["!outline"].left&&(l.summaryRight=0),s=(s||"")+Se("outlinePr",null,l)}!o&&!s||(r[r.length]=Se("sheetPr",s,a))})(c,e,t,i,r),r[r.length]=Se("dimension",null,{ref:l}),r[r.length]=function Ofe(t,i,e,n){var r={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(r.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),Se("sheetViews",Se("sheetView",null,r),{})}(0,0,0,e),i.sheetFormat&&(r[r.length]=Se("sheetFormatPr",null,{defaultRowHeight:i.sheetFormat.defaultRowHeight||"16",baseColWidth:i.sheetFormat.baseColWidth||"10",outlineLevelRow:i.sheetFormat.outlineLevelRow||"7"})),null!=c["!cols"]&&c["!cols"].length>0&&(r[r.length]=function Mfe(t,i){for(var n,e=[""],r=0;r!=i.length;++r)(n=i[r])&&(e[e.length]=Se("col",null,t_(r,n)));return e[e.length]="",e.join("")}(0,c["!cols"])),r[a=r.length]="",c["!links"]=[],null!=c["!ref"]&&(s=function Lfe(t,i,e,n){var c,p,r=[],o=[],a=Kt(t["!ref"]),s="",l="",d=[],u=0,h=0,f=t["!rows"],m=null!=t["!data"],g={r:l},_=-1;for(h=a.s.c;h<=a.e.c;++h)d[h]=Ht(h);for(u=a.s.r;u<=a.e.r;++u){for(o=[],l=Yt(u),h=a.s.c;h<=a.e.c;++h){c=d[h]+l;var w=m?(t["!data"][u]||[])[h]:t[c];void 0!==w&&null!=(s=Pfe(w,c,t,i))&&o.push(s)}(o.length>0||f&&f[u])&&(g={r:l},f&&f[u]&&((p=f[u]).hidden&&(g.hidden=1),_=-1,p.hpx?_=Bf(p.hpx):p.hpt&&(_=p.hpt),_>-1&&(g.ht=_,g.customHeight=1),p.level&&(g.outlineLevel=p.level)),r[r.length]=Se("row",o.join(""),g))}if(f)for(;u-1&&(g.ht=_,g.customHeight=1),p.level&&(g.outlineLevel=p.level),r[r.length]=Se("row","",g));return r.join("")}(c,i),s.length>0&&(r[r.length]=s)),r.length>a+1&&(r[r.length]="",r[a]=r[a].replace("/>",">")),c["!protect"]&&(r[r.length]=function kfe(t){var i={sheet:1};return wfe.forEach(function(e){null!=t[e]&&t[e]&&(i[e]="1")}),Cfe.forEach(function(e){null!=t[e]&&!t[e]&&(i[e]="0")}),t.password&&(i.password=Uw(t.password).toString(16).toUpperCase()),Se("sheetProtection",null,i)}(c["!protect"])),null!=c["!autofilter"]&&(r[r.length]=function Ife(t,i,e,n){var r="string"==typeof t.ref?t.ref:Et(t.ref);e.Workbook||(e.Workbook={Sheets:[]}),e.Workbook.Names||(e.Workbook.Names=[]);var o=e.Workbook.Names,a=On(r);a.s.r==a.e.r&&(a.e.r=On(i["!ref"]).e.r,r=Et(a));for(var s=0;s0&&(r[r.length]=function vfe(t){if(0===t.length)return"";for(var i='',e=0;e!=t.length;++e)i+='';return i+""}(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=ki(n,-1,Ot(g[1].Target).replace(/#.*$/,""),Pt.HLINK),f["r:id"]="rId"+m),(h=g[1].Target.indexOf("#"))>-1&&(f.location=Ot(g[1].Target.slice(h+1))),g[1].Tooltip&&(f.tooltip=Ot(g[1].Tooltip)),f.display=g[1].display,r[r.length]=Se("hyperlink",null,f))}),r[r.length]=""),delete c["!links"],null!=c["!margins"]&&(r[r.length]=function Efe(t){return ml(t),Se("pageMargins",null,t)}(c["!margins"])),(!i||i.ignoreEC||null==i.ignoreEC)&&(r[r.length]=Xn("ignoredErrors",Se("ignoredError",null,{numberStoredAsText:1,sqref:l}))),u.length>0&&(m=ki(n,-1,"../drawings/drawing"+(t+1)+".xml",Pt.DRAW),r[r.length]=Se("drawing",null,{"r:id":"rId"+m}),c["!drawing"]=u),c["!comments"].length>0&&(m=ki(n,-1,"../drawings/vmlDrawing"+(t+1)+".vml",Pt.VML),r[r.length]=Se("legacyDrawing",null,{"r:id":"rId"+m}),c["!legacy"]=m),r.length>1&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}function Ufe(t,i,e,n){var r=function Hfe(t,i,e){var n=re(145),r=(e["!rows"]||[])[t]||{};n.write_shift(4,t),n.write_shift(4,0);var o=320;r.hpx?o=20*Bf(r.hpx):r.hpt&&(o=20*r.hpt),n.write_shift(2,o),n.write_shift(1,0);var a=0;r.level&&(a|=r.level),r.hidden&&(a|=16),(r.hpx||r.hpt)&&(a|=32),n.write_shift(1,a),n.write_shift(1,0);var s=0,c=n.l;n.l+=4;for(var l={r:t,c:0},d=null!=e["!data"],u=0;u<16;++u)if(!(i.s.c>u+1<<10||i.e.cn.l?n.slice(0,n.l):n}(n,e,i);(r.length>17||(i["!rows"]||[])[n])&&fe(t,0,r)}var zfe=ol,$fe=ru;var Dme=ol,Sme=ru,XN=["left","right","top","bottom","header","footer"];function $me(t,i,e,n,r,o,a){var s={r:e,c:n};if(i.c&&o["!comments"].push([zt(s),i.c]),void 0===i.v)return!1;var c="";switch(i.t){case"b":c=i.v?"1":"0";break;case"d":(i=yi(i)).z=i.z||ut[14],i.v=xn($i(i.v)),i.t="n";break;case"n":case"e":c=""+i.v;break;default:c=i.v}switch(s.s=tc(r.cellXfs,i,r),i.l&&o["!links"].push([zt(s),i.l]),i.t){case"s":case"str":return r.bookSST?(c=Yw(r.Strings,null==i.v?"":String(i.v),r.revStrings),s.t="s",s.v=c,a?fe(t,18,function cme(t,i,e){return null==e&&(e=re(8)),rl(i,e),e.write_shift(4,i.v),e}(0,s)):fe(t,7,function ame(t,i,e){return null==e&&(e=re(12)),il(i,e),e.write_shift(4,i.v),e}(0,s))):(s.t="str",a?fe(t,17,function xme(t,i,e){var n=null==t.v?"":String(t.v);return null==e&&(e=re(8+4*n.length)),rl(i,e),Pn(n,e),e.length>e.l?e.slice(0,e.l):e}(i,s)):fe(t,6,function bme(t,i,e){var n=null==t.v?"":String(t.v);return null==e&&(e=re(12+4*t.v.length)),il(i,e),Pn(n,e),e.length>e.l?e.slice(0,e.l):e}(i,s))),!0;case"n":return i.v==(0|i.v)&&i.v>-1e3&&i.v<1e3?a?fe(t,13,function pme(t,i,e){return null==e&&(e=re(8)),rl(i,e),C4(t.v,e),e}(i,s)):fe(t,2,function fme(t,i,e){return null==e&&(e=re(12)),il(i,e),C4(t.v,e),e}(i,s)):a?fe(t,16,function ume(t,i,e){return null==e&&(e=re(12)),rl(i,e),al(t.v,e),e}(i,s)):fe(t,5,function dme(t,i,e){return null==e&&(e=re(16)),il(i,e),al(t.v,e),e}(i,s)),!0;case"b":return s.t="b",a?fe(t,15,function eme(t,i,e){return null==e&&(e=re(5)),rl(i,e),e.write_shift(1,t.v?1:0),e}(i,s)):fe(t,4,function Zfe(t,i,e){return null==e&&(e=re(9)),il(i,e),e.write_shift(1,t.v?1:0),e}(i,s)),!0;case"e":return s.t="e",a?fe(t,14,function rme(t,i,e){return null==e&&(e=re(8)),rl(i,e),e.write_shift(1,t.v),e.write_shift(2,0),e.write_shift(1,0),e}(i,s)):fe(t,3,function ime(t,i,e){return null==e&&(e=re(9)),il(i,e),e.write_shift(1,t.v),e}(i,s)),!0}return a?fe(t,12,function Yfe(t,i,e){return null==e&&(e=re(4)),rl(i,e)}(0,s)):fe(t,1,function Xfe(t,i,e){return null==e&&(e=re(8)),il(i,e)}(0,s)),!0}function Jme(t,i,e,n){var r=Br(),o=e.SheetNames[t],a=e.Sheets[o]||{},s=o;try{e&&e.Workbook&&(s=e.Workbook.Sheets[t].CodeName||s)}catch{}var c=Kt(a["!ref"]||"A1");if(c.e.c>16383||c.e.r>1048575){if(i.WTF)throw new Error("Range "+(a["!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 a["!links"]=[],a["!comments"]=[],fe(r,129),(e.vbaraw||a["!outline"])&&fe(r,147,function Gfe(t,i,e){null==e&&(e=re(84+4*t.length));var n=192;i&&(i.above&&(n&=-65),i.left&&(n&=-129)),e.write_shift(1,n);for(var r=1;r<3;++r)e.write_shift(1,0);return B0({auto:1},e),e.write_shift(-4,-1),e.write_shift(-4,-1),w4(t,e),e.slice(0,e.l)}(s,a["!outline"])),fe(r,148,$fe(c)),function Kme(t,i,e){fe(t,133),fe(t,137,function Lme(t,i,e){null==e&&(e=re(30));var n=924;return(((i||{}).Views||[])[0]||{}).RTL&&(n|=32),e.write_shift(2,n),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)),fe(t,138),fe(t,134)}(r,0,e.Workbook),function Gme(t,i){!i||!i["!cols"]||(fe(t,390),i["!cols"].forEach(function(e,n){e&&fe(t,60,function Rme(t,i,e){null==e&&(e=re(18));var n=t_(t,i);e.write_shift(-4,t),e.write_shift(-4,t),e.write_shift(4,256*(n.width||10)),e.write_shift(4,0);var r=0;return i.hidden&&(r|=1),"number"==typeof n.width&&(r|=2),i.level&&(r|=i.level<<8),e.write_shift(2,r),e}(n,e))}),fe(t,391))}(r,a),function jme(t,i,e,n){var r=Kt(i["!ref"]||"A1"),a="",s=[];fe(t,145);var c=null!=i["!data"],l=r.e.r;i["!rows"]&&(l=Math.max(r.e.r,i["!rows"].length-1));for(var d=r.s.r;d<=l;++d){a=Yt(d),Ufe(t,i,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&&(s[h]=Ht(h));var f=c?(i["!data"][d]||[])[h]:i[s[h]+a];u=!!f&&$me(t,f,d,h,n,i,u)}}fe(t,146)}(r,a,0,i),function Zme(t,i){i["!protect"]&&fe(t,535,function Vme(t,i){return null==i&&(i=re(66)),i.write_shift(2,t.password?Uw(t.password):0),i.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){i.write_shift(4,e[1]?null==t[e[0]]||t[e[0]]?0:1:null!=t[e[0]]&&t[e[0]]?0:1)}),i}(i["!protect"]))}(r,a),function Yme(t,i,e,n){if(i["!autofilter"]){var r=i["!autofilter"],o="string"==typeof r.ref?r.ref:Et(r.ref);e.Workbook||(e.Workbook={Sheets:[]}),e.Workbook.Names||(e.Workbook.Names=[]);var a=e.Workbook.Names,s=On(o);s.s.r==s.e.r&&(s.e.r=On(i["!ref"]).e.r,o=Et(s));for(var c=0;c0){var r=ki(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",Pt.VML);fe(t,551,kw("rId"+r)),i["!legacy"]=r}}(r,a,t,n),fe(r,130),r.end()}var Zw=[["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"]],lpe=":][*?/\\".split("");function ZN(t,i){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'");lpe.forEach(function(e){if(-1!=t.indexOf(e))throw new Error("Sheet name cannot contain : \\ / ? * [ ]")})}catch(e){if(i)return!1;throw e}return!0}function ppe(t,i){return i||(i=re(127)),i.write_shift(4,t.Hidden),i.write_shift(4,t.iTabID),kw(t.strRelID,i),Pn(t.name.slice(0,31),i),i.length>i.l?i.slice(0,i.l):i}function Mpe(t,i){var e=Br();return fe(e,131),fe(e,128,function Cpe(t,i){i||(i=re(127));for(var e=0;4!=e;++e)i.write_shift(4,0);return Pn("SheetJS",i),Pn(mf.version,i),Pn(mf.version,i),Pn("7262",i),i.length>i.l?i.slice(0,i.l):i}()),fe(e,153,function _pe(t,i){i||(i=re(72));var e=0;return t&&(t.date1904&&(e|=1),t.filterPrivacy&&(e|=8)),i.write_shift(4,e),i.write_shift(4,0),w4(t&&t.CodeName||"ThisWorkbook",i),i.slice(0,i.l)}(t.Workbook&&t.Workbook.WBProps||null)),function Dpe(t,i){if(i.Workbook&&i.Workbook.Sheets){for(var e=i.Workbook.Sheets,n=0,r=-1,o=-1;nr||(fe(t,135),fe(t,158,function kpe(t,i){return i||(i=re(29)),i.write_shift(-4,0),i.write_shift(-4,460),i.write_shift(4,28800),i.write_shift(4,17600),i.write_shift(4,500),i.write_shift(4,t),i.write_shift(4,t),i.write_shift(1,120),i.length>i.l?i.slice(0,i.l):i}(r)),fe(t,136))}}(e,t),function wpe(t,i){fe(t,143);for(var e=0;e!=i.SheetNames.length;++e)fe(t,156,ppe({Hidden:i.Workbook&&i.Workbook.Sheets&&i.Workbook.Sheets[e]&&i.Workbook.Sheets[e].Hidden||0,iTabID:e+1,strRelID:"rId"+(e+1),name:i.SheetNames[e]}));fe(t,144)}(e,t),function Tpe(t,i){fe(t,353),fe(t,357),fe(t,362,function Epe(t){var i=t.SheetNames.length,e=re(12*i+28);e.write_shift(4,i+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 n=0;n-1&&(n|=32,r=r.slice(6)),e.write_shift(4,n),e.write_shift(1,0),e.write_shift(4,null==t.Sheet?4294967295:t.Sheet);var o=[e,Pn(r),nfe(t.Ref,i)];if(t.Comment)o.push(Af(t.Comment));else{var a=re(4);a.write_shift(4,4294967295),o.push(a)}return vn(o)}(e,i))}catch{console.error("Could not serialize defined name "+JSON.stringify(e))}})}(e,t),fe(e,132),e.end()}function iL(t){return Se("NamedRange",null,{"ss:Name":"_xlnm."==t.Name.slice(0,6)?t.Name.slice(6):t.Name,"ss:RefersTo":"="+Z0(t.Ref,{r:0,c:0})})}function ige(t,i,e,n,r,o,a){if(!t||null==t.v&&null==t.f)return"";var s={};if(t.f&&(s["ss:Formula"]="="+Ot(Z0(t.f,a))),t.F&&t.F.slice(0,i.length)==i){var c=bi(t.F.slice(i.length+1));s["ss:ArrayRange"]="RC:R"+(c.r==a.r?"":"["+(c.r-a.r)+"]")+"C"+(c.c==a.c?"":"["+(c.c-a.c)+"]")}if(t.l&&t.l.Target&&(s["ss:HRef"]=Ot(t.l.Target),t.l.Tooltip&&(s["x:HRefScreenTip"]=Ot(t.l.Tooltip))),e["!merges"])for(var l=e["!merges"],d=0;d!=l.length;++d)l[d].s.c!=a.c||l[d].s.r!=a.r||(l[d].e.c>l[d].s.c&&(s["ss:MergeAcross"]=l[d].e.c-l[d].s.c),l[d].e.r>l[d].s.r&&(s["ss:MergeDown"]=l[d].e.r-l[d].s.r));var u="",h="";switch(t.t){case"z":if(!n.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=ms[t.v];break;case"d":u="DateTime",h=new Date(t.v).toISOString(),null==t.z&&(t.z=t.z||ut[14]);break;case"s":u="String",h=function oae(t){return(t+"").replace(lw,function(e){return cw[e]}).replace(KP,function(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"})}(t.v||"")}var f=tc(n.cellXfs,t,n);s["ss:StyleID"]="s"+(21+f),s["ss:Index"]=a.c+1;var g="z"==t.t?"":''+(null!=t.v?h:"")+"";return(t.c||[]).length>0&&(g+=function tge(t){return t.map(function(i){var e=function aae(t){return t.replace(/(\r\n|[\r\n])/g," ")}(i.t||""),n=Se("ss:Data",e,{xmlns:"http://www.w3.org/TR/REC-html40"});return Se("Comment",n,{"ss:Author":i.a})}).join("")}(t.c)),Se("Cell",g,s)}function nge(t,i){var e='"}function oge(t,i,e){var n=[],o=e.Sheets[e.SheetNames[t]],a=o?function Jpe(t,i,e,n){if(!t||!((n||{}).Workbook||{}).Names)return"";for(var r=n.Workbook.Names,o=[],a=0;a0&&n.push(""+a+""),a=o?function rge(t,i,e,n){if(!t["!ref"])return"";var r=Kt(t["!ref"]),o=t["!merges"]||[],a=0,s=[];t["!cols"]&&t["!cols"].forEach(function(p,_){Js(p);var w=!!p.width,x=t_(_,p),E={"ss:Index":_+1};w&&(E["ss:Width"]=Nf(x.width)),p.hidden&&(E["ss:Hidden"]="1"),s.push(Se("Column",null,E))});for(var c=null!=t["!data"],l=r.s.r;l<=r.e.r;++l){for(var d=[nge(l,(t["!rows"]||[])[l])],u=r.s.c;u<=r.e.c;++u){var h=!1;for(a=0;a!=o.length;++a)if(!(o[a].s.c>u||o[a].s.r>l||o[a].e.c"),d.length>2&&s.push(d.join(""))}return s.join("")}(o,i):"",a.length>0&&n.push(""+a+"
"),n.push(function ege(t,i,e,n){if(!t)return"";var r=[];if(t["!margins"]&&(r.push(""),t["!margins"].header&&r.push(Se("Header",null,{"x:Margin":t["!margins"].header})),t["!margins"].footer&&r.push(Se("Footer",null,{"x:Margin":t["!margins"].footer})),r.push(Se("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("")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[e])if(n.Workbook.Sheets[e].Hidden)r.push(Se("Visible",1==n.Workbook.Sheets[e].Hidden?"SheetHidden":"SheetVeryHidden",{}));else{for(var o=0;o")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&r.push(""),t["!protect"]&&(r.push(Xn("ProtectContents","True")),t["!protect"].objects&&r.push(Xn("ProtectObjects","True")),t["!protect"].scenarios&&r.push(Xn("ProtectScenarios","True")),null==t["!protect"].selectLockedCells||t["!protect"].selectLockedCells?null!=t["!protect"].selectUnlockedCells&&!t["!protect"].selectUnlockedCells&&r.push(Xn("EnableSelection","UnlockedCells")):r.push(Xn("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(a){t["!protect"][a[0]]&&r.push("<"+a[1]+"/>")})),0==r.length?"":Se("WorksheetOptions",r.join(""),{xmlns:io.x})}(o,0,t,e)),o["!autofilter"]&&n.push(''),n.join("")}function age(t,i){i||(i={}),t.SSF||(t.SSF=yi(ut)),t.SSF&&(Jd(),xf(t.SSF),i.revssf=A0(t.SSF),i.revssf[t.SSF[65535]]=0,i.ssf=t.SSF,i.cellXfs=[],tc(i.cellXfs,{},{revssf:{General:0}}));var e=[];e.push(function Qpe(t,i){var e=[];return t.Props&&e.push(function nse(t,i){var e=[];return zi(Ow).map(function(n){for(var r=0;r'+r.join("")+""}(t.Props,t.Custprops)),e.join("")}(t,i)),e.push(function Ype(t){return(((t||{}).Workbook||{}).WBProps||{}).date1904?'':""}(t)),e.push(""),e.push("");for(var n=0;n'];return i.cellXfs.forEach(function(n,r){var o=[];o.push(Se("NumberFormat",null,{"ss:Format":Ot(ut[n.numFmtId])}));var a={"ss:ID":"s"+(21+r)};e.push(Se("Style",o.join(""),a))}),Se("Styles",e.join(""))}(0,i),e[3]=function Zpe(t){if(!((t||{}).Workbook||{}).Names)return"";for(var i=t.Workbook.Names,e=[],n=0;n0&&(n.family=s);var c=t.read_shift(1);switch(c>0&&(n.charset=c),t.l++,n.color=function Rae(t){var i={},n=t.read_shift(1)>>>1,r=t.read_shift(1),o=t.read_shift(2,"i"),a=t.read_shift(1),s=t.read_shift(1),c=t.read_shift(1);switch(t.l++,n){case 0:i.auto=1;break;case 1:i.index=r;var l=sl[r];l&&(i.rgb=Pf(l));break;case 2:i.rgb=Pf([a,s,c]);break;case 3:i.theme=r}return 0!=o&&(i.tint=o>0?o/32767:o/32768),i}(t),t.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor"}return n.name=sr(t),n}},44:{f:function ede(t,i){return[t.read_shift(2),sr(t)]}},45:{f:ode},46:{f:sde},47:{f:function ade(t,i){var e=t.l+i,n=t.read_shift(2),r=t.read_shift(2);return t.l=e,{ixfe:n,numFmtId:r}}},48:{},49:{f:function kae(t){return t.read_shift(4,"i")}},50:{},51:{f:function Ude(t){for(var i=[],e=t.read_shift(4);e-- >0;)i.push([t.read_shift(4),t.read_shift(4)]);return i}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:function pN(t,i,e){if(!e.cellStyles)return ar(t,i);var n=e&&e.biff>=12?4:2,r=t.read_shift(n),o=t.read_shift(n),a=t.read_shift(n),s=t.read_shift(n),c=t.read_shift(2);2==n&&(t.l+=2);var l={s:r,e:o,w:a,ixfe:s,flags:c};return(e.biff>=5||!e.biff)&&(l.level=c>>8&7),l}},62:{f:function gme(t){return[So(t),yw(t),"is"]}},63:{f:function Kde(t){var i={};i.i=t.read_shift(4);var e={};e.r=t.read_shift(4),e.c=t.read_shift(4),i.r=zt(e);var n=t.read_shift(1);return 2&n&&(i.l="1"),8&n&&(i.a="1"),i}},64:{f:function Hme(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:ar,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function Nme(t){var i=t.read_shift(2);return t.l+=28,{RTL:32&i}}},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 Wfe(t,i){var e={},n=t[t.l];return++t.l,e.above=!(64&n),e.left=!(128&n),t.l+=18,e.name=Aae(t,i-19),e}},148:{f:zfe,p:16},151:{f:function Ame(){}},152:{},153:{f:function gpe(t,i){var e={},n=t.read_shift(4);e.defaultThemeVersion=t.read_shift(4);var r=i>8?sr(t):"";return r.length>0&&(e.CodeName=r),e.autoCompressPictures=!!(65536&n),e.backupFile=!!(64&n),e.checkCompatibility=!!(4096&n),e.date1904=!!(1&n),e.filterPrivacy=!!(8&n),e.hidePivotFieldList=!!(1024&n),e.promptedSolutions=!!(16&n),e.publishItems=!!(2048&n),e.refreshAllConnections=!!(262144&n),e.saveExternalLinkValues=!!(128&n),e.showBorderUnselectedTables=!!(4&n),e.showInkAnnotation=!!(32&n),e.showObjects=["all","placeholders","none"][n>>13&3],e.showPivotChartFilter=!!(32768&n),e.updateLinks=["userSet","never","always"][n>>8&3],e}},154:{},155:{},156:{f:function mpe(t,i){var e={};return e.Hidden=t.read_shift(4),e.iTabID=t.read_shift(4),e.strRelID=Cw(t,i-8),e.name=sr(t),e}},157:{},158:{},159:{T:1,f:function fle(t){return[t.read_shift(4),t.read_shift(4)]}},160:{T:-1},161:{T:1,f:ol},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:Dme},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 Vde(t,i){return{flags:t.read_shift(4),version:t.read_shift(4),name:sr(t)}}},336:{T:-1},337:{f:function jde(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:Cw},357:{},358:{},359:{},360:{T:1},361:{},362:{f:function hN(t,i,e){if(e.biff<8||!(e.biff>8)&&i==t[t.l]+(3==t[t.l+1]?1:0)+1)return function fN(t,i,e){3==t[t.l+1]&&t[t.l]++;var n=Rf(t,0,e);return 3==n.charCodeAt(0)?n.slice(1):n}(t,0,e);for(var n=[],r=t.l+i,o=t.read_shift(e.biff>8?4:2);0!=o--;)n.push(Sse(t,0,e));if(t.l!=r)throw new Error("Bad ExternSheet: "+t.l+" != "+r);return n}},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 Ime(t,i,e){var n=t.l+i,r=k4(t),o=t.read_shift(1),a=[r];if(a[2]=o,e.cellFormula){var s=jhe(t,n-t.l,e);a[1]=s}else t.l=n;return a}},427:{f:function Fme(t,i,e){var n=t.l+i,o=[ol(t,16)];if(e.cellFormula){var a=Ghe(t,n-t.l,e);o[1]=a,t.l=n}else t.l=n;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 Ome(t){var i={};return XN.forEach(function(e){i[e]=cr(t)}),i}},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:function jfe(){}},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 Tme(t,i){var e=t.l+i,n=ol(t,16),r=ww(t),o=sr(t),a=sr(t),s=sr(t);t.l=e;var c={rfx:n,relId:r,loc:o,display:s};return a&&(c.Tooltip=a),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:Cw},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:due},633:{T:1},634:{T:-1},635:{T:1,f:function cue(t){var i={};i.iauthor=t.read_shift(4);var e=ol(t,16);return i.rfx=e.s,i.ref=zt(e.s),t.l+=16,i}},636:{T:-1},637:{f:Tae},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 npe(t,i){return t.l+=10,{name:sr(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 Ume(){}},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 Me(t,i,e,n){var r=i;if(!isNaN(r)){var o=n||(e||[]).length||0,a=t.next(4);a.write_shift(2,r),a.write_shift(2,o),o>0&&_w(e)&&t.push(e)}}function Xf(t,i,e){return t||(t=re(7)),t.write_shift(2,i),t.write_shift(2,e),t.write_shift(2,0),t.write_shift(1,0),t}function _ge(t,i,e,n){if(null!=i.v)switch(i.t){case"d":case"n":var r="d"==i.t?xn($i(i.v)):i.v;return void(r==(0|r)&&r>=0&&r<65536?Me(t,2,function Qce(t,i,e){var n=re(9);return Xf(n,t,i),n.write_shift(2,e),n}(e,n,r)):Me(t,3,function qce(t,i,e){var n=re(15);return Xf(n,t,i),n.write_shift(8,e,"f"),n}(e,n,r)));case"b":case"e":return void Me(t,5,function pge(t,i,e,n){var r=re(9);return Xf(r,t,i),Y4(e,n||"b",r),r}(e,n,i.v,i.t));case"s":case"str":return void Me(t,4,function gge(t,i,e){var n=re(8+2*e.length);return Xf(n,t,i),n.write_shift(1,e.length),n.write_shift(e.length,e,"sbcs"),n.l255||f.e.r>=m){if(i.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)}Me(n,2057,Bw(0,16,i)),Me(n,13,To(1)),Me(n,12,To(100)),Me(n,15,Dr(!0)),Me(n,17,Dr(!1)),Me(n,16,al(.001)),Me(n,95,Dr(!0)),Me(n,42,Dr(!1)),Me(n,43,Dr(!1)),Me(n,130,To(1)),Me(n,128,function hce(t){var i=re(8);return i.write_shift(4,0),i.write_shift(2,t[0]?t[0]+1:0),i.write_shift(2,t[1]?t[1]+1:0),i}([0,0])),Me(n,131,Dr(!1)),Me(n,132,Dr(!1)),l&&function Dge(t,i){if(i){var e=0;i.forEach(function(n,r){++e<=256&&n&&Me(t,125,function Lce(t,i){var e=re(12);e.write_shift(2,i),e.write_shift(2,i),e.write_shift(2,256*t.width),e.write_shift(2,0);var n=0;return t.hidden&&(n|=1),e.write_shift(1,n),e.write_shift(1,n=t.level||0),e.write_shift(2,0),e}(t_(r,n),r))})}}(n,o["!cols"]),Me(n,512,function oce(t,i){var e=8!=i.biff&&i.biff?2:4,n=re(2*e+6);return n.write_shift(e,t.s.r),n.write_shift(e,t.e.r+1),n.write_shift(2,t.s.c),n.write_shift(2,t.e.c+1),n.write_shift(2,0),n}(f,i)),l&&(o["!links"]=[]);for(var g=[],p=[],_=f.s.c;_<=f.e.c;++_)h[_]=Ht(_);for(var w=f.s.r;w<=f.e.r;++w)for(c&&(p=o["!data"][w]||[]),u=Yt(w),_=f.s.c;_<=f.e.c;++_){d=h[_]+u;var x=c?p[_]:o[d];x&&(Sge(n,x,w,_,i),l&&x.l&&o["!links"].push([d,x.l]),l&&x.c&&g.push([d,x.c]))}var E=s.CodeName||s.name||r;return l&&Me(n,574,function Xse(t){var i=re(18),e=1718;return t&&t.RTL&&(e|=64),i.write_shift(2,e),i.write_shift(4,0),i.write_shift(4,64),i.write_shift(4,0),i.write_shift(4,0),i}((a.Views||[])[0])),l&&(o["!merges"]||[]).length&&Me(n,229,function Cce(t){var i=re(2+8*t.length);i.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=i||{};switch(o.biff||2){case 8:case 5:return function Mge(t,i){var e=i||{},n=[];t&&!t.SSF&&(t.SSF=yi(ut)),t&&t.SSF&&(Jd(),xf(t.SSF),e.revssf=A0(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,aC(e),e.cellXfs=[],tc(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={});for(var r=0;r255||o.e.r>16383){if(n.WTF)throw new Error("Range "+(i["!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]=Ht(d);for(var u=o.s.r;u<=o.e.r;++u)for(r&&(l=i["!data"][u]||[]),s=Yt(u),d=o.s.c;d<=o.e.c;++d){var h=r?l[d]:i[c[d]+s];h&&_ge(t,h,u,d)}}(n,t.Sheets[t.SheetNames[r]],0,e),Me(n,10),n.end()}(t,i)}throw new Error("invalid type "+o.bookType+" for BIFF")}function oL(t,i,e,n){for(var r=t["!merges"]||[],o=[],a={},s=null!=t["!data"],c=i.s.c;c<=i.e.c;++c){for(var l=0,d=0,u=0;ue||r[u].s.c>c||r[u].e.r1&&(a.rowspan=l),d>1&&(a.colspan=d),n.editable?m=''+m+"":f&&(a["data-t"]=f&&f.t||"z",null!=f.v&&(a["data-v"]=f.v),null!=f.z&&(a["data-z"]=f.z),f.l&&"#"!=(f.l.Target||"#").charAt(0)&&(m=''+m+"")),a.id=(n.id||"sjs")+"-"+h,o.push(Se("td",m,a))}}return""+o.join("")+""}var aL='SheetJS Table Export',sL="";function lL(t,i){var e=i||{},r=null!=e.footer?e.footer:sL,o=[null!=e.header?e.header:aL],a=On(t["!ref"]);o.push(function cL(t,i,e){return[].join("")+""}(0,0,e));for(var s=a.s.r;s<=a.e.r;++s)o.push(oL(t,a,s,e));return o.push(""+r),o.join("")}var Oge=function(){var t=["",'',"",'',"",'',"",""].join(""),i=""+t+"";return function(){return an+i}}();function Pge(t,i){var e="number",n="",r={"style:name":i},o="",a=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[a]){for(o="";'"'!=t[++a]||'"'==t[++a];)o+=t[a];"*"==t[1+--a]?(a++,n+=""+Ot(o.replace(/""/g,'"'))+""):n+=""+Ot(o.replace(/""/g,'"'))+"",t=t.slice(a+1),a=0}var s=t.match(/# (\?+)\/(\?+)/);if(s)n+=Se("number:fraction",null,{"number:min-integer-digits":0,"number:min-numerator-digits":s[1].length,"number:max-denominator-value":Math.max(+s[1].replace(/./g,"9"),+s[2].replace(/./g,"9"))});else if(s=t.match(/# (\?+)\/(\d+)/))n+=Se("number:fraction",null,{"number:min-integer-digits":0,"number:min-numerator-digits":s[1].length,"number:denominator-value":+s[2]});else if(s=t.match(/(\d+)(|\.\d+)%/))e="percentage",n+=Se("number:number",null,{"number:decimal-places":s[2]&&s.length-1||0,"number:min-decimal-places":s[2]&&s.length-1||0,"number:min-integer-digits":s[1].length})+"%";else{var c=!1;if(["y","m","d"].indexOf(t[0])>-1){e="date";t:for(;a";break;case"yyy":case"yyyy":n+='';break;case"mmmmm":console.error("ODS has no equivalent of format |mmmmm|");case"m":case"mm":case"mmm":case"mmmm":n+='';break;case"d":case"dd":n+='';break;case"ddd":case"dddd":n+=''}break;case'"':for(;'"'!=t[++a]||'"'==t[++a];)o+=t[a];--a,n+=""+Ot(o.slice(1).replace(/""/g,'"'))+"";break;case"/":n+=""+Ot(o)+"";break;default:console.error("unrecognized character "+o+" in ODF format "+t)}if(!c)break e;t=t.slice(a+1),a=0}if(t.match(/^\[?[hms]/))for("number"==e&&(e="time"),t.match(/\[/)&&(t=t.replace(/[\[\]]/g,""),r["number:truncate-on-overflow"]="false");a';break;case"m":case"mm":n+='';break;case"s":case"ss":if("."==t[a+1])do{o+=t[a+1],++a}while("0"==t[a+1]);n+='"}break;case'"':for(;'"'!=t[++a]||'"'==t[++a];)o+=t[a];--a,n+=""+Ot(o.slice(1).replace(/""/g,'"'))+"";break;case"/":n+=""+Ot(o)+"";break;case"a":if("a/p"==t.slice(a,a+3).toLowerCase()){n+="",a+=2;break}if("am/pm"==t.slice(a,a+5).toLowerCase()){n+="",a+=4;break}default:console.error("unrecognized character "+o+" in ODF format "+t)}else{if(t.indexOf(/\$/)>-1&&(e="currency"),"$"==t[0]&&(n+='$',t=t.slice(1),a=0),'"'==t[a=0]){for(;'"'!=t[++a]||'"'==t[++a];)o+=t[a];"*"==t[1+--a]?(a++,n+=""+Ot(o.replace(/""/g,'"'))+""):n+=""+Ot(o.replace(/""/g,'"'))+"",t=t.slice(a+1),a=0}var d=t.match(/([#0][0#,]*)(\.[0#]*|)(E[+]?0*|)/i);if(d&&d[0]){var u=d[1].replace(/,/g,"");n+="-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+'"':"")+">",a=d.index+d[0].length}else console.error("Could not find numeric part of "+t);if('"'==t[a]){for(o="";'"'!=t[++a]||'"'==t[++a];)o+=t[a];--a,n+=""+Ot(o.replace(/""/g,'"'))+""}}}}else e="text",n="";return n?Se("number:"+e+"-style",n,r):(console.error("Could not generate ODS number format for |"+t+"|"),"")}function _L(t,i,e){var n=t.filter(function(r){return r.Sheet==(-1==e?null:e)});return n.length?" \n"+n.map(function(r){var o=jN(r.Ref);return" "+Se("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 bL=function(){var t=function(o){return Ot(o).replace(/ +/g,function(a){return''}).replace(/\t/g,"").replace(/\n/g,"
").replace(/^ /,"").replace(/ $/,"")},i=" \n",n=function(o,a,s,c,l){var d=[];d.push(' \n');var u=0,h=0,f=On(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 w=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 N=zt({r:u,c:h}),D=p?(o["!data"][u]||[])[h]:o[N];if(D&&D.f&&(E["table:formula"]=Ot(afe(D.f)),D.F&&D.F.slice(0,N.length)==N)){var B=On(D.F);E["table:number-matrix-columns-spanned"]=B.e.c-B.s.c+1,E["table:number-matrix-rows-spanned"]=B.e.r-B.s.r+1}if(D){switch(D.t){case"b":W=D.v?"TRUE":"FALSE",E["office:value-type"]="boolean",E["office:boolean-value"]=D.v?"true":"false";break;case"n":W=D.w||String(D.v||0),E["office:value-type"]="float",E["office:value"]=D.v||0;break;case"s":case"str":W=null==D.v?"":D.v,E["office:value-type"]="string";break;case"d":W=D.w||$i(D.v).toISOString(),E["office:value-type"]="date",E["office:date-value"]=$i(D.v).toISOString(),E["table:style-name"]="ce1";break;default:d.push(i);continue}var L=t(W);if(D.l&&D.l.Target){var j=D.l.Target;"#"!=(j="#"==j.charAt(0)?"#"+jN(j.slice(1)):j).charAt(0)&&!j.match(/^\w+:/)&&(j="../"+j),L=Se("text:a",L,{"xlink:href":j.replace(/&/g,"&")})}l[D.z]&&(E["table:style-name"]="ce"+l[D.z].slice(1)),d.push(" "+Se("table:table-cell",Se("text:p",L,{}),E)+"\n")}else d.push(i)}}d.push(" \n")}return(a.Workbook||{}).Names&&d.push(_L(a.Workbook.Names,0,s)),d.push(" \n"),d.join("")};return function(a,s){var c=[an],l=kf({"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=kf({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});"fods"==s.bookType?(c.push("\n"),c.push(I4().replace(//,"").replace(/<\/office:document-meta>/,"")+"\n")):c.push("\n");var u=function(o,a){o.push(" \n");var s=0;a.SheetNames.map(function(u){return a.Sheets[u]}).forEach(function(u){if(u&&u["!cols"])for(var h=0;h\n'),o.push(' \n'),o.push(" \n"),++s}});var c=0;a.SheetNames.map(function(u){return a.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 a.SheetNames.map(function(u){return a.Sheets[u]}).forEach(function(u){if(u)for(var h=null!=u["!data"],f=On(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[zt({r:m,c:g})];if(p&&p.z&&"general"!=p.z.toLowerCase()&&!l[p.z]){var _=Pge(p.z,"N"+d);_&&(l[p.z]="N"+d,++d,o.push(_+"\n"))}}}),o.push(' \n'),zi(l).forEach(function(u){o.push('\n')}),o.push(" \n"),l}(c,a);c.push(" \n"),c.push(" \n"),((a.Workbook||{}).WBProps||{}).date1904&&c.push(' \n \n \n');for(var h=0;h!=a.SheetNames.length;++h)c.push(n(a.Sheets[a.SheetNames[h]],a,h,0,u));return(a.Workbook||{}).Names&&c.push(_L(a.Workbook.Names,0,-1)),c.push(" \n"),c.push(" \n"),c.push("fods"==s.bookType?"":""),c.join("")}}();function vL(t,i){if("fods"==i.bookType)return bL(t,i);var e=sw(),n="",r=[],o=[];return Rt(e,n="mimetype","application/vnd.oasis.opendocument.spreadsheet"),Rt(e,n="content.xml",bL(t,i)),r.push([n,"text/xml"]),o.push([n,"ContentFile"]),Rt(e,n="styles.xml",Oge(t,i)),r.push([n,"text/xml"]),o.push([n,"StylesFile"]),Rt(e,n="meta.xml",an+I4()),r.push([n,"text/xml"]),o.push([n,"MetadataFile"]),Rt(e,n="manifest.rdf",function Kae(t){var i=[an];i.push('\n');for(var e=0;e!=t.length;++e)i.push(A4(t[e][0],t[e][1])),i.push(Yae("",t[e][0]));return i.push(A4("","Document","pkg")),i.push(""),i.join("")}(o)),r.push([n,"application/rdf+xml"]),Rt(e,n="META-INF/manifest.xml",function Qae(t){var i=[an];i.push('\n'),i.push(' \n');for(var e=0;e\n');return i.push(""),i.join("")}(r)),e}var kn=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 gs(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function $n(t){return typeof TextDecoder<"u"?(new TextDecoder).decode(t):Ci(ka(t))}function Ko(t){return typeof TextEncoder<"u"?(new TextEncoder).encode(t):Cr(Sa(t))}function ic(t){for(var i=0,e=0;e=128&&(n|=(127&t[e])<<7,t[e++]<128||(n|=(127&t[e])<<14,t[e++]<128)||(n|=(127&t[e])<<21,t[e++]<128)||(n+=(127&t[e])*Math.pow(2,28),++e,t[e++]<128)||(n+=(127&t[e])*Math.pow(2,35),++e,t[e++]<128)||(n+=(127&t[e])*Math.pow(2,42),++e,t[e++]<128)))break e;return i.l=e,n}function et(t){var i=new Uint8Array(7);i[0]=127&t;var e=1;e:if(t>127){if(i[e-1]|=128,i[e]=t>>7&127,++e,t<=16383||(i[e-1]|=128,i[e]=t>>14&127,++e,t<=2097151)||(i[e-1]|=128,i[e]=t>>21&127,++e,t<=268435455)||(i[e-1]|=128,i[e]=t/256>>>21&127,++e,t<=34359738367)||(i[e-1]|=128,i[e]=t/65536>>>21&127,++e,t<=4398046511103))break e;i[e-1]|=128,i[e]=t/16777216>>>21&127,++e}return i[kn](0,e)}function xL(t){for(var i={l:0},e=[];i.l=128){if(e|=(127&t[i])<<7,t[i++]<128||(e|=(127&t[i])<<14,t[i++]<128)||(e|=(127&t[i])<<21,t[i++]<128))break e;e|=(127&t[i])<<28}return e}function Be(t){for(var i=[],e={l:0};e.l=128;);a=t[kn](e.l,s),e.l=s;break;case 1:a=t[kn](s,s+8),e.l=s+8;break;case 2:var c=Qf(t,e);a=t[kn](e.l,e.l+c),e.l+=c;break;case 5:a=t[kn](s,s+4),e.l=s+4;break;default:throw new Error("PB Type ".concat(o," for Field ").concat(r," at offset ").concat(n))}var l={data:a,type:o};null==i[r]&&(i[r]=[]),i[r].push(l)}return i}function dt(t){var i=[];return t.forEach(function(e,n){0!=n&&e.forEach(function(r){r.data&&(i.push(et(8*n+r.type)),2==r.type&&i.push(et(r.data.length)),i.push(r.data))})}),ic(i)}function pl(t,i){return t?.map(function(e){return i(e.data)})||[]}function Yf(t){for(var i,e=[],n={l:0};n.l>>0>0),e.push(a)}return e}function Kf(t){var i=[];return t.forEach(function(e){var n=[[],[{data:et(e.id),type:0}],[]];null!=e.merge&&(n[3]=[{data:et(+!!e.merge),type:0}]);var r=[];e.messages.forEach(function(a){r.push(a.data),a.meta[3]=[{type:0,data:et(a.data.length)}],n[2].push({data:dt(a.meta),type:2})});var o=dt(n);i.push(et(o.length)),i.push(o),r.forEach(function(a){return i.push(a)})}),ic(i)}function Bge(t,i){if(0!=t)throw new Error("Unexpected Snappy chunk type ".concat(t));for(var e={l:0},n=Qf(i,e),r=[],o=e.l;o>2&7),l=(224&i[o++])<<3,l|=i[o++]):(d=1+(i[o++]>>2),2==a?(l=i[o]|i[o+1]<<8,o+=2):(l=(i[o]|i[o+1]<<8|i[o+2]<<16|i[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][kn](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][kn](0,d))}r.length>25&&(r=[ic(r)])}else{var s=i[o++]>>2;if(s<60)++s;else{var c=s-59;s=i[o],c>1&&(s|=i[o+1]<<8),c>2&&(s|=i[o+2]<<16),c>3&&(s|=i[o+3]<<24),s>>>=0,s++,o+=c}r.push(i[kn](o,o+s)),o+=s}}for(var f=0,m=0;m>8&255]))):n<=16777216?(a+=4,i.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(a+=5,i.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),i.push(t[kn](e,e+n)),a+=n,r[0]=0,r[1]=255&a,r[2]=a>>8&255,r[3]=a>>16&255,e+=n}return ic(i)}function n_(t,i){var e=new Uint8Array(32),n=gs(e),r=12,o=0;switch(e[0]=5,t.t){case"n":e[1]=2,function Lge(t,i,e){var n=Math.floor(0==e?0:Math.LOG10E*Math.log(Math.abs(e)))+6176-16,r=e/Math.pow(10,n-6176);t[i+15]|=n>>7,t[i+14]|=(127&n)<<1;for(var o=0;r>=1;++o,r/=256)t[i+o]=255&r;t[i+15]|=e>=0?0:128}(e,r,t.v),o|=1,r+=16;break;case"b":e[1]=6,n.setFloat64(r,t.v?1:0,!0),o|=2,r+=8;break;case"s":var a=null==t.v?"":String(t.v),s=i.indexOf(a);-1==s&&(i[s=i.length]=a),e[1]=3,n.setUint32(r,s,!0),o|=8,r+=4;break;default:throw"unsupported cell type "+t.t}return n.setUint32(8,o,!0),e[kn](0,r)}function r_(t,i){var e=new Uint8Array(32),n=gs(e),r=12,o=0;switch(e[0]=4,t.t){case"n":e[2]=2,n.setFloat64(r,t.v,!0),o|=32,r+=8;break;case"b":e[2]=6,n.setFloat64(r,t.v?1:0,!0),o|=32,r+=8;break;case"s":var a=null==t.v?"":String(t.v),s=i.indexOf(a);-1==s&&(i[s=i.length]=a),e[2]=3,n.setUint32(r,s,!0),o|=16,r+=4;break;default:throw"unsupported cell type "+t.t}return n.setUint32(8,o,!0),e[kn](0,r)}function Di(t){return Zt(Be(t)[1][0].data)}function _s(t){return dt([[],[{type:0,data:et(t)}]])}function nc(t,i){var e,n=null!=(e=t.messages[0].meta[5])&&e[0]?xL(t.messages[0].meta[5][0].data):[];-1==n.indexOf(i)&&(n.push(i),t.messages[0].meta[5]=[{type:2,data:yL(n)}])}function bs(t,i){var e,n=null!=(e=t.messages[0].meta[5])&&e[0]?xL(t.messages[0].meta[5][0].data):[];t.messages[0].meta[5]=[{type:2,data:yL(n.filter(function(r){return r!=i}))}]}function Qge(t,i,e){var n,r,o=[[],[{type:0,data:et(0)}],[{type:0,data:et(0)}],[{type:2,data:new Uint8Array([])}],[{type:2,data:new Uint8Array(Array.from({length:510},function(){return 255}))}],[{type:0,data:et(5)}],[{type:2,data:new Uint8Array([])}],[{type:2,data:new Uint8Array(Array.from({length:510},function(){return 255}))}],[{type:0,data:et(1)}]];if(null==(n=o[6])||!n[0]||null==(r=o[7])||!r[0])throw"Mutation only works on post-BNC storages!";var a=0;if(o[7][0].data.length<2*t.length){var s=new Uint8Array(2*t.length);s.set(o[7][0].data),o[7][0].data=s}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=gs(o[7][0].data),d=0,u=[],h=gs(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:""};aC(i=i||{});var o=sw(),a="",s=0;if(i.cellXfs=[],tc(i.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),Rt(o,a="docProps/core.xml",R4(t.Props,i)),r.coreprops.push(a),ki(i.rels,2,a,Pt.CORE_PROPS),a="docProps/app.xml",!t.Props||!t.Props.SheetNames)if(t.Workbook&&t.Workbook.Sheets){for(var c=[],l=0;l0&&(Rt(o,a="docProps/custom.xml",L4(t.Custprops)),r.custprops.push(a),ki(i.rels,4,a,Pt.CUST_PROPS));var d=["SheetJ5"];for(i.tcid=0,s=1;s<=t.SheetNames.length;++s){var u={"!id":{}},h=t.Sheets[t.SheetNames[s-1]];if(Rt(o,a="xl/worksheets/sheet"+s+"."+e,Bfe(s-1,i,t,u)),r.sheets.push(a),ki(i.wbrels,-1,"worksheets/sheet"+s+"."+e,Pt.WS[0]),h){var m=h["!comments"],g=!1,p="";if(m&&m.length>0){var _=!1;m.forEach(function(w){w[1].forEach(function(x){1==x.T&&(_=!0)})}),_&&(Rt(o,p="xl/threadedComments/threadedComment"+s+".xml",oue(m,d,i)),r.threadedcomments.push(p),ki(u,-1,"../threadedComments/threadedComment"+s+".xml",Pt.TCMNT)),Rt(o,p="xl/comments"+s+"."+e,nue(m)),r.comments.push(p),ki(u,-1,"../comments"+s+"."+e,Pt.CMNT),g=!0}h["!legacy"]&&g&&Rt(o,"xl/drawings/vmlDrawing"+s+".vml",TN(s,h["!comments"])),delete h["!comments"],delete h["!legacy"]}u["!id"].rId1&&Rt(o,If(a),ou(u))}return null!=i.Strings&&i.Strings.length>0&&(Rt(o,a="xl/sharedStrings."+e,function hle(t,i){if(!i.bookSST)return"";var e=[an];e[e.length]=Se("sst",null,{xmlns:el[0],count:t.Count,uniqueCount:t.Unique});for(var n=0;n!=t.length;++n)if(null!=t[n]){var r=t[n],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("")}(i.Strings,i)),r.strs.push(a),ki(i.wbrels,-1,"sharedStrings."+e,Pt.SST)),Rt(o,a="xl/workbook."+e,function fpe(t){var i=[an];i[i.length]=Se("workbook",null,{xmlns:el[0],"xmlns:r":Fn.r});var e=t.Workbook&&(t.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};t.Workbook&&t.Workbook.WBProps&&(Zw.forEach(function(s){null!=t.Workbook.WBProps[s[0]]&&t.Workbook.WBProps[s[0]]!=s[1]&&(n[s[0]]=t.Workbook.WBProps[s[0]])}),t.Workbook.WBProps.CodeName&&(n.codeName=t.Workbook.WBProps.CodeName,delete n.CodeName)),i[i.length]=Se("workbookPr",null,n);var r=t.Workbook&&t.Workbook.Sheets||[],o=0;if(r&&r[0]&&r[0].Hidden){for(i[i.length]="",o=0;o!=t.SheetNames.length&&r[o]&&r[o].Hidden;++o);o==t.SheetNames.length&&(o=0),i[i.length]='',i[i.length]=""}for(i[i.length]="",o=0;o!=t.SheetNames.length;++o){var a={name:Ot(t.SheetNames[o].slice(0,31))};if(a.sheetId=""+(o+1),a["r:id"]="rId"+(o+1),r[o])switch(r[o].Hidden){case 1:a.state="hidden";break;case 2:a.state="veryHidden"}i[i.length]=Se("sheet",null,a)}return i[i.length]="",e&&(i[i.length]="",t.Workbook&&t.Workbook.Names&&t.Workbook.Names.forEach(function(s){var c={name:s.Name};s.Comment&&(c.comment=s.Comment),null!=s.Sheet&&(c.localSheetId=""+s.Sheet),s.Hidden&&(c.hidden="1"),s.Ref&&(i[i.length]=Se("definedName",Ot(s.Ref),c))}),i[i.length]=""),i.length>2&&(i[i.length]="",i[1]=i[1].replace("/>",">")),i.join("")}(t)),r.workbooks.push(a),ki(i.rels,1,a,Pt.WB),Rt(o,a="xl/theme/theme1.xml",Ww(t.Themes,i)),r.themes.push(a),ki(i.wbrels,-1,"theme/theme1.xml",Pt.THEME),Rt(o,a="xl/styles."+e,function Jle(t,i){var n,e=[an,Se("styleSheet",null,{xmlns:el[0],"xmlns:vt":Fn.vt})];return t.SSF&&null!=(n=function Qle(t){var i=[""];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(e){for(var n=e[0];n<=e[1];++n)null!=t[n]&&(i[i.length]=Se("numFmt",null,{numFmtId:n,formatCode:Ot(t[n])}))}),1===i.length?"":(i[i.length]="",i[0]=Se("numFmts",null,{count:i.length-2}).replace("/>",">"),i.join(""))}(t.SSF))&&(e[e.length]=n),e[e.length]='',e[e.length]='',e[e.length]='',e[e.length]='',(n=function Kle(t){var i=[];return i[i.length]=Se("cellXfs",null),t.forEach(function(e){i[i.length]=Se("xf",null,e)}),i[i.length]="",2===i.length?"":(i[0]=Se("cellXfs",null,{count:i.length-2}).replace("/>",">"),i.join(""))}(i.cellXfs))&&(e[e.length]=n),e[e.length]='',e[e.length]='',e[e.length]='',e.length>2&&(e[e.length]="",e[1]=e[1].replace("/>",">")),e.join("")}(t,i)),r.styles.push(a),ki(i.wbrels,-1,"styles."+e,Pt.STY),t.vbaraw&&n&&(Rt(o,a="xl/vbaProject.bin",t.vbaraw),r.vba.push(a),ki(i.wbrels,-1,"vbaProject.bin",Pt.VBA)),Rt(o,a="xl/metadata."+e,function Qde(){var t=[an];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(a),ki(i.wbrels,-1,"metadata."+e,Pt.XLMETA),d.length>1&&(Rt(o,a="xl/persons/person.xml",function sue(t){var i=[an,Se("personList",null,{xmlns:Fn.TCMNT,"xmlns:x":el[0]}).replace(/[\/]>/,">")];return t.forEach(function(e,n){i.push(Se("person",null,{displayName:e,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:e,providerId:"None"}))}),i.push(""),i.join("")}(d)),r.people.push(a),ki(i.wbrels,-1,"persons/person.xml",Pt.PEOPLE)),Rt(o,"[Content_Types].xml",M4(r,i)),Rt(o,"_rels/.rels",ou(i.rels)),Rt(o,"xl/_rels/workbook.xml.rels",ou(i.wbrels)),delete i.revssf,delete i.ssf,o}function AL(t,i){switch(i.type){case"base64":case"binary":break;case"buffer":case"array":i.type="";break;case"file":return yf(i.file,lt.write(t,{type:Vt?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+i.bookType+"' files");default:throw new Error("Unrecognized type "+i.type)}return lt.write(t,i)}function u0e(t,i){switch(i.bookType){case"ods":return vL(t,i);case"numbers":return function Kge(t,i){if(!i||!i.numbers)throw new Error("Must pass a `numbers` option -- check the README");var e=lt.read(i.numbers,{type:"base64"}),n=function Yge(t){var i={},e=[];return t.FileIndex.map(function(n,r){return[n,t.FullPaths[r]]}).forEach(function(n){var r=n[0],o=n[1];2==r.type&&r.name.match(/\.iwa/)&&0==r.content[0]&&Yf(Zf(r.content)).forEach(function(a){e.push(a.id),i[a.id]={deps:[],location:o,type:Zt(a.messages[0].meta[1][0].data)}})}),t.FileIndex.forEach(function(n){n.name.match(/\.iwa/)&&0==n.content[0]&&Yf(Zf(n.content)).forEach(function(r){r.messages.forEach(function(o){[5,6].forEach(function(a){o.meta[a]&&o.meta[a].forEach(function(s){i[r.id].deps.push(Zt(s.data))})})})})}),i}(e),r=Aa(e,n,1);if(null==r)throw"Could not find message ".concat(1," in Numbers template");var o=pl(Be(r.messages[0].data)[1],Di);if(o.length>1)throw new Error("Template NUMBERS file must have exactly one sheet");return t.SheetNames.forEach(function(a,s){s>=1&&(function Zge(t,i,e){var n=-1,r=-1,o={};Nn(t,i,1,function(l,d){var u=Be(l.messages[0].data);n=Di(Be(l.messages[0].data)[1][0].data),r=rc({deps:[1],location:i[n].location,type:2},i),o[n]=r,nc(l,r),u[1].push({type:2,data:_s(r)});var h=Aa(t,i,n);h.id=r,i[1].location==i[r].location?d.push(h):Nn(t,i,r,function(f,m){return m.push(h)}),l.messages[0].data=dt(u)});var a=-1;Nn(t,i,r,function(l,d){for(var u=Be(l.messages[0].data),h=3;h<=69;++h)delete u[h];var f=pl(u[2],Di);f.forEach(function(p){return bs(l,p)}),a=rc({deps:[r],location:i[f[0]].location,type:i[f[0]].type},i),nc(l,a),o[f[0]]=a,u[2]=[{type:2,data:_s(a)}];var m=Aa(t,i,f[0]);if(m.id=a,i[f[0]].location==i[r].location)d.push(m);else{var g=i[r].location;g=(g=g.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,""),Nn(t,i,2,function(p){var _=Be(p.messages[0].data),w=_[3].findIndex(function(E){var W,N,D=Be(E.data);return null!=(W=D[3])&&W[0]?$n(D[3][0].data)==g:!(null==(N=D[2])||!N[0]||$n(D[2][0].data)!=g)}),x=Be(_[3][w].data);x[6]||(x[6]=[]),x[6].push({type:2,data:dt([[],[{type:0,data:et(a)}]])}),_[3][w].data=dt(x),p.messages[0].data=dt(_)}),Nn(t,i,a,function(p,_){return _.push(m)})}l.messages[0].data=dt(u)});var s=-1;Nn(t,i,a,function(l,d){for(var u=Be(l.messages[0].data),h=Be(u[1][0].data),f=3;f<=69;++f)delete h[f];var m=Di(h[2][0].data);h[2][0].data=_s(o[m]),u[1][0].data=dt(h);var g=Di(u[2][0].data);bs(l,g),nc(l,s=rc({deps:[a],location:i[g].location,type:i[g].type},i)),o[g]=s,u[2][0].data=_s(s);var p=Aa(t,i,g);p.id=s,i[a].location==i[s].location?d.push(p):Nn(t,i,s,function(_,w){return w.push(p)}),l.messages[0].data=dt(u)});var c=i[s].location;c=(c=c.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,""),Nn(t,i,s,function(l,d){var u,h,f=Be(l.messages[0].data),g=$n(f[1][0].data).replace(/-[A-Z0-9]*/,"-".concat(e.toString(16).padStart(4,"0")));if(f[1][0].data=Ko(g),[12,13,29,31,32,33,39,44,47,81,82,84].forEach(function(N){return delete f[N]}),f[45]){var _=Di(Be(f[45][0].data)[1][0].data);bs(l,_),delete f[45]}f[70]&&(null==(u=Be(f[70][0].data)[2])||u.forEach(function(N){var D=Be(N.data);[2,3].map(function(B){return D[B][0]}).forEach(function(B){var L=Be(B.data);if(L[8]){var j=Di(L[8][0].data);bs(l,j)}})}),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(N){if(f[N]){var D=Di(f[N][0].data);delete f[N],bs(l,D)}});var x=Be(f[4][0].data);[2,4,5,6,11,12,13,15,16,17,18,19,20,21,22].forEach(function(N){var D;if(null!=(D=x[N])&&D[0]){var B=Di(x[N][0].data),L=rc({deps:[s],location:i[B].location,type:i[B].type},i);bs(l,B),nc(l,L),o[B]=L;var j=Aa(t,i,B);if(j.id=L,i[B].location==i[s].location)d.push(j);else{i[L].location=i[B].location.replace(B.toString(),L.toString()),i[L].location==i[B].location&&(i[L].location=i[L].location.replace(/\.iwa/,"-".concat(L,".iwa"))),lt.utils.cfb_add(t,i[L].location,Jf(Kf([j])));var Z=i[L].location;Z=(Z=Z.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,""),Nn(t,i,2,function(U){var me=Be(U.messages[0].data);me[3].push({type:2,data:dt([[],[{type:0,data:et(L)}],[{type:2,data:Ko(Z.replace(/-.*$/,""))}],[{type:2,data:Ko(Z)}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:et(0)}],[],[{type:0,data:et(0)}]])}),me[1]=[{type:0,data:et(Math.max(L+1,Zt(me[1][0].data)))}];var be=me[3].findIndex(function(ne){var Y,he,se=Be(ne.data);return null!=(Y=se[3])&&Y[0]?$n(se[3][0].data)==c:!(null==(he=se[2])||!he[0]||$n(se[2][0].data)!=c)}),de=Be(me[3][be].data);de[6]||(de[6]=[]),de[6].push({type:2,data:dt([[],[{type:0,data:et(L)}]])}),me[3][be].data=dt(de),U.messages[0].data=dt(me)})}x[N][0].data=_s(L)}});var E=Be(x[1][0].data);null==(h=E[2])||h.forEach(function(N){var D=Di(N.data),B=rc({deps:[s],location:i[D].location,type:i[D].type},i);bs(l,D),nc(l,B),o[D]=B;var L=Aa(t,i,D);if(L.id=B,i[D].location==i[s].location)d.push(L);else{i[B].location=i[D].location.replace(D.toString(),B.toString()),i[B].location==i[D].location&&(i[B].location=i[B].location.replace(/\.iwa/,"-".concat(B,".iwa"))),lt.utils.cfb_add(t,i[B].location,Jf(Kf([L])));var j=i[B].location;j=(j=j.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,""),Nn(t,i,2,function(Z){var U=Be(Z.messages[0].data);U[3].push({type:2,data:dt([[],[{type:0,data:et(B)}],[{type:2,data:Ko(j.replace(/-.*$/,""))}],[{type:2,data:Ko(j)}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:et(0)}],[],[{type:0,data:et(0)}]])}),U[1]=[{type:0,data:et(Math.max(B+1,Zt(U[1][0].data)))}];var me=U[3].findIndex(function(de){var ne,Y,he=Be(de.data);return null!=(ne=he[3])&&ne[0]?$n(he[3][0].data)==c:!(null==(Y=he[2])||!Y[0]||$n(he[2][0].data)!=c)}),be=Be(U[3][me].data);be[6]||(be[6]=[]),be[6].push({type:2,data:dt([[],[{type:0,data:et(B)}]])}),U[3][me].data=dt(be),Z.messages[0].data=dt(U)})}N.data=_s(B)}),x[1][0].data=dt(E);var W=Be(x[3][0].data);W[1].forEach(function(N){var D=Be(N.data),B=Di(D[2][0].data),L=o[B];if(!o[B]){L=rc({deps:[s],location:"",type:i[B].type},i),i[L].location="Root Entry/Index/Tables/Tile-".concat(L,".iwa"),o[B]=L;var j=Aa(t,i,B);j.id=L,bs(l,B),nc(l,L),lt.utils.cfb_add(t,"/Index/Tables/Tile-".concat(L,".iwa"),Jf(Kf([j]))),Nn(t,i,2,function(Z){var U=Be(Z.messages[0].data);U[3].push({type:2,data:dt([[],[{type:0,data:et(L)}],[{type:2,data:Ko("Tables/Tile")}],[{type:2,data:Ko("Tables/Tile-".concat(L))}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:et(0)}],[],[{type:0,data:et(0)}]])}),U[1]=[{type:0,data:et(Math.max(L+1,Zt(U[1][0].data)))}];var me=U[3].findIndex(function(de){var ne,Y,he=Be(de.data);return null!=(ne=he[3])&&ne[0]?$n(he[3][0].data)==c:!(null==(Y=he[2])||!Y[0]||$n(he[2][0].data)!=c)}),be=Be(U[3][me].data);be[6]||(be[6]=[]),be[6].push({type:2,data:dt([[],[{type:0,data:et(L)}]])}),U[3][me].data=dt(be),Z.messages[0].data=dt(U)})}D[2][0].data=_s(L),N.data=dt(D)}),x[3][0].data=dt(W),f[4][0].data=dt(x),l.messages[0].data=dt(f)})}(e,n,s+1),r=Aa(e,n,1),o=pl(Be(r.messages[0].data)[1],Di)),function Jge(t,i,e,n,r,o){var a=[];Nn(t,i,o,function(l){var d=Be(l.messages[0].data);d[1]=[{type:2,data:Ko(n)}],a=pl(d[2],Di),l.messages[0].data=dt(d)});var c=Di(Be(Aa(t,i,a[0]).messages[0].data)[2][0].data);Nn(t,i,c,function(l,d){return function e0e(t,i,e,n,r,o){var a=On(e["!ref"]);a.s.r=a.s.c=0;var s=!1;a.e.c>999&&(s=!0,a.e.c=999),a.e.r>999999&&(s=!0,a.e.r=999999),s&&console.error("Truncating to ".concat(Et(a)));var c=s_(e,{range:a,header:1}),l=["~Sh33tJ5~"],d=i[o].location;d=(d=d.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,"");var u=Be(n.messages[0].data);u[6][0].data=et(a.e.r+1),u[7][0].data=et(a.e.c+1),delete u[46];var h=Be(u[4][0].data);Nn(t,i,Di(Be(h[1][0].data)[2][0].data),function(be,de){var ne,Y=Be(be.messages[0].data);if(null!=(ne=Y?.[2])&&ne[0])for(var he=0;he0&&(Rt(o,a="docProps/custom.xml",L4(t.Custprops)),r.custprops.push(a),ki(i.rels,4,a,Pt.CUST_PROPS)),s=1;s<=t.SheetNames.length;++s){var d={"!id":{}},u=t.Sheets[t.SheetNames[s-1]];if(Rt(o,a="xl/worksheets/sheet"+s+"."+e,Jme(s-1,i,t,d)),r.sheets.push(a),ki(i.wbrels,-1,"worksheets/sheet"+s+"."+e,Pt.WS[0]),u){var f=u["!comments"],m=!1,g="";f&&f.length>0&&(Rt(o,g="xl/comments"+s+"."+e,fue(f)),r.comments.push(g),ki(d,-1,"../comments"+s+"."+e,Pt.CMNT),m=!0),u["!legacy"]&&m&&Rt(o,"xl/drawings/vmlDrawing"+s+".vml",TN(s,u["!comments"])),delete u["!comments"],delete u["!legacy"]}d["!id"].rId1&&Rt(o,If(a),ou(d))}return null!=i.Strings&&i.Strings.length>0&&(Rt(o,a="xl/sharedStrings."+e,function _le(t){var i=Br();fe(i,159,function ple(t,i){return i||(i=re(8)),i.write_shift(4,t.Count),i.write_shift(4,t.Unique),i}(t));for(var e=0;e22)throw new Error("Bad Code Name: Worksheet"+a)}})}(t.SheetNames,t.Workbook&&t.Workbook.Sheets||[],!!t.vbaraw);for(var e=0;e255&&(e=95),o=e>>2,(n=t.charCodeAt(l++))>255&&(n=95),a=(3&e)<<4|n>>4,(r=t.charCodeAt(l++))>255&&(r=95),s=(15&n)<<2|r>>6,c=63&r,isNaN(n)?s=c=64:isNaN(r)&&(c=64),i+=Co.charAt(o)+Co.charAt(a)+Co.charAt(s)+Co.charAt(c);return i}(t);case"binary":case"string":return t;case"file":return yf(i.file,t,"binary");case"buffer":return Vt?Ca(t,"binary"):t.split("").map(function(e){return e.charCodeAt(0)})}throw new Error("Unrecognized type "+i.type)}(NL(t.Sheets[t.SheetNames[r]],e),e);case"csv":return Ia(uC(t.Sheets[t.SheetNames[r]],e),e,"\ufeff");case"dif":return Ia(_N.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"dbf":return a_(Vw.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"prn":return Ia(au.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"rtf":return Ia(function Lle(t,i){var e=["{\\rtf1\\ansi"];if(!t["!ref"])return e[0]+"}";for(var r,n=Kt(t["!ref"]),o=null!=t["!data"],a=[],s=n.s.r;s<=n.e.r;++s){e.push("\\trowd\\trautofit1");for(var c=n.s.c;c<=n.e.c;++c)e.push("\\cellx"+(c+1));for(e.push("\\pard\\intbl"),o&&(a=t["!data"][s]||[]),c=n.s.c;c<=n.e.c;++c){var l=zt({r:s,c});(r=o?a[c]:t[l])&&(null!=r.v||r.f&&!r.F)?(e.push(" "+(r.w||(Ea(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 Ia(bN.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"fods":return Ia(vL(t,e),e);case"wk1":return a_(hl.sheet_to_wk1(t.Sheets[t.SheetNames[r]],e),e);case"wk3":return a_(hl.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),a_(nL(t,e),e);case"biff5":e.biff||(e.biff=5);case"biff8":case"xla":case"xls":return e.biff||(e.biff=8),function m0e(t,i){var e=i||{};return AL(function fge(t,i){var e=i||{},n=lt.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 lt.utils.cfb_add(n,r,nL(t,e)),8==e.biff&&(t.Props||t.Custprops)&&function hge(t,i){var a,e=[],n=[],r=[],o=0,s=BP(Ew,"n"),c=BP(Tw,"n");if(t.Props)for(a=zi(t.Props),o=0;o-1||O4.indexOf(r[o][0])>-1||null!=r[o][1]&&l.push(r[o]);n.length&<.utils.cfb_add(i,"/\x05SummaryInformation",X4(n,Gf.SI,c,Tw)),(e.length||l.length)&<.utils.cfb_add(i,"/\x05DocumentSummaryInformation",X4(e,Gf.DSI,s,Ew,l.length?l:null,Gf.UDI))}(t,n),8==e.biff&&t.vbaraw&&function gue(t,i){i.FullPaths.forEach(function(e,n){if(0!=n){var r=e.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");"/"!==r.slice(-1)&<.utils.cfb_add(t,r,i.FileIndex[n].content)}})}(n,lt.read(t.vbaraw,{type:"string"==typeof t.vbaraw?"binary":"buffer"})),n}(t,e),e)}(t,e);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return function h0e(t,i){var e=yi(i||{});return function IL(t,i){var e={},n=Vt?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(i.compression&&(e.compression="DEFLATE"),i.password)e.type=n;else switch(i.type){case"base64":e.type="base64";break;case"binary":e.type="string";break;case"string":throw new Error("'string' output type invalid for '"+i.bookType+"' files");case"buffer":case"file":e.type=n;break;default:throw new Error("Unrecognized type "+i.type)}var r=t.FullPaths?lt.write(t,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[e.type]||e.type,compression:!!i.compression}):t.generate(e);if(typeof Deno<"u"&&"string"==typeof r){if("binary"==i.type||"base64"==i.type)return r;r=new Uint8Array(_f(r))}return i.password&&typeof encrypt_agile<"u"?AL(encrypt_agile(r,i.password),i):"file"===i.type?yf(i.file,r):"string"==i.type?Ci(r):r}(u0e(t,e),e)}(t,e);default:throw new Error("Unrecognized bookType |"+e.bookType+"|")}}function RL(t,i,e,n,r,o,a){var s=Yt(e),c=a.defval,l=a.raw||!Object.prototype.hasOwnProperty.call(a,"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=i.s.c;f<=i.e.c;++f){var m=u?(t["!data"][e]||[])[f]:t[n[f]+s];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!==a.rawNumbers)?g:Ea(m,g,a);null!=g&&(d=!1)}}else{if(void 0===c)continue;null!=o[f]&&(h[o[f]]=c)}}return{row:h,isempty:d}}function s_(t,i){if(null==t||null==t["!ref"])return[];var e={t:"n",v:0},n=0,r=1,o=[],a=0,s="",c={s:{r:0,c:0},e:{r:0,c:0}},l=i||{},d=null!=l.range?l.range:t["!ref"];switch(1===l.header?n=1:"A"===l.header?n=2:Array.isArray(l.header)?n=3:null==l.header&&(n=0),typeof d){case"string":c=Kt(d);break;case"number":(c=Kt(t["!ref"])).s.r=d;break;default:c=d}n>0&&(r=0);var u=Yt(c.s.r),h=[],f=[],m=0,g=0,p=null!=t["!data"],_=c.s.r,w=0,x={};p&&!t["!data"][_]&&(t["!data"][_]=[]);var E=l.skipHidden&&t["!cols"]||[],W=l.skipHidden&&t["!rows"]||[];for(w=c.s.c;w<=c.e.c;++w)if(!(E[w]||{}).hidden)switch(h[w]=Ht(w),e=p?t["!data"][_][w]:t[h[w]+u],n){case 1:o[w]=w-c.s.c;break;case 2:o[w]=h[w];break;case 3:o[w]=l.header[w-c.s.c];break;default:if(null==e&&(e={w:"__EMPTY",t:"s"}),s=a=Ea(e,null,l),g=x[a]||0){do{s=a+"_"+g++}while(x[s]);x[a]=g,x[s]=1}else x[a]=1;o[w]=s}for(_=c.s.r+r;_<=c.e.r;++_)if(!(W[_]||{}).hidden){var N=RL(t,c,_,h,n,o,l);(!1===N.isempty||(1===n?!1!==l.blankrows:l.blankrows))&&(f[m++]=N.row)}return f.length=m,f}var OL=/"/g;function PL(t,i,e,n,r,o,a,s){for(var c=!0,l=[],d="",u=Yt(e),h=null!=t["!data"],f=h&&t["!data"][e]||[],m=i.s.c;m<=i.e.c;++m)if(n[m]){var g=h?f[m]:t[n[m]+u];if(null==g)d="";else if(null!=g.v){c=!1,d=""+(s.rawNumbers&&"n"==g.t?g.v:Ea(g,null,s));for(var p=0,_=0;p!==d.length;++p)if((_=d.charCodeAt(p))===r||_===o||34===_||s.forceQuotes){d='"'+d.replace(OL,'""')+'"';break}"ID"==d&&(d='"ID"')}else null==g.f||g.F?d="":(c=!1,(d="="+g.f).indexOf(",")>=0&&(d='"'+d.replace(OL,'""')+'"'));l.push(d)}return!1===s.blankrows&&c?null:l.join(a)}function uC(t,i){var e=[],n=i??{};if(null==t||null==t["!ref"])return"";for(var r=Kt(t["!ref"]),o=void 0!==n.FS?n.FS:",",a=o.charCodeAt(0),s=void 0!==n.RS?n.RS:"\n",c=s.charCodeAt(0),l=new RegExp(("|"==o?"\\|":o)+"+$"),d="",u=[],h=n.skipHidden&&t["!cols"]||[],f=n.skipHidden&&t["!rows"]||[],m=r.s.c;m<=r.e.c;++m)(h[m]||{}).hidden||(u[m]=Ht(m));for(var g=0,p=r.s.r;p<=r.e.r;++p)(f[p]||{}).hidden||null!=(d=PL(t,r,p,u,a,c,o,n))&&(n.strip&&(d=d.replace(l,"")),(d||!1!==n.blankrows)&&e.push((g++?s:"")+d));return e.join("")}function NL(t,i){i||(i={}),i.FS="\t",i.RS="\n";var e=uC(t,i);if(typeof Mt>"u"||"string"==i.type)return e;var n=Mt.utils.encode(1200,e,"str");return String.fromCharCode(255)+String.fromCharCode(254)+n}function LL(t,i,e){var n=e||{},r=t?null!=t["!data"]:n.dense;null!=on&&null==r&&(r=on);var o=+!n.skipHeader,a=t||{};!t&&r&&(a["!data"]=[]);var s=0,c=0;if(a&&null!=n.origin)if("number"==typeof n.origin)s=n.origin;else{var l="string"==typeof n.origin?bi(n.origin):n.origin;s=l.r,c=l.c}var d={s:{c:0,r:0},e:{c,r:s+i.length-1+o}};if(a["!ref"]){var u=Kt(a["!ref"]);d.e.c=Math.max(d.e.c,u.e.c),d.e.r=Math.max(d.e.r,u.e.r),-1==s&&(d.e.r=(s=u.e.r+1)+i.length-1+o)}else-1==s&&(s=0,d.e.r=i.length-1+o);var h=n.header||[],f=0,m=[];i.forEach(function(p,_){r&&!a["!data"][s+_+o]&&(a["!data"][s+_+o]=[]),r&&(m=a["!data"][s+_+o]),zi(p).forEach(function(w){-1==(f=h.indexOf(w))&&(h[f=h.length]=w);var x=p[w],E="z",W="",N=r?"":Ht(c+f)+Yt(s+_+o),D=r?m[c+f]:a[N];!x||"object"!=typeof x||x instanceof Date?("number"==typeof x?E="n":"boolean"==typeof x?E="b":"string"==typeof x?E="s":x instanceof Date?(E="d",n.cellDates||(E="n",x=xn(x)),W=null!=D&&D.z&&Qs(D.z)?D.z:n.dateNF||ut[14]):null===x&&n.nullError&&(E="e",x=0),D?(D.t=E,D.v=x,delete D.w,delete D.R,W&&(D.z=W)):r?m[c+f]=D={t:E,v:x}:a[N]=D={t:E,v:x},W&&(D.z=W)):r?m[c+f]=x:a[N]=x})}),d.e.c=Math.max(d.e.c,c+h.length-1);var g=Yt(s);if(r&&!a["!data"][s]&&(a["!data"][s]=[]),o)for(f=0;f=65535)throw new Error("Too many worksheets");if(n&&t.SheetNames.indexOf(e)>=0){var o=e.match(/(^.*?)(\d+)$/);r=o&&+o[2]||0;var a=o&&o[1]||e;for(++r;r<=65535&&-1!=t.SheetNames.indexOf(e=a+r);++r);}if(ZN(e),t.SheetNames.indexOf(e)>=0)throw new Error("Worksheet with name |"+e+"| already exists!");return t.SheetNames.push(e),t.Sheets[e]=i,e}var VL_json_to_sheet=function v0e(t,i){return LL(null,t,i)};let R0e=(()=>{class t{constructor(){}exportAsExcelFile(e,n){const a=em({Sheets:{data:VL_json_to_sheet(e)},SheetNames:["data"]},{bookType:"xlsx",type:"array"});this.saveAsExcelFile(a,n)}saveAsExcelFile(e,n){const r=new Blob([e],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"});qd.saveAs(r,n+"_export_"+(new Date).getTime()+".xlsx")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const O0e=["*",[["mat-toolbar-row"]]],P0e=["*","mat-toolbar-row"],N0e=Ls(class{constructor(t){this._elementRef=t}});let L0e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),B0e=(()=>{class t extends N0e{constructor(e,n,r){super(e),this._platform=n,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(b(Ae),b(xi),b(it))},t.\u0275cmp=je({type:t,selectors:[["mat-toolbar"]],contentQueries:function(e,n,r){if(1&e&&Bt(r,L0e,5),2&e){let o;xe(o=ye())&&(n._toolbarRows=o)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,n){2&e&&Xe("mat-toolbar-multiple-rows",n._toolbarRows.length>0)("mat-toolbar-single-row",0===n._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[pe],ngContentSelectors:P0e,decls:2,vars:0,template:function(e,n){1&e&&(vi(O0e),Je(0),Je(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .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}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),t})(),V0e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({imports:[xt,xt]}),t})();function H0e(t,i){if(1&t){const e=ct();v(0,"button",6),X("click",function(){const o=Oe(e).$implicit;return Pe(q().setFhirServer(o))}),M(1),y()}if(2&t){const e=i.$implicit;k(1),tt(e.name)}}function U0e(t,i){if(1&t){const e=ct();v(0,"button",6),X("click",function(){const o=Oe(e).$implicit;return Pe(q(2).setEdition(o))}),M(1),y()}if(2&t){const e=i.$implicit;k(1),tt(e.resource.version)}}function z0e(t,i){if(1&t&&(Ai(0),v(1,"button",14),M(2),y(),v(3,"mat-menu",null,15),H(5,U0e,2,1,"button",9),y(),Ii()),2&t){const e=i.$implicit,n=Lt(4);k(1),I("matMenuTriggerFor",n),k(1),tt(e.editionName),k(3),I("ngForOf",e.editions)}}function $0e(t,i){if(1&t){const e=ct();v(0,"button",6),X("click",function(){const o=Oe(e).$implicit;return Pe(q().setLanguage(o))}),M(1),y()}if(2&t){const e=i.$implicit;k(1),tt(e)}}let j0e=(()=>{class t{constructor(e,n,r,o){this.codingSpecService=e,this.excelService=n,this.terminologyService=r,this.router=o,this.title="sct-implementation-demonstrator",this.bindingsForExport=[],this.editions=[],this.editionsDetails=[],this.languages=["be","en","es","fr","no"],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.router.events.subscribe(a=>{a instanceof Fs&>ag("config","G-7SK998GPMX",{page_path:a.urlAfterRedirects})})}ngOnInit(){this.setFhirServer(this.selectedServer),this.bindingsForExport=[];let e=this.codingSpecService.getCodingSpec();for(const n of e)for(const r of n.bindings)this.bindingsForExport.push({section:n.title,title:r.title,ecl:r.ecl.replace(/\s\s+/g," ")});this.updateCodeSystemOptions()}navigate(e){this.router.navigate([e])}updateCodeSystemOptions(){this.terminologyService.getCodeSystems().subscribe(e=>{this.editionsDetails=[],this.editions=e.entry;let n=new Set;this.editions.forEach(o=>{n.add(o.resource.title)}),n.forEach(o=>{this.editionsDetails.push({editionName:o,editions:this.editions.filter(a=>a.resource.title.includes(o)).sort(this.compare)})});const r=this.editionsDetails.findIndex(o=>"International Edition"===o.editionName);this.setEdition(r>=0?this.editionsDetails[r].editions[0]:this.editions[0])})}compare(e,n){return e.resource.daten.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)}}return t.\u0275fac=function(e){return new(e||t)(b(coe),b(R0e),b(yo),b(Or))},t.\u0275cmp=je({type:t,selectors:[["app-root"]],decls:34,vars:10,consts:[["src","assets/img/small_logo.png","height","60px"],["id","title"],[1,"example-spacer"],["mat-flat-button","","color","accent",3,"matMenuTriggerFor"],[1,"wide-menu"],["demosMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-flat-button","","color","primary",3,"matMenuTriggerFor"],["serverMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["editionsMenu","matMenu"],[4,"ngFor","ngForOf"],["menu","matMenu"],["mat-flat-button","","href","https://github.com/IHTSDO/sct-implementation-demonstrator","target","_blank","color","primary"],["mat-menu-item","",3,"matMenuTriggerFor"],["sub_menu","matMenu"]],template:function(e,n){if(1&e&&(v(0,"mat-toolbar"),Ee(1,"img",0),v(2,"span",1),M(3,"SNOMED CT Implementation Demos"),y(),Ee(4,"span",2),v(5,"button",3),M(6,"Select Demonstrator"),y(),v(7,"mat-menu",4,5)(9,"button",6),X("click",function(){return n.navigate("/allergies")}),M(10,"Allergies CRG"),y(),v(11,"button",6),X("click",function(){return n.navigate("/sandbox")}),M(12,"Terminology Bindings Sandbox"),y(),v(13,"button",6),X("click",function(){return n.navigate("/questionnaires")}),M(14,"FHIR Questionnaire Validation Tool"),y()(),v(15,"button",7),M(16),y(),v(17,"mat-menu",null,8),H(19,H0e,2,1,"button",9),y(),v(20,"button",7),M(21),y(),v(22,"mat-menu",4,10),H(24,z0e,6,3,"ng-container",11),y(),v(25,"button",7),M(26),y(),v(27,"mat-menu",null,12),H(29,$0e,2,1,"button",9),y(),v(30,"a",13)(31,"mat-icon"),M(32,"info"),y()()(),Ee(33,"router-outlet")),2&e){const r=Lt(8),o=Lt(18),a=Lt(23),s=Lt(28);k(5),I("matMenuTriggerFor",r),k(10),I("matMenuTriggerFor",o),k(1),It("FHIR Server: ",n.selectedServer.name,""),k(3),I("ngForOf",n.fhirServers),k(1),I("matMenuTriggerFor",a),k(1),tt(n.selectedEdition),k(3),I("ngForOf",n.editionsDetails),k(1),I("matMenuTriggerFor",s),k(1),tt(n.selectedLanguage),k(3),I("ngForOf",n.languages)}},dependencies:[go,Kx,B0e,lX,xo,ba,$c,va,jc],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}#title[_ngcontent-%COMP%]{margin-left:15px;font-size:1.4rem}.example-spacer[_ngcontent-%COMP%]{flex:1 1 auto}button[_ngcontent-%COMP%], 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}"]}),t})();function HL(t){return new ue(3e3,!1)}function D_e(){return typeof window<"u"&&typeof window.document<"u"}function fC(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function oc(t){switch(t.length){case 0:return new Ph;case 1:return t[0];default:return new eF(t)}}function UL(t,i,e,n,r=new Map,o=new Map){const a=[],s=[];let c=-1,l=null;if(n.forEach(d=>{const u=d.get("offset"),h=u==c,f=h&&l||new Map;d.forEach((m,g)=>{let p=g,_=m;if("offset"!==g)switch(p=i.normalizePropertyName(p,a),_){case $y:_=r.get(g);break;case ns:_=o.get(g);break;default:_=i.normalizeStyleValue(g,p,_,a)}f.set(p,_)}),h||s.push(f),l=f,c=u}),a.length)throw function f_e(t){return new ue(3502,!1)}();return s}function mC(t,i,e,n){switch(i){case"start":t.onStart(()=>n(e&&pC(e,"start",t)));break;case"done":t.onDone(()=>n(e&&pC(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&pC(e,"destroy",t)))}}function pC(t,i,e){const o=gC(t.element,t.triggerName,t.fromState,t.toState,i||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),a=t._data;return null!=a&&(o._data=a),o}function gC(t,i,e,n,r="",o=0,a){return{element:t,triggerName:i,fromState:e,toState:n,phaseName:r,totalTime:o,disabled:!!a}}function no(t,i,e){let n=t.get(i);return n||t.set(i,n=e),n}function zL(t){const i=t.indexOf(":");return[t.substring(1,i),t.slice(i+1)]}let _C=(t,i)=>!1,$L=(t,i,e)=>[],jL=null;function bC(t){const i=t.parentNode||t.host;return i===jL?null:i}(fC()||typeof Element<"u")&&(D_e()?(jL=(()=>document.documentElement)(),_C=(t,i)=>{for(;i;){if(i===t)return!0;i=bC(i)}return!1}):_C=(t,i)=>t.contains(i),$L=(t,i,e)=>{if(e)return Array.from(t.querySelectorAll(i));const n=t.querySelector(i);return n?[n]:[]});let gl=null,WL=!1;const GL=_C,qL=$L;let XL=(()=>{class t{validateStyleProperty(e){return function E_e(t){gl||(gl=function T_e(){return typeof document<"u"?document.body:null}()||{},WL=!!gl.style&&"WebkitAppearance"in gl.style);let i=!0;return gl.style&&!function S_e(t){return"ebkit"==t.substring(1,6)}(t)&&(i=t in gl.style,!i&&WL&&(i="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in gl.style)),i}(e)}matchesElement(e,n){return!1}containsElement(e,n){return GL(e,n)}getParentElement(e){return bC(e)}query(e,n,r){return qL(e,n,r)}computeStyle(e,n,r){return r||""}animate(e,n,r,o,a,s=[],c){return new Ph(r,o)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})(),vC=(()=>{class t{}return t.NOOP=new XL,t})();const M_e=1e3,xC="ng-enter",u_="ng-leave",h_="ng-trigger",f_=".ng-trigger",YL="ng-animating",yC=".ng-animating";function vs(t){if("number"==typeof t)return t;const i=t.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:wC(parseFloat(i[1]),i[2])}function wC(t,i){return"s"===i?t*M_e:t}function m_(t,i,e){return t.hasOwnProperty("duration")?t:function I_e(t,i,e){let r,o=0,a="";if("string"==typeof t){const s=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return i.push(HL()),{duration:0,delay:0,easing:""};r=wC(parseFloat(s[1]),s[2]);const c=s[3];null!=c&&(o=wC(parseFloat(c),s[4]));const l=s[5];l&&(a=l)}else r=t;if(!e){let s=!1,c=i.length;r<0&&(i.push(function W0e(){return new ue(3100,!1)}()),s=!0),o<0&&(i.push(function G0e(){return new ue(3101,!1)}()),s=!0),s&&i.splice(c,0,HL())}return{duration:r,delay:o,easing:a}}(t,i,e)}function tm(t,i={}){return Object.keys(t).forEach(e=>{i[e]=t[e]}),i}function KL(t){const i=new Map;return Object.keys(t).forEach(e=>{i.set(e,t[e])}),i}function ac(t,i=new Map,e){if(e)for(let[n,r]of e)i.set(n,r);for(let[n,r]of t)i.set(n,r);return i}function JL(t,i,e){return e?i+":"+e+";":""}function e3(t){let i="";for(let e=0;e{const o=kC(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=n}),fC()&&e3(t))}function _l(t,i){t.style&&(i.forEach((e,n)=>{const r=kC(n);t.style[r]=""}),fC()&&e3(t))}function im(t){return Array.isArray(t)?1==t.length?t[0]:ZI(t):t}const CC=new RegExp("{{\\s*(.+?)\\s*}}","g");function t3(t){let i=[];if("string"==typeof t){let e;for(;e=CC.exec(t);)i.push(e[1]);CC.lastIndex=0}return i}function nm(t,i,e){const n=t.toString(),r=n.replace(CC,(o,a)=>{let s=i[a];return null==s&&(e.push(function X0e(t){return new ue(3003,!1)}()),s=""),s.toString()});return r==n?t:r}function p_(t){const i=[];let e=t.next();for(;!e.done;)i.push(e.value),e=t.next();return i}const O_e=/-+([a-z0-9])/g;function kC(t){return t.replace(O_e,(...i)=>i[1].toUpperCase())}function P_e(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ro(t,i,e){switch(i.type){case 7:return t.visitTrigger(i,e);case 0:return t.visitState(i,e);case 1:return t.visitTransition(i,e);case 2:return t.visitSequence(i,e);case 3:return t.visitGroup(i,e);case 4:return t.visitAnimate(i,e);case 5:return t.visitKeyframes(i,e);case 6:return t.visitStyle(i,e);case 8:return t.visitReference(i,e);case 9:return t.visitAnimateChild(i,e);case 10:return t.visitAnimateRef(i,e);case 11:return t.visitQuery(i,e);case 12:return t.visitStagger(i,e);default:throw function Q0e(t){return new ue(3004,!1)}()}}function n3(t,i){return window.getComputedStyle(t)[i]}const b_="*";function U_e(t,i){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(n=>function z_e(t,i,e){if(":"==t[0]){const c=function $_e(t,i){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n) *"}}(t,e);if("function"==typeof c)return void i.push(c);t=c}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return e.push(function c_e(t){return new ue(3015,!1)}()),i;const r=n[1],o=n[2],a=n[3];i.push(r3(r,a));"<"==o[0]&&!(r==b_&&a==b_)&&i.push(r3(a,r))}(n,e,i)):e.push(t),e}const v_=new Set(["true","1"]),x_=new Set(["false","0"]);function r3(t,i){const e=v_.has(t)||x_.has(t),n=v_.has(i)||x_.has(i);return(r,o)=>{let a=t==b_||t==r,s=i==b_||i==o;return!a&&e&&"boolean"==typeof r&&(a=r?v_.has(t):x_.has(t)),!s&&n&&"boolean"==typeof o&&(s=o?v_.has(i):x_.has(i)),a&&s}}const j_e=new RegExp("s*:selfs*,?","g");function DC(t,i,e,n){return new W_e(t).build(i,e,n)}class W_e{constructor(i){this._driver=i}build(i,e,n){const r=new X_e(e);return this._resetContextStyleTimingState(r),ro(this,im(i),r)}_resetContextStyleTimingState(i){i.currentQuerySelector="",i.collectedStyles=new Map,i.collectedStyles.set("",new Map),i.currentTime=0}visitTrigger(i,e){let n=e.queryCount=0,r=e.depCount=0;const o=[],a=[];return"@"==i.name.charAt(0)&&e.errors.push(function K0e(){return new ue(3006,!1)}()),i.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),0==s.type){const c=s,l=c.name;l.toString().split(/\s*,\s*/).forEach(d=>{c.name=d,o.push(this.visitState(c,e))}),c.name=l}else if(1==s.type){const c=this.visitTransition(s,e);n+=c.queryCount,r+=c.depCount,a.push(c)}else e.errors.push(function Z0e(){return new ue(3007,!1)}())}),{type:7,name:i.name,states:o,transitions:a,queryCount:n,depCount:r,options:null}}visitState(i,e){const n=this.visitStyle(i.styles,e),r=i.options&&i.options.params||null;if(n.containsDynamicStyles){const o=new Set,a=r||{};n.styles.forEach(s=>{s instanceof Map&&s.forEach(c=>{t3(c).forEach(l=>{a.hasOwnProperty(l)||o.add(l)})})}),o.size&&(p_(o.values()),e.errors.push(function J0e(t,i){return new ue(3008,!1)}()))}return{type:0,name:i.name,style:n,options:r?{params:r}:null}}visitTransition(i,e){e.queryCount=0,e.depCount=0;const n=ro(this,im(i.animation),e);return{type:1,matchers:U_e(i.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:bl(i.options)}}visitSequence(i,e){return{type:2,steps:i.steps.map(n=>ro(this,n,e)),options:bl(i.options)}}visitGroup(i,e){const n=e.currentTime;let r=0;const o=i.steps.map(a=>{e.currentTime=n;const s=ro(this,a,e);return r=Math.max(r,e.currentTime),s});return e.currentTime=r,{type:3,steps:o,options:bl(i.options)}}visitAnimate(i,e){const n=function Y_e(t,i){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return SC(m_(t,i).duration,0,"");const e=t;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=SC(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=m_(e,i);return SC(r.duration,r.delay,r.easing)}(i.timings,e.errors);e.currentAnimateTimings=n;let r,o=i.styles?i.styles:nt({});if(5==o.type)r=this.visitKeyframes(o,e);else{let a=i.styles,s=!1;if(!a){s=!0;const l={};n.easing&&(l.easing=n.easing),a=nt(l)}e.currentTime+=n.duration+n.delay;const c=this.visitStyle(a,e);c.isEmptyStep=s,r=c}return e.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}visitStyle(i,e){const n=this._makeStyleAst(i,e);return this._validateStyleAst(n,e),n}_makeStyleAst(i,e){const n=[],r=Array.isArray(i.styles)?i.styles:[i.styles];for(let s of r)"string"==typeof s?s===ns?n.push(s):e.errors.push(new ue(3002,!1)):n.push(KL(s));let o=!1,a=null;return n.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!o))for(let c of s.values())if(c.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:n,easing:a,offset:i.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(i,e){const n=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;n&&o>0&&(o-=n.duration+n.delay),i.styles.forEach(a=>{"string"!=typeof a&&a.forEach((s,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 t_e(t,i,e,n,r){return new ue(3010,!1)}()),u=!1),o=d.startTime),u&&l.set(c,{startTime:o,endTime:r}),e.options&&function R_e(t,i,e){const n=i.params||{},r=t3(t);r.length&&r.forEach(o=>{n.hasOwnProperty(o)||e.push(function q0e(t){return new ue(3001,!1)}())})}(s,e.options,e.errors)})})}visitKeyframes(i,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function i_e(){return new ue(3011,!1)}()),n;let o=0;const a=[];let s=!1,c=!1,l=0;const d=i.steps.map(_=>{const w=this._makeStyleAst(_,e);let x=null!=w.offset?w.offset:function Q_e(t){if("string"==typeof t)return null;let i=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const n=e;i=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;i=parseFloat(e.get("offset")),e.delete("offset")}return i}(w.styles),E=0;return null!=x&&(o++,E=w.offset=x),c=c||E<0||E>1,s=s||E0&&o{const x=h>0?w==f?1:h*w:a[w],E=x*p;e.currentTime=m+g.delay+E,g.duration=E,this._validateStyleAst(_,e),_.offset=x,n.styles.push(_)}),n}visitReference(i,e){return{type:8,animation:ro(this,im(i.animation),e),options:bl(i.options)}}visitAnimateChild(i,e){return e.depCount++,{type:9,options:bl(i.options)}}visitAnimateRef(i,e){return{type:10,animation:this.visitReference(i.animation,e),options:bl(i.options)}}visitQuery(i,e){const n=e.currentQuerySelector,r=i.options||{};e.queryCount++,e.currentQuery=i;const[o,a]=function G_e(t){const i=!!t.split(/\s*,\s*/).find(e=>":self"==e);return i&&(t=t.replace(j_e,"")),t=t.replace(/@\*/g,f_).replace(/@\w+/g,e=>f_+"-"+e.slice(1)).replace(/:animating/g,yC),[t,i]}(i.selector);e.currentQuerySelector=n.length?n+" "+o:o,no(e.collectedStyles,e.currentQuerySelector,new Map);const s=ro(this,im(i.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:s,originalSelector:i.selector,options:bl(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(function a_e(){return new ue(3013,!1)}());const n="full"===i.timings?{duration:0,delay:0,easing:"full"}:m_(i.timings,e.errors,!0);return{type:12,animation:ro(this,im(i.animation),e),timings:n,options:null}}}class X_e{constructor(i){this.errors=i,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 bl(t){return t?(t=tm(t)).params&&(t.params=function q_e(t){return t?tm(t):null}(t.params)):t={},t}function SC(t,i,e){return{duration:t,delay:i,easing:e}}function EC(t,i,e,n,r,o,a=null,s=!1){return{type:1,element:t,keyframes:i,preStyleProps:e,postStyleProps:n,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}class y_{constructor(){this._map=new Map}get(i){return this._map.get(i)||[]}append(i,e){let n=this._map.get(i);n||this._map.set(i,n=[]),n.push(...e)}has(i){return this._map.has(i)}clear(){this._map.clear()}}const J_e=new RegExp(":enter","g"),tbe=new RegExp(":leave","g");function TC(t,i,e,n,r,o=new Map,a=new Map,s,c,l=[]){return(new ibe).buildKeyframes(t,i,e,n,r,o,a,s,c,l)}class ibe{buildKeyframes(i,e,n,r,o,a,s,c,l,d=[]){l=l||new y_;const u=new MC(i,e,l,r,o,d,[]);u.options=c;const h=c.delay?vs(c.delay):0;u.currentTimeline.delayNextStep(h),u.currentTimeline.setStyles([a],null,u.errors,c),ro(this,n,u);const f=u.timelines.filter(m=>m.containsAnimation());if(f.length&&s.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([s],null,u.errors,c)}return f.length?f.map(m=>m.buildKeyframes()):[EC(e,[],[],[],0,h,"",!1)]}visitTrigger(i,e){}visitState(i,e){}visitTransition(i,e){}visitAnimateChild(i,e){const n=e.subInstructions.get(e.element);if(n){const r=e.createSubContext(i.options),o=e.currentTimeline.currentTime,a=this._visitSubInstructions(n,r,r.options);o!=a&&e.transformIntoNewTimeline(a)}e.previousNode=i}visitAnimateRef(i,e){const n=e.createSubContext(i.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([i.options,i.animation.options],e,n),this.visitReference(i.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=i}_applyAnimationRefDelays(i,e,n){for(const r of i){const o=r?.delay;if(o){const a="number"==typeof o?o:vs(nm(o,r?.params??{},e.errors));n.delayNextStep(a)}}}_visitSubInstructions(i,e,n){let o=e.currentTimeline.currentTime;const a=null!=n.duration?vs(n.duration):null,s=null!=n.delay?vs(n.delay):null;return 0!==a&&i.forEach(c=>{const l=e.appendInstructionToTimeline(c,a,s);o=Math.max(o,l.duration+l.delay)}),o}visitReference(i,e){e.updateOptions(i.options,!0),ro(this,i.animation,e),e.previousNode=i}visitSequence(i,e){const n=e.subContextCount;let r=e;const o=i.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=w_);const a=vs(o.delay);r.delayNextStep(a)}i.steps.length&&(i.steps.forEach(a=>ro(this,a,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),e.previousNode=i}visitGroup(i,e){const n=[];let r=e.currentTimeline.currentTime;const o=i.options&&i.options.delay?vs(i.options.delay):0;i.steps.forEach(a=>{const s=e.createSubContext(i.options);o&&s.delayNextStep(o),ro(this,a,s),r=Math.max(r,s.currentTimeline.currentTime),n.push(s.currentTimeline)}),n.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(r),e.previousNode=i}_visitTiming(i,e){if(i.dynamic){const n=i.strValue;return m_(e.params?nm(n,e.params,e.errors):n,e.errors)}return{duration:i.duration,delay:i.delay,easing:i.easing}}visitAnimate(i,e){const n=e.currentAnimateTimings=this._visitTiming(i.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());const o=i.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(n.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=i}visitStyle(i,e){const n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.hasCurrentStyleProperties()&&n.forwardFrame();const o=r&&r.easing||i.easing;i.isEmptyStep?n.applyEmptyStep(o):n.setStyles(i.styles,o,e.errors,e.options),e.previousNode=i}visitKeyframes(i,e){const n=e.currentAnimateTimings,r=e.currentTimeline.duration,o=n.duration,s=e.createSubContext().currentTimeline;s.easing=n.easing,i.styles.forEach(c=>{s.forwardTime((c.offset||0)*o),s.setStyles(c.styles,c.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(r+o),e.previousNode=i}visitQuery(i,e){const n=e.currentTimeline.currentTime,r=i.options||{},o=r.delay?vs(r.delay):0;o&&(6===e.previousNode.type||0==n&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=w_);let a=n;const s=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;let c=null;s.forEach((l,d)=>{e.currentQueryIndex=d;const u=e.createSubContext(i.options,l);o&&u.delayNextStep(o),l===e.element&&(c=u.currentTimeline),ro(this,i.animation,u),u.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,u.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),c&&(e.currentTimeline.mergeTimelineCollectedStyles(c),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=i}visitStagger(i,e){const n=e.parentContext,r=e.currentTimeline,o=i.timings,a=Math.abs(o.duration),s=a*(e.currentQueryTotal-1);let c=a*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":c=s-c;break;case"full":c=n.currentStaggerTime}const d=e.currentTimeline;c&&d.delayNextStep(c);const u=d.currentTime;ro(this,i.animation,e),e.previousNode=i,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)}}const w_={};class MC{constructor(i,e,n,r,o,a,s,c){this._driver=i,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=w_,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new C_(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(i,e){if(!i)return;const n=i;let r=this.options;null!=n.duration&&(r.duration=vs(n.duration)),null!=n.delay&&(r.delay=vs(n.delay));const o=n.params;if(o){let a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(s=>{(!e||!a.hasOwnProperty(s))&&(a[s]=nm(o[s],a,this.errors))})}}_copyOptions(){const i={};if(this.options){const e=this.options.params;if(e){const n=i.params={};Object.keys(e).forEach(r=>{n[r]=e[r]})}}return i}createSubContext(i=null,e,n){const r=e||this.element,o=new MC(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(i),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(i){return this.previousNode=w_,this.currentTimeline=this.currentTimeline.fork(this.element,i),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(i,e,n){const r={duration:e??i.duration,delay:this.currentTimeline.currentTime+(n??0)+i.delay,easing:""},o=new nbe(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,r,i.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i)}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i)}invokeQuery(i,e,n,r,o,a){let s=[];if(r&&s.push(this.element),i.length>0){i=(i=i.replace(J_e,"."+this._enterClassName)).replace(tbe,"."+this._leaveClassName);let l=this._driver.query(this.element,i,1!=n);0!==n&&(l=n<0?l.slice(l.length+n,l.length):l.slice(0,n)),s.push(...l)}return!o&&0==s.length&&a.push(function s_e(t){return new ue(3014,!1)}()),s}}class C_{constructor(i,e,n,r){this._driver=i,this.element=e,this.startTime=n,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(i){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+i),e&&this.snapshotCurrentStyles()):this.startTime+=i}fork(i,e){return this.applyStylesToKeyframe(),new C_(this._driver,i,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(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe()}_updateStyle(i,e){this._localTimelineStyles.set(i,e),this._globalTimelineStyles.set(i,e),this._styleSummary.set(i,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(i){i&&this._previousKeyframe.set("easing",i);for(let[e,n]of this._globalTimelineStyles)this._backFill.set(e,n||ns),this._currentKeyframe.set(e,ns);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(i,e,n,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},a=function rbe(t,i){const e=new Map;let n;return t.forEach(r=>{if("*"===r){n=n||i.keys();for(let o of n)e.set(o,ns)}else ac(r,e)}),e}(i,this._globalTimelineStyles);for(let[s,c]of a){const l=nm(c,o,n);this._pendingStyles.set(s,l),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??ns),this._updateStyle(s,l)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((i,e)=>{this._currentKeyframe.set(e,i)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((i,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,i)}))}snapshotCurrentStyles(){for(let[i,e]of this._localTimelineStyles)this._pendingStyles.set(i,e),this._updateStyle(i,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const i=[];for(let e in this._currentKeyframe)i.push(e);return i}mergeTimelineCollectedStyles(i){i._styleSummary.forEach((e,n)=>{const r=this._styleSummary.get(n);(!r||e.time>r.time)&&this._updateStyle(n,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const i=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((s,c)=>{const l=ac(s,new Map,this._backFill);l.forEach((d,u)=>{d===$y?i.add(u):d===ns&&e.add(u)}),n||l.set("offset",c/this.duration),r.push(l)});const o=i.size?p_(i.values()):[],a=e.size?p_(e.values()):[];if(n){const s=r[0],c=new Map(s);s.set("offset",0),c.set("offset",1),r=[s,c]}return EC(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}class nbe extends C_{constructor(i,e,n,r,o,a,s=!1){super(i,e,a.delay),this.keyframes=n,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let i=this.keyframes,{delay:e,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],a=n+e,s=e/a,c=ac(i[0]);c.set("offset",0),o.push(c);const l=ac(i[0]);l.set("offset",s3(s)),o.push(l);const d=i.length-1;for(let u=1;u<=d;u++){let h=ac(i[u]);const f=h.get("offset");h.set("offset",s3((e+f*n)/a)),o.push(h)}n=a,e=0,r="",i=o}return EC(this.element,i,this.preStyleProps,this.postStyleProps,n,e,r,!0)}}function s3(t,i=3){const e=Math.pow(10,i-1);return Math.round(t*e)/e}class AC{}const obe=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 abe extends AC{normalizePropertyName(i,e){return kC(i)}normalizeStyleValue(i,e,n,r){let o="";const a=n.toString().trim();if(obe.has(e)&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{const s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push(function Y0e(t,i){return new ue(3005,!1)}())}return a+o}}function c3(t,i,e,n,r,o,a,s,c,l,d,u,h){return{type:0,element:t,triggerName:i,isRemovalTransition:r,fromState:e,fromStyles:o,toState:n,toStyles:a,timelines:s,queriedElements:c,preStyleProps:l,postStyleProps:d,totalTime:u,errors:h}}const IC={};class l3{constructor(i,e,n){this._triggerName=i,this.ast=e,this._stateStyles=n}match(i,e,n,r){return function sbe(t,i,e,n,r){return t.some(o=>o(i,e,n,r))}(this.ast.matchers,i,e,n,r)}buildStyles(i,e,n){let r=this._stateStyles.get("*");return void 0!==i&&(r=this._stateStyles.get(i?.toString())||r),r?r.buildStyles(e,n):new Map}build(i,e,n,r,o,a,s,c,l,d){const u=[],h=this.ast.options&&this.ast.options.params||IC,m=this.buildStyles(n,s&&s.params||IC,u),g=c&&c.params||IC,p=this.buildStyles(r,g,u),_=new Set,w=new Map,x=new Map,E="void"===r,W={params:cbe(g,h),delay:this.ast.options?.delay},N=d?[]:TC(i,e,this.ast.animation,o,a,m,p,W,l,u);let D=0;if(N.forEach(L=>{D=Math.max(L.duration+L.delay,D)}),u.length)return c3(e,this._triggerName,n,r,E,m,p,[],[],w,x,D,u);N.forEach(L=>{const j=L.element,Z=no(w,j,new Set);L.preStyleProps.forEach(me=>Z.add(me));const U=no(x,j,new Set);L.postStyleProps.forEach(me=>U.add(me)),j!==e&&_.add(j)});const B=p_(_.values());return c3(e,this._triggerName,n,r,E,m,p,N,B,w,x,D)}}function cbe(t,i){const e=tm(i);for(const n in t)t.hasOwnProperty(n)&&null!=t[n]&&(e[n]=t[n]);return e}class lbe{constructor(i,e,n){this.styles=i,this.defaultParams=e,this.normalizer=n}buildStyles(i,e){const n=new Map,r=tm(this.defaultParams);return Object.keys(i).forEach(o=>{const a=i[o];null!==a&&(r[o]=a)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((a,s)=>{a&&(a=nm(a,r,e));const c=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,c,a,e),n.set(s,a)})}),n}}class ube{constructor(i,e,n){this.name=i,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new lbe(r.style,r.options&&r.options.params||{},n))}),d3(this.states,"true","1"),d3(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new l3(i,r,this.states))}),this.fallbackTransition=function hbe(t,i,e){return new l3(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(a,s)=>!0],options:null,queryCount:0,depCount:0},i)}(i,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(i,e,n,r){return this.transitionFactories.find(a=>a.match(i,e,n,r))||null}matchStyles(i,e,n){return this.fallbackTransition.buildStyles(i,e,n)}}function d3(t,i,e){t.has(i)?t.has(e)||t.set(e,t.get(i)):t.has(e)&&t.set(i,t.get(e))}const fbe=new y_;class mbe{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(i,e){const n=[],r=[],o=DC(this._driver,e,n,r);if(n.length)throw function m_e(t){return new ue(3503,!1)}();this._animations.set(i,o)}_buildPlayer(i,e,n){const r=i.element,o=UL(0,this._normalizer,0,i.keyframes,e,n);return this._driver.animate(r,o,i.duration,i.delay,i.easing,[],!0)}create(i,e,n={}){const r=[],o=this._animations.get(i);let a;const s=new Map;if(o?(a=TC(this._driver,e,o,xC,u_,new Map,new Map,n,fbe,r),a.forEach(d=>{const u=no(s,d.element,new Map);d.postStyleProps.forEach(h=>u.set(h,null))})):(r.push(function p_e(){return new ue(3300,!1)}()),a=[]),r.length)throw function g_e(t){return new ue(3504,!1)}();s.forEach((d,u)=>{d.forEach((h,f)=>{d.set(f,this._driver.computeStyle(u,f,ns))})});const l=oc(a.map(d=>{const u=s.get(d.element);return this._buildPlayer(d,new Map,u)}));return this._playersById.set(i,l),l.onDestroy(()=>this.destroy(i)),this.players.push(l),l}destroy(i){const e=this._getPlayer(i);e.destroy(),this._playersById.delete(i);const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(i){const e=this._playersById.get(i);if(!e)throw function __e(t){return new ue(3301,!1)}();return e}listen(i,e,n,r){const o=gC(e,"","","");return mC(this._getPlayer(i),n,o,r),()=>{}}command(i,e,n,r){if("register"==n)return void this.register(i,r[0]);if("create"==n)return void this.create(i,e,r[0]||{});const o=this._getPlayer(i);switch(n){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(i)}}}const u3="ng-animate-queued",FC="ng-animate-disabled",vbe=[],h3={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},xbe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ao="__ng_removed";class RC{get params(){return this.options.params}constructor(i,e=""){this.namespaceId=e;const n=i&&i.hasOwnProperty("value");if(this.value=function kbe(t){return t??null}(n?i.value:i),n){const o=tm(i);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(i){const e=i.params;if(e){const n=this.options.params;Object.keys(e).forEach(r=>{null==n[r]&&(n[r]=e[r])})}}}const rm="void",OC=new RC(rm);class ybe{constructor(i,e,n){this.id=i,this.hostElement=e,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+i,Io(e,this._hostClassName)}listen(i,e,n,r){if(!this._triggers.has(e))throw function b_e(t,i){return new ue(3302,!1)}();if(null==n||0==n.length)throw function v_e(t){return new ue(3303,!1)}();if(!function Dbe(t){return"start"==t||"done"==t}(n))throw function x_e(t,i){return new ue(3400,!1)}();const o=no(this._elementListeners,i,[]),a={name:e,phase:n,callback:r};o.push(a);const s=no(this._engine.statesByElement,i,new Map);return s.has(e)||(Io(i,h_),Io(i,h_+"-"+e),s.set(e,OC)),()=>{this._engine.afterFlush(()=>{const c=o.indexOf(a);c>=0&&o.splice(c,1),this._triggers.has(e)||s.delete(e)})}}register(i,e){return!this._triggers.has(i)&&(this._triggers.set(i,e),!0)}_getTrigger(i){const e=this._triggers.get(i);if(!e)throw function y_e(t){return new ue(3401,!1)}();return e}trigger(i,e,n,r=!0){const o=this._getTrigger(e),a=new PC(this.id,e,i);let s=this._engine.statesByElement.get(i);s||(Io(i,h_),Io(i,h_+"-"+e),this._engine.statesByElement.set(i,s=new Map));let c=s.get(e);const l=new RC(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),s.set(e,l),c||(c=OC),l.value!==rm&&c.value===l.value){if(!function Tbe(t,i){const e=Object.keys(t),n=Object.keys(i);if(e.length!=n.length)return!1;for(let r=0;r{_l(i,p),Fa(i,_)})}return}const h=no(this._engine.playersByElement,i,[]);h.forEach(g=>{g.namespaceId==this.id&&g.triggerName==e&&g.queued&&g.destroy()});let f=o.matchTransition(c.value,l.value,i,l.params),m=!1;if(!f){if(!r)return;f=o.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:f,fromState:c,toState:l,player:a,isFallbackTransition:m}),m||(Io(i,u3),a.onStart(()=>{du(i,u3)})),a.onDone(()=>{let g=this.players.indexOf(a);g>=0&&this.players.splice(g,1);const p=this._engine.playersByElement.get(i);if(p){let _=p.indexOf(a);_>=0&&p.splice(_,1)}}),this.players.push(a),h.push(a),a}deregister(i){this._triggers.delete(i),this._engine.statesByElement.forEach(e=>e.delete(i)),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(r=>r.name!=i))})}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);const e=this._engine.playersByElement.get(i);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(i))}_signalRemovalForInnerTriggers(i,e){const n=this._engine.driver.query(i,f_,!0);n.forEach(r=>{if(r[Ao])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(a=>a.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(i,e,n,r){const o=this._engine.statesByElement.get(i),a=new Map;if(o){const s=[];if(o.forEach((c,l)=>{if(a.set(l,c.value),this._triggers.has(l)){const d=this.trigger(i,l,rm,r);d&&s.push(d)}}),s.length)return this._engine.markElementAsRemoved(this.id,i,!0,e,a),n&&oc(s).onDone(()=>this._engine.processLeaveNode(i)),!0}return!1}prepareLeaveAnimationListeners(i){const e=this._elementListeners.get(i),n=this._engine.statesByElement.get(i);if(e&&n){const r=new Set;e.forEach(o=>{const a=o.name;if(r.has(a))return;r.add(a);const c=this._triggers.get(a).fallbackTransition,l=n.get(a)||OC,d=new RC(rm),u=new PC(this.id,a,i);this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:a,transition:c,fromState:l,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(i,e){const n=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,e),this.triggerLeaveAnimation(i,e,!0))return;let r=!1;if(n.totalAnimations){const o=n.players.length?n.playersByQueriedElement.get(i):[];if(o&&o.length)r=!0;else{let a=i;for(;a=a.parentNode;)if(n.statesByElement.get(a)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(i),r)n.markElementAsRemoved(this.id,i,!1,e);else{const o=i[Ao];(!o||o===h3)&&(n.afterFlush(()=>this.clearElementCache(i)),n.destroyInnerAnimations(i),n._onRemovalComplete(i,e))}}insertNode(i,e){Io(i,this._hostClassName)}drainQueuedTransitions(i){const e=[];return this._queue.forEach(n=>{const r=n.player;if(r.destroyed)return;const o=n.element,a=this._elementListeners.get(o);a&&a.forEach(s=>{if(s.name==n.triggerName){const c=gC(o,n.triggerName,n.fromState.value,n.toState.value);c._data=i,mC(n.player,s.phase,c,s.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(n)}),this._queue=[],e.sort((n,r)=>{const o=n.transition.ast.depCount,a=r.transition.ast.depCount;return 0==o||0==a?o-a:this._engine.driver.containsElement(n.element,r.element)?1:-1})}destroy(i){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i)}elementContainsData(i){let e=!1;return this._elementListeners.has(i)&&(e=!0),e=!!this._queue.find(n=>n.element===i)||e,e}}class wbe{_onRemovalComplete(i,e){this.onRemovalComplete(i,e)}constructor(i,e,n){this.bodyNode=i,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){const i=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&i.push(n)})}),i}createNamespace(i,e){const n=new ybe(i,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[i]=n}_balanceNamespaceList(i,e){const n=this._namespaceList,r=this.namespacesByHostElement;if(n.length-1>=0){let a=!1,s=this.driver.getParentElement(e);for(;s;){const c=r.get(s);if(c){const l=n.indexOf(c);n.splice(l+1,0,i),a=!0;break}s=this.driver.getParentElement(s)}a||n.unshift(i)}else n.push(i);return r.set(e,i),i}register(i,e){let n=this._namespaceLookup[i];return n||(n=this.createNamespace(i,e)),n}registerTrigger(i,e,n){let r=this._namespaceLookup[i];r&&r.register(e,n)&&this.totalAnimations++}destroy(i,e){if(!i)return;const n=this._fetchNamespace(i);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[i];const r=this._namespaceList.indexOf(n);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(i){return this._namespaceLookup[i]}fetchNamespacesByElement(i){const e=new Set,n=this.statesByElement.get(i);if(n)for(let r of n.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(i,e,n,r){if(k_(e)){const o=this._fetchNamespace(i);if(o)return o.trigger(e,n,r),!0}return!1}insertNode(i,e,n,r){if(!k_(e))return;const o=e[Ao];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(i){const a=this._fetchNamespace(i);a&&a.insertNode(e,n)}r&&this.collectEnterElement(e)}collectEnterElement(i){this.collectedEnterElements.push(i)}markElementAsDisabled(i,e){e?this.disabledNodes.has(i)||(this.disabledNodes.add(i),Io(i,FC)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),du(i,FC))}removeNode(i,e,n,r){if(k_(e)){const o=i?this._fetchNamespace(i):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(i,e,!1,r),n){const a=this.namespacesByHostElement.get(e);a&&a.id!==i&&a.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(i,e,n,r,o){this.collectedLeaveElements.push(e),e[Ao]={namespaceId:i,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:o}}listen(i,e,n,r,o){return k_(e)?this._fetchNamespace(i).listen(e,n,r,o):()=>{}}_buildInstruction(i,e,n,r,o){return i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,n,r,i.fromState.options,i.toState.options,e,o)}destroyInnerAnimations(i){let e=this.driver.query(i,f_,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(i,yC,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(i){const e=this.playersByElement.get(i);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(i){const e=this.playersByQueriedElement.get(i);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(i=>{if(this.players.length)return oc(this.players).onDone(()=>i());i()})}processLeaveNode(i){const e=i[Ao];if(e&&e.setForRemoval){if(i[Ao]=h3,e.namespaceId){this.destroyInnerAnimations(i);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(i)}this._onRemovalComplete(i,e.setForRemoval)}i.classList?.contains(FC)&&this.markElementAsDisabled(i,!1),this.driver.query(i,".ng-animate-disabled",!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(i=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,r)=>this._balanceNamespaceList(n,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){const n=this._whenQuietFns;this._whenQuietFns=[],e.length?oc(e).onDone(()=>{n.forEach(r=>r())}):n.forEach(r=>r())}}reportError(i){throw function w_e(t){return new ue(3402,!1)}()}_flushAnimations(i,e){const n=new y_,r=[],o=new Map,a=[],s=new Map,c=new Map,l=new Map,d=new Set;this.disabledNodes.forEach(ne=>{d.add(ne);const Y=this.driver.query(ne,".ng-animate-queued",!0);for(let he=0;he{const he=xC+g++;m.set(Y,he),ne.forEach(se=>Io(se,he))});const p=[],_=new Set,w=new Set;for(let ne=0;ne_.add(se)):w.add(Y))}const x=new Map,E=p3(h,Array.from(_));E.forEach((ne,Y)=>{const he=u_+g++;x.set(Y,he),ne.forEach(se=>Io(se,he))}),i.push(()=>{f.forEach((ne,Y)=>{const he=m.get(Y);ne.forEach(se=>du(se,he))}),E.forEach((ne,Y)=>{const he=x.get(Y);ne.forEach(se=>du(se,he))}),p.forEach(ne=>{this.processLeaveNode(ne)})});const W=[],N=[];for(let ne=this._namespaceList.length-1;ne>=0;ne--)this._namespaceList[ne].drainQueuedTransitions(e).forEach(he=>{const se=he.player,Ne=he.element;if(W.push(se),this.collectedEnterElements.length){const V=Ne[Ao];if(V&&V.setForMove){if(V.previousTriggersValues&&V.previousTriggersValues.has(he.triggerName)){const oe=V.previousTriggersValues.get(he.triggerName),_e=this.statesByElement.get(he.element);if(_e&&_e.has(he.triggerName)){const Ie=_e.get(he.triggerName);Ie.value=oe,_e.set(he.triggerName,Ie)}}return void se.destroy()}}const ce=!u||!this.driver.containsElement(u,Ne),qe=x.get(Ne),mt=m.get(Ne),F=this._buildInstruction(he,n,mt,qe,ce);if(F.errors&&F.errors.length)return void N.push(F);if(ce)return se.onStart(()=>_l(Ne,F.fromStyles)),se.onDestroy(()=>Fa(Ne,F.toStyles)),void r.push(se);if(he.isFallbackTransition)return se.onStart(()=>_l(Ne,F.fromStyles)),se.onDestroy(()=>Fa(Ne,F.toStyles)),void r.push(se);const K=[];F.timelines.forEach(V=>{V.stretchStartingKeyframe=!0,this.disabledNodes.has(V.element)||K.push(V)}),F.timelines=K,n.append(Ne,F.timelines),a.push({instruction:F,player:se,element:Ne}),F.queriedElements.forEach(V=>no(s,V,[]).push(se)),F.preStyleProps.forEach((V,oe)=>{if(V.size){let _e=c.get(oe);_e||c.set(oe,_e=new Set),V.forEach((Ie,Re)=>_e.add(Re))}}),F.postStyleProps.forEach((V,oe)=>{let _e=l.get(oe);_e||l.set(oe,_e=new Set),V.forEach((Ie,Re)=>_e.add(Re))})});if(N.length){const ne=[];N.forEach(Y=>{ne.push(function C_e(t,i){return new ue(3505,!1)}())}),W.forEach(Y=>Y.destroy()),this.reportError(ne)}const D=new Map,B=new Map;a.forEach(ne=>{const Y=ne.element;n.has(Y)&&(B.set(Y,Y),this._beforeAnimationBuild(ne.player.namespaceId,ne.instruction,D))}),r.forEach(ne=>{const Y=ne.element;this._getPreviousPlayers(Y,!1,ne.namespaceId,ne.triggerName,null).forEach(se=>{no(D,Y,[]).push(se),se.destroy()})});const L=p.filter(ne=>_3(ne,c,l)),j=new Map;m3(j,this.driver,w,l,ns).forEach(ne=>{_3(ne,c,l)&&L.push(ne)});const U=new Map;f.forEach((ne,Y)=>{m3(U,this.driver,new Set(ne),c,$y)}),L.forEach(ne=>{const Y=j.get(ne),he=U.get(ne);j.set(ne,new Map([...Array.from(Y?.entries()??[]),...Array.from(he?.entries()??[])]))});const me=[],be=[],de={};a.forEach(ne=>{const{element:Y,player:he,instruction:se}=ne;if(n.has(Y)){if(d.has(Y))return he.onDestroy(()=>Fa(Y,se.toStyles)),he.disabled=!0,he.overrideTotalTime(se.totalTime),void r.push(he);let Ne=de;if(B.size>1){let qe=Y;const mt=[];for(;qe=qe.parentNode;){const F=B.get(qe);if(F){Ne=F;break}mt.push(qe)}mt.forEach(F=>B.set(F,Ne))}const ce=this._buildAnimation(he.namespaceId,se,D,o,U,j);if(he.setRealPlayer(ce),Ne===de)me.push(he);else{const qe=this.playersByElement.get(Ne);qe&&qe.length&&(he.parentPlayer=oc(qe)),r.push(he)}}else _l(Y,se.fromStyles),he.onDestroy(()=>Fa(Y,se.toStyles)),be.push(he),d.has(Y)&&r.push(he)}),be.forEach(ne=>{const Y=o.get(ne.element);if(Y&&Y.length){const he=oc(Y);ne.setRealPlayer(he)}}),r.forEach(ne=>{ne.parentPlayer?ne.syncPlayerEvents(ne.parentPlayer):ne.destroy()});for(let ne=0;ne!ce.destroyed);Ne.length?Sbe(this,Y,Ne):this.processLeaveNode(Y)}return p.length=0,me.forEach(ne=>{this.players.push(ne),ne.onDone(()=>{ne.destroy();const Y=this.players.indexOf(ne);this.players.splice(Y,1)}),ne.play()}),me}elementContainsData(i,e){let n=!1;const r=e[Ao];return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(i).elementContainsData(e)||n}afterFlush(i){this._flushFns.push(i)}afterFlushAnimationsDone(i){this._whenQuietFns.push(i)}_getPreviousPlayers(i,e,n,r,o){let a=[];if(e){const s=this.playersByQueriedElement.get(i);s&&(a=s)}else{const s=this.playersByElement.get(i);if(s){const c=!o||o==rm;s.forEach(l=>{l.queued||!c&&l.triggerName!=r||a.push(l)})}}return(n||r)&&(a=a.filter(s=>!(n&&n!=s.namespaceId||r&&r!=s.triggerName))),a}_beforeAnimationBuild(i,e,n){const o=e.element,a=e.isRemovalTransition?void 0:i,s=e.isRemovalTransition?void 0:e.triggerName;for(const c of e.timelines){const l=c.element,d=l!==o,u=no(n,l,[]);this._getPreviousPlayers(l,d,a,s,e.toState).forEach(f=>{const m=f.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),f.destroy(),u.push(f)})}_l(o,e.fromStyles)}_buildAnimation(i,e,n,r,o,a){const s=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[Ao];if(p&&p.removedBeforeQueried)return new Ph(m.duration,m.delay);const _=g!==c,w=function Ebe(t){const i=[];return g3(t,i),i}((n.get(g)||vbe).map(D=>D.getRealPlayer())).filter(D=>!!D.element&&D.element===g),x=o.get(g),E=a.get(g),W=UL(0,this._normalizer,0,m.keyframes,x,E),N=this._buildPlayer(m,W,w);if(m.subTimeline&&r&&u.add(g),_){const D=new PC(i,s,g);D.setRealPlayer(N),l.push(D)}return N});l.forEach(m=>{no(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>function Cbe(t,i,e){let n=t.get(i);if(n){if(n.length){const r=n.indexOf(e);n.splice(r,1)}0==n.length&&t.delete(i)}return n}(this.playersByQueriedElement,m.element,m))}),d.forEach(m=>Io(m,YL));const f=oc(h);return f.onDestroy(()=>{d.forEach(m=>du(m,YL)),Fa(c,e.toStyles)}),u.forEach(m=>{no(r,m,[]).push(f)}),f}_buildPlayer(i,e,n){return e.length>0?this.driver.animate(i.element,e,i.duration,i.delay,i.easing,n):new Ph(i.duration,i.delay)}}class PC{constructor(i,e,n){this.namespaceId=i,this.triggerName=e,this.element=n,this._player=new Ph,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(i){this._containsRealPlayer||(this._player=i,this._queuedCallbacks.forEach((e,n)=>{e.forEach(r=>mC(i,n,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(i){this.totalTime=i}syncPlayerEvents(i){const e=this._player;e.triggerCallback&&i.onStart(()=>e.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy())}_queueEvent(i,e){no(this._queuedCallbacks,i,[]).push(e)}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i)}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i)}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i)}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(i){this.queued||this._player.setPosition(i)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(i){const e=this._player;e.triggerCallback&&e.triggerCallback(i)}}function k_(t){return t&&1===t.nodeType}function f3(t,i){const e=t.style.display;return t.style.display=i??"none",e}function m3(t,i,e,n,r){const o=[];e.forEach(c=>o.push(f3(c)));const a=[];n.forEach((c,l)=>{const d=new Map;c.forEach(u=>{const h=i.computeStyle(l,u,r);d.set(u,h),(!h||0==h.length)&&(l[Ao]=xbe,a.push(l))}),t.set(l,d)});let s=0;return e.forEach(c=>f3(c,o[s++])),a}function p3(t,i){const e=new Map;if(t.forEach(s=>e.set(s,[])),0==i.length)return e;const n=1,r=new Set(i),o=new Map;function a(s){if(!s)return n;let c=o.get(s);if(c)return c;const l=s.parentNode;return c=e.has(l)?l:r.has(l)?n:a(l),o.set(s,c),c}return i.forEach(s=>{const c=a(s);c!==n&&e.get(c).push(s)}),e}function Io(t,i){t.classList?.add(i)}function du(t,i){t.classList?.remove(i)}function Sbe(t,i,e){oc(e).onDone(()=>t.processLeaveNode(i))}function g3(t,i){for(let e=0;er.add(o)):i.set(t,n),e.delete(t),!0}class D_{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new wbe(i,e,n),this._timelineEngine=new mbe(i,e,n),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(i,e,n,r,o){const a=i+"-"+r;let s=this._triggerCache[a];if(!s){const c=[],l=[],d=DC(this._driver,o,c,l);if(c.length)throw function h_e(t,i){return new ue(3404,!1)}();s=function dbe(t,i,e){return new ube(t,i,e)}(r,d,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(e,r,s)}register(i,e){this._transitionEngine.register(i,e)}destroy(i,e){this._transitionEngine.destroy(i,e)}onInsert(i,e,n,r){this._transitionEngine.insertNode(i,e,n,r)}onRemove(i,e,n,r){this._transitionEngine.removeNode(i,e,r||!1,n)}disableAnimations(i,e){this._transitionEngine.markElementAsDisabled(i,e)}process(i,e,n,r){if("@"==n.charAt(0)){const[o,a]=zL(n);this._timelineEngine.command(o,e,a,r)}else this._transitionEngine.trigger(i,e,n,r)}listen(i,e,n,r,o){if("@"==n.charAt(0)){const[a,s]=zL(n);return this._timelineEngine.listen(a,e,s,o)}return this._transitionEngine.listen(i,e,n,r,o)}flush(i=-1){this._transitionEngine.flush(i)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Abe=(()=>{class t{constructor(e,n,r){this._element=e,this._startStyles=n,this._endStyles=r,this._state=0;let o=t.initialStylesByElement.get(e);o||t.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Fa(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Fa(this._element,this._initialStyles),this._endStyles&&(Fa(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(_l(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(_l(this._element,this._endStyles),this._endStyles=null),Fa(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function NC(t){let i=null;return t.forEach((e,n)=>{(function Ibe(t){return"display"===t||"position"===t})(n)&&(i=i||new Map,i.set(n,e))}),i}class b3{constructor(i,e,n,r){this.element=i,this.keyframes=e,this.options=n,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=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const i=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,i,this.options),this._finalKeyframe=i.length?i[i.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(i){const e=[];return i.forEach(n=>{e.push(Object.fromEntries(n))}),e}_triggerWebAnimation(i,e,n){return i.animate(this._convertKeyframesToObject(e),n)}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(i=>i()),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(i=>i()),this._onDestroyFns=[])}setPosition(i){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=i*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const i=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,r)=>{"offset"!==r&&i.set(r,this._finished?n:n3(this.element,r))}),this.currentSnapshot=i}triggerCallback(i){const e="start"===i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class Fbe{validateStyleProperty(i){return!0}validateAnimatableStyleProperty(i){return!0}matchesElement(i,e){return!1}containsElement(i,e){return GL(i,e)}getParentElement(i){return bC(i)}query(i,e,n){return qL(i,e,n)}computeStyle(i,e,n){return window.getComputedStyle(i)[e]}animate(i,e,n,r,o,a=[]){const c={duration:n,delay:r,fill:0==r?"both":"forwards"};o&&(c.easing=o);const l=new Map,d=a.filter(f=>f instanceof b3);(function N_e(t,i){return 0===t||0===i})(n,r)&&d.forEach(f=>{f.currentSnapshot.forEach((m,g)=>l.set(g,m))});let u=function F_e(t){return t.length?t[0]instanceof Map?t:t.map(i=>KL(i)):[]}(e).map(f=>ac(f));u=function L_e(t,i,e){if(e.size&&i.length){let n=i[0],r=[];if(e.forEach((o,a)=>{n.has(a)||r.push(a),n.set(a,o)}),r.length)for(let o=1;oa.set(s,n3(t,s)))}}return i}(i,u,l);const h=function Mbe(t,i){let e=null,n=null;return Array.isArray(i)&&i.length?(e=NC(i[0]),i.length>1&&(n=NC(i[i.length-1]))):i instanceof Map&&(e=NC(i)),e||n?new Abe(t,e,n):null}(i,u);return new b3(i,u,c,h)}}let Rbe=(()=>{class t extends KI{constructor(e,n){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(n.body,{id:"0",encapsulation:Oo.None,styles:[],data:{animation:[]}})}build(e){const n=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?ZI(e):e;return v3(this._renderer,null,n,"register",[r]),new Obe(n,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(G(Nu),G(it))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();class Obe extends uX{constructor(i,e){super(),this._id=i,this._renderer=e}create(i,e){return new Pbe(this._id,i,e||{},this._renderer)}}class Pbe{constructor(i,e,n,r){this.id=i,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(i,e){return this._renderer.listen(this.element,`@@${this.id}:${i}`,e)}_command(i,...e){return v3(this._renderer,this.element,this.id,i,e)}onDone(i){this._listen("done",i)}onStart(i){this._listen("start",i)}onDestroy(i){this._listen("destroy",i)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(i){this._command("setPosition",i)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function v3(t,i,e,n,r){return t.setProperty(i,`@@${e}:${n}`,r)}const x3="@.disabled";let Nbe=(()=>{class t{constructor(e,n,r){this.delegate=e,this.engine=n,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=(o,a)=>{const s=a?.parentNode(o);s&&a.removeChild(s,o)}}createRenderer(e,n){const o=this.delegate.createRenderer(e,n);if(!(e&&n&&n.data&&n.data.animation)){let d=this._rendererCache.get(o);return d||(d=new y3("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,d)),d}const a=n.id,s=n.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);const c=d=>{Array.isArray(d)?d.forEach(c):this.engine.registerTrigger(a,s,e,d.name,d)};return n.data.animation.forEach(c),new Lbe(this,s,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,n,r){e>=0&&en(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[a,s]=o;a(s)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([n,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(G(Nu),G(D_),G(Ue))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})();class y3{constructor(i,e,n,r){this.namespaceId=i,this.delegate=e,this.engine=n,this._onDestroy=r,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(i,e){return this.delegate.createElement(i,e)}createComment(i){return this.delegate.createComment(i)}createText(i){return this.delegate.createText(i)}appendChild(i,e){this.delegate.appendChild(i,e),this.engine.onInsert(this.namespaceId,e,i,!1)}insertBefore(i,e,n,r=!0){this.delegate.insertBefore(i,e,n),this.engine.onInsert(this.namespaceId,e,i,r)}removeChild(i,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(i,e){return this.delegate.selectRootElement(i,e)}parentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return this.delegate.nextSibling(i)}setAttribute(i,e,n,r){this.delegate.setAttribute(i,e,n,r)}removeAttribute(i,e,n){this.delegate.removeAttribute(i,e,n)}addClass(i,e){this.delegate.addClass(i,e)}removeClass(i,e){this.delegate.removeClass(i,e)}setStyle(i,e,n,r){this.delegate.setStyle(i,e,n,r)}removeStyle(i,e,n){this.delegate.removeStyle(i,e,n)}setProperty(i,e,n){"@"==e.charAt(0)&&e==x3?this.disableAnimations(i,!!n):this.delegate.setProperty(i,e,n)}setValue(i,e){this.delegate.setValue(i,e)}listen(i,e,n){return this.delegate.listen(i,e,n)}disableAnimations(i,e){this.engine.disableAnimations(i,e)}}class Lbe extends y3{constructor(i,e,n,r,o){super(e,n,r,o),this.factory=i,this.namespaceId=e}setProperty(i,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&e==x3?this.disableAnimations(i,n=void 0===n||!!n):this.engine.process(this.namespaceId,i,e.slice(1),n):this.delegate.setProperty(i,e,n)}listen(i,e,n){if("@"==e.charAt(0)){const r=function Bbe(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(i);let o=e.slice(1),a="";return"@"!=o.charAt(0)&&([o,a]=function Vbe(t){const i=t.indexOf(".");return[t.substring(0,i),t.slice(i+1)]}(o)),this.engine.listen(this.namespaceId,r,o,a,s=>{this.factory.scheduleListenerCallback(s._data||-1,n,s)})}return this.delegate.listen(i,e,n)}}const w3=[{provide:KI,useClass:Rbe},{provide:AC,useFactory:function Ube(){return new abe}},{provide:D_,useClass:(()=>{class t extends D_{constructor(e,n,r,o){super(e.body,n,r)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(G(it),G(vC),G(AC),G(ud))},t.\u0275prov=ve({token:t,factory:t.\u0275fac}),t})()},{provide:Nu,useFactory:function zbe(t,i,e){return new Nbe(t,i,e)},deps:[Hp,D_,Ue]}],LC=[{provide:vC,useFactory:()=>new Fbe},{provide:Ri,useValue:"BrowserAnimations"},...w3],C3=[{provide:vC,useClass:XL},{provide:Ri,useValue:"NoopAnimations"},...w3];let $be=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?C3:LC}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({providers:LC,imports:[FM]}),t})(),jbe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({imports:[xt,xt]}),t})(),xve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t}),t.\u0275inj=ot({imports:[_g,ir,xt,Vs,zI,jbe]}),t})(),yve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=st({type:t,bootstrap:[j0e]}),t.\u0275inj=ot({imports:[UG,FM,eee,aoe,$be,xte,V0e,YI,SQ,UQ,gF,ire,u0,OZ,XQ,UZ,UK,KJ,mY,UY,bee,A1,Ree,$ee,oie,_ie,Hte,Fie,xve,vne,A1]}),t})();O$().bootstrapModule(yve).catch(t=>console.error(t))},327:function(yl,cm){var cc,lc;void 0!==(lc="function"==typeof(cc=function(){"use strict";function Zo(ei,ci,mr){var Ti=new XMLHttpRequest;Ti.open("GET",ei),Ti.responseType="blob",Ti.onload=function(){ao(Ti.response,ci,mr)},Ti.onerror=function(){console.error("could not download file")},Ti.send()}function yt(ei){var ci=new XMLHttpRequest;ci.open("HEAD",ei,!1);try{ci.send()}catch{}return 200<=ci.status&&299>=ci.status}function dc(ei){try{ei.dispatchEvent(new MouseEvent("click"))}catch{var ci=document.createEvent("MouseEvents");ci.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),ei.dispatchEvent(ci)}}var Ur="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,uu=Ur.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),ao=Ur.saveAs||("object"!=typeof window||window!==Ur?function(){}:"download"in HTMLAnchorElement.prototype&&!uu?function(ei,ci,mr){var Ti=Ur.URL||Ur.webkitURL,pr=document.createElement("a");pr.download=ci=ci||ei.name||"download",pr.rel="noopener","string"==typeof ei?(pr.href=ei,pr.origin===location.origin?dc(pr):yt(pr.href)?Zo(ei,ci,mr):dc(pr,pr.target="_blank")):(pr.href=Ti.createObjectURL(ei),setTimeout(function(){Ti.revokeObjectURL(pr.href)},4e4),setTimeout(function(){dc(pr)},0))}:"msSaveOrOpenBlob"in navigator?function(ei,ci,mr){if(ci=ci||ei.name||"download","string"!=typeof ei)navigator.msSaveOrOpenBlob(function wl(ei,ci){return typeof ci>"u"?ci={autoBom:!1}:"object"!=typeof ci&&(console.warn("Deprecated: Expected third argument to be a object"),ci={autoBom:!ci}),ci.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(ei.type)?new Blob(["\ufeff",ei],{type:ei.type}):ei}(ei,mr),ci);else if(yt(ei))Zo(ei,ci,mr);else{var Ti=document.createElement("a");Ti.href=ei,Ti.target="_blank",setTimeout(function(){dc(Ti)})}}:function(ei,ci,mr,Ti){if((Ti=Ti||open("","_blank"))&&(Ti.document.title=Ti.document.body.innerText="downloading..."),"string"==typeof ei)return Zo(ei,ci,mr);var pr="application/octet-stream"===ei.type,T_=/constructor/i.test(Ur.HTMLElement)||Ur.safari,Cl=/CriOS\/[\d]+/.test(navigator.userAgent);if((Cl||pr&&T_||uu)&&typeof FileReader<"u"){var Ro=new FileReader;Ro.onloadend=function(){var Oa=Ro.result;Oa=Cl?Oa:Oa.replace(/^data:[^;]*;/,"data:attachment/file;"),Ti?Ti.location.href=Oa:location=Oa,Ti=null},Ro.readAsDataURL(ei)}else{var uc=Ur.URL||Ur.webkitURL,hu=uc.createObjectURL(ei);Ti?Ti.location=hu:location.href=hu,Ti=null,setTimeout(function(){uc.revokeObjectURL(hu)},4e4)}});Ur.saveAs=ao.saveAs=ao,yl.exports=ao})?cc.apply(cm,[]):cc)&&(yl.exports=lc)}},yl=>{yl(yl.s=880)}]); \ No newline at end of file diff --git a/src/app/questionnaires/create-root-module/create-root-module.component.ts b/src/app/questionnaires/create-root-module/create-root-module.component.ts index 2b4533b..357f3e9 100644 --- a/src/app/questionnaires/create-root-module/create-root-module.component.ts +++ b/src/app/questionnaires/create-root-module/create-root-module.component.ts @@ -1,5 +1,5 @@ -import { Component, OnInit } from '@angular/core'; -import { MatDialogRef } from '@angular/material/dialog'; +import { Component, Inject, OnInit } from '@angular/core'; +import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; import { FormBuilder, FormGroup } from '@angular/forms'; import { FhirService } from 'src/app/services/fhir.service'; import { CdkDragDrop, moveItemInArray } from '@angular/cdk/drag-drop'; @@ -21,6 +21,7 @@ export class CreateRootModuleComponent { constructor( private fb: FormBuilder, private fhirService: FhirService, + @Inject(MAT_DIALOG_DATA) public data: any, public dialogRef: MatDialogRef ) {} @@ -29,15 +30,23 @@ export class CreateRootModuleComponent { selectedQuestionnaire: [{value: '', disabled: true}], assignedName: [{value: '', disabled: true}] }); - + if (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.allQuestionnaires.filter(q => - !this.addedQuestionnaires.some(addedQ => addedQ.id === q.id)); + if (this.addedQuestionnaires) { + this.availableQuestionnaires = this.allQuestionnaires.filter(q => + !this.addedQuestionnaires.some(addedQ => addedQ.id === q.id)); + } else { + this.availableQuestionnaires = this.allQuestionnaires; + } } loadAvailableQuestionnaires() { diff --git a/src/app/questionnaires/list-questionnaires/list-questionnaires.component.html b/src/app/questionnaires/list-questionnaires/list-questionnaires.component.html index 2957fbe..4ca70b1 100644 --- a/src/app/questionnaires/list-questionnaires/list-questionnaires.component.html +++ b/src/app/questionnaires/list-questionnaires/list-questionnaires.component.html @@ -48,7 +48,11 @@ cloud_download + - diff --git a/src/app/questionnaires/questionnaires-main/questionnaires-main.component.ts b/src/app/questionnaires/questionnaires-main/questionnaires-main.component.ts index f6641a5..1f91ffe 100644 --- a/src/app/questionnaires/questionnaires-main/questionnaires-main.component.ts +++ b/src/app/questionnaires/questionnaires-main/questionnaires-main.component.ts @@ -315,7 +315,7 @@ export class QuestionnairesMainComponent implements OnInit{ } } - openQuestionnaireModal() { + openModularQuestionnaireModal() { const dialogRef = this.dialog.open(CreateRootModuleComponent, { width: '75%' }); diff --git a/src/app/services/questionnaire.service.ts b/src/app/services/questionnaire.service.ts index 1a05456..b4077b7 100644 --- a/src/app/services/questionnaire.service.ts +++ b/src/app/services/questionnaire.service.ts @@ -48,6 +48,32 @@ export class QuestionnaireService { } } + async getRootQuestionnaireData(rootQuestionnaire: any): Promise<{ title: string, questionnaires: any[] }> { + if (!rootQuestionnaire || !Array.isArray(rootQuestionnaire.item)) { + throw new Error('Invalid root questionnaire'); + } + + const title = rootQuestionnaire.title; + const questionnairePromises = rootQuestionnaire.item + .filter((item: any) => item.type === 'group' && item.item && Array.isArray(item.item)) + .flatMap((groupItem: any) => groupItem.item) + .map(async (subItem: any) => { + const subQuestionnaireExtension = subItem.extension?.find((ext: any) => + ext.url === "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire" + ); + if (subQuestionnaireExtension) { + const url = subQuestionnaireExtension.valueCanonical; + return this.getQuestionnaireFromUrl(url); + } + return null; + }); + + const questionnaires = (await Promise.all(questionnairePromises)).filter(q => q !== null); + + return { title, questionnaires }; + } + + checkForAssembleRoot(questionnaire: any): boolean { if (!questionnaire || !questionnaire.extension || !Array.isArray(questionnaire.extension)) { return false; @@ -90,6 +116,31 @@ export class QuestionnaireService { return questionnaire; } + async disassembleQuestionnaire(rootQuestionnaire: any): Promise<{ title: any, questionnaires: any[] }> { + if (!rootQuestionnaire || !rootQuestionnaire.item || !Array.isArray(rootQuestionnaire.item)) { + throw new Error('Invalid root questionnaire'); + } + + const title = rootQuestionnaire.title; + const disassembledQuestionnaires = []; + + for (const item of rootQuestionnaire.item) { + if (item.type === 'group' && item.extension && Array.isArray(item.extension)) { + const assembledFromExtension = item.extension.find( (ext: any) => ext.url === 'http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assembledFrom'); + if (assembledFromExtension) { + const subQuestionnaireUrl = assembledFromExtension.valueCanonical; + const subQuestionnaire = await this.getQuestionnaireFromUrl(subQuestionnaireUrl); + if (subQuestionnaire) { + disassembledQuestionnaires.push(subQuestionnaire); + } + } + } + } + + return { title, questionnaires: disassembledQuestionnaires }; + } + + async getQuestionnaireFromUrl(url: string): Promise { try { const data = await lastValueFrom(this.http.get(url));