From 32c8b1ffdada80c90cc2d6f3eae29a37af3ed0d7 Mon Sep 17 00:00:00 2001 From: wolf4ood Date: Tue, 17 Oct 2023 11:01:19 +0000 Subject: [PATCH] deploy: 98b6c8103d0f629352fd4d3685b4f5cfa78b14ac --- policy-playground/index.html | 2 +- policy-playground/main.cae42d389dc26a99.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 policy-playground/main.cae42d389dc26a99.js diff --git a/policy-playground/index.html b/policy-playground/index.html index 1498f396..b3b51a8d 100644 --- a/policy-playground/index.html +++ b/policy-playground/index.html @@ -32,5 +32,5 @@ - + diff --git a/policy-playground/main.cae42d389dc26a99.js b/policy-playground/main.cae42d389dc26a99.js new file mode 100644 index 00000000..2fd36879 --- /dev/null +++ b/policy-playground/main.cae42d389dc26a99.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkedc_policy_playground=self.webpackChunkedc_policy_playground||[]).push([[179],{509:()=>{function Re(i){return"function"==typeof i}function Kd(i){const e=i(n=>{Error.call(n),n.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const Zd=Kd(i=>function(e){i(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((n,o)=>`${o+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function Bs(i,t){if(i){const e=i.indexOf(t);0<=e&&i.splice(e,1)}}class je{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const r of e)r.remove(this);else e.remove(this);const{initialTeardown:n}=this;if(Re(n))try{n()}catch(r){t=r instanceof Zd?r.errors:[r]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const r of o)try{aw(r)}catch(s){t=t??[],s instanceof Zd?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Zd(t)}}add(t){var e;if(t&&t!==this)if(this.closed)aw(t);else{if(t instanceof je){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(t)}}_hasParent(t){const{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){const{_parentage:e}=this;e===t?this._parentage=null:Array.isArray(e)&&Bs(e,t)}remove(t){const{_finalizers:e}=this;e&&Bs(e,t),t instanceof je&&t._removeParent(this)}}je.EMPTY=(()=>{const i=new je;return i.closed=!0,i})();const rw=je.EMPTY;function sw(i){return i instanceof je||i&&"closed"in i&&Re(i.remove)&&Re(i.add)&&Re(i.unsubscribe)}function aw(i){Re(i)?i():i.unsubscribe()}const Vr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Qd={setTimeout(i,t,...e){const{delegate:n}=Qd;return n?.setTimeout?n.setTimeout(i,t,...e):setTimeout(i,t,...e)},clearTimeout(i){const{delegate:t}=Qd;return(t?.clearTimeout||clearTimeout)(i)},delegate:void 0};function lw(i){Qd.setTimeout(()=>{const{onUnhandledError:t}=Vr;if(!t)throw i;t(i)})}function Jd(){}const tB=Pp("C",void 0,void 0);function Pp(i,t,e){return{kind:i,value:t,error:e}}let Hr=null;function eu(i){if(Vr.useDeprecatedSynchronousErrorHandling){const t=!Hr;if(t&&(Hr={errorThrown:!1,error:null}),i(),t){const{errorThrown:e,error:n}=Hr;if(Hr=null,e)throw n}}else i()}class Np extends je{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,sw(t)&&t.add(this)):this.destination=lB}static create(t,e,n){return new wl(t,e,n)}next(t){this.isStopped?Bp(function nB(i){return Pp("N",i,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Bp(function iB(i){return Pp("E",void 0,i)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Bp(tB,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const rB=Function.prototype.bind;function Lp(i,t){return rB.call(i,t)}class sB{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next)try{e.next(t)}catch(n){tu(n)}}error(t){const{partialObserver:e}=this;if(e.error)try{e.error(t)}catch(n){tu(n)}else tu(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(e){tu(e)}}}class wl extends Np{constructor(t,e,n){let o;if(super(),Re(t)||!t)o={next:t??void 0,error:e??void 0,complete:n??void 0};else{let r;this&&Vr.useDeprecatedNextContext?(r=Object.create(t),r.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Lp(t.next,r),error:t.error&&Lp(t.error,r),complete:t.complete&&Lp(t.complete,r)}):o=t}this.destination=new sB(o)}}function tu(i){Vr.useDeprecatedSynchronousErrorHandling?function oB(i){Vr.useDeprecatedSynchronousErrorHandling&&Hr&&(Hr.errorThrown=!0,Hr.error=i)}(i):lw(i)}function Bp(i,t){const{onStoppedNotification:e}=Vr;e&&Qd.setTimeout(()=>e(i,t))}const lB={closed:!0,next:Jd,error:function aB(i){throw i},complete:Jd},Vp="function"==typeof Symbol&&Symbol.observable||"@@observable";function Vs(i){return i}let it=(()=>{class i{constructor(e){e&&(this._subscribe=e)}lift(e){const n=new i;return n.source=this,n.operator=e,n}subscribe(e,n,o){const r=function dB(i){return i&&i instanceof Np||function cB(i){return i&&Re(i.next)&&Re(i.error)&&Re(i.complete)}(i)&&sw(i)}(e)?e:new wl(e,n,o);return eu(()=>{const{operator:s,source:a}=this;r.add(s?s.call(r,a):a?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(e){try{return this._subscribe(e)}catch(n){e.error(n)}}forEach(e,n){return new(n=dw(n))((o,r)=>{const s=new wl({next:a=>{try{e(a)}catch(l){r(l),s.unsubscribe()}},error:r,complete:o});this.subscribe(s)})}_subscribe(e){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(e)}[Vp](){return this}pipe(...e){return function cw(i){return 0===i.length?Vs:1===i.length?i[0]:function(e){return i.reduce((n,o)=>o(n),e)}}(e)(this)}toPromise(e){return new(e=dw(e))((n,o)=>{let r;this.subscribe(s=>r=s,s=>o(s),()=>n(r))})}}return i.create=t=>new i(t),i})();function dw(i){var t;return null!==(t=i??Vr.Promise)&&void 0!==t?t:Promise}const uB=Kd(i=>function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let ne=(()=>{class i extends it{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const n=new uw(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new uB}next(e){eu(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const n of this.currentObservers)n.next(e)}})}error(e){eu(()=>{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(){eu(()=>{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:o,observers:r}=this;return n||o?rw:(this.currentObservers=null,r.push(e),new je(()=>{this.currentObservers=null,Bs(r,e)}))}_checkFinalizedStatuses(e){const{hasError:n,thrownError:o,isStopped:r}=this;n?e.error(o):r&&e.complete()}asObservable(){const e=new it;return e.source=this,e}}return i.create=(t,e)=>new uw(t,e),i})();class uw extends ne{constructor(t,e){super(),this.destination=t,this.source=e}next(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,t)}error(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,t)}complete(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)}_subscribe(t){var e,n;return null!==(n=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==n?n:rw}}function Lt(i){return t=>{if(function hB(i){return Re(i?.lift)}(t))return t.lift(function(e){try{return i(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function At(i,t,e,n,o){return new fB(i,t,e,n,o)}class fB extends Np{constructor(t,e,n,o,r,s){super(t),this.onFinalize=r,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(l){t.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function Bt(i,t){return Lt((e,n)=>{let o=0;e.subscribe(At(n,r=>{n.next(i.call(t,r,o++))}))})}function Xo(i){return this instanceof Xo?(this.v=i,this):new Xo(i)}function pw(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,t=i[Symbol.asyncIterator];return t?t.call(i):(i=function $p(i){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&i[t],n=0;if(e)return e.call(i);if(i&&"number"==typeof i.length)return{next:function(){return i&&n>=i.length&&(i=void 0),{value:i&&i[n++],done:!i}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(i),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=i[r]&&function(s){return new Promise(function(a,l){!function o(r,s,a,l){Promise.resolve(l).then(function(c){r({value:c,done:a})},s)}(a,l,(s=i[r](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Up=i=>i&&"number"==typeof i.length&&"function"!=typeof i;function gw(i){return Re(i?.then)}function _w(i){return Re(i[Vp])}function bw(i){return Symbol.asyncIterator&&Re(i?.[Symbol.asyncIterator])}function vw(i){return new TypeError(`You provided ${null!==i&&"object"==typeof i?"an invalid object":`'${i}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const yw=function PB(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function xw(i){return Re(i?.[yw])}function ww(i){return function mw(i,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,n=e.apply(i,t||[]),r=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(h){n[h]&&(o[h]=function(f){return new Promise(function(m,p){r.push([h,f,m,p])>1||a(h,f)})})}function a(h,f){try{!function l(h){h.value instanceof Xo?Promise.resolve(h.value.v).then(c,d):u(r[0][2],h)}(n[h](f))}catch(m){u(r[0][3],m)}}function c(h){a("next",h)}function d(h){a("throw",h)}function u(h,f){h(f),r.shift(),r.length&&a(r[0][0],r[0][1])}}(this,arguments,function*(){const e=i.getReader();try{for(;;){const{value:n,done:o}=yield Xo(e.read());if(o)return yield Xo(void 0);yield yield Xo(n)}}finally{e.releaseLock()}})}function Cw(i){return Re(i?.getReader)}function Jt(i){if(i instanceof it)return i;if(null!=i){if(_w(i))return function NB(i){return new it(t=>{const e=i[Vp]();if(Re(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(i);if(Up(i))return function LB(i){return new it(t=>{for(let e=0;e{i.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,lw)})}(i);if(bw(i))return kw(i);if(xw(i))return function VB(i){return new it(t=>{for(const e of i)if(t.next(e),t.closed)return;t.complete()})}(i);if(Cw(i))return function HB(i){return kw(ww(i))}(i)}throw vw(i)}function kw(i){return new it(t=>{(function zB(i,t){var e,n,o,r;return function hw(i,t,e,n){return new(e||(e=Promise))(function(r,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?r(d.value):function o(r){return r instanceof e?r:new e(function(s){s(r)})}(d.value).then(a,l)}c((n=n.apply(i,t||[])).next())})}(this,void 0,void 0,function*(){try{for(e=pw(i);!(n=yield e.next()).done;)if(t.next(n.value),t.closed)return}catch(s){o={error:s}}finally{try{n&&!n.done&&(r=e.return)&&(yield r.call(e))}finally{if(o)throw o.error}}t.complete()})})(i,t).catch(e=>t.error(e))})}function xo(i,t,e,n=0,o=!1){const r=t.schedule(function(){e(),o?i.add(this.schedule(null,n)):this.unsubscribe()},n);if(i.add(r),!o)return r}function Hs(i,t,e=1/0){return Re(t)?Hs((n,o)=>Bt((r,s)=>t(n,r,o,s))(Jt(i(n,o))),e):("number"==typeof t&&(e=t),Lt((n,o)=>function jB(i,t,e,n,o,r,s,a){const l=[];let c=0,d=0,u=!1;const h=()=>{u&&!l.length&&!c&&t.complete()},f=p=>c{r&&t.next(p),c++;let g=!1;Jt(e(p,d++)).subscribe(At(t,b=>{o?.(b),r?f(b):t.next(b)},()=>{g=!0},void 0,()=>{if(g)try{for(c--;l.length&&cm(b)):m(b)}h()}catch(b){t.error(b)}}))};return i.subscribe(At(t,f,()=>{u=!0,h()})),()=>{a?.()}}(n,o,i,e)))}function Dw(i=1/0){return Hs(Vs,i)}const Cl=new it(i=>i.complete());function Sw(i){return i&&Re(i.schedule)}function Wp(i){return i[i.length-1]}function Mw(i){return Re(Wp(i))?i.pop():void 0}function kl(i){return Sw(Wp(i))?i.pop():void 0}function Ew(i,t=0){return Lt((e,n)=>{e.subscribe(At(n,o=>xo(n,i,()=>n.next(o),t),()=>xo(n,i,()=>n.complete(),t),o=>xo(n,i,()=>n.error(o),t)))})}function Aw(i,t=0){return Lt((e,n)=>{n.add(i.schedule(()=>e.subscribe(n),t))})}function Tw(i,t){if(!i)throw new Error("Iterable cannot be null");return new it(e=>{xo(e,t,()=>{const n=i[Symbol.asyncIterator]();xo(e,t,()=>{n.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function zs(i,t){return t?function KB(i,t){if(null!=i){if(_w(i))return function WB(i,t){return Jt(i).pipe(Aw(t),Ew(t))}(i,t);if(Up(i))return function qB(i,t){return new it(e=>{let n=0;return t.schedule(function(){n===i.length?e.complete():(e.next(i[n++]),e.closed||this.schedule())})})}(i,t);if(gw(i))return function GB(i,t){return Jt(i).pipe(Aw(t),Ew(t))}(i,t);if(bw(i))return Tw(i,t);if(xw(i))return function YB(i,t){return new it(e=>{let n;return xo(e,t,()=>{n=i[yw](),xo(e,t,()=>{let o,r;try{({value:o,done:r}=n.next())}catch(s){return void e.error(s)}r?e.complete():e.next(o)},0,!0)}),()=>Re(n?.return)&&n.return()})}(i,t);if(Cw(i))return function XB(i,t){return Tw(ww(i),t)}(i,t)}throw vw(i)}(i,t):Jt(i)}function rn(...i){const t=kl(i),e=function UB(i,t){return"number"==typeof Wp(i)?i.pop():t}(i,1/0),n=i;return n.length?1===n.length?Jt(n[0]):Dw(e)(zs(n,t)):Cl}class Iw extends ne{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return!e.closed&&t.next(this._value),e}getValue(){const{hasError:t,thrownError:e,_value:n}=this;if(t)throw e;return this._throwIfClosed(),n}next(t){super.next(this._value=t)}}function sn(...i){return zs(i,kl(i))}function iu(i={}){const{connector:t=(()=>new ne),resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:o=!0}=i;return r=>{let s,a,l,c=0,d=!1,u=!1;const h=()=>{a?.unsubscribe(),a=void 0},f=()=>{h(),s=l=void 0,d=u=!1},m=()=>{const p=s;f(),p?.unsubscribe()};return Lt((p,g)=>{c++,!u&&!d&&h();const b=l=l??t();g.add(()=>{c--,0===c&&!u&&!d&&(a=Gp(m,o))}),b.subscribe(g),!s&&c>0&&(s=new wl({next:v=>b.next(v),error:v=>{u=!0,h(),a=Gp(f,e,v),b.error(v)},complete:()=>{d=!0,h(),a=Gp(f,n),b.complete()}}),Jt(p).subscribe(s))})(r)}}function Gp(i,t,...e){if(!0===t)return void i();if(!1===t)return;const n=new wl({next:()=>{n.unsubscribe(),i()}});return Jt(t(...e)).subscribe(n)}function Dl(i,t){return Lt((e,n)=>{let o=null,r=0,s=!1;const a=()=>s&&!o&&n.complete();e.subscribe(At(n,l=>{o?.unsubscribe();let c=0;const d=r++;Jt(i(l,d)).subscribe(o=At(n,u=>n.next(t?t(l,u,d,c++):u),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function nu(i,t=Vs){return i=i??ZB,Lt((e,n)=>{let o,r=!0;e.subscribe(At(n,s=>{const a=t(s);(r||!i(o,a))&&(r=!1,o=a,n.next(s))}))})}function ZB(i,t){return i===t}function He(i){for(let t in i)if(i[t]===He)return t;throw Error("Could not find renamed property on target object.")}function ou(i,t){for(const e in t)t.hasOwnProperty(e)&&!i.hasOwnProperty(e)&&(i[e]=t[e])}function Tt(i){if("string"==typeof i)return i;if(Array.isArray(i))return"["+i.map(Tt).join(", ")+"]";if(null==i)return""+i;if(i.overriddenName)return`${i.overriddenName}`;if(i.name)return`${i.name}`;const t=i.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function qp(i,t){return null==i||""===i?null===t?"":t:null==t||""===t?i:i+" "+t}const QB=He({__forward_ref__:He});function ze(i){return i.__forward_ref__=ze,i.toString=function(){return Tt(this())},i}function se(i){return Yp(i)?i():i}function Yp(i){return"function"==typeof i&&i.hasOwnProperty(QB)&&i.__forward_ref__===ze}function Xp(i){return i&&!!i.\u0275providers}const Ow="https://g.co/ng/security#xss";class D extends Error{constructor(t,e){super(function ru(i,t){return`NG0${Math.abs(i)}${t?": "+t:""}`}(t,e)),this.code=t}}function ce(i){return"string"==typeof i?i:null==i?"":String(i)}function Kp(i,t){throw new D(-201,!1)}function an(i,t){null==i&&function oe(i,t,e,n){throw new Error(`ASSERTION ERROR: ${i}`+(null==n?"":` [Expected=> ${e} ${n} ${t} <=Actual]`))}(t,i,null,"!=")}function B(i){return{token:i.token,providedIn:i.providedIn||null,factory:i.factory,value:void 0}}function _e(i){return{providers:i.providers||[],imports:i.imports||[]}}function su(i){return Rw(i,lu)||Rw(i,Fw)}function Rw(i,t){return i.hasOwnProperty(t)?i[t]:null}function au(i){return i&&(i.hasOwnProperty(Zp)||i.hasOwnProperty(rV))?i[Zp]:null}const lu=He({\u0275prov:He}),Zp=He({\u0275inj:He}),Fw=He({ngInjectableDef:He}),rV=He({ngInjectorDef:He});var Ae=function(i){return i[i.Default=0]="Default",i[i.Host=1]="Host",i[i.Self=2]="Self",i[i.SkipSelf=4]="SkipSelf",i[i.Optional=8]="Optional",i}(Ae||{});let Qp;function Ti(i){const t=Qp;return Qp=i,t}function Nw(i,t,e){const n=su(i);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:e&Ae.Optional?null:void 0!==t?t:void Kp(Tt(i))}const We=globalThis,Sl={},ng="__NG_DI_FLAG__",cu="ngTempTokenPath",lV=/\n/gm,Bw="__source";let js;function Ko(i){const t=js;return js=i,t}function uV(i,t=Ae.Default){if(void 0===js)throw new D(-203,!1);return null===js?Nw(i,void 0,t):js.get(i,t&Ae.Optional?null:void 0,t)}function C(i,t=Ae.Default){return(function Pw(){return Qp}()||uV)(se(i),t)}function J(i,t=Ae.Default){return C(i,du(t))}function du(i){return typeof i>"u"||"number"==typeof i?i:0|(i.optional&&8)|(i.host&&1)|(i.self&&2)|(i.skipSelf&&4)}function og(i){const t=[];for(let e=0;et){s=r-1;break}}}for(;rr?"":o[u+1].toLowerCase();const f=8&n?h:null;if(f&&-1!==jw(f,c,0)||2&n&&c!==h){if(Tn(n))return!1;s=!0}}}}else{if(!s&&!Tn(n)&&!Tn(l))return!1;if(s&&Tn(l))continue;s=!1,n=l|1&n}}return Tn(n)||s}function Tn(i){return 0==(1&i)}function bV(i,t,e,n){if(null===t)return-1;let o=0;if(n||!e){let r=!1;for(;o-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&n?o+="."+s:4&n&&(o+=" "+s);else""!==o&&!Tn(s)&&(t+=Xw(r,o),o=""),n=s,r=r||!Tn(n);e++}return""!==o&&(t+=Xw(r,o)),t}function xe(i){return wo(()=>{const t=Zw(i),e={...t,decls:i.decls,vars:i.vars,template:i.template,consts:i.consts||null,ngContentSelectors:i.ngContentSelectors,onPush:i.changeDetection===uu.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&i.dependencies||null,getStandaloneInjector:null,signals:i.signals??!1,data:i.data||{},encapsulation:i.encapsulation||ln.Emulated,styles:i.styles||Fe,_:null,schemas:i.schemas||null,tView:null,id:""};Qw(e);const n=i.dependencies;return e.directiveDefs=fu(n,!1),e.pipeDefs=fu(n,!0),e.id=function IV(i){let t=0;const e=[i.selectors,i.ngContentSelectors,i.hostVars,i.hostAttrs,i.consts,i.vars,i.decls,i.encapsulation,i.standalone,i.signals,i.exportAs,JSON.stringify(i.inputs),JSON.stringify(i.outputs),Object.getOwnPropertyNames(i.type.prototype),!!i.contentQueries,!!i.viewQuery].join("|");for(const o of e)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(e),e})}function MV(i){return Te(i)||jt(i)}function EV(i){return null!==i}function ye(i){return wo(()=>({type:i.type,bootstrap:i.bootstrap||Fe,declarations:i.declarations||Fe,imports:i.imports||Fe,exports:i.exports||Fe,transitiveCompileScopes:null,schemas:i.schemas||null,id:i.id||null}))}function Kw(i,t){if(null==i)return $n;const e={};for(const n in i)if(i.hasOwnProperty(n)){let o=i[n],r=o;Array.isArray(o)&&(r=o[1],o=o[0]),e[o]=n,t&&(t[o]=r)}return e}function O(i){return wo(()=>{const t=Zw(i);return Qw(t),t})}function Te(i){return i[hu]||null}function jt(i){return i[rg]||null}function mi(i){return i[sg]||null}function Zw(i){const t={};return{type:i.type,providersResolver:null,factory:null,hostBindings:i.hostBindings||null,hostVars:i.hostVars||0,hostAttrs:i.hostAttrs||null,contentQueries:i.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:i.inputs||$n,exportAs:i.exportAs||null,standalone:!0===i.standalone,signals:!0===i.signals,selectors:i.selectors||Fe,viewQuery:i.viewQuery||null,features:i.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Kw(i.inputs,t),outputs:Kw(i.outputs)}}function Qw(i){i.features?.forEach(t=>t(i))}function fu(i,t){if(!i)return null;const e=t?mi:MV;return()=>("function"==typeof i?i():i).map(n=>e(n)).filter(EV)}const mt=0,V=1,pe=2,nt=3,In=4,Il=5,ei=6,$s=7,bt=8,Zo=9,Us=10,de=11,Ol=12,Jw=13,Ws=14,vt=15,Rl=16,Gs=17,Un=18,Fl=19,eC=20,Qo=21,ko=22,Pl=23,Nl=24,ke=25,lg=1,tC=2,Wn=7,qs=9,$t=11;function Oi(i){return Array.isArray(i)&&"object"==typeof i[lg]}function pi(i){return Array.isArray(i)&&!0===i[lg]}function cg(i){return 0!=(4&i.flags)}function jr(i){return i.componentOffset>-1}function pu(i){return 1==(1&i.flags)}function On(i){return!!i.template}function dg(i){return 0!=(512&i[pe])}function $r(i,t){return i.hasOwnProperty(Co)?i[Co]:null}let Ut=null,gu=!1;function cn(i){const t=Ut;return Ut=i,t}const oC={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function sC(i){if(!Bl(i)||i.dirty){if(!i.producerMustRecompute(i)&&!cC(i))return void(i.dirty=!1);i.producerRecomputeValue(i),i.dirty=!1}}function lC(i){i.dirty=!0,function aC(i){if(void 0===i.liveConsumerNode)return;const t=gu;gu=!0;try{for(const e of i.liveConsumerNode)e.dirty||lC(e)}finally{gu=t}}(i),i.consumerMarkedDirty?.(i)}function hg(i){return i&&(i.nextProducerIndex=0),cn(i)}function fg(i,t){if(cn(t),i&&void 0!==i.producerNode&&void 0!==i.producerIndexOfThis&&void 0!==i.producerLastReadVersion){if(Bl(i))for(let e=i.nextProducerIndex;ei.nextProducerIndex;)i.producerNode.pop(),i.producerLastReadVersion.pop(),i.producerIndexOfThis.pop()}}function cC(i){Ys(i);for(let t=0;t0}function Ys(i){i.producerNode??=[],i.producerIndexOfThis??=[],i.producerLastReadVersion??=[]}let fC=null;const _C=()=>{},UV=(()=>({...oC,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:i=>{i.schedule(i.ref)},hasRun:!1,cleanupFn:_C}))();class WV{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function ti(){return bC}function bC(i){return i.type.prototype.ngOnChanges&&(i.setInput=qV),GV}function GV(){const i=yC(this),t=i?.current;if(t){const e=i.previous;if(e===$n)i.previous=t;else for(let n in t)e[n]=t[n];i.current=null,this.ngOnChanges(t)}}function qV(i,t,e,n){const o=this.declaredInputs[e],r=yC(i)||function YV(i,t){return i[vC]=t}(i,{previous:$n,current:null}),s=r.current||(r.current={}),a=r.previous,l=a[o];s[o]=new WV(l&&l.currentValue,t,a===$n),i[n]=t}ti.ngInherit=!0;const vC="__ngSimpleChanges__";function yC(i){return i[vC]||null}const Gn=function(i,t,e){},xC="svg";function Ge(i){for(;Array.isArray(i);)i=i[mt];return i}function bu(i,t){return Ge(t[i])}function Ri(i,t){return Ge(t[i.index])}function CC(i,t){return i.data[t]}function zi(i,t){const e=t[i];return Oi(e)?e:e[mt]}function er(i,t){return null==t?null:i[t]}function kC(i){i[Gs]=0}function e3(i){1024&i[pe]||(i[pe]|=1024,SC(i,1))}function DC(i){1024&i[pe]&&(i[pe]&=-1025,SC(i,-1))}function SC(i,t){let e=i[nt];if(null===e)return;e[Il]+=t;let n=e;for(e=e[nt];null!==e&&(1===t&&1===n[Il]||-1===t&&0===n[Il]);)e[Il]+=t,n=e,e=e[nt]}const re={lFrame:LC(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function AC(){return re.bindingsEnabled}function Ks(){return null!==re.skipHydrationRootTNode}function I(){return re.lFrame.lView}function Ie(){return re.lFrame.tView}function gi(i){return re.lFrame.contextLView=i,i[bt]}function _i(i){return re.lFrame.contextLView=null,i}function Wt(){let i=TC();for(;null!==i&&64===i.type;)i=i.parent;return i}function TC(){return re.lFrame.currentTNode}function qn(i,t){const e=re.lFrame;e.currentTNode=i,e.isParent=t}function bg(){return re.lFrame.isParent}function vg(){re.lFrame.isParent=!1}function Zs(){return re.lFrame.bindingIndex++}function So(i){const t=re.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+i,e}function h3(i,t){const e=re.lFrame;e.bindingIndex=e.bindingRootIndex=i,yg(t)}function yg(i){re.lFrame.currentDirectiveIndex=i}function FC(){return re.lFrame.currentQueryIndex}function wg(i){re.lFrame.currentQueryIndex=i}function m3(i){const t=i[V];return 2===t.type?t.declTNode:1===t.type?i[ei]:null}function PC(i,t,e){if(e&Ae.SkipSelf){let o=t,r=i;for(;!(o=o.parent,null!==o||e&Ae.Host||(o=m3(r),null===o||(r=r[Ws],10&o.type))););if(null===o)return!1;t=o,i=r}const n=re.lFrame=NC();return n.currentTNode=t,n.lView=i,!0}function Cg(i){const t=NC(),e=i[V];re.lFrame=t,t.currentTNode=e.firstChild,t.lView=i,t.tView=e,t.contextLView=i,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function NC(){const i=re.lFrame,t=null===i?null:i.child;return null===t?LC(i):t}function LC(i){const t={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:i,child:null,inI18n:!1};return null!==i&&(i.child=t),t}function BC(){const i=re.lFrame;return re.lFrame=i.parent,i.currentTNode=null,i.lView=null,i}const VC=BC;function kg(){const i=BC();i.isParent=!0,i.tView=null,i.selectedIndex=-1,i.contextLView=null,i.elementDepthCount=0,i.currentDirectiveIndex=-1,i.currentNamespace=null,i.bindingRootIndex=-1,i.bindingIndex=-1,i.currentQueryIndex=0}function vi(){return re.lFrame.selectedIndex}function Ur(i){re.lFrame.selectedIndex=i}function at(){const i=re.lFrame;return CC(i.tView,i.selectedIndex)}function Qs(){re.lFrame.currentNamespace=xC}function vu(){!function b3(){re.lFrame.currentNamespace=null}()}let zC=!0;function yu(){return zC}function tr(i){zC=i}function xu(i,t){for(let e=t.directiveStart,n=t.directiveEnd;e=n)break}else t[l]<0&&(i[Gs]+=65536),(a>13>16&&(3&i[pe])===t&&(i[pe]+=8192,$C(a,r)):$C(a,r)}const Js=-1;class Hl{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Mg(i){return i!==Js}function zl(i){return 32767&i}function jl(i,t){let e=function k3(i){return i>>16}(i),n=t;for(;e>0;)n=n[Ws],e--;return n}let Eg=!0;function ku(i){const t=Eg;return Eg=i,t}const UC=255,WC=5;let D3=0;const Yn={};function Du(i,t){const e=GC(i,t);if(-1!==e)return e;const n=t[V];n.firstCreatePass&&(i.injectorIndex=t.length,Ag(n.data,i),Ag(t,null),Ag(n.blueprint,null));const o=Su(i,t),r=i.injectorIndex;if(Mg(o)){const s=zl(o),a=jl(o,t),l=a[V].data;for(let c=0;c<8;c++)t[r+c]=a[s+c]|l[s+c]}return t[r+8]=o,r}function Ag(i,t){i.push(0,0,0,0,0,0,0,0,t)}function GC(i,t){return-1===i.injectorIndex||i.parent&&i.parent.injectorIndex===i.injectorIndex||null===t[i.injectorIndex+8]?-1:i.injectorIndex}function Su(i,t){if(i.parent&&-1!==i.parent.injectorIndex)return i.parent.injectorIndex;let e=0,n=null,o=t;for(;null!==o;){if(n=JC(o),null===n)return Js;if(e++,o=o[Ws],-1!==n.injectorIndex)return n.injectorIndex|e<<16}return Js}function Tg(i,t,e){!function S3(i,t,e){let n;"string"==typeof e?n=e.charCodeAt(0)||0:e.hasOwnProperty(El)&&(n=e[El]),null==n&&(n=e[El]=D3++);const o=n&UC;t.data[i+(o>>WC)]|=1<=0?t&UC:I3:t}(e);if("function"==typeof r){if(!PC(t,i,n))return n&Ae.Host?qC(o,0,n):YC(t,e,n,o);try{let s;if(s=r(n),null!=s||n&Ae.Optional)return s;Kp()}finally{VC()}}else if("number"==typeof r){let s=null,a=GC(i,t),l=Js,c=n&Ae.Host?t[vt][ei]:null;for((-1===a||n&Ae.SkipSelf)&&(l=-1===a?Su(i,t):t[a+8],l!==Js&&QC(n,!1)?(s=t[V],a=zl(l),t=jl(l,t)):a=-1);-1!==a;){const d=t[V];if(ZC(r,a,d.data)){const u=E3(a,t,e,s,n,c);if(u!==Yn)return u}l=t[a+8],l!==Js&&QC(n,t[V].data[a+8]===c)&&ZC(r,a,t)?(s=d,a=zl(l),t=jl(l,t)):a=-1}}return o}function E3(i,t,e,n,o,r){const s=t[V],a=s.data[i+8],d=Mu(a,s,e,null==n?jr(a)&&Eg:n!=s&&0!=(3&a.type),o&Ae.Host&&r===a);return null!==d?Wr(t,s,d,a):Yn}function Mu(i,t,e,n,o){const r=i.providerIndexes,s=t.data,a=1048575&r,l=i.directiveStart,d=r>>20,h=o?a+d:i.directiveEnd;for(let f=n?a:a+d;f=l&&m.type===e)return f}if(o){const f=s[l];if(f&&On(f)&&f.type===e)return l}return null}function Wr(i,t,e,n){let o=i[e];const r=t.data;if(function x3(i){return i instanceof Hl}(o)){const s=o;s.resolving&&function JB(i,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${i}`:"";throw new D(-200,`Circular dependency in DI detected for ${i}${e}`)}(function Be(i){return"function"==typeof i?i.name||i.toString():"object"==typeof i&&null!=i&&"function"==typeof i.type?i.type.name||i.type.toString():ce(i)}(r[e]));const a=ku(s.canSeeViewProviders);s.resolving=!0;const c=s.injectImpl?Ti(s.injectImpl):null;PC(i,n,Ae.Default);try{o=i[e]=s.factory(void 0,r,i,n),t.firstCreatePass&&e>=n.directiveStart&&function v3(i,t,e){const{ngOnChanges:n,ngOnInit:o,ngDoCheck:r}=t.type.prototype;if(n){const s=bC(t);(e.preOrderHooks??=[]).push(i,s),(e.preOrderCheckHooks??=[]).push(i,s)}o&&(e.preOrderHooks??=[]).push(0-i,o),r&&((e.preOrderHooks??=[]).push(i,r),(e.preOrderCheckHooks??=[]).push(i,r))}(e,r[e],t)}finally{null!==c&&Ti(c),ku(a),s.resolving=!1,VC()}}return o}function ZC(i,t,e){return!!(e[t+(i>>WC)]&1<{const t=i.prototype.constructor,e=t[Co]||Ig(t),n=Object.prototype;let o=Object.getPrototypeOf(i.prototype).constructor;for(;o&&o!==n;){const r=o[Co]||Ig(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function Ig(i){return Yp(i)?()=>{const t=Ig(se(i));return t&&t()}:$r(i)}function JC(i){const t=i[V],e=t.type;return 2===e?t.declTNode:1===e?i[ei]:null}function Gr(i){return function M3(i,t){if("class"===t)return i.classes;if("style"===t)return i.styles;const e=i.attrs;if(e){const n=e.length;let o=0;for(;o{const n=function Og(i){return function(...e){if(i){const n=i(...e);for(const o in n)this[o]=n[o]}}}(t);function o(...r){if(this instanceof o)return n.apply(this,r),this;const s=new o(...r);return a.annotation=s,a;function a(l,c,d){const u=l.hasOwnProperty(ta)?l[ta]:Object.defineProperty(l,ta,{value:[]})[ta];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(s),l}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=i,o.annotationCls=o,o})}function ra(i,t){i.forEach(e=>Array.isArray(e)?ra(e,t):t(e))}function tk(i,t,e){t>=i.length?i.push(e):i.splice(t,0,e)}function Eu(i,t){return t>=i.length-1?i.pop():i.splice(t,1)[0]}function Wl(i,t){const e=[];for(let n=0;n=0?i[1|n]=e:(n=~n,function V3(i,t,e,n){let o=i.length;if(o==t)i.push(e,n);else if(1===o)i.push(n,i[0]),i[0]=e;else{for(o--,i.push(i[o-1],i[o]);o>t;)i[o]=i[o-2],o--;i[t]=e,i[t+1]=n}}(i,n,t,e)),n}function Rg(i,t){const e=sa(i,t);if(e>=0)return i[1|e]}function sa(i,t){return function ik(i,t,e){let n=0,o=i.length>>e;for(;o!==n;){const r=n+(o-n>>1),s=i[r<t?o=r:n=r+1}return~(o<0&&(i[e-1][In]=n[In]);const r=Eu(i,$t+t);!function wH(i,t){Kl(i,t,t[de],2,null,null),t[mt]=null,t[ei]=null}(n[V],n);const s=r[Un];null!==s&&s.detachView(r[V]),n[nt]=null,n[In]=null,n[pe]&=-129}return n}function Ug(i,t){if(!(256&t[pe])){const e=t[de];t[Pl]&&dC(t[Pl]),t[Nl]&&dC(t[Nl]),e.destroyNode&&Kl(i,t,e,3,null,null),function DH(i){let t=i[Ol];if(!t)return Wg(i[V],i);for(;t;){let e=null;if(Oi(t))e=t[Ol];else{const n=t[$t];n&&(e=n)}if(!e){for(;t&&!t[In]&&t!==i;)Oi(t)&&Wg(t[V],t),t=t[nt];null===t&&(t=i),Oi(t)&&Wg(t[V],t),e=t&&t[In]}t=e}}(t)}}function Wg(i,t){if(!(256&t[pe])){t[pe]&=-129,t[pe]|=256,function AH(i,t){let e;if(null!=i&&null!=(e=i.destroyHooks))for(let n=0;n=0?n[s]():n[-s].unsubscribe(),r+=2}else e[r].call(n[e[r+1]]);null!==n&&(t[$s]=null);const o=t[Qo];if(null!==o){t[Qo]=null;for(let r=0;r-1){const{encapsulation:r}=i.data[n.directiveStart+o];if(r===ln.None||r===ln.Emulated)return null}return Ri(n,e)}}(i,t.parent,e)}function qr(i,t,e,n,o){i.insertBefore(t,e,n,o)}function Ek(i,t,e){i.appendChild(t,e)}function Ak(i,t,e,n,o){null!==n?qr(i,t,e,n,o):Ek(i,t,e)}function Hu(i,t){return i.parentNode(t)}function Tk(i,t,e){return Ok(i,t,e)}let qg,$u,Zg,Ok=function Ik(i,t,e){return 40&i.type?Ri(i,e):null};function zu(i,t,e,n){const o=Gg(i,n,t),r=t[de],a=Tk(n.parent||t[ei],n,t);if(null!=o)if(Array.isArray(e))for(let l=0;li,createScript:i=>i,createScriptURL:i=>i})}catch{}return $u}()?.createHTML(i)||i}class Yr{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ow})`}}class HH extends Yr{getTypeName(){return"HTML"}}class zH extends Yr{getTypeName(){return"Style"}}class jH extends Yr{getTypeName(){return"Script"}}class $H extends Yr{getTypeName(){return"URL"}}class UH extends Yr{getTypeName(){return"ResourceURL"}}function $i(i){return i instanceof Yr?i.changingThisBreaksApplicationSecurity:i}function Xn(i,t){const e=function WH(i){return i instanceof Yr&&i.getTypeName()||null}(i);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see ${Ow})`)}return e===t}class ZH{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(ua(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch{return null}}}class QH{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const e=this.inertDocument.createElement("template");return e.innerHTML=ua(t),e}}const e4=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Wu(i){return(i=String(i)).match(e4)?i:"unsafe:"+i}function Mo(i){const t={};for(const e of i.split(","))t[e]=!0;return t}function Zl(...i){const t={};for(const e of i)for(const n in e)e.hasOwnProperty(n)&&(t[n]=!0);return t}const $k=Mo("area,br,col,hr,img,wbr"),Uk=Mo("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Wk=Mo("rp,rt"),Jg=Zl($k,Zl(Uk,Mo("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")),Zl(Wk,Mo("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")),Zl(Wk,Uk)),e_=Mo("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Gk=Zl(e_,Mo("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"),Mo("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")),t4=Mo("script,style,template");class i4{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.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 o=this.checkClobberedElement(e,e.nextSibling);if(o){e=o;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!Jg.hasOwnProperty(e))return this.sanitizedSomething=!0,!t4.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let o=0;o"),!0}endElement(t){const e=t.nodeName.toLowerCase();Jg.hasOwnProperty(e)&&!$k.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(qk(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const n4=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,o4=/([^\#-~ |!])/g;function qk(i){return i.replace(/&/g,"&").replace(n4,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(o4,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Gu;function Yk(i,t){let e=null;try{Gu=Gu||function jk(i){const t=new QH(i);return function JH(){try{return!!(new window.DOMParser).parseFromString(ua(""),"text/html")}catch{return!1}}()?new ZH(t):t}(i);let n=t?String(t):"";e=Gu.getInertBodyElement(n);let o=5,r=n;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,n=r,r=e.innerHTML,e=Gu.getInertBodyElement(n)}while(n!==r);return ua((new i4).sanitizeChildren(t_(e)||e))}finally{if(e){const n=t_(e)||e;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function t_(i){return"content"in i&&function r4(i){return i.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===i.nodeName}(i)?i.content:null}var Gt=function(i){return 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}(Gt||{});class A{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=B({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const qu=new A("ENVIRONMENT_INITIALIZER"),Zk=new A("INJECTOR",-1),Qk=new A("INJECTOR_DEF_TYPES");class i_{get(t,e=Sl){if(e===Sl){const n=new Error(`NullInjectorError: No provider for ${Tt(t)}!`);throw n.name="NullInjectorError",n}return e}}function f4(...i){return{\u0275providers:eD(0,i),\u0275fromNgModule:!0}}function eD(i,...t){const e=[],n=new Set;let o;const r=s=>{e.push(s)};return ra(t,s=>{const a=s;Yu(a,r,[],n)&&(o||=[],o.push(a))}),void 0!==o&&tD(o,r),e}function tD(i,t){for(let e=0;e{t(r,n)})}}function Yu(i,t,e,n){if(!(i=se(i)))return!1;let o=null,r=au(i);const s=!r&&Te(i);if(r||s){if(s&&!s.standalone)return!1;o=i}else{const l=i.ngModule;if(r=au(l),!r)return!1;o=l}const a=n.has(o);if(s){if(a)return!1;if(n.add(o),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)Yu(c,t,e,n)}}else{if(!r)return!1;{if(null!=r.imports&&!a){let c;n.add(o);try{ra(r.imports,d=>{Yu(d,t,e,n)&&(c||=[],c.push(d))})}finally{}void 0!==c&&tD(c,t)}if(!a){const c=$r(o)||(()=>new o);t({provide:o,useFactory:c,deps:Fe},o),t({provide:Qk,useValue:o,multi:!0},o),t({provide:qu,useValue:()=>C(o),multi:!0},o)}const l=r.providers;if(null!=l&&!a){const c=i;n_(l,d=>{t(d,c)})}}}return o!==i&&void 0!==i.providers}function n_(i,t){for(let e of i)Xp(e)&&(e=e.\u0275providers),Array.isArray(e)?n_(e,t):t(e)}const m4=He({provide:String,useValue:He});function o_(i){return null!==i&&"object"==typeof i&&m4 in i}function Xr(i){return"function"==typeof i}const r_=new A("Set Injector scope."),Xu={},g4={};let s_;function Ku(){return void 0===s_&&(s_=new i_),s_}class Eo{}class Zu extends Eo{get destroyed(){return this._destroyed}constructor(t,e,n,o){super(),this.parent=e,this.source=n,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,l_(t,s=>this.processProvider(s)),this.records.set(Zk,fa(void 0,this)),o.has("environment")&&this.records.set(Eo,fa(void 0,this));const r=this.records.get(r_);null!=r&&"string"==typeof r.value&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(Qk.multi,Fe,Ae.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const e of t)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const e=Ko(this),n=Ti(void 0);try{return t()}finally{Ko(e),Ti(n)}}get(t,e=Sl,n=Ae.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(zw))return t[zw](this);n=du(n);const r=Ko(this),s=Ti(void 0);try{if(!(n&Ae.SkipSelf)){let l=this.records.get(t);if(void 0===l){const c=function x4(i){return"function"==typeof i||"object"==typeof i&&i instanceof A}(t)&&su(t);l=c&&this.injectableDefInScope(c)?fa(a_(t),Xu):null,this.records.set(t,l)}if(null!=l)return this.hydrate(t,l)}return(n&Ae.Self?Ku():this.parent).get(t,e=n&Ae.Optional&&e===Sl?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[cu]=a[cu]||[]).unshift(Tt(t)),r)throw a;return function fV(i,t,e,n){const o=i[cu];throw t[Bw]&&o.unshift(t[Bw]),i.message=function mV(i,t,e,n=null){i=i&&"\n"===i.charAt(0)&&"\u0275"==i.charAt(1)?i.slice(2):i;let o=Tt(t);if(Array.isArray(t))o=t.map(Tt).join(" -> ");else if("object"==typeof t){let r=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];r.push(s+":"+("string"==typeof a?JSON.stringify(a):Tt(a)))}o=`{${r.join(", ")}}`}return`${e}${n?"("+n+")":""}[${o}]: ${i.replace(lV,"\n ")}`}("\n"+i.message,o,e,n),i.ngTokenPath=o,i[cu]=null,i}(a,t,"R3InjectorError",this.source)}throw a}finally{Ti(s),Ko(r)}}resolveInjectorInitializers(){const t=Ko(this),e=Ti(void 0);try{const o=this.get(qu.multi,Fe,Ae.Self);for(const r of o)r()}finally{Ko(t),Ti(e)}}toString(){const t=[],e=this.records;for(const n of e.keys())t.push(Tt(n));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new D(205,!1)}processProvider(t){let e=Xr(t=se(t))?t:se(t&&t.provide);const n=function b4(i){return o_(i)?fa(void 0,i.useValue):fa(oD(i),Xu)}(t);if(Xr(t)||!0!==t.multi)this.records.get(e);else{let o=this.records.get(e);o||(o=fa(void 0,Xu,!0),o.factory=()=>og(o.multi),this.records.set(e,o)),e=t,o.multi.push(t)}this.records.set(e,n)}hydrate(t,e){return e.value===Xu&&(e.value=g4,e.value=e.factory()),"object"==typeof e.value&&e.value&&function y4(i){return null!==i&&"object"==typeof i&&"function"==typeof i.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=se(t.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(t){const e=this._onDestroyHooks.indexOf(t);-1!==e&&this._onDestroyHooks.splice(e,1)}}function a_(i){const t=su(i),e=null!==t?t.factory:$r(i);if(null!==e)return e;if(i instanceof A)throw new D(204,!1);if(i instanceof Function)return function _4(i){const t=i.length;if(t>0)throw Wl(t,"?"),new D(204,!1);const e=function oV(i){return i&&(i[lu]||i[Fw])||null}(i);return null!==e?()=>e.factory(i):()=>new i}(i);throw new D(204,!1)}function oD(i,t,e){let n;if(Xr(i)){const o=se(i);return $r(o)||a_(o)}if(o_(i))n=()=>se(i.useValue);else if(function nD(i){return!(!i||!i.useFactory)}(i))n=()=>i.useFactory(...og(i.deps||[]));else if(function iD(i){return!(!i||!i.useExisting)}(i))n=()=>C(se(i.useExisting));else{const o=se(i&&(i.useClass||i.provide));if(!function v4(i){return!!i.deps}(i))return $r(o)||a_(o);n=()=>new o(...og(i.deps))}return n}function fa(i,t,e=!1){return{factory:i,value:t,multi:e?[]:void 0}}function l_(i,t){for(const e of i)Array.isArray(e)?l_(e,t):e&&Xp(e)?l_(e.\u0275providers,t):t(e)}const Jl=new A("AppId",{providedIn:"root",factory:()=>w4}),w4="ng",rD=new A("Platform Initializer"),Kr=new A("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Ot=new A("AnimationModuleType"),c_=new A("CSP nonce",{providedIn:"root",factory:()=>function ha(){if(void 0!==Zg)return Zg;if(typeof document<"u")return document;throw new D(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let sD=(i,t,e)=>null;function __(i,t,e=!1){return sD(i,t,e)}class O4{}class cD{}class F4{resolveComponentFactory(t){throw function R4(i){const t=Error(`No component factory found for ${Tt(i)}.`);return t.ngComponent=i,t}(t)}}let ga=(()=>{class i{static#e=this.NULL=new F4}return i})();function P4(){return _a(Wt(),I())}function _a(i,t){return new ee(Ri(i,t))}let ee=(()=>{class i{constructor(e){this.nativeElement=e}static#e=this.__NG_ELEMENT_ID__=P4}return i})();function N4(i){return i instanceof ee?i.nativeElement:i}class ic{}let Zr=(()=>{class i{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function L4(){const i=I(),e=zi(Wt().index,i);return(Oi(e)?e:i)[de]}()}return i})(),B4=(()=>{class i{static#e=this.\u0275prov=B({token:i,providedIn:"root",factory:()=>null})}return i})();class ba{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const V4=new ba("16.2.9"),y_={};function mD(i,t=null,e=null,n){const o=pD(i,t,e,n);return o.resolveInjectorInitializers(),o}function pD(i,t=null,e=null,n,o=new Set){const r=[e||Fe,f4(i)];return n=n||("object"==typeof i?void 0:Tt(i)),new Zu(r,t||Ku(),n||null,o)}let Vt=(()=>{class i{static#e=this.THROW_IF_NOT_FOUND=Sl;static#t=this.NULL=new i_;static create(e,n){if(Array.isArray(e))return mD({name:""},n,e,"");{const o=e.name??"";return mD({name:o},e.parent,e.providers,o)}}static#i=this.\u0275prov=B({token:i,providedIn:"any",factory:()=>C(Zk)});static#n=this.__NG_ELEMENT_ID__=-1}return i})();function w_(i){return i.ngOriginalError}class un{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t);this._console.error("ERROR",t),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&w_(t);for(;e&&w_(e);)e=w_(e);return e||null}}function k_(i){return t=>{setTimeout(i,void 0,t)}}const te=class G4 extends ne{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let o=t,r=e||(()=>null),s=n;if(t&&"object"==typeof t){const l=t;o=l.next?.bind(l),r=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(r=k_(r),o&&(o=k_(o)),s&&(s=k_(s)));const a=super.subscribe({next:o,error:r,complete:s});return t instanceof je&&t.add(a),a}};function _D(...i){}class W{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new te(!1),this.onMicrotaskEmpty=new te(!1),this.onStable=new te(!1),this.onError=new te(!1),typeof Zone>"u")throw new D(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!n&&e,o.shouldCoalesceRunChangeDetection=n,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function q4(){const i="function"==typeof We.requestAnimationFrame;let t=We[i?"requestAnimationFrame":"setTimeout"],e=We[i?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const o=e[Zone.__symbol__("OriginalDelegate")];o&&(e=o)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function K4(i){const t=()=>{!function X4(i){i.isCheckStableRunning||-1!==i.lastRequestAnimationFrameId||(i.lastRequestAnimationFrameId=i.nativeRequestAnimationFrame.call(We,()=>{i.fakeTopEventTask||(i.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{i.lastRequestAnimationFrameId=-1,S_(i),i.isCheckStableRunning=!0,D_(i),i.isCheckStableRunning=!1},void 0,()=>{},()=>{})),i.fakeTopEventTask.invoke()}),S_(i))}(i)};i._inner=i._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,o,r,s,a)=>{if(function Q4(i){return!(!Array.isArray(i)||1!==i.length)&&!0===i[0].data?.__ignore_ng_zone__}(a))return e.invokeTask(o,r,s,a);try{return bD(i),e.invokeTask(o,r,s,a)}finally{(i.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||i.shouldCoalesceRunChangeDetection)&&t(),vD(i)}},onInvoke:(e,n,o,r,s,a,l)=>{try{return bD(i),e.invoke(o,r,s,a,l)}finally{i.shouldCoalesceRunChangeDetection&&t(),vD(i)}},onHasTask:(e,n,o,r)=>{e.hasTask(o,r),n===o&&("microTask"==r.change?(i._hasPendingMicrotasks=r.microTask,S_(i),D_(i)):"macroTask"==r.change&&(i.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,n,o,r)=>(e.handleError(o,r),i.runOutsideAngular(()=>i.onError.emit(r)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!W.isInAngularZone())throw new D(909,!1)}static assertNotInAngularZone(){if(W.isInAngularZone())throw new D(909,!1)}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,o){const r=this._inner,s=r.scheduleEventTask("NgZoneEvent: "+o,t,Y4,_D,_D);try{return r.runTask(s,e,n)}finally{r.cancelTask(s)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const Y4={};function D_(i){if(0==i._nesting&&!i.hasPendingMicrotasks&&!i.isStable)try{i._nesting++,i.onMicrotaskEmpty.emit(null)}finally{if(i._nesting--,!i.hasPendingMicrotasks)try{i.runOutsideAngular(()=>i.onStable.emit(null))}finally{i.isStable=!0}}}function S_(i){i.hasPendingMicrotasks=!!(i._hasPendingMicrotasks||(i.shouldCoalesceEventChangeDetection||i.shouldCoalesceRunChangeDetection)&&-1!==i.lastRequestAnimationFrameId)}function bD(i){i._nesting++,i.isStable&&(i.isStable=!1,i.onUnstable.emit(null))}function vD(i){i._nesting--,D_(i)}class Z4{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new te,this.onMicrotaskEmpty=new te,this.onStable=new te,this.onError=new te}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,o){return t.apply(e,n)}}const yD=new A("",{providedIn:"root",factory:xD});function xD(){const i=J(W);let t=!0;return rn(new it(o=>{t=i.isStable&&!i.hasPendingMacrotasks&&!i.hasPendingMicrotasks,i.runOutsideAngular(()=>{o.next(t),o.complete()})}),new it(o=>{let r;i.runOutsideAngular(()=>{r=i.onStable.subscribe(()=>{W.assertNotInAngularZone(),queueMicrotask(()=>{!t&&!i.hasPendingMacrotasks&&!i.hasPendingMicrotasks&&(t=!0,o.next(!0))})})});const s=i.onUnstable.subscribe(()=>{W.assertInAngularZone(),t&&(t=!1,i.runOutsideAngular(()=>{o.next(!1)}))});return()=>{r.unsubscribe(),s.unsubscribe()}}).pipe(iu()))}let M_=(()=>{class i{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=B({token:i,providedIn:"root",factory:()=>new i})}return i})();function nc(i){for(;i;){i[pe]|=64;const t=Yl(i);if(dg(i)&&!t)return i;i=t}return null}const SD=new A("",{providedIn:"root",factory:()=>!1});let oh=null;function TD(i,t){return i[t]??RD()}function ID(i,t){const e=RD();e.producerNode?.length&&(i[t]=oh,e.lView=i,oh=OD())}const lz={...oC,consumerIsAlwaysLive:!0,consumerMarkedDirty:i=>{nc(i.lView)},lView:null};function OD(){return Object.create(lz)}function RD(){return oh??=OD(),oh}const fe={};function R(i){FD(Ie(),I(),vi()+i,!1)}function FD(i,t,e,n){if(!n)if(3==(3&t[pe])){const r=i.preOrderCheckHooks;null!==r&&wu(t,r,e)}else{const r=i.preOrderHooks;null!==r&&Cu(t,r,0,e)}Ur(e)}function _(i,t=Ae.Default){const e=I();return null===e?C(i,t):XC(Wt(),e,se(i),t)}function xa(){throw new Error("invalid")}function rh(i,t,e,n,o,r,s,a,l,c,d){const u=t.blueprint.slice();return u[mt]=o,u[pe]=140|n,(null!==c||i&&2048&i[pe])&&(u[pe]|=2048),kC(u),u[nt]=u[Ws]=i,u[bt]=e,u[Us]=s||i&&i[Us],u[de]=a||i&&i[de],u[Zo]=l||i&&i[Zo]||null,u[ei]=r,u[Fl]=function dH(){return cH++}(),u[ko]=d,u[eC]=c,u[vt]=2==t.type?i[vt]:u,u}function wa(i,t,e,n,o){let r=i.data[t];if(null===r)r=function E_(i,t,e,n,o){const r=TC(),s=bg(),l=i.data[t]=function gz(i,t,e,n,o,r){let s=t?t.injectorIndex:-1,a=0;return Ks()&&(a|=128),{type:e,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?r:r&&r.parent,e,t,n,o);return null===i.firstChild&&(i.firstChild=l),null!==r&&(s?null==r.child&&null!==l.parent&&(r.child=l):null===r.next&&(r.next=l,l.prev=r)),l}(i,t,e,n,o),function u3(){return re.lFrame.inI18n}()&&(r.flags|=32);else if(64&r.type){r.type=e,r.value=n,r.attrs=o;const s=function Vl(){const i=re.lFrame,t=i.currentTNode;return i.isParent?t:t.parent}();r.injectorIndex=null===s?-1:s.injectorIndex}return qn(r,!0),r}function oc(i,t,e,n){if(0===e)return-1;const o=t.length;for(let r=0;rke&&FD(i,t,ke,!1),Gn(a?2:0,o);const c=a?r:null,d=hg(c);try{null!==c&&(c.dirty=!1),e(n,o)}finally{fg(c,d)}}finally{a&&null===t[Pl]&&ID(t,Pl),Ur(s),Gn(a?3:1,o)}}function A_(i,t,e){if(cg(t)){const n=cn(null);try{const r=t.directiveEnd;for(let s=t.directiveStart;snull;function BD(i,t,e,n){for(let o in i)if(i.hasOwnProperty(o)){e=null===e?{}:e;const r=i[o];null===n?VD(e,t,o,r):n.hasOwnProperty(o)&&VD(e,t,n[o],r)}return e}function VD(i,t,e,n){i.hasOwnProperty(e)?i[e].push(t,n):i[e]=[t,n]}function Ui(i,t,e,n,o,r,s,a){const l=Ri(t,e);let d,c=t.inputs;!a&&null!=c&&(d=c[n])?(L_(i,e,d,n,o),jr(t)&&function vz(i,t){const e=zi(t,i);16&e[pe]||(e[pe]|=64)}(e,t.index)):3&t.type&&(n=function bz(i){return"class"===i?"className":"for"===i?"htmlFor":"formaction"===i?"formAction":"innerHtml"===i?"innerHTML":"readonly"===i?"readOnly":"tabindex"===i?"tabIndex":i}(n),o=null!=s?s(o,t.value||"",n):o,r.setProperty(l,n,o))}function R_(i,t,e,n){if(AC()){const o=null===n?null:{"":-1},r=function Dz(i,t){const e=i.directiveRegistry;let n=null,o=null;if(e)for(let r=0;r0;){const e=i[--t];if("number"==typeof e&&e<0)return e}return 0})(s)!=a&&s.push(a),s.push(e,n,r)}}(i,t,n,oc(i,e,o.hostVars,fe),o)}function Kn(i,t,e,n,o,r){const s=Ri(i,t);!function P_(i,t,e,n,o,r,s){if(null==r)i.removeAttribute(t,o,e);else{const a=null==s?ce(r):s(r,n||"",o);i.setAttribute(t,o,a,e)}}(t[de],s,r,i.value,e,n,o)}function Iz(i,t,e,n,o,r){const s=r[t];if(null!==s)for(let a=0;a{class i{constructor(){this.all=new Set,this.queue=new Map}create(e,n,o){const r=typeof Zone>"u"?null:Zone.current,s=function $V(i,t,e){const n=Object.create(UV);e&&(n.consumerAllowSignalWrites=!0),n.fn=i,n.schedule=t;const o=s=>{n.cleanupFn=s};return n.ref={notify:()=>lC(n),run:()=>{if(n.dirty=!1,n.hasRun&&!cC(n))return;n.hasRun=!0;const s=hg(n);try{n.cleanupFn(),n.cleanupFn=_C,n.fn(o)}finally{fg(n,s)}},cleanup:()=>n.cleanupFn()},n.ref}(e,c=>{this.all.has(c)&&this.queue.set(c,r)},o);let a;this.all.add(s),s.notify();const l=()=>{s.cleanup(),a?.(),this.all.delete(s),this.queue.delete(s)};return a=n?.onDestroy(l),{destroy:l}}flush(){if(0!==this.queue.size)for(const[e,n]of this.queue)this.queue.delete(e),n?n.run(()=>e.run()):e.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=B({token:i,providedIn:"root",factory:()=>new i})}return i})();function ah(i,t,e){let n=e?i.styles:null,o=e?i.classes:null,r=0;if(null!==t)for(let s=0;s0){QD(i,1);const o=e.components;null!==o&&e1(i,o,1)}}function e1(i,t,e){for(let n=0;n-1&&(Vu(t,n),Eu(e,n))}this._attachedToViewContainer=!1}Ug(this._lView[V],this._lView)}onDestroy(t){!function MC(i,t){if(256==(256&i[pe]))throw new D(911,!1);null===i[Qo]&&(i[Qo]=[]),i[Qo].push(t)}(this._lView,t)}markForCheck(){nc(this._cdRefInjectingView||this._lView)}detach(){this._lView[pe]&=-129}reattach(){this._lView[pe]|=128}detectChanges(){lh(this._lView[V],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new D(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function kH(i,t){Kl(i,t,t[de],2,null,null)}(this._lView[V],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new D(902,!1);this._appRef=t}}class Hz extends sc{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;lh(t[V],t,t[bt],!1)}checkNoChanges(){}get context(){return null}}class t1 extends ga{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Te(t);return new ac(e,this.ngModule)}}function n1(i){const t=[];for(let e in i)i.hasOwnProperty(e)&&t.push({propName:i[e],templateName:e});return t}class jz{constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,n){n=du(n);const o=this.injector.get(t,y_,n);return o!==y_||e===y_?o:this.parentInjector.get(t,e,n)}}class ac extends cD{get inputs(){const t=this.componentDef,e=t.inputTransforms,n=n1(t.inputs);if(null!==e)for(const o of n)e.hasOwnProperty(o.propName)&&(o.transform=e[o.propName]);return n}get outputs(){return n1(this.componentDef.outputs)}constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function kV(i){return i.map(CV).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}create(t,e,n,o){let r=(o=o||this.ngModule)instanceof Eo?o:o?.injector;r&&null!==this.componentDef.getStandaloneInjector&&(r=this.componentDef.getStandaloneInjector(r)||r);const s=r?new jz(t,r):t,a=s.get(ic,null);if(null===a)throw new D(407,!1);const u={rendererFactory:a,sanitizer:s.get(B4,null),effectManager:s.get(XD,null),afterRenderEventManager:s.get(M_,null)},h=a.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",m=n?function uz(i,t,e,n){const r=n.get(SD,!1)||e===ln.ShadowDom,s=i.selectRootElement(t,r);return function hz(i){LD(i)}(s),s}(h,n,this.componentDef.encapsulation,s):Bu(h,f,function zz(i){const t=i.toLowerCase();return"svg"===t?xC:"math"===t?"math":null}(f)),b=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let v=null;null!==m&&(v=__(m,s,!0));const x=O_(0,null,null,1,0,null,null,null,null,null,null),y=rh(null,x,null,b,null,null,u,h,s,null,v);let w,M;Cg(y);try{const F=this.componentDef;let K,Q=null;F.findHostDirectiveDefs?(K=[],Q=new Map,F.findHostDirectiveDefs(F,K,Q),K.push(F)):K=[F];const ie=function Uz(i,t){const e=i[V],n=ke;return i[n]=t,wa(e,n,2,"#host",null)}(y,m),Ve=function Wz(i,t,e,n,o,r,s){const a=o[V];!function Gz(i,t,e,n){for(const o of i)t.mergedAttrs=Al(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(ah(t,t.mergedAttrs,!0),null!==e&&Bk(n,e,t))}(n,i,t,s);let l=null;null!==t&&(l=__(t,o[Zo]));const c=r.rendererFactory.createRenderer(t,e);let d=16;e.signals?d=4096:e.onPush&&(d=64);const u=rh(o,ND(e),null,d,o[i.index],i,r,c,null,null,l);return a.firstCreatePass&&F_(a,i,n.length-1),sh(o,u),o[i.index]=u}(ie,m,F,K,y,u,h);M=CC(x,ke),m&&function Yz(i,t,e,n){if(n)ag(i,e,["ng-version",V4.full]);else{const{attrs:o,classes:r}=function DV(i){const t=[],e=[];let n=1,o=2;for(;n0&&Lk(i,e,r.join(" "))}}(h,F,m,n),void 0!==e&&function Xz(i,t,e){const n=i.projection=[];for(let o=0;o=0;n--){const o=i[n];o.hostVars=t+=o.hostVars,o.hostAttrs=Al(o.hostAttrs,e=Al(e,o.hostAttrs))}}(n)}function ch(i){return i===$n?{}:i===Fe?[]:i}function Qz(i,t){const e=i.viewQuery;i.viewQuery=e?(n,o)=>{t(n,o),e(n,o)}:t}function Jz(i,t){const e=i.contentQueries;i.contentQueries=e?(n,o,r)=>{t(n,o,r),e(n,o,r)}:t}function ej(i,t){const e=i.hostBindings;i.hostBindings=e?(n,o)=>{t(n,o),e(n,o)}:t}function dh(i){return!!V_(i)&&(Array.isArray(i)||!(i instanceof Map)&&Symbol.iterator in i)}function V_(i){return null!==i&&("function"==typeof i||"object"==typeof i)}function ni(i,t,e){return!Object.is(i[t],e)&&(i[t]=e,!0)}function Me(i,t,e,n){const o=I();return ni(o,Zs(),t)&&(Ie(),Kn(at(),o,i,t,e,n)),Me}function ka(i,t,e,n){return ni(i,Zs(),e)?t+ce(e)+n:fe}function U(i,t,e,n,o,r,s,a){const l=I(),c=Ie(),d=i+ke,u=c.firstCreatePass?function Sj(i,t,e,n,o,r,s,a,l){const c=t.consts,d=wa(t,i,4,s||null,er(c,a));R_(t,e,d,er(c,l)),xu(t,d);const u=d.tView=O_(2,d,n,o,r,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c,null);return null!==t.queries&&(t.queries.template(t,d),u.queries=t.queries.embeddedTView(d)),d}(d,c,l,t,e,n,o,r,s):c.data[d];qn(u,!1);const h=y1(c,l,u,i);yu()&&zu(c,l,h,u),ii(h,l),sh(l,l[d]=$D(h,l,h,u)),pu(u)&&T_(c,l,u),null!=s&&I_(l,u,a)}let y1=function x1(i,t,e,n){return tr(!0),t[de].createComment("")};function fn(i){return function Xs(i,t){return i[t]}(function d3(){return re.lFrame.contextLView}(),ke+i)}function T(i,t,e){const n=I();return ni(n,Zs(),t)&&Ui(Ie(),at(),n,i,t,n[de],e,!1),T}function W_(i,t,e,n,o){const s=o?"class":"style";L_(i,e,t.inputs[s],s,n)}function k(i,t,e,n){const o=I(),r=Ie(),s=ke+i,a=o[de],l=r.firstCreatePass?function Tj(i,t,e,n,o,r){const s=t.consts,l=wa(t,i,2,n,er(s,o));return R_(t,e,l,er(s,r)),null!==l.attrs&&ah(l,l.attrs,!1),null!==l.mergedAttrs&&ah(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(s,r,o,t,e,n):r.data[s],c=w1(r,o,l,a,t,i);o[s]=c;const d=pu(l);return qn(l,!0),Bk(a,c,l),32!=(32&l.flags)&&yu()&&zu(r,o,c,l),0===function i3(){return re.lFrame.elementDepthCount}()&&ii(c,o),function n3(){re.lFrame.elementDepthCount++}(),d&&(T_(r,o,l),A_(r,l,o)),null!==n&&I_(o,l),k}function S(){let i=Wt();bg()?vg():(i=i.parent,qn(i,!1));const t=i;(function r3(i){return re.skipHydrationRootTNode===i})(t)&&function c3(){re.skipHydrationRootTNode=null}(),function o3(){re.lFrame.elementDepthCount--}();const e=Ie();return e.firstCreatePass&&(xu(e,i),cg(i)&&e.queries.elementEnd(i)),null!=t.classesWithoutHost&&function w3(i){return 0!=(8&i.flags)}(t)&&W_(e,t,I(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function C3(i){return 0!=(16&i.flags)}(t)&&W_(e,t,I(),t.stylesWithoutHost,!1),S}function De(i,t,e,n){return k(i,t,e,n),S(),De}let w1=(i,t,e,n,o,r)=>(tr(!0),Bu(n,o,function HC(){return re.lFrame.currentNamespace}()));function Io(){return I()}function ph(i){return!!i&&"function"==typeof i.then}function D1(i){return!!i&&"function"==typeof i.subscribe}function $(i,t,e,n){const o=I(),r=Ie(),s=Wt();return function M1(i,t,e,n,o,r,s){const a=pu(n),c=i.firstCreatePass&&GD(i),d=t[bt],u=WD(t);let h=!0;if(3&n.type||s){const p=Ri(n,t),g=s?s(p):p,b=u.length,v=s?y=>s(Ge(y[n.index])):n.index;let x=null;if(!s&&a&&(x=function Nj(i,t,e,n){const o=i.cleanup;if(null!=o)for(let r=0;rl?a[l]:null}"string"==typeof s&&(r+=2)}return null}(i,t,o,n.index)),null!==x)(x.__ngLastListenerFn__||x).__ngNextListenerFn__=r,x.__ngLastListenerFn__=r,h=!1;else{r=A1(n,t,d,r,!1);const y=e.listen(g,o,r);u.push(r,y),c&&c.push(o,v,b,b+1)}}else r=A1(n,t,d,r,!1);const f=n.outputs;let m;if(h&&null!==f&&(m=f[o])){const p=m.length;if(p)for(let g=0;g-1?zi(i.index,t):t);let l=E1(t,e,n,s),c=r.__ngNextListenerFn__;for(;c;)l=E1(t,e,c,s)&&l,c=c.__ngNextListenerFn__;return o&&!1===l&&s.preventDefault(),l}}function ue(i=1){return function p3(i){return(re.lFrame.contextLView=function g3(i,t){for(;i>0;)t=t[Ws],i--;return t}(i,re.lFrame.contextLView))[bt]}(i)}function Lj(i,t){let e=null;const n=function vV(i){const t=i.attrs;if(null!=t){const e=t.indexOf(5);if(!(1&e))return t[e+1]}return null}(i);for(let o=0;o>17&32767}function X_(i){return 2|i}function Jr(i){return(131068&i)>>2}function K_(i,t){return-131069&i|t<<2}function Z_(i){return 1|i}function V1(i,t,e,n,o){const r=i[e+1],s=null===t;let a=n?nr(r):Jr(r),l=!1;for(;0!==a&&(!1===l||s);){const d=i[a+1];$j(i[a],t)&&(l=!0,i[a+1]=n?Z_(d):X_(d)),a=n?nr(d):Jr(d)}l&&(i[e+1]=n?X_(r):Z_(r))}function $j(i,t){return null===i||null==t||(Array.isArray(i)?i[1]:i)===t||!(!Array.isArray(i)||"string"!=typeof t)&&sa(i,t)>=0}const Rt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function H1(i){return i.substring(Rt.key,Rt.keyEnd)}function z1(i,t){const e=Rt.textEnd;return e===t?-1:(t=Rt.keyEnd=function qj(i,t,e){for(;t32;)t++;return t}(i,Rt.key=t,e),Oa(i,t,e))}function Oa(i,t,e){for(;t=0;e=z1(t,e))ji(i,H1(t),!0)}function Rn(i,t,e,n){const o=I(),r=Ie(),s=So(2);r.firstUpdatePass&&q1(r,i,s,n),t!==fe&&ni(o,s,t)&&X1(r,r.data[vi()],o,o[de],i,o[s+1]=function r5(i,t){return null==i||""===i||("string"==typeof t?i+=t:"object"==typeof i&&(i=Tt($i(i)))),i}(t,e),n,s)}function G1(i,t){return t>=i.expandoStartIndex}function q1(i,t,e,n){const o=i.data;if(null===o[e+1]){const r=o[vi()],s=G1(i,e);Z1(r,n)&&null===t&&!s&&(t=!1),t=function Qj(i,t,e,n){const o=function xg(i){const t=re.lFrame.currentDirectiveIndex;return-1===t?null:i[t]}(i);let r=n?t.residualClasses:t.residualStyles;if(null===o)0===(n?t.classBindings:t.styleBindings)&&(e=hc(e=Q_(null,i,t,e,n),t.attrs,n),r=null);else{const s=t.directiveStylingLast;if(-1===s||i[s]!==o)if(e=Q_(o,i,t,e,n),null===r){let l=function Jj(i,t,e){const n=e?t.classBindings:t.styleBindings;if(0!==Jr(n))return i[nr(n)]}(i,t,n);void 0!==l&&Array.isArray(l)&&(l=Q_(null,i,t,l[1],n),l=hc(l,t.attrs,n),function e5(i,t,e,n){i[nr(e?t.classBindings:t.styleBindings)]=n}(i,t,n,l))}else r=function t5(i,t,e){let n;const o=t.directiveEnd;for(let r=1+t.directiveStylingLast;r0)&&(c=!0)):d=e,o)if(0!==l){const h=nr(i[a+1]);i[n+1]=gh(h,a),0!==h&&(i[h+1]=K_(i[h+1],n)),i[a+1]=function Vj(i,t){return 131071&i|t<<17}(i[a+1],n)}else i[n+1]=gh(a,0),0!==a&&(i[a+1]=K_(i[a+1],n)),a=n;else i[n+1]=gh(l,0),0===a?a=n:i[l+1]=K_(i[l+1],n),l=n;c&&(i[n+1]=X_(i[n+1])),V1(i,d,n,!0),V1(i,d,n,!1),function jj(i,t,e,n,o){const r=o?i.residualClasses:i.residualStyles;null!=r&&"string"==typeof t&&sa(r,t)>=0&&(e[n+1]=Z_(e[n+1]))}(t,d,i,n,r),s=gh(a,l),r?t.classBindings=s:t.styleBindings=s}(o,r,t,e,s,n)}}function Q_(i,t,e,n,o){let r=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=i[o],c=Array.isArray(l),d=c?l[1]:l,u=null===d;let h=e[o+1];h===fe&&(h=u?Fe:void 0);let f=u?Rg(h,n):d===n?h:void 0;if(c&&!bh(f)&&(f=Rg(l,n)),bh(f)&&(a=f,s))return a;const m=i[o+1];o=s?nr(m):Jr(m)}if(null!==t){let l=r?t.residualClasses:t.residualStyles;null!=l&&(a=Rg(l,n))}return a}function bh(i){return void 0!==i}function Z1(i,t){return 0!=(i.flags&(t?8:16))}function he(i,t=""){const e=I(),n=Ie(),o=i+ke,r=n.firstCreatePass?wa(n,o,1,t,null):n.data[o],s=Q1(n,e,r,t,i);e[o]=s,yu()&&zu(n,e,s,r),qn(r,!1)}let Q1=(i,t,e,n,o)=>(tr(!0),function Lu(i,t){return i.createText(t)}(t[de],n));function es(i){return mn("",i,""),es}function mn(i,t,e){const n=I(),o=ka(n,i,t,e);return o!==fe&&function To(i,t,e){const n=bu(t,i);!function Dk(i,t,e){i.setValue(t,e)}(i[de],n,e)}(n,vi(),o),mn}function aS(i,t,e){!function Fn(i,t,e,n){const o=Ie(),r=So(2);o.firstUpdatePass&&q1(o,null,r,n);const s=I();if(e!==fe&&ni(s,r,e)){const a=o.data[vi()];if(Z1(a,n)&&!G1(o,r)){let l=n?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=qp(l,e||"")),W_(o,a,s,e,n)}else!function o5(i,t,e,n,o,r,s,a){o===fe&&(o=Fe);let l=0,c=0,d=0>20;if(Xr(i)||!i.multi){const f=new Hl(c,o,_),m=nb(l,t,o?d:d+h,u);-1===m?(Tg(Du(a,s),r,l),ib(r,i,t.length),t.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),e.push(f),s.push(f)):(e[m]=f,s[m]=f)}else{const f=nb(l,t,d+h,u),m=nb(l,t,d,d+h),g=m>=0&&e[m];if(o&&!g||!o&&!(f>=0&&e[f])){Tg(Du(a,s),r,l);const b=function D8(i,t,e,n,o){const r=new Hl(i,e,_);return r.multi=[],r.index=t,r.componentProviders=0,WS(r,o,n&&!e),r}(o?k8:C8,e.length,o,n,c);!o&&g&&(e[m].providerFactory=b),ib(r,i,t.length,0),t.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),e.push(b),s.push(b)}else ib(r,i,f>-1?f:m,WS(e[o?m:f],c,!o&&n));!o&&n&&g&&e[m].componentProviders++}}}function ib(i,t,e,n){const o=Xr(t),r=function p4(i){return!!i.useClass}(t);if(o||r){const l=(r?se(t.useClass):t).prototype.ngOnDestroy;if(l){const c=i.destroyHooks||(i.destroyHooks=[]);if(!o&&t.multi){const d=c.indexOf(e);-1===d?c.push(e,[n,l]):c[d+1].push(n,l)}else c.push(e,l)}}}function WS(i,t,e){return e&&i.componentProviders++,i.multi.push(t)-1}function nb(i,t,e,n){for(let o=e;o{e.providersResolver=(n,o)=>function w8(i,t,e){const n=Ie();if(n.firstCreatePass){const o=On(i);tb(e,n.data,n.blueprint,o,!0),tb(t,n.data,n.blueprint,o,!1)}}(n,o?o(i):i,t)}}class is{}class S8{}class rb extends is{constructor(t,e,n){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new t1(this);const o=function Hi(i,t){const e=i[Hw]||null;if(!e&&!0===t)throw new Error(`Type ${Tt(i)} does not have '\u0275mod' property.`);return e}(t);this._bootstrapComponents=function Ao(i){return i instanceof Function?i():i}(o.bootstrap),this._r3Injector=pD(t,e,[{provide:is,useValue:this},{provide:ga,useValue:this.componentFactoryResolver},...n],Tt(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class sb extends S8{constructor(t){super(),this.moduleType=t}create(t){return new rb(this.moduleType,t,[])}}class GS extends is{constructor(t){super(),this.componentFactoryResolver=new t1(this),this.instance=null;const e=new Zu([...t.providers,{provide:is,useValue:this},{provide:ga,useValue:this.componentFactoryResolver}],t.parent||Ku(),t.debugName,new Set(["environment"]));this.injector=e,t.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}let T8=(()=>{class i{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){const n=eD(0,e.type),o=n.length>0?function A8(i,t,e=null){return new GS({providers:i,parent:t,debugName:e,runEnvironmentInitializers:!0}).injector}([n],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,o)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=B({token:i,providedIn:"environment",factory:()=>new i(C(Eo))})}return i})();function Pn(i){i.getStandaloneInjector=t=>t.get(T8).getOrCreateStandaloneInjector(i)}function i6(){return this._results[Symbol.iterator]()}class ns{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new te)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=ns.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=i6)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const n=this;n.dirty=!1;const o=function dn(i){return i.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function L3(i,t,e){if(i.length!==t.length)return!1;for(let n=0;n0&&(e[o-1][In]=t),n{class i{static#e=this.__NG_ELEMENT_ID__=a6}return i})();const r6=Wi,s6=class extends r6{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,e){return this.createEmbeddedViewImpl(t,e)}createEmbeddedViewImpl(t,e,n){const o=function n6(i,t,e,n){const o=t.tView,a=rh(i,o,e,4096&i[pe]?4096:16,null,t,null,null,null,n?.injector??null,n?.hydrationInfo??null);a[Rl]=i[t.index];const c=i[Un];return null!==c&&(a[Un]=c.createEmbeddedView(o)),B_(o,a,e),a}(this._declarationLView,this._declarationTContainer,t,{injector:e,hydrationInfo:n});return new sc(o)}};function a6(){return Ch(Wt(),I())}function Ch(i,t){return 4&i.type?new s6(t,i,_a(i,t)):null}let wi=(()=>{class i{static#e=this.__NG_ELEMENT_ID__=f6}return i})();function f6(){return dM(Wt(),I())}const m6=wi,lM=class extends m6{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return _a(this._hostTNode,this._hostLView)}get injector(){return new yi(this._hostTNode,this._hostLView)}get parentInjector(){const t=Su(this._hostTNode,this._hostLView);if(Mg(t)){const e=jl(t,this._hostLView),n=zl(t);return new yi(e[V].data[n+8],e)}return new yi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=cM(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-$t}createEmbeddedView(t,e,n){let o,r;"number"==typeof n?o=n:null!=n&&(o=n.index,r=n.injector);const a=t.createEmbeddedViewImpl(e||{},r,null);return this.insertImpl(a,o,false),a}createComponent(t,e,n,o,r){const s=t&&!function Ul(i){return"function"==typeof i}(t);let a;if(s)a=e;else{const p=e||{};a=p.index,n=p.injector,o=p.projectableNodes,r=p.environmentInjector||p.ngModuleRef}const l=s?t:new ac(Te(t)),c=n||this.parentInjector;if(!r&&null==l.ngModule){const g=(s?c:this.parentInjector).get(Eo,null);g&&(r=g)}Te(l.componentType??{});const f=l.create(c,o,null,r);return this.insertImpl(f.hostView,a,false),f}insert(t,e){return this.insertImpl(t,e,!1)}insertImpl(t,e,n){const o=t._lView;if(function JV(i){return pi(i[nt])}(o)){const l=this.indexOf(t);if(-1!==l)this.detach(l);else{const c=o[nt],d=new lM(c,c[ei],c[nt]);d.detach(d.indexOf(t))}}const s=this._adjustIndex(e),a=this._lContainer;return o6(a,o,s,!n),t.attachToViewContainerRef(),tk(lb(a),s,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=cM(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),n=Vu(this._lContainer,e);n&&(Eu(lb(this._lContainer),e),Ug(n[V],n))}detach(t){const e=this._adjustIndex(t,-1),n=Vu(this._lContainer,e);return n&&null!=Eu(lb(this._lContainer),e)?new sc(n):null}_adjustIndex(t,e=0){return t??this.length+e}};function cM(i){return i[8]}function lb(i){return i[8]||(i[8]=[])}function dM(i,t){let e;const n=t[i.index];return pi(n)?e=n:(e=$D(n,t,null,i),t[i.index]=e,sh(t,e)),uM(e,t,i,n),new lM(e,i,t)}let uM=function hM(i,t,e,n){if(i[Wn])return;let o;o=8&e.type?Ge(n):function p6(i,t){const e=i[de],n=e.createComment(""),o=Ri(t,i);return qr(e,Hu(e,o),n,function IH(i,t){return i.nextSibling(t)}(e,o),!1),n}(t,e),i[Wn]=o};class cb{constructor(t){this.queryList=t,this.matches=null}clone(){return new cb(this.queryList)}setDirty(){this.queryList.setDirty()}}class db{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,o=[];for(let r=0;r0)n.push(s[a/2]);else{const c=r[a+1],d=t[-l];for(let u=$t;u{class i{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,n)=>{this.resolve=e,this.reject=n}),this.appInits=J(U6,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const o of this.appInits){const r=o();if(ph(r))e.push(r);else if(D1(r)){const s=new Promise((a,l)=>{r.subscribe({complete:a,error:l})});e.push(s)}}const n=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{n()}).catch(o=>{this.reject(o)}),0===e.length&&n(),this.initialized=!0}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();const eo=new A("LocaleId",{providedIn:"root",factory:()=>J(eo,Ae.Optional|Ae.SkipSelf)||function G6(){return typeof $localize<"u"&&$localize.locale||Fa}()});let X6=(()=>{class i{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Iw(!1)}add(){this.hasPendingTasks.next(!0);const e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();const BM=new A(""),Mh=new A("");let Cb,xb=(()=>{class i{constructor(e,n,o){this._ngZone=e,this.registry=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Cb||(function g$(i){Cb=i}(o),o.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:()=>{W.assertNotInAngularZone(),queueMicrotask(()=>{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())queueMicrotask(()=>{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,o){let r=-1;n&&n>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==r),e(this._didWork,this.getPendingTasks())},n)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:o})}whenStable(e,n,o){if(o&&!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,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,n,o){return[]}static#e=this.\u0275fac=function(n){return new(n||i)(C(W),C(wb),C(Mh))};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac})}return i})(),wb=(()=>{class i{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 Cb?.findTestabilityInTree(this,e,n)??null}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"platform"})}return i})(),rr=null;const VM=new A("AllowMultipleToken"),kb=new A("PlatformDestroyListeners"),HM=new A("appBootstrapListener");function $M(i,t,e=[]){const n=`Platform: ${t}`,o=new A(n);return(r=[])=>{let s=Db();if(!s||s.injector.get(VM,!1)){const a=[...e,...r,{provide:o,useValue:!0}];i?i(a):function v$(i){if(rr&&!rr.get(VM,!1))throw new D(400,!1);(function zM(){!function BV(i){fC=i}(()=>{throw new D(600,!1)})})(),rr=i;const t=i.get(WM);(function jM(i){i.get(rD,null)?.forEach(e=>e())})(i)}(function UM(i=[],t){return Vt.create({name:t,providers:[{provide:r_,useValue:"platform"},{provide:kb,useValue:new Set([()=>rr=null])},...i]})}(a,n))}return function x$(i){const t=Db();if(!t)throw new D(401,!1);return t}()}}function Db(){return rr?.get(WM)??null}let WM=(()=>{class i{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,n){const o=function w$(i="zone.js",t){return"noop"===i?new Z4:"zone.js"===i?new W(t):i}(n?.ngZone,function GM(i){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:i?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:i?.runCoalescing??!1}}({eventCoalescing:n?.ngZoneEventCoalescing,runCoalescing:n?.ngZoneRunCoalescing}));return o.run(()=>{const r=function E8(i,t,e){return new rb(i,t,e)}(e.moduleType,this.injector,function ZM(i){return[{provide:W,useFactory:i},{provide:qu,multi:!0,useFactory:()=>{const t=J(k$,{optional:!0});return()=>t.initialize()}},{provide:KM,useFactory:C$},{provide:yD,useFactory:xD}]}(()=>o)),s=r.injector.get(un,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:l=>{s.handleError(l)}});r.onDestroy(()=>{Eh(this._modules,r),a.unsubscribe()})}),function qM(i,t,e){try{const n=e();return ph(n)?n.catch(o=>{throw t.runOutsideAngular(()=>i.handleError(o)),o}):n}catch(n){throw t.runOutsideAngular(()=>i.handleError(n)),n}}(s,o,()=>{const a=r.injector.get(bb);return a.runInitializers(),a.donePromise.then(()=>(function xS(i){an(i,"Expected localeId to be defined"),"string"==typeof i&&(yS=i.toLowerCase().replace(/_/g,"-"))}(r.injector.get(eo,Fa)||Fa),this._moduleDoBootstrap(r),r))})})}bootstrapModule(e,n=[]){const o=YM({},n);return function _$(i,t,e){const n=new sb(e);return Promise.resolve(n)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,o))}_moduleDoBootstrap(e){const n=e.injector.get(os);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(o=>n.bootstrap(o));else{if(!e.instance.ngDoBootstrap)throw new D(-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 D(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());const e=this._injector.get(kb,null);e&&(e.forEach(n=>n()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(n){return new(n||i)(C(Vt))};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"platform"})}return i})();function YM(i,t){return Array.isArray(t)?t.reduce(YM,i):{...i,...t}}let os=(()=>{class i{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=J(KM),this.zoneIsStable=J(yD),this.componentTypes=[],this.components=[],this.isStable=J(X6).hasPendingTasks.pipe(Dl(e=>e?sn(!1):this.zoneIsStable),nu(),iu()),this._injector=J(Eo)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,n){const o=e instanceof cD;if(!this._injector.get(bb).done)throw!o&&function Tl(i){const t=Te(i)||jt(i)||mi(i);return null!==t&&t.standalone}(e),new D(405,!1);let s;s=o?e:this._injector.get(ga).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function b$(i){return i.isBoundToModule}(s)?void 0:this._injector.get(is),c=s.create(Vt.NULL,[],n||s.selector,a),d=c.location.nativeElement,u=c.injector.get(BM,null);return u?.registerApplication(d),c.onDestroy(()=>{this.detachView(c.hostView),Eh(this.components,c),u?.unregisterApplication(d)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new D(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this.internalErrorHandler(e)}finally{this._runningTick=!1}}attachView(e){const n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){const n=e;Eh(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const n=this._injector.get(HM,[]);n.push(...this._bootstrapListeners),n.forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Eh(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new D(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function Eh(i,t){const e=i.indexOf(t);e>-1&&i.splice(e,1)}const KM=new A("",{providedIn:"root",factory:()=>J(un).handleError.bind(void 0)});function C$(){const i=J(W),t=J(un);return e=>i.runOutsideAngular(()=>t.handleError(e))}let k$=(()=>{class i{constructor(){this.zone=J(W),this.applicationRef=J(os)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();let oi=(()=>{class i{static#e=this.__NG_ELEMENT_ID__=S$}return i})();function S$(i){return function M$(i,t,e){if(jr(i)&&!e){const n=zi(i.index,t);return new sc(n,n)}return 47&i.type?new sc(t[vt],t):null}(Wt(),I(),16==(16&i))}class tE{constructor(){}supports(t){return dh(t)}create(t){return new R$(t)}}const O$=(i,t)=>t;class R${constructor(t){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=t||O$}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,o=0,r=null;for(;e||n;){const s=!n||e&&e.currentIndex{s=this._trackByFn(o,a),null!==e&&Object.is(e.trackById,s)?(n&&(e=this._verifyReinsertion(e,a,s,o)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,o),n=!0),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,o){let r;return null===t?r=this._itTail:(r=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,r,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,o))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,r,o)):t=this._addAfter(new F$(e,n),r,o),t}_verifyReinsertion(t,e,n,o){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?t=this._reinsertAfter(r,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=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(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,r=t._nextRemoved;return null===o?this._removalsHead=r:o._nextRemoved=r,null===r?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const o=null===e?this._itHead:e._next;return t._next=o,t._prev=e,null===o?this._itTail=t:o._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new iE),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new iE),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class F${constructor(t,e){this.item=t,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 P${constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class iE{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new P$,this.map.set(e,n)),n.add(t)}get(t,e){const o=this.map.get(t);return o?o.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function nE(i,t,e){const n=i.previousIndex;if(null===n)return n;let o=0;return e&&n{if(e&&e.key===o)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(o,n);e=this._insertBeforeOrAppend(e,r)}}),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(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,e);const r=o._prev,s=o._next;return r&&(r._next=s),s&&(s._prev=r),o._next=null,o._prev=null,o}const n=new L$(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class L${constructor(t){this.key=t,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 rE(){return new Ih([new tE])}let Ih=(()=>{class i{static#e=this.\u0275prov=B({token:i,providedIn:"root",factory:rE});constructor(e){this.factories=e}static create(e,n){if(null!=n){const o=n.factories.slice();e=e.concat(o)}return new i(e)}static extend(e){return{provide:i,useFactory:n=>i.create(e,n||rE()),deps:[[i,new Tu,new aa]]}}find(e){const n=this.factories.find(o=>o.supports(e));if(null!=n)return n;throw new D(901,!1)}}return i})();function sE(){return new Cc([new oE])}let Cc=(()=>{class i{static#e=this.\u0275prov=B({token:i,providedIn:"root",factory:sE});constructor(e){this.factories=e}static create(e,n){if(n){const o=n.factories.slice();e=e.concat(o)}return new i(e)}static extend(e){return{provide:i,useFactory:n=>i.create(e,n||sE()),deps:[[i,new Tu,new aa]]}}find(e){const n=this.factories.find(o=>o.supports(e));if(n)return n;throw new D(901,!1)}}return i})();const H$=$M(null,"core",[]);let z$=(()=>{class i{constructor(e){}static#e=this.\u0275fac=function(n){return new(n||i)(C(os))};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({})}return i})();let Ob=null;function sr(){return Ob}class eU{}const ge=new A("DocumentToken");let pE=(()=>{class i{historyGo(e){throw new Error("Not implemented")}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=B({token:i,factory:function(){return J(tU)},providedIn:"platform"})}return i})(),tU=(()=>{class i extends pE{constructor(){super(),this._doc=J(ge),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return sr().getBaseHref(this._doc)}onPopState(e){const n=sr().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){const n=sr().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,o){this._history.pushState(e,n,o)}replaceState(e,n,o){this._history.replaceState(e,n,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=B({token:i,factory:function(){return new i},providedIn:"platform"})}return i})();function gE(i,t){if(0==i.length)return t;if(0==t.length)return i;let e=0;return i.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?i+t.substring(1):1==e?i+t:i+"/"+t}function _E(i){const t=i.match(/#|\?|$/),e=t&&t.index||i.length;return i.slice(0,e-("/"===i[e-1]?1:0))+i.slice(e)}function ss(i){return i&&"?"!==i[0]?"?"+i:i}let Rb=(()=>{class i{historyGo(e){throw new Error("Not implemented")}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=B({token:i,factory:function(){return J(nU)},providedIn:"root"})}return i})();const iU=new A("appBaseHref");let nU=(()=>{class i extends Rb{constructor(e,n){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??J(ge).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 gE(this._baseHref,e)}path(e=!1){const n=this._platformLocation.pathname+ss(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${n}${o}`:n}pushState(e,n,o,r){const s=this.prepareExternalUrl(o+ss(r));this._platformLocation.pushState(e,n,s)}replaceState(e,n,o,r){const s=this.prepareExternalUrl(o+ss(r));this._platformLocation.replaceState(e,n,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static#e=this.\u0275fac=function(n){return new(n||i)(C(pE),C(iU,8))};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Fb=(()=>{class i{constructor(e){this._subject=new te,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const n=this._locationStrategy.getBaseHref();this._basePath=function sU(i){if(new RegExp("^(https?:)?//").test(i)){const[,e]=i.split(/\/\/[^\/]+/);return e}return i}(_E(bE(n))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.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+ss(n))}normalize(e){return i.stripTrailingSlash(function rU(i,t){if(!i||!t.startsWith(i))return t;const e=t.substring(i.length);return""===e||["/",";","?","#"].includes(e[0])?e:t}(this._basePath,bE(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",o=null){this._locationStrategy.pushState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ss(n)),o)}replaceState(e,n="",o=null){this._locationStrategy.replaceState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ss(n)),o)}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(o=>o(e,n))}subscribe(e,n,o){return this._subject.subscribe({next:e,error:n,complete:o})}static#e=this.normalizeQueryParams=ss;static#t=this.joinWithSlash=gE;static#i=this.stripTrailingSlash=_E;static#n=this.\u0275fac=function(n){return new(n||i)(C(Rb))};static#o=this.\u0275prov=B({token:i,factory:function(){return function oU(){return new Fb(C(Rb))}()},providedIn:"root"})}return i})();function bE(i){return i.replace(/\/index.html$/,"")}const Ub=/\s+/,ME=[];let $h=(()=>{class i{constructor(e,n,o,r){this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=o,this._renderer=r,this.initialClasses=ME,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(Ub):ME}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(Ub):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,!!e[n]);this._applyStateDiff()}_updateState(e,n){const o=this.stateMap.get(e);void 0!==o?(o.enabled!==n&&(o.changed=!0,o.enabled=n),o.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const n=e[0],o=e[1];o.changed?(this._toggleClass(n,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),o.touched=!1}}_toggleClass(e,n){(e=e.trim()).length>0&&e.split(Ub).forEach(o=>{n?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static#e=this.\u0275fac=function(n){return new(n||i)(_(Ih),_(Cc),_(ee),_(Zr))};static#t=this.\u0275dir=O({type:i,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return i})();class GU{constructor(t,e,n,o){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=o}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 as=(()=>{class i{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,n,o){this._viewContainer=e,this._template=n,this._differs=o,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((o,r,s)=>{if(null==o.previousIndex)n.createEmbeddedView(this._template,new GU(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)n.remove(null===r?void 0:r);else if(null!==r){const a=n.get(r);n.move(a,s),AE(a,o)}});for(let o=0,r=n.length;o{AE(n.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,n){return!0}static#e=this.\u0275fac=function(n){return new(n||i)(_(wi),_(Wi),_(Ih))};static#t=this.\u0275dir=O({type:i,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return i})();function AE(i,t){i.context.$implicit=t.item}let ar=(()=>{class i{constructor(e,n){this._viewContainer=e,this._context=new qU,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){TE("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){TE("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}static#e=this.\u0275fac=function(n){return new(n||i)(_(wi),_(Wi))};static#t=this.\u0275dir=O({type:i,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return i})();class qU{constructor(){this.$implicit=null,this.ngIf=null}}function TE(i,t){if(t&&!t.createEmbeddedView)throw new Error(`${i} must be a TemplateRef, but received '${Tt(t)}'.`)}class Wb{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let Ba=(()=>{class i{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)}}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275dir=O({type:i,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return i})(),Uh=(()=>{class i{constructor(e,n,o){this.ngSwitch=o,o._addCase(),this._view=new Wb(e,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(n){return new(n||i)(_(wi),_(Wi),_(Ba,9))};static#t=this.\u0275dir=O({type:i,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return i})(),IE=(()=>{class i{constructor(e,n,o){o._addDefault(new Wb(e,n))}static#e=this.\u0275fac=function(n){return new(n||i)(_(wi),_(Wi),_(Ba,9))};static#t=this.\u0275dir=O({type:i,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return i})(),Gb=(()=>{class i{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:o,ngTemplateOutletContext:r,ngTemplateOutletInjector:s}=this;this._viewRef=n.createEmbeddedView(o,r,s?{injector:s}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}static#e=this.\u0275fac=function(n){return new(n||i)(_(wi))};static#t=this.\u0275dir=O({type:i,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[ti]})}return i})(),Fo=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({})}return i})();const FE="browser";function PE(i){return"server"===i}class GW extends eU{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Zb extends GW{static makeCurrent(){!function J$(i){Ob||(Ob=i)}(new Zb)}onAndCancel(t,e,n){return t.addEventListener(e,n),()=>{t.removeEventListener(e,n)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function qW(){return Mc=Mc||document.querySelector("base"),Mc?Mc.getAttribute("href"):null}();return null==e?null:function YW(i){qh=qh||document.createElement("a"),qh.setAttribute("href",i);const t=qh.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){Mc=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function UU(i,t){t=encodeURIComponent(t);for(const e of i.split(";")){const n=e.indexOf("="),[o,r]=-1==n?[e,""]:[e.slice(0,n),e.slice(n+1)];if(o.trim()===t)return decodeURIComponent(r)}return null}(document.cookie,t)}}let qh,Mc=null,KW=(()=>{class i{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac})}return i})();const Qb=new A("EventManagerPlugins");let HE=(()=>{class i{constructor(e,n){this._zone=n,this._eventNameToPlugin=new Map,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,n,o){return this._findPluginFor(n).addEventListener(e,n,o)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(r=>r.supports(e)),!n)throw new D(5101,!1);return this._eventNameToPlugin.set(e,n),n}static#e=this.\u0275fac=function(n){return new(n||i)(C(Qb),C(W))};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac})}return i})();class zE{constructor(t){this._doc=t}}const Jb="ng-app-id";let jE=(()=>{class i{constructor(e,n,o,r={}){this.doc=e,this.appId=n,this.nonce=o,this.platformId=r,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=PE(r),this.resetHostNodes()}addStyles(e){for(const n of e)1===this.changeUsageCount(n,1)&&this.onStyleAdded(n)}removeStyles(e){for(const n of e)this.changeUsageCount(n,-1)<=0&&this.onStyleRemoved(n)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(n=>n.remove()),e.clear());for(const n of this.getAllStyles())this.onStyleRemoved(n);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const n of this.getAllStyles())this.addStyleToHost(e,n)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const n of this.hostNodes)this.addStyleToHost(n,e)}onStyleRemoved(e){const n=this.styleRef;n.get(e)?.elements?.forEach(o=>o.remove()),n.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${Jb}="${this.appId}"]`);if(e?.length){const n=new Map;return e.forEach(o=>{null!=o.textContent&&n.set(o.textContent,o)}),n}return null}changeUsageCount(e,n){const o=this.styleRef;if(o.has(e)){const r=o.get(e);return r.usage+=n,r.usage}return o.set(e,{usage:n,elements:[]}),n}getStyleElement(e,n){const o=this.styleNodesInDOM,r=o?.get(n);if(r?.parentNode===e)return o.delete(n),r.removeAttribute(Jb),r;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=n,this.platformIsServer&&s.setAttribute(Jb,this.appId),s}}addStyleToHost(e,n){const o=this.getStyleElement(e,n);e.appendChild(o);const r=this.styleRef,s=r.get(n)?.elements;s?s.push(o):r.set(n,{elements:[o],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}static#e=this.\u0275fac=function(n){return new(n||i)(C(ge),C(Jl),C(c_,8),C(Kr))};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac})}return i})();const ev={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/"},tv=/%COMP%/g,eG=new A("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function UE(i,t){return t.map(e=>e.replace(tv,i))}let iv=(()=>{class i{constructor(e,n,o,r,s,a,l,c=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=o,this.removeStylesOnCompDestroy=r,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=PE(a),this.defaultRenderer=new nv(e,s,l,this.platformIsServer)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===ln.ShadowDom&&(n={...n,encapsulation:ln.Emulated});const o=this.getOrCreateRenderer(e,n);return o instanceof GE?o.applyToHost(e):o instanceof ov&&o.applyStyles(),o}getOrCreateRenderer(e,n){const o=this.rendererByCompId;let r=o.get(n.id);if(!r){const s=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,u=this.platformIsServer;switch(n.encapsulation){case ln.Emulated:r=new GE(l,c,n,this.appId,d,s,a,u);break;case ln.ShadowDom:return new oG(l,c,e,n,s,a,this.nonce,u);default:r=new ov(l,c,n,d,s,a,u)}o.set(n.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(n){return new(n||i)(C(HE),C(jE),C(Jl),C(eG),C(ge),C(Kr),C(W),C(c_))};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac})}return i})();class nv{constructor(t,e,n,o){this.eventManager=t,this.doc=e,this.ngZone=n,this.platformIsServer=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?this.doc.createElementNS(ev[e]||e,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,e){(WE(t)?t.content:t).appendChild(e)}insertBefore(t,e,n){t&&(WE(t)?t.content:t).insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?this.doc.querySelector(t):t;if(!n)throw new D(-5104,!1);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,o){if(o){e=o+":"+e;const r=ev[o];r?t.setAttributeNS(r,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const o=ev[n];o?t.removeAttributeNS(o,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,o){o&(ir.DashCase|ir.Important)?t.style.setProperty(e,n,o&ir.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&ir.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){if("string"==typeof t&&!(t=sr().getGlobalEventTarget(this.doc,t)))throw new Error(`Unsupported event target ${t} for event ${e}`);return this.eventManager.addEventListener(t,e,this.decoratePreventDefault(n))}decoratePreventDefault(t){return e=>{if("__ngUnwrap__"===e)return t;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>t(e)):t(e))&&e.preventDefault()}}}function WE(i){return"TEMPLATE"===i.tagName&&void 0!==i.content}class oG extends nv{constructor(t,e,n,o,r,s,a,l){super(t,r,s,l),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=UE(o.id,o.styles);for(const d of c){const u=document.createElement("style");a&&u.setAttribute("nonce",a),u.textContent=d,this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class ov extends nv{constructor(t,e,n,o,r,s,a,l){super(t,r,s,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o,this.styles=l?UE(l,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class GE extends ov{constructor(t,e,n,o,r,s,a,l){const c=o+"-"+n.id;super(t,e,n,r,s,a,l,c),this.contentAttr=function tG(i){return"_ngcontent-%COMP%".replace(tv,i)}(c),this.hostAttr=function iG(i){return"_nghost-%COMP%".replace(tv,i)}(c)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}let rG=(()=>{class i extends zE{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,o){return e.addEventListener(n,o,!1),()=>this.removeEventListener(e,n,o)}removeEventListener(e,n,o){return e.removeEventListener(n,o)}static#e=this.\u0275fac=function(n){return new(n||i)(C(ge))};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac})}return i})();const qE=["alt","control","meta","shift"],sG={"\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"},aG={alt:i=>i.altKey,control:i=>i.ctrlKey,meta:i=>i.metaKey,shift:i=>i.shiftKey};let lG=(()=>{class i extends zE{constructor(e){super(e)}supports(e){return null!=i.parseEventName(e)}addEventListener(e,n,o){const r=i.parseEventName(n),s=i.eventCallback(r.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>sr().onAndCancel(e,r.domEventName,s))}static parseEventName(e){const n=e.toLowerCase().split("."),o=n.shift();if(0===n.length||"keydown"!==o&&"keyup"!==o)return null;const r=i._normalizeKey(n.pop());let s="",a=n.indexOf("code");if(a>-1&&(n.splice(a,1),s="code."),qE.forEach(c=>{const d=n.indexOf(c);d>-1&&(n.splice(d,1),s+=c+".")}),s+=r,0!=n.length||0===r.length)return null;const l={};return l.domEventName=o,l.fullKey=s,l}static matchEventFullKeyCode(e,n){let o=sG[e.key]||e.key,r="";return n.indexOf("code.")>-1&&(o=e.code,r="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),qE.forEach(s=>{s!==o&&(0,aG[s])(e)&&(r+=s+".")}),r+=o,r===n)}static eventCallback(e,n,o){return r=>{i.matchEventFullKeyCode(r,e)&&o.runGuarded(()=>n(r))}}static _normalizeKey(e){return"esc"===e?"escape":e}static#e=this.\u0275fac=function(n){return new(n||i)(C(ge))};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac})}return i})();const hG=$M(H$,"browser",[{provide:Kr,useValue:FE},{provide:rD,useValue:function cG(){Zb.makeCurrent()},multi:!0},{provide:ge,useFactory:function uG(){return function VH(i){Zg=i}(document),document},deps:[]}]),fG=new A(""),KE=[{provide:Mh,useClass:class XW{addToWindow(t){We.getAngularTestability=(n,o=!0)=>{const r=t.findTestabilityInTree(n,o);if(null==r)throw new D(5103,!1);return r},We.getAllAngularTestabilities=()=>t.getAllTestabilities(),We.getAllAngularRootElements=()=>t.getAllRootElements(),We.frameworkStabilizers||(We.frameworkStabilizers=[]),We.frameworkStabilizers.push(n=>{const o=We.getAllAngularTestabilities();let r=o.length,s=!1;const a=function(l){s=s||l,r--,0==r&&n(s)};o.forEach(l=>{l.whenStable(a)})})}findTestabilityInTree(t,e,n){return null==e?null:t.getTestability(e)??(n?sr().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null)}},deps:[]},{provide:BM,useClass:xb,deps:[W,wb,Mh]},{provide:xb,useClass:xb,deps:[W,wb,Mh]}],ZE=[{provide:r_,useValue:"root"},{provide:un,useFactory:function dG(){return new un},deps:[]},{provide:Qb,useClass:rG,multi:!0,deps:[ge,W,Kr]},{provide:Qb,useClass:lG,multi:!0,deps:[ge]},iv,jE,HE,{provide:ic,useExisting:iv},{provide:class CW{},useClass:KW,deps:[]},[]];let QE=(()=>{class i{constructor(e){}static withServerTransition(e){return{ngModule:i,providers:[{provide:Jl,useValue:e.appId}]}}static#e=this.\u0275fac=function(n){return new(n||i)(C(fG,12))};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({providers:[...ZE,...KE],imports:[Fo,z$]})}return i})();typeof window<"u"&&window;let av,sv=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=B({token:i,factory:function(n){let o=null;return o=n?new(n||i):C(tA),o},providedIn:"root"})}return i})(),tA=(()=>{class i extends sv{constructor(e){super(),this._doc=e}sanitize(e,n){if(null==n)return null;switch(e){case Gt.NONE:return n;case Gt.HTML:return Xn(n,"HTML")?$i(n):Yk(this._doc,String(n)).toString();case Gt.STYLE:return Xn(n,"Style")?$i(n):n;case Gt.SCRIPT:if(Xn(n,"Script"))return $i(n);throw new D(5200,!1);case Gt.URL:return Xn(n,"URL")?$i(n):Wu(String(n));case Gt.RESOURCE_URL:if(Xn(n,"ResourceURL"))return $i(n);throw new D(5201,!1);default:throw new D(5202,!1)}}bypassSecurityTrustHtml(e){return function GH(i){return new HH(i)}(e)}bypassSecurityTrustStyle(e){return function qH(i){return new zH(i)}(e)}bypassSecurityTrustScript(e){return function YH(i){return new jH(i)}(e)}bypassSecurityTrustUrl(e){return function XH(i){return new $H(i)}(e)}bypassSecurityTrustResourceUrl(e){return function KH(i){return new UH(i)}(e)}static#e=this.\u0275fac=function(n){return new(n||i)(C(ge))};static#t=this.\u0275prov=B({token:i,factory:function(n){let o=null;return o=n?new n:function vG(i){return new tA(i.get(ge))}(C(Vt)),o},providedIn:"root"})}return i})();try{av=typeof Intl<"u"&&Intl.v8BreakIterator}catch{av=!1}let Va,dt=(()=>{class i{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function xW(i){return i===FE}(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&&!av)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static#e=this.\u0275fac=function(n){return new(n||i)(C(Kr))};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();const nA=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function oA(){if(Va)return Va;if("object"!=typeof document||!document)return Va=new Set(nA),Va;let i=document.createElement("input");return Va=new Set(nA.filter(t=>(i.setAttribute("type",t),i.type===t))),Va}let Ec,cs,lv;function ls(i){return function yG(){if(null==Ec&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ec=!0}))}finally{Ec=Ec||!1}return Ec}()?i:!!i.capture}function xG(){if(null==cs){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return cs=!1,cs;if("scrollBehavior"in document.documentElement.style)cs=!0;else{const i=Element.prototype.scrollTo;cs=!!i&&!/\{\s*\[native code\]\s*\}/.test(i.toString())}}return cs}function Xh(){let i=typeof document<"u"&&document?document.activeElement:null;for(;i&&i.shadowRoot;){const t=i.shadowRoot.activeElement;if(t===i)break;i=t}return i}function cr(i){return i.composedPath?i.composedPath()[0]:i.target}function cv(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Bn(i,...t){return t.length?t.some(e=>i[e]):i.altKey||i.shiftKey||i.ctrlKey||i.metaKey}function ef(i,t,e){const n=Re(i)||t||e?{next:i,error:t,complete:e}:i;return n?Lt((o,r)=>{var s;null===(s=n.subscribe)||void 0===s||s.call(n);let a=!0;o.subscribe(At(r,l=>{var c;null===(c=n.next)||void 0===c||c.call(n,l),r.next(l)},()=>{var l;a=!1,null===(l=n.complete)||void 0===l||l.call(n),r.complete()},l=>{var c;a=!1,null===(c=n.error)||void 0===c||c.call(n,l),r.error(l)},()=>{var l,c;a&&(null===(l=n.unsubscribe)||void 0===l||l.call(n)),null===(c=n.finalize)||void 0===c||c.call(n)}))}):Vs}class LG extends je{constructor(t,e){super()}schedule(t,e=0){return this}}const tf={setInterval(i,t,...e){const{delegate:n}=tf;return n?.setInterval?n.setInterval(i,t,...e):setInterval(i,t,...e)},clearInterval(i){const{delegate:t}=tf;return(t?.clearInterval||clearInterval)(i)},delegate:void 0};class uv extends LG{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){var n;if(this.closed)return this;this.state=t;const o=this.id,r=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(r,o,e)),this.pending=!0,this.delay=e,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,n=0){return tf.setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!=n&&this.delay===n&&!1===this.pending)return e;null!=e&&tf.clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let o,n=!1;try{this.work(t)}catch(r){n=!0,o=r||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:t,scheduler:e}=this,{actions:n}=e;this.work=this.state=this.scheduler=null,this.pending=!1,Bs(n,this),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null,super.unsubscribe()}}}const hv={now:()=>(hv.delegate||Date).now(),delegate:void 0};class Tc{constructor(t,e=Tc.now){this.schedulerActionCtor=t,this.now=e}schedule(t,e=0,n){return new this.schedulerActionCtor(this,t).schedule(n,e)}}Tc.now=hv.now;class fv extends Tc{constructor(t,e=Tc.now){super(t,e),this.actions=[],this._active=!1}flush(t){const{actions:e}=this;if(this._active)return void e.push(t);let n;this._active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}const nf=new fv(uv),BG=nf;function mv(i,t=nf){return Lt((e,n)=>{let o=null,r=null,s=null;const a=()=>{if(o){o.unsubscribe(),o=null;const c=r;r=null,n.next(c)}};function l(){const c=s+i,d=t.now();if(d{r=c,s=t.now(),o||(o=t.schedule(l,i),n.add(o))},()=>{a(),n.complete()},void 0,()=>{r=o=null}))})}function kt(i,t){return Lt((e,n)=>{let o=0;e.subscribe(At(n,r=>i.call(t,r,o++)&&n.next(r)))})}function ri(i){return i<=0?()=>Cl:Lt((t,e)=>{let n=0;t.subscribe(At(e,o=>{++n<=i&&(e.next(o),i<=n&&e.complete())}))})}function rA(i){return kt((t,e)=>i<=e)}function Xe(i){return Lt((t,e)=>{Jt(i).subscribe(At(e,()=>e.complete(),Jd)),!e.closed&&t.subscribe(e)})}function me(i){return null!=i&&"false"!=`${i}`}function dr(i,t=0){return function VG(i){return!isNaN(parseFloat(i))&&!isNaN(Number(i))}(i)?Number(i):t}function rf(i){return Array.isArray(i)?i:[i]}function Dt(i){return null==i?"":"string"==typeof i?i:`${i}px`}function Po(i){return i instanceof ee?i.nativeElement:i}let sA=(()=>{class i{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),HG=(()=>{class i{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,n)=>this._cleanupObserver(n))}observe(e){const n=Po(e);return new it(o=>{const s=this._observeElement(n).subscribe(o);return()=>{s.unsubscribe(),this._unobserveElement(n)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const n=new ne,o=this._mutationObserverFactory.create(r=>n.next(r));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,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:o}=this._observedElements.get(e);n&&n.disconnect(),o.complete(),this._observedElements.delete(e)}}static#e=this.\u0275fac=function(n){return new(n||i)(C(sA))};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),aA=(()=>{class i{get disabled(){return this._disabled}set disabled(e){this._disabled=me(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=dr(e),this._subscribe()}constructor(e,n,o){this._contentObserver=e,this._elementRef=n,this._ngZone=o,this.event=new te,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(mv(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}static#e=this.\u0275fac=function(n){return new(n||i)(_(HG),_(ee),_(W))};static#t=this.\u0275dir=O({type:i,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return i})(),pv=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({providers:[sA]})}return i})();const{isArray:zG}=Array,{getPrototypeOf:jG,prototype:$G,keys:UG}=Object;function lA(i){if(1===i.length){const t=i[0];if(zG(t))return{args:t,keys:null};if(function WG(i){return i&&"object"==typeof i&&jG(i)===$G}(t)){const e=UG(t);return{args:e.map(n=>t[n]),keys:e}}}return{args:i,keys:null}}const{isArray:GG}=Array;function gv(i){return Bt(t=>function qG(i,t){return GG(t)?i(...t):i(t)}(i,t))}function cA(i,t){return i.reduce((e,n,o)=>(e[n]=t[o],e),{})}function dA(i,t,e){i?xo(e,i,t):t()}function sf(...i){return function KG(){return Dw(1)}()(zs(i,kl(i)))}function to(...i){const t=kl(i);return Lt((e,n)=>{(t?sf(i,e,t):sf(i,e)).subscribe(n)})}const uA=new Set;let ds,ZG=(()=>{class i{constructor(e,n){this._platform=e,this._nonce=n,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):JG}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function QG(i,t){if(!uA.has(i))try{ds||(ds=document.createElement("style"),t&&(ds.nonce=t),ds.setAttribute("type","text/css"),document.head.appendChild(ds)),ds.sheet&&(ds.sheet.insertRule(`@media ${i} {body{ }}`,0),uA.add(i))}catch(e){console.error(e)}}(e,this._nonce),this._matchMedia(e)}static#e=this.\u0275fac=function(n){return new(n||i)(C(dt),C(c_,8))};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function JG(i){return{matches:"all"===i||""===i,media:i,addListener:()=>{},removeListener:()=>{}}}let e9=(()=>{class i{constructor(e,n){this._mediaMatcher=e,this._zone=n,this._queries=new Map,this._destroySubject=new ne}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return hA(rf(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let r=function YG(...i){const t=kl(i),e=Mw(i),{args:n,keys:o}=lA(i);if(0===n.length)return zs([],t);const r=new it(function XG(i,t,e=Vs){return n=>{dA(t,()=>{const{length:o}=i,r=new Array(o);let s=o,a=o;for(let l=0;l{const c=zs(i[l],t);let d=!1;c.subscribe(At(n,u=>{r[l]=u,d||(d=!0,a--),a||n.next(e(r.slice()))},()=>{--s||n.complete()}))},n)},n)}}(n,t,o?s=>cA(o,s):Vs));return e?r.pipe(gv(e)):r}(hA(rf(e)).map(s=>this._registerQuery(s).observable));return r=sf(r.pipe(ri(1)),r.pipe(rA(1),mv(0))),r.pipe(Bt(s=>{const a={matches:!1,breakpoints:{}};return s.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const n=this._mediaMatcher.matchMedia(e),r={observable:new it(s=>{const a=l=>this._zone.run(()=>s.next(l));return n.addListener(a),()=>{n.removeListener(a)}}).pipe(to(n),Bt(({matches:s})=>({query:e,matches:s})),Xe(this._destroySubject)),mql:n};return this._queries.set(e,r),r}static#e=this.\u0275fac=function(n){return new(n||i)(C(ZG),C(W))};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function hA(i){return i.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}function mA(i,t,e){const n=af(i,t);n.some(o=>o.trim()==e.trim())||(n.push(e.trim()),i.setAttribute(t,n.join(" ")))}function _v(i,t,e){const o=af(i,t).filter(r=>r!=e.trim());o.length?i.setAttribute(t,o.join(" ")):i.removeAttribute(t)}function af(i,t){return(i.getAttribute(t)||"").match(/\S+/g)||[]}const pA="cdk-describedby-message",lf="cdk-describedby-host";let bv=0,t9=(()=>{class i{constructor(e,n){this._platform=n,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+bv++,this._document=e,this._id=J(Jl)+"-"+bv++}describe(e,n,o){if(!this._canBeDescribed(e,n))return;const r=vv(n,o);"string"!=typeof n?(gA(n,this._id),this._messageRegistry.set(r,{messageElement:n,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(n,o),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,n,o){if(!n||!this._isElementNode(e))return;const r=vv(n,o);if(this._isElementDescribedByMessage(e,r)&&this._removeMessageReference(e,r),"string"==typeof n){const s=this._messageRegistry.get(r);s&&0===s.referenceCount&&this._deleteMessageElement(r)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${lf}="${this._id}"]`);for(let n=0;n0!=o.indexOf(pA));e.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(e,n){const o=this._messageRegistry.get(n);mA(e,"aria-describedby",o.messageElement.id),e.setAttribute(lf,this._id),o.referenceCount++}_removeMessageReference(e,n){const o=this._messageRegistry.get(n);o.referenceCount--,_v(e,"aria-describedby",o.messageElement.id),e.removeAttribute(lf)}_isElementDescribedByMessage(e,n){const o=af(e,"aria-describedby"),r=this._messageRegistry.get(n),s=r&&r.messageElement.id;return!!s&&-1!=o.indexOf(s)}_canBeDescribed(e,n){if(!this._isElementNode(e))return!1;if(n&&"object"==typeof n)return!0;const o=null==n?"":`${n}`.trim(),r=e.getAttribute("aria-label");return!(!o||r&&r.trim()===o)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static#e=this.\u0275fac=function(n){return new(n||i)(C(ge),C(dt))};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function vv(i,t){return"string"==typeof i?`${t||""}/${i}`:i}function gA(i,t){i.id||(i.id=`${pA}-${t}-${bv++}`)}class _A{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new ne,this._typeaheadSubscription=je.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 ne,this.change=new ne,t instanceof ns&&(this._itemChangesSubscription=t.changes.subscribe(e=>{if(this._activeItem){const o=e.toArray().indexOf(this._activeItem);o>-1&&o!==this._activeItemIndex&&(this._activeItemIndex=o)}}))}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(ef(e=>this._pressedLetters.push(e)),mv(t),kt(()=>this._pressedLetters.length>0),Bt(()=>this._pressedLetters.join(""))).subscribe(e=>{const n=this._getItemsArray();for(let o=1;o!t[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&o){this.setNextItemActive();break}return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&o){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&o){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&o){const r=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&o){const r=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(r=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.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(t){const e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t);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(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const o=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[o]))return void this.setActiveItem(o)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof ns?this._items.toArray():this._items}}class i9 extends _A{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class yv extends _A{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let cf=(()=>{class i{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function o9(i){return!!(i.offsetWidth||i.offsetHeight||"function"==typeof i.getClientRects&&i.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const n=function n9(i){try{return i.frameElement}catch{return null}}(function h9(i){return i.ownerDocument&&i.ownerDocument.defaultView||window}(e));if(n&&(-1===vA(n)||!this.isVisible(n)))return!1;let o=e.nodeName.toLowerCase(),r=vA(e);return e.hasAttribute("contenteditable")?-1!==r:!("iframe"===o||"object"===o||this._platform.WEBKIT&&this._platform.IOS&&!function d9(i){let t=i.nodeName.toLowerCase(),e="input"===t&&i.type;return"text"===e||"password"===e||"select"===t||"textarea"===t}(e))&&("audio"===o?!!e.hasAttribute("controls")&&-1!==r:"video"===o?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,n){return function u9(i){return!function s9(i){return function l9(i){return"input"==i.nodeName.toLowerCase()}(i)&&"hidden"==i.type}(i)&&(function r9(i){let t=i.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(i)||function a9(i){return function c9(i){return"a"==i.nodeName.toLowerCase()}(i)&&i.hasAttribute("href")}(i)||i.hasAttribute("contenteditable")||bA(i))}(e)&&!this.isDisabled(e)&&(n?.ignoreVisibility||this.isVisible(e))}static#e=this.\u0275fac=function(n){return new(n||i)(C(dt))};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function bA(i){if(!i.hasAttribute("tabindex")||void 0===i.tabIndex)return!1;let t=i.getAttribute("tabindex");return!(!t||isNaN(parseInt(t,10)))}function vA(i){if(!bA(i))return null;const t=parseInt(i.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class f9{get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}constructor(t,e,n,o,r=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.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(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){const e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(t){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const n=this._getFirstTabbableElement(e);return n?.focus(t),!!n}return e.focus(t),!0}return this.focusFirstTabbableElement(t)}focusFirstTabbableElement(t){const e=this._getRegionBoundary("start");return e&&e.focus(t),!!e}focusLastTabbableElement(t){const e=this._getRegionBoundary("end");return e&&e.focus(t),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;const e=t.children;for(let n=0;n=0;n--){const o=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(o)return o}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(ri(1)).subscribe(t)}}let xv=(()=>{class i{constructor(e,n,o){this._checker=e,this._ngZone=n,this._document=o}create(e,n=!1){return new f9(e,this._checker,this._ngZone,this._document,n)}static#e=this.\u0275fac=function(n){return new(n||i)(C(cf),C(W),C(ge))};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function wv(i){return 0===i.buttons||0===i.offsetX&&0===i.offsetY}function Cv(i){const t=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}const m9=new A("cdk-input-modality-detector-options"),p9={ignoreKeys:[18,17,224,91,16]},ja=ls({passive:!0,capture:!0});let g9=(()=>{class i{get mostRecentModality(){return this._modality.value}constructor(e,n,o,r){this._platform=e,this._mostRecentTarget=null,this._modality=new Iw(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(a=>a===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=cr(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(wv(s)?"keyboard":"mouse"),this._mostRecentTarget=cr(s))},this._onTouchstart=s=>{Cv(s)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=cr(s))},this._options={...p9,...r},this.modalityDetected=this._modality.pipe(rA(1)),this.modalityChanged=this.modalityDetected.pipe(nu()),e.isBrowser&&n.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,ja),o.addEventListener("mousedown",this._onMousedown,ja),o.addEventListener("touchstart",this._onTouchstart,ja)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ja),document.removeEventListener("mousedown",this._onMousedown,ja),document.removeEventListener("touchstart",this._onTouchstart,ja))}static#e=this.\u0275fac=function(n){return new(n||i)(C(dt),C(W),C(ge),C(m9,8))};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();const _9=new A("liveAnnouncerElement",{providedIn:"root",factory:function b9(){return null}}),v9=new A("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let y9=0,x9=(()=>{class i{constructor(e,n,o,r){this._ngZone=n,this._defaultOptions=r,this._document=o,this._liveElement=e||this._createLiveElement()}announce(e,...n){const o=this._defaultOptions;let r,s;return 1===n.length&&"number"==typeof n[0]?s=n[0]:[r,s]=n,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),null==s&&o&&(s=o.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(a=>this._currentResolve=a)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",n=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let r=0;r .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{class i{constructor(e,n,o,r,s){this._ngZone=e,this._platform=n,this._inputModalityDetector=o,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 ne,this._rootNodeFocusAndBlurListener=a=>{for(let c=cr(a);c;c=c.parentElement)"focus"===a.type?this._onFocus(a,c):this._onBlur(a,c)},this._document=r,this._detectionMode=s?.detectionMode||0}monitor(e,n=!1){const o=Po(e);if(!this._platform.isBrowser||1!==o.nodeType)return sn();const r=function CG(i){if(function wG(){if(null==lv){const i=typeof document<"u"?document.head:null;lv=!(!i||!i.createShadowRoot&&!i.attachShadow)}return lv}()){const t=i.getRootNode?i.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}(o)||this._getDocument(),s=this._elementInfo.get(o);if(s)return n&&(s.checkChildren=!0),s.subject;const a={checkChildren:n,subject:new ne,rootNode:r};return this._elementInfo.set(o,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const n=Po(e),o=this._elementInfo.get(n);o&&(o.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(o))}focusVia(e,n,o){const r=Po(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(([a,l])=>this._originChanged(a,n,l)):(this._setOrigin(n),"function"==typeof r.focus&&r.focus(o))}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 o=this._elementInfo.get(n),r=cr(e);!o||!o.checkChildren&&n!==r||this._originChanged(n,this._getFocusOrigin(r),o)}_onBlur(e,n){const o=this._elementInfo.get(n);!o||o.checkChildren&&e.relatedTarget instanceof Node&&n.contains(e.relatedTarget)||(this._setClasses(n),this._emitOrigin(o,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,o=this._rootNodeFocusListenerCount.get(n)||0;o||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,df),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,df)}),this._rootNodeFocusListenerCount.set(n,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Xe(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){const n=e.rootNode;if(this._rootNodeFocusListenerCount.has(n)){const o=this._rootNodeFocusListenerCount.get(n);o>1?this._rootNodeFocusListenerCount.set(n,o-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,df),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,df),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,n,o){this._setClasses(e,n),this._emitOrigin(o,n),this._lastFocusOrigin=n}_getClosestElementsInfo(e){const n=[];return this._elementInfo.forEach((o,r)=>{(r===e||o.checkChildren&&r.contains(e))&&n.push([r,o])}),n}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:n,mostRecentModality:o}=this._inputModalityDetector;if("mouse"!==o||!n||n===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const r=e.labels;if(r)for(let s=0;s{class i{constructor(e,n){this._platform=e,this._document=n,this._breakpointSubscription=J(e9).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,o=n&&n.getComputedStyle?n.getComputedStyle(e):null,r=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){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(kv,xA,wA),this._hasCheckedHighContrastMode=!0;const n=this.getHighContrastMode();1===n?e.add(kv,xA):2===n&&e.add(kv,wA)}}static#e=this.\u0275fac=function(n){return new(n||i)(C(dt),C(ge))};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),kA=(()=>{class i{constructor(e){e._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(n){return new(n||i)(C(CA))};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({imports:[pv]})}return i})();const C9=new A("cdk-dir-doc",{providedIn:"root",factory:function k9(){return J(ge)}}),D9=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let hr=(()=>{class i{constructor(e){this.value="ltr",this.change=new te,e&&(this.value=function S9(i){const t=i?.toLowerCase()||"";return"auto"===t&&typeof navigator<"u"&&navigator?.language?D9.test(navigator.language)?"rtl":"ltr":"rtl"===t?"rtl":"ltr"}((e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(n){return new(n||i)(C(C9,8))};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Ic=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({})}return i})();const M9=["text"];function E9(i,t){if(1&i&&De(0,"mat-pseudo-checkbox",6),2&i){const e=ue();T("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function A9(i,t){1&i&&De(0,"mat-pseudo-checkbox",7),2&i&&T("disabled",ue().disabled)}function T9(i,t){if(1&i&&(k(0,"span",8),he(1),S()),2&i){const e=ue();R(1),mn("(",e.group.label,")")}}const I9=[[["mat-icon"]],"*"],O9=["mat-icon","*"],F9=new A("mat-sanity-checks",{providedIn:"root",factory:function R9(){return!0}});let Oe=(()=>{class i{constructor(e,n,o){this._sanityChecks=n,this._document=o,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!cv()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}static#e=this.\u0275fac=function(n){return new(n||i)(C(CA),C(F9,8),C(ge))};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({imports:[Ic,Ic]})}return i})();function uf(i){return class extends i{get disabled(){return this._disabled}set disabled(t){this._disabled=me(t)}constructor(...t){super(...t),this._disabled=!1}}}function hf(i,t){return class extends i{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=t,this.color=t}}}function ff(i){return class extends i{get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=me(t)}constructor(...t){super(...t),this._disableRipple=!1}}}function Dv(i,t=0){return class extends i{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?dr(e):this.defaultTabIndex}constructor(...e){super(...e),this._tabIndex=t,this.defaultTabIndex=t}}}function MA(i){return class extends i{updateErrorState(){const t=this.errorState,r=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);r!==t&&(this.errorState=r,this.stateChanges.next())}constructor(...t){super(...t),this.errorState=!1}}}let EA=(()=>{class i{isErrorState(e,n){return!!(e&&e.invalid&&(e.touched||n&&n.submitted))}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),AA=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({imports:[Oe,Oe]})}return i})();class N9{constructor(t,e,n,o=!1){this._renderer=t,this.element=e,this.config=n,this._animationForciblyDisabledThroughCss=o,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const TA=ls({passive:!0,capture:!0});class L9{constructor(){this._events=new Map,this._delegateEventHandler=t=>{const e=cr(t);e&&this._events.get(t.type)?.forEach((n,o)=>{(o===e||o.contains(e))&&n.forEach(r=>r.handleEvent(t))})}}addHandler(t,e,n,o){const r=this._events.get(e);if(r){const s=r.get(n);s?s.add(o):r.set(n,new Set([o]))}else this._events.set(e,new Map([[n,new Set([o])]])),t.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,TA)})}removeHandler(t,e,n){const o=this._events.get(t);if(!o)return;const r=o.get(e);r&&(r.delete(n),0===r.size&&o.delete(e),0===o.size&&(this._events.delete(t),document.removeEventListener(t,this._delegateEventHandler,TA)))}}const IA={enterDuration:225,exitDuration:150},OA=ls({passive:!0,capture:!0}),RA=["mousedown","touchstart"],FA=["mouseup","mouseleave","touchend","touchcancel"];class Rc{static#e=this._eventManager=new L9;constructor(t,e,n,o){this._target=t,this._ngZone=e,this._platform=o,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,o.isBrowser&&(this._containerElement=Po(n))}fadeInRipple(t,e,n={}){const o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r={...IA,...n.animation};n.centered&&(t=o.left+o.width/2,e=o.top+o.height/2);const s=n.radius||function V9(i,t,e){const n=Math.max(Math.abs(i-e.left),Math.abs(i-e.right)),o=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(n*n+o*o)}(t,e,o),a=t-o.left,l=e-o.top,c=r.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=a-s+"px",d.style.top=l-s+"px",d.style.height=2*s+"px",d.style.width=2*s+"px",null!=n.color&&(d.style.backgroundColor=n.color),d.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(d);const u=window.getComputedStyle(d),f=u.transitionDuration,m="none"===u.transitionProperty||"0s"===f||"0s, 0s"===f||0===o.width&&0===o.height,p=new N9(this,d,n,m);d.style.transform="scale3d(1, 1, 1)",p.state=0,n.persistent||(this._mostRecentTransientRipple=p);let g=null;return!m&&(c||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const b=()=>this._finishRippleTransition(p),v=()=>this._destroyRipple(p);d.addEventListener("transitionend",b),d.addEventListener("transitioncancel",v),g={onTransitionEnd:b,onTransitionCancel:v}}),this._activeRipples.set(p,g),(m||!c)&&this._finishRippleTransition(p),p}fadeOutRipple(t){if(2===t.state||3===t.state)return;const e=t.element,n={...IA,...t.config.animation};e.style.transitionDuration=`${n.exitDuration}ms`,e.style.opacity="0",t.state=2,(t._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(t)}fadeOutAll(){this._getActiveRipples().forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=Po(t);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,RA.forEach(n=>{Rc._eventManager.addHandler(this._ngZone,n,e,this)}))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{FA.forEach(e=>{this._triggerElement.addEventListener(e,this,OA)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(t){0===t.state?this._startFadeOutTransition(t):2===t.state&&this._destroyRipple(t)}_startFadeOutTransition(t){const e=t===this._mostRecentTransientRipple,{persistent:n}=t.config;t.state=1,!n&&(!e||!this._isPointerDown)&&t.fadeOut()}_destroyRipple(t){const e=this._activeRipples.get(t)??null;this._activeRipples.delete(t),this._activeRipples.size||(this._containerRect=null),t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),t.state=3,null!==e&&(t.element.removeEventListener("transitionend",e.onTransitionEnd),t.element.removeEventListener("transitioncancel",e.onTransitionCancel)),t.element.remove()}_onMousedown(t){const e=wv(t),n=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const t=this._triggerElement;t&&(RA.forEach(e=>Rc._eventManager.removeHandler(e,t,this)),this._pointerUpEventsRegistered&&FA.forEach(e=>t.removeEventListener(e,this,OA)))}}const Fc=new A("mat-ripple-global-options");let Pc=(()=>{class i{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,o,r,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new Rc(this,n,e,o)}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,o){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,n,{...this.rippleConfig,...o}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}static#e=this.\u0275fac=function(n){return new(n||i)(_(ee),_(W),_(dt),_(Fc,8),_(Ot,8))};static#t=this.\u0275dir=O({type:i,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,o){2&n&&be("mat-ripple-unbounded",o.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"]})}return i})(),Nc=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({imports:[Oe,Oe]})}return i})(),H9=(()=>{class i{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}static#e=this.\u0275fac=function(n){return new(n||i)(_(Ot,8))};static#t=this.\u0275cmp=xe({type:i,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(n,o){2&n&&be("mat-pseudo-checkbox-indeterminate","indeterminate"===o.state)("mat-pseudo-checkbox-checked","checked"===o.state)("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal","minimal"===o.appearance)("mat-pseudo-checkbox-full","full"===o.appearance)("_mat-animation-noopable","NoopAnimations"===o._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(n,o){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}return i})(),PA=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({imports:[Oe]})}return i})();const NA=new A("MAT_OPTION_PARENT_COMPONENT"),LA=new A("MatOptgroup");let z9=0;class j9{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let $9=(()=>{class i{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=me(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(e,n,o,r){this._element=e,this._changeDetectorRef=n,this._parent=o,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+z9++,this.onSelectionChange=new te,this._stateChanges=new ne}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,n){const o=this._getHostElement();"function"==typeof o.focus&&o.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)&&!Bn(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 j9(this,e))}static#e=this.\u0275fac=function(n){xa()};static#t=this.\u0275dir=O({type:i,viewQuery:function(n,o){if(1&n&&ct(M9,7),2&n){let r;ae(r=le())&&(o._text=r.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}})}return i})(),Lc=(()=>{class i extends $9{constructor(e,n,o,r){super(e,n,o,r)}static#e=this.\u0275fac=function(n){return new(n||i)(_(ee),_(oi),_(NA,8),_(LA,8))};static#t=this.\u0275cmp=xe({type:i,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(n,o){1&n&&$("click",function(){return o._selectViaInteraction()})("keydown",function(s){return o._handleKeydown(s)}),2&n&&(or("id",o.id),Me("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),be("mdc-list-item--selected",o.selected)("mat-mdc-option-multiple",o.multiple)("mat-mdc-option-active",o.active)("mdc-list-item--disabled",o.disabled))},exportAs:["matOption"],features:[q],ngContentSelectors:O9,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox","aria-hidden","true",3,"disabled","state",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","aria-hidden","true","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(n,o){1&n&&(yt(I9),U(0,E9,1,2,"mat-pseudo-checkbox",0),Z(1),k(2,"span",1,2),Z(4,1),S(),U(5,A9,1,1,"mat-pseudo-checkbox",3),U(6,T9,2,1,"span",4),De(7,"div",5)),2&n&&(T("ngIf",o.multiple),R(5),T("ngIf",!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator),R(1),T("ngIf",o.group&&o.group._inert),R(1),T("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[Pc,ar,H9],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return i})(),BA=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({imports:[Nc,Fo,Oe,PA]})}return i})();const VA={capture:!0},HA=["focus","click","mouseenter","touchstart"],Sv="mat-ripple-loader-uninitialized",Mv="mat-ripple-loader-class-name",zA="mat-ripple-loader-centered",mf="mat-ripple-loader-disabled";let G9=(()=>{class i{constructor(){this._document=J(ge,{optional:!0}),this._animationMode=J(Ot,{optional:!0}),this._globalRippleOptions=J(Fc,{optional:!0}),this._platform=J(dt),this._ngZone=J(W),this._onInteraction=e=>{if(!(e.target instanceof HTMLElement))return;const o=e.target.closest(`[${Sv}]`);o&&this.createRipple(o)},this._ngZone.runOutsideAngular(()=>{for(const e of HA)this._document?.addEventListener(e,this._onInteraction,VA)})}ngOnDestroy(){for(const e of HA)this._document?.removeEventListener(e,this._onInteraction,VA)}configureRipple(e,n){e.setAttribute(Sv,""),(n.className||!e.hasAttribute(Mv))&&e.setAttribute(Mv,n.className||""),n.centered&&e.setAttribute(zA,""),n.disabled&&e.setAttribute(mf,"")}getRipple(e){return e.matRipple?e.matRipple:this.createRipple(e)}setDisabled(e,n){const o=e.matRipple;o?o.disabled=n:n?e.setAttribute(mf,""):e.removeAttribute(mf)}createRipple(e){if(!this._document)return;e.querySelector(".mat-ripple")?.remove();const n=this._document.createElement("span");n.classList.add("mat-ripple",e.getAttribute(Mv)),e.append(n);const o=new Pc(new ee(n),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return o._isInitialized=!0,o.trigger=e,o.centered=e.hasAttribute(zA),o.disabled=e.hasAttribute(mf),this.attachRipple(e,o),o}attachRipple(e,n){e.removeAttribute(Sv),e.matRipple=n}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function jA(...i){const t=Mw(i),{args:e,keys:n}=lA(i),o=new it(r=>{const{length:s}=e;if(!s)return void r.complete();const a=new Array(s);let l=s,c=s;for(let d=0;d{u||(u=!0,c--),a[d]=h},()=>l--,void 0,()=>{(!l||!u)&&(c||r.next(n?cA(n,a):a),r.complete())}))}});return t?o.pipe(gv(t)):o}function $A(i){return Lt((t,e)=>{let r,n=null,o=!1;n=t.subscribe(At(e,void 0,void 0,s=>{r=Jt(i(s,$A(i)(t))),n?(n.unsubscribe(),n=null,r.subscribe(e)):o=!0})),o&&(n.unsubscribe(),n=null,r.subscribe(e))})}class Ev{}class No{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?"string"==typeof t?this.lazyInit=()=>{this.headers=new Map,t.split("\n").forEach(e=>{const n=e.indexOf(":");if(n>0){const o=e.slice(0,n),r=o.toLowerCase(),s=e.slice(n+1).trim();this.maybeSetNormalizedName(o,r),this.headers.has(r)?this.headers.get(r).push(s):this.headers.set(r,[s])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((e,n)=>{this.setHeaderEntries(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof No?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new No;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof No?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const o=("a"===t.op?this.headers.get(e):void 0)||[];o.push(...n),this.headers.set(e,o);break;case"d":const r=t.value;if(r){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===r.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}setHeaderEntries(t,e){const n=(Array.isArray(e)?e:[e]).map(r=>r.toString()),o=t.toLowerCase();this.headers.set(o,n),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class K9{encodeKey(t){return UA(t)}encodeValue(t){return UA(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const Q9=/%(\d[a-f0-9])/gi,J9={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function UA(i){return encodeURIComponent(i).replace(Q9,(t,e)=>J9[e]??t)}function pf(i){return`${i}`}class fr{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new K9,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function Z9(i,t){const e=new Map;return i.length>0&&i.replace(/^\?/,"").split("&").forEach(o=>{const r=o.indexOf("="),[s,a]=-1==r?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,r)),t.decodeValue(o.slice(r+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e],o=Array.isArray(n)?n.map(pf):[pf(n)];this.map.set(e,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(n=>{const o=t[n];Array.isArray(o)?o.forEach(r=>{e.push({param:n,value:r,op:"a"})}):e.push({param:n,value:o,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new fr({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(pf(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let n=this.map.get(t.param)||[];const o=n.indexOf(pf(t.value));-1!==o&&n.splice(o,1),n.length>0?this.map.set(t.param,n):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class eq{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function WA(i){return typeof ArrayBuffer<"u"&&i instanceof ArrayBuffer}function GA(i){return typeof Blob<"u"&&i instanceof Blob}function qA(i){return typeof FormData<"u"&&i instanceof FormData}class Bc{constructor(t,e,n,o){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function tq(i){switch(i){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==n?n:null,r=o):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params)),this.headers||(this.headers=new No),this.context||(this.context=new eq),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":au.set(h,t.setHeaders[h]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((u,h)=>u.set(h,t.setParams[h]),c)),new Bc(e,n,r,{params:c,headers:l,context:d,reportProgress:a,responseType:o,withCredentials:s})}}var Tv=function(i){return i[i.Sent=0]="Sent",i[i.UploadProgress=1]="UploadProgress",i[i.ResponseHeader=2]="ResponseHeader",i[i.DownloadProgress=3]="DownloadProgress",i[i.Response=4]="Response",i[i.User=5]="User",i}(Tv||{});class nq{constructor(t,e=200,n="OK"){this.headers=t.headers||new No,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Vc extends nq{constructor(t={}){super(t),this.type=Tv.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Vc({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}function Iv(i,t){return{body:t,headers:i.headers,context:i.context,observe:i.observe,params:i.params,reportProgress:i.reportProgress,responseType:i.responseType,withCredentials:i.withCredentials}}let Ov=(()=>{class i{constructor(e){this.handler=e}request(e,n,o={}){let r;if(e instanceof Bc)r=e;else{let l,c;l=o.headers instanceof No?o.headers:new No(o.headers),o.params&&(c=o.params instanceof fr?o.params:new fr({fromObject:o.params})),r=new Bc(e,n,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=sn(r).pipe(function X9(i,t){return Re(t)?Hs(i,t,1):Hs(i,1)}(l=>this.handler.handle(l)));if(e instanceof Bc||"events"===o.observe)return s;const a=s.pipe(kt(l=>l instanceof Vc));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return a.pipe(Bt(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(Bt(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(Bt(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(Bt(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.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 fr).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,o={}){return this.request("PATCH",e,Iv(o,n))}post(e,n,o={}){return this.request("POST",e,Iv(o,n))}put(e,n,o={}){return this.request("PUT",e,Iv(o,n))}static#e=this.\u0275fac=function(n){return new(n||i)(C(Ev))};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac})}return i})();const Cq=["*"];let bf;function Hc(i){return function kq(){if(void 0===bf&&(bf=null,typeof window<"u")){const i=window;void 0!==i.trustedTypes&&(bf=i.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return bf}()?.createHTML(i)||i}function nT(i){return Error(`Unable to find icon with the name "${i}"`)}function oT(i){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${i}".`)}function rT(i){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${i}".`)}class hs{constructor(t,e,n){this.url=t,this.svgText=e,this.options=n}}let vf=(()=>{class i{constructor(e,n,o,r){this._httpClient=e,this._sanitizer=n,this._errorHandler=r,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=o}addSvgIcon(e,n,o){return this.addSvgIconInNamespace("",e,n,o)}addSvgIconLiteral(e,n,o){return this.addSvgIconLiteralInNamespace("",e,n,o)}addSvgIconInNamespace(e,n,o,r){return this._addSvgIconConfig(e,n,new hs(o,null,r))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,n,o,r){const s=this._sanitizer.sanitize(Gt.HTML,o);if(!s)throw rT(o);const a=Hc(s);return this._addSvgIconConfig(e,n,new hs("",a,r))}addSvgIconSet(e,n){return this.addSvgIconSetInNamespace("",e,n)}addSvgIconSetLiteral(e,n){return this.addSvgIconSetLiteralInNamespace("",e,n)}addSvgIconSetInNamespace(e,n,o){return this._addSvgIconSetConfig(e,new hs(n,null,o))}addSvgIconSetLiteralInNamespace(e,n,o){const r=this._sanitizer.sanitize(Gt.HTML,n);if(!r)throw rT(n);const s=Hc(r);return this._addSvgIconSetConfig(e,new hs("",s,o))}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(Gt.RESOURCE_URL,e);if(!n)throw oT(e);const o=this._cachedIconsByUrl.get(n);return o?sn(yf(o)):this._loadSvgIconFromConfig(new hs(e,null)).pipe(ef(r=>this._cachedIconsByUrl.set(n,r)),Bt(r=>yf(r)))}getNamedSvgIcon(e,n=""){const o=sT(n,e);let r=this._svgIconConfigs.get(o);if(r)return this._getSvgFromConfig(r);if(r=this._getIconConfigFromResolvers(n,e),r)return this._svgIconConfigs.set(o,r),this._getSvgFromConfig(r);const s=this._iconSetConfigs.get(n);return s?this._getSvgFromIconSetConfigs(e,s):function q9(i,t){const e=Re(i)?i:()=>i,n=o=>o.error(e());return new it(t?o=>t.schedule(n,0,o):n)}(nT(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?sn(yf(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Bt(n=>yf(n)))}_getSvgFromIconSetConfigs(e,n){const o=this._extractIconWithNameFromAnySet(e,n);return o?sn(o):jA(n.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe($A(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(Gt.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),sn(null)})))).pipe(Bt(()=>{const s=this._extractIconWithNameFromAnySet(e,n);if(!s)throw nT(e);return s}))}_extractIconWithNameFromAnySet(e,n){for(let o=n.length-1;o>=0;o--){const r=n[o];if(r.svgText&&r.svgText.toString().indexOf(e)>-1){const s=this._svgElementFromConfig(r),a=this._extractSvgIconFromSet(s,e,r.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(ef(n=>e.svgText=n),Bt(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?sn(null):this._fetchIcon(e).pipe(ef(n=>e.svgText=n))}_extractSvgIconFromSet(e,n,o){const r=e.querySelector(`[id="${n}"]`);if(!r)return null;const s=r.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,o);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),o);const a=this._svgElementFromString(Hc(""));return a.appendChild(s),this._setSvgAttributes(a,o)}_svgElementFromString(e){const n=this._document.createElement("DIV");n.innerHTML=e;const o=n.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(e){const n=this._svgElementFromString(Hc("")),o=e.attributes;for(let r=0;rHc(c)),function Y9(i){return Lt((t,e)=>{try{t.subscribe(e)}finally{e.add(i)}})}(()=>this._inProgressUrlFetches.delete(s)),iu());return this._inProgressUrlFetches.set(s,l),l}_addSvgIconConfig(e,n,o){return this._svgIconConfigs.set(sT(e,n),o),this}_addSvgIconSetConfig(e,n){const o=this._iconSetConfigs.get(e);return o?o.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 o=0;ot?t.pathname+t.search:""}}}),aT=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Oq=aT.map(i=>`[${i}]`).join(", "),Rq=/^url\(['"]?#(.*?)['"]?\)$/;let lT=(()=>{class i extends Eq{get inline(){return this._inline}set inline(e){this._inline=me(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,o,r,s,a){super(e),this._iconRegistry=n,this._location=r,this._errorHandler=s,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=je.EMPTY,a&&(a.color&&(this.color=this.defaultColor=a.color),a.fontSet&&(this.fontSet=a.fontSet)),o||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 o=e.childNodes[n];(1!==o.nodeType||"svg"===o.nodeName.toLowerCase())&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,n=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>e.classList.remove(o)),n.forEach(o=>e.classList.add(o)),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((o,r)=>{o.forEach(s=>{r.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){const n=e.querySelectorAll(Oq),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r{const a=n[r],l=a.getAttribute(s),c=l?l.match(Rq):null;if(c){let d=o.get(a);d||(d=[],o.set(a,d)),d.push({name:s,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[n,o]=this._splitIconName(e);n&&(this._svgNamespace=n),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,n).pipe(ri(1)).subscribe(r=>this._setSvgElement(r),r=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${n}:${o}! ${r.message}`))})}}static#e=this.\u0275fac=function(n){return new(n||i)(_(ee),_(vf),Gr("aria-hidden"),_(Tq),_(un),_(Aq,8))};static#t=this.\u0275cmp=xe({type:i,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(n,o){2&n&&(Me("data-mat-icon-type",o._usingFontIcon()?"font":"svg")("data-mat-icon-name",o._svgName||o.fontIcon)("data-mat-icon-namespace",o._svgNamespace||o.fontSet)("fontIcon",o._usingFontIcon()?o.fontIcon:null),be("mat-icon-inline",o.inline)("mat-icon-no-color","primary"!==o.color&&"accent"!==o.color&&"warn"!==o.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[q],ngContentSelectors:Cq,decls:1,vars:0,template:function(n,o){1&n&&(yt(),Z(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}return i})(),pr=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({imports:[Oe,Oe]})}return i})();const Fq=["mat-button",""],Pq=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],Nq=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],Bq=["mat-icon-button",""],Vq=["*"],Hq=[{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"]}],zq=hf(uf(ff(class{constructor(i){this._elementRef=i}})));let cT=(()=>{class i extends zq{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,e)}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=me(e),this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(e){this._disabled=me(e),this._updateRippleDisabled()}constructor(e,n,o,r){super(e),this._platform=n,this._ngZone=o,this._animationMode=r,this._focusMonitor=J(ur),this._rippleLoader=J(G9),this._isFab=!1,this._disableRipple=!1,this._disabled=!1,this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-button-ripple"});const s=e.nativeElement.classList;for(const a of Hq)this._hasHostAttributes(a.selector)&&a.mdcClasses.forEach(l=>{s.add(l)})}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))}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static#e=this.\u0275fac=function(n){xa()};static#t=this.\u0275dir=O({type:i,features:[q]})}return i})(),Fv=(()=>{class i extends cT{constructor(e,n,o,r){super(e,n,o,r)}static#e=this.\u0275fac=function(n){return new(n||i)(_(ee),_(dt),_(W),_(Ot,8))};static#t=this.\u0275cmp=xe({type:i,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(n,o){2&n&&(Me("disabled",o.disabled||null),be("_mat-animation-noopable","NoopAnimations"===o._animationMode)("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[q],attrs:Fq,ngContentSelectors:Nq,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){1&n&&(yt(Pq),De(0,"span",0),Z(1),k(2,"span",1),Z(3,1),S(),Z(4,2),De(5,"span",2)(6,"span",3)),2&n&&be("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return i})(),dT=(()=>{class i extends cT{constructor(e,n,o,r){super(e,n,o,r),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static#e=this.\u0275fac=function(n){return new(n||i)(_(ee),_(dt),_(W),_(Ot,8))};static#t=this.\u0275cmp=xe({type:i,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(n,o){2&n&&(Me("disabled",o.disabled||null),be("_mat-animation-noopable","NoopAnimations"===o._animationMode)("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[q],attrs:Bq,ngContentSelectors:Vq,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){1&n&&(yt(),De(0,"span",0),Z(1),De(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size);width:var(--mdc-icon-button-state-layer-size);color:var(--mdc-icon-button-icon-color);--mdc-icon-button-state-layer-size:48px;--mdc-icon-button-icon-size:24px;--mdc-icon-button-disabled-icon-color:black;--mdc-icon-button-disabled-icon-opacity:0.38}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{padding:12px;font-size:var(--mdc-icon-button-icon-size);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return i})(),Lo=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({imports:[Oe,Nc,Oe]})}return i})();const Uq=["*",[["mat-toolbar-row"]]],Wq=["*","mat-toolbar-row"],Gq=hf(class{constructor(i){this._elementRef=i}});let qq=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275dir=O({type:i,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return i})(),Yq=(()=>{class i extends Gq{constructor(e,n,o){super(e),this._platform=n,this._document=o}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}static#e=this.\u0275fac=function(n){return new(n||i)(_(ee),_(dt),_(ge))};static#t=this.\u0275cmp=xe({type:i,selectors:[["mat-toolbar"]],contentQueries:function(n,o,r){if(1&n&&Je(r,qq,5),2&n){let s;ae(s=le())&&(o._toolbarRows=s)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(n,o){2&n&&be("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",0===o._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[q],ngContentSelectors:Wq,decls:2,vars:0,template:function(n,o){1&n&&(yt(Uq),Z(0),Z(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color: inherit;--mdc-outlined-button-label-text-color: inherit}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0})}return i})(),Xq=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({imports:[Oe,Oe]})}return i})(),uT=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275cmp=xe({type:i,selectors:[["app-header"]],standalone:!0,features:[Pn],decls:3,vars:0,consts:[["color","primary",1,"header"]],template:function(n,o){1&n&&(k(0,"mat-toolbar",0)(1,"span"),he(2,"EDC Policy Playouground"),S()())},dependencies:[Xq,Yq,Lo,pr],styles:[".header[_ngcontent-%COMP%]{box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f}"]})}return i})();class Le{lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,e,n){let o=[];return this.decompose(0,t,o,2),n.length&&n.decompose(0,n.length,o,3),this.decompose(e,this.length,o,1),io.from(o,this.length-(e-t)+n.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,e=this.length){let n=[];return this.decompose(t,e,n,0),io.from(n,e-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let e=this.scanIdentical(t,1),n=this.length-this.scanIdentical(t,-1),o=new zc(this),r=new zc(t);for(let s=e,a=e;;){if(o.next(s),r.next(s),s=0,o.lineBreak!=r.lineBreak||o.done!=r.done||o.value!=r.value)return!1;if(a+=o.value.length,o.done||a>=n)return!0}}iter(t=1){return new zc(this,t)}iterRange(t,e=this.length){return new fT(this,t,e)}iterLines(t,e){let n;if(null==t)n=this.iter();else{null==e&&(e=this.lines+1);let o=this.line(t).from;n=this.iterRange(o,Math.max(o,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new mT(n)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(0==t.length)throw new RangeError("A document must have at least one line");return 1!=t.length||t[0]?t.length<=32?new wt(t):io.from(wt.split(t,[])):Le.empty}}class wt extends Le{constructor(t,e=function Kq(i){let t=-1;for(let e of i)t+=e.length+1;return t}(t)){super(),this.text=t,this.length=e}get lines(){return this.text.length}get children(){return null}lineInner(t,e,n,o){for(let r=0;;r++){let s=this.text[r],a=o+s.length;if((e?n:a)>=t)return new Zq(o,a,n,s);o=a+1,n++}}decompose(t,e,n,o){let r=t<=0&&e>=this.length?this:new wt(hT(this.text,t,e),Math.min(e,this.length)-Math.max(0,t));if(1&o){let s=n.pop(),a=xf(r.text,s.text.slice(),0,r.length);if(a.length<=32)n.push(new wt(a,s.length+r.length));else{let l=a.length>>1;n.push(new wt(a.slice(0,l)),new wt(a.slice(l)))}}else n.push(r)}replace(t,e,n){if(!(n instanceof wt))return super.replace(t,e,n);let o=xf(this.text,xf(n.text,hT(this.text,0,t)),e),r=this.length+n.length-(e-t);return o.length<=32?new wt(o,r):io.from(wt.split(o,[]),r)}sliceString(t,e=this.length,n="\n"){let o="";for(let r=0,s=0;r<=e&&st&&s&&(o+=n),tr&&(o+=a.slice(Math.max(0,t-r),e-r)),r=l+1}return o}flatten(t){for(let e of this.text)t.push(e)}scanIdentical(){return 0}static split(t,e){let n=[],o=-1;for(let r of t)n.push(r),o+=r.length+1,32==n.length&&(e.push(new wt(n,o)),n=[],o=-1);return o>-1&&e.push(new wt(n,o)),e}}class io extends Le{constructor(t,e){super(),this.children=t,this.length=e,this.lines=0;for(let n of t)this.lines+=n.lines}lineInner(t,e,n,o){for(let r=0;;r++){let s=this.children[r],a=o+s.length,l=n+s.lines-1;if((e?l:a)>=t)return s.lineInner(t,e,n,o);o=a+1,n=l+1}}decompose(t,e,n,o){for(let r=0,s=0;s<=e&&r=s){let c=o&((s<=t?1:0)|(l>=e?2:0));s>=t&&l<=e&&!c?n.push(a):a.decompose(t-s,e-s,n,c)}s=l+1}}replace(t,e,n){if(n.lines=r&&e<=a){let l=s.replace(t-r,e-r,n),c=this.lines-s.lines+l.lines;if(l.lines>4&&l.lines>c>>6){let d=this.children.slice();return d[o]=l,new io(d,this.length-(e-t)+n.length)}return super.replace(r,a,l)}r=a+1}return super.replace(t,e,n)}sliceString(t,e=this.length,n="\n"){let o="";for(let r=0,s=0;rt&&r&&(o+=n),ts&&(o+=a.sliceString(t-s,e-s,n)),s=l+1}return o}flatten(t){for(let e of this.children)e.flatten(t)}scanIdentical(t,e){if(!(t instanceof io))return 0;let n=0,[o,r,s,a]=e>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;o+=e,r+=e){if(o==s||r==a)return n;let l=this.children[o],c=t.children[r];if(l!=c)return n+l.scanIdentical(c,e);n+=l.length+1}}static from(t,e=t.reduce((n,o)=>n+o.length+1,-1)){let n=0;for(let f of t)n+=f.lines;if(n<32){let f=[];for(let m of t)m.flatten(f);return new wt(f,e)}let o=Math.max(32,n>>5),r=o<<1,s=o>>1,a=[],l=0,c=-1,d=[];function u(f){let m;if(f.lines>r&&f instanceof io)for(let p of f.children)u(p);else f.lines>s&&(l>s||!l)?(h(),a.push(f)):f instanceof wt&&l&&(m=d[d.length-1])instanceof wt&&f.lines+m.lines<=32?(l+=f.lines,c+=f.length+1,d[d.length-1]=new wt(m.text.concat(f.text),m.length+1+f.length)):(l+f.lines>o&&h(),l+=f.lines,c+=f.length+1,d.push(f))}function h(){0!=l&&(a.push(1==d.length?d[0]:io.from(d,c)),c=-1,l=d.length=0)}for(let f of t)u(f);return h(),1==a.length?a[0]:new io(a,e)}}function xf(i,t,e=0,n=1e9){for(let o=0,r=0,s=!0;r=e&&(l>n&&(a=a.slice(0,n-o)),o0?1:(t instanceof wt?t.text.length:t.children.length)<<1]}nextInner(t,e){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,o=this.nodes[n],r=this.offsets[n],s=r>>1;if(s==(e>0?o instanceof wt?o.text.length:o.children.length:0)){if(0==n)return this.done=!0,this.value="",this;e>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&r)==(e>0?0:1)){if(this.offsets[n]+=e,0==t)return this.lineBreak=!0,this.value="\n",this;t--}else if(o instanceof wt){let l=o.text[s+(e<0?-1:0)];if(this.offsets[n]+=e,l.length>Math.max(0,t))return this.value=0==t?l:e>0?l.slice(t):l.slice(0,l.length-t),this;t-=l.length}else{let l=o.children[s+(e<0?-1:0)];t>l.length?(t-=l.length,this.offsets[n]+=e):(e<0&&this.offsets[n]--,this.nodes.push(l),this.offsets.push(e>0?1:(l instanceof wt?l.text.length:l.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class fT{constructor(t,e,n){this.value="",this.done=!1,this.cursor=new zc(t,e>n?-1:1),this.pos=e>n?t.length:0,this.from=Math.min(e,n),this.to=Math.max(e,n)}nextInner(t,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);let n=e<0?this.pos-this.from:this.to-this.pos;t>n&&(t=n),n-=t;let{value:o}=this.cursor.next(t);return this.pos+=(o.length+t)*e,this.value=o.length<=n?o:e<0?o.slice(o.length-n):o.slice(0,n),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class mT{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:e,lineBreak:n,value:o}=this.inner.next(t);return e?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=o,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(Le.prototype[Symbol.iterator]=function(){return this.iter()},zc.prototype[Symbol.iterator]=fT.prototype[Symbol.iterator]=mT.prototype[Symbol.iterator]=function(){return this});class Zq{constructor(t,e,n,o){this.from=t,this.to=e,this.number=n,this.text=o}get length(){return this.to-this.from}}let $a="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(i=>i?parseInt(i,36):1);for(let i=1;i<$a.length;i++)$a[i]+=$a[i-1];function Qq(i){for(let t=1;t<$a.length;t+=2)if($a[t]>i)return $a[t-1]<=i;return!1}function pT(i){return i>=127462&&i<=127487}const gT=8205;function si(i,t,e=!0,n=!0){return(e?_T:Jq)(i,t,n)}function _T(i,t,e){if(t==i.length)return t;t&&bT(i.charCodeAt(t))&&vT(i.charCodeAt(t-1))&&t--;let n=qt(i,t);for(t+=_n(n);t=0&&pT(qt(i,s));)r++,s-=2;if(r%2==0)break;t+=2}}}return t}function Jq(i,t,e){for(;t>0;){let n=_T(i,t-2,e);if(n=56320&&i<57344}function vT(i){return i>=55296&&i<56320}function qt(i,t){let e=i.charCodeAt(t);if(!vT(e)||t+1==i.length)return e;let n=i.charCodeAt(t+1);return bT(n)?n-56320+(e-55296<<10)+65536:e}function Pv(i){return i<=65535?String.fromCharCode(i):(i-=65536,String.fromCharCode(55296+(i>>10),56320+(1023&i)))}function _n(i){return i<65536?1:2}const Nv=/\r\n?|\n/;var Di=function(i){return i[i.Simple=0]="Simple",i[i.TrackDel=1]="TrackDel",i[i.TrackBefore=2]="TrackBefore",i[i.TrackAfter=3]="TrackAfter",i}(Di||(Di={}));class no{constructor(t){this.sections=t}get length(){let t=0;for(let e=0;et)return r+(t-o);r+=a}else{if(n!=Di.Simple&&c>=t&&(n==Di.TrackDel&&ot||n==Di.TrackBefore&&ot))return null;if(c>t||c==t&&e<0&&!a)return t==o||e<0?r:r+l;r+=l}o=c}if(t>o)throw new RangeError(`Position ${t} is out of range for changeset of length ${o}`);return r}touchesRange(t,e=t){for(let n=0,o=0;n=0&&o<=e&&a>=t)return!(oe)||"cover";o=a}return!1}toString(){let t="";for(let e=0;e=0?":"+o:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(e=>"number"!=typeof e))throw new RangeError("Invalid JSON representation of ChangeDesc");return new no(t)}static create(t){return new no(t)}}class Ft extends no{constructor(t,e){super(t),this.inserted=e}apply(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");return Lv(this,(e,n,o,r,s)=>t=t.replace(o,o+(n-e),s),!1),t}mapDesc(t,e=!1){return Bv(this,t,e,!0)}invert(t){let e=this.sections.slice(),n=[];for(let o=0,r=0;o=0){e[o]=a,e[o+1]=s;let l=o>>1;for(;n.length0&&gr(n,e,r.text),r.forward(d),a+=d}let c=t[s++];for(;a>1].toJSON()))}return t}static of(t,e,n){let o=[],r=[],s=0,a=null;function l(d=!1){if(!d&&!o.length)return;sh||u<0||h>e)throw new RangeError(`Invalid change range ${u} to ${h} (in doc of length ${e})`);let m=f?"string"==typeof f?Le.of(f.split(n||Nv)):f:Le.empty,p=m.length;if(u==h&&0==p)return;us&&ai(o,u-s,-1),ai(o,h-u,p),gr(r,o,m),s=h}}(t),l(!a),a}static empty(t){return new Ft(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let e=[],n=[];for(let o=0;oa&&"string"!=typeof s))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==r.length)e.push(r[0],0);else{for(;n.length=0&&e<=0&&e==i[o+1]?i[o]+=t:0==t&&0==i[o]?i[o+1]+=e:n?(i[o]+=t,i[o+1]+=e):i.push(t,e)}function gr(i,t,e){if(0==e.length)return;let n=t.length-2>>1;if(n>1])),!(e||s==i.sections.length||i.sections[s+1]<0);)a=i.sections[s++],l=i.sections[s++];t(o,c,r,d,u),o=c,r=d}}}function Bv(i,t,e,n=!1){let o=[],r=n?[]:null,s=new jc(i),a=new jc(t);for(let l=-1;;)if(-1==s.ins&&-1==a.ins){let c=Math.min(s.len,a.len);ai(o,c,-1),s.forward(c),a.forward(c)}else if(a.ins>=0&&(s.ins<0||l==s.i||0==s.off&&(a.len=0&&l=0)){if(s.done&&a.done)return r?Ft.createSet(o,r):no.create(o);throw new Error("Mismatched change set lengths")}{let c=0,d=s.len;for(;d;)if(-1==a.ins){let u=Math.min(d,a.len);c+=u,d-=u,a.forward(u)}else{if(!(0==a.ins&&a.lenl||s.ins>=0&&s.len>l)&&(a||n.length>c),r.forward2(l),s.forward(l)}}else ai(n,0,s.ins,a),o&&gr(o,n,s.text),s.next()}}class jc{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i>1;return e>=t.length?Le.empty:t[e]}textBit(t){let{inserted:e}=this.set,n=this.i-2>>1;return n>=e.length&&!t?Le.empty:e[n].slice(this.off,null==t?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){-1==this.ins?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}class fs{constructor(t,e,n){this.from=t,this.to=e,this.flags=n}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get bidiLevel(){let t=7&this.flags;return 7==t?null:t}get goalColumn(){let t=this.flags>>6;return 16777215==t?void 0:t}map(t,e=-1){let n,o;return this.empty?n=o=t.mapPos(this.from,e):(n=t.mapPos(this.from,1),o=t.mapPos(this.to,-1)),n==this.from&&o==this.to?this:new fs(n,o,this.flags)}extend(t,e=t){if(t<=this.anchor&&e>=this.anchor)return E.range(t,e);let n=Math.abs(t-this.anchor)>Math.abs(e-this.anchor)?t:e;return E.range(this.anchor,n)}eq(t){return this.anchor==t.anchor&&this.head==t.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||"number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid JSON representation for SelectionRange");return E.range(t.anchor,t.head)}static create(t,e,n){return new fs(t,e,n)}}class E{constructor(t,e){this.ranges=t,this.mainIndex=e}map(t,e=-1){return t.empty?this:E.create(this.ranges.map(n=>n.map(t,e)),this.mainIndex)}eq(t){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let e=0;et.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||"number"!=typeof t.main||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new E(t.ranges.map(e=>fs.fromJSON(e)),t.main)}static single(t,e=t){return new E([E.range(t,e)],0)}static create(t,e=0){if(0==t.length)throw new RangeError("A selection needs at least one range");for(let n=0,o=0;ot?8:0)|r)}static normalized(t,e=0){let n=t[e];t.sort((o,r)=>o.from-r.from),e=t.indexOf(n);for(let o=1;or.head?E.range(l,a):E.range(a,l))}}return new E(t,e)}}function xT(i,t){for(let e of i.ranges)if(e.to>t)throw new RangeError("Selection points outside of document")}let Vv=0;class H{constructor(t,e,n,o,r){this.combine=t,this.compareInput=e,this.compare=n,this.isStatic=o,this.id=Vv++,this.default=t([]),this.extensions="function"==typeof r?r(this):r}get reader(){return this}static define(t={}){return new H(t.combine||(e=>e),t.compareInput||((e,n)=>e===n),t.compare||(t.combine?(e,n)=>e===n:Hv),!!t.static,t.enables)}of(t){return new wf([],this,0,t)}compute(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new wf(t,this,1,e)}computeN(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new wf(t,this,2,e)}from(t,e){return e||(e=n=>n),this.compute([t],n=>e(n.field(t)))}}function Hv(i,t){return i==t||i.length==t.length&&i.every((e,n)=>e===t[n])}class wf{constructor(t,e,n,o){this.dependencies=t,this.facet=e,this.type=n,this.value=o,this.id=Vv++}dynamicSlot(t){var e;let n=this.value,o=this.facet.compareInput,r=this.id,s=t[r]>>1,a=2==this.type,l=!1,c=!1,d=[];for(let u of this.dependencies)"doc"==u?l=!0:"selection"==u?c=!0:1&(null!==(e=t[u.id])&&void 0!==e?e:1)||d.push(t[u.id]);return{create:u=>(u.values[s]=n(u),1),update(u,h){if(l&&h.docChanged||c&&(h.docChanged||h.selection)||zv(u,d)){let f=n(u);if(a?!wT(f,u.values[s],o):!o(f,u.values[s]))return u.values[s]=f,1}return 0},reconfigure:(u,h)=>{let f,m=h.config.address[r];if(null!=m){let p=Df(h,m);if(this.dependencies.every(g=>g instanceof H?h.facet(g)===u.facet(g):!(g instanceof St)||h.field(g,!1)==u.field(g,!1))||(a?wT(f=n(u),p,o):o(f=n(u),p)))return u.values[s]=p,0}else f=n(u);return u.values[s]=f,1}}}}function wT(i,t,e){if(i.length!=t.length)return!1;for(let n=0;ni[l.id]),o=e.map(l=>l.type),r=n.filter(l=>!(1&l)),s=i[t.id]>>1;function a(l){let c=[];for(let d=0;dn===o),t);return t.provide&&(e.provides=t.provide(e)),e}create(t){let e=t.facet(CT).find(n=>n.field==this);return(e?.create||this.createF)(t)}slot(t){let e=t[this.id]>>1;return{create:n=>(n.values[e]=this.create(n),1),update:(n,o)=>{let r=n.values[e],s=this.updateF(r,o);return this.compareF(r,s)?0:(n.values[e]=s,1)},reconfigure:(n,o)=>null!=o.config.address[this.id]?(n.values[e]=o.field(this),0):(n.values[e]=this.create(n),1)}}init(t){return[this,CT.of({field:this,create:t})]}get extension(){return this}}function $c(i){return t=>new kT(t,i)}const ps={highest:$c(0),high:$c(1),default:$c(2),low:$c(3),lowest:$c(4)};class kT{constructor(t,e){this.inner=t,this.prec=e}}class Cf{of(t){return new jv(this,t)}reconfigure(t){return Cf.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class jv{constructor(t,e){this.compartment=t,this.inner=e}}class kf{constructor(t,e,n,o,r,s){for(this.base=t,this.compartments=e,this.dynamicSlots=n,this.address=o,this.staticValues=r,this.facets=s,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(t,e,n){let o=[],r=Object.create(null),s=new Map;for(let h of function t7(i,t,e){let n=[[],[],[],[],[]],o=new Map;return function r(s,a){let l=o.get(s);if(null!=l){if(l<=a)return;let c=n[l].indexOf(s);c>-1&&n[l].splice(c,1),s instanceof jv&&e.delete(s.compartment)}if(o.set(s,a),Array.isArray(s))for(let c of s)r(c,a);else if(s instanceof jv){if(e.has(s.compartment))throw new RangeError("Duplicate use of compartment in extensions");let c=t.get(s.compartment)||s.inner;e.set(s.compartment,c),r(c,a)}else if(s instanceof kT)r(s.inner,s.prec);else if(s instanceof St)n[a].push(s),s.provides&&r(s.provides,a);else if(s instanceof wf)n[a].push(s),s.facet.extensions&&r(s.facet.extensions,2);else{let c=s.extension;if(!c)throw new Error(`Unrecognized extension value in extension set (${s}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);r(c,a)}}(i,2),n.reduce((s,a)=>s.concat(a))}(t,e,s))h instanceof St?o.push(h):(r[h.facet.id]||(r[h.facet.id]=[])).push(h);let a=Object.create(null),l=[],c=[];for(let h of o)a[h.id]=c.length<<1,c.push(f=>h.slot(f));let d=n?.config.facets;for(let h in r){let f=r[h],m=f[0].facet,p=d&&d[h]||[];if(f.every(g=>0==g.type))if(a[m.id]=l.length<<1|1,Hv(p,f))l.push(n.facet(m));else{let g=m.combine(f.map(b=>b.value));l.push(n&&m.compare(g,n.facet(m))?n.facet(m):g)}else{for(let g of f)0==g.type?(a[g.id]=l.length<<1|1,l.push(g.value)):(a[g.id]=c.length<<1,c.push(b=>g.dynamicSlot(b)));a[m.id]=c.length<<1,c.push(g=>e7(g,m,f))}}let u=c.map(h=>h(a));return new kf(t,s,u,a,l,r)}}function Uc(i,t){if(1&t)return 2;let e=t>>1,n=i.status[e];if(4==n)throw new Error("Cyclic dependency between fields and/or facets");if(2&n)return n;i.status[e]=4;let o=i.computeSlot(i,i.config.dynamicSlots[e]);return i.status[e]=2|o}function Df(i,t){return 1&t?i.config.staticValues[t>>1]:i.values[t>>1]}const DT=H.define(),ST=H.define({combine:i=>i.some(t=>t),static:!0}),MT=H.define({combine:i=>i.length?i[0]:void 0,static:!0}),ET=H.define(),AT=H.define(),TT=H.define(),IT=H.define({combine:i=>!!i.length&&i[0]});class Bo{constructor(t,e){this.type=t,this.value=e}static define(){return new i7}}class i7{of(t){return new Bo(this,t)}}class n7{constructor(t){this.map=t}of(t){return new Ee(this,t)}}let Ee=(()=>{class i{constructor(e,n){this.type=e,this.value=n}map(e){let n=this.type.map(this.value,e);return void 0===n?void 0:n==this.value?this:new i(this.type,n)}is(e){return this.type==e}static define(e={}){return new n7(e.map||(n=>n))}static mapEffects(e,n){if(!e.length)return e;let o=[];for(let r of e){let s=r.map(n);s&&o.push(s)}return o}}return i.reconfigure=i.define(),i.appendConfig=i.define(),i})(),oo=(()=>{class i{constructor(e,n,o,r,s,a){this.startState=e,this.changes=n,this.selection=o,this.effects=r,this.annotations=s,this.scrollIntoView=a,this._doc=null,this._state=null,o&&xT(o,n.newLength),s.some(l=>l.type==i.time)||(this.annotations=s.concat(i.time.of(Date.now())))}static create(e,n,o,r,s,a){return new i(e,n,o,r,s,a)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let n of this.annotations)if(n.type==e)return n.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let n=this.annotation(i.userEvent);return!(!n||!(n==e||n.length>e.length&&n.slice(0,e.length)==e&&"."==n[e.length]))}}return i.time=Bo.define(),i.userEvent=Bo.define(),i.addToHistory=Bo.define(),i.remote=Bo.define(),i})();function o7(i,t){let e=[];for(let n=0,o=0;;){let r,s;if(n=i[n]))r=i[n++],s=i[n++];else{if(!(o=0;o--){let r=e[o](i);r&&Object.keys(r).length&&(n=OT(n,$v(t,r,i.changes.newLength),!0))}return n==i?i:oo.create(t,i.changes,i.selection,n.effects,n.annotations,n.scrollIntoView)}(e?function r7(i){let t=i.startState,e=!0;for(let o of t.facet(ET)){let r=o(i);if(!1===r){e=!1;break}Array.isArray(r)&&(e=!0===e?r:o7(e,r))}if(!0!==e){let o,r;if(!1===e)r=i.changes.invertedDesc,o=Ft.empty(t.doc.length);else{let s=i.changes.filter(e);o=s.changes,r=s.filtered.mapDesc(s.changes).invertedDesc}i=oo.create(t,o,i.selection&&i.selection.map(r),Ee.mapEffects(i.effects,r),i.annotations,i.scrollIntoView)}let n=t.facet(AT);for(let o=n.length-1;o>=0;o--){let r=n[o](i);i=r instanceof oo?r:Array.isArray(r)&&1==r.length&&r[0]instanceof oo?r[0]:RT(t,Ua(r),!1)}return i}(o):o)}const a7=[];function Ua(i){return null==i?a7:Array.isArray(i)?i:[i]}var ot=function(i){return i[i.Word=0]="Word",i[i.Space=1]="Space",i[i.Other=2]="Other",i}(ot||(ot={}));const l7=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Uv;try{Uv=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}let qi=(()=>{class i{constructor(e,n,o,r,s,a){this.config=e,this.doc=n,this.selection=o,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=s,a&&(a._state=this);for(let l=0;lr.set(c,l)),n=null),r.set(a.value.compartment,a.value.extension)):a.is(Ee.reconfigure)?(n=null,o=a.value):a.is(Ee.appendConfig)&&(n=null,o=Ua(o).concat(a.value));n?s=e.startState.values.slice():(n=kf.resolve(o,r,this),s=new i(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(l,c)=>c.reconfigure(l,this),null).values),new i(n,e.newDoc,e.newSelection,s,(a,l)=>l.update(a,e),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:e},range:E.cursor(n.from+e.length)}))}changeByRange(e){let n=this.selection,o=e(n.ranges[0]),r=this.changes(o.changes),s=[o.range],a=Ua(o.effects);for(let l=1;la.spec.fromJSON(l,c)))}return i.create({doc:e.doc,selection:E.fromJSON(e.selection),extensions:n.extensions?r.concat([n.extensions]):r})}static create(e={}){let n=kf.resolve(e.extensions||[],new Map),o=e.doc instanceof Le?e.doc:Le.of((e.doc||"").split(n.staticFacet(i.lineSeparator)||Nv)),r=e.selection?e.selection instanceof E?e.selection:E.single(e.selection.anchor,e.selection.head):E.single(0);return xT(r,o.length),n.staticFacet(ST)||(r=r.asSingle()),new i(n,o,r,n.dynamicSlots.map(()=>null),(s,a)=>a.create(s),null)}get tabSize(){return this.facet(i.tabSize)}get lineBreak(){return this.facet(i.lineSeparator)||"\n"}get readOnly(){return this.facet(IT)}phrase(e,...n){for(let o of this.facet(i.phrases))if(Object.prototype.hasOwnProperty.call(o,e)){e=o[e];break}return n.length&&(e=e.replace(/\$(\$|\d*)/g,(o,r)=>{if("$"==r)return"$";let s=+(r||1);return!s||s>n.length?o:n[s-1]})),e}languageDataAt(e,n,o=-1){let r=[];for(let s of this.facet(DT))for(let a of s(this,n,o))Object.prototype.hasOwnProperty.call(a,e)&&r.push(a[e]);return r}charCategorizer(e){return function d7(i){return t=>{if(!/\S/.test(t))return ot.Space;if(function c7(i){if(Uv)return Uv.test(i);for(let t=0;t"\x80"&&(e.toUpperCase()!=e.toLowerCase()||l7.test(e)))return!0}return!1}(t))return ot.Word;for(let e=0;e-1)return ot.Word;return ot.Other}}(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:n,from:o,length:r}=this.doc.lineAt(e),s=this.charCategorizer(e),a=e-o,l=e-o;for(;a>0;){let c=si(n,a,!1);if(s(n.slice(c,a))!=ot.Word)break;a=c}for(;lt.length?t[0]:4}),i.lineSeparator=MT,i.readOnly=IT,i.phrases=H.define({compare(t,e){let n=Object.keys(t),o=Object.keys(e);return n.length==o.length&&n.every(r=>t[r]==e[r])}}),i.languageData=DT,i.changeFilter=ET,i.transactionFilter=AT,i.transactionExtender=TT,i})();function Vn(i,t,e={}){let n={};for(let o of i)for(let r of Object.keys(o)){let s=o[r],a=n[r];if(void 0===a)n[r]=s;else if(a!==s&&void 0!==s){if(!Object.hasOwnProperty.call(e,r))throw new Error("Config merge conflict for field "+r);n[r]=e[r](a,s)}}for(let o in t)void 0===n[o]&&(n[o]=t[o]);return n}Cf.reconfigure=Ee.define();class gs{eq(t){return this==t}range(t,e=t){return Wc.create(t,e,this)}}gs.prototype.startSide=gs.prototype.endSide=0,gs.prototype.point=!1,gs.prototype.mapMode=Di.TrackDel;class Wc{constructor(t,e,n){this.from=t,this.to=e,this.value=n}static create(t,e,n){return new Wc(t,e,n)}}function Wv(i,t){return i.from-t.from||i.value.startSide-t.value.startSide}class Gv{constructor(t,e,n,o){this.from=t,this.to=e,this.value=n,this.maxPoint=o}get length(){return this.to[this.to.length-1]}findIndex(t,e,n,o=0){let r=n?this.to:this.from;for(let s=o,a=r.length;;){if(s==a)return s;let l=s+a>>1,c=r[l]-t||(n?this.value[l].endSide:this.value[l].startSide)-e;if(l==s)return c>=0?s:a;c>=0?a=l:s=l+1}}between(t,e,n,o){for(let r=this.findIndex(e,-1e9,!0),s=this.findIndex(n,1e9,!1,r);rf||h==f&&c.startSide>0&&c.endSide<=0)continue;(f-h||c.endSide-c.startSide)<0||(s<0&&(s=h),c.point&&(a=Math.max(a,f-h)),n.push(c),o.push(h-s),r.push(f-s))}return{mapped:n.length?new Gv(o,r,n,a):null,pos:s}}}let rt=(()=>{class i{constructor(e,n,o,r){this.chunkPos=e,this.chunk=n,this.nextLayer=o,this.maxPoint=r}static create(e,n,o,r){return new i(e,n,o,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let n of this.chunk)e+=n.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:n=[],sort:o=!1,filterFrom:r=0,filterTo:s=this.length}=e,a=e.filter;if(0==n.length&&!a)return this;if(o&&(n=n.slice().sort(Wv)),this.isEmpty)return n.length?i.of(n):this;let l=new PT(this,null,-1).goto(0),c=0,d=[],u=new _r;for(;l.value||c=0){let h=n[c++];u.addInner(h.from,h.to,h.value)||d.push(h)}else 1==l.rangeIndex&&l.chunkIndexthis.chunkEnd(l.chunkIndex)||sl.to||s=s&&e<=s+a.length&&!1===a.between(s,e-s,n-s,o))return}this.nextLayer.between(e,n,o)}}iter(e=0){return Gc.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,n=0){return Gc.from(e).goto(n)}static compare(e,n,o,r,s=-1){let a=e.filter(h=>h.maxPoint>0||!h.isEmpty&&h.maxPoint>=s),l=n.filter(h=>h.maxPoint>0||!h.isEmpty&&h.maxPoint>=s),c=FT(a,l,o),d=new qc(a,c,s),u=new qc(l,c,s);o.iterGaps((h,f,m)=>NT(d,h,u,f,m,r)),o.empty&&0==o.length&&NT(d,0,u,0,0,r)}static eq(e,n,o=0,r){null==r&&(r=999999999);let s=e.filter(u=>!u.isEmpty&&n.indexOf(u)<0),a=n.filter(u=>!u.isEmpty&&e.indexOf(u)<0);if(s.length!=a.length)return!1;if(!s.length)return!0;let l=FT(s,a),c=new qc(s,l,0).goto(o),d=new qc(a,l,0).goto(o);for(;;){if(c.to!=d.to||!Yv(c.active,d.active)||c.point&&(!d.point||!c.point.eq(d.point)))return!1;if(c.to>r)return!0;c.next(),d.next()}}static spans(e,n,o,r,s=-1){let a=new qc(e,null,s).goto(n),l=n,c=a.openStart;for(;;){let d=Math.min(a.to,o);if(a.point){let u=a.activeForPoint(a.to),h=a.pointFroml&&(r.span(l,d,a.active,c),c=a.openEnd(d));if(a.to>o)return c+(a.point&&a.to>o?1:0);l=a.to,a.next()}}static of(e,n=!1){let o=new _r;for(let r of e instanceof Wc?[e]:n?function u7(i){if(i.length>1)for(let t=i[0],e=1;e0)return i.slice().sort(Wv);t=n}return i}(e):e)o.add(r.from,r.to,r.value);return o.finish()}}return i.empty=new i([],[],null,-1),i})();rt.empty.nextLayer=rt.empty;class _r{finishChunk(t){this.chunks.push(new Gv(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,t&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(t,e,n){this.addInner(t,e,n)||(this.nextLayer||(this.nextLayer=new _r)).add(t,e,n)}addInner(t,e,n){let o=t-this.lastTo||n.startSide-this.last.endSide;if(o<=0&&(t-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(o<0||(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=t),this.from.push(t-this.chunkStart),this.to.push(e-this.chunkStart),this.last=n,this.lastFrom=t,this.lastTo=e,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,e-t)),0))}addChunk(t,e){if((t-this.lastTo||e.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,e.maxPoint),this.chunks.push(e),this.chunkPos.push(t);let n=e.value.length-1;return this.last=e.value[n],this.lastFrom=e.from[n]+t,this.lastTo=e.to[n]+t,!0}finish(){return this.finishInner(rt.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return t;let e=rt.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,e}}function FT(i,t,e){let n=new Map;for(let r of i)for(let s=0;s=this.minPoint)break}}}setRangeIndex(t){if(t==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=n&&o.push(new PT(s,e,n,r));return 1==o.length?o[0]:new Gc(o)}get startSide(){return this.value?this.value.startSide:0}goto(t,e=-1e9){for(let n of this.heap)n.goto(t,e);for(let n=this.heap.length>>1;n>=0;n--)qv(this.heap,n);return this.next(),this}forward(t,e){for(let n of this.heap)n.forward(t,e);for(let n=this.heap.length>>1;n>=0;n--)qv(this.heap,n);(this.to-t||this.value.endSide-e)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let t=this.heap[0];this.from=t.from,this.to=t.to,this.value=t.value,this.rank=t.rank,t.value&&t.next(),qv(this.heap,0)}}}function qv(i,t){for(let e=i[t];;){let n=1+(t<<1);if(n>=i.length)break;let o=i[n];if(n+1=0&&(o=i[n+1],n++),e.compare(o)<0)break;i[n]=e,i[t]=o,t=n}}class qc{constructor(t,e,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Gc.from(t,e,n)}goto(t,e=-1e9){return this.cursor.goto(t,e),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=t,this.endSide=e,this.openStart=-1,this.next(),this}forward(t,e){for(;this.minActive>-1&&(this.activeTo[this.minActive]-t||this.active[this.minActive].endSide-e)<0;)this.removeActive(this.minActive);this.cursor.forward(t,e)}removeActive(t){Sf(this.active,t),Sf(this.activeTo,t),Sf(this.activeRank,t),this.minActive=LT(this.active,this.activeTo)}addActive(t){let e=0,{value:n,to:o,rank:r}=this.cursor;for(;e-1&&(this.activeTo[o]-this.cursor.from||this.active[o].endSide-this.cursor.startSide)<0){if(this.activeTo[o]>t){this.to=this.activeTo[o],this.endSide=this.active[o].endSide;break}this.removeActive(o),n&&Sf(n,o)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let r=this.cursor.value;if(r.point){if(!(e&&this.cursor.to==this.to&&this.cursor.from=0&&n[o]=0&&!(this.activeRank[n]t||this.activeTo[n]==t&&this.active[n].endSide>=this.point.endSide)&&e.push(this.active[n]);return e.reverse()}openEnd(t){let e=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>t;n--)e++;return e}}function NT(i,t,e,n,o,r){i.goto(t),e.goto(n);let s=n+o,a=n,l=n-t;for(;;){let c=i.to+l-e.to||i.endSide-e.endSide,d=c<0?i.to+l:e.to,u=Math.min(d,s);if(i.point||e.point?i.point&&e.point&&(i.point==e.point||i.point.eq(e.point))&&Yv(i.activeForPoint(i.to),e.activeForPoint(e.to))||r.comparePoint(a,u,i.point,e.point):u>a&&!Yv(i.active,e.active)&&r.compareRange(a,u,i.active,e.active),d>s)break;a=d,c<=0&&i.next(),c>=0&&e.next()}}function Yv(i,t){if(i.length!=t.length)return!1;for(let e=0;e=t;n--)i[n+1]=i[n];i[t]=e}function LT(i,t){let e=-1,n=1e9;for(let o=0;o=t)return o;if(o==i.length)break;r+=9==i.charCodeAt(o)?e-r%e:1,o=si(i,o)}return!0===n?-1:i.length}const BT=typeof Symbol>"u"?"__\u037c":Symbol.for("\u037c"),Zv=typeof Symbol>"u"?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),VT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class br{constructor(t,e){this.rules=[];let{finish:n}=e||{};function o(s){return/^@/.test(s)?[s]:s.split(/,\s*/)}function r(s,a,l,c){let d=[],u=/^@(\w+)\b/.exec(s[0]),h=u&&"keyframes"==u[1];if(u&&null==a)return l.push(s[0]+";");for(let f in a){let m=a[f];if(/&/.test(f))r(f.split(/,\s*/).map(p=>s.map(g=>p.replace(/&/,g))).reduce((p,g)=>p.concat(g)),m,l);else if(m&&"object"==typeof m){if(!u)throw new RangeError("The value of a property ("+f+") should be a primitive value.");r(o(f),m,d,h)}else null!=m&&d.push(f.replace(/_.*/,"").replace(/[A-Z]/g,p=>"-"+p.toLowerCase())+": "+m+";")}(d.length||h)&&l.push((!n||u||c?s:s.map(n)).join(", ")+" {"+d.join(" ")+"}")}for(let s in t)r(o(s),t[s],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let t=VT[BT]||1;return VT[BT]=t+1,"\u037c"+t.toString(36)}static mount(t,e,n){let o=t[Zv],r=n&&n.nonce;o?r&&o.setNonce(r):o=new h7(t,r),o.mount(Array.isArray(e)?e:[e])}}let HT=new Map;class h7{constructor(t,e){let n=t.ownerDocument||t,o=n.defaultView;if(!t.head&&t.adoptedStyleSheets&&o.CSSStyleSheet){let r=HT.get(n);if(r)return t.adoptedStyleSheets=[r.sheet,...t.adoptedStyleSheets],t[Zv]=r;this.sheet=new o.CSSStyleSheet,t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets],HT.set(n,this)}else{this.styleTag=n.createElement("style"),e&&this.styleTag.setAttribute("nonce",e);let r=t.head||t;r.insertBefore(this.styleTag,r.firstChild)}this.modules=[],t[Zv]=this}mount(t){let e=this.sheet,n=0,o=0;for(let r=0;r-1&&(this.modules.splice(a,1),o--,a=-1),-1==a){if(this.modules.splice(o++,0,s),e)for(let l=0;l",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},f7=typeof navigator<"u"&&/Mac/.test(navigator.platform),m7=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Yt=0;Yt<10;Yt++)vr[48+Yt]=vr[96+Yt]=String(Yt);for(Yt=1;Yt<=24;Yt++)vr[Yt+111]="F"+Yt;for(Yt=65;Yt<=90;Yt++)vr[Yt]=String.fromCharCode(Yt+32),Yc[Yt]=String.fromCharCode(Yt);for(var Qv in vr)Yc.hasOwnProperty(Qv)||(Yc[Qv]=vr[Qv]);function Ef(i){let t;return t=11==i.nodeType?i.getSelection?i:i.ownerDocument:i,t.getSelection()}function Jv(i,t){return!!t&&(i==t||i.contains(1!=t.nodeType?t.parentNode:t))}function Af(i,t){if(!t.anchorNode)return!1;try{return Jv(i,t.anchorNode)}catch{return!1}}function Ga(i){return 3==i.nodeType?_s(i,0,i.nodeValue.length).getClientRects():1==i.nodeType?i.getClientRects():[]}function Tf(i,t,e,n){return!!e&&(zT(i,t,e,n,-1)||zT(i,t,e,n,1))}function Xc(i){for(var t=0;;t++)if(!(i=i.previousSibling))return t}function zT(i,t,e,n,o){for(;;){if(i==e&&t==n)return!0;if(t==(o<0?0:Vo(i))){if("DIV"==i.nodeName)return!1;let r=i.parentNode;if(!r||1!=r.nodeType)return!1;t=Xc(i)+(o<0?0:1),i=r}else{if(1!=i.nodeType)return!1;if(1==(i=i.childNodes[t+(o<0?-1:0)]).nodeType&&"false"==i.contentEditable)return!1;t=o<0?Vo(i):0}}}function Vo(i){return 3==i.nodeType?i.nodeValue.length:i.childNodes.length}function If(i,t){let e=t?i.left:i.right;return{left:e,right:e,top:i.top,bottom:i.bottom}}function _7(i){return{left:0,right:i.innerWidth,top:0,bottom:i.innerHeight}}class y7{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}setRange(t){let{anchorNode:e,focusNode:n}=t;this.set(e,Math.min(t.anchorOffset,e?Vo(e):0),n,Math.min(t.focusOffset,n?Vo(n):0))}set(t,e,n,o){this.anchorNode=t,this.anchorOffset=e,this.focusNode=n,this.focusOffset=o}}let $T,qa=null;function jT(i){if(i.setActive)return i.setActive();if(qa)return i.focus(qa);let t=[];for(let e=i;e&&(t.push(e,e.scrollTop,e.scrollLeft),e!=e.ownerDocument);e=e.parentNode);if(i.focus(null==qa?{get preventScroll(){return qa={preventScroll:!0},!0}}:void 0),!qa){qa=!1;for(let e=0;eMath.max(1,i.scrollHeight-i.clientHeight-4)}class li{constructor(t,e,n=!0){this.node=t,this.offset=e,this.precise=n}static before(t,e){return new li(t.parentNode,Xc(t),e)}static after(t,e){return new li(t.parentNode,Xc(t)+1,e)}}const ey=[];class et{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(t){let e=this.posAtStart;for(let n of this.children){if(n==t)return e;e+=n.length+n.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(t){return this.posBefore(t)+t.length}sync(t,e){if(2&this.flags){let r,n=this.dom,o=null;for(let s of this.children){if(7&s.flags){if(!s.dom&&(r=o?o.nextSibling:n.firstChild)){let a=et.get(r);(!a||!a.parent&&a.canReuseDOM(s))&&s.reuseDOM(r)}s.sync(t,e),s.flags&=-8}if(r=o?o.nextSibling:n.firstChild,e&&!e.written&&e.node==n&&r!=s.dom&&(e.written=!0),s.dom.parentNode==n)for(;r&&r!=s.dom;)r=GT(r);else n.insertBefore(s.dom,r);o=s.dom}for(r=o?o.nextSibling:n.firstChild,r&&e&&e.node==n&&(e.written=!0);r;)r=GT(r)}else if(1&this.flags)for(let n of this.children)7&n.flags&&(n.sync(t,e),n.flags&=-8)}reuseDOM(t){}localPosFromDOM(t,e){let n;if(t==this.dom)n=this.dom.childNodes[e];else{let o=0==Vo(t)?0:0==e?-1:1;for(;;){let r=t.parentNode;if(r==this.dom)break;0==o&&r.firstChild!=r.lastChild&&(o=t==r.firstChild?-1:1),t=r}n=o<0?t:t.nextSibling}if(n==this.dom.firstChild)return 0;for(;n&&!et.get(n);)n=n.nextSibling;if(!n)return this.length;for(let o=0,r=0;;o++){let s=this.children[o];if(s.dom==n)return r;r+=s.length+s.breakAfter}}domBoundsAround(t,e,n=0){let o=-1,r=-1,s=-1,a=-1;for(let l=0,c=n,d=n;le)return u.domBoundsAround(t,e,c);if(h>=t&&-1==o&&(o=l,r=c),c>e&&u.dom.parentNode==this.dom){s=l,a=d;break}d=h,c=h+u.breakAfter}return{from:r,to:a<0?n+this.length:a,startDOM:(o?this.children[o-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:s=0?this.children[s].dom:null}}markDirty(t=!1){this.flags|=2,this.markParentsDirty(t)}markParentsDirty(t){for(let e=this.parent;e;e=e.parent){if(t&&(e.flags|=2),1&e.flags)return;e.flags|=1,t=!1}}setParent(t){this.parent!=t&&(this.parent=t,7&this.flags&&this.markParentsDirty(!0))}setDOM(t){this.dom!=t&&(this.dom&&(this.dom.cmView=null),this.dom=t,t.cmView=this)}get rootView(){for(let t=this;;){let e=t.parent;if(!e)return t;t=e}}replaceChildren(t,e,n=ey){this.markDirty();for(let o=t;othis.pos||t==this.pos&&(e>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=t-this.pos,this;let n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}function YT(i,t,e,n,o,r,s,a,l){let{children:c}=i,d=c.length?c[t]:null,u=r.length?r[r.length-1]:null,h=u?u.breakAfter:s;if(!(t==n&&d&&!s&&!h&&r.length<2&&d.merge(e,o,r.length?u:null,0==e,a,l))){if(n0&&(!s&&r.length&&d.merge(e,d.length,r[0],!1,a,0)?d.breakAfter=r.shift().breakAfter:(e2);var G={mac:eI||/Mac/.test(Yi.platform),windows:/Win/.test(Yi.platform),linux:/Linux|X11/.test(Yi.platform),ie:Of,ie_version:KT?ty.documentMode||6:ny?+ny[1]:iy?+iy[1]:0,gecko:ZT,gecko_version:ZT?+(/Firefox\/(\d+)/.exec(Yi.userAgent)||[0,0])[1]:0,chrome:!!oy,chrome_version:oy?+oy[1]:0,ios:eI,android:/Android\b/.test(Yi.userAgent),webkit:QT,safari:JT,webkit_version:QT?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=ty.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class Ho extends et{constructor(t){super(),this.text=t}get length(){return this.text.length}createDOM(t){this.setDOM(t||document.createTextNode(this.text))}sync(t,e){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(e&&e.node==this.dom&&(e.written=!0),this.dom.nodeValue=this.text)}reuseDOM(t){3==t.nodeType&&this.createDOM(t)}merge(t,e,n){return!(8&this.flags||n&&(!(n instanceof Ho)||this.length-(e-t)+n.length>256||8&n.flags)||(this.text=this.text.slice(0,t)+(n?n.text:"")+this.text.slice(e),this.markDirty(),0))}split(t){let e=new Ho(this.text.slice(t));return this.text=this.text.slice(0,t),this.markDirty(),e.flags|=8&this.flags,e}localPosFromDOM(t,e){return t==this.dom?e:e?this.text.length:0}domAtPos(t){return new li(this.dom,t)}domBoundsAround(t,e,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(t,e){return function k7(i,t,e){let n=i.nodeValue.length;t>n&&(t=n);let o=t,r=t,s=0;0==t&&e<0||t==n&&e>=0?G.chrome||G.gecko||(t?(o--,s=1):r=0)?0:a.length-1];return G.safari&&!s&&0==l.width&&(l=Array.prototype.find.call(a,c=>c.width)||l),s?If(l,s<0):l||null}(this.dom,t,e)}}class zo extends et{constructor(t,e=[],n=0){super(),this.mark=t,this.children=e,this.length=n;for(let o of e)o.setParent(this)}setAttrs(t){if(UT(t),this.mark.class&&(t.className=this.mark.class),this.mark.attrs)for(let e in this.mark.attrs)t.setAttribute(e,this.mark.attrs[e]);return t}canReuseDOM(t){return super.canReuseDOM(t)&&!(8&(this.flags|t.flags))}reuseDOM(t){t.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(t),this.flags|=6)}sync(t,e){this.dom?4&this.flags&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(t,e)}merge(t,e,n,o,r,s){return!(n&&(!(n instanceof zo&&n.mark.eq(this.mark))||t&&r<=0||et&&e.push(n=t&&(o=r),n=l,r++}let s=this.length-t;return this.length=t,o>-1&&(this.children.length=o,this.markDirty()),new zo(this.mark,e,s)}domAtPos(t){return tI(this,t)}coordsAt(t,e){return nI(this,t,e)}}class yr extends et{static create(t,e,n){return new yr(t,e,n)}constructor(t,e,n){super(),this.widget=t,this.length=e,this.side=n,this.prevWidget=null}split(t){let e=yr.create(this.widget,this.length-t,this.side);return this.length-=t,e}sync(t){(!this.dom||!this.widget.updateDOM(this.dom,t))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(t)),this.dom.contentEditable="false")}getSide(){return this.side}merge(t,e,n,o,r,s){return!(n&&(!(n instanceof yr&&this.widget.compare(n.widget))||t>0&&r<=0||e0)?li.before(this.dom):li.after(this.dom,t==this.length)}domBoundsAround(){return null}coordsAt(t,e){let n=this.widget.coordsAt(this.dom,t,e);if(n)return n;let o=this.dom.getClientRects(),r=null;if(!o.length)return null;let s=this.side?this.side<0:t>0;for(let a=s?o.length-1:0;r=o[a],!(t>0?0==a:a==o.length-1||r.top0?li.before(this.dom):li.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){return this.dom.getBoundingClientRect()}get overrideDOMText(){return Le.empty}get isHidden(){return!0}}function tI(i,t){let e=i.dom,{children:n}=i,o=0;for(let r=0;or&&t0;r--){let s=n[r-1];if(s.dom.parentNode==e)return s.domAtPos(s.length)}for(let r=o;r0&&t instanceof zo&&o.length&&(n=o[o.length-1])instanceof zo&&n.mark.eq(t.mark)?iI(n,t.children[0],e-1):(o.push(t),t.setParent(i)),i.length+=t.length}function nI(i,t,e){let n=null,o=-1,r=null,s=-1;!function a(c,d){for(let u=0,h=0;u=d&&(f.children.length?a(f,d-h):(!r||r.isHidden&&e>0)&&(m>d||h==m&&f.getSide()>0)?(r=f,s=d-h):(h-1?1:0)!=o.length-(e&&o.indexOf(e)>-1?1:0))return!1;for(let r of n)if(r!=e&&(-1==o.indexOf(r)||i[r]!==t[r]))return!1;return!0}function ay(i,t,e){let n=!1;if(t)for(let o in t)e&&o in e||(n=!0,"style"==o?i.style.cssText="":i.removeAttribute(o));if(e)for(let o in e)t&&t[o]==e[o]||(n=!0,"style"==o?i.style.cssText=e[o]:i.setAttribute(o,e[o]));return n}function S7(i){let t=Object.create(null);for(let e=0;e0&&0==this.children[n-1].length;)this.children[--n].destroy();return this.children.length=n,this.markDirty(),this.length=t,e}transferDOM(t){this.dom&&(this.markDirty(),t.setDOM(this.dom),t.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(t){sy(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}append(t,e){iI(this,t,e)}addLineDeco(t){let e=t.spec.attributes,n=t.spec.class;e&&(this.attrs=ry(e,this.attrs||{})),n&&(this.attrs=ry({class:n},this.attrs||{}))}domAtPos(t){return tI(this,t)}reuseDOM(t){"DIV"==t.nodeName&&(this.setDOM(t),this.flags|=6)}sync(t,e){var n;this.dom?4&this.flags&&(UT(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(ay(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(t,e);let o=this.dom.lastChild;for(;o&&et.get(o)instanceof zo;)o=o.lastChild;if(!(o&&this.length&&("BR"==o.nodeName||0!=(null===(n=et.get(o))||void 0===n?void 0:n.isEditable)||G.ios&&this.children.some(r=>r instanceof Ho)))){let r=document.createElement("BR");r.cmIgnore=!0,this.dom.appendChild(r)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let e,t=0;for(let n of this.children){if(!(n instanceof Ho)||/[^ -~]/.test(n.text))return null;let o=Ga(n.dom);if(1!=o.length)return null;t+=o[0].width,e=o[0].height}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:e}:null}coordsAt(t,e){let n=nI(this,t,e);if(!this.children.length&&n&&this.parent){let{heightOracle:o}=this.parent.view.viewState,r=n.bottom-n.top;if(Math.abs(r-o.lineHeight)<2&&o.textHeight=e){if(r instanceof Pt)return r;if(s>e)break}o=s+r.breakAfter}return null}}class xr extends et{constructor(t,e,n){super(),this.widget=t,this.length=e,this.deco=n,this.breakAfter=0,this.prevWidget=null}merge(t,e,n,o,r,s){return!(n&&(!(n instanceof xr&&this.widget.compare(n.widget))||t>0&&r<=0||e0)}}class jo{eq(t){return!1}updateDOM(t,e){return!1}compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(t){return!0}coordsAt(t,e,n){return null}get isHidden(){return!1}destroy(t){}}var Si=function(i){return i[i.Text=0]="Text",i[i.WidgetBefore=1]="WidgetBefore",i[i.WidgetAfter=2]="WidgetAfter",i[i.WidgetRange=3]="WidgetRange",i}(Si||(Si={}));class Y extends gs{constructor(t,e,n,o){super(),this.startSide=t,this.endSide=e,this.widget=n,this.spec=o}get heightRelevant(){return!1}static mark(t){return new Kc(t)}static widget(t){let e=Math.max(-1e4,Math.min(1e4,t.side||0)),n=!!t.block;return e+=n&&!t.inlineOrder?e>0?3e8:-4e8:e>0?1e8:-1e8,new wr(t,e,e,n,t.widget||null,!1)}static replace(t){let n,o,e=!!t.block;if(t.isBlockGap)n=-5e8,o=4e8;else{let{start:r,end:s}=rI(t,e);n=(r?e?-3e8:-1:5e8)-1,o=1+(s?e?2e8:1:-6e8)}return new wr(t,n,o,e,t.widget||null,!0)}static line(t){return new Zc(t)}static set(t,e=!1){return rt.of(t,e)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}Y.none=rt.empty;class Kc extends Y{constructor(t){let{start:e,end:n}=rI(t);super(e?-1:5e8,n?1:-6e8,null,t),this.tagName=t.tagName||"span",this.class=t.class||"",this.attrs=t.attributes||null}eq(t){var e,n;return this==t||t instanceof Kc&&this.tagName==t.tagName&&(this.class||(null===(e=this.attrs)||void 0===e?void 0:e.class))==(t.class||(null===(n=t.attrs)||void 0===n?void 0:n.class))&&sy(this.attrs,t.attrs,"class")}range(t,e=t){if(t>=e)throw new RangeError("Mark decorations may not be empty");return super.range(t,e)}}Kc.prototype.point=!1;class Zc extends Y{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof Zc&&this.spec.class==t.spec.class&&sy(this.spec.attributes,t.spec.attributes)}range(t,e=t){if(e!=t)throw new RangeError("Line decoration ranges must be zero-length");return super.range(t,e)}}Zc.prototype.mapMode=Di.TrackBefore,Zc.prototype.point=!0;class wr extends Y{constructor(t,e,n,o,r,s){super(e,n,r,t),this.block=o,this.isReplace=s,this.mapMode=o?e<=0?Di.TrackBefore:Di.TrackAfter:Di.TrackDel}get type(){return this.startSide!=this.endSide?Si.WidgetRange:this.startSide<=0?Si.WidgetBefore:Si.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof wr&&function M7(i,t){return i==t||!!(i&&t&&i.compare(t))}(this.widget,t.widget)&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide}range(t,e=t){if(this.isReplace&&(t>e||t==e&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&e!=t)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(t,e)}}function rI(i,t=!1){let{inclusiveStart:e,inclusiveEnd:n}=i;return null==e&&(e=i.inclusive),null==n&&(n=i.inclusive),{start:e??t,end:n??t}}function ly(i,t,e,n=0){let o=e.length-1;o>=0&&e[o]+n>=i?e[o]=Math.max(e[o],t):e.push(i,t)}wr.prototype.point=!0;class Qc{constructor(t,e,n,o){this.doc=t,this.pos=e,this.end=n,this.disallowBlockEffectsFor=o,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=t.iter(),this.skip=e}posCovered(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let t=this.content[this.content.length-1];return!(t.breakAfter||t instanceof xr&&t.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new Pt),this.atCursorPos=!0),this.curLine}flushBuffer(t=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(Rf(new Xa(-1),t),t.length),this.pendingBuffer=0)}addBlockWidget(t){this.flushBuffer(),this.curLine=null,this.content.push(t)}finish(t){this.pendingBuffer&&t<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(t&&this.content.length&&this.content[this.content.length-1]instanceof xr)&&this.getLine()}buildText(t,e,n){for(;t>0;){if(this.textOff==this.text.length){let{value:r,lineBreak:s,done:a}=this.cursor.next(this.skip);if(this.skip=0,a)throw new Error("Ran out of text content when drawing inline views");if(s){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,t--;continue}this.text=r,this.textOff=0}let o=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(e.slice(e.length-n)),this.getLine().append(Rf(new Ho(this.text.slice(this.textOff,this.textOff+o)),e),n),this.atCursorPos=!0,this.textOff+=o,t-=o,n=0}}span(t,e,n,o){this.buildText(e-t,n,o),this.pos=e,this.openStart<0&&(this.openStart=o)}point(t,e,n,o,r,s){if(this.disallowBlockEffectsFor[s]&&n instanceof wr){if(n.block)throw new RangeError("Block decorations may not be specified via plugins");if(e>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let a=e-t;if(n instanceof wr)if(n.block)n.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new xr(n.widget||new sI("div"),a,n));else{let l=yr.create(n.widget||new sI("span"),a,a?0:n.startSide),c=this.atCursorPos&&!l.isEditable&&r<=o.length&&(t0),d=!l.isEditable&&(to.length||n.startSide<=0),u=this.getLine();2==this.pendingBuffer&&!c&&!l.isEditable&&(this.pendingBuffer=0),this.flushBuffer(o),c&&(u.append(Rf(new Xa(1),o),r),r=o.length+Math.max(0,r-o.length)),u.append(Rf(l,o),r),this.atCursorPos=d,this.pendingBuffer=d?to.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=o.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(n);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=e),this.openStart<0&&(this.openStart=r)}static build(t,e,n,o,r){let s=new Qc(t,e,n,r);return s.openEnd=rt.spans(o,e,n,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}}function Rf(i,t){for(let e of t)i=new zo(e,[i],i.length);return i}class sI extends jo{constructor(t){super(),this.tag=t}eq(t){return t.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(t){return t.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}const aI=H.define(),lI=H.define(),cI=H.define(),dI=H.define(),cy=H.define(),uI=H.define(),hI=H.define(),fI=H.define({combine:i=>i.some(t=>t)}),mI=H.define({combine:i=>i.some(t=>t)});class Ff{constructor(t,e="nearest",n="nearest",o=5,r=5){this.range=t,this.y=e,this.x=n,this.yMargin=o,this.xMargin=r}map(t){return t.empty?this:new Ff(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin)}}const pI=Ee.define({map:(i,t)=>i.map(t)});function Hn(i,t,e){let n=i.facet(dI);n.length?n[0](t):window.onerror?window.onerror(String(t),e,void 0,void 0,t):e?console.error(e+":",t):console.error(t)}const Pf=H.define({combine:i=>!i.length||i[0]});let E7=0;const Jc=H.define();class gt{constructor(t,e,n,o,r){this.id=t,this.create=e,this.domEventHandlers=n,this.domEventObservers=o,this.extension=r(this)}static define(t,e){const{eventHandlers:n,eventObservers:o,provide:r,decorations:s}=e||{};return new gt(E7++,t,n,o,a=>{let l=[Jc.of(a)];return s&&l.push(ed.of(c=>{let d=c.plugin(a);return d?s(d):Y.none})),r&&l.push(r(a)),l})}static fromClass(t,e){return gt.define(n=>new t(n),e)}}class dy{constructor(t){this.spec=t,this.mustUpdate=null,this.value=null}update(t){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(n){if(Hn(e.state,n,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(t)}catch(e){Hn(t.state,e,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(t){var e;if(null!==(e=this.value)&&void 0!==e&&e.destroy)try{this.value.destroy()}catch(n){Hn(t.state,n,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const gI=H.define(),Nf=H.define(),ed=H.define(),uy=H.define(),_I=H.define();function bI(i,t,e){let n=i.state.facet(_I);if(!n.length)return n;let o=n.map(s=>s instanceof Function?s(i):s),r=[];return rt.spans(o,t,e,{point(){},span(s,a,l,c){let d=r;for(let u=l.length-1;u>=0;u--,c--){let f,h=l[u].spec.bidiIsolate;if(null!=h)if(c>0&&d.length&&(f=d[d.length-1]).to==s&&f.direction==h)f.to=a,d=f.inner;else{let m={from:s,to:a,direction:h,inner:[]};d.push(m),d=m.inner}}}}),r}const vI=H.define();function yI(i){let t=0,e=0,n=0,o=0;for(let r of i.state.facet(vI)){let s=r(i);s&&(null!=s.left&&(t=Math.max(t,s.left)),null!=s.right&&(e=Math.max(e,s.right)),null!=s.top&&(n=Math.max(n,s.top)),null!=s.bottom&&(o=Math.max(o,s.bottom)))}return{left:t,right:e,top:n,bottom:o}}const td=H.define();class Xi{constructor(t,e,n,o){this.fromA=t,this.toA=e,this.fromB=n,this.toB=o}join(t){return new Xi(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let e=t.length,n=this;for(;e>0;e--){let o=t[e-1];if(!(o.fromA>n.toA)){if(o.toAd)break;r+=2}if(!l)return n;new Xi(l.fromA,l.toA,l.fromB,l.toB).addToSet(n),s=l.toA,a=l.toB}}}class Lf{constructor(t,e,n){this.view=t,this.state=e,this.transactions=n,this.flags=0,this.startState=t.state,this.changes=Ft.empty(this.startState.doc.length);for(let r of n)this.changes=this.changes.compose(r.changes);let o=[];this.changes.iterChangedRanges((r,s,a,l)=>o.push(new Xi(r,s,a,l))),this.changedRanges=o}static create(t,e,n){return new Lf(t,e,n)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(t=>t.selection)}get empty(){return 0==this.flags&&0==this.transactions.length}}var ut=function(i){return i[i.LTR=0]="LTR",i[i.RTL=1]="RTL",i}(ut||(ut={}));const id=ut.LTR,xI=ut.RTL;function wI(i){let t=[];for(let e=0;e=e){if(a.level==n)return s;(r<0||(0!=o?o<0?a.frome:t[r].level>a.level))&&(r=s)}}if(r<0)throw new RangeError("Index out of range");return r}}function CI(i,t){if(i.length!=t.length)return!1;for(let e=0;el&&s.push(new Cr(l,p.from,f)),my(i,p.direction==id!=!(f%2)?n+1:n,o,p.inner,p.from,p.to,s),l=p.to),m=p.to}else{if(m==e||(d?Ue[m]!=a:Ue[m]==a))break;m++}h?fy(i,l,m,n+1,o,h,s):lt;){let d=!0,u=!1;if(!c||l>r[c-1].to){let p=Ue[l-1];p!=a&&(d=!1,u=16==p)}let h=d||1!=a?null:[],f=d?n:n+1,m=l;e:for(;;)if(c&&m==r[c-1].to){if(u)break e;let p=r[--c];if(!d)for(let g=p.from,b=c;;){if(g==t)break e;if(!b||r[b-1].to!=g){if(Ue[g-1]==a)break e;break}g=r[--b].from}h?h.push(p):(p.to=0;p-=3)if(ro[p+1]==-f){let g=ro[p+2],b=2&g?o:4&g?1&g?r:o:0;b&&(Ue[u]=Ue[ro[p]]=b),a=p;break}}else{if(189==ro.length)break;ro[a++]=u,ro[a++]=h,ro[a++]=l}else if(2==(m=Ue[u])||1==m){let p=m==o;l=p?0:1;for(let g=a-3;g>=0;g-=3){let b=ro[g+2];if(2&b)break;if(p)ro[g+2]|=2;else{if(4&b)break;ro[g+2]|=4}}}}}(i,o,r,n,a),function P7(i,t,e,n){for(let o=0,r=n;o<=e.length;o++){let a=ol;)m==g&&(m=e[--p].from,g=p?e[p-1].to:i),Ue[--m]=f;l=d}else r=c,l++}}}(o,r,n,a),fy(i,o,r,t,e,n,s)}function DI(i){return[new Cr(0,i,0)]}let SI="";function MI(i,t,e,n,o){var r;let s=n.head-i.from,a=-1;if(0==s){if(!o||!i.length)return null;t[0].level!=e&&(s=t[0].side(!1,e),a=0)}else if(s==i.length){if(o)return null;let h=t[t.length-1];h.level!=e&&(s=h.side(!0,e),a=t.length-1)}a<0&&(a=Cr.find(t,s,null!==(r=n.bidiLevel)&&void 0!==r?r:-1,n.assoc));let l=t[a];s==l.side(o,e)&&(l=t[a+=o?1:-1],s=l.side(!o,e));let c=o==(l.dir==e),d=si(i.text,s,c);if(SI=i.text.slice(Math.min(s,d),Math.max(s,d)),d!=l.side(o,e))return E.cursor(d+i.from,c?-1:1,l.level);let u=a==(o?t.length-1:0)?null:t[a+(o?1:-1)];return u||l.level==e?u&&u.level0&&n.length&&(n.every(({fromA:c,toA:d})=>dthis.minWidthTo)?(this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let o=-1;this.view.inputState.composing>=0&&(null!==(e=this.domChanged)&&void 0!==e&&e.newSel?o=this.domChanged.newSel.head:!function j7(i,t){let e=!1;return t&&i.iterChangedRanges((n,o)=>{nt.from&&(e=!0)}),e}(t.changes,this.hasComposition)&&!t.selectionSet&&(o=t.state.selection.main.head));let r=o>-1?function L7(i,t,e){let n=TI(i,e);if(!n)return null;let{node:o,from:r,to:s}=n,a=o.nodeValue;if(/[\n\r]/.test(a)||i.state.doc.sliceString(n.from,n.to)!=a)return null;let l=t.invertedDesc,c=new Xi(l.mapPos(r),l.mapPos(s),r,s),d=[];for(let u=o.parentNode;;u=u.parentNode){let h=et.get(u);if(h instanceof zo)d.push({node:u,deco:h.mark});else{if(h instanceof Pt||"DIV"==u.nodeName&&u.parentNode==i.contentDOM)return{range:c,text:o,marks:d,line:u};if(u==i.contentDOM)return null;d.push({node:u,deco:new Kc({inclusive:!0,attributes:S7(u),tagName:u.tagName.toLowerCase()})})}}}(this.view,t.changes,o):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:c,to:d}=this.hasComposition;n=new Xi(c,d,t.changes.mapPos(c,-1),t.changes.mapPos(d,1)).addToSet(n.slice())}this.hasComposition=r?{from:r.range.fromB,to:r.range.toB}:null,(G.ie||G.chrome)&&!r&&t&&t.state.doc.lines!=t.startState.doc.lines&&(this.forceSelection=!0);let l=function H7(i,t,e){let n=new V7;return rt.compare(i,t,e,n),n.changes}(this.decorations,this.updateDeco(),t.changes);return n=Xi.extendWithRanges(n,l),!!(7&this.flags||0!=n.length)&&(this.updateInner(n,t.startState.doc.length,r),t.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(t,e,n){this.view.viewState.mustMeasureContent=!0,this.updateChildren(t,e,n);let{observer:o}=this.view;o.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let s=G.chrome||G.ios?{node:o.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,s),this.flags&=-8,s&&(s.written||o.selectionRange.focusNode!=s.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(s=>s.flags&=-9);let r=[];if(this.view.viewport.from||this.view.viewport.to=0?o[s]:null;if(!a)break;let h,f,m,p,{fromA:l,toA:c,fromB:d,toB:u}=a;if(n&&n.range.fromBd){let y=Qc.build(this.view.state.doc,d,n.range.fromB,this.decorations,this.dynamicDecorationMap),w=Qc.build(this.view.state.doc,n.range.toB,u,this.decorations,this.dynamicDecorationMap);f=y.breakAtStart,m=y.openStart,p=w.openEnd;let M=this.compositionView(n);w.breakAtStart?M.breakAfter=1:w.content.length&&M.merge(M.length,M.length,w.content[0],!1,w.openStart,0)&&(M.breakAfter=w.content[0].breakAfter,w.content.shift()),y.content.length&&M.merge(0,0,y.content[y.content.length-1],!0,0,y.openEnd)&&y.content.pop(),h=y.content.concat(M).concat(w.content)}else({content:h,breakAtStart:f,openStart:m,openEnd:p}=Qc.build(this.view.state.doc,d,u,this.decorations,this.dynamicDecorationMap));let{i:g,off:b}=r.findPos(c,1),{i:v,off:x}=r.findPos(l,-1);YT(this,v,x,g,b,h,f,m,p)}n&&this.fixCompositionDOM(n)}compositionView(t){let e=new Ho(t.text.nodeValue);e.flags|=8;for(let{deco:o}of t.marks)e=new zo(o,[e],e.length);let n=new Pt;return n.append(e,0),n}fixCompositionDOM(t){let e=(r,s)=>{s.flags|=8|(s.children.some(l=>7&l.flags)?1:0),this.markedForComposition.add(s);let a=et.get(r);a&&a!=s&&(a.dom=null),s.setDOM(r)},n=this.childPos(t.range.fromB,1),o=this.children[n.i];e(t.line,o);for(let r=t.marks.length-1;r>=-1;r--)n=o.childPos(n.off,1),o=o.children[n.i],e(r>=0?t.marks[r].node:t.text,o)}updateSelection(t=!1,e=!1){(t||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let n=this.view.root.activeElement,o=n==this.dom,r=!o&&Af(this.dom,this.view.observer.selectionRange)&&!(n&&this.dom.contains(n));if(!(o||e||r))return;let s=this.forceSelection;this.forceSelection=!1;let a=this.view.state.selection.main,l=this.moveToLine(this.domAtPos(a.anchor)),c=a.empty?l:this.moveToLine(this.domAtPos(a.head));if(G.gecko&&a.empty&&!this.hasComposition&&function N7(i){return 1==i.node.nodeType&&i.node.firstChild&&(0==i.offset||"false"==i.node.childNodes[i.offset-1].contentEditable)&&(i.offset==i.node.childNodes.length||"false"==i.node.childNodes[i.offset].contentEditable)}(l)){let u=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(u,l.node.childNodes[l.offset]||null)),l=c=new li(u,0),s=!0}let d=this.view.observer.selectionRange;(s||!d.focusNode||!Tf(l.node,l.offset,d.anchorNode,d.anchorOffset)||!Tf(c.node,c.offset,d.focusNode,d.focusOffset))&&(this.view.observer.ignore(()=>{G.android&&G.chrome&&this.dom.contains(d.focusNode)&&function z7(i,t){for(let e=i;e&&e!=t;e=e.assignedSlot||e.parentNode)if(1==e.nodeType&&"false"==e.contentEditable)return!0;return!1}(d.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let u=Ef(this.view.root);if(u)if(a.empty){if(G.gecko){let h=function B7(i,t){return 1!=i.nodeType?0:(t&&"false"==i.childNodes[t-1].contentEditable?1:0)|(ta.head&&([l,c]=[c,l]),h.setEnd(c.node,c.offset),h.setStart(l.node,l.offset),u.removeAllRanges(),u.addRange(h)}r&&this.view.root.activeElement==this.dom&&(this.dom.blur(),n&&n.focus())}),this.view.observer.setSelectionRange(l,c)),this.impreciseAnchor=l.precise?null:new li(d.anchorNode,d.anchorOffset),this.impreciseHead=c.precise?null:new li(d.focusNode,d.focusOffset)}enforceCursorAssoc(){if(this.hasComposition)return;let{view:t}=this,e=t.state.selection.main,n=Ef(t.root),{anchorNode:o,anchorOffset:r}=t.observer.selectionRange;if(!(n&&e.empty&&e.assoc&&n.modify))return;let s=Pt.find(this,e.head);if(!s)return;let a=s.posAtStart;if(e.head==a||e.head==a+s.length)return;let l=this.coordsAt(e.head,-1),c=this.coordsAt(e.head,1);if(!l||!c||l.bottom>c.top)return;let d=this.domAtPos(e.head+e.assoc);n.collapse(d.node,d.offset),n.modify("move",e.assoc<0?"forward":"backward","lineboundary"),t.observer.readSelectionRange();let u=t.observer.selectionRange;t.docView.posFromDOM(u.anchorNode,u.anchorOffset)!=e.from&&n.collapse(o,r)}moveToLine(t){let n,e=this.dom;if(t.node!=e)return t;for(let o=t.offset;!n&&o=0;o--){let r=et.get(e.childNodes[o]);r instanceof Pt&&(n=r.domAtPos(r.length))}return n?new li(n.node,n.offset,!0):t}nearest(t){for(let e=t;e;){let n=et.get(e);if(n&&n.rootView==this)return n;e=e.parentNode}return null}posFromDOM(t,e){let n=this.nearest(t);if(!n)throw new RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(t,e)+n.posAtStart}domAtPos(t){let{i:e,off:n}=this.childCursor().findPos(t,-1);for(;e=0;s--){let a=this.children[s],l=r-a.breakAfter,c=l-a.length;if(lt||a.covers(1))&&(!n||a instanceof Pt&&!(n instanceof Pt&&e>=0))&&(n=a,o=c),r=c}return n?n.coordsAt(t-o,e):null}coordsForChar(t){let{i:e,off:n}=this.childPos(t,1),o=this.children[e];if(!(o instanceof Pt))return null;for(;o.children.length;){let{i:a,off:l}=o.childPos(n,1);for(;;a++){if(a==o.children.length)return null;if((o=o.children[a]).length)break}n=l}if(!(o instanceof Ho))return null;let r=si(o.text,n);if(r==n)return null;let s=_s(o.dom,n,r).getClientRects();for(let a=0;aMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,l=this.view.textDirection==ut.LTR;for(let c=0,d=0;do)break;if(c>=n){let f=u.dom.getBoundingClientRect();if(e.push(f.height),s){let m=u.dom.lastChild,p=m?Ga(m):[];if(p.length){let g=p[p.length-1],b=l?g.right-f.left:f.right-g.left;b>a&&(a=b,this.minWidth=r,this.minWidthFrom=c,this.minWidthTo=h)}}}c=h+u.breakAfter}return e}textDirectionAt(t){let{i:e}=this.childPos(t,1);return"rtl"==getComputedStyle(this.children[e].dom).direction?ut.RTL:ut.LTR}measureTextSize(){for(let r of this.children)if(r instanceof Pt){let s=r.measureTextSize();if(s)return s}let e,n,o,t=document.createElement("div");return t.className="cm-line",t.style.width="99999px",t.style.position="absolute",t.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(t);let r=Ga(t.firstChild)[0];e=t.getBoundingClientRect().height,n=r?r.width/27:7,o=r?r.height:e,t.remove()}),{lineHeight:e,charWidth:n,textHeight:o}}childCursor(t=this.length){let e=this.children.length;return e&&(t-=this.children[--e].length),new qT(this.children,t,e)}computeBlockGapDeco(){let t=[],e=this.view.viewState;for(let n=0,o=0;;o++){let r=o==e.viewports.length?null:e.viewports[o],s=r?r.from-1:this.length;if(s>n){let a=(e.lineBlockAt(s).bottom-e.lineBlockAt(n).top)/this.view.scaleY;t.push(Y.replace({widget:new AI(a),block:!0,inclusive:!0,isBlockGap:!0}).range(n,s))}if(!r)break;n=r.to+1}return Y.set(t)}updateDeco(){let t=this.view.state.facet(ed).map((e,n)=>(this.dynamicDecorationMap[n]="function"==typeof e)?e(this.view):e);for(let e=t.length;ee.anchor?-1:1);if(!n)return;!e.empty&&(o=this.coordsAt(e.anchor,e.anchor>e.head?-1:1))&&(n={left:Math.min(n.left,o.left),top:Math.min(n.top,o.top),right:Math.max(n.right,o.right),bottom:Math.max(n.bottom,o.bottom)});let r=yI(this.view);!function b7(i,t,e,n,o,r,s,a){let l=i.ownerDocument,c=l.defaultView||window;for(let d=i,u=!1;d&&!u;)if(1==d.nodeType){let h,f=d==l.body,m=1,p=1;if(f)h=_7(c);else{if(/^(fixed|sticky)$/.test(getComputedStyle(d).position)&&(u=!0),d.scrollHeight<=d.clientHeight&&d.scrollWidth<=d.clientWidth){d=d.assignedSlot||d.parentNode;continue}let v=d.getBoundingClientRect();m=v.width/d.offsetWidth,p=v.height/d.offsetHeight,h={left:v.left,right:v.left+d.clientWidth*m,top:v.top,bottom:v.top+d.clientHeight*p}}let g=0,b=0;if("nearest"==o)t.top0&&t.bottom>h.bottom+b&&(b=t.bottom-h.bottom+b+s)):t.bottom>h.bottom&&(b=t.bottom-h.bottom+s,e<0&&t.top-b0&&t.right>h.right+g&&(g=t.right-h.right+g+r)):t.right>h.right&&(g=t.right-h.right+r,e<0&&t.left0))break;n=n.childNodes[o-1],o=Vo(n)}if(e>=0)for(let n=i,o=t;;){if(3==n.nodeType)return{node:n,offset:o};if(!(1==n.nodeType&&o=0))break;n=n.childNodes[o],o=0}return null}let V7=class{constructor(){this.changes=[]}compareRange(t,e){ly(t,e,this.changes)}comparePoint(t,e){ly(t,e,this.changes)}};function U7(i,t){return t.left>i?t.left-i:Math.max(0,i-t.right)}function W7(i,t){return t.top>i?t.top-i:Math.max(0,i-t.bottom)}function py(i,t){return i.topt.top+1}function OI(i,t){return ti.bottom?{top:i.top,left:i.left,right:i.right,bottom:t}:i}function gy(i,t,e){let n,o,r,s,l,c,d,u,a=!1;for(let m=i.firstChild;m;m=m.nextSibling){let p=Ga(m);for(let g=0;gx||s==x&&r>v){n=m,o=b,r=v,s=x;let y=x?e0?g0)}0==v?e>b.bottom&&(!d||d.bottomb.top)&&(c=m,u=b):d&&py(d,b)?d=RI(d,b.bottom):u&&py(u,b)&&(u=OI(u,b.top))}}if(d&&d.bottom>=e?(n=l,o=d):u&&u.top<=e&&(n=c,o=u),!n)return{node:i,offset:0};let h=Math.max(o.left,Math.min(o.right,t));return 3==n.nodeType?FI(n,h,e):a&&"false"!=n.contentEditable?gy(n,h,e):{node:i,offset:Array.prototype.indexOf.call(i.childNodes,n)+(t>=(o.left+o.right)/2?1:0)}}function FI(i,t,e){let n=i.nodeValue.length,o=-1,r=1e9,s=0;for(let a=0;ae?d.top-e:e-d.bottom)-1;if(d.left-1<=t&&d.right+1>=t&&u=(d.left+d.right)/2,f=h;if((G.chrome||G.gecko)&&_s(i,a).getBoundingClientRect().left==d.right&&(f=!h),u<=0)return{node:i,offset:a+(f?1:0)};o=a+(f?1:0),r=u}}}return{node:i,offset:o>-1?o:s>0?i.nodeValue.length:0}}function PI(i,t,e,n=-1){var o,r;let l,s=i.contentDOM.getBoundingClientRect(),a=s.top+i.viewState.paddingTop,{docHeight:c}=i.viewState,{x:d,y:u}=t,h=u-a;if(h<0)return 0;if(h>c)return i.state.doc.length;for(let y=i.viewState.heightOracle.textHeight/2,w=!1;l=i.elementAtHeight(h),l.type!=Si.Text;)for(;h=n>0?l.bottom+y:l.top-y,!(h>=0&&h<=c);){if(w)return e?null:0;w=!0,n=-n}u=a+h;let f=l.from;if(fi.viewport.to)return i.viewport.to==i.state.doc.length?i.state.doc.length:e?null:NI(i,s,l,d,u);let m=i.dom.ownerDocument,p=i.root.elementFromPoint?i.root:m,g=p.elementFromPoint(d,u);g&&!i.contentDOM.contains(g)&&(g=null),g||(d=Math.max(s.left+1,Math.min(s.right-1,d)),g=p.elementFromPoint(d,u),g&&!i.contentDOM.contains(g)&&(g=null));let b,v=-1;if(g&&0!=(null===(o=i.docView.nearest(g))||void 0===o?void 0:o.isEditable))if(m.caretPositionFromPoint){let y=m.caretPositionFromPoint(d,u);y&&({offsetNode:b,offset:v}=y)}else if(m.caretRangeFromPoint){let y=m.caretRangeFromPoint(d,u);y&&(({startContainer:b,startOffset:v}=y),(!i.contentDOM.contains(b)||G.safari&&function G7(i,t,e){let n;if(3!=i.nodeType||t!=(n=i.nodeValue.length))return!1;for(let o=i.nextSibling;o;o=o.nextSibling)if(1!=o.nodeType||"BR"!=o.nodeName)return!1;return _s(i,n-1,n).getBoundingClientRect().left>e}(b,v,d)||G.chrome&&function q7(i,t,e){if(0!=t)return!1;for(let o=i;;){let r=o.parentNode;if(!r||1!=r.nodeType||r.firstChild!=o)return!1;if(r.classList.contains("cm-line"))break;o=r}return e-(1==i.nodeType?i.getBoundingClientRect():_s(i,0,Math.max(i.nodeValue.length,1)).getBoundingClientRect()).left>5}(b,v,d))&&(b=void 0))}if(!b||!i.docView.dom.contains(b)){let y=Pt.find(i.docView,f);if(!y)return h>l.top+l.height/2?l.to:l.from;({node:b,offset:v}=gy(y.dom,d,u))}let x=i.docView.nearest(b);if(!x)return null;if(x.isWidget&&1==(null===(r=x.dom)||void 0===r?void 0:r.nodeType)){let y=x.dom.getBoundingClientRect();return t.y1.5*i.defaultLineHeight){let a=i.viewState.heightOracle.textHeight;r+=Math.floor((o-e.top-.5*(i.defaultLineHeight-a))/a)*i.viewState.heightOracle.lineLength}let s=i.state.sliceDoc(e.from,e.to);return e.from+Xv(s,r,i.state.tabSize)}function _y(i,t){let e=i.lineBlockAt(t);if(Array.isArray(e.type))for(let n of e.type)if(n.to>t||n.to==t&&(n.to==e.to||n.type==Si.Text))return n;return e}function LI(i,t,e,n){let o=i.state.doc.lineAt(t.head),r=i.bidiSpans(o),s=i.textDirectionAt(o.from);for(let a=t,l=null;;){let c=MI(o,r,s,a,e),d=SI;if(!c){if(o.number==(e?i.state.doc.lines:1))return a;d="\n",o=i.state.doc.line(o.number+(e?1:-1)),r=i.bidiSpans(o),c=E.cursor(e?o.from:o.to)}if(l){if(!l(d))return a}else{if(!n)return c;l=n(d)}a=c}}function Bf(i,t,e){for(;;){let n=0;for(let o of i)o.between(t-1,t+1,(r,s,a)=>{if(t>r&&to(i)),e.from,t.head>e.from?-1:1);return n==e.from?e:E.cursor(n,nnull),G.gecko&&function fY(i){tO.has(i)||(tO.add(i),i.addEventListener("copy",()=>{}),i.addEventListener("cut",()=>{}))}(t.contentDOM.ownerDocument)}handleEvent(t){!function rY(i,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n,e=t.target;e!=i.contentDOM;e=e.parentNode)if(!e||11==e.nodeType||(n=et.get(e))&&n.ignoreEvent(t))return!1;return!0}(this.view,t)||this.ignoreDuringComposition(t)||"keydown"==t.type&&this.keydown(t)||this.runHandlers(t.type,t)}runHandlers(t,e){let n=this.handlers[t];if(n){for(let o of n.observers)o(this.view,e);for(let o of n.handlers){if(e.defaultPrevented)break;if(o(this.view,e)){e.preventDefault();break}}}}ensureHandlers(t){let e=function Q7(i){let t=Object.create(null);function e(n){return t[n]||(t[n]={observers:[],handlers:[]})}for(let n of i){let o=n.spec;if(o&&o.domEventHandlers)for(let r in o.domEventHandlers){let s=o.domEventHandlers[r];s&&e(r).handlers.push(BI(n.value,s))}if(o&&o.domEventObservers)for(let r in o.domEventObservers){let s=o.domEventObservers[r];s&&e(r).observers.push(BI(n.value,s))}}for(let n in so)e(n).handlers.push(so[n]);for(let n in zn)e(n).observers.push(zn[n]);return t}(t),n=this.handlers,o=this.view.contentDOM;for(let r in e)if("scroll"!=r){let s=!e[r].handlers.length,a=n[r];a&&s!=!a.handlers.length&&(o.removeEventListener(r,this.handleEvent),a=null),a||o.addEventListener(r,this.handleEvent,{passive:s})}for(let r in n)"scroll"!=r&&!e[r]&&o.removeEventListener(r,this.handleEvent);this.handlers=e}keydown(t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),9==t.keyCode&&Date.now()n.keyCode==t.keyCode))&&!t.ctrlKey||J7.indexOf(t.key)>-1&&t.ctrlKey&&!t.shiftKey)?(229!=t.keyCode&&this.view.observer.forceFlush(),!1):(this.pendingIOSKey=e||t,setTimeout(()=>this.flushIOSKey(),250),!0)}flushIOSKey(){let t=this.pendingIOSKey;return!!t&&(this.pendingIOSKey=void 0,Ya(this.view.contentDOM,t.key,t.keyCode))}ignoreDuringComposition(t){return!!/^key/.test(t.type)&&(this.composing>0||!!(G.safari&&!G.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(t){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=t}update(t){this.mouseSelection&&this.mouseSelection.update(t),t.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function BI(i,t){return(e,n)=>{try{return t.call(i,n,e)}catch(o){Hn(e.state,o)}}}const VI=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],J7="dthko",HI=[16,17,18,20,91,92,224,225];function Hf(i){return.7*Math.max(0,i)+8}class tY{constructor(t,e,n,o){this.view=t,this.startEvent=e,this.style=n,this.mustSelect=o,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=e,this.scrollParent=function v7(i){let t=i.ownerDocument;for(let e=i.parentNode;e&&e!=t.body;)if(1==e.nodeType){if(e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth)return e;e=e.assignedSlot||e.parentNode}else{if(11!=e.nodeType)break;e=e.host}return null}(t.contentDOM),this.atoms=t.state.facet(uy).map(s=>s(t));let r=t.contentDOM.ownerDocument;r.addEventListener("mousemove",this.move=this.move.bind(this)),r.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=e.shiftKey,this.multiple=t.state.facet(qi.allowMultipleSelections)&&function iY(i,t){let e=i.state.facet(aI);return e.length?e[0](t):G.mac?t.metaKey:t.ctrlKey}(t,e),this.dragging=!(!function oY(i,t){let{main:e}=i.state.selection;if(e.empty)return!1;let n=Ef(i.root);if(!n||0==n.rangeCount)return!0;let o=n.getRangeAt(0).getClientRects();for(let r=0;r=t.clientX&&s.top<=t.clientY&&s.bottom>=t.clientY)return!0}return!1}(t,e)||1!=KI(e))&&null}start(t){!1===this.dragging&&this.select(t)}move(t){var e;if(0==t.buttons)return this.destroy();if(this.dragging||null==this.dragging&&function eY(i,t){return Math.max(Math.abs(i.clientX-t.clientX),Math.abs(i.clientY-t.clientY))}(this.startEvent,t)<10)return;this.select(this.lastEvent=t);let n=0,o=0,r=(null===(e=this.scrollParent)||void 0===e?void 0:e.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},s=yI(this.view);t.clientX-s.left<=r.left+6?n=-Hf(r.left-t.clientX):t.clientX+s.right>=r.right-6&&(n=Hf(t.clientX-r.right)),t.clientY-s.top<=r.top+6?o=-Hf(r.top-t.clientY):t.clientY+s.bottom>=r.bottom-6&&(o=Hf(t.clientY-r.bottom)),this.setScrollSpeed(n,o)}up(t){null==this.dragging&&this.select(this.lastEvent),this.dragging||t.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move),t.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}setScrollSpeed(t,e){this.scrollSpeed={x:t,y:e},t||e?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}skipAtoms(t){let e=null;for(let n=0;nthis.select(this.lastEvent),20)}}const so=Object.create(null),zn=Object.create(null),zI=G.ie&&G.ie_version<15||G.ios&&G.webkit_version<604;function jI(i,t){let n,{state:e}=i,o=1,r=e.toText(t),s=r.lines==e.selection.ranges.length;if(null!=vy&&e.selection.ranges.every(l=>l.empty)&&vy==r.toString()){let l=-1;n=e.changeByRange(c=>{let d=e.doc.lineAt(c.from);if(d.from==l)return{range:c};l=d.from;let u=e.toText((s?r.line(o++).text:t)+e.lineBreak);return{changes:{from:d.from,insert:u},range:E.cursor(c.from+u.length)}})}else n=s?e.changeByRange(l=>{let c=r.line(o++);return{changes:{from:l.from,to:l.to,insert:c.text},range:E.cursor(l.from+c.length)}}):e.replaceSelection(r);i.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}function $I(i,t,e,n){if(1==n)return E.cursor(t,e);if(2==n)return function $7(i,t,e=1){let n=i.charCategorizer(t),o=i.doc.lineAt(t),r=t-o.from;if(0==o.length)return E.cursor(t);0==r?e=1:r==o.length&&(e=-1);let s=r,a=r;e<0?s=si(o.text,r,!1):a=si(o.text,r);let l=n(o.text.slice(s,a));for(;s>0;){let c=si(o.text,s,!1);if(n(o.text.slice(c,s))!=l)break;s=c}for(;a{i.inputState.lastScrollTop=i.scrollDOM.scrollTop,i.inputState.lastScrollLeft=i.scrollDOM.scrollLeft},so.keydown=(i,t)=>(i.inputState.setSelectionOrigin("select"),27==t.keyCode&&(i.inputState.lastEscPress=Date.now()),!1),zn.touchstart=(i,t)=>{i.inputState.lastTouchTime=Date.now(),i.inputState.setSelectionOrigin("select.pointer")},zn.touchmove=i=>{i.inputState.setSelectionOrigin("select.pointer")},so.mousedown=(i,t)=>{if(i.observer.flush(),i.inputState.lastTouchTime>Date.now()-2e3)return!1;let e=null;for(let n of i.state.facet(cI))if(e=n(i,t),e)break;if(!e&&0==t.button&&(e=function cY(i,t){let e=GI(i,t),n=KI(t),o=i.state.selection;return{update(r){r.docChanged&&(e.pos=r.changes.mapPos(e.pos),o=o.map(r.changes))},get(r,s,a){let c,l=GI(i,r),d=$I(i,l.pos,l.bias,n);if(e.pos!=l.pos&&!s){let u=$I(i,e.pos,e.bias,n),h=Math.min(u.from,d.from),f=Math.max(u.to,d.to);d=h1&&(c=function dY(i,t){for(let e=0;e=t)return E.create(i.ranges.slice(0,e).concat(i.ranges.slice(e+1)),i.mainIndex==e?0:i.mainIndex-(i.mainIndex>e?1:0))}return null}(o,l.pos))?c:a?o.addRange(d):E.create([d])}}}(i,t)),e){let n=!i.hasFocus;i.inputState.startMouseSelection(new tY(i,t,e,n)),n&&i.observer.ignore(()=>jT(i.contentDOM));let o=i.inputState.mouseSelection;if(o)return o.start(t),!1===o.dragging}return!1};let UI=(i,t)=>i>=t.top&&i<=t.bottom,WI=(i,t,e)=>UI(t,e)&&i>=e.left&&i<=e.right;function aY(i,t,e,n){let o=Pt.find(i.docView,t);if(!o)return 1;let r=t-o.posAtStart;if(0==r)return 1;if(r==o.length)return-1;let s=o.coordsAt(r,-1);if(s&&WI(e,n,s))return-1;let a=o.coordsAt(r,1);return a&&WI(e,n,a)?1:s&&UI(n,s)?-1:1}function GI(i,t){let e=i.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:e,bias:aY(i,e,t.clientX,t.clientY)}}const lY=G.ie&&G.ie_version<=11;let qI=null,YI=0,XI=0;function KI(i){if(!lY)return i.detail;let t=qI,e=XI;return qI=i,XI=Date.now(),YI=!t||e>Date.now()-400&&Math.abs(t.clientX-i.clientX)<2&&Math.abs(t.clientY-i.clientY)<2?(YI+1)%3:1}function ZI(i,t,e,n){if(!e)return;let o=i.posAtCoords({x:t.clientX,y:t.clientY},!1),{mouseSelection:r}=i.inputState,s=n&&r&&r.dragging&&function nY(i,t){let e=i.state.facet(lI);return e.length?e[0](t):G.mac?!t.altKey:!t.ctrlKey}(i,t)?{from:r.dragging.from,to:r.dragging.to}:null,a={from:o,insert:e},l=i.state.changes(s?[s,a]:a);i.focus(),i.dispatch({changes:l,selection:{anchor:l.mapPos(o,-1),head:l.mapPos(o,1)},userEvent:s?"move.drop":"input.drop"})}so.dragstart=(i,t)=>{let{selection:{main:e}}=i.state,{mouseSelection:n}=i.inputState;return n&&(n.dragging=e),t.dataTransfer&&(t.dataTransfer.setData("Text",i.state.sliceDoc(e.from,e.to)),t.dataTransfer.effectAllowed="copyMove"),!1},so.drop=(i,t)=>{if(!t.dataTransfer)return!1;if(i.state.readOnly)return!0;let e=t.dataTransfer.files;if(e&&e.length){let n=Array(e.length),o=0,r=()=>{++o==e.length&&ZI(i,t,n.filter(s=>null!=s).join(i.state.lineBreak),!1)};for(let s=0;s{/[\x00-\x08\x0e-\x1f]{2}/.test(a.result)||(n[s]=a.result),r()},a.readAsText(e[s])}return!0}{let n=t.dataTransfer.getData("Text");if(n)return ZI(i,t,n,!0),!0}return!1},so.paste=(i,t)=>{if(i.state.readOnly)return!0;i.observer.flush();let e=zI?null:t.clipboardData;return e?(jI(i,e.getData("text/plain")||e.getData("text/uri-text")),!0):(function sY(i){let t=i.dom.parentNode;if(!t)return;let e=t.appendChild(document.createElement("textarea"));e.style.cssText="position: fixed; left: -10000px; top: 10px",e.focus(),setTimeout(()=>{i.focus(),e.remove(),jI(i,e.value)},50)}(i),!1)};let vy=null;so.copy=so.cut=(i,t)=>{let{text:e,ranges:n,linewise:o}=function hY(i){let t=[],e=[],n=!1;for(let o of i.selection.ranges)o.empty||(t.push(i.sliceDoc(o.from,o.to)),e.push(o));if(!t.length){let o=-1;for(let{from:r}of i.selection.ranges){let s=i.doc.lineAt(r);s.number>o&&(t.push(s.text),e.push({from:s.from,to:Math.min(i.doc.length,s.to+1)})),o=s.number}n=!0}return{text:t.join(i.lineBreak),ranges:e,linewise:n}}(i.state);if(!e&&!o)return!1;vy=o?e:null,"cut"==t.type&&!i.state.readOnly&&i.dispatch({changes:n,scrollIntoView:!0,userEvent:"delete.cut"});let r=zI?null:t.clipboardData;return r?(r.clearData(),r.setData("text/plain",e),!0):(function uY(i,t){let e=i.dom.parentNode;if(!e)return;let n=e.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.value=t,n.focus(),n.selectionEnd=t.length,n.selectionStart=0,setTimeout(()=>{n.remove(),i.focus()},50)}(i,e),!1)};const QI=Bo.define();function JI(i,t){let e=[];for(let n of i.facet(hI)){let o=n(i,t);o&&e.push(o)}return e?i.update({effects:e,annotations:QI.of(!0)}):null}function eO(i){setTimeout(()=>{let t=i.hasFocus;if(t!=i.inputState.notifiedFocused){let e=JI(i.state,t);e?i.dispatch(e):i.update([])}},10)}zn.focus=i=>{i.inputState.lastFocusTime=Date.now(),!i.scrollDOM.scrollTop&&(i.inputState.lastScrollTop||i.inputState.lastScrollLeft)&&(i.scrollDOM.scrollTop=i.inputState.lastScrollTop,i.scrollDOM.scrollLeft=i.inputState.lastScrollLeft),eO(i)},zn.blur=i=>{i.observer.clearSelectionRange(),eO(i)},zn.compositionstart=zn.compositionupdate=i=>{null==i.inputState.compositionFirstChange&&(i.inputState.compositionFirstChange=!0),i.inputState.composing<0&&(i.inputState.composing=0)},zn.compositionend=i=>{i.inputState.composing=-1,i.inputState.compositionEndedAt=Date.now(),i.inputState.compositionPendingKey=!0,i.inputState.compositionPendingChange=i.observer.pendingRecords().length>0,i.inputState.compositionFirstChange=null,G.chrome&&G.android?i.observer.flushSoon():i.inputState.compositionPendingChange?Promise.resolve().then(()=>i.observer.flush()):setTimeout(()=>{i.inputState.composing<0&&i.docView.hasComposition&&i.update([])},50)},zn.contextmenu=i=>{i.inputState.lastContextMenu=Date.now()},so.beforeinput=(i,t)=>{var e;let n;if(G.chrome&&G.android&&(n=VI.find(o=>o.inputType==t.inputType))&&(i.observer.delayAndroidKey(n.key,n.keyCode),"Backspace"==n.key||"Delete"==n.key)){let o=(null===(e=window.visualViewport)||void 0===e?void 0:e.height)||0;setTimeout(()=>{var r;((null===(r=window.visualViewport)||void 0===r?void 0:r.height)||0)>o+10&&i.hasFocus&&(i.contentDOM.blur(),i.focus())},100)}return!1};const tO=new Set,iO=["pre-wrap","normal","pre-line","break-spaces"];class nO{constructor(t){this.lineWrapping=t,this.doc=Le.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(t,e){let n=this.doc.lineAt(e).number-this.doc.lineAt(t).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((e-t-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(t){return this.lineWrapping?(1+Math.max(0,Math.ceil((t-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(t){return this.doc=t,this}mustRefreshForWrapping(t){return iO.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let e=!1;for(let n=0;n-1,l=Math.round(e)!=Math.round(this.lineHeight)||this.lineWrapping!=a;if(this.lineWrapping=a,this.lineHeight=e,this.charWidth=n,this.textHeight=o,this.lineLength=r,l){this.heightSamples={};for(let c=0;c0}set outdated(t){this.flags=(t?2:0)|-3&this.flags}setHeight(t,e){this.height!=e&&(Math.abs(this.height-e)>zf&&(t.heightChanged=!0),this.height=e)}replace(t,e,n){return ci.of(n)}decomposeLeft(t,e){e.push(this)}decomposeRight(t,e){e.push(this)}applyChanges(t,e,n,o){let r=this,s=n.doc;for(let a=o.length-1;a>=0;a--){let{fromA:l,toA:c,fromB:d,toB:u}=o[a],h=r.lineAt(l,Ke.ByPosNoHeight,n.setDoc(e),0,0),f=h.to>=c?h:r.lineAt(c,Ke.ByPosNoHeight,n,0,0);for(u+=f.to-c,c=f.to;a>0&&h.from<=o[a-1].toA;)l=o[a-1].fromA,d=o[a-1].fromB,a--,l2*r){let a=t[e-1];a.break?t.splice(--e,1,a.left,null,a.right):t.splice(--e,1,a.left,a.right),n+=1+a.break,o-=a.size}else{if(!(r>2*o))break;{let a=t[n];a.break?t.splice(n,1,a.left,null,a.right):t.splice(n,1,a.left,a.right),n+=2+a.break,r-=a.size}}else if(o=r&&s(this.blockAt(0,n,o,r))}updateHeight(t,e=0,n=!1,o){return o&&o.from<=e&&o.more&&this.setHeight(t,o.heights[o.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Ki extends rO{constructor(t,e){super(t,e,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(t,e,n,o){return new ao(o,this.length,n,this.height,this.breaks)}replace(t,e,n){let o=n[0];return 1==n.length&&(o instanceof Ki||o instanceof Xt&&4&o.flags)&&Math.abs(this.length-o.length)<10?(o instanceof Xt?o=new Ki(o.length,this.height):o.height=this.height,this.outdated||(o.outdated=!1),o):ci.of(n)}updateHeight(t,e=0,n=!1,o){return o&&o.from<=e&&o.more?this.setHeight(t,o.heights[o.index++]):(n||this.outdated)&&this.setHeight(t,Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed))+this.breaks*t.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Xt extends ci{constructor(t){super(t,0)}heightMetrics(t,e){let s,n=t.doc.lineAt(e).number,o=t.doc.lineAt(e+this.length).number,r=o-n+1,a=0;if(t.lineWrapping){let l=Math.min(this.height,t.lineHeight*r);s=l/r,this.length>r+1&&(a=(this.height-l)/(this.length-r-1))}else s=this.height/r;return{firstLine:n,lastLine:o,perLine:s,perChar:a}}blockAt(t,e,n,o){let{firstLine:r,lastLine:s,perLine:a,perChar:l}=this.heightMetrics(e,o);if(e.lineWrapping){let c=o+Math.round(Math.max(0,Math.min(1,(t-n)/this.height))*this.length),d=e.doc.lineAt(c),u=a+d.length*l,h=Math.max(n,t-u/2);return new ao(d.from,d.length,h,u,0)}{let c=Math.max(0,Math.min(s-r,Math.floor((t-n)/a))),{from:d,length:u}=e.doc.line(r+c);return new ao(d,u,n+a*c,a,0)}}lineAt(t,e,n,o,r){if(e==Ke.ByHeight)return this.blockAt(t,n,o,r);if(e==Ke.ByPosNoHeight){let{from:f,to:m}=n.doc.lineAt(t);return new ao(f,m-f,0,0,0)}let{firstLine:s,perLine:a,perChar:l}=this.heightMetrics(n,r),c=n.doc.lineAt(t),d=a+c.length*l,u=c.number-s;return new ao(c.from,c.length,Math.max(o,Math.min(o+a*u+l*(c.from-r-u),o+this.height-d)),d,0)}forEachLine(t,e,n,o,r,s){t=Math.max(t,r),e=Math.min(e,r+this.length);let{firstLine:a,perLine:l,perChar:c}=this.heightMetrics(n,r);for(let d=t,u=o;d<=e;){let h=n.doc.lineAt(d);if(d==t){let m=h.number-a;u+=l*m+c*(t-r-m)}let f=l+c*h.length;s(new ao(h.from,h.length,u,f,0)),u+=f,d=h.to+1}}replace(t,e,n){let o=this.length-e;if(o>0){let r=n[n.length-1];r instanceof Xt?n[n.length-1]=new Xt(r.length+o):n.push(null,new Xt(o-1))}if(t>0){let r=n[0];r instanceof Xt?n[0]=new Xt(t+r.length):n.unshift(new Xt(t-1),null)}return ci.of(n)}decomposeLeft(t,e){e.push(new Xt(t-1),null)}decomposeRight(t,e){e.push(null,new Xt(this.length-t-1))}updateHeight(t,e=0,n=!1,o){let r=e+this.length;if(o&&o.from<=e+this.length&&o.more){let s=[],a=Math.max(e,o.from),l=-1;for(o.from>e&&s.push(new Xt(o.from-e-1).updateHeight(t,e));a<=r&&o.more;){let d=t.doc.lineAt(a).length;s.length&&s.push(null);let u=o.heights[o.index++];-1==l?l=u:Math.abs(u-l)>=zf&&(l=-2);let h=new Ki(d,u);h.outdated=!1,s.push(h),a+=d+1}a<=r&&s.push(null,new Xt(r-a).updateHeight(t,a));let c=ci.of(s);return(l<0||Math.abs(c.height-this.height)>=zf||Math.abs(l-this.heightMetrics(t,e).perLine)>=zf)&&(t.heightChanged=!0),c}return(n||this.outdated)&&(this.setHeight(t,t.heightForGap(e,e+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class mY extends ci{constructor(t,e,n){super(t.length+e+n.length,t.height+n.height,e|(t.outdated||n.outdated?2:0)),this.left=t,this.right=n,this.size=t.size+n.size}get break(){return 1&this.flags}blockAt(t,e,n,o){let r=n+this.left.height;return ta))return c;let d=e==Ke.ByPosNoHeight?Ke.ByPosNoHeight:Ke.ByPos;return l?c.join(this.right.lineAt(a,d,n,s,a)):this.left.lineAt(a,d,n,o,r).join(c)}forEachLine(t,e,n,o,r,s){let a=o+this.left.height,l=r+this.left.length+this.break;if(this.break)t=l&&this.right.forEachLine(t,e,n,a,l,s);else{let c=this.lineAt(l,Ke.ByPos,n,o,r);t=t&&c.from<=e&&s(c),e>c.to&&this.right.forEachLine(c.to+1,e,n,a,l,s)}}replace(t,e,n){let o=this.left.length+this.break;if(ethis.left.length)return this.balanced(this.left,this.right.replace(t-o,e-o,n));let r=[];t>0&&this.decomposeLeft(t,r);let s=r.length;for(let a of n)r.push(a);if(t>0&&sO(r,s-1),e=n&&e.push(null)),t>n&&this.right.decomposeLeft(t-n,e)}decomposeRight(t,e){let n=this.left.length,o=n+this.break;if(t>=o)return this.right.decomposeRight(t-o,e);t2*e.size||e.size>2*t.size?ci.of(this.break?[t,null,e]:[t,e]):(this.left=t,this.right=e,this.height=t.height+e.height,this.outdated=t.outdated||e.outdated,this.size=t.size+e.size,this.length=t.length+this.break+e.length,this)}updateHeight(t,e=0,n=!1,o){let{left:r,right:s}=this,a=e+r.length+this.break,l=null;return o&&o.from<=e+r.length&&o.more?l=r=r.updateHeight(t,e,n,o):r.updateHeight(t,e,n),o&&o.from<=a+s.length&&o.more?l=s=s.updateHeight(t,a,n,o):s.updateHeight(t,a,n),l?this.balanced(r,s):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function sO(i,t){let e,n;null==i[t]&&(e=i[t-1])instanceof Xt&&(n=i[t+1])instanceof Xt&&i.splice(t-1,3,new Xt(e.length+1+n.length))}class yy{constructor(t,e){this.pos=t,this.oracle=e,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=t}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(t,e){if(this.lineStart>-1){let n=Math.min(e,this.lineEnd),o=this.nodes[this.nodes.length-1];o instanceof Ki?o.length+=n-this.pos:(n>this.pos||!this.isCovered)&&this.nodes.push(new Ki(n-this.pos,-1)),this.writtenTo=n,e>n&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=e}point(t,e,n){if(t=5)&&this.addLineDeco(o,r,s)}else e>t&&this.span(t,e);this.lineEnd>-1&&this.lineEnd-1)return;let{from:t,to:e}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=e,this.writtenTot&&this.nodes.push(new Ki(this.pos-t,-1)),this.writtenTo=this.pos}blankContent(t,e){let n=new Xt(e-t);return this.oracle.doc.lineAt(t).to==e&&(n.flags|=4),n}ensureLine(){this.enterLine();let t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof Ki)return t;let e=new Ki(0,-1);return this.nodes.push(e),e}addBlock(t){this.enterLine();let e=t.deco;e&&e.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos=this.pos+t.length,e&&e.endSide>0&&(this.covering=t)}addLineDeco(t,e,n){let o=this.ensureLine();o.length+=n,o.collapsed+=n,o.widgetHeight=Math.max(o.widgetHeight,t),o.breaks+=e,this.writtenTo=this.pos=this.pos+n}finish(t){let e=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||e instanceof Ki||this.isCovered?(this.writtenTod.clientHeight||d.scrollWidth>d.clientWidth)&&"visible"!=u.overflow){let h=d.getBoundingClientRect();r=Math.max(r,h.left),s=Math.min(s,h.right),a=Math.max(a,h.top),l=c==i.parentNode?h.bottom:Math.min(l,h.bottom)}c="absolute"==u.position||"fixed"==u.position?d.offsetParent:d.parentNode}else{if(11!=c.nodeType)break;c=c.host}return{left:r-e.left,right:Math.max(r,s)-e.left,top:a-(e.top+t),bottom:Math.max(a,l)-(e.top+t)}}function vY(i,t){let e=i.getBoundingClientRect();return{left:0,right:e.right-e.left,top:t,bottom:e.bottom-(e.top+t)}}class xy{constructor(t,e,n){this.from=t,this.to=e,this.size=n}static same(t,e){if(t.length!=e.length)return!1;for(let n=0;n"function"!=typeof n&&"cm-lineWrapping"==n.class);this.heightOracle=new nO(e),this.stateDeco=t.facet(ed).filter(n=>"function"!=typeof n),this.heightMap=ci.empty().applyChanges(this.stateDeco,Le.empty,this.heightOracle.setDoc(t.doc),[new Xi(0,0,0,t.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Y.set(this.lineGaps.map(n=>n.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:e}=this.state.selection;for(let n=0;n<=1;n++){let o=n?e.head:e.anchor;if(!t.some(({from:r,to:s})=>o>=r&&o<=s)){let{from:r,to:s}=this.lineBlockAt(o);t.push(new jf(r,s))}}this.viewports=t.sort((n,o)=>n.from-o.from),this.scaler=this.heightMap.height<=7e6?lO:new CY(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,t=>{this.viewportLines.push(1==this.scaler.scale?t:nd(t,this.scaler))})}update(t,e=null){this.state=t.state;let n=this.stateDeco;this.stateDeco=this.state.facet(ed).filter(d=>"function"!=typeof d);let r=Xi.extendWithRanges(t.changedRanges,function gY(i,t,e){let n=new _Y;return rt.compare(i,t,e,n,0),n.changes}(n,this.stateDeco,t?t.changes:Ft.empty(this.state.doc.length))),s=this.heightMap.height,a=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),r),this.heightMap.height!=s&&(t.flags|=2),a?(this.scrollAnchorPos=t.changes.mapPos(a.from,-1),this.scrollAnchorHeight=a.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=r.length?this.mapViewport(this.viewport,t.changes):this.viewport;(e&&(e.range.headl.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,e));let c=!t.changes.empty||2&t.flags||l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,this.updateForViewport(),c&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes))),t.flags|=this.computeVisibleRanges(),e&&(this.scrollTarget=e),!this.mustEnforceCursorAssoc&&t.selectionSet&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(mI)&&(this.mustEnforceCursorAssoc=!0)}measure(t){let e=t.contentDOM,n=window.getComputedStyle(e),o=this.heightOracle,r=n.whiteSpace;this.defaultTextDirection="rtl"==n.direction?ut.RTL:ut.LTR;let s=this.heightOracle.mustRefreshForWrapping(r),a=e.getBoundingClientRect(),l=s||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;let c=0,d=0;if(a.width&&a.height){let y=a.width/e.offsetWidth,w=a.height/e.offsetHeight;(y>.995&&y<1.005||!isFinite(y)||Math.abs(a.width-e.offsetWidth)<1)&&(y=1),(w>.995&&w<1.005||!isFinite(w)||Math.abs(a.height-e.offsetHeight)<1)&&(w=1),(this.scaleX!=y||this.scaleY!=w)&&(this.scaleX=y,this.scaleY=w,c|=8,s=l=!0)}let u=(parseInt(n.paddingTop)||0)*this.scaleY,h=(parseInt(n.paddingBottom)||0)*this.scaleY;(this.paddingTop!=u||this.paddingBottom!=h)&&(this.paddingTop=u,this.paddingBottom=h,c|=10),this.editorWidth!=t.scrollDOM.clientWidth&&(o.lineWrapping&&(l=!0),this.editorWidth=t.scrollDOM.clientWidth,c|=8);let f=t.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=f&&(this.scrollAnchorHeight=-1,this.scrollTop=f),this.scrolledToBottom=WT(t.scrollDOM);let m=(this.printing?vY:bY)(e,this.paddingTop),p=m.top-this.pixelViewport.top,g=m.bottom-this.pixelViewport.bottom;this.pixelViewport=m;let b=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(b!=this.inView&&(this.inView=b,b&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;let v=a.width;if((this.contentDOMWidth!=v||this.editorHeight!=t.scrollDOM.clientHeight)&&(this.contentDOMWidth=a.width,this.editorHeight=t.scrollDOM.clientHeight,c|=8),l){let y=t.docView.measureVisibleLineHeights(this.viewport);if(o.mustRefreshForHeights(y)&&(s=!0),s||o.lineWrapping&&Math.abs(v-this.contentDOMWidth)>o.charWidth){let{lineHeight:w,charWidth:M,textHeight:F}=t.docView.measureTextSize();s=w>0&&o.refresh(r,w,M,F,v/M,y),s&&(t.docView.minWidth=0,c|=8)}p>0&&g>0?d=Math.max(p,g):p<0&&g<0&&(d=Math.min(p,g)),o.heightChanged=!1;for(let w of this.viewports){let M=w.from==this.viewport.from?y:t.docView.measureVisibleLineHeights(w);this.heightMap=(s?ci.empty().applyChanges(this.stateDeco,Le.empty,this.heightOracle,[new Xi(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(o,0,s,new oO(w.from,M))}o.heightChanged&&(c|=2)}let x=!this.viewportIsAppropriate(this.viewport,d)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return x&&(this.viewport=this.getViewport(d,this.scrollTarget)),this.updateForViewport(),(2&c||x)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,t)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.docView.enforceCursorAssoc()),c}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,e){let n=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),o=this.heightMap,r=this.heightOracle,{visibleTop:s,visibleBottom:a}=this,l=new jf(o.lineAt(s-1e3*n,Ke.ByHeight,r,0,0).from,o.lineAt(a+1e3*(1-n),Ke.ByHeight,r,0,0).to);if(e){let{head:c}=e.range;if(cl.to){let h,d=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),u=o.lineAt(c,Ke.ByPos,r,0,0);h="center"==e.y?(u.top+u.bottom)/2-d/2:"start"==e.y||"nearest"==e.y&&c=a+Math.max(10,Math.min(n,250)))&&o>s-2e3&&r>1,s=o<<1;if(this.defaultTextDirection!=ut.LTR&&!n)return[];let a=[],l=(c,d,u,h)=>{if(d-cc&&gg.from>=u.from&&g.to<=u.to&&Math.abs(g.from-c)g.fromb));if(!p){if(dg.from<=d&&g.to>=d)){let g=e.moveToLineBoundary(E.cursor(d),!1,!0).head;g>c&&(d=g)}p=new xy(c,d,this.gapSize(u,c,d,h))}a.push(p)};for(let c of this.viewportLines){if(c.lengthc.from&&l(c.from,h,c,d),fe.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let e=[];rt.spans(t,this.viewport.from,this.viewport.to,{span(o,r){e.push({from:o,to:r})},point(){}},20);let n=e.length!=this.visibleRanges.length||this.visibleRanges.some((o,r)=>o.from!=e[r].from||o.to!=e[r].to);return this.visibleRanges=e,n?4:0}lineBlockAt(t){return t>=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find(e=>e.from<=t&&e.to>=t)||nd(this.heightMap.lineAt(t,Ke.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return nd(this.heightMap.lineAt(this.scaler.fromDOM(t),Ke.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(t){let e=this.lineBlockAtHeight(t+8);return e.from>=this.viewport.from||this.viewportLines[0].top-t>200?e:this.viewportLines[0]}elementAtHeight(t){return nd(this.heightMap.blockAt(this.scaler.fromDOM(t),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class jf{constructor(t,e){this.from=t,this.to=e}}function xY(i,t,e){let n=[],o=i,r=0;return rt.spans(e,i,t,{span(){},point(s,a){s>o&&(n.push({from:o,to:s}),r+=s-o),o=a}},20),o=1)return t[t.length-1].to;let n=Math.floor(i*e);for(let o=0;;o++){let{from:r,to:s}=t[o],a=s-r;if(n<=a)return r+n;n-=a}}function Uf(i,t){let e=0;for(let{from:n,to:o}of i.ranges){if(t<=o){e+=t-n;break}e+=o-n}return e/i.total}const lO={toDOM:i=>i,fromDOM:i=>i,scale:1};class CY{constructor(t,e,n){let o=0,r=0,s=0;this.viewports=n.map(({from:a,to:l})=>{let c=e.lineAt(a,Ke.ByPos,t,0,0).top,d=e.lineAt(l,Ke.ByPos,t,0,0).bottom;return o+=d-c,{from:a,to:l,top:c,bottom:d,domTop:0,domBottom:0}}),this.scale=(7e6-o)/(e.height-o);for(let a of this.viewports)a.domTop=s+(a.top-r)*this.scale,s=a.domBottom=a.domTop+(a.bottom-a.top),r=a.bottom}toDOM(t){for(let e=0,n=0,o=0;;e++){let r=end(o,t)):i._content)}const Wf=H.define({combine:i=>i.join(" ")}),wy=H.define({combine:i=>i.indexOf(!0)>-1}),Cy=br.newName(),cO=br.newName(),dO=br.newName(),uO={"&light":"."+cO,"&dark":"."+dO};function ky(i,t,e){return new br(t,{finish:n=>/&/.test(n)?n.replace(/&\w*/,o=>{if("&"==o)return i;if(!e||!e[o])throw new RangeError(`Unsupported selector: ${o}`);return e[o]}):i+" "+n})}const kY=ky("."+Cy,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},uO);class DY{constructor(t,e){this.points=t,this.text="",this.lineSeparator=e.facet(qi.lineSeparator)}append(t){this.text+=t}lineBreak(){this.text+="\uffff"}readRange(t,e){if(!t)return this;let n=t.parentNode;for(let o=t;;){this.findPointBefore(n,o);let r=this.text.length;this.readNode(o);let s=o.nextSibling;if(s==e)break;let a=et.get(o),l=et.get(s);(a&&l?a.breakAfter:(a?a.breakAfter:hO(o))||hO(s)&&("BR"!=o.nodeName||o.cmIgnore)&&this.text.length>r)&&this.lineBreak(),o=s}return this.findPointBefore(n,e),this}readTextNode(t){let e=t.nodeValue;for(let n of this.points)n.node==t&&(n.pos=this.text.length+Math.min(n.offset,e.length));for(let n=0,o=this.lineSeparator?null:/\r\n?|\n/g;;){let a,r=-1,s=1;if(this.lineSeparator?(r=e.indexOf(this.lineSeparator,n),s=this.lineSeparator.length):(a=o.exec(e))&&(r=a.index,s=a[0].length),this.append(e.slice(n,r<0?e.length:r)),r<0)break;if(this.lineBreak(),s>1)for(let l of this.points)l.node==t&&l.pos>this.text.length&&(l.pos-=s-1);n=r+s}}readNode(t){if(t.cmIgnore)return;let e=et.get(t),n=e&&e.overrideDOMText;if(null!=n){this.findPointInside(t,n.length);for(let o=n.iter();!o.next().done;)o.lineBreak?this.lineBreak():this.append(o.value)}else 3==t.nodeType?this.readTextNode(t):"BR"==t.nodeName?t.nextSibling&&this.lineBreak():1==t.nodeType&&this.readRange(t.firstChild,null)}findPointBefore(t,e){for(let n of this.points)n.node==t&&t.childNodes[n.offset]==e&&(n.pos=this.text.length)}findPointInside(t,e){for(let n of this.points)(3==t.nodeType?n.node==t:t.contains(n.node))&&(n.pos=this.text.length+(SY(t,n.node,n.offset)?e:0))}}function SY(i,t,e){for(;;){if(!t||e-1)this.newSel=null;else if(e>-1&&(this.bounds=t.docView.domBoundsAround(e,n,0))){let a=r||s?[]:function TY(i){let t=[];if(i.root.activeElement!=i.contentDOM)return t;let{anchorNode:e,anchorOffset:n,focusNode:o,focusOffset:r}=i.observer.selectionRange;return e&&(t.push(new fO(e,n)),(o!=e||r!=n)&&t.push(new fO(o,r))),t}(t),l=new DY(a,t.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=function IY(i,t){if(0==i.length)return null;let e=i[0].pos,n=2==i.length?i[1].pos:e;return e>-1&&n>-1?E.single(e+t,n+t):null}(a,this.bounds.from)}else{let a=t.observer.selectionRange,l=r&&r.node==a.focusNode&&r.offset==a.focusOffset||!Jv(t.contentDOM,a.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(a.focusNode,a.focusOffset),c=s&&s.node==a.anchorNode&&s.offset==a.anchorOffset||!Jv(t.contentDOM,a.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(a.anchorNode,a.anchorOffset);this.newSel=E.single(c,l)}}}function mO(i,t){let e,{newSel:n}=t,o=i.state.selection.main,r=i.inputState.lastKeyTime>Date.now()-100?i.inputState.lastKeyCode:-1;if(t.bounds){let{from:s,to:a}=t.bounds,l=o.from,c=null;(8===r||G.android&&t.text.length0&&a>0&&i.charCodeAt(s-1)==t.charCodeAt(a-1);)s--,a--;return"end"==n&&(e-=s+Math.max(0,r-Math.min(s,a))-r),s=s?r-e:0,a=r+(a-s),s=r):a=a?r-e:0,s=r+(s-a),a=r),{from:r,toA:s,toB:a}}(i.state.doc.sliceString(s,a,"\uffff"),t.text,l-s,c);d&&(G.chrome&&13==r&&d.toB==d.from+2&&"\uffff\uffff"==t.text.slice(d.from,d.toB)&&d.toB--,e={from:s+d.from,to:s+d.toA,insert:Le.of(t.text.slice(d.from,d.toB).split("\uffff"))})}else n&&(!i.hasFocus&&i.state.facet(Pf)||n.main.eq(o))&&(n=null);if(!e&&!n)return!1;if(!e&&t.typeOver&&!o.empty&&n&&n.main.empty?e={from:o.from,to:o.to,insert:i.state.doc.slice(o.from,o.to)}:e&&e.from>=o.from&&e.to<=o.to&&(e.from!=o.from||e.to!=o.to)&&o.to-o.from-(e.to-e.from)<=4?e={from:o.from,to:o.to,insert:i.state.doc.slice(o.from,e.from).append(e.insert).append(i.state.doc.slice(e.to,o.to))}:(G.mac||G.android)&&e&&e.from==e.to&&e.from==o.head-1&&/^\. ?$/.test(e.insert.toString())&&"off"==i.contentDOM.getAttribute("autocorrect")?(n&&2==e.insert.length&&(n=E.single(n.main.anchor-1,n.main.head-1)),e={from:o.from,to:o.to,insert:Le.of([" "])}):G.chrome&&e&&e.from==e.to&&e.from==o.head&&"\n "==e.insert.toString()&&i.lineWrapping&&(n&&(n=E.single(n.main.anchor-1,n.main.head-1)),e={from:o.from,to:o.to,insert:Le.of([" "])}),e){if(G.ios&&i.inputState.flushIOSKey()||G.android&&(e.from==o.from&&e.to==o.to&&1==e.insert.length&&2==e.insert.lines&&Ya(i.contentDOM,"Enter",13)||(e.from==o.from-1&&e.to==o.to&&0==e.insert.length||8==r&&e.insert.lengtho.head)&&Ya(i.contentDOM,"Backspace",8)||e.from==o.from&&e.to==o.to+1&&0==e.insert.length&&Ya(i.contentDOM,"Delete",46)))return!0;let s=e.insert.toString();i.inputState.composing>=0&&i.inputState.composing++;let a,l=()=>a||(a=function EY(i,t,e){let n,o=i.state,r=o.selection.main;if(t.from>=r.from&&t.to<=r.to&&t.to-t.from>=(r.to-r.from)/3&&(!e||e.main.empty&&e.main.from==t.from+t.insert.length)&&i.inputState.composing<0){let a=r.fromt.to?o.sliceDoc(t.to,r.to):"";n=o.replaceSelection(i.state.toText(a+t.insert.sliceString(0,void 0,i.state.lineBreak)+l))}else{let a=o.changes(t),l=e&&e.main.to<=a.newLength?e.main:void 0;if(o.selection.ranges.length>1&&i.inputState.composing>=0&&t.to<=r.to&&t.to>=r.to-10){let d,c=i.state.sliceDoc(t.from,t.to),u=e&&TI(i,e.main.head);d=u?{from:u.from,to:u.to-(t.insert.length-(t.to-t.from))}:i.state.doc.lineAt(r.head);let h=r.to-t.to,f=r.to-r.from;n=o.changeByRange(m=>{if(m.from==r.from&&m.to==r.to)return{changes:a,range:l||m.map(a)};let p=m.to-h,g=p-c.length;if(m.to-m.from!=f||i.state.sliceDoc(g,p)!=c||m.to>=d.from&&m.from<=d.to)return{range:m};let b=o.changes({from:g,to:p,insert:t.insert}),v=m.to-r.to;return{changes:b,range:l?E.range(Math.max(0,l.anchor+v),Math.max(0,l.head+v)):m.map(b)}})}else n={changes:a,selection:l&&o.selection.replaceRange(l)}}let s="input.type";return(i.composing||i.inputState.compositionPendingChange&&i.inputState.compositionEndedAt>Date.now()-50)&&(i.inputState.compositionPendingChange=!1,s+=".compose",i.inputState.compositionFirstChange&&(s+=".start",i.inputState.compositionFirstChange=!1)),o.update(n,{userEvent:s,scrollIntoView:!0})}(i,e,n));return i.state.facet(uI).some(c=>c(i,e.from,e.to,s,l))||i.dispatch(l()),!0}if(n&&!n.main.eq(o)){let s=!1,a="select";return i.inputState.lastSelectionTime>Date.now()-50&&("select"==i.inputState.lastSelectionOrigin&&(s=!0),a=i.inputState.lastSelectionOrigin),i.dispatch({selection:n,scrollIntoView:s,userEvent:a}),!0}return!1}const OY={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Dy=G.ie&&G.ie_version<=11;class RY{constructor(t){this.view=t,this.active=!1,this.selectionRange=new y7,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.resizeContent=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver(e=>{for(let n of e)this.queue.push(n);(G.ie&&G.ie_version<=11||G.ios&&t.composing)&&e.some(n=>"childList"==n.type&&n.removedNodes.length||"characterData"==n.type&&n.oldValue.length>n.target.nodeValue.length)?this.flushSoon():this.flush()}),Dy&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver(()=>{var e;(null===(e=this.view.docView)||void 0===e?void 0:e.lastUpdate)this.view.requestMeasure()),this.resizeContent.observe(t.contentDOM)),this.addWindowListeners(this.win=t.win),this.start(),"function"==typeof IntersectionObserver&&(this.intersection=new IntersectionObserver(e=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(t){this.view.inputState.runHandlers("scroll",t),this.intersecting&&this.view.measure()}onScroll(t){this.intersecting&&this.flush(!1),this.onScrollChanged(t)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some((e,n)=>e!=t[n]))){this.gapIntersection.disconnect();for(let e of t)this.gapIntersection.observe(e);this.gaps=t}}onSelectionChange(t){let e=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,o=this.selectionRange;if(n.state.facet(Pf)?n.root.activeElement!=this.dom:!Af(n.dom,o))return;let r=o.anchorNode&&n.docView.nearest(o.anchorNode);r&&r.ignoreEvent(t)?e||(this.selectionChanged=!1):(G.ie&&G.ie_version<=11||G.android&&G.chrome)&&!n.state.selection.main.empty&&o.focusNode&&Tf(o.focusNode,o.focusOffset,o.anchorNode,o.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,e=G.safari&&11==t.root.nodeType&&function g7(i){let t=i.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom&&function FY(i){let t=null;function e(l){l.preventDefault(),l.stopImmediatePropagation(),t=l.getTargetRanges()[0]}if(i.contentDOM.addEventListener("beforeinput",e,!0),i.dom.ownerDocument.execCommand("indent"),i.contentDOM.removeEventListener("beforeinput",e,!0),!t)return null;let n=t.startContainer,o=t.startOffset,r=t.endContainer,s=t.endOffset,a=i.docView.domAtPos(i.state.selection.main.anchor);return Tf(a.node,a.offset,r,s)&&([n,o,r,s]=[r,s,n,o]),{anchorNode:n,anchorOffset:o,focusNode:r,focusOffset:s}}(this.view)||Ef(t.root);if(!e||this.selectionRange.eq(e))return!1;let n=Af(this.dom,e);return n&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime{let r=this.delayedAndroidKey;r&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=r.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&r.force&&Ya(this.dom,r.key,r.keyCode))})),(!this.delayedAndroidKey||"Enter"==t)&&(this.delayedAndroidKey={key:t,keyCode:e,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}processRecords(){let t=this.pendingRecords();t.length&&(this.queue=[]);let e=-1,n=-1,o=!1;for(let r of t){let s=this.readMutation(r);s&&(s.typeOver&&(o=!0),-1==e?({from:e,to:n}=s):(e=Math.min(s.from,e),n=Math.max(s.to,n)))}return{from:e,to:n,typeOver:o}}readChange(){let{from:t,to:e,typeOver:n}=this.processRecords(),o=this.selectionChanged&&Af(this.dom,this.selectionRange);if(t<0&&!o)return null;t>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let r=new MY(this.view,t,e,n);return this.view.docView.domChanged={newSel:r.newSel?r.newSel.main:null},r}flush(t=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;t&&this.readSelectionRange();let e=this.readChange();if(!e)return this.view.requestMeasure(),!1;let n=this.view.state,o=mO(this.view,e);return this.view.state==n&&this.view.update([]),o}readMutation(t){let e=this.view.docView.nearest(t.target);if(!e||e.ignoreMutation(t))return null;if(e.markDirty("attributes"==t.type),"attributes"==t.type&&(e.flags|=4),"childList"==t.type){let n=pO(e,t.previousSibling||t.target.previousSibling,-1),o=pO(e,t.nextSibling||t.target.nextSibling,1);return{from:n?e.posAfter(n):e.posAtStart,to:o?e.posBefore(o):e.posAtEnd,typeOver:!1}}return"characterData"==t.type?{from:e.posAtStart,to:e.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}:null}setWindow(t){t!=this.win&&(this.removeWindowListeners(this.win),this.win=t,this.addWindowListeners(this.win))}addWindowListeners(t){t.addEventListener("resize",this.onResize),t.addEventListener("beforeprint",this.onPrint),t.addEventListener("scroll",this.onScroll),t.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(t){t.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onResize),t.removeEventListener("beforeprint",this.onPrint),t.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var t,e,n,o;this.stop(),null===(t=this.intersection)||void 0===t||t.disconnect(),null===(e=this.gapIntersection)||void 0===e||e.disconnect(),null===(n=this.resizeScroll)||void 0===n||n.disconnect(),null===(o=this.resizeContent)||void 0===o||o.disconnect();for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function pO(i,t,e){for(;t;){let n=et.get(t);if(n&&n.parent==i)return n;let o=t.parentNode;t=o!=i.dom?o:e>0?t.nextSibling:t.previousSibling}return null}let ve=(()=>{class i{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: fixed; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM);let{dispatch:n}=e;this.dispatchTransactions=e.dispatchTransactions||n&&(o=>o.forEach(r=>n(r,this)))||(o=>this.update(o)),this.dispatch=this.dispatch.bind(this),this._root=e.root||function x7(i){for(;i;){if(i&&(9==i.nodeType||11==i.nodeType&&i.host))return i;i=i.assignedSlot||i.parentNode}return null}(e.parent)||document,this.viewState=new aO(e.state||qi.create(e)),this.plugins=this.state.facet(Jc).map(o=>new dy(o));for(let o of this.plugins)o.update(this);this.observer=new RY(this),this.inputState=new Z7(this),this.inputState.ensureHandlers(this.plugins),this.docView=new EI(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}dispatch(...e){let n=1==e.length&&e[0]instanceof oo?e:1==e.length&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(n,this)}update(e){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let r,n=!1,o=!1,s=this.state;for(let f of e){if(f.startState!=s)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");s=f.state}if(this.destroyed)return void(this.viewState.state=s);let a=this.hasFocus,l=0,c=null;e.some(f=>f.annotation(QI))?(this.inputState.notifiedFocused=a,l=1):a!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=a,c=JI(s,a),c||(l=1));let d=this.observer.delayedAndroidKey,u=null;if(d?(this.observer.clearDelayedAndroidKey(),u=this.observer.readChange(),(u&&!this.state.doc.eq(s.doc)||!this.state.selection.eq(s.selection))&&(u=null)):this.observer.clear(),s.facet(qi.phrases)!=this.state.facet(qi.phrases))return this.setState(s);r=Lf.create(this,s,e),r.flags|=l;let h=this.viewState.scrollTarget;try{this.updateState=2;for(let f of e){if(h&&(h=h.map(f.changes)),f.scrollIntoView){let{main:m}=f.state.selection;h=new Ff(m.empty?m:E.cursor(m.head,m.head>m.anchor?-1:1))}for(let m of f.effects)m.is(pI)&&(h=m.value)}this.viewState.update(r,h),this.bidiCache=Gf.update(this.bidiCache,r.changes),r.empty||(this.updatePlugins(r),this.inputState.update(r)),n=this.docView.update(r),this.state.facet(td)!=this.styleModules&&this.mountStyles(),o=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some(f=>f.isUserEvent("select.pointer")))}finally{this.updateState=0}if(r.startState.facet(Wf)!=r.state.facet(Wf)&&(this.viewState.mustMeasureContent=!0),(n||o||h||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!r.empty)for(let f of this.state.facet(cy))f(r);(c||u)&&Promise.resolve().then(()=>{c&&this.state==c.startState&&this.dispatch(c),u&&!mO(this,u)&&d.force&&Ya(this.contentDOM,d.key,d.keyCode)})}setState(e){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=e);this.updateState=2;let n=this.hasFocus;try{for(let o of this.plugins)o.destroy(this);this.viewState=new aO(e),this.plugins=e.facet(Jc).map(o=>new dy(o)),this.pluginMap.clear();for(let o of this.plugins)o.update(this);this.docView=new EI(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}n&&this.focus(),this.requestMeasure()}updatePlugins(e){let n=e.startState.facet(Jc),o=e.state.facet(Jc);if(n!=o){let r=[];for(let s of o){let a=n.indexOf(s);if(a<0)r.push(new dy(s));else{let l=this.plugins[a];l.mustUpdate=e,r.push(l)}}for(let s of this.plugins)s.mustUpdate!=e&&s.destroy(this);this.plugins=r,this.pluginMap.clear()}else for(let r of this.plugins)r.mustUpdate=e;for(let r=0;r-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey)return this.measureScheduled=-1,void this.requestMeasure();this.measureScheduled=0,e&&this.observer.forceFlush();let n=null,o=this.scrollDOM,r=o.scrollTop*this.scaleY,{scrollAnchorPos:s,scrollAnchorHeight:a}=this.viewState;Math.abs(r-this.viewState.scrollTop)>1&&(a=-1),this.viewState.scrollAnchorHeight=-1;try{for(let l=0;;l++){if(a<0)if(WT(o))s=-1,a=this.viewState.heightMap.height;else{let m=this.viewState.scrollAnchorAt(r);s=m.from,a=m.top}this.updateState=1;let c=this.viewState.measure(this);if(!c&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(l>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let d=[];4&c||([this.measureRequests,d]=[d,this.measureRequests]);let u=d.map(m=>{try{return m.read(this)}catch(p){return Hn(this.state,p),gO}}),h=Lf.create(this,this.state,[]),f=!1;h.flags|=c,n?n.flags|=c:n=h,this.updateState=2,h.empty||(this.updatePlugins(h),this.inputState.update(h),this.updateAttrs(),f=this.docView.update(h));for(let m=0;m1||p<-1){r+=p,o.scrollTop=r/this.scaleY,a=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(n&&!n.empty)for(let l of this.state.facet(cy))l(n)}get themeClasses(){return Cy+" "+(this.state.facet(wy)?dO:cO)+" "+this.state.facet(Wf)}updateAttrs(){let e=_O(this,gI,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Pf)?"true":"false",class:"cm-content",style:`${G.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),_O(this,Nf,n);let o=this.observer.ignore(()=>{let r=ay(this.contentDOM,this.contentAttrs,n),s=ay(this.dom,this.editorAttrs,e);return r||s});return this.editorAttrs=e,this.contentAttrs=n,o}showAnnouncements(e){let n=!0;for(let o of e)for(let r of o.effects)r.is(i.announce)&&(n&&(this.announceDOM.textContent=""),n=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=r.value)}mountStyles(){this.styleModules=this.state.facet(td);let e=this.state.facet(i.cspNonce);br.mount(this.root,this.styleModules.concat(kY).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(null!=e.key)for(let n=0;no.spec==e)||null),n&&n.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,n,o){return by(this,e,LI(this,e,n,o))}moveByGroup(e,n){return by(this,e,LI(this,e,n,o=>function X7(i,t,e){let n=i.state.charCategorizer(t),o=n(e);return r=>{let s=n(r);return o==ot.Space&&(o=s),o==s}}(this,e.head,o)))}moveToLineBoundary(e,n,o=!0){return function Y7(i,t,e,n){let o=_y(i,t.head),r=n&&o.type==Si.Text&&(i.lineWrapping||o.widgetLineBreaks)?i.coordsAtPos(t.assoc<0&&t.head>o.from?t.head-1:t.head):null;if(r){let s=i.dom.getBoundingClientRect(),a=i.textDirectionAt(o.from),l=i.posAtCoords({x:e==(a==ut.LTR)?s.right-1:s.left+1,y:(r.top+r.bottom)/2});if(null!=l)return E.cursor(l,e?-1:1)}return E.cursor(e?o.to:o.from,e?-1:1)}(this,e,n,o)}moveVertically(e,n,o){return by(this,e,function K7(i,t,e,n){let o=t.head,r=e?1:-1;if(o==(e?i.state.doc.length:0))return E.cursor(o,t.assoc);let a,s=t.goalColumn,l=i.contentDOM.getBoundingClientRect(),c=i.coordsAtPos(o,t.assoc||-1),d=i.documentTop;if(c)null==s&&(s=c.left-l.left),a=r<0?c.top:c.bottom;else{let f=i.viewState.lineBlockAt(o);null==s&&(s=Math.min(l.right-l.left,i.defaultCharacterWidth*(o-f.from))),a=(r<0?f.top:f.bottom)+d}let u=l.left+s,h=n??i.viewState.heightOracle.textHeight>>1;for(let f=0;;f+=10){let m=a+(h+f)*r,p=PI(i,{x:u,y:m},!1,r);if(ml.bottom||(r<0?po)){let g=i.docView.coordsForChar(p);return E.cursor(p,!g||m0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(fI)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>PY)return DI(e.length);let o,n=this.textDirectionAt(e.from);for(let s of this.bidiCache)if(s.from==e.from&&s.dir==n&&(s.fresh||CI(s.isolates,o=bI(this,e.from,e.to))))return s.order;o||(o=bI(this,e.from,e.to));let r=function kI(i,t,e){if(!i)return[new Cr(0,0,t==xI?1:0)];if(t==id&&!e.length&&!O7.test(i))return DI(i.length);if(e.length)for(;i.length>Ue.length;)Ue[Ue.length]=256;let n=[],o=t==id?0:1;return my(i,o,o,e,0,i.length,n),n}(e.text,n,o);return this.bidiCache.push(new Gf(e.from,e.to,n,o,!0,r)),r}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||G.safari&&(null===(e=this.inputState)||void 0===e?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{jT(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((9==e.nodeType?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,n={}){return pI.of(new Ff("number"==typeof e?E.cursor(e):e,n.y,n.x,n.yMargin,n.xMargin))}static domEventHandlers(e){return gt.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return gt.define(()=>({}),{eventObservers:e})}static theme(e,n){let o=br.newName(),r=[Wf.of(o),td.of(ky(`.${o}`,e))];return n&&n.dark&&r.push(wy.of(!0)),r}static baseTheme(e){return ps.lowest(td.of(ky("."+Cy,e,uO)))}static findFromDOM(e){var n;let o=e.querySelector(".cm-content"),r=o&&et.get(o)||et.get(e);return(null===(n=r?.rootView)||void 0===n?void 0:n.view)||null}}return i.styleModule=td,i.inputHandler=uI,i.focusChangeEffect=hI,i.perLineTextDirection=fI,i.exceptionSink=dI,i.updateListener=cy,i.editable=Pf,i.mouseSelectionStyle=cI,i.dragMovesSelection=lI,i.clickAddsSelectionRange=aI,i.decorations=ed,i.atomicRanges=uy,i.bidiIsolatedRanges=_I,i.scrollMargins=vI,i.darkTheme=wy,i.cspNonce=H.define({combine:t=>t.length?t[0]:""}),i.contentAttributes=Nf,i.editorAttributes=gI,i.lineWrapping=i.contentAttributes.of({class:"cm-lineWrapping"}),i.announce=Ee.define(),i})();const PY=4096,gO={};class Gf{constructor(t,e,n,o,r,s){this.from=t,this.to=e,this.dir=n,this.isolates=o,this.fresh=r,this.order=s}static update(t,e){if(e.empty&&!t.some(r=>r.fresh))return t;let n=[],o=t.length?t[t.length-1].dir:ut.LTR;for(let r=Math.max(0,t.length-10);r=0;o--){let r=n[o],s="function"==typeof r?r(i):r;s&&ry(s,e)}return e}const NY=G.mac?"mac":G.windows?"win":G.linux?"linux":"key";function qf(i,t,e){return t.altKey&&(i="Alt-"+i),t.ctrlKey&&(i="Ctrl-"+i),t.metaKey&&(i="Meta-"+i),!1!==e&&t.shiftKey&&(i="Shift-"+i),i}const Yf=H.define({enables:ps.default(ve.domEventHandlers({keydown:(i,t)=>yO(vO(t.state),i,t,"editor")}))}),bO=new WeakMap;function vO(i){let t=i.facet(Yf),e=bO.get(t);return e||bO.set(t,e=function zY(i,t=NY){let e=Object.create(null),n=Object.create(null),o=(s,a)=>{let l=n[s];if(null==l)n[s]=a;else if(l!=a)throw new Error("Key binding "+s+" is used both as a regular binding and as a multi-stroke prefix")},r=(s,a,l,c,d)=>{var u,h;let f=e[s]||(e[s]=Object.create(null)),m=a.split(/ (?!$)/).map(b=>function LY(i,t){const e=i.split(/-(?!$)/);let o,r,s,a,n=e[e.length-1];"Space"==n&&(n=" ");for(let l=0;l{let y=kr={view:x,prefix:v,scope:s};return setTimeout(()=>{kr==y&&(kr=null)},HY),!0}]})}let p=m.join(" ");o(p,!1);let g=f[p]||(f[p]={preventDefault:!1,stopPropagation:!1,run:(null===(h=null===(u=f._any)||void 0===u?void 0:u.run)||void 0===h?void 0:h.slice())||[]});l&&g.run.push(l),c&&(g.preventDefault=!0),d&&(g.stopPropagation=!0)};for(let s of i){let a=s.scope?s.scope.split(" "):["editor"];if(s.any)for(let c of a){let d=e[c]||(e[c]=Object.create(null));d._any||(d._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let u in d)d[u].run.push(s.any)}let l=s[t]||s.key;if(l)for(let c of a)r(c,l,s.run,s.preventDefault,s.stopPropagation),s.shift&&r(c,"Shift-"+l,s.shift,s.preventDefault,s.stopPropagation)}return e}(t.reduce((n,o)=>n.concat(o),[]))),e}let kr=null;const HY=4e3;function yO(i,t,e,n){let o=function p7(i){var e=!(f7&&i.metaKey&&i.shiftKey&&!i.ctrlKey&&!i.altKey||m7&&i.shiftKey&&i.key&&1==i.key.length||"Unidentified"==i.key)&&i.key||(i.shiftKey?Yc:vr)[i.keyCode]||i.key||"Unidentified";return"Esc"==e&&(e="Escape"),"Del"==e&&(e="Delete"),"Left"==e&&(e="ArrowLeft"),"Up"==e&&(e="ArrowUp"),"Right"==e&&(e="ArrowRight"),"Down"==e&&(e="ArrowDown"),e}(t),s=_n(qt(o,0))==o.length&&" "!=o,a="",l=!1,c=!1,d=!1;kr&&kr.view==e&&kr.scope==n&&(a=kr.prefix+" ",HI.indexOf(t.keyCode)<0&&(c=!0,kr=null));let m,p,u=new Set,h=g=>{if(g){for(let b of g.run)if(!u.has(b)&&(u.add(b),b(e,t)))return g.stopPropagation&&(d=!0),!0;g.preventDefault&&(g.stopPropagation&&(d=!0),c=!0)}return!1},f=i[n];return f&&(h(f[a+qf(o,t,!s)])?l=!0:s&&(t.altKey||t.metaKey||t.ctrlKey)&&!(G.windows&&t.ctrlKey&&t.altKey)&&(m=vr[t.keyCode])&&m!=o?(h(f[a+qf(m,t,!0)])||t.shiftKey&&(p=Yc[t.keyCode])!=o&&p!=m&&h(f[a+qf(p,t,!1)]))&&(l=!0):s&&t.shiftKey&&h(f[a+qf(o,t,!0)])&&(l=!0),!l&&h(f._any)&&(l=!0)),c&&(l=!0),l&&d&&t.stopPropagation(),l}class rd{constructor(t,e,n,o,r){this.className=t,this.left=e,this.top=n,this.width=o,this.height=r}draw(){let t=document.createElement("div");return t.className=this.className,this.adjust(t),t}update(t,e){return e.className==this.className&&(this.adjust(t),!0)}adjust(t){t.style.left=this.left+"px",t.style.top=this.top+"px",null!=this.width&&(t.style.width=this.width+"px"),t.style.height=this.height+"px"}eq(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}static forRange(t,e,n){if(n.empty){let o=t.coordsAtPos(n.head,n.assoc||1);if(!o)return[];let r=xO(t);return[new rd(e,o.left-r.left,o.top-r.top,null,o.bottom-o.top)]}return function jY(i,t,e){if(e.to<=i.viewport.from||e.from>=i.viewport.to)return[];let n=Math.max(e.from,i.viewport.from),o=Math.min(e.to,i.viewport.to),r=i.textDirection==ut.LTR,s=i.contentDOM,a=s.getBoundingClientRect(),l=xO(i),c=s.querySelector(".cm-line"),d=c&&window.getComputedStyle(c),u=a.left+(d?parseInt(d.paddingLeft)+Math.min(0,parseInt(d.textIndent)):0),h=a.right-(d?parseInt(d.paddingRight):0),f=_y(i,n),m=_y(i,o),p=f.type==Si.Text?f:null,g=m.type==Si.Text?m:null;if(p&&(i.lineWrapping||f.widgetLineBreaks)&&(p=wO(i,n,p)),g&&(i.lineWrapping||m.widgetLineBreaks)&&(g=wO(i,o,g)),p&&g&&p.from==g.from)return v(x(e.from,e.to,p));{let w=p?x(e.from,null,p):y(f,!1),M=g?x(null,e.to,g):y(m,!0),F=[];return(p||f).to<(g||m).from-(p&&g?1:0)||f.widgetLineBreaks>1&&w.bottom+i.defaultLineHeight/2tt&&Qt.from=N)break;Ce>Mt&&Ve(Math.max(X,Mt),null==w&&X<=tt,Math.min(Ce,N),null==M&&Ce>=st,j.dir)}if(Mt=z.to+1,Mt>=N)break}return 0==ie.length&&Ve(tt,null==w,st,null==M,i.textDirection),{top:K,bottom:Q,horizontal:ie}}function y(w,M){let F=a.top+(M?w.top:w.bottom);return{top:F,bottom:F,horizontal:[]}}}(t,e,n)}}function xO(i){let t=i.scrollDOM.getBoundingClientRect();return{left:(i.textDirection==ut.LTR?t.left:t.right-i.scrollDOM.clientWidth*i.scaleX)-i.scrollDOM.scrollLeft*i.scaleX,top:t.top-i.scrollDOM.scrollTop*i.scaleY}}function wO(i,t,e){let n=E.cursor(t);return{from:Math.max(e.from,i.moveToLineBoundary(n,!1,!0).from),to:Math.min(e.to,i.moveToLineBoundary(n,!0,!0).from),type:Si.Text}}class UY{constructor(t,e){this.view=t,this.layer=e,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=t.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),e.above&&this.dom.classList.add("cm-layer-above"),e.class&&this.dom.classList.add(e.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(t.state),t.requestMeasure(this.measureReq),e.mount&&e.mount(this.dom,t)}update(t){t.startState.facet(Xf)!=t.state.facet(Xf)&&this.setOrder(t.state),(this.layer.update(t,this.dom)||t.geometryChanged)&&(this.scale(),t.view.requestMeasure(this.measureReq))}setOrder(t){let e=0,n=t.facet(Xf);for(;e!function $Y(i,t){return i.constructor==t.constructor&&i.eq(t)}(e,this.drawn[n]))){let e=this.dom.firstChild,n=0;for(let o of t)o.update&&e&&o.constructor&&this.drawn[n].constructor&&o.update(e,this.drawn[n])?(e=e.nextSibling,n++):this.dom.insertBefore(o.draw(),e);for(;e;){let o=e.nextSibling;e.remove(),e=o}this.drawn=t}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const Xf=H.define();function CO(i){return[gt.define(t=>new UY(t,i)),Xf.of(i)]}const kO=!G.ios,Ka=H.define({combine:i=>Vn(i,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(t,e)=>Math.min(t,e),drawRangeCursor:(t,e)=>t||e})});function WY(i={}){return[Ka.of(i),GY,qY,YY,mI.of(!0)]}function DO(i){return i.startState.facet(Ka)!=i.state.facet(Ka)}const GY=CO({above:!0,markers(i){let{state:t}=i,e=t.facet(Ka),n=[];for(let o of t.selection.ranges){let r=o==t.selection.main;if(o.empty?!r||kO:e.drawRangeCursor){let s=r?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",a=o.empty?o:E.cursor(o.head,o.head>o.anchor?-1:1);for(let l of rd.forRange(i,s,a))n.push(l)}}return n},update(i,t){i.transactions.some(n=>n.selection)&&(t.style.animationName="cm-blink"==t.style.animationName?"cm-blink2":"cm-blink");let e=DO(i);return e&&SO(i.state,t),i.docChanged||i.selectionSet||e},mount(i,t){SO(t.state,i)},class:"cm-cursorLayer"});function SO(i,t){t.style.animationDuration=i.facet(Ka).cursorBlinkRate+"ms"}const qY=CO({above:!1,markers:i=>i.state.selection.ranges.map(t=>t.empty?[]:rd.forRange(i,"cm-selectionBackground",t)).reduce((t,e)=>t.concat(e)),update:(i,t)=>i.docChanged||i.selectionSet||i.viewportChanged||DO(i),class:"cm-selectionLayer"}),MO={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};kO&&(MO[".cm-line"].caretColor="transparent !important");const YY=ps.highest(ve.theme(MO)),EO=Ee.define({map:(i,t)=>null==i?null:t.mapPos(i)}),sd=St.define({create:()=>null,update:(i,t)=>(null!=i&&(i=t.changes.mapPos(i)),t.effects.reduce((e,n)=>n.is(EO)?n.value:e,i))}),XY=gt.fromClass(class{constructor(i){this.view=i,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(i){var t;let e=i.state.field(sd);null==e?null!=this.cursor&&(null===(t=this.cursor)||void 0===t||t.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(i.startState.field(sd)!=e||i.docChanged||i.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:i}=this,t=i.state.field(sd),e=null!=t&&i.coordsAtPos(t);if(!e)return null;let n=i.scrollDOM.getBoundingClientRect();return{left:e.left-n.left+i.scrollDOM.scrollLeft*i.scaleX,top:e.top-n.top+i.scrollDOM.scrollTop*i.scaleY,height:e.bottom-e.top}}drawCursor(i){if(this.cursor){let{scaleX:t,scaleY:e}=this.view;i?(this.cursor.style.left=i.left/t+"px",this.cursor.style.top=i.top/e+"px",this.cursor.style.height=i.height/e+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(i){this.view.state.field(sd)!=i&&this.view.dispatch({effects:EO.of(i)})}},{eventObservers:{dragover(i){this.setDropPos(this.view.posAtCoords({x:i.clientX,y:i.clientY}))},dragleave(i){(i.target==this.view.contentDOM||!this.view.contentDOM.contains(i.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function AO(i,t,e,n,o){t.lastIndex=0;for(let a,r=i.iterRange(e,n),s=e;!r.next().done;s+=r.value.length)if(!r.lineBreak)for(;a=t.exec(r.value);)o(s+a.index,a)}class Sy{constructor(t){const{regexp:e,decoration:n,decorate:o,boundary:r,maxLength:s=1e3}=t;if(!e.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=e,o)this.addMatch=(a,l,c,d)=>o(d,c,c+a[0].length,a,l);else if("function"==typeof n)this.addMatch=(a,l,c,d)=>{let u=n(a,l,c);u&&d(c,c+a[0].length,u)};else{if(!n)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=(a,l,c,d)=>d(c,c+a[0].length,n)}this.boundary=r,this.maxLength=s}createDeco(t){let e=new _r,n=e.add.bind(e);for(let{from:o,to:r}of function ZY(i,t){let e=i.visibleRanges;if(1==e.length&&e[0].from==i.viewport.from&&e[0].to==i.viewport.to)return e;let n=[];for(let{from:o,to:r}of e)o=Math.max(i.state.doc.lineAt(o).from,o-t),r=Math.min(i.state.doc.lineAt(r).to,r+t),n.length&&n[n.length-1].to>=o?n[n.length-1].to=r:n.push({from:o,to:r});return n}(t,this.maxLength))AO(t.state.doc,this.regexp,o,r,(s,a)=>this.addMatch(a,t,s,n));return e.finish()}updateDeco(t,e){let n=1e9,o=-1;return t.docChanged&&t.changes.iterChanges((r,s,a,l)=>{l>t.view.viewport.from&&a1e3?this.createDeco(t.view):o>-1?this.updateRange(t.view,e.map(t.changes),n,o):e}updateRange(t,e,n,o){for(let r of t.visibleRanges){let s=Math.max(r.from,n),a=Math.min(r.to,o);if(a>s){let l=t.state.doc.lineAt(s),c=l.tol.from;s--)if(this.boundary.test(l.text[s-1-l.from])){d=s;break}for(;ah.push(b.range(p,g));if(l==c)for(this.regexp.lastIndex=d-l.from;(f=this.regexp.exec(l.text))&&f.indexthis.addMatch(g,t,p,m));e=e.update({filterFrom:d,filterTo:u,filter:(p,g)=>pu,add:h})}}return e}}const My=null!=/x/.unicode?"gu":"g",QY=new RegExp("[\0-\b\n-\x1f\x7f-\x9f\xad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]",My),JY={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Ey=null;const Kf=H.define({combine(i){let t=Vn(i,{render:null,specialChars:QY,addSpecialChars:null});return(t.replaceTabs=!function eX(){var i;if(null==Ey&&typeof document<"u"&&document.body){let t=document.body.style;Ey=null!=(null!==(i=t.tabSize)&&void 0!==i?i:t.MozTabSize)}return Ey||!1}())&&(t.specialChars=new RegExp("\t|"+t.specialChars.source,My)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,My)),t}});function tX(i={}){return[Kf.of(i),TO||(TO=gt.fromClass(class{constructor(i){this.view=i,this.decorations=Y.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(i.state.facet(Kf)),this.decorations=this.decorator.createDeco(i)}makeDecorator(i){return new Sy({regexp:i.specialChars,decoration:(t,e,n)=>{let{doc:o}=e.state,r=qt(t[0],0);if(9==r){let s=o.lineAt(n),a=e.state.tabSize,l=Wa(s.text,a,n-s.from);return Y.replace({widget:new sX((a-l%a)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[r]||(this.decorationCache[r]=Y.replace({widget:new rX(i,r)}))},boundary:i.replaceTabs?void 0:/[^]/})}update(i){let t=i.state.facet(Kf);i.startState.facet(Kf)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(i.view)):this.decorations=this.decorator.updateDeco(i,this.decorations)}},{decorations:i=>i.decorations}))]}let TO=null;class rX extends jo{constructor(t,e){super(),this.options=t,this.code=e}eq(t){return t.code==this.code}toDOM(t){let e=function oX(i){return i>=32?"\u2022":10==i?"\u2424":String.fromCharCode(9216+i)}(this.code),n=t.state.phrase("Control character")+" "+(JY[this.code]||"0x"+this.code.toString(16)),o=this.options.render&&this.options.render(this.code,n,e);if(o)return o;let r=document.createElement("span");return r.textContent=e,r.title=n,r.setAttribute("aria-label",n),r.className="cm-specialChar",r}ignoreEvent(){return!1}}class sX extends jo{constructor(t){super(),this.width=t}eq(t){return t.width==this.width}toDOM(){let t=document.createElement("span");return t.textContent="\t",t.className="cm-tab",t.style.width=this.width+"px",t}ignoreEvent(){return!1}}const lX=Y.line({class:"cm-activeLine"}),cX=gt.fromClass(class{constructor(i){this.decorations=this.getDeco(i)}update(i){(i.docChanged||i.selectionSet)&&(this.decorations=this.getDeco(i.view))}getDeco(i){let t=-1,e=[];for(let n of i.state.selection.ranges){let o=i.lineBlockAt(n.head);o.from>t&&(e.push(lX.range(o.from)),t=o.from)}return Y.set(e)}},{decorations:i=>i.decorations}),Ay=2e3;function OO(i,t){let e=i.posAtCoords({x:t.clientX,y:t.clientY},!1),n=i.state.doc.lineAt(e),o=e-n.from,r=o>Ay?-1:o==n.length?function hX(i,t){let e=i.coordsAtPos(i.viewport.from);return e?Math.round(Math.abs((e.left-t)/i.defaultCharacterWidth)):-1}(i,t.clientX):Wa(n.text,i.state.tabSize,e-n.from);return{line:n.number,col:r,off:o}}function mX(i){let t=i?.eventFilter||(e=>e.altKey&&0==e.button);return ve.mouseSelectionStyle.of((e,n)=>t(n)?function fX(i,t){let e=OO(i,t),n=i.state.selection;return e?{update(o){if(o.docChanged){let r=o.changes.mapPos(o.startState.doc.line(e.line).from),s=o.state.doc.lineAt(r);e={line:s.number,col:e.col,off:Math.min(e.off,s.length)},n=n.map(o.changes)}},get(o,r,s){let a=OO(i,o);if(!a)return n;let l=function uX(i,t,e){let n=Math.min(t.line,e.line),o=Math.max(t.line,e.line),r=[];if(t.off>Ay||e.off>Ay||t.col<0||e.col<0){let s=Math.min(t.off,e.off),a=Math.max(t.off,e.off);for(let l=n;l<=o;l++){let c=i.doc.line(l);c.length<=a&&r.push(E.range(c.from+s,c.to+a))}}else{let s=Math.min(t.col,e.col),a=Math.max(t.col,e.col);for(let l=n;l<=o;l++){let c=i.doc.line(l),d=Xv(c.text,s,i.tabSize,!0);if(d<0)r.push(E.cursor(c.to));else{let u=Xv(c.text,a,i.tabSize);r.push(E.range(c.from+d,c.from+u))}}}return r}(i.state,e,a);return l.length?E.create(s?l.concat(n.ranges):l):n}}:null}(e,n):null)}const pX={Alt:[18,i=>!!i.altKey],Control:[17,i=>!!i.ctrlKey],Shift:[16,i=>!!i.shiftKey],Meta:[91,i=>!!i.metaKey]},gX={style:"cursor: crosshair"};function _X(i={}){let[t,e]=pX[i.key||"Alt"],n=gt.fromClass(class{constructor(o){this.view=o,this.isDown=!1}set(o){this.isDown!=o&&(this.isDown=o,this.view.update([]))}},{eventObservers:{keydown(o){this.set(o.keyCode==t||e(o))},keyup(o){(o.keyCode==t||!e(o))&&this.set(!1)},mousemove(o){this.set(e(o))}}});return[n,ve.contentAttributes.of(o=>{var r;return null!==(r=o.plugin(n))&&void 0!==r&&r.isDown?gX:null})]}const Zf="-10000px";class RO{constructor(t,e,n){this.facet=e,this.createTooltipView=n,this.input=t.state.facet(e),this.tooltips=this.input.filter(o=>o),this.tooltipViews=this.tooltips.map(n)}update(t,e){var n;let o=t.state.facet(this.facet),r=o.filter(l=>l);if(o===this.input){for(let l of this.tooltipViews)l.update&&l.update(t);return!1}let s=[],a=e?[]:null;for(let l=0;le[c]=l),e.length=a.length),this.input=o,this.tooltips=r,this.tooltipViews=s,!0}}function bX(i){let{win:t}=i;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const Qf=H.define({combine:i=>{var t,e,n;return{position:G.ios?"absolute":(null===(t=i.find(o=>o.position))||void 0===t?void 0:t.position)||"fixed",parent:(null===(e=i.find(o=>o.parent))||void 0===e?void 0:e.parent)||null,tooltipSpace:(null===(n=i.find(o=>o.tooltipSpace))||void 0===n?void 0:n.tooltipSpace)||bX}}}),FO=new WeakMap,Ty=gt.fromClass(class{constructor(i){this.view=i,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=i.state.facet(Qf);this.position=t.position,this.parent=t.parent,this.classes=i.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new RO(i,Jf,e=>this.createTooltip(e)),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver(e=>{Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),i.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let i of this.manager.tooltipViews)this.intersectionObserver.observe(i.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(i){i.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(i,this.above);t&&this.observeIntersection();let e=t||i.geometryChanged,n=i.state.facet(Qf);if(n.position!=this.position&&!this.madeAbsolute){this.position=n.position;for(let o of this.manager.tooltipViews)o.dom.style.position=this.position;e=!0}if(n.parent!=this.parent){this.parent&&this.container.remove(),this.parent=n.parent,this.createContainer();for(let o of this.manager.tooltipViews)this.container.appendChild(o.dom);e=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);e&&this.maybeMeasure()}createTooltip(i){let t=i.create(this.view);if(t.dom.classList.add("cm-tooltip"),i.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let e=document.createElement("div");e.className="cm-tooltip-arrow",t.dom.appendChild(e)}return t.dom.style.position=this.position,t.dom.style.top=Zf,this.container.appendChild(t.dom),t.mount&&t.mount(this.view),t}destroy(){var i,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let e of this.manager.tooltipViews)e.dom.remove(),null===(i=e.destroy)||void 0===i||i.call(e);this.parent&&this.container.remove(),null===(t=this.intersectionObserver)||void 0===t||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let i=this.view.dom.getBoundingClientRect(),t=1,e=1,n=!1;if("fixed"==this.position&&this.manager.tooltipViews.length){let{offsetParent:o}=this.manager.tooltipViews[0].dom;n=!(!o||o==this.container.ownerDocument.body)}if(n||"absolute"==this.position)if(this.parent){let o=this.parent.getBoundingClientRect();o.width&&o.height&&(t=o.width/this.parent.offsetWidth,e=o.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:e}=this.view.viewState);return{editor:i,parent:this.parent?this.container.getBoundingClientRect():i,pos:this.manager.tooltips.map((o,r)=>{let s=this.manager.tooltipViews[r];return s.getCoords?s.getCoords(o.pos):this.view.coordsAtPos(o.pos)}),size:this.manager.tooltipViews.map(({dom:o})=>o.getBoundingClientRect()),space:this.view.state.facet(Qf).tooltipSpace(this.view),scaleX:t,scaleY:e,makeAbsolute:n}}writeMeasure(i){var t;if(i.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let a of this.manager.tooltipViews)a.dom.style.position="absolute"}let{editor:e,space:n,scaleX:o,scaleY:r}=i,s=[];for(let a=0;a=Math.min(e.bottom,n.bottom)||u.rightMath.min(e.right,n.right)+.1){d.style.top=Zf;continue}let f=l.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,m=f?7:0,p=h.right-h.left,g=null!==(t=FO.get(c))&&void 0!==t?t:h.bottom-h.top,b=c.offset||yX,v=this.view.textDirection==ut.LTR,x=h.width>n.right-n.left?v?n.left:n.right-h.width:v?Math.min(u.left-(f?14:0)+b.x,n.right-p):Math.max(n.left,u.left-p+(f?14:0)-b.x),y=this.above[a];!l.strictSide&&(y?u.top-(h.bottom-h.top)-b.yn.bottom)&&y==n.bottom-u.bottom>u.top-n.top&&(y=this.above[a]=!y);let w=(y?u.top-n.top:n.bottom-u.bottom)-m;if(wx&&K.topM&&(M=y?K.top-g-2-m:K.bottom+m+2);"absolute"==this.position?(d.style.top=(M-i.parent.top)/r+"px",d.style.left=(x-i.parent.left)/o+"px"):(d.style.top=M/r+"px",d.style.left=x/o+"px"),f&&(f.style.left=(u.left+(v?b.x:-b.x)-(x+14-7))/o+"px"),!0!==c.overlap&&s.push({left:x,top:M,right:F,bottom:M+g}),d.classList.toggle("cm-tooltip-above",y),d.classList.toggle("cm-tooltip-below",!y),c.positioned&&c.positioned(i.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let i of this.manager.tooltipViews)i.dom.style.top=Zf}},{eventObservers:{scroll(){this.maybeMeasure()}}}),yX={x:0,y:0},Jf=H.define({enables:[Ty,ve.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}})]}),ad=H.define();class Iy{static create(t){return new Iy(t)}constructor(t){this.view=t,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new RO(t,ad,e=>this.createHostedView(e))}createHostedView(t){let e=t.create(this.view);return e.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(e.dom),this.mounted&&e.mount&&e.mount(this.view),e}mount(t){for(let e of this.manager.tooltipViews)e.mount&&e.mount(t);this.mounted=!0}positioned(t){for(let e of this.manager.tooltipViews)e.positioned&&e.positioned(t)}update(t){this.manager.update(t)}destroy(){var t;for(let e of this.manager.tooltipViews)null===(t=e.destroy)||void 0===t||t.call(e)}}const xX=Jf.compute([ad],i=>{let t=i.facet(ad).filter(e=>e);return 0===t.length?null:{pos:Math.min(...t.map(e=>e.pos)),end:Math.max(...t.filter(e=>null!=e.end).map(e=>e.end)),create:Iy.create,above:t[0].above,arrow:t.some(e=>e.arrow)}});class wX{constructor(t,e,n,o,r){this.view=t,this.source=e,this.field=n,this.setHover=o,this.hoverTime=r,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:t.dom,time:0},this.checkHover=this.checkHover.bind(this),t.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),t.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let t=Date.now()-this.lastMove.time;ta.bottom||e.xa.right+t.defaultCharacterWidth)return;let l=t.bidiSpans(t.state.doc.lineAt(o)).find(d=>d.from<=o&&d.to>=o),c=l&&l.dir==ut.RTL?-1:1;r=e.x{this.pending==a&&(this.pending=null,l&&t.dispatch({effects:this.setHover.of(l)}))},l=>Hn(t.state,l,"hover tooltip"))}else s&&t.dispatch({effects:this.setHover.of(s)})}mousemove(t){var e;this.lastMove={x:t.clientX,y:t.clientY,target:t.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let n=this.active;if(n&&!PO(this.lastMove.target)||this.pending){let{pos:o}=n||this.pending,r=null!==(e=n?.end)&&void 0!==e?e:o;(o==r?this.view.posAtCoords(this.lastMove)!=o:!function CX(i,t,e,n,o,r){let s=i.scrollDOM.getBoundingClientRect();if(s.left>n||s.righto||Math.min(s.bottom,i.documentTop+i.documentPadding.top+i.contentHeight)=t&&l<=e}(this.view,o,r,t.clientX,t.clientY))&&(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(t){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1,this.active&&!PO(t.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}function PO(i){for(let t=i;t;t=t.parentNode)if(1==t.nodeType&&t.classList.contains("cm-tooltip"))return!0;return!1}function kX(i,t={}){let e=Ee.define(),n=St.define({create:()=>null,update(o,r){if(o&&(t.hideOnChange&&(r.docChanged||r.selection)||t.hideOn&&t.hideOn(r,o)))return null;if(o&&r.docChanged){let s=r.changes.mapPos(o.pos,-1,Di.TrackDel);if(null==s)return null;let a=Object.assign(Object.create(null),o);a.pos=s,null!=o.end&&(a.end=r.changes.mapPos(o.end)),o=a}for(let s of r.effects)s.is(e)&&(o=s.value),s.is(DX)&&(o=null);return o},provide:o=>ad.from(o)});return[n,gt.define(o=>new wX(o,i,n,e,t.hoverTime||300)),xX]}function NO(i,t){let e=i.plugin(Ty);if(!e)return null;let n=e.manager.tooltips.indexOf(t);return n<0?null:e.manager.tooltipViews[n]}const DX=Ee.define(),Oy=H.define({combine(i){let t,e;for(let n of i)t=t||n.topContainer,e=e||n.bottomContainer;return{topContainer:t,bottomContainer:e}}});function ld(i,t){let e=i.plugin(LO),n=e?e.specs.indexOf(t):-1;return n>-1?e.panels[n]:null}const LO=gt.fromClass(class{constructor(i){this.input=i.state.facet(cd),this.specs=this.input.filter(e=>e),this.panels=this.specs.map(e=>e(i));let t=i.state.facet(Oy);this.top=new em(i,!0,t.topContainer),this.bottom=new em(i,!1,t.bottomContainer),this.top.sync(this.panels.filter(e=>e.top)),this.bottom.sync(this.panels.filter(e=>!e.top));for(let e of this.panels)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}update(i){let t=i.state.facet(Oy);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new em(i.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new em(i.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let e=i.state.facet(cd);if(e!=this.input){let n=e.filter(l=>l),o=[],r=[],s=[],a=[];for(let l of n){let d,c=this.specs.indexOf(l);c<0?(d=l(i.view),a.push(d)):(d=this.panels[c],d.update&&d.update(i)),o.push(d),(d.top?r:s).push(d)}this.specs=n,this.panels=o,this.top.sync(r),this.bottom.sync(s);for(let l of a)l.dom.classList.add("cm-panel"),l.mount&&l.mount()}else for(let n of this.panels)n.update&&n.update(i)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:i=>ve.scrollMargins.of(t=>{let e=t.plugin(i);return e&&{top:e.top.scrollMargin(),bottom:e.bottom.scrollMargin()}})});class em{constructor(t,e,n){this.view=t,this.top=e,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(t){for(let e of this.panels)e.destroy&&t.indexOf(e)<0&&e.destroy();this.panels=t,this.syncDOM()}syncDOM(){if(0==this.panels.length)return void(this.dom&&(this.dom.remove(),this.dom=void 0));if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let e=this.container||this.view.dom;e.insertBefore(this.dom,this.top?e.firstChild:null)}let t=this.dom.firstChild;for(let e of this.panels)if(e.dom.parentNode==this.dom){for(;t!=e.dom;)t=BO(t);t=t.nextSibling}else this.dom.insertBefore(e.dom,t);for(;t;)t=BO(t)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let t of this.classes.split(" "))t&&this.container.classList.remove(t);for(let t of(this.classes=this.view.themeClasses).split(" "))t&&this.container.classList.add(t)}}}function BO(i){let t=i.nextSibling;return i.remove(),t}const cd=H.define({enables:LO});class lo extends gs{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}lo.prototype.elementClass="",lo.prototype.toDOM=void 0,lo.prototype.mapMode=Di.TrackBefore,lo.prototype.startSide=lo.prototype.endSide=-1,lo.prototype.point=!0;const tm=H.define(),SX={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>rt.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},dd=H.define();function VO(i){return[HO(),dd.of(Object.assign(Object.assign({},SX),i))]}const Ry=H.define({combine:i=>i.some(t=>t)});function HO(i){let t=[MX];return i&&!1===i.fixed&&t.push(Ry.of(!0)),t}const MX=gt.fromClass(class{constructor(i){this.view=i,this.prevViewport=i.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=i.state.facet(dd).map(t=>new jO(i,t));for(let t of this.gutters)this.dom.appendChild(t.dom);this.fixed=!i.state.facet(Ry),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),i.scrollDOM.insertBefore(this.dom,i.contentDOM)}update(i){if(this.updateGutters(i)){let t=this.prevViewport,e=i.view.viewport,n=Math.min(t.to,e.to)-Math.max(t.from,e.from);this.syncGutters(n<.8*(e.to-e.from))}i.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(Ry)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=i.view.viewport}syncGutters(i){let t=this.dom.nextSibling;i&&this.dom.remove();let e=rt.iter(this.view.state.facet(tm),this.view.viewport.from),n=[],o=this.gutters.map(r=>new EX(r,this.view.viewport,-this.view.documentPadding.top));for(let r of this.view.viewportLineBlocks)if(n.length&&(n=[]),Array.isArray(r.type)){let s=!0;for(let a of r.type)if(a.type==Si.Text&&s){Fy(e,n,a.from);for(let l of o)l.line(this.view,a,n);s=!1}else if(a.widget)for(let l of o)l.widget(this.view,a)}else if(r.type==Si.Text){Fy(e,n,r.from);for(let s of o)s.line(this.view,r,n)}else if(r.widget)for(let s of o)s.widget(this.view,r);for(let r of o)r.finish();i&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(i){let t=i.startState.facet(dd),e=i.state.facet(dd),n=i.docChanged||i.heightChanged||i.viewportChanged||!rt.eq(i.startState.facet(tm),i.state.facet(tm),i.view.viewport.from,i.view.viewport.to);if(t==e)for(let o of this.gutters)o.update(i)&&(n=!0);else{n=!0;let o=[];for(let r of e){let s=t.indexOf(r);s<0?o.push(new jO(this.view,r)):(this.gutters[s].update(i),o.push(this.gutters[s]))}for(let r of this.gutters)r.dom.remove(),o.indexOf(r)<0&&r.destroy();for(let r of o)this.dom.appendChild(r.dom);this.gutters=o}return n}destroy(){for(let i of this.gutters)i.destroy();this.dom.remove()}},{provide:i=>ve.scrollMargins.of(t=>{let e=t.plugin(i);return e&&0!=e.gutters.length&&e.fixed?t.textDirection==ut.LTR?{left:e.dom.offsetWidth*t.scaleX}:{right:e.dom.offsetWidth*t.scaleX}:null})});function zO(i){return Array.isArray(i)?i:[i]}function Fy(i,t,e){for(;i.value&&i.from<=e;)i.from==e&&t.push(i.value),i.next()}class EX{constructor(t,e,n){this.gutter=t,this.height=n,this.i=0,this.cursor=rt.iter(t.markers,e.from)}addElement(t,e,n){let{gutter:o}=this,r=(e.top-this.height)/t.scaleY,s=e.height/t.scaleY;if(this.i==o.elements.length){let a=new $O(t,s,r,n);o.elements.push(a),o.dom.appendChild(a.dom)}else o.elements[this.i].update(t,s,r,n);this.height=e.bottom,this.i++}line(t,e,n){let o=[];Fy(this.cursor,o,e.from),n.length&&(o=o.concat(n));let r=this.gutter.config.lineMarker(t,e,o);r&&o.unshift(r),0==o.length&&!this.gutter.config.renderEmptyElements||this.addElement(t,e,o)}widget(t,e){let n=this.gutter.config.widgetMarker(t,e.widget,e);n&&this.addElement(t,e,[n])}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let e=t.elements.pop();t.dom.removeChild(e.dom),e.destroy()}}}class jO{constructor(t,e){this.view=t,this.config=e,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in e.domEventHandlers)this.dom.addEventListener(n,o=>{let s,r=o.target;if(r!=this.dom&&this.dom.contains(r)){for(;r.parentNode!=this.dom;)r=r.parentNode;let l=r.getBoundingClientRect();s=(l.top+l.bottom)/2}else s=o.clientY;let a=t.lineBlockAtHeight(s-t.documentTop);e.domEventHandlers[n](t,a,o)&&o.preventDefault()});this.markers=zO(e.markers(t)),e.initialSpacer&&(this.spacer=new $O(t,0,0,[e.initialSpacer(t)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(t){let e=this.markers;if(this.markers=zO(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){let o=this.config.updateSpacer(this.spacer.markers[0],t);o!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[o])}let n=t.view.viewport;return!rt.eq(this.markers,e,n.from,n.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(t)}destroy(){for(let t of this.elements)t.destroy()}}class $O{constructor(t,e,n,o){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(t,e,n,o)}update(t,e,n,o){this.height!=e&&(this.height=e,this.dom.style.height=e+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),function AX(i,t){if(i.length!=t.length)return!1;for(let e=0;eVn(i,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(t,e){let n=Object.assign({},t);for(let o in e){let r=n[o],s=e[o];n[o]=r?(a,l,c)=>r(a,l,c)||s(a,l,c):s}return n}})});class Py extends lo{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function Ny(i,t){return i.state.facet(Za).formatNumber(t,i.state)}const IX=dd.compute([Za],i=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:t=>t.state.facet(TX),lineMarker:(t,e,n)=>n.some(o=>o.toDOM)?null:new Py(Ny(t,t.state.doc.lineAt(e.from).number)),widgetMarker:()=>null,lineMarkerChange:t=>t.startState.facet(Za)!=t.state.facet(Za),initialSpacer:t=>new Py(Ny(t,UO(t.state.doc.lines))),updateSpacer(t,e){let n=Ny(e.view,UO(e.view.state.doc.lines));return n==t.number?t:new Py(n)},domEventHandlers:i.facet(Za).domEventHandlers}));function OX(i={}){return[Za.of(i),HO(),IX]}function UO(i){let t=9;for(;t{let t=[],e=-1;for(let n of i.selection.ranges){let o=i.doc.lineAt(n.head).from;o>e&&(e=o,t.push(RX.range(o)))}return rt.of(t)}),qO=1024;let VX=0;class bn{constructor(t,e){this.from=t,this.to=e}}class we{constructor(t={}){this.id=VX++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof t&&(t=Mi.match(t)),e=>{let n=t(e);return void 0===n?null:[this,n]}}}we.closedBy=new we({deserialize:i=>i.split(" ")}),we.openedBy=new we({deserialize:i=>i.split(" ")}),we.group=new we({deserialize:i=>i.split(" ")}),we.contextHash=new we({perNode:!0}),we.lookAhead=new we({perNode:!0}),we.mounted=new we({perNode:!0});class ud{constructor(t,e,n){this.tree=t,this.overlay=e,this.parser=n}static get(t){return t&&t.props&&t.props[we.mounted.id]}}const HX=Object.create(null);class Mi{constructor(t,e,n,o=0){this.name=t,this.props=e,this.id=n,this.flags=o}static define(t){let e=t.props&&t.props.length?Object.create(null):HX,o=new Mi(t.name||"",e,t.id,(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(null==t.name?8:0));if(t.props)for(let r of t.props)if(Array.isArray(r)||(r=r(o)),r){if(r[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");e[r[0].id]=r[1]}return o}prop(t){return this.props[t.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(t){if("string"==typeof t){if(this.name==t)return!0;let e=this.prop(we.group);return!!e&&e.indexOf(t)>-1}return this.id==t}static match(t){let e=Object.create(null);for(let n in t)for(let o of n.split(" "))e[o]=t[n];return n=>{for(let o=n.prop(we.group),r=-1;r<(o?o.length:0);r++){let s=e[r<0?n.name:o[r]];if(s)return s}}}}Mi.none=new Mi("",Object.create(null),0,8);class im{constructor(t){this.types=t;for(let e=0;e=t){let a=new Ei(s.tree,s.overlay[0].from+r.from,0,null);(o||(o=[n])).push(hd(a,t,e,!1))}}return o?QO(o):n}(this,t,e)}iterate(t){let{enter:e,leave:n,from:o=0,to:r=this.length}=t,s=t.mode||0,a=(s&ht.IncludeAnonymous)>0;for(let l=this.cursor(s|ht.IncludeAnonymous);;){let c=!1;if(l.from<=r&&l.to>=o&&(!a&&l.type.isAnonymous||!1!==e(l))){if(l.firstChild())continue;c=!0}for(;c&&n&&(a||!l.type.isAnonymous)&&n(l),!l.nextSibling();){if(!l.parent())return;c=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let e in this.props)t.push([+e,this.props[e]]);return t}balance(t={}){return this.children.length<=8?this:Hy(Mi.none,this.children,this.positions,0,this.children.length,0,this.length,(e,n,o)=>new ft(this.type,e,n,o,this.propValues),t.makeTree||((e,n,o)=>new ft(Mi.none,e,n,o)))}static build(t){return function UX(i){var t;let{buffer:e,nodeSet:n,maxBufferLength:o=qO,reused:r=[],minRepeatType:s=n.types.length}=i,a=Array.isArray(e)?new Ly(e,e.length):e,l=n.types,c=0,d=0;function u(y,w,M,F,K){let{id:Q,start:ie,end:Ve,size:tt}=a,st=d;for(;tt<0;){if(a.next(),-1==tt)return M.push(r[Q]),void F.push(ie-y);if(-3==tt)return void(c=Q);if(-4==tt)return void(d=Q);throw new RangeError(`Unrecognized record size: ${tt}`)}let Mt,N,Qt=l[Q],z=ie-y;if(Ve-ie<=o&&(N=function p(y,w){let M=a.fork(),F=0,K=0,Q=0,ie=M.end-o,Ve={size:0,start:0,skip:0};e:for(let tt=M.pos-y;M.pos>tt;){let st=M.size;if(M.id==w&&st>=0){Ve.size=F,Ve.start=K,Ve.skip=Q,Q+=4,F+=4,M.next();continue}let Qt=M.pos-st;if(st<0||Qt=s?4:0,N=M.start;for(M.next();M.pos>Qt;){if(M.size<0){if(-3!=M.size)break e;Mt+=4}else M.id>=s&&(Mt+=4);M.next()}K=N,F+=st,Q+=Mt}return(w<0||F==y)&&(Ve.size=F,Ve.start=K,Ve.skip=Q),Ve.size>4?Ve:void 0}(a.pos-w,K))){let j=new Uint16Array(N.size-N.skip),X=a.pos-N.size,Ce=j.length;for(;a.pos>X;)Ce=g(N.start,j,Ce);Mt=new bs(j,Ve-N.start,n),z=N.start-y}else{let j=a.pos-tt;a.next();let X=[],Ce=[],zt=Q>=s?Q:-1,Et=0,on=Ve;for(;a.pos>j;)zt>=0&&a.id==zt&&a.size>=0?(a.end<=on-o&&(f(X,Ce,ie,Et,a.end,on,zt,st),Et=X.length,on=a.end),a.next()):u(ie,j,X,Ce,zt);if(zt>=0&&Et>0&&Et-1&&Et>0){let Qe=function h(y){return(w,M,F)=>{let ie,Ve,K=0,Q=w.length-1;if(Q>=0&&(ie=w[Q])instanceof ft){if(!Q&&ie.type==y&&ie.length==F)return ie;(Ve=ie.prop(we.lookAhead))&&(K=M[Q]+ie.length+Ve)}return m(y,w,M,F,K)}}(Qt);Mt=Hy(Qt,X,Ce,0,X.length,0,Ve-ie,Qe,Qe)}else Mt=m(Qt,X,Ce,Ve-ie,st-Ve)}M.push(Mt),F.push(z)}function f(y,w,M,F,K,Q,ie,Ve){let tt=[],st=[];for(;y.length>F;)tt.push(y.pop()),st.push(w.pop()+M-K);y.push(m(n.types[ie],tt,st,Q-K,Ve-Q)),w.push(K-M)}function m(y,w,M,F,K=0,Q){if(c){let ie=[we.contextHash,c];Q=Q?[ie].concat(Q):[ie]}if(K>25){let ie=[we.lookAhead,K];Q=Q?[ie].concat(Q):[ie]}return new ft(y,w,M,F,Q)}function g(y,w,M){let{id:F,start:K,end:Q,size:ie}=a;if(a.next(),ie>=0&&F4){let tt=a.pos-(ie-4);for(;a.pos>tt;)M=g(y,w,M)}w[--M]=Ve,w[--M]=Q-y,w[--M]=K-y,w[--M]=F}else-3==ie?c=F:-4==ie&&(d=F);return M}let b=[],v=[];for(;a.pos>0;)u(i.start||0,i.bufferStart||0,b,v,-1);let x=null!==(t=i.length)&&void 0!==t?t:b.length?v[0]+b[0].length:0;return new ft(l[i.topID],b.reverse(),v.reverse(),x)}(t)}}ft.empty=new ft(Mi.none,[],[],0);class Ly{constructor(t,e){this.buffer=t,this.index=e}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new Ly(this.buffer,this.index)}}class bs{constructor(t,e,n){this.buffer=t,this.length=e,this.set=n}get type(){return Mi.none}toString(){let t=[];for(let e=0;e0));l=s[l+3]);return a}slice(t,e,n){let o=this.buffer,r=new Uint16Array(e-t),s=0;for(let a=t,l=0;a=t&&et;case 1:return e<=t&&n>t;case 2:return n>t;case 4:return!0}}function hd(i,t,e,n){for(var o;i.from==i.to||(e<1?i.from>=t:i.from>t)||(e>-1?i.to<=t:i.to0?a.length:-1;t!=c;t+=e){let d=a[t],u=l[t]+s.from;if(XO(o,n,u,u+d.length))if(d instanceof bs){if(r&ht.ExcludeBuffers)continue;let h=d.findChild(0,d.buffer.length,e,n-u,o);if(h>-1)return new co(new zX(s,d,t,u),null,h)}else if(r&ht.IncludeAnonymous||!d.type.isAnonymous||Vy(d)){let h;if(!(r&ht.IgnoreMounts)&&(h=ud.get(d))&&!h.overlay)return new Ei(h.tree,u,t,s);let f=new Ei(d,u,t,s);return r&ht.IncludeAnonymous||!f.type.isAnonymous?f:f.nextChild(e<0?d.children.length-1:0,e,n,o)}}if(r&ht.IncludeAnonymous||!s.type.isAnonymous||(t=s.index>=0?s.index+e:e<0?-1:s._parent._tree.children.length,s=s._parent,!s))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}enter(t,e,n=0){let o;if(!(n&ht.IgnoreOverlays)&&(o=ud.get(this._tree))&&o.overlay){let r=t-this.from;for(let{from:s,to:a}of o.overlay)if((e>0?s<=r:s=r:a>r))return new Ei(o.tree,o.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,e,n)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function ZO(i,t,e,n){let o=i.cursor(),r=[];if(!o.firstChild())return r;if(null!=e)for(;!o.type.is(e);)if(!o.nextSibling())return r;for(;;){if(null!=n&&o.type.is(n))return r;if(o.type.is(t)&&r.push(o.node),!o.nextSibling())return null==n?r:[]}}function By(i,t,e=t.length-1){for(let n=i.parent;e>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(t[e]&&t[e]!=n.name)return!1;e--}}return!0}class zX{constructor(t,e,n,o){this.parent=t,this.buffer=e,this.index=n,this.start=o}}class co extends KO{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,e,n){super(),this.context=t,this._parent=e,this.index=n,this.type=t.buffer.set.types[t.buffer.buffer[n]]}child(t,e,n){let{buffer:o}=this.context,r=o.findChild(this.index+4,o.buffer[this.index+3],t,e-this.context.start,n);return r<0?null:new co(this.context,this,r)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}enter(t,e,n=0){if(n&ht.ExcludeBuffers)return null;let{buffer:o}=this.context,r=o.findChild(this.index+4,o.buffer[this.index+3],e>0?1:-1,t-this.context.start,e);return r<0?null:new co(this.context,this,r)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,e=t.buffer[this.index+3];return e<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new co(this.context,this._parent,e):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,e=this._parent?this._parent.index+4:0;return this.index==e?this.externalSibling(-1):new co(this.context,this._parent,t.findChild(e,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],e=[],{buffer:n}=this.context,o=this.index+4,r=n.buffer[this.index+3];return r>o&&(t.push(n.slice(o,r,n.buffer[this.index+1])),e.push(0)),new ft(this.type,t,e,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function QO(i){if(!i.length)return null;if(1==i.length)return i[0];let t=0,e=i[0];for(let r=1;re.from||s.to0){if(this.index-1)for(let r=e+t,s=t<0?-1:n._tree.children.length;r!=s;r+=t){let a=n._tree.children[r];if(this.mode&ht.IncludeAnonymous||a instanceof bs||!a.type.isAnonymous||Vy(a))return!1}return!0}move(t,e){if(e&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,e=0){for(;(this.from==this.to||(e<1?this.from>=t:this.from>t)||(e>-1?this.to<=t:this.to=0;){for(let s=t;s;s=s._parent)if(s.index==o){if(o==this.index)return s;e=s,n=r+1;break e}o=this.stack[--r]}for(let o=n;o=0;r--){if(r<0)return By(this.node,t,o);let s=n[e.buffer[this.stack[r]]];if(!s.isAnonymous){if(t[o]&&t[o]!=s.name)return!1;o--}}return!0}}function Vy(i){return i.children.some(t=>t instanceof bs||!t.type.isAnonymous||Vy(t))}const JO=new WeakMap;function rm(i,t){if(!i.isAnonymous||t instanceof bs||t.type!=i)return 1;let e=JO.get(t);if(null==e){e=1;for(let n of t.children){if(n.type!=i||!(n instanceof ft)){e=1;break}e+=rm(i,n)}JO.set(t,e)}return e}function Hy(i,t,e,n,o,r,s,a,l){let c=0;for(let m=n;m=d)break;M+=F}if(x==y+1){if(M>d){let F=m[y];f(F.children,F.positions,0,F.children.length,p[y]+v);continue}u.push(m[y])}else u.push(Hy(i,m,p,y,x,w,p[x-1]+m[x-1].length-w,null,l));h.push(w+v-r)}}(t,e,n,o,0),(a||l)(u,h,s)}class $o{constructor(t,e,n,o,r=!1,s=!1){this.from=t,this.to=e,this.tree=n,this.offset=o,this.open=(r?1:0)|(s?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(t,e=[],n=!1){let o=[new $o(0,t.length,t,0,!1,n)];for(let r of e)r.to>t.length&&o.push(r);return o}static applyChanges(t,e,n=128){if(!e.length)return t;let o=[],r=1,s=t.length?t[0]:null;for(let a=0,l=0,c=0;;a++){let d=a=n)for(;s&&s.from=h.from||u<=h.to||c){let f=Math.max(h.from,l)-c,m=Math.min(h.to,u)-c;h=f>=m?null:new $o(f,m,h.tree,h.offset+c,a>0,!!d)}if(h&&o.push(h),s.to>u)break;s=rnew bn(o.from,o.to)):[new bn(0,0)]:[new bn(0,t.length)],this.createParse(t,e||[],n)}parse(t,e,n){let o=this.startParse(t,e,n);for(;;){let r=o.advance();if(r)return r}}}class WX{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,e){return this.string.slice(t,e)}}new we({perNode:!0});let QX=0;class uo{constructor(t,e,n){this.set=t,this.base=e,this.modified=n,this.id=QX++}static define(t){if(t?.base)throw new Error("Can not derive from a modified tag");let e=new uo([],null,[]);if(e.set.push(e),t)for(let n of t.set)e.set.push(n);return e}static defineModifier(){let t=new sm;return e=>e.modified.indexOf(t)>-1?e:sm.get(e.base||e,e.modified.concat(t).sort((n,o)=>n.id-o.id))}}let JX=0;class sm{constructor(){this.instances=[],this.id=JX++}static get(t,e){if(!e.length)return t;let n=e[0].instances.find(a=>a.base==t&&function eK(i,t){return i.length==t.length&&i.every((e,n)=>e==t[n])}(e,a.modified));if(n)return n;let o=[],r=new uo(o,t,e);for(let a of e)a.instances.push(r);let s=function tK(i){let t=[[]];for(let e=0;en.length-e.length)}(e);for(let a of t.set)if(!a.modified.length)for(let l of s)o.push(sm.get(a,l));return r}}function sR(i){let t=Object.create(null);for(let e in i){let n=i[e];Array.isArray(n)||(n=[n]);for(let o of e.split(" "))if(o){let r=[],s=2,a=o;for(let u=0;;){if("..."==a&&u>0&&u+3==o.length){s=1;break}let h=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!h)throw new RangeError("Invalid path: "+o);if(r.push("*"==h[0]?"":'"'==h[0][0]?JSON.parse(h[0]):h[0]),u+=h[0].length,u==o.length)break;let f=o[u++];if(u==o.length&&"!"==f){s=0;break}if("/"!=f)throw new RangeError("Invalid path: "+o);a=o.slice(u)}let l=r.length-1,c=r[l];if(!c)throw new RangeError("Invalid path: "+o);let d=new am(n,s,l>0?r.slice(0,l):null);t[c]=d.sort(t[c])}}return aR.add(t)}const aR=new we;class am{constructor(t,e,n,o){this.tags=t,this.mode=e,this.context=n,this.next=o}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(t){return!t||t.depth{let s=o;for(let a of r)for(let l of a.set){let c=e[l.id];if(c){s=s?s+" "+c:c;break}}return s},scope:n}}function nK(i,t,e,n=0,o=i.length){let r=new oK(n,Array.isArray(t)?t:[t],e);r.highlightRange(i.cursor(),n,o,"",r.highlighters),r.flush(o)}am.empty=new am([],2,null);class oK{constructor(t,e,n){this.at=t,this.highlighters=e,this.span=n,this.class=""}startSpan(t,e){e!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=e)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,e,n,o,r){let{type:s,from:a,to:l}=t;if(a>=n||l<=e)return;s.isTop&&(r=this.highlighters.filter(f=>!f.scope||f.scope(s)));let c=o,d=function rK(i){let t=i.type.prop(aR);for(;t&&t.context&&!i.matchContext(t.context);)t=t.next;return t||null}(t)||am.empty,u=function iK(i,t){let e=null;for(let n of i){let o=n.style(t);o&&(e=e?e+" "+o:o)}return e}(r,d.tags);if(u&&(c&&(c+=" "),c+=u,1==d.mode&&(o+=(o?" ":"")+u)),this.startSpan(Math.max(e,a),c),d.opaque)return;let h=t.tree&&t.tree.prop(we.mounted);if(h&&h.overlay){let f=t.node.enter(h.overlay[0].from+a,1),m=this.highlighters.filter(g=>!g.scope||g.scope(h.tree.type)),p=t.firstChild();for(let g=0,b=a;;g++){let v=g=x)&&t.nextSibling()););if(!v||x>n)break;b=v.to+a,b>e&&(this.highlightRange(f.cursor(),Math.max(e,v.from+a),Math.min(n,b),"",m),this.startSpan(Math.min(n,b),c))}p&&t.parent()}else if(t.firstChild()){h&&(o="");do{if(!(t.to<=e)){if(t.from>=n)break;this.highlightRange(t,e,n,o,r),this.startSpan(Math.min(n,t.to),c)}}while(t.nextSibling());t.parent()}}}const L=uo.define,lm=L(),Dr=L(),cR=L(Dr),dR=L(Dr),Sr=L(),cm=L(Sr),jy=L(Sr),ho=L(),vs=L(ho),fo=L(),mo=L(),$y=L(),fd=L($y),dm=L(),P={comment:lm,lineComment:L(lm),blockComment:L(lm),docComment:L(lm),name:Dr,variableName:L(Dr),typeName:cR,tagName:L(cR),propertyName:dR,attributeName:L(dR),className:L(Dr),labelName:L(Dr),namespace:L(Dr),macroName:L(Dr),literal:Sr,string:cm,docString:L(cm),character:L(cm),attributeValue:L(cm),number:jy,integer:L(jy),float:L(jy),bool:L(Sr),regexp:L(Sr),escape:L(Sr),color:L(Sr),url:L(Sr),keyword:fo,self:L(fo),null:L(fo),atom:L(fo),unit:L(fo),modifier:L(fo),operatorKeyword:L(fo),controlKeyword:L(fo),definitionKeyword:L(fo),moduleKeyword:L(fo),operator:mo,derefOperator:L(mo),arithmeticOperator:L(mo),logicOperator:L(mo),bitwiseOperator:L(mo),compareOperator:L(mo),updateOperator:L(mo),definitionOperator:L(mo),typeOperator:L(mo),controlOperator:L(mo),punctuation:$y,separator:L($y),bracket:fd,angleBracket:L(fd),squareBracket:L(fd),paren:L(fd),brace:L(fd),content:ho,heading:vs,heading1:L(vs),heading2:L(vs),heading3:L(vs),heading4:L(vs),heading5:L(vs),heading6:L(vs),contentSeparator:L(ho),list:L(ho),quote:L(ho),emphasis:L(ho),strong:L(ho),link:L(ho),monospace:L(ho),strikethrough:L(ho),inserted:L(),deleted:L(),changed:L(),invalid:L(),meta:dm,documentMeta:L(dm),annotation:L(dm),processingInstruction:L(dm),definition:uo.defineModifier(),constant:uo.defineModifier(),function:uo.defineModifier(),standard:uo.defineModifier(),local:uo.defineModifier(),special:uo.defineModifier()};var Uy;lR([{tag:P.link,class:"tok-link"},{tag:P.heading,class:"tok-heading"},{tag:P.emphasis,class:"tok-emphasis"},{tag:P.strong,class:"tok-strong"},{tag:P.keyword,class:"tok-keyword"},{tag:P.atom,class:"tok-atom"},{tag:P.bool,class:"tok-bool"},{tag:P.url,class:"tok-url"},{tag:P.labelName,class:"tok-labelName"},{tag:P.inserted,class:"tok-inserted"},{tag:P.deleted,class:"tok-deleted"},{tag:P.literal,class:"tok-literal"},{tag:P.string,class:"tok-string"},{tag:P.number,class:"tok-number"},{tag:[P.regexp,P.escape,P.special(P.string)],class:"tok-string2"},{tag:P.variableName,class:"tok-variableName"},{tag:P.local(P.variableName),class:"tok-variableName tok-local"},{tag:P.definition(P.variableName),class:"tok-variableName tok-definition"},{tag:P.special(P.variableName),class:"tok-variableName2"},{tag:P.definition(P.propertyName),class:"tok-propertyName tok-definition"},{tag:P.typeName,class:"tok-typeName"},{tag:P.namespace,class:"tok-namespace"},{tag:P.className,class:"tok-className"},{tag:P.macroName,class:"tok-macroName"},{tag:P.propertyName,class:"tok-propertyName"},{tag:P.operator,class:"tok-operator"},{tag:P.comment,class:"tok-comment"},{tag:P.meta,class:"tok-meta"},{tag:P.invalid,class:"tok-invalid"},{tag:P.punctuation,class:"tok-punctuation"}]);const ys=new we;const sK=new we;let vn=(()=>{class i{constructor(e,n,o=[],r=""){this.data=e,this.name=r,qi.prototype.hasOwnProperty("tree")||Object.defineProperty(qi.prototype,"tree",{get(){return Ht(this)}}),this.parser=n,this.extension=[Mr.of(this),qi.languageData.of((s,a,l)=>{let c=hR(s,a,l),d=c.type.prop(ys);if(!d)return[];let u=s.facet(d),h=c.type.prop(sK);if(h){let f=c.resolve(a-c.from,l);for(let m of h)if(m.test(f,s)){let p=s.facet(m.facet);return"replace"==m.type?p:p.concat(u)}}return u})].concat(o)}isActiveAt(e,n,o=-1){return hR(e,n,o).type.prop(ys)==this.data}findRegions(e){let n=e.facet(Mr);if(n?.data==this.data)return[{from:0,to:e.doc.length}];if(!n||!n.allowsNesting)return[];let o=[],r=(s,a)=>{if(s.prop(ys)==this.data)return void o.push({from:a,to:a+s.length});let l=s.prop(we.mounted);if(l){if(l.tree.prop(ys)==this.data){if(l.overlay)for(let c of l.overlay)o.push({from:c.from+a,to:c.to+a});else o.push({from:a,to:a+s.length});return}if(l.overlay){let c=o.length;if(r(l.tree,l.overlay[0].from+a),o.length>c)return}}for(let c=0;ct.concat(i):void 0})}(t.languageData);return new um(e,t.parser.configure({props:[ys.add(n=>n.isTop?e:void 0)]}),t.name)}configure(t,e){return new um(this.data,this.parser.configure(t),e||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Ht(i){let t=i.field(vn.state,!1);return t?t.tree:ft.empty}class lK{constructor(t){this.doc=t,this.cursorPos=0,this.string="",this.cursor=t.iter()}get length(){return this.doc.length}syncTo(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}chunk(t){return this.syncTo(t),this.string}get lineChunks(){return!0}read(t,e){let n=this.cursorPos-this.string.length;return t=this.cursorPos?this.doc.sliceString(t,e):this.string.slice(t-n,e-n)}}let md=null;class Qa{constructor(t,e,n=[],o,r,s,a,l){this.parser=t,this.state=e,this.fragments=n,this.tree=o,this.treeLen=r,this.viewport=s,this.skipped=a,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(t,e,n){return new Qa(t,e,[],ft.empty,0,n,[],null)}startParse(){return this.parser.startParse(new lK(this.state.doc),this.fragments)}work(t,e){return null!=e&&e>=this.state.doc.length&&(e=void 0),this.tree!=ft.empty&&this.isDone(e??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var n;if("number"==typeof t){let o=Date.now()+t;t=()=>Date.now()>o}for(this.parse||(this.parse=this.startParse()),null!=e&&(null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&e=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext(()=>{for(;!(e=this.parse.advance()););}),this.treeLen=t,this.tree=e,this.fragments=this.withoutTempSkipped($o.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let e=md;md=this;try{return t()}finally{md=e}}withoutTempSkipped(t){for(let e;e=this.tempSkipped.pop();)t=fR(t,e.from,e.to);return t}changes(t,e){let{fragments:n,tree:o,treeLen:r,viewport:s,skipped:a}=this;if(this.takeTree(),!t.empty){let l=[];if(t.iterChangedRanges((c,d,u,h)=>l.push({fromA:c,toA:d,fromB:u,toB:h})),n=$o.applyChanges(n,l),o=ft.empty,r=0,s={from:t.mapPos(s.from,-1),to:t.mapPos(s.to,1)},this.skipped.length){a=[];for(let c of this.skipped){let d=t.mapPos(c.from,1),u=t.mapPos(c.to,-1);dt.from&&(this.fragments=fR(this.fragments,o,r),this.skipped.splice(n--,1))}return!(this.skipped.length>=e||(this.reset(),0))}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,e){this.skipped.push({from:t,to:e})}static getSkippingParser(t){return new class extends eR{createParse(e,n,o){let r=o[0].from,s=o[o.length-1].to;return{parsedPos:r,advance(){let l=md;if(l){for(let c of o)l.tempSkipped.push(c);t&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,t]):t)}return this.parsedPos=s,new ft(Mi.none,[],[],s-r)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let e=this.fragments;return this.treeLen>=t&&e.length&&0==e[0].from&&e[0].to>=t}static get(){return md}}function fR(i,t,e){return $o.applyChanges(i,[{fromA:t,toA:e,fromB:t,toB:e}])}class Ja{constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let e=this.context.changes(t.changes,t.state),n=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),e.viewport.to);return e.work(20,n)||e.takeTree(),new Ja(e)}static init(t){let e=Math.min(3e3,t.doc.length),n=Qa.create(t.facet(Mr).parser,t,{from:0,to:e});return n.work(20,e)||n.takeTree(),new Ja(n)}}vn.state=St.define({create:Ja.init,update(i,t){for(let e of t.effects)if(e.is(vn.setState))return e.value;return t.startState.facet(Mr)!=t.state.facet(Mr)?Ja.init(t.state):i.apply(t)}});let mR=i=>{let t=setTimeout(()=>i(),500);return()=>clearTimeout(t)};typeof requestIdleCallback<"u"&&(mR=i=>{let t=-1,e=setTimeout(()=>{t=requestIdleCallback(i,{timeout:400})},100);return()=>t<0?clearTimeout(e):cancelIdleCallback(t)});const Wy=typeof navigator<"u"&&null!==(Uy=navigator.scheduling)&&void 0!==Uy&&Uy.isInputPending?()=>navigator.scheduling.isInputPending():null,pR=gt.fromClass(class{constructor(t){this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(t){let e=this.view.state.field(vn.state).context;(e.updateViewport(t.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),(t.docChanged||t.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}scheduleWork(){if(this.working)return;let{state:t}=this.view,e=t.field(vn.state);(e.tree!=e.context.tree||!e.context.isDone(t.doc.length))&&(this.working=mR(this.work))}work(t){this.working=null;let e=Date.now();if(this.chunkEndo+1e3,l=r.context.work(()=>Wy&&Wy()||Date.now()>s,o+(a?0:1e5));this.chunkBudget-=Date.now()-e,(l||this.chunkBudget<=0)&&(r.context.takeTree(),this.view.dispatch({effects:vn.setState.of(new Ja(r.context))})),this.chunkBudget>0&&!(l&&!a)&&this.scheduleWork(),this.checkAsyncSchedule(r.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(()=>this.scheduleWork()).catch(e=>Hn(this.view.state,e)).then(()=>this.workScheduled--),t.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Mr=H.define({combine:i=>i.length?i[0]:null,enables:i=>[vn.state,pR,ve.contentAttributes.compute([i],t=>{let e=t.facet(i);return e&&e.name?{"data-language":e.name}:{}})]});class cK{constructor(t,e=[]){this.language=t,this.support=e,this.extension=[t,e]}}const _R=H.define(),Gy=H.define({combine:i=>{if(!i.length)return" ";let t=i[0];if(!t||/\S/.test(t)||Array.from(t).some(e=>e!=t[0]))throw new Error("Invalid indent unit: "+JSON.stringify(i[0]));return t}});function xs(i){let t=i.facet(Gy);return 9==t.charCodeAt(0)?i.tabSize*t.length:t.length}function el(i,t){let e="",n=i.tabSize,o=i.facet(Gy)[0];if("\t"==o){for(;t>=n;)e+="\t",t-=n;o=" "}for(let r=0;r=t?function dK(i,t,e){let n=t.resolveStack(e),o=n.node.enterUnfinishedNodesBefore(e);if(o!=n.node){let r=[];for(let s=o;s!=n.node;s=s.parent)r.push(s);for(let s=r.length-1;s>=0;s--)n={node:r[s],next:n}}return vR(n,i,e)}(i,e,t):null}class pd{constructor(t,e={}){this.state=t,this.options=e,this.unit=xs(t)}lineAt(t,e=1){let n=this.state.doc.lineAt(t),{simulateBreak:o,simulateDoubleBreak:r}=this.options;return null!=o&&o>=n.from&&o<=n.to?r&&o==t?{text:"",from:t}:(e<0?o-1&&(r+=s-this.countColumn(n,n.search(/\S|$/))),r}countColumn(t,e=t.length){return Wa(t,this.state.tabSize,e)}lineIndent(t,e=1){let{text:n,from:o}=this.lineAt(t,e),r=this.options.overrideIndentation;if(r){let s=r(o);if(s>-1)return s}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const bR=new we;function vR(i,t,e){for(let n=i;n;n=n.next){let o=hK(n.node);if(o)return o(qy.create(t,e,n))}return 0}function hK(i){let t=i.type.prop(bR);if(t)return t;let n,e=i.firstChild;if(e&&(n=e.type.prop(we.closedBy))){let o=i.lastChild,r=o&&n.indexOf(o.name)>-1;return s=>function yR(i,t,e,n,o){let r=i.textAfter,s=r.match(/^\s*/)[0].length,a=n&&r.slice(s,s+n.length)==n||o==i.pos+s,l=t?function pK(i){let t=i.node,e=t.childAfter(t.from),n=t.lastChild;if(!e)return null;let o=i.options.simulateBreak,r=i.state.doc.lineAt(e.from),s=null==o||o<=r.from?r.to:Math.min(r.to,o);for(let a=e.to;;){let l=t.childAfter(a);if(!l||l==n)return null;if(!l.type.isSkipped)return l.from{let n=i&&i.test(e.textAfter);return e.baseIndent+(n?0:t*e.unit)}}const bK=H.define(),wR=new we;function xK(i){let t=i.lastChild;return t&&t.to==i.to&&t.type.isError}function gd(i,t,e){for(let n of i.facet(bK)){let o=n(i,t,e);if(o)return o}return function yK(i,t,e){let n=Ht(i);if(n.lengthe)continue;if(r&&a.from=t&&c.to>e&&(r=c)}}return r}(i,t,e)}function CR(i,t){let e=t.mapPos(i.from,1),n=t.mapPos(i.to,-1);return e>=n?void 0:{from:e,to:n}}const _d=Ee.define({map:CR}),tl=Ee.define({map:CR});function Yy(i){let t=[];for(let{head:e}of i.state.selection.ranges)t.some(n=>n.from<=e&&n.to>=e)||t.push(i.lineBlockAt(e));return t}const Er=St.define({create:()=>Y.none,update(i,t){i=i.map(t.changes);for(let e of t.effects)if(e.is(_d)&&!wK(i,e.value.from,e.value.to)){let{preparePlaceholder:n}=t.state.facet(Ky),o=n?Y.replace({widget:new TK(n(t.state,e.value))}):SR;i=i.update({add:[o.range(e.value.from,e.value.to)]})}else e.is(tl)&&(i=i.update({filter:(n,o)=>e.value.from!=n||e.value.to!=o,filterFrom:e.value.from,filterTo:e.value.to}));if(t.selection){let e=!1,{head:n}=t.selection.main;i.between(n,n,(o,r)=>{on&&(e=!0)}),e&&(i=i.update({filterFrom:n,filterTo:n,filter:(o,r)=>r<=n||o>=n}))}return i},provide:i=>ve.decorations.from(i),toJSON(i,t){let e=[];return i.between(0,t.doc.length,(n,o)=>{e.push(n,o)}),e},fromJSON(i){if(!Array.isArray(i)||i.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let e=0;e{(!o||o.from>r)&&(o={from:r,to:s})}),o}function wK(i,t,e){let n=!1;return i.between(t,t,(o,r)=>{o==t&&r==e&&(n=!0)}),n}function Xy(i,t){return i.field(Er,!1)?t:t.concat(Ee.appendConfig.of(kR()))}function fm(i,t,e=!0){let n=i.state.doc.lineAt(t.from).number,o=i.state.doc.lineAt(t.to).number;return ve.announce.of(`${i.state.phrase(e?"Folded lines":"Unfolded lines")} ${n} ${i.state.phrase("to")} ${o}.`)}const EK=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:i=>{for(let t of Yy(i)){let e=gd(i.state,t.from,t.to);if(e)return i.dispatch({effects:Xy(i.state,[_d.of(e),fm(i,e)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:i=>{if(!i.state.field(Er,!1))return!1;let t=[];for(let e of Yy(i)){let n=bd(i.state,e.from,e.to);n&&t.push(tl.of(n),fm(i,n,!1))}return t.length&&i.dispatch({effects:t}),t.length>0}},{key:"Ctrl-Alt-[",run:i=>{let{state:t}=i,e=[];for(let n=0;n{let t=i.state.field(Er,!1);if(!t||!t.size)return!1;let e=[];return t.between(0,i.state.doc.length,(n,o)=>{e.push(tl.of({from:n,to:o}))}),i.dispatch({effects:e}),!0}}],AK={placeholderDOM:null,preparePlaceholder:null,placeholderText:"\u2026"},Ky=H.define({combine:i=>Vn(i,AK)});function kR(i){let t=[Er,RK];return i&&t.push(Ky.of(i)),t}function DR(i,t){let{state:e}=i,n=e.facet(Ky),o=s=>{let a=i.lineBlockAt(i.posAtDOM(s.target)),l=bd(i.state,a.from,a.to);l&&i.dispatch({effects:tl.of(l)}),s.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(i,o,t);let r=document.createElement("span");return r.textContent=n.placeholderText,r.setAttribute("aria-label",e.phrase("folded code")),r.title=e.phrase("unfold"),r.className="cm-foldPlaceholder",r.onclick=o,r}const SR=Y.replace({widget:new class extends jo{toDOM(i){return DR(i,null)}}});class TK extends jo{constructor(t){super(),this.value=t}eq(t){return this.value==t.value}toDOM(t){return DR(t,this.value)}}const IK={openText:"\u2304",closedText:"\u203a",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class Zy extends lo{constructor(t,e){super(),this.config=t,this.open=e}eq(t){return this.config==t.config&&this.open==t.open}toDOM(t){if(this.config.markerDOM)return this.config.markerDOM(this.open);let e=document.createElement("span");return e.textContent=this.open?this.config.openText:this.config.closedText,e.title=t.state.phrase(this.open?"Fold line":"Unfold line"),e}}function OK(i={}){let t=Object.assign(Object.assign({},IK),i),e=new Zy(t,!0),n=new Zy(t,!1),o=gt.fromClass(class{constructor(s){this.from=s.viewport.from,this.markers=this.buildMarkers(s)}update(s){(s.docChanged||s.viewportChanged||s.startState.facet(Mr)!=s.state.facet(Mr)||s.startState.field(Er,!1)!=s.state.field(Er,!1)||Ht(s.startState)!=Ht(s.state)||t.foldingChanged(s))&&(this.markers=this.buildMarkers(s.view))}buildMarkers(s){let a=new _r;for(let l of s.viewportLineBlocks){let c=bd(s.state,l.from,l.to)?n:gd(s.state,l.from,l.to)?e:null;c&&a.add(l.from,l.from,c)}return a.finish()}}),{domEventHandlers:r}=t;return[o,VO({class:"cm-foldGutter",markers(s){var a;return(null===(a=s.plugin(o))||void 0===a?void 0:a.markers)||rt.empty},initialSpacer:()=>new Zy(t,!1),domEventHandlers:Object.assign(Object.assign({},r),{click:(s,a,l)=>{if(r.click&&r.click(s,a,l))return!0;let c=bd(s.state,a.from,a.to);if(c)return s.dispatch({effects:tl.of(c)}),!0;let d=gd(s.state,a.from,a.to);return!!d&&(s.dispatch({effects:_d.of(d)}),!0)}})}),kR()]}const RK=ve.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class mm{constructor(t,e){let n;function o(a){let l=br.newName();return(n||(n=Object.create(null)))["."+l]=a,l}this.specs=t;const r="string"==typeof e.all?e.all:e.all?o(e.all):void 0,s=e.scope;this.scope=s instanceof vn?a=>a.prop(ys)==s.data:s?a=>a==s:void 0,this.style=lR(t.map(a=>({tag:a.tag,class:a.class||o(Object.assign({},a,{tag:null}))})),{all:r}).style,this.module=n?new br(n):null,this.themeType=e.themeType}static define(t,e){return new mm(t,e||{})}}const Qy=H.define(),MR=H.define({combine:i=>i.length?[i[0]]:null});function pm(i){let t=i.facet(Qy);return t.length?t:i.facet(MR)}function FK(i,t){let n,e=[NK];return i instanceof mm&&(i.module&&e.push(ve.styleModule.of(i.module)),n=i.themeType),e.push(t?.fallback?MR.of(i):n?Qy.computeN([ve.darkTheme],o=>o.facet(ve.darkTheme)==("dark"==n)?[i]:[]):Qy.of(i)),e}class PK{constructor(t){this.markCache=Object.create(null),this.tree=Ht(t.state),this.decorations=this.buildDeco(t,pm(t.state))}update(t){let e=Ht(t.state),n=pm(t.state),o=n!=pm(t.startState);e.length{n.add(s,a,this.markCache[l]||(this.markCache[l]=Y.mark({class:l})))},o,r);return n.finish()}}const NK=ps.high(gt.fromClass(PK,{decorations:i=>i.decorations})),LK=mm.define([{tag:P.meta,color:"#404740"},{tag:P.link,textDecoration:"underline"},{tag:P.heading,textDecoration:"underline",fontWeight:"bold"},{tag:P.emphasis,fontStyle:"italic"},{tag:P.strong,fontWeight:"bold"},{tag:P.strikethrough,textDecoration:"line-through"},{tag:P.keyword,color:"#708"},{tag:[P.atom,P.bool,P.url,P.contentSeparator,P.labelName],color:"#219"},{tag:[P.literal,P.inserted],color:"#164"},{tag:[P.string,P.deleted],color:"#a11"},{tag:[P.regexp,P.escape,P.special(P.string)],color:"#e40"},{tag:P.definition(P.variableName),color:"#00f"},{tag:P.local(P.variableName),color:"#30a"},{tag:[P.typeName,P.namespace],color:"#085"},{tag:P.className,color:"#167"},{tag:[P.special(P.variableName),P.macroName],color:"#256"},{tag:P.definition(P.propertyName),color:"#00c"},{tag:P.comment,color:"#940"},{tag:P.invalid,color:"#f00"}]),BK=ve.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),ER=1e4,AR="()[]{}",TR=H.define({combine:i=>Vn(i,{afterCursor:!0,brackets:AR,maxScanDistance:ER,renderMatch:zK})}),VK=Y.mark({class:"cm-matchingBracket"}),HK=Y.mark({class:"cm-nonmatchingBracket"});function zK(i){let t=[],e=i.matched?VK:HK;return t.push(e.range(i.start.from,i.start.to)),i.end&&t.push(e.range(i.end.from,i.end.to)),t}const jK=[St.define({create:()=>Y.none,update(i,t){if(!t.docChanged&&!t.selection)return i;let e=[],n=t.state.facet(TR);for(let o of t.state.selection.ranges){if(!o.empty)continue;let r=po(t.state,o.head,-1,n)||o.head>0&&po(t.state,o.head-1,1,n)||n.afterCursor&&(po(t.state,o.head,1,n)||o.headve.decorations.from(i)}),BK];function $K(i={}){return[TR.of(i),jK]}const UK=new we;function Jy(i,t,e){let n=i.prop(t<0?we.openedBy:we.closedBy);if(n)return n;if(1==i.name.length){let o=e.indexOf(i.name);if(o>-1&&o%2==(t<0?1:0))return[e[o+t]]}return null}function e0(i){let t=i.type.prop(UK);return t?t(i.node):i}function po(i,t,e,n={}){let o=n.maxScanDistance||ER,r=n.brackets||AR,s=Ht(i),a=s.resolveInner(t,e);for(let l=a;l;l=l.parent){let c=Jy(l.type,e,r);if(c&&l.from0?t>=d.from&&td.from&&t<=d.to))return WK(0,0,e,l,d,c,r)}}return function GK(i,t,e,n,o,r,s){let a=e<0?i.sliceDoc(t-1,t):i.sliceDoc(t,t+1),l=s.indexOf(a);if(l<0||l%2==0!=e>0)return null;let c={from:e<0?t-1:t,to:e>0?t+1:t},d=i.doc.iterRange(t,e>0?i.doc.length:0),u=0;for(let h=0;!d.next().done&&h<=r;){let f=d.value;e<0&&(h+=f.length);let m=t+h*e;for(let p=e>0?0:f.length-1,g=e>0?f.length:-1;p!=g;p+=e){let b=s.indexOf(f[p]);if(!(b<0||n.resolveInner(m+p,1).type!=o))if(b%2==0==e>0)u++;else{if(1==u)return{start:c,end:{from:m+p,to:m+p+1},matched:b>>1==l>>1};u--}}e>0&&(h+=f.length)}return d.done?{start:c,matched:!1}:null}(i,t,e,s,a.type,o,r)}function WK(i,t,e,n,o,r,s){let a=n.parent,l={from:o.from,to:o.to},c=0,d=a?.cursor();if(d&&(e<0?d.childBefore(n.from):d.childAfter(n.to)))do{if(e<0?d.to<=n.from:d.from>=n.to){if(0==c&&r.indexOf(d.type.name)>-1&&d.from-1||(LR.push(i),console.warn(t))}function HR(i,t){let e=null;for(let r of t.split(".")){let s=i[r]||P[r];s?"function"==typeof s?e?e=s(e):o0(r,`Modifier ${r} used at start of tag`):e?o0(r,`Tag ${r} used as modifier`):e=s:o0(r,`Unknown highlighting tag ${r}`)}if(!e)return 0;let n=t.replace(/ /g,"_"),o=Mi.define({id:vd.length,name:n,props:[sR({[n]:e})]});return vd.push(o),o.id}function r0(i,t){return({state:e,dispatch:n})=>{if(e.readOnly)return!1;let o=i(t,e);return!!o&&(n(e.update(o)),!0)}}const tZ=r0(sZ,0),iZ=r0(zR,0),nZ=r0((i,t)=>zR(i,t,function rZ(i){let t=[];for(let e of i.selection.ranges){let n=i.doc.lineAt(e.from),o=e.to<=n.to?n:i.doc.lineAt(e.to),r=t.length-1;r>=0&&t[r].to>n.from?t[r].to=o.to:t.push({from:n.from+/^\s*/.exec(n.text)[0].length,to:o.to})}return t}(t)),0);function s0(i,t){let e=i.languageDataAt("commentTokens",t);return e.length?e[0]:{}}const yd=50;function zR(i,t,e=t.selection.ranges){let n=e.map(r=>s0(t,r.from).block);if(!n.every(r=>r))return null;let o=e.map((r,s)=>function oZ(i,{open:t,close:e},n,o){let d,u,r=i.sliceDoc(n-yd,n),s=i.sliceDoc(o,o+yd),a=/\s*$/.exec(r)[0].length,l=/^\s*/.exec(s)[0].length,c=r.length-a;if(r.slice(c-t.length,c)==t&&s.slice(l,l+e.length)==e)return{open:{pos:n-a,margin:a&&1},close:{pos:o+l,margin:l&&1}};o-n<=2*yd?d=u=i.sliceDoc(n,o):(d=i.sliceDoc(n,n+yd),u=i.sliceDoc(o-yd,o));let h=/^\s*/.exec(d)[0].length,f=/\s*$/.exec(u)[0].length,m=u.length-f-e.length;return d.slice(h,h+t.length)==t&&u.slice(m,m+e.length)==e?{open:{pos:n+h+t.length,margin:/\s/.test(d.charAt(h+t.length))?1:0},close:{pos:o-f-e.length,margin:/\s/.test(u.charAt(m-1))?1:0}}:null}(t,n[s],r.from,r.to));if(2!=i&&!o.every(r=>r))return{changes:t.changes(e.map((r,s)=>o[s]?[]:[{from:r.from,insert:n[s].open+" "},{from:r.to,insert:" "+n[s].close}]))};if(1!=i&&o.some(r=>r)){let r=[];for(let a,s=0;so&&(r==s||s>u.from)){o=u.from;let h=/^\s*/.exec(u.text)[0].length,f=h==u.length,m=u.text.slice(h,h+c.length)==c?h:-1;hr.comment<0&&(!r.empty||r.single))){let r=[];for(let{line:a,token:l,indent:c,empty:d,single:u}of n)(u||!d)&&r.push({from:a.from+c,insert:l+" "});let s=t.changes(r);return{changes:s,selection:t.selection.map(s,1)}}if(1!=i&&n.some(r=>r.comment>=0)){let r=[];for(let{line:s,comment:a,token:l}of n)if(a>=0){let c=s.from+a,d=c+l.length;" "==s.text[d-s.from]&&d++,r.push({from:c,to:d})}return{changes:r}}return null}const a0=Bo.define(),aZ=Bo.define(),lZ=H.define(),jR=H.define({combine:i=>Vn(i,{minDepth:100,newGroupDelay:500,joinToEvent:(t,e)=>e},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(t,e)=>(n,o)=>t(n,o)||e(n,o)})}),l0=St.define({create:()=>u0.empty,update(i,t){let e=t.state.facet(jR),n=t.annotation(a0);if(n){let l=t.docChanged?E.single(function cZ(i){let t=0;return i.iterChangedRanges((e,n)=>t=n),t}(t.changes)):void 0,c=Li.fromTransaction(t,l),d=n.side,u=0==d?i.undone:i.done;return u=c?_m(u,u.length,e.minDepth,c):WR(u,t.startState.selection),new u0(0==d?n.rest:u,0==d?u:n.rest)}let o=t.annotation(aZ);if(("full"==o||"before"==o)&&(i=i.isolate()),!1===t.annotation(oo.addToHistory))return t.changes.empty?i:i.addMapping(t.changes.desc);let r=Li.fromTransaction(t),s=t.annotation(oo.time),a=t.annotation(oo.userEvent);return r?i=i.addChanges(r,s,a,e,t):t.selection&&(i=i.addSelection(t.startState.selection,s,a,e.newGroupDelay)),("full"==o||"after"==o)&&(i=i.isolate()),i},toJSON:i=>({done:i.done.map(t=>t.toJSON()),undone:i.undone.map(t=>t.toJSON())}),fromJSON:i=>new u0(i.done.map(Li.fromJSON),i.undone.map(Li.fromJSON))});function dZ(i={}){return[l0,jR.of(i),ve.domEventHandlers({beforeinput(t,e){let n="historyUndo"==t.inputType?$R:"historyRedo"==t.inputType?c0:null;return!!n&&(t.preventDefault(),n(e))}})]}function gm(i,t){return function({state:e,dispatch:n}){if(!t&&e.readOnly)return!1;let o=e.field(l0,!1);if(!o)return!1;let r=o.pop(i,e,t);return!!r&&(n(r),!0)}}const $R=gm(0,!1),c0=gm(1,!1),uZ=gm(0,!0),hZ=gm(1,!0);class Li{constructor(t,e,n,o,r){this.changes=t,this.effects=e,this.mapped=n,this.startSelection=o,this.selectionsAfter=r}setSelAfter(t){return new Li(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){var t,e,n;return{changes:null===(t=this.changes)||void 0===t?void 0:t.toJSON(),mapped:null===(e=this.mapped)||void 0===e?void 0:e.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(o=>o.toJSON())}}static fromJSON(t){return new Li(t.changes&&Ft.fromJSON(t.changes),[],t.mapped&&no.fromJSON(t.mapped),t.startSelection&&E.fromJSON(t.startSelection),t.selectionsAfter.map(E.fromJSON))}static fromTransaction(t,e){let n=yn;for(let o of t.startState.facet(lZ)){let r=o(t);r.length&&(n=n.concat(r))}return!n.length&&t.changes.empty?null:new Li(t.changes.invert(t.startState.doc),n,void 0,e||t.startState.selection,yn)}static selection(t){return new Li(void 0,yn,void 0,void 0,t)}}function _m(i,t,e,n){let r=i.slice(t+1>e+20?t-e-1:0,t);return r.push(n),r}function UR(i,t){return i.length?t.length?i.concat(t):i:t}const yn=[],pZ=200;function WR(i,t){if(i.length){let e=i[i.length-1],n=e.selectionsAfter.slice(Math.max(0,e.selectionsAfter.length-pZ));return n.length&&n[n.length-1].eq(t)?i:(n.push(t),_m(i,i.length-1,1e9,e.setSelAfter(n)))}return[Li.selection([t])]}function gZ(i){let t=i[i.length-1],e=i.slice();return e[i.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),e}function d0(i,t){if(!i.length)return i;let e=i.length,n=yn;for(;e;){let o=_Z(i[e-1],t,n);if(o.changes&&!o.changes.empty||o.effects.length){let r=i.slice(0,e);return r[e-1]=o,r}t=o.mapped,e--,n=o.selectionsAfter}return n.length?[Li.selection(n)]:yn}function _Z(i,t,e){let n=UR(i.selectionsAfter.length?i.selectionsAfter.map(a=>a.map(t)):yn,e);if(!i.changes)return Li.selection(n);let o=i.changes.map(t),r=t.mapDesc(i.changes,!0),s=i.mapped?i.mapped.composeDesc(r):r;return new Li(o,Ee.mapEffects(i.effects,t),s,i.startSelection.map(r),n)}const bZ=/^(input\.type|delete)($|\.)/;let u0=(()=>{class i{constructor(e,n,o=0,r=void 0){this.done=e,this.undone=n,this.prevTime=o,this.prevUserEvent=r}isolate(){return this.prevTime?new i(this.done,this.undone):this}addChanges(e,n,o,r,s){let a=this.done,l=a[a.length-1];return a=l&&l.changes&&!l.changes.empty&&e.changes&&(!o||bZ.test(o))&&(!l.selectionsAfter.length&&n-this.prevTimee.push(o,r)),t.iterChangedRanges((o,r,s,a)=>{for(let l=0;l=c&&s<=d&&(n=!0)}}),n}(l.changes,e.changes))||"input.type.compose"==o)?_m(a,a.length-1,r.minDepth,new Li(e.changes.compose(l.changes),UR(e.effects,l.effects),l.mapped,l.startSelection,yn)):_m(a,a.length,r.minDepth,e),new i(a,yn,n,o)}addSelection(e,n,o,r){let s=this.done.length?this.done[this.done.length-1].selectionsAfter:yn;return s.length>0&&n-this.prevTimee.empty!=t.ranges[n].empty).length}(s[s.length-1],e)?this:new i(WR(this.done,e),this.undone,n,o)}addMapping(e){return new i(d0(this.done,e),d0(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,n,o){let r=0==e?this.done:this.undone;if(0==r.length)return null;let s=r[r.length-1];if(o&&s.selectionsAfter.length)return n.update({selection:s.selectionsAfter[s.selectionsAfter.length-1],annotations:a0.of({side:e,rest:gZ(r)}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(s.changes){let a=1==r.length?yn:r.slice(0,r.length-1);return s.mapped&&(a=d0(a,s.mapped)),n.update({changes:s.changes,selection:s.startSelection,effects:s.effects,annotations:a0.of({side:e,rest:a}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}return null}}return i.empty=new i(yn,yn),i})();const vZ=[{key:"Mod-z",run:$R,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:c0,preventDefault:!0},{linux:"Ctrl-Shift-z",run:c0,preventDefault:!0},{key:"Mod-u",run:uZ,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:hZ,preventDefault:!0}];function il(i,t){return E.create(i.ranges.map(t),i.mainIndex)}function go(i,t){return i.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function xn({state:i,dispatch:t},e){let n=il(i.selection,e);return!n.eq(i.selection)&&(t(go(i,n)),!0)}function xd(i,t){return E.cursor(t?i.to:i.from)}function bm(i,t){return xn(i,e=>e.empty?i.moveByChar(e,t):xd(e,t))}function di(i){return i.textDirectionAt(i.state.selection.main.head)==ut.LTR}const GR=i=>bm(i,!di(i)),qR=i=>bm(i,di(i));function vm(i,t){return xn(i,e=>e.empty?i.moveByGroup(e,t):xd(e,t))}function wZ(i,t,e){if(t.type.prop(e))return!0;let n=t.to-t.from;return n&&(n>2||/[^\s,.;:]/.test(i.sliceDoc(t.from,t.to)))||t.firstChild}function ym(i,t,e){let s,a,n=Ht(i).resolveInner(t.head),o=e?we.closedBy:we.openedBy;for(let l=t.head;;){let c=e?n.childAfter(l):n.childBefore(l);if(!c)break;wZ(i,c,o)?n=c:l=e?c.to:c.from}return a=n.type.prop(o)&&(s=e?po(i,n.from,1):po(i,n.to,-1))&&s.matched?e?s.end.to:s.end.from:e?n.to:n.from,E.cursor(a,e?-1:1)}function ZR(i,t){return xn(i,e=>{if(!e.empty)return xd(e,t);let n=i.moveVertically(e,t);return n.head!=e.head?n:i.moveToLineBoundary(e,t)})}typeof Intl<"u"&&Intl;const QR=i=>ZR(i,!1),JR=i=>ZR(i,!0);function eF(i){let o,t=i.scrollDOM.clientHeights.empty?i.moveVertically(s,t,e.height):xd(s,t));if(o.eq(n.selection))return!1;if(e.selfScroll){let s=i.coordsAtPos(n.selection.main.head),a=i.scrollDOM.getBoundingClientRect(),l=a.top+e.marginTop;s&&s.top>l&&s.bottomtF(i,!1),h0=i=>tF(i,!0);function Ar(i,t,e){let n=i.lineBlockAt(t.head),o=i.moveToLineBoundary(t,e);if(o.head==t.head&&o.head!=(e?n.to:n.from)&&(o=i.moveToLineBoundary(t,e,!1)),!e&&o.head==n.from&&n.length){let r=/^\s*/.exec(i.state.sliceDoc(n.from,Math.min(n.from+100,n.to)))[0].length;r&&t.head!=n.from+r&&(o=E.cursor(n.from+r))}return o}function Zi(i,t){let e=il(i.state.selection,n=>{let o=t(n);return E.range(n.anchor,o.head,o.goalColumn,o.bidiLevel||void 0)});return!e.eq(i.state.selection)&&(i.dispatch(go(i.state,e)),!0)}function xm(i,t){return Zi(i,e=>i.moveByChar(e,t))}const oF=i=>xm(i,!di(i)),rF=i=>xm(i,di(i));function wm(i,t){return Zi(i,e=>i.moveByGroup(e,t))}function aF(i,t){return Zi(i,e=>i.moveVertically(e,t))}const lF=i=>aF(i,!1),cF=i=>aF(i,!0);function dF(i,t){return Zi(i,e=>i.moveVertically(e,t,eF(i).height))}const uF=i=>dF(i,!1),hF=i=>dF(i,!0),fF=({state:i,dispatch:t})=>(t(go(i,{anchor:0})),!0),mF=({state:i,dispatch:t})=>(t(go(i,{anchor:i.doc.length})),!0),pF=({state:i,dispatch:t})=>(t(go(i,{anchor:i.selection.main.anchor,head:0})),!0),gF=({state:i,dispatch:t})=>(t(go(i,{anchor:i.selection.main.anchor,head:i.doc.length})),!0);function nl(i,t){if(i.state.readOnly)return!1;let e="delete.selection",{state:n}=i,o=n.changeByRange(r=>{let{from:s,to:a}=r;if(s==a){let l=t(r);ls&&(e="delete.forward",l=Cm(i,l,!0)),s=Math.min(s,l),a=Math.max(a,l)}else s=Cm(i,s,!1),a=Cm(i,a,!0);return s==a?{range:r}:{changes:{from:s,to:a},range:E.cursor(s,so(i)))n.between(t,t,(o,r)=>{ot&&(t=e?r:o)});return t}const _F=(i,t)=>nl(i,e=>{let s,a,n=e.from,{state:o}=i,r=o.doc.lineAt(n);if(!t&&n>r.from&&n_F(i,!1),bF=i=>_F(i,!0),vF=(i,t)=>nl(i,e=>{let n=e.head,{state:o}=i,r=o.doc.lineAt(n),s=o.charCategorizer(n);for(let a=null;;){if(n==(t?r.to:r.from)){n==e.head&&r.number!=(t?o.doc.lines:1)&&(n+=t?1:-1);break}let l=si(r.text,n-r.from,t)+r.from,c=r.text.slice(Math.min(n,l)-r.from,Math.max(n,l)-r.from),d=s(c);if(null!=a&&d!=a)break;(" "!=c||n!=e.head)&&(a=d),n=l}return n}),yF=i=>vF(i,!1);function km(i){let t=[],e=-1;for(let n of i.selection.ranges){let o=i.doc.lineAt(n.from),r=i.doc.lineAt(n.to);if(!n.empty&&n.to==r.from&&(r=i.doc.lineAt(n.to-1)),e>=o.number){let s=t[t.length-1];s.to=r.to,s.ranges.push(n)}else t.push({from:o.from,to:r.to,ranges:[n]});e=r.number+1}return t}function xF(i,t,e){if(i.readOnly)return!1;let n=[],o=[];for(let r of km(i)){if(e?r.to==i.doc.length:0==r.from)continue;let s=i.doc.lineAt(e?r.to+1:r.from-1),a=s.length+1;if(e){n.push({from:r.to,to:s.to},{from:r.from,insert:s.text+i.lineBreak});for(let l of r.ranges)o.push(E.range(Math.min(i.doc.length,l.anchor+a),Math.min(i.doc.length,l.head+a)))}else{n.push({from:s.from,to:r.from},{from:r.to,insert:i.lineBreak+s.text});for(let l of r.ranges)o.push(E.range(l.anchor-a,l.head-a))}}return!!n.length&&(t(i.update({changes:n,scrollIntoView:!0,selection:E.create(o,i.selection.mainIndex),userEvent:"move.line"})),!0)}function wF(i,t,e){if(i.readOnly)return!1;let n=[];for(let o of km(i))n.push(e?{from:o.from,insert:i.doc.slice(o.from,o.to)+i.lineBreak}:{from:o.to,insert:i.lineBreak+i.doc.slice(o.from,o.to)});return t(i.update({changes:n,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const oQ=CF(!1);function CF(i){return({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange(o=>{let{from:r,to:s}=o,a=t.doc.lineAt(r),l=!i&&r==s&&function nQ(i,t){if(/\(\)|\[\]|\{\}/.test(i.sliceDoc(t-1,t+1)))return{from:t,to:t};let r,e=Ht(i).resolveInner(t),n=e.childBefore(t),o=e.childAfter(t);return n&&o&&n.to<=t&&o.from>=t&&(r=n.type.prop(we.closedBy))&&r.indexOf(o.name)>-1&&i.doc.lineAt(n.to).from==i.doc.lineAt(o.from).from&&!/\S/.test(i.sliceDoc(n.to,o.from))?{from:n.to,to:o.from}:null}(t,r);i&&(r=s=(s<=a.to?a:t.doc.lineAt(s)).to);let c=new pd(t,{simulateBreak:r,simulateDoubleBreak:!!l}),d=hm(c,r);for(null==d&&(d=Wa(/^\s*/.exec(t.doc.lineAt(r).text)[0],t.tabSize));sa.from&&r{let o=[];for(let s=n.from;s<=n.to;){let a=i.doc.lineAt(s);a.number>e&&(n.empty||n.to>a.from)&&(t(a,o,n),e=a.number),s=a.to+1}let r=i.changes(o);return{changes:o,range:E.range(r.mapPos(n.anchor,1),r.mapPos(n.head,1))}})}const cQ=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:i=>xn(i,t=>ym(i.state,t,!di(i))),shift:i=>Zi(i,t=>ym(i.state,t,!di(i)))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:i=>xn(i,t=>ym(i.state,t,di(i))),shift:i=>Zi(i,t=>ym(i.state,t,di(i)))},{key:"Alt-ArrowUp",run:({state:i,dispatch:t})=>xF(i,t,!1)},{key:"Shift-Alt-ArrowUp",run:({state:i,dispatch:t})=>wF(i,t,!1)},{key:"Alt-ArrowDown",run:({state:i,dispatch:t})=>xF(i,t,!0)},{key:"Shift-Alt-ArrowDown",run:({state:i,dispatch:t})=>wF(i,t,!0)},{key:"Escape",run:({state:i,dispatch:t})=>{let e=i.selection,n=null;return e.ranges.length>1?n=E.create([e.main]):e.main.empty||(n=E.create([E.cursor(e.main.head)])),!!n&&(t(go(i,n)),!0)}},{key:"Mod-Enter",run:CF(!0)},{key:"Alt-l",mac:"Ctrl-l",run:({state:i,dispatch:t})=>{let e=km(i).map(({from:n,to:o})=>E.range(n,Math.min(o+1,i.doc.length)));return t(i.update({selection:E.create(e),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:i,dispatch:t})=>{let e=il(i.selection,n=>{var o;for(let s=Ht(i).resolveStack(n.from,1);s;s=s.next){let{node:a}=s;if((a.from=n.to||a.to>n.to&&a.from<=n.from)&&null!==(o=a.parent)&&void 0!==o&&o.parent)return E.range(a.to,a.from)}return n});return t(go(i,e)),!0},preventDefault:!0},{key:"Mod-[",run:({state:i,dispatch:t})=>!i.readOnly&&(t(i.update(m0(i,(e,n)=>{let o=/^\s*/.exec(e.text)[0];if(!o)return;let r=Wa(o,i.tabSize),s=0,a=el(i,Math.max(0,r-xs(i)));for(;s!i.readOnly&&(t(i.update(m0(i,(e,n)=>{n.push({from:e.from,insert:i.facet(Gy)})}),{userEvent:"input.indent"})),!0)},{key:"Mod-Alt-\\",run:({state:i,dispatch:t})=>{if(i.readOnly)return!1;let e=Object.create(null),n=new pd(i,{overrideIndentation:r=>e[r]??-1}),o=m0(i,(r,s,a)=>{let l=hm(n,r.from);if(null==l)return;/\S/.test(r.text)||(l=0);let c=/^\s*/.exec(r.text)[0],d=el(i,l);(c!=d||a.from{if(i.state.readOnly)return!1;let{state:t}=i,e=t.changes(km(t).map(({from:o,to:r})=>(o>0?o--:ri.moveVertically(o,!0)).map(e);return i.dispatch({changes:e,selection:n,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:i,dispatch:t})=>function nF(i,t,e){let n=!1,o=il(i.selection,r=>{let s=po(i,r.head,-1)||po(i,r.head,1)||r.head>0&&po(i,r.head-1,1)||r.head{let{state:t}=i,e=t.doc.lineAt(t.selection.main.from),n=s0(i.state,e.from);return n.line?tZ(i):!!n.block&&nZ(i)}},{key:"Alt-A",run:iZ}].concat([{key:"ArrowLeft",run:GR,shift:oF,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:i=>vm(i,!di(i)),shift:i=>wm(i,!di(i)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:i=>xn(i,t=>Ar(i,t,!di(i))),shift:i=>Zi(i,t=>Ar(i,t,!di(i))),preventDefault:!0},{key:"ArrowRight",run:qR,shift:rF,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:i=>vm(i,di(i)),shift:i=>wm(i,di(i)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:i=>xn(i,t=>Ar(i,t,di(i))),shift:i=>Zi(i,t=>Ar(i,t,di(i))),preventDefault:!0},{key:"ArrowUp",run:QR,shift:lF,preventDefault:!0},{mac:"Cmd-ArrowUp",run:fF,shift:pF},{mac:"Ctrl-ArrowUp",run:iF,shift:uF},{key:"ArrowDown",run:JR,shift:cF,preventDefault:!0},{mac:"Cmd-ArrowDown",run:mF,shift:gF},{mac:"Ctrl-ArrowDown",run:h0,shift:hF},{key:"PageUp",run:iF,shift:uF},{key:"PageDown",run:h0,shift:hF},{key:"Home",run:i=>xn(i,t=>Ar(i,t,!1)),shift:i=>Zi(i,t=>Ar(i,t,!1)),preventDefault:!0},{key:"Mod-Home",run:fF,shift:pF},{key:"End",run:i=>xn(i,t=>Ar(i,t,!0)),shift:i=>Zi(i,t=>Ar(i,t,!0)),preventDefault:!0},{key:"Mod-End",run:mF,shift:gF},{key:"Enter",run:oQ},{key:"Mod-a",run:({state:i,dispatch:t})=>(t(i.update({selection:{anchor:0,head:i.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:f0,shift:f0},{key:"Delete",run:bF},{key:"Mod-Backspace",mac:"Alt-Backspace",run:yF},{key:"Mod-Delete",mac:"Alt-Delete",run:i=>vF(i,!0)},{mac:"Mod-Backspace",run:i=>nl(i,t=>{let e=i.moveToLineBoundary(t,!1).head;return t.head>e?e:Math.max(0,t.head-1)})},{mac:"Mod-Delete",run:i=>nl(i,t=>{let e=i.moveToLineBoundary(t,!0).head;return t.headxn(i,t=>E.cursor(i.lineBlockAt(t.head).from,1)),shift:i=>Zi(i,t=>E.cursor(i.lineBlockAt(t.head).from))},{key:"Ctrl-e",run:i=>xn(i,t=>E.cursor(i.lineBlockAt(t.head).to,-1)),shift:i=>Zi(i,t=>E.cursor(i.lineBlockAt(t.head).to))},{key:"Ctrl-d",run:bF},{key:"Ctrl-h",run:f0},{key:"Ctrl-k",run:i=>nl(i,t=>{let e=i.lineBlockAt(t.head).to;return t.head{if(i.readOnly)return!1;let e=i.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:Le.of(["",""])},range:E.cursor(n.from)}));return t(i.update(e,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:i,dispatch:t})=>{if(i.readOnly)return!1;let e=i.changeByRange(n=>{if(!n.empty||0==n.from||n.from==i.doc.length)return{range:n};let o=n.from,r=i.doc.lineAt(o),s=o==r.from?o-1:si(r.text,o-r.from,!1)+r.from,a=o==r.to?o+1:si(r.text,o-r.from,!0)+r.from;return{changes:{from:s,to:a,insert:i.doc.slice(o,a).append(i.doc.slice(s,o))},range:E.cursor(a)}});return!e.changes.empty&&(t(i.update(e,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:h0}].map(i=>({mac:i.key,run:i.run,shift:i.shift}))));function Ze(){var i=arguments[0];"string"==typeof i&&(i=document.createElement(i));var t=1,e=arguments[1];if(e&&"object"==typeof e&&null==e.nodeType&&!Array.isArray(e)){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=e[n];"string"==typeof o?i.setAttribute(n,o):null!=o&&(i[n]=o)}t++}for(;ti.normalize("NFKD"):i=>i;class ol{constructor(t,e,n=0,o=t.length,r,s){this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=t.iterRange(n,o),this.bufferStart=n,this.normalize=r?a=>r(SF(a)):SF,this.query=this.normalize(e)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return qt(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let t=this.peek();if(t<0)return this.done=!0,this;let e=Pv(t),n=this.bufferStart+this.bufferPos;this.bufferPos+=_n(t);let o=this.normalize(e);for(let r=0,s=n;;r++){let a=o.charCodeAt(r),l=this.match(a,s);if(r==o.length-1){if(l)return this.value=l,this;break}s==n&&rthis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let t=this.matchPos-this.curLineStart;;){this.re.lastIndex=t;let e=this.matchPos<=this.to&&this.re.exec(this.curLine);if(e){let n=this.curLineStart+e.index,o=n+e[0].length;if(this.matchPos=Dm(this.text,o+(n==o?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(nthis.value.to)&&(!this.test||this.test(n,o,e)))return this.value={from:n,to:o,match:e},this;t=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=n||o.to<=e){let a=new rl(e,t.sliceString(e,n));return _0.set(t,a),a}if(o.from==e&&o.to==n)return o;let{text:r,from:s}=o;return s>e&&(r=t.sliceString(e,s)+r,s=e),o.to=this.to?this.to:this.text.lineAt(t).to}next(){for(;;){let t=this.re.lastIndex=this.matchPos-this.flat.from,e=this.re.exec(this.flat.text);if(e&&!e[0]&&e.index==t&&(this.re.lastIndex=t+1,e=this.re.exec(this.flat.text)),e){let n=this.flat.from+e.index,o=n+e[0].length;if((this.flat.to>=this.to||e.index+e[0].length<=this.flat.text.length-10)&&(!this.test||this.test(n,o,e)))return this.value={from:n,to:o,match:e},this.matchPos=Dm(this.text,o+(n==o?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=rl.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function Dm(i,t){if(t>=i.length)return t;let n,e=i.lineAt(t);for(;t=56320&&n<57344;)t++;return t}function b0(i){let e=Ze("input",{class:"cm-textfield",name:"line",value:String(i.state.doc.lineAt(i.state.selection.main.head).number)});function o(){let r=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(e.value);if(!r)return;let{state:s}=i,a=s.doc.lineAt(s.selection.main.head),[,l,c,d,u]=r,h=d?+d.slice(1):0,f=c?+c:a.number;if(c&&u){let g=f/100;l&&(g=g*("-"==l?-1:1)+a.number/s.doc.lines),f=Math.round(s.doc.lines*g)}else c&&l&&(f=f*("-"==l?-1:1)+a.number);let m=s.doc.line(Math.max(1,Math.min(s.doc.lines,f))),p=E.cursor(m.from+Math.max(0,Math.min(h,m.length)));i.dispatch({effects:[Sm.of(!1),ve.scrollIntoView(p.from,{y:"center"})],selection:p}),i.focus()}return{dom:Ze("form",{class:"cm-gotoLine",onkeydown:r=>{27==r.keyCode?(r.preventDefault(),i.dispatch({effects:Sm.of(!1)}),i.focus()):13==r.keyCode&&(r.preventDefault(),o())},onsubmit:r=>{r.preventDefault(),o()}},Ze("label",i.state.phrase("Go to line"),": ",e)," ",Ze("button",{class:"cm-button",type:"submit"},i.state.phrase("go")))}}typeof Symbol<"u"&&(EF.prototype[Symbol.iterator]=AF.prototype[Symbol.iterator]=function(){return this});const Sm=Ee.define(),TF=St.define({create:()=>!0,update(i,t){for(let e of t.effects)e.is(Sm)&&(i=e.value);return i},provide:i=>cd.from(i,t=>t?b0:null)}),hQ=ve.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),fQ={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},IF=H.define({combine:i=>Vn(i,fQ,{highlightWordAroundCursor:(t,e)=>t||e,minSelectionLength:Math.min,maxMatches:Math.min})});function mQ(i){let t=[vQ,bQ];return i&&t.push(IF.of(i)),t}const pQ=Y.mark({class:"cm-selectionMatch"}),gQ=Y.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function OF(i,t,e,n){return!(0!=e&&i(t.sliceDoc(e-1,e))==ot.Word||n!=t.doc.length&&i(t.sliceDoc(n,n+1))==ot.Word)}const bQ=gt.fromClass(class{constructor(i){this.decorations=this.getDeco(i)}update(i){(i.selectionSet||i.docChanged||i.viewportChanged)&&(this.decorations=this.getDeco(i.view))}getDeco(i){let t=i.state.facet(IF),{state:e}=i,n=e.selection;if(n.ranges.length>1)return Y.none;let r,o=n.main,s=null;if(o.empty){if(!t.highlightWordAroundCursor)return Y.none;let l=e.wordAt(o.head);if(!l)return Y.none;s=e.charCategorizer(o.head),r=e.sliceDoc(l.from,l.to)}else{let l=o.to-o.from;if(l200)return Y.none;if(t.wholeWords){if(r=e.sliceDoc(o.from,o.to),s=e.charCategorizer(o.head),!OF(s,e,o.from,o.to)||!function _Q(i,t,e,n){return i(t.sliceDoc(e,e+1))==ot.Word&&i(t.sliceDoc(n-1,n))==ot.Word}(s,e,o.from,o.to))return Y.none}else if(r=e.sliceDoc(o.from,o.to).trim(),!r)return Y.none}let a=[];for(let l of i.visibleRanges){let c=new ol(e.doc,r,l.from,l.to);for(;!c.next().done;){let{from:d,to:u}=c.value;if((!s||OF(s,e,d,u))&&(o.empty&&d<=o.from&&u>=o.to?a.push(gQ.range(d,u)):(d>=o.to||u<=o.from)&&a.push(pQ.range(d,u)),a.length>t.maxMatches))return Y.none}}return Y.set(a)}},{decorations:i=>i.decorations}),vQ=ve.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),ws=H.define({combine:i=>Vn(i,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:t=>new FQ(t),scrollToMatch:t=>ve.scrollIntoView(t)})});class RF{constructor(t){this.search=t.search,this.caseSensitive=!!t.caseSensitive,this.literal=!!t.literal,this.regexp=!!t.regexp,this.replace=t.replace||"",this.valid=!!this.search&&(!this.regexp||function dQ(i){try{return new RegExp(i,g0),!0}catch{return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!t.wholeWord}unquote(t){return this.literal?t:t.replace(/\\([nrt\\])/g,(e,n)=>"n"==n?"\n":"r"==n?"\r":"t"==n?"\t":"\\")}eq(t){return this.search==t.search&&this.replace==t.replace&&this.caseSensitive==t.caseSensitive&&this.regexp==t.regexp&&this.wholeWord==t.wholeWord}create(){return this.regexp?new SQ(this):new kQ(this)}getCursor(t,e=0,n){let o=t.doc?t:qi.create({doc:t});return null==n&&(n=o.doc.length),this.regexp?al(this,o,e,n):sl(this,o,e,n)}}class FF{constructor(t){this.spec=t}}function sl(i,t,e,n){return new ol(t.doc,i.unquoted,e,n,i.caseSensitive?void 0:o=>o.toLowerCase(),i.wholeWord?function CQ(i,t){return(e,n,o,r)=>((r>e||r+o.length=e)return null;o.push(n.value)}return o}highlight(t,e,n,o){let r=sl(this.spec,t,Math.max(0,e-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,t.doc.length));for(;!r.next().done;)o(r.value.from,r.value.to)}}function al(i,t,e,n){return new EF(t.doc,i.search,{ignoreCase:!i.caseSensitive,test:i.wholeWord?DQ(t.charCategorizer(t.selection.main.head)):void 0},e,n)}function Mm(i,t){return i.slice(si(i,t,!1),t)}function Em(i,t){return i.slice(t,si(i,t))}function DQ(i){return(t,e,n)=>!n[0].length||(i(Mm(n.input,n.index))!=ot.Word||i(Em(n.input,n.index))!=ot.Word)&&(i(Em(n.input,n.index+n[0].length))!=ot.Word||i(Mm(n.input,n.index+n[0].length))!=ot.Word)}class SQ extends FF{nextMatch(t,e,n){let o=al(this.spec,t,n,t.doc.length).next();return o.done&&(o=al(this.spec,t,0,e).next()),o.done?null:o.value}prevMatchInRange(t,e,n){for(let o=1;;o++){let r=Math.max(e,n-1e4*o),s=al(this.spec,t,r,n),a=null;for(;!s.next().done;)a=s.value;if(a&&(r==e||a.from>r+10))return a;if(r==e)return null}}prevMatch(t,e,n){return this.prevMatchInRange(t,0,e)||this.prevMatchInRange(t,n,t.doc.length)}getReplacement(t){return this.spec.unquote(this.spec.replace.replace(/\$([$&\d+])/g,(e,n)=>"$"==n?"$":"&"==n?t.match[0]:"0"!=n&&+n=e)return null;o.push(n.value)}return o}highlight(t,e,n,o){let r=al(this.spec,t,Math.max(0,e-250),Math.min(n+250,t.doc.length));for(;!r.next().done;)o(r.value.from,r.value.to)}}const wd=Ee.define(),v0=Ee.define(),_o=St.define({create:i=>new y0(Im(i).create(),null),update(i,t){for(let e of t.effects)e.is(wd)?i=new y0(e.value.create(),i.panel):e.is(v0)&&(i=new y0(i.query,e.value?x0:null));return i},provide:i=>cd.from(i,t=>t.panel)});class y0{constructor(t,e){this.query=t,this.panel=e}}const MQ=Y.mark({class:"cm-searchMatch"}),EQ=Y.mark({class:"cm-searchMatch cm-searchMatch-selected"}),AQ=gt.fromClass(class{constructor(i){this.view=i,this.decorations=this.highlight(i.state.field(_o))}update(i){let t=i.state.field(_o);(t!=i.startState.field(_o)||i.docChanged||i.selectionSet||i.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:i,panel:t}){if(!t||!i.spec.valid)return Y.none;let{view:e}=this,n=new _r;for(let o=0,r=e.visibleRanges,s=r.length;or[o+1].from-500;)l=r[++o].to;i.highlight(e.state,a,l,(c,d)=>{let u=e.state.selection.ranges.some(h=>h.from==c&&h.to==d);n.add(c,d,u?EQ:MQ)})}return n.finish()}},{decorations:i=>i.decorations});function Cd(i){return t=>{let e=t.state.field(_o,!1);return e&&e.query.spec.valid?i(t,e):BF(t)}}const Am=Cd((i,{query:t})=>{let{to:e}=i.state.selection.main,n=t.nextMatch(i.state,e,e);if(!n)return!1;let o=E.single(n.from,n.to),r=i.state.facet(ws);return i.dispatch({selection:o,effects:[w0(i,n),r.scrollToMatch(o.main,i)],userEvent:"select.search"}),LF(i),!0}),Tm=Cd((i,{query:t})=>{let{state:e}=i,{from:n}=e.selection.main,o=t.prevMatch(e,n,n);if(!o)return!1;let r=E.single(o.from,o.to),s=i.state.facet(ws);return i.dispatch({selection:r,effects:[w0(i,o),s.scrollToMatch(r.main,i)],userEvent:"select.search"}),LF(i),!0}),TQ=Cd((i,{query:t})=>{let e=t.matchAll(i.state,1e3);return!(!e||!e.length||(i.dispatch({selection:E.create(e.map(n=>E.range(n.from,n.to))),userEvent:"select.search.matches"}),0))}),PF=Cd((i,{query:t})=>{let{state:e}=i,{from:n,to:o}=e.selection.main;if(e.readOnly)return!1;let r=t.nextMatch(e,n,n);if(!r)return!1;let a,l,s=[],c=[];if(r.from==n&&r.to==o&&(l=e.toText(t.getReplacement(r)),s.push({from:r.from,to:r.to,insert:l}),r=t.nextMatch(e,r.from,r.to),c.push(ve.announce.of(e.phrase("replaced match on line $",e.doc.lineAt(n).number)+"."))),r){let d=0==s.length||s[0].from>=r.to?0:r.to-r.from-l.length;a=E.single(r.from-d,r.to-d),c.push(w0(i,r)),c.push(e.facet(ws).scrollToMatch(a.main,i))}return i.dispatch({changes:s,selection:a,effects:c,userEvent:"input.replace"}),!0}),OQ=Cd((i,{query:t})=>{if(i.state.readOnly)return!1;let e=t.matchAll(i.state,1e9).map(o=>{let{from:r,to:s}=o;return{from:r,to:s,insert:t.getReplacement(o)}});if(!e.length)return!1;let n=i.state.phrase("replaced $ matches",e.length)+".";return i.dispatch({changes:e,effects:ve.announce.of(n),userEvent:"input.replace.all"}),!0});function x0(i){return i.state.facet(ws).createPanel(i)}function Im(i,t){var e,n,o,r,s;let a=i.selection.main,l=a.empty||a.to>a.from+100?"":i.sliceDoc(a.from,a.to);if(t&&!l)return t;let c=i.facet(ws);return new RF({search:(null!==(e=t?.literal)&&void 0!==e?e:c.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:null!==(n=t?.caseSensitive)&&void 0!==n?n:c.caseSensitive,literal:null!==(o=t?.literal)&&void 0!==o?o:c.literal,regexp:null!==(r=t?.regexp)&&void 0!==r?r:c.regexp,wholeWord:null!==(s=t?.wholeWord)&&void 0!==s?s:c.wholeWord})}function NF(i){let t=ld(i,x0);return t&&t.dom.querySelector("[main-field]")}function LF(i){let t=NF(i);t&&t==i.root.activeElement&&t.select()}const BF=i=>{let t=i.state.field(_o,!1);if(t&&t.panel){let e=NF(i);if(e&&e!=i.root.activeElement){let n=Im(i.state,t.query.spec);n.valid&&i.dispatch({effects:wd.of(n)}),e.focus(),e.select()}}else i.dispatch({effects:[v0.of(!0),t?wd.of(Im(i.state,t.query.spec)):Ee.appendConfig.of(C0)]});return!0},VF=i=>{let t=i.state.field(_o,!1);if(!t||!t.panel)return!1;let e=ld(i,x0);return e&&e.dom.contains(i.root.activeElement)&&i.focus(),i.dispatch({effects:v0.of(!1)}),!0},RQ=[{key:"Mod-f",run:BF,scope:"editor search-panel"},{key:"F3",run:Am,shift:Tm,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:Am,shift:Tm,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:VF,scope:"editor search-panel"},{key:"Mod-Shift-l",run:({state:i,dispatch:t})=>{let e=i.selection;if(e.ranges.length>1||e.main.empty)return!1;let{from:n,to:o}=e.main,r=[],s=0;for(let a=new ol(i.doc,i.sliceDoc(n,o));!a.next().done;){if(r.length>1e3)return!1;a.value.from==n&&(s=r.length),r.push(E.range(a.value.from,a.value.to))}return t(i.update({selection:E.create(r,s),userEvent:"select.search.matches"})),!0}},{key:"Alt-g",run:i=>{let t=ld(i,b0);if(!t){let e=[Sm.of(!0)];null==i.state.field(TF,!1)&&e.push(Ee.appendConfig.of([TF,hQ])),i.dispatch({effects:e}),t=ld(i,b0)}return t&&t.dom.querySelector("input").select(),!0}},{key:"Mod-d",run:({state:i,dispatch:t})=>{let{ranges:e}=i.selection;if(e.some(r=>r.from===r.to))return(({state:i,dispatch:t})=>{let{selection:e}=i,n=E.create(e.ranges.map(o=>i.wordAt(o.head)||E.cursor(o.head)),e.mainIndex);return!n.eq(e)&&(t(i.update({selection:n})),!0)})({state:i,dispatch:t});let n=i.sliceDoc(e[0].from,e[0].to);if(i.selection.ranges.some(r=>i.sliceDoc(r.from,r.to)!=n))return!1;let o=function xQ(i,t){let{main:e,ranges:n}=i.selection,o=i.wordAt(e.head),r=o&&o.from==e.from&&o.to==e.to;for(let s=!1,a=new ol(i.doc,t,n[n.length-1].to);;){if(a.next(),!a.done){if(s&&n.some(l=>l.from==a.value.from))continue;if(r){let l=i.wordAt(a.value.from);if(!l||l.from!=a.value.from||l.to!=a.value.to)continue}return a.value}if(s)return null;a=new ol(i.doc,t,0,Math.max(0,n[n.length-1].from-1)),s=!0}}(i,n);return!!o&&(t(i.update({selection:i.selection.addRange(E.range(o.from,o.to),!1),effects:ve.scrollIntoView(o.to)})),!0)},preventDefault:!0}];class FQ{constructor(t){this.view=t;let e=this.query=t.state.field(_o).query.spec;function n(o,r,s){return Ze("button",{class:"cm-button",name:o,onclick:r,type:"button"},s)}this.commit=this.commit.bind(this),this.searchField=Ze("input",{value:e.search,placeholder:Qi(t,"Find"),"aria-label":Qi(t,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Ze("input",{value:e.replace,placeholder:Qi(t,"Replace"),"aria-label":Qi(t,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Ze("input",{type:"checkbox",name:"case",form:"",checked:e.caseSensitive,onchange:this.commit}),this.reField=Ze("input",{type:"checkbox",name:"re",form:"",checked:e.regexp,onchange:this.commit}),this.wordField=Ze("input",{type:"checkbox",name:"word",form:"",checked:e.wholeWord,onchange:this.commit}),this.dom=Ze("div",{onkeydown:o=>this.keydown(o),class:"cm-search"},[this.searchField,n("next",()=>Am(t),[Qi(t,"next")]),n("prev",()=>Tm(t),[Qi(t,"previous")]),n("select",()=>TQ(t),[Qi(t,"all")]),Ze("label",null,[this.caseField,Qi(t,"match case")]),Ze("label",null,[this.reField,Qi(t,"regexp")]),Ze("label",null,[this.wordField,Qi(t,"by word")]),...t.state.readOnly?[]:[Ze("br"),this.replaceField,n("replace",()=>PF(t),[Qi(t,"replace")]),n("replaceAll",()=>OQ(t),[Qi(t,"replace all")])],Ze("button",{name:"close",onclick:()=>VF(t),"aria-label":Qi(t,"close"),type:"button"},["\xd7"])])}commit(){let t=new RF({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});t.eq(this.query)||(this.query=t,this.view.dispatch({effects:wd.of(t)}))}keydown(t){!function VY(i,t,e){return yO(vO(i.state),t,i,e)}(this.view,t,"search-panel")?13==t.keyCode&&t.target==this.searchField?(t.preventDefault(),(t.shiftKey?Tm:Am)(this.view)):13==t.keyCode&&t.target==this.replaceField&&(t.preventDefault(),PF(this.view)):t.preventDefault()}update(t){for(let e of t.transactions)for(let n of e.effects)n.is(wd)&&!n.value.eq(this.query)&&this.setQuery(n.value)}setQuery(t){this.query=t,this.searchField.value=t.search,this.replaceField.value=t.replace,this.caseField.checked=t.caseSensitive,this.reField.checked=t.regexp,this.wordField.checked=t.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(ws).top}}function Qi(i,t){return i.state.phrase(t)}const Om=30,Rm=/[\s\.,:;?!]/;function w0(i,{from:t,to:e}){let n=i.state.doc.lineAt(t),o=i.state.doc.lineAt(e).to,r=Math.max(n.from,t-Om),s=Math.min(o,e+Om),a=i.state.sliceDoc(r,s);if(r!=n.from)for(let l=0;la.length-Om;l--)if(!Rm.test(a[l-1])&&Rm.test(a[l])){a=a.slice(0,l);break}return ve.announce.of(`${i.state.phrase("current match")}. ${a} ${i.state.phrase("on line")} ${n.number}.`)}const PQ=ve.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),C0=[_o,ps.low(AQ),PQ];class HF{constructor(t,e,n){this.state=t,this.pos=e,this.explicit=n,this.abortListeners=[]}tokenBefore(t){let e=Ht(this.state).resolveInner(this.pos,-1);for(;e&&t.indexOf(e.name)<0;)e=e.parent;return e?{from:e.from,to:this.pos,text:this.state.sliceDoc(e.from,this.pos),type:e.type}:null}matchBefore(t){let e=this.state.doc.lineAt(this.pos),n=Math.max(e.from,this.pos-250),o=e.text.slice(n-e.from,this.pos-e.from),r=o.search($F(t,!1));return r<0?null:{from:n+r,to:this.pos,text:o.slice(r)}}get aborted(){return null==this.abortListeners}addEventListener(t,e){"abort"==t&&this.abortListeners&&this.abortListeners.push(e)}}function zF(i){let t=Object.keys(i).join(""),e=/\w/.test(t);return e&&(t=t.replace(/\w/g,"")),`[${e?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}class jF{constructor(t,e,n,o){this.completion=t,this.source=e,this.match=n,this.score=o}}function Tr(i){return i.selection.main.from}function $F(i,t){var e;let{source:n}=i,o=t&&"^"!=n[0],r="$"!=n[n.length-1];return o||r?new RegExp(`${o?"^":""}(?:${n})${r?"$":""}`,null!==(e=i.flags)&&void 0!==e?e:i.ignoreCase?"i":""):i}const UF=Bo.define(),WF=new WeakMap;function VQ(i){if(!Array.isArray(i))return i;let t=WF.get(i);return t||WF.set(i,t=function LQ(i){let t=i.map(o=>"string"==typeof o?{label:o}:o),[e,n]=t.every(o=>/^\w+$/.test(o.label))?[/\w*$/,/\w+$/]:function NQ(i){let t=Object.create(null),e=Object.create(null);for(let{label:o}of i){t[o[0]]=!0;for(let r=1;r{let r=o.matchBefore(n);return r||o.explicit?{from:r?r.from:o.pos,options:t,validFor:e}:null}}(i)),t}const k0=Ee.define(),kd=Ee.define();class HQ{constructor(t){this.pattern=t,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let e=0;e=48&&w<=57||w>=97&&w<=122?2:w>=65&&w<=90?1:0:(M=Pv(w))!=M.toLowerCase()?1:M!=M.toUpperCase()?2:0;(!v||1==F&&g||0==y&&0!=F)&&(e[u]==w||n[u]==w&&(h=!0)?s[u++]=v:s.length&&(b=!1)),y=F,v+=_n(w)}return u==l&&0==s[0]&&b?this.result((h?-200:0)-100,s,t):f==l&&0==m?this.ret(-200-t.length+(p==t.length?0:-100),[0,p]):a>-1?this.ret(-700-t.length,[a,a+this.pattern.length]):f==l?this.ret(-900-t.length,[m,p]):u==l?this.result((h?-200:0)-100-700+(b?0:-1100),s,t):2!=e.length&&this.result((o[0]?-700:0)-200-1100,o,t)}result(t,e,n){let o=[],r=0;for(let s of e){let a=s+(this.astral?_n(qt(n,s)):1);r&&o[r-1]==s?o[r-1]=a:(o[r++]=s,o[r++]=a)}return this.ret(t-n.length,o)}}const ui=H.define({combine:i=>Vn(i,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:zQ,compareCompletions:(t,e)=>t.label.localeCompare(e.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(t,e)=>t&&e,closeOnBlur:(t,e)=>t&&e,icons:(t,e)=>t&&e,tooltipClass:(t,e)=>n=>GF(t(n),e(n)),optionClass:(t,e)=>n=>GF(t(n),e(n)),addToOptions:(t,e)=>t.concat(e)})});function GF(i,t){return i?t?i+" "+t:i:t}function zQ(i,t,e,n,o,r){let d,u,s=i.textDirection==ut.RTL,a=s,l=!1,c="top",h=t.left-o.left,f=o.right-t.right,m=n.right-n.left,p=n.bottom-n.top;if(a&&h=p||v>t.top?d=e.bottom-t.top:(c="bottom",d=t.bottom-e.top)}return{style:`${c}: ${d/((t.bottom-t.top)/r.offsetHeight)}px; max-width: ${u/((t.right-t.left)/r.offsetWidth)}px`,class:"cm-completionInfo-"+(l?s?"left-narrow":"right-narrow":a?"left":"right")}}function D0(i,t,e){if(i<=e)return{from:0,to:i};if(t<0&&(t=0),t<=i>>1){let o=Math.floor(t/e);return{from:o*e,to:(o+1)*e}}let n=Math.floor((i-t)/e);return{from:i-(n+1)*e,to:i-n*e}}class $Q{constructor(t,e,n){this.view=t,this.stateField=e,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:l=>this.placeInfo(l),key:this},this.space=null,this.currentClass="";let o=t.state.field(e),{options:r,selected:s}=o.open,a=t.state.facet(ui);this.optionContent=function jQ(i){let t=i.addToOptions.slice();return i.icons&&t.push({render(e){let n=document.createElement("div");return n.classList.add("cm-completionIcon"),e.type&&n.classList.add(...e.type.split(/\s+/g).map(o=>"cm-completionIcon-"+o)),n.setAttribute("aria-hidden","true"),n},position:20}),t.push({render(e,n,o){let r=document.createElement("span");r.className="cm-completionLabel";let s=e.displayLabel||e.label,a=0;for(let l=0;la&&r.appendChild(document.createTextNode(s.slice(a,c)));let u=r.appendChild(document.createElement("span"));u.appendChild(document.createTextNode(s.slice(c,d))),u.className="cm-completionMatchedText",a=d}return ae.position-n.position).map(e=>e.render)}(a),this.optionClass=a.optionClass,this.tooltipClass=a.tooltipClass,this.range=D0(r.length,s,a.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(t.state),this.dom.addEventListener("mousedown",l=>{let{options:c}=t.state.field(e).open;for(let u,d=l.target;d&&d!=this.dom;d=d.parentNode)if("LI"==d.nodeName&&(u=/-(\d+)$/.exec(d.id))&&+u[1]{let c=t.state.field(this.stateField,!1);c&&c.tooltip&&t.state.facet(ui).closeOnBlur&&l.relatedTarget!=t.contentDOM&&t.dispatch({effects:kd.of(null)})}),this.showOptions(r,o.id)}mount(){this.updateSel()}showOptions(t,e){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t,e,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(t){var e;let n=t.state.field(this.stateField),o=t.startState.field(this.stateField);if(this.updateTooltipClass(t.state),n!=o){let{options:r,selected:s,disabled:a}=n.open;(!o.open||o.open.options!=r)&&(this.range=D0(r.length,s,t.state.facet(ui).maxRenderedOptions),this.showOptions(r,n.id)),this.updateSel(),a!=(null===(e=o.open)||void 0===e?void 0:e.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!a)}}updateTooltipClass(t){let e=this.tooltipClass(t);if(e!=this.currentClass){for(let n of this.currentClass.split(" "))n&&this.dom.classList.remove(n);for(let n of e.split(" "))n&&this.dom.classList.add(n);this.currentClass=e}}positioned(t){this.space=t,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let t=this.view.state.field(this.stateField),e=t.open;if((e.selected>-1&&e.selected=this.range.to)&&(this.range=D0(e.options.length,e.selected,this.view.state.facet(ui).maxRenderedOptions),this.showOptions(e.options,t.id)),this.updateSelectedOption(e.selected)){this.destroyInfo();let{completion:n}=e.options[e.selected],{info:o}=n;if(!o)return;let r="string"==typeof o?document.createTextNode(o):o(n);if(!r)return;"then"in r?r.then(s=>{s&&this.view.state.field(this.stateField,!1)==t&&this.addInfoPane(s,n)}).catch(s=>Hn(this.view.state,s,"completion info")):this.addInfoPane(r,n)}}addInfoPane(t,e){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",null!=t.nodeType)n.appendChild(t),this.infoDestroy=null;else{let{dom:o,destroy:r}=t;n.appendChild(o),this.infoDestroy=r||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(t){let e=null;for(let n=this.list.firstChild,o=this.range.from;n;n=n.nextSibling,o++)"LI"==n.nodeName&&n.id?o==t?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),e=n):n.hasAttribute("aria-selected")&&n.removeAttribute("aria-selected"):o--;return e&&function WQ(i,t){let e=i.getBoundingClientRect(),n=t.getBoundingClientRect(),o=e.height/i.offsetHeight;n.tope.bottom&&(i.scrollTop+=(n.bottom-e.bottom)/o)}(this.list,e),e}measureInfo(){let t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;let e=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),o=t.getBoundingClientRect(),r=this.space;if(!r){let s=this.dom.ownerDocument.defaultView||window;r={left:0,top:0,right:s.innerWidth,bottom:s.innerHeight}}return o.top>Math.min(r.bottom,e.bottom)-10||o.bottomn.from||0==n.from)&&(r=h,"string"!=typeof c&&c.header?o.appendChild(c.header(c)):o.appendChild(document.createElement("completion-section")).textContent=h)}const d=o.appendChild(document.createElement("li"));d.id=e+"-"+s,d.setAttribute("role","option");let u=this.optionClass(a);u&&(d.className=u);for(let h of this.optionContent){let f=h(a,this.view.state,l);f&&d.appendChild(f)}}return n.from&&o.classList.add("cm-completionListIncompleteTop"),n.tonew $Q(e,i,t)}function qF(i){return 100*(i.boost||0)+(i.apply?10:0)+(i.info?5:0)+(i.type?1:0)}class ll{constructor(t,e,n,o,r,s){this.options=t,this.attrs=e,this.tooltip=n,this.timestamp=o,this.selected=r,this.disabled=s}setSelected(t,e){return t==this.selected||t>=this.options.length?this:new ll(this.options,YF(e,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,e,n,o,r){let s=function GQ(i,t){let e=[],n=null,o=l=>{e.push(l);let{section:c}=l.completion;if(c){n||(n=[]);let d="string"==typeof c?c:c.name;n.some(u=>u.name==d)||n.push("string"==typeof c?{name:d}:c)}};for(let l of i)if(l.hasResult()){let c=l.result.getMatch;if(!1===l.result.filter)for(let d of l.result.options)o(new jF(d,l.source,c?c(d):[],1e9-e.length));else{let d=new HQ(t.sliceDoc(l.from,l.to));for(let u of l.result.options)if(d.match(u.label)){let h=u.displayLabel?c?c(u,d.matched):[]:d.matched;o(new jF(u,l.source,h,d.score+(u.boost||0)))}}}if(n){let l=Object.create(null),c=0,d=(u,h)=>{var f,m;return(null!==(f=u.rank)&&void 0!==f?f:1e9)-(null!==(m=h.rank)&&void 0!==m?m:1e9)||(u.named.score-c.score||a(c.completion,d.completion))){let c=l.completion;!s||s.label!=c.label||s.detail!=c.detail||null!=s.type&&null!=c.type&&s.type!=c.type||s.apply!=c.apply||s.boost!=c.boost?r.push(l):qF(l.completion)>qF(s)&&(r[r.length-1]=l),s=l.completion}return r}(t,e);if(!s.length)return o&&t.some(l=>1==l.state)?new ll(o.options,o.attrs,o.tooltip,o.timestamp,o.selected,!0):null;let a=e.facet(ui).selectOnOpen?0:-1;if(o&&o.selected!=a&&-1!=o.selected){let l=o.options[o.selected].completion;for(let c=0;cc.hasResult()?Math.min(l,c.from):l,1e8),create:ZQ,above:r.aboveCursor},o?o.timestamp:Date.now(),a,!1)}map(t){return new ll(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class Fm{constructor(t,e,n){this.active=t,this.id=e,this.open=n}static start(){return new Fm(XQ,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(t){let{state:e}=t,n=e.facet(ui),r=(n.override||e.languageDataAt("autocomplete",Tr(e)).map(VQ)).map(a=>(this.active.find(c=>c.source==a)||new Bi(a,this.active.some(c=>0!=c.state)?1:0)).update(t,n));r.length==this.active.length&&r.every((a,l)=>a==this.active[l])&&(r=this.active);let s=this.open;s&&t.docChanged&&(s=s.map(t.changes)),t.selection||r.some(a=>a.hasResult()&&t.changes.touchesRange(a.from,a.to))||!function qQ(i,t){if(i==t)return!0;for(let e=0,n=0;;){for(;e1==a.state)&&(s=null),!s&&r.every(a=>1!=a.state)&&r.some(a=>a.hasResult())&&(r=r.map(a=>a.hasResult()?new Bi(a.source,0):a));for(let a of t.effects)a.is(M0)&&(s=s&&s.setSelected(a.value,this.id));return r==this.active&&s==this.open?this:new Fm(r,this.id,s)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:YQ}}const YQ={"aria-autocomplete":"list"};function YF(i,t){let e={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":i};return t>-1&&(e["aria-activedescendant"]=i+"-"+t),e}const XQ=[];function S0(i){return i.isUserEvent("input.type")?"input":i.isUserEvent("delete.backward")?"delete":null}class Bi{constructor(t,e,n=-1){this.source=t,this.state=e,this.explicitPos=n}hasResult(){return!1}update(t,e){let n=S0(t),o=this;n?o=o.handleUserEvent(t,n,e):t.docChanged?o=o.handleChange(t):t.selection&&0!=o.state&&(o=new Bi(o.source,0));for(let r of t.effects)if(r.is(k0))o=new Bi(o.source,1,r.value?Tr(t.state):-1);else if(r.is(kd))o=new Bi(o.source,0);else if(r.is(XF))for(let s of r.value)s.source==o.source&&(o=s);return o}handleUserEvent(t,e,n){return"delete"!=e&&n.activateOnTyping?new Bi(this.source,1):this.map(t.changes)}handleChange(t){return t.changes.touchesRange(Tr(t.startState))?new Bi(this.source,0):this.map(t.changes)}map(t){return t.empty||this.explicitPos<0?this:new Bi(this.source,this.state,t.mapPos(this.explicitPos))}}class cl extends Bi{constructor(t,e,n,o,r){super(t,2,e),this.result=n,this.from=o,this.to=r}hasResult(){return!0}handleUserEvent(t,e,n){var o;let r=t.changes.mapPos(this.from),s=t.changes.mapPos(this.to,1),a=Tr(t.state);if((this.explicitPos<0?a<=r:as||"delete"==e&&Tr(t.startState)==this.from)return new Bi(this.source,"input"==e&&n.activateOnTyping?1:0);let c,l=this.explicitPos<0?-1:t.changes.mapPos(this.explicitPos);return function KQ(i,t,e,n){if(!i)return!1;let o=t.sliceDoc(e,n);return"function"==typeof i?i(o,e,n,t):$F(i,!0).test(o)}(this.result.validFor,t.state,r,s)?new cl(this.source,l,this.result,r,s):this.result.update&&(c=this.result.update(this.result,r,s,new HF(t.state,a,l>=0)))?new cl(this.source,l,c,c.from,null!==(o=c.to)&&void 0!==o?o:Tr(t.state)):new Bi(this.source,1,l)}handleChange(t){return t.changes.touchesRange(this.from,this.to)?new Bi(this.source,0):this.map(t.changes)}map(t){return t.empty?this:new cl(this.source,this.explicitPos<0?-1:t.mapPos(this.explicitPos),this.result,t.mapPos(this.from),t.mapPos(this.to,1))}}const XF=Ee.define({map:(i,t)=>i.map(e=>e.map(t))}),M0=Ee.define(),Kt=St.define({create:()=>Fm.start(),update:(i,t)=>i.update(t),provide:i=>[Jf.from(i,t=>t.tooltip),ve.contentAttributes.from(i,t=>t.attrs)]});function KF(i,t){const e=t.completion.apply||t.completion.label;let n=i.state.field(Kt).active.find(o=>o.source==t.source);return n instanceof cl&&("string"==typeof e?i.dispatch(Object.assign(Object.assign({},function BQ(i,t,e,n){let{main:o}=i.selection,r=e-o.from,s=n-o.from;return Object.assign(Object.assign({},i.changeByRange(a=>a!=o&&e!=n&&i.sliceDoc(a.from+r,a.from+s)!=i.sliceDoc(e,n)?{range:a}:{changes:{from:a.from+r,to:n==o.from?a.to:a.from+s,insert:t},range:E.cursor(a.from+r+t.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}(i.state,e,n.from,n.to)),{annotations:UF.of(t.completion)})):e(i,t.completion,n.from,n.to),!0)}const ZQ=UQ(Kt,KF);function Pm(i,t="option"){return e=>{let n=e.state.field(Kt,!1);if(!n||!n.open||n.open.disabled||Date.now()-n.open.timestamp-1?n.open.selected+o*(i?1:-1):i?0:s-1;return a<0?a="page"==t?0:s-1:a>=s&&(a="page"==t?s-1:0),e.dispatch({effects:M0.of(a)}),!0}}class tJ{constructor(t,e){this.active=t,this.context=e,this.time=Date.now(),this.updates=[],this.done=void 0}}const oJ=gt.fromClass(class{constructor(i){this.view=i,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let t of i.state.field(Kt).active)1==t.state&&this.startQuery(t)}update(i){let t=i.state.field(Kt);if(!i.selectionSet&&!i.docChanged&&i.startState.field(Kt)==t)return;let e=i.transactions.some(n=>(n.selection||n.docChanged)&&!S0(n));for(let n=0;n50&&Date.now()-o.time>1e3){for(let r of o.context.abortListeners)try{r()}catch(s){Hn(this.view.state,s)}o.context.abortListeners=null,this.running.splice(n--,1)}else o.updates.push(...i.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=t.active.some(n=>1==n.state&&!this.running.some(o=>o.active.source==n.source))?setTimeout(()=>this.startUpdate(),50):-1,0!=this.composing)for(let n of i.transactions)"input"==S0(n)?this.composing=2:2==this.composing&&n.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:i}=this.view,t=i.field(Kt);for(let e of t.active)1==e.state&&!this.running.some(n=>n.active.source==e.source)&&this.startQuery(e)}startQuery(i){let{state:t}=this.view,e=Tr(t),n=new HF(t,e,i.explicitPos==e),o=new tJ(i,n);this.running.push(o),Promise.resolve(i.source(n)).then(r=>{o.context.aborted||(o.done=r||null,this.scheduleAccept())},r=>{this.view.dispatch({effects:kd.of(null)}),Hn(this.view.state,r)})}scheduleAccept(){this.running.every(i=>void 0!==i.done)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(ui).updateSyncTime))}accept(){var i;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],e=this.view.state.facet(ui);for(let n=0;ns.source==o.active.source);if(r&&1==r.state)if(null==o.done){let s=new Bi(o.active.source,0);for(let a of o.updates)s=s.update(a,e);1!=s.state&&t.push(s)}else this.startQuery(r)}t.length&&this.view.dispatch({effects:XF.of(t)})}},{eventHandlers:{blur(i){let t=this.view.state.field(Kt,!1);if(t&&t.tooltip&&this.view.state.facet(ui).closeOnBlur){let e=t.open&&NO(this.view,t.open.tooltip);(!e||!e.dom.contains(i.relatedTarget))&&this.view.dispatch({effects:kd.of(null)})}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout(()=>this.view.dispatch({effects:k0.of(!1)}),20),this.composing=0}}}),ZF=ve.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25cb'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25cc'"}},".cm-completionIcon-variable":{"&:after":{content:"'\u{1d465}'"}},".cm-completionIcon-constant":{"&:after":{content:"'\u{1d436}'"}},".cm-completionIcon-type":{"&:after":{content:"'\u{1d461}'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222a'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25a1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\u{1f511}\ufe0e'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25a2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),Sd={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},ks=Ee.define({map:(i,t)=>t.mapPos(i,-1,Di.TrackAfter)??void 0}),I0=new class extends gs{};I0.startSide=1,I0.endSide=-1;const oP=St.define({create:()=>rt.empty,update(i,t){if(t.selection){let e=t.state.doc.lineAt(t.selection.main.head).from,n=t.startState.doc.lineAt(t.startState.selection.main.head).from;e!=t.changes.mapPos(n,-1)&&(i=rt.empty)}i=i.map(t.changes);for(let e of t.effects)e.is(ks)&&(i=i.update({add:[I0.range(e.value,e.value+1)]}));return i}}),O0="()[]{}<>";function rP(i){for(let t=0;t<8;t+=2)if(O0.charCodeAt(t)==i)return O0.charAt(t+1);return Pv(i<128?i:i+1)}function sP(i,t){return i.languageDataAt("closeBrackets",t)[0]||Sd}const vJ="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),yJ=ve.inputHandler.of((i,t,e,n)=>{if((vJ?i.composing:i.compositionStarted)||i.state.readOnly)return!1;let o=i.state.selection.main;if(n.length>2||2==n.length&&1==_n(qt(n,0))||t!=o.from||e!=o.to)return!1;let r=function wJ(i,t){let e=sP(i,i.selection.main.head),n=e.brackets||Sd.brackets;for(let o of n){let r=rP(qt(o,0));if(t==o)return r==o?SJ(i,o,n.indexOf(o+o+o)>-1,e):kJ(i,o,r,e.before||Sd.before);if(t==r&&aP(i,i.selection.main.from))return DJ(i,0,r)}return null}(i.state,n);return!!r&&(i.dispatch(r),!0)}),xJ=[{key:"Backspace",run:({state:i,dispatch:t})=>{if(i.readOnly)return!1;let n=sP(i,i.selection.main.head).brackets||Sd.brackets,o=null,r=i.changeByRange(s=>{if(s.empty){let a=function CJ(i,t){let e=i.sliceString(t-2,t);return _n(qt(e,0))==e.length?e:e.slice(1)}(i.doc,s.head);for(let l of n)if(l==a&&Nm(i.doc,s.head)==rP(qt(l,0)))return{changes:{from:s.head-l.length,to:s.head+l.length},range:E.cursor(s.head-l.length)}}return{range:o=s}});return o||t(i.update(r,{scrollIntoView:!0,userEvent:"delete.backward"})),!o}}];function aP(i,t){let e=!1;return i.field(oP).between(0,i.doc.length,n=>{n==t&&(e=!0)}),e}function Nm(i,t){let e=i.sliceString(t,t+2);return e.slice(0,_n(qt(e,0)))}function kJ(i,t,e,n){let o=null,r=i.changeByRange(s=>{if(!s.empty)return{changes:[{insert:t,from:s.from},{insert:e,from:s.to}],effects:ks.of(s.to+t.length),range:E.range(s.anchor+t.length,s.head+t.length)};let a=Nm(i.doc,s.head);return!a||/\s/.test(a)||n.indexOf(a)>-1?{changes:{insert:t+e,from:s.head},effects:ks.of(s.head+t.length),range:E.cursor(s.head+t.length)}:{range:o=s}});return o?null:i.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function DJ(i,t,e){let n=null,o=i.changeByRange(r=>r.empty&&Nm(i.doc,r.head)==e?{changes:{from:r.head,to:r.head+e.length,insert:e},range:E.cursor(r.head+e.length)}:n={range:r});return n?null:i.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function SJ(i,t,e,n){let o=n.stringPrefixes||Sd.stringPrefixes,r=null,s=i.changeByRange(a=>{if(!a.empty)return{changes:[{insert:t,from:a.from},{insert:t,from:a.to}],effects:ks.of(a.to+t.length),range:E.range(a.anchor+t.length,a.head+t.length)};let d,l=a.head,c=Nm(i.doc,l);if(c==t){if(lP(i,l))return{changes:{insert:t+t,from:l},effects:ks.of(l+t.length),range:E.cursor(l+t.length)};if(aP(i,l)){let h=e&&i.sliceDoc(l,l+3*t.length)==t+t+t?t+t+t:t;return{changes:{from:l,to:l+h.length,insert:h},range:E.cursor(l+h.length)}}}else{if(e&&i.sliceDoc(l-2*t.length,l)==t+t&&(d=cP(i,l-2*t.length,o))>-1&&lP(i,d))return{changes:{insert:t+t+t+t,from:l},effects:ks.of(l+t.length),range:E.cursor(l+t.length)};if(i.charCategorizer(l)(c)!=ot.Word&&cP(i,l,o)>-1&&!function MJ(i,t,e,n){let o=Ht(i).resolveInner(t,-1),r=n.reduce((s,a)=>Math.max(s,a.length),0);for(let s=0;s<5;s++){let a=i.sliceDoc(o.from,Math.min(o.to,o.from+e.length+r)),l=a.indexOf(e);if(!l||l>-1&&n.indexOf(a.slice(0,l))>-1){let d=o.firstChild;for(;d&&d.from==o.from&&d.to-d.from>e.length+l;){if(i.sliceDoc(d.to-e.length,d.to)==e)return!1;d=d.firstChild}return!0}let c=o.to==t&&o.parent;if(!c)break;o=c}return!1}(i,l,t,o))return{changes:{insert:t+t,from:l},effects:ks.of(l+t.length),range:E.cursor(l+t.length)}}return{range:r=a}});return r?null:i.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function lP(i,t){let e=Ht(i).resolveInner(t+1);return e.parent&&e.from==t}function cP(i,t,e){let n=i.charCategorizer(t);if(n(i.sliceDoc(t-1,t))!=ot.Word)return t;for(let o of e){let r=t-o.length;if(i.sliceDoc(r,t)==o&&n(i.sliceDoc(r-1,r))!=ot.Word)return r}return-1}function EJ(i={}){return[Kt,ui.of(i),oJ,AJ,ZF]}const dP=[{key:"Ctrl-Space",run:i=>!!i.state.field(Kt,!1)&&(i.dispatch({effects:k0.of(!0)}),!0)},{key:"Escape",run:i=>{let t=i.state.field(Kt,!1);return!(!t||!t.active.some(e=>0!=e.state)||(i.dispatch({effects:kd.of(null)}),0))}},{key:"ArrowDown",run:Pm(!0)},{key:"ArrowUp",run:Pm(!1)},{key:"PageDown",run:Pm(!0,"page")},{key:"PageUp",run:Pm(!1,"page")},{key:"Enter",run:i=>{let t=i.state.field(Kt,!1);return!(i.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestampi.facet(ui).defaultKeymap?[dP]:[]));class TJ{constructor(t,e,n){this.from=t,this.to=e,this.diagnostic=n}}class Ds{constructor(t,e,n){this.diagnostics=t,this.panel=e,this.selected=n}static init(t,e,n){let o=t,r=n.facet(F0).markerFilter;r&&(o=r(o));let s=Y.set(o.map(a=>a.from==a.to||a.from==a.to-1&&n.doc.lineAt(a.from).to==a.from?Y.widget({widget:new NJ(a),diagnostic:a}).range(a.from):Y.mark({attributes:{class:"cm-lintRange cm-lintRange-"+a.severity+(a.markClass?" "+a.markClass:"")},diagnostic:a}).range(a.from,a.to)),!0);return new Ds(s,e,ul(s))}}function ul(i,t=null,e=0){let n=null;return i.between(e,1e9,(o,r,{spec:s})=>{if(!t||s.diagnostic==t)return n=new TJ(o,r,s.diagnostic),!1}),n}function fP(i,t){return i.field(hi,!1)?t:t.concat(Ee.appendConfig.of(kP))}const Lm=Ee.define(),R0=Ee.define(),mP=Ee.define(),hi=St.define({create:()=>new Ds(Y.none,null,null),update(i,t){if(t.docChanged){let e=i.diagnostics.map(t.changes),n=null;if(i.selected){let o=t.changes.mapPos(i.selected.from,1);n=ul(e,i.selected.diagnostic,o)||ul(e,null,o)}i=new Ds(e,i.panel,n)}for(let e of t.effects)e.is(Lm)?i=Ds.init(e.value,i.panel,t.state):e.is(R0)?i=new Ds(i.diagnostics,e.value?Bm.open:null,i.selected):e.is(mP)&&(i=new Ds(i.diagnostics,i.panel,e.value));return i},provide:i=>[cd.from(i,t=>t.panel),ve.decorations.from(i,t=>t.diagnostics)]}),IJ=Y.mark({class:"cm-lintRange cm-lintRange-active"});function OJ(i,t,e){let{diagnostics:n}=i.state.field(hi),o=[],r=2e8,s=0;n.between(t-(e<0?1:0),t+(e>0?1:0),(l,c,{spec:d})=>{t>=l&&t<=c&&(l==c||(t>l||e>0)&&(t({dom:pP(i,o)})}:null}function pP(i,t){return Ze("ul",{class:"cm-tooltip-lint"},t.map(e=>vP(i,e,!1)))}const gP=i=>{let t=i.state.field(hi,!1);return!(!t||!t.panel||(i.dispatch({effects:R0.of(!1)}),0))},PJ=[{key:"Mod-Shift-m",run:i=>{let t=i.state.field(hi,!1);(!t||!t.panel)&&i.dispatch({effects:fP(i.state,[R0.of(!0)])});let e=ld(i,Bm.open);return e&&e.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:i=>{let t=i.state.field(hi,!1);if(!t)return!1;let e=i.state.selection.main,n=t.diagnostics.iter(e.to+1);return!(!n.value&&(n=t.diagnostics.iter(0),!n.value||n.from==e.from&&n.to==e.to)||(i.dispatch({selection:{anchor:n.from,head:n.to},scrollIntoView:!0}),0))}}],F0=H.define({combine:i=>Object.assign({sources:i.map(t=>t.source)},Vn(i.map(t=>t.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(t,e)=>t?e?n=>t(n)||e(n):t:e}))});function bP(i){let t=[];if(i)e:for(let{name:e}of i){for(let n=0;nr.toLowerCase()==o.toLowerCase())){t.push(o);continue e}}t.push("")}return t}function vP(i,t,e){var n;let o=e?bP(t.actions):[];return Ze("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},Ze("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage():t.message),null===(n=t.actions)||void 0===n?void 0:n.map((r,s)=>{let a=!1,l=h=>{if(h.preventDefault(),a)return;a=!0;let f=ul(i.state.field(hi).diagnostics,t);f&&r.apply(i,f.from,f.to)},{name:c}=r,d=o[s]?c.indexOf(o[s]):-1,u=d<0?c:[c.slice(0,d),Ze("u",c.slice(d,d+1)),c.slice(d+1)];return Ze("button",{type:"button",class:"cm-diagnosticAction",onclick:l,onmousedown:l,"aria-label":` Action: ${c}${d<0?"":` (access key "${o[s]})"`}.`},u)}),t.source&&Ze("div",{class:"cm-diagnosticSource"},t.source))}class NJ extends jo{constructor(t){super(),this.diagnostic=t}eq(t){return t.diagnostic==this.diagnostic}toDOM(){return Ze("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class yP{constructor(t,e){this.diagnostic=e,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=vP(t,e,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class Bm{constructor(t){this.view=t,this.items=[],this.list=Ze("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:o=>{if(27==o.keyCode)gP(this.view),this.view.focus();else if(38==o.keyCode||33==o.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==o.keyCode||34==o.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==o.keyCode)this.moveSelection(0);else if(35==o.keyCode)this.moveSelection(this.items.length-1);else if(13==o.keyCode)this.view.focus();else{if(!(o.keyCode>=65&&o.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:r}=this.items[this.selectedIndex],s=bP(r.actions);for(let a=0;a{for(let r=0;rgP(this.view)},"\xd7")),this.update()}get selectedIndex(){let t=this.view.state.field(hi).selected;if(!t)return-1;for(let e=0;e{let d,c=-1;for(let u=n;un&&(this.items.splice(n,c-n),o=!0)),e&&d.diagnostic==e.diagnostic?d.dom.hasAttribute("aria-selected")||(d.dom.setAttribute("aria-selected","true"),r=d):d.dom.hasAttribute("aria-selected")&&d.dom.removeAttribute("aria-selected"),n++});n({sel:r.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:s,panel:a})=>{let l=a.height/this.list.offsetHeight;s.topa.bottom&&(this.list.scrollTop+=(s.bottom-a.bottom)/l)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),o&&this.sync()}sync(){let t=this.list.firstChild;function e(){let n=t;t=n.nextSibling,n.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;t!=n.dom;)e();t=n.dom.nextSibling}else this.list.insertBefore(n.dom,t);for(;t;)e()}moveSelection(t){if(this.selectedIndex<0)return;let n=ul(this.view.state.field(hi).diagnostics,this.items[t].diagnostic);n&&this.view.dispatch({selection:{anchor:n.from,head:n.to},scrollIntoView:!0,effects:mP.of(n)})}static open(t){return new Bm(t)}}function Hm(i){return function Vm(i,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(i)}')`}(``,'width="6" height="3"')}const LJ=ve.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:Hm("#d11")},".cm-lintRange-warning":{backgroundImage:Hm("orange")},".cm-lintRange-info":{backgroundImage:Hm("#999")},".cm-lintRange-hint":{backgroundImage:Hm("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),kP=[hi,ve.decorations.compute([hi],i=>{let{selected:t,panel:e}=i.field(hi);return t&&e&&t.from!=t.to?Y.set([IJ.range(t.from,t.to)]):Y.none}),kX(OJ,{hideOn:function hP(i,t){let e=i.startState.doc.lineAt(t.pos);return!(!i.effects.some(n=>n.is(Lm))&&!i.changes.touchesRange(e.from,e.to))}}),LJ],UJ=(()=>[OX(),FX,tX(),dZ(),OK(),WY(),[sd,XY],qi.allowMultipleSelections.of(!0),qi.transactionFilter.of(i=>{if(!i.docChanged||!i.isUserEvent("input.type")&&!i.isUserEvent("input.complete"))return i;let t=i.startState.languageDataAt("indentOnInput",i.startState.selection.main.head);if(!t.length)return i;let e=i.newDoc,{head:n}=i.newSelection.main,o=e.lineAt(n);if(n>o.from+200)return i;let r=e.sliceString(o.from,n);if(!t.some(c=>c.test(r)))return i;let{state:s}=i,a=-1,l=[];for(let{head:c}of s.selection.ranges){let d=s.doc.lineAt(c);if(d.from==a)continue;a=d.from;let u=hm(s,d.from);if(null==u)continue;let h=/^\s*/.exec(d.text)[0],f=el(s,u);h!=f&&l.push({from:d.from,to:d.from+h.length,insert:f})}return l.length?[i,{changes:l,sequential:!0}]:i}),FK(LK,{fallback:!0}),$K(),[yJ,oP],EJ(),mX(),_X(),cX,mQ(),Yf.of([...xJ,...cQ,...RQ,...vZ,...EK,...dP,...PJ])])();class jm{constructor(t,e,n,o,r,s,a,l,c,d=0,u){this.p=t,this.stack=e,this.state=n,this.reducePos=o,this.pos=r,this.score=s,this.buffer=a,this.bufferBase=l,this.curContext=c,this.lookAhead=d,this.parent=u}toString(){return`[${this.stack.filter((t,e)=>e%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,e,n=0){let o=t.parser.context;return new jm(t,[],e,n,n,0,[],0,o?new DP(o,o.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var e;let n=t>>19,o=65535&t,{parser:r}=this.p,s=r.dynamicPrecedence(o);if(s&&(this.score+=s),0==n)return this.pushState(r.getGoto(this.state,o,!0),this.reducePos),o=2e3&&(null===(e=this.p.parser.nodeSet.types[o])||void 0===e||!e.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSizea;)this.stack.pop();this.reduceContext(o,l)}storeNode(t,e,n,o=4,r=!1){if(0==t&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==s.buffer[a-4]&&s.buffer[a-1]>-1){if(e==n)return;if(s.buffer[a-2]>=e)return void(s.buffer[a-2]=n)}}if(r&&this.pos!=n){let s=this.buffer.length;if(s>0&&0!=this.buffer[s-4])for(;s>0&&this.buffer[s-2]>n;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,o>4&&(o-=4);this.buffer[s]=t,this.buffer[s+1]=e,this.buffer[s+2]=n,this.buffer[s+3]=o}else this.buffer.push(t,e,n,o)}shift(t,e,n,o){if(131072&t)this.pushState(65535&t,this.pos);else if(262144&t)this.pos=o,this.shiftContext(e,n),e<=this.p.parser.maxNode&&this.buffer.push(e,n,o,4);else{let r=t,{parser:s}=this.p;(o>this.pos||e<=s.maxNode)&&(this.pos=o,s.stateFlag(r,1)||(this.reducePos=o)),this.pushState(r,n),this.shiftContext(e,n),e<=s.maxNode&&this.buffer.push(e,n,o,4)}}apply(t,e,n,o){65536&t?this.reduce(t):this.shift(t,e,n,o)}useNode(t,e){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=t)&&(this.p.reused.push(t),n++);let o=this.pos;this.reducePos=this.pos=o+t.length,this.pushState(e,o),this.buffer.push(n,o,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,e=t.buffer.length;for(;e>0&&t.buffer[e-2]>t.reducePos;)e-=4;let n=t.buffer.slice(e),o=t.bufferBase+e;for(;t&&o==t.bufferBase;)t=t.parent;return new jm(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,o,this.curContext,this.lookAhead,t)}recoverByDelete(t,e){let n=t<=this.p.parser.maxNode;n&&this.storeNode(t,this.pos,e,4),this.storeNode(0,this.pos,e,n?8:4),this.pos=this.reducePos=e,this.score-=190}canShift(t){for(let e=new WJ(this);;){let n=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,t);if(0==n)return!1;if(!(65536&n))return!0;e.reduce(n)}}recoverByInsert(t){if(this.stack.length>=300)return[];let e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){let o=[];for(let s,r=0;r1&l&&a==s)||o.push(e[r],s)}e=o}let n=[];for(let o=0;o>19);if(r<0||t.getGoto(this.stack[r],65535&e,!1)<0){let s=this.findForcedReduction();if(null==s)return!1;e=s}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(e),!0}findForcedReduction(){let{parser:t}=this.p,e=[],n=(o,r)=>{if(!e.includes(o))return e.push(o),t.allActions(o,s=>{if(!(393216&s))if(65536&s){let a=(s>>19)-r;if(a>1){let l=65535&s,c=this.stack.length-3*a;if(c>=0&&t.getGoto(this.stack[c],l,!1)>=0)return a<<19|65536|l}}else{let a=n(s,r+1);if(null!=a)return a}})};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:t}=this.p;return 65535==t.data[t.stateSlot(this.state,1)]&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let e=0;ethis.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class DP{constructor(t,e){this.tracker=t,this.context=e,this.hash=t.strict?t.hash(e):0}}class WJ{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let e=65535&t,n=t>>19;0==n?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(n-1);let o=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=o}}class $m{constructor(t,e,n){this.stack=t,this.pos=e,this.index=n,this.buffer=t.buffer,0==this.index&&this.maybeNext()}static create(t,e=t.bufferBase+t.buffer.length){return new $m(t,e,e-t.bufferBase)}maybeNext(){let t=this.stack.parent;null!=t&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new $m(this.stack,this.pos,this.index)}}function Md(i,t=Uint16Array){if("string"!=typeof i)return i;let e=null;for(let n=0,o=0;n=92&&s--,s>=34&&s--;let l=s-32;if(l>=46&&(l-=46,a=!0),r+=l,a)break;r*=46}e?e[o++]=r:e=new t(r)}return e}class Um{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const SP=new Um;class GJ{constructor(t,e){this.input=t,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=SP,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}resolveOffset(t,e){let n=this.range,o=this.rangeIndex,r=this.pos+t;for(;rn.to:r>=n.to;){if(o==this.ranges.length-1)return null;let s=this.ranges[++o];r+=s.from-n.to,n=s}return r}clipPos(t){if(t>=this.range.from&&tt)return Math.max(t,e.from);return this.end}peek(t){let n,o,e=this.chunkOff+t;if(e>=0&&e=this.chunk2Pos&&na.to&&(this.chunk2=this.chunk2.slice(0,a.to-n)),o=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),o}acceptToken(t,e=0){let n=e?this.resolveOffset(e,-1):this.pos;if(null==n||n=this.chunk2Pos&&this.posthis.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.next=this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?-1:this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,e){if(e?(this.token=e,e.start=t,e.lookAhead=t+1,e.value=e.extended=-1):this.token=SP,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,e-this.chunkPos);if(t>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,e-this.chunk2Pos);if(t>=this.range.from&&e<=this.range.to)return this.input.read(t,e);let n="";for(let o of this.ranges){if(o.from>=e)break;o.to>t&&(n+=this.input.read(Math.max(o.from,t),Math.min(o.to,e)))}return n}}class hl{constructor(t,e){this.data=t,this.id=e}token(t,e){let{parser:n}=e.p;!function MP(i,t,e,n,o,r){let s=0,a=1<0){let m=i[f];if(l.allows(m)&&(-1==t.token.value||t.token.value==m||YJ(m,t.token.value,o,r))){t.acceptToken(m);break}}let d=t.next,u=0,h=i[s+2];if(!(t.next<0&&h>u&&65535==i[c+3*h-3]&&65535==i[c+3*h-3])){for(;u>1,m=c+f+(f<<1);if(d=(i[m+1]||65536))){s=i[m+2],t.advance();continue e}u=f+1}}break}s=i[c+3*h-1]}}(this.data,t,e,this.id,n.data,n.tokenPrecTable)}}function EP(i,t,e){for(let o,n=t;65535!=(o=i[n]);n++)if(o==e)return n-t;return-1}function YJ(i,t,e,n){let o=EP(e,n,t);return o<0||EP(e,n,i)t)&&!n.type.isError)return e<0?Math.max(0,Math.min(n.to-1,t-25)):Math.min(i.length,Math.max(n.from+1,t+25));if(e<0?n.prevSibling():n.nextSibling())break;if(!n.parent())return e<0?0:i.length}}class XJ{constructor(t,e){this.fragments=t,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?AP(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?AP(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(tt)return this.nextStart=s,null;if(r instanceof ft){if(s==t){if(s=Math.max(this.safeFrom,t)&&(this.trees.push(r),this.start.push(s),this.index.push(0))}else this.index[e]++,this.nextStart=s+r.length}}}class KJ{constructor(t,e){this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(n=>new Um)}getActions(t){let e=0,n=null,{parser:o}=t.p,{tokenizers:r}=o,s=o.stateSlot(t.state,3),a=t.curContext?t.curContext.hash:0,l=0;for(let c=0;cu.end+25&&(l=Math.max(u.lookAhead,l)),0!=u.value)){let h=e;if(u.extended>-1&&(e=this.addActions(t,u.extended,u.end,e)),e=this.addActions(t,u.value,u.end,e),!d.extend&&(n=u,e>h))break}}for(;this.actions.length>e;)this.actions.pop();return l&&t.setLookAhead(l),!n&&t.pos==this.stream.end&&(n=new Um,n.value=t.p.parser.eofTerm,n.start=n.end=t.pos,e=this.addActions(t,n.value,n.end,e)),this.mainToken=n,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let e=new Um,{pos:n,p:o}=t;return e.start=n,e.end=Math.min(n+1,o.stream.end),e.value=n==o.stream.end?o.parser.eofTerm:0,e}updateCachedToken(t,e,n){let o=this.stream.clipPos(n.pos);if(e.token(this.stream.reset(o,t),n),t.value>-1){let{parser:r}=n.p;for(let s=0;s=0&&n.p.parser.dialect.allows(a>>1)){1&a?t.extended=a>>1:t.value=a>>1;break}}}else t.value=0,t.end=this.stream.clipPos(o+1)}putAction(t,e,n,o){for(let r=0;r4*t.bufferLength?new XJ(n,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let o,r,t=this.stacks,e=this.minStackPos,n=this.stacks=[];if(this.bigReductionCount>300&&1==t.length){let[s]=t;for(;s.forceReduce()&&s.stack.length&&s.stack[s.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;se)n.push(a);else{if(this.advanceStack(a,n,t))continue;{o||(o=[],r=[]),o.push(a);let l=this.tokens.getMainToken(a);r.push(l.value,l.end)}}break}}if(!n.length){let s=o&&function JJ(i){let t=null;for(let e of i){let n=e.p.stoppedAt;(e.pos==e.p.stream.end||null!=n&&e.pos>n)&&e.p.parser.stateFlag(e.state,2)&&(!t||t.scorethis.stoppedAt?o[0]:this.runRecovery(o,r,n);if(s)return Ji&&console.log("Force-finish "+this.stackID(s)),this.stackToTree(s.forceAll())}if(this.recovering){let s=1==this.recovering?1:3*this.recovering;if(n.length>s)for(n.sort((a,l)=>l.score-a.score);n.length>s;)n.pop();n.some(a=>a.reducePos>e)&&this.recovering--}else if(n.length>1){e:for(let s=0;s500&&c.buffer.length>500){if(!((a.score-c.score||a.buffer.length-c.buffer.length)>0)){n.splice(s--,1);continue e}n.splice(l--,1)}}}n.length>12&&n.splice(12,n.length-12)}this.minStackPos=n[0].pos;for(let s=1;s ":"";if(null!=this.stoppedAt&&o>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let c=t.curContext&&t.curContext.tracker.strict,d=c?t.curContext.hash:0;for(let u=this.fragments.nodeAt(o);u;){let h=this.parser.nodeSet.types[u.type.id]==u.type?r.getGoto(t.state,u.type.id):-1;if(h>-1&&u.length&&(!c||(u.prop(we.contextHash)||0)==d))return t.useNode(u,h),Ji&&console.log(s+this.stackID(t)+` (via reuse of ${r.getName(u.type.id)})`),!0;if(!(u instanceof ft)||0==u.children.length||u.positions[0]>0)break;let f=u.children[0];if(!(f instanceof ft&&0==u.positions[0]))break;u=f}}let a=r.stateSlot(t.state,4);if(a>0)return t.reduce(a),Ji&&console.log(s+this.stackID(t)+` (via always-reduce ${r.getName(65535&a)})`),!0;if(t.stack.length>=9e3)for(;t.stack.length>6e3&&t.forceReduce(););let l=this.tokens.getActions(t);for(let c=0;co?e.push(m):n.push(m)}return!1}advanceFully(t,e){let n=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>n)return TP(t,e),!0}}runRecovery(t,e,n){let o=null,r=!1;for(let s=0;s ":"";if(a.deadEnd&&(r||(r=!0,a.restart(),Ji&&console.log(d+this.stackID(a)+" (restarted)"),this.advanceFully(a,n))))continue;let u=a.split(),h=d;for(let f=0;u.forceReduce()&&f<10&&(Ji&&console.log(h+this.stackID(u)+" (via force-reduce)"),!this.advanceFully(u,n));f++)Ji&&(h=this.stackID(u)+" -> ");for(let f of a.recoverByInsert(l))Ji&&console.log(d+this.stackID(f)+" (via recover-insert)"),this.advanceFully(f,n);this.stream.end>a.pos?(c==a.pos&&(c++,l=0),a.recoverByDelete(l,c),Ji&&console.log(d+this.stackID(a)+` (via recover-delete ${this.parser.getName(l)})`),TP(a,n)):(!o||o.scoret.topRules[a][1]),o=[];for(let a=0;a=0)r(d,l,a[c++]);else{let u=a[c+-d];for(let h=-d;h>0;h--)r(a[c++],l,u);c++}}}this.nodeSet=new im(e.map((a,l)=>Mi.define({name:l>=this.minRepeatTerm?void 0:a,id:l,props:o[l],top:n.indexOf(l)>-1,error:0==l,skipped:t.skippedNodes&&t.skippedNodes.indexOf(l)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=qO;let s=Md(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let a=0;a"number"==typeof a?new hl(s,a):a),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,e,n){let o=new ZJ(this,t,e,n);for(let r of this.wrappers)o=r(o,t,e,n);return o}getGoto(t,e,n=!1){let o=this.goto;if(e>=o[0])return-1;for(let r=o[e+1];;){let s=o[r++],a=1&s,l=o[r++];if(a&&n)return l;for(let c=r+(s>>1);r0}validAction(t,e){return!!this.allActions(t,n=>n==e||null)}allActions(t,e){let n=this.stateSlot(t,4),o=n?e(n):void 0;for(let r=this.stateSlot(t,1);null==o;r+=3){if(65535==this.data[r]){if(1!=this.data[r+1])break;r=Uo(this.data,r+2)}o=e(Uo(this.data,r+1))}return o}nextStates(t){let e=[];for(let n=this.stateSlot(t,1);;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])break;n=Uo(this.data,n+2)}if(!(1&this.data[n+2])){let o=this.data[n+1];e.some((r,s)=>1&s&&r==o)||e.push(this.data[n],o)}}return e}configure(t){let e=Object.assign(Object.create(Wm.prototype),this);if(t.props&&(e.nodeSet=this.nodeSet.extend(...t.props)),t.top){let n=this.topRules[t.top];if(!n)throw new RangeError(`Invalid top rule name ${t.top}`);e.top=n}return t.tokenizers&&(e.tokenizers=this.tokenizers.map(n=>{let o=t.tokenizers.find(r=>r.from==n);return o?o.to:n})),t.specializers&&(e.specializers=this.specializers.slice(),e.specializerSpecs=this.specializerSpecs.map((n,o)=>{let r=t.specializers.find(a=>a.from==n.external);if(!r)return n;let s=Object.assign(Object.assign({},n),{external:r.to});return e.specializers[o]=IP(s),s})),t.contextTracker&&(e.context=t.contextTracker),t.dialect&&(e.dialect=this.parseDialect(t.dialect)),null!=t.strict&&(e.strict=t.strict),t.wrap&&(e.wrappers=e.wrappers.concat(t.wrap)),null!=t.bufferLength&&(e.bufferLength=t.bufferLength),e}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let e=this.dynamicPrecedences;return null==e?0:e[t]||0}parseDialect(t){let e=Object.keys(this.dialects),n=e.map(()=>!1);if(t)for(let r of t.split(" ")){let s=e.indexOf(r);s>=0&&(n[s]=!0)}let o=null;for(let r=0;ri.external(e,n)<<1|t}return i.get}const eee=sR({String:P.string,Number:P.number,"True False":P.bool,PropertyName:P.propertyName,Null:P.null,",":P.separator,"[ ]":P.squareBracket,"{ }":P.brace}),tee=Wm.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"\u26a0 JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[eee],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),nee=um.define({name:"json",parser:tee.configure({props:[bR.add({Object:xR({except:/^\s*\}/}),Array:xR({except:/^\s*\]/})}),wR.add({"Object Array":function vK(i){let t=i.firstChild,e=i.lastChild;return t&&t.to{class i{get text(){return this._text}set text(e){this._text=e,null!=this.editor&&this.editor.dispatch({changes:{from:0,to:this.editor.state.doc.length,insert:e}})}ngAfterViewInit(){this.editor=new ve({doc:this.text,extensions:[UJ,new cK(nee),qi.readOnly.of(!0)],parent:this.codemirrorhost.nativeElement})}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275cmp=xe({type:i,selectors:[["app-editor"]],viewQuery:function(n,o){if(1&n&&ct(ree,5),2&n){let r;ae(r=le())&&(o.codemirrorhost=r.first)}},inputs:{text:"text"},outputs:{editor:"editor"},standalone:!0,features:[Pn],decls:2,vars:0,consts:[[1,"codemirrorhost"],["codemirrorhost",""]],template:function(n,o){1&n&&De(0,"div",0,1)},styles:[".cm-editor{height:100%}.cm-scroller{overflow:auto}.codemirrorhost{height:100%}\n"],encapsulation:2})}return i})(),cee=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({imports:[AA,Oe,AA,Oe]})}return i})();const dee=["*"],pee=new A("MAT_CARD_CONFIG");let B0=(()=>{class i{constructor(e){this.appearance=e?.appearance||"raised"}static#e=this.\u0275fac=function(n){return new(n||i)(_(pee,8))};static#t=this.\u0275cmp=xe({type:i,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(n,o){2&n&&be("mat-mdc-card-outlined","outlined"===o.appearance)("mdc-card--outlined","outlined"===o.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:dee,decls:1,vars:0,template:function(n,o){1&n&&(yt(),Z(0))},styles:['.mdc-card{display:flex;flex-direction:column;box-sizing:border-box}.mdc-card::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none;pointer-events:none}@media screen and (forced-colors: active){.mdc-card::after{border-color:CanvasText}}.mdc-card--outlined::after{border:none}.mdc-card__content{border-radius:inherit;height:100%}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__media--square::before{margin-top:100%}.mdc-card__media--16-9::before{margin-top:56.25%}.mdc-card__media-content{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}.mdc-card__primary-action{display:flex;flex-direction:column;box-sizing:border-box;position:relative;outline:none;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden}.mdc-card__primary-action:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__primary-action:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mdc-card__actions--full-bleed{padding:0}.mdc-card__action-buttons,.mdc-card__action-icons{display:flex;flex-direction:row;align-items:center;box-sizing:border-box}.mdc-card__action-icons{color:rgba(0, 0, 0, 0.6);flex-grow:1;justify-content:flex-end}.mdc-card__action-buttons+.mdc-card__action-icons{margin-left:16px;margin-right:0}[dir=rtl] .mdc-card__action-buttons+.mdc-card__action-icons,.mdc-card__action-buttons+.mdc-card__action-icons[dir=rtl]{margin-left:0;margin-right:16px}.mdc-card__action{display:inline-flex;flex-direction:row;align-items:center;box-sizing:border-box;justify-content:center;cursor:pointer;user-select:none}.mdc-card__action:focus{outline:none}.mdc-card__action--button{margin-left:0;margin-right:8px;padding:0 8px}[dir=rtl] .mdc-card__action--button,.mdc-card__action--button[dir=rtl]{margin-left:8px;margin-right:0}.mdc-card__action--button:last-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-card__action--button:last-child,.mdc-card__action--button:last-child[dir=rtl]{margin-left:0;margin-right:0}.mdc-card__actions--full-bleed .mdc-card__action--button{justify-content:space-between;width:100%;height:auto;max-height:none;margin:0;padding:8px 16px;text-align:left}[dir=rtl] .mdc-card__actions--full-bleed .mdc-card__action--button,.mdc-card__actions--full-bleed .mdc-card__action--button[dir=rtl]{text-align:right}.mdc-card__action--icon{margin:-6px 0;padding:12px}.mdc-card__action--icon:not(:disabled){color:rgba(0, 0, 0, 0.6)}.mat-mdc-card{border-radius:var(--mdc-elevated-card-container-shape);background-color:var(--mdc-elevated-card-container-color);border-width:0;border-style:solid;border-color:var(--mdc-elevated-card-container-color);box-shadow:var(--mdc-elevated-card-container-elevation);--mdc-elevated-card-container-shape:4px;--mdc-outlined-card-container-shape:4px;--mdc-outlined-card-outline-width:1px}.mat-mdc-card .mdc-card::after{border-radius:var(--mdc-elevated-card-container-shape)}.mat-mdc-card-outlined{border-width:var(--mdc-outlined-card-outline-width);border-style:solid;border-color:var(--mdc-outlined-card-outline-color);border-radius:var(--mdc-outlined-card-container-shape);background-color:var(--mdc-outlined-card-container-color);box-shadow:var(--mdc-outlined-card-container-elevation)}.mat-mdc-card-outlined .mdc-card::after{border-radius:var(--mdc-outlined-card-container-shape)}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font);line-height:var(--mat-card-title-text-line-height);font-size:var(--mat-card-title-text-size);letter-spacing:var(--mat-card-title-text-tracking);font-weight:var(--mat-card-title-text-weight)}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color);font-family:var(--mat-card-subtitle-text-font);line-height:var(--mat-card-subtitle-text-line-height);font-size:var(--mat-card-subtitle-text-size);letter-spacing:var(--mat-card-subtitle-text-tracking);font-weight:var(--mat-card-subtitle-text-weight)}.mat-mdc-card{position:relative}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0})}return i})(),V0=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275dir=O({type:i,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]})}return i})(),Gm=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({imports:[Oe,Fo,Oe]})}return i})();const RP=ls({passive:!0});let bee=(()=>{class i{constructor(e,n){this._platform=e,this._ngZone=n,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Cl;const n=Po(e),o=this._monitoredElements.get(n);if(o)return o.subject;const r=new ne,s="cdk-text-field-autofilled",a=l=>{"cdk-text-field-autofill-start"!==l.animationName||n.classList.contains(s)?"cdk-text-field-autofill-end"===l.animationName&&n.classList.contains(s)&&(n.classList.remove(s),this._ngZone.run(()=>r.next({target:l.target,isAutofilled:!1}))):(n.classList.add(s),this._ngZone.run(()=>r.next({target:l.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{n.addEventListener("animationstart",a,RP),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:r,unlisten:()=>{n.removeEventListener("animationstart",a,RP)}}),r}stopMonitoring(e){const n=Po(e),o=this._monitoredElements.get(n);o&&(o.unlisten(),o.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))}static#e=this.\u0275fac=function(n){return new(n||i)(C(dt),C(W))};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),vee=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({})}return i})(),FP=(()=>{class i{constructor(e,n){this._renderer=e,this._elementRef=n,this.onChange=o=>{},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)}static#e=this.\u0275fac=function(n){return new(n||i)(_(Zr),_(ee))};static#t=this.\u0275dir=O({type:i})}return i})(),Ms=(()=>{class i extends FP{static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=lt(i)))(o||i)}}();static#t=this.\u0275dir=O({type:i,features:[q]})}return i})();const wn=new A("NgValueAccessor"),xee={provide:wn,useExisting:ze(()=>Es),multi:!0},Cee=new A("CompositionEventMode");let Es=(()=>{class i extends FP{constructor(e,n,o){super(e,n),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function wee(){const i=sr()?sr().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static#e=this.\u0275fac=function(n){return new(n||i)(_(Zr),_(ee),_(Cee,8))};static#t=this.\u0275dir=O({type:i,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(n,o){1&n&&$("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},features:[Se([xee]),q]})}return i})();function Ir(i){return null==i||("string"==typeof i||Array.isArray(i))&&0===i.length}function NP(i){return null!=i&&"number"==typeof i.length}const Zt=new A("NgValidators"),Or=new A("NgAsyncValidators"),kee=/^(?=.{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 LP{static min(t){return function BP(i){return t=>{if(Ir(t.value)||Ir(i))return null;const e=parseFloat(t.value);return!isNaN(e)&&e{if(Ir(t.value)||Ir(i))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>i?{max:{max:i,actual:t.value}}:null}}(t)}static required(t){return function HP(i){return Ir(i.value)?{required:!0}:null}(t)}static requiredTrue(t){return function zP(i){return!0===i.value?null:{required:!0}}(t)}static email(t){return function jP(i){return Ir(i.value)||kee.test(i.value)?null:{email:!0}}(t)}static minLength(t){return function $P(i){return t=>Ir(t.value)||!NP(t.value)?null:t.value.lengthNP(t.value)&&t.value.length>i?{maxlength:{requiredLength:i,actualLength:t.value.length}}:null}(t)}static pattern(t){return function WP(i){if(!i)return qm;let t,e;return"string"==typeof i?(e="","^"!==i.charAt(0)&&(e+="^"),e+=i,"$"!==i.charAt(i.length-1)&&(e+="$"),t=new RegExp(e)):(e=i.toString(),t=i),n=>{if(Ir(n.value))return null;const o=n.value;return t.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}(t)}static nullValidator(t){return null}static compose(t){return ZP(t)}static composeAsync(t){return QP(t)}}function qm(i){return null}function GP(i){return null!=i}function qP(i){return ph(i)?zs(i):i}function YP(i){let t={};return i.forEach(e=>{t=null!=e?{...t,...e}:t}),0===Object.keys(t).length?null:t}function XP(i,t){return t.map(e=>e(i))}function KP(i){return i.map(t=>function Dee(i){return!i.validate}(t)?t:e=>t.validate(e))}function ZP(i){if(!i)return null;const t=i.filter(GP);return 0==t.length?null:function(e){return YP(XP(e,t))}}function H0(i){return null!=i?ZP(KP(i)):null}function QP(i){if(!i)return null;const t=i.filter(GP);return 0==t.length?null:function(e){return jA(XP(e,t).map(qP)).pipe(Bt(YP))}}function z0(i){return null!=i?QP(KP(i)):null}function JP(i,t){return null===i?[t]:Array.isArray(i)?[...i,t]:[i,t]}function e2(i){return i._rawValidators}function t2(i){return i._rawAsyncValidators}function j0(i){return i?Array.isArray(i)?i:[i]:[]}function Ym(i,t){return Array.isArray(i)?i.includes(t):i===t}function n2(i,t){const e=j0(t);return j0(i).forEach(o=>{Ym(e,o)||e.push(o)}),e}function o2(i,t){return j0(t).filter(e=>!Ym(i,e))}class r2{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(t){this._rawValidators=t||[],this._composedValidatorFn=H0(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=z0(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class Ai extends r2{get formDirective(){return null}get path(){return null}}class bo extends r2{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class s2{constructor(t){this._cd=t}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 As=(()=>{class i extends s2{constructor(e){super(e)}static#e=this.\u0275fac=function(n){return new(n||i)(_(bo,2))};static#t=this.\u0275dir=O({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){2&n&&be("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[q]})}return i})();const Ed="VALID",Km="INVALID",fl="PENDING",Ad="DISABLED";function W0(i){return(Zm(i)?i.validators:i)||null}function G0(i,t){return(Zm(t)?t.asyncValidators:i)||null}function Zm(i){return null!=i&&!Array.isArray(i)&&"object"==typeof i}class d2{constructor(t,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(t),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Ed}get invalid(){return this.status===Km}get pending(){return this.status==fl}get disabled(){return this.status===Ad}get enabled(){return this.status!==Ad}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(n2(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(n2(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(o2(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(o2(t,this._rawAsyncValidators))}hasValidator(t){return Ym(this._rawValidators,t)}hasAsyncValidator(t){return Ym(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=fl,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Ad,this.errors=null,this._forEachChild(n=>{n.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(n=>n(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Ed,this._forEachChild(n=>{n.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ed||this.status===fl)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ad:Ed}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=fl,this._hasOwnPendingAsyncValidator=!0;const e=qP(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){let e=t;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((n,o)=>n&&n._find(o),this)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new te,this.statusChanges=new te}_calculateStatus(){return this._allControlsDisabled()?Ad:this.errors?Km:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(fl)?fl:this._anyControlsHaveStatus(Km)?Km:Ed}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Zm(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function Tee(i){return Array.isArray(i)?H0(i):i||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function Iee(i){return Array.isArray(i)?z0(i):i||null}(this._rawAsyncValidators)}}class q0 extends d2{constructor(t,e,n){super(W0(e),G0(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){(function c2(i,t,e){i._forEachChild((n,o)=>{if(void 0===e[o])throw new D(1002,"")})})(this,0,t),Object.keys(t).forEach(n=>{(function l2(i,t,e){const n=i.controls;if(!(t?Object.keys(n):n).length)throw new D(1e3,"");if(!n[e])throw new D(1001,"")})(this,!0,n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(n=>{const o=this.controls[n];o&&o.patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,o)=>{n.reset(t?t[o]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,n)=>!!n._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[e,n]of Object.entries(this.controls))if(this.contains(e)&&t(n))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,n,o)=>((n.enabled||this.disabled)&&(e[o]=n.value),e))}_reduceChildren(t,e){let n=t;return this._forEachChild((o,r)=>{n=e(n,o,r)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}const ml=new A("CallSetDisabledState",{providedIn:"root",factory:()=>Qm}),Qm="always";function Td(i,t,e=Qm){Y0(i,t),t.valueAccessor.writeValue(i.value),(i.disabled||"always"===e)&&t.valueAccessor.setDisabledState?.(i.disabled),function Fee(i,t){t.valueAccessor.registerOnChange(e=>{i._pendingValue=e,i._pendingChange=!0,i._pendingDirty=!0,"change"===i.updateOn&&u2(i,t)})}(i,t),function Nee(i,t){const e=(n,o)=>{t.valueAccessor.writeValue(n),o&&t.viewToModelUpdate(n)};i.registerOnChange(e),t._registerOnDestroy(()=>{i._unregisterOnChange(e)})}(i,t),function Pee(i,t){t.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,"blur"===i.updateOn&&i._pendingChange&&u2(i,t),"submit"!==i.updateOn&&i.markAsTouched()})}(i,t),function Ree(i,t){if(t.valueAccessor.setDisabledState){const e=n=>{t.valueAccessor.setDisabledState(n)};i.registerOnDisabledChange(e),t._registerOnDestroy(()=>{i._unregisterOnDisabledChange(e)})}}(i,t)}function ep(i,t,e=!0){const n=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),ip(i,t),i&&(t._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function tp(i,t){i.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function Y0(i,t){const e=e2(i);null!==t.validator?i.setValidators(JP(e,t.validator)):"function"==typeof e&&i.setValidators([e]);const n=t2(i);null!==t.asyncValidator?i.setAsyncValidators(JP(n,t.asyncValidator)):"function"==typeof n&&i.setAsyncValidators([n]);const o=()=>i.updateValueAndValidity();tp(t._rawValidators,o),tp(t._rawAsyncValidators,o)}function ip(i,t){let e=!1;if(null!==i){if(null!==t.validator){const o=e2(i);if(Array.isArray(o)&&o.length>0){const r=o.filter(s=>s!==t.validator);r.length!==o.length&&(e=!0,i.setValidators(r))}}if(null!==t.asyncValidator){const o=t2(i);if(Array.isArray(o)&&o.length>0){const r=o.filter(s=>s!==t.asyncValidator);r.length!==o.length&&(e=!0,i.setAsyncValidators(r))}}}const n=()=>{};return tp(t._rawValidators,n),tp(t._rawAsyncValidators,n),e}function u2(i,t){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function h2(i,t){Y0(i,t)}function f2(i,t){i._syncPendingControls(),t.forEach(e=>{const n=e.control;"submit"===n.updateOn&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}const zee={provide:Ai,useExisting:ze(()=>Od)},Id=(()=>Promise.resolve())();let Od=(()=>{class i extends Ai{constructor(e,n,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new te,this.form=new q0({},H0(e),z0(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Id.then(()=>{const n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Td(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Id.then(()=>{const n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Id.then(()=>{const n=this._findContainer(e.path),o=new q0({});h2(o,e),n.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Id.then(()=>{const n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){Id.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,f2(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static#e=this.\u0275fac=function(n){return new(n||i)(_(Zt,10),_(Or,10),_(ml,8))};static#t=this.\u0275dir=O({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,o){1&n&&$("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Se([zee]),q]})}return i})();function m2(i,t){const e=i.indexOf(t);e>-1&&i.splice(e,1)}function p2(i){return"object"==typeof i&&null!==i&&2===Object.keys(i).length&&"value"in i&&"disabled"in i}const g2=class extends d2{constructor(t=null,e,n){super(W0(e),G0(n,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Zm(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=p2(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(n=>n(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){m2(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){m2(this._onDisabledChange,t)}_forEachChild(t){}_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(t){p2(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},Uee={provide:bo,useExisting:ze(()=>Rr)},v2=(()=>Promise.resolve())();let Rr=(()=>{class i extends bo{constructor(e,n,o,r,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new g2,this._registered=!1,this.name="",this.update=new te,this._parent=e,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=function Z0(i,t){if(!t)return null;let e,n,o;return Array.isArray(t),t.forEach(r=>{r.constructor===Es?e=r:function Vee(i){return Object.getPrototypeOf(i.constructor)===Ms}(r)?n=r:o=r}),o||n||e||null}(0,r)}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),function K0(i,t){if(!i.hasOwnProperty("model"))return!1;const e=i.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}(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(){Td(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){v2.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const n=e.isDisabled.currentValue,o=0!==n&&function Ib(i){return"boolean"==typeof i?i:null!=i&&"false"!==i}(n);v2.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function Jm(i,t){return[...t.path,i]}(e,this._parent):[e]}static#e=this.\u0275fac=function(n){return new(n||i)(_(Ai,9),_(Zt,10),_(Or,10),_(wn,10),_(oi,8),_(ml,8))};static#t=this.\u0275dir=O({type:i,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Se([Uee]),q,ti]})}return i})();const Gee={provide:wn,useExisting:ze(()=>Q0),multi:!0};let Q0=(()=>{class i extends Ms{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=n=>{e(""==n?null:parseFloat(n))}}static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=lt(i)))(o||i)}}();static#t=this.\u0275dir=O({type:i,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,o){1&n&&$("input",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},features:[Se([Gee]),q]})}return i})(),y2=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({})}return i})();const Zee={provide:Ai,useExisting:ze(()=>Rd)};let Rd=(()=>{class i extends Ai{constructor(e,n,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new te,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&&(ip(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 Td(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){ep(e.control||null,e,!1),function Hee(i,t){const e=i.indexOf(t);e>-1&&i.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,f2(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const n=e.control,o=this.form.get(e.path);n!==o&&(ep(n||null,e),(i=>i instanceof g2)(o)&&(Td(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const n=this.form.get(e.path);h2(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const n=this.form.get(e.path);n&&function Lee(i,t){return ip(i,t)}(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Y0(this.form,this),this._oldForm&&ip(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(n){return new(n||i)(_(Zt,10),_(Or,10),_(ml,8))};static#t=this.\u0275dir=O({type:i,selectors:[["","formGroup",""]],hostBindings:function(n,o){1&n&&$("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Se([Zee]),q,ti]})}return i})(),pte=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({imports:[y2]})}return i})(),Is=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:ml,useValue:e.callSetDisabledState??Qm}]}}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({imports:[pte]})}return i})();class _te extends ne{constructor(t=1/0,e=1/0,n=hv){super(),this._bufferSize=t,this._windowTime=e,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,e)}next(t){const{isStopped:e,_buffer:n,_infiniteTimeWindow:o,_timestampProvider:r,_windowTime:s}=this;e||(n.push(t),!o&&n.push(r.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(t),{_infiniteTimeWindow:n,_buffer:o}=this,r=o.slice();for(let s=0;sthis._resizeSubject.next(e)))}observe(t){return this._elementObservables.has(t)||this._elementObservables.set(t,new it(e=>{const n=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(t,{box:this._box}),()=>{this._resizeObserver?.unobserve(t),n.unsubscribe(),this._elementObservables.delete(t)}}).pipe(kt(e=>e.some(n=>n.target===t)),function bte(i,t,e){let n,o=!1;return i&&"object"==typeof i?({bufferSize:n=1/0,windowTime:t=1/0,refCount:o=!1,scheduler:e}=i):n=i??1/0,iu({connector:()=>new _te(n,t,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}({bufferSize:1,refCount:!0}),Xe(this._destroyed))),this._elementObservables.get(t)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let yte=(()=>{class i{constructor(){this._observers=new Map,this._ngZone=J(W)}ngOnDestroy(){for(const[,e]of this._observers)e.destroy();this._observers.clear()}observe(e,n){const o=n?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new vte(o)),this._observers.get(o).observe(e)}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();class L2{}class xte{}const Wo="*";function Go(i,t){return{type:7,name:i,definitions:t,options:{}}}function Cn(i,t=null){return{type:4,styles:t,timings:i}}function V2(i,t=null){return{type:2,steps:i,options:t}}function _t(i){return{type:6,styles:i,offset:null}}function kn(i,t,e){return{type:0,name:i,styles:t,options:e}}function en(i,t,e=null){return{type:1,expr:i,animation:t,options:e}}function rx(i=null){return{type:9,options:i}}function sx(i,t,e=null){return{type:11,selector:i,animation:t,options:e}}class Fd{constructor(t=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=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class H2{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,o=0;const r=this.players.length;0==r?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==r&&this._onFinish()}),s.onDestroy(()=>{++n==r&&this._onDestroy()}),s.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(n=>{const o=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(o)})}getPosition(){const t=this.players.reduce((e,n)=>null===e||n.totalTime>e.totalTime?n:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}const wte=["notch"],Cte=["matFormFieldNotchedOutline",""],kte=["*"],Dte=["textField"],Ste=["iconPrefixContainer"],Mte=["textPrefixContainer"];function Ete(i,t){1&i&&De(0,"span",19)}function Ate(i,t){if(1&i&&(k(0,"label",17),Z(1,1),U(2,Ete,1,0,"span",18),S()),2&i){const e=ue(2);T("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),Me("for",e._control.id),R(2),T("ngIf",!e.hideRequiredMarker&&e._control.required)}}function Tte(i,t){1&i&&U(0,Ate,3,5,"label",16),2&i&&T("ngIf",ue()._hasFloatingLabel())}function Ite(i,t){1&i&&De(0,"div",20)}function Ote(i,t){}function Rte(i,t){1&i&&U(0,Ote,0,0,"ng-template",22),2&i&&(ue(2),T("ngTemplateOutlet",fn(1)))}function Fte(i,t){if(1&i&&(k(0,"div",21),U(1,Rte,1,1,"ng-template",9),S()),2&i){const e=ue();T("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),R(1),T("ngIf",!e._forceDisplayInfixLabel())}}function Pte(i,t){1&i&&(k(0,"div",23,24),Z(2,2),S())}function Nte(i,t){1&i&&(k(0,"div",25,26),Z(2,3),S())}function Lte(i,t){}function Bte(i,t){1&i&&U(0,Lte,0,0,"ng-template",22),2&i&&(ue(),T("ngTemplateOutlet",fn(1)))}function Vte(i,t){1&i&&(k(0,"div",27),Z(1,4),S())}function Hte(i,t){1&i&&(k(0,"div",28),Z(1,5),S())}function zte(i,t){1&i&&De(0,"div",29)}function jte(i,t){1&i&&(k(0,"div",30),Z(1,6),S()),2&i&&T("@transitionMessages",ue()._subscriptAnimationState)}function $te(i,t){if(1&i&&(k(0,"mat-hint",34),he(1),S()),2&i){const e=ue(2);T("id",e._hintLabelId),R(1),es(e.hintLabel)}}function Ute(i,t){if(1&i&&(k(0,"div",31),U(1,$te,2,2,"mat-hint",32),Z(2,7),De(3,"div",33),Z(4,8),S()),2&i){const e=ue();T("@transitionMessages",e._subscriptAnimationState),R(1),T("ngIf",e.hintLabel)}}const Wte=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Gte=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let Fr=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275dir=O({type:i,selectors:[["mat-label"]]})}return i})();const qte=new A("MatError");let Yte=0,z2=(()=>{class i{constructor(){this.align="start",this.id="mat-mdc-hint-"+Yte++}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275dir=O({type:i,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(n,o){2&n&&(or("id",o.id),Me("align",null),be("mat-mdc-form-field-hint-end","end"===o.align))},inputs:{align:"align",id:"id"}})}return i})();const Xte=new A("MatPrefix"),Kte=new A("MatSuffix"),j2=new A("FloatingLabelParent");let $2=(()=>{class i{get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(e){this._elementRef=e,this._floating=!1,this._monitorResize=!1,this._resizeObserver=J(yte),this._ngZone=J(W),this._parent=J(j2),this._resizeSubscription=new je}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function Zte(i){if(null!==i.offsetParent)return i.scrollWidth;const e=i.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}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static#e=this.\u0275fac=function(n){return new(n||i)(_(ee))};static#t=this.\u0275dir=O({type:i,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(n,o){2&n&&be("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return i})();const U2="mdc-line-ripple--active",np="mdc-line-ripple--deactivating";let W2=(()=>{class i{constructor(e,n){this._elementRef=e,this._handleTransitionEnd=o=>{const r=this._elementRef.nativeElement.classList,s=r.contains(np);"opacity"===o.propertyName&&s&&r.remove(U2,np)},n.runOutsideAngular(()=>{e.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const e=this._elementRef.nativeElement.classList;e.remove(np),e.add(U2)}deactivate(){this._elementRef.nativeElement.classList.add(np)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static#e=this.\u0275fac=function(n){return new(n||i)(_(ee),_(W))};static#t=this.\u0275dir=O({type:i,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return i})(),G2=(()=>{class i{constructor(e,n){this._elementRef=e,this._ngZone=n,this.open=!1}ngAfterViewInit(){const e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){this._notch.nativeElement.style.width=this.open&&e?`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}static#e=this.\u0275fac=function(n){return new(n||i)(_(ee),_(W))};static#t=this.\u0275cmp=xe({type:i,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(n,o){if(1&n&&ct(wte,5),2&n){let r;ae(r=le())&&(o._notch=r.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(n,o){2&n&&be("mdc-notched-outline--notched",o.open)},inputs:{open:["matFormFieldNotchedOutlineOpen","open"]},attrs:Cte,ngContentSelectors:kte,decls:5,vars:0,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],["notch",""],[1,"mdc-notched-outline__trailing"]],template:function(n,o){1&n&&(yt(),De(0,"div",0),k(1,"div",1,2),Z(3),S(),De(4,"div",3))},encapsulation:2,changeDetection:0})}return i})();const Qte={transitionMessages:Go("transitionMessages",[kn("enter",_t({opacity:1,transform:"translateY(0%)"})),en("void => enter",[_t({opacity:0,transform:"translateY(-5px)"}),Cn("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let lx=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275dir=O({type:i})}return i})();const cx=new A("MatFormField"),Jte=new A("MAT_FORM_FIELD_DEFAULT_OPTIONS");let q2=0,pl=(()=>{class i{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=me(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._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,o,r,s,a,l,c){this._elementRef=e,this._changeDetectorRef=n,this._ngZone=o,this._dir=r,this._platform=s,this._defaults=a,this._animationMode=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-"+q2++,this._hintLabelId="mat-mdc-hint-"+q2++,this._subscriptAnimationState="",this._destroyed=new ne,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,a&&(a.appearance&&(this.appearance=a.appearance),this._hideRequiredMarker=!!a?.hideRequiredMarker,a.color&&(this.color=a.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${e.controlType}`),e.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Xe(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(),rn(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(Xe(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe(Xe(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"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth()):this._notchedOutline?._setNotchWidth(0)}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const n=this._hintChildren?this._hintChildren.find(r=>"start"===r.align):null,o=this._hintChildren?this._hintChildren.find(r=>"end"===r.align):null;n?e.push(n.id):this._hintLabel&&e.push(this._hintLabelId),o&&e.push(o.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,o=this._textPrefixContainer?.nativeElement,r=n?.getBoundingClientRect().width??0,s=o?.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"} * (${r+s}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)}static#e=this.\u0275fac=function(n){return new(n||i)(_(ee),_(oi),_(W),_(hr),_(dt),_(Jte,8),_(Ot,8),_(ge))};static#t=this.\u0275cmp=xe({type:i,selectors:[["mat-form-field"]],contentQueries:function(n,o,r){if(1&n&&(Je(r,Fr,5),Je(r,Fr,7),Je(r,lx,5),Je(r,Xte,5),Je(r,Kte,5),Je(r,qte,5),Je(r,z2,5)),2&n){let s;ae(s=le())&&(o._labelChildNonStatic=s.first),ae(s=le())&&(o._labelChildStatic=s.first),ae(s=le())&&(o._formFieldControl=s.first),ae(s=le())&&(o._prefixChildren=s),ae(s=le())&&(o._suffixChildren=s),ae(s=le())&&(o._errorChildren=s),ae(s=le())&&(o._hintChildren=s)}},viewQuery:function(n,o){if(1&n&&(ct(Dte,5),ct(Ste,5),ct(Mte,5),ct($2,5),ct(G2,5),ct(W2,5)),2&n){let r;ae(r=le())&&(o._textField=r.first),ae(r=le())&&(o._iconPrefixContainer=r.first),ae(r=le())&&(o._textPrefixContainer=r.first),ae(r=le())&&(o._floatingLabel=r.first),ae(r=le())&&(o._notchedOutline=r.first),ae(r=le())&&(o._lineRipple=r.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(n,o){2&n&&be("mat-mdc-form-field-label-always-float",o._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",o._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",o._hasIconSuffix)("mat-form-field-invalid",o._control.errorState)("mat-form-field-disabled",o._control.disabled)("mat-form-field-autofilled",o._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===o._animationMode)("mat-form-field-appearance-fill","fill"==o.appearance)("mat-form-field-appearance-outline","outline"==o.appearance)("mat-form-field-hide-placeholder",o._hasFloatingLabel()&&!o._shouldLabelFloat())("mat-focused",o._control.focused)("mat-primary","accent"!==o.color&&"warn"!==o.color)("mat-accent","accent"===o.color)("mat-warn","warn"===o.color)("ng-untouched",o._shouldForward("untouched"))("ng-touched",o._shouldForward("touched"))("ng-pristine",o._shouldForward("pristine"))("ng-dirty",o._shouldForward("dirty"))("ng-valid",o._shouldForward("valid"))("ng-invalid",o._shouldForward("invalid"))("ng-pending",o._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Se([{provide:cx,useExisting:i},{provide:j2,useExisting:i}])],ngContentSelectors:Gte,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",4,"ngIf"],["class","mat-mdc-form-field-icon-prefix",4,"ngIf"],["class","mat-mdc-form-field-text-prefix",4,"ngIf"],[1,"mat-mdc-form-field-infix"],[3,"ngIf"],["class","mat-mdc-form-field-text-suffix",4,"ngIf"],["class","mat-mdc-form-field-icon-suffix",4,"ngIf"],["matFormFieldLineRipple","",4,"ngIf"],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align",3,"ngSwitch"],["class","mat-mdc-form-field-error-wrapper",4,"ngSwitchCase"],["class","mat-mdc-form-field-hint-wrapper",4,"ngSwitchCase"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required",4,"ngIf"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],["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(n,o){1&n&&(yt(Wte),U(0,Tte,1,1,"ng-template",null,0,yc),k(2,"div",1,2),$("click",function(s){return o._control.onContainerClick(s)}),U(4,Ite,1,0,"div",3),k(5,"div",4),U(6,Fte,2,2,"div",5),U(7,Pte,3,0,"div",6),U(8,Nte,3,0,"div",7),k(9,"div",8),U(10,Bte,1,1,"ng-template",9),Z(11),S(),U(12,Vte,2,0,"div",10),U(13,Hte,2,0,"div",11),S(),U(14,zte,1,0,"div",12),S(),k(15,"div",13),U(16,jte,2,1,"div",14),U(17,Ute,5,2,"div",15),S()),2&n&&(R(2),be("mdc-text-field--filled",!o._hasOutline())("mdc-text-field--outlined",o._hasOutline())("mdc-text-field--no-label",!o._hasFloatingLabel())("mdc-text-field--disabled",o._control.disabled)("mdc-text-field--invalid",o._control.errorState),R(2),T("ngIf",!o._hasOutline()&&!o._control.disabled),R(2),T("ngIf",o._hasOutline()),R(1),T("ngIf",o._hasIconPrefix),R(1),T("ngIf",o._hasTextPrefix),R(2),T("ngIf",!o._hasOutline()||o._forceDisplayInfixLabel()),R(2),T("ngIf",o._hasTextSuffix),R(1),T("ngIf",o._hasIconSuffix),R(1),T("ngIf",!o._hasOutline()),R(1),be("mat-mdc-form-field-subscript-dynamic-size","dynamic"===o.subscriptSizing),T("ngSwitch",o._getDisplayedMessages()),R(1),T("ngSwitchCase","error"),R(1),T("ngSwitchCase","hint"))},dependencies:[ar,Gb,Ba,Uh,z2,$2,G2,W2],styles:['.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px * 2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{--mdc-filled-text-field-active-indicator-height:1px;--mdc-filled-text-field-focus-active-indicator-height:2px;--mdc-filled-text-field-container-shape:4px;border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined{--mdc-outlined-text-field-outline-width:1px;--mdc-outlined-text-field-focus-outline-width:2px;--mdc-outlined-text-field-container-shape:4px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size) * var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[Qte.transitionMessages]},changeDetection:0})}return i})(),vo=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({imports:[Oe,Fo,pv,Oe]})}return i})();const iie=new A("MAT_INPUT_VALUE_ACCESSOR"),nie=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let oie=0;const rie=MA(class{constructor(i,t,e,n){this._defaultErrorStateMatcher=i,this._parentForm=t,this._parentFormGroup=e,this.ngControl=n,this.stateChanges=new ne}});let op=(()=>{class i extends rie{get disabled(){return this._disabled}set disabled(e){this._disabled=me(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(LP.required)??!1}set required(e){this._required=me(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&oA().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=me(e)}constructor(e,n,o,r,s,a,l,c,d,u){super(a,r,s,o),this._elementRef=e,this._platform=n,this._autofillMonitor=c,this._formField=u,this._uid="mat-input-"+oie++,this.focused=!1,this.stateChanges=new ne,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=>oA().has(m)),this._iOSKeyupListener=m=>{const p=m.target;!p.value&&0===p.selectionStart&&0===p.selectionEnd&&(p.setSelectionRange(1,1),p.setSelectionRange(0,0))};const h=this._elementRef.nativeElement,f=h.nodeName.toLowerCase();this._inputValueAccessor=l||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(){nie.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)}static#e=this.\u0275fac=function(n){return new(n||i)(_(ee),_(dt),_(bo,10),_(Od,8),_(Rd,8),_(EA),_(iie,10),_(bee),_(W),_(cx,8))};static#t=this.\u0275dir=O({type:i,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(n,o){1&n&&$("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),2&n&&(or("id",o.id)("disabled",o.disabled)("required",o.required),Me("name",o.name||null)("readonly",o.readonly&&!o._isNativeSelect||null)("aria-invalid",o.empty&&o.required?null:o.errorState)("aria-required",o.required)("id",o.id),be("mat-input-server",o._isServer)("mat-mdc-form-field-textarea-control",o._isInFormField&&o._isTextarea)("mat-mdc-form-field-input-control",o._isInFormField)("mdc-text-field__input",o._isInFormField)("mat-mdc-native-select-inline",o._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:[Se([{provide:lx,useExisting:i}]),q,ti]})}return i})(),gl=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({imports:[Oe,vo,vo,vee,Oe]})}return i})(),Q2=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({})}return i})(),bie=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({imports:[Oe,Nc,Q2,Oe,Q2]})}return i})();class dx{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(t=!1,e,n=!0,o){this._multiple=t,this._emitChanges=n,this.compareWith=o,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new ne,e&&e.length&&(t?e.forEach(r=>this._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...t){this._verifyValueAssignment(t),t.forEach(n=>this._markSelected(n));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...t){this._verifyValueAssignment(t),t.forEach(n=>this._unmarkSelected(n));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...t){this._verifyValueAssignment(t);const e=this.selected,n=new Set(t);t.forEach(r=>this._markSelected(r)),e.filter(r=>!n.has(r)).forEach(r=>this._unmarkSelected(r));const o=this._hasQueuedChanges();return this._emitChangeEvent(),o}toggle(t){return this.isSelected(t)?this.deselect(t):this.select(t)}clear(t=!0){this._unmarkAll();const e=this._hasQueuedChanges();return t&&this._emitChangeEvent(),e}isSelected(t){return this._selection.has(this._getConcreteValue(t))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}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(t){t=this._getConcreteValue(t),this.isSelected(t)||(this._multiple||this._unmarkAll(),this.isSelected(t)||this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){t=this._getConcreteValue(t),this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(t){if(this.compareWith){for(let e of this._selection)if(this.compareWith(t,e))return e;return t}return t}}let J2=(()=>{class i{constructor(){this._listeners=[]}notify(e,n){for(let o of this._listeners)o(e,n)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(n=>e!==n)}}ngOnDestroy(){this._listeners=[]}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),vie=0;const ux=new A("CdkAccordion");let yie=(()=>{class i{constructor(){this._stateChanges=new ne,this._openCloseAllActions=new ne,this.id="cdk-accordion-"+vie++,this._multi=!1}get multi(){return this._multi}set multi(e){this._multi=me(e)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(e){this._stateChanges.next(e)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275dir=O({type:i,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[Se([{provide:ux,useExisting:i}]),ti]})}return i})(),xie=0,wie=(()=>{class i{get expanded(){return this._expanded}set expanded(e){e=me(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=me(e)}constructor(e,n,o){this.accordion=e,this._changeDetectorRef=n,this._expansionDispatcher=o,this._openCloseAllSubscription=je.EMPTY,this.closed=new te,this.opened=new te,this.destroyed=new te,this.expandedChange=new te,this.id="cdk-accordion-child-"+xie++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=o.listen((r,s)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===s&&this.id!==r&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}static#e=this.\u0275fac=function(n){return new(n||i)(_(ux,12),_(oi),_(J2))};static#t=this.\u0275dir=O({type:i,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Se([{provide:ux,useValue:void 0}])]})}return i})(),Cie=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({})}return i})();class hx{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class rp extends hx{constructor(t,e,n,o,r){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=o,this.projectableNodes=r}}class Pd extends hx{constructor(t,e,n,o){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n,this.injector=o}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class kie extends hx{constructor(t){super(),this.element=t instanceof ee?t.nativeElement:t}}class fx{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof rp?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Pd?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof kie?(this._attachedPortal=t,this.attachDomPortal(t)):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(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Die extends fx{constructor(t,e,n,o,r){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=o,this.attachDomPortal=s=>{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=r}attachComponentPortal(t){const n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let o;return t.viewContainerRef?(o=t.viewContainerRef.createComponent(n,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector,t.projectableNodes||void 0),this.setDisposeFn(()=>o.destroy())):(o=n.create(t.injector||this._defaultInjector||Vt.NULL),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(o.hostView),o.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(o)),this._attachedPortal=t,o}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return n.rootNodes.forEach(o=>this.outletElement.appendChild(o)),n.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(n);-1!==o&&e.remove(o)}),this._attachedPortal=t,n}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let sp=(()=>{class i extends fx{constructor(e,n,o){super(),this._componentFactoryResolver=e,this._viewContainerRef=n,this._isInitialized=!1,this.attached=new te,this.attachDomPortal=r=>{const s=r.element,a=this._document.createComment("dom-portal");r.setAttachedHost(this),s.parentNode.insertBefore(a,s),this._getRootNode().appendChild(s),this._attachedPortal=r,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(s,a)})},this._document=o}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,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),s=n.createComponent(r,n.length,e.injector||n.injector,e.projectableNodes||void 0);return n!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=e,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(e){e.setAttachedHost(this);const 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}static#e=this.\u0275fac=function(n){return new(n||i)(_(ga),_(wi),_(ge))};static#t=this.\u0275dir=O({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[q]})}return i})(),Nd=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({})}return i})();const Sie=["body"];function Mie(i,t){}const Eie=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Aie=["mat-expansion-panel-header","*","mat-action-row"];function Tie(i,t){1&i&&De(0,"span",2),2&i&&T("@indicatorRotate",ue()._getExpandedState())}const Iie=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Oie=["mat-panel-title","mat-panel-description","*"],mx=new A("MAT_ACCORDION"),eN="225ms cubic-bezier(0.4,0.0,0.2,1)",tN={indicatorRotate:Go("indicatorRotate",[kn("collapsed, void",_t({transform:"rotate(0deg)"})),kn("expanded",_t({transform:"rotate(180deg)"})),en("expanded <=> collapsed, void => collapsed",Cn(eN))]),bodyExpansion:Go("bodyExpansion",[kn("collapsed, void",_t({height:"0px",visibility:"hidden"})),kn("expanded",_t({height:"*",visibility:""})),en("expanded <=> collapsed, void => collapsed",Cn(eN))])},iN=new A("MAT_EXPANSION_PANEL");let Rie=(()=>{class i{constructor(e,n){this._template=e,this._expansionPanel=n}static#e=this.\u0275fac=function(n){return new(n||i)(_(Wi),_(iN,8))};static#t=this.\u0275dir=O({type:i,selectors:[["ng-template","matExpansionPanelContent",""]]})}return i})(),Fie=0;const nN=new A("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let oN=(()=>{class i extends wie{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=me(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}constructor(e,n,o,r,s,a,l){super(e,n,o),this._viewContainerRef=r,this._animationMode=a,this._hideToggle=!1,this.afterExpand=new te,this.afterCollapse=new te,this._inputChanges=new ne,this._headerId="mat-expansion-panel-header-"+Fie++,this._bodyAnimationDone=new ne,this.accordion=e,this._document=s,this._bodyAnimationDone.pipe(nu((c,d)=>c.fromState===d.fromState&&c.toState===d.toState)).subscribe(c=>{"void"!==c.fromState&&("expanded"===c.toState?this.afterExpand.emit():"collapsed"===c.toState&&this.afterCollapse.emit())}),l&&(this.hideToggle=l.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(to(null),kt(()=>this.expanded&&!this._portal),ri(1)).subscribe(()=>{this._portal=new Pd(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}static#e=this.\u0275fac=function(n){return new(n||i)(_(mx,12),_(oi),_(J2),_(wi),_(ge),_(Ot,8),_(nN,8))};static#t=this.\u0275cmp=xe({type:i,selectors:[["mat-expansion-panel"]],contentQueries:function(n,o,r){if(1&n&&Je(r,Rie,5),2&n){let s;ae(s=le())&&(o._lazyContent=s.first)}},viewQuery:function(n,o){if(1&n&&ct(Sie,5),2&n){let r;ae(r=le())&&(o._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(n,o){2&n&&be("mat-expanded",o.expanded)("_mat-animation-noopable","NoopAnimations"===o._animationMode)("mat-expansion-panel-spacing",o._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Se([{provide:mx,useValue:void 0},{provide:iN,useExisting:i}]),q,ti],ngContentSelectors:Aie,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(n,o){1&n&&(yt(Eie),Z(0),k(1,"div",0,1),$("@bodyExpansion.done",function(s){return o._bodyAnimationDone.next(s)}),k(3,"div",2),Z(4,1),U(5,Mie,0,0,"ng-template",3),S(),Z(6,2),S()),2&n&&(R(1),T("@bodyExpansion",o._getExpandedState())("id",o.id),Me("aria-labelledby",o._headerId),R(4),T("cdkPortalOutlet",o._portal))},dependencies:[sp],styles:['.mat-expansion-panel{--mat-expansion-container-shape:4px;box-sizing:content-box;display:block;margin:0;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative;background:var(--mat-expansion-container-background-color);color:var(--mat-expansion-container-text-color);border-radius:var(--mat-expansion-container-shape)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape);border-top-left-radius:var(--mat-expansion-container-shape)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape);border-bottom-left-radius:var(--mat-expansion-container-shape)}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;font-family:var(--mat-expansion-container-text-font);font-size:var(--mat-expansion-container-text-size);font-weight:var(--mat-expansion-container-text-weight);line-height:var(--mat-expansion-container-text-line-height);letter-spacing:var(--mat-expansion-container-text-tracking)}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color)}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[tN.bodyExpansion]},changeDetection:0})}return i})(),Pie=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275dir=O({type:i,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]})}return i})();class Nie{}const Lie=Dv(Nie);let rN=(()=>{class i extends Lie{constructor(e,n,o,r,s,a,l){super(),this.panel=e,this._element=n,this._focusMonitor=o,this._changeDetectorRef=r,this._animationMode=a,this._parentChangeSubscription=je.EMPTY;const c=e.accordion?e.accordion._stateChanges.pipe(kt(d=>!(!d.hideToggle&&!d.togglePosition))):Cl;this.tabIndex=parseInt(l||"")||0,this._parentChangeSubscription=rn(e.opened,e.closed,c,e._inputChanges.pipe(kt(d=>!!(d.hideToggle||d.disabled||d.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(kt(()=>e._containsFocus())).subscribe(()=>o.focusVia(n,"program")),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:Bn(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)}static#e=this.\u0275fac=function(n){return new(n||i)(_(oN,1),_(ee),_(ur),_(oi),_(nN,8),_(Ot,8),Gr("tabindex"))};static#t=this.\u0275cmp=xe({type:i,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(n,o){1&n&&$("click",function(){return o._toggle()})("keydown",function(s){return o._keydown(s)}),2&n&&(Me("id",o.panel._headerId)("tabindex",o.tabIndex)("aria-controls",o._getPanelId())("aria-expanded",o._isExpanded())("aria-disabled",o.panel.disabled),_h("height",o._getHeaderHeight()),be("mat-expanded",o._isExpanded())("mat-expansion-toggle-indicator-after","after"===o._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===o._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===o._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[q],ngContentSelectors:Oie,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(n,o){1&n&&(yt(Iie),k(0,"span",0),Z(1),Z(2,1),Z(3,2),S(),U(4,Tie,1,1,"span",1)),2&n&&(be("mat-content-hide-toggle",!o._showToggle()),R(4),T("ngIf",o._showToggle()))},dependencies:[ar],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-expansion-header-collapsed-state-height);font-family:var(--mat-expansion-header-text-font);font-size:var(--mat-expansion-header-text-size);font-weight:var(--mat-expansion-header-text-weight);line-height:var(--mat-expansion-header-text-line-height);letter-spacing:var(--mat-expansion-header-text-tracking)}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color)}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color)}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color)}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color)}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color)}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[tN.indicatorRotate]},changeDetection:0})}return i})(),Bie=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275dir=O({type:i,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]})}return i})(),Vie=(()=>{class i extends yie{constructor(){super(...arguments),this._ownHeaders=new ns,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(e){this._hideToggle=me(e)}ngAfterContentInit(){this._headers.changes.pipe(to(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(n=>n.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new yv(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=lt(i)))(o||i)}}();static#t=this.\u0275dir=O({type:i,selectors:[["mat-accordion"]],contentQueries:function(n,o,r){if(1&n&&Je(r,rN,5),2&n){let s;ae(s=le())&&(o._headers=s)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(n,o){2&n&&be("mat-accordion-multi",o.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[Se([{provide:mx,useExisting:i}]),q]})}return i})(),Hie=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({imports:[Fo,Oe,Cie,Nd]})}return i})();const zie=["addListener","removeListener"],jie=["addEventListener","removeEventListener"],$ie=["on","off"];function px(i,t,e,n){if(Re(e)&&(n=e,e=void 0),n)return px(i,t,e).pipe(gv(n));const[o,r]=function Gie(i){return Re(i.addEventListener)&&Re(i.removeEventListener)}(i)?jie.map(s=>a=>i[s](t,a,e)):function Uie(i){return Re(i.addListener)&&Re(i.removeListener)}(i)?zie.map(sN(i,t)):function Wie(i){return Re(i.on)&&Re(i.off)}(i)?$ie.map(sN(i,t)):[];if(!o&&Up(i))return Hs(s=>px(s,t,e))(Jt(i));if(!o)throw new TypeError("Invalid event target");return new it(s=>{const a=(...l)=>s.next(1r(a)})}function sN(i,t){return e=>n=>i[e](t,n)}const Ld={schedule(i){let t=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:n}=Ld;n&&(t=n.requestAnimationFrame,e=n.cancelAnimationFrame);const o=t(r=>{e=void 0,i(r)});return new je(()=>e?.(o))},requestAnimationFrame(...i){const{delegate:t}=Ld;return(t?.requestAnimationFrame||requestAnimationFrame)(...i)},cancelAnimationFrame(...i){const{delegate:t}=Ld;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...i)},delegate:void 0};new class Yie extends fv{flush(t){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:n}=this;let o;t=t||n.shift();do{if(o=t.execute(t.state,t.delay))break}while((t=n[0])&&t.id===e&&n.shift());if(this._active=!1,o){for(;(t=n[0])&&t.id===e&&n.shift();)t.unsubscribe();throw o}}}(class qie extends uv{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t._scheduled||(t._scheduled=Ld.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,e,n=0){var o;if(null!=n?n>0:this.delay>0)return super.recycleAsyncId(t,e,n);const{actions:r}=t;null!=e&&(null===(o=r[r.length-1])||void 0===o?void 0:o.id)!==e&&(Ld.cancelAnimationFrame(e),t._scheduled=void 0)}});let gx,Kie=1;const ap={};function aN(i){return i in ap&&(delete ap[i],!0)}const Zie={setImmediate(i){const t=Kie++;return ap[t]=!0,gx||(gx=Promise.resolve()),gx.then(()=>aN(t)&&i()),t},clearImmediate(i){aN(i)}},{setImmediate:Qie,clearImmediate:Jie}=Zie,lp={setImmediate(...i){const{delegate:t}=lp;return(t?.setImmediate||Qie)(...i)},clearImmediate(i){const{delegate:t}=lp;return(t?.clearImmediate||Jie)(i)},delegate:void 0},_x=new class tne extends fv{flush(t){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:n}=this;let o;t=t||n.shift();do{if(o=t.execute(t.state,t.delay))break}while((t=n[0])&&t.id===e&&n.shift());if(this._active=!1,o){for(;(t=n[0])&&t.id===e&&n.shift();)t.unsubscribe();throw o}}}(class ene extends uv{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t._scheduled||(t._scheduled=lp.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,e,n=0){var o;if(null!=n?n>0:this.delay>0)return super.recycleAsyncId(t,e,n);const{actions:r}=t;null!=e&&(null===(o=r[r.length-1])||void 0===o?void 0:o.id)!==e&&(lp.clearImmediate(e),t._scheduled===e&&(t._scheduled=void 0))}});function lN(i=0,t,e=BG){let n=-1;return null!=t&&(Sw(t)?e=t:n=t),new it(o=>{let r=function nne(i){return i instanceof Date&&!isNaN(i)}(i)?+i-e.now():i;r<0&&(r=0);let s=0;return e.schedule(function(){o.closed||(o.next(s++),0<=n?this.schedule(void 0,n):o.complete())},r)})}function cN(i,t=nf){return function ine(i){return Lt((t,e)=>{let n=!1,o=null,r=null,s=!1;const a=()=>{if(r?.unsubscribe(),r=null,n){n=!1;const c=o;o=null,e.next(c)}s&&e.complete()},l=()=>{r=null,s&&e.complete()};t.subscribe(At(e,c=>{n=!0,o=c,r||Jt(i(c)).subscribe(r=At(e,a,l))},()=>{s=!0,(!n||!r||r.closed)&&e.complete()}))})}(()=>lN(i,t))}let dN=(()=>{class i{constructor(e,n,o){this._ngZone=e,this._platform=n,this._scrolled=new ne,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}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 it(n=>{this._globalSubscription||this._addGlobalListener();const o=e>0?this._scrolled.pipe(cN(e)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):sn()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(e,n){const o=this.getAncestorScrollContainers(e);return this.scrolled(n).pipe(kt(r=>!r||o.indexOf(r)>-1))}getAncestorScrollContainers(e){const n=[];return this.scrollContainers.forEach((o,r)=>{this._scrollableContainsElement(r,e)&&n.push(r)}),n}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,n){let o=Po(n),r=e.getElementRef().nativeElement;do{if(o==r)return!0}while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>px(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(n){return new(n||i)(C(W),C(dt),C(ge,8))};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),bx=(()=>{class i{constructor(e,n,o){this._platform=e,this._change=new ne,this._changeListener=r=>{this._change.next(r)},this._document=o,n.runOutsideAngular(()=>{if(e.isBrowser){const r=this._getWindow();r.addEventListener("resize",this._changeListener),r.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:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+n,height:o,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,n=this._getWindow(),o=e.documentElement,r=o.getBoundingClientRect();return{top:-r.top||e.body.scrollTop||n.scrollY||o.scrollTop||0,left:-r.left||e.body.scrollLeft||n.scrollX||o.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(cN(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static#e=this.\u0275fac=function(n){return new(n||i)(C(dt),C(W),C(ge,8))};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Bd=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({})}return i})(),uN=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({imports:[Ic,Bd,Ic,Bd]})}return i})();const hN=xG();class ane{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Dt(-this._previousScrollPosition.left),t.style.top=Dt(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,n=t.style,o=this._document.body.style,r=n.scrollBehavior||"",s=o.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),hN&&(n.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),hN&&(n.scrollBehavior=r,o.scrollBehavior=s)}}_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 lne{constructor(t,e,n,o){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=o,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=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=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class fN{enable(){}disable(){}attach(){}}function vx(i,t){return t.some(e=>i.bottome.bottom||i.righte.right)}function mN(i,t){return t.some(e=>i.tope.bottom||i.lefte.right)}class cne{constructor(t,e,n,o){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=o,this._scrollSubscription=null}attach(t){this._overlayRef=t}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:o}=this._viewportRuler.getViewportSize();vx(e,[{width:n,height:o,bottom:o,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 dne=(()=>{class i{constructor(e,n,o,r){this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=o,this.noop=()=>new fN,this.close=s=>new lne(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new ane(this._viewportRuler,this._document),this.reposition=s=>new cne(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=r}static#e=this.\u0275fac=function(n){return new(n||i)(C(dN),C(bx),C(W),C(ge))};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();class cp{constructor(t){if(this.scrollStrategy=new fN,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class une{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let pN=(()=>{class i{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()}static#e=this.\u0275fac=function(n){return new(n||i)(C(ge))};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),hne=(()=>{class i extends pN{constructor(e,n){super(e),this._ngZone=n,this._keydownListener=o=>{const r=this._attachedOverlays;for(let s=r.length-1;s>-1;s--)if(r[s]._keydownEvents.observers.length>0){const a=r[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(o)):a.next(o);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static#e=this.\u0275fac=function(n){return new(n||i)(C(ge),C(W,8))};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),fne=(()=>{class i extends pN{constructor(e,n,o){super(e),this._platform=n,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=cr(r)},this._clickListener=r=>{const s=cr(r),a="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const l=this._attachedOverlays.slice();for(let c=l.length-1;c>-1;c--){const d=l[c];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(d.overlayElement.contains(s)||d.overlayElement.contains(a))break;const u=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>u.next(r)):u.next(r)}}}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)}static#e=this.\u0275fac=function(n){return new(n||i)(C(ge),C(dt),C(W,8))};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),dp=(()=>{class i{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||cv()){const o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;rthis._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new ne,this._outsidePointerEvents=new ne,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(ri(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 t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=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,t&&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(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config={...this._config,...t},this._updateElementSize()}setDirection(t){this._config={...this._config,direction:t},this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=Dt(this._config.width),t.height=Dt(this._config.height),t.minWidth=Dt(this._config.minWidth),t.minHeight=Dt(this._config.minHeight),t.maxWidth=Dt(this._config.maxWidth),t.maxHeight=Dt(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="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(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(t){if(this._animationsDisabled)return void this._disposeBackdrop(t);t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",this._backdropTransitionendHandler)}),t.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(t)},500))}}_toggleClasses(t,e,n){const o=rf(e||[]).filter(r=>!!r);o.length&&(n?t.classList.add(...o):t.classList.remove(...o))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Xe(rn(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()),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const gN="cdk-overlay-connected-position-bounding-box",mne=/([A-Za-z%]+)$/;class pne{get positions(){return this._preferredPositions}constructor(t,e,n,o,r){this._viewportRuler=e,this._document=n,this._platform=o,this._overlayContainer=r,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 ne,this._resizeSubscription=je.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}attach(t){this._validatePositions(),t.hostElement.classList.add(gN),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.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 t=this._originRect,e=this._overlayRect,n=this._viewportRect,o=this._containerRect,r=[];let s;for(let a of this._preferredPositions){let l=this._getOriginPoint(t,o,a),c=this._getOverlayPoint(l,e,a),d=this._getOverlayFit(c,e,n,a);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(d,c,n)?r.push({position:a,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!s||s.overlayFit.visibleAreal&&(l=d,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Os(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(gN),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const t=this._lastPosition;if(t){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,t);this._applyPosition(t,e)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e,n){let o,r;if("center"==n.originX)o=t.left+t.width/2;else{const s=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;o="start"==n.originX?s:a}return e.left<0&&(o-=e.left),r="center"==n.originY?t.top+t.height/2:"top"==n.originY?t.top:t.bottom,e.top<0&&(r-=e.top),{x:o,y:r}}_getOverlayPoint(t,e,n){let o,r;return o="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+o,y:t.y+r}}_getOverlayFit(t,e,n,o){const r=bN(e);let{x:s,y:a}=t,l=this._getOffset(o,"x"),c=this._getOffset(o,"y");l&&(s+=l),c&&(a+=c);let h=0-a,f=a+r.height-n.height,m=this._subtractOverflows(r.width,0-s,s+r.width-n.width),p=this._subtractOverflows(r.height,h,f),g=m*p;return{visibleArea:g,isCompletelyWithinViewport:r.width*r.height===g,fitsInViewportVertically:p===r.height,fitsInViewportHorizontally:m==r.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const o=n.bottom-e.y,r=n.right-e.x,s=_N(this._overlayRef.getConfig().minHeight),a=_N(this._overlayRef.getConfig().minWidth);return(t.fitsInViewportVertically||null!=s&&s<=o)&&(t.fitsInViewportHorizontally||null!=a&&a<=r)}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const o=bN(e),r=this._viewportRect,s=Math.max(t.x+o.width-r.width,0),a=Math.max(t.y+o.height-r.height,0),l=Math.max(r.top-n.top-t.y,0),c=Math.max(r.left-n.left-t.x,0);let d=0,u=0;return d=o.width<=r.width?c||-s:t.xm&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-m/2)}if("end"===e.overlayX&&!o||"start"===e.overlayX&&o)h=n.width-t.x+this._viewportMargin,d=t.x-this._viewportMargin;else if("start"===e.overlayX&&!o||"end"===e.overlayX&&o)u=t.x,d=n.right-t.x;else{const f=Math.min(n.right-t.x+n.left,t.x),m=this._lastBoundingBoxSize.width;d=2*f,u=t.x-f,d>m&&!this._isInitialRender&&!this._growAfterOpen&&(u=t.x-m/2)}return{top:s,left:u,bottom:a,right:h,width:d,height:r}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{const r=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;o.height=Dt(n.height),o.top=Dt(n.top),o.bottom=Dt(n.bottom),o.width=Dt(n.width),o.left=Dt(n.left),o.right=Dt(n.right),o.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",o.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",r&&(o.maxHeight=Dt(r)),s&&(o.maxWidth=Dt(s))}this._lastBoundingBoxSize=n,Os(this._boundingBox.style,o)}_resetBoundingBoxStyles(){Os(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Os(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(o){const d=this._viewportRuler.getViewportScrollPosition();Os(n,this._getExactOverlayY(e,t,d)),Os(n,this._getExactOverlayX(e,t,d))}else n.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),n.transform=a.trim(),s.maxHeight&&(o?n.maxHeight=Dt(s.maxHeight):r&&(n.maxHeight="")),s.maxWidth&&(o?n.maxWidth=Dt(s.maxWidth):r&&(n.maxWidth="")),Os(this._pane.style,n)}_getExactOverlayY(t,e,n){let o={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"bottom"===t.overlayY?o.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":o.top=Dt(r.y),o}_getExactOverlayX(t,e,n){let s,o={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),s=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===s?o.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":o.left=Dt(r.x),o}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:mN(t,n),isOriginOutsideView:vx(t,n),isOverlayClipped:mN(e,n),isOverlayOutsideView:vx(e,n)}}_subtractOverflows(t,...e){return e.reduce((n,o)=>n-Math.max(o,0),t)}_getNarrowedViewportRect(){const t=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+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&rf(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof ee)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function Os(i,t){for(let e in t)t.hasOwnProperty(e)&&(i[e]=t[e]);return i}function _N(i){if("number"!=typeof i&&null!=i){const[t,e]=i.split(mne);return e&&"px"!==e?null:parseFloat(t)}return i||null}function bN(i){return{top:Math.floor(i.top),right:Math.floor(i.right),bottom:Math.floor(i.bottom),left:Math.floor(i.left),width:Math.floor(i.width),height:Math.floor(i.height)}}const vN="cdk-global-overlay-wrapper";class gne{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(vN),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._xOffset=t,this._xPosition="left",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._xOffset=t,this._xPosition="right",this}start(t=""){return this._xOffset=t,this._xPosition="start",this}end(t=""){return this._xOffset=t,this._xPosition="end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._xPosition="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:o,height:r,maxWidth:s,maxHeight:a}=n,l=!("100%"!==o&&"100vw"!==o||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a),d=this._xPosition,u=this._xOffset,h="rtl"===this._overlayRef.getConfig().direction;let f="",m="",p="";l?p="flex-start":"center"===d?(p="center",h?m=u:f=u):h?"left"===d||"end"===d?(p="flex-end",f=u):("right"===d||"start"===d)&&(p="flex-start",m=u):"left"===d||"start"===d?(p="flex-start",f=u):("right"===d||"end"===d)&&(p="flex-end",m=u),t.position=this._cssPosition,t.marginLeft=l?"0":f,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=l?"0":m,e.justifyContent=p,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(vN),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let _ne=(()=>{class i{constructor(e,n,o,r){this._viewportRuler=e,this._document=n,this._platform=o,this._overlayContainer=r}global(){return new gne}flexibleConnectedTo(e){return new pne(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(n){return new(n||i)(C(bx),C(ge),C(dt),C(dp))};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),bne=0,Dn=(()=>{class i{constructor(e,n,o,r,s,a,l,c,d,u,h,f){this.scrollStrategies=e,this._overlayContainer=n,this._componentFactoryResolver=o,this._positionBuilder=r,this._keyboardDispatcher=s,this._injector=a,this._ngZone=l,this._document=c,this._directionality=d,this._location=u,this._outsideClickDispatcher=h,this._animationsModuleType=f}create(e){const n=this._createHostElement(),o=this._createPaneElement(n),r=this._createPortalOutlet(o),s=new cp(e);return s.direction=s.direction||this._directionality.value,new Vd(r,n,o,s,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-"+bne++,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(os)),new Die(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(n){return new(n||i)(C(dne),C(dp),C(ga),C(_ne),C(hne),C(Vt),C(W),C(ge),C(hr),C(Fb),C(fne),C(Ot,8))};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();const vne=[{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"}],yN=new A("cdk-connected-overlay-scroll-strategy");let yx=(()=>{class i{constructor(e){this.elementRef=e}static#e=this.\u0275fac=function(n){return new(n||i)(_(ee))};static#t=this.\u0275dir=O({type:i,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}return i})(),xN=(()=>{class i{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=me(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=me(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=me(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=me(e)}get push(){return this._push}set push(e){this._push=me(e)}constructor(e,n,o,r,s){this._overlay=e,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=je.EMPTY,this._attachSubscription=je.EMPTY,this._detachSubscription=je.EMPTY,this._positionSubscription=je.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new te,this.positionChange=new te,this.attach=new te,this.detach=new te,this.overlayKeydown=new te,this.overlayOutsideClick=new te,this._templatePortal=new Pd(n,o),this._scrollStrategyFactory=r,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=vne);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&&!Bn(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 cp({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(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.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 yx?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(function sne(i,t=!1){return Lt((e,n)=>{let o=0;e.subscribe(At(n,r=>{const s=i(r,o++);(s||t)&&n.next(r),!s&&n.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static#e=this.\u0275fac=function(n){return new(n||i)(_(Dn),_(Wi),_(wi),_(yN),_(hr,8))};static#t=this.\u0275dir=O({type:i,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:[ti]})}return i})();const xne={provide:yN,deps:[Dn],useFactory:function yne(i){return()=>i.scrollStrategies.reposition()}};let Hd=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({providers:[Dn,xne],imports:[Ic,Nd,uN,uN]})}return i})();function xx(i){return new it(t=>{Jt(i()).subscribe(t)})}const wne=["trigger"],Cne=["panel"];function kne(i,t){if(1&i&&(k(0,"span",10),he(1),S()),2&i){const e=ue();R(1),es(e.placeholder)}}function Dne(i,t){if(1&i&&(k(0,"span",14),he(1),S()),2&i){const e=ue(2);R(1),es(e.triggerValue)}}function Sne(i,t){1&i&&Z(0,0,["*ngSwitchCase","true"])}function Mne(i,t){1&i&&(k(0,"span",11),U(1,Dne,2,1,"span",12),U(2,Sne,1,0,"ng-content",13),S()),2&i&&(T("ngSwitch",!!ue().customTrigger),R(2),T("ngSwitchCase",!0))}function Ene(i,t){if(1&i){const e=Io();Qs(),vu(),k(0,"div",15,16),$("@transformPanel.done",function(o){return gi(e),_i(ue()._panelDoneAnimatingStream.next(o.toState))})("keydown",function(o){return gi(e),_i(ue()._handleKeydown(o))}),Z(2,1),S()}if(2&i){const e=ue();aS("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),T("ngClass",e.panelClass)("@transformPanel","showing"),Me("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const Ane=[[["mat-select-trigger"]],"*"],Tne=["mat-select-trigger","*"],Ine={transformPanelWrap:Go("transformPanelWrap",[en("* => void",sx("@transformPanel",[rx()],{optional:!0}))]),transformPanel:Go("transformPanel",[kn("void",_t({opacity:0,transform:"scale(1, 0.8)"})),en("void => showing",Cn("120ms cubic-bezier(0, 0, 0.2, 1)",_t({opacity:1,transform:"scale(1, 1)"}))),en("* => void",Cn("100ms linear",_t({opacity:0})))])};let wN=0;const CN=new A("mat-select-scroll-strategy"),Rne=new A("MAT_SELECT_CONFIG"),Fne={provide:CN,deps:[Dn],useFactory:function One(i){return()=>i.scrollStrategies.reposition()}},Pne=new A("MatSelectTrigger");class Nne{constructor(t,e){this.source=t,this.value=e}}const Lne=ff(Dv(uf(MA(class{constructor(i,t,e,n,o){this._elementRef=i,this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=o,this.stateChanges=new ne}}))));let Bne=(()=>{class i extends Lne{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(LP.required)??!1}set required(e){this._required=me(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=me(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=me(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=dr(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}constructor(e,n,o,r,s,a,l,c,d,u,h,f,m,p){super(s,r,l,c,u),this._viewportRuler=e,this._changeDetectorRef=n,this._ngZone=o,this._dir=a,this._parentFormField=d,this._liveAnnouncer=m,this._defaultOptions=p,this._panelOpen=!1,this._compareWith=(g,b)=>g===b,this._uid="mat-select-"+wN++,this._triggerAriaLabelledBy=null,this._destroy=new ne,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+wN++,this._panelDoneAnimatingStream=new ne,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=xx(()=>{const g=this.options;return g?g.changes.pipe(to(g),Dl(()=>rn(...g.map(b=>b.onSelectionChange)))):this._ngZone.onStable.pipe(ri(1),Dl(()=>this.optionSelectionChanges))}),this.openedChange=new te,this._openedStream=this.openedChange.pipe(kt(g=>g),Bt(()=>{})),this._closedStream=this.openedChange.pipe(kt(g=>!g),Bt(()=>{})),this.selectionChange=new te,this.valueChange=new te,this._trackedModal=null,this.ngControl&&(this.ngControl.valueAccessor=this),null!=p?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=p.typeaheadDebounceInterval),this._scrollStrategyFactory=f,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}ngOnInit(){this._selectionModel=new dx(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(nu(),Xe(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Xe(this._destroy)).subscribe(e=>{e.added.forEach(n=>n.select()),e.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(to(null),Xe(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),n=this.ngControl;if(e!==this._triggerAriaLabelledBy){const o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?o.setAttribute("aria-labelledby",e):o.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(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}_applyModalPanelOwnership(){const e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;const n=`${this.id}-panel`;this._trackedModal&&_v(this._trackedModal,"aria-owns",n),mA(e,"aria-owns",n),this._trackedModal=e}_clearFromModal(){this._trackedModal&&(_v(this._trackedModal,"aria-owns",`${this.id}-panel`),this._trackedModal=null)}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(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,o=40===n||38===n||37===n||39===n,r=13===n||32===n,s=this._keyManager;if(!s.isTyping()&&r&&!Bn(e)||(this.multiple||e.altKey)&&o)e.preventDefault(),this.open();else if(!this.multiple){const a=this.selected;s.onKeydown(e);const l=this.selected;l&&a!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){const n=this._keyManager,o=e.keyCode,r=40===o||38===o,s=n.isTyping();if(r&&e.altKey)e.preventDefault(),this.close();else if(s||13!==o&&32!==o||!n.activeItem||Bn(e))if(!s&&this._multiple&&65===o&&e.ctrlKey){e.preventDefault();const a=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(a?l.select():l.deselect())})}else{const a=n.activeItemIndex;n.onKeydown(e),this._multiple&&r&&e.shiftKey&&n.activeItem&&n.activeItemIndex!==a&&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(ri(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(o=>{if(this._selectionModel.isSelected(o))return!1;try{return null!=o.value&&this._compareWith(o.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)}_skipPredicate(e){return e.disabled}_initKeyManager(){this._keyManager=new i9(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=rn(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Xe(e)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),rn(...this.options.map(n=>n._stateChanges)).pipe(Xe(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,n){const o=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(o!==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)),o!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((n,o)=>this.sortComparator?this.sortComparator(n,o,e):e.indexOf(n)-e.indexOf(o)),this.stateChanges.next()}}_propagateChanges(e){let n=null;n=this.multiple?this.selected.map(o=>o.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(){if(this._keyManager)if(this.empty){let e=-1;for(let n=0;n0}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}static#e=this.\u0275fac=function(n){return new(n||i)(_(bx),_(oi),_(W),_(EA),_(ee),_(hr,8),_(Od,8),_(Rd,8),_(cx,8),_(bo,10),Gr("tabindex"),_(CN),_(x9),_(Rne,8))};static#t=this.\u0275dir=O({type:i,viewQuery:function(n,o){if(1&n&&(ct(wne,5),ct(Cne,5),ct(xN,5)),2&n){let r;ae(r=le())&&(o.trigger=r.first),ae(r=le())&&(o.panel=r.first),ae(r=le())&&(o._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:[q,ti]})}return i})(),up=(()=>{class i extends Bne{constructor(){super(...arguments),this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._skipPredicate=e=>!this.panelOpen&&e.disabled}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Xe(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}open(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(e){const n=this.options.toArray()[e];if(n){const o=this.panel.nativeElement,r=function U9(i,t,e){if(e.length){let n=t.toArray(),o=e.toArray(),r=0;for(let s=0;se+n?Math.max(0,i-n+t):e}(s.offsetTop,s.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new Nne(this,e)}_getOverlayWidth(e){return"auto"===this.panelWidth?(e instanceof yx?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=me(e),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=lt(i)))(o||i)}}();static#t=this.\u0275cmp=xe({type:i,selectors:[["mat-select"]],contentQueries:function(n,o,r){if(1&n&&(Je(r,Pne,5),Je(r,Lc,5),Je(r,LA,5)),2&n){let s;ae(s=le())&&(o.customTrigger=s.first),ae(s=le())&&(o.options=s),ae(s=le())&&(o.optionGroups=s)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox","ngSkipHydration","",1,"mat-mdc-select"],hostVars:19,hostBindings:function(n,o){1&n&&$("keydown",function(s){return o._handleKeydown(s)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),2&n&&(Me("id",o.id)("tabindex",o.tabIndex)("aria-controls",o.panelOpen?o.id+"-panel":null)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState)("aria-activedescendant",o._getAriaActiveDescendant()),be("mat-mdc-select-disabled",o.disabled)("mat-mdc-select-invalid",o.errorState)("mat-mdc-select-required",o.required)("mat-mdc-select-empty",o.empty)("mat-mdc-select-multiple",o.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",panelWidth:"panelWidth",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matSelect"],features:[Se([{provide:lx,useExisting:i},{provide:NA,useExisting:i}]),q],ngContentSelectors:Tne,decls:11,vars:10,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","aria-hidden","true"],["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(n,o){if(1&n&&(yt(Ane),k(0,"div",0,1),$("click",function(){return o.toggle()}),k(3,"div",2),U(4,kne,2,1,"span",3),U(5,Mne,3,2,"span",4),S(),k(6,"div",5)(7,"div",6),Qs(),k(8,"svg",7),De(9,"path",8),S()()()(),U(10,Ene,3,9,"ng-template",9),$("backdropClick",function(){return o.close()})("attach",function(){return o._onAttached()})("detach",function(){return o.close()})),2&n){const r=fn(1);R(3),T("ngSwitch",o.empty),Me("id",o._valueId),R(1),T("ngSwitchCase",!0),R(1),T("ngSwitchCase",!1),R(5),T("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||r)("cdkConnectedOverlayOpen",o.panelOpen)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)}},dependencies:[$h,Ba,Uh,IE,xN,yx],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[Ine.transformPanel]},changeDetection:0})}return i})(),Rs=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({providers:[Fne],imports:[Fo,Hd,BA,Oe,Bd,vo,BA,Oe]})}return i})(),Vne=(()=>{class i{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=me(e)}get inset(){return this._inset}set inset(e){this._inset=me(e)}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275cmp=xe({type:i,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(n,o){2&n&&(Me("aria-orientation",o.vertical?"vertical":"horizontal"),be("mat-divider-vertical",o.vertical)("mat-divider-horizontal",!o.vertical)("mat-divider-inset",o.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(n,o){},styles:[".mat-divider{--mat-divider-width:1px;display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color);border-top-width:var(--mat-divider-width)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color);border-right-width:var(--mat-divider-width)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0})}return i})(),kN=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({imports:[Oe,Oe]})}return i})();const DN=["*"],SN='@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-list-divider::after{content:"";display:block;border-bottom-width:1px;border-bottom-style:solid}}.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item__wrapper{display:block}.mdc-list-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer}.mdc-list-item:focus{outline:none}.mdc-list-item.mdc-list-item--with-one-line{height:48px}.mdc-list-item.mdc-list-item--with-two-lines{height:64px}.mdc-list-item.mdc-list-item--with-three-lines{height:88px}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--disabled,.mdc-list-item.mdc-list-item--non-interactive{cursor:auto}.mdc-list-item:not(.mdc-list-item--selected):focus::before,.mdc-list-item.mdc-ripple-upgraded--background-focused::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-list-item:not(.mdc-list-item--selected):focus::before,.mdc-list-item.mdc-ripple-upgraded--background-focused::before{border-color:CanvasText}}.mdc-list-item.mdc-list-item--selected::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:3px double rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item.mdc-list-item--selected::before{border-color:CanvasText}}.mdc-list-item.mdc-list-item--selected:focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:3px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item.mdc-list-item--selected:focus::before{border-color:CanvasText}}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__content[for]{pointer-events:none}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item__overline-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-three-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-three-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start,.mdc-list-item--with-leading-avatar .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-avatar .mdc-list-item__start{border-radius:50%}.mdc-list-item--with-leading-icon.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start,.mdc-list-item--with-leading-icon .mdc-list-item__start[dir=rtl]{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-thumbnail.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-thumbnail.mdc-list-item,.mdc-list-item--with-leading-thumbnail.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-thumbnail .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-thumbnail .mdc-list-item__start,.mdc-list-item--with-leading-thumbnail .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-image.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-image.mdc-list-item,.mdc-list-item--with-leading-image.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-image .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-image .mdc-list-item__start,.mdc-list-item--with-leading-image .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-one-line{height:72px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-video.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-video.mdc-list-item,.mdc-list-item--with-leading-video.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-video .mdc-list-item__start{margin-left:0;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-video .mdc-list-item__start,.mdc-list-item--with-leading-video .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-one-line{height:72px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-checkbox.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start[dir=rtl]{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-radio.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-radio.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-radio .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-radio .mdc-list-item__start[dir=rtl]{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-switch.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-switch.mdc-list-item,.mdc-list-item--with-leading-switch.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-switch .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-switch .mdc-list-item__start,.mdc-list-item--with-leading-switch .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item,.mdc-list-item--with-trailing-icon.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-icon .mdc-list-item__end,.mdc-list-item--with-trailing-icon .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item,.mdc-list-item--with-trailing-meta.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-trailing-meta .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-caption-font-family);font-size:var(--mdc-typography-caption-font-size);line-height:var(--mdc-typography-caption-line-height);font-weight:var(--mdc-typography-caption-font-weight);letter-spacing:var(--mdc-typography-caption-letter-spacing);text-decoration:var(--mdc-typography-caption-text-decoration);text-transform:var(--mdc-typography-caption-text-transform)}.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end[dir=rtl]{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-radio.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-radio .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-radio .mdc-list-item__end[dir=rtl]{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-switch.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-switch.mdc-list-item,.mdc-list-item--with-trailing-switch.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-switch .mdc-list-item__end{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-switch .mdc-list-item__end,.mdc-list-item--with-trailing-switch .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-switch.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item--with-overline.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-overline.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-overline.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-overline.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item{padding-left:16px;padding-right:16px}[dir=rtl] .mdc-list-item,.mdc-list-item[dir=rtl]{padding-left:16px;padding-right:16px}.mdc-list-group .mdc-deprecated-list{padding:0}.mdc-list-group__subheader{margin:calc((3rem - 1.5rem)/2) 16px}.mdc-list-divider{padding:0;background-clip:content-box}.mdc-list-divider.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset{padding-left:16px;padding-right:auto}[dir=rtl] .mdc-list-divider.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset,.mdc-list-divider.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset[dir=rtl]{padding-left:auto;padding-right:16px}.mdc-list-divider.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset{padding-left:auto;padding-right:16px}[dir=rtl] .mdc-list-divider.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset,.mdc-list-divider.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset[dir=rtl]{padding-left:16px;padding-right:auto}.mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset{padding-left:0px;padding-right:auto}[dir=rtl] .mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset[dir=rtl]{padding-left:auto;padding-right:0px}[dir=rtl] .mdc-list-divider,.mdc-list-divider[dir=rtl]{padding:0}.mdc-list-item{background-color:var(--mdc-list-list-item-container-color)}.mdc-list-item.mdc-list-item--selected{background-color:var(--mdc-list-list-item-selected-container-color)}.mdc-list-item--with-one-line{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-one-line.mdc-list-item--with-leading-avatar,.mdc-list-item--with-one-line.mdc-list-item--with-leading-icon,.mdc-list-item--with-one-line.mdc-list-item--with-leading-thumbnail,.mdc-list-item--with-one-line.mdc-list-item--with-leading-checkbox,.mdc-list-item--with-one-line.mdc-list-item--with-leading-radio,.mdc-list-item--with-one-line.mdc-list-item--with-leading-switch{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-one-line.mdc-list-item--with-leading-image,.mdc-list-item--with-one-line.mdc-list-item--with-leading-video{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-two-lines{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-two-lines.mdc-list-item--with-leading-avatar,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-icon,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-thumbnail,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-checkbox,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-radio,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-switch,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-image,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-video{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-three-lines{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mdc-list-list-item-one-line-container-height)}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mdc-list-list-item-two-line-container-height)}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mdc-list-list-item-three-line-container-height)}.mdc-list-item__primary-text{color:var(--mdc-list-list-item-label-text-color)}.mdc-list-item__primary-text{font-family:var(--mdc-list-list-item-label-text-font);line-height:var(--mdc-list-list-item-label-text-line-height);font-size:var(--mdc-list-list-item-label-text-size);font-weight:var(--mdc-list-list-item-label-text-weight);letter-spacing:var(--mdc-list-list-item-label-text-tracking)}.mdc-list-item__secondary-text{color:var(--mdc-list-list-item-supporting-text-color)}.mdc-list-item__secondary-text{font-family:var(--mdc-list-list-item-supporting-text-font);line-height:var(--mdc-list-list-item-supporting-text-line-height);font-size:var(--mdc-list-list-item-supporting-text-size);font-weight:var(--mdc-list-list-item-supporting-text-weight);letter-spacing:var(--mdc-list-list-item-supporting-text-tracking)}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-leading-icon-color)}.mdc-list-item--with-leading-icon .mdc-list-item__start{width:var(--mdc-list-list-item-leading-icon-size);height:var(--mdc-list-list-item-leading-icon-size)}.mdc-list-item--with-leading-icon .mdc-list-item__start>i{font-size:var(--mdc-list-list-item-leading-icon-size)}.mdc-list-item--with-leading-icon .mdc-list-item__start .mdc-list-item__icon{font-size:var(--mdc-list-list-item-leading-icon-size);width:var(--mdc-list-list-item-leading-icon-size);height:var(--mdc-list-list-item-leading-icon-size)}.mdc-list-item--with-leading-icon .mdc-list-item__start .mdc-list-item__icon,.mdc-list-item--with-leading-icon .mdc-list-item__start .mdc-list-item__icon>.materialdesignWizIconSvgsSvgIcon{display:block}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mdc-list-list-item-leading-avatar-size);height:var(--mdc-list-list-item-leading-avatar-size)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-supporting-text-color)}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mdc-list-list-item-trailing-supporting-text-font);line-height:var(--mdc-list-list-item-trailing-supporting-text-line-height);font-size:var(--mdc-list-list-item-trailing-supporting-text-size);font-weight:var(--mdc-list-list-item-trailing-supporting-text-weight);letter-spacing:var(--mdc-list-list-item-trailing-supporting-text-tracking)}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-icon-color)}.mdc-list-item--with-trailing-icon .mdc-list-item__end{width:var(--mdc-list-list-item-trailing-icon-size);height:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--with-trailing-icon .mdc-list-item__end>i{font-size:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--with-trailing-icon .mdc-list-item__end .mdc-list-item__icon{font-size:var(--mdc-list-list-item-trailing-icon-size);width:var(--mdc-list-list-item-trailing-icon-size);height:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--with-trailing-icon .mdc-list-item__end .mdc-list-item__icon,.mdc-list-item--with-trailing-icon .mdc-list-item__end .mdc-list-item__icon>.materialdesignWizIconSvgsSvgIcon{display:block}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-selected-trailing-icon-color)}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text,.mdc-list-item--disabled .mdc-list-item__overline-text{opacity:var(--mdc-list-list-item-disabled-label-text-opacity)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-disabled-leading-icon-color)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{opacity:var(--mdc-list-list-item-disabled-leading-icon-opacity)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-disabled-trailing-icon-color)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{opacity:var(--mdc-list-list-item-disabled-trailing-icon-opacity)}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mdc-list-list-item-hover-label-text-color)}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mdc-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mdc-list-list-item-hover-trailing-icon-color)}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mdc-list-list-item-focus-label-text-color)}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mdc-list-list-item-disabled-label-text-color)}.mdc-list-item:hover::before{background-color:var(--mdc-list-list-item-hover-state-layer-color);opacity:var(--mdc-list-list-item-hover-state-layer-opacity)}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mdc-list-list-item-disabled-state-layer-color);opacity:var(--mdc-list-list-item-disabled-state-layer-opacity)}.mdc-list-item:focus::before{background-color:var(--mdc-list-list-item-focus-state-layer-color);opacity:var(--mdc-list-list-item-focus-state-layer-opacity)}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mdc-list-list-item-disabled-label-text-opacity)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mdc-list-list-item-leading-avatar-shape);background-color:var(--mdc-list-list-item-leading-avatar-color)}.mat-mdc-list-base{--mdc-list-list-item-container-shape:0;--mdc-list-list-item-leading-avatar-shape:50%;--mdc-list-list-item-container-color:transparent;--mdc-list-list-item-selected-container-color:transparent;--mdc-list-list-item-leading-avatar-color:transparent;--mdc-list-list-item-leading-icon-size:24px;--mdc-list-list-item-leading-avatar-size:40px;--mdc-list-list-item-trailing-icon-size:24px;--mdc-list-list-item-disabled-state-layer-color:transparent;--mdc-list-list-item-disabled-state-layer-opacity:0;--mdc-list-list-item-disabled-label-text-opacity:0.38;--mdc-list-list-item-disabled-leading-icon-opacity:0.38;--mdc-list-list-item-disabled-trailing-icon-opacity:0.38}.cdk-high-contrast-active a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none}.mat-mdc-list-item>.mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-mdc-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}',MN=["unscopedContent"],Hne=["text"],zne=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],jne=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"];function $ne(i,t){1&i&&Z(0,4)}function Une(i,t){if(1&i&&(k(0,"div",11),De(1,"input",12),k(2,"div",13),Qs(),k(3,"svg",14),De(4,"path",15),S(),vu(),De(5,"div",16),S()()),2&i){const e=ue();be("mdc-checkbox--disabled",e.disabled),R(1),T("checked",e.selected)("disabled",e.disabled)}}function Wne(i,t){if(1&i&&(k(0,"div",17),De(1,"input",18),k(2,"div",19),De(3,"div",20)(4,"div",21),S()()),2&i){const e=ue();be("mdc-radio--disabled",e.disabled),R(1),T("checked",e.selected)("disabled",e.disabled)}}function Gne(i,t){}function qne(i,t){if(1&i&&(k(0,"span",22),U(1,Gne,0,0,"ng-template",23),S()),2&i){ue();const e=fn(3);R(1),T("ngTemplateOutlet",e)}}function Yne(i,t){}function Xne(i,t){if(1&i&&(k(0,"span",24),U(1,Yne,0,0,"ng-template",23),S()),2&i){ue();const e=fn(5);R(1),T("ngTemplateOutlet",e)}}function Kne(i,t){}function Zne(i,t){1&i&&U(0,Kne,0,0,"ng-template",23),2&i&&(ue(),T("ngTemplateOutlet",fn(1)))}function Qne(i,t){}function Jne(i,t){if(1&i&&(k(0,"span",25),U(1,Qne,0,0,"ng-template",23),S()),2&i){ue();const e=fn(3);R(1),T("ngTemplateOutlet",e)}}function eoe(i,t){}function toe(i,t){if(1&i&&(k(0,"span",25),U(1,eoe,0,0,"ng-template",23),S()),2&i){ue();const e=fn(5);R(1),T("ngTemplateOutlet",e)}}function ioe(i,t){}function noe(i,t){1&i&&U(0,ioe,0,0,"ng-template",23),2&i&&(ue(),T("ngTemplateOutlet",fn(1)))}const ooe=[[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["mat-divider"]],[["","matListItemAvatar",""],["","matListItemIcon",""]]],roe=["[matListItemTitle]","[matListItemLine]","*","mat-divider","[matListItemAvatar],[matListItemIcon]"],EN=new A("ListOption");let AN=(()=>{class i{constructor(e){this._elementRef=e}static#e=this.\u0275fac=function(n){return new(n||i)(_(ee))};static#t=this.\u0275dir=O({type:i,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return i})(),TN=(()=>{class i{constructor(e){this._elementRef=e}static#e=this.\u0275fac=function(n){return new(n||i)(_(ee))};static#t=this.\u0275dir=O({type:i,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return i})(),soe=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275dir=O({type:i,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return i})(),IN=(()=>{class i{constructor(e){this._listOption=e}_isAlignedAtStart(){return!this._listOption||"after"===this._listOption?._getTogglePosition()}static#e=this.\u0275fac=function(n){return new(n||i)(_(EN,8))};static#t=this.\u0275dir=O({type:i,hostVars:4,hostBindings:function(n,o){2&n&&be("mdc-list-item__start",o._isAlignedAtStart())("mdc-list-item__end",!o._isAlignedAtStart())}})}return i})(),aoe=(()=>{class i extends IN{static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=lt(i)))(o||i)}}();static#t=this.\u0275dir=O({type:i,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[q]})}return i})(),loe=(()=>{class i extends IN{static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=lt(i)))(o||i)}}();static#t=this.\u0275dir=O({type:i,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[q]})}return i})();const coe=new A("MAT_LIST_CONFIG");let _l=(()=>{class i{constructor(){this._isNonInteractive=!0,this._disableRipple=!1,this._disabled=!1,this._defaultOptions=J(coe,{optional:!0})}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=me(e)}get disabled(){return this._disabled}set disabled(e){this._disabled=me(e)}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275dir=O({type:i,hostVars:1,hostBindings:function(n,o){2&n&&Me("aria-disabled",o.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return i})(),wx=(()=>{class i{set lines(e){this._explicitLines=dr(e,null),this._updateItemLines(!1)}get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(e){this._disableRipple=me(e)}get disabled(){return this._disabled||!!this._listBase?.disabled}set disabled(e){this._disabled=me(e)}get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(e,n,o,r,s,a){this._elementRef=e,this._ngZone=n,this._listBase=o,this._platform=r,this._explicitLines=null,this._disableRipple=!1,this._disabled=!1,this._subscriptions=new je,this._rippleRenderer=null,this._hasUnscopedTextContent=!1,this.rippleConfig=s||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement="button"===this._hostElement.nodeName.toLowerCase(),this._noopAnimations="NoopAnimations"===a,o&&!o._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),null!==this._rippleRenderer&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!(!this._avatars.length&&!this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new Rc(this,this._ngZone,this._hostElement,this._platform),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(rn(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(e){if(!this._lines||!this._titles||!this._unscopedContent)return;e&&this._checkDomForUnscopedTextContent();const n=this._explicitLines??this._inferLinesFromContent(),o=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",n<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",n<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",2===n),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",3===n),this._hasUnscopedTextContent){const r=0===this._titles.length&&1===n;o.classList.toggle("mdc-list-item__primary-text",r),o.classList.toggle("mdc-list-item__secondary-text",!r)}else o.classList.remove("mdc-list-item__primary-text"),o.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let e=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(e+=1),e}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(e=>e.nodeType!==e.COMMENT_NODE).some(e=>!(!e.textContent||!e.textContent.trim()))}static#e=this.\u0275fac=function(n){return new(n||i)(_(ee),_(W),_(_l,8),_(dt),_(Fc,8),_(Ot,8))};static#t=this.\u0275dir=O({type:i,contentQueries:function(n,o,r){if(1&n&&(Je(r,aoe,4),Je(r,loe,4)),2&n){let s;ae(s=le())&&(o._avatars=s),ae(s=le())&&(o._icons=s)}},hostVars:4,hostBindings:function(n,o){2&n&&(Me("aria-disabled",o.disabled)("disabled",o._isButtonElement&&o.disabled||null),be("mdc-list-item--disabled",o.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return i})(),doe=(()=>{class i extends _l{static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=lt(i)))(o||i)}}();static#t=this.\u0275cmp=xe({type:i,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[Se([{provide:_l,useExisting:i}]),q],ngContentSelectors:DN,decls:1,vars:0,template:function(n,o){1&n&&(yt(),Z(0))},styles:[SN],encapsulation:2,changeDetection:0})}return i})(),uoe=(()=>{class i extends wx{get activated(){return this._activated}set activated(e){this._activated=me(e)}constructor(e,n,o,r,s,a){super(e,n,o,r,s,a),this._activated=!1}_getAriaCurrent(){return"A"===this._hostElement.nodeName&&this._activated?"page":null}static#e=this.\u0275fac=function(n){return new(n||i)(_(ee),_(W),_(_l,8),_(dt),_(Fc,8),_(Ot,8))};static#t=this.\u0275cmp=xe({type:i,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(n,o,r){if(1&n&&(Je(r,TN,5),Je(r,AN,5),Je(r,soe,5)),2&n){let s;ae(s=le())&&(o._lines=s),ae(s=le())&&(o._titles=s),ae(s=le())&&(o._meta=s)}},viewQuery:function(n,o){if(1&n&&(ct(MN,5),ct(Hne,5)),2&n){let r;ae(r=le())&&(o._unscopedContent=r.first),ae(r=le())&&(o._itemText=r.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:11,hostBindings:function(n,o){2&n&&(Me("aria-current",o._getAriaCurrent()),be("mdc-list-item--activated",o.activated)("mdc-list-item--with-leading-avatar",0!==o._avatars.length)("mdc-list-item--with-leading-icon",0!==o._icons.length)("mdc-list-item--with-trailing-meta",0!==o._meta.length)("_mat-animation-noopable",o._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[q],ngContentSelectors:jne,decls:10,vars:0,consts:[[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],["unscopedContent",""],[1,"mat-mdc-focus-indicator"]],template:function(n,o){1&n&&(yt(zne),Z(0),k(1,"span",0),Z(2,1),Z(3,2),k(4,"span",1,2),$("cdkObserveContent",function(){return o._updateItemLines(!0)}),Z(6,3),S()(),Z(7,4),Z(8,5),De(9,"div",3))},dependencies:[aA],encapsulation:2,changeDetection:0})}return i})();const ON=new A("SelectionList");let RN=(()=>{class i extends wx{get checkboxPosition(){return this.togglePosition}set checkboxPosition(e){this.togglePosition=e}get color(){return this._color||this._selectionList.color}set color(e){this._color=e}get value(){return this._value}set value(e){this.selected&&e!==this.value&&this._inputsInitialized&&(this.selected=!1),this._value=e}get selected(){return this._selectionList.selectedOptions.isSelected(this)}set selected(e){const n=me(e);n!==this._selected&&(this._setSelected(n),(n||this._selectionList.multiple)&&this._selectionList._reportValueChange())}constructor(e,n,o,r,s,a,l){super(e,n,o,r,a,l),this._selectionList=o,this._changeDetectorRef=s,this.selectedChange=new te,this.togglePosition="after",this._selected=!1,this._inputsInitialized=!1}ngOnInit(){const e=this._selectionList;e._value&&e._value.some(o=>e.compareWith(this._value,o))&&this._setSelected(!0);const n=this._selected;Promise.resolve().then(()=>{(this._selected||n)&&(this.selected=!0,this._changeDetectorRef.markForCheck())}),this._inputsInitialized=!0}ngOnDestroy(){super.ngOnDestroy(),this.selected&&Promise.resolve().then(()=>{this.selected=!1})}toggle(){this.selected=!this.selected}focus(){this._hostElement.focus()}getLabel(){return(this._titles?.get(0)?._elementRef.nativeElement||this._unscopedContent?.nativeElement)?.textContent||""}_hasCheckboxAt(e){return this._selectionList.multiple&&this._getTogglePosition()===e}_hasRadioAt(e){return!this._selectionList.multiple&&this._getTogglePosition()===e&&!this._selectionList.hideSingleSelectionIndicator}_hasIconsOrAvatarsAt(e){return this._hasProjected("icons",e)||this._hasProjected("avatars",e)}_hasProjected(e,n){return this._getTogglePosition()!==n&&("avatars"===e?0!==this._avatars.length:0!==this._icons.length)}_handleBlur(){this._selectionList._onTouched()}_getTogglePosition(){return this.togglePosition||"after"}_setSelected(e){return e!==this._selected&&(this._selected=e,e?this._selectionList.selectedOptions.select(this):this._selectionList.selectedOptions.deselect(this),this.selectedChange.emit(e),this._changeDetectorRef.markForCheck(),!0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_toggleOnInteraction(){this.disabled||(this._selectionList.multiple?(this.selected=!this.selected,this._selectionList._emitChangeEvent([this])):this.selected||(this.selected=!0,this._selectionList._emitChangeEvent([this])))}_setTabindex(e){this._hostElement.setAttribute("tabindex",e+"")}static#e=this.\u0275fac=function(n){return new(n||i)(_(ee),_(W),_(ON),_(dt),_(oi),_(Fc,8),_(Ot,8))};static#t=this.\u0275cmp=xe({type:i,selectors:[["mat-list-option"]],contentQueries:function(n,o,r){if(1&n&&(Je(r,TN,5),Je(r,AN,5)),2&n){let s;ae(s=le())&&(o._lines=s),ae(s=le())&&(o._titles=s)}},viewQuery:function(n,o){if(1&n&&ct(MN,5),2&n){let r;ae(r=le())&&(o._unscopedContent=r.first)}},hostAttrs:["role","option",1,"mat-mdc-list-item","mat-mdc-list-option","mdc-list-item"],hostVars:25,hostBindings:function(n,o){1&n&&$("blur",function(){return o._handleBlur()})("click",function(){return o._toggleOnInteraction()}),2&n&&(Me("aria-selected",o.selected),be("mdc-list-item--selected",o.selected&&!o._selectionList.multiple&&o._selectionList.hideSingleSelectionIndicator)("mdc-list-item--with-leading-avatar",o._hasProjected("avatars","before"))("mdc-list-item--with-leading-icon",o._hasProjected("icons","before"))("mdc-list-item--with-trailing-icon",o._hasProjected("icons","after"))("mat-mdc-list-option-with-trailing-avatar",o._hasProjected("avatars","after"))("mdc-list-item--with-leading-checkbox",o._hasCheckboxAt("before"))("mdc-list-item--with-trailing-checkbox",o._hasCheckboxAt("after"))("mdc-list-item--with-leading-radio",o._hasRadioAt("before"))("mdc-list-item--with-trailing-radio",o._hasRadioAt("after"))("mat-accent","primary"!==o.color&&"warn"!==o.color)("mat-warn","warn"===o.color)("_mat-animation-noopable",o._noopAnimations))},inputs:{togglePosition:"togglePosition",checkboxPosition:"checkboxPosition",color:"color",value:"value",selected:"selected"},outputs:{selectedChange:"selectedChange"},exportAs:["matListOption"],features:[Se([{provide:wx,useExisting:i},{provide:EN,useExisting:i}]),q],ngContentSelectors:roe,decls:20,vars:6,consts:[["icons",""],["checkbox",""],["radio",""],["class","mdc-list-item__start mat-mdc-list-option-checkbox-before",4,"ngIf"],["class","mdc-list-item__start mat-mdc-list-option-radio-before",4,"ngIf"],[3,"ngIf"],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],["unscopedContent",""],["class","mdc-list-item__end",4,"ngIf"],[1,"mat-mdc-focus-indicator"],[1,"mdc-checkbox"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","disabled"],[1,"mdc-checkbox__background"],["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"],[1,"mdc-radio"],["type","radio",1,"mdc-radio__native-control",3,"checked","disabled"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],[1,"mdc-list-item__start","mat-mdc-list-option-checkbox-before"],[3,"ngTemplateOutlet"],[1,"mdc-list-item__start","mat-mdc-list-option-radio-before"],[1,"mdc-list-item__end"]],template:function(n,o){1&n&&(yt(ooe),U(0,$ne,1,0,"ng-template",null,0,yc),U(2,Une,6,4,"ng-template",null,1,yc),U(4,Wne,5,4,"ng-template",null,2,yc),U(6,qne,2,1,"span",3),U(7,Xne,2,1,"span",4),U(8,Zne,1,1,"ng-template",5),k(9,"span",6),Z(10),Z(11,1),k(12,"span",7,8),$("cdkObserveContent",function(){return o._updateItemLines(!0)}),Z(14,2),S()(),U(15,Jne,2,1,"span",9),U(16,toe,2,1,"span",9),U(17,noe,1,1,"ng-template",5),Z(18,3),De(19,"div",10)),2&n&&(R(6),T("ngIf",o._hasCheckboxAt("before")),R(1),T("ngIf",o._hasRadioAt("before")),R(1),T("ngIf",o._hasIconsOrAvatarsAt("before")),R(7),T("ngIf",o._hasCheckboxAt("after")),R(1),T("ngIf",o._hasRadioAt("after")),R(1),T("ngIf",o._hasIconsOrAvatarsAt("after")))},dependencies:[aA,ar,Gb],styles:['.mat-mdc-list-option-with-trailing-avatar.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mat-mdc-list-option-with-trailing-avatar.mdc-list-item,.mat-mdc-list-option-with-trailing-avatar.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mat-mdc-list-option-with-trailing-avatar .mdc-list-item__end{margin-left:16px;margin-right:16px}[dir=rtl] .mat-mdc-list-option-with-trailing-avatar .mdc-list-item__end,.mat-mdc-list-option-with-trailing-avatar .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:16px}.mat-mdc-list-option-with-trailing-avatar .mdc-list-item__end{width:40px;height:40px}.mat-mdc-list-option-with-trailing-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mat-mdc-list-option-with-trailing-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mat-mdc-list-option-with-trailing-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mat-mdc-list-option-with-trailing-avatar .mdc-list-item__end{border-radius:50%}.mat-mdc-list-option .mdc-touch-target-wrapper{display:inline}.mat-mdc-list-option .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}.mat-mdc-list-option .mdc-checkbox[hidden]{display:none}.mat-mdc-list-option .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mat-mdc-list-option .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){.mat-mdc-list-option .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mat-mdc-list-option .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mat-mdc-list-option .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mat-mdc-list-option .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){.mat-mdc-list-option .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mat-mdc-list-option .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-list-option .mdc-checkbox__mixedmark{margin:0 1px}}.mat-mdc-list-option .mdc-checkbox--disabled{cursor:default;pointer-events:none}.mat-mdc-list-option .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}.mat-mdc-list-option .mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0}.mdc-checkbox--upgraded .mat-mdc-list-option .mdc-checkbox__checkmark{opacity:1}.mat-mdc-list-option .mdc-checkbox__checkmark-path{stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mat-mdc-list-option .mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0}.mat-mdc-list-option .mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mat-mdc-list-option .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mat-mdc-list-option .mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mat-mdc-list-option .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mat-mdc-list-option .mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mat-mdc-list-option .mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size, 48px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mat-mdc-list-option .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)}.mat-mdc-list-option .mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{opacity:1}.mat-mdc-list-option .mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-mdc-list-option .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mat-mdc-list-option .mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0}.mat-mdc-list-option .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mat-mdc-list-option .mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mat-mdc-list-option .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}.mat-mdc-list-option .mdc-radio[hidden]{display:none}.mat-mdc-list-option .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-list-option .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:""}.mat-mdc-list-option .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%}.mat-mdc-list-option .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%}.mat-mdc-list-option .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mat-mdc-list-option .mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mat-mdc-list-option .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}.mat-mdc-list-option .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mat-mdc-list-option .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){.mat-mdc-list-option .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mat-mdc-list-option .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{border-color:CanvasText}}.mat-mdc-list-option .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mat-mdc-list-option .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){.mat-mdc-list-option .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mat-mdc-list-option .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{border-color:CanvasText}}.mat-mdc-list-option .mdc-radio--disabled{cursor:default;pointer-events:none}.mat-mdc-list-option .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5)}.mat-mdc-list-option .mdc-radio__native-control:disabled+.mdc-radio__background,.mat-mdc-list-option [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mat-mdc-list-option .mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12}@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}}@media all and (-ms-high-contrast: none){.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox .mdc-checkbox__focus-ring{display:none}}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox__background{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)}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox__mixedmark{transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mat-mdc-list-option:not(._mat-animation-noopable) .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)}.mat-mdc-list-option:not(._mat-animation-noopable) .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)}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-radio__background::before{transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-list-option:not(._mat-animation-noopable) .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)}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-list-option:not(._mat-animation-noopable) .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)}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-radio__native-control:checked+.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)}.mat-mdc-list-option:not(._mat-animation-noopable) .mdc-radio__native-control:focus+.mdc-radio__background::before{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option .mdc-checkbox{padding:calc((40px - 18px) / 2);padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);margin:calc((40px - 40px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:rgba(0, 0, 0, 0.38);border-color:var(--mdc-checkbox-disabled-unselected-icon-color, rgba(0, 0, 0, 0.38));background-color:transparent}.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:rgba(0, 0, 0, 0.38);background-color:var(--mdc-checkbox-disabled-selected-icon-color, rgba(0, 0, 0, 0.38))}.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:#fff;color:var(--mdc-checkbox-selected-checkmark-color, "#fff")}.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:#fff;border-color:var(--mdc-checkbox-selected-checkmark-color, "#fff")}.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:#fff;color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:#fff;border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:#f44336;border-color:var(--mdc-checkbox-selected-icon-color, #f44336);background-color:#f44336;background-color:var(--mdc-checkbox-selected-icon-color, #f44336)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:#f44336;border-color:var(--mdc-checkbox-selected-icon-color, #f44336);background-color:#f44336;background-color:var(--mdc-checkbox-selected-icon-color, #f44336)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:#f44336;border-color:var(--mdc-checkbox-selected-icon-color, #f44336);background-color:#f44336;background-color:var(--mdc-checkbox-selected-icon-color, #f44336)}100%{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-list-option .mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mat-mdc-list-option .mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mat-mdc-list-option .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:#212121;border-color:var(--mdc-checkbox-unselected-hover-icon-color, #212121);background-color:transparent}.mat-mdc-list-option .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:#f44336;border-color:var(--mdc-checkbox-selected-hover-icon-color, #f44336);background-color:#f44336;background-color:var(--mdc-checkbox-selected-hover-icon-color, #f44336)}@keyframes mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336{0%{border-color:#212121;border-color:var(--mdc-checkbox-unselected-hover-icon-color, #212121);background-color:transparent}50%{border-color:#f44336;border-color:var(--mdc-checkbox-selected-hover-icon-color, #f44336);background-color:#f44336;background-color:var(--mdc-checkbox-selected-hover-icon-color, #f44336)}}@keyframes mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336{0%,80%{border-color:#f44336;border-color:var(--mdc-checkbox-selected-hover-icon-color, #f44336);background-color:#f44336;background-color:var(--mdc-checkbox-selected-hover-icon-color, #f44336)}100%{border-color:#212121;border-color:var(--mdc-checkbox-unselected-hover-icon-color, #212121);background-color:transparent}}.mat-mdc-list-option .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336}.mat-mdc-list-option .mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336}.mat-mdc-list-option .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-list-option .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:#212121;border-color:var(--mdc-checkbox-unselected-focus-icon-color, #212121);background-color:transparent}.mat-mdc-list-option .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:#f44336;border-color:var(--mdc-checkbox-selected-focus-icon-color, #f44336);background-color:#f44336;background-color:var(--mdc-checkbox-selected-focus-icon-color, #f44336)}@keyframes mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336{0%{border-color:#212121;border-color:var(--mdc-checkbox-unselected-focus-icon-color, #212121);background-color:transparent}50%{border-color:#f44336;border-color:var(--mdc-checkbox-selected-focus-icon-color, #f44336);background-color:#f44336;background-color:var(--mdc-checkbox-selected-focus-icon-color, #f44336)}}@keyframes mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336{0%,80%{border-color:#f44336;border-color:var(--mdc-checkbox-selected-focus-icon-color, #f44336);background-color:#f44336;background-color:var(--mdc-checkbox-selected-focus-icon-color, #f44336)}100%{border-color:#212121;border-color:var(--mdc-checkbox-unselected-focus-icon-color, #212121);background-color:transparent}}.mat-mdc-list-option .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-list-option .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-FF212121FFF4433600000000FFF44336}.mat-mdc-list-option .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-list-option .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-FF212121FFF4433600000000FFF44336}.mat-mdc-list-option .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-list-option .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:#f44336;border-color:var(--mdc-checkbox-selected-pressed-icon-color, #f44336);background-color:#f44336;background-color:var(--mdc-checkbox-selected-pressed-icon-color, #f44336)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:#f44336;border-color:var(--mdc-checkbox-selected-pressed-icon-color, #f44336);background-color:#f44336;background-color:var(--mdc-checkbox-selected-pressed-icon-color, #f44336)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:#f44336;border-color:var(--mdc-checkbox-selected-pressed-icon-color, #f44336);background-color:#f44336;background-color:var(--mdc-checkbox-selected-pressed-icon-color, #f44336)}100%{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-list-option .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mat-mdc-list-option .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__ripple::before,.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__ripple::after{background-color:black;background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, black)}.mat-mdc-list-option .mdc-checkbox:hover .mdc-checkbox__ripple::before,.mat-mdc-list-option .mdc-checkbox.mdc-ripple-surface--hover .mdc-checkbox__ripple::before{opacity:0.04;opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity, 0.04)}.mat-mdc-list-option .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__ripple::before,.mat-mdc-list-option .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__ripple::before{transition-duration:75ms;opacity:0.16;opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity, 0.16)}.mat-mdc-list-option .mdc-checkbox:not(.mdc-ripple-upgraded) .mdc-checkbox__ripple::after{transition:opacity 150ms linear}.mat-mdc-list-option .mdc-checkbox:not(.mdc-ripple-upgraded):active .mdc-checkbox__ripple::after{transition-duration:75ms;opacity:0.16;opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity, 0.16)}.mat-mdc-list-option .mdc-checkbox.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity, 0.16)}.mat-mdc-list-option .mdc-checkbox.mdc-checkbox--selected .mdc-checkbox__ripple::before,.mat-mdc-list-option .mdc-checkbox.mdc-checkbox--selected .mdc-checkbox__ripple::after{background-color:#f44336;background-color:var(--mdc-checkbox-selected-hover-state-layer-color, #f44336)}.mat-mdc-list-option .mdc-checkbox.mdc-checkbox--selected:hover .mdc-checkbox__ripple::before,.mat-mdc-list-option .mdc-checkbox.mdc-checkbox--selected.mdc-ripple-surface--hover .mdc-checkbox__ripple::before{opacity:0.04;opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity, 0.04)}.mat-mdc-list-option .mdc-checkbox.mdc-checkbox--selected.mdc-ripple-upgraded--background-focused .mdc-checkbox__ripple::before,.mat-mdc-list-option .mdc-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded):focus .mdc-checkbox__ripple::before{transition-duration:75ms;opacity:0.16;opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity, 0.16)}.mat-mdc-list-option .mdc-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded) .mdc-checkbox__ripple::after{transition:opacity 150ms linear}.mat-mdc-list-option .mdc-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded):active .mdc-checkbox__ripple::after{transition-duration:75ms;opacity:0.16;opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity, 0.16)}.mat-mdc-list-option .mdc-checkbox.mdc-checkbox--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity, 0.16)}.mat-mdc-list-option .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--selected .mdc-checkbox__ripple::before,.mat-mdc-list-option .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--selected .mdc-checkbox__ripple::after{background-color:#f44336;background-color:var(--mdc-checkbox-selected-hover-state-layer-color, #f44336)}.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__background{top:calc((40px - 18px) / 2);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);left:calc((40px - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2)}.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__native-control{top:calc((40px - 40px) / 2);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);right:calc((40px - 40px) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);left:calc((40px - 40px) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);width:40px;width:var(--mdc-checkbox-state-layer-size, 40px);height:40px;height:var(--mdc-checkbox-state-layer-size, 40px)}.mat-mdc-list-option .mdc-radio{padding:calc((40px - 20px) / 2);padding:calc((var(--mdc-radio-state-layer-size, 40px) - 20px) / 2)}.mat-mdc-list-option .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-list-option .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:#000;border-color:var(--mdc-radio-disabled-selected-icon-color, #000)}.mat-mdc-list-option .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-list-option .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:#000;border-color:var(--mdc-radio-disabled-selected-icon-color, #000)}.mat-mdc-list-option .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-list-option .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{opacity:0.38;opacity:var(--mdc-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-list-option .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-list-option .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{opacity:0.38;opacity:var(--mdc-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-list-option .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-list-option .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:#000;border-color:var(--mdc-radio-disabled-unselected-icon-color, #000)}.mat-mdc-list-option .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-list-option .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{opacity:0.38;opacity:var(--mdc-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-list-option .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-list-option .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:#f44336;border-color:var(--mdc-radio-selected-focus-icon-color, #f44336)}.mat-mdc-list-option .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-list-option .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:#f44336;border-color:var(--mdc-radio-selected-focus-icon-color, #f44336)}.mat-mdc-list-option .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:#f44336;border-color:var(--mdc-radio-selected-hover-icon-color, #f44336)}.mat-mdc-list-option .mdc-radio:hover .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:#f44336;border-color:var(--mdc-radio-selected-hover-icon-color, #f44336)}.mat-mdc-list-option .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:#f44336;border-color:var(--mdc-radio-selected-icon-color, #f44336)}.mat-mdc-list-option .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:#f44336;border-color:var(--mdc-radio-selected-icon-color, #f44336)}.mat-mdc-list-option .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:#f44336;border-color:var(--mdc-radio-selected-pressed-icon-color, #f44336)}.mat-mdc-list-option .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:#f44336;border-color:var(--mdc-radio-selected-pressed-icon-color, #f44336)}.mat-mdc-list-option .mdc-radio:hover .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:#212121;border-color:var(--mdc-radio-unselected-hover-icon-color, #212121)}.mat-mdc-list-option .mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-radio-unselected-icon-color, rgba(0, 0, 0, 0.54))}.mat-mdc-list-option .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-radio-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54))}.mat-mdc-list-option .mdc-radio .mdc-radio__background::before{top:calc(-1 * (40px - 20px) / 2);top:calc(-1 * (var(--mdc-radio-state-layer-size, 40px) - 20px) / 2);left:calc(-1 * (40px - 20px) / 2);left:calc(-1 * (var(--mdc-radio-state-layer-size, 40px) - 20px) / 2);width:40px;width:var(--mdc-radio-state-layer-size, 40px);height:40px;height:var(--mdc-radio-state-layer-size, 40px)}.mat-mdc-list-option .mdc-radio .mdc-radio__native-control{top:calc((40px - 40px) / 2);top:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);right:calc((40px - 40px) / 2);right:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);left:calc((40px - 40px) / 2);left:calc((var(--mdc-radio-state-layer-size, 40px) - var(--mdc-radio-state-layer-size, 40px)) / 2);width:40px;width:var(--mdc-radio-state-layer-size, 40px);height:40px;height:var(--mdc-radio-state-layer-size, 40px)}.mat-mdc-list-option .mdc-checkbox__native-control,.mat-mdc-list-option .mdc-radio__native-control{display:none}.cdk-high-contrast-active .mat-mdc-list-option.mdc-list-item--selected::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active .mat-mdc-list-option.mdc-list-item--selected [dir=rtl]::after{right:auto;left:16px}'],encapsulation:2,changeDetection:0})}return i})();const hoe={provide:wn,useExisting:ze(()=>FN),multi:!0};class foe{constructor(t,e){this.source=t,this.options=e}}let FN=(()=>{class i extends _l{get multiple(){return this._multiple}set multiple(e){const n=me(e);n!==this._multiple&&(this._multiple=n,this.selectedOptions=new dx(this._multiple,this.selectedOptions.selected))}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=me(e)}constructor(e,n){super(),this._element=e,this._ngZone=n,this._initialized=!1,this._destroyed=new ne,this._onChange=o=>{},this.selectionChange=new te,this.color="accent",this.compareWith=(o,r)=>o===r,this._multiple=!0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this.selectedOptions=new dx(this._multiple),this._onTouched=()=>{},this._selectionListDisabled=!1,this._handleFocusout=()=>{setTimeout(()=>{this._containsFocus()||this._resetActiveOption()})},this._handleFocusin=o=>{if(this.disabled)return;const r=this._items.toArray().findIndex(s=>s._elementRef.nativeElement.contains(o.target));r>-1?this._setActiveOption(r):this._resetActiveOption()},this._isNonInteractive=!1}ngAfterViewInit(){this._initialized=!0,this._setupRovingTabindex(),this._ngZone.runOutsideAngular(()=>{this._element.nativeElement.addEventListener("focusin",this._handleFocusin),this._element.nativeElement.addEventListener("focusout",this._handleFocusout)}),this._value&&this._setOptionsFromValues(this._value),this._watchForSelectionChange()}ngOnChanges(e){const n=e.disabled,o=e.disableRipple,r=e.hideSingleSelectionIndicator;(o&&!o.firstChange||n&&!n.firstChange||r&&!r.firstChange)&&this._markOptionsForCheck()}ngOnDestroy(){this._keyManager?.destroy(),this._element.nativeElement.removeEventListener("focusin",this._handleFocusin),this._element.nativeElement.removeEventListener("focusout",this._handleFocusout),this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}focus(e){this._element.nativeElement.focus(e)}selectAll(){return this._setAllOptionsSelected(!0)}deselectAll(){return this._setAllOptionsSelected(!1)}_reportValueChange(){if(this.options&&!this._isDestroyed){const e=this._getSelectedOptionValues();this._onChange(e),this._value=e}}_emitChangeEvent(e){this.selectionChange.emit(new foe(this,e))}writeValue(e){this._value=e,this.options&&this._setOptionsFromValues(e||[])}setDisabledState(e){this.disabled=e}get disabled(){return this._selectionListDisabled}set disabled(e){this._selectionListDisabled=me(e),this._selectionListDisabled&&this._keyManager?.setActiveItem(-1)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}_watchForSelectionChange(){this.selectedOptions.changed.pipe(Xe(this._destroyed)).subscribe(e=>{for(let n of e.added)n.selected=!0;for(let n of e.removed)n.selected=!1;this._containsFocus()||this._resetActiveOption()})}_setOptionsFromValues(e){this.options.forEach(n=>n._setSelected(!1)),e.forEach(n=>{const o=this.options.find(r=>!r.selected&&this.compareWith(r.value,n));o&&o._setSelected(!0)})}_getSelectedOptionValues(){return this.options.filter(e=>e.selected).map(e=>e.value)}_markOptionsForCheck(){this.options&&this.options.forEach(e=>e._markForCheck())}_setAllOptionsSelected(e,n){const o=[];return this.options.forEach(r=>{(!n||!r.disabled)&&r._setSelected(e)&&o.push(r)}),o.length&&this._reportValueChange(),o}get options(){return this._items}_handleKeydown(e){const n=this._keyManager.activeItem;if(13!==e.keyCode&&32!==e.keyCode||this._keyManager.isTyping()||!n||n.disabled)if(65===e.keyCode&&this.multiple&&!this._keyManager.isTyping()&&Bn(e,"ctrlKey")){const o=this.options.some(r=>!r.disabled&&!r.selected);e.preventDefault(),this._emitChangeEvent(this._setAllOptionsSelected(o,!0))}else this._keyManager.onKeydown(e);else e.preventDefault(),n._toggleOnInteraction()}_setupRovingTabindex(){this._keyManager=new yv(this._items).withHomeAndEnd().withTypeAhead().withWrap().skipPredicate(()=>this.disabled),this._resetActiveOption(),this._keyManager.change.subscribe(e=>this._setActiveOption(e)),this._items.changes.pipe(Xe(this._destroyed)).subscribe(()=>{const e=this._keyManager.activeItem;(!e||!this._items.toArray().indexOf(e))&&this._resetActiveOption()})}_setActiveOption(e){this._items.forEach((n,o)=>n._setTabindex(o===e?0:-1)),this._keyManager.updateActiveItem(e)}_resetActiveOption(){if(this.disabled)return void this._setActiveOption(-1);const e=this._items.find(n=>n.selected&&!n.disabled)||this._items.first;this._setActiveOption(e?this._items.toArray().indexOf(e):-1)}_containsFocus(){const e=Xh();return e&&this._element.nativeElement.contains(e)}static#e=this.\u0275fac=function(n){return new(n||i)(_(ee),_(W))};static#t=this.\u0275cmp=xe({type:i,selectors:[["mat-selection-list"]],contentQueries:function(n,o,r){if(1&n&&Je(r,RN,5),2&n){let s;ae(s=le())&&(o._items=s)}},hostAttrs:["role","listbox",1,"mat-mdc-selection-list","mat-mdc-list-base","mdc-list"],hostVars:1,hostBindings:function(n,o){1&n&&$("keydown",function(s){return o._handleKeydown(s)}),2&n&&Me("aria-multiselectable",o.multiple)},inputs:{color:"color",compareWith:"compareWith",multiple:"multiple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator",disabled:"disabled"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[Se([hoe,{provide:_l,useExisting:i},{provide:ON,useExisting:i}]),q,ti],ngContentSelectors:DN,decls:1,vars:0,template:function(n,o){1&n&&(yt(),Z(0))},styles:[SN],encapsulation:2,changeDetection:0})}return i})(),hp=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({imports:[pv,Fo,Oe,Nc,PA,kN]})}return i})();class fp{constructor(t){this.action=kx.Use,this.constraints=[],this.name=t}clone(){const t=new fp;return t.action=this.action,t.name=this.name,t.constraints=this.constraints.map(e=>e.clone()),t}toString(){return`(${this.action.toString()}) constraints: [ ${this.constraints.map(t=>t.toString()).join(",")} ]`}}class Pr{constructor(t=Cx.And){this.constraints=[],this.operator=t}clone(){const t=new Pr;return t.operator=this.operator,t.constraints=this.constraints.map(e=>e.clone()),t}prefixes(){return["odrl",...this.constraints.flatMap(e=>e.prefixes())]}toString(){return`${this.operator} constraint: [ ${this.constraints.map(t=>t.toString()).join(",")} ]`}}class qo{constructor(t,e){this.value=t,this.prefix=e}toString(t=!0){return t&&null!=this.prefix?`${this.prefix}:${this.value}`:`${this.value}`}}class Nt{constructor(t,e=Mn.Eq,n,o=Sn.String){this.kind=o,this.operator=e,this.leftOperand=t??new qo(""),this.rightOperand=n}clone(){const t=new Nt;return t.kind=this.kind,t.leftOperand=this.leftOperand,t.operator=this.operator,t.rightOperand=this.rightOperand,t}prefixes(){return this.leftOperand.prefix?[this.leftOperand.prefix]:[]}toString(){return`Constraint ${this.leftOperand} ${this.operator.toString()} ${null!=this.rightOperand?this.rightOperand.toString():""}`}}var Sn=function(i){return i.String="String",i.Number="Number",i.Value="Value",i}(Sn||{});class Nr{constructor(t,e){this.value=t,this.ty=e}toString(){return`${this.value}`}}var Cx=function(i){return i.And="And",i.Or="Or",i}(Cx||{}),kx=function(i){return i.Use="use",i}(kx||{}),Mn=function(i){return i.Eq="eq",i.Neq="neq",i.Gte="gteq",i.Lte="lteq",i.In="isPartOf",i.AnyOf="isAnyOf",i.AllOf="isAllOf",i.NoneOf="isNoneOf",i}(Mn||{});class Dx{constructor(){this.permissions=[]}clone(){const t=new Dx;return t.permissions=this.permissions.map(e=>e.clone()),t}}class zd{constructor(t){this.name=t,this.policy=new Dx}clone(){const t=new zd(this.name+" (Copy)");return t.policy=this.policy.clone(),t}}var bl=function(i){return i.Prefixed="Prefixed",i.Plain="Plain",i}(bl||{});function moe(i,t){}class mp{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 PN=(()=>{class i extends fx{constructor(e,n,o,r,s,a,l,c){super(),this._elementRef=e,this._focusTrapFactory=n,this._config=r,this._interactivityChecker=s,this._ngZone=a,this._overlayRef=l,this._focusMonitor=c,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this.attachDomPortal=d=>{this._portalOutlet.hasAttached();const u=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),u},this._document=o,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const 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 o=()=>{e.removeEventListener("blur",o),e.removeEventListener("mousedown",o),e.removeAttribute("tabindex")};e.addEventListener("blur",o),e.addEventListener("mousedown",o)})),e.focus(n)}_focusByCssSelector(e,n){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,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 o=Xh(),r=this._elementRef.nativeElement;(!o||o===this._document.body||o===r||r.contains(o))&&(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=Xh();return e===n||e.contains(n)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Xh())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static#e=this.\u0275fac=function(n){return new(n||i)(_(ee),_(xv),_(ge,8),_(mp),_(cf),_(W),_(Vd),_(ur))};static#t=this.\u0275cmp=xe({type:i,selectors:[["cdk-dialog-container"]],viewQuery:function(n,o){if(1&n&&ct(sp,7),2&n){let r;ae(r=le())&&(o._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(n,o){2&n&&Me("id",o._config.id||null)("role",o._config.role)("aria-modal",o._config.ariaModal)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null)},features:[q],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,o){1&n&&U(0,moe,0,0,"ng-template",0)},dependencies:[sp],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return i})();class Sx{constructor(t,e){this.overlayRef=t,this.config=e,this.closed=new ne,this.disableClose=e.disableClose,this.backdropClick=t.backdropClick(),this.keydownEvents=t.keydownEvents(),this.outsidePointerEvents=t.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(n=>{27===n.keyCode&&!this.disableClose&&!Bn(n)&&(n.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=t.detachments().subscribe(()=>{!1!==e.closeOnOverlayDetachments&&this.close()})}close(t,e){if(this.containerInstance){const n=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),n.next(t),n.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(t="",e=""){return this.overlayRef.updateSize({width:t,height:e}),this}addPanelClass(t){return this.overlayRef.addPanelClass(t),this}removePanelClass(t){return this.overlayRef.removePanelClass(t),this}}const NN=new A("DialogScrollStrategy"),poe=new A("DialogData"),goe=new A("DefaultDialogConfig"),boe={provide:NN,deps:[Dn],useFactory:function _oe(i){return()=>i.scrollStrategies.block()}};let voe=0,LN=(()=>{class i{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(e,n,o,r,s,a){this._overlay=e,this._injector=n,this._defaultOptions=o,this._parentDialog=r,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ne,this._afterOpenedAtThisLevel=new ne,this._ariaHiddenElements=new Map,this.afterAllClosed=xx(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(to(void 0))),this._scrollStrategy=a}open(e,n){(n={...this._defaultOptions||new mp,...n}).id=n.id||"cdk-dialog-"+voe++,n.id&&this.getDialogById(n.id);const r=this._getOverlayConfig(n),s=this._overlay.create(r),a=new Sx(s,n),l=this._attachContainer(s,a,n);return a.containerInstance=l,this._attachDialogContent(e,a,l,n),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){Mx(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){Mx(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),Mx(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const n=new cp({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,o){const r=o.injector||o.viewContainerRef?.injector,s=[{provide:mp,useValue:o},{provide:Sx,useValue:n},{provide:Vd,useValue:e}];let a;o.container?"function"==typeof o.container?a=o.container:(a=o.container.type,s.push(...o.container.providers(o))):a=PN;const l=new rp(a,o.viewContainerRef,Vt.create({parent:r||this._injector,providers:s}),o.componentFactoryResolver);return e.attach(l).instance}_attachDialogContent(e,n,o,r){if(e instanceof Wi){const s=this._createInjector(r,n,o,void 0);let a={$implicit:r.data,dialogRef:n};r.templateContext&&(a={...a,..."function"==typeof r.templateContext?r.templateContext():r.templateContext}),o.attachTemplatePortal(new Pd(e,null,a,s))}else{const s=this._createInjector(r,n,o,this._injector),a=o.attachComponentPortal(new rp(e,r.viewContainerRef,s,r.componentFactoryResolver));n.componentRef=a,n.componentInstance=a.instance}}_createInjector(e,n,o,r){const s=e.injector||e.viewContainerRef?.injector,a=[{provide:poe,useValue:e.data},{provide:Sx,useValue:n}];return e.providers&&("function"==typeof e.providers?a.push(...e.providers(n,e,o)):a.push(...e.providers)),e.direction&&(!s||!s.get(hr,null,{optional:!0}))&&a.push({provide:hr,useValue:{value:e.direction,change:sn()}}),Vt.create({parent:s||r,providers:a})}_removeOpenDialog(e,n){const o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,s)=>{r?s.setAttribute("aria-hidden",r):s.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 o=n.length-1;o>-1;o--){const r=n[o];r!==e&&"SCRIPT"!==r.nodeName&&"STYLE"!==r.nodeName&&!r.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static#e=this.\u0275fac=function(n){return new(n||i)(C(Dn),C(Vt),C(goe,8),C(i,12),C(dp),C(NN))};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac})}return i})();function Mx(i,t){let e=i.length;for(;e--;)t(i[e])}let yoe=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({providers:[LN,boe],imports:[Hd,Nd,kA,Nd]})}return i})();function xoe(i,t){}class pp{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 Ex="mdc-dialog--open",BN="mdc-dialog--opening",VN="mdc-dialog--closing";let koe=(()=>{class i extends PN{constructor(e,n,o,r,s,a,l,c){super(e,n,o,r,s,a,l,c),this._animationStateChanged=new te}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}static#e=this.\u0275fac=function(n){return new(n||i)(_(ee),_(xv),_(ge,8),_(pp),_(cf),_(W),_(Vd),_(ur))};static#t=this.\u0275cmp=xe({type:i,selectors:[["ng-component"]],features:[q],decls:0,vars:0,template:function(n,o){},encapsulation:2})}return i})();const HN="--mat-dialog-transition-duration";function zN(i){return null==i?null:"number"==typeof i?i:i.endsWith("ms")?dr(i.substring(0,i.length-2)):i.endsWith("s")?1e3*dr(i.substring(0,i.length-1)):"0"===i?0:null}let Doe=(()=>{class i extends koe{constructor(e,n,o,r,s,a,l,c,d){super(e,n,o,r,s,a,l,d),this._animationMode=c,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?zN(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?zN(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(HN,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(BN,Ex)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(Ex),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(Ex),this._animationsEnabled?(this._hostElement.style.setProperty(HN,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(VN)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(BN,VN)}_waitForAnimationToComplete(e,n){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(n,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})}static#e=this.\u0275fac=function(n){return new(n||i)(_(ee),_(xv),_(ge,8),_(pp),_(cf),_(W),_(Vd),_(Ot,8),_(ur))};static#t=this.\u0275cmp=xe({type:i,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(n,o){2&n&&(or("id",o._config.id),Me("aria-modal",o._config.ariaModal)("role",o._config.role)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null),be("_mat-animation-noopable",!o._animationsEnabled))},features:[q],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(n,o){1&n&&(k(0,"div",0)(1,"div",1),U(2,xoe,0,0,"ng-template",2),S()())},dependencies:[sp],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto;outline:0}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__container .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{display:block;width:100%;height:100%}.mat-mdc-dialog-container{--mdc-dialog-container-elevation-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);--mdc-dialog-container-shadow-color:#000;--mdc-dialog-container-shape:4px;--mdc-dialog-container-elevation: var(--mdc-dialog-container-elevation-shadow);outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, 4px)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87))}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6))}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2})}return i})();class jd{constructor(t,e,n){this._ref=t,this._containerInstance=n,this._afterOpened=new ne,this._beforeClosed=new ne,this._state=0,this.disableClose=e.disableClose,this.id=t.id,n._animationStateChanged.pipe(kt(o=>"opened"===o.state),ri(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(kt(o=>"closed"===o.state),ri(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),rn(this.backdropClick(),this.keydownEvents().pipe(kt(o=>27===o.keyCode&&!this.disableClose&&!Bn(o)))).subscribe(o=>{this.disableClose||(o.preventDefault(),jN(this,"keydown"===o.type?"keyboard":"mouse"))})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(kt(e=>"closing"===e.state),ri(1)).subscribe(e=>{this._beforeClosed.next(t),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(t){let e=this._ref.config.positionStrategy;return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(t="",e=""){return this._ref.updateSize(t,e),this}addPanelClass(t){return this._ref.addPanelClass(t),this}removePanelClass(t){return this._ref.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function jN(i,t,e){return i._closeInteractionType=t,i.close(e)}const Ax=new A("MatMdcDialogData"),Soe=new A("mat-mdc-dialog-default-options"),$N=new A("mat-mdc-dialog-scroll-strategy"),Eoe={provide:$N,deps:[Dn],useFactory:function Moe(i){return()=>i.scrollStrategies.block()}};let Aoe=0,Toe=(()=>{class i{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,o,r,s,a,l,c,d,u){this._overlay=e,this._defaultOptions=o,this._parentDialog=r,this._dialogRefConstructor=l,this._dialogContainerType=c,this._dialogDataToken=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ne,this._afterOpenedAtThisLevel=new ne,this._idPrefix="mat-dialog-",this.dialogConfigClass=pp,this.afterAllClosed=xx(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(to(void 0))),this._scrollStrategy=a,this._dialog=n.get(LN)}open(e,n){let o;(n={...this._defaultOptions||new pp,...n}).id=n.id||`${this._idPrefix}${Aoe++}`,n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();const r=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:mp,useValue:n}]},templateContext:()=>({dialogRef:o}),providers:(s,a,l)=>(o=new this._dialogRefConstructor(s,n,l),o.updatePosition(n?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:o}])});return o.componentRef=r.componentRef,o.componentInstance=r.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{const s=this.openDialogs.indexOf(o);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}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()}static#e=this.\u0275fac=function(n){xa()};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac})}return i})(),gp=(()=>{class i extends Toe{constructor(e,n,o,r,s,a,l,c){super(e,n,r,a,l,s,jd,Doe,Ax,c),this._idPrefix="mat-mdc-dialog-"}static#e=this.\u0275fac=function(n){return new(n||i)(C(Dn),C(Vt),C(Fb,8),C(Soe,8),C($N),C(i,12),C(dp),C(Ot,8))};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac})}return i})(),Ioe=0,UN=(()=>{class i{constructor(e,n,o){this.dialogRef=e,this._elementRef=n,this._dialog=o,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=YN(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){const n=e._matDialogClose||e._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(e){jN(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}static#e=this.\u0275fac=function(n){return new(n||i)(_(jd,8),_(ee),_(gp))};static#t=this.\u0275dir=O({type:i,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(n,o){1&n&&$("click",function(s){return o._onButtonClick(s)}),2&n&&Me("aria-label",o.ariaLabel||null)("type",o.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[ti]})}return i})(),WN=(()=>{class i{constructor(e,n,o){this._dialogRef=e,this._elementRef=n,this._dialog=o,this.id="mat-mdc-dialog-title-"+Ioe++}ngOnInit(){this._dialogRef||(this._dialogRef=YN(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._dialogRef._containerInstance?._ariaLabelledByQueue?.push(this.id)})}ngOnDestroy(){const e=this._dialogRef?._containerInstance?._ariaLabelledByQueue;e&&Promise.resolve().then(()=>{const n=e.indexOf(this.id);n>-1&&e.splice(n,1)})}static#e=this.\u0275fac=function(n){return new(n||i)(_(jd,8),_(ee),_(gp))};static#t=this.\u0275dir=O({type:i,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(n,o){2&n&&or("id",o.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]})}return i})(),GN=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275dir=O({type:i,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"]})}return i})(),qN=(()=>{class i{constructor(){this.align="start"}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275dir=O({type:i,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:4,hostBindings:function(n,o){2&n&&be("mat-mdc-dialog-actions-align-center","center"===o.align)("mat-mdc-dialog-actions-align-end","end"===o.align)},inputs:{align:"align"}})}return i})();function YN(i,t){let e=i.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?t.find(n=>n.id===e.id):null}let Tx=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({providers:[gp,Eoe],imports:[yoe,Hd,Nd,Oe,Oe]})}return i})();function KN(i,t){return t?e=>sf(t.pipe(ri(1),function Ooe(){return Lt((i,t)=>{i.subscribe(At(t,Jd))})}()),e.pipe(KN(i))):Hs((e,n)=>Jt(i(e,n)).pipe(ri(1),function Roe(i){return Bt(()=>i)}(e)))}function ZN(i,t=nf){const e=lN(i,t);return KN(()=>e)}const Foe=["mat-menu-item",""];function Poe(i,t){1&i&&(Qs(),k(0,"svg",3),De(1,"polygon",4),S())}const Noe=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],Loe=["mat-icon, [matMenuItemIcon]","*"];function Boe(i,t){if(1&i){const e=Io();k(0,"div",0),$("keydown",function(o){return gi(e),_i(ue()._handleKeydown(o))})("click",function(){return gi(e),_i(ue().closed.emit("click"))})("@transformMenu.start",function(o){return gi(e),_i(ue()._onAnimationStart(o))})("@transformMenu.done",function(o){return gi(e),_i(ue()._onAnimationDone(o))}),k(1,"div",1),Z(2),S()()}if(2&i){const e=ue();T("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),Me("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Voe=["*"],Ix=new A("MAT_MENU_PANEL"),Hoe=ff(uf(class{}));let _p=(()=>{class i extends Hoe{constructor(e,n,o,r,s){super(),this._elementRef=e,this._document=n,this._focusMonitor=o,this._parentMenu=r,this._changeDetectorRef=s,this.role="menuitem",this._hovered=new ne,this._focused=new ne,this._highlighted=!1,this._triggersSubmenu=!1,r?.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 o=0;o enter",Cn("120ms cubic-bezier(0, 0, 0.2, 1)",_t({opacity:1,transform:"scale(1)"}))),en("* => void",Cn("100ms 25ms linear",_t({opacity:0})))]),fadeInItems:Go("fadeInItems",[kn("showing",_t({opacity:1})),en("void => *",[_t({opacity:0}),Cn("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let joe=0;const QN=new A("mat-menu-default-options",{providedIn:"root",factory:function $oe(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let $d=(()=>{class i{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=me(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=me(e)}set panelClass(e){const n=this._previousPanelClass;n&&n.length&&n.split(" ").forEach(o=>{this._classList[o]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(o=>{this._classList[o]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}constructor(e,n,o,r){this._elementRef=e,this._ngZone=n,this._changeDetectorRef=r,this._directDescendantItems=new ns,this._classList={},this._panelAnimationState="void",this._animationDone=new ne,this.closed=new te,this.close=this.closed,this.panelId="mat-menu-panel-"+joe++,this.overlayPanelClass=o.overlayPanelClass||"",this._xPosition=o.xPosition,this._yPosition=o.yPosition,this.backdropClass=o.backdropClass,this._overlapTrigger=o.overlapTrigger,this._hasBackdrop=o.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new yv(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(to(this._directDescendantItems),Dl(e=>rn(...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 o=e.toArray(),r=Math.max(0,Math.min(o.length-1,n.activeItemIndex||0));o[r]&&!o[r].disabled?n.setActiveItem(r):n.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe(to(this._directDescendantItems),Dl(n=>rn(...n.map(o=>o._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const n=e.keyCode,o=this._keyManager;switch(n){case 27:Bn(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)&&o.setFocusOrigin("keyboard"),void o.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe(ri(1)).subscribe(()=>{let n=null;if(this._directDescendantItems.length&&(n=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!n||!n.contains(document.activeElement)){const o=this._keyManager;o.setFocusOrigin(e).setFirstItemActive(),!o.activeItem&&n&&n.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const n=Math.min(this._baseElevation+e,24),o=`${this._elevationPrefix}${n}`,r=Object.keys(this._classList).find(s=>s.startsWith(this._elevationPrefix));(!r||r===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[o]=!0,this._previousElevation=o)}setPositionClasses(e=this.xPosition,n=this.yPosition){const o=this._classList;o["mat-menu-before"]="before"===e,o["mat-menu-after"]="after"===e,o["mat-menu-above"]="above"===n,o["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(to(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(n=>n._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static#e=this.\u0275fac=function(n){return new(n||i)(_(ee),_(W),_(QN),_(oi))};static#t=this.\u0275dir=O({type:i,contentQueries:function(n,o,r){if(1&n&&(Je(r,zoe,5),Je(r,_p,5),Je(r,_p,4)),2&n){let s;ae(s=le())&&(o.lazyContent=s.first),ae(s=le())&&(o._allItems=s),ae(s=le())&&(o.items=s)}},viewQuery:function(n,o){if(1&n&&ct(Wi,5),2&n){let r;ae(r=le())&&(o.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"}})}return i})(),Uoe=(()=>{class i extends $d{constructor(e,n,o,r){super(e,n,o,r),this._elevationPrefix="mat-elevation-z",this._baseElevation=8}static#e=this.\u0275fac=function(n){return new(n||i)(_(ee),_(W),_(QN),_(oi))};static#t=this.\u0275cmp=xe({type:i,selectors:[["mat-menu"]],hostAttrs:["ngSkipHydration",""],hostVars:3,hostBindings:function(n,o){2&n&&Me("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Se([{provide:Ix,useExisting:i}]),q],ngContentSelectors:Voe,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"id","ngClass","keydown","click"],[1,"mat-mdc-menu-content"]],template:function(n,o){1&n&&(yt(),U(0,Boe,3,6,"ng-template"))},dependencies:[$h],styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;white-space:normal;font-family:var(--mat-menu-item-label-text-font);line-height:var(--mat-menu-item-label-text-line-height);font-size:var(--mat-menu-item-label-text-size);letter-spacing:var(--mat-menu-item-label-text-tracking);font-weight:var(--mat-menu-item-label-text-weight)}.mat-mdc-menu-panel{--mat-menu-container-shape:4px;min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape);background-color:var(--mat-menu-container-color);will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;align-items:center;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color)}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color)}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{margin-right:16px}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:16px}.mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-mdc-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[bp.transformMenu,bp.fadeInItems]},changeDetection:0})}return i})();const JN=new A("mat-menu-scroll-strategy"),Goe={provide:JN,deps:[Dn],useFactory:function Woe(i){return()=>i.scrollStrategies.reposition()}},eL=ls({passive:!0});let qoe=(()=>{class i{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,o,r,s,a,l,c,d){this._overlay=e,this._element=n,this._viewContainerRef=o,this._menuItemInstance=a,this._dir=l,this._focusMonitor=c,this._ngZone=d,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=je.EMPTY,this._hoverSubscription=je.EMPTY,this._menuCloseSubscription=je.EMPTY,this._changeDetectorRef=J(oi),this._handleTouchStart=u=>{Cv(u)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new te,this.onMenuOpen=this.menuOpened,this.menuClosed=new te,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=s instanceof $d?s:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,eL)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,eL),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),o=n.getConfig(),r=o.positionStrategy;this._setPosition(e,r),o.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 $d&&(e._startAnimation(),e._directDescendantItems.changes.pipe(Xe(e.close)).subscribe(()=>{r.withLockedPosition(!1).reapplyLastPosition(),r.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 $d?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(kt(o=>"void"===o.toState),ri(1),Xe(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,o=e.parentMenu;for(;o;)n++,o=o.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 cp({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(o=>{const r="start"===o.connectionPair.overlayX?"after":"before",s="top"===o.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(r,s)):e.setPositionClasses(r,s)})}_setPosition(e,n){let[o,r]="before"===e.xPosition?["end","start"]:["start","end"],[s,a]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[l,c]=[s,a],[d,u]=[o,r],h=0;if(this.triggersSubmenu()){if(u=o="before"===e.xPosition?"start":"end",r=d="end"===o?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const f=this._parentMaterialMenu.items.first;this._parentInnerPadding=f?f._getHostElement().offsetTop:0}h="bottom"===s?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(l="top"===s?"bottom":"top",c="top"===a?"bottom":"top");n.withPositions([{originX:o,originY:l,overlayX:d,overlayY:s,offsetY:h},{originX:r,originY:l,overlayX:u,overlayY:s,offsetY:h},{originX:o,originY:c,overlayX:d,overlayY:a,offsetY:-h},{originX:r,originY:c,overlayX:u,overlayY:a,offsetY:-h}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return rn(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:sn(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(kt(s=>s!==this._menuItemInstance),kt(()=>this._menuOpen)):sn(),n)}_handleMousedown(e){wv(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),ZN(0,_x)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof $d&&this.menu._isAnimating?this.menu._animationDone.pipe(ri(1),ZN(0,_x),Xe(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Pd(e.templateRef,this._viewContainerRef)),this._portal}static#e=this.\u0275fac=function(n){return new(n||i)(_(Dn),_(ee),_(wi),_(JN),_(Ix,8),_(_p,10),_(hr,8),_(ur),_(W))};static#t=this.\u0275dir=O({type:i,hostVars:3,hostBindings:function(n,o){1&n&&$("click",function(s){return o._handleClick(s)})("mousedown",function(s){return o._handleMousedown(s)})("keydown",function(s){return o._handleKeydown(s)}),2&n&&Me("aria-haspopup",o.menu?"menu":null)("aria-expanded",o.menuOpen)("aria-controls",o.menuOpen?o.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"}})}return i})(),Yoe=(()=>{class i extends qoe{static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=lt(i)))(o||i)}}();static#t=this.\u0275dir=O({type:i,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],exportAs:["matMenuTrigger"],features:[q]})}return i})(),Ox=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({providers:[Goe],imports:[Fo,Nc,Oe,Hd,Bd,Oe]})}return i})();function Xoe(i,t){if(1&i){const e=Io();k(0,"div",1)(1,"mat-form-field",2)(2,"mat-label"),he(3,"Right Operand Value"),S(),k(4,"input",3),$("ngModelChange",function(o){return gi(e),_i(ue().value.value=o)}),S()(),k(5,"mat-form-field",2)(6,"mat-label"),he(7,"Right Operand Value Type"),S(),k(8,"input",3),$("ngModelChange",function(o){return gi(e),_i(ue().value.ty=o)}),S()()()}if(2&i){const e=ue();R(4),T("ngModel",e.value.value)("disabled",e.disabled),R(4),T("ngModel",e.value.ty)("disabled",e.disabled)}}let Koe=(()=>{class i{constructor(){this.disabled=!1}ngOnInit(){this.constraint.kind===Sn.Value&&(null==this.constraint.rightOperand&&(this.constraint.rightOperand=new Nr),this.value=this.constraint.rightOperand)}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275cmp=xe({type:i,selectors:[["app-value-expression"]],inputs:{constraint:"constraint",disabled:"disabled"},standalone:!0,features:[Pn],decls:1,vars:1,consts:[["class","w-full",4,"ngIf"],[1,"w-full"],["appearance","outline",1,"w-full"],["matInput","",3,"ngModel","disabled","ngModelChange"]],template:function(n,o){1&n&&U(0,Xoe,9,4,"div",0),2&n&&T("ngIf",o.value)},dependencies:[hp,Ox,pr,Lo,Is,Es,As,Rr,vo,pl,Fr,Rs,gl,op,ar],encapsulation:2})}return i})();const Ud="edc",vp="inForceDate",tL="edc:dateExpression",iL="xsd:datetime",oL=()=>new Nt(new qo("BusinessPartnerNumber"),Mn.Eq,"",Sn.String),rL=()=>new Nt(new qo("BusinessPartnerGroup","tx"),Mn.In,""),sL=()=>{const i=new Pr;return i.constraints.push(new Nt(new qo(vp,Ud),Mn.Gte,new Nr("2023-01-01T00:00:01Z",iL),Sn.Value)),i.constraints.push(new Nt(new qo(vp,Ud),Mn.Lte,new Nr("2024-01-01T00:00:01Z",iL),Sn.Value)),i},aL=()=>{const i=new Pr;return i.constraints.push(new Nt(new qo(vp,Ud),Mn.Gte,new Nr("contractAgreement+0s",tL),Sn.Value)),i.constraints.push(new Nt(new qo(vp,Ud),Mn.Lte,new Nr("contractAgreement+100d",tL),Sn.Value)),i},Zoe=["Membership","Dismantler","FrameworkAgreement.pcf","FrameworkAgreement.sustainability","FrameworkAgreement.quality","FrameworkAgreement.traceability","FrameworkAgreement.behavioraltwin","BPN"],lL=()=>Zoe.map(i=>new Nt(new qo(i,"tx"),Mn.Eq,"active")),cL={edc:"https://w3id.org/edc/v0.0.1/ns/",tx:"https://w3id.org/tractusx/v0.0.1/ns/",xsd:"http://www.w3.org/2001/XMLSchema#",odrl:"http://www.w3.org/ns/odrl/2/"};let vl=(()=>{class i{logicalOperators(){return this.values(Cx)}operators(){return this.values(Mn)}valueKinds(){return this.values(Sn)}actions(){return this.values(kx)}supportedOutput(){return this.values(bl)}values(e){return Object.values(e).filter(n=>"string"==typeof n)}constraintTemplates(){const n=lL().map(o=>({name:o.leftOperand+" credential",multiple:!1,factory:()=>o}));return[{name:"Atomic Constraint",multiple:!1,factory:()=>new Nt(new qo(""),Mn.Eq,"")},{name:"Logical Constraint",multiple:!0,factory:()=>new Pr},{name:"BPN Constraint",multiple:!1,factory:oL},{name:"BPN Group Constraint",multiple:!1,factory:rL},{name:"In Force Constraint (Duration)",multiple:!0,factory:aL},{name:"In Force Constraint (Fixed)",multiple:!0,factory:sL},...n]}contextFor(e){const n={};return e.policy.permissions.flatMap(o=>o.constraints).map(o=>o.prefixes()).flat().forEach(o=>{n[o]=cL[o]??`https://<${o}-namespace-here>`}),n}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function Qoe(i,t){if(1&i&&(k(0,"mat-option",11),he(1),S()),2&i){const e=t.$implicit;T("value",e),R(1),mn(" ",e," ")}}function Joe(i,t){if(1&i&&(k(0,"mat-option",11),he(1),S()),2&i){const e=t.$implicit;T("value",e),R(1),mn(" ",e," ")}}function ere(i,t){if(1&i){const e=Io();k(0,"mat-form-field",12)(1,"mat-label"),he(2,"Right Operand"),S(),k(3,"input",3),$("ngModelChange",function(o){return gi(e),_i(ue().constraint.rightOperand=o)}),S()()}if(2&i){const e=ue();R(3),T("ngModel",e.constraint.rightOperand)("disabled",e.disabled)}}function tre(i,t){if(1&i){const e=Io();k(0,"mat-form-field",12)(1,"mat-label"),he(2,"Right Operand"),S(),k(3,"input",13),$("ngModelChange",function(o){return gi(e),_i(ue().constraint.rightOperand=o)}),S()()}if(2&i){const e=ue();R(3),T("ngModel",e.constraint.rightOperand)("disabled",e.disabled)}}function ire(i,t){1&i&&De(0,"app-value-expression",14),2&i&&T("constraint",ue().constraint)}let dL=(()=>{class i{constructor(e){this.disabled=!1,this.operators=e.operators(),this.types=e.valueKinds()}onKindChange(e){switch(e){case Sn.Number:this.constraint.rightOperand=0;break;case Sn.String:this.constraint.rightOperand="";break;case Sn.Value:this.constraint.rightOperand=new Nr("","")}}static#e=this.\u0275fac=function(n){return new(n||i)(_(vl))};static#t=this.\u0275cmp=xe({type:i,selectors:[["app-atomic-constraint"]],inputs:{constraint:"constraint",disabled:"disabled"},standalone:!0,features:[Pn],decls:24,vars:14,consts:[[1,"flex","flex-col"],[1,"flex","flex-row","gap-x-1"],["appearance","outline",1,"w-2/5"],["matInput","",3,"ngModel","disabled","ngModelChange"],["appearance","outline",1,"w-3/5"],["appearance","outline"],[3,"ngModel","disabled","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"w-full",3,"ngSwitch"],["appearance","outline","class","w-full",4,"ngSwitchCase"],["class","w-full",3,"constraint",4,"ngSwitchCase"],[3,"value"],["appearance","outline",1,"w-full"],["matInput","","type","number",3,"ngModel","disabled","ngModelChange"],[1,"w-full",3,"constraint"]],template:function(n,o){1&n&&(k(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),he(4,"Left Operand (prefix)"),S(),k(5,"input",3),$("ngModelChange",function(s){return o.constraint.leftOperand.prefix=s}),S()(),k(6,"mat-form-field",4)(7,"mat-label"),he(8,"Left Operand (value)"),S(),k(9,"input",3),$("ngModelChange",function(s){return o.constraint.leftOperand.value=s}),S()()(),k(10,"mat-form-field",5)(11,"mat-label"),he(12,"Operator"),S(),k(13,"mat-select",6),$("ngModelChange",function(s){return o.constraint.operator=s}),U(14,Qoe,2,2,"mat-option",7),S()(),k(15,"mat-form-field",5)(16,"mat-label"),he(17,"Right Operand Kind"),S(),k(18,"mat-select",6),$("ngModelChange",function(s){return o.constraint.kind=s})("ngModelChange",function(s){return o.onKindChange(s)}),U(19,Joe,2,2,"mat-option",7),S()(),k(20,"div",8),U(21,ere,4,2,"mat-form-field",9),U(22,tre,4,2,"mat-form-field",9),U(23,ire,1,1,"app-value-expression",10),S()()),2&n&&(R(5),T("ngModel",o.constraint.leftOperand.prefix)("disabled",o.disabled),R(4),T("ngModel",o.constraint.leftOperand.value)("disabled",o.disabled),R(4),T("ngModel",o.constraint.operator)("disabled",o.disabled),R(1),T("ngForOf",o.operators),R(4),T("ngModel",o.constraint.kind)("disabled",o.disabled),R(1),T("ngForOf",o.types),R(1),T("ngSwitch",o.constraint.kind),R(1),T("ngSwitchCase","String"),R(1),T("ngSwitchCase","Number"),R(1),T("ngSwitchCase","Value"))},dependencies:[hp,Ox,pr,Lo,Is,Es,Q0,As,Rr,vo,pl,Fr,Rs,up,Lc,gl,op,as,Ba,Uh,Koe],encapsulation:2})}return i})(),nre=(()=>{class i{constructor(e,n){this.dialogRef=e,this.data=n,this.constraint=n.clone(),this.operators=Object.values(Mn).filter(o=>"string"==typeof o)}cancel(){this.dialogRef.close()}static#e=this.\u0275fac=function(n){return new(n||i)(_(jd),_(Ax))};static#t=this.\u0275cmp=xe({type:i,selectors:[["app-constraint-dialog"]],standalone:!0,features:[Pn],decls:10,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"pt-2"],[1,"pt-2",3,"constraint"],["mat-dialog-actions","","align","end"],["mat-button","",3,"click"],["mat-button","","cdkFocusInitial","",3,"mat-dialog-close"]],template:function(n,o){1&n&&(k(0,"h1",0),he(1,"Edit Constraint"),S(),k(2,"div",1)(3,"div",2),De(4,"app-atomic-constraint",3),S()(),k(5,"div",4)(6,"button",5),$("click",function(){return o.cancel()}),he(7,"Cancel"),S(),k(8,"button",6),he(9,"Save"),S()()),2&n&&(R(4),T("constraint",o.constraint),R(4),T("mat-dialog-close",o.constraint))},dependencies:[Tx,UN,WN,GN,qN,vo,Is,Lo,Fv,gl,Rs,dL],encapsulation:2})}return i})();function ore(i,t){if(1&i){const e=Io();k(0,"button",6),$("click",function(){const r=gi(e).$implicit;return _i(ue().addConstraint(r.factory()))}),k(1,"span",7),he(2),S()()}if(2&i){const e=t.$implicit;R(2),es(e.name)}}function rre(i,t){if(1&i){const e=Io();k(0,"mat-list-item")(1,"div",0)(2,"span",8),he(3),S(),k(4,"div")(5,"button",9),$("click",function(){const r=gi(e).$implicit;return _i(ue().editConstraint(r))}),k(6,"mat-icon"),he(7,"edit"),S()(),k(8,"button",10),$("click",function(){const r=gi(e).$implicit;return _i(ue().removeConstraint(r))}),k(9,"mat-icon"),he(10,"delete"),S()()()()()}if(2&i){const e=t.$implicit;R(3),mn(" ",e.toString(),"")}}let uL=(()=>{class i{constructor(){this.constraints=[],this.constraintRemove=new te,this.constraintAdd=new te,this.constraintEdit=new te}addConstraint(e){this.container.constraints.push(e),this.constraintAdd.emit(e),this.editConstraint(e)}removeConstraint(e){this.container.constraints=this.container.constraints.filter(n=>n!=e),this.constraintRemove.emit(e)}editConstraint(e){this.constraintEdit.emit(e)}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275cmp=xe({type:i,selectors:[["app-constraint-list"]],inputs:{container:"container",constraints:"constraints"},outputs:{constraintRemove:"constraintRemove",constraintAdd:"constraintAdd",constraintEdit:"constraintEdit"},standalone:!0,features:[Pn],decls:13,vars:3,consts:[[1,"flex","flex-row","justify-between","items-center"],["mat-icon-button","","color","primary","matTooltip","Add constraint",3,"matMenuTriggerFor"],["xPosition","before",1,"constraints-menu"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[1,"text-ellipsis","overflow-hidden"],[1,"w-4/5","text-ellipsis","overflow-hidden"],["mat-icon-button","","color","primary","matTooltip","Edit constraint",3,"click"],["mat-icon-button","","color","primary","matTooltip","Delete constraint",3,"click"]],template:function(n,o){if(1&n&&(k(0,"mat-list")(1,"mat-list-item")(2,"div",0)(3,"span"),he(4,"Constraints"),S(),k(5,"button",1)(6,"mat-icon"),he(7,"add"),S()(),k(8,"mat-menu",2,3),U(10,ore,3,1,"button",4),S()()(),De(11,"mat-divider"),U(12,rre,11,1,"mat-list-item",5),S()),2&n){const r=fn(9);R(5),T("matMenuTriggerFor",r),R(5),T("ngForOf",o.constraints),R(2),T("ngForOf",o.container.constraints)}},dependencies:[hp,doe,uoe,Vne,Ox,Uoe,_p,Yoe,pr,lT,as,Lo,dT],encapsulation:2})}return i})();function sre(i,t){if(1&i&&(k(0,"mat-option",13),he(1),S()),2&i){const e=t.$implicit;T("value",e),R(1),mn(" ",e," ")}}let are=(()=>{class i{constructor(e,n,o){this.dialogRef=n,this.data=o,this.currentConstraint=new Nt,this.constraint=o.constraint.clone(),this.logicalOperators=e.logicalOperators(),this.operators=e.operators(),this.constraints=o.constraints;const r=this.constraint.constraints.filter(s=>s instanceof Nt).map(s=>s);r.length>0&&(this.currentConstraint=r[0])}onConstraintAdd(e){e instanceof Nt&&(this.currentConstraint=e)}onConstraintRemove(e){e instanceof Nt&&0==this.constraint.constraints.length&&(this.currentConstraint=new Nt)}onConstraintEdit(e){this.editConstraint(e)}isEditorDisabled(){return 0==this.constraint.constraints.length}editConstraint(e){e instanceof Nt&&(this.currentConstraint=e)}cancel(){this.dialogRef.close()}static#e=this.\u0275fac=function(n){return new(n||i)(_(vl),_(jd),_(Ax))};static#t=this.\u0275cmp=xe({type:i,selectors:[["app-logical-dialog"]],standalone:!0,features:[Pn],decls:19,vars:7,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"flex","flex-col","pt-2"],["appearance","outline"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"flex","flex-row"],[1,"w-3/5",3,"container","constraints","constraintRemove","constraintAdd","constraintEdit"],[1,"w-2/5"],[3,"constraint","disabled"],["mat-dialog-actions","","align","end"],["mat-button","",3,"click"],["mat-button","","cdkFocusInitial","",3,"mat-dialog-close"],[3,"value"]],template:function(n,o){1&n&&(k(0,"h1",0),he(1,"Edit Logical Constraint"),S(),k(2,"div",1)(3,"div",2)(4,"mat-form-field",3)(5,"mat-label"),he(6,"Operator"),S(),k(7,"mat-select",4),$("ngModelChange",function(s){return o.constraint.operator=s}),U(8,sre,2,2,"mat-option",5),S()(),k(9,"div",6)(10,"app-constraint-list",7),$("constraintRemove",function(s){return o.onConstraintRemove(s)})("constraintAdd",function(s){return o.onConstraintAdd(s)})("constraintEdit",function(s){return o.onConstraintEdit(s)}),S(),k(11,"mat-card",8)(12,"mat-card-content"),De(13,"app-atomic-constraint",9),S()()()()(),k(14,"div",10)(15,"button",11),$("click",function(){return o.cancel()}),he(16,"Cancel"),S(),k(17,"button",12),he(18,"Save"),S()()),2&n&&(R(7),T("ngModel",o.constraint.operator),R(1),T("ngForOf",o.logicalOperators),R(2),T("container",o.constraint)("constraints",o.constraints),R(3),T("constraint",o.currentConstraint)("disabled",o.isEditorDisabled()),R(4),T("mat-dialog-close",o.constraint))},dependencies:[Tx,UN,WN,GN,qN,vo,pl,Fr,Is,As,Rr,Lo,Fv,gl,Rs,up,Lc,as,pr,Gm,B0,V0,uL,dL],encapsulation:2})}return i})();const lre=["tooltip"],hL=new A("mat-tooltip-scroll-strategy"),ure={provide:hL,deps:[Dn],useFactory:function dre(i){return()=>i.scrollStrategies.reposition({scrollThrottle:20})}},fre=new A("mat-tooltip-default-options",{providedIn:"root",factory:function hre(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),fL="tooltip-panel",mL=ls({passive:!0});let vre=(()=>{class i{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=me(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){this._disabled=me(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=dr(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=dr(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,o,r,s,a,l,c,d,u,h,f){this._overlay=e,this._elementRef=n,this._scrollDispatcher=o,this._viewContainerRef=r,this._ngZone=s,this._platform=a,this._ariaDescriber=l,this._focusMonitor=c,this._dir=u,this._defaultOptions=h,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new ne,this._scrollStrategy=d,this._document=f,h&&(this._showDelay=h.showDelay,this._hideDelay=h.hideDelay,h.position&&(this.position=h.position),h.positionAtOrigin&&(this.positionAtOrigin=h.positionAtOrigin),h.touchGestures&&(this.touchGestures=h.touchGestures)),u.change.pipe(Xe(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Xe(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,o])=>{e.removeEventListener(n,o,mL)}),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 o=this._createOverlay(n);this._detach(),this._portal=this._portal||new rp(this._tooltipComponent,this._viewContainerRef);const r=this._tooltipInstance=o.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(Xe(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.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 r=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&r._origin instanceof ee)return this._overlayRef;this._detach()}const n=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),o=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&e||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(n);return o.positionChanges.pipe(Xe(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:o,panelClass:`${this._cssClassPrefix}-${fL}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Xe(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Xe(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Xe(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!Bn(r)&&(r.preventDefault(),r.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,o=this._getOrigin(),r=this._getOverlayPosition();n.withPositions([this._addOffset({...o.main,...r.main}),this._addOffset({...o.fallback,...r.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,n=this.position;let o;"above"==n||"below"==n?o={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&e||"right"==n&&!e?o={originX:"start",originY:"center"}:("after"==n||"right"==n&&e||"left"==n&&!e)&&(o={originX:"end",originY:"center"});const{x:r,y:s}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:r,originY:s}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,n=this.position;let o;"above"==n?o={overlayX:"center",overlayY:"bottom"}:"below"==n?o={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&e||"right"==n&&!e?o={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&e||"left"==n&&!e)&&(o={overlayX:"start",overlayY:"center"});const{x:r,y:s}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:r,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(ri(1),Xe(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:o,originY:r}=e;let s;if(s="center"===n?this._dir&&"rtl"===this._dir.value?"end"===o?"left":"right":"start"===o?"left":"right":"bottom"===n&&"top"===r?"above":"below",s!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${fL}-`;a.removePanelClass(l+this._currentPosition),a.addPanelClass(l+s)}this._currentPosition=s}}_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],o=n?{x:n.clientX,y:n.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,o),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",n=>{const o=n.relatedTarget;(!o||!this._overlayRef?.overlayElement.contains(o))&&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,o])=>{this._elementRef.nativeElement.addEventListener(n,o,mL)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const n=this._document.elementFromPoint(e.clientX,e.clientY),o=this._elementRef.nativeElement;n!==o&&!o.contains(n)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const n=this._elementRef.nativeElement,o=n.style;("on"===e||"INPUT"!==n.nodeName&&"TEXTAREA"!==n.nodeName)&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),("on"===e||!n.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}static#e=this.\u0275fac=function(n){xa()};static#t=this.\u0275dir=O({type:i,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"]}})}return i})(),pL=(()=>{class i extends vre{constructor(e,n,o,r,s,a,l,c,d,u,h,f){super(e,n,o,r,s,a,l,c,d,u,h,f),this._tooltipComponent=xre,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(e){const o=!this._dir||"ltr"==this._dir.value;return"top"===e.originY?e.offsetY=-8:"bottom"===e.originY?e.offsetY=8:"start"===e.originX?e.offsetX=o?-8:8:"end"===e.originX&&(e.offsetX=o?8:-8),e}static#e=this.\u0275fac=function(n){return new(n||i)(_(Dn),_(ee),_(dN),_(wi),_(W),_(dt),_(t9),_(ur),_(hL),_(hr,8),_(fre,8),_(ge))};static#t=this.\u0275dir=O({type:i,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(n,o){2&n&&be("mat-mdc-tooltip-disabled",o.disabled)},exportAs:["matTooltip"],features:[q]})}return i})(),yre=(()=>{class i{constructor(e,n){this._changeDetectorRef=e,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new ne,this._animationsDisabled="NoopAnimations"===n}show(e){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const n=this._tooltip.nativeElement,o=this._showAnimation,r=this._hideAnimation;if(n.classList.remove(e?r:o),n.classList.add(e?o:r),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const s=getComputedStyle(n);("0s"===s.getPropertyValue("animation-duration")||"none"===s.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(n.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static#e=this.\u0275fac=function(n){return new(n||i)(_(oi),_(Ot,8))};static#t=this.\u0275dir=O({type:i})}return i})(),xre=(()=>{class i extends yre{constructor(e,n,o){super(e,o),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}static#e=this.\u0275fac=function(n){return new(n||i)(_(oi),_(ee),_(Ot,8))};static#t=this.\u0275cmp=xe({type:i,selectors:[["mat-tooltip-component"]],viewQuery:function(n,o){if(1&n&&ct(lre,7),2&n){let r;ae(r=le())&&(o._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(n,o){1&n&&$("mouseleave",function(s){return o._handleMouseLeave(s)}),2&n&&_h("zoom",o.isVisible()?1:null)},features:[q],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(n,o){1&n&&(k(0,"div",0,1),$("animationend",function(s){return o._handleAnimationEnd(s)}),k(2,"div",2),he(3),S()()),2&n&&(be("mdc-tooltip--multiline",o._isMultiline),T("ngClass",o.tooltipClass),R(3),es(o.message))},dependencies:[$h],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - (2 * 8px));margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - (2 * 8px));align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip{--mdc-plain-tooltip-container-shape:4px;--mdc-plain-tooltip-supporting-text-line-height:16px}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}return i})(),Rx=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({providers:[ure],imports:[kA,Fo,Hd,Oe,Oe,Bd]})}return i})();function wre(i,t){if(1&i&&(k(0,"mat-option",7),he(1),S()),2&i){const e=t.$implicit;T("value",e),R(1),mn(" ",e," ")}}let Cre=(()=>{class i{constructor(e,n){this.dialog=e,this.permissionChange=new te,this.constraints=[],this.actions=n.actions(),this.constraints=n.constraintTemplates()}onConstraintChange(e){this.permissionChange.emit()}onConstraintEdit(e){this.editConstraint(e)}editConstraint(e){const n=o=>{const r=this.permission.constraints.indexOf(e);null!=o&&-1!=r&&(this.permission.constraints[r]=o,this.permissionChange.emit())};e instanceof Nt?this.dialog.open(nre,{data:e,minWidth:"400px"}).afterClosed().subscribe(n):e instanceof Pr&&this.dialog.open(are,{data:{constraint:e,constraints:this.constraints.filter(r=>!r.multiple)},minWidth:"600px"}).afterClosed().subscribe(n)}static#e=this.\u0275fac=function(n){return new(n||i)(_(gp),_(vl))};static#t=this.\u0275cmp=xe({type:i,selectors:[["app-permission"]],inputs:{permission:"permission",constraints:"constraints"},outputs:{permissionChange:"permissionChange"},standalone:!0,features:[Pn],decls:13,vars:5,consts:[[1,"grow"],[1,"flex","flex-col"],["appearance","outline"],["matInput","","placeholder","Permission name",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"container","constraints","constraintRemove","constraintAdd","constraintEdit"],[3,"value"]],template:function(n,o){1&n&&(k(0,"mat-card",0)(1,"mat-card-content")(2,"div",1)(3,"mat-form-field",2)(4,"mat-label"),he(5,"Name"),S(),k(6,"input",3),$("ngModelChange",function(s){return o.permission.name=s}),S()(),k(7,"mat-form-field",2)(8,"mat-label"),he(9,"Action"),S(),k(10,"mat-select",4),$("ngModelChange",function(s){return o.permission.action=s}),U(11,wre,2,2,"mat-option",5),S()(),k(12,"app-constraint-list",6),$("constraintRemove",function(s){return o.onConstraintChange(s)})("constraintAdd",function(s){return o.onConstraintChange(s)})("constraintEdit",function(s){return o.onConstraintEdit(s)}),S()()()()),2&n&&(R(6),T("ngModel",o.permission.name),R(4),T("ngModel",o.permission.action),R(1),T("ngForOf",o.actions),R(1),T("container",o.permission)("constraints",o.constraints))},dependencies:[Gm,B0,V0,vo,pl,Fr,Rs,up,Lc,as,Is,Es,As,Rr,gl,op,pr,Lo,Tx,Rx,uL],encapsulation:2})}return i})();function kre(i,t){if(1&i&&(k(0,"mat-list-option",12),he(1),S()),2&i){const e=t.$implicit;T("value",e),R(1),mn(" ",e.name," ")}}function Dre(i,t){if(1&i){const e=Io();k(0,"app-permission",13),$("permissionChange",function(){return gi(e),_i(ue().onPermissionChange())}),S()}2&i&&T("permission",ue().currentPermission)}let Sre=(()=>{class i{constructor(){this.policyChange=new te,this.selectedPermissions=[],this.panelOpenState=!0}get policyConfig(){return this._policyConfig}set policyConfig(e){this._policyConfig=e,this.currentPermission=e.policy.permissions.length>0?e.policy.permissions[0]:void 0}addPermission(){this.currentPermission=new fp("New Permission"),this.policyConfig.policy.permissions.push(this.currentPermission),this.policyChange.emit(this.policyConfig)}onPermissionChange(){this.policyChange.emit(this.policyConfig)}onPermissionSelectionChange(e){null!=e&&e.length>0&&(this.currentPermission=e[0])}removePermission(){this.currentPermission&&(this.policyConfig.policy.permissions=this.policyConfig.policy.permissions.filter(e=>e!=this.currentPermission),this.currentPermission=this.policyConfig.policy.permissions[0],this.policyChange.emit(this.policyConfig))}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275cmp=xe({type:i,selectors:[["app-policy-builder"]],inputs:{policyConfig:"policyConfig"},outputs:{policyChange:"policyChange"},standalone:!0,features:[Pn],decls:22,vars:5,consts:[[1,"policy-builder-container"],[1,"w-full"],["matInput","","placeholder","My Policy",3,"ngModel","ngModelChange"],["input",""],["expanded","panelOpenState",3,"opened","closed"],[1,"flex","flex-row","justify-between"],[1,"w-1/5",3,"multiple","ngModel","ngModelChange"],["shoes",""],["selected","permission === currentPermission",3,"value",4,"ngFor","ngForOf"],["class","grow w-4/5",3,"permission","permissionChange",4,"ngIf"],["mat-button","","color","primary","matTooltip","Remove selected permission",3,"click"],["mat-button","","color","primary","matTooltip","Add permission",3,"click"],["selected","permission === currentPermission",3,"value"],[1,"grow","w-4/5",3,"permission","permissionChange"]],template:function(n,o){1&n&&(k(0,"div",0)(1,"div")(2,"mat-form-field",1)(3,"mat-label"),he(4,"Policy Name"),S(),k(5,"input",2,3),$("ngModelChange",function(s){return o.policyConfig.name=s}),S()()(),k(7,"mat-accordion",1)(8,"mat-expansion-panel",4),$("opened",function(){return o.panelOpenState=!0})("closed",function(){return o.panelOpenState=!1}),k(9,"mat-expansion-panel-header")(10,"mat-panel-title"),he(11," Permission "),S()(),k(12,"div",5)(13,"mat-selection-list",6,7),$("ngModelChange",function(s){return o.onPermissionSelectionChange(s)}),U(15,kre,2,2,"mat-list-option",8),S(),U(16,Dre,1,1,"app-permission",9),S(),k(17,"mat-action-row")(18,"button",10),$("click",function(){return o.removePermission()}),he(19," Remove "),S(),k(20,"button",11),$("click",function(){return o.addPermission()}),he(21,"Add"),S()()()()()),2&n&&(R(5),T("ngModel",o.policyConfig.name),R(8),T("multiple",!1)("ngModel",o.selectedPermissions),R(2),T("ngForOf",o.policyConfig.policy.permissions),R(1),T("ngIf",o.currentPermission))},dependencies:[Lo,Fv,bie,vo,pl,Fr,gl,op,pr,Hie,Vie,oN,Pie,rN,Bie,Rs,hp,FN,RN,kN,as,ar,Gm,Cre,Is,Es,As,Rr,Rx,pL],styles:[".policy-builder-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start}"]})}return i})();const gL={"@type":"Set","@context":"http://www.w3.org/ns/odrl.jsonld"},Ere=Object.assign({"@context":{edc:"https://w3id.org/edc/v0.0.1/ns/",tx:"https://w3id.org/tractusx/v0.0.1/ns/",xsd:"http://www.w3.org/2001/XMLSchema#"},"@type":"PolicyDefinitionRequest","@id":"{{POLICY_ID}}",policy:{}},{policy:{...gL,permission:[]}});class Are{constructor(t){this.policyService=t}toJsonLd(t){const e=t.policy.permissions.map(this.mapPermission.bind(this)),n=this.policyService.contextFor(t);return delete n.odrl,Object.assign(Ere,{"@context":n,policy:{...gL,permission:e}})}mapPermission(t){return{action:t.action.toString(),constraint:t.constraints.map(this.mapConstraint.bind(this))}}mapConstraint(t){if(t instanceof Nt){let e;return e=t.leftOperand.prefix?t.leftOperand.toString():{"@value":t.leftOperand.toString()},{leftOperand:e,operator:t.operator.toString(),rightOperand:this.mapRightOperand(t)}}if(t instanceof Pr){const e={"@type":"LogicalConstraint"};return e[t.operator.toString().toLowerCase()]=t.constraints.map(this.mapConstraint.bind(this)),e}return{}}mapRightOperand(t){return t.rightOperand instanceof Nr?{"@value":t.rightOperand.value,"@type":t.rightOperand.ty}:t.rightOperand}}const Fx="odrl",Wd=Fx+":",_L={"@type":Wd+"Set"},Ire=Object.assign({"@context":{edc:"https://w3id.org/edc/v0.0.1/ns/",odrl:"http://www.w3.org/ns/odrl/2/",tx:"https://w3id.org/tractusx/v0.0.1/ns/",xsd:"http://www.w3.org/2001/XMLSchema#"},"@type":"PolicyDefinitionRequest","@id":"{{POLICY_ID}}",policy:{}},{policy:{..._L,"odrl:permission":[]}});class Ore{constructor(t){this.policyService=t}toJsonLd(t){const e=t.policy.permissions.map(this.mapPermission.bind(this)),n=this.policyService.contextFor(t);return n[Fx]=cL[Fx],Object.assign(Ire,{"@context":n,policy:{..._L,"odrl:permission":e}})}mapPermission(t){return{"odrl:action":{"@id":Wd+t.action.toString()},"odrl:constraint":t.constraints.map(this.mapConstraint.bind(this))}}mapConstraint(t){if(t instanceof Nt){let e;return e=t.leftOperand.prefix?{"@id":t.leftOperand.toString()}:{"@value":t.leftOperand.toString()},{"odrl:leftOperand":e,"odrl:operator":{"@id":Wd+t.operator.toString()},"odrl:rightOperand":this.mapRightOperand(t)}}if(t instanceof Pr){const e={"@type":Wd+"LogicalConstraint"};return e[Wd+t.operator.toString().toLowerCase()]=t.constraints.map(this.mapConstraint.bind(this)),e}return{}}mapRightOperand(t){return t.rightOperand instanceof Nr?{"@value":t.rightOperand.value,"@type":t.rightOperand.ty}:t.rightOperand}}let bL=(()=>{class i{constructor(e){this.policyService=e,this.formatters=new Map,this.formatters.set(bl.Plain,new Are(e)),this.formatters.set(bl.Prefixed,new Ore(e))}toJsonLd(e,n=bl.Prefixed){const o=this.formatters.get(n);if(null!=o)return o.toJsonLd(e);throw new Error("Formatter not found")}formatPolicy(e){return JSON.stringify(e,null,2)}static#e=this.\u0275fac=function(n){return new(n||i)(C(vl))};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),vL=(()=>{class i{constructor(){this.configurations=[],this.configurations=[yl("Bpn Policy",oL(),"Bpn permission"),yl("Business Partner Group Policy",rL(),"Business Partner Group permission"),yl("InForce Policy (Fixed)",sL()),yl("InForce Policy (Duration)",aL()),...lL().map(i=>{const t=i.leftOperand?.value?.split(".");return yl(t&&1!=t.length?`${t[0]} Policy (${t[1]})`:`${i.leftOperand.value} Policy`,i)})]}loadConfigurations(){return this.configurations}store(e){this.configurations.push(e)}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac})}return i})();function yl(i,t,e="Permission"){const n=new zd(i),o=new fp;return o.name=e,o.constraints.push(t),n.policy.permissions.push(o),n}function Bre(i,t){if(1&i&&(k(0,"mat-option",13),he(1),S()),2&i){const e=t.$implicit;T("value",e),R(1),mn(" ",e.name," ")}}function Vre(i,t){if(1&i&&(k(0,"mat-option",13),he(1),S()),2&i){const e=t.$implicit;T("value",e),R(1),mn(" ",e," ")}}let yL=(()=>{class i{constructor(e,n,o){this.formatService=e,this.store=n,this.policyService=o,this.configurations=[],this.configurations=n.loadConfigurations(),this.currentFormat=bl.Plain,0==this.configurations.length&&n.store(new zd("Policy Template")),this.policyConfig=this.configurations[0],this.outputFormats=o.supportedOutput(),this.updateJsonText(this.policyConfig,this.currentFormat)}addPolicy(){this.policyConfig=new zd("New Policy"),this.store.store(this.policyConfig)}copyPolicy(){this.policyConfig=this.policyConfig.clone(),this.store.store(this.policyConfig)}onConfigSelectionChange(e){this.policyConfig=e,this.updateJsonText(e,this.currentFormat)}onConfigChange(e){this.updateJsonText(e,this.currentFormat)}onOutputFormatChange(e){this.updateJsonText(this.policyConfig,e)}updateJsonText(e,n){const o=this.formatService.toJsonLd(e,n);this.text=this.formatService.formatPolicy(o)}static#e=this.\u0275fac=function(n){return new(n||i)(_(bL),_(vL),_(vl))};static#t=this.\u0275cmp=xe({type:i,selectors:[["app-policy-editor"]],standalone:!0,features:[Pn],decls:24,vars:6,consts:[[1,"policy-editor-container"],[1,"policy-editor-container","flex","justify-center"],["appearance","outline"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["mat-icon-button","","color","primary","matTooltip","Create new policy",3,"click"],["mat-icon-button","","color","primary","matTooltip","Copy the selected policy",3,"click"],[1,"flex","justify-right"],[1,"flex","flex-row","policy-split-container"],[1,"policy-card-container","w-3/5"],[3,"policyConfig","policyChange"],[1,"policy-card-container","w-2/5"],[1,"policy-editor",3,"text"],[3,"value"]],template:function(n,o){1&n&&(k(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),he(4,"Select policy"),S(),k(5,"mat-select",3),$("ngModelChange",function(s){return o.onConfigSelectionChange(s)}),U(6,Bre,2,2,"mat-option",4),S()(),k(7,"button",5),$("click",function(){return o.addPolicy()}),k(8,"mat-icon"),he(9,"add"),S()(),k(10,"button",6),$("click",function(){return o.copyPolicy()}),k(11,"mat-icon"),he(12,"content_copy"),S()()(),k(13,"div",7)(14,"mat-form-field",2)(15,"mat-label"),he(16,"Output format"),S(),k(17,"mat-select",3),$("ngModelChange",function(s){return o.onOutputFormatChange(s)}),U(18,Vre,2,2,"mat-option",4),S()()(),k(19,"div",8)(20,"div",9)(21,"app-policy-builder",10),$("policyChange",function(s){return o.onConfigChange(s)}),S()(),k(22,"div",11),De(23,"app-editor",12),S()()()),2&n&&(R(5),T("ngModel",o.policyConfig),R(1),T("ngForOf",o.configurations),R(11),T("ngModel",o.currentFormat),R(1),T("ngForOf",o.outputFormats),R(3),T("policyConfig",o.policyConfig),R(2),T("text",o.text))},dependencies:[see,cee,Gm,Sre,vo,pl,Fr,Rs,up,Lc,pr,lT,Lo,dT,Is,As,Rr,as,Rx,pL],styles:[".policy-editor[_ngcontent-%COMP%], .policy-editor-card[_ngcontent-%COMP%]{height:100%;width:100%}.policy-editor-container[_ngcontent-%COMP%]{width:90%;margin:20px auto auto}.policy-card-container[_ngcontent-%COMP%]{height:100%;border-radius:4px;border:1px solid rgba(0,0,0,.2)}.policy-split-container[_ngcontent-%COMP%]{column-gap:5px}"]})}return i})(),Hre=(()=>{class i{constructor(){this.title="edc-policy-playground"}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275cmp=xe({type:i,selectors:[["app-root"]],decls:2,vars:0,template:function(n,o){1&n&&De(0,"app-header")(1,"app-policy-editor")},dependencies:[uT,yL],encapsulation:2})}return i})();function xL(i){return new D(3e3,!1)}function Lr(i){switch(i.length){case 0:return new Fd;case 1:return i[0];default:return new H2(i)}}function wL(i,t,e=new Map,n=new Map){const o=[],r=[];let s=-1,a=null;if(t.forEach(l=>{const c=l.get("offset"),d=c==s,u=d&&a||new Map;l.forEach((h,f)=>{let m=f,p=h;if("offset"!==f)switch(m=i.normalizePropertyName(m,o),p){case"!":p=e.get(f);break;case Wo:p=n.get(f);break;default:p=i.normalizeStyleValue(f,m,p,o)}u.set(m,p)}),d||r.push(u),a=u,s=c}),o.length)throw function cse(i){return new D(3502,!1)}();return r}function Px(i,t,e,n){switch(t){case"start":i.onStart(()=>n(e&&Nx(e,"start",i)));break;case"done":i.onDone(()=>n(e&&Nx(e,"done",i)));break;case"destroy":i.onDestroy(()=>n(e&&Nx(e,"destroy",i)))}}function Nx(i,t,e){const r=Lx(i.element,i.triggerName,i.fromState,i.toState,t||i.phaseName,e.totalTime??i.totalTime,!!e.disabled),s=i._data;return null!=s&&(r._data=s),r}function Lx(i,t,e,n,o="",r=0,s){return{element:i,triggerName:t,fromState:e,toState:n,phaseName:o,totalTime:r,disabled:!!s}}function tn(i,t,e){let n=i.get(t);return n||i.set(t,n=e),n}function CL(i){const t=i.indexOf(":");return[i.substring(1,t),i.slice(t+1)]}const xse=(()=>typeof document>"u"?null:document.documentElement)();function Bx(i){const t=i.parentNode||i.host||null;return t===xse?null:t}let Fs=null,kL=!1;function DL(i,t){for(;t;){if(t===i)return!0;t=Bx(t)}return!1}function SL(i,t,e){if(e)return Array.from(i.querySelectorAll(t));const n=i.querySelector(t);return n?[n]:[]}let ML=(()=>{class i{validateStyleProperty(e){return function Cse(i){Fs||(Fs=function kse(){return typeof document<"u"?document.body:null}()||{},kL=!!Fs.style&&"WebkitAppearance"in Fs.style);let t=!0;return Fs.style&&!function wse(i){return"ebkit"==i.substring(1,6)}(i)&&(t=i in Fs.style,!t&&kL&&(t="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in Fs.style)),t}(e)}matchesElement(e,n){return!1}containsElement(e,n){return DL(e,n)}getParentElement(e){return Bx(e)}query(e,n,o){return SL(e,n,o)}computeStyle(e,n,o){return o||""}animate(e,n,o,r,s,a=[],l){return new Fd(o,r)}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac})}return i})(),Vx=(()=>{class i{static#e=this.NOOP=new ML}return i})();const Dse=1e3,Hx="ng-enter",yp="ng-leave",xp="ng-trigger",wp=".ng-trigger",AL="ng-animating",zx=".ng-animating";function Yo(i){if("number"==typeof i)return i;const t=i.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:jx(parseFloat(t[1]),t[2])}function jx(i,t){return"s"===t?i*Dse:i}function Cp(i,t,e){return i.hasOwnProperty("duration")?i:function Mse(i,t,e){let o,r=0,s="";if("string"==typeof i){const a=i.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(xL()),{duration:0,delay:0,easing:""};o=jx(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(r=jx(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else o=i;if(!e){let a=!1,l=t.length;o<0&&(t.push(function zre(){return new D(3100,!1)}()),a=!0),r<0&&(t.push(function jre(){return new D(3101,!1)}()),a=!0),a&&t.splice(l,0,xL())}return{duration:o,delay:r,easing:s}}(i,t,e)}function Gd(i,t={}){return Object.keys(i).forEach(e=>{t[e]=i[e]}),t}function TL(i){const t=new Map;return Object.keys(i).forEach(e=>{t.set(e,i[e])}),t}function Br(i,t=new Map,e){if(e)for(let[n,o]of e)t.set(n,o);for(let[n,o]of i)t.set(n,o);return t}function yo(i,t,e){t.forEach((n,o)=>{const r=Ux(o);e&&!e.has(o)&&e.set(o,i.style[r]),i.style[r]=n})}function Ps(i,t){t.forEach((e,n)=>{const o=Ux(n);i.style[o]=""})}function qd(i){return Array.isArray(i)?1==i.length?i[0]:V2(i):i}const $x=new RegExp("{{\\s*(.+?)\\s*}}","g");function OL(i){let t=[];if("string"==typeof i){let e;for(;e=$x.exec(i);)t.push(e[1]);$x.lastIndex=0}return t}function Yd(i,t,e){const n=i.toString(),o=n.replace($x,(r,s)=>{let a=t[s];return null==a&&(e.push(function Ure(i){return new D(3003,!1)}()),a=""),a.toString()});return o==n?i:o}function kp(i){const t=[];let e=i.next();for(;!e.done;)t.push(e.value),e=i.next();return t}const Tse=/-+([a-z0-9])/g;function Ux(i){return i.replace(Tse,(...t)=>t[1].toUpperCase())}function nn(i,t,e){switch(t.type){case 7:return i.visitTrigger(t,e);case 0:return i.visitState(t,e);case 1:return i.visitTransition(t,e);case 2:return i.visitSequence(t,e);case 3:return i.visitGroup(t,e);case 4:return i.visitAnimate(t,e);case 5:return i.visitKeyframes(t,e);case 6:return i.visitStyle(t,e);case 8:return i.visitReference(t,e);case 9:return i.visitAnimateChild(t,e);case 10:return i.visitAnimateRef(t,e);case 11:return i.visitQuery(t,e);case 12:return i.visitStagger(t,e);default:throw function Wre(i){return new D(3004,!1)}()}}function RL(i,t){return window.getComputedStyle(i)[t]}const Dp="*";function Rse(i,t){const e=[];return"string"==typeof i?i.split(/\s*,\s*/).forEach(n=>function Fse(i,t,e){if(":"==i[0]){const l=function Pse(i,t){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n) *"}}(i,e);if("function"==typeof l)return void t.push(l);i=l}const n=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return e.push(function ose(i){return new D(3015,!1)}()),t;const o=n[1],r=n[2],s=n[3];t.push(FL(o,s));"<"==r[0]&&!(o==Dp&&s==Dp)&&t.push(FL(s,o))}(n,e,t)):e.push(i),e}const Sp=new Set(["true","1"]),Mp=new Set(["false","0"]);function FL(i,t){const e=Sp.has(i)||Mp.has(i),n=Sp.has(t)||Mp.has(t);return(o,r)=>{let s=i==Dp||i==o,a=t==Dp||t==r;return!s&&e&&"boolean"==typeof o&&(s=o?Sp.has(i):Mp.has(i)),!a&&n&&"boolean"==typeof r&&(a=r?Sp.has(t):Mp.has(t)),s&&a}}const Nse=new RegExp("s*:selfs*,?","g");function Wx(i,t,e,n){return new Lse(i).build(t,e,n)}class Lse{constructor(t){this._driver=t}build(t,e,n){const o=new Hse(e);return this._resetContextStyleTimingState(o),nn(this,qd(t),o)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles=new Map,t.collectedStyles.set("",new Map),t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,o=e.depCount=0;const r=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push(function qre(){return new D(3006,!1)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,r.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);n+=l.queryCount,o+=l.depCount,s.push(l)}else e.errors.push(function Yre(){return new D(3007,!1)}())}),{type:7,name:t.name,states:r,transitions:s,queryCount:n,depCount:o,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),o=t.options&&t.options.params||null;if(n.containsDynamicStyles){const r=new Set,s=o||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{OL(l).forEach(c=>{s.hasOwnProperty(c)||r.add(c)})})}),r.size&&(kp(r.values()),e.errors.push(function Xre(i,t){return new D(3008,!1)}()))}return{type:0,name:t.name,style:n,options:o?{params:o}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=nn(this,qd(t.animation),e);return{type:1,matchers:Rse(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Ns(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(n=>nn(this,n,e)),options:Ns(t.options)}}visitGroup(t,e){const n=e.currentTime;let o=0;const r=t.steps.map(s=>{e.currentTime=n;const a=nn(this,s,e);return o=Math.max(o,e.currentTime),a});return e.currentTime=o,{type:3,steps:r,options:Ns(t.options)}}visitAnimate(t,e){const n=function jse(i,t){if(i.hasOwnProperty("duration"))return i;if("number"==typeof i)return Gx(Cp(i,t).duration,0,"");const e=i;if(e.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const r=Gx(0,0,"");return r.dynamic=!0,r.strValue=e,r}const o=Cp(e,t);return Gx(o.duration,o.delay,o.easing)}(t.timings,e.errors);e.currentAnimateTimings=n;let o,r=t.styles?t.styles:_t({});if(5==r.type)o=this.visitKeyframes(r,e);else{let s=t.styles,a=!1;if(!s){a=!0;const c={};n.easing&&(c.easing=n.easing),s=_t(c)}e.currentTime+=n.duration+n.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,o=l}return e.currentAnimateTimings=null,{type:4,timings:n,style:o,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[],o=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of o)"string"==typeof a?a===Wo?n.push(a):e.errors.push(new D(3002,!1)):n.push(TL(a));let r=!1,s=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!r))for(let l of a.values())if(l.toString().indexOf("{{")>=0){r=!0;break}}),{type:6,styles:n,easing:s,offset:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let o=e.currentTime,r=e.currentTime;n&&r>0&&(r-=n.duration+n.delay),t.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),d=c.get(l);let u=!0;d&&(r!=o&&r>=d.startTime&&o<=d.endTime&&(e.errors.push(function Zre(i,t,e,n,o){return new D(3010,!1)}()),u=!1),r=d.startTime),u&&c.set(l,{startTime:r,endTime:o}),e.options&&function Ase(i,t,e){const n=t.params||{},o=OL(i);o.length&&o.forEach(r=>{n.hasOwnProperty(r)||e.push(function $re(i){return new D(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function Qre(){return new D(3011,!1)}()),n;let r=0;const s=[];let a=!1,l=!1,c=0;const d=t.steps.map(b=>{const v=this._makeStyleAst(b,e);let x=null!=v.offset?v.offset:function zse(i){if("string"==typeof i)return null;let t=null;if(Array.isArray(i))i.forEach(e=>{if(e instanceof Map&&e.has("offset")){const n=e;t=parseFloat(n.get("offset")),n.delete("offset")}});else if(i instanceof Map&&i.has("offset")){const e=i;t=parseFloat(e.get("offset")),e.delete("offset")}return t}(v.styles),y=0;return null!=x&&(r++,y=v.offset=x),l=l||y<0||y>1,a=a||y0&&r{const x=h>0?v==f?1:h*v:s[v],y=x*g;e.currentTime=m+p.delay+y,p.duration=y,this._validateStyleAst(b,e),b.offset=x,n.styles.push(b)}),n}visitReference(t,e){return{type:8,animation:nn(this,qd(t.animation),e),options:Ns(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Ns(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Ns(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,o=t.options||{};e.queryCount++,e.currentQuery=t;const[r,s]=function Bse(i){const t=!!i.split(/\s*,\s*/).find(e=>":self"==e);return t&&(i=i.replace(Nse,"")),i=i.replace(/@\*/g,wp).replace(/@\w+/g,e=>wp+"-"+e.slice(1)).replace(/:animating/g,zx),[i,t]}(t.selector);e.currentQuerySelector=n.length?n+" "+r:r,tn(e.collectedStyles,e.currentQuerySelector,new Map);const a=nn(this,qd(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:Ns(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function ise(){return new D(3013,!1)}());const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:Cp(t.timings,e.errors,!0);return{type:12,animation:nn(this,qd(t.animation),e),timings:n,options:null}}}class Hse{constructor(t){this.errors=t,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 Ns(i){return i?(i=Gd(i)).params&&(i.params=function Vse(i){return i?Gd(i):null}(i.params)):i={},i}function Gx(i,t,e){return{duration:i,delay:t,easing:e}}function qx(i,t,e,n,o,r,s=null,a=!1){return{type:1,element:i,keyframes:t,preStyleProps:e,postStyleProps:n,duration:o,delay:r,totalTime:o+r,easing:s,subTimeline:a}}class Ep{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const Wse=new RegExp(":enter","g"),qse=new RegExp(":leave","g");function Yx(i,t,e,n,o,r=new Map,s=new Map,a,l,c=[]){return(new Yse).buildKeyframes(i,t,e,n,o,r,s,a,l,c)}class Yse{buildKeyframes(t,e,n,o,r,s,a,l,c,d=[]){c=c||new Ep;const u=new Xx(t,e,c,o,r,d,[]);u.options=l;const h=l.delay?Yo(l.delay):0;u.currentTimeline.delayNextStep(h),u.currentTimeline.setStyles([s],null,u.errors,l),nn(this,n,u);const f=u.timelines.filter(m=>m.containsAnimation());if(f.length&&a.size){let m;for(let p=f.length-1;p>=0;p--){const g=f[p];if(g.element===e){m=g;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([a],null,u.errors,l)}return f.length?f.map(m=>m.buildKeyframes()):[qx(e,[],[],[],0,h,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.get(e.element);if(n){const o=e.createSubContext(t.options),r=e.currentTimeline.currentTime,s=this._visitSubInstructions(n,o,o.options);r!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],e,n),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_applyAnimationRefDelays(t,e,n){for(const o of t){const r=o?.delay;if(r){const s="number"==typeof r?r:Yo(Yd(r,o?.params??{},e.errors));n.delayNextStep(s)}}}_visitSubInstructions(t,e,n){let r=e.currentTimeline.currentTime;const s=null!=n.duration?Yo(n.duration):null,a=null!=n.delay?Yo(n.delay):null;return 0!==s&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(t,e){e.updateOptions(t.options,!0),nn(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let o=e;const r=t.options;if(r&&(r.params||r.delay)&&(o=e.createSubContext(r),o.transformIntoNewTimeline(),null!=r.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Ap);const s=Yo(r.delay);o.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>nn(this,s,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>n&&o.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let o=e.currentTimeline.currentTime;const r=t.options&&t.options.delay?Yo(t.options.delay):0;t.steps.forEach(s=>{const a=e.createSubContext(t.options);r&&a.delayNextStep(r),nn(this,s,a),o=Math.max(o,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(o),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return Cp(e.params?Yd(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),o=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),o.snapshotCurrentStyles());const r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,o=e.currentAnimateTimings;!o&&n.hasCurrentStyleProperties()&&n.forwardFrame();const r=o&&o.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(r):n.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,o=e.currentTimeline.duration,r=n.duration,a=e.createSubContext().currentTimeline;a.easing=n.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*r),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(o+r),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,o=t.options||{},r=o.delay?Yo(o.delay):0;r&&(6===e.previousNode.type||0==n&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Ap);let s=n;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{e.currentQueryIndex=d;const u=e.createSubContext(t.options,c);r&&u.delayNextStep(r),c===e.element&&(l=u.currentTimeline),nn(this,t.animation,u),u.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,u.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,o=e.currentTimeline,r=t.timings,s=Math.abs(r.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime}const d=e.currentTimeline;l&&d.delayNextStep(l);const u=d.currentTime;nn(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=o.currentTime-u+(o.startTime-n.currentTimeline.startTime)}}const Ap={};class Xx{constructor(t,e,n,o,r,s,a,l){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=o,this._leaveClassName=r,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ap,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Tp(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let o=this.options;null!=n.duration&&(o.duration=Yo(n.duration)),null!=n.delay&&(o.delay=Yo(n.delay));const r=n.params;if(r){let s=o.params;s||(s=this.options.params={}),Object.keys(r).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=Yd(r[a],s,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(o=>{n[o]=e[o]})}}return t}createSubContext(t=null,e,n){const o=e||this.element,r=new Xx(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(t){return this.previousNode=Ap,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const o={duration:e??t.duration,delay:this.currentTimeline.currentTime+(n??0)+t.delay,easing:""},r=new Xse(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,o,t.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,o,r,s){let a=[];if(o&&a.push(this.element),t.length>0){t=(t=t.replace(Wse,"."+this._enterClassName)).replace(qse,"."+this._leaveClassName);let c=this._driver.query(this.element,t,1!=n);0!==n&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!r&&0==a.length&&s.push(function nse(i){return new D(3014,!1)}()),a}}class Tp{constructor(t,e,n,o){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=o,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(t){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new Tp(this._driver,t,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(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,n]of this._globalTimelineStyles)this._backFill.set(e,n||Wo),this._currentKeyframe.set(e,Wo);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,o){e&&this._previousKeyframe.set("easing",e);const r=o&&o.params||{},s=function Kse(i,t){const e=new Map;let n;return i.forEach(o=>{if("*"===o){n=n||t.keys();for(let r of n)e.set(r,Wo)}else Br(o,e)}),e}(t,this._globalTimelineStyles);for(let[a,l]of s){const c=Yd(l,r,n);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Wo),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,n)=>{const o=this._styleSummary.get(n);(!o||e.time>o.time)&&this._updateStyle(n,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((a,l)=>{const c=Br(a,new Map,this._backFill);c.forEach((d,u)=>{"!"===d?t.add(u):d===Wo&&e.add(u)}),n||c.set("offset",l/this.duration),o.push(c)});const r=t.size?kp(t.values()):[],s=e.size?kp(e.values()):[];if(n){const a=o[0],l=new Map(a);a.set("offset",0),l.set("offset",1),o=[a,l]}return qx(this.element,o,r,s,this.duration,this.startTime,this.easing,!1)}}class Xse extends Tp{constructor(t,e,n,o,r,s,a=!1){super(t,e,s.delay),this.keyframes=n,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],s=n+e,a=e/s,l=Br(t[0]);l.set("offset",0),r.push(l);const c=Br(t[0]);c.set("offset",LL(a)),r.push(c);const d=t.length-1;for(let u=1;u<=d;u++){let h=Br(t[u]);const f=h.get("offset");h.set("offset",LL((e+f*n)/s)),r.push(h)}n=s,e=0,o="",t=r}return qx(this.element,t,this.preStyleProps,this.postStyleProps,n,e,o,!0)}}function LL(i,t=3){const e=Math.pow(10,t-1);return Math.round(i*e)/e}class Kx{}const Zse=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 Qse extends Kx{normalizePropertyName(t,e){return Ux(t)}normalizeStyleValue(t,e,n,o){let r="";const s=n.toString().trim();if(Zse.has(e)&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{const a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&o.push(function Gre(i,t){return new D(3005,!1)}())}return s+r}}function BL(i,t,e,n,o,r,s,a,l,c,d,u,h){return{type:0,element:i,triggerName:t,isRemovalTransition:o,fromState:e,fromStyles:r,toState:n,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:h}}const Zx={};class VL{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,o){return function Jse(i,t,e,n,o){return i.some(r=>r(t,e,n,o))}(this.ast.matchers,t,e,n,o)}buildStyles(t,e,n){let o=this._stateStyles.get("*");return void 0!==t&&(o=this._stateStyles.get(t?.toString())||o),o?o.buildStyles(e,n):new Map}build(t,e,n,o,r,s,a,l,c,d){const u=[],h=this.ast.options&&this.ast.options.params||Zx,m=this.buildStyles(n,a&&a.params||Zx,u),p=l&&l.params||Zx,g=this.buildStyles(o,p,u),b=new Set,v=new Map,x=new Map,y="void"===o,w={params:eae(p,h),delay:this.ast.options?.delay},M=d?[]:Yx(t,e,this.ast.animation,r,s,m,g,w,c,u);let F=0;if(M.forEach(Q=>{F=Math.max(Q.duration+Q.delay,F)}),u.length)return BL(e,this._triggerName,n,o,y,m,g,[],[],v,x,F,u);M.forEach(Q=>{const ie=Q.element,Ve=tn(v,ie,new Set);Q.preStyleProps.forEach(st=>Ve.add(st));const tt=tn(x,ie,new Set);Q.postStyleProps.forEach(st=>tt.add(st)),ie!==e&&b.add(ie)});const K=kp(b.values());return BL(e,this._triggerName,n,o,y,m,g,M,K,v,x,F)}}function eae(i,t){const e=Gd(t);for(const n in i)i.hasOwnProperty(n)&&null!=i[n]&&(e[n]=i[n]);return e}class tae{constructor(t,e,n){this.styles=t,this.defaultParams=e,this.normalizer=n}buildStyles(t,e){const n=new Map,o=Gd(this.defaultParams);return Object.keys(t).forEach(r=>{const s=t[r];null!==s&&(o[r]=s)}),this.styles.styles.forEach(r=>{"string"!=typeof r&&r.forEach((s,a)=>{s&&(s=Yd(s,o,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),n.set(a,s)})}),n}}class nae{constructor(t,e,n){this.name=t,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{this.states.set(o.name,new tae(o.style,o.options&&o.options.params||{},n))}),HL(this.states,"true","1"),HL(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new VL(t,o,this.states))}),this.fallbackTransition=function oae(i,t,e){return new VL(i,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,o){return this.transitionFactories.find(s=>s.match(t,e,n,o))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function HL(i,t,e){i.has(t)?i.has(e)||i.set(e,i.get(t)):i.has(e)&&i.set(t,i.get(e))}const rae=new Ep;class sae{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,e){const n=[],r=Wx(this._driver,e,n,[]);if(n.length)throw function dse(i){return new D(3503,!1)}();this._animations.set(t,r)}_buildPlayer(t,e,n){const o=t.element,r=wL(this._normalizer,t.keyframes,e,n);return this._driver.animate(o,r,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const o=[],r=this._animations.get(t);let s;const a=new Map;if(r?(s=Yx(this._driver,e,r,Hx,yp,new Map,new Map,n,rae,o),s.forEach(d=>{const u=tn(a,d.element,new Map);d.postStyleProps.forEach(h=>u.set(h,null))})):(o.push(function use(){return new D(3300,!1)}()),s=[]),o.length)throw function hse(i){return new D(3504,!1)}();a.forEach((d,u)=>{d.forEach((h,f)=>{d.set(f,this._driver.computeStyle(u,f,Wo))})});const c=Lr(s.map(d=>{const u=a.get(d.element);return this._buildPlayer(d,new Map,u)}));return this._playersById.set(t,c),c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById.get(t);if(!e)throw function fse(i){return new D(3301,!1)}();return e}listen(t,e,n,o){const r=Lx(e,"","","");return Px(this._getPlayer(t),n,r,o),()=>{}}command(t,e,n,o){if("register"==n)return void this.register(t,o[0]);if("create"==n)return void this.create(t,e,o[0]||{});const r=this._getPlayer(t);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(t)}}}const zL="ng-animate-queued",Qx="ng-animate-disabled",uae=[],jL={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},hae={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},jn="__ng_removed";class Jx{get params(){return this.options.params}constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=function gae(i){return i??null}(n?t.value:t),n){const r=Gd(t);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){const e=t.params;if(e){const n=this.options.params;Object.keys(e).forEach(o=>{null==n[o]&&(n[o]=e[o])})}}}const Xd="void",ew=new Jx(Xd);class fae{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,En(e,this._hostClassName)}listen(t,e,n,o){if(!this._triggers.has(e))throw function mse(i,t){return new D(3302,!1)}();if(null==n||0==n.length)throw function pse(i){return new D(3303,!1)}();if(!function _ae(i){return"start"==i||"done"==i}(n))throw function gse(i,t){return new D(3400,!1)}();const r=tn(this._elementListeners,t,[]),s={name:e,phase:n,callback:o};r.push(s);const a=tn(this._engine.statesByElement,t,new Map);return a.has(e)||(En(t,xp),En(t,xp+"-"+e),a.set(e,ew)),()=>{this._engine.afterFlush(()=>{const l=r.indexOf(s);l>=0&&r.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(t,e){return!this._triggers.has(t)&&(this._triggers.set(t,e),!0)}_getTrigger(t){const e=this._triggers.get(t);if(!e)throw function _se(i){return new D(3401,!1)}();return e}trigger(t,e,n,o=!0){const r=this._getTrigger(e),s=new tw(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(En(t,xp),En(t,xp+"-"+e),this._engine.statesByElement.set(t,a=new Map));let l=a.get(e);const c=new Jx(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=ew),c.value!==Xd&&l.value===c.value){if(!function yae(i,t){const e=Object.keys(i),n=Object.keys(t);if(e.length!=n.length)return!1;for(let o=0;o{Ps(t,g),yo(t,b)})}return}const h=tn(this._engine.playersByElement,t,[]);h.forEach(p=>{p.namespaceId==this.id&&p.triggerName==e&&p.queued&&p.destroy()});let f=r.matchTransition(l.value,c.value,t,c.params),m=!1;if(!f){if(!o)return;f=r.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:m}),m||(En(t,zL),s.onStart(()=>{xl(t,zL)})),s.onDone(()=>{let p=this.players.indexOf(s);p>=0&&this.players.splice(p,1);const g=this._engine.playersByElement.get(t);if(g){let b=g.indexOf(s);b>=0&&g.splice(b,1)}}),this.players.push(s),h.push(s),s}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(o=>o.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,wp,!0);n.forEach(o=>{if(o[jn])return;const r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(s=>s.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(t,e,n,o){const r=this._engine.statesByElement.get(t),s=new Map;if(r){const a=[];if(r.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const d=this.trigger(t,c,Xd,o);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,s),n&&Lr(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(e&&n){const o=new Set;e.forEach(r=>{const s=r.name;if(o.has(s))return;o.add(s);const l=this._triggers.get(s).fallbackTransition,c=n.get(s)||ew,d=new Jx(Xd),u=new tw(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let o=!1;if(n.totalAnimations){const r=n.players.length?n.playersByQueriedElement.get(t):[];if(r&&r.length)o=!0;else{let s=t;for(;s=s.parentNode;)if(n.statesByElement.get(s)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(t),o)n.markElementAsRemoved(this.id,t,!1,e);else{const r=t[jn];(!r||r===jL)&&(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){En(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const o=n.player;if(o.destroyed)return;const r=n.element,s=this._elementListeners.get(r);s&&s.forEach(a=>{if(a.name==n.triggerName){const l=Lx(r,n.triggerName,n.fromState.value,n.toState.value);l._data=t,Px(n.player,a.phase,l,a.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(n)}),this._queue=[],e.sort((n,o)=>{const r=n.transition.ast.depCount,s=o.transition.ast.depCount;return 0==r||0==s?r-s:this._engine.driver.containsElement(n.element,o.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}}class mae{_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}constructor(t,e,n){this.bodyNode=t,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=(o,r)=>{}}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&t.push(n)})}),t}createNamespace(t,e){const n=new fae(t,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[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList,o=this.namespacesByHostElement;if(n.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const l=o.get(a);if(l){const c=n.indexOf(l);n.splice(c+1,0,t),s=!0;break}a=this.driver.getParentElement(a)}s||n.unshift(t)}else n.push(t);return o.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let o=this._namespaceLookup[t];o&&o.register(e,n)&&this.totalAnimations++}destroy(t,e){t&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const n=this._fetchNamespace(t);this.namespacesByHostElement.delete(n.hostElement);const o=this._namespaceList.indexOf(n);o>=0&&this._namespaceList.splice(o,1),n.destroy(e),delete this._namespaceLookup[t]}))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n)for(let o of n.values())if(o.namespaceId){const r=this._fetchNamespace(o.namespaceId);r&&e.add(r)}return e}trigger(t,e,n,o){if(Ip(e)){const r=this._fetchNamespace(t);if(r)return r.trigger(e,n,o),!0}return!1}insertNode(t,e,n,o){if(!Ip(e))return;const r=e[jn];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(e,n)}o&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),En(t,Qx)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),xl(t,Qx))}removeNode(t,e,n){if(Ip(e)){const o=t?this._fetchNamespace(t):null;o?o.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n);const r=this.namespacesByHostElement.get(e);r&&r.id!==t&&r.removeNode(e,n)}else this._onRemovalComplete(e,n)}markElementAsRemoved(t,e,n,o,r){this.collectedLeaveElements.push(e),e[jn]={namespaceId:t,setForRemoval:o,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:r}}listen(t,e,n,o,r){return Ip(e)?this._fetchNamespace(t).listen(e,n,o,r):()=>{}}_buildInstruction(t,e,n,o,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,o,t.fromState.options,t.toState.options,e,r)}destroyInnerAnimations(t){let e=this.driver.query(t,wp,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,zx,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Lr(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[jn];if(e&&e.setForRemoval){if(t[jn]=jL,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(Qx)&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,o)=>this._balanceNamespaceList(n,o)),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?Lr(e).onDone(()=>{n.forEach(o=>o())}):n.forEach(o=>o())}}reportError(t){throw function bse(i){return new D(3402,!1)}()}_flushAnimations(t,e){const n=new Ep,o=[],r=new Map,s=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(N=>{d.add(N);const z=this.driver.query(N,".ng-animate-queued",!0);for(let j=0;j{const j=Hx+p++;m.set(z,j),N.forEach(X=>En(X,j))});const g=[],b=new Set,v=new Set;for(let N=0;Nb.add(X)):v.add(z))}const x=new Map,y=WL(h,Array.from(b));y.forEach((N,z)=>{const j=yp+p++;x.set(z,j),N.forEach(X=>En(X,j))}),t.push(()=>{f.forEach((N,z)=>{const j=m.get(z);N.forEach(X=>xl(X,j))}),y.forEach((N,z)=>{const j=x.get(z);N.forEach(X=>xl(X,j))}),g.forEach(N=>{this.processLeaveNode(N)})});const w=[],M=[];for(let N=this._namespaceList.length-1;N>=0;N--)this._namespaceList[N].drainQueuedTransitions(e).forEach(j=>{const X=j.player,Ce=j.element;if(w.push(X),this.collectedEnterElements.length){const fi=Ce[jn];if(fi&&fi.setForMove){if(fi.previousTriggersValues&&fi.previousTriggersValues.has(j.triggerName)){const Ls=fi.previousTriggersValues.get(j.triggerName),An=this.statesByElement.get(j.element);if(An&&An.has(j.triggerName)){const Fp=An.get(j.triggerName);Fp.value=Ls,An.set(j.triggerName,Fp)}}return void X.destroy()}}const zt=!u||!this.driver.containsElement(u,Ce),Et=x.get(Ce),on=m.get(Ce),Qe=this._buildInstruction(j,n,on,Et,zt);if(Qe.errors&&Qe.errors.length)return void M.push(Qe);if(zt)return X.onStart(()=>Ps(Ce,Qe.fromStyles)),X.onDestroy(()=>yo(Ce,Qe.toStyles)),void o.push(X);if(j.isFallbackTransition)return X.onStart(()=>Ps(Ce,Qe.fromStyles)),X.onDestroy(()=>yo(Ce,Qe.toStyles)),void o.push(X);const eB=[];Qe.timelines.forEach(fi=>{fi.stretchStartingKeyframe=!0,this.disabledNodes.has(fi.element)||eB.push(fi)}),Qe.timelines=eB,n.append(Ce,Qe.timelines),s.push({instruction:Qe,player:X,element:Ce}),Qe.queriedElements.forEach(fi=>tn(a,fi,[]).push(X)),Qe.preStyleProps.forEach((fi,Ls)=>{if(fi.size){let An=l.get(Ls);An||l.set(Ls,An=new Set),fi.forEach((Fp,ow)=>An.add(ow))}}),Qe.postStyleProps.forEach((fi,Ls)=>{let An=c.get(Ls);An||c.set(Ls,An=new Set),fi.forEach((Fp,ow)=>An.add(ow))})});if(M.length){const N=[];M.forEach(z=>{N.push(function vse(i,t){return new D(3505,!1)}())}),w.forEach(z=>z.destroy()),this.reportError(N)}const F=new Map,K=new Map;s.forEach(N=>{const z=N.element;n.has(z)&&(K.set(z,z),this._beforeAnimationBuild(N.player.namespaceId,N.instruction,F))}),o.forEach(N=>{const z=N.element;this._getPreviousPlayers(z,!1,N.namespaceId,N.triggerName,null).forEach(X=>{tn(F,z,[]).push(X),X.destroy()})});const Q=g.filter(N=>qL(N,l,c)),ie=new Map;UL(ie,this.driver,v,c,Wo).forEach(N=>{qL(N,l,c)&&Q.push(N)});const tt=new Map;f.forEach((N,z)=>{UL(tt,this.driver,new Set(N),l,"!")}),Q.forEach(N=>{const z=ie.get(N),j=tt.get(N);ie.set(N,new Map([...z?.entries()??[],...j?.entries()??[]]))});const st=[],Qt=[],Mt={};s.forEach(N=>{const{element:z,player:j,instruction:X}=N;if(n.has(z)){if(d.has(z))return j.onDestroy(()=>yo(z,X.toStyles)),j.disabled=!0,j.overrideTotalTime(X.totalTime),void o.push(j);let Ce=Mt;if(K.size>1){let Et=z;const on=[];for(;Et=Et.parentNode;){const Qe=K.get(Et);if(Qe){Ce=Qe;break}on.push(Et)}on.forEach(Qe=>K.set(Qe,Ce))}const zt=this._buildAnimation(j.namespaceId,X,F,r,tt,ie);if(j.setRealPlayer(zt),Ce===Mt)st.push(j);else{const Et=this.playersByElement.get(Ce);Et&&Et.length&&(j.parentPlayer=Lr(Et)),o.push(j)}}else Ps(z,X.fromStyles),j.onDestroy(()=>yo(z,X.toStyles)),Qt.push(j),d.has(z)&&o.push(j)}),Qt.forEach(N=>{const z=r.get(N.element);if(z&&z.length){const j=Lr(z);N.setRealPlayer(j)}}),o.forEach(N=>{N.parentPlayer?N.syncPlayerEvents(N.parentPlayer):N.destroy()});for(let N=0;N!zt.destroyed);Ce.length?bae(this,z,Ce):this.processLeaveNode(z)}return g.length=0,st.forEach(N=>{this.players.push(N),N.onDone(()=>{N.destroy();const z=this.players.indexOf(N);this.players.splice(z,1)}),N.play()}),st}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,o,r){let s=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(s=a)}else{const a=this.playersByElement.get(t);if(a){const l=!r||r==Xd;a.forEach(c=>{c.queued||!l&&c.triggerName!=o||s.push(c)})}}return(n||o)&&(s=s.filter(a=>!(n&&n!=a.namespaceId||o&&o!=a.triggerName))),s}_beforeAnimationBuild(t,e,n){const r=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,d=c!==r,u=tn(n,c,[]);this._getPreviousPlayers(c,d,s,a,e.toState).forEach(f=>{const m=f.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),f.destroy(),u.push(f)})}Ps(r,e.fromStyles)}_buildAnimation(t,e,n,o,r,s){const a=e.triggerName,l=e.element,c=[],d=new Set,u=new Set,h=e.timelines.map(m=>{const p=m.element;d.add(p);const g=p[jn];if(g&&g.removedBeforeQueried)return new Fd(m.duration,m.delay);const b=p!==l,v=function vae(i){const t=[];return GL(i,t),t}((n.get(p)||uae).map(F=>F.getRealPlayer())).filter(F=>!!F.element&&F.element===p),x=r.get(p),y=s.get(p),w=wL(this._normalizer,m.keyframes,x,y),M=this._buildPlayer(m,w,v);if(m.subTimeline&&o&&u.add(p),b){const F=new tw(t,a,p);F.setRealPlayer(M),c.push(F)}return M});c.forEach(m=>{tn(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>function pae(i,t,e){let n=i.get(t);if(n){if(n.length){const o=n.indexOf(e);n.splice(o,1)}0==n.length&&i.delete(t)}return n}(this.playersByQueriedElement,m.element,m))}),d.forEach(m=>En(m,AL));const f=Lr(h);return f.onDestroy(()=>{d.forEach(m=>xl(m,AL)),yo(l,e.toStyles)}),u.forEach(m=>{tn(o,m,[]).push(f)}),f}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Fd(t.duration,t.delay)}}class tw{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new Fd,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(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,n)=>{e.forEach(o=>Px(t,n,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){tn(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Ip(i){return i&&1===i.nodeType}function $L(i,t){const e=i.style.display;return i.style.display=t??"none",e}function UL(i,t,e,n,o){const r=[];e.forEach(l=>r.push($L(l)));const s=[];n.forEach((l,c)=>{const d=new Map;l.forEach(u=>{const h=t.computeStyle(c,u,o);d.set(u,h),(!h||0==h.length)&&(c[jn]=hae,s.push(c))}),i.set(c,d)});let a=0;return e.forEach(l=>$L(l,r[a++])),s}function WL(i,t){const e=new Map;if(i.forEach(a=>e.set(a,[])),0==t.length)return e;const o=new Set(t),r=new Map;function s(a){if(!a)return 1;let l=r.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:o.has(c)?1:s(c),r.set(a,l),l}return t.forEach(a=>{const l=s(a);1!==l&&e.get(l).push(a)}),e}function En(i,t){i.classList?.add(t)}function xl(i,t){i.classList?.remove(t)}function bae(i,t,e){Lr(e).onDone(()=>i.processLeaveNode(t))}function GL(i,t){for(let e=0;eo.add(r)):t.set(i,n),e.delete(i),!0}class Op{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(o,r)=>{},this._transitionEngine=new mae(t,e,n),this._timelineEngine=new sae(t,e,n),this._transitionEngine.onRemovalComplete=(o,r)=>this.onRemovalComplete(o,r)}registerTrigger(t,e,n,o,r){const s=t+"-"+o;let a=this._triggerCache[s];if(!a){const l=[],d=Wx(this._driver,r,l,[]);if(l.length)throw function lse(i,t){return new D(3404,!1)}();a=function iae(i,t,e){return new nae(i,t,e)}(o,d,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,o,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,o){this._transitionEngine.insertNode(t,e,n,o)}onRemove(t,e,n){this._transitionEngine.removeNode(t,e,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,o){if("@"==n.charAt(0)){const[r,s]=CL(n);this._timelineEngine.command(r,e,s,o)}else this._transitionEngine.trigger(t,e,n,o)}listen(t,e,n,o,r){if("@"==n.charAt(0)){const[s,a]=CL(n);return this._timelineEngine.listen(s,e,a,r)}return this._transitionEngine.listen(t,e,n,o,r)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(t){this._transitionEngine.afterFlushAnimationsDone(t)}}let wae=(()=>{class i{static#e=this.initialStylesByElement=new WeakMap;constructor(e,n,o){this._element=e,this._startStyles=n,this._endStyles=o,this._state=0;let r=i.initialStylesByElement.get(e);r||i.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&yo(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(yo(this._element,this._initialStyles),this._endStyles&&(yo(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(i.initialStylesByElement.delete(this._element),this._startStyles&&(Ps(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ps(this._element,this._endStyles),this._endStyles=null),yo(this._element,this._initialStyles),this._state=3)}}return i})();function iw(i){let t=null;return i.forEach((e,n)=>{(function Cae(i){return"display"===i||"position"===i})(n)&&(t=t||new Map,t.set(n,e))}),t}class YL{constructor(t,e,n,o){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=o,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(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){const e=[];return t.forEach(n=>{e.push(Object.fromEntries(n))}),e}_triggerWebAnimation(t,e,n){return t.animate(this._convertKeyframesToObject(e),n)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,o)=>{"offset"!==o&&t.set(o,this._finished?n:RL(this.element,o))}),this.currentSnapshot=t}triggerCallback(t){const e="start"===t?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class kae{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,e){return!1}containsElement(t,e){return DL(t,e)}getParentElement(t){return Bx(t)}query(t,e,n){return SL(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}animate(t,e,n,o,r,s=[]){const l={duration:n,delay:o,fill:0==o?"both":"forwards"};r&&(l.easing=r);const c=new Map,d=s.filter(f=>f instanceof YL);(function Ise(i,t){return 0===i||0===t})(n,o)&&d.forEach(f=>{f.currentSnapshot.forEach((m,p)=>c.set(p,m))});let u=function Ese(i){return i.length?i[0]instanceof Map?i:i.map(t=>TL(t)):[]}(e).map(f=>Br(f));u=function Ose(i,t,e){if(e.size&&t.length){let n=t[0],o=[];if(e.forEach((r,s)=>{n.has(s)||o.push(s),n.set(s,r)}),o.length)for(let r=1;rs.set(a,RL(i,a)))}}return t}(t,u,c);const h=function xae(i,t){let e=null,n=null;return Array.isArray(t)&&t.length?(e=iw(t[0]),t.length>1&&(n=iw(t[t.length-1]))):t instanceof Map&&(e=iw(t)),e||n?new wae(i,e,n):null}(t,u);return new YL(t,u,l,h)}}let Dae=(()=>{class i extends L2{constructor(e,n){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(n.body,{id:"0",encapsulation:ln.None,styles:[],data:{animation:[]}})}build(e){const n=this._nextAnimationId.toString();this._nextAnimationId++;const o=Array.isArray(e)?V2(e):e;return XL(this._renderer,null,n,"register",[o]),new Sae(n,this._renderer)}static#e=this.\u0275fac=function(n){return new(n||i)(C(ic),C(ge))};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac})}return i})();class Sae extends xte{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Mae(this._id,t,e||{},this._renderer)}}class Mae{constructor(t,e,n,o){this.id=t,this.element=e,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return XL(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function XL(i,t,e,n,o){return i.setProperty(t,`@@${e}:${n}`,o)}const KL="@.disabled";let Eae=(()=>{class i{constructor(e,n,o){this.delegate=e,this.engine=n,this._zone=o,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,n.onRemovalComplete=(r,s)=>{const a=s?.parentNode(r);a&&s.removeChild(a,r)}}createRenderer(e,n){const r=this.delegate.createRenderer(e,n);if(!(e&&n&&n.data&&n.data.animation)){let d=this._rendererCache.get(r);return d||(d=new ZL("",r,this.engine,()=>this._rendererCache.delete(r)),this._rendererCache.set(r,d)),d}const s=n.id,a=n.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=d=>{Array.isArray(d)?d.forEach(l):this.engine.registerTrigger(s,a,e,d.name,d)};return n.data.animation.forEach(l),new Aae(this,a,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,n,o){e>=0&&en(o)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(r=>{const[s,a]=r;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([n,o]))}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()}static#e=this.\u0275fac=function(n){return new(n||i)(C(ic),C(Op),C(W))};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac})}return i})();class ZL{constructor(t,e,n,o){this.namespaceId=t,this.delegate=e,this.engine=n,this._onDestroy=o}get data(){return this.delegate.data}destroyNode(t){this.delegate.destroyNode?.(t)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n,o=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,o)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,o){this.delegate.setAttribute(t,e,n,o)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,o){this.delegate.setStyle(t,e,n,o)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&e==KL?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Aae extends ZL{constructor(t,e,n,o,r){super(e,n,o,r),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&e==KL?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.slice(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if("@"==e.charAt(0)){const o=function Tae(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}(t);let r=e.slice(1),s="";return"@"!=r.charAt(0)&&([r,s]=function Iae(i){const t=i.indexOf(".");return[i.substring(0,t),i.slice(t+1)]}(r)),this.engine.listen(this.namespaceId,o,r,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,n,a)})}return this.delegate.listen(t,e,n)}}const QL=[{provide:L2,useClass:Dae},{provide:Kx,useFactory:function Rae(){return new Qse}},{provide:Op,useClass:(()=>{class i extends Op{constructor(e,n,o,r){super(e.body,n,o)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(n){return new(n||i)(C(ge),C(Vx),C(Kx),C(os))};static#t=this.\u0275prov=B({token:i,factory:i.\u0275fac})}return i})()},{provide:ic,useFactory:function Fae(i,t,e){return new Eae(i,t,e)},deps:[iv,Op,W]}],nw=[{provide:Vx,useFactory:()=>new kae},{provide:Ot,useValue:"BrowserAnimations"},...QL],JL=[{provide:Vx,useClass:ML},{provide:Ot,useValue:"NoopAnimations"},...QL];let Pae=(()=>{class i{static withConfig(e){return{ngModule:i,providers:e.disableAnimations?JL:nw}}static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=ye({type:i});static#i=this.\u0275inj=_e({providers:nw,imports:[QE]})}return i})(),Nae=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=ye({type:i,bootstrap:[Hre]});static#i=this.\u0275inj=_e({providers:[vl,bL,vL],imports:[QE,Pae,uT,yL]})}return i})();hG().bootstrapModule(Nae).catch(i=>console.error(i))}},Re=>{Re(Re.s=509)}]); \ No newline at end of file