diff --git a/docs/index.html b/docs/index.html index 2bedaee..7bc7a26 100644 --- a/docs/index.html +++ b/docs/index.html @@ -31,6 +31,6 @@ - + \ No newline at end of file diff --git a/docs/main.142e841a86f4b18a.js b/docs/main.4a0f3020ab299853.js similarity index 95% rename from docs/main.142e841a86f4b18a.js rename to docs/main.4a0f3020ab299853.js index 7248f9c..1de99f3 100644 --- a/docs/main.142e841a86f4b18a.js +++ b/docs/main.4a0f3020ab299853.js @@ -1 +1 @@ -(self.webpackChunksct_implementation_demonstrator=self.webpackChunksct_implementation_demonstrator||[]).push([[179],{385:(Rl,_m,gc)=>{"use strict";function Xt(t){return"function"==typeof t}function _c(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 Ol=_c(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 sa(t,i){if(t){const e=t.indexOf(i);0<=e&&t.splice(e,1)}}class kt{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(Xt(n))try{n()}catch(o){i=o instanceof Ol?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{Eu(o)}catch(a){i=i??[],a instanceof Ol?i=[...i,...a.errors]:i.push(a)}}if(i)throw new Ol(i)}}add(i){var e;if(i&&i!==this)if(this.closed)Eu(i);else{if(i instanceof kt){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)&&sa(e,i)}remove(i){const{_finalizers:e}=this;e&&sa(e,i),i instanceof kt&&i._removeParent(this)}}kt.EMPTY=(()=>{const t=new kt;return t.closed=!0,t})();const bc=kt.EMPTY;function Gr(t){return t instanceof kt||t&&"closed"in t&&Xt(t.remove)&&Xt(t.add)&&Xt(t.unsubscribe)}function Eu(t){Xt(t)?t():t.unsubscribe()}const fo={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ri={setTimeout(t,i,...e){const{delegate:n}=ri;return n?.setTimeout?n.setTimeout(t,i,...e):setTimeout(t,i,...e)},clearTimeout(t){const{delegate:i}=ri;return(i?.clearTimeout||clearTimeout)(t)},delegate:void 0};function pi(t){ri.setTimeout(()=>{const{onUnhandledError:i}=fo;if(!i)throw t;i(t)})}function _r(){}const Fi=Pl("C",void 0,void 0);function Pl(t,i,e){return{kind:t,value:i,error:e}}let Bo=null;function vc(t){if(fo.useDeprecatedSynchronousErrorHandling){const i=!Bo;if(i&&(Bo={errorThrown:!1,error:null}),t(),i){const{errorThrown:e,error:n}=Bo;if(Bo=null,e)throw n}}else t()}class Va extends kt{constructor(i){super(),this.isStopped=!1,i?(this.destination=i,Gr(i)&&i.add(this)):this.destination=X3}static create(i,e,n){return new Ll(i,e,n)}next(i){this.isStopped?W_(function $_(t){return Pl("N",t,void 0)}(i),this):this._next(i)}error(i){this.isStopped?W_(function br(t){return Pl("E",void 0,t)}(i),this):(this.isStopped=!0,this._error(i))}complete(){this.isStopped?W_(Fi,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 W3=Function.prototype.bind;function j_(t,i){return W3.call(t,i)}class G3{constructor(i){this.partialObserver=i}next(i){const{partialObserver:e}=this;if(e.next)try{e.next(i)}catch(n){bm(n)}}error(i){const{partialObserver:e}=this;if(e.error)try{e.error(i)}catch(n){bm(n)}else bm(i)}complete(){const{partialObserver:i}=this;if(i.complete)try{i.complete()}catch(e){bm(e)}}}class Ll extends Va{constructor(i,e,n){let r;if(super(),Xt(i)||!i)r={next:i??void 0,error:e??void 0,complete:n??void 0};else{let o;this&&fo.useDeprecatedNextContext?(o=Object.create(i),o.unsubscribe=()=>this.unsubscribe(),r={next:i.next&&j_(i.next,o),error:i.error&&j_(i.error,o),complete:i.complete&&j_(i.complete,o)}):r=i}this.destination=new G3(r)}}function bm(t){fo.useDeprecatedSynchronousErrorHandling?function Tu(t){fo.useDeprecatedSynchronousErrorHandling&&Bo&&(Bo.errorThrown=!0,Bo.error=t)}(t):pi(t)}function W_(t,i){const{onStoppedNotification:e}=fo;e&&ri.setTimeout(()=>e(t,i))}const X3={closed:!0,next:_r,error:function q3(t){throw t},complete:_r},G_="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ts(t){return t}function tk(t){return 0===t.length?Ts:1===t.length?t[0]:function(e){return t.reduce((n,r)=>r(n),e)}}let ai=(()=>{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 K3(t){return t&&t instanceof Va||function Y3(t){return t&&Xt(t.next)&&Xt(t.error)&&Xt(t.complete)}(t)&&Gr(t)}(e)?e:new Ll(e,n,r);return vc(()=>{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=ik(n))((r,o)=>{const a=new Ll({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)}[G_](){return this}pipe(...e){return tk(e)(this)}toPromise(e){return new(e=ik(e))((n,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>n(o))})}}return t.create=i=>new t(i),t})();function ik(t){var i;return null!==(i=t??fo.Promise)&&void 0!==i?i:Promise}const Z3=_c(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let ke=(()=>{class t extends ai{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const n=new nk(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new Z3}next(e){vc(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const n of this.currentObservers)n.next(e)}})}error(e){vc(()=>{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(){vc(()=>{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?bc:(this.currentObservers=null,o.push(e),new kt(()=>{this.currentObservers=null,sa(o,e)}))}_checkFinalizedStatuses(e){const{hasError:n,thrownError:r,isStopped:o}=this;n?e.error(r):o&&e.complete()}asObservable(){const e=new ai;return e.source=this,e}}return t.create=(i,e)=>new nk(i,e),t})();class nk extends ke{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:bc}}function rk(t){return Xt(t?.lift)}function qi(t){return i=>{if(rk(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 Vi(t,i,e,n,r){return new J3(t,i,e,n,r)}class J3 extends Va{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 Ze(t,i){return qi((e,n)=>{let r=0;e.subscribe(Vi(n,o=>{n.next(t.call(i,o,r++))}))})}function xc(t){return this instanceof xc?(this.v=t,this):new xc(t)}function n8(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 sk(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 X_=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function ck(t){return Xt(t?.then)}function lk(t){return Xt(t[G_])}function dk(t){return Symbol.asyncIterator&&Xt(t?.[Symbol.asyncIterator])}function uk(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 hk=function o8(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function fk(t){return Xt(t?.[hk])}function mk(t){return function i8(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 xc?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 xc(e.read());if(r)return yield xc(void 0);yield yield xc(n)}}finally{e.releaseLock()}})}function pk(t){return Xt(t?.getReader)}function Jn(t){if(t instanceof ai)return t;if(null!=t){if(lk(t))return function a8(t){return new ai(i=>{const e=t[G_]();if(Xt(e.subscribe))return e.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(X_(t))return function s8(t){return new ai(i=>{for(let e=0;e{t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,pi)})}(t);if(dk(t))return gk(t);if(fk(t))return function l8(t){return new ai(i=>{for(const e of t)if(i.next(e),i.closed)return;i.complete()})}(t);if(pk(t))return function d8(t){return gk(mk(t))}(t)}throw uk(t)}function gk(t){return new ai(i=>{(function u8(t,i){var e,n,r,o;return function e8(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=n8(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 Ha(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 An(t,i,e=1/0){return Xt(i)?An((n,r)=>Ze((o,a)=>i(n,o,r,a))(Jn(t(n,r))),e):("number"==typeof i&&(e=i),qi((n,r)=>function h8(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;Jn(e(g,d++)).subscribe(Vi(i,b=>{r?.(b),o?f(b):i.next(b)},()=>{p=!0},void 0,()=>{if(p)try{for(l--;c.length&&lm(b)):m(b)}h()}catch(b){i.error(b)}}))};return t.subscribe(Vi(i,f,()=>{u=!0,h()})),()=>{s?.()}}(n,r,t,e)))}function Nl(t=1/0){return An(Ts,t)}const qr=new ai(t=>t.complete());function _k(t){return t&&Xt(t.schedule)}function Q_(t){return t[t.length-1]}function bk(t){return Xt(Q_(t))?t.pop():void 0}function Mu(t){return _k(Q_(t))?t.pop():void 0}function vk(t,i=0){return qi((e,n)=>{e.subscribe(Vi(n,r=>Ha(n,t,()=>n.next(r),i),()=>Ha(n,t,()=>n.complete(),i),r=>Ha(n,t,()=>n.error(r),i)))})}function xk(t,i=0){return qi((e,n)=>{n.add(t.schedule(()=>e.subscribe(n),i))})}function yk(t,i){if(!t)throw new Error("Iterable cannot be null");return new ai(e=>{Ha(e,i,()=>{const n=t[Symbol.asyncIterator]();Ha(e,i,()=>{n.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function rn(t,i){return i?function x8(t,i){if(null!=t){if(lk(t))return function p8(t,i){return Jn(t).pipe(xk(i),vk(i))}(t,i);if(X_(t))return function _8(t,i){return new ai(e=>{let n=0;return i.schedule(function(){n===t.length?e.complete():(e.next(t[n++]),e.closed||this.schedule())})})}(t,i);if(ck(t))return function g8(t,i){return Jn(t).pipe(xk(i),vk(i))}(t,i);if(dk(t))return yk(t,i);if(fk(t))return function b8(t,i){return new ai(e=>{let n;return Ha(e,i,()=>{n=t[hk](),Ha(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)}),()=>Xt(n?.return)&&n.return()})}(t,i);if(pk(t))return function v8(t,i){return yk(mk(t),i)}(t,i)}throw uk(t)}(t,i):Jn(t)}function Pi(...t){const i=Mu(t),e=function m8(t,i){return"number"==typeof Q_(t)?t.pop():i}(t,1/0),n=t;return n.length?1===n.length?Jn(n[0]):Nl(e)(rn(n,i)):qr}function wk(t={}){const{connector:i=(()=>new ke),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 qi((g,p)=>{l++,!u&&!d&&h();const b=c=c??i();p.add(()=>{l--,0===l&&!u&&!d&&(s=Y_(m,r))}),b.subscribe(p),!a&&l>0&&(a=new Ll({next:C=>b.next(C),error:C=>{u=!0,h(),s=Y_(f,e,C),b.error(C)},complete:()=>{d=!0,h(),s=Y_(f,n),b.complete()}}),Jn(g).subscribe(a))})(o)}}function Y_(t,i,...e){if(!0===i)return void t();if(!1===i)return;const n=new Ll({next:()=>{n.unsubscribe(),t()}});return Jn(i(...e)).subscribe(n)}function Ri(t){for(let i in t)if(t[i]===Ri)return i;throw Error("Could not find renamed property on target object.")}function K_(t,i){for(const e in i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function Li(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Li).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 Z_(t,i){return null==t||""===t?null===i?"":i:null==i||""===i?t:t+" "+i}const y8=Ri({__forward_ref__:Ri});function Qt(t){return t.__forward_ref__=Qt,t.toString=function(){return Li(this())},t}function _t(t){return J_(t)?t():t}function J_(t){return"function"==typeof t&&t.hasOwnProperty(y8)&&t.__forward_ref__===Qt}function eb(t){return t&&!!t.\u0275providers}const vm="https://g.co/ng/security#xss";class ue extends Error{constructor(i,e){super(xm(i,e)),this.code=i}}function xm(t,i){return`NG0${Math.abs(t)}${i?": "+i.trim():""}`}function St(t){return"string"==typeof t?t:null==t?"":String(t)}function ym(t,i){throw new ue(-201,!1)}function mo(t,i){null==t&&function vi(t,i,e,n){throw new Error(`ASSERTION ERROR: ${t}`+(null==n?"":` [Expected=> ${e} ${n} ${i} <=Actual]`))}(i,t,null,"!=")}function we(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ct(t){return{providers:t.providers||[],imports:t.imports||[]}}function wm(t){return Ck(t,Cm)||Ck(t,Sk)}function Ck(t,i){return t.hasOwnProperty(i)?t[i]:null}function kk(t){return t&&(t.hasOwnProperty(tb)||t.hasOwnProperty(M8))?t[tb]:null}const Cm=Ri({\u0275prov:Ri}),tb=Ri({\u0275inj:Ri}),Sk=Ri({ngInjectableDef:Ri}),M8=Ri({ngInjectorDef:Ri});var bt=(()=>((bt=bt||{})[bt.Default=0]="Default",bt[bt.Host=1]="Host",bt[bt.Self=2]="Self",bt[bt.SkipSelf=4]="SkipSelf",bt[bt.Optional=8]="Optional",bt))();let ib;function po(t){const i=ib;return ib=t,i}function Dk(t,i,e){const n=wm(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:e&bt.Optional?null:void 0!==i?i:void ym(Li(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)(),Au={},nb="__NG_DI_FLAG__",km="ngTempTokenPath",I8="ngTokenPath",F8=/\n/gm,R8="\u0275",Ek="__source";let Iu;function Bl(t){const i=Iu;return Iu=t,i}function O8(t,i=bt.Default){if(void 0===Iu)throw new ue(-203,!1);return null===Iu?Dk(t,void 0,i):Iu.get(t,i&bt.Optional?null:void 0,i)}function X(t,i=bt.Default){return(function A8(){return ib}()||O8)(_t(t),i)}function ft(t,i=bt.Default){return X(t,Sm(i))}function Sm(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function rb(t){const i=[];for(let e=0;e((ca=ca||{})[ca.OnPush=0]="OnPush",ca[ca.Default=1]="Default",ca))(),Vo=(()=>{return(t=Vo||(Vo={}))[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",Vo;var t})();const za={},gi=[],Dm=Ri({\u0275cmp:Ri}),ob=Ri({\u0275dir:Ri}),ab=Ri({\u0275pipe:Ri}),Mk=Ri({\u0275mod:Ri}),$a=Ri({\u0275fac:Ri}),Ru=Ri({__NG_ELEMENT_ID__:Ri});let B8=0;function Le(t){return Ua(()=>{const i=Ik(t),e={...i,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===ca.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:null,data:t.data||{},encapsulation:t.encapsulation||Vo.Emulated,id:"c"+B8++,styles:t.styles||gi,_:null,schemas:t.schemas||null,tView:null};Fk(e);const n=t.dependencies;return e.directiveDefs=Em(n,!1),e.pipeDefs=Em(n,!0),e})}function H8(t){return xi(t)||er(t)}function U8(t){return null!==t}function lt(t){return Ua(()=>({type:t.type,bootstrap:t.bootstrap||gi,declarations:t.declarations||gi,imports:t.imports||gi,exports:t.exports||gi,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Ak(t,i){if(null==t)return za;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 Ua(()=>{const i=Ik(t);return Fk(i),i})}function Rr(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 xi(t){return t[Dm]||null}function er(t){return t[ob]||null}function Or(t){return t[ab]||null}function Qr(t,i){const e=t[Mk]||null;if(!e&&!0===i)throw new Error(`Type ${Li(t)} does not have '\u0275mod' property.`);return e}function Ik(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||gi,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ak(t.inputs,i),outputs:Ak(t.outputs)}}function Fk(t){t.features?.forEach(i=>i(t))}function Em(t,i){if(!t)return null;const e=i?Or:H8;return()=>("function"==typeof t?t():t).map(n=>e(n)).filter(U8)}const ja=0,Qe=1,Rt=2,Ji=3,Ho=4,yc=5,tr=6,Hl=7,on=8,Tm=9,Mm=10,Bt=11,sb=12,Ou=13,Rk=14,Ul=15,ir=16,Pu=17,zl=18,la=19,Lu=20,Ok=21,Ui=22,cb=1,Pk=2,Am=7,Im=8,$l=9,vr=10;function Yr(t){return Array.isArray(t)&&"object"==typeof t[cb]}function Uo(t){return Array.isArray(t)&&!0===t[cb]}function lb(t){return 0!=(4&t.flags)}function Nu(t){return t.componentOffset>-1}function Fm(t){return 1==(1&t.flags)}function zo(t){return!!t.template}function $8(t){return 0!=(256&t[Rt])}function wc(t,i){return t.hasOwnProperty($a)?t[$a]:null}class G8{constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Ai(){return Bk}function Bk(t){return t.type.prototype.ngOnChanges&&(t.setInput=X8),q8}function q8(){const t=Hk(this),i=t?.current;if(i){const e=t.previous;if(e===za)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function X8(t,i,e,n){const r=this.declaredInputs[e],o=Hk(t)||function Q8(t,i){return t[Vk]=i}(t,{previous:za,current:null}),a=o.current||(o.current={}),s=o.previous,c=s[r];a[r]=new G8(c&&c.currentValue,i,s===za),t[n]=i}Ai.ngInherit=!0;const Vk="__ngSimpleChanges__";function Hk(t){return t[Vk]||null}const go=function(t,i,e){},Uk="svg";function Gn(t){for(;Array.isArray(t);)t=t[ja];return t}function Rm(t,i){return Gn(i[t])}function Kr(t,i){return Gn(i[t.index])}function $k(t,i){return t.data[i]}function jl(t,i){return t[i]}function Pr(t,i){const e=i[t];return Yr(e)?e:e[ja]}function Om(t){return 64==(64&t[Rt])}function As(t,i){return null==i?null:t[i]}function jk(t){t[zl]=0}function ub(t,i){t[yc]+=i;let e=t,n=t[Ji];for(;null!==n&&(1===i&&1===e[yc]||-1===i&&0===e[yc]);)n[yc]+=i,e=n,n=n[Ji]}const Dt={lFrame:eS(null),bindingsEnabled:!0};function Gk(){return Dt.bindingsEnabled}function ve(){return Dt.lFrame.lView}function oi(){return Dt.lFrame.tView}function _e(t){return Dt.lFrame.contextLView=t,t[on]}function be(t){return Dt.lFrame.contextLView=null,t}function qn(){let t=qk();for(;null!==t&&64===t.type;)t=t.parent;return t}function qk(){return Dt.lFrame.currentTNode}function da(t,i){const e=Dt.lFrame;e.currentTNode=t,e.isParent=i}function hb(){return Dt.lFrame.isParent}function fb(){Dt.lFrame.isParent=!1}function xr(){const t=Dt.lFrame;let i=t.bindingRootIndex;return-1===i&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function Wa(){return Dt.lFrame.bindingIndex}function Wl(){return Dt.lFrame.bindingIndex++}function Ga(t){const i=Dt.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function cB(t,i){const e=Dt.lFrame;e.bindingIndex=e.bindingRootIndex=t,mb(i)}function mb(t){Dt.lFrame.currentDirectiveIndex=t}function pb(t){const i=Dt.lFrame.currentDirectiveIndex;return-1===i?null:t[i]}function Kk(){return Dt.lFrame.currentQueryIndex}function gb(t){Dt.lFrame.currentQueryIndex=t}function dB(t){const i=t[Qe];return 2===i.type?i.declTNode:1===i.type?t[tr]:null}function Zk(t,i,e){if(e&bt.SkipSelf){let r=i,o=t;for(;!(r=r.parent,null!==r||e&bt.Host||(r=dB(o),null===r||(o=o[Ul],10&r.type))););if(null===r)return!1;i=r,t=o}const n=Dt.lFrame=Jk();return n.currentTNode=i,n.lView=t,!0}function _b(t){const i=Jk(),e=t[Qe];Dt.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function Jk(){const t=Dt.lFrame,i=null===t?null:t.child;return null===i?eS(t):i}function eS(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 tS(){const t=Dt.lFrame;return Dt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const iS=tS;function bb(){const t=tS();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 yr(){return Dt.lFrame.selectedIndex}function Cc(t){Dt.lFrame.selectedIndex=t}function Xi(){const t=Dt.lFrame;return $k(t.tView,t.selectedIndex)}function qa(){Dt.lFrame.currentNamespace=Uk}function Gl(){!function mB(){Dt.lFrame.currentNamespace=null}()}function Pm(t,i){for(let e=i.directiveStart,n=i.directiveEnd;e=n)break}else i[c]<0&&(t[zl]+=65536),(s>11>16&&(3&t[Rt])===i){t[Rt]+=2048,go(4,s,o);try{o.call(s)}finally{go(5,s,o)}}}else{go(4,s,o);try{o.call(s)}finally{go(5,s,o)}}}const ql=-1;class Vu{constructor(i,e,n){this.factory=i,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function yb(t,i,e){let n=0;for(;ni){a=o-1;break}}}for(;o>16}(t),n=i;for(;e>0;)n=n[Ul],e--;return n}let wb=!0;function Hm(t){const i=wb;return wb=t,i}const cS=255,lS=5;let wB=0;const ua={};function Um(t,i){const e=dS(t,i);if(-1!==e)return e;const n=i[Qe];n.firstCreatePass&&(t.injectorIndex=i.length,Cb(n.data,t),Cb(i,null),Cb(n.blueprint,null));const r=kb(t,i),o=t.injectorIndex;if(sS(r)){const a=Bm(r),s=Vm(r,i),c=s[Qe].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 dS(t,i){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===i[t.injectorIndex+8]?-1:t.injectorIndex}function kb(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=_S(r),null===n)return ql;if(e++,r=r[Ul],-1!==n.injectorIndex)return n.injectorIndex|e<<16}return ql}function Sb(t,i,e){!function CB(t,i,e){let n;"string"==typeof e?n=e.charCodeAt(0)||0:e.hasOwnProperty(Ru)&&(n=e[Ru]),null==n&&(n=e[Ru]=wB++);const r=n&cS;i.data[t+(r>>lS)]|=1<=0?i&cS:EB:i}(e);if("function"==typeof o){if(!Zk(i,t,n))return n&bt.Host?uS(r,0,n):hS(i,e,n,r);try{const a=o(n);if(null!=a||n&bt.Optional)return a;ym()}finally{iS()}}else if("number"==typeof o){let a=null,s=dS(t,i),c=ql,l=n&bt.Host?i[ir][tr]:null;for((-1===s||n&bt.SkipSelf)&&(c=-1===s?kb(t,i):i[s+8],c!==ql&&gS(n,!1)?(a=i[Qe],s=Bm(c),i=Vm(c,i)):s=-1);-1!==s;){const d=i[Qe];if(pS(o,s,d.data)){const u=SB(s,i,e,a,n,l);if(u!==ua)return u}c=i[s+8],c!==ql&&gS(n,i[Qe].data[s+8]===l)&&pS(o,s,i)?(a=d,s=Bm(c),i=Vm(c,i)):s=-1}}return r}function SB(t,i,e,n,r,o){const a=i[Qe],s=a.data[t+8],d=zm(s,a,e,null==n?Nu(s)&&wb:n!=a&&0!=(3&s.type),r&bt.Host&&o===s);return null!==d?kc(i,a,d,s):ua}function zm(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&&zo(f)&&f.type===e)return c}return null}function kc(t,i,e,n){let r=t[e];const o=i.data;if(function bB(t){return t instanceof Vu}(r)){const a=r;a.resolving&&function w8(t,i){const e=i?`. Dependency path: ${i.join(" > ")} > ${t}`:"";throw new ue(-200,`Circular dependency in DI detected for ${t}${e}`)}(function bi(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():St(t)}(o[e]));const s=Hm(a.canSeeViewProviders);a.resolving=!0;const c=a.injectImpl?po(a.injectImpl):null;Zk(t,n,bt.Default);try{r=t[e]=a.factory(void 0,o,t,n),i.firstCreatePass&&e>=n.directiveStart&&function gB(t,i,e){const{ngOnChanges:n,ngOnInit:r,ngDoCheck:o}=i.type.prototype;if(n){const a=Bk(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&&po(c),Hm(s),a.resolving=!1,iS()}}return r}function pS(t,i,e){return!!(e[i+(t>>lS)]&1<{const i=t.prototype.constructor,e=i[$a]||Db(i),n=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==n;){const o=r[$a]||Db(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function Db(t){return J_(t)?()=>{const i=Db(_t(t));return i&&i()}:wc(t)}function _S(t){const i=t[Qe],e=i.type;return 2===e?i.declTNode:1===e?t[tr]:null}function _o(t){return function kB(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 Eb(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(Yl)?c[Yl]:Object.defineProperty(c,Yl,{value:[]})[Yl];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 oe{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=we({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Sc(t,i){t.forEach(e=>Array.isArray(e)?Sc(e,i):i(e))}function vS(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function $m(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function $u(t,i){const e=[];for(let n=0;n=0?t[1|n]=e:(n=~n,function FB(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=Jl(t,i);if(e>=0)return t[1|e]}function Jl(t,i){return function xS(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),ha=Fu(Zl("Optional"),8),Dc=Fu(Zl("SkipSelf"),4);var Lr=(()=>((Lr=Lr||{})[Lr.Important=1]="Important",Lr[Lr.DashCase=2]="DashCase",Lr))();const Ob=new Map;let e5=0;const Lb="__ngContext__";function nr(t,i){Yr(i)?(t[Lb]=i[Lu],function n5(t){Ob.set(t[Lu],t)}(i)):t[Lb]=i}let Nb;function Bb(t,i){return Nb(t,i)}function qu(t){const i=t[Ji];return Uo(i)?i[Ji]:i}function Vb(t){return HS(t[Ou])}function Hb(t){return HS(t[Ho])}function HS(t){for(;null!==t&&!Uo(t);)t=t[Ho];return t}function td(t,i,e,n,r){if(null!=n){let o,a=!1;Uo(n)?o=n:Yr(n)&&(a=!0,n=n[ja]);const s=Gn(n);0===t&&null!==e?null==r?GS(i,e,s):Ec(i,e,s,r||null,!0):1===t&&null!==e?Ec(i,e,s,r||null,!0):2===t?function qb(t,i,e){const n=Xm(t,i);n&&function C5(t,i,e,n){t.removeChild(i,e,n)}(t,n,i,e)}(i,s,a):3===t&&i.destroyNode(s),null!=o&&function D5(t,i,e,n,r){const o=e[Am];o!==Gn(e)&&td(i,t,n,o,r);for(let s=vr;s0&&(t[e-1][Ho]=n[Ho]);const o=$m(t,vr+i);!function p5(t,i){Xu(t,i,i[Bt],2,null,null),i[ja]=null,i[tr]=null}(n[Qe],n);const a=o[la];null!==a&&a.detachView(o[Qe]),n[Ji]=null,n[Ho]=null,n[Rt]&=-65}return n}function $S(t,i){if(!(128&i[Rt])){const e=i[Bt];e.destroyNode&&Xu(t,i,e,3,null,null),function b5(t){let i=t[Ou];if(!i)return jb(t[Qe],t);for(;i;){let e=null;if(Yr(i))e=i[Ou];else{const n=i[vr];n&&(e=n)}if(!e){for(;i&&!i[Ho]&&i!==t;)Yr(i)&&jb(i[Qe],i),i=i[Ji];null===i&&(i=t),Yr(i)&&jb(i[Qe],i),e=i&&i[Ho]}i=e}}(i)}}function jb(t,i){if(!(128&i[Rt])){i[Rt]&=-65,i[Rt]|=128,function w5(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===Vo.None||o===Vo.Emulated)return null}return Kr(n,e)}}(t,i.parent,e)}function Ec(t,i,e,n,r){t.insertBefore(i,e,n,r)}function GS(t,i,e){t.appendChild(i,e)}function qS(t,i,e,n,r){null!==n?Ec(t,i,e,n,r):GS(t,i,e)}function Xm(t,i){return t.parentNode(i)}function XS(t,i,e){return YS(t,i,e)}let Wb,Km,Yb,Zm,YS=function QS(t,i,e){return 40&t.type?Kr(t,e):null};function Qm(t,i,e,n){const r=jS(t,n,i),o=i[Bt],s=XS(n.parent||i[tr],n,i);if(null!=r)if(Array.isArray(e))for(let c=0;ct,createScript:t=>t,createScriptURL:t=>t})}catch{}return Km}()?.createHTML(t)||t}function nD(t){return function Kb(){if(void 0===Zm&&(Zm=null,Hi.trustedTypes))try{Zm=Hi.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Zm}()?.createHTML(t)||t}class Tc{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${vm})`}}class R5 extends Tc{getTypeName(){return"HTML"}}class O5 extends Tc{getTypeName(){return"Style"}}class P5 extends Tc{getTypeName(){return"Script"}}class L5 extends Tc{getTypeName(){return"URL"}}class N5 extends Tc{getTypeName(){return"ResourceURL"}}function Jr(t){return t instanceof Tc?t.changingThisBreaksApplicationSecurity:t}function fa(t,i){const e=function B5(t){return t instanceof Tc&&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 ${vm})`)}return e===i}class j5{constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{const e=(new window.DOMParser).parseFromString(id(i),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(i):(e.removeChild(e.firstChild),e)}catch{return null}}}class W5{constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){const e=this.inertDocument.createElement("template");return e.innerHTML=id(i),e}}const q5=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Jm(t){return(t=String(t)).match(q5)?t:"unsafe:"+t}function Xa(t){const i={};for(const e of t.split(","))i[e]=!0;return i}function Qu(...t){const i={};for(const e of t)for(const n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}const sD=Xa("area,br,col,hr,img,wbr"),cD=Xa("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),lD=Xa("rp,rt"),Zb=Qu(sD,Qu(cD,Xa("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")),Qu(lD,Xa("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")),Qu(lD,cD)),Jb=Xa("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),dD=Qu(Jb,Xa("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"),Xa("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")),X5=Xa("script,style,template");class Q5{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(!Zb.hasOwnProperty(e))return this.sanitizedSomething=!0,!X5.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();Zb.hasOwnProperty(e)&&!sD.hasOwnProperty(e)&&(this.buf.push(""))}chars(i){this.buf.push(uD(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 Y5=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,K5=/([^\#-~ |!])/g;function uD(t){return t.replace(/&/g,"&").replace(Y5,function(i){return"&#"+(1024*(i.charCodeAt(0)-55296)+(i.charCodeAt(1)-56320)+65536)+";"}).replace(K5,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}let ep;function hD(t,i){let e=null;try{ep=ep||function aD(t){const i=new W5(t);return function G5(){try{return!!(new window.DOMParser).parseFromString(id(""),"text/html")}catch{return!1}}()?new j5(i):i}(t);let n=i?String(i):"";e=ep.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=ep.getInertBodyElement(n)}while(n!==o);return id((new Q5).sanitizeChildren(ev(e)||e))}finally{if(e){const n=ev(e)||e;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function ev(t){return"content"in t&&function Z5(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var _i=(()=>((_i=_i||{})[_i.NONE=0]="NONE",_i[_i.HTML=1]="HTML",_i[_i.STYLE=2]="STYLE",_i[_i.SCRIPT=3]="SCRIPT",_i[_i.URL=4]="URL",_i[_i.RESOURCE_URL=5]="RESOURCE_URL",_i))();function Mc(t){const i=Yu();return i?nD(i.sanitize(_i.HTML,t)||""):fa(t,"HTML")?nD(Jr(t)):hD(function iD(){return void 0!==Yb?Yb:typeof document<"u"?document:void 0}(),St(t))}function tp(t){const i=Yu();return i?i.sanitize(_i.URL,t)||"":fa(t,"URL")?Jr(t):Jm(St(t))}function Yu(){const t=ve();return t&&t[sb]}const ip=new oe("ENVIRONMENT_INITIALIZER"),pD=new oe("INJECTOR",-1),gD=new oe("INJECTOR_DEF_TYPES");class _D{get(i,e=Au){if(e===Au){const n=new Error(`NullInjectorError: No provider for ${Li(i)}!`);throw n.name="NullInjectorError",n}return e}}function o6(...t){return{\u0275providers:bD(0,t),\u0275fromNgModule:!0}}function bD(t,...i){const e=[],n=new Set;let r;return Sc(i,o=>{const a=o;tv(a,e,[],n)&&(r||(r=[]),r.push(a))}),void 0!==r&&vD(r,e),e}function vD(t,i){for(let e=0;e{i.push(o)})}}function tv(t,i,e,n){if(!(t=_t(t)))return!1;let r=null,o=kk(t);const a=!o&&xi(t);if(o||a){if(a&&!a.standalone)return!1;r=t}else{const c=t.ngModule;if(o=kk(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)tv(l,i,e,n)}}else{if(!o)return!1;{if(null!=o.imports&&!s){let l;n.add(r);try{Sc(o.imports,d=>{tv(d,i,e,n)&&(l||(l=[]),l.push(d))})}finally{}void 0!==l&&vD(l,i)}if(!s){const l=wc(r)||(()=>new r);i.push({provide:r,useFactory:l,deps:gi},{provide:gD,useValue:r,multi:!0},{provide:ip,useValue:()=>X(r),multi:!0})}const c=o.providers;null==c||s||iv(c,d=>{i.push(d)})}}return r!==t&&void 0!==t.providers}function iv(t,i){for(let e of t)eb(e)&&(e=e.\u0275providers),Array.isArray(e)?iv(e,i):i(e)}const a6=Ri({provide:String,useValue:Ri});function nv(t){return null!==t&&"object"==typeof t&&a6 in t}function Ac(t){return"function"==typeof t}const rv=new oe("Set Injector scope."),np={},c6={};let ov;function rp(){return void 0===ov&&(ov=new _D),ov}class ma{}class wD extends ma{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,sv(i,a=>this.processProvider(a)),this.records.set(pD,nd(void 0,this)),r.has("environment")&&this.records.set(ma,nd(void 0,this));const o=this.records.get(rv);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(gD.multi,gi,bt.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=Bl(this),n=po(void 0);try{return i()}finally{Bl(e),po(n)}}get(i,e=Au,n=bt.Default){this.assertNotDestroyed(),n=Sm(n);const r=Bl(this),o=po(void 0);try{if(!(n&bt.SkipSelf)){let s=this.records.get(i);if(void 0===s){const c=function f6(t){return"function"==typeof t||"object"==typeof t&&t instanceof oe}(i)&&wm(i);s=c&&this.injectableDefInScope(c)?nd(av(i),np):null,this.records.set(i,s)}if(null!=s)return this.hydrate(i,s)}return(n&bt.Self?rp():this.parent).get(i,e=n&bt.Optional&&e===Au?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[km]=a[km]||[]).unshift(Li(i)),r)throw a;return function L8(t,i,e,n){const r=t[km];throw i[Ek]&&r.unshift(i[Ek]),t.message=function N8(t,i,e,n=null){t=t&&"\n"===t.charAt(0)&&t.charAt(1)==R8?t.slice(2):t;let r=Li(i);if(Array.isArray(i))r=i.map(Li).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):Li(s)))}r=`{${o.join(", ")}}`}return`${e}${n?"("+n+")":""}[${r}]: ${t.replace(F8,"\n ")}`}("\n"+t.message,r,e,n),t[I8]=r,t[km]=null,t}(a,i,"R3InjectorError",this.source)}throw a}finally{po(o),Bl(r)}}resolveInjectorInitializers(){const i=Bl(this),e=po(void 0);try{const n=this.get(ip.multi,gi,bt.Self);for(const r of n)r()}finally{Bl(i),po(e)}}toString(){const i=[],e=this.records;for(const n of e.keys())i.push(Li(n));return`R3Injector[${i.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ue(205,!1)}processProvider(i){let e=Ac(i=_t(i))?i:_t(i&&i.provide);const n=function d6(t){return nv(t)?nd(void 0,t.useValue):nd(CD(t),np)}(i);if(Ac(i)||!0!==i.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=nd(void 0,np,!0),r.factory=()=>rb(r.multi),this.records.set(e,r)),e=i,r.multi.push(i)}this.records.set(e,n)}hydrate(i,e){return e.value===np&&(e.value=c6,e.value=e.factory()),"object"==typeof e.value&&e.value&&function h6(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=_t(i.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function av(t){const i=wm(t),e=null!==i?i.factory:wc(t);if(null!==e)return e;if(t instanceof oe)throw new ue(204,!1);if(t instanceof Function)return function l6(t){const i=t.length;if(i>0)throw $u(i,"?"),new ue(204,!1);const e=function T8(t){return t&&(t[Cm]||t[Sk])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new ue(204,!1)}function CD(t,i,e){let n;if(Ac(t)){const r=_t(t);return wc(r)||av(r)}if(nv(t))n=()=>_t(t.useValue);else if(function yD(t){return!(!t||!t.useFactory)}(t))n=()=>t.useFactory(...rb(t.deps||[]));else if(function xD(t){return!(!t||!t.useExisting)}(t))n=()=>X(_t(t.useExisting));else{const r=_t(t&&(t.useClass||t.provide));if(!function u6(t){return!!t.deps}(t))return wc(r)||av(r);n=()=>new r(...rb(t.deps))}return n}function nd(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function sv(t,i){for(const e of t)Array.isArray(e)?sv(e,i):e&&eb(e)?sv(e.\u0275providers,i):i(e)}class m6{}class kD{}class g6{resolveComponentFactory(i){throw function p6(t){const i=Error(`No component factory found for ${Li(t)}. Did you add it to @NgModule.entryComponents?`);return i.ngComponent=t,i}(i)}}let Is=(()=>{class t{}return t.NULL=new g6,t})();function _6(){return rd(qn(),ve())}function rd(t,i){return new Ie(Kr(t,i))}let Ie=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=_6,t})();function b6(t){return t instanceof Ie?t.nativeElement:t}class Ku{}let Qa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function v6(){const t=ve(),e=Pr(qn().index,t);return(Yr(e)?e:t)[Bt]}(),t})(),x6=(()=>{class t{}return t.\u0275prov=we({token:t,providedIn:"root",factory:()=>null}),t})();class Ic{constructor(i){this.full=i,this.major=i.split(".")[0],this.minor=i.split(".")[1],this.patch=i.split(".").slice(2).join(".")}}const y6=new Ic("15.2.8"),cv={},lv="ngOriginalError";function dv(t){return t[lv]}class Ya{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&&dv(i);for(;e&&dv(e);)e=dv(e);return e||null}}function Ka(t){return t instanceof Function?t():t}function ED(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 TD="ng-template";function F6(t,i,e){let n=0,r=!0;for(;no?"":r[u+1].toLowerCase();const f=8&n?h:null;if(f&&-1!==ED(f,l,0)||2&n&&l!==h){if($o(n))return!1;a=!0}}}}else{if(!a&&!$o(n)&&!$o(c))return!1;if(a&&$o(c))continue;a=!1,n=c|1&n}}return $o(n)||a}function $o(t){return 0==(1&t)}function P6(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&&!$o(a)&&(i+=ID(o,r),r=""),n=a,o=o||!$o(n);e++}return""!==r&&(i+=ID(o,r)),i}const Et={};function w(t){FD(oi(),ve(),yr()+t,!1)}function FD(t,i,e,n){if(!n)if(3==(3&i[Rt])){const o=t.preOrderCheckHooks;null!==o&&Lm(i,o,e)}else{const o=t.preOrderHooks;null!==o&&Nm(i,o,0,e)}Cc(e)}function LD(t,i=null,e=null,n){const r=ND(t,i,e,n);return r.resolveInjectorInitializers(),r}function ND(t,i=null,e=null,n,r=new Set){const o=[e||gi,o6(t)];return n=n||("object"==typeof t?void 0:Li(t)),new wD(o,i||rp(),n||null,r)}let an=(()=>{class t{static create(e,n){if(Array.isArray(e))return LD({name:""},n,e,"");{const r=e.name??"";return LD({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=Au,t.NULL=new _D,t.\u0275prov=we({token:t,providedIn:"any",factory:()=>X(pD)}),t.__NG_ELEMENT_ID__=-1,t})();function x(t,i=bt.Default){const e=ve();return null===e?X(t,i):fS(qn(),e,_t(t),i)}function pa(){throw new Error("invalid")}function jD(t,i){const e=t.contentQueries;if(null!==e)for(let n=0;nUi&&FD(t,i,Ui,!1),go(a?2:0,r),e(n,r)}finally{Cc(o),go(a?3:1,r)}}function _v(t,i,e){if(lb(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,Zu(t,e,r.hostVars,Et),r)}function ga(t,i,e,n,r,o){const a=Kr(t,i);!function Cv(t,i,e,n,r,o,a){if(null==o)t.removeAttribute(i,r,e);else{const s=null==a?St(o):a(o,n||"",r);t.setAttribute(i,r,s,e)}}(i[Bt],a,o,t.value,e,n,r)}function EV(t,i,e,n,r,o){const a=o[i];if(null!==a){const s=n.setInput;for(let c=0;c0&&kv(e)}}function kv(t){for(let n=Vb(t);null!==n;n=Hb(n))for(let r=vr;r0&&kv(o)}const e=t[Qe].components;if(null!==e)for(let n=0;n0&&kv(r)}}function FV(t,i){const e=Pr(i,t),n=e[Qe];(function RV(t,i){for(let e=i.length;e-1&&($b(i,n),$m(e,n))}this._attachedToViewContainer=!1}$S(this._lView[Qe],this._lView)}onDestroy(i){qD(this._lView[Qe],this._lView,null,i)}markForCheck(){lp(this._cdRefInjectingView||this._lView)}detach(){this._lView[Rt]&=-65}reattach(){this._lView[Rt]|=64}detectChanges(){dp(this._lView[Qe],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ue(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function _5(t,i){Xu(t,i,i[Bt],2,null,null)}(this._lView[Qe],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new ue(902,!1);this._appRef=i}}class OV extends Ju{constructor(i){super(i),this._view=i}detectChanges(){const i=this._view;dp(i[Qe],i,i[on],!1)}checkNoChanges(){}get context(){return null}}class nE extends Is{constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){const e=xi(i);return new eh(e,this.ngModule)}}function rE(t){const i=[];for(let e in t)t.hasOwnProperty(e)&&i.push({propName:t[e],templateName:e});return i}class LV{constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){n=Sm(n);const r=this.injector.get(i,cv,n);return r!==cv||e===cv?r:this.parentInjector.get(i,e,n)}}class eh extends kD{get inputs(){return rE(this.componentDef.inputs)}get outputs(){return rE(this.componentDef.outputs)}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=function U6(t){return t.map(H6).join(",")}(i.selectors),this.ngContentSelectors=i.ngContentSelectors?i.ngContentSelectors:[],this.isBoundToModule=!!e}create(i,e,n,r){let o=(r=r||this.ngModule)instanceof ma?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const a=o?new LV(i,o):i,s=a.get(Ku,null);if(null===s)throw new ue(407,!1);const c=a.get(x6,null),l=s.createRenderer(null,this.componentDef),d=this.componentDef.selectors[0][0]||"div",u=n?function uV(t,i,e){return t.selectRootElement(i,e===Vo.ShadowDom)}(l,n,this.componentDef.encapsulation):zb(l,d,function PV(t){const i=t.toLowerCase();return"svg"===i?Uk:"math"===i?"math":null}(d)),h=this.componentDef.onPush?288:272,f=xv(0,null,null,1,0,null,null,null,null,null),m=ap(null,f,null,h,null,null,s,l,c,a,null);let g,p;_b(m);try{const b=this.componentDef;let C,y=null;b.findHostDirectiveDefs?(C=[],y=new Map,b.findHostDirectiveDefs(b,C,y),C.push(b)):C=[b];const M=function BV(t,i){const e=t[Qe],n=Ui;return t[n]=i,sd(e,n,2,"#host",null)}(m,u),q=function VV(t,i,e,n,r,o,a,s){const c=r[Qe];!function HV(t,i,e,n){for(const r of t)i.mergedAttrs=Hu(i.mergedAttrs,r.hostAttrs);null!==i.mergedAttrs&&(up(i,i.mergedAttrs,!0),null!==e&&tD(n,e,i))}(n,t,i,a);const l=o.createRenderer(i,e),d=ap(r,GD(e),null,e.onPush?32:16,r[t.index],t,o,l,s||null,null,null);return c.firstCreatePass&&wv(c,t,n.length-1),cp(r,d),r[t.index]=d}(M,u,b,C,m,s,l);p=$k(f,Ui),u&&function zV(t,i,e,n){if(n)yb(t,e,["ng-version",y6.full]);else{const{attrs:r,classes:o}=function z6(t){const i=[],e=[];let n=1,r=2;for(;n0&&eD(t,e,o.join(" "))}}(l,b,u,n),void 0!==e&&function $V(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=Hu(r.hostAttrs,e=Hu(e,r.hostAttrs))}}(n)}function Ev(t){return t===za?{}:t===gi?[]:t}function GV(t,i){const e=t.viewQuery;t.viewQuery=e?(n,r)=>{i(n,r),e(n,r)}:i}function qV(t,i){const e=t.contentQueries;t.contentQueries=e?(n,r,o)=>{i(n,r,o),e(n,r,o)}:i}function XV(t,i){const e=t.hostBindings;t.hostBindings=e?(n,r)=>{i(n,r),e(n,r)}:i}function fp(t){return!!Tv(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function Tv(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function _a(t,i,e){return t[i]=e}function rr(t,i,e){return!Object.is(t[i],e)&&(t[i]=e,!0)}function Fc(t,i,e,n){const r=rr(t,i,e);return rr(t,i+1,n)||r}function st(t,i,e,n){const r=ve();return rr(r,Wl(),i)&&(oi(),ga(Xi(),r,t,i,e,n)),st}function ld(t,i,e,n){return rr(t,Wl(),e)?i+St(e)+n:Et}function ud(t,i,e,n,r,o,a,s){const l=function mp(t,i,e,n,r){const o=Fc(t,i,e,n);return rr(t,i+2,r)||o}(t,Wa(),e,r,a);return Ga(3),l?i+St(e)+n+St(r)+o+St(a)+s:Et}function P(t,i,e,n,r,o,a,s){const c=ve(),l=oi(),d=t+Ui,u=l.firstCreatePass?function r7(t,i,e,n,r,o,a,s,c){const l=i.consts,d=sd(i,t,4,a||null,As(l,s));yv(i,e,d,As(l,c)),Pm(i,d);const u=d.tView=xv(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];da(u,!1);const h=c[Bt].createComment("");Qm(l,c,h,u),nr(h,c),cp(c,c[d]=ZD(h,c,h,u)),Fm(u)&&bv(l,c,u),null!=a&&vv(c,u,s)}function wt(t){return jl(function aB(){return Dt.lFrame.contextLView}(),Ui+t)}function S(t,i,e){const n=ve();return rr(n,Wl(),i)&&eo(oi(),Xi(),n,t,i,n[Bt],e,!1),S}function Mv(t,i,e,n,r){const a=r?"class":"style";Dv(t,e,i.inputs[a],a,n)}function _(t,i,e,n){const r=ve(),o=oi(),a=Ui+t,s=r[Bt],c=o.firstCreatePass?function a7(t,i,e,n,r,o){const a=i.consts,c=sd(i,t,2,n,As(a,r));return yv(i,e,c,As(a,o)),null!==c.attrs&&up(c,c.attrs,!1),null!==c.mergedAttrs&&up(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]=zb(s,i,function pB(){return Dt.lFrame.currentNamespace}()),d=Fm(c);return da(c,!0),tD(s,l,c),32!=(32&c.flags)&&Qm(o,r,l,c),0===function tB(){return Dt.lFrame.elementDepthCount}()&&nr(l,r),function iB(){Dt.lFrame.elementDepthCount++}(),d&&(bv(o,r,c),_v(o,c,r)),null!==n&&vv(r,c),_}function v(){let t=qn();hb()?fb():(t=t.parent,da(t,!1));const i=t;!function nB(){Dt.lFrame.elementDepthCount--}();const e=oi();return e.firstCreatePass&&(Pm(e,t),lb(t)&&e.queries.elementEnd(t)),null!=i.classesWithoutHost&&function vB(t){return 0!=(8&t.flags)}(i)&&Mv(e,i,ve(),i.classesWithoutHost,!0),null!=i.stylesWithoutHost&&function xB(t){return 0!=(16&t.flags)}(i)&&Mv(e,i,ve(),i.stylesWithoutHost,!1),v}function ge(t,i,e,n){return _(t,i,e,n),v(),ge}function di(t,i,e){const n=ve(),r=oi(),o=t+Ui,a=r.firstCreatePass?function s7(t,i,e,n,r){const o=i.consts,a=As(o,n),s=sd(i,t,8,"ng-container",a);return null!==a&&up(s,a,!0),yv(i,e,s,As(o,r)),null!==i.queries&&i.queries.elementStart(i,s),s}(o,r,n,i,e):r.data[o];da(a,!0);const s=n[o]=n[Bt].createComment("");return Qm(r,n,s,a),nr(s,n),Fm(a)&&(bv(r,n,a),_v(r,a,n)),null!=e&&vv(n,a),di}function ui(){let t=qn();const i=oi();return hb()?fb():(t=t.parent,da(t,!1)),i.firstCreatePass&&(Pm(i,t),lb(t)&&i.queries.elementEnd(t)),ui}function to(t,i,e){return di(t,i,e),ui(),to}function Ne(){return ve()}function ih(t){return!!t&&"function"==typeof t.then}function bE(t){return!!t&&"function"==typeof t.subscribe}const Av=bE;function z(t,i,e,n){const r=ve(),o=oi(),a=qn();return vE(o,r,r[Bt],a,t,i,n),z}function pp(t,i){const e=qn(),n=ve(),r=oi();return vE(r,n,tE(pb(r.data),e,n),e,t,i),pp}function vE(t,i,e,n,r,o,a){const s=Fm(n),l=t.firstCreatePass&&eE(t),d=i[on],u=JD(i);let h=!0;if(3&n.type||a){const g=Kr(n,i),p=a?a(g):g,b=u.length,C=a?M=>a(Gn(M[n.index])):n.index;let y=null;if(!a&&s&&(y=function c7(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!==y)(y.__ngLastListenerFn__||y).__ngNextListenerFn__=o,y.__ngLastListenerFn__=o,h=!1;else{o=yE(n,i,d,o,!1);const M=e.listen(p,r,o);u.push(o,M),l&&l.push(r,C,b,b+1)}}else o=yE(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?Pr(t.index,i):i);let c=xE(i,e,n,a),l=o.__ngNextListenerFn__;for(;l;)c=xE(i,e,l,a)&&c,l=l.__ngNextListenerFn__;return r&&!1===c&&(a.preventDefault(),a.returnValue=!1),c}}function V(t=1){return function uB(t){return(Dt.lFrame.contextLView=function hB(t,i){for(;t>0;)i=i[Ul],t--;return i}(t,Dt.lFrame.contextLView))[on]}(t)}function l7(t,i){let e=null;const n=function L6(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 Iv(t){return 2|t}function Rc(t){return(131068&t)>>2}function Fv(t,i){return-131069&t|i<<2}function Rv(t){return 1|t}function AE(t,i,e,n,r){const o=t[e+1],a=null===i;let s=n?Fs(o):Rc(o),c=!1;for(;0!==s&&(!1===c||a);){const d=t[s+1];p7(t[s],i)&&(c=!0,t[s+1]=n?Rv(d):Iv(d)),s=n?Fs(d):Rc(d)}c&&(t[e+1]=n?Iv(o):Rv(o))}function p7(t,i){return null===t||null==i||(Array.isArray(t)?t[1]:t)===i||!(!Array.isArray(t)||"string"!=typeof i)&&Jl(t,i)>=0}const Fn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function IE(t){return t.substring(Fn.key,Fn.keyEnd)}function FE(t,i){const e=Fn.textEnd;return e===i?-1:(i=Fn.keyEnd=function v7(t,i,e){for(;i32;)i++;return i}(t,Fn.key=i,e),bd(t,i,e))}function bd(t,i,e){for(;i=0;e=FE(i,e))Zr(t,IE(i),!0)}function jo(t,i,e,n){const r=ve(),o=oi(),a=Ga(2);o.firstUpdatePass&&VE(o,t,a,n),i!==Et&&rr(r,a,i)&&UE(o,o.data[yr()],r,r[Bt],t,r[a+1]=function A7(t,i){return null==t||""===t||("string"==typeof i?t+=i:"object"==typeof t&&(t=Li(Jr(t)))),t}(i,e),n,a)}function Wo(t,i,e,n){const r=oi(),o=Ga(2);r.firstUpdatePass&&VE(r,null,o,n);const a=ve();if(e!==Et&&rr(a,o,e)){const s=r.data[yr()];if($E(s,n)&&!BE(r,o)){let c=n?s.classesWithoutHost:s.stylesWithoutHost;null!==c&&(e=Z_(c,e||"")),Mv(r,s,a,e,n)}else!function M7(t,i,e,n,r,o,a,s){r===Et&&(r=gi);let c=0,l=0,d=0=t.expandoStartIndex}function VE(t,i,e,n){const r=t.data;if(null===r[e+1]){const o=r[yr()],a=BE(t,e);$E(o,n)&&null===i&&!a&&(i=!1),i=function C7(t,i,e,n){const r=pb(t);let o=n?i.residualClasses:i.residualStyles;if(null===r)0===(n?i.classBindings:i.styleBindings)&&(e=nh(e=Ov(null,t,i,e,n),i.attrs,n),o=null);else{const a=i.directiveStylingLast;if(-1===a||t[a]!==r)if(e=Ov(r,t,i,e,n),null===o){let c=function k7(t,i,e){const n=e?i.classBindings:i.styleBindings;if(0!==Rc(n))return t[Fs(n)]}(t,i,n);void 0!==c&&Array.isArray(c)&&(c=Ov(null,t,i,c[1],n),c=nh(c,i.attrs,n),function S7(t,i,e,n){t[Fs(e?i.classBindings:i.styleBindings)]=n}(t,i,n,c))}else o=function D7(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=Fs(t[s+1]);t[n+1]=_p(h,s),0!==h&&(t[h+1]=Fv(t[h+1],n)),t[s+1]=function u7(t,i){return 131071&t|i<<17}(t[s+1],n)}else t[n+1]=_p(s,0),0!==s&&(t[s+1]=Fv(t[s+1],n)),s=n;else t[n+1]=_p(c,0),0===s?s=n:t[c+1]=Fv(t[c+1],n),c=n;l&&(t[n+1]=Iv(t[n+1])),AE(t,d,n,!0),AE(t,d,n,!1),function m7(t,i,e,n,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof i&&Jl(o,i)>=0&&(e[n+1]=Rv(e[n+1]))}(i,d,t,n,o),a=_p(s,c),o?i.classBindings=a:i.styleBindings=a}(r,o,i,e,a,n)}}function Ov(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===Et&&(h=u?gi:void 0);let f=u?Mb(h,n):d===n?h:void 0;if(l&&!bp(f)&&(f=Mb(c,n)),bp(f)&&(s=f,a))return s;const m=t[r+1];r=a?Fs(m):Rc(m)}if(null!==i){let c=o?i.residualClasses:i.residualStyles;null!=c&&(s=Mb(c,n))}return s}function bp(t){return void 0!==t}function $E(t,i){return 0!=(t.flags&(i?8:16))}function k(t,i=""){const e=ve(),n=oi(),r=t+Ui,o=n.firstCreatePass?sd(n,r,1,i,null):n.data[r],a=e[r]=function Ub(t,i){return t.createText(i)}(e[Bt],i);Qm(n,e,a,o),da(o,!1)}function Ge(t){return it("",t,""),Ge}function it(t,i,e){const n=ve(),r=ld(n,t,i,e);return r!==Et&&Za(n,yr(),r),it}function vd(t,i,e,n,r){const o=ve(),a=function dd(t,i,e,n,r,o){const s=Fc(t,Wa(),e,r);return Ga(2),s?i+St(e)+n+St(r)+o:Et}(o,t,i,e,n,r);return a!==Et&&Za(o,yr(),a),vd}function Pv(t,i,e,n,r,o,a){const s=ve(),c=ud(s,t,i,e,n,r,o,a);return c!==Et&&Za(s,yr(),c),Pv}function xa(t,i,e){const n=ve();return rr(n,Wl(),i)&&eo(oi(),Xi(),n,t,i,n[Bt],e,!0),xa}function vp(t,i,e){const n=ve();if(rr(n,Wl(),i)){const o=oi(),a=Xi();eo(o,a,n,t,i,tE(pb(o.data),a,n),e,!0)}return vp}const Oc=void 0;var Q7=["en",[["a","p"],["AM","PM"],Oc],[["AM","PM"],Oc,Oc],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Oc,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Oc,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Oc,"{1} 'at' {0}",Oc],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function X7(t){const e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let xd={};function wr(t){const i=function Y7(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=sT(i);if(e)return e;const n=i.split("-")[0];if(e=sT(n),e)return e;if("en"===n)return Q7;throw new ue(701,!1)}function sT(t){return t in xd||(xd[t]=Hi.ng&&Hi.ng.common&&Hi.ng.common.locales&&Hi.ng.common.locales[t]),xd[t]}var je=(()=>((je=je||{})[je.LocaleId=0]="LocaleId",je[je.DayPeriodsFormat=1]="DayPeriodsFormat",je[je.DayPeriodsStandalone=2]="DayPeriodsStandalone",je[je.DaysFormat=3]="DaysFormat",je[je.DaysStandalone=4]="DaysStandalone",je[je.MonthsFormat=5]="MonthsFormat",je[je.MonthsStandalone=6]="MonthsStandalone",je[je.Eras=7]="Eras",je[je.FirstDayOfWeek=8]="FirstDayOfWeek",je[je.WeekendRange=9]="WeekendRange",je[je.DateFormat=10]="DateFormat",je[je.TimeFormat=11]="TimeFormat",je[je.DateTimeFormat=12]="DateTimeFormat",je[je.NumberSymbols=13]="NumberSymbols",je[je.NumberFormats=14]="NumberFormats",je[je.CurrencyCode=15]="CurrencyCode",je[je.CurrencySymbol=16]="CurrencySymbol",je[je.CurrencyName=17]="CurrencyName",je[je.Currencies=18]="Currencies",je[je.Directionality=19]="Directionality",je[je.PluralCase=20]="PluralCase",je[je.ExtraData=21]="ExtraData",je))();const yd="en-US";let cT=yd;function Bv(t,i,e,n,r){if(t=_t(t),Array.isArray(t))for(let o=0;o>20;if(Ac(t)||!t.multi){const f=new Vu(c,r,x),m=Hv(s,i,r?d:d+h,u);-1===m?(Sb(Um(l,a),o,s),Vv(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=Hv(s,i,d+h,u),m=Hv(s,i,d,d+h),p=m>=0&&e[m];if(r&&!p||!r&&!(f>=0&&e[f])){Sb(Um(l,a),o,s);const b=function qH(t,i,e,n,r){const o=new Vu(t,e,x);return o.multi=[],o.index=i,o.componentProviders=0,RT(o,r,n&&!e),o}(r?GH:WH,e.length,r,n,c);!r&&p&&(e[m].providerFactory=b),Vv(o,t,i.length,0),i.push(s),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),e.push(b),a.push(b)}else Vv(o,t,f>-1?f:m,RT(e[r?m:f],c,!r&&n));!r&&n&&p&&e[m].componentProviders++}}}function Vv(t,i,e,n){const r=Ac(i),o=function s6(t){return!!t.useClass}(i);if(r||o){const c=(o?_t(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 RT(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function Hv(t,i,e,n){for(let r=e;r{e.providersResolver=(n,r)=>function jH(t,i,e){const n=oi();if(n.firstCreatePass){const r=zo(t);Bv(e,n.data,n.blueprint,r,!0),Bv(i,n.data,n.blueprint,r,!1)}}(n,r?r(t):t,i)}}class wd{}class OT{}class PT extends wd{constructor(i,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new nE(this);const n=Qr(i);this._bootstrapComponents=Ka(n.bootstrap),this._r3Injector=ND(i,e,[{provide:wd,useValue:this},{provide:Is,useValue:this.componentFactoryResolver}],Li(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 zv extends OT{constructor(i){super(),this.moduleType=i}create(i){return new PT(this.moduleType,i)}}class QH extends wd{constructor(i,e,n){super(),this.componentFactoryResolver=new nE(this),this.instance=null;const r=new wD([...i,{provide:wd,useValue:this},{provide:Is,useValue:this.componentFactoryResolver}],e||rp(),n,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}}function kp(t,i,e=null){return new QH(t,i,e).injector}let YH=(()=>{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=bD(0,e.type),r=n.length>0?kp([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=we({token:t,providedIn:"environment",factory:()=>new t(X(ma))}),t})();function $v(t){t.getStandaloneInjector=i=>i.get(YH).getOrCreateStandaloneInjector(t)}function Go(t,i,e){const n=xr()+t,r=ve();return r[n]===Et?_a(r,n,e?i.call(e):i()):function th(t,i){return t[i]}(r,n)}function Ja(t,i,e,n){return zT(ve(),xr(),t,i,e,n)}function Wv(t,i,e,n,r){return $T(ve(),xr(),t,i,e,n,r)}function lh(t,i){const e=t[i];return e===Et?void 0:e}function zT(t,i,e,n,r,o){const a=i+e;return rr(t,a,r)?_a(t,a+1,o?n.call(o,r):n(r)):lh(t,a+1)}function $T(t,i,e,n,r,o,a){const s=i+e;return Fc(t,s,r,o)?_a(t,s+2,a?n.call(a,r,o):n(r,o)):lh(t,s+2)}function Cd(t,i){const e=oi();let n;const r=t+Ui;e.firstCreatePass?(n=function h9(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=wc(n.type)),a=po(x);try{const s=Hm(!1),c=o();return Hm(s),function o7(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}(e,ve(),r,c),c}finally{po(a)}}function Sp(t,i,e){const n=t+Ui,r=ve(),o=jl(r,n);return dh(r,n)?zT(r,xr(),i,o.transform,e,o):o.transform(e)}function Gv(t,i,e,n){const r=t+Ui,o=ve(),a=jl(o,r);return dh(o,r)?$T(o,xr(),i,a.transform,e,n,a):a.transform(e,n)}function dh(t,i){return t[Qe].data[i].pure}function qv(t){return i=>{setTimeout(t,void 0,i)}}const Ce=class g9 extends ke{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=qv(o),r&&(r=qv(r)),a&&(a=qv(a)));const s=super.subscribe({next:r,error:o,complete:a});return i instanceof kt&&i.add(s),s}};function _9(){return this._results[Symbol.iterator]()}class Rs{get changes(){return this._changes||(this._changes=new Ce)}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=Rs.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=_9)}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 bo(t){return t.flat(Number.POSITIVE_INFINITY)}(i);(this._changesDetected=!function AB(t,i,e){if(t.length!==i.length)return!1;for(let n=0;n{class t{}return t.__NG_ELEMENT_ID__=x9,t})();const b9=yi,v9=class extends b9{constructor(i,e,n){super(),this._declarationLView=i,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(i,e){const n=this._declarationTContainer.tView,r=ap(this._declarationLView,n,i,16,null,n.declTNode,null,null,null,null,e||null);r[Pu]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[la];return null!==a&&(r[la]=a.createEmbeddedView(n)),gv(n,r,i),new Ju(r)}};function x9(){return Dp(qn(),ve())}function Dp(t,i){return 4&t.type?new v9(i,t,rd(t,i)):null}let Oi=(()=>{class t{}return t.__NG_ELEMENT_ID__=y9,t})();function y9(){return QT(qn(),ve())}const w9=Oi,qT=class extends w9{constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return rd(this._hostTNode,this._hostLView)}get injector(){return new Xl(this._hostTNode,this._hostLView)}get parentInjector(){const i=kb(this._hostTNode,this._hostLView);if(sS(i)){const e=Vm(i,this._hostLView),n=Bm(i);return new Xl(e[Qe].data[n+8],e)}return new Xl(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){const e=XT(this._lContainer);return null!==e&&e[i]||null}get length(){return this._lContainer.length-vr}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 zu(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 eh(xi(i)),l=n||this.parentInjector;if(!o&&null==c.ngModule){const h=(a?l:this.parentInjector).get(ma,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[Qe];if(function eB(t){return Uo(t[Ji])}(n)){const d=this.indexOf(i);if(-1!==d)this.detach(d);else{const u=n[Ji],h=new qT(u,u[tr],u[Ji]);h.detach(h.indexOf(i))}}const o=this._adjustIndex(e),a=this._lContainer;!function v5(t,i,e,n){const r=vr+n,o=e.length;n>0&&(e[r-1][Ho]=i),n0)n.push(a[s/2]);else{const l=o[s+1],d=i[-c];for(let u=vr;u{class t{constructor(e){this.appInits=e,this.resolve=Tp,this.reject=Tp,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)(X(Mp,8))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Dd=new oe("AppId",{providedIn:"root",factory:function v2(){return`${ox()}${ox()}${ox()}`}});function ox(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const x2=new oe("Platform Initializer"),Ip=new oe("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Ii=new oe("AnimationModuleType");let X9=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const ya=new oe("LocaleId",{providedIn:"root",factory:()=>ft(ya,bt.Optional|bt.SkipSelf)||function Q9(){return typeof $localize<"u"&&$localize.locale||yd}()});class K9{constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}}let y2=(()=>{class t{compileModuleSync(e){return new zv(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const n=this.compileModuleSync(e),o=Ka(Qr(e).declarations).reduce((a,s)=>{const c=xi(s);return c&&a.push(new eh(c)),a},[]);return new K9(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=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const eU=(()=>Promise.resolve(0))();function ax(t){typeof Zone>"u"?eU.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class ze{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ce(!1),this.onMicrotaskEmpty=new Ce(!1),this.onStable=new Ce(!1),this.onError=new Ce(!1),typeof Zone>"u")throw new 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 tU(){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 rU(t){const i=()=>{!function nU(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Hi,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,cx(t),t.isCheckStableRunning=!0,sx(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),cx(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,r,o,a,s)=>{try{return k2(t),e.invokeTask(r,o,a,s)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&i(),S2(t)}},onInvoke:(e,n,r,o,a,s,c)=>{try{return k2(t),e.invoke(r,o,a,s,c)}finally{t.shouldCoalesceRunChangeDetection&&i(),S2(t)}},onHasTask:(e,n,r,o)=>{e.hasTask(r,o),n===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,cx(t),sx(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(!ze.isInAngularZone())throw new ue(909,!1)}static assertNotInAngularZone(){if(ze.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,iU,Tp,Tp);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 iU={};function sx(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 cx(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function k2(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function S2(t){t._nesting--,sx(t)}class oU{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ce,this.onMicrotaskEmpty=new Ce,this.onStable=new Ce,this.onError=new Ce}run(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 D2=new oe(""),Fp=new oe("");let ux,lx=(()=>{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,ux||(function aU(t){ux=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:()=>{ze.assertNotInAngularZone(),ax(()=>{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())ax(()=>{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)(X(ze),X(dx),X(Fp))},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})(),dx=(()=>{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 ux?.findTestabilityInTree(this,e,n)??null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const es=!1;let Os=null;const E2=new oe("AllowMultipleToken"),hx=new oe("PlatformDestroyListeners"),T2=new oe("appBootstrapListener");class M2{constructor(i,e){this.name=i,this.token=e}}function I2(t,i,e=[]){const n=`Platform: ${i}`,r=new oe(n);return(o=[])=>{let a=fx();if(!a||a.injector.get(E2,!1)){const s=[...e,...o,{provide:r,useValue:!0}];t?t(s):function lU(t){if(Os&&!Os.get(E2,!1))throw new ue(400,!1);Os=t;const i=t.get(R2);(function A2(t){const i=t.get(x2,null);i&&i.forEach(e=>e())})(t)}(function F2(t=[],i){return an.create({name:i,providers:[{provide:rv,useValue:"platform"},{provide:hx,useValue:new Set([()=>Os=null])},...t]})}(s,n))}return function uU(t){const i=fx();if(!i)throw new ue(401,!1);return i}()}}function fx(){return Os?.get(R2)??null}let R2=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,n){const r=function P2(t,i){let e;return e="noop"===t?new oU:("zone.js"===t?void 0:t)||new ze(i),e}(n?.ngZone,function O2(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}(n)),o=[{provide:ze,useValue:r}];return r.run(()=>{const a=an.create({providers:o,parent:this.injector,name:e.moduleType.name}),s=e.create(a),c=s.injector.get(Ya,null);if(!c)throw new ue(402,!1);return r.runOutsideAngular(()=>{const l=r.onError.subscribe({next:d=>{c.handleError(d)}});s.onDestroy(()=>{Rp(this._modules,s),l.unsubscribe()})}),function L2(t,i,e){try{const n=e();return ih(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(Ap);return l.runInitializers(),l.donePromise.then(()=>(function lT(t){mo(t,"Expected localeId to be defined"),"string"==typeof t&&(cT=t.toLowerCase().replace(/_/g,"-"))}(s.injector.get(ya,yd)||yd),this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,n=[]){const r=N2({},n);return function sU(t,i,e){const n=new zv(e);return Promise.resolve(n)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const n=e.injector.get(Ed);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(hx,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)(X(an))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function N2(t,i){return Array.isArray(i)?i.reduce(N2,t):{...t,...i}}let Ed=(()=>{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 ai(s=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{s.next(this._stable),s.complete()})}),a=new ai(s=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{ze.assertNotInAngularZone(),ax(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,s.next(!0))})})});const l=this._zone.onUnstable.subscribe(()=>{ze.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{s.next(!1)}))});return()=>{c.unsubscribe(),l.unsubscribe()}});this.isStable=Pi(o,a.pipe(wk()))}bootstrap(e,n){const r=e instanceof kD;if(!this._injector.get(Ap).done){!r&&function Vl(t){const i=xi(t)||er(t)||Or(t);return null!==i&&i.standalone}(e);throw new ue(405,es)}let a;a=r?e:this._injector.get(Is).resolveComponentFactory(e),this.componentTypes.push(a.componentType);const s=function cU(t){return t.isBoundToModule}(a)?void 0:this._injector.get(wd),l=a.create(an.NULL,[],n||a.selector,s),d=l.location.nativeElement,u=l.injector.get(D2,null);return u?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),Rp(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;Rp(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const n=this._injector.get(T2,[]);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),()=>Rp(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)(X(ze),X(ma),X(Ya))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Rp(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}let Ut=(()=>{class t{}return t.__NG_ELEMENT_ID__=fU,t})();function fU(t){return function mU(t,i,e){if(Nu(t)&&!e){const n=Pr(t.index,i);return new Ju(n,n)}return 47&t.type?new Ju(i[ir],i):null}(qn(),ve(),16==(16&t))}class z2{constructor(){}supports(i){return fp(i)}create(i){return new xU(i)}}const vU=(t,i)=>i;class xU{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||vU}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 yU(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 $2),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 $2),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 yU{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 wU{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 $2{constructor(){this.map=new Map}put(i){const e=i.trackById;let n=this.map.get(e);n||(n=new wU,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 j2(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 kU(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 kU{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 G2(){return new ts([new z2])}let ts=(()=>{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||G2()),deps:[[t,new Dc,new ha]]}}find(e){const n=this.factories.find(r=>r.supports(e));if(null!=n)return n;throw new ue(901,!1)}}return t.\u0275prov=we({token:t,providedIn:"root",factory:G2}),t})();function q2(){return new hh([new W2])}let hh=(()=>{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||q2()),deps:[[t,new Dc,new ha]]}}find(e){const n=this.factories.find(r=>r.supports(e));if(n)return n;throw new ue(901,!1)}}return t.\u0275prov=we({token:t,providedIn:"root",factory:q2}),t})();const EU=I2(null,"core",[]);let TU=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(X(Ed))},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({}),t})();function Td(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}let bx=null;function is(){return bx}class IU{}const ot=new oe("DocumentToken");let vx=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=we({token:t,factory:function(){return function FU(){return X(X2)}()},providedIn:"platform"}),t})();const RU=new oe("Location Initialized");let X2=(()=>{class t extends vx{constructor(e){super(),this._doc=e,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return is().getBaseHref(this._doc)}onPopState(e){const n=is().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){const n=is().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){Q2()?this._history.pushState(e,n,r):this._location.hash=r}replaceState(e,n,r){Q2()?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)(X(ot))},t.\u0275prov=we({token:t,factory:function(){return function OU(){return new X2(X(ot))}()},providedIn:"platform"}),t})();function Q2(){return!!window.history.pushState}function xx(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 Y2(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 ns(t){return t&&"?"!==t[0]?"?"+t:t}let Nc=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=we({token:t,factory:function(){return ft(Z2)},providedIn:"root"}),t})();const K2=new oe("appBaseHref");let Z2=(()=>{class t extends Nc{constructor(e,n){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??ft(ot).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 xx(this._baseHref,e)}path(e=!1){const n=this._platformLocation.pathname+ns(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${n}${r}`:n}pushState(e,n,r,o){const a=this.prepareExternalUrl(r+ns(o));this._platformLocation.pushState(e,n,a)}replaceState(e,n,r,o){const a=this.prepareExternalUrl(r+ns(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)(X(vx),X(K2,8))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),PU=(()=>{class t extends Nc{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=xx(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,r,o){let a=this.prepareExternalUrl(r+ns(o));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(e,n,a)}replaceState(e,n,r,o){let a=this.prepareExternalUrl(r+ns(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)(X(vx),X(K2,8))},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})(),fh=(()=>{class t{constructor(e){this._subject=new Ce,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const n=this._locationStrategy.getBaseHref();this._basePath=function BU(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(Y2(J2(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+ns(n))}normalize(e){return t.stripTrailingSlash(function NU(t,i){if(!t||!i.startsWith(t))return i;const e=i.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:i}(this._basePath,J2(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+ns(n)),r)}replaceState(e,n="",r=null){this._locationStrategy.replaceState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ns(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=ns,t.joinWithSlash=xx,t.stripTrailingSlash=Y2,t.\u0275fac=function(e){return new(e||t)(X(Nc))},t.\u0275prov=we({token:t,factory:function(){return function LU(){return new fh(X(Nc))}()},providedIn:"root"}),t})();function J2(t){return t.replace(/\/index.html$/,"")}var sn=(()=>((sn=sn||{})[sn.Format=0]="Format",sn[sn.Standalone=1]="Standalone",sn))(),Yt=(()=>((Yt=Yt||{})[Yt.Narrow=0]="Narrow",Yt[Yt.Abbreviated=1]="Abbreviated",Yt[Yt.Wide=2]="Wide",Yt[Yt.Short=3]="Short",Yt))(),Qi=(()=>((Qi=Qi||{})[Qi.Short=0]="Short",Qi[Qi.Medium=1]="Medium",Qi[Qi.Long=2]="Long",Qi[Qi.Full=3]="Full",Qi))(),mt=(()=>((mt=mt||{})[mt.Decimal=0]="Decimal",mt[mt.Group=1]="Group",mt[mt.List=2]="List",mt[mt.PercentSign=3]="PercentSign",mt[mt.PlusSign=4]="PlusSign",mt[mt.MinusSign=5]="MinusSign",mt[mt.Exponential=6]="Exponential",mt[mt.SuperscriptingExponent=7]="SuperscriptingExponent",mt[mt.PerMille=8]="PerMille",mt[mt.Infinity=9]="Infinity",mt[mt.NaN=10]="NaN",mt[mt.TimeSeparator=11]="TimeSeparator",mt[mt.CurrencyDecimal=12]="CurrencyDecimal",mt[mt.CurrencyGroup=13]="CurrencyGroup",mt))();function Lp(t,i){return yo(wr(t)[je.DateFormat],i)}function Np(t,i){return yo(wr(t)[je.TimeFormat],i)}function Bp(t,i){return yo(wr(t)[je.DateTimeFormat],i)}function xo(t,i){const e=wr(t),n=e[je.NumberSymbols][i];if(typeof n>"u"){if(i===mt.CurrencyDecimal)return e[je.NumberSymbols][mt.Decimal];if(i===mt.CurrencyGroup)return e[je.NumberSymbols][mt.Group]}return n}function tM(t){if(!t[je.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[je.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function yo(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 wx(t){const[i,e]=t.split(":");return{hours:+i,minutes:+e}}const KU=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,mh={},ZU=/((?:[^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 Rn=(()=>((Rn=Rn||{})[Rn.Short=0]="Short",Rn[Rn.ShortGMT=1]="ShortGMT",Rn[Rn.Long=2]="Long",Rn[Rn.Extended=3]="Extended",Rn))(),vt=(()=>((vt=vt||{})[vt.FullYear=0]="FullYear",vt[vt.Month=1]="Month",vt[vt.Date=2]="Date",vt[vt.Hours=3]="Hours",vt[vt.Minutes=4]="Minutes",vt[vt.Seconds=5]="Seconds",vt[vt.FractionalSeconds=6]="FractionalSeconds",vt[vt.Day=7]="Day",vt))(),Ot=(()=>((Ot=Ot||{})[Ot.DayPeriods=0]="DayPeriods",Ot[Ot.Days=1]="Days",Ot[Ot.Months=2]="Months",Ot[Ot.Eras=3]="Eras",Ot))();function JU(t,i,e,n){let r=function cz(t){if(rM(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 Vp(r,o-1,a)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(KU))return function lz(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(!rM(i))throw new Error(`Unable to convert "${t}" into a date`);return i}(t);i=rs(e,i)||i;let s,a=[];for(;i;){if(s=ZU.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=nM(n,c),r=function sz(t,i,e){const n=e?-1:1,r=t.getTimezoneOffset();return function az(t,i){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+i),t}(t,n*(nM(i,r)-r))}(r,n,!0));let l="";return a.forEach(d=>{const u=function oz(t){if(kx[t])return kx[t];let i;switch(t){case"G":case"GG":case"GGG":i=Ni(Ot.Eras,Yt.Abbreviated);break;case"GGGG":i=Ni(Ot.Eras,Yt.Wide);break;case"GGGGG":i=Ni(Ot.Eras,Yt.Narrow);break;case"y":i=bn(vt.FullYear,1,0,!1,!0);break;case"yy":i=bn(vt.FullYear,2,0,!0,!0);break;case"yyy":i=bn(vt.FullYear,3,0,!1,!0);break;case"yyyy":i=bn(vt.FullYear,4,0,!1,!0);break;case"Y":i=$p(1);break;case"YY":i=$p(2,!0);break;case"YYY":i=$p(3);break;case"YYYY":i=$p(4);break;case"M":case"L":i=bn(vt.Month,1,1);break;case"MM":case"LL":i=bn(vt.Month,2,1);break;case"MMM":i=Ni(Ot.Months,Yt.Abbreviated);break;case"MMMM":i=Ni(Ot.Months,Yt.Wide);break;case"MMMMM":i=Ni(Ot.Months,Yt.Narrow);break;case"LLL":i=Ni(Ot.Months,Yt.Abbreviated,sn.Standalone);break;case"LLLL":i=Ni(Ot.Months,Yt.Wide,sn.Standalone);break;case"LLLLL":i=Ni(Ot.Months,Yt.Narrow,sn.Standalone);break;case"w":i=Cx(1);break;case"ww":i=Cx(2);break;case"W":i=Cx(1,!0);break;case"d":i=bn(vt.Date,1);break;case"dd":i=bn(vt.Date,2);break;case"c":case"cc":i=bn(vt.Day,1);break;case"ccc":i=Ni(Ot.Days,Yt.Abbreviated,sn.Standalone);break;case"cccc":i=Ni(Ot.Days,Yt.Wide,sn.Standalone);break;case"ccccc":i=Ni(Ot.Days,Yt.Narrow,sn.Standalone);break;case"cccccc":i=Ni(Ot.Days,Yt.Short,sn.Standalone);break;case"E":case"EE":case"EEE":i=Ni(Ot.Days,Yt.Abbreviated);break;case"EEEE":i=Ni(Ot.Days,Yt.Wide);break;case"EEEEE":i=Ni(Ot.Days,Yt.Narrow);break;case"EEEEEE":i=Ni(Ot.Days,Yt.Short);break;case"a":case"aa":case"aaa":i=Ni(Ot.DayPeriods,Yt.Abbreviated);break;case"aaaa":i=Ni(Ot.DayPeriods,Yt.Wide);break;case"aaaaa":i=Ni(Ot.DayPeriods,Yt.Narrow);break;case"b":case"bb":case"bbb":i=Ni(Ot.DayPeriods,Yt.Abbreviated,sn.Standalone,!0);break;case"bbbb":i=Ni(Ot.DayPeriods,Yt.Wide,sn.Standalone,!0);break;case"bbbbb":i=Ni(Ot.DayPeriods,Yt.Narrow,sn.Standalone,!0);break;case"B":case"BB":case"BBB":i=Ni(Ot.DayPeriods,Yt.Abbreviated,sn.Format,!0);break;case"BBBB":i=Ni(Ot.DayPeriods,Yt.Wide,sn.Format,!0);break;case"BBBBB":i=Ni(Ot.DayPeriods,Yt.Narrow,sn.Format,!0);break;case"h":i=bn(vt.Hours,1,-12);break;case"hh":i=bn(vt.Hours,2,-12);break;case"H":i=bn(vt.Hours,1);break;case"HH":i=bn(vt.Hours,2);break;case"m":i=bn(vt.Minutes,1);break;case"mm":i=bn(vt.Minutes,2);break;case"s":i=bn(vt.Seconds,1);break;case"ss":i=bn(vt.Seconds,2);break;case"S":i=bn(vt.FractionalSeconds,1);break;case"SS":i=bn(vt.FractionalSeconds,2);break;case"SSS":i=bn(vt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":i=Up(Rn.Short);break;case"ZZZZZ":i=Up(Rn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":i=Up(Rn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":i=Up(Rn.Long);break;default:return null}return kx[t]=i,i}(d);l+=u?u(r,e,c):"''"===d?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Vp(t,i,e){const n=new Date(0);return n.setFullYear(t,i,e),n.setHours(0,0,0),n}function rs(t,i){const e=function VU(t){return wr(t)[je.LocaleId]}(t);if(mh[e]=mh[e]||{},mh[e][i])return mh[e][i];let n="";switch(i){case"shortDate":n=Lp(t,Qi.Short);break;case"mediumDate":n=Lp(t,Qi.Medium);break;case"longDate":n=Lp(t,Qi.Long);break;case"fullDate":n=Lp(t,Qi.Full);break;case"shortTime":n=Np(t,Qi.Short);break;case"mediumTime":n=Np(t,Qi.Medium);break;case"longTime":n=Np(t,Qi.Long);break;case"fullTime":n=Np(t,Qi.Full);break;case"short":const r=rs(t,"shortTime"),o=rs(t,"shortDate");n=Hp(Bp(t,Qi.Short),[r,o]);break;case"medium":const a=rs(t,"mediumTime"),s=rs(t,"mediumDate");n=Hp(Bp(t,Qi.Medium),[a,s]);break;case"long":const c=rs(t,"longTime"),l=rs(t,"longDate");n=Hp(Bp(t,Qi.Long),[c,l]);break;case"full":const d=rs(t,"fullTime"),u=rs(t,"fullDate");n=Hp(Bp(t,Qi.Full),[d,u])}return n&&(mh[e][i]=n),n}function Hp(t,i){return i&&(t=t.replace(/\{([^}]+)}/g,function(e,n){return null!=i&&n in i?i[n]:e})),t}function Xo(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===vt.Hours)0===s&&-12===e&&(s=12);else if(t===vt.FractionalSeconds)return function ez(t,i){return Xo(t,3).substring(0,i)}(s,i);const c=xo(a,mt.MinusSign);return Xo(s,i,c,n,r)}}function Ni(t,i,e=sn.Format,n=!1){return function(r,o){return function iz(t,i,e,n,r,o){switch(e){case Ot.Months:return function zU(t,i,e){const n=wr(t),o=yo([n[je.MonthsFormat],n[je.MonthsStandalone]],i);return yo(o,e)}(i,r,n)[t.getMonth()];case Ot.Days:return function UU(t,i,e){const n=wr(t),o=yo([n[je.DaysFormat],n[je.DaysStandalone]],i);return yo(o,e)}(i,r,n)[t.getDay()];case Ot.DayPeriods:const a=t.getHours(),s=t.getMinutes();if(o){const l=function GU(t){const i=wr(t);return tM(i),(i[je.ExtraData][2]||[]).map(n=>"string"==typeof n?wx(n):[wx(n[0]),wx(n[1])])}(i),d=function qU(t,i,e){const n=wr(t);tM(n);const o=yo([n[je.ExtraData][0],n[je.ExtraData][1]],i)||[];return yo(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 Rn.Short:return(r>=0?"+":"")+Xo(a,2,o)+Xo(Math.abs(r%60),2,o);case Rn.ShortGMT:return"GMT"+(r>=0?"+":"")+Xo(a,1,o);case Rn.Long:return"GMT"+(r>=0?"+":"")+Xo(a,2,o)+":"+Xo(Math.abs(r%60),2,o);case Rn.Extended:return 0===n?"Z":(r>=0?"+":"")+Xo(a,2,o)+":"+Xo(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}const nz=0,zp=4;function iM(t){return Vp(t.getFullYear(),t.getMonth(),t.getDate()+(zp-t.getDay()))}function Cx(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=iM(e),a=function rz(t){const i=Vp(t,nz,1).getDay();return Vp(t,0,1+(i<=zp?zp:zp+7)-i)}(o.getFullYear()),s=o.getTime()-a.getTime();r=1+Math.round(s/6048e5)}return Xo(r,t,xo(n,mt.MinusSign))}}function $p(t,i=!1){return function(e,n){return Xo(iM(e).getFullYear(),t,xo(n,mt.MinusSign),i)}}const kx={};function nM(t,i){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?i:e}function rM(t){return t instanceof Date&&!isNaN(t.valueOf())}function cM(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 Ax=/\s+/,lM=[];let os=(()=>{class t{constructor(e,n,r,o){this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=r,this._renderer=o,this.initialClasses=lM,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(Ax):lM}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(Ax):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(Ax).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)(x(ts),x(hh),x(Ie),x(Qa))},t.\u0275dir=Q({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),t})();class wz{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 kr=(()=>{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 wz(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),hM(s,r)}});for(let r=0,o=n.length;r{hM(n.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,n){return!0}}return t.\u0275fac=function(e){return new(e||t)(x(Oi),x(yi),x(ts))},t.\u0275dir=Q({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function hM(t,i){t.context.$implicit=i.item}let Yi=(()=>{class t{constructor(e,n){this._viewContainer=e,this._context=new kz,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){fM("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){fM("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)(x(Oi),x(yi))},t.\u0275dir=Q({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class kz{constructor(){this.$implicit=null,this.ngIf=null}}function fM(t,i){if(i&&!i.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Li(i)}'.`)}class Ix{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 gh=(()=>{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})(),Fx=(()=>{class t{constructor(e,n,r){this.ngSwitch=r,r._addCase(),this._view=new Ix(e,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(x(Oi),x(yi),x(gh,9))},t.\u0275dir=Q({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),t})(),mM=(()=>{class t{constructor(e,n,r){r._addDefault(new Ix(e,n))}}return t.\u0275fac=function(e){return new(e||t)(x(Oi),x(yi),x(gh,9))},t.\u0275dir=Q({type:t,selectors:[["","ngSwitchDefault",""]],standalone:!0}),t})(),Wp=(()=>{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)(x(Oi))},t.\u0275dir=Q({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Ai]}),t})();function Qo(t,i){return new ue(2100,!1)}class Ez{createSubscription(i,e){return i.subscribe({next:e,error:n=>{throw n}})}dispose(i){i.unsubscribe()}}class Tz{createSubscription(i,e){return i.then(e,n=>{throw n})}dispose(i){}}const Mz=new Tz,Az=new Ez;let Rx=(()=>{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(ih(e))return Mz;if(bE(e))return Az;throw Qo()}_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)(x(Ut,16))},t.\u0275pipe=Rr({name:"async",type:t,pure:!1,standalone:!0}),t})(),gM=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw Qo();return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Rr({name:"uppercase",type:t,pure:!0,standalone:!0}),t})();const Pz=new oe("DATE_PIPE_DEFAULT_TIMEZONE"),Lz=new oe("DATE_PIPE_DEFAULT_OPTIONS");let Ox=(()=>{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 JU(e,n??this.defaultOptions?.dateFormat??"mediumDate",o||this.locale,r??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(a){throw Qo()}}}return t.\u0275fac=function(e){return new(e||t)(x(ya,16),x(Pz,24),x(Lz,24))},t.\u0275pipe=Rr({name:"date",type:t,pure:!0,standalone:!0}),t})(),Xn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({}),t})();const bM="browser";let Yz=(()=>{class t{}return t.\u0275prov=we({token:t,providedIn:"root",factory:()=>new Kz(X(ot),window)}),t})();class Kz{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 Zz(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=vM(this.window.history)||vM(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 vM(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class xM{}class S$ extends IU{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Vx extends S${static makeCurrent(){!function AU(t){bx||(bx=t)}(new Vx)}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 D$(){return bh=bh||document.querySelector("base"),bh?bh.getAttribute("href"):null}();return null==e?null:function E$(t){Xp=Xp||document.createElement("a"),Xp.setAttribute("href",t);const i=Xp.pathname;return"/"===i.charAt(0)?i:`/${i}`}(e)}resetBaseElement(){bh=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return cM(document.cookie,i)}}let Xp,bh=null;const SM=new oe("TRANSITION_ID"),M$=[{provide:Mp,useFactory:function T$(t,i,e){return()=>{e.get(Ap).donePromise.then(()=>{const n=is(),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=we({token:t,factory:t.\u0275fac}),t})();const Qp=new oe("EventManagerPlugins");let Yp=(()=>{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=we({token:t,factory:t.\u0275fac}),t})(),vh=(()=>{class t extends EM{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)(X(ot))},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})();const Hx={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/"},Ux=/%COMP%/g,AM=new oe("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function IM(t,i){return i.flat(100).map(e=>e.replace(Ux,t))}function FM(t){return i=>{if("__ngUnwrap__"===i)return t;!1===t(i)&&(i.preventDefault(),i.returnValue=!1)}}let Kp=(()=>{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 zx(e)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;const r=this.getOrCreateRenderer(e,n);return r instanceof PM?r.applyToHost(e):r instanceof $x&&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 Vo.Emulated:o=new PM(a,s,n,this.appId,c);break;case Vo.ShadowDom:return new B$(a,s,e,n);default:o=new $x(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)(X(Yp),X(vh),X(Dd),X(AM))},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})();class zx{constructor(i){this.eventManager=i,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(i,e){return e?document.createElementNS(Hx[e]||e,i):document.createElement(i)}createComment(i){return document.createComment(i)}createText(i){return document.createTextNode(i)}appendChild(i,e){(OM(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(OM(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=Hx[r];o?i.setAttributeNS(o,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){const r=Hx[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&(Lr.DashCase|Lr.Important)?i.style.setProperty(e,n,r&Lr.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&Lr.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,FM(n)):this.eventManager.addEventListener(i,e,FM(n))}}function OM(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class B$ extends zx{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=IM(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 $x extends zx{constructor(i,e,n,r,o=n.id){super(i),this.sharedStylesHost=e,this.removeStylesOnCompDestory=r,this.rendererUsageCount=0,this.styles=IM(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 PM extends $x{constructor(i,e,n,r,o){const a=r+"-"+n.id;super(i,e,n,o,a),this.contentAttr=function P$(t){return"_ngcontent-%COMP%".replace(Ux,t)}(a),this.hostAttr=function L$(t){return"_nghost-%COMP%".replace(Ux,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 V$=(()=>{class t extends DM{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)(X(ot))},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})();const LM=["alt","control","meta","shift"],H$={"\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"},U$={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let z$=(()=>{class t extends DM{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(()=>is().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."),LM.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=H$[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"),LM.forEach(a=>{a!==r&&(0,U$[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)(X(ot))},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})();const G$=I2(EU,"browser",[{provide:Ip,useValue:bM},{provide:x2,useValue:function $$(){Vx.makeCurrent()},multi:!0},{provide:ot,useFactory:function W$(){return function F5(t){Yb=t}(document),document},deps:[]}]),VM=new oe(""),HM=[{provide:Fp,useClass:class A${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?is().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null)}},deps:[]},{provide:D2,useClass:lx,deps:[ze,dx,Fp]},{provide:lx,useClass:lx,deps:[ze,dx,Fp]}],UM=[{provide:rv,useValue:"root"},{provide:Ya,useFactory:function j$(){return new Ya},deps:[]},{provide:Qp,useClass:V$,multi:!0,deps:[ot,ze,Ip]},{provide:Qp,useClass:z$,multi:!0,deps:[ot]},{provide:Kp,useClass:Kp,deps:[Yp,vh,Dd,AM]},{provide:Ku,useExisting:Kp},{provide:EM,useExisting:vh},{provide:vh,useClass:vh,deps:[ot]},{provide:Yp,useClass:Yp,deps:[Qp,ze]},{provide:xM,useClass:I$,deps:[]},[]];let zM=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:Dd,useValue:e.appId},{provide:SM,useExisting:Dd},M$]}}}return t.\u0275fac=function(e){return new(e||t)(X(VM,12))},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({providers:[...UM,...HM],imports:[Xn,TU]}),t})(),$M=(()=>{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)(X(ot))},t.\u0275prov=we({token:t,factory:function(e){let n=null;return n=e?new e:function X$(){return new $M(X(ot))}(),n},providedIn:"root"}),t})();typeof window<"u"&&window;let Gx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=we({token:t,factory:function(e){let n=null;return n=e?new(e||t):X(GM),n},providedIn:"root"}),t})(),GM=(()=>{class t extends Gx{constructor(e){super(),this._doc=e}sanitize(e,n){if(null==n)return null;switch(e){case _i.NONE:return n;case _i.HTML:return fa(n,"HTML")?Jr(n):hD(this._doc,String(n)).toString();case _i.STYLE:return fa(n,"Style")?Jr(n):n;case _i.SCRIPT:if(fa(n,"Script"))return Jr(n);throw new Error("unsafe value used in a script context");case _i.URL:return fa(n,"URL")?Jr(n):Jm(String(n));case _i.RESOURCE_URL:if(fa(n,"ResourceURL"))return Jr(n);throw new Error(`unsafe value used in a resource URL context (see ${vm})`);default:throw new Error(`Unexpected SecurityContext ${e} (see ${vm})`)}}bypassSecurityTrustHtml(e){return function V5(t){return new R5(t)}(e)}bypassSecurityTrustStyle(e){return function H5(t){return new O5(t)}(e)}bypassSecurityTrustScript(e){return function U5(t){return new P5(t)}(e)}bypassSecurityTrustUrl(e){return function z5(t){return new L5(t)}(e)}bypassSecurityTrustResourceUrl(e){return function $5(t){return new N5(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(X(ot))},t.\u0275prov=we({token:t,factory:function(e){let n=null;return n=e?new e:function J$(t){return new GM(t.get(ot))}(X(an)),n},providedIn:"root"}),t})();function qe(...t){return rn(t,Mu(t))}class Ki extends ke{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 Md=_c(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}),{isArray:ej}=Array,{getPrototypeOf:tj,prototype:ij,keys:nj}=Object;function qM(t){if(1===t.length){const i=t[0];if(ej(i))return{args:i,keys:null};if(function rj(t){return t&&"object"==typeof t&&tj(t)===ij}(i)){const e=nj(i);return{args:e.map(n=>i[n]),keys:e}}}return{args:t,keys:null}}const{isArray:oj}=Array;function qx(t){return Ze(i=>function aj(t,i){return oj(i)?t(...i):t(i)}(t,i))}function XM(t,i){return t.reduce((e,n,r)=>(e[n]=i[r],e),{})}function Bc(...t){const i=Mu(t),e=bk(t),{args:n,keys:r}=qM(t);if(0===n.length)return rn([],i);const o=new ai(function sj(t,i,e=Ts){return n=>{QM(i,()=>{const{length:r}=t,o=new Array(r);let a=r,s=r;for(let c=0;c{const l=rn(t[c],i);let d=!1;l.subscribe(Vi(n,u=>{o[c]=u,d||(d=!0,s--),s||n.next(e(o.slice()))},()=>{--a||n.complete()}))},n)},n)}}(n,i,r?a=>XM(r,a):Ts));return e?o.pipe(qx(e)):o}function QM(t,i,e){t?Ha(e,t,i):i()}function xh(...t){return function cj(){return Nl(1)}()(rn(t,Mu(t)))}function Ad(t){return new ai(i=>{Jn(t()).subscribe(i)})}function Vc(t,i){const e=Xt(t)?t:()=>t,n=r=>r.error(e());return new ai(i?r=>i.schedule(n,0,r):n)}function Xx(){return qi((t,i)=>{let e=null;t._refCount++;const n=Vi(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 Qx extends ai{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,rk(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 kt;const e=this.getSubject();i.add(this.source.subscribe(Vi(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),i.closed&&(this._connection=null,i=kt.EMPTY)}return i}refCount(){return Xx()(this)}}function vn(t,i){return qi((e,n)=>{let r=null,o=0,a=!1;const s=()=>a&&!r&&n.complete();e.subscribe(Vi(n,c=>{r?.unsubscribe();let l=0;const d=o++;Jn(t(c,d)).subscribe(r=Vi(n,u=>n.next(i?i(c,u,d,l++):u),()=>{r=null,s()}))},()=>{a=!0,s()}))})}function si(t){return t<=0?()=>qr:qi((i,e)=>{let n=0;i.subscribe(Vi(e,r=>{++n<=t&&(e.next(r),t<=n&&e.complete())}))})}function xn(...t){const i=Mu(t);return qi((e,n)=>{(i?xh(t,e,i):xh(t,e)).subscribe(n)})}function Kt(t,i){return qi((e,n)=>{let r=0;e.subscribe(Vi(n,o=>t.call(i,o,r++)&&n.next(o)))})}function Zp(t){return qi((i,e)=>{let n=!1;i.subscribe(Vi(e,r=>{n=!0,e.next(r)},()=>{n||e.next(t),e.complete()}))})}function YM(t=lj){return qi((i,e)=>{let n=!1;i.subscribe(Vi(e,r=>{n=!0,e.next(r)},()=>n?e.complete():e.error(t())))})}function lj(){return new Md}function wo(t,i){const e=arguments.length>=2;return n=>n.pipe(t?Kt((r,o)=>t(r,o,n)):Ts,si(1),e?Zp(i):YM(()=>new Md))}function Ls(t,i){return Xt(i)?An(t,i,1):An(t,1)}function $i(t,i,e){const n=Xt(t)||i||e?{next:t,error:i,complete:e}:t;return n?qi((r,o)=>{var a;null===(a=n.subscribe)||void 0===a||a.call(n);let s=!0;r.subscribe(Vi(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)}))}):Ts}function ln(t){return qi((i,e)=>{let o,n=null,r=!1;n=i.subscribe(Vi(e,void 0,void 0,a=>{o=Jn(t(a,ln(t)(i))),n?(n.unsubscribe(),n=null,o.subscribe(e)):r=!0})),r&&(n.unsubscribe(),n=null,o.subscribe(e))})}function KM(t,i){return qi(function dj(t,i,e,n,r){return(o,a)=>{let s=e,c=i,l=0;o.subscribe(Vi(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 Yx(t){return t<=0?()=>qr:qi((i,e)=>{let n=[];i.subscribe(Vi(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?Kt((r,o)=>t(r,o,n)):Ts,Yx(1),e?Zp(i):YM(()=>new Md))}function JM(t,i=!1){return qi((e,n)=>{let r=0;e.subscribe(Vi(n,o=>{const a=t(o,r++);(a||i)&&n.next(o),!a&&n.complete()}))})}function Jp(t){return Ze(()=>t)}function eg(t){return qi((i,e)=>{try{i.subscribe(e)}finally{e.add(t)}})}const Mt="primary",yh=Symbol("RouteTitle");class uj{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 Id(t){return new uj(t)}function hj(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 tA(t){return Array.prototype.concat.apply([],t)}function iA(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 Ns(t){return Av(t)?t:ih(t)?rn(Promise.resolve(t)):qe(t)}const tg=!1,mj={exact:function oA(t,i,e){if(!Hc(t.segments,i.segments)||!ig(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(const n in i.children)if(!t.children[n]||!oA(t.children[n],i.children[n],e))return!1;return!0},subset:aA},nA={exact:function pj(t,i){return wa(t,i)},subset:function gj(t,i){return Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>eA(t[e],i[e]))},ignored:()=>!0};function rA(t,i,e){return mj[e.paths](t.root,i.root,e.matrixParams)&&nA[e.queryParams](t.queryParams,i.queryParams)&&!("exact"===e.fragment&&t.fragment!==i.fragment)}function aA(t,i,e){return sA(t,i,i.segments,e)}function sA(t,i,e,n){if(t.segments.length>e.length){const r=t.segments.slice(0,e.length);return!(!Hc(r,e)||i.hasChildren()||!ig(r,e,n))}if(t.segments.length===e.length){if(!Hc(t.segments,e)||!ig(t.segments,e,n))return!1;for(const r in i.children)if(!t.children[r]||!aA(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!!(Hc(t.segments,r)&&ig(t.segments,r,n)&&t.children[Mt])&&sA(t.children[Mt],i,o,n)}}function ig(t,i,e){return i.every((n,r)=>nA[e](t[r].parameters,n.parameters))}class Bs{constructor(i=new zt([],{}),e={},n=null){this.root=i,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Id(this.queryParams)),this._queryParamMap}toString(){return vj.serialize(this)}}class zt{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 ng(this)}}class wh{constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Id(this.parameters)),this._parameterMap}toString(){return dA(this)}}function Hc(t,i){return t.length===i.length&&t.every((e,n)=>e.path===i[n].path)}let Ch=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=we({token:t,factory:function(){return new Kx},providedIn:"root"}),t})();class Kx{parse(i){const e=new Tj(i);return new Bs(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){const e=`/${kh(i.root,!0)}`,n=function wj(t){const i=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(r=>`${rg(e)}=${rg(r)}`).join("&"):`${rg(e)}=${rg(n)}`}).filter(e=>!!e);return i.length?`?${i.join("&")}`:""}(i.queryParams);return`${e}${n}${"string"==typeof i.fragment?`#${function xj(t){return encodeURI(t)}(i.fragment)}`:""}`}}const vj=new Kx;function ng(t){return t.segments.map(i=>dA(i)).join("/")}function kh(t,i){if(!t.hasChildren())return ng(t);if(i){const e=t.children[Mt]?kh(t.children[Mt],!1):"",n=[];return Qn(t.children,(r,o)=>{o!==Mt&&n.push(`${o}:${kh(r,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function bj(t,i){let e=[];return Qn(t.children,(n,r)=>{r===Mt&&(e=e.concat(i(n,r)))}),Qn(t.children,(n,r)=>{r!==Mt&&(e=e.concat(i(n,r)))}),e}(t,(n,r)=>r===Mt?[kh(t.children[Mt],!1)]:[`${r}:${kh(n,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Mt]?`${ng(t)}/${e[0]}`:`${ng(t)}/(${e.join("//")})`}}function cA(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function rg(t){return cA(t).replace(/%3B/gi,";")}function Zx(t){return cA(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function og(t){return decodeURIComponent(t)}function lA(t){return og(t.replace(/\+/g,"%20"))}function dA(t){return`${Zx(t.path)}${function yj(t){return Object.keys(t).map(i=>`;${Zx(i)}=${Zx(t[i])}`).join("")}(t.parameters)}`}const Cj=/^[^\/()?;=#]+/;function ag(t){const i=t.match(Cj);return i?i[0]:""}const kj=/^[^=?&#]+/,Dj=/^[^&#]+/;class Tj{constructor(i){this.url=i,this.remaining=i}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new zt([],{}):new zt([],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[Mt]=new zt(i,e)),n}parseSegment(){const i=ag(this.remaining);if(""===i&&this.peekStartsWith(";"))throw new ue(4009,tg);return this.capture(i),new wh(og(i),this.parseMatrixParams())}parseMatrixParams(){const i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){const e=ag(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const r=ag(this.remaining);r&&(n=r,this.capture(n))}i[og(e)]=og(n)}parseQueryParam(i){const e=function Sj(t){const i=t.match(kj);return i?i[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const a=function Ej(t){const i=t.match(Dj);return i?i[0]:""}(this.remaining);a&&(n=a,this.capture(n))}const r=lA(e),o=lA(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=ag(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new ue(4010,tg);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):i&&(o=Mt);const a=this.parseChildren();e[o]=1===Object.keys(a).length?a[Mt]:new zt([],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,tg)}}function Jx(t){return t.segments.length>0?new zt([],{[Mt]:t}):t}function sg(t){const i={};for(const n of Object.keys(t.children)){const o=sg(t.children[n]);(o.segments.length>0||o.hasChildren())&&(i[n]=o)}return function Mj(t){if(1===t.numberOfChildren&&t.children[Mt]){const i=t.children[Mt];return new zt(t.segments.concat(i.segments),i.children)}return t}(new zt(t.segments,i))}function Uc(t){return t instanceof Bs}const ey=!1;function Aj(t,i,e,n,r){if(0===e.length)return Fd(i.root,i.root,i.root,n,r);const o=function pA(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new mA(!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 mA(e,i,n)}(e);return o.toRoot()?Fd(i.root,i.root,new zt([],{}),n,r):function a(c){const l=function Fj(t,i,e,n){if(t.isAbsolute)return new Rd(i.root,!0,0);if(-1===n)return new Rd(e,e===i.root,0);return function gA(t,i,e){let n=t,r=i,o=e;for(;o>r;){if(o-=r,n=n.parent,!n)throw new ue(4005,ey&&"Invalid number of '../'");r=n.segments.length}return new Rd(n,!1,r-o)}(e,n+(Sh(t.commands[0])?0:1),t.numberOfDoubleDots)}(o,i,t.snapshot?._urlSegment,c),d=l.processChildren?Od(l.segmentGroup,l.index,o.commands):ty(l.segmentGroup,l.index,o.commands);return Fd(i.root,l.segmentGroup,d,n,r)}(t.snapshot?._lastPathIndex)}function Sh(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Dh(t){return"object"==typeof t&&null!=t&&t.outlets}function Fd(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:fA(t,i,e);const s=Jx(sg(a));return new Bs(s,o,r)}function fA(t,i,e){const n={};return Qn(t.children,(r,o)=>{n[o]=r===i?e:fA(r,i,e)}),new zt(t.segments,n)}class mA{constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&Sh(n[0]))throw new ue(4003,ey&&"Root segment cannot have matrix parameters");const r=n.find(Dh);if(r&&r!==iA(n))throw new ue(4004,ey&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Rd{constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}}function ty(t,i,e){if(t||(t=new zt([],{})),0===t.segments.length&&t.hasChildren())return Od(t,i,e);const n=function Oj(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(Dh(s))break;const c=`${s}`,l=n0&&void 0===c)break;if(c&&l&&"object"==typeof l&&void 0===l.outlets){if(!bA(c,l,a))return o;n+=2}else{if(!bA(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]=ty(t.children[a],i,o))}),Qn(t.children,(o,a)=>{void 0===n[a]&&(r[a]=o)}),new zt(t.segments,r)}}function iy(t,i,e){const n=t.segments.slice(0,i);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(i[n]=iy(new zt([],{}),0,e))}),i}function _A(t){const i={};return Qn(t,(e,n)=>i[n]=`${e}`),i}function bA(t,i,e){return t==e.path&&wa(i,e.parameters)}const Eh="imperative";class Ca{constructor(i,e){this.id=i,this.url=e}}class ny extends Ca{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 Vs extends Ca{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 cg extends Ca{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 lg extends Ca{constructor(i,e,n,r){super(i,e),this.reason=n,this.code=r,this.type=16}}class ry extends Ca{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 Lj extends Ca{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 Nj extends Ca{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 Bj extends Ca{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 Vj extends Ca{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 Hj extends Ca{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 Uj{constructor(i){this.route=i,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class zj{constructor(i){this.route=i,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class $j{constructor(i){this.snapshot=i,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jj{constructor(i){this.snapshot=i,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Wj{constructor(i){this.snapshot=i,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Gj{constructor(i){this.snapshot=i,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vA{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 Qj=(()=>{class t{createUrlTree(e,n,r,o,a,s){return Aj(e||n.root,r,o,a,s)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})(),Kj=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=we({token:t,factory:function(i){return Qj.\u0275fac(i)},providedIn:"root"}),t})();class xA{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=oy(i,this._root);return e?e.children.map(n=>n.value):[]}firstChild(i){const e=oy(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){const e=ay(i,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==i)}pathFromRoot(i){return ay(i,this._root).map(e=>e.value)}}function oy(t,i){if(t===i.value)return i;for(const e of i.children){const n=oy(t,e);if(n)return n}return null}function ay(t,i){if(t===i.value)return[i];for(const e of i.children){const n=ay(t,e);if(n.length)return n.unshift(i),n}return[]}class as{constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}}function Pd(t){const i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}class yA extends xA{constructor(i,e){super(i),this.snapshot=e,sy(this,i)}toString(){return this.snapshot.toString()}}function wA(t,i){const e=function Zj(t,i){const a=new dg([],{},{},"",{},Mt,i,null,t.root,-1,{});return new kA("",new as(a,[]))}(t,i),n=new Ki([new wh("",{})]),r=new Ki({}),o=new Ki({}),a=new Ki({}),s=new Ki(""),c=new Ld(n,r,a,s,o,Mt,i,e.root);return c.snapshot=e.root,new yA(new as(c,[]),e)}class Ld{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(Ze(l=>l[yh]))??qe(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(Ze(i=>Id(i)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Ze(i=>Id(i)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function CA(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 Jj(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 dg{get title(){return this.data?.[yh]}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=Id(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Id(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class kA extends xA{constructor(i,e){super(e),this.url=i,sy(this,e)}toString(){return SA(this._root)}}function sy(t,i){i.value._routerState=t,i.children.forEach(e=>sy(t,e))}function SA(t){const i=t.children.length>0?` { ${t.children.map(SA).join(", ")} } `:"";return`${t.value}${i}`}function cy(t){if(t.snapshot){const i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,wa(i.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),i.fragment!==e.fragment&&t.fragment.next(e.fragment),wa(i.params,e.params)||t.params.next(e.params),function fj(t,i){if(t.length!==i.length)return!1;for(let e=0;ewa(e.parameters,i[n].parameters))}(t.url,i.url);return e&&!(!t.parent!=!i.parent)&&(!t.parent||ly(t.parent,i.parent))}function Th(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){const n=e.value;n._futureSnapshot=i.value;const r=function tW(t,i,e){return i.children.map(n=>{for(const r of e.children)if(t.shouldReuseRoute(n.value,r.value.snapshot))return Th(t,n,r);return Th(t,n)})}(t,i,e);return new as(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=>Th(t,s)),a}}const n=function iW(t){return new Ld(new Ki(t.url),new Ki(t.params),new Ki(t.queryParams),new Ki(t.fragment),new Ki(t.data),t.outlet,t.component,t)}(i.value),r=i.children.map(o=>Th(t,o));return new as(n,r)}}const dy="ngNavigationCancelingError";function DA(t,i){const{redirectTo:e,navigationBehaviorOptions:n}=Uc(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,r=EA(!1,0,i);return r.url=e,r.navigationBehaviorOptions=n,r}function EA(t,i,e){const n=new Error("NavigationCancelingError: "+(t||""));return n[dy]=!0,n.cancellationCode=i,e&&(n.url=e),n}function TA(t){return MA(t)&&Uc(t.url)}function MA(t){return t&&t[dy]}class nW{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Mh,this.attachRef=null}}let Mh=(()=>{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 nW,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=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const ug=!1;let uy=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=Mt,this.activateEvents=new Ce,this.deactivateEvents=new Ce,this.attachEvents=new Ce,this.detachEvents=new Ce,this.parentContexts=ft(Mh),this.location=ft(Oi),this.changeDetector=ft(Ut),this.environmentInjector=ft(ma)}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,ug);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ue(4012,ug);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ue(4012,ug);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,ug);this._activatedRoute=e;const r=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,c=new rW(e,s,r.injector);if(n&&function oW(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:[Ai]}),t})();class rW{constructor(i,e,n){this.route=i,this.childContexts=e,this.parent=n}get(i,e){return i===Ld?this.route:i===Mh?this.childContexts:this.parent.get(i,e)}}let hy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Le({type:t,selectors:[["ng-component"]],standalone:!0,features:[$v],decls:1,vars:0,template:function(e,n){1&e&&ge(0,"router-outlet")},dependencies:[uy],encapsulation:2}),t})();function AA(t,i){return t.providers&&!t._injector&&(t._injector=kp(t.providers,i,`Route: ${t.path}`)),t._injector??i}function my(t){const i=t.children&&t.children.map(my),e=i?{...t,children:i}:{...t};return!e.component&&!e.loadComponent&&(i||e.loadChildren)&&e.outlet&&e.outlet!==Mt&&(e.component=hy),e}function Co(t){return t.outlet||Mt}function IA(t,i){const e=t.filter(n=>Co(n)===i);return e.push(...t.filter(n=>Co(n)!==i)),e}function Ah(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 dW{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),cy(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){const r=Pd(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=Pd(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=Pd(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=Pd(e);i.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],n),this.forwardEvent(new Gj(o.value.snapshot))}),i.children.length&&this.forwardEvent(new jj(i.value.snapshot))}activateRoutes(i,e,n){const r=i.value,o=e?e.value:null;if(cy(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),cy(s.route.value),this.activateChildRoutes(i,null,a.children)}else{const s=Ah(r.snapshot),c=s?.get(Is)??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 FA{constructor(i){this.path=i,this.route=this.path[this.path.length-1]}}class hg{constructor(i,e){this.component=i,this.route=e}}function uW(t,i,e){const n=t._root;return Ih(n,i?i._root:null,e,[n.value])}function Nd(t,i){const e=Symbol(),n=i.get(t,e);return n===e?"function"!=typeof t||function E8(t){return null!==wm(t)}(t)?i.get(t):t:n}function Ih(t,i,e,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Pd(i);return t.children.forEach(a=>{(function fW(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 mW(t,i,e){if("function"==typeof e)return e(t,i);switch(e){case"pathParamsChange":return!Hc(t.url,i.url);case"pathParamsOrQueryParamsChange":return!Hc(t.url,i.url)||!wa(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ly(t,i)||!wa(t.queryParams,i.queryParams);default:return!ly(t,i)}}(a,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new FA(n)):(o.data=a.data,o._resolvedData=a._resolvedData),Ih(t,i,o.component?s?s.children:null:e,n,r),c&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new hg(s.outlet.component,a))}else a&&Fh(i,s,r),r.canActivateChecks.push(new FA(n)),Ih(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)=>Fh(a,e.getContext(s),r)),r}function Fh(t,i,e){const n=Pd(t),r=t.value;Qn(n,(o,a)=>{Fh(o,r.component?i?i.children.getContext(a):null:i,e)}),e.canDeactivateChecks.push(new hg(r.component&&i&&i.outlet&&i.outlet.isActivated?i.outlet.component:null,r))}function Rh(t){return"function"==typeof t}function py(t){return t instanceof Md||"EmptyError"===t?.name}const fg=Symbol("INITIAL_VALUE");function Bd(){return vn(t=>Bc(t.map(i=>i.pipe(si(1),xn(fg)))).pipe(Ze(i=>{for(const e of i)if(!0!==e){if(e===fg)return fg;if(!1===e||e instanceof Bs)return e}return!0}),Kt(i=>i!==fg),si(1)))}function RA(t){return function Q3(...t){return tk(t)}($i(i=>{if(Uc(i))throw DA(0,i)}),Ze(i=>!0===i))}const gy={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function OA(t,i,e,n,r){const o=_y(t,i,e);return o.matched?function IW(t,i,e,n){const r=i.canMatch;return r&&0!==r.length?qe(r.map(a=>{const s=Nd(a,t);return Ns(function xW(t){return t&&Rh(t.canMatch)}(s)?s.canMatch(i,e):t.runInContext(()=>s(i,e)))})).pipe(Bd(),RA()):qe(!0)}(n=AA(i,n),i,e).pipe(Ze(a=>!0===a?o:{...gy})):qe(o)}function _y(t,i,e){if(""===i.path)return"full"===i.pathMatch&&(t.hasChildren()||e.length>0)?{...gy}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(i.matcher||hj)(e,t,i);if(!r)return{...gy};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 mg(t,i,e,n){if(e.length>0&&function OW(t,i,e){return e.some(n=>pg(t,i,n)&&Co(n)!==Mt)}(t,e,n)){const o=new zt(i,function RW(t,i,e,n){const r={};r[Mt]=n,n._sourceSegment=t,n._segmentIndexShift=i.length;for(const o of e)if(""===o.path&&Co(o)!==Mt){const a=new zt([],{});a._sourceSegment=t,a._segmentIndexShift=i.length,r[Co(o)]=a}return r}(t,i,n,new zt(e,t.children)));return o._sourceSegment=t,o._segmentIndexShift=i.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function PW(t,i,e){return e.some(n=>pg(t,i,n))}(t,e,n)){const o=new zt(t.segments,function FW(t,i,e,n,r){const o={};for(const a of n)if(pg(t,e,a)&&!r[Co(a)]){const s=new zt([],{});s._sourceSegment=t,s._segmentIndexShift=i.length,o[Co(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 zt(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=i.length,{segmentGroup:r,slicedSegments:e}}function pg(t,i,e){return(!(t.hasChildren()||i.length>0)||"full"!==e.pathMatch)&&""===e.path}function PA(t,i,e,n){return!!(Co(t)===n||n!==Mt&&pg(i,e,t))&&("**"===t.path||_y(i,t,e).matched)}function LA(t,i,e){return 0===i.length&&!t.children[e]}const gg=!1;class _g{constructor(i){this.segmentGroup=i||null}}class NA{constructor(i){this.urlTree=i}}function Oh(t){return Vc(new _g(t))}function BA(t){return Vc(new NA(t))}class VW{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=mg(this.urlTree.root,[],[],this.config).segmentGroup,e=new zt(i.segments,i.children);return this.expandSegmentGroup(this.injector,this.config,e,Mt).pipe(Ze(o=>this.createUrlTree(sg(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(ln(o=>{if(o instanceof NA)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof _g?this.noMatchError(o):o}))}match(i){return this.expandSegmentGroup(this.injector,this.config,i.root,Mt).pipe(Ze(r=>this.createUrlTree(sg(r),i.queryParams,i.fragment))).pipe(ln(r=>{throw r instanceof _g?this.noMatchError(r):r}))}noMatchError(i){return new ue(4002,gg)}createUrlTree(i,e,n){const r=Jx(i);return new Bs(r,e,n)}expandSegmentGroup(i,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(i,e,n).pipe(Ze(o=>new zt([],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 rn(r).pipe(Ls(o=>{const a=n.children[o],s=IA(e,o);return this.expandSegmentGroup(i,s,a,o).pipe(Ze(c=>({segment:c,outlet:o})))}),KM((o,a)=>(o[a.outlet]=a.segment,o),{}),ZM())}expandSegment(i,e,n,r,o,a){return rn(n).pipe(Ls(s=>this.expandSegmentAgainstRoute(i,e,n,s,r,o,a).pipe(ln(l=>{if(l instanceof _g)return qe(null);throw l}))),wo(s=>!!s),ln((s,c)=>{if(py(s))return LA(e,r,o)?qe(new zt([],{})):Oh(e);throw s}))}expandSegmentAgainstRoute(i,e,n,r,o,a,s){return PA(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):Oh(e):Oh(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("/")?BA(o):this.lineralizeSegments(n,o).pipe(An(a=>{const s=new zt(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}=_y(e,r,o);if(!s)return Oh(e);const u=this.applyRedirectCommands(c,r.redirectTo,d);return r.redirectTo.startsWith("/")?BA(u):this.lineralizeSegments(r,u).pipe(An(h=>this.expandSegment(i,e,n,h.concat(l),a,!1)))}matchSegmentAgainstRoute(i,e,n,r,o){return"**"===n.path?(i=AA(n,i),n.loadChildren?(n._loadedRoutes?qe({routes:n._loadedRoutes,injector:n._loadedInjector}):this.configLoader.loadChildren(i,n)).pipe(Ze(s=>(n._loadedRoutes=s.routes,n._loadedInjector=s.injector,new zt(r,{})))):qe(new zt(r,{}))):OA(e,n,r,i).pipe(vn(({matched:a,consumedSegments:s,remainingSegments:c})=>a?this.getChildConfig(i=n._injector??i,n,r).pipe(An(d=>{const u=d.injector??i,h=d.routes,{segmentGroup:f,slicedSegments:m}=mg(e,s,c,h),g=new zt(f.segments,f.children);if(0===m.length&&g.hasChildren())return this.expandChildren(u,h,g).pipe(Ze(y=>new zt(s,y)));if(0===h.length&&0===m.length)return qe(new zt(s,{}));const p=Co(n)===o;return this.expandSegment(u,g,h,m,p?Mt:o,!0).pipe(Ze(C=>new zt(s.concat(C.segments),C.children)))})):Oh(e)))}getChildConfig(i,e,n){return e.children?qe({routes:e.children,injector:i}):e.loadChildren?void 0!==e._loadedRoutes?qe({routes:e._loadedRoutes,injector:e._loadedInjector}):function AW(t,i,e,n){const r=i.canLoad;return void 0===r||0===r.length?qe(!0):qe(r.map(a=>{const s=Nd(a,t);return Ns(function gW(t){return t&&Rh(t.canLoad)}(s)?s.canLoad(i,e):t.runInContext(()=>s(i,e)))})).pipe(Bd(),RA())}(i,e,n).pipe(An(r=>r?this.configLoader.loadChildren(i,e).pipe($i(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function NW(t){return Vc(EA(gg,3))}())):qe({routes:[],injector:i})}lineralizeSegments(i,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return qe(n);if(r.numberOfChildren>1||!r.children[Mt])return i.redirectTo,Vc(new ue(4e3,gg));r=r.children[Mt]}}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 Bs(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 zt(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,gg);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 UW{}class jW{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=mg(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,i,Mt).pipe(Ze(e=>{if(null===e)return null;const n=new dg([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Mt,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new as(n,e),o=new kA(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(i){const e=i.value,n=CA(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 rn(Object.keys(n.children)).pipe(Ls(r=>{const o=n.children[r],a=IA(e,r);return this.processSegmentGroup(i,a,o,r)}),KM((r,o)=>r&&o?(r.push(...o),r):null),JM(r=>null!==r),Zp(null),ZM(),Ze(r=>{if(null===r)return null;const o=HA(r);return function WW(t){t.sort((i,e)=>i.value.outlet===Mt?-1:e.value.outlet===Mt?1:i.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(i,e,n,r,o){return rn(e).pipe(Ls(a=>this.processSegmentAgainstRoute(a._injector??i,a,n,r,o)),wo(a=>!!a),ln(a=>{if(py(a))return LA(n,r,o)?qe([]):qe(null);throw a}))}processSegmentAgainstRoute(i,e,n,r,o){if(e.redirectTo||!PA(e,n,r,o))return qe(null);let a;if("**"===e.path){const s=r.length>0?iA(r).parameters:{},c=zA(n)+r.length;a=qe({snapshot:new dg(r,s,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,$A(e),Co(e),e.component??e._loadedComponent??null,e,UA(n),c,jA(e)),consumedSegments:[],remainingSegments:[]})}else a=OA(n,e,r,i).pipe(Ze(({matched:s,consumedSegments:c,remainingSegments:l,parameters:d})=>{if(!s)return null;const u=zA(n)+c.length;return{snapshot:new dg(c,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,$A(e),Co(e),e.component??e._loadedComponent??null,e,UA(n),u,jA(e)),consumedSegments:c,remainingSegments:l}}));return a.pipe(vn(s=>{if(null===s)return qe(null);const{snapshot:c,consumedSegments:l,remainingSegments:d}=s;i=e._injector??i;const u=e._loadedInjector??i,h=function GW(t){return t.children?t.children:t.loadChildren?t._loadedRoutes:[]}(e),{segmentGroup:f,slicedSegments:m}=mg(n,l,d,h.filter(p=>void 0===p.redirectTo));if(0===m.length&&f.hasChildren())return this.processChildren(u,h,f).pipe(Ze(p=>null===p?null:[new as(c,p)]));if(0===h.length&&0===m.length)return qe([new as(c,[])]);const g=Co(e)===o;return this.processSegment(u,h,f,m,g?Mt:o).pipe(Ze(p=>null===p?null:[new as(c,p)]))}))}}function qW(t){const i=t.value.routeConfig;return i&&""===i.path&&void 0===i.redirectTo}function HA(t){const i=[],e=new Set;for(const n of t){if(!qW(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=HA(n.children);i.push(new as(n.value,r))}return i.filter(n=>!e.has(n))}function UA(t){let i=t;for(;i._sourceSegment;)i=i._sourceSegment;return i}function zA(t){let i=t,e=i._segmentIndexShift??0;for(;i._sourceSegment;)i=i._sourceSegment,e+=i._segmentIndexShift??0;return e-1}function $A(t){return t.data||{}}function jA(t){return t.resolve||{}}function WA(t){return"string"==typeof t.title||null===t.title}function by(t){return vn(i=>{const e=t(i);return e?rn(e).pipe(Ze(()=>i)):qe(i)})}const Vd=new oe("ROUTES");let vy=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=ft(y2)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return qe(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const n=Ns(e.loadComponent()).pipe(Ze(qA),$i(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),eg(()=>{this.componentLoaders.delete(e)})),r=new Qx(n,()=>new ke).pipe(Xx());return this.componentLoaders.set(e,r),r}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return qe({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);const o=this.loadModuleFactoryOrRoutes(n.loadChildren).pipe(Ze(s=>{this.onLoadEndListener&&this.onLoadEndListener(n);let c,l,d=!1;Array.isArray(s)?l=s:(c=s.create(e).injector,l=tA(c.get(Vd,[],bt.Self|bt.Optional)));return{routes:l.map(my),injector:c}}),eg(()=>{this.childrenLoaders.delete(n)})),a=new Qx(o,()=>new ke).pipe(Xx());return this.childrenLoaders.set(n,a),a}loadModuleFactoryOrRoutes(e){return Ns(e()).pipe(Ze(qA),An(n=>n instanceof OT||Array.isArray(n)?qe(n):rn(this.compiler.compileModuleAsync(n))))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function qA(t){return function tG(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let vg=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new ke,this.configLoader=ft(vy),this.environmentInjector=ft(ma),this.urlSerializer=ft(Ch),this.rootContexts=ft(Mh),this.navigationId=0,this.afterPreactivation=()=>qe(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new zj(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new Uj(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 Ki({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:Eh,restoredState:null,currentSnapshot:e.routerState.snapshot,targetSnapshot:null,currentRouterState:e.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Kt(n=>0!==n.id),Ze(n=>({...n,extractedUrl:e.urlHandlingStrategy.extract(n.rawUrl)})),vn(n=>{let r=!1,o=!1;return qe(n).pipe($i(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}}),vn(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 lg(a.id,e.serializeUrl(n.rawUrl),d,0)),e.rawUrlTree=a.rawUrl,a.resolve(null),qr}if(e.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return XA(a.source)&&(e.browserUrlTree=a.extractedUrl),qe(a).pipe(vn(d=>{const u=this.transitions?.getValue();return this.events.next(new ny(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),u!==this.transitions?.getValue()?qr:Promise.resolve(d)}),function HW(t,i,e,n){return vn(r=>function BW(t,i,e,n,r){return new VW(t,i,e,n,r).apply()}(t,i,e,r.extractedUrl,n).pipe(Ze(o=>({...r,urlAfterRedirects:o}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,e.config),$i(d=>{this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects},n.urlAfterRedirects=d.urlAfterRedirects}),function QW(t,i,e,n,r){return An(o=>function $W(t,i,e,n,r,o,a="emptyOnly"){return new jW(t,i,e,n,r,a,o).recognize().pipe(vn(s=>null===s?function zW(t){return new ai(i=>i.error(t))}(new UW):qe(s)))}(t,i,e,o.urlAfterRedirects,n.serialize(o.urlAfterRedirects),n,r).pipe(Ze(a=>({...o,targetSnapshot:a}))))}(this.environmentInjector,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),$i(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 Lj(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 ny(d,this.urlSerializer.serialize(u),h,f);this.events.next(g);const p=wA(u,this.rootComponentType).snapshot;return qe(n={...a,targetSnapshot:p,urlAfterRedirects:u,extras:{...m,skipLocationChange:!1,replaceUrl:!1}})}{const d="";return this.events.next(new lg(a.id,e.serializeUrl(n.extractedUrl),d,1)),e.rawUrlTree=a.rawUrl,a.resolve(null),qr}}),$i(a=>{const s=new Nj(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}),Ze(a=>n={...a,guards:uW(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function wW(t,i){return An(e=>{const{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:a}}=e;return 0===a.length&&0===o.length?qe({...e,guardsResult:!0}):function CW(t,i,e,n){return rn(t).pipe(An(r=>function MW(t,i,e,n,r){const o=i&&i.routeConfig?i.routeConfig.canDeactivate:null;return o&&0!==o.length?qe(o.map(s=>{const c=Ah(i)??r,l=Nd(s,c);return Ns(function vW(t){return t&&Rh(t.canDeactivate)}(l)?l.canDeactivate(t,i,e,n):c.runInContext(()=>l(t,i,e,n))).pipe(wo())})).pipe(Bd()):qe(!0)}(r.component,r.route,e,i,n)),wo(r=>!0!==r,!0))}(a,n,r,t).pipe(An(s=>s&&function pW(t){return"boolean"==typeof t}(s)?function kW(t,i,e,n){return rn(i).pipe(Ls(r=>xh(function DW(t,i){return null!==t&&i&&i(new $j(t)),qe(!0)}(r.route.parent,n),function SW(t,i){return null!==t&&i&&i(new Wj(t)),qe(!0)}(r.route,n),function TW(t,i,e){const n=i[i.length-1],o=i.slice(0,i.length-1).reverse().map(a=>function hW(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=>Ad(()=>qe(a.guards.map(c=>{const l=Ah(a.node)??e,d=Nd(c,l);return Ns(function bW(t){return t&&Rh(t.canActivateChild)}(d)?d.canActivateChild(n,t):l.runInContext(()=>d(n,t))).pipe(wo())})).pipe(Bd())));return qe(o).pipe(Bd())}(t,r.path,e),function EW(t,i,e){const n=i.routeConfig?i.routeConfig.canActivate:null;if(!n||0===n.length)return qe(!0);const r=n.map(o=>Ad(()=>{const a=Ah(i)??e,s=Nd(o,a);return Ns(function _W(t){return t&&Rh(t.canActivate)}(s)?s.canActivate(i,t):a.runInContext(()=>s(i,t))).pipe(wo())}));return qe(r).pipe(Bd())}(t,r.route,e))),wo(r=>!0!==r,!0))}(n,o,t,i):qe(s)),Ze(s=>({...e,guardsResult:s})))})}(this.environmentInjector,a=>this.events.next(a)),$i(a=>{if(n.guardsResult=a.guardsResult,Uc(a.guardsResult))throw DA(0,a.guardsResult);const s=new Bj(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(s)}),Kt(a=>!!a.guardsResult||(e.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),by(a=>{if(a.guards.canActivateChecks.length)return qe(a).pipe($i(s=>{const c=new Vj(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(c)}),vn(s=>{let c=!1;return qe(s).pipe(function YW(t,i){return An(e=>{const{targetSnapshot:n,guards:{canActivateChecks:r}}=e;if(!r.length)return qe(e);let o=0;return rn(r).pipe(Ls(a=>function KW(t,i,e,n){const r=t.routeConfig,o=t._resolve;return void 0!==r?.title&&!WA(r)&&(o[yh]=r.title),function ZW(t,i,e,n){const r=function JW(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===r.length)return qe({});const o={};return rn(r).pipe(An(a=>function eG(t,i,e,n){const r=Ah(i)??n,o=Nd(t,r);return Ns(o.resolve?o.resolve(i,e):r.runInContext(()=>o(i,e)))}(t[a],i,e,n).pipe(wo(),$i(s=>{o[a]=s}))),Yx(1),Jp(o),ln(a=>py(a)?qr:Vc(a)))}(o,t,i,n).pipe(Ze(a=>(t._resolvedData=a,t.data=CA(t,e).resolve,r&&WA(r)&&(t.data[yh]=r.title),null)))}(a.route,n,t,i)),$i(()=>o++),Yx(1),An(a=>o===r.length?qe(e):qr))})}(e.paramsInheritanceStrategy,this.environmentInjector),$i({next:()=>c=!0,complete:()=>{c||(e.restoreHistory(s),this.cancelNavigationTransition(s,"",2))}}))}),$i(s=>{const c=new Hj(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(c)}))}),by(a=>{const s=c=>{const l=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&l.push(this.configLoader.loadComponent(c.routeConfig).pipe($i(d=>{c.component=d}),Ze(()=>{})));for(const d of c.children)l.push(...s(d));return l};return Bc(s(a.targetSnapshot.root)).pipe(Zp(),si(1))}),by(()=>this.afterPreactivation()),Ze(a=>{const s=function eW(t,i,e){const n=Th(t,i._root,e?e._root:void 0);return new yA(n,i)}(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return n={...a,targetRouterState:s}}),$i(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)=>Ze(n=>(new dW(i,n.targetRouterState,n.currentRouterState,e).activate(t),n)))(this.rootContexts,e.routeReuseStrategy,a=>this.events.next(a)),si(1),$i({next:a=>{r=!0,this.lastSuccessfulNavigation=this.currentNavigation,e.navigated=!0,this.events.next(new Vs(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(e.currentUrlTree))),e.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{r=!0}}),eg(()=>{r||o||this.cancelNavigationTransition(n,"",1),this.currentNavigation?.id===n.id&&(this.currentNavigation=null)}),ln(a=>{if(o=!0,MA(a)){TA(a)||(e.navigated=!0,e.restoreHistory(n,!0));const s=new cg(n.id,this.urlSerializer.serialize(n.extractedUrl),a.message,a.cancellationCode);if(this.events.next(s),TA(a)){const c=e.urlHandlingStrategy.merge(a.url,e.rawUrlTree),l={skipLocationChange:n.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy||XA(n.source)};e.scheduleNavigation(c,Eh,null,l,{resolve:n.resolve,reject:n.reject,promise:n.promise})}else n.resolve(!1)}else{e.restoreHistory(n,!0);const s=new ry(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 qr}))}))}cancelNavigationTransition(e,n,r){const o=new cg(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=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function XA(t){return t!==Eh}let QA=(()=>{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===Mt);return n}getResolvedTitleForRoute(e){return e.data[yh]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=we({token:t,factory:function(){return ft(iG)},providedIn:"root"}),t})(),iG=(()=>{class t extends QA{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)(X($M))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),nG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=we({token:t,factory:function(){return ft(oG)},providedIn:"root"}),t})();class rG{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}}let oG=(()=>{class t extends rG{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(t)))(n||t)}}(),t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const xg=new oe("",{providedIn:"root",factory:()=>({})});let sG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=we({token:t,factory:function(){return ft(cG)},providedIn:"root"}),t})(),cG=(()=>{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=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function lG(t){throw t}function dG(t,i,e){return i.parse("/")}const uG={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},hG={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Vr=(()=>{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=ft(X9),this.isNgZoneEnabled=!1,this.options=ft(xg,{optional:!0})||{},this.errorHandler=this.options.errorHandler||lG,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||dG,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=ft(sG),this.routeReuseStrategy=ft(nG),this.urlCreationStrategy=ft(Kj),this.titleStrategy=ft(QA),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=tA(ft(Vd,{optional:!0})??[]),this.navigationTransitions=ft(vg),this.urlSerializer=ft(Ch),this.location=ft(fh),this.isNgZoneEnabled=ft(ze)instanceof ze&&ze.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Bs,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=wA(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),Eh,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(my),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=Uc(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,Eh,null,n)}navigate(e,n={skipLocationChange:!1}){return function fG(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=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class YA{}let gG=(()=>{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(Kt(e=>e instanceof Vs),Ls(()=>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=kp(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 rn(r).pipe(Nl())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{let r;r=n.loadChildren&&void 0===n.canLoad?this.loader.loadChildren(e,n):qe(null);const o=r.pipe(An(a=>null===a?qe(void 0):(n._loadedRoutes=a.routes,n._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));return n.loadComponent&&!n._loadedComponent?rn([o,this.loader.loadComponent(n)]).pipe(Nl()):o})}}return t.\u0275fac=function(e){return new(e||t)(X(Vr),X(y2),X(ma),X(YA),X(vy))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const wy=new oe("");let KA=(()=>{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 ny?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Vs&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof vA&&(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 vA(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return t.\u0275fac=function(e){pa()},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})();var io=(()=>((io=io||{})[io.COMPLETE=0]="COMPLETE",io[io.FAILED=1]="FAILED",io[io.REDIRECTING=2]="REDIRECTING",io))();const Hd=!1;function Hs(t,i){return{\u0275kind:t,\u0275providers:i}}const Cy=new oe("",{providedIn:"root",factory:()=>!1});function JA(){const t=ft(an);return i=>{const e=t.get(Ed);if(i!==e.components[0])return;const n=t.get(Vr),r=t.get(eI);1===t.get(ky)&&n.initialNavigation(),t.get(tI,null,bt.Optional)?.setUpPreloading(),t.get(wy,null,bt.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const eI=new oe(Hd?"bootstrap done indicator":"",{factory:()=>new ke}),ky=new oe(Hd?"initial navigation":"",{providedIn:"root",factory:()=>1});function yG(){let t=[];return t=Hd?[{provide:ip,multi:!0,useFactory:()=>{const i=ft(Vr);return()=>i.events.subscribe(e=>{console.group?.(`Router Event: ${e.constructor.name}`),console.log(function qj(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?.()})}}]:[],Hs(1,t)}const tI=new oe(Hd?"router preloader":"");function wG(t){return Hs(0,[{provide:tI,useExisting:gG},{provide:YA,useExisting:t}])}const Ph=!1,iI=new oe(Ph?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),CG=[fh,{provide:Ch,useClass:Kx},Vr,Mh,{provide:Ld,useFactory:function ZA(t){return t.routerState.root},deps:[Vr]},vy,Ph?{provide:Cy,useValue:!0}:[]];function kG(){return new M2("Router",Vr)}let nI=(()=>{class t{constructor(e){}static forRoot(e,n){return{ngModule:t,providers:[CG,Ph&&n?.enableTracing?yG().\u0275providers:[],{provide:Vd,multi:!0,useValue:e},{provide:iI,useFactory:TG,deps:[[Vr,new ha,new Dc]]},{provide:xg,useValue:n||{}},n?.useHash?{provide:Nc,useClass:PU}:{provide:Nc,useClass:Z2},{provide:wy,useFactory:()=>{const t=ft(Yz),i=ft(ze),e=ft(xg),n=ft(vg),r=ft(Ch);return e.scrollOffset&&t.setOffset(e.scrollOffset),new KA(r,n,t,i,e)}},n?.preloadingStrategy?wG(n.preloadingStrategy).\u0275providers:[],{provide:M2,multi:!0,useFactory:kG},n?.initialNavigation?MG(n):[],[{provide:rI,useFactory:JA},{provide:T2,multi:!0,useExisting:rI}]]}}static forChild(e){return{ngModule:t,providers:[{provide:Vd,multi:!0,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)(X(iI,8))},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[hy]}),t})();function TG(t){if(Ph&&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 MG(t){return["disabled"===t.initialNavigation?Hs(3,[{provide:Mp,multi:!0,useFactory:()=>{const i=ft(Vr);return()=>{i.setUpLocationChangeListener()}}},{provide:ky,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Hs(2,[{provide:ky,useValue:0},{provide:Mp,multi:!0,deps:[an],useFactory:i=>{const e=i.get(RU,Promise.resolve());return()=>e.then(()=>new Promise(n=>{const r=i.get(Vr),o=i.get(eI);(function _G(t,i){t.events.pipe(Kt(e=>e instanceof Vs||e instanceof cg||e instanceof ry||e instanceof lg),Ze(e=>e instanceof Vs||e instanceof lg?io.COMPLETE:e instanceof cg&&(0===e.code||1===e.code)?io.REDIRECTING:io.FAILED),Kt(e=>e!==io.REDIRECTING),si(1)).subscribe(()=>{i()})})(r,()=>{n(!0)}),i.get(vg).afterPreactivation=()=>(n(!0),o.closed?qe(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const rI=new oe(Ph?"Router Initializer":"");function oI(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 fi(t){return function(){var i=this,e=arguments;return new Promise(function(n,r){var o=t.apply(i,e);function a(c){oI(o,n,r,a,s,"next",c)}function s(c){oI(o,n,r,a,s,"throw",c)}a(void 0)})}}class Sy{}function Dy(t){return t&&"function"==typeof t.connect&&!(t instanceof Qx)}class aI{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 Ey{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 ke,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 Ty=(()=>{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=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Lh=new oe("_ViewRepeater");function Sr(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 Md)}})})}const My={now:()=>(My.delegate||Date).now(),delegate:void 0};class cI extends ke{constructor(i=1/0,e=1/0,n=My){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 Yo?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 Yo;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Yo?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 IG{encodeKey(i){return lI(i)}encodeValue(i){return lI(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}}const RG=/%(\d[a-f0-9])/gi,OG={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function lI(t){return encodeURIComponent(t).replace(RG,(i,e)=>OG[e]??i)}function wg(t){return`${t}`}class Us{constructor(i={}){if(this.updates=null,this.cloneFrom=null,this.encoder=i.encoder||new IG,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function FG(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(wg):[wg(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 Us({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(wg(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(wg(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 PG{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 dI(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function uI(t){return typeof Blob<"u"&&t instanceof Blob}function hI(t){return typeof FormData<"u"&&t instanceof FormData}class Nh{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 LG(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 Yo),this.context||(this.context=new PG),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 Nh(e,n,o,{params:l,headers:c,context:d,reportProgress:s,responseType:r,withCredentials:a})}}var yn=(()=>((yn=yn||{})[yn.Sent=0]="Sent",yn[yn.UploadProgress=1]="UploadProgress",yn[yn.ResponseHeader=2]="ResponseHeader",yn[yn.DownloadProgress=3]="DownloadProgress",yn[yn.Response=4]="Response",yn[yn.User=5]="User",yn))();class Iy{constructor(i,e=200,n="OK"){this.headers=i.headers||new Yo,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 Fy extends Iy{constructor(i={}){super(i),this.type=yn.ResponseHeader}clone(i={}){return new Fy({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 Cg extends Iy{constructor(i={}){super(i),this.type=yn.Response,this.body=void 0!==i.body?i.body:null}clone(i={}){return new Cg({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 fI extends Iy{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 Ry(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 zs=(()=>{class t{constructor(e){this.handler=e}request(e,n,r={}){let o;if(e instanceof Nh)o=e;else{let c,l;c=r.headers instanceof Yo?r.headers:new Yo(r.headers),r.params&&(l=r.params instanceof Us?r.params:new Us({fromObject:r.params})),o=new Nh(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=qe(o).pipe(Ls(c=>this.handler.handle(c)));if(e instanceof Nh||"events"===r.observe)return a;const s=a.pipe(Kt(c=>c instanceof Cg));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return s.pipe(Ze(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(Ze(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(Ze(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return s.pipe(Ze(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 Us).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,Ry(r,n))}post(e,n,r={}){return this.request("POST",e,Ry(r,n))}put(e,n,r={}){return this.request("PUT",e,Ry(r,n))}}return t.\u0275fac=function(e){return new(e||t)(X(yg))},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})();function mI(t,i){return i(t)}function BG(t,i){return(e,n)=>i.intercept(e,{handle:r=>t(r,n)})}const HG=new oe("HTTP_INTERCEPTORS"),Bh=new oe("HTTP_INTERCEPTOR_FNS");function UG(){let t=null;return(i,e)=>(null===t&&(t=(ft(HG,{optional:!0})??[]).reduceRight(BG,mI)),t(i,e))}let pI=(()=>{class t extends yg{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(Bh)));this.chain=n.reduceRight((r,o)=>function VG(t,i,e){return(n,r)=>e.runInContext(()=>i(n,o=>t(o,r)))}(r,o,this.injector),mI)}return this.chain(e,n=>this.backend.handle(n))}}return t.\u0275fac=function(e){return new(e||t)(X(Ay),X(ma))},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})();const WG=/^\)\]\}',?\n/;let _I=(()=>{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 ai(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 Yo(r.getAllResponseHeaders()),g=function GG(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 Fy({headers:m,status:r.status,statusText:f,url:g}),a},c=()=>{let{headers:f,status:m,statusText:g,url:p}=s(),b=null;204!==m&&(b=typeof r.response>"u"?r.responseText:r.response),0===m&&(m=b?200:0);let C=m>=200&&m<300;if("json"===e.responseType&&"string"==typeof b){const y=b;b=b.replace(WG,"");try{b=""!==b?JSON.parse(b):null}catch(M){b=y,C&&(C=!1,b={error:M,text:b})}}C?(n.next(new Cg({body:b,headers:f,status:m,statusText:g,url:p||void 0})),n.complete()):n.error(new fI({error:b,headers:f,status:m,statusText:g,url:p||void 0}))},l=f=>{const{url:m}=s(),g=new fI({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:yn.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:yn.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:yn.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)(X(xM))},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})();const Oy=new oe("XSRF_ENABLED"),bI=new oe("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),vI=new oe("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class xI{}let QG=(()=>{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=cM(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(X(ot),X(Ip),X(bI))},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})();function YG(t,i){const e=t.url.toLowerCase();if(!ft(Oy)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return i(t);const n=ft(xI).getToken(),r=ft(vI);return null!=n&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),i(t)}var dn=(()=>((dn=dn||{})[dn.Interceptors=0]="Interceptors",dn[dn.LegacyInterceptors=1]="LegacyInterceptors",dn[dn.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",dn[dn.NoXsrfProtection=3]="NoXsrfProtection",dn[dn.JsonpSupport=4]="JsonpSupport",dn[dn.RequestsMadeViaParent=5]="RequestsMadeViaParent",dn))();function Ud(t,i){return{\u0275kind:t,\u0275providers:i}}function KG(...t){const i=[zs,_I,pI,{provide:yg,useExisting:pI},{provide:Ay,useExisting:_I},{provide:Bh,useValue:YG,multi:!0},{provide:Oy,useValue:!0},{provide:xI,useClass:QG}];for(const e of t)i.push(...e.\u0275providers);return function r6(t){return{\u0275providers:t}}(i)}const yI=new oe("LEGACY_INTERCEPTOR_FN");let Py,JG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({providers:[KG(Ud(dn.LegacyInterceptors,[{provide:yI,useFactory:UG},{provide:Bh,useExisting:yI,multi:!0}]))]}),t})();try{Py=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Py=!1}let zd,wi=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function Qz(t){return t===bM}(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&&!Py)&&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)(X(Ip))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const wI=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function CI(){if(zd)return zd;if("object"!=typeof document||!document)return zd=new Set(wI),zd;let t=document.createElement("input");return zd=new Set(wI.filter(i=>(t.setAttribute("type",i),t.type===i))),zd}let Vh,kg,zc,Ly;function Ko(t){return function eq(){if(null==Vh&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Vh=!0}))}finally{Vh=Vh||!1}return Vh}()?t:!!t.capture}function kI(){if(null==zc){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return zc=!1,zc;if("scrollBehavior"in document.documentElement.style)zc=!0;else{const t=Element.prototype.scrollTo;zc=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return zc}function Hh(){if("object"!=typeof document||!document)return 0;if(null==kg){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),kg=0,0===t.scrollLeft&&(t.scrollLeft=1,kg=0===t.scrollLeft?1:2),t.remove()}return kg}function Ny(t){if(function tq(){if(null==Ly){const t=typeof document<"u"?document.head:null;Ly=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Ly}()){const i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function Sg(){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 no(t){return t.composedPath?t.composedPath()[0]:t.target}function By(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function or(t,...i){return i.length?i.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}class mq extends kt{constructor(i,e){super()}schedule(i,e=0){return this}}const Tg={setInterval(t,i,...e){const{delegate:n}=Tg;return n?.setInterval?n.setInterval(t,i,...e):setInterval(t,i,...e)},clearInterval(t){const{delegate:i}=Tg;return(i?.clearInterval||clearInterval)(t)},delegate:void 0};class Hy extends mq{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 Tg.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&&Tg.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,sa(n,this),null!=i&&(this.id=this.recycleAsyncId(e,i,null)),this.delay=null,super.unsubscribe()}}}class zh{constructor(i,e=zh.now){this.schedulerActionCtor=i,this.now=e}schedule(i,e=0,n){return new this.schedulerActionCtor(this,i).schedule(n,e)}}zh.now=My.now;class Uy extends zh{constructor(i,e=zh.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 $h=new Uy(Hy),pq=$h;function $c(t,i=$h){return qi((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 zy(t){return Kt((i,e)=>t<=e)}function Ws(t,i=Ts){return t=t??gq,qi((e,n)=>{let r,o=!0;e.subscribe(Vi(n,a=>{const s=i(a);(o||!t(r,s))&&(o=!1,r=s,n.next(a))}))})}function gq(t,i){return t===i}function pt(t){return qi((i,e)=>{Jn(t).subscribe(Vi(e,()=>e.complete(),_r)),!e.closed&&i.subscribe(e)})}function He(t){return null!=t&&"false"!=`${t}`}function On(t,i=0){return DI(t)?Number(t):i}function DI(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function jh(t){return Array.isArray(t)?t:[t]}function wn(t){return null==t?"":"string"==typeof t?t:`${t}px`}function nn(t){return t instanceof Ie?t.nativeElement:t}let EI=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),bq=(()=>{class t{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,n)=>this._cleanupObserver(n))}observe(e){const n=nn(e);return new ai(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 ke,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)(X(EI))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$y=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=He(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=On(e),this._subscribe()}constructor(e,n,r){this._contentObserver=e,this._elementRef=n,this._ngZone=r,this.event=new Ce,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe($c(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(x(bq),x(Ie),x(ze))},t.\u0275dir=Q({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),Mg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({providers:[EI]}),t})();const TI=new Set;let jd,vq=(()=>{class t{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):yq}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function xq(t){if(!TI.has(t))try{jd||(jd=document.createElement("style"),jd.setAttribute("type","text/css"),document.head.appendChild(jd)),jd.sheet&&(jd.sheet.insertRule(`@media ${t} {body{ }}`,0),TI.add(t))}catch(i){console.error(i)}}(e),this._matchMedia(e)}}return t.\u0275fac=function(e){return new(e||t)(X(wi))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function yq(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let jy=(()=>{class t{constructor(e,n){this._mediaMatcher=e,this._zone=n,this._queries=new Map,this._destroySubject=new ke}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return MI(jh(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let o=Bc(MI(jh(e)).map(a=>this._registerQuery(a).observable));return o=xh(o.pipe(si(1)),o.pipe(zy(1),$c(0))),o.pipe(Ze(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 ai(a=>{const s=c=>this._zone.run(()=>a.next(c));return n.addListener(s),()=>{n.removeListener(s)}}).pipe(xn(n),Ze(({matches:a})=>({query:e,matches:a})),pt(this._destroySubject)),mql:n};return this._queries.set(e,o),o}}return t.\u0275fac=function(e){return new(e||t)(X(vq),X(ze))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function MI(t){return t.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}function Ag(t,i){return(t.getAttribute(i)||"").match(/\S+/g)||[]}const II="cdk-describedby-message",Ig="cdk-describedby-host";let Wy=0,FI=(()=>{class t{constructor(e,n){this._platform=n,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Wy++,this._document=e,this._id=ft(Dd)+"-"+Wy++}describe(e,n,r){if(!this._canBeDescribed(e,n))return;const o=Gy(n,r);"string"!=typeof n?(RI(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=Gy(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(`[${Ig}="${this._id}"]`);for(let n=0;n0!=r.indexOf(II));e.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(e,n){const r=this._messageRegistry.get(n);(function Cq(t,i,e){const n=Ag(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(Ig,this._id),r.referenceCount++}_removeMessageReference(e,n){const r=this._messageRegistry.get(n);r.referenceCount--,function kq(t,i,e){const r=Ag(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(Ig)}_isElementDescribedByMessage(e,n){const r=Ag(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)(X(ot),X(wi))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Gy(t,i){return"string"==typeof t?`${i||""}/${t}`:t}function RI(t,i){t.id||(t.id=`${II}-${i}-${Wy++}`)}class OI{constructor(i){this._items=i,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new ke,this._typeaheadSubscription=kt.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 ke,this.change=new ke,i instanceof Rs&&(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($i(e=>this._pressedLetters.push(e)),$c(i),Kt(()=>this._pressedLetters.length>0),Ze(()=>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 Rs?this._items.toArray():this._items}}class PI extends OI{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}}class qy extends OI{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 Wh=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Dq(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 Sq(t){try{return t.frameElement}catch{return null}}(function Oq(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(e));if(n&&(-1===NI(n)||!this.isVisible(n)))return!1;let r=e.nodeName.toLowerCase(),o=NI(e);return e.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function Fq(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 Rq(t){return!function Tq(t){return function Aq(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function Eq(t){let i=t.nodeName.toLowerCase();return"input"===i||"select"===i||"button"===i||"textarea"===i}(t)||function Mq(t){return function Iq(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||LI(t))}(e)&&!this.isDisabled(e)&&(n?.ignoreVisibility||this.isVisible(e))}}return t.\u0275fac=function(e){return new(e||t)(X(wi))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function LI(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let i=t.getAttribute("tabindex");return!(!i||isNaN(parseInt(i,10)))}function NI(t){if(!LI(t))return null;const i=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}class Pq{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(si(1)).subscribe(i)}}let Fg=(()=>{class t{constructor(e,n,r){this._checker=e,this._ngZone=n,this._document=r}create(e,n=!1){return new Pq(e,this._checker,this._ngZone,this._document,n)}}return t.\u0275fac=function(e){return new(e||t)(X(Wh),X(ze),X(ot))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Rg(t){return 0===t.buttons||0===t.offsetX&&0===t.offsetY}function Og(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 Lq=new oe("cdk-input-modality-detector-options"),Nq={ignoreKeys:[18,17,224,91,16]},Wd=Ko({passive:!0,capture:!0});let Bq=(()=>{class t{get mostRecentModality(){return this._modality.value}constructor(e,n,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new Ki(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(s=>s===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=no(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Rg(a)?"keyboard":"mouse"),this._mostRecentTarget=no(a))},this._onTouchstart=a=>{Og(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=no(a))},this._options={...Nq,...o},this.modalityDetected=this._modality.pipe(zy(1)),this.modalityChanged=this.modalityDetected.pipe(Ws()),e.isBrowser&&n.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Wd),r.addEventListener("mousedown",this._onMousedown,Wd),r.addEventListener("touchstart",this._onTouchstart,Wd)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Wd),document.removeEventListener("mousedown",this._onMousedown,Wd),document.removeEventListener("touchstart",this._onTouchstart,Wd))}}return t.\u0275fac=function(e){return new(e||t)(X(wi),X(ze),X(ot),X(Lq,8))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Vq=new oe("liveAnnouncerElement",{providedIn:"root",factory:function Hq(){return null}}),Uq=new oe("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let zq=0,Xy=(()=>{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 ke,this._rootNodeFocusAndBlurListener=s=>{for(let l=no(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=nn(e);if(!this._platform.isBrowser||1!==r.nodeType)return qe(null);const o=Ny(r)||this._getDocument(),a=this._elementInfo.get(r);if(a)return n&&(a.checkChildren=!0),a.subject;const s={checkChildren:n,subject:new ke,rootNode:o};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){const n=nn(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=nn(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=no(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,Pg),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,Pg)}),this._rootNodeFocusListenerCount.set(n,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(pt(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,Pg),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Pg),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 Ce}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(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)(x(Ie),x(ro))},t.\u0275dir=Q({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),t})();const VI="cdk-high-contrast-black-on-white",HI="cdk-high-contrast-white-on-black",Qy="cdk-high-contrast-active";let UI=(()=>{class t{constructor(e,n){this._platform=e,this._document=n,this._breakpointSubscription=ft(jy).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(Qy,VI,HI),this._hasCheckedHighContrastMode=!0;const n=this.getHighContrastMode();1===n?e.add(Qy,VI):2===n&&e.add(Qy,HI)}}}return t.\u0275fac=function(e){return new(e||t)(X(wi),X(ot))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Yy=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(X(UI))},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[Mg]}),t})();const Wq=new oe("cdk-dir-doc",{providedIn:"root",factory:function Gq(){return ft(ot)}}),qq=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let un=(()=>{class t{constructor(e){this.value="ltr",this.change=new Ce,e&&(this.value=function Xq(t){const i=t?.toLowerCase()||"";return"auto"===i&&typeof navigator<"u"&&navigator?.language?qq.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)(X(Wq,8))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Gh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({}),t})();const Qq=["text"];function Yq(t,i){if(1&t&&ge(0,"mat-pseudo-checkbox",6),2&t){const e=V();S("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function Kq(t,i){1&t&&ge(0,"mat-pseudo-checkbox",7),2&t&&S("disabled",V().disabled)}function Zq(t,i){if(1&t&&(_(0,"span",8),k(1),v()),2&t){const e=V();w(1),it("(",e.group.label,")")}}const Jq=[[["mat-icon"]],"*"],eX=["mat-icon","*"];let tX=(()=>{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})(),iX=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const rX=new oe("mat-sanity-checks",{providedIn:"root",factory:function nX(){return!0}});let yt=(()=>{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!By()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return t.\u0275fac=function(e){return new(e||t)(X(UI),X(rX,8),X(ot))},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[Gh,Gh]}),t})();function cs(t){return class extends t{get disabled(){return this._disabled}set disabled(i){this._disabled=He(i)}constructor(...i){super(...i),this._disabled=!1}}}function Gs(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 qs(t){return class extends t{get disableRipple(){return this._disableRipple}set disableRipple(i){this._disableRipple=He(i)}constructor(...i){super(...i),this._disableRipple=!1}}}function qh(t,i=0){return class extends t{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?On(e):this.defaultTabIndex}constructor(...e){super(...e),this._tabIndex=i,this.defaultTabIndex=i}}}function jI(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 oX(t){return class extends t{constructor(...i){super(...i),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new ai(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 WI=(()=>{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=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class sX{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 GI=Ko({passive:!0,capture:!0});class cX{constructor(){this._events=new Map,this._delegateEventHandler=i=>{const e=no(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,GI)})}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,GI)))}}const qI={enterDuration:225,exitDuration:150},XI=Ko({passive:!0,capture:!0}),QI=["mousedown","touchstart"],YI=["mouseup","mouseleave","touchend","touchcancel"];class Gd{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=nn(n))}fadeInRipple(i,e,n={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...qI,...n.animation};n.centered&&(i=r.left+r.width/2,e=r.top+r.height/2);const a=n.radius||function dX(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 sX(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 b=()=>this._finishRippleTransition(g),C=()=>this._destroyRipple(g);d.addEventListener("transitionend",b),d.addEventListener("transitioncancel",C),p={onTransitionEnd:b,onTransitionCancel:C}}),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={...qI,...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=nn(i);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,QI.forEach(n=>{Gd._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(()=>{YI.forEach(e=>{this._triggerElement.addEventListener(e,this,XI)})}),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=Rg(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&&(QI.forEach(e=>Gd._eventManager.removeHandler(e,i,this)),this._pointerUpEventsRegistered&&YI.forEach(e=>i.removeEventListener(e,this,XI)))}}Gd._eventManager=new cX;const Ky=new oe("mat-ripple-global-options");let ko=(()=>{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 Gd(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)(x(Ie),x(ze),x(wi),x(Ky,8),x(Ii,8))},t.\u0275dir=Q({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,n){2&e&&Ye("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})(),Xs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[yt,yt]}),t})(),uX=(()=>{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)(x(Ii,8))},t.\u0275cmp=Le({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(e,n){2&e&&Ye("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})(),KI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[yt]}),t})();const Zy=new oe("MAT_OPTION_PARENT_COMPONENT"),Jy=new oe("MatOptgroup");let hX=0;class ZI{constructor(i,e=!1){this.source=i,this.isUserInput=e}}let fX=(()=>{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=He(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-"+hX++,this.onSelectionChange=new Ce,this._stateChanges=new ke}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)&&!or(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 ZI(this,e))}}return t.\u0275fac=function(e){pa()},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&rt(Qq,7),2&e){let r;Se(r=De())&&(n._text=r.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),Qs=(()=>{class t extends fX{constructor(e,n,r,o){super(e,n,r,o)}}return t.\u0275fac=function(e){return new(e||t)(x(Ie),x(Ut),x(Zy,8),x(Jy,8))},t.\u0275cmp=Le({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(e,n){1&e&&z("click",function(){return n._selectViaInteraction()})("keydown",function(o){return n._handleKeydown(o)}),2&e&&(xa("id",n.id),st("aria-selected",n.selected)("aria-disabled",n.disabled.toString()),Ye("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:eX,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&&(hi(Jq),P(0,Yq,1,2,"mat-pseudo-checkbox",0),Je(1),_(2,"span",1,2),Je(4,1),v(),P(5,Kq,1,1,"mat-pseudo-checkbox",3),P(6,Zq,2,1,"span",4),ge(7,"div",5)),2&e&&(S("ngIf",n.multiple),w(5),S("ngIf",!n.multiple&&n.selected&&!n.hideSingleSelectionIndicator),w(1),S("ngIf",n.group&&n.group._inert),w(1),S("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disabled||n.disableRipple))},dependencies:[ko,Yi,uX],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 Lg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[Xs,Xn,yt,KI]}),t})();const tF=["mat-button",""],iF=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],nF=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],rF=".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}",pX=["mat-icon-button",""],gX=["*"],_X=[{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"]}],bX=Gs(cs(qs(class{constructor(t){this._elementRef=t}})));let e1=(()=>{class t extends bX{constructor(e,n,r,o){super(e),this._platform=n,this._ngZone=r,this._animationMode=o,this._focusMonitor=ft(ro),this._isFab=!1;const a=e.nativeElement.classList;for(const s of _X)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){pa()},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&rt(ko,5),2&e){let r;Se(r=De())&&(n.ripple=r.first)}},features:[pe]}),t})(),xX=(()=>{class t extends e1{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){pa()},t.\u0275dir=Q({type:t,features:[pe]}),t})(),Dr=(()=>{class t extends e1{constructor(e,n,r,o){super(e,n,r,o)}}return t.\u0275fac=function(e){return new(e||t)(x(Ie),x(wi),x(ze),x(Ii,8))},t.\u0275cmp=Le({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&&(st("disabled",n.disabled||null),Ye("_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:tF,ngContentSelectors:nF,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&&(hi(iF),ge(0,"span",0),Je(1),_(2,"span",1),Je(3,1),v(),Je(4,2),ge(5,"span",2)(6,"span",3)(7,"span",4)),2&e&&(Ye("mdc-button__ripple",!n._isFab)("mdc-fab__ripple",n._isFab),w(6),S("matRippleDisabled",n._isRippleDisabled())("matRippleTrigger",n._elementRef.nativeElement))},dependencies:[ko],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})(),yX=(()=>{class t extends xX{constructor(e,n,r,o){super(e,n,r,o)}}return t.\u0275fac=function(e){return new(e||t)(x(Ie),x(wi),x(ze),x(Ii,8))},t.\u0275cmp=Le({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&&(st("disabled",n.disabled||null)("tabindex",n.disabled?-1:n.tabIndex)("aria-disabled",n.disabled.toString()),Ye("_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:tF,ngContentSelectors:nF,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&&(hi(iF),ge(0,"span",0),Je(1),_(2,"span",1),Je(3,1),v(),Je(4,2),ge(5,"span",2)(6,"span",3)(7,"span",4)),2&e&&(Ye("mdc-button__ripple",!n._isFab)("mdc-fab__ripple",n._isFab),w(6),S("matRippleDisabled",n._isRippleDisabled())("matRippleTrigger",n._elementRef.nativeElement))},dependencies:[ko],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)}',rF],encapsulation:2,changeDetection:0}),t})(),Zo=(()=>{class t extends e1{constructor(e,n,r,o){super(e,n,r,o)}}return t.\u0275fac=function(e){return new(e||t)(x(Ie),x(wi),x(ze),x(Ii,8))},t.\u0275cmp=Le({type:t,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(e,n){2&e&&(st("disabled",n.disabled||null),Ye("_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:pX,ngContentSelectors:gX,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&&(hi(),ge(0,"span",0),Je(1),ge(2,"span",1)(3,"span",2)(4,"span",3)),2&e&&(w(3),S("matRippleDisabled",n._isRippleDisabled())("matRippleCentered",!0)("matRippleTrigger",n._elementRef.nativeElement))},dependencies:[ko],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}',rF],encapsulation:2,changeDetection:0}),t})(),oF=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[yt,Xs,yt]}),t})();class aF{}class CX{}const ls="*";function zi(t,i){return{type:7,name:t,definitions:i,options:{}}}function jt(t,i=null){return{type:4,styles:i,timings:t}}function t1(t,i=null){return{type:3,steps:t,options:i}}function sF(t,i=null){return{type:2,steps:t,options:i}}function Xe(t){return{type:6,styles:t,offset:null}}function Zt(t,i,e){return{type:0,name:t,styles:i,options:e}}function Qh(t){return{type:5,steps:t}}function Wt(t,i,e=null){return{type:1,expr:t,animation:i,options:e}}function Ng(t=null){return{type:9,options:t}}function Bg(t,i,e=null){return{type:11,selector:t,animation:i,options:e}}function cF(t){Promise.resolve().then(t)}class Yh{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(){cF(()=>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 lF{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?cF(()=>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 n1="!";class r1{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 qd extends r1{constructor(i,e,n,r,o){super(),this.component=i,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=r,this.projectableNodes=o}}class ds extends r1{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 kX extends r1{constructor(i){super(),this.element=i instanceof Ie?i.nativeElement:i}}class Vg{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(i){return i instanceof qd?(this._attachedPortal=i,this.attachComponentPortal(i)):i instanceof ds?(this._attachedPortal=i,this.attachTemplatePortal(i)):this.attachDomPortal&&i instanceof kX?(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 SX extends Vg{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||an.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 DX=(()=>{class t extends ds{constructor(e,n){super(e,n)}}return t.\u0275fac=function(e){return new(e||t)(x(yi),x(Oi))},t.\u0275dir=Q({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[pe]}),t})(),us=(()=>{class t extends Vg{constructor(e,n,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=n,this._isInitialized=!1,this.attached=new Ce,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)(x(Is),x(Oi),x(ot))},t.\u0275dir=Q({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[pe]}),t})(),jc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({}),t})();const EX=["addListener","removeListener"],TX=["addEventListener","removeEventListener"],MX=["on","off"];function Jo(t,i,e,n){if(Xt(e)&&(n=e,e=void 0),n)return Jo(t,i,e).pipe(qx(n));const[r,o]=function FX(t){return Xt(t.addEventListener)&&Xt(t.removeEventListener)}(t)?TX.map(a=>s=>t[a](i,s,e)):function AX(t){return Xt(t.addListener)&&Xt(t.removeListener)}(t)?EX.map(dF(t,i)):function IX(t){return Xt(t.on)&&Xt(t.off)}(t)?MX.map(dF(t,i)):[];if(!r&&X_(t))return An(a=>Jo(a,i,e))(Jn(t));if(!r)throw new TypeError("Invalid event target");return new ai(a=>{const s=(...c)=>a.next(1o(s)})}function dF(t,i){return e=>n=>t[e](i,n)}const Kh={schedule(t){let i=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:n}=Kh;n&&(i=n.requestAnimationFrame,e=n.cancelAnimationFrame);const r=i(o=>{e=void 0,t(o)});return new kt(()=>e?.(r))},requestAnimationFrame(...t){const{delegate:i}=Kh;return(i?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){const{delegate:i}=Kh;return(i?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0},uF=new class OX extends Uy{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 RX extends Hy{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=Kh.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&&(Kh.cancelAnimationFrame(e),i._scheduled=void 0)}});let o1,PX=1;const Hg={};function hF(t){return t in Hg&&(delete Hg[t],!0)}const LX={setImmediate(t){const i=PX++;return Hg[i]=!0,o1||(o1=Promise.resolve()),o1.then(()=>hF(i)&&t()),i},clearImmediate(t){hF(t)}},{setImmediate:NX,clearImmediate:BX}=LX,Ug={setImmediate(...t){const{delegate:i}=Ug;return(i?.setImmediate||NX)(...t)},clearImmediate(t){const{delegate:i}=Ug;return(i?.clearImmediate||BX)(t)},delegate:void 0},a1=new class HX extends Uy{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 VX extends Hy{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=Ug.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&&(Ug.clearImmediate(e),i._scheduled=void 0)}});function zg(t=0,i,e=pq){let n=-1;return null!=i&&(_k(i)?e=i:n=i),new ai(r=>{let o=function zX(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 s1(t,i=$h){return function UX(t){return qi((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(Vi(e,l=>{n=!0,r=l,o||Jn(t(l)).subscribe(o=Vi(e,s,c))},()=>{a=!0,(!n||!o||o.closed)&&e.complete()}))})}(()=>zg(t,i))}const $X=["contentWrapper"],jX=["*"],WX=new oe("VIRTUAL_SCROLL_STRATEGY");let Wc=(()=>{class t{constructor(e,n,r){this._ngZone=e,this._platform=n,this._scrolled=new ke,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 ai(n=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(s1(e)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):qe()}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(Kt(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=nn(n),o=e.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Jo(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)(X(ze),X(wi),X(ot,8))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Zh=(()=>{class t{constructor(e,n,r,o){this.elementRef=e,this.scrollDispatcher=n,this.ngZone=r,this.dir=o,this._destroyed=new ke,this._elementScrolled=new ai(a=>this.ngZone.runOutsideAngular(()=>Jo(this.elementRef.nativeElement,"scroll").pipe(pt(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!=Hh()?(null!=e.left&&(e.right=n.scrollWidth-n.clientWidth-e.left),2==Hh()?e.left=e.right:1==Hh()&&(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;kI()?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==Hh()?e==n?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:a&&1==Hh()?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)(x(Ie),x(Wc),x(ze),x(un,8))},t.\u0275dir=Q({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),t})(),ea=(()=>{class t{constructor(e,n,r){this._platform=e,this._change=new ke,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(s1(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)(X(wi),X(ze),X(ot,8))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const fF=new oe("VIRTUAL_SCROLLABLE");let XX=(()=>{class t extends Zh{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)(x(Ie),x(Wc),x(ze),x(un,8))},t.\u0275dir=Q({type:t,features:[pe]}),t})();const YX=typeof requestAnimationFrame<"u"?uF:a1;let KX=(()=>{class t extends XX{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=He(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=ft(wi),this._detachedSubject=new ke,this._renderedRangeSubject=new ke,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new ai(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=kt.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(xn(null),s1(0,YX)).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(pt(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 QX(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)(x(Ie),x(Ut),x(ze),x(WX,8),x(un,8),x(Wc),x(ea),x(fF,8))},t.\u0275cmp=Le({type:t,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,n){if(1&e&&rt($X,7),2&e){let r;Se(r=De())&&(n._contentWrapper=r.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,n){2&e&&Ye("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:Zh,useFactory:(i,e)=>i||e,deps:[[new ha,new Wm(fF)],t]}]),pe,$v],ngContentSelectors:jX,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,n){1&e&&(hi(),_(0,"div",0,1),Je(2),v(),ge(3,"div",2)),2&e&&(w(3),en("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})(),hs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({}),t})(),c1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[Gh,hs,KX,Gh,hs]}),t})();const mF=kI();class ZX{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=wn(-this._previousScrollPosition.left),i.style.top=wn(-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"),mF&&(n.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),mF&&(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 JX{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(Kt(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 pF{enable(){}disable(){}attach(){}}function l1(t,i){return i.some(e=>t.bottome.bottom||t.righte.right)}function gF(t,i){return i.some(e=>t.tope.bottom||t.lefte.right)}class eQ{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();l1(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 tQ=(()=>{class t{constructor(e,n,r,o){this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=r,this.noop=()=>new pF,this.close=a=>new JX(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new ZX(this._viewportRuler,this._document),this.reposition=a=>new eQ(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=o}}return t.\u0275fac=function(e){return new(e||t)(X(Wc),X(ea),X(ze),X(ot))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class Xd{constructor(i){if(this.scrollStrategy=new pF,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 iQ{constructor(i,e){this.connectionPair=i,this.scrollableViewProperties=e}}let _F=(()=>{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)(X(ot))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),nQ=(()=>{class t extends _F{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)(X(ot),X(ze,8))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),rQ=(()=>{class t extends _F{constructor(e,n,r){super(e),this._platform=n,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=no(o)},this._clickListener=o=>{const a=no(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)(X(ot),X(wi),X(ze,8))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$g=(()=>{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||By()){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 ke,this._outsidePointerEvents=new ke,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(si(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=wn(this._config.width),i.height=wn(this._config.height),i.minWidth=wn(this._config.minWidth),i.minHeight=wn(this._config.minHeight),i.maxWidth=wn(this._config.maxWidth),i.maxHeight=wn(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=jh(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(pt(Pi(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 bF="cdk-overlay-connected-position-bounding-box",oQ=/([A-Za-z%]+)$/;class aQ{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 ke,this._resizeSubscription=kt.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(i)}attach(i){this._validatePositions(),i.hostElement.classList.add(bF),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&&Gc(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(bF),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=xF(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=vF(this._overlayRef.getConfig().minHeight),s=vF(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=xF(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=wn(n.height),r.top=wn(n.top),r.bottom=wn(n.bottom),r.width=wn(n.width),r.left=wn(n.left),r.right=wn(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=wn(o)),a&&(r.maxWidth=wn(a))}this._lastBoundingBoxSize=n,Gc(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Gc(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Gc(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();Gc(n,this._getExactOverlayY(e,i,d)),Gc(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=wn(a.maxHeight):o&&(n.maxHeight="")),a.maxWidth&&(r?n.maxWidth=wn(a.maxWidth):o&&(n.maxWidth="")),Gc(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=wn(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=wn(o.x),r}_getScrollVisibility(){const i=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:gF(i,n),isOriginOutsideView:l1(i,n),isOverlayClipped:gF(e,n),isOverlayOutsideView:l1(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&&jh(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 Ie)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 Gc(t,i){for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t}function vF(t){if("number"!=typeof t&&null!=t){const[i,e]=t.split(oQ);return e&&"px"!==e?null:parseFloat(i)}return t||null}function xF(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 yF="cdk-global-overlay-wrapper";class sQ{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(yF),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(yF),n.justifyContent=n.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}}let cQ=(()=>{class t{constructor(e,n,r,o){this._viewportRuler=e,this._document=n,this._platform=r,this._overlayContainer=o}global(){return new sQ}flexibleConnectedTo(e){return new aQ(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(X(ea),X(ot),X(wi),X($g))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),lQ=0,ar=(()=>{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 Xd(e);return a.direction=a.direction||this._directionality.value,new Jh(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-"+lQ++,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(Ed)),new SX(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(X(tQ),X($g),X(Is),X(cQ),X(nQ),X(an),X(ze),X(ot),X(un),X(fh),X(rQ),X(Ii,8))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const dQ=[{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"}],wF=new oe("cdk-connected-overlay-scroll-strategy");let d1=(()=>{class t{constructor(e){this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(x(Ie))},t.\u0275dir=Q({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0}),t})(),CF=(()=>{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=He(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=He(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=He(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=He(e)}get push(){return this._push}set push(e){this._push=He(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=kt.EMPTY,this._attachSubscription=kt.EMPTY,this._detachSubscription=kt.EMPTY,this._positionSubscription=kt.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Ce,this.positionChange=new Ce,this.attach=new Ce,this.detach=new Ce,this.overlayKeydown=new Ce,this.overlayOutsideClick=new Ce,this._templatePortal=new ds(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=dQ);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&&!or(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 Xd({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 d1?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)(x(ar),x(yi),x(Oi),x(wF),x(un,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:[Ai]}),t})();const hQ={provide:wF,deps:[ar],useFactory:function uQ(t){return()=>t.scrollStrategies.reposition()}};let qc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({providers:[ar,hQ],imports:[Gh,jc,c1,c1]}),t})();function fQ(t,i){if(1&t){const e=Ne();_(0,"div",2)(1,"button",3),z("click",function(){return _e(e),be(V().action())}),k(2),v()()}if(2&t){const e=V();w(2),it(" ",e.data.action," ")}}const mQ=["label"];function pQ(t,i){}const gQ=Math.pow(2,31)-1;class jg{constructor(i,e){this._overlayRef=e,this._afterDismissed=new ke,this._afterOpened=new ke,this._onAction=new ke,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,gQ))}_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 u1=new oe("MatSnackBarData");class Wg{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let _Q=(()=>{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})(),bQ=(()=>{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})(),vQ=(()=>{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})(),xQ=(()=>{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)(x(jg),x(u1))},t.\u0275cmp=Le({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&&(_(0,"div",0),k(1),v(),P(2,fQ,3,1,"div",1)),2&e&&(w(1),it(" ",n.data.message,"\n"),w(1),S("ngIf",n.hasAction))},dependencies:[Yi,Dr,_Q,bQ,vQ],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0}),t})();const yQ={snackBarState:zi("state",[Zt("void, hidden",Xe({transform:"scale(0.8)",opacity:0})),Zt("visible",Xe({transform:"scale(1)",opacity:1})),Wt("* => visible",jt("150ms cubic-bezier(0, 0, 0.2, 1)")),Wt("* => void, * => hidden",jt("75ms cubic-bezier(0.4, 0.0, 1, 1)",Xe({opacity:0})))])};let wQ=0,CQ=(()=>{class t extends Vg{constructor(e,n,r,o,a){super(),this._ngZone=e,this._elementRef=n,this._changeDetectorRef=r,this._platform=o,this.snackBarConfig=a,this._document=ft(ot),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new ke,this._onExit=new ke,this._onEnter=new ke,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+wQ++,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(si(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)(x(ze),x(Ie),x(Ut),x(wi),x(Wg))},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&rt(us,7),2&e){let r;Se(r=De())&&(n._portalOutlet=r.first)}},features:[pe]}),t})(),kQ=(()=>{class t extends CQ{_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=Ct(t)))(n||t)}}(),t.\u0275cmp=Le({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(e,n){if(1&e&&rt(mQ,7),2&e){let r;Se(r=De())&&(n._label=r.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(e,n){1&e&&pp("@state.done",function(o){return n.onAnimationEnd(o)}),2&e&&vp("@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&&(_(0,"div",0)(1,"div",1,2)(3,"div",3),P(4,pQ,0,0,"ng-template",4),v(),ge(5,"div"),v()()),2&e&&(w(5),st("aria-live",n._live)("role",n._role)("id",n._liveElementId))},dependencies:[us],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:[yQ.snackBarState]}}),t})(),kF=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[qc,jc,Xn,oF,yt,yt]}),t})();const SF=new oe("mat-snack-bar-default-options",{providedIn:"root",factory:function SQ(){return new Wg}});let DQ=(()=>{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=an.create({parent:n&&n.viewContainerRef&&n.viewContainerRef.injector||this._injector,providers:[{provide:Wg,useValue:n}]}),a=new qd(this.snackBarContainerComponent,n.viewContainerRef,o),s=e.attach(a);return s.instance.snackBarConfig=n,s.instance}_attach(e,n){const r={...new Wg,...this._defaultConfig,...n},o=this._createOverlay(r),a=this._attachSnackBarContainer(o,r),s=new jg(a,o);if(e instanceof yi){const c=new ds(e,null,{$implicit:r.data,snackBarRef:s});s.instance=a.attachTemplatePortal(c)}else{const c=this._createInjector(r,s),l=new qd(e,void 0,c),d=a.attachComponentPortal(l);s.instance=d.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(pt(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 Xd;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 an.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:jg,useValue:n},{provide:u1,useValue:e.data}]})}}return t.\u0275fac=function(e){return new(e||t)(X(ar),X(Xy),X(an),X(jy),X(t,12),X(SF))},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})(),Qd=(()=>{class t extends DQ{constructor(e,n,r,o,a,s){super(e,n,r,o,a,s),this.simpleSnackBarComponent=xQ,this.snackBarContainerComponent=kQ,this.handsetCssClass="mat-mdc-snack-bar-handset"}}return t.\u0275fac=function(e){return new(e||t)(X(ar),X(Xy),X(an),X(jy),X(t,12),X(SF))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:kF}),t})(),Zi=(()=>{class t{constructor(e,n){this.sbRef=e,this.data=n}static#e=this.\u0275fac=function(n){return new(n||t)(x(jg),x(u1))};static#t=this.\u0275cmp=Le({type:t,selectors:[["snack-alert"]],decls:2,vars:1,consts:[[1,"example-alert"]],template:function(n,r){1&n&&(_(0,"span",0),k(1),v()),2&n&&(w(1),Ge(r.data))},styles:[".example-alert[_ngcontent-%COMP%]{color:#fff}"]})}return t})(),Yn=(()=>{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.snowstormFhirBaseSubject=new Ki(this.snowstormFhirBase),this.fhirUrlParamSubject=new Ki(this.fhirUrlParam),this.langSubject=new Ki(this.lang),this.snowstormFhirBase$=this.snowstormFhirBaseSubject.asObservable(),this.fhirUrlParam$=this.fhirUrlParamSubject.asObservable(),this.lang$=this.langSubject.asObservable(),this.conceptCache=new Map}setSnowstormFhirBase(e){this.snowstormFhirBase=e,this.snowstormFhirBaseSubject.next(e)}setFhirUrlParam(e){this.fhirUrlParam=e,this.fhirUrlParamSubject.next(e)}setLang(e){this.lang=e,this.langSubject.next(e)}getSnowstormFhirBase(){return this.snowstormFhirBase}getFhirUrlParam(){return this.fhirUrlParam}getLang(){return this.lang}getCodeSystems(){return this.http.get(`${this.snowstormFhirBase}/CodeSystem`).pipe(ln(this.handleError("getCodeSystems",{})))}getCodeSystem(e){return this.http.get(`${this.snowstormFhirBase}/CodeSystem?version=${e}`).pipe(ln(this.handleError("getCodeSystem",{})))}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(ln(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(ln(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(ln(this.handleError("expandValueSet",{})))}handleError(e="operation",n){return r=>(console.error("There was an error!"),console.error(r),this._snackBar.openFromComponent(Zi,{duration:5e3,data:r.message,panelClass:["red-snackbar"]}),qe(n))}lookupConcept(e,n){n||(n=this.fhirUrlParam);const r=`${n}:${e}`,o=this.conceptCache.get(r);if(o)return qe(o);let a=`${this.snowstormFhirBase}/CodeSystem/$lookup?system=http://snomed.info/sct&code=${e}&property=normalForm`;"http://snomed.info/sct"!=n&&(a+=`&version=${n}`);const s={headers:new Yo({"Accept-Language":"en"})};return this.http.get(a,s).pipe($i(c=>{this.conceptCache.set(r,c)}),ln(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(ln(this.handleError("getMRCMAttributes",{})))}addPostcoordinatedExpression(e){let n=`${this.snowstormFhirBase}/CodeSystem/sct_11000003104_EXP`;const r={headers:new Yo({"Content-Type":"application/fhir+json"})};return this.http.patch(n,{resourceType:"CodeSystem",concept:[{code:e}]},r).pipe(ln(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(ln(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(ln(this.handleError("translate",{})))}lookupOtherCodeSystems(e,n){return this.http.get(`${this.snowstormFhirBase}/CodeSystem/$lookup?system=${e}&code=${n}`).pipe(ln(this.handleError("lookup",{})))}getNormalForm(e){if(e.parameter)for(let n of e.parameter){let r=!1;if("property"==n.name){for(let o of n.part)"code"==o.name&&"normalForm"==o.valueString&&(r=!0);if(r)for(let o of n.part)if("valueString"==o.name)return o.valueString}}return""}parseNormmalForm(e){const n=[];return e.split("} {").forEach(o=>{const a=o.match(/\d+\|[^\|]+\|\s*=\s*\d+\|[^\|]+\|/g);if(!a)return;const s=a.map(c=>{const[l,d]=c.split("=").map(g=>g.trim()),[u,h]=l.split("|").map(g=>g.trim()),[f,m]=d.split("|").map(g=>g.trim());return{type:{code:u,display:h.replace(/\(.*\)/,"").trim()},target:{code:f,display:m}}});n.push(s)}),{groups:n}}static#e=this.\u0275fac=function(n){return new(n||t)(X(zs),X(Qd))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function DF(...t){const i=bk(t),{args:e,keys:n}=qM(t),r=new ai(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?XM(n,s):s),o.complete())}))}});return i?r.pipe(qx(i)):r}const EQ=["*"];let Gg;function ef(t){return function TQ(){if(void 0===Gg&&(Gg=null,typeof window<"u")){const t=window;void 0!==t.trustedTypes&&(Gg=t.trustedTypes.createPolicy("angular#components",{createHTML:i=>i}))}return Gg}()?.createHTML(t)||t}function EF(t){return Error(`Unable to find icon with the name "${t}"`)}function TF(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function MF(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class Xc{constructor(i,e,n){this.url=i,this.svgText=e,this.options=n}}let qg=(()=>{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 Xc(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,n,r,o){const a=this._sanitizer.sanitize(_i.HTML,r);if(!a)throw MF(r);const s=ef(a);return this._addSvgIconConfig(e,n,new Xc("",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 Xc(n,null,r))}addSvgIconSetLiteralInNamespace(e,n,r){const o=this._sanitizer.sanitize(_i.HTML,n);if(!o)throw MF(n);const a=ef(o);return this._addSvgIconSetConfig(e,new Xc("",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(_i.RESOURCE_URL,e);if(!n)throw TF(e);const r=this._cachedIconsByUrl.get(n);return r?qe(Xg(r)):this._loadSvgIconFromConfig(new Xc(e,null)).pipe($i(o=>this._cachedIconsByUrl.set(n,o)),Ze(o=>Xg(o)))}getNamedSvgIcon(e,n=""){const r=AF(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):Vc(EF(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?qe(Xg(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Ze(n=>Xg(n)))}_getSvgFromIconSetConfigs(e,n){const r=this._extractIconWithNameFromAnySet(e,n);return r?qe(r):DF(n.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(ln(s=>{const l=`Loading icon set URL: ${this._sanitizer.sanitize(_i.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(l)),qe(null)})))).pipe(Ze(()=>{const a=this._extractIconWithNameFromAnySet(e,n);if(!a)throw EF(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($i(n=>e.svgText=n),Ze(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?qe(null):this._fetchIcon(e).pipe($i(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(ef(""));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(ef("")),r=e.attributes;for(let o=0;oef(l)),eg(()=>this._inProgressUrlFetches.delete(a)),wk());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,n,r){return this._svgIconConfigs.set(AF(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:""}}}),IF=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],LQ=IF.map(t=>`[${t}]`).join(", "),NQ=/^url\(['"]?#(.*?)['"]?\)$/;let oo=(()=>{class t extends FQ{get inline(){return this._inline}set inline(e){this._inline=He(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=kt.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(LQ),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const s=n[o],c=s.getAttribute(a),l=c?c.match(NQ):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(si(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)(x(Ie),x(qg),_o("aria-hidden"),x(OQ),x(Ya),x(RQ,8))},t.\u0275cmp=Le({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(e,n){2&e&&(st("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),Ye("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:EQ,decls:1,vars:0,template:function(e,n){1&e&&(hi(),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})(),BQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[yt,yt]}),t})();function FF(t,i){return i?e=>xh(i.pipe(si(1),function VQ(){return qi((t,i)=>{t.subscribe(Vi(i,_r))})}()),e.pipe(FF(t))):An((e,n)=>Jn(t(e,n)).pipe(si(1),Jp(e)))}function h1(t,i=$h){const e=zg(t,i);return FF(()=>e)}const HQ=["mat-menu-item",""];function UQ(t,i){1&t&&(qa(),_(0,"svg",3),ge(1,"polygon",4),v())}const zQ=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],$Q=["mat-icon, [matMenuItemIcon]","*"];function jQ(t,i){if(1&t){const e=Ne();_(0,"div",0),z("keydown",function(r){return _e(e),be(V()._handleKeydown(r))})("click",function(){return _e(e),be(V().closed.emit("click"))})("@transformMenu.start",function(r){return _e(e),be(V()._onAnimationStart(r))})("@transformMenu.done",function(r){return _e(e),be(V()._onAnimationDone(r))}),_(1,"div",1),Je(2),v()()}if(2&t){const e=V();S("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),st("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const WQ=["*"],f1=new oe("MAT_MENU_PANEL"),GQ=qs(cs(class{}));let ka=(()=>{class t extends GQ{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 ke,this._focused=new ke,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",jt("120ms cubic-bezier(0, 0, 0.2, 1)",Xe({opacity:1,transform:"scale(1)"}))),Wt("* => void",jt("100ms 25ms linear",Xe({opacity:0})))]),fadeInItems:zi("fadeInItems",[Zt("showing",Xe({opacity:1})),Wt("void => *",[Xe({opacity:0}),jt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let XQ=0;const RF=new oe("mat-menu-default-options",{providedIn:"root",factory:function QQ(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let tf=(()=>{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=He(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=He(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 Rs,this._classList={},this._panelAnimationState="void",this._animationDone=new ke,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new Ce,this.close=this.closed,this.panelId="mat-menu-panel-"+XQ++}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new qy(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(xn(this._directDescendantItems),vn(e=>Pi(...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(xn(this._directDescendantItems),vn(n=>Pi(...n.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const n=e.keyCode,r=this._keyManager;switch(n){case 27:or(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(si(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(xn(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)(x(Ie),x(ze),x(RF),x(Ut))},t.\u0275dir=Q({type:t,contentQueries:function(e,n,r){if(1&e&&(It(r,qQ,5),It(r,ka,5),It(r,ka,4)),2&e){let o;Se(o=De())&&(n.lazyContent=o.first),Se(o=De())&&(n._allItems=o),Se(o=De())&&(n.items=o)}},viewQuery:function(e,n){if(1&e&&rt(yi,5),2&e){let r;Se(r=De())&&(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})(),Qc=(()=>{class t extends tf{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)(x(Ie),x(ze),x(RF),x(Ut))},t.\u0275cmp=Le({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,n){2&e&&st("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[We([{provide:f1,useExisting:t}]),pe],ngContentSelectors:WQ,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&&(hi(),P(0,jQ,3,6,"ng-template"))},dependencies:[os],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:[Qg.transformMenu,Qg.fadeInItems]},changeDetection:0}),t})();const OF=new oe("mat-menu-scroll-strategy"),KQ={provide:OF,deps:[ar],useFactory:function YQ(t){return()=>t.scrollStrategies.reposition()}},PF=Ko({passive:!0});let ZQ=(()=>{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=kt.EMPTY,this._hoverSubscription=kt.EMPTY,this._menuCloseSubscription=kt.EMPTY,this._changeDetectorRef=ft(Ut),this._handleTouchStart=u=>{Og(u)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Ce,this.onMenuOpen=this.menuOpened,this.menuClosed=new Ce,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=a instanceof tf?a:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,PF)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,PF),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 tf&&(e._startAnimation(),e._directDescendantItems.changes.pipe(pt(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 tf?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(Kt(r=>"void"===r.toState),si(1),pt(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 Xd({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 Pi(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:qe(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Kt(a=>a!==this._menuItemInstance),Kt(()=>this._menuOpen)):qe(),n)}_handleMousedown(e){Rg(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(Kt(e=>e===this._menuItemInstance&&!e.disabled),h1(0,a1)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof tf&&this.menu._isAnimating?this.menu._animationDone.pipe(si(1),h1(0,a1),pt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new ds(e.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(x(ar),x(Ie),x(Oi),x(OF),x(f1,8),x(ka,10),x(un,8),x(ro),x(ze))},t.\u0275dir=Q({type:t,hostVars:3,hostBindings:function(e,n){1&e&&z("click",function(o){return n._handleClick(o)})("mousedown",function(o){return n._handleMousedown(o)})("keydown",function(o){return n._handleKeydown(o)}),2&e&&st("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})(),Yc=(()=>{class t extends ZQ{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(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})(),JQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({providers:[KQ],imports:[Xn,Xs,yt,qc,hs,yt]}),t})();const eY=["determinateSpinner"];function tY(t,i){if(1&t&&(qa(),_(0,"svg",11),ge(1,"circle",12),v()),2&t){const e=V();st("viewBox",e._viewBox()),w(1),en("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),st("r",e._circleRadius())}}const iY=Gs(class{constructor(t){this._elementRef=t}},"primary"),nY=new oe("mat-progress-spinner-default-options",{providedIn:"root",factory:function rY(){return{diameter:LF}}}),LF=100;let Yd=(()=>{class t extends iY{constructor(e,n,r){super(e),this.mode="mat-spinner"===this._elementRef.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",this._value=0,this._diameter=LF,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,On(e)))}get diameter(){return this._diameter}set diameter(e){this._diameter=On(e)}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=On(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)(x(Ie),x(Ii,8),x(nY))},t.\u0275cmp=Le({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(e,n){if(1&e&&rt(eY,5),2&e){let r;Se(r=De())&&(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&&(st("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===n.mode?n.value:null)("mode",n.mode),en("width",n.diameter,"px")("height",n.diameter,"px"),Ye("_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&&(P(0,tY,2,8,"ng-template",null,0,Pc),_(2,"div",1,2),qa(),_(4,"svg",3),ge(5,"circle",4),v()(),Gl(),_(6,"div",5)(7,"div",6)(8,"div",7),to(9,8),v(),_(10,"div",9),to(11,8),v(),_(12,"div",10),to(13,8),v()()()),2&e){const r=wt(1);w(4),st("viewBox",n._viewBox()),w(1),en("stroke-dasharray",n._strokeCircumference(),"px")("stroke-dashoffset",n._strokeDashOffset(),"px")("stroke-width",n._circleStrokeWidth(),"%"),st("r",n._circleRadius()),w(4),S("ngTemplateOutlet",r),w(2),S("ngTemplateOutlet",r),w(2),S("ngTemplateOutlet",r)}},dependencies:[Wp],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})(),aY=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[Xn,yt]}),t})();const sY=["*"],hY=new oe("MAT_CARD_CONFIG");let m1=(()=>{class t{constructor(e){this.appearance=e?.appearance||"raised"}}return t.\u0275fac=function(e){return new(e||t)(x(hY,8))},t.\u0275cmp=Le({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(e,n){2&e&&Ye("mat-mdc-card-outlined","outlined"===n.appearance)("mdc-card--outlined","outlined"===n.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:sY,decls:1,vars:0,template:function(e,n){1&e&&(hi(),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})(),DY=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[yt,Xn,yt]}),t})();const TY=[[["caption"]],[["colgroup"],["col"]]],MY=["caption","colgroup, col"];function p1(t){return class extends t{get sticky(){return this._sticky}set sticky(i){const e=this._sticky;this._sticky=He(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 Kd=new oe("CDK_TABLE");let Zd=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(x(yi))},t.\u0275dir=Q({type:t,selectors:[["","cdkCellDef",""]]}),t})(),Jd=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(x(yi))},t.\u0275dir=Q({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),Yg=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(x(yi))},t.\u0275dir=Q({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class RY{}const OY=p1(RY);let fs=(()=>{class t extends OY{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=He(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)(x(Kd,8))},t.\u0275dir=Q({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,n,r){if(1&e&&(It(r,Zd,5),It(r,Jd,5),It(r,Yg,5)),2&e){let o;Se(o=De())&&(n.cell=o.first),Se(o=De())&&(n.headerCell=o.first),Se(o=De())&&(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 g1{constructor(i,e){e.nativeElement.classList.add(...i._columnCssClassName)}}let _1=(()=>{class t extends g1{constructor(e,n){super(e,n)}}return t.\u0275fac=function(e){return new(e||t)(x(fs),x(Ie))},t.\u0275dir=Q({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[pe]}),t})(),b1=(()=>{class t extends g1{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)(x(fs),x(Ie))},t.\u0275dir=Q({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[pe]}),t})();class BF{constructor(){this.tasks=[],this.endTasks=[]}}const v1=new oe("_COALESCED_STYLE_SCHEDULER");let VF=(()=>{class t{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new ke}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 BF,this._getScheduleObservable().pipe(pt(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new BF;for(const n of e.tasks)n();for(const n of e.endTasks)n()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?rn(Promise.resolve(void 0)):this._ngZone.onStable.pipe(si(1))}}return t.\u0275fac=function(e){return new(e||t)(X(ze))},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})(),x1=(()=>{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 nf?e.headerCell.template:this instanceof rf?e.footerCell.template:e.cell.template}}return t.\u0275fac=function(e){return new(e||t)(x(yi),x(ts))},t.\u0275dir=Q({type:t,features:[Ai]}),t})();class PY extends x1{}const LY=p1(PY);let nf=(()=>{class t extends LY{constructor(e,n,r){super(e,n),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return t.\u0275fac=function(e){return new(e||t)(x(yi),x(ts),x(Kd,8))},t.\u0275dir=Q({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[pe,Ai]}),t})();class NY extends x1{}const BY=p1(NY);let rf=(()=>{class t extends BY{constructor(e,n,r){super(e,n),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return t.\u0275fac=function(e){return new(e||t)(x(yi),x(ts),x(Kd,8))},t.\u0275dir=Q({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[pe,Ai]}),t})(),Kg=(()=>{class t extends x1{constructor(e,n,r){super(e,n),this._table=r}}return t.\u0275fac=function(e){return new(e||t)(x(yi),x(ts),x(Kd,8))},t.\u0275dir=Q({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[pe]}),t})(),ms=(()=>{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)(x(Oi))},t.\u0275dir=Q({type:t,selectors:[["","cdkCellOutlet",""]]}),t})(),y1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Le({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&&to(0,0)},dependencies:[ms],encapsulation:2}),t})(),C1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Le({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&&to(0,0)},dependencies:[ms],encapsulation:2}),t})(),Zg=(()=>{class t{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return t.\u0275fac=function(e){return new(e||t)(x(yi))},t.\u0275dir=Q({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const HF=["top","bottom","left","right"];class VY{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]);HF.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 HF)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 k1=new oe("CDK_SPL");let Jg=(()=>{class t{constructor(e,n){this.viewContainer=e,this.elementRef=n}}return t.\u0275fac=function(e){return new(e||t)(x(Oi),x(Ie))},t.\u0275dir=Q({type:t,selectors:[["","rowOutlet",""]]}),t})(),e0=(()=>{class t{constructor(e,n){this.viewContainer=e,this.elementRef=n}}return t.\u0275fac=function(e){return new(e||t)(x(Oi),x(Ie))},t.\u0275dir=Q({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),t0=(()=>{class t{constructor(e,n){this.viewContainer=e,this.elementRef=n}}return t.\u0275fac=function(e){return new(e||t)(x(Oi),x(Ie))},t.\u0275dir=Q({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),n0=(()=>{class t{constructor(e,n){this.viewContainer=e,this.elementRef=n}}return t.\u0275fac=function(e){return new(e||t)(x(Oi),x(Ie))},t.\u0275dir=Q({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),r0=(()=>{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=He(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=He(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 ke,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 Ce,this.viewChange=new Ki({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(pt(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(),Dy(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&&ze.isInAngularZone()?this._ngZone.onStable.pipe(si(1),pt(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(),o0(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(n=>{this._columnDefsByName.has(n.name),this._columnDefsByName.set(n.name,n)})}_cacheRowDefs(){this._headerRowDefs=o0(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=o0(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=o0(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=[],Dy(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;Dy(this.dataSource)?e=this.dataSource.connect(this):function EY(t){return!!t&&(t instanceof ai||Xt(t.lift)&&Xt(t.subscribe))}(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=qe(this.dataSource)),this._renderChangeSubscription=e.pipe(pt(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))ms.mostRecentCellOutlet&&ms.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 VY(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:qe()).pipe(pt(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)(x(ts),x(Ut),x(Ie),_o("role"),x(un,8),x(ot),x(wi),x(Lh),x(v1),x(ea),x(k1,12),x(ze,8))},t.\u0275cmp=Le({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,n,r){if(1&e&&(It(r,Zg,5),It(r,fs,5),It(r,Kg,5),It(r,nf,5),It(r,rf,5)),2&e){let o;Se(o=De())&&(n._noDataRow=o.first),Se(o=De())&&(n._contentColumnDefs=o),Se(o=De())&&(n._contentRowDefs=o),Se(o=De())&&(n._contentHeaderRowDefs=o),Se(o=De())&&(n._contentFooterRowDefs=o)}},viewQuery:function(e,n){if(1&e&&(rt(Jg,7),rt(e0,7),rt(t0,7),rt(n0,7)),2&e){let r;Se(r=De())&&(n._rowOutlet=r.first),Se(r=De())&&(n._headerRowOutlet=r.first),Se(r=De())&&(n._footerRowOutlet=r.first),Se(r=De())&&(n._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,n){2&e&&Ye("cdk-table-fixed-layout",n.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[We([{provide:Kd,useExisting:t},{provide:Lh,useClass:aI},{provide:v1,useClass:VF},{provide:k1,useValue:null}])],ngContentSelectors:MY,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,n){1&e&&(hi(TY),Je(0),Je(1,1),to(2,0)(3,1)(4,2)(5,3))},dependencies:[Jg,e0,t0,n0],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),t})();function o0(t,i){return t.concat(Array.from(i))}let UY=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[c1]}),t})();const zY=[[["caption"]],[["colgroup"],["col"]]],$Y=["caption","colgroup, col"];let eu=(()=>{class t extends r0{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=Ct(t)))(n||t)}}(),t.\u0275cmp=Le({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&&Ye("mdc-table-fixed-layout",n.fixedLayout)},exportAs:["matTable"],features:[We([{provide:r0,useExisting:t},{provide:Kd,useExisting:t},{provide:v1,useClass:VF},{provide:Lh,useClass:aI},{provide:k1,useValue:null}]),pe],ngContentSelectors:$Y,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,n){1&e&&(hi(zY),Je(0),Je(1,1),to(2,0)(3,1)(4,2)(5,3))},dependencies:[Jg,e0,t0,n0],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})(),Kc=(()=>{class t extends Zd{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","matCellDef",""]],features:[We([{provide:Zd,useExisting:t}]),pe]}),t})(),Zc=(()=>{class t extends Jd{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","matHeaderCellDef",""]],features:[We([{provide:Jd,useExisting:t}]),pe]}),t})(),Jc=(()=>{class t extends fs{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=Ct(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[We([{provide:fs,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),pe]}),t})(),el=(()=>{class t extends _1{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(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})(),tl=(()=>{class t extends b1{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(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})(),tu=(()=>{class t extends nf{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[We([{provide:nf,useExisting:t}]),pe]}),t})(),iu=(()=>{class t extends Kg{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[We([{provide:Kg,useExisting:t}]),pe]}),t})(),nu=(()=>{class t extends y1{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(t)))(n||t)}}(),t.\u0275cmp=Le({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:y1,useExisting:t}]),pe],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,n){1&e&&to(0,0)},dependencies:[ms],encapsulation:2}),t})(),ru=(()=>{class t extends C1{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(t)))(n||t)}}(),t.\u0275cmp=Le({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[We([{provide:C1,useExisting:t}]),pe],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,n){1&e&&to(0,0)},dependencies:[ms],encapsulation:2}),t})(),JY=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[yt,UY,yt]}),t})();class tK extends Sy{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 Ki([]),this._filter=new Ki(""),this._internalPageChanges=new ke,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,n)=>{const r=e[n];if(DI(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 Ki(i),this._updateChangeSubscription()}_updateChangeSubscription(){const i=this._sort?Pi(this._sort.sortChange,this._sort.initialized):qe(null),e=this._paginator?Pi(this._paginator.page,this._internalPageChanges,this._paginator.initialized):qe(null),r=Bc([this._data,this._filter]).pipe(Ze(([s])=>this._filterData(s))),o=Bc([r,i]).pipe(Ze(([s])=>this._orderData(s))),a=Bc([o,e]).pipe(Ze(([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 af extends tK{}let zF=(()=>{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)(x(Qa),x(Ie))},t.\u0275dir=Q({type:t}),t})(),il=(()=>{class t extends zF{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(t)))(n||t)}}(),t.\u0275dir=Q({type:t,features:[pe]}),t})();const Kn=new oe("NgValueAccessor"),nK={provide:Kn,useExisting:Qt(()=>Sa),multi:!0},oK=new oe("CompositionEventMode");let Sa=(()=>{class t extends zF{constructor(e,n,r){super(e,n),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function rK(){const t=is()?is().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)(x(Qa),x(Ie),x(oK,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&&z("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([nK]),pe]}),t})();const aK=!1;function Ys(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function jF(t){return null!=t&&"number"==typeof t.length}const zn=new oe("NgValidators"),Ks=new oe("NgAsyncValidators"),sK=/^(?=.{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 ou{static min(i){return function WF(t){return i=>{if(Ys(i.value)||Ys(t))return null;const e=parseFloat(i.value);return!isNaN(e)&&e{if(Ys(i.value)||Ys(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 qF(i)}static requiredTrue(i){return function XF(t){return!0===t.value?null:{required:!0}}(i)}static email(i){return function QF(t){return Ys(t.value)||sK.test(t.value)?null:{email:!0}}(i)}static minLength(i){return YF(i)}static maxLength(i){return function KF(t){return i=>jF(i.value)&&i.value.length>t?{maxlength:{requiredLength:t,actualLength:i.value.length}}:null}(i)}static pattern(i){return ZF(i)}static nullValidator(i){return null}static compose(i){return rR(i)}static composeAsync(i){return oR(i)}}function qF(t){return Ys(t.value)?{required:!0}:null}function YF(t){return i=>Ys(i.value)||!jF(i.value)?null:i.value.length{if(Ys(n.value))return null;const r=n.value;return i.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function a0(t){return null}function JF(t){return null!=t}function eR(t){const i=ih(t)?rn(t):t;if(aK&&!Av(i)){let e="Expected async validator to return Promise or Observable.";throw"object"==typeof t&&(e+=" Are you using a synchronous validator where an async validator is expected?"),new ue(-1101,e)}return i}function tR(t){let i={};return t.forEach(e=>{i=null!=e?{...i,...e}:i}),0===Object.keys(i).length?null:i}function iR(t,i){return i.map(e=>e(t))}function nR(t){return t.map(i=>function cK(t){return!t.validate}(i)?i:e=>i.validate(e))}function rR(t){if(!t)return null;const i=t.filter(JF);return 0==i.length?null:function(e){return tR(iR(e,i))}}function S1(t){return null!=t?rR(nR(t)):null}function oR(t){if(!t)return null;const i=t.filter(JF);return 0==i.length?null:function(e){return DF(iR(e,i).map(eR)).pipe(Ze(tR))}}function D1(t){return null!=t?oR(nR(t)):null}function aR(t,i){return null===t?[i]:Array.isArray(t)?[...t,i]:[t,i]}function sR(t){return t._rawValidators}function cR(t){return t._rawAsyncValidators}function E1(t){return t?Array.isArray(t)?t:[t]:[]}function s0(t,i){return Array.isArray(t)?t.includes(i):t===i}function lR(t,i){const e=E1(i);return E1(t).forEach(r=>{s0(e,r)||e.push(r)}),e}function dR(t,i){return E1(i).filter(e=>!s0(t,e))}class uR{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=S1(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=D1(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 Er extends uR{get formDirective(){return null}get path(){return null}}class Da extends uR{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class hR{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 So=(()=>{class t extends hR{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(x(Da,2))},t.\u0275dir=Q({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,n){2&e&&Ye("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})(),sf=(()=>{class t extends hR{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(x(Er,10))},t.\u0275dir=Q({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,n){2&e&&Ye("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 fR(t,i){return t?`with name: '${i}'`:`at index: ${i}`}const A1=!1,cf="VALID",l0="INVALID",au="PENDING",lf="DISABLED";function I1(t){return(d0(t)?t.validators:t)||null}function F1(t,i){return(d0(i)?i.asyncValidators:t)||null}function d0(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function mR(t,i,e){const n=t.controls;if(!(i?Object.keys(n):n).length)throw new ue(1e3,A1?function hK(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,A1?function fK(t,i){return`Cannot find form control ${fR(t,i)}`}(i,e):"")}function pR(t,i,e){t._forEachChild((n,r)=>{if(void 0===e[r])throw new ue(1002,A1?function mK(t,i){return`Must supply a value for form control ${fR(t,i)}`}(i,r):"")})}class u0{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===cf}get invalid(){return this.status===l0}get pending(){return this.status==au}get disabled(){return this.status===lf}get enabled(){return this.status!==lf}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(lR(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(lR(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(dR(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(dR(i,this._rawAsyncValidators))}hasValidator(i){return s0(this._rawValidators,i)}hasAsyncValidator(i){return s0(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=au,!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=lf,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=cf,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===cf||this.status===au)&&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()?lf:cf}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i){if(this.asyncValidator){this.status=au,this._hasOwnPendingAsyncValidator=!0;const e=eR(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 Ce,this.statusChanges=new Ce}_calculateStatus(){return this._allControlsDisabled()?lf:this.errors?l0:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(au)?au:this._anyControlsHaveStatus(l0)?l0:cf}_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){d0(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 pK(t){return Array.isArray(t)?S1(t):t||null}(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=function gK(t){return Array.isArray(t)?D1(t):t||null}(this._rawAsyncValidators)}}class su extends u0{constructor(i,e,n){super(I1(e),F1(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={}){pR(this,!0,i),Object.keys(i).forEach(n=>{mR(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 gR extends su{}const nl=new oe("CallSetDisabledState",{providedIn:"root",factory:()=>df}),df="always";function h0(t,i){return[...i.path,t]}function uf(t,i,e=df){R1(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&i.valueAccessor.setDisabledState?.(t.disabled),function bK(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&_R(t,i)})}(t,i),function xK(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 vK(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&_R(t,i),"submit"!==t.updateOn&&t.markAsTouched()})}(t,i),function _K(t,i){if(i.valueAccessor.setDisabledState){const e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,i)}function f0(t,i,e=!0){const n=()=>{};i.valueAccessor&&(i.valueAccessor.registerOnChange(n),i.valueAccessor.registerOnTouched(n)),p0(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function m0(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function R1(t,i){const e=sR(t);null!==i.validator?t.setValidators(aR(e,i.validator)):"function"==typeof e&&t.setValidators([e]);const n=cR(t);null!==i.asyncValidator?t.setAsyncValidators(aR(n,i.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);const r=()=>t.updateValueAndValidity();m0(i._rawValidators,r),m0(i._rawAsyncValidators,r)}function p0(t,i){let e=!1;if(null!==t){if(null!==i.validator){const r=sR(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=cR(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 m0(i._rawValidators,n),m0(i._rawAsyncValidators,n),e}function _R(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function bR(t,i){R1(t,i)}function P1(t,i){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(i,e.currentValue)}function vR(t,i){t._syncPendingControls(),i.forEach(e=>{const n=e.control;"submit"===n.updateOn&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function L1(t,i){if(!i)return null;let e,n,r;return Array.isArray(i),i.forEach(o=>{o.constructor===Sa?e=o:function CK(t){return Object.getPrototypeOf(t.constructor)===il}(o)?n=o:r=o}),r||n||e||null}const SK={provide:Er,useExisting:Qt(()=>rl)},hf=(()=>Promise.resolve())();let rl=(()=>{class t extends Er{constructor(e,n,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Ce,this.form=new su({},S1(e),D1(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){hf.then(()=>{const n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),uf(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){hf.then(()=>{const n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){hf.then(()=>{const n=this._findContainer(e.path),r=new su({});bR(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){hf.then(()=>{const n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){hf.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,vR(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)(x(zn,10),x(Ks,10),x(nl,8))},t.\u0275dir=Q({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,n){1&e&&z("submit",function(o){return n.onSubmit(o)})("reset",function(){return n.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[We([SK]),pe]}),t})();function xR(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}function yR(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const Hr=class extends u0{constructor(i=null,e,n){super(I1(e),F1(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}),d0(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=yR(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){xR(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){xR(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){yR(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}},DK=Hr,MK={provide:Da,useExisting:Qt(()=>ta)},kR=(()=>Promise.resolve())();let ta=(()=>{class t extends Da{constructor(e,n,r,o,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this.control=new Hr,this._registered=!1,this.update=new Ce,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=L1(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),P1(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(){uf(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){kR.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const n=e.isDisabled.currentValue,r=0!==n&&Td(n);kR.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?h0(e,this._parent):[e]}}return t.\u0275fac=function(e){return new(e||t)(x(Er,9),x(zn,10),x(Ks,10),x(Kn,10),x(Ut,8),x(nl,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([MK]),pe,Ai]}),t})(),ff=(()=>{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})();const AK={provide:Kn,useExisting:Qt(()=>g0),multi:!0};let g0=(()=>{class t extends il{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=n=>{e(""==n?null:parseFloat(n))}}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,n){1&e&&z("input",function(o){return n.onChange(o.target.value)})("blur",function(){return n.onTouched()})},features:[We([AK]),pe]}),t})(),SR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({}),t})();const N1=new oe("NgModelWithFormControlWarning"),OK={provide:Da,useExisting:Qt(()=>_0)};let _0=(()=>{class t extends Da{set isDisabled(e){}constructor(e,n,r,o,a){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=a,this.update=new Ce,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=L1(0,r)}ngOnChanges(e){if(this._isControlChanged(e)){const n=e.form.previousValue;n&&f0(n,this,!1),uf(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}P1(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&f0(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)(x(zn,10),x(Ks,10),x(Kn,10),x(N1,8),x(nl,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([OK]),pe,Ai]}),t})();const PK={provide:Er,useExisting:Qt(()=>Zs)};let Zs=(()=>{class t extends Er{constructor(e,n,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ce,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(p0(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 uf(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){f0(e.control||null,e,!1),function kK(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,vR(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&&(f0(n||null,e),(t=>t instanceof Hr)(r)&&(uf(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const n=this.form.get(e.path);bR(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const n=this.form.get(e.path);n&&function yK(t,i){return p0(t,i)}(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){R1(this.form,this),this._oldForm&&p0(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(x(zn,10),x(Ks,10),x(nl,8))},t.\u0275dir=Q({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,n){1&e&&z("submit",function(o){return n.onSubmit(o)})("reset",function(){return n.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[We([PK]),pe,Ai]}),t})();const BK={provide:Da,useExisting:Qt(()=>mf)};let mf=(()=>{class t extends Da{set isDisabled(e){}constructor(e,n,r,o,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.update=new Ce,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=L1(0,o)}ngOnChanges(e){this._added||this._setUpControl(),P1(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 h0(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)(x(Er,13),x(zn,10),x(Ks,10),x(Kn,10),x(N1,8))},t.\u0275dir=Q({type:t,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[We([BK]),pe,Ai]}),t})();let ol=(()=>{class t{constructor(){this._validator=a0}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):a0,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:[Ai]}),t})();const qK={provide:zn,useExisting:Qt(()=>b0),multi:!0};let b0=(()=>{class t extends ol{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Td,this.createValidator=e=>qF}enabled(e){return e}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(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&&st("required",n._enabled?"":null)},inputs:{required:"required"},features:[We([qK]),pe]}),t})();const YK={provide:zn,useExisting:Qt(()=>z1),multi:!0};let z1=(()=>{class t extends ol{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=e=>function IR(t){return"number"==typeof t?t:parseInt(t,10)}(e),this.createValidator=e=>YF(e)}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(e,n){2&e&&st("minlength",n._enabled?n.minlength:null)},inputs:{minlength:"minlength"},features:[We([YK]),pe]}),t})();const ZK={provide:zn,useExisting:Qt(()=>x0),multi:!0};let x0=(()=>{class t extends ol{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=e=>e,this.createValidator=e=>ZF(e)}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(e,n){2&e&&st("pattern",n._enabled?n.pattern:null)},inputs:{pattern:"pattern"},features:[We([ZK]),pe]}),t})(),NR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[SR]}),t})();class BR extends u0{constructor(i,e,n){super(I1(e),F1(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={}){pR(this,!1,i),i.forEach((n,r)=>{mR(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 VR(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let HR=(()=>{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 VR(n)?o=n:null!==n&&(o.validators=n.validator,o.asyncValidators=n.asyncValidator),new su(r,o)}record(e,n=null){const r=this._reduceControls(e);return new gR(r,n)}control(e,n,r){let o={};return this.useNonNullable?(VR(n)?o=n:(o.validators=n,o.asyncValidators=r),new Hr(e,{...o,nonNullable:!0})):new Hr(e,n,r)}array(e,n,r){const o=e.map(a=>this._createControl(a));return new BR(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 Hr||e instanceof u0?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=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$1=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:nl,useValue:e.callSetDisabledState??df}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[NR]}),t})(),JK=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:N1,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:nl,useValue:e.callSetDisabledState??df}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[NR]}),t})();const eZ=["matFormFieldNotchedOutline",""],tZ=["*"],iZ=["textField"],nZ=["iconPrefixContainer"],rZ=["textPrefixContainer"];function oZ(t,i){1&t&&ge(0,"span",19)}function aZ(t,i){if(1&t){const e=Ne();_(0,"label",17),z("cdkObserveContent",function(){return _e(e),be(V(2)._refreshOutlineNotchWidth())}),Je(1,1),P(2,oZ,1,0,"span",18),v()}if(2&t){const e=V(2);S("floating",e._shouldLabelFloat())("cdkObserveContentDisabled",!e._hasOutline())("id",e._labelId),st("for",e._control.id)("aria-owns",e._control.id),w(2),S("ngIf",!e.hideRequiredMarker&&e._control.required)}}function sZ(t,i){1&t&&P(0,aZ,3,6,"label",16),2&t&&S("ngIf",V()._hasFloatingLabel())}function cZ(t,i){1&t&&ge(0,"div",20)}function lZ(t,i){}function dZ(t,i){1&t&&P(0,lZ,0,0,"ng-template",22),2&t&&(V(2),S("ngTemplateOutlet",wt(1)))}function uZ(t,i){if(1&t&&(_(0,"div",21),P(1,dZ,1,1,"ng-template",9),v()),2&t){const e=V();S("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat())("matFormFieldNotchedOutlineLabelWidth",e._labelWidth),w(1),S("ngIf",!e._forceDisplayInfixLabel())}}function hZ(t,i){1&t&&(_(0,"div",23,24),Je(2,2),v())}function fZ(t,i){1&t&&(_(0,"div",25,26),Je(2,3),v())}function mZ(t,i){}function pZ(t,i){1&t&&P(0,mZ,0,0,"ng-template",22),2&t&&(V(),S("ngTemplateOutlet",wt(1)))}function gZ(t,i){1&t&&(_(0,"div",27),Je(1,4),v())}function _Z(t,i){1&t&&(_(0,"div",28),Je(1,5),v())}function bZ(t,i){1&t&&ge(0,"div",29)}function vZ(t,i){1&t&&(_(0,"div",30),Je(1,6),v()),2&t&&S("@transitionMessages",V()._subscriptAnimationState)}function xZ(t,i){if(1&t&&(_(0,"mat-hint",34),k(1),v()),2&t){const e=V(2);S("id",e._hintLabelId),w(1),Ge(e.hintLabel)}}function yZ(t,i){if(1&t&&(_(0,"div",31),P(1,xZ,2,2,"mat-hint",32),Je(2,7),ge(3,"div",33),Je(4,8),v()),2&t){const e=V();S("@transitionMessages",e._subscriptAnimationState),w(1),S("ngIf",e.hintLabel)}}const wZ=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],CZ=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let Do=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["mat-label"]]}),t})(),kZ=0;const UR=new oe("MatError");let zR=(()=>{class t{constructor(e,n){this.id="mat-mdc-error-"+kZ++,e||n.nativeElement.setAttribute("aria-live","polite")}}return t.\u0275fac=function(e){return new(e||t)(_o("aria-live"),x(Ie))},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&&xa("id",n.id)},inputs:{id:"id"},features:[We([{provide:UR,useExisting:t}])]}),t})(),SZ=0,al=(()=>{class t{constructor(){this.align="start",this.id="mat-mdc-hint-"+SZ++}}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&&(xa("id",n.id),st("align",null),Ye("mat-mdc-form-field-hint-end","end"===n.align))},inputs:{align:"align",id:"id"}}),t})();const DZ=new oe("MatPrefix"),$R=new oe("MatSuffix");let jR=(()=>{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:$R,useExisting:t}])]}),t})(),WR=(()=>{class t{constructor(e){this._elementRef=e,this.floating=!1}getWidth(){return function EZ(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)(x(Ie))},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&&Ye("mdc-floating-label--float-above",n.floating)},inputs:{floating:"floating"}}),t})();const GR="mdc-line-ripple--active",y0="mdc-line-ripple--deactivating";let qR=(()=>{class t{constructor(e,n){this._elementRef=e,this._handleTransitionEnd=r=>{const o=this._elementRef.nativeElement.classList,a=o.contains(y0);"opacity"===r.propertyName&&a&&o.remove(GR,y0)},n.runOutsideAngular(()=>{e.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const e=this._elementRef.nativeElement.classList;e.remove(y0),e.add(GR)}deactivate(){this._elementRef.nativeElement.classList.add(y0)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}}return t.\u0275fac=function(e){return new(e||t)(x(Ie),x(ze))},t.\u0275dir=Q({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]}),t})(),XR=(()=>{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)(x(Ie),x(ze))},t.\u0275cmp=Le({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(e,n){2&e&&Ye("mdc-notched-outline--notched",n.open)},inputs:{labelWidth:["matFormFieldNotchedOutlineLabelWidth","labelWidth"],open:["matFormFieldNotchedOutlineOpen","open"]},attrs:eZ,ngContentSelectors:tZ,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&&(hi(),ge(0,"div",0),_(1,"div",1),Je(2),v(),ge(3,"div",2)),2&e&&(w(1),en("width",n._getNotchWidth()))},encapsulation:2,changeDetection:0}),t})();const TZ={transitionMessages:zi("transitionMessages",[Zt("enter",Xe({opacity:1,transform:"translateY(0%)"})),Wt("void => enter",[Xe({opacity:0,transform:"translateY(-5px)"}),jt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let w0=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t}),t})();const C0=new oe("MatFormField"),MZ=new oe("MAT_FORM_FIELD_DEFAULT_OPTIONS");let QR=0,Ea=(()=>{class t{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=He(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-"+QR++,this._hintLabelId="mat-mdc-hint-"+QR++,this._subscriptAnimationState="",this._labelWidth=0,this._destroyed=new ke,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(pt(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(),Pi(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(pt(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe(pt(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)(x(Ie),x(Ut),x(ze),x(un),x(wi),x(MZ,8),x(Ii,8),x(ot))},t.\u0275cmp=Le({type:t,selectors:[["mat-form-field"]],contentQueries:function(e,n,r){if(1&e&&(It(r,Do,5),It(r,Do,7),It(r,w0,5),It(r,DZ,5),It(r,$R,5),It(r,UR,5),It(r,al,5)),2&e){let o;Se(o=De())&&(n._labelChildNonStatic=o.first),Se(o=De())&&(n._labelChildStatic=o.first),Se(o=De())&&(n._formFieldControl=o.first),Se(o=De())&&(n._prefixChildren=o),Se(o=De())&&(n._suffixChildren=o),Se(o=De())&&(n._errorChildren=o),Se(o=De())&&(n._hintChildren=o)}},viewQuery:function(e,n){if(1&e&&(rt(iZ,5),rt(nZ,5),rt(rZ,5),rt(WR,5),rt(XR,5),rt(qR,5)),2&e){let r;Se(r=De())&&(n._textField=r.first),Se(r=De())&&(n._iconPrefixContainer=r.first),Se(r=De())&&(n._textPrefixContainer=r.first),Se(r=De())&&(n._floatingLabel=r.first),Se(r=De())&&(n._notchedOutline=r.first),Se(r=De())&&(n._lineRipple=r.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(e,n){2&e&&Ye("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:C0,useExisting:t}])],ngContentSelectors:CZ,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&&(hi(wZ),P(0,sZ,1,1,"ng-template",null,0,Pc),_(2,"div",1,2),z("click",function(o){return n._control.onContainerClick&&n._control.onContainerClick(o)}),P(4,cZ,1,0,"div",3),_(5,"div",4),P(6,uZ,2,3,"div",5),P(7,hZ,3,0,"div",6),P(8,fZ,3,0,"div",7),_(9,"div",8),P(10,pZ,1,1,"ng-template",9),Je(11),v(),P(12,gZ,2,0,"div",10),P(13,_Z,2,0,"div",11),v(),P(14,bZ,1,0,"div",12),v(),_(15,"div",13),P(16,vZ,2,1,"div",14),P(17,yZ,5,2,"div",15),v()),2&e&&(w(2),Ye("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),w(2),S("ngIf",!n._hasOutline()&&!n._control.disabled),w(2),S("ngIf",n._hasOutline()),w(1),S("ngIf",n._hasIconPrefix),w(1),S("ngIf",n._hasTextPrefix),w(2),S("ngIf",!n._hasOutline()||n._forceDisplayInfixLabel()),w(2),S("ngIf",n._hasTextSuffix),w(1),S("ngIf",n._hasIconSuffix),w(1),S("ngIf",!n._hasOutline()),w(1),Ye("mat-mdc-form-field-subscript-dynamic-size","dynamic"===n.subscriptSizing),S("ngSwitch",n._getDisplayedMessages()),w(1),S("ngSwitchCase","error"),w(1),S("ngSwitchCase","hint"))},dependencies:[Yi,Wp,gh,Fx,$y,al,WR,XR,qR],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:[TZ.transitionMessages]},changeDetection:0}),t})(),k0=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[yt,Xn,Mg,yt]}),t})();const FZ=["panel"];function RZ(t,i){if(1&t&&(_(0,"div",0,1),Je(2),v()),2&t){const e=i.id,n=V();S("id",n.id)("ngClass",n._classList)("@panelAnimation",n.isOpen?"visible":"hidden"),st("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(e))}}const OZ=["*"],PZ=zi("panelAnimation",[Zt("void, hidden",Xe({opacity:0,transform:"scaleY(0.8)"})),Wt(":enter, hidden => visible",[t1([jt("0.03s linear",Xe({opacity:1})),jt("0.12s cubic-bezier(0, 0, 0.2, 1)",Xe({transform:"scaleY(1)"}))])]),Wt(":leave, visible => hidden",[jt("0.075s linear",Xe({opacity:0}))])]);let LZ=0;class NZ{constructor(i,e){this.source=i,this.option=e}}const BZ=qs(class{}),ZR=new oe("mat-autocomplete-default-options",{providedIn:"root",factory:function VZ(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1}}});let HZ=(()=>{class t extends BZ{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=He(e)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(e){this._autoSelectActiveOption=He(e)}set classList(e){this._classList=e&&e.length?function _q(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=kt.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this._autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this._autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.optionSelected=new Ce,this.opened=new Ce,this.closed=new Ce,this.optionActivated=new Ce,this._classList={},this.id="mat-autocomplete-"+LZ++,this.inertGroups=o?.SAFARI||!1}ngAfterContentInit(){this._keyManager=new PI(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 NZ(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)(x(Ut),x(Ie),x(ZR),x(wi))},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&(rt(yi,7),rt(FZ,5)),2&e){let r;Se(r=De())&&(n.template=r.first),Se(r=De())&&(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})(),UZ=(()=>{class t extends HZ{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=He(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=Ct(t)))(n||t)}}(),t.\u0275cmp=Le({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(e,n,r){if(1&e&&(It(r,Jy,5),It(r,Qs,5)),2&e){let o;Se(o=De())&&(n.optionGroups=o),Se(o=De())&&(n.options=o)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{disableRipple:"disableRipple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matAutocomplete"],features:[We([{provide:Zy,useExisting:t}]),pe],ngContentSelectors:OZ,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&&(hi(),P(0,RZ,3,5,"ng-template"))},dependencies:[os],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:[PZ]},changeDetection:0}),t})();const zZ={provide:Kn,useExisting:Qt(()=>eO),multi:!0},JR=new oe("mat-autocomplete-scroll-strategy"),jZ={provide:JR,deps:[ar],useFactory:function $Z(t){return()=>t.scrollStrategies.reposition()}};let WZ=(()=>{class t{get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=He(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=kt.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new ke,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=Ad(()=>{const f=this.autocomplete?this.autocomplete.options:null;return f?f.changes.pipe(xn(f),vn(()=>Pi(...f.map(m=>m.onSelectionChange)))):this._zone.onStable.pipe(si(1),vn(()=>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 Pi(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Kt(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Kt(()=>this._overlayAttached)):qe()).pipe(Ze(e=>e instanceof ZI?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Pi(Jo(this._document,"click"),Jo(this._document,"auxclick"),Jo(this._document,"touchend")).pipe(Kt(e=>{const n=no(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=or(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 Pi(this._zone.onStable.pipe(si(1)),this.autocomplete.options.changes.pipe($i(()=>this._positionStrategy.reapplyLastPosition()),h1(0))).pipe(vn(()=>(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)),si(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 ds(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 Xd({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=eF(a.offsetTop,a.offsetHeight,n._getScrollTop(),n.panel.nativeElement.offsetHeight);n._setScrollTop(s)}}}_handleOverlayEvents(e){e.keydownEvents().subscribe(n=>{(27===n.keyCode&&!or(n)||38===n.keyCode&&or(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)(x(Ie),x(ar),x(Oi),x(ze),x(Ut),x(JR),x(un,8),x(C0,9),x(ot,8),x(ea),x(ZR,8))},t.\u0275dir=Q({type:t,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[Ai]}),t})(),eO=(()=>{class t extends WZ{constructor(){super(...arguments),this._aboveClass="mat-mdc-autocomplete-panel-above"}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(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&&z("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&&st("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([zZ]),pe]}),t})(),GZ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({providers:[jZ],imports:[qc,Lg,yt,Xn,hs,Lg,yt]}),t})();const tO=Ko({passive:!0});let qZ=(()=>{class t{constructor(e,n){this._platform=e,this._ngZone=n,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return qr;const n=nn(e),r=this._monitoredElements.get(n);if(r)return r.subject;const o=new ke,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,tO),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:o,unlisten:()=>{n.removeEventListener("animationstart",s,tO)}}),o}stopMonitoring(e){const n=nn(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)(X(wi),X(ze))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),XZ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({}),t})();const QZ=new oe("MAT_INPUT_VALUE_ACCESSOR"),YZ=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let KZ=0;const ZZ=jI(class{constructor(t,i,e,n){this._defaultErrorStateMatcher=t,this._parentForm=i,this._parentFormGroup=e,this.ngControl=n,this.stateChanges=new ke}});let sl=(()=>{class t extends ZZ{get disabled(){return this._disabled}set disabled(e){this._disabled=He(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(ou.required)??!1}set required(e){this._required=He(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&CI().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=He(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-"+KZ++,this.focused=!1,this.stateChanges=new ke,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=>CI().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(){YZ.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)(x(Ie),x(wi),x(Da,10),x(rl,8),x(Zs,8),x(WI),x(QZ,10),x(qZ),x(ze),x(C0,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&&z("focus",function(){return n._focusChanged(!0)})("blur",function(){return n._focusChanged(!1)})("input",function(){return n._onInput()}),2&e&&(xa("id",n.id)("disabled",n.disabled)("required",n.required),st("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),Ye("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:w0,useExisting:t}]),pe,Ai]}),t})(),JZ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[yt,k0,k0,XZ,yt]}),t})();function eJ(t,i){if(1&t&&(_(0,"mat-label"),k(1),v()),2&t){const e=V();w(1),Ge(e.binding.title)}}function tJ(t,i){if(1&t){const e=Ne();_(0,"button",7),z("click",function(){return _e(e),be(V().clearInput())}),_(1,"mat-icon"),k(2,"close"),v()()}}function iJ(t,i){1&t&&(_(0,"mat-option",8),ge(1,"mat-spinner",9),v())}function nJ(t,i){if(1&t&&(_(0,"mat-option",10)(1,"span",11),k(2),v(),k(3),v()),2&t){const e=i.$implicit;S("value",e),w(2),Ge(e.code),w(1),it("",e.display," ")}}let pf=(()=>{class t{static#e=this.nextId=0;constructor(e){this.terminologyService=e,this.term="",this.selectionChange=new Ce,this.formControl=new DK,this.loading=!1,this.selectedConcept={},this.stateChanges=new ke,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($c(300),Ws(),vn(e=>e?.length>=3?(this.loading=!0,this.terminologyService.expandValueSet(this.binding.ecl,e,0,50)):qe([])),$i(e=>{this.loading=!1}))}onTermChange(){this.formControl.setValue(this.term)}optionSelected(e){this.selectedConcept=e,this.selectionChange.emit(e),this.onChange(e)}clearInput(){this.formControl.reset(),this.selectedConcept={code:"",display:""},this.selectionChange.emit(this.selectedConcept)}change(e){const n=e?.option?.value;n&&(this.optionSelected({code:n.code,display:n.display}),this.formControl.setValue(n.display))}static#t=this.\u0275fac=function(n){return new(n||t)(x(Yn))};static#i=this.\u0275cmp=Le({type:t,selectors:[["app-autocomplete-binding"]],inputs:{binding:"binding",term:"term"},outputs:{selectionChange:"selectionChange"},features:[We([{provide:Kn,useExisting:Qt(()=>t),multi:!0},{provide:w0,useExisting:t}]),Ai],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(n,r){if(1&n&&(_(0,"mat-form-field"),P(1,eJ,2,1,"mat-label",0),ge(2,"input",1),_(3,"mat-hint"),k(4),v(),P(5,tJ,3,0,"button",2),_(6,"mat-autocomplete",3,4),z("optionSelected",function(a){return r.change(a)}),P(8,iJ,2,0,"mat-option",5),P(9,nJ,4,3,"mat-option",6),Cd(10,"async"),v()()),2&n){const o=wt(7);let a;w(1),S("ngIf",r.binding.title),w(1),_d("placeholder",(null==r.formControl.value?null:r.formControl.value.display)||r.binding.title||"Search..."),S("formControl",r.formControl)("matAutocomplete",o),w(2),Ge(r.binding.note),w(1),S("ngIf",r.formControl.value),w(3),S("ngIf",r.loading),w(1),S("ngForOf",null==(a=Sp(10,8,r.autoFilter))||null==a.expansion?null:a.expansion.contains)}},dependencies:[kr,Yi,Zo,oo,Ea,Do,al,jR,UZ,Qs,eO,Yd,sl,Sa,So,_0,Rx],styles:[".chip[_ngcontent-%COMP%]{display:inline-flex;flex-direction:row;background-color:#f4a460;border:none;cursor:default;height:36px;outline:none;padding:0;font-size:14px;color:#fff;font-family:Open Sans,sans-serif;white-space:nowrap;align-items:center;border-radius:16px;vertical-align:middle;text-decoration:none;justify-content:center;margin-right:20px}.chip-content[_ngcontent-%COMP%]{cursor:inherit;display:flex;align-items:center;-webkit-user-select:none;user-select:none;white-space:nowrap;padding-left:12px;padding-right:12px}mat-form-field[_ngcontent-%COMP%]{width:100%}.code[_ngcontent-%COMP%]{font-size:small;font-weight:lighter;margin-right:15px}.id-icon[_ngcontent-%COMP%]{margin-left:10px;color:#2e8b57}mat-hint[_ngcontent-%COMP%]{font-size:12px}"]})}return t})();function rJ(t,i){1&t&&ge(0,"mat-spinner",20)}function oJ(t,i){1&t&&(_(0,"th",21),k(1," Date "),v())}function aJ(t,i){if(1&t&&(_(0,"td",22),k(1),Cd(2,"date"),v()),2&t){const e=i.$implicit;w(1),it(" ",Gv(2,1,e.date,"yyyy-MM-dd")," ")}}function sJ(t,i){1&t&&(_(0,"th",21),k(1," ConceptId "),v())}function cJ(t,i){if(1&t&&(_(0,"td",22),k(1),v()),2&t){const e=i.$implicit;w(1),it(" ",e.code," ")}}function lJ(t,i){1&t&&(_(0,"th",21),k(1," Term "),v())}function dJ(t,i){1&t&&(_(0,"span",24),k(1,"Allergy / Intolerance condition"),v())}function uJ(t,i){if(1&t&&(_(0,"td",22),P(1,dJ,2,0,"span",23),k(2),v()),2&t){const e=i.$implicit;w(1),S("ngIf",e.allergy),w(1),it(" ",e.display," ")}}function hJ(t,i){1&t&&ge(0,"tr",25)}function fJ(t,i){1&t&&ge(0,"tr",26)}function mJ(t,i){1&t&&(_(0,"th",21),k(1," ConceptId "),v())}function pJ(t,i){if(1&t&&(_(0,"td",22),k(1),v()),2&t){const e=i.$implicit;w(1),it(" ",e.code," ")}}function gJ(t,i){1&t&&(_(0,"th",21),k(1," Term "),v())}function _J(t,i){if(1&t&&(_(0,"td",22),k(1),v()),2&t){const e=i.$implicit;w(1),it(" ",e.display," ")}}function bJ(t,i){1&t&&ge(0,"tr",25)}function vJ(t,i){1&t&&ge(0,"tr",26)}const xJ=[],yJ=[];let iO=(()=>{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=[...xJ],this.dataSource=new wJ(this.dataToDisplay),this.loading=!1,this.displayedColumns2=["code","display"],this.dataToDisplay2=[...yJ],this.dataSource2=new CJ(this.dataToDisplay2)}updateProblem(e){var n=this;return fi(function*(){n.selectedProblemSct=e})()}addProblem(e){var n=this;return fi(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 fi(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 fi(function*(){return Sr((yield n.terminologyService.expandValueSet("<<418038007 |Propensity to adverse reactions to substance| OR <<420134006 |Propensity to adverse reaction (finding)|",e.code,0,1)).pipe(Ze(o=>o)))})()}getAllergySubstance(e){var n=this;return fi(function*(){return Sr((yield n.terminologyService.expandValueSet(`${e.code} |${e.display}| . (246075003 |Causative agent (attribute)| OR 47429007 |Associated with (attribute)|)`,"")).pipe(Ze(o=>o)))})()}static#e=this.\u0275fac=function(n){return new(n||t)(x(Yn))};static#t=this.\u0275cmp=Le({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(n,r){if(1&n&&(_(0,"mat-card",0)(1,"div",1)(2,"div",2)(3,"h4"),k(4,"Problem List "),_(5,"button",3)(6,"mat-icon"),k(7,"info"),v()(),_(8,"mat-menu",null,4)(10,"span",5),z("click",function(a){return a.stopPropagation()}),_(11,"h4"),k(12,"Problem list"),v(),_(13,"p"),k(14,"Allergy or intolerance can also be recorded in the EHR as a problem. The problem list is normally restricted to SNOMED CT concepts from three hierarchies \u2013 Clinical finding, Event and Finding with explicit context. This corresponds either to the FHIR finding based AllergyIntolerance resource data model or the FHIR Condition resource."),v(),_(15,"p"),k(16,"For practical guidance using SNOMED CT to document hypersensitivity to specific substances in a problem list, it is suggested to map to the appropriate concepts under the 473011001 |Allergic condition (finding)|hierarchies. This is due to the lack of sufficient content under 609433001 |Hypersensitivity disposition (finding)|and 421961002 |Hypersensitivity reaction (disorder)| and that many of the concepts under 609328004 |Allergic disposition (finding)|and 419076005 |Allergic reaction (disorder)| have unclear mechanisms which may actually represent non-allergic hypersensitivity. Please note that SNOMED international does not plan to create new children concepts of hypersensitivity disposition to specific substances unless more than one Member country would submit a request for them to answer to an active use-case."),v(),_(17,"p"),k(18,"Almost all allergy concepts are modeled by substances in SNOMED CT. A very small number of allergy concepts are modeled by products but with explicit description for the specific intended meaning. Records of allergy to multiple substances or to multi-ingredient products should be recoded at the product level and updated when more specific information becomes available (e.g., positive sensitivity test to one specific ingredient of the mix)."),v(),_(19,"p"),k(20,"Vaccine allergy is an example where allergy concepts are modeled using a product concept. For example, \u2018Allergy to component of vaccine product (finding)\u2019 with a synonym \u2018vaccine allergy\u2019 has been modeled by vaccine product. The concept represents that allergy is caused by any substance in a vaccine product."),v(),_(21,"p"),k(22,"To record the level of certainty or verification status, it is recommended to use additional data elements in the EHR information model. Even though it is possible to utilize the SNOMED CT model for \u2018situation with explicit context\u2019 to express certainty, this is not recommended due to potential ambiguity. For example, \u201csuspected penicillin allergy\u201d can mean uncertainty with the condition (is it real allergy?) or with the causative agent (is it penicillin?). Even though SNOMED CT editorial guideline is clear that the first interpretation is correct, it is better to use other methods to represent the uncertainty to avoid confusion."),v(),_(23,"p"),k(24,"For more information check the "),_(25,"a",6),k(26,"Implementation Guide"),v(),k(27," developed by the SNOMED International Allergy Clinical Reference Group."),v()()()(),_(28,"div",7)(29,"div",8)(30,"app-autocomplete-binding",9),z("selectionChange",function(a){return r.updateProblem(a)}),v()(),_(31,"div",8)(32,"button",10),z("click",function(){return r.addProblem()}),k(33,"Add problem"),v()(),_(34,"div",8),P(35,rJ,1,0,"mat-spinner",11),v()(),_(36,"table",12),di(37,13),P(38,oJ,2,0,"th",14),P(39,aJ,3,4,"td",15),ui(),di(40,16),P(41,sJ,2,0,"th",14),P(42,cJ,2,1,"td",15),ui(),di(43,17),P(44,lJ,2,0,"th",14),P(45,uJ,3,2,"td",15),ui(),P(46,hJ,1,0,"tr",18),P(47,fJ,1,0,"tr",19),v()(),_(48,"div",2)(49,"h4"),k(50,"Substances the patient is allergic to:"),v(),_(51,"table",12),di(52,16),P(53,mJ,2,0,"th",14),P(54,pJ,2,1,"td",15),ui(),di(55,17),P(56,gJ,2,0,"th",14),P(57,_J,2,1,"td",15),ui(),P(58,bJ,1,0,"tr",18),P(59,vJ,1,0,"tr",19),v()()()()),2&n){const o=wt(9);w(5),S("matMenuTriggerFor",o),w(5),S("disableRipple",!0),w(20),S("binding",r.problemBinding)("term",r.term),w(5),S("ngIf",r.loading),w(1),S("dataSource",r.dataSource),w(10),S("matHeaderRowDef",r.displayedColumns),w(1),S("matRowDefColumns",r.displayedColumns),w(4),S("dataSource",r.dataSource2),w(7),S("matHeaderRowDef",r.displayedColumns2),w(1),S("matRowDefColumns",r.displayedColumns2)}},dependencies:[Yi,Dr,Zo,oo,Qc,ka,Yc,Yd,m1,eu,Zc,tu,Jc,Kc,iu,el,tl,nu,ru,pf,Ox],styles:["#main-card[_ngcontent-%COMP%]{padding:10px}app-autocomplete-binding[_ngcontent-%COMP%]{display:block;min-width:500px}.container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;margin:10px 0;gap:10px}.container-space[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start;margin:10px 0;gap:10px}.problem-list[_ngcontent-%COMP%]{width:60%}.tag[_ngcontent-%COMP%]{position:absolute;top:0;right:0;padding-left:10px;padding-right:10px;margin-top:5px}td[_ngcontent-%COMP%]{position:relative}.pill[_ngcontent-%COMP%]{display:inline-block;font-size:10px;background-color:orange;color:#fff;padding:4px 8px;border-radius:20px;position:absolute;top:0;right:0;margin-top:1rem}.mat-column-display[_ngcontent-%COMP%]{min-width:350px}.long-tooltip[_ngcontent-%COMP%]{padding-left:3rem;padding-right:3rem;font-weight:lighter;font-size:.9rem}"]})}return t})();class wJ extends Sy{constructor(i){super(),this._dataStream=new cI,this.setData(i)}connect(){return this._dataStream}disconnect(){}setData(i){this._dataStream.next(i)}}class CJ extends Sy{constructor(i){super(),this._dataStream=new cI,this.setData(i)}connect(){return this._dataStream}disconnect(){}setData(i){this._dataStream.next(i)}}function kJ(t,i){}const SJ=function(t){return{animationDuration:t}},DJ=function(t,i){return{value:t,params:i}};function EJ(t,i){1&t&&Je(0)}const nO=["*"],TJ=["tabListContainer"],MJ=["tabList"],AJ=["tabListInner"],IJ=["nextPaginator"],FJ=["previousPaginator"],RJ=["tabBodyWrapper"],OJ=["tabHeader"];function PJ(t,i){}function LJ(t,i){1&t&&P(0,PJ,0,0,"ng-template",14),2&t&&S("cdkPortalOutlet",V().$implicit.templateLabel)}function NJ(t,i){1&t&&k(0),2&t&&Ge(V().$implicit.textLabel)}function BJ(t,i){if(1&t){const e=Ne();_(0,"div",6,7),z("click",function(){const r=_e(e),o=r.$implicit,a=r.index,s=V(),c=wt(1);return be(s._handleClick(o,c,a))})("cdkFocusChange",function(r){const a=_e(e).index;return be(V()._tabFocusChanged(r,a))}),ge(2,"span",8)(3,"div",9),_(4,"span",10)(5,"span",11),P(6,LJ,1,1,"ng-template",12),P(7,NJ,1,1,"ng-template",null,13,Pc),v()()()}if(2&t){const e=i.$implicit,n=i.index,r=wt(1),o=wt(8),a=V();Ye("mdc-tab--active",a.selectedIndex===n),S("id",a._getTabLabelId(n))("ngClass",e.labelClass)("disabled",e.disabled)("fitInkBarToContent",a.fitInkBarToContent),st("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),w(3),S("matRippleTrigger",r)("matRippleDisabled",e.disabled||a.disableRipple),w(3),S("ngIf",e.templateLabel)("ngIfElse",o)}}function VJ(t,i){if(1&t){const e=Ne();_(0,"mat-tab-body",15),z("_onCentered",function(){return _e(e),be(V()._removeTabBodyWrapperHeight())})("_onCentering",function(r){return _e(e),be(V()._setTabBodyWrapperHeight(r))}),v()}if(2&t){const e=i.$implicit,n=i.index,r=V();Ye("mat-mdc-tab-body-active",r.selectedIndex===n),S("id",r._getTabContentId(n))("ngClass",e.bodyClass)("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),st("tabindex",null!=r.contentTabIndex&&r.selectedIndex===n?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(n))}}const HJ={translateTab:zi("translateTab",[Zt("center, void, left-origin-center, right-origin-center",Xe({transform:"none"})),Zt("left",Xe({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Zt("right",Xe({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Wt("* => left, * => right, left => center, right => center",jt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Wt("void => left-origin-center",[Xe({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),jt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Wt("void => right-origin-center",[Xe({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),jt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let UJ=(()=>{class t extends us{constructor(e,n,r,o){super(e,n,o),this._host=r,this._centeringSub=kt.EMPTY,this._leavingSub=kt.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(xn(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)(x(Is),x(Oi),x(Qt(()=>rO)),x(ot))},t.\u0275dir=Q({type:t,selectors:[["","matTabBodyHost",""]],features:[pe]}),t})(),zJ=(()=>{class t{set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(e,n,r){this._elementRef=e,this._dir=n,this._dirChangeSubscription=kt.EMPTY,this._translateTabComplete=new ke,this._onCentering=new Ce,this._beforeCentering=new Ce,this._afterLeavingCenter=new Ce,this._onCentered=new Ce(!0),this.animationDuration="500ms",this.preserveContent=!1,n&&(this._dirChangeSubscription=n.change.subscribe(o=>{this._computePositionAnimationState(o),r.markForCheck()})),this._translateTabComplete.pipe(Ws((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)(x(Ie),x(un,8),x(Ut))},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})(),rO=(()=>{class t extends zJ{constructor(e,n,r){super(e,n,r)}}return t.\u0275fac=function(e){return new(e||t)(x(Ie),x(un,8),x(Ut))},t.\u0275cmp=Le({type:t,selectors:[["mat-tab-body"]],viewQuery:function(e,n){if(1&e&&rt(us,5),2&e){let r;Se(r=De())&&(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&&(_(0,"div",0,1),z("@translateTab.start",function(o){return n._onTranslateTabStarted(o)})("@translateTab.done",function(o){return n._translateTabComplete.next(o)}),P(2,kJ,0,0,"ng-template",2),v()),2&e&&S("@translateTab",Wv(3,DJ,n._position,Ja(1,SJ,n.animationDuration)))},dependencies:[UJ],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:[HJ.translateTab]}}),t})();const $J=new oe("MatTabContent");let jJ=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(x(yi))},t.\u0275dir=Q({type:t,selectors:[["","matTabContent",""]],features:[We([{provide:$J,useExisting:t}])]}),t})();const WJ=new oe("MatTabLabel"),oO=new oe("MAT_TAB");let GJ=(()=>{class t extends DX{constructor(e,n,r){super(e,n),this._closestTab=r}}return t.\u0275fac=function(e){return new(e||t)(x(yi),x(Oi),x(oO,8))},t.\u0275dir=Q({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[We([{provide:WJ,useExisting:t}]),pe]}),t})();const j1="mdc-tab-indicator--active",aO="mdc-tab-indicator--no-transition";class qJ{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 XJ(t){return class extends t{constructor(...i){super(...i),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(i){const e=He(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(j1);const n=e.getBoundingClientRect(),r=i.width/n.width,o=i.left-n.left;e.classList.add(aO),this._inkBarContentElement.style.setProperty("transform",`translateX(${o}px) scaleX(${r})`),e.getBoundingClientRect(),e.classList.remove(aO),e.classList.add(j1),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove(j1)}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 YJ=cs(class{}),KJ=XJ((()=>{class t extends YJ{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)(x(Ie))},t.\u0275dir=Q({type:t,features:[pe]}),t})());let sO=(()=>{class t extends KJ{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,n){2&e&&(st("aria-disabled",!!n.disabled),Ye("mat-mdc-tab-disabled",n.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[pe]}),t})();const ZJ=cs(class{}),cO=new oe("MAT_TAB_GROUP");let JJ=(()=>{class t extends ZJ{get content(){return this._contentPortal}constructor(e,n){super(),this._viewContainerRef=e,this._closestTabGroup=n,this.textLabel="",this._contentPortal=null,this._stateChanges=new ke,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 ds(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return t.\u0275fac=function(e){return new(e||t)(x(Oi),x(cO,8))},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&rt(yi,7),2&e){let r;Se(r=De())&&(n._implicitContent=r.first)}},inputs:{textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[pe,Ai]}),t})(),S0=(()=>{class t extends JJ{get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(t)))(n||t)}}(),t.\u0275cmp=Le({type:t,selectors:[["mat-tab"]],contentQueries:function(e,n,r){if(1&e&&(It(r,jJ,7,yi),It(r,GJ,5)),2&e){let o;Se(o=De())&&(n._explicitContent=o.first),Se(o=De())&&(n.templateLabel=o.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[We([{provide:oO,useExisting:t}]),pe],ngContentSelectors:nO,decls:1,vars:0,template:function(e,n){1&e&&(hi(),P(0,EJ,1,0,"ng-template"))},encapsulation:2}),t})();const lO=Ko({passive:!0});let iee=(()=>{class t{get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=He(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=On(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 ke,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new ke,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Ce,this.indexFocused=new Ce,a.runOutsideAngular(()=>{Jo(e.nativeElement,"mouseleave").pipe(pt(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){Jo(this._previousPaginator.nativeElement,"touchstart",lO).pipe(pt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Jo(this._nextPaginator.nativeElement,"touchstart",lO).pipe(pt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:qe("ltr"),n=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new qy(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(si(1)).subscribe(r),Pi(e,n,this._items.changes,this._itemsResized()).pipe(pt(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?qr:this._items.changes.pipe(xn(this._items),vn(e=>new ai(n=>this._ngZone.runOutsideAngular(()=>{const r=new ResizeObserver(o=>n.next(o));return e.forEach(o=>r.observe(o.elementRef.nativeElement)),()=>{r.disconnect()}}))),zy(1),Kt(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(!or(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(),zg(650,100).pipe(pt(Pi(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)(x(Ie),x(Ut),x(ea),x(un,8),x(ze),x(wi),x(Ii,8))},t.\u0275dir=Q({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),nee=(()=>{class t extends iee{get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=He(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)(x(Ie),x(Ut),x(ea),x(un,8),x(ze),x(wi),x(Ii,8))},t.\u0275dir=Q({type:t,inputs:{disableRipple:"disableRipple"},features:[pe]}),t})(),ree=(()=>{class t extends nee{constructor(e,n,r,o,a,s,c){super(e,n,r,o,a,s,c)}ngAfterContentInit(){this._inkBar=new qJ(this._items),super.ngAfterContentInit()}}return t.\u0275fac=function(e){return new(e||t)(x(Ie),x(Ut),x(ea),x(un,8),x(ze),x(wi),x(Ii,8))},t.\u0275cmp=Le({type:t,selectors:[["mat-tab-header"]],contentQueries:function(e,n,r){if(1&e&&It(r,sO,4),2&e){let o;Se(o=De())&&(n._items=o)}},viewQuery:function(e,n){if(1&e&&(rt(TJ,7),rt(MJ,7),rt(AJ,7),rt(IJ,5),rt(FJ,5)),2&e){let r;Se(r=De())&&(n._tabListContainer=r.first),Se(r=De())&&(n._tabList=r.first),Se(r=De())&&(n._tabListInner=r.first),Se(r=De())&&(n._nextPaginator=r.first),Se(r=De())&&(n._previousPaginator=r.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(e,n){2&e&&Ye("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:nO,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&&(hi(),_(0,"button",0,1),z("click",function(){return n._handlePaginatorClick("before")})("mousedown",function(o){return n._handlePaginatorPress("before",o)})("touchend",function(){return n._stopInterval()}),ge(2,"div",2),v(),_(3,"div",3,4),z("keydown",function(o){return n._handleKeydown(o)}),_(5,"div",5,6),z("cdkObserveContent",function(){return n._onContentChanges()}),_(7,"div",7,8),Je(9),v()()(),_(10,"button",9,10),z("mousedown",function(o){return n._handlePaginatorPress("after",o)})("click",function(){return n._handlePaginatorClick("after")})("touchend",function(){return n._stopInterval()}),ge(12,"div",2),v()),2&e&&(Ye("mat-mdc-tab-header-pagination-disabled",n._disableScrollBefore),S("matRippleDisabled",n._disableScrollBefore||n.disableRipple)("disabled",n._disableScrollBefore||null),w(3),Ye("_mat-animation-noopable","NoopAnimations"===n._animationMode),w(7),Ye("mat-mdc-tab-header-pagination-disabled",n._disableScrollAfter),S("matRippleDisabled",n._disableScrollAfter||n.disableRipple)("disabled",n._disableScrollAfter||null))},dependencies:[ko,$y],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 dO=new oe("MAT_TABS_CONFIG");let oee=0;const aee=Gs(qs(class{constructor(t){this._elementRef=t}}),"primary");let see=(()=>{class t extends aee{get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=He(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=On(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=On(e,null)}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=He(e)}get preserveContent(){return this._preserveContent}set preserveContent(e){this._preserveContent=He(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 Rs,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=kt.EMPTY,this._tabLabelSubscription=kt.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new Ce,this.focusChange=new Ce,this.animationDone=new Ce,this.selectedTabChange=new Ce(!0),this._groupId=oee++,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(xn(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 cee;return n.index=e,this._tabs&&this._tabs.length&&(n.tab=this._tabs.toArray()[e]),n}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Pi(...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)(x(Ie),x(Ut),x(dO,8),x(Ii,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})(),gf=(()=>{class t extends see{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=He(e),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(e){this._stretchTabs=He(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)(x(Ie),x(Ut),x(dO,8),x(Ii,8))},t.\u0275cmp=Le({type:t,selectors:[["mat-tab-group"]],contentQueries:function(e,n,r){if(1&e&&It(r,S0,5),2&e){let o;Se(o=De())&&(n._allTabs=o)}},viewQuery:function(e,n){if(1&e&&(rt(RJ,5),rt(OJ,5)),2&e){let r;Se(r=De())&&(n._tabBodyWrapper=r.first),Se(r=De())&&(n._tabHeader=r.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:6,hostBindings:function(e,n){2&e&&Ye("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:cO,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&&(_(0,"mat-tab-header",0,1),z("indexFocused",function(o){return n._focusChanged(o)})("selectFocusedIndex",function(o){return n.selectedIndex=o}),P(2,BJ,9,17,"div",2),v(),_(3,"div",3,4),P(5,VJ,1,11,"mat-tab-body",5),v()),2&e&&(S("selectedIndex",n.selectedIndex||0)("disableRipple",n.disableRipple)("disablePagination",n.disablePagination),w(2),S("ngForOf",n._tabs),w(1),Ye("_mat-animation-noopable","NoopAnimations"===n._animationMode),w(2),S("ngForOf",n._tabs))},dependencies:[os,kr,Yi,us,ko,jq,rO,sO,ree],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 cee{}let lee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[Xn,yt,jc,Xs,Mg,Yy,yt]}),t})();var ps=gc(327);class dee{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 W1=(()=>{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 dee(e,this._document)}}return t.\u0275fac=function(e){return new(e||t)(X(ot))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const uee=new oe("HighlightJs-Config");let D0=(()=>{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)(x(Ie),x(ta,8),x(ot),x(uee,8),x(ze))},t.\u0275dir=Q({type:t,selectors:[["","highlight-js",""]],hostVars:2,hostBindings:function(e,n){2&e&&en("display","simple"===n.mode?"none":null)},inputs:{options:"options",lang:"lang",code:"code",mode:"mode"},exportAs:["highlightJs"],standalone:!0}),t})(),hee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[$1]}),t})();const fee=["trigger"],mee=["panel"];function pee(t,i){if(1&t&&(_(0,"span",10),k(1),v()),2&t){const e=V();w(1),Ge(e.placeholder)}}function gee(t,i){if(1&t&&(_(0,"span",14),k(1),v()),2&t){const e=V(2);w(1),Ge(e.triggerValue)}}function _ee(t,i){1&t&&Je(0,0,["*ngSwitchCase","true"])}function bee(t,i){1&t&&(_(0,"span",11),P(1,gee,2,1,"span",12),P(2,_ee,1,0,"ng-content",13),v()),2&t&&(S("ngSwitch",!!V().customTrigger),w(2),S("ngSwitchCase",!0))}function vee(t,i){if(1&t){const e=Ne();qa(),Gl(),_(0,"div",15,16),z("@transformPanel.done",function(r){return _e(e),be(V()._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){return _e(e),be(V()._handleKeydown(r))}),Je(2,1),v()}if(2&t){const e=V();(function YE(t,i,e){Wo(Zr,va,ld(ve(),t,i,e),!0)})("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),S("ngClass",e.panelClass)("@transformPanel","showing"),st("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const xee=[[["mat-select-trigger"]],"*"],yee=["mat-select-trigger","*"],wee={transformPanelWrap:zi("transformPanelWrap",[Wt("* => void",Bg("@transformPanel",[Ng()],{optional:!0}))]),transformPanel:zi("transformPanel",[Zt("void",Xe({opacity:0,transform:"scale(1, 0.8)"})),Wt("void => showing",jt("120ms cubic-bezier(0, 0, 0.2, 1)",Xe({opacity:1,transform:"scale(1, 1)"}))),Wt("* => void",jt("100ms linear",Xe({opacity:0})))])};let uO=0;const hO=new oe("mat-select-scroll-strategy"),kee=new oe("MAT_SELECT_CONFIG"),See={provide:hO,deps:[ar],useFactory:function Cee(t){return()=>t.scrollStrategies.reposition()}},Dee=new oe("MatSelectTrigger");class Eee{constructor(i,e){this.source=i,this.value=e}}const Tee=qs(qh(cs(jI(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 ke}}))));let Mee=(()=>{class t extends Tee{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(ou.required)??!1}set required(e){this._required=He(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=He(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=He(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=On(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,b)=>p===b,this._uid="mat-select-"+uO++,this._triggerAriaLabelledBy=null,this._destroy=new ke,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+uO++,this._panelDoneAnimatingStream=new ke,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=Ad(()=>{const p=this.options;return p?p.changes.pipe(xn(p),vn(()=>Pi(...p.map(b=>b.onSelectionChange)))):this._ngZone.onStable.pipe(si(1),vn(()=>this.optionSelectionChanges))}),this.openedChange=new Ce,this._openedStream=this.openedChange.pipe(Kt(p=>p),Ze(()=>{})),this._closedStream=this.openedChange.pipe(Kt(p=>!p),Ze(()=>{})),this.selectionChange=new Ce,this.valueChange=new Ce,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 Ey(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Ws(),pt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(pt(this._destroy)).subscribe(e=>{e.added.forEach(n=>n.select()),e.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(xn(null),pt(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&&!or(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||or(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(si(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 PI(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=Pi(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(pt(e)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Pi(...this.options.map(n=>n._stateChanges)).pipe(pt(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)(x(ea),x(Ut),x(ze),x(WI),x(Ie),x(un,8),x(rl,8),x(Zs,8),x(C0,8),x(Da,10),_o("tabindex"),x(hO),x(Xy),x(kee,8))},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&(rt(fee,5),rt(mee,5),rt(CF,5)),2&e){let r;Se(r=De())&&(n.trigger=r.first),Se(r=De())&&(n.panel=r.first),Se(r=De())&&(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,Ai]}),t})(),_f=(()=>{class t extends Mee{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(pt(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:eF(a.offsetTop,a.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new Eee(this,e)}_getOverlayWidth(){return(this._preferredOverlayOrigin instanceof d1?this._preferredOverlayOrigin.elementRef:this._preferredOverlayOrigin||this._elementRef).nativeElement.getBoundingClientRect().width}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=He(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=Ct(t)))(n||t)}}(),t.\u0275cmp=Le({type:t,selectors:[["mat-select"]],contentQueries:function(e,n,r){if(1&e&&(It(r,Dee,5),It(r,Qs,5),It(r,Jy,5)),2&e){let o;Se(o=De())&&(n.customTrigger=o.first),Se(o=De())&&(n.options=o),Se(o=De())&&(n.optionGroups=o)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(e,n){1&e&&z("keydown",function(o){return n._handleKeydown(o)})("focus",function(){return n._onFocus()})("blur",function(){return n._onBlur()}),2&e&&(st("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()),Ye("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:w0,useExisting:t},{provide:Zy,useExisting:t}]),pe],ngContentSelectors:yee,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&&(hi(xee),_(0,"div",0,1),z("click",function(){return n.toggle()}),_(3,"div",2),P(4,pee,2,1,"span",3),P(5,bee,3,2,"span",4),v(),_(6,"div",5)(7,"div",6),qa(),_(8,"svg",7),ge(9,"path",8),v()()()(),P(10,vee,3,9,"ng-template",9),z("backdropClick",function(){return n.close()})("attach",function(){return n._onAttached()})("detach",function(){return n.close()})),2&e){const r=wt(1);st("aria-owns",n.panelOpen?n.id+"-panel":null),w(3),S("ngSwitch",n.empty),st("id",n._valueId),w(1),S("ngSwitchCase",!0),w(1),S("ngSwitchCase",!1),w(5),S("cdkConnectedOverlayPanelClass",n._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",n._scrollStrategy)("cdkConnectedOverlayOrigin",n._preferredOverlayOrigin||r)("cdkConnectedOverlayOpen",n.panelOpen)("cdkConnectedOverlayPositions",n._positions)("cdkConnectedOverlayWidth",n._overlayWidth)}},dependencies:[os,gh,Fx,mM,CF,d1],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:[wee.transformPanel]},changeDetection:0}),t})(),Aee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({providers:[See],imports:[Xn,qc,Lg,yt,hs,k0,Lg,yt]}),t})();const Iee=["tooltip"],fO=new oe("mat-tooltip-scroll-strategy"),Oee={provide:fO,deps:[ar],useFactory:function Ree(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},Lee=new oe("mat-tooltip-default-options",{providedIn:"root",factory:function Pee(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),mO="tooltip-panel",pO=Ko({passive:!0});let zee=(()=>{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=He(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){this._disabled=He(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=On(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=On(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 ke,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(pt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(pt(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,pO)}),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 qd(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(pt(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 Ie)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(pt(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}-${mO}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(pt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(pt(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(pt(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&27===o.keyCode&&!or(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(si(1),pt(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}-${mO}-`;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,pO)})}_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){pa()},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})(),cu=(()=>{class t extends zee{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=jee,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)(x(ar),x(Ie),x(Wc),x(Oi),x(ze),x(wi),x(FI),x(ro),x(fO),x(un,8),x(Lee,8),x(ot))},t.\u0275dir=Q({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],exportAs:["matTooltip"],features:[pe]}),t})(),$ee=(()=>{class t{constructor(e,n){this._changeDetectorRef=e,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new ke,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)(x(Ut),x(Ii,8))},t.\u0275dir=Q({type:t}),t})(),jee=(()=>{class t extends $ee{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)(x(Ut),x(Ie),x(Ii,8))},t.\u0275cmp=Le({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(e,n){if(1&e&&rt(Iee,7),2&e){let r;Se(r=De())&&(n._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,n){1&e&&z("mouseleave",function(o){return n._handleMouseLeave(o)}),2&e&&en("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&&(_(0,"div",0,1),z("animationend",function(o){return n._handleAnimationEnd(o)}),_(2,"div",2),k(3),v()()),2&e&&(Ye("mdc-tooltip--multiline",n._isMultiline),S("ngClass",n.tooltipClass),w(3),Ge(n.message))},dependencies:[os],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})(),Wee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({providers:[Oee],imports:[Yy,Xn,qc,yt,yt,hs]}),t})();const Gee=["switch"],qee=["*"],Xee=new oe("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})}),Qee={provide:Kn,useExisting:Qt(()=>_O),multi:!0};class gO{constructor(i,e){this.source=i,this.checked=e}}let Yee=0;const Kee=qh(Gs(qs(cs(class{constructor(t){this._elementRef=t}}))));let Zee=(()=>{class t extends Kee{get required(){return this._required}set required(e){this._required=He(e)}get checked(){return this._checked}set checked(e){this._checked=He(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 Ce,this.toggleChange=new Ce,this.tabIndex=parseInt(o)||0,this.color=this.defaultColor=a.color||"accent",this._noopAnimations="NoopAnimations"===s,this.id=this._uniqueId=`${c}${++Yee}`}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){pa()},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})(),_O=(()=>{class t extends Zee{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 gO(this,this.checked)))}focus(){this._switchElement.nativeElement.focus()}_createChangeEvent(e){return new gO(this,e)}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}}return t.\u0275fac=function(e){return new(e||t)(x(Ie),x(ro),x(Ut),_o("tabindex"),x(Xee),x(Ii,8))},t.\u0275cmp=Le({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(e,n){if(1&e&&rt(Gee,5),2&e){let r;Se(r=De())&&(n._switchElement=r.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:11,hostBindings:function(e,n){2&e&&(xa("id",n.id),st("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Ye("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([Qee]),pe],ngContentSelectors:qee,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&&(hi(),_(0,"div",0)(1,"button",1,2),z("click",function(){return n._handleClick()}),ge(3,"div",3),_(4,"div",4)(5,"div",5)(6,"div",6),ge(7,"div",7),v(),_(8,"div",8),ge(9,"div",9),v(),_(10,"div",10),qa(),_(11,"svg",11),ge(12,"path",12),v(),_(13,"svg",13),ge(14,"path",14),v()()()()(),Gl(),_(15,"label",15),z("click",function(o){return o.stopPropagation()}),Je(16),v()()),2&e){const r=wt(2);Ye("mdc-form-field--align-end","before"==n.labelPosition),w(1),Ye("mdc-switch--selected",n.checked)("mdc-switch--unselected",!n.checked)("mdc-switch--checked",n.checked)("mdc-switch--disabled",n.disabled),S("tabIndex",n.tabIndex)("disabled",n.disabled),st("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),w(8),S("matRippleTrigger",r)("matRippleDisabled",n.disableRipple||n.disabled)("matRippleCentered",!0),w(6),S("for",n.buttonId),st("id",n._labelId)}},dependencies:[ko],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})(),bO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({}),t})(),tte=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[bO,yt,Xs,Xn,bO,yt]}),t})();function ite(t,i){if(1&t){const e=Ne();_(0,"button",14),z("click",function(){_e(e);const r=V().index;return be(V().removeReaction(r))}),_(1,"mat-icon"),k(2,"close"),v()()}}function nte(t,i){if(1&t){const e=Ne();_(0,"mat-option",15),z("click",function(){const o=_e(e).$implicit,a=V().$implicit;return be(V().reactionSeveritySelected(a,o))}),k(1),v()}if(2&t){const e=i.$implicit;S("value",e),w(1),Ge(e.display)}}function rte(t,i){if(1&t){const e=Ne();_(0,"div",2)(1,"div",3),P(2,ite,3,0,"button",4),v(),_(3,"div",5)(4,"div",6)(5,"app-autocomplete-binding",7),z("selectionChange",function(r){const a=_e(e).$implicit;return be(V().reactionManifestationSelected(a,r))}),v()(),_(6,"button",8)(7,"mat-icon"),k(8,"info"),v()(),_(9,"mat-menu",null,9)(11,"span",10),z("click",function(r){return r.stopPropagation()}),_(12,"p"),k(13,"Terminology binding:"),v(),_(14,"pre"),k(15),v()()()(),_(16,"mat-form-field",11)(17,"mat-label"),k(18,"Reaction Severity"),v(),_(19,"mat-select"),P(20,nte,2,2,"mat-option",12),v()(),_(21,"div",5)(22,"div",6)(23,"app-autocomplete-binding",7),z("selectionChange",function(r){const a=_e(e).$implicit;return be(V().reactionRouteSelected(a,r))}),v()(),_(24,"button",8)(25,"mat-icon"),k(26,"info"),v()(),_(27,"mat-menu",null,13)(29,"span",10),z("click",function(r){return r.stopPropagation()}),_(30,"p"),k(31,"Terminology binding:"),v(),_(32,"pre"),k(33),v()()()()()}if(2&t){const e=i.index,n=wt(10),r=wt(28),o=V();w(2),S("ngIf",e>0),w(3),S("binding",o.reactionManifestationBinding),w(1),S("matMenuTriggerFor",n),w(5),S("disableRipple",!0),w(4),Ge(o.reactionManifestationBinding.ecl),w(5),S("ngForOf",o.severityOptions),w(3),S("binding",o.routeBinding),w(1),S("matMenuTriggerFor",r),w(5),S("disableRipple",!0),w(4),Ge(o.routeBinding.ecl)}}let ote=(()=>{class t{constructor(){this.reactions=[],this.newManifestation=new Ce,this.severityOptions=[{code:"mild",display:"Mild",sctCode:"255604002",sctDisplay:"Mild (qualifier value)"},{code:"moderate",display:"Moderate",sctCode:"6736007",sctDisplay:"Moderate (qualifier value)"},{code:"severe",display:"Severe",sctCode:"24484000",sctDisplay:"Severe (qualifier value)"}],this.selectedSeverity={},this.reactionManifestationBinding={ecl:"<<404684003 |Clinical finding|",title:"Reaction Manifestation"},this.routeBinding={ecl:"<<284009009 |Route of administration value|",title:"Exposure Route"},this.reaction={},this.onChangeCallback=()=>{},this.onTouchedCallback=()=>{}}writeValue(e){void 0!==e&&(this.reactions=e)}setDisabledState(e){}addNewReaction(){this.reactions.push(this.reaction),this.reaction={},this.onChangeCallback(this.reactions)}removeReaction(e){this.reactions.splice(e,1),this.onChangeCallback(this.reactions)}reactionManifestationSelected(e,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}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Le({type:t,selectors:[["app-allergies-allergy-list-reaction"]],inputs:{reactions:"reactions"},outputs:{newManifestation:"newManifestation"},features:[We([{provide:Kn,useExisting:Qt(()=>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(n,r){1&n&&(P(0,rte,34,10,"div",0),_(1,"div")(2,"button",1),z("click",function(){return r.addNewReaction()}),_(3,"mat-icon"),k(4,"add"),v()()()),2&n&&S("ngForOf",r.reactions)},dependencies:[kr,Yi,Zo,oo,Qc,ka,Yc,Ea,Do,Qs,_f,cu,pf],styles:["#main-card[_ngcontent-%COMP%]{padding:10px;width:100%}.row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:-5px;align-items:flex-start}.row-centered[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:-5px;align-items:center}.column[_ngcontent-%COMP%]{flex:1;margin:5px;box-sizing:border-box}.form-field[_ngcontent-%COMP%]{width:100%}.smallest-form-field[_ngcontent-%COMP%]{width:60%;margin:5px}.small-form-field[_ngcontent-%COMP%]{width:90%;margin:5px}.mat-form-field[_ngcontent-%COMP%]{font-size:14px;padding:4px 8px;height:36px}.mat-mdc-form-field-appearance-outline[_ngcontent-%COMP%] .mat-mdc-form-field-infix[_ngcontent-%COMP%]{padding-top:0}.reaction[_ngcontent-%COMP%]{border-radius:10px;background-color:#a9bee9;padding:10px;margin-bottom:10px}#output[_ngcontent-%COMP%]{border-radius:10px;background-color:#282c34;padding:10px;position:relative}pre[_ngcontent-%COMP%] > code[_ngcontent-%COMP%]{width:45%;white-space:pre-wrap;word-wrap:break-word}#save[_ngcontent-%COMP%]{position:absolute;right:0;top:0;color:#e88c15}.button-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;width:100%}"]})}return t})();function ate(t,i){if(1&t){const e=Ne();_(0,"mat-option",31),z("click",function(){return _e(e),be(V().updateAllergyStr())}),k(1),v()}if(2&t){const e=i.$implicit;S("value",e),w(1),Ge(e.display)}}function ste(t,i){if(1&t){const e=Ne();_(0,"mat-option",31),z("click",function(){return _e(e),be(V().updateAllergyStr())}),k(1),v()}if(2&t){const e=i.$implicit;S("value",e),w(1),Ge(e.display)}}function cte(t,i){if(1&t){const e=Ne();_(0,"mat-option",31),z("click",function(){return _e(e),be(V().updateAllergyStr())}),k(1),v()}if(2&t){const e=i.$implicit;S("value",e),w(1),Ge(e.display)}}function lte(t,i){if(1&t){const e=Ne();_(0,"app-autocomplete-binding",10),z("selectionChange",function(r){return _e(e),be(V().substanceSelected(r,!0))}),v()}if(2&t){const e=V();S("binding",e.substanceBinding)("term",e.selectedSubstanceTerm)}}function dte(t,i){if(1&t){const e=Ne();_(0,"app-autocomplete-binding",10),z("selectionChange",function(r){return _e(e),be(V().substanceSelected(r))}),v()}if(2&t){const e=V();S("binding",e.refinedSubstanceBinding)("term",e.selectedSubstanceTerm)}}function ute(t,i){if(1&t&&(_(0,"pre"),k(1),v()),2&t){const e=V();w(1),Ge(e.substanceBinding.ecl)}}function hte(t,i){if(1&t&&(_(0,"pre"),k(1),v()),2&t){const e=V();w(1),Ge(e.refinedSubstanceBinding.ecl)}}function fte(t,i){if(1&t){const e=Ne();_(0,"mat-option",31),z("click",function(){return _e(e),be(V().updateAllergyStr())}),k(1),v()}if(2&t){const e=i.$implicit;S("value",e),w(1),Ge(e.display)}}function mte(t,i){if(1&t){const e=Ne();_(0,"mat-option",31),z("click",function(){return _e(e),be(V().updateAllergyStr())}),k(1),v()}if(2&t){const e=i.$implicit;S("value",e),w(1),Ge(e.display)}}const pte=function(){return{}};let gte=(()=>{class t{constructor(e,n,r){this.terminologyService=e,this.clipboard=n,this._snackBar=r,this.newProblem=new Ce,this.clinicalStatusOptions=[{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",code:"active",display:"Active"},{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",code:"inactive",display:"Inactive"},{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",code:"resolved",display:"Resolved"}],this.selectedClinicalStatus=this.clinicalStatusOptions[0],this.verificationStatusOptions=[{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",code:"unconfirmed",display:"Unconfirmed"},{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",code:"presumed",display:"Presumed"},{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",code:"confirmed",display:"Confirmed"},{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",code:"refuted",display:"Refuted"},{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",code:"entered-in-error",display:"Entered in Error"}],this.selectedVerificationStatus=this.verificationStatusOptions[0],this.intoleranceTypeOptions=[{system:"http://hl7.org/fhir/allergy-intolerance-type",code:"609433001",display:"Hypersensitivity disposition (finding)",fhirCode:"allergy",fhirDisplay:"Allergy"},{system:"http://hl7.org/fhir/allergy-intolerance-type",code:"782197009",display:"Intolerance to substance (finding)",fhirCode:"intolerance",fhirDisplay:"Intolerance"}],this.selectedIntoleranceType=null,this.intoleranceCategoryOptions=[{code:"food",display:"Food"},{code:"medication",display:"Medication"},{code:"environment",display:"Environment"},{code:"biologic",display:"Biologic"}],this.selectedIntoleranceCategories=[],this.selectedIntoleranceCategoriesControl=new Hr(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 Hr(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 fi(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 fi(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 fi(function*(){return Sr((yield n.terminologyService.expandValueSet(`${e.code} |${e.display}| . 47429007 |Associated with (attribute)|`,"")).pipe(Ze(o=>o)))})()}getAllergySubstance(e){var n=this;return fi(function*(){return Sr((yield n.terminologyService.expandValueSet(`${e.code} |${e.display}| . 246075003 |Causative agent (attribute)|`,"")).pipe(Ze(o=>o)))})()}getSubstanceCategories(e){var n=this;return fi(function*(){return Sr((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(Ze(o=>o)))})()}getTypes(e){var n=this;return fi(function*(){return Sr((yield n.terminologyService.expandValueSet(`> ${e.code} |${e.display}| AND (609433001 |Hypersensitivity disposition| OR 782197009 |Intolerance to substance|)`,"")).pipe(Ze(o=>o)))})()}saveFhirResource(){var e=new Blob([this.outputAllergyStr],{type:"text/plain;charset=utf-8"});(0,ps.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(Zi,{duration:1e3,data:"Nothing to add to problem list",panelClass:["yellow-snackbar"]});this.clear()}static#e=this.\u0275fac=function(n){return new(n||t)(x(Yn),x(W1),x(Qd))};static#t=this.\u0275cmp=Le({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(n,r){if(1&n&&(_(0,"mat-card",0)(1,"div",1)(2,"div",2)(3,"h4"),k(4,"Allergy Intolerance Form "),_(5,"button",3)(6,"mat-icon"),k(7,"info"),v()(),_(8,"mat-menu",null,4)(10,"span",5),z("click",function(a){return a.stopPropagation()}),_(11,"h4"),k(12,"Allergy list"),v(),_(13,"p"),k(14,"Allergy or intolerance can be recorded in a specific section (e.g., \u201cDrug Allergy and Intolerance\u201d) of the EHR, which records the causative agent together with other details, including type (allergy, non-allergic hypersensitivity, intolerance), certainty, manifestation, and severity. This corresponds to the FHIR substance based AllergyIntolerance resource data model."),v(),_(15,"p"),k(16,"In terms of documenting sensitivity type in the allergy list there is the option to map to 609433001 |Hypersensitivity disposition which in SNOMED CT represents both immune-mediated and non-immune mediated hypersensitivity or to map to 609328004 |Allergic disposition (finding)|which is common clinical parlance for what many clinicians would mean by allergic or non-allergic hypersensitivity. In addition, as recommended in the FHIR documentation if one is unclear as to whether a condition represents hypersensitivity or intolerance, one can just omit the type element from the resource."),v(),_(17,"p"),k(18,"If SNOMED CT concepts are used to document the causative agent, it is preferable to use concepts from the Substance rather than Pharmaceutical/biologic product hierarchy since this will facilitate the downstream use of data, e.g., clinical decision support, data exchange."),v(),_(19,"p"),k(20,"Almost all allergy and intolerance finding concepts are modeled using substance concepts in SNOMED CT. The SNOMED CT substance hierarchy has grouper concepts that are based on structure (e.g., Macrolide) or disposition (e.g., substance with histamine receptor antagonist mechanism of action). Clinical decision support systems can utilize these grouper concepts to access information at the desired level of granularity. Clinicians can also record a class of substance instead of a specific drug or substance (e.g., angiotensin II receptor antagonist). Note that substance grouper concepts based on therapeutic role (e.g., anticonvulsant) is not recommended for use because they are currently under review and may be retired in future."),v(),_(21,"p"),k(22,"There are situations in which it is difficult to determine the specific substance as a true cause or most likely cause of a condition. This is the case for allergy/intolerance to a product containing multiple substances."),v(),_(23,"p"),k(24,"Records of allergy to multiple substances or to multi-ingredient products should be recorded at the product level and updated when more specific information becomes available (e.g., positive sensitivity test to one specific ingredient of the mix)."),v(),_(25,"p"),k(26,"For more information check the "),_(27,"a",6),k(28,"Implementation Guide"),v(),k(29," developed by the SNOMED International Allergy Clinical Reference Group."),v()()()(),_(30,"button",7),z("click",function(){return r.clear()}),k(31,"Clear"),v(),_(32,"div",8)(33,"div",9)(34,"app-autocomplete-binding",10),z("selectionChange",function(a){return r.codeSelected(a)}),v()(),_(35,"button",3)(36,"mat-icon"),k(37,"info"),v()(),_(38,"mat-menu",null,11)(40,"span",12),z("click",function(a){return a.stopPropagation()}),_(41,"p"),k(42,"Terminology binding:"),v(),_(43,"pre"),k(44),v()()(),_(45,"mat-slide-toggle",13),z("ngModelChange",function(a){return r.recordPropensity=a})("click",function(){return r.propensityRecordChanged()}),k(46," Propensity based model "),v()(),_(47,"mat-form-field",14)(48,"mat-label"),k(49,"Allergy Intolerance Type"),v(),_(50,"mat-select",15),z("ngModelChange",function(a){return r.selectedIntoleranceType=a}),P(51,ate,2,2,"mat-option",16),v()(),_(52,"div",8)(53,"mat-form-field",2)(54,"mat-label"),k(55,"Clinical Status"),v(),_(56,"mat-select",15),z("ngModelChange",function(a){return r.selectedClinicalStatus=a}),P(57,ste,2,2,"mat-option",16),v()(),_(58,"mat-form-field",2)(59,"mat-label"),k(60,"Verification Status"),v(),_(61,"mat-select",15),z("ngModelChange",function(a){return r.selectedVerificationStatus=a}),P(62,cte,2,2,"mat-option",16),v()()(),_(63,"div",8)(64,"div",17),P(65,lte,1,2,"app-autocomplete-binding",18),P(66,dte,1,2,"app-autocomplete-binding",18),v(),_(67,"button",3)(68,"mat-icon"),k(69,"info"),v()(),_(70,"mat-menu",null,4)(72,"span",12),z("click",function(a){return a.stopPropagation()}),_(73,"p"),k(74,"Terminology binding:"),v(),P(75,ute,2,1,"pre",19),P(76,hte,2,1,"pre",19),v()()(),_(77,"div",8)(78,"mat-form-field",2)(79,"mat-label"),k(80,"Substance Category"),v(),_(81,"mat-select",20),P(82,fte,2,2,"mat-option",16),v()(),_(83,"mat-form-field",2)(84,"mat-label"),k(85,"Allergy Criticality"),v(),_(86,"mat-select",15),z("ngModelChange",function(a){return r.selectedCriticality=a}),P(87,mte,2,2,"mat-option",16),v()()(),_(88,"app-allergies-allergy-list-reaction",21),z("ngModelChange",function(a){return r.selectedReactions=a})("ngModelChange",function(a){return r.onReactionsChange(a)})("newManifestation",function(a){return r.newProblem.emit(a)}),v(),_(89,"button",22),z("click",function(){return r.addToProblemsList()}),k(90,"Save"),v()(),_(91,"div",2)(92,"h4"),k(93,"AllergyIntolerance HL7 FHIR Resource ("),_(94,"a",23),k(95,"link"),v(),k(96,")"),v(),_(97,"div",24)(98,"div",25)(99,"button",26),z("click",function(){return r.saveFhirResource()}),ge(100,"mat-icon",27),v(),_(101,"button",28),z("click",function(){return r.copyToClipboard(r.outputAllergyStr)}),ge(102,"mat-icon",29),v()(),_(103,"textarea",30),k(104," "),v()()()()()),2&n){const o=wt(9),a=wt(39);w(5),S("matMenuTriggerFor",o),w(5),S("disableRipple",!0),w(24),S("binding",r.codeBinding)("term",r.selectedCodeTerm),w(1),S("matMenuTriggerFor",a),w(5),S("disableRipple",!0),w(4),Ge(r.codeBinding.ecl),w(1),S("ngModel",r.recordPropensity),w(5),S("ngModel",r.selectedIntoleranceType),w(1),S("ngForOf",r.intoleranceTypeOptions),w(5),S("ngModel",r.selectedClinicalStatus),w(1),S("ngForOf",r.clinicalStatusOptions),w(4),S("ngModel",r.selectedVerificationStatus),w(1),S("ngForOf",r.verificationStatusOptions),w(3),S("ngIf",!r.recordPropensity),w(1),S("ngIf",r.recordPropensity),w(1),S("matMenuTriggerFor",o),w(5),S("disableRipple",!0),w(3),S("ngIf",!r.recordPropensity),w(1),S("ngIf",r.recordPropensity),w(5),S("formControl",r.selectedIntoleranceCategoriesControl)("multiple",!0),w(1),S("ngForOf",r.intoleranceCategoryOptions),w(4),S("ngModel",r.selectedCriticality),w(1),S("ngForOf",r.criticalityOptions),w(1),S("ngModel",r.selectedReactions),w(15),S("options",Go(29,pte))("lang","json")("innerHTML",r.outputAllergyStr,Mc)}},dependencies:[kr,Yi,D0,Dr,Zo,oo,Qc,ka,Yc,Ea,Do,Qs,So,_0,m1,_f,ta,cu,_O,pf,ote],styles:["#main-card[_ngcontent-%COMP%]{padding:10px;width:100%}.row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:-5px;align-items:flex-start}.row-centered[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:-5px;align-items:center}.column[_ngcontent-%COMP%]{position:relative;flex:1;margin:5px;box-sizing:border-box}.form-field[_ngcontent-%COMP%]{width:100%}.smallest-form-field[_ngcontent-%COMP%]{width:60%;margin:5px}.small-form-field[_ngcontent-%COMP%]{width:90%;margin:5px}.mat-form-field[_ngcontent-%COMP%]{font-size:14px;padding:4px 8px;height:36px}.mat-mdc-form-field-appearance-outline[_ngcontent-%COMP%] .mat-mdc-form-field-infix[_ngcontent-%COMP%]{padding-top:0}.reaction[_ngcontent-%COMP%]{border-radius:10px;background-color:#a9bee9;padding:10px}#output[_ngcontent-%COMP%]{border-radius:10px;background-color:#282c34;padding:10px;position:relative}pre[_ngcontent-%COMP%] > code[_ngcontent-%COMP%]{width:45%;white-space:pre-wrap;word-wrap:break-word}#save[_ngcontent-%COMP%]{position:absolute;right:0;top:0;color:#e88c15}#clear[_ngcontent-%COMP%]{position:absolute;right:20px;top:20px}.long-tooltip[_ngcontent-%COMP%]{padding-left:3rem;padding-right:3rem;font-weight:lighter;font-size:.9rem}"]})}return t})(),vO=(()=>{class t{constructor(e){this._snackBar=e}addProblem(e){var n=this;return fi(function*(){n.allergiesProblemListComponent.addProblem(e),n._snackBar.openFromComponent(Zi,{duration:1e3,data:"Problem list updated",panelClass:["green-snackbar"]})})()}static#e=this.\u0275fac=function(n){return new(n||t)(x(Qd))};static#t=this.\u0275cmp=Le({type:t,selectors:[["app-allergies"]],viewQuery:function(n,r){if(1&n&&rt(iO,5),2&n){let o;Se(o=De())&&(r.allergiesProblemListComponent=o.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(n,r){if(1&n&&(_(0,"div",0)(1,"h3"),k(2,"Allergy, Hypersensitivity and Intolerance "),_(3,"button",1)(4,"mat-icon"),k(5,"info"),v()(),_(6,"mat-menu",null,2)(8,"span",3),z("click",function(a){return a.stopPropagation()}),_(9,"h4"),k(10,"Allergy, Hypersensitivity and Intolerance Implementation Demo"),v(),_(11,"p"),k(12,"This is a demonstration of different implementation approaches for recording Allergies, Hypersensitivity and Intolerance."),v(),_(13,"p")(14,"b"),k(15,"Allergy list:"),v(),k(16," allergy or intolerance can be recorded in a specific section of the EHR, which records the causative agent together with other details, including type (allergy, non-allergic hypersensitivity, intolerance), certainty, manifestation, and severity. This corresponds to the FHIR substance based AllergyIntolerance resource data model."),v(),_(17,"p")(18,"b"),k(19,"Problem list:"),v(),k(20," Allergy or intolerance can also be recorded in the EHR as a problem. The problem list is normally restricted to SNOMED CT concepts from three hierarchies \u2013 Clinical finding, Event and Finding with explicit context. This corresponds either to the FHIR finding based AllergyIntolerance resource data model or the FHIR Condition resource."),v(),_(21,"p"),k(22,"For more information check the "),_(23,"a",4),k(24,"Implementation Guide"),v(),k(25," developed by the SNOMED International Allergy Clinical Reference Group."),v()()()(),_(26,"mat-tab-group",5)(27,"mat-tab",6)(28,"app-allergies-allergy-list",7),z("newProblem",function(a){return r.addProblem(a)}),v()(),_(29,"mat-tab",8),ge(30,"app-allergies-problem-list"),v()()()),2&n){const o=wt(7);w(3),S("matMenuTriggerFor",o),w(5),S("disableRipple",!0)}},dependencies:[Zo,oo,Qc,ka,Yc,S0,gf,iO,gte],styles:["#main-panel[_ngcontent-%COMP%]{padding:10px}h3[_ngcontent-%COMP%]{margin-top:0}#guideLink[_ngcontent-%COMP%]{font-size:smaller}.long-tooltip[_ngcontent-%COMP%]{padding-left:3rem;padding-right:3rem;font-weight:lighter;font-size:.9rem}"]})}return t})();function G1(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 lu(t,i){const e=i?"":"none";G1(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 xO(t,i,e){G1(t.style,{position:i?"":"fixed",top:i?"":"0",opacity:i?"":"0",left:i?"":"-999em"},e)}function E0(t,i){return i&&"none"!=i?t+" "+i:t}function yO(t){const i=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*i}function q1(t,i){return t.getPropertyValue(i).split(",").map(n=>n.trim())}function X1(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 Q1(t,i,e){const{top:n,bottom:r,left:o,right:a}=t;return e>=n&&e<=r&&i>=o&&i<=a}function bf(t,i,e){t.top+=i,t.bottom=t.top+t.height,t.left+=e,t.right=t.left+t.width}function wO(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:X1(e)})})}handleScroll(i){const e=no(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)&&bf(l.clientRect,s,c)}),r.top=o,r.left=a,{top:s,left:c}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function kO(t){const i=t.cloneNode(!0),e=i.querySelectorAll("[id]"),n=t.nodeName.toLowerCase();i.removeAttribute("id");for(let r=0;rlu(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 ke,this._pointerMoveSubscription=kt.EMPTY,this._pointerUpSubscription=kt.EMPTY,this._scrollSubscription=kt.EMPTY,this._resizeSubscription=kt.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 ke,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=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 CO(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=>nn(n)),this._handles.forEach(n=>lu(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=nn(i);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,T0),e.addEventListener("touchstart",this._pointerDown,TO),e.addEventListener("dragstart",this._nativeDragStart,T0)}),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?nn(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),lu(i,!0))}enableHandle(i){this._disabledHandles.has(i)&&(this._disabledHandles.delete(i),lu(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){vf(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(),xO(n,!1,Y1),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=vf(e),o=!r&&0!==e.button,a=this._rootElement,s=no(e),c=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),l=r?Og(e):Rg(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=X1(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){xO(this._rootElement,!0,Y1),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=AO(a,this._document),this._previewRef=a,i.matchSize?IO(r,o):r.style.transform=M0(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=kO(this._rootElement),IO(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return G1(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},Y1),lu(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 bte(t){const i=getComputedStyle(t),e=q1(i,"transition-property"),n=e.find(s=>"transform"===s||"all"===s);if(!n)return 0;const r=e.indexOf(n),o=q1(i,"transition-duration"),a=q1(i,"transition-delay");return yO(o[r])+yO(a[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(n=>{const r=a=>{(!a||no(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=AO(this._placeholderRef,this._document)):n=kO(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=vf(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=vf(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=MO(n,s.left+o,s.right-(c-o)),r=MO(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,lu(this._rootElement,i))}_removeRootElementListeners(i){i.removeEventListener("mousedown",this._pointerDown,T0),i.removeEventListener("touchstart",this._pointerDown,TO),i.removeEventListener("dragstart",this._nativeDragStart,T0)}_applyRootElementTransform(i,e){const n=M0(i,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=E0(n,this._initialTransform)}_applyPreviewTransform(i,e){const n=this._previewTemplate?.template?void 0:this._initialTransform,r=M0(i,e);this._preview.style.transform=E0(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:vf(i)?e.touch:e?e.mouse:0}_updateOnScroll(i){const e=this._parentPositions.handleScroll(i);if(e){const n=no(i);this._boundaryRect&&n!==this._boundaryElement&&n.contains(this._boundaryElement)&&bf(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=Ny(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 nn(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 M0(t,i){return`translate3d(${Math.round(t)}px, ${Math.round(i)}px, 0)`}function MO(t,i,e){return Math.max(i,Math.min(e,t))}function vf(t){return"t"===t.type[0]}function AO(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 IO(t,i){t.style.width=`${i.width}px`,t.style.height=`${i.height}px`,t.style.transform=M0(i.left,i.top)}function K1(t,i,e){const n=xf(i,t.length-1),r=xf(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 K1(o,c,a),o.forEach((p,b)=>{if(g[b]===p)return;const C=p.drag===i,y=C?f:m,M=C?i.getPlaceholderElement():p.drag.getRootElement();p.offset+=y,s?(M.style.transform=E0(`translate3d(${Math.round(p.offset)}px, 0, 0)`,p.initialTransform),bf(p.clientRect,0,y)):(M.style.transform=E0(`translate3d(0, ${Math.round(p.offset)}px, 0)`,p.initialTransform),bf(p.clientRect,y,0))}),this._previousSwap.overlaps=Q1(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 nn(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})=>{bf(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:X1(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 ke,this.entered=new ke,this.exited=new ke,this.dropped=new ke,this.sorted=new ke,this.receivingStarted=new ke,this.receivingStopped=new ke,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=kt.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new ke,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function _te(t=0,i=$h){return t<0&&(t=0),zg(t,t,i)}(0,uF).pipe(pt(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=nn(i),this._document=n,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new CO(n),this._sortStrategy=new wte(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=nn(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||!wO(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||wO(a.clientRect,.05,i,e)&&([r,o]=function kte(t,i,e,n){const r=OO(i,n),o=PO(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=OO(c,e),o=PO(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=nn(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=nn(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(i).clientRect}_reset(){this._isDragging=!1;const i=nn(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&&Q1(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||!Q1(this._clientRect,e,n)||!this.enterPredicate(i,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,n);if(!r)return!1;const o=nn(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=Ny(nn(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 OO(t,i){const{top:e,bottom:n,height:r}=t,o=r*RO;return i>=e-o&&i<=e+o?1:i>=n-o&&i<=n+o?2:0}function PO(t,i){const{left:e,right:n,width:r}=t,o=r*RO;return i>=e-o&&i<=e+o?1:i>=n-o&&i<=n+o?2:0}const A0=Ko({passive:!1,capture:!0});let Ste=(()=>{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 ke,this.pointerUp=new ke,this.scroll=new ke,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,A0)})}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,A0)}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:A0}),r||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:A0}),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 ai(r=>this._ngZone.runOutsideAngular(()=>{const a=s=>{this._activeDragInstances.length&&r.next(s)};return e.addEventListener("scroll",a,!0),()=>{e.removeEventListener("scroll",a,!0)}}))),Pi(...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)(X(ze),X(ot))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Dte={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let Z1=(()=>{class t{constructor(e,n,r,o){this._document=e,this._ngZone=n,this._viewportRuler=r,this._dragDropRegistry=o}createDrag(e,n=Dte){return new yte(e,n,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new Cte(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return t.\u0275fac=function(e){return new(e||t)(X(ot),X(ze),X(ea),X(Ste))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const J1=new oe("CDK_DRAG_PARENT"),ew=new oe("CdkDropListGroup"),LO=new oe("CDK_DRAG_CONFIG");let Tte=0;const NO=new oe("CdkDropList");let tw=(()=>{class t{get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=He(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 ke,this.connectedTo=[],this.id="cdk-drop-list-"+Tte++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new Ce,this.entered=new Ce,this.exited=new Ce,this.sorted=new Ce,this._unsortedItems=new Set,this._dropListRef=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(xn(this._dir.value),pt(this._destroyed)).subscribe(n=>e.withDirection(n)),e.beforeStarted.subscribe(()=>{const n=jh(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=He(this.sortingDisabled),e.autoScrollDisabled=He(this.autoScrollDisabled),e.autoScrollStep=On(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()}),Pi(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)(x(Ie),x(Z1),x(Ut),x(Wc),x(un,8),x(ew,12),x(LO,8))},t.\u0275dir=Q({type:t,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,n){2&e&&(st("id",n.id),Ye("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:ew,useValue:void 0},{provide:NO,useExisting:t}])]}),t})();const iw=new oe("CdkDragHandle");let BO=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=He(e),this._stateChanges.next(this)}constructor(e,n){this.element=e,this._stateChanges=new ke,this._disabled=!1,this._parentDrag=n}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(x(Ie),x(J1,12))},t.\u0275dir=Q({type:t,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},standalone:!0,features:[We([{provide:iw,useExisting:t}])]}),t})();const VO=new oe("CdkDragPlaceholder"),HO=new oe("CdkDragPreview");let nw=(()=>{class t{get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=He(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 ke,this.started=new Ce,this.released=new Ce,this.ended=new Ce,this.entered=new Ce,this.exited=new Ce,this.dropped=new Ce,this.moved=new ai(f=>{const m=this._dragRef.moved.pipe(Ze(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(si(1),pt(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):nn(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:On(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(si(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(xn(this._handles),$i(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)}),vn(e=>Pi(...e.map(n=>n._stateChanges.pipe(xn(n))))),pt(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)(x(Ie),x(NO,12),x(ot),x(ze),x(Oi),x(LO,8),x(un,8),x(Z1),x(Ut),x(iw,10),x(J1,12))},t.\u0275dir=Q({type:t,selectors:[["","cdkDrag",""]],contentQueries:function(e,n,r){if(1&e&&(It(r,HO,5),It(r,VO,5),It(r,iw,5)),2&e){let o;Se(o=De())&&(n._previewTemplate=o.first),Se(o=De())&&(n._placeholderTemplate=o.first),Se(o=De())&&(n._handles=o)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,n){2&e&&Ye("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:J1,useExisting:t}]),Ai]}),t})(),Fte=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({providers:[Z1],imports:[hs]}),t})();function Rte(t,i){}class I0{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 UO=(()=>{class t extends Vg{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=Sg(),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=Sg();return e===n||e.contains(n)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Sg())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return t.\u0275fac=function(e){return new(e||t)(x(Ie),x(Fg),x(ot,8),x(I0),x(Wh),x(ze),x(Jh),x(ro))},t.\u0275cmp=Le({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(e,n){if(1&e&&rt(us,7),2&e){let r;Se(r=De())&&(n._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,n){2&e&&st("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&&P(0,Rte,0,0,"ng-template",0)},dependencies:[us],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),t})();class rw{constructor(i,e){this.overlayRef=i,this.config=e,this.closed=new ke,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&&!or(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 zO=new oe("DialogScrollStrategy"),Ote=new oe("DialogData"),Pte=new oe("DefaultDialogConfig"),Nte={provide:zO,deps:[ar],useFactory:function Lte(t){return()=>t.scrollStrategies.block()}};let Bte=0,$O=(()=>{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 ke,this._afterOpenedAtThisLevel=new ke,this._ariaHiddenElements=new Map,this.afterAllClosed=Ad(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(xn(void 0))),this._scrollStrategy=s}open(e,n){(n={...this._defaultOptions||new I0,...n}).id=n.id||"cdk-dialog-"+Bte++,n.id&&this.getDialogById(n.id);const o=this._getOverlayConfig(n),a=this._overlay.create(o),s=new rw(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(){ow(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){ow(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),ow(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const n=new Xd({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:I0,useValue:r},{provide:rw,useValue:n},{provide:Jh,useValue:e}];let s;r.container?"function"==typeof r.container?s=r.container:(s=r.container.type,a.push(...r.container.providers(r))):s=UO;const c=new qd(s,r.viewContainerRef,an.create({parent:o||this._injector,providers:a}),r.componentFactoryResolver);return e.attach(c).instance}_attachDialogContent(e,n,r,o){if(e instanceof yi){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 ds(e,null,s,a))}else{const a=this._createInjector(o,n,r,this._injector),s=r.attachComponentPortal(new qd(e,o.viewContainerRef,a,o.componentFactoryResolver));n.componentInstance=s.instance}}_createInjector(e,n,r,o){const a=e.injector||e.viewContainerRef?.injector,s=[{provide:Ote,useValue:e.data},{provide:rw,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(un,null,{optional:!0}))&&s.push({provide:un,useValue:{value:e.direction,change:qe()}}),an.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)(X(ar),X(an),X(Pte,8),X(t,12),X($g),X(zO))},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})();function ow(t,i){let e=t.length;for(;e--;)i(t[e])}let Vte=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({providers:[$O,Nte],imports:[qc,jc,Yy,jc]}),t})();function Hte(t,i){}class F0{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 aw="mdc-dialog--open",jO="mdc-dialog--opening",WO="mdc-dialog--closing";let $te=(()=>{class t extends UO{constructor(e,n,r,o,a,s,c,l){super(e,n,r,o,a,s,c,l),this._animationStateChanged=new Ce}_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)(x(Ie),x(Fg),x(ot,8),x(F0),x(Wh),x(ze),x(Jh),x(ro))},t.\u0275cmp=Le({type:t,selectors:[["ng-component"]],features:[pe],decls:0,vars:0,template:function(e,n){},encapsulation:2}),t})();const GO="--mat-dialog-transition-duration";function qO(t){return null==t?null:"number"==typeof t?t:t.endsWith("ms")?On(t.substring(0,t.length-2)):t.endsWith("s")?1e3*On(t.substring(0,t.length-1)):"0"===t?0:null}let jte=(()=>{class t extends $te{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?qO(this._config.enterAnimationDuration)??150:0,this._closeAnimationDuration=this._animationsEnabled?qO(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(GO,`${this._openAnimationDuration}ms`),this._hostElement.classList.add(jO),this._hostElement.classList.add(aw),this._waitForAnimationToComplete(this._openAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(aw),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._closeAnimationDuration}),this._hostElement.classList.remove(aw),this._animationsEnabled?(this._hostElement.style.setProperty(GO,`${this._openAnimationDuration}ms`),this._hostElement.classList.add(WO),this._waitForAnimationToComplete(this._closeAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(jO),this._hostElement.classList.remove(WO)}_waitForAnimationToComplete(e,n){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(n,e)}}return t.\u0275fac=function(e){return new(e||t)(x(Ie),x(Fg),x(ot,8),x(F0),x(Wh),x(ze),x(Jh),x(Ii,8),x(ro))},t.\u0275cmp=Le({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(e,n){2&e&&(xa("id",n._config.id),st("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),Ye("_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&&(_(0,"div",0)(1,"div",1),P(2,Hte,0,0,"ng-template",2),v()())},dependencies:[us],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 Js{constructor(i,e,n){this._ref=i,this._containerInstance=n,this._afterOpened=new ke,this._beforeClosed=new ke,this._state=0,this.disableClose=e.disableClose,this.id=i.id,n._animationStateChanged.pipe(Kt(r=>"opened"===r.state),si(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(Kt(r=>"closed"===r.state),si(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),i.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Pi(this.backdropClick(),this.keydownEvents().pipe(Kt(r=>27===r.keyCode&&!this.disableClose&&!or(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),XO(this,"keydown"===r.type?"keyboard":"mouse"))})}close(i){this._result=i,this._containerInstance._animationStateChanged.pipe(Kt(e=>"closing"===e.state),si(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 XO(t,i,e){return t._closeInteractionType=i,t.close(e)}const R0=new oe("MatMdcDialogData"),Wte=new oe("mat-mdc-dialog-default-options"),QO=new oe("mat-mdc-dialog-scroll-strategy"),qte={provide:QO,deps:[ar],useFactory:function Gte(t){return()=>t.scrollStrategies.block()}};let Xte=0,Qte=(()=>{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 ke,this._afterOpenedAtThisLevel=new ke,this._idPrefix="mat-dialog-",this.dialogConfigClass=F0,this.afterAllClosed=Ad(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(xn(void 0))),this._scrollStrategy=s,this._dialog=n.get($O)}open(e,n){let r;(n={...this._defaultOptions||new F0,...n}).id=n.id||`${this._idPrefix}${Xte++}`,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:I0,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){pa()},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})(),du=(()=>{class t extends Qte{constructor(e,n,r,o,a,s,c,l){super(e,n,o,s,c,a,Js,jte,R0,l),this._idPrefix="mat-mdc-dialog-"}}return t.\u0275fac=function(e){return new(e||t)(X(ar),X(an),X(fh,8),X(Wte,8),X(QO),X(t,12),X($g),X(Ii,8))},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})(),Yte=0,yf=(()=>{class t{constructor(e,n,r){this.dialogRef=e,this._elementRef=n,this._dialog=r,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=KO(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){const n=e._matDialogClose||e._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(e){XO(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}return t.\u0275fac=function(e){return new(e||t)(x(Js,8),x(Ie),x(du))},t.\u0275dir=Q({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,n){1&e&&z("click",function(o){return n._onButtonClick(o)}),2&e&&st("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:[Ai]}),t})(),YO=(()=>{class t{constructor(e,n,r){this._dialogRef=e,this._elementRef=n,this._dialog=r,this.id="mat-mdc-dialog-title-"+Yte++}ngOnInit(){this._dialogRef||(this._dialogRef=KO(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)(x(Js,8),x(Ie),x(du))},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&&xa("id",n.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),O0=(()=>{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})(),P0=(()=>{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&&Ye("mat-mdc-dialog-actions-align-center","center"===n.align)("mat-mdc-dialog-actions-align-end","end"===n.align)},inputs:{align:"align"}}),t})();function KO(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 Kte=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({providers:[du,qte],imports:[Vte,qc,jc,yt,yt]}),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]}static#e=this.\u0275fac=function(n){return new(n||t)(x(Js),x(R0))};static#t=this.\u0275cmp=Le({type:t,selectors:[["app-ecl-builder-dialog"]],decls:7,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"full-height"],["apiurl","https://snowstorm.ihtsdotools.org/snowstorm/snomed-ct","branch","MAIN/2023-01-31","v-on:eclOutput","eclChange",3,"eclstring","eclOutput"],["mat-dialog-actions","",1,"actions"],["mat-flat-button","","color","accent","cdkFocusInitial","",3,"mat-dialog-close"]],template:function(n,r){1&n&&(_(0,"h1",0),k(1,"ECL Builder"),v(),_(2,"div",1)(3,"snomed-ecl-builder",2),z("eclOutput",function(a){return r.eclChanged(a)}),v()(),_(4,"div",3)(5,"button",4),k(6,"Ok"),v()()),2&n&&(w(3),_d("eclstring",r.localEcl),w(2),S("mat-dialog-close",r.data))},dependencies:[Dr,yf,YO,O0,P0],styles:[".full-height[_ngcontent-%COMP%]{height:78%}.actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"]})}return t})();const JO=new oe("CdkAccordion");let Jte=0,eie=(()=>{class t{get expanded(){return this._expanded}set expanded(e){e=He(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=He(e)}constructor(e,n,r){this.accordion=e,this._changeDetectorRef=n,this._expansionDispatcher=r,this._openCloseAllSubscription=kt.EMPTY,this.closed=new Ce,this.opened=new Ce,this.destroyed=new Ce,this.expandedChange=new Ce,this.id="cdk-accordion-child-"+Jte++,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)(x(JO,12),x(Ut),x(Ty))},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:JO,useValue:void 0}])]}),t})(),tie=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({}),t})();const iie=["body"];function nie(t,i){}const rie=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],oie=["mat-expansion-panel-header","*","mat-action-row"];function aie(t,i){1&t&&ge(0,"span",2),2&t&&S("@indicatorRotate",V()._getExpandedState())}const sie=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],cie=["mat-panel-title","mat-panel-description","*"],eP=new oe("MAT_ACCORDION"),tP="225ms cubic-bezier(0.4,0.0,0.2,1)",iP={indicatorRotate:zi("indicatorRotate",[Zt("collapsed, void",Xe({transform:"rotate(0deg)"})),Zt("expanded",Xe({transform:"rotate(180deg)"})),Wt("expanded <=> collapsed, void => collapsed",jt(tP))]),bodyExpansion:zi("bodyExpansion",[Zt("collapsed, void",Xe({height:"0px",visibility:"hidden"})),Zt("expanded",Xe({height:"*",visibility:"visible"})),Wt("expanded <=> collapsed, void => collapsed",jt(tP))])},nP=new oe("MAT_EXPANSION_PANEL");let lie=(()=>{class t{constructor(e,n){this._template=e,this._expansionPanel=n}}return t.\u0275fac=function(e){return new(e||t)(x(yi),x(nP,8))},t.\u0275dir=Q({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),die=0;const rP=new oe("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let oP=(()=>{class t extends eie{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=He(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 Ce,this.afterCollapse=new Ce,this._inputChanges=new ke,this._headerId="mat-expansion-panel-header-"+die++,this._bodyAnimationDone=new ke,this.accordion=e,this._document=a,this._bodyAnimationDone.pipe(Ws((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(xn(null),Kt(()=>this.expanded&&!this._portal),si(1)).subscribe(()=>{this._portal=new ds(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)(x(eP,12),x(Ut),x(Ty),x(Oi),x(ot),x(Ii,8),x(rP,8))},t.\u0275cmp=Le({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(e,n,r){if(1&e&&It(r,lie,5),2&e){let o;Se(o=De())&&(n._lazyContent=o.first)}},viewQuery:function(e,n){if(1&e&&rt(iie,5),2&e){let r;Se(r=De())&&(n._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,n){2&e&&Ye("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:eP,useValue:void 0},{provide:nP,useExisting:t}]),pe,Ai],ngContentSelectors:oie,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&&(hi(rie),Je(0),_(1,"div",0,1),z("@bodyExpansion.done",function(o){return n._bodyAnimationDone.next(o)}),_(3,"div",2),Je(4,1),P(5,nie,0,0,"ng-template",3),v(),Je(6,2),v()),2&e&&(w(1),S("@bodyExpansion",n._getExpandedState())("id",n.id),st("aria-labelledby",n._headerId),w(4),S("cdkPortalOutlet",n._portal))},dependencies:[us],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:[iP.bodyExpansion]},changeDetection:0}),t})();class uie{}const hie=qh(uie);let fie=(()=>{class t extends hie{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=kt.EMPTY;const l=e.accordion?e.accordion._stateChanges.pipe(Kt(d=>!(!d.hideToggle&&!d.togglePosition))):qr;this.tabIndex=parseInt(c||"")||0,this._parentChangeSubscription=Pi(e.opened,e.closed,l,e._inputChanges.pipe(Kt(d=>!!(d.hideToggle||d.disabled||d.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(Kt(()=>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:or(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)(x(oP,1),x(Ie),x(ro),x(Ut),x(rP,8),x(Ii,8),_o("tabindex"))},t.\u0275cmp=Le({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&&z("click",function(){return n._toggle()})("keydown",function(o){return n._keydown(o)}),2&e&&(st("id",n.panel._headerId)("tabindex",n.tabIndex)("aria-controls",n._getPanelId())("aria-expanded",n._isExpanded())("aria-disabled",n.panel.disabled),en("height",n._getHeaderHeight()),Ye("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:cie,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,n){1&e&&(hi(sie),_(0,"span",0),Je(1),Je(2,1),Je(3,2),v(),P(4,aie,1,1,"span",1)),2&e&&(Ye("mat-content-hide-toggle",!n._showToggle()),w(4),S("ngIf",n._showToggle()))},dependencies:[Yi],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:[iP.indicatorRotate]},changeDetection:0}),t})(),mie=(()=>{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})(),pie=(()=>{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})(),gie=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[Xn,yt,tie,jc]}),t})();function _ie(t,i){if(1&t){const e=Ne();_(0,"mat-option",2),z("click",function(){return _e(e),be(V().optionClicked())}),k(1),v()}if(2&t){const e=i.$implicit;S("value",e),w(1),it(" ",e.display," ")}}let bie=(()=>{class t{constructor(e){this.terminologyService=e,this.selectionChange=new Ce}ngOnInit(){this.terminologyService.expandValueSet(this.binding.ecl,"").subscribe(e=>this.options=e.expansion.contains)}optionClicked(){this.selectionChange.emit(this.selectedOptions)}static#e=this.\u0275fac=function(n){return new(n||t)(x(Yn))};static#t=this.\u0275cmp=Le({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(n,r){1&n&&(_(0,"mat-form-field")(1,"mat-label"),k(2),v(),_(3,"mat-select",0),z("ngModelChange",function(a){return r.selectedOptions=a}),P(4,_ie,2,2,"mat-option",1),v(),_(5,"mat-hint"),k(6),v()()),2&n&&(w(2),Ge(r.binding.title),w(1),S("multiple","Select (Multiple)"==r.binding.type)("ngModel",r.selectedOptions),w(1),S("ngForOf",r.options),w(2),Ge(r.binding.note))},dependencies:[kr,Ea,Do,al,Qs,So,_f,ta],styles:[".chip[_ngcontent-%COMP%]{display:inline-flex;flex-direction:row;background-color:#f4a460;border:none;cursor:default;height:36px;outline:none;padding:0;font-size:14px;color:#fff;font-family:Open Sans,sans-serif;white-space:nowrap;align-items:center;border-radius:16px;vertical-align:middle;text-decoration:none;justify-content:center;margin-right:20px}.chip-content[_ngcontent-%COMP%]{cursor:inherit;display:flex;align-items:center;-webkit-user-select:none;user-select:none;white-space:nowrap;padding-left:12px;padding-right:12px}mat-form-field[_ngcontent-%COMP%]{width:100%}.code[_ngcontent-%COMP%]{font-size:small;font-weight:lighter;margin-right:15px}mat-hint[_ngcontent-%COMP%]{font-size:12px}"]})}return t})();const vie=["input"],xie=["*"];let aP=0;class sP{constructor(i,e){this.source=i,this.value=e}}const yie={provide:Kn,useExisting:Qt(()=>sw),multi:!0},cP=new oe("MatRadioGroup"),wie=new oe("mat-radio-default-options",{providedIn:"root",factory:function Cie(){return{color:"accent"}}});let kie=(()=>{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=He(e),this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=He(e),this._markRadiosForCheck()}constructor(e){this._changeDetector=e,this._value=null,this._name="mat-radio-group-"+aP++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new Ce}ngAfterContentInit(){this._isInitialized=!0}_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 sP(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)(x(Ut))},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 Sie{constructor(i){this._elementRef=i}}const Die=qs(qh(Sie));let Eie=(()=>{class t extends Die{get checked(){return this._checked}set checked(e){const n=He(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(He(e))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=He(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-"+ ++aP,this.id=this._uniqueId,this.change=new Ce,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._noopAnimations="NoopAnimations"===s,l&&(this.tabIndex=On(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 sP(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){pa()},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&rt(vie,5),2&e){let r;Se(r=De())&&(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})(),sw=(()=>{class t extends kie{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["mat-radio-group"]],contentQueries:function(e,n,r){if(1&e&&It(r,cw,5),2&e){let o;Se(o=De())&&(n._radios=o)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],exportAs:["matRadioGroup"],features:[We([yie,{provide:cP,useExisting:t}]),pe]}),t})(),cw=(()=>{class t extends Eie{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)(x(cP,8),x(Ie),x(Ut),x(ro),x(Ty),x(Ii,8),x(wie,8),_o("tabindex"))},t.\u0275cmp=Le({type:t,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function(e,n){1&e&&z("focus",function(){return n._inputElement.nativeElement.focus()}),2&e&&(st("id",n.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),Ye("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:xie,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&&(hi(),_(0,"div",0,1)(2,"div",2)(3,"div",3),z("click",function(o){return n._onTouchTargetClick(o)}),v(),_(4,"input",4,5),z("change",function(o){return n._onInputInteraction(o)}),v(),_(6,"div",6),ge(7,"div",7)(8,"div",8),v(),_(9,"div",9),ge(10,"div",10),v()(),_(11,"label",11),Je(12),v()()),2&e){const r=wt(1);Ye("mdc-form-field--align-end","before"==n.labelPosition),w(2),Ye("mdc-radio--disabled",n.disabled),w(2),S("id",n.inputId)("checked",n.checked)("disabled",n.disabled)("required",n.required),st("name",n.name)("value",n.value)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledby)("aria-describedby",n.ariaDescribedby),w(5),S("matRippleTrigger",r)("matRippleDisabled",n._isRippleDisabled())("matRippleCentered",!0),w(2),S("for",n.inputId)}},dependencies:[ko],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})(),Tie=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[yt,Xn,Xs,yt]}),t})();function Mie(t,i){if(1&t){const e=Ne();_(0,"mat-radio-button",3),z("click",function(){const o=_e(e).$implicit;return be(V().optionSelected(o))}),k(1),v()}if(2&t){const e=i.$implicit;S("value",e.code),w(1),it(" ",e.display," ")}}let Aie=(()=>{class t{constructor(e){this.terminologyService=e,this.selectionChange=new Ce}ngOnInit(){this.terminologyService.expandValueSet(this.binding.ecl,"").subscribe(e=>this.options=e.expansion.contains)}optionSelected(e){this.selectionChange.emit(e)}static#e=this.\u0275fac=function(n){return new(n||t)(x(Yn))};static#t=this.\u0275cmp=Le({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(n,r){1&n&&(_(0,"div"),k(1),v(),_(2,"mat-radio-group",0),P(3,Mie,2,2,"mat-radio-button",1),v(),_(4,"div",2),k(5),v()),2&n&&(w(1),Ge(r.binding.title),w(2),S("ngForOf",r.options),w(2),Ge(r.binding.note))},dependencies:[kr,sw,cw],styles:["#hint[_ngcontent-%COMP%]{font-size:12px}.radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:20px 0;align-items:flex-start}.radio-button[_ngcontent-%COMP%]{margin:0}"]})}return t})(),Iie=(()=>{class t{constructor(e){this.terminologyService=e,this.textChange=new Ce,this.text=""}ngOnInit(){}onTextChange(e){this.text=e,this.textChange.emit(e)}static#e=this.\u0275fac=function(n){return new(n||t)(x(Yn))};static#t=this.\u0275cmp=Le({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(n,r){1&n&&(_(0,"mat-form-field",0)(1,"mat-label"),k(2),v(),_(3,"textarea",1),z("ngModelChange",function(a){return r.text=a})("ngModelChange",function(a){return r.onTextChange(a)}),v(),_(4,"mat-hint"),k(5),v()()),2&n&&(w(2),Ge(r.binding.title),w(1),S("ngModel",r.text),w(2),Ge(r.binding.note))},dependencies:[Ea,Do,al,sl,Sa,So,ta],styles:[".chip[_ngcontent-%COMP%]{display:inline-flex;flex-direction:row;background-color:#f4a460;border:none;cursor:default;height:36px;outline:none;padding:0;font-size:14px;color:#fff;font-family:Open Sans,sans-serif;white-space:nowrap;align-items:center;border-radius:16px;vertical-align:middle;text-decoration:none;justify-content:center;margin-right:20px}.chip-content[_ngcontent-%COMP%]{cursor:inherit;display:flex;align-items:center;-webkit-user-select:none;user-select:none;white-space:nowrap;padding-left:12px;padding-right:12px}mat-form-field[_ngcontent-%COMP%]{width:100%}.code[_ngcontent-%COMP%]{font-size:small;font-weight:lighter;margin-right:15px}mat-hint[_ngcontent-%COMP%]{font-size:12px}"]})}return t})();const Fie=["input"],Rie=["label"],Oie=["*"],Pie=new oe("mat-checkbox-default-options",{providedIn:"root",factory:lP});function lP(){return{color:"accent",clickAction:"check-indeterminate"}}const Lie={provide:Kn,useExisting:Qt(()=>uP),multi:!0};class Nie{}let Bie=0;const dP=lP(),Vie=qh(Gs(qs(cs(class{constructor(t){this._elementRef=t}}))));let Hie=(()=>{class t extends Vie{get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=He(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 Ce,this.indeterminateChange=new Ce,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||dP,this.color=this.defaultColor=this._options.color||dP.color,this.tabIndex=parseInt(a)||0,this.id=this._uniqueId=`${e}${++Bie}`}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const n=He(e);n!=this.checked&&(this._checked=n,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const n=He(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=He(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){pa()},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&(rt(Fie,5),rt(Rie,5),rt(ko,5)),2&e){let r;Se(r=De())&&(n._inputElement=r.first),Se(r=De())&&(n._labelElement=r.first),Se(r=De())&&(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})(),uP=(()=>{class t extends Hie{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 Nie;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)(x(Ie),x(Ut),x(ze),_o("tabindex"),x(Ii,8),x(Pie,8))},t.\u0275cmp=Le({type:t,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-mdc-checkbox"],hostVars:12,hostBindings:function(e,n){2&e&&(xa("id",n.id),st("tabindex",null)("aria-label",null)("aria-labelledby",null),Ye("_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([Lie]),pe],ngContentSelectors:Oie,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&&(hi(),_(0,"div",0),z("click",function(o){return n._preventBubblingFromLabel(o)}),_(1,"div",1,2)(3,"div",3),z("click",function(){return n._onTouchTargetClick()}),v(),_(4,"input",4,5),z("blur",function(){return n._onBlur()})("click",function(){return n._onInputClick()})("change",function(o){return n._onInteractionEvent(o)}),v(),ge(6,"div",6),_(7,"div",7),qa(),_(8,"svg",8),ge(9,"path",9),v(),Gl(),ge(10,"div",10),v(),ge(11,"div",11),v(),_(12,"label",12,13),Je(14),v()()),2&e){const r=wt(2);Ye("mdc-form-field--align-end","before"==n.labelPosition),w(4),Ye("mdc-checkbox--selected",n.checked),S("checked",n.checked)("indeterminate",n.indeterminate)("disabled",n.disabled)("id",n.inputId)("required",n.required)("tabIndex",n.tabIndex),st("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby)("aria-describedby",n.ariaDescribedby)("name",n.name)("value",n.value),w(7),S("matRippleTrigger",r)("matRippleDisabled",n.disableRipple||n.disabled)("matRippleCentered",!0),w(1),S("for",n.inputId)}},dependencies:[ko],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})(),hP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({}),t})(),$ie=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[yt,Xs,hP,yt,hP]}),t})();function jie(t,i){if(1&t){const e=Ne();_(0,"mat-checkbox",3),z("click",function(){return _e(e),be(V().optionClicked())}),k(1),v()}if(2&t){const e=i.$implicit;_d("formControlName",e.display),w(1),it(" ",e.display," ")}}let Wie=(()=>{class t{constructor(e,n){this.terminologyService=e,this._formBuilder=n,this.selectionChange=new Ce,this.checkboxes=this._formBuilder.group([]),this.present={display:"Known present (qualifier value)",system:"http://snomed.info/sct",code:"410515003"},this.absent={display:"Known absent (qualifier value)",system:"http://snomed.info/sct",code:"410516002"}}ngOnInit(){this.options=[{display:this.binding.title}],this.options?.forEach(e=>{this.checkboxes.addControl(e.display,this._formBuilder.control(!1))})}optionClicked(){let e=[];e.push({title:this.binding.title,code:this.binding.ecl,value:this.checkboxes.value[this.binding.title]?this.present:this.absent}),this.selectionChange.emit(e)}static#e=this.\u0275fac=function(n){return new(n||t)(x(Yn),x(HR))};static#t=this.\u0275cmp=Le({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(n,r){1&n&&(_(0,"form",0),P(1,jie,2,2,"mat-checkbox",1),_(2,"span",2),k(3),v()()),2&n&&(S("formGroup",r.checkboxes),w(1),S("ngForOf",r.options),w(2),Ge(r.binding.note))},dependencies:[kr,ff,So,sf,Zs,mf,uP],styles:["#hint[_ngcontent-%COMP%]{font-size:12px}.check-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:20px 0;align-items:flex-start}.check[_ngcontent-%COMP%]{margin:0}.hint[_ngcontent-%COMP%]{font-size:.8rem;color:#999;padding:0;margin:0 0 0 5px}"]})}return t})(),Gie=(()=>{class t{constructor(e){this.terminologyService=e,this.textChange=new Ce,this.value=0}ngOnInit(){}onValueChange(e){this.value=e,this.textChange.emit(e)}static#e=this.\u0275fac=function(n){return new(n||t)(x(Yn))};static#t=this.\u0275cmp=Le({type:t,selectors:[["app-integer-binding"]],inputs:{binding:"binding"},outputs:{textChange:"textChange"},decls:6,vars:3,consts:[[1,"example-full-width"],["matInput","","type","number","placeholder","Enter integer value...","pattern","^-?[0-9]\\d*$","title","Only integer values are allowed",3,"ngModel","ngModelChange"]],template:function(n,r){1&n&&(_(0,"mat-form-field",0)(1,"mat-label"),k(2),v(),_(3,"input",1),z("ngModelChange",function(a){return r.value=a})("ngModelChange",function(a){return r.onValueChange(a)}),v(),_(4,"mat-hint"),k(5),v()()),2&n&&(w(2),Ge(r.binding.title),w(1),S("ngModel",r.value),w(2),Ge(r.binding.note))},dependencies:[Ea,Do,al,sl,Sa,g0,So,x0,ta],styles:[".chip[_ngcontent-%COMP%]{display:inline-flex;flex-direction:row;background-color:#f4a460;border:none;cursor:default;height:36px;outline:none;padding:0;font-size:14px;color:#fff;font-family:Open Sans,sans-serif;white-space:nowrap;align-items:center;border-radius:16px;vertical-align:middle;text-decoration:none;justify-content:center;margin-right:20px}.chip-content[_ngcontent-%COMP%]{cursor:inherit;display:flex;align-items:center;-webkit-user-select:none;user-select:none;white-space:nowrap;padding-left:12px;padding-right:12px}mat-form-field[_ngcontent-%COMP%]{width:100%}.code[_ngcontent-%COMP%]{font-size:small;font-weight:lighter;margin-right:15px}mat-hint[_ngcontent-%COMP%]{font-size:12px}"]})}return t})(),qie=(()=>{class t{constructor(e){this.terminologyService=e,this.textChange=new Ce,this.value=0}ngOnInit(){}onValueChange(e){this.value=e,this.textChange.emit(e)}static#e=this.\u0275fac=function(n){return new(n||t)(x(Yn))};static#t=this.\u0275cmp=Le({type:t,selectors:[["app-decimal-binding"]],inputs:{binding:"binding"},outputs:{textChange:"textChange"},decls:6,vars:3,consts:[[1,"example-full-width"],["matInput","","type","number","placeholder","Enter decimal value...","pattern","^-?[0-9]*\\.?[0-9]+$","title","Only decimal values are allowed","step","any",3,"ngModel","ngModelChange"]],template:function(n,r){1&n&&(_(0,"mat-form-field",0)(1,"mat-label"),k(2),v(),_(3,"input",1),z("ngModelChange",function(a){return r.value=a})("ngModelChange",function(a){return r.onValueChange(a)}),v(),_(4,"mat-hint"),k(5),v()()),2&n&&(w(2),Ge(r.binding.title),w(1),S("ngModel",r.value),w(2),Ge(r.binding.note))},dependencies:[Ea,Do,al,sl,Sa,g0,So,x0,ta],styles:[".chip[_ngcontent-%COMP%]{display:inline-flex;flex-direction:row;background-color:#f4a460;border:none;cursor:default;height:36px;outline:none;padding:0;font-size:14px;color:#fff;font-family:Open Sans,sans-serif;white-space:nowrap;align-items:center;border-radius:16px;vertical-align:middle;text-decoration:none;justify-content:center;margin-right:20px}.chip-content[_ngcontent-%COMP%]{cursor:inherit;display:flex;align-items:center;-webkit-user-select:none;user-select:none;white-space:nowrap;padding-left:12px;padding-right:12px}mat-form-field[_ngcontent-%COMP%]{width:100%}.code[_ngcontent-%COMP%]{font-size:small;font-weight:lighter;margin-right:15px}mat-hint[_ngcontent-%COMP%]{font-size:12px}"]})}return t})();const Xie=["newPanel"];function Qie(t,i){if(1&t){const e=Ne();_(0,"button",12),z("click",function(){_e(e);const r=V();return be(r.showRightContainer=!r.showRightContainer)}),k(1),v()}if(2&t){const e=V();w(1),it(" ",e.showRightContainer?"Close data panel":"Open data panel"," ")}}function Yie(t,i){1&t&&(_(0,"button",43),k(1," Download form "),v()),2&t&&(V(),S("matMenuTriggerFor",wt(19)))}function Kie(t,i){1&t&&(_(0,"mat-panel-description"),k(1," Click to add new binding "),v())}function Zie(t,i){if(1&t){const e=Ne();_(0,"button",44),z("click",function(){let o;return _e(e),be(null==(o=V().newBindingForm.get("title"))?null:o.reset())}),_(1,"mat-icon"),k(2,"close"),v()()}}function Jie(t,i){1&t&&(_(0,"span"),k(1,"Restrict to Observables"),v())}function ene(t,i){1&t&&(_(0,"span"),k(1,"Open to Observables + Findings + Procedures"),v())}function tne(t,i){if(1&t&&(_(0,"mat-option",45),k(1),v()),2&t){const e=i.$implicit;S("value",e),w(1),it(" ",e," ")}}function ine(t,i){if(1&t){const e=Ne();_(0,"button",44),z("click",function(){let o;return _e(e),be(null==(o=V(2).newBindingForm.get("ecl"))?null:o.reset())}),_(1,"mat-icon"),k(2,"close"),v()()}}function nne(t,i){if(1&t){const e=Ne();_(0,"mat-form-field",19)(1,"mat-label"),k(2,"Answer options: ECL Expression"),v(),ge(3,"input",46),_(4,"a",47),z("click",function(){_e(e);const r=V();let o;return be(r.openEclBuilder(null==(o=r.newBindingForm.get("ecl"))?null:o.value,"ecl"))}),k(5,"ECL Builder"),v(),P(6,ine,3,0,"button",21),_(7,"mat-error"),k(8),v()()}if(2&t){const e=V();let n;w(6),S("ngIf",null==(n=e.newBindingForm.get("ecl"))?null:n.value),w(2),Ge(e.getErrorMessage("ecl"))}}function rne(t,i){1&t&&(_(0,"span"),k(1,"Restrict to Observables"),v())}function one(t,i){1&t&&(_(0,"span"),k(1,"Open to Observables + Findings + Procedures"),v())}function ane(t,i){if(1&t){const e=Ne();_(0,"mat-form-field",19),ge(1,"app-autocomplete-binding",48),_(2,"a",24),z("click",function(){return _e(e),be(V().toggleCheckboxBinding())}),P(3,rne,2,0,"span",15),P(4,one,2,0,"span",15),v(),_(5,"mat-error"),k(6),v()()}if(2&t){const e=V();w(1),S("binding",e.checkboxBinding),w(2),S("ngIf",e.checkboxBinding.ecl===e.codeBindingAll.ecl),w(1),S("ngIf",e.checkboxBinding.ecl!=e.codeBindingAll.ecl),w(2),Ge(e.getErrorMessage("ecl"))}}function sne(t,i){if(1&t){const e=Ne();_(0,"button",44),z("click",function(){let o;return _e(e),be(null==(o=V(2).newBindingForm.get("note"))?null:o.reset())}),_(1,"mat-icon"),k(2,"close"),v()()}}function cne(t,i){if(1&t&&(_(0,"mat-form-field",49)(1,"mat-label"),k(2,"Note"),v(),ge(3,"input",50),P(4,sne,3,0,"button",21),_(5,"mat-error"),k(6),v()()),2&t){const e=V();let n;w(4),S("ngIf",null==(n=e.newBindingForm.get("note"))?null:n.value),w(2),Ge(e.getErrorMessage("note"))}}function lne(t,i){if(1&t){const e=Ne();_(0,"button",32),z("click",function(){return _e(e),be(V().addBinding())}),k(1,"Add binding"),v()}}function dne(t,i){if(1&t){const e=Ne();_(0,"button",32),z("click",function(){_e(e);const r=V();return r.addBinding(),be(r.clearOutput())}),k(1,"Update binding"),v()}}function une(t,i){if(1&t){const e=Ne();_(0,"div",51)(1,"p",52),k(2),v(),_(3,"button",53),z("click",function(){return _e(e),be(V().titleEditMode=!0)}),_(4,"mat-icon"),k(5,"edit"),v()()()}if(2&t){const e=V();w(2),Ge(e.formTitle)}}const hne=function(){return{standalone:!0}};function fne(t,i){if(1&t){const e=Ne();_(0,"div",51)(1,"form",54)(2,"mat-form-field")(3,"mat-label"),k(4,"Title"),v(),_(5,"input",55),z("ngModelChange",function(r){return _e(e),be(V().formTitle=r)})("ngModelChange",function(){return _e(e),be(V().refreshFhirQuestionnaire())}),v(),_(6,"button",44),z("click",function(){return _e(e),be(V().formTitle="")}),_(7,"mat-icon"),k(8,"close"),v()()()(),_(9,"button",53),z("click",function(){return _e(e),be(V().titleEditMode=!1)}),_(10,"mat-icon"),k(11,"save"),v()()()}if(2&t){const e=V();w(5),S("ngModel",e.formTitle)("ngModelOptions",Go(2,hne))}}function mne(t,i){if(1&t){const e=Ne();_(0,"app-autocomplete-binding",64),z("selectionChange",function(r){_e(e);const o=V().$implicit;return be(V().optionSelected(o.title,o.code,r))}),v()}2&t&&S("binding",V().$implicit)}function pne(t,i){if(1&t){const e=Ne();_(0,"app-dropdown-binding",64),z("selectionChange",function(r){_e(e);const o=V().$implicit;return be(V().optionSelected(o.title,o.code,r))}),v()}2&t&&S("binding",V().$implicit)}function gne(t,i){if(1&t){const e=Ne();_(0,"app-radios-binding",64),z("selectionChange",function(r){_e(e);const o=V().$implicit;return be(V().optionSelected(o.title,o.code,r))}),v()}2&t&&S("binding",V().$implicit)}function _ne(t,i){if(1&t&&(_(0,"span",65),k(1),v()),2&t){const e=V().$implicit;w(1),Ge(e.title)}}function bne(t,i){if(1&t){const e=Ne();_(0,"app-textbox-binding",66),z("textChange",function(r){_e(e);const o=V().$implicit;return be(V().optionSelected(o.title,o.code,r))}),v()}2&t&&S("binding",V().$implicit)}function vne(t,i){if(1&t){const e=Ne();_(0,"app-integer-binding",66),z("textChange",function(r){_e(e);const o=V().$implicit;return be(V().optionSelected(o.title,o.code,r))}),v()}2&t&&S("binding",V().$implicit)}function xne(t,i){if(1&t){const e=Ne();_(0,"app-decimal-binding",66),z("textChange",function(r){_e(e);const o=V().$implicit;return be(V().optionSelected(o.title,o.code,r))}),v()}2&t&&S("binding",V().$implicit)}function yne(t,i){if(1&t){const e=Ne();_(0,"app-checkbox-binding",64),z("selectionChange",function(r){_e(e);const o=V().$implicit;return be(V().optionSelected(o.title,o.code,r))}),v()}2&t&&S("binding",V().$implicit)}function wne(t,i){if(1&t&&(_(0,"button",67)(1,"mat-icon"),k(2,"info"),v()()),2&t){const e=V().$implicit;S("matMenuTriggerFor",wt(14))("disabled",!e.code&&!e.ecl)}}function Cne(t,i){if(1&t&&(_(0,"span",3),z("click",function(n){return n.stopPropagation()}),_(1,"h4"),k(2,"Question terminology binding"),v(),_(3,"pre"),k(4),v()()),2&t){const e=V().$implicit;S("disableRipple",!0),w(4),vd("",null==e.code?null:e.code.code," |",null==e.code?null:e.code.display,"|")}}function kne(t,i){if(1&t&&(_(0,"span",3),z("click",function(n){return n.stopPropagation()}),_(1,"h4"),k(2,"Answer terminology binding"),v(),_(3,"pre"),k(4),v()()),2&t){const e=V().$implicit;S("disableRipple",!0),w(4),Ge(e.ecl)}}function Sne(t,i){if(1&t){const e=Ne();_(0,"div",56)(1,"div",57)(2,"mat-icon",58),k(3,"drag_indicator"),v(),P(4,mne,1,1,"app-autocomplete-binding",59),P(5,pne,1,1,"app-dropdown-binding",59),P(6,gne,1,1,"app-radios-binding",59),P(7,_ne,2,1,"span",60),P(8,bne,1,1,"app-textbox-binding",61),P(9,vne,1,1,"app-integer-binding",61),P(10,xne,1,1,"app-decimal-binding",61),P(11,yne,1,1,"app-checkbox-binding",59),P(12,wne,3,2,"button",62),_(13,"mat-menu",null,2),P(15,Cne,5,3,"span",63),P(16,kne,5,2,"span",63),v(),_(17,"button",53),z("click",function(){const o=_e(e).index;return be(V().bindings.splice(o,1))}),_(18,"mat-icon"),k(19,"delete"),v()(),_(20,"button",53),z("click",function(){const o=_e(e).index;return be(V().edit(o))}),_(21,"mat-icon"),k(22,"edit"),v()()()()}if(2&t){const e=i.$implicit;w(4),S("ngIf","Autocomplete"==e.type),w(1),S("ngIf","Select (Single)"==e.type||"Select (Multiple)"==e.type),w(1),S("ngIf","Options"==e.type),w(1),S("ngIf","Section header"==e.type),w(1),S("ngIf","Text box"==e.type),w(1),S("ngIf","Integer"==e.type),w(1),S("ngIf","Decimal"==e.type),w(1),S("ngIf","Checkbox"==e.type),w(1),S("ngIf","Section header"!=e.type),w(3),S("ngIf",e.code),w(1),S("ngIf",e.ecl)}}function Dne(t,i){if(1&t){const e=Ne();_(0,"div",71)(1,"button",72),z("click",function(){_e(e);const r=V(2);return be(r.saveOutput(r.outputStr))}),ge(2,"mat-icon",73),v(),_(3,"button",74),z("click",function(){_e(e);const r=V(2);return be(r.copyOutputToClipboard(r.outputStr))}),ge(4,"mat-icon",75),v()()}}const lw=function(){return{}};function Ene(t,i){if(1&t&&(_(0,"div",68),P(1,Dne,5,0,"div",69),_(2,"textarea",70),k(3," "),v()()),2&t){const e=V();w(1),S("ngIf",e.showRightContainer),w(1),S("options",Go(4,lw))("lang","json")("innerHTML",e.responseStr,Mc)}}function Tne(t,i){if(1&t){const e=Ne();_(0,"div",71)(1,"button",72),z("click",function(){_e(e);const r=V(2);return be(r.saveBundleOutput(r.responseBundleStr))}),ge(2,"mat-icon",73),v(),_(3,"button",74),z("click",function(){_e(e);const r=V(2);return be(r.copyOutputToClipboard(r.responseBundleStr))}),ge(4,"mat-icon",75),v()()}}function Mne(t,i){if(1&t&&(_(0,"div",68),P(1,Tne,5,0,"div",69),_(2,"textarea",70),k(3," "),v()()),2&t){const e=V();w(1),S("ngIf",e.showRightContainer),w(1),S("options",Go(4,lw))("lang","json")("innerHTML",e.responseBundleStr,Mc)}}function Ane(t,i){if(1&t){const e=Ne();_(0,"div",71)(1,"button",72),z("click",function(){_e(e);const r=V(2);return be(r.saveOutput(r.fhirQuestionnaireStr))}),ge(2,"mat-icon",73),v(),_(3,"button",74),z("click",function(){_e(e);const r=V(2);return be(r.copyOutputToClipboard(r.fhirQuestionnaireStr))}),ge(4,"mat-icon",75),v()()}}function Ine(t,i){if(1&t&&(_(0,"div",68),P(1,Ane,5,0,"div",69),_(2,"textarea",70),k(3," "),v()()),2&t){const e=V();w(1),S("ngIf",e.showRightContainer),w(1),S("options",Go(4,lw))("lang","json")("innerHTML",e.fhirQuestionnaireStr,Mc)}}let Fne=(()=>{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.response={},this.responseStr="{}",this.responseBundle={},this.responseBundleStr="{}",this.fhirQuestionnaire={},this.fhirQuestionnaireStr="{}",this.observableBinding={title:"Question code",type:"Autocomplete",ecl:"<< 363787002 |Observable entity (observable entity)|",value:""},this.codeBindingObservables={title:"Question code (Observables)",type:"Autocomplete",ecl:"<< 363787002 |Observable entity (observable entity)|",value:""},this.codeBindingAll={title:"Question code (Observables + Findings + Procedures)",type:"Autocomplete",ecl:"<< 363787002 |Observable entity (observable entity)| OR << 404684003 |Clinical finding (finding)| OR << 71388002 |Procedure (procedure)|",value:""},this.codeBinding=this.codeBindingAll,this.checkboxBinding=JSON.parse(JSON.stringify(this.codeBindingAll)),this.example1={title:"Appendicitis data entry form (example)",bindings:[{title:"Diagnosis (type of appendicitis)",type:"Autocomplete",ecl:"<< 74400008 |Appendicitis|",value:"",note:"An autocomplete field to select between all descendants of appendicitis."},{title:"Clinical note",type:"Text box",ecl:"74400008 |Appendicitis|",value:"",note:"A text box for entering free text clinical information."},{title:"Appendicitis type",type:"Select (Single)",ecl:"<< 196781001 |Acute appendicitis with peritonitis (disorder)|",value:"",note:"A single selection dropdown field for a shorter selection of the type of appendicitis."},{title:"Appendicitis type (M)",type:"Select (Multiple)",ecl:"<< 196781001 |Acute appendicitis with peritonitis (disorder)|",value:"",note:"A multiple selection dropdown field for a shorter selection of the type of appendicitis."},{title:"Appendicectomy type",type:"Options",ecl:"<< 174036004 |Emergency appendectomy (procedure)|",value:"",note:"A radio buttons selector for the type of appendicectomy procedure."}]},this.newBindingForm=new su({title:new Hr("",[ou.required,ou.maxLength(50)]),code:new Hr("",[]),type:new Hr("",[ou.required]),ecl:new Hr("",[]),value:new Hr("",[]),note:new Hr("",[ou.maxLength(500)])}),this.indexInEdit=-1,this.panelOpenState=!1,this.maxSelectCount=50,this.maxOptionsCount=10,this.controlTypes=["Autocomplete","Select (Single)","Select (Multiple)","Options","Section header","Text box","Integer","Decimal","Checkbox"].sort((o,a)=>o.localeCompare(a)),this.showRightContainer=!1}ngOnInit(){this.checkboxBinding.title=this.checkboxBinding.title.replace("Question","Checkbox")}get stateName(){return this.showRightContainer?"open":"closed"}addBinding(){var e=this;return fi(function*(){if(e.newBindingForm.markAllAsTouched(),e.newBindingForm.invalid)return;const{title:n,code:r,type:o,ecl:a,value:s,note:c}=e.newBindingForm.controls;let l={title:n.value,code:r.value,type:o.value,ecl:a.value,value:s.value,note:c.value},d=!1;a.value?typeof l.type?.indexOf("Select")<"u"&&l.type?.indexOf("Select")>-1?(yield e.getEclPreview(a.value)).expansion.contains.length>e.maxSelectCount&&(d=!0,a.setErrors({selectTooManyResults:!0})):typeof l.type?.indexOf("Options")<"u"&&l.type?.indexOf("Options")>-1&&(yield e.getEclPreview(a.value)).expansion.contains.length>e.maxOptionsCount&&(d=!0,a.setErrors({optionsTooManyResults:!0})):"Section header"!=l.type&&"Text box"!=l.type&&"Integer"!=l.type&&"Decimal"!=l.type&&(d=!0,a.setErrors({required:!0})),!d&&(e.indexInEdit>-1?e.bindings[e.indexInEdit]=l:e.bindings.push(l),e.newBindingForm.reset(),e.newPanel.close(),e.indexInEdit=-1,setTimeout(()=>{e.refreshFhirQuestionnaire(),e.refreshResponse()},100))})()}refreshFhirQuestionnaire(){this.fhirQuestionnaire={resourceType:"Questionnaire",title:this.formTitle,status:"draft",item:[]},this.bindings.forEach((e,n)=>{const r=this.createItemForBinding(e,n);r&&this.fhirQuestionnaire.item.push(r)}),this.fhirQuestionnaireStr=JSON.stringify(this.fhirQuestionnaire,null,2)}createItemForBinding(e,n){const r=this.initializeBaseItem(e,n);return["Select (Single)","Select (Multiple)","Options","Autocomplete"].includes(e.type)&&(r.extension=this.getExtensionForSelectableTypes(),r.answerValueSet=this.getAnswerValueSet(e)),"Autocomplete"===e.type&&r.extension.push(this.getAutocompleteExtension()),"Select (Multiple)"===e.type&&(r.repeats=!0),r}initializeBaseItem(e,n){const r={linkId:n+1,text:e.title,type:this.getQuestionnaireItemType(e.type)};return e.code&&(r.code=[{system:"http://snomed.info/sct",code:e.code.code,display:e.code.display}]),r}getQuestionnaireItemType(e){switch(e){case"Section header":return"display";case"Select (Single)":case"Select (Multiple)":case"Options":case"Autocomplete":return"choice";case"Text box":return"text";case"Integer":return"integer";case"Decimal":return"decimal";default:return console.warn(`Unhandled binding type: ${e}`),null}}getExtensionForSelectableTypes(){return[{url:"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-preferredTerminologyServer",valueUrl:"https://snowstorm.ihtsdotools.org/fhir"}]}getAutocompleteExtension(){return{url:"http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",valueCodeableConcept:{coding:[{system:"http://hl7.org/fhir/questionnaire-item-control",code:"autocomplete",display:"Auto-complete"}]}}}getAnswerValueSet(e){return`http://snomed.info/sct/900000000000207008?fhir_vs=ecl%2F${encodeURIComponent(e.ecl)}`}getEclPreview(e){var n=this;return fi(function*(){return Sr((yield n.terminologyService.expandValueSet(e,"")).pipe(Ze(o=>o)))})()}edit(e){this.indexInEdit=e;const n=this.bindings[e];this.newBindingForm.setValue({title:n.title,code:n.code?n.code:"",type:n.type,ecl:n.ecl,value:n.value,note:n.note}),this.newPanel.open()}onDrop(e){K1(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}refreshResponse(){this.response={};for(let e of this.bindings)this.response[e.title]={},e.code&&(this.response[e.title].code=e.code);for(let[e,n]of Object.entries(this.output))this.output[e].code&&(this.response[e].code=this.output[e].code),this.output[e].value&&(this.response[e].value=this.output[e].value);this.responseStr=JSON.stringify(this.response,null,2),this.refreshResponseBundle()}refreshResponseBundle(){this.responseBundle={resourceType:"Bundle",type:"collection",entry:[]};for(let[e,n]of Object.entries(this.response)){let r=n;const a=r.value?.code?{coding:[{system:"http://snomed.info/sct",code:r.value.code,display:r.value.display}]}:void 0;let s={resourceType:"Observation",status:"final",category:[{coding:[{system:"http://terminology.hl7.org/CodeSystem/observation-category",code:"survey",display:"Survey"}]}],subject:{reference:"Patient/123"}};s.code=(r.code?{coding:[{system:"http://snomed.info/sct",code:r.code.code,display:r.code.display}]}:void 0)||{coding:[{system:"http://snomed.info/sct",code:"363788007",display:"Clinical history/examination observable (observable entity)"}]},a&&(s.valueCodeableConcept=a),r.value&&"string"==typeof r.value&&(s.valueString=r.value),(s.valueCodeableConcept||s.valueString)&&this.responseBundle.entry.push(s)}this.responseBundleStr=JSON.stringify(this.responseBundle,null,2)}optionSelected(e,n,r){this.output[e]={code:n,value:r},n||delete this.output[e].code,this.outputStr=JSON.stringify(this.output,null,2),this.refreshResponse()}loadExample1(){this.formTitle=this.example1.title,this.bindings=this.example1.bindings,this.refreshFhirQuestionnaire(),this.clearOutput(),this.refreshResponse()}cancelEdit(){this.newBindingForm.reset(),this.newPanel.close(),this.indexInEdit=-1}clear(){this.bindings=[],this.clearOutput(),this.newBindingForm.reset(),this.formTitle="My new form",this.showRightContainer=!1}clearOutput(){this.output={},this.outputStr="{}";const e=JSON.parse(JSON.stringify(this.bindings));this.bindings=[],this.bindings=e}saveForm(){var e=new Blob([JSON.stringify({title:this.formTitle,bindings:this.bindings},null,2)],{type:"text/plain;charset=utf-8"});(0,ps.saveAs)(e,`${this.formTitle}.json`)}saveOutput(e){var n=new Blob([e],{type:"text/plain;charset=utf-8"});(0,ps.saveAs)(n,`${this.formTitle}-data.json`)}saveBundleOutput(e){var n=new Blob([e],{type:"text/plain;charset=utf-8"});(0,ps.saveAs)(n,`${this.formTitle}-fhir-bundle.json`)}copyOutputToClipboard(e){this.clipboard.copy(e)}uploadFile(e){if(1!==e.target.files.length)console.error("No file selected");else{const 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(),this.refreshResponse(),this.refreshFhirQuestionnaire()}},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)}})}toggleCodeBinding(){this.codeBinding=this.codeBinding===this.codeBindingAll?this.codeBindingObservables:this.codeBindingAll}toggleCheckboxBinding(){this.checkboxBinding=this.checkboxBinding.ecl===this.codeBindingAll.ecl?JSON.parse(JSON.stringify(this.codeBindingObservables)):JSON.parse(JSON.stringify(this.codeBindingAll)),this.checkboxBinding.title=this.checkboxBinding.title.replace("Question","Checkbox")}static#e=this.\u0275fac=function(n){return new(n||t)(x(Yn),x(W1),x(du))};static#t=this.\u0275cmp=Le({type:t,selectors:[["app-bindings-sandbox"]],viewQuery:function(n,r){if(1&n&&rt(Xie,5),2&n){let o;Se(o=De())&&(r.newPanel=o.first)}},decls:91,vars:27,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,"form-row"],[1,"form-column"],[1,"input-field"],["matInput","","type","text","formControlName","title","placeholder","Enter title..."],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"input-field","autocomplete-field"],["formControlName","code",1,"grow",3,"binding"],["href","javascript:void(0)",1,"bottom-right-link",3,"click"],["formControlName","type"],[3,"value",4,"ngFor","ngForOf"],["class","input-field",4,"ngIf"],["class","input-field full-width",4,"ngIf"],[1,"row"],[1,"grow"],["mat-flat-button","","color","primary",3,"click",4,"ngIf"],["mat-flat-button","","color","primary",3,"click"],["class","compact-row-container",4,"ngIf"],[1,"row-container"],[1,"row-container-item"],["cdkDropList","",3,"cdkDropListDropped"],["class","output-panel","cdkDrag","",4,"ngFor","ngForOf"],["mat-stretch-tabs","false","mat-align-tabs","start"],["label","Data collected from form"],["class","output",4,"ngIf"],["label","Data collected (FHIR Bundle)"],["label","FHIR Questionnaire"],["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"],[1,"input-field","full-width"],["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"],["mat-menu-item","",3,"disableRipple","click",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(n,r){if(1&n){const o=Ne();_(0,"div",0)(1,"h3"),k(2,"Terminology Bindings Sandbox "),_(3,"button",1)(4,"mat-icon"),k(5,"info"),v()(),_(6,"mat-menu",null,2)(8,"span",3),z("click",function(s){return s.stopPropagation()}),_(9,"h4"),k(10,"Terminology Bindings Sandbox"),v(),_(11,"p"),k(12,"This is a sandbox for creating terminology bindings, designed to support education activities."),v()()()(),_(13,"div",4),P(14,Qie,2,1,"button",5),_(15,"input",6,7),z("change",function(s){return r.uploadFile(s)}),v(),P(17,Yie,2,1,"button",8),_(18,"mat-menu",9,10)(20,"button",11),z("click",function(){return r.saveForm()}),k(21,"Download"),v(),_(22,"button",11),z("click",function(){return r.saveOutput(r.fhirQuestionnaireStr)}),k(23,"Download as FHIR Questionnaire"),v()(),_(24,"button",12),z("click",function(){return _e(o),be(wt(16).click())}),k(25,"Upload form"),v(),_(26,"button",12),z("click",function(){return r.loadExample1()}),k(27,"Example"),v(),_(28,"button",12),z("click",function(){return r.clear()}),k(29,"Clear"),v()(),_(30,"mat-expansion-panel",13,14),z("opened",function(){return r.panelOpenState=!0})("closed",function(){return r.panelOpenState=!1}),_(32,"mat-expansion-panel-header")(33,"mat-panel-title")(34,"h4"),k(35,"New binding:"),v()(),P(36,Kie,2,0,"mat-panel-description",15),v(),_(37,"div")(38,"form",16)(39,"div",17)(40,"div",18)(41,"h5"),k(42,"Question"),v(),_(43,"mat-form-field",19)(44,"mat-label"),k(45,"Question text"),v(),ge(46,"input",20),P(47,Zie,3,0,"button",21),_(48,"mat-error"),k(49),v()(),_(50,"mat-form-field",22),ge(51,"app-autocomplete-binding",23),_(52,"a",24),z("click",function(){return r.toggleCodeBinding()}),P(53,Jie,2,0,"span",15),P(54,ene,2,0,"span",15),v(),_(55,"mat-error"),k(56),v()()(),_(57,"div",18)(58,"h5"),k(59,"Answer"),v(),_(60,"mat-form-field",19)(61,"mat-label"),k(62,"Answer Type"),v(),_(63,"mat-select",25),P(64,tne,2,2,"mat-option",26),v(),_(65,"mat-error"),k(66),v()(),P(67,nne,9,2,"mat-form-field",27),P(68,ane,7,4,"mat-form-field",27),v()(),P(69,cne,7,2,"mat-form-field",28),v(),ge(70,"br"),_(71,"div",29),ge(72,"span",30),P(73,lne,2,0,"button",31),P(74,dne,2,0,"button",31),_(75,"button",32),z("click",function(){return r.cancelEdit()}),k(76,"Cancel"),v()()()(),P(77,une,6,1,"div",33),P(78,fne,12,3,"div",33),_(79,"div",34)(80,"div",35)(81,"div",36),z("cdkDropListDropped",function(s){return r.onDrop(s)}),P(82,Sne,23,11,"div",37),v()(),_(83,"div",35)(84,"mat-tab-group",38)(85,"mat-tab",39),P(86,Ene,4,5,"div",40),v(),_(87,"mat-tab",41),P(88,Mne,4,5,"div",40),v(),_(89,"mat-tab",42),P(90,Ine,4,5,"div",40),v()()()()()}if(2&n){const o=wt(7);let a;w(3),S("matMenuTriggerFor",o),w(5),S("disableRipple",!0),w(6),S("ngIf",r.bindings.length),w(3),S("ngIf",r.bindings.length),w(19),S("ngIf",!r.panelOpenState),w(2),S("formGroup",r.newBindingForm),w(9),S("ngIf",null==(a=r.newBindingForm.get("title"))?null:a.value),w(2),Ge(r.getErrorMessage("title")),w(2),S("binding",r.codeBinding),w(2),S("ngIf",r.codeBinding===r.codeBindingAll),w(1),S("ngIf",r.codeBinding!=r.codeBindingAll),w(2),Ge(r.getErrorMessage("code")),w(8),S("ngForOf",r.controlTypes),w(2),Ge(r.getErrorMessage("type")),w(1),S("ngIf","Section header"!=r.newBindingForm.controls.type.value&&"Text box"!=r.newBindingForm.controls.type.value&&"Checkbox"!=r.newBindingForm.controls.type.value&&"Integer"!=r.newBindingForm.controls.type.value&&"Decimal"!=r.newBindingForm.controls.type.value),w(1),S("ngIf","Checkbox"==r.newBindingForm.controls.type.value),w(1),S("ngIf","Section header"!=r.newBindingForm.controls.type.value),w(4),S("ngIf",-1==r.indexInEdit),w(1),S("ngIf",r.indexInEdit>-1),w(3),S("ngIf",!r.titleEditMode),w(1),S("ngIf",r.titleEditMode),w(2),S("@growShrink",r.stateName),w(2),S("ngForOf",r.bindings),w(1),S("@openClose",r.stateName),w(3),S("ngIf",r.bindings.length>0),w(2),S("ngIf",r.bindings.length>0),w(2),S("ngIf",r.bindings.length>0)}},dependencies:[kr,Yi,D0,tw,nw,BO,Dr,Zo,oo,Qc,ka,Yc,Ea,Do,zR,jR,Qs,sl,ff,Sa,So,sf,Zs,mf,S0,gf,_f,ta,rl,cu,oP,fie,pie,mie,pf,bie,Aie,Iie,Wie,Gie,qie],styles:["#main-panel[_ngcontent-%COMP%]{padding:10px}h3[_ngcontent-%COMP%]{margin-top:0}.row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:-5px;align-items:center;gap:10px}.grow[_ngcontent-%COMP%]{flex-grow:4}mat-hint[_ngcontent-%COMP%], mat-error[_ngcontent-%COMP%]{font-size:12px}.editPanel[_ngcontent-%COMP%]{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}.mat-mdc-form-field-infix[_ngcontent-%COMP%]{padding:0!important}.bottom-right-link[_ngcontent-%COMP%]{position:absolute;bottom:5px;right:0;font-size:smaller}.form-layout[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin-right:-10px;margin-left:-10px;width:100%}.form-column[_ngcontent-%COMP%]{flex:1 1 0px;padding-right:10px;padding-left:10px;display:flex;flex-direction:column;width:100%}.input-field.full-width[_ngcontent-%COMP%]{width:calc(100% - 20px);margin-bottom:20px}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}"],data:{animation:[zi("openClose",[Zt("open",Xe({opacity:1,width:"50%"})),Zt("closed",Xe({opacity:0,width:"0"})),Wt("open <=> closed",[jt("0.5s")])]),zi("growShrink",[Zt("open",Xe({width:"50%"})),Zt("closed",Xe({width:"100%"})),Wt("open <=> closed",[jt("0.5s")])])]}})}return t})(),Rne=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Le({type:t,selectors:[["app-prescription-main"]],decls:2,vars:0,template:function(n,r){1&n&&(_(0,"p"),k(1,"prescription-main works!, no?"),v())}})}return t})();const One=["mat-sort-header",""];function Pne(t,i){if(1&t){const e=Ne();_(0,"div",3),z("@arrowPosition.start",function(){return _e(e),be(V()._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){return _e(e),be(V()._disableViewStateAnimation=!1)}),ge(1,"div",4),_(2,"div",5),ge(3,"div",6)(4,"div",7)(5,"div",8),v()()}if(2&t){const e=V();S("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),w(2),S("@indicator",e._getArrowDirectionState()),w(1),S("@leftPointer",e._getArrowDirectionState()),w(1),S("@rightPointer",e._getArrowDirectionState())}}const Lne=["*"],fP=new oe("MAT_SORT_DEFAULT_OPTIONS"),Nne=oX(cs(class{}));let cl=(()=>{class t extends Nne{get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=He(e)}constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new ke,this.start="asc",this._direction="",this.sortChange=new Ce}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 Bne(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)(x(fP,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,Ai]}),t})();const ec=iX.ENTERING+" "+tX.STANDARD_CURVE,uu={indicator:zi("indicator",[Zt("active-asc, asc",Xe({transform:"translateY(0px)"})),Zt("active-desc, desc",Xe({transform:"translateY(10px)"})),Wt("active-asc <=> active-desc",jt(ec))]),leftPointer:zi("leftPointer",[Zt("active-asc, asc",Xe({transform:"rotate(-45deg)"})),Zt("active-desc, desc",Xe({transform:"rotate(45deg)"})),Wt("active-asc <=> active-desc",jt(ec))]),rightPointer:zi("rightPointer",[Zt("active-asc, asc",Xe({transform:"rotate(45deg)"})),Zt("active-desc, desc",Xe({transform:"rotate(-45deg)"})),Wt("active-asc <=> active-desc",jt(ec))]),arrowOpacity:zi("arrowOpacity",[Zt("desc-to-active, asc-to-active, active",Xe({opacity:1})),Zt("desc-to-hint, asc-to-hint, hint",Xe({opacity:.54})),Zt("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Xe({opacity:0})),Wt("* => asc, * => desc, * => active, * => hint, * => void",jt("0ms")),Wt("* <=> *",jt(ec))]),arrowPosition:zi("arrowPosition",[Wt("* => desc-to-hint, * => desc-to-active",jt(ec,Qh([Xe({transform:"translateY(-25%)"}),Xe({transform:"translateY(0)"})]))),Wt("* => hint-to-desc, * => active-to-desc",jt(ec,Qh([Xe({transform:"translateY(0)"}),Xe({transform:"translateY(25%)"})]))),Wt("* => asc-to-hint, * => asc-to-active",jt(ec,Qh([Xe({transform:"translateY(25%)"}),Xe({transform:"translateY(0)"})]))),Wt("* => hint-to-asc, * => active-to-asc",jt(ec,Qh([Xe({transform:"translateY(0)"}),Xe({transform:"translateY(-25%)"})]))),Zt("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Xe({transform:"translateY(0)"})),Zt("hint-to-desc, active-to-desc, desc",Xe({transform:"translateY(-25%)"})),Zt("hint-to-asc, active-to-asc, asc",Xe({transform:"translateY(25%)"}))]),allowChildren:zi("allowChildren",[Wt("* <=> *",[Bg("@*",Ng(),{optional:!0})])])};let L0=(()=>{class t{constructor(){this.changes=new ke}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Hne={provide:L0,deps:[[new ha,new Dc,L0]],useFactory:function Vne(t){return t||new L0}},Une=cs(class{});let mP=(()=>{class t extends Une{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=He(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=Pi(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)(x(L0),x(Ut),x(cl,8),x("MAT_SORT_HEADER_COLUMN_DEF",8),x(ro),x(Ie),x(FI,8),x(fP,8))},t.\u0275cmp=Le({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,n){1&e&&z("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&&(st("aria-sort",n._getAriaSortAttribute()),Ye("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:One,ngContentSelectors:Lne,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&&(hi(),_(0,"div",0)(1,"div",1),Je(2),v(),P(3,Pne,6,6,"div",2),v()),2&e&&(Ye("mat-sort-header-sorted",n._isSorted())("mat-sort-header-position-before","before"===n.arrowPosition),st("tabindex",n._isDisabled()?null:0)("role",n._isDisabled()?null:"button"),w(3),S("ngIf",n._renderArrow()))},dependencies:[Yi],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:[uu.indicator,uu.leftPointer,uu.rightPointer,uu.arrowOpacity,uu.arrowPosition,uu.allowChildren]},changeDetection:0}),t})(),zne=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({providers:[Hne],imports:[Xn,yt]}),t})(),$ne=(()=>{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}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),wf=(()=>{class t{constructor(e,n){this.http=e,this.storageService=n,this.baseUrlSubject=new Ki("https://hapi.fhir.org/baseR4"),this.baseUrl$=this.baseUrlSubject.asObservable(),this.userTagSubject=new Ki(""),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(ln(o=>404===o.status?this.postQuestionnaire(e):Vc(o))):this.postQuestionnaire(e)}static#e=this.\u0275fac=function(n){return new(n||t)(X(zs),X($ne))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function jne(t,i){if(1&t&&(_(0,"mat-option",15),k(1),v()),2&t){const e=i.$implicit;S("value",e),w(1),it(" ",e.title," ")}}function Wne(t,i){1&t&&ge(0,"mat-spinner",16)}function Gne(t,i){if(1&t){const e=Ne();_(0,"div",17)(1,"span",18),k(2,"\u2261"),v(),k(3),_(4,"button",19),z("click",function(){const o=_e(e).index;return be(V().deleteQuestionnaire(o))}),_(5,"mat-icon"),k(6,"delete"),v()()()}if(2&t){const e=i.$implicit;w(3),it(" ",e.title," ")}}let pP=(()=>{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,this.availableQuestionnaires=this.availableQuestionnaires.filter(e=>!e.extension||!e.extension.some(n=>"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assemble-expectation"===n.url&&"assemble-root"===n.valueCode))}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){K1(this.addedQuestionnaires,e.previousIndex,e.currentIndex)}deleteQuestionnaire(e){e>-1&&(this.addedQuestionnaires.splice(e,1),this.updateAvailableQuestionnaires())}isSaveDisabled(){return!this.questionnaireForm.get("assignedName")?.value||!this.addedQuestionnaires.length}closeModal(){this.dialogRef.close({title:this.questionnaireForm.get("assignedName")?.value,questionnaires:this.addedQuestionnaires})}static#e=this.\u0275fac=function(n){return new(n||t)(x(HR),x(wf),x(R0),x(Js))};static#t=this.\u0275cmp=Le({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(n,r){1&n&&(_(0,"mat-dialog-content")(1,"h2"),k(2,"Create a modular Questionnaire"),v(),_(3,"form",0)(4,"div",1)(5,"mat-form-field",2)(6,"mat-label"),k(7,"Assign Name"),v(),ge(8,"input",3),v()(),_(9,"div",1)(10,"mat-form-field",4)(11,"mat-label"),k(12,"Select Child Questionnaire"),v(),_(13,"mat-select",5),P(14,jne,2,2,"mat-option",6),v()(),_(15,"button",7),z("click",function(){return r.addQuestionnaire()}),k(16,"Add questionnaire"),v(),P(17,Wne,1,0,"mat-spinner",8),v()(),_(18,"div",9)(19,"cdk-drop-list",10),z("cdkDropListDropped",function(a){return r.drop(a)}),P(20,Gne,7,1,"div",11),v()()(),_(21,"mat-dialog-actions",12)(22,"button",13),k(23,"Cancel"),v(),_(24,"button",14),z("click",function(){return r.closeModal()}),k(25,"Save"),v()()),2&n&&(w(3),S("formGroup",r.questionnaireForm),w(11),S("ngForOf",r.availableQuestionnaires),w(1),S("disabled",r.loading),w(2),S("ngIf",r.loading),w(3),S("ngForOf",r.addedQuestionnaires),w(4),S("disabled",r.isSaveDisabled()||r.loading))},dependencies:[kr,Yi,tw,nw,Dr,Zo,oo,Ea,Do,Qs,Yd,sl,ff,Sa,So,sf,Zs,mf,_f,yf,O0,P0],styles:[".questionnaire-list[_ngcontent-%COMP%]{width:100%;max-height:400px;overflow:auto;border:1px solid #ccc;border-radius:4px;background-color:#f9f9f9;padding:10px}.list[_ngcontent-%COMP%] .cdk-drag[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:4px;background-color:#fff;margin-bottom:10px;padding:10px;display:flex;align-items:center;justify-content:left;box-shadow:0 2px 4px #0000001a}.drag-handle[_ngcontent-%COMP%]{cursor:move;margin-right:15px;font-size:20px;color:#666}.cdk-drag-preview[_ngcontent-%COMP%]{background-color:#e0e0e0}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.button-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:1rem;margin-right:2rem;align-items:center}.form-layout[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:15px}.form-layout[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%}.form-layout[_ngcontent-%COMP%] .half-width[_ngcontent-%COMP%]{width:50%;margin-right:15px}"]})}return t})(),gP=(()=>{class t{constructor(e,n){this.http=e,this.fhirService=n}generateRootQuestionnaire(e,n){var r=this;return fi(function*(){try{let a=yield Sr(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 fi(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=fi(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 fi(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 fi(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 fi(function*(){try{return yield Sr(n.http.get(e))}catch(r){return console.error("Error fetching questionnaire:",r),null}})()}static#e=this.\u0275fac=function(n){return new(n||t)(X(zs),X(wf))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function qne(t,i){1&t&&(_(0,"th",17),k(1," Title "),v())}function Xne(t,i){if(1&t&&(_(0,"td",18),k(1),v()),2&t){const e=i.$implicit;w(1),it(" ",e.title," ")}}function Qne(t,i){1&t&&(_(0,"th",17),k(1," Status "),v())}const Yne=function(t){return["status-pill",t]};function Kne(t,i){if(1&t&&(_(0,"td",18)(1,"span",19),k(2),Cd(3,"uppercase"),v()()),2&t){const e=i.$implicit;w(1),S("ngClass",Ja(4,Yne,e.status)),w(1),Ge(Sp(3,2,e.status))}}function Zne(t,i){1&t&&(_(0,"th",17),k(1," Version "),v())}function Jne(t,i){if(1&t&&(_(0,"td",18),k(1),v()),2&t){const e=i.$implicit;w(1),it(" ",e.meta.versionId," ")}}function ere(t,i){1&t&&(_(0,"th",17),k(1," Type "),v())}const tre=function(){return["status-pill","active"]};function ire(t,i){1&t&&(_(0,"span",19),k(1,"QUESTIONNAIRE"),v()),2&t&&S("ngClass",Go(1,tre))}const nre=function(){return["status-pill","draft"]};function rre(t,i){1&t&&(_(0,"span",19),k(1,"MODULAR ROOT"),v()),2&t&&S("ngClass",Go(1,nre))}function ore(t,i){if(1&t&&(_(0,"td",18),P(1,ire,2,2,"span",20),P(2,rre,2,2,"span",20),v()),2&t){const e=i.$implicit,n=V();w(1),S("ngIf",!n.isRootQuestionnaire(e)),w(1),S("ngIf",n.isRootQuestionnaire(e))}}function are(t,i){1&t&&(_(0,"th",21),k(1," Actions "),v())}function sre(t,i){if(1&t){const e=Ne();_(0,"button",31),z("click",function(){_e(e);const r=V().$implicit;return be(V().validate(r))}),_(1,"mat-icon"),k(2,"done"),v()()}if(2&t){const e=V().$implicit;S("disabled",V().isRootQuestionnaire(e))}}function cre(t,i){if(1&t){const e=Ne();_(0,"button",32),z("click",function(){_e(e);const r=V().$implicit;return be(V().assemble(r))}),_(1,"mat-icon"),k(2,"build"),v()()}}function lre(t,i){if(1&t){const e=Ne();_(0,"button",33),z("click",function(){_e(e);const r=V().$implicit;return be(V().preview(r))}),_(1,"mat-icon"),k(2,"visibility"),v()()}}function dre(t,i){if(1&t){const e=Ne();_(0,"button",34),z("click",function(){_e(e);const r=V().$implicit;return be(V().openInNewTab(r))}),_(1,"mat-icon"),k(2,"open_in_new"),v()()}}function ure(t,i){if(1&t){const e=Ne();_(0,"button",35),z("click",function(){_e(e);const r=V().$implicit;return be(V().editQuestionnaire(r))}),_(1,"mat-icon"),k(2,"edit"),v()()}}function hre(t,i){if(1&t){const e=Ne();_(0,"button",36),z("click",function(){_e(e);const r=V().$implicit;return be(V().openModularQuestionnaireModal(r))}),_(1,"mat-icon"),k(2,"edit"),v()()}}function fre(t,i){if(1&t){const e=Ne();_(0,"td",18),P(1,sre,3,1,"button",22),P(2,cre,3,0,"button",23),P(3,lre,3,0,"button",24),P(4,dre,3,0,"button",25),_(5,"button",26),z("click",function(){const o=_e(e).$implicit;return be(V().saveQuestionnaire(o))}),_(6,"mat-icon"),k(7,"cloud_download"),v()(),P(8,ure,3,0,"button",27),P(9,hre,3,0,"button",28),_(10,"span",29)(11,"button",30),z("click",function(){const o=_e(e).$implicit;return be(V().deleteQuestionnaire(o))}),_(12,"mat-icon"),k(13,"delete"),v()()()()}if(2&t){const e=i.$implicit,n=V();w(1),S("ngIf",n.config.validate),w(1),S("ngIf",n.isRootQuestionnaire(e)),w(1),S("ngIf",n.config.preview&&!n.isRootQuestionnaire(e)),w(1),S("ngIf",n.config.preview),w(4),S("ngIf",!n.isRootQuestionnaire(e)),w(1),S("ngIf",n.isRootQuestionnaire(e)),w(1),_d("matTooltip",n.getDeleteTooltip(e)),w(1),S("disabled",n.getReferencingQuestionnaires(e).length>0)}}function mre(t,i){1&t&&ge(0,"tr",37)}function pre(t,i){1&t&&ge(0,"tr",38)}function gre(t,i){1&t&&(_(0,"p",39)(1,"i"),k(2," No questionnaires found. Upload your questionnaires to start. "),v()())}function _re(t,i){1&t&&ge(0,"mat-spinner",40)}function bre(t,i){if(1&t){const e=Ne();_(0,"button",41),z("click",function(){return _e(e),be(V().downloadAllQuestionnaires())}),k(1," Download bundle "),v()}}let _P=(()=>{class t{constructor(e,n,r,o){this.fhirService=e,this.questionnaireService=n,this.dialog=r,this._snackBar=o,this.questionnaireSelected=new Ce,this.validateQuestionnaire=new Ce,this.previewQuestionnaire=new Ce,this.config={},this.displayedColumns=["title","status","version","type","actions"],this.dataSource=new af,this.questionnaires=[],this.loading=!1,this.selectedFhirServer="",this.selectedUserTag="",this.notFound=!1,this.baseUrlChanged=new ke,this.userTagChanged=new ke}ngOnInit(){Bc([this.fhirService.baseUrl$.pipe($c(1e3),Ws()),this.fhirService.userTag$.pipe($c(1e3),Ws())]).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(Zi,{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(Zi,{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"});ps(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(Zi,{duration:2e3,data:"Assembling Questionnaire...",panelClass:["green-snackbar"]}),this.questionnaireService.assembleQuestionnaire(e).then(n=>{n.title=e.title+" (assembled)",this.previewQuestionnaire.emit(n),this._snackBar.openFromComponent(Zi,{duration:2e3,data:"Questionnaire ready",panelClass:["green-snackbar"]})}).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 fi(function*(){let r=yield n.questionnaireService.getRootQuestionnaireData(e);n.dialog.open(pP,{data:r,width:"75%"}).afterClosed().subscribe(a=>{a&&n.handleDialogResult(a,e)})})()}handleDialogResult(e,n){var r=this;return fi(function*(){r._snackBar.openFromComponent(Zi,{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(wo()).subscribe(a=>{r._snackBar.openFromComponent(Zi,{duration:5e3,data:"Questionnaire updated successfully",panelClass:["green-snackbar"]}),r.updateQuestionnairesList(a)},a=>{r._snackBar.openFromComponent(Zi,{duration:5e3,data:"Error saving questionnaire",panelClass:["red-snackbar"]})}))}catch(o){console.error("Error handling dialog result:",o)}})()}downloadAllQuestionnaires(){this._snackBar.openFromComponent(Zi,{duration:5e3,data:"Downloading Questionnaires...",panelClass:["green-snackbar"]}),this.fhirService.getQuestionnairesByTag(this.selectedUserTag).subscribe(e=>{var n=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});ps(n,"questionnaires-bundle.json"),this._snackBar.openFromComponent(Zi,{duration:5e3,data:"Questionnaires downloaded successfully",panelClass:["green-snackbar"]})})}getReferencingQuestionnaires(e){let r=`${this.fhirService.getBaseUrl()}/Questionnaire/${e.id}`;return this.dataSource.data.filter(a=>a.item&&Array.isArray(a.item)&&a.item.some(s=>s.item&&Array.isArray(s.item)&&s.item.some(c=>c.extension&&Array.isArray(c.extension)&&c.extension.some(l=>"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire"===l.url&&l.valueCanonical===r))))}getDeleteTooltip(e){const n=this.getReferencingQuestionnaires(e);return 0===n.length?"Delete Questionnaire":`Cannot delete: Referenced by ${n.map(o=>`"${o.title}"`).join(", ")}`}static#e=this.\u0275fac=function(n){return new(n||t)(x(wf),x(gP),x(du),x(Qd))};static#t=this.\u0275cmp=Le({type:t,selectors:[["app-list-questionnaires"]],viewQuery:function(n,r){if(1&n&&rt(cl,5),2&n){let o;Se(o=De())&&(r.sort=o.first)}},inputs:{config:"config"},outputs:{questionnaireSelected:"questionnaireSelected",validateQuestionnaire:"validateQuestionnaire",previewQuestionnaire:"previewQuestionnaire"},features:[Ai],decls:24,vars:6,consts:[["id","table-container"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","title"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","status"],["matColumnDef","version"],["matColumnDef","type"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","not-found",4,"ngIf"],["diameter","35","class","loading-spinner",4,"ngIf"],["id","outer-container"],[1,"download-button-container"],["mat-flat-button","","color","accent","matTooltip","Dowload all Questionnaires",3,"click",4,"ngIf"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"ngClass"],[3,"ngClass",4,"ngIf"],["mat-header-cell",""],["mat-icon-button","","color","accent","class","action-button","matTooltip","Validate Questionnaire",3,"disabled","click",4,"ngIf"],["mat-icon-button","","color","accent","class","action-button","matTooltip","Assemble Questionnaire",3,"click",4,"ngIf"],["mat-icon-button","","color","accent","class","action-button","matTooltip","Preview Questionnaire",3,"click",4,"ngIf"],["mat-icon-button","","color","accent","class","action-button","matTooltip","Open resource in new tab",3,"click",4,"ngIf"],["mat-icon-button","","color","accent","matTooltip","Download Questionnaire",1,"action-button",3,"click"],["mat-icon-button","","color","accent","class","action-button","matTooltip","Edit Questionnaire",3,"click",4,"ngIf"],["mat-icon-button","","color","accent","class","action-button","matTooltip","Edit Modular Questionnaire",3,"click",4,"ngIf"],[3,"matTooltip"],["mat-icon-button","","color","accent",3,"disabled","click"],["mat-icon-button","","color","accent","matTooltip","Validate Questionnaire",1,"action-button",3,"disabled","click"],["mat-icon-button","","color","accent","matTooltip","Assemble Questionnaire",1,"action-button",3,"click"],["mat-icon-button","","color","accent","matTooltip","Preview Questionnaire",1,"action-button",3,"click"],["mat-icon-button","","color","accent","matTooltip","Open resource in new tab",1,"action-button",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Questionnaire",1,"action-button",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Modular Questionnaire",1,"action-button",3,"click"],["mat-header-row",""],["mat-row",""],[1,"not-found"],["diameter","35",1,"loading-spinner"],["mat-flat-button","","color","accent","matTooltip","Dowload all Questionnaires",3,"click"]],template:function(n,r){1&n&&(_(0,"div",0)(1,"table",1),di(2,2),P(3,qne,2,0,"th",3),P(4,Xne,2,1,"td",4),ui(),di(5,5),P(6,Qne,2,0,"th",3),P(7,Kne,4,6,"td",4),ui(),di(8,6),P(9,Zne,2,0,"th",3),P(10,Jne,2,1,"td",4),ui(),di(11,7),P(12,ere,2,0,"th",3),P(13,ore,3,2,"td",4),ui(),di(14,8),P(15,are,2,0,"th",9),P(16,fre,14,8,"td",4),ui(),P(17,mre,1,0,"tr",10),P(18,pre,1,0,"tr",11),v(),P(19,gre,3,0,"p",12),P(20,_re,1,0,"mat-spinner",13),v(),_(21,"div",14)(22,"div",15),P(23,bre,2,0,"button",16),v()()),2&n&&(w(1),S("dataSource",r.dataSource),w(16),S("matHeaderRowDef",r.displayedColumns),w(1),S("matRowDefColumns",r.displayedColumns),w(1),S("ngIf",r.notFound&&!r.questionnaires.length),w(1),S("ngIf",r.loading),w(3),S("ngIf",!r.loading&&r.questionnaires.length>0))},dependencies:[os,Yi,Dr,Zo,oo,Yd,eu,Zc,tu,Jc,Kc,iu,el,tl,nu,ru,cu,cl,mP,gM],styles:[".list-item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.list-text[_ngcontent-%COMP%]{flex-grow:1}.list-subtext[_ngcontent-%COMP%]{font-size:.8rem;color:#666;margin-left:1rem}.action-button[_ngcontent-%COMP%]{margin-left:8px}.loading-spinner[_ngcontent-%COMP%]{margin-left:2rem;margin-top:2rem}.list-item[_ngcontent-%COMP%]:hover{background-color:#f5f5f5}.status-pill[_ngcontent-%COMP%]{display:inline-block;padding:3px 8px;border-radius:15px;font-size:10px;color:#fff;text-align:center;margin-left:1rem}.status-pill.draft[_ngcontent-%COMP%]{background-color:#007bff}.status-pill.unknown[_ngcontent-%COMP%]{background-color:#ffc107}.status-pill.active[_ngcontent-%COMP%]{background-color:#28a745}.status-pill.retired[_ngcontent-%COMP%]{background-color:#dc3545}#table-container[_ngcontent-%COMP%]{padding-bottom:2rem}.not-found[_ngcontent-%COMP%]{margin-top:2rem}#outer-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end}.download-button-container[_ngcontent-%COMP%]{margin-top:10px}"]})}return t})(),vre=(()=>{class t{constructor(e){this.dialogRef=e,this.listConfig={select:!0}}selectAndDownload(e){this.dialogRef.close(e)}static#e=this.\u0275fac=function(n){return new(n||t)(x(Js))};static#t=this.\u0275cmp=Le({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(n,r){1&n&&(_(0,"mat-dialog-content")(1,"h2"),k(2,"Available Questionnaires"),v(),_(3,"app-list-questionnaires",0),z("questionnaireSelected",function(a){return r.selectAndDownload(a)}),v()(),_(4,"mat-dialog-actions",1)(5,"button",2),k(6,"Close"),v()()),2&n&&(w(3),S("config",r.listConfig))},dependencies:[Dr,yf,O0,P0,_P]})}return t})();const xre=["settingsForm"];function yre(t,i){1&t&&(_(0,"mat-error"),k(1,"Base URL is required"),v())}function wre(t,i){1&t&&(_(0,"mat-error"),k(1,"User Tag is required and must be at least 3 characters"),v())}let dw=(()=>{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"))}static#e=this.\u0275fac=function(n){return new(n||t)(x(wf),x(Js))};static#t=this.\u0275cmp=Le({type:t,selectors:[["app-fhir-server-settings-modal"]],viewQuery:function(n,r){if(1&n&&rt(xre,5),2&n){let o;Se(o=De())&&(r.settingsForm=o.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(n,r){if(1&n&&(_(0,"div",0)(1,"h2"),k(2,"FHIR Server Connection"),v(),_(3,"p"),k(4,"Manager mode allows you to store questionnares in a FHIR Server. Enter the FHIR server URL and your "),_(5,"b"),k(6,"User Tag"),v(),k(7,", this value will be used to identify your questionnaires."),v(),_(8,"p",1),k(9,"Warning: using the default public FHIR server will not ensure the persistence of your information, always save your questionnaires to your computer as a backup."),v(),_(10,"form",2,3),z("ngSubmit",function(){return r.updateSettings()}),_(12,"mat-form-field")(13,"mat-label"),k(14,"Base URL of the FHIR Server"),v(),_(15,"input",4,5),z("ngModelChange",function(a){return r.baseUrl=a}),v(),P(17,yre,2,0,"mat-error",6),v(),_(18,"mat-form-field")(19,"mat-label"),k(20,"User Tag"),v(),_(21,"input",7,8),z("ngModelChange",function(a){return r.userTag=a}),v(),P(23,wre,2,0,"mat-error",6),v(),_(24,"div",9)(25,"button",10),k(26,"Open FHIR Repository"),v(),_(27,"button",11),k(28,"Close"),v()()()()),2&n){const o=wt(11),a=wt(16),s=wt(22);w(15),S("ngModel",r.baseUrl),w(2),S("ngIf",a.invalid&&a.touched),w(4),S("ngModel",r.userTag),w(2),S("ngIf",s.invalid&&s.touched),w(2),S("disabled",!o.valid)}},dependencies:[Yi,Dr,Ea,Do,zR,sl,ff,Sa,So,sf,b0,z1,ta,rl,yf],styles:[".form-container[_ngcontent-%COMP%]{margin:auto;padding:20px}mat-form-field[_ngcontent-%COMP%]{width:100%}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px}.button-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:1rem;margin-right:2rem;align-items:center}.warning[_ngcontent-%COMP%]{color:#ff9500;font-weight:lighter;font-style:italic}"]})}return t})(),bP=(()=>{class t{constructor(e,n){this.data=e,this.dialogRef=n}static#e=this.\u0275fac=function(n){return new(n||t)(x(R0),x(Js))};static#t=this.\u0275cmp=Le({type:t,selectors:[["app-confirmation-dialog"]],decls:10,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions","",1,"button-container"],["mat-button","",3,"mat-dialog-close"]],template:function(n,r){1&n&&(_(0,"h1",0),k(1),v(),_(2,"div",1)(3,"p"),k(4),v()(),_(5,"div",2)(6,"button",3),k(7,"Yes"),v(),_(8,"button",3),k(9,"No"),v()()),2&n&&(w(1),Ge(r.data.title),w(3),Ge(r.data.message),w(2),S("mat-dialog-close",!0),w(2),S("mat-dialog-close",!1))},dependencies:[Dr,yf,YO,O0,P0],encapsulation:2})}return t})();const Cre=new oe("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),Sre=Gs(class{constructor(t){this._elementRef=t}},"primary");let vP=(()=>{class t extends Sre{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 Ce,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=xP(On(e)),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(e){this._bufferValue=xP(On(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)(x(Ie),x(ze),x(Ut),x(Ii,8),x(Cre,8))},t.\u0275cmp=Le({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&&(st("aria-valuenow",n._isIndeterminate()?null:n.value)("mode",n.mode),Ye("_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&&(_(0,"div",0),ge(1,"div",1)(2,"div",2),v(),_(3,"div",3),ge(4,"span",4),v(),_(5,"div",5),ge(6,"span",4),v()),2&e&&(w(1),en("flex-basis",n._getBufferBarFlexBasis()),w(2),en("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 xP(t,i=0,e=100){return Math.max(i,Math.min(e,t))}let Dre=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[yt]}),t})();const Ere=["questionnairesList"];function Tre(t,i){if(1&t&&(_(0,"div",20),ge(1,"mat-progress-bar",21),_(2,"div",22),k(3),v()()),2&t){const e=V();w(1),S("value",e.validatingProgress),w(2),it("",e.validatingProgress,"%")}}function Mre(t,i){1&t&&(_(0,"span"),k(1,"Run validation"),v())}function Are(t,i){1&t&&ge(0,"mat-spinner",23)}function Ire(t,i){if(1&t&&(_(0,"span",29),k(1),v()),2&t){const e=V(2);w(1),it("Error: ",e.loadResults.error,"")}}function Fre(t,i){if(1&t&&(_(0,"span",30),k(1),v()),2&t){const e=V(2);w(1),it("Inactive: ",e.loadResults.inactive,"")}}function Rre(t,i){if(1&t&&(_(0,"span",31),k(1),v()),2&t){const e=V(2);w(1),it("Active: ",e.loadResults.active,"")}}function Ore(t,i){if(1&t&&(_(0,"p",24)(1,"b"),k(2,"Questionnaire:"),v(),k(3),_(4,"i"),k(5),v(),k(6,") - "),_(7,"span",25),k(8),v(),P(9,Ire,2,1,"span",26),P(10,Fre,2,1,"span",27),P(11,Rre,2,1,"span",28),v()),2&t){const e=V();w(3),it(" ",e.questionnaire.title," ("),w(2),Ge(e.questionnaire.url),w(3),it("",e.dataSource.data.length," bindings"),w(1),S("ngIf",e.loadResults.total>0),w(1),S("ngIf",e.loadResults.total>0),w(1),S("ngIf",e.loadResults.total>0)}}function Pre(t,i){1&t&&(_(0,"th",32),k(1," # "),v())}function Lre(t,i){if(1&t&&(_(0,"td",33),k(1),v()),2&t){const e=i.$implicit;w(1),it(" ",e.order," ")}}function Nre(t,i){1&t&&(_(0,"th",32),k(1," FHIRPath "),v())}function Bre(t,i){if(1&t&&(_(0,"td",33),k(1),v()),2&t){const e=i.$implicit;w(1),it(" ",e.path," ")}}function Vre(t,i){1&t&&(_(0,"th",32),k(1," Path "),v())}function Hre(t,i){if(1&t&&(_(0,"td",33),k(1),v()),2&t){const e=i.$implicit;w(1),it(" ",e.readablePath," ")}}function Ure(t,i){1&t&&(_(0,"th",32),k(1,"Code "),v())}function zre(t,i){if(1&t&&(_(0,"td",33)(1,"a",34),k(2),v()()),2&t){const e=i.$implicit;w(1),gp("href","http://snomed.info/id/",e.code,"",tp),w(1),Ge(e.code)}}function $re(t,i){1&t&&(_(0,"th",32),k(1," Display "),v())}function jre(t,i){if(1&t&&(_(0,"p",38),k(1),v()),2&t){const e=V().$implicit;w(1),it("Concept FSN: ",e.serverDisplay,"")}}function Wre(t,i){1&t&&(_(0,"p",39),k(1,"Concept is inactive"),v())}function Gre(t,i){if(1&t){const e=Ne();_(0,"p",40),k(1),_(2,"button",41),z("click",function(){const o=_e(e).$implicit,a=V().$implicit;return be(V().replaceInactiveConcept(a,o.replacement))}),_(3,"mat-icon"),k(4,"arrow_forward"),v()()()}if(2&t){const e=i.$implicit,n=V(2);w(1),Pv(" Replacement: ",e.equivalence," to ",e.replacement.code," |",e.replacement.display,"| "),w(1),S("disabled",n.validating)}}function qre(t,i){if(1&t&&(_(0,"td",33),k(1),P(2,jre,2,1,"p",35),P(3,Wre,2,0,"p",36),P(4,Gre,5,4,"p",37),v()),2&t){const e=i.$implicit;w(1),it(" ",e.display," "),w(1),S("ngIf",e.serverDisplay),w(1),S("ngIf","Inactive"==e.status),w(1),S("ngForOf",e.replacements)}}function Xre(t,i){1&t&&(_(0,"th",32),k(1," System "),v())}function Qre(t,i){if(1&t&&(_(0,"td",33),k(1),v()),2&t){const e=i.$implicit;w(1),it(" ",e.system," ")}}function Yre(t,i){1&t&&(_(0,"th",32),k(1," Status "),v())}function Kre(t,i){1&t&&(_(0,"span"),ge(1,"mat-progress-bar",42),v())}function Zre(t,i){if(1&t&&(_(0,"span")(1,"span",43),k(2),v()()),2&t){const e=V().$implicit;w(1),S("ngClass",e.status),w(1),Ge(e.status)}}function Jre(t,i){if(1&t&&(_(0,"td",33),P(1,Kre,2,0,"span",3),P(2,Zre,3,2,"span",3),v()),2&t){const e=i.$implicit;w(1),S("ngIf","Validating"==e.status),w(1),S("ngIf","Validating"!=e.status)}}function eoe(t,i){1&t&&ge(0,"tr",44)}function toe(t,i){1&t&&ge(0,"tr",45)}function ioe(t,i){1&t&&ge(0,"mat-spinner",46)}let noe=(()=>{class t{constructor(e){this.terminologyService=e,this.questionnaireUpdated=new Ce,this.validatingQuestionnaire=new Ce,this.loading=!1,this.validating=!1,this.displayedColumns=["order","readablePath","code","display","system","status"],this.dataSource=new af,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=fi(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(wo()).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 fi(function*(){let o=[];const a=r.terminologyService.translate(e,n);let s=yield Sr(a.pipe(Ze(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 fi(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}static#e=this.\u0275fac=function(n){return new(n||t)(x(Yn))};static#t=this.\u0275cmp=Le({type:t,selectors:[["app-validate-questionnaire"]],viewQuery:function(n,r){if(1&n&&(rt(cl,5),rt(gf,5),rt(Ere,5)),2&n){let o;Se(o=De())&&(r.sort=o.first),Se(o=De())&&(r.tabGroup=o.first),Se(o=De())&&(r.questionnairesList=o.first)}},inputs:{questionnaire:"questionnaire"},outputs:{questionnaireUpdated:"questionnaireUpdated",validatingQuestionnaire:"validatingQuestionnaire"},features:[Ai],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","mt-4"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","order"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","path"],["matColumnDef","readablePath"],["matColumnDef","code"],["matColumnDef","display"],["matColumnDef","system"],["matColumnDef","status"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["diameter","35","class","loading-spinner",4,"ngIf"],[1,"progress-container"],["mode","determinate",3,"value"],[1,"progress-label"],["diameter","20"],["id","tab-header",1,"header"],[1,"bindingsCount"],["class","mini-pill Error",4,"ngIf"],["class","mini-pill Inactive",4,"ngIf"],["class","mini-pill Active",4,"ngIf"],[1,"mini-pill","Error"],[1,"mini-pill","Inactive"],[1,"mini-pill","Active"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["target","_blank",1,"code-link",3,"href"],["class","server-name",4,"ngIf"],["class","concept-is-inactive",4,"ngIf"],["class","replacement",4,"ngFor","ngForOf"],[1,"server-name"],[1,"concept-is-inactive"],[1,"replacement"],["mat-icon-button","","color","primary","matTooltip","Replace using this concept",3,"disabled","click"],["mode","indeterminate"],[1,"pill",3,"ngClass"],["mat-header-row",""],["mat-row",""],["diameter","35",1,"loading-spinner"]],template:function(n,r){1&n&&(_(0,"div",0),P(1,Tre,4,2,"div",1),_(2,"button",2),z("click",function(){return r.validate()}),P(3,Mre,2,0,"span",3),P(4,Are,1,0,"mat-spinner",4),v()(),P(5,Ore,12,6,"p",5),_(6,"div",6)(7,"table",7),di(8,8),P(9,Pre,2,0,"th",9),P(10,Lre,2,1,"td",10),ui(),di(11,11),P(12,Nre,2,0,"th",9),P(13,Bre,2,1,"td",10),ui(),di(14,12),P(15,Vre,2,0,"th",9),P(16,Hre,2,1,"td",10),ui(),di(17,13),P(18,Ure,2,0,"th",9),P(19,zre,3,2,"td",10),ui(),di(20,14),P(21,$re,2,0,"th",9),P(22,qre,5,4,"td",10),ui(),di(23,15),P(24,Xre,2,0,"th",9),P(25,Qre,2,1,"td",10),ui(),di(26,16),P(27,Yre,2,0,"th",9),P(28,Jre,3,2,"td",10),ui(),P(29,eoe,1,0,"tr",17),P(30,toe,1,0,"tr",18),v(),P(31,ioe,1,0,"mat-spinner",19),v()),2&n&&(w(1),S("ngIf",r.validating),w(1),S("disabled",r.validating||!r.questionnaire),w(1),S("ngIf",!r.validating),w(1),S("ngIf",r.validating),w(1),S("ngIf",r.questionnaire),w(2),S("dataSource",r.dataSource),w(22),S("matHeaderRowDef",r.displayedColumns),w(1),S("matRowDefColumns",r.displayedColumns),w(1),S("ngIf",r.loading))},dependencies:[os,kr,Yi,Dr,Zo,oo,vP,Yd,eu,Zc,tu,Jc,Kc,iu,el,tl,nu,ru,cu,cl,mP],styles:[".header[_ngcontent-%COMP%]{margin-left:2rem;margin-top:1rem}.table-container[_ngcontent-%COMP%]{margin-left:2rem;margin-right:2rem;padding-bottom:2rem}.button-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:1rem;margin-right:2rem;align-items:center}.bottom-spacer[_ngcontent-%COMP%]{margin-bottom:1rem}.pill[_ngcontent-%COMP%]{padding:5px 10px;border-radius:20px;font-weight:700;text-align:center;display:inline-block;font-size:.8rem}.pill.Active[_ngcontent-%COMP%]{background-color:#4caf50;color:#fff}.pill.Inactive[_ngcontent-%COMP%]{background-color:#ffc107;color:#fff}.pill.Error[_ngcontent-%COMP%]{background-color:#f44336;color:#fff}.mini-pill[_ngcontent-%COMP%]{padding:5px 10px;border-radius:20px;text-align:center;font-weight:700;font-size:.9rem;margin-right:2rem;float:right}.mini-pill.Active[_ngcontent-%COMP%]{background-color:#4caf50;color:#fff}.mini-pill.Inactive[_ngcontent-%COMP%]{background-color:#ffc107;color:#fff}.mini-pill.Error[_ngcontent-%COMP%]{background-color:#f44336;color:#fff}.progress-container[_ngcontent-%COMP%]{margin-top:1rem;position:relative;width:30%}.progress-label[_ngcontent-%COMP%]{position:absolute;width:100%;text-align:center;top:60%;transform:translateY(-50%);font-size:.9rem;font-weight:700}.bindingsCount[_ngcontent-%COMP%]{font-size:1rem;font-weight:lighter}.loading-spinner[_ngcontent-%COMP%]{margin-left:2rem;margin-top:2rem}.code-link[_ngcontent-%COMP%]{font-size:.8rem}.server-name[_ngcontent-%COMP%]{font-weight:lighter;font-style:italic;color:maroon}.replacement[_ngcontent-%COMP%]{font-weight:lighter;font-style:italic;color:#00800b;display:flex;align-items:center;font-size:.9rem;margin-left:2rem}.concept-is-inactive[_ngcontent-%COMP%]{color:maroon;font-size:.9rem;margin-bottom:0rem}#myFormContainer[_ngcontent-%COMP%], #tab-header[_ngcontent-%COMP%]{margin-top:1rem}.tab-container[_ngcontent-%COMP%]{padding:2rem}.outgoing-link[_ngcontent-%COMP%]{font-size:.8rem;float:right;margin-right:2rem}"]})}return t})();const roe=["questionnairesList"],ooe=["fileInput"];function aoe(t,i){1&t&&(_(0,"span"),k(1," / Validator"),v())}function soe(t,i){1&t&&(_(0,"span"),k(1," / Questionnaires repository"),v())}function coe(t,i){if(1&t){const e=Ne();_(0,"span",15)(1,"a",16),z("click",function(){return _e(e),be(V(2).mode="Manager")}),_(2,"mat-icon"),k(3,"play_arrow"),v(),_(4,"span"),k(5,"Reconnect to last FHIR Server"),v()(),_(6,"span",17),k(7),_(8,"i"),k(9),v(),k(10,'" )'),v()()}if(2&t){const e=V(2);w(7),it(" ( ",e.selectedFhirServer,' as "'),w(2),Ge(e.selectedUserTag)}}function loe(t,i){if(1&t){const e=Ne();_(0,"div",6)(1,"p"),k(2,"What do you want to do today?"),v(),_(3,"mat-radio-group",7),z("ngModelChange",function(r){return _e(e),be(V().step1Response=r)}),_(4,"mat-radio-button",8),k(5,"Edit a questionnaire in the NLM Form Builder"),v(),_(6,"mat-radio-button",9),k(7,"Load an example questionnaire"),v(),_(8,"mat-radio-button",10),k(9,"Upload and validate a questionnaire"),v(),_(10,"mat-radio-button",11),k(11,"Work with your questionnaires from a FHIR server"),v(),P(12,coe,11,2,"span",12),v(),_(13,"div",13)(14,"button",14),z("click",function(){return _e(e),be(V().advanceFromStep1())}),k(15,"Next"),v()()()}if(2&t){const e=V();w(3),S("ngModel",e.step1Response),w(9),S("ngIf",e.selectedFhirServer&&e.selectedUserTag),w(2),S("disabled",!e.step1Response)}}function doe(t,i){if(1&t&&(_(0,"span"),k(1," Connected to "),_(2,"a",30),k(3),v(),k(4,' as "'),_(5,"i"),k(6),v(),k(7,'" '),v()),2&t){const e=V(2);w(3),Ge(e.selectedFhirServer),w(3),Ge(e.selectedUserTag)}}function uoe(t,i){if(1&t){const e=Ne();_(0,"button",14),z("click",function(){return _e(e),be(V(2).openModularQuestionnaireModal())}),k(1," Create Modular Questionnaire "),v()}2&t&&S("disabled",V(2).validating)}function hoe(t,i){if(1&t){const e=Ne();_(0,"mat-tab",31)(1,"div",25)(2,"app-list-questionnaires",32,33),z("validateQuestionnaire",function(r){return _e(e),be(V(2).switchToValidateTab(r))})("previewQuestionnaire",function(r){return _e(e),be(V(2).switchToPreviewTab(r))}),v()()()}if(2&t){const e=V(2);w(2),S("config",e.listConfig)}}function foe(t,i){if(1&t){const e=Ne();_(0,"div")(1,"div",18),P(2,doe,8,2,"span",4),_(3,"input",19,20),z("change",function(r){return _e(e),be(V().onFileSelected(r))}),v(),_(5,"button",14),z("click",function(){return _e(e),be(wt(4).click())}),k(6," Upload "),v(),_(7,"button",14),z("click",function(){return _e(e),be(V().saveQuestionnaireToDisk())}),k(8,"Download"),v(),P(9,uoe,2,1,"button",21),v(),_(10,"mat-tab-group",22),z("selectedIndexChange",function(r){return _e(e),be(V().onTabChange(r))}),P(11,hoe,4,1,"mat-tab",23),_(12,"mat-tab",24)(13,"div",25),ge(14,"div",26),v()(),_(15,"mat-tab",27)(16,"app-validate-questionnaire",28,29),z("questionnaireUpdated",function(r){return _e(e),be(V().loadQuestionnaire(r))})("validatingQuestionnaire",function(r){return _e(e),be(V().validating=r)}),v()()()()}if(2&t){const e=V();w(2),S("ngIf","Manager"==e.mode),w(3),S("disabled",e.validating),w(2),S("disabled",e.validating||!e.questionnaire),w(2),S("ngIf","Manager"==e.mode),w(2),S("ngIf","Manager"===e.mode),w(3),Ye("hidden",!e.questionnaire),w(2),S("questionnaire",e.questionnaire)}}let moe=(()=>{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(dw,{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(){Sr(this.http.get("assets/questionnaires/Carcinoma-of-the-Exocrine-Pancreas-Histopathology-Reporting-Form.R4 (11).json")).then(e=>{this.loadQuestionnaire(e),"Manager"===this.mode&&(this.tabGroup.selectedIndex=1)})}clearQuestionnaire(){this.questionnaire=null,this.orderCounter=0,this.previewForm()}loadQuestionnaire(e){this.loading=!0,this.clearQuestionnaire(),setTimeout(()=>{this.loading=!1,this.questionnaire=e,this.previewForm()},700)}saveQuestionnaireToDisk(){var e=new Blob([JSON.stringify(this.questionnaire,null,2)],{type:"text/plain;charset=utf-8"});ps(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(Zi,{duration:5e3,data:"The file is not a FHIR Questionnaire Resource",panelClass:["red-snackbar"]})}catch(a){console.error(a),this._snackBar.openFromComponent(Zi,{duration:5e3,data:"Invalid JSON file",panelClass:["red-snackbar"]})}},r.readAsText(n)}}postCurrentQuestionnaire(){this.postQuestionnaire(this.questionnaire)}postQuestionnaire(e){if(-1!==this.questionnairesList.questionnaires.findIndex(r=>r.title===e.title&&r.id!==e.id))this.dialog.open(bP,{width:"400px",data:{title:"Confirm Action",message:"A questionnaire with the same title and different ID already exists. Do you want to proceed?"}}).afterClosed().subscribe(o=>{o?this.saveQuestionnaire(e):(this._snackBar.openFromComponent(Zi,{duration:5e3,data:"Questionnaire save action cancelled",panelClass:["red-snackbar"]}),console.log("User cancelled the action"))});else{-1!==this.questionnairesList.questionnaires.findIndex(a=>a.title===e.title&&a.id===e.id&&a.meta.versionId>e.meta.versionId)?this.dialog.open(bP,{width:"400px",data:{title:"Confirm Action",message:"A newer version of this questionnaire already exists. Do you want to proceed?"}}).afterClosed().subscribe(s=>{s?this.saveQuestionnaire(e):(this._snackBar.openFromComponent(Zi,{duration:5e3,data:"Questionnaire save action cancelled",panelClass:["red-snackbar"]}),console.log("User cancelled the action"))}):this.saveQuestionnaire(e)}}saveQuestionnaire(e){this.savingQuestionnaire=!0,this._snackBar.openFromComponent(Zi,{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(wo()).subscribe(n=>{setTimeout(()=>{this.tabGroup.selectedIndex=0,setTimeout(()=>{this.savingQuestionnaire=!1,this.questionnairesList.addQuestionnaire(n)},300)},300),this._snackBar.openFromComponent(Zi,{duration:5e3,data:"Questionnaire saved successfully",panelClass:["green-snackbar"]})},n=>{this.savingQuestionnaire=!1,this._snackBar.openFromComponent(Zi,{duration:5e3,data:"Error saving questionnaire",panelClass:["red-snackbar"]})})}listQuestionnaires(){this.fhirService.getQuestionnairesByTag(this.selectedUserTag).pipe(wo()).subscribe(e=>{},e=>{console.error(e)})}openLoadQuestionnairesDialog(){this.dialog.open(vre,{width:"70%"}).afterClosed().subscribe(n=>{this.loadQuestionnaire(n)})}setFhirServer(){this.fhirService.setBaseUrl(this.selectedFhirServer),this.fhirService.setUserTag(this.selectedUserTag)}setupFhirServer(){this.dialog.open(dw,{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(dw,{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(pP,{width:"75%"}).afterClosed().subscribe(n=>{n&&this.questionnaireService.generateRootQuestionnaire(n.title,n.questionnaires).then(r=>{this.postQuestionnaire(r)}).catch(r=>{console.error("Error:",r)})})}static#e=this.\u0275fac=function(n){return new(n||t)(x(zs),x(Yn),x(wf),x(gP),x(du),x(Qd))};static#t=this.\u0275cmp=Le({type:t,selectors:[["app-questionnaires-main"]],viewQuery:function(n,r){if(1&n&&(rt(cl,5),rt(gf,5),rt(roe,5),rt(ooe,5)),2&n){let o;Se(o=De())&&(r.sort=o.first),Se(o=De())&&(r.tabGroup=o.first),Se(o=De())&&(r.questionnairesList=o.first),Se(o=De())&&(r.uploadInput=o.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"],["id","reconnect",4,"ngIf"],[1,"step-button-container"],["mat-flat-button","","color","accent",3,"disabled","click"],["id","reconnect"],["href","javascript:void(0)","id","reconnect-link",3,"click"],[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(n,r){1&n&&(_(0,"div",0)(1,"h2",1),k(2," SNOMED CT Terminology Bindings Validator - FHIR Questionnaire Manager "),v(),_(3,"div",2)(4,"span")(5,"a",3),z("click",function(){return r.mode="step1"}),k(6,"Home"),v(),P(7,aoe,2,0,"span",4),P(8,soe,2,0,"span",4),v()()(),P(9,loe,16,3,"div",5),P(10,foe,18,8,"div",4)),2&n&&(w(7),S("ngIf","Validator"==r.mode),w(1),S("ngIf","Manager"==r.mode),w(1),S("ngIf","step1"==r.mode),w(1),S("ngIf","Manager"==r.mode||"Validator"==r.mode))},dependencies:[Yi,Dr,oo,So,S0,gf,ta,sw,cw,_P,noe],styles:[".header[_ngcontent-%COMP%]{margin-left:2rem;margin-top:1rem}.table-container[_ngcontent-%COMP%]{margin-left:2rem;margin-right:2rem}.button-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:1rem;margin-right:2rem;align-items:center}.bottom-spacer[_ngcontent-%COMP%]{margin-bottom:1rem}.pill[_ngcontent-%COMP%]{padding:5px 10px;border-radius:20px;font-weight:700;text-align:center;display:inline-block;font-size:.8rem}.pill.Active[_ngcontent-%COMP%]{background-color:#4caf50;color:#fff}.pill.Inactive[_ngcontent-%COMP%]{background-color:#ffc107;color:#fff}.pill.Error[_ngcontent-%COMP%]{background-color:#f44336;color:#fff}.mini-pill[_ngcontent-%COMP%]{padding:5px 10px;border-radius:20px;text-align:center;font-weight:700;font-size:.9rem;margin-right:2rem;float:right}.mini-pill.Active[_ngcontent-%COMP%]{background-color:#4caf50;color:#fff}.mini-pill.Inactive[_ngcontent-%COMP%]{background-color:#ffc107;color:#fff}.mini-pill.Error[_ngcontent-%COMP%]{background-color:#f44336;color:#fff}.progress-container[_ngcontent-%COMP%]{margin-top:1rem;position:relative;width:30%}.progress-label[_ngcontent-%COMP%]{position:absolute;width:100%;text-align:center;top:60%;transform:translateY(-50%);font-size:.9rem;font-weight:700}.bindingsCount[_ngcontent-%COMP%]{font-size:1rem;font-weight:lighter}.loading-spinner[_ngcontent-%COMP%]{margin-left:2rem;margin-top:2rem}.code-link[_ngcontent-%COMP%]{font-size:.8rem}.server-name[_ngcontent-%COMP%]{font-weight:lighter;font-style:italic;color:maroon}.replacement[_ngcontent-%COMP%]{font-weight:lighter;font-style:italic;color:#00800b;display:flex;align-items:center;font-size:.9rem;margin-left:2rem}.concept-is-inactive[_ngcontent-%COMP%]{color:maroon;font-size:.9rem;margin-bottom:0rem}#myFormContainer[_ngcontent-%COMP%], #tab-header[_ngcontent-%COMP%]{margin-top:1rem}.tab-container[_ngcontent-%COMP%]{padding-top:1rem;padding-left:2rem;padding-right:2rem}.outgoing-link[_ngcontent-%COMP%]{font-size:.8rem;float:right;margin-right:2rem}#step1[_ngcontent-%COMP%]{margin-top:2rem;margin-left:2rem;font-size:large}#step1[_ngcontent-%COMP%] mat-radio-group[_ngcontent-%COMP%]{margin-left:2rem;display:flex;flex-direction:column;align-items:flex-start}.step-button-container[_ngcontent-%COMP%]{margin-left:30rem;margin-top:2rem}.breadcrumb[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:2rem}.header-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.hidden[_ngcontent-%COMP%]{visibility:hidden}.muted[_ngcontent-%COMP%]{color:#8f9397}#reconnect[_ngcontent-%COMP%]{margin-left:5rem}#reconnect-link[_ngcontent-%COMP%]{display:flex;vertical-align:middle;flex-direction:row}"]})}return t})();function poe(t,i){if(1&t&&(_(0,"p",19),k(1),v()),2&t){const e=V();w(1),Ge(e.studentSubsetDefinition)}}function goe(t,i){1&t&&ge(0,"mat-spinner",20)}function _oe(t,i){if(1&t&&(_(0,"div",21)(1,"h4"),k(2,"Validation Results"),v(),_(3,"p",22),k(4),v(),_(5,"p",22),k(6),v(),_(7,"p",22),k(8),v()()),2&t){const e=V();w(4),Ge(e.definitionVsMembersValudationResult),w(2),Ge(e.definitionValidationResult),w(2),Ge(e.membersValidationResult)}}function boe(t,i){1&t&&(_(0,"th",33),k(1,"ID"),v())}function voe(t,i){if(1&t&&(_(0,"td",34),k(1),v()),2&t){const e=i.$implicit;w(1),Ge(e.referencedComponentId)}}function xoe(t,i){1&t&&(_(0,"th",33),k(1,"Name"),v())}function yoe(t,i){if(1&t&&(_(0,"td",34),k(1),v()),2&t){const e=i.$implicit;w(1),Ge(e.name)}}function woe(t,i){1&t&&(_(0,"th",33),k(1,"Result"),v())}function Coe(t,i){if(1&t&&(_(0,"td",34),k(1),v()),2&t){const e=i.$implicit;w(1),Ge(e.result.value)}}function koe(t,i){1&t&&(_(0,"th",33),k(1,"Definition"),v())}function Soe(t,i){if(1&t&&(_(0,"td",34),k(1),v()),2&t){const e=i.$implicit;w(1),Ge(e.scope.value)}}function Doe(t,i){1&t&&ge(0,"tr",35)}function Eoe(t,i){1&t&&ge(0,"tr",36)}function Toe(t,i){if(1&t&&(_(0,"div",23)(1,"table",24),di(2,25),P(3,boe,2,0,"th",26),P(4,voe,2,1,"td",27),ui(),di(5,28),P(6,xoe,2,0,"th",26),P(7,yoe,2,1,"td",27),ui(),di(8,29),P(9,woe,2,0,"th",26),P(10,Coe,2,1,"td",27),ui(),di(11,30),P(12,koe,2,0,"th",26),P(13,Soe,2,1,"td",27),ui(),P(14,Doe,1,0,"tr",31),P(15,Eoe,1,0,"tr",32),v()()),2&t){const e=V();w(1),S("dataSource",e.studentSubsetMembersDataSource),w(13),S("matHeaderRowDef",e.studentSubsetMembersDisplayedColumns),w(1),S("matRowDefColumns",e.studentSubsetMembersDisplayedColumns)}}let Moe=(()=>{class t{constructor(e,n,r){this.http=e,this.terminologyService=n,this._snackBar=r,this.studentSubsetMembersDisplayedColumns=["referencedComponentId","name","result","scope"],this.studentSubsetMembersDataSource=new af,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 af(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 fi(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 fi(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 af,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(Zi,{duration:5e3,data:"Error reading file: "+a.message,panelClass:["red-snackbar"]}),this.loading=!1}},r.onerror=o=>{this._snackBar.openFromComponent(Zi,{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(Zi,{duration:5e3,data:"Error reading file: "+a.message,panelClass:["red-snackbar"]}),this.loading=!1}},r.onerror=o=>{this._snackBar.openFromComponent(Zi,{duration:5e3,data:"Error reading file: "+o,panelClass:["red-snackbar"]}),this.loading=!1},r.readAsText(n)}else this.loading=!1}static#e=this.\u0275fac=function(n){return new(n||t)(x(zs),x(Yn),x(Qd))};static#t=this.\u0275cmp=Le({type:t,selectors:[["app-subset-validator"]],viewQuery:function(n,r){if(1&n&&rt(cl,5),2&n){let o;Se(o=De())&&(r.sort=o.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(n,r){if(1&n){const o=Ne();_(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3"),k(4,"Subset Members Validator"),v(),_(5,"p"),k(6),v(),P(7,poe,2,1,"p",3),_(8,"input",4,5),z("change",function(s){return r.onSubsetmembersFileSelected(s)}),v(),_(10,"input",4,6),z("change",function(s){return r.onDefinitionFileSelected(s)}),v(),_(12,"div",7)(13,"button",8),z("click",function(){return _e(o),be(wt(11).click())}),k(14,"Upload Definition File"),v(),_(15,"button",8),z("click",function(){return _e(o),be(wt(9).click())}),k(16,"Upload Members File"),v(),_(17,"button",9),z("click",function(){return r.validateSubsetMembers()}),k(18,"Validate"),v(),P(19,goe,1,0,"mat-spinner",10),v(),P(20,_oe,9,3,"div",11),v(),P(21,Toe,16,3,"div",12),v(),_(22,"div",13)(23,"h3"),k(24,"Assignment"),v(),_(25,"button",14),k(26),v(),_(27,"mat-menu",15,16)(29,"button",17),z("click",function(){return r.setAssignment("moduleD")}),k(30,"Module D Assignment"),v()(),_(31,"h3"),k(32,"Instructions"),v(),_(33,"div",18)(34,"ol")(35,"li"),k(36,"Select assignment"),v(),_(37,"li"),k(38,"Upload definition file"),v(),_(39,"li"),k(40,"Upload members file"),v(),_(41,"li"),k(42,"Click validate"),v()()()()()}if(2&n){const o=wt(28);w(6),it("Validating against ",r.terminologyService.getFhirUrlParam(),""),w(1),S("ngIf",r.studentSubsetDefinition),w(10),S("disabled",!r.studentSubsetDefinition||!r.studentSubsetMembersDataSource.data.length),w(2),S("ngIf",r.loading||r.validatingMembers||r.validatingDefinition),w(1),S("ngIf",r.definitionValidationResult||r.membersValidationResult),w(1),S("ngIf",!r.loading&&r.studentSubsetMembersDataSource.data.length),w(4),S("matMenuTriggerFor",o),w(1),it("Selected assignment: ",r.selectedAssignment,"")}},dependencies:[Yi,Dr,Qc,ka,Yc,Yd,eu,Zc,tu,Jc,Kc,iu,el,tl,nu,ru],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}"]})}return t})(),Ioe=(()=>{class t{constructor(e){this.terminologyService=e,this.goals=[{name:"Bronze",score:100},{name:"Silver",score:200},{name:"Gold",score:300},{name:"Platinum",score:400},{name:"Diamond",score:500}],this.difficultyLevels=[{name:"Easy",rules:{maxHitPoints:5,hitpointsAwardedForGuessingfullTerm:1,freeHints:2,pointsPerGuessedLetter:1,goals:this.goals}},{name:"Medium",rules:{maxHitPoints:4,hitpointsAwardedForGuessingfullTerm:1,freeHints:1,pointsPerGuessedLetter:2,goals:this.goals}},{name:"Hard",rules:{maxHitPoints:3,hitpointsAwardedForGuessingfullTerm:1,freeHints:0,pointsPerGuessedLetter:3,goals:this.goals}}],this.rules=this.difficultyLevels[0].rules,this.fsn="",this.scg="",this.focusConcepts=[],this.attributePairs=[],this.usedHints=new Set,this.randomLimit=4e3,this.guessResult=new Ce,this.termResult=new Ce,this.game=new Ki(this.initialize())}loadMenu(){this.game.next({...this.game.value,state:"menu"})}getDifficultyLevels(){return this.difficultyLevels}newRound(e){var n=this;return fi(function*(){n.game.next({...n.game.value,state:"choosingTerm",score:e?0:n.game.value.score,hitPoints:e?n.rules.maxHitPoints:n.game.value.hitPoints,round:e?1:n.game.value.round+1});const r=Math.floor(Math.random()*n.randomLimit)+1,o=yield Sr(n.terminologyService.expandValueSet("^ 816080008 |International Patient Summary| {{ C definitionStatus = defined }}","",r,1));n.randomLimit=o.expansion.total-1;const a=yield Sr(n.terminologyService.lookupConcept(o.expansion.contains[0].code));let s=n.extractFSN(a);n.fsn=s||"";let c=n.extractScg(a);n.scg=c||"";let l=n.extractFocusConcepts(c||"");n.focusConcepts=l||[];let d=n.extractAttributePairs(c||"");n.attributePairs=d||[],s?n.initializeRound(s,e):n.initializeRound("No term found"),n.game.next({...n.game.value,state:"playing"}),n.usedHints.clear()})()}extractFSN(e){let n=this.extractTerm(e,"900000000000003001",this.terminologyService.getLang());return n||(n=this.extractTerm(e,"900000000000013009",this.terminologyService.getLang())),n||(n=this.extractTerm(e,"900000000000003001","en")),n}extractTerm(e,n,r){let o="";return e.parameter.forEach(a=>{if("designation"===a.name){let s=a.part.some(l=>"use"===l.name&&l.valueCoding.code===n),c=a.part.some(l=>"language"===l.name&&l.valueCode===r);s&&c&&(o=a.part.find(l=>"value"===l.name)?.valueString)}}),o}extractScg(e){let n;return e.parameter.forEach(r=>{"property"===r.name&&r.part.some(o=>"code"===o.name&&"normalForm"===o.valueString)&&(n=r.part.find(o=>"valueString"===o.name)?.valueString)}),n}extractFocusConcepts(e){const[n]=e.split(":").map(s=>s.trim()),o=n.match(/\d+\|.*?\|/g);return o?o.map(s=>this.transformSnomedConcept(s.trim())||{code:"",display:""}).filter(s=>""!==s.code):[]}extractAttributePairs(e){const n=e.split(":").slice(1).join(":").trim(),r=/(\d+\|.*?\|)\s*=\s*(\d+\|.*?\|)/g;let o;const a=[];for(;null!==(o=r.exec(n));){const s=this.transformSnomedConcept(o[1].trim()),c=this.transformSnomedConcept(o[2].trim());s&&c&&a.push({type:s,target:c})}return a}transformSnomedConcept(e){const r=e.match(/^(\d+)\|(.+?)\|$/);return r?{code:r[1],display:r[2]}:null}initialize(){return{term:"",displayTerm:[],hitPoints:this.rules.maxHitPoints,hintsAvailable:!0,hints:[],state:"menu",score:0,round:0,rules:this.rules,difficultyLevel:""}}startGame(e){this.rules=this.difficultyLevels.find(n=>n.name.toLowerCase()===e.toLocaleLowerCase())?.rules,this.game.next({term:"",displayTerm:[],hitPoints:this.rules.maxHitPoints,hintsAvailable:!0,hints:[],state:"playing",score:0,round:0,rules:this.rules,difficultyLevel:e}),this.newRound(!0)}initializeRound(e,n){const r=e.match(/\(([^)]+)\)$/),o=r?r[0]:"",a=o?e.lastIndexOf(o):e.length,s=e.split("").map((c,l)=>l>=a?c:/[a-zA-Z0-9\xe1-\xfa\xf1]/.test(c)?"_":c);this.game.next({...this.game.value,term:e,displayTerm:s,hitPoints:n?this.rules.maxHitPoints:this.game.value.hitPoints,hints:[],state:"playing",score:n?0:this.game.value.score});for(let c=0;c{sthis.rules.maxHitPoints&&(n.hitPoints=this.rules.maxHitPoints),setTimeout(()=>{this.newRound()},1500))):(this.guessResult.emit({letter:e,result:!1}),n.hitPoints-=1,n.hitPoints<=0&&(n.hitPoints=0,n.state="gameOver")),this.game.next(n)}guessTerm(e){return e.toLowerCase()===this.game.value.term.toLowerCase()?(this.termResult.emit(e),this.game.next({...this.game.value,displayTerm:this.game.value.term.split("")}),!0):(this.game.next({...this.game.value,hitPoints:this.game.value.hitPoints-1}),this.game.value.hitPoints<=0&&this.game.next({...this.game.value,hitPoints:0,state:"gameOver"}),!1)}revealHint(e){let n={...this.game.value},r="";if(0===this.focusConcepts.length&&0===this.attributePairs.length)return n.hints.push("No more hints available."),void this.game.next(n);let o=this.focusConcepts.length>0,a=this.attributePairs.length>0;if(o&&a&&(o=Math.random()<.5),o){let s=Math.floor(Math.random()*this.focusConcepts.length);r=`One of the parents of this concept is: ${this.focusConcepts[s].display}`,this.focusConcepts.splice(s,1)}else if(a){let s=Math.floor(Math.random()*this.attributePairs.length),c=this.attributePairs[s];r=`This concept has a ${c.type.display} of ${c.target.display}`,this.attributePairs.splice(s,1)}this.usedHints.add(r),n.hints.push(r),e||(n.hitPoints-=1),n.hintsAvailable=this.focusConcepts.length>0||this.attributePairs.length>0,this.game.next(n),n.hitPoints<=0&&(n.hitPoints=0,n.state="gameOver",this.game.next(n))}getGameState(){return this.game.asObservable()}static#e=this.\u0275fac=function(n){return new(n||t)(X(Yn))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Foe=(()=>{class t{constructor(){this.loadingProgress=new Ki(0)}preloadImages(e){const n=e.map((r,o)=>this.preloadImage(r,e.length,o));return Promise.all(n).then(()=>{this.loadingProgress.next(100)})}preloadImage(e,n,r){return new Promise((o,a)=>{const s=new Image;s.src=e,s.onload=()=>{this.loadingProgress.next((r+1)/n*100),o()},s.onerror=a})}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Roe(t,i){if(1&t){const e=Ne();_(0,"button",4),z("click",function(){const o=_e(e).$implicit;return be(V(2).guessLetter(o))}),k(1),v()}if(2&t){const e=i.$implicit,n=V(2);Ye("guessed-correct","correct"===n.guessedLetters[e])("guessed-wrong","wrong"===n.guessedLetters[e]),S("disabled",n.isLetterGuessed(e)),w(1),it(" ",e," ")}}function Ooe(t,i){if(1&t&&(_(0,"div",2),P(1,Roe,2,6,"button",3),v()),2&t){const e=i.$implicit;w(1),S("ngForOf",e)}}let Poe=(()=>{class t{constructor(){this.keyboardLayout=[["1","2","3","4","5","6","7","8","9","0"],["Q","W","E","R","T","Y","U","I","O","P"],["A","S","D","F","G","H","J","K","L"],["Z","X","C","V","B","N","M"]],this.guessedLetters={},this.letterGuessed=new Ce}addGuessedLetter(e,n){this.guessedLetters[e]=n?"correct":"wrong"}guessLetter(e){this.letterGuessed.emit(e)}isLetterGuessed(e){return e in this.guessedLetters}markLetterAsGuessed(e,n){this.guessedLetters[e]=n}reset(){this.guessedLetters={}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Le({type:t,selectors:[["app-keyboard"]],outputs:{letterGuessed:"letterGuessed"},decls:2,vars:1,consts:[[1,"keyboard-container"],["class","keyboard-row",4,"ngFor","ngForOf"],[1,"keyboard-row"],["mat-button","",3,"guessed-correct","guessed-wrong","disabled","click",4,"ngFor","ngForOf"],["mat-button","",3,"disabled","click"]],template:function(n,r){1&n&&(_(0,"div",0),P(1,Ooe,2,1,"div",1),v()),2&n&&(w(1),S("ngForOf",r.keyboardLayout))},dependencies:[kr,Dr],styles:[".keyboard-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.keyboard-row[_ngcontent-%COMP%]{display:flex;justify-content:center;margin:5px;flex-wrap:wrap}button[_ngcontent-%COMP%]{margin:2px;padding:8px 6px;border-radius:8px;border:1px solid #000;transition:background-color .3s ease;min-width:40px;flex:1}button.guessed-correct[_ngcontent-%COMP%]{background-color:green;color:#fff}button.guessed-wrong[_ngcontent-%COMP%]{background-color:red;color:#fff}@media (max-width: 768px){.keyboard-row[_ngcontent-%COMP%]{margin:1px 0}.keyboard-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:1px;padding:8px;min-width:0;width:9%;flex:1 1 auto;font-size:14px}}"]})}return t})();const Loe=["keyboard"];function Noe(t,i){if(1&t&&(_(0,"div",7)(1,"div",8)(2,"div",9),k(3," Loading... "),v(),ge(4,"mat-progress-bar",10),v()()),2&t){const e=V(2);w(4),S("value",e.loadingAssetsProgress)}}function Boe(t,i){if(1&t&&(_(0,"span"),k(1),v()),2&t){const e=i.$implicit;w(1),Ge(e)}}function Voe(t,i){if(1&t&&(_(0,"span",33),P(1,Boe,2,1,"span",19),v()),2&t){const e=i.$implicit;w(1),S("ngForOf",e.split(""))}}function Hoe(t,i){if(1&t&&(_(0,"div",31),P(1,Voe,2,1,"span",32),v()),2&t){const e=V(2).ngIf;w(1),S("ngForOf",e.displayTerm.join("").split(" "))}}function Uoe(t,i){1&t&&(_(0,"div",34)(1,"div",35),k(2," Choosing a random SNOMED CT concept using the FHIR API "),v(),ge(3,"mat-progress-bar",36),v())}function zoe(t,i){1&t&&(_(0,"span")(1,"mat-icon"),k(2,"favorite"),v()())}function $oe(t,i){1&t&&(_(0,"span")(1,"mat-icon"),k(2,"favorite_border"),v()())}function joe(t,i){if(1&t){const e=Ne();_(0,"div",37),z("click",function(){return _e(e),be(V(3).revealHint())}),k(1," Reveal Hint "),v()}}function Woe(t,i){if(1&t){const e=Ne();_(0,"div",37),z("click",function(){return _e(e),be(V(3).loadMenu())}),k(1," Abandon game "),v()}}function Goe(t,i){1&t&&ge(0,"li",41),2&t&&S("innerHTML",i.$implicit,Mc)}function qoe(t,i){if(1&t&&(_(0,"div",38)(1,"div",39)(2,"h2"),k(3,"Hints:"),v(),_(4,"ul"),P(5,Goe,1,1,"li",40),v()()()),2&t){const e=V(2).ngIf;w(5),S("ngForOf",e.hints)}}const uw=function(t){return[t]};function Xoe(t,i){if(1&t&&(_(0,"mat-icon",47),k(1,"grade"),v()),2&t){const e=V().$implicit;en("left",V(3).calculateGoalPosition(e.score-5),"%"),S("ngClass",Ja(3,uw,e.name.toLowerCase()))}}function Qoe(t,i){if(1&t&&(_(0,"mat-icon",48),k(1,"grade"),v()),2&t){const e=V().$implicit;en("left",V(3).calculateGoalPosition(e.score-1),"%"),S("ngClass",Ja(3,uw,e.name.toLowerCase()))}}function Yoe(t,i){if(1&t&&(_(0,"div",49),k(1),v()),2&t){const e=V().$implicit;en("left",V(3).calculateGoalPosition(e.score),"%"),S("ngClass",Ja(4,uw,e.name.toLowerCase())),w(1),it("",e.name," trophy!")}}const Koe=function(t,i){return[t,i]};function Zoe(t,i){if(1&t&&(di(0),ge(1,"div",42),P(2,Xoe,2,5,"mat-icon",43),_(3,"mat-icon",44),k(4,"emoji_events"),v(),P(5,Qoe,2,5,"mat-icon",45),P(6,Yoe,2,6,"div",46),ui()),2&t){const e=i.$implicit,n=V(2).ngIf,r=V();w(1),function NE(t){Wo(T7,va,t,!0)}(e.name.toLowerCase()),en("left",r.calculateGoalPosition(e.score),"%"),w(1),S("ngIf",n.score>=e.score),w(1),en("left",r.calculateGoalPosition(e.score-3),"%"),S("ngClass",Wv(10,Koe,e.name.toLowerCase(),n.score>=e.score?"trophy-large":"")),w(2),S("ngIf",n.score>=e.score),w(1),S("ngIf",n.score>=e.score)}}const yP=function(){return[]};function Joe(t,i){if(1&t){const e=Ne();_(0,"div")(1,"div",11)(2,"div",12),ge(3,"img",13),_(4,"div",14),k(5),v()()(),P(6,Hoe,2,1,"div",15),P(7,Uoe,4,0,"div",16),_(8,"div",17)(9,"span",18),k(10),v(),P(11,zoe,3,0,"span",19),P(12,$oe,3,0,"span",19),v(),_(13,"p",20),k(14,"Click the keys to guess the letters of the term!"),v(),_(15,"div")(16,"app-keyboard",21,22),z("letterGuessed",function(r){return _e(e),be(V(2).guessLetter(r))}),v()(),_(18,"div",23),P(19,joe,2,0,"div",24),P(20,Woe,2,0,"div",25),v(),_(21,"div",26),k(22," * Hints are generated from the definition of the SNOMED CT concept, retrieved from the FHIR API as an SCG grammar expression "),v(),P(23,qoe,6,1,"div",27),_(24,"div",28)(25,"h3"),k(26,"Score Progression"),v(),_(27,"div",29),ge(28,"mat-progress-bar",30),P(29,Zoe,7,13,"ng-container",19),v()()()}if(2&t){const e=V().ngIf,n=V();w(5),it(" ",e.difficultyLevel," "),w(1),S("ngIf","playing"==e.state),w(1),S("ngIf","choosingTerm"===e.state),w(3),vd(" Round: ",e.round," \xa0\xa0\xa0\xa0 Score: ",e.score," \xa0\xa0\xa0\xa0 Life: "),w(1),S("ngForOf",Go(13,yP).constructor(e.hitPoints)),w(1),S("ngForOf",Go(14,yP).constructor(e.rules.maxHitPoints-e.hitPoints)),w(3),S("@shake",n.shakeState),w(4),S("ngIf","playing"==e.state&&e.hintsAvailable&&e.hitPoints>1),w(1),S("ngIf","playing"==e.state),w(3),S("ngIf",e.hints.length>0&&"playing"==e.state),w(5),S("value",n.calculateProgress(e.score)),w(1),S("ngForOf",n.goals)}}function eae(t,i){if(1&t){const e=Ne();_(0,"div",50),ge(1,"img",51)(2,"img",52),_(3,"p",53)(4,"b"),k(5,"Welcome to SnoGuess!"),v()(),_(6,"p",53),k(7," A fun way to learn about SNOMED CT concepts and their definitions. "),v(),_(8,"div",54),z("click",function(){return _e(e),be(V(2).chooseDifficultyLevel())}),k(9," New game "),v(),_(10,"div",55),z("click",function(){return _e(e),be(V(2).showInstructionsPanel())}),k(11," Instructions "),v(),_(12,"p",56),k(13),v()()}if(2&t){const e=V(2);w(2),S("@popIn",void 0),w(6),S("@scrollUp",void 0),w(2),S("@scrollUp",void 0),w(3),vd(" Playing with: ",e.selectedEdition,", Language: ",e.selectedLanguage," ")}}function tae(t,i){if(1&t){const e=Ne();_(0,"div",60)(1,"div",61),z("click",function(){const o=_e(e).$implicit;return be(V(3).startGame(o.name))}),k(2),v(),_(3,"p",62),k(4),_(5,"mat-icon",63),k(6,"favorite"),v(),k(7),_(8,"mat-icon",64),k(9,"contact_support"),v(),k(10),v()()}if(2&t){const e=i.$implicit;w(1),S("@scrollUp",void 0),w(1),it(" ",e.name," "),w(1),S("@fadeInDelayed",void 0),w(1),it(" Life: ",e.rules.maxHitPoints," "),w(3),it(", Free hints: ",e.rules.freeHints," "),w(3),it(", Points per letter: ",e.rules.pointsPerGuessedLetter," ")}}function iae(t,i){if(1&t){const e=Ne();_(0,"div",50),ge(1,"img",51)(2,"img",57),_(3,"p",53)(4,"b"),k(5,"Choose the game difficulty"),v()(),P(6,tae,11,6,"div",58),_(7,"div",59),z("click",function(){return _e(e),be(V(2).backToMenu())}),k(8," Back "),v()()}if(2&t){const e=V(2);w(2),S("@popIn",void 0),w(4),S("ngForOf",e.difficultyLevels),w(1),S("@scrollUp",void 0)}}function nae(t,i){if(1&t){const e=Ne();_(0,"div",50),ge(1,"img",51)(2,"img",65),_(3,"ul",66)(4,"li",67)(5,"mat-icon"),k(6,"check"),v(),k(7,"Click the keys on the screen to guess the letters of the term "),_(8,"mat-icon",68),k(9,"keyboard"),v()(),_(10,"li",67)(11,"mat-icon"),k(12,"check"),v(),k(13,"You have three to five lives, depending on your difficulty level "),_(14,"span",69)(15,"mat-icon"),k(16,"favorite"),v(),_(17,"mat-icon"),k(18,"favorite"),v(),_(19,"mat-icon"),k(20,"favorite"),v()()(),_(21,"li",67)(22,"mat-icon"),k(23,"check"),v(),k(24,"You will loose one life with each wrong guess "),_(25,"mat-icon",69),k(26,"favorite_border"),v()(),_(27,"li",67)(28,"mat-icon"),k(29,"check"),v(),k(30,"You earn points for each correct guess "),_(31,"mat-icon",68),k(32,"plus_one"),v()(),_(33,"li",67)(34,"mat-icon"),k(35,"check"),v(),k(36,"In Easy mode you get 2 hints for free, and in Medium mode you get one \u{1f4a1} "),v(),_(37,"li",67)(38,"mat-icon"),k(39,"check"),v(),k(40,"You can reveal more hints, but each hint it will cost one life "),_(41,"mat-icon",69),k(42,"favorite_border"),v()(),_(43,"li",67)(44,"mat-icon"),k(45,"check"),v(),k(46,"If you guess the whole term you can recover one life"),_(47,"mat-icon",69),k(48,"favorite"),v()(),_(49,"li",67)(50,"mat-icon"),k(51,"check"),v(),k(52,"Keep guessing terms to increase your score and earn trophies "),_(53,"mat-icon",70),k(54,"emoji_events"),v()()(),_(55,"div",71),z("click",function(){return _e(e),be(V(2).hideInstructionsPanel())}),k(56," Back "),v()()}2&t&&(w(2),S("@popIn",void 0),w(53),S("@scrollUp",void 0))}function rae(t,i){1&t&&(_(0,"div",72),ge(1,"img",73),v()),2&t&&(w(1),S("@popIn",void 0))}function oae(t,i){if(1&t&&(_(0,"div"),k(1),v()),2&t){const e=V(2).ngIf,n=V();w(1),it(" Trophy: ",n.getMaxTrophyObtained(e.score)," ")}}const wP=function(t){return[t,"shadow-local"]},aae=function(t){return[t,"trophy-large","shadow-local"]};function sae(t,i){if(1&t&&(_(0,"div")(1,"mat-icon",81),k(2,"grade"),v(),k(3," \xa0\xa0 "),_(4,"mat-icon",81),k(5,"emoji_events"),v(),k(6," \xa0 "),_(7,"mat-icon",81),k(8,"grade"),v()()),2&t){const e=V(2).ngIf,n=V();w(1),S("ngClass",Ja(3,wP,n.getMaxTrophyObtained(e.score).toLocaleLowerCase())),w(3),S("ngClass",Ja(5,aae,n.getMaxTrophyObtained(e.score).toLocaleLowerCase())),w(3),S("ngClass",Ja(7,wP,n.getMaxTrophyObtained(e.score).toLocaleLowerCase()))}}function cae(t,i){if(1&t){const e=Ne();_(0,"div",50),ge(1,"img",51)(2,"img",74),_(3,"div",75)(4,"div"),k(5," The term was: "),v(),_(6,"div",76),k(7),v(),_(8,"div",77),k(9),v(),_(10,"div",78),k(11),v(),P(12,oae,2,1,"div",4),v(),P(13,sae,9,9,"div",4),_(14,"div",79),z("click",function(){_e(e);const r=V(2);return r.loadMenu(),be(r.chooseDifficultyLevel())}),k(15," New game "),v(),_(16,"div",80),z("click",function(){return _e(e),be(V(2).loadMenu())}),k(17," Main menu "),v()()}if(2&t){const e=V().ngIf,n=V();w(2),S("@popIn",void 0),w(5),it(" ",e.term,""),w(2),vd("",e.round," ",1==e.round?"round":"rounds",""),w(2),it("Final Score: ",e.score," points"),w(1),S("ngIf",n.getMaxTrophyObtained(e.score)),w(1),S("ngIf",n.getMaxTrophyObtained(e.score)),w(1),S("@scrollUp",void 0),w(2),S("@scrollUp",void 0)}}function lae(t,i){if(1&t){const e=Ne();_(0,"div",50),ge(1,"img",51)(2,"img",82),_(3,"div",83)(4,"mat-icon",84),k(5,"grade"),v(),_(6,"mat-icon",84),k(7,"emoji_events"),v(),_(8,"mat-icon",84),k(9,"grade"),v()(),_(10,"div",85),k(11),v(),_(12,"div",79),z("click",function(){_e(e);const r=V(2);return r.loadMenu(),be(r.chooseDifficultyLevel())}),k(13," New game "),v(),_(14,"div",80),z("click",function(){return _e(e),be(V(2).loadMenu())}),k(15," Main menu "),v()()}if(2&t){const e=V().ngIf;w(2),S("@popIn",void 0),w(9),it("Final score: ",e.score,""),w(1),S("@scrollUp",void 0),w(2),S("@scrollUp",void 0)}}function dae(t,i){if(1&t&&(_(0,"div",2),P(1,Noe,5,1,"div",3),P(2,Joe,30,15,"div",4),P(3,eae,14,5,"div",5),P(4,iae,9,3,"div",5),P(5,nae,57,2,"div",5),P(6,rae,2,1,"div",6),P(7,cae,18,9,"div",5),P(8,lae,16,4,"div",5),v()),2&t){const e=i.ngIf,n=V();w(1),S("ngIf",n.loadingAssets),w(1),S("ngIf",("playing"==e.state||"choosingTerm"==e.state)&&!n.loadingAssets),w(1),S("ngIf","menu"===e.state&&!n.chooseDifficulty&&!n.showInstructions&&!n.loadingAssets),w(1),S("ngIf","menu"===e.state&&n.chooseDifficulty&&!n.showInstructions&&!n.loadingAssets),w(1),S("ngIf",n.showInstructions),w(1),S("ngIf",n.termGuessed),w(1),S("ngIf","gameOver"===e.state),w(1),S("ngIf","won"==e.state)}}let uae=(()=>{class t{constructor(e,n,r){this.snoguessMainService=e,this.preloadService=n,this.terminologyService=r,this.shakeState="normal",this.termGuessed="",this.goals=[],this.loadingAssetsProgress=0,this.loadingAssets=!0,this.showInstructions=!1,this.chooseDifficulty=!1,this.currentYear=new Date,this.difficultyLevels=[]}ngOnInit(){this.game=this.snoguessMainService.getGameState(),this.difficultyLevels=this.snoguessMainService.getDifficultyLevels(),this.game.subscribe(n=>{"playing"===n.state&&(this.goals=n.rules.goals)}),this.snoguessMainService.guessResult.subscribe(n=>{!1===n.result?(this.keyboard.addGuessedLetter(n.letter,!1),this.shakeState="shake",setTimeout(()=>this.shakeState="normal",200)):this.keyboard.addGuessedLetter(n.letter,!0)}),this.snoguessMainService.termResult.subscribe(n=>{n&&(this.keyboard.reset(),this.termGuessed=n,setTimeout(()=>{this.termGuessed=""},2e3))}),this.preloadService.preloadImages(["assets/img/SI_CT_w_tagline.png","assets/img/snoguess-logo.png","assets/img/congratulations.png","assets/img/correct.png","assets/img/game-over.png","assets/img/instructions.png","assets/img/difficulty.png"]).then(()=>{setTimeout(()=>{this.loadingAssets=!1,this.loadMenu()},500)}),this.preloadService.loadingProgress.subscribe(n=>{this.loadingAssetsProgress=n}),this.terminologyService.fhirUrlParam$.subscribe(n=>{n&&this.terminologyService.getCodeSystem(n).subscribe(r=>{this.selectedEdition=r?.entry[0]?.resource?.title})}),this.terminologyService.lang$.subscribe(n=>{this.selectedLanguage=n})}loadMenu(){this.snoguessMainService.loadMenu()}backToMenu(){this.chooseDifficulty=!1}showInstructionsPanel(){this.showInstructions=!0}hideInstructionsPanel(){this.showInstructions=!1}chooseDifficultyLevel(){this.chooseDifficulty=!0}startGame(e){this.chooseDifficulty=!1,this.keyboard&&this.keyboard.reset(),this.snoguessMainService.startGame(e)}guessLetter(e){var n=this;return fi(function*(){"playing"===(yield function Aoe(t,i){const e="object"==typeof i;return new Promise((n,r)=>{const o=new Ll({next:a=>{n(a),o.unsubscribe()},error:r,complete:()=>{e?n(i.defaultValue):r(new Md)}});t.subscribe(o)})}(n.game))?.state&&n.snoguessMainService.guessLetter(e)})()}revealHint(){this.snoguessMainService.revealHint()}calculateProgress(e){return Math.min(e/this.goals[this.goals.length-1].score*100,100)}calculateGoalPosition(e){return e/this.goals[this.goals.length-1].score*100}findCurrentGoal(e){if(!e||e{e>=r.score&&(n=r.name)}),n}static#e=this.\u0275fac=function(n){return new(n||t)(x(Ioe),x(Foe),x(Yn))};static#t=this.\u0275cmp=Le({type:t,selectors:[["app-snoguess-main"]],viewQuery:function(n,r){if(1&n&&rt(Loe,5),2&n){let o;Se(o=De())&&(r.keyboard=o.first)}},decls:5,vars:7,consts:[["class","snoguess-game",4,"ngIf"],[1,"text-center","mt-8"],[1,"snoguess-game"],["class","assets-loading-container",4,"ngIf"],[4,"ngIf"],["class","flex flex-col items-center gap-4",4,"ngIf"],["class","overlay overlay-transparent",4,"ngIf"],[1,"assets-loading-container"],[1,"mt-48","mb-48"],[1,"progress-bar-message","text-center"],["mode","determinate",1,"game-progress-bar",3,"value"],[1,"flex","justify-center","mt-8","mb-8"],[1,"relative","w-1/4"],["src","assets/img/snoguess-logo.png","alt","Game Logo"],[1,"diff-label","absolute","-bottom-3","right-5","italic","text-gray-500"],["class","term-display flex flex-row flex-wrap justify-center gap-4",4,"ngIf"],["class","loading-container",4,"ngIf"],[1,"hit-points"],[1,"score"],[4,"ngFor","ngForOf"],[1,"guess-message"],[3,"letterGuessed"],["keyboard",""],[1,"game-buttons","mt-4"],["class","bg-gradient-to-b from-blue-500 to-gray-500 hover:from-black hover:to-blue-500 border-solid border-2 border-black \n rounded-3xl pt-1 pb-1 pl-6 pr-6 w-fit text-center cursor-pointer font-bold text-white",3,"click",4,"ngIf"],["class","bg-gradient-to-b from-blue-500 to-gray-500 hover:from-black hover:to-blue-500 border-solid border-2 border-black \n rounded-3xl pt-1 pb-1 pl-6 pr-6 w-fit text-center cursor-pointer font-bold text-white",3,"click",4,"ngIf"],[1,"note"],["class","hints-container",4,"ngIf"],[1,"score-progression-panel"],[1,"progress-bar-container"],["mode","determinate",3,"value"],[1,"term-display","flex","flex-row","flex-wrap","justify-center","gap-4"],["class","whitespace-nowrap",4,"ngFor","ngForOf"],[1,"whitespace-nowrap"],[1,"loading-container"],[1,"progress-bar-message"],["mode","indeterminate"],[1,"bg-gradient-to-b","from-blue-500","to-gray-500","hover:from-black","hover:to-blue-500","border-solid","border-2","border-black","rounded-3xl","pt-1","pb-1","pl-6","pr-6","w-fit","text-center","cursor-pointer","font-bold","text-white",3,"click"],[1,"hints-container"],[1,"hints-callout","text-center"],["class","hint-item",3,"innerHTML",4,"ngFor","ngForOf"],[1,"hint-item",3,"innerHTML"],[1,"goal-indicator"],["class","star-icon left-star",3,"ngClass","left",4,"ngIf"],[1,"trophy-icon",3,"ngClass"],["class","star-icon right-star",3,"ngClass","left",4,"ngIf"],["class","goal-name",3,"left","ngClass",4,"ngIf"],[1,"star-icon","left-star",3,"ngClass"],[1,"star-icon","right-star",3,"ngClass"],[1,"goal-name",3,"ngClass"],[1,"flex","flex-col","items-center","gap-4"],["src","assets/img/SI_CT_w_tagline.png","alt","SNOMED CT Logo",1,"w-1/6"],["src","assets/img/snoguess-logo.png","alt","Game Logo",1,"w-1/4","mt-8"],[1,"text-center","font-light","text-lg"],[1,"menu-buttons","bg-gradient-to-b","from-blue-500","to-gray-500","hover:from-black","hover:to-blue-500","border-solid","border-4","border-black","rounded-3xl","pl-4","pr-4","pt-4","pb-4","w-1/5","text-center","cursor-pointer","font-bold","text-white","mt-12","text-3xl",3,"click"],[1,"menu-buttons","bg-gradient-to-b","from-blue-500","to-gray-500","hover:from-black","hover:to-blue-500","border-solid","border-4","border-black","rounded-3xl","pl-4","pr-4","pt-4","pb-4","w-1/5","text-center","cursor-pointer","font-bold","text-white","mt-12","mb-24","text-3xl",3,"click"],[1,"text-center","font-light","italic","text-lg"],["src","assets/img/difficulty.png","alt","Game Logo",1,"w-1/4","mt-8"],["class","level-container w-full flex flex-col justify-center items-center",4,"ngFor","ngForOf"],[1,"bg-gradient-to-b","from-blue-500","to-gray-500","hover:from-black","hover:to-blue-500","border-solid","border-4","border-black","rounded-3xl","pl-12","pr-12","pt-4","pb-4","w-1/5","text-center","cursor-pointer","font-bold","text-white","mt-2","mb-8","text-3xl",3,"click"],[1,"level-container","w-full","flex","flex-col","justify-center","items-center"],[1,"menu-buttons","bg-gradient-to-b","from-blue-500","to-gray-500","hover:from-black","hover:to-blue-500","border-solid","border-4","border-black","rounded-3xl","pl-4","pr-4","pt-4","pb-4","w-1/5","text-center","cursor-pointer","font-bold","text-white","mt-2","text-3xl",3,"click"],[1,"level-details","text-center","mt-3","flex","flex-row","align-middle"],[1,"text-red-500","text-sm"],[1,"text-yellow-500","text-sm"],["src","assets/img/instructions.png","alt","Game Logo",1,"w-1/4","mt-8","mb-12"],[1,"text-left","instructions-text"],[1,"flex","flex-row","align-middle","gap-2"],[1,"text-blue-900"],[1,"text-red-500"],[1,"text-yellow-500"],[1,"bg-gradient-to-b","from-blue-500","to-gray-500","hover:from-black","hover:to-blue-500","border-solid","border-4","border-black","rounded-3xl","pl-12","pr-12","pt-4","pb-4","w-1/5","text-center","cursor-pointer","font-bold","text-white","mt-12","mb-24","text-3xl",3,"click"],[1,"overlay","overlay-transparent"],["src","assets/img/correct.png","alt","Correct",1,"w-1/5","mt-8"],["src","assets/img/game-over.png","alt","Game Logo",1,"w-1/4","mt-8"],[1,"text-xl","text-pretty","text-center"],[1,"font-bold"],[1,"mt-12"],[1,"mt-4"],[1,"bg-gradient-to-b","from-blue-500","to-gray-500","hover:from-black","hover:to-blue-500","border-solid","border-4","border-black","rounded-3xl","pt-4","pb-4","w-1/6","text-center","cursor-pointer","font-bold","text-white","mt-12","text-2xl",3,"click"],[1,"bg-gradient-to-b","from-blue-500","to-gray-500","hover:from-black","hover:to-blue-500","border-solid","border-4","border-black","rounded-3xl","pt-4","pb-4","w-1/6","text-center","cursor-pointer","font-bold","text-white","mt-12","mb-24","text-2xl",3,"click"],[3,"ngClass"],["src","assets/img/congratulations.png","alt","Game Logo",1,"w-1/3","mt-8"],[1,""],[1,"large-icon","diamond","shadow-local"],[1,"reveal","won"]],template:function(n,r){1&n&&(P(0,dae,9,8,"div",0),Cd(1,"async"),_(2,"div",1),k(3),Cd(4,"date"),v()),2&n&&(S("ngIf",Sp(1,2,r.game)),w(3),it(" Copyright \xa9 ",Gv(4,4,r.currentYear,"yyyy")," SNOMED International\n"))},dependencies:[os,kr,Yi,oo,vP,Poe,Rx,Ox],styles:[".snoguess-game[_ngcontent-%COMP%]{padding:20px;border-radius:8px;max-width:80%;margin:auto;box-shadow:0 4px 8px #0000001a}.term-display[_ngcontent-%COMP%]{font-size:24px;letter-spacing:4px;word-break:break-all;margin-bottom:20px;text-align:center;font-family:monospace}.term-display[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding:0 2px}.hit-points[_ngcontent-%COMP%]{font-weight:700;color:#d9534f;text-align:center}mat-form-field[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}button[_ngcontent-%COMP%]{margin-right:8px}.guess-field[_ngcontent-%COMP%]{display:flex;align-items:center;vertical-align:middle;justify-content:center;gap:10px}.overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;z-index:1000}.overlay-dark[_ngcontent-%COMP%]{background-color:#00000080}.overlay-transparent[_ngcontent-%COMP%]{background-color:#0000}.message[_ngcontent-%COMP%]{font-size:4rem;text-align:center;margin-bottom:20px;font-weight:bolder}.reveal[_ngcontent-%COMP%]{font-size:2rem;text-align:center;margin-bottom:20px;font-weight:bolder}.won[_ngcontent-%COMP%]{color:#4caf50;text-shadow:black 2px 2px 2px}.lost[_ngcontent-%COMP%]{color:#f44336;text-shadow:rgb(0,0,0) 2px 2px 2px}.overlay[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:1.5rem;padding:10px 20px}.loading-container[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;align-items:center;margin-bottom:1rem}.progress-bar-message[_ngcontent-%COMP%]{color:#000;font-size:larger;margin-bottom:10px;font-style:italic;font-weight:lighter}.score[_ngcontent-%COMP%]{font-size:1.6rem;font-weight:700}.score-progression-panel[_ngcontent-%COMP%]{margin-top:2rem}.progress-bar-container[_ngcontent-%COMP%]{margin-top:2rem;margin-bottom:5rem;position:relative;background-color:#e0e0e0;border-radius:5px}.goal-indicator[_ngcontent-%COMP%]{position:absolute;bottom:0;width:2px;height:10px;background-color:#000}.goal-indicator.bronze[_ngcontent-%COMP%]{background-color:#cd7f32}.goal-indicator.silver[_ngcontent-%COMP%]{background-color:silver}.goal-indicator.gold[_ngcontent-%COMP%]{background-color:gold}.goal-indicator.platinum[_ngcontent-%COMP%]{background-color:#e5e4e2}.goal-indicator.diamond[_ngcontent-%COMP%]{background-color:#3b49c4}.trophy-icon[_ngcontent-%COMP%]{position:absolute;bottom:-35px;font-size:24px;width:24px;transition:transform .3s ease}.trophy-large[_ngcontent-%COMP%]{transform:scale(2.5) translate(-2px,3px)}.bronze[_ngcontent-%COMP%]{color:#cd7f32}.silver[_ngcontent-%COMP%]{color:silver}.gold[_ngcontent-%COMP%]{color:gold}.platinum[_ngcontent-%COMP%]{color:#e5e4e2}.diamond[_ngcontent-%COMP%]{color:#3b49c4}.shadow-local[_ngcontent-%COMP%]{text-shadow:black 2px 2px 2px}.star-icon[_ngcontent-%COMP%]{position:absolute;bottom:-40px;font-size:30px;width:30px;transition:transform .3s ease}.left-star[_ngcontent-%COMP%]{transform:translate(-50px)}.right-star[_ngcontent-%COMP%]{transform:translate(30px)}.goal-name[_ngcontent-%COMP%]{position:absolute;bottom:-75px;width:100px;margin-left:-50px;text-align:center;font-size:12px;font-weight:700;color:#000}.large-icon[_ngcontent-%COMP%]{font-size:5rem;width:5rem;height:5rem}.note[_ngcontent-%COMP%]{font-size:.8rem;font-weight:lighter;margin-top:1rem;text-align:center}.hints-container[_ngcontent-%COMP%]{background-color:#f9f9f9;border-radius:8px;box-shadow:0 4px 6px #0000001a;padding:20px;margin-top:20px}.hints-callout[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:#333;font-size:1.5em}.hint-item[_ngcontent-%COMP%]{color:#555;font-size:1em;list-style-type:none;position:relative;padding:5px 0 5px 30px}ul[_ngcontent-%COMP%]{list-style-type:none;padding:0;margin:0}li[_ngcontent-%COMP%]{margin-bottom:10px;color:#666;font-size:1.2rem}.guess-message[_ngcontent-%COMP%]{text-align:center;margin-top:1rem;font-size:1.2rem}.assests-loading-container[_ngcontent-%COMP%]{text-align:center;font-size:20px;color:#fff}.game-progress-bar[_ngcontent-%COMP%]{border-radius:22px;overflow:hidden;background-color:#e0e0e0;box-shadow:0 4px 8px #0003}.game-progress-bar[_ngcontent-%COMP%] .mat-progress-bar-fill[_ngcontent-%COMP%]:after{background-color:#4caf50;border-radius:22px}.game-buttons[_ngcontent-%COMP%]{display:flex;align-items:center;vertical-align:middle;justify-content:center;gap:10px}.level-details[_ngcontent-%COMP%]{visibility:hidden}.level-container[_ngcontent-%COMP%]:hover .level-details[_ngcontent-%COMP%]{visibility:visible}@media (max-width: 1300px){.menu-buttons[_ngcontent-%COMP%]{font-size:large}}@media (max-width: 876px){.snoguess-game[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .bg-gradient-to-b[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .progress-bar-container[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .hints-container[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .score-progression-panel[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .guess-field[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .overlay[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:100%!important;max-width:100%!important;margin:0 auto;box-sizing:border-box;box-shadow:none}.snoguess-game[_ngcontent-%COMP%] .game-buttons[_ngcontent-%COMP%]{flex-direction:column;margin-top:1rem}.snoguess-game[_ngcontent-%COMP%] .game-buttons[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:-moz-fit-content!important;width:fit-content!important;margin-bottom:1rem}.snoguess-game[_ngcontent-%COMP%] .goal-indicator[_ngcontent-%COMP%]{display:none}.snoguess-game[_ngcontent-%COMP%] .hit-points[_ngcontent-%COMP%]{margin-top:1rem}.snoguess-game[_ngcontent-%COMP%] .term-display[_ngcontent-%COMP%]{font-size:20px;margin-top:1rem}.snoguess-game[_ngcontent-%COMP%] .guess-message[_ngcontent-%COMP%]{font-size:12px}.snoguess-game[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{font-size:11px!important}.snoguess-game[_ngcontent-%COMP%] .pt-1[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pb-1[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pl-6[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pr-6[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pt-4[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pb-4[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pl-12[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pr-12[_ngcontent-%COMP%]{padding:10px}.snoguess-game[_ngcontent-%COMP%] .font-bold[_ngcontent-%COMP%]{font-size:16px}.snoguess-game[_ngcontent-%COMP%] .diff-label[_ngcontent-%COMP%]{text-align:right}}"],data:{animation:[zi("shake",[Wt("normal => shake",jt(200,Qh([Xe({transform:"translateX(0)"}),Xe({transform:"translateX(-10px)"}),Xe({transform:"translateX(10px)"}),Xe({transform:"translateX(0)"})])))]),zi("popIn",[Wt(":enter",[Xe({transform:"scale(0.8)",opacity:0}),jt("0.5s cubic-bezier(.8, -0.6, 0.2, 1.5)",Xe({transform:"scale(1.3)",opacity:1})),jt("0.2s cubic-bezier(.8, -0.6, 0.2, 1.5)",Xe({transform:"scale(1)",opacity:1}))])]),zi("scrollUp",[Wt(":enter",[Xe({transform:"translateY(100%)",opacity:0}),jt("0.5s ease-out",Xe({transform:"translateY(0)",opacity:1}))])]),zi("fadeInDelayed",[Wt(":enter",[Xe({opacity:0}),jt("1s 0.5s ease-out",Xe({opacity:1}))])])]}})}return t})();function hae(t,i){if(1&t){const e=Ne();_(0,"li")(1,"a",11),z("click",function(){const o=_e(e).$implicit;return be(V().findingWithExplicitContextSelected(o))}),k(2),v()()}if(2&t){const e=i.$implicit;w(2),Ge(e.display)}}function fae(t,i){1&t&&(_(0,"th",20),k(1," Type "),v())}function mae(t,i){if(1&t&&(_(0,"td",21),k(1),v()),2&t){const e=i.$implicit;w(1),it(" ",e.type.display," ")}}function pae(t,i){1&t&&(_(0,"th",20),k(1," Target "),v())}function gae(t,i){if(1&t&&(_(0,"td",21),k(1),v()),2&t){const e=i.$implicit;w(1),it(" ",e.target.code," ")}}function _ae(t,i){1&t&&(_(0,"th",20),k(1," Target "),v())}function bae(t,i){if(1&t&&(_(0,"td",21),k(1),v()),2&t){const e=i.$implicit;w(1),it(" ",e.target.display," ")}}function vae(t,i){1&t&&ge(0,"tr",22)}function xae(t,i){1&t&&ge(0,"tr",23)}function yae(t,i){if(1&t&&(_(0,"div",4)(1,"h3"),k(2),v(),_(3,"table",12),di(4,13),P(5,fae,2,0,"th",14),P(6,mae,2,1,"td",15),ui(),di(7,16),P(8,pae,2,0,"th",14),P(9,gae,2,1,"td",15),ui(),di(10,17),P(11,_ae,2,0,"th",14),P(12,bae,2,1,"td",15),ui(),P(13,vae,1,0,"tr",18),P(14,xae,1,0,"tr",19),v()()),2&t){const e=V();w(2),it("Relevant attributes (",e.selectedSituation.display,")"),w(1),S("dataSource",e.dataSource),w(10),S("matHeaderRowDef",e.displayedColumns),w(1),S("matRowDefColumns",e.displayedColumns)}}function wae(t,i){if(1&t&&(_(0,"div",4)(1,"h3"),k(2,"Resource Type"),v(),_(3,"a",24)(4,"span"),k(5),v(),_(6,"mat-icon"),k(7,"open_in_new"),v()()()),2&t){const e=V();w(3),S("href","https://hl7.org/fhir/R4/"+e.resourceType+".html",tp),w(2),it("FHIR R4 ",e.resourceType,"")}}function Cae(t,i){if(1&t){const e=Ne();_(0,"div",25)(1,"button",26),z("click",function(){_e(e);const r=V();return be(r.saveOutput(r.fhirRepresentationString))}),ge(2,"mat-icon",27),v(),_(3,"button",28),z("click",function(){_e(e);const r=V();return be(r.copyOutputToClipboard(r.fhirRepresentationString))}),ge(4,"mat-icon",29),v()()}}const kae=function(){return{}};let Sae=(()=>{class t{constructor(e,n){this.terminologyService=e,this.clipboard=n,this.fhirRepresentationString="{}",this.situationsBinding={title:"Finding with explicit context",type:"Autocomplete",ecl:"<< 413350009 |Finding with explicit context (situation)|",value:"",note:"Select a finding with explicit context"},this.SituationConstants={KnownPresent:{code:"410515003",display:"Known present",selfAndDescendants:[]},KnownAbsent:{code:"410516002",display:"Known absent",selfAndDescendants:[]},SubjectOfRecord:{code:"410604004",display:"Subject of record",selfAndDescendants:[]},PersonInTheFamily:{code:"303071001",display:"Person in the family",selfAndDescendants:[]},InThePast:{code:"410513005",display:"In the past",selfAndDescendants:[]},CurrentOrSpecifiedTime:{code:"410512000",display:"Current or specified time",selfAndDescendants:[]},KnownPossible:{code:"410590009",display:"Known possible",selfAndDescendants:[]}},this.examples=[{code:"160377001",display:"Family history of asthma"},{code:"12147341000119108",display:"History of burn"},{code:"428942009",display:"History of fall"},{code:"300890009",display:"Swelling absent"},{code:"162057007",display:"Nausea present"},{code:"401204006",display:"Suspected autism"}],this.displayedColumns=["type","targetCode","targetDisplay"],this.dataSource=[]}ngOnInit(){this.loadOrUpdateConstants()}loadOrUpdateConstants(){var e=this;return fi(function*(){let n=localStorage.getItem("SituationConstants");n?(e.SituationConstants=JSON.parse(n),console.log("Loaded constants from cache.")):(yield e.updateConstantDescendants(),localStorage.setItem("SituationConstants",JSON.stringify(e.SituationConstants)),console.log("Updated constants and cached them."))})()}updateConstantDescendants(){var e=this;return fi(function*(){for(const n in e.SituationConstants)if(Object.prototype.hasOwnProperty.call(e.SituationConstants,n)){const r=e.SituationConstants[n];let o=yield Sr(e.terminologyService.expandValueSet("<< "+r.code,"",0,1e3));r.selfAndDescendants=o.expansion.contains.map(a=>a.code)}})()}convertSituationToFhir(e){var n=this;return fi(function*(){n.selectedSituation=e,n.fhirRepresentation=null,n.fhirRepresentationString="Loading...",n.dataSource=[],n.resourceType=void 0;let s,c,l,d,r=yield Sr(n.terminologyService.lookupConcept(e.code)),o=n.terminologyService.getNormalForm(r);if(n.terminologyService.parseNormmalForm(o).groups.forEach(u=>{const h=u.find(p=>"408732007"===p.type.code);h&&(n.dataSource=[...n.dataSource,h],c=h.target);const f=u.find(p=>"408729009"===p.type.code);f&&(n.dataSource=[...n.dataSource,f],s=f.target);const m=u.find(p=>"408731000"===p.type.code);m&&(n.dataSource=[...n.dataSource,m],l=m.target);const g=u.find(p=>"246090004"===p.type.code);g&&(n.dataSource=[...n.dataSource,g],d=g.target)}),d){const u=n.SituationConstants.KnownPresent.selfAndDescendants.includes(s?.code),h=n.SituationConstants.SubjectOfRecord.selfAndDescendants.includes(c?.code),f=n.SituationConstants.InThePast.selfAndDescendants.includes(l?.code),m=n.SituationConstants.KnownAbsent.selfAndDescendants.includes(s?.code),g=n.SituationConstants.KnownPossible.selfAndDescendants.includes(s?.code),p=n.SituationConstants.CurrentOrSpecifiedTime.selfAndDescendants.includes(l?.code),b=n.SituationConstants.PersonInTheFamily.selfAndDescendants.includes(c?.code);u&&h&&f?n.updateFhirRepresentation(n.createFhirCondition(d,"inactive")):u&&h&&p?n.updateFhirRepresentation(n.createFhirCondition(d,"active")):g&&h&&p?n.updateFhirRepresentation(n.createFhirCondition(d,"unconfirmed")):u&&b?n.updateFhirRepresentation(n.createFamilyMemberHistoryForFinding(d,c)):m&&h&&p?n.updateFhirRepresentation(n.createFhirObservationForAbsentFinding(d)):n.fhirRepresentationString="No FHIR representation for this situation"}else n.fhirRepresentationString="No FHIR representation for this situation"})()}updateFhirRepresentation(e){this.fhirRepresentation=e,this.fhirRepresentationString=JSON.stringify(e,null,2)}findingWithExplicitContextSelected(e){e&&e.code&&this.convertSituationToFhir(e)}createFhirCondition(e,n){return this.resourceType="Condition",{resourceType:"Condition",subject:{reference:"Patient/1234"},clinicalStatus:{coding:[{system:"http://terminology.hl7.org/CodeSystem/condition-clinical",code:n}]},code:{coding:[{system:"http://snomed.info/sct",code:e.code,display:e.display}]}}}createFhirObservationForAbsentFinding(e){return this.resourceType="Observation",{resourceType:"Observation",subject:{reference:"Patient/1234"},status:"registered",code:{coding:[{system:"http://snomed.info/sct",code:e.code,display:e.display}]},valueCodeableConcept:{coding:[{system:"http://snomed.info/sct",code:"410516002",display:"Known absent"}]}}}createFamilyMemberHistoryForFinding(e,n){return this.resourceType="FamilyMemberHistory",{resourceType:"FamilyMemberHistory",status:"completed",patient:{reference:"Patient/1234"},relationship:{coding:[{system:"http://snomed.info/sct",code:n.code,display:n.display}]},condition:[{code:{coding:[{system:"http://snomed.info/sct",code:e.code,display:e.display}]}}]}}saveOutput(e){var n=new Blob([e],{type:"text/plain;charset=utf-8"});(0,ps.saveAs)(n,`${this.selectedSituation.display}-fhir.json`)}copyOutputToClipboard(e){this.clipboard.copy(e)}static#e=this.\u0275fac=function(n){return new(n||t)(x(Yn),x(W1))};static#t=this.\u0275cmp=Le({type:t,selectors:[["app-situation-map"]],decls:17,vars:9,consts:[[1,"p-8"],[1,"flex","flex-wrap","gap-4"],[1,"w-1/3"],[1,"w-auto",3,"binding","selectionChange"],[1,"mt-8"],[4,"ngFor","ngForOf"],["class","mt-8",4,"ngIf"],[1,"flex-grow"],[1,"output"],["id","save",4,"ngIf"],["highlight-js","","id","output","wrap","soft",3,"options","lang","innerHTML"],["href","javascript:void(0);",3,"click"],["mat-table","",3,"dataSource"],["matColumnDef","type"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","targetCode"],["matColumnDef","targetDisplay"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],["target","_blank",1,"flex","flex-row","align-middle","gap-2",3,"href"],["id","save"],["mat-icon-button","","matTooltip","Download",3,"click"],["fontIcon","cloud_download"],["mat-icon-button","","matTooltip","Copy",3,"click"],["fontIcon","content_copy"]],template:function(n,r){1&n&&(_(0,"div",0)(1,"h2"),k(2,"Consistent Context Representation for Situations with Explicit Context"),v(),_(3,"div",1)(4,"div",2)(5,"app-autocomplete-binding",3),z("selectionChange",function(a){return r.findingWithExplicitContextSelected(a)}),v(),_(6,"h3",4),k(7,"Examples"),v(),_(8,"ul"),P(9,hae,3,1,"li",5),v(),P(10,yae,15,4,"div",6),P(11,wae,8,2,"div",6),v(),_(12,"div",7)(13,"div",8),P(14,Cae,5,0,"div",9),_(15,"textarea",10),k(16," "),v()()()()()),2&n&&(w(5),S("binding",r.situationsBinding),w(4),S("ngForOf",r.examples),w(1),S("ngIf",null==r.selectedSituation?null:r.selectedSituation.display),w(1),S("ngIf",r.resourceType),w(3),S("ngIf",r.fhirRepresentationString.length>15),w(1),S("options",Go(8,kae))("lang","json")("innerHTML",r.fhirRepresentationString,Mc))},dependencies:[kr,Yi,D0,Zo,oo,eu,Zc,tu,Jc,Kc,iu,el,tl,nu,ru,cu,pf],styles:[".output[_ngcontent-%COMP%]{border-radius:10px;background-color:#282c34;padding:10px;position:relative;margin:2rem;min-height:45rem}#save[_ngcontent-%COMP%]{position:absolute;right:0;top:0;color:#e88c15}"]})}return t})();const Dae=[{path:"",component:vO},{path:"allergies",component:vO},{path:"sandbox",component:Fne},{path:"prescription",component:Rne},{path:"questionnaires",component:moe},{path:"implementation-course/subset-validator",component:Moe},{path:"snoguess",component:uae},{path:"context",component:(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Le({type:t,selectors:[["app-context-main"]],decls:1,vars:0,template:function(n,r){1&n&&ge(0,"app-situation-map")},dependencies:[Sae]})}return t})()},{path:"**",redirectTo:""}];let Eae=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=ct({imports:[nI.forRoot(Dae,{useHash:!0}),nI]})}return t})();const Tae=[{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 Mae=(()=>{class t{constructor(){}getCodingSpec(){return Tae}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ft,Cf={version:"0.19.3"},Pn=1200,ll=1252,Aae=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],hw={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},N0=function(t){-1!=Aae.indexOf(t)&&(ll=hw[0]=t)},Eo=function(t){Pn=t,N0(t)};var kf=function(i){return String.fromCharCode(i)},fw=function(i){return String.fromCharCode(i)},hn=null,SP=!0,To="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function H0(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+=To.charAt(o)+To.charAt(a)+To.charAt(s)+To.charAt(c);return i}function ao(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=To.indexOf(t.charAt(l++)))&&(i+=String.fromCharCode((15&a)<<4|s>>2)),64!==(c=To.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}(),Ta=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(){}}(),Sf=function(){if(typeof Buffer>"u")return!1;var t=Ta([65,0]);return!!t&&1==t.toString("utf16le").length}();function tc(t){return Vt?Buffer.alloc?Buffer.alloc(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}function DP(t){return Vt?Buffer.allocUnsafe?Buffer.allocUnsafe(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}var Tr=function(i){return Vt?Ta(i,"binary"):i.split("").map(function(e){return 255&e.charCodeAt(0)})};function Df(t){if(typeof ArrayBuffer>"u")return Tr(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 Ma(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 ia(t,i){var e=""+t;return e.length>=i?e:ci("0",i-e.length)+e}function pw(t,i){var e=""+t;return e.length>=i?e:ci(" ",i-e.length)+e}function U0(t,i){var e=""+t;return e.length>=i?e:e+ci(" ",i-e.length)}var EP=Math.pow(2,32);function mu(t,i){return t>EP||t<-EP?function Nae(t,i){var e=""+Math.round(t);return e.length>=i?e:ci("0",i-e.length)+e}(t,i):function Bae(t,i){var e=""+t;return e.length>=i?e:ci("0",i-e.length)+e}(Math.round(t),i)}function z0(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 TP=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],gw=[["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"]],ht={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 "'},MP={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},Hae={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 $0(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 ic(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 Gae(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 AP=new Date(1899,11,31,0,0,0),Uae=AP.getTime(),zae=new Date(1900,2,1,0,0,0);function IP(t,i){var e=t.getTime();return i?e-=1262304e5:t>=zae&&(e+=864e5),(e-(Uae+6e4*(t.getTimezoneOffset()-AP.getTimezoneOffset())))/864e5}function _w(t){return-1==t.indexOf(".")?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function dl(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 Tf(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 jae(t){var i=t<0?12:11,e=_w(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 Wae(t){var i=_w(t.toFixed(11));return i.length>(t<0?12:11)||"0"===i||"-0"===i?t.toPrecision(6):i}(t),_w(function $ae(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 Ur(14,IP(t,i&&i.date1904),i)}throw new Error("unsupported value in General format: "+t)}function qae(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 gw[e.m-1][1];case 5:return gw[e.m-1][0];default:return gw[e.m-1][2]}break;case 100:switch(i.length){case 1:case 2:c=e.d,l=i.length;break;case 3:return TP[e.q][0];default:return TP[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=ia(o,2+n),"ss"===i?r.substr(0,2):"."+r.substr(2,i.length-1))):ia(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?ia(c,l):""}function gs(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 FP=/%/g;function RP(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"-"+RP(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 OP=/# (\?+)( ?)\/( ?)(\d+)/,PP=/^#*0*\.([0#]+)/,LP=/\).*[0#]/,NP=/\(###\) ###\\?-####/;function Mr(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 BP(t,i){var e=Math.pow(10,i);return""+Math.round(t*e)/e}function VP(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 Mo(t,i,e){if(40===t.charCodeAt(0)&&!i.match(LP)){var n=i.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return e>=0?Mo("n",n,e):"("+Mo("n",n,-e)+")"}if(44===i.charCodeAt(i.length-1))return function Qae(t,i,e){for(var n=i.length-1;44===i.charCodeAt(n-1);)--n;return _s(t,i.substr(0,n),e/Math.pow(10,3*(i.length-n)))}(t,i,e);if(-1!==i.indexOf("%"))return function Xae(t,i,e){var n=i.replace(FP,""),r=i.length-n.length;return _s(t,n,e*Math.pow(10,2*r))+ci("%",r)}(t,i,e);if(-1!==i.indexOf("E"))return RP(i,e);if(36===i.charCodeAt(0))return"$"+Mo(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+mu(c,i.length);if(i.match(/^[#?]+$/))return"0"===(r=mu(e,0))&&(r=""),r.length>i.length?r:Mr(i.substr(0,i.length-r.length))+r;if(o=i.match(OP))return function Yae(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?ci(" ",t[1].length+1+t[4].length):pw(a,t[1].length)+t[2]+"/"+t[3]+ia(s,t[4].length))}(o,c,l);if(i.match(/^#+0+$/))return l+mu(c,i.length-i.indexOf("0"));if(o=i.match(PP))return r=BP(e,o[1].length).replace(/^([^\.]+)$/,"$1."+Mr(o[1])).replace(/\.$/,"."+Mr(o[1])).replace(/\.(\d*)$/,function(m,g){return"."+g+ci("0",Mr(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+BP(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+gs(mu(c,0));if(o=i.match(/^#,##0\.([#0]*0)$/))return e<0?"-"+Mo(t,i,-e):gs(""+(Math.floor(e)+function Zae(t,i){return i<(""+Math.round((t-Math.floor(t))*Math.pow(10,i))).length?1:0}(e,o[1].length)))+"."+ia(VP(e,o[1].length),o[1].length);if(o=i.match(/^#,#*,#0/))return Mo(t,i.replace(/^#,#*,/,""),e);if(o=i.match(/^([0#]+)(\\?-([0#]+))+$/))return r=fu(Mo(t,i.replace(/[\\-]/g,""),e)),a=0,fu(fu(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?ia(0,3-m.length):"")+m})+"."+ia(a,o[1].length);switch(i){case"###,##0.00":return Mo(t,"#,##0.00",e);case"###,###":case"##,###":case"#,###":var f=gs(mu(c,0));return"0"!==f?l+f:"";case"###,###.00":return Mo(t,"###,##0.00",e).replace(/^0\./,".");case"#,###.00":return Mo(t,"#,##0.00",e).replace(/^0\./,".")}throw new Error("unsupported format |"+i+"|")}function HP(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"-"+HP(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 Aa(t,i,e){if(40===t.charCodeAt(0)&&!i.match(LP)){var n=i.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return e>=0?Aa("n",n,e):"("+Aa("n",n,-e)+")"}if(44===i.charCodeAt(i.length-1))return function ese(t,i,e){for(var n=i.length-1;44===i.charCodeAt(n-1);)--n;return _s(t,i.substr(0,n),e/Math.pow(10,3*(i.length-n)))}(t,i,e);if(-1!==i.indexOf("%"))return function tse(t,i,e){var n=i.replace(FP,""),r=i.length-n.length;return _s(t,n,e*Math.pow(10,2*r))+ci("%",r)}(t,i,e);if(-1!==i.indexOf("E"))return HP(i,e);if(36===i.charCodeAt(0))return"$"+Aa(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+ia(c,i.length);if(i.match(/^[#?]+$/))return r=""+e,0===e&&(r=""),r.length>i.length?r:Mr(i.substr(0,i.length-r.length))+r;if(o=i.match(OP))return function Kae(t,i,e){return e+(0===i?"":""+i)+ci(" ",t[1].length+2+t[4].length)}(o,c,l);if(i.match(/^#+0+$/))return l+ia(c,i.length-i.indexOf("0"));if(o=i.match(PP))return r=(r=(""+e).replace(/^([^\.]+)$/,"$1."+Mr(o[1])).replace(/\.$/,"."+Mr(o[1]))).replace(/\.(\d*)$/,function(m,g){return"."+g+ci("0",Mr(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+gs(""+c);if(o=i.match(/^#,##0\.([#0]*0)$/))return e<0?"-"+Aa(t,i,-e):gs(""+e)+"."+ci("0",o[1].length);if(o=i.match(/^#,#*,#0/))return Aa(t,i.replace(/^#,#*,/,""),e);if(o=i.match(/^([0#]+)(\\?-([0#]+))+$/))return r=fu(Aa(t,i.replace(/[\\-]/g,""),e)),a=0,fu(fu(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 zP=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function $P(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 Ur(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:ht)[t])&&(n=e.table&&e.table[MP[t]]||ht[MP[t]]),null==n&&(n=Hae[t]||"General")}if(z0(n,0))return dl(i,e);i instanceof Date&&(i=IP(i,e.date1904));var r=function rse(t,i){var e=function ise(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(zP),s=e[1].match(zP);return $P(i,a)?[n,e[0]]:$P(i,s)?[n,e[1]]:[n,e[null!=a&&null!=s?2:1]]}return[n,o]}(n,i);if(z0(r[1]))return dl(i,e);if(!0===i)i="TRUE";else if(!1===i)i="FALSE";else if(""===i||null==i)return"";return function nse(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]||"$",nc(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 C,p=0,b=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":(C=r[a].v.match(/\.0+$/))&&(b=Math.max(b,C[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 M,y="";for(a=0;a0){40==y.charCodeAt(0)?(N=i<0&&45===y.charCodeAt(0)?-i:i,E=_s("n",y,N)):(E=_s("n",y,N=i<0&&n>1?-i:i),N<0&&r[0]&&"t"==r[0].t&&(E=E.substr(1),r[0].v="-"+r[0].v)),M=E.length-1;var H=r.length;for(a=0;a-1){H=a;break}var B=r.length;if(H===r.length&&-1===E.indexOf("E")){for(a=r.length-1;a>=0;--a)null==r[a]||-1==="n?".indexOf(r[a].t)||(M>=r[a].v.length-1?r[a].v=E.substr(1+(M-=r[a].v.length),r[a].v.length):M<0?r[a].v="":(r[a].v=E.substr(0,M+1),M=-1),r[a].t="t",B=a);M>=0&&B=0;--a)if(null!=r[a]&&-1!=="n?".indexOf(r[a].t)){for(d=r[a].v.indexOf(".")>-1&&a===H?r[a].v.indexOf(".")-1:r[a].v.length-1,q=r[a].v.substr(d+1);d>=0;--d)M>=0&&("0"===r[a].v.charAt(d)||"#"===r[a].v.charAt(d))&&(q=E.charAt(M--)+q);r[a].v=q,r[a].t="t",B=a}for(M>=0&&B-1&&a===H?r[a].v.indexOf(".")+1:0,q=r[a].v.substr(0,d);d-1&&(r[a].v=_s(r[a].t,r[a].v,N=n>1&&i<0&&a>0&&"-"===r[a-1].v?-i:i),r[a].t="t");var G="";for(a=0;a!==r.length;++a)null!=r[a]&&(G+=r[a].v);return G}(r[1],i,e,r[0])}function bw(t,i){if("number"!=typeof i){i=+i||-1;for(var e=0;e<392;++e)if(null!=ht[e]){if(ht[e]==t){i=e;break}}else i<0&&(i=e);i<0&&(i=391)}return ht[i]=t,i}function Mf(t){for(var i=0;392!=i;++i)void 0!==t[i]&&bw(t[i],i)}function pu(){ht=function Vae(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 WP=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g,cse={"d.m":"d\\.m"};function rc(t,i){return bw(cse[t]||t,i)}var bs,GP=function(){var t={version:"1.2.0"},e=function i(){for(var E=0,H=new Array(256),B=0;256!=B;++B)H[B]=E=1&(E=1&(E=1&(E=1&(E=1&(E=1&(E=1&(E=1&(E=B)?-306674912^E>>>1:E>>>1)?-306674912^E>>>1:E>>>1)?-306674912^E>>>1:E>>>1)?-306674912^E>>>1:E>>>1)?-306674912^E>>>1:E>>>1)?-306674912^E>>>1:E>>>1)?-306674912^E>>>1:E>>>1)?-306674912^E>>>1:E>>>1;return typeof Int32Array<"u"?new Int32Array(H):H}(),r=function n(E){var H=0,B=0,G=0,Z=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(G=0;256!=G;++G)Z[G]=E[G];for(G=0;256!=G;++G)for(B=E[G],H=256+G;H<4096;H+=256)B=Z[H]=B>>>8^E[255&B];var j=[];for(G=1;16!=G;++G)j[G-1]=typeof Int32Array<"u"&&"function"==typeof Z.subarray?Z.subarray(256*G,256*G+256):Z.slice(256*G,256*G+256);return j}(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],b=r[12],C=r[13],y=r[14];return t.table=e,t.bstr=function M(E,H){for(var B=-1^H,G=0,Z=E.length;G>>8^e[255&(B^E.charCodeAt(G++))];return~B},t.buf=function q(E,H){for(var B=-1^H,G=E.length-15,Z=0;Z>8&255]^b[E[Z++]^B>>16&255]^p[E[Z++]^B>>>24]^g[E[Z++]]^m[E[Z++]]^f[E[Z++]]^h[E[Z++]]^u[E[Z++]]^d[E[Z++]]^l[E[Z++]]^c[E[Z++]]^s[E[Z++]]^a[E[Z++]]^o[E[Z++]]^e[E[Z++]];for(G+=15;Z>>8^e[255&(B^E[Z++])];return~B},t.str=function N(E,H){for(var B=-1^H,G=0,Z=E.length,j=0,me=0;G>>8^e[255&(B^j)]:j<2048?B=(B=B>>>8^e[255&(B^(192|j>>6&31))])>>>8^e[255&(B^(128|63&j))]:j>=55296&&j<57344?(j=64+(1023&j),me=1023&E.charCodeAt(G++),B=(B=(B=(B=B>>>8^e[255&(B^(240|j>>8&7))])>>>8^e[255&(B^(128|j>>2&63))])>>>8^e[255&(B^(128|me>>6&15|(3&j)<<4))])>>>8^e[255&(B^(128|63&me))]):B=(B=(B=B>>>8^e[255&(B^(224|j>>12&15))])>>>8^e[255&(B^(128|j>>6&63))])>>>8^e[255&(B^(128|63&j))];return~B},t}(),dt=function(){var c,i={};function n(D){if("/"==D.charAt(D.length-1))return-1===D.slice(0,-1).indexOf("/")?D:n(D.slice(0,-1));var R=D.lastIndexOf("/");return-1===R?D:D.slice(0,R+1)}function r(D){if("/"==D.charAt(D.length-1))return r(D.slice(0,-1));var R=D.lastIndexOf("/");return-1===R?D:D.slice(R+1)}function o(D,R){"string"==typeof R&&(R=new Date(R));var T=R.getHours();T=(T=T<<6|R.getMinutes())<<5|R.getSeconds()>>>1,D.write_shift(2,T);var I=R.getFullYear()-1980;I=(I=I<<4|R.getMonth()+1)<<5|R.getDate(),D.write_shift(2,I)}function s(D){Nn(D,0);for(var R={},T=0;D.l<=D.length-4;){var I=D.read_shift(2),O=D.read_shift(2),L=D.l+O,ee={};switch(I){case 21589:1&(T=D.read_shift(1))&&(ee.mtime=D.read_shift(4)),O>5&&(2&T&&(ee.atime=D.read_shift(4)),4&T&&(ee.ctime=D.read_shift(4))),ee.mtime&&(ee.mt=new Date(1e3*ee.mtime));break;case 1:var le=D.read_shift(4),J=D.read_shift(4);ee.usz=J*Math.pow(2,32)+le,le=D.read_shift(4),J=D.read_shift(4),ee.csz=J*Math.pow(2,32)+le}D.l=L,R[I]=ee}return R}function l(){return c||(c=bs)}function d(D,R){if(80==D[0]&&75==D[1])return j3(D,R);if(109==(32|D[0])&&105==(32|D[1]))return function uye(D,R){if("mime-version:"!=se(D.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var T=R&&R.root||"",I=(Vt&&Buffer.isBuffer(D)?D.toString("binary"):se(D)).split("\r\n"),O=0,L="";for(O=0;O0&&(T=(T=T.slice(0,T.length-1)).slice(0,T.lastIndexOf("/")+1),L.slice(0,T.length)!=T););var ee=(I[1]||"").match(/boundary="(.*?)"/);if(!ee)throw new Error("MAD cannot find boundary");var le="--"+(ee[1]||""),ie={FileIndex:[],FullPaths:[]};E(ie);var Te,Ae=0;for(O=0;O=O&&(Ae-=O),!ee[Ae]){J=[];var Oe=[];for(Te=Ae;Te>=0;){Oe[Te]=!0,ee[Te]=!0,le[le.length]=Te,J.push(D[Te]);var Ee=T[Math.floor(4*Te/I)];if(I<4+(et=4*Te&te))throw new Error("FAT boundary crossed: "+Te+" 4 "+I);if(!D[Ee]||Oe[Te=fl(D[Ee],et)])break}L[Ae]={nodes:le,data:p4([J])}}return L}(Tt,ee,te,I);ee0&&le!==me&&(Bi[le].name="!MiniFAT"),Bi[te[0]].name="!FAT",Bi.fat_addrs=te,Bi.ssz=I;var Mn=[],ho=[],pm=[];(function y(D,R,T,I,O,L,ee,le){for(var et,J=0,te=I.length?2:0,ie=R[D].data,Te=0,Ae=0;Te0&&J!==me&&(R[J].name="!StreamData")):Ee.size>=4096?(Ee.storage="fat",void 0===R[Ee.start]&&(R[Ee.start]=b(T,Ee.start,R.fat_addrs,R.ssz)),R[Ee.start].name=Ee.name,Ee.content=R[Ee.start].data.slice(0,Ee.size)):(Ee.storage="minifat",Ee.size<0?Ee.size=0:J!==me&&Ee.start!==me&&R[J]&&(Ee.content=g(Ee,R[J].data,(R[le]||{}).data))),Ee.content&&Nn(Ee.content,0),L[et]=Ee,ee.push(Ee)}})(ee,Bi,Tt,Mn,O,{},ho,le),function m(D,R,T){for(var I=0,O=0,L=0,ee=0,le=0,J=T.length,te=[],ie=[];I0&&ee>=0;)L.push(R.slice(ee*j,ee*j+j)),O-=j,ee=fl(T,4*ee);return 0===L.length?re(0):Cn(L).slice(0,D.size)}function p(D,R,T,I,O){var L=me;if(D===me){if(0!==R)throw new Error("DIFAT chain shorter than expected")}else if(-1!==D){var ee=T[D],le=(I>>>2)-1;if(!ee)return;for(var J=0;J=1&&p(fl(ee,I-4),R-1,T,I,O)}}function b(D,R,T,I,O){var L=[],ee=[];O||(O=[]);var le=I-1,J=0,te=0;for(J=R;J>=0;){O[J]=!0,L[L.length]=J,ee.push(D[J]);var ie=T[Math.floor(4*J/I)];if(I<4+(te=4*J&le))throw new Error("FAT boundary crossed: "+J+" 4 "+I);if(!D[ie])break;J=fl(D[ie],te)}return{nodes:L,data:p4([ee])}}function M(D,R){return new Date(1e3*($n(D,R+4)/1e7*Math.pow(2,32)+$n(D,R)/1e7-11644473600))}function E(D,R){var T=R||{},I=T.root||"Root Entry";if(D.FullPaths||(D.FullPaths=[]),D.FileIndex||(D.FileIndex=[]),D.FullPaths.length!==D.FileIndex.length)throw new Error("inconsistent CFB structure");0===D.FullPaths.length&&(D.FullPaths[0]=I+"/",D.FileIndex[0]={name:I,type:5}),T.CLSID&&(D.FileIndex[0].clsid=T.CLSID),function H(D){var R="\x01Sh33tJ5";if(!dt.find(D,"/"+R)){var T=re(4);T[0]=55,T[1]=T[3]=50,T[2]=54,D.FileIndex.push({name:R,type:2,content:T,size:4,L:69,R:69,C:69}),D.FullPaths.push(D.FullPaths[0]+R),B(D)}}(D)}function B(D,R){E(D);for(var T=!1,I=!1,O=D.FullPaths.length-1;O>=0;--O){var L=D.FileIndex[O];switch(L.type){case 0:I?T=!0:(D.FileIndex.pop(),D.FullPaths.pop());break;case 1:case 2:case 5:I=!0,isNaN(L.R*L.L*L.C)&&(T=!0),L.R>-1&&L.L>-1&&L.R==L.L&&(T=!0);break;default:T=!0}}if(T||R){var ee=new Date(1987,1,19),le=0,J=Object.create?Object.create(null):{},te=[];for(O=0;O1?1:-1,Te.size=0,Te.type=5;else if("/"==Ae.slice(-1)){for(le=O+1;le=te.length?-1:le,le=O+1;le=te.length?-1:le,Te.type=1}else n(D.FullPaths[O+1]||"")==n(Ae)&&(Te.R=O+1),Te.type=2}}}function G(D,R){var T=R||{};if("mad"==T.fileType)return function hye(D,R){for(var T=R||{},I=T.boundary||"SheetJS",O=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(I="------="+I).slice(2)+'"',"","",""],L=D.FullPaths[0],ee=L,le=D.FileIndex[0],J=1;J=32&&et<128&&++Te;var Ee=Te>=4*Ae/5;O.push(I),O.push("Content-Location: "+(T.root||"file:///C:/SheetJS/")+ee),O.push("Content-Transfer-Encoding: "+(Ee?"quoted-printable":"base64")),O.push("Content-Type: "+aye(le,ee)),O.push(""),O.push(Ee?cye(ie):sye(ie))}return O.push(I+"--\r\n"),O.join("\r\n")}(D,T);if("zip"===(B(D),T.fileType))return function oye(D,R){var T=R||{},I=[],O=[],L=re(1),ee=T.compression?8:0,le=0,te=0,ie=0,Te=0,Ae=0,et=D.FullPaths[0],Oe=et,Ee=D.FileIndex[0],Tt=[],Bi=0;for(te=1;te0&&(Wr<4096?Oe+=Wr+63>>6:Ee+=Wr+511>>9)}}for(var Mn=et.FullPaths.length+3>>2,pm=Oe+127>>7,gm=(Oe+7>>3)+Ee+Mn+pm,Fl=gm+127>>7,ek=Fl<=109?0:Math.ceil((Fl-109)/127);gm+Fl+ek+127>>7>Fl;)ek=++Fl<=109?0:Math.ceil((Fl-109)/127);var Es=[1,ek,Fl,pm,Mn,Ee,Oe,0];return et.FileIndex[0].size=Oe<<6,Es[7]=(et.FileIndex[0].start=Es[0]+Es[1]+Es[2]+Es[3]+Es[4]+Es[5])+(Es[6]+7>>3),Es}(D),O=re(I[7]<<9),L=0,ee=0;for(L=0;L<8;++L)O.write_shift(1,de[L]);for(L=0;L<8;++L)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),L=0;L<3;++L)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]),L=0;L<109;++L)O.write_shift(-4,L>9));for(le(I[6]+7>>3);511&O.l;)O.write_shift(-4,Y.ENDOFCHAIN);for(ee=L=0,J=0;J=4096)&&(ie.start=ee,le(te+63>>6));for(;511&O.l;)O.write_shift(-4,Y.ENDOFCHAIN);for(L=0;L32&&(console.error("Name "+Ae+" will be truncated to "+Ae.slice(0,32)),Ae=Ae.slice(0,32)),te=2*(Ae.length+1),O.write_shift(64,Ae,"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(L=1;L=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 A(D,R){var T=Re[255&D];return R<=8?T>>>8-R:(T=T<<8|Re[D>>8&255],R<=16?T>>>16-R:(T=T<<8|Re[D>>16&255])>>>24-R)}function xt(D,R){var T=7&R,I=R>>>3;return(D[I]|(T<=6?0:D[I+1]<<8))>>>T&3}function ni(D,R){var T=7&R,I=R>>>3;return(D[I]|(T<=5?0:D[I+1]<<8))>>>T&7}function Gt(D,R){var T=7&R,I=R>>>3;return(D[I]|(T<=3?0:D[I+1]<<8))>>>T&31}function Gi(D,R){var T=7&R,I=R>>>3;return(D[I]|(T<=1?0:D[I+1]<<8))>>>T&127}function mi(D,R,T){var I=7&R,O=R>>>3,ee=D[O]>>>I;return T<8-I||(ee|=D[O+1]<<8-I,T<16-I)||(ee|=D[O+2]<<16-I,T<24-I)||(ee|=D[O+3]<<24-I),ee&(1<>>3;return I<=5?D[O]|=(7&T)<>8-I),R+3}function Ve(D,R,T){return D[R>>>3]|=T=(1&T)<<(7&R),R+1}function pr(D,R,T){var O=R>>>3;return D[O]|=255&(T<<=7&R),D[O+1]=T>>>=8,R+8}function li(D,R,T){var O=R>>>3;return D[O]|=255&(T<<=7&R),D[O+1]=255&(T>>>=8),D[O+2]=T>>>8,R+16}function Mi(D,R){var T=D.length,I=2*T>R?2*T:R+5,O=0;if(T>=R)return D;if(Vt){var L=DP(I);if(D.copy)D.copy(L);else for(;O>I-Te,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,Te=xe?new Uint16Array(32768):[];ie0;)J[J.l++]=le[ie++];te=8*J.l}else{te=nt(J,te,+(ie+Ae==le.length)+2);for(var et=0;Ae-- >0;){var Oe=le[ie],Ee=-1,Tt=0;if((Ee=Te[et=32767&(et<<5^Oe)])&&((Ee|=-32768&ie)>ie&&(Ee-=32768),Ee2){(Oe=O[Tt])<=22?te=pr(J,te,Re[Oe+1]>>1)-1:(pr(J,te,3),pr(J,te+=5,Re[Oe-23]>>5),te+=3);var Bi=Oe<8?0:Oe-4>>2;Bi>0&&(li(J,te,Tt-W[Oe]),te+=Bi),te=pr(J,te,Re[Oe=R[ie-Ee]]>>3),te-=3;var Wr=Oe<4?0:Oe-2>>1;Wr>0&&(li(J,te,ie-Ee-U[Oe]),te+=Wr);for(var Mn=0;Mn>>3;return(D[I]|(T<=4?0:D[I+1]<<8))>>>T&15}(D,R+=5)+4;R+=4;for(var L=0,ee=xe?new Uint8Array(19):Ir(19),le=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],J=1,te=xe?new Uint8Array(8):Ir(8),ie=xe?new Uint8Array(8):Ir(8),Te=ee.length,Ae=0;Ae>8-Oe;for(var Ee=(1<<7-Oe)-1;Ee>=0;--Ee)Un[et|Ee<>>=3){case 16:for(L=3+xt(D,R),R+=2,et=Tt[Tt.length-1];L-- >0;)Tt.push(et);break;case 17:for(L=3+ni(D,R),R+=3;L-- >0;)Tt.push(0);break;case 18:for(L=11+Gi(D,R),R+=7;L-- >0;)Tt.push(0);break;default:Tt.push(et),J>>0,le=0,J=0;!(1&I);)if(I=ni(D,T),T+=3,I>>>1)for(I>>1==1?(le=9,J=5):(T=iye(D,T),le=Il,J=U3);;){!R&&ee>>1==1?pc[ie]:gn[ie];if(T+=15&Te,(Te>>>=4)>>>8&255){if(256==Te)break;var Ae=(Te-=257)<8?0:Te-4>>2;Ae>5&&(Ae=0);var et=L+W[Te];Ae>0&&(et+=mi(D,T,Ae),T+=Ae),ie=mi(D,T,J),T+=15&(Te=I>>>1==1?mm[ie]:No[ie]);var Oe=(Te>>>=4)<4?0:Te-2>>1,Ee=U[Te];for(Oe>0&&(Ee+=mi(D,T,Oe),T+=Oe),!R&&ee>>3]|D[1+(T>>>3)]<<8;if(T+=32,te>0)for(!R&&ee0;)O[L++]=D[T>>>3],T+=8}return R?[O,T+7>>>3]:[O.slice(0,L),T+7>>>3]}(D.slice(D.l||0),R);return D.l+=I[1],I[0]}function $3(D,R){if(!D)throw new Error(R);typeof console<"u"&&console.error(R)}function j3(D,R){var T=D;Nn(T,0);var L={FileIndex:[],FullPaths:[]};E(L,{root:R.root});for(var ee=T.length-4;(80!=T[ee]||75!=T[ee+1]||5!=T[ee+2]||6!=T[ee+3])&&ee>=0;)--ee;T.l=ee+4,T.l+=4;var le=T.read_shift(2);T.l+=6;var J=T.read_shift(4);for(T.l=J,ee=0;ee>>=5);T>>>=4,I.setMilliseconds(0),I.setFullYear(T+1980),I.setMonth(L-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}(D);if(8257&L)throw new Error("Unsupported ZIP encryption");D.read_shift(4);for(var te=D.read_shift(4),ie=D.read_shift(4),Te=D.read_shift(2),Ae=D.read_shift(2),et="",Oe=0;Oe"u")throw new Error("Unsupported");return new Uint8Array(t)}(t):t}function Af(t,i,e){if(typeof bs<"u"&&bs.writeFileSync)return e?bs.writeFileSync(t,i,e):bs.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=Df(i);break;default:throw new Error("Unsupported encoding "+e)}return Deno.writeFileSync(t,i)}var n="utf8"==e?Ia(i):i;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,t);if(typeof Blob<"u"){var r=new Blob([dse(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=Ma(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 ji(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==KP.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 ul(t,i){if(Vt&&Buffer.isBuffer(t)){if(i&&Sf){if(255==t[0]&&254==t[1])return Ia(t.slice(2).toString("utf16le"));if(254==t[1]&&255==t[2])return Ia(function kP(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 Ia(new TextDecoder("utf-16le").decode(t.slice(2)));if(254==t[0]&&255==t[1])return Ia(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 ki(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]=ki(t[e]));return i}function ci(t,i){for(var e="";e.length3&&-1==bse.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 Pt(t,i,e){if(t.FullPaths){var n;if("string"==typeof e)return n=Vt?Ta(e):function Lae(t){for(var i=[],e=0,n=t.length+250,r=tc(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=tc(65535),n=65530)}return i.push(r.slice(0,e)),Cn(i)}(e),dt.utils.cfb_add(t,i,n);dt.utils.cfb_add(t,i,e)}else t.file(i,e)}function xw(){return dt.utils.cfb_new()}var fn='\r\n',yw=j0({""":'"',"'":"'",">":">","<":"<","&":"&"}),ww=/[&<>'"]/g,Sse=/[\u0000-\u0008\u000b-\u001f\uFFFE-\uFFFF]/g;function Lt(t){return(t+"").replace(ww,function(e){return yw[e]}).replace(Sse,function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"})}function a4(t){return Lt(t).replace(/ /g,"_x0020_")}var s4=/[\u0000-\u001f]/g;function X0(t){return(t+"").replace(ww,function(e){return yw[e]}).replace(/\n/g,"
").replace(s4,function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"})}function Cw(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 l4(t){var e,n,s,i=tc(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 d4(t){return Ta(t,"binary").toString("utf8")}var Q0="foo bar baz\xe2\x98\x83\xf0\x9f\x8d\xa3",Di=Vt&&(d4(Q0)==Cw(Q0)&&d4||l4(Q0)==Cw(Q0)&&l4)||Cw,Ia=Vt?function(t){return Ta(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("")},f4=/(^\s|\s$|\n)/;function Zn(t,i){return"<"+t+(i.match(f4)?' xml:space="preserve"':"")+">"+i+""}function Rf(t){return ji(t).map(function(i){return" "+i+'="'+t[i]+'"'}).join("")}function Me(t,i,e){return"<"+t+(null!=e?Rf(e):"")+(null!=i?(i.match(f4)?' xml:space="preserve"':"")+">"+i+""}function kw(t,i){try{return t.toISOString().replace(/\.\d*/,"")}catch(e){if(i)throw e}return""}var Ln={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"},hl=["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"],co={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"},m4=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:Ta(i)})):m4(t)}:m4,g4=function(t,i,e){for(var n=[],r=i;r0?_u(t,i+4,i+4+e-1):""},Sw=x4,y4=function(t,i){var e=$n(t,i);return e>0?_u(t,i+4,i+4+e-1):""},Dw=y4,w4=function(t,i){var e=2*$n(t,i);return e>0?_u(t,i+4,i+4+e-1):""},Ew=w4,C4=function(i,e){var n=$n(i,e);return n>0?K0(i,e+4,e+4+n):""},Tw=C4,k4=function(t,i){var e=$n(t,i);return e>0?_u(t,i+4,i+4+e):""},Mw=k4,S4=function(t,i){return function Fse(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)},Z0=S4,Aw=function(i){return Array.isArray(i)||typeof Uint8Array<"u"&&i instanceof Uint8Array};Vt&&(Sw=function(i,e){if(!Buffer.isBuffer(i))return x4(i,e);var n=i.readUInt32LE(e);return n>0?i.toString("utf8",e+4,e+4+n-1):""},Dw=function(i,e){if(!Buffer.isBuffer(i))return y4(i,e);var n=i.readUInt32LE(e);return n>0?i.toString("utf8",e+4,e+4+n-1):""},Ew=function(i,e){if(!Buffer.isBuffer(i)||!Sf)return w4(i,e);var n=2*i.readUInt32LE(e);return i.toString("utf16le",e+4,e+4+n-1)},Tw=function(i,e){if(!Buffer.isBuffer(i)||!Sf)return C4(i,e);var n=i.readUInt32LE(e);return i.toString("utf16le",e+4,e+4+n)},Mw=function(i,e){if(!Buffer.isBuffer(i))return k4(i,e);var n=i.readUInt32LE(e);return i.toString("utf8",e+4,e+4+n)},Z0=function(i,e){return Buffer.isBuffer(i)?i.readDoubleLE(e):S4(i,e)},Aw=function(i){return Buffer.isBuffer(i)||Array.isArray(i)||typeof Uint8Array<"u"&&i instanceof Uint8Array}),typeof Ft<"u"&&function D4(){K0=function(t,i,e){return Ft.utils.decode(1200,t.slice(i,e)).replace(sr,"")},_u=function(t,i,e){return Ft.utils.decode(65001,t.slice(i,e))},Sw=function(t,i){var e=$n(t,i);return e>0?Ft.utils.decode(ll,t.slice(i+4,i+4+e-1)):""},Dw=function(t,i){var e=$n(t,i);return e>0?Ft.utils.decode(Pn,t.slice(i+4,i+4+e-1)):""},Ew=function(t,i){var e=2*$n(t,i);return e>0?Ft.utils.decode(1200,t.slice(i+4,i+4+e-1)):""},Tw=function(t,i){var e=$n(t,i);return e>0?Ft.utils.decode(1200,t.slice(i+4,i+4+e)):""},Mw=function(t,i){var e=$n(t,i);return e>0?Ft.utils.decode(65001,t.slice(i+4,i+4+e)):""}}();var bu=function(t,i){return t[i]},vs=function(t,i){return 256*t[i+1]+t[i]},Ose=function(t,i){var e=256*t[i+1]+t[i];return e<32768?e:-1*(65535-e+1)},$n=function(t,i){return t[i+3]*(1<<24)+(t[i+2]<<16)+(t[i+1]<<8)+t[i]},fl=function(t,i){return t[i+3]<<24|t[i+2]<<16|t[i+1]<<8|t[i]},Pse=function(t,i){return t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3]};function Of(t,i){var n,r,a,s,c,l,e="",o=[];switch(i){case"dbcs":if(l=this.l,Vt&&Buffer.isBuffer(this)&&Sf)e=this.slice(this.l,this.l+2*t).toString("utf16le");else for(c=0;c0?fl:Pse)(this,this.l),this.l+=4,n);case 8:case-8:if("f"===i)return r=8==t?Z0(this,this.l):Z0([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=b4(this,this.l,t)}}return this.l+=t,e}var Lse=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},Nse=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},Bse=function(t,i,e){t[e]=255&i,t[e+1]=i>>>8&255};function Vse(t,i,e){var n=0,r=0;if("dbcs"===e){for(r=0;r!=i.length;++r)Bse(this,i.charCodeAt(r),this.l+2*r);n=2*i.length}else if("sbcs"===e||"cpstr"==e)if(typeof Ft<"u"&&874==ll){for(r=0;r!=i.length;++r){var o=Ft.utils.encode(ll,i.charAt(r));this[this.l+r]=o[0]}n=i.length}else if(typeof Ft<"u"&&"cpstr"==e){if((o=Ft.utils.encode(Pn,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,Lse(this,i,this.l);break;case 8:if(n=8,"f"===e){!function Rse(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,Nse(this,i,this.l)}}return this.l+=n,this}function E4(t,i){var e=b4(this,this.l,t.length>>1);if(e!==t)throw new Error(i+"Expected "+t+" saw "+e);this.l+=t.length>>1}function Nn(t,i){t.l=i,t.read_shift=Of,t.chk=E4,t.write_shift=Vse}function lr(t,i){t.l+=i}function re(t){var i=tc(t);return Nn(i,0),i}function $r(){var t=[],i=Vt?256:2048,e=function(l){var d=re(l);return Nn(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&&Aw(e)&&t.push(e)}}function Pf(t,i,e){var n=ki(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 T4(t,i,e){var n=ki(t);return n.s=Pf(n.s,i.s,e),n.e=Pf(n.e,i.s,e),n}function Lf(t,i){if(t.cRel&&t.c<0)for(t=ki(t);t.c<0;)t.c+=i>8?16384:256;if(t.rRel&&t.r<0)for(t=ki(t);t.r<0;)t.r+=i>8?1048576:i>5?65536:16384;var e=$t(t);return!t.cRel&&null!=t.cRel&&(e=function zse(t){return t.replace(/^([A-Z])/,"$$$1")}(e)),!t.rRel&&null!=t.rRel&&(e=function Hse(t){return t.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}(e)),e}function Iw(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?Lf(t.s,i.biff)+":"+Lf(t.e,i.biff):(t.s.rRel?"":"$")+ei(t.s.r)+":"+(t.e.rRel?"":"$")+ei(t.e.r):(t.s.cRel?"":"$")+Ht(t.s.c)+":"+(t.e.cRel?"":"$")+Ht(t.e.c)}function Fw(t){return parseInt(function Use(t){return t.replace(/\$(\d+)$/,"$1")}(t),10)-1}function ei(t){return""+(t+1)}function Rw(t){for(var i=function $se(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 Ci(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 $t(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 Bn(t){var i=t.indexOf(":");return-1==i?{s:Ci(t),e:Ci(t)}:{s:Ci(t.slice(0,i)),e:Ci(t.slice(i+1))}}function At(t,i){return typeof i>"u"||"number"==typeof i?At(t.s,t.e):("string"!=typeof t&&(t=$t(t)),"string"!=typeof i&&(i=$t(i)),t==i?t:t+":"+i)}function Nf(t){var i=Bn(t);return"$"+Ht(i.s.c)+"$"+ei(i.s.r)+":$"+Ht(i.e.c)+"$"+ei(i.e.r)}function Bf(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 ti(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 Fa(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?ys[t.v]||t.v:function M4(t,i){var e="d"==t.t&&i instanceof Date;if(null!=t.z)try{return t.w=Ur(t.z,e?kn(i):i)}catch{}try{return t.w=Ur((t.XF||{}).numFmtId||(e?14:0),e?kn(i):i)}catch{return""+i}}(t,null==i?t.v:i))}function oc(t,i){var e=i&&i.sheet?i.sheet:"Sheet1",n={};return n[e]=t,{SheetNames:[e],Sheets:n}}function A4(t,i,e){var n=e||{},r=t?null!=t["!data"]:n.dense;null!=hn&&null==r&&(r=hn);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?Ci(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=ti(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]},b=s+g;if(l.s.r>f&&(l.s.r=f),l.s.c>b&&(l.s.c=b),l.e.r0&&i.write_shift(0,t,"dbcs"),e?i.slice(0,i.l):i}function Gse(t){return{ich:t.read_shift(2),ifnt:t.read_shift(2)}}function Ow(t,i){var e=t.l,n=t.read_shift(1),r=dr(t),o=[],a={t:r,h:r};if(1&n){for(var s=t.read_shift(4),c=0;c!=s;++c)o.push(Gse(t));a.r=o}else a.r=[{ich:0,ifnt:0}];return t.l=e+i,a}var Qse=Ow;function Io(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 ml(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 pl(t){var i=t.read_shift(2);return i+=t.read_shift(1)<<16,t.l++,{c:-1,iStyleRef:i}}function gl(t,i){return null==i&&(i=re(4)),i.write_shift(3,t.iStyleRef||t.s),i.write_shift(1,0),i}var Kse=dr,I4=Vn;function Pw(t){var i=t.read_shift(4);return 0===i||4294967295===i?"":t.read_shift(i,"dbcs")}function Vf(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 Zse=dr,Lw=Pw,Nw=Vf;function Bw(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?Z0([0,0,0,0,252&i[0],i[1],i[2],i[3]],0):fl(i,0)>>2;return e?r/100:r}function F4(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 R4(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 _l=R4,xu=function Jse(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 ur(t){if(t.length-t.l<8)throw"XLS Xnum Buffer underflow";return t.read_shift(8,"f")}function bl(t,i){return(i||re(8)).write_shift(8,t,"f")}function J0(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 Hw={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:{}},Uw={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 uce(t){return t.map(function(i){return[i>>16&255,i>>8&255,255&i]})}var vl=ki(uce([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])),ys={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},zw={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},$w=["_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"],jw={"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"},n_={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 B4(t,i,e){var o,n=function hse(t){for(var i=[],e=ji(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}(jw),r=[];e||(r[r.length]=fn,r[r.length]=Me("Types",null,{xmlns:Ln.CT,"xmlns:xsd":Ln.xsd,"xmlns:xsi":Ln.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 Me("Default",null,{Extension:l[0],ContentType:l[1]})})));var a=function(l){t[l]&&t[l].length>0&&(r[r.length]=Me("Override",null,{PartName:("/"==(o=t[l][0])[0]?"":"/")+o,ContentType:n_[l][i.bookType]||n_[l].xlsx}))},s=function(l){(t[l]||[]).forEach(function(d){r[r.length]=Me("Override",null,{PartName:("/"==d[0]?"":"/")+d,ContentType:n_[l][i.bookType]||n_[l].xlsx})})},c=function(l){(t[l]||[]).forEach(function(d){r[r.length]=Me("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 Nt={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 Hf(t){var i=t.lastIndexOf("/");return t.slice(0,i+1)+"_rels/"+t.slice(i+1)+".rels"}function yu(t){var i=[fn,Me("Relationships",null,{xmlns:Ln.RELS})];return ji(t["!id"]).forEach(function(e){i[i.length]=Me("Relationship",null,t["!id"][e])}),i.length>2&&(i[i.length]="",i[1]=i[1].replace("/>",">")),i.join("")}function Ei(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:[Nt.HLINK,Nt.XPATH,Nt.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 V4(t,i,e){return[' \n',' \n'," \n"].join("")}function _ce(t,i){return[' \n',' \n'," \n"].join("")}function H4(t,i){return'SheetJS '+Cf.version+""}var Fo=[["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 Gw(t,i,e,n,r){null!=r[t]||null==i||""===i||(r[t]=i,i=Lt(i),n[n.length]=e?Me(t,i,e):Zn(t,i))}function z4(t,i){var e=i||{},n=[fn,Me("cp:coreProperties",null,{"xmlns:cp":Ln.CORE_PROPS,"xmlns:dc":Ln.dc,"xmlns:dcterms":Ln.dcterms,"xmlns:dcmitype":Ln.dcmitype,"xmlns:xsi":Ln.xsi})],r={};if(!t&&!e.Props)return n.join("");t&&(null!=t.CreatedDate&&Gw("dcterms:created","string"==typeof t.CreatedDate?t.CreatedDate:kw(t.CreatedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},n,r),null!=t.ModifiedDate&&Gw("dcterms:modified","string"==typeof t.ModifiedDate?t.ModifiedDate:kw(t.ModifiedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},n,r));for(var o=0;o!=Fo.length;++o){var a=Fo[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&&Gw(a[0],s,null,n,r)}return n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}var xl=[["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"]],$4=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function W4(t){var i=[],e=Me;return t||(t={}),t.Application="SheetJS",i[i.length]=fn,i[i.length]=Me("Properties",null,{xmlns:Ln.EXT_PROPS,"xmlns:vt":Ln.vt}),xl.forEach(function(n){if(void 0!==t[n[1]]){var r;switch(n[2]){case"string":r=Lt(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""+Lt(n)+""}).join(""),{size:t.Worksheets,baseType:"lpstr"})),i.length>2&&(i[i.length]="",i[1]=i[1].replace("/>",">")),i.join("")}function G4(t){var i=[fn,Me("Properties",null,{xmlns:Ln.CUST_PROPS,"xmlns:vt":Ln.vt})];if(!t)return i.join("");var e=1;return ji(t).forEach(function(r){++e,i[i.length]=Me("property",function Ise(t,i){switch(typeof t){case"string":var e=Me("vt:lpwstr",Lt(t));return i&&(e=e.replace(/"/g,"_x0022_")),e;case"number":return Me((0|t)==t?"vt:i4":"vt:r8",Lt(String(t)));case"boolean":return Me("vt:bool",t?"true":"false")}if(t instanceof Date)return Me("vt:filetime",kw(t));throw new Error("Unable to serialize "+t)}(t[r],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e,name:Lt(r)})}),i.length>2&&(i[i.length]="",i[1]=i[1].replace("/>",">")),i.join("")}var qw={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 Z4(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 Dce(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 Cn([e,n])}var eL=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function Rce(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 tL(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||$4.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=Z4(m.t,h)}else{var p=Rce(h);-1==p&&(p=31,h=String(h)),c=Z4(p,h)}o.push(c),(l=re(8)).write_shift(4,i?f:2+s),r.push(l),a+=8+c.length}var b=8*(o.length+1);for(s=0;s=12?2:1),r="sbcs-cont",o=Pn;e&&e.biff>=8&&(Pn=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 Pn=o,s}function Bce(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"),Cn([n,r])}function aL(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 sL(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 a_(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 uL(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 Kw(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 ole(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 kle(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 gL(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 Yle(t){var i=re(24),e=Ci(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 Cn([i,jce(t[1])])}function Zle(t){var i=t[1].Tooltip,e=re(10+2*(i.length+1));e.write_shift(2,2048);var n=Ci(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 b=d.read_shift(2),C=c.codepage||1252;2!=u&&(d.l+=16,d.read_shift(1),0!==d[d.l]&&(C=t[d[d.l]]),d.l+=1,d.l+=2),m&&(d.l+=36);for(var y=[],M={},q=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[++E]=[],H=0,H=0;H!=y.length;++H){var B=d.slice(d.l,d.l+y[H].len);d.l+=y[H].len,Nn(B,0);var G=typeof Ft<"u"?Ft.utils.decode(C,B):Ma(B);switch(y[H].type){case"C":G.trim().length&&(l[E][H]=G.replace(/\s+$/,""));break;case"D":l[E][H]=8===G.length?new Date(+G.slice(0,4),+G.slice(4,6)-1,+G.slice(6,8)):G;break;case"F":l[E][H]=parseFloat(G.trim());break;case"+":case"I":l[E][H]=m?2147483648^B.read_shift(-4,"i"):B.read_shift(4,"i");break;case"L":switch(G.trim().toUpperCase()){case"Y":case"T":l[E][H]=!0;break;case"N":case"F":l[E][H]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+G+"|")}break;case"M":if(!h)throw new Error("DBF Unexpected MEMO for type "+u.toString(16));l[E][H]="##MEMO##"+(m?parseInt(G.trim(),10):B.read_shift(4));break;case"N":(G=G.replace(/\u0000/g,"").trim())&&"."!=G&&(l[E][H]=+G||0);break;case"@":l[E][H]=new Date(B.read_shift(-8,"f")-621356832e5);break;case"T":l[E][H]=new Date(864e5*(B.read_shift(4)-2440588)+B.read_shift(4));break;case"Y":l[E][H]=B.read_shift(4,"i")/1e4+B.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":l[E][H]=-B.read_shift(-8,"f");break;case"B":if(f&&8==y[H].len){l[E][H]=B.read_shift(8,"f");break}case"G":case"P":B.l+=y[H].len;break;case"0":if("_NullFlags"===y[H].name)break;default:throw new Error("DBF Unsupported data type "+y[H].type)}}else d.l+=b;if(2!=u&&d.l=0&&Eo(+l.codepage),"string"==l.type)throw new Error("Cannot write DBF to JS string");var u=$r(),h=w_(s,{header:1,raw:!0,cellDates:!0}),f=h[0],m=h.slice(1),g=s["!cols"]||[],p=0,b=0,C=0,y=1;for(p=0;p250&&(G=250),"C"==(B=((g[p]||{}).DBF||{}).type)&&g[p].DBF.len>G&&(G=g[p].DBF.len),"B"==H&&"N"==B&&(H="N",E[p]=g[p].DBF.dec,G=g[p].DBF.len),N[p]="C"==H||"N"==B?G:o[H]||0,y+=N[p],q[p]=H}else q[p]="?"}var j=u.next(32);for(j.write_shift(4,318902576),j.write_shift(4,m.length),j.write_shift(2,296+32*C),j.write_shift(2,y),p=0;p<4;++p)j.write_shift(4,0);var me=+i[Pn]||3;for(j.write_shift(4,0|me<<8),t[me]!=+l.codepage&&(l.codepage&&console.error("DBF Unsupported codepage "+Pn+", using 1252"),Pn=1252),p=0,b=0;pN[b]&&(he=he.slice(0,N[b])),C=0;C":190,"?":191,"{":223},i=new RegExp("\x1bN("+ji(t).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),e=function(u,h){var f=t[h];return"number"==typeof f?fw(f):f},n=function(u,h,f){var m=h.charCodeAt(0)-32<<4|f.charCodeAt(0)-48;return 59==m?u:fw(m)};function o(u,h){var G,f=u.split(/[\n\r]+/),m=-1,g=-1,p=0,b=0,C=[],y=[],M=null,q={},N=[],E=[],H=[],B=0,Z={Workbook:{WBProps:{},Names:[]}};for(+h.codepage>=0&&Eo(+h.codepage);p!==f.length;++p){B=0;var de,j=f[p].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(i,e),me=j.replace(/;;/g,"\0").split(";").map(function(ae){return ae.replace(/\u0000/g,";")});if(j.length>0)switch(me[0]){case"ID":case"E":case"B":case"W":break;case"O":for(b=1;b=1&&ne<=4&&(Z.Workbook.WBProps.date1904=!0)}break;case"P":"P"===me[1].charAt(0)&&y.push(j.slice(3).replace(/;;/g,";"));break;case"NN":var Y={Sheet:0};for(b=1;b-1&&C[Ke][gt];if(!W||!W[1])throw new Error("SYLK shared formula cannot find base");F=VL(W[1],{r:m-Ke,c:g-gt})}F&&(C[m][g]?C[m][g].f=F:C[m][g]={t:"n",f:F});break;case"F":var U=0;for(b=1;b0?(N[m].hpt=B,N[m].hpx=Cu(B)):0===B&&(N[m].hidden=!0);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+j)}U<1&&(M=null);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+j)}}return N.length>0&&(q["!rows"]=N),E.length>0&&(q["!cols"]=E),E.forEach(function(ae){sc(ae)}),h&&h.sheetRows&&(C=C.slice(0,h.sheetRows)),[C,q,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"+f_(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(ao(u),h);case"binary":return o(u,h);case"buffer":return o(Vt&&Buffer.isBuffer(u)?u.toString("binary"):Ma(u),h);case"array":return o(ul(u),h)}throw new Error("Unrecognized type "+h.type)}(u,h),m=f[0],g=f[1],p=f[2],b=ki(h);b.date1904=(((p||{}).Workbook||{}).WBProps||{}).date1904;var C=vu(m,b);ji(g).forEach(function(M){C[M]=g[M]});var y=oc(C,h);return ji(p).forEach(function(M){y[M]=p[M]}),y.bookType="sylk",y},from_sheet:function d(u,h,f){var b,m=["ID;PSheetJS;N;E"],g=[],p=ti(u["!ref"]),C=null!=u["!data"],y="\r\n",M=(((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=Wf(f.width)),"number"==typeof f.wpx&&!f.wch&&(f.wch=Gf(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*qf(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"+(M?";V4":"")+";K47;G100 0.001");for(var q=p.s.r;q<=p.e.r;++q)if(!C||u["!data"][q]){for(var N=[],E=p.s.c;E<=p.e.c;++E)(b=C?u["!data"][q][E]:u[Ht(E)+ei(q)])&&(null!=b.v||b.f&&!b.F)&&N.push(s(b,0,q,E));g.push(N.join(y))}return m.join(y)+y+g.join(y)+y+"E"+y}}}(),DL=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],b=l[++h]||"";1&(b.match(/["]/g)||[]).length&&h=0||d.indexOf(",")>=0||d.indexOf(";")>=0?function o(d,u){var h=u||{},f="";null!=hn&&null==h.dense&&(h.dense=hn);var m={};h.dense&&(m["!data"]=[]);var g={s:{c:0,r:0},e:{c:0,r:0}};"sep="==d.slice(0,4)?13==d.charCodeAt(5)&&10==d.charCodeAt(6)?(f=d.charAt(4),d=d.slice(7)):13==d.charCodeAt(5)||10==d.charCodeAt(5)?(f=d.charAt(4),d=d.slice(6)):f=r(d.slice(0,1024)):f=h&&h.FS?h.FS:r(d.slice(0,1024));var p=0,b=0,C=0,y=0,M=0,q=f.charCodeAt(0),N=!1,E=0,H=d.charCodeAt(0),B=null!=h.dateNF?function ase(t){var i="number"==typeof t?ht[t]:t;return i=i.replace(WP,"(\\d+)"),new RegExp("^"+i+"$")}(h.dateNF):null;function G(){var Z=d.slice(y,M);"\r"==Z.slice(-1)&&(Z=Z.slice(0,-1));var j={};if('"'==Z.charAt(0)&&'"'==Z.charAt(Z.length-1)&&(Z=Z.slice(1,-1).replace(/""/g,'"')),0===Z.length?j.t="z":h.raw||0===Z.trim().length?(j.t="s",j.v=Z):61==Z.charCodeAt(0)?34==Z.charCodeAt(1)&&34==Z.charCodeAt(Z.length-1)?(j.t="s",j.v=Z.slice(2,-1).replace(/""/g,'"')):function jhe(t){return 1!=t.length}(Z)?(j.t="n",j.f=Z.slice(1)):(j.t="s",j.v=Z):"TRUE"==Z?(j.t="b",j.v=!0):"FALSE"==Z?(j.t="b",j.v=!1):isNaN(C=so(Z))?!isNaN((C=gu(Z)).getDate())||B&&Z.match(B)?(j.z=h.dateNF||ht[14],B&&Z.match(B)&&(Z=function sse(t,i,e){var n=-1,r=-1,o=-1,a=-1,s=-1,c=-1;(i.match(WP)||[]).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(B)||[]),C=Wi(Z,1)),h.cellDates?(j.t="d",j.v=C):(j.t="n",j.v=kn(C)),!1!==h.cellText&&(j.w=Ur(j.z,j.v instanceof Date?kn(j.v):j.v)),h.cellNF||delete j.z):(j.t="s",j.v=Z):(j.t="n",!1!==h.cellText&&(j.w=Z),j.v=C),"z"==j.t||(h.dense?(m["!data"][p]||(m["!data"][p]=[]),m["!data"][p][b]=j):m[$t({c:b,r:p})]=j),H=d.charCodeAt(y=M+1),g.e.c0&&G(),m["!ref"]=At(g),m}(d,u):vu(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,b=0,C=0;C<=g;++C)-1==(b=m[C].indexOf(" "))?b=m[C].length:b++,p=Math.max(p,b);for(C=0;C<=g;++C){f[C]=[];var y=0;for(t(m[C].slice(0,p).trim(),f,C,y,h),y=1;y<=(m[C].length-p)/10+1;++y)t(m[C].slice(p+10*(y-1),p+10*y).trim(),f,C,y,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 xC(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=ao(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=ao(d);break;case"binary":case"string":h=d;break;case"buffer":h=65001==u.codepage?d.toString("utf8"):u.codepage&&typeof Ft<"u"?Ft.utils.decode(u.codepage,d):Vt&&Buffer.isBuffer(d)?d.toString("binary"):Ma(d);break;case"array":h=ul(d);break;default:throw new Error("Unrecognized type "+u.type)}return 239==f[0]&&187==f[1]&&191==f[2]?h=Di(h.slice(3)):"string"!=u.type&&"buffer"!=u.type&&65001==u.codepage?h=Di(h):"binary"==u.type&&typeof Ft<"u"&&u.codepage&&(h=Ft.utils.decode(u.codepage,Ft.utils.encode(28591,h))),"socialcalc:version:"==h.slice(0,19)?EL.to_sheet("string"==u.type?h:Di(h),u):a(h,u)}return{to_workbook:function c(d,u){return oc(s(d,u),u)},to_sheet:s,from_sheet:function l(d){for(var f,u=[],h=ti(d["!ref"]),m=null!=d["!data"],g=h.s.r;g<=h.e.r;++g){for(var p=[],b=h.s.c;b<=h.e.c;++b){var C=$t({r:g,c:b});if((f=m?(d["!data"][g]||[])[b]:d[C])&&null!=f.v){for(var y=(f.w||(Fa(f),f.w)||"").slice(0,10);y.length<10;)y+=" ";p.push(y+(0===b?" ":""))}else p.push(" ")}u.push(p.join(""))}return u.join("\n")}}}(),kl=function(){function t(F,K,W){if(F){Nn(F,F.l||0);for(var U=W.Enum||ce;F.l255||Pe.s.r>999999)break;Pe.e.cni&&(Pe.s.c=ni),$e=nt.read_shift(4),Pe.s.r>$e&&(Pe.s.r=$e),$e=nt.read_shift(4),Pe.e.r<$e&&(Pe.e.r=$e);break;case 3073:$e=nt.read_shift(4),A=nt.read_shift(4),Pe.s.r>$e&&(Pe.s.r=$e),Pe.e.r<$e+A-1&&(Pe.e.r=$e+A-1);for(var pr=Ht(ni);nt.l0&&A>=0;){if(32&Mi)switch(31&Mi){case 2:li={t:"n",v:li.v+gr&65535};break;case 3:(li={t:"n",v:li.v+gr&65535}).v>32767&&(li.v-=65536);break;case 7:li={t:"s",v:ae[xt=xt+gr>>>0]};break;default:throw"Cannot apply delta for QPW cell type "+(31&Mi)}else switch(31&Mi){case 1:li={t:"z"};break;case 2:li={t:"n",v:nt.read_shift(2)};break;case 7:li={t:"s",v:ae[xt=nt.read_shift(4)-1]};break;default:throw"Cannot apply repeat for QPW cell type "+(31&Mi)}!W.sheetStubs&&"z"==li.t||(null!=U["!data"]?(U["!data"][$e]||(U["!data"][$e]=[]),U["!data"][$e][ni]=li):U[pr+ei($e)]=li),++$e,--A}}}F.l+=mi}return Gt}(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])W.Enum=ce,t(F,function(Ve,pr,li){switch(li){case 0:W.vers=Ve,Ve>=4096&&(W.qpro=!0);break;case 255:W.vers=Ve,W.works=!0;break;case 6:$e=Ve;break;case 204:Ve&&(xe=Ve);break;case 222:xe=Ve;break;case 15:case 51:(!W.qpro&&!W.works||51==li)&&Ve[1].v.charCodeAt(0)<48&&(Ve[1].v=Ve[1].v.slice(1)),(W.works||W.works2)&&(Ve[1].v=Ve[1].v.replace(/\r\n/g,"\n"));case 13:case 14:case 16:14==li&&112==(112&Ve[2])&&(15&Ve[2])>1&&(15&Ve[2])<15&&(Ve[1].z=W.dateNF||ht[14],W.cellDates&&(Ve[1].t="d",Ve[1].v=q0(Ve[1].v))),W.qpro&&Ve[3]>Re&&(U["!ref"]=At($e),Pe[ae]=U,A.push(ae),U={},W.dense&&(ni=U["!data"]=[]),$e={s:{r:0,c:0},e:{r:0,c:0}},Re=Ve[3],ae=xe||"Sheet"+(Re+1),xe="");var Mi=W.dense?(ni[Ve[0].r]||[])[Ve[0].c]:U[$t(Ve[0])];if(Mi){Mi.t=Ve[1].t,Mi.v=Ve[1].v,null!=Ve[1].z&&(Mi.z=Ve[1].z),null!=Ve[1].f&&(Mi.f=Ve[1].f);break}W.dense?(ni[Ve[0].r]||(ni[Ve[0].r]=[]),ni[Ve[0].r][Ve[0].c]=Ve[1]):U[$t(Ve[0])]=Ve[1];break;case 21509:W.works2=!0}},W);else{if(26!=F[2]&&14!=F[2])throw new Error("Unrecognized LOTUS BOF "+F[2]);W.Enum=Ke,14==F[2]&&(W.qpro=!0,F.l=0),t(F,function(Ve,pr,li){switch(li){case 204:ae=Ve;break;case 22:Ve[1].v.charCodeAt(0)<48&&(Ve[1].v=Ve[1].v.slice(1)),Ve[1].v=Ve[1].v.replace(/\x0F./g,function(Mi){return String.fromCharCode(Mi.charCodeAt(1)-32)}).replace(/\r\n/g,"\n");case 23:case 24:case 25:case 37:case 39:case 40:if(Ve[3]>Re&&(U["!ref"]=At($e),Pe[ae]=U,A.push(ae),U={},W.dense&&(ni=U["!data"]=[]),$e={s:{r:0,c:0},e:{r:0,c:0}},ae="Sheet"+((Re=Ve[3])+1)),Gt>0&&Ve[0].r>=Gt)break;W.dense?(ni[Ve[0].r]||(ni[Ve[0].r]=[]),ni[Ve[0].r][Ve[0].c]=Ve[1]):U[$t(Ve[0])]=Ve[1],$e.e.c=128?95:xe)}return U.write_shift(1,0),U}function m(F,K,W){var U=re(7);return U.write_shift(1,255),U.write_shift(2,K),U.write_shift(2,F),U.write_shift(2,W,"i"),U}function p(F,K,W){var U=re(13);return U.write_shift(1,255),U.write_shift(2,K),U.write_shift(2,F),U.write_shift(8,W,"f"),U}function C(F,K,W){var U=32768&K;return K=(U?F:0)+((K&=-32769)>=8192?K-16384:K),(U?"":"$")+(W?Ht(K):ei(K))}var y={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]},M=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];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 H(F,K,W,U){var ae=re(6+U.length);ae.write_shift(2,F),ae.write_shift(1,W),ae.write_shift(1,K),ae.write_shift(1,39);for(var xe=0;xe=128?95:Re)}return ae.write_shift(1,0),ae}function G(F,K){var W=N(F),U=F.read_shift(4),ae=F.read_shift(4),xe=F.read_shift(2);if(65535==xe)return 0===U&&3221225472===ae?(W[1].t="e",W[1].v=15):0===U&&3489660928===ae?(W[1].t="e",W[1].v=42):W[1].v=0,W;var Re=32768&xe;return xe=(32767&xe)-16446,W[1].v=(1-2*Re)*(ae*Math.pow(2,xe+32)+U*Math.pow(2,xe)),W}function Z(F,K,W,U){var ae=re(14);if(ae.write_shift(2,F),ae.write_shift(1,W),ae.write_shift(1,K),0==U)return ae.write_shift(4,0),ae.write_shift(4,0),ae.write_shift(2,65535),ae;var xe=0,Re=0,A=0;return U<0&&(xe=1,U=-U),Re=0|Math.log2(U),2147483648&(A=(U/=Math.pow(2,Re-31))>>>0)||(++Re,A=(U/=2)>>>0),U-=A,A|=2147483648,A>>>=0,U*=Math.pow(2,32),ae.write_shift(4,U>>>0),ae.write_shift(4,A),ae.write_shift(2,Re+=16383+(xe?32768:0)),ae}function ye(F,K){var W=N(F),U=F.read_shift(8,"f");return W[1].v=U,W}function ne(F,K){return 0==F[F.l+K-1]?F.read_shift(K,"cstr"):""}function Be(F,K){var W=re(5+F.length);W.write_shift(2,14e3),W.write_shift(2,K);for(var U=0;U127?95:ae}return W[W.l++]=0,W}var ce={0:{n:"BOF",f:pn},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function s(F,K,W){var U={s:{c:0,r:0},e:{c:0,r:0}};return 8==K&&W.qpro?(U.s.c=F.read_shift(1),F.l++,U.s.r=F.read_shift(2),U.e.c=F.read_shift(1),F.l++,U.e.r=F.read_shift(2),U):(U.s.c=F.read_shift(2),U.s.r=F.read_shift(2),12==K&&W.qpro&&(F.l+=2),U.e.c=F.read_shift(2),U.e.r=F.read_shift(2),12==K&&W.qpro&&(F.l+=2),65535==U.s.c&&(U.s.c=U.e.c=U.s.r=U.e.r=0),U)}},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,W){var U=l(F,0,W);return U[1].v=F.read_shift(2,"i"),U}},14:{n:"NUMBER",f:function g(F,K,W){var U=l(F,0,W);return U[1].v=F.read_shift(8,"f"),U}},15:{n:"LABEL",f:function d(F,K,W){var U=F.l+K,ae=l(F,0,W);if(ae[1].t="s",20768==W.vers){F.l++;var xe=F.read_shift(1);return ae[1].v=F.read_shift(xe,"utf8"),ae}return W.qpro&&F.l++,ae[1].v=F.read_shift(U-F.l,"cstr"),ae}},16:{n:"FORMULA",f:function b(F,K,W){var U=F.l+K,ae=l(F,0,W);if(ae[1].v=F.read_shift(8,"f"),W.qpro)F.l=U;else{var xe=F.read_shift(2);(function q(F,K){Nn(F,0);for(var W=[],U=0,ae="",xe="",Re="",Pe="";F.lW.length)return void console.error("WK1 bad formula parse 0x"+A.toString(16)+":|"+W.join("|")+"|");var Gt=W.slice(-U);W.length-=U,W.push(y[A][0]+"("+Gt.join(",")+")")}}}1==W.length?K[1].f=""+W[0]:console.error("WK1 bad formula parse |"+W.join("|")+"|")})(F.slice(F.l,F.l+xe),ae),F.l+=xe}return ae}},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,W){var U=F.l+K,ae=l(F,0,W);if(ae[1].t="s",20768==W.vers){var xe=F.read_shift(1);return ae[1].v=F.read_shift(xe,"utf8"),ae}return ae[1].v=F.read_shift(U-F.l,"cstr"),ae}},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 W=F[F.l++];W>K-1&&(W=K-1);for(var U="";U.length>1;if(1&W[1].v)switch(7&U){case 0:U=5e3*(U>>3);break;case 1:U=500*(U>>3);break;case 2:U=(U>>3)/20;break;case 3:U=(U>>3)/200;break;case 4:U=(U>>3)/2e3;break;case 5:U=(U>>3)/2e4;break;case 6:U=(U>>3)/16;break;case 7:U=(U>>3)/64}return W[1].v=U,W}},25:{n:"FORMULA19",f:function j(F,K){var W=G(F);return F.l+=K-14,W}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function se(F,K){for(var W={},U=F.l+K;F.l>6,W}},38:{n:"??"},39:{n:"NUMBER27",f:ye},40:{n:"FORMULA28",f:function de(F,K){var W=ye(F);return F.l+=K-12,W}},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,W){if(W.qpro&&!(K<21)){var U=F.read_shift(1);return F.l+=17,F.l+=1,F.l+=2,[U,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 W=K||{};if(+W.codepage>=0&&Eo(+W.codepage),"string"==W.type)throw new Error("Cannot write WK1 to JS string");var U=$r(),ae=ti(F["!ref"]),xe=null!=F["!data"],Re=[];Fe(U,0,function o(F){var K=re(2);return K.write_shift(2,F),K}(1030)),Fe(U,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}(ae));for(var Pe=Math.min(ae.e.r,8191),A=ae.s.c;A<=ae.e.c;++A)Re[A]=Ht(A);for(var xt=ae.s.r;xt<=Pe;++xt){var ni=ei(xt);for(A=ae.s.c;A<=ae.e.c;++A){var $e=xe?(F["!data"][xt]||[])[A]:F[Re[A]+ni];$e&&"z"!=$e.t&&("n"==$e.t?(0|$e.v)==$e.v&&$e.v>=-32768&&$e.v<=32767?Fe(U,13,m(xt,A,$e.v)):Fe(U,14,p(xt,A,$e.v)):Fe(U,15,u(xt,A,Fa($e).slice(0,239))))}}return Fe(U,1),U.end()},book_to_wk3:function r(F,K){var W=K||{};if(+W.codepage>=0&&Eo(+W.codepage),"string"==W.type)throw new Error("Cannot write WK3 to JS string");var U=$r();Fe(U,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 W=0,U=0,ae=0,xe=0;xe8191&&(W=8191),K.write_shift(2,W),K.write_shift(1,ae),K.write_shift(1,U),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 ae=0,xe=0;ae=0;--o)i=((16384&i?1:0)|i<<1&32767)^e[o];return 52811^i}function jf(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 fr=6;function Wf(t){return Math.floor((t+Math.round(128/fr)/256)*fr)}function Gf(t){return Math.floor((t-5)/fr*100+.5)/100}function d_(t){return Math.round((t*fr+5)/fr*256)/256}function sc(t){t.width?(t.wpx=Wf(t.width),t.wch=Gf(t.wpx),t.MDW=fr):t.wpx?(t.wch=Gf(t.wpx),t.width=d_(t.wch),t.MDW=fr):"number"==typeof t.wch&&(t.width=d_(t.wch),t.wpx=Wf(t.width),t.MDW=fr),t.customWidth&&delete t.customWidth}var RL=96;function qf(t){return 96*t/RL}function Cu(t){return t*RL/96}function wue(t,i,e){e||(e=re(6+4*i.length)),e.write_shift(2,t),Vn(i,e);var n=e.length>e.l?e.slice(0,e.l):e;return null==e.l&&(e.l=e.length),n}var nC,Sue=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],Due=lr;function OL(t,i){i||(i=re(84)),nC||(nC=j0(Sue));var e=nC[t.patternType];null==e&&(e=40),i.write_shift(4,e);var n=0;if(40!=e)for(J0({auto:1},i),J0({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 PL(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 Xf(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 Tue=lr;function zue(t,i){var e=$r();return fe(e,278),function Rue(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,ra(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,wue(r,i[r]))}),fe(t,616))}}(e,t.SSF),function Oue(t){fe(t,611,ra(1)),fe(t,43,function kue(t,i){i||(i=re(153)),i.write_shift(2,20*t.sz),function ice(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),J0(t.color,i);var n=0;return"major"==t.scheme&&(n=1),"minor"==t.scheme&&(n=2),i.write_shift(1,n),Vn(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 Pue(t){fe(t,603,ra(2)),fe(t,45,OL({patternType:"none"})),fe(t,45,OL({patternType:"gray125"})),fe(t,604)}(e),function Lue(t){fe(t,613,ra(1)),fe(t,46,function Mue(t,i){return i||(i=re(51)),i.write_shift(1,0),Xf(0,i),Xf(0,i),Xf(0,i),Xf(0,i),Xf(0,i),i.length>i.l?i.slice(0,i.l):i}()),fe(t,614)}(e),function Nue(t){fe(t,626,ra(1)),fe(t,47,PL({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),fe(t,627)}(e),function Bue(t,i){fe(t,617,ra(i.length)),i.forEach(function(e){fe(t,47,PL(e,0))}),fe(t,618)}(e,i.cellXfs),function Vue(t){fe(t,619,ra(1)),fe(t,48,function Aue(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),Vf(t.name||"",i),i.length>i.l?i.slice(0,i.l):i}({xfId:0,builtinId:0,name:"Normal"})),fe(t,620)}(e),function Hue(t){fe(t,505,ra(0)),fe(t,506)}(e),function Uue(t){fe(t,508,function Iue(t,i,e){var n=re(2052);return n.write_shift(4,t),Vf(i,n),Vf(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 rC(t,i){if(i&&i.themeXLSX)return i.themeXLSX;if(t&&"string"==typeof t.raw)return t.raw;var e=[fn];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 NL(t,i){var e=[21600,21600],n=["m0,0l0",e[1],e[0],e[1],e[0],"0xe"].join(","),r=[Me("xml",null,{"xmlns:v":co.v,"xmlns:o":co.o,"xmlns:x":co.x,"xmlns:mv":co.mv}).replace(/\/>/,">"),Me("o:shapelayout",Me("o:idmap",null,{"v:ext":"edit",data:t}),{"v:ext":"edit"})],o=65536*t,a=i||[];return a.length>0&&r.push(Me("v:shapetype",[Me("v:stroke",null,{joinstyle:"miter"}),Me("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 whe(t,i){var e=Ci(t[0]),n={color2:"#BEFF82",type:"gradient"};"gradient"==n.type&&(n.angle="-180");var r="gradient"==n.type?Me("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,o=Me("v:fill",r,n);return["",o,Me("v:shadow",null,{on:"t",obscured:"t"}),Me("v:path",null,{"o:connecttype":"none"}),'
','',"","",Zn("x:Anchor",[e.c+1,0,e.r+1,0,e.c+3,20,e.r+5,20].join(",")),Zn("x:AutoFill","False"),Zn("x:Row",String(e.r)),Zn("x:Column",String(e.c)),t[1].hidden?"":"","",""].join("")}(s,o))}),r.push(""),r.join("")}function khe(t){var i=[fn,Me("comments",null,{xmlns:hl[0]})],e=[];return i.push(""),t.forEach(function(n){n[1].forEach(function(r){var o=Lt(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(Lt(l.a))),l.T&&++a,o.push(null==l.t?"":Lt(l.t))}),0===a)n[1].forEach(function(l){i.push(''),i.push(Zn("t",null==l.t?"":Lt(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 Dhe(t,i,e){var n=[fn,Me("ThreadedComments",null,{xmlns:Ln.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(Me("threadedComment",Zn("text",a.t||""),c))}else delete a.ID})}),n.push(""),n.join("")}var Ihe=dr;function Ohe(t){var i=$r(),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 Fhe(t){return Vn(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:Ci(n[0]),e:Ci(n[0])};fe(i,635,function Ahe(t,i){return null==i&&(i=re(36)),i.write_shift(4,t[1].iauthor),xu(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 Yse(t,i){var e=!1;return null==i&&(e=!0,i=re(23+4*t.t.length)),i.write_shift(1,1),Vn(t.t,i),i.write_shift(4,1),function qse(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 Bhe=["xlsb","xlsm","xlam","biff8","xla"],Sl=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?"":"$")+ei(l)}return function(r,o){return i=o,r.replace(t,e)}}(),oC=/(^|[^._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,f_=function(){return function(i,e){return i.replace(oC,function(n,r,o,a,s,c){var l=Rw(a)-(o?0:e.c),d=Fw(c)-(s?0:e.r);return r+"R"+("$"==s?d+1:0==d?"":"["+d+"]")+"C"+("$"==o?l+1:0==l?"":"["+l+"]")})}}();function VL(t,i){return t.replace(oC,function(e,n,r,o,a,s){return n+("$"==r?r+o:Ht(Rw(o)+i.c))+("$"==a?a+s:ei(Fw(s)+i.r))})}function En(t){t.l+=1}function cc(t,i){var e=t.read_shift(1==i?1:2);return[16383&e,e>>14&1,e>>15&1]}function UL(t,i,e){var n=2;if(e){if(e.biff>=2&&e.biff<=5)return zL(t);12==e.biff&&(n=4)}var r=t.read_shift(n),o=t.read_shift(n),a=cc(t,2),s=cc(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 zL(t){var i=cc(t,2),e=cc(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 $L(t,i,e){if(e&&e.biff>=2&&e.biff<=5)return function Ghe(t){var i=cc(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=cc(t,2);return{r:n,c:r[0],cRel:r[1],rRel:r[2]}}function qhe(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 jL(t){var i=1&t[t.l+1];return t.l+=4,[i,1]}function WL(t){return[t.read_shift(1),t.read_shift(1)]}function wfe(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 mn(t,i){return 1===t.read_shift(i)}(t,1)?"TRUE":"FALSE",12!=i&&(t.l+=7);break;case 37:case 16:e[1]=ys[t[t.l]],t.l+=12==i?4:8;break;case 0:t.l+=8;break;case 1:e[1]=ur(t);break;case 2:e[1]=function wl(t,i,e){if(e.biff>5)return function $f(t,i,e){var n=t.read_shift(e&&2==e.biff?1:2);return 0===n?(t.l++,""):function yl(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 Cfe(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?_l:a_)(t,8));return r}function kfe(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]=wfe(t,e.biff);return a}function Qf(t,i,e){return t.l+=2,[qhe(t)]}function aC(t){return t.l+=6,[]}function GL(t){return t.l+=2,[pn(t),1&t.read_shift(2)]}var jfe=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"],qL={1:{n:"PtgExp",f:function gfe(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:lr},3:{n:"PtgAdd",f:En},4:{n:"PtgSub",f:En},5:{n:"PtgMul",f:En},6:{n:"PtgDiv",f:En},7:{n:"PtgPower",f:En},8:{n:"PtgConcat",f:En},9:{n:"PtgLt",f:En},10:{n:"PtgLe",f:En},11:{n:"PtgEq",f:En},12:{n:"PtgGe",f:En},13:{n:"PtgGt",f:En},14:{n:"PtgNe",f:En},15:{n:"PtgIsect",f:En},16:{n:"PtgUnion",f:En},17:{n:"PtgRange",f:En},18:{n:"PtgUplus",f:En},19:{n:"PtgUminus",f:En},20:{n:"PtgPercent",f:En},21:{n:"PtgParen",f:En},22:{n:"PtgMissArg",f:En},23:{n:"PtgStr",f:function yfe(t,i,e){return t.l++,zf(t,0,e)}},26:{n:"PtgSheet",f:function qfe(t,i,e){return t.l+=5,t.l+=2,t.l+=2==e.biff?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function Xfe(t,i,e){return t.l+=2==e.biff?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function _fe(t){return t.l++,ys[t.read_shift(1)]}},29:{n:"PtgBool",f:function vfe(t){return t.l++,0!==t.read_shift(1)}},30:{n:"PtgInt",f:function bfe(t){return t.l++,t.read_shift(2)}},31:{n:"PtgNum",f:function xfe(t){return t.l++,ur(t)}},32:{n:"PtgArray",f:function tfe(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 hfe(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[Dme[r],KL[r],n]}},34:{n:"PtgFuncVar",f:function ffe(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 mfe(t){return[t[t.l+1]>>7,32767&t.read_shift(2)]}(t);return[r,(0===o[0]?KL:Sme)[o[1]]]}},35:{n:"PtgName",f:function Sfe(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 lfe(t,i,e){var n=(96&t[t.l])>>5;return t.l+=1,[n,$L(t,0,e)]}},37:{n:"PtgArea",f:function Yhe(t,i,e){return[(96&t[t.l++])>>5,UL(t,0,e)]}},38:{n:"PtgMemArea",f:function Tfe(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:lr},40:{n:"PtgMemNoMem",f:lr},41:{n:"PtgMemFunc",f:function Mfe(t,i,e){return[t.read_shift(1)>>>5&3,t.read_shift(e&&2==e.biff?1:2)]}},42:{n:"PtgRefErr",f:function Afe(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 Zhe(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 dfe(t,i,e){var n=(96&t[t.l])>>5;t.l+=1;var r=function Xhe(t,i,e){var n=e&&e.biff?e.biff:8;if(n>=2&&n<=5)return function Qhe(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 efe(t,i,e){var n=(96&t[t.l++])>>5,r=function Whe(t,i,e){if(e.biff<8)return zL(t);var n=t.read_shift(12==e.biff?4:2),r=t.read_shift(12==e.biff?4:2),o=cc(t,2),a=cc(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 Qfe(t){return[t.read_shift(1)>>>5&3,t.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function Yfe(t){return[t.read_shift(1)>>>5&3,t.read_shift(2)]}},57:{n:"PtgNameX",f:function Dfe(t,i,e){return 5==e.biff?function Efe(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 ufe(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,$L(t,0,e)]}},59:{n:"PtgArea3d",f:function Khe(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,UL(t,0,e)]}},60:{n:"PtgRefErr3d",f:function Ife(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 Jhe(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:{}},Zfe={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},Jfe={1:{n:"PtgElfLel",f:GL},2:{n:"PtgElfRw",f:Qf},3:{n:"PtgElfCol",f:Qf},6:{n:"PtgElfRwV",f:Qf},7:{n:"PtgElfColV",f:Qf},10:{n:"PtgElfRadical",f:Qf},11:{n:"PtgElfRadicalS",f:aC},13:{n:"PtgElfColS",f:aC},15:{n:"PtgElfColSV",f:aC},16:{n:"PtgElfRadicalLel",f:GL},25:{n:"PtgList",f:function Wfe(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:jfe[e>>2&31],idx:n,c:r,C:o}}},29:{n:"PtgSxName",f:function Gfe(t){return t.l+=2,[t.read_shift(4)]}},255:{}},eme={0:{n:"PtgAttrNoop",f:function Kfe(t){return t.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function afe(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 rfe(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 ife(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 nfe(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 pfe(t,i,e){t.l+=e&&2==e.biff?3:4}},32:{n:"PtgAttrBaxcel",f:jL},33:{n:"PtgAttrBaxcel",f:jL},64:{n:"PtgAttrSpace",f:function sfe(t){return t.read_shift(2),WL(t)}},65:{n:"PtgAttrSpaceSemi",f:function cfe(t){return t.read_shift(2),WL(t)}},128:{n:"PtgAttrIfError",f:function ofe(t){var i=255&t[t.l+1]?1:0;return t.l+=2,[i,t.read_shift(2)]}},255:{}};function Yf(t,i,e,n){if(n.biff<8)return lr(t,i);for(var r=t.l+i,o=[],a=0;a!==e.length;++a)switch(e[a][0]){case"PtgArray":e[a][1]=kfe(t,0,n),o.push(e[a][1]);break;case"PtgMemArea":e[a][2]=Cfe(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(lr(t,i)),o}function tme(t){for(var i=[],e=0;e=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function nme(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 XL(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 QL(t,i,e){var n=XL(t,i,e);return"#REF"==n?n:Bf(n,e)}function mr(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="",b=0,C=t[0].length;b=0){switch(t[0][g][1][0]){case 0:p=ci(" ",t[0][g][1][1]);break;case 1:p=ci("\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+ime[y[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(nme(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=Pf(y[1][1],a,r),s.push(Lf(d,o));break;case"PtgRefN":d=e?Pf(y[1][1],e,r):y[1][1],s.push(Lf(d,o));break;case"PtgRef3d":u=y[1][1],d=Pf(y[1][2],a,r),m=QL(n,u,r),s.push(m+"!"+Lf(d,o));break;case"PtgFunc":case"PtgFuncVar":var q=y[1][0],N=y[1][1];q||(q=0);var E=0==(q&=127)?[]:s.slice(-q);s.length-=q,"User"===N&&(N=E.shift()),s.push(N+"("+E.join(",")+")");break;case"PtgBool":s.push(y[1]?"TRUE":"FALSE");break;case"PtgInt":case"PtgErr":s.push(y[1]);break;case"PtgNum":s.push(String(y[1]));break;case"PtgStr":s.push('"'+y[1].replace(/"/g,'""')+'"');break;case"PtgAreaN":f=T4(y[1][1],e?{s:e}:a,r),s.push(Iw(f,r));break;case"PtgArea":f=T4(y[1][1],a,r),s.push(Iw(f,r));break;case"PtgArea3d":f=y[1][2],m=QL(n,u=y[1][1],r),s.push(m+"!"+Iw(f,r));break;case"PtgAttrSum":s.push("SUM("+s.pop()+")");break;case"PtgName":var H=(n.names||[])[(h=y[1][2])-1]||(n[0]||[])[h],B=H?H.Name:"SH33TJSNAME"+String(h);B&&"_xlfn."==B.slice(0,6)&&!r.xlfn&&(B=B.slice(6)),s.push(B);break;case"PtgNameX":var Z,G=y[1][1];if(h=y[1][2],!(r.biff<=5)){var j="";if(14849==((n[G]||[])[0]||[])[0]||(1025==((n[G]||[])[0]||[])[0]?n[G][h]&&n[G][h].itab>0&&(j=n.SheetNames[n[G][h].itab-1]+"!"):j=n.SheetNames[h-1]+"!"),n[G]&&n[G][h])j+=n[G][h].Name;else if(n[0]&&n[0][h])j+=n[0][h].Name;else{var me=(XL(n,G,r)||"").split(";;");me[h-1]?j=me[h-1]:j+="SH33TJSERRX"}s.push(j);break}G<0&&(G=-G),n[G]&&(Z=n[G][h]),Z||(Z={Name:"SH33TJSERRY"}),s.push(Z.Name);break;case"PtgParen":var ye="(",de=")";if(g>=0){switch(p="",t[0][g][1][0]){case 2:ye=ci(" ",t[0][g][1][1])+ye;break;case 3:ye=ci("\r",t[0][g][1][1])+ye;break;case 4:de=ci(" ",t[0][g][1][1])+de;break;case 5:de=ci("\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(ye+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[$t(d={c:y[1][1],r:y[1][0]})]){var Y=n.sharedf[$t(d)];s.push(mr(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(mr(l[1],0,ne,n,r)),he=!0;break}he||s.push(y[1])}break;case"PtgArray":s.push("{"+tme(y[1])+"}");break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":g=b;break;case"PtgMissArg":s.push("");break;case"PtgList":s.push("Table"+y[1].idx+"[#"+y[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(y))}if(3!=r.biff&&g>=0&&-1==["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(t[0][b][0])){var Be=!0;switch((y=t[0][g])[1][0]){case 4:Be=!1;case 0:p=ci(" ",y[1][1]);break;case 5:Be=!1;case 1:p=ci("\r",y[1][1]);break;default:if(p="",r.WTF)throw new Error("Unexpected PtgAttrSpaceType "+y[1][0])}s.push((Be?p:"")+s.pop()+(Be?"":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 m_(t,i,e){var n=t.read_shift(4),r=function Kf(t,i,e){for(var r,o,n=t.l+i,a=[];n!=t.l;)i=n-t.l,r=qL[o=t[t.l]]||qL[Zfe[o]],(24===o||25===o)&&(r=(24===o?Jfe:eme)[t[t.l+1]]),r&&r.f?a.push([r.n,r.f(t,i,e)]):lr(t,i);return a}(t,n,e),o=t.read_shift(4);return[r,o>0?Yf(t,o,r,e):null]}var ume=m_,p_=m_,hme=m_,fme=m_;function YL(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 kme=function Cme(t,i){if("number"==typeof t)return YL(t);if("boolean"==typeof t)return function pme(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 mme(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}(+zw[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 _me(t){var i=Ci(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 xme(t){var i=t.split(":"),e=i[0],n=re(23);n.write_shift(4,15);var r=Ci(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=Ci(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 wme(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=Bn(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 bme(t,i){var e=t.lastIndexOf("!"),n=t.slice(0,e),r=Ci(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 yme(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=Ci(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=Ci(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 vme(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 gme(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),Cn([i,e,n])}(t);if(/^[+-]\d+$/.test(t))return YL(parseInt(t,10));throw"Formula |"+t+"| not supported for XLSB"},Sme={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"},KL={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"},Dme={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 Eme(t){return("of:="+t.replace(oC,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")}function JL(t){return t.replace(/!/,".")}var Jf=typeof Map<"u";function lC(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=d_(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 Dl(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 lc(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]){rc(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 Tme(t,i,e){if(t&&t["!ref"]){var n=ti(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=ys[t.v];break;case"d":n&&n.cellDates?r=Wi(t.v,-1).toISOString():((t=ki(t)).t="n",r=""+(t.v=kn(Wi(t.v)))),typeof t.z>"u"&&(t.z=ht[14]);break;default:r=t.v}var s="z"==t.t||null==t.v?"":Zn("v",Lt(r)),c={r:i},l=lc(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=Zn("v",""+lC(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=Me("f",Lt(t.f),d)+(null!=t.v?s:"")}return t.l&&(t.l.display=Lt(r),e["!links"].push([i,t.l])),t.D&&(c.cm=1),Me("c",s,c)}function ope(t,i,e,n){var a,r=[fn,Me("worksheet",null,{xmlns:hl[0],"xmlns:r":Ln.r})],s="",c=e.Sheets[e.SheetNames[t]];null==c&&(c={});var l=c["!ref"]||"A1",d=ti(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=At(d)}n||(n={}),c["!comments"]=[];var u=[];(function zme(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=Ia(Lt(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||"")+Me("outlinePr",null,l)}!o&&!s||(r[r.length]=Me("sheetPr",s,a))})(c,e,t,i,r),r[r.length]=Me("dimension",null,{ref:l}),r[r.length]=function tpe(t,i,e,n){var r={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(r.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),Me("sheetViews",Me("sheetView",null,r),{})}(0,0,0,e),i.sheetFormat&&(r[r.length]=Me("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 Yme(t,i){for(var n,e=[""],r=0;r!=i.length;++r)(n=i[r])&&(e[e.length]=Me("col",null,g_(r,n)));return e[e.length]="",e.join("")}(0,c["!cols"])),r[a=r.length]="",c["!links"]=[],null!=c["!ref"]&&(s=function rpe(t,i,e,n){var c,p,r=[],o=[],a=ti(t["!ref"]),s="",l="",d=[],u=0,h=0,f=t["!rows"],m=null!=t["!data"],g={r:l},b=-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=ei(u),h=a.s.c;h<=a.e.c;++h){c=d[h]+l;var C=m?(t["!data"][u]||[])[h]:t[c];void 0!==C&&null!=(s=ipe(C,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),b=-1,p.hpx?b=qf(p.hpx):p.hpt&&(b=p.hpt),b>-1&&(g.ht=b,g.customHeight=1),p.level&&(g.outlineLevel=p.level)),r[r.length]=Me("row",o.join(""),g))}if(f)for(;u-1&&(g.ht=b,g.customHeight=1),p.level&&(g.outlineLevel=p.level),r[r.length]=Me("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 Wme(t){var i={sheet:1};return $me.forEach(function(e){null!=t[e]&&t[e]&&(i[e]="1")}),jme.forEach(function(e){null!=t[e]&&!t[e]&&(i[e]="0")}),t.password&&(i.password=eC(t.password).toString(16).toUpperCase()),Me("sheetProtection",null,i)}(c["!protect"])),null!=c["!autofilter"]&&(r[r.length]=function Zme(t,i,e,n){var r="string"==typeof t.ref?t.ref:At(t.ref);e.Workbook||(e.Workbook={Sheets:[]}),e.Workbook.Names||(e.Workbook.Names=[]);var o=e.Workbook.Names,a=Bn(r);a.s.r==a.e.r&&(a.e.r=Bn(i["!ref"]).e.r,r=At(a));for(var s=0;s0&&(r[r.length]=function Hme(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=Ei(n,-1,Lt(g[1].Target).replace(/#.*$/,""),Nt.HLINK),f["r:id"]="rId"+m),(h=g[1].Target.indexOf("#"))>-1&&(f.location=Lt(g[1].Target.slice(h+1))),g[1].Tooltip&&(f.tooltip=Lt(g[1].Tooltip)),f.display=g[1].display,r[r.length]=Me("hyperlink",null,f))}),r[r.length]=""),delete c["!links"],null!=c["!margins"]&&(r[r.length]=function Xme(t){return Dl(t),Me("pageMargins",null,t)}(c["!margins"])),(!i||i.ignoreEC||null==i.ignoreEC)&&(r[r.length]=Zn("ignoredErrors",Me("ignoredError",null,{numberStoredAsText:1,sqref:l}))),u.length>0&&(m=Ei(n,-1,"../drawings/drawing"+(t+1)+".xml",Nt.DRAW),r[r.length]=Me("drawing",null,{"r:id":"rId"+m}),c["!drawing"]=u),c["!comments"].length>0&&(m=Ei(n,-1,"../drawings/vmlDrawing"+(t+1)+".vml",Nt.VML),r[r.length]=Me("legacyDrawing",null,{"r:id":"rId"+m}),c["!legacy"]=m),r.length>1&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}function cpe(t,i,e,n){var r=function spe(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*qf(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 lpe=_l,dpe=xu;var Gpe=_l,qpe=xu,nN=["left","right","top","bottom","header","footer"];function dge(t,i,e,n,r,o,a){var s={r:e,c:n};if(i.c&&o["!comments"].push([$t(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=ki(i)).z=i.z||ht[14],i.v=kn(Wi(i.v)),i.t="n";break;case"n":case"e":c=""+i.v;break;default:c=i.v}switch(s.s=lc(r.cellXfs,i,r),i.l&&o["!links"].push([$t(s),i.l]),i.t){case"s":case"str":return r.bookSST?(c=lC(r.Strings,null==i.v?"":String(i.v),r.revStrings),s.t="s",s.v=c,a?fe(t,18,function Mpe(t,i,e){return null==e&&(e=re(8)),gl(i,e),e.write_shift(4,i.v),e}(0,s)):fe(t,7,function Epe(t,i,e){return null==e&&(e=re(12)),ml(i,e),e.write_shift(4,i.v),e}(0,s))):(s.t="str",a?fe(t,17,function Upe(t,i,e){var n=null==t.v?"":String(t.v);return null==e&&(e=re(8+4*n.length)),gl(i,e),Vn(n,e),e.length>e.l?e.slice(0,e.l):e}(i,s)):fe(t,6,function Vpe(t,i,e){var n=null==t.v?"":String(t.v);return null==e&&(e=re(12+4*t.v.length)),ml(i,e),Vn(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 Lpe(t,i,e){return null==e&&(e=re(8)),gl(i,e),F4(t.v,e),e}(i,s)):fe(t,2,function Ope(t,i,e){return null==e&&(e=re(12)),ml(i,e),F4(t.v,e),e}(i,s)):a?fe(t,16,function Fpe(t,i,e){return null==e&&(e=re(12)),gl(i,e),bl(t.v,e),e}(i,s)):fe(t,5,function Ipe(t,i,e){return null==e&&(e=re(16)),ml(i,e),bl(t.v,e),e}(i,s)),!0;case"b":return s.t="b",a?fe(t,15,function ype(t,i,e){return null==e&&(e=re(5)),gl(i,e),e.write_shift(1,t.v?1:0),e}(i,s)):fe(t,4,function vpe(t,i,e){return null==e&&(e=re(9)),ml(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 Spe(t,i,e){return null==e&&(e=re(8)),gl(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 Cpe(t,i,e){return null==e&&(e=re(9)),ml(i,e),e.write_shift(1,t.v),e}(i,s)),!0}return a?fe(t,12,function _pe(t,i,e){return null==e&&(e=re(4)),gl(i,e)}(0,s)):fe(t,1,function ppe(t,i,e){return null==e&&(e=re(8)),ml(i,e)}(0,s)),!0}function xge(t,i,e,n){var r=$r(),o=e.SheetNames[t],a=e.Sheets[o]||{},s=o;try{e&&e.Workbook&&(s=e.Workbook.Sheets[t].CodeName||s)}catch{}var c=ti(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 fpe(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 J0({auto:1},e),e.write_shift(-4,-1),e.write_shift(-4,-1),I4(t,e),e.slice(0,e.l)}(s,a["!outline"])),fe(r,148,dpe(c)),function bge(t,i,e){fe(t,133),fe(t,137,function rge(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 fge(t,i){!i||!i["!cols"]||(fe(t,390),i["!cols"].forEach(function(e,n){e&&fe(t,60,function ege(t,i,e){null==e&&(e=re(18));var n=g_(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 uge(t,i,e,n){var r=ti(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=ei(d),cpe(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&&dge(t,f,d,h,n,i,u)}}fe(t,146)}(r,a,0,i),function vge(t,i){i["!protect"]&&fe(t,535,function age(t,i){return null==i&&(i=re(66)),i.write_shift(2,t.password?eC(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 _ge(t,i,e,n){if(i["!autofilter"]){var r=i["!autofilter"],o="string"==typeof r.ref?r.ref:At(r.ref);e.Workbook||(e.Workbook={Sheets:[]}),e.Workbook.Names||(e.Workbook.Names=[]);var a=e.Workbook.Names,s=Bn(o);s.s.r==s.e.r&&(s.e.r=Bn(i["!ref"]).e.r,o=At(s));for(var c=0;c0){var r=Ei(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",Nt.VML);fe(t,551,Nw("rId"+r)),i["!legacy"]=r}}(r,a,t,n),fe(r,130),r.end()}var uC=[["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"]],Age=":][*?/\\".split("");function sN(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'");Age.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 Lge(t,i){return i||(i=re(127)),i.write_shift(4,t.Hidden),i.write_shift(4,t.iTabID),Nw(t.strRelID,i),Vn(t.name.slice(0,31),i),i.length>i.l?i.slice(0,i.l):i}function Yge(t,i){var e=$r();return fe(e,131),fe(e,128,function jge(t,i){i||(i=re(127));for(var e=0;4!=e;++e)i.write_shift(4,0);return Vn("SheetJS",i),Vn(Cf.version,i),Vn(Cf.version,i),Vn("7262",i),i.length>i.l?i.slice(0,i.l):i}()),fe(e,153,function Bge(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),I4(t&&t.CodeName||"ThisWorkbook",i),i.slice(0,i.l)}(t.Workbook&&t.Workbook.WBProps||null)),function Gge(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 Wge(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 $ge(t,i){fe(t,143);for(var e=0;e!=i.SheetNames.length;++e)fe(t,156,Lge({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 Qge(t,i){fe(t,353),fe(t,357),fe(t,362,function Xge(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,Vn(r),kme(t.Ref,i)];if(t.Comment)o.push(Vf(t.Comment));else{var a=re(4);a.write_shift(4,4294967295),o.push(a)}return Cn(o)}(e,i))}catch{console.error("Could not serialize defined name "+JSON.stringify(e))}})}(e,t),fe(e,132),e.end()}function uN(t){return Me("NamedRange",null,{"ss:Name":"_xlnm."==t.Name.slice(0,6)?t.Name.slice(6):t.Name,"ss:RefersTo":"="+f_(t.Ref,{r:0,c:0})})}function C0e(t,i,e,n,r,o,a){if(!t||null==t.v&&null==t.f)return"";var s={};if(t.f&&(s["ss:Formula"]="="+Lt(f_(t.f,a))),t.F&&t.F.slice(0,i.length)==i){var c=Ci(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"]=Lt(t.l.Target),t.l.Tooltip&&(s["x:HRefScreenTip"]=Lt(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=ys[t.v];break;case"d":u="DateTime",h=new Date(t.v).toISOString(),null==t.z&&(t.z=t.z||ht[14]);break;case"s":u="String",h=function Dse(t){return(t+"").replace(ww,function(e){return yw[e]}).replace(s4,function(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"})}(t.v||"")}var f=lc(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 w0e(t){return t.map(function(i){var e=function Ese(t){return t.replace(/(\r\n|[\r\n])/g," ")}(i.t||""),n=Me("ss:Data",e,{xmlns:"http://www.w3.org/TR/REC-html40"});return Me("Comment",n,{"ss:Author":i.a})}).join("")}(t.c)),Me("Cell",g,s)}function k0e(t,i){var e='"}function D0e(t,i,e){var n=[],o=e.Sheets[e.SheetNames[t]],a=o?function x0e(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 S0e(t,i,e,n){if(!t["!ref"])return"";var r=ti(t["!ref"]),o=t["!merges"]||[],a=0,s=[];t["!cols"]&&t["!cols"].forEach(function(p,b){sc(p);var C=!!p.width,y=g_(b,p),M={"ss:Index":b+1};C&&(M["ss:Width"]=Wf(y.width)),p.hidden&&(M["ss:Hidden"]="1"),s.push(Me("Column",null,M))});for(var c=null!=t["!data"],l=r.s.r;l<=r.e.r;++l){for(var d=[k0e(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 y0e(t,i,e,n){if(!t)return"";var r=[];if(t["!margins"]&&(r.push(""),t["!margins"].header&&r.push(Me("Header",null,{"x:Margin":t["!margins"].header})),t["!margins"].footer&&r.push(Me("Footer",null,{"x:Margin":t["!margins"].footer})),r.push(Me("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(Me("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(Zn("ProtectContents","True")),t["!protect"].objects&&r.push(Zn("ProtectObjects","True")),t["!protect"].scenarios&&r.push(Zn("ProtectScenarios","True")),null==t["!protect"].selectLockedCells||t["!protect"].selectLockedCells?null!=t["!protect"].selectUnlockedCells&&!t["!protect"].selectUnlockedCells&&r.push(Zn("EnableSelection","UnlockedCells")):r.push(Zn("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?"":Me("WorksheetOptions",r.join(""),{xmlns:co.x})}(o,0,t,e)),o["!autofilter"]&&n.push(''),n.join("")}function E0e(t,i){i||(i={}),t.SSF||(t.SSF=ki(ht)),t.SSF&&(pu(),Mf(t.SSF),i.revssf=W0(t.SSF),i.revssf[t.SSF[65535]]=0,i.ssf=t.SSF,i.cellXfs=[],lc(i.cellXfs,{},{revssf:{General:0}}));var e=[];e.push(function g0e(t,i){var e=[];return t.Props&&e.push(function kce(t,i){var e=[];return ji(qw).map(function(n){for(var r=0;r'+r.join("")+""}(t.Props,t.Custprops)),e.join("")}(t,i)),e.push(function _0e(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(Me("NumberFormat",null,{"ss:Format":Lt(ht[n.numFmtId])}));var a={"ss:ID":"s"+(21+r)};e.push(Me("Style",o.join(""),a))}),Me("Styles",e.join(""))}(0,i),e[3]=function v0e(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 ece(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=vl[r];l&&(i.rgb=jf(l));break;case 2:i.rgb=jf([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=dr(t),n}},44:{f:function yue(t,i){return[t.read_shift(2),dr(t)]}},45:{f:Due},46:{f:Tue},47:{f:function Eue(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 Wse(t){return t.read_shift(4,"i")}},50:{},51:{f:function che(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 kL(t,i,e){if(!e.cellStyles)return lr(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 Npe(t){return[Io(t),Ow(t),"is"]}},63:{f:function bhe(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=$t(e);var n=t.read_shift(1);return 2&n&&(i.l="1"),8&n&&(i.a="1"),i}},64:{f:function sge(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:lr,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function nge(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 hpe(t,i){var e={},n=t[t.l];return++t.l,e.above=!(64&n),e.left=!(128&n),t.l+=18,e.name=Kse(t,i-19),e}},148:{f:lpe,p:16},151:{f:function Kpe(){}},152:{},153:{f:function Nge(t,i){var e={},n=t.read_shift(4);e.defaultThemeVersion=t.read_shift(4);var r=i>8?dr(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 Pge(t,i){var e={};return e.Hidden=t.read_shift(4),e.iTabID=t.read_shift(4),e.strRelID=Lw(t,i-8),e.name=dr(t),e}},157:{},158:{},159:{T:1,f:function Ode(t){return[t.read_shift(4),t.read_shift(4)]}},160:{T:-1},161:{T:1,f:_l},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:Gpe},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 ahe(t,i){return{flags:t.read_shift(4),version:t.read_shift(4),name:dr(t)}}},336:{T:-1},337:{f:function uhe(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:Lw},357:{},358:{},359:{},360:{T:1},361:{},362:{f:function yL(t,i,e){if(e.biff<8||!(e.biff>8)&&i==t[t.l]+(3==t[t.l+1]?1:0)+1)return function wL(t,i,e){3==t[t.l+1]&&t[t.l]++;var n=zf(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(qce(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 Zpe(t,i,e){var n=t.l+i,r=R4(t),o=t.read_shift(1),a=[r];if(a[2]=o,e.cellFormula){var s=ume(t,n-t.l,e);a[1]=s}else t.l=n;return a}},427:{f:function Jpe(t,i,e){var n=t.l+i,o=[_l(t,16)];if(e.cellFormula){var a=fme(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 tge(t){var i={};return nN.forEach(function(e){i[e]=ur(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 upe(){}},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 Qpe(t,i){var e=t.l+i,n=_l(t,16),r=Pw(t),o=dr(t),a=dr(t),s=dr(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:Lw},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:Ihe},633:{T:1},634:{T:-1},635:{T:1,f:function Mhe(t){var i={};i.iauthor=t.read_shift(4);var e=_l(t,16);return i.rfx=e.s,i.ref=$t(e.s),t.l+=16,i}},636:{T:-1},637:{f:Qse},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 kge(t,i){return t.l+=10,{name:dr(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 cge(){}},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 Fe(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&&Aw(e)&&t.push(e)}}function nm(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 B0e(t,i,e,n){if(null!=i.v)switch(i.t){case"d":case"n":var r="d"==i.t?kn(Wi(i.v)):i.v;return void(r==(0|r)&&r>=0&&r<65536?Fe(t,2,function gde(t,i,e){var n=re(9);return nm(n,t,i),n.write_shift(2,e),n}(e,n,r)):Fe(t,3,function mde(t,i,e){var n=re(15);return nm(n,t,i),n.write_shift(8,e,"f"),n}(e,n,r)));case"b":case"e":return void Fe(t,5,function L0e(t,i,e,n){var r=re(9);return nm(r,t,i),oL(e,n||"b",r),r}(e,n,i.v,i.t));case"s":case"str":return void Fe(t,4,function N0e(t,i,e){var n=re(8+2*e.length);return nm(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)}Fe(n,2057,Kw(0,16,i)),Fe(n,13,Ro(1)),Fe(n,12,Ro(100)),Fe(n,15,Ar(!0)),Fe(n,17,Ar(!1)),Fe(n,16,bl(.001)),Fe(n,95,Ar(!0)),Fe(n,42,Ar(!1)),Fe(n,43,Ar(!1)),Fe(n,130,Ro(1)),Fe(n,128,function Rle(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])),Fe(n,131,Ar(!1)),Fe(n,132,Ar(!1)),l&&function G0e(t,i){if(i){var e=0;i.forEach(function(n,r){++e<=256&&n&&Fe(t,125,function rde(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}(g_(r,n),r))})}}(n,o["!cols"]),Fe(n,512,function Dle(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=[],b=f.s.c;b<=f.e.c;++b)h[b]=Ht(b);for(var C=f.s.r;C<=f.e.r;++C)for(c&&(p=o["!data"][C]||[]),u=ei(C),b=f.s.c;b<=f.e.c;++b){d=h[b]+u;var y=c?p[b]:o[d];y&&(q0e(n,y,C,b,i),l&&y.l&&o["!links"].push([d,y.l]),l&&y.c&&g.push([d,y.c]))}var M=s.CodeName||s.name||r;return l&&Fe(n,574,function ple(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&&Fe(n,229,function jle(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 Y0e(t,i){var e=i||{},n=[];t&&!t.SSF&&(t.SSF=ki(ht)),t&&t.SSF&&(pu(),Mf(t.SSF),e.revssf=W0(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,vC(e),e.cellXfs=[],lc(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=ei(u),d=o.s.c;d<=o.e.c;++d){var h=r?l[d]:i[c[d]+s];h&&B0e(t,h,u,d)}}(n,t.Sheets[t.SheetNames[r]],0,e),Fe(n,10),n.end()}(t,i)}throw new Error("invalid type "+o.bookType+" for BIFF")}function mN(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(Me("td",m,a))}}return""+o.join("")+""}var pN='SheetJS Table Export',gN="";function bN(t,i){var e=i||{},r=null!=e.footer?e.footer:gN,o=[null!=e.header?e.header:pN],a=Bn(t["!ref"]);o.push(function _N(t,i,e){return[].join("")+""}(0,0,e));for(var s=a.s.r;s<=a.e.r;++s)o.push(mN(t,a,s,e));return o.push(""+r),o.join("")}var t_e=function(){var t=["",'',"",'',"",'',"",""].join(""),i=""+t+"";return function(){return fn+i}}();function i_e(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+=""+Lt(o.replace(/""/g,'"'))+""):n+=""+Lt(o.replace(/""/g,'"'))+"",t=t.slice(a+1),a=0}var s=t.match(/# (\?+)\/(\?+)/);if(s)n+=Me("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+=Me("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+=Me("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+=""+Lt(o.slice(1).replace(/""/g,'"'))+"";break;case"/":n+=""+Lt(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+=""+Lt(o.slice(1).replace(/""/g,'"'))+"";break;case"/":n+=""+Lt(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+=""+Lt(o.replace(/""/g,'"'))+""):n+=""+Lt(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+=""+Lt(o.replace(/""/g,'"'))+""}}}}else e="text",n="";return n?Me("number:"+e+"-style",n,r):(console.error("Could not generate ODS number format for |"+t+"|"),"")}function DN(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=JL(r.Ref);return" "+Me("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 EN=function(){var t=function(o){return Lt(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=Bn(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 C=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=$t({r:u,c:h}),E=p?(o["!data"][u]||[])[h]:o[N];if(E&&E.f&&(M["table:formula"]=Lt(Eme(E.f)),E.F&&E.F.slice(0,N.length)==N)){var H=Bn(E.F);M["table:number-matrix-columns-spanned"]=H.e.c-H.s.c+1,M["table:number-matrix-rows-spanned"]=H.e.r-H.s.r+1}if(E){switch(E.t){case"b":q=E.v?"TRUE":"FALSE",M["office:value-type"]="boolean",M["office:boolean-value"]=E.v?"true":"false";break;case"n":q=E.w||String(E.v||0),M["office:value-type"]="float",M["office:value"]=E.v||0;break;case"s":case"str":q=null==E.v?"":E.v,M["office:value-type"]="string";break;case"d":q=E.w||Wi(E.v).toISOString(),M["office:value-type"]="date",M["office:date-value"]=Wi(E.v).toISOString(),M["table:style-name"]="ce1";break;default:d.push(i);continue}var B=t(q);if(E.l&&E.l.Target){var G=E.l.Target;"#"!=(G="#"==G.charAt(0)?"#"+JL(G.slice(1)):G).charAt(0)&&!G.match(/^\w+:/)&&(G="../"+G),B=Me("text:a",B,{"xlink:href":G.replace(/&/g,"&")})}l[E.z]&&(M["table:style-name"]="ce"+l[E.z].slice(1)),d.push(" "+Me("table:table-cell",Me("text:p",B,{}),M)+"\n")}else d.push(i)}}d.push(" \n")}return(a.Workbook||{}).Names&&d.push(DN(a.Workbook.Names,0,s)),d.push(" \n"),d.join("")};return function(a,s){var c=[fn],l=Rf({"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=Rf({"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(H4().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=Bn(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[$t({r:m,c:g})];if(p&&p.z&&"general"!=p.z.toLowerCase()&&!l[p.z]){var b=i_e(p.z,"N"+d);b&&(l[p.z]="N"+d,++d,o.push(b+"\n"))}}}),o.push(' \n'),ji(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(DN(a.Workbook.Names,0,-1)),c.push(" \n"),c.push(" \n"),c.push("fods"==s.bookType?"":""),c.join("")}}();function TN(t,i){if("fods"==i.bookType)return EN(t,i);var e=xw(),n="",r=[],o=[];return Pt(e,n="mimetype","application/vnd.oasis.opendocument.spreadsheet"),Pt(e,n="content.xml",EN(t,i)),r.push([n,"text/xml"]),o.push([n,"ContentFile"]),Pt(e,n="styles.xml",t_e(t,i)),r.push([n,"text/xml"]),o.push([n,"StylesFile"]),Pt(e,n="meta.xml",fn+H4()),r.push([n,"text/xml"]),o.push([n,"MetadataFile"]),Pt(e,n="manifest.rdf",function bce(t){var i=[fn];i.push('\n');for(var e=0;e!=t.length;++e)i.push(V4(t[e][0],t[e][1])),i.push(_ce("",t[e][0]));return i.push(V4("","Document","pkg")),i.push(""),i.join("")}(o)),r.push([n,"application/rdf+xml"]),Pt(e,n="META-INF/manifest.xml",function gce(t){var i=[fn];i.push('\n'),i.push(' \n');for(var e=0;e\n');return i.push(""),i.join("")}(r)),e}var Tn=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 Cs(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Wn(t){return typeof TextDecoder<"u"?(new TextDecoder).decode(t):Di(Ma(t))}function aa(t){return typeof TextEncoder<"u"?(new TextEncoder).encode(t):Tr(Ia(t))}function dc(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 at(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[Tn](0,e)}function MN(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 Ue(t){for(var i=[],e={l:0};e.l=128;);a=t[Tn](e.l,s),e.l=s;break;case 1:a=t[Tn](s,s+8),e.l=s+8;break;case 2:var c=rm(t,e);a=t[Tn](e.l,e.l+c),e.l+=c;break;case 5:a=t[Tn](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 ut(t){var i=[];return t.forEach(function(e,n){0!=n&&e.forEach(function(r){r.data&&(i.push(at(8*n+r.type)),2==r.type&&i.push(at(r.data.length)),i.push(r.data))})}),dc(i)}function El(t,i){return t?.map(function(e){return i(e.data)})||[]}function om(t){for(var i,e=[],n={l:0};n.l>>0>0),e.push(a)}return e}function am(t){var i=[];return t.forEach(function(e){var n=[[],[{data:at(e.id),type:0}],[]];null!=e.merge&&(n[3]=[{data:at(+!!e.merge),type:0}]);var r=[];e.messages.forEach(function(a){r.push(a.data),a.meta[3]=[{type:0,data:at(a.data.length)}],n[2].push({data:ut(a.meta),type:2})});var o=ut(n);i.push(at(o.length)),i.push(o),r.forEach(function(a){return i.push(a)})}),dc(i)}function o_e(t,i){if(0!=t)throw new Error("Unexpected Snappy chunk type ".concat(t));for(var e={l:0},n=rm(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][Tn](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][Tn](0,d))}r.length>25&&(r=[dc(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[Tn](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[Tn](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 dc(i)}function b_(t,i){var e=new Uint8Array(32),n=Cs(e),r=12,o=0;switch(e[0]=5,t.t){case"n":e[1]=2,function r_e(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[Tn](0,r)}function v_(t,i){var e=new Uint8Array(32),n=Cs(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[Tn](0,r)}function Ti(t){return ii(Ue(t)[1][0].data)}function ks(t){return ut([[],[{type:0,data:at(t)}]])}function uc(t,i){var e,n=null!=(e=t.messages[0].meta[5])&&e[0]?MN(t.messages[0].meta[5][0].data):[];-1==n.indexOf(i)&&(n.push(i),t.messages[0].meta[5]=[{type:2,data:AN(n)}])}function Ss(t,i){var e,n=null!=(e=t.messages[0].meta[5])&&e[0]?MN(t.messages[0].meta[5][0].data):[];t.messages[0].meta[5]=[{type:2,data:AN(n.filter(function(r){return r!=i}))}]}function g_e(t,i,e){var n,r,o=[[],[{type:0,data:at(0)}],[{type:0,data:at(0)}],[{type:2,data:new Uint8Array([])}],[{type:2,data:new Uint8Array(Array.from({length:510},function(){return 255}))}],[{type:0,data:at(5)}],[{type:2,data:new Uint8Array([])}],[{type:2,data:new Uint8Array(Array.from({length:510},function(){return 255}))}],[{type:0,data:at(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=Cs(o[7][0].data),d=0,u=[],h=Cs(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:""};vC(i=i||{});var o=xw(),a="",s=0;if(i.cellXfs=[],lc(i.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),Pt(o,a="docProps/core.xml",z4(t.Props,i)),r.coreprops.push(a),Ei(i.rels,2,a,Nt.CORE_PROPS),a="docProps/app.xml",!t.Props||!t.Props.SheetNames)if(t.Workbook&&t.Workbook.Sheets){for(var c=[],l=0;l0&&(Pt(o,a="docProps/custom.xml",G4(t.Custprops)),r.custprops.push(a),Ei(i.rels,4,a,Nt.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(Pt(o,a="xl/worksheets/sheet"+s+"."+e,ope(s-1,i,t,u)),r.sheets.push(a),Ei(i.wbrels,-1,"worksheets/sheet"+s+"."+e,Nt.WS[0]),h){var m=h["!comments"],g=!1,p="";if(m&&m.length>0){var b=!1;m.forEach(function(C){C[1].forEach(function(y){1==y.T&&(b=!0)})}),b&&(Pt(o,p="xl/threadedComments/threadedComment"+s+".xml",Dhe(m,d,i)),r.threadedcomments.push(p),Ei(u,-1,"../threadedComments/threadedComment"+s+".xml",Nt.TCMNT)),Pt(o,p="xl/comments"+s+"."+e,khe(m)),r.comments.push(p),Ei(u,-1,"../comments"+s+"."+e,Nt.CMNT),g=!0}h["!legacy"]&&g&&Pt(o,"xl/drawings/vmlDrawing"+s+".vml",NL(s,h["!comments"])),delete h["!comments"],delete h["!legacy"]}u["!id"].rId1&&Pt(o,Hf(a),yu(u))}return null!=i.Strings&&i.Strings.length>0&&(Pt(o,a="xl/sharedStrings."+e,function Rde(t,i){if(!i.bookSST)return"";var e=[fn];e[e.length]=Me("sst",null,{xmlns:hl[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),Ei(i.wbrels,-1,"sharedStrings."+e,Nt.SST)),Pt(o,a="xl/workbook."+e,function Oge(t){var i=[fn];i[i.length]=Me("workbook",null,{xmlns:hl[0],"xmlns:r":Ln.r});var e=t.Workbook&&(t.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};t.Workbook&&t.Workbook.WBProps&&(uC.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]=Me("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:Lt(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]=Me("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]=Me("definedName",Lt(s.Ref),c))}),i[i.length]=""),i.length>2&&(i[i.length]="",i[1]=i[1].replace("/>",">")),i.join("")}(t)),r.workbooks.push(a),Ei(i.rels,1,a,Nt.WB),Pt(o,a="xl/theme/theme1.xml",rC(t.Themes,i)),r.themes.push(a),Ei(i.wbrels,-1,"theme/theme1.xml",Nt.THEME),Pt(o,a="xl/styles."+e,function xue(t,i){var n,e=[fn,Me("styleSheet",null,{xmlns:hl[0],"xmlns:vt":Ln.vt})];return t.SSF&&null!=(n=function gue(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]=Me("numFmt",null,{numFmtId:n,formatCode:Lt(t[n])}))}),1===i.length?"":(i[i.length]="",i[0]=Me("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 bue(t){var i=[];return i[i.length]=Me("cellXfs",null),t.forEach(function(e){i[i.length]=Me("xf",null,e)}),i[i.length]="",2===i.length?"":(i[0]=Me("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),Ei(i.wbrels,-1,"styles."+e,Nt.STY),t.vbaraw&&n&&(Pt(o,a="xl/vbaProject.bin",t.vbaraw),r.vba.push(a),Ei(i.wbrels,-1,"vbaProject.bin",Nt.VBA)),Pt(o,a="xl/metadata."+e,function ghe(){var t=[fn];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),Ei(i.wbrels,-1,"metadata."+e,Nt.XLMETA),d.length>1&&(Pt(o,a="xl/persons/person.xml",function The(t){var i=[fn,Me("personList",null,{xmlns:Ln.TCMNT,"xmlns:x":hl[0]}).replace(/[\/]>/,">")];return t.forEach(function(e,n){i.push(Me("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),Ei(i.wbrels,-1,"persons/person.xml",Nt.PEOPLE)),Pt(o,"[Content_Types].xml",B4(r,i)),Pt(o,"_rels/.rels",yu(i.rels)),Pt(o,"xl/_rels/workbook.xml.rels",yu(i.wbrels)),delete i.revssf,delete i.ssf,o}function VN(t,i){switch(i.type){case"base64":case"binary":break;case"buffer":case"array":i.type="";break;case"file":return Af(i.file,dt.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 dt.write(t,i)}function F_e(t,i){switch(i.bookType){case"ods":return TN(t,i);case"numbers":return function b_e(t,i){if(!i||!i.numbers)throw new Error("Must pass a `numbers` option -- check the README");var e=dt.read(i.numbers,{type:"base64"}),n=function __e(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]&&om(sm(r.content)).forEach(function(a){e.push(a.id),i[a.id]={deps:[],location:o,type:ii(a.messages[0].meta[1][0].data)}})}),t.FileIndex.forEach(function(n){n.name.match(/\.iwa/)&&0==n.content[0]&&om(sm(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(ii(s.data))})})})})}),i}(e),r=Pa(e,n,1);if(null==r)throw"Could not find message ".concat(1," in Numbers template");var o=El(Ue(r.messages[0].data)[1],Ti);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 v_e(t,i,e){var n=-1,r=-1,o={};Hn(t,i,1,function(l,d){var u=Ue(l.messages[0].data);n=Ti(Ue(l.messages[0].data)[1][0].data),r=hc({deps:[1],location:i[n].location,type:2},i),o[n]=r,uc(l,r),u[1].push({type:2,data:ks(r)});var h=Pa(t,i,n);h.id=r,i[1].location==i[r].location?d.push(h):Hn(t,i,r,function(f,m){return m.push(h)}),l.messages[0].data=ut(u)});var a=-1;Hn(t,i,r,function(l,d){for(var u=Ue(l.messages[0].data),h=3;h<=69;++h)delete u[h];var f=El(u[2],Ti);f.forEach(function(p){return Ss(l,p)}),a=hc({deps:[r],location:i[f[0]].location,type:i[f[0]].type},i),uc(l,a),o[f[0]]=a,u[2]=[{type:2,data:ks(a)}];var m=Pa(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$/,""),Hn(t,i,2,function(p){var b=Ue(p.messages[0].data),C=b[3].findIndex(function(M){var q,N,E=Ue(M.data);return null!=(q=E[3])&&q[0]?Wn(E[3][0].data)==g:!(null==(N=E[2])||!N[0]||Wn(E[2][0].data)!=g)}),y=Ue(b[3][C].data);y[6]||(y[6]=[]),y[6].push({type:2,data:ut([[],[{type:0,data:at(a)}]])}),b[3][C].data=ut(y),p.messages[0].data=ut(b)}),Hn(t,i,a,function(p,b){return b.push(m)})}l.messages[0].data=ut(u)});var s=-1;Hn(t,i,a,function(l,d){for(var u=Ue(l.messages[0].data),h=Ue(u[1][0].data),f=3;f<=69;++f)delete h[f];var m=Ti(h[2][0].data);h[2][0].data=ks(o[m]),u[1][0].data=ut(h);var g=Ti(u[2][0].data);Ss(l,g),uc(l,s=hc({deps:[a],location:i[g].location,type:i[g].type},i)),o[g]=s,u[2][0].data=ks(s);var p=Pa(t,i,g);p.id=s,i[a].location==i[s].location?d.push(p):Hn(t,i,s,function(b,C){return C.push(p)}),l.messages[0].data=ut(u)});var c=i[s].location;c=(c=c.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,""),Hn(t,i,s,function(l,d){var u,h,f=Ue(l.messages[0].data),g=Wn(f[1][0].data).replace(/-[A-Z0-9]*/,"-".concat(e.toString(16).padStart(4,"0")));if(f[1][0].data=aa(g),[12,13,29,31,32,33,39,44,47,81,82,84].forEach(function(N){return delete f[N]}),f[45]){var b=Ti(Ue(f[45][0].data)[1][0].data);Ss(l,b),delete f[45]}f[70]&&(null==(u=Ue(f[70][0].data)[2])||u.forEach(function(N){var E=Ue(N.data);[2,3].map(function(H){return E[H][0]}).forEach(function(H){var B=Ue(H.data);if(B[8]){var G=Ti(B[8][0].data);Ss(l,G)}})}),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 E=Ti(f[N][0].data);delete f[N],Ss(l,E)}});var y=Ue(f[4][0].data);[2,4,5,6,11,12,13,15,16,17,18,19,20,21,22].forEach(function(N){var E;if(null!=(E=y[N])&&E[0]){var H=Ti(y[N][0].data),B=hc({deps:[s],location:i[H].location,type:i[H].type},i);Ss(l,H),uc(l,B),o[H]=B;var G=Pa(t,i,H);if(G.id=B,i[H].location==i[s].location)d.push(G);else{i[B].location=i[H].location.replace(H.toString(),B.toString()),i[B].location==i[H].location&&(i[B].location=i[B].location.replace(/\.iwa/,"-".concat(B,".iwa"))),dt.utils.cfb_add(t,i[B].location,cm(am([G])));var Z=i[B].location;Z=(Z=Z.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,""),Hn(t,i,2,function(j){var me=Ue(j.messages[0].data);me[3].push({type:2,data:ut([[],[{type:0,data:at(B)}],[{type:2,data:aa(Z.replace(/-.*$/,""))}],[{type:2,data:aa(Z)}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:at(0)}],[],[{type:0,data:at(0)}]])}),me[1]=[{type:0,data:at(Math.max(B+1,ii(me[1][0].data)))}];var ye=me[3].findIndex(function(ne){var Y,he,se=Ue(ne.data);return null!=(Y=se[3])&&Y[0]?Wn(se[3][0].data)==c:!(null==(he=se[2])||!he[0]||Wn(se[2][0].data)!=c)}),de=Ue(me[3][ye].data);de[6]||(de[6]=[]),de[6].push({type:2,data:ut([[],[{type:0,data:at(B)}]])}),me[3][ye].data=ut(de),j.messages[0].data=ut(me)})}y[N][0].data=ks(B)}});var M=Ue(y[1][0].data);null==(h=M[2])||h.forEach(function(N){var E=Ti(N.data),H=hc({deps:[s],location:i[E].location,type:i[E].type},i);Ss(l,E),uc(l,H),o[E]=H;var B=Pa(t,i,E);if(B.id=H,i[E].location==i[s].location)d.push(B);else{i[H].location=i[E].location.replace(E.toString(),H.toString()),i[H].location==i[E].location&&(i[H].location=i[H].location.replace(/\.iwa/,"-".concat(H,".iwa"))),dt.utils.cfb_add(t,i[H].location,cm(am([B])));var G=i[H].location;G=(G=G.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,""),Hn(t,i,2,function(Z){var j=Ue(Z.messages[0].data);j[3].push({type:2,data:ut([[],[{type:0,data:at(H)}],[{type:2,data:aa(G.replace(/-.*$/,""))}],[{type:2,data:aa(G)}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:at(0)}],[],[{type:0,data:at(0)}]])}),j[1]=[{type:0,data:at(Math.max(H+1,ii(j[1][0].data)))}];var me=j[3].findIndex(function(de){var ne,Y,he=Ue(de.data);return null!=(ne=he[3])&&ne[0]?Wn(he[3][0].data)==c:!(null==(Y=he[2])||!Y[0]||Wn(he[2][0].data)!=c)}),ye=Ue(j[3][me].data);ye[6]||(ye[6]=[]),ye[6].push({type:2,data:ut([[],[{type:0,data:at(H)}]])}),j[3][me].data=ut(ye),Z.messages[0].data=ut(j)})}N.data=ks(H)}),y[1][0].data=ut(M);var q=Ue(y[3][0].data);q[1].forEach(function(N){var E=Ue(N.data),H=Ti(E[2][0].data),B=o[H];if(!o[H]){B=hc({deps:[s],location:"",type:i[H].type},i),i[B].location="Root Entry/Index/Tables/Tile-".concat(B,".iwa"),o[H]=B;var G=Pa(t,i,H);G.id=B,Ss(l,H),uc(l,B),dt.utils.cfb_add(t,"/Index/Tables/Tile-".concat(B,".iwa"),cm(am([G]))),Hn(t,i,2,function(Z){var j=Ue(Z.messages[0].data);j[3].push({type:2,data:ut([[],[{type:0,data:at(B)}],[{type:2,data:aa("Tables/Tile")}],[{type:2,data:aa("Tables/Tile-".concat(B))}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:at(0)}],[],[{type:0,data:at(0)}]])}),j[1]=[{type:0,data:at(Math.max(B+1,ii(j[1][0].data)))}];var me=j[3].findIndex(function(de){var ne,Y,he=Ue(de.data);return null!=(ne=he[3])&&ne[0]?Wn(he[3][0].data)==c:!(null==(Y=he[2])||!Y[0]||Wn(he[2][0].data)!=c)}),ye=Ue(j[3][me].data);ye[6]||(ye[6]=[]),ye[6].push({type:2,data:ut([[],[{type:0,data:at(B)}]])}),j[3][me].data=ut(ye),Z.messages[0].data=ut(j)})}E[2][0].data=ks(B),N.data=ut(E)}),y[3][0].data=ut(q),f[4][0].data=ut(y),l.messages[0].data=ut(f)})}(e,n,s+1),r=Pa(e,n,1),o=El(Ue(r.messages[0].data)[1],Ti)),function x_e(t,i,e,n,r,o){var a=[];Hn(t,i,o,function(l){var d=Ue(l.messages[0].data);d[1]=[{type:2,data:aa(n)}],a=El(d[2],Ti),l.messages[0].data=ut(d)});var c=Ti(Ue(Pa(t,i,a[0]).messages[0].data)[2][0].data);Hn(t,i,c,function(l,d){return function y_e(t,i,e,n,r,o){var a=Bn(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(At(a)));var c=w_(e,{range:a,header:1}),l=["~Sh33tJ5~"],d=i[o].location;d=(d=d.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,"");var u=Ue(n.messages[0].data);u[6][0].data=at(a.e.r+1),u[7][0].data=at(a.e.c+1),delete u[46];var h=Ue(u[4][0].data);Hn(t,i,Ti(Ue(h[1][0].data)[2][0].data),function(ye,de){var ne,Y=Ue(ye.messages[0].data);if(null!=(ne=Y?.[2])&&ne[0])for(var he=0;he0&&(Pt(o,a="docProps/custom.xml",G4(t.Custprops)),r.custprops.push(a),Ei(i.rels,4,a,Nt.CUST_PROPS)),s=1;s<=t.SheetNames.length;++s){var d={"!id":{}},u=t.Sheets[t.SheetNames[s-1]];if(Pt(o,a="xl/worksheets/sheet"+s+"."+e,xge(s-1,i,t,d)),r.sheets.push(a),Ei(i.wbrels,-1,"worksheets/sheet"+s+"."+e,Nt.WS[0]),u){var f=u["!comments"],m=!1,g="";f&&f.length>0&&(Pt(o,g="xl/comments"+s+"."+e,Ohe(f)),r.comments.push(g),Ei(d,-1,"../comments"+s+"."+e,Nt.CMNT),m=!0),u["!legacy"]&&m&&Pt(o,"xl/drawings/vmlDrawing"+s+".vml",NL(s,u["!comments"])),delete u["!comments"],delete u["!legacy"]}d["!id"].rId1&&Pt(o,Hf(a),yu(d))}return null!=i.Strings&&i.Strings.length>0&&(Pt(o,a="xl/sharedStrings."+e,function Bde(t){var i=$r();fe(i,159,function Lde(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+=To.charAt(o)+To.charAt(a)+To.charAt(s)+To.charAt(c);return i}(t);case"binary":case"string":return t;case"file":return Af(i.file,t,"binary");case"buffer":return Vt?Ta(t,"binary"):t.split("").map(function(e){return e.charCodeAt(0)})}throw new Error("Unrecognized type "+i.type)}(WN(t.Sheets[t.SheetNames[r]],e),e);case"csv":return La(kC(t.Sheets[t.SheetNames[r]],e),e,"\ufeff");case"dif":return La(DL.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"dbf":return y_(Zw.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"prn":return La(wu.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"rtf":return La(function rue(t,i){var e=["{\\rtf1\\ansi"];if(!t["!ref"])return e[0]+"}";for(var r,n=ti(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=$t({r:s,c});(r=o?a[c]:t[l])&&(null!=r.v||r.f&&!r.F)?(e.push(" "+(r.w||(Fa(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 La(EL.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"fods":return La(TN(t,e),e);case"wk1":return y_(kl.sheet_to_wk1(t.Sheets[t.SheetNames[r]],e),e);case"wk3":return y_(kl.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),y_(hN(t,e),e);case"biff5":e.biff||(e.biff=5);case"biff8":case"xla":case"xls":return e.biff||(e.biff=8),function P_e(t,i){var e=i||{};return VN(function O0e(t,i){var e=i||{},n=dt.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 dt.utils.cfb_add(n,r,hN(t,e)),8==e.biff&&(t.Props||t.Custprops)&&function R0e(t,i){var a,e=[],n=[],r=[],o=0,s=qP(Hw,"n"),c=qP(Uw,"n");if(t.Props)for(a=ji(t.Props),o=0;o-1||$4.indexOf(r[o][0])>-1||null!=r[o][1]&&l.push(r[o]);n.length&&dt.utils.cfb_add(i,"/\x05SummaryInformation",nL(n,tm.SI,c,Uw)),(e.length||l.length)&&dt.utils.cfb_add(i,"/\x05DocumentSummaryInformation",nL(e,tm.DSI,s,Hw,l.length?l:null,tm.UDI))}(t,n),8==e.biff&&t.vbaraw&&function Nhe(t,i){i.FullPaths.forEach(function(e,n){if(0!=n){var r=e.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");"/"!==r.slice(-1)&&dt.utils.cfb_add(t,r,i.FileIndex[n].content)}})}(n,dt.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 R_e(t,i){var e=ki(i||{});return function HN(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?dt.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(Df(r))}return i.password&&typeof encrypt_agile<"u"?VN(encrypt_agile(r,i.password),i):"file"===i.type?Af(i.file,r):"string"==i.type?Di(r):r}(F_e(t,e),e)}(t,e);default:throw new Error("Unrecognized bookType |"+e.bookType+"|")}}function zN(t,i,e,n,r,o,a){var s=ei(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:Fa(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 w_(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=ti(d);break;case"number":(c=ti(t["!ref"])).s.r=d;break;default:c=d}n>0&&(r=0);var u=ei(c.s.r),h=[],f=[],m=0,g=0,p=null!=t["!data"],b=c.s.r,C=0,y={};p&&!t["!data"][b]&&(t["!data"][b]=[]);var M=l.skipHidden&&t["!cols"]||[],q=l.skipHidden&&t["!rows"]||[];for(C=c.s.c;C<=c.e.c;++C)if(!(M[C]||{}).hidden)switch(h[C]=Ht(C),e=p?t["!data"][b][C]:t[h[C]+u],n){case 1:o[C]=C-c.s.c;break;case 2:o[C]=h[C];break;case 3:o[C]=l.header[C-c.s.c];break;default:if(null==e&&(e={w:"__EMPTY",t:"s"}),s=a=Fa(e,null,l),g=y[a]||0){do{s=a+"_"+g++}while(y[s]);y[a]=g,y[s]=1}else y[a]=1;o[C]=s}for(b=c.s.r+r;b<=c.e.r;++b)if(!(q[b]||{}).hidden){var N=zN(t,c,b,h,n,o,l);(!1===N.isempty||(1===n?!1!==l.blankrows:l.blankrows))&&(f[m++]=N.row)}return f.length=m,f}var $N=/"/g;function jN(t,i,e,n,r,o,a,s){for(var c=!0,l=[],d="",u=ei(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:Fa(g,null,s));for(var p=0,b=0;p!==d.length;++p)if((b=d.charCodeAt(p))===r||b===o||34===b||s.forceQuotes){d='"'+d.replace($N,'""')+'"';break}"ID"==d&&(d='"ID"')}else null==g.f||g.F?d="":(c=!1,(d="="+g.f).indexOf(",")>=0&&(d='"'+d.replace($N,'""')+'"'));l.push(d)}return!1===s.blankrows&&c?null:l.join(a)}function kC(t,i){var e=[],n=i??{};if(null==t||null==t["!ref"])return"";for(var r=ti(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=jN(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 WN(t,i){i||(i={}),i.FS="\t",i.RS="\n";var e=kC(t,i);if(typeof Ft>"u"||"string"==i.type)return e;var n=Ft.utils.encode(1200,e,"str");return String.fromCharCode(255)+String.fromCharCode(254)+n}function GN(t,i,e){var n=e||{},r=t?null!=t["!data"]:n.dense;null!=hn&&null==r&&(r=hn);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?Ci(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=ti(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,b){r&&!a["!data"][s+b+o]&&(a["!data"][s+b+o]=[]),r&&(m=a["!data"][s+b+o]),ji(p).forEach(function(C){-1==(f=h.indexOf(C))&&(h[f=h.length]=C);var y=p[C],M="z",q="",N=r?"":Ht(c+f)+ei(s+b+o),E=r?m[c+f]:a[N];!y||"object"!=typeof y||y instanceof Date?("number"==typeof y?M="n":"boolean"==typeof y?M="b":"string"==typeof y?M="s":y instanceof Date?(M="d",n.cellDates||(M="n",y=kn(y)),q=null!=E&&E.z&&nc(E.z)?E.z:n.dateNF||ht[14]):null===y&&n.nullError&&(M="e",y=0),E?(E.t=M,E.v=y,delete E.w,delete E.R,q&&(E.z=q)):r?m[c+f]=E={t:M,v:y}:a[N]=E={t:M,v:y},q&&(E.z=q)):r?m[c+f]=y:a[N]=y})}),d.e.c=Math.max(d.e.c,c+h.length-1);var g=ei(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(sN(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 XN_json_to_sheet=function H_e(t,i){return GN(null,t,i)};let ebe=(()=>{class t{constructor(){}exportAsExcelFile(e,n){const a=lm({Sheets:{data:XN_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"});ps.saveAs(r,n+"_export_"+(new Date).getTime()+".xlsx")}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const tbe=["*",[["mat-toolbar-row"]]],ibe=["*","mat-toolbar-row"],nbe=Gs(class{constructor(t){this._elementRef=t}});let rbe=(()=>{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})(),obe=(()=>{class t extends nbe{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)(x(Ie),x(wi),x(ot))},t.\u0275cmp=Le({type:t,selectors:[["mat-toolbar"]],contentQueries:function(e,n,r){if(1&e&&It(r,rbe,5),2&e){let o;Se(o=De())&&(n._toolbarRows=o)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,n){2&e&&Ye("mat-toolbar-multiple-rows",n._toolbarRows.length>0)("mat-toolbar-single-row",0===n._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[pe],ngContentSelectors:ibe,decls:2,vars:0,template:function(e,n){1&e&&(hi(tbe),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})(),abe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[yt,yt]}),t})();const QN=["*"],sbe=["content"];function cbe(t,i){if(1&t){const e=Ne();_(0,"div",2),z("click",function(){return _e(e),be(V()._onBackdropClicked())}),v()}2&t&&Ye("mat-drawer-shown",V()._isShowingBackdrop())}function lbe(t,i){1&t&&(_(0,"mat-drawer-content"),Je(1,2),v())}const dbe=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],ube=["mat-drawer","mat-drawer-content","*"],hbe={transformDrawer:zi("transform",[Zt("open, open-instant",Xe({transform:"none",visibility:"visible"})),Zt("void",Xe({"box-shadow":"none",visibility:"hidden"})),Wt("void => open-instant",jt("0ms")),Wt("void <=> open, open-instant => void",jt("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},fbe=new oe("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function mbe(){return!1}}),YN=new oe("MAT_DRAWER_CONTAINER");let DC=(()=>{class t extends Zh{constructor(e,n,r,o,a){super(r,o,a),this._changeDetectorRef=e,this._container=n}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(x(Ut),x(Qt(()=>ZN)),x(Ie),x(Wc),x(ze))},t.\u0275cmp=Le({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,n){2&e&&en("margin-left",n._container._contentMargins.left,"px")("margin-right",n._container._contentMargins.right,"px")},features:[We([{provide:Zh,useExisting:t}]),pe],ngContentSelectors:QN,decls:1,vars:0,template:function(e,n){1&e&&(hi(),Je(0))},encapsulation:2,changeDetection:0}),t})(),KN=(()=>{class t{get position(){return this._position}set position(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=He(e)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=He(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(He(e))}constructor(e,n,r,o,a,s,c,l){this._elementRef=e,this._focusTrapFactory=n,this._focusMonitor=r,this._platform=o,this._ngZone=a,this._interactivityChecker=s,this._doc=c,this._container=l,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new ke,this._animationEnd=new ke,this._animationState="void",this.openedChange=new Ce(!0),this._openedStream=this.openedChange.pipe(Kt(d=>d),Ze(()=>{})),this.openedStart=this._animationStarted.pipe(Kt(d=>d.fromState!==d.toState&&0===d.toState.indexOf("open")),Jp(void 0)),this._closedStream=this.openedChange.pipe(Kt(d=>!d),Ze(()=>{})),this.closedStart=this._animationStarted.pipe(Kt(d=>d.fromState!==d.toState&&"void"===d.toState),Jp(void 0)),this._destroyed=new ke,this.onPositionChanged=new Ce,this._modeChanged=new ke,this.openedChange.subscribe(d=>{d?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{Jo(this._elementRef.nativeElement,"keydown").pipe(Kt(d=>27===d.keyCode&&!this.disableClose&&!or(d)),pt(this._destroyed)).subscribe(d=>this._ngZone.run(()=>{this.close(),d.stopPropagation(),d.preventDefault()}))}),this._animationEnd.pipe(Ws((d,u)=>d.fromState===u.fromState&&d.toState===u.toState)).subscribe(d=>{const{fromState:u,toState:h}=d;(0===h.indexOf("open")&&"void"===u||"void"===h&&0===u.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(e,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)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(n=>{!n&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,n){e&&n&&(this._openedVia=n);const r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,n,r){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",n&&this._restoreFocus(r)),this._updateFocusTrapState(),new Promise(o=>{this.openedChange.pipe(si(1)).subscribe(a=>o(a?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(e){const n=this._elementRef.nativeElement,r=n.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,n)),r.appendChild(n)):this._anchor&&this._anchor.parentNode.insertBefore(n,this._anchor)}}return t.\u0275fac=function(e){return new(e||t)(x(Ie),x(Fg),x(ro),x(wi),x(ze),x(Wh),x(ot,8),x(YN,8))},t.\u0275cmp=Le({type:t,selectors:[["mat-drawer"]],viewQuery:function(e,n){if(1&e&&rt(sbe,5),2&e){let r;Se(r=De())&&(n._content=r.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,n){1&e&&pp("@transform.start",function(o){return n._animationStarted.next(o)})("@transform.done",function(o){return n._animationEnd.next(o)}),2&e&&(st("align",null),vp("@transform",n._animationState),Ye("mat-drawer-end","end"===n.position)("mat-drawer-over","over"===n.mode)("mat-drawer-push","push"===n.mode)("mat-drawer-side","side"===n.mode)("mat-drawer-opened",n.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:QN,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,n){1&e&&(hi(),_(0,"div",0,1),Je(2),v())},dependencies:[Zh],encapsulation:2,data:{animation:[hbe.transformDrawer]},changeDetection:0}),t})(),ZN=(()=>{class t{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=He(e)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(e){this._backdropOverride=null==e?null:He(e)}get scrollable(){return this._userContent||this._content}constructor(e,n,r,o,a,s=!1,c){this._dir=e,this._element=n,this._ngZone=r,this._changeDetectorRef=o,this._animationMode=c,this._drawers=new Rs,this.backdropClick=new Ce,this._destroyed=new ke,this._doCheckSubject=new ke,this._contentMargins={left:null,right:null},this._contentMarginChanges=new ke,e&&e.change.pipe(pt(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),a.change().pipe(pt(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=s}ngAfterContentInit(){this._allDrawers.changes.pipe(xn(this._allDrawers),pt(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(n=>!n._container||n._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(xn(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe($c(10),pt(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,n=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const r=this._left._getWidth();e+=r,n-=r}if(this._right&&this._right.opened)if("side"==this._right.mode)n+=this._right._getWidth();else if("push"==this._right.mode){const r=this._right._getWidth();n+=r,e-=r}e=e||null,n=n||null,(e!==this._contentMargins.left||n!==this._contentMargins.right)&&(this._contentMargins={left:e,right:n},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(Kt(n=>n.fromState!==n.toState),pt(this._drawers.changes)).subscribe(n=>{"open-instant"!==n.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(pt(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e&&e.onPositionChanged.pipe(pt(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(si(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(pt(Pi(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const n=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?n.add(r):n.remove(r)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e:this._start=e}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._canHaveBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(e){return"side"!==e.mode||!!this._backdropOverride}_isDrawerOpen(e){return null!=e&&e.opened}}return t.\u0275fac=function(e){return new(e||t)(x(un,8),x(Ie),x(ze),x(Ut),x(ea),x(fbe),x(Ii,8))},t.\u0275cmp=Le({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(e,n,r){if(1&e&&(It(r,DC,5),It(r,KN,5)),2&e){let o;Se(o=De())&&(n._content=o.first),Se(o=De())&&(n._allDrawers=o)}},viewQuery:function(e,n){if(1&e&&rt(DC,5),2&e){let r;Se(r=De())&&(n._userContent=r.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,n){2&e&&Ye("mat-drawer-container-explicit-backdrop",n._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[We([{provide:YN,useExisting:t}])],ngContentSelectors:ube,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,n){1&e&&(hi(dbe),P(0,cbe,1,2,"div",0),Je(1),Je(2,1),P(3,lbe,2,0,"mat-drawer-content",1)),2&e&&(S("ngIf",n.hasBackdrop),w(3),S("ngIf",!n._content))},dependencies:[Yi,DC],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),t})(),pbe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[Xn,yt,hs,hs,yt]}),t})();function gbe(t,i){if(1&t){const e=Ne();_(0,"button",7),z("click",function(){const o=_e(e).$implicit;return be(V().setFhirServer(o))}),k(1),v()}if(2&t){const e=i.$implicit;w(1),Ge(e.name)}}function _be(t,i){if(1&t){const e=Ne();_(0,"button",7),z("click",function(){const o=_e(e).$implicit;return be(V(2).setEdition(o))}),k(1),v()}if(2&t){const e=i.$implicit;w(1),Ge(e.resource.version)}}function bbe(t,i){if(1&t&&(di(0),_(1,"button",25),k(2),v(),_(3,"mat-menu",null,26)(5,"span",11),k(6,"Versions / Releases"),v(),P(7,_be,2,1,"button",9),v(),ui()),2&t){const e=i.$implicit,n=wt(4);w(1),S("matMenuTriggerFor",n),w(1),Ge(e.editionName),w(5),S("ngForOf",e.editions)}}function vbe(t,i){if(1&t){const e=Ne();_(0,"button",7),z("click",function(){const o=_e(e).$implicit;return be(V().setLanguage(o))}),k(1),v()}if(2&t){const e=i.$implicit;w(1),Ge(e)}}function xbe(t,i){if(1&t){const e=Ne();_(0,"button",7),z("click",function(){const o=_e(e).$implicit;return be(V().setFhirServer(o))}),k(1),v()}if(2&t){const e=i.$implicit;w(1),Ge(e.name)}}function ybe(t,i){if(1&t){const e=Ne();_(0,"button",7),z("click",function(){const o=_e(e).$implicit;return be(V(2).setEdition(o))}),k(1),v()}if(2&t){const e=i.$implicit;w(1),Ge(e.resource.version)}}function wbe(t,i){if(1&t&&(di(0),_(1,"button",25),k(2),v(),_(3,"mat-menu",null,26)(5,"span",11),k(6,"Versions / Releases"),v(),P(7,ybe,2,1,"button",9),v(),ui()),2&t){const e=i.$implicit,n=wt(4);w(1),S("matMenuTriggerFor",n),w(1),Ge(e.editionName),w(5),S("ngForOf",e.editions)}}function Cbe(t,i){if(1&t){const e=Ne();_(0,"button",7),z("click",function(){const o=_e(e).$implicit;return be(V().setLanguage(o))}),k(1),v()}if(2&t){const e=i.$implicit;w(1),Ge(e)}}let kbe=(()=>{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 Vs&>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)}static#e=this.\u0275fac=function(n){return new(n||t)(x(Mae),x(ebe),x(Yn),x(Vr))};static#t=this.\u0275cmp=Le({type:t,selectors:[["app-root"]],decls:78,vars:20,consts:[["autosize","",1,"example-container"],["mode","side",1,"example-sidenav"],["drawer",""],[1,"flex","flex-col","justify-center"],["mat-button","",3,"matMenuTriggerFor"],[1,"wide-menu"],["demosMenuN","matMenu"],["mat-menu-item","",3,"click"],["serverMenuN","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["editionsMenuN","matMenu"],[1,"ml-4"],[4,"ngFor","ngForOf"],["menuN","matMenu"],["mat-icon-button","","id","menu-button",3,"click"],["src","assets/img/small_logo.png",1,"h-16"],["id","title"],[1,"example-spacer"],["mat-flat-button","","color","accent",1,"bar-button",3,"matMenuTriggerFor"],["demosMenu","matMenu"],["mat-flat-button","","color","primary",1,"bar-button",3,"matMenuTriggerFor"],["serverMenu","matMenu"],["editionsMenu","matMenu"],["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(n,r){if(1&n){const o=Ne();_(0,"mat-drawer-container",0)(1,"mat-drawer",1,2)(3,"div",3)(4,"button",4),k(5,"Select Demonstrator"),v(),_(6,"mat-menu",5,6)(8,"button",7),z("click",function(){return r.navigate("/allergies")}),k(9,"Allergies CRG"),v(),_(10,"button",7),z("click",function(){return r.navigate("/sandbox")}),k(11,"Terminology Bindings Sandbox"),v(),_(12,"button",7),z("click",function(){return r.navigate("/questionnaires")}),k(13,"SNOMED & FHIR Questionnaires"),v(),_(14,"button",7),z("click",function(){return r.navigate("/context")}),k(15,"Context Representation"),v(),_(16,"button",7),z("click",function(){return r.navigate("/snoguess")}),k(17,"Playground"),v()(),_(18,"button",4),k(19),v(),_(20,"mat-menu",null,8),P(22,gbe,2,1,"button",9),v(),_(23,"button",4),k(24),v(),_(25,"mat-menu",5,10)(27,"span",11),k(28,"Editions"),v(),P(29,bbe,8,3,"ng-container",12),v(),_(30,"button",4),k(31),v(),_(32,"mat-menu",null,13),P(34,vbe,2,1,"button",9),v()()(),_(35,"mat-toolbar")(36,"button",14),z("click",function(){return _e(o),be(wt(2).toggle())}),_(37,"mat-icon"),k(38,"menu"),v()(),ge(39,"img",15),_(40,"span",16),k(41,"SNOMED CT Implementation Demos"),v(),ge(42,"span",17),_(43,"button",18),k(44,"Select Demonstrator"),v(),_(45,"mat-menu",5,19)(47,"button",7),z("click",function(){return r.navigate("/allergies")}),k(48,"Allergies CRG"),v(),_(49,"button",7),z("click",function(){return r.navigate("/sandbox")}),k(50,"Terminology Bindings Sandbox"),v(),_(51,"button",7),z("click",function(){return r.navigate("/questionnaires")}),k(52,"SNOMED & FHIR Questionnaires"),v(),_(53,"button",7),z("click",function(){return r.navigate("/context")}),k(54,"Context Representation"),v(),_(55,"button",7),z("click",function(){return r.navigate("/snoguess")}),k(56,"Playground"),v()(),_(57,"button",20),k(58),v(),_(59,"mat-menu",null,21),P(61,xbe,2,1,"button",9),v(),_(62,"button",20),k(63),v(),_(64,"mat-menu",5,22)(66,"span",11),k(67,"Editions"),v(),P(68,wbe,8,3,"ng-container",12),v(),_(69,"button",20),k(70),v(),_(71,"mat-menu",null,23),P(73,Cbe,2,1,"button",9),v(),_(74,"a",24)(75,"mat-icon"),k(76,"info"),v()()(),ge(77,"router-outlet"),v()}if(2&n){const o=wt(7),a=wt(21),s=wt(26),c=wt(33),l=wt(46),d=wt(60),u=wt(65),h=wt(72);w(4),S("matMenuTriggerFor",o),w(14),S("matMenuTriggerFor",a),w(1),it("FHIR Server: ",r.selectedServer.name,""),w(3),S("ngForOf",r.fhirServers),w(1),S("matMenuTriggerFor",s),w(1),it("Edition: ",r.selectedEdition,""),w(5),S("ngForOf",r.editionsDetails),w(1),S("matMenuTriggerFor",c),w(1),it("Language: ",r.selectedLanguage,""),w(3),S("ngForOf",r.languages),w(9),S("matMenuTriggerFor",l),w(14),S("matMenuTriggerFor",d),w(1),it("FHIR Server: ",r.selectedServer.name,""),w(3),S("ngForOf",r.fhirServers),w(1),S("matMenuTriggerFor",u),w(1),Ge(r.selectedEdition),w(5),S("ngForOf",r.editionsDetails),w(1),S("matMenuTriggerFor",h),w(1),Ge(r.selectedLanguage),w(3),S("ngForOf",r.languages)}},dependencies:[kr,uy,obe,yX,Dr,Zo,oo,Qc,ka,Yc,KN,ZN],styles:[".mat-toolbar[_ngcontent-%COMP%]{background-color:#000;color:#fff;font-size:1.8rem;font-weight:700}button[_ngcontent-%COMP%]{font-weight:700;font-size:medium}.bar-button[_ngcontent-%COMP%]{margin-left:15px}#title[_ngcontent-%COMP%]{margin-left:15px;font-size:1.4rem}.example-spacer[_ngcontent-%COMP%]{flex:1 1 auto}a[_ngcontent-%COMP%]{margin-left:15px} .mat-mdc-menu-panel{max-width:-moz-fit-content!important;max-width:fit-content!important;overflow-x:hidden!important}.mat-mdc-unelevated-button[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%], .mat-mdc-raised-button[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%], .mat-mdc-outlined-button[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%]{margin:0!important}#demo-selector[_ngcontent-%COMP%]{margin:5px 15px;padding:10px}#menu-button[_ngcontent-%COMP%]{display:none}@media (max-width: 768px){#title[_ngcontent-%COMP%]{font-size:.9rem}}@media (max-width: 1200px){.bar-button[_ngcontent-%COMP%]{display:none}#menu-button[_ngcontent-%COMP%]{display:block}}"]})}return t})();function JN(t){return new ue(3e3,!1)}function ove(){return typeof window<"u"&&typeof window.document<"u"}function EC(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function fc(t){switch(t.length){case 0:return new Yh;case 1:return t[0];default:return new lF(t)}}function e3(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,b=m;if("offset"!==g)switch(p=i.normalizePropertyName(p,a),b){case n1:b=r.get(g);break;case ls:b=o.get(g);break;default:b=i.normalizeStyleValue(g,p,b,a)}f.set(p,b)}),h||s.push(f),l=f,c=u}),a.length)throw function qbe(t){return new ue(3502,!1)}();return s}function TC(t,i,e,n){switch(i){case"start":t.onStart(()=>n(e&&MC(e,"start",t)));break;case"done":t.onDone(()=>n(e&&MC(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&MC(e,"destroy",t)))}}function MC(t,i,e){const o=AC(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 AC(t,i,e,n,r="",o=0,a){return{element:t,triggerName:i,fromState:e,toState:n,phaseName:r,totalTime:o,disabled:!!a}}function lo(t,i,e){let n=t.get(i);return n||t.set(i,n=e),n}function t3(t){const i=t.indexOf(":");return[t.substring(1,i),t.slice(i+1)]}let IC=(t,i)=>!1,n3=(t,i,e)=>[],r3=null;function FC(t){const i=t.parentNode||t.host;return i===r3?null:i}(EC()||typeof Element<"u")&&(ove()?(r3=(()=>document.documentElement)(),IC=(t,i)=>{for(;i;){if(i===t)return!0;i=FC(i)}return!1}):IC=(t,i)=>t.contains(i),n3=(t,i,e)=>{if(e)return Array.from(t.querySelectorAll(i));const n=t.querySelector(i);return n?[n]:[]});let Tl=null,o3=!1;const a3=IC,s3=n3;let c3=(()=>{class t{validateStyleProperty(e){return function sve(t){Tl||(Tl=function cve(){return typeof document<"u"?document.body:null}()||{},o3=!!Tl.style&&"WebkitAppearance"in Tl.style);let i=!0;return Tl.style&&!function ave(t){return"ebkit"==t.substring(1,6)}(t)&&(i=t in Tl.style,!i&&o3&&(i="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Tl.style)),i}(e)}matchesElement(e,n){return!1}containsElement(e,n){return a3(e,n)}getParentElement(e){return FC(e)}query(e,n,r){return s3(e,n,r)}computeStyle(e,n,r){return r||""}animate(e,n,r,o,a,s=[],c){return new Yh(r,o)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})(),RC=(()=>{class t{}return t.NOOP=new c3,t})();const lve=1e3,OC="ng-enter",D_="ng-leave",E_="ng-trigger",T_=".ng-trigger",d3="ng-animating",PC=".ng-animating";function Ds(t){if("number"==typeof t)return t;const i=t.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:LC(parseFloat(i[1]),i[2])}function LC(t,i){return"s"===i?t*lve:t}function M_(t,i,e){return t.hasOwnProperty("duration")?t:function uve(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(JN()),{duration:0,delay:0,easing:""};r=LC(parseFloat(s[1]),s[2]);const c=s[3];null!=c&&(o=LC(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 Sbe(){return new ue(3100,!1)}()),s=!0),o<0&&(i.push(function Dbe(){return new ue(3101,!1)}()),s=!0),s&&i.splice(c,0,JN())}return{duration:r,delay:o,easing:a}}(t,i,e)}function dm(t,i={}){return Object.keys(t).forEach(e=>{i[e]=t[e]}),i}function u3(t){const i=new Map;return Object.keys(t).forEach(e=>{i.set(e,t[e])}),i}function mc(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 f3(t,i,e){return e?i+":"+e+";":""}function m3(t){let i="";for(let e=0;e{const o=BC(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=n}),EC()&&m3(t))}function Ml(t,i){t.style&&(i.forEach((e,n)=>{const r=BC(n);t.style[r]=""}),EC()&&m3(t))}function um(t){return Array.isArray(t)?1==t.length?t[0]:sF(t):t}const NC=new RegExp("{{\\s*(.+?)\\s*}}","g");function p3(t){let i=[];if("string"==typeof t){let e;for(;e=NC.exec(t);)i.push(e[1]);NC.lastIndex=0}return i}function hm(t,i,e){const n=t.toString(),r=n.replace(NC,(o,a)=>{let s=i[a];return null==s&&(e.push(function Tbe(t){return new ue(3003,!1)}()),s=""),s.toString()});return r==n?t:r}function A_(t){const i=[];let e=t.next();for(;!e.done;)i.push(e.value),e=t.next();return i}const mve=/-+([a-z0-9])/g;function BC(t){return t.replace(mve,(...i)=>i[1].toUpperCase())}function pve(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function uo(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 Mbe(t){return new ue(3004,!1)}()}}function g3(t,i){return window.getComputedStyle(t)[i]}const R_="*";function yve(t,i){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(n=>function wve(t,i,e){if(":"==t[0]){const c=function Cve(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 zbe(t){return new ue(3015,!1)}()),i;const r=n[1],o=n[2],a=n[3];i.push(_3(r,a));"<"==o[0]&&!(r==R_&&a==R_)&&i.push(_3(a,r))}(n,e,i)):e.push(t),e}const O_=new Set(["true","1"]),P_=new Set(["false","0"]);function _3(t,i){const e=O_.has(t)||P_.has(t),n=O_.has(i)||P_.has(i);return(r,o)=>{let a=t==R_||t==r,s=i==R_||i==o;return!a&&e&&"boolean"==typeof r&&(a=r?O_.has(t):P_.has(t)),!s&&n&&"boolean"==typeof o&&(s=o?O_.has(i):P_.has(i)),a&&s}}const kve=new RegExp("s*:selfs*,?","g");function VC(t,i,e,n){return new Sve(t).build(i,e,n)}class Sve{constructor(i){this._driver=i}build(i,e,n){const r=new Tve(e);return this._resetContextStyleTimingState(r),uo(this,um(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 Ibe(){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 Fbe(){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=>{p3(c).forEach(l=>{a.hasOwnProperty(l)||o.add(l)})})}),o.size&&(A_(o.values()),e.errors.push(function Rbe(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=uo(this,um(i.animation),e);return{type:1,matchers:yve(i.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Al(i.options)}}visitSequence(i,e){return{type:2,steps:i.steps.map(n=>uo(this,n,e)),options:Al(i.options)}}visitGroup(i,e){const n=e.currentTime;let r=0;const o=i.steps.map(a=>{e.currentTime=n;const s=uo(this,a,e);return r=Math.max(r,e.currentTime),s});return e.currentTime=r,{type:3,steps:o,options:Al(i.options)}}visitAnimate(i,e){const n=function Ave(t,i){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return HC(M_(t,i).duration,0,"");const e=t;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=HC(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=M_(e,i);return HC(r.duration,r.delay,r.easing)}(i.timings,e.errors);e.currentAnimateTimings=n;let r,o=i.styles?i.styles:Xe({});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=Xe(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===ls?n.push(s):e.errors.push(new ue(3002,!1)):n.push(u3(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 Pbe(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 fve(t,i,e){const n=i.params||{},r=p3(t);r.length&&r.forEach(o=>{n.hasOwnProperty(o)||e.push(function Ebe(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 Lbe(){return new ue(3011,!1)}()),n;let o=0;const a=[];let s=!1,c=!1,l=0;const d=i.steps.map(b=>{const C=this._makeStyleAst(b,e);let y=null!=C.offset?C.offset:function Mve(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}(C.styles),M=0;return null!=y&&(o++,M=C.offset=y),c=c||M<0||M>1,s=s||M0&&o{const y=h>0?C==f?1:h*C:a[C],M=y*p;e.currentTime=m+g.delay+M,g.duration=M,this._validateStyleAst(b,e),b.offset=y,n.styles.push(b)}),n}visitReference(i,e){return{type:8,animation:uo(this,um(i.animation),e),options:Al(i.options)}}visitAnimateChild(i,e){return e.depCount++,{type:9,options:Al(i.options)}}visitAnimateRef(i,e){return{type:10,animation:this.visitReference(i.animation,e),options:Al(i.options)}}visitQuery(i,e){const n=e.currentQuerySelector,r=i.options||{};e.queryCount++,e.currentQuery=i;const[o,a]=function Dve(t){const i=!!t.split(/\s*,\s*/).find(e=>":self"==e);return i&&(t=t.replace(kve,"")),t=t.replace(/@\*/g,T_).replace(/@\w+/g,e=>T_+"-"+e.slice(1)).replace(/:animating/g,PC),[t,i]}(i.selector);e.currentQuerySelector=n.length?n+" "+o:o,lo(e.collectedStyles,e.currentQuerySelector,new Map);const s=uo(this,um(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:Al(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(function Hbe(){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:uo(this,um(i.animation),e),timings:n,options:null}}}class Tve{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 Al(t){return t?(t=dm(t)).params&&(t.params=function Eve(t){return t?dm(t):null}(t.params)):t={},t}function HC(t,i,e){return{duration:t,delay:i,easing:e}}function UC(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 L_{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 Rve=new RegExp(":enter","g"),Pve=new RegExp(":leave","g");function zC(t,i,e,n,r,o=new Map,a=new Map,s,c,l=[]){return(new Lve).buildKeyframes(t,i,e,n,r,o,a,s,c,l)}class Lve{buildKeyframes(i,e,n,r,o,a,s,c,l,d=[]){l=l||new L_;const u=new $C(i,e,l,r,o,d,[]);u.options=c;const h=c.delay?Ds(c.delay):0;u.currentTimeline.delayNextStep(h),u.currentTimeline.setStyles([a],null,u.errors,c),uo(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()):[UC(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:Ds(hm(o,r?.params??{},e.errors));n.delayNextStep(a)}}}_visitSubInstructions(i,e,n){let o=e.currentTimeline.currentTime;const a=null!=n.duration?Ds(n.duration):null,s=null!=n.delay?Ds(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),uo(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=N_);const a=Ds(o.delay);r.delayNextStep(a)}i.steps.length&&(i.steps.forEach(a=>uo(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?Ds(i.options.delay):0;i.steps.forEach(a=>{const s=e.createSubContext(i.options);o&&s.delayNextStep(o),uo(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?hm(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?Ds(r.delay):0;o&&(6===e.previousNode.type||0==n&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=N_);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),uo(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;uo(this,i.animation,e),e.previousNode=i,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)}}const N_={};class $C{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=N_,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new B_(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=Ds(n.duration)),null!=n.delay&&(r.delay=Ds(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]=hm(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 $C(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=N_,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 Nve(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(Rve,"."+this._enterClassName)).replace(Pve,"."+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 Ube(t){return new ue(3014,!1)}()),s}}class B_{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 B_(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||ls),this._currentKeyframe.set(e,ls);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(i,e,n,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},a=function Bve(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,ls)}else mc(r,e)}),e}(i,this._globalTimelineStyles);for(let[s,c]of a){const l=hm(c,o,n);this._pendingStyles.set(s,l),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??ls),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=mc(s,new Map,this._backFill);l.forEach((d,u)=>{d===n1?i.add(u):d===ls&&e.add(u)}),n||l.set("offset",c/this.duration),r.push(l)});const o=i.size?A_(i.values()):[],a=e.size?A_(e.values()):[];if(n){const s=r[0],c=new Map(s);s.set("offset",0),c.set("offset",1),r=[s,c]}return UC(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}class Nve extends B_{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=mc(i[0]);c.set("offset",0),o.push(c);const l=mc(i[0]);l.set("offset",x3(s)),o.push(l);const d=i.length-1;for(let u=1;u<=d;u++){let h=mc(i[u]);const f=h.get("offset");h.set("offset",x3((e+f*n)/a)),o.push(h)}n=a,e=0,r="",i=o}return UC(this.element,i,this.preStyleProps,this.postStyleProps,n,e,r,!0)}}function x3(t,i=3){const e=Math.pow(10,i-1);return Math.round(t*e)/e}class jC{}const Vve=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 Hve extends jC{normalizePropertyName(i,e){return BC(i)}normalizeStyleValue(i,e,n,r){let o="";const a=n.toString().trim();if(Vve.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 Abe(t,i){return new ue(3005,!1)}())}return a+o}}function y3(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 WC={};class w3{constructor(i,e,n){this._triggerName=i,this.ast=e,this._stateStyles=n}match(i,e,n,r){return function Uve(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||WC,m=this.buildStyles(n,s&&s.params||WC,u),g=c&&c.params||WC,p=this.buildStyles(r,g,u),b=new Set,C=new Map,y=new Map,M="void"===r,q={params:zve(g,h),delay:this.ast.options?.delay},N=d?[]:zC(i,e,this.ast.animation,o,a,m,p,q,l,u);let E=0;if(N.forEach(B=>{E=Math.max(B.duration+B.delay,E)}),u.length)return y3(e,this._triggerName,n,r,M,m,p,[],[],C,y,E,u);N.forEach(B=>{const G=B.element,Z=lo(C,G,new Set);B.preStyleProps.forEach(me=>Z.add(me));const j=lo(y,G,new Set);B.postStyleProps.forEach(me=>j.add(me)),G!==e&&b.add(G)});const H=A_(b.values());return y3(e,this._triggerName,n,r,M,m,p,N,H,C,y,E)}}function zve(t,i){const e=dm(i);for(const n in t)t.hasOwnProperty(n)&&null!=t[n]&&(e[n]=t[n]);return e}class $ve{constructor(i,e,n){this.styles=i,this.defaultParams=e,this.normalizer=n}buildStyles(i,e){const n=new Map,r=dm(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=hm(a,r,e));const c=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,c,a,e),n.set(s,a)})}),n}}class Wve{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 $ve(r.style,r.options&&r.options.params||{},n))}),C3(this.states,"true","1"),C3(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new w3(i,r,this.states))}),this.fallbackTransition=function Gve(t,i,e){return new w3(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 C3(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 qve=new L_;class Xve{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=VC(this._driver,e,n,r);if(n.length)throw function Xbe(t){return new ue(3503,!1)}();this._animations.set(i,o)}_buildPlayer(i,e,n){const r=i.element,o=e3(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=zC(this._driver,e,o,OC,D_,new Map,new Map,n,qve,r),a.forEach(d=>{const u=lo(s,d.element,new Map);d.postStyleProps.forEach(h=>u.set(h,null))})):(r.push(function Qbe(){return new ue(3300,!1)}()),a=[]),r.length)throw function Ybe(t){return new ue(3504,!1)}();s.forEach((d,u)=>{d.forEach((h,f)=>{d.set(f,this._driver.computeStyle(u,f,ls))})});const l=fc(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 Kbe(t){return new ue(3301,!1)}();return e}listen(i,e,n,r){const o=AC(e,"","","");return TC(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 k3="ng-animate-queued",GC="ng-animate-disabled",Jve=[],S3={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},exe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Po="__ng_removed";class qC{get params(){return this.options.params}constructor(i,e=""){this.namespaceId=e;const n=i&&i.hasOwnProperty("value");if(this.value=function rxe(t){return t??null}(n?i.value:i),n){const o=dm(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 fm="void",XC=new qC(fm);class txe{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,Lo(e,this._hostClassName)}listen(i,e,n,r){if(!this._triggers.has(e))throw function Zbe(t,i){return new ue(3302,!1)}();if(null==n||0==n.length)throw function Jbe(t){return new ue(3303,!1)}();if(!function oxe(t){return"start"==t||"done"==t}(n))throw function eve(t,i){return new ue(3400,!1)}();const o=lo(this._elementListeners,i,[]),a={name:e,phase:n,callback:r};o.push(a);const s=lo(this._engine.statesByElement,i,new Map);return s.has(e)||(Lo(i,E_),Lo(i,E_+"-"+e),s.set(e,XC)),()=>{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 tve(t){return new ue(3401,!1)}();return e}trigger(i,e,n,r=!0){const o=this._getTrigger(e),a=new QC(this.id,e,i);let s=this._engine.statesByElement.get(i);s||(Lo(i,E_),Lo(i,E_+"-"+e),this._engine.statesByElement.set(i,s=new Map));let c=s.get(e);const l=new qC(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),s.set(e,l),c||(c=XC),l.value!==fm&&c.value===l.value){if(!function cxe(t,i){const e=Object.keys(t),n=Object.keys(i);if(e.length!=n.length)return!1;for(let r=0;r{Ml(i,p),Na(i,b)})}return}const h=lo(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||(Lo(i,k3),a.onStart(()=>{Du(i,k3)})),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 b=p.indexOf(a);b>=0&&p.splice(b,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,T_,!0);n.forEach(r=>{if(r[Po])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,fm,r);d&&s.push(d)}}),s.length)return this._engine.markElementAsRemoved(this.id,i,!0,e,a),n&&fc(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)||XC,d=new qC(fm),u=new QC(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[Po];(!o||o===S3)&&(n.afterFlush(()=>this.clearElementCache(i)),n.destroyInnerAnimations(i),n._onRemovalComplete(i,e))}}insertNode(i,e){Lo(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=AC(o,n.triggerName,n.fromState.value,n.toState.value);c._data=i,TC(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 ixe{_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 txe(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(V_(e)){const o=this._fetchNamespace(i);if(o)return o.trigger(e,n,r),!0}return!1}insertNode(i,e,n,r){if(!V_(e))return;const o=e[Po];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),Lo(i,GC)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),Du(i,GC))}removeNode(i,e,n,r){if(V_(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[Po]={namespaceId:i,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:o}}listen(i,e,n,r,o){return V_(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,T_,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(i,PC,!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 fc(this.players).onDone(()=>i());i()})}processLeaveNode(i){const e=i[Po];if(e&&e.setForRemoval){if(i[Po]=S3,e.namespaceId){this.destroyInnerAnimations(i);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(i)}this._onRemovalComplete(i,e.setForRemoval)}i.classList?.contains(GC)&&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?fc(e).onDone(()=>{n.forEach(r=>r())}):n.forEach(r=>r())}}reportError(i){throw function ive(t){return new ue(3402,!1)}()}_flushAnimations(i,e){const n=new L_,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=OC+g++;m.set(Y,he),ne.forEach(se=>Lo(se,he))});const p=[],b=new Set,C=new Set;for(let ne=0;neb.add(se)):C.add(Y))}const y=new Map,M=T3(h,Array.from(b));M.forEach((ne,Y)=>{const he=D_+g++;y.set(Y,he),ne.forEach(se=>Lo(se,he))}),i.push(()=>{f.forEach((ne,Y)=>{const he=m.get(Y);ne.forEach(se=>Du(se,he))}),M.forEach((ne,Y)=>{const he=y.get(Y);ne.forEach(se=>Du(se,he))}),p.forEach(ne=>{this.processLeaveNode(ne)})});const q=[],N=[];for(let ne=this._namespaceList.length-1;ne>=0;ne--)this._namespaceList[ne].drainQueuedTransitions(e).forEach(he=>{const se=he.player,Be=he.element;if(q.push(se),this.collectedEnterElements.length){const U=Be[Po];if(U&&U.setForMove){if(U.previousTriggersValues&&U.previousTriggersValues.has(he.triggerName)){const ae=U.previousTriggersValues.get(he.triggerName),xe=this.statesByElement.get(he.element);if(xe&&xe.has(he.triggerName)){const Re=xe.get(he.triggerName);Re.value=ae,xe.set(he.triggerName,Re)}}return void se.destroy()}}const ce=!u||!this.driver.containsElement(u,Be),Ke=y.get(Be),gt=m.get(Be),F=this._buildInstruction(he,n,gt,Ke,ce);if(F.errors&&F.errors.length)return void N.push(F);if(ce)return se.onStart(()=>Ml(Be,F.fromStyles)),se.onDestroy(()=>Na(Be,F.toStyles)),void r.push(se);if(he.isFallbackTransition)return se.onStart(()=>Ml(Be,F.fromStyles)),se.onDestroy(()=>Na(Be,F.toStyles)),void r.push(se);const K=[];F.timelines.forEach(U=>{U.stretchStartingKeyframe=!0,this.disabledNodes.has(U.element)||K.push(U)}),F.timelines=K,n.append(Be,F.timelines),a.push({instruction:F,player:se,element:Be}),F.queriedElements.forEach(U=>lo(s,U,[]).push(se)),F.preStyleProps.forEach((U,ae)=>{if(U.size){let xe=c.get(ae);xe||c.set(ae,xe=new Set),U.forEach((Re,Pe)=>xe.add(Pe))}}),F.postStyleProps.forEach((U,ae)=>{let xe=l.get(ae);xe||l.set(ae,xe=new Set),U.forEach((Re,Pe)=>xe.add(Pe))})});if(N.length){const ne=[];N.forEach(Y=>{ne.push(function nve(t,i){return new ue(3505,!1)}())}),q.forEach(Y=>Y.destroy()),this.reportError(ne)}const E=new Map,H=new Map;a.forEach(ne=>{const Y=ne.element;n.has(Y)&&(H.set(Y,Y),this._beforeAnimationBuild(ne.player.namespaceId,ne.instruction,E))}),r.forEach(ne=>{const Y=ne.element;this._getPreviousPlayers(Y,!1,ne.namespaceId,ne.triggerName,null).forEach(se=>{lo(E,Y,[]).push(se),se.destroy()})});const B=p.filter(ne=>A3(ne,c,l)),G=new Map;E3(G,this.driver,C,l,ls).forEach(ne=>{A3(ne,c,l)&&B.push(ne)});const j=new Map;f.forEach((ne,Y)=>{E3(j,this.driver,new Set(ne),c,n1)}),B.forEach(ne=>{const Y=G.get(ne),he=j.get(ne);G.set(ne,new Map([...Array.from(Y?.entries()??[]),...Array.from(he?.entries()??[])]))});const me=[],ye=[],de={};a.forEach(ne=>{const{element:Y,player:he,instruction:se}=ne;if(n.has(Y)){if(d.has(Y))return he.onDestroy(()=>Na(Y,se.toStyles)),he.disabled=!0,he.overrideTotalTime(se.totalTime),void r.push(he);let Be=de;if(H.size>1){let Ke=Y;const gt=[];for(;Ke=Ke.parentNode;){const F=H.get(Ke);if(F){Be=F;break}gt.push(Ke)}gt.forEach(F=>H.set(F,Be))}const ce=this._buildAnimation(he.namespaceId,se,E,o,j,G);if(he.setRealPlayer(ce),Be===de)me.push(he);else{const Ke=this.playersByElement.get(Be);Ke&&Ke.length&&(he.parentPlayer=fc(Ke)),r.push(he)}}else Ml(Y,se.fromStyles),he.onDestroy(()=>Na(Y,se.toStyles)),ye.push(he),d.has(Y)&&r.push(he)}),ye.forEach(ne=>{const Y=o.get(ne.element);if(Y&&Y.length){const he=fc(Y);ne.setRealPlayer(he)}}),r.forEach(ne=>{ne.parentPlayer?ne.syncPlayerEvents(ne.parentPlayer):ne.destroy()});for(let ne=0;ne!ce.destroyed);Be.length?axe(this,Y,Be):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[Po];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==fm;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=lo(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)})}Ml(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[Po];if(p&&p.removedBeforeQueried)return new Yh(m.duration,m.delay);const b=g!==c,C=function sxe(t){const i=[];return M3(t,i),i}((n.get(g)||Jve).map(E=>E.getRealPlayer())).filter(E=>!!E.element&&E.element===g),y=o.get(g),M=a.get(g),q=e3(0,this._normalizer,0,m.keyframes,y,M),N=this._buildPlayer(m,q,C);if(m.subTimeline&&r&&u.add(g),b){const E=new QC(i,s,g);E.setRealPlayer(N),l.push(E)}return N});l.forEach(m=>{lo(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>function nxe(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=>Lo(m,d3));const f=fc(h);return f.onDestroy(()=>{d.forEach(m=>Du(m,d3)),Na(c,e.toStyles)}),u.forEach(m=>{lo(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 Yh(i.duration,i.delay)}}class QC{constructor(i,e,n){this.namespaceId=i,this.triggerName=e,this.element=n,this._player=new Yh,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=>TC(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){lo(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 V_(t){return t&&1===t.nodeType}function D3(t,i){const e=t.style.display;return t.style.display=i??"none",e}function E3(t,i,e,n,r){const o=[];e.forEach(c=>o.push(D3(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[Po]=exe,a.push(l))}),t.set(l,d)});let s=0;return e.forEach(c=>D3(c,o[s++])),a}function T3(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 Lo(t,i){t.classList?.add(i)}function Du(t,i){t.classList?.remove(i)}function axe(t,i,e){fc(e).onDone(()=>t.processLeaveNode(i))}function M3(t,i){for(let e=0;er.add(o)):i.set(t,n),e.delete(t),!0}class H_{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new ixe(i,e,n),this._timelineEngine=new Xve(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=VC(this._driver,o,c,l);if(c.length)throw function Gbe(t,i){return new ue(3404,!1)}();s=function jve(t,i,e){return new Wve(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]=t3(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]=t3(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 dxe=(()=>{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&&Na(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Na(this._element,this._initialStyles),this._endStyles&&(Na(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Ml(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ml(this._element,this._endStyles),this._endStyles=null),Na(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function YC(t){let i=null;return t.forEach((e,n)=>{(function uxe(t){return"display"===t||"position"===t})(n)&&(i=i||new Map,i.set(n,e))}),i}class I3{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:g3(this.element,r))}),this.currentSnapshot=i}triggerCallback(i){const e="start"===i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class hxe{validateStyleProperty(i){return!0}validateAnimatableStyleProperty(i){return!0}matchesElement(i,e){return!1}containsElement(i,e){return a3(i,e)}getParentElement(i){return FC(i)}query(i,e,n){return s3(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 I3);(function gve(t,i){return 0===t||0===i})(n,r)&&d.forEach(f=>{f.currentSnapshot.forEach((m,g)=>l.set(g,m))});let u=function hve(t){return t.length?t[0]instanceof Map?t:t.map(i=>u3(i)):[]}(e).map(f=>mc(f));u=function _ve(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,g3(t,s)))}}return i}(i,u,l);const h=function lxe(t,i){let e=null,n=null;return Array.isArray(i)&&i.length?(e=YC(i[0]),i.length>1&&(n=YC(i[i.length-1]))):i instanceof Map&&(e=YC(i)),e||n?new dxe(t,e,n):null}(i,u);return new I3(i,u,c,h)}}let fxe=(()=>{class t extends aF{constructor(e,n){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(n.body,{id:"0",encapsulation:Vo.None,styles:[],data:{animation:[]}})}build(e){const n=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?sF(e):e;return F3(this._renderer,null,n,"register",[r]),new mxe(n,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(X(Ku),X(ot))},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})();class mxe extends CX{constructor(i,e){super(),this._id=i,this._renderer=e}create(i,e){return new pxe(this._id,i,e||{},this._renderer)}}class pxe{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 F3(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 F3(t,i,e,n,r){return t.setProperty(i,`@@${e}:${n}`,r)}const R3="@.disabled";let gxe=(()=>{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 O3("",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 _xe(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)(X(Ku),X(H_),X(ze))},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})();class O3{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==R3?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 _xe extends O3{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==R3?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 bxe(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 vxe(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 P3=[{provide:aF,useClass:fxe},{provide:jC,useFactory:function yxe(){return new Hve}},{provide:H_,useClass:(()=>{class t extends H_{constructor(e,n,r,o){super(e.body,n,r)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(X(ot),X(RC),X(jC),X(Ed))},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})()},{provide:Ku,useFactory:function wxe(t,i,e){return new gxe(t,i,e)},deps:[Kp,H_,ze]}],KC=[{provide:RC,useFactory:()=>new hxe},{provide:Ii,useValue:"BrowserAnimations"},...P3],L3=[{provide:RC,useClass:c3},{provide:Ii,useValue:"NoopAnimations"},...P3];let Cxe=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?L3:KC}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({providers:KC,imports:[zM]}),t})(),kxe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[yt,yt]}),t})(),eye=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[Mg,Xn,yt,Xs,KI,kxe]}),t})(),tye=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=lt({type:t,bootstrap:[kbe]});static#i=this.\u0275inj=ct({imports:[JG,zM,hee,Eae,Cxe,Fte,abe,oF,BQ,JQ,kF,Dre,k0,GZ,aY,JZ,JK,lee,DY,JY,Aee,$1,Wee,tte,gie,Tie,Kte,$ie,eye,zne,$1,pbe]})}return t})();G$().bootstrapModule(tye).catch(t=>console.error(t))},327:function(Rl,_m){var gc,_c;void 0!==(_c="function"==typeof(gc=function(){"use strict";function sa(ri,pi,_r){var Fi=new XMLHttpRequest;Fi.open("GET",ri),Fi.responseType="blob",Fi.onload=function(){fo(Fi.response,pi,_r)},Fi.onerror=function(){console.error("could not download file")},Fi.send()}function kt(ri){var pi=new XMLHttpRequest;pi.open("HEAD",ri,!1);try{pi.send()}catch{}return 200<=pi.status&&299>=pi.status}function bc(ri){try{ri.dispatchEvent(new MouseEvent("click"))}catch{var pi=document.createEvent("MouseEvents");pi.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),ri.dispatchEvent(pi)}}var Gr="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,Eu=Gr.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),fo=Gr.saveAs||("object"!=typeof window||window!==Gr?function(){}:"download"in HTMLAnchorElement.prototype&&!Eu?function(ri,pi,_r){var Fi=Gr.URL||Gr.webkitURL,br=document.createElement("a");br.download=pi=pi||ri.name||"download",br.rel="noopener","string"==typeof ri?(br.href=ri,br.origin===location.origin?bc(br):kt(br.href)?sa(ri,pi,_r):bc(br,br.target="_blank")):(br.href=Fi.createObjectURL(ri),setTimeout(function(){Fi.revokeObjectURL(br.href)},4e4),setTimeout(function(){bc(br)},0))}:"msSaveOrOpenBlob"in navigator?function(ri,pi,_r){if(pi=pi||ri.name||"download","string"!=typeof ri)navigator.msSaveOrOpenBlob(function Ol(ri,pi){return typeof pi>"u"?pi={autoBom:!1}:"object"!=typeof pi&&(console.warn("Deprecated: Expected third argument to be a object"),pi={autoBom:!pi}),pi.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(ri.type)?new Blob(["\ufeff",ri],{type:ri.type}):ri}(ri,_r),pi);else if(kt(ri))sa(ri,pi,_r);else{var Fi=document.createElement("a");Fi.href=ri,Fi.target="_blank",setTimeout(function(){bc(Fi)})}}:function(ri,pi,_r,Fi){if((Fi=Fi||open("","_blank"))&&(Fi.document.title=Fi.document.body.innerText="downloading..."),"string"==typeof ri)return sa(ri,pi,_r);var br="application/octet-stream"===ri.type,$_=/constructor/i.test(Gr.HTMLElement)||Gr.safari,Pl=/CriOS\/[\d]+/.test(navigator.userAgent);if((Pl||br&&$_||Eu)&&typeof FileReader<"u"){var Bo=new FileReader;Bo.onloadend=function(){var Va=Bo.result;Va=Pl?Va:Va.replace(/^data:[^;]*;/,"data:attachment/file;"),Fi?Fi.location.href=Va:location=Va,Fi=null},Bo.readAsDataURL(ri)}else{var vc=Gr.URL||Gr.webkitURL,Tu=vc.createObjectURL(ri);Fi?Fi.location=Tu:location.href=Tu,Fi=null,setTimeout(function(){vc.revokeObjectURL(Tu)},4e4)}});Gr.saveAs=fo.saveAs=fo,Rl.exports=fo})?gc.apply(_m,[]):gc)&&(Rl.exports=_c)}},Rl=>{Rl(Rl.s=385)}]); \ No newline at end of file +(self.webpackChunksct_implementation_demonstrator=self.webpackChunksct_implementation_demonstrator||[]).push([[179],{385:(Rl,_m,gc)=>{"use strict";function Xt(t){return"function"==typeof t}function _c(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 Ol=_c(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 sa(t,i){if(t){const e=t.indexOf(i);0<=e&&t.splice(e,1)}}class kt{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(Xt(n))try{n()}catch(o){i=o instanceof Ol?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{Eu(o)}catch(a){i=i??[],a instanceof Ol?i=[...i,...a.errors]:i.push(a)}}if(i)throw new Ol(i)}}add(i){var e;if(i&&i!==this)if(this.closed)Eu(i);else{if(i instanceof kt){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)&&sa(e,i)}remove(i){const{_finalizers:e}=this;e&&sa(e,i),i instanceof kt&&i._removeParent(this)}}kt.EMPTY=(()=>{const t=new kt;return t.closed=!0,t})();const bc=kt.EMPTY;function Gr(t){return t instanceof kt||t&&"closed"in t&&Xt(t.remove)&&Xt(t.add)&&Xt(t.unsubscribe)}function Eu(t){Xt(t)?t():t.unsubscribe()}const fo={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ri={setTimeout(t,i,...e){const{delegate:n}=ri;return n?.setTimeout?n.setTimeout(t,i,...e):setTimeout(t,i,...e)},clearTimeout(t){const{delegate:i}=ri;return(i?.clearTimeout||clearTimeout)(t)},delegate:void 0};function pi(t){ri.setTimeout(()=>{const{onUnhandledError:i}=fo;if(!i)throw t;i(t)})}function _r(){}const Fi=Pl("C",void 0,void 0);function Pl(t,i,e){return{kind:t,value:i,error:e}}let Bo=null;function vc(t){if(fo.useDeprecatedSynchronousErrorHandling){const i=!Bo;if(i&&(Bo={errorThrown:!1,error:null}),t(),i){const{errorThrown:e,error:n}=Bo;if(Bo=null,e)throw n}}else t()}class Va extends kt{constructor(i){super(),this.isStopped=!1,i?(this.destination=i,Gr(i)&&i.add(this)):this.destination=X3}static create(i,e,n){return new Ll(i,e,n)}next(i){this.isStopped?W_(function $_(t){return Pl("N",t,void 0)}(i),this):this._next(i)}error(i){this.isStopped?W_(function br(t){return Pl("E",void 0,t)}(i),this):(this.isStopped=!0,this._error(i))}complete(){this.isStopped?W_(Fi,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 W3=Function.prototype.bind;function j_(t,i){return W3.call(t,i)}class G3{constructor(i){this.partialObserver=i}next(i){const{partialObserver:e}=this;if(e.next)try{e.next(i)}catch(n){bm(n)}}error(i){const{partialObserver:e}=this;if(e.error)try{e.error(i)}catch(n){bm(n)}else bm(i)}complete(){const{partialObserver:i}=this;if(i.complete)try{i.complete()}catch(e){bm(e)}}}class Ll extends Va{constructor(i,e,n){let r;if(super(),Xt(i)||!i)r={next:i??void 0,error:e??void 0,complete:n??void 0};else{let o;this&&fo.useDeprecatedNextContext?(o=Object.create(i),o.unsubscribe=()=>this.unsubscribe(),r={next:i.next&&j_(i.next,o),error:i.error&&j_(i.error,o),complete:i.complete&&j_(i.complete,o)}):r=i}this.destination=new G3(r)}}function bm(t){fo.useDeprecatedSynchronousErrorHandling?function Tu(t){fo.useDeprecatedSynchronousErrorHandling&&Bo&&(Bo.errorThrown=!0,Bo.error=t)}(t):pi(t)}function W_(t,i){const{onStoppedNotification:e}=fo;e&&ri.setTimeout(()=>e(t,i))}const X3={closed:!0,next:_r,error:function q3(t){throw t},complete:_r},G_="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ts(t){return t}function tk(t){return 0===t.length?Ts:1===t.length?t[0]:function(e){return t.reduce((n,r)=>r(n),e)}}let ai=(()=>{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 K3(t){return t&&t instanceof Va||function Y3(t){return t&&Xt(t.next)&&Xt(t.error)&&Xt(t.complete)}(t)&&Gr(t)}(e)?e:new Ll(e,n,r);return vc(()=>{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=ik(n))((r,o)=>{const a=new Ll({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)}[G_](){return this}pipe(...e){return tk(e)(this)}toPromise(e){return new(e=ik(e))((n,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>n(o))})}}return t.create=i=>new t(i),t})();function ik(t){var i;return null!==(i=t??fo.Promise)&&void 0!==i?i:Promise}const Z3=_c(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let ke=(()=>{class t extends ai{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const n=new nk(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new Z3}next(e){vc(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const n of this.currentObservers)n.next(e)}})}error(e){vc(()=>{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(){vc(()=>{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?bc:(this.currentObservers=null,o.push(e),new kt(()=>{this.currentObservers=null,sa(o,e)}))}_checkFinalizedStatuses(e){const{hasError:n,thrownError:r,isStopped:o}=this;n?e.error(r):o&&e.complete()}asObservable(){const e=new ai;return e.source=this,e}}return t.create=(i,e)=>new nk(i,e),t})();class nk extends ke{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:bc}}function rk(t){return Xt(t?.lift)}function qi(t){return i=>{if(rk(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 Vi(t,i,e,n,r){return new J3(t,i,e,n,r)}class J3 extends Va{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 Ze(t,i){return qi((e,n)=>{let r=0;e.subscribe(Vi(n,o=>{n.next(t.call(i,o,r++))}))})}function xc(t){return this instanceof xc?(this.v=t,this):new xc(t)}function n8(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 sk(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 X_=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function ck(t){return Xt(t?.then)}function lk(t){return Xt(t[G_])}function dk(t){return Symbol.asyncIterator&&Xt(t?.[Symbol.asyncIterator])}function uk(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 hk=function o8(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function fk(t){return Xt(t?.[hk])}function mk(t){return function i8(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 xc?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 xc(e.read());if(r)return yield xc(void 0);yield yield xc(n)}}finally{e.releaseLock()}})}function pk(t){return Xt(t?.getReader)}function Jn(t){if(t instanceof ai)return t;if(null!=t){if(lk(t))return function a8(t){return new ai(i=>{const e=t[G_]();if(Xt(e.subscribe))return e.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(X_(t))return function s8(t){return new ai(i=>{for(let e=0;e{t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,pi)})}(t);if(dk(t))return gk(t);if(fk(t))return function l8(t){return new ai(i=>{for(const e of t)if(i.next(e),i.closed)return;i.complete()})}(t);if(pk(t))return function d8(t){return gk(mk(t))}(t)}throw uk(t)}function gk(t){return new ai(i=>{(function u8(t,i){var e,n,r,o;return function e8(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=n8(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 Ha(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 An(t,i,e=1/0){return Xt(i)?An((n,r)=>Ze((o,a)=>i(n,o,r,a))(Jn(t(n,r))),e):("number"==typeof i&&(e=i),qi((n,r)=>function h8(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;Jn(e(g,d++)).subscribe(Vi(i,b=>{r?.(b),o?f(b):i.next(b)},()=>{p=!0},void 0,()=>{if(p)try{for(l--;c.length&&lm(b)):m(b)}h()}catch(b){i.error(b)}}))};return t.subscribe(Vi(i,f,()=>{u=!0,h()})),()=>{s?.()}}(n,r,t,e)))}function Nl(t=1/0){return An(Ts,t)}const qr=new ai(t=>t.complete());function _k(t){return t&&Xt(t.schedule)}function Q_(t){return t[t.length-1]}function bk(t){return Xt(Q_(t))?t.pop():void 0}function Mu(t){return _k(Q_(t))?t.pop():void 0}function vk(t,i=0){return qi((e,n)=>{e.subscribe(Vi(n,r=>Ha(n,t,()=>n.next(r),i),()=>Ha(n,t,()=>n.complete(),i),r=>Ha(n,t,()=>n.error(r),i)))})}function xk(t,i=0){return qi((e,n)=>{n.add(t.schedule(()=>e.subscribe(n),i))})}function yk(t,i){if(!t)throw new Error("Iterable cannot be null");return new ai(e=>{Ha(e,i,()=>{const n=t[Symbol.asyncIterator]();Ha(e,i,()=>{n.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function rn(t,i){return i?function x8(t,i){if(null!=t){if(lk(t))return function p8(t,i){return Jn(t).pipe(xk(i),vk(i))}(t,i);if(X_(t))return function _8(t,i){return new ai(e=>{let n=0;return i.schedule(function(){n===t.length?e.complete():(e.next(t[n++]),e.closed||this.schedule())})})}(t,i);if(ck(t))return function g8(t,i){return Jn(t).pipe(xk(i),vk(i))}(t,i);if(dk(t))return yk(t,i);if(fk(t))return function b8(t,i){return new ai(e=>{let n;return Ha(e,i,()=>{n=t[hk](),Ha(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)}),()=>Xt(n?.return)&&n.return()})}(t,i);if(pk(t))return function v8(t,i){return yk(mk(t),i)}(t,i)}throw uk(t)}(t,i):Jn(t)}function Pi(...t){const i=Mu(t),e=function m8(t,i){return"number"==typeof Q_(t)?t.pop():i}(t,1/0),n=t;return n.length?1===n.length?Jn(n[0]):Nl(e)(rn(n,i)):qr}function wk(t={}){const{connector:i=(()=>new ke),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 qi((g,p)=>{l++,!u&&!d&&h();const b=c=c??i();p.add(()=>{l--,0===l&&!u&&!d&&(s=Y_(m,r))}),b.subscribe(p),!a&&l>0&&(a=new Ll({next:C=>b.next(C),error:C=>{u=!0,h(),s=Y_(f,e,C),b.error(C)},complete:()=>{d=!0,h(),s=Y_(f,n),b.complete()}}),Jn(g).subscribe(a))})(o)}}function Y_(t,i,...e){if(!0===i)return void t();if(!1===i)return;const n=new Ll({next:()=>{n.unsubscribe(),t()}});return Jn(i(...e)).subscribe(n)}function Ri(t){for(let i in t)if(t[i]===Ri)return i;throw Error("Could not find renamed property on target object.")}function K_(t,i){for(const e in i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function Li(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Li).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 Z_(t,i){return null==t||""===t?null===i?"":i:null==i||""===i?t:t+" "+i}const y8=Ri({__forward_ref__:Ri});function Qt(t){return t.__forward_ref__=Qt,t.toString=function(){return Li(this())},t}function _t(t){return J_(t)?t():t}function J_(t){return"function"==typeof t&&t.hasOwnProperty(y8)&&t.__forward_ref__===Qt}function eb(t){return t&&!!t.\u0275providers}const vm="https://g.co/ng/security#xss";class ue extends Error{constructor(i,e){super(xm(i,e)),this.code=i}}function xm(t,i){return`NG0${Math.abs(t)}${i?": "+i.trim():""}`}function St(t){return"string"==typeof t?t:null==t?"":String(t)}function ym(t,i){throw new ue(-201,!1)}function mo(t,i){null==t&&function vi(t,i,e,n){throw new Error(`ASSERTION ERROR: ${t}`+(null==n?"":` [Expected=> ${e} ${n} ${i} <=Actual]`))}(i,t,null,"!=")}function we(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ct(t){return{providers:t.providers||[],imports:t.imports||[]}}function wm(t){return Ck(t,Cm)||Ck(t,Sk)}function Ck(t,i){return t.hasOwnProperty(i)?t[i]:null}function kk(t){return t&&(t.hasOwnProperty(tb)||t.hasOwnProperty(M8))?t[tb]:null}const Cm=Ri({\u0275prov:Ri}),tb=Ri({\u0275inj:Ri}),Sk=Ri({ngInjectableDef:Ri}),M8=Ri({ngInjectorDef:Ri});var bt=(()=>((bt=bt||{})[bt.Default=0]="Default",bt[bt.Host=1]="Host",bt[bt.Self=2]="Self",bt[bt.SkipSelf=4]="SkipSelf",bt[bt.Optional=8]="Optional",bt))();let ib;function po(t){const i=ib;return ib=t,i}function Dk(t,i,e){const n=wm(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:e&bt.Optional?null:void 0!==i?i:void ym(Li(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)(),Au={},nb="__NG_DI_FLAG__",km="ngTempTokenPath",I8="ngTokenPath",F8=/\n/gm,R8="\u0275",Ek="__source";let Iu;function Bl(t){const i=Iu;return Iu=t,i}function O8(t,i=bt.Default){if(void 0===Iu)throw new ue(-203,!1);return null===Iu?Dk(t,void 0,i):Iu.get(t,i&bt.Optional?null:void 0,i)}function X(t,i=bt.Default){return(function A8(){return ib}()||O8)(_t(t),i)}function ft(t,i=bt.Default){return X(t,Sm(i))}function Sm(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function rb(t){const i=[];for(let e=0;e((ca=ca||{})[ca.OnPush=0]="OnPush",ca[ca.Default=1]="Default",ca))(),Vo=(()=>{return(t=Vo||(Vo={}))[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",Vo;var t})();const za={},gi=[],Dm=Ri({\u0275cmp:Ri}),ob=Ri({\u0275dir:Ri}),ab=Ri({\u0275pipe:Ri}),Mk=Ri({\u0275mod:Ri}),$a=Ri({\u0275fac:Ri}),Ru=Ri({__NG_ELEMENT_ID__:Ri});let B8=0;function Le(t){return Ua(()=>{const i=Ik(t),e={...i,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===ca.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:null,data:t.data||{},encapsulation:t.encapsulation||Vo.Emulated,id:"c"+B8++,styles:t.styles||gi,_:null,schemas:t.schemas||null,tView:null};Fk(e);const n=t.dependencies;return e.directiveDefs=Em(n,!1),e.pipeDefs=Em(n,!0),e})}function H8(t){return xi(t)||er(t)}function U8(t){return null!==t}function lt(t){return Ua(()=>({type:t.type,bootstrap:t.bootstrap||gi,declarations:t.declarations||gi,imports:t.imports||gi,exports:t.exports||gi,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Ak(t,i){if(null==t)return za;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 Ua(()=>{const i=Ik(t);return Fk(i),i})}function Rr(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 xi(t){return t[Dm]||null}function er(t){return t[ob]||null}function Or(t){return t[ab]||null}function Qr(t,i){const e=t[Mk]||null;if(!e&&!0===i)throw new Error(`Type ${Li(t)} does not have '\u0275mod' property.`);return e}function Ik(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||gi,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ak(t.inputs,i),outputs:Ak(t.outputs)}}function Fk(t){t.features?.forEach(i=>i(t))}function Em(t,i){if(!t)return null;const e=i?Or:H8;return()=>("function"==typeof t?t():t).map(n=>e(n)).filter(U8)}const ja=0,Qe=1,Rt=2,Ji=3,Ho=4,yc=5,tr=6,Hl=7,on=8,Tm=9,Mm=10,Bt=11,sb=12,Ou=13,Rk=14,Ul=15,ir=16,Pu=17,zl=18,la=19,Lu=20,Ok=21,Ui=22,cb=1,Pk=2,Am=7,Im=8,$l=9,vr=10;function Yr(t){return Array.isArray(t)&&"object"==typeof t[cb]}function Uo(t){return Array.isArray(t)&&!0===t[cb]}function lb(t){return 0!=(4&t.flags)}function Nu(t){return t.componentOffset>-1}function Fm(t){return 1==(1&t.flags)}function zo(t){return!!t.template}function $8(t){return 0!=(256&t[Rt])}function wc(t,i){return t.hasOwnProperty($a)?t[$a]:null}class G8{constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Ai(){return Bk}function Bk(t){return t.type.prototype.ngOnChanges&&(t.setInput=X8),q8}function q8(){const t=Hk(this),i=t?.current;if(i){const e=t.previous;if(e===za)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function X8(t,i,e,n){const r=this.declaredInputs[e],o=Hk(t)||function Q8(t,i){return t[Vk]=i}(t,{previous:za,current:null}),a=o.current||(o.current={}),s=o.previous,c=s[r];a[r]=new G8(c&&c.currentValue,i,s===za),t[n]=i}Ai.ngInherit=!0;const Vk="__ngSimpleChanges__";function Hk(t){return t[Vk]||null}const go=function(t,i,e){},Uk="svg";function Gn(t){for(;Array.isArray(t);)t=t[ja];return t}function Rm(t,i){return Gn(i[t])}function Kr(t,i){return Gn(i[t.index])}function $k(t,i){return t.data[i]}function jl(t,i){return t[i]}function Pr(t,i){const e=i[t];return Yr(e)?e:e[ja]}function Om(t){return 64==(64&t[Rt])}function As(t,i){return null==i?null:t[i]}function jk(t){t[zl]=0}function ub(t,i){t[yc]+=i;let e=t,n=t[Ji];for(;null!==n&&(1===i&&1===e[yc]||-1===i&&0===e[yc]);)n[yc]+=i,e=n,n=n[Ji]}const Dt={lFrame:eS(null),bindingsEnabled:!0};function Gk(){return Dt.bindingsEnabled}function ve(){return Dt.lFrame.lView}function oi(){return Dt.lFrame.tView}function _e(t){return Dt.lFrame.contextLView=t,t[on]}function be(t){return Dt.lFrame.contextLView=null,t}function qn(){let t=qk();for(;null!==t&&64===t.type;)t=t.parent;return t}function qk(){return Dt.lFrame.currentTNode}function da(t,i){const e=Dt.lFrame;e.currentTNode=t,e.isParent=i}function hb(){return Dt.lFrame.isParent}function fb(){Dt.lFrame.isParent=!1}function xr(){const t=Dt.lFrame;let i=t.bindingRootIndex;return-1===i&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function Wa(){return Dt.lFrame.bindingIndex}function Wl(){return Dt.lFrame.bindingIndex++}function Ga(t){const i=Dt.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function cB(t,i){const e=Dt.lFrame;e.bindingIndex=e.bindingRootIndex=t,mb(i)}function mb(t){Dt.lFrame.currentDirectiveIndex=t}function pb(t){const i=Dt.lFrame.currentDirectiveIndex;return-1===i?null:t[i]}function Kk(){return Dt.lFrame.currentQueryIndex}function gb(t){Dt.lFrame.currentQueryIndex=t}function dB(t){const i=t[Qe];return 2===i.type?i.declTNode:1===i.type?t[tr]:null}function Zk(t,i,e){if(e&bt.SkipSelf){let r=i,o=t;for(;!(r=r.parent,null!==r||e&bt.Host||(r=dB(o),null===r||(o=o[Ul],10&r.type))););if(null===r)return!1;i=r,t=o}const n=Dt.lFrame=Jk();return n.currentTNode=i,n.lView=t,!0}function _b(t){const i=Jk(),e=t[Qe];Dt.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function Jk(){const t=Dt.lFrame,i=null===t?null:t.child;return null===i?eS(t):i}function eS(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 tS(){const t=Dt.lFrame;return Dt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const iS=tS;function bb(){const t=tS();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 yr(){return Dt.lFrame.selectedIndex}function Cc(t){Dt.lFrame.selectedIndex=t}function Xi(){const t=Dt.lFrame;return $k(t.tView,t.selectedIndex)}function qa(){Dt.lFrame.currentNamespace=Uk}function Gl(){!function mB(){Dt.lFrame.currentNamespace=null}()}function Pm(t,i){for(let e=i.directiveStart,n=i.directiveEnd;e=n)break}else i[c]<0&&(t[zl]+=65536),(s>11>16&&(3&t[Rt])===i){t[Rt]+=2048,go(4,s,o);try{o.call(s)}finally{go(5,s,o)}}}else{go(4,s,o);try{o.call(s)}finally{go(5,s,o)}}}const ql=-1;class Vu{constructor(i,e,n){this.factory=i,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function yb(t,i,e){let n=0;for(;ni){a=o-1;break}}}for(;o>16}(t),n=i;for(;e>0;)n=n[Ul],e--;return n}let wb=!0;function Hm(t){const i=wb;return wb=t,i}const cS=255,lS=5;let wB=0;const ua={};function Um(t,i){const e=dS(t,i);if(-1!==e)return e;const n=i[Qe];n.firstCreatePass&&(t.injectorIndex=i.length,Cb(n.data,t),Cb(i,null),Cb(n.blueprint,null));const r=kb(t,i),o=t.injectorIndex;if(sS(r)){const a=Bm(r),s=Vm(r,i),c=s[Qe].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 dS(t,i){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===i[t.injectorIndex+8]?-1:t.injectorIndex}function kb(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=_S(r),null===n)return ql;if(e++,r=r[Ul],-1!==n.injectorIndex)return n.injectorIndex|e<<16}return ql}function Sb(t,i,e){!function CB(t,i,e){let n;"string"==typeof e?n=e.charCodeAt(0)||0:e.hasOwnProperty(Ru)&&(n=e[Ru]),null==n&&(n=e[Ru]=wB++);const r=n&cS;i.data[t+(r>>lS)]|=1<=0?i&cS:EB:i}(e);if("function"==typeof o){if(!Zk(i,t,n))return n&bt.Host?uS(r,0,n):hS(i,e,n,r);try{const a=o(n);if(null!=a||n&bt.Optional)return a;ym()}finally{iS()}}else if("number"==typeof o){let a=null,s=dS(t,i),c=ql,l=n&bt.Host?i[ir][tr]:null;for((-1===s||n&bt.SkipSelf)&&(c=-1===s?kb(t,i):i[s+8],c!==ql&&gS(n,!1)?(a=i[Qe],s=Bm(c),i=Vm(c,i)):s=-1);-1!==s;){const d=i[Qe];if(pS(o,s,d.data)){const u=SB(s,i,e,a,n,l);if(u!==ua)return u}c=i[s+8],c!==ql&&gS(n,i[Qe].data[s+8]===l)&&pS(o,s,i)?(a=d,s=Bm(c),i=Vm(c,i)):s=-1}}return r}function SB(t,i,e,n,r,o){const a=i[Qe],s=a.data[t+8],d=zm(s,a,e,null==n?Nu(s)&&wb:n!=a&&0!=(3&s.type),r&bt.Host&&o===s);return null!==d?kc(i,a,d,s):ua}function zm(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&&zo(f)&&f.type===e)return c}return null}function kc(t,i,e,n){let r=t[e];const o=i.data;if(function bB(t){return t instanceof Vu}(r)){const a=r;a.resolving&&function w8(t,i){const e=i?`. Dependency path: ${i.join(" > ")} > ${t}`:"";throw new ue(-200,`Circular dependency in DI detected for ${t}${e}`)}(function bi(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():St(t)}(o[e]));const s=Hm(a.canSeeViewProviders);a.resolving=!0;const c=a.injectImpl?po(a.injectImpl):null;Zk(t,n,bt.Default);try{r=t[e]=a.factory(void 0,o,t,n),i.firstCreatePass&&e>=n.directiveStart&&function gB(t,i,e){const{ngOnChanges:n,ngOnInit:r,ngDoCheck:o}=i.type.prototype;if(n){const a=Bk(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&&po(c),Hm(s),a.resolving=!1,iS()}}return r}function pS(t,i,e){return!!(e[i+(t>>lS)]&1<{const i=t.prototype.constructor,e=i[$a]||Db(i),n=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==n;){const o=r[$a]||Db(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function Db(t){return J_(t)?()=>{const i=Db(_t(t));return i&&i()}:wc(t)}function _S(t){const i=t[Qe],e=i.type;return 2===e?i.declTNode:1===e?t[tr]:null}function _o(t){return function kB(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 Eb(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(Yl)?c[Yl]:Object.defineProperty(c,Yl,{value:[]})[Yl];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 oe{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=we({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Sc(t,i){t.forEach(e=>Array.isArray(e)?Sc(e,i):i(e))}function vS(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function $m(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function $u(t,i){const e=[];for(let n=0;n=0?t[1|n]=e:(n=~n,function FB(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=Jl(t,i);if(e>=0)return t[1|e]}function Jl(t,i){return function xS(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),ha=Fu(Zl("Optional"),8),Dc=Fu(Zl("SkipSelf"),4);var Lr=(()=>((Lr=Lr||{})[Lr.Important=1]="Important",Lr[Lr.DashCase=2]="DashCase",Lr))();const Ob=new Map;let e5=0;const Lb="__ngContext__";function nr(t,i){Yr(i)?(t[Lb]=i[Lu],function n5(t){Ob.set(t[Lu],t)}(i)):t[Lb]=i}let Nb;function Bb(t,i){return Nb(t,i)}function qu(t){const i=t[Ji];return Uo(i)?i[Ji]:i}function Vb(t){return HS(t[Ou])}function Hb(t){return HS(t[Ho])}function HS(t){for(;null!==t&&!Uo(t);)t=t[Ho];return t}function td(t,i,e,n,r){if(null!=n){let o,a=!1;Uo(n)?o=n:Yr(n)&&(a=!0,n=n[ja]);const s=Gn(n);0===t&&null!==e?null==r?GS(i,e,s):Ec(i,e,s,r||null,!0):1===t&&null!==e?Ec(i,e,s,r||null,!0):2===t?function qb(t,i,e){const n=Xm(t,i);n&&function C5(t,i,e,n){t.removeChild(i,e,n)}(t,n,i,e)}(i,s,a):3===t&&i.destroyNode(s),null!=o&&function D5(t,i,e,n,r){const o=e[Am];o!==Gn(e)&&td(i,t,n,o,r);for(let s=vr;s0&&(t[e-1][Ho]=n[Ho]);const o=$m(t,vr+i);!function p5(t,i){Xu(t,i,i[Bt],2,null,null),i[ja]=null,i[tr]=null}(n[Qe],n);const a=o[la];null!==a&&a.detachView(o[Qe]),n[Ji]=null,n[Ho]=null,n[Rt]&=-65}return n}function $S(t,i){if(!(128&i[Rt])){const e=i[Bt];e.destroyNode&&Xu(t,i,e,3,null,null),function b5(t){let i=t[Ou];if(!i)return jb(t[Qe],t);for(;i;){let e=null;if(Yr(i))e=i[Ou];else{const n=i[vr];n&&(e=n)}if(!e){for(;i&&!i[Ho]&&i!==t;)Yr(i)&&jb(i[Qe],i),i=i[Ji];null===i&&(i=t),Yr(i)&&jb(i[Qe],i),e=i&&i[Ho]}i=e}}(i)}}function jb(t,i){if(!(128&i[Rt])){i[Rt]&=-65,i[Rt]|=128,function w5(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===Vo.None||o===Vo.Emulated)return null}return Kr(n,e)}}(t,i.parent,e)}function Ec(t,i,e,n,r){t.insertBefore(i,e,n,r)}function GS(t,i,e){t.appendChild(i,e)}function qS(t,i,e,n,r){null!==n?Ec(t,i,e,n,r):GS(t,i,e)}function Xm(t,i){return t.parentNode(i)}function XS(t,i,e){return YS(t,i,e)}let Wb,Km,Yb,Zm,YS=function QS(t,i,e){return 40&t.type?Kr(t,e):null};function Qm(t,i,e,n){const r=jS(t,n,i),o=i[Bt],s=XS(n.parent||i[tr],n,i);if(null!=r)if(Array.isArray(e))for(let c=0;ct,createScript:t=>t,createScriptURL:t=>t})}catch{}return Km}()?.createHTML(t)||t}function nD(t){return function Kb(){if(void 0===Zm&&(Zm=null,Hi.trustedTypes))try{Zm=Hi.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Zm}()?.createHTML(t)||t}class Tc{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${vm})`}}class R5 extends Tc{getTypeName(){return"HTML"}}class O5 extends Tc{getTypeName(){return"Style"}}class P5 extends Tc{getTypeName(){return"Script"}}class L5 extends Tc{getTypeName(){return"URL"}}class N5 extends Tc{getTypeName(){return"ResourceURL"}}function Jr(t){return t instanceof Tc?t.changingThisBreaksApplicationSecurity:t}function fa(t,i){const e=function B5(t){return t instanceof Tc&&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 ${vm})`)}return e===i}class j5{constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{const e=(new window.DOMParser).parseFromString(id(i),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(i):(e.removeChild(e.firstChild),e)}catch{return null}}}class W5{constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){const e=this.inertDocument.createElement("template");return e.innerHTML=id(i),e}}const q5=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Jm(t){return(t=String(t)).match(q5)?t:"unsafe:"+t}function Xa(t){const i={};for(const e of t.split(","))i[e]=!0;return i}function Qu(...t){const i={};for(const e of t)for(const n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}const sD=Xa("area,br,col,hr,img,wbr"),cD=Xa("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),lD=Xa("rp,rt"),Zb=Qu(sD,Qu(cD,Xa("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")),Qu(lD,Xa("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")),Qu(lD,cD)),Jb=Xa("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),dD=Qu(Jb,Xa("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"),Xa("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")),X5=Xa("script,style,template");class Q5{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(!Zb.hasOwnProperty(e))return this.sanitizedSomething=!0,!X5.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();Zb.hasOwnProperty(e)&&!sD.hasOwnProperty(e)&&(this.buf.push(""))}chars(i){this.buf.push(uD(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 Y5=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,K5=/([^\#-~ |!])/g;function uD(t){return t.replace(/&/g,"&").replace(Y5,function(i){return"&#"+(1024*(i.charCodeAt(0)-55296)+(i.charCodeAt(1)-56320)+65536)+";"}).replace(K5,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}let ep;function hD(t,i){let e=null;try{ep=ep||function aD(t){const i=new W5(t);return function G5(){try{return!!(new window.DOMParser).parseFromString(id(""),"text/html")}catch{return!1}}()?new j5(i):i}(t);let n=i?String(i):"";e=ep.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=ep.getInertBodyElement(n)}while(n!==o);return id((new Q5).sanitizeChildren(ev(e)||e))}finally{if(e){const n=ev(e)||e;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function ev(t){return"content"in t&&function Z5(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var _i=(()=>((_i=_i||{})[_i.NONE=0]="NONE",_i[_i.HTML=1]="HTML",_i[_i.STYLE=2]="STYLE",_i[_i.SCRIPT=3]="SCRIPT",_i[_i.URL=4]="URL",_i[_i.RESOURCE_URL=5]="RESOURCE_URL",_i))();function Mc(t){const i=Yu();return i?nD(i.sanitize(_i.HTML,t)||""):fa(t,"HTML")?nD(Jr(t)):hD(function iD(){return void 0!==Yb?Yb:typeof document<"u"?document:void 0}(),St(t))}function tp(t){const i=Yu();return i?i.sanitize(_i.URL,t)||"":fa(t,"URL")?Jr(t):Jm(St(t))}function Yu(){const t=ve();return t&&t[sb]}const ip=new oe("ENVIRONMENT_INITIALIZER"),pD=new oe("INJECTOR",-1),gD=new oe("INJECTOR_DEF_TYPES");class _D{get(i,e=Au){if(e===Au){const n=new Error(`NullInjectorError: No provider for ${Li(i)}!`);throw n.name="NullInjectorError",n}return e}}function o6(...t){return{\u0275providers:bD(0,t),\u0275fromNgModule:!0}}function bD(t,...i){const e=[],n=new Set;let r;return Sc(i,o=>{const a=o;tv(a,e,[],n)&&(r||(r=[]),r.push(a))}),void 0!==r&&vD(r,e),e}function vD(t,i){for(let e=0;e{i.push(o)})}}function tv(t,i,e,n){if(!(t=_t(t)))return!1;let r=null,o=kk(t);const a=!o&&xi(t);if(o||a){if(a&&!a.standalone)return!1;r=t}else{const c=t.ngModule;if(o=kk(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)tv(l,i,e,n)}}else{if(!o)return!1;{if(null!=o.imports&&!s){let l;n.add(r);try{Sc(o.imports,d=>{tv(d,i,e,n)&&(l||(l=[]),l.push(d))})}finally{}void 0!==l&&vD(l,i)}if(!s){const l=wc(r)||(()=>new r);i.push({provide:r,useFactory:l,deps:gi},{provide:gD,useValue:r,multi:!0},{provide:ip,useValue:()=>X(r),multi:!0})}const c=o.providers;null==c||s||iv(c,d=>{i.push(d)})}}return r!==t&&void 0!==t.providers}function iv(t,i){for(let e of t)eb(e)&&(e=e.\u0275providers),Array.isArray(e)?iv(e,i):i(e)}const a6=Ri({provide:String,useValue:Ri});function nv(t){return null!==t&&"object"==typeof t&&a6 in t}function Ac(t){return"function"==typeof t}const rv=new oe("Set Injector scope."),np={},c6={};let ov;function rp(){return void 0===ov&&(ov=new _D),ov}class ma{}class wD extends ma{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,sv(i,a=>this.processProvider(a)),this.records.set(pD,nd(void 0,this)),r.has("environment")&&this.records.set(ma,nd(void 0,this));const o=this.records.get(rv);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(gD.multi,gi,bt.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=Bl(this),n=po(void 0);try{return i()}finally{Bl(e),po(n)}}get(i,e=Au,n=bt.Default){this.assertNotDestroyed(),n=Sm(n);const r=Bl(this),o=po(void 0);try{if(!(n&bt.SkipSelf)){let s=this.records.get(i);if(void 0===s){const c=function f6(t){return"function"==typeof t||"object"==typeof t&&t instanceof oe}(i)&&wm(i);s=c&&this.injectableDefInScope(c)?nd(av(i),np):null,this.records.set(i,s)}if(null!=s)return this.hydrate(i,s)}return(n&bt.Self?rp():this.parent).get(i,e=n&bt.Optional&&e===Au?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[km]=a[km]||[]).unshift(Li(i)),r)throw a;return function L8(t,i,e,n){const r=t[km];throw i[Ek]&&r.unshift(i[Ek]),t.message=function N8(t,i,e,n=null){t=t&&"\n"===t.charAt(0)&&t.charAt(1)==R8?t.slice(2):t;let r=Li(i);if(Array.isArray(i))r=i.map(Li).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):Li(s)))}r=`{${o.join(", ")}}`}return`${e}${n?"("+n+")":""}[${r}]: ${t.replace(F8,"\n ")}`}("\n"+t.message,r,e,n),t[I8]=r,t[km]=null,t}(a,i,"R3InjectorError",this.source)}throw a}finally{po(o),Bl(r)}}resolveInjectorInitializers(){const i=Bl(this),e=po(void 0);try{const n=this.get(ip.multi,gi,bt.Self);for(const r of n)r()}finally{Bl(i),po(e)}}toString(){const i=[],e=this.records;for(const n of e.keys())i.push(Li(n));return`R3Injector[${i.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ue(205,!1)}processProvider(i){let e=Ac(i=_t(i))?i:_t(i&&i.provide);const n=function d6(t){return nv(t)?nd(void 0,t.useValue):nd(CD(t),np)}(i);if(Ac(i)||!0!==i.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=nd(void 0,np,!0),r.factory=()=>rb(r.multi),this.records.set(e,r)),e=i,r.multi.push(i)}this.records.set(e,n)}hydrate(i,e){return e.value===np&&(e.value=c6,e.value=e.factory()),"object"==typeof e.value&&e.value&&function h6(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=_t(i.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function av(t){const i=wm(t),e=null!==i?i.factory:wc(t);if(null!==e)return e;if(t instanceof oe)throw new ue(204,!1);if(t instanceof Function)return function l6(t){const i=t.length;if(i>0)throw $u(i,"?"),new ue(204,!1);const e=function T8(t){return t&&(t[Cm]||t[Sk])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new ue(204,!1)}function CD(t,i,e){let n;if(Ac(t)){const r=_t(t);return wc(r)||av(r)}if(nv(t))n=()=>_t(t.useValue);else if(function yD(t){return!(!t||!t.useFactory)}(t))n=()=>t.useFactory(...rb(t.deps||[]));else if(function xD(t){return!(!t||!t.useExisting)}(t))n=()=>X(_t(t.useExisting));else{const r=_t(t&&(t.useClass||t.provide));if(!function u6(t){return!!t.deps}(t))return wc(r)||av(r);n=()=>new r(...rb(t.deps))}return n}function nd(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function sv(t,i){for(const e of t)Array.isArray(e)?sv(e,i):e&&eb(e)?sv(e.\u0275providers,i):i(e)}class m6{}class kD{}class g6{resolveComponentFactory(i){throw function p6(t){const i=Error(`No component factory found for ${Li(t)}. Did you add it to @NgModule.entryComponents?`);return i.ngComponent=t,i}(i)}}let Is=(()=>{class t{}return t.NULL=new g6,t})();function _6(){return rd(qn(),ve())}function rd(t,i){return new Ie(Kr(t,i))}let Ie=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=_6,t})();function b6(t){return t instanceof Ie?t.nativeElement:t}class Ku{}let Qa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function v6(){const t=ve(),e=Pr(qn().index,t);return(Yr(e)?e:t)[Bt]}(),t})(),x6=(()=>{class t{}return t.\u0275prov=we({token:t,providedIn:"root",factory:()=>null}),t})();class Ic{constructor(i){this.full=i,this.major=i.split(".")[0],this.minor=i.split(".")[1],this.patch=i.split(".").slice(2).join(".")}}const y6=new Ic("15.2.8"),cv={},lv="ngOriginalError";function dv(t){return t[lv]}class Ya{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&&dv(i);for(;e&&dv(e);)e=dv(e);return e||null}}function Ka(t){return t instanceof Function?t():t}function ED(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 TD="ng-template";function F6(t,i,e){let n=0,r=!0;for(;no?"":r[u+1].toLowerCase();const f=8&n?h:null;if(f&&-1!==ED(f,l,0)||2&n&&l!==h){if($o(n))return!1;a=!0}}}}else{if(!a&&!$o(n)&&!$o(c))return!1;if(a&&$o(c))continue;a=!1,n=c|1&n}}return $o(n)||a}function $o(t){return 0==(1&t)}function P6(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&&!$o(a)&&(i+=ID(o,r),r=""),n=a,o=o||!$o(n);e++}return""!==r&&(i+=ID(o,r)),i}const Et={};function w(t){FD(oi(),ve(),yr()+t,!1)}function FD(t,i,e,n){if(!n)if(3==(3&i[Rt])){const o=t.preOrderCheckHooks;null!==o&&Lm(i,o,e)}else{const o=t.preOrderHooks;null!==o&&Nm(i,o,0,e)}Cc(e)}function LD(t,i=null,e=null,n){const r=ND(t,i,e,n);return r.resolveInjectorInitializers(),r}function ND(t,i=null,e=null,n,r=new Set){const o=[e||gi,o6(t)];return n=n||("object"==typeof t?void 0:Li(t)),new wD(o,i||rp(),n||null,r)}let an=(()=>{class t{static create(e,n){if(Array.isArray(e))return LD({name:""},n,e,"");{const r=e.name??"";return LD({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=Au,t.NULL=new _D,t.\u0275prov=we({token:t,providedIn:"any",factory:()=>X(pD)}),t.__NG_ELEMENT_ID__=-1,t})();function x(t,i=bt.Default){const e=ve();return null===e?X(t,i):fS(qn(),e,_t(t),i)}function pa(){throw new Error("invalid")}function jD(t,i){const e=t.contentQueries;if(null!==e)for(let n=0;nUi&&FD(t,i,Ui,!1),go(a?2:0,r),e(n,r)}finally{Cc(o),go(a?3:1,r)}}function _v(t,i,e){if(lb(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,Zu(t,e,r.hostVars,Et),r)}function ga(t,i,e,n,r,o){const a=Kr(t,i);!function Cv(t,i,e,n,r,o,a){if(null==o)t.removeAttribute(i,r,e);else{const s=null==a?St(o):a(o,n||"",r);t.setAttribute(i,r,s,e)}}(i[Bt],a,o,t.value,e,n,r)}function EV(t,i,e,n,r,o){const a=o[i];if(null!==a){const s=n.setInput;for(let c=0;c0&&kv(e)}}function kv(t){for(let n=Vb(t);null!==n;n=Hb(n))for(let r=vr;r0&&kv(o)}const e=t[Qe].components;if(null!==e)for(let n=0;n0&&kv(r)}}function FV(t,i){const e=Pr(i,t),n=e[Qe];(function RV(t,i){for(let e=i.length;e-1&&($b(i,n),$m(e,n))}this._attachedToViewContainer=!1}$S(this._lView[Qe],this._lView)}onDestroy(i){qD(this._lView[Qe],this._lView,null,i)}markForCheck(){lp(this._cdRefInjectingView||this._lView)}detach(){this._lView[Rt]&=-65}reattach(){this._lView[Rt]|=64}detectChanges(){dp(this._lView[Qe],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ue(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function _5(t,i){Xu(t,i,i[Bt],2,null,null)}(this._lView[Qe],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new ue(902,!1);this._appRef=i}}class OV extends Ju{constructor(i){super(i),this._view=i}detectChanges(){const i=this._view;dp(i[Qe],i,i[on],!1)}checkNoChanges(){}get context(){return null}}class nE extends Is{constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){const e=xi(i);return new eh(e,this.ngModule)}}function rE(t){const i=[];for(let e in t)t.hasOwnProperty(e)&&i.push({propName:t[e],templateName:e});return i}class LV{constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){n=Sm(n);const r=this.injector.get(i,cv,n);return r!==cv||e===cv?r:this.parentInjector.get(i,e,n)}}class eh extends kD{get inputs(){return rE(this.componentDef.inputs)}get outputs(){return rE(this.componentDef.outputs)}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=function U6(t){return t.map(H6).join(",")}(i.selectors),this.ngContentSelectors=i.ngContentSelectors?i.ngContentSelectors:[],this.isBoundToModule=!!e}create(i,e,n,r){let o=(r=r||this.ngModule)instanceof ma?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const a=o?new LV(i,o):i,s=a.get(Ku,null);if(null===s)throw new ue(407,!1);const c=a.get(x6,null),l=s.createRenderer(null,this.componentDef),d=this.componentDef.selectors[0][0]||"div",u=n?function uV(t,i,e){return t.selectRootElement(i,e===Vo.ShadowDom)}(l,n,this.componentDef.encapsulation):zb(l,d,function PV(t){const i=t.toLowerCase();return"svg"===i?Uk:"math"===i?"math":null}(d)),h=this.componentDef.onPush?288:272,f=xv(0,null,null,1,0,null,null,null,null,null),m=ap(null,f,null,h,null,null,s,l,c,a,null);let g,p;_b(m);try{const b=this.componentDef;let C,y=null;b.findHostDirectiveDefs?(C=[],y=new Map,b.findHostDirectiveDefs(b,C,y),C.push(b)):C=[b];const M=function BV(t,i){const e=t[Qe],n=Ui;return t[n]=i,sd(e,n,2,"#host",null)}(m,u),q=function VV(t,i,e,n,r,o,a,s){const c=r[Qe];!function HV(t,i,e,n){for(const r of t)i.mergedAttrs=Hu(i.mergedAttrs,r.hostAttrs);null!==i.mergedAttrs&&(up(i,i.mergedAttrs,!0),null!==e&&tD(n,e,i))}(n,t,i,a);const l=o.createRenderer(i,e),d=ap(r,GD(e),null,e.onPush?32:16,r[t.index],t,o,l,s||null,null,null);return c.firstCreatePass&&wv(c,t,n.length-1),cp(r,d),r[t.index]=d}(M,u,b,C,m,s,l);p=$k(f,Ui),u&&function zV(t,i,e,n){if(n)yb(t,e,["ng-version",y6.full]);else{const{attrs:r,classes:o}=function z6(t){const i=[],e=[];let n=1,r=2;for(;n0&&eD(t,e,o.join(" "))}}(l,b,u,n),void 0!==e&&function $V(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=Hu(r.hostAttrs,e=Hu(e,r.hostAttrs))}}(n)}function Ev(t){return t===za?{}:t===gi?[]:t}function GV(t,i){const e=t.viewQuery;t.viewQuery=e?(n,r)=>{i(n,r),e(n,r)}:i}function qV(t,i){const e=t.contentQueries;t.contentQueries=e?(n,r,o)=>{i(n,r,o),e(n,r,o)}:i}function XV(t,i){const e=t.hostBindings;t.hostBindings=e?(n,r)=>{i(n,r),e(n,r)}:i}function fp(t){return!!Tv(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function Tv(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function _a(t,i,e){return t[i]=e}function rr(t,i,e){return!Object.is(t[i],e)&&(t[i]=e,!0)}function Fc(t,i,e,n){const r=rr(t,i,e);return rr(t,i+1,n)||r}function st(t,i,e,n){const r=ve();return rr(r,Wl(),i)&&(oi(),ga(Xi(),r,t,i,e,n)),st}function ld(t,i,e,n){return rr(t,Wl(),e)?i+St(e)+n:Et}function ud(t,i,e,n,r,o,a,s){const l=function mp(t,i,e,n,r){const o=Fc(t,i,e,n);return rr(t,i+2,r)||o}(t,Wa(),e,r,a);return Ga(3),l?i+St(e)+n+St(r)+o+St(a)+s:Et}function P(t,i,e,n,r,o,a,s){const c=ve(),l=oi(),d=t+Ui,u=l.firstCreatePass?function r7(t,i,e,n,r,o,a,s,c){const l=i.consts,d=sd(i,t,4,a||null,As(l,s));yv(i,e,d,As(l,c)),Pm(i,d);const u=d.tView=xv(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];da(u,!1);const h=c[Bt].createComment("");Qm(l,c,h,u),nr(h,c),cp(c,c[d]=ZD(h,c,h,u)),Fm(u)&&bv(l,c,u),null!=a&&vv(c,u,s)}function wt(t){return jl(function aB(){return Dt.lFrame.contextLView}(),Ui+t)}function S(t,i,e){const n=ve();return rr(n,Wl(),i)&&eo(oi(),Xi(),n,t,i,n[Bt],e,!1),S}function Mv(t,i,e,n,r){const a=r?"class":"style";Dv(t,e,i.inputs[a],a,n)}function _(t,i,e,n){const r=ve(),o=oi(),a=Ui+t,s=r[Bt],c=o.firstCreatePass?function a7(t,i,e,n,r,o){const a=i.consts,c=sd(i,t,2,n,As(a,r));return yv(i,e,c,As(a,o)),null!==c.attrs&&up(c,c.attrs,!1),null!==c.mergedAttrs&&up(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]=zb(s,i,function pB(){return Dt.lFrame.currentNamespace}()),d=Fm(c);return da(c,!0),tD(s,l,c),32!=(32&c.flags)&&Qm(o,r,l,c),0===function tB(){return Dt.lFrame.elementDepthCount}()&&nr(l,r),function iB(){Dt.lFrame.elementDepthCount++}(),d&&(bv(o,r,c),_v(o,c,r)),null!==n&&vv(r,c),_}function v(){let t=qn();hb()?fb():(t=t.parent,da(t,!1));const i=t;!function nB(){Dt.lFrame.elementDepthCount--}();const e=oi();return e.firstCreatePass&&(Pm(e,t),lb(t)&&e.queries.elementEnd(t)),null!=i.classesWithoutHost&&function vB(t){return 0!=(8&t.flags)}(i)&&Mv(e,i,ve(),i.classesWithoutHost,!0),null!=i.stylesWithoutHost&&function xB(t){return 0!=(16&t.flags)}(i)&&Mv(e,i,ve(),i.stylesWithoutHost,!1),v}function ge(t,i,e,n){return _(t,i,e,n),v(),ge}function di(t,i,e){const n=ve(),r=oi(),o=t+Ui,a=r.firstCreatePass?function s7(t,i,e,n,r){const o=i.consts,a=As(o,n),s=sd(i,t,8,"ng-container",a);return null!==a&&up(s,a,!0),yv(i,e,s,As(o,r)),null!==i.queries&&i.queries.elementStart(i,s),s}(o,r,n,i,e):r.data[o];da(a,!0);const s=n[o]=n[Bt].createComment("");return Qm(r,n,s,a),nr(s,n),Fm(a)&&(bv(r,n,a),_v(r,a,n)),null!=e&&vv(n,a),di}function ui(){let t=qn();const i=oi();return hb()?fb():(t=t.parent,da(t,!1)),i.firstCreatePass&&(Pm(i,t),lb(t)&&i.queries.elementEnd(t)),ui}function to(t,i,e){return di(t,i,e),ui(),to}function Ne(){return ve()}function ih(t){return!!t&&"function"==typeof t.then}function bE(t){return!!t&&"function"==typeof t.subscribe}const Av=bE;function z(t,i,e,n){const r=ve(),o=oi(),a=qn();return vE(o,r,r[Bt],a,t,i,n),z}function pp(t,i){const e=qn(),n=ve(),r=oi();return vE(r,n,tE(pb(r.data),e,n),e,t,i),pp}function vE(t,i,e,n,r,o,a){const s=Fm(n),l=t.firstCreatePass&&eE(t),d=i[on],u=JD(i);let h=!0;if(3&n.type||a){const g=Kr(n,i),p=a?a(g):g,b=u.length,C=a?M=>a(Gn(M[n.index])):n.index;let y=null;if(!a&&s&&(y=function c7(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!==y)(y.__ngLastListenerFn__||y).__ngNextListenerFn__=o,y.__ngLastListenerFn__=o,h=!1;else{o=yE(n,i,d,o,!1);const M=e.listen(p,r,o);u.push(o,M),l&&l.push(r,C,b,b+1)}}else o=yE(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?Pr(t.index,i):i);let c=xE(i,e,n,a),l=o.__ngNextListenerFn__;for(;l;)c=xE(i,e,l,a)&&c,l=l.__ngNextListenerFn__;return r&&!1===c&&(a.preventDefault(),a.returnValue=!1),c}}function V(t=1){return function uB(t){return(Dt.lFrame.contextLView=function hB(t,i){for(;t>0;)i=i[Ul],t--;return i}(t,Dt.lFrame.contextLView))[on]}(t)}function l7(t,i){let e=null;const n=function L6(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 Iv(t){return 2|t}function Rc(t){return(131068&t)>>2}function Fv(t,i){return-131069&t|i<<2}function Rv(t){return 1|t}function AE(t,i,e,n,r){const o=t[e+1],a=null===i;let s=n?Fs(o):Rc(o),c=!1;for(;0!==s&&(!1===c||a);){const d=t[s+1];p7(t[s],i)&&(c=!0,t[s+1]=n?Rv(d):Iv(d)),s=n?Fs(d):Rc(d)}c&&(t[e+1]=n?Iv(o):Rv(o))}function p7(t,i){return null===t||null==i||(Array.isArray(t)?t[1]:t)===i||!(!Array.isArray(t)||"string"!=typeof i)&&Jl(t,i)>=0}const Fn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function IE(t){return t.substring(Fn.key,Fn.keyEnd)}function FE(t,i){const e=Fn.textEnd;return e===i?-1:(i=Fn.keyEnd=function v7(t,i,e){for(;i32;)i++;return i}(t,Fn.key=i,e),bd(t,i,e))}function bd(t,i,e){for(;i=0;e=FE(i,e))Zr(t,IE(i),!0)}function jo(t,i,e,n){const r=ve(),o=oi(),a=Ga(2);o.firstUpdatePass&&VE(o,t,a,n),i!==Et&&rr(r,a,i)&&UE(o,o.data[yr()],r,r[Bt],t,r[a+1]=function A7(t,i){return null==t||""===t||("string"==typeof i?t+=i:"object"==typeof t&&(t=Li(Jr(t)))),t}(i,e),n,a)}function Wo(t,i,e,n){const r=oi(),o=Ga(2);r.firstUpdatePass&&VE(r,null,o,n);const a=ve();if(e!==Et&&rr(a,o,e)){const s=r.data[yr()];if($E(s,n)&&!BE(r,o)){let c=n?s.classesWithoutHost:s.stylesWithoutHost;null!==c&&(e=Z_(c,e||"")),Mv(r,s,a,e,n)}else!function M7(t,i,e,n,r,o,a,s){r===Et&&(r=gi);let c=0,l=0,d=0=t.expandoStartIndex}function VE(t,i,e,n){const r=t.data;if(null===r[e+1]){const o=r[yr()],a=BE(t,e);$E(o,n)&&null===i&&!a&&(i=!1),i=function C7(t,i,e,n){const r=pb(t);let o=n?i.residualClasses:i.residualStyles;if(null===r)0===(n?i.classBindings:i.styleBindings)&&(e=nh(e=Ov(null,t,i,e,n),i.attrs,n),o=null);else{const a=i.directiveStylingLast;if(-1===a||t[a]!==r)if(e=Ov(r,t,i,e,n),null===o){let c=function k7(t,i,e){const n=e?i.classBindings:i.styleBindings;if(0!==Rc(n))return t[Fs(n)]}(t,i,n);void 0!==c&&Array.isArray(c)&&(c=Ov(null,t,i,c[1],n),c=nh(c,i.attrs,n),function S7(t,i,e,n){t[Fs(e?i.classBindings:i.styleBindings)]=n}(t,i,n,c))}else o=function D7(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=Fs(t[s+1]);t[n+1]=_p(h,s),0!==h&&(t[h+1]=Fv(t[h+1],n)),t[s+1]=function u7(t,i){return 131071&t|i<<17}(t[s+1],n)}else t[n+1]=_p(s,0),0!==s&&(t[s+1]=Fv(t[s+1],n)),s=n;else t[n+1]=_p(c,0),0===s?s=n:t[c+1]=Fv(t[c+1],n),c=n;l&&(t[n+1]=Iv(t[n+1])),AE(t,d,n,!0),AE(t,d,n,!1),function m7(t,i,e,n,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof i&&Jl(o,i)>=0&&(e[n+1]=Rv(e[n+1]))}(i,d,t,n,o),a=_p(s,c),o?i.classBindings=a:i.styleBindings=a}(r,o,i,e,a,n)}}function Ov(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===Et&&(h=u?gi:void 0);let f=u?Mb(h,n):d===n?h:void 0;if(l&&!bp(f)&&(f=Mb(c,n)),bp(f)&&(s=f,a))return s;const m=t[r+1];r=a?Fs(m):Rc(m)}if(null!==i){let c=o?i.residualClasses:i.residualStyles;null!=c&&(s=Mb(c,n))}return s}function bp(t){return void 0!==t}function $E(t,i){return 0!=(t.flags&(i?8:16))}function k(t,i=""){const e=ve(),n=oi(),r=t+Ui,o=n.firstCreatePass?sd(n,r,1,i,null):n.data[r],a=e[r]=function Ub(t,i){return t.createText(i)}(e[Bt],i);Qm(n,e,a,o),da(o,!1)}function Ge(t){return it("",t,""),Ge}function it(t,i,e){const n=ve(),r=ld(n,t,i,e);return r!==Et&&Za(n,yr(),r),it}function vd(t,i,e,n,r){const o=ve(),a=function dd(t,i,e,n,r,o){const s=Fc(t,Wa(),e,r);return Ga(2),s?i+St(e)+n+St(r)+o:Et}(o,t,i,e,n,r);return a!==Et&&Za(o,yr(),a),vd}function Pv(t,i,e,n,r,o,a){const s=ve(),c=ud(s,t,i,e,n,r,o,a);return c!==Et&&Za(s,yr(),c),Pv}function xa(t,i,e){const n=ve();return rr(n,Wl(),i)&&eo(oi(),Xi(),n,t,i,n[Bt],e,!0),xa}function vp(t,i,e){const n=ve();if(rr(n,Wl(),i)){const o=oi(),a=Xi();eo(o,a,n,t,i,tE(pb(o.data),a,n),e,!0)}return vp}const Oc=void 0;var Q7=["en",[["a","p"],["AM","PM"],Oc],[["AM","PM"],Oc,Oc],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Oc,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Oc,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Oc,"{1} 'at' {0}",Oc],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function X7(t){const e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let xd={};function wr(t){const i=function Y7(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=sT(i);if(e)return e;const n=i.split("-")[0];if(e=sT(n),e)return e;if("en"===n)return Q7;throw new ue(701,!1)}function sT(t){return t in xd||(xd[t]=Hi.ng&&Hi.ng.common&&Hi.ng.common.locales&&Hi.ng.common.locales[t]),xd[t]}var je=(()=>((je=je||{})[je.LocaleId=0]="LocaleId",je[je.DayPeriodsFormat=1]="DayPeriodsFormat",je[je.DayPeriodsStandalone=2]="DayPeriodsStandalone",je[je.DaysFormat=3]="DaysFormat",je[je.DaysStandalone=4]="DaysStandalone",je[je.MonthsFormat=5]="MonthsFormat",je[je.MonthsStandalone=6]="MonthsStandalone",je[je.Eras=7]="Eras",je[je.FirstDayOfWeek=8]="FirstDayOfWeek",je[je.WeekendRange=9]="WeekendRange",je[je.DateFormat=10]="DateFormat",je[je.TimeFormat=11]="TimeFormat",je[je.DateTimeFormat=12]="DateTimeFormat",je[je.NumberSymbols=13]="NumberSymbols",je[je.NumberFormats=14]="NumberFormats",je[je.CurrencyCode=15]="CurrencyCode",je[je.CurrencySymbol=16]="CurrencySymbol",je[je.CurrencyName=17]="CurrencyName",je[je.Currencies=18]="Currencies",je[je.Directionality=19]="Directionality",je[je.PluralCase=20]="PluralCase",je[je.ExtraData=21]="ExtraData",je))();const yd="en-US";let cT=yd;function Bv(t,i,e,n,r){if(t=_t(t),Array.isArray(t))for(let o=0;o>20;if(Ac(t)||!t.multi){const f=new Vu(c,r,x),m=Hv(s,i,r?d:d+h,u);-1===m?(Sb(Um(l,a),o,s),Vv(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=Hv(s,i,d+h,u),m=Hv(s,i,d,d+h),p=m>=0&&e[m];if(r&&!p||!r&&!(f>=0&&e[f])){Sb(Um(l,a),o,s);const b=function qH(t,i,e,n,r){const o=new Vu(t,e,x);return o.multi=[],o.index=i,o.componentProviders=0,RT(o,r,n&&!e),o}(r?GH:WH,e.length,r,n,c);!r&&p&&(e[m].providerFactory=b),Vv(o,t,i.length,0),i.push(s),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),e.push(b),a.push(b)}else Vv(o,t,f>-1?f:m,RT(e[r?m:f],c,!r&&n));!r&&n&&p&&e[m].componentProviders++}}}function Vv(t,i,e,n){const r=Ac(i),o=function s6(t){return!!t.useClass}(i);if(r||o){const c=(o?_t(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 RT(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function Hv(t,i,e,n){for(let r=e;r{e.providersResolver=(n,r)=>function jH(t,i,e){const n=oi();if(n.firstCreatePass){const r=zo(t);Bv(e,n.data,n.blueprint,r,!0),Bv(i,n.data,n.blueprint,r,!1)}}(n,r?r(t):t,i)}}class wd{}class OT{}class PT extends wd{constructor(i,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new nE(this);const n=Qr(i);this._bootstrapComponents=Ka(n.bootstrap),this._r3Injector=ND(i,e,[{provide:wd,useValue:this},{provide:Is,useValue:this.componentFactoryResolver}],Li(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 zv extends OT{constructor(i){super(),this.moduleType=i}create(i){return new PT(this.moduleType,i)}}class QH extends wd{constructor(i,e,n){super(),this.componentFactoryResolver=new nE(this),this.instance=null;const r=new wD([...i,{provide:wd,useValue:this},{provide:Is,useValue:this.componentFactoryResolver}],e||rp(),n,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}}function kp(t,i,e=null){return new QH(t,i,e).injector}let YH=(()=>{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=bD(0,e.type),r=n.length>0?kp([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=we({token:t,providedIn:"environment",factory:()=>new t(X(ma))}),t})();function $v(t){t.getStandaloneInjector=i=>i.get(YH).getOrCreateStandaloneInjector(t)}function Go(t,i,e){const n=xr()+t,r=ve();return r[n]===Et?_a(r,n,e?i.call(e):i()):function th(t,i){return t[i]}(r,n)}function Ja(t,i,e,n){return zT(ve(),xr(),t,i,e,n)}function Wv(t,i,e,n,r){return $T(ve(),xr(),t,i,e,n,r)}function lh(t,i){const e=t[i];return e===Et?void 0:e}function zT(t,i,e,n,r,o){const a=i+e;return rr(t,a,r)?_a(t,a+1,o?n.call(o,r):n(r)):lh(t,a+1)}function $T(t,i,e,n,r,o,a){const s=i+e;return Fc(t,s,r,o)?_a(t,s+2,a?n.call(a,r,o):n(r,o)):lh(t,s+2)}function Cd(t,i){const e=oi();let n;const r=t+Ui;e.firstCreatePass?(n=function h9(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=wc(n.type)),a=po(x);try{const s=Hm(!1),c=o();return Hm(s),function o7(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}(e,ve(),r,c),c}finally{po(a)}}function Sp(t,i,e){const n=t+Ui,r=ve(),o=jl(r,n);return dh(r,n)?zT(r,xr(),i,o.transform,e,o):o.transform(e)}function Gv(t,i,e,n){const r=t+Ui,o=ve(),a=jl(o,r);return dh(o,r)?$T(o,xr(),i,a.transform,e,n,a):a.transform(e,n)}function dh(t,i){return t[Qe].data[i].pure}function qv(t){return i=>{setTimeout(t,void 0,i)}}const Ce=class g9 extends ke{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=qv(o),r&&(r=qv(r)),a&&(a=qv(a)));const s=super.subscribe({next:r,error:o,complete:a});return i instanceof kt&&i.add(s),s}};function _9(){return this._results[Symbol.iterator]()}class Rs{get changes(){return this._changes||(this._changes=new Ce)}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=Rs.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=_9)}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 bo(t){return t.flat(Number.POSITIVE_INFINITY)}(i);(this._changesDetected=!function AB(t,i,e){if(t.length!==i.length)return!1;for(let n=0;n{class t{}return t.__NG_ELEMENT_ID__=x9,t})();const b9=yi,v9=class extends b9{constructor(i,e,n){super(),this._declarationLView=i,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(i,e){const n=this._declarationTContainer.tView,r=ap(this._declarationLView,n,i,16,null,n.declTNode,null,null,null,null,e||null);r[Pu]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[la];return null!==a&&(r[la]=a.createEmbeddedView(n)),gv(n,r,i),new Ju(r)}};function x9(){return Dp(qn(),ve())}function Dp(t,i){return 4&t.type?new v9(i,t,rd(t,i)):null}let Oi=(()=>{class t{}return t.__NG_ELEMENT_ID__=y9,t})();function y9(){return QT(qn(),ve())}const w9=Oi,qT=class extends w9{constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return rd(this._hostTNode,this._hostLView)}get injector(){return new Xl(this._hostTNode,this._hostLView)}get parentInjector(){const i=kb(this._hostTNode,this._hostLView);if(sS(i)){const e=Vm(i,this._hostLView),n=Bm(i);return new Xl(e[Qe].data[n+8],e)}return new Xl(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){const e=XT(this._lContainer);return null!==e&&e[i]||null}get length(){return this._lContainer.length-vr}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 zu(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 eh(xi(i)),l=n||this.parentInjector;if(!o&&null==c.ngModule){const h=(a?l:this.parentInjector).get(ma,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[Qe];if(function eB(t){return Uo(t[Ji])}(n)){const d=this.indexOf(i);if(-1!==d)this.detach(d);else{const u=n[Ji],h=new qT(u,u[tr],u[Ji]);h.detach(h.indexOf(i))}}const o=this._adjustIndex(e),a=this._lContainer;!function v5(t,i,e,n){const r=vr+n,o=e.length;n>0&&(e[r-1][Ho]=i),n0)n.push(a[s/2]);else{const l=o[s+1],d=i[-c];for(let u=vr;u{class t{constructor(e){this.appInits=e,this.resolve=Tp,this.reject=Tp,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)(X(Mp,8))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Dd=new oe("AppId",{providedIn:"root",factory:function v2(){return`${ox()}${ox()}${ox()}`}});function ox(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const x2=new oe("Platform Initializer"),Ip=new oe("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Ii=new oe("AnimationModuleType");let X9=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const ya=new oe("LocaleId",{providedIn:"root",factory:()=>ft(ya,bt.Optional|bt.SkipSelf)||function Q9(){return typeof $localize<"u"&&$localize.locale||yd}()});class K9{constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}}let y2=(()=>{class t{compileModuleSync(e){return new zv(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const n=this.compileModuleSync(e),o=Ka(Qr(e).declarations).reduce((a,s)=>{const c=xi(s);return c&&a.push(new eh(c)),a},[]);return new K9(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=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const eU=(()=>Promise.resolve(0))();function ax(t){typeof Zone>"u"?eU.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class ze{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ce(!1),this.onMicrotaskEmpty=new Ce(!1),this.onStable=new Ce(!1),this.onError=new Ce(!1),typeof Zone>"u")throw new 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 tU(){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 rU(t){const i=()=>{!function nU(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Hi,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,cx(t),t.isCheckStableRunning=!0,sx(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),cx(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,r,o,a,s)=>{try{return k2(t),e.invokeTask(r,o,a,s)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&i(),S2(t)}},onInvoke:(e,n,r,o,a,s,c)=>{try{return k2(t),e.invoke(r,o,a,s,c)}finally{t.shouldCoalesceRunChangeDetection&&i(),S2(t)}},onHasTask:(e,n,r,o)=>{e.hasTask(r,o),n===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,cx(t),sx(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(!ze.isInAngularZone())throw new ue(909,!1)}static assertNotInAngularZone(){if(ze.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,iU,Tp,Tp);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 iU={};function sx(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 cx(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function k2(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function S2(t){t._nesting--,sx(t)}class oU{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ce,this.onMicrotaskEmpty=new Ce,this.onStable=new Ce,this.onError=new Ce}run(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 D2=new oe(""),Fp=new oe("");let ux,lx=(()=>{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,ux||(function aU(t){ux=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:()=>{ze.assertNotInAngularZone(),ax(()=>{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())ax(()=>{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)(X(ze),X(dx),X(Fp))},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})(),dx=(()=>{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 ux?.findTestabilityInTree(this,e,n)??null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const es=!1;let Os=null;const E2=new oe("AllowMultipleToken"),hx=new oe("PlatformDestroyListeners"),T2=new oe("appBootstrapListener");class M2{constructor(i,e){this.name=i,this.token=e}}function I2(t,i,e=[]){const n=`Platform: ${i}`,r=new oe(n);return(o=[])=>{let a=fx();if(!a||a.injector.get(E2,!1)){const s=[...e,...o,{provide:r,useValue:!0}];t?t(s):function lU(t){if(Os&&!Os.get(E2,!1))throw new ue(400,!1);Os=t;const i=t.get(R2);(function A2(t){const i=t.get(x2,null);i&&i.forEach(e=>e())})(t)}(function F2(t=[],i){return an.create({name:i,providers:[{provide:rv,useValue:"platform"},{provide:hx,useValue:new Set([()=>Os=null])},...t]})}(s,n))}return function uU(t){const i=fx();if(!i)throw new ue(401,!1);return i}()}}function fx(){return Os?.get(R2)??null}let R2=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,n){const r=function P2(t,i){let e;return e="noop"===t?new oU:("zone.js"===t?void 0:t)||new ze(i),e}(n?.ngZone,function O2(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}(n)),o=[{provide:ze,useValue:r}];return r.run(()=>{const a=an.create({providers:o,parent:this.injector,name:e.moduleType.name}),s=e.create(a),c=s.injector.get(Ya,null);if(!c)throw new ue(402,!1);return r.runOutsideAngular(()=>{const l=r.onError.subscribe({next:d=>{c.handleError(d)}});s.onDestroy(()=>{Rp(this._modules,s),l.unsubscribe()})}),function L2(t,i,e){try{const n=e();return ih(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(Ap);return l.runInitializers(),l.donePromise.then(()=>(function lT(t){mo(t,"Expected localeId to be defined"),"string"==typeof t&&(cT=t.toLowerCase().replace(/_/g,"-"))}(s.injector.get(ya,yd)||yd),this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,n=[]){const r=N2({},n);return function sU(t,i,e){const n=new zv(e);return Promise.resolve(n)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const n=e.injector.get(Ed);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(hx,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)(X(an))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function N2(t,i){return Array.isArray(i)?i.reduce(N2,t):{...t,...i}}let Ed=(()=>{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 ai(s=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{s.next(this._stable),s.complete()})}),a=new ai(s=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{ze.assertNotInAngularZone(),ax(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,s.next(!0))})})});const l=this._zone.onUnstable.subscribe(()=>{ze.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{s.next(!1)}))});return()=>{c.unsubscribe(),l.unsubscribe()}});this.isStable=Pi(o,a.pipe(wk()))}bootstrap(e,n){const r=e instanceof kD;if(!this._injector.get(Ap).done){!r&&function Vl(t){const i=xi(t)||er(t)||Or(t);return null!==i&&i.standalone}(e);throw new ue(405,es)}let a;a=r?e:this._injector.get(Is).resolveComponentFactory(e),this.componentTypes.push(a.componentType);const s=function cU(t){return t.isBoundToModule}(a)?void 0:this._injector.get(wd),l=a.create(an.NULL,[],n||a.selector,s),d=l.location.nativeElement,u=l.injector.get(D2,null);return u?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),Rp(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;Rp(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const n=this._injector.get(T2,[]);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),()=>Rp(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)(X(ze),X(ma),X(Ya))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Rp(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}let Ut=(()=>{class t{}return t.__NG_ELEMENT_ID__=fU,t})();function fU(t){return function mU(t,i,e){if(Nu(t)&&!e){const n=Pr(t.index,i);return new Ju(n,n)}return 47&t.type?new Ju(i[ir],i):null}(qn(),ve(),16==(16&t))}class z2{constructor(){}supports(i){return fp(i)}create(i){return new xU(i)}}const vU=(t,i)=>i;class xU{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||vU}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 yU(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 $2),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 $2),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 yU{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 wU{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 $2{constructor(){this.map=new Map}put(i){const e=i.trackById;let n=this.map.get(e);n||(n=new wU,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 j2(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 kU(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 kU{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 G2(){return new ts([new z2])}let ts=(()=>{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||G2()),deps:[[t,new Dc,new ha]]}}find(e){const n=this.factories.find(r=>r.supports(e));if(null!=n)return n;throw new ue(901,!1)}}return t.\u0275prov=we({token:t,providedIn:"root",factory:G2}),t})();function q2(){return new hh([new W2])}let hh=(()=>{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||q2()),deps:[[t,new Dc,new ha]]}}find(e){const n=this.factories.find(r=>r.supports(e));if(n)return n;throw new ue(901,!1)}}return t.\u0275prov=we({token:t,providedIn:"root",factory:q2}),t})();const EU=I2(null,"core",[]);let TU=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(X(Ed))},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({}),t})();function Td(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}let bx=null;function is(){return bx}class IU{}const ot=new oe("DocumentToken");let vx=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=we({token:t,factory:function(){return function FU(){return X(X2)}()},providedIn:"platform"}),t})();const RU=new oe("Location Initialized");let X2=(()=>{class t extends vx{constructor(e){super(),this._doc=e,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return is().getBaseHref(this._doc)}onPopState(e){const n=is().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){const n=is().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){Q2()?this._history.pushState(e,n,r):this._location.hash=r}replaceState(e,n,r){Q2()?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)(X(ot))},t.\u0275prov=we({token:t,factory:function(){return function OU(){return new X2(X(ot))}()},providedIn:"platform"}),t})();function Q2(){return!!window.history.pushState}function xx(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 Y2(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 ns(t){return t&&"?"!==t[0]?"?"+t:t}let Nc=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=we({token:t,factory:function(){return ft(Z2)},providedIn:"root"}),t})();const K2=new oe("appBaseHref");let Z2=(()=>{class t extends Nc{constructor(e,n){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??ft(ot).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 xx(this._baseHref,e)}path(e=!1){const n=this._platformLocation.pathname+ns(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${n}${r}`:n}pushState(e,n,r,o){const a=this.prepareExternalUrl(r+ns(o));this._platformLocation.pushState(e,n,a)}replaceState(e,n,r,o){const a=this.prepareExternalUrl(r+ns(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)(X(vx),X(K2,8))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),PU=(()=>{class t extends Nc{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=xx(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,r,o){let a=this.prepareExternalUrl(r+ns(o));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(e,n,a)}replaceState(e,n,r,o){let a=this.prepareExternalUrl(r+ns(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)(X(vx),X(K2,8))},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})(),fh=(()=>{class t{constructor(e){this._subject=new Ce,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const n=this._locationStrategy.getBaseHref();this._basePath=function BU(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(Y2(J2(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+ns(n))}normalize(e){return t.stripTrailingSlash(function NU(t,i){if(!t||!i.startsWith(t))return i;const e=i.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:i}(this._basePath,J2(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+ns(n)),r)}replaceState(e,n="",r=null){this._locationStrategy.replaceState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ns(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=ns,t.joinWithSlash=xx,t.stripTrailingSlash=Y2,t.\u0275fac=function(e){return new(e||t)(X(Nc))},t.\u0275prov=we({token:t,factory:function(){return function LU(){return new fh(X(Nc))}()},providedIn:"root"}),t})();function J2(t){return t.replace(/\/index.html$/,"")}var sn=(()=>((sn=sn||{})[sn.Format=0]="Format",sn[sn.Standalone=1]="Standalone",sn))(),Yt=(()=>((Yt=Yt||{})[Yt.Narrow=0]="Narrow",Yt[Yt.Abbreviated=1]="Abbreviated",Yt[Yt.Wide=2]="Wide",Yt[Yt.Short=3]="Short",Yt))(),Qi=(()=>((Qi=Qi||{})[Qi.Short=0]="Short",Qi[Qi.Medium=1]="Medium",Qi[Qi.Long=2]="Long",Qi[Qi.Full=3]="Full",Qi))(),mt=(()=>((mt=mt||{})[mt.Decimal=0]="Decimal",mt[mt.Group=1]="Group",mt[mt.List=2]="List",mt[mt.PercentSign=3]="PercentSign",mt[mt.PlusSign=4]="PlusSign",mt[mt.MinusSign=5]="MinusSign",mt[mt.Exponential=6]="Exponential",mt[mt.SuperscriptingExponent=7]="SuperscriptingExponent",mt[mt.PerMille=8]="PerMille",mt[mt.Infinity=9]="Infinity",mt[mt.NaN=10]="NaN",mt[mt.TimeSeparator=11]="TimeSeparator",mt[mt.CurrencyDecimal=12]="CurrencyDecimal",mt[mt.CurrencyGroup=13]="CurrencyGroup",mt))();function Lp(t,i){return yo(wr(t)[je.DateFormat],i)}function Np(t,i){return yo(wr(t)[je.TimeFormat],i)}function Bp(t,i){return yo(wr(t)[je.DateTimeFormat],i)}function xo(t,i){const e=wr(t),n=e[je.NumberSymbols][i];if(typeof n>"u"){if(i===mt.CurrencyDecimal)return e[je.NumberSymbols][mt.Decimal];if(i===mt.CurrencyGroup)return e[je.NumberSymbols][mt.Group]}return n}function tM(t){if(!t[je.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[je.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function yo(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 wx(t){const[i,e]=t.split(":");return{hours:+i,minutes:+e}}const KU=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,mh={},ZU=/((?:[^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 Rn=(()=>((Rn=Rn||{})[Rn.Short=0]="Short",Rn[Rn.ShortGMT=1]="ShortGMT",Rn[Rn.Long=2]="Long",Rn[Rn.Extended=3]="Extended",Rn))(),vt=(()=>((vt=vt||{})[vt.FullYear=0]="FullYear",vt[vt.Month=1]="Month",vt[vt.Date=2]="Date",vt[vt.Hours=3]="Hours",vt[vt.Minutes=4]="Minutes",vt[vt.Seconds=5]="Seconds",vt[vt.FractionalSeconds=6]="FractionalSeconds",vt[vt.Day=7]="Day",vt))(),Ot=(()=>((Ot=Ot||{})[Ot.DayPeriods=0]="DayPeriods",Ot[Ot.Days=1]="Days",Ot[Ot.Months=2]="Months",Ot[Ot.Eras=3]="Eras",Ot))();function JU(t,i,e,n){let r=function cz(t){if(rM(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 Vp(r,o-1,a)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(KU))return function lz(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(!rM(i))throw new Error(`Unable to convert "${t}" into a date`);return i}(t);i=rs(e,i)||i;let s,a=[];for(;i;){if(s=ZU.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=nM(n,c),r=function sz(t,i,e){const n=e?-1:1,r=t.getTimezoneOffset();return function az(t,i){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+i),t}(t,n*(nM(i,r)-r))}(r,n,!0));let l="";return a.forEach(d=>{const u=function oz(t){if(kx[t])return kx[t];let i;switch(t){case"G":case"GG":case"GGG":i=Ni(Ot.Eras,Yt.Abbreviated);break;case"GGGG":i=Ni(Ot.Eras,Yt.Wide);break;case"GGGGG":i=Ni(Ot.Eras,Yt.Narrow);break;case"y":i=bn(vt.FullYear,1,0,!1,!0);break;case"yy":i=bn(vt.FullYear,2,0,!0,!0);break;case"yyy":i=bn(vt.FullYear,3,0,!1,!0);break;case"yyyy":i=bn(vt.FullYear,4,0,!1,!0);break;case"Y":i=$p(1);break;case"YY":i=$p(2,!0);break;case"YYY":i=$p(3);break;case"YYYY":i=$p(4);break;case"M":case"L":i=bn(vt.Month,1,1);break;case"MM":case"LL":i=bn(vt.Month,2,1);break;case"MMM":i=Ni(Ot.Months,Yt.Abbreviated);break;case"MMMM":i=Ni(Ot.Months,Yt.Wide);break;case"MMMMM":i=Ni(Ot.Months,Yt.Narrow);break;case"LLL":i=Ni(Ot.Months,Yt.Abbreviated,sn.Standalone);break;case"LLLL":i=Ni(Ot.Months,Yt.Wide,sn.Standalone);break;case"LLLLL":i=Ni(Ot.Months,Yt.Narrow,sn.Standalone);break;case"w":i=Cx(1);break;case"ww":i=Cx(2);break;case"W":i=Cx(1,!0);break;case"d":i=bn(vt.Date,1);break;case"dd":i=bn(vt.Date,2);break;case"c":case"cc":i=bn(vt.Day,1);break;case"ccc":i=Ni(Ot.Days,Yt.Abbreviated,sn.Standalone);break;case"cccc":i=Ni(Ot.Days,Yt.Wide,sn.Standalone);break;case"ccccc":i=Ni(Ot.Days,Yt.Narrow,sn.Standalone);break;case"cccccc":i=Ni(Ot.Days,Yt.Short,sn.Standalone);break;case"E":case"EE":case"EEE":i=Ni(Ot.Days,Yt.Abbreviated);break;case"EEEE":i=Ni(Ot.Days,Yt.Wide);break;case"EEEEE":i=Ni(Ot.Days,Yt.Narrow);break;case"EEEEEE":i=Ni(Ot.Days,Yt.Short);break;case"a":case"aa":case"aaa":i=Ni(Ot.DayPeriods,Yt.Abbreviated);break;case"aaaa":i=Ni(Ot.DayPeriods,Yt.Wide);break;case"aaaaa":i=Ni(Ot.DayPeriods,Yt.Narrow);break;case"b":case"bb":case"bbb":i=Ni(Ot.DayPeriods,Yt.Abbreviated,sn.Standalone,!0);break;case"bbbb":i=Ni(Ot.DayPeriods,Yt.Wide,sn.Standalone,!0);break;case"bbbbb":i=Ni(Ot.DayPeriods,Yt.Narrow,sn.Standalone,!0);break;case"B":case"BB":case"BBB":i=Ni(Ot.DayPeriods,Yt.Abbreviated,sn.Format,!0);break;case"BBBB":i=Ni(Ot.DayPeriods,Yt.Wide,sn.Format,!0);break;case"BBBBB":i=Ni(Ot.DayPeriods,Yt.Narrow,sn.Format,!0);break;case"h":i=bn(vt.Hours,1,-12);break;case"hh":i=bn(vt.Hours,2,-12);break;case"H":i=bn(vt.Hours,1);break;case"HH":i=bn(vt.Hours,2);break;case"m":i=bn(vt.Minutes,1);break;case"mm":i=bn(vt.Minutes,2);break;case"s":i=bn(vt.Seconds,1);break;case"ss":i=bn(vt.Seconds,2);break;case"S":i=bn(vt.FractionalSeconds,1);break;case"SS":i=bn(vt.FractionalSeconds,2);break;case"SSS":i=bn(vt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":i=Up(Rn.Short);break;case"ZZZZZ":i=Up(Rn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":i=Up(Rn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":i=Up(Rn.Long);break;default:return null}return kx[t]=i,i}(d);l+=u?u(r,e,c):"''"===d?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Vp(t,i,e){const n=new Date(0);return n.setFullYear(t,i,e),n.setHours(0,0,0),n}function rs(t,i){const e=function VU(t){return wr(t)[je.LocaleId]}(t);if(mh[e]=mh[e]||{},mh[e][i])return mh[e][i];let n="";switch(i){case"shortDate":n=Lp(t,Qi.Short);break;case"mediumDate":n=Lp(t,Qi.Medium);break;case"longDate":n=Lp(t,Qi.Long);break;case"fullDate":n=Lp(t,Qi.Full);break;case"shortTime":n=Np(t,Qi.Short);break;case"mediumTime":n=Np(t,Qi.Medium);break;case"longTime":n=Np(t,Qi.Long);break;case"fullTime":n=Np(t,Qi.Full);break;case"short":const r=rs(t,"shortTime"),o=rs(t,"shortDate");n=Hp(Bp(t,Qi.Short),[r,o]);break;case"medium":const a=rs(t,"mediumTime"),s=rs(t,"mediumDate");n=Hp(Bp(t,Qi.Medium),[a,s]);break;case"long":const c=rs(t,"longTime"),l=rs(t,"longDate");n=Hp(Bp(t,Qi.Long),[c,l]);break;case"full":const d=rs(t,"fullTime"),u=rs(t,"fullDate");n=Hp(Bp(t,Qi.Full),[d,u])}return n&&(mh[e][i]=n),n}function Hp(t,i){return i&&(t=t.replace(/\{([^}]+)}/g,function(e,n){return null!=i&&n in i?i[n]:e})),t}function Xo(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===vt.Hours)0===s&&-12===e&&(s=12);else if(t===vt.FractionalSeconds)return function ez(t,i){return Xo(t,3).substring(0,i)}(s,i);const c=xo(a,mt.MinusSign);return Xo(s,i,c,n,r)}}function Ni(t,i,e=sn.Format,n=!1){return function(r,o){return function iz(t,i,e,n,r,o){switch(e){case Ot.Months:return function zU(t,i,e){const n=wr(t),o=yo([n[je.MonthsFormat],n[je.MonthsStandalone]],i);return yo(o,e)}(i,r,n)[t.getMonth()];case Ot.Days:return function UU(t,i,e){const n=wr(t),o=yo([n[je.DaysFormat],n[je.DaysStandalone]],i);return yo(o,e)}(i,r,n)[t.getDay()];case Ot.DayPeriods:const a=t.getHours(),s=t.getMinutes();if(o){const l=function GU(t){const i=wr(t);return tM(i),(i[je.ExtraData][2]||[]).map(n=>"string"==typeof n?wx(n):[wx(n[0]),wx(n[1])])}(i),d=function qU(t,i,e){const n=wr(t);tM(n);const o=yo([n[je.ExtraData][0],n[je.ExtraData][1]],i)||[];return yo(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 Rn.Short:return(r>=0?"+":"")+Xo(a,2,o)+Xo(Math.abs(r%60),2,o);case Rn.ShortGMT:return"GMT"+(r>=0?"+":"")+Xo(a,1,o);case Rn.Long:return"GMT"+(r>=0?"+":"")+Xo(a,2,o)+":"+Xo(Math.abs(r%60),2,o);case Rn.Extended:return 0===n?"Z":(r>=0?"+":"")+Xo(a,2,o)+":"+Xo(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}const nz=0,zp=4;function iM(t){return Vp(t.getFullYear(),t.getMonth(),t.getDate()+(zp-t.getDay()))}function Cx(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=iM(e),a=function rz(t){const i=Vp(t,nz,1).getDay();return Vp(t,0,1+(i<=zp?zp:zp+7)-i)}(o.getFullYear()),s=o.getTime()-a.getTime();r=1+Math.round(s/6048e5)}return Xo(r,t,xo(n,mt.MinusSign))}}function $p(t,i=!1){return function(e,n){return Xo(iM(e).getFullYear(),t,xo(n,mt.MinusSign),i)}}const kx={};function nM(t,i){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?i:e}function rM(t){return t instanceof Date&&!isNaN(t.valueOf())}function cM(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 Ax=/\s+/,lM=[];let os=(()=>{class t{constructor(e,n,r,o){this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=r,this._renderer=o,this.initialClasses=lM,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(Ax):lM}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(Ax):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(Ax).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)(x(ts),x(hh),x(Ie),x(Qa))},t.\u0275dir=Q({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),t})();class wz{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 kr=(()=>{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 wz(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),hM(s,r)}});for(let r=0,o=n.length;r{hM(n.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,n){return!0}}return t.\u0275fac=function(e){return new(e||t)(x(Oi),x(yi),x(ts))},t.\u0275dir=Q({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function hM(t,i){t.context.$implicit=i.item}let Yi=(()=>{class t{constructor(e,n){this._viewContainer=e,this._context=new kz,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){fM("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){fM("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)(x(Oi),x(yi))},t.\u0275dir=Q({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class kz{constructor(){this.$implicit=null,this.ngIf=null}}function fM(t,i){if(i&&!i.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Li(i)}'.`)}class Ix{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 gh=(()=>{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})(),Fx=(()=>{class t{constructor(e,n,r){this.ngSwitch=r,r._addCase(),this._view=new Ix(e,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(x(Oi),x(yi),x(gh,9))},t.\u0275dir=Q({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),t})(),mM=(()=>{class t{constructor(e,n,r){r._addDefault(new Ix(e,n))}}return t.\u0275fac=function(e){return new(e||t)(x(Oi),x(yi),x(gh,9))},t.\u0275dir=Q({type:t,selectors:[["","ngSwitchDefault",""]],standalone:!0}),t})(),Wp=(()=>{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)(x(Oi))},t.\u0275dir=Q({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Ai]}),t})();function Qo(t,i){return new ue(2100,!1)}class Ez{createSubscription(i,e){return i.subscribe({next:e,error:n=>{throw n}})}dispose(i){i.unsubscribe()}}class Tz{createSubscription(i,e){return i.then(e,n=>{throw n})}dispose(i){}}const Mz=new Tz,Az=new Ez;let Rx=(()=>{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(ih(e))return Mz;if(bE(e))return Az;throw Qo()}_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)(x(Ut,16))},t.\u0275pipe=Rr({name:"async",type:t,pure:!1,standalone:!0}),t})(),gM=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw Qo();return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Rr({name:"uppercase",type:t,pure:!0,standalone:!0}),t})();const Pz=new oe("DATE_PIPE_DEFAULT_TIMEZONE"),Lz=new oe("DATE_PIPE_DEFAULT_OPTIONS");let Ox=(()=>{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 JU(e,n??this.defaultOptions?.dateFormat??"mediumDate",o||this.locale,r??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(a){throw Qo()}}}return t.\u0275fac=function(e){return new(e||t)(x(ya,16),x(Pz,24),x(Lz,24))},t.\u0275pipe=Rr({name:"date",type:t,pure:!0,standalone:!0}),t})(),Xn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({}),t})();const bM="browser";let Yz=(()=>{class t{}return t.\u0275prov=we({token:t,providedIn:"root",factory:()=>new Kz(X(ot),window)}),t})();class Kz{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 Zz(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=vM(this.window.history)||vM(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 vM(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class xM{}class S$ extends IU{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Vx extends S${static makeCurrent(){!function AU(t){bx||(bx=t)}(new Vx)}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 D$(){return bh=bh||document.querySelector("base"),bh?bh.getAttribute("href"):null}();return null==e?null:function E$(t){Xp=Xp||document.createElement("a"),Xp.setAttribute("href",t);const i=Xp.pathname;return"/"===i.charAt(0)?i:`/${i}`}(e)}resetBaseElement(){bh=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return cM(document.cookie,i)}}let Xp,bh=null;const SM=new oe("TRANSITION_ID"),M$=[{provide:Mp,useFactory:function T$(t,i,e){return()=>{e.get(Ap).donePromise.then(()=>{const n=is(),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=we({token:t,factory:t.\u0275fac}),t})();const Qp=new oe("EventManagerPlugins");let Yp=(()=>{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=we({token:t,factory:t.\u0275fac}),t})(),vh=(()=>{class t extends EM{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)(X(ot))},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})();const Hx={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/"},Ux=/%COMP%/g,AM=new oe("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function IM(t,i){return i.flat(100).map(e=>e.replace(Ux,t))}function FM(t){return i=>{if("__ngUnwrap__"===i)return t;!1===t(i)&&(i.preventDefault(),i.returnValue=!1)}}let Kp=(()=>{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 zx(e)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;const r=this.getOrCreateRenderer(e,n);return r instanceof PM?r.applyToHost(e):r instanceof $x&&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 Vo.Emulated:o=new PM(a,s,n,this.appId,c);break;case Vo.ShadowDom:return new B$(a,s,e,n);default:o=new $x(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)(X(Yp),X(vh),X(Dd),X(AM))},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})();class zx{constructor(i){this.eventManager=i,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(i,e){return e?document.createElementNS(Hx[e]||e,i):document.createElement(i)}createComment(i){return document.createComment(i)}createText(i){return document.createTextNode(i)}appendChild(i,e){(OM(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(OM(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=Hx[r];o?i.setAttributeNS(o,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){const r=Hx[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&(Lr.DashCase|Lr.Important)?i.style.setProperty(e,n,r&Lr.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&Lr.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,FM(n)):this.eventManager.addEventListener(i,e,FM(n))}}function OM(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class B$ extends zx{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=IM(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 $x extends zx{constructor(i,e,n,r,o=n.id){super(i),this.sharedStylesHost=e,this.removeStylesOnCompDestory=r,this.rendererUsageCount=0,this.styles=IM(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 PM extends $x{constructor(i,e,n,r,o){const a=r+"-"+n.id;super(i,e,n,o,a),this.contentAttr=function P$(t){return"_ngcontent-%COMP%".replace(Ux,t)}(a),this.hostAttr=function L$(t){return"_nghost-%COMP%".replace(Ux,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 V$=(()=>{class t extends DM{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)(X(ot))},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})();const LM=["alt","control","meta","shift"],H$={"\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"},U$={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let z$=(()=>{class t extends DM{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(()=>is().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."),LM.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=H$[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"),LM.forEach(a=>{a!==r&&(0,U$[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)(X(ot))},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})();const G$=I2(EU,"browser",[{provide:Ip,useValue:bM},{provide:x2,useValue:function $$(){Vx.makeCurrent()},multi:!0},{provide:ot,useFactory:function W$(){return function F5(t){Yb=t}(document),document},deps:[]}]),VM=new oe(""),HM=[{provide:Fp,useClass:class A${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?is().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null)}},deps:[]},{provide:D2,useClass:lx,deps:[ze,dx,Fp]},{provide:lx,useClass:lx,deps:[ze,dx,Fp]}],UM=[{provide:rv,useValue:"root"},{provide:Ya,useFactory:function j$(){return new Ya},deps:[]},{provide:Qp,useClass:V$,multi:!0,deps:[ot,ze,Ip]},{provide:Qp,useClass:z$,multi:!0,deps:[ot]},{provide:Kp,useClass:Kp,deps:[Yp,vh,Dd,AM]},{provide:Ku,useExisting:Kp},{provide:EM,useExisting:vh},{provide:vh,useClass:vh,deps:[ot]},{provide:Yp,useClass:Yp,deps:[Qp,ze]},{provide:xM,useClass:I$,deps:[]},[]];let zM=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:Dd,useValue:e.appId},{provide:SM,useExisting:Dd},M$]}}}return t.\u0275fac=function(e){return new(e||t)(X(VM,12))},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({providers:[...UM,...HM],imports:[Xn,TU]}),t})(),$M=(()=>{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)(X(ot))},t.\u0275prov=we({token:t,factory:function(e){let n=null;return n=e?new e:function X$(){return new $M(X(ot))}(),n},providedIn:"root"}),t})();typeof window<"u"&&window;let Gx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=we({token:t,factory:function(e){let n=null;return n=e?new(e||t):X(GM),n},providedIn:"root"}),t})(),GM=(()=>{class t extends Gx{constructor(e){super(),this._doc=e}sanitize(e,n){if(null==n)return null;switch(e){case _i.NONE:return n;case _i.HTML:return fa(n,"HTML")?Jr(n):hD(this._doc,String(n)).toString();case _i.STYLE:return fa(n,"Style")?Jr(n):n;case _i.SCRIPT:if(fa(n,"Script"))return Jr(n);throw new Error("unsafe value used in a script context");case _i.URL:return fa(n,"URL")?Jr(n):Jm(String(n));case _i.RESOURCE_URL:if(fa(n,"ResourceURL"))return Jr(n);throw new Error(`unsafe value used in a resource URL context (see ${vm})`);default:throw new Error(`Unexpected SecurityContext ${e} (see ${vm})`)}}bypassSecurityTrustHtml(e){return function V5(t){return new R5(t)}(e)}bypassSecurityTrustStyle(e){return function H5(t){return new O5(t)}(e)}bypassSecurityTrustScript(e){return function U5(t){return new P5(t)}(e)}bypassSecurityTrustUrl(e){return function z5(t){return new L5(t)}(e)}bypassSecurityTrustResourceUrl(e){return function $5(t){return new N5(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(X(ot))},t.\u0275prov=we({token:t,factory:function(e){let n=null;return n=e?new e:function J$(t){return new GM(t.get(ot))}(X(an)),n},providedIn:"root"}),t})();function qe(...t){return rn(t,Mu(t))}class Ki extends ke{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 Md=_c(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}),{isArray:ej}=Array,{getPrototypeOf:tj,prototype:ij,keys:nj}=Object;function qM(t){if(1===t.length){const i=t[0];if(ej(i))return{args:i,keys:null};if(function rj(t){return t&&"object"==typeof t&&tj(t)===ij}(i)){const e=nj(i);return{args:e.map(n=>i[n]),keys:e}}}return{args:t,keys:null}}const{isArray:oj}=Array;function qx(t){return Ze(i=>function aj(t,i){return oj(i)?t(...i):t(i)}(t,i))}function XM(t,i){return t.reduce((e,n,r)=>(e[n]=i[r],e),{})}function Bc(...t){const i=Mu(t),e=bk(t),{args:n,keys:r}=qM(t);if(0===n.length)return rn([],i);const o=new ai(function sj(t,i,e=Ts){return n=>{QM(i,()=>{const{length:r}=t,o=new Array(r);let a=r,s=r;for(let c=0;c{const l=rn(t[c],i);let d=!1;l.subscribe(Vi(n,u=>{o[c]=u,d||(d=!0,s--),s||n.next(e(o.slice()))},()=>{--a||n.complete()}))},n)},n)}}(n,i,r?a=>XM(r,a):Ts));return e?o.pipe(qx(e)):o}function QM(t,i,e){t?Ha(e,t,i):i()}function xh(...t){return function cj(){return Nl(1)}()(rn(t,Mu(t)))}function Ad(t){return new ai(i=>{Jn(t()).subscribe(i)})}function Vc(t,i){const e=Xt(t)?t:()=>t,n=r=>r.error(e());return new ai(i?r=>i.schedule(n,0,r):n)}function Xx(){return qi((t,i)=>{let e=null;t._refCount++;const n=Vi(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 Qx extends ai{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,rk(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 kt;const e=this.getSubject();i.add(this.source.subscribe(Vi(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),i.closed&&(this._connection=null,i=kt.EMPTY)}return i}refCount(){return Xx()(this)}}function vn(t,i){return qi((e,n)=>{let r=null,o=0,a=!1;const s=()=>a&&!r&&n.complete();e.subscribe(Vi(n,c=>{r?.unsubscribe();let l=0;const d=o++;Jn(t(c,d)).subscribe(r=Vi(n,u=>n.next(i?i(c,u,d,l++):u),()=>{r=null,s()}))},()=>{a=!0,s()}))})}function si(t){return t<=0?()=>qr:qi((i,e)=>{let n=0;i.subscribe(Vi(e,r=>{++n<=t&&(e.next(r),t<=n&&e.complete())}))})}function xn(...t){const i=Mu(t);return qi((e,n)=>{(i?xh(t,e,i):xh(t,e)).subscribe(n)})}function Kt(t,i){return qi((e,n)=>{let r=0;e.subscribe(Vi(n,o=>t.call(i,o,r++)&&n.next(o)))})}function Zp(t){return qi((i,e)=>{let n=!1;i.subscribe(Vi(e,r=>{n=!0,e.next(r)},()=>{n||e.next(t),e.complete()}))})}function YM(t=lj){return qi((i,e)=>{let n=!1;i.subscribe(Vi(e,r=>{n=!0,e.next(r)},()=>n?e.complete():e.error(t())))})}function lj(){return new Md}function wo(t,i){const e=arguments.length>=2;return n=>n.pipe(t?Kt((r,o)=>t(r,o,n)):Ts,si(1),e?Zp(i):YM(()=>new Md))}function Ls(t,i){return Xt(i)?An(t,i,1):An(t,1)}function $i(t,i,e){const n=Xt(t)||i||e?{next:t,error:i,complete:e}:t;return n?qi((r,o)=>{var a;null===(a=n.subscribe)||void 0===a||a.call(n);let s=!0;r.subscribe(Vi(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)}))}):Ts}function ln(t){return qi((i,e)=>{let o,n=null,r=!1;n=i.subscribe(Vi(e,void 0,void 0,a=>{o=Jn(t(a,ln(t)(i))),n?(n.unsubscribe(),n=null,o.subscribe(e)):r=!0})),r&&(n.unsubscribe(),n=null,o.subscribe(e))})}function KM(t,i){return qi(function dj(t,i,e,n,r){return(o,a)=>{let s=e,c=i,l=0;o.subscribe(Vi(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 Yx(t){return t<=0?()=>qr:qi((i,e)=>{let n=[];i.subscribe(Vi(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?Kt((r,o)=>t(r,o,n)):Ts,Yx(1),e?Zp(i):YM(()=>new Md))}function JM(t,i=!1){return qi((e,n)=>{let r=0;e.subscribe(Vi(n,o=>{const a=t(o,r++);(a||i)&&n.next(o),!a&&n.complete()}))})}function Jp(t){return Ze(()=>t)}function eg(t){return qi((i,e)=>{try{i.subscribe(e)}finally{e.add(t)}})}const Mt="primary",yh=Symbol("RouteTitle");class uj{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 Id(t){return new uj(t)}function hj(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 tA(t){return Array.prototype.concat.apply([],t)}function iA(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 Ns(t){return Av(t)?t:ih(t)?rn(Promise.resolve(t)):qe(t)}const tg=!1,mj={exact:function oA(t,i,e){if(!Hc(t.segments,i.segments)||!ig(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(const n in i.children)if(!t.children[n]||!oA(t.children[n],i.children[n],e))return!1;return!0},subset:aA},nA={exact:function pj(t,i){return wa(t,i)},subset:function gj(t,i){return Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>eA(t[e],i[e]))},ignored:()=>!0};function rA(t,i,e){return mj[e.paths](t.root,i.root,e.matrixParams)&&nA[e.queryParams](t.queryParams,i.queryParams)&&!("exact"===e.fragment&&t.fragment!==i.fragment)}function aA(t,i,e){return sA(t,i,i.segments,e)}function sA(t,i,e,n){if(t.segments.length>e.length){const r=t.segments.slice(0,e.length);return!(!Hc(r,e)||i.hasChildren()||!ig(r,e,n))}if(t.segments.length===e.length){if(!Hc(t.segments,e)||!ig(t.segments,e,n))return!1;for(const r in i.children)if(!t.children[r]||!aA(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!!(Hc(t.segments,r)&&ig(t.segments,r,n)&&t.children[Mt])&&sA(t.children[Mt],i,o,n)}}function ig(t,i,e){return i.every((n,r)=>nA[e](t[r].parameters,n.parameters))}class Bs{constructor(i=new zt([],{}),e={},n=null){this.root=i,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Id(this.queryParams)),this._queryParamMap}toString(){return vj.serialize(this)}}class zt{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 ng(this)}}class wh{constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Id(this.parameters)),this._parameterMap}toString(){return dA(this)}}function Hc(t,i){return t.length===i.length&&t.every((e,n)=>e.path===i[n].path)}let Ch=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=we({token:t,factory:function(){return new Kx},providedIn:"root"}),t})();class Kx{parse(i){const e=new Tj(i);return new Bs(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){const e=`/${kh(i.root,!0)}`,n=function wj(t){const i=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(r=>`${rg(e)}=${rg(r)}`).join("&"):`${rg(e)}=${rg(n)}`}).filter(e=>!!e);return i.length?`?${i.join("&")}`:""}(i.queryParams);return`${e}${n}${"string"==typeof i.fragment?`#${function xj(t){return encodeURI(t)}(i.fragment)}`:""}`}}const vj=new Kx;function ng(t){return t.segments.map(i=>dA(i)).join("/")}function kh(t,i){if(!t.hasChildren())return ng(t);if(i){const e=t.children[Mt]?kh(t.children[Mt],!1):"",n=[];return Qn(t.children,(r,o)=>{o!==Mt&&n.push(`${o}:${kh(r,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function bj(t,i){let e=[];return Qn(t.children,(n,r)=>{r===Mt&&(e=e.concat(i(n,r)))}),Qn(t.children,(n,r)=>{r!==Mt&&(e=e.concat(i(n,r)))}),e}(t,(n,r)=>r===Mt?[kh(t.children[Mt],!1)]:[`${r}:${kh(n,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Mt]?`${ng(t)}/${e[0]}`:`${ng(t)}/(${e.join("//")})`}}function cA(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function rg(t){return cA(t).replace(/%3B/gi,";")}function Zx(t){return cA(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function og(t){return decodeURIComponent(t)}function lA(t){return og(t.replace(/\+/g,"%20"))}function dA(t){return`${Zx(t.path)}${function yj(t){return Object.keys(t).map(i=>`;${Zx(i)}=${Zx(t[i])}`).join("")}(t.parameters)}`}const Cj=/^[^\/()?;=#]+/;function ag(t){const i=t.match(Cj);return i?i[0]:""}const kj=/^[^=?&#]+/,Dj=/^[^&#]+/;class Tj{constructor(i){this.url=i,this.remaining=i}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new zt([],{}):new zt([],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[Mt]=new zt(i,e)),n}parseSegment(){const i=ag(this.remaining);if(""===i&&this.peekStartsWith(";"))throw new ue(4009,tg);return this.capture(i),new wh(og(i),this.parseMatrixParams())}parseMatrixParams(){const i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){const e=ag(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const r=ag(this.remaining);r&&(n=r,this.capture(n))}i[og(e)]=og(n)}parseQueryParam(i){const e=function Sj(t){const i=t.match(kj);return i?i[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const a=function Ej(t){const i=t.match(Dj);return i?i[0]:""}(this.remaining);a&&(n=a,this.capture(n))}const r=lA(e),o=lA(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=ag(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new ue(4010,tg);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):i&&(o=Mt);const a=this.parseChildren();e[o]=1===Object.keys(a).length?a[Mt]:new zt([],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,tg)}}function Jx(t){return t.segments.length>0?new zt([],{[Mt]:t}):t}function sg(t){const i={};for(const n of Object.keys(t.children)){const o=sg(t.children[n]);(o.segments.length>0||o.hasChildren())&&(i[n]=o)}return function Mj(t){if(1===t.numberOfChildren&&t.children[Mt]){const i=t.children[Mt];return new zt(t.segments.concat(i.segments),i.children)}return t}(new zt(t.segments,i))}function Uc(t){return t instanceof Bs}const ey=!1;function Aj(t,i,e,n,r){if(0===e.length)return Fd(i.root,i.root,i.root,n,r);const o=function pA(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new mA(!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 mA(e,i,n)}(e);return o.toRoot()?Fd(i.root,i.root,new zt([],{}),n,r):function a(c){const l=function Fj(t,i,e,n){if(t.isAbsolute)return new Rd(i.root,!0,0);if(-1===n)return new Rd(e,e===i.root,0);return function gA(t,i,e){let n=t,r=i,o=e;for(;o>r;){if(o-=r,n=n.parent,!n)throw new ue(4005,ey&&"Invalid number of '../'");r=n.segments.length}return new Rd(n,!1,r-o)}(e,n+(Sh(t.commands[0])?0:1),t.numberOfDoubleDots)}(o,i,t.snapshot?._urlSegment,c),d=l.processChildren?Od(l.segmentGroup,l.index,o.commands):ty(l.segmentGroup,l.index,o.commands);return Fd(i.root,l.segmentGroup,d,n,r)}(t.snapshot?._lastPathIndex)}function Sh(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Dh(t){return"object"==typeof t&&null!=t&&t.outlets}function Fd(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:fA(t,i,e);const s=Jx(sg(a));return new Bs(s,o,r)}function fA(t,i,e){const n={};return Qn(t.children,(r,o)=>{n[o]=r===i?e:fA(r,i,e)}),new zt(t.segments,n)}class mA{constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&Sh(n[0]))throw new ue(4003,ey&&"Root segment cannot have matrix parameters");const r=n.find(Dh);if(r&&r!==iA(n))throw new ue(4004,ey&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Rd{constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}}function ty(t,i,e){if(t||(t=new zt([],{})),0===t.segments.length&&t.hasChildren())return Od(t,i,e);const n=function Oj(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(Dh(s))break;const c=`${s}`,l=n0&&void 0===c)break;if(c&&l&&"object"==typeof l&&void 0===l.outlets){if(!bA(c,l,a))return o;n+=2}else{if(!bA(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]=ty(t.children[a],i,o))}),Qn(t.children,(o,a)=>{void 0===n[a]&&(r[a]=o)}),new zt(t.segments,r)}}function iy(t,i,e){const n=t.segments.slice(0,i);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(i[n]=iy(new zt([],{}),0,e))}),i}function _A(t){const i={};return Qn(t,(e,n)=>i[n]=`${e}`),i}function bA(t,i,e){return t==e.path&&wa(i,e.parameters)}const Eh="imperative";class Ca{constructor(i,e){this.id=i,this.url=e}}class ny extends Ca{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 Vs extends Ca{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 cg extends Ca{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 lg extends Ca{constructor(i,e,n,r){super(i,e),this.reason=n,this.code=r,this.type=16}}class ry extends Ca{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 Lj extends Ca{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 Nj extends Ca{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 Bj extends Ca{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 Vj extends Ca{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 Hj extends Ca{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 Uj{constructor(i){this.route=i,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class zj{constructor(i){this.route=i,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class $j{constructor(i){this.snapshot=i,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jj{constructor(i){this.snapshot=i,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Wj{constructor(i){this.snapshot=i,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Gj{constructor(i){this.snapshot=i,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vA{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 Qj=(()=>{class t{createUrlTree(e,n,r,o,a,s){return Aj(e||n.root,r,o,a,s)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})(),Kj=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=we({token:t,factory:function(i){return Qj.\u0275fac(i)},providedIn:"root"}),t})();class xA{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=oy(i,this._root);return e?e.children.map(n=>n.value):[]}firstChild(i){const e=oy(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){const e=ay(i,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==i)}pathFromRoot(i){return ay(i,this._root).map(e=>e.value)}}function oy(t,i){if(t===i.value)return i;for(const e of i.children){const n=oy(t,e);if(n)return n}return null}function ay(t,i){if(t===i.value)return[i];for(const e of i.children){const n=ay(t,e);if(n.length)return n.unshift(i),n}return[]}class as{constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}}function Pd(t){const i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}class yA extends xA{constructor(i,e){super(i),this.snapshot=e,sy(this,i)}toString(){return this.snapshot.toString()}}function wA(t,i){const e=function Zj(t,i){const a=new dg([],{},{},"",{},Mt,i,null,t.root,-1,{});return new kA("",new as(a,[]))}(t,i),n=new Ki([new wh("",{})]),r=new Ki({}),o=new Ki({}),a=new Ki({}),s=new Ki(""),c=new Ld(n,r,a,s,o,Mt,i,e.root);return c.snapshot=e.root,new yA(new as(c,[]),e)}class Ld{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(Ze(l=>l[yh]))??qe(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(Ze(i=>Id(i)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Ze(i=>Id(i)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function CA(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 Jj(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 dg{get title(){return this.data?.[yh]}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=Id(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Id(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class kA extends xA{constructor(i,e){super(e),this.url=i,sy(this,e)}toString(){return SA(this._root)}}function sy(t,i){i.value._routerState=t,i.children.forEach(e=>sy(t,e))}function SA(t){const i=t.children.length>0?` { ${t.children.map(SA).join(", ")} } `:"";return`${t.value}${i}`}function cy(t){if(t.snapshot){const i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,wa(i.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),i.fragment!==e.fragment&&t.fragment.next(e.fragment),wa(i.params,e.params)||t.params.next(e.params),function fj(t,i){if(t.length!==i.length)return!1;for(let e=0;ewa(e.parameters,i[n].parameters))}(t.url,i.url);return e&&!(!t.parent!=!i.parent)&&(!t.parent||ly(t.parent,i.parent))}function Th(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){const n=e.value;n._futureSnapshot=i.value;const r=function tW(t,i,e){return i.children.map(n=>{for(const r of e.children)if(t.shouldReuseRoute(n.value,r.value.snapshot))return Th(t,n,r);return Th(t,n)})}(t,i,e);return new as(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=>Th(t,s)),a}}const n=function iW(t){return new Ld(new Ki(t.url),new Ki(t.params),new Ki(t.queryParams),new Ki(t.fragment),new Ki(t.data),t.outlet,t.component,t)}(i.value),r=i.children.map(o=>Th(t,o));return new as(n,r)}}const dy="ngNavigationCancelingError";function DA(t,i){const{redirectTo:e,navigationBehaviorOptions:n}=Uc(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,r=EA(!1,0,i);return r.url=e,r.navigationBehaviorOptions=n,r}function EA(t,i,e){const n=new Error("NavigationCancelingError: "+(t||""));return n[dy]=!0,n.cancellationCode=i,e&&(n.url=e),n}function TA(t){return MA(t)&&Uc(t.url)}function MA(t){return t&&t[dy]}class nW{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Mh,this.attachRef=null}}let Mh=(()=>{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 nW,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=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const ug=!1;let uy=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=Mt,this.activateEvents=new Ce,this.deactivateEvents=new Ce,this.attachEvents=new Ce,this.detachEvents=new Ce,this.parentContexts=ft(Mh),this.location=ft(Oi),this.changeDetector=ft(Ut),this.environmentInjector=ft(ma)}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,ug);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ue(4012,ug);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ue(4012,ug);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,ug);this._activatedRoute=e;const r=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,c=new rW(e,s,r.injector);if(n&&function oW(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:[Ai]}),t})();class rW{constructor(i,e,n){this.route=i,this.childContexts=e,this.parent=n}get(i,e){return i===Ld?this.route:i===Mh?this.childContexts:this.parent.get(i,e)}}let hy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Le({type:t,selectors:[["ng-component"]],standalone:!0,features:[$v],decls:1,vars:0,template:function(e,n){1&e&&ge(0,"router-outlet")},dependencies:[uy],encapsulation:2}),t})();function AA(t,i){return t.providers&&!t._injector&&(t._injector=kp(t.providers,i,`Route: ${t.path}`)),t._injector??i}function my(t){const i=t.children&&t.children.map(my),e=i?{...t,children:i}:{...t};return!e.component&&!e.loadComponent&&(i||e.loadChildren)&&e.outlet&&e.outlet!==Mt&&(e.component=hy),e}function Co(t){return t.outlet||Mt}function IA(t,i){const e=t.filter(n=>Co(n)===i);return e.push(...t.filter(n=>Co(n)!==i)),e}function Ah(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 dW{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),cy(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){const r=Pd(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=Pd(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=Pd(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=Pd(e);i.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],n),this.forwardEvent(new Gj(o.value.snapshot))}),i.children.length&&this.forwardEvent(new jj(i.value.snapshot))}activateRoutes(i,e,n){const r=i.value,o=e?e.value:null;if(cy(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),cy(s.route.value),this.activateChildRoutes(i,null,a.children)}else{const s=Ah(r.snapshot),c=s?.get(Is)??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 FA{constructor(i){this.path=i,this.route=this.path[this.path.length-1]}}class hg{constructor(i,e){this.component=i,this.route=e}}function uW(t,i,e){const n=t._root;return Ih(n,i?i._root:null,e,[n.value])}function Nd(t,i){const e=Symbol(),n=i.get(t,e);return n===e?"function"!=typeof t||function E8(t){return null!==wm(t)}(t)?i.get(t):t:n}function Ih(t,i,e,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Pd(i);return t.children.forEach(a=>{(function fW(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 mW(t,i,e){if("function"==typeof e)return e(t,i);switch(e){case"pathParamsChange":return!Hc(t.url,i.url);case"pathParamsOrQueryParamsChange":return!Hc(t.url,i.url)||!wa(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ly(t,i)||!wa(t.queryParams,i.queryParams);default:return!ly(t,i)}}(a,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new FA(n)):(o.data=a.data,o._resolvedData=a._resolvedData),Ih(t,i,o.component?s?s.children:null:e,n,r),c&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new hg(s.outlet.component,a))}else a&&Fh(i,s,r),r.canActivateChecks.push(new FA(n)),Ih(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)=>Fh(a,e.getContext(s),r)),r}function Fh(t,i,e){const n=Pd(t),r=t.value;Qn(n,(o,a)=>{Fh(o,r.component?i?i.children.getContext(a):null:i,e)}),e.canDeactivateChecks.push(new hg(r.component&&i&&i.outlet&&i.outlet.isActivated?i.outlet.component:null,r))}function Rh(t){return"function"==typeof t}function py(t){return t instanceof Md||"EmptyError"===t?.name}const fg=Symbol("INITIAL_VALUE");function Bd(){return vn(t=>Bc(t.map(i=>i.pipe(si(1),xn(fg)))).pipe(Ze(i=>{for(const e of i)if(!0!==e){if(e===fg)return fg;if(!1===e||e instanceof Bs)return e}return!0}),Kt(i=>i!==fg),si(1)))}function RA(t){return function Q3(...t){return tk(t)}($i(i=>{if(Uc(i))throw DA(0,i)}),Ze(i=>!0===i))}const gy={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function OA(t,i,e,n,r){const o=_y(t,i,e);return o.matched?function IW(t,i,e,n){const r=i.canMatch;return r&&0!==r.length?qe(r.map(a=>{const s=Nd(a,t);return Ns(function xW(t){return t&&Rh(t.canMatch)}(s)?s.canMatch(i,e):t.runInContext(()=>s(i,e)))})).pipe(Bd(),RA()):qe(!0)}(n=AA(i,n),i,e).pipe(Ze(a=>!0===a?o:{...gy})):qe(o)}function _y(t,i,e){if(""===i.path)return"full"===i.pathMatch&&(t.hasChildren()||e.length>0)?{...gy}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(i.matcher||hj)(e,t,i);if(!r)return{...gy};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 mg(t,i,e,n){if(e.length>0&&function OW(t,i,e){return e.some(n=>pg(t,i,n)&&Co(n)!==Mt)}(t,e,n)){const o=new zt(i,function RW(t,i,e,n){const r={};r[Mt]=n,n._sourceSegment=t,n._segmentIndexShift=i.length;for(const o of e)if(""===o.path&&Co(o)!==Mt){const a=new zt([],{});a._sourceSegment=t,a._segmentIndexShift=i.length,r[Co(o)]=a}return r}(t,i,n,new zt(e,t.children)));return o._sourceSegment=t,o._segmentIndexShift=i.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function PW(t,i,e){return e.some(n=>pg(t,i,n))}(t,e,n)){const o=new zt(t.segments,function FW(t,i,e,n,r){const o={};for(const a of n)if(pg(t,e,a)&&!r[Co(a)]){const s=new zt([],{});s._sourceSegment=t,s._segmentIndexShift=i.length,o[Co(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 zt(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=i.length,{segmentGroup:r,slicedSegments:e}}function pg(t,i,e){return(!(t.hasChildren()||i.length>0)||"full"!==e.pathMatch)&&""===e.path}function PA(t,i,e,n){return!!(Co(t)===n||n!==Mt&&pg(i,e,t))&&("**"===t.path||_y(i,t,e).matched)}function LA(t,i,e){return 0===i.length&&!t.children[e]}const gg=!1;class _g{constructor(i){this.segmentGroup=i||null}}class NA{constructor(i){this.urlTree=i}}function Oh(t){return Vc(new _g(t))}function BA(t){return Vc(new NA(t))}class VW{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=mg(this.urlTree.root,[],[],this.config).segmentGroup,e=new zt(i.segments,i.children);return this.expandSegmentGroup(this.injector,this.config,e,Mt).pipe(Ze(o=>this.createUrlTree(sg(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(ln(o=>{if(o instanceof NA)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof _g?this.noMatchError(o):o}))}match(i){return this.expandSegmentGroup(this.injector,this.config,i.root,Mt).pipe(Ze(r=>this.createUrlTree(sg(r),i.queryParams,i.fragment))).pipe(ln(r=>{throw r instanceof _g?this.noMatchError(r):r}))}noMatchError(i){return new ue(4002,gg)}createUrlTree(i,e,n){const r=Jx(i);return new Bs(r,e,n)}expandSegmentGroup(i,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(i,e,n).pipe(Ze(o=>new zt([],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 rn(r).pipe(Ls(o=>{const a=n.children[o],s=IA(e,o);return this.expandSegmentGroup(i,s,a,o).pipe(Ze(c=>({segment:c,outlet:o})))}),KM((o,a)=>(o[a.outlet]=a.segment,o),{}),ZM())}expandSegment(i,e,n,r,o,a){return rn(n).pipe(Ls(s=>this.expandSegmentAgainstRoute(i,e,n,s,r,o,a).pipe(ln(l=>{if(l instanceof _g)return qe(null);throw l}))),wo(s=>!!s),ln((s,c)=>{if(py(s))return LA(e,r,o)?qe(new zt([],{})):Oh(e);throw s}))}expandSegmentAgainstRoute(i,e,n,r,o,a,s){return PA(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):Oh(e):Oh(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("/")?BA(o):this.lineralizeSegments(n,o).pipe(An(a=>{const s=new zt(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}=_y(e,r,o);if(!s)return Oh(e);const u=this.applyRedirectCommands(c,r.redirectTo,d);return r.redirectTo.startsWith("/")?BA(u):this.lineralizeSegments(r,u).pipe(An(h=>this.expandSegment(i,e,n,h.concat(l),a,!1)))}matchSegmentAgainstRoute(i,e,n,r,o){return"**"===n.path?(i=AA(n,i),n.loadChildren?(n._loadedRoutes?qe({routes:n._loadedRoutes,injector:n._loadedInjector}):this.configLoader.loadChildren(i,n)).pipe(Ze(s=>(n._loadedRoutes=s.routes,n._loadedInjector=s.injector,new zt(r,{})))):qe(new zt(r,{}))):OA(e,n,r,i).pipe(vn(({matched:a,consumedSegments:s,remainingSegments:c})=>a?this.getChildConfig(i=n._injector??i,n,r).pipe(An(d=>{const u=d.injector??i,h=d.routes,{segmentGroup:f,slicedSegments:m}=mg(e,s,c,h),g=new zt(f.segments,f.children);if(0===m.length&&g.hasChildren())return this.expandChildren(u,h,g).pipe(Ze(y=>new zt(s,y)));if(0===h.length&&0===m.length)return qe(new zt(s,{}));const p=Co(n)===o;return this.expandSegment(u,g,h,m,p?Mt:o,!0).pipe(Ze(C=>new zt(s.concat(C.segments),C.children)))})):Oh(e)))}getChildConfig(i,e,n){return e.children?qe({routes:e.children,injector:i}):e.loadChildren?void 0!==e._loadedRoutes?qe({routes:e._loadedRoutes,injector:e._loadedInjector}):function AW(t,i,e,n){const r=i.canLoad;return void 0===r||0===r.length?qe(!0):qe(r.map(a=>{const s=Nd(a,t);return Ns(function gW(t){return t&&Rh(t.canLoad)}(s)?s.canLoad(i,e):t.runInContext(()=>s(i,e)))})).pipe(Bd(),RA())}(i,e,n).pipe(An(r=>r?this.configLoader.loadChildren(i,e).pipe($i(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function NW(t){return Vc(EA(gg,3))}())):qe({routes:[],injector:i})}lineralizeSegments(i,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return qe(n);if(r.numberOfChildren>1||!r.children[Mt])return i.redirectTo,Vc(new ue(4e3,gg));r=r.children[Mt]}}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 Bs(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 zt(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,gg);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 UW{}class jW{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=mg(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,i,Mt).pipe(Ze(e=>{if(null===e)return null;const n=new dg([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Mt,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new as(n,e),o=new kA(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(i){const e=i.value,n=CA(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 rn(Object.keys(n.children)).pipe(Ls(r=>{const o=n.children[r],a=IA(e,r);return this.processSegmentGroup(i,a,o,r)}),KM((r,o)=>r&&o?(r.push(...o),r):null),JM(r=>null!==r),Zp(null),ZM(),Ze(r=>{if(null===r)return null;const o=HA(r);return function WW(t){t.sort((i,e)=>i.value.outlet===Mt?-1:e.value.outlet===Mt?1:i.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(i,e,n,r,o){return rn(e).pipe(Ls(a=>this.processSegmentAgainstRoute(a._injector??i,a,n,r,o)),wo(a=>!!a),ln(a=>{if(py(a))return LA(n,r,o)?qe([]):qe(null);throw a}))}processSegmentAgainstRoute(i,e,n,r,o){if(e.redirectTo||!PA(e,n,r,o))return qe(null);let a;if("**"===e.path){const s=r.length>0?iA(r).parameters:{},c=zA(n)+r.length;a=qe({snapshot:new dg(r,s,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,$A(e),Co(e),e.component??e._loadedComponent??null,e,UA(n),c,jA(e)),consumedSegments:[],remainingSegments:[]})}else a=OA(n,e,r,i).pipe(Ze(({matched:s,consumedSegments:c,remainingSegments:l,parameters:d})=>{if(!s)return null;const u=zA(n)+c.length;return{snapshot:new dg(c,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,$A(e),Co(e),e.component??e._loadedComponent??null,e,UA(n),u,jA(e)),consumedSegments:c,remainingSegments:l}}));return a.pipe(vn(s=>{if(null===s)return qe(null);const{snapshot:c,consumedSegments:l,remainingSegments:d}=s;i=e._injector??i;const u=e._loadedInjector??i,h=function GW(t){return t.children?t.children:t.loadChildren?t._loadedRoutes:[]}(e),{segmentGroup:f,slicedSegments:m}=mg(n,l,d,h.filter(p=>void 0===p.redirectTo));if(0===m.length&&f.hasChildren())return this.processChildren(u,h,f).pipe(Ze(p=>null===p?null:[new as(c,p)]));if(0===h.length&&0===m.length)return qe([new as(c,[])]);const g=Co(e)===o;return this.processSegment(u,h,f,m,g?Mt:o).pipe(Ze(p=>null===p?null:[new as(c,p)]))}))}}function qW(t){const i=t.value.routeConfig;return i&&""===i.path&&void 0===i.redirectTo}function HA(t){const i=[],e=new Set;for(const n of t){if(!qW(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=HA(n.children);i.push(new as(n.value,r))}return i.filter(n=>!e.has(n))}function UA(t){let i=t;for(;i._sourceSegment;)i=i._sourceSegment;return i}function zA(t){let i=t,e=i._segmentIndexShift??0;for(;i._sourceSegment;)i=i._sourceSegment,e+=i._segmentIndexShift??0;return e-1}function $A(t){return t.data||{}}function jA(t){return t.resolve||{}}function WA(t){return"string"==typeof t.title||null===t.title}function by(t){return vn(i=>{const e=t(i);return e?rn(e).pipe(Ze(()=>i)):qe(i)})}const Vd=new oe("ROUTES");let vy=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=ft(y2)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return qe(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const n=Ns(e.loadComponent()).pipe(Ze(qA),$i(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),eg(()=>{this.componentLoaders.delete(e)})),r=new Qx(n,()=>new ke).pipe(Xx());return this.componentLoaders.set(e,r),r}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return qe({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);const o=this.loadModuleFactoryOrRoutes(n.loadChildren).pipe(Ze(s=>{this.onLoadEndListener&&this.onLoadEndListener(n);let c,l,d=!1;Array.isArray(s)?l=s:(c=s.create(e).injector,l=tA(c.get(Vd,[],bt.Self|bt.Optional)));return{routes:l.map(my),injector:c}}),eg(()=>{this.childrenLoaders.delete(n)})),a=new Qx(o,()=>new ke).pipe(Xx());return this.childrenLoaders.set(n,a),a}loadModuleFactoryOrRoutes(e){return Ns(e()).pipe(Ze(qA),An(n=>n instanceof OT||Array.isArray(n)?qe(n):rn(this.compiler.compileModuleAsync(n))))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function qA(t){return function tG(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let vg=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new ke,this.configLoader=ft(vy),this.environmentInjector=ft(ma),this.urlSerializer=ft(Ch),this.rootContexts=ft(Mh),this.navigationId=0,this.afterPreactivation=()=>qe(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new zj(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new Uj(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 Ki({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:Eh,restoredState:null,currentSnapshot:e.routerState.snapshot,targetSnapshot:null,currentRouterState:e.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Kt(n=>0!==n.id),Ze(n=>({...n,extractedUrl:e.urlHandlingStrategy.extract(n.rawUrl)})),vn(n=>{let r=!1,o=!1;return qe(n).pipe($i(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}}),vn(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 lg(a.id,e.serializeUrl(n.rawUrl),d,0)),e.rawUrlTree=a.rawUrl,a.resolve(null),qr}if(e.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return XA(a.source)&&(e.browserUrlTree=a.extractedUrl),qe(a).pipe(vn(d=>{const u=this.transitions?.getValue();return this.events.next(new ny(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),u!==this.transitions?.getValue()?qr:Promise.resolve(d)}),function HW(t,i,e,n){return vn(r=>function BW(t,i,e,n,r){return new VW(t,i,e,n,r).apply()}(t,i,e,r.extractedUrl,n).pipe(Ze(o=>({...r,urlAfterRedirects:o}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,e.config),$i(d=>{this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects},n.urlAfterRedirects=d.urlAfterRedirects}),function QW(t,i,e,n,r){return An(o=>function $W(t,i,e,n,r,o,a="emptyOnly"){return new jW(t,i,e,n,r,a,o).recognize().pipe(vn(s=>null===s?function zW(t){return new ai(i=>i.error(t))}(new UW):qe(s)))}(t,i,e,o.urlAfterRedirects,n.serialize(o.urlAfterRedirects),n,r).pipe(Ze(a=>({...o,targetSnapshot:a}))))}(this.environmentInjector,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),$i(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 Lj(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 ny(d,this.urlSerializer.serialize(u),h,f);this.events.next(g);const p=wA(u,this.rootComponentType).snapshot;return qe(n={...a,targetSnapshot:p,urlAfterRedirects:u,extras:{...m,skipLocationChange:!1,replaceUrl:!1}})}{const d="";return this.events.next(new lg(a.id,e.serializeUrl(n.extractedUrl),d,1)),e.rawUrlTree=a.rawUrl,a.resolve(null),qr}}),$i(a=>{const s=new Nj(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}),Ze(a=>n={...a,guards:uW(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function wW(t,i){return An(e=>{const{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:a}}=e;return 0===a.length&&0===o.length?qe({...e,guardsResult:!0}):function CW(t,i,e,n){return rn(t).pipe(An(r=>function MW(t,i,e,n,r){const o=i&&i.routeConfig?i.routeConfig.canDeactivate:null;return o&&0!==o.length?qe(o.map(s=>{const c=Ah(i)??r,l=Nd(s,c);return Ns(function vW(t){return t&&Rh(t.canDeactivate)}(l)?l.canDeactivate(t,i,e,n):c.runInContext(()=>l(t,i,e,n))).pipe(wo())})).pipe(Bd()):qe(!0)}(r.component,r.route,e,i,n)),wo(r=>!0!==r,!0))}(a,n,r,t).pipe(An(s=>s&&function pW(t){return"boolean"==typeof t}(s)?function kW(t,i,e,n){return rn(i).pipe(Ls(r=>xh(function DW(t,i){return null!==t&&i&&i(new $j(t)),qe(!0)}(r.route.parent,n),function SW(t,i){return null!==t&&i&&i(new Wj(t)),qe(!0)}(r.route,n),function TW(t,i,e){const n=i[i.length-1],o=i.slice(0,i.length-1).reverse().map(a=>function hW(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=>Ad(()=>qe(a.guards.map(c=>{const l=Ah(a.node)??e,d=Nd(c,l);return Ns(function bW(t){return t&&Rh(t.canActivateChild)}(d)?d.canActivateChild(n,t):l.runInContext(()=>d(n,t))).pipe(wo())})).pipe(Bd())));return qe(o).pipe(Bd())}(t,r.path,e),function EW(t,i,e){const n=i.routeConfig?i.routeConfig.canActivate:null;if(!n||0===n.length)return qe(!0);const r=n.map(o=>Ad(()=>{const a=Ah(i)??e,s=Nd(o,a);return Ns(function _W(t){return t&&Rh(t.canActivate)}(s)?s.canActivate(i,t):a.runInContext(()=>s(i,t))).pipe(wo())}));return qe(r).pipe(Bd())}(t,r.route,e))),wo(r=>!0!==r,!0))}(n,o,t,i):qe(s)),Ze(s=>({...e,guardsResult:s})))})}(this.environmentInjector,a=>this.events.next(a)),$i(a=>{if(n.guardsResult=a.guardsResult,Uc(a.guardsResult))throw DA(0,a.guardsResult);const s=new Bj(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(s)}),Kt(a=>!!a.guardsResult||(e.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),by(a=>{if(a.guards.canActivateChecks.length)return qe(a).pipe($i(s=>{const c=new Vj(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(c)}),vn(s=>{let c=!1;return qe(s).pipe(function YW(t,i){return An(e=>{const{targetSnapshot:n,guards:{canActivateChecks:r}}=e;if(!r.length)return qe(e);let o=0;return rn(r).pipe(Ls(a=>function KW(t,i,e,n){const r=t.routeConfig,o=t._resolve;return void 0!==r?.title&&!WA(r)&&(o[yh]=r.title),function ZW(t,i,e,n){const r=function JW(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===r.length)return qe({});const o={};return rn(r).pipe(An(a=>function eG(t,i,e,n){const r=Ah(i)??n,o=Nd(t,r);return Ns(o.resolve?o.resolve(i,e):r.runInContext(()=>o(i,e)))}(t[a],i,e,n).pipe(wo(),$i(s=>{o[a]=s}))),Yx(1),Jp(o),ln(a=>py(a)?qr:Vc(a)))}(o,t,i,n).pipe(Ze(a=>(t._resolvedData=a,t.data=CA(t,e).resolve,r&&WA(r)&&(t.data[yh]=r.title),null)))}(a.route,n,t,i)),$i(()=>o++),Yx(1),An(a=>o===r.length?qe(e):qr))})}(e.paramsInheritanceStrategy,this.environmentInjector),$i({next:()=>c=!0,complete:()=>{c||(e.restoreHistory(s),this.cancelNavigationTransition(s,"",2))}}))}),$i(s=>{const c=new Hj(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(c)}))}),by(a=>{const s=c=>{const l=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&l.push(this.configLoader.loadComponent(c.routeConfig).pipe($i(d=>{c.component=d}),Ze(()=>{})));for(const d of c.children)l.push(...s(d));return l};return Bc(s(a.targetSnapshot.root)).pipe(Zp(),si(1))}),by(()=>this.afterPreactivation()),Ze(a=>{const s=function eW(t,i,e){const n=Th(t,i._root,e?e._root:void 0);return new yA(n,i)}(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return n={...a,targetRouterState:s}}),$i(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)=>Ze(n=>(new dW(i,n.targetRouterState,n.currentRouterState,e).activate(t),n)))(this.rootContexts,e.routeReuseStrategy,a=>this.events.next(a)),si(1),$i({next:a=>{r=!0,this.lastSuccessfulNavigation=this.currentNavigation,e.navigated=!0,this.events.next(new Vs(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(e.currentUrlTree))),e.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{r=!0}}),eg(()=>{r||o||this.cancelNavigationTransition(n,"",1),this.currentNavigation?.id===n.id&&(this.currentNavigation=null)}),ln(a=>{if(o=!0,MA(a)){TA(a)||(e.navigated=!0,e.restoreHistory(n,!0));const s=new cg(n.id,this.urlSerializer.serialize(n.extractedUrl),a.message,a.cancellationCode);if(this.events.next(s),TA(a)){const c=e.urlHandlingStrategy.merge(a.url,e.rawUrlTree),l={skipLocationChange:n.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy||XA(n.source)};e.scheduleNavigation(c,Eh,null,l,{resolve:n.resolve,reject:n.reject,promise:n.promise})}else n.resolve(!1)}else{e.restoreHistory(n,!0);const s=new ry(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 qr}))}))}cancelNavigationTransition(e,n,r){const o=new cg(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=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function XA(t){return t!==Eh}let QA=(()=>{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===Mt);return n}getResolvedTitleForRoute(e){return e.data[yh]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=we({token:t,factory:function(){return ft(iG)},providedIn:"root"}),t})(),iG=(()=>{class t extends QA{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)(X($M))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),nG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=we({token:t,factory:function(){return ft(oG)},providedIn:"root"}),t})();class rG{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}}let oG=(()=>{class t extends rG{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(t)))(n||t)}}(),t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const xg=new oe("",{providedIn:"root",factory:()=>({})});let sG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=we({token:t,factory:function(){return ft(cG)},providedIn:"root"}),t})(),cG=(()=>{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=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function lG(t){throw t}function dG(t,i,e){return i.parse("/")}const uG={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},hG={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Vr=(()=>{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=ft(X9),this.isNgZoneEnabled=!1,this.options=ft(xg,{optional:!0})||{},this.errorHandler=this.options.errorHandler||lG,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||dG,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=ft(sG),this.routeReuseStrategy=ft(nG),this.urlCreationStrategy=ft(Kj),this.titleStrategy=ft(QA),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=tA(ft(Vd,{optional:!0})??[]),this.navigationTransitions=ft(vg),this.urlSerializer=ft(Ch),this.location=ft(fh),this.isNgZoneEnabled=ft(ze)instanceof ze&&ze.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Bs,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=wA(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),Eh,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(my),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=Uc(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,Eh,null,n)}navigate(e,n={skipLocationChange:!1}){return function fG(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=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class YA{}let gG=(()=>{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(Kt(e=>e instanceof Vs),Ls(()=>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=kp(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 rn(r).pipe(Nl())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{let r;r=n.loadChildren&&void 0===n.canLoad?this.loader.loadChildren(e,n):qe(null);const o=r.pipe(An(a=>null===a?qe(void 0):(n._loadedRoutes=a.routes,n._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));return n.loadComponent&&!n._loadedComponent?rn([o,this.loader.loadComponent(n)]).pipe(Nl()):o})}}return t.\u0275fac=function(e){return new(e||t)(X(Vr),X(y2),X(ma),X(YA),X(vy))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const wy=new oe("");let KA=(()=>{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 ny?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Vs&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof vA&&(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 vA(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return t.\u0275fac=function(e){pa()},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})();var io=(()=>((io=io||{})[io.COMPLETE=0]="COMPLETE",io[io.FAILED=1]="FAILED",io[io.REDIRECTING=2]="REDIRECTING",io))();const Hd=!1;function Hs(t,i){return{\u0275kind:t,\u0275providers:i}}const Cy=new oe("",{providedIn:"root",factory:()=>!1});function JA(){const t=ft(an);return i=>{const e=t.get(Ed);if(i!==e.components[0])return;const n=t.get(Vr),r=t.get(eI);1===t.get(ky)&&n.initialNavigation(),t.get(tI,null,bt.Optional)?.setUpPreloading(),t.get(wy,null,bt.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const eI=new oe(Hd?"bootstrap done indicator":"",{factory:()=>new ke}),ky=new oe(Hd?"initial navigation":"",{providedIn:"root",factory:()=>1});function yG(){let t=[];return t=Hd?[{provide:ip,multi:!0,useFactory:()=>{const i=ft(Vr);return()=>i.events.subscribe(e=>{console.group?.(`Router Event: ${e.constructor.name}`),console.log(function qj(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?.()})}}]:[],Hs(1,t)}const tI=new oe(Hd?"router preloader":"");function wG(t){return Hs(0,[{provide:tI,useExisting:gG},{provide:YA,useExisting:t}])}const Ph=!1,iI=new oe(Ph?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),CG=[fh,{provide:Ch,useClass:Kx},Vr,Mh,{provide:Ld,useFactory:function ZA(t){return t.routerState.root},deps:[Vr]},vy,Ph?{provide:Cy,useValue:!0}:[]];function kG(){return new M2("Router",Vr)}let nI=(()=>{class t{constructor(e){}static forRoot(e,n){return{ngModule:t,providers:[CG,Ph&&n?.enableTracing?yG().\u0275providers:[],{provide:Vd,multi:!0,useValue:e},{provide:iI,useFactory:TG,deps:[[Vr,new ha,new Dc]]},{provide:xg,useValue:n||{}},n?.useHash?{provide:Nc,useClass:PU}:{provide:Nc,useClass:Z2},{provide:wy,useFactory:()=>{const t=ft(Yz),i=ft(ze),e=ft(xg),n=ft(vg),r=ft(Ch);return e.scrollOffset&&t.setOffset(e.scrollOffset),new KA(r,n,t,i,e)}},n?.preloadingStrategy?wG(n.preloadingStrategy).\u0275providers:[],{provide:M2,multi:!0,useFactory:kG},n?.initialNavigation?MG(n):[],[{provide:rI,useFactory:JA},{provide:T2,multi:!0,useExisting:rI}]]}}static forChild(e){return{ngModule:t,providers:[{provide:Vd,multi:!0,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)(X(iI,8))},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[hy]}),t})();function TG(t){if(Ph&&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 MG(t){return["disabled"===t.initialNavigation?Hs(3,[{provide:Mp,multi:!0,useFactory:()=>{const i=ft(Vr);return()=>{i.setUpLocationChangeListener()}}},{provide:ky,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Hs(2,[{provide:ky,useValue:0},{provide:Mp,multi:!0,deps:[an],useFactory:i=>{const e=i.get(RU,Promise.resolve());return()=>e.then(()=>new Promise(n=>{const r=i.get(Vr),o=i.get(eI);(function _G(t,i){t.events.pipe(Kt(e=>e instanceof Vs||e instanceof cg||e instanceof ry||e instanceof lg),Ze(e=>e instanceof Vs||e instanceof lg?io.COMPLETE:e instanceof cg&&(0===e.code||1===e.code)?io.REDIRECTING:io.FAILED),Kt(e=>e!==io.REDIRECTING),si(1)).subscribe(()=>{i()})})(r,()=>{n(!0)}),i.get(vg).afterPreactivation=()=>(n(!0),o.closed?qe(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const rI=new oe(Ph?"Router Initializer":"");function oI(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 fi(t){return function(){var i=this,e=arguments;return new Promise(function(n,r){var o=t.apply(i,e);function a(c){oI(o,n,r,a,s,"next",c)}function s(c){oI(o,n,r,a,s,"throw",c)}a(void 0)})}}class Sy{}function Dy(t){return t&&"function"==typeof t.connect&&!(t instanceof Qx)}class aI{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 Ey{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 ke,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 Ty=(()=>{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=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Lh=new oe("_ViewRepeater");function Sr(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 Md)}})})}const My={now:()=>(My.delegate||Date).now(),delegate:void 0};class cI extends ke{constructor(i=1/0,e=1/0,n=My){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 Yo?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 Yo;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Yo?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 IG{encodeKey(i){return lI(i)}encodeValue(i){return lI(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}}const RG=/%(\d[a-f0-9])/gi,OG={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function lI(t){return encodeURIComponent(t).replace(RG,(i,e)=>OG[e]??i)}function wg(t){return`${t}`}class Us{constructor(i={}){if(this.updates=null,this.cloneFrom=null,this.encoder=i.encoder||new IG,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function FG(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(wg):[wg(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 Us({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(wg(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(wg(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 PG{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 dI(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function uI(t){return typeof Blob<"u"&&t instanceof Blob}function hI(t){return typeof FormData<"u"&&t instanceof FormData}class Nh{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 LG(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 Yo),this.context||(this.context=new PG),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 Nh(e,n,o,{params:l,headers:c,context:d,reportProgress:s,responseType:r,withCredentials:a})}}var yn=(()=>((yn=yn||{})[yn.Sent=0]="Sent",yn[yn.UploadProgress=1]="UploadProgress",yn[yn.ResponseHeader=2]="ResponseHeader",yn[yn.DownloadProgress=3]="DownloadProgress",yn[yn.Response=4]="Response",yn[yn.User=5]="User",yn))();class Iy{constructor(i,e=200,n="OK"){this.headers=i.headers||new Yo,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 Fy extends Iy{constructor(i={}){super(i),this.type=yn.ResponseHeader}clone(i={}){return new Fy({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 Cg extends Iy{constructor(i={}){super(i),this.type=yn.Response,this.body=void 0!==i.body?i.body:null}clone(i={}){return new Cg({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 fI extends Iy{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 Ry(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 zs=(()=>{class t{constructor(e){this.handler=e}request(e,n,r={}){let o;if(e instanceof Nh)o=e;else{let c,l;c=r.headers instanceof Yo?r.headers:new Yo(r.headers),r.params&&(l=r.params instanceof Us?r.params:new Us({fromObject:r.params})),o=new Nh(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=qe(o).pipe(Ls(c=>this.handler.handle(c)));if(e instanceof Nh||"events"===r.observe)return a;const s=a.pipe(Kt(c=>c instanceof Cg));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return s.pipe(Ze(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(Ze(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(Ze(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return s.pipe(Ze(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 Us).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,Ry(r,n))}post(e,n,r={}){return this.request("POST",e,Ry(r,n))}put(e,n,r={}){return this.request("PUT",e,Ry(r,n))}}return t.\u0275fac=function(e){return new(e||t)(X(yg))},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})();function mI(t,i){return i(t)}function BG(t,i){return(e,n)=>i.intercept(e,{handle:r=>t(r,n)})}const HG=new oe("HTTP_INTERCEPTORS"),Bh=new oe("HTTP_INTERCEPTOR_FNS");function UG(){let t=null;return(i,e)=>(null===t&&(t=(ft(HG,{optional:!0})??[]).reduceRight(BG,mI)),t(i,e))}let pI=(()=>{class t extends yg{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(Bh)));this.chain=n.reduceRight((r,o)=>function VG(t,i,e){return(n,r)=>e.runInContext(()=>i(n,o=>t(o,r)))}(r,o,this.injector),mI)}return this.chain(e,n=>this.backend.handle(n))}}return t.\u0275fac=function(e){return new(e||t)(X(Ay),X(ma))},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})();const WG=/^\)\]\}',?\n/;let _I=(()=>{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 ai(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 Yo(r.getAllResponseHeaders()),g=function GG(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 Fy({headers:m,status:r.status,statusText:f,url:g}),a},c=()=>{let{headers:f,status:m,statusText:g,url:p}=s(),b=null;204!==m&&(b=typeof r.response>"u"?r.responseText:r.response),0===m&&(m=b?200:0);let C=m>=200&&m<300;if("json"===e.responseType&&"string"==typeof b){const y=b;b=b.replace(WG,"");try{b=""!==b?JSON.parse(b):null}catch(M){b=y,C&&(C=!1,b={error:M,text:b})}}C?(n.next(new Cg({body:b,headers:f,status:m,statusText:g,url:p||void 0})),n.complete()):n.error(new fI({error:b,headers:f,status:m,statusText:g,url:p||void 0}))},l=f=>{const{url:m}=s(),g=new fI({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:yn.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:yn.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:yn.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)(X(xM))},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})();const Oy=new oe("XSRF_ENABLED"),bI=new oe("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),vI=new oe("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class xI{}let QG=(()=>{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=cM(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(X(ot),X(Ip),X(bI))},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})();function YG(t,i){const e=t.url.toLowerCase();if(!ft(Oy)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return i(t);const n=ft(xI).getToken(),r=ft(vI);return null!=n&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),i(t)}var dn=(()=>((dn=dn||{})[dn.Interceptors=0]="Interceptors",dn[dn.LegacyInterceptors=1]="LegacyInterceptors",dn[dn.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",dn[dn.NoXsrfProtection=3]="NoXsrfProtection",dn[dn.JsonpSupport=4]="JsonpSupport",dn[dn.RequestsMadeViaParent=5]="RequestsMadeViaParent",dn))();function Ud(t,i){return{\u0275kind:t,\u0275providers:i}}function KG(...t){const i=[zs,_I,pI,{provide:yg,useExisting:pI},{provide:Ay,useExisting:_I},{provide:Bh,useValue:YG,multi:!0},{provide:Oy,useValue:!0},{provide:xI,useClass:QG}];for(const e of t)i.push(...e.\u0275providers);return function r6(t){return{\u0275providers:t}}(i)}const yI=new oe("LEGACY_INTERCEPTOR_FN");let Py,JG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({providers:[KG(Ud(dn.LegacyInterceptors,[{provide:yI,useFactory:UG},{provide:Bh,useExisting:yI,multi:!0}]))]}),t})();try{Py=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Py=!1}let zd,wi=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function Qz(t){return t===bM}(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&&!Py)&&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)(X(Ip))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const wI=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function CI(){if(zd)return zd;if("object"!=typeof document||!document)return zd=new Set(wI),zd;let t=document.createElement("input");return zd=new Set(wI.filter(i=>(t.setAttribute("type",i),t.type===i))),zd}let Vh,kg,zc,Ly;function Ko(t){return function eq(){if(null==Vh&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Vh=!0}))}finally{Vh=Vh||!1}return Vh}()?t:!!t.capture}function kI(){if(null==zc){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return zc=!1,zc;if("scrollBehavior"in document.documentElement.style)zc=!0;else{const t=Element.prototype.scrollTo;zc=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return zc}function Hh(){if("object"!=typeof document||!document)return 0;if(null==kg){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),kg=0,0===t.scrollLeft&&(t.scrollLeft=1,kg=0===t.scrollLeft?1:2),t.remove()}return kg}function Ny(t){if(function tq(){if(null==Ly){const t=typeof document<"u"?document.head:null;Ly=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Ly}()){const i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function Sg(){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 no(t){return t.composedPath?t.composedPath()[0]:t.target}function By(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function or(t,...i){return i.length?i.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}class mq extends kt{constructor(i,e){super()}schedule(i,e=0){return this}}const Tg={setInterval(t,i,...e){const{delegate:n}=Tg;return n?.setInterval?n.setInterval(t,i,...e):setInterval(t,i,...e)},clearInterval(t){const{delegate:i}=Tg;return(i?.clearInterval||clearInterval)(t)},delegate:void 0};class Hy extends mq{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 Tg.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&&Tg.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,sa(n,this),null!=i&&(this.id=this.recycleAsyncId(e,i,null)),this.delay=null,super.unsubscribe()}}}class zh{constructor(i,e=zh.now){this.schedulerActionCtor=i,this.now=e}schedule(i,e=0,n){return new this.schedulerActionCtor(this,i).schedule(n,e)}}zh.now=My.now;class Uy extends zh{constructor(i,e=zh.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 $h=new Uy(Hy),pq=$h;function $c(t,i=$h){return qi((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 zy(t){return Kt((i,e)=>t<=e)}function Ws(t,i=Ts){return t=t??gq,qi((e,n)=>{let r,o=!0;e.subscribe(Vi(n,a=>{const s=i(a);(o||!t(r,s))&&(o=!1,r=s,n.next(a))}))})}function gq(t,i){return t===i}function pt(t){return qi((i,e)=>{Jn(t).subscribe(Vi(e,()=>e.complete(),_r)),!e.closed&&i.subscribe(e)})}function He(t){return null!=t&&"false"!=`${t}`}function On(t,i=0){return DI(t)?Number(t):i}function DI(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function jh(t){return Array.isArray(t)?t:[t]}function wn(t){return null==t?"":"string"==typeof t?t:`${t}px`}function nn(t){return t instanceof Ie?t.nativeElement:t}let EI=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),bq=(()=>{class t{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,n)=>this._cleanupObserver(n))}observe(e){const n=nn(e);return new ai(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 ke,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)(X(EI))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$y=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=He(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=On(e),this._subscribe()}constructor(e,n,r){this._contentObserver=e,this._elementRef=n,this._ngZone=r,this.event=new Ce,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe($c(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(x(bq),x(Ie),x(ze))},t.\u0275dir=Q({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),Mg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({providers:[EI]}),t})();const TI=new Set;let jd,vq=(()=>{class t{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):yq}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function xq(t){if(!TI.has(t))try{jd||(jd=document.createElement("style"),jd.setAttribute("type","text/css"),document.head.appendChild(jd)),jd.sheet&&(jd.sheet.insertRule(`@media ${t} {body{ }}`,0),TI.add(t))}catch(i){console.error(i)}}(e),this._matchMedia(e)}}return t.\u0275fac=function(e){return new(e||t)(X(wi))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function yq(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let jy=(()=>{class t{constructor(e,n){this._mediaMatcher=e,this._zone=n,this._queries=new Map,this._destroySubject=new ke}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return MI(jh(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let o=Bc(MI(jh(e)).map(a=>this._registerQuery(a).observable));return o=xh(o.pipe(si(1)),o.pipe(zy(1),$c(0))),o.pipe(Ze(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 ai(a=>{const s=c=>this._zone.run(()=>a.next(c));return n.addListener(s),()=>{n.removeListener(s)}}).pipe(xn(n),Ze(({matches:a})=>({query:e,matches:a})),pt(this._destroySubject)),mql:n};return this._queries.set(e,o),o}}return t.\u0275fac=function(e){return new(e||t)(X(vq),X(ze))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function MI(t){return t.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}function Ag(t,i){return(t.getAttribute(i)||"").match(/\S+/g)||[]}const II="cdk-describedby-message",Ig="cdk-describedby-host";let Wy=0,FI=(()=>{class t{constructor(e,n){this._platform=n,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Wy++,this._document=e,this._id=ft(Dd)+"-"+Wy++}describe(e,n,r){if(!this._canBeDescribed(e,n))return;const o=Gy(n,r);"string"!=typeof n?(RI(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=Gy(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(`[${Ig}="${this._id}"]`);for(let n=0;n0!=r.indexOf(II));e.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(e,n){const r=this._messageRegistry.get(n);(function Cq(t,i,e){const n=Ag(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(Ig,this._id),r.referenceCount++}_removeMessageReference(e,n){const r=this._messageRegistry.get(n);r.referenceCount--,function kq(t,i,e){const r=Ag(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(Ig)}_isElementDescribedByMessage(e,n){const r=Ag(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)(X(ot),X(wi))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Gy(t,i){return"string"==typeof t?`${i||""}/${t}`:t}function RI(t,i){t.id||(t.id=`${II}-${i}-${Wy++}`)}class OI{constructor(i){this._items=i,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new ke,this._typeaheadSubscription=kt.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 ke,this.change=new ke,i instanceof Rs&&(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($i(e=>this._pressedLetters.push(e)),$c(i),Kt(()=>this._pressedLetters.length>0),Ze(()=>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 Rs?this._items.toArray():this._items}}class PI extends OI{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}}class qy extends OI{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 Wh=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Dq(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 Sq(t){try{return t.frameElement}catch{return null}}(function Oq(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(e));if(n&&(-1===NI(n)||!this.isVisible(n)))return!1;let r=e.nodeName.toLowerCase(),o=NI(e);return e.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function Fq(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 Rq(t){return!function Tq(t){return function Aq(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function Eq(t){let i=t.nodeName.toLowerCase();return"input"===i||"select"===i||"button"===i||"textarea"===i}(t)||function Mq(t){return function Iq(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||LI(t))}(e)&&!this.isDisabled(e)&&(n?.ignoreVisibility||this.isVisible(e))}}return t.\u0275fac=function(e){return new(e||t)(X(wi))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function LI(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let i=t.getAttribute("tabindex");return!(!i||isNaN(parseInt(i,10)))}function NI(t){if(!LI(t))return null;const i=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}class Pq{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(si(1)).subscribe(i)}}let Fg=(()=>{class t{constructor(e,n,r){this._checker=e,this._ngZone=n,this._document=r}create(e,n=!1){return new Pq(e,this._checker,this._ngZone,this._document,n)}}return t.\u0275fac=function(e){return new(e||t)(X(Wh),X(ze),X(ot))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Rg(t){return 0===t.buttons||0===t.offsetX&&0===t.offsetY}function Og(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 Lq=new oe("cdk-input-modality-detector-options"),Nq={ignoreKeys:[18,17,224,91,16]},Wd=Ko({passive:!0,capture:!0});let Bq=(()=>{class t{get mostRecentModality(){return this._modality.value}constructor(e,n,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new Ki(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(s=>s===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=no(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Rg(a)?"keyboard":"mouse"),this._mostRecentTarget=no(a))},this._onTouchstart=a=>{Og(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=no(a))},this._options={...Nq,...o},this.modalityDetected=this._modality.pipe(zy(1)),this.modalityChanged=this.modalityDetected.pipe(Ws()),e.isBrowser&&n.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Wd),r.addEventListener("mousedown",this._onMousedown,Wd),r.addEventListener("touchstart",this._onTouchstart,Wd)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Wd),document.removeEventListener("mousedown",this._onMousedown,Wd),document.removeEventListener("touchstart",this._onTouchstart,Wd))}}return t.\u0275fac=function(e){return new(e||t)(X(wi),X(ze),X(ot),X(Lq,8))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Vq=new oe("liveAnnouncerElement",{providedIn:"root",factory:function Hq(){return null}}),Uq=new oe("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let zq=0,Xy=(()=>{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 ke,this._rootNodeFocusAndBlurListener=s=>{for(let l=no(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=nn(e);if(!this._platform.isBrowser||1!==r.nodeType)return qe(null);const o=Ny(r)||this._getDocument(),a=this._elementInfo.get(r);if(a)return n&&(a.checkChildren=!0),a.subject;const s={checkChildren:n,subject:new ke,rootNode:o};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){const n=nn(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=nn(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=no(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,Pg),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,Pg)}),this._rootNodeFocusListenerCount.set(n,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(pt(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,Pg),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Pg),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 Ce}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(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)(x(Ie),x(ro))},t.\u0275dir=Q({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),t})();const VI="cdk-high-contrast-black-on-white",HI="cdk-high-contrast-white-on-black",Qy="cdk-high-contrast-active";let UI=(()=>{class t{constructor(e,n){this._platform=e,this._document=n,this._breakpointSubscription=ft(jy).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(Qy,VI,HI),this._hasCheckedHighContrastMode=!0;const n=this.getHighContrastMode();1===n?e.add(Qy,VI):2===n&&e.add(Qy,HI)}}}return t.\u0275fac=function(e){return new(e||t)(X(wi),X(ot))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Yy=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(X(UI))},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[Mg]}),t})();const Wq=new oe("cdk-dir-doc",{providedIn:"root",factory:function Gq(){return ft(ot)}}),qq=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let un=(()=>{class t{constructor(e){this.value="ltr",this.change=new Ce,e&&(this.value=function Xq(t){const i=t?.toLowerCase()||"";return"auto"===i&&typeof navigator<"u"&&navigator?.language?qq.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)(X(Wq,8))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Gh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({}),t})();const Qq=["text"];function Yq(t,i){if(1&t&&ge(0,"mat-pseudo-checkbox",6),2&t){const e=V();S("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function Kq(t,i){1&t&&ge(0,"mat-pseudo-checkbox",7),2&t&&S("disabled",V().disabled)}function Zq(t,i){if(1&t&&(_(0,"span",8),k(1),v()),2&t){const e=V();w(1),it("(",e.group.label,")")}}const Jq=[[["mat-icon"]],"*"],eX=["mat-icon","*"];let tX=(()=>{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})(),iX=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const rX=new oe("mat-sanity-checks",{providedIn:"root",factory:function nX(){return!0}});let yt=(()=>{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!By()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return t.\u0275fac=function(e){return new(e||t)(X(UI),X(rX,8),X(ot))},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[Gh,Gh]}),t})();function cs(t){return class extends t{get disabled(){return this._disabled}set disabled(i){this._disabled=He(i)}constructor(...i){super(...i),this._disabled=!1}}}function Gs(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 qs(t){return class extends t{get disableRipple(){return this._disableRipple}set disableRipple(i){this._disableRipple=He(i)}constructor(...i){super(...i),this._disableRipple=!1}}}function qh(t,i=0){return class extends t{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?On(e):this.defaultTabIndex}constructor(...e){super(...e),this._tabIndex=i,this.defaultTabIndex=i}}}function jI(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 oX(t){return class extends t{constructor(...i){super(...i),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new ai(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 WI=(()=>{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=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class sX{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 GI=Ko({passive:!0,capture:!0});class cX{constructor(){this._events=new Map,this._delegateEventHandler=i=>{const e=no(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,GI)})}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,GI)))}}const qI={enterDuration:225,exitDuration:150},XI=Ko({passive:!0,capture:!0}),QI=["mousedown","touchstart"],YI=["mouseup","mouseleave","touchend","touchcancel"];class Gd{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=nn(n))}fadeInRipple(i,e,n={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...qI,...n.animation};n.centered&&(i=r.left+r.width/2,e=r.top+r.height/2);const a=n.radius||function dX(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 sX(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 b=()=>this._finishRippleTransition(g),C=()=>this._destroyRipple(g);d.addEventListener("transitionend",b),d.addEventListener("transitioncancel",C),p={onTransitionEnd:b,onTransitionCancel:C}}),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={...qI,...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=nn(i);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,QI.forEach(n=>{Gd._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(()=>{YI.forEach(e=>{this._triggerElement.addEventListener(e,this,XI)})}),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=Rg(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&&(QI.forEach(e=>Gd._eventManager.removeHandler(e,i,this)),this._pointerUpEventsRegistered&&YI.forEach(e=>i.removeEventListener(e,this,XI)))}}Gd._eventManager=new cX;const Ky=new oe("mat-ripple-global-options");let ko=(()=>{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 Gd(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)(x(Ie),x(ze),x(wi),x(Ky,8),x(Ii,8))},t.\u0275dir=Q({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,n){2&e&&Ye("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})(),Xs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[yt,yt]}),t})(),uX=(()=>{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)(x(Ii,8))},t.\u0275cmp=Le({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(e,n){2&e&&Ye("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})(),KI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[yt]}),t})();const Zy=new oe("MAT_OPTION_PARENT_COMPONENT"),Jy=new oe("MatOptgroup");let hX=0;class ZI{constructor(i,e=!1){this.source=i,this.isUserInput=e}}let fX=(()=>{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=He(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-"+hX++,this.onSelectionChange=new Ce,this._stateChanges=new ke}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)&&!or(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 ZI(this,e))}}return t.\u0275fac=function(e){pa()},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&rt(Qq,7),2&e){let r;Se(r=De())&&(n._text=r.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),Qs=(()=>{class t extends fX{constructor(e,n,r,o){super(e,n,r,o)}}return t.\u0275fac=function(e){return new(e||t)(x(Ie),x(Ut),x(Zy,8),x(Jy,8))},t.\u0275cmp=Le({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(e,n){1&e&&z("click",function(){return n._selectViaInteraction()})("keydown",function(o){return n._handleKeydown(o)}),2&e&&(xa("id",n.id),st("aria-selected",n.selected)("aria-disabled",n.disabled.toString()),Ye("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:eX,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&&(hi(Jq),P(0,Yq,1,2,"mat-pseudo-checkbox",0),Je(1),_(2,"span",1,2),Je(4,1),v(),P(5,Kq,1,1,"mat-pseudo-checkbox",3),P(6,Zq,2,1,"span",4),ge(7,"div",5)),2&e&&(S("ngIf",n.multiple),w(5),S("ngIf",!n.multiple&&n.selected&&!n.hideSingleSelectionIndicator),w(1),S("ngIf",n.group&&n.group._inert),w(1),S("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disabled||n.disableRipple))},dependencies:[ko,Yi,uX],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 Lg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[Xs,Xn,yt,KI]}),t})();const tF=["mat-button",""],iF=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],nF=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],rF=".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}",pX=["mat-icon-button",""],gX=["*"],_X=[{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"]}],bX=Gs(cs(qs(class{constructor(t){this._elementRef=t}})));let e1=(()=>{class t extends bX{constructor(e,n,r,o){super(e),this._platform=n,this._ngZone=r,this._animationMode=o,this._focusMonitor=ft(ro),this._isFab=!1;const a=e.nativeElement.classList;for(const s of _X)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){pa()},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&rt(ko,5),2&e){let r;Se(r=De())&&(n.ripple=r.first)}},features:[pe]}),t})(),xX=(()=>{class t extends e1{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){pa()},t.\u0275dir=Q({type:t,features:[pe]}),t})(),Dr=(()=>{class t extends e1{constructor(e,n,r,o){super(e,n,r,o)}}return t.\u0275fac=function(e){return new(e||t)(x(Ie),x(wi),x(ze),x(Ii,8))},t.\u0275cmp=Le({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&&(st("disabled",n.disabled||null),Ye("_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:tF,ngContentSelectors:nF,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&&(hi(iF),ge(0,"span",0),Je(1),_(2,"span",1),Je(3,1),v(),Je(4,2),ge(5,"span",2)(6,"span",3)(7,"span",4)),2&e&&(Ye("mdc-button__ripple",!n._isFab)("mdc-fab__ripple",n._isFab),w(6),S("matRippleDisabled",n._isRippleDisabled())("matRippleTrigger",n._elementRef.nativeElement))},dependencies:[ko],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})(),yX=(()=>{class t extends xX{constructor(e,n,r,o){super(e,n,r,o)}}return t.\u0275fac=function(e){return new(e||t)(x(Ie),x(wi),x(ze),x(Ii,8))},t.\u0275cmp=Le({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&&(st("disabled",n.disabled||null)("tabindex",n.disabled?-1:n.tabIndex)("aria-disabled",n.disabled.toString()),Ye("_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:tF,ngContentSelectors:nF,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&&(hi(iF),ge(0,"span",0),Je(1),_(2,"span",1),Je(3,1),v(),Je(4,2),ge(5,"span",2)(6,"span",3)(7,"span",4)),2&e&&(Ye("mdc-button__ripple",!n._isFab)("mdc-fab__ripple",n._isFab),w(6),S("matRippleDisabled",n._isRippleDisabled())("matRippleTrigger",n._elementRef.nativeElement))},dependencies:[ko],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)}',rF],encapsulation:2,changeDetection:0}),t})(),Zo=(()=>{class t extends e1{constructor(e,n,r,o){super(e,n,r,o)}}return t.\u0275fac=function(e){return new(e||t)(x(Ie),x(wi),x(ze),x(Ii,8))},t.\u0275cmp=Le({type:t,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(e,n){2&e&&(st("disabled",n.disabled||null),Ye("_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:pX,ngContentSelectors:gX,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&&(hi(),ge(0,"span",0),Je(1),ge(2,"span",1)(3,"span",2)(4,"span",3)),2&e&&(w(3),S("matRippleDisabled",n._isRippleDisabled())("matRippleCentered",!0)("matRippleTrigger",n._elementRef.nativeElement))},dependencies:[ko],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}',rF],encapsulation:2,changeDetection:0}),t})(),oF=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[yt,Xs,yt]}),t})();class aF{}class CX{}const ls="*";function zi(t,i){return{type:7,name:t,definitions:i,options:{}}}function jt(t,i=null){return{type:4,styles:i,timings:t}}function t1(t,i=null){return{type:3,steps:t,options:i}}function sF(t,i=null){return{type:2,steps:t,options:i}}function Xe(t){return{type:6,styles:t,offset:null}}function Zt(t,i,e){return{type:0,name:t,styles:i,options:e}}function Qh(t){return{type:5,steps:t}}function Wt(t,i,e=null){return{type:1,expr:t,animation:i,options:e}}function Ng(t=null){return{type:9,options:t}}function Bg(t,i,e=null){return{type:11,selector:t,animation:i,options:e}}function cF(t){Promise.resolve().then(t)}class Yh{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(){cF(()=>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 lF{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?cF(()=>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 n1="!";class r1{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 qd extends r1{constructor(i,e,n,r,o){super(),this.component=i,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=r,this.projectableNodes=o}}class ds extends r1{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 kX extends r1{constructor(i){super(),this.element=i instanceof Ie?i.nativeElement:i}}class Vg{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(i){return i instanceof qd?(this._attachedPortal=i,this.attachComponentPortal(i)):i instanceof ds?(this._attachedPortal=i,this.attachTemplatePortal(i)):this.attachDomPortal&&i instanceof kX?(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 SX extends Vg{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||an.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 DX=(()=>{class t extends ds{constructor(e,n){super(e,n)}}return t.\u0275fac=function(e){return new(e||t)(x(yi),x(Oi))},t.\u0275dir=Q({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[pe]}),t})(),us=(()=>{class t extends Vg{constructor(e,n,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=n,this._isInitialized=!1,this.attached=new Ce,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)(x(Is),x(Oi),x(ot))},t.\u0275dir=Q({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[pe]}),t})(),jc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({}),t})();const EX=["addListener","removeListener"],TX=["addEventListener","removeEventListener"],MX=["on","off"];function Jo(t,i,e,n){if(Xt(e)&&(n=e,e=void 0),n)return Jo(t,i,e).pipe(qx(n));const[r,o]=function FX(t){return Xt(t.addEventListener)&&Xt(t.removeEventListener)}(t)?TX.map(a=>s=>t[a](i,s,e)):function AX(t){return Xt(t.addListener)&&Xt(t.removeListener)}(t)?EX.map(dF(t,i)):function IX(t){return Xt(t.on)&&Xt(t.off)}(t)?MX.map(dF(t,i)):[];if(!r&&X_(t))return An(a=>Jo(a,i,e))(Jn(t));if(!r)throw new TypeError("Invalid event target");return new ai(a=>{const s=(...c)=>a.next(1o(s)})}function dF(t,i){return e=>n=>t[e](i,n)}const Kh={schedule(t){let i=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:n}=Kh;n&&(i=n.requestAnimationFrame,e=n.cancelAnimationFrame);const r=i(o=>{e=void 0,t(o)});return new kt(()=>e?.(r))},requestAnimationFrame(...t){const{delegate:i}=Kh;return(i?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){const{delegate:i}=Kh;return(i?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0},uF=new class OX extends Uy{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 RX extends Hy{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=Kh.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&&(Kh.cancelAnimationFrame(e),i._scheduled=void 0)}});let o1,PX=1;const Hg={};function hF(t){return t in Hg&&(delete Hg[t],!0)}const LX={setImmediate(t){const i=PX++;return Hg[i]=!0,o1||(o1=Promise.resolve()),o1.then(()=>hF(i)&&t()),i},clearImmediate(t){hF(t)}},{setImmediate:NX,clearImmediate:BX}=LX,Ug={setImmediate(...t){const{delegate:i}=Ug;return(i?.setImmediate||NX)(...t)},clearImmediate(t){const{delegate:i}=Ug;return(i?.clearImmediate||BX)(t)},delegate:void 0},a1=new class HX extends Uy{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 VX extends Hy{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=Ug.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&&(Ug.clearImmediate(e),i._scheduled=void 0)}});function zg(t=0,i,e=pq){let n=-1;return null!=i&&(_k(i)?e=i:n=i),new ai(r=>{let o=function zX(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 s1(t,i=$h){return function UX(t){return qi((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(Vi(e,l=>{n=!0,r=l,o||Jn(t(l)).subscribe(o=Vi(e,s,c))},()=>{a=!0,(!n||!o||o.closed)&&e.complete()}))})}(()=>zg(t,i))}const $X=["contentWrapper"],jX=["*"],WX=new oe("VIRTUAL_SCROLL_STRATEGY");let Wc=(()=>{class t{constructor(e,n,r){this._ngZone=e,this._platform=n,this._scrolled=new ke,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 ai(n=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(s1(e)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):qe()}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(Kt(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=nn(n),o=e.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Jo(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)(X(ze),X(wi),X(ot,8))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Zh=(()=>{class t{constructor(e,n,r,o){this.elementRef=e,this.scrollDispatcher=n,this.ngZone=r,this.dir=o,this._destroyed=new ke,this._elementScrolled=new ai(a=>this.ngZone.runOutsideAngular(()=>Jo(this.elementRef.nativeElement,"scroll").pipe(pt(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!=Hh()?(null!=e.left&&(e.right=n.scrollWidth-n.clientWidth-e.left),2==Hh()?e.left=e.right:1==Hh()&&(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;kI()?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==Hh()?e==n?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:a&&1==Hh()?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)(x(Ie),x(Wc),x(ze),x(un,8))},t.\u0275dir=Q({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),t})(),ea=(()=>{class t{constructor(e,n,r){this._platform=e,this._change=new ke,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(s1(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)(X(wi),X(ze),X(ot,8))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const fF=new oe("VIRTUAL_SCROLLABLE");let XX=(()=>{class t extends Zh{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)(x(Ie),x(Wc),x(ze),x(un,8))},t.\u0275dir=Q({type:t,features:[pe]}),t})();const YX=typeof requestAnimationFrame<"u"?uF:a1;let KX=(()=>{class t extends XX{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=He(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=ft(wi),this._detachedSubject=new ke,this._renderedRangeSubject=new ke,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new ai(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=kt.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(xn(null),s1(0,YX)).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(pt(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 QX(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)(x(Ie),x(Ut),x(ze),x(WX,8),x(un,8),x(Wc),x(ea),x(fF,8))},t.\u0275cmp=Le({type:t,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,n){if(1&e&&rt($X,7),2&e){let r;Se(r=De())&&(n._contentWrapper=r.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,n){2&e&&Ye("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:Zh,useFactory:(i,e)=>i||e,deps:[[new ha,new Wm(fF)],t]}]),pe,$v],ngContentSelectors:jX,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,n){1&e&&(hi(),_(0,"div",0,1),Je(2),v(),ge(3,"div",2)),2&e&&(w(3),en("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})(),hs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({}),t})(),c1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[Gh,hs,KX,Gh,hs]}),t})();const mF=kI();class ZX{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=wn(-this._previousScrollPosition.left),i.style.top=wn(-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"),mF&&(n.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),mF&&(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 JX{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(Kt(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 pF{enable(){}disable(){}attach(){}}function l1(t,i){return i.some(e=>t.bottome.bottom||t.righte.right)}function gF(t,i){return i.some(e=>t.tope.bottom||t.lefte.right)}class eQ{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();l1(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 tQ=(()=>{class t{constructor(e,n,r,o){this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=r,this.noop=()=>new pF,this.close=a=>new JX(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new ZX(this._viewportRuler,this._document),this.reposition=a=>new eQ(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=o}}return t.\u0275fac=function(e){return new(e||t)(X(Wc),X(ea),X(ze),X(ot))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class Xd{constructor(i){if(this.scrollStrategy=new pF,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 iQ{constructor(i,e){this.connectionPair=i,this.scrollableViewProperties=e}}let _F=(()=>{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)(X(ot))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),nQ=(()=>{class t extends _F{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)(X(ot),X(ze,8))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),rQ=(()=>{class t extends _F{constructor(e,n,r){super(e),this._platform=n,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=no(o)},this._clickListener=o=>{const a=no(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)(X(ot),X(wi),X(ze,8))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$g=(()=>{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||By()){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 ke,this._outsidePointerEvents=new ke,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(si(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=wn(this._config.width),i.height=wn(this._config.height),i.minWidth=wn(this._config.minWidth),i.minHeight=wn(this._config.minHeight),i.maxWidth=wn(this._config.maxWidth),i.maxHeight=wn(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=jh(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(pt(Pi(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 bF="cdk-overlay-connected-position-bounding-box",oQ=/([A-Za-z%]+)$/;class aQ{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 ke,this._resizeSubscription=kt.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(i)}attach(i){this._validatePositions(),i.hostElement.classList.add(bF),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&&Gc(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(bF),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=xF(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=vF(this._overlayRef.getConfig().minHeight),s=vF(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=xF(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=wn(n.height),r.top=wn(n.top),r.bottom=wn(n.bottom),r.width=wn(n.width),r.left=wn(n.left),r.right=wn(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=wn(o)),a&&(r.maxWidth=wn(a))}this._lastBoundingBoxSize=n,Gc(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Gc(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Gc(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();Gc(n,this._getExactOverlayY(e,i,d)),Gc(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=wn(a.maxHeight):o&&(n.maxHeight="")),a.maxWidth&&(r?n.maxWidth=wn(a.maxWidth):o&&(n.maxWidth="")),Gc(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=wn(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=wn(o.x),r}_getScrollVisibility(){const i=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:gF(i,n),isOriginOutsideView:l1(i,n),isOverlayClipped:gF(e,n),isOverlayOutsideView:l1(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&&jh(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 Ie)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 Gc(t,i){for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t}function vF(t){if("number"!=typeof t&&null!=t){const[i,e]=t.split(oQ);return e&&"px"!==e?null:parseFloat(i)}return t||null}function xF(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 yF="cdk-global-overlay-wrapper";class sQ{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(yF),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(yF),n.justifyContent=n.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}}let cQ=(()=>{class t{constructor(e,n,r,o){this._viewportRuler=e,this._document=n,this._platform=r,this._overlayContainer=o}global(){return new sQ}flexibleConnectedTo(e){return new aQ(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(X(ea),X(ot),X(wi),X($g))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),lQ=0,ar=(()=>{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 Xd(e);return a.direction=a.direction||this._directionality.value,new Jh(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-"+lQ++,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(Ed)),new SX(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(X(tQ),X($g),X(Is),X(cQ),X(nQ),X(an),X(ze),X(ot),X(un),X(fh),X(rQ),X(Ii,8))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const dQ=[{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"}],wF=new oe("cdk-connected-overlay-scroll-strategy");let d1=(()=>{class t{constructor(e){this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(x(Ie))},t.\u0275dir=Q({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0}),t})(),CF=(()=>{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=He(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=He(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=He(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=He(e)}get push(){return this._push}set push(e){this._push=He(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=kt.EMPTY,this._attachSubscription=kt.EMPTY,this._detachSubscription=kt.EMPTY,this._positionSubscription=kt.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Ce,this.positionChange=new Ce,this.attach=new Ce,this.detach=new Ce,this.overlayKeydown=new Ce,this.overlayOutsideClick=new Ce,this._templatePortal=new ds(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=dQ);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&&!or(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 Xd({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 d1?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)(x(ar),x(yi),x(Oi),x(wF),x(un,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:[Ai]}),t})();const hQ={provide:wF,deps:[ar],useFactory:function uQ(t){return()=>t.scrollStrategies.reposition()}};let qc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({providers:[ar,hQ],imports:[Gh,jc,c1,c1]}),t})();function fQ(t,i){if(1&t){const e=Ne();_(0,"div",2)(1,"button",3),z("click",function(){return _e(e),be(V().action())}),k(2),v()()}if(2&t){const e=V();w(2),it(" ",e.data.action," ")}}const mQ=["label"];function pQ(t,i){}const gQ=Math.pow(2,31)-1;class jg{constructor(i,e){this._overlayRef=e,this._afterDismissed=new ke,this._afterOpened=new ke,this._onAction=new ke,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,gQ))}_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 u1=new oe("MatSnackBarData");class Wg{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let _Q=(()=>{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})(),bQ=(()=>{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})(),vQ=(()=>{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})(),xQ=(()=>{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)(x(jg),x(u1))},t.\u0275cmp=Le({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&&(_(0,"div",0),k(1),v(),P(2,fQ,3,1,"div",1)),2&e&&(w(1),it(" ",n.data.message,"\n"),w(1),S("ngIf",n.hasAction))},dependencies:[Yi,Dr,_Q,bQ,vQ],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0}),t})();const yQ={snackBarState:zi("state",[Zt("void, hidden",Xe({transform:"scale(0.8)",opacity:0})),Zt("visible",Xe({transform:"scale(1)",opacity:1})),Wt("* => visible",jt("150ms cubic-bezier(0, 0, 0.2, 1)")),Wt("* => void, * => hidden",jt("75ms cubic-bezier(0.4, 0.0, 1, 1)",Xe({opacity:0})))])};let wQ=0,CQ=(()=>{class t extends Vg{constructor(e,n,r,o,a){super(),this._ngZone=e,this._elementRef=n,this._changeDetectorRef=r,this._platform=o,this.snackBarConfig=a,this._document=ft(ot),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new ke,this._onExit=new ke,this._onEnter=new ke,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+wQ++,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(si(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)(x(ze),x(Ie),x(Ut),x(wi),x(Wg))},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&rt(us,7),2&e){let r;Se(r=De())&&(n._portalOutlet=r.first)}},features:[pe]}),t})(),kQ=(()=>{class t extends CQ{_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=Ct(t)))(n||t)}}(),t.\u0275cmp=Le({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(e,n){if(1&e&&rt(mQ,7),2&e){let r;Se(r=De())&&(n._label=r.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(e,n){1&e&&pp("@state.done",function(o){return n.onAnimationEnd(o)}),2&e&&vp("@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&&(_(0,"div",0)(1,"div",1,2)(3,"div",3),P(4,pQ,0,0,"ng-template",4),v(),ge(5,"div"),v()()),2&e&&(w(5),st("aria-live",n._live)("role",n._role)("id",n._liveElementId))},dependencies:[us],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:[yQ.snackBarState]}}),t})(),kF=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[qc,jc,Xn,oF,yt,yt]}),t})();const SF=new oe("mat-snack-bar-default-options",{providedIn:"root",factory:function SQ(){return new Wg}});let DQ=(()=>{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=an.create({parent:n&&n.viewContainerRef&&n.viewContainerRef.injector||this._injector,providers:[{provide:Wg,useValue:n}]}),a=new qd(this.snackBarContainerComponent,n.viewContainerRef,o),s=e.attach(a);return s.instance.snackBarConfig=n,s.instance}_attach(e,n){const r={...new Wg,...this._defaultConfig,...n},o=this._createOverlay(r),a=this._attachSnackBarContainer(o,r),s=new jg(a,o);if(e instanceof yi){const c=new ds(e,null,{$implicit:r.data,snackBarRef:s});s.instance=a.attachTemplatePortal(c)}else{const c=this._createInjector(r,s),l=new qd(e,void 0,c),d=a.attachComponentPortal(l);s.instance=d.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(pt(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 Xd;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 an.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:jg,useValue:n},{provide:u1,useValue:e.data}]})}}return t.\u0275fac=function(e){return new(e||t)(X(ar),X(Xy),X(an),X(jy),X(t,12),X(SF))},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})(),Qd=(()=>{class t extends DQ{constructor(e,n,r,o,a,s){super(e,n,r,o,a,s),this.simpleSnackBarComponent=xQ,this.snackBarContainerComponent=kQ,this.handsetCssClass="mat-mdc-snack-bar-handset"}}return t.\u0275fac=function(e){return new(e||t)(X(ar),X(Xy),X(an),X(jy),X(t,12),X(SF))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:kF}),t})(),Zi=(()=>{class t{constructor(e,n){this.sbRef=e,this.data=n}static#e=this.\u0275fac=function(n){return new(n||t)(x(jg),x(u1))};static#t=this.\u0275cmp=Le({type:t,selectors:[["snack-alert"]],decls:2,vars:1,consts:[[1,"example-alert"]],template:function(n,r){1&n&&(_(0,"span",0),k(1),v()),2&n&&(w(1),Ge(r.data))},styles:[".example-alert[_ngcontent-%COMP%]{color:#fff}"]})}return t})(),Yn=(()=>{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.snowstormFhirBaseSubject=new Ki(this.snowstormFhirBase),this.fhirUrlParamSubject=new Ki(this.fhirUrlParam),this.langSubject=new Ki(this.lang),this.snowstormFhirBase$=this.snowstormFhirBaseSubject.asObservable(),this.fhirUrlParam$=this.fhirUrlParamSubject.asObservable(),this.lang$=this.langSubject.asObservable(),this.conceptCache=new Map}setSnowstormFhirBase(e){this.snowstormFhirBase=e,this.snowstormFhirBaseSubject.next(e)}setFhirUrlParam(e){this.fhirUrlParam=e,this.fhirUrlParamSubject.next(e)}setLang(e){this.lang=e,this.langSubject.next(e)}getSnowstormFhirBase(){return this.snowstormFhirBase}getFhirUrlParam(){return this.fhirUrlParam}getLang(){return this.lang}getCodeSystems(){return this.http.get(`${this.snowstormFhirBase}/CodeSystem`).pipe(ln(this.handleError("getCodeSystems",{})))}getCodeSystem(e){return this.http.get(`${this.snowstormFhirBase}/CodeSystem?version=${e}`).pipe(ln(this.handleError("getCodeSystem",{})))}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(ln(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(ln(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(ln(this.handleError("expandValueSet",{})))}handleError(e="operation",n){return r=>(console.error("There was an error!"),console.error(r),this._snackBar.openFromComponent(Zi,{duration:5e3,data:r.message,panelClass:["red-snackbar"]}),qe(n))}lookupConcept(e,n){n||(n=this.fhirUrlParam);const r=`${n}:${e}`,o=this.conceptCache.get(r);if(o)return qe(o);let a=`${this.snowstormFhirBase}/CodeSystem/$lookup?system=http://snomed.info/sct&code=${e}&property=normalForm`;"http://snomed.info/sct"!=n&&(a+=`&version=${n}`);const s={headers:new Yo({"Accept-Language":"en"})};return this.http.get(a,s).pipe($i(c=>{this.conceptCache.set(r,c)}),ln(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(ln(this.handleError("getMRCMAttributes",{})))}addPostcoordinatedExpression(e){let n=`${this.snowstormFhirBase}/CodeSystem/sct_11000003104_EXP`;const r={headers:new Yo({"Content-Type":"application/fhir+json"})};return this.http.patch(n,{resourceType:"CodeSystem",concept:[{code:e}]},r).pipe(ln(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(ln(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(ln(this.handleError("translate",{})))}lookupOtherCodeSystems(e,n){return this.http.get(`${this.snowstormFhirBase}/CodeSystem/$lookup?system=${e}&code=${n}`).pipe(ln(this.handleError("lookup",{})))}getNormalForm(e){if(e.parameter)for(let n of e.parameter){let r=!1;if("property"==n.name){for(let o of n.part)"code"==o.name&&"normalForm"==o.valueString&&(r=!0);if(r)for(let o of n.part)if("valueString"==o.name)return o.valueString}}return""}parseNormmalForm(e){const n=[];return e.split("} {").forEach(o=>{const a=o.match(/\d+\|[^\|]+\|\s*=\s*\d+\|[^\|]+\|/g);if(!a)return;const s=a.map(c=>{const[l,d]=c.split("=").map(g=>g.trim()),[u,h]=l.split("|").map(g=>g.trim()),[f,m]=d.split("|").map(g=>g.trim());return{type:{code:u,display:h.replace(/\(.*\)/,"").trim()},target:{code:f,display:m}}});n.push(s)}),{groups:n}}static#e=this.\u0275fac=function(n){return new(n||t)(X(zs),X(Qd))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function DF(...t){const i=bk(t),{args:e,keys:n}=qM(t),r=new ai(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?XM(n,s):s),o.complete())}))}});return i?r.pipe(qx(i)):r}const EQ=["*"];let Gg;function ef(t){return function TQ(){if(void 0===Gg&&(Gg=null,typeof window<"u")){const t=window;void 0!==t.trustedTypes&&(Gg=t.trustedTypes.createPolicy("angular#components",{createHTML:i=>i}))}return Gg}()?.createHTML(t)||t}function EF(t){return Error(`Unable to find icon with the name "${t}"`)}function TF(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function MF(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class Xc{constructor(i,e,n){this.url=i,this.svgText=e,this.options=n}}let qg=(()=>{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 Xc(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,n,r,o){const a=this._sanitizer.sanitize(_i.HTML,r);if(!a)throw MF(r);const s=ef(a);return this._addSvgIconConfig(e,n,new Xc("",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 Xc(n,null,r))}addSvgIconSetLiteralInNamespace(e,n,r){const o=this._sanitizer.sanitize(_i.HTML,n);if(!o)throw MF(n);const a=ef(o);return this._addSvgIconSetConfig(e,new Xc("",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(_i.RESOURCE_URL,e);if(!n)throw TF(e);const r=this._cachedIconsByUrl.get(n);return r?qe(Xg(r)):this._loadSvgIconFromConfig(new Xc(e,null)).pipe($i(o=>this._cachedIconsByUrl.set(n,o)),Ze(o=>Xg(o)))}getNamedSvgIcon(e,n=""){const r=AF(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):Vc(EF(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?qe(Xg(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Ze(n=>Xg(n)))}_getSvgFromIconSetConfigs(e,n){const r=this._extractIconWithNameFromAnySet(e,n);return r?qe(r):DF(n.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(ln(s=>{const l=`Loading icon set URL: ${this._sanitizer.sanitize(_i.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(l)),qe(null)})))).pipe(Ze(()=>{const a=this._extractIconWithNameFromAnySet(e,n);if(!a)throw EF(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($i(n=>e.svgText=n),Ze(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?qe(null):this._fetchIcon(e).pipe($i(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(ef(""));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(ef("")),r=e.attributes;for(let o=0;oef(l)),eg(()=>this._inProgressUrlFetches.delete(a)),wk());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,n,r){return this._svgIconConfigs.set(AF(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:""}}}),IF=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],LQ=IF.map(t=>`[${t}]`).join(", "),NQ=/^url\(['"]?#(.*?)['"]?\)$/;let oo=(()=>{class t extends FQ{get inline(){return this._inline}set inline(e){this._inline=He(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=kt.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(LQ),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const s=n[o],c=s.getAttribute(a),l=c?c.match(NQ):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(si(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)(x(Ie),x(qg),_o("aria-hidden"),x(OQ),x(Ya),x(RQ,8))},t.\u0275cmp=Le({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(e,n){2&e&&(st("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),Ye("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:EQ,decls:1,vars:0,template:function(e,n){1&e&&(hi(),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})(),BQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[yt,yt]}),t})();function FF(t,i){return i?e=>xh(i.pipe(si(1),function VQ(){return qi((t,i)=>{t.subscribe(Vi(i,_r))})}()),e.pipe(FF(t))):An((e,n)=>Jn(t(e,n)).pipe(si(1),Jp(e)))}function h1(t,i=$h){const e=zg(t,i);return FF(()=>e)}const HQ=["mat-menu-item",""];function UQ(t,i){1&t&&(qa(),_(0,"svg",3),ge(1,"polygon",4),v())}const zQ=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],$Q=["mat-icon, [matMenuItemIcon]","*"];function jQ(t,i){if(1&t){const e=Ne();_(0,"div",0),z("keydown",function(r){return _e(e),be(V()._handleKeydown(r))})("click",function(){return _e(e),be(V().closed.emit("click"))})("@transformMenu.start",function(r){return _e(e),be(V()._onAnimationStart(r))})("@transformMenu.done",function(r){return _e(e),be(V()._onAnimationDone(r))}),_(1,"div",1),Je(2),v()()}if(2&t){const e=V();S("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),st("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const WQ=["*"],f1=new oe("MAT_MENU_PANEL"),GQ=qs(cs(class{}));let ka=(()=>{class t extends GQ{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 ke,this._focused=new ke,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",jt("120ms cubic-bezier(0, 0, 0.2, 1)",Xe({opacity:1,transform:"scale(1)"}))),Wt("* => void",jt("100ms 25ms linear",Xe({opacity:0})))]),fadeInItems:zi("fadeInItems",[Zt("showing",Xe({opacity:1})),Wt("void => *",[Xe({opacity:0}),jt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let XQ=0;const RF=new oe("mat-menu-default-options",{providedIn:"root",factory:function QQ(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let tf=(()=>{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=He(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=He(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 Rs,this._classList={},this._panelAnimationState="void",this._animationDone=new ke,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new Ce,this.close=this.closed,this.panelId="mat-menu-panel-"+XQ++}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new qy(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(xn(this._directDescendantItems),vn(e=>Pi(...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(xn(this._directDescendantItems),vn(n=>Pi(...n.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const n=e.keyCode,r=this._keyManager;switch(n){case 27:or(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(si(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(xn(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)(x(Ie),x(ze),x(RF),x(Ut))},t.\u0275dir=Q({type:t,contentQueries:function(e,n,r){if(1&e&&(It(r,qQ,5),It(r,ka,5),It(r,ka,4)),2&e){let o;Se(o=De())&&(n.lazyContent=o.first),Se(o=De())&&(n._allItems=o),Se(o=De())&&(n.items=o)}},viewQuery:function(e,n){if(1&e&&rt(yi,5),2&e){let r;Se(r=De())&&(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})(),Qc=(()=>{class t extends tf{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)(x(Ie),x(ze),x(RF),x(Ut))},t.\u0275cmp=Le({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,n){2&e&&st("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[We([{provide:f1,useExisting:t}]),pe],ngContentSelectors:WQ,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&&(hi(),P(0,jQ,3,6,"ng-template"))},dependencies:[os],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:[Qg.transformMenu,Qg.fadeInItems]},changeDetection:0}),t})();const OF=new oe("mat-menu-scroll-strategy"),KQ={provide:OF,deps:[ar],useFactory:function YQ(t){return()=>t.scrollStrategies.reposition()}},PF=Ko({passive:!0});let ZQ=(()=>{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=kt.EMPTY,this._hoverSubscription=kt.EMPTY,this._menuCloseSubscription=kt.EMPTY,this._changeDetectorRef=ft(Ut),this._handleTouchStart=u=>{Og(u)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Ce,this.onMenuOpen=this.menuOpened,this.menuClosed=new Ce,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=a instanceof tf?a:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,PF)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,PF),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 tf&&(e._startAnimation(),e._directDescendantItems.changes.pipe(pt(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 tf?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(Kt(r=>"void"===r.toState),si(1),pt(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 Xd({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 Pi(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:qe(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Kt(a=>a!==this._menuItemInstance),Kt(()=>this._menuOpen)):qe(),n)}_handleMousedown(e){Rg(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(Kt(e=>e===this._menuItemInstance&&!e.disabled),h1(0,a1)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof tf&&this.menu._isAnimating?this.menu._animationDone.pipe(si(1),h1(0,a1),pt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new ds(e.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(x(ar),x(Ie),x(Oi),x(OF),x(f1,8),x(ka,10),x(un,8),x(ro),x(ze))},t.\u0275dir=Q({type:t,hostVars:3,hostBindings:function(e,n){1&e&&z("click",function(o){return n._handleClick(o)})("mousedown",function(o){return n._handleMousedown(o)})("keydown",function(o){return n._handleKeydown(o)}),2&e&&st("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})(),Yc=(()=>{class t extends ZQ{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(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})(),JQ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({providers:[KQ],imports:[Xn,Xs,yt,qc,hs,yt]}),t})();const eY=["determinateSpinner"];function tY(t,i){if(1&t&&(qa(),_(0,"svg",11),ge(1,"circle",12),v()),2&t){const e=V();st("viewBox",e._viewBox()),w(1),en("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),st("r",e._circleRadius())}}const iY=Gs(class{constructor(t){this._elementRef=t}},"primary"),nY=new oe("mat-progress-spinner-default-options",{providedIn:"root",factory:function rY(){return{diameter:LF}}}),LF=100;let Yd=(()=>{class t extends iY{constructor(e,n,r){super(e),this.mode="mat-spinner"===this._elementRef.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",this._value=0,this._diameter=LF,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,On(e)))}get diameter(){return this._diameter}set diameter(e){this._diameter=On(e)}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=On(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)(x(Ie),x(Ii,8),x(nY))},t.\u0275cmp=Le({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(e,n){if(1&e&&rt(eY,5),2&e){let r;Se(r=De())&&(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&&(st("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===n.mode?n.value:null)("mode",n.mode),en("width",n.diameter,"px")("height",n.diameter,"px"),Ye("_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&&(P(0,tY,2,8,"ng-template",null,0,Pc),_(2,"div",1,2),qa(),_(4,"svg",3),ge(5,"circle",4),v()(),Gl(),_(6,"div",5)(7,"div",6)(8,"div",7),to(9,8),v(),_(10,"div",9),to(11,8),v(),_(12,"div",10),to(13,8),v()()()),2&e){const r=wt(1);w(4),st("viewBox",n._viewBox()),w(1),en("stroke-dasharray",n._strokeCircumference(),"px")("stroke-dashoffset",n._strokeDashOffset(),"px")("stroke-width",n._circleStrokeWidth(),"%"),st("r",n._circleRadius()),w(4),S("ngTemplateOutlet",r),w(2),S("ngTemplateOutlet",r),w(2),S("ngTemplateOutlet",r)}},dependencies:[Wp],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})(),aY=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[Xn,yt]}),t})();const sY=["*"],hY=new oe("MAT_CARD_CONFIG");let m1=(()=>{class t{constructor(e){this.appearance=e?.appearance||"raised"}}return t.\u0275fac=function(e){return new(e||t)(x(hY,8))},t.\u0275cmp=Le({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(e,n){2&e&&Ye("mat-mdc-card-outlined","outlined"===n.appearance)("mdc-card--outlined","outlined"===n.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:sY,decls:1,vars:0,template:function(e,n){1&e&&(hi(),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})(),DY=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[yt,Xn,yt]}),t})();const TY=[[["caption"]],[["colgroup"],["col"]]],MY=["caption","colgroup, col"];function p1(t){return class extends t{get sticky(){return this._sticky}set sticky(i){const e=this._sticky;this._sticky=He(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 Kd=new oe("CDK_TABLE");let Zd=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(x(yi))},t.\u0275dir=Q({type:t,selectors:[["","cdkCellDef",""]]}),t})(),Jd=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(x(yi))},t.\u0275dir=Q({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),Yg=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(x(yi))},t.\u0275dir=Q({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class RY{}const OY=p1(RY);let fs=(()=>{class t extends OY{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=He(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)(x(Kd,8))},t.\u0275dir=Q({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,n,r){if(1&e&&(It(r,Zd,5),It(r,Jd,5),It(r,Yg,5)),2&e){let o;Se(o=De())&&(n.cell=o.first),Se(o=De())&&(n.headerCell=o.first),Se(o=De())&&(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 g1{constructor(i,e){e.nativeElement.classList.add(...i._columnCssClassName)}}let _1=(()=>{class t extends g1{constructor(e,n){super(e,n)}}return t.\u0275fac=function(e){return new(e||t)(x(fs),x(Ie))},t.\u0275dir=Q({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[pe]}),t})(),b1=(()=>{class t extends g1{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)(x(fs),x(Ie))},t.\u0275dir=Q({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[pe]}),t})();class BF{constructor(){this.tasks=[],this.endTasks=[]}}const v1=new oe("_COALESCED_STYLE_SCHEDULER");let VF=(()=>{class t{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new ke}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 BF,this._getScheduleObservable().pipe(pt(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new BF;for(const n of e.tasks)n();for(const n of e.endTasks)n()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?rn(Promise.resolve(void 0)):this._ngZone.onStable.pipe(si(1))}}return t.\u0275fac=function(e){return new(e||t)(X(ze))},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})(),x1=(()=>{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 nf?e.headerCell.template:this instanceof rf?e.footerCell.template:e.cell.template}}return t.\u0275fac=function(e){return new(e||t)(x(yi),x(ts))},t.\u0275dir=Q({type:t,features:[Ai]}),t})();class PY extends x1{}const LY=p1(PY);let nf=(()=>{class t extends LY{constructor(e,n,r){super(e,n),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return t.\u0275fac=function(e){return new(e||t)(x(yi),x(ts),x(Kd,8))},t.\u0275dir=Q({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[pe,Ai]}),t})();class NY extends x1{}const BY=p1(NY);let rf=(()=>{class t extends BY{constructor(e,n,r){super(e,n),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return t.\u0275fac=function(e){return new(e||t)(x(yi),x(ts),x(Kd,8))},t.\u0275dir=Q({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[pe,Ai]}),t})(),Kg=(()=>{class t extends x1{constructor(e,n,r){super(e,n),this._table=r}}return t.\u0275fac=function(e){return new(e||t)(x(yi),x(ts),x(Kd,8))},t.\u0275dir=Q({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[pe]}),t})(),ms=(()=>{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)(x(Oi))},t.\u0275dir=Q({type:t,selectors:[["","cdkCellOutlet",""]]}),t})(),y1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Le({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&&to(0,0)},dependencies:[ms],encapsulation:2}),t})(),C1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Le({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&&to(0,0)},dependencies:[ms],encapsulation:2}),t})(),Zg=(()=>{class t{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return t.\u0275fac=function(e){return new(e||t)(x(yi))},t.\u0275dir=Q({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const HF=["top","bottom","left","right"];class VY{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]);HF.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 HF)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 k1=new oe("CDK_SPL");let Jg=(()=>{class t{constructor(e,n){this.viewContainer=e,this.elementRef=n}}return t.\u0275fac=function(e){return new(e||t)(x(Oi),x(Ie))},t.\u0275dir=Q({type:t,selectors:[["","rowOutlet",""]]}),t})(),e0=(()=>{class t{constructor(e,n){this.viewContainer=e,this.elementRef=n}}return t.\u0275fac=function(e){return new(e||t)(x(Oi),x(Ie))},t.\u0275dir=Q({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),t0=(()=>{class t{constructor(e,n){this.viewContainer=e,this.elementRef=n}}return t.\u0275fac=function(e){return new(e||t)(x(Oi),x(Ie))},t.\u0275dir=Q({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),n0=(()=>{class t{constructor(e,n){this.viewContainer=e,this.elementRef=n}}return t.\u0275fac=function(e){return new(e||t)(x(Oi),x(Ie))},t.\u0275dir=Q({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),r0=(()=>{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=He(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=He(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 ke,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 Ce,this.viewChange=new Ki({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(pt(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(),Dy(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&&ze.isInAngularZone()?this._ngZone.onStable.pipe(si(1),pt(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(),o0(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(n=>{this._columnDefsByName.has(n.name),this._columnDefsByName.set(n.name,n)})}_cacheRowDefs(){this._headerRowDefs=o0(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=o0(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=o0(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=[],Dy(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;Dy(this.dataSource)?e=this.dataSource.connect(this):function EY(t){return!!t&&(t instanceof ai||Xt(t.lift)&&Xt(t.subscribe))}(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=qe(this.dataSource)),this._renderChangeSubscription=e.pipe(pt(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))ms.mostRecentCellOutlet&&ms.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 VY(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:qe()).pipe(pt(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)(x(ts),x(Ut),x(Ie),_o("role"),x(un,8),x(ot),x(wi),x(Lh),x(v1),x(ea),x(k1,12),x(ze,8))},t.\u0275cmp=Le({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,n,r){if(1&e&&(It(r,Zg,5),It(r,fs,5),It(r,Kg,5),It(r,nf,5),It(r,rf,5)),2&e){let o;Se(o=De())&&(n._noDataRow=o.first),Se(o=De())&&(n._contentColumnDefs=o),Se(o=De())&&(n._contentRowDefs=o),Se(o=De())&&(n._contentHeaderRowDefs=o),Se(o=De())&&(n._contentFooterRowDefs=o)}},viewQuery:function(e,n){if(1&e&&(rt(Jg,7),rt(e0,7),rt(t0,7),rt(n0,7)),2&e){let r;Se(r=De())&&(n._rowOutlet=r.first),Se(r=De())&&(n._headerRowOutlet=r.first),Se(r=De())&&(n._footerRowOutlet=r.first),Se(r=De())&&(n._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,n){2&e&&Ye("cdk-table-fixed-layout",n.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[We([{provide:Kd,useExisting:t},{provide:Lh,useClass:aI},{provide:v1,useClass:VF},{provide:k1,useValue:null}])],ngContentSelectors:MY,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,n){1&e&&(hi(TY),Je(0),Je(1,1),to(2,0)(3,1)(4,2)(5,3))},dependencies:[Jg,e0,t0,n0],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),t})();function o0(t,i){return t.concat(Array.from(i))}let UY=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[c1]}),t})();const zY=[[["caption"]],[["colgroup"],["col"]]],$Y=["caption","colgroup, col"];let eu=(()=>{class t extends r0{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=Ct(t)))(n||t)}}(),t.\u0275cmp=Le({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&&Ye("mdc-table-fixed-layout",n.fixedLayout)},exportAs:["matTable"],features:[We([{provide:r0,useExisting:t},{provide:Kd,useExisting:t},{provide:v1,useClass:VF},{provide:Lh,useClass:aI},{provide:k1,useValue:null}]),pe],ngContentSelectors:$Y,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,n){1&e&&(hi(zY),Je(0),Je(1,1),to(2,0)(3,1)(4,2)(5,3))},dependencies:[Jg,e0,t0,n0],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})(),Kc=(()=>{class t extends Zd{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","matCellDef",""]],features:[We([{provide:Zd,useExisting:t}]),pe]}),t})(),Zc=(()=>{class t extends Jd{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","matHeaderCellDef",""]],features:[We([{provide:Jd,useExisting:t}]),pe]}),t})(),Jc=(()=>{class t extends fs{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=Ct(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[We([{provide:fs,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),pe]}),t})(),el=(()=>{class t extends _1{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(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})(),tl=(()=>{class t extends b1{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(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})(),tu=(()=>{class t extends nf{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[We([{provide:nf,useExisting:t}]),pe]}),t})(),iu=(()=>{class t extends Kg{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[We([{provide:Kg,useExisting:t}]),pe]}),t})(),nu=(()=>{class t extends y1{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(t)))(n||t)}}(),t.\u0275cmp=Le({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:y1,useExisting:t}]),pe],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,n){1&e&&to(0,0)},dependencies:[ms],encapsulation:2}),t})(),ru=(()=>{class t extends C1{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(t)))(n||t)}}(),t.\u0275cmp=Le({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[We([{provide:C1,useExisting:t}]),pe],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,n){1&e&&to(0,0)},dependencies:[ms],encapsulation:2}),t})(),JY=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[yt,UY,yt]}),t})();class tK extends Sy{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 Ki([]),this._filter=new Ki(""),this._internalPageChanges=new ke,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,n)=>{const r=e[n];if(DI(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 Ki(i),this._updateChangeSubscription()}_updateChangeSubscription(){const i=this._sort?Pi(this._sort.sortChange,this._sort.initialized):qe(null),e=this._paginator?Pi(this._paginator.page,this._internalPageChanges,this._paginator.initialized):qe(null),r=Bc([this._data,this._filter]).pipe(Ze(([s])=>this._filterData(s))),o=Bc([r,i]).pipe(Ze(([s])=>this._orderData(s))),a=Bc([o,e]).pipe(Ze(([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 af extends tK{}let zF=(()=>{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)(x(Qa),x(Ie))},t.\u0275dir=Q({type:t}),t})(),il=(()=>{class t extends zF{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(t)))(n||t)}}(),t.\u0275dir=Q({type:t,features:[pe]}),t})();const Kn=new oe("NgValueAccessor"),nK={provide:Kn,useExisting:Qt(()=>Sa),multi:!0},oK=new oe("CompositionEventMode");let Sa=(()=>{class t extends zF{constructor(e,n,r){super(e,n),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function rK(){const t=is()?is().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)(x(Qa),x(Ie),x(oK,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&&z("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([nK]),pe]}),t})();const aK=!1;function Ys(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function jF(t){return null!=t&&"number"==typeof t.length}const zn=new oe("NgValidators"),Ks=new oe("NgAsyncValidators"),sK=/^(?=.{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 ou{static min(i){return function WF(t){return i=>{if(Ys(i.value)||Ys(t))return null;const e=parseFloat(i.value);return!isNaN(e)&&e{if(Ys(i.value)||Ys(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 qF(i)}static requiredTrue(i){return function XF(t){return!0===t.value?null:{required:!0}}(i)}static email(i){return function QF(t){return Ys(t.value)||sK.test(t.value)?null:{email:!0}}(i)}static minLength(i){return YF(i)}static maxLength(i){return function KF(t){return i=>jF(i.value)&&i.value.length>t?{maxlength:{requiredLength:t,actualLength:i.value.length}}:null}(i)}static pattern(i){return ZF(i)}static nullValidator(i){return null}static compose(i){return rR(i)}static composeAsync(i){return oR(i)}}function qF(t){return Ys(t.value)?{required:!0}:null}function YF(t){return i=>Ys(i.value)||!jF(i.value)?null:i.value.length{if(Ys(n.value))return null;const r=n.value;return i.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function a0(t){return null}function JF(t){return null!=t}function eR(t){const i=ih(t)?rn(t):t;if(aK&&!Av(i)){let e="Expected async validator to return Promise or Observable.";throw"object"==typeof t&&(e+=" Are you using a synchronous validator where an async validator is expected?"),new ue(-1101,e)}return i}function tR(t){let i={};return t.forEach(e=>{i=null!=e?{...i,...e}:i}),0===Object.keys(i).length?null:i}function iR(t,i){return i.map(e=>e(t))}function nR(t){return t.map(i=>function cK(t){return!t.validate}(i)?i:e=>i.validate(e))}function rR(t){if(!t)return null;const i=t.filter(JF);return 0==i.length?null:function(e){return tR(iR(e,i))}}function S1(t){return null!=t?rR(nR(t)):null}function oR(t){if(!t)return null;const i=t.filter(JF);return 0==i.length?null:function(e){return DF(iR(e,i).map(eR)).pipe(Ze(tR))}}function D1(t){return null!=t?oR(nR(t)):null}function aR(t,i){return null===t?[i]:Array.isArray(t)?[...t,i]:[t,i]}function sR(t){return t._rawValidators}function cR(t){return t._rawAsyncValidators}function E1(t){return t?Array.isArray(t)?t:[t]:[]}function s0(t,i){return Array.isArray(t)?t.includes(i):t===i}function lR(t,i){const e=E1(i);return E1(t).forEach(r=>{s0(e,r)||e.push(r)}),e}function dR(t,i){return E1(i).filter(e=>!s0(t,e))}class uR{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=S1(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=D1(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 Er extends uR{get formDirective(){return null}get path(){return null}}class Da extends uR{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class hR{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 So=(()=>{class t extends hR{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(x(Da,2))},t.\u0275dir=Q({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,n){2&e&&Ye("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})(),sf=(()=>{class t extends hR{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(x(Er,10))},t.\u0275dir=Q({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,n){2&e&&Ye("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 fR(t,i){return t?`with name: '${i}'`:`at index: ${i}`}const A1=!1,cf="VALID",l0="INVALID",au="PENDING",lf="DISABLED";function I1(t){return(d0(t)?t.validators:t)||null}function F1(t,i){return(d0(i)?i.asyncValidators:t)||null}function d0(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function mR(t,i,e){const n=t.controls;if(!(i?Object.keys(n):n).length)throw new ue(1e3,A1?function hK(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,A1?function fK(t,i){return`Cannot find form control ${fR(t,i)}`}(i,e):"")}function pR(t,i,e){t._forEachChild((n,r)=>{if(void 0===e[r])throw new ue(1002,A1?function mK(t,i){return`Must supply a value for form control ${fR(t,i)}`}(i,r):"")})}class u0{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===cf}get invalid(){return this.status===l0}get pending(){return this.status==au}get disabled(){return this.status===lf}get enabled(){return this.status!==lf}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(lR(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(lR(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(dR(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(dR(i,this._rawAsyncValidators))}hasValidator(i){return s0(this._rawValidators,i)}hasAsyncValidator(i){return s0(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=au,!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=lf,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=cf,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===cf||this.status===au)&&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()?lf:cf}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i){if(this.asyncValidator){this.status=au,this._hasOwnPendingAsyncValidator=!0;const e=eR(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 Ce,this.statusChanges=new Ce}_calculateStatus(){return this._allControlsDisabled()?lf:this.errors?l0:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(au)?au:this._anyControlsHaveStatus(l0)?l0:cf}_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){d0(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 pK(t){return Array.isArray(t)?S1(t):t||null}(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=function gK(t){return Array.isArray(t)?D1(t):t||null}(this._rawAsyncValidators)}}class su extends u0{constructor(i,e,n){super(I1(e),F1(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={}){pR(this,!0,i),Object.keys(i).forEach(n=>{mR(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 gR extends su{}const nl=new oe("CallSetDisabledState",{providedIn:"root",factory:()=>df}),df="always";function h0(t,i){return[...i.path,t]}function uf(t,i,e=df){R1(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&i.valueAccessor.setDisabledState?.(t.disabled),function bK(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&_R(t,i)})}(t,i),function xK(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 vK(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&_R(t,i),"submit"!==t.updateOn&&t.markAsTouched()})}(t,i),function _K(t,i){if(i.valueAccessor.setDisabledState){const e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,i)}function f0(t,i,e=!0){const n=()=>{};i.valueAccessor&&(i.valueAccessor.registerOnChange(n),i.valueAccessor.registerOnTouched(n)),p0(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function m0(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function R1(t,i){const e=sR(t);null!==i.validator?t.setValidators(aR(e,i.validator)):"function"==typeof e&&t.setValidators([e]);const n=cR(t);null!==i.asyncValidator?t.setAsyncValidators(aR(n,i.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);const r=()=>t.updateValueAndValidity();m0(i._rawValidators,r),m0(i._rawAsyncValidators,r)}function p0(t,i){let e=!1;if(null!==t){if(null!==i.validator){const r=sR(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=cR(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 m0(i._rawValidators,n),m0(i._rawAsyncValidators,n),e}function _R(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function bR(t,i){R1(t,i)}function P1(t,i){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(i,e.currentValue)}function vR(t,i){t._syncPendingControls(),i.forEach(e=>{const n=e.control;"submit"===n.updateOn&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function L1(t,i){if(!i)return null;let e,n,r;return Array.isArray(i),i.forEach(o=>{o.constructor===Sa?e=o:function CK(t){return Object.getPrototypeOf(t.constructor)===il}(o)?n=o:r=o}),r||n||e||null}const SK={provide:Er,useExisting:Qt(()=>rl)},hf=(()=>Promise.resolve())();let rl=(()=>{class t extends Er{constructor(e,n,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Ce,this.form=new su({},S1(e),D1(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){hf.then(()=>{const n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),uf(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){hf.then(()=>{const n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){hf.then(()=>{const n=this._findContainer(e.path),r=new su({});bR(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){hf.then(()=>{const n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){hf.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,vR(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)(x(zn,10),x(Ks,10),x(nl,8))},t.\u0275dir=Q({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,n){1&e&&z("submit",function(o){return n.onSubmit(o)})("reset",function(){return n.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[We([SK]),pe]}),t})();function xR(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}function yR(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const Hr=class extends u0{constructor(i=null,e,n){super(I1(e),F1(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}),d0(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=yR(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){xR(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){xR(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){yR(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}},DK=Hr,MK={provide:Da,useExisting:Qt(()=>ta)},kR=(()=>Promise.resolve())();let ta=(()=>{class t extends Da{constructor(e,n,r,o,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this.control=new Hr,this._registered=!1,this.update=new Ce,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=L1(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),P1(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(){uf(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){kR.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const n=e.isDisabled.currentValue,r=0!==n&&Td(n);kR.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?h0(e,this._parent):[e]}}return t.\u0275fac=function(e){return new(e||t)(x(Er,9),x(zn,10),x(Ks,10),x(Kn,10),x(Ut,8),x(nl,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([MK]),pe,Ai]}),t})(),ff=(()=>{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})();const AK={provide:Kn,useExisting:Qt(()=>g0),multi:!0};let g0=(()=>{class t extends il{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=n=>{e(""==n?null:parseFloat(n))}}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,n){1&e&&z("input",function(o){return n.onChange(o.target.value)})("blur",function(){return n.onTouched()})},features:[We([AK]),pe]}),t})(),SR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({}),t})();const N1=new oe("NgModelWithFormControlWarning"),OK={provide:Da,useExisting:Qt(()=>_0)};let _0=(()=>{class t extends Da{set isDisabled(e){}constructor(e,n,r,o,a){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=a,this.update=new Ce,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=L1(0,r)}ngOnChanges(e){if(this._isControlChanged(e)){const n=e.form.previousValue;n&&f0(n,this,!1),uf(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}P1(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&f0(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)(x(zn,10),x(Ks,10),x(Kn,10),x(N1,8),x(nl,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([OK]),pe,Ai]}),t})();const PK={provide:Er,useExisting:Qt(()=>Zs)};let Zs=(()=>{class t extends Er{constructor(e,n,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ce,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(p0(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 uf(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){f0(e.control||null,e,!1),function kK(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,vR(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&&(f0(n||null,e),(t=>t instanceof Hr)(r)&&(uf(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const n=this.form.get(e.path);bR(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const n=this.form.get(e.path);n&&function yK(t,i){return p0(t,i)}(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){R1(this.form,this),this._oldForm&&p0(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(x(zn,10),x(Ks,10),x(nl,8))},t.\u0275dir=Q({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,n){1&e&&z("submit",function(o){return n.onSubmit(o)})("reset",function(){return n.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[We([PK]),pe,Ai]}),t})();const BK={provide:Da,useExisting:Qt(()=>mf)};let mf=(()=>{class t extends Da{set isDisabled(e){}constructor(e,n,r,o,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.update=new Ce,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=L1(0,o)}ngOnChanges(e){this._added||this._setUpControl(),P1(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 h0(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)(x(Er,13),x(zn,10),x(Ks,10),x(Kn,10),x(N1,8))},t.\u0275dir=Q({type:t,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[We([BK]),pe,Ai]}),t})();let ol=(()=>{class t{constructor(){this._validator=a0}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):a0,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:[Ai]}),t})();const qK={provide:zn,useExisting:Qt(()=>b0),multi:!0};let b0=(()=>{class t extends ol{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Td,this.createValidator=e=>qF}enabled(e){return e}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(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&&st("required",n._enabled?"":null)},inputs:{required:"required"},features:[We([qK]),pe]}),t})();const YK={provide:zn,useExisting:Qt(()=>z1),multi:!0};let z1=(()=>{class t extends ol{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=e=>function IR(t){return"number"==typeof t?t:parseInt(t,10)}(e),this.createValidator=e=>YF(e)}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(e,n){2&e&&st("minlength",n._enabled?n.minlength:null)},inputs:{minlength:"minlength"},features:[We([YK]),pe]}),t})();const ZK={provide:zn,useExisting:Qt(()=>x0),multi:!0};let x0=(()=>{class t extends ol{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=e=>e,this.createValidator=e=>ZF(e)}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(e,n){2&e&&st("pattern",n._enabled?n.pattern:null)},inputs:{pattern:"pattern"},features:[We([ZK]),pe]}),t})(),NR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[SR]}),t})();class BR extends u0{constructor(i,e,n){super(I1(e),F1(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={}){pR(this,!1,i),i.forEach((n,r)=>{mR(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 VR(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let HR=(()=>{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 VR(n)?o=n:null!==n&&(o.validators=n.validator,o.asyncValidators=n.asyncValidator),new su(r,o)}record(e,n=null){const r=this._reduceControls(e);return new gR(r,n)}control(e,n,r){let o={};return this.useNonNullable?(VR(n)?o=n:(o.validators=n,o.asyncValidators=r),new Hr(e,{...o,nonNullable:!0})):new Hr(e,n,r)}array(e,n,r){const o=e.map(a=>this._createControl(a));return new BR(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 Hr||e instanceof u0?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=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$1=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:nl,useValue:e.callSetDisabledState??df}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[NR]}),t})(),JK=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:N1,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:nl,useValue:e.callSetDisabledState??df}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[NR]}),t})();const eZ=["matFormFieldNotchedOutline",""],tZ=["*"],iZ=["textField"],nZ=["iconPrefixContainer"],rZ=["textPrefixContainer"];function oZ(t,i){1&t&&ge(0,"span",19)}function aZ(t,i){if(1&t){const e=Ne();_(0,"label",17),z("cdkObserveContent",function(){return _e(e),be(V(2)._refreshOutlineNotchWidth())}),Je(1,1),P(2,oZ,1,0,"span",18),v()}if(2&t){const e=V(2);S("floating",e._shouldLabelFloat())("cdkObserveContentDisabled",!e._hasOutline())("id",e._labelId),st("for",e._control.id)("aria-owns",e._control.id),w(2),S("ngIf",!e.hideRequiredMarker&&e._control.required)}}function sZ(t,i){1&t&&P(0,aZ,3,6,"label",16),2&t&&S("ngIf",V()._hasFloatingLabel())}function cZ(t,i){1&t&&ge(0,"div",20)}function lZ(t,i){}function dZ(t,i){1&t&&P(0,lZ,0,0,"ng-template",22),2&t&&(V(2),S("ngTemplateOutlet",wt(1)))}function uZ(t,i){if(1&t&&(_(0,"div",21),P(1,dZ,1,1,"ng-template",9),v()),2&t){const e=V();S("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat())("matFormFieldNotchedOutlineLabelWidth",e._labelWidth),w(1),S("ngIf",!e._forceDisplayInfixLabel())}}function hZ(t,i){1&t&&(_(0,"div",23,24),Je(2,2),v())}function fZ(t,i){1&t&&(_(0,"div",25,26),Je(2,3),v())}function mZ(t,i){}function pZ(t,i){1&t&&P(0,mZ,0,0,"ng-template",22),2&t&&(V(),S("ngTemplateOutlet",wt(1)))}function gZ(t,i){1&t&&(_(0,"div",27),Je(1,4),v())}function _Z(t,i){1&t&&(_(0,"div",28),Je(1,5),v())}function bZ(t,i){1&t&&ge(0,"div",29)}function vZ(t,i){1&t&&(_(0,"div",30),Je(1,6),v()),2&t&&S("@transitionMessages",V()._subscriptAnimationState)}function xZ(t,i){if(1&t&&(_(0,"mat-hint",34),k(1),v()),2&t){const e=V(2);S("id",e._hintLabelId),w(1),Ge(e.hintLabel)}}function yZ(t,i){if(1&t&&(_(0,"div",31),P(1,xZ,2,2,"mat-hint",32),Je(2,7),ge(3,"div",33),Je(4,8),v()),2&t){const e=V();S("@transitionMessages",e._subscriptAnimationState),w(1),S("ngIf",e.hintLabel)}}const wZ=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],CZ=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let Do=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t,selectors:[["mat-label"]]}),t})(),kZ=0;const UR=new oe("MatError");let zR=(()=>{class t{constructor(e,n){this.id="mat-mdc-error-"+kZ++,e||n.nativeElement.setAttribute("aria-live","polite")}}return t.\u0275fac=function(e){return new(e||t)(_o("aria-live"),x(Ie))},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&&xa("id",n.id)},inputs:{id:"id"},features:[We([{provide:UR,useExisting:t}])]}),t})(),SZ=0,al=(()=>{class t{constructor(){this.align="start",this.id="mat-mdc-hint-"+SZ++}}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&&(xa("id",n.id),st("align",null),Ye("mat-mdc-form-field-hint-end","end"===n.align))},inputs:{align:"align",id:"id"}}),t})();const DZ=new oe("MatPrefix"),$R=new oe("MatSuffix");let jR=(()=>{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:$R,useExisting:t}])]}),t})(),WR=(()=>{class t{constructor(e){this._elementRef=e,this.floating=!1}getWidth(){return function EZ(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)(x(Ie))},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&&Ye("mdc-floating-label--float-above",n.floating)},inputs:{floating:"floating"}}),t})();const GR="mdc-line-ripple--active",y0="mdc-line-ripple--deactivating";let qR=(()=>{class t{constructor(e,n){this._elementRef=e,this._handleTransitionEnd=r=>{const o=this._elementRef.nativeElement.classList,a=o.contains(y0);"opacity"===r.propertyName&&a&&o.remove(GR,y0)},n.runOutsideAngular(()=>{e.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const e=this._elementRef.nativeElement.classList;e.remove(y0),e.add(GR)}deactivate(){this._elementRef.nativeElement.classList.add(y0)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}}return t.\u0275fac=function(e){return new(e||t)(x(Ie),x(ze))},t.\u0275dir=Q({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]}),t})(),XR=(()=>{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)(x(Ie),x(ze))},t.\u0275cmp=Le({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(e,n){2&e&&Ye("mdc-notched-outline--notched",n.open)},inputs:{labelWidth:["matFormFieldNotchedOutlineLabelWidth","labelWidth"],open:["matFormFieldNotchedOutlineOpen","open"]},attrs:eZ,ngContentSelectors:tZ,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&&(hi(),ge(0,"div",0),_(1,"div",1),Je(2),v(),ge(3,"div",2)),2&e&&(w(1),en("width",n._getNotchWidth()))},encapsulation:2,changeDetection:0}),t})();const TZ={transitionMessages:zi("transitionMessages",[Zt("enter",Xe({opacity:1,transform:"translateY(0%)"})),Wt("void => enter",[Xe({opacity:0,transform:"translateY(-5px)"}),jt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let w0=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Q({type:t}),t})();const C0=new oe("MatFormField"),MZ=new oe("MAT_FORM_FIELD_DEFAULT_OPTIONS");let QR=0,Ea=(()=>{class t{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=He(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-"+QR++,this._hintLabelId="mat-mdc-hint-"+QR++,this._subscriptAnimationState="",this._labelWidth=0,this._destroyed=new ke,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(pt(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(),Pi(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(pt(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe(pt(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)(x(Ie),x(Ut),x(ze),x(un),x(wi),x(MZ,8),x(Ii,8),x(ot))},t.\u0275cmp=Le({type:t,selectors:[["mat-form-field"]],contentQueries:function(e,n,r){if(1&e&&(It(r,Do,5),It(r,Do,7),It(r,w0,5),It(r,DZ,5),It(r,$R,5),It(r,UR,5),It(r,al,5)),2&e){let o;Se(o=De())&&(n._labelChildNonStatic=o.first),Se(o=De())&&(n._labelChildStatic=o.first),Se(o=De())&&(n._formFieldControl=o.first),Se(o=De())&&(n._prefixChildren=o),Se(o=De())&&(n._suffixChildren=o),Se(o=De())&&(n._errorChildren=o),Se(o=De())&&(n._hintChildren=o)}},viewQuery:function(e,n){if(1&e&&(rt(iZ,5),rt(nZ,5),rt(rZ,5),rt(WR,5),rt(XR,5),rt(qR,5)),2&e){let r;Se(r=De())&&(n._textField=r.first),Se(r=De())&&(n._iconPrefixContainer=r.first),Se(r=De())&&(n._textPrefixContainer=r.first),Se(r=De())&&(n._floatingLabel=r.first),Se(r=De())&&(n._notchedOutline=r.first),Se(r=De())&&(n._lineRipple=r.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(e,n){2&e&&Ye("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:C0,useExisting:t}])],ngContentSelectors:CZ,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&&(hi(wZ),P(0,sZ,1,1,"ng-template",null,0,Pc),_(2,"div",1,2),z("click",function(o){return n._control.onContainerClick&&n._control.onContainerClick(o)}),P(4,cZ,1,0,"div",3),_(5,"div",4),P(6,uZ,2,3,"div",5),P(7,hZ,3,0,"div",6),P(8,fZ,3,0,"div",7),_(9,"div",8),P(10,pZ,1,1,"ng-template",9),Je(11),v(),P(12,gZ,2,0,"div",10),P(13,_Z,2,0,"div",11),v(),P(14,bZ,1,0,"div",12),v(),_(15,"div",13),P(16,vZ,2,1,"div",14),P(17,yZ,5,2,"div",15),v()),2&e&&(w(2),Ye("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),w(2),S("ngIf",!n._hasOutline()&&!n._control.disabled),w(2),S("ngIf",n._hasOutline()),w(1),S("ngIf",n._hasIconPrefix),w(1),S("ngIf",n._hasTextPrefix),w(2),S("ngIf",!n._hasOutline()||n._forceDisplayInfixLabel()),w(2),S("ngIf",n._hasTextSuffix),w(1),S("ngIf",n._hasIconSuffix),w(1),S("ngIf",!n._hasOutline()),w(1),Ye("mat-mdc-form-field-subscript-dynamic-size","dynamic"===n.subscriptSizing),S("ngSwitch",n._getDisplayedMessages()),w(1),S("ngSwitchCase","error"),w(1),S("ngSwitchCase","hint"))},dependencies:[Yi,Wp,gh,Fx,$y,al,WR,XR,qR],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:[TZ.transitionMessages]},changeDetection:0}),t})(),k0=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[yt,Xn,Mg,yt]}),t})();const FZ=["panel"];function RZ(t,i){if(1&t&&(_(0,"div",0,1),Je(2),v()),2&t){const e=i.id,n=V();S("id",n.id)("ngClass",n._classList)("@panelAnimation",n.isOpen?"visible":"hidden"),st("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(e))}}const OZ=["*"],PZ=zi("panelAnimation",[Zt("void, hidden",Xe({opacity:0,transform:"scaleY(0.8)"})),Wt(":enter, hidden => visible",[t1([jt("0.03s linear",Xe({opacity:1})),jt("0.12s cubic-bezier(0, 0, 0.2, 1)",Xe({transform:"scaleY(1)"}))])]),Wt(":leave, visible => hidden",[jt("0.075s linear",Xe({opacity:0}))])]);let LZ=0;class NZ{constructor(i,e){this.source=i,this.option=e}}const BZ=qs(class{}),ZR=new oe("mat-autocomplete-default-options",{providedIn:"root",factory:function VZ(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1}}});let HZ=(()=>{class t extends BZ{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=He(e)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(e){this._autoSelectActiveOption=He(e)}set classList(e){this._classList=e&&e.length?function _q(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=kt.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this._autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this._autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.optionSelected=new Ce,this.opened=new Ce,this.closed=new Ce,this.optionActivated=new Ce,this._classList={},this.id="mat-autocomplete-"+LZ++,this.inertGroups=o?.SAFARI||!1}ngAfterContentInit(){this._keyManager=new PI(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 NZ(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)(x(Ut),x(Ie),x(ZR),x(wi))},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&(rt(yi,7),rt(FZ,5)),2&e){let r;Se(r=De())&&(n.template=r.first),Se(r=De())&&(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})(),UZ=(()=>{class t extends HZ{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=He(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=Ct(t)))(n||t)}}(),t.\u0275cmp=Le({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(e,n,r){if(1&e&&(It(r,Jy,5),It(r,Qs,5)),2&e){let o;Se(o=De())&&(n.optionGroups=o),Se(o=De())&&(n.options=o)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{disableRipple:"disableRipple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matAutocomplete"],features:[We([{provide:Zy,useExisting:t}]),pe],ngContentSelectors:OZ,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&&(hi(),P(0,RZ,3,5,"ng-template"))},dependencies:[os],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:[PZ]},changeDetection:0}),t})();const zZ={provide:Kn,useExisting:Qt(()=>eO),multi:!0},JR=new oe("mat-autocomplete-scroll-strategy"),jZ={provide:JR,deps:[ar],useFactory:function $Z(t){return()=>t.scrollStrategies.reposition()}};let WZ=(()=>{class t{get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=He(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=kt.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new ke,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=Ad(()=>{const f=this.autocomplete?this.autocomplete.options:null;return f?f.changes.pipe(xn(f),vn(()=>Pi(...f.map(m=>m.onSelectionChange)))):this._zone.onStable.pipe(si(1),vn(()=>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 Pi(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Kt(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Kt(()=>this._overlayAttached)):qe()).pipe(Ze(e=>e instanceof ZI?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Pi(Jo(this._document,"click"),Jo(this._document,"auxclick"),Jo(this._document,"touchend")).pipe(Kt(e=>{const n=no(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=or(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 Pi(this._zone.onStable.pipe(si(1)),this.autocomplete.options.changes.pipe($i(()=>this._positionStrategy.reapplyLastPosition()),h1(0))).pipe(vn(()=>(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)),si(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 ds(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 Xd({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=eF(a.offsetTop,a.offsetHeight,n._getScrollTop(),n.panel.nativeElement.offsetHeight);n._setScrollTop(s)}}}_handleOverlayEvents(e){e.keydownEvents().subscribe(n=>{(27===n.keyCode&&!or(n)||38===n.keyCode&&or(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)(x(Ie),x(ar),x(Oi),x(ze),x(Ut),x(JR),x(un,8),x(C0,9),x(ot,8),x(ea),x(ZR,8))},t.\u0275dir=Q({type:t,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[Ai]}),t})(),eO=(()=>{class t extends WZ{constructor(){super(...arguments),this._aboveClass="mat-mdc-autocomplete-panel-above"}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(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&&z("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&&st("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([zZ]),pe]}),t})(),GZ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({providers:[jZ],imports:[qc,Lg,yt,Xn,hs,Lg,yt]}),t})();const tO=Ko({passive:!0});let qZ=(()=>{class t{constructor(e,n){this._platform=e,this._ngZone=n,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return qr;const n=nn(e),r=this._monitoredElements.get(n);if(r)return r.subject;const o=new ke,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,tO),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:o,unlisten:()=>{n.removeEventListener("animationstart",s,tO)}}),o}stopMonitoring(e){const n=nn(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)(X(wi),X(ze))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),XZ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({}),t})();const QZ=new oe("MAT_INPUT_VALUE_ACCESSOR"),YZ=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let KZ=0;const ZZ=jI(class{constructor(t,i,e,n){this._defaultErrorStateMatcher=t,this._parentForm=i,this._parentFormGroup=e,this.ngControl=n,this.stateChanges=new ke}});let sl=(()=>{class t extends ZZ{get disabled(){return this._disabled}set disabled(e){this._disabled=He(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(ou.required)??!1}set required(e){this._required=He(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&CI().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=He(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-"+KZ++,this.focused=!1,this.stateChanges=new ke,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=>CI().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(){YZ.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)(x(Ie),x(wi),x(Da,10),x(rl,8),x(Zs,8),x(WI),x(QZ,10),x(qZ),x(ze),x(C0,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&&z("focus",function(){return n._focusChanged(!0)})("blur",function(){return n._focusChanged(!1)})("input",function(){return n._onInput()}),2&e&&(xa("id",n.id)("disabled",n.disabled)("required",n.required),st("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),Ye("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:w0,useExisting:t}]),pe,Ai]}),t})(),JZ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[yt,k0,k0,XZ,yt]}),t})();function eJ(t,i){if(1&t&&(_(0,"mat-label"),k(1),v()),2&t){const e=V();w(1),Ge(e.binding.title)}}function tJ(t,i){if(1&t){const e=Ne();_(0,"button",7),z("click",function(){return _e(e),be(V().clearInput())}),_(1,"mat-icon"),k(2,"close"),v()()}}function iJ(t,i){1&t&&(_(0,"mat-option",8),ge(1,"mat-spinner",9),v())}function nJ(t,i){if(1&t&&(_(0,"mat-option",10)(1,"span",11),k(2),v(),k(3),v()),2&t){const e=i.$implicit;S("value",e),w(2),Ge(e.code),w(1),it("",e.display," ")}}let pf=(()=>{class t{static#e=this.nextId=0;constructor(e){this.terminologyService=e,this.term="",this.selectionChange=new Ce,this.formControl=new DK,this.loading=!1,this.selectedConcept={},this.stateChanges=new ke,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($c(300),Ws(),vn(e=>e?.length>=3?(this.loading=!0,this.terminologyService.expandValueSet(this.binding.ecl,e,0,50)):qe([])),$i(e=>{this.loading=!1}))}onTermChange(){this.formControl.setValue(this.term)}optionSelected(e){this.selectedConcept=e,this.selectionChange.emit(e),this.onChange(e)}clearInput(){this.formControl.reset(),this.selectedConcept={code:"",display:""},this.selectionChange.emit(this.selectedConcept)}change(e){const n=e?.option?.value;n&&(this.optionSelected({code:n.code,display:n.display}),this.formControl.setValue(n.display))}static#t=this.\u0275fac=function(n){return new(n||t)(x(Yn))};static#i=this.\u0275cmp=Le({type:t,selectors:[["app-autocomplete-binding"]],inputs:{binding:"binding",term:"term"},outputs:{selectionChange:"selectionChange"},features:[We([{provide:Kn,useExisting:Qt(()=>t),multi:!0},{provide:w0,useExisting:t}]),Ai],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(n,r){if(1&n&&(_(0,"mat-form-field"),P(1,eJ,2,1,"mat-label",0),ge(2,"input",1),_(3,"mat-hint"),k(4),v(),P(5,tJ,3,0,"button",2),_(6,"mat-autocomplete",3,4),z("optionSelected",function(a){return r.change(a)}),P(8,iJ,2,0,"mat-option",5),P(9,nJ,4,3,"mat-option",6),Cd(10,"async"),v()()),2&n){const o=wt(7);let a;w(1),S("ngIf",r.binding.title),w(1),_d("placeholder",(null==r.formControl.value?null:r.formControl.value.display)||r.binding.title||"Search..."),S("formControl",r.formControl)("matAutocomplete",o),w(2),Ge(r.binding.note),w(1),S("ngIf",r.formControl.value),w(3),S("ngIf",r.loading),w(1),S("ngForOf",null==(a=Sp(10,8,r.autoFilter))||null==a.expansion?null:a.expansion.contains)}},dependencies:[kr,Yi,Zo,oo,Ea,Do,al,jR,UZ,Qs,eO,Yd,sl,Sa,So,_0,Rx],styles:[".chip[_ngcontent-%COMP%]{display:inline-flex;flex-direction:row;background-color:#f4a460;border:none;cursor:default;height:36px;outline:none;padding:0;font-size:14px;color:#fff;font-family:Open Sans,sans-serif;white-space:nowrap;align-items:center;border-radius:16px;vertical-align:middle;text-decoration:none;justify-content:center;margin-right:20px}.chip-content[_ngcontent-%COMP%]{cursor:inherit;display:flex;align-items:center;-webkit-user-select:none;user-select:none;white-space:nowrap;padding-left:12px;padding-right:12px}mat-form-field[_ngcontent-%COMP%]{width:100%}.code[_ngcontent-%COMP%]{font-size:small;font-weight:lighter;margin-right:15px}.id-icon[_ngcontent-%COMP%]{margin-left:10px;color:#2e8b57}mat-hint[_ngcontent-%COMP%]{font-size:12px}"]})}return t})();function rJ(t,i){1&t&&ge(0,"mat-spinner",20)}function oJ(t,i){1&t&&(_(0,"th",21),k(1," Date "),v())}function aJ(t,i){if(1&t&&(_(0,"td",22),k(1),Cd(2,"date"),v()),2&t){const e=i.$implicit;w(1),it(" ",Gv(2,1,e.date,"yyyy-MM-dd")," ")}}function sJ(t,i){1&t&&(_(0,"th",21),k(1," ConceptId "),v())}function cJ(t,i){if(1&t&&(_(0,"td",22),k(1),v()),2&t){const e=i.$implicit;w(1),it(" ",e.code," ")}}function lJ(t,i){1&t&&(_(0,"th",21),k(1," Term "),v())}function dJ(t,i){1&t&&(_(0,"span",24),k(1,"Allergy / Intolerance condition"),v())}function uJ(t,i){if(1&t&&(_(0,"td",22),P(1,dJ,2,0,"span",23),k(2),v()),2&t){const e=i.$implicit;w(1),S("ngIf",e.allergy),w(1),it(" ",e.display," ")}}function hJ(t,i){1&t&&ge(0,"tr",25)}function fJ(t,i){1&t&&ge(0,"tr",26)}function mJ(t,i){1&t&&(_(0,"th",21),k(1," ConceptId "),v())}function pJ(t,i){if(1&t&&(_(0,"td",22),k(1),v()),2&t){const e=i.$implicit;w(1),it(" ",e.code," ")}}function gJ(t,i){1&t&&(_(0,"th",21),k(1," Term "),v())}function _J(t,i){if(1&t&&(_(0,"td",22),k(1),v()),2&t){const e=i.$implicit;w(1),it(" ",e.display," ")}}function bJ(t,i){1&t&&ge(0,"tr",25)}function vJ(t,i){1&t&&ge(0,"tr",26)}const xJ=[],yJ=[];let iO=(()=>{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=[...xJ],this.dataSource=new wJ(this.dataToDisplay),this.loading=!1,this.displayedColumns2=["code","display"],this.dataToDisplay2=[...yJ],this.dataSource2=new CJ(this.dataToDisplay2)}updateProblem(e){var n=this;return fi(function*(){n.selectedProblemSct=e})()}addProblem(e){var n=this;return fi(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 fi(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 fi(function*(){return Sr((yield n.terminologyService.expandValueSet("<<418038007 |Propensity to adverse reactions to substance| OR <<420134006 |Propensity to adverse reaction (finding)|",e.code,0,1)).pipe(Ze(o=>o)))})()}getAllergySubstance(e){var n=this;return fi(function*(){return Sr((yield n.terminologyService.expandValueSet(`${e.code} |${e.display}| . (246075003 |Causative agent (attribute)| OR 47429007 |Associated with (attribute)|)`,"")).pipe(Ze(o=>o)))})()}static#e=this.\u0275fac=function(n){return new(n||t)(x(Yn))};static#t=this.\u0275cmp=Le({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(n,r){if(1&n&&(_(0,"mat-card",0)(1,"div",1)(2,"div",2)(3,"h4"),k(4,"Problem List "),_(5,"button",3)(6,"mat-icon"),k(7,"info"),v()(),_(8,"mat-menu",null,4)(10,"span",5),z("click",function(a){return a.stopPropagation()}),_(11,"h4"),k(12,"Problem list"),v(),_(13,"p"),k(14,"Allergy or intolerance can also be recorded in the EHR as a problem. The problem list is normally restricted to SNOMED CT concepts from three hierarchies \u2013 Clinical finding, Event and Finding with explicit context. This corresponds either to the FHIR finding based AllergyIntolerance resource data model or the FHIR Condition resource."),v(),_(15,"p"),k(16,"For practical guidance using SNOMED CT to document hypersensitivity to specific substances in a problem list, it is suggested to map to the appropriate concepts under the 473011001 |Allergic condition (finding)|hierarchies. This is due to the lack of sufficient content under 609433001 |Hypersensitivity disposition (finding)|and 421961002 |Hypersensitivity reaction (disorder)| and that many of the concepts under 609328004 |Allergic disposition (finding)|and 419076005 |Allergic reaction (disorder)| have unclear mechanisms which may actually represent non-allergic hypersensitivity. Please note that SNOMED international does not plan to create new children concepts of hypersensitivity disposition to specific substances unless more than one Member country would submit a request for them to answer to an active use-case."),v(),_(17,"p"),k(18,"Almost all allergy concepts are modeled by substances in SNOMED CT. A very small number of allergy concepts are modeled by products but with explicit description for the specific intended meaning. Records of allergy to multiple substances or to multi-ingredient products should be recoded at the product level and updated when more specific information becomes available (e.g., positive sensitivity test to one specific ingredient of the mix)."),v(),_(19,"p"),k(20,"Vaccine allergy is an example where allergy concepts are modeled using a product concept. For example, \u2018Allergy to component of vaccine product (finding)\u2019 with a synonym \u2018vaccine allergy\u2019 has been modeled by vaccine product. The concept represents that allergy is caused by any substance in a vaccine product."),v(),_(21,"p"),k(22,"To record the level of certainty or verification status, it is recommended to use additional data elements in the EHR information model. Even though it is possible to utilize the SNOMED CT model for \u2018situation with explicit context\u2019 to express certainty, this is not recommended due to potential ambiguity. For example, \u201csuspected penicillin allergy\u201d can mean uncertainty with the condition (is it real allergy?) or with the causative agent (is it penicillin?). Even though SNOMED CT editorial guideline is clear that the first interpretation is correct, it is better to use other methods to represent the uncertainty to avoid confusion."),v(),_(23,"p"),k(24,"For more information check the "),_(25,"a",6),k(26,"Implementation Guide"),v(),k(27," developed by the SNOMED International Allergy Clinical Reference Group."),v()()()(),_(28,"div",7)(29,"div",8)(30,"app-autocomplete-binding",9),z("selectionChange",function(a){return r.updateProblem(a)}),v()(),_(31,"div",8)(32,"button",10),z("click",function(){return r.addProblem()}),k(33,"Add problem"),v()(),_(34,"div",8),P(35,rJ,1,0,"mat-spinner",11),v()(),_(36,"table",12),di(37,13),P(38,oJ,2,0,"th",14),P(39,aJ,3,4,"td",15),ui(),di(40,16),P(41,sJ,2,0,"th",14),P(42,cJ,2,1,"td",15),ui(),di(43,17),P(44,lJ,2,0,"th",14),P(45,uJ,3,2,"td",15),ui(),P(46,hJ,1,0,"tr",18),P(47,fJ,1,0,"tr",19),v()(),_(48,"div",2)(49,"h4"),k(50,"Substances the patient is allergic to:"),v(),_(51,"table",12),di(52,16),P(53,mJ,2,0,"th",14),P(54,pJ,2,1,"td",15),ui(),di(55,17),P(56,gJ,2,0,"th",14),P(57,_J,2,1,"td",15),ui(),P(58,bJ,1,0,"tr",18),P(59,vJ,1,0,"tr",19),v()()()()),2&n){const o=wt(9);w(5),S("matMenuTriggerFor",o),w(5),S("disableRipple",!0),w(20),S("binding",r.problemBinding)("term",r.term),w(5),S("ngIf",r.loading),w(1),S("dataSource",r.dataSource),w(10),S("matHeaderRowDef",r.displayedColumns),w(1),S("matRowDefColumns",r.displayedColumns),w(4),S("dataSource",r.dataSource2),w(7),S("matHeaderRowDef",r.displayedColumns2),w(1),S("matRowDefColumns",r.displayedColumns2)}},dependencies:[Yi,Dr,Zo,oo,Qc,ka,Yc,Yd,m1,eu,Zc,tu,Jc,Kc,iu,el,tl,nu,ru,pf,Ox],styles:["#main-card[_ngcontent-%COMP%]{padding:10px}app-autocomplete-binding[_ngcontent-%COMP%]{display:block;min-width:500px}.container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;margin:10px 0;gap:10px}.container-space[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start;margin:10px 0;gap:10px}.problem-list[_ngcontent-%COMP%]{width:60%}.tag[_ngcontent-%COMP%]{position:absolute;top:0;right:0;padding-left:10px;padding-right:10px;margin-top:5px}td[_ngcontent-%COMP%]{position:relative}.pill[_ngcontent-%COMP%]{display:inline-block;font-size:10px;background-color:orange;color:#fff;padding:4px 8px;border-radius:20px;position:absolute;top:0;right:0;margin-top:1rem}.mat-column-display[_ngcontent-%COMP%]{min-width:350px}.long-tooltip[_ngcontent-%COMP%]{padding-left:3rem;padding-right:3rem;font-weight:lighter;font-size:.9rem}"]})}return t})();class wJ extends Sy{constructor(i){super(),this._dataStream=new cI,this.setData(i)}connect(){return this._dataStream}disconnect(){}setData(i){this._dataStream.next(i)}}class CJ extends Sy{constructor(i){super(),this._dataStream=new cI,this.setData(i)}connect(){return this._dataStream}disconnect(){}setData(i){this._dataStream.next(i)}}function kJ(t,i){}const SJ=function(t){return{animationDuration:t}},DJ=function(t,i){return{value:t,params:i}};function EJ(t,i){1&t&&Je(0)}const nO=["*"],TJ=["tabListContainer"],MJ=["tabList"],AJ=["tabListInner"],IJ=["nextPaginator"],FJ=["previousPaginator"],RJ=["tabBodyWrapper"],OJ=["tabHeader"];function PJ(t,i){}function LJ(t,i){1&t&&P(0,PJ,0,0,"ng-template",14),2&t&&S("cdkPortalOutlet",V().$implicit.templateLabel)}function NJ(t,i){1&t&&k(0),2&t&&Ge(V().$implicit.textLabel)}function BJ(t,i){if(1&t){const e=Ne();_(0,"div",6,7),z("click",function(){const r=_e(e),o=r.$implicit,a=r.index,s=V(),c=wt(1);return be(s._handleClick(o,c,a))})("cdkFocusChange",function(r){const a=_e(e).index;return be(V()._tabFocusChanged(r,a))}),ge(2,"span",8)(3,"div",9),_(4,"span",10)(5,"span",11),P(6,LJ,1,1,"ng-template",12),P(7,NJ,1,1,"ng-template",null,13,Pc),v()()()}if(2&t){const e=i.$implicit,n=i.index,r=wt(1),o=wt(8),a=V();Ye("mdc-tab--active",a.selectedIndex===n),S("id",a._getTabLabelId(n))("ngClass",e.labelClass)("disabled",e.disabled)("fitInkBarToContent",a.fitInkBarToContent),st("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),w(3),S("matRippleTrigger",r)("matRippleDisabled",e.disabled||a.disableRipple),w(3),S("ngIf",e.templateLabel)("ngIfElse",o)}}function VJ(t,i){if(1&t){const e=Ne();_(0,"mat-tab-body",15),z("_onCentered",function(){return _e(e),be(V()._removeTabBodyWrapperHeight())})("_onCentering",function(r){return _e(e),be(V()._setTabBodyWrapperHeight(r))}),v()}if(2&t){const e=i.$implicit,n=i.index,r=V();Ye("mat-mdc-tab-body-active",r.selectedIndex===n),S("id",r._getTabContentId(n))("ngClass",e.bodyClass)("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),st("tabindex",null!=r.contentTabIndex&&r.selectedIndex===n?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(n))}}const HJ={translateTab:zi("translateTab",[Zt("center, void, left-origin-center, right-origin-center",Xe({transform:"none"})),Zt("left",Xe({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Zt("right",Xe({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Wt("* => left, * => right, left => center, right => center",jt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Wt("void => left-origin-center",[Xe({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),jt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Wt("void => right-origin-center",[Xe({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),jt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let UJ=(()=>{class t extends us{constructor(e,n,r,o){super(e,n,o),this._host=r,this._centeringSub=kt.EMPTY,this._leavingSub=kt.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(xn(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)(x(Is),x(Oi),x(Qt(()=>rO)),x(ot))},t.\u0275dir=Q({type:t,selectors:[["","matTabBodyHost",""]],features:[pe]}),t})(),zJ=(()=>{class t{set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(e,n,r){this._elementRef=e,this._dir=n,this._dirChangeSubscription=kt.EMPTY,this._translateTabComplete=new ke,this._onCentering=new Ce,this._beforeCentering=new Ce,this._afterLeavingCenter=new Ce,this._onCentered=new Ce(!0),this.animationDuration="500ms",this.preserveContent=!1,n&&(this._dirChangeSubscription=n.change.subscribe(o=>{this._computePositionAnimationState(o),r.markForCheck()})),this._translateTabComplete.pipe(Ws((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)(x(Ie),x(un,8),x(Ut))},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})(),rO=(()=>{class t extends zJ{constructor(e,n,r){super(e,n,r)}}return t.\u0275fac=function(e){return new(e||t)(x(Ie),x(un,8),x(Ut))},t.\u0275cmp=Le({type:t,selectors:[["mat-tab-body"]],viewQuery:function(e,n){if(1&e&&rt(us,5),2&e){let r;Se(r=De())&&(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&&(_(0,"div",0,1),z("@translateTab.start",function(o){return n._onTranslateTabStarted(o)})("@translateTab.done",function(o){return n._translateTabComplete.next(o)}),P(2,kJ,0,0,"ng-template",2),v()),2&e&&S("@translateTab",Wv(3,DJ,n._position,Ja(1,SJ,n.animationDuration)))},dependencies:[UJ],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:[HJ.translateTab]}}),t})();const $J=new oe("MatTabContent");let jJ=(()=>{class t{constructor(e){this.template=e}}return t.\u0275fac=function(e){return new(e||t)(x(yi))},t.\u0275dir=Q({type:t,selectors:[["","matTabContent",""]],features:[We([{provide:$J,useExisting:t}])]}),t})();const WJ=new oe("MatTabLabel"),oO=new oe("MAT_TAB");let GJ=(()=>{class t extends DX{constructor(e,n,r){super(e,n),this._closestTab=r}}return t.\u0275fac=function(e){return new(e||t)(x(yi),x(Oi),x(oO,8))},t.\u0275dir=Q({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[We([{provide:WJ,useExisting:t}]),pe]}),t})();const j1="mdc-tab-indicator--active",aO="mdc-tab-indicator--no-transition";class qJ{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 XJ(t){return class extends t{constructor(...i){super(...i),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(i){const e=He(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(j1);const n=e.getBoundingClientRect(),r=i.width/n.width,o=i.left-n.left;e.classList.add(aO),this._inkBarContentElement.style.setProperty("transform",`translateX(${o}px) scaleX(${r})`),e.getBoundingClientRect(),e.classList.remove(aO),e.classList.add(j1),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove(j1)}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 YJ=cs(class{}),KJ=XJ((()=>{class t extends YJ{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)(x(Ie))},t.\u0275dir=Q({type:t,features:[pe]}),t})());let sO=(()=>{class t extends KJ{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,n){2&e&&(st("aria-disabled",!!n.disabled),Ye("mat-mdc-tab-disabled",n.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[pe]}),t})();const ZJ=cs(class{}),cO=new oe("MAT_TAB_GROUP");let JJ=(()=>{class t extends ZJ{get content(){return this._contentPortal}constructor(e,n){super(),this._viewContainerRef=e,this._closestTabGroup=n,this.textLabel="",this._contentPortal=null,this._stateChanges=new ke,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 ds(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return t.\u0275fac=function(e){return new(e||t)(x(Oi),x(cO,8))},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&rt(yi,7),2&e){let r;Se(r=De())&&(n._implicitContent=r.first)}},inputs:{textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[pe,Ai]}),t})(),S0=(()=>{class t extends JJ{get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(t)))(n||t)}}(),t.\u0275cmp=Le({type:t,selectors:[["mat-tab"]],contentQueries:function(e,n,r){if(1&e&&(It(r,jJ,7,yi),It(r,GJ,5)),2&e){let o;Se(o=De())&&(n._explicitContent=o.first),Se(o=De())&&(n.templateLabel=o.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[We([{provide:oO,useExisting:t}]),pe],ngContentSelectors:nO,decls:1,vars:0,template:function(e,n){1&e&&(hi(),P(0,EJ,1,0,"ng-template"))},encapsulation:2}),t})();const lO=Ko({passive:!0});let iee=(()=>{class t{get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=He(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=On(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 ke,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new ke,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Ce,this.indexFocused=new Ce,a.runOutsideAngular(()=>{Jo(e.nativeElement,"mouseleave").pipe(pt(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){Jo(this._previousPaginator.nativeElement,"touchstart",lO).pipe(pt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Jo(this._nextPaginator.nativeElement,"touchstart",lO).pipe(pt(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:qe("ltr"),n=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new qy(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(si(1)).subscribe(r),Pi(e,n,this._items.changes,this._itemsResized()).pipe(pt(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?qr:this._items.changes.pipe(xn(this._items),vn(e=>new ai(n=>this._ngZone.runOutsideAngular(()=>{const r=new ResizeObserver(o=>n.next(o));return e.forEach(o=>r.observe(o.elementRef.nativeElement)),()=>{r.disconnect()}}))),zy(1),Kt(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(!or(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(),zg(650,100).pipe(pt(Pi(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)(x(Ie),x(Ut),x(ea),x(un,8),x(ze),x(wi),x(Ii,8))},t.\u0275dir=Q({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),nee=(()=>{class t extends iee{get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=He(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)(x(Ie),x(Ut),x(ea),x(un,8),x(ze),x(wi),x(Ii,8))},t.\u0275dir=Q({type:t,inputs:{disableRipple:"disableRipple"},features:[pe]}),t})(),ree=(()=>{class t extends nee{constructor(e,n,r,o,a,s,c){super(e,n,r,o,a,s,c)}ngAfterContentInit(){this._inkBar=new qJ(this._items),super.ngAfterContentInit()}}return t.\u0275fac=function(e){return new(e||t)(x(Ie),x(Ut),x(ea),x(un,8),x(ze),x(wi),x(Ii,8))},t.\u0275cmp=Le({type:t,selectors:[["mat-tab-header"]],contentQueries:function(e,n,r){if(1&e&&It(r,sO,4),2&e){let o;Se(o=De())&&(n._items=o)}},viewQuery:function(e,n){if(1&e&&(rt(TJ,7),rt(MJ,7),rt(AJ,7),rt(IJ,5),rt(FJ,5)),2&e){let r;Se(r=De())&&(n._tabListContainer=r.first),Se(r=De())&&(n._tabList=r.first),Se(r=De())&&(n._tabListInner=r.first),Se(r=De())&&(n._nextPaginator=r.first),Se(r=De())&&(n._previousPaginator=r.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(e,n){2&e&&Ye("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:nO,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&&(hi(),_(0,"button",0,1),z("click",function(){return n._handlePaginatorClick("before")})("mousedown",function(o){return n._handlePaginatorPress("before",o)})("touchend",function(){return n._stopInterval()}),ge(2,"div",2),v(),_(3,"div",3,4),z("keydown",function(o){return n._handleKeydown(o)}),_(5,"div",5,6),z("cdkObserveContent",function(){return n._onContentChanges()}),_(7,"div",7,8),Je(9),v()()(),_(10,"button",9,10),z("mousedown",function(o){return n._handlePaginatorPress("after",o)})("click",function(){return n._handlePaginatorClick("after")})("touchend",function(){return n._stopInterval()}),ge(12,"div",2),v()),2&e&&(Ye("mat-mdc-tab-header-pagination-disabled",n._disableScrollBefore),S("matRippleDisabled",n._disableScrollBefore||n.disableRipple)("disabled",n._disableScrollBefore||null),w(3),Ye("_mat-animation-noopable","NoopAnimations"===n._animationMode),w(7),Ye("mat-mdc-tab-header-pagination-disabled",n._disableScrollAfter),S("matRippleDisabled",n._disableScrollAfter||n.disableRipple)("disabled",n._disableScrollAfter||null))},dependencies:[ko,$y],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 dO=new oe("MAT_TABS_CONFIG");let oee=0;const aee=Gs(qs(class{constructor(t){this._elementRef=t}}),"primary");let see=(()=>{class t extends aee{get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=He(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=On(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=On(e,null)}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=He(e)}get preserveContent(){return this._preserveContent}set preserveContent(e){this._preserveContent=He(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 Rs,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=kt.EMPTY,this._tabLabelSubscription=kt.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new Ce,this.focusChange=new Ce,this.animationDone=new Ce,this.selectedTabChange=new Ce(!0),this._groupId=oee++,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(xn(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 cee;return n.index=e,this._tabs&&this._tabs.length&&(n.tab=this._tabs.toArray()[e]),n}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Pi(...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)(x(Ie),x(Ut),x(dO,8),x(Ii,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})(),gf=(()=>{class t extends see{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=He(e),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(e){this._stretchTabs=He(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)(x(Ie),x(Ut),x(dO,8),x(Ii,8))},t.\u0275cmp=Le({type:t,selectors:[["mat-tab-group"]],contentQueries:function(e,n,r){if(1&e&&It(r,S0,5),2&e){let o;Se(o=De())&&(n._allTabs=o)}},viewQuery:function(e,n){if(1&e&&(rt(RJ,5),rt(OJ,5)),2&e){let r;Se(r=De())&&(n._tabBodyWrapper=r.first),Se(r=De())&&(n._tabHeader=r.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:6,hostBindings:function(e,n){2&e&&Ye("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:cO,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&&(_(0,"mat-tab-header",0,1),z("indexFocused",function(o){return n._focusChanged(o)})("selectFocusedIndex",function(o){return n.selectedIndex=o}),P(2,BJ,9,17,"div",2),v(),_(3,"div",3,4),P(5,VJ,1,11,"mat-tab-body",5),v()),2&e&&(S("selectedIndex",n.selectedIndex||0)("disableRipple",n.disableRipple)("disablePagination",n.disablePagination),w(2),S("ngForOf",n._tabs),w(1),Ye("_mat-animation-noopable","NoopAnimations"===n._animationMode),w(2),S("ngForOf",n._tabs))},dependencies:[os,kr,Yi,us,ko,jq,rO,sO,ree],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 cee{}let lee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[Xn,yt,jc,Xs,Mg,Yy,yt]}),t})();var ps=gc(327);class dee{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 W1=(()=>{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 dee(e,this._document)}}return t.\u0275fac=function(e){return new(e||t)(X(ot))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const uee=new oe("HighlightJs-Config");let D0=(()=>{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)(x(Ie),x(ta,8),x(ot),x(uee,8),x(ze))},t.\u0275dir=Q({type:t,selectors:[["","highlight-js",""]],hostVars:2,hostBindings:function(e,n){2&e&&en("display","simple"===n.mode?"none":null)},inputs:{options:"options",lang:"lang",code:"code",mode:"mode"},exportAs:["highlightJs"],standalone:!0}),t})(),hee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[$1]}),t})();const fee=["trigger"],mee=["panel"];function pee(t,i){if(1&t&&(_(0,"span",10),k(1),v()),2&t){const e=V();w(1),Ge(e.placeholder)}}function gee(t,i){if(1&t&&(_(0,"span",14),k(1),v()),2&t){const e=V(2);w(1),Ge(e.triggerValue)}}function _ee(t,i){1&t&&Je(0,0,["*ngSwitchCase","true"])}function bee(t,i){1&t&&(_(0,"span",11),P(1,gee,2,1,"span",12),P(2,_ee,1,0,"ng-content",13),v()),2&t&&(S("ngSwitch",!!V().customTrigger),w(2),S("ngSwitchCase",!0))}function vee(t,i){if(1&t){const e=Ne();qa(),Gl(),_(0,"div",15,16),z("@transformPanel.done",function(r){return _e(e),be(V()._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){return _e(e),be(V()._handleKeydown(r))}),Je(2,1),v()}if(2&t){const e=V();(function YE(t,i,e){Wo(Zr,va,ld(ve(),t,i,e),!0)})("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),S("ngClass",e.panelClass)("@transformPanel","showing"),st("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const xee=[[["mat-select-trigger"]],"*"],yee=["mat-select-trigger","*"],wee={transformPanelWrap:zi("transformPanelWrap",[Wt("* => void",Bg("@transformPanel",[Ng()],{optional:!0}))]),transformPanel:zi("transformPanel",[Zt("void",Xe({opacity:0,transform:"scale(1, 0.8)"})),Wt("void => showing",jt("120ms cubic-bezier(0, 0, 0.2, 1)",Xe({opacity:1,transform:"scale(1, 1)"}))),Wt("* => void",jt("100ms linear",Xe({opacity:0})))])};let uO=0;const hO=new oe("mat-select-scroll-strategy"),kee=new oe("MAT_SELECT_CONFIG"),See={provide:hO,deps:[ar],useFactory:function Cee(t){return()=>t.scrollStrategies.reposition()}},Dee=new oe("MatSelectTrigger");class Eee{constructor(i,e){this.source=i,this.value=e}}const Tee=qs(qh(cs(jI(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 ke}}))));let Mee=(()=>{class t extends Tee{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(ou.required)??!1}set required(e){this._required=He(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=He(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=He(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=On(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,b)=>p===b,this._uid="mat-select-"+uO++,this._triggerAriaLabelledBy=null,this._destroy=new ke,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+uO++,this._panelDoneAnimatingStream=new ke,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=Ad(()=>{const p=this.options;return p?p.changes.pipe(xn(p),vn(()=>Pi(...p.map(b=>b.onSelectionChange)))):this._ngZone.onStable.pipe(si(1),vn(()=>this.optionSelectionChanges))}),this.openedChange=new Ce,this._openedStream=this.openedChange.pipe(Kt(p=>p),Ze(()=>{})),this._closedStream=this.openedChange.pipe(Kt(p=>!p),Ze(()=>{})),this.selectionChange=new Ce,this.valueChange=new Ce,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 Ey(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Ws(),pt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(pt(this._destroy)).subscribe(e=>{e.added.forEach(n=>n.select()),e.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(xn(null),pt(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&&!or(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||or(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(si(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 PI(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=Pi(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(pt(e)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Pi(...this.options.map(n=>n._stateChanges)).pipe(pt(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)(x(ea),x(Ut),x(ze),x(WI),x(Ie),x(un,8),x(rl,8),x(Zs,8),x(C0,8),x(Da,10),_o("tabindex"),x(hO),x(Xy),x(kee,8))},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&(rt(fee,5),rt(mee,5),rt(CF,5)),2&e){let r;Se(r=De())&&(n.trigger=r.first),Se(r=De())&&(n.panel=r.first),Se(r=De())&&(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,Ai]}),t})(),_f=(()=>{class t extends Mee{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(pt(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:eF(a.offsetTop,a.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new Eee(this,e)}_getOverlayWidth(){return(this._preferredOverlayOrigin instanceof d1?this._preferredOverlayOrigin.elementRef:this._preferredOverlayOrigin||this._elementRef).nativeElement.getBoundingClientRect().width}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=He(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=Ct(t)))(n||t)}}(),t.\u0275cmp=Le({type:t,selectors:[["mat-select"]],contentQueries:function(e,n,r){if(1&e&&(It(r,Dee,5),It(r,Qs,5),It(r,Jy,5)),2&e){let o;Se(o=De())&&(n.customTrigger=o.first),Se(o=De())&&(n.options=o),Se(o=De())&&(n.optionGroups=o)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(e,n){1&e&&z("keydown",function(o){return n._handleKeydown(o)})("focus",function(){return n._onFocus()})("blur",function(){return n._onBlur()}),2&e&&(st("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()),Ye("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:w0,useExisting:t},{provide:Zy,useExisting:t}]),pe],ngContentSelectors:yee,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&&(hi(xee),_(0,"div",0,1),z("click",function(){return n.toggle()}),_(3,"div",2),P(4,pee,2,1,"span",3),P(5,bee,3,2,"span",4),v(),_(6,"div",5)(7,"div",6),qa(),_(8,"svg",7),ge(9,"path",8),v()()()(),P(10,vee,3,9,"ng-template",9),z("backdropClick",function(){return n.close()})("attach",function(){return n._onAttached()})("detach",function(){return n.close()})),2&e){const r=wt(1);st("aria-owns",n.panelOpen?n.id+"-panel":null),w(3),S("ngSwitch",n.empty),st("id",n._valueId),w(1),S("ngSwitchCase",!0),w(1),S("ngSwitchCase",!1),w(5),S("cdkConnectedOverlayPanelClass",n._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",n._scrollStrategy)("cdkConnectedOverlayOrigin",n._preferredOverlayOrigin||r)("cdkConnectedOverlayOpen",n.panelOpen)("cdkConnectedOverlayPositions",n._positions)("cdkConnectedOverlayWidth",n._overlayWidth)}},dependencies:[os,gh,Fx,mM,CF,d1],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:[wee.transformPanel]},changeDetection:0}),t})(),Aee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({providers:[See],imports:[Xn,qc,Lg,yt,hs,k0,Lg,yt]}),t})();const Iee=["tooltip"],fO=new oe("mat-tooltip-scroll-strategy"),Oee={provide:fO,deps:[ar],useFactory:function Ree(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},Lee=new oe("mat-tooltip-default-options",{providedIn:"root",factory:function Pee(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),mO="tooltip-panel",pO=Ko({passive:!0});let zee=(()=>{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=He(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){this._disabled=He(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=On(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=On(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 ke,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(pt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(pt(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,pO)}),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 qd(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(pt(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 Ie)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(pt(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}-${mO}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(pt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(pt(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(pt(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&27===o.keyCode&&!or(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(si(1),pt(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}-${mO}-`;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,pO)})}_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){pa()},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})(),cu=(()=>{class t extends zee{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=jee,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)(x(ar),x(Ie),x(Wc),x(Oi),x(ze),x(wi),x(FI),x(ro),x(fO),x(un,8),x(Lee,8),x(ot))},t.\u0275dir=Q({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],exportAs:["matTooltip"],features:[pe]}),t})(),$ee=(()=>{class t{constructor(e,n){this._changeDetectorRef=e,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new ke,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)(x(Ut),x(Ii,8))},t.\u0275dir=Q({type:t}),t})(),jee=(()=>{class t extends $ee{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)(x(Ut),x(Ie),x(Ii,8))},t.\u0275cmp=Le({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(e,n){if(1&e&&rt(Iee,7),2&e){let r;Se(r=De())&&(n._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,n){1&e&&z("mouseleave",function(o){return n._handleMouseLeave(o)}),2&e&&en("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&&(_(0,"div",0,1),z("animationend",function(o){return n._handleAnimationEnd(o)}),_(2,"div",2),k(3),v()()),2&e&&(Ye("mdc-tooltip--multiline",n._isMultiline),S("ngClass",n.tooltipClass),w(3),Ge(n.message))},dependencies:[os],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})(),Wee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({providers:[Oee],imports:[Yy,Xn,qc,yt,yt,hs]}),t})();const Gee=["switch"],qee=["*"],Xee=new oe("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})}),Qee={provide:Kn,useExisting:Qt(()=>_O),multi:!0};class gO{constructor(i,e){this.source=i,this.checked=e}}let Yee=0;const Kee=qh(Gs(qs(cs(class{constructor(t){this._elementRef=t}}))));let Zee=(()=>{class t extends Kee{get required(){return this._required}set required(e){this._required=He(e)}get checked(){return this._checked}set checked(e){this._checked=He(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 Ce,this.toggleChange=new Ce,this.tabIndex=parseInt(o)||0,this.color=this.defaultColor=a.color||"accent",this._noopAnimations="NoopAnimations"===s,this.id=this._uniqueId=`${c}${++Yee}`}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){pa()},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})(),_O=(()=>{class t extends Zee{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 gO(this,this.checked)))}focus(){this._switchElement.nativeElement.focus()}_createChangeEvent(e){return new gO(this,e)}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}}return t.\u0275fac=function(e){return new(e||t)(x(Ie),x(ro),x(Ut),_o("tabindex"),x(Xee),x(Ii,8))},t.\u0275cmp=Le({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(e,n){if(1&e&&rt(Gee,5),2&e){let r;Se(r=De())&&(n._switchElement=r.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:11,hostBindings:function(e,n){2&e&&(xa("id",n.id),st("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Ye("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([Qee]),pe],ngContentSelectors:qee,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&&(hi(),_(0,"div",0)(1,"button",1,2),z("click",function(){return n._handleClick()}),ge(3,"div",3),_(4,"div",4)(5,"div",5)(6,"div",6),ge(7,"div",7),v(),_(8,"div",8),ge(9,"div",9),v(),_(10,"div",10),qa(),_(11,"svg",11),ge(12,"path",12),v(),_(13,"svg",13),ge(14,"path",14),v()()()()(),Gl(),_(15,"label",15),z("click",function(o){return o.stopPropagation()}),Je(16),v()()),2&e){const r=wt(2);Ye("mdc-form-field--align-end","before"==n.labelPosition),w(1),Ye("mdc-switch--selected",n.checked)("mdc-switch--unselected",!n.checked)("mdc-switch--checked",n.checked)("mdc-switch--disabled",n.disabled),S("tabIndex",n.tabIndex)("disabled",n.disabled),st("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),w(8),S("matRippleTrigger",r)("matRippleDisabled",n.disableRipple||n.disabled)("matRippleCentered",!0),w(6),S("for",n.buttonId),st("id",n._labelId)}},dependencies:[ko],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})(),bO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({}),t})(),tte=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[bO,yt,Xs,Xn,bO,yt]}),t})();function ite(t,i){if(1&t){const e=Ne();_(0,"button",14),z("click",function(){_e(e);const r=V().index;return be(V().removeReaction(r))}),_(1,"mat-icon"),k(2,"close"),v()()}}function nte(t,i){if(1&t){const e=Ne();_(0,"mat-option",15),z("click",function(){const o=_e(e).$implicit,a=V().$implicit;return be(V().reactionSeveritySelected(a,o))}),k(1),v()}if(2&t){const e=i.$implicit;S("value",e),w(1),Ge(e.display)}}function rte(t,i){if(1&t){const e=Ne();_(0,"div",2)(1,"div",3),P(2,ite,3,0,"button",4),v(),_(3,"div",5)(4,"div",6)(5,"app-autocomplete-binding",7),z("selectionChange",function(r){const a=_e(e).$implicit;return be(V().reactionManifestationSelected(a,r))}),v()(),_(6,"button",8)(7,"mat-icon"),k(8,"info"),v()(),_(9,"mat-menu",null,9)(11,"span",10),z("click",function(r){return r.stopPropagation()}),_(12,"p"),k(13,"Terminology binding:"),v(),_(14,"pre"),k(15),v()()()(),_(16,"mat-form-field",11)(17,"mat-label"),k(18,"Reaction Severity"),v(),_(19,"mat-select"),P(20,nte,2,2,"mat-option",12),v()(),_(21,"div",5)(22,"div",6)(23,"app-autocomplete-binding",7),z("selectionChange",function(r){const a=_e(e).$implicit;return be(V().reactionRouteSelected(a,r))}),v()(),_(24,"button",8)(25,"mat-icon"),k(26,"info"),v()(),_(27,"mat-menu",null,13)(29,"span",10),z("click",function(r){return r.stopPropagation()}),_(30,"p"),k(31,"Terminology binding:"),v(),_(32,"pre"),k(33),v()()()()()}if(2&t){const e=i.index,n=wt(10),r=wt(28),o=V();w(2),S("ngIf",e>0),w(3),S("binding",o.reactionManifestationBinding),w(1),S("matMenuTriggerFor",n),w(5),S("disableRipple",!0),w(4),Ge(o.reactionManifestationBinding.ecl),w(5),S("ngForOf",o.severityOptions),w(3),S("binding",o.routeBinding),w(1),S("matMenuTriggerFor",r),w(5),S("disableRipple",!0),w(4),Ge(o.routeBinding.ecl)}}let ote=(()=>{class t{constructor(){this.reactions=[],this.newManifestation=new Ce,this.severityOptions=[{code:"mild",display:"Mild",sctCode:"255604002",sctDisplay:"Mild (qualifier value)"},{code:"moderate",display:"Moderate",sctCode:"6736007",sctDisplay:"Moderate (qualifier value)"},{code:"severe",display:"Severe",sctCode:"24484000",sctDisplay:"Severe (qualifier value)"}],this.selectedSeverity={},this.reactionManifestationBinding={ecl:"<<404684003 |Clinical finding|",title:"Reaction Manifestation"},this.routeBinding={ecl:"<<284009009 |Route of administration value|",title:"Exposure Route"},this.reaction={},this.onChangeCallback=()=>{},this.onTouchedCallback=()=>{}}writeValue(e){void 0!==e&&(this.reactions=e)}setDisabledState(e){}addNewReaction(){this.reactions.push(this.reaction),this.reaction={},this.onChangeCallback(this.reactions)}removeReaction(e){this.reactions.splice(e,1),this.onChangeCallback(this.reactions)}reactionManifestationSelected(e,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}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Le({type:t,selectors:[["app-allergies-allergy-list-reaction"]],inputs:{reactions:"reactions"},outputs:{newManifestation:"newManifestation"},features:[We([{provide:Kn,useExisting:Qt(()=>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(n,r){1&n&&(P(0,rte,34,10,"div",0),_(1,"div")(2,"button",1),z("click",function(){return r.addNewReaction()}),_(3,"mat-icon"),k(4,"add"),v()()()),2&n&&S("ngForOf",r.reactions)},dependencies:[kr,Yi,Zo,oo,Qc,ka,Yc,Ea,Do,Qs,_f,cu,pf],styles:["#main-card[_ngcontent-%COMP%]{padding:10px;width:100%}.row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:-5px;align-items:flex-start}.row-centered[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:-5px;align-items:center}.column[_ngcontent-%COMP%]{flex:1;margin:5px;box-sizing:border-box}.form-field[_ngcontent-%COMP%]{width:100%}.smallest-form-field[_ngcontent-%COMP%]{width:60%;margin:5px}.small-form-field[_ngcontent-%COMP%]{width:90%;margin:5px}.mat-form-field[_ngcontent-%COMP%]{font-size:14px;padding:4px 8px;height:36px}.mat-mdc-form-field-appearance-outline[_ngcontent-%COMP%] .mat-mdc-form-field-infix[_ngcontent-%COMP%]{padding-top:0}.reaction[_ngcontent-%COMP%]{border-radius:10px;background-color:#a9bee9;padding:10px;margin-bottom:10px}#output[_ngcontent-%COMP%]{border-radius:10px;background-color:#282c34;padding:10px;position:relative}pre[_ngcontent-%COMP%] > code[_ngcontent-%COMP%]{width:45%;white-space:pre-wrap;word-wrap:break-word}#save[_ngcontent-%COMP%]{position:absolute;right:0;top:0;color:#e88c15}.button-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;width:100%}"]})}return t})();function ate(t,i){if(1&t){const e=Ne();_(0,"mat-option",31),z("click",function(){return _e(e),be(V().updateAllergyStr())}),k(1),v()}if(2&t){const e=i.$implicit;S("value",e),w(1),Ge(e.display)}}function ste(t,i){if(1&t){const e=Ne();_(0,"mat-option",31),z("click",function(){return _e(e),be(V().updateAllergyStr())}),k(1),v()}if(2&t){const e=i.$implicit;S("value",e),w(1),Ge(e.display)}}function cte(t,i){if(1&t){const e=Ne();_(0,"mat-option",31),z("click",function(){return _e(e),be(V().updateAllergyStr())}),k(1),v()}if(2&t){const e=i.$implicit;S("value",e),w(1),Ge(e.display)}}function lte(t,i){if(1&t){const e=Ne();_(0,"app-autocomplete-binding",10),z("selectionChange",function(r){return _e(e),be(V().substanceSelected(r,!0))}),v()}if(2&t){const e=V();S("binding",e.substanceBinding)("term",e.selectedSubstanceTerm)}}function dte(t,i){if(1&t){const e=Ne();_(0,"app-autocomplete-binding",10),z("selectionChange",function(r){return _e(e),be(V().substanceSelected(r))}),v()}if(2&t){const e=V();S("binding",e.refinedSubstanceBinding)("term",e.selectedSubstanceTerm)}}function ute(t,i){if(1&t&&(_(0,"pre"),k(1),v()),2&t){const e=V();w(1),Ge(e.substanceBinding.ecl)}}function hte(t,i){if(1&t&&(_(0,"pre"),k(1),v()),2&t){const e=V();w(1),Ge(e.refinedSubstanceBinding.ecl)}}function fte(t,i){if(1&t){const e=Ne();_(0,"mat-option",31),z("click",function(){return _e(e),be(V().updateAllergyStr())}),k(1),v()}if(2&t){const e=i.$implicit;S("value",e),w(1),Ge(e.display)}}function mte(t,i){if(1&t){const e=Ne();_(0,"mat-option",31),z("click",function(){return _e(e),be(V().updateAllergyStr())}),k(1),v()}if(2&t){const e=i.$implicit;S("value",e),w(1),Ge(e.display)}}const pte=function(){return{}};let gte=(()=>{class t{constructor(e,n,r){this.terminologyService=e,this.clipboard=n,this._snackBar=r,this.newProblem=new Ce,this.clinicalStatusOptions=[{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",code:"active",display:"Active"},{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",code:"inactive",display:"Inactive"},{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical",code:"resolved",display:"Resolved"}],this.selectedClinicalStatus=this.clinicalStatusOptions[0],this.verificationStatusOptions=[{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",code:"unconfirmed",display:"Unconfirmed"},{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",code:"presumed",display:"Presumed"},{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",code:"confirmed",display:"Confirmed"},{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",code:"refuted",display:"Refuted"},{system:"http://terminology.hl7.org/CodeSystem/allergyintolerance-verification",code:"entered-in-error",display:"Entered in Error"}],this.selectedVerificationStatus=this.verificationStatusOptions[0],this.intoleranceTypeOptions=[{system:"http://hl7.org/fhir/allergy-intolerance-type",code:"609433001",display:"Hypersensitivity disposition (finding)",fhirCode:"allergy",fhirDisplay:"Allergy"},{system:"http://hl7.org/fhir/allergy-intolerance-type",code:"782197009",display:"Intolerance to substance (finding)",fhirCode:"intolerance",fhirDisplay:"Intolerance"}],this.selectedIntoleranceType=null,this.intoleranceCategoryOptions=[{code:"food",display:"Food"},{code:"medication",display:"Medication"},{code:"environment",display:"Environment"},{code:"biologic",display:"Biologic"}],this.selectedIntoleranceCategories=[],this.selectedIntoleranceCategoriesControl=new Hr(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 Hr(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 fi(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 fi(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 fi(function*(){return Sr((yield n.terminologyService.expandValueSet(`${e.code} |${e.display}| . 47429007 |Associated with (attribute)|`,"")).pipe(Ze(o=>o)))})()}getAllergySubstance(e){var n=this;return fi(function*(){return Sr((yield n.terminologyService.expandValueSet(`${e.code} |${e.display}| . 246075003 |Causative agent (attribute)|`,"")).pipe(Ze(o=>o)))})()}getSubstanceCategories(e){var n=this;return fi(function*(){return Sr((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(Ze(o=>o)))})()}getTypes(e){var n=this;return fi(function*(){return Sr((yield n.terminologyService.expandValueSet(`> ${e.code} |${e.display}| AND (609433001 |Hypersensitivity disposition| OR 782197009 |Intolerance to substance|)`,"")).pipe(Ze(o=>o)))})()}saveFhirResource(){var e=new Blob([this.outputAllergyStr],{type:"text/plain;charset=utf-8"});(0,ps.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(Zi,{duration:1e3,data:"Nothing to add to problem list",panelClass:["yellow-snackbar"]});this.clear()}static#e=this.\u0275fac=function(n){return new(n||t)(x(Yn),x(W1),x(Qd))};static#t=this.\u0275cmp=Le({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(n,r){if(1&n&&(_(0,"mat-card",0)(1,"div",1)(2,"div",2)(3,"h4"),k(4,"Allergy Intolerance Form "),_(5,"button",3)(6,"mat-icon"),k(7,"info"),v()(),_(8,"mat-menu",null,4)(10,"span",5),z("click",function(a){return a.stopPropagation()}),_(11,"h4"),k(12,"Allergy list"),v(),_(13,"p"),k(14,"Allergy or intolerance can be recorded in a specific section (e.g., \u201cDrug Allergy and Intolerance\u201d) of the EHR, which records the causative agent together with other details, including type (allergy, non-allergic hypersensitivity, intolerance), certainty, manifestation, and severity. This corresponds to the FHIR substance based AllergyIntolerance resource data model."),v(),_(15,"p"),k(16,"In terms of documenting sensitivity type in the allergy list there is the option to map to 609433001 |Hypersensitivity disposition which in SNOMED CT represents both immune-mediated and non-immune mediated hypersensitivity or to map to 609328004 |Allergic disposition (finding)|which is common clinical parlance for what many clinicians would mean by allergic or non-allergic hypersensitivity. In addition, as recommended in the FHIR documentation if one is unclear as to whether a condition represents hypersensitivity or intolerance, one can just omit the type element from the resource."),v(),_(17,"p"),k(18,"If SNOMED CT concepts are used to document the causative agent, it is preferable to use concepts from the Substance rather than Pharmaceutical/biologic product hierarchy since this will facilitate the downstream use of data, e.g., clinical decision support, data exchange."),v(),_(19,"p"),k(20,"Almost all allergy and intolerance finding concepts are modeled using substance concepts in SNOMED CT. The SNOMED CT substance hierarchy has grouper concepts that are based on structure (e.g., Macrolide) or disposition (e.g., substance with histamine receptor antagonist mechanism of action). Clinical decision support systems can utilize these grouper concepts to access information at the desired level of granularity. Clinicians can also record a class of substance instead of a specific drug or substance (e.g., angiotensin II receptor antagonist). Note that substance grouper concepts based on therapeutic role (e.g., anticonvulsant) is not recommended for use because they are currently under review and may be retired in future."),v(),_(21,"p"),k(22,"There are situations in which it is difficult to determine the specific substance as a true cause or most likely cause of a condition. This is the case for allergy/intolerance to a product containing multiple substances."),v(),_(23,"p"),k(24,"Records of allergy to multiple substances or to multi-ingredient products should be recorded at the product level and updated when more specific information becomes available (e.g., positive sensitivity test to one specific ingredient of the mix)."),v(),_(25,"p"),k(26,"For more information check the "),_(27,"a",6),k(28,"Implementation Guide"),v(),k(29," developed by the SNOMED International Allergy Clinical Reference Group."),v()()()(),_(30,"button",7),z("click",function(){return r.clear()}),k(31,"Clear"),v(),_(32,"div",8)(33,"div",9)(34,"app-autocomplete-binding",10),z("selectionChange",function(a){return r.codeSelected(a)}),v()(),_(35,"button",3)(36,"mat-icon"),k(37,"info"),v()(),_(38,"mat-menu",null,11)(40,"span",12),z("click",function(a){return a.stopPropagation()}),_(41,"p"),k(42,"Terminology binding:"),v(),_(43,"pre"),k(44),v()()(),_(45,"mat-slide-toggle",13),z("ngModelChange",function(a){return r.recordPropensity=a})("click",function(){return r.propensityRecordChanged()}),k(46," Propensity based model "),v()(),_(47,"mat-form-field",14)(48,"mat-label"),k(49,"Allergy Intolerance Type"),v(),_(50,"mat-select",15),z("ngModelChange",function(a){return r.selectedIntoleranceType=a}),P(51,ate,2,2,"mat-option",16),v()(),_(52,"div",8)(53,"mat-form-field",2)(54,"mat-label"),k(55,"Clinical Status"),v(),_(56,"mat-select",15),z("ngModelChange",function(a){return r.selectedClinicalStatus=a}),P(57,ste,2,2,"mat-option",16),v()(),_(58,"mat-form-field",2)(59,"mat-label"),k(60,"Verification Status"),v(),_(61,"mat-select",15),z("ngModelChange",function(a){return r.selectedVerificationStatus=a}),P(62,cte,2,2,"mat-option",16),v()()(),_(63,"div",8)(64,"div",17),P(65,lte,1,2,"app-autocomplete-binding",18),P(66,dte,1,2,"app-autocomplete-binding",18),v(),_(67,"button",3)(68,"mat-icon"),k(69,"info"),v()(),_(70,"mat-menu",null,4)(72,"span",12),z("click",function(a){return a.stopPropagation()}),_(73,"p"),k(74,"Terminology binding:"),v(),P(75,ute,2,1,"pre",19),P(76,hte,2,1,"pre",19),v()()(),_(77,"div",8)(78,"mat-form-field",2)(79,"mat-label"),k(80,"Substance Category"),v(),_(81,"mat-select",20),P(82,fte,2,2,"mat-option",16),v()(),_(83,"mat-form-field",2)(84,"mat-label"),k(85,"Allergy Criticality"),v(),_(86,"mat-select",15),z("ngModelChange",function(a){return r.selectedCriticality=a}),P(87,mte,2,2,"mat-option",16),v()()(),_(88,"app-allergies-allergy-list-reaction",21),z("ngModelChange",function(a){return r.selectedReactions=a})("ngModelChange",function(a){return r.onReactionsChange(a)})("newManifestation",function(a){return r.newProblem.emit(a)}),v(),_(89,"button",22),z("click",function(){return r.addToProblemsList()}),k(90,"Save"),v()(),_(91,"div",2)(92,"h4"),k(93,"AllergyIntolerance HL7 FHIR Resource ("),_(94,"a",23),k(95,"link"),v(),k(96,")"),v(),_(97,"div",24)(98,"div",25)(99,"button",26),z("click",function(){return r.saveFhirResource()}),ge(100,"mat-icon",27),v(),_(101,"button",28),z("click",function(){return r.copyToClipboard(r.outputAllergyStr)}),ge(102,"mat-icon",29),v()(),_(103,"textarea",30),k(104," "),v()()()()()),2&n){const o=wt(9),a=wt(39);w(5),S("matMenuTriggerFor",o),w(5),S("disableRipple",!0),w(24),S("binding",r.codeBinding)("term",r.selectedCodeTerm),w(1),S("matMenuTriggerFor",a),w(5),S("disableRipple",!0),w(4),Ge(r.codeBinding.ecl),w(1),S("ngModel",r.recordPropensity),w(5),S("ngModel",r.selectedIntoleranceType),w(1),S("ngForOf",r.intoleranceTypeOptions),w(5),S("ngModel",r.selectedClinicalStatus),w(1),S("ngForOf",r.clinicalStatusOptions),w(4),S("ngModel",r.selectedVerificationStatus),w(1),S("ngForOf",r.verificationStatusOptions),w(3),S("ngIf",!r.recordPropensity),w(1),S("ngIf",r.recordPropensity),w(1),S("matMenuTriggerFor",o),w(5),S("disableRipple",!0),w(3),S("ngIf",!r.recordPropensity),w(1),S("ngIf",r.recordPropensity),w(5),S("formControl",r.selectedIntoleranceCategoriesControl)("multiple",!0),w(1),S("ngForOf",r.intoleranceCategoryOptions),w(4),S("ngModel",r.selectedCriticality),w(1),S("ngForOf",r.criticalityOptions),w(1),S("ngModel",r.selectedReactions),w(15),S("options",Go(29,pte))("lang","json")("innerHTML",r.outputAllergyStr,Mc)}},dependencies:[kr,Yi,D0,Dr,Zo,oo,Qc,ka,Yc,Ea,Do,Qs,So,_0,m1,_f,ta,cu,_O,pf,ote],styles:["#main-card[_ngcontent-%COMP%]{padding:10px;width:100%}.row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:-5px;align-items:flex-start}.row-centered[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:-5px;align-items:center}.column[_ngcontent-%COMP%]{position:relative;flex:1;margin:5px;box-sizing:border-box}.form-field[_ngcontent-%COMP%]{width:100%}.smallest-form-field[_ngcontent-%COMP%]{width:60%;margin:5px}.small-form-field[_ngcontent-%COMP%]{width:90%;margin:5px}.mat-form-field[_ngcontent-%COMP%]{font-size:14px;padding:4px 8px;height:36px}.mat-mdc-form-field-appearance-outline[_ngcontent-%COMP%] .mat-mdc-form-field-infix[_ngcontent-%COMP%]{padding-top:0}.reaction[_ngcontent-%COMP%]{border-radius:10px;background-color:#a9bee9;padding:10px}#output[_ngcontent-%COMP%]{border-radius:10px;background-color:#282c34;padding:10px;position:relative}pre[_ngcontent-%COMP%] > code[_ngcontent-%COMP%]{width:45%;white-space:pre-wrap;word-wrap:break-word}#save[_ngcontent-%COMP%]{position:absolute;right:0;top:0;color:#e88c15}#clear[_ngcontent-%COMP%]{position:absolute;right:20px;top:20px}.long-tooltip[_ngcontent-%COMP%]{padding-left:3rem;padding-right:3rem;font-weight:lighter;font-size:.9rem}"]})}return t})(),vO=(()=>{class t{constructor(e){this._snackBar=e}addProblem(e){var n=this;return fi(function*(){n.allergiesProblemListComponent.addProblem(e),n._snackBar.openFromComponent(Zi,{duration:1e3,data:"Problem list updated",panelClass:["green-snackbar"]})})()}static#e=this.\u0275fac=function(n){return new(n||t)(x(Qd))};static#t=this.\u0275cmp=Le({type:t,selectors:[["app-allergies"]],viewQuery:function(n,r){if(1&n&&rt(iO,5),2&n){let o;Se(o=De())&&(r.allergiesProblemListComponent=o.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(n,r){if(1&n&&(_(0,"div",0)(1,"h3"),k(2,"Allergy, Hypersensitivity and Intolerance "),_(3,"button",1)(4,"mat-icon"),k(5,"info"),v()(),_(6,"mat-menu",null,2)(8,"span",3),z("click",function(a){return a.stopPropagation()}),_(9,"h4"),k(10,"Allergy, Hypersensitivity and Intolerance Implementation Demo"),v(),_(11,"p"),k(12,"This is a demonstration of different implementation approaches for recording Allergies, Hypersensitivity and Intolerance."),v(),_(13,"p")(14,"b"),k(15,"Allergy list:"),v(),k(16," allergy or intolerance can be recorded in a specific section of the EHR, which records the causative agent together with other details, including type (allergy, non-allergic hypersensitivity, intolerance), certainty, manifestation, and severity. This corresponds to the FHIR substance based AllergyIntolerance resource data model."),v(),_(17,"p")(18,"b"),k(19,"Problem list:"),v(),k(20," Allergy or intolerance can also be recorded in the EHR as a problem. The problem list is normally restricted to SNOMED CT concepts from three hierarchies \u2013 Clinical finding, Event and Finding with explicit context. This corresponds either to the FHIR finding based AllergyIntolerance resource data model or the FHIR Condition resource."),v(),_(21,"p"),k(22,"For more information check the "),_(23,"a",4),k(24,"Implementation Guide"),v(),k(25," developed by the SNOMED International Allergy Clinical Reference Group."),v()()()(),_(26,"mat-tab-group",5)(27,"mat-tab",6)(28,"app-allergies-allergy-list",7),z("newProblem",function(a){return r.addProblem(a)}),v()(),_(29,"mat-tab",8),ge(30,"app-allergies-problem-list"),v()()()),2&n){const o=wt(7);w(3),S("matMenuTriggerFor",o),w(5),S("disableRipple",!0)}},dependencies:[Zo,oo,Qc,ka,Yc,S0,gf,iO,gte],styles:["#main-panel[_ngcontent-%COMP%]{padding:10px}h3[_ngcontent-%COMP%]{margin-top:0}#guideLink[_ngcontent-%COMP%]{font-size:smaller}.long-tooltip[_ngcontent-%COMP%]{padding-left:3rem;padding-right:3rem;font-weight:lighter;font-size:.9rem}"]})}return t})();function G1(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 lu(t,i){const e=i?"":"none";G1(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 xO(t,i,e){G1(t.style,{position:i?"":"fixed",top:i?"":"0",opacity:i?"":"0",left:i?"":"-999em"},e)}function E0(t,i){return i&&"none"!=i?t+" "+i:t}function yO(t){const i=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*i}function q1(t,i){return t.getPropertyValue(i).split(",").map(n=>n.trim())}function X1(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 Q1(t,i,e){const{top:n,bottom:r,left:o,right:a}=t;return e>=n&&e<=r&&i>=o&&i<=a}function bf(t,i,e){t.top+=i,t.bottom=t.top+t.height,t.left+=e,t.right=t.left+t.width}function wO(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:X1(e)})})}handleScroll(i){const e=no(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)&&bf(l.clientRect,s,c)}),r.top=o,r.left=a,{top:s,left:c}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function kO(t){const i=t.cloneNode(!0),e=i.querySelectorAll("[id]"),n=t.nodeName.toLowerCase();i.removeAttribute("id");for(let r=0;rlu(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 ke,this._pointerMoveSubscription=kt.EMPTY,this._pointerUpSubscription=kt.EMPTY,this._scrollSubscription=kt.EMPTY,this._resizeSubscription=kt.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 ke,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=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 CO(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=>nn(n)),this._handles.forEach(n=>lu(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=nn(i);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,T0),e.addEventListener("touchstart",this._pointerDown,TO),e.addEventListener("dragstart",this._nativeDragStart,T0)}),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?nn(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),lu(i,!0))}enableHandle(i){this._disabledHandles.has(i)&&(this._disabledHandles.delete(i),lu(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){vf(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(),xO(n,!1,Y1),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=vf(e),o=!r&&0!==e.button,a=this._rootElement,s=no(e),c=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),l=r?Og(e):Rg(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=X1(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){xO(this._rootElement,!0,Y1),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=AO(a,this._document),this._previewRef=a,i.matchSize?IO(r,o):r.style.transform=M0(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=kO(this._rootElement),IO(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return G1(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},Y1),lu(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 bte(t){const i=getComputedStyle(t),e=q1(i,"transition-property"),n=e.find(s=>"transform"===s||"all"===s);if(!n)return 0;const r=e.indexOf(n),o=q1(i,"transition-duration"),a=q1(i,"transition-delay");return yO(o[r])+yO(a[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(n=>{const r=a=>{(!a||no(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=AO(this._placeholderRef,this._document)):n=kO(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=vf(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=vf(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=MO(n,s.left+o,s.right-(c-o)),r=MO(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,lu(this._rootElement,i))}_removeRootElementListeners(i){i.removeEventListener("mousedown",this._pointerDown,T0),i.removeEventListener("touchstart",this._pointerDown,TO),i.removeEventListener("dragstart",this._nativeDragStart,T0)}_applyRootElementTransform(i,e){const n=M0(i,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=E0(n,this._initialTransform)}_applyPreviewTransform(i,e){const n=this._previewTemplate?.template?void 0:this._initialTransform,r=M0(i,e);this._preview.style.transform=E0(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:vf(i)?e.touch:e?e.mouse:0}_updateOnScroll(i){const e=this._parentPositions.handleScroll(i);if(e){const n=no(i);this._boundaryRect&&n!==this._boundaryElement&&n.contains(this._boundaryElement)&&bf(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=Ny(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 nn(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 M0(t,i){return`translate3d(${Math.round(t)}px, ${Math.round(i)}px, 0)`}function MO(t,i,e){return Math.max(i,Math.min(e,t))}function vf(t){return"t"===t.type[0]}function AO(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 IO(t,i){t.style.width=`${i.width}px`,t.style.height=`${i.height}px`,t.style.transform=M0(i.left,i.top)}function K1(t,i,e){const n=xf(i,t.length-1),r=xf(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 K1(o,c,a),o.forEach((p,b)=>{if(g[b]===p)return;const C=p.drag===i,y=C?f:m,M=C?i.getPlaceholderElement():p.drag.getRootElement();p.offset+=y,s?(M.style.transform=E0(`translate3d(${Math.round(p.offset)}px, 0, 0)`,p.initialTransform),bf(p.clientRect,0,y)):(M.style.transform=E0(`translate3d(0, ${Math.round(p.offset)}px, 0)`,p.initialTransform),bf(p.clientRect,y,0))}),this._previousSwap.overlaps=Q1(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 nn(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})=>{bf(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:X1(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 ke,this.entered=new ke,this.exited=new ke,this.dropped=new ke,this.sorted=new ke,this.receivingStarted=new ke,this.receivingStopped=new ke,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=kt.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new ke,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function _te(t=0,i=$h){return t<0&&(t=0),zg(t,t,i)}(0,uF).pipe(pt(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=nn(i),this._document=n,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new CO(n),this._sortStrategy=new wte(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=nn(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||!wO(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||wO(a.clientRect,.05,i,e)&&([r,o]=function kte(t,i,e,n){const r=OO(i,n),o=PO(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=OO(c,e),o=PO(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=nn(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=nn(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(i).clientRect}_reset(){this._isDragging=!1;const i=nn(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&&Q1(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||!Q1(this._clientRect,e,n)||!this.enterPredicate(i,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,n);if(!r)return!1;const o=nn(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=Ny(nn(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 OO(t,i){const{top:e,bottom:n,height:r}=t,o=r*RO;return i>=e-o&&i<=e+o?1:i>=n-o&&i<=n+o?2:0}function PO(t,i){const{left:e,right:n,width:r}=t,o=r*RO;return i>=e-o&&i<=e+o?1:i>=n-o&&i<=n+o?2:0}const A0=Ko({passive:!1,capture:!0});let Ste=(()=>{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 ke,this.pointerUp=new ke,this.scroll=new ke,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,A0)})}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,A0)}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:A0}),r||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:A0}),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 ai(r=>this._ngZone.runOutsideAngular(()=>{const a=s=>{this._activeDragInstances.length&&r.next(s)};return e.addEventListener("scroll",a,!0),()=>{e.removeEventListener("scroll",a,!0)}}))),Pi(...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)(X(ze),X(ot))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Dte={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let Z1=(()=>{class t{constructor(e,n,r,o){this._document=e,this._ngZone=n,this._viewportRuler=r,this._dragDropRegistry=o}createDrag(e,n=Dte){return new yte(e,n,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new Cte(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return t.\u0275fac=function(e){return new(e||t)(X(ot),X(ze),X(ea),X(Ste))},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const J1=new oe("CDK_DRAG_PARENT"),ew=new oe("CdkDropListGroup"),LO=new oe("CDK_DRAG_CONFIG");let Tte=0;const NO=new oe("CdkDropList");let tw=(()=>{class t{get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=He(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 ke,this.connectedTo=[],this.id="cdk-drop-list-"+Tte++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new Ce,this.entered=new Ce,this.exited=new Ce,this.sorted=new Ce,this._unsortedItems=new Set,this._dropListRef=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(xn(this._dir.value),pt(this._destroyed)).subscribe(n=>e.withDirection(n)),e.beforeStarted.subscribe(()=>{const n=jh(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=He(this.sortingDisabled),e.autoScrollDisabled=He(this.autoScrollDisabled),e.autoScrollStep=On(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()}),Pi(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)(x(Ie),x(Z1),x(Ut),x(Wc),x(un,8),x(ew,12),x(LO,8))},t.\u0275dir=Q({type:t,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,n){2&e&&(st("id",n.id),Ye("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:ew,useValue:void 0},{provide:NO,useExisting:t}])]}),t})();const iw=new oe("CdkDragHandle");let BO=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=He(e),this._stateChanges.next(this)}constructor(e,n){this.element=e,this._stateChanges=new ke,this._disabled=!1,this._parentDrag=n}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(x(Ie),x(J1,12))},t.\u0275dir=Q({type:t,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},standalone:!0,features:[We([{provide:iw,useExisting:t}])]}),t})();const VO=new oe("CdkDragPlaceholder"),HO=new oe("CdkDragPreview");let nw=(()=>{class t{get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=He(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 ke,this.started=new Ce,this.released=new Ce,this.ended=new Ce,this.entered=new Ce,this.exited=new Ce,this.dropped=new Ce,this.moved=new ai(f=>{const m=this._dragRef.moved.pipe(Ze(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(si(1),pt(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):nn(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:On(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(si(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(xn(this._handles),$i(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)}),vn(e=>Pi(...e.map(n=>n._stateChanges.pipe(xn(n))))),pt(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)(x(Ie),x(NO,12),x(ot),x(ze),x(Oi),x(LO,8),x(un,8),x(Z1),x(Ut),x(iw,10),x(J1,12))},t.\u0275dir=Q({type:t,selectors:[["","cdkDrag",""]],contentQueries:function(e,n,r){if(1&e&&(It(r,HO,5),It(r,VO,5),It(r,iw,5)),2&e){let o;Se(o=De())&&(n._previewTemplate=o.first),Se(o=De())&&(n._placeholderTemplate=o.first),Se(o=De())&&(n._handles=o)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,n){2&e&&Ye("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:J1,useExisting:t}]),Ai]}),t})(),Fte=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({providers:[Z1],imports:[hs]}),t})();function Rte(t,i){}class I0{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 UO=(()=>{class t extends Vg{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=Sg(),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=Sg();return e===n||e.contains(n)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Sg())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return t.\u0275fac=function(e){return new(e||t)(x(Ie),x(Fg),x(ot,8),x(I0),x(Wh),x(ze),x(Jh),x(ro))},t.\u0275cmp=Le({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(e,n){if(1&e&&rt(us,7),2&e){let r;Se(r=De())&&(n._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,n){2&e&&st("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&&P(0,Rte,0,0,"ng-template",0)},dependencies:[us],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),t})();class rw{constructor(i,e){this.overlayRef=i,this.config=e,this.closed=new ke,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&&!or(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 zO=new oe("DialogScrollStrategy"),Ote=new oe("DialogData"),Pte=new oe("DefaultDialogConfig"),Nte={provide:zO,deps:[ar],useFactory:function Lte(t){return()=>t.scrollStrategies.block()}};let Bte=0,$O=(()=>{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 ke,this._afterOpenedAtThisLevel=new ke,this._ariaHiddenElements=new Map,this.afterAllClosed=Ad(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(xn(void 0))),this._scrollStrategy=s}open(e,n){(n={...this._defaultOptions||new I0,...n}).id=n.id||"cdk-dialog-"+Bte++,n.id&&this.getDialogById(n.id);const o=this._getOverlayConfig(n),a=this._overlay.create(o),s=new rw(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(){ow(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){ow(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),ow(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const n=new Xd({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:I0,useValue:r},{provide:rw,useValue:n},{provide:Jh,useValue:e}];let s;r.container?"function"==typeof r.container?s=r.container:(s=r.container.type,a.push(...r.container.providers(r))):s=UO;const c=new qd(s,r.viewContainerRef,an.create({parent:o||this._injector,providers:a}),r.componentFactoryResolver);return e.attach(c).instance}_attachDialogContent(e,n,r,o){if(e instanceof yi){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 ds(e,null,s,a))}else{const a=this._createInjector(o,n,r,this._injector),s=r.attachComponentPortal(new qd(e,o.viewContainerRef,a,o.componentFactoryResolver));n.componentInstance=s.instance}}_createInjector(e,n,r,o){const a=e.injector||e.viewContainerRef?.injector,s=[{provide:Ote,useValue:e.data},{provide:rw,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(un,null,{optional:!0}))&&s.push({provide:un,useValue:{value:e.direction,change:qe()}}),an.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)(X(ar),X(an),X(Pte,8),X(t,12),X($g),X(zO))},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})();function ow(t,i){let e=t.length;for(;e--;)i(t[e])}let Vte=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({providers:[$O,Nte],imports:[qc,jc,Yy,jc]}),t})();function Hte(t,i){}class F0{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 aw="mdc-dialog--open",jO="mdc-dialog--opening",WO="mdc-dialog--closing";let $te=(()=>{class t extends UO{constructor(e,n,r,o,a,s,c,l){super(e,n,r,o,a,s,c,l),this._animationStateChanged=new Ce}_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)(x(Ie),x(Fg),x(ot,8),x(F0),x(Wh),x(ze),x(Jh),x(ro))},t.\u0275cmp=Le({type:t,selectors:[["ng-component"]],features:[pe],decls:0,vars:0,template:function(e,n){},encapsulation:2}),t})();const GO="--mat-dialog-transition-duration";function qO(t){return null==t?null:"number"==typeof t?t:t.endsWith("ms")?On(t.substring(0,t.length-2)):t.endsWith("s")?1e3*On(t.substring(0,t.length-1)):"0"===t?0:null}let jte=(()=>{class t extends $te{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?qO(this._config.enterAnimationDuration)??150:0,this._closeAnimationDuration=this._animationsEnabled?qO(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(GO,`${this._openAnimationDuration}ms`),this._hostElement.classList.add(jO),this._hostElement.classList.add(aw),this._waitForAnimationToComplete(this._openAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(aw),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._closeAnimationDuration}),this._hostElement.classList.remove(aw),this._animationsEnabled?(this._hostElement.style.setProperty(GO,`${this._openAnimationDuration}ms`),this._hostElement.classList.add(WO),this._waitForAnimationToComplete(this._closeAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(jO),this._hostElement.classList.remove(WO)}_waitForAnimationToComplete(e,n){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(n,e)}}return t.\u0275fac=function(e){return new(e||t)(x(Ie),x(Fg),x(ot,8),x(F0),x(Wh),x(ze),x(Jh),x(Ii,8),x(ro))},t.\u0275cmp=Le({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(e,n){2&e&&(xa("id",n._config.id),st("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),Ye("_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&&(_(0,"div",0)(1,"div",1),P(2,Hte,0,0,"ng-template",2),v()())},dependencies:[us],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 Js{constructor(i,e,n){this._ref=i,this._containerInstance=n,this._afterOpened=new ke,this._beforeClosed=new ke,this._state=0,this.disableClose=e.disableClose,this.id=i.id,n._animationStateChanged.pipe(Kt(r=>"opened"===r.state),si(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(Kt(r=>"closed"===r.state),si(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),i.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Pi(this.backdropClick(),this.keydownEvents().pipe(Kt(r=>27===r.keyCode&&!this.disableClose&&!or(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),XO(this,"keydown"===r.type?"keyboard":"mouse"))})}close(i){this._result=i,this._containerInstance._animationStateChanged.pipe(Kt(e=>"closing"===e.state),si(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 XO(t,i,e){return t._closeInteractionType=i,t.close(e)}const R0=new oe("MatMdcDialogData"),Wte=new oe("mat-mdc-dialog-default-options"),QO=new oe("mat-mdc-dialog-scroll-strategy"),qte={provide:QO,deps:[ar],useFactory:function Gte(t){return()=>t.scrollStrategies.block()}};let Xte=0,Qte=(()=>{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 ke,this._afterOpenedAtThisLevel=new ke,this._idPrefix="mat-dialog-",this.dialogConfigClass=F0,this.afterAllClosed=Ad(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(xn(void 0))),this._scrollStrategy=s,this._dialog=n.get($O)}open(e,n){let r;(n={...this._defaultOptions||new F0,...n}).id=n.id||`${this._idPrefix}${Xte++}`,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:I0,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){pa()},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})(),du=(()=>{class t extends Qte{constructor(e,n,r,o,a,s,c,l){super(e,n,o,s,c,a,Js,jte,R0,l),this._idPrefix="mat-mdc-dialog-"}}return t.\u0275fac=function(e){return new(e||t)(X(ar),X(an),X(fh,8),X(Wte,8),X(QO),X(t,12),X($g),X(Ii,8))},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})(),Yte=0,yf=(()=>{class t{constructor(e,n,r){this.dialogRef=e,this._elementRef=n,this._dialog=r,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=KO(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){const n=e._matDialogClose||e._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(e){XO(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}return t.\u0275fac=function(e){return new(e||t)(x(Js,8),x(Ie),x(du))},t.\u0275dir=Q({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,n){1&e&&z("click",function(o){return n._onButtonClick(o)}),2&e&&st("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:[Ai]}),t})(),YO=(()=>{class t{constructor(e,n,r){this._dialogRef=e,this._elementRef=n,this._dialog=r,this.id="mat-mdc-dialog-title-"+Yte++}ngOnInit(){this._dialogRef||(this._dialogRef=KO(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)(x(Js,8),x(Ie),x(du))},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&&xa("id",n.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),O0=(()=>{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})(),P0=(()=>{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&&Ye("mat-mdc-dialog-actions-align-center","center"===n.align)("mat-mdc-dialog-actions-align-end","end"===n.align)},inputs:{align:"align"}}),t})();function KO(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 Kte=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({providers:[du,qte],imports:[Vte,qc,jc,yt,yt]}),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]}static#e=this.\u0275fac=function(n){return new(n||t)(x(Js),x(R0))};static#t=this.\u0275cmp=Le({type:t,selectors:[["app-ecl-builder-dialog"]],decls:7,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"full-height"],["apiurl","https://snowstorm.ihtsdotools.org/snowstorm/snomed-ct","branch","MAIN/2023-01-31","v-on:eclOutput","eclChange",3,"eclstring","eclOutput"],["mat-dialog-actions","",1,"actions"],["mat-flat-button","","color","accent","cdkFocusInitial","",3,"mat-dialog-close"]],template:function(n,r){1&n&&(_(0,"h1",0),k(1,"ECL Builder"),v(),_(2,"div",1)(3,"snomed-ecl-builder",2),z("eclOutput",function(a){return r.eclChanged(a)}),v()(),_(4,"div",3)(5,"button",4),k(6,"Ok"),v()()),2&n&&(w(3),_d("eclstring",r.localEcl),w(2),S("mat-dialog-close",r.data))},dependencies:[Dr,yf,YO,O0,P0],styles:[".full-height[_ngcontent-%COMP%]{height:78%}.actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"]})}return t})();const JO=new oe("CdkAccordion");let Jte=0,eie=(()=>{class t{get expanded(){return this._expanded}set expanded(e){e=He(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=He(e)}constructor(e,n,r){this.accordion=e,this._changeDetectorRef=n,this._expansionDispatcher=r,this._openCloseAllSubscription=kt.EMPTY,this.closed=new Ce,this.opened=new Ce,this.destroyed=new Ce,this.expandedChange=new Ce,this.id="cdk-accordion-child-"+Jte++,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)(x(JO,12),x(Ut),x(Ty))},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:JO,useValue:void 0}])]}),t})(),tie=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({}),t})();const iie=["body"];function nie(t,i){}const rie=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],oie=["mat-expansion-panel-header","*","mat-action-row"];function aie(t,i){1&t&&ge(0,"span",2),2&t&&S("@indicatorRotate",V()._getExpandedState())}const sie=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],cie=["mat-panel-title","mat-panel-description","*"],eP=new oe("MAT_ACCORDION"),tP="225ms cubic-bezier(0.4,0.0,0.2,1)",iP={indicatorRotate:zi("indicatorRotate",[Zt("collapsed, void",Xe({transform:"rotate(0deg)"})),Zt("expanded",Xe({transform:"rotate(180deg)"})),Wt("expanded <=> collapsed, void => collapsed",jt(tP))]),bodyExpansion:zi("bodyExpansion",[Zt("collapsed, void",Xe({height:"0px",visibility:"hidden"})),Zt("expanded",Xe({height:"*",visibility:"visible"})),Wt("expanded <=> collapsed, void => collapsed",jt(tP))])},nP=new oe("MAT_EXPANSION_PANEL");let lie=(()=>{class t{constructor(e,n){this._template=e,this._expansionPanel=n}}return t.\u0275fac=function(e){return new(e||t)(x(yi),x(nP,8))},t.\u0275dir=Q({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),die=0;const rP=new oe("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let oP=(()=>{class t extends eie{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=He(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 Ce,this.afterCollapse=new Ce,this._inputChanges=new ke,this._headerId="mat-expansion-panel-header-"+die++,this._bodyAnimationDone=new ke,this.accordion=e,this._document=a,this._bodyAnimationDone.pipe(Ws((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(xn(null),Kt(()=>this.expanded&&!this._portal),si(1)).subscribe(()=>{this._portal=new ds(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)(x(eP,12),x(Ut),x(Ty),x(Oi),x(ot),x(Ii,8),x(rP,8))},t.\u0275cmp=Le({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(e,n,r){if(1&e&&It(r,lie,5),2&e){let o;Se(o=De())&&(n._lazyContent=o.first)}},viewQuery:function(e,n){if(1&e&&rt(iie,5),2&e){let r;Se(r=De())&&(n._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,n){2&e&&Ye("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:eP,useValue:void 0},{provide:nP,useExisting:t}]),pe,Ai],ngContentSelectors:oie,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&&(hi(rie),Je(0),_(1,"div",0,1),z("@bodyExpansion.done",function(o){return n._bodyAnimationDone.next(o)}),_(3,"div",2),Je(4,1),P(5,nie,0,0,"ng-template",3),v(),Je(6,2),v()),2&e&&(w(1),S("@bodyExpansion",n._getExpandedState())("id",n.id),st("aria-labelledby",n._headerId),w(4),S("cdkPortalOutlet",n._portal))},dependencies:[us],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:[iP.bodyExpansion]},changeDetection:0}),t})();class uie{}const hie=qh(uie);let fie=(()=>{class t extends hie{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=kt.EMPTY;const l=e.accordion?e.accordion._stateChanges.pipe(Kt(d=>!(!d.hideToggle&&!d.togglePosition))):qr;this.tabIndex=parseInt(c||"")||0,this._parentChangeSubscription=Pi(e.opened,e.closed,l,e._inputChanges.pipe(Kt(d=>!!(d.hideToggle||d.disabled||d.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(Kt(()=>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:or(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)(x(oP,1),x(Ie),x(ro),x(Ut),x(rP,8),x(Ii,8),_o("tabindex"))},t.\u0275cmp=Le({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&&z("click",function(){return n._toggle()})("keydown",function(o){return n._keydown(o)}),2&e&&(st("id",n.panel._headerId)("tabindex",n.tabIndex)("aria-controls",n._getPanelId())("aria-expanded",n._isExpanded())("aria-disabled",n.panel.disabled),en("height",n._getHeaderHeight()),Ye("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:cie,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,n){1&e&&(hi(sie),_(0,"span",0),Je(1),Je(2,1),Je(3,2),v(),P(4,aie,1,1,"span",1)),2&e&&(Ye("mat-content-hide-toggle",!n._showToggle()),w(4),S("ngIf",n._showToggle()))},dependencies:[Yi],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:[iP.indicatorRotate]},changeDetection:0}),t})(),mie=(()=>{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})(),pie=(()=>{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})(),gie=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[Xn,yt,tie,jc]}),t})();function _ie(t,i){if(1&t){const e=Ne();_(0,"mat-option",2),z("click",function(){return _e(e),be(V().optionClicked())}),k(1),v()}if(2&t){const e=i.$implicit;S("value",e),w(1),it(" ",e.display," ")}}let bie=(()=>{class t{constructor(e){this.terminologyService=e,this.selectionChange=new Ce}ngOnInit(){this.terminologyService.expandValueSet(this.binding.ecl,"").subscribe(e=>this.options=e.expansion.contains)}optionClicked(){this.selectionChange.emit(this.selectedOptions)}static#e=this.\u0275fac=function(n){return new(n||t)(x(Yn))};static#t=this.\u0275cmp=Le({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(n,r){1&n&&(_(0,"mat-form-field")(1,"mat-label"),k(2),v(),_(3,"mat-select",0),z("ngModelChange",function(a){return r.selectedOptions=a}),P(4,_ie,2,2,"mat-option",1),v(),_(5,"mat-hint"),k(6),v()()),2&n&&(w(2),Ge(r.binding.title),w(1),S("multiple","Select (Multiple)"==r.binding.type)("ngModel",r.selectedOptions),w(1),S("ngForOf",r.options),w(2),Ge(r.binding.note))},dependencies:[kr,Ea,Do,al,Qs,So,_f,ta],styles:[".chip[_ngcontent-%COMP%]{display:inline-flex;flex-direction:row;background-color:#f4a460;border:none;cursor:default;height:36px;outline:none;padding:0;font-size:14px;color:#fff;font-family:Open Sans,sans-serif;white-space:nowrap;align-items:center;border-radius:16px;vertical-align:middle;text-decoration:none;justify-content:center;margin-right:20px}.chip-content[_ngcontent-%COMP%]{cursor:inherit;display:flex;align-items:center;-webkit-user-select:none;user-select:none;white-space:nowrap;padding-left:12px;padding-right:12px}mat-form-field[_ngcontent-%COMP%]{width:100%}.code[_ngcontent-%COMP%]{font-size:small;font-weight:lighter;margin-right:15px}mat-hint[_ngcontent-%COMP%]{font-size:12px}"]})}return t})();const vie=["input"],xie=["*"];let aP=0;class sP{constructor(i,e){this.source=i,this.value=e}}const yie={provide:Kn,useExisting:Qt(()=>sw),multi:!0},cP=new oe("MatRadioGroup"),wie=new oe("mat-radio-default-options",{providedIn:"root",factory:function Cie(){return{color:"accent"}}});let kie=(()=>{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=He(e),this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=He(e),this._markRadiosForCheck()}constructor(e){this._changeDetector=e,this._value=null,this._name="mat-radio-group-"+aP++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new Ce}ngAfterContentInit(){this._isInitialized=!0}_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 sP(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)(x(Ut))},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 Sie{constructor(i){this._elementRef=i}}const Die=qs(qh(Sie));let Eie=(()=>{class t extends Die{get checked(){return this._checked}set checked(e){const n=He(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(He(e))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=He(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-"+ ++aP,this.id=this._uniqueId,this.change=new Ce,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._noopAnimations="NoopAnimations"===s,l&&(this.tabIndex=On(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 sP(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){pa()},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&rt(vie,5),2&e){let r;Se(r=De())&&(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})(),sw=(()=>{class t extends kie{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Ct(t)))(n||t)}}(),t.\u0275dir=Q({type:t,selectors:[["mat-radio-group"]],contentQueries:function(e,n,r){if(1&e&&It(r,cw,5),2&e){let o;Se(o=De())&&(n._radios=o)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],exportAs:["matRadioGroup"],features:[We([yie,{provide:cP,useExisting:t}]),pe]}),t})(),cw=(()=>{class t extends Eie{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)(x(cP,8),x(Ie),x(Ut),x(ro),x(Ty),x(Ii,8),x(wie,8),_o("tabindex"))},t.\u0275cmp=Le({type:t,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function(e,n){1&e&&z("focus",function(){return n._inputElement.nativeElement.focus()}),2&e&&(st("id",n.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),Ye("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:xie,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&&(hi(),_(0,"div",0,1)(2,"div",2)(3,"div",3),z("click",function(o){return n._onTouchTargetClick(o)}),v(),_(4,"input",4,5),z("change",function(o){return n._onInputInteraction(o)}),v(),_(6,"div",6),ge(7,"div",7)(8,"div",8),v(),_(9,"div",9),ge(10,"div",10),v()(),_(11,"label",11),Je(12),v()()),2&e){const r=wt(1);Ye("mdc-form-field--align-end","before"==n.labelPosition),w(2),Ye("mdc-radio--disabled",n.disabled),w(2),S("id",n.inputId)("checked",n.checked)("disabled",n.disabled)("required",n.required),st("name",n.name)("value",n.value)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledby)("aria-describedby",n.ariaDescribedby),w(5),S("matRippleTrigger",r)("matRippleDisabled",n._isRippleDisabled())("matRippleCentered",!0),w(2),S("for",n.inputId)}},dependencies:[ko],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})(),Tie=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[yt,Xn,Xs,yt]}),t})();function Mie(t,i){if(1&t){const e=Ne();_(0,"mat-radio-button",3),z("click",function(){const o=_e(e).$implicit;return be(V().optionSelected(o))}),k(1),v()}if(2&t){const e=i.$implicit;S("value",e.code),w(1),it(" ",e.display," ")}}let Aie=(()=>{class t{constructor(e){this.terminologyService=e,this.selectionChange=new Ce}ngOnInit(){this.terminologyService.expandValueSet(this.binding.ecl,"").subscribe(e=>this.options=e.expansion.contains)}optionSelected(e){this.selectionChange.emit(e)}static#e=this.\u0275fac=function(n){return new(n||t)(x(Yn))};static#t=this.\u0275cmp=Le({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(n,r){1&n&&(_(0,"div"),k(1),v(),_(2,"mat-radio-group",0),P(3,Mie,2,2,"mat-radio-button",1),v(),_(4,"div",2),k(5),v()),2&n&&(w(1),Ge(r.binding.title),w(2),S("ngForOf",r.options),w(2),Ge(r.binding.note))},dependencies:[kr,sw,cw],styles:["#hint[_ngcontent-%COMP%]{font-size:12px}.radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:20px 0;align-items:flex-start}.radio-button[_ngcontent-%COMP%]{margin:0}"]})}return t})(),Iie=(()=>{class t{constructor(e){this.terminologyService=e,this.textChange=new Ce,this.text=""}ngOnInit(){}onTextChange(e){this.text=e,this.textChange.emit(e)}static#e=this.\u0275fac=function(n){return new(n||t)(x(Yn))};static#t=this.\u0275cmp=Le({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(n,r){1&n&&(_(0,"mat-form-field",0)(1,"mat-label"),k(2),v(),_(3,"textarea",1),z("ngModelChange",function(a){return r.text=a})("ngModelChange",function(a){return r.onTextChange(a)}),v(),_(4,"mat-hint"),k(5),v()()),2&n&&(w(2),Ge(r.binding.title),w(1),S("ngModel",r.text),w(2),Ge(r.binding.note))},dependencies:[Ea,Do,al,sl,Sa,So,ta],styles:[".chip[_ngcontent-%COMP%]{display:inline-flex;flex-direction:row;background-color:#f4a460;border:none;cursor:default;height:36px;outline:none;padding:0;font-size:14px;color:#fff;font-family:Open Sans,sans-serif;white-space:nowrap;align-items:center;border-radius:16px;vertical-align:middle;text-decoration:none;justify-content:center;margin-right:20px}.chip-content[_ngcontent-%COMP%]{cursor:inherit;display:flex;align-items:center;-webkit-user-select:none;user-select:none;white-space:nowrap;padding-left:12px;padding-right:12px}mat-form-field[_ngcontent-%COMP%]{width:100%}.code[_ngcontent-%COMP%]{font-size:small;font-weight:lighter;margin-right:15px}mat-hint[_ngcontent-%COMP%]{font-size:12px}"]})}return t})();const Fie=["input"],Rie=["label"],Oie=["*"],Pie=new oe("mat-checkbox-default-options",{providedIn:"root",factory:lP});function lP(){return{color:"accent",clickAction:"check-indeterminate"}}const Lie={provide:Kn,useExisting:Qt(()=>uP),multi:!0};class Nie{}let Bie=0;const dP=lP(),Vie=qh(Gs(qs(cs(class{constructor(t){this._elementRef=t}}))));let Hie=(()=>{class t extends Vie{get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=He(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 Ce,this.indeterminateChange=new Ce,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||dP,this.color=this.defaultColor=this._options.color||dP.color,this.tabIndex=parseInt(a)||0,this.id=this._uniqueId=`${e}${++Bie}`}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const n=He(e);n!=this.checked&&(this._checked=n,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const n=He(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=He(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){pa()},t.\u0275dir=Q({type:t,viewQuery:function(e,n){if(1&e&&(rt(Fie,5),rt(Rie,5),rt(ko,5)),2&e){let r;Se(r=De())&&(n._inputElement=r.first),Se(r=De())&&(n._labelElement=r.first),Se(r=De())&&(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})(),uP=(()=>{class t extends Hie{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 Nie;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)(x(Ie),x(Ut),x(ze),_o("tabindex"),x(Ii,8),x(Pie,8))},t.\u0275cmp=Le({type:t,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-mdc-checkbox"],hostVars:12,hostBindings:function(e,n){2&e&&(xa("id",n.id),st("tabindex",null)("aria-label",null)("aria-labelledby",null),Ye("_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([Lie]),pe],ngContentSelectors:Oie,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&&(hi(),_(0,"div",0),z("click",function(o){return n._preventBubblingFromLabel(o)}),_(1,"div",1,2)(3,"div",3),z("click",function(){return n._onTouchTargetClick()}),v(),_(4,"input",4,5),z("blur",function(){return n._onBlur()})("click",function(){return n._onInputClick()})("change",function(o){return n._onInteractionEvent(o)}),v(),ge(6,"div",6),_(7,"div",7),qa(),_(8,"svg",8),ge(9,"path",9),v(),Gl(),ge(10,"div",10),v(),ge(11,"div",11),v(),_(12,"label",12,13),Je(14),v()()),2&e){const r=wt(2);Ye("mdc-form-field--align-end","before"==n.labelPosition),w(4),Ye("mdc-checkbox--selected",n.checked),S("checked",n.checked)("indeterminate",n.indeterminate)("disabled",n.disabled)("id",n.inputId)("required",n.required)("tabIndex",n.tabIndex),st("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby)("aria-describedby",n.ariaDescribedby)("name",n.name)("value",n.value),w(7),S("matRippleTrigger",r)("matRippleDisabled",n.disableRipple||n.disabled)("matRippleCentered",!0),w(1),S("for",n.inputId)}},dependencies:[ko],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})(),hP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({}),t})(),$ie=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[yt,Xs,hP,yt,hP]}),t})();function jie(t,i){if(1&t){const e=Ne();_(0,"mat-checkbox",3),z("click",function(){return _e(e),be(V().optionClicked())}),k(1),v()}if(2&t){const e=i.$implicit;_d("formControlName",e.display),w(1),it(" ",e.display," ")}}let Wie=(()=>{class t{constructor(e,n){this.terminologyService=e,this._formBuilder=n,this.selectionChange=new Ce,this.checkboxes=this._formBuilder.group([]),this.present={display:"Known present (qualifier value)",system:"http://snomed.info/sct",code:"410515003"},this.absent={display:"Known absent (qualifier value)",system:"http://snomed.info/sct",code:"410516002"}}ngOnInit(){this.options=[{display:this.binding.title}],this.options?.forEach(e=>{this.checkboxes.addControl(e.display,this._formBuilder.control(!1))})}optionClicked(){let e=[];e.push({title:this.binding.title,code:this.binding.ecl,value:this.checkboxes.value[this.binding.title]?this.present:this.absent}),this.selectionChange.emit(e)}static#e=this.\u0275fac=function(n){return new(n||t)(x(Yn),x(HR))};static#t=this.\u0275cmp=Le({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(n,r){1&n&&(_(0,"form",0),P(1,jie,2,2,"mat-checkbox",1),_(2,"span",2),k(3),v()()),2&n&&(S("formGroup",r.checkboxes),w(1),S("ngForOf",r.options),w(2),Ge(r.binding.note))},dependencies:[kr,ff,So,sf,Zs,mf,uP],styles:["#hint[_ngcontent-%COMP%]{font-size:12px}.check-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:20px 0;align-items:flex-start}.check[_ngcontent-%COMP%]{margin:0}.hint[_ngcontent-%COMP%]{font-size:.8rem;color:#999;padding:0;margin:0 0 0 5px}"]})}return t})(),Gie=(()=>{class t{constructor(e){this.terminologyService=e,this.textChange=new Ce,this.value=0}ngOnInit(){}onValueChange(e){this.value=e,this.textChange.emit(e)}static#e=this.\u0275fac=function(n){return new(n||t)(x(Yn))};static#t=this.\u0275cmp=Le({type:t,selectors:[["app-integer-binding"]],inputs:{binding:"binding"},outputs:{textChange:"textChange"},decls:6,vars:3,consts:[[1,"example-full-width"],["matInput","","type","number","placeholder","Enter integer value...","pattern","^-?[0-9]\\d*$","title","Only integer values are allowed",3,"ngModel","ngModelChange"]],template:function(n,r){1&n&&(_(0,"mat-form-field",0)(1,"mat-label"),k(2),v(),_(3,"input",1),z("ngModelChange",function(a){return r.value=a})("ngModelChange",function(a){return r.onValueChange(a)}),v(),_(4,"mat-hint"),k(5),v()()),2&n&&(w(2),Ge(r.binding.title),w(1),S("ngModel",r.value),w(2),Ge(r.binding.note))},dependencies:[Ea,Do,al,sl,Sa,g0,So,x0,ta],styles:[".chip[_ngcontent-%COMP%]{display:inline-flex;flex-direction:row;background-color:#f4a460;border:none;cursor:default;height:36px;outline:none;padding:0;font-size:14px;color:#fff;font-family:Open Sans,sans-serif;white-space:nowrap;align-items:center;border-radius:16px;vertical-align:middle;text-decoration:none;justify-content:center;margin-right:20px}.chip-content[_ngcontent-%COMP%]{cursor:inherit;display:flex;align-items:center;-webkit-user-select:none;user-select:none;white-space:nowrap;padding-left:12px;padding-right:12px}mat-form-field[_ngcontent-%COMP%]{width:100%}.code[_ngcontent-%COMP%]{font-size:small;font-weight:lighter;margin-right:15px}mat-hint[_ngcontent-%COMP%]{font-size:12px}"]})}return t})(),qie=(()=>{class t{constructor(e){this.terminologyService=e,this.textChange=new Ce,this.value=0}ngOnInit(){}onValueChange(e){this.value=e,this.textChange.emit(e)}static#e=this.\u0275fac=function(n){return new(n||t)(x(Yn))};static#t=this.\u0275cmp=Le({type:t,selectors:[["app-decimal-binding"]],inputs:{binding:"binding"},outputs:{textChange:"textChange"},decls:6,vars:3,consts:[[1,"example-full-width"],["matInput","","type","number","placeholder","Enter decimal value...","pattern","^-?[0-9]*\\.?[0-9]+$","title","Only decimal values are allowed","step","any",3,"ngModel","ngModelChange"]],template:function(n,r){1&n&&(_(0,"mat-form-field",0)(1,"mat-label"),k(2),v(),_(3,"input",1),z("ngModelChange",function(a){return r.value=a})("ngModelChange",function(a){return r.onValueChange(a)}),v(),_(4,"mat-hint"),k(5),v()()),2&n&&(w(2),Ge(r.binding.title),w(1),S("ngModel",r.value),w(2),Ge(r.binding.note))},dependencies:[Ea,Do,al,sl,Sa,g0,So,x0,ta],styles:[".chip[_ngcontent-%COMP%]{display:inline-flex;flex-direction:row;background-color:#f4a460;border:none;cursor:default;height:36px;outline:none;padding:0;font-size:14px;color:#fff;font-family:Open Sans,sans-serif;white-space:nowrap;align-items:center;border-radius:16px;vertical-align:middle;text-decoration:none;justify-content:center;margin-right:20px}.chip-content[_ngcontent-%COMP%]{cursor:inherit;display:flex;align-items:center;-webkit-user-select:none;user-select:none;white-space:nowrap;padding-left:12px;padding-right:12px}mat-form-field[_ngcontent-%COMP%]{width:100%}.code[_ngcontent-%COMP%]{font-size:small;font-weight:lighter;margin-right:15px}mat-hint[_ngcontent-%COMP%]{font-size:12px}"]})}return t})();const Xie=["newPanel"];function Qie(t,i){if(1&t){const e=Ne();_(0,"button",12),z("click",function(){_e(e);const r=V();return be(r.showRightContainer=!r.showRightContainer)}),k(1),v()}if(2&t){const e=V();w(1),it(" ",e.showRightContainer?"Close data panel":"Open data panel"," ")}}function Yie(t,i){1&t&&(_(0,"button",43),k(1," Download form "),v()),2&t&&(V(),S("matMenuTriggerFor",wt(19)))}function Kie(t,i){1&t&&(_(0,"mat-panel-description"),k(1," Click to add new binding "),v())}function Zie(t,i){if(1&t){const e=Ne();_(0,"button",44),z("click",function(){let o;return _e(e),be(null==(o=V().newBindingForm.get("title"))?null:o.reset())}),_(1,"mat-icon"),k(2,"close"),v()()}}function Jie(t,i){1&t&&(_(0,"span"),k(1,"Restrict to Observables"),v())}function ene(t,i){1&t&&(_(0,"span"),k(1,"Open to Observables + Findings + Procedures"),v())}function tne(t,i){if(1&t&&(_(0,"mat-option",45),k(1),v()),2&t){const e=i.$implicit;S("value",e),w(1),it(" ",e," ")}}function ine(t,i){if(1&t){const e=Ne();_(0,"button",44),z("click",function(){let o;return _e(e),be(null==(o=V(2).newBindingForm.get("ecl"))?null:o.reset())}),_(1,"mat-icon"),k(2,"close"),v()()}}function nne(t,i){if(1&t){const e=Ne();_(0,"mat-form-field",19)(1,"mat-label"),k(2,"Answer options: ECL Expression"),v(),ge(3,"input",46),_(4,"a",47),z("click",function(){_e(e);const r=V();let o;return be(r.openEclBuilder(null==(o=r.newBindingForm.get("ecl"))?null:o.value,"ecl"))}),k(5,"ECL Builder"),v(),P(6,ine,3,0,"button",21),_(7,"mat-error"),k(8),v()()}if(2&t){const e=V();let n;w(6),S("ngIf",null==(n=e.newBindingForm.get("ecl"))?null:n.value),w(2),Ge(e.getErrorMessage("ecl"))}}function rne(t,i){1&t&&(_(0,"span"),k(1,"Restrict to Observables"),v())}function one(t,i){1&t&&(_(0,"span"),k(1,"Open to Observables + Findings + Procedures"),v())}function ane(t,i){if(1&t){const e=Ne();_(0,"mat-form-field",19),ge(1,"app-autocomplete-binding",48),_(2,"a",24),z("click",function(){return _e(e),be(V().toggleCheckboxBinding())}),P(3,rne,2,0,"span",15),P(4,one,2,0,"span",15),v(),_(5,"mat-error"),k(6),v()()}if(2&t){const e=V();w(1),S("binding",e.checkboxBinding),w(2),S("ngIf",e.checkboxBinding.ecl===e.codeBindingAll.ecl),w(1),S("ngIf",e.checkboxBinding.ecl!=e.codeBindingAll.ecl),w(2),Ge(e.getErrorMessage("ecl"))}}function sne(t,i){if(1&t){const e=Ne();_(0,"button",44),z("click",function(){let o;return _e(e),be(null==(o=V(2).newBindingForm.get("note"))?null:o.reset())}),_(1,"mat-icon"),k(2,"close"),v()()}}function cne(t,i){if(1&t&&(_(0,"mat-form-field",49)(1,"mat-label"),k(2,"Note"),v(),ge(3,"input",50),P(4,sne,3,0,"button",21),_(5,"mat-error"),k(6),v()()),2&t){const e=V();let n;w(4),S("ngIf",null==(n=e.newBindingForm.get("note"))?null:n.value),w(2),Ge(e.getErrorMessage("note"))}}function lne(t,i){if(1&t){const e=Ne();_(0,"button",32),z("click",function(){return _e(e),be(V().addBinding())}),k(1,"Add binding"),v()}}function dne(t,i){if(1&t){const e=Ne();_(0,"button",32),z("click",function(){_e(e);const r=V();return r.addBinding(),be(r.clearOutput())}),k(1,"Update binding"),v()}}function une(t,i){if(1&t){const e=Ne();_(0,"div",51)(1,"p",52),k(2),v(),_(3,"button",53),z("click",function(){return _e(e),be(V().titleEditMode=!0)}),_(4,"mat-icon"),k(5,"edit"),v()()()}if(2&t){const e=V();w(2),Ge(e.formTitle)}}const hne=function(){return{standalone:!0}};function fne(t,i){if(1&t){const e=Ne();_(0,"div",51)(1,"form",54)(2,"mat-form-field")(3,"mat-label"),k(4,"Title"),v(),_(5,"input",55),z("ngModelChange",function(r){return _e(e),be(V().formTitle=r)})("ngModelChange",function(){return _e(e),be(V().refreshFhirQuestionnaire())}),v(),_(6,"button",44),z("click",function(){return _e(e),be(V().formTitle="")}),_(7,"mat-icon"),k(8,"close"),v()()()(),_(9,"button",53),z("click",function(){return _e(e),be(V().titleEditMode=!1)}),_(10,"mat-icon"),k(11,"save"),v()()()}if(2&t){const e=V();w(5),S("ngModel",e.formTitle)("ngModelOptions",Go(2,hne))}}function mne(t,i){if(1&t){const e=Ne();_(0,"app-autocomplete-binding",64),z("selectionChange",function(r){_e(e);const o=V().$implicit;return be(V().optionSelected(o.title,o.code,r))}),v()}2&t&&S("binding",V().$implicit)}function pne(t,i){if(1&t){const e=Ne();_(0,"app-dropdown-binding",64),z("selectionChange",function(r){_e(e);const o=V().$implicit;return be(V().optionSelected(o.title,o.code,r))}),v()}2&t&&S("binding",V().$implicit)}function gne(t,i){if(1&t){const e=Ne();_(0,"app-radios-binding",64),z("selectionChange",function(r){_e(e);const o=V().$implicit;return be(V().optionSelected(o.title,o.code,r))}),v()}2&t&&S("binding",V().$implicit)}function _ne(t,i){if(1&t&&(_(0,"span",65),k(1),v()),2&t){const e=V().$implicit;w(1),Ge(e.title)}}function bne(t,i){if(1&t){const e=Ne();_(0,"app-textbox-binding",66),z("textChange",function(r){_e(e);const o=V().$implicit;return be(V().optionSelected(o.title,o.code,r))}),v()}2&t&&S("binding",V().$implicit)}function vne(t,i){if(1&t){const e=Ne();_(0,"app-integer-binding",66),z("textChange",function(r){_e(e);const o=V().$implicit;return be(V().optionSelected(o.title,o.code,r))}),v()}2&t&&S("binding",V().$implicit)}function xne(t,i){if(1&t){const e=Ne();_(0,"app-decimal-binding",66),z("textChange",function(r){_e(e);const o=V().$implicit;return be(V().optionSelected(o.title,o.code,r))}),v()}2&t&&S("binding",V().$implicit)}function yne(t,i){if(1&t){const e=Ne();_(0,"app-checkbox-binding",64),z("selectionChange",function(r){_e(e);const o=V().$implicit;return be(V().optionSelected(o.title,o.code,r))}),v()}2&t&&S("binding",V().$implicit)}function wne(t,i){if(1&t&&(_(0,"button",67)(1,"mat-icon"),k(2,"info"),v()()),2&t){const e=V().$implicit;S("matMenuTriggerFor",wt(14))("disabled",!e.code&&!e.ecl)}}function Cne(t,i){if(1&t&&(_(0,"span",3),z("click",function(n){return n.stopPropagation()}),_(1,"h4"),k(2,"Question terminology binding"),v(),_(3,"pre"),k(4),v()()),2&t){const e=V().$implicit;S("disableRipple",!0),w(4),vd("",null==e.code?null:e.code.code," |",null==e.code?null:e.code.display,"|")}}function kne(t,i){if(1&t&&(_(0,"span",3),z("click",function(n){return n.stopPropagation()}),_(1,"h4"),k(2,"Answer terminology binding"),v(),_(3,"pre"),k(4),v()()),2&t){const e=V().$implicit;S("disableRipple",!0),w(4),Ge(e.ecl)}}function Sne(t,i){if(1&t){const e=Ne();_(0,"div",56)(1,"div",57)(2,"mat-icon",58),k(3,"drag_indicator"),v(),P(4,mne,1,1,"app-autocomplete-binding",59),P(5,pne,1,1,"app-dropdown-binding",59),P(6,gne,1,1,"app-radios-binding",59),P(7,_ne,2,1,"span",60),P(8,bne,1,1,"app-textbox-binding",61),P(9,vne,1,1,"app-integer-binding",61),P(10,xne,1,1,"app-decimal-binding",61),P(11,yne,1,1,"app-checkbox-binding",59),P(12,wne,3,2,"button",62),_(13,"mat-menu",null,2),P(15,Cne,5,3,"span",63),P(16,kne,5,2,"span",63),v(),_(17,"button",53),z("click",function(){const o=_e(e).index;return be(V().bindings.splice(o,1))}),_(18,"mat-icon"),k(19,"delete"),v()(),_(20,"button",53),z("click",function(){const o=_e(e).index;return be(V().edit(o))}),_(21,"mat-icon"),k(22,"edit"),v()()()()}if(2&t){const e=i.$implicit;w(4),S("ngIf","Autocomplete"==e.type),w(1),S("ngIf","Select (Single)"==e.type||"Select (Multiple)"==e.type),w(1),S("ngIf","Options"==e.type),w(1),S("ngIf","Section header"==e.type),w(1),S("ngIf","Text box"==e.type),w(1),S("ngIf","Integer"==e.type),w(1),S("ngIf","Decimal"==e.type),w(1),S("ngIf","Checkbox"==e.type),w(1),S("ngIf","Section header"!=e.type),w(3),S("ngIf",e.code),w(1),S("ngIf",e.ecl)}}function Dne(t,i){if(1&t){const e=Ne();_(0,"div",71)(1,"button",72),z("click",function(){_e(e);const r=V(2);return be(r.saveOutput(r.outputStr))}),ge(2,"mat-icon",73),v(),_(3,"button",74),z("click",function(){_e(e);const r=V(2);return be(r.copyOutputToClipboard(r.outputStr))}),ge(4,"mat-icon",75),v()()}}const lw=function(){return{}};function Ene(t,i){if(1&t&&(_(0,"div",68),P(1,Dne,5,0,"div",69),_(2,"textarea",70),k(3," "),v()()),2&t){const e=V();w(1),S("ngIf",e.showRightContainer),w(1),S("options",Go(4,lw))("lang","json")("innerHTML",e.responseStr,Mc)}}function Tne(t,i){if(1&t){const e=Ne();_(0,"div",71)(1,"button",72),z("click",function(){_e(e);const r=V(2);return be(r.saveBundleOutput(r.responseBundleStr))}),ge(2,"mat-icon",73),v(),_(3,"button",74),z("click",function(){_e(e);const r=V(2);return be(r.copyOutputToClipboard(r.responseBundleStr))}),ge(4,"mat-icon",75),v()()}}function Mne(t,i){if(1&t&&(_(0,"div",68),P(1,Tne,5,0,"div",69),_(2,"textarea",70),k(3," "),v()()),2&t){const e=V();w(1),S("ngIf",e.showRightContainer),w(1),S("options",Go(4,lw))("lang","json")("innerHTML",e.responseBundleStr,Mc)}}function Ane(t,i){if(1&t){const e=Ne();_(0,"div",71)(1,"button",72),z("click",function(){_e(e);const r=V(2);return be(r.saveOutput(r.fhirQuestionnaireStr))}),ge(2,"mat-icon",73),v(),_(3,"button",74),z("click",function(){_e(e);const r=V(2);return be(r.copyOutputToClipboard(r.fhirQuestionnaireStr))}),ge(4,"mat-icon",75),v()()}}function Ine(t,i){if(1&t&&(_(0,"div",68),P(1,Ane,5,0,"div",69),_(2,"textarea",70),k(3," "),v()()),2&t){const e=V();w(1),S("ngIf",e.showRightContainer),w(1),S("options",Go(4,lw))("lang","json")("innerHTML",e.fhirQuestionnaireStr,Mc)}}let Fne=(()=>{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.response={},this.responseStr="{}",this.responseBundle={},this.responseBundleStr="{}",this.fhirQuestionnaire={},this.fhirQuestionnaireStr="{}",this.observableBinding={title:"Question code",type:"Autocomplete",ecl:"<< 363787002 |Observable entity (observable entity)|",value:""},this.codeBindingObservables={title:"Question code (Observables)",type:"Autocomplete",ecl:"<< 363787002 |Observable entity (observable entity)|",value:""},this.codeBindingAll={title:"Question code (Observables + Findings + Procedures)",type:"Autocomplete",ecl:"<< 363787002 |Observable entity (observable entity)| OR << 404684003 |Clinical finding (finding)| OR << 71388002 |Procedure (procedure)|",value:""},this.codeBinding=this.codeBindingAll,this.checkboxBinding=JSON.parse(JSON.stringify(this.codeBindingAll)),this.example1={title:"Appendicitis data entry form (example)",bindings:[{title:"Diagnosis (type of appendicitis)",type:"Autocomplete",ecl:"<< 74400008 |Appendicitis|",value:"",note:"An autocomplete field to select between all descendants of appendicitis."},{title:"Clinical note",type:"Text box",ecl:"74400008 |Appendicitis|",value:"",note:"A text box for entering free text clinical information."},{title:"Appendicitis type",type:"Select (Single)",ecl:"<< 196781001 |Acute appendicitis with peritonitis (disorder)|",value:"",note:"A single selection dropdown field for a shorter selection of the type of appendicitis."},{title:"Appendicitis type (M)",type:"Select (Multiple)",ecl:"<< 196781001 |Acute appendicitis with peritonitis (disorder)|",value:"",note:"A multiple selection dropdown field for a shorter selection of the type of appendicitis."},{title:"Appendicectomy type",type:"Options",ecl:"<< 174036004 |Emergency appendectomy (procedure)|",value:"",note:"A radio buttons selector for the type of appendicectomy procedure."}]},this.newBindingForm=new su({title:new Hr("",[ou.required,ou.maxLength(50)]),code:new Hr("",[]),type:new Hr("",[ou.required]),ecl:new Hr("",[]),value:new Hr("",[]),note:new Hr("",[ou.maxLength(500)])}),this.indexInEdit=-1,this.panelOpenState=!1,this.maxSelectCount=50,this.maxOptionsCount=10,this.controlTypes=["Autocomplete","Select (Single)","Select (Multiple)","Options","Section header","Text box","Integer","Decimal","Checkbox"].sort((o,a)=>o.localeCompare(a)),this.showRightContainer=!1}ngOnInit(){this.checkboxBinding.title=this.checkboxBinding.title.replace("Question","Checkbox")}get stateName(){return this.showRightContainer?"open":"closed"}addBinding(){var e=this;return fi(function*(){if(e.newBindingForm.markAllAsTouched(),e.newBindingForm.invalid)return;const{title:n,code:r,type:o,ecl:a,value:s,note:c}=e.newBindingForm.controls;let l={title:n.value,code:r.value,type:o.value,ecl:a.value,value:s.value,note:c.value},d=!1;a.value?typeof l.type?.indexOf("Select")<"u"&&l.type?.indexOf("Select")>-1?(yield e.getEclPreview(a.value)).expansion.contains.length>e.maxSelectCount&&(d=!0,a.setErrors({selectTooManyResults:!0})):typeof l.type?.indexOf("Options")<"u"&&l.type?.indexOf("Options")>-1&&(yield e.getEclPreview(a.value)).expansion.contains.length>e.maxOptionsCount&&(d=!0,a.setErrors({optionsTooManyResults:!0})):"Section header"!=l.type&&"Text box"!=l.type&&"Integer"!=l.type&&"Decimal"!=l.type&&(d=!0,a.setErrors({required:!0})),!d&&(e.indexInEdit>-1?e.bindings[e.indexInEdit]=l:e.bindings.push(l),e.newBindingForm.reset(),e.newPanel.close(),e.indexInEdit=-1,setTimeout(()=>{e.refreshFhirQuestionnaire(),e.refreshResponse()},100))})()}refreshFhirQuestionnaire(){this.fhirQuestionnaire={resourceType:"Questionnaire",title:this.formTitle,status:"draft",item:[]},this.bindings.forEach((e,n)=>{const r=this.createItemForBinding(e,n);r&&this.fhirQuestionnaire.item.push(r)}),this.fhirQuestionnaireStr=JSON.stringify(this.fhirQuestionnaire,null,2)}createItemForBinding(e,n){const r=this.initializeBaseItem(e,n);return["Select (Single)","Select (Multiple)","Options","Autocomplete"].includes(e.type)&&(r.extension=this.getExtensionForSelectableTypes(),r.answerValueSet=this.getAnswerValueSet(e)),"Autocomplete"===e.type&&r.extension.push(this.getAutocompleteExtension()),"Select (Multiple)"===e.type&&(r.repeats=!0),r}initializeBaseItem(e,n){const r={linkId:n+1,text:e.title,type:this.getQuestionnaireItemType(e.type)};return e.code&&(r.code=[{system:"http://snomed.info/sct",code:e.code.code,display:e.code.display}]),r}getQuestionnaireItemType(e){switch(e){case"Section header":return"display";case"Select (Single)":case"Select (Multiple)":case"Options":case"Autocomplete":return"choice";case"Text box":return"text";case"Integer":return"integer";case"Decimal":return"decimal";default:return console.warn(`Unhandled binding type: ${e}`),null}}getExtensionForSelectableTypes(){return[{url:"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-preferredTerminologyServer",valueUrl:"https://snowstorm.ihtsdotools.org/fhir"}]}getAutocompleteExtension(){return{url:"http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",valueCodeableConcept:{coding:[{system:"http://hl7.org/fhir/questionnaire-item-control",code:"autocomplete",display:"Auto-complete"}]}}}getAnswerValueSet(e){return`http://snomed.info/sct/900000000000207008?fhir_vs=ecl%2F${encodeURIComponent(e.ecl)}`}getEclPreview(e){var n=this;return fi(function*(){return Sr((yield n.terminologyService.expandValueSet(e,"")).pipe(Ze(o=>o)))})()}edit(e){this.indexInEdit=e;const n=this.bindings[e];this.newBindingForm.setValue({title:n.title,code:n.code?n.code:"",type:n.type,ecl:n.ecl,value:n.value,note:n.note}),this.newPanel.open()}onDrop(e){K1(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}refreshResponse(){this.response={};for(let e of this.bindings)this.response[e.title]={},e.code&&(this.response[e.title].code=e.code);for(let[e,n]of Object.entries(this.output))this.output[e].code&&(this.response[e].code=this.output[e].code),this.output[e].value&&(this.response[e].value=this.output[e].value);this.responseStr=JSON.stringify(this.response,null,2),this.refreshResponseBundle()}refreshResponseBundle(){this.responseBundle={resourceType:"Bundle",type:"collection",entry:[]};for(let[e,n]of Object.entries(this.response)){let r=n;const a=r.value?.code?{coding:[{system:"http://snomed.info/sct",code:r.value.code,display:r.value.display}]}:void 0;let s={resourceType:"Observation",status:"final",category:[{coding:[{system:"http://terminology.hl7.org/CodeSystem/observation-category",code:"survey",display:"Survey"}]}],subject:{reference:"Patient/123"}};s.code=(r.code?{coding:[{system:"http://snomed.info/sct",code:r.code.code,display:r.code.display}]}:void 0)||{coding:[{system:"http://snomed.info/sct",code:"363788007",display:"Clinical history/examination observable (observable entity)"}]},a&&(s.valueCodeableConcept=a),r.value&&"string"==typeof r.value&&(s.valueString=r.value),(s.valueCodeableConcept||s.valueString)&&this.responseBundle.entry.push(s)}this.responseBundleStr=JSON.stringify(this.responseBundle,null,2)}optionSelected(e,n,r){this.output[e]={code:n,value:r},n||delete this.output[e].code,this.outputStr=JSON.stringify(this.output,null,2),this.refreshResponse()}loadExample1(){this.formTitle=this.example1.title,this.bindings=this.example1.bindings,this.refreshFhirQuestionnaire(),this.clearOutput(),this.refreshResponse()}cancelEdit(){this.newBindingForm.reset(),this.newPanel.close(),this.indexInEdit=-1}clear(){this.bindings=[],this.clearOutput(),this.newBindingForm.reset(),this.formTitle="My new form",this.showRightContainer=!1}clearOutput(){this.output={},this.outputStr="{}";const e=JSON.parse(JSON.stringify(this.bindings));this.bindings=[],this.bindings=e}saveForm(){var e=new Blob([JSON.stringify({title:this.formTitle,bindings:this.bindings},null,2)],{type:"text/plain;charset=utf-8"});(0,ps.saveAs)(e,`${this.formTitle}.json`)}saveOutput(e){var n=new Blob([e],{type:"text/plain;charset=utf-8"});(0,ps.saveAs)(n,`${this.formTitle}-data.json`)}saveBundleOutput(e){var n=new Blob([e],{type:"text/plain;charset=utf-8"});(0,ps.saveAs)(n,`${this.formTitle}-fhir-bundle.json`)}copyOutputToClipboard(e){this.clipboard.copy(e)}uploadFile(e){if(1!==e.target.files.length)console.error("No file selected");else{const 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(),this.refreshResponse(),this.refreshFhirQuestionnaire()}},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)}})}toggleCodeBinding(){this.codeBinding=this.codeBinding===this.codeBindingAll?this.codeBindingObservables:this.codeBindingAll}toggleCheckboxBinding(){this.checkboxBinding=this.checkboxBinding.ecl===this.codeBindingAll.ecl?JSON.parse(JSON.stringify(this.codeBindingObservables)):JSON.parse(JSON.stringify(this.codeBindingAll)),this.checkboxBinding.title=this.checkboxBinding.title.replace("Question","Checkbox")}static#e=this.\u0275fac=function(n){return new(n||t)(x(Yn),x(W1),x(du))};static#t=this.\u0275cmp=Le({type:t,selectors:[["app-bindings-sandbox"]],viewQuery:function(n,r){if(1&n&&rt(Xie,5),2&n){let o;Se(o=De())&&(r.newPanel=o.first)}},decls:91,vars:27,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,"form-row"],[1,"form-column"],[1,"input-field"],["matInput","","type","text","formControlName","title","placeholder","Enter title..."],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"input-field","autocomplete-field"],["formControlName","code",1,"grow",3,"binding"],["href","javascript:void(0)",1,"bottom-right-link",3,"click"],["formControlName","type"],[3,"value",4,"ngFor","ngForOf"],["class","input-field",4,"ngIf"],["class","input-field full-width",4,"ngIf"],[1,"row"],[1,"grow"],["mat-flat-button","","color","primary",3,"click",4,"ngIf"],["mat-flat-button","","color","primary",3,"click"],["class","compact-row-container",4,"ngIf"],[1,"row-container"],[1,"row-container-item"],["cdkDropList","",3,"cdkDropListDropped"],["class","output-panel","cdkDrag","",4,"ngFor","ngForOf"],["mat-stretch-tabs","false","mat-align-tabs","start"],["label","Data collected from form"],["class","output",4,"ngIf"],["label","Data collected (FHIR Bundle)"],["label","FHIR Questionnaire"],["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"],[1,"input-field","full-width"],["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"],["mat-menu-item","",3,"disableRipple","click",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(n,r){if(1&n){const o=Ne();_(0,"div",0)(1,"h3"),k(2,"Terminology Bindings Sandbox "),_(3,"button",1)(4,"mat-icon"),k(5,"info"),v()(),_(6,"mat-menu",null,2)(8,"span",3),z("click",function(s){return s.stopPropagation()}),_(9,"h4"),k(10,"Terminology Bindings Sandbox"),v(),_(11,"p"),k(12,"This is a sandbox for creating terminology bindings, designed to support education activities."),v()()()(),_(13,"div",4),P(14,Qie,2,1,"button",5),_(15,"input",6,7),z("change",function(s){return r.uploadFile(s)}),v(),P(17,Yie,2,1,"button",8),_(18,"mat-menu",9,10)(20,"button",11),z("click",function(){return r.saveForm()}),k(21,"Download"),v(),_(22,"button",11),z("click",function(){return r.saveOutput(r.fhirQuestionnaireStr)}),k(23,"Download as FHIR Questionnaire"),v()(),_(24,"button",12),z("click",function(){return _e(o),be(wt(16).click())}),k(25,"Upload form"),v(),_(26,"button",12),z("click",function(){return r.loadExample1()}),k(27,"Example"),v(),_(28,"button",12),z("click",function(){return r.clear()}),k(29,"Clear"),v()(),_(30,"mat-expansion-panel",13,14),z("opened",function(){return r.panelOpenState=!0})("closed",function(){return r.panelOpenState=!1}),_(32,"mat-expansion-panel-header")(33,"mat-panel-title")(34,"h4"),k(35,"New binding:"),v()(),P(36,Kie,2,0,"mat-panel-description",15),v(),_(37,"div")(38,"form",16)(39,"div",17)(40,"div",18)(41,"h5"),k(42,"Question"),v(),_(43,"mat-form-field",19)(44,"mat-label"),k(45,"Question text"),v(),ge(46,"input",20),P(47,Zie,3,0,"button",21),_(48,"mat-error"),k(49),v()(),_(50,"mat-form-field",22),ge(51,"app-autocomplete-binding",23),_(52,"a",24),z("click",function(){return r.toggleCodeBinding()}),P(53,Jie,2,0,"span",15),P(54,ene,2,0,"span",15),v(),_(55,"mat-error"),k(56),v()()(),_(57,"div",18)(58,"h5"),k(59,"Answer"),v(),_(60,"mat-form-field",19)(61,"mat-label"),k(62,"Answer Type"),v(),_(63,"mat-select",25),P(64,tne,2,2,"mat-option",26),v(),_(65,"mat-error"),k(66),v()(),P(67,nne,9,2,"mat-form-field",27),P(68,ane,7,4,"mat-form-field",27),v()(),P(69,cne,7,2,"mat-form-field",28),v(),ge(70,"br"),_(71,"div",29),ge(72,"span",30),P(73,lne,2,0,"button",31),P(74,dne,2,0,"button",31),_(75,"button",32),z("click",function(){return r.cancelEdit()}),k(76,"Cancel"),v()()()(),P(77,une,6,1,"div",33),P(78,fne,12,3,"div",33),_(79,"div",34)(80,"div",35)(81,"div",36),z("cdkDropListDropped",function(s){return r.onDrop(s)}),P(82,Sne,23,11,"div",37),v()(),_(83,"div",35)(84,"mat-tab-group",38)(85,"mat-tab",39),P(86,Ene,4,5,"div",40),v(),_(87,"mat-tab",41),P(88,Mne,4,5,"div",40),v(),_(89,"mat-tab",42),P(90,Ine,4,5,"div",40),v()()()()()}if(2&n){const o=wt(7);let a;w(3),S("matMenuTriggerFor",o),w(5),S("disableRipple",!0),w(6),S("ngIf",r.bindings.length),w(3),S("ngIf",r.bindings.length),w(19),S("ngIf",!r.panelOpenState),w(2),S("formGroup",r.newBindingForm),w(9),S("ngIf",null==(a=r.newBindingForm.get("title"))?null:a.value),w(2),Ge(r.getErrorMessage("title")),w(2),S("binding",r.codeBinding),w(2),S("ngIf",r.codeBinding===r.codeBindingAll),w(1),S("ngIf",r.codeBinding!=r.codeBindingAll),w(2),Ge(r.getErrorMessage("code")),w(8),S("ngForOf",r.controlTypes),w(2),Ge(r.getErrorMessage("type")),w(1),S("ngIf","Section header"!=r.newBindingForm.controls.type.value&&"Text box"!=r.newBindingForm.controls.type.value&&"Checkbox"!=r.newBindingForm.controls.type.value&&"Integer"!=r.newBindingForm.controls.type.value&&"Decimal"!=r.newBindingForm.controls.type.value),w(1),S("ngIf","Checkbox"==r.newBindingForm.controls.type.value),w(1),S("ngIf","Section header"!=r.newBindingForm.controls.type.value),w(4),S("ngIf",-1==r.indexInEdit),w(1),S("ngIf",r.indexInEdit>-1),w(3),S("ngIf",!r.titleEditMode),w(1),S("ngIf",r.titleEditMode),w(2),S("@growShrink",r.stateName),w(2),S("ngForOf",r.bindings),w(1),S("@openClose",r.stateName),w(3),S("ngIf",r.bindings.length>0),w(2),S("ngIf",r.bindings.length>0),w(2),S("ngIf",r.bindings.length>0)}},dependencies:[kr,Yi,D0,tw,nw,BO,Dr,Zo,oo,Qc,ka,Yc,Ea,Do,zR,jR,Qs,sl,ff,Sa,So,sf,Zs,mf,S0,gf,_f,ta,rl,cu,oP,fie,pie,mie,pf,bie,Aie,Iie,Wie,Gie,qie],styles:["#main-panel[_ngcontent-%COMP%]{padding:10px}h3[_ngcontent-%COMP%]{margin-top:0}.row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:-5px;align-items:center;gap:10px}.grow[_ngcontent-%COMP%]{flex-grow:4}mat-hint[_ngcontent-%COMP%], mat-error[_ngcontent-%COMP%]{font-size:12px}.editPanel[_ngcontent-%COMP%]{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}.mat-mdc-form-field-infix[_ngcontent-%COMP%]{padding:0!important}.bottom-right-link[_ngcontent-%COMP%]{position:absolute;bottom:5px;right:0;font-size:smaller}.form-layout[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin-right:-10px;margin-left:-10px;width:100%}.form-column[_ngcontent-%COMP%]{flex:1 1 0px;padding-right:10px;padding-left:10px;display:flex;flex-direction:column;width:100%}.input-field.full-width[_ngcontent-%COMP%]{width:calc(100% - 20px);margin-bottom:20px}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}"],data:{animation:[zi("openClose",[Zt("open",Xe({opacity:1,width:"50%"})),Zt("closed",Xe({opacity:0,width:"0"})),Wt("open <=> closed",[jt("0.5s")])]),zi("growShrink",[Zt("open",Xe({width:"50%"})),Zt("closed",Xe({width:"100%"})),Wt("open <=> closed",[jt("0.5s")])])]}})}return t})(),Rne=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Le({type:t,selectors:[["app-prescription-main"]],decls:2,vars:0,template:function(n,r){1&n&&(_(0,"p"),k(1,"prescription-main works!, no?"),v())}})}return t})();const One=["mat-sort-header",""];function Pne(t,i){if(1&t){const e=Ne();_(0,"div",3),z("@arrowPosition.start",function(){return _e(e),be(V()._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){return _e(e),be(V()._disableViewStateAnimation=!1)}),ge(1,"div",4),_(2,"div",5),ge(3,"div",6)(4,"div",7)(5,"div",8),v()()}if(2&t){const e=V();S("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),w(2),S("@indicator",e._getArrowDirectionState()),w(1),S("@leftPointer",e._getArrowDirectionState()),w(1),S("@rightPointer",e._getArrowDirectionState())}}const Lne=["*"],fP=new oe("MAT_SORT_DEFAULT_OPTIONS"),Nne=oX(cs(class{}));let cl=(()=>{class t extends Nne{get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=He(e)}constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new ke,this.start="asc",this._direction="",this.sortChange=new Ce}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 Bne(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)(x(fP,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,Ai]}),t})();const ec=iX.ENTERING+" "+tX.STANDARD_CURVE,uu={indicator:zi("indicator",[Zt("active-asc, asc",Xe({transform:"translateY(0px)"})),Zt("active-desc, desc",Xe({transform:"translateY(10px)"})),Wt("active-asc <=> active-desc",jt(ec))]),leftPointer:zi("leftPointer",[Zt("active-asc, asc",Xe({transform:"rotate(-45deg)"})),Zt("active-desc, desc",Xe({transform:"rotate(45deg)"})),Wt("active-asc <=> active-desc",jt(ec))]),rightPointer:zi("rightPointer",[Zt("active-asc, asc",Xe({transform:"rotate(45deg)"})),Zt("active-desc, desc",Xe({transform:"rotate(-45deg)"})),Wt("active-asc <=> active-desc",jt(ec))]),arrowOpacity:zi("arrowOpacity",[Zt("desc-to-active, asc-to-active, active",Xe({opacity:1})),Zt("desc-to-hint, asc-to-hint, hint",Xe({opacity:.54})),Zt("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Xe({opacity:0})),Wt("* => asc, * => desc, * => active, * => hint, * => void",jt("0ms")),Wt("* <=> *",jt(ec))]),arrowPosition:zi("arrowPosition",[Wt("* => desc-to-hint, * => desc-to-active",jt(ec,Qh([Xe({transform:"translateY(-25%)"}),Xe({transform:"translateY(0)"})]))),Wt("* => hint-to-desc, * => active-to-desc",jt(ec,Qh([Xe({transform:"translateY(0)"}),Xe({transform:"translateY(25%)"})]))),Wt("* => asc-to-hint, * => asc-to-active",jt(ec,Qh([Xe({transform:"translateY(25%)"}),Xe({transform:"translateY(0)"})]))),Wt("* => hint-to-asc, * => active-to-asc",jt(ec,Qh([Xe({transform:"translateY(0)"}),Xe({transform:"translateY(-25%)"})]))),Zt("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Xe({transform:"translateY(0)"})),Zt("hint-to-desc, active-to-desc, desc",Xe({transform:"translateY(-25%)"})),Zt("hint-to-asc, active-to-asc, asc",Xe({transform:"translateY(25%)"}))]),allowChildren:zi("allowChildren",[Wt("* <=> *",[Bg("@*",Ng(),{optional:!0})])])};let L0=(()=>{class t{constructor(){this.changes=new ke}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Hne={provide:L0,deps:[[new ha,new Dc,L0]],useFactory:function Vne(t){return t||new L0}},Une=cs(class{});let mP=(()=>{class t extends Une{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=He(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=Pi(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)(x(L0),x(Ut),x(cl,8),x("MAT_SORT_HEADER_COLUMN_DEF",8),x(ro),x(Ie),x(FI,8),x(fP,8))},t.\u0275cmp=Le({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,n){1&e&&z("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&&(st("aria-sort",n._getAriaSortAttribute()),Ye("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:One,ngContentSelectors:Lne,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&&(hi(),_(0,"div",0)(1,"div",1),Je(2),v(),P(3,Pne,6,6,"div",2),v()),2&e&&(Ye("mat-sort-header-sorted",n._isSorted())("mat-sort-header-position-before","before"===n.arrowPosition),st("tabindex",n._isDisabled()?null:0)("role",n._isDisabled()?null:"button"),w(3),S("ngIf",n._renderArrow()))},dependencies:[Yi],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:[uu.indicator,uu.leftPointer,uu.rightPointer,uu.arrowOpacity,uu.arrowPosition,uu.allowChildren]},changeDetection:0}),t})(),zne=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({providers:[Hne],imports:[Xn,yt]}),t})(),$ne=(()=>{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}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),wf=(()=>{class t{constructor(e,n){this.http=e,this.storageService=n,this.baseUrlSubject=new Ki("https://hapi.fhir.org/baseR4"),this.baseUrl$=this.baseUrlSubject.asObservable(),this.userTagSubject=new Ki(""),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(ln(o=>404===o.status?this.postQuestionnaire(e):Vc(o))):this.postQuestionnaire(e)}static#e=this.\u0275fac=function(n){return new(n||t)(X(zs),X($ne))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function jne(t,i){if(1&t&&(_(0,"mat-option",15),k(1),v()),2&t){const e=i.$implicit;S("value",e),w(1),it(" ",e.title," ")}}function Wne(t,i){1&t&&ge(0,"mat-spinner",16)}function Gne(t,i){if(1&t){const e=Ne();_(0,"div",17)(1,"span",18),k(2,"\u2261"),v(),k(3),_(4,"button",19),z("click",function(){const o=_e(e).index;return be(V().deleteQuestionnaire(o))}),_(5,"mat-icon"),k(6,"delete"),v()()()}if(2&t){const e=i.$implicit;w(3),it(" ",e.title," ")}}let pP=(()=>{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,this.availableQuestionnaires=this.availableQuestionnaires.filter(e=>!e.extension||!e.extension.some(n=>"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assemble-expectation"===n.url&&"assemble-root"===n.valueCode))}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){K1(this.addedQuestionnaires,e.previousIndex,e.currentIndex)}deleteQuestionnaire(e){e>-1&&(this.addedQuestionnaires.splice(e,1),this.updateAvailableQuestionnaires())}isSaveDisabled(){return!this.questionnaireForm.get("assignedName")?.value||!this.addedQuestionnaires.length}closeModal(){this.dialogRef.close({title:this.questionnaireForm.get("assignedName")?.value,questionnaires:this.addedQuestionnaires})}static#e=this.\u0275fac=function(n){return new(n||t)(x(HR),x(wf),x(R0),x(Js))};static#t=this.\u0275cmp=Le({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(n,r){1&n&&(_(0,"mat-dialog-content")(1,"h2"),k(2,"Create a modular Questionnaire"),v(),_(3,"form",0)(4,"div",1)(5,"mat-form-field",2)(6,"mat-label"),k(7,"Assign Name"),v(),ge(8,"input",3),v()(),_(9,"div",1)(10,"mat-form-field",4)(11,"mat-label"),k(12,"Select Child Questionnaire"),v(),_(13,"mat-select",5),P(14,jne,2,2,"mat-option",6),v()(),_(15,"button",7),z("click",function(){return r.addQuestionnaire()}),k(16,"Add questionnaire"),v(),P(17,Wne,1,0,"mat-spinner",8),v()(),_(18,"div",9)(19,"cdk-drop-list",10),z("cdkDropListDropped",function(a){return r.drop(a)}),P(20,Gne,7,1,"div",11),v()()(),_(21,"mat-dialog-actions",12)(22,"button",13),k(23,"Cancel"),v(),_(24,"button",14),z("click",function(){return r.closeModal()}),k(25,"Save"),v()()),2&n&&(w(3),S("formGroup",r.questionnaireForm),w(11),S("ngForOf",r.availableQuestionnaires),w(1),S("disabled",r.loading),w(2),S("ngIf",r.loading),w(3),S("ngForOf",r.addedQuestionnaires),w(4),S("disabled",r.isSaveDisabled()||r.loading))},dependencies:[kr,Yi,tw,nw,Dr,Zo,oo,Ea,Do,Qs,Yd,sl,ff,Sa,So,sf,Zs,mf,_f,yf,O0,P0],styles:[".questionnaire-list[_ngcontent-%COMP%]{width:100%;max-height:400px;overflow:auto;border:1px solid #ccc;border-radius:4px;background-color:#f9f9f9;padding:10px}.list[_ngcontent-%COMP%] .cdk-drag[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:4px;background-color:#fff;margin-bottom:10px;padding:10px;display:flex;align-items:center;justify-content:left;box-shadow:0 2px 4px #0000001a}.drag-handle[_ngcontent-%COMP%]{cursor:move;margin-right:15px;font-size:20px;color:#666}.cdk-drag-preview[_ngcontent-%COMP%]{background-color:#e0e0e0}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.button-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:1rem;margin-right:2rem;align-items:center}.form-layout[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:15px}.form-layout[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%}.form-layout[_ngcontent-%COMP%] .half-width[_ngcontent-%COMP%]{width:50%;margin-right:15px}"]})}return t})(),gP=(()=>{class t{constructor(e,n){this.http=e,this.fhirService=n}generateRootQuestionnaire(e,n){var r=this;return fi(function*(){try{let a=yield Sr(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 fi(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=fi(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 fi(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 fi(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 fi(function*(){try{return yield Sr(n.http.get(e))}catch(r){return console.error("Error fetching questionnaire:",r),null}})()}static#e=this.\u0275fac=function(n){return new(n||t)(X(zs),X(wf))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function qne(t,i){1&t&&(_(0,"th",17),k(1," Title "),v())}function Xne(t,i){if(1&t&&(_(0,"td",18),k(1),v()),2&t){const e=i.$implicit;w(1),it(" ",e.title," ")}}function Qne(t,i){1&t&&(_(0,"th",17),k(1," Status "),v())}const Yne=function(t){return["status-pill",t]};function Kne(t,i){if(1&t&&(_(0,"td",18)(1,"span",19),k(2),Cd(3,"uppercase"),v()()),2&t){const e=i.$implicit;w(1),S("ngClass",Ja(4,Yne,e.status)),w(1),Ge(Sp(3,2,e.status))}}function Zne(t,i){1&t&&(_(0,"th",17),k(1," Version "),v())}function Jne(t,i){if(1&t&&(_(0,"td",18),k(1),v()),2&t){const e=i.$implicit;w(1),it(" ",e.meta.versionId," ")}}function ere(t,i){1&t&&(_(0,"th",17),k(1," Type "),v())}const tre=function(){return["status-pill","active"]};function ire(t,i){1&t&&(_(0,"span",19),k(1,"QUESTIONNAIRE"),v()),2&t&&S("ngClass",Go(1,tre))}const nre=function(){return["status-pill","draft"]};function rre(t,i){1&t&&(_(0,"span",19),k(1,"MODULAR ROOT"),v()),2&t&&S("ngClass",Go(1,nre))}function ore(t,i){if(1&t&&(_(0,"td",18),P(1,ire,2,2,"span",20),P(2,rre,2,2,"span",20),v()),2&t){const e=i.$implicit,n=V();w(1),S("ngIf",!n.isRootQuestionnaire(e)),w(1),S("ngIf",n.isRootQuestionnaire(e))}}function are(t,i){1&t&&(_(0,"th",21),k(1," Actions "),v())}function sre(t,i){if(1&t){const e=Ne();_(0,"button",31),z("click",function(){_e(e);const r=V().$implicit;return be(V().validate(r))}),_(1,"mat-icon"),k(2,"done"),v()()}if(2&t){const e=V().$implicit;S("disabled",V().isRootQuestionnaire(e))}}function cre(t,i){if(1&t){const e=Ne();_(0,"button",32),z("click",function(){_e(e);const r=V().$implicit;return be(V().assemble(r))}),_(1,"mat-icon"),k(2,"build"),v()()}}function lre(t,i){if(1&t){const e=Ne();_(0,"button",33),z("click",function(){_e(e);const r=V().$implicit;return be(V().preview(r))}),_(1,"mat-icon"),k(2,"visibility"),v()()}}function dre(t,i){if(1&t){const e=Ne();_(0,"button",34),z("click",function(){_e(e);const r=V().$implicit;return be(V().openInNewTab(r))}),_(1,"mat-icon"),k(2,"open_in_new"),v()()}}function ure(t,i){if(1&t){const e=Ne();_(0,"button",35),z("click",function(){_e(e);const r=V().$implicit;return be(V().editQuestionnaire(r))}),_(1,"mat-icon"),k(2,"edit"),v()()}}function hre(t,i){if(1&t){const e=Ne();_(0,"button",36),z("click",function(){_e(e);const r=V().$implicit;return be(V().openModularQuestionnaireModal(r))}),_(1,"mat-icon"),k(2,"edit"),v()()}}function fre(t,i){if(1&t){const e=Ne();_(0,"td",18),P(1,sre,3,1,"button",22),P(2,cre,3,0,"button",23),P(3,lre,3,0,"button",24),P(4,dre,3,0,"button",25),_(5,"button",26),z("click",function(){const o=_e(e).$implicit;return be(V().saveQuestionnaire(o))}),_(6,"mat-icon"),k(7,"cloud_download"),v()(),P(8,ure,3,0,"button",27),P(9,hre,3,0,"button",28),_(10,"span",29)(11,"button",30),z("click",function(){const o=_e(e).$implicit;return be(V().deleteQuestionnaire(o))}),_(12,"mat-icon"),k(13,"delete"),v()()()()}if(2&t){const e=i.$implicit,n=V();w(1),S("ngIf",n.config.validate),w(1),S("ngIf",n.isRootQuestionnaire(e)),w(1),S("ngIf",n.config.preview&&!n.isRootQuestionnaire(e)),w(1),S("ngIf",n.config.preview),w(4),S("ngIf",!n.isRootQuestionnaire(e)),w(1),S("ngIf",n.isRootQuestionnaire(e)),w(1),_d("matTooltip",n.getDeleteTooltip(e)),w(1),S("disabled",n.getReferencingQuestionnaires(e).length>0)}}function mre(t,i){1&t&&ge(0,"tr",37)}function pre(t,i){1&t&&ge(0,"tr",38)}function gre(t,i){1&t&&(_(0,"p",39)(1,"i"),k(2," No questionnaires found. Upload your questionnaires to start. "),v()())}function _re(t,i){1&t&&ge(0,"mat-spinner",40)}function bre(t,i){if(1&t){const e=Ne();_(0,"button",41),z("click",function(){return _e(e),be(V().downloadAllQuestionnaires())}),k(1," Download bundle "),v()}}let _P=(()=>{class t{constructor(e,n,r,o){this.fhirService=e,this.questionnaireService=n,this.dialog=r,this._snackBar=o,this.questionnaireSelected=new Ce,this.validateQuestionnaire=new Ce,this.previewQuestionnaire=new Ce,this.config={},this.displayedColumns=["title","status","version","type","actions"],this.dataSource=new af,this.questionnaires=[],this.loading=!1,this.selectedFhirServer="",this.selectedUserTag="",this.notFound=!1,this.baseUrlChanged=new ke,this.userTagChanged=new ke}ngOnInit(){Bc([this.fhirService.baseUrl$.pipe($c(1e3),Ws()),this.fhirService.userTag$.pipe($c(1e3),Ws())]).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(Zi,{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(Zi,{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"});ps(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(Zi,{duration:2e3,data:"Assembling Questionnaire...",panelClass:["green-snackbar"]}),this.questionnaireService.assembleQuestionnaire(e).then(n=>{n.title=e.title+" (assembled)",this.previewQuestionnaire.emit(n),this._snackBar.openFromComponent(Zi,{duration:2e3,data:"Questionnaire ready",panelClass:["green-snackbar"]})}).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 fi(function*(){let r=yield n.questionnaireService.getRootQuestionnaireData(e);n.dialog.open(pP,{data:r,width:"75%"}).afterClosed().subscribe(a=>{a&&n.handleDialogResult(a,e)})})()}handleDialogResult(e,n){var r=this;return fi(function*(){r._snackBar.openFromComponent(Zi,{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(wo()).subscribe(a=>{r._snackBar.openFromComponent(Zi,{duration:5e3,data:"Questionnaire updated successfully",panelClass:["green-snackbar"]}),r.updateQuestionnairesList(a)},a=>{r._snackBar.openFromComponent(Zi,{duration:5e3,data:"Error saving questionnaire",panelClass:["red-snackbar"]})}))}catch(o){console.error("Error handling dialog result:",o)}})()}downloadAllQuestionnaires(){this._snackBar.openFromComponent(Zi,{duration:5e3,data:"Downloading Questionnaires...",panelClass:["green-snackbar"]}),this.fhirService.getQuestionnairesByTag(this.selectedUserTag).subscribe(e=>{var n=new Blob([JSON.stringify(e,null,2)],{type:"text/plain;charset=utf-8"});ps(n,"questionnaires-bundle.json"),this._snackBar.openFromComponent(Zi,{duration:5e3,data:"Questionnaires downloaded successfully",panelClass:["green-snackbar"]})})}getReferencingQuestionnaires(e){let r=`${this.fhirService.getBaseUrl()}/Questionnaire/${e.id}`;return this.dataSource.data.filter(a=>a.item&&Array.isArray(a.item)&&a.item.some(s=>s.item&&Array.isArray(s.item)&&s.item.some(c=>c.extension&&Array.isArray(c.extension)&&c.extension.some(l=>"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-subQuestionnaire"===l.url&&l.valueCanonical===r))))}getDeleteTooltip(e){const n=this.getReferencingQuestionnaires(e);return 0===n.length?"Delete Questionnaire":`Cannot delete: Referenced by ${n.map(o=>`"${o.title}"`).join(", ")}`}static#e=this.\u0275fac=function(n){return new(n||t)(x(wf),x(gP),x(du),x(Qd))};static#t=this.\u0275cmp=Le({type:t,selectors:[["app-list-questionnaires"]],viewQuery:function(n,r){if(1&n&&rt(cl,5),2&n){let o;Se(o=De())&&(r.sort=o.first)}},inputs:{config:"config"},outputs:{questionnaireSelected:"questionnaireSelected",validateQuestionnaire:"validateQuestionnaire",previewQuestionnaire:"previewQuestionnaire"},features:[Ai],decls:24,vars:6,consts:[["id","table-container"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","title"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","status"],["matColumnDef","version"],["matColumnDef","type"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","not-found",4,"ngIf"],["diameter","35","class","loading-spinner",4,"ngIf"],["id","outer-container"],[1,"download-button-container"],["mat-flat-button","","color","accent","matTooltip","Dowload all Questionnaires",3,"click",4,"ngIf"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"ngClass"],[3,"ngClass",4,"ngIf"],["mat-header-cell",""],["mat-icon-button","","color","accent","class","action-button","matTooltip","Validate Questionnaire",3,"disabled","click",4,"ngIf"],["mat-icon-button","","color","accent","class","action-button","matTooltip","Assemble Questionnaire",3,"click",4,"ngIf"],["mat-icon-button","","color","accent","class","action-button","matTooltip","Preview Questionnaire",3,"click",4,"ngIf"],["mat-icon-button","","color","accent","class","action-button","matTooltip","Open resource in new tab",3,"click",4,"ngIf"],["mat-icon-button","","color","accent","matTooltip","Download Questionnaire",1,"action-button",3,"click"],["mat-icon-button","","color","accent","class","action-button","matTooltip","Edit Questionnaire",3,"click",4,"ngIf"],["mat-icon-button","","color","accent","class","action-button","matTooltip","Edit Modular Questionnaire",3,"click",4,"ngIf"],[3,"matTooltip"],["mat-icon-button","","color","accent",3,"disabled","click"],["mat-icon-button","","color","accent","matTooltip","Validate Questionnaire",1,"action-button",3,"disabled","click"],["mat-icon-button","","color","accent","matTooltip","Assemble Questionnaire",1,"action-button",3,"click"],["mat-icon-button","","color","accent","matTooltip","Preview Questionnaire",1,"action-button",3,"click"],["mat-icon-button","","color","accent","matTooltip","Open resource in new tab",1,"action-button",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Questionnaire",1,"action-button",3,"click"],["mat-icon-button","","color","accent","matTooltip","Edit Modular Questionnaire",1,"action-button",3,"click"],["mat-header-row",""],["mat-row",""],[1,"not-found"],["diameter","35",1,"loading-spinner"],["mat-flat-button","","color","accent","matTooltip","Dowload all Questionnaires",3,"click"]],template:function(n,r){1&n&&(_(0,"div",0)(1,"table",1),di(2,2),P(3,qne,2,0,"th",3),P(4,Xne,2,1,"td",4),ui(),di(5,5),P(6,Qne,2,0,"th",3),P(7,Kne,4,6,"td",4),ui(),di(8,6),P(9,Zne,2,0,"th",3),P(10,Jne,2,1,"td",4),ui(),di(11,7),P(12,ere,2,0,"th",3),P(13,ore,3,2,"td",4),ui(),di(14,8),P(15,are,2,0,"th",9),P(16,fre,14,8,"td",4),ui(),P(17,mre,1,0,"tr",10),P(18,pre,1,0,"tr",11),v(),P(19,gre,3,0,"p",12),P(20,_re,1,0,"mat-spinner",13),v(),_(21,"div",14)(22,"div",15),P(23,bre,2,0,"button",16),v()()),2&n&&(w(1),S("dataSource",r.dataSource),w(16),S("matHeaderRowDef",r.displayedColumns),w(1),S("matRowDefColumns",r.displayedColumns),w(1),S("ngIf",r.notFound&&!r.questionnaires.length),w(1),S("ngIf",r.loading),w(3),S("ngIf",!r.loading&&r.questionnaires.length>0))},dependencies:[os,Yi,Dr,Zo,oo,Yd,eu,Zc,tu,Jc,Kc,iu,el,tl,nu,ru,cu,cl,mP,gM],styles:[".list-item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.list-text[_ngcontent-%COMP%]{flex-grow:1}.list-subtext[_ngcontent-%COMP%]{font-size:.8rem;color:#666;margin-left:1rem}.action-button[_ngcontent-%COMP%]{margin-left:8px}.loading-spinner[_ngcontent-%COMP%]{margin-left:2rem;margin-top:2rem}.list-item[_ngcontent-%COMP%]:hover{background-color:#f5f5f5}.status-pill[_ngcontent-%COMP%]{display:inline-block;padding:3px 8px;border-radius:15px;font-size:10px;color:#fff;text-align:center;margin-left:1rem}.status-pill.draft[_ngcontent-%COMP%]{background-color:#007bff}.status-pill.unknown[_ngcontent-%COMP%]{background-color:#ffc107}.status-pill.active[_ngcontent-%COMP%]{background-color:#28a745}.status-pill.retired[_ngcontent-%COMP%]{background-color:#dc3545}#table-container[_ngcontent-%COMP%]{padding-bottom:2rem}.not-found[_ngcontent-%COMP%]{margin-top:2rem}#outer-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end}.download-button-container[_ngcontent-%COMP%]{margin-top:10px}"]})}return t})(),vre=(()=>{class t{constructor(e){this.dialogRef=e,this.listConfig={select:!0}}selectAndDownload(e){this.dialogRef.close(e)}static#e=this.\u0275fac=function(n){return new(n||t)(x(Js))};static#t=this.\u0275cmp=Le({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(n,r){1&n&&(_(0,"mat-dialog-content")(1,"h2"),k(2,"Available Questionnaires"),v(),_(3,"app-list-questionnaires",0),z("questionnaireSelected",function(a){return r.selectAndDownload(a)}),v()(),_(4,"mat-dialog-actions",1)(5,"button",2),k(6,"Close"),v()()),2&n&&(w(3),S("config",r.listConfig))},dependencies:[Dr,yf,O0,P0,_P]})}return t})();const xre=["settingsForm"];function yre(t,i){1&t&&(_(0,"mat-error"),k(1,"Base URL is required"),v())}function wre(t,i){1&t&&(_(0,"mat-error"),k(1,"User Tag is required and must be at least 3 characters"),v())}let dw=(()=>{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"))}static#e=this.\u0275fac=function(n){return new(n||t)(x(wf),x(Js))};static#t=this.\u0275cmp=Le({type:t,selectors:[["app-fhir-server-settings-modal"]],viewQuery:function(n,r){if(1&n&&rt(xre,5),2&n){let o;Se(o=De())&&(r.settingsForm=o.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(n,r){if(1&n&&(_(0,"div",0)(1,"h2"),k(2,"FHIR Server Connection"),v(),_(3,"p"),k(4,"Manager mode allows you to store questionnares in a FHIR Server. Enter the FHIR server URL and your "),_(5,"b"),k(6,"User Tag"),v(),k(7,", this value will be used to identify your questionnaires."),v(),_(8,"p",1),k(9,"Warning: using the default public FHIR server will not ensure the persistence of your information, always save your questionnaires to your computer as a backup."),v(),_(10,"form",2,3),z("ngSubmit",function(){return r.updateSettings()}),_(12,"mat-form-field")(13,"mat-label"),k(14,"Base URL of the FHIR Server"),v(),_(15,"input",4,5),z("ngModelChange",function(a){return r.baseUrl=a}),v(),P(17,yre,2,0,"mat-error",6),v(),_(18,"mat-form-field")(19,"mat-label"),k(20,"User Tag"),v(),_(21,"input",7,8),z("ngModelChange",function(a){return r.userTag=a}),v(),P(23,wre,2,0,"mat-error",6),v(),_(24,"div",9)(25,"button",10),k(26,"Open FHIR Repository"),v(),_(27,"button",11),k(28,"Close"),v()()()()),2&n){const o=wt(11),a=wt(16),s=wt(22);w(15),S("ngModel",r.baseUrl),w(2),S("ngIf",a.invalid&&a.touched),w(4),S("ngModel",r.userTag),w(2),S("ngIf",s.invalid&&s.touched),w(2),S("disabled",!o.valid)}},dependencies:[Yi,Dr,Ea,Do,zR,sl,ff,Sa,So,sf,b0,z1,ta,rl,yf],styles:[".form-container[_ngcontent-%COMP%]{margin:auto;padding:20px}mat-form-field[_ngcontent-%COMP%]{width:100%}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px}.button-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:1rem;margin-right:2rem;align-items:center}.warning[_ngcontent-%COMP%]{color:#ff9500;font-weight:lighter;font-style:italic}"]})}return t})(),bP=(()=>{class t{constructor(e,n){this.data=e,this.dialogRef=n}static#e=this.\u0275fac=function(n){return new(n||t)(x(R0),x(Js))};static#t=this.\u0275cmp=Le({type:t,selectors:[["app-confirmation-dialog"]],decls:10,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions","",1,"button-container"],["mat-button","",3,"mat-dialog-close"]],template:function(n,r){1&n&&(_(0,"h1",0),k(1),v(),_(2,"div",1)(3,"p"),k(4),v()(),_(5,"div",2)(6,"button",3),k(7,"Yes"),v(),_(8,"button",3),k(9,"No"),v()()),2&n&&(w(1),Ge(r.data.title),w(3),Ge(r.data.message),w(2),S("mat-dialog-close",!0),w(2),S("mat-dialog-close",!1))},dependencies:[Dr,yf,YO,O0,P0],encapsulation:2})}return t})();const Cre=new oe("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),Sre=Gs(class{constructor(t){this._elementRef=t}},"primary");let vP=(()=>{class t extends Sre{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 Ce,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=xP(On(e)),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(e){this._bufferValue=xP(On(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)(x(Ie),x(ze),x(Ut),x(Ii,8),x(Cre,8))},t.\u0275cmp=Le({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&&(st("aria-valuenow",n._isIndeterminate()?null:n.value)("mode",n.mode),Ye("_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&&(_(0,"div",0),ge(1,"div",1)(2,"div",2),v(),_(3,"div",3),ge(4,"span",4),v(),_(5,"div",5),ge(6,"span",4),v()),2&e&&(w(1),en("flex-basis",n._getBufferBarFlexBasis()),w(2),en("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 xP(t,i=0,e=100){return Math.max(i,Math.min(e,t))}let Dre=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[yt]}),t})();const Ere=["questionnairesList"];function Tre(t,i){if(1&t&&(_(0,"div",20),ge(1,"mat-progress-bar",21),_(2,"div",22),k(3),v()()),2&t){const e=V();w(1),S("value",e.validatingProgress),w(2),it("",e.validatingProgress,"%")}}function Mre(t,i){1&t&&(_(0,"span"),k(1,"Run validation"),v())}function Are(t,i){1&t&&ge(0,"mat-spinner",23)}function Ire(t,i){if(1&t&&(_(0,"span",29),k(1),v()),2&t){const e=V(2);w(1),it("Error: ",e.loadResults.error,"")}}function Fre(t,i){if(1&t&&(_(0,"span",30),k(1),v()),2&t){const e=V(2);w(1),it("Inactive: ",e.loadResults.inactive,"")}}function Rre(t,i){if(1&t&&(_(0,"span",31),k(1),v()),2&t){const e=V(2);w(1),it("Active: ",e.loadResults.active,"")}}function Ore(t,i){if(1&t&&(_(0,"p",24)(1,"b"),k(2,"Questionnaire:"),v(),k(3),_(4,"i"),k(5),v(),k(6,") - "),_(7,"span",25),k(8),v(),P(9,Ire,2,1,"span",26),P(10,Fre,2,1,"span",27),P(11,Rre,2,1,"span",28),v()),2&t){const e=V();w(3),it(" ",e.questionnaire.title," ("),w(2),Ge(e.questionnaire.url),w(3),it("",e.dataSource.data.length," bindings"),w(1),S("ngIf",e.loadResults.total>0),w(1),S("ngIf",e.loadResults.total>0),w(1),S("ngIf",e.loadResults.total>0)}}function Pre(t,i){1&t&&(_(0,"th",32),k(1," # "),v())}function Lre(t,i){if(1&t&&(_(0,"td",33),k(1),v()),2&t){const e=i.$implicit;w(1),it(" ",e.order," ")}}function Nre(t,i){1&t&&(_(0,"th",32),k(1," FHIRPath "),v())}function Bre(t,i){if(1&t&&(_(0,"td",33),k(1),v()),2&t){const e=i.$implicit;w(1),it(" ",e.path," ")}}function Vre(t,i){1&t&&(_(0,"th",32),k(1," Path "),v())}function Hre(t,i){if(1&t&&(_(0,"td",33),k(1),v()),2&t){const e=i.$implicit;w(1),it(" ",e.readablePath," ")}}function Ure(t,i){1&t&&(_(0,"th",32),k(1,"Code "),v())}function zre(t,i){if(1&t&&(_(0,"td",33)(1,"a",34),k(2),v()()),2&t){const e=i.$implicit;w(1),gp("href","http://snomed.info/id/",e.code,"",tp),w(1),Ge(e.code)}}function $re(t,i){1&t&&(_(0,"th",32),k(1," Display "),v())}function jre(t,i){if(1&t&&(_(0,"p",38),k(1),v()),2&t){const e=V().$implicit;w(1),it("Concept FSN: ",e.serverDisplay,"")}}function Wre(t,i){1&t&&(_(0,"p",39),k(1,"Concept is inactive"),v())}function Gre(t,i){if(1&t){const e=Ne();_(0,"p",40),k(1),_(2,"button",41),z("click",function(){const o=_e(e).$implicit,a=V().$implicit;return be(V().replaceInactiveConcept(a,o.replacement))}),_(3,"mat-icon"),k(4,"arrow_forward"),v()()()}if(2&t){const e=i.$implicit,n=V(2);w(1),Pv(" Replacement: ",e.equivalence," to ",e.replacement.code," |",e.replacement.display,"| "),w(1),S("disabled",n.validating)}}function qre(t,i){if(1&t&&(_(0,"td",33),k(1),P(2,jre,2,1,"p",35),P(3,Wre,2,0,"p",36),P(4,Gre,5,4,"p",37),v()),2&t){const e=i.$implicit;w(1),it(" ",e.display," "),w(1),S("ngIf",e.serverDisplay),w(1),S("ngIf","Inactive"==e.status),w(1),S("ngForOf",e.replacements)}}function Xre(t,i){1&t&&(_(0,"th",32),k(1," System "),v())}function Qre(t,i){if(1&t&&(_(0,"td",33),k(1),v()),2&t){const e=i.$implicit;w(1),it(" ",e.system," ")}}function Yre(t,i){1&t&&(_(0,"th",32),k(1," Status "),v())}function Kre(t,i){1&t&&(_(0,"span"),ge(1,"mat-progress-bar",42),v())}function Zre(t,i){if(1&t&&(_(0,"span")(1,"span",43),k(2),v()()),2&t){const e=V().$implicit;w(1),S("ngClass",e.status),w(1),Ge(e.status)}}function Jre(t,i){if(1&t&&(_(0,"td",33),P(1,Kre,2,0,"span",3),P(2,Zre,3,2,"span",3),v()),2&t){const e=i.$implicit;w(1),S("ngIf","Validating"==e.status),w(1),S("ngIf","Validating"!=e.status)}}function eoe(t,i){1&t&&ge(0,"tr",44)}function toe(t,i){1&t&&ge(0,"tr",45)}function ioe(t,i){1&t&&ge(0,"mat-spinner",46)}let noe=(()=>{class t{constructor(e){this.terminologyService=e,this.questionnaireUpdated=new Ce,this.validatingQuestionnaire=new Ce,this.loading=!1,this.validating=!1,this.displayedColumns=["order","readablePath","code","display","system","status"],this.dataSource=new af,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=fi(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(wo()).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 fi(function*(){let o=[];const a=r.terminologyService.translate(e,n);let s=yield Sr(a.pipe(Ze(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 fi(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}static#e=this.\u0275fac=function(n){return new(n||t)(x(Yn))};static#t=this.\u0275cmp=Le({type:t,selectors:[["app-validate-questionnaire"]],viewQuery:function(n,r){if(1&n&&(rt(cl,5),rt(gf,5),rt(Ere,5)),2&n){let o;Se(o=De())&&(r.sort=o.first),Se(o=De())&&(r.tabGroup=o.first),Se(o=De())&&(r.questionnairesList=o.first)}},inputs:{questionnaire:"questionnaire"},outputs:{questionnaireUpdated:"questionnaireUpdated",validatingQuestionnaire:"validatingQuestionnaire"},features:[Ai],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","mt-4"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","order"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","path"],["matColumnDef","readablePath"],["matColumnDef","code"],["matColumnDef","display"],["matColumnDef","system"],["matColumnDef","status"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["diameter","35","class","loading-spinner",4,"ngIf"],[1,"progress-container"],["mode","determinate",3,"value"],[1,"progress-label"],["diameter","20"],["id","tab-header",1,"header"],[1,"bindingsCount"],["class","mini-pill Error",4,"ngIf"],["class","mini-pill Inactive",4,"ngIf"],["class","mini-pill Active",4,"ngIf"],[1,"mini-pill","Error"],[1,"mini-pill","Inactive"],[1,"mini-pill","Active"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["target","_blank",1,"code-link",3,"href"],["class","server-name",4,"ngIf"],["class","concept-is-inactive",4,"ngIf"],["class","replacement",4,"ngFor","ngForOf"],[1,"server-name"],[1,"concept-is-inactive"],[1,"replacement"],["mat-icon-button","","color","primary","matTooltip","Replace using this concept",3,"disabled","click"],["mode","indeterminate"],[1,"pill",3,"ngClass"],["mat-header-row",""],["mat-row",""],["diameter","35",1,"loading-spinner"]],template:function(n,r){1&n&&(_(0,"div",0),P(1,Tre,4,2,"div",1),_(2,"button",2),z("click",function(){return r.validate()}),P(3,Mre,2,0,"span",3),P(4,Are,1,0,"mat-spinner",4),v()(),P(5,Ore,12,6,"p",5),_(6,"div",6)(7,"table",7),di(8,8),P(9,Pre,2,0,"th",9),P(10,Lre,2,1,"td",10),ui(),di(11,11),P(12,Nre,2,0,"th",9),P(13,Bre,2,1,"td",10),ui(),di(14,12),P(15,Vre,2,0,"th",9),P(16,Hre,2,1,"td",10),ui(),di(17,13),P(18,Ure,2,0,"th",9),P(19,zre,3,2,"td",10),ui(),di(20,14),P(21,$re,2,0,"th",9),P(22,qre,5,4,"td",10),ui(),di(23,15),P(24,Xre,2,0,"th",9),P(25,Qre,2,1,"td",10),ui(),di(26,16),P(27,Yre,2,0,"th",9),P(28,Jre,3,2,"td",10),ui(),P(29,eoe,1,0,"tr",17),P(30,toe,1,0,"tr",18),v(),P(31,ioe,1,0,"mat-spinner",19),v()),2&n&&(w(1),S("ngIf",r.validating),w(1),S("disabled",r.validating||!r.questionnaire),w(1),S("ngIf",!r.validating),w(1),S("ngIf",r.validating),w(1),S("ngIf",r.questionnaire),w(2),S("dataSource",r.dataSource),w(22),S("matHeaderRowDef",r.displayedColumns),w(1),S("matRowDefColumns",r.displayedColumns),w(1),S("ngIf",r.loading))},dependencies:[os,kr,Yi,Dr,Zo,oo,vP,Yd,eu,Zc,tu,Jc,Kc,iu,el,tl,nu,ru,cu,cl,mP],styles:[".header[_ngcontent-%COMP%]{margin-left:2rem;margin-top:1rem}.table-container[_ngcontent-%COMP%]{margin-left:2rem;margin-right:2rem;padding-bottom:2rem}.button-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:1rem;margin-right:2rem;align-items:center}.bottom-spacer[_ngcontent-%COMP%]{margin-bottom:1rem}.pill[_ngcontent-%COMP%]{padding:5px 10px;border-radius:20px;font-weight:700;text-align:center;display:inline-block;font-size:.8rem}.pill.Active[_ngcontent-%COMP%]{background-color:#4caf50;color:#fff}.pill.Inactive[_ngcontent-%COMP%]{background-color:#ffc107;color:#fff}.pill.Error[_ngcontent-%COMP%]{background-color:#f44336;color:#fff}.mini-pill[_ngcontent-%COMP%]{padding:5px 10px;border-radius:20px;text-align:center;font-weight:700;font-size:.9rem;margin-right:2rem;float:right}.mini-pill.Active[_ngcontent-%COMP%]{background-color:#4caf50;color:#fff}.mini-pill.Inactive[_ngcontent-%COMP%]{background-color:#ffc107;color:#fff}.mini-pill.Error[_ngcontent-%COMP%]{background-color:#f44336;color:#fff}.progress-container[_ngcontent-%COMP%]{margin-top:1rem;position:relative;width:30%}.progress-label[_ngcontent-%COMP%]{position:absolute;width:100%;text-align:center;top:60%;transform:translateY(-50%);font-size:.9rem;font-weight:700}.bindingsCount[_ngcontent-%COMP%]{font-size:1rem;font-weight:lighter}.loading-spinner[_ngcontent-%COMP%]{margin-left:2rem;margin-top:2rem}.code-link[_ngcontent-%COMP%]{font-size:.8rem}.server-name[_ngcontent-%COMP%]{font-weight:lighter;font-style:italic;color:maroon}.replacement[_ngcontent-%COMP%]{font-weight:lighter;font-style:italic;color:#00800b;display:flex;align-items:center;font-size:.9rem;margin-left:2rem}.concept-is-inactive[_ngcontent-%COMP%]{color:maroon;font-size:.9rem;margin-bottom:0rem}#myFormContainer[_ngcontent-%COMP%], #tab-header[_ngcontent-%COMP%]{margin-top:1rem}.tab-container[_ngcontent-%COMP%]{padding:2rem}.outgoing-link[_ngcontent-%COMP%]{font-size:.8rem;float:right;margin-right:2rem}"]})}return t})();const roe=["questionnairesList"],ooe=["fileInput"];function aoe(t,i){1&t&&(_(0,"span"),k(1," / Validator"),v())}function soe(t,i){1&t&&(_(0,"span"),k(1," / Questionnaires repository"),v())}function coe(t,i){if(1&t){const e=Ne();_(0,"span",15)(1,"a",16),z("click",function(){return _e(e),be(V(2).mode="Manager")}),_(2,"mat-icon"),k(3,"play_arrow"),v(),_(4,"span"),k(5,"Reconnect to last FHIR Server"),v()(),_(6,"span",17),k(7),_(8,"i"),k(9),v(),k(10,'" )'),v()()}if(2&t){const e=V(2);w(7),it(" ( ",e.selectedFhirServer,' as "'),w(2),Ge(e.selectedUserTag)}}function loe(t,i){if(1&t){const e=Ne();_(0,"div",6)(1,"p"),k(2,"What do you want to do today?"),v(),_(3,"mat-radio-group",7),z("ngModelChange",function(r){return _e(e),be(V().step1Response=r)}),_(4,"mat-radio-button",8),k(5,"Edit a questionnaire in the NLM Form Builder"),v(),_(6,"mat-radio-button",9),k(7,"Load an example questionnaire"),v(),_(8,"mat-radio-button",10),k(9,"Upload and validate a questionnaire"),v(),_(10,"mat-radio-button",11),k(11,"Work with your questionnaires from a FHIR server"),v(),P(12,coe,11,2,"span",12),v(),_(13,"div",13)(14,"button",14),z("click",function(){return _e(e),be(V().advanceFromStep1())}),k(15,"Next"),v()()()}if(2&t){const e=V();w(3),S("ngModel",e.step1Response),w(9),S("ngIf",e.selectedFhirServer&&e.selectedUserTag),w(2),S("disabled",!e.step1Response)}}function doe(t,i){if(1&t&&(_(0,"span"),k(1," Connected to "),_(2,"a",30),k(3),v(),k(4,' as "'),_(5,"i"),k(6),v(),k(7,'" '),v()),2&t){const e=V(2);w(3),Ge(e.selectedFhirServer),w(3),Ge(e.selectedUserTag)}}function uoe(t,i){if(1&t){const e=Ne();_(0,"button",14),z("click",function(){return _e(e),be(V(2).openModularQuestionnaireModal())}),k(1," Create Modular Questionnaire "),v()}2&t&&S("disabled",V(2).validating)}function hoe(t,i){if(1&t){const e=Ne();_(0,"mat-tab",31)(1,"div",25)(2,"app-list-questionnaires",32,33),z("validateQuestionnaire",function(r){return _e(e),be(V(2).switchToValidateTab(r))})("previewQuestionnaire",function(r){return _e(e),be(V(2).switchToPreviewTab(r))}),v()()()}if(2&t){const e=V(2);w(2),S("config",e.listConfig)}}function foe(t,i){if(1&t){const e=Ne();_(0,"div")(1,"div",18),P(2,doe,8,2,"span",4),_(3,"input",19,20),z("change",function(r){return _e(e),be(V().onFileSelected(r))}),v(),_(5,"button",14),z("click",function(){return _e(e),be(wt(4).click())}),k(6," Upload "),v(),_(7,"button",14),z("click",function(){return _e(e),be(V().saveQuestionnaireToDisk())}),k(8,"Download"),v(),P(9,uoe,2,1,"button",21),v(),_(10,"mat-tab-group",22),z("selectedIndexChange",function(r){return _e(e),be(V().onTabChange(r))}),P(11,hoe,4,1,"mat-tab",23),_(12,"mat-tab",24)(13,"div",25),ge(14,"div",26),v()(),_(15,"mat-tab",27)(16,"app-validate-questionnaire",28,29),z("questionnaireUpdated",function(r){return _e(e),be(V().loadQuestionnaire(r))})("validatingQuestionnaire",function(r){return _e(e),be(V().validating=r)}),v()()()()}if(2&t){const e=V();w(2),S("ngIf","Manager"==e.mode),w(3),S("disabled",e.validating),w(2),S("disabled",e.validating||!e.questionnaire),w(2),S("ngIf","Manager"==e.mode),w(2),S("ngIf","Manager"===e.mode),w(3),Ye("hidden",!e.questionnaire),w(2),S("questionnaire",e.questionnaire)}}let moe=(()=>{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(dw,{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(){Sr(this.http.get("assets/questionnaires/Carcinoma-of-the-Exocrine-Pancreas-Histopathology-Reporting-Form.R4 (11).json")).then(e=>{this.loadQuestionnaire(e),"Manager"===this.mode&&(this.tabGroup.selectedIndex=1)})}clearQuestionnaire(){this.questionnaire=null,this.orderCounter=0,this.previewForm()}loadQuestionnaire(e){this.loading=!0,this.clearQuestionnaire(),setTimeout(()=>{this.loading=!1,this.questionnaire=e,this.previewForm()},700)}saveQuestionnaireToDisk(){var e=new Blob([JSON.stringify(this.questionnaire,null,2)],{type:"text/plain;charset=utf-8"});ps(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(Zi,{duration:5e3,data:"The file is not a FHIR Questionnaire Resource",panelClass:["red-snackbar"]})}catch(a){console.error(a),this._snackBar.openFromComponent(Zi,{duration:5e3,data:"Invalid JSON file",panelClass:["red-snackbar"]})}},r.readAsText(n)}}postCurrentQuestionnaire(){this.postQuestionnaire(this.questionnaire)}postQuestionnaire(e){if(-1!==this.questionnairesList.questionnaires.findIndex(r=>r.title===e.title&&r.id!==e.id))this.dialog.open(bP,{width:"400px",data:{title:"Confirm Action",message:"A questionnaire with the same title and different ID already exists. Do you want to proceed?"}}).afterClosed().subscribe(o=>{o?this.saveQuestionnaire(e):(this._snackBar.openFromComponent(Zi,{duration:5e3,data:"Questionnaire save action cancelled",panelClass:["red-snackbar"]}),console.log("User cancelled the action"))});else{-1!==this.questionnairesList.questionnaires.findIndex(a=>a.title===e.title&&a.id===e.id&&a.meta.versionId>e.meta.versionId)?this.dialog.open(bP,{width:"400px",data:{title:"Confirm Action",message:"A newer version of this questionnaire already exists. Do you want to proceed?"}}).afterClosed().subscribe(s=>{s?this.saveQuestionnaire(e):(this._snackBar.openFromComponent(Zi,{duration:5e3,data:"Questionnaire save action cancelled",panelClass:["red-snackbar"]}),console.log("User cancelled the action"))}):this.saveQuestionnaire(e)}}saveQuestionnaire(e){this.savingQuestionnaire=!0,this._snackBar.openFromComponent(Zi,{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(wo()).subscribe(n=>{setTimeout(()=>{this.tabGroup.selectedIndex=0,setTimeout(()=>{this.savingQuestionnaire=!1,this.questionnairesList.addQuestionnaire(n)},300)},300),this._snackBar.openFromComponent(Zi,{duration:5e3,data:"Questionnaire saved successfully",panelClass:["green-snackbar"]})},n=>{this.savingQuestionnaire=!1,this._snackBar.openFromComponent(Zi,{duration:5e3,data:"Error saving questionnaire",panelClass:["red-snackbar"]})})}listQuestionnaires(){this.fhirService.getQuestionnairesByTag(this.selectedUserTag).pipe(wo()).subscribe(e=>{},e=>{console.error(e)})}openLoadQuestionnairesDialog(){this.dialog.open(vre,{width:"70%"}).afterClosed().subscribe(n=>{this.loadQuestionnaire(n)})}setFhirServer(){this.fhirService.setBaseUrl(this.selectedFhirServer),this.fhirService.setUserTag(this.selectedUserTag)}setupFhirServer(){this.dialog.open(dw,{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(dw,{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(pP,{width:"75%"}).afterClosed().subscribe(n=>{n&&this.questionnaireService.generateRootQuestionnaire(n.title,n.questionnaires).then(r=>{this.postQuestionnaire(r)}).catch(r=>{console.error("Error:",r)})})}static#e=this.\u0275fac=function(n){return new(n||t)(x(zs),x(Yn),x(wf),x(gP),x(du),x(Qd))};static#t=this.\u0275cmp=Le({type:t,selectors:[["app-questionnaires-main"]],viewQuery:function(n,r){if(1&n&&(rt(cl,5),rt(gf,5),rt(roe,5),rt(ooe,5)),2&n){let o;Se(o=De())&&(r.sort=o.first),Se(o=De())&&(r.tabGroup=o.first),Se(o=De())&&(r.questionnairesList=o.first),Se(o=De())&&(r.uploadInput=o.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"],["id","reconnect",4,"ngIf"],[1,"step-button-container"],["mat-flat-button","","color","accent",3,"disabled","click"],["id","reconnect"],["href","javascript:void(0)","id","reconnect-link",3,"click"],[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(n,r){1&n&&(_(0,"div",0)(1,"h2",1),k(2," SNOMED CT Terminology Bindings Validator - FHIR Questionnaire Manager "),v(),_(3,"div",2)(4,"span")(5,"a",3),z("click",function(){return r.mode="step1"}),k(6,"Home"),v(),P(7,aoe,2,0,"span",4),P(8,soe,2,0,"span",4),v()()(),P(9,loe,16,3,"div",5),P(10,foe,18,8,"div",4)),2&n&&(w(7),S("ngIf","Validator"==r.mode),w(1),S("ngIf","Manager"==r.mode),w(1),S("ngIf","step1"==r.mode),w(1),S("ngIf","Manager"==r.mode||"Validator"==r.mode))},dependencies:[Yi,Dr,oo,So,S0,gf,ta,sw,cw,_P,noe],styles:[".header[_ngcontent-%COMP%]{margin-left:2rem;margin-top:1rem}.table-container[_ngcontent-%COMP%]{margin-left:2rem;margin-right:2rem}.button-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:1rem;margin-right:2rem;align-items:center}.bottom-spacer[_ngcontent-%COMP%]{margin-bottom:1rem}.pill[_ngcontent-%COMP%]{padding:5px 10px;border-radius:20px;font-weight:700;text-align:center;display:inline-block;font-size:.8rem}.pill.Active[_ngcontent-%COMP%]{background-color:#4caf50;color:#fff}.pill.Inactive[_ngcontent-%COMP%]{background-color:#ffc107;color:#fff}.pill.Error[_ngcontent-%COMP%]{background-color:#f44336;color:#fff}.mini-pill[_ngcontent-%COMP%]{padding:5px 10px;border-radius:20px;text-align:center;font-weight:700;font-size:.9rem;margin-right:2rem;float:right}.mini-pill.Active[_ngcontent-%COMP%]{background-color:#4caf50;color:#fff}.mini-pill.Inactive[_ngcontent-%COMP%]{background-color:#ffc107;color:#fff}.mini-pill.Error[_ngcontent-%COMP%]{background-color:#f44336;color:#fff}.progress-container[_ngcontent-%COMP%]{margin-top:1rem;position:relative;width:30%}.progress-label[_ngcontent-%COMP%]{position:absolute;width:100%;text-align:center;top:60%;transform:translateY(-50%);font-size:.9rem;font-weight:700}.bindingsCount[_ngcontent-%COMP%]{font-size:1rem;font-weight:lighter}.loading-spinner[_ngcontent-%COMP%]{margin-left:2rem;margin-top:2rem}.code-link[_ngcontent-%COMP%]{font-size:.8rem}.server-name[_ngcontent-%COMP%]{font-weight:lighter;font-style:italic;color:maroon}.replacement[_ngcontent-%COMP%]{font-weight:lighter;font-style:italic;color:#00800b;display:flex;align-items:center;font-size:.9rem;margin-left:2rem}.concept-is-inactive[_ngcontent-%COMP%]{color:maroon;font-size:.9rem;margin-bottom:0rem}#myFormContainer[_ngcontent-%COMP%], #tab-header[_ngcontent-%COMP%]{margin-top:1rem}.tab-container[_ngcontent-%COMP%]{padding-top:1rem;padding-left:2rem;padding-right:2rem}.outgoing-link[_ngcontent-%COMP%]{font-size:.8rem;float:right;margin-right:2rem}#step1[_ngcontent-%COMP%]{margin-top:2rem;margin-left:2rem;font-size:large}#step1[_ngcontent-%COMP%] mat-radio-group[_ngcontent-%COMP%]{margin-left:2rem;display:flex;flex-direction:column;align-items:flex-start}.step-button-container[_ngcontent-%COMP%]{margin-left:30rem;margin-top:2rem}.breadcrumb[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:2rem}.header-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.hidden[_ngcontent-%COMP%]{visibility:hidden}.muted[_ngcontent-%COMP%]{color:#8f9397}#reconnect[_ngcontent-%COMP%]{margin-left:5rem}#reconnect-link[_ngcontent-%COMP%]{display:flex;vertical-align:middle;flex-direction:row}"]})}return t})();function poe(t,i){if(1&t&&(_(0,"p",19),k(1),v()),2&t){const e=V();w(1),Ge(e.studentSubsetDefinition)}}function goe(t,i){1&t&&ge(0,"mat-spinner",20)}function _oe(t,i){if(1&t&&(_(0,"div",21)(1,"h4"),k(2,"Validation Results"),v(),_(3,"p",22),k(4),v(),_(5,"p",22),k(6),v(),_(7,"p",22),k(8),v()()),2&t){const e=V();w(4),Ge(e.definitionVsMembersValudationResult),w(2),Ge(e.definitionValidationResult),w(2),Ge(e.membersValidationResult)}}function boe(t,i){1&t&&(_(0,"th",33),k(1,"ID"),v())}function voe(t,i){if(1&t&&(_(0,"td",34),k(1),v()),2&t){const e=i.$implicit;w(1),Ge(e.referencedComponentId)}}function xoe(t,i){1&t&&(_(0,"th",33),k(1,"Name"),v())}function yoe(t,i){if(1&t&&(_(0,"td",34),k(1),v()),2&t){const e=i.$implicit;w(1),Ge(e.name)}}function woe(t,i){1&t&&(_(0,"th",33),k(1,"Result"),v())}function Coe(t,i){if(1&t&&(_(0,"td",34),k(1),v()),2&t){const e=i.$implicit;w(1),Ge(e.result.value)}}function koe(t,i){1&t&&(_(0,"th",33),k(1,"Definition"),v())}function Soe(t,i){if(1&t&&(_(0,"td",34),k(1),v()),2&t){const e=i.$implicit;w(1),Ge(e.scope.value)}}function Doe(t,i){1&t&&ge(0,"tr",35)}function Eoe(t,i){1&t&&ge(0,"tr",36)}function Toe(t,i){if(1&t&&(_(0,"div",23)(1,"table",24),di(2,25),P(3,boe,2,0,"th",26),P(4,voe,2,1,"td",27),ui(),di(5,28),P(6,xoe,2,0,"th",26),P(7,yoe,2,1,"td",27),ui(),di(8,29),P(9,woe,2,0,"th",26),P(10,Coe,2,1,"td",27),ui(),di(11,30),P(12,koe,2,0,"th",26),P(13,Soe,2,1,"td",27),ui(),P(14,Doe,1,0,"tr",31),P(15,Eoe,1,0,"tr",32),v()()),2&t){const e=V();w(1),S("dataSource",e.studentSubsetMembersDataSource),w(13),S("matHeaderRowDef",e.studentSubsetMembersDisplayedColumns),w(1),S("matRowDefColumns",e.studentSubsetMembersDisplayedColumns)}}let Moe=(()=>{class t{constructor(e,n,r){this.http=e,this.terminologyService=n,this._snackBar=r,this.studentSubsetMembersDisplayedColumns=["referencedComponentId","name","result","scope"],this.studentSubsetMembersDataSource=new af,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 af(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 fi(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 fi(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 af,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(Zi,{duration:5e3,data:"Error reading file: "+a.message,panelClass:["red-snackbar"]}),this.loading=!1}},r.onerror=o=>{this._snackBar.openFromComponent(Zi,{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(Zi,{duration:5e3,data:"Error reading file: "+a.message,panelClass:["red-snackbar"]}),this.loading=!1}},r.onerror=o=>{this._snackBar.openFromComponent(Zi,{duration:5e3,data:"Error reading file: "+o,panelClass:["red-snackbar"]}),this.loading=!1},r.readAsText(n)}else this.loading=!1}static#e=this.\u0275fac=function(n){return new(n||t)(x(zs),x(Yn),x(Qd))};static#t=this.\u0275cmp=Le({type:t,selectors:[["app-subset-validator"]],viewQuery:function(n,r){if(1&n&&rt(cl,5),2&n){let o;Se(o=De())&&(r.sort=o.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(n,r){if(1&n){const o=Ne();_(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3"),k(4,"Subset Members Validator"),v(),_(5,"p"),k(6),v(),P(7,poe,2,1,"p",3),_(8,"input",4,5),z("change",function(s){return r.onSubsetmembersFileSelected(s)}),v(),_(10,"input",4,6),z("change",function(s){return r.onDefinitionFileSelected(s)}),v(),_(12,"div",7)(13,"button",8),z("click",function(){return _e(o),be(wt(11).click())}),k(14,"Upload Definition File"),v(),_(15,"button",8),z("click",function(){return _e(o),be(wt(9).click())}),k(16,"Upload Members File"),v(),_(17,"button",9),z("click",function(){return r.validateSubsetMembers()}),k(18,"Validate"),v(),P(19,goe,1,0,"mat-spinner",10),v(),P(20,_oe,9,3,"div",11),v(),P(21,Toe,16,3,"div",12),v(),_(22,"div",13)(23,"h3"),k(24,"Assignment"),v(),_(25,"button",14),k(26),v(),_(27,"mat-menu",15,16)(29,"button",17),z("click",function(){return r.setAssignment("moduleD")}),k(30,"Module D Assignment"),v()(),_(31,"h3"),k(32,"Instructions"),v(),_(33,"div",18)(34,"ol")(35,"li"),k(36,"Select assignment"),v(),_(37,"li"),k(38,"Upload definition file"),v(),_(39,"li"),k(40,"Upload members file"),v(),_(41,"li"),k(42,"Click validate"),v()()()()()}if(2&n){const o=wt(28);w(6),it("Validating against ",r.terminologyService.getFhirUrlParam(),""),w(1),S("ngIf",r.studentSubsetDefinition),w(10),S("disabled",!r.studentSubsetDefinition||!r.studentSubsetMembersDataSource.data.length),w(2),S("ngIf",r.loading||r.validatingMembers||r.validatingDefinition),w(1),S("ngIf",r.definitionValidationResult||r.membersValidationResult),w(1),S("ngIf",!r.loading&&r.studentSubsetMembersDataSource.data.length),w(4),S("matMenuTriggerFor",o),w(1),it("Selected assignment: ",r.selectedAssignment,"")}},dependencies:[Yi,Dr,Qc,ka,Yc,Yd,eu,Zc,tu,Jc,Kc,iu,el,tl,nu,ru],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}"]})}return t})(),Ioe=(()=>{class t{constructor(e){this.terminologyService=e,this.goals=[{name:"Bronze",score:100},{name:"Silver",score:200},{name:"Gold",score:300},{name:"Platinum",score:400},{name:"Diamond",score:500}],this.difficultyLevels=[{name:"Easy",rules:{maxHitPoints:5,hitpointsAwardedForGuessingfullTerm:1,freeHints:2,pointsPerGuessedLetter:1,goals:this.goals}},{name:"Medium",rules:{maxHitPoints:4,hitpointsAwardedForGuessingfullTerm:1,freeHints:1,pointsPerGuessedLetter:2,goals:this.goals}},{name:"Hard",rules:{maxHitPoints:3,hitpointsAwardedForGuessingfullTerm:1,freeHints:0,pointsPerGuessedLetter:3,goals:this.goals}}],this.rules=this.difficultyLevels[0].rules,this.fsn="",this.scg="",this.focusConcepts=[],this.attributePairs=[],this.usedHints=new Set,this.randomLimit=4e3,this.guessResult=new Ce,this.termResult=new Ce,this.game=new Ki(this.initialize())}loadMenu(){this.game.next({...this.game.value,state:"menu"})}getDifficultyLevels(){return this.difficultyLevels}newRound(e){var n=this;return fi(function*(){n.game.next({...n.game.value,state:"choosingTerm",score:e?0:n.game.value.score,hitPoints:e?n.rules.maxHitPoints:n.game.value.hitPoints,round:e?1:n.game.value.round+1});const r=Math.floor(Math.random()*n.randomLimit)+1,o=yield Sr(n.terminologyService.expandValueSet("^ 816080008 |International Patient Summary| {{ C definitionStatus = defined }}","",r,1));n.randomLimit=o.expansion.total-1;const a=yield Sr(n.terminologyService.lookupConcept(o.expansion.contains[0].code));let s=n.extractFSN(a);n.fsn=s||"";let c=n.extractScg(a);n.scg=c||"";let l=n.extractFocusConcepts(c||"");n.focusConcepts=l||[];let d=n.extractAttributePairs(c||"");n.attributePairs=d||[],s?n.initializeRound(s,e):n.initializeRound("No term found"),n.game.next({...n.game.value,state:"playing"}),n.usedHints.clear()})()}extractFSN(e){let n=this.extractTerm(e,"900000000000003001",this.terminologyService.getLang());return n||(n=this.extractTerm(e,"900000000000013009",this.terminologyService.getLang())),n||(n=this.extractTerm(e,"900000000000003001","en")),n}extractTerm(e,n,r){let o="";return e.parameter.forEach(a=>{if("designation"===a.name){let s=a.part.some(l=>"use"===l.name&&l.valueCoding.code===n),c=a.part.some(l=>"language"===l.name&&l.valueCode===r);s&&c&&(o=a.part.find(l=>"value"===l.name)?.valueString)}}),o}extractScg(e){let n;return e.parameter.forEach(r=>{"property"===r.name&&r.part.some(o=>"code"===o.name&&"normalForm"===o.valueString)&&(n=r.part.find(o=>"valueString"===o.name)?.valueString)}),n}extractFocusConcepts(e){const[n]=e.split(":").map(s=>s.trim()),o=n.match(/\d+\|.*?\|/g);return o?o.map(s=>this.transformSnomedConcept(s.trim())||{code:"",display:""}).filter(s=>""!==s.code):[]}extractAttributePairs(e){const n=e.split(":").slice(1).join(":").trim(),r=/(\d+\|.*?\|)\s*=\s*(\d+\|.*?\|)/g;let o;const a=[];for(;null!==(o=r.exec(n));){const s=this.transformSnomedConcept(o[1].trim()),c=this.transformSnomedConcept(o[2].trim());s&&c&&a.push({type:s,target:c})}return a}transformSnomedConcept(e){const r=e.match(/^(\d+)\|(.+?)\|$/);return r?{code:r[1],display:r[2]}:null}initialize(){return{term:"",displayTerm:[],hitPoints:this.rules.maxHitPoints,hintsAvailable:!0,hints:[],state:"menu",score:0,round:0,rules:this.rules,difficultyLevel:""}}startGame(e){this.rules=this.difficultyLevels.find(n=>n.name.toLowerCase()===e.toLocaleLowerCase())?.rules,this.game.next({term:"",displayTerm:[],hitPoints:this.rules.maxHitPoints,hintsAvailable:!0,hints:[],state:"playing",score:0,round:0,rules:this.rules,difficultyLevel:e}),this.newRound(!0)}initializeRound(e,n){const r=e.match(/\(([^)]+)\)$/),o=r?r[0]:"",a=o?e.lastIndexOf(o):e.length,s=e.split("").map((c,l)=>l>=a?c:/[a-zA-Z0-9\xe1-\xfa\xf1]/.test(c)?"_":c);this.game.next({...this.game.value,term:e,displayTerm:s,hitPoints:n?this.rules.maxHitPoints:this.game.value.hitPoints,hints:[],state:"playing",score:n?0:this.game.value.score});for(let c=0;c{sthis.rules.maxHitPoints&&(n.hitPoints=this.rules.maxHitPoints),setTimeout(()=>{this.newRound()},1500))):(this.guessResult.emit({letter:e,result:!1}),n.hitPoints-=1,n.hitPoints<=0&&(n.hitPoints=0,n.state="gameOver")),this.game.next(n)}guessTerm(e){return e.toLowerCase()===this.game.value.term.toLowerCase()?(this.termResult.emit(e),this.game.next({...this.game.value,displayTerm:this.game.value.term.split("")}),!0):(this.game.next({...this.game.value,hitPoints:this.game.value.hitPoints-1}),this.game.value.hitPoints<=0&&this.game.next({...this.game.value,hitPoints:0,state:"gameOver"}),!1)}revealHint(e){let n={...this.game.value},r="";if(0===this.focusConcepts.length&&0===this.attributePairs.length)return n.hints.push("No more hints available."),void this.game.next(n);let o=this.focusConcepts.length>0,a=this.attributePairs.length>0;if(o&&a&&(o=Math.random()<.5),o){let s=Math.floor(Math.random()*this.focusConcepts.length);r=`One of the parents of this concept is: ${this.focusConcepts[s].display}`,this.focusConcepts.splice(s,1)}else if(a){let s=Math.floor(Math.random()*this.attributePairs.length),c=this.attributePairs[s];r=`This concept has a ${c.type.display} of ${c.target.display}`,this.attributePairs.splice(s,1)}this.usedHints.add(r),n.hints.push(r),e||(n.hitPoints-=1),n.hintsAvailable=this.focusConcepts.length>0||this.attributePairs.length>0,this.game.next(n),n.hitPoints<=0&&(n.hitPoints=0,n.state="gameOver",this.game.next(n))}getGameState(){return this.game.asObservable()}static#e=this.\u0275fac=function(n){return new(n||t)(X(Yn))};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Foe=(()=>{class t{constructor(){this.loadingProgress=new Ki(0)}preloadImages(e){const n=e.map((r,o)=>this.preloadImage(r,e.length,o));return Promise.all(n).then(()=>{this.loadingProgress.next(100)})}preloadImage(e,n,r){return new Promise((o,a)=>{const s=new Image;s.src=e,s.onload=()=>{this.loadingProgress.next((r+1)/n*100),o()},s.onerror=a})}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Roe(t,i){if(1&t){const e=Ne();_(0,"button",4),z("click",function(){const o=_e(e).$implicit;return be(V(2).guessLetter(o))}),k(1),v()}if(2&t){const e=i.$implicit,n=V(2);Ye("guessed-correct","correct"===n.guessedLetters[e])("guessed-wrong","wrong"===n.guessedLetters[e]),S("disabled",n.isLetterGuessed(e)),w(1),it(" ",e," ")}}function Ooe(t,i){if(1&t&&(_(0,"div",2),P(1,Roe,2,6,"button",3),v()),2&t){const e=i.$implicit;w(1),S("ngForOf",e)}}let Poe=(()=>{class t{constructor(){this.keyboardLayout=[["1","2","3","4","5","6","7","8","9","0"],["Q","W","E","R","T","Y","U","I","O","P"],["A","S","D","F","G","H","J","K","L"],["Z","X","C","V","B","N","M"]],this.guessedLetters={},this.letterGuessed=new Ce}addGuessedLetter(e,n){this.guessedLetters[e]=n?"correct":"wrong"}guessLetter(e){this.letterGuessed.emit(e)}isLetterGuessed(e){return e in this.guessedLetters}markLetterAsGuessed(e,n){this.guessedLetters[e]=n}reset(){this.guessedLetters={}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Le({type:t,selectors:[["app-keyboard"]],outputs:{letterGuessed:"letterGuessed"},decls:2,vars:1,consts:[[1,"keyboard-container"],["class","keyboard-row",4,"ngFor","ngForOf"],[1,"keyboard-row"],["mat-button","",3,"guessed-correct","guessed-wrong","disabled","click",4,"ngFor","ngForOf"],["mat-button","",3,"disabled","click"]],template:function(n,r){1&n&&(_(0,"div",0),P(1,Ooe,2,1,"div",1),v()),2&n&&(w(1),S("ngForOf",r.keyboardLayout))},dependencies:[kr,Dr],styles:[".keyboard-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.keyboard-row[_ngcontent-%COMP%]{display:flex;justify-content:center;margin:5px;flex-wrap:wrap}button[_ngcontent-%COMP%]{margin:2px;padding:8px 6px;border-radius:8px;border:1px solid #000;transition:background-color .3s ease;min-width:40px;flex:1}button.guessed-correct[_ngcontent-%COMP%]{background-color:green;color:#fff}button.guessed-wrong[_ngcontent-%COMP%]{background-color:red;color:#fff}@media (max-width: 768px){.keyboard-row[_ngcontent-%COMP%]{margin:1px 0}.keyboard-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:1px;padding:8px;min-width:0;width:9%;flex:1 1 auto;font-size:14px}}"]})}return t})();const Loe=["keyboard"];function Noe(t,i){if(1&t&&(_(0,"div",7)(1,"div",8)(2,"div",9),k(3," Loading... "),v(),ge(4,"mat-progress-bar",10),v()()),2&t){const e=V(2);w(4),S("value",e.loadingAssetsProgress)}}function Boe(t,i){if(1&t&&(_(0,"span"),k(1),v()),2&t){const e=i.$implicit;w(1),Ge(e)}}function Voe(t,i){if(1&t&&(_(0,"span",33),P(1,Boe,2,1,"span",19),v()),2&t){const e=i.$implicit;w(1),S("ngForOf",e.split(""))}}function Hoe(t,i){if(1&t&&(_(0,"div",31),P(1,Voe,2,1,"span",32),v()),2&t){const e=V(2).ngIf;w(1),S("ngForOf",e.displayTerm.join("").split(" "))}}function Uoe(t,i){1&t&&(_(0,"div",34)(1,"div",35),k(2," Choosing a random SNOMED CT concept using the FHIR API "),v(),ge(3,"mat-progress-bar",36),v())}function zoe(t,i){1&t&&(_(0,"span")(1,"mat-icon"),k(2,"favorite"),v()())}function $oe(t,i){1&t&&(_(0,"span")(1,"mat-icon"),k(2,"favorite_border"),v()())}function joe(t,i){if(1&t){const e=Ne();_(0,"div",37),z("click",function(){return _e(e),be(V(3).revealHint())}),k(1," Reveal Hint "),v()}}function Woe(t,i){if(1&t){const e=Ne();_(0,"div",37),z("click",function(){return _e(e),be(V(3).loadMenu())}),k(1," Abandon game "),v()}}function Goe(t,i){1&t&&ge(0,"li",41),2&t&&S("innerHTML",i.$implicit,Mc)}function qoe(t,i){if(1&t&&(_(0,"div",38)(1,"div",39)(2,"h2"),k(3,"Hints:"),v(),_(4,"ul"),P(5,Goe,1,1,"li",40),v()()()),2&t){const e=V(2).ngIf;w(5),S("ngForOf",e.hints)}}const uw=function(t){return[t]};function Xoe(t,i){if(1&t&&(_(0,"mat-icon",47),k(1,"grade"),v()),2&t){const e=V().$implicit;en("left",V(3).calculateGoalPosition(e.score-5),"%"),S("ngClass",Ja(3,uw,e.name.toLowerCase()))}}function Qoe(t,i){if(1&t&&(_(0,"mat-icon",48),k(1,"grade"),v()),2&t){const e=V().$implicit;en("left",V(3).calculateGoalPosition(e.score-1),"%"),S("ngClass",Ja(3,uw,e.name.toLowerCase()))}}function Yoe(t,i){if(1&t&&(_(0,"div",49),k(1),v()),2&t){const e=V().$implicit;en("left",V(3).calculateGoalPosition(e.score),"%"),S("ngClass",Ja(4,uw,e.name.toLowerCase())),w(1),it("",e.name," trophy!")}}const Koe=function(t,i){return[t,i]};function Zoe(t,i){if(1&t&&(di(0),ge(1,"div",42),P(2,Xoe,2,5,"mat-icon",43),_(3,"mat-icon",44),k(4,"emoji_events"),v(),P(5,Qoe,2,5,"mat-icon",45),P(6,Yoe,2,6,"div",46),ui()),2&t){const e=i.$implicit,n=V(2).ngIf,r=V();w(1),function NE(t){Wo(T7,va,t,!0)}(e.name.toLowerCase()),en("left",r.calculateGoalPosition(e.score),"%"),w(1),S("ngIf",n.score>=e.score),w(1),en("left",r.calculateGoalPosition(e.score-3),"%"),S("ngClass",Wv(10,Koe,e.name.toLowerCase(),n.score>=e.score?"trophy-large":"")),w(2),S("ngIf",n.score>=e.score),w(1),S("ngIf",n.score>=e.score)}}const yP=function(){return[]};function Joe(t,i){if(1&t){const e=Ne();_(0,"div")(1,"div",11)(2,"div",12),ge(3,"img",13),_(4,"div",14),k(5),v()()(),P(6,Hoe,2,1,"div",15),P(7,Uoe,4,0,"div",16),_(8,"div",17)(9,"span",18),k(10),v(),P(11,zoe,3,0,"span",19),P(12,$oe,3,0,"span",19),v(),_(13,"p",20),k(14,"Click the keys to guess the letters of the term!"),v(),_(15,"div")(16,"app-keyboard",21,22),z("letterGuessed",function(r){return _e(e),be(V(2).guessLetter(r))}),v()(),_(18,"div",23),P(19,joe,2,0,"div",24),P(20,Woe,2,0,"div",25),v(),_(21,"div",26),k(22," * Hints are generated from the definition of the SNOMED CT concept, retrieved from the FHIR API as an SCG grammar expression "),v(),P(23,qoe,6,1,"div",27),_(24,"div",28)(25,"h3"),k(26,"Score Progression"),v(),_(27,"div",29),ge(28,"mat-progress-bar",30),P(29,Zoe,7,13,"ng-container",19),v()()()}if(2&t){const e=V().ngIf,n=V();w(5),it(" ",e.difficultyLevel," "),w(1),S("ngIf","playing"==e.state),w(1),S("ngIf","choosingTerm"===e.state),w(3),vd(" Round: ",e.round," \xa0\xa0\xa0\xa0 Score: ",e.score," \xa0\xa0\xa0\xa0 Life: "),w(1),S("ngForOf",Go(13,yP).constructor(e.hitPoints)),w(1),S("ngForOf",Go(14,yP).constructor(e.rules.maxHitPoints-e.hitPoints)),w(3),S("@shake",n.shakeState),w(4),S("ngIf","playing"==e.state&&e.hintsAvailable&&e.hitPoints>1),w(1),S("ngIf","playing"==e.state),w(3),S("ngIf",e.hints.length>0&&"playing"==e.state),w(5),S("value",n.calculateProgress(e.score)),w(1),S("ngForOf",n.goals)}}function eae(t,i){if(1&t){const e=Ne();_(0,"div",50),ge(1,"img",51)(2,"img",52),_(3,"p",53)(4,"b"),k(5,"Welcome to SnoGuess!"),v()(),_(6,"p",53),k(7," A fun way to learn about SNOMED CT concepts and their definitions. "),v(),_(8,"div",54),z("click",function(){return _e(e),be(V(2).chooseDifficultyLevel())}),k(9," New game "),v(),_(10,"div",55),z("click",function(){return _e(e),be(V(2).showInstructionsPanel())}),k(11," Instructions "),v(),_(12,"p",56),k(13),v()()}if(2&t){const e=V(2);w(2),S("@popIn",void 0),w(6),S("@scrollUp",void 0),w(2),S("@scrollUp",void 0),w(3),vd(" Playing with: ",e.selectedEdition,", Language: ",e.selectedLanguage," ")}}function tae(t,i){if(1&t){const e=Ne();_(0,"div",60)(1,"div",61),z("click",function(){const o=_e(e).$implicit;return be(V(3).startGame(o.name))}),k(2),v(),_(3,"p",62),k(4),_(5,"mat-icon",63),k(6,"favorite"),v(),k(7),_(8,"mat-icon",64),k(9,"contact_support"),v(),k(10),v()()}if(2&t){const e=i.$implicit;w(1),S("@scrollUp",void 0),w(1),it(" ",e.name," "),w(1),S("@fadeInDelayed",void 0),w(1),it(" Life: ",e.rules.maxHitPoints," "),w(3),it(", Free hints: ",e.rules.freeHints," "),w(3),it(", Points per letter: ",e.rules.pointsPerGuessedLetter," ")}}function iae(t,i){if(1&t){const e=Ne();_(0,"div",50),ge(1,"img",51)(2,"img",57),_(3,"p",53)(4,"b"),k(5,"Choose the game difficulty"),v()(),P(6,tae,11,6,"div",58),_(7,"div",59),z("click",function(){return _e(e),be(V(2).backToMenu())}),k(8," Back "),v()()}if(2&t){const e=V(2);w(2),S("@popIn",void 0),w(4),S("ngForOf",e.difficultyLevels),w(1),S("@scrollUp",void 0)}}function nae(t,i){if(1&t){const e=Ne();_(0,"div",50),ge(1,"img",51)(2,"img",65),_(3,"ul",66)(4,"li",67)(5,"mat-icon"),k(6,"check"),v(),k(7,"Click the keys on the screen to guess the letters of the term "),_(8,"mat-icon",68),k(9,"keyboard"),v()(),_(10,"li",67)(11,"mat-icon"),k(12,"check"),v(),k(13,"You have three to five lives, depending on your difficulty level "),_(14,"span",69)(15,"mat-icon"),k(16,"favorite"),v(),_(17,"mat-icon"),k(18,"favorite"),v(),_(19,"mat-icon"),k(20,"favorite"),v()()(),_(21,"li",67)(22,"mat-icon"),k(23,"check"),v(),k(24,"You will loose one life with each wrong guess "),_(25,"mat-icon",69),k(26,"favorite_border"),v()(),_(27,"li",67)(28,"mat-icon"),k(29,"check"),v(),k(30,"You earn points for each correct guess "),_(31,"mat-icon",68),k(32,"plus_one"),v()(),_(33,"li",67)(34,"mat-icon"),k(35,"check"),v(),k(36,"In Easy mode you get 2 hints for free, and in Medium mode you get one \u{1f4a1} "),v(),_(37,"li",67)(38,"mat-icon"),k(39,"check"),v(),k(40,"You can reveal more hints, but each hint it will cost one life "),_(41,"mat-icon",69),k(42,"favorite_border"),v()(),_(43,"li",67)(44,"mat-icon"),k(45,"check"),v(),k(46,"If you guess the whole term you can recover one life"),_(47,"mat-icon",69),k(48,"favorite"),v()(),_(49,"li",67)(50,"mat-icon"),k(51,"check"),v(),k(52,"Keep guessing terms to increase your score and earn trophies "),_(53,"mat-icon",70),k(54,"emoji_events"),v()()(),_(55,"div",71),z("click",function(){return _e(e),be(V(2).hideInstructionsPanel())}),k(56," Back "),v()()}2&t&&(w(2),S("@popIn",void 0),w(53),S("@scrollUp",void 0))}function rae(t,i){1&t&&(_(0,"div",72),ge(1,"img",73),v()),2&t&&(w(1),S("@popIn",void 0))}function oae(t,i){if(1&t&&(_(0,"div"),k(1),v()),2&t){const e=V(2).ngIf,n=V();w(1),it(" Trophy: ",n.getMaxTrophyObtained(e.score)," ")}}const wP=function(t){return[t,"shadow-local"]},aae=function(t){return[t,"trophy-large","shadow-local"]};function sae(t,i){if(1&t&&(_(0,"div")(1,"mat-icon",81),k(2,"grade"),v(),k(3," \xa0\xa0 "),_(4,"mat-icon",81),k(5,"emoji_events"),v(),k(6," \xa0 "),_(7,"mat-icon",81),k(8,"grade"),v()()),2&t){const e=V(2).ngIf,n=V();w(1),S("ngClass",Ja(3,wP,n.getMaxTrophyObtained(e.score).toLocaleLowerCase())),w(3),S("ngClass",Ja(5,aae,n.getMaxTrophyObtained(e.score).toLocaleLowerCase())),w(3),S("ngClass",Ja(7,wP,n.getMaxTrophyObtained(e.score).toLocaleLowerCase()))}}function cae(t,i){if(1&t){const e=Ne();_(0,"div",50),ge(1,"img",51)(2,"img",74),_(3,"div",75)(4,"div"),k(5," The term was: "),v(),_(6,"div",76),k(7),v(),_(8,"div",77),k(9),v(),_(10,"div",78),k(11),v(),P(12,oae,2,1,"div",4),v(),P(13,sae,9,9,"div",4),_(14,"div",79),z("click",function(){_e(e);const r=V(2);return r.loadMenu(),be(r.chooseDifficultyLevel())}),k(15," New game "),v(),_(16,"div",80),z("click",function(){return _e(e),be(V(2).loadMenu())}),k(17," Main menu "),v()()}if(2&t){const e=V().ngIf,n=V();w(2),S("@popIn",void 0),w(5),it(" ",e.term,""),w(2),vd("",e.round," ",1==e.round?"round":"rounds",""),w(2),it("Final Score: ",e.score," points"),w(1),S("ngIf",n.getMaxTrophyObtained(e.score)),w(1),S("ngIf",n.getMaxTrophyObtained(e.score)),w(1),S("@scrollUp",void 0),w(2),S("@scrollUp",void 0)}}function lae(t,i){if(1&t){const e=Ne();_(0,"div",50),ge(1,"img",51)(2,"img",82),_(3,"div",83)(4,"mat-icon",84),k(5,"grade"),v(),_(6,"mat-icon",84),k(7,"emoji_events"),v(),_(8,"mat-icon",84),k(9,"grade"),v()(),_(10,"div",85),k(11),v(),_(12,"div",79),z("click",function(){_e(e);const r=V(2);return r.loadMenu(),be(r.chooseDifficultyLevel())}),k(13," New game "),v(),_(14,"div",80),z("click",function(){return _e(e),be(V(2).loadMenu())}),k(15," Main menu "),v()()}if(2&t){const e=V().ngIf;w(2),S("@popIn",void 0),w(9),it("Final score: ",e.score,""),w(1),S("@scrollUp",void 0),w(2),S("@scrollUp",void 0)}}function dae(t,i){if(1&t&&(_(0,"div",2),P(1,Noe,5,1,"div",3),P(2,Joe,30,15,"div",4),P(3,eae,14,5,"div",5),P(4,iae,9,3,"div",5),P(5,nae,57,2,"div",5),P(6,rae,2,1,"div",6),P(7,cae,18,9,"div",5),P(8,lae,16,4,"div",5),v()),2&t){const e=i.ngIf,n=V();w(1),S("ngIf",n.loadingAssets),w(1),S("ngIf",("playing"==e.state||"choosingTerm"==e.state)&&!n.loadingAssets),w(1),S("ngIf","menu"===e.state&&!n.chooseDifficulty&&!n.showInstructions&&!n.loadingAssets),w(1),S("ngIf","menu"===e.state&&n.chooseDifficulty&&!n.showInstructions&&!n.loadingAssets),w(1),S("ngIf",n.showInstructions),w(1),S("ngIf",n.termGuessed),w(1),S("ngIf","gameOver"===e.state),w(1),S("ngIf","won"==e.state)}}let uae=(()=>{class t{constructor(e,n,r){this.snoguessMainService=e,this.preloadService=n,this.terminologyService=r,this.shakeState="normal",this.termGuessed="",this.goals=[],this.loadingAssetsProgress=0,this.loadingAssets=!0,this.showInstructions=!1,this.chooseDifficulty=!1,this.currentYear=new Date,this.difficultyLevels=[]}ngOnInit(){this.game=this.snoguessMainService.getGameState(),this.difficultyLevels=this.snoguessMainService.getDifficultyLevels(),this.game.subscribe(n=>{"playing"===n.state&&(this.goals=n.rules.goals)}),this.snoguessMainService.guessResult.subscribe(n=>{!1===n.result?(this.keyboard.addGuessedLetter(n.letter,!1),this.shakeState="shake",setTimeout(()=>this.shakeState="normal",200)):this.keyboard.addGuessedLetter(n.letter,!0)}),this.snoguessMainService.termResult.subscribe(n=>{n&&(this.keyboard.reset(),this.termGuessed=n,setTimeout(()=>{this.termGuessed=""},2e3))}),this.preloadService.preloadImages(["assets/img/SI_CT_w_tagline.png","assets/img/snoguess-logo.png","assets/img/congratulations.png","assets/img/correct.png","assets/img/game-over.png","assets/img/instructions.png","assets/img/difficulty.png"]).then(()=>{setTimeout(()=>{this.loadingAssets=!1,this.loadMenu()},500)}),this.preloadService.loadingProgress.subscribe(n=>{this.loadingAssetsProgress=n}),this.terminologyService.fhirUrlParam$.subscribe(n=>{n&&this.terminologyService.getCodeSystem(n).subscribe(r=>{this.selectedEdition=r?.entry[0]?.resource?.title})}),this.terminologyService.lang$.subscribe(n=>{this.selectedLanguage=n})}loadMenu(){this.snoguessMainService.loadMenu()}backToMenu(){this.chooseDifficulty=!1}showInstructionsPanel(){this.showInstructions=!0}hideInstructionsPanel(){this.showInstructions=!1}chooseDifficultyLevel(){this.chooseDifficulty=!0}startGame(e){this.chooseDifficulty=!1,this.keyboard&&this.keyboard.reset(),this.snoguessMainService.startGame(e)}guessLetter(e){var n=this;return fi(function*(){"playing"===(yield function Aoe(t,i){const e="object"==typeof i;return new Promise((n,r)=>{const o=new Ll({next:a=>{n(a),o.unsubscribe()},error:r,complete:()=>{e?n(i.defaultValue):r(new Md)}});t.subscribe(o)})}(n.game))?.state&&n.snoguessMainService.guessLetter(e)})()}revealHint(){this.snoguessMainService.revealHint()}calculateProgress(e){return Math.min(e/this.goals[this.goals.length-1].score*100,100)}calculateGoalPosition(e){return e/this.goals[this.goals.length-1].score*100}findCurrentGoal(e){if(!e||e{e>=r.score&&(n=r.name)}),n}static#e=this.\u0275fac=function(n){return new(n||t)(x(Ioe),x(Foe),x(Yn))};static#t=this.\u0275cmp=Le({type:t,selectors:[["app-snoguess-main"]],viewQuery:function(n,r){if(1&n&&rt(Loe,5),2&n){let o;Se(o=De())&&(r.keyboard=o.first)}},decls:5,vars:7,consts:[["class","snoguess-game",4,"ngIf"],[1,"text-center","mt-8"],[1,"snoguess-game"],["class","assets-loading-container",4,"ngIf"],[4,"ngIf"],["class","flex flex-col items-center gap-4",4,"ngIf"],["class","overlay overlay-transparent",4,"ngIf"],[1,"assets-loading-container"],[1,"mt-48","mb-48"],[1,"progress-bar-message","text-center"],["mode","determinate",1,"game-progress-bar",3,"value"],[1,"flex","justify-center","mt-8","mb-8"],[1,"relative","w-1/4"],["src","assets/img/snoguess-logo.png","alt","Game Logo"],[1,"diff-label","absolute","-bottom-3","right-5","italic","text-gray-500"],["class","term-display flex flex-row flex-wrap justify-center gap-4",4,"ngIf"],["class","loading-container",4,"ngIf"],[1,"hit-points"],[1,"score"],[4,"ngFor","ngForOf"],[1,"guess-message"],[3,"letterGuessed"],["keyboard",""],[1,"game-buttons","mt-4"],["class","bg-gradient-to-b from-blue-500 to-gray-500 hover:from-black hover:to-blue-500 border-solid border-2 border-black \n rounded-3xl pt-1 pb-1 pl-6 pr-6 w-fit text-center cursor-pointer font-bold text-white",3,"click",4,"ngIf"],["class","bg-gradient-to-b from-blue-500 to-gray-500 hover:from-black hover:to-blue-500 border-solid border-2 border-black \n rounded-3xl pt-1 pb-1 pl-6 pr-6 w-fit text-center cursor-pointer font-bold text-white",3,"click",4,"ngIf"],[1,"note"],["class","hints-container",4,"ngIf"],[1,"score-progression-panel"],[1,"progress-bar-container"],["mode","determinate",3,"value"],[1,"term-display","flex","flex-row","flex-wrap","justify-center","gap-4"],["class","whitespace-nowrap",4,"ngFor","ngForOf"],[1,"whitespace-nowrap"],[1,"loading-container"],[1,"progress-bar-message"],["mode","indeterminate"],[1,"bg-gradient-to-b","from-blue-500","to-gray-500","hover:from-black","hover:to-blue-500","border-solid","border-2","border-black","rounded-3xl","pt-1","pb-1","pl-6","pr-6","w-fit","text-center","cursor-pointer","font-bold","text-white",3,"click"],[1,"hints-container"],[1,"hints-callout","text-center"],["class","hint-item",3,"innerHTML",4,"ngFor","ngForOf"],[1,"hint-item",3,"innerHTML"],[1,"goal-indicator"],["class","star-icon left-star",3,"ngClass","left",4,"ngIf"],[1,"trophy-icon",3,"ngClass"],["class","star-icon right-star",3,"ngClass","left",4,"ngIf"],["class","goal-name",3,"left","ngClass",4,"ngIf"],[1,"star-icon","left-star",3,"ngClass"],[1,"star-icon","right-star",3,"ngClass"],[1,"goal-name",3,"ngClass"],[1,"flex","flex-col","items-center","gap-4"],["src","assets/img/SI_CT_w_tagline.png","alt","SNOMED CT Logo",1,"w-1/6"],["src","assets/img/snoguess-logo.png","alt","Game Logo",1,"w-1/4","mt-8"],[1,"text-center","font-light","text-lg"],[1,"menu-buttons","bg-gradient-to-b","from-blue-500","to-gray-500","hover:from-black","hover:to-blue-500","border-solid","border-4","border-black","rounded-3xl","pl-4","pr-4","pt-4","pb-4","w-1/5","text-center","cursor-pointer","font-bold","text-white","mt-12","text-3xl",3,"click"],[1,"menu-buttons","bg-gradient-to-b","from-blue-500","to-gray-500","hover:from-black","hover:to-blue-500","border-solid","border-4","border-black","rounded-3xl","pl-4","pr-4","pt-4","pb-4","w-1/5","text-center","cursor-pointer","font-bold","text-white","mt-12","mb-24","text-3xl",3,"click"],[1,"text-center","font-light","italic","text-lg"],["src","assets/img/difficulty.png","alt","Game Logo",1,"w-1/4","mt-8"],["class","level-container w-full flex flex-col justify-center items-center",4,"ngFor","ngForOf"],[1,"bg-gradient-to-b","from-blue-500","to-gray-500","hover:from-black","hover:to-blue-500","border-solid","border-4","border-black","rounded-3xl","pl-12","pr-12","pt-4","pb-4","w-1/5","text-center","cursor-pointer","font-bold","text-white","mt-2","mb-8","text-3xl",3,"click"],[1,"level-container","w-full","flex","flex-col","justify-center","items-center"],[1,"menu-buttons","bg-gradient-to-b","from-blue-500","to-gray-500","hover:from-black","hover:to-blue-500","border-solid","border-4","border-black","rounded-3xl","pl-4","pr-4","pt-4","pb-4","w-1/5","text-center","cursor-pointer","font-bold","text-white","mt-2","text-3xl",3,"click"],[1,"level-details","text-center","mt-3","flex","flex-row","align-middle"],[1,"text-red-500","text-sm"],[1,"text-yellow-500","text-sm"],["src","assets/img/instructions.png","alt","Game Logo",1,"w-1/4","mt-8","mb-12"],[1,"text-left","instructions-text"],[1,"flex","flex-row","align-middle","gap-2"],[1,"text-blue-900"],[1,"text-red-500"],[1,"text-yellow-500"],[1,"bg-gradient-to-b","from-blue-500","to-gray-500","hover:from-black","hover:to-blue-500","border-solid","border-4","border-black","rounded-3xl","pl-12","pr-12","pt-4","pb-4","w-1/5","text-center","cursor-pointer","font-bold","text-white","mt-12","mb-24","text-3xl",3,"click"],[1,"overlay","overlay-transparent"],["src","assets/img/correct.png","alt","Correct",1,"w-1/5","mt-8"],["src","assets/img/game-over.png","alt","Game Logo",1,"w-1/4","mt-8"],[1,"text-xl","text-pretty","text-center"],[1,"font-bold"],[1,"mt-12"],[1,"mt-4"],[1,"bg-gradient-to-b","from-blue-500","to-gray-500","hover:from-black","hover:to-blue-500","border-solid","border-4","border-black","rounded-3xl","pt-4","pb-4","w-1/6","text-center","cursor-pointer","font-bold","text-white","mt-12","text-2xl",3,"click"],[1,"bg-gradient-to-b","from-blue-500","to-gray-500","hover:from-black","hover:to-blue-500","border-solid","border-4","border-black","rounded-3xl","pt-4","pb-4","w-1/6","text-center","cursor-pointer","font-bold","text-white","mt-12","mb-24","text-2xl",3,"click"],[3,"ngClass"],["src","assets/img/congratulations.png","alt","Game Logo",1,"w-1/3","mt-8"],[1,""],[1,"large-icon","diamond","shadow-local"],[1,"reveal","won"]],template:function(n,r){1&n&&(P(0,dae,9,8,"div",0),Cd(1,"async"),_(2,"div",1),k(3),Cd(4,"date"),v()),2&n&&(S("ngIf",Sp(1,2,r.game)),w(3),it(" Copyright \xa9 ",Gv(4,4,r.currentYear,"yyyy")," SNOMED International\n"))},dependencies:[os,kr,Yi,oo,vP,Poe,Rx,Ox],styles:[".snoguess-game[_ngcontent-%COMP%]{padding:20px;border-radius:8px;max-width:80%;margin:auto;box-shadow:0 4px 8px #0000001a}.term-display[_ngcontent-%COMP%]{font-size:24px;letter-spacing:4px;word-break:break-all;margin-bottom:20px;text-align:center;font-family:monospace}.term-display[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding:0 2px}.hit-points[_ngcontent-%COMP%]{font-weight:700;color:#d9534f;text-align:center}mat-form-field[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}button[_ngcontent-%COMP%]{margin-right:8px}.guess-field[_ngcontent-%COMP%]{display:flex;align-items:center;vertical-align:middle;justify-content:center;gap:10px}.overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;z-index:1000}.overlay-dark[_ngcontent-%COMP%]{background-color:#00000080}.overlay-transparent[_ngcontent-%COMP%]{background-color:#0000}.message[_ngcontent-%COMP%]{font-size:4rem;text-align:center;margin-bottom:20px;font-weight:bolder}.reveal[_ngcontent-%COMP%]{font-size:2rem;text-align:center;margin-bottom:20px;font-weight:bolder}.won[_ngcontent-%COMP%]{color:#4caf50;text-shadow:black 2px 2px 2px}.lost[_ngcontent-%COMP%]{color:#f44336;text-shadow:rgb(0,0,0) 2px 2px 2px}.overlay[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:1.5rem;padding:10px 20px}.loading-container[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;align-items:center;margin-bottom:1rem}.progress-bar-message[_ngcontent-%COMP%]{color:#000;font-size:larger;margin-bottom:10px;font-style:italic;font-weight:lighter}.score[_ngcontent-%COMP%]{font-size:1.6rem;font-weight:700}.score-progression-panel[_ngcontent-%COMP%]{margin-top:2rem}.progress-bar-container[_ngcontent-%COMP%]{margin-top:2rem;margin-bottom:5rem;position:relative;background-color:#e0e0e0;border-radius:5px}.goal-indicator[_ngcontent-%COMP%]{position:absolute;bottom:0;width:2px;height:10px;background-color:#000}.goal-indicator.bronze[_ngcontent-%COMP%]{background-color:#cd7f32}.goal-indicator.silver[_ngcontent-%COMP%]{background-color:silver}.goal-indicator.gold[_ngcontent-%COMP%]{background-color:gold}.goal-indicator.platinum[_ngcontent-%COMP%]{background-color:#e5e4e2}.goal-indicator.diamond[_ngcontent-%COMP%]{background-color:#3b49c4}.trophy-icon[_ngcontent-%COMP%]{position:absolute;bottom:-35px;font-size:24px;width:24px;transition:transform .3s ease}.trophy-large[_ngcontent-%COMP%]{transform:scale(2.5) translate(-2px,3px)}.bronze[_ngcontent-%COMP%]{color:#cd7f32}.silver[_ngcontent-%COMP%]{color:silver}.gold[_ngcontent-%COMP%]{color:gold}.platinum[_ngcontent-%COMP%]{color:#e5e4e2}.diamond[_ngcontent-%COMP%]{color:#3b49c4}.shadow-local[_ngcontent-%COMP%]{text-shadow:black 2px 2px 2px}.star-icon[_ngcontent-%COMP%]{position:absolute;bottom:-40px;font-size:30px;width:30px;transition:transform .3s ease}.left-star[_ngcontent-%COMP%]{transform:translate(-50px)}.right-star[_ngcontent-%COMP%]{transform:translate(30px)}.goal-name[_ngcontent-%COMP%]{position:absolute;bottom:-75px;width:100px;margin-left:-50px;text-align:center;font-size:12px;font-weight:700;color:#000}.large-icon[_ngcontent-%COMP%]{font-size:5rem;width:5rem;height:5rem}.note[_ngcontent-%COMP%]{font-size:.8rem;font-weight:lighter;margin-top:1rem;text-align:center}.hints-container[_ngcontent-%COMP%]{background-color:#f9f9f9;border-radius:8px;box-shadow:0 4px 6px #0000001a;padding:20px;margin-top:20px}.hints-callout[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:#333;font-size:1.5em}.hint-item[_ngcontent-%COMP%]{color:#555;font-size:1em;list-style-type:none;position:relative;padding:5px 0 5px 30px}ul[_ngcontent-%COMP%]{list-style-type:none;padding:0;margin:0}li[_ngcontent-%COMP%]{margin-bottom:10px;color:#666;font-size:1.2rem}.guess-message[_ngcontent-%COMP%]{text-align:center;margin-top:1rem;font-size:1.2rem}.assests-loading-container[_ngcontent-%COMP%]{text-align:center;font-size:20px;color:#fff}.game-progress-bar[_ngcontent-%COMP%]{border-radius:22px;overflow:hidden;background-color:#e0e0e0;box-shadow:0 4px 8px #0003}.game-progress-bar[_ngcontent-%COMP%] .mat-progress-bar-fill[_ngcontent-%COMP%]:after{background-color:#4caf50;border-radius:22px}.game-buttons[_ngcontent-%COMP%]{display:flex;align-items:center;vertical-align:middle;justify-content:center;gap:10px}.level-details[_ngcontent-%COMP%]{visibility:hidden}.level-container[_ngcontent-%COMP%]:hover .level-details[_ngcontent-%COMP%]{visibility:visible}@media (max-width: 1300px){.menu-buttons[_ngcontent-%COMP%]{font-size:large}}@media (max-width: 876px){.snoguess-game[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .bg-gradient-to-b[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .progress-bar-container[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .hints-container[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .score-progression-panel[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .guess-field[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .overlay[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:100%!important;max-width:100%!important;margin:0 auto;box-sizing:border-box;box-shadow:none}.snoguess-game[_ngcontent-%COMP%] .game-buttons[_ngcontent-%COMP%]{flex-direction:column;margin-top:1rem}.snoguess-game[_ngcontent-%COMP%] .game-buttons[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:-moz-fit-content!important;width:fit-content!important;margin-bottom:1rem}.snoguess-game[_ngcontent-%COMP%] .goal-indicator[_ngcontent-%COMP%]{display:none}.snoguess-game[_ngcontent-%COMP%] .hit-points[_ngcontent-%COMP%]{margin-top:1rem}.snoguess-game[_ngcontent-%COMP%] .term-display[_ngcontent-%COMP%]{font-size:20px;margin-top:1rem}.snoguess-game[_ngcontent-%COMP%] .guess-message[_ngcontent-%COMP%]{font-size:12px}.snoguess-game[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{font-size:11px!important}.snoguess-game[_ngcontent-%COMP%] .pt-1[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pb-1[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pl-6[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pr-6[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pt-4[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pb-4[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pl-12[_ngcontent-%COMP%], .snoguess-game[_ngcontent-%COMP%] .pr-12[_ngcontent-%COMP%]{padding:10px}.snoguess-game[_ngcontent-%COMP%] .font-bold[_ngcontent-%COMP%]{font-size:16px}.snoguess-game[_ngcontent-%COMP%] .diff-label[_ngcontent-%COMP%]{text-align:right}}"],data:{animation:[zi("shake",[Wt("normal => shake",jt(200,Qh([Xe({transform:"translateX(0)"}),Xe({transform:"translateX(-10px)"}),Xe({transform:"translateX(10px)"}),Xe({transform:"translateX(0)"})])))]),zi("popIn",[Wt(":enter",[Xe({transform:"scale(0.8)",opacity:0}),jt("0.5s cubic-bezier(.8, -0.6, 0.2, 1.5)",Xe({transform:"scale(1.3)",opacity:1})),jt("0.2s cubic-bezier(.8, -0.6, 0.2, 1.5)",Xe({transform:"scale(1)",opacity:1}))])]),zi("scrollUp",[Wt(":enter",[Xe({transform:"translateY(100%)",opacity:0}),jt("0.5s ease-out",Xe({transform:"translateY(0)",opacity:1}))])]),zi("fadeInDelayed",[Wt(":enter",[Xe({opacity:0}),jt("1s 0.5s ease-out",Xe({opacity:1}))])])]}})}return t})();function hae(t,i){if(1&t){const e=Ne();_(0,"li")(1,"a",11),z("click",function(){const o=_e(e).$implicit;return be(V().findingWithExplicitContextSelected(o))}),k(2),v()()}if(2&t){const e=i.$implicit;w(2),Ge(e.display)}}function fae(t,i){1&t&&(_(0,"th",20),k(1," Type "),v())}function mae(t,i){if(1&t&&(_(0,"td",21),k(1),v()),2&t){const e=i.$implicit;w(1),it(" ",e.type.display," ")}}function pae(t,i){1&t&&(_(0,"th",20),k(1," Target "),v())}function gae(t,i){if(1&t&&(_(0,"td",21),k(1),v()),2&t){const e=i.$implicit;w(1),it(" ",e.target.code," ")}}function _ae(t,i){1&t&&(_(0,"th",20),k(1," Target "),v())}function bae(t,i){if(1&t&&(_(0,"td",21),k(1),v()),2&t){const e=i.$implicit;w(1),it(" ",e.target.display," ")}}function vae(t,i){1&t&&ge(0,"tr",22)}function xae(t,i){1&t&&ge(0,"tr",23)}function yae(t,i){if(1&t&&(_(0,"div",4)(1,"h3"),k(2),v(),_(3,"table",12),di(4,13),P(5,fae,2,0,"th",14),P(6,mae,2,1,"td",15),ui(),di(7,16),P(8,pae,2,0,"th",14),P(9,gae,2,1,"td",15),ui(),di(10,17),P(11,_ae,2,0,"th",14),P(12,bae,2,1,"td",15),ui(),P(13,vae,1,0,"tr",18),P(14,xae,1,0,"tr",19),v()()),2&t){const e=V();w(2),it("Relevant attributes (",e.selectedSituation.display,")"),w(1),S("dataSource",e.dataSource),w(10),S("matHeaderRowDef",e.displayedColumns),w(1),S("matRowDefColumns",e.displayedColumns)}}function wae(t,i){if(1&t&&(_(0,"div",4)(1,"h3"),k(2,"Resource Type"),v(),_(3,"a",24)(4,"span"),k(5),v(),_(6,"mat-icon"),k(7,"open_in_new"),v()()()),2&t){const e=V();w(3),S("href","https://hl7.org/fhir/R4/"+e.resourceType+".html",tp),w(2),it("FHIR R4 ",e.resourceType,"")}}function Cae(t,i){if(1&t){const e=Ne();_(0,"div",25)(1,"button",26),z("click",function(){_e(e);const r=V();return be(r.saveOutput(r.fhirRepresentationString))}),ge(2,"mat-icon",27),v(),_(3,"button",28),z("click",function(){_e(e);const r=V();return be(r.copyOutputToClipboard(r.fhirRepresentationString))}),ge(4,"mat-icon",29),v()()}}const kae=function(){return{}};let Sae=(()=>{class t{constructor(e,n){this.terminologyService=e,this.clipboard=n,this.fhirRepresentationString="{}",this.situationsBinding={title:"Finding with explicit context",type:"Autocomplete",ecl:"<< 413350009 |Finding with explicit context (situation)|",value:"",note:"Select a finding with explicit context"},this.SituationConstants={KnownPresent:{code:"410515003",display:"Known present",selfAndDescendants:[]},KnownAbsent:{code:"410516002",display:"Known absent",selfAndDescendants:[]},SubjectOfRecord:{code:"410604004",display:"Subject of record",selfAndDescendants:[]},PersonInTheFamily:{code:"303071001",display:"Person in the family",selfAndDescendants:[]},InThePast:{code:"410513005",display:"In the past",selfAndDescendants:[]},CurrentOrSpecifiedTime:{code:"410512000",display:"Current or specified time",selfAndDescendants:[]},KnownPossible:{code:"410590009",display:"Known possible",selfAndDescendants:[]}},this.examples=[{code:"160377001",display:"Family history of asthma"},{code:"12147341000119108",display:"History of burn"},{code:"428942009",display:"History of fall"},{code:"300890009",display:"Swelling absent"},{code:"162057007",display:"Nausea present"},{code:"401204006",display:"Suspected autism"}],this.displayedColumns=["type","targetCode","targetDisplay"],this.dataSource=[]}ngOnInit(){this.loadOrUpdateConstants()}loadOrUpdateConstants(){var e=this;return fi(function*(){let n=localStorage.getItem("SituationConstants");n?(e.SituationConstants=JSON.parse(n),console.log("Loaded constants from cache.")):(yield e.updateConstantDescendants(),localStorage.setItem("SituationConstants",JSON.stringify(e.SituationConstants)),console.log("Updated constants and cached them."))})()}updateConstantDescendants(){var e=this;return fi(function*(){for(const n in e.SituationConstants)if(Object.prototype.hasOwnProperty.call(e.SituationConstants,n)){const r=e.SituationConstants[n];let o=yield Sr(e.terminologyService.expandValueSet("<< "+r.code,"",0,1e3));r.selfAndDescendants=o.expansion.contains.map(a=>a.code)}})()}convertSituationToFhir(e){var n=this;return fi(function*(){n.selectedSituation=e,n.fhirRepresentation=null,n.fhirRepresentationString="Loading...",n.dataSource=[],n.resourceType=void 0;let s,c,l,d,r=yield Sr(n.terminologyService.lookupConcept(e.code)),o=n.terminologyService.getNormalForm(r);if(n.terminologyService.parseNormmalForm(o).groups.forEach(u=>{const h=u.find(p=>"408732007"===p.type.code);h&&(n.dataSource=[...n.dataSource,h],c=h.target);const f=u.find(p=>"408729009"===p.type.code);f&&(n.dataSource=[...n.dataSource,f],s=f.target);const m=u.find(p=>"408731000"===p.type.code);m&&(n.dataSource=[...n.dataSource,m],l=m.target);const g=u.find(p=>"246090004"===p.type.code);g&&(n.dataSource=[...n.dataSource,g],d=g.target)}),d){const u=n.SituationConstants.KnownPresent.selfAndDescendants.includes(s?.code),h=n.SituationConstants.SubjectOfRecord.selfAndDescendants.includes(c?.code),f=n.SituationConstants.InThePast.selfAndDescendants.includes(l?.code),m=n.SituationConstants.KnownAbsent.selfAndDescendants.includes(s?.code),g=n.SituationConstants.KnownPossible.selfAndDescendants.includes(s?.code),p=n.SituationConstants.CurrentOrSpecifiedTime.selfAndDescendants.includes(l?.code),b=n.SituationConstants.PersonInTheFamily.selfAndDescendants.includes(c?.code);u&&h&&f?n.updateFhirRepresentation(n.createFhirCondition(d,"inactive")):u&&h&&p?n.updateFhirRepresentation(n.createFhirCondition(d,"active")):g&&h&&p?n.updateFhirRepresentation(n.createFhirCondition(d,"unconfirmed")):u&&b?n.updateFhirRepresentation(n.createFamilyMemberHistoryForFinding(d,c)):m&&h&&p?n.updateFhirRepresentation(n.createFhirObservationForAbsentFinding(d)):n.fhirRepresentationString="No FHIR representation for this situation"}else n.fhirRepresentationString="No FHIR representation for this situation"})()}updateFhirRepresentation(e){this.fhirRepresentation=e,this.fhirRepresentationString=JSON.stringify(e,null,2)}findingWithExplicitContextSelected(e){e&&e.code&&this.convertSituationToFhir(e)}createFhirCondition(e,n){return this.resourceType="Condition",{resourceType:"Condition",subject:{reference:"Patient/1234"},clinicalStatus:{coding:[{system:"http://terminology.hl7.org/CodeSystem/condition-clinical",code:n}]},code:{coding:[{system:"http://snomed.info/sct",code:e.code,display:e.display}]}}}createFhirObservationForAbsentFinding(e){return this.resourceType="Observation",{resourceType:"Observation",subject:{reference:"Patient/1234"},status:"registered",code:{coding:[{system:"http://snomed.info/sct",code:e.code,display:e.display}]},valueCodeableConcept:{coding:[{system:"http://snomed.info/sct",code:"410516002",display:"Known absent"}]}}}createFamilyMemberHistoryForFinding(e,n){return this.resourceType="FamilyMemberHistory",{resourceType:"FamilyMemberHistory",status:"completed",patient:{reference:"Patient/1234"},relationship:{coding:[{system:"http://snomed.info/sct",code:n.code,display:n.display}]},condition:[{code:{coding:[{system:"http://snomed.info/sct",code:e.code,display:e.display}]}}]}}saveOutput(e){var n=new Blob([e],{type:"text/plain;charset=utf-8"});(0,ps.saveAs)(n,`${this.selectedSituation.display}-fhir.json`)}copyOutputToClipboard(e){this.clipboard.copy(e)}static#e=this.\u0275fac=function(n){return new(n||t)(x(Yn),x(W1))};static#t=this.\u0275cmp=Le({type:t,selectors:[["app-situation-map"]],decls:17,vars:9,consts:[[1,"p-8"],[1,"flex","flex-wrap","gap-4"],[1,"w-1/3"],[1,"w-auto",3,"binding","selectionChange"],[1,"mt-8"],[4,"ngFor","ngForOf"],["class","mt-8",4,"ngIf"],[1,"flex-grow"],[1,"output"],["id","save",4,"ngIf"],["highlight-js","","id","output","wrap","soft",3,"options","lang","innerHTML"],["href","javascript:void(0);",3,"click"],["mat-table","",3,"dataSource"],["matColumnDef","type"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","targetCode"],["matColumnDef","targetDisplay"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],["target","_blank",1,"flex","flex-row","align-middle","gap-2",3,"href"],["id","save"],["mat-icon-button","","matTooltip","Download",3,"click"],["fontIcon","cloud_download"],["mat-icon-button","","matTooltip","Copy",3,"click"],["fontIcon","content_copy"]],template:function(n,r){1&n&&(_(0,"div",0)(1,"h2"),k(2,"Consistent Context Representation for Situations with Explicit Context"),v(),_(3,"div",1)(4,"div",2)(5,"app-autocomplete-binding",3),z("selectionChange",function(a){return r.findingWithExplicitContextSelected(a)}),v(),_(6,"h3",4),k(7,"Examples"),v(),_(8,"ul"),P(9,hae,3,1,"li",5),v(),P(10,yae,15,4,"div",6),P(11,wae,8,2,"div",6),v(),_(12,"div",7)(13,"div",8),P(14,Cae,5,0,"div",9),_(15,"textarea",10),k(16," "),v()()()()()),2&n&&(w(5),S("binding",r.situationsBinding),w(4),S("ngForOf",r.examples),w(1),S("ngIf",null==r.selectedSituation?null:r.selectedSituation.display),w(1),S("ngIf",r.resourceType),w(3),S("ngIf",r.fhirRepresentationString.length>15),w(1),S("options",Go(8,kae))("lang","json")("innerHTML",r.fhirRepresentationString,Mc))},dependencies:[kr,Yi,D0,Zo,oo,eu,Zc,tu,Jc,Kc,iu,el,tl,nu,ru,cu,pf],styles:[".output[_ngcontent-%COMP%]{border-radius:10px;background-color:#282c34;padding:10px;position:relative;margin:2rem;min-height:45rem}#save[_ngcontent-%COMP%]{position:absolute;right:0;top:0;color:#e88c15}"]})}return t})();const Dae=[{path:"",component:vO},{path:"allergies",component:vO},{path:"sandbox",component:Fne},{path:"prescription",component:Rne},{path:"questionnaires",component:moe},{path:"implementation-course/subset-validator",component:Moe},{path:"snoguess",component:uae},{path:"context",component:(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Le({type:t,selectors:[["app-context-main"]],decls:1,vars:0,template:function(n,r){1&n&&ge(0,"app-situation-map")},dependencies:[Sae]})}return t})()},{path:"**",redirectTo:""}];let Eae=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=lt({type:t});static#i=this.\u0275inj=ct({imports:[nI.forRoot(Dae,{useHash:!0}),nI]})}return t})();const Tae=[{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 Mae=(()=>{class t{constructor(){}getCodingSpec(){return Tae}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ft,Cf={version:"0.19.3"},Pn=1200,ll=1252,Aae=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],hw={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},N0=function(t){-1!=Aae.indexOf(t)&&(ll=hw[0]=t)},Eo=function(t){Pn=t,N0(t)};var kf=function(i){return String.fromCharCode(i)},fw=function(i){return String.fromCharCode(i)},hn=null,SP=!0,To="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function H0(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+=To.charAt(o)+To.charAt(a)+To.charAt(s)+To.charAt(c);return i}function ao(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=To.indexOf(t.charAt(l++)))&&(i+=String.fromCharCode((15&a)<<4|s>>2)),64!==(c=To.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}(),Ta=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(){}}(),Sf=function(){if(typeof Buffer>"u")return!1;var t=Ta([65,0]);return!!t&&1==t.toString("utf16le").length}();function tc(t){return Vt?Buffer.alloc?Buffer.alloc(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}function DP(t){return Vt?Buffer.allocUnsafe?Buffer.allocUnsafe(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}var Tr=function(i){return Vt?Ta(i,"binary"):i.split("").map(function(e){return 255&e.charCodeAt(0)})};function Df(t){if(typeof ArrayBuffer>"u")return Tr(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 Ma(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 ia(t,i){var e=""+t;return e.length>=i?e:ci("0",i-e.length)+e}function pw(t,i){var e=""+t;return e.length>=i?e:ci(" ",i-e.length)+e}function U0(t,i){var e=""+t;return e.length>=i?e:e+ci(" ",i-e.length)}var EP=Math.pow(2,32);function mu(t,i){return t>EP||t<-EP?function Nae(t,i){var e=""+Math.round(t);return e.length>=i?e:ci("0",i-e.length)+e}(t,i):function Bae(t,i){var e=""+t;return e.length>=i?e:ci("0",i-e.length)+e}(Math.round(t),i)}function z0(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 TP=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],gw=[["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"]],ht={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 "'},MP={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},Hae={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 $0(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 ic(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 Gae(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 AP=new Date(1899,11,31,0,0,0),Uae=AP.getTime(),zae=new Date(1900,2,1,0,0,0);function IP(t,i){var e=t.getTime();return i?e-=1262304e5:t>=zae&&(e+=864e5),(e-(Uae+6e4*(t.getTimezoneOffset()-AP.getTimezoneOffset())))/864e5}function _w(t){return-1==t.indexOf(".")?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function dl(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 Tf(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 jae(t){var i=t<0?12:11,e=_w(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 Wae(t){var i=_w(t.toFixed(11));return i.length>(t<0?12:11)||"0"===i||"-0"===i?t.toPrecision(6):i}(t),_w(function $ae(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 Ur(14,IP(t,i&&i.date1904),i)}throw new Error("unsupported value in General format: "+t)}function qae(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 gw[e.m-1][1];case 5:return gw[e.m-1][0];default:return gw[e.m-1][2]}break;case 100:switch(i.length){case 1:case 2:c=e.d,l=i.length;break;case 3:return TP[e.q][0];default:return TP[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=ia(o,2+n),"ss"===i?r.substr(0,2):"."+r.substr(2,i.length-1))):ia(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?ia(c,l):""}function gs(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 FP=/%/g;function RP(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"-"+RP(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 OP=/# (\?+)( ?)\/( ?)(\d+)/,PP=/^#*0*\.([0#]+)/,LP=/\).*[0#]/,NP=/\(###\) ###\\?-####/;function Mr(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 BP(t,i){var e=Math.pow(10,i);return""+Math.round(t*e)/e}function VP(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 Mo(t,i,e){if(40===t.charCodeAt(0)&&!i.match(LP)){var n=i.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return e>=0?Mo("n",n,e):"("+Mo("n",n,-e)+")"}if(44===i.charCodeAt(i.length-1))return function Qae(t,i,e){for(var n=i.length-1;44===i.charCodeAt(n-1);)--n;return _s(t,i.substr(0,n),e/Math.pow(10,3*(i.length-n)))}(t,i,e);if(-1!==i.indexOf("%"))return function Xae(t,i,e){var n=i.replace(FP,""),r=i.length-n.length;return _s(t,n,e*Math.pow(10,2*r))+ci("%",r)}(t,i,e);if(-1!==i.indexOf("E"))return RP(i,e);if(36===i.charCodeAt(0))return"$"+Mo(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+mu(c,i.length);if(i.match(/^[#?]+$/))return"0"===(r=mu(e,0))&&(r=""),r.length>i.length?r:Mr(i.substr(0,i.length-r.length))+r;if(o=i.match(OP))return function Yae(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?ci(" ",t[1].length+1+t[4].length):pw(a,t[1].length)+t[2]+"/"+t[3]+ia(s,t[4].length))}(o,c,l);if(i.match(/^#+0+$/))return l+mu(c,i.length-i.indexOf("0"));if(o=i.match(PP))return r=BP(e,o[1].length).replace(/^([^\.]+)$/,"$1."+Mr(o[1])).replace(/\.$/,"."+Mr(o[1])).replace(/\.(\d*)$/,function(m,g){return"."+g+ci("0",Mr(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+BP(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+gs(mu(c,0));if(o=i.match(/^#,##0\.([#0]*0)$/))return e<0?"-"+Mo(t,i,-e):gs(""+(Math.floor(e)+function Zae(t,i){return i<(""+Math.round((t-Math.floor(t))*Math.pow(10,i))).length?1:0}(e,o[1].length)))+"."+ia(VP(e,o[1].length),o[1].length);if(o=i.match(/^#,#*,#0/))return Mo(t,i.replace(/^#,#*,/,""),e);if(o=i.match(/^([0#]+)(\\?-([0#]+))+$/))return r=fu(Mo(t,i.replace(/[\\-]/g,""),e)),a=0,fu(fu(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?ia(0,3-m.length):"")+m})+"."+ia(a,o[1].length);switch(i){case"###,##0.00":return Mo(t,"#,##0.00",e);case"###,###":case"##,###":case"#,###":var f=gs(mu(c,0));return"0"!==f?l+f:"";case"###,###.00":return Mo(t,"###,##0.00",e).replace(/^0\./,".");case"#,###.00":return Mo(t,"#,##0.00",e).replace(/^0\./,".")}throw new Error("unsupported format |"+i+"|")}function HP(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"-"+HP(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 Aa(t,i,e){if(40===t.charCodeAt(0)&&!i.match(LP)){var n=i.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return e>=0?Aa("n",n,e):"("+Aa("n",n,-e)+")"}if(44===i.charCodeAt(i.length-1))return function ese(t,i,e){for(var n=i.length-1;44===i.charCodeAt(n-1);)--n;return _s(t,i.substr(0,n),e/Math.pow(10,3*(i.length-n)))}(t,i,e);if(-1!==i.indexOf("%"))return function tse(t,i,e){var n=i.replace(FP,""),r=i.length-n.length;return _s(t,n,e*Math.pow(10,2*r))+ci("%",r)}(t,i,e);if(-1!==i.indexOf("E"))return HP(i,e);if(36===i.charCodeAt(0))return"$"+Aa(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+ia(c,i.length);if(i.match(/^[#?]+$/))return r=""+e,0===e&&(r=""),r.length>i.length?r:Mr(i.substr(0,i.length-r.length))+r;if(o=i.match(OP))return function Kae(t,i,e){return e+(0===i?"":""+i)+ci(" ",t[1].length+2+t[4].length)}(o,c,l);if(i.match(/^#+0+$/))return l+ia(c,i.length-i.indexOf("0"));if(o=i.match(PP))return r=(r=(""+e).replace(/^([^\.]+)$/,"$1."+Mr(o[1])).replace(/\.$/,"."+Mr(o[1]))).replace(/\.(\d*)$/,function(m,g){return"."+g+ci("0",Mr(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+gs(""+c);if(o=i.match(/^#,##0\.([#0]*0)$/))return e<0?"-"+Aa(t,i,-e):gs(""+e)+"."+ci("0",o[1].length);if(o=i.match(/^#,#*,#0/))return Aa(t,i.replace(/^#,#*,/,""),e);if(o=i.match(/^([0#]+)(\\?-([0#]+))+$/))return r=fu(Aa(t,i.replace(/[\\-]/g,""),e)),a=0,fu(fu(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 zP=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function $P(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 Ur(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:ht)[t])&&(n=e.table&&e.table[MP[t]]||ht[MP[t]]),null==n&&(n=Hae[t]||"General")}if(z0(n,0))return dl(i,e);i instanceof Date&&(i=IP(i,e.date1904));var r=function rse(t,i){var e=function ise(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(zP),s=e[1].match(zP);return $P(i,a)?[n,e[0]]:$P(i,s)?[n,e[1]]:[n,e[null!=a&&null!=s?2:1]]}return[n,o]}(n,i);if(z0(r[1]))return dl(i,e);if(!0===i)i="TRUE";else if(!1===i)i="FALSE";else if(""===i||null==i)return"";return function nse(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]||"$",nc(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 C,p=0,b=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":(C=r[a].v.match(/\.0+$/))&&(b=Math.max(b,C[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 M,y="";for(a=0;a0){40==y.charCodeAt(0)?(N=i<0&&45===y.charCodeAt(0)?-i:i,E=_s("n",y,N)):(E=_s("n",y,N=i<0&&n>1?-i:i),N<0&&r[0]&&"t"==r[0].t&&(E=E.substr(1),r[0].v="-"+r[0].v)),M=E.length-1;var H=r.length;for(a=0;a-1){H=a;break}var B=r.length;if(H===r.length&&-1===E.indexOf("E")){for(a=r.length-1;a>=0;--a)null==r[a]||-1==="n?".indexOf(r[a].t)||(M>=r[a].v.length-1?r[a].v=E.substr(1+(M-=r[a].v.length),r[a].v.length):M<0?r[a].v="":(r[a].v=E.substr(0,M+1),M=-1),r[a].t="t",B=a);M>=0&&B=0;--a)if(null!=r[a]&&-1!=="n?".indexOf(r[a].t)){for(d=r[a].v.indexOf(".")>-1&&a===H?r[a].v.indexOf(".")-1:r[a].v.length-1,q=r[a].v.substr(d+1);d>=0;--d)M>=0&&("0"===r[a].v.charAt(d)||"#"===r[a].v.charAt(d))&&(q=E.charAt(M--)+q);r[a].v=q,r[a].t="t",B=a}for(M>=0&&B-1&&a===H?r[a].v.indexOf(".")+1:0,q=r[a].v.substr(0,d);d-1&&(r[a].v=_s(r[a].t,r[a].v,N=n>1&&i<0&&a>0&&"-"===r[a-1].v?-i:i),r[a].t="t");var G="";for(a=0;a!==r.length;++a)null!=r[a]&&(G+=r[a].v);return G}(r[1],i,e,r[0])}function bw(t,i){if("number"!=typeof i){i=+i||-1;for(var e=0;e<392;++e)if(null!=ht[e]){if(ht[e]==t){i=e;break}}else i<0&&(i=e);i<0&&(i=391)}return ht[i]=t,i}function Mf(t){for(var i=0;392!=i;++i)void 0!==t[i]&&bw(t[i],i)}function pu(){ht=function Vae(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 WP=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g,cse={"d.m":"d\\.m"};function rc(t,i){return bw(cse[t]||t,i)}var bs,GP=function(){var t={version:"1.2.0"},e=function i(){for(var E=0,H=new Array(256),B=0;256!=B;++B)H[B]=E=1&(E=1&(E=1&(E=1&(E=1&(E=1&(E=1&(E=1&(E=B)?-306674912^E>>>1:E>>>1)?-306674912^E>>>1:E>>>1)?-306674912^E>>>1:E>>>1)?-306674912^E>>>1:E>>>1)?-306674912^E>>>1:E>>>1)?-306674912^E>>>1:E>>>1)?-306674912^E>>>1:E>>>1)?-306674912^E>>>1:E>>>1;return typeof Int32Array<"u"?new Int32Array(H):H}(),r=function n(E){var H=0,B=0,G=0,Z=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(G=0;256!=G;++G)Z[G]=E[G];for(G=0;256!=G;++G)for(B=E[G],H=256+G;H<4096;H+=256)B=Z[H]=B>>>8^E[255&B];var j=[];for(G=1;16!=G;++G)j[G-1]=typeof Int32Array<"u"&&"function"==typeof Z.subarray?Z.subarray(256*G,256*G+256):Z.slice(256*G,256*G+256);return j}(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],b=r[12],C=r[13],y=r[14];return t.table=e,t.bstr=function M(E,H){for(var B=-1^H,G=0,Z=E.length;G>>8^e[255&(B^E.charCodeAt(G++))];return~B},t.buf=function q(E,H){for(var B=-1^H,G=E.length-15,Z=0;Z>8&255]^b[E[Z++]^B>>16&255]^p[E[Z++]^B>>>24]^g[E[Z++]]^m[E[Z++]]^f[E[Z++]]^h[E[Z++]]^u[E[Z++]]^d[E[Z++]]^l[E[Z++]]^c[E[Z++]]^s[E[Z++]]^a[E[Z++]]^o[E[Z++]]^e[E[Z++]];for(G+=15;Z>>8^e[255&(B^E[Z++])];return~B},t.str=function N(E,H){for(var B=-1^H,G=0,Z=E.length,j=0,me=0;G>>8^e[255&(B^j)]:j<2048?B=(B=B>>>8^e[255&(B^(192|j>>6&31))])>>>8^e[255&(B^(128|63&j))]:j>=55296&&j<57344?(j=64+(1023&j),me=1023&E.charCodeAt(G++),B=(B=(B=(B=B>>>8^e[255&(B^(240|j>>8&7))])>>>8^e[255&(B^(128|j>>2&63))])>>>8^e[255&(B^(128|me>>6&15|(3&j)<<4))])>>>8^e[255&(B^(128|63&me))]):B=(B=(B=B>>>8^e[255&(B^(224|j>>12&15))])>>>8^e[255&(B^(128|j>>6&63))])>>>8^e[255&(B^(128|63&j))];return~B},t}(),dt=function(){var c,i={};function n(D){if("/"==D.charAt(D.length-1))return-1===D.slice(0,-1).indexOf("/")?D:n(D.slice(0,-1));var R=D.lastIndexOf("/");return-1===R?D:D.slice(0,R+1)}function r(D){if("/"==D.charAt(D.length-1))return r(D.slice(0,-1));var R=D.lastIndexOf("/");return-1===R?D:D.slice(R+1)}function o(D,R){"string"==typeof R&&(R=new Date(R));var T=R.getHours();T=(T=T<<6|R.getMinutes())<<5|R.getSeconds()>>>1,D.write_shift(2,T);var I=R.getFullYear()-1980;I=(I=I<<4|R.getMonth()+1)<<5|R.getDate(),D.write_shift(2,I)}function s(D){Nn(D,0);for(var R={},T=0;D.l<=D.length-4;){var I=D.read_shift(2),O=D.read_shift(2),L=D.l+O,ee={};switch(I){case 21589:1&(T=D.read_shift(1))&&(ee.mtime=D.read_shift(4)),O>5&&(2&T&&(ee.atime=D.read_shift(4)),4&T&&(ee.ctime=D.read_shift(4))),ee.mtime&&(ee.mt=new Date(1e3*ee.mtime));break;case 1:var le=D.read_shift(4),J=D.read_shift(4);ee.usz=J*Math.pow(2,32)+le,le=D.read_shift(4),J=D.read_shift(4),ee.csz=J*Math.pow(2,32)+le}D.l=L,R[I]=ee}return R}function l(){return c||(c=bs)}function d(D,R){if(80==D[0]&&75==D[1])return j3(D,R);if(109==(32|D[0])&&105==(32|D[1]))return function uye(D,R){if("mime-version:"!=se(D.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var T=R&&R.root||"",I=(Vt&&Buffer.isBuffer(D)?D.toString("binary"):se(D)).split("\r\n"),O=0,L="";for(O=0;O0&&(T=(T=T.slice(0,T.length-1)).slice(0,T.lastIndexOf("/")+1),L.slice(0,T.length)!=T););var ee=(I[1]||"").match(/boundary="(.*?)"/);if(!ee)throw new Error("MAD cannot find boundary");var le="--"+(ee[1]||""),ie={FileIndex:[],FullPaths:[]};E(ie);var Te,Ae=0;for(O=0;O=O&&(Ae-=O),!ee[Ae]){J=[];var Oe=[];for(Te=Ae;Te>=0;){Oe[Te]=!0,ee[Te]=!0,le[le.length]=Te,J.push(D[Te]);var Ee=T[Math.floor(4*Te/I)];if(I<4+(et=4*Te&te))throw new Error("FAT boundary crossed: "+Te+" 4 "+I);if(!D[Ee]||Oe[Te=fl(D[Ee],et)])break}L[Ae]={nodes:le,data:p4([J])}}return L}(Tt,ee,te,I);ee0&&le!==me&&(Bi[le].name="!MiniFAT"),Bi[te[0]].name="!FAT",Bi.fat_addrs=te,Bi.ssz=I;var Mn=[],ho=[],pm=[];(function y(D,R,T,I,O,L,ee,le){for(var et,J=0,te=I.length?2:0,ie=R[D].data,Te=0,Ae=0;Te0&&J!==me&&(R[J].name="!StreamData")):Ee.size>=4096?(Ee.storage="fat",void 0===R[Ee.start]&&(R[Ee.start]=b(T,Ee.start,R.fat_addrs,R.ssz)),R[Ee.start].name=Ee.name,Ee.content=R[Ee.start].data.slice(0,Ee.size)):(Ee.storage="minifat",Ee.size<0?Ee.size=0:J!==me&&Ee.start!==me&&R[J]&&(Ee.content=g(Ee,R[J].data,(R[le]||{}).data))),Ee.content&&Nn(Ee.content,0),L[et]=Ee,ee.push(Ee)}})(ee,Bi,Tt,Mn,O,{},ho,le),function m(D,R,T){for(var I=0,O=0,L=0,ee=0,le=0,J=T.length,te=[],ie=[];I0&&ee>=0;)L.push(R.slice(ee*j,ee*j+j)),O-=j,ee=fl(T,4*ee);return 0===L.length?re(0):Cn(L).slice(0,D.size)}function p(D,R,T,I,O){var L=me;if(D===me){if(0!==R)throw new Error("DIFAT chain shorter than expected")}else if(-1!==D){var ee=T[D],le=(I>>>2)-1;if(!ee)return;for(var J=0;J=1&&p(fl(ee,I-4),R-1,T,I,O)}}function b(D,R,T,I,O){var L=[],ee=[];O||(O=[]);var le=I-1,J=0,te=0;for(J=R;J>=0;){O[J]=!0,L[L.length]=J,ee.push(D[J]);var ie=T[Math.floor(4*J/I)];if(I<4+(te=4*J&le))throw new Error("FAT boundary crossed: "+J+" 4 "+I);if(!D[ie])break;J=fl(D[ie],te)}return{nodes:L,data:p4([ee])}}function M(D,R){return new Date(1e3*($n(D,R+4)/1e7*Math.pow(2,32)+$n(D,R)/1e7-11644473600))}function E(D,R){var T=R||{},I=T.root||"Root Entry";if(D.FullPaths||(D.FullPaths=[]),D.FileIndex||(D.FileIndex=[]),D.FullPaths.length!==D.FileIndex.length)throw new Error("inconsistent CFB structure");0===D.FullPaths.length&&(D.FullPaths[0]=I+"/",D.FileIndex[0]={name:I,type:5}),T.CLSID&&(D.FileIndex[0].clsid=T.CLSID),function H(D){var R="\x01Sh33tJ5";if(!dt.find(D,"/"+R)){var T=re(4);T[0]=55,T[1]=T[3]=50,T[2]=54,D.FileIndex.push({name:R,type:2,content:T,size:4,L:69,R:69,C:69}),D.FullPaths.push(D.FullPaths[0]+R),B(D)}}(D)}function B(D,R){E(D);for(var T=!1,I=!1,O=D.FullPaths.length-1;O>=0;--O){var L=D.FileIndex[O];switch(L.type){case 0:I?T=!0:(D.FileIndex.pop(),D.FullPaths.pop());break;case 1:case 2:case 5:I=!0,isNaN(L.R*L.L*L.C)&&(T=!0),L.R>-1&&L.L>-1&&L.R==L.L&&(T=!0);break;default:T=!0}}if(T||R){var ee=new Date(1987,1,19),le=0,J=Object.create?Object.create(null):{},te=[];for(O=0;O1?1:-1,Te.size=0,Te.type=5;else if("/"==Ae.slice(-1)){for(le=O+1;le=te.length?-1:le,le=O+1;le=te.length?-1:le,Te.type=1}else n(D.FullPaths[O+1]||"")==n(Ae)&&(Te.R=O+1),Te.type=2}}}function G(D,R){var T=R||{};if("mad"==T.fileType)return function hye(D,R){for(var T=R||{},I=T.boundary||"SheetJS",O=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(I="------="+I).slice(2)+'"',"","",""],L=D.FullPaths[0],ee=L,le=D.FileIndex[0],J=1;J=32&&et<128&&++Te;var Ee=Te>=4*Ae/5;O.push(I),O.push("Content-Location: "+(T.root||"file:///C:/SheetJS/")+ee),O.push("Content-Transfer-Encoding: "+(Ee?"quoted-printable":"base64")),O.push("Content-Type: "+aye(le,ee)),O.push(""),O.push(Ee?cye(ie):sye(ie))}return O.push(I+"--\r\n"),O.join("\r\n")}(D,T);if("zip"===(B(D),T.fileType))return function oye(D,R){var T=R||{},I=[],O=[],L=re(1),ee=T.compression?8:0,le=0,te=0,ie=0,Te=0,Ae=0,et=D.FullPaths[0],Oe=et,Ee=D.FileIndex[0],Tt=[],Bi=0;for(te=1;te0&&(Wr<4096?Oe+=Wr+63>>6:Ee+=Wr+511>>9)}}for(var Mn=et.FullPaths.length+3>>2,pm=Oe+127>>7,gm=(Oe+7>>3)+Ee+Mn+pm,Fl=gm+127>>7,ek=Fl<=109?0:Math.ceil((Fl-109)/127);gm+Fl+ek+127>>7>Fl;)ek=++Fl<=109?0:Math.ceil((Fl-109)/127);var Es=[1,ek,Fl,pm,Mn,Ee,Oe,0];return et.FileIndex[0].size=Oe<<6,Es[7]=(et.FileIndex[0].start=Es[0]+Es[1]+Es[2]+Es[3]+Es[4]+Es[5])+(Es[6]+7>>3),Es}(D),O=re(I[7]<<9),L=0,ee=0;for(L=0;L<8;++L)O.write_shift(1,de[L]);for(L=0;L<8;++L)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),L=0;L<3;++L)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]),L=0;L<109;++L)O.write_shift(-4,L>9));for(le(I[6]+7>>3);511&O.l;)O.write_shift(-4,Y.ENDOFCHAIN);for(ee=L=0,J=0;J=4096)&&(ie.start=ee,le(te+63>>6));for(;511&O.l;)O.write_shift(-4,Y.ENDOFCHAIN);for(L=0;L32&&(console.error("Name "+Ae+" will be truncated to "+Ae.slice(0,32)),Ae=Ae.slice(0,32)),te=2*(Ae.length+1),O.write_shift(64,Ae,"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(L=1;L=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 A(D,R){var T=Re[255&D];return R<=8?T>>>8-R:(T=T<<8|Re[D>>8&255],R<=16?T>>>16-R:(T=T<<8|Re[D>>16&255])>>>24-R)}function xt(D,R){var T=7&R,I=R>>>3;return(D[I]|(T<=6?0:D[I+1]<<8))>>>T&3}function ni(D,R){var T=7&R,I=R>>>3;return(D[I]|(T<=5?0:D[I+1]<<8))>>>T&7}function Gt(D,R){var T=7&R,I=R>>>3;return(D[I]|(T<=3?0:D[I+1]<<8))>>>T&31}function Gi(D,R){var T=7&R,I=R>>>3;return(D[I]|(T<=1?0:D[I+1]<<8))>>>T&127}function mi(D,R,T){var I=7&R,O=R>>>3,ee=D[O]>>>I;return T<8-I||(ee|=D[O+1]<<8-I,T<16-I)||(ee|=D[O+2]<<16-I,T<24-I)||(ee|=D[O+3]<<24-I),ee&(1<>>3;return I<=5?D[O]|=(7&T)<>8-I),R+3}function Ve(D,R,T){return D[R>>>3]|=T=(1&T)<<(7&R),R+1}function pr(D,R,T){var O=R>>>3;return D[O]|=255&(T<<=7&R),D[O+1]=T>>>=8,R+8}function li(D,R,T){var O=R>>>3;return D[O]|=255&(T<<=7&R),D[O+1]=255&(T>>>=8),D[O+2]=T>>>8,R+16}function Mi(D,R){var T=D.length,I=2*T>R?2*T:R+5,O=0;if(T>=R)return D;if(Vt){var L=DP(I);if(D.copy)D.copy(L);else for(;O>I-Te,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,Te=xe?new Uint16Array(32768):[];ie0;)J[J.l++]=le[ie++];te=8*J.l}else{te=nt(J,te,+(ie+Ae==le.length)+2);for(var et=0;Ae-- >0;){var Oe=le[ie],Ee=-1,Tt=0;if((Ee=Te[et=32767&(et<<5^Oe)])&&((Ee|=-32768&ie)>ie&&(Ee-=32768),Ee2){(Oe=O[Tt])<=22?te=pr(J,te,Re[Oe+1]>>1)-1:(pr(J,te,3),pr(J,te+=5,Re[Oe-23]>>5),te+=3);var Bi=Oe<8?0:Oe-4>>2;Bi>0&&(li(J,te,Tt-W[Oe]),te+=Bi),te=pr(J,te,Re[Oe=R[ie-Ee]]>>3),te-=3;var Wr=Oe<4?0:Oe-2>>1;Wr>0&&(li(J,te,ie-Ee-U[Oe]),te+=Wr);for(var Mn=0;Mn>>3;return(D[I]|(T<=4?0:D[I+1]<<8))>>>T&15}(D,R+=5)+4;R+=4;for(var L=0,ee=xe?new Uint8Array(19):Ir(19),le=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],J=1,te=xe?new Uint8Array(8):Ir(8),ie=xe?new Uint8Array(8):Ir(8),Te=ee.length,Ae=0;Ae>8-Oe;for(var Ee=(1<<7-Oe)-1;Ee>=0;--Ee)Un[et|Ee<>>=3){case 16:for(L=3+xt(D,R),R+=2,et=Tt[Tt.length-1];L-- >0;)Tt.push(et);break;case 17:for(L=3+ni(D,R),R+=3;L-- >0;)Tt.push(0);break;case 18:for(L=11+Gi(D,R),R+=7;L-- >0;)Tt.push(0);break;default:Tt.push(et),J>>0,le=0,J=0;!(1&I);)if(I=ni(D,T),T+=3,I>>>1)for(I>>1==1?(le=9,J=5):(T=iye(D,T),le=Il,J=U3);;){!R&&ee>>1==1?pc[ie]:gn[ie];if(T+=15&Te,(Te>>>=4)>>>8&255){if(256==Te)break;var Ae=(Te-=257)<8?0:Te-4>>2;Ae>5&&(Ae=0);var et=L+W[Te];Ae>0&&(et+=mi(D,T,Ae),T+=Ae),ie=mi(D,T,J),T+=15&(Te=I>>>1==1?mm[ie]:No[ie]);var Oe=(Te>>>=4)<4?0:Te-2>>1,Ee=U[Te];for(Oe>0&&(Ee+=mi(D,T,Oe),T+=Oe),!R&&ee>>3]|D[1+(T>>>3)]<<8;if(T+=32,te>0)for(!R&&ee0;)O[L++]=D[T>>>3],T+=8}return R?[O,T+7>>>3]:[O.slice(0,L),T+7>>>3]}(D.slice(D.l||0),R);return D.l+=I[1],I[0]}function $3(D,R){if(!D)throw new Error(R);typeof console<"u"&&console.error(R)}function j3(D,R){var T=D;Nn(T,0);var L={FileIndex:[],FullPaths:[]};E(L,{root:R.root});for(var ee=T.length-4;(80!=T[ee]||75!=T[ee+1]||5!=T[ee+2]||6!=T[ee+3])&&ee>=0;)--ee;T.l=ee+4,T.l+=4;var le=T.read_shift(2);T.l+=6;var J=T.read_shift(4);for(T.l=J,ee=0;ee>>=5);T>>>=4,I.setMilliseconds(0),I.setFullYear(T+1980),I.setMonth(L-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}(D);if(8257&L)throw new Error("Unsupported ZIP encryption");D.read_shift(4);for(var te=D.read_shift(4),ie=D.read_shift(4),Te=D.read_shift(2),Ae=D.read_shift(2),et="",Oe=0;Oe"u")throw new Error("Unsupported");return new Uint8Array(t)}(t):t}function Af(t,i,e){if(typeof bs<"u"&&bs.writeFileSync)return e?bs.writeFileSync(t,i,e):bs.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=Df(i);break;default:throw new Error("Unsupported encoding "+e)}return Deno.writeFileSync(t,i)}var n="utf8"==e?Ia(i):i;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,t);if(typeof Blob<"u"){var r=new Blob([dse(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=Ma(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 ji(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==KP.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 ul(t,i){if(Vt&&Buffer.isBuffer(t)){if(i&&Sf){if(255==t[0]&&254==t[1])return Ia(t.slice(2).toString("utf16le"));if(254==t[1]&&255==t[2])return Ia(function kP(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 Ia(new TextDecoder("utf-16le").decode(t.slice(2)));if(254==t[0]&&255==t[1])return Ia(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 ki(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]=ki(t[e]));return i}function ci(t,i){for(var e="";e.length3&&-1==bse.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 Pt(t,i,e){if(t.FullPaths){var n;if("string"==typeof e)return n=Vt?Ta(e):function Lae(t){for(var i=[],e=0,n=t.length+250,r=tc(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=tc(65535),n=65530)}return i.push(r.slice(0,e)),Cn(i)}(e),dt.utils.cfb_add(t,i,n);dt.utils.cfb_add(t,i,e)}else t.file(i,e)}function xw(){return dt.utils.cfb_new()}var fn='\r\n',yw=j0({""":'"',"'":"'",">":">","<":"<","&":"&"}),ww=/[&<>'"]/g,Sse=/[\u0000-\u0008\u000b-\u001f\uFFFE-\uFFFF]/g;function Lt(t){return(t+"").replace(ww,function(e){return yw[e]}).replace(Sse,function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"})}function a4(t){return Lt(t).replace(/ /g,"_x0020_")}var s4=/[\u0000-\u001f]/g;function X0(t){return(t+"").replace(ww,function(e){return yw[e]}).replace(/\n/g,"
").replace(s4,function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"})}function Cw(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 l4(t){var e,n,s,i=tc(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 d4(t){return Ta(t,"binary").toString("utf8")}var Q0="foo bar baz\xe2\x98\x83\xf0\x9f\x8d\xa3",Di=Vt&&(d4(Q0)==Cw(Q0)&&d4||l4(Q0)==Cw(Q0)&&l4)||Cw,Ia=Vt?function(t){return Ta(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("")},f4=/(^\s|\s$|\n)/;function Zn(t,i){return"<"+t+(i.match(f4)?' xml:space="preserve"':"")+">"+i+""}function Rf(t){return ji(t).map(function(i){return" "+i+'="'+t[i]+'"'}).join("")}function Me(t,i,e){return"<"+t+(null!=e?Rf(e):"")+(null!=i?(i.match(f4)?' xml:space="preserve"':"")+">"+i+""}function kw(t,i){try{return t.toISOString().replace(/\.\d*/,"")}catch(e){if(i)throw e}return""}var Ln={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"},hl=["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"],co={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"},m4=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:Ta(i)})):m4(t)}:m4,g4=function(t,i,e){for(var n=[],r=i;r0?_u(t,i+4,i+4+e-1):""},Sw=x4,y4=function(t,i){var e=$n(t,i);return e>0?_u(t,i+4,i+4+e-1):""},Dw=y4,w4=function(t,i){var e=2*$n(t,i);return e>0?_u(t,i+4,i+4+e-1):""},Ew=w4,C4=function(i,e){var n=$n(i,e);return n>0?K0(i,e+4,e+4+n):""},Tw=C4,k4=function(t,i){var e=$n(t,i);return e>0?_u(t,i+4,i+4+e):""},Mw=k4,S4=function(t,i){return function Fse(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)},Z0=S4,Aw=function(i){return Array.isArray(i)||typeof Uint8Array<"u"&&i instanceof Uint8Array};Vt&&(Sw=function(i,e){if(!Buffer.isBuffer(i))return x4(i,e);var n=i.readUInt32LE(e);return n>0?i.toString("utf8",e+4,e+4+n-1):""},Dw=function(i,e){if(!Buffer.isBuffer(i))return y4(i,e);var n=i.readUInt32LE(e);return n>0?i.toString("utf8",e+4,e+4+n-1):""},Ew=function(i,e){if(!Buffer.isBuffer(i)||!Sf)return w4(i,e);var n=2*i.readUInt32LE(e);return i.toString("utf16le",e+4,e+4+n-1)},Tw=function(i,e){if(!Buffer.isBuffer(i)||!Sf)return C4(i,e);var n=i.readUInt32LE(e);return i.toString("utf16le",e+4,e+4+n)},Mw=function(i,e){if(!Buffer.isBuffer(i))return k4(i,e);var n=i.readUInt32LE(e);return i.toString("utf8",e+4,e+4+n)},Z0=function(i,e){return Buffer.isBuffer(i)?i.readDoubleLE(e):S4(i,e)},Aw=function(i){return Buffer.isBuffer(i)||Array.isArray(i)||typeof Uint8Array<"u"&&i instanceof Uint8Array}),typeof Ft<"u"&&function D4(){K0=function(t,i,e){return Ft.utils.decode(1200,t.slice(i,e)).replace(sr,"")},_u=function(t,i,e){return Ft.utils.decode(65001,t.slice(i,e))},Sw=function(t,i){var e=$n(t,i);return e>0?Ft.utils.decode(ll,t.slice(i+4,i+4+e-1)):""},Dw=function(t,i){var e=$n(t,i);return e>0?Ft.utils.decode(Pn,t.slice(i+4,i+4+e-1)):""},Ew=function(t,i){var e=2*$n(t,i);return e>0?Ft.utils.decode(1200,t.slice(i+4,i+4+e-1)):""},Tw=function(t,i){var e=$n(t,i);return e>0?Ft.utils.decode(1200,t.slice(i+4,i+4+e)):""},Mw=function(t,i){var e=$n(t,i);return e>0?Ft.utils.decode(65001,t.slice(i+4,i+4+e)):""}}();var bu=function(t,i){return t[i]},vs=function(t,i){return 256*t[i+1]+t[i]},Ose=function(t,i){var e=256*t[i+1]+t[i];return e<32768?e:-1*(65535-e+1)},$n=function(t,i){return t[i+3]*(1<<24)+(t[i+2]<<16)+(t[i+1]<<8)+t[i]},fl=function(t,i){return t[i+3]<<24|t[i+2]<<16|t[i+1]<<8|t[i]},Pse=function(t,i){return t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3]};function Of(t,i){var n,r,a,s,c,l,e="",o=[];switch(i){case"dbcs":if(l=this.l,Vt&&Buffer.isBuffer(this)&&Sf)e=this.slice(this.l,this.l+2*t).toString("utf16le");else for(c=0;c0?fl:Pse)(this,this.l),this.l+=4,n);case 8:case-8:if("f"===i)return r=8==t?Z0(this,this.l):Z0([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=b4(this,this.l,t)}}return this.l+=t,e}var Lse=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},Nse=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},Bse=function(t,i,e){t[e]=255&i,t[e+1]=i>>>8&255};function Vse(t,i,e){var n=0,r=0;if("dbcs"===e){for(r=0;r!=i.length;++r)Bse(this,i.charCodeAt(r),this.l+2*r);n=2*i.length}else if("sbcs"===e||"cpstr"==e)if(typeof Ft<"u"&&874==ll){for(r=0;r!=i.length;++r){var o=Ft.utils.encode(ll,i.charAt(r));this[this.l+r]=o[0]}n=i.length}else if(typeof Ft<"u"&&"cpstr"==e){if((o=Ft.utils.encode(Pn,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,Lse(this,i,this.l);break;case 8:if(n=8,"f"===e){!function Rse(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,Nse(this,i,this.l)}}return this.l+=n,this}function E4(t,i){var e=b4(this,this.l,t.length>>1);if(e!==t)throw new Error(i+"Expected "+t+" saw "+e);this.l+=t.length>>1}function Nn(t,i){t.l=i,t.read_shift=Of,t.chk=E4,t.write_shift=Vse}function lr(t,i){t.l+=i}function re(t){var i=tc(t);return Nn(i,0),i}function $r(){var t=[],i=Vt?256:2048,e=function(l){var d=re(l);return Nn(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&&Aw(e)&&t.push(e)}}function Pf(t,i,e){var n=ki(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 T4(t,i,e){var n=ki(t);return n.s=Pf(n.s,i.s,e),n.e=Pf(n.e,i.s,e),n}function Lf(t,i){if(t.cRel&&t.c<0)for(t=ki(t);t.c<0;)t.c+=i>8?16384:256;if(t.rRel&&t.r<0)for(t=ki(t);t.r<0;)t.r+=i>8?1048576:i>5?65536:16384;var e=$t(t);return!t.cRel&&null!=t.cRel&&(e=function zse(t){return t.replace(/^([A-Z])/,"$$$1")}(e)),!t.rRel&&null!=t.rRel&&(e=function Hse(t){return t.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}(e)),e}function Iw(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?Lf(t.s,i.biff)+":"+Lf(t.e,i.biff):(t.s.rRel?"":"$")+ei(t.s.r)+":"+(t.e.rRel?"":"$")+ei(t.e.r):(t.s.cRel?"":"$")+Ht(t.s.c)+":"+(t.e.cRel?"":"$")+Ht(t.e.c)}function Fw(t){return parseInt(function Use(t){return t.replace(/\$(\d+)$/,"$1")}(t),10)-1}function ei(t){return""+(t+1)}function Rw(t){for(var i=function $se(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 Ci(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 $t(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 Bn(t){var i=t.indexOf(":");return-1==i?{s:Ci(t),e:Ci(t)}:{s:Ci(t.slice(0,i)),e:Ci(t.slice(i+1))}}function At(t,i){return typeof i>"u"||"number"==typeof i?At(t.s,t.e):("string"!=typeof t&&(t=$t(t)),"string"!=typeof i&&(i=$t(i)),t==i?t:t+":"+i)}function Nf(t){var i=Bn(t);return"$"+Ht(i.s.c)+"$"+ei(i.s.r)+":$"+Ht(i.e.c)+"$"+ei(i.e.r)}function Bf(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 ti(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 Fa(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?ys[t.v]||t.v:function M4(t,i){var e="d"==t.t&&i instanceof Date;if(null!=t.z)try{return t.w=Ur(t.z,e?kn(i):i)}catch{}try{return t.w=Ur((t.XF||{}).numFmtId||(e?14:0),e?kn(i):i)}catch{return""+i}}(t,null==i?t.v:i))}function oc(t,i){var e=i&&i.sheet?i.sheet:"Sheet1",n={};return n[e]=t,{SheetNames:[e],Sheets:n}}function A4(t,i,e){var n=e||{},r=t?null!=t["!data"]:n.dense;null!=hn&&null==r&&(r=hn);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?Ci(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=ti(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]},b=s+g;if(l.s.r>f&&(l.s.r=f),l.s.c>b&&(l.s.c=b),l.e.r0&&i.write_shift(0,t,"dbcs"),e?i.slice(0,i.l):i}function Gse(t){return{ich:t.read_shift(2),ifnt:t.read_shift(2)}}function Ow(t,i){var e=t.l,n=t.read_shift(1),r=dr(t),o=[],a={t:r,h:r};if(1&n){for(var s=t.read_shift(4),c=0;c!=s;++c)o.push(Gse(t));a.r=o}else a.r=[{ich:0,ifnt:0}];return t.l=e+i,a}var Qse=Ow;function Io(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 ml(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 pl(t){var i=t.read_shift(2);return i+=t.read_shift(1)<<16,t.l++,{c:-1,iStyleRef:i}}function gl(t,i){return null==i&&(i=re(4)),i.write_shift(3,t.iStyleRef||t.s),i.write_shift(1,0),i}var Kse=dr,I4=Vn;function Pw(t){var i=t.read_shift(4);return 0===i||4294967295===i?"":t.read_shift(i,"dbcs")}function Vf(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 Zse=dr,Lw=Pw,Nw=Vf;function Bw(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?Z0([0,0,0,0,252&i[0],i[1],i[2],i[3]],0):fl(i,0)>>2;return e?r/100:r}function F4(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 R4(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 _l=R4,xu=function Jse(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 ur(t){if(t.length-t.l<8)throw"XLS Xnum Buffer underflow";return t.read_shift(8,"f")}function bl(t,i){return(i||re(8)).write_shift(8,t,"f")}function J0(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 Hw={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:{}},Uw={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 uce(t){return t.map(function(i){return[i>>16&255,i>>8&255,255&i]})}var vl=ki(uce([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])),ys={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},zw={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},$w=["_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"],jw={"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"},n_={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 B4(t,i,e){var o,n=function hse(t){for(var i=[],e=ji(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}(jw),r=[];e||(r[r.length]=fn,r[r.length]=Me("Types",null,{xmlns:Ln.CT,"xmlns:xsd":Ln.xsd,"xmlns:xsi":Ln.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 Me("Default",null,{Extension:l[0],ContentType:l[1]})})));var a=function(l){t[l]&&t[l].length>0&&(r[r.length]=Me("Override",null,{PartName:("/"==(o=t[l][0])[0]?"":"/")+o,ContentType:n_[l][i.bookType]||n_[l].xlsx}))},s=function(l){(t[l]||[]).forEach(function(d){r[r.length]=Me("Override",null,{PartName:("/"==d[0]?"":"/")+d,ContentType:n_[l][i.bookType]||n_[l].xlsx})})},c=function(l){(t[l]||[]).forEach(function(d){r[r.length]=Me("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 Nt={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 Hf(t){var i=t.lastIndexOf("/");return t.slice(0,i+1)+"_rels/"+t.slice(i+1)+".rels"}function yu(t){var i=[fn,Me("Relationships",null,{xmlns:Ln.RELS})];return ji(t["!id"]).forEach(function(e){i[i.length]=Me("Relationship",null,t["!id"][e])}),i.length>2&&(i[i.length]="",i[1]=i[1].replace("/>",">")),i.join("")}function Ei(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:[Nt.HLINK,Nt.XPATH,Nt.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 V4(t,i,e){return[' \n',' \n'," \n"].join("")}function _ce(t,i){return[' \n',' \n'," \n"].join("")}function H4(t,i){return'SheetJS '+Cf.version+""}var Fo=[["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 Gw(t,i,e,n,r){null!=r[t]||null==i||""===i||(r[t]=i,i=Lt(i),n[n.length]=e?Me(t,i,e):Zn(t,i))}function z4(t,i){var e=i||{},n=[fn,Me("cp:coreProperties",null,{"xmlns:cp":Ln.CORE_PROPS,"xmlns:dc":Ln.dc,"xmlns:dcterms":Ln.dcterms,"xmlns:dcmitype":Ln.dcmitype,"xmlns:xsi":Ln.xsi})],r={};if(!t&&!e.Props)return n.join("");t&&(null!=t.CreatedDate&&Gw("dcterms:created","string"==typeof t.CreatedDate?t.CreatedDate:kw(t.CreatedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},n,r),null!=t.ModifiedDate&&Gw("dcterms:modified","string"==typeof t.ModifiedDate?t.ModifiedDate:kw(t.ModifiedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},n,r));for(var o=0;o!=Fo.length;++o){var a=Fo[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&&Gw(a[0],s,null,n,r)}return n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}var xl=[["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"]],$4=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function W4(t){var i=[],e=Me;return t||(t={}),t.Application="SheetJS",i[i.length]=fn,i[i.length]=Me("Properties",null,{xmlns:Ln.EXT_PROPS,"xmlns:vt":Ln.vt}),xl.forEach(function(n){if(void 0!==t[n[1]]){var r;switch(n[2]){case"string":r=Lt(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""+Lt(n)+""}).join(""),{size:t.Worksheets,baseType:"lpstr"})),i.length>2&&(i[i.length]="",i[1]=i[1].replace("/>",">")),i.join("")}function G4(t){var i=[fn,Me("Properties",null,{xmlns:Ln.CUST_PROPS,"xmlns:vt":Ln.vt})];if(!t)return i.join("");var e=1;return ji(t).forEach(function(r){++e,i[i.length]=Me("property",function Ise(t,i){switch(typeof t){case"string":var e=Me("vt:lpwstr",Lt(t));return i&&(e=e.replace(/"/g,"_x0022_")),e;case"number":return Me((0|t)==t?"vt:i4":"vt:r8",Lt(String(t)));case"boolean":return Me("vt:bool",t?"true":"false")}if(t instanceof Date)return Me("vt:filetime",kw(t));throw new Error("Unable to serialize "+t)}(t[r],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e,name:Lt(r)})}),i.length>2&&(i[i.length]="",i[1]=i[1].replace("/>",">")),i.join("")}var qw={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 Z4(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 Dce(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 Cn([e,n])}var eL=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function Rce(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 tL(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||$4.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=Z4(m.t,h)}else{var p=Rce(h);-1==p&&(p=31,h=String(h)),c=Z4(p,h)}o.push(c),(l=re(8)).write_shift(4,i?f:2+s),r.push(l),a+=8+c.length}var b=8*(o.length+1);for(s=0;s=12?2:1),r="sbcs-cont",o=Pn;e&&e.biff>=8&&(Pn=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 Pn=o,s}function Bce(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"),Cn([n,r])}function aL(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 sL(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 a_(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 uL(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 Kw(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 ole(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 kle(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 gL(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 Yle(t){var i=re(24),e=Ci(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 Cn([i,jce(t[1])])}function Zle(t){var i=t[1].Tooltip,e=re(10+2*(i.length+1));e.write_shift(2,2048);var n=Ci(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 b=d.read_shift(2),C=c.codepage||1252;2!=u&&(d.l+=16,d.read_shift(1),0!==d[d.l]&&(C=t[d[d.l]]),d.l+=1,d.l+=2),m&&(d.l+=36);for(var y=[],M={},q=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[++E]=[],H=0,H=0;H!=y.length;++H){var B=d.slice(d.l,d.l+y[H].len);d.l+=y[H].len,Nn(B,0);var G=typeof Ft<"u"?Ft.utils.decode(C,B):Ma(B);switch(y[H].type){case"C":G.trim().length&&(l[E][H]=G.replace(/\s+$/,""));break;case"D":l[E][H]=8===G.length?new Date(+G.slice(0,4),+G.slice(4,6)-1,+G.slice(6,8)):G;break;case"F":l[E][H]=parseFloat(G.trim());break;case"+":case"I":l[E][H]=m?2147483648^B.read_shift(-4,"i"):B.read_shift(4,"i");break;case"L":switch(G.trim().toUpperCase()){case"Y":case"T":l[E][H]=!0;break;case"N":case"F":l[E][H]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+G+"|")}break;case"M":if(!h)throw new Error("DBF Unexpected MEMO for type "+u.toString(16));l[E][H]="##MEMO##"+(m?parseInt(G.trim(),10):B.read_shift(4));break;case"N":(G=G.replace(/\u0000/g,"").trim())&&"."!=G&&(l[E][H]=+G||0);break;case"@":l[E][H]=new Date(B.read_shift(-8,"f")-621356832e5);break;case"T":l[E][H]=new Date(864e5*(B.read_shift(4)-2440588)+B.read_shift(4));break;case"Y":l[E][H]=B.read_shift(4,"i")/1e4+B.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":l[E][H]=-B.read_shift(-8,"f");break;case"B":if(f&&8==y[H].len){l[E][H]=B.read_shift(8,"f");break}case"G":case"P":B.l+=y[H].len;break;case"0":if("_NullFlags"===y[H].name)break;default:throw new Error("DBF Unsupported data type "+y[H].type)}}else d.l+=b;if(2!=u&&d.l=0&&Eo(+l.codepage),"string"==l.type)throw new Error("Cannot write DBF to JS string");var u=$r(),h=w_(s,{header:1,raw:!0,cellDates:!0}),f=h[0],m=h.slice(1),g=s["!cols"]||[],p=0,b=0,C=0,y=1;for(p=0;p250&&(G=250),"C"==(B=((g[p]||{}).DBF||{}).type)&&g[p].DBF.len>G&&(G=g[p].DBF.len),"B"==H&&"N"==B&&(H="N",E[p]=g[p].DBF.dec,G=g[p].DBF.len),N[p]="C"==H||"N"==B?G:o[H]||0,y+=N[p],q[p]=H}else q[p]="?"}var j=u.next(32);for(j.write_shift(4,318902576),j.write_shift(4,m.length),j.write_shift(2,296+32*C),j.write_shift(2,y),p=0;p<4;++p)j.write_shift(4,0);var me=+i[Pn]||3;for(j.write_shift(4,0|me<<8),t[me]!=+l.codepage&&(l.codepage&&console.error("DBF Unsupported codepage "+Pn+", using 1252"),Pn=1252),p=0,b=0;pN[b]&&(he=he.slice(0,N[b])),C=0;C":190,"?":191,"{":223},i=new RegExp("\x1bN("+ji(t).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),e=function(u,h){var f=t[h];return"number"==typeof f?fw(f):f},n=function(u,h,f){var m=h.charCodeAt(0)-32<<4|f.charCodeAt(0)-48;return 59==m?u:fw(m)};function o(u,h){var G,f=u.split(/[\n\r]+/),m=-1,g=-1,p=0,b=0,C=[],y=[],M=null,q={},N=[],E=[],H=[],B=0,Z={Workbook:{WBProps:{},Names:[]}};for(+h.codepage>=0&&Eo(+h.codepage);p!==f.length;++p){B=0;var de,j=f[p].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(i,e),me=j.replace(/;;/g,"\0").split(";").map(function(ae){return ae.replace(/\u0000/g,";")});if(j.length>0)switch(me[0]){case"ID":case"E":case"B":case"W":break;case"O":for(b=1;b=1&&ne<=4&&(Z.Workbook.WBProps.date1904=!0)}break;case"P":"P"===me[1].charAt(0)&&y.push(j.slice(3).replace(/;;/g,";"));break;case"NN":var Y={Sheet:0};for(b=1;b-1&&C[Ke][gt];if(!W||!W[1])throw new Error("SYLK shared formula cannot find base");F=VL(W[1],{r:m-Ke,c:g-gt})}F&&(C[m][g]?C[m][g].f=F:C[m][g]={t:"n",f:F});break;case"F":var U=0;for(b=1;b0?(N[m].hpt=B,N[m].hpx=Cu(B)):0===B&&(N[m].hidden=!0);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+j)}U<1&&(M=null);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+j)}}return N.length>0&&(q["!rows"]=N),E.length>0&&(q["!cols"]=E),E.forEach(function(ae){sc(ae)}),h&&h.sheetRows&&(C=C.slice(0,h.sheetRows)),[C,q,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"+f_(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(ao(u),h);case"binary":return o(u,h);case"buffer":return o(Vt&&Buffer.isBuffer(u)?u.toString("binary"):Ma(u),h);case"array":return o(ul(u),h)}throw new Error("Unrecognized type "+h.type)}(u,h),m=f[0],g=f[1],p=f[2],b=ki(h);b.date1904=(((p||{}).Workbook||{}).WBProps||{}).date1904;var C=vu(m,b);ji(g).forEach(function(M){C[M]=g[M]});var y=oc(C,h);return ji(p).forEach(function(M){y[M]=p[M]}),y.bookType="sylk",y},from_sheet:function d(u,h,f){var b,m=["ID;PSheetJS;N;E"],g=[],p=ti(u["!ref"]),C=null!=u["!data"],y="\r\n",M=(((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=Wf(f.width)),"number"==typeof f.wpx&&!f.wch&&(f.wch=Gf(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*qf(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"+(M?";V4":"")+";K47;G100 0.001");for(var q=p.s.r;q<=p.e.r;++q)if(!C||u["!data"][q]){for(var N=[],E=p.s.c;E<=p.e.c;++E)(b=C?u["!data"][q][E]:u[Ht(E)+ei(q)])&&(null!=b.v||b.f&&!b.F)&&N.push(s(b,0,q,E));g.push(N.join(y))}return m.join(y)+y+g.join(y)+y+"E"+y}}}(),DL=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],b=l[++h]||"";1&(b.match(/["]/g)||[]).length&&h=0||d.indexOf(",")>=0||d.indexOf(";")>=0?function o(d,u){var h=u||{},f="";null!=hn&&null==h.dense&&(h.dense=hn);var m={};h.dense&&(m["!data"]=[]);var g={s:{c:0,r:0},e:{c:0,r:0}};"sep="==d.slice(0,4)?13==d.charCodeAt(5)&&10==d.charCodeAt(6)?(f=d.charAt(4),d=d.slice(7)):13==d.charCodeAt(5)||10==d.charCodeAt(5)?(f=d.charAt(4),d=d.slice(6)):f=r(d.slice(0,1024)):f=h&&h.FS?h.FS:r(d.slice(0,1024));var p=0,b=0,C=0,y=0,M=0,q=f.charCodeAt(0),N=!1,E=0,H=d.charCodeAt(0),B=null!=h.dateNF?function ase(t){var i="number"==typeof t?ht[t]:t;return i=i.replace(WP,"(\\d+)"),new RegExp("^"+i+"$")}(h.dateNF):null;function G(){var Z=d.slice(y,M);"\r"==Z.slice(-1)&&(Z=Z.slice(0,-1));var j={};if('"'==Z.charAt(0)&&'"'==Z.charAt(Z.length-1)&&(Z=Z.slice(1,-1).replace(/""/g,'"')),0===Z.length?j.t="z":h.raw||0===Z.trim().length?(j.t="s",j.v=Z):61==Z.charCodeAt(0)?34==Z.charCodeAt(1)&&34==Z.charCodeAt(Z.length-1)?(j.t="s",j.v=Z.slice(2,-1).replace(/""/g,'"')):function jhe(t){return 1!=t.length}(Z)?(j.t="n",j.f=Z.slice(1)):(j.t="s",j.v=Z):"TRUE"==Z?(j.t="b",j.v=!0):"FALSE"==Z?(j.t="b",j.v=!1):isNaN(C=so(Z))?!isNaN((C=gu(Z)).getDate())||B&&Z.match(B)?(j.z=h.dateNF||ht[14],B&&Z.match(B)&&(Z=function sse(t,i,e){var n=-1,r=-1,o=-1,a=-1,s=-1,c=-1;(i.match(WP)||[]).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(B)||[]),C=Wi(Z,1)),h.cellDates?(j.t="d",j.v=C):(j.t="n",j.v=kn(C)),!1!==h.cellText&&(j.w=Ur(j.z,j.v instanceof Date?kn(j.v):j.v)),h.cellNF||delete j.z):(j.t="s",j.v=Z):(j.t="n",!1!==h.cellText&&(j.w=Z),j.v=C),"z"==j.t||(h.dense?(m["!data"][p]||(m["!data"][p]=[]),m["!data"][p][b]=j):m[$t({c:b,r:p})]=j),H=d.charCodeAt(y=M+1),g.e.c0&&G(),m["!ref"]=At(g),m}(d,u):vu(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,b=0,C=0;C<=g;++C)-1==(b=m[C].indexOf(" "))?b=m[C].length:b++,p=Math.max(p,b);for(C=0;C<=g;++C){f[C]=[];var y=0;for(t(m[C].slice(0,p).trim(),f,C,y,h),y=1;y<=(m[C].length-p)/10+1;++y)t(m[C].slice(p+10*(y-1),p+10*y).trim(),f,C,y,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 xC(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=ao(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=ao(d);break;case"binary":case"string":h=d;break;case"buffer":h=65001==u.codepage?d.toString("utf8"):u.codepage&&typeof Ft<"u"?Ft.utils.decode(u.codepage,d):Vt&&Buffer.isBuffer(d)?d.toString("binary"):Ma(d);break;case"array":h=ul(d);break;default:throw new Error("Unrecognized type "+u.type)}return 239==f[0]&&187==f[1]&&191==f[2]?h=Di(h.slice(3)):"string"!=u.type&&"buffer"!=u.type&&65001==u.codepage?h=Di(h):"binary"==u.type&&typeof Ft<"u"&&u.codepage&&(h=Ft.utils.decode(u.codepage,Ft.utils.encode(28591,h))),"socialcalc:version:"==h.slice(0,19)?EL.to_sheet("string"==u.type?h:Di(h),u):a(h,u)}return{to_workbook:function c(d,u){return oc(s(d,u),u)},to_sheet:s,from_sheet:function l(d){for(var f,u=[],h=ti(d["!ref"]),m=null!=d["!data"],g=h.s.r;g<=h.e.r;++g){for(var p=[],b=h.s.c;b<=h.e.c;++b){var C=$t({r:g,c:b});if((f=m?(d["!data"][g]||[])[b]:d[C])&&null!=f.v){for(var y=(f.w||(Fa(f),f.w)||"").slice(0,10);y.length<10;)y+=" ";p.push(y+(0===b?" ":""))}else p.push(" ")}u.push(p.join(""))}return u.join("\n")}}}(),kl=function(){function t(F,K,W){if(F){Nn(F,F.l||0);for(var U=W.Enum||ce;F.l255||Pe.s.r>999999)break;Pe.e.cni&&(Pe.s.c=ni),$e=nt.read_shift(4),Pe.s.r>$e&&(Pe.s.r=$e),$e=nt.read_shift(4),Pe.e.r<$e&&(Pe.e.r=$e);break;case 3073:$e=nt.read_shift(4),A=nt.read_shift(4),Pe.s.r>$e&&(Pe.s.r=$e),Pe.e.r<$e+A-1&&(Pe.e.r=$e+A-1);for(var pr=Ht(ni);nt.l0&&A>=0;){if(32&Mi)switch(31&Mi){case 2:li={t:"n",v:li.v+gr&65535};break;case 3:(li={t:"n",v:li.v+gr&65535}).v>32767&&(li.v-=65536);break;case 7:li={t:"s",v:ae[xt=xt+gr>>>0]};break;default:throw"Cannot apply delta for QPW cell type "+(31&Mi)}else switch(31&Mi){case 1:li={t:"z"};break;case 2:li={t:"n",v:nt.read_shift(2)};break;case 7:li={t:"s",v:ae[xt=nt.read_shift(4)-1]};break;default:throw"Cannot apply repeat for QPW cell type "+(31&Mi)}!W.sheetStubs&&"z"==li.t||(null!=U["!data"]?(U["!data"][$e]||(U["!data"][$e]=[]),U["!data"][$e][ni]=li):U[pr+ei($e)]=li),++$e,--A}}}F.l+=mi}return Gt}(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])W.Enum=ce,t(F,function(Ve,pr,li){switch(li){case 0:W.vers=Ve,Ve>=4096&&(W.qpro=!0);break;case 255:W.vers=Ve,W.works=!0;break;case 6:$e=Ve;break;case 204:Ve&&(xe=Ve);break;case 222:xe=Ve;break;case 15:case 51:(!W.qpro&&!W.works||51==li)&&Ve[1].v.charCodeAt(0)<48&&(Ve[1].v=Ve[1].v.slice(1)),(W.works||W.works2)&&(Ve[1].v=Ve[1].v.replace(/\r\n/g,"\n"));case 13:case 14:case 16:14==li&&112==(112&Ve[2])&&(15&Ve[2])>1&&(15&Ve[2])<15&&(Ve[1].z=W.dateNF||ht[14],W.cellDates&&(Ve[1].t="d",Ve[1].v=q0(Ve[1].v))),W.qpro&&Ve[3]>Re&&(U["!ref"]=At($e),Pe[ae]=U,A.push(ae),U={},W.dense&&(ni=U["!data"]=[]),$e={s:{r:0,c:0},e:{r:0,c:0}},Re=Ve[3],ae=xe||"Sheet"+(Re+1),xe="");var Mi=W.dense?(ni[Ve[0].r]||[])[Ve[0].c]:U[$t(Ve[0])];if(Mi){Mi.t=Ve[1].t,Mi.v=Ve[1].v,null!=Ve[1].z&&(Mi.z=Ve[1].z),null!=Ve[1].f&&(Mi.f=Ve[1].f);break}W.dense?(ni[Ve[0].r]||(ni[Ve[0].r]=[]),ni[Ve[0].r][Ve[0].c]=Ve[1]):U[$t(Ve[0])]=Ve[1];break;case 21509:W.works2=!0}},W);else{if(26!=F[2]&&14!=F[2])throw new Error("Unrecognized LOTUS BOF "+F[2]);W.Enum=Ke,14==F[2]&&(W.qpro=!0,F.l=0),t(F,function(Ve,pr,li){switch(li){case 204:ae=Ve;break;case 22:Ve[1].v.charCodeAt(0)<48&&(Ve[1].v=Ve[1].v.slice(1)),Ve[1].v=Ve[1].v.replace(/\x0F./g,function(Mi){return String.fromCharCode(Mi.charCodeAt(1)-32)}).replace(/\r\n/g,"\n");case 23:case 24:case 25:case 37:case 39:case 40:if(Ve[3]>Re&&(U["!ref"]=At($e),Pe[ae]=U,A.push(ae),U={},W.dense&&(ni=U["!data"]=[]),$e={s:{r:0,c:0},e:{r:0,c:0}},ae="Sheet"+((Re=Ve[3])+1)),Gt>0&&Ve[0].r>=Gt)break;W.dense?(ni[Ve[0].r]||(ni[Ve[0].r]=[]),ni[Ve[0].r][Ve[0].c]=Ve[1]):U[$t(Ve[0])]=Ve[1],$e.e.c=128?95:xe)}return U.write_shift(1,0),U}function m(F,K,W){var U=re(7);return U.write_shift(1,255),U.write_shift(2,K),U.write_shift(2,F),U.write_shift(2,W,"i"),U}function p(F,K,W){var U=re(13);return U.write_shift(1,255),U.write_shift(2,K),U.write_shift(2,F),U.write_shift(8,W,"f"),U}function C(F,K,W){var U=32768&K;return K=(U?F:0)+((K&=-32769)>=8192?K-16384:K),(U?"":"$")+(W?Ht(K):ei(K))}var y={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]},M=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];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 H(F,K,W,U){var ae=re(6+U.length);ae.write_shift(2,F),ae.write_shift(1,W),ae.write_shift(1,K),ae.write_shift(1,39);for(var xe=0;xe=128?95:Re)}return ae.write_shift(1,0),ae}function G(F,K){var W=N(F),U=F.read_shift(4),ae=F.read_shift(4),xe=F.read_shift(2);if(65535==xe)return 0===U&&3221225472===ae?(W[1].t="e",W[1].v=15):0===U&&3489660928===ae?(W[1].t="e",W[1].v=42):W[1].v=0,W;var Re=32768&xe;return xe=(32767&xe)-16446,W[1].v=(1-2*Re)*(ae*Math.pow(2,xe+32)+U*Math.pow(2,xe)),W}function Z(F,K,W,U){var ae=re(14);if(ae.write_shift(2,F),ae.write_shift(1,W),ae.write_shift(1,K),0==U)return ae.write_shift(4,0),ae.write_shift(4,0),ae.write_shift(2,65535),ae;var xe=0,Re=0,A=0;return U<0&&(xe=1,U=-U),Re=0|Math.log2(U),2147483648&(A=(U/=Math.pow(2,Re-31))>>>0)||(++Re,A=(U/=2)>>>0),U-=A,A|=2147483648,A>>>=0,U*=Math.pow(2,32),ae.write_shift(4,U>>>0),ae.write_shift(4,A),ae.write_shift(2,Re+=16383+(xe?32768:0)),ae}function ye(F,K){var W=N(F),U=F.read_shift(8,"f");return W[1].v=U,W}function ne(F,K){return 0==F[F.l+K-1]?F.read_shift(K,"cstr"):""}function Be(F,K){var W=re(5+F.length);W.write_shift(2,14e3),W.write_shift(2,K);for(var U=0;U127?95:ae}return W[W.l++]=0,W}var ce={0:{n:"BOF",f:pn},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function s(F,K,W){var U={s:{c:0,r:0},e:{c:0,r:0}};return 8==K&&W.qpro?(U.s.c=F.read_shift(1),F.l++,U.s.r=F.read_shift(2),U.e.c=F.read_shift(1),F.l++,U.e.r=F.read_shift(2),U):(U.s.c=F.read_shift(2),U.s.r=F.read_shift(2),12==K&&W.qpro&&(F.l+=2),U.e.c=F.read_shift(2),U.e.r=F.read_shift(2),12==K&&W.qpro&&(F.l+=2),65535==U.s.c&&(U.s.c=U.e.c=U.s.r=U.e.r=0),U)}},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,W){var U=l(F,0,W);return U[1].v=F.read_shift(2,"i"),U}},14:{n:"NUMBER",f:function g(F,K,W){var U=l(F,0,W);return U[1].v=F.read_shift(8,"f"),U}},15:{n:"LABEL",f:function d(F,K,W){var U=F.l+K,ae=l(F,0,W);if(ae[1].t="s",20768==W.vers){F.l++;var xe=F.read_shift(1);return ae[1].v=F.read_shift(xe,"utf8"),ae}return W.qpro&&F.l++,ae[1].v=F.read_shift(U-F.l,"cstr"),ae}},16:{n:"FORMULA",f:function b(F,K,W){var U=F.l+K,ae=l(F,0,W);if(ae[1].v=F.read_shift(8,"f"),W.qpro)F.l=U;else{var xe=F.read_shift(2);(function q(F,K){Nn(F,0);for(var W=[],U=0,ae="",xe="",Re="",Pe="";F.lW.length)return void console.error("WK1 bad formula parse 0x"+A.toString(16)+":|"+W.join("|")+"|");var Gt=W.slice(-U);W.length-=U,W.push(y[A][0]+"("+Gt.join(",")+")")}}}1==W.length?K[1].f=""+W[0]:console.error("WK1 bad formula parse |"+W.join("|")+"|")})(F.slice(F.l,F.l+xe),ae),F.l+=xe}return ae}},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,W){var U=F.l+K,ae=l(F,0,W);if(ae[1].t="s",20768==W.vers){var xe=F.read_shift(1);return ae[1].v=F.read_shift(xe,"utf8"),ae}return ae[1].v=F.read_shift(U-F.l,"cstr"),ae}},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 W=F[F.l++];W>K-1&&(W=K-1);for(var U="";U.length>1;if(1&W[1].v)switch(7&U){case 0:U=5e3*(U>>3);break;case 1:U=500*(U>>3);break;case 2:U=(U>>3)/20;break;case 3:U=(U>>3)/200;break;case 4:U=(U>>3)/2e3;break;case 5:U=(U>>3)/2e4;break;case 6:U=(U>>3)/16;break;case 7:U=(U>>3)/64}return W[1].v=U,W}},25:{n:"FORMULA19",f:function j(F,K){var W=G(F);return F.l+=K-14,W}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function se(F,K){for(var W={},U=F.l+K;F.l>6,W}},38:{n:"??"},39:{n:"NUMBER27",f:ye},40:{n:"FORMULA28",f:function de(F,K){var W=ye(F);return F.l+=K-12,W}},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,W){if(W.qpro&&!(K<21)){var U=F.read_shift(1);return F.l+=17,F.l+=1,F.l+=2,[U,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 W=K||{};if(+W.codepage>=0&&Eo(+W.codepage),"string"==W.type)throw new Error("Cannot write WK1 to JS string");var U=$r(),ae=ti(F["!ref"]),xe=null!=F["!data"],Re=[];Fe(U,0,function o(F){var K=re(2);return K.write_shift(2,F),K}(1030)),Fe(U,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}(ae));for(var Pe=Math.min(ae.e.r,8191),A=ae.s.c;A<=ae.e.c;++A)Re[A]=Ht(A);for(var xt=ae.s.r;xt<=Pe;++xt){var ni=ei(xt);for(A=ae.s.c;A<=ae.e.c;++A){var $e=xe?(F["!data"][xt]||[])[A]:F[Re[A]+ni];$e&&"z"!=$e.t&&("n"==$e.t?(0|$e.v)==$e.v&&$e.v>=-32768&&$e.v<=32767?Fe(U,13,m(xt,A,$e.v)):Fe(U,14,p(xt,A,$e.v)):Fe(U,15,u(xt,A,Fa($e).slice(0,239))))}}return Fe(U,1),U.end()},book_to_wk3:function r(F,K){var W=K||{};if(+W.codepage>=0&&Eo(+W.codepage),"string"==W.type)throw new Error("Cannot write WK3 to JS string");var U=$r();Fe(U,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 W=0,U=0,ae=0,xe=0;xe8191&&(W=8191),K.write_shift(2,W),K.write_shift(1,ae),K.write_shift(1,U),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 ae=0,xe=0;ae=0;--o)i=((16384&i?1:0)|i<<1&32767)^e[o];return 52811^i}function jf(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 fr=6;function Wf(t){return Math.floor((t+Math.round(128/fr)/256)*fr)}function Gf(t){return Math.floor((t-5)/fr*100+.5)/100}function d_(t){return Math.round((t*fr+5)/fr*256)/256}function sc(t){t.width?(t.wpx=Wf(t.width),t.wch=Gf(t.wpx),t.MDW=fr):t.wpx?(t.wch=Gf(t.wpx),t.width=d_(t.wch),t.MDW=fr):"number"==typeof t.wch&&(t.width=d_(t.wch),t.wpx=Wf(t.width),t.MDW=fr),t.customWidth&&delete t.customWidth}var RL=96;function qf(t){return 96*t/RL}function Cu(t){return t*RL/96}function wue(t,i,e){e||(e=re(6+4*i.length)),e.write_shift(2,t),Vn(i,e);var n=e.length>e.l?e.slice(0,e.l):e;return null==e.l&&(e.l=e.length),n}var nC,Sue=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],Due=lr;function OL(t,i){i||(i=re(84)),nC||(nC=j0(Sue));var e=nC[t.patternType];null==e&&(e=40),i.write_shift(4,e);var n=0;if(40!=e)for(J0({auto:1},i),J0({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 PL(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 Xf(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 Tue=lr;function zue(t,i){var e=$r();return fe(e,278),function Rue(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,ra(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,wue(r,i[r]))}),fe(t,616))}}(e,t.SSF),function Oue(t){fe(t,611,ra(1)),fe(t,43,function kue(t,i){i||(i=re(153)),i.write_shift(2,20*t.sz),function ice(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),J0(t.color,i);var n=0;return"major"==t.scheme&&(n=1),"minor"==t.scheme&&(n=2),i.write_shift(1,n),Vn(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 Pue(t){fe(t,603,ra(2)),fe(t,45,OL({patternType:"none"})),fe(t,45,OL({patternType:"gray125"})),fe(t,604)}(e),function Lue(t){fe(t,613,ra(1)),fe(t,46,function Mue(t,i){return i||(i=re(51)),i.write_shift(1,0),Xf(0,i),Xf(0,i),Xf(0,i),Xf(0,i),Xf(0,i),i.length>i.l?i.slice(0,i.l):i}()),fe(t,614)}(e),function Nue(t){fe(t,626,ra(1)),fe(t,47,PL({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),fe(t,627)}(e),function Bue(t,i){fe(t,617,ra(i.length)),i.forEach(function(e){fe(t,47,PL(e,0))}),fe(t,618)}(e,i.cellXfs),function Vue(t){fe(t,619,ra(1)),fe(t,48,function Aue(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),Vf(t.name||"",i),i.length>i.l?i.slice(0,i.l):i}({xfId:0,builtinId:0,name:"Normal"})),fe(t,620)}(e),function Hue(t){fe(t,505,ra(0)),fe(t,506)}(e),function Uue(t){fe(t,508,function Iue(t,i,e){var n=re(2052);return n.write_shift(4,t),Vf(i,n),Vf(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 rC(t,i){if(i&&i.themeXLSX)return i.themeXLSX;if(t&&"string"==typeof t.raw)return t.raw;var e=[fn];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 NL(t,i){var e=[21600,21600],n=["m0,0l0",e[1],e[0],e[1],e[0],"0xe"].join(","),r=[Me("xml",null,{"xmlns:v":co.v,"xmlns:o":co.o,"xmlns:x":co.x,"xmlns:mv":co.mv}).replace(/\/>/,">"),Me("o:shapelayout",Me("o:idmap",null,{"v:ext":"edit",data:t}),{"v:ext":"edit"})],o=65536*t,a=i||[];return a.length>0&&r.push(Me("v:shapetype",[Me("v:stroke",null,{joinstyle:"miter"}),Me("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 whe(t,i){var e=Ci(t[0]),n={color2:"#BEFF82",type:"gradient"};"gradient"==n.type&&(n.angle="-180");var r="gradient"==n.type?Me("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,o=Me("v:fill",r,n);return["",o,Me("v:shadow",null,{on:"t",obscured:"t"}),Me("v:path",null,{"o:connecttype":"none"}),'
','',"","",Zn("x:Anchor",[e.c+1,0,e.r+1,0,e.c+3,20,e.r+5,20].join(",")),Zn("x:AutoFill","False"),Zn("x:Row",String(e.r)),Zn("x:Column",String(e.c)),t[1].hidden?"":"","",""].join("")}(s,o))}),r.push(""),r.join("")}function khe(t){var i=[fn,Me("comments",null,{xmlns:hl[0]})],e=[];return i.push(""),t.forEach(function(n){n[1].forEach(function(r){var o=Lt(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(Lt(l.a))),l.T&&++a,o.push(null==l.t?"":Lt(l.t))}),0===a)n[1].forEach(function(l){i.push(''),i.push(Zn("t",null==l.t?"":Lt(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 Dhe(t,i,e){var n=[fn,Me("ThreadedComments",null,{xmlns:Ln.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(Me("threadedComment",Zn("text",a.t||""),c))}else delete a.ID})}),n.push(""),n.join("")}var Ihe=dr;function Ohe(t){var i=$r(),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 Fhe(t){return Vn(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:Ci(n[0]),e:Ci(n[0])};fe(i,635,function Ahe(t,i){return null==i&&(i=re(36)),i.write_shift(4,t[1].iauthor),xu(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 Yse(t,i){var e=!1;return null==i&&(e=!0,i=re(23+4*t.t.length)),i.write_shift(1,1),Vn(t.t,i),i.write_shift(4,1),function qse(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 Bhe=["xlsb","xlsm","xlam","biff8","xla"],Sl=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?"":"$")+ei(l)}return function(r,o){return i=o,r.replace(t,e)}}(),oC=/(^|[^._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,f_=function(){return function(i,e){return i.replace(oC,function(n,r,o,a,s,c){var l=Rw(a)-(o?0:e.c),d=Fw(c)-(s?0:e.r);return r+"R"+("$"==s?d+1:0==d?"":"["+d+"]")+"C"+("$"==o?l+1:0==l?"":"["+l+"]")})}}();function VL(t,i){return t.replace(oC,function(e,n,r,o,a,s){return n+("$"==r?r+o:Ht(Rw(o)+i.c))+("$"==a?a+s:ei(Fw(s)+i.r))})}function En(t){t.l+=1}function cc(t,i){var e=t.read_shift(1==i?1:2);return[16383&e,e>>14&1,e>>15&1]}function UL(t,i,e){var n=2;if(e){if(e.biff>=2&&e.biff<=5)return zL(t);12==e.biff&&(n=4)}var r=t.read_shift(n),o=t.read_shift(n),a=cc(t,2),s=cc(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 zL(t){var i=cc(t,2),e=cc(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 $L(t,i,e){if(e&&e.biff>=2&&e.biff<=5)return function Ghe(t){var i=cc(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=cc(t,2);return{r:n,c:r[0],cRel:r[1],rRel:r[2]}}function qhe(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 jL(t){var i=1&t[t.l+1];return t.l+=4,[i,1]}function WL(t){return[t.read_shift(1),t.read_shift(1)]}function wfe(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 mn(t,i){return 1===t.read_shift(i)}(t,1)?"TRUE":"FALSE",12!=i&&(t.l+=7);break;case 37:case 16:e[1]=ys[t[t.l]],t.l+=12==i?4:8;break;case 0:t.l+=8;break;case 1:e[1]=ur(t);break;case 2:e[1]=function wl(t,i,e){if(e.biff>5)return function $f(t,i,e){var n=t.read_shift(e&&2==e.biff?1:2);return 0===n?(t.l++,""):function yl(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 Cfe(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?_l:a_)(t,8));return r}function kfe(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]=wfe(t,e.biff);return a}function Qf(t,i,e){return t.l+=2,[qhe(t)]}function aC(t){return t.l+=6,[]}function GL(t){return t.l+=2,[pn(t),1&t.read_shift(2)]}var jfe=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"],qL={1:{n:"PtgExp",f:function gfe(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:lr},3:{n:"PtgAdd",f:En},4:{n:"PtgSub",f:En},5:{n:"PtgMul",f:En},6:{n:"PtgDiv",f:En},7:{n:"PtgPower",f:En},8:{n:"PtgConcat",f:En},9:{n:"PtgLt",f:En},10:{n:"PtgLe",f:En},11:{n:"PtgEq",f:En},12:{n:"PtgGe",f:En},13:{n:"PtgGt",f:En},14:{n:"PtgNe",f:En},15:{n:"PtgIsect",f:En},16:{n:"PtgUnion",f:En},17:{n:"PtgRange",f:En},18:{n:"PtgUplus",f:En},19:{n:"PtgUminus",f:En},20:{n:"PtgPercent",f:En},21:{n:"PtgParen",f:En},22:{n:"PtgMissArg",f:En},23:{n:"PtgStr",f:function yfe(t,i,e){return t.l++,zf(t,0,e)}},26:{n:"PtgSheet",f:function qfe(t,i,e){return t.l+=5,t.l+=2,t.l+=2==e.biff?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function Xfe(t,i,e){return t.l+=2==e.biff?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function _fe(t){return t.l++,ys[t.read_shift(1)]}},29:{n:"PtgBool",f:function vfe(t){return t.l++,0!==t.read_shift(1)}},30:{n:"PtgInt",f:function bfe(t){return t.l++,t.read_shift(2)}},31:{n:"PtgNum",f:function xfe(t){return t.l++,ur(t)}},32:{n:"PtgArray",f:function tfe(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 hfe(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[Dme[r],KL[r],n]}},34:{n:"PtgFuncVar",f:function ffe(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 mfe(t){return[t[t.l+1]>>7,32767&t.read_shift(2)]}(t);return[r,(0===o[0]?KL:Sme)[o[1]]]}},35:{n:"PtgName",f:function Sfe(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 lfe(t,i,e){var n=(96&t[t.l])>>5;return t.l+=1,[n,$L(t,0,e)]}},37:{n:"PtgArea",f:function Yhe(t,i,e){return[(96&t[t.l++])>>5,UL(t,0,e)]}},38:{n:"PtgMemArea",f:function Tfe(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:lr},40:{n:"PtgMemNoMem",f:lr},41:{n:"PtgMemFunc",f:function Mfe(t,i,e){return[t.read_shift(1)>>>5&3,t.read_shift(e&&2==e.biff?1:2)]}},42:{n:"PtgRefErr",f:function Afe(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 Zhe(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 dfe(t,i,e){var n=(96&t[t.l])>>5;t.l+=1;var r=function Xhe(t,i,e){var n=e&&e.biff?e.biff:8;if(n>=2&&n<=5)return function Qhe(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 efe(t,i,e){var n=(96&t[t.l++])>>5,r=function Whe(t,i,e){if(e.biff<8)return zL(t);var n=t.read_shift(12==e.biff?4:2),r=t.read_shift(12==e.biff?4:2),o=cc(t,2),a=cc(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 Qfe(t){return[t.read_shift(1)>>>5&3,t.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function Yfe(t){return[t.read_shift(1)>>>5&3,t.read_shift(2)]}},57:{n:"PtgNameX",f:function Dfe(t,i,e){return 5==e.biff?function Efe(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 ufe(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,$L(t,0,e)]}},59:{n:"PtgArea3d",f:function Khe(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,UL(t,0,e)]}},60:{n:"PtgRefErr3d",f:function Ife(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 Jhe(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:{}},Zfe={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},Jfe={1:{n:"PtgElfLel",f:GL},2:{n:"PtgElfRw",f:Qf},3:{n:"PtgElfCol",f:Qf},6:{n:"PtgElfRwV",f:Qf},7:{n:"PtgElfColV",f:Qf},10:{n:"PtgElfRadical",f:Qf},11:{n:"PtgElfRadicalS",f:aC},13:{n:"PtgElfColS",f:aC},15:{n:"PtgElfColSV",f:aC},16:{n:"PtgElfRadicalLel",f:GL},25:{n:"PtgList",f:function Wfe(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:jfe[e>>2&31],idx:n,c:r,C:o}}},29:{n:"PtgSxName",f:function Gfe(t){return t.l+=2,[t.read_shift(4)]}},255:{}},eme={0:{n:"PtgAttrNoop",f:function Kfe(t){return t.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function afe(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 rfe(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 ife(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 nfe(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 pfe(t,i,e){t.l+=e&&2==e.biff?3:4}},32:{n:"PtgAttrBaxcel",f:jL},33:{n:"PtgAttrBaxcel",f:jL},64:{n:"PtgAttrSpace",f:function sfe(t){return t.read_shift(2),WL(t)}},65:{n:"PtgAttrSpaceSemi",f:function cfe(t){return t.read_shift(2),WL(t)}},128:{n:"PtgAttrIfError",f:function ofe(t){var i=255&t[t.l+1]?1:0;return t.l+=2,[i,t.read_shift(2)]}},255:{}};function Yf(t,i,e,n){if(n.biff<8)return lr(t,i);for(var r=t.l+i,o=[],a=0;a!==e.length;++a)switch(e[a][0]){case"PtgArray":e[a][1]=kfe(t,0,n),o.push(e[a][1]);break;case"PtgMemArea":e[a][2]=Cfe(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(lr(t,i)),o}function tme(t){for(var i=[],e=0;e=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function nme(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 XL(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 QL(t,i,e){var n=XL(t,i,e);return"#REF"==n?n:Bf(n,e)}function mr(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="",b=0,C=t[0].length;b=0){switch(t[0][g][1][0]){case 0:p=ci(" ",t[0][g][1][1]);break;case 1:p=ci("\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+ime[y[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(nme(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=Pf(y[1][1],a,r),s.push(Lf(d,o));break;case"PtgRefN":d=e?Pf(y[1][1],e,r):y[1][1],s.push(Lf(d,o));break;case"PtgRef3d":u=y[1][1],d=Pf(y[1][2],a,r),m=QL(n,u,r),s.push(m+"!"+Lf(d,o));break;case"PtgFunc":case"PtgFuncVar":var q=y[1][0],N=y[1][1];q||(q=0);var E=0==(q&=127)?[]:s.slice(-q);s.length-=q,"User"===N&&(N=E.shift()),s.push(N+"("+E.join(",")+")");break;case"PtgBool":s.push(y[1]?"TRUE":"FALSE");break;case"PtgInt":case"PtgErr":s.push(y[1]);break;case"PtgNum":s.push(String(y[1]));break;case"PtgStr":s.push('"'+y[1].replace(/"/g,'""')+'"');break;case"PtgAreaN":f=T4(y[1][1],e?{s:e}:a,r),s.push(Iw(f,r));break;case"PtgArea":f=T4(y[1][1],a,r),s.push(Iw(f,r));break;case"PtgArea3d":f=y[1][2],m=QL(n,u=y[1][1],r),s.push(m+"!"+Iw(f,r));break;case"PtgAttrSum":s.push("SUM("+s.pop()+")");break;case"PtgName":var H=(n.names||[])[(h=y[1][2])-1]||(n[0]||[])[h],B=H?H.Name:"SH33TJSNAME"+String(h);B&&"_xlfn."==B.slice(0,6)&&!r.xlfn&&(B=B.slice(6)),s.push(B);break;case"PtgNameX":var Z,G=y[1][1];if(h=y[1][2],!(r.biff<=5)){var j="";if(14849==((n[G]||[])[0]||[])[0]||(1025==((n[G]||[])[0]||[])[0]?n[G][h]&&n[G][h].itab>0&&(j=n.SheetNames[n[G][h].itab-1]+"!"):j=n.SheetNames[h-1]+"!"),n[G]&&n[G][h])j+=n[G][h].Name;else if(n[0]&&n[0][h])j+=n[0][h].Name;else{var me=(XL(n,G,r)||"").split(";;");me[h-1]?j=me[h-1]:j+="SH33TJSERRX"}s.push(j);break}G<0&&(G=-G),n[G]&&(Z=n[G][h]),Z||(Z={Name:"SH33TJSERRY"}),s.push(Z.Name);break;case"PtgParen":var ye="(",de=")";if(g>=0){switch(p="",t[0][g][1][0]){case 2:ye=ci(" ",t[0][g][1][1])+ye;break;case 3:ye=ci("\r",t[0][g][1][1])+ye;break;case 4:de=ci(" ",t[0][g][1][1])+de;break;case 5:de=ci("\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(ye+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[$t(d={c:y[1][1],r:y[1][0]})]){var Y=n.sharedf[$t(d)];s.push(mr(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(mr(l[1],0,ne,n,r)),he=!0;break}he||s.push(y[1])}break;case"PtgArray":s.push("{"+tme(y[1])+"}");break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":g=b;break;case"PtgMissArg":s.push("");break;case"PtgList":s.push("Table"+y[1].idx+"[#"+y[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(y))}if(3!=r.biff&&g>=0&&-1==["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(t[0][b][0])){var Be=!0;switch((y=t[0][g])[1][0]){case 4:Be=!1;case 0:p=ci(" ",y[1][1]);break;case 5:Be=!1;case 1:p=ci("\r",y[1][1]);break;default:if(p="",r.WTF)throw new Error("Unexpected PtgAttrSpaceType "+y[1][0])}s.push((Be?p:"")+s.pop()+(Be?"":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 m_(t,i,e){var n=t.read_shift(4),r=function Kf(t,i,e){for(var r,o,n=t.l+i,a=[];n!=t.l;)i=n-t.l,r=qL[o=t[t.l]]||qL[Zfe[o]],(24===o||25===o)&&(r=(24===o?Jfe:eme)[t[t.l+1]]),r&&r.f?a.push([r.n,r.f(t,i,e)]):lr(t,i);return a}(t,n,e),o=t.read_shift(4);return[r,o>0?Yf(t,o,r,e):null]}var ume=m_,p_=m_,hme=m_,fme=m_;function YL(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 kme=function Cme(t,i){if("number"==typeof t)return YL(t);if("boolean"==typeof t)return function pme(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 mme(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}(+zw[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 _me(t){var i=Ci(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 xme(t){var i=t.split(":"),e=i[0],n=re(23);n.write_shift(4,15);var r=Ci(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=Ci(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 wme(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=Bn(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 bme(t,i){var e=t.lastIndexOf("!"),n=t.slice(0,e),r=Ci(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 yme(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=Ci(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=Ci(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 vme(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 gme(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),Cn([i,e,n])}(t);if(/^[+-]\d+$/.test(t))return YL(parseInt(t,10));throw"Formula |"+t+"| not supported for XLSB"},Sme={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"},KL={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"},Dme={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 Eme(t){return("of:="+t.replace(oC,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")}function JL(t){return t.replace(/!/,".")}var Jf=typeof Map<"u";function lC(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=d_(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 Dl(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 lc(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]){rc(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 Tme(t,i,e){if(t&&t["!ref"]){var n=ti(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=ys[t.v];break;case"d":n&&n.cellDates?r=Wi(t.v,-1).toISOString():((t=ki(t)).t="n",r=""+(t.v=kn(Wi(t.v)))),typeof t.z>"u"&&(t.z=ht[14]);break;default:r=t.v}var s="z"==t.t||null==t.v?"":Zn("v",Lt(r)),c={r:i},l=lc(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=Zn("v",""+lC(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=Me("f",Lt(t.f),d)+(null!=t.v?s:"")}return t.l&&(t.l.display=Lt(r),e["!links"].push([i,t.l])),t.D&&(c.cm=1),Me("c",s,c)}function ope(t,i,e,n){var a,r=[fn,Me("worksheet",null,{xmlns:hl[0],"xmlns:r":Ln.r})],s="",c=e.Sheets[e.SheetNames[t]];null==c&&(c={});var l=c["!ref"]||"A1",d=ti(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=At(d)}n||(n={}),c["!comments"]=[];var u=[];(function zme(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=Ia(Lt(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||"")+Me("outlinePr",null,l)}!o&&!s||(r[r.length]=Me("sheetPr",s,a))})(c,e,t,i,r),r[r.length]=Me("dimension",null,{ref:l}),r[r.length]=function tpe(t,i,e,n){var r={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(r.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),Me("sheetViews",Me("sheetView",null,r),{})}(0,0,0,e),i.sheetFormat&&(r[r.length]=Me("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 Yme(t,i){for(var n,e=[""],r=0;r!=i.length;++r)(n=i[r])&&(e[e.length]=Me("col",null,g_(r,n)));return e[e.length]="",e.join("")}(0,c["!cols"])),r[a=r.length]="",c["!links"]=[],null!=c["!ref"]&&(s=function rpe(t,i,e,n){var c,p,r=[],o=[],a=ti(t["!ref"]),s="",l="",d=[],u=0,h=0,f=t["!rows"],m=null!=t["!data"],g={r:l},b=-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=ei(u),h=a.s.c;h<=a.e.c;++h){c=d[h]+l;var C=m?(t["!data"][u]||[])[h]:t[c];void 0!==C&&null!=(s=ipe(C,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),b=-1,p.hpx?b=qf(p.hpx):p.hpt&&(b=p.hpt),b>-1&&(g.ht=b,g.customHeight=1),p.level&&(g.outlineLevel=p.level)),r[r.length]=Me("row",o.join(""),g))}if(f)for(;u-1&&(g.ht=b,g.customHeight=1),p.level&&(g.outlineLevel=p.level),r[r.length]=Me("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 Wme(t){var i={sheet:1};return $me.forEach(function(e){null!=t[e]&&t[e]&&(i[e]="1")}),jme.forEach(function(e){null!=t[e]&&!t[e]&&(i[e]="0")}),t.password&&(i.password=eC(t.password).toString(16).toUpperCase()),Me("sheetProtection",null,i)}(c["!protect"])),null!=c["!autofilter"]&&(r[r.length]=function Zme(t,i,e,n){var r="string"==typeof t.ref?t.ref:At(t.ref);e.Workbook||(e.Workbook={Sheets:[]}),e.Workbook.Names||(e.Workbook.Names=[]);var o=e.Workbook.Names,a=Bn(r);a.s.r==a.e.r&&(a.e.r=Bn(i["!ref"]).e.r,r=At(a));for(var s=0;s0&&(r[r.length]=function Hme(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=Ei(n,-1,Lt(g[1].Target).replace(/#.*$/,""),Nt.HLINK),f["r:id"]="rId"+m),(h=g[1].Target.indexOf("#"))>-1&&(f.location=Lt(g[1].Target.slice(h+1))),g[1].Tooltip&&(f.tooltip=Lt(g[1].Tooltip)),f.display=g[1].display,r[r.length]=Me("hyperlink",null,f))}),r[r.length]=""),delete c["!links"],null!=c["!margins"]&&(r[r.length]=function Xme(t){return Dl(t),Me("pageMargins",null,t)}(c["!margins"])),(!i||i.ignoreEC||null==i.ignoreEC)&&(r[r.length]=Zn("ignoredErrors",Me("ignoredError",null,{numberStoredAsText:1,sqref:l}))),u.length>0&&(m=Ei(n,-1,"../drawings/drawing"+(t+1)+".xml",Nt.DRAW),r[r.length]=Me("drawing",null,{"r:id":"rId"+m}),c["!drawing"]=u),c["!comments"].length>0&&(m=Ei(n,-1,"../drawings/vmlDrawing"+(t+1)+".vml",Nt.VML),r[r.length]=Me("legacyDrawing",null,{"r:id":"rId"+m}),c["!legacy"]=m),r.length>1&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}function cpe(t,i,e,n){var r=function spe(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*qf(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 lpe=_l,dpe=xu;var Gpe=_l,qpe=xu,nN=["left","right","top","bottom","header","footer"];function dge(t,i,e,n,r,o,a){var s={r:e,c:n};if(i.c&&o["!comments"].push([$t(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=ki(i)).z=i.z||ht[14],i.v=kn(Wi(i.v)),i.t="n";break;case"n":case"e":c=""+i.v;break;default:c=i.v}switch(s.s=lc(r.cellXfs,i,r),i.l&&o["!links"].push([$t(s),i.l]),i.t){case"s":case"str":return r.bookSST?(c=lC(r.Strings,null==i.v?"":String(i.v),r.revStrings),s.t="s",s.v=c,a?fe(t,18,function Mpe(t,i,e){return null==e&&(e=re(8)),gl(i,e),e.write_shift(4,i.v),e}(0,s)):fe(t,7,function Epe(t,i,e){return null==e&&(e=re(12)),ml(i,e),e.write_shift(4,i.v),e}(0,s))):(s.t="str",a?fe(t,17,function Upe(t,i,e){var n=null==t.v?"":String(t.v);return null==e&&(e=re(8+4*n.length)),gl(i,e),Vn(n,e),e.length>e.l?e.slice(0,e.l):e}(i,s)):fe(t,6,function Vpe(t,i,e){var n=null==t.v?"":String(t.v);return null==e&&(e=re(12+4*t.v.length)),ml(i,e),Vn(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 Lpe(t,i,e){return null==e&&(e=re(8)),gl(i,e),F4(t.v,e),e}(i,s)):fe(t,2,function Ope(t,i,e){return null==e&&(e=re(12)),ml(i,e),F4(t.v,e),e}(i,s)):a?fe(t,16,function Fpe(t,i,e){return null==e&&(e=re(12)),gl(i,e),bl(t.v,e),e}(i,s)):fe(t,5,function Ipe(t,i,e){return null==e&&(e=re(16)),ml(i,e),bl(t.v,e),e}(i,s)),!0;case"b":return s.t="b",a?fe(t,15,function ype(t,i,e){return null==e&&(e=re(5)),gl(i,e),e.write_shift(1,t.v?1:0),e}(i,s)):fe(t,4,function vpe(t,i,e){return null==e&&(e=re(9)),ml(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 Spe(t,i,e){return null==e&&(e=re(8)),gl(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 Cpe(t,i,e){return null==e&&(e=re(9)),ml(i,e),e.write_shift(1,t.v),e}(i,s)),!0}return a?fe(t,12,function _pe(t,i,e){return null==e&&(e=re(4)),gl(i,e)}(0,s)):fe(t,1,function ppe(t,i,e){return null==e&&(e=re(8)),ml(i,e)}(0,s)),!0}function xge(t,i,e,n){var r=$r(),o=e.SheetNames[t],a=e.Sheets[o]||{},s=o;try{e&&e.Workbook&&(s=e.Workbook.Sheets[t].CodeName||s)}catch{}var c=ti(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 fpe(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 J0({auto:1},e),e.write_shift(-4,-1),e.write_shift(-4,-1),I4(t,e),e.slice(0,e.l)}(s,a["!outline"])),fe(r,148,dpe(c)),function bge(t,i,e){fe(t,133),fe(t,137,function rge(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 fge(t,i){!i||!i["!cols"]||(fe(t,390),i["!cols"].forEach(function(e,n){e&&fe(t,60,function ege(t,i,e){null==e&&(e=re(18));var n=g_(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 uge(t,i,e,n){var r=ti(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=ei(d),cpe(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&&dge(t,f,d,h,n,i,u)}}fe(t,146)}(r,a,0,i),function vge(t,i){i["!protect"]&&fe(t,535,function age(t,i){return null==i&&(i=re(66)),i.write_shift(2,t.password?eC(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 _ge(t,i,e,n){if(i["!autofilter"]){var r=i["!autofilter"],o="string"==typeof r.ref?r.ref:At(r.ref);e.Workbook||(e.Workbook={Sheets:[]}),e.Workbook.Names||(e.Workbook.Names=[]);var a=e.Workbook.Names,s=Bn(o);s.s.r==s.e.r&&(s.e.r=Bn(i["!ref"]).e.r,o=At(s));for(var c=0;c0){var r=Ei(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",Nt.VML);fe(t,551,Nw("rId"+r)),i["!legacy"]=r}}(r,a,t,n),fe(r,130),r.end()}var uC=[["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"]],Age=":][*?/\\".split("");function sN(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'");Age.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 Lge(t,i){return i||(i=re(127)),i.write_shift(4,t.Hidden),i.write_shift(4,t.iTabID),Nw(t.strRelID,i),Vn(t.name.slice(0,31),i),i.length>i.l?i.slice(0,i.l):i}function Yge(t,i){var e=$r();return fe(e,131),fe(e,128,function jge(t,i){i||(i=re(127));for(var e=0;4!=e;++e)i.write_shift(4,0);return Vn("SheetJS",i),Vn(Cf.version,i),Vn(Cf.version,i),Vn("7262",i),i.length>i.l?i.slice(0,i.l):i}()),fe(e,153,function Bge(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),I4(t&&t.CodeName||"ThisWorkbook",i),i.slice(0,i.l)}(t.Workbook&&t.Workbook.WBProps||null)),function Gge(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 Wge(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 $ge(t,i){fe(t,143);for(var e=0;e!=i.SheetNames.length;++e)fe(t,156,Lge({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 Qge(t,i){fe(t,353),fe(t,357),fe(t,362,function Xge(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,Vn(r),kme(t.Ref,i)];if(t.Comment)o.push(Vf(t.Comment));else{var a=re(4);a.write_shift(4,4294967295),o.push(a)}return Cn(o)}(e,i))}catch{console.error("Could not serialize defined name "+JSON.stringify(e))}})}(e,t),fe(e,132),e.end()}function uN(t){return Me("NamedRange",null,{"ss:Name":"_xlnm."==t.Name.slice(0,6)?t.Name.slice(6):t.Name,"ss:RefersTo":"="+f_(t.Ref,{r:0,c:0})})}function C0e(t,i,e,n,r,o,a){if(!t||null==t.v&&null==t.f)return"";var s={};if(t.f&&(s["ss:Formula"]="="+Lt(f_(t.f,a))),t.F&&t.F.slice(0,i.length)==i){var c=Ci(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"]=Lt(t.l.Target),t.l.Tooltip&&(s["x:HRefScreenTip"]=Lt(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=ys[t.v];break;case"d":u="DateTime",h=new Date(t.v).toISOString(),null==t.z&&(t.z=t.z||ht[14]);break;case"s":u="String",h=function Dse(t){return(t+"").replace(ww,function(e){return yw[e]}).replace(s4,function(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"})}(t.v||"")}var f=lc(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 w0e(t){return t.map(function(i){var e=function Ese(t){return t.replace(/(\r\n|[\r\n])/g," ")}(i.t||""),n=Me("ss:Data",e,{xmlns:"http://www.w3.org/TR/REC-html40"});return Me("Comment",n,{"ss:Author":i.a})}).join("")}(t.c)),Me("Cell",g,s)}function k0e(t,i){var e='"}function D0e(t,i,e){var n=[],o=e.Sheets[e.SheetNames[t]],a=o?function x0e(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 S0e(t,i,e,n){if(!t["!ref"])return"";var r=ti(t["!ref"]),o=t["!merges"]||[],a=0,s=[];t["!cols"]&&t["!cols"].forEach(function(p,b){sc(p);var C=!!p.width,y=g_(b,p),M={"ss:Index":b+1};C&&(M["ss:Width"]=Wf(y.width)),p.hidden&&(M["ss:Hidden"]="1"),s.push(Me("Column",null,M))});for(var c=null!=t["!data"],l=r.s.r;l<=r.e.r;++l){for(var d=[k0e(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 y0e(t,i,e,n){if(!t)return"";var r=[];if(t["!margins"]&&(r.push(""),t["!margins"].header&&r.push(Me("Header",null,{"x:Margin":t["!margins"].header})),t["!margins"].footer&&r.push(Me("Footer",null,{"x:Margin":t["!margins"].footer})),r.push(Me("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(Me("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(Zn("ProtectContents","True")),t["!protect"].objects&&r.push(Zn("ProtectObjects","True")),t["!protect"].scenarios&&r.push(Zn("ProtectScenarios","True")),null==t["!protect"].selectLockedCells||t["!protect"].selectLockedCells?null!=t["!protect"].selectUnlockedCells&&!t["!protect"].selectUnlockedCells&&r.push(Zn("EnableSelection","UnlockedCells")):r.push(Zn("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?"":Me("WorksheetOptions",r.join(""),{xmlns:co.x})}(o,0,t,e)),o["!autofilter"]&&n.push(''),n.join("")}function E0e(t,i){i||(i={}),t.SSF||(t.SSF=ki(ht)),t.SSF&&(pu(),Mf(t.SSF),i.revssf=W0(t.SSF),i.revssf[t.SSF[65535]]=0,i.ssf=t.SSF,i.cellXfs=[],lc(i.cellXfs,{},{revssf:{General:0}}));var e=[];e.push(function g0e(t,i){var e=[];return t.Props&&e.push(function kce(t,i){var e=[];return ji(qw).map(function(n){for(var r=0;r'+r.join("")+""}(t.Props,t.Custprops)),e.join("")}(t,i)),e.push(function _0e(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(Me("NumberFormat",null,{"ss:Format":Lt(ht[n.numFmtId])}));var a={"ss:ID":"s"+(21+r)};e.push(Me("Style",o.join(""),a))}),Me("Styles",e.join(""))}(0,i),e[3]=function v0e(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 ece(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=vl[r];l&&(i.rgb=jf(l));break;case 2:i.rgb=jf([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=dr(t),n}},44:{f:function yue(t,i){return[t.read_shift(2),dr(t)]}},45:{f:Due},46:{f:Tue},47:{f:function Eue(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 Wse(t){return t.read_shift(4,"i")}},50:{},51:{f:function che(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 kL(t,i,e){if(!e.cellStyles)return lr(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 Npe(t){return[Io(t),Ow(t),"is"]}},63:{f:function bhe(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=$t(e);var n=t.read_shift(1);return 2&n&&(i.l="1"),8&n&&(i.a="1"),i}},64:{f:function sge(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:lr,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function nge(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 hpe(t,i){var e={},n=t[t.l];return++t.l,e.above=!(64&n),e.left=!(128&n),t.l+=18,e.name=Kse(t,i-19),e}},148:{f:lpe,p:16},151:{f:function Kpe(){}},152:{},153:{f:function Nge(t,i){var e={},n=t.read_shift(4);e.defaultThemeVersion=t.read_shift(4);var r=i>8?dr(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 Pge(t,i){var e={};return e.Hidden=t.read_shift(4),e.iTabID=t.read_shift(4),e.strRelID=Lw(t,i-8),e.name=dr(t),e}},157:{},158:{},159:{T:1,f:function Ode(t){return[t.read_shift(4),t.read_shift(4)]}},160:{T:-1},161:{T:1,f:_l},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:Gpe},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 ahe(t,i){return{flags:t.read_shift(4),version:t.read_shift(4),name:dr(t)}}},336:{T:-1},337:{f:function uhe(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:Lw},357:{},358:{},359:{},360:{T:1},361:{},362:{f:function yL(t,i,e){if(e.biff<8||!(e.biff>8)&&i==t[t.l]+(3==t[t.l+1]?1:0)+1)return function wL(t,i,e){3==t[t.l+1]&&t[t.l]++;var n=zf(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(qce(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 Zpe(t,i,e){var n=t.l+i,r=R4(t),o=t.read_shift(1),a=[r];if(a[2]=o,e.cellFormula){var s=ume(t,n-t.l,e);a[1]=s}else t.l=n;return a}},427:{f:function Jpe(t,i,e){var n=t.l+i,o=[_l(t,16)];if(e.cellFormula){var a=fme(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 tge(t){var i={};return nN.forEach(function(e){i[e]=ur(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 upe(){}},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 Qpe(t,i){var e=t.l+i,n=_l(t,16),r=Pw(t),o=dr(t),a=dr(t),s=dr(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:Lw},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:Ihe},633:{T:1},634:{T:-1},635:{T:1,f:function Mhe(t){var i={};i.iauthor=t.read_shift(4);var e=_l(t,16);return i.rfx=e.s,i.ref=$t(e.s),t.l+=16,i}},636:{T:-1},637:{f:Qse},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 kge(t,i){return t.l+=10,{name:dr(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 cge(){}},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 Fe(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&&Aw(e)&&t.push(e)}}function nm(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 B0e(t,i,e,n){if(null!=i.v)switch(i.t){case"d":case"n":var r="d"==i.t?kn(Wi(i.v)):i.v;return void(r==(0|r)&&r>=0&&r<65536?Fe(t,2,function gde(t,i,e){var n=re(9);return nm(n,t,i),n.write_shift(2,e),n}(e,n,r)):Fe(t,3,function mde(t,i,e){var n=re(15);return nm(n,t,i),n.write_shift(8,e,"f"),n}(e,n,r)));case"b":case"e":return void Fe(t,5,function L0e(t,i,e,n){var r=re(9);return nm(r,t,i),oL(e,n||"b",r),r}(e,n,i.v,i.t));case"s":case"str":return void Fe(t,4,function N0e(t,i,e){var n=re(8+2*e.length);return nm(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)}Fe(n,2057,Kw(0,16,i)),Fe(n,13,Ro(1)),Fe(n,12,Ro(100)),Fe(n,15,Ar(!0)),Fe(n,17,Ar(!1)),Fe(n,16,bl(.001)),Fe(n,95,Ar(!0)),Fe(n,42,Ar(!1)),Fe(n,43,Ar(!1)),Fe(n,130,Ro(1)),Fe(n,128,function Rle(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])),Fe(n,131,Ar(!1)),Fe(n,132,Ar(!1)),l&&function G0e(t,i){if(i){var e=0;i.forEach(function(n,r){++e<=256&&n&&Fe(t,125,function rde(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}(g_(r,n),r))})}}(n,o["!cols"]),Fe(n,512,function Dle(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=[],b=f.s.c;b<=f.e.c;++b)h[b]=Ht(b);for(var C=f.s.r;C<=f.e.r;++C)for(c&&(p=o["!data"][C]||[]),u=ei(C),b=f.s.c;b<=f.e.c;++b){d=h[b]+u;var y=c?p[b]:o[d];y&&(q0e(n,y,C,b,i),l&&y.l&&o["!links"].push([d,y.l]),l&&y.c&&g.push([d,y.c]))}var M=s.CodeName||s.name||r;return l&&Fe(n,574,function ple(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&&Fe(n,229,function jle(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 Y0e(t,i){var e=i||{},n=[];t&&!t.SSF&&(t.SSF=ki(ht)),t&&t.SSF&&(pu(),Mf(t.SSF),e.revssf=W0(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,vC(e),e.cellXfs=[],lc(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=ei(u),d=o.s.c;d<=o.e.c;++d){var h=r?l[d]:i[c[d]+s];h&&B0e(t,h,u,d)}}(n,t.Sheets[t.SheetNames[r]],0,e),Fe(n,10),n.end()}(t,i)}throw new Error("invalid type "+o.bookType+" for BIFF")}function mN(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(Me("td",m,a))}}return""+o.join("")+""}var pN='SheetJS Table Export',gN="";function bN(t,i){var e=i||{},r=null!=e.footer?e.footer:gN,o=[null!=e.header?e.header:pN],a=Bn(t["!ref"]);o.push(function _N(t,i,e){return[].join("")+""}(0,0,e));for(var s=a.s.r;s<=a.e.r;++s)o.push(mN(t,a,s,e));return o.push(""+r),o.join("")}var t_e=function(){var t=["",'',"",'',"",'',"",""].join(""),i=""+t+"";return function(){return fn+i}}();function i_e(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+=""+Lt(o.replace(/""/g,'"'))+""):n+=""+Lt(o.replace(/""/g,'"'))+"",t=t.slice(a+1),a=0}var s=t.match(/# (\?+)\/(\?+)/);if(s)n+=Me("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+=Me("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+=Me("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+=""+Lt(o.slice(1).replace(/""/g,'"'))+"";break;case"/":n+=""+Lt(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+=""+Lt(o.slice(1).replace(/""/g,'"'))+"";break;case"/":n+=""+Lt(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+=""+Lt(o.replace(/""/g,'"'))+""):n+=""+Lt(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+=""+Lt(o.replace(/""/g,'"'))+""}}}}else e="text",n="";return n?Me("number:"+e+"-style",n,r):(console.error("Could not generate ODS number format for |"+t+"|"),"")}function DN(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=JL(r.Ref);return" "+Me("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 EN=function(){var t=function(o){return Lt(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=Bn(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 C=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=$t({r:u,c:h}),E=p?(o["!data"][u]||[])[h]:o[N];if(E&&E.f&&(M["table:formula"]=Lt(Eme(E.f)),E.F&&E.F.slice(0,N.length)==N)){var H=Bn(E.F);M["table:number-matrix-columns-spanned"]=H.e.c-H.s.c+1,M["table:number-matrix-rows-spanned"]=H.e.r-H.s.r+1}if(E){switch(E.t){case"b":q=E.v?"TRUE":"FALSE",M["office:value-type"]="boolean",M["office:boolean-value"]=E.v?"true":"false";break;case"n":q=E.w||String(E.v||0),M["office:value-type"]="float",M["office:value"]=E.v||0;break;case"s":case"str":q=null==E.v?"":E.v,M["office:value-type"]="string";break;case"d":q=E.w||Wi(E.v).toISOString(),M["office:value-type"]="date",M["office:date-value"]=Wi(E.v).toISOString(),M["table:style-name"]="ce1";break;default:d.push(i);continue}var B=t(q);if(E.l&&E.l.Target){var G=E.l.Target;"#"!=(G="#"==G.charAt(0)?"#"+JL(G.slice(1)):G).charAt(0)&&!G.match(/^\w+:/)&&(G="../"+G),B=Me("text:a",B,{"xlink:href":G.replace(/&/g,"&")})}l[E.z]&&(M["table:style-name"]="ce"+l[E.z].slice(1)),d.push(" "+Me("table:table-cell",Me("text:p",B,{}),M)+"\n")}else d.push(i)}}d.push(" \n")}return(a.Workbook||{}).Names&&d.push(DN(a.Workbook.Names,0,s)),d.push(" \n"),d.join("")};return function(a,s){var c=[fn],l=Rf({"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=Rf({"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(H4().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=Bn(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[$t({r:m,c:g})];if(p&&p.z&&"general"!=p.z.toLowerCase()&&!l[p.z]){var b=i_e(p.z,"N"+d);b&&(l[p.z]="N"+d,++d,o.push(b+"\n"))}}}),o.push(' \n'),ji(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(DN(a.Workbook.Names,0,-1)),c.push(" \n"),c.push(" \n"),c.push("fods"==s.bookType?"":""),c.join("")}}();function TN(t,i){if("fods"==i.bookType)return EN(t,i);var e=xw(),n="",r=[],o=[];return Pt(e,n="mimetype","application/vnd.oasis.opendocument.spreadsheet"),Pt(e,n="content.xml",EN(t,i)),r.push([n,"text/xml"]),o.push([n,"ContentFile"]),Pt(e,n="styles.xml",t_e(t,i)),r.push([n,"text/xml"]),o.push([n,"StylesFile"]),Pt(e,n="meta.xml",fn+H4()),r.push([n,"text/xml"]),o.push([n,"MetadataFile"]),Pt(e,n="manifest.rdf",function bce(t){var i=[fn];i.push('\n');for(var e=0;e!=t.length;++e)i.push(V4(t[e][0],t[e][1])),i.push(_ce("",t[e][0]));return i.push(V4("","Document","pkg")),i.push(""),i.join("")}(o)),r.push([n,"application/rdf+xml"]),Pt(e,n="META-INF/manifest.xml",function gce(t){var i=[fn];i.push('\n'),i.push(' \n');for(var e=0;e\n');return i.push(""),i.join("")}(r)),e}var Tn=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 Cs(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Wn(t){return typeof TextDecoder<"u"?(new TextDecoder).decode(t):Di(Ma(t))}function aa(t){return typeof TextEncoder<"u"?(new TextEncoder).encode(t):Tr(Ia(t))}function dc(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 at(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[Tn](0,e)}function MN(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 Ue(t){for(var i=[],e={l:0};e.l=128;);a=t[Tn](e.l,s),e.l=s;break;case 1:a=t[Tn](s,s+8),e.l=s+8;break;case 2:var c=rm(t,e);a=t[Tn](e.l,e.l+c),e.l+=c;break;case 5:a=t[Tn](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 ut(t){var i=[];return t.forEach(function(e,n){0!=n&&e.forEach(function(r){r.data&&(i.push(at(8*n+r.type)),2==r.type&&i.push(at(r.data.length)),i.push(r.data))})}),dc(i)}function El(t,i){return t?.map(function(e){return i(e.data)})||[]}function om(t){for(var i,e=[],n={l:0};n.l>>0>0),e.push(a)}return e}function am(t){var i=[];return t.forEach(function(e){var n=[[],[{data:at(e.id),type:0}],[]];null!=e.merge&&(n[3]=[{data:at(+!!e.merge),type:0}]);var r=[];e.messages.forEach(function(a){r.push(a.data),a.meta[3]=[{type:0,data:at(a.data.length)}],n[2].push({data:ut(a.meta),type:2})});var o=ut(n);i.push(at(o.length)),i.push(o),r.forEach(function(a){return i.push(a)})}),dc(i)}function o_e(t,i){if(0!=t)throw new Error("Unexpected Snappy chunk type ".concat(t));for(var e={l:0},n=rm(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][Tn](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][Tn](0,d))}r.length>25&&(r=[dc(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[Tn](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[Tn](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 dc(i)}function b_(t,i){var e=new Uint8Array(32),n=Cs(e),r=12,o=0;switch(e[0]=5,t.t){case"n":e[1]=2,function r_e(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[Tn](0,r)}function v_(t,i){var e=new Uint8Array(32),n=Cs(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[Tn](0,r)}function Ti(t){return ii(Ue(t)[1][0].data)}function ks(t){return ut([[],[{type:0,data:at(t)}]])}function uc(t,i){var e,n=null!=(e=t.messages[0].meta[5])&&e[0]?MN(t.messages[0].meta[5][0].data):[];-1==n.indexOf(i)&&(n.push(i),t.messages[0].meta[5]=[{type:2,data:AN(n)}])}function Ss(t,i){var e,n=null!=(e=t.messages[0].meta[5])&&e[0]?MN(t.messages[0].meta[5][0].data):[];t.messages[0].meta[5]=[{type:2,data:AN(n.filter(function(r){return r!=i}))}]}function g_e(t,i,e){var n,r,o=[[],[{type:0,data:at(0)}],[{type:0,data:at(0)}],[{type:2,data:new Uint8Array([])}],[{type:2,data:new Uint8Array(Array.from({length:510},function(){return 255}))}],[{type:0,data:at(5)}],[{type:2,data:new Uint8Array([])}],[{type:2,data:new Uint8Array(Array.from({length:510},function(){return 255}))}],[{type:0,data:at(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=Cs(o[7][0].data),d=0,u=[],h=Cs(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:""};vC(i=i||{});var o=xw(),a="",s=0;if(i.cellXfs=[],lc(i.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),Pt(o,a="docProps/core.xml",z4(t.Props,i)),r.coreprops.push(a),Ei(i.rels,2,a,Nt.CORE_PROPS),a="docProps/app.xml",!t.Props||!t.Props.SheetNames)if(t.Workbook&&t.Workbook.Sheets){for(var c=[],l=0;l0&&(Pt(o,a="docProps/custom.xml",G4(t.Custprops)),r.custprops.push(a),Ei(i.rels,4,a,Nt.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(Pt(o,a="xl/worksheets/sheet"+s+"."+e,ope(s-1,i,t,u)),r.sheets.push(a),Ei(i.wbrels,-1,"worksheets/sheet"+s+"."+e,Nt.WS[0]),h){var m=h["!comments"],g=!1,p="";if(m&&m.length>0){var b=!1;m.forEach(function(C){C[1].forEach(function(y){1==y.T&&(b=!0)})}),b&&(Pt(o,p="xl/threadedComments/threadedComment"+s+".xml",Dhe(m,d,i)),r.threadedcomments.push(p),Ei(u,-1,"../threadedComments/threadedComment"+s+".xml",Nt.TCMNT)),Pt(o,p="xl/comments"+s+"."+e,khe(m)),r.comments.push(p),Ei(u,-1,"../comments"+s+"."+e,Nt.CMNT),g=!0}h["!legacy"]&&g&&Pt(o,"xl/drawings/vmlDrawing"+s+".vml",NL(s,h["!comments"])),delete h["!comments"],delete h["!legacy"]}u["!id"].rId1&&Pt(o,Hf(a),yu(u))}return null!=i.Strings&&i.Strings.length>0&&(Pt(o,a="xl/sharedStrings."+e,function Rde(t,i){if(!i.bookSST)return"";var e=[fn];e[e.length]=Me("sst",null,{xmlns:hl[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),Ei(i.wbrels,-1,"sharedStrings."+e,Nt.SST)),Pt(o,a="xl/workbook."+e,function Oge(t){var i=[fn];i[i.length]=Me("workbook",null,{xmlns:hl[0],"xmlns:r":Ln.r});var e=t.Workbook&&(t.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};t.Workbook&&t.Workbook.WBProps&&(uC.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]=Me("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:Lt(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]=Me("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]=Me("definedName",Lt(s.Ref),c))}),i[i.length]=""),i.length>2&&(i[i.length]="",i[1]=i[1].replace("/>",">")),i.join("")}(t)),r.workbooks.push(a),Ei(i.rels,1,a,Nt.WB),Pt(o,a="xl/theme/theme1.xml",rC(t.Themes,i)),r.themes.push(a),Ei(i.wbrels,-1,"theme/theme1.xml",Nt.THEME),Pt(o,a="xl/styles."+e,function xue(t,i){var n,e=[fn,Me("styleSheet",null,{xmlns:hl[0],"xmlns:vt":Ln.vt})];return t.SSF&&null!=(n=function gue(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]=Me("numFmt",null,{numFmtId:n,formatCode:Lt(t[n])}))}),1===i.length?"":(i[i.length]="",i[0]=Me("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 bue(t){var i=[];return i[i.length]=Me("cellXfs",null),t.forEach(function(e){i[i.length]=Me("xf",null,e)}),i[i.length]="",2===i.length?"":(i[0]=Me("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),Ei(i.wbrels,-1,"styles."+e,Nt.STY),t.vbaraw&&n&&(Pt(o,a="xl/vbaProject.bin",t.vbaraw),r.vba.push(a),Ei(i.wbrels,-1,"vbaProject.bin",Nt.VBA)),Pt(o,a="xl/metadata."+e,function ghe(){var t=[fn];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),Ei(i.wbrels,-1,"metadata."+e,Nt.XLMETA),d.length>1&&(Pt(o,a="xl/persons/person.xml",function The(t){var i=[fn,Me("personList",null,{xmlns:Ln.TCMNT,"xmlns:x":hl[0]}).replace(/[\/]>/,">")];return t.forEach(function(e,n){i.push(Me("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),Ei(i.wbrels,-1,"persons/person.xml",Nt.PEOPLE)),Pt(o,"[Content_Types].xml",B4(r,i)),Pt(o,"_rels/.rels",yu(i.rels)),Pt(o,"xl/_rels/workbook.xml.rels",yu(i.wbrels)),delete i.revssf,delete i.ssf,o}function VN(t,i){switch(i.type){case"base64":case"binary":break;case"buffer":case"array":i.type="";break;case"file":return Af(i.file,dt.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 dt.write(t,i)}function F_e(t,i){switch(i.bookType){case"ods":return TN(t,i);case"numbers":return function b_e(t,i){if(!i||!i.numbers)throw new Error("Must pass a `numbers` option -- check the README");var e=dt.read(i.numbers,{type:"base64"}),n=function __e(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]&&om(sm(r.content)).forEach(function(a){e.push(a.id),i[a.id]={deps:[],location:o,type:ii(a.messages[0].meta[1][0].data)}})}),t.FileIndex.forEach(function(n){n.name.match(/\.iwa/)&&0==n.content[0]&&om(sm(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(ii(s.data))})})})})}),i}(e),r=Pa(e,n,1);if(null==r)throw"Could not find message ".concat(1," in Numbers template");var o=El(Ue(r.messages[0].data)[1],Ti);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 v_e(t,i,e){var n=-1,r=-1,o={};Hn(t,i,1,function(l,d){var u=Ue(l.messages[0].data);n=Ti(Ue(l.messages[0].data)[1][0].data),r=hc({deps:[1],location:i[n].location,type:2},i),o[n]=r,uc(l,r),u[1].push({type:2,data:ks(r)});var h=Pa(t,i,n);h.id=r,i[1].location==i[r].location?d.push(h):Hn(t,i,r,function(f,m){return m.push(h)}),l.messages[0].data=ut(u)});var a=-1;Hn(t,i,r,function(l,d){for(var u=Ue(l.messages[0].data),h=3;h<=69;++h)delete u[h];var f=El(u[2],Ti);f.forEach(function(p){return Ss(l,p)}),a=hc({deps:[r],location:i[f[0]].location,type:i[f[0]].type},i),uc(l,a),o[f[0]]=a,u[2]=[{type:2,data:ks(a)}];var m=Pa(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$/,""),Hn(t,i,2,function(p){var b=Ue(p.messages[0].data),C=b[3].findIndex(function(M){var q,N,E=Ue(M.data);return null!=(q=E[3])&&q[0]?Wn(E[3][0].data)==g:!(null==(N=E[2])||!N[0]||Wn(E[2][0].data)!=g)}),y=Ue(b[3][C].data);y[6]||(y[6]=[]),y[6].push({type:2,data:ut([[],[{type:0,data:at(a)}]])}),b[3][C].data=ut(y),p.messages[0].data=ut(b)}),Hn(t,i,a,function(p,b){return b.push(m)})}l.messages[0].data=ut(u)});var s=-1;Hn(t,i,a,function(l,d){for(var u=Ue(l.messages[0].data),h=Ue(u[1][0].data),f=3;f<=69;++f)delete h[f];var m=Ti(h[2][0].data);h[2][0].data=ks(o[m]),u[1][0].data=ut(h);var g=Ti(u[2][0].data);Ss(l,g),uc(l,s=hc({deps:[a],location:i[g].location,type:i[g].type},i)),o[g]=s,u[2][0].data=ks(s);var p=Pa(t,i,g);p.id=s,i[a].location==i[s].location?d.push(p):Hn(t,i,s,function(b,C){return C.push(p)}),l.messages[0].data=ut(u)});var c=i[s].location;c=(c=c.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,""),Hn(t,i,s,function(l,d){var u,h,f=Ue(l.messages[0].data),g=Wn(f[1][0].data).replace(/-[A-Z0-9]*/,"-".concat(e.toString(16).padStart(4,"0")));if(f[1][0].data=aa(g),[12,13,29,31,32,33,39,44,47,81,82,84].forEach(function(N){return delete f[N]}),f[45]){var b=Ti(Ue(f[45][0].data)[1][0].data);Ss(l,b),delete f[45]}f[70]&&(null==(u=Ue(f[70][0].data)[2])||u.forEach(function(N){var E=Ue(N.data);[2,3].map(function(H){return E[H][0]}).forEach(function(H){var B=Ue(H.data);if(B[8]){var G=Ti(B[8][0].data);Ss(l,G)}})}),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 E=Ti(f[N][0].data);delete f[N],Ss(l,E)}});var y=Ue(f[4][0].data);[2,4,5,6,11,12,13,15,16,17,18,19,20,21,22].forEach(function(N){var E;if(null!=(E=y[N])&&E[0]){var H=Ti(y[N][0].data),B=hc({deps:[s],location:i[H].location,type:i[H].type},i);Ss(l,H),uc(l,B),o[H]=B;var G=Pa(t,i,H);if(G.id=B,i[H].location==i[s].location)d.push(G);else{i[B].location=i[H].location.replace(H.toString(),B.toString()),i[B].location==i[H].location&&(i[B].location=i[B].location.replace(/\.iwa/,"-".concat(B,".iwa"))),dt.utils.cfb_add(t,i[B].location,cm(am([G])));var Z=i[B].location;Z=(Z=Z.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,""),Hn(t,i,2,function(j){var me=Ue(j.messages[0].data);me[3].push({type:2,data:ut([[],[{type:0,data:at(B)}],[{type:2,data:aa(Z.replace(/-.*$/,""))}],[{type:2,data:aa(Z)}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:at(0)}],[],[{type:0,data:at(0)}]])}),me[1]=[{type:0,data:at(Math.max(B+1,ii(me[1][0].data)))}];var ye=me[3].findIndex(function(ne){var Y,he,se=Ue(ne.data);return null!=(Y=se[3])&&Y[0]?Wn(se[3][0].data)==c:!(null==(he=se[2])||!he[0]||Wn(se[2][0].data)!=c)}),de=Ue(me[3][ye].data);de[6]||(de[6]=[]),de[6].push({type:2,data:ut([[],[{type:0,data:at(B)}]])}),me[3][ye].data=ut(de),j.messages[0].data=ut(me)})}y[N][0].data=ks(B)}});var M=Ue(y[1][0].data);null==(h=M[2])||h.forEach(function(N){var E=Ti(N.data),H=hc({deps:[s],location:i[E].location,type:i[E].type},i);Ss(l,E),uc(l,H),o[E]=H;var B=Pa(t,i,E);if(B.id=H,i[E].location==i[s].location)d.push(B);else{i[H].location=i[E].location.replace(E.toString(),H.toString()),i[H].location==i[E].location&&(i[H].location=i[H].location.replace(/\.iwa/,"-".concat(H,".iwa"))),dt.utils.cfb_add(t,i[H].location,cm(am([B])));var G=i[H].location;G=(G=G.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,""),Hn(t,i,2,function(Z){var j=Ue(Z.messages[0].data);j[3].push({type:2,data:ut([[],[{type:0,data:at(H)}],[{type:2,data:aa(G.replace(/-.*$/,""))}],[{type:2,data:aa(G)}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:at(0)}],[],[{type:0,data:at(0)}]])}),j[1]=[{type:0,data:at(Math.max(H+1,ii(j[1][0].data)))}];var me=j[3].findIndex(function(de){var ne,Y,he=Ue(de.data);return null!=(ne=he[3])&&ne[0]?Wn(he[3][0].data)==c:!(null==(Y=he[2])||!Y[0]||Wn(he[2][0].data)!=c)}),ye=Ue(j[3][me].data);ye[6]||(ye[6]=[]),ye[6].push({type:2,data:ut([[],[{type:0,data:at(H)}]])}),j[3][me].data=ut(ye),Z.messages[0].data=ut(j)})}N.data=ks(H)}),y[1][0].data=ut(M);var q=Ue(y[3][0].data);q[1].forEach(function(N){var E=Ue(N.data),H=Ti(E[2][0].data),B=o[H];if(!o[H]){B=hc({deps:[s],location:"",type:i[H].type},i),i[B].location="Root Entry/Index/Tables/Tile-".concat(B,".iwa"),o[H]=B;var G=Pa(t,i,H);G.id=B,Ss(l,H),uc(l,B),dt.utils.cfb_add(t,"/Index/Tables/Tile-".concat(B,".iwa"),cm(am([G]))),Hn(t,i,2,function(Z){var j=Ue(Z.messages[0].data);j[3].push({type:2,data:ut([[],[{type:0,data:at(B)}],[{type:2,data:aa("Tables/Tile")}],[{type:2,data:aa("Tables/Tile-".concat(B))}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:at(0)}],[],[{type:0,data:at(0)}]])}),j[1]=[{type:0,data:at(Math.max(B+1,ii(j[1][0].data)))}];var me=j[3].findIndex(function(de){var ne,Y,he=Ue(de.data);return null!=(ne=he[3])&&ne[0]?Wn(he[3][0].data)==c:!(null==(Y=he[2])||!Y[0]||Wn(he[2][0].data)!=c)}),ye=Ue(j[3][me].data);ye[6]||(ye[6]=[]),ye[6].push({type:2,data:ut([[],[{type:0,data:at(B)}]])}),j[3][me].data=ut(ye),Z.messages[0].data=ut(j)})}E[2][0].data=ks(B),N.data=ut(E)}),y[3][0].data=ut(q),f[4][0].data=ut(y),l.messages[0].data=ut(f)})}(e,n,s+1),r=Pa(e,n,1),o=El(Ue(r.messages[0].data)[1],Ti)),function x_e(t,i,e,n,r,o){var a=[];Hn(t,i,o,function(l){var d=Ue(l.messages[0].data);d[1]=[{type:2,data:aa(n)}],a=El(d[2],Ti),l.messages[0].data=ut(d)});var c=Ti(Ue(Pa(t,i,a[0]).messages[0].data)[2][0].data);Hn(t,i,c,function(l,d){return function y_e(t,i,e,n,r,o){var a=Bn(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(At(a)));var c=w_(e,{range:a,header:1}),l=["~Sh33tJ5~"],d=i[o].location;d=(d=d.replace(/^Root Entry\//,"")).replace(/^Index\//,"").replace(/\.iwa$/,"");var u=Ue(n.messages[0].data);u[6][0].data=at(a.e.r+1),u[7][0].data=at(a.e.c+1),delete u[46];var h=Ue(u[4][0].data);Hn(t,i,Ti(Ue(h[1][0].data)[2][0].data),function(ye,de){var ne,Y=Ue(ye.messages[0].data);if(null!=(ne=Y?.[2])&&ne[0])for(var he=0;he0&&(Pt(o,a="docProps/custom.xml",G4(t.Custprops)),r.custprops.push(a),Ei(i.rels,4,a,Nt.CUST_PROPS)),s=1;s<=t.SheetNames.length;++s){var d={"!id":{}},u=t.Sheets[t.SheetNames[s-1]];if(Pt(o,a="xl/worksheets/sheet"+s+"."+e,xge(s-1,i,t,d)),r.sheets.push(a),Ei(i.wbrels,-1,"worksheets/sheet"+s+"."+e,Nt.WS[0]),u){var f=u["!comments"],m=!1,g="";f&&f.length>0&&(Pt(o,g="xl/comments"+s+"."+e,Ohe(f)),r.comments.push(g),Ei(d,-1,"../comments"+s+"."+e,Nt.CMNT),m=!0),u["!legacy"]&&m&&Pt(o,"xl/drawings/vmlDrawing"+s+".vml",NL(s,u["!comments"])),delete u["!comments"],delete u["!legacy"]}d["!id"].rId1&&Pt(o,Hf(a),yu(d))}return null!=i.Strings&&i.Strings.length>0&&(Pt(o,a="xl/sharedStrings."+e,function Bde(t){var i=$r();fe(i,159,function Lde(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+=To.charAt(o)+To.charAt(a)+To.charAt(s)+To.charAt(c);return i}(t);case"binary":case"string":return t;case"file":return Af(i.file,t,"binary");case"buffer":return Vt?Ta(t,"binary"):t.split("").map(function(e){return e.charCodeAt(0)})}throw new Error("Unrecognized type "+i.type)}(WN(t.Sheets[t.SheetNames[r]],e),e);case"csv":return La(kC(t.Sheets[t.SheetNames[r]],e),e,"\ufeff");case"dif":return La(DL.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"dbf":return y_(Zw.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"prn":return La(wu.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"rtf":return La(function rue(t,i){var e=["{\\rtf1\\ansi"];if(!t["!ref"])return e[0]+"}";for(var r,n=ti(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=$t({r:s,c});(r=o?a[c]:t[l])&&(null!=r.v||r.f&&!r.F)?(e.push(" "+(r.w||(Fa(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 La(EL.from_sheet(t.Sheets[t.SheetNames[r]],e),e);case"fods":return La(TN(t,e),e);case"wk1":return y_(kl.sheet_to_wk1(t.Sheets[t.SheetNames[r]],e),e);case"wk3":return y_(kl.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),y_(hN(t,e),e);case"biff5":e.biff||(e.biff=5);case"biff8":case"xla":case"xls":return e.biff||(e.biff=8),function P_e(t,i){var e=i||{};return VN(function O0e(t,i){var e=i||{},n=dt.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 dt.utils.cfb_add(n,r,hN(t,e)),8==e.biff&&(t.Props||t.Custprops)&&function R0e(t,i){var a,e=[],n=[],r=[],o=0,s=qP(Hw,"n"),c=qP(Uw,"n");if(t.Props)for(a=ji(t.Props),o=0;o-1||$4.indexOf(r[o][0])>-1||null!=r[o][1]&&l.push(r[o]);n.length&&dt.utils.cfb_add(i,"/\x05SummaryInformation",nL(n,tm.SI,c,Uw)),(e.length||l.length)&&dt.utils.cfb_add(i,"/\x05DocumentSummaryInformation",nL(e,tm.DSI,s,Hw,l.length?l:null,tm.UDI))}(t,n),8==e.biff&&t.vbaraw&&function Nhe(t,i){i.FullPaths.forEach(function(e,n){if(0!=n){var r=e.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");"/"!==r.slice(-1)&&dt.utils.cfb_add(t,r,i.FileIndex[n].content)}})}(n,dt.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 R_e(t,i){var e=ki(i||{});return function HN(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?dt.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(Df(r))}return i.password&&typeof encrypt_agile<"u"?VN(encrypt_agile(r,i.password),i):"file"===i.type?Af(i.file,r):"string"==i.type?Di(r):r}(F_e(t,e),e)}(t,e);default:throw new Error("Unrecognized bookType |"+e.bookType+"|")}}function zN(t,i,e,n,r,o,a){var s=ei(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:Fa(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 w_(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=ti(d);break;case"number":(c=ti(t["!ref"])).s.r=d;break;default:c=d}n>0&&(r=0);var u=ei(c.s.r),h=[],f=[],m=0,g=0,p=null!=t["!data"],b=c.s.r,C=0,y={};p&&!t["!data"][b]&&(t["!data"][b]=[]);var M=l.skipHidden&&t["!cols"]||[],q=l.skipHidden&&t["!rows"]||[];for(C=c.s.c;C<=c.e.c;++C)if(!(M[C]||{}).hidden)switch(h[C]=Ht(C),e=p?t["!data"][b][C]:t[h[C]+u],n){case 1:o[C]=C-c.s.c;break;case 2:o[C]=h[C];break;case 3:o[C]=l.header[C-c.s.c];break;default:if(null==e&&(e={w:"__EMPTY",t:"s"}),s=a=Fa(e,null,l),g=y[a]||0){do{s=a+"_"+g++}while(y[s]);y[a]=g,y[s]=1}else y[a]=1;o[C]=s}for(b=c.s.r+r;b<=c.e.r;++b)if(!(q[b]||{}).hidden){var N=zN(t,c,b,h,n,o,l);(!1===N.isempty||(1===n?!1!==l.blankrows:l.blankrows))&&(f[m++]=N.row)}return f.length=m,f}var $N=/"/g;function jN(t,i,e,n,r,o,a,s){for(var c=!0,l=[],d="",u=ei(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:Fa(g,null,s));for(var p=0,b=0;p!==d.length;++p)if((b=d.charCodeAt(p))===r||b===o||34===b||s.forceQuotes){d='"'+d.replace($N,'""')+'"';break}"ID"==d&&(d='"ID"')}else null==g.f||g.F?d="":(c=!1,(d="="+g.f).indexOf(",")>=0&&(d='"'+d.replace($N,'""')+'"'));l.push(d)}return!1===s.blankrows&&c?null:l.join(a)}function kC(t,i){var e=[],n=i??{};if(null==t||null==t["!ref"])return"";for(var r=ti(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=jN(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 WN(t,i){i||(i={}),i.FS="\t",i.RS="\n";var e=kC(t,i);if(typeof Ft>"u"||"string"==i.type)return e;var n=Ft.utils.encode(1200,e,"str");return String.fromCharCode(255)+String.fromCharCode(254)+n}function GN(t,i,e){var n=e||{},r=t?null!=t["!data"]:n.dense;null!=hn&&null==r&&(r=hn);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?Ci(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=ti(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,b){r&&!a["!data"][s+b+o]&&(a["!data"][s+b+o]=[]),r&&(m=a["!data"][s+b+o]),ji(p).forEach(function(C){-1==(f=h.indexOf(C))&&(h[f=h.length]=C);var y=p[C],M="z",q="",N=r?"":Ht(c+f)+ei(s+b+o),E=r?m[c+f]:a[N];!y||"object"!=typeof y||y instanceof Date?("number"==typeof y?M="n":"boolean"==typeof y?M="b":"string"==typeof y?M="s":y instanceof Date?(M="d",n.cellDates||(M="n",y=kn(y)),q=null!=E&&E.z&&nc(E.z)?E.z:n.dateNF||ht[14]):null===y&&n.nullError&&(M="e",y=0),E?(E.t=M,E.v=y,delete E.w,delete E.R,q&&(E.z=q)):r?m[c+f]=E={t:M,v:y}:a[N]=E={t:M,v:y},q&&(E.z=q)):r?m[c+f]=y:a[N]=y})}),d.e.c=Math.max(d.e.c,c+h.length-1);var g=ei(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(sN(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 XN_json_to_sheet=function H_e(t,i){return GN(null,t,i)};let ebe=(()=>{class t{constructor(){}exportAsExcelFile(e,n){const a=lm({Sheets:{data:XN_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"});ps.saveAs(r,n+"_export_"+(new Date).getTime()+".xlsx")}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=we({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const tbe=["*",[["mat-toolbar-row"]]],ibe=["*","mat-toolbar-row"],nbe=Gs(class{constructor(t){this._elementRef=t}});let rbe=(()=>{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})(),obe=(()=>{class t extends nbe{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)(x(Ie),x(wi),x(ot))},t.\u0275cmp=Le({type:t,selectors:[["mat-toolbar"]],contentQueries:function(e,n,r){if(1&e&&It(r,rbe,5),2&e){let o;Se(o=De())&&(n._toolbarRows=o)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,n){2&e&&Ye("mat-toolbar-multiple-rows",n._toolbarRows.length>0)("mat-toolbar-single-row",0===n._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[pe],ngContentSelectors:ibe,decls:2,vars:0,template:function(e,n){1&e&&(hi(tbe),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})(),abe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[yt,yt]}),t})();const QN=["*"],sbe=["content"];function cbe(t,i){if(1&t){const e=Ne();_(0,"div",2),z("click",function(){return _e(e),be(V()._onBackdropClicked())}),v()}2&t&&Ye("mat-drawer-shown",V()._isShowingBackdrop())}function lbe(t,i){1&t&&(_(0,"mat-drawer-content"),Je(1,2),v())}const dbe=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],ube=["mat-drawer","mat-drawer-content","*"],hbe={transformDrawer:zi("transform",[Zt("open, open-instant",Xe({transform:"none",visibility:"visible"})),Zt("void",Xe({"box-shadow":"none",visibility:"hidden"})),Wt("void => open-instant",jt("0ms")),Wt("void <=> open, open-instant => void",jt("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},fbe=new oe("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function mbe(){return!1}}),YN=new oe("MAT_DRAWER_CONTAINER");let DC=(()=>{class t extends Zh{constructor(e,n,r,o,a){super(r,o,a),this._changeDetectorRef=e,this._container=n}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(x(Ut),x(Qt(()=>ZN)),x(Ie),x(Wc),x(ze))},t.\u0275cmp=Le({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,n){2&e&&en("margin-left",n._container._contentMargins.left,"px")("margin-right",n._container._contentMargins.right,"px")},features:[We([{provide:Zh,useExisting:t}]),pe],ngContentSelectors:QN,decls:1,vars:0,template:function(e,n){1&e&&(hi(),Je(0))},encapsulation:2,changeDetection:0}),t})(),KN=(()=>{class t{get position(){return this._position}set position(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=He(e)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=He(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(He(e))}constructor(e,n,r,o,a,s,c,l){this._elementRef=e,this._focusTrapFactory=n,this._focusMonitor=r,this._platform=o,this._ngZone=a,this._interactivityChecker=s,this._doc=c,this._container=l,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new ke,this._animationEnd=new ke,this._animationState="void",this.openedChange=new Ce(!0),this._openedStream=this.openedChange.pipe(Kt(d=>d),Ze(()=>{})),this.openedStart=this._animationStarted.pipe(Kt(d=>d.fromState!==d.toState&&0===d.toState.indexOf("open")),Jp(void 0)),this._closedStream=this.openedChange.pipe(Kt(d=>!d),Ze(()=>{})),this.closedStart=this._animationStarted.pipe(Kt(d=>d.fromState!==d.toState&&"void"===d.toState),Jp(void 0)),this._destroyed=new ke,this.onPositionChanged=new Ce,this._modeChanged=new ke,this.openedChange.subscribe(d=>{d?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{Jo(this._elementRef.nativeElement,"keydown").pipe(Kt(d=>27===d.keyCode&&!this.disableClose&&!or(d)),pt(this._destroyed)).subscribe(d=>this._ngZone.run(()=>{this.close(),d.stopPropagation(),d.preventDefault()}))}),this._animationEnd.pipe(Ws((d,u)=>d.fromState===u.fromState&&d.toState===u.toState)).subscribe(d=>{const{fromState:u,toState:h}=d;(0===h.indexOf("open")&&"void"===u||"void"===h&&0===u.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(e,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)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(n=>{!n&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,n){e&&n&&(this._openedVia=n);const r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,n,r){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",n&&this._restoreFocus(r)),this._updateFocusTrapState(),new Promise(o=>{this.openedChange.pipe(si(1)).subscribe(a=>o(a?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(e){const n=this._elementRef.nativeElement,r=n.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,n)),r.appendChild(n)):this._anchor&&this._anchor.parentNode.insertBefore(n,this._anchor)}}return t.\u0275fac=function(e){return new(e||t)(x(Ie),x(Fg),x(ro),x(wi),x(ze),x(Wh),x(ot,8),x(YN,8))},t.\u0275cmp=Le({type:t,selectors:[["mat-drawer"]],viewQuery:function(e,n){if(1&e&&rt(sbe,5),2&e){let r;Se(r=De())&&(n._content=r.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,n){1&e&&pp("@transform.start",function(o){return n._animationStarted.next(o)})("@transform.done",function(o){return n._animationEnd.next(o)}),2&e&&(st("align",null),vp("@transform",n._animationState),Ye("mat-drawer-end","end"===n.position)("mat-drawer-over","over"===n.mode)("mat-drawer-push","push"===n.mode)("mat-drawer-side","side"===n.mode)("mat-drawer-opened",n.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:QN,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,n){1&e&&(hi(),_(0,"div",0,1),Je(2),v())},dependencies:[Zh],encapsulation:2,data:{animation:[hbe.transformDrawer]},changeDetection:0}),t})(),ZN=(()=>{class t{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=He(e)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(e){this._backdropOverride=null==e?null:He(e)}get scrollable(){return this._userContent||this._content}constructor(e,n,r,o,a,s=!1,c){this._dir=e,this._element=n,this._ngZone=r,this._changeDetectorRef=o,this._animationMode=c,this._drawers=new Rs,this.backdropClick=new Ce,this._destroyed=new ke,this._doCheckSubject=new ke,this._contentMargins={left:null,right:null},this._contentMarginChanges=new ke,e&&e.change.pipe(pt(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),a.change().pipe(pt(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=s}ngAfterContentInit(){this._allDrawers.changes.pipe(xn(this._allDrawers),pt(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(n=>!n._container||n._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(xn(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe($c(10),pt(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,n=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const r=this._left._getWidth();e+=r,n-=r}if(this._right&&this._right.opened)if("side"==this._right.mode)n+=this._right._getWidth();else if("push"==this._right.mode){const r=this._right._getWidth();n+=r,e-=r}e=e||null,n=n||null,(e!==this._contentMargins.left||n!==this._contentMargins.right)&&(this._contentMargins={left:e,right:n},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(Kt(n=>n.fromState!==n.toState),pt(this._drawers.changes)).subscribe(n=>{"open-instant"!==n.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(pt(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e&&e.onPositionChanged.pipe(pt(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(si(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(pt(Pi(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const n=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?n.add(r):n.remove(r)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e:this._start=e}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._canHaveBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(e){return"side"!==e.mode||!!this._backdropOverride}_isDrawerOpen(e){return null!=e&&e.opened}}return t.\u0275fac=function(e){return new(e||t)(x(un,8),x(Ie),x(ze),x(Ut),x(ea),x(fbe),x(Ii,8))},t.\u0275cmp=Le({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(e,n,r){if(1&e&&(It(r,DC,5),It(r,KN,5)),2&e){let o;Se(o=De())&&(n._content=o.first),Se(o=De())&&(n._allDrawers=o)}},viewQuery:function(e,n){if(1&e&&rt(DC,5),2&e){let r;Se(r=De())&&(n._userContent=r.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,n){2&e&&Ye("mat-drawer-container-explicit-backdrop",n._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[We([{provide:YN,useExisting:t}])],ngContentSelectors:ube,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,n){1&e&&(hi(dbe),P(0,cbe,1,2,"div",0),Je(1),Je(2,1),P(3,lbe,2,0,"mat-drawer-content",1)),2&e&&(S("ngIf",n.hasBackdrop),w(3),S("ngIf",!n._content))},dependencies:[Yi,DC],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),t})(),pbe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[Xn,yt,hs,hs,yt]}),t})();function gbe(t,i){if(1&t){const e=Ne();_(0,"button",7),z("click",function(){const o=_e(e).$implicit;return be(V().setFhirServer(o))}),k(1),v()}if(2&t){const e=i.$implicit;w(1),Ge(e.name)}}function _be(t,i){if(1&t){const e=Ne();_(0,"button",7),z("click",function(){const o=_e(e).$implicit;return be(V(2).setEdition(o))}),k(1),v()}if(2&t){const e=i.$implicit;w(1),Ge(e.resource.version)}}function bbe(t,i){if(1&t&&(di(0),_(1,"button",26),k(2),v(),_(3,"mat-menu",null,27)(5,"span",11),k(6,"Versions / Releases"),v(),P(7,_be,2,1,"button",9),v(),ui()),2&t){const e=i.$implicit,n=wt(4);w(1),S("matMenuTriggerFor",n),w(1),Ge(e.editionName),w(5),S("ngForOf",e.editions)}}function vbe(t,i){if(1&t){const e=Ne();_(0,"button",7),z("click",function(){const o=_e(e).$implicit;return be(V().setLanguage(o))}),k(1),v()}if(2&t){const e=i.$implicit;w(1),Ge(e)}}function xbe(t,i){if(1&t){const e=Ne();_(0,"button",7),z("click",function(){const o=_e(e).$implicit;return be(V().setFhirServer(o))}),k(1),v()}if(2&t){const e=i.$implicit;w(1),Ge(e.name)}}function ybe(t,i){if(1&t){const e=Ne();_(0,"button",7),z("click",function(){const o=_e(e).$implicit;return be(V(2).setEdition(o))}),k(1),v()}if(2&t){const e=i.$implicit;w(1),Ge(e.resource.version)}}function wbe(t,i){if(1&t&&(di(0),_(1,"button",26),k(2),v(),_(3,"mat-menu",null,27)(5,"span",11),k(6,"Versions / Releases"),v(),P(7,ybe,2,1,"button",9),v(),ui()),2&t){const e=i.$implicit,n=wt(4);w(1),S("matMenuTriggerFor",n),w(1),Ge(e.editionName),w(5),S("ngForOf",e.editions)}}function Cbe(t,i){if(1&t){const e=Ne();_(0,"button",7),z("click",function(){const o=_e(e).$implicit;return be(V().setLanguage(o))}),k(1),v()}if(2&t){const e=i.$implicit;w(1),Ge(e)}}let kbe=(()=>{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 Vs&>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)}static#e=this.\u0275fac=function(n){return new(n||t)(x(Mae),x(ebe),x(Yn),x(Vr))};static#t=this.\u0275cmp=Le({type:t,selectors:[["app-root"]],decls:80,vars:20,consts:[["autosize","",1,"example-container"],["mode","over",1,"example-sidenav"],["drawer",""],[1,"flex","flex-col","justify-center"],["mat-button","",3,"matMenuTriggerFor"],[1,"wide-menu"],["demosMenuN","matMenu"],["mat-menu-item","",3,"click"],["serverMenuN","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["editionsMenuN","matMenu"],[1,"ml-4"],[4,"ngFor","ngForOf"],["menuN","matMenu"],["mat-icon-button","","id","menu-button",3,"click"],["src","assets/img/small_logo.png",1,"h-16"],["id","title"],["id","short-title"],[1,"example-spacer"],["mat-flat-button","","color","accent",1,"bar-button",3,"matMenuTriggerFor"],["demosMenu","matMenu"],["mat-flat-button","","color","primary",1,"bar-button",3,"matMenuTriggerFor"],["serverMenu","matMenu"],["editionsMenu","matMenu"],["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(n,r){if(1&n){const o=Ne();_(0,"mat-drawer-container",0)(1,"mat-drawer",1,2)(3,"div",3)(4,"button",4),k(5,"Select Demonstrator"),v(),_(6,"mat-menu",5,6)(8,"button",7),z("click",function(){return r.navigate("/allergies")}),k(9,"Allergies CRG"),v(),_(10,"button",7),z("click",function(){return r.navigate("/sandbox")}),k(11,"Terminology Bindings Sandbox"),v(),_(12,"button",7),z("click",function(){return r.navigate("/questionnaires")}),k(13,"SNOMED & FHIR Questionnaires"),v(),_(14,"button",7),z("click",function(){return r.navigate("/context")}),k(15,"Context Representation"),v(),_(16,"button",7),z("click",function(){return r.navigate("/snoguess")}),k(17,"Playground"),v()(),_(18,"button",4),k(19),v(),_(20,"mat-menu",null,8),P(22,gbe,2,1,"button",9),v(),_(23,"button",4),k(24),v(),_(25,"mat-menu",5,10)(27,"span",11),k(28,"Editions"),v(),P(29,bbe,8,3,"ng-container",12),v(),_(30,"button",4),k(31),v(),_(32,"mat-menu",null,13),P(34,vbe,2,1,"button",9),v()()(),_(35,"mat-toolbar")(36,"button",14),z("click",function(){return _e(o),be(wt(2).toggle())}),_(37,"mat-icon"),k(38,"menu"),v()(),ge(39,"img",15),_(40,"span",16),k(41,"SNOMED CT Implementation Demos"),v(),_(42,"span",17),k(43,"SNOMED CT"),v(),ge(44,"span",18),_(45,"button",19),k(46,"Select Demonstrator"),v(),_(47,"mat-menu",5,20)(49,"button",7),z("click",function(){return r.navigate("/allergies")}),k(50,"Allergies CRG"),v(),_(51,"button",7),z("click",function(){return r.navigate("/sandbox")}),k(52,"Terminology Bindings Sandbox"),v(),_(53,"button",7),z("click",function(){return r.navigate("/questionnaires")}),k(54,"SNOMED & FHIR Questionnaires"),v(),_(55,"button",7),z("click",function(){return r.navigate("/context")}),k(56,"Context Representation"),v(),_(57,"button",7),z("click",function(){return r.navigate("/snoguess")}),k(58,"Playground"),v()(),_(59,"button",21),k(60),v(),_(61,"mat-menu",null,22),P(63,xbe,2,1,"button",9),v(),_(64,"button",21),k(65),v(),_(66,"mat-menu",5,23)(68,"span",11),k(69,"Editions"),v(),P(70,wbe,8,3,"ng-container",12),v(),_(71,"button",21),k(72),v(),_(73,"mat-menu",null,24),P(75,Cbe,2,1,"button",9),v(),_(76,"a",25)(77,"mat-icon"),k(78,"info"),v()()(),ge(79,"router-outlet"),v()}if(2&n){const o=wt(7),a=wt(21),s=wt(26),c=wt(33),l=wt(48),d=wt(62),u=wt(67),h=wt(74);w(4),S("matMenuTriggerFor",o),w(14),S("matMenuTriggerFor",a),w(1),it("FHIR Server: ",r.selectedServer.name,""),w(3),S("ngForOf",r.fhirServers),w(1),S("matMenuTriggerFor",s),w(1),it("Edition: ",r.selectedEdition,""),w(5),S("ngForOf",r.editionsDetails),w(1),S("matMenuTriggerFor",c),w(1),it("Language: ",r.selectedLanguage,""),w(3),S("ngForOf",r.languages),w(11),S("matMenuTriggerFor",l),w(14),S("matMenuTriggerFor",d),w(1),it("FHIR Server: ",r.selectedServer.name,""),w(3),S("ngForOf",r.fhirServers),w(1),S("matMenuTriggerFor",u),w(1),Ge(r.selectedEdition),w(5),S("ngForOf",r.editionsDetails),w(1),S("matMenuTriggerFor",h),w(1),Ge(r.selectedLanguage),w(3),S("ngForOf",r.languages)}},dependencies:[kr,uy,obe,yX,Dr,Zo,oo,Qc,ka,Yc,KN,ZN],styles:[".mat-toolbar[_ngcontent-%COMP%]{background-color:#000;color:#fff;font-size:1.8rem;font-weight:700}button[_ngcontent-%COMP%]{font-weight:700;font-size:medium}.bar-button[_ngcontent-%COMP%]{margin-left:15px}#title[_ngcontent-%COMP%]{margin-left:15px;font-size:1.4rem}.example-spacer[_ngcontent-%COMP%]{flex:1 1 auto}a[_ngcontent-%COMP%]{margin-left:15px} .mat-mdc-menu-panel{max-width:-moz-fit-content!important;max-width:fit-content!important;overflow-x:hidden!important}.mat-mdc-unelevated-button[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%], .mat-mdc-raised-button[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%], .mat-mdc-outlined-button[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%]{margin:0!important}#demo-selector[_ngcontent-%COMP%]{margin:5px 15px;padding:10px}#menu-button[_ngcontent-%COMP%], #short-title[_ngcontent-%COMP%]{display:none}@media (max-width: 768px){#title[_ngcontent-%COMP%]{display:none}#short-title[_ngcontent-%COMP%]{display:block;margin-left:15px;font-size:.9rem}}@media (max-width: 1200px){.bar-button[_ngcontent-%COMP%]{display:none}#menu-button[_ngcontent-%COMP%]{display:block}}"]})}return t})();function JN(t){return new ue(3e3,!1)}function ove(){return typeof window<"u"&&typeof window.document<"u"}function EC(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function fc(t){switch(t.length){case 0:return new Yh;case 1:return t[0];default:return new lF(t)}}function e3(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,b=m;if("offset"!==g)switch(p=i.normalizePropertyName(p,a),b){case n1:b=r.get(g);break;case ls:b=o.get(g);break;default:b=i.normalizeStyleValue(g,p,b,a)}f.set(p,b)}),h||s.push(f),l=f,c=u}),a.length)throw function qbe(t){return new ue(3502,!1)}();return s}function TC(t,i,e,n){switch(i){case"start":t.onStart(()=>n(e&&MC(e,"start",t)));break;case"done":t.onDone(()=>n(e&&MC(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&MC(e,"destroy",t)))}}function MC(t,i,e){const o=AC(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 AC(t,i,e,n,r="",o=0,a){return{element:t,triggerName:i,fromState:e,toState:n,phaseName:r,totalTime:o,disabled:!!a}}function lo(t,i,e){let n=t.get(i);return n||t.set(i,n=e),n}function t3(t){const i=t.indexOf(":");return[t.substring(1,i),t.slice(i+1)]}let IC=(t,i)=>!1,n3=(t,i,e)=>[],r3=null;function FC(t){const i=t.parentNode||t.host;return i===r3?null:i}(EC()||typeof Element<"u")&&(ove()?(r3=(()=>document.documentElement)(),IC=(t,i)=>{for(;i;){if(i===t)return!0;i=FC(i)}return!1}):IC=(t,i)=>t.contains(i),n3=(t,i,e)=>{if(e)return Array.from(t.querySelectorAll(i));const n=t.querySelector(i);return n?[n]:[]});let Tl=null,o3=!1;const a3=IC,s3=n3;let c3=(()=>{class t{validateStyleProperty(e){return function sve(t){Tl||(Tl=function cve(){return typeof document<"u"?document.body:null}()||{},o3=!!Tl.style&&"WebkitAppearance"in Tl.style);let i=!0;return Tl.style&&!function ave(t){return"ebkit"==t.substring(1,6)}(t)&&(i=t in Tl.style,!i&&o3&&(i="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Tl.style)),i}(e)}matchesElement(e,n){return!1}containsElement(e,n){return a3(e,n)}getParentElement(e){return FC(e)}query(e,n,r){return s3(e,n,r)}computeStyle(e,n,r){return r||""}animate(e,n,r,o,a,s=[],c){return new Yh(r,o)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})(),RC=(()=>{class t{}return t.NOOP=new c3,t})();const lve=1e3,OC="ng-enter",D_="ng-leave",E_="ng-trigger",T_=".ng-trigger",d3="ng-animating",PC=".ng-animating";function Ds(t){if("number"==typeof t)return t;const i=t.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:LC(parseFloat(i[1]),i[2])}function LC(t,i){return"s"===i?t*lve:t}function M_(t,i,e){return t.hasOwnProperty("duration")?t:function uve(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(JN()),{duration:0,delay:0,easing:""};r=LC(parseFloat(s[1]),s[2]);const c=s[3];null!=c&&(o=LC(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 Sbe(){return new ue(3100,!1)}()),s=!0),o<0&&(i.push(function Dbe(){return new ue(3101,!1)}()),s=!0),s&&i.splice(c,0,JN())}return{duration:r,delay:o,easing:a}}(t,i,e)}function dm(t,i={}){return Object.keys(t).forEach(e=>{i[e]=t[e]}),i}function u3(t){const i=new Map;return Object.keys(t).forEach(e=>{i.set(e,t[e])}),i}function mc(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 f3(t,i,e){return e?i+":"+e+";":""}function m3(t){let i="";for(let e=0;e{const o=BC(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=n}),EC()&&m3(t))}function Ml(t,i){t.style&&(i.forEach((e,n)=>{const r=BC(n);t.style[r]=""}),EC()&&m3(t))}function um(t){return Array.isArray(t)?1==t.length?t[0]:sF(t):t}const NC=new RegExp("{{\\s*(.+?)\\s*}}","g");function p3(t){let i=[];if("string"==typeof t){let e;for(;e=NC.exec(t);)i.push(e[1]);NC.lastIndex=0}return i}function hm(t,i,e){const n=t.toString(),r=n.replace(NC,(o,a)=>{let s=i[a];return null==s&&(e.push(function Tbe(t){return new ue(3003,!1)}()),s=""),s.toString()});return r==n?t:r}function A_(t){const i=[];let e=t.next();for(;!e.done;)i.push(e.value),e=t.next();return i}const mve=/-+([a-z0-9])/g;function BC(t){return t.replace(mve,(...i)=>i[1].toUpperCase())}function pve(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function uo(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 Mbe(t){return new ue(3004,!1)}()}}function g3(t,i){return window.getComputedStyle(t)[i]}const R_="*";function yve(t,i){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(n=>function wve(t,i,e){if(":"==t[0]){const c=function Cve(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 zbe(t){return new ue(3015,!1)}()),i;const r=n[1],o=n[2],a=n[3];i.push(_3(r,a));"<"==o[0]&&!(r==R_&&a==R_)&&i.push(_3(a,r))}(n,e,i)):e.push(t),e}const O_=new Set(["true","1"]),P_=new Set(["false","0"]);function _3(t,i){const e=O_.has(t)||P_.has(t),n=O_.has(i)||P_.has(i);return(r,o)=>{let a=t==R_||t==r,s=i==R_||i==o;return!a&&e&&"boolean"==typeof r&&(a=r?O_.has(t):P_.has(t)),!s&&n&&"boolean"==typeof o&&(s=o?O_.has(i):P_.has(i)),a&&s}}const kve=new RegExp("s*:selfs*,?","g");function VC(t,i,e,n){return new Sve(t).build(i,e,n)}class Sve{constructor(i){this._driver=i}build(i,e,n){const r=new Tve(e);return this._resetContextStyleTimingState(r),uo(this,um(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 Ibe(){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 Fbe(){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=>{p3(c).forEach(l=>{a.hasOwnProperty(l)||o.add(l)})})}),o.size&&(A_(o.values()),e.errors.push(function Rbe(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=uo(this,um(i.animation),e);return{type:1,matchers:yve(i.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Al(i.options)}}visitSequence(i,e){return{type:2,steps:i.steps.map(n=>uo(this,n,e)),options:Al(i.options)}}visitGroup(i,e){const n=e.currentTime;let r=0;const o=i.steps.map(a=>{e.currentTime=n;const s=uo(this,a,e);return r=Math.max(r,e.currentTime),s});return e.currentTime=r,{type:3,steps:o,options:Al(i.options)}}visitAnimate(i,e){const n=function Ave(t,i){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return HC(M_(t,i).duration,0,"");const e=t;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=HC(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=M_(e,i);return HC(r.duration,r.delay,r.easing)}(i.timings,e.errors);e.currentAnimateTimings=n;let r,o=i.styles?i.styles:Xe({});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=Xe(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===ls?n.push(s):e.errors.push(new ue(3002,!1)):n.push(u3(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 Pbe(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 fve(t,i,e){const n=i.params||{},r=p3(t);r.length&&r.forEach(o=>{n.hasOwnProperty(o)||e.push(function Ebe(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 Lbe(){return new ue(3011,!1)}()),n;let o=0;const a=[];let s=!1,c=!1,l=0;const d=i.steps.map(b=>{const C=this._makeStyleAst(b,e);let y=null!=C.offset?C.offset:function Mve(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}(C.styles),M=0;return null!=y&&(o++,M=C.offset=y),c=c||M<0||M>1,s=s||M0&&o{const y=h>0?C==f?1:h*C:a[C],M=y*p;e.currentTime=m+g.delay+M,g.duration=M,this._validateStyleAst(b,e),b.offset=y,n.styles.push(b)}),n}visitReference(i,e){return{type:8,animation:uo(this,um(i.animation),e),options:Al(i.options)}}visitAnimateChild(i,e){return e.depCount++,{type:9,options:Al(i.options)}}visitAnimateRef(i,e){return{type:10,animation:this.visitReference(i.animation,e),options:Al(i.options)}}visitQuery(i,e){const n=e.currentQuerySelector,r=i.options||{};e.queryCount++,e.currentQuery=i;const[o,a]=function Dve(t){const i=!!t.split(/\s*,\s*/).find(e=>":self"==e);return i&&(t=t.replace(kve,"")),t=t.replace(/@\*/g,T_).replace(/@\w+/g,e=>T_+"-"+e.slice(1)).replace(/:animating/g,PC),[t,i]}(i.selector);e.currentQuerySelector=n.length?n+" "+o:o,lo(e.collectedStyles,e.currentQuerySelector,new Map);const s=uo(this,um(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:Al(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(function Hbe(){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:uo(this,um(i.animation),e),timings:n,options:null}}}class Tve{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 Al(t){return t?(t=dm(t)).params&&(t.params=function Eve(t){return t?dm(t):null}(t.params)):t={},t}function HC(t,i,e){return{duration:t,delay:i,easing:e}}function UC(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 L_{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 Rve=new RegExp(":enter","g"),Pve=new RegExp(":leave","g");function zC(t,i,e,n,r,o=new Map,a=new Map,s,c,l=[]){return(new Lve).buildKeyframes(t,i,e,n,r,o,a,s,c,l)}class Lve{buildKeyframes(i,e,n,r,o,a,s,c,l,d=[]){l=l||new L_;const u=new $C(i,e,l,r,o,d,[]);u.options=c;const h=c.delay?Ds(c.delay):0;u.currentTimeline.delayNextStep(h),u.currentTimeline.setStyles([a],null,u.errors,c),uo(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()):[UC(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:Ds(hm(o,r?.params??{},e.errors));n.delayNextStep(a)}}}_visitSubInstructions(i,e,n){let o=e.currentTimeline.currentTime;const a=null!=n.duration?Ds(n.duration):null,s=null!=n.delay?Ds(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),uo(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=N_);const a=Ds(o.delay);r.delayNextStep(a)}i.steps.length&&(i.steps.forEach(a=>uo(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?Ds(i.options.delay):0;i.steps.forEach(a=>{const s=e.createSubContext(i.options);o&&s.delayNextStep(o),uo(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?hm(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?Ds(r.delay):0;o&&(6===e.previousNode.type||0==n&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=N_);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),uo(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;uo(this,i.animation,e),e.previousNode=i,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)}}const N_={};class $C{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=N_,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new B_(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=Ds(n.duration)),null!=n.delay&&(r.delay=Ds(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]=hm(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 $C(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=N_,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 Nve(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(Rve,"."+this._enterClassName)).replace(Pve,"."+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 Ube(t){return new ue(3014,!1)}()),s}}class B_{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 B_(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||ls),this._currentKeyframe.set(e,ls);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(i,e,n,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},a=function Bve(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,ls)}else mc(r,e)}),e}(i,this._globalTimelineStyles);for(let[s,c]of a){const l=hm(c,o,n);this._pendingStyles.set(s,l),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??ls),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=mc(s,new Map,this._backFill);l.forEach((d,u)=>{d===n1?i.add(u):d===ls&&e.add(u)}),n||l.set("offset",c/this.duration),r.push(l)});const o=i.size?A_(i.values()):[],a=e.size?A_(e.values()):[];if(n){const s=r[0],c=new Map(s);s.set("offset",0),c.set("offset",1),r=[s,c]}return UC(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}class Nve extends B_{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=mc(i[0]);c.set("offset",0),o.push(c);const l=mc(i[0]);l.set("offset",x3(s)),o.push(l);const d=i.length-1;for(let u=1;u<=d;u++){let h=mc(i[u]);const f=h.get("offset");h.set("offset",x3((e+f*n)/a)),o.push(h)}n=a,e=0,r="",i=o}return UC(this.element,i,this.preStyleProps,this.postStyleProps,n,e,r,!0)}}function x3(t,i=3){const e=Math.pow(10,i-1);return Math.round(t*e)/e}class jC{}const Vve=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 Hve extends jC{normalizePropertyName(i,e){return BC(i)}normalizeStyleValue(i,e,n,r){let o="";const a=n.toString().trim();if(Vve.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 Abe(t,i){return new ue(3005,!1)}())}return a+o}}function y3(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 WC={};class w3{constructor(i,e,n){this._triggerName=i,this.ast=e,this._stateStyles=n}match(i,e,n,r){return function Uve(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||WC,m=this.buildStyles(n,s&&s.params||WC,u),g=c&&c.params||WC,p=this.buildStyles(r,g,u),b=new Set,C=new Map,y=new Map,M="void"===r,q={params:zve(g,h),delay:this.ast.options?.delay},N=d?[]:zC(i,e,this.ast.animation,o,a,m,p,q,l,u);let E=0;if(N.forEach(B=>{E=Math.max(B.duration+B.delay,E)}),u.length)return y3(e,this._triggerName,n,r,M,m,p,[],[],C,y,E,u);N.forEach(B=>{const G=B.element,Z=lo(C,G,new Set);B.preStyleProps.forEach(me=>Z.add(me));const j=lo(y,G,new Set);B.postStyleProps.forEach(me=>j.add(me)),G!==e&&b.add(G)});const H=A_(b.values());return y3(e,this._triggerName,n,r,M,m,p,N,H,C,y,E)}}function zve(t,i){const e=dm(i);for(const n in t)t.hasOwnProperty(n)&&null!=t[n]&&(e[n]=t[n]);return e}class $ve{constructor(i,e,n){this.styles=i,this.defaultParams=e,this.normalizer=n}buildStyles(i,e){const n=new Map,r=dm(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=hm(a,r,e));const c=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,c,a,e),n.set(s,a)})}),n}}class Wve{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 $ve(r.style,r.options&&r.options.params||{},n))}),C3(this.states,"true","1"),C3(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new w3(i,r,this.states))}),this.fallbackTransition=function Gve(t,i,e){return new w3(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 C3(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 qve=new L_;class Xve{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=VC(this._driver,e,n,r);if(n.length)throw function Xbe(t){return new ue(3503,!1)}();this._animations.set(i,o)}_buildPlayer(i,e,n){const r=i.element,o=e3(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=zC(this._driver,e,o,OC,D_,new Map,new Map,n,qve,r),a.forEach(d=>{const u=lo(s,d.element,new Map);d.postStyleProps.forEach(h=>u.set(h,null))})):(r.push(function Qbe(){return new ue(3300,!1)}()),a=[]),r.length)throw function Ybe(t){return new ue(3504,!1)}();s.forEach((d,u)=>{d.forEach((h,f)=>{d.set(f,this._driver.computeStyle(u,f,ls))})});const l=fc(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 Kbe(t){return new ue(3301,!1)}();return e}listen(i,e,n,r){const o=AC(e,"","","");return TC(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 k3="ng-animate-queued",GC="ng-animate-disabled",Jve=[],S3={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},exe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Po="__ng_removed";class qC{get params(){return this.options.params}constructor(i,e=""){this.namespaceId=e;const n=i&&i.hasOwnProperty("value");if(this.value=function rxe(t){return t??null}(n?i.value:i),n){const o=dm(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 fm="void",XC=new qC(fm);class txe{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,Lo(e,this._hostClassName)}listen(i,e,n,r){if(!this._triggers.has(e))throw function Zbe(t,i){return new ue(3302,!1)}();if(null==n||0==n.length)throw function Jbe(t){return new ue(3303,!1)}();if(!function oxe(t){return"start"==t||"done"==t}(n))throw function eve(t,i){return new ue(3400,!1)}();const o=lo(this._elementListeners,i,[]),a={name:e,phase:n,callback:r};o.push(a);const s=lo(this._engine.statesByElement,i,new Map);return s.has(e)||(Lo(i,E_),Lo(i,E_+"-"+e),s.set(e,XC)),()=>{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 tve(t){return new ue(3401,!1)}();return e}trigger(i,e,n,r=!0){const o=this._getTrigger(e),a=new QC(this.id,e,i);let s=this._engine.statesByElement.get(i);s||(Lo(i,E_),Lo(i,E_+"-"+e),this._engine.statesByElement.set(i,s=new Map));let c=s.get(e);const l=new qC(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),s.set(e,l),c||(c=XC),l.value!==fm&&c.value===l.value){if(!function cxe(t,i){const e=Object.keys(t),n=Object.keys(i);if(e.length!=n.length)return!1;for(let r=0;r{Ml(i,p),Na(i,b)})}return}const h=lo(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||(Lo(i,k3),a.onStart(()=>{Du(i,k3)})),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 b=p.indexOf(a);b>=0&&p.splice(b,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,T_,!0);n.forEach(r=>{if(r[Po])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,fm,r);d&&s.push(d)}}),s.length)return this._engine.markElementAsRemoved(this.id,i,!0,e,a),n&&fc(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)||XC,d=new qC(fm),u=new QC(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[Po];(!o||o===S3)&&(n.afterFlush(()=>this.clearElementCache(i)),n.destroyInnerAnimations(i),n._onRemovalComplete(i,e))}}insertNode(i,e){Lo(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=AC(o,n.triggerName,n.fromState.value,n.toState.value);c._data=i,TC(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 ixe{_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 txe(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(V_(e)){const o=this._fetchNamespace(i);if(o)return o.trigger(e,n,r),!0}return!1}insertNode(i,e,n,r){if(!V_(e))return;const o=e[Po];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),Lo(i,GC)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),Du(i,GC))}removeNode(i,e,n,r){if(V_(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[Po]={namespaceId:i,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:o}}listen(i,e,n,r,o){return V_(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,T_,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(i,PC,!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 fc(this.players).onDone(()=>i());i()})}processLeaveNode(i){const e=i[Po];if(e&&e.setForRemoval){if(i[Po]=S3,e.namespaceId){this.destroyInnerAnimations(i);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(i)}this._onRemovalComplete(i,e.setForRemoval)}i.classList?.contains(GC)&&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?fc(e).onDone(()=>{n.forEach(r=>r())}):n.forEach(r=>r())}}reportError(i){throw function ive(t){return new ue(3402,!1)}()}_flushAnimations(i,e){const n=new L_,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=OC+g++;m.set(Y,he),ne.forEach(se=>Lo(se,he))});const p=[],b=new Set,C=new Set;for(let ne=0;neb.add(se)):C.add(Y))}const y=new Map,M=T3(h,Array.from(b));M.forEach((ne,Y)=>{const he=D_+g++;y.set(Y,he),ne.forEach(se=>Lo(se,he))}),i.push(()=>{f.forEach((ne,Y)=>{const he=m.get(Y);ne.forEach(se=>Du(se,he))}),M.forEach((ne,Y)=>{const he=y.get(Y);ne.forEach(se=>Du(se,he))}),p.forEach(ne=>{this.processLeaveNode(ne)})});const q=[],N=[];for(let ne=this._namespaceList.length-1;ne>=0;ne--)this._namespaceList[ne].drainQueuedTransitions(e).forEach(he=>{const se=he.player,Be=he.element;if(q.push(se),this.collectedEnterElements.length){const U=Be[Po];if(U&&U.setForMove){if(U.previousTriggersValues&&U.previousTriggersValues.has(he.triggerName)){const ae=U.previousTriggersValues.get(he.triggerName),xe=this.statesByElement.get(he.element);if(xe&&xe.has(he.triggerName)){const Re=xe.get(he.triggerName);Re.value=ae,xe.set(he.triggerName,Re)}}return void se.destroy()}}const ce=!u||!this.driver.containsElement(u,Be),Ke=y.get(Be),gt=m.get(Be),F=this._buildInstruction(he,n,gt,Ke,ce);if(F.errors&&F.errors.length)return void N.push(F);if(ce)return se.onStart(()=>Ml(Be,F.fromStyles)),se.onDestroy(()=>Na(Be,F.toStyles)),void r.push(se);if(he.isFallbackTransition)return se.onStart(()=>Ml(Be,F.fromStyles)),se.onDestroy(()=>Na(Be,F.toStyles)),void r.push(se);const K=[];F.timelines.forEach(U=>{U.stretchStartingKeyframe=!0,this.disabledNodes.has(U.element)||K.push(U)}),F.timelines=K,n.append(Be,F.timelines),a.push({instruction:F,player:se,element:Be}),F.queriedElements.forEach(U=>lo(s,U,[]).push(se)),F.preStyleProps.forEach((U,ae)=>{if(U.size){let xe=c.get(ae);xe||c.set(ae,xe=new Set),U.forEach((Re,Pe)=>xe.add(Pe))}}),F.postStyleProps.forEach((U,ae)=>{let xe=l.get(ae);xe||l.set(ae,xe=new Set),U.forEach((Re,Pe)=>xe.add(Pe))})});if(N.length){const ne=[];N.forEach(Y=>{ne.push(function nve(t,i){return new ue(3505,!1)}())}),q.forEach(Y=>Y.destroy()),this.reportError(ne)}const E=new Map,H=new Map;a.forEach(ne=>{const Y=ne.element;n.has(Y)&&(H.set(Y,Y),this._beforeAnimationBuild(ne.player.namespaceId,ne.instruction,E))}),r.forEach(ne=>{const Y=ne.element;this._getPreviousPlayers(Y,!1,ne.namespaceId,ne.triggerName,null).forEach(se=>{lo(E,Y,[]).push(se),se.destroy()})});const B=p.filter(ne=>A3(ne,c,l)),G=new Map;E3(G,this.driver,C,l,ls).forEach(ne=>{A3(ne,c,l)&&B.push(ne)});const j=new Map;f.forEach((ne,Y)=>{E3(j,this.driver,new Set(ne),c,n1)}),B.forEach(ne=>{const Y=G.get(ne),he=j.get(ne);G.set(ne,new Map([...Array.from(Y?.entries()??[]),...Array.from(he?.entries()??[])]))});const me=[],ye=[],de={};a.forEach(ne=>{const{element:Y,player:he,instruction:se}=ne;if(n.has(Y)){if(d.has(Y))return he.onDestroy(()=>Na(Y,se.toStyles)),he.disabled=!0,he.overrideTotalTime(se.totalTime),void r.push(he);let Be=de;if(H.size>1){let Ke=Y;const gt=[];for(;Ke=Ke.parentNode;){const F=H.get(Ke);if(F){Be=F;break}gt.push(Ke)}gt.forEach(F=>H.set(F,Be))}const ce=this._buildAnimation(he.namespaceId,se,E,o,j,G);if(he.setRealPlayer(ce),Be===de)me.push(he);else{const Ke=this.playersByElement.get(Be);Ke&&Ke.length&&(he.parentPlayer=fc(Ke)),r.push(he)}}else Ml(Y,se.fromStyles),he.onDestroy(()=>Na(Y,se.toStyles)),ye.push(he),d.has(Y)&&r.push(he)}),ye.forEach(ne=>{const Y=o.get(ne.element);if(Y&&Y.length){const he=fc(Y);ne.setRealPlayer(he)}}),r.forEach(ne=>{ne.parentPlayer?ne.syncPlayerEvents(ne.parentPlayer):ne.destroy()});for(let ne=0;ne!ce.destroyed);Be.length?axe(this,Y,Be):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[Po];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==fm;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=lo(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)})}Ml(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[Po];if(p&&p.removedBeforeQueried)return new Yh(m.duration,m.delay);const b=g!==c,C=function sxe(t){const i=[];return M3(t,i),i}((n.get(g)||Jve).map(E=>E.getRealPlayer())).filter(E=>!!E.element&&E.element===g),y=o.get(g),M=a.get(g),q=e3(0,this._normalizer,0,m.keyframes,y,M),N=this._buildPlayer(m,q,C);if(m.subTimeline&&r&&u.add(g),b){const E=new QC(i,s,g);E.setRealPlayer(N),l.push(E)}return N});l.forEach(m=>{lo(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>function nxe(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=>Lo(m,d3));const f=fc(h);return f.onDestroy(()=>{d.forEach(m=>Du(m,d3)),Na(c,e.toStyles)}),u.forEach(m=>{lo(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 Yh(i.duration,i.delay)}}class QC{constructor(i,e,n){this.namespaceId=i,this.triggerName=e,this.element=n,this._player=new Yh,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=>TC(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){lo(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 V_(t){return t&&1===t.nodeType}function D3(t,i){const e=t.style.display;return t.style.display=i??"none",e}function E3(t,i,e,n,r){const o=[];e.forEach(c=>o.push(D3(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[Po]=exe,a.push(l))}),t.set(l,d)});let s=0;return e.forEach(c=>D3(c,o[s++])),a}function T3(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 Lo(t,i){t.classList?.add(i)}function Du(t,i){t.classList?.remove(i)}function axe(t,i,e){fc(e).onDone(()=>t.processLeaveNode(i))}function M3(t,i){for(let e=0;er.add(o)):i.set(t,n),e.delete(t),!0}class H_{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new ixe(i,e,n),this._timelineEngine=new Xve(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=VC(this._driver,o,c,l);if(c.length)throw function Gbe(t,i){return new ue(3404,!1)}();s=function jve(t,i,e){return new Wve(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]=t3(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]=t3(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 dxe=(()=>{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&&Na(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Na(this._element,this._initialStyles),this._endStyles&&(Na(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Ml(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ml(this._element,this._endStyles),this._endStyles=null),Na(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function YC(t){let i=null;return t.forEach((e,n)=>{(function uxe(t){return"display"===t||"position"===t})(n)&&(i=i||new Map,i.set(n,e))}),i}class I3{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:g3(this.element,r))}),this.currentSnapshot=i}triggerCallback(i){const e="start"===i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class hxe{validateStyleProperty(i){return!0}validateAnimatableStyleProperty(i){return!0}matchesElement(i,e){return!1}containsElement(i,e){return a3(i,e)}getParentElement(i){return FC(i)}query(i,e,n){return s3(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 I3);(function gve(t,i){return 0===t||0===i})(n,r)&&d.forEach(f=>{f.currentSnapshot.forEach((m,g)=>l.set(g,m))});let u=function hve(t){return t.length?t[0]instanceof Map?t:t.map(i=>u3(i)):[]}(e).map(f=>mc(f));u=function _ve(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,g3(t,s)))}}return i}(i,u,l);const h=function lxe(t,i){let e=null,n=null;return Array.isArray(i)&&i.length?(e=YC(i[0]),i.length>1&&(n=YC(i[i.length-1]))):i instanceof Map&&(e=YC(i)),e||n?new dxe(t,e,n):null}(i,u);return new I3(i,u,c,h)}}let fxe=(()=>{class t extends aF{constructor(e,n){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(n.body,{id:"0",encapsulation:Vo.None,styles:[],data:{animation:[]}})}build(e){const n=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?sF(e):e;return F3(this._renderer,null,n,"register",[r]),new mxe(n,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(X(Ku),X(ot))},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})();class mxe extends CX{constructor(i,e){super(),this._id=i,this._renderer=e}create(i,e){return new pxe(this._id,i,e||{},this._renderer)}}class pxe{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 F3(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 F3(t,i,e,n,r){return t.setProperty(i,`@@${e}:${n}`,r)}const R3="@.disabled";let gxe=(()=>{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 O3("",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 _xe(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)(X(Ku),X(H_),X(ze))},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})();class O3{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==R3?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 _xe extends O3{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==R3?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 bxe(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 vxe(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 P3=[{provide:aF,useClass:fxe},{provide:jC,useFactory:function yxe(){return new Hve}},{provide:H_,useClass:(()=>{class t extends H_{constructor(e,n,r,o){super(e.body,n,r)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(X(ot),X(RC),X(jC),X(Ed))},t.\u0275prov=we({token:t,factory:t.\u0275fac}),t})()},{provide:Ku,useFactory:function wxe(t,i,e){return new gxe(t,i,e)},deps:[Kp,H_,ze]}],KC=[{provide:RC,useFactory:()=>new hxe},{provide:Ii,useValue:"BrowserAnimations"},...P3],L3=[{provide:RC,useClass:c3},{provide:Ii,useValue:"NoopAnimations"},...P3];let Cxe=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?L3:KC}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({providers:KC,imports:[zM]}),t})(),kxe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[yt,yt]}),t})(),eye=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=lt({type:t}),t.\u0275inj=ct({imports:[Mg,Xn,yt,Xs,KI,kxe]}),t})(),tye=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=lt({type:t,bootstrap:[kbe]});static#i=this.\u0275inj=ct({imports:[JG,zM,hee,Eae,Cxe,Fte,abe,oF,BQ,JQ,kF,Dre,k0,GZ,aY,JZ,JK,lee,DY,JY,Aee,$1,Wee,tte,gie,Tie,Kte,$ie,eye,zne,$1,pbe]})}return t})();G$().bootstrapModule(tye).catch(t=>console.error(t))},327:function(Rl,_m){var gc,_c;void 0!==(_c="function"==typeof(gc=function(){"use strict";function sa(ri,pi,_r){var Fi=new XMLHttpRequest;Fi.open("GET",ri),Fi.responseType="blob",Fi.onload=function(){fo(Fi.response,pi,_r)},Fi.onerror=function(){console.error("could not download file")},Fi.send()}function kt(ri){var pi=new XMLHttpRequest;pi.open("HEAD",ri,!1);try{pi.send()}catch{}return 200<=pi.status&&299>=pi.status}function bc(ri){try{ri.dispatchEvent(new MouseEvent("click"))}catch{var pi=document.createEvent("MouseEvents");pi.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),ri.dispatchEvent(pi)}}var Gr="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,Eu=Gr.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),fo=Gr.saveAs||("object"!=typeof window||window!==Gr?function(){}:"download"in HTMLAnchorElement.prototype&&!Eu?function(ri,pi,_r){var Fi=Gr.URL||Gr.webkitURL,br=document.createElement("a");br.download=pi=pi||ri.name||"download",br.rel="noopener","string"==typeof ri?(br.href=ri,br.origin===location.origin?bc(br):kt(br.href)?sa(ri,pi,_r):bc(br,br.target="_blank")):(br.href=Fi.createObjectURL(ri),setTimeout(function(){Fi.revokeObjectURL(br.href)},4e4),setTimeout(function(){bc(br)},0))}:"msSaveOrOpenBlob"in navigator?function(ri,pi,_r){if(pi=pi||ri.name||"download","string"!=typeof ri)navigator.msSaveOrOpenBlob(function Ol(ri,pi){return typeof pi>"u"?pi={autoBom:!1}:"object"!=typeof pi&&(console.warn("Deprecated: Expected third argument to be a object"),pi={autoBom:!pi}),pi.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(ri.type)?new Blob(["\ufeff",ri],{type:ri.type}):ri}(ri,_r),pi);else if(kt(ri))sa(ri,pi,_r);else{var Fi=document.createElement("a");Fi.href=ri,Fi.target="_blank",setTimeout(function(){bc(Fi)})}}:function(ri,pi,_r,Fi){if((Fi=Fi||open("","_blank"))&&(Fi.document.title=Fi.document.body.innerText="downloading..."),"string"==typeof ri)return sa(ri,pi,_r);var br="application/octet-stream"===ri.type,$_=/constructor/i.test(Gr.HTMLElement)||Gr.safari,Pl=/CriOS\/[\d]+/.test(navigator.userAgent);if((Pl||br&&$_||Eu)&&typeof FileReader<"u"){var Bo=new FileReader;Bo.onloadend=function(){var Va=Bo.result;Va=Pl?Va:Va.replace(/^data:[^;]*;/,"data:attachment/file;"),Fi?Fi.location.href=Va:location=Va,Fi=null},Bo.readAsDataURL(ri)}else{var vc=Gr.URL||Gr.webkitURL,Tu=vc.createObjectURL(ri);Fi?Fi.location=Tu:location.href=Tu,Fi=null,setTimeout(function(){vc.revokeObjectURL(Tu)},4e4)}});Gr.saveAs=fo.saveAs=fo,Rl.exports=fo})?gc.apply(_m,[]):gc)&&(Rl.exports=_c)}},Rl=>{Rl(Rl.s=385)}]); \ No newline at end of file diff --git a/src/app/app.component.css b/src/app/app.component.css index 57f2044..3b96d06 100644 --- a/src/app/app.component.css +++ b/src/app/app.component.css @@ -45,9 +45,19 @@ a { display: none; } +#short-title { + display: none; +} + @media (max-width: 768px) { #title { + display: none; + } + + #short-title { + display: block; + margin-left: 15px; font-size: 0.9rem; } } diff --git a/src/app/app.component.html b/src/app/app.component.html index e69afc2..f6b15ce 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,5 +1,5 @@ - +
@@ -42,6 +42,7 @@ SNOMED CT Implementation Demos + SNOMED CT