All Downloads are FREE. Search and download functionalities are using the official Maven repository.

static.chunk-7FNOC45H.js Maven / Gradle / Ivy

There is a newer version: 5.10.9
Show newest version
var YU=Object.defineProperty,qU=Object.defineProperties;var GU=Object.getOwnPropertyDescriptors;var fm=Object.getOwnPropertySymbols;var lT=Object.prototype.hasOwnProperty,cT=Object.prototype.propertyIsEnumerable;var aT=(n,t,e)=>t in n?YU(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,E=(n,t)=>{for(var e in t||={})lT.call(t,e)&&aT(n,e,t[e]);if(fm)for(var e of fm(t))cT.call(t,e)&&aT(n,e,t[e]);return n},Pe=(n,t)=>qU(n,GU(t));var e0=(n,t)=>{var e={};for(var i in n)lT.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(n!=null&&fm)for(var i of fm(n))t.indexOf(i)<0&&cT.call(n,i)&&(e[i]=n[i]);return e};function dT(n,t){return Object.is(n,t)}var Ei=null,mu=!1,mm=1,Tn=Symbol("SIGNAL");function ot(n){let t=Ei;return Ei=n,t}function uT(){return Ei}function QU(){return mu}var fc={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function gu(n){if(mu)throw new Error("");if(Ei===null)return;Ei.consumerOnSignalRead(n);let t=Ei.nextProducerIndex++;if(ym(Ei),tn.nextProducerIndex;)n.producerNode.pop(),n.producerLastReadVersion.pop(),n.producerIndexOfThis.pop()}}function _m(n){ym(n);for(let t=0;t0}function ym(n){n.producerNode??=[],n.producerIndexOfThis??=[],n.producerLastReadVersion??=[]}function _T(n){n.liveConsumerNode??=[],n.liveConsumerIndexOfThis??=[]}function bT(n){return n.producerNode!==void 0}function r0(n){let t=Object.create(ZU);t.computation=n;let e=()=>{if(hT(t),gu(t),t.value===pm)throw t.error;return t.value};return e[Tn]=t,e}var t0=Symbol("UNSET"),i0=Symbol("COMPUTING"),pm=Symbol("ERRORED"),ZU=Pe(E({},fc),{value:t0,dirty:!0,error:null,equal:dT,producerMustRecompute(n){return n.value===t0||n.value===i0},producerRecomputeValue(n){if(n.value===i0)throw new Error("Detected cycle in computations.");let t=n.value;n.value=i0;let e=_u(n),i;try{i=n.computation()}catch(r){i=pm,n.error=r}finally{gm(n,e)}if(t!==t0&&t!==pm&&i!==pm&&n.equal(t,i)){n.value=t;return}n.value=i,n.version++}});function XU(){throw new Error}var vT=XU;function yT(){vT()}function wT(n){vT=n}var JU=null;function CT(n){let t=Object.create(o0);t.value=n;let e=()=>(gu(t),t.value);return e[Tn]=t,e}function bu(n,t){mT()||yT(),n.equal(n.value,t)||(n.value=t,e3(n))}function DT(n,t){mT()||yT(),bu(n,t(n.value))}var o0=Pe(E({},fc),{equal:dT,value:void 0});function e3(n){n.version++,KU(),fT(n),JU?.()}function xT(n,t,e){let i=Object.create(t3);e&&(i.consumerAllowSignalWrites=!0),i.fn=n,i.schedule=t;let r=l=>{i.cleanupFn=l};function o(l){return l.fn===null&&l.schedule===null}function s(l){o(l)||(bm(l),l.cleanupFn(),l.fn=null,l.schedule=null,l.cleanupFn=n0)}let a=()=>{if(i.fn===null)return;if(QU())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(i.dirty=!1,i.hasRun&&!_m(i))return;i.hasRun=!0;let l=_u(i);try{i.cleanupFn(),i.cleanupFn=n0,i.fn(r)}finally{gm(i,l)}};return i.ref={notify:()=>pT(i),run:a,cleanup:()=>i.cleanupFn(),destroy:()=>s(i),[Tn]:i},i.ref}var n0=()=>{},t3=Pe(E({},fc),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:n=>{n.schedule!==null&&n.schedule(n.ref)},hasRun:!1,cleanupFn:n0});function Fe(n){return typeof n=="function"}function Fs(n){let e=n(i=>{Error.call(i),i.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var wm=Fs(n=>function(e){n(this),this.message=e?`${e.length} errors occurred during unsubscription:
${e.map((i,r)=>`${r+1}) ${i.toString()}`).join(`
  `)}`:"",this.name="UnsubscriptionError",this.errors=e});function qa(n,t){if(n){let e=n.indexOf(t);0<=e&&n.splice(e,1)}}var pe=class n{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(let o of e)o.remove(this);else e.remove(this);let{initialTeardown:i}=this;if(Fe(i))try{i()}catch(o){t=o instanceof wm?o.errors:[o]}let{_finalizers:r}=this;if(r){this._finalizers=null;for(let o of r)try{ST(o)}catch(s){t=t??[],s instanceof wm?t=[...t,...s.errors]:t.push(s)}}if(t)throw new wm(t)}}add(t){var e;if(t&&t!==this)if(this.closed)ST(t);else{if(t instanceof n){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}}_hasParent(t){let{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){let{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){let{_parentage:e}=this;e===t?this._parentage=null:Array.isArray(e)&&qa(e,t)}remove(t){let{_finalizers:e}=this;e&&qa(e,t),t instanceof n&&t._removeParent(this)}};pe.EMPTY=(()=>{let n=new pe;return n.closed=!0,n})();var s0=pe.EMPTY;function Cm(n){return n instanceof pe||n&&"closed"in n&&Fe(n.remove)&&Fe(n.add)&&Fe(n.unsubscribe)}function ST(n){Fe(n)?n():n.unsubscribe()}var Lr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var mc={setTimeout(n,t,...e){let{delegate:i}=mc;return i?.setTimeout?i.setTimeout(n,t,...e):setTimeout(n,t,...e)},clearTimeout(n){let{delegate:t}=mc;return(t?.clearTimeout||clearTimeout)(n)},delegate:void 0};function Dm(n){mc.setTimeout(()=>{let{onUnhandledError:t}=Lr;if(t)t(n);else throw n})}function Go(){}var kT=a0("C",void 0,void 0);function ET(n){return a0("E",void 0,n)}function IT(n){return a0("N",n,void 0)}function a0(n,t,e){return{kind:n,value:t,error:e}}var Ga=null;function pc(n){if(Lr.useDeprecatedSynchronousErrorHandling){let t=!Ga;if(t&&(Ga={errorThrown:!1,error:null}),n(),t){let{errorThrown:e,error:i}=Ga;if(Ga=null,e)throw i}}else n()}function MT(n){Lr.useDeprecatedSynchronousErrorHandling&&Ga&&(Ga.errorThrown=!0,Ga.error=n)}var Qo=class extends pe{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Cm(t)&&t.add(this)):this.destination=r3}static create(t,e,i){return new Ko(t,e,i)}next(t){this.isStopped?c0(IT(t),this):this._next(t)}error(t){this.isStopped?c0(ET(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?c0(kT,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()}}},i3=Function.prototype.bind;function l0(n,t){return i3.call(n,t)}var d0=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:e}=this;if(e.next)try{e.next(t)}catch(i){xm(i)}}error(t){let{partialObserver:e}=this;if(e.error)try{e.error(t)}catch(i){xm(i)}else xm(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(e){xm(e)}}},Ko=class extends Qo{constructor(t,e,i){super();let r;if(Fe(t)||!t)r={next:t??void 0,error:e??void 0,complete:i??void 0};else{let o;this&&Lr.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),r={next:t.next&&l0(t.next,o),error:t.error&&l0(t.error,o),complete:t.complete&&l0(t.complete,o)}):r=t}this.destination=new d0(r)}};function xm(n){Lr.useDeprecatedSynchronousErrorHandling?MT(n):Dm(n)}function n3(n){throw n}function c0(n,t){let{onStoppedNotification:e}=Lr;e&&mc.setTimeout(()=>e(n,t))}var r3={closed:!0,next:Go,error:n3,complete:Go};var gc=typeof Symbol=="function"&&Symbol.observable||"@@observable";function pn(n){return n}function u0(...n){return h0(n)}function h0(n){return n.length===0?pn:n.length===1?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}var Se=(()=>{class n{constructor(e){e&&(this._subscribe=e)}lift(e){let i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,r){let o=s3(e)?e:new Ko(e,i,r);return pc(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return i=TT(i),new i((r,o)=>{let s=new Ko({next:a=>{try{e(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(e){var i;return(i=this.source)===null||i===void 0?void 0:i.subscribe(e)}[gc](){return this}pipe(...e){return h0(e)(this)}toPromise(e){return e=TT(e),new e((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return n.create=t=>new n(t),n})();function TT(n){var t;return(t=n??Lr.Promise)!==null&&t!==void 0?t:Promise}function o3(n){return n&&Fe(n.next)&&Fe(n.error)&&Fe(n.complete)}function s3(n){return n&&n instanceof Qo||o3(n)&&Cm(n)}function f0(n){return Fe(n?.lift)}function Be(n){return t=>{if(f0(t))return t.lift(function(e){try{return n(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function $e(n,t,e,i,r){return new m0(n,t,e,i,r)}var m0=class extends Qo{constructor(t,e,i,r,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(l){t.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function _c(){return Be((n,t)=>{let e=null;n._refCount++;let i=$e(t,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount){e=null;return}let r=n._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),t.unsubscribe()});n.subscribe(i),i.closed||(e=n.connect())})}var fo=class extends Se{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,f0(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new pe;let e=this.getSubject();t.add(this.source.subscribe($e(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),t.closed&&(this._connection=null,t=pe.EMPTY)}return t}refCount(){return _c()(this)}};var bc={schedule(n){let t=requestAnimationFrame,e=cancelAnimationFrame,{delegate:i}=bc;i&&(t=i.requestAnimationFrame,e=i.cancelAnimationFrame);let r=t(o=>{e=void 0,n(o)});return new pe(()=>e?.(r))},requestAnimationFrame(...n){let{delegate:t}=bc;return(t?.requestAnimationFrame||requestAnimationFrame)(...n)},cancelAnimationFrame(...n){let{delegate:t}=bc;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...n)},delegate:void 0};var AT=Fs(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var k=(()=>{class n extends Se{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let i=new vc(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new AT}next(e){pc(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let i of this.currentObservers)i.next(e)}})}error(e){pc(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){pc(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{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((e=this.observers)===null||e===void 0?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){let{hasError:i,isStopped:r,observers:o}=this;return i||r?s0:(this.currentObservers=null,o.push(e),new pe(()=>{this.currentObservers=null,qa(o,e)}))}_checkFinalizedStatuses(e){let{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){let e=new Se;return e.source=this,e}}return n.create=(t,e)=>new vc(t,e),n})(),vc=class extends k{constructor(t,e){super(),this.destination=t,this.source=e}next(t){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.next)===null||i===void 0||i.call(e,t)}error(t){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.error)===null||i===void 0||i.call(e,t)}complete(){var t,e;(e=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||e===void 0||e.call(t)}_subscribe(t){var e,i;return(i=(e=this.source)===null||e===void 0?void 0:e.subscribe(t))!==null&&i!==void 0?i:s0}};var Ee=class extends k{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let e=super._subscribe(t);return!e.closed&&t.next(this._value),e}getValue(){let{hasError:t,thrownError:e,_value:i}=this;if(t)throw e;return this._throwIfClosed(),i}next(t){super.next(this._value=t)}};var vu={now(){return(vu.delegate||Date).now()},delegate:void 0};var qn=class extends k{constructor(t=1/0,e=1/0,i=vu){super(),this._bufferSize=t,this._windowTime=e,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,e)}next(t){let{isStopped:e,_buffer:i,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:s}=this;e||(i.push(t),!r&&i.push(o.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(t),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let s=0;sOT(t)&&n()),t},clearImmediate(n){OT(n)}};var{setImmediate:l3,clearImmediate:c3}=RT,wu={setImmediate(...n){let{delegate:t}=wu;return(t?.setImmediate||l3)(...n)},clearImmediate(n){let{delegate:t}=wu;return(t?.clearImmediate||c3)(n)},delegate:void 0};var km=class extends Ns{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return i!==null&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t._scheduled||(t._scheduled=wu.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,e,i=0){var r;if(i!=null?i>0:this.delay>0)return super.recycleAsyncId(t,e,i);let{actions:o}=t;e!=null&&((r=o[o.length-1])===null||r===void 0?void 0:r.id)!==e&&(wu.clearImmediate(e),t._scheduled===e&&(t._scheduled=void 0))}};var yc=class n{constructor(t,e=n.now){this.schedulerActionCtor=t,this.now=e}schedule(t,e=0,i){return new this.schedulerActionCtor(this,t).schedule(i,e)}};yc.now=vu.now;var Ls=class extends yc{constructor(t,e=yc.now){super(t,e),this.actions=[],this._active=!1}flush(t){let{actions:e}=this;if(this._active){e.push(t);return}let i;this._active=!0;do if(i=t.execute(t.state,t.delay))break;while(t=e.shift());if(this._active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}};var Em=class extends Ls{flush(t){this._active=!0;let e=this._scheduled;this._scheduled=void 0;let{actions:i}=this,r;t=t||i.shift();do if(r=t.execute(t.state,t.delay))break;while((t=i[0])&&t.id===e&&i.shift());if(this._active=!1,r){for(;(t=i[0])&&t.id===e&&i.shift();)t.unsubscribe();throw r}}};var Cu=new Em(km);var Vr=new Ls(Ns),PT=Vr;var Im=class extends Ns{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return i!==null&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t._scheduled||(t._scheduled=bc.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,e,i=0){var r;if(i!=null?i>0:this.delay>0)return super.recycleAsyncId(t,e,i);let{actions:o}=t;e!=null&&((r=o[o.length-1])===null||r===void 0?void 0:r.id)!==e&&(bc.cancelAnimationFrame(e),t._scheduled=void 0)}};var Mm=class extends Ls{flush(t){this._active=!0;let e=this._scheduled;this._scheduled=void 0;let{actions:i}=this,r;t=t||i.shift();do if(r=t.execute(t.state,t.delay))break;while((t=i[0])&&t.id===e&&i.shift());if(this._active=!1,r){for(;(t=i[0])&&t.id===e&&i.shift();)t.unsubscribe();throw r}}};var Tm=new Mm(Im);var Ui=new Se(n=>n.complete());function Am(n){return n&&Fe(n.schedule)}function _0(n){return n[n.length-1]}function Om(n){return Fe(_0(n))?n.pop():void 0}function mo(n){return Am(_0(n))?n.pop():void 0}function FT(n,t){return typeof _0(n)=="number"?n.pop():t}function LT(n,t,e,i){function r(o){return o instanceof e?o:new e(function(s){s(o)})}return new(e||(e=Promise))(function(o,s){function a(d){try{c(i.next(d))}catch(u){s(u)}}function l(d){try{c(i.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((i=i.apply(n,t||[])).next())})}function NT(n){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&n[t],i=0;if(e)return e.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Qa(n){return this instanceof Qa?(this.v=n,this):new Qa(n)}function VT(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=e.apply(n,t||[]),r,o=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),r[Symbol.asyncIterator]=function(){return this},r;function s(f){return function(m){return Promise.resolve(m).then(f,u)}}function a(f,m){i[f]&&(r[f]=function(g){return new Promise(function(_,v){o.push([f,g,_,v])>1||l(f,g)})},m&&(r[f]=m(r[f])))}function l(f,m){try{c(i[f](m))}catch(g){h(o[0][3],g)}}function c(f){f.value instanceof Qa?Promise.resolve(f.value.v).then(d,u):h(o[0][2],f)}function d(f){l("next",f)}function u(f){l("throw",f)}function h(f,m){f(m),o.shift(),o.length&&l(o[0][0],o[0][1])}}function jT(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=n[Symbol.asyncIterator],e;return t?t.call(n):(n=typeof NT=="function"?NT(n):n[Symbol.iterator](),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=n[o]&&function(s){return new Promise(function(a,l){s=n[o](s),r(a,l,s.done,s.value)})}}function r(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}}var wc=n=>n&&typeof n.length=="number"&&typeof n!="function";function Rm(n){return Fe(n?.then)}function Pm(n){return Fe(n[gc])}function Fm(n){return Symbol.asyncIterator&&Fe(n?.[Symbol.asyncIterator])}function Nm(n){return new TypeError(`You provided ${n!==null&&typeof n=="object"?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function d3(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Lm=d3();function Vm(n){return Fe(n?.[Lm])}function jm(n){return VT(this,arguments,function*(){let e=n.getReader();try{for(;;){let{value:i,done:r}=yield Qa(e.read());if(r)return yield Qa(void 0);yield yield Qa(i)}}finally{e.releaseLock()}})}function Bm(n){return Fe(n?.getReader)}function mt(n){if(n instanceof Se)return n;if(n!=null){if(Pm(n))return u3(n);if(wc(n))return h3(n);if(Rm(n))return f3(n);if(Fm(n))return BT(n);if(Vm(n))return m3(n);if(Bm(n))return p3(n)}throw Nm(n)}function u3(n){return new Se(t=>{let e=n[gc]();if(Fe(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function h3(n){return new Se(t=>{for(let e=0;e{n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,Dm)})}function m3(n){return new Se(t=>{for(let e of n)if(t.next(e),t.closed)return;t.complete()})}function BT(n){return new Se(t=>{g3(n,t).catch(e=>t.error(e))})}function p3(n){return BT(jm(n))}function g3(n,t){var e,i,r,o;return LT(this,void 0,void 0,function*(){try{for(e=jT(n);i=yield e.next(),!i.done;){let s=i.value;if(t.next(s),t.closed)return}}catch(s){r={error:s}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}t.complete()})}function on(n,t,e,i=0,r=!1){let o=t.schedule(function(){e(),r?n.add(this.schedule(null,i)):this.unsubscribe()},i);if(n.add(o),!r)return o}function $m(n,t=0){return Be((e,i)=>{e.subscribe($e(i,r=>on(i,n,()=>i.next(r),t),()=>on(i,n,()=>i.complete(),t),r=>on(i,n,()=>i.error(r),t)))})}function zm(n,t=0){return Be((e,i)=>{i.add(n.schedule(()=>e.subscribe(i),t))})}function $T(n,t){return mt(n).pipe(zm(t),$m(t))}function zT(n,t){return mt(n).pipe(zm(t),$m(t))}function HT(n,t){return new Se(e=>{let i=0;return t.schedule(function(){i===n.length?e.complete():(e.next(n[i++]),e.closed||this.schedule())})})}function UT(n,t){return new Se(e=>{let i;return on(e,t,()=>{i=n[Lm](),on(e,t,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(s){e.error(s);return}o?e.complete():e.next(r)},0,!0)}),()=>Fe(i?.return)&&i.return()})}function Hm(n,t){if(!n)throw new Error("Iterable cannot be null");return new Se(e=>{on(e,t,()=>{let i=n[Symbol.asyncIterator]();on(e,t,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function WT(n,t){return Hm(jm(n),t)}function YT(n,t){if(n!=null){if(Pm(n))return $T(n,t);if(wc(n))return HT(n,t);if(Rm(n))return zT(n,t);if(Fm(n))return Hm(n,t);if(Vm(n))return UT(n,t);if(Bm(n))return WT(n,t)}throw Nm(n)}function Lt(n,t){return t?YT(n,t):mt(n)}function oe(...n){let t=mo(n);return Lt(n,t)}function Vs(n,t){let e=Fe(n)?n:()=>n,i=r=>r.error(e());return new Se(t?r=>t.schedule(i,0,r):i)}function js(n){return!!n&&(n instanceof Se||Fe(n.lift)&&Fe(n.subscribe))}var Zo=Fs(n=>function(){n(this),this.name="EmptyError",this.message="no elements in sequence"});function Um(n){return n instanceof Date&&!isNaN(n)}var qT=Fs(n=>function(e=null){n(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e});function _3(n,t){let{first:e,each:i,with:r=b3,scheduler:o=t??Vr,meta:s=null}=Um(n)?{first:n}:typeof n=="number"?{each:n}:n;if(e==null&&i==null)throw new TypeError("No timeout provided.");return Be((a,l)=>{let c,d,u=null,h=0,f=m=>{d=on(l,o,()=>{try{c.unsubscribe(),mt(r({meta:s,lastValue:u,seen:h})).subscribe(l)}catch(g){l.error(g)}},m)};c=a.subscribe($e(l,m=>{d?.unsubscribe(),h++,l.next(u=m),i>0&&f(i)},void 0,void 0,()=>{d?.closed||d?.unsubscribe(),u=null})),!h&&f(e!=null?typeof e=="number"?e:+e-o.now():i)})}function b3(n){throw new qT(n)}function fe(n,t){return Be((e,i)=>{let r=0;e.subscribe($e(i,o=>{i.next(n.call(t,o,r++))}))})}var{isArray:v3}=Array;function y3(n,t){return v3(t)?n(...t):n(t)}function Cc(n){return fe(t=>y3(n,t))}var{isArray:w3}=Array,{getPrototypeOf:C3,prototype:D3,keys:x3}=Object;function Wm(n){if(n.length===1){let t=n[0];if(w3(t))return{args:t,keys:null};if(S3(t)){let e=x3(t);return{args:e.map(i=>t[i]),keys:e}}}return{args:n,keys:null}}function S3(n){return n&&typeof n=="object"&&C3(n)===D3}function Ym(n,t){return n.reduce((e,i,r)=>(e[i]=t[r],e),{})}function jr(...n){let t=mo(n),e=Om(n),{args:i,keys:r}=Wm(n);if(i.length===0)return Lt([],t);let o=new Se(k3(i,t,r?s=>Ym(r,s):pn));return e?o.pipe(Cc(e)):o}function k3(n,t,e=pn){return i=>{GT(t,()=>{let{length:r}=n,o=new Array(r),s=r,a=r;for(let l=0;l{let c=Lt(n[l],t),d=!1;c.subscribe($e(i,u=>{o[l]=u,d||(d=!0,a--),a||i.next(e(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}function GT(n,t,e){n?on(e,n,t):t()}function QT(n,t,e,i,r,o,s,a){let l=[],c=0,d=0,u=!1,h=()=>{u&&!l.length&&!c&&t.complete()},f=g=>c{o&&t.next(g),c++;let _=!1;mt(e(g,d++)).subscribe($e(t,v=>{r?.(v),o?f(v):t.next(v)},()=>{_=!0},void 0,()=>{if(_)try{for(c--;l.length&&cm(v)):m(v)}h()}catch(v){t.error(v)}}))};return n.subscribe($e(t,f,()=>{u=!0,h()})),()=>{a?.()}}function ti(n,t,e=1/0){return Fe(t)?ti((i,r)=>fe((o,s)=>t(i,o,r,s))(mt(n(i,r))),e):(typeof t=="number"&&(e=t),Be((i,r)=>QT(i,r,n,e)))}function po(n=1/0){return ti(pn,n)}function KT(){return po(1)}function go(...n){return KT()(Lt(n,mo(n)))}function _r(n){return new Se(t=>{mt(n()).subscribe(t)})}function Du(...n){let t=Om(n),{args:e,keys:i}=Wm(n),r=new Se(o=>{let{length:s}=e;if(!s){o.complete();return}let a=new Array(s),l=s,c=s;for(let d=0;d{u||(u=!0,c--),a[d]=h},()=>l--,void 0,()=>{(!l||!u)&&(c||o.next(i?Ym(i,a):a),o.complete())}))}});return t?r.pipe(Cc(t)):r}var E3=["addListener","removeListener"],I3=["addEventListener","removeEventListener"],M3=["on","off"];function Ri(n,t,e,i){if(Fe(e)&&(i=e,e=void 0),i)return Ri(n,t,e).pipe(Cc(i));let[r,o]=O3(n)?I3.map(s=>a=>n[s](t,a,e)):T3(n)?E3.map(ZT(n,t)):A3(n)?M3.map(ZT(n,t)):[];if(!r&&wc(n))return ti(s=>Ri(s,t,e))(mt(n));if(!r)throw new TypeError("Invalid event target");return new Se(s=>{let a=(...l)=>s.next(1o(a)})}function ZT(n,t){return e=>i=>n[e](t,i)}function T3(n){return Fe(n.addListener)&&Fe(n.removeListener)}function A3(n){return Fe(n.on)&&Fe(n.off)}function O3(n){return Fe(n.addEventListener)&&Fe(n.removeEventListener)}function Gn(n=0,t,e=PT){let i=-1;return t!=null&&(Am(t)?e=t:i=t),new Se(r=>{let o=Um(n)?+n-e.now():n;o<0&&(o=0);let s=0;return e.schedule(function(){r.closed||(r.next(s++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function b0(n=0,t=Vr){return n<0&&(n=0),Gn(n,n,t)}function et(...n){let t=mo(n),e=FT(n,1/0),i=n;return i.length?i.length===1?mt(i[0]):po(e)(Lt(i,t)):Ui}var R3=new Se(Go);function Ae(n,t){return Be((e,i)=>{let r=0;e.subscribe($e(i,o=>n.call(t,o,r++)&&i.next(o)))})}function XT(n){return Be((t,e)=>{let i=!1,r=null,o=null,s=!1,a=()=>{if(o?.unsubscribe(),o=null,i){i=!1;let c=r;r=null,e.next(c)}s&&e.complete()},l=()=>{o=null,s&&e.complete()};t.subscribe($e(e,c=>{i=!0,r=c,o||mt(n(c)).subscribe(o=$e(e,a,l))},()=>{s=!0,(!i||!o||o.closed)&&e.complete()}))})}function qm(n,t=Vr){return XT(()=>Gn(n,t))}function _o(n){return Be((t,e)=>{let i=null,r=!1,o;i=t.subscribe($e(e,void 0,void 0,s=>{o=mt(n(s,_o(n)(t))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}function JT(n,t,e,i,r){return(o,s)=>{let a=e,l=t,c=0;o.subscribe($e(s,d=>{let u=c++;l=a?n(l,d,u):(a=!0,d),i&&s.next(l)},r&&(()=>{a&&s.next(l),s.complete()})))}}function Xo(n,t){return Fe(t)?ti(n,t,1):ti(n,1)}function e1(n){return new Se(t=>n.subscribe(t))}var P3={connector:()=>new k};function Gm(n,t=P3){let{connector:e}=t;return Be((i,r)=>{let o=e();mt(n(e1(o))).subscribe(r),r.add(i.subscribe(o))})}function sn(n,t=Vr){return Be((e,i)=>{let r=null,o=null,s=null,a=()=>{if(r){r.unsubscribe(),r=null;let c=o;o=null,i.next(c)}};function l(){let c=s+n,d=t.now();if(d{o=c,s=t.now(),r||(r=t.schedule(l,n),i.add(r))},()=>{a(),i.complete()},void 0,()=>{o=r=null}))})}function Bs(n){return Be((t,e)=>{let i=!1;t.subscribe($e(e,r=>{i=!0,e.next(r)},()=>{i||e.next(n),e.complete()}))})}function pt(n){return n<=0?()=>Ui:Be((t,e)=>{let i=0;t.subscribe($e(e,r=>{++i<=n&&(e.next(r),n<=i&&e.complete())}))})}function t1(){return Be((n,t)=>{n.subscribe($e(t,Go))})}function $s(n){return fe(()=>n)}function v0(n,t){return t?e=>go(t.pipe(pt(1),t1()),e.pipe(v0(n))):ti((e,i)=>mt(n(e,i)).pipe(pt(1),$s(e)))}function Ka(n,t=Vr){let e=Gn(n,t);return v0(()=>e)}function Jo(n,t=pn){return n=n??F3,Be((e,i)=>{let r,o=!0;e.subscribe($e(i,s=>{let a=t(s);(o||!n(r,a))&&(o=!1,r=a,i.next(s))}))})}function F3(n,t){return n===t}function Qm(n=N3){return Be((t,e)=>{let i=!1;t.subscribe($e(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(n())))})}function N3(){return new Zo}function zs(n){return Be((t,e)=>{try{t.subscribe(e)}finally{e.add(n)}})}function Br(n,t){let e=arguments.length>=2;return i=>i.pipe(n?Ae((r,o)=>n(r,o,i)):pn,pt(1),e?Bs(t):Qm(()=>new Zo))}function Dc(n){return n<=0?()=>Ui:Be((t,e)=>{let i=[];t.subscribe($e(e,r=>{i.push(r),n{for(let r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function y0(n,t){let e=arguments.length>=2;return i=>i.pipe(n?Ae((r,o)=>n(r,o,i)):pn,Dc(1),e?Bs(t):Qm(()=>new Zo))}function i1(n,t){let e=Fe(n)?n:()=>n;return Fe(t)?Gm(t,{connector:e}):i=>new fo(i,e)}function L3(n){return n?t=>Gm(n)(t):t=>i1(new k)(t)}function w0(n,t){return Be(JT(n,t,arguments.length>=2,!0))}function es(n={}){let{connector:t=()=>new k,resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=n;return o=>{let s,a,l,c=0,d=!1,u=!1,h=()=>{a?.unsubscribe(),a=void 0},f=()=>{h(),s=l=void 0,d=u=!1},m=()=>{let g=s;f(),g?.unsubscribe()};return Be((g,_)=>{c++,!u&&!d&&h();let v=l=l??t();_.add(()=>{c--,c===0&&!u&&!d&&(a=C0(m,r))}),v.subscribe(_),!s&&c>0&&(s=new Ko({next:x=>v.next(x),error:x=>{u=!0,h(),a=C0(f,e,x),v.error(x)},complete:()=>{d=!0,h(),a=C0(f,i),v.complete()}}),mt(g).subscribe(s))})(o)}}function C0(n,t,...e){if(t===!0){n();return}if(t===!1)return;let i=new Ko({next:()=>{i.unsubscribe(),n()}});return mt(t(...e)).subscribe(i)}function Km(n,t,e){let i,r=!1;return n&&typeof n=="object"?{bufferSize:i=1/0,windowTime:t=1/0,refCount:r=!1,scheduler:e}=n:i=n??1/0,es({connector:()=>new qn(i,t,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}function Za(n){return Ae((t,e)=>n<=e)}function yt(...n){let t=mo(n);return Be((e,i)=>{(t?go(n,e,t):go(n,e)).subscribe(i)})}function Rt(n,t){return Be((e,i)=>{let r=null,o=0,s=!1,a=()=>s&&!r&&i.complete();e.subscribe($e(i,l=>{r?.unsubscribe();let c=0,d=o++;mt(n(l,d)).subscribe(r=$e(i,u=>i.next(t?t(l,u,d,c++):u),()=>{r=null,a()}))},()=>{s=!0,a()}))})}function Ce(n){return Be((t,e)=>{mt(n).subscribe($e(e,()=>e.complete(),Go)),!e.closed&&t.subscribe(e)})}function D0(n,t=!1){return Be((e,i)=>{let r=0;e.subscribe($e(i,o=>{let s=n(o,r++);(s||t)&&i.next(o),!s&&i.complete()}))})}function Et(n,t,e){let i=Fe(n)||t||e?{next:n,error:t,complete:e}:n;return i?Be((r,o)=>{var s;(s=i.subscribe)===null||s===void 0||s.call(i);let a=!0;r.subscribe($e(o,l=>{var c;(c=i.next)===null||c===void 0||c.call(i,l),o.next(l)},()=>{var l;a=!1,(l=i.complete)===null||l===void 0||l.call(i),o.complete()},l=>{var c;a=!1,(c=i.error)===null||c===void 0||c.call(i,l),o.error(l)},()=>{var l,c;a&&((l=i.unsubscribe)===null||l===void 0||l.call(i)),(c=i.finalize)===null||c===void 0||c.call(i)}))}):pn}var J1="https://g.co/ng/security#xss",ee=class extends Error{constructor(t,e){super(Xw(t,e)),this.code=t}};function Xw(n,t){return`${`NG0${Math.abs(n)}`}${t?": "+t:""}`}var jp=Symbol("InputSignalNode#UNSET"),eA=Pe(E({},o0),{transformFn:void 0,applyValueToInputSignal(n,t){bu(n,t)}});function tA(n,t){let e=Object.create(eA);e.value=n,e.transformFn=t?.transform;function i(){if(gu(e),e.value===jp)throw new ee(-950,!1);return e.value}return i[Tn]=e,i}function Pu(n){return{toString:n}.toString()}var Zm="__parameters__";function V3(n){return function(...e){if(n){let i=n(...e);for(let r in i)this[r]=i[r]}}}function iA(n,t,e){return Pu(()=>{let i=V3(t);function r(...o){if(this instanceof r)return i.apply(this,o),this;let s=new r(...o);return a.annotation=s,a;function a(l,c,d){let u=l.hasOwnProperty(Zm)?l[Zm]:Object.defineProperty(l,Zm,{value:[]})[Zm];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}var ts=globalThis;function Vt(n){for(let t in n)if(n[t]===Vt)return t;throw Error("Could not find renamed property on target object.")}function j3(n,t){for(let e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function On(n){if(typeof n=="string")return n;if(Array.isArray(n))return"["+n.map(On).join(", ")+"]";if(n==null)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;let t=n.toString();if(t==null)return""+t;let e=t.indexOf(`
`);return e===-1?t:t.substring(0,e)}function V0(n,t){return n==null||n===""?t===null?"":t:t==null||t===""?n:n+" "+t}var B3=Vt({__forward_ref__:Vt});function Ye(n){return n.__forward_ref__=Ye,n.toString=function(){return On(this())},n}function Wi(n){return nA(n)?n():n}function nA(n){return typeof n=="function"&&n.hasOwnProperty(B3)&&n.__forward_ref__===Ye}function T(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function se(n){return{providers:n.providers||[],imports:n.imports||[]}}function Bp(n){return n1(n,oA)||n1(n,sA)}function rA(n){return Bp(n)!==null}function n1(n,t){return n.hasOwnProperty(t)?n[t]:null}function $3(n){let t=n&&(n[oA]||n[sA]);return t||null}function r1(n){return n&&(n.hasOwnProperty(o1)||n.hasOwnProperty(z3))?n[o1]:null}var oA=Vt({\u0275prov:Vt}),o1=Vt({\u0275inj:Vt}),sA=Vt({ngInjectableDef:Vt}),z3=Vt({ngInjectorDef:Vt}),I=class{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.\u0275prov=T({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function aA(n){return n&&!!n.\u0275providers}var H3=Vt({\u0275cmp:Vt}),U3=Vt({\u0275dir:Vt}),W3=Vt({\u0275pipe:Vt}),Y3=Vt({\u0275mod:Vt}),up=Vt({\u0275fac:Vt}),Su=Vt({__NG_ELEMENT_ID__:Vt}),s1=Vt({__NG_ENV_ID__:Vt});function yo(n){return typeof n=="string"?n:n==null?"":String(n)}function q3(n){return typeof n=="function"?n.name||n.toString():typeof n=="object"&&n!=null&&typeof n.type=="function"?n.type.name||n.type.toString():yo(n)}function G3(n,t){let e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new ee(-200,n)}function Jw(n,t){throw new ee(-201,!1)}var st=function(n){return n[n.Default=0]="Default",n[n.Host=1]="Host",n[n.Self=2]="Self",n[n.SkipSelf=4]="SkipSelf",n[n.Optional=8]="Optional",n}(st||{}),j0;function lA(){return j0}function An(n){let t=j0;return j0=n,t}function cA(n,t,e){let i=Bp(n);if(i&&i.providedIn=="root")return i.value===void 0?i.value=i.factory():i.value;if(e&st.Optional)return null;if(t!==void 0)return t;Jw(n,"Injector")}var Q3={},ku=Q3,B0="__NG_DI_FLAG__",hp="ngTempTokenPath",K3="ngTokenPath",Z3=/\n/gm,X3="\u0275",a1="__source",Ec;function J3(){return Ec}function Hs(n){let t=Ec;return Ec=n,t}function e4(n,t=st.Default){if(Ec===void 0)throw new ee(-203,!1);return Ec===null?cA(n,void 0,t):Ec.get(n,t&st.Optional?null:void 0,t)}function D(n,t=st.Default){return(lA()||e4)(Wi(n),t)}function C(n,t=st.Default){return D(n,$p(t))}function $p(n){return typeof n>"u"||typeof n=="number"?n:0|(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)}function $0(n){let t=[];for(let e=0;e ");else if(typeof t=="object"){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):On(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(Z3,`
  `)}`}var yr=dA(iA("Optional"),8);var Ur=dA(iA("SkipSelf"),4);function el(n,t){let e=n.hasOwnProperty(up);return e?n[up]:null}function r4(n,t,e){if(n.length!==t.length)return!1;for(let i=0;iArray.isArray(e)?eC(e,t):t(e))}function uA(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function fp(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function s4(n,t){let e=[];for(let i=0;it;){let o=r-2;n[r]=n[o],r--}n[t]=e,n[t+1]=i}}function zp(n,t,e){let i=Fu(n,t);return i>=0?n[i|1]=e:(i=~i,a4(n,i,t,e)),i}function x0(n,t){let e=Fu(n,t);if(e>=0)return n[e|1]}function Fu(n,t){return l4(n,t,1)}function l4(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){let o=i+(r-i>>1),s=n[o<t?r=o:i=o+1}return~(r<t){s=o-1;break}}}for(;o-1){let o;for(;++ro?u="":u=r[d+1].toLowerCase(),i&2&&c!==u){if($r(i))return!1;s=!0}}}}return $r(i)||s}function $r(n){return(n&1)===0}function m4(n,t,e,i){if(t===null)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else i&8?r+="."+s:i&4&&(r+=" "+s);else r!==""&&!$r(s)&&(t+=c1(o,r),r=""),i=s,o=o||!$r(i);e++}return r!==""&&(t+=c1(o,r)),t}function y4(n){return n.map(v4).join(",")}function w4(n){let t=[],e=[],i=1,r=2;for(;i{let t=wA(n),e=Pe(E({},t),{decls:n.decls,vars:n.vars,template:n.template,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,onPush:n.changeDetection===mA.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&n.dependencies||null,getStandaloneInjector:null,signals:n.signals??!1,data:n.data||{},encapsulation:n.encapsulation||wo.Emulated,styles:n.styles||gn,_:null,schemas:n.schemas||null,tView:null,id:""});CA(e);let i=n.dependencies;return e.directiveDefs=u1(i,!1),e.pipeDefs=u1(i,!0),e.id=x4(e),e})}function C4(n){return ns(n)||iC(n)}function D4(n){return n!==null}function ae(n){return Pu(()=>({type:n.type,bootstrap:n.bootstrap||gn,declarations:n.declarations||gn,imports:n.imports||gn,exports:n.exports||gn,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function d1(n,t){if(n==null)return is;let e={};for(let i in n)if(n.hasOwnProperty(i)){let r=n[i],o,s,a=qs.None;Array.isArray(r)?(a=r[0],o=r[1],s=r[2]??o):(o=r,s=r),t?(e[o]=a!==qs.None?[i,a]:i,t[o]=s):e[o]=i}return e}function M(n){return Pu(()=>{let t=wA(n);return CA(t),t})}function rt(n){return{type:n.type,name:n.name,factory:null,pure:n.pure!==!1,standalone:n.standalone===!0,onDestroy:n.type.prototype.ngOnDestroy||null}}function ns(n){return n[H3]||null}function iC(n){return n[U3]||null}function bA(n){return n[W3]||null}function vA(n){let t=ns(n)||iC(n)||bA(n);return t!==null?t.standalone:!1}function yA(n,t){let e=n[Y3]||null;if(!e&&t===!0)throw new Error(`Type ${On(n)} does not have '\u0275mod' property.`);return e}function wA(n){let t={};return{type:n.type,providersResolver:null,factory:null,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:n.inputs||is,exportAs:n.exportAs||null,standalone:n.standalone===!0,signals:n.signals===!0,selectors:n.selectors||gn,viewQuery:n.viewQuery||null,features:n.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:d1(n.inputs,t),outputs:d1(n.outputs),debugInfo:null}}function CA(n){n.features?.forEach(t=>t(n))}function u1(n,t){if(!n)return null;let e=t?bA:C4;return()=>(typeof n=="function"?n():n).map(i=>e(i)).filter(D4)}function x4(n){let t=0,e=[n.selectors,n.ngContentSelectors,n.hostVars,n.hostAttrs,n.consts,n.vars,n.decls,n.encapsulation,n.standalone,n.signals,n.exportAs,JSON.stringify(n.inputs),JSON.stringify(n.outputs),Object.getOwnPropertyNames(n.type.prototype),!!n.contentQueries,!!n.viewQuery].join("|");for(let r of e)t=Math.imul(31,t)+r.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function Hp(n){return{\u0275providers:n}}function S4(...n){return{\u0275providers:DA(!0,n),\u0275fromNgModule:!0}}function DA(n,...t){let e=[],i=new Set,r,o=s=>{e.push(s)};return eC(t,s=>{let a=s;H0(a,o,[],i)&&(r||=[],r.push(a))}),r!==void 0&&xA(r,o),e}function xA(n,t){for(let e=0;e{t(o,i)})}}function H0(n,t,e,i){if(n=Wi(n),!n)return!1;let r=null,o=r1(n),s=!o&&ns(n);if(!o&&!s){let l=n.ngModule;if(o=r1(l),o)r=l;else return!1}else{if(s&&!s.standalone)return!1;r=n}let a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of l)H0(c,t,e,i)}}else if(o){if(o.imports!=null&&!a){i.add(r);let c;try{eC(o.imports,d=>{H0(d,t,e,i)&&(c||=[],c.push(d))})}finally{}c!==void 0&&xA(c,t)}if(!a){let c=el(r)||(()=>new r);t({provide:r,useFactory:c,deps:gn},r),t({provide:fA,useValue:r,multi:!0},r),t({provide:Mc,useValue:()=>D(r),multi:!0},r)}let l=o.providers;if(l!=null&&!a){let c=n;nC(l,d=>{t(d,c)})}}else return!1;return r!==n&&n.providers!==void 0}function nC(n,t){for(let e of n)aA(e)&&(e=e.\u0275providers),Array.isArray(e)?nC(e,t):t(e)}var k4=Vt({provide:String,useValue:Vt});function SA(n){return n!==null&&typeof n=="object"&&k4 in n}function E4(n){return!!(n&&n.useExisting)}function I4(n){return!!(n&&n.useFactory)}function Tc(n){return typeof n=="function"}function M4(n){return!!n.useClass}var Up=new I(""),rp={},T4={},S0;function Wp(){return S0===void 0&&(S0=new mp),S0}var Pi=class{},Iu=class extends Pi{get destroyed(){return this._destroyed}constructor(t,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,W0(t,s=>this.processProvider(s)),this.records.set(hA,xc(void 0,this)),r.has("environment")&&this.records.set(Pi,xc(void 0,this));let o=this.records.get(Up);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(fA,gn,st.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=ot(null);try{for(let i of this._ngOnDestroyHooks)i.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),ot(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let e=Hs(this),i=An(void 0),r;try{return t()}finally{Hs(e),An(i)}}get(t,e=ku,i=st.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(s1))return t[s1](this);i=$p(i);let r,o=Hs(this),s=An(void 0);try{if(!(i&st.SkipSelf)){let l=this.records.get(t);if(l===void 0){let c=F4(t)&&Bp(t);c&&this.injectableDefInScope(c)?l=xc(U0(t),rp):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l)}let a=i&st.Self?Wp():this.parent;return e=i&st.Optional&&e===ku?null:e,a.get(t,e)}catch(a){if(a.name==="NullInjectorError"){if((a[hp]=a[hp]||[]).unshift(On(t)),o)throw a;return i4(a,t,"R3InjectorError",this.source)}else throw a}finally{An(s),Hs(o)}}resolveInjectorInitializers(){let t=ot(null),e=Hs(this),i=An(void 0),r;try{let o=this.get(Mc,gn,st.Self);for(let s of o)s()}finally{Hs(e),An(i),ot(t)}}toString(){let t=[],e=this.records;for(let i of e.keys())t.push(On(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ee(205,!1)}processProvider(t){t=Wi(t);let e=Tc(t)?t:Wi(t&&t.provide),i=O4(t);if(!Tc(t)&&t.multi===!0){let r=this.records.get(e);r||(r=xc(void 0,rp,!0),r.factory=()=>$0(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,i)}hydrate(t,e){let i=ot(null);try{return e.value===rp&&(e.value=T4,e.value=e.factory()),typeof e.value=="object"&&e.value&&P4(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{ot(i)}}injectableDefInScope(t){if(!t.providedIn)return!1;let e=Wi(t.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(t){let e=this._onDestroyHooks.indexOf(t);e!==-1&&this._onDestroyHooks.splice(e,1)}};function U0(n){let t=Bp(n),e=t!==null?t.factory:el(n);if(e!==null)return e;if(n instanceof I)throw new ee(204,!1);if(n instanceof Function)return A4(n);throw new ee(204,!1)}function A4(n){if(n.length>0)throw new ee(204,!1);let e=$3(n);return e!==null?()=>e.factory(n):()=>new n}function O4(n){if(SA(n))return xc(void 0,n.useValue);{let t=kA(n);return xc(t,rp)}}function kA(n,t,e){let i;if(Tc(n)){let r=Wi(n);return el(r)||U0(r)}else if(SA(n))i=()=>Wi(n.useValue);else if(I4(n))i=()=>n.useFactory(...$0(n.deps||[]));else if(E4(n))i=()=>D(Wi(n.useExisting));else{let r=Wi(n&&(n.useClass||n.provide));if(R4(n))i=()=>new r(...$0(n.deps));else return el(r)||U0(r)}return i}function xc(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function R4(n){return!!n.deps}function P4(n){return n!==null&&typeof n=="object"&&typeof n.ngOnDestroy=="function"}function F4(n){return typeof n=="function"||typeof n=="object"&&n instanceof I}function W0(n,t){for(let e of n)Array.isArray(e)?W0(e,t):e&&aA(e)?W0(e.\u0275providers,t):t(e)}function So(n,t){n instanceof Iu&&n.assertNotDestroyed();let e,i=Hs(n),r=An(void 0);try{return t()}finally{Hs(i),An(r)}}function EA(){return lA()!==void 0||J3()!=null}function rC(n){if(!EA())throw new ee(-203,!1)}function N4(n){return typeof n=="function"}var ko=0,Ze=1,We=2,cn=3,Hr=4,Fn=5,Ac=6,pp=7,an=8,Oc=9,Co=10,ii=11,Mu=12,h1=13,Lc=14,Qn=15,tl=16,Sc=17,rs=18,Yp=19,IA=20,Ws=21,op=22,br=23,Fi=25,oC=1;var il=7,gp=8,Rc=9,ln=10,_p=function(n){return n[n.None=0]="None",n[n.HasTransplantedViews=2]="HasTransplantedViews",n}(_p||{});function Ys(n){return Array.isArray(n)&&typeof n[oC]=="object"}function as(n){return Array.isArray(n)&&n[oC]===!0}function sC(n){return(n.flags&4)!==0}function qp(n){return n.componentOffset>-1}function Gp(n){return(n.flags&1)===1}function os(n){return!!n.template}function Y0(n){return(n[We]&512)!==0}var q0=class{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}};function MA(n,t,e,i){t!==null?t.applyValueToInputSignal(t,i):n[e]=i}function ze(){return TA}function TA(n){return n.type.prototype.ngOnChanges&&(n.setInput=V4),L4}ze.ngInherit=!0;function L4(){let n=OA(this),t=n?.current;if(t){let e=n.previous;if(e===is)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function V4(n,t,e,i,r){let o=this.declaredInputs[i],s=OA(n)||j4(n,{previous:is,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[o];a[o]=new q0(c&&c.currentValue,e,l===is),MA(n,t,r,e)}var AA="__ngSimpleChanges__";function OA(n){return n[AA]||null}function j4(n,t){return n[AA]=t}var f1=null;var bo=function(n,t,e){f1?.(n,t,e)},RA="svg",B4="math";function Do(n){for(;Array.isArray(n);)n=n[ko];return n}function $4(n){for(;Array.isArray(n);){if(typeof n[oC]=="object")return n;n=n[ko]}return null}function PA(n,t){return Do(t[n])}function wr(n,t){return Do(t[n.index])}function aC(n,t){return n.data[t]}function lC(n,t){return n[t]}function Xs(n,t){let e=t[n];return Ys(e)?e:e[ko]}function z4(n){return(n[We]&4)===4}function cC(n){return(n[We]&128)===128}function H4(n){return as(n[cn])}function Gs(n,t){return t==null?null:n[t]}function FA(n){n[Sc]=0}function NA(n){n[We]&1024||(n[We]|=1024,cC(n)&&Kp(n))}function U4(n,t){for(;n>0;)t=t[Lc],n--;return t}function Qp(n){return!!(n[We]&9216||n[br]?.dirty)}function G0(n){n[Co].changeDetectionScheduler?.notify(8),n[We]&64&&(n[We]|=1024),Qp(n)&&Kp(n)}function Kp(n){n[Co].changeDetectionScheduler?.notify(0);let t=nl(n);for(;t!==null&&!(t[We]&8192||(t[We]|=8192,!cC(t)));)t=nl(t)}function LA(n,t){if((n[We]&256)===256)throw new ee(911,!1);n[Ws]===null&&(n[Ws]=[]),n[Ws].push(t)}function W4(n,t){if(n[Ws]===null)return;let e=n[Ws].indexOf(t);e!==-1&&n[Ws].splice(e,1)}function nl(n){let t=n[cn];return as(t)?t[cn]:t}var tt={lFrame:YA(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var VA=!1;function Y4(){return tt.lFrame.elementDepthCount}function q4(){tt.lFrame.elementDepthCount++}function G4(){tt.lFrame.elementDepthCount--}function jA(){return tt.bindingsEnabled}function BA(){return tt.skipHydrationRootTNode!==null}function Q4(n){return tt.skipHydrationRootTNode===n}function K4(){tt.skipHydrationRootTNode=null}function Le(){return tt.lFrame.lView}function Kt(){return tt.lFrame.tView}function N(n){return tt.lFrame.contextLView=n,n[an]}function L(n){return tt.lFrame.contextLView=null,n}function Ni(){let n=$A();for(;n!==null&&n.type===64;)n=n.parent;return n}function $A(){return tt.lFrame.currentTNode}function Z4(){let n=tt.lFrame,t=n.currentTNode;return n.isParent?t:t.parent}function ul(n,t){let e=tt.lFrame;e.currentTNode=n,e.isParent=t}function dC(){return tt.lFrame.isParent}function uC(){tt.lFrame.isParent=!1}function X4(){return tt.lFrame.contextLView}function zA(){return VA}function m1(n){VA=n}function hl(){let n=tt.lFrame,t=n.bindingRootIndex;return t===-1&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function HA(){return tt.lFrame.bindingIndex}function J4(n){return tt.lFrame.bindingIndex=n}function Js(){return tt.lFrame.bindingIndex++}function Zp(n){let t=tt.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function e8(){return tt.lFrame.inI18n}function t8(n,t){let e=tt.lFrame;e.bindingIndex=e.bindingRootIndex=n,Q0(t)}function i8(){return tt.lFrame.currentDirectiveIndex}function Q0(n){tt.lFrame.currentDirectiveIndex=n}function hC(n){let t=tt.lFrame.currentDirectiveIndex;return t===-1?null:n[t]}function fC(){return tt.lFrame.currentQueryIndex}function Xp(n){tt.lFrame.currentQueryIndex=n}function n8(n){let t=n[Ze];return t.type===2?t.declTNode:t.type===1?n[Fn]:null}function UA(n,t,e){if(e&st.SkipSelf){let r=t,o=n;for(;r=r.parent,r===null&&!(e&st.Host);)if(r=n8(o),r===null||(o=o[Lc],r.type&10))break;if(r===null)return!1;t=r,n=o}let i=tt.lFrame=WA();return i.currentTNode=t,i.lView=n,!0}function mC(n){let t=WA(),e=n[Ze];tt.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function WA(){let n=tt.lFrame,t=n===null?null:n.child;return t===null?YA(n):t}function YA(n){let 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:n,child:null,inI18n:!1};return n!==null&&(n.child=t),t}function qA(){let n=tt.lFrame;return tt.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}var GA=qA;function pC(){let n=qA();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function r8(n){return(tt.lFrame.contextLView=U4(n,tt.lFrame.contextLView))[an]}function Eo(){return tt.lFrame.selectedIndex}function rl(n){tt.lFrame.selectedIndex=n}function Nu(){let n=tt.lFrame;return aC(n.tView,n.selectedIndex)}function Yi(){tt.lFrame.currentNamespace=RA}function Vc(){o8()}function o8(){tt.lFrame.currentNamespace=null}function s8(){return tt.lFrame.currentNamespace}var QA=!0;function Jp(){return QA}function eg(n){QA=n}function a8(n,t,e){let{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=t.type.prototype;if(i){let s=TA(t);(e.preOrderHooks??=[]).push(n,s),(e.preOrderCheckHooks??=[]).push(n,s)}r&&(e.preOrderHooks??=[]).push(0-n,r),o&&((e.preOrderHooks??=[]).push(n,o),(e.preOrderCheckHooks??=[]).push(n,o))}function tg(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e=i)break}else t[l]<0&&(n[Sc]+=65536),(a>14>16&&(n[We]&3)===t&&(n[We]+=16384,p1(a,o)):p1(a,o)}var Ic=-1,ol=class{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}};function c8(n){return n instanceof ol}function d8(n){return(n.flags&8)!==0}function u8(n){return(n.flags&16)!==0}var E0={},K0=class{constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,i){i=$p(i);let r=this.injector.get(t,E0,i);return r!==E0||e===E0?r:this.parentInjector.get(t,e,i)}};function ZA(n){return n!==Ic}function bp(n){return n&32767}function h8(n){return n>>16}function vp(n,t){let e=h8(n),i=t;for(;e>0;)i=i[Lc],e--;return i}var Z0=!0;function yp(n){let t=Z0;return Z0=n,t}var f8=256,XA=f8-1,JA=5,m8=0,vo={};function p8(n,t,e){let i;typeof e=="string"?i=e.charCodeAt(0)||0:e.hasOwnProperty(Su)&&(i=e[Su]),i==null&&(i=e[Su]=m8++);let r=i&XA,o=1<>JA)]|=o}function wp(n,t){let e=eO(n,t);if(e!==-1)return e;let i=t[Ze];i.firstCreatePass&&(n.injectorIndex=t.length,I0(i.data,n),I0(t,null),I0(i.blueprint,null));let r=gC(n,t),o=n.injectorIndex;if(ZA(r)){let s=bp(r),a=vp(r,t),l=a[Ze].data;for(let c=0;c<8;c++)t[o+c]=a[s+c]|l[s+c]}return t[o+8]=r,o}function I0(n,t){n.push(0,0,0,0,0,0,0,0,t)}function eO(n,t){return n.injectorIndex===-1||n.parent&&n.parent.injectorIndex===n.injectorIndex||t[n.injectorIndex+8]===null?-1:n.injectorIndex}function gC(n,t){if(n.parent&&n.parent.injectorIndex!==-1)return n.parent.injectorIndex;let e=0,i=null,r=t;for(;r!==null;){if(i=oO(r),i===null)return Ic;if(e++,r=r[Lc],i.injectorIndex!==-1)return i.injectorIndex|e<<16}return Ic}function X0(n,t,e){p8(n,t,e)}function g8(n,t){if(t==="class")return n.classes;if(t==="style")return n.styles;let e=n.attrs;if(e){let i=e.length,r=0;for(;r>20,u=i?a:a+d,h=r?a+d:c;for(let f=u;f=l&&m.type===e)return f}if(r){let f=s[l];if(f&&os(f)&&f.type===e)return l}return null}function sl(n,t,e,i){let r=n[e],o=t.data;if(c8(r)){let s=r;s.resolving&&G3(q3(o[e]));let a=yp(s.canSeeViewProviders);s.resolving=!0;let l,c=s.injectImpl?An(s.injectImpl):null,d=UA(n,i,st.Default);try{r=n[e]=s.factory(void 0,o,n,i),t.firstCreatePass&&e>=i.directiveStart&&a8(e,o[e],t)}finally{c!==null&&An(c),yp(a),s.resolving=!1,GA()}}return r}function b8(n){if(typeof n=="string")return n.charCodeAt(0)||0;let t=n.hasOwnProperty(Su)?n[Su]:void 0;return typeof t=="number"?t>=0?t&XA:v8:t}function g1(n,t,e){let i=1<>JA)]&i)}function _1(n,t){return!(n&st.Self)&&!(n&st.Host&&t)}var Ja=class{constructor(t,e){this._tNode=t,this._lView=e}get(t,e,i){return nO(this._tNode,this._lView,t,$p(i),e)}};function v8(){return new Ja(Ni(),Le())}function Xe(n){return Pu(()=>{let t=n.prototype.constructor,e=t[up]||J0(t),i=Object.prototype,r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){let o=r[up]||J0(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function J0(n){return nA(n)?()=>{let t=J0(Wi(n));return t&&t()}:el(n)}function y8(n,t,e,i,r){let o=n,s=t;for(;o!==null&&s!==null&&s[We]&2048&&!(s[We]&512);){let a=rO(o,s,e,i|st.Self,vo);if(a!==vo)return a;let l=o.parent;if(!l){let c=s[IA];if(c){let d=c.get(e,vo,i);if(d!==vo)return d}l=oO(s),s=s[Lc]}o=l}return r}function oO(n){let t=n[Ze],e=t.type;return e===2?t.declTNode:e===1?n[Fn]:null}function dn(n){return g8(Ni(),n)}function b1(n,t=null,e=null,i){let r=sO(n,t,e,i);return r.resolveInjectorInitializers(),r}function sO(n,t=null,e=null,i,r=new Set){let o=[e||gn,S4(n)];return i=i||(typeof n=="object"?void 0:On(n)),new Iu(o,t||Wp(),i||null,r)}var Oe=class n{static{this.THROW_IF_NOT_FOUND=ku}static{this.NULL=new mp}static create(t,e){if(Array.isArray(t))return b1({name:""},e,t,"");{let i=t.name??"";return b1({name:i},t.parent,t.providers,i)}}static{this.\u0275prov=T({token:n,providedIn:"any",factory:()=>D(hA)})}static{this.__NG_ELEMENT_ID__=-1}};var w8=new I("");w8.__NG_ELEMENT_ID__=n=>{let t=Ni();if(t===null)throw new ee(204,!1);if(t.type&2)return t.value;if(n&st.Optional)return null;throw new ee(204,!1)};var C8="ngOriginalError";function M0(n){return n[C8]}var aO=!0,Lu=(()=>{class n{static{this.__NG_ELEMENT_ID__=D8}static{this.__NG_ENV_ID__=e=>e}}return n})(),ew=class extends Lu{constructor(t){super(),this._lView=t}onDestroy(t){return LA(this._lView,t),()=>W4(this._lView,t)}};function D8(){return new ew(Le())}var fl=(()=>{class n{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Ee(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275prov=T({token:n,providedIn:"root",factory:()=>new n})}}return n})();var tw=class extends k{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,EA()&&(this.destroyRef=C(Lu,{optional:!0})??void 0,this.pendingTasks=C(fl,{optional:!0})??void 0)}emit(t){let e=ot(null);try{super.next(t)}finally{ot(e)}}subscribe(t,e,i){let r=t,o=e||(()=>null),s=i;if(t&&typeof t=="object"){let l=t;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=this.wrapInTimeout(o),r&&(r=this.wrapInTimeout(r)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:r,error:o,complete:s});return t instanceof pe&&t.add(a),a}wrapInTimeout(t){return e=>{let i=this.pendingTasks?.add();setTimeout(()=>{t(e),i!==void 0&&this.pendingTasks?.remove(i)})}}},P=tw;function Cp(...n){}function lO(n){let t,e;function i(){n=Cp;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{n(),i()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{n(),i()})),()=>i()}function v1(n){return queueMicrotask(()=>n()),()=>{n=Cp}}var _C="isAngularZone",Dp=_C+"_ID",x8=0,X=class n{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new P(!1),this.onMicrotaskEmpty=new P(!1),this.onStable=new P(!1),this.onError=new P(!1);let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:o=aO}=t;if(typeof Zone>"u")throw new ee(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!r&&i,s.shouldCoalesceRunChangeDetection=r,s.callbackScheduled=!1,s.scheduleInRootZone=o,E8(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(_C)===!0}static assertInAngularZone(){if(!n.isInAngularZone())throw new ee(909,!1)}static assertNotInAngularZone(){if(n.isInAngularZone())throw new ee(909,!1)}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,t,S8,Cp,Cp);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}},S8={};function bC(n){if(n._nesting==0&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function k8(n){if(n.isCheckStableRunning||n.callbackScheduled)return;n.callbackScheduled=!0;function t(){lO(()=>{n.callbackScheduled=!1,iw(n),n.isCheckStableRunning=!0,bC(n),n.isCheckStableRunning=!1})}n.scheduleInRootZone?Zone.root.run(()=>{t()}):n._outer.run(()=>{t()}),iw(n)}function E8(n){let t=()=>{k8(n)},e=x8++;n._inner=n._inner.fork({name:"angular",properties:{[_C]:!0,[Dp]:e,[Dp+e]:!0},onInvokeTask:(i,r,o,s,a,l)=>{if(I8(l))return i.invokeTask(o,s,a,l);try{return y1(n),i.invokeTask(o,s,a,l)}finally{(n.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||n.shouldCoalesceRunChangeDetection)&&t(),w1(n)}},onInvoke:(i,r,o,s,a,l,c)=>{try{return y1(n),i.invoke(o,s,a,l,c)}finally{n.shouldCoalesceRunChangeDetection&&!n.callbackScheduled&&!M8(l)&&t(),w1(n)}},onHasTask:(i,r,o,s)=>{i.hasTask(o,s),r===o&&(s.change=="microTask"?(n._hasPendingMicrotasks=s.microTask,iw(n),bC(n)):s.change=="macroTask"&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(i,r,o,s)=>(i.handleError(o,s),n.runOutsideAngular(()=>n.onError.emit(s)),!1)})}function iw(n){n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&n.callbackScheduled===!0?n.hasPendingMicrotasks=!0:n.hasPendingMicrotasks=!1}function y1(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function w1(n){n._nesting--,bC(n)}var xp=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new P,this.onMicrotaskEmpty=new P,this.onStable=new P,this.onError=new P}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,r){return t.apply(e,i)}};function I8(n){return cO(n,"__ignore_ng_zone__")}function M8(n){return cO(n,"__scheduler_tick__")}function cO(n,t){return!Array.isArray(n)||n.length!==1?!1:n[0]?.data?.[t]===!0}var _n=class{constructor(){this._console=console}handleError(t){let e=this._findOriginalError(t);this._console.error("ERROR",t),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&M0(t);for(;e&&M0(e);)e=M0(e);return e||null}},T8=new I("",{providedIn:"root",factory:()=>{let n=C(X),t=C(_n);return e=>n.runOutsideAngular(()=>t.handleError(e))}}),Sp=class{constructor(){this.destroyed=!1,this.listeners=null,this.errorHandler=C(_n,{optional:!0}),this.destroyRef=C(Lu),this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){if(this.destroyed)throw new ee(953,!1);return(this.listeners??=[]).push(t),{unsubscribe:()=>{let e=this.listeners?.indexOf(t);e!==void 0&&e!==-1&&this.listeners?.splice(e,1)}}}emit(t){if(this.destroyed)throw new ee(953,!1);if(this.listeners===null)return;let e=ot(null);try{for(let i of this.listeners)try{i(t)}catch(r){this.errorHandler?.handleError(r)}}finally{ot(e)}}};function ml(n){return new Sp}function C1(n,t){return tA(n,t)}function A8(n){return tA(jp,n)}var Ve=(C1.required=A8,C1);function O8(){return jc(Ni(),Le())}function jc(n,t){return new H(wr(n,t))}var H=(()=>{class n{constructor(e){this.nativeElement=e}static{this.__NG_ELEMENT_ID__=O8}}return n})();function dO(n){return n instanceof H?n.nativeElement:n}function R8(){return this._results[Symbol.iterator]()}var vr=class n{get changes(){return this._changes??=new P}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let e=n.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=R8)}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){this.dirty=!1;let i=o4(t);(this._changesDetected=!r4(this._results,i,e))&&(this._results=i,this.length=i.length,this.last=i[this.length-1],this.first=i[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function uO(n){return(n.flags&128)===128}var hO=new Map,P8=0;function F8(){return P8++}function N8(n){hO.set(n[Yp],n)}function nw(n){hO.delete(n[Yp])}var D1="__ngContext__";function Qs(n,t){Ys(t)?(n[D1]=t[Yp],N8(t)):n[D1]=t}function fO(n){return pO(n[Mu])}function mO(n){return pO(n[Hr])}function pO(n){for(;n!==null&&!as(n);)n=n[Hr];return n}var rw;function gO(n){rw=n}function _O(){if(rw!==void 0)return rw;if(typeof document<"u")return document;throw new ee(210,!1)}var Vu=new I("",{providedIn:"root",factory:()=>L8}),L8="ng",vC=new I(""),Io=new I("",{providedIn:"platform",factory:()=>"unknown"});var Dt=new I(""),ju=new I("",{providedIn:"root",factory:()=>_O().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var V8="h",j8="b";var B8=()=>null;function yC(n,t,e=!1){return B8(n,t,e)}var bO=!1,$8=new I("",{providedIn:"root",factory:()=>bO});var Xm;function z8(){if(Xm===void 0&&(Xm=null,ts.trustedTypes))try{Xm=ts.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Xm}function ig(n){return z8()?.createHTML(n)||n}var Jm;function vO(){if(Jm===void 0&&(Jm=null,ts.trustedTypes))try{Jm=ts.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Jm}function x1(n){return vO()?.createHTML(n)||n}function S1(n){return vO()?.createScriptURL(n)||n}var ss=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${J1})`}},ow=class extends ss{getTypeName(){return"HTML"}},sw=class extends ss{getTypeName(){return"Style"}},aw=class extends ss{getTypeName(){return"Script"}},lw=class extends ss{getTypeName(){return"URL"}},cw=class extends ss{getTypeName(){return"ResourceURL"}};function Cr(n){return n instanceof ss?n.changingThisBreaksApplicationSecurity:n}function ls(n,t){let e=H8(n);if(e!=null&&e!==t){if(e==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${e} (see ${J1})`)}return e===t}function H8(n){return n instanceof ss&&n.getTypeName()||null}function yO(n){return new ow(n)}function wO(n){return new sw(n)}function CO(n){return new aw(n)}function DO(n){return new lw(n)}function xO(n){return new cw(n)}function U8(n){let t=new uw(n);return W8()?new dw(t):t}var dw=class{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{let e=new window.DOMParser().parseFromString(ig(t),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(t):(e.firstChild?.remove(),e)}catch{return null}}},uw=class{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let e=this.inertDocument.createElement("template");return e.innerHTML=ig(t),e}};function W8(){try{return!!new window.DOMParser().parseFromString(ig(""),"text/html")}catch{return!1}}var Y8=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ng(n){return n=String(n),n.match(Y8)?n:"unsafe:"+n}function cs(n){let t={};for(let e of n.split(","))t[e]=!0;return t}function Bu(...n){let t={};for(let e of n)for(let i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}var SO=cs("area,br,col,hr,img,wbr"),kO=cs("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),EO=cs("rp,rt"),q8=Bu(EO,kO),G8=Bu(kO,cs("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")),Q8=Bu(EO,cs("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")),k1=Bu(SO,G8,Q8,q8),IO=cs("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),K8=cs("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"),Z8=cs("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"),X8=Bu(IO,K8,Z8),J8=cs("script,style,template"),hw=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,i=!0,r=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild){r.push(e),e=i5(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=t5(e);if(o){e=o;break}e=r.pop()}}return this.buf.join("")}startElement(t){let e=E1(t).toLowerCase();if(!k1.hasOwnProperty(e))return this.sanitizedSomething=!0,!J8.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let i=t.attributes;for(let r=0;r"),!0}endElement(t){let e=E1(t).toLowerCase();k1.hasOwnProperty(e)&&!SO.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(I1(t))}};function e5(n,t){return(n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function t5(n){let t=n.nextSibling;if(t&&n!==t.previousSibling)throw MO(t);return t}function i5(n){let t=n.firstChild;if(t&&e5(n,t))throw MO(t);return t}function E1(n){let t=n.nodeName;return typeof t=="string"?t:"FORM"}function MO(n){return new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`)}var n5=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,r5=/([^\#-~ |!])/g;function I1(n){return n.replace(/&/g,"&").replace(n5,function(t){let e=t.charCodeAt(0),i=t.charCodeAt(1);return"&#"+((e-55296)*1024+(i-56320)+65536)+";"}).replace(r5,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var ep;function wC(n,t){let e=null;try{ep=ep||U8(n);let i=t?String(t):"";e=ep.getInertBodyElement(i);let r=5,o=i;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=ep.getInertBodyElement(i)}while(i!==o);let a=new hw().sanitizeChildren(M1(e)||e);return ig(a)}finally{if(e){let i=M1(e)||e;for(;i.firstChild;)i.firstChild.remove()}}}function M1(n){return"content"in n&&o5(n)?n.content:null}function o5(n){return n.nodeType===Node.ELEMENT_NODE&&n.nodeName==="TEMPLATE"}var pi=function(n){return n[n.NONE=0]="NONE",n[n.HTML=1]="HTML",n[n.STYLE=2]="STYLE",n[n.SCRIPT=3]="SCRIPT",n[n.URL=4]="URL",n[n.RESOURCE_URL=5]="RESOURCE_URL",n}(pi||{});function rg(n){let t=DC();return t?x1(t.sanitize(pi.HTML,n)||""):ls(n,"HTML")?x1(Cr(n)):wC(_O(),yo(n))}function og(n){let t=DC();return t?t.sanitize(pi.URL,n)||"":ls(n,"URL")?Cr(n):ng(yo(n))}function s5(n){let t=DC();if(t)return S1(t.sanitize(pi.RESOURCE_URL,n)||"");if(ls(n,"ResourceURL"))return S1(Cr(n));throw new ee(904,!1)}function a5(n,t){return t==="src"&&(n==="embed"||n==="frame"||n==="iframe"||n==="media"||n==="script")||t==="href"&&(n==="base"||n==="link")?s5:og}function CC(n,t,e){return a5(t,e)(n)}function DC(){let n=Le();return n&&n[Co].sanitizer}var l5=/^>|^->||--!>|)/g,d5="\u200B$1\u200B";function u5(n){return n.replace(l5,t=>t.replace(c5,d5))}function i0e(n){return n.ownerDocument}function TO(n){return n instanceof Function?n():n}function AO(n){return(n??C(Oe)).get(Io)==="browser"}var xo=function(n){return n[n.Important=1]="Important",n[n.DashCase=2]="DashCase",n}(xo||{}),h5;function xC(n,t){return h5(n,t)}function kc(n,t,e,i,r){if(i!=null){let o,s=!1;as(i)?o=i:Ys(i)&&(s=!0,i=i[ko]);let a=Do(i);n===0&&e!==null?r==null?NO(t,e,a):kp(t,e,a,r||null,!0):n===1&&e!==null?kp(t,e,a,r||null,!0):n===2?k5(t,a,s):n===3&&t.destroyNode(a),o!=null&&I5(t,n,o,e,r)}}function f5(n,t){return n.createText(t)}function m5(n,t,e){n.setValue(t,e)}function p5(n,t){return n.createComment(u5(t))}function OO(n,t,e){return n.createElement(t,e)}function g5(n,t){RO(n,t),t[ko]=null,t[Fn]=null}function _5(n,t,e,i,r,o){i[ko]=r,i[Fn]=t,lg(n,i,e,1,r,o)}function RO(n,t){t[Co].changeDetectionScheduler?.notify(9),lg(n,t,t[ii],2,null,null)}function b5(n){let t=n[Mu];if(!t)return T0(n[Ze],n);for(;t;){let e=null;if(Ys(t))e=t[Mu];else{let i=t[ln];i&&(e=i)}if(!e){for(;t&&!t[Hr]&&t!==n;)Ys(t)&&T0(t[Ze],t),t=t[cn];t===null&&(t=n),Ys(t)&&T0(t[Ze],t),e=t&&t[Hr]}t=e}}function v5(n,t,e,i){let r=ln+i,o=e.length;i>0&&(e[r-1][Hr]=t),i0&&(n[e-1][Hr]=i[Hr]);let o=fp(n,ln+t);g5(i[Ze],i);let s=o[rs];s!==null&&s.detachView(o[Ze]),i[cn]=null,i[Hr]=null,i[We]&=-129}return i}function sg(n,t){if(!(t[We]&256)){let e=t[ii];e.destroyNode&&lg(n,t,e,3,null,null),b5(t)}}function T0(n,t){if(t[We]&256)return;let e=ot(null);try{t[We]&=-129,t[We]|=256,t[br]&&bm(t[br]),w5(n,t),y5(n,t),t[Ze].type===1&&t[ii].destroy();let i=t[tl];if(i!==null&&as(t[cn])){i!==t[cn]&&SC(i,t);let r=t[rs];r!==null&&r.detachView(n)}nw(t)}finally{ot(e)}}function y5(n,t){let e=n.cleanup,i=t[pp];if(e!==null)for(let o=0;o=0?i[s]():i[-s].unsubscribe(),o+=2}else{let s=i[e[o+1]];e[o].call(s)}i!==null&&(t[pp]=null);let r=t[Ws];if(r!==null){t[Ws]=null;for(let o=0;o-1){let{encapsulation:o}=n.data[i.directiveStart+r];if(o===wo.None||o===wo.Emulated)return null}return wr(i,e)}}function kp(n,t,e,i,r){n.insertBefore(t,e,i,r)}function NO(n,t,e){n.appendChild(t,e)}function T1(n,t,e,i,r){i!==null?kp(n,t,e,i,r):NO(n,t,e)}function LO(n,t){return n.parentNode(t)}function D5(n,t){return n.nextSibling(t)}function VO(n,t,e){return S5(n,t,e)}function x5(n,t,e){return n.type&40?wr(n,e):null}var S5=x5,A1;function ag(n,t,e,i){let r=FO(n,i,t),o=t[ii],s=i.parent||t[Fn],a=VO(s,i,t);if(r!=null)if(Array.isArray(e))for(let l=0;lFi&&HO(n,t,Fi,!1),bo(s?2:0,r),e(i,r)}finally{rl(o),bo(s?3:1,r)}}function EC(n,t,e){if(sC(t)){let i=ot(null);try{let r=t.directiveStart,o=t.directiveEnd;for(let s=r;snull;function L5(n,t,e,i){let r=XO(t);r.push(e),n.firstCreatePass&&JO(n).push(i,r.length-1)}function V5(n,t,e,i,r,o){let s=t?t.injectorIndex:-1,a=0;return BA()&&(a|=128),{type:e,index:i,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:r,attrs:o,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}}function O1(n,t,e,i,r){for(let o in t){if(!t.hasOwnProperty(o))continue;let s=t[o];if(s===void 0)continue;i??={};let a,l=qs.None;Array.isArray(s)?(a=s[0],l=s[1]):a=s;let c=o;if(r!==null){if(!r.hasOwnProperty(o))continue;c=r[o]}n===0?R1(i,e,c,a,l):R1(i,e,c,a)}return i}function R1(n,t,e,i,r){let o;n.hasOwnProperty(e)?(o=n[e]).push(t,i):o=n[e]=[t,i],r!==void 0&&o.push(r)}function j5(n,t,e){let i=t.directiveStart,r=t.directiveEnd,o=n.data,s=t.attrs,a=[],l=null,c=null;for(let d=i;d0;){let e=n[--t];if(typeof e=="number"&&e<0)return e}return 0}function U5(n,t,e,i){let r=e.directiveStart,o=e.directiveEnd;qp(e)&&Z5(t,e,n.data[r+e.componentOffset]),n.firstCreatePass||wp(e,t),Qs(i,t);let s=e.initialInputs;for(let a=r;a{Kp(n.lView)},consumerOnSignalRead(){this.lView[br]=this}});function dW(n){let t=n[br]??Object.create(uW);return t.lView=n,t}var uW=Pe(E({},fc),{consumerIsAlwaysLive:!0,consumerMarkedDirty:n=>{let t=nl(n.lView);for(;t&&!oR(t[Ze]);)t=nl(t);t&&NA(t)},consumerOnSignalRead(){this.lView[br]=this}});function oR(n){return n.type!==2}var hW=100;function sR(n,t=!0,e=0){let i=n[Co],r=i.rendererFactory,o=!1;o||r.begin?.();try{fW(n,e)}catch(s){throw t&&tR(n,s),s}finally{o||(r.end?.(),i.inlineEffectRunner?.flush())}}function fW(n,t){let e=zA();try{m1(!0),gw(n,t);let i=0;for(;Qp(n);){if(i===hW)throw new ee(103,!1);i++,gw(n,1)}}finally{m1(e)}}function mW(n,t,e,i){let r=t[We];if((r&256)===256)return;let o=!1,s=!1;!o&&t[Co].inlineEffectRunner?.flush(),mC(t);let a=!0,l=null,c=null;o||(oR(n)?(c=sW(t),l=_u(c)):uT()===null?(a=!1,c=dW(t),l=_u(c)):t[br]&&(bm(t[br]),t[br]=null));try{FA(t),J4(n.bindingStartIndex),e!==null&&YO(n,t,e,2,i);let d=(r&3)===3;if(!o)if(d){let f=n.preOrderCheckHooks;f!==null&&sp(t,f,null)}else{let f=n.preOrderHooks;f!==null&&ap(t,f,0,null),k0(t,0)}if(s||pW(t),aR(t,0),n.contentQueries!==null&&ZO(n,t),!o)if(d){let f=n.contentCheckHooks;f!==null&&sp(t,f)}else{let f=n.contentHooks;f!==null&&ap(t,f,1),k0(t,1)}A5(n,t);let u=n.components;u!==null&&cR(t,u,0);let h=n.viewQuery;if(h!==null&&pw(2,h,i),!o)if(d){let f=n.viewCheckHooks;f!==null&&sp(t,f)}else{let f=n.viewHooks;f!==null&&ap(t,f,2),k0(t,2)}if(n.firstUpdatePass===!0&&(n.firstUpdatePass=!1),t[op]){for(let f of t[op])f();t[op]=null}o||(t[We]&=-73)}catch(d){throw o||Kp(t),d}finally{c!==null&&(gm(c,l),a&&lW(c)),pC()}}function aR(n,t){for(let e=fO(n);e!==null;e=mO(e))for(let i=ln;i-1&&(Tu(t,i),fp(e,i))}this._attachedToViewContainer=!1}sg(this._lView[Ze],this._lView)}onDestroy(t){LA(this._lView,t)}markForCheck(){FC(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[We]&=-129}reattach(){G0(this._lView),this._lView[We]|=128}detectChanges(){this._lView[We]|=1024,sR(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ee(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Y0(this._lView),e=this._lView[tl];e!==null&&!t&&SC(e,this._lView),RO(this._lView[Ze],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new ee(902,!1);this._appRef=t;let e=Y0(this._lView),i=this._lView[tl];i!==null&&!e&&PO(i,this._lView),G0(this._lView)}},ct=(()=>{class n{static{this.__NG_ELEMENT_ID__=vW}}return n})(),_W=ct,bW=class extends _W{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,e){return this.createEmbeddedViewImpl(t,e)}createEmbeddedViewImpl(t,e,i){let r=$u(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:e,dehydratedView:i});return new al(r)}};function vW(){return hg(Ni(),Le())}function hg(n,t){return n.type&4?new bW(t,n,jc(n,t)):null}var r0e=new RegExp(`^(\\d+)*(${j8}|${V8})*(.*)`);var yW=()=>null;function Fc(n,t){return yW(n,t)}var ll=class{},fg=new I("",{providedIn:"root",factory:()=>!1});var dR=new I(""),NC=new I(""),_w=class{},Ip=class{};function wW(n){let t=Error(`No component factory found for ${On(n)}.`);return t[CW]=n,t}var CW="ngComponent";var bw=class{resolveComponentFactory(t){throw wW(t)}},Rn=class{static{this.NULL=new bw}},Ks=class{},vn=(()=>{class n{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>DW()}}return n})();function DW(){let n=Le(),t=Ni(),e=Xs(t.index,n);return(Ys(e)?e:n)[ii]}var xW=(()=>{class n{static{this.\u0275prov=T({token:n,providedIn:"root",factory:()=>null})}}return n})();function Mp(n,t,e){let i=e?n.styles:null,r=e?n.classes:null,o=0;if(t!==null)for(let s=0;s0&&$O(n,e,o.join(" "))}}function AW(n,t,e){let i=n.projection=[];for(let r=0;r{class n{static{this.__NG_ELEMENT_ID__=RW}}return n})();function RW(){let n=Ni();return hR(n,Le())}var PW=ht,uR=class extends PW{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return jc(this._hostTNode,this._hostLView)}get injector(){return new Ja(this._hostTNode,this._hostLView)}get parentInjector(){let t=gC(this._hostTNode,this._hostLView);if(ZA(t)){let e=vp(t,this._hostLView),i=bp(t),r=e[Ze].data[i+8];return new Ja(r,e)}else return new Ja(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let e=F1(this._lContainer);return e!==null&&e[t]||null}get length(){return this._lContainer.length-ln}createEmbeddedView(t,e,i){let r,o;typeof i=="number"?r=i:i!=null&&(r=i.index,o=i.injector);let s=Fc(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(e||{},o,s);return this.insertImpl(a,r,Pc(this._hostTNode,s)),a}createComponent(t,e,i,r,o){let s=t&&!N4(t),a;if(s)a=e;else{let m=e||{};a=m.index,i=m.injector,r=m.projectableNodes,o=m.environmentInjector||m.ngModuleRef}let l=s?t:new cl(ns(t)),c=i||this.parentInjector;if(!o&&l.ngModule==null){let g=(s?c:this.parentInjector).get(Pi,null);g&&(o=g)}let d=ns(l.componentType??{}),u=Fc(this._lContainer,d?.id??null),h=u?.firstChild??null,f=l.create(c,r,h,o);return this.insertImpl(f.hostView,a,Pc(this._hostTNode,u)),f}insert(t,e){return this.insertImpl(t,e,!0)}insertImpl(t,e,i){let r=t._lView;if(H4(r)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let l=r[cn],c=new uR(l,l[Fn],l[cn]);c.detach(c.indexOf(t))}}let o=this._adjustIndex(e),s=this._lContainer;return zu(s,r,o,i),t.attachToViewContainerRef(),uA(A0(s),o,t),t}move(t,e){return this.insert(t,e)}indexOf(t){let e=F1(this._lContainer);return e!==null?e.indexOf(t):-1}remove(t){let e=this._adjustIndex(t,-1),i=Tu(this._lContainer,e);i&&(fp(A0(this._lContainer),e),sg(i[Ze],i))}detach(t){let e=this._adjustIndex(t,-1),i=Tu(this._lContainer,e);return i&&fp(A0(this._lContainer),e)!=null?new al(i):null}_adjustIndex(t,e=0){return t??this.length+e}};function F1(n){return n[gp]}function A0(n){return n[gp]||(n[gp]=[])}function hR(n,t){let e,i=t[n.index];return as(i)?e=i:(e=KO(i,t,null,n),t[n.index]=e,ug(t,e)),NW(e,t,n,i),new uR(e,n,t)}function FW(n,t){let e=n[ii],i=e.createComment(""),r=wr(t,n),o=LO(e,r);return kp(e,o,i,D5(e,r),!1),i}var NW=jW,LW=()=>!1;function VW(n,t,e){return LW(n,t,e)}function jW(n,t,e,i){if(n[il])return;let r;e.type&8?r=Do(i):r=FW(t,e),n[il]=r}var yw=class n{constructor(t){this.queryList=t,this.matches=null}clone(){return new n(this.queryList)}setDirty(){this.queryList.setDirty()}},ww=class n{constructor(t=[]){this.queries=t}createEmbeddedView(t){let e=t.queries;if(e!==null){let i=t.contentQueries!==null?t.contentQueries[0]:e.length,r=[];for(let o=0;o0)i.push(s[a/2]);else{let c=o[a+1],d=t[-l];for(let u=ln;ut.trim())}function _R(n,t,e){n.queries===null&&(n.queries=new Cw),n.queries.track(new Dw(t,e))}function WW(n,t){let e=n.contentQueries||(n.contentQueries=[]),i=e.length?e[e.length-1]:-1;t!==i&&e.push(n.queries.length-1,t)}function VC(n,t){return n.queries.getByIndex(t)}function bR(n,t){let e=n[Ze],i=VC(e,t);return i.crossesNgTemplate?xw(e,n,t,[]):fR(e,n,i,t)}var N1=new Set;function Wr(n){N1.has(n)||(N1.add(n),performance?.mark?.("mark_feature_usage",{detail:{feature:n}}))}function mg(n){return typeof n=="function"&&n[Tn]!==void 0}function di(n,t){Wr("NgSignals");let e=CT(n),i=e[Tn];return t?.equal&&(i.equal=t.equal),e.set=r=>bu(i,r),e.update=r=>DT(i,r),e.asReadonly=vR.bind(e),e}function vR(){let n=this[Tn];if(n.readonlyFn===void 0){let t=()=>this();t[Tn]=n,n.readonlyFn=t}return n.readonlyFn}function yR(n){return mg(n)&&typeof n.set=="function"}function jC(n,t){let e,i=r0(()=>{e._dirtyCounter();let r=qW(e,n);if(t&&r===void 0)throw new ee(-951,!1);return r});return e=i[Tn],e._dirtyCounter=di(0),e._flatValue=void 0,i}function wR(){return jC(!0,!1)}function CR(){return jC(!0,!0)}function YW(){return jC(!1,!1)}function DR(n,t){let e=n[Tn];e._lView=Le(),e._queryIndex=t,e._queryList=LC(e._lView,t),e._queryList.onDirty(()=>e._dirtyCounter.update(i=>i+1))}function qW(n,t){let e=n._lView,i=n._queryIndex;if(e===void 0||i===void 0||e[We]&4)return t?void 0:gn;let r=LC(e,i),o=bR(e,i);return r.reset(o,dO),t?r.first:r._changesDetected||n._flatValue===void 0?n._flatValue=r.toArray():n._flatValue}function L1(n,t){return wR()}function GW(n,t){return CR()}var pg=(L1.required=GW,L1);function V1(n,t){return wR()}function QW(n,t){return CR()}var xR=(V1.required=QW,V1);function SR(n,t){return YW()}function kR(n){let t=Object.create(eA),e=new Sp;t.value=n;function i(){return gu(t),j1(t.value),t.value}return i[Tn]=t,i.asReadonly=vR.bind(i),i.set=r=>{t.equal(t.value,r)||(bu(t,r),e.emit(r))},i.update=r=>{j1(t.value),i.set(r(t.value))},i.subscribe=e.subscribe.bind(e),i.destroyRef=e.destroyRef,i}function j1(n){if(n===jp)throw new ee(952,!1)}function B1(n){return kR(n)}function KW(){return kR(jp)}var ER=(B1.required=KW,B1);function ZW(n){return Object.getPrototypeOf(n.prototype).constructor}function ne(n){let t=ZW(n.type),e=!0,i=[n];for(;t;){let r;if(os(n))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new ee(903,!1);r=t.\u0275dir}if(r){if(e){i.push(r);let s=n;s.inputs=tp(n.inputs),s.inputTransforms=tp(n.inputTransforms),s.declaredInputs=tp(n.declaredInputs),s.outputs=tp(n.outputs);let a=r.hostBindings;a&&iY(n,a);let l=r.viewQuery,c=r.contentQueries;if(l&&eY(n,l),c&&tY(n,c),XW(n,r),j3(n.outputs,r.outputs),os(r)&&r.data.animation){let d=n.data;d.animation=(d.animation||[]).concat(r.data.animation)}}let o=r.features;if(o)for(let s=0;s=0;i--){let r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Eu(r.hostAttrs,e=Eu(e,r.hostAttrs))}}function tp(n){return n===is?{}:n===gn?[]:n}function eY(n,t){let e=n.viewQuery;e?n.viewQuery=(i,r)=>{t(i,r),e(i,r)}:n.viewQuery=t}function tY(n,t){let e=n.contentQueries;e?n.contentQueries=(i,r,o)=>{t(i,r,o),e(i,r,o)}:n.contentQueries=t}function iY(n,t){let e=n.hostBindings;e?n.hostBindings=(i,r)=>{t(i,r),e(i,r)}:n.hostBindings=t}function IR(n){let t=e=>{let i=Array.isArray(n);e.hostDirectives===null?(e.findHostDirectiveDefs=MR,e.hostDirectives=i?n.map(Sw):[n]):i?e.hostDirectives.unshift(...n.map(Sw)):e.hostDirectives.unshift(n)};return t.ngInherit=!0,t}function MR(n,t,e){if(n.hostDirectives!==null)for(let i of n.hostDirectives)if(typeof i=="function"){let r=i();for(let o of r)$1(Sw(o),t,e)}else $1(i,t,e)}function $1(n,t,e){let i=iC(n.directive);nY(i.declaredInputs,n.inputs),MR(i,t,e),e.set(i,n),t.push(i)}function Sw(n){return typeof n=="function"?{directive:Wi(n),inputs:is,outputs:is}:{directive:Wi(n.directive),inputs:z1(n.inputs),outputs:z1(n.outputs)}}function z1(n){if(n===void 0||n.length===0)return is;let t={};for(let e=0;ee()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Ew=class extends Au{constructor(t){super(),this.moduleType=t}create(t){return new kw(this.moduleType,t,[])}};var Op=class extends Zs{constructor(t){super(),this.componentFactoryResolver=new Tp(this),this.instance=null;let e=new Iu([...t.providers,{provide:Zs,useValue:this},{provide:Rn,useValue:this.componentFactoryResolver}],t.parent||Wp(),t.debugName,new Set(["environment"]));this.injector=e,t.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function gg(n,t,e=null){return new Op({providers:n,parent:t,debugName:e,runEnvironmentInitializers:!0}).injector}function TR(n){return BC(n)?Array.isArray(n)||!(n instanceof Map)&&Symbol.iterator in n:!1}function rY(n,t){if(Array.isArray(n))for(let e=0;e{class n{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=T({token:n,providedIn:"root",factory:()=>new n})}}return n})(),Iw=class n{constructor(){this.ngZone=C(X),this.scheduler=C(ll),this.errorHandler=C(_n,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[Us.EarlyRead,Us.Write,Us.MixedReadWrite,Us.Read]}execute(){this.executing=!0;for(let t of n.PHASES)for(let e of this.sequences)if(!(e.erroredOrDestroyed||!e.hooks[t]))try{e.pipelinedValue=this.ngZone.runOutsideAngular(()=>e.hooks[t](e.pipelinedValue))}catch(i){e.erroredOrDestroyed=!0,this.errorHandler?.handleError(i)}this.executing=!1;for(let t of this.sequences)t.afterRun(),t.once&&(this.sequences.delete(t),t.destroy());for(let t of this.deferredRegistrations)this.sequences.add(t);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(t){this.executing?this.deferredRegistrations.add(t):(this.sequences.add(t),this.scheduler.notify(6))}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}static{this.\u0275prov=T({token:n,providedIn:"root",factory:()=>new n})}},Mw=class{constructor(t,e,i,r){this.impl=t,this.hooks=e,this.once=i,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};function Uu(n,t){!t?.injector&&rC(Uu);let e=t?.injector??C(Oe);return AO(e)?(Wr("NgAfterRender"),RR(n,e,t,!1)):PR}function jt(n,t){!t?.injector&&rC(jt);let e=t?.injector??C(Oe);return AO(e)?(Wr("NgAfterNextRender"),RR(n,e,t,!0)):PR}function uY(n,t){if(n instanceof Function){let e=[void 0,void 0,void 0,void 0];return e[t]=n,e}else return[n.earlyRead,n.write,n.mixedReadWrite,n.read]}function RR(n,t,e,i){let r=t.get(OR);r.impl??=t.get(Iw);let o=e?.phase??Us.MixedReadWrite,s=e?.manualCleanup!==!0?t.get(Lu):null,a=new Mw(r.impl,uY(n,o),i,s);return r.impl.register(a),a}var PR={destroy(){}};function re(n,t,e,i){let r=Le(),o=Js();if(Pn(r,o,t)){let s=Kt(),a=Nu();X5(a,r,n,t,e,i)}return re}function FR(n,t,e,i){return Pn(n,Js(),e)?t+yo(e)+i:bn}function hY(n,t,e,i,r,o){let s=HA(),a=Ou(n,s,e,r);return Zp(2),a?t+yo(e)+i+yo(r)+o:bn}function fY(n,t,e,i,r,o,s,a){let l=HA(),c=AR(n,l,e,r,s);return Zp(3),c?t+yo(e)+i+yo(r)+o+yo(s)+a:bn}function ip(n,t){return n<<17|t<<2}function dl(n){return n>>17&32767}function mY(n){return(n&2)==2}function pY(n,t){return n&131071|t<<17}function Tw(n){return n|2}function Nc(n){return(n&131068)>>2}function O0(n,t){return n&-131069|t<<2}function gY(n){return(n&1)===1}function Aw(n){return n|1}function _Y(n,t,e,i,r,o){let s=o?t.classBindings:t.styleBindings,a=dl(s),l=Nc(s);n[i]=e;let c=!1,d;if(Array.isArray(e)){let u=e;d=u[1],(d===null||Fu(u,d)>0)&&(c=!0)}else d=e;if(r)if(l!==0){let h=dl(n[a+1]);n[i+1]=ip(h,a),h!==0&&(n[h+1]=O0(n[h+1],i)),n[a+1]=pY(n[a+1],i)}else n[i+1]=ip(a,0),a!==0&&(n[a+1]=O0(n[a+1],i)),a=i;else n[i+1]=ip(l,0),a===0?a=i:n[l+1]=O0(n[l+1],i),l=i;c&&(n[i+1]=Tw(n[i+1])),H1(n,d,i,!0),H1(n,d,i,!1),bY(t,d,n,i,o),s=ip(a,l),o?t.classBindings=s:t.styleBindings=s}function bY(n,t,e,i,r){let o=r?n.residualClasses:n.residualStyles;o!=null&&typeof t=="string"&&Fu(o,t)>=0&&(e[i+1]=Aw(e[i+1]))}function H1(n,t,e,i){let r=n[e+1],o=t===null,s=i?dl(r):Nc(r),a=!1;for(;s!==0&&(a===!1||o);){let l=n[s],c=n[s+1];vY(l,t)&&(a=!0,n[s+1]=i?Aw(c):Tw(c)),s=i?dl(c):Nc(c)}a&&(n[e+1]=i?Tw(r):Aw(r))}function vY(n,t){return n===null||t==null||(Array.isArray(n)?n[1]:n)===t?!0:Array.isArray(n)&&typeof t=="string"?Fu(n,t)>=0:!1}var zr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function yY(n){return n.substring(zr.key,zr.keyEnd)}function wY(n){return CY(n),NR(n,LR(n,0,zr.textEnd))}function NR(n,t){let e=zr.textEnd;return e===t?-1:(t=zr.keyEnd=DY(n,zr.key=t,e),LR(n,t,e))}function CY(n){zr.key=0,zr.keyEnd=0,zr.value=0,zr.valueEnd=0,zr.textEnd=n.length}function LR(n,t,e){for(;t32;)t++;return t}function q(n,t,e){let i=Le(),r=Js();if(Pn(i,r,t)){let o=Kt(),s=Nu();dg(o,s,i,n,t,i[ii],e,!1)}return q}function Ow(n,t,e,i,r){let o=t.inputs,s=r?"class":"style";OC(n,e,o[s],s,i)}function wt(n,t,e){return jR(n,t,e,!1),wt}function Q(n,t){return jR(n,t,null,!0),Q}function ui(n){BR(MY,VR,n,!0)}function VR(n,t){for(let e=wY(t);e>=0;e=NR(t,e))zp(n,yY(t),!0)}function jR(n,t,e,i){let r=Le(),o=Kt(),s=Zp(2);if(o.firstUpdatePass&&zR(o,n,s,i),t!==bn&&Pn(r,s,t)){let a=o.data[Eo()];HR(o,a,r,r[ii],n,r[s+1]=AY(t,e),i,s)}}function BR(n,t,e,i){let r=Kt(),o=Zp(2);r.firstUpdatePass&&zR(r,null,o,i);let s=Le();if(e!==bn&&Pn(s,o,e)){let a=r.data[Eo()];if(UR(a,i)&&!$R(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;l!==null&&(e=V0(l,e||"")),Ow(r,a,s,e,i)}else TY(r,a,s,s[ii],s[o+1],s[o+1]=IY(n,t,e),i,o)}}function $R(n,t){return t>=n.expandoStartIndex}function zR(n,t,e,i){let r=n.data;if(r[e+1]===null){let o=r[Eo()],s=$R(n,e);UR(o,i)&&t===null&&!s&&(t=!1),t=xY(r,o,t,i),_Y(r,o,t,e,s,i)}}function xY(n,t,e,i){let r=hC(n),o=i?t.residualClasses:t.residualStyles;if(r===null)(i?t.classBindings:t.styleBindings)===0&&(e=R0(null,n,t,e,i),e=Ru(e,t.attrs,i),o=null);else{let s=t.directiveStylingLast;if(s===-1||n[s]!==r)if(e=R0(r,n,t,e,i),o===null){let l=SY(n,t,i);l!==void 0&&Array.isArray(l)&&(l=R0(null,n,t,l[1],i),l=Ru(l,t.attrs,i),kY(n,t,i,l))}else o=EY(n,t,i)}return o!==void 0&&(i?t.residualClasses=o:t.residualStyles=o),e}function SY(n,t,e){let i=e?t.classBindings:t.styleBindings;if(Nc(i)!==0)return n[dl(i)]}function kY(n,t,e,i){let r=e?t.classBindings:t.styleBindings;n[dl(r)]=i}function EY(n,t,e){let i,r=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0;){let l=n[r],c=Array.isArray(l),d=c?l[1]:l,u=d===null,h=e[r+1];h===bn&&(h=u?gn:void 0);let f=u?x0(h,i):d===i?h:void 0;if(c&&!Pp(f)&&(f=x0(l,i)),Pp(f)&&(a=f,s))return a;let m=n[r+1];r=s?dl(m):Nc(m)}if(t!==null){let l=o?t.residualClasses:t.residualStyles;l!=null&&(a=x0(l,i))}return a}function Pp(n){return n!==void 0}function AY(n,t){return n==null||n===""||(typeof t=="string"?n=n+t:typeof n=="object"&&(n=On(Cr(n)))),n}function UR(n,t){return(n.flags&(t?8:16))!==0}function WR(n,t,e){let i=Le(),r=FR(i,n,t,e);BR(zp,VR,r,!0)}var Rw=class{destroy(t){}updateValue(t,e){}swap(t,e){let i=Math.min(t,e),r=Math.max(t,e),o=this.detach(r);if(r-i>1){let s=this.detach(i);this.attach(i,o),this.attach(r,s)}else this.attach(i,o)}move(t,e){this.attach(e,this.detach(t))}};function P0(n,t,e,i,r){return n===e&&Object.is(t,i)?1:Object.is(r(n,t),r(e,i))?-1:0}function OY(n,t,e){let i,r,o=0,s=n.length-1,a=void 0;if(Array.isArray(t)){let l=t.length-1;for(;o<=s&&o<=l;){let c=n.at(o),d=t[o],u=P0(o,c,o,d,e);if(u!==0){u<0&&n.updateValue(o,d),o++;continue}let h=n.at(s),f=t[l],m=P0(s,h,l,f,e);if(m!==0){m<0&&n.updateValue(s,f),s--,l--;continue}let g=e(o,c),_=e(s,h),v=e(o,d);if(Object.is(v,_)){let x=e(l,f);Object.is(x,g)?(n.swap(o,s),n.updateValue(s,f),l--,s--):n.move(s,o),n.updateValue(o,d),o++;continue}if(i??=new Fp,r??=Y1(n,o,s,e),Pw(n,i,o,v))n.updateValue(o,d),o++,s++;else if(r.has(v))i.set(g,n.detach(o)),s--;else{let x=n.create(o,t[o]);n.attach(o,x),o++,s++}}for(;o<=l;)W1(n,i,e,o,t[o]),o++}else if(t!=null){let l=t[Symbol.iterator](),c=l.next();for(;!c.done&&o<=s;){let d=n.at(o),u=c.value,h=P0(o,d,o,u,e);if(h!==0)h<0&&n.updateValue(o,u),o++,c=l.next();else{i??=new Fp,r??=Y1(n,o,s,e);let f=e(o,u);if(Pw(n,i,o,f))n.updateValue(o,u),o++,s++,c=l.next();else if(!r.has(f))n.attach(o,n.create(o,u)),o++,s++,c=l.next();else{let m=e(o,d);i.set(m,n.detach(o)),s--}}}for(;!c.done;)W1(n,i,e,n.length,c.value),c=l.next()}for(;o<=s;)n.destroy(n.detach(s--));i?.forEach(l=>{n.destroy(l)})}function Pw(n,t,e,i){return t!==void 0&&t.has(i)?(n.attach(e,t.get(i)),t.delete(i),!0):!1}function W1(n,t,e,i,r){if(Pw(n,t,i,e(i,r)))n.updateValue(i,r);else{let o=n.create(i,r);n.attach(i,o)}}function Y1(n,t,e,i){let r=new Set;for(let o=t;o<=e;o++)r.add(i(o,n.at(o)));return r}var Fp=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let e=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(e)?(this.kvMap.set(t,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,e){if(this.kvMap.has(t)){let i=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(i);)i=r.get(i);r.set(i,e)}else this.kvMap.set(t,e)}forEach(t){for(let[e,i]of this.kvMap)if(t(i,e),this._vMap!==void 0){let r=this._vMap;for(;r.has(i);)i=r.get(i),t(i,e)}}};function Y(n,t){Wr("NgControlFlow");let e=Le(),i=Js(),r=e[i]!==bn?e[i]:-1,o=r!==-1?Np(e,Fi+r):void 0,s=0;if(Pn(e,i,n)){let a=ot(null);try{if(o!==void 0&&nR(o,s),n!==-1){let l=Fi+n,c=Np(e,l),d=Vw(e[Ze],l),u=Fc(c,d.tView.ssrId),h=$u(e,d,t,{dehydratedView:u});zu(c,h,s,Pc(d,u))}}finally{ot(a)}}else if(o!==void 0){let a=iR(o,s);a!==void 0&&(a[an]=t)}}var Fw=class{constructor(t,e,i){this.lContainer=t,this.$implicit=e,this.$index=i}get $count(){return this.lContainer.length-ln}};function Kn(n,t){return t}var Nw=class{constructor(t,e,i){this.hasEmptyBlock=t,this.trackByFn=e,this.liveCollection=i}};function qi(n,t,e,i,r,o,s,a,l,c,d,u,h){Wr("NgControlFlow");let f=Le(),m=Kt(),g=l!==void 0,_=Le(),v=a?s.bind(_[Qn][an]):s,x=new Nw(g,v);_[Fi+n]=x,Rp(f,m,n+1,t,e,i,r,Gs(m.consts,o)),g&&Rp(f,m,n+2,l,c,d,u,Gs(m.consts,h))}var Lw=class extends Rw{constructor(t,e,i){super(),this.lContainer=t,this.hostLView=e,this.templateTNode=i,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-ln}at(t){return this.getLView(t)[an].$implicit}attach(t,e){let i=e[Ac];this.needsIndexUpdate||=t!==this.length,zu(this.lContainer,e,t,Pc(this.templateTNode,i))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,RY(this.lContainer,t)}create(t,e){let i=Fc(this.lContainer,this.templateTNode.tView.ssrId),r=$u(this.hostLView,this.templateTNode,new Fw(this.lContainer,e,t),{dehydratedView:i});return this.operationsCounter?.recordCreate(),r}destroy(t){sg(t[Ze],t),this.operationsCounter?.recordDestroy()}updateValue(t,e){this.getLView(t)[an].$implicit=e}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t(eg(!0),OO(i,r,s8()));function LY(n,t,e,i,r){let o=t.consts,s=Gs(o,i),a=Bc(t,n,8,"ng-container",s);s!==null&&Mp(a,s,!0);let l=Gs(o,r);return AC(t,e,a,l),t.queries!==null&&t.queries.elementStart(t,a),a}function _g(n,t,e){let i=Le(),r=Kt(),o=n+Fi,s=r.firstCreatePass?LY(o,r,i,t,e):r.data[o];ul(s,!0);let a=VY(r,i,s,n);return i[o]=a,Jp()&&ag(r,i,a,s),Qs(a,i),Gp(s)&&(IC(r,i,s),EC(r,s,i)),e!=null&&MC(i,s),_g}function bg(){let n=Ni(),t=Kt();return dC()?uC():(n=n.parent,ul(n,!1)),t.firstCreatePass&&(tg(t,n),sC(n)&&t.queries.elementEnd(n)),bg}function Qi(n,t,e){return _g(n,t,e),bg(),Qi}var VY=(n,t,e,i)=>(eg(!0),p5(t[ii],""));function ye(){return Le()}function Dr(n,t,e){let i=Le(),r=Js();if(Pn(i,r,t)){let o=Kt(),s=Nu();dg(o,s,i,n,t,i[ii],e,!0)}return Dr}function gl(n,t,e){let i=Le(),r=Js();if(Pn(i,r,t)){let o=Kt(),s=Nu(),a=hC(o.data),l=eR(a,s,i);dg(o,s,i,n,t,l,e,!0)}return gl}var Xa=void 0;function jY(n){let t=n,e=Math.floor(Math.abs(n)),i=n.toString().replace(/^[^.]*\.?/,"").length;return e===1&&i===0?1:5}var BY=["en",[["a","p"],["AM","PM"],Xa],[["AM","PM"],Xa,Xa],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Xa,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Xa,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Xa,"{1} 'at' {0}",Xa],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",jY],F0={};function Zn(n){let t=$Y(n),e=q1(t);if(e)return e;let i=t.split("-")[0];if(e=q1(i),e)return e;if(i==="en")return BY;throw new ee(701,!1)}function q1(n){return n in F0||(F0[n]=ts.ng&&ts.ng.common&&ts.ng.common.locales&&ts.ng.common.locales[n]),F0[n]}var si=function(n){return n[n.LocaleId=0]="LocaleId",n[n.DayPeriodsFormat=1]="DayPeriodsFormat",n[n.DayPeriodsStandalone=2]="DayPeriodsStandalone",n[n.DaysFormat=3]="DaysFormat",n[n.DaysStandalone=4]="DaysStandalone",n[n.MonthsFormat=5]="MonthsFormat",n[n.MonthsStandalone=6]="MonthsStandalone",n[n.Eras=7]="Eras",n[n.FirstDayOfWeek=8]="FirstDayOfWeek",n[n.WeekendRange=9]="WeekendRange",n[n.DateFormat=10]="DateFormat",n[n.TimeFormat=11]="TimeFormat",n[n.DateTimeFormat=12]="DateTimeFormat",n[n.NumberSymbols=13]="NumberSymbols",n[n.NumberFormats=14]="NumberFormats",n[n.CurrencyCode=15]="CurrencyCode",n[n.CurrencySymbol=16]="CurrencySymbol",n[n.CurrencyName=17]="CurrencyName",n[n.Currencies=18]="Currencies",n[n.Directionality=19]="Directionality",n[n.PluralCase=20]="PluralCase",n[n.ExtraData=21]="ExtraData",n}(si||{});function $Y(n){return n.toLowerCase().replace(/_/g,"-")}var Lp="en-US";var zY=Lp;function HY(n){typeof n=="string"&&(zY=n.toLowerCase().replace(/_/g,"-"))}var UY=(n,t,e)=>{};function F(n,t,e,i){let r=Le(),o=Kt(),s=Ni();return $C(o,r,r[ii],s,n,t,i),F}function _l(n,t){let e=Ni(),i=Le(),r=Kt(),o=hC(r.data),s=eR(o,e,i);return $C(r,i,s,e,n,t),_l}function WY(n,t,e,i){let r=n.cleanup;if(r!=null)for(let o=0;ol?a[l]:null}typeof s=="string"&&(o+=2)}return null}function $C(n,t,e,i,r,o,s){let a=Gp(i),c=n.firstCreatePass&&JO(n),d=t[an],u=XO(t),h=!0;if(i.type&3||s){let g=wr(i,t),_=s?s(g):g,v=u.length,x=s?V=>s(Do(V[i.index])):i.index,R=null;if(!s&&a&&(R=WY(n,t,r,i.index)),R!==null){let V=R.__ngLastListenerFn__||R;V.__ngNextListenerFn__=o,R.__ngLastListenerFn__=o,h=!1}else{o=Q1(i,t,d,o),UY(g,r,o);let V=e.listen(_,r,o);u.push(o,V),c&&c.push(r,x,v,v+1)}}else o=Q1(i,t,d,o);let f=i.outputs,m;if(h&&f!==null&&(m=f[r])){let g=m.length;if(g)for(let _=0;_-1?Xs(n.index,t):t;FC(s,5);let a=G1(t,e,i,o),l=r.__ngNextListenerFn__;for(;l;)a=G1(t,e,l,o)&&a,l=l.__ngNextListenerFn__;return a}}function S(n=1){return r8(n)}function YY(n,t){let e=null,i=p4(n);for(let r=0;r=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}function Zt(n){let t=X4();return lC(t,Fi+n)}function z(n,t=""){let e=Le(),i=Kt(),r=n+Fi,o=i.firstCreatePass?Bc(i,r,1,t,null):i.data[r],s=QY(i,e,o,t,n);e[r]=s,Jp()&&ag(i,e,s,o),ul(o,!1)}var QY=(n,t,e,i,r)=>(eg(!0),f5(t[ii],i));function ft(n){return qe("",n,""),ft}function qe(n,t,e){let i=Le(),r=FR(i,n,t,e);return r!==bn&&RC(i,Eo(),r),qe}function KY(n,t,e,i,r){let o=Le(),s=hY(o,n,t,e,i,r);return s!==bn&&RC(o,Eo(),s),KY}function ZY(n,t,e,i,r,o,s){let a=Le(),l=fY(a,n,t,e,i,r,o,s);return l!==bn&&RC(a,Eo(),l),ZY}function Wu(n,t,e){yR(t)&&(t=t());let i=Le(),r=Js();if(Pn(i,r,t)){let o=Kt(),s=Nu();dg(o,s,i,n,t,i[ii],e,!1)}return Wu}function wg(n,t){let e=yR(n);return e&&n.set(t),e}function Yu(n,t){let e=Le(),i=Kt(),r=Ni();return $C(i,e,e[ii],r,n,t),Yu}function XY(n,t,e){let i=Kt();if(i.firstCreatePass){let r=os(n);jw(e,i.data,i.blueprint,r,!0),jw(t,i.data,i.blueprint,r,!1)}}function jw(n,t,e,i,r){if(n=Wi(n),Array.isArray(n))for(let o=0;o>20;if(Tc(n)||!n.multi){let f=new ol(c,r,p),m=L0(l,t,r?d:d+h,u);m===-1?(X0(wp(a,s),o,l),N0(o,n,t.length),t.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),e.push(f),s.push(f)):(e[m]=f,s[m]=f)}else{let f=L0(l,t,d+h,u),m=L0(l,t,d,d+h),g=f>=0&&e[f],_=m>=0&&e[m];if(r&&!_||!r&&!g){X0(wp(a,s),o,l);let v=tq(r?eq:JY,e.length,r,i,c);!r&&_&&(e[m].providerFactory=v),N0(o,n,t.length,0),t.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),e.push(v),s.push(v)}else{let v=YR(e[r?m:f],c,!r&&i);N0(o,n,f>-1?f:m,v)}!r&&i&&_&&e[m].componentProviders++}}}function N0(n,t,e,i){let r=Tc(t),o=M4(t);if(r||o){let l=(o?Wi(t.useClass):t).prototype.ngOnDestroy;if(l){let c=n.destroyHooks||(n.destroyHooks=[]);if(!r&&t.multi){let d=c.indexOf(e);d===-1?c.push(e,[i,l]):c[d+1].push(i,l)}else c.push(e,l)}}}function YR(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function L0(n,t,e,i){for(let r=e;r{e.providersResolver=(i,r)=>XY(i,r?r(n):n,t)}}var iq=(()=>{class n{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let i=DA(!1,e.type),r=i.length>0?gg([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,r)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=T({token:n,providedIn:"environment",factory:()=>new n(D(Pi))})}}return n})();function O(n){Wr("NgStandalone"),n.getStandaloneInjector=t=>t.get(iq).getOrCreateStandaloneInjector(n)}function qR(n,t,e){let i=hl()+n,r=Le();return r[i]===bn?Hu(r,i,e?t.call(e):t()):oY(r,i)}function GR(n,t,e,i){return KR(Le(),hl(),n,t,e,i)}function QR(n,t,e,i,r){return ZR(Le(),hl(),n,t,e,i,r)}function s0e(n,t,e,i,r,o){return nq(Le(),hl(),n,t,e,i,r,o)}function a0e(n,t,e,i,r,o,s){return rq(Le(),hl(),n,t,e,i,r,o,s)}function Cg(n,t){let e=n[t];return e===bn?void 0:e}function KR(n,t,e,i,r,o){let s=t+e;return Pn(n,s,r)?Hu(n,s+1,o?i.call(o,r):i(r)):Cg(n,s+1)}function ZR(n,t,e,i,r,o,s){let a=t+e;return Ou(n,a,r,o)?Hu(n,a+2,s?i.call(s,r,o):i(r,o)):Cg(n,a+2)}function nq(n,t,e,i,r,o,s,a){let l=t+e;return AR(n,l,r,o,s)?Hu(n,l+3,a?i.call(a,r,o,s):i(r,o,s)):Cg(n,l+3)}function rq(n,t,e,i,r,o,s,a,l){let c=t+e;return sY(n,c,r,o,s,a)?Hu(n,c+4,l?i.call(l,r,o,s,a):i(r,o,s,a)):Cg(n,c+4)}function Wt(n,t){let e=Kt(),i,r=n+Fi;e.firstCreatePass?(i=oq(t,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks??=[]).push(r,i.onDestroy)):i=e.data[r];let o=i.factory||(i.factory=el(i.type,!0)),s,a=An(p);try{let l=yp(!1),c=o();return yp(l),GY(e,Le(),r,c),c}finally{An(a)}}function oq(n,t){if(t)for(let e=t.length-1;e>=0;e--){let i=t[e];if(n===i.name)return i}}function Xt(n,t,e){let i=n+Fi,r=Le(),o=lC(r,i);return JR(r,i)?KR(r,hl(),t,o.transform,e,o):o.transform(e)}function XR(n,t,e,i){let r=n+Fi,o=Le(),s=lC(o,r);return JR(o,r)?ZR(o,hl(),t,s.transform,e,i,s):s.transform(e,i)}function JR(n,t){return n[Ze].data[t].pure}function zC(n,t){return hg(n,t)}var Dg=(()=>{class n{log(e){console.log(e)}warn(e){console.warn(e)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"platform"})}}return n})();var eP=new I("");function ea(n){return!!n&&typeof n.then=="function"}function HC(n){return!!n&&typeof n.subscribe=="function"}var vl=new I(""),tP=(()=>{class n{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i}),this.appInits=C(vl,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let e=[];for(let r of this.appInits){let o=r();if(ea(o))e.push(o);else if(HC(o)){let s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});e.push(s)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),e.length===0&&i(),this.initialized=!0}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),xg=new I("");function sq(){wT(()=>{throw new ee(600,!1)})}function aq(n){return n.isBoundToModule}var lq=10;function cq(n,t,e){try{let i=e();return ea(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}var Xn=(()=>{class n{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=C(T8),this.afterRenderManager=C(OR),this.zonelessEnabled=C(fg),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new k,this.afterTick=new k,this.componentTypes=[],this.components=[],this.isStable=C(fl).hasPendingTasks.pipe(fe(e=>!e)),this._injector=C(Pi)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let e;return new Promise(i=>{e=this.isStable.subscribe({next:r=>{r&&i()}})}).finally(()=>{e.unsubscribe()})}get injector(){return this._injector}bootstrap(e,i){let r=e instanceof Ip;if(!this._injector.get(tP).done){let h=!r&&vA(e),f=!1;throw new ee(405,f)}let s;r?s=e:s=this._injector.get(Rn).resolveComponentFactory(e),this.componentTypes.push(s.componentType);let a=aq(s)?void 0:this._injector.get(Zs),l=i||s.selector,c=s.create(Oe.NULL,[],l,a),d=c.location.nativeElement,u=c.injector.get(eP,null);return u?.registerApplication(d),c.onDestroy(()=>{this.detachView(c.hostView),cp(this.components,c),u?.unregisterApplication(d)}),this._loadComponent(c),c}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new ee(101,!1);let e=ot(null);try{this._runningTick=!0,this.synchronize()}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1,ot(e),this.afterTick.next()}}synchronize(){let e=null;this._injector.destroyed||(e=this._injector.get(Ks,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let i=0;for(;this.dirtyFlags!==0&&i++Qp(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){let i=e;cp(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);let i=this._injector.get(xg,[]);[...this._bootstrapListeners,...i].forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>cp(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new ee(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function cp(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1)}function dq(n,t,e,i){if(!e&&!Qp(n))return;sR(n,t,e&&!i?0:1)}var $w=class{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}},Sg=(()=>{class n{compileModuleSync(e){return new Ew(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let i=this.compileModuleSync(e),r=yA(e),o=TO(r.declarations).reduce((s,a)=>{let l=ns(a);return l&&s.push(new cl(l)),s},[]);return new $w(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var uq=(()=>{class n{constructor(){this.zone=C(X),this.changeDetectionScheduler=C(ll),this.applicationRef=C(Xn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function hq({ngZoneFactory:n,ignoreChangesOutsideZone:t,scheduleInRootZone:e}){return n??=()=>new X(Pe(E({},fq()),{scheduleInRootZone:e})),[{provide:X,useFactory:n},{provide:Mc,multi:!0,useFactory:()=>{let i=C(uq,{optional:!0});return()=>i.initialize()}},{provide:Mc,multi:!0,useFactory:()=>{let i=C(mq);return()=>{i.initialize()}}},t===!0?{provide:dR,useValue:!0}:[],{provide:NC,useValue:e??aO}]}function fq(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:n?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:n?.runCoalescing??!1}}var mq=(()=>{class n{constructor(){this.subscription=new pe,this.initialized=!1,this.zone=C(X),this.pendingTasks=C(fl)}initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{X.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{X.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var iP=(()=>{class n{constructor(){this.appRef=C(Xn),this.taskService=C(fl),this.ngZone=C(X),this.zonelessEnabled=C(fg),this.disableScheduling=C(dR,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new pe,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Dp):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(C(NC,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof xp||!this.zoneIsDefined)}notify(e){if(!this.zonelessEnabled&&e===5)return;switch(e){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let i=this.useMicrotaskScheduler?v1:lO;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>i(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>i(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Dp+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(i){throw this.taskService.remove(e),i}finally{this.cleanup()}this.useMicrotaskScheduler=!0,v1(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function pq(){return Wr("NgZoneless"),Hp([{provide:ll,useExisting:iP},{provide:X,useClass:xp},{provide:fg,useValue:!0},{provide:NC,useValue:!1},[]])}function gq(){return typeof $localize<"u"&&$localize.locale||Lp}var ta=new I("",{providedIn:"root",factory:()=>C(ta,st.Optional|st.SkipSelf)||gq()});var zw=new I("");function np(n){return!n.moduleRef}function _q(n){let t=np(n)?n.r3Injector:n.moduleRef.injector,e=t.get(X);return e.run(()=>{np(n)?n.r3Injector.resolveInjectorInitializers():n.moduleRef.resolveInjectorInitializers();let i=t.get(_n,null),r;if(e.runOutsideAngular(()=>{r=e.onError.subscribe({next:o=>{i.handleError(o)}})}),np(n)){let o=()=>t.destroy(),s=n.platformInjector.get(zw);s.add(o),t.onDestroy(()=>{r.unsubscribe(),s.delete(o)})}else{let o=()=>n.moduleRef.destroy(),s=n.platformInjector.get(zw);s.add(o),n.moduleRef.onDestroy(()=>{cp(n.allPlatformModules,n.moduleRef),r.unsubscribe(),s.delete(o)})}return cq(i,e,()=>{let o=t.get(tP);return o.runInitializers(),o.donePromise.then(()=>{let s=t.get(ta,Lp);if(HY(s||Lp),np(n)){let a=t.get(Xn);return n.rootComponent!==void 0&&a.bootstrap(n.rootComponent),a}else return bq(n.moduleRef,n.allPlatformModules),n.moduleRef})})})}function bq(n,t){let e=n.injector.get(Xn);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>e.bootstrap(i));else if(n.instance.ngDoBootstrap)n.instance.ngDoBootstrap(e);else throw new ee(-403,!1);t.push(n)}var dp=null;function vq(n=[],t){return Oe.create({name:t,providers:[{provide:Up,useValue:"platform"},{provide:zw,useValue:new Set([()=>dp=null])},...n]})}function yq(n=[]){if(dp)return dp;let t=vq(n);return dp=t,sq(),wq(t),t}function wq(n){n.get(vC,null)?.forEach(e=>e())}var _e=(()=>{class n{static{this.__NG_ELEMENT_ID__=Cq}}return n})();function Cq(n){return Dq(Ni(),Le(),(n&16)===16)}function Dq(n,t,e){if(qp(n)&&!e){let i=Xs(n.index,t);return new al(i,i)}else if(n.type&175){let i=t[Qn];return new al(i,t)}return null}var Hw=class{constructor(){}supports(t){return TR(t)}create(t){return new Uw(t)}},xq=(n,t)=>t,Uw=class{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||xq}forEachItem(t){let e;for(e=this._itHead;e!==null;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){let s=!i||e&&e.currentIndex{s=this._trackByFn(r,a),e===null||!Object.is(e.trackById,s)?(e=this._mismatch(e,a,s,r),i=!0):(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;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,i,r){let o;return t===null?o=this._itTail:(o=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null),t!==null?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,r)):(t=this._linkedRecords===null?null:this._linkedRecords.get(i,r),t!==null?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,r)):t=this._addAfter(new Ww(e,i),o,r)),t}_verifyReinsertion(t,e,i,r){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null);return o!==null?t=this._reinsertAfter(o,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;t!==null;){let e=t._next;this._addToRemovals(this._unlink(t)),t=e}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let r=t._prevRemoved,o=t._nextRemoved;return r===null?this._removalsHead=o:r._nextRemoved=o,o===null?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){let r=e===null?this._itHead:e._next;return t._next=r,t._prev=e,r===null?this._itTail=t:r._prev=t,e===null?this._itHead=t:e._next=t,this._linkedRecords===null&&(this._linkedRecords=new Vp),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let e=t._prev,i=t._next;return e===null?this._itHead=i:e._next=i,i===null?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Vp),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(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=this._identityChangesTail._nextIdentityChange=t,t}},Ww=class{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}},Yw=class{constructor(){this._head=null,this._tail=null}add(t){this._head===null?(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 i;for(i=this._head;i!==null;i=i._nextDup)if((e===null||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){let e=t._prevDup,i=t._nextDup;return e===null?this._head=i:e._nextDup=i,i===null?this._tail=e:i._prevDup=e,this._head===null}},Vp=class{constructor(){this.map=new Map}put(t){let e=t.trackById,i=this.map.get(e);i||(i=new Yw,this.map.set(e,i)),i.add(t)}get(t,e){let i=t,r=this.map.get(i);return r?r.get(t,e):null}remove(t){let e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function K1(n,t,e){let i=n.previousIndex;if(i===null)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{let o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;i!==null;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){let i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._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)){let r=this._records.get(t);this._maybeAddToChanges(r,e);let o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}let i=new Qw(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;t!==null;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;t!=null;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){this._additionsHead===null?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){this._changesHead===null?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(i=>e(t[i],i))}},Qw=class{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 Z1(){return new ds([new Hw])}var ds=(()=>{class n{static{this.\u0275prov=T({token:n,providedIn:"root",factory:Z1})}constructor(e){this.factories=e}static create(e,i){if(i!=null){let r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||Z1()),deps:[[n,new Ur,new yr]]}}find(e){let i=this.factories.find(r=>r.supports(e));if(i!=null)return i;throw new ee(901,!1)}}return n})();function X1(){return new kg([new qw])}var kg=(()=>{class n{static{this.\u0275prov=T({token:n,providedIn:"root",factory:X1})}constructor(e){this.factories=e}static create(e,i){if(i){let r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||X1()),deps:[[n,new Ur,new yr]]}}find(e){let i=this.factories.find(r=>r.supports(e));if(i)return i;throw new ee(901,!1)}}return n})();function nP(n){try{let{rootComponent:t,appProviders:e,platformProviders:i}=n,r=yq(i),o=[hq({}),{provide:ll,useExisting:iP},...e||[]],s=new Op({providers:o,parent:r,debugName:"",runEnvironmentInitializers:!1});return _q({r3Injector:s.injector,platformInjector:r,rootComponent:t})}catch(t){return Promise.reject(t)}}function W(n){return typeof n=="boolean"?n:n!=null&&n!=="false"}function gi(n,t=NaN){return!isNaN(parseFloat(n))&&!isNaN(Number(n))?Number(n):t}function Jn(n,t){Wr("NgSignals");let e=r0(n);return t?.equal&&(e[Tn].equal=t.equal),e}function Nn(n){let t=ot(null);try{return n()}finally{ot(t)}}var Sq=new I("",{providedIn:"root",factory:()=>C(kq)}),kq=(()=>{class n{static{this.\u0275prov=T({token:n,providedIn:"root",factory:()=>new Kw})}}return n})(),Kw=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=C(fl),this.taskId=null}scheduleEffect(t){if(this.enqueue(t),this.taskId===null){let e=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(e),this.taskId=null})}}enqueue(t){let e=t.creationZone;this.queues.has(e)||this.queues.set(e,new Set);let i=this.queues.get(e);i.has(t)||(this.queuedEffectCount++,i.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,e]of this.queues)t===null?this.flushQueue(e):t.run(()=>this.flushQueue(e))}flushQueue(t){for(let e of t)t.delete(e),this.queuedEffectCount--,e.run()}},Zw=class{constructor(t,e,i,r,o,s){this.scheduler=t,this.effectFn=e,this.creationZone=i,this.injector=o,this.watcher=xT(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(e){this.injector.get(_n,null,{optional:!0})?.handleError(e)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function yl(n,t){Wr("NgSignals"),!t?.injector&&rC(yl);let e=t?.injector??C(Oe),i=t?.manualCleanup!==!0?e.get(Lu):null,r=new Zw(e.get(Sq),n,typeof Zone>"u"?null:Zone.current,i,e,t?.allowSignalWrites??!1),o=e.get(_e,null,{optional:!0});return!o||!(o._lView[We]&8)?r.watcher.notify():(o._lView[op]??=[]).push(r.watcher.notify),r}function rP(n,t){let e=ns(n),i=t.elementInjector||Wp();return new cl(e).create(i,t.projectableNodes,t.hostElement,t.environmentInjector)}function oP(n){let t=ns(n);if(!t)return null;let e=new cl(t);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}var hP=null;function ms(){return hP}function fP(n){hP??=n}var Fg=class{};var ce=new I(""),eD=(()=>{class n{historyGo(e){throw new Error("")}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=T({token:n,factory:()=>C(Eq),providedIn:"platform"})}}return n})(),mP=new I(""),Eq=(()=>{class n extends eD{constructor(){super(),this._doc=C(ce),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ms().getBaseHref(this._doc)}onPopState(e){let i=ms().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){let i=ms().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,r){this._history.pushState(e,i,r)}replaceState(e,i,r){this._history.replaceState(e,i,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=T({token:n,factory:()=>new n,providedIn:"platform"})}}return n})();function tD(n,t){if(n.length==0)return t;if(t.length==0)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,e==2?n+t.substring(1):e==1?n+t:n+"/"+t}function sP(n){let t=n.match(/#|\?|$/),e=t&&t.index||n.length,i=e-(n[e-1]==="/"?1:0);return n.slice(0,i)+n.slice(e)}function hs(n){return n&&n[0]!=="?"?"?"+n:n}var ps=(()=>{class n{historyGo(e){throw new Error("")}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=T({token:n,factory:()=>C(iD),providedIn:"root"})}}return n})(),gs=new I(""),iD=(()=>{class n extends ps{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??C(ce).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 tD(this._baseHref,e)}path(e=!1){let i=this._platformLocation.pathname+hs(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+hs(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+hs(o));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(i){return new(i||n)(D(eD),D(gs,8))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),pP=(()=>{class n extends ps{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],i!=null&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(e){let i=tD(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+hs(o));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+hs(o));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(i){return new(i||n)(D(eD),D(gs,8))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac})}}return n})(),Mo=(()=>{class n{constructor(e){this._subject=new P,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;let i=this._locationStrategy.getBaseHref();this._basePath=Tq(sP(aP(i))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+hs(i))}normalize(e){return n.stripTrailingSlash(Mq(this._basePath,aP(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+hs(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+hs(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}static{this.normalizeQueryParams=hs}static{this.joinWithSlash=tD}static{this.stripTrailingSlash=sP}static{this.\u0275fac=function(i){return new(i||n)(D(ps))}}static{this.\u0275prov=T({token:n,factory:()=>Iq(),providedIn:"root"})}}return n})();function Iq(){return new Mo(D(ps))}function Mq(n,t){if(!n||!t.startsWith(n))return t;let e=t.substring(n.length);return e===""||["/",";","?","#"].includes(e[0])?e:t}function aP(n){return n.replace(/\/index.html$/,"")}function Tq(n){if(new RegExp("^(https?:)?//").test(n)){let[,e]=n.split(/\/\/[^\/]+/);return e}return n}var nD=function(n){return n[n.Decimal=0]="Decimal",n[n.Percent=1]="Percent",n[n.Currency=2]="Currency",n[n.Scientific=3]="Scientific",n}(nD||{});var yn=function(n){return n[n.Format=0]="Format",n[n.Standalone=1]="Standalone",n}(yn||{}),Bt=function(n){return n[n.Narrow=0]="Narrow",n[n.Abbreviated=1]="Abbreviated",n[n.Wide=2]="Wide",n[n.Short=3]="Short",n}(Bt||{}),er=function(n){return n[n.Short=0]="Short",n[n.Medium=1]="Medium",n[n.Long=2]="Long",n[n.Full=3]="Full",n}(er||{}),Ki={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Aq(n){return Zn(n)[si.LocaleId]}function Oq(n,t,e){let i=Zn(n),r=[i[si.DayPeriodsFormat],i[si.DayPeriodsStandalone]],o=xr(r,t);return xr(o,e)}function Rq(n,t,e){let i=Zn(n),r=[i[si.DaysFormat],i[si.DaysStandalone]],o=xr(r,t);return xr(o,e)}function Pq(n,t,e){let i=Zn(n),r=[i[si.MonthsFormat],i[si.MonthsStandalone]],o=xr(r,t);return xr(o,e)}function Fq(n,t){let i=Zn(n)[si.Eras];return xr(i,t)}function Eg(n,t){let e=Zn(n);return xr(e[si.DateFormat],t)}function Ig(n,t){let e=Zn(n);return xr(e[si.TimeFormat],t)}function Mg(n,t){let i=Zn(n)[si.DateTimeFormat];return xr(i,t)}function qr(n,t){let e=Zn(n),i=e[si.NumberSymbols][t];if(typeof i>"u"){if(t===Ki.CurrencyDecimal)return e[si.NumberSymbols][Ki.Decimal];if(t===Ki.CurrencyGroup)return e[si.NumberSymbols][Ki.Group]}return i}function gP(n,t){return Zn(n)[si.NumberFormats][t]}function _P(n){if(!n[si.ExtraData])throw new Error(`Missing extra locale data for the locale "${n[si.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Nq(n){let t=Zn(n);return _P(t),(t[si.ExtraData][2]||[]).map(i=>typeof i=="string"?UC(i):[UC(i[0]),UC(i[1])])}function Lq(n,t,e){let i=Zn(n);_P(i);let r=[i[si.ExtraData][0],i[si.ExtraData][1]],o=xr(r,t)||[];return xr(o,e)||[]}function xr(n,t){for(let e=t;e>-1;e--)if(typeof n[e]<"u")return n[e];throw new Error("Locale data API: locale data undefined")}function UC(n){let[t,e]=n.split(":");return{hours:+t,minutes:+e}}var Vq=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Tg={},jq=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,fs=function(n){return n[n.Short=0]="Short",n[n.ShortGMT=1]="ShortGMT",n[n.Long=2]="Long",n[n.Extended=3]="Extended",n}(fs||{}),Mt=function(n){return n[n.FullYear=0]="FullYear",n[n.Month=1]="Month",n[n.Date=2]="Date",n[n.Hours=3]="Hours",n[n.Minutes=4]="Minutes",n[n.Seconds=5]="Seconds",n[n.FractionalSeconds=6]="FractionalSeconds",n[n.Day=7]="Day",n}(Mt||{}),It=function(n){return n[n.DayPeriods=0]="DayPeriods",n[n.Days=1]="Days",n[n.Months=2]="Months",n[n.Eras=3]="Eras",n}(It||{});function Bq(n,t,e,i){let r=Qq(n);t=us(e,t)||t;let s=[],a;for(;t;)if(a=jq.exec(t),a){s=s.concat(a.slice(1));let d=s.pop();if(!d)break;t=d}else{s.push(t);break}let l=r.getTimezoneOffset();i&&(l=vP(i,l),r=Gq(r,i,!0));let c="";return s.forEach(d=>{let u=Yq(d);c+=u?u(r,e,l):d==="''"?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Ng(n,t,e){let i=new Date(0);return i.setFullYear(n,t,e),i.setHours(0,0,0),i}function us(n,t){let e=Aq(n);if(Tg[e]??={},Tg[e][t])return Tg[e][t];let i="";switch(t){case"shortDate":i=Eg(n,er.Short);break;case"mediumDate":i=Eg(n,er.Medium);break;case"longDate":i=Eg(n,er.Long);break;case"fullDate":i=Eg(n,er.Full);break;case"shortTime":i=Ig(n,er.Short);break;case"mediumTime":i=Ig(n,er.Medium);break;case"longTime":i=Ig(n,er.Long);break;case"fullTime":i=Ig(n,er.Full);break;case"short":let r=us(n,"shortTime"),o=us(n,"shortDate");i=Ag(Mg(n,er.Short),[r,o]);break;case"medium":let s=us(n,"mediumTime"),a=us(n,"mediumDate");i=Ag(Mg(n,er.Medium),[s,a]);break;case"long":let l=us(n,"longTime"),c=us(n,"longDate");i=Ag(Mg(n,er.Long),[l,c]);break;case"full":let d=us(n,"fullTime"),u=us(n,"fullDate");i=Ag(Mg(n,er.Full),[d,u]);break}return i&&(Tg[e][t]=i),i}function Ag(n,t){return t&&(n=n.replace(/\{([^}]+)}/g,function(e,i){return t!=null&&i in t?t[i]:e})),n}function Yr(n,t,e="-",i,r){let o="";(n<0||r&&n<=0)&&(r?n=-n+1:(n=-n,o=e));let s=String(n);for(;s.length0||a>-e)&&(a+=e),n===Mt.Hours)a===0&&e===-12&&(a=12);else if(n===Mt.FractionalSeconds)return $q(a,t);let l=qr(s,Ki.MinusSign);return Yr(a,t,l,i,r)}}function zq(n,t){switch(n){case Mt.FullYear:return t.getFullYear();case Mt.Month:return t.getMonth();case Mt.Date:return t.getDate();case Mt.Hours:return t.getHours();case Mt.Minutes:return t.getMinutes();case Mt.Seconds:return t.getSeconds();case Mt.FractionalSeconds:return t.getMilliseconds();case Mt.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${n}".`)}}function Yt(n,t,e=yn.Format,i=!1){return function(r,o){return Hq(r,o,n,t,e,i)}}function Hq(n,t,e,i,r,o){switch(e){case It.Months:return Pq(t,r,i)[n.getMonth()];case It.Days:return Rq(t,r,i)[n.getDay()];case It.DayPeriods:let s=n.getHours(),a=n.getMinutes();if(o){let c=Nq(t),d=Lq(t,r,i),u=c.findIndex(h=>{if(Array.isArray(h)){let[f,m]=h,g=s>=f.hours&&a>=f.minutes,_=s0?Math.floor(r/60):Math.ceil(r/60);switch(n){case fs.Short:return(r>=0?"+":"")+Yr(s,2,o)+Yr(Math.abs(r%60),2,o);case fs.ShortGMT:return"GMT"+(r>=0?"+":"")+Yr(s,1,o);case fs.Long:return"GMT"+(r>=0?"+":"")+Yr(s,2,o)+":"+Yr(Math.abs(r%60),2,o);case fs.Extended:return i===0?"Z":(r>=0?"+":"")+Yr(s,2,o)+":"+Yr(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${n}"`)}}}var Uq=0,Pg=4;function Wq(n){let t=Ng(n,Uq,1).getDay();return Ng(n,0,1+(t<=Pg?Pg:Pg+7)-t)}function bP(n){let t=n.getDay(),e=t===0?-3:Pg-t;return Ng(n.getFullYear(),n.getMonth(),n.getDate()+e)}function WC(n,t=!1){return function(e,i){let r;if(t){let o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,s=e.getDate();r=1+Math.floor((s+o)/7)}else{let o=bP(e),s=Wq(o.getFullYear()),a=o.getTime()-s.getTime();r=1+Math.round(a/6048e5)}return Yr(r,n,qr(i,Ki.MinusSign))}}function Rg(n,t=!1){return function(e,i){let o=bP(e).getFullYear();return Yr(o,n,qr(i,Ki.MinusSign),t)}}var YC={};function Yq(n){if(YC[n])return YC[n];let t;switch(n){case"G":case"GG":case"GGG":t=Yt(It.Eras,Bt.Abbreviated);break;case"GGGG":t=Yt(It.Eras,Bt.Wide);break;case"GGGGG":t=Yt(It.Eras,Bt.Narrow);break;case"y":t=_i(Mt.FullYear,1,0,!1,!0);break;case"yy":t=_i(Mt.FullYear,2,0,!0,!0);break;case"yyy":t=_i(Mt.FullYear,3,0,!1,!0);break;case"yyyy":t=_i(Mt.FullYear,4,0,!1,!0);break;case"Y":t=Rg(1);break;case"YY":t=Rg(2,!0);break;case"YYY":t=Rg(3);break;case"YYYY":t=Rg(4);break;case"M":case"L":t=_i(Mt.Month,1,1);break;case"MM":case"LL":t=_i(Mt.Month,2,1);break;case"MMM":t=Yt(It.Months,Bt.Abbreviated);break;case"MMMM":t=Yt(It.Months,Bt.Wide);break;case"MMMMM":t=Yt(It.Months,Bt.Narrow);break;case"LLL":t=Yt(It.Months,Bt.Abbreviated,yn.Standalone);break;case"LLLL":t=Yt(It.Months,Bt.Wide,yn.Standalone);break;case"LLLLL":t=Yt(It.Months,Bt.Narrow,yn.Standalone);break;case"w":t=WC(1);break;case"ww":t=WC(2);break;case"W":t=WC(1,!0);break;case"d":t=_i(Mt.Date,1);break;case"dd":t=_i(Mt.Date,2);break;case"c":case"cc":t=_i(Mt.Day,1);break;case"ccc":t=Yt(It.Days,Bt.Abbreviated,yn.Standalone);break;case"cccc":t=Yt(It.Days,Bt.Wide,yn.Standalone);break;case"ccccc":t=Yt(It.Days,Bt.Narrow,yn.Standalone);break;case"cccccc":t=Yt(It.Days,Bt.Short,yn.Standalone);break;case"E":case"EE":case"EEE":t=Yt(It.Days,Bt.Abbreviated);break;case"EEEE":t=Yt(It.Days,Bt.Wide);break;case"EEEEE":t=Yt(It.Days,Bt.Narrow);break;case"EEEEEE":t=Yt(It.Days,Bt.Short);break;case"a":case"aa":case"aaa":t=Yt(It.DayPeriods,Bt.Abbreviated);break;case"aaaa":t=Yt(It.DayPeriods,Bt.Wide);break;case"aaaaa":t=Yt(It.DayPeriods,Bt.Narrow);break;case"b":case"bb":case"bbb":t=Yt(It.DayPeriods,Bt.Abbreviated,yn.Standalone,!0);break;case"bbbb":t=Yt(It.DayPeriods,Bt.Wide,yn.Standalone,!0);break;case"bbbbb":t=Yt(It.DayPeriods,Bt.Narrow,yn.Standalone,!0);break;case"B":case"BB":case"BBB":t=Yt(It.DayPeriods,Bt.Abbreviated,yn.Format,!0);break;case"BBBB":t=Yt(It.DayPeriods,Bt.Wide,yn.Format,!0);break;case"BBBBB":t=Yt(It.DayPeriods,Bt.Narrow,yn.Format,!0);break;case"h":t=_i(Mt.Hours,1,-12);break;case"hh":t=_i(Mt.Hours,2,-12);break;case"H":t=_i(Mt.Hours,1);break;case"HH":t=_i(Mt.Hours,2);break;case"m":t=_i(Mt.Minutes,1);break;case"mm":t=_i(Mt.Minutes,2);break;case"s":t=_i(Mt.Seconds,1);break;case"ss":t=_i(Mt.Seconds,2);break;case"S":t=_i(Mt.FractionalSeconds,1);break;case"SS":t=_i(Mt.FractionalSeconds,2);break;case"SSS":t=_i(Mt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Og(fs.Short);break;case"ZZZZZ":t=Og(fs.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Og(fs.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Og(fs.Long);break;default:return null}return YC[n]=t,t}function vP(n,t){n=n.replace(/:/g,"");let e=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return isNaN(e)?t:e}function qq(n,t){return n=new Date(n.getTime()),n.setMinutes(n.getMinutes()+t),n}function Gq(n,t,e){let i=e?-1:1,r=n.getTimezoneOffset(),o=vP(t,r);return qq(n,i*(o-r))}function Qq(n){if(lP(n))return n;if(typeof n=="number"&&!isNaN(n))return new Date(n);if(typeof n=="string"){if(n=n.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(n)){let[r,o=1,s=1]=n.split("-").map(a=>+a);return Ng(r,o-1,s)}let e=parseFloat(n);if(!isNaN(n-e))return new Date(e);let i;if(i=n.match(Vq))return Kq(i)}let t=new Date(n);if(!lP(t))throw new Error(`Unable to convert "${n}" into a date`);return t}function Kq(n){let t=new Date(0),e=0,i=0,r=n[8]?t.setUTCFullYear:t.setFullYear,o=n[8]?t.setUTCHours:t.setHours;n[9]&&(e=Number(n[9]+n[10]),i=Number(n[9]+n[11])),r.call(t,Number(n[1]),Number(n[2])-1,Number(n[3]));let s=Number(n[4]||0)-e,a=Number(n[5]||0)-i,l=Number(n[6]||0),c=Math.floor(parseFloat("0."+(n[7]||0))*1e3);return o.call(t,s,a,l,c),t}function lP(n){return n instanceof Date&&!isNaN(n.valueOf())}var Zq=/^(\d+)?\.((\d+)(-(\d+))?)?$/,cP=22,Lg=".",qu="0",Xq=";",Jq=",",qC="#";var e6="%";function yP(n,t,e,i,r,o,s=!1){let a="",l=!1;if(!isFinite(n))a=qr(e,Ki.Infinity);else{let c=r6(n);s&&(c=n6(c));let d=t.minInt,u=t.minFrac,h=t.maxFrac;if(o){let x=o.match(Zq);if(x===null)throw new Error(`${o} is not a valid digit info`);let R=x[1],V=x[3],j=x[5];R!=null&&(d=GC(R)),V!=null&&(u=GC(V)),j!=null?h=GC(j):V!=null&&u>h&&(h=u)}o6(c,u,h);let f=c.digits,m=c.integerLen,g=c.exponent,_=[];for(l=f.every(x=>!x);m0?_=f.splice(m,f.length):(_=f,f=[0]);let v=[];for(f.length>=t.lgSize&&v.unshift(f.splice(-t.lgSize,f.length).join(""));f.length>t.gSize;)v.unshift(f.splice(-t.gSize,f.length).join(""));f.length&&v.unshift(f.join("")),a=v.join(qr(e,i)),_.length&&(a+=qr(e,r)+_.join("")),g&&(a+=qr(e,Ki.Exponential)+"+"+g)}return n<0&&!l?a=t.negPre+a+t.negSuf:a=t.posPre+a+t.posSuf,a}function t6(n,t,e){let i=gP(t,nD.Percent),r=wP(i,qr(t,Ki.MinusSign));return yP(n,r,t,Ki.Group,Ki.Decimal,e,!0).replace(new RegExp(e6,"g"),qr(t,Ki.PercentSign))}function i6(n,t,e){let i=gP(t,nD.Decimal),r=wP(i,qr(t,Ki.MinusSign));return yP(n,r,t,Ki.Group,Ki.Decimal,e)}function wP(n,t="-"){let e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=n.split(Xq),r=i[0],o=i[1],s=r.indexOf(Lg)!==-1?r.split(Lg):[r.substring(0,r.lastIndexOf(qu)+1),r.substring(r.lastIndexOf(qu)+1)],a=s[0],l=s[1]||"";e.posPre=a.substring(0,a.indexOf(qC));for(let d=0;d-1&&(t=t.replace(Lg,"")),(o=t.search(/e/i))>0?(r<0&&(r=o),r+=+t.slice(o+1),t=t.substring(0,o)):r<0&&(r=t.length),o=0;t.charAt(o)===qu;o++);if(o===(a=t.length))i=[0],r=1;else{for(a--;t.charAt(a)===qu;)a--;for(r-=o,i=[],s=0;o<=a;o++,s++)i[s]=Number(t.charAt(o))}return r>cP&&(i=i.splice(0,cP-1),e=r-1,r=1),{digits:i,exponent:e,integerLen:r}}function o6(n,t,e){if(t>e)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${e}).`);let i=n.digits,r=i.length-n.integerLen,o=Math.min(Math.max(t,r),e),s=o+n.integerLen,a=i[s];if(s>0){i.splice(Math.max(n.integerLen,s));for(let u=s;u=5)if(s-1<0){for(let u=0;u>s;u--)i.unshift(0),n.integerLen++;i.unshift(1),n.integerLen++}else i[s-1]++;for(;r=c?m.pop():l=!1),h>=10?1:0},0);d&&(i.unshift(d),n.integerLen++)}function GC(n){let t=parseInt(n);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+n);return t}function CP(n,t){t=encodeURIComponent(t);for(let e of n.split(";")){let i=e.indexOf("="),[r,o]=i==-1?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(o)}return null}var QC=/\s+/,dP=[],$c=(()=>{class n{constructor(e,i){this._ngEl=e,this._renderer=i,this.initialClasses=dP,this.stateMap=new Map}set klass(e){this.initialClasses=e!=null?e.trim().split(QC):dP}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(QC):e}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let i of e)this._updateState(i,!0);else if(e!=null)for(let i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){let r=this.stateMap.get(e);r!==void 0?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){e=e.trim(),e.length>0&&e.split(QC).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static{this.\u0275fac=function(i){return new(i||n)(p(H),p(vn))}}static{this.\u0275dir=M({type:n,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return n})();var I0e=(()=>{class n{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){let[r,o]=e.split("."),s=r.indexOf("-")===-1?void 0:xo.DashCase;i!=null?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${i}${o}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,r,s)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}static{this.\u0275fac=function(i){return new(i||n)(p(H),p(kg),p(vn))}}static{this.\u0275dir=M({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}}return n})(),rD=(()=>{class n{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(this._shouldRecreateView(e)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,i,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,r):!1,get:(e,i,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,r)}})}static{this.\u0275fac=function(i){return new(i||n)(p(ht))}}static{this.\u0275dir=M({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[ze]})}}return n})();function ia(n,t){return new ee(2100,!1)}var KC=class{createSubscription(t,e){return Nn(()=>t.subscribe({next:e,error:i=>{throw i}}))}dispose(t){Nn(()=>t.unsubscribe())}},ZC=class{createSubscription(t,e){return t.then(e,i=>{throw i})}dispose(t){}},s6=new ZC,a6=new KC,tr=(()=>{class n{constructor(e){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(ea(e))return s6;if(HC(e))return a6;throw ia(n,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static{this.\u0275fac=function(i){return new(i||n)(p(_e,16))}}static{this.\u0275pipe=rt({name:"async",type:n,pure:!1,standalone:!0})}}return n})(),M0e=(()=>{class n{transform(e){if(e==null)return null;if(typeof e!="string")throw ia(n,e);return e.toLowerCase()}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275pipe=rt({name:"lowercase",type:n,pure:!0,standalone:!0})}}return n})(),l6=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g,T0e=(()=>{class n{transform(e){if(e==null)return null;if(typeof e!="string")throw ia(n,e);return e.replace(l6,i=>i[0].toUpperCase()+i.slice(1).toLowerCase())}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275pipe=rt({name:"titlecase",type:n,pure:!0,standalone:!0})}}return n})(),A0e=(()=>{class n{transform(e){if(e==null)return null;if(typeof e!="string")throw ia(n,e);return e.toUpperCase()}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275pipe=rt({name:"uppercase",type:n,pure:!0,standalone:!0})}}return n})(),c6="mediumDate",d6=new I(""),u6=new I(""),O0e=(()=>{class n{constructor(e,i,r){this.locale=e,this.defaultTimezone=i,this.defaultOptions=r}transform(e,i,r,o){if(e==null||e===""||e!==e)return null;try{let s=i??this.defaultOptions?.dateFormat??c6,a=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Bq(e,s,o||this.locale,a)}catch(s){throw ia(n,s.message)}}static{this.\u0275fac=function(i){return new(i||n)(p(ta,16),p(d6,24),p(u6,24))}}static{this.\u0275pipe=rt({name:"date",type:n,pure:!0,standalone:!0})}}return n})();function h6(n,t){return{key:n,value:t}}var R0e=(()=>{class n{constructor(e){this.differs=e,this.keyValues=[],this.compareFn=uP}transform(e,i=uP){if(!e||!(e instanceof Map)&&typeof e!="object")return null;this.differ??=this.differs.find(e).create();let r=this.differ.diff(e),o=i!==this.compareFn;return r&&(this.keyValues=[],r.forEachItem(s=>{this.keyValues.push(h6(s.key,s.currentValue))})),(r||o)&&(this.keyValues.sort(i),this.compareFn=i),this.keyValues}static{this.\u0275fac=function(i){return new(i||n)(p(kg,16))}}static{this.\u0275pipe=rt({name:"keyvalue",type:n,pure:!1,standalone:!0})}}return n})();function uP(n,t){let e=n.key,i=t.key;if(e===i)return 0;if(e===void 0)return 1;if(i===void 0)return-1;if(e===null)return 1;if(i===null)return-1;if(typeof e=="string"&&typeof i=="string")return e{class n{constructor(e){this._locale=e}transform(e,i,r){if(!xP(e))return null;r||=this._locale;try{let o=SP(e);return i6(o,r,i)}catch(o){throw ia(n,o.message)}}static{this.\u0275fac=function(i){return new(i||n)(p(ta,16))}}static{this.\u0275pipe=rt({name:"number",type:n,pure:!0,standalone:!0})}}return n})(),DP=(()=>{class n{constructor(e){this._locale=e}transform(e,i,r){if(!xP(e))return null;r||=this._locale;try{let o=SP(e);return t6(o,r,i)}catch(o){throw ia(n,o.message)}}static{this.\u0275fac=function(i){return new(i||n)(p(ta,16))}}static{this.\u0275pipe=rt({name:"percent",type:n,pure:!0,standalone:!0})}}return n})();function xP(n){return!(n==null||n===""||n!==n)}function SP(n){if(typeof n=="string"&&!isNaN(Number(n)-parseFloat(n)))return Number(n);if(typeof n!="number")throw new Error(`${n} is not a number`);return n}var F0e=(()=>{class n{transform(e,i,r){if(e==null)return null;if(!this.supports(e))throw ia(n,e);return e.slice(i,r)}supports(e){return typeof e=="string"||Array.isArray(e)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275pipe=rt({name:"slice",type:n,pure:!1,standalone:!0})}}return n})();var Li=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({})}}return n})(),oD="browser",f6="server";function sD(n){return n===oD}function aD(n){return n===f6}var kP=(()=>{class n{static{this.\u0275prov=T({token:n,providedIn:"root",factory:()=>sD(C(Io))?new XC(C(ce),window):new JC})}}return n})(),XC=class{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){Array.isArray(t)?this.offset=()=>t:this.offset=t}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(t){this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){let e=m6(this.document,t);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(t){this.window.history.scrollRestoration=t}scrollToElement(t){let e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}};function m6(n,t){let e=n.getElementById(t)||n.getElementsByName(t)[0];if(e)return e;if(typeof n.createTreeWalker=="function"&&n.body&&typeof n.body.attachShadow=="function"){let i=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT),r=i.currentNode;for(;r;){let o=r.shadowRoot;if(o){let s=o.getElementById(t)||o.querySelector(`[name="${t}"]`);if(s)return s}r=i.nextNode()}}return null}var JC=class{setOffset(t){}getScrollPosition(){return[0,0]}scrollToPosition(t){}scrollToAnchor(t){}setHistoryScrollRestoration(t){}},Vg=class{};var dD=class{};var zc=class n{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
`).forEach(e=>{let i=e.indexOf(":");if(i>0){let r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((e,i)=>{this.setHeaderEntries(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let 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 n?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){let e=new n;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof n?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){let e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if(typeof i=="string"&&(i=[i]),i.length===0)return;this.maybeSetNormalizedName(t.name,e);let r=(t.op==="a"?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":let o=t.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let s=this.headers.get(e);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}break}}setHeaderEntries(t,e){let i=(Array.isArray(e)?e:[e]).map(o=>o.toString()),r=t.toLowerCase();this.headers.set(r,i),this.maybeSetNormalizedName(t,r)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}};var uD=class{encodeKey(t){return EP(t)}encodeValue(t){return EP(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function p6(n,t){let e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[s,a]=o==-1?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,o)),t.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}var g6=/%(\d[a-f0-9])/gi,_6={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function EP(n){return encodeURIComponent(n).replace(g6,(t,e)=>_6[e]??t)}function Bg(n){return`${n}`}var na=class n{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new uD,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=p6(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{let i=t.fromObject[e],r=Array.isArray(i)?i.map(Bg):[Bg(i)];this.map.set(e,r)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let 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){let e=[];return Object.keys(t).forEach(i=>{let r=t[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(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=>{let e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let e=new n({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(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":let e=(t.op==="a"?this.map.get(t.param):void 0)||[];e.push(Bg(t.value)),this.map.set(t.param,e);break;case"d":if(t.value!==void 0){let i=this.map.get(t.param)||[],r=i.indexOf(Bg(t.value));r!==-1&&i.splice(r,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var hD=class{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 b6(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function IP(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function MP(n){return typeof Blob<"u"&&n instanceof Blob}function TP(n){return typeof FormData<"u"&&n instanceof FormData}function v6(n){return typeof URLSearchParams<"u"&&n instanceof URLSearchParams}var Gu=class n{constructor(t,e,i,r){this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase();let o;if(b6(this.method)||r?(this.body=i!==void 0?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new zc,this.context??=new hD,!this.params)this.params=new na,this.urlWithParams=e;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=e;else{let a=e.indexOf("?"),l=a===-1?"?":ah.set(f,t.setHeaders[f]),c)),t.setParams&&(d=Object.keys(t.setParams).reduce((h,f)=>h.set(f,t.setParams[f]),d)),new n(e,i,s,{params:d,headers:c,context:u,reportProgress:l,responseType:r,withCredentials:a,transferCache:o})}},AP=function(n){return n[n.Sent=0]="Sent",n[n.UploadProgress=1]="UploadProgress",n[n.ResponseHeader=2]="ResponseHeader",n[n.DownloadProgress=3]="DownloadProgress",n[n.Response=4]="Response",n[n.User=5]="User",n}(AP||{}),fD=class{constructor(t,e=200,i="OK"){this.headers=t.headers||new zc,this.status=t.status!==void 0?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}};var mD=class n extends fD{constructor(t={}){super(t),this.type=AP.Response,this.body=t.body!==void 0?t.body:null}clone(t={}){return new n({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}};function cD(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials,transferCache:n.transferCache}}var OP=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof Gu)o=e;else{let l;r.headers instanceof zc?l=r.headers:l=new zc(r.headers);let c;r.params&&(r.params instanceof na?c=r.params:c=new na({fromObject:r.params})),o=new Gu(e,i,r.body!==void 0?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}let s=oe(o).pipe(Xo(l=>this.handler.handle(l)));if(e instanceof Gu||r.observe==="events")return s;let a=s.pipe(Ae(l=>l instanceof mD));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(fe(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(fe(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(fe(l=>{if(l.body!==null&&typeof l.body!="string")throw new Error("Response is not a string.");return l.body}));case"json":default:return a.pipe(fe(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:new na().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,cD(r,i))}post(e,i,r={}){return this.request("POST",e,cD(r,i))}put(e,i,r={}){return this.request("PUT",e,cD(r,i))}static{this.\u0275fac=function(i){return new(i||n)(D(dD))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac})}}return n})();var _D=class extends Fg{constructor(){super(...arguments),this.supportsDOMEvents=!0}},bD=class n extends _D{static makeCurrent(){fP(new n)}onAndCancel(t,e,i){return t.addEventListener(e,i),()=>{t.removeEventListener(e,i)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.remove()}createElement(t,e){return e=e||this.getDefaultDocument(),e.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 e==="window"?window:e==="document"?t:e==="body"?t.body:null}getBaseHref(t){let e=w6();return e==null?null:C6(e)}resetBaseElement(){Qu=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return CP(document.cookie,t)}},Qu=null;function w6(){return Qu=Qu||document.querySelector("base"),Qu?Qu.getAttribute("href"):null}function C6(n){return new URL(n,document.baseURI).pathname}var D6=(()=>{class n{build(){return new XMLHttpRequest}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac})}}return n})(),vD=new I(""),FP=(()=>{class n{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(o=>o.supports(e)),!i)throw new ee(5101,!1);return this._eventNameToPlugin.set(e,i),i}static{this.\u0275fac=function(i){return new(i||n)(D(vD),D(X))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac})}}return n})(),$g=class{constructor(t){this._doc=t}},pD="ng-app-id",NP=(()=>{class n{constructor(e,i,r,o={}){this.doc=e,this.appId=i,this.nonce=r,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=aD(o),this.resetHostNodes()}addStyles(e){for(let i of e)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(e){for(let i of e)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let e=this.styleNodesInDOM;e&&(e.forEach(i=>i.remove()),e.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(let i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(let i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){let i=this.styleRef;i.get(e)?.elements?.forEach(r=>r.remove()),i.delete(e)}collectServerRenderedStyles(){let e=this.doc.head?.querySelectorAll(`style[${pD}="${this.appId}"]`);if(e?.length){let i=new Map;return e.forEach(r=>{r.textContent!=null&&i.set(r.textContent,r)}),i}return null}changeUsageCount(e,i){let r=this.styleRef;if(r.has(e)){let o=r.get(e);return o.usage+=i,o.usage}return r.set(e,{usage:i,elements:[]}),i}getStyleElement(e,i){let r=this.styleNodesInDOM,o=r?.get(i);if(o?.parentNode===e)return r.delete(i),o.removeAttribute(pD),o;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=i,this.platformIsServer&&s.setAttribute(pD,this.appId),e.appendChild(s),s}}addStyleToHost(e,i){let r=this.getStyleElement(e,i),o=this.styleRef,s=o.get(i)?.elements;s?s.push(r):o.set(i,{elements:[r],usage:1})}resetHostNodes(){let e=this.hostNodes;e.clear(),e.add(this.doc.head)}static{this.\u0275fac=function(i){return new(i||n)(D(ce),D(Vu),D(ju,8),D(Io))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac})}}return n})(),gD={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/Math/MathML"},wD=/%COMP%/g,LP="%COMP%",x6=`_nghost-${LP}`,S6=`_ngcontent-${LP}`,k6=!0,E6=new I("",{providedIn:"root",factory:()=>k6});function I6(n){return S6.replace(wD,n)}function M6(n){return x6.replace(wD,n)}function VP(n,t){return t.map(e=>e.replace(wD,n))}var zg=(()=>{class n{constructor(e,i,r,o,s,a,l,c=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=aD(a),this.defaultRenderer=new Ku(e,s,l,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===wo.ShadowDom&&(i=Pe(E({},i),{encapsulation:wo.Emulated}));let r=this.getOrCreateRenderer(e,i);return r instanceof Hg?r.applyToHost(e):r instanceof Zu&&r.applyStyles(),r}getOrCreateRenderer(e,i){let r=this.rendererByCompId,o=r.get(i.id);if(!o){let s=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,u=this.platformIsServer;switch(i.encapsulation){case wo.Emulated:o=new Hg(l,c,i,this.appId,d,s,a,u);break;case wo.ShadowDom:return new yD(l,c,e,i,s,a,this.nonce,u);default:o=new Zu(l,c,i,d,s,a,u);break}r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(i){return new(i||n)(D(FP),D(NP),D(Vu),D(E6),D(ce),D(Io),D(X),D(ju))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac})}}return n})(),Ku=class{constructor(t,e,i,r){this.eventManager=t,this.doc=e,this.ngZone=i,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,e){return e?this.doc.createElementNS(gD[e]||e,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,e){(RP(t)?t.content:t).appendChild(e)}insertBefore(t,e,i){t&&(RP(t)?t.content:t).insertBefore(e,i)}removeChild(t,e){e.remove()}selectRootElement(t,e){let i=typeof t=="string"?this.doc.querySelector(t):t;if(!i)throw new ee(-5104,!1);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,r){if(r){e=r+":"+e;let o=gD[r];o?t.setAttributeNS(o,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){let r=gD[i];r?t.removeAttributeNS(r,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,r){r&(xo.DashCase|xo.Important)?t.style.setProperty(e,i,r&xo.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&xo.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t!=null&&(t[e]=i)}setValue(t,e){t.nodeValue=e}listen(t,e,i){if(typeof t=="string"&&(t=ms().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${e}`);return this.eventManager.addEventListener(t,e,this.decoratePreventDefault(i))}decoratePreventDefault(t){return e=>{if(e==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(e)):t(e))===!1&&e.preventDefault()}}};function RP(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var yD=class extends Ku{constructor(t,e,i,r,o,s,a,l){super(t,o,s,l),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=VP(r.id,r.styles);for(let d of c){let 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,i){return super.insertBefore(this.nodeOrShadowRoot(t),e,i)}removeChild(t,e){return super.removeChild(null,e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Zu=class extends Ku{constructor(t,e,i,r,o,s,a,l){super(t,o,s,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r,this.styles=l?VP(l,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Hg=class extends Zu{constructor(t,e,i,r,o,s,a,l){let c=r+"-"+i.id;super(t,e,i,o,s,a,l,c),this.contentAttr=I6(c),this.hostAttr=M6(c)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,e){let i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}},T6=(()=>{class n extends $g{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}static{this.\u0275fac=function(i){return new(i||n)(D(ce))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac})}}return n})(),PP=["alt","control","meta","shift"],A6={"\b":"Backspace","	":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},O6={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},R6=(()=>{class n extends $g{constructor(e){super(e)}supports(e){return n.parseEventName(e)!=null}addEventListener(e,i,r){let o=n.parseEventName(i),s=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ms().onAndCancel(e,o.domEventName,s))}static parseEventName(e){let i=e.toLowerCase().split("."),r=i.shift();if(i.length===0||!(r==="keydown"||r==="keyup"))return null;let o=n._normalizeKey(i.pop()),s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),PP.forEach(c=>{let d=i.indexOf(c);d>-1&&(i.splice(d,1),s+=c+".")}),s+=o,i.length!=0||o.length===0)return null;let l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(e,i){let r=A6[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),PP.forEach(s=>{if(s!==r){let a=O6[s];a(e)&&(o+=s+".")}}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{n.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static{this.\u0275fac=function(i){return new(i||n)(D(ce))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac})}}return n})();function nwe(n,t){return nP(E({rootComponent:n},P6(t)))}function P6(n){return{appProviders:[...j6,...n?.providers??[]],platformProviders:V6}}function F6(){bD.makeCurrent()}function N6(){return new _n}function L6(){return gO(document),document}var V6=[{provide:Io,useValue:oD},{provide:vC,useValue:F6,multi:!0},{provide:ce,useFactory:L6,deps:[]}];var j6=[{provide:Up,useValue:"root"},{provide:_n,useFactory:N6,deps:[]},{provide:vD,useClass:T6,multi:!0,deps:[ce,X,Io]},{provide:vD,useClass:R6,multi:!0,deps:[ce]},zg,NP,FP,{provide:Ks,useExisting:zg},{provide:Vg,useClass:D6,deps:[]},[]];var Ug=(()=>{class n{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static{this.\u0275fac=function(i){return new(i||n)(D(ce))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var ra=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=T({token:n,factory:function(i){let r=null;return i?r=new(i||n):r=D(B6),r},providedIn:"root"})}}return n})(),B6=(()=>{class n extends ra{constructor(e){super(),this._doc=e}sanitize(e,i){if(i==null)return null;switch(e){case pi.NONE:return i;case pi.HTML:return ls(i,"HTML")?Cr(i):wC(this._doc,String(i)).toString();case pi.STYLE:return ls(i,"Style")?Cr(i):i;case pi.SCRIPT:if(ls(i,"Script"))return Cr(i);throw new ee(5200,!1);case pi.URL:return ls(i,"URL")?Cr(i):ng(String(i));case pi.RESOURCE_URL:if(ls(i,"ResourceURL"))return Cr(i);throw new ee(5201,!1);default:throw new ee(5202,!1)}}bypassSecurityTrustHtml(e){return yO(e)}bypassSecurityTrustStyle(e){return wO(e)}bypassSecurityTrustScript(e){return CO(e)}bypassSecurityTrustUrl(e){return DO(e)}bypassSecurityTrustResourceUrl(e){return xO(e)}static{this.\u0275fac=function(i){return new(i||n)(D(ce))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var it="primary",fh=Symbol("RouteTitle"),ED=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){let e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function Gc(n){return new ED(n)}function $6(n,t,e){let i=e.path.split("/");if(i.length>n.length||e.pathMatch==="full"&&(t.hasChildren()||i.lengthi[o]===r)}else return n===t}function KP(n){return n.length>0?n[n.length-1]:null}function sa(n){return js(n)?n:ea(n)?Lt(Promise.resolve(n)):oe(n)}var H6={exact:XP,subset:JP},ZP={exact:U6,subset:W6,ignored:()=>!0};function jP(n,t,e){return H6[e.paths](n.root,t.root,e.matrixParams)&&ZP[e.queryParams](n.queryParams,t.queryParams)&&!(e.fragment==="exact"&&n.fragment!==t.fragment)}function U6(n,t){return To(n,t)}function XP(n,t,e){if(!Cl(n.segments,t.segments)||!qg(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(let i in t.children)if(!n.children[i]||!XP(n.children[i],t.children[i],e))return!1;return!0}function W6(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>QP(n[e],t[e]))}function JP(n,t,e){return eF(n,t,t.segments,e)}function eF(n,t,e,i){if(n.segments.length>e.length){let r=n.segments.slice(0,e.length);return!(!Cl(r,e)||t.hasChildren()||!qg(r,e,i))}else if(n.segments.length===e.length){if(!Cl(n.segments,e)||!qg(n.segments,e,i))return!1;for(let r in t.children)if(!n.children[r]||!JP(n.children[r],t.children[r],i))return!1;return!0}else{let r=e.slice(0,n.segments.length),o=e.slice(n.segments.length);return!Cl(n.segments,r)||!qg(n.segments,r,i)||!n.children[it]?!1:eF(n.children[it],t,o,i)}}function qg(n,t,e){return t.every((i,r)=>ZP[e](n[r].parameters,i.parameters))}var Ao=class{constructor(t=new At([],{}),e={},i=null){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=Gc(this.queryParams),this._queryParamMap}toString(){return G6.serialize(this)}},At=class{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Gg(this)}},wl=class{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap??=Gc(this.parameters),this._parameterMap}toString(){return iF(this)}};function Y6(n,t){return Cl(n,t)&&n.every((e,i)=>To(e.parameters,t[i].parameters))}function Cl(n,t){return n.length!==t.length?!1:n.every((e,i)=>e.path===t[i].path)}function q6(n,t){let e=[];return Object.entries(n.children).forEach(([i,r])=>{i===it&&(e=e.concat(t(r,i)))}),Object.entries(n.children).forEach(([i,r])=>{i!==it&&(e=e.concat(t(r,i)))}),e}var mh=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=T({token:n,factory:()=>new Qc,providedIn:"root"})}}return n})(),Qc=class{parse(t){let e=new TD(t);return new Ao(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){let e=`/${Xu(t.root,!0)}`,i=Z6(t.queryParams),r=typeof t.fragment=="string"?`#${Q6(t.fragment)}`:"";return`${e}${i}${r}`}},G6=new Qc;function Gg(n){return n.segments.map(t=>iF(t)).join("/")}function Xu(n,t){if(!n.hasChildren())return Gg(n);if(t){let e=n.children[it]?Xu(n.children[it],!1):"",i=[];return Object.entries(n.children).forEach(([r,o])=>{r!==it&&i.push(`${r}:${Xu(o,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}else{let e=q6(n,(i,r)=>r===it?[Xu(n.children[it],!1)]:[`${r}:${Xu(i,!1)}`]);return Object.keys(n.children).length===1&&n.children[it]!=null?`${Gg(n)}/${e[0]}`:`${Gg(n)}/(${e.join("//")})`}}function tF(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Wg(n){return tF(n).replace(/%3B/gi,";")}function Q6(n){return encodeURI(n)}function MD(n){return tF(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Qg(n){return decodeURIComponent(n)}function BP(n){return Qg(n.replace(/\+/g,"%20"))}function iF(n){return`${MD(n.path)}${K6(n.parameters)}`}function K6(n){return Object.entries(n).map(([t,e])=>`;${MD(t)}=${MD(e)}`).join("")}function Z6(n){let t=Object.entries(n).map(([e,i])=>Array.isArray(i)?i.map(r=>`${Wg(e)}=${Wg(r)}`).join("&"):`${Wg(e)}=${Wg(i)}`).filter(e=>e);return t.length?`?${t.join("&")}`:""}var X6=/^[^\/()?;#]+/;function DD(n){let t=n.match(X6);return t?t[0]:""}var J6=/^[^\/()?;=#]+/;function eG(n){let t=n.match(J6);return t?t[0]:""}var tG=/^[^=?&#]+/;function iG(n){let t=n.match(tG);return t?t[0]:""}var nG=/^[^&#]+/;function rG(n){let t=n.match(nG);return t?t[0]:""}var TD=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new At([],{}):new At([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i[it]=new At(t,e)),i}parseSegment(){let t=DD(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new ee(4009,!1);return this.capture(t),new wl(Qg(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let e=eG(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let r=DD(this.remaining);r&&(i=r,this.capture(i))}t[Qg(e)]=Qg(i)}parseQueryParam(t){let e=iG(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let s=rG(this.remaining);s&&(i=s,this.capture(i))}let r=BP(e),o=BP(i);if(t.hasOwnProperty(r)){let s=t[r];Array.isArray(s)||(s=[s],t[r]=s),s.push(o)}else t[r]=o}parseParens(t){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=DD(this.remaining),r=this.remaining[i.length];if(r!=="/"&&r!==")"&&r!==";")throw new ee(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=it);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[it]:new At([],s),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new ee(4011,!1)}};function nF(n){return n.segments.length>0?new At([],{[it]:n}):n}function rF(n){let t={};for(let[i,r]of Object.entries(n.children)){let o=rF(r);if(i===it&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))t[s]=a;else(o.segments.length>0||o.hasChildren())&&(t[i]=o)}let e=new At(n.segments,t);return oG(e)}function oG(n){if(n.numberOfChildren===1&&n.children[it]){let t=n.children[it];return new At(n.segments.concat(t.segments),t.children)}return n}function Dl(n){return n instanceof Ao}function sG(n,t,e=null,i=null){let r=oF(n);return sF(r,t,e,i)}function oF(n){let t;function e(o){let s={};for(let l of o.children){let c=e(l);s[l.outlet]=c}let a=new At(o.url,s);return o===n&&(t=a),a}let i=e(n.root),r=nF(i);return t??r}function sF(n,t,e,i){let r=n;for(;r.parent;)r=r.parent;if(t.length===0)return xD(r,r,r,e,i);let o=aG(t);if(o.toRoot())return xD(r,r,new At([],{}),e,i);let s=lG(o,r,n),a=s.processChildren?th(s.segmentGroup,s.index,o.commands):lF(s.segmentGroup,s.index,o.commands);return xD(r,s.segmentGroup,a,e,i)}function Kg(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function rh(n){return typeof n=="object"&&n!=null&&n.outlets}function xD(n,t,e,i,r){let o={};i&&Object.entries(i).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`});let s;n===t?s=e:s=aF(n,t,e);let a=nF(rF(s));return new Ao(a,o,r)}function aF(n,t,e){let i={};return Object.entries(n.children).forEach(([r,o])=>{o===t?i[r]=e:i[r]=aF(o,t,e)}),new At(n.segments,i)}var Zg=class{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Kg(i[0]))throw new ee(4003,!1);let r=i.find(rh);if(r&&r!==KP(i))throw new ee(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function aG(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new Zg(!0,0,n);let t=0,e=!1,i=n.reduce((r,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([l,c])=>{a[l]=typeof c=="string"?c.split("/"):c}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:s===0?(o.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?e=!0:a===".."?t++:a!=""&&r.push(a))}),r):[...r,o]},[]);return new Zg(e,t,i)}var Wc=class{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}};function lG(n,t,e){if(n.isAbsolute)return new Wc(t,!0,0);if(!e)return new Wc(t,!1,NaN);if(e.parent===null)return new Wc(e,!0,0);let i=Kg(n.commands[0])?0:1,r=e.segments.length-1+i;return cG(e,r,n.numberOfDoubleDots)}function cG(n,t,e){let i=n,r=t,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new ee(4005,!1);r=i.segments.length}return new Wc(i,!1,r-o)}function dG(n){return rh(n[0])?n[0].outlets:{[it]:n}}function lF(n,t,e){if(n??=new At([],{}),n.segments.length===0&&n.hasChildren())return th(n,t,e);let i=uG(n,t,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndexo!==it)&&n.children[it]&&n.numberOfChildren===1&&n.children[it].segments.length===0){let o=th(n.children[it],t,e);return new At(n.segments,o.children)}return Object.entries(i).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(r[o]=lF(n.children[o],t,s))}),Object.entries(n.children).forEach(([o,s])=>{i[o]===void 0&&(r[o]=s)}),new At(n.segments,r)}}function uG(n,t,e){let i=0,r=t,o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;let s=n.segments[r],a=e[i];if(rh(a))break;let l=`${a}`,c=i0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!zP(l,c,s))return o;i+=2}else{if(!zP(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}function AD(n,t,e){let i=n.segments.slice(0,t),r=0;for(;r{typeof i=="string"&&(i=[i]),i!==null&&(t[e]=AD(new At([],{}),0,i))}),t}function $P(n){let t={};return Object.entries(n).forEach(([e,i])=>t[e]=`${i}`),t}function zP(n,t,e){return n==e.path&&To(t,e.parameters)}var ih="imperative",Vi=function(n){return n[n.NavigationStart=0]="NavigationStart",n[n.NavigationEnd=1]="NavigationEnd",n[n.NavigationCancel=2]="NavigationCancel",n[n.NavigationError=3]="NavigationError",n[n.RoutesRecognized=4]="RoutesRecognized",n[n.ResolveStart=5]="ResolveStart",n[n.ResolveEnd=6]="ResolveEnd",n[n.GuardsCheckStart=7]="GuardsCheckStart",n[n.GuardsCheckEnd=8]="GuardsCheckEnd",n[n.RouteConfigLoadStart=9]="RouteConfigLoadStart",n[n.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",n[n.ChildActivationStart=11]="ChildActivationStart",n[n.ChildActivationEnd=12]="ChildActivationEnd",n[n.ActivationStart=13]="ActivationStart",n[n.ActivationEnd=14]="ActivationEnd",n[n.Scroll=15]="Scroll",n[n.NavigationSkipped=16]="NavigationSkipped",n}(Vi||{}),Sr=class{constructor(t,e){this.id=t,this.url=e}},Kc=class extends Sr{constructor(t,e,i="imperative",r=null){super(t,e),this.type=Vi.NavigationStart,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},rr=class extends Sr{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i,this.type=Vi.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},nr=function(n){return n[n.Redirect=0]="Redirect",n[n.SupersededByNewNavigation=1]="SupersededByNewNavigation",n[n.NoDataFromResolver=2]="NoDataFromResolver",n[n.GuardRejected=3]="GuardRejected",n}(nr||{}),Xg=function(n){return n[n.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",n[n.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",n}(Xg||{}),_s=class extends Sr{constructor(t,e,i,r){super(t,e),this.reason=i,this.code=r,this.type=Vi.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},oa=class extends Sr{constructor(t,e,i,r){super(t,e),this.reason=i,this.code=r,this.type=Vi.NavigationSkipped}},oh=class extends Sr{constructor(t,e,i,r){super(t,e),this.error=i,this.target=r,this.type=Vi.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Jg=class extends Sr{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=Vi.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},OD=class extends Sr{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=Vi.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},RD=class extends Sr{constructor(t,e,i,r,o){super(t,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=Vi.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},PD=class extends Sr{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=Vi.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},FD=class extends Sr{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=Vi.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ND=class{constructor(t){this.route=t,this.type=Vi.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},LD=class{constructor(t){this.route=t,this.type=Vi.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},VD=class{constructor(t){this.snapshot=t,this.type=Vi.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},jD=class{constructor(t){this.snapshot=t,this.type=Vi.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},BD=class{constructor(t){this.snapshot=t,this.type=Vi.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},$D=class{constructor(t){this.snapshot=t,this.type=Vi.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},e_=class{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i,this.type=Vi.Scroll}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}},sh=class{},Zc=class{constructor(t,e){this.url=t,this.navigationBehaviorOptions=e}};function fG(n,t){return n.providers&&!n._injector&&(n._injector=gg(n.providers,t,`Route: ${n.path}`)),n._injector??t}function Gr(n){return n.outlet||it}function mG(n,t){let e=n.filter(i=>Gr(i)===t);return e.push(...n.filter(i=>Gr(i)!==t)),e}function ph(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let t=n.parent;t;t=t.parent){let e=t.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var zD=class{get injector(){return ph(this.route?.snapshot)??this.rootInjector}set injector(t){}constructor(t){this.rootInjector=t,this.outlet=null,this.route=null,this.children=new gh(this.rootInjector),this.attachRef=null}},gh=(()=>{class n{constructor(e){this.rootInjector=e,this.contexts=new Map}onChildOutletCreated(e,i){let r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){let i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new zD(this.rootInjector),this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static{this.\u0275fac=function(i){return new(i||n)(D(Pi))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),t_=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){let e=HD(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){let e=HD(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){let e=UD(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return UD(t,this._root).map(e=>e.value)}};function HD(n,t){if(n===t.value)return t;for(let e of t.children){let i=HD(n,e);if(i)return i}return null}function UD(n,t){if(n===t.value)return[t];for(let e of t.children){let i=UD(n,e);if(i.length)return i.unshift(t),i}return[]}var ir=class{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}};function Uc(n){let t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}var i_=class extends t_{constructor(t,e){super(t),this.snapshot=e,JD(this,t)}toString(){return this.snapshot.toString()}};function cF(n){let t=pG(n),e=new Ee([new wl("",{})]),i=new Ee({}),r=new Ee({}),o=new Ee({}),s=new Ee(""),a=new Oo(e,i,o,s,r,it,n,t.root);return a.snapshot=t.root,new i_(new ir(a,[]),t)}function pG(n){let t={},e={},i={},r="",o=new Yc([],t,i,r,e,it,n,null,{});return new r_("",new ir(o,[]))}var Oo=class{constructor(t,e,i,r,o,s,a,l){this.urlSubject=t,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(fe(c=>c[fh]))??oe(void 0),this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(fe(t=>Gc(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(fe(t=>Gc(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function n_(n,t,e="emptyOnly"){let i,{routeConfig:r}=n;return t!==null&&(e==="always"||r?.path===""||!t.component&&!t.routeConfig?.loadComponent)?i={params:E(E({},t.params),n.params),data:E(E({},t.data),n.data),resolve:E(E(E(E({},n.data),t.data),r?.data),n._resolvedData)}:i={params:E({},n.params),data:E({},n.data),resolve:E(E({},n.data),n._resolvedData??{})},r&&uF(r)&&(i.resolve[fh]=r.title),i}var Yc=class{get title(){return this.data?.[fh]}constructor(t,e,i,r,o,s,a,l,c){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Gc(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Gc(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(i=>i.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${e}')`}},r_=class extends t_{constructor(t,e){super(e),this.url=t,JD(this,e)}toString(){return dF(this._root)}};function JD(n,t){t.value._routerState=n,t.children.forEach(e=>JD(n,e))}function dF(n){let t=n.children.length>0?` { ${n.children.map(dF).join(", ")} } `:"";return`${n.value}${t}`}function SD(n){if(n.snapshot){let t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,To(t.queryParams,e.queryParams)||n.queryParamsSubject.next(e.queryParams),t.fragment!==e.fragment&&n.fragmentSubject.next(e.fragment),To(t.params,e.params)||n.paramsSubject.next(e.params),z6(t.url,e.url)||n.urlSubject.next(e.url),To(t.data,e.data)||n.dataSubject.next(e.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function WD(n,t){let e=To(n.params,t.params)&&Y6(n.url,t.url),i=!n.parent!=!t.parent;return e&&!i&&(!n.parent||WD(n.parent,t.parent))}function uF(n){return typeof n.title=="string"||n.title===null}var gG=(()=>{class n{constructor(){this.activated=null,this._activatedRoute=null,this.name=it,this.activateEvents=new P,this.deactivateEvents=new P,this.attachEvents=new P,this.detachEvents=new P,this.parentContexts=C(gh),this.location=C(ht),this.changeDetector=C(_e),this.inputBinder=C(l_,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){let{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new ee(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ee(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ee(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new ee(4013,!1);this._activatedRoute=e;let r=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new YD(e,a,r.injector);this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275dir=M({type:n,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[ze]})}}return n})(),YD=class n{__ngOutletInjector(t){return new n(this.route,this.childContexts,t)}constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===Oo?this.route:t===gh?this.childContexts:this.parent.get(t,e)}},l_=new I(""),HP=(()=>{class n{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:i}=e,r=jr([i.queryParams,i.params,i.data]).pipe(Rt(([o,s,a],l)=>(a=E(E(E({},o),s),a),l===0?oe(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(e);return}let s=oP(i.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(e,r)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac})}}return n})();function _G(n,t,e){let i=ah(n,t._root,e?e._root:void 0);return new i_(i,t)}function ah(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=t.value;let r=bG(n,t,e);return new ir(i,r)}else{if(n.shouldAttach(t.value)){let o=n.retrieve(t.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>ah(n,a)),s}}let i=vG(t.value),r=t.children.map(o=>ah(n,o));return new ir(i,r)}}function bG(n,t,e){return t.children.map(i=>{for(let r of e.children)if(n.shouldReuseRoute(i.value,r.value.snapshot))return ah(n,i,r);return ah(n,i)})}function vG(n){return new Oo(new Ee(n.url),new Ee(n.params),new Ee(n.queryParams),new Ee(n.fragment),new Ee(n.data),n.outlet,n.component,n)}var lh=class{constructor(t,e){this.redirectTo=t,this.navigationBehaviorOptions=e}},hF="ngNavigationCancelingError";function o_(n,t){let{redirectTo:e,navigationBehaviorOptions:i}=Dl(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=fF(!1,nr.Redirect);return r.url=e,r.navigationBehaviorOptions=i,r}function fF(n,t){let e=new Error(`NavigationCancelingError: ${n||""}`);return e[hF]=!0,e.cancellationCode=t,e}function yG(n){return mF(n)&&Dl(n.url)}function mF(n){return!!n&&n[hF]}var wG=(n,t,e,i)=>fe(r=>(new qD(t,r.targetRouterState,r.currentRouterState,e,i).activate(n),r)),qD=class{constructor(t,e,i,r,o){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=o}activate(t){let e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),SD(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){let r=Uc(e);t.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(t,e,i){let r=t.value,o=e?e.value:null;if(r===o)if(r.component){let s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){let i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,o=Uc(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);if(i&&i.outlet){let s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){let i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,o=Uc(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(t,e,i){let r=Uc(e);t.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new $D(o.value.snapshot))}),t.children.length&&this.forwardEvent(new jD(t.value.snapshot))}activateRoutes(t,e,i){let r=t.value,o=e?e.value:null;if(SD(r),r===o)if(r.component){let s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(r.component){let s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),SD(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=r,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,i)}},s_=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},qc=class{constructor(t,e){this.component=t,this.route=e}};function CG(n,t,e){let i=n._root,r=t?t._root:null;return Ju(i,r,e,[i.value])}function DG(n){let t=n.routeConfig?n.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:n,guards:t}}function Jc(n,t){let e=Symbol(),i=t.get(n,e);return i===e?typeof n=="function"&&!rA(n)?n:t.get(n):i}function Ju(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=Uc(t);return n.children.forEach(s=>{xG(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>nh(a,e.getContext(s),r)),r}function xG(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=n.value,s=t?t.value:null,a=e?e.getContext(n.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let l=SG(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new s_(i)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Ju(n,t,a?a.children:null,i,r):Ju(n,t,e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new qc(a.outlet.component,s))}else s&&nh(t,a,r),r.canActivateChecks.push(new s_(i)),o.component?Ju(n,null,a?a.children:null,i,r):Ju(n,null,e,i,r);return r}function SG(n,t,e){if(typeof e=="function")return e(n,t);switch(e){case"pathParamsChange":return!Cl(n.url,t.url);case"pathParamsOrQueryParamsChange":return!Cl(n.url,t.url)||!To(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!WD(n,t)||!To(n.queryParams,t.queryParams);case"paramsChange":default:return!WD(n,t)}}function nh(n,t,e){let i=Uc(n),r=n.value;Object.entries(i).forEach(([o,s])=>{r.component?t?nh(s,t.children.getContext(o),e):nh(s,null,e):nh(s,t,e)}),r.component?t&&t.outlet&&t.outlet.isActivated?e.canDeactivateChecks.push(new qc(t.outlet.component,r)):e.canDeactivateChecks.push(new qc(null,r)):e.canDeactivateChecks.push(new qc(null,r))}function _h(n){return typeof n=="function"}function kG(n){return typeof n=="boolean"}function EG(n){return n&&_h(n.canLoad)}function IG(n){return n&&_h(n.canActivate)}function MG(n){return n&&_h(n.canActivateChild)}function TG(n){return n&&_h(n.canDeactivate)}function AG(n){return n&&_h(n.canMatch)}function pF(n){return n instanceof Zo||n?.name==="EmptyError"}var Yg=Symbol("INITIAL_VALUE");function Xc(){return Rt(n=>jr(n.map(t=>t.pipe(pt(1),yt(Yg)))).pipe(fe(t=>{for(let e of t)if(e!==!0){if(e===Yg)return Yg;if(e===!1||OG(e))return e}return!0}),Ae(t=>t!==Yg),pt(1)))}function OG(n){return Dl(n)||n instanceof lh}function RG(n,t){return ti(e=>{let{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?oe(Pe(E({},e),{guardsResult:!0})):PG(s,i,r,n).pipe(ti(a=>a&&kG(a)?FG(i,o,n,t):oe(a)),fe(a=>Pe(E({},e),{guardsResult:a})))})}function PG(n,t,e,i){return Lt(n).pipe(ti(r=>BG(r.component,r.route,e,t,i)),Br(r=>r!==!0,!0))}function FG(n,t,e,i){return Lt(t).pipe(Xo(r=>go(LG(r.route.parent,i),NG(r.route,i),jG(n,r.path,e),VG(n,r.route,e))),Br(r=>r!==!0,!0))}function NG(n,t){return n!==null&&t&&t(new BD(n)),oe(!0)}function LG(n,t){return n!==null&&t&&t(new VD(n)),oe(!0)}function VG(n,t,e){let i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||i.length===0)return oe(!0);let r=i.map(o=>_r(()=>{let s=ph(t)??e,a=Jc(o,s),l=IG(a)?a.canActivate(t,n):So(s,()=>a(t,n));return sa(l).pipe(Br())}));return oe(r).pipe(Xc())}function jG(n,t,e){let i=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>DG(s)).filter(s=>s!==null).map(s=>_r(()=>{let a=s.guards.map(l=>{let c=ph(s.node)??e,d=Jc(l,c),u=MG(d)?d.canActivateChild(i,n):So(c,()=>d(i,n));return sa(u).pipe(Br())});return oe(a).pipe(Xc())}));return oe(o).pipe(Xc())}function BG(n,t,e,i,r){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return oe(!0);let s=o.map(a=>{let l=ph(t)??r,c=Jc(a,l),d=TG(c)?c.canDeactivate(n,t,e,i):So(l,()=>c(n,t,e,i));return sa(d).pipe(Br())});return oe(s).pipe(Xc())}function $G(n,t,e,i){let r=t.canLoad;if(r===void 0||r.length===0)return oe(!0);let o=r.map(s=>{let a=Jc(s,n),l=EG(a)?a.canLoad(t,e):So(n,()=>a(t,e));return sa(l)});return oe(o).pipe(Xc(),gF(i))}function gF(n){return u0(Et(t=>{if(typeof t!="boolean")throw o_(n,t)}),fe(t=>t===!0))}function zG(n,t,e,i){let r=t.canMatch;if(!r||r.length===0)return oe(!0);let o=r.map(s=>{let a=Jc(s,n),l=AG(a)?a.canMatch(t,e):So(n,()=>a(t,e));return sa(l)});return oe(o).pipe(Xc(),gF(i))}var ch=class{constructor(t){this.segmentGroup=t||null}},dh=class extends Error{constructor(t){super(),this.urlTree=t}};function Hc(n){return Vs(new ch(n))}function HG(n){return Vs(new ee(4e3,!1))}function UG(n){return Vs(fF(!1,nr.GuardRejected))}var GD=class{constructor(t,e){this.urlSerializer=t,this.urlTree=e}lineralizeSegments(t,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),r.numberOfChildren===0)return oe(i);if(r.numberOfChildren>1||!r.children[it])return HG(`${t.redirectTo}`);r=r.children[it]}}applyRedirectCommands(t,e,i,r,o){if(typeof e!="string"){let a=e,{queryParams:l,fragment:c,routeConfig:d,url:u,outlet:h,params:f,data:m,title:g}=r,_=So(o,()=>a({params:f,data:m,queryParams:l,fragment:c,routeConfig:d,url:u,outlet:h,title:g}));if(_ instanceof Ao)throw new dh(_);e=_}let s=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),t,i);if(e[0]==="/")throw new dh(s);return s}applyRedirectCreateUrlTree(t,e,i,r){let o=this.createSegmentGroup(t,e.root,i,r);return new Ao(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){let i={};return Object.entries(t).forEach(([r,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);i[r]=e[a]}else i[r]=o}),i}createSegmentGroup(t,e,i,r){let o=this.createSegments(t,e.segments,i,r),s={};return Object.entries(e.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(t,l,i,r)}),new At(o,s)}createSegments(t,e,i,r){return e.map(o=>o.path[0]===":"?this.findPosParam(t,o,r):this.findOrReturn(o,i))}findPosParam(t,e,i){let r=i[e.path.substring(1)];if(!r)throw new ee(4001,!1);return r}findOrReturn(t,e){let i=0;for(let r of e){if(r.path===t.path)return e.splice(i),r;i++}return t}},QD={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function WG(n,t,e,i,r){let o=_F(n,t,e);return o.matched?(i=fG(t,i),zG(i,t,e,r).pipe(fe(s=>s===!0?o:E({},QD)))):oe(o)}function _F(n,t,e){if(t.path==="**")return YG(e);if(t.path==="")return t.pathMatch==="full"&&(n.hasChildren()||e.length>0)?E({},QD):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let r=(t.matcher||$6)(e,n,t);if(!r)return E({},QD);let o={};Object.entries(r.posParams??{}).forEach(([a,l])=>{o[a]=l.path});let s=r.consumed.length>0?E(E({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function YG(n){return{matched:!0,parameters:n.length>0?KP(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function UP(n,t,e,i){return e.length>0&&QG(n,e,i)?{segmentGroup:new At(t,GG(i,new At(e,n.children))),slicedSegments:[]}:e.length===0&&KG(n,e,i)?{segmentGroup:new At(n.segments,qG(n,e,i,n.children)),slicedSegments:e}:{segmentGroup:new At(n.segments,n.children),slicedSegments:e}}function qG(n,t,e,i){let r={};for(let o of e)if(c_(n,t,o)&&!i[Gr(o)]){let s=new At([],{});r[Gr(o)]=s}return E(E({},i),r)}function GG(n,t){let e={};e[it]=t;for(let i of n)if(i.path===""&&Gr(i)!==it){let r=new At([],{});e[Gr(i)]=r}return e}function QG(n,t,e){return e.some(i=>c_(n,t,i)&&Gr(i)!==it)}function KG(n,t,e){return e.some(i=>c_(n,t,i))}function c_(n,t,e){return(n.hasChildren()||t.length>0)&&e.pathMatch==="full"?!1:e.path===""}function ZG(n,t,e){return t.length===0&&!n.children[e]}var KD=class{};function XG(n,t,e,i,r,o,s="emptyOnly"){return new ZD(n,t,e,i,r,s,o).recognize()}var JG=31,ZD=class{constructor(t,e,i,r,o,s,a){this.injector=t,this.configLoader=e,this.rootComponentType=i,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new GD(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new ee(4002,`'${t.segmentGroup}'`)}recognize(){let t=UP(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(fe(({children:e,rootSnapshot:i})=>{let r=new ir(i,e),o=new r_("",r),s=sG(i,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(t){let e=new Yc([],Object.freeze({}),Object.freeze(E({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),it,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,it,e).pipe(fe(i=>({children:i,rootSnapshot:e})),_o(i=>{if(i instanceof dh)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof ch?this.noMatchError(i):i}))}processSegmentGroup(t,e,i,r,o){return i.segments.length===0&&i.hasChildren()?this.processChildren(t,e,i,o):this.processSegment(t,e,i,i.segments,r,!0,o).pipe(fe(s=>s instanceof ir?[s]:[]))}processChildren(t,e,i,r){let o=[];for(let s of Object.keys(i.children))s==="primary"?o.unshift(s):o.push(s);return Lt(o).pipe(Xo(s=>{let a=i.children[s],l=mG(e,s);return this.processSegmentGroup(t,l,a,s,r)}),w0((s,a)=>(s.push(...a),s)),Bs(null),y0(),ti(s=>{if(s===null)return Hc(i);let a=bF(s);return e9(a),oe(a)}))}processSegment(t,e,i,r,o,s,a){return Lt(e).pipe(Xo(l=>this.processSegmentAgainstRoute(l._injector??t,e,l,i,r,o,s,a).pipe(_o(c=>{if(c instanceof ch)return oe(null);throw c}))),Br(l=>!!l),_o(l=>{if(pF(l))return ZG(i,r,o)?oe(new KD):Hc(i);throw l}))}processSegmentAgainstRoute(t,e,i,r,o,s,a,l){return Gr(i)!==s&&(s===it||!c_(r,o,i))?Hc(r):i.redirectTo===void 0?this.matchSegmentAgainstRoute(t,r,i,o,s,l):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,r,e,i,o,s,l):Hc(r)}expandSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s,a){let{matched:l,parameters:c,consumedSegments:d,positionalParamSegments:u,remainingSegments:h}=_F(e,r,o);if(!l)return Hc(e);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>JG&&(this.allowRedirects=!1));let f=new Yc(o,c,Object.freeze(E({},this.urlTree.queryParams)),this.urlTree.fragment,WP(r),Gr(r),r.component??r._loadedComponent??null,r,YP(r)),m=n_(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(m.params),f.data=Object.freeze(m.data);let g=this.applyRedirects.applyRedirectCommands(d,r.redirectTo,u,f,t);return this.applyRedirects.lineralizeSegments(r,g).pipe(ti(_=>this.processSegment(t,i,e,_.concat(h),s,!1,a)))}matchSegmentAgainstRoute(t,e,i,r,o,s){let a=WG(e,i,r,t,this.urlSerializer);return i.path==="**"&&(e.children={}),a.pipe(Rt(l=>l.matched?(t=i._injector??t,this.getChildConfig(t,i,r).pipe(Rt(({routes:c})=>{let d=i._loadedInjector??t,{parameters:u,consumedSegments:h,remainingSegments:f}=l,m=new Yc(h,u,Object.freeze(E({},this.urlTree.queryParams)),this.urlTree.fragment,WP(i),Gr(i),i.component??i._loadedComponent??null,i,YP(i)),g=n_(m,s,this.paramsInheritanceStrategy);m.params=Object.freeze(g.params),m.data=Object.freeze(g.data);let{segmentGroup:_,slicedSegments:v}=UP(e,h,f,c);if(v.length===0&&_.hasChildren())return this.processChildren(d,c,_,m).pipe(fe(R=>new ir(m,R)));if(c.length===0&&v.length===0)return oe(new ir(m,[]));let x=Gr(i)===o;return this.processSegment(d,c,_,v,x?it:o,!0,m).pipe(fe(R=>new ir(m,R instanceof ir?[R]:[])))}))):Hc(e)))}getChildConfig(t,e,i){return e.children?oe({routes:e.children,injector:t}):e.loadChildren?e._loadedRoutes!==void 0?oe({routes:e._loadedRoutes,injector:e._loadedInjector}):$G(t,e,i,this.urlSerializer).pipe(ti(r=>r?this.configLoader.loadChildren(t,e).pipe(Et(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):UG(e))):oe({routes:[],injector:t})}};function e9(n){n.sort((t,e)=>t.value.outlet===it?-1:e.value.outlet===it?1:t.value.outlet.localeCompare(e.value.outlet))}function t9(n){let t=n.value.routeConfig;return t&&t.path===""}function bF(n){let t=[],e=new Set;for(let i of n){if(!t9(i)){t.push(i);continue}let r=t.find(o=>i.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...i.children),e.add(r)):t.push(i)}for(let i of e){let r=bF(i.children);t.push(new ir(i.value,r))}return t.filter(i=>!e.has(i))}function WP(n){return n.data||{}}function YP(n){return n.resolve||{}}function i9(n,t,e,i,r,o){return ti(s=>XG(n,t,e,i,s.extractedUrl,r,o).pipe(fe(({state:a,tree:l})=>Pe(E({},s),{targetSnapshot:a,urlAfterRedirects:l}))))}function n9(n,t){return ti(e=>{let{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return oe(e);let o=new Set(r.map(l=>l.route)),s=new Set;for(let l of o)if(!s.has(l))for(let c of vF(l))s.add(c);let a=0;return Lt(s).pipe(Xo(l=>o.has(l)?r9(l,i,n,t):(l.data=n_(l,l.parent,n).resolve,oe(void 0))),Et(()=>a++),Dc(1),ti(l=>a===s.size?oe(e):Ui))})}function vF(n){let t=n.children.map(e=>vF(e)).flat();return[n,...t]}function r9(n,t,e,i){let r=n.routeConfig,o=n._resolve;return r?.title!==void 0&&!uF(r)&&(o[fh]=r.title),o9(o,n,t,i).pipe(fe(s=>(n._resolvedData=s,n.data=n_(n,n.parent,e).resolve,null)))}function o9(n,t,e,i){let r=ID(n);if(r.length===0)return oe({});let o={};return Lt(r).pipe(ti(s=>s9(n[s],t,e,i).pipe(Br(),Et(a=>{if(a instanceof lh)throw o_(new Qc,a);o[s]=a}))),Dc(1),$s(o),_o(s=>pF(s)?Ui:Vs(s)))}function s9(n,t,e,i){let r=ph(t)??i,o=Jc(n,r),s=o.resolve?o.resolve(t,e):So(r,()=>o(t,e));return sa(s)}function kD(n){return Rt(t=>{let e=n(t);return e?Lt(e).pipe(fe(()=>t)):oe(t)})}var yF=(()=>{class n{buildTitle(e){let i,r=e.root;for(;r!==void 0;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===it);return i}getResolvedTitleForRoute(e){return e.data[fh]}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=T({token:n,factory:()=>C(a9),providedIn:"root"})}}return n})(),a9=(()=>{class n extends yF{constructor(e){super(),this.title=e}updateTitle(e){let i=this.buildTitle(e);i!==void 0&&this.title.setTitle(i)}static{this.\u0275fac=function(i){return new(i||n)(D(Ug))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),ed=new I("",{providedIn:"root",factory:()=>({})}),l9=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ng-component"]],standalone:!0,features:[O],decls:1,vars:0,template:function(i,r){i&1&&ie(0,"router-outlet")},dependencies:[gG],encapsulation:2})}}return n})();function ex(n){let t=n.children&&n.children.map(ex),e=t?Pe(E({},n),{children:t}):E({},n);return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==it&&(e.component=l9),e}var uh=new I(""),tx=(()=>{class n{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=C(Sg)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return oe(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let i=sa(e.loadComponent()).pipe(fe(wF),Et(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),zs(()=>{this.componentLoaders.delete(e)})),r=new fo(i,()=>new k).pipe(_c());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return oe({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let o=c9(i,this.compiler,e,this.onLoadEndListener).pipe(zs(()=>{this.childrenLoaders.delete(i)})),s=new fo(o,()=>new k).pipe(_c());return this.childrenLoaders.set(i,s),s}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function c9(n,t,e,i){return sa(n.loadChildren()).pipe(fe(wF),ti(r=>r instanceof Au||Array.isArray(r)?oe(r):Lt(t.compileModuleAsync(r))),fe(r=>{i&&i(n);let o,s,a=!1;return Array.isArray(r)?(s=r,a=!0):(o=r.create(e).injector,s=o.get(uh,[],{optional:!0,self:!0}).flat()),{routes:s.map(ex),injector:o}}))}function d9(n){return n&&typeof n=="object"&&"default"in n}function wF(n){return d9(n)?n.default:n}var ix=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=T({token:n,factory:()=>C(u9),providedIn:"root"})}}return n})(),u9=(()=>{class n{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),CF=new I(""),DF=new I("");function h9(n,t,e){let i=n.get(DF),r=n.get(ce);return n.get(X).runOutsideAngular(()=>{if(!r.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o,s=new Promise(c=>{o=c}),a=r.startViewTransition(()=>(o(),f9(n))),{onViewTransitionCreated:l}=i;return l&&So(n,()=>l({transition:a,from:t,to:e})),s})}function f9(n){return new Promise(t=>{jt({read:()=>setTimeout(t)},{injector:n})})}var m9=new I(""),nx=(()=>{class n{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new k,this.transitionAbortSubject=new k,this.configLoader=C(tx),this.environmentInjector=C(Pi),this.urlSerializer=C(mh),this.rootContexts=C(gh),this.location=C(Mo),this.inputBindingEnabled=C(l_,{optional:!0})!==null,this.titleStrategy=C(yF),this.options=C(ed,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=C(ix),this.createViewTransition=C(CF,{optional:!0}),this.navigationErrorHandler=C(m9,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>oe(void 0),this.rootComponentType=null;let e=r=>this.events.next(new ND(r)),i=r=>this.events.next(new LD(r));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let i=++this.navigationId;this.transitions?.next(Pe(E(E({},this.transitions.value),e),{id:i}))}setupNavigations(e,i,r){return this.transitions=new Ee({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:ih,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Ae(o=>o.id!==0),fe(o=>Pe(E({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),Rt(o=>{let s=!1,a=!1;return oe(o).pipe(Rt(l=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",nr.SupersededByNewNavigation),Ui;this.currentTransition=o,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,targetBrowserUrl:typeof l.extras.browserUrl=="string"?this.urlSerializer.parse(l.extras.browserUrl):l.extras.browserUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?Pe(E({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=l.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!c&&d!=="reload"){let u="";return this.events.next(new oa(l.id,this.urlSerializer.serialize(l.rawUrl),u,Xg.IgnoredSameUrlNavigation)),l.resolve(!1),Ui}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return oe(l).pipe(Rt(u=>{let h=this.transitions?.getValue();return this.events.next(new Kc(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),h!==this.transitions?.getValue()?Ui:Promise.resolve(u)}),i9(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Et(u=>{o.targetSnapshot=u.targetSnapshot,o.urlAfterRedirects=u.urlAfterRedirects,this.currentNavigation=Pe(E({},this.currentNavigation),{finalUrl:u.urlAfterRedirects});let h=new Jg(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(h)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:u,extractedUrl:h,source:f,restoredState:m,extras:g}=l,_=new Kc(u,this.urlSerializer.serialize(h),f,m);this.events.next(_);let v=cF(this.rootComponentType).snapshot;return this.currentTransition=o=Pe(E({},l),{targetSnapshot:v,urlAfterRedirects:h,extras:Pe(E({},g),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,oe(o)}else{let u="";return this.events.next(new oa(l.id,this.urlSerializer.serialize(l.extractedUrl),u,Xg.IgnoredByUrlHandlingStrategy)),l.resolve(!1),Ui}}),Et(l=>{let c=new OD(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),fe(l=>(this.currentTransition=o=Pe(E({},l),{guards:CG(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),o)),RG(this.environmentInjector,l=>this.events.next(l)),Et(l=>{if(o.guardsResult=l.guardsResult,l.guardsResult&&typeof l.guardsResult!="boolean")throw o_(this.urlSerializer,l.guardsResult);let c=new RD(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),Ae(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",nr.GuardRejected),!1)),kD(l=>{if(l.guards.canActivateChecks.length)return oe(l).pipe(Et(c=>{let d=new PD(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}),Rt(c=>{let d=!1;return oe(c).pipe(n9(this.paramsInheritanceStrategy,this.environmentInjector),Et({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(c,"",nr.NoDataFromResolver)}}))}),Et(c=>{let d=new FD(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}))}),kD(l=>{let c=d=>{let u=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(d.routeConfig).pipe(Et(h=>{d.component=h}),fe(()=>{})));for(let h of d.children)u.push(...c(h));return u};return jr(c(l.targetSnapshot.root)).pipe(Bs(null),pt(1))}),kD(()=>this.afterPreactivation()),Rt(()=>{let{currentSnapshot:l,targetSnapshot:c}=o,d=this.createViewTransition?.(this.environmentInjector,l.root,c.root);return d?Lt(d).pipe(fe(()=>o)):oe(o)}),fe(l=>{let c=_G(e.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=o=Pe(E({},l),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,o}),Et(()=>{this.events.next(new sh)}),wG(this.rootContexts,e.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),pt(1),Et({next:l=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new rr(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{s=!0}}),Ce(this.transitionAbortSubject.pipe(Et(l=>{throw l}))),zs(()=>{!s&&!a&&this.cancelNavigationTransition(o,"",nr.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),_o(l=>{if(a=!0,mF(l))this.events.next(new _s(o.id,this.urlSerializer.serialize(o.extractedUrl),l.message,l.cancellationCode)),yG(l)?this.events.next(new Zc(l.url,l.navigationBehaviorOptions)):o.resolve(!1);else{let c=new oh(o.id,this.urlSerializer.serialize(o.extractedUrl),l,o.targetSnapshot??void 0);try{let d=So(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(d instanceof lh){let{message:u,cancellationCode:h}=o_(this.urlSerializer,d);this.events.next(new _s(o.id,this.urlSerializer.serialize(o.extractedUrl),u,h)),this.events.next(new Zc(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(c);let u=e.errorHandler(l);o.resolve(!!u)}}catch(d){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(d)}}return Ui}))}))}cancelNavigationTransition(e,i,r){let o=new _s(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),i=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==i?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function p9(n){return n!==ih}var g9=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=T({token:n,factory:()=>C(_9),providedIn:"root"})}}return n})(),XD=class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}},_9=(()=>{class n extends XD{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xe(n)))(r||n)}})()}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),xF=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=T({token:n,factory:()=>C(b9),providedIn:"root"})}}return n})(),b9=(()=>{class n extends xF{constructor(){super(...arguments),this.location=C(Mo),this.urlSerializer=C(mh),this.options=C(ed,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=C(ix),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Ao,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=cF(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{i.type==="popstate"&&e(i.url,i.state)})}handleRouterEvent(e,i){if(e instanceof Kc)this.stateMemento=this.createStateMemento();else if(e instanceof oa)this.rawUrlTree=i.initialUrl;else if(e instanceof Jg){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let r=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(i.targetBrowserUrl??r,i)}}else e instanceof sh?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&!i.extras.skipLocationChange&&this.setBrowserUrl(i.targetBrowserUrl??this.rawUrlTree,i)):e instanceof _s&&(e.code===nr.GuardRejected||e.code===nr.NoDataFromResolver)?this.restoreHistory(i):e instanceof oh?this.restoreHistory(i,!0):e instanceof rr&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,i){let r=e instanceof Ao?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){let o=this.browserPageId,s=E(E({},i.extras.state),this.generateNgRouterState(i.id,o));this.location.replaceState(r,"",s)}else{let o=E(E({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(r,"",o)}}restoreHistory(e,i=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,o=this.currentPageId-r;o!==0?this.location.historyGo(o):this.currentUrlTree===e.finalUrl&&o===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xe(n)))(r||n)}})()}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),eh=function(n){return n[n.COMPLETE=0]="COMPLETE",n[n.FAILED=1]="FAILED",n[n.REDIRECTING=2]="REDIRECTING",n}(eh||{});function SF(n,t){n.events.pipe(Ae(e=>e instanceof rr||e instanceof _s||e instanceof oh||e instanceof oa),fe(e=>e instanceof rr||e instanceof oa?eh.COMPLETE:(e instanceof _s?e.code===nr.Redirect||e.code===nr.SupersededByNewNavigation:!1)?eh.REDIRECTING:eh.FAILED),Ae(e=>e!==eh.REDIRECTING),pt(1)).subscribe(()=>{t()})}function v9(n){throw n}var y9={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},w9={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},bi=(()=>{class n{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=C(Dg),this.stateManager=C(xF),this.options=C(ed,{optional:!0})||{},this.pendingTasks=C(fl),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=C(nx),this.urlSerializer=C(mh),this.location=C(Mo),this.urlHandlingStrategy=C(ix),this._events=new k,this.errorHandler=this.options.errorHandler||v9,this.navigated=!1,this.routeReuseStrategy=C(g9),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=C(uh,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!C(l_,{optional:!0}),this.eventsSubscription=new pe,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(i=>{try{let r=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(r!==null&&o!==null){if(this.stateManager.handleRouterEvent(i,o),i instanceof _s&&i.code!==nr.Redirect&&i.code!==nr.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof rr)this.navigated=!0;else if(i instanceof Zc){let s=i.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),l=E({browserUrl:r.extras.browserUrl,info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:r.extras.replaceUrl||this.urlUpdateStrategy==="eager"||p9(r.source)},s);this.scheduleNavigation(a,ih,null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}D9(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ih,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",i)},0)})}navigateToSyncWithBrowser(e,i,r){let o={replaceUrl:!0},s=r?.navigationId?r:null;if(r){let l=E({},r);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let a=this.parseUrl(e);this.scheduleNavigation(a,i,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(ex),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){let{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:s,d=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":d=E(E({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let u;try{let h=r?r.snapshot:this.routerState.snapshot.root;u=oF(h)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),u=this.currentUrlTree.root}return sF(u,e,d,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){let r=Dl(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,ih,null,i)}navigate(e,i={skipLocationChange:!1}){return C9(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,i){let r;if(i===!0?r=E({},y9):i===!1?r=E({},w9):r=i,Dl(e))return jP(this.currentUrlTree,e,r);let o=this.parseUrl(e);return jP(this.currentUrlTree,o,r)}removeEmptyProps(e){return Object.entries(e).reduce((i,[r,o])=>(o!=null&&(i[r]=o),i),{})}scheduleNavigation(e,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((u,h)=>{a=u,l=h});let d=this.pendingTasks.add();return SF(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(u=>Promise.reject(u))}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function C9(n){for(let t=0;t{class n{constructor(e,i,r,o,s,a){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=s,this.locationStrategy=a,this.href=null,this.onChanges=new k,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area",this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof rr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(Dl(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,i,r,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||i||r||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,l),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let i=this.href===null?null:CC(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(e,i){let r=this.renderer,o=this.el.nativeElement;i!==null?r.setAttribute(o,e,i):r.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:Dl(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(i){return new(i||n)(p(bi),p(Oo),dn("tabindex"),p(vn),p(H),p(ps))}}static{this.\u0275dir=M({type:n,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,r){i&1&&F("click",function(s){return r.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),i&2&&re("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",W],skipLocationChange:[2,"skipLocationChange","skipLocationChange",W],replaceUrl:[2,"replaceUrl","replaceUrl",W],routerLink:"routerLink"},standalone:!0,features:[Ie,ze]})}}return n})(),kF=(()=>{class n{get isActive(){return this._isActive}constructor(e,i,r,o,s){this.router=e,this.element=i,this.renderer=r,this.cdr=o,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new P,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof rr&&this.update()})}ngAfterContentInit(){oe(this.links.changes,oe(null)).pipe(po()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=Lt(e).pipe(po()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){let i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(r=>!!r)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let i=x9(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>{let o=r.urlTree;return o?e.isActive(o,i):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static{this.\u0275fac=function(i){return new(i||n)(p(bi),p(H),p(vn),p(_e),p(hh,8))}}static{this.\u0275dir=M({type:n,selectors:[["","routerLinkActive",""]],contentQueries:function(i,r,o){if(i&1&&He(o,hh,5),i&2){let s;B(s=$())&&(r.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[ze]})}}return n})();function x9(n){return!!n.paths}var a_=class{};var S9=(()=>{class n{constructor(e,i,r,o,s){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Ae(e=>e instanceof rr),Xo(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){let r=[];for(let o of i){o.providers&&!o._injector&&(o._injector=gg(o.providers,e,`Route: ${o.path}`));let s=o._injector??e,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return Lt(r).pipe(po())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;i.loadChildren&&i.canLoad===void 0?r=this.loader.loadChildren(e,i):r=oe(null);let o=r.pipe(ti(s=>s===null?oe(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));if(i.loadComponent&&!i._loadedComponent){let s=this.loader.loadComponent(i);return Lt([o,s]).pipe(po())}else return o})}static{this.\u0275fac=function(i){return new(i||n)(D(bi),D(Sg),D(Pi),D(a_),D(tx))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),EF=new I(""),k9=(()=>{class n{constructor(e,i,r,o,s={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Kc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof rr?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof oa&&e.code===Xg.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof e_&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new e_(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(i){pl()}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac})}}return n})();function wwe(n,...t){return Hp([{provide:uh,multi:!0,useValue:n},[],{provide:Oo,useFactory:IF,deps:[bi]},{provide:xg,multi:!0,useFactory:MF},t.map(e=>e.\u0275providers)])}function IF(n){return n.routerState.root}function td(n,t){return{\u0275kind:n,\u0275providers:t}}function MF(){let n=C(Oe);return t=>{let e=n.get(Xn);if(t!==e.components[0])return;let i=n.get(bi),r=n.get(TF);n.get(rx)===1&&i.initialNavigation(),n.get(AF,null,st.Optional)?.setUpPreloading(),n.get(EF,null,st.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var TF=new I("",{factory:()=>new k}),rx=new I("",{providedIn:"root",factory:()=>1});function E9(){return td(2,[{provide:rx,useValue:0},{provide:vl,multi:!0,deps:[Oe],useFactory:t=>{let e=t.get(mP,Promise.resolve());return()=>e.then(()=>new Promise(i=>{let r=t.get(bi),o=t.get(TF);SF(r,()=>{i(!0)}),t.get(nx).afterPreactivation=()=>(i(!0),o.closed?oe(void 0):o),r.initialNavigation()}))}}])}function I9(){return td(3,[{provide:vl,multi:!0,useFactory:()=>{let t=C(bi);return()=>{t.setUpLocationChangeListener()}}},{provide:rx,useValue:2}])}var AF=new I("");function M9(n){return td(0,[{provide:AF,useExisting:S9},{provide:a_,useExisting:n}])}function Cwe(n){return td(5,[{provide:ed,useValue:n}])}function T9(){return td(8,[HP,{provide:l_,useExisting:HP}])}function A9(n){let t=[{provide:CF,useValue:h9},{provide:DF,useValue:E({skipNextTransition:!!n?.skipInitialTransition},n)}];return td(9,t)}var qP=new I("ROUTER_FORROOT_GUARD"),O9=[Mo,{provide:mh,useClass:Qc},bi,gh,{provide:Oo,useFactory:IF,deps:[bi]},tx,[]],ox=(()=>{class n{constructor(e){}static forRoot(e,i){return{ngModule:n,providers:[O9,[],{provide:uh,multi:!0,useValue:e},{provide:qP,useFactory:N9,deps:[[bi,new yr,new Ur]]},{provide:ed,useValue:i||{}},i?.useHash?P9():F9(),R9(),i?.preloadingStrategy?M9(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?L9(i):[],i?.bindToComponentInputs?T9().\u0275providers:[],i?.enableViewTransitions?A9().\u0275providers:[],V9()]}}static forChild(e){return{ngModule:n,providers:[{provide:uh,multi:!0,useValue:e}]}}static{this.\u0275fac=function(i){return new(i||n)(D(qP,8))}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({})}}return n})();function R9(){return{provide:EF,useFactory:()=>{let n=C(kP),t=C(X),e=C(ed),i=C(nx),r=C(mh);return e.scrollOffset&&n.setOffset(e.scrollOffset),new k9(r,i,n,t,e)}}}function P9(){return{provide:ps,useClass:pP}}function F9(){return{provide:ps,useClass:iD}}function N9(n){return"guarded"}function L9(n){return[n.initialNavigation==="disabled"?I9().\u0275providers:[],n.initialNavigation==="enabledBlocking"?E9().\u0275providers:[]]}var GP=new I("");function V9(){return[{provide:GP,useFactory:MF},{provide:xg,multi:!0,useExisting:GP}]}var lx;try{lx=typeof Intl<"u"&&Intl.v8BreakIterator}catch{lx=!1}var Ne=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?sD(this._platformId):typeof document=="object"&&!!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||lx)&&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{this.\u0275fac=function(i){return new(i||n)(D(Io))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var bh;function j9(){if(bh==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>bh=!0}))}finally{bh=bh||!1}return bh}function hi(n){return j9()?n:!!n.capture}var Qr=function(n){return n[n.NORMAL=0]="NORMAL",n[n.NEGATED=1]="NEGATED",n[n.INVERTED=2]="INVERTED",n}(Qr||{}),d_,xl;function u_(){if(xl==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return xl=!1,xl;if("scrollBehavior"in document.documentElement.style)xl=!0;else{let n=Element.prototype.scrollTo;n?xl=!/\{\s*\[native code\]\s*\}/.test(n.toString()):xl=!1}}return xl}function id(){if(typeof document!="object"||!document)return Qr.NORMAL;if(d_==null){let n=document.createElement("div"),t=n.style;n.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";let e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",n.appendChild(e),document.body.appendChild(n),d_=Qr.NORMAL,n.scrollLeft===0&&(n.scrollLeft=1,d_=n.scrollLeft===0?Qr.NEGATED:Qr.INVERTED),n.remove()}return d_}var ax;function B9(){if(ax==null){let n=typeof document<"u"?document.head:null;ax=!!(n&&(n.createShadowRoot||n.attachShadow))}return ax}function nd(n){if(B9()){let t=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function aa(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){let t=n.shadowRoot.activeElement;if(t===n)break;n=t}return n}function vi(n){return n.composedPath?n.composedPath()[0]:n.target}function vh(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function xt(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function ai(n){return n!=null&&`${n}`!="false"}function ji(n,t=0){return cx(n)?Number(n):arguments.length===2?t:0}function cx(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function la(n){return Array.isArray(n)?n:[n]}function fi(n){return n==null?"":typeof n=="string"?n:`${n}px`}function Ii(n){return n instanceof H?n.nativeElement:n}function OF(n,t=/\s+/){let e=[];if(n!=null){let i=Array.isArray(n)?n:`${n}`.split(t);for(let r of i){let o=`${r}`.trim();o&&e.push(o)}}return e}function $9(n){if(n.type==="characterData"&&n.target instanceof Comment)return!0;if(n.type==="childList"){for(let t=0;t{class n{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),z9=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map,this._ngZone=C(X)}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){let i=Ii(e);return new Se(r=>{let s=this._observeElement(i).pipe(fe(a=>a.filter(l=>!$9(l))),Ae(a=>!!a.length)).subscribe(a=>{this._ngZone.run(()=>{r.next(a)})});return()=>{s.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let i=new k,r=this._mutationObserverFactory.create(o=>i.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,count:1})}return this._observedElements.get(e).stream})}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){let{observer:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}static{this.\u0275fac=function(i){return new(i||n)(D(RF))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),yh=(()=>{class n{get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=ji(e),this._subscribe()}constructor(e,i){this._contentObserver=e,this._elementRef=i,this.event=new P,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let e=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?e.pipe(sn(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||n)(p(z9),p(H))}}static{this.\u0275dir=M({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",W],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],standalone:!0,features:[Ie]})}}return n})(),rd=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({providers:[RF]})}}return n})();var PF=new Set,Sl,H9=(()=>{class n{constructor(e,i){this._platform=e,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):W9}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&U9(e,this._nonce),this._matchMedia(e)}static{this.\u0275fac=function(i){return new(i||n)(D(Ne),D(ju,8))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function U9(n,t){if(!PF.has(n))try{Sl||(Sl=document.createElement("style"),t&&Sl.setAttribute("nonce",t),Sl.setAttribute("type","text/css"),document.head.appendChild(Sl)),Sl.sheet&&(Sl.sheet.insertRule(`@media ${n} {body{ }}`,0),PF.add(n))}catch(e){console.error(e)}}function W9(n){return{matches:n==="all"||n==="",media:n,addListener:()=>{},removeListener:()=>{}}}var od=(()=>{class n{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new k}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return FF(la(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let r=FF(la(e)).map(s=>this._registerQuery(s).observable),o=jr(r);return o=go(o.pipe(pt(1)),o.pipe(Za(1),sn(0))),o.pipe(fe(s=>{let 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);let i=this._mediaMatcher.matchMedia(e),o={observable:new Se(s=>{let a=l=>this._zone.run(()=>s.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(yt(i),fe(({matches:s})=>({query:e,matches:s})),Ce(this._destroySubject)),mql:i};return this._queries.set(e,o),o}static{this.\u0275fac=function(i){return new(i||n)(D(H9),D(X))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function FF(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}var h_={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};var BF=" ";function ud(n,t,e){let i=g_(n,t);e=e.trim(),!i.some(r=>r.trim()===e)&&(i.push(e),n.setAttribute(t,i.join(BF)))}function ca(n,t,e){let i=g_(n,t);e=e.trim();let r=i.filter(o=>o!==e);r.length?n.setAttribute(t,r.join(BF)):n.removeAttribute(t)}function g_(n,t){return n.getAttribute(t)?.match(/\S+/g)??[]}var $F="cdk-describedby-message",f_="cdk-describedby-host",hx=0,b_=(()=>{class n{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${hx++}`,this._document=e,this._id=C(Vu)+"-"+hx++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;let o=dx(i,r);typeof i!="string"?(NF(i,this._id),this._messageRegistry.set(o,{messageElement:i,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;let o=dx(i,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),typeof i=="string"){let s=this._messageRegistry.get(o);s&&s.referenceCount===0&&this._deleteMessageElement(o)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${f_}="${this._id}"]`);for(let i=0;ir.indexOf($F)!=0);e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){let r=this._messageRegistry.get(i);ud(e,"aria-describedby",r.messageElement.id),e.setAttribute(f_,this._id),r.referenceCount++}_removeMessageReference(e,i){let r=this._messageRegistry.get(i);r.referenceCount--,ca(e,"aria-describedby",r.messageElement.id),e.removeAttribute(f_)}_isElementDescribedByMessage(e,i){let r=g_(e,"aria-describedby"),o=this._messageRegistry.get(i),s=o&&o.messageElement.id;return!!s&&r.indexOf(s)!=-1}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&typeof i=="object")return!0;let r=i==null?"":`${i}`.trim(),o=e.getAttribute("aria-label");return r?!o||o.trim()!==r:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static{this.\u0275fac=function(i){return new(i||n)(D(ce),D(Ne))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function dx(n,t){return typeof n=="string"?`${t||""}/${n}`:n}function NF(n,t){n.id||(n.id=`${$F}-${t}-${hx++}`)}var tQ=200,fx=class{constructor(t,e){this._letterKeyStream=new k,this._items=[],this._selectedItemIndex=-1,this._pressedLetters=[],this._selectedItem=new k,this.selectedItem=this._selectedItem;let i=typeof e?.debounceInterval=="number"?e.debounceInterval:tQ;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(t),this._setupKeyHandler(i)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(t){this._selectedItemIndex=t}setItems(t){this._items=t}handleKey(t){let e=t.keyCode;t.key&&t.key.length===1?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(t){this._letterKeyStream.pipe(Et(e=>this._pressedLetters.push(e)),sn(t),Ae(()=>this._pressedLetters.length>0),fe(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let i=1;ii.disabled,this.tabOut=new k,this.change=new k,t instanceof vr?this._itemChangesSubscription=t.changes.subscribe(i=>this._itemsChanged(i.toArray())):mg(t)&&(this._effectRef=yl(()=>this._itemsChanged(t()),{injector:e}))}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){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new fx(e,{debounceInterval:typeof t=="number"?t:void 0,skipPredicate:i=>this._skipPredicateFn(i)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(i=>{this.setActiveItem(i)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(t=!0){return this._homeAndEnd=t,this}withPageUpDown(t=!0,e=10){return this._pageUpAndDown={enabled:t,delta:e},this}setActiveItem(t){let e=this._activeItem();this.updateActiveItem(t),this._activeItem()!==e&&this.change.next(this._activeItemIndex)}onKeydown(t){let e=t.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!t[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(o-1&&i!==this._activeItemIndex&&(this._activeItemIndex=i,this._typeahead?.setCurrentSelectedItemIndex(i))}}},ad=class extends __{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}},ld=class extends __{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)}};var da=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return nQ(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let i=iQ(uQ(e));if(i&&(LF(i)===-1||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=LF(e);return e.hasAttribute("contenteditable")?o!==-1:r==="iframe"||r==="object"||this._platform.WEBKIT&&this._platform.IOS&&!cQ(e)?!1:r==="audio"?e.hasAttribute("controls")?o!==-1:!1:r==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,i){return dQ(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static{this.\u0275fac=function(i){return new(i||n)(D(Ne))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function iQ(n){try{return n.frameElement}catch{return null}}function nQ(n){return!!(n.offsetWidth||n.offsetHeight||typeof n.getClientRects=="function"&&n.getClientRects().length)}function rQ(n){let t=n.nodeName.toLowerCase();return t==="input"||t==="select"||t==="button"||t==="textarea"}function oQ(n){return aQ(n)&&n.type=="hidden"}function sQ(n){return lQ(n)&&n.hasAttribute("href")}function aQ(n){return n.nodeName.toLowerCase()=="input"}function lQ(n){return n.nodeName.toLowerCase()=="a"}function zF(n){if(!n.hasAttribute("tabindex")||n.tabIndex===void 0)return!1;let t=n.getAttribute("tabindex");return!!(t&&!isNaN(parseInt(t,10)))}function LF(n){if(!zF(n))return null;let t=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}function cQ(n){let t=n.nodeName.toLowerCase(),e=t==="input"&&n.type;return e==="text"||e==="password"||t==="select"||t==="textarea"}function dQ(n){return oQ(n)?!1:rQ(n)||sQ(n)||n.hasAttribute("contenteditable")||zF(n)}function uQ(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}var mx=class{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,i,r,o=!1,s){this._element=t,this._checker=e,this._ngZone=i,this._document=r,this._injector=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}destroy(){let 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?!0:(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){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);return t=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(t){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let i=this._getFirstTabbableElement(e);return i?.focus(t),!!i}return e.focus(t),!0}return this.focusFirstTabbableElement(t)}focusFirstTabbableElement(t){let e=this._getRegionBoundary("start");return e&&e.focus(t),!!e}focusLastTabbableElement(t){let 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;let e=t.children;for(let i=0;i=0;i--){let r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}return null}_createAnchor(){let 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._injector?jt(t,{injector:this._injector}):setTimeout(t)}},El=(()=>{class n{constructor(e,i,r){this._checker=e,this._ngZone=i,this._injector=C(Oe),this._document=r}create(e,i=!1){return new mx(e,this._checker,this._ngZone,this._document,i,this._injector)}static{this.\u0275fac=function(i){return new(i||n)(D(da),D(X),D(ce))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),HF=(()=>{class n{get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}constructor(e,i,r){this._elementRef=e,this._focusTrapFactory=i,this._previouslyFocusedElement=null,C(Ne).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(e){let i=e.autoCapture;i&&!i.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=aa(),this.focusTrap?.focusInitialElementWhenReady()}static{this.\u0275fac=function(i){return new(i||n)(p(H),p(El),p(ce))}}static{this.\u0275dir=M({type:n,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",W],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",W]},exportAs:["cdkTrapFocus"],standalone:!0,features:[Ie,ze]})}}return n})();function Il(n){return n.buttons===0||n.detail===0}function Ml(n){let t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!!t&&t.identifier===-1&&(t.radiusX==null||t.radiusX===1)&&(t.radiusY==null||t.radiusY===1)}var hQ=new I("cdk-input-modality-detector-options"),fQ={ignoreKeys:[18,17,224,91,16]},UF=650,sd=hi({passive:!0,capture:!0}),mQ=(()=>{class n{get mostRecentModality(){return this._modality.value}constructor(e,i,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new Ee(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(a=>a===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=vi(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs{if(Ml(s)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=vi(s)},this._options=E(E({},fQ),o),this.modalityDetected=this._modality.pipe(Za(1)),this.modalityChanged=this.modalityDetected.pipe(Jo()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,sd),r.addEventListener("mousedown",this._onMousedown,sd),r.addEventListener("touchstart",this._onTouchstart,sd)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,sd),document.removeEventListener("mousedown",this._onMousedown,sd),document.removeEventListener("touchstart",this._onTouchstart,sd))}static{this.\u0275fac=function(i){return new(i||n)(D(Ne),D(X),D(ce),D(hQ,8))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),pQ=new I("liveAnnouncerElement",{providedIn:"root",factory:gQ});function gQ(){return null}var _Q=new I("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),bQ=0,v_=(()=>{class n{constructor(e,i,r,o){this._ngZone=i,this._defaultOptions=o,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...i){let r=this._defaultOptions,o,s;return i.length===1&&typeof i[0]=="number"?s=i[0]:[o,s]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),s==null&&r&&(s=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(a=>this._currentResolve=a)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof s=="number"&&(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(){let e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{class n{constructor(e,i,r,o,s){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new k,this._rootNodeFocusAndBlurListener=a=>{let l=vi(a);for(let c=l;c;c=c.parentElement)a.type==="focus"?this._onFocus(a,c):this._onBlur(a,c)},this._document=o,this._detectionMode=s?.detectionMode||p_.IMMEDIATE}monitor(e,i=!1){let r=Ii(e);if(!this._platform.isBrowser||r.nodeType!==1)return oe();let o=nd(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;let a={checkChildren:i,subject:new k,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){let i=Ii(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){let o=Ii(e),s=this._getDocument().activeElement;o===s?this._getClosestElementsInfo(o).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),typeof o.focus=="function"&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===p_.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused",i==="touch"),e.classList.toggle("cdk-keyboard-focused",i==="keyboard"),e.classList.toggle("cdk-mouse-focused",i==="mouse"),e.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&i,this._detectionMode===p_.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?UF:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,i){let r=this._elementInfo.get(i),o=vi(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(e,i){let r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,m_),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,m_)}),this._rootNodeFocusListenerCount.set(i,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ce(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){let i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,m_),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,m_),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){let i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!i||i===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let o=e.labels;if(o){for(let s=0;s{class n{constructor(e,i){this._elementRef=e,this._focusMonitor=i,this._focusOrigin=null,this.cdkFocusChange=new P}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||n)(p(H),p(yi))}}static{this.\u0275dir=M({type:n,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"],standalone:!0})}}return n})(),kl=function(n){return n[n.NONE=0]="NONE",n[n.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",n[n.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",n}(kl||{}),VF="cdk-high-contrast-black-on-white",jF="cdk-high-contrast-white-on-black",ux="cdk-high-contrast-active",_x=(()=>{class n{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=C(od).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return kl.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return kl.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return kl.BLACK_ON_WHITE}return kl.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(ux,VF,jF),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===kl.BLACK_ON_WHITE?e.add(ux,VF):i===kl.WHITE_ON_BLACK&&e.add(ux,jF)}}static{this.\u0275fac=function(i){return new(i||n)(D(Ne),D(ce))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),ua=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}static{this.\u0275fac=function(i){return new(i||n)(D(_x))}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({imports:[rd]})}}return n})();var yQ=new I("cdk-dir-doc",{providedIn:"root",factory:wQ});function wQ(){return C(ce)}var CQ=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function DQ(n){let t=n?.toLowerCase()||"";return t==="auto"&&typeof navigator<"u"&&navigator?.language?CQ.test(navigator.language)?"rtl":"ltr":t==="rtl"?"rtl":"ltr"}var gt=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new P,e){let i=e.body?e.body.dir:null,r=e.documentElement?e.documentElement.dir:null;this.value=DQ(i||r||"ltr")}}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(i){return new(i||n)(D(yQ,8))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var ha=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({})}}return n})();var xQ=["text"],SQ=[[["mat-icon"]],"*"],kQ=["mat-icon","*"];function EQ(n,t){if(n&1&&ie(0,"mat-pseudo-checkbox",1),n&2){let e=S();q("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function IQ(n,t){if(n&1&&ie(0,"mat-pseudo-checkbox",3),n&2){let e=S();q("disabled",e.disabled)}}function MQ(n,t){if(n&1&&(b(0,"span",4),z(1),y()),n&2){let e=S();w(),qe("(",e.group.label,")")}}var TQ=["mat-internal-form-field",""],AQ=["*"];var eN=(()=>{class n{static{this.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)"}static{this.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)"}static{this.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)"}static{this.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)"}}return n})(),tN=(()=>{class n{static{this.COMPLEX="375ms"}static{this.ENTERING="225ms"}static{this.EXITING="195ms"}}return n})();function OQ(){return!0}var RQ=new I("mat-sanity-checks",{providedIn:"root",factory:OQ}),Me=(()=>{class n{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return vh()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[e]}static{this.\u0275fac=function(i){return new(i||n)(D(_x),D(RQ,8),D(ce))}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({imports:[ha,ha]})}}return n})();var Dh=class{constructor(t,e,i,r,o){this._defaultMatcher=t,this.ngControl=e,this._parentFormGroup=i,this._parentForm=r,this._stateChanges=o,this.errorState=!1}updateErrorState(){let t=this.errorState,e=this._parentFormGroup||this._parentForm,i=this.matcher||this._defaultMatcher,r=this.ngControl?this.ngControl.control:null,o=i?.isErrorState(r,e)??!1;o!==t&&(this.errorState=o,this._stateChanges.next())}};var WF=new I("MAT_DATE_LOCALE",{providedIn:"root",factory:PQ});function PQ(){return C(ta)}var wi=class{constructor(){this._localeChanges=new k,this.localeChanges=this._localeChanges}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return t==null||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let i=this.isValid(t),r=this.isValid(e);return i&&r?!this.compareDate(t,e):i==r}return t==e}clampDate(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}},fa=new I("mat-date-formats"),FQ=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function bx(n,t){let e=Array(n);for(let i=0;i{class n extends wi{constructor(e){super(),this.useUtcForDisplay=!1,this._matDateLocale=C(WF,{optional:!0}),e!==void 0&&(this._matDateLocale=e),super.setLocale(this._matDateLocale)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){let i=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return bx(12,r=>this._format(i,new Date(2017,r,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return bx(31,i=>this._format(e,new Date(2017,0,i+1)))}getDayOfWeekNames(e){let i=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return bx(7,r=>this._format(i,new Date(2017,0,r+1)))}getYearName(e){let i=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(i,e)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){let e=new Intl.Locale(this.locale),i=(e.getWeekInfo?.()||e.weekInfo)?.firstDay??0;return i===7?0:i}return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,i,r){let o=this._createDateWithOverflow(e,i,r);return o.getMonth()!=i,o}today(){return new Date}parse(e,i){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null}format(e,i){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");let r=new Intl.DateTimeFormat(this.locale,Pe(E({},i),{timeZone:"utc"}));return this._format(r,e)}addCalendarYears(e,i){return this.addCalendarMonths(e,i*12)}addCalendarMonths(e,i){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+i,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+i)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,i){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+i)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if(typeof e=="string"){if(!e)return null;if(FQ.test(e)){let i=new Date(e);if(this.isValid(i))return i}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,i,r){let o=new Date;return o.setFullYear(e,i,r),o.setHours(0,0,0,0),o}_2digit(e){return("00"+e).slice(-2)}_format(e,i){let r=new Date;return r.setUTCFullYear(i.getFullYear(),i.getMonth(),i.getDate()),r.setUTCHours(i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()),e.format(r)}static{this.\u0275fac=function(i){return new(i||n)(D(WF,8))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac})}}return n})(),LQ={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};var Dx=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({providers:[VQ()]})}}return n})();function VQ(n=LQ){return[{provide:wi,useClass:NQ},{provide:fa,useValue:n}]}var xx=(()=>{class n{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Er=function(n){return n[n.FADING_IN=0]="FADING_IN",n[n.VISIBLE=1]="VISIBLE",n[n.FADING_OUT=2]="FADING_OUT",n[n.HIDDEN=3]="HIDDEN",n}(Er||{}),wx=class{constructor(t,e,i,r=!1){this._renderer=t,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r,this.state=Er.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},YF=hi({passive:!0,capture:!0}),Cx=class{constructor(){this._events=new Map,this._delegateEventHandler=t=>{let e=vi(t);e&&this._events.get(t.type)?.forEach((i,r)=>{(r===e||r.contains(e))&&i.forEach(o=>o.handleEvent(t))})}}addHandler(t,e,i,r){let o=this._events.get(e);if(o){let s=o.get(i);s?s.add(r):o.set(i,new Set([r]))}else this._events.set(e,new Map([[i,new Set([r])]])),t.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,YF)})}removeHandler(t,e,i){let r=this._events.get(t);if(!r)return;let o=r.get(e);o&&(o.delete(i),o.size===0&&r.delete(e),r.size===0&&(this._events.delete(t),document.removeEventListener(t,this._delegateEventHandler,YF)))}},qF={enterDuration:225,exitDuration:150},jQ=800,GF=hi({passive:!0,capture:!0}),QF=["mousedown","touchstart"],KF=["mouseup","mouseleave","touchend","touchcancel"],xh=class n{static{this._eventManager=new Cx}constructor(t,e,i,r){this._target=t,this._ngZone=e,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Ii(i))}fadeInRipple(t,e,i={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=E(E({},qF),i.animation);i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);let s=i.radius||BQ(t,e,r),a=t-r.left,l=e-r.top,c=o.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=`${s*2}px`,d.style.width=`${s*2}px`,i.color!=null&&(d.style.backgroundColor=i.color),d.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(d);let u=window.getComputedStyle(d),h=u.transitionProperty,f=u.transitionDuration,m=h==="none"||f==="0s"||f==="0s, 0s"||r.width===0&&r.height===0,g=new wx(this,d,i,m);d.style.transform="scale3d(1, 1, 1)",g.state=Er.FADING_IN,i.persistent||(this._mostRecentTransientRipple=g);let _=null;return!m&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let v=()=>{_&&(_.fallbackTimer=null),clearTimeout(R),this._finishRippleTransition(g)},x=()=>this._destroyRipple(g),R=setTimeout(x,c+100);d.addEventListener("transitionend",v),d.addEventListener("transitioncancel",x),_={onTransitionEnd:v,onTransitionCancel:x,fallbackTimer:R}}),this._activeRipples.set(g,_),(m||!c)&&this._finishRippleTransition(g),g}fadeOutRipple(t){if(t.state===Er.FADING_OUT||t.state===Er.HIDDEN)return;let e=t.element,i=E(E({},qF),t.config.animation);e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",t.state=Er.FADING_OUT,(t._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(t)}fadeOutAll(){this._getActiveRipples().forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){let e=Ii(t);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,QF.forEach(i=>{n._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(t){t.type==="mousedown"?this._onMousedown(t):t.type==="touchstart"?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{KF.forEach(e=>{this._triggerElement.addEventListener(e,this,GF)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(t){t.state===Er.FADING_IN?this._startFadeOutTransition(t):t.state===Er.FADING_OUT&&this._destroyRipple(t)}_startFadeOutTransition(t){let e=t===this._mostRecentTransientRipple,{persistent:i}=t.config;t.state=Er.VISIBLE,!i&&(!e||!this._isPointerDown)&&t.fadeOut()}_destroyRipple(t){let e=this._activeRipples.get(t)??null;this._activeRipples.delete(t),this._activeRipples.size||(this._containerRect=null),t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),t.state=Er.HIDDEN,e!==null&&(t.element.removeEventListener("transitionend",e.onTransitionEnd),t.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),t.element.remove()}_onMousedown(t){let e=Il(t),i=this._lastTouchStartEvent&&Date.now(){let e=t.state===Er.VISIBLE||t.config.terminateOnPointerUp&&t.state===Er.FADING_IN;!t.config.persistent&&e&&t.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let t=this._triggerElement;t&&(QF.forEach(e=>n._eventManager.removeHandler(e,t,this)),this._pointerUpEventsRegistered&&(KF.forEach(e=>t.removeEventListener(e,this,GF)),this._pointerUpEventsRegistered=!1))}};function BQ(n,t,e){let i=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(i*i+r*r)}var Tl=new I("mat-ripple-global-options"),Jr=(()=>{class n{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,i,r,o,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new xh(this,i,e,r)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:E(E(E({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,r){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,i,E(E({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,E(E({},this.rippleConfig),e))}static{this.\u0275fac=function(i){return new(i||n)(p(H),p(X),p(Ne),p(Tl,8),p(Dt,8))}}static{this.\u0275dir=M({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,r){i&2&&Q("mat-ripple-unbounded",r.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0})}}return n})(),Al=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({imports:[Me,Me]})}}return n})(),$Q=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}static{this.\u0275fac=function(i){return new(i||n)(p(Dt,8))}}static{this.\u0275cmp=A({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,r){i&2&&Q("mat-pseudo-checkbox-indeterminate",r.state==="indeterminate")("mat-pseudo-checkbox-checked",r.state==="checked")("mat-pseudo-checkbox-disabled",r.disabled)("mat-pseudo-checkbox-minimal",r.appearance==="minimal")("mat-pseudo-checkbox-full",r.appearance==="full")("_mat-animation-noopable",r._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[O],decls:0,vars:0,template:function(i,r){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color, var(--mat-app-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color, var(--mat-app-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color, var(--mat-app-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color, var(--mat-app-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color, var(--mat-app-surface))}.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 n})(),Sx=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({imports:[Me]})}}return n})(),kh=new I("MAT_OPTION_PARENT_COMPONENT");var Eh=new I("MatOptgroup");var zQ=0,Sh=class{constructor(t,e=!1){this.source=t,this.isUserInput=e}},hd=(()=>{class n{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=e}get disableRipple(){return!!(this._parent&&this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}constructor(e,i,r,o){this._element=e,this._changeDetectorRef=i,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${zQ++}`,this.onSelectionChange=new P,this._stateChanges=new k}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,i){let r=this._getHostElement();typeof r.focus=="function"&&r.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!xt(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let 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 Sh(this,e))}static{this.\u0275fac=function(i){return new(i||n)(p(H),p(_e),p(kh,8),p(Eh,8))}}static{this.\u0275cmp=A({type:n,selectors:[["mat-option"]],viewQuery:function(i,r){if(i&1&&le(xQ,7),i&2){let o;B(o=$())&&(r._text=o.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,r){i&1&&F("click",function(){return r._selectViaInteraction()})("keydown",function(s){return r._handleKeydown(s)}),i&2&&(Dr("id",r.id),re("aria-selected",r.selected)("aria-disabled",r.disabled.toString()),Q("mdc-list-item--selected",r.selected)("mat-mdc-option-multiple",r.multiple)("mat-mdc-option-active",r.active)("mdc-list-item--disabled",r.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",W]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[Ie,O],ngContentSelectors:kQ,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(i,r){i&1&&(ge(SQ),U(0,EQ,1,2,"mat-pseudo-checkbox",1),Z(1),b(2,"span",2,0),Z(4,1),y(),U(5,IQ,1,1,"mat-pseudo-checkbox",3)(6,MQ,2,1,"span",4),ie(7,"div",5)),i&2&&(Y(r.multiple?0:-1),w(5),Y(!r.multiple&&r.selected&&!r.hideSingleSelectionIndicator?5:-1),w(),Y(r.group&&r.group._inert?6:-1),w(),q("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple))},dependencies:[$Q,Jr],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-app-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-app-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-app-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-app-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-app-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-app-body-large-weight))}.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);outline:0}.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, var(--mat-app-on-secondary-container))}.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, var(--mat-app-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-app-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}}return n})();function C_(n,t,e){if(e.length){let i=t.toArray(),r=e.toArray(),o=0;for(let s=0;se+i?Math.max(0,n-i+t):e}var fd=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({imports:[Al,Me,Sx]})}}return n})(),ZF={capture:!0},XF=["focus","mousedown","mouseenter","touchstart"],vx="mat-ripple-loader-uninitialized",yx="mat-ripple-loader-class-name",JF="mat-ripple-loader-centered",w_="mat-ripple-loader-disabled",iN=(()=>{class n{constructor(){this._document=C(ce,{optional:!0}),this._animationMode=C(Dt,{optional:!0}),this._globalRippleOptions=C(Tl,{optional:!0}),this._platform=C(Ne),this._ngZone=C(X),this._hosts=new Map,this._onInteraction=e=>{let i=vi(e);if(i instanceof HTMLElement){let r=i.closest(`[${vx}="${this._globalRippleOptions?.namespace??""}"]`);r&&this._createRipple(r)}},this._ngZone.runOutsideAngular(()=>{for(let e of XF)this._document?.addEventListener(e,this._onInteraction,ZF)})}ngOnDestroy(){let e=this._hosts.keys();for(let i of e)this.destroyRipple(i);for(let i of XF)this._document?.removeEventListener(i,this._onInteraction,ZF)}configureRipple(e,i){e.setAttribute(vx,this._globalRippleOptions?.namespace??""),(i.className||!e.hasAttribute(yx))&&e.setAttribute(yx,i.className||""),i.centered&&e.setAttribute(JF,""),i.disabled&&e.setAttribute(w_,"")}getRipple(e){return this._hosts.get(e)||this._createRipple(e)}setDisabled(e,i){let r=this._hosts.get(e);if(r){r.disabled=i;return}i?e.setAttribute(w_,""):e.removeAttribute(w_)}_createRipple(e){if(!this._document)return;let i=this._hosts.get(e);if(i)return i;e.querySelector(".mat-ripple")?.remove();let r=this._document.createElement("span");r.classList.add("mat-ripple",e.getAttribute(yx)),e.append(r);let o=new Jr(new H(r),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return o._isInitialized=!0,o.trigger=e,o.centered=e.hasAttribute(JF),o.disabled=e.hasAttribute(w_),this.attachRipple(e,o),o}attachRipple(e,i){e.removeAttribute(vx),this._hosts.set(e,i)}destroyRipple(e){let i=this._hosts.get(e);i&&(i.ngOnDestroy(),this._hosts.delete(e))}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),nN=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,r){i&2&&Q("mdc-form-field--align-end",r.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[O],attrs:TQ,ngContentSelectors:AQ,decls:1,vars:0,template:function(i,r){i&1&&(ge(),Z(0))},styles:[".mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}"],encapsulation:2,changeDetection:0})}}return n})();var oN=["mat-button",""],sN=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],aN=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],HQ='.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;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;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.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__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 8px);height:var(--mdc-text-button-container-height);font-family:var(--mdc-text-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-app-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-filled-button-horizontal-padding, 16px);height:var(--mdc-filled-button-container-height);font-family:var(--mdc-filled-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-app-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-app-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-app-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-app-level1));height:var(--mdc-protected-button-container-height);font-family:var(--mdc-protected-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-app-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-app-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-app-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-app-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-outlined-button-horizontal-padding, 15px);height:var(--mdc-outlined-button-container-height);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-app-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-app-corner-full));border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-app-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-app-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.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)}',lN=".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}";var UQ=["mat-icon-button",""],WQ=["*"];var YQ=new I("MAT_BUTTON_CONFIG");var qQ=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],kx=(()=>{class n{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,e)}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}constructor(e,i,r,o){this._elementRef=e,this._platform=i,this._ngZone=r,this._animationMode=o,this._focusMonitor=C(yi),this._rippleLoader=C(iN),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let s=C(YQ,{optional:!0}),a=e.nativeElement,l=a.classList;this.disabledInteractive=s?.disabledInteractive??!1,this.color=s?.color??null,this._rippleLoader?.configureRipple(a,{className:"mat-mdc-button-ripple"});for(let{attribute:c,mdcClasses:d}of qQ)a.hasAttribute(c)&&l.add(...d)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static{this.\u0275fac=function(i){pl()}}static{this.\u0275dir=M({type:n,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",W],disabled:[2,"disabled","disabled",W],ariaDisabled:[2,"aria-disabled","ariaDisabled",W],disabledInteractive:[2,"disabledInteractive","disabledInteractive",W]},features:[Ie]})}}return n})();var GQ=(()=>{class n extends kx{constructor(e,i,r,o){super(e,i,r,o),this._haltDisabledEvents=s=>{this.disabled&&(s.preventDefault(),s.stopImmediatePropagation())}}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled||null}static{this.\u0275fac=function(i){pl()}}static{this.\u0275dir=M({type:n,inputs:{tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:gi(e)]},features:[Ie,ne]})}}return n})(),Ol=(()=>{class n extends kx{constructor(e,i,r,o){super(e,i,r,o)}static{this.\u0275fac=function(i){return new(i||n)(p(H),p(Ne),p(X),p(Dt,8))}}static{this.\u0275cmp=A({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(i,r){i&2&&(re("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),ui(r.color?"mat-"+r.color:""),Q("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[ne,O],attrs:oN,ngContentSelectors:aN,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,r){i&1&&(ge(sN),ie(0,"span",0),Z(1),b(2,"span",1),Z(3,1),y(),Z(4,2),ie(5,"span",2)(6,"span",3)),i&2&&Q("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;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;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.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__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 8px);height:var(--mdc-text-button-container-height);font-family:var(--mdc-text-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-app-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-filled-button-horizontal-padding, 16px);height:var(--mdc-filled-button-container-height);font-family:var(--mdc-filled-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-app-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-app-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-app-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-app-level1));height:var(--mdc-protected-button-container-height);font-family:var(--mdc-protected-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-app-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-app-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-app-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-app-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-outlined-button-horizontal-padding, 15px);height:var(--mdc-outlined-button-container-height);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-app-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-app-corner-full));border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-app-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-app-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.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 n})(),JCe=(()=>{class n extends GQ{constructor(e,i,r,o){super(e,i,r,o)}static{this.\u0275fac=function(i){return new(i||n)(p(H),p(Ne),p(X),p(Dt,8))}}static{this.\u0275cmp=A({type:n,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:15,hostBindings:function(i,r){i&2&&(re("disabled",r._getDisabledAttribute())("tabindex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex)("aria-disabled",r._getAriaDisabled()),ui(r.color?"mat-"+r.color:""),Q("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[ne,O],attrs:oN,ngContentSelectors:aN,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,r){i&1&&(ge(sN),ie(0,"span",0),Z(1),b(2,"span",1),Z(3,1),y(),Z(4,2),ie(5,"span",2)(6,"span",3)),i&2&&Q("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:[HQ,lN],encapsulation:2,changeDetection:0})}}return n})();var ma=(()=>{class n extends kx{constructor(e,i,r,o){super(e,i,r,o),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static{this.\u0275fac=function(i){return new(i||n)(p(H),p(Ne),p(X),p(Dt,8))}}static{this.\u0275cmp=A({type:n,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(i,r){i&2&&(re("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),ui(r.color?"mat-"+r.color:""),Q("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[ne,O],attrs:UQ,ngContentSelectors:WQ,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,r){i&1&&(ge(),ie(0,"span",0),Z(1),ie(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;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;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);color:var(--mdc-icon-button-icon-color, var(--mat-app-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.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}',lN],encapsulation:2,changeDetection:0})}}return n})();var bs=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({imports:[Me,Al,Me]})}}return n})();var Ge=function(n){return n[n.State=0]="State",n[n.Transition=1]="Transition",n[n.Sequence=2]="Sequence",n[n.Group=3]="Group",n[n.Animate=4]="Animate",n[n.Keyframes=5]="Keyframes",n[n.Style=6]="Style",n[n.Trigger=7]="Trigger",n[n.Reference=8]="Reference",n[n.AnimateChild=9]="AnimateChild",n[n.AnimateRef=10]="AnimateRef",n[n.Query=11]="Query",n[n.Stagger=12]="Stagger",n}(Ge||{}),Ro="*";function qt(n,t){return{type:Ge.Trigger,name:n,definitions:t,options:{}}}function lt(n,t=null){return{type:Ge.Animate,styles:t,timings:n}}function cN(n,t=null){return{type:Ge.Group,steps:n,options:t}}function dN(n,t=null){return{type:Ge.Sequence,steps:n,options:t}}function De(n){return{type:Ge.Style,styles:n,offset:null}}function _t(n,t,e){return{type:Ge.State,name:n,styles:t,options:e}}function ga(n){return{type:Ge.Keyframes,steps:n}}function at(n,t,e=null){return{type:Ge.Transition,expr:n,animation:t,options:e}}function x_(n=null){return{type:Ge.AnimateChild,options:n}}function S_(n,t,e=null){return{type:Ge.Query,selector:n,animation:t,options:e}}var pa=class{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){let e=t=="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},Ih=class{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,i=0,r=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(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){let e=t*this.totalTime;this.players.forEach(i=>{let r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){let t=this.players.reduce((e,i)=>e===null||i.totalTime>e.totalTime?i:e,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){let e=t=="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},k_="!";var Mh=class{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;t!=null&&(this._attachedHost=null,t.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(t){this._attachedHost=t}},Vn=class extends Mh{constructor(t,e,i,r,o){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r,this.projectableNodes=o}},$i=class extends Mh{constructor(t,e,i,r){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i,this.injector=r}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()}},Ex=class extends Mh{constructor(t){super(),this.element=t instanceof H?t.nativeElement:t}},_a=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){if(t instanceof Vn)return this._attachedPortal=t,this.attachComponentPortal(t);if(t instanceof $i)return this._attachedPortal=t,this.attachTemplatePortal(t);if(this.attachDomPortal&&t instanceof Ex)return this._attachedPortal=t,this.attachDomPortal(t)}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)}};var md=class extends _a{constructor(t,e,i,r,o){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=s=>{this._document;let a=s.element;a.parentNode;let 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=o}attachComponentPortal(t){let i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),r;return t.viewContainerRef?(r=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector,t.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=i.create(t.injector||this._defaultInjector||Oe.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=t,r}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);r!==-1&&e.remove(r)}),this._attachedPortal=t,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}};var uN=(()=>{class n extends $i{constructor(e,i){super(e,i)}static{this.\u0275fac=function(i){return new(i||n)(p(ct),p(ht))}}static{this.\u0275dir=M({type:n,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],standalone:!0,features:[ne]})}}return n})();var Dn=(()=>{class n extends _a{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new P,this.attachDomPortal=o=>{this._document;let s=o.element;s.parentNode;let a=this._document.createComment("dom-portal");o.setAttachedHost(this),s.parentNode.insertBefore(a,s),this._getRootNode().appendChild(s),this._attachedPortal=o,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(s,a)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let i=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),s=i.createComponent(o,i.length,e.injector||i.injector,e.projectableNodes||void 0);return i!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=e,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(e){e.setAttachedHost(this);let i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static{this.\u0275fac=function(i){return new(i||n)(p(Rn),p(ht),p(ce))}}static{this.\u0275dir=M({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[ne]})}}return n})();var eo=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({})}}return n})();var Th=class{};function E_(n){return n&&typeof n.connect=="function"&&!(n instanceof fo)}var pd=function(n){return n[n.REPLACED=0]="REPLACED",n[n.INSERTED=1]="INSERTED",n[n.MOVED=2]="MOVED",n[n.REMOVED=3]="REMOVED",n}(pd||{}),Ah=new I("_ViewRepeater"),gd=class{applyChanges(t,e,i,r,o){t.forEachOperation((s,a,l)=>{let c,d;if(s.previousIndex==null){let u=i(s,a,l);c=e.createEmbeddedView(u.templateRef,u.context,u.index),d=pd.INSERTED}else l==null?(e.remove(a),d=pd.REMOVED):(c=e.get(a),e.move(c,l),d=pd.MOVED);o&&o({context:c?.context,operation:d,record:s})})}detach(){}};var _d=class{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(t=!1,e,i=!0,r){this._multiple=t,this._emitChanges=i,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new k,e&&e.length&&(t?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...t){this._verifyValueAssignment(t),t.forEach(i=>this._markSelected(i));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...t){this._verifyValueAssignment(t),t.forEach(i=>this._unmarkSelected(i));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...t){this._verifyValueAssignment(t);let e=this.selected,i=new Set(t);t.forEach(o=>this._markSelected(o)),e.filter(o=>!i.has(this._getConcreteValue(o,i))).forEach(o=>this._unmarkSelected(o));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(t){return this.isSelected(t)?this.deselect(t):this.select(t)}clear(t=!0){this._unmarkAll();let e=this._hasQueuedChanges();return t&&this._emitChangeEvent(),e}isSelected(t){return this._selection.has(this._getConcreteValue(t))}isEmpty(){return this._selection.size===0}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){t.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(t,e){if(this.compareWith){e=e??this._selection;for(let i of e)if(this.compareWith(t,i))return i;return t}else return t}};var QQ=20,to=(()=>{class n{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new k,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=QQ){return this._platform.isBrowser?new Se(i=>{this._globalSubscription||this._addGlobalListener();let r=e>0?this._scrolled.pipe(qm(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):oe()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){let r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(Ae(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){let i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=Ii(i),o=e.getElementRef().nativeElement;do if(r==o)return!0;while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let e=this._getWindow();return Ri(e.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static{this.\u0275fac=function(i){return new(i||n)(D(X),D(Ne),D(ce,8))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),io=(()=>{class n{constructor(e,i,r,o){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=r,this.dir=o,this._destroyed=new k,this._elementScrolled=new Se(s=>this.ngZone.runOutsideAngular(()=>Ri(this.elementRef.nativeElement,"scroll").pipe(Ce(this._destroyed)).subscribe(s)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){let i=this.elementRef.nativeElement,r=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=r?e.end:e.start),e.right==null&&(e.right=r?e.start:e.end),e.bottom!=null&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),r&&id()!=Qr.NORMAL?(e.left!=null&&(e.right=i.scrollWidth-i.clientWidth-e.left),id()==Qr.INVERTED?e.left=e.right:id()==Qr.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let i=this.elementRef.nativeElement;u_()?i.scrollTo(e):(e.top!=null&&(i.scrollTop=e.top),e.left!=null&&(i.scrollLeft=e.left))}measureScrollOffset(e){let i="left",r="right",o=this.elementRef.nativeElement;if(e=="top")return o.scrollTop;if(e=="bottom")return o.scrollHeight-o.clientHeight-o.scrollTop;let s=this.dir&&this.dir.value=="rtl";return e=="start"?e=s?r:i:e=="end"&&(e=s?i:r),s&&id()==Qr.INVERTED?e==i?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:s&&id()==Qr.NEGATED?e==i?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==i?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}static{this.\u0275fac=function(i){return new(i||n)(p(H),p(to),p(X),p(gt,8))}}static{this.\u0275dir=M({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0})}}return n})(),KQ=20,zi=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new k,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){let o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect(),s=-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,a=-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0;return{top:s,left:a}}change(e=KQ){return e>0?this._change.pipe(qm(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static{this.\u0275fac=function(i){return new(i||n)(D(Ne),D(X),D(ce,8))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Zi=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({})}}return n})(),Oh=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({imports:[ha,Zi,ha,Zi]})}}return n})();var hN=u_(),Ix=class{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=fi(-this._previousScrollPosition.left),t.style.top=fi(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let t=this._document.documentElement,e=this._document.body,i=t.style,r=e.style,o=i.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),hN&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),hN&&(i.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}};var Mx=class{constructor(t,e,i,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(this._scrollSubscription)return;let t=this._scrollDispatcher.scrolled(0).pipe(Ae(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(()=>{let 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}},I_=class{enable(){}disable(){}attach(){}};function Tx(n,t){return t.some(e=>{let i=n.bottome.bottom,o=n.righte.right;return i||r||o||s})}function fN(n,t){return t.some(e=>{let i=n.tope.bottom,o=n.lefte.right;return i||r||o||s})}var Ax=class{constructor(t,e,i,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(!this._scrollSubscription){let t=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(t).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();Tx(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},ZQ=(()=>{class n{constructor(e,i,r,o){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new I_,this.close=s=>new Mx(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new Ix(this._viewportRuler,this._document),this.reposition=s=>new Ax(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}static{this.\u0275fac=function(i){return new(i||n)(D(to),D(zi),D(X),D(ce))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),jn=class{constructor(t){if(this.scrollStrategy=new I_,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){let e=Object.keys(t);for(let i of e)t[i]!==void 0&&(this[i]=t[i])}}};var Ox=class{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}};var vN=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}static{this.\u0275fac=function(i){return new(i||n)(D(ce))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),XQ=(()=>{class n extends vN{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=r=>{let o=this._attachedOverlays;for(let s=o.length-1;s>-1;s--)if(o[s]._keydownEvents.observers.length>0){let a=o[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(r)):a.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static{this.\u0275fac=function(i){return new(i||n)(D(ce),D(X,8))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),JQ=(()=>{class n extends vN{constructor(e,i,r){super(e),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=vi(o)},this._clickListener=o=>{let s=vi(o),a=o.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;let l=this._attachedOverlays.slice();for(let c=l.length-1;c>-1;c--){let d=l[c];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(mN(d.overlayElement,s)||mN(d.overlayElement,a))break;let u=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>u.next(o)):u.next(o)}}}add(e){if(super.add(e),!this._isAttached){let i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let 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{this.\u0275fac=function(i){return new(i||n)(D(ce),D(Ne),D(X,8))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function mN(n,t){let e=typeof ShadowRoot<"u"&&ShadowRoot,i=t;for(;i;){if(i===n)return!0;i=e&&i instanceof ShadowRoot?i.host:i.parentNode}return!1}var ys=(()=>{class n{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||vh()){let r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;othis._backdropClick.next(h),this._backdropTransitionendHandler=h=>{this._disposeBackdrop(h.target)},this._keydownEvents=new k,this._outsidePointerEvents=new k,this._renders=new k,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy,this._afterRenderRef=Nn(()=>Uu(()=>{this._renders.next()},{injector:this._injector}))}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);let e=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=jt(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),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),typeof e?.onDestroy=="function"&&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();let t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){let 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._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.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=E(E({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Pe(E({},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(){let t=this._config.direction;return t?typeof t=="string"?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;let t=this._pane.style;t.width=fi(this._config.width),t.height=fi(this._config.height),t.minWidth=fi(this._config.minWidth),t.minHeight=fi(this._config.minHeight),t.maxWidth=fi(this._config.maxWidth),t.maxHeight=fi(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){let 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(){let t=this._backdropElement;if(t){if(this._animationsDisabled){this._disposeBackdrop(t);return}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,i){let r=la(e||[]).filter(o=>!!o);r.length&&(i?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let t=this._renders.pipe(Ce(et(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(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(){let 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)}},pN="cdk-overlay-connected-position-bounding-box",e7=/([A-Za-z%]+)$/,Rh=class{get positions(){return this._preferredPositions}constructor(t,e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new k,this._resizeSubscription=pe.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}attach(t){this._overlayRef&&this._overlayRef,this._validatePositions(),t.hostElement.classList.add(pN),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){this.reapplyLastPosition();return}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();let t=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[],s;for(let a of this._preferredPositions){let l=this._getOriginPoint(t,r,a),c=this._getOverlayPoint(l,e,a),d=this._getOverlayFit(c,e,i,a);if(d.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,l);return}if(this._canFitWithFlexibleDimensions(d,c,i)){o.push({position:a,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,a)});continue}(!s||s.overlayFit.visibleAreal&&(l=d,a=c)}this._isPushed=!1,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(s.position,s.originPoint);return}this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Rl(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(pN),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let 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,t.indexOf(this._lastPosition)===-1&&(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,i){let r;if(i.originX=="center")r=t.left+t.width/2;else{let s=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;r=i.originX=="start"?s:a}e.left<0&&(r-=e.left);let o;return i.originY=="center"?o=t.top+t.height/2:o=i.originY=="top"?t.top:t.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(t,e,i){let r;i.overlayX=="center"?r=-e.width/2:i.overlayX==="start"?r=this._isRtl()?-e.width:0:r=this._isRtl()?0:-e.width;let o;return i.overlayY=="center"?o=-e.height/2:o=i.overlayY=="top"?0:-e.height,{x:t.x+r,y:t.y+o}}_getOverlayFit(t,e,i,r){let o=_N(e),{x:s,y:a}=t,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(s+=l),c&&(a+=c);let d=0-s,u=s+o.width-i.width,h=0-a,f=a+o.height-i.height,m=this._subtractOverflows(o.width,d,u),g=this._subtractOverflows(o.height,h,f),_=m*g;return{visibleArea:_,isCompletelyWithinViewport:o.width*o.height===_,fitsInViewportVertically:g===o.height,fitsInViewportHorizontally:m==o.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){let r=i.bottom-e.y,o=i.right-e.x,s=gN(this._overlayRef.getConfig().minHeight),a=gN(this._overlayRef.getConfig().minWidth),l=t.fitsInViewportVertically||s!=null&&s<=r,c=t.fitsInViewportHorizontally||a!=null&&a<=o;return l&&c}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};let r=_N(e),o=this._viewportRect,s=Math.max(t.x+r.width-o.width,0),a=Math.max(t.y+r.height-o.height,0),l=Math.max(o.top-i.top-t.y,0),c=Math.max(o.left-i.left-t.x,0),d=0,u=0;return r.width<=o.width?d=c||-s:d=t.xm&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-m/2)}let l=e.overlayX==="start"&&!r||e.overlayX==="end"&&r,c=e.overlayX==="end"&&!r||e.overlayX==="start"&&r,d,u,h;if(c)h=i.width-t.x+this._viewportMargin*2,d=t.x-this._viewportMargin;else if(l)u=t.x,d=i.right-t.x;else{let f=Math.min(i.right-t.x+i.left,t.x),m=this._lastBoundingBoxSize.width;d=f*2,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:o}}_setBoundingBoxStyles(t,e){let i=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=fi(i.height),r.top=fi(i.top),r.bottom=fi(i.bottom),r.width=fi(i.width),r.left=fi(i.left),r.right=fi(i.right),e.overlayX==="center"?r.alignItems="center":r.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?r.justifyContent="center":r.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",o&&(r.maxHeight=fi(o)),s&&(r.maxWidth=fi(s))}this._lastBoundingBoxSize=i,Rl(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Rl(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Rl(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){let i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){let d=this._viewportRuler.getViewportScrollPosition();Rl(i,this._getExactOverlayY(e,t,d)),Rl(i,this._getExactOverlayX(e,t,d))}else i.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),s.maxHeight&&(r?i.maxHeight=fi(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=fi(s.maxWidth):o&&(i.maxWidth="")),Rl(this._pane.style,i)}_getExactOverlayY(t,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,t);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),t.overlayY==="bottom"){let s=this._document.documentElement.clientHeight;r.bottom=`${s-(o.y+this._overlayRect.height)}px`}else r.top=fi(o.y);return r}_getExactOverlayX(t,e,i){let r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i));let s;if(this._isRtl()?s=t.overlayX==="end"?"left":"right":s=t.overlayX==="end"?"right":"left",s==="right"){let a=this._document.documentElement.clientWidth;r.right=`${a-(o.x+this._overlayRect.width)}px`}else r.left=fi(o.x);return r}_getScrollVisibility(){let t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:fN(t,i),isOriginOutsideView:Tx(t,i),isOverlayClipped:fN(e,i),isOverlayOutsideView:Tx(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,r)=>i-Math.max(r,0),t)}_getNarrowedViewportRect(){let t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return e==="x"?t.offsetX==null?this._offsetX:t.offsetX:t.offsetY==null?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&la(t).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){let t=this._origin;if(t instanceof H)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();let e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}};function Rl(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function gN(n){if(typeof n!="number"&&n!=null){let[t,e]=n.split(e7);return!e||e==="px"?parseFloat(t):null}return n||null}function _N(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}function t7(n,t){return n===t?!0:n.isOriginClipped===t.isOriginClipped&&n.isOriginOutsideView===t.isOriginOutsideView&&n.isOverlayClipped===t.isOverlayClipped&&n.isOverlayOutsideView===t.isOverlayOutsideView}var bN="cdk-global-overlay-wrapper",Rx=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(t){let 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(bN),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;let t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=i,l=(r==="100%"||r==="100vw")&&(!s||s==="100%"||s==="100vw"),c=(o==="100%"||o==="100vh")&&(!a||a==="100%"||a==="100vh"),d=this._xPosition,u=this._xOffset,h=this._overlayRef.getConfig().direction==="rtl",f="",m="",g="";l?g="flex-start":d==="center"?(g="center",h?m=u:f=u):h?d==="left"||d==="end"?(g="flex-end",f=u):(d==="right"||d==="start")&&(g="flex-start",m=u):d==="left"||d==="start"?(g="flex-start",f=u):(d==="right"||d==="end")&&(g="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=g,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(bN),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}},i7=(()=>{class n{constructor(e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new Rx}flexibleConnectedTo(e){return new Rh(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static{this.\u0275fac=function(i){return new(i||n)(D(zi),D(ce),D(Ne),D(ys))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),n7=0,dt=(()=>{class n{constructor(e,i,r,o,s,a,l,c,d,u,h,f){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,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){let i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),s=new jn(e);return s.direction=s.direction||this._directionality.value,new vs(o,i,r,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(Pi))}position(){return this._positionBuilder}_createPaneElement(e){let i=this._document.createElement("div");return i.id=`cdk-overlay-${n7++}`,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){let e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Xn)),new md(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static{this.\u0275fac=function(i){return new(i||n)(D(ZQ),D(ys),D(Rn),D(i7),D(XQ),D(Oe),D(X),D(ce),D(gt),D(Mo),D(JQ),D(Dt,8))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),r7=[{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 I("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let n=C(dt);return()=>n.scrollStrategies.reposition()}}),Ph=(()=>{class n{constructor(e){this.elementRef=e}static{this.\u0275fac=function(i){return new(i||n)(p(H))}}static{this.\u0275dir=M({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}}return n})(),Px=(()=>{class n{get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}constructor(e,i,r,o,s){this._overlay=e,this._dir=s,this._backdropSubscription=pe.EMPTY,this._attachSubscription=pe.EMPTY,this._detachSubscription=pe.EMPTY,this._positionSubscription=pe.EMPTY,this._disposeOnNavigation=!1,this._ngZone=C(X),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new P,this.positionChange=new P,this.attach=new P,this.detach=new P,this.overlayKeydown=new P,this.overlayOutsideClick=new P,this._templatePortal=new $i(i,r),this._scrollStrategyFactory=o,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=r7);let e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!xt(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let r=this._getOriginElement(),o=vi(i);(!r||r!==o&&!r.contains(o))&&this.overlayOutsideClick.next(i)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new jn({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(i.width=this.width),(this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){let i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof Ph?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Ph?this.origin.elementRef.nativeElement:this.origin instanceof H?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_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(D0(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||n)(p(dt),p(ct),p(ht),p(yN),p(gt,8))}}static{this.\u0275dir=M({type:n,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",W],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",W],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",W],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",W],push:[2,"cdkConnectedOverlayPush","push",W],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",W]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[Ie,ze]})}}return n})();function o7(n){return()=>n.scrollStrategies.reposition()}var s7={provide:yN,deps:[dt],useFactory:o7},Ti=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({providers:[dt,s7],imports:[ha,eo,Oh,Oh]})}}return n})(),wN=(()=>{class n extends ys{constructor(e,i){super(e,i)}ngOnDestroy(){super.ngOnDestroy(),this._fullScreenEventName&&this._fullScreenListener&&this._document.removeEventListener(this._fullScreenEventName,this._fullScreenListener)}_createContainer(){super._createContainer(),this._adjustParentForFullscreenChange(),this._addFullscreenChangeListener(()=>this._adjustParentForFullscreenChange())}_adjustParentForFullscreenChange(){if(!this._containerElement)return;(this.getFullscreenElement()||this._document.body).appendChild(this._containerElement)}_addFullscreenChangeListener(e){let i=this._getEventName();i&&(this._fullScreenListener&&this._document.removeEventListener(i,this._fullScreenListener),this._document.addEventListener(i,e),this._fullScreenListener=e)}_getEventName(){if(!this._fullScreenEventName){let e=this._document;e.fullscreenEnabled?this._fullScreenEventName="fullscreenchange":e.webkitFullscreenEnabled?this._fullScreenEventName="webkitfullscreenchange":e.mozFullScreenEnabled?this._fullScreenEventName="mozfullscreenchange":e.msFullscreenEnabled&&(this._fullScreenEventName="MSFullscreenChange")}return this._fullScreenEventName}getFullscreenElement(){let e=this._document;return e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement||null}static{this.\u0275fac=function(i){return new(i||n)(D(ce),D(Ne))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function a7(n,t){if(n&1){let e=ye();b(0,"div",1)(1,"button",2),F("click",function(){N(e);let r=S();return L(r.action())}),z(2),y()()}if(n&2){let e=S();w(2),qe(" ",e.data.action," ")}}var l7=["label"];function c7(n,t){}var d7=Math.pow(2,31)-1,Fh=class{constructor(t,e){this._overlayRef=e,this._afterDismissed=new k,this._afterOpened=new k,this._onAction=new k,this._dismissedByAction=!1,this.containerInstance=t,t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,d7))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},CN=new I("MatSnackBarData"),bd=class{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}},u7=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275dir=M({type:n,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"],standalone:!0})}}return n})(),h7=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275dir=M({type:n,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"],standalone:!0})}}return n})(),f7=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275dir=M({type:n,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"],standalone:!0})}}return n})(),DN=(()=>{class n{constructor(e,i){this.snackBarRef=e,this.data=i}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static{this.\u0275fac=function(i){return new(i||n)(p(Fh),p(CN))}}static{this.\u0275cmp=A({type:n,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],standalone:!0,features:[O],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(i,r){i&1&&(b(0,"div",0),z(1),y(),U(2,a7,3,1,"div",1)),i&2&&(w(),qe(" ",r.data.message,`
`),w(),Y(r.hasAction?2:-1))},dependencies:[Ol,u7,h7,f7],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0})}}return n})(),m7={snackBarState:qt("state",[_t("void, hidden",De({transform:"scale(0.8)",opacity:0})),_t("visible",De({transform:"scale(1)",opacity:1})),at("* => visible",lt("150ms cubic-bezier(0, 0, 0.2, 1)")),at("* => void, * => hidden",lt("75ms cubic-bezier(0.4, 0.0, 1, 1)",De({opacity:0})))])},p7=0,g7=(()=>{class n extends _a{constructor(e,i,r,o,s){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=r,this._platform=o,this.snackBarConfig=s,this._document=C(ce),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new k,this._onExit=new k,this._onEnter=new k,this._animationState="void",this._liveElementId=`mat-snack-bar-container-live-${p7++}`,this.attachDomPortal=a=>{this._assertNotAttached();let l=this._portalOutlet.attachDomPortal(a);return this._afterPortalAttached(),l},s.politeness==="assertive"&&!s.announcementMessage?this._live="assertive":s.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();let i=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),i}attachTemplatePortal(e){this._assertNotAttached();let i=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),i}onAnimationEnd(e){let{fromState:i,toState:r}=e;if((r==="void"&&i!=="void"||r==="hidden")&&this._completeExit(),r==="visible"){let o=this._onEnter;this._ngZone.run(()=>{o.next(),o.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let e=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(s=>e.classList.add(s)):e.classList.add(i)),this._exposeToModals();let r=this._label.nativeElement,o="mdc-snackbar__label";r.classList.toggle(o,!r.querySelector(`.${o}`))}_exposeToModals(){let e=this._liveElementId,i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{let i=e.getAttribute("aria-owns");if(i){let r=i.replace(this._liveElementId,"").trim();r.length>0?e.setAttribute("aria-owns",r):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{let e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),i=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&i){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),i.appendChild(e),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static{this.\u0275fac=function(i){return new(i||n)(p(X),p(H),p(_e),p(Ne),p(bd))}}static{this.\u0275cmp=A({type:n,selectors:[["mat-snack-bar-container"]],viewQuery:function(i,r){if(i&1&&(le(Dn,7),le(l7,7)),i&2){let o;B(o=$())&&(r._portalOutlet=o.first),B(o=$())&&(r._label=o.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:1,hostBindings:function(i,r){i&1&&_l("@state.done",function(s){return r.onAnimationEnd(s)}),i&2&&gl("@state",r._animationState)},standalone:!0,features:[ne,O],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(i,r){i&1&&(b(0,"div",1)(1,"div",2,0)(3,"div",3),U(4,c7,0,0,"ng-template",4),y(),ie(5,"div"),y()()),i&2&&(w(5),re("aria-live",r._live)("role",r._role)("id",r._liveElementId))},dependencies:[Dn],styles:[".mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}.cdk-high-contrast-active .mat-mdc-snackbar-surface{outline:solid 1px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mdc-snackbar-supporting-text-color, var(--mat-app-inverse-on-surface));border-radius:var(--mdc-snackbar-container-shape, var(--mat-app-corner-extra-small));background-color:var(--mdc-snackbar-container-color, var(--mat-app-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mdc-snackbar-supporting-text-font, var(--mat-app-body-medium-font));font-size:var(--mdc-snackbar-supporting-text-size, var(--mat-app-body-medium-size));font-weight:var(--mdc-snackbar-supporting-text-weight, var(--mat-app-body-medium-weight));line-height:var(--mdc-snackbar-supporting-text-line-height, var(--mat-app-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-app-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}"],encapsulation:2,data:{animation:[m7.snackBarState]}})}}return n})();function _7(){return new bd}var b7=new I("mat-snack-bar-default-options",{providedIn:"root",factory:_7}),Fx=(()=>{class n{get _openedSnackBarRef(){let e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(e,i,r,o,s,a){this._overlay=e,this._live=i,this._injector=r,this._breakpointObserver=o,this._parentSnackBar=s,this._defaultConfig=a,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=DN,this.snackBarContainerComponent=g7,this.handsetCssClass="mat-mdc-snack-bar-handset"}openFromComponent(e,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",r){let o=E(E({},this._defaultConfig),r);return o.data={message:e,action:i},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){let r=i&&i.viewContainerRef&&i.viewContainerRef.injector,o=Oe.create({parent:r||this._injector,providers:[{provide:bd,useValue:i}]}),s=new Vn(this.snackBarContainerComponent,i.viewContainerRef,o),a=e.attach(s);return a.instance.snackBarConfig=i,a.instance}_attach(e,i){let r=E(E(E({},new bd),this._defaultConfig),i),o=this._createOverlay(r),s=this._attachSnackBarContainer(o,r),a=new Fh(s,o);if(e instanceof ct){let l=new $i(e,null,{$implicit:r.data,snackBarRef:a});a.instance=s.attachTemplatePortal(l)}else{let l=this._createInjector(r,a),c=new Vn(e,void 0,l),d=s.attachComponentPortal(c);a.instance=d.instance}return this._breakpointObserver.observe(h_.HandsetPortrait).pipe(Ce(o.detachments())).subscribe(l=>{o.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),r.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(a,r),this._openedSnackBarRef=a,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration))}_createOverlay(e){let i=new jn;i.direction=e.direction;let r=this._overlay.position().global(),o=e.direction==="rtl",s=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!o||e.horizontalPosition==="end"&&o,a=!s&&e.horizontalPosition!=="center";return s?r.left("0"):a?r.right("0"):r.centerHorizontally(),e.verticalPosition==="top"?r.top("0"):r.bottom("0"),i.positionStrategy=r,this._overlay.create(i)}_createInjector(e,i){let r=e&&e.viewContainerRef&&e.viewContainerRef.injector;return Oe.create({parent:r||this._injector,providers:[{provide:Fh,useValue:i},{provide:CN,useValue:e.data}]})}static{this.\u0275fac=function(i){return new(i||n)(D(dt),D(v_),D(Oe),D(od),D(n,12),D(b7))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Nx=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({providers:[Fx],imports:[Ti,eo,bs,Me,DN,Me]})}}return n})();var y7={url:"",deserializer:n=>JSON.parse(n.data),serializer:n=>JSON.stringify(n)},w7="WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }",M_=class n extends vc{constructor(t,e){if(super(),this._socket=null,t instanceof Se)this.destination=e,this.source=t;else{let i=this._config=Object.assign({},y7);if(this._output=new k,typeof t=="string")i.url=t;else for(let r in t)t.hasOwnProperty(r)&&(i[r]=t[r]);if(!i.WebSocketCtor&&WebSocket)i.WebSocketCtor=WebSocket;else if(!i.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new qn}}lift(t){let e=new n(this._config,this.destination);return e.operator=t,e.source=this,e}_resetState(){this._socket=null,this.source||(this.destination=new qn),this._output=new k}multiplex(t,e,i){let r=this;return new Se(o=>{try{r.next(t())}catch(a){o.error(a)}let s=r.subscribe({next:a=>{try{i(a)&&o.next(a)}catch(l){o.error(l)}},error:a=>o.error(a),complete:()=>o.complete()});return()=>{try{r.next(e())}catch(a){o.error(a)}s.unsubscribe()}})}_connectSocket(){let{WebSocketCtor:t,protocol:e,url:i,binaryType:r}=this._config,o=this._output,s=null;try{s=e?new t(i,e):new t(i),this._socket=s,r&&(this._socket.binaryType=r)}catch(l){o.error(l);return}let a=new pe(()=>{this._socket=null,s&&s.readyState===1&&s.close()});s.onopen=l=>{let{_socket:c}=this;if(!c){s.close(),this._resetState();return}let{openObserver:d}=this._config;d&&d.next(l);let u=this.destination;this.destination=Qo.create(h=>{if(s.readyState===1)try{let{serializer:f}=this._config;s.send(f(h))}catch(f){this.destination.error(f)}},h=>{let{closingObserver:f}=this._config;f&&f.next(void 0),h&&h.code?s.close(h.code,h.reason):o.error(new TypeError(w7)),this._resetState()},()=>{let{closingObserver:h}=this._config;h&&h.next(void 0),s.close(),this._resetState()}),u&&u instanceof qn&&a.add(u.subscribe(this.destination))},s.onerror=l=>{this._resetState(),o.error(l)},s.onclose=l=>{s===this._socket&&this._resetState();let{closeObserver:c}=this._config;c&&c.next(l),l.wasClean?o.complete():o.error(l)},s.onmessage=l=>{try{let{deserializer:c}=this._config;o.next(c(l))}catch(c){o.error(c)}}}_subscribe(t){let{source:e}=this;return e?e.subscribe(t):(this._socket||this._connectSocket(),this._output.subscribe(t),t.add(()=>{let{_socket:i}=this;this._output.observers.length===0&&(i&&(i.readyState===1||i.readyState===0)&&i.close(),this._resetState())}),t)}unsubscribe(){let{_socket:t}=this;t&&(t.readyState===1||t.readyState===0)&&t.close(),this._resetState(),super.unsubscribe()}};function Lx(n){return new M_(n)}var AN=(()=>{class n{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static{this.\u0275fac=function(i){return new(i||n)(p(vn),p(H))}}static{this.\u0275dir=M({type:n})}}return n})(),Dd=(()=>{class n extends AN{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xe(n)))(r||n)}})()}static{this.\u0275dir=M({type:n,features:[ne]})}}return n})(),$t=new I(""),C7={provide:$t,useExisting:Ye(()=>D7),multi:!0},D7=(()=>{class n extends Dd{writeValue(e){this.setProperty("checked",e)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xe(n)))(r||n)}})()}static{this.\u0275dir=M({type:n,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(i,r){i&1&&F("change",function(s){return r.onChange(s.target.checked)})("blur",function(){return r.onTouched()})},features:[de([C7]),ne]})}}return n})(),x7={provide:$t,useExisting:Ye(()=>B_),multi:!0};function S7(){let n=ms()?ms().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}var k7=new I(""),B_=(()=>{class n extends AN{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!S7())}writeValue(e){let i=e??"";this.setProperty("value",i)}_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{this.\u0275fac=function(i){return new(i||n)(p(vn),p(H),p(k7,8))}}static{this.\u0275dir=M({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,r){i&1&&F("input",function(s){return r._handleInput(s.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(s){return r._compositionEnd(s.target.value)})},features:[de([x7]),ne]})}}return n})();function ya(n){return n==null||(typeof n=="string"||Array.isArray(n))&&n.length===0}function ON(n){return n!=null&&typeof n.length=="number"}var Ji=new I(""),xd=new I(""),E7=/^(?=.{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])?)*$/,wa=class{static min(t){return RN(t)}static max(t){return I7(t)}static required(t){return M7(t)}static requiredTrue(t){return T7(t)}static email(t){return A7(t)}static minLength(t){return O7(t)}static maxLength(t){return R7(t)}static pattern(t){return PN(t)}static nullValidator(t){return A_(t)}static compose(t){return BN(t)}static composeAsync(t){return $N(t)}};function RN(n){return t=>{if(ya(t.value)||ya(n))return null;let e=parseFloat(t.value);return!isNaN(e)&&e{if(ya(t.value)||ya(n))return null;let e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}function M7(n){return ya(n.value)?{required:!0}:null}function T7(n){return n.value===!0?null:{required:!0}}function A7(n){return ya(n.value)||E7.test(n.value)?null:{email:!0}}function O7(n){return t=>ya(t.value)||!ON(t.value)?null:t.value.lengthON(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}function PN(n){if(!n)return A_;let t,e;return typeof n=="string"?(e="",n.charAt(0)!=="^"&&(e+="^"),e+=n,n.charAt(n.length-1)!=="$"&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(ya(i.value))return null;let r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function A_(n){return null}function FN(n){return n!=null}function NN(n){return ea(n)?Lt(n):n}function LN(n){let t={};return n.forEach(e=>{t=e!=null?E(E({},t),e):t}),Object.keys(t).length===0?null:t}function VN(n,t){return t.map(e=>e(n))}function P7(n){return!n.validate}function jN(n){return n.map(t=>P7(t)?t:e=>t.validate(e))}function BN(n){if(!n)return null;let t=n.filter(FN);return t.length==0?null:function(e){return LN(VN(e,t))}}function zx(n){return n!=null?BN(jN(n)):null}function $N(n){if(!n)return null;let t=n.filter(FN);return t.length==0?null:function(e){let i=VN(e,t).map(NN);return Du(i).pipe(fe(LN))}}function Hx(n){return n!=null?$N(jN(n)):null}function xN(n,t){return n===null?[t]:Array.isArray(n)?[...n,t]:[n,t]}function zN(n){return n._rawValidators}function HN(n){return n._rawAsyncValidators}function Vx(n){return n?Array.isArray(n)?n:[n]:[]}function O_(n,t){return Array.isArray(n)?n.includes(t):n===t}function SN(n,t){let e=Vx(t);return Vx(n).forEach(r=>{O_(e,r)||e.push(r)}),e}function kN(n,t){return Vx(t).filter(e=>!O_(n,e))}var R_=class{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=zx(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Hx(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):!1}getError(t,e){return this.control?this.control.getError(t,e):null}},un=class extends R_{get formDirective(){return null}get path(){return null}},no=class extends R_{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},P_=class{constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},F7={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},Oxe=Pe(E({},F7),{"[class.ng-submitted]":"isSubmitted"}),Sd=(()=>{class n extends P_{constructor(e){super(e)}static{this.\u0275fac=function(i){return new(i||n)(p(no,2))}}static{this.\u0275dir=M({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&Q("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[ne]})}}return n})(),Rxe=(()=>{class n extends P_{constructor(e){super(e)}static{this.\u0275fac=function(i){return new(i||n)(p(un,10))}}static{this.\u0275dir=M({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){i&2&&Q("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[ne]})}}return n})();var Nh="VALID",T_="INVALID",vd="PENDING",Lh="DISABLED",Ca=class{},F_=class extends Ca{constructor(t,e){super(),this.value=t,this.source=e}},jh=class extends Ca{constructor(t,e){super(),this.pristine=t,this.source=e}},Bh=class extends Ca{constructor(t,e){super(),this.touched=t,this.source=e}},yd=class extends Ca{constructor(t,e){super(),this.status=t,this.source=e}},jx=class extends Ca{constructor(t){super(),this.source=t}},Bx=class extends Ca{constructor(t){super(),this.source=t}};function Ux(n){return($_(n)?n.validators:n)||null}function N7(n){return Array.isArray(n)?zx(n):n||null}function Wx(n,t){return($_(t)?t.asyncValidators:n)||null}function L7(n){return Array.isArray(n)?Hx(n):n||null}function $_(n){return n!=null&&!Array.isArray(n)&&typeof n=="object"}function UN(n,t,e){let i=n.controls;if(!(t?Object.keys(i):i).length)throw new ee(1e3,"");if(!i[e])throw new ee(1001,"")}function WN(n,t,e){n._forEachChild((i,r)=>{if(e[r]===void 0)throw new ee(1002,"")})}var wd=class{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=Jn(()=>this.statusReactive()),this.statusReactive=di(void 0),this._pristine=Jn(()=>this.pristineReactive()),this.pristineReactive=di(!0),this._touched=Jn(()=>this.touchedReactive()),this.touchedReactive=di(!1),this._events=new k,this.events=this._events.asObservable(),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 status(){return Nn(this.statusReactive)}set status(t){Nn(()=>this.statusReactive.set(t))}get valid(){return this.status===Nh}get invalid(){return this.status===T_}get pending(){return this.status==vd}get disabled(){return this.status===Lh}get enabled(){return this.status!==Lh}get pristine(){return Nn(this.pristineReactive)}set pristine(t){Nn(()=>this.pristineReactive.set(t))}get dirty(){return!this.pristine}get touched(){return Nn(this.touchedReactive)}set touched(t){Nn(()=>this.touchedReactive.set(t))}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(SN(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(SN(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(kN(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(kN(t,this._rawAsyncValidators))}hasValidator(t){return O_(this._rawValidators,t)}hasAsyncValidator(t){return O_(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let e=this.touched===!1;this.touched=!0;let i=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(Pe(E({},t),{sourceControl:i})),e&&t.emitEvent!==!1&&this._events.next(new Bh(!0,i))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(t))}markAsUntouched(t={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=t.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:i})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,i),e&&t.emitEvent!==!1&&this._events.next(new Bh(!1,i))}markAsDirty(t={}){let e=this.pristine===!0;this.pristine=!1;let i=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(Pe(E({},t),{sourceControl:i})),e&&t.emitEvent!==!1&&this._events.next(new jh(!1,i))}markAsPristine(t={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=t.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,i),e&&t.emitEvent!==!1&&this._events.next(new jh(!0,i))}markAsPending(t={}){this.status=vd;let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new yd(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(Pe(E({},t),{sourceControl:e}))}disable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=Lh,this.errors=null,this._forEachChild(r=>{r.disable(Pe(E({},t),{onlySelf:!0}))}),this._updateValue();let i=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new F_(this.value,i)),this._events.next(new yd(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Pe(E({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=Nh,this._forEachChild(i=>{i.enable(Pe(E({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Pe(E({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t,e){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Nh||this.status===vd)&&this._runAsyncValidator(i,t.emitEvent)}let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new F_(this.value,e)),this._events.next(new yd(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(Pe(E({},t),{sourceControl:e}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Lh:Nh}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,e){if(this.asyncValidator){this.status=vd,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let i=NN(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(t){let e=t;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){let i=e?this.get(e):this;return i&&i.errors?i.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,e,i){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||i)&&this._events.next(new yd(this.status,e)),this._parent&&this._parent._updateControlsErrors(t,e,i)}_initObservables(){this.valueChanges=new P,this.statusChanges=new P}_calculateStatus(){return this._allControlsDisabled()?Lh:this.errors?T_:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(vd)?vd:this._anyControlsHaveStatus(T_)?T_:Nh}_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,e){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,e),r&&this._events.next(new jh(this.pristine,e))}_updateTouched(t={},e){this.touched=this._anyControlsTouched(),this._events.next(new Bh(this.touched,e)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,e)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){$_(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let e=this._parent&&this._parent.dirty;return!t&&!!e&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=N7(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=L7(this._rawAsyncValidators)}},Fl=class extends wd{constructor(t,e,i){super(Ux(e),Wx(i,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,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.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,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){WN(this,!0,t),Object.keys(t).forEach(i=>{UN(this,!0,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(Object.keys(t).forEach(i=>{let r=this.controls[i];r&&r.patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t?t[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>i._syncPendingControls()?!0:e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(let 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}};var Pxe=Fl;var $x=class extends Fl{};var $h=new I("CallSetDisabledState",{providedIn:"root",factory:()=>z_}),z_="always";function Yx(n,t){return[...t.path,n]}function N_(n,t,e=z_){qx(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||e==="always")&&t.valueAccessor.setDisabledState?.(n.disabled),j7(n,t),$7(n,t),B7(n,t),V7(n,t)}function L_(n,t,e=!0){let i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),j_(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function V_(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function V7(n,t){if(t.valueAccessor.setDisabledState){let e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}function qx(n,t){let e=zN(n);t.validator!==null?n.setValidators(xN(e,t.validator)):typeof e=="function"&&n.setValidators([e]);let i=HN(n);t.asyncValidator!==null?n.setAsyncValidators(xN(i,t.asyncValidator)):typeof i=="function"&&n.setAsyncValidators([i]);let r=()=>n.updateValueAndValidity();V_(t._rawValidators,r),V_(t._rawAsyncValidators,r)}function j_(n,t){let e=!1;if(n!==null){if(t.validator!==null){let r=zN(n);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==t.validator);o.length!==r.length&&(e=!0,n.setValidators(o))}}if(t.asyncValidator!==null){let r=HN(n);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==t.asyncValidator);o.length!==r.length&&(e=!0,n.setAsyncValidators(o))}}}let i=()=>{};return V_(t._rawValidators,i),V_(t._rawAsyncValidators,i),e}function j7(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,n.updateOn==="change"&&YN(n,t)})}function B7(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,n.updateOn==="blur"&&n._pendingChange&&YN(n,t),n.updateOn!=="submit"&&n.markAsTouched()})}function YN(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function $7(n,t){let e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}function qN(n,t){n==null,qx(n,t)}function z7(n,t){return j_(n,t)}function GN(n,t){if(!n.hasOwnProperty("model"))return!1;let e=n.model;return e.isFirstChange()?!0:!Object.is(t,e.currentValue)}function H7(n){return Object.getPrototypeOf(n.constructor)===Dd}function QN(n,t){n._syncPendingControls(),t.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function KN(n,t){if(!t)return null;Array.isArray(t);let e,i,r;return t.forEach(o=>{o.constructor===B_?e=o:H7(o)?i=o:r=o}),r||i||e||null}function U7(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1)}var W7={provide:un,useExisting:Ye(()=>Gx)},Vh=Promise.resolve(),Gx=(()=>{class n extends un{get submitted(){return Nn(this.submittedReactive)}constructor(e,i,r){super(),this.callSetDisabledState=r,this._submitted=Jn(()=>this.submittedReactive()),this.submittedReactive=di(!1),this._directives=new Set,this.ngSubmit=new P,this.form=new Fl({},zx(e),Hx(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Vh.then(()=>{let i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),N_(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Vh.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Vh.then(()=>{let i=this._findContainer(e.path),r=new Fl({});qN(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Vh.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){Vh.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),QN(this.form,this._directives),this.ngSubmit.emit(e),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static{this.\u0275fac=function(i){return new(i||n)(p(Ji,10),p(xd,10),p($h,8))}}static{this.\u0275dir=M({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,r){i&1&&F("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[de([W7]),ne]})}}return n})();function EN(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1)}function IN(n){return typeof n=="object"&&n!==null&&Object.keys(n).length===2&&"value"in n&&"disabled"in n}var va=class extends wd{constructor(t=null,e,i){super(Ux(e),Wx(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),$_(e)&&(e.nonNullable||e.initialValueIsDefault)&&(IN(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==!1)),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){EN(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){EN(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){IN(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}},kd=va,Y7=n=>n instanceof va,q7=(()=>{class n extends un{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Yx(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xe(n)))(r||n)}})()}static{this.\u0275dir=M({type:n,features:[ne]})}}return n})();var Nxe=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275dir=M({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return n})(),G7={provide:$t,useExisting:Ye(()=>Q7),multi:!0},Q7=(()=>{class n extends Dd{writeValue(e){let i=e??"";this.setProperty("value",i)}registerOnChange(e){this.onChange=i=>{e(i==""?null:parseFloat(i))}}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xe(n)))(r||n)}})()}static{this.\u0275dir=M({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,r){i&1&&F("input",function(s){return r.onChange(s.target.value)})("blur",function(){return r.onTouched()})},features:[de([G7]),ne]})}}return n})(),K7={provide:$t,useExisting:Ye(()=>X7),multi:!0};var Z7=(()=>{class n{constructor(){this._accessors=[]}add(e,i){this._accessors.push([e,i])}remove(e){for(let i=this._accessors.length-1;i>=0;--i)if(this._accessors[i][1]===e){this._accessors.splice(i,1);return}}select(e){this._accessors.forEach(i=>{this._isSameGroup(i,e)&&i[1]!==e&&i[1].fireUncheck(e.value)})}_isSameGroup(e,i){return e[0].control?e[0]._parent===i._control._parent&&e[1].name===i.name:!1}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),X7=(()=>{class n extends Dd{constructor(e,i,r,o){super(e,i),this._registry=r,this._injector=o,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=C($h,{optional:!0})??z_}ngOnInit(){this._control=this._injector.get(no),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}setDisabledState(e){(this.setDisabledStateFired||e||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",e),this.setDisabledStateFired=!0}fireUncheck(e){this.writeValue(e)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}static{this.\u0275fac=function(i){return new(i||n)(p(vn),p(H),p(Z7),p(Oe))}}static{this.\u0275dir=M({type:n,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(i,r){i&1&&F("change",function(){return r.onChange()})("blur",function(){return r.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[de([K7]),ne]})}}return n})();var Qx=new I(""),J7={provide:no,useExisting:Ye(()=>Nl)},Nl=(()=>{class n extends no{set isDisabled(e){}static{this._ngModelWarningSentOnce=!1}constructor(e,i,r,o,s){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=s,this.update=new P,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=KN(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let i=e.form.previousValue;i&&L_(i,this,!1),N_(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}GN(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&L_(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static{this.\u0275fac=function(i){return new(i||n)(p(Ji,10),p(xd,10),p($t,10),p(Qx,8),p($h,8))}}static{this.\u0275dir=M({type:n,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[de([J7]),ne,ze]})}}return n})(),eK={provide:un,useExisting:Ye(()=>Ed)},Ed=(()=>{class n extends un{get submitted(){return Nn(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}constructor(e,i,r){super(),this.callSetDisabledState=r,this._submitted=Jn(()=>this._submittedReactive()),this._submittedReactive=di(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new P,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(j_(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){let i=this.form.get(e.path);return N_(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){L_(e.control||null,e,!1),U7(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this._submittedReactive.set(!0),QN(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new jx(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this._submittedReactive.set(!1),this.form._events.next(new Bx(this.form))}_updateDomValue(){this.directives.forEach(e=>{let i=e.control,r=this.form.get(e.path);i!==r&&(L_(i||null,e),Y7(r)&&(N_(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let i=this.form.get(e.path);qN(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let i=this.form.get(e.path);i&&z7(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){qx(this.form,this),this._oldForm&&j_(this._oldForm,this)}_checkFormPresent(){this.form}static{this.\u0275fac=function(i){return new(i||n)(p(Ji,10),p(xd,10),p($h,8))}}static{this.\u0275dir=M({type:n,selectors:[["","formGroup",""]],hostBindings:function(i,r){i&1&&F("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[de([eK]),ne,ze]})}}return n})(),tK={provide:un,useExisting:Ye(()=>H_)},H_=(()=>{class n extends q7{constructor(e,i,r){super(),this.name=null,this._parent=e,this._setValidators(i),this._setAsyncValidators(r)}_checkParentType(){ZN(this._parent)}static{this.\u0275fac=function(i){return new(i||n)(p(un,13),p(Ji,10),p(xd,10))}}static{this.\u0275dir=M({type:n,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},features:[de([tK]),ne]})}}return n})(),iK={provide:un,useExisting:Ye(()=>U_)},U_=(()=>{class n extends un{constructor(e,i,r){super(),this.name=null,this._parent=e,this._setValidators(i),this._setAsyncValidators(r)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Yx(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){ZN(this._parent)}static{this.\u0275fac=function(i){return new(i||n)(p(un,13),p(Ji,10),p(xd,10))}}static{this.\u0275dir=M({type:n,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},features:[de([iK]),ne]})}}return n})();function ZN(n){return!(n instanceof H_)&&!(n instanceof Ed)&&!(n instanceof U_)}var nK={provide:no,useExisting:Ye(()=>rK)},rK=(()=>{class n extends no{set isDisabled(e){}static{this._ngModelWarningSentOnce=!1}constructor(e,i,r,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.name=null,this.update=new P,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=KN(this,o)}ngOnChanges(e){this._added||this._setUpControl(),GN(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Yx(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static{this.\u0275fac=function(i){return new(i||n)(p(un,13),p(Ji,10),p(xd,10),p($t,10),p(Qx,8))}}static{this.\u0275dir=M({type:n,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[de([nK]),ne,ze]})}}return n})(),oK={provide:$t,useExisting:Ye(()=>JN),multi:!0};function XN(n,t){return n==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${n}: ${t}`.slice(0,50))}function sK(n){return n.split(":")[0]}var JN=(()=>{class n extends Dd{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;let i=this._getOptionId(e),r=XN(i,e);this.setProperty("value",r)}registerOnChange(e){this.onChange=i=>{this.value=this._getOptionValue(i),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(let i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i),e))return i;return null}_getOptionValue(e){let i=sK(e);return this._optionMap.has(i)?this._optionMap.get(i):e}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xe(n)))(r||n)}})()}static{this.\u0275dir=M({type:n,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(i,r){i&1&&F("change",function(s){return r.onChange(s.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[de([oK]),ne]})}}return n})(),Lxe=(()=>{class n{constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(e){this._select!=null&&(this._select._optionMap.set(this.id,e),this._setElementValue(XN(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(i){return new(i||n)(p(H),p(vn),p(JN,9))}}static{this.\u0275dir=M({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return n})(),aK={provide:$t,useExisting:Ye(()=>eL),multi:!0};function MN(n,t){return n==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${n}: ${t}`.slice(0,50))}function lK(n){return n.split(":")[0]}var eL=(()=>{class n extends Dd{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;let i;if(Array.isArray(e)){let r=e.map(o=>this._getOptionId(o));i=(o,s)=>{o._setSelected(r.indexOf(s.toString())>-1)}}else i=(r,o)=>{r._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(e){this.onChange=i=>{let r=[],o=i.selectedOptions;if(o!==void 0){let s=o;for(let a=0;a{let e;return function(r){return(e||(e=Xe(n)))(r||n)}})()}static{this.\u0275dir=M({type:n,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(i,r){i&1&&F("change",function(s){return r.onChange(s.target)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[de([aK]),ne]})}}return n})(),Vxe=(()=>{class n{constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){this._select!=null&&(this._value=e,this._setElementValue(MN(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(MN(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(i){return new(i||n)(p(H),p(vn),p(eL,9))}}static{this.\u0275dir=M({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return n})();function cK(n){return typeof n=="number"?n:parseFloat(n)}var tL=(()=>{class n{constructor(){this._validator=A_}ngOnChanges(e){if(this.inputName in e){let i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):A_,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275dir=M({type:n,features:[ze]})}}return n})();var dK={provide:Ji,useExisting:Ye(()=>uK),multi:!0},uK=(()=>{class n extends tL{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>cK(e),this.createValidator=e=>RN(e)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xe(n)))(r||n)}})()}static{this.\u0275dir=M({type:n,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(i,r){i&2&&re("min",r._enabled?r.min:null)},inputs:{min:"min"},features:[de([dK]),ne]})}}return n})();var hK={provide:Ji,useExisting:Ye(()=>fK),multi:!0},fK=(()=>{class n extends tL{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=e=>e,this.createValidator=e=>PN(e)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xe(n)))(r||n)}})()}static{this.\u0275dir=M({type:n,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(i,r){i&2&&re("pattern",r._enabled?r.pattern:null)},inputs:{pattern:"pattern"},features:[de([hK]),ne]})}}return n})();var mK=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({})}}return n})(),Cd=class extends wd{constructor(t,e,i){super(Ux(e),Wx(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){let i=this._adjustIndex(t);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){WN(this,!1,t),t.forEach((i,r)=>{UN(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(t.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,i)=>i._syncPendingControls()?!0:e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(let t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}},jxe=Cd;function TN(n){return!!n&&(n.asyncValidators!==void 0||n.validators!==void 0||n.updateOn!==void 0)}var pK=(()=>{class n{constructor(){this.useNonNullable=!1}get nonNullable(){let e=new n;return e.useNonNullable=!0,e}group(e,i=null){let r=this._reduceControls(e),o={};return TN(i)?o=i:i!==null&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new Fl(r,o)}record(e,i=null){let r=this._reduceControls(e);return new $x(r,i)}control(e,i,r){let o={};return this.useNonNullable?(TN(i)?o=i:(o.validators=i,o.asyncValidators=r),new va(e,Pe(E({},o),{nonNullable:!0}))):new va(e,i,r)}array(e,i,r){let o=e.map(s=>this._createControl(s));return new Cd(o,i,r)}_reduceControls(e){let i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){if(e instanceof va)return e;if(e instanceof wd)return e;if(Array.isArray(e)){let i=e[0],r=e.length>1?e[1]:null,o=e.length>2?e[2]:null;return this.control(i,r,o)}else return this.control(e)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Bxe=(()=>{class n extends pK{group(e,i=null){return super.group(e,i)}control(e,i,r){return super.control(e,i,r)}array(e,i,r){return super.array(e,i,r)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xe(n)))(r||n)}})()}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Da=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:Qx,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:$h,useValue:e.callSetDisabledState??z_}]}}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({imports:[mK]})}}return n})();var gK=["*"],W_;function _K(){if(W_===void 0&&(W_=null,typeof window<"u")){let n=window;n.trustedTypes!==void 0&&(W_=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return W_}function zh(n){return _K()?.createHTML(n)||n}function nL(n){return Error(`Unable to find icon with the name "${n}"`)}function bK(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function rL(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function oL(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}var ws=class{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}},vK=(()=>{class n{constructor(e,i,r,o){this._httpClient=e,this._sanitizer=i,this._errorHandler=o,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,o){return this._addSvgIconConfig(e,i,new ws(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,o){let s=this._sanitizer.sanitize(pi.HTML,r);if(!s)throw oL(r);let a=zh(s);return this._addSvgIconConfig(e,i,new ws("",a,o))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new ws(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){let o=this._sanitizer.sanitize(pi.HTML,i);if(!o)throw oL(i);let s=zh(o);return this._addSvgIconSetConfig(e,new ws("",s,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let i=this._sanitizer.sanitize(pi.RESOURCE_URL,e);if(!i)throw rL(e);let r=this._cachedIconsByUrl.get(i);return r?oe(Y_(r)):this._loadSvgIconFromConfig(new ws(e,null)).pipe(Et(o=>this._cachedIconsByUrl.set(i,o)),fe(o=>Y_(o)))}getNamedSvgIcon(e,i=""){let r=sL(i,e),o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);let s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(e,s):Vs(nL(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?oe(Y_(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(fe(i=>Y_(i)))}_getSvgFromIconSetConfigs(e,i){let r=this._extractIconWithNameFromAnySet(e,i);if(r)return oe(r);let o=i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(_o(a=>{let c=`Loading icon set URL: ${this._sanitizer.sanitize(pi.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),oe(null)})));return Du(o).pipe(fe(()=>{let s=this._extractIconWithNameFromAnySet(e,i);if(!s)throw nL(e);return s}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){let o=i[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){let s=this._svgElementFromConfig(o),a=this._extractSvgIconFromSet(s,e,o.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Et(i=>e.svgText=i),fe(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?oe(null):this._fetchIcon(e).pipe(Et(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){let o=e.querySelector(`[id="${i}"]`);if(!o)return null;let s=o.cloneNode(!0);if(s.removeAttribute("id"),s.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(s,r);if(s.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(s),r);let a=this._svgElementFromString(zh(""));return a.appendChild(s),this._setSvgAttributes(a,r)}_svgElementFromString(e){let i=this._document.createElement("DIV");i.innerHTML=e;let r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){let i=this._svgElementFromString(zh("")),r=e.attributes;for(let o=0;ozh(c)),zs(()=>this._inProgressUrlFetches.delete(s)),es());return this._inProgressUrlFetches.set(s,l),l}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(sL(e,i),r),this}_addSvgIconSetConfig(e,i){let r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){let i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;rt?t.pathname+t.search:""}}var aL=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],xK=aL.map(n=>`[${n}]`).join(", "),SK=/^url\(['"]?#(.*?)['"]?\)$/,oi=(()=>{class n{get color(){return this._color||this._defaultColor}set color(e){this._color=e}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){let i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){let i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}constructor(e,i,r,o,s,a){this._elementRef=e,this._iconRegistry=i,this._location=o,this._errorHandler=s,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=pe.EMPTY,a&&(a.color&&(this.color=this._defaultColor=a.color),a.fontSet&&(this.fontSet=a.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){let r=e.childNodes[i];(r.nodeType!==1||r.nodeName.toLowerCase()==="svg")&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),i.forEach(r=>e.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let i=this._elementsWithExternalReferences;i&&i.forEach((r,o)=>{r.forEach(s=>{o.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){let i=e.querySelectorAll(xK),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{let a=i[o],l=a.getAttribute(s),c=l?l.match(SK):null;if(c){let d=r.get(a);d||(d=[],r.set(a,d)),d.push({name:s,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(pt(1)).subscribe(o=>this._setSvgElement(o),o=>{let s=`Error retrieving icon ${i}:${r}! ${o.message}`;this._errorHandler.handleError(new Error(s))})}}static{this.\u0275fac=function(i){return new(i||n)(p(H),p(vK),dn("aria-hidden"),p(CK),p(_n),p(wK,8))}}static{this.\u0275cmp=A({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,r){i&2&&(re("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),ui(r.color?"mat-"+r.color:""),Q("mat-icon-inline",r.inline)("mat-icon-no-color",r.color!=="primary"&&r.color!=="accent"&&r.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",W],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[Ie,O],ngContentSelectors:gK,decls:1,vars:0,template:function(i,r){i&1&&(ge(),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 n})(),Kx=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({imports:[Me,Me]})}}return n})();var kK=["mat-menu-item",""],EK=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],IK=["mat-icon, [matMenuItemIcon]","*"];function MK(n,t){n&1&&(Yi(),b(0,"svg",2),ie(1,"polygon",3),y())}var TK=["*"];function AK(n,t){if(n&1){let e=ye();b(0,"div",0),F("keydown",function(r){N(e);let o=S();return L(o._handleKeydown(r))})("click",function(){N(e);let r=S();return L(r.closed.emit("click"))})("@transformMenu.start",function(r){N(e);let o=S();return L(o._onAnimationStart(r))})("@transformMenu.done",function(r){N(e);let o=S();return L(o._onAnimationDone(r))}),b(1,"div",1),Z(2),y()()}if(n&2){let e=S();ui(e._classList),q("id",e.panelId)("@transformMenu",e._panelAnimationState),re("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}var Zx=new I("MAT_MENU_PANEL"),xa=(()=>{class n{constructor(e,i,r,o,s){this._elementRef=e,this._document=i,this._focusMonitor=r,this._parentMenu=o,this._changeDetectorRef=s,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new k,this._focused=new k,this._highlighted=!1,this._triggersSubmenu=!1,o?.addItem?.(this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let e=this._elementRef.nativeElement.cloneNode(!0),i=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r{class n{constructor(e,i,r,o,s,a,l){this._template=e,this._componentFactoryResolver=i,this._appRef=r,this._injector=o,this._viewContainerRef=s,this._document=a,this._changeDetectorRef=l,this._attached=new k}attach(e={}){this._portal||(this._portal=new $i(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new md(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));let i=this._template.elementRef.nativeElement;i.parentNode.insertBefore(this._outlet.outletElement,i),this._changeDetectorRef?.markForCheck(),this._portal.attach(this._outlet,e),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}static{this.\u0275fac=function(i){return new(i||n)(p(ct),p(Rn),p(Xn),p(Oe),p(ht),p(ce),p(_e))}}static{this.\u0275dir=M({type:n,selectors:[["ng-template","matMenuContent",""]],standalone:!0,features:[de([{provide:cL,useExisting:n}])]})}}return n})(),q_={transformMenu:qt("transformMenu",[_t("void",De({opacity:0,transform:"scale(0.8)"})),at("void => enter",lt("120ms cubic-bezier(0, 0, 0.2, 1)",De({opacity:1,transform:"scale(1)"}))),at("* => void",lt("100ms 25ms linear",De({opacity:0})))]),fadeInItems:qt("fadeInItems",[_t("showing",De({opacity:1})),at("void => *",[De({opacity:0}),lt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},ESe=q_.fadeInItems,ISe=q_.transformMenu,OK=0,RK=new I("mat-menu-default-options",{providedIn:"root",factory:PK});function PK(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}var Cs=(()=>{class n{get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}set panelClass(e){let i=this._previousPanelClass,r=E({},this._classList);i&&i.length&&i.split(" ").forEach(o=>{r[o]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(o=>{r[o]=!0}),this._elementRef.nativeElement.className=""),this._classList=r}get classList(){return this.panelClass}set classList(e){this.panelClass=e}constructor(e,i,r,o){this._elementRef=e,this._changeDetectorRef=o,this._elevationPrefix="mat-elevation-z",this._baseElevation=null,this._directDescendantItems=new vr,this._classList={},this._panelAnimationState="void",this._animationDone=new k,this.closed=new P,this.close=this.closed,this.panelId=`mat-menu-panel-${OK++}`,this._injector=C(Oe),this.overlayPanelClass=r.overlayPanelClass||"",this._xPosition=r.xPosition,this._yPosition=r.yPosition,this.backdropClass=r.backdropClass,this.overlapTrigger=r.overlapTrigger,this.hasBackdrop=r.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new ld(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(yt(this._directDescendantItems),Rt(e=>et(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let i=this._keyManager;if(this._panelAnimationState==="enter"&&i.activeItem?._hasFocus()){let r=e.toArray(),o=Math.max(0,Math.min(r.length-1,i.activeItemIndex||0));r[o]&&!r[o].disabled?i.setActiveItem(o):i.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy()}_hovered(){return this._directDescendantItems.changes.pipe(yt(this._directDescendantItems),Rt(i=>et(...i.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let i=e.keyCode,r=this._keyManager;switch(i){case 27:xt(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(i===38||i===40)&&r.setFocusOrigin("keyboard"),r.onKeydown(e);return}e.stopPropagation()}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=jt(()=>{let i=null;if(this._directDescendantItems.length&&(i=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!i||!i.contains(document.activeElement)){let r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&i&&i.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){if(this._baseElevation===null){let a=(typeof getComputedStyle=="function"?getComputedStyle(this._elementRef.nativeElement):null)?.getPropertyValue("--mat-menu-base-elevation-level")||"8";this._baseElevation=parseInt(a)}let i=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${i}`,o=Object.keys(this._classList).find(s=>s.startsWith(this._elevationPrefix));if(!o||o===this._previousElevation){let s=E({},this._classList);this._previousElevation&&(s[this._previousElevation]=!1),s[r]=!0,this._previousElevation=r,this._classList=s}}setPositionClasses(e=this.xPosition,i=this.yPosition){this._classList=Pe(E({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":i==="above","mat-menu-below":i==="below"}),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,e.toState==="enter"&&this._keyManager.activeItemIndex===0&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(yt(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static{this.\u0275fac=function(i){return new(i||n)(p(H),p(X),p(RK),p(_e))}}static{this.\u0275cmp=A({type:n,selectors:[["mat-menu"]],contentQueries:function(i,r,o){if(i&1&&(He(o,cL,5),He(o,xa,5),He(o,xa,4)),i&2){let s;B(s=$())&&(r.lazyContent=s.first),B(s=$())&&(r._allItems=s),B(s=$())&&(r.items=s)}},viewQuery:function(i,r){if(i&1&&le(ct,5),i&2){let o;B(o=$())&&(r.templateRef=o.first)}},hostVars:3,hostBindings:function(i,r){i&2&&re("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",W],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:W(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],standalone:!0,features:[de([{provide:Zx,useExisting:n}]),Ie,O],ngContentSelectors:TK,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"keydown","click","id"],[1,"mat-mdc-menu-content"]],template:function(i,r){i&1&&(ge(),U(0,AK,3,7,"ng-template"))},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-app-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-app-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-app-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape, var(--mat-app-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-app-surface-container));will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.mat-mdc-menu-panel.ng-animating:has(.mat-mdc-menu-content:empty){display:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-app-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing);margin-top:var(--mat-menu-divider-top-spacing)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mat-menu-item-leading-spacing);padding-right:var(--mat-menu-item-trailing-spacing);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px}[dir=rtl] .mat-mdc-menu-item{padding-right:var(--mat-menu-item-leading-spacing);padding-left:var(--mat-menu-item-trailing-spacing)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing);padding-right:var(--mat-menu-item-with-icon-trailing-spacing)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-right:var(--mat-menu-item-with-icon-leading-spacing);padding-left:var(--mat-menu-item-with-icon-trailing-spacing)}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-app-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-app-on-surface-variant))}.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:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing);height:var(--mat-menu-item-icon-size);width:var(--mat-menu-item-icon-size)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}.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:[q_.transformMenu,q_.fadeInItems]},changeDetection:0})}}return n})(),uL=new I("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let n=C(dt);return()=>n.scrollStrategies.reposition()}});function FK(n){return()=>n.scrollStrategies.reposition()}var NK={provide:uL,deps:[dt],useFactory:FK},lL=hi({passive:!0});var Hh=(()=>{class n{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._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(i=>{this._destroyMenu(i),(i==="click"||i==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(e,i,r,o,s,a,l,c,d){this._overlay=e,this._element=i,this._viewContainerRef=r,this._menuItemInstance=a,this._dir=l,this._focusMonitor=c,this._ngZone=d,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=pe.EMPTY,this._hoverSubscription=pe.EMPTY,this._menuCloseSubscription=pe.EMPTY,this._changeDetectorRef=C(_e),this._handleTouchStart=u=>{Ml(u)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new P,this.onMenuOpen=this.menuOpened,this.menuClosed=new P,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=s instanceof Cs?s:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,lL)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,lL),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){let e=this.menu;if(this._menuOpen||!e)return;let i=this._createOverlay(e),r=i.getConfig(),o=r.positionStrategy;this._setPosition(e,o),r.hasBackdrop=e.hasBackdrop==null?!this.triggersSubmenu():e.hasBackdrop,i.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof Cs&&(e._startAnimation(),e._directDescendantItems.changes.pipe(Ce(e.close)).subscribe(()=>{o.withLockedPosition(!1).reapplyLastPosition(),o.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;let i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof Cs?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe(Ae(r=>r.toState==="void"),pt(1),Ce(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let i=0,r=e.parentMenu;for(;r;)i++,r=r.parentMenu;e.setElevation(i)}}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){let i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=this._overlay.create(i),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new jn({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,i){e.setPositionClasses&&i.positionChanges.subscribe(r=>{let o=r.connectionPair.overlayX==="start"?"after":"before",s=r.connectionPair.overlayY==="top"?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(o,s)):e.setPositionClasses(o,s)})}_setPosition(e,i){let[r,o]=e.xPosition==="before"?["end","start"]:["start","end"],[s,a]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[l,c]=[s,a],[d,u]=[r,o],h=0;if(this.triggersSubmenu()){if(u=r=e.xPosition==="before"?"start":"end",o=d=r==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let f=this._parentMaterialMenu.items.first;this._parentInnerPadding=f?f._getHostElement().offsetTop:0}h=s==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(l=s==="top"?"bottom":"top",c=a==="top"?"bottom":"top");i.withPositions([{originX:r,originY:l,overlayX:d,overlayY:s,offsetY:h},{originX:o,originY:l,overlayX:u,overlayY:s,offsetY:h},{originX:r,originY:c,overlayX:d,overlayY:a,offsetY:-h},{originX:o,originY:c,overlayX:u,overlayY:a,offsetY:-h}])}_menuClosingActions(){let e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:oe(),o=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Ae(s=>s!==this._menuItemInstance),Ae(()=>this._menuOpen)):oe();return et(e,r,o,i)}_handleMousedown(e){Il(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let i=e.keyCode;(i===13||i===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(i===39&&this.dir==="ltr"||i===37&&this.dir==="rtl")&&(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(Ae(e=>e===this._menuItemInstance&&!e.disabled),Ka(0,Cu)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Cs&&this.menu._isAnimating?this.menu._animationDone.pipe(pt(1),Ka(0,Cu),Ce(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new $i(e.templateRef,this._viewContainerRef)),this._portal}static{this.\u0275fac=function(i){return new(i||n)(p(dt),p(H),p(ht),p(uL),p(Zx,8),p(xa,10),p(gt,8),p(yi),p(X))}}static{this.\u0275dir=M({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(i,r){i&1&&F("click",function(s){return r._handleClick(s)})("mousedown",function(s){return r._handleMousedown(s)})("keydown",function(s){return r._handleKeydown(s)}),i&2&&re("aria-haspopup",r.menu?"menu":null)("aria-expanded",r.menuOpen)("aria-controls",r.menuOpen?r.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],standalone:!0})}}return n})(),Xx=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({providers:[NK],imports:[Li,Al,Me,Ti,Zi,Me]})}}return n})();var Jx=class{constructor(t){this._box=t,this._destroyed=new k,this._resizeSubject=new k,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(t){return this._elementObservables.has(t)||this._elementObservables.set(t,new Se(e=>{let i=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(t,{box:this._box}),()=>{this._resizeObserver?.unobserve(t),i.unsubscribe(),this._elementObservables.delete(t)}}).pipe(Ae(e=>e.some(i=>i.target===t)),Km({bufferSize:1,refCount:!0}),Ce(this._destroyed))),this._elementObservables.get(t)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},G_=(()=>{class n{constructor(){this._observers=new Map,this._ngZone=C(X),typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(e,i){let r=i?.box||"content-box";return this._observers.has(r)||this._observers.set(r,new Jx(r)),this._observers.get(r).observe(e)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var LK=["notch"],VK=["matFormFieldNotchedOutline",""],jK=["*"],BK=["textField"],$K=["iconPrefixContainer"],zK=["textPrefixContainer"],HK=["iconSuffixContainer"],UK=["textSuffixContainer"],WK=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],YK=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function qK(n,t){n&1&&ie(0,"span",21)}function GK(n,t){if(n&1&&(b(0,"label",20),Z(1,1),U(2,qK,1,0,"span",21),y()),n&2){let e=S(2);q("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),re("for",e._control.disableAutomaticLabeling?null:e._control.id),w(2),Y(!e.hideRequiredMarker&&e._control.required?2:-1)}}function QK(n,t){if(n&1&&U(0,GK,3,5,"label",20),n&2){let e=S();Y(e._hasFloatingLabel()?0:-1)}}function KK(n,t){n&1&&ie(0,"div",7)}function ZK(n,t){}function XK(n,t){if(n&1&&U(0,ZK,0,0,"ng-template",13),n&2){S(2);let e=Zt(1);q("ngTemplateOutlet",e)}}function JK(n,t){if(n&1&&(b(0,"div",9),U(1,XK,1,1,null,13),y()),n&2){let e=S();q("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),w(),Y(e._forceDisplayInfixLabel()?-1:1)}}function eZ(n,t){n&1&&(b(0,"div",10,2),Z(2,2),y())}function tZ(n,t){n&1&&(b(0,"div",11,3),Z(2,3),y())}function iZ(n,t){}function nZ(n,t){if(n&1&&U(0,iZ,0,0,"ng-template",13),n&2){S();let e=Zt(1);q("ngTemplateOutlet",e)}}function rZ(n,t){n&1&&(b(0,"div",14,4),Z(2,4),y())}function oZ(n,t){n&1&&(b(0,"div",15,5),Z(2,5),y())}function sZ(n,t){n&1&&ie(0,"div",16)}function aZ(n,t){if(n&1&&(b(0,"div",18),Z(1,6),y()),n&2){let e=S();q("@transitionMessages",e._subscriptAnimationState)}}function lZ(n,t){if(n&1&&(b(0,"mat-hint",22),z(1),y()),n&2){let e=S(2);q("id",e._hintLabelId),w(),ft(e.hintLabel)}}function cZ(n,t){if(n&1&&(b(0,"div",19),U(1,lZ,2,2,"mat-hint",22),Z(2,7),ie(3,"div",23),Z(4,8),y()),n&2){let e=S();q("@transitionMessages",e._subscriptAnimationState),w(),Y(e.hintLabel?1:-1)}}var hL=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275dir=M({type:n,selectors:[["mat-label"]],standalone:!0})}}return n})();var dZ=new I("MatError");var uZ=0,fL=(()=>{class n{constructor(){this.align="start",this.id=`mat-mdc-hint-${uZ++}`}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275dir=M({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(i,r){i&2&&(Dr("id",r.id),re("align",null),Q("mat-mdc-form-field-hint-end",r.align==="end"))},inputs:{align:"align",id:"id"},standalone:!0})}}return n})(),hZ=new I("MatPrefix");var fZ=new I("MatSuffix");var wL=new I("FloatingLabelParent"),mL=(()=>{class n{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=C(G_),this._ngZone=C(X),this._parent=C(wL),this._resizeSubscription=new pe}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return mZ(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{this.\u0275fac=function(i){return new(i||n)(p(H))}}static{this.\u0275dir=M({type:n,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(i,r){i&2&&Q("mdc-floating-label--float-above",r.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0})}}return n})();function mZ(n){let t=n;if(t.offsetParent!==null)return t.scrollWidth;let e=t.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let i=e.scrollWidth;return e.remove(),i}var pL="mdc-line-ripple--active",Q_="mdc-line-ripple--deactivating",gL=(()=>{class n{constructor(e,i){this._elementRef=e,this._handleTransitionEnd=r=>{let o=this._elementRef.nativeElement.classList,s=o.contains(Q_);r.propertyName==="opacity"&&s&&o.remove(pL,Q_)},i.runOutsideAngular(()=>{e.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(Q_),e.add(pL)}deactivate(){this._elementRef.nativeElement.classList.add(Q_)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static{this.\u0275fac=function(i){return new(i||n)(p(H),p(X))}}static{this.\u0275dir=M({type:n,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0})}}return n})(),_L=(()=>{class n{constructor(e,i){this._elementRef=e,this._ngZone=i,this.open=!1}ngAfterViewInit(){let e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){!this.open||!e?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}static{this.\u0275fac=function(i){return new(i||n)(p(H),p(X))}}static{this.\u0275cmp=A({type:n,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(i,r){if(i&1&&le(LK,5),i&2){let o;B(o=$())&&(r._notch=o.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(i,r){i&2&&Q("mdc-notched-outline--notched",r.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[O],attrs:VK,ngContentSelectors:jK,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(i,r){i&1&&(ge(),ie(0,"div",1),b(1,"div",2,0),Z(3),y(),ie(4,"div",3))},encapsulation:2,changeDetection:0})}}return n})(),pZ={transitionMessages:qt("transitionMessages",[_t("enter",De({opacity:1,transform:"translateY(0%)"})),at("void => enter",[De({opacity:0,transform:"translateY(-5px)"}),lt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},K_=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275dir=M({type:n})}}return n})();var Ll=new I("MatFormField"),gZ=new I("MAT_FORM_FIELD_DEFAULT_OPTIONS"),bL=0,vL="fill",_Z="auto",yL="fixed",bZ="translateY(-50%)",CL=(()=>{class n{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=ai(e)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||_Z}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(e){let i=this._appearance,r=e||this._defaults?.appearance||vL;this._appearance=r,this._appearance==="outline"&&this._appearance!==i&&(this._needsOutlineLabelOffsetUpdate=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||yL}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||yL}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}constructor(e,i,r,o,s,a,l,c){this._elementRef=e,this._changeDetectorRef=i,this._dir=o,this._platform=s,this._defaults=a,this._animationMode=l,this._labelChild=xR(hL),this._hideRequiredMarker=!1,this.color="primary",this._appearance=vL,this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId=`mat-mdc-form-field-label-${bL++}`,this._hintLabelId=`mat-mdc-hint-${bL++}`,this._subscriptAnimationState="",this._destroyed=new k,this._isFocused=null,this._needsOutlineLabelOffsetUpdate=!1,this._previousControl=null,this._injector=C(Oe),this.getLabelId=Jn(()=>this._hasFloatingLabel()?this._labelId:null),this._hasFloatingLabel=Jn(()=>!!this._labelChild()),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._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._previousControl=this._control)}ngOnDestroy(){this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let i=this._control,r="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(r+e.controlType),i.controlType&&this._elementRef.nativeElement.classList.add(r+i.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=i.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._valueChanges?.unsubscribe(),i.ngControl&&i.ngControl.valueChanges&&(this._valueChanges=i.ngControl.valueChanges.pipe(Ce(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(),et(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(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),Uu(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(Ce(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let i=this._control?this._control.ngControl:null;return i&&i[e]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let i=this._hintChildren?this._hintChildren.find(o=>o.align==="start"):null,r=this._hintChildren?this._hintChildren.find(o=>o.align==="end"):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let e=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){e.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return}let i=this._iconPrefixContainer?.nativeElement,r=this._textPrefixContainer?.nativeElement,o=this._iconSuffixContainer?.nativeElement,s=this._textSuffixContainer?.nativeElement,a=i?.getBoundingClientRect().width??0,l=r?.getBoundingClientRect().width??0,c=o?.getBoundingClientRect().width??0,d=s?.getBoundingClientRect().width??0,u=this._dir.value==="rtl"?"-1":"1",h=`${a+l}px`,m=`calc(${u} * (${h} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;e.style.transform=`var(
        --mat-mdc-form-field-label-transform,
        ${bZ} translateX(${m})
    )`;let g=a+l+c+d;this._elementRef.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${g}px)`)}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}static{this.\u0275fac=function(i){return new(i||n)(p(H),p(_e),p(X),p(gt),p(Ne),p(gZ,8),p(Dt,8),p(ce))}}static{this.\u0275cmp=A({type:n,selectors:[["mat-form-field"]],contentQueries:function(i,r,o){if(i&1&&(vg(o,r._labelChild,hL,5),He(o,K_,5),He(o,hZ,5),He(o,fZ,5),He(o,dZ,5),He(o,fL,5)),i&2){bl();let s;B(s=$())&&(r._formFieldControl=s.first),B(s=$())&&(r._prefixChildren=s),B(s=$())&&(r._suffixChildren=s),B(s=$())&&(r._errorChildren=s),B(s=$())&&(r._hintChildren=s)}},viewQuery:function(i,r){if(i&1&&(le(BK,5),le($K,5),le(zK,5),le(HK,5),le(UK,5),le(mL,5),le(_L,5),le(gL,5)),i&2){let o;B(o=$())&&(r._textField=o.first),B(o=$())&&(r._iconPrefixContainer=o.first),B(o=$())&&(r._textPrefixContainer=o.first),B(o=$())&&(r._iconSuffixContainer=o.first),B(o=$())&&(r._textSuffixContainer=o.first),B(o=$())&&(r._floatingLabel=o.first),B(o=$())&&(r._notchedOutline=o.first),B(o=$())&&(r._lineRipple=o.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(i,r){i&2&&Q("mat-mdc-form-field-label-always-float",r._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",r._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",r._hasIconSuffix)("mat-form-field-invalid",r._control.errorState)("mat-form-field-disabled",r._control.disabled)("mat-form-field-autofilled",r._control.autofilled)("mat-form-field-no-animations",r._animationMode==="NoopAnimations")("mat-form-field-appearance-fill",r.appearance=="fill")("mat-form-field-appearance-outline",r.appearance=="outline")("mat-form-field-hide-placeholder",r._hasFloatingLabel()&&!r._shouldLabelFloat())("mat-focused",r._control.focused)("mat-primary",r.color!=="accent"&&r.color!=="warn")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("ng-untouched",r._shouldForward("untouched"))("ng-touched",r._shouldForward("touched"))("ng-pristine",r._shouldForward("pristine"))("ng-dirty",r._shouldForward("dirty"))("ng-valid",r._shouldForward("valid"))("ng-invalid",r._shouldForward("invalid"))("ng-pending",r._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[de([{provide:Ll,useExisting:n},{provide:wL,useExisting:n}]),O],ngContentSelectors:YK,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(i,r){if(i&1){let o=ye();ge(WK),U(0,QK,1,1,"ng-template",null,0,zC),b(2,"div",6,1),F("click",function(a){return N(o),L(r._control.onContainerClick(a))}),U(4,KK,1,0,"div",7),b(5,"div",8),U(6,JK,2,2,"div",9)(7,eZ,3,0,"div",10)(8,tZ,3,0,"div",11),b(9,"div",12),U(10,nZ,1,1,null,13),Z(11),y(),U(12,rZ,3,0,"div",14)(13,oZ,3,0,"div",15),y(),U(14,sZ,1,0,"div",16),y(),b(15,"div",17),U(16,aZ,2,1,"div",18)(17,cZ,5,2,"div",19),y()}if(i&2){let o;w(2),Q("mdc-text-field--filled",!r._hasOutline())("mdc-text-field--outlined",r._hasOutline())("mdc-text-field--no-label",!r._hasFloatingLabel())("mdc-text-field--disabled",r._control.disabled)("mdc-text-field--invalid",r._control.errorState),w(2),Y(!r._hasOutline()&&!r._control.disabled?4:-1),w(2),Y(r._hasOutline()?6:-1),w(),Y(r._hasIconPrefix?7:-1),w(),Y(r._hasTextPrefix?8:-1),w(2),Y(!r._hasOutline()||r._forceDisplayInfixLabel()?10:-1),w(2),Y(r._hasTextSuffix?12:-1),w(),Y(r._hasIconSuffix?13:-1),w(),Y(r._hasOutline()?-1:14),w(),Q("mat-mdc-form-field-subscript-dynamic-size",r.subscriptSizing==="dynamic"),w(),Y((o=r._getDisplayedMessages())==="error"?16:o==="hint"?17:-1)}},dependencies:[mL,_L,rD,gL,fL],styles:['.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.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--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color, var(--mat-app-on-surface));caret-color:var(--mdc-filled-text-field-caret-color, var(--mat-app-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.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, var(--mat-app-on-surface-variant))}.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.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color, var(--mat-app-on-surface));caret-color:var(--mdc-outlined-text-field-caret-color, var(--mat-app-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.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, var(--mat-app-on-surface-variant))}.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.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--disabled .cdk-high-contrast-active .mdc-text-field__input{background-color:Window}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mdc-filled-text-field-container-shape, var(--mat-app-corner-extra-small-top));border-top-right-radius:var(--mdc-filled-text-field-container-shape, var(--mat-app-corner-extra-small-top))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color, var(--mat-app-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)));padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)) + 4px);padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;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{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.cdk-high-contrast-active .mdc-text-field--disabled .mdc-floating-label{z-index:1}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-filled-text-field-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-focus-label-text-color, var(--mat-app-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-filled-text-field-hover-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-filled-text-field-error-label-text-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-error-focus-label-text-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-filled-text-field-error-hover-label-text-color, var(--mat-app-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font, var(--mat-app-body-large-font));font-size:var(--mdc-filled-text-field-label-text-size, var(--mat-app-body-large-size));font-weight:var(--mdc-filled-text-field-label-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mdc-filled-text-field-label-text-tracking, var(--mat-app-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-outlined-text-field-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-focus-label-text-color, var(--mat-app-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-hover-label-text-color, var(--mat-app-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-outlined-text-field-error-label-text-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-error-focus-label-text-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-error-hover-label-text-color, var(--mat-app-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font, var(--mat-app-body-large-font));font-size:var(--mdc-outlined-text-field-label-text-size, var(--mat-app-body-large-size));font-weight:var(--mdc-outlined-text-field-label-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mdc-outlined-text-field-label-text-tracking, var(--mat-app-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.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-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-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::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{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-outline-color, var(--mat-app-outline));border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-hover-outline-color, var(--mat-app-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-focus-outline-color, var(--mat-app-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-outline-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-hover-outline-color, var(--mat-app-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-focus-outline-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),100% - max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))*2)}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none;--mat-form-field-notch-max-width: 100%}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{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;border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color, var(--mat-app-on-surface-variant))}.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, var(--mat-app-on-surface))}.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:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color, var(--mat-app-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.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, var(--mat-app-primary))}.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, var(--mat-app-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height);padding-top:var(--mat-form-field-filled-with-label-container-padding-top);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-app-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-app-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-app-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-app-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-app-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-app-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-app-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color)}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-app-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-app-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-app-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-app-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-app-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-app-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-app-body-large-weight))}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-app-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color)}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-app-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color)}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-app-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-app-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-app-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.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-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .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--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-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:[pZ.transitionMessages]},changeDetection:0})}}return n})(),DL=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({imports:[Me,Li,rd,Me]})}}return n})();var xL=new I("MAT_INPUT_VALUE_ACCESSOR");var vZ=["mat-calendar-body",""];function yZ(n,t){return this._trackRow(t)}var OL=(n,t)=>t.id;function wZ(n,t){if(n&1&&(b(0,"tr",0)(1,"td",3),z(2),y()()),n&2){let e=S();w(),wt("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),re("colspan",e.numCols),w(),qe(" ",e.label," ")}}function CZ(n,t){if(n&1&&(b(0,"td",3),z(1),y()),n&2){let e=S(2);wt("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),re("colspan",e._firstRowOffset),w(),qe(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function DZ(n,t){if(n&1){let e=ye();b(0,"td",6)(1,"button",7),F("click",function(r){let o=N(e).$implicit,s=S(2);return L(s._cellClicked(o,r))})("focus",function(r){let o=N(e).$implicit,s=S(2);return L(s._emitActiveDateChange(o,r))}),b(2,"span",8),z(3),y(),ie(4,"span",9),y()()}if(n&2){let e=t.$implicit,i=t.$index,r=S().$index,o=S();wt("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),re("data-mat-row",r)("data-mat-col",i),w(),Q("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",o._isActiveCell(r,i))("mat-calendar-body-range-start",o._isRangeStart(e.compareValue))("mat-calendar-body-range-end",o._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",o._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",o._isComparisonBridgeStart(e.compareValue,r,i))("mat-calendar-body-comparison-bridge-end",o._isComparisonBridgeEnd(e.compareValue,r,i))("mat-calendar-body-comparison-start",o._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",o._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",o._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",o._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",o._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",o._isInPreview(e.compareValue)),q("ngClass",e.cssClasses)("tabindex",o._isActiveCell(r,i)?0:-1),re("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",o._isSelected(e.compareValue))("aria-current",o.todayValue===e.compareValue?"date":null)("aria-describedby",o._getDescribedby(e.compareValue)),w(),Q("mat-calendar-body-selected",o._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",o._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",o.todayValue===e.compareValue),w(),qe(" ",e.displayValue," ")}}function xZ(n,t){if(n&1&&(b(0,"tr",1),U(1,CZ,2,6,"td",4),qi(2,DZ,5,48,"td",5,OL),y()),n&2){let e=t.$implicit,i=t.$index,r=S();w(),Y(i===0&&r._firstRowOffset?1:-1),w(),Gi(e)}}function SZ(n,t){if(n&1&&(b(0,"th",2)(1,"span",6),z(2),y(),b(3,"span",3),z(4),y()()),n&2){let e=t.$implicit;w(2),ft(e.long),w(2),ft(e.narrow)}}var kZ=["*"];function EZ(n,t){}function IZ(n,t){if(n&1){let e=ye();b(0,"mat-month-view",4),Yu("activeDateChange",function(r){N(e);let o=S();return wg(o.activeDate,r)||(o.activeDate=r),L(r)}),F("_userSelection",function(r){N(e);let o=S();return L(o._dateSelected(r))})("dragStarted",function(r){N(e);let o=S();return L(o._dragStarted(r))})("dragEnded",function(r){N(e);let o=S();return L(o._dragEnded(r))}),y()}if(n&2){let e=S();Wu("activeDate",e.activeDate),q("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function MZ(n,t){if(n&1){let e=ye();b(0,"mat-year-view",5),Yu("activeDateChange",function(r){N(e);let o=S();return wg(o.activeDate,r)||(o.activeDate=r),L(r)}),F("monthSelected",function(r){N(e);let o=S();return L(o._monthSelectedInYearView(r))})("selectedChange",function(r){N(e);let o=S();return L(o._goToDateInView(r,"month"))}),y()}if(n&2){let e=S();Wu("activeDate",e.activeDate),q("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function TZ(n,t){if(n&1){let e=ye();b(0,"mat-multi-year-view",6),Yu("activeDateChange",function(r){N(e);let o=S();return wg(o.activeDate,r)||(o.activeDate=r),L(r)}),F("yearSelected",function(r){N(e);let o=S();return L(o._yearSelectedInMultiYearView(r))})("selectedChange",function(r){N(e);let o=S();return L(o._goToDateInView(r,"year"))}),y()}if(n&2){let e=S();Wu("activeDate",e.activeDate),q("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function AZ(n,t){}var OZ=["button"],RZ=[[["","matDatepickerToggleIcon",""]]],PZ=["[matDatepickerToggleIcon]"];function FZ(n,t){n&1&&(Yi(),b(0,"svg",2),ie(1,"path",3),y())}var qh=(()=>{class n{constructor(){this.changes=new k,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,i){return`${e} \u2013 ${i}`}formatYearRangeLabel(e,i){return`${e} to ${i}`}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),NZ=0,Wh=class{constructor(t,e,i,r,o={},s=t,a){this.value=t,this.displayValue=e,this.ariaLabel=i,this.enabled=r,this.cssClasses=o,this.compareValue=s,this.rawValue=a,this.id=NZ++}},LZ=1,SL=hi({passive:!1,capture:!0}),Sa=hi({passive:!0,capture:!0}),Z_=hi({passive:!0}),Md=(()=>{class n{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(e,i){this._elementRef=e,this._ngZone=i,this._platform=C(Ne),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new P,this.previewChange=new P,this.activeDateChange=new P,this.dragStarted=new P,this.dragEnded=new P,this._didDragSinceMouseDown=!1,this._injector=C(Oe),this._trackRow=r=>r,this._enterHandler=r=>{if(this._skipNextFocus&&r.type==="focus"){this._skipNextFocus=!1;return}if(r.target&&this.isRange){let o=this._getCellFromElement(r.target);o&&this._ngZone.run(()=>this.previewChange.emit({value:o.enabled?o:null,event:r}))}},this._touchmoveHandler=r=>{if(!this.isRange)return;let o=kL(r),s=o?this._getCellFromElement(o):null;o!==r.target&&(this._didDragSinceMouseDown=!0),tS(r.target)&&r.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:s?.enabled?s:null,event:r}))},this._leaveHandler=r=>{this.previewEnd!==null&&this.isRange&&(r.type!=="blur"&&(this._didDragSinceMouseDown=!0),r.target&&this._getCellFromElement(r.target)&&!(r.relatedTarget&&this._getCellFromElement(r.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:r})))},this._mousedownHandler=r=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let o=r.target&&this._getCellFromElement(r.target);!o||!this._isInRange(o.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:o.rawValue,event:r})})},this._mouseupHandler=r=>{if(!this.isRange)return;let o=tS(r.target);if(!o){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:r})});return}o.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let s=this._getCellFromElement(o);this.dragEnded.emit({value:s?.rawValue??null,event:r})})},this._touchendHandler=r=>{let o=kL(r);o&&this._mouseupHandler({target:o})},this._id=`mat-calendar-body-${LZ++}`,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,i.runOutsideAngular(()=>{let r=e.nativeElement;r.addEventListener("touchmove",this._touchmoveHandler,SL),r.addEventListener("mouseenter",this._enterHandler,Sa),r.addEventListener("focus",this._enterHandler,Sa),r.addEventListener("mouseleave",this._leaveHandler,Sa),r.addEventListener("blur",this._leaveHandler,Sa),r.addEventListener("mousedown",this._mousedownHandler,Z_),r.addEventListener("touchstart",this._mousedownHandler,Z_),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(e,i){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:i})}_emitActiveDateChange(e,i){e.enabled&&this.activeDateChange.emit({value:e.value,event:i})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let i=e.numCols,{rows:r,numCols:o}=this;(e.rows||i)&&(this._firstRowOffset=r&&r.length&&r[0].length?o-r[0].length:0),(e.cellAspectRatio||i||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/o}%`),(i||!this._cellWidth)&&(this._cellWidth=`${100/o}%`)}ngOnDestroy(){let e=this._elementRef.nativeElement;e.removeEventListener("touchmove",this._touchmoveHandler,SL),e.removeEventListener("mouseenter",this._enterHandler,Sa),e.removeEventListener("focus",this._enterHandler,Sa),e.removeEventListener("mouseleave",this._leaveHandler,Sa),e.removeEventListener("blur",this._leaveHandler,Sa),e.removeEventListener("mousedown",this._mousedownHandler,Z_),e.removeEventListener("touchstart",this._mousedownHandler,Z_),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(e,i){let r=e*this.numCols+i;return e&&(r-=this._firstRowOffset),r==this.activeCell}_focusActiveCell(e=!0){jt(()=>{setTimeout(()=>{let i=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");i&&(e||(this._skipNextFocus=!0),i.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return iS(e,this.startValue,this.endValue)}_isRangeEnd(e){return nS(e,this.startValue,this.endValue)}_isInRange(e){return rS(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return iS(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,i,r){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let o=this.rows[i][r-1];if(!o){let s=this.rows[i-1];o=s&&s[s.length-1]}return o&&!this._isRangeEnd(o.compareValue)}_isComparisonBridgeEnd(e,i,r){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let o=this.rows[i][r+1];if(!o){let s=this.rows[i+1];o=s&&s[0]}return o&&!this._isRangeStart(o.compareValue)}_isComparisonEnd(e){return nS(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return rS(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return iS(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return nS(e,this.previewStart,this.previewEnd)}_isInPreview(e){return rS(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){return this.isRange?this.startValue===e&&this.endValue===e?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===e?this._startDateLabelId:this.endValue===e?this._endDateLabelId:null:null}_getCellFromElement(e){let i=tS(e);if(i){let r=i.getAttribute("data-mat-row"),o=i.getAttribute("data-mat-col");if(r&&o)return this.rows[parseInt(r)][parseInt(o)]}return null}static{this.\u0275fac=function(i){return new(i||n)(p(H),p(X))}}static{this.\u0275cmp=A({type:n,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],standalone:!0,features:[ze,O],attrs:vZ,decls:7,vars:5,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(i,r){i&1&&(U(0,wZ,3,6,"tr",0),qi(1,xZ,4,1,"tr",1,yZ,!0),b(3,"span",2),z(4),y(),b(5,"span",2),z(6),y()),i&2&&(Y(r._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color)}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color, var(--mat-app-on-surface));border-color:var(--mat-datepicker-calendar-date-outline-color)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color)}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color)}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color, var(--mat-app-primary));color:var(--mat-datepicker-calendar-date-selected-state-text-color, var(--mat-app-on-primary))}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color)}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color, var(--mat-app-primary))}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-app-primary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-app-tertiary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-app-tertiary-container))}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-app-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-app-tertiary-container)) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-app-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-app-tertiary-container)) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color, var(--mat-app-secondary-container))}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color, var(--mat-app-secondary))}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}'],encapsulation:2,changeDetection:0})}}return n})();function eS(n){return n?.nodeName==="TD"}function tS(n){let t;return eS(n)?t=n:eS(n.parentNode)?t=n.parentNode:eS(n.parentNode?.parentNode)&&(t=n.parentNode.parentNode),t?.getAttribute("data-mat-row")!=null?t:null}function iS(n,t,e){return e!==null&&t!==e&&n=t&&n===e}function rS(n,t,e,i){return i&&t!==null&&e!==null&&t!==e&&n>=t&&n<=e}function kL(n){let t=n.changedTouches[0];return document.elementFromPoint(t.clientX,t.clientY)}var Ir=class{constructor(t,e){this.start=t,this.end=e}},Yh=(()=>{class n{constructor(e,i){this.selection=e,this._adapter=i,this._selectionChanged=new k,this.selectionChanged=this._selectionChanged,this.selection=e}updateSelection(e,i){let r=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:i,oldValue:r})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static{this.\u0275fac=function(i){pl()}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac})}}return n})(),VZ=(()=>{class n extends Yh{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new n(this._adapter);return e.updateSelection(this.selection,this),e}static{this.\u0275fac=function(i){return new(i||n)(D(wi))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac})}}return n})();function jZ(n,t){return n||new VZ(t)}var RL={provide:Yh,deps:[[new yr,new Ur,Yh],wi],useFactory:jZ};var PL=new I("MAT_DATE_RANGE_SELECTION_STRATEGY");var oS=7,BZ=0,EL=(()=>{class n{get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._hasSameMonthAndYear(i,this._activeDate)||this._init()}get selected(){return this._selected}set selected(e){e instanceof Ir?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}constructor(e,i,r,o,s){this._changeDetectorRef=e,this._dateFormats=i,this._dateAdapter=r,this._dir=o,this._rangeStrategy=s,this._rerenderSubscription=pe.EMPTY,this.activeDrag=null,this.selectedChange=new P,this._userSelection=new P,this.dragStarted=new P,this.dragEnded=new P,this.activeDateChange=new P,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(yt(null)).subscribe(()=>this._init())}ngOnChanges(e){let i=e.comparisonStart||e.comparisonEnd;i&&!i.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){let i=e.value,r=this._getDateFromDayOfMonth(i),o,s;this._selected instanceof Ir?(o=this._getDateInCurrentMonth(this._selected.start),s=this._getDateInCurrentMonth(this._selected.end)):o=s=this._getDateInCurrentMonth(this._selected),(o!==i||s!==i)&&this.selectedChange.emit(r),this._userSelection.emit({value:r,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0,this._canSelect(this._activeDate)&&e.preventDefault();return;case 27:this._previewEnd!=null&&!xt(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(oS+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%oS,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:i}){if(this._rangeStrategy){let r=i?i.rawValue:null,o=this._rangeStrategy.createPreview(r,this.selected,e);if(this._previewStart=this._getCellCompareValue(o.start),this._previewEnd=this._getCellCompareValue(o.end),this.activeDrag&&r){let s=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,r,e);s&&(this._previewStart=this._getCellCompareValue(s.start),this._previewEnd=this._getCellCompareValue(s.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(e){if(this.activeDrag)if(e.value){let i=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:i??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),i=this._dateAdapter.getDayOfWeekNames("narrow"),o=this._dateAdapter.getDayOfWeekNames("long").map((s,a)=>({long:s,narrow:i[a],id:BZ++}));this._weekdays=o.slice(e).concat(o.slice(0,e))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),i=this._dateAdapter.getDateNames();this._weeks=[[]];for(let r=0,o=this._firstWeekOffset;r=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,i){return!!(e&&i&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i))}_getCellCompareValue(e){if(e){let i=this._dateAdapter.getYear(e),r=this._dateAdapter.getMonth(e),o=this._dateAdapter.getDate(e);return new Date(i,r,o).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof Ir?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart=this._previewEnd=null}static{this.\u0275fac=function(i){return new(i||n)(p(_e),p(fa,8),p(wi,8),p(gt,8),p(PL,8))}}static{this.\u0275cmp=A({type:n,selectors:[["mat-month-view"]],viewQuery:function(i,r){if(i&1&&le(Md,5),i&2){let o;B(o=$())&&(r._matCalendarBody=o.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],standalone:!0,features:[ze,O],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(i,r){i&1&&(b(0,"table",0)(1,"thead",1)(2,"tr"),qi(3,SZ,5,2,"th",2,OL),y(),b(5,"tr",3),ie(6,"th",4),y()(),b(7,"tbody",5),F("selectedValueChange",function(s){return r._dateSelected(s)})("activeDateChange",function(s){return r._updateActiveDate(s)})("previewChange",function(s){return r._previewChanged(s)})("dragStarted",function(s){return r.dragStarted.emit(s)})("dragEnded",function(s){return r._dragEnded(s)})("keyup",function(s){return r._handleCalendarBodyKeyup(s)})("keydown",function(s){return r._handleCalendarBodyKeydown(s)}),y()()),i&2&&(w(3),Gi(r._weekdays),w(4),q("label",r._monthLabel)("rows",r._weeks)("todayValue",r._todayDate)("startValue",r._rangeStart)("endValue",r._rangeEnd)("comparisonStart",r._comparisonRangeStart)("comparisonEnd",r._comparisonRangeEnd)("previewStart",r._previewStart)("previewEnd",r._previewEnd)("isRange",r._isRange)("labelMinRequiredCells",3)("activeCell",r._dateAdapter.getDate(r.activeDate)-1)("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName))},dependencies:[Md],encapsulation:2,changeDetection:0})}}return n})(),or=24,sS=4,IL=(()=>{class n{get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),FL(this._dateAdapter,i,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){e instanceof Ir?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}constructor(e,i,r){this._changeDetectorRef=e,this._dateAdapter=i,this._dir=r,this._rerenderSubscription=pe.EMPTY,this.selectedChange=new P,this.yearSelected=new P,this.activeDateChange=new P,this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(yt(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());let i=this._dateAdapter.getYear(this._activeDate)-Uh(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let r=0,o=[];rthis._createCellForYear(s))),o=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){let i=e.value,r=this._dateAdapter.createDate(i,0,1),o=this._getDateFromYear(i);this.yearSelected.emit(r),this.selectedChange.emit(o)}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromYear(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-sS);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,sS);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Uh(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,or-Uh(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-or*10:-or);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?or*10:or);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return Uh(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){let i=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));return this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForYear(e){let i=this._dateAdapter.createDate(e,0,1),r=this._dateAdapter.getYearName(i),o=this.dateClass?this.dateClass(i,"multi-year"):void 0;return new Wh(e,r,r,this._shouldEnableYear(e),o)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class n{get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._dateAdapter.getYear(i)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(e){e instanceof Ir?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}constructor(e,i,r,o){this._changeDetectorRef=e,this._dateFormats=i,this._dateAdapter=r,this._dir=o,this._rerenderSubscription=pe.EMPTY,this.selectedChange=new P,this.monthSelected=new P,this.activeDateChange=new P,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(yt(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){let i=e.value,r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,1);this.monthSelected.emit(r);let o=this._getDateFromMonth(i);this.selectedChange.emit(o)}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromMonth(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(i=>i.map(r=>this._createCellForMonth(r,e[r]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.getNumDaysInMonth(i);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForMonth(e,i){let r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),o=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),s=this.dateClass?this.dateClass(r,"year"):void 0;return new Wh(e,i.toLocaleUpperCase(),o,this._shouldEnableMonth(e),s)}_shouldEnableMonth(e){let i=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(i,e)||this._isYearAndMonthBeforeMinDate(i,e))return!1;if(!this.dateFilter)return!0;let r=this._dateAdapter.createDate(i,e,1);for(let o=r;this._dateAdapter.getMonth(o)==e;o=this._dateAdapter.addCalendarDays(o,1))if(this.dateFilter(o))return!0;return!1}_isYearAndMonthAfterMaxDate(e,i){if(this.maxDate){let r=this._dateAdapter.getYear(this.maxDate),o=this._dateAdapter.getMonth(this.maxDate);return e>r||e===r&&i>o}return!1}_isYearAndMonthBeforeMinDate(e,i){if(this.minDate){let r=this._dateAdapter.getYear(this.minDate),o=this._dateAdapter.getMonth(this.minDate);return e{class n{constructor(e,i,r,o,s){this._intl=e,this.calendar=i,this._dateAdapter=r,this._dateFormats=o,this._id=`mat-calendar-header-${zZ++}`,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>s.markForCheck())}get periodButtonText(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return this.calendar.currentView=="month"?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-or)}nextClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:or)}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,i){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i):FL(this._dateAdapter,e,i,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let i=this._dateAdapter.getYear(this.calendar.activeDate)-Uh(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),r=i+or-1,o=this._dateAdapter.getYearName(this._dateAdapter.createDate(i,0,1)),s=this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1));return[o,s]}static{this.\u0275fac=function(i){return new(i||n)(p(qh),p(Ye(()=>aS)),p(wi,8),p(fa,8),p(_e))}}static{this.\u0275cmp=A({type:n,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],standalone:!0,features:[O],ngContentSelectors:kZ,decls:17,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["mat-button","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"click","disabled"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"click","disabled"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(i,r){i&1&&(ge(),b(0,"div",0)(1,"div",1)(2,"span",2),z(3),y(),b(4,"button",3),F("click",function(){return r.currentPeriodClicked()}),b(5,"span",4),z(6),y(),Yi(),b(7,"svg",5),ie(8,"polygon",6),y()(),Vc(),ie(9,"div",7),Z(10),b(11,"button",8),F("click",function(){return r.previousClicked()}),Yi(),b(12,"svg",9),ie(13,"path",10),y()(),Vc(),b(14,"button",11),F("click",function(){return r.nextClicked()}),Yi(),b(15,"svg",9),ie(16,"path",12),y()()()()),i&2&&(w(2),q("id",r._periodButtonLabelId),w(),ft(r.periodButtonDescription),w(),re("aria-label",r.periodButtonLabel)("aria-describedby",r._periodButtonLabelId),w(2),ft(r.periodButtonText),w(),Q("mat-calendar-invert",r.calendar.currentView!=="month"),w(4),q("disabled",!r.previousEnabled()),re("aria-label",r.prevButtonLabel),w(3),q("disabled",!r.nextEnabled()),re("aria-label",r.nextButtonLabel))},dependencies:[Ol,ma],encapsulation:2,changeDetection:0})}}return n})(),aS=(()=>{class n{get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get selected(){return this._selected}set selected(e){e instanceof Ir?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(e){let i=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),i&&this.viewChanged.emit(i)}constructor(e,i,r,o){this._dateAdapter=i,this._dateFormats=r,this._changeDetectorRef=o,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new P,this.yearSelected=new P,this.monthSelected=new P,this.viewChanged=new P(!0),this._userSelection=new P,this._userDragDrop=new P,this._activeDrag=null,this.stateChanges=new k,this._intlChanges=e.changes.subscribe(()=>{o.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new Vn(this.headerComponent||LL),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){let i=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,r=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,o=i||r||e.dateFilter;if(o&&!o.firstChange){let s=this._getCurrentViewComponent();s&&(this._moveFocusOnNextTick=!0,this._changeDetectorRef.detectChanges(),s._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){let i=e.value;(this.selected instanceof Ir||i&&!this._dateAdapter.sameDate(i,this.selected))&&this.selectedChange.emit(i),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,i){this.activeDate=e,this.currentView=i}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static{this.\u0275fac=function(i){return new(i||n)(p(qh),p(wi,8),p(fa,8),p(_e))}}static{this.\u0275cmp=A({type:n,selectors:[["mat-calendar"]],viewQuery:function(i,r){if(i&1&&(le(EL,5),le(ML,5),le(IL,5)),i&2){let o;B(o=$())&&(r.monthView=o.first),B(o=$())&&(r.yearView=o.first),B(o=$())&&(r.multiYearView=o.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],standalone:!0,features:[de([RL]),ze,O],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(i,r){if(i&1&&(U(0,EZ,0,0,"ng-template",0),b(1,"div",1),U(2,IZ,1,11,"mat-month-view",2)(3,MZ,1,6,"mat-year-view",3)(4,TZ,1,6,"mat-multi-year-view",3),y()),i&2){let o;q("cdkPortalOutlet",r._calendarHeaderPortal),w(2),Y((o=r.currentView)==="month"?2:o==="year"?3:o==="multi-year"?4:-1)}},dependencies:[Dn,y_,EL,ML,IL],styles:['.mat-calendar{display:block;line-height:normal;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-app-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-app-body-medium-size))}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size, var(--mat-app-title-small-size));font-weight:var(--mat-datepicker-calendar-period-button-text-weight, var(--mat-app-title-small-weight));--mdc-text-button-label-text-color:var(--mat-datepicker-calendar-period-button-text-color, var(--mat-app-on-surface-variant))}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color, var(--mat-app-on-surface-variant))}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color, var(--mat-app-on-surface-variant))}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color, var(--mat-app-on-surface-variant));font-size:var(--mat-datepicker-calendar-header-text-size, var(--mat-app-title-small-size));font-weight:var(--mat-datepicker-calendar-header-text-weight, var(--mat-app-title-small-weight))}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}}return n})(),TL={transformPanel:qt("transformPanel",[at("void => enter-dropdown",lt("120ms cubic-bezier(0, 0, 0.2, 1)",ga([De({opacity:0,transform:"scale(1, 0.8)"}),De({opacity:1,transform:"scale(1, 1)"})]))),at("void => enter-dialog",lt("150ms cubic-bezier(0, 0, 0.2, 1)",ga([De({opacity:0,transform:"scale(0.7)"}),De({transform:"none",opacity:1})]))),at("* => void",lt("100ms linear",De({opacity:0})))]),fadeInCalendar:qt("fadeInCalendar",[_t("void",De({opacity:0})),_t("enter",De({opacity:1})),at("void => *",lt("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},HZ=0,VL=new I("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let n=C(dt);return()=>n.scrollStrategies.reposition()}});function UZ(n){return()=>n.scrollStrategies.reposition()}var WZ={provide:VL,deps:[dt],useFactory:UZ},jL=(()=>{class n{constructor(e,i,r,o,s,a){this._elementRef=e,this._changeDetectorRef=i,this._globalModel=r,this._dateAdapter=o,this._rangeSelectionStrategy=s,this._subscriptions=new pe,this._animationDone=new k,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=a.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){let i=this._model.selection,r=e.value,o=i instanceof Ir;if(o&&this._rangeSelectionStrategy){let s=this._rangeSelectionStrategy.selectionFinished(r,i,e.event);this._model.updateSelection(s,this)}else r&&(o||!this._dateAdapter.sameDate(r,i))&&this._model.add(r);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(e){this._isAnimating=e.phaseName==="start",this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,i){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,i&&this._changeDetectorRef.detectChanges()}static{this.\u0275fac=function(i){return new(i||n)(p(H),p(_e),p(Yh),p(wi),p(PL,8),p(qh))}}static{this.\u0275cmp=A({type:n,selectors:[["mat-datepicker-content"]],viewQuery:function(i,r){if(i&1&&le(aS,5),i&2){let o;B(o=$())&&(r._calendar=o.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:5,hostBindings:function(i,r){i&1&&_l("@transformPanel.start",function(s){return r._handleAnimationEvent(s)})("@transformPanel.done",function(s){return r._handleAnimationEvent(s)}),i&2&&(gl("@transformPanel",r._animationState),ui(r.color?"mat-"+r.color:""),Q("mat-datepicker-content-touch",r.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],standalone:!0,features:[O],decls:5,vars:27,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(i,r){if(i&1&&(b(0,"div",0)(1,"mat-calendar",1),F("yearSelected",function(s){return r.datepicker._selectYear(s)})("monthSelected",function(s){return r.datepicker._selectMonth(s)})("viewChanged",function(s){return r.datepicker._viewChanged(s)})("_userSelection",function(s){return r._handleUserSelection(s)})("_userDragDrop",function(s){return r._handleUserDragDrop(s)}),y(),U(2,AZ,0,0,"ng-template",2),b(3,"button",3),F("focus",function(){return r._closeButtonFocused=!0})("blur",function(){return r._closeButtonFocused=!1})("click",function(){return r.datepicker.close()}),z(4),y()()),i&2){let o;Q("mat-datepicker-content-container-with-custom-header",r.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",r._actionsPortal),re("aria-modal",!0)("aria-labelledby",(o=r._dialogLabelId)!==null&&o!==void 0?o:void 0),w(),ui(r.datepicker.panelClass),q("id",r.datepicker.id)("startAt",r.datepicker.startAt)("startView",r.datepicker.startView)("minDate",r.datepicker._getMinDate())("maxDate",r.datepicker._getMaxDate())("dateFilter",r.datepicker._getDateFilter())("headerComponent",r.datepicker.calendarHeaderComponent)("selected",r._getSelected())("dateClass",r.datepicker.dateClass)("comparisonStart",r.comparisonStart)("comparisonEnd",r.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName),w(),q("cdkPortalOutlet",r._actionsPortal),w(),Q("cdk-visually-hidden",!r._closeButtonFocused),q("color",r.color||"primary"),w(),ft(r._closeButtonText)}},dependencies:[HF,aS,Dn,Ol],styles:[".mat-datepicker-content{display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color, var(--mat-app-surface-container-high));color:var(--mat-datepicker-calendar-container-text-color, var(--mat-app-on-surface));box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow);border-radius:var(--mat-datepicker-calendar-container-shape, var(--mat-app-corner-large))}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow);border-radius:var(--mat-datepicker-calendar-container-touch-shape, var(--mat-app-corner-extra-large));position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[TL.transformPanel,TL.fadeInCalendar]},changeDetection:0})}}return n})(),AL=(()=>{class n{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=OF(e)}get opened(){return this._opened}set opened(e){e?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}constructor(e,i,r,o,s,a,l){this._overlay=e,this._viewContainerRef=r,this._dateAdapter=s,this._dir=a,this._model=l,this._inputStateChanges=pe.EMPTY,this._document=C(ce),this.startView="month",this.touchUi=!1,this.xPosition="start",this.yPosition="below",this.restoreFocus=!0,this.yearSelected=new P,this.monthSelected=new P,this.viewChanged=new P(!0),this.openedStream=new P,this.closedStream=new P,this._opened=!1,this.id=`mat-datepicker-${HZ++}`,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new k,this._injector=C(Oe),this._changeDetectorRef=C(_e),this._dateAdapter,this._scrollStrategy=o,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(e){let i=e.xPosition||e.yPosition;if(i&&!i.firstChange&&this._overlayRef){let r=this._overlayRef.getConfig().positionStrategy;r instanceof Rh&&(this._setConnectedPositions(r),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=aa(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",i=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){let{instance:r,location:o}=this._componentRef;r._startExitAnimation(),r._animationDone.pipe(pt(1)).subscribe(()=>{let s=this._document.activeElement;e&&(!s||s===this._document.activeElement||o.nativeElement.contains(s))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}e?setTimeout(i):i()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let e=this.touchUi,i=new Vn(jL,this._viewContainerRef),r=this._overlayRef=this._overlay.create(new jn({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`}));this._getCloseStream(r).subscribe(o=>{o&&o.preventDefault(),this.close()}),r.keydownEvents().subscribe(o=>{let s=o.keyCode;(s===38||s===40||s===37||s===39||s===33||s===34)&&o.preventDefault()}),this._componentRef=r.attach(i),this._forwardContentValues(this._componentRef.instance),e||jt(()=>{r.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let i=this.xPosition==="end"?"end":"start",r=i==="start"?"end":"start",o=this.yPosition==="above"?"bottom":"top",s=o==="top"?"bottom":"top";return e.withPositions([{originX:i,originY:s,overlayX:i,overlayY:o},{originX:i,originY:o,overlayX:i,overlayY:s},{originX:r,originY:s,overlayX:r,overlayY:o},{originX:r,originY:o,overlayX:r,overlayY:s}])}_getCloseStream(e){let i=["ctrlKey","shiftKey","metaKey"];return et(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(Ae(r=>r.keyCode===27&&!xt(r)||this.datepickerInput&&xt(r,"altKey")&&r.keyCode===38&&i.every(o=>!xt(r,o)))))}static{this.\u0275fac=function(i){return new(i||n)(p(dt),p(X),p(ht),p(VL),p(wi,8),p(gt,8),p(Yh))}}static{this.\u0275dir=M({type:n,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",W],disabled:[2,"disabled","disabled",W],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",W],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",W]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[Ie,ze]})}}return n})(),BL=(()=>{class n extends AL{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xe(n)))(r||n)}})()}static{this.\u0275cmp=A({type:n,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],standalone:!0,features:[de([RL,{provide:AL,useExisting:n}]),ne,O],decls:0,vars:0,template:function(i,r){},encapsulation:2,changeDetection:0})}}return n})(),Id=class{constructor(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}},YZ=(()=>{class n{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){let i=e,r=this._elementRef.nativeElement;this._disabled!==i&&(this._disabled=i,this.stateChanges.next(void 0)),i&&this._isInitialized&&r.blur&&r.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(i=>{if(this._shouldHandleChangeEvent(i)){let r=this._getValueFromModel(i.selection);this._lastValueValid=this._isValidValue(r),this._cvaOnChange(r),this._onTouched(),this._formatValue(r),this.dateInput.emit(new Id(this,this._elementRef.nativeElement)),this.dateChange.emit(new Id(this,this._elementRef.nativeElement))}})}constructor(e,i,r){this._elementRef=e,this._dateAdapter=i,this._dateFormats=r,this.dateChange=new P,this.dateInput=new P,this.stateChanges=new k,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=pe.EMPTY,this._localeSubscription=pe.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=o=>{let s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(o.value));return!s||this._matchesFilter(s)?null:{matDatepickerFilter:!0}},this._minValidator=o=>{let s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(o.value)),a=this._getMinDate();return!a||!s||this._dateAdapter.compareDate(a,s)<=0?null:{matDatepickerMin:{min:a,actual:s}}},this._maxValidator=o=>{let s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(o.value)),a=this._getMaxDate();return!a||!s||this._dateAdapter.compareDate(a,s)>=0?null:{matDatepickerMax:{max:a,actual:s}}},this._lastValueValid=!1,this._localeSubscription=i.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){qZ(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let i=["ctrlKey","shiftKey","metaKey"];xt(e,"altKey")&&e.keyCode===40&&i.every(o=>!xt(e,o))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let i=this._lastValueValid,r=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(r),r=this._dateAdapter.getValidDateOrNull(r);let o=!this._dateAdapter.sameDate(r,this.value);!r||o?this._cvaOnChange(r):(e&&!this.value&&this._cvaOnChange(r),i!==this._lastValueValid&&this._validatorOnChange()),o&&(this._assignValue(r),this.dateInput.emit(new Id(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Id(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){let i=this._getDateFilter();return!i||i(e)}static{this.\u0275fac=function(i){return new(i||n)(p(H),p(wi,8),p(fa,8))}}static{this.\u0275dir=M({type:n,inputs:{value:"value",disabled:[2,"disabled","disabled",W]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},standalone:!0,features:[Ie,ze]})}}return n})();function qZ(n,t){let e=Object.keys(n);for(let i of e){let{previousValue:r,currentValue:o}=n[i];if(t.isDateInstance(r)&&t.isDateInstance(o)){if(!t.sameDate(r,o))return!0}else return!0}return!1}var GZ={provide:$t,useExisting:Ye(()=>X_),multi:!0},QZ={provide:Ji,useExisting:Ye(()=>X_),multi:!0},X_=(()=>{class n extends YZ{set matDatepicker(e){e&&(this._datepicker=e,this._ariaOwns.set(e.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id)}),this._registerModel(e.registerInput(this)))}get min(){return this._min}set min(e){let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._min)||(this._min=i,this._validatorOnChange())}get max(){return this._max}set max(e){let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._max)||(this._max=i,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(e){let i=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==i&&this._validatorOnChange()}constructor(e,i,r,o){super(e,i,r),this._formField=o,this._closedSubscription=pe.EMPTY,this._openedSubscription=pe.EMPTY,this._ariaOwns=di(null),this._validator=wa.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}static{this.\u0275fac=function(i){return new(i||n)(p(H),p(wi,8),p(fa,8),p(Ll,8))}}static{this.\u0275dir=M({type:n,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(i,r){i&1&&F("input",function(s){return r._onInput(s.target.value)})("change",function(){return r._onChange()})("blur",function(){return r._onBlur()})("keydown",function(s){return r._onKeydown(s)}),i&2&&(Dr("disabled",r.disabled),re("aria-haspopup",r._datepicker?"dialog":null)("aria-owns",r._ariaOwns())("min",r.min?r._dateAdapter.toIso8601(r.min):null)("max",r.max?r._dateAdapter.toIso8601(r.max):null)("data-mat-calendar",r._datepicker?r._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],standalone:!0,features:[de([GZ,QZ,{provide:xL,useExisting:n}]),ne]})}}return n})(),KZ=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275dir=M({type:n,selectors:[["","matDatepickerToggleIcon",""]],standalone:!0})}}return n})(),ZZ=(()=>{class n{get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}constructor(e,i,r){this._intl=e,this._changeDetectorRef=i,this._stateChanges=pe.EMPTY;let o=Number(r);this.tabIndex=o||o===0?o:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:oe(),i=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:oe(),r=this.datepicker?et(this.datepicker.openedStream,this.datepicker.closedStream):oe();this._stateChanges.unsubscribe(),this._stateChanges=et(this._intl.changes,e,i,r).subscribe(()=>this._changeDetectorRef.markForCheck())}static{this.\u0275fac=function(i){return new(i||n)(p(qh),p(_e),dn("tabindex"))}}static{this.\u0275cmp=A({type:n,selectors:[["mat-datepicker-toggle"]],contentQueries:function(i,r,o){if(i&1&&He(o,KZ,5),i&2){let s;B(s=$())&&(r._customIcon=s.first)}},viewQuery:function(i,r){if(i&1&&le(OZ,5),i&2){let o;B(o=$())&&(r._button=o.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(i,r){i&1&&F("click",function(s){return r._open(s)}),i&2&&(re("tabindex",null)("data-mat-calendar",r.datepicker?r.datepicker.id:null),Q("mat-datepicker-toggle-active",r.datepicker&&r.datepicker.opened)("mat-accent",r.datepicker&&r.datepicker.color==="accent")("mat-warn",r.datepicker&&r.datepicker.color==="warn"))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",W],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],standalone:!0,features:[Ie,ze,O],ngContentSelectors:PZ,decls:4,vars:6,consts:[["button",""],["mat-icon-button","","type","button",3,"disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(i,r){i&1&&(ge(RZ),b(0,"button",1,0),U(2,FZ,2,0,":svg:svg",2),Z(3),y()),i&2&&(q("disabled",r.disabled)("disableRipple",r.disableRipple),re("aria-haspopup",r.datepicker?"dialog":null)("aria-label",r.ariaLabel||r._intl.openCalendarLabel)("tabindex",r.disabled?-1:r.tabIndex),w(2),Y(r._customIcon?-1:2))},dependencies:[ma],styles:[".mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color, var(--mat-app-on-surface-variant))}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-app-on-surface-variant))}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0})}}return n})();var lS=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({providers:[qh,WZ],imports:[Li,bs,Ti,ua,eo,Me,jL,ZZ,LL,Zi]})}}return n})();var XZ=["tooltip"],HL=20;var UL=new I("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let n=C(dt);return()=>n.scrollStrategies.reposition({scrollThrottle:HL})}});function JZ(n){return()=>n.scrollStrategies.reposition({scrollThrottle:HL})}var eX={provide:UL,deps:[dt],useFactory:JZ};function cS(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var dS=new I("mat-tooltip-default-options",{providedIn:"root",factory:cS});var $L="tooltip-panel",zL=hi({passive:!0}),tX=8,iX=8,nX=24,rX=200,ka=(()=>{class n{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=ai(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let i=ai(e);this._disabled!==i&&(this._disabled=i,i?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=ji(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=ji(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){let i=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(i)}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(e,i,r,o,s,a,l,c,d,u,h,f){this._overlay=e,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=o,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._tooltipComponent=oX,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._touchstartTimeout=null,this._destroyed=new k,this._injector=C(Oe),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),h.tooltipClass&&(this.tooltipClass=h.tooltipClass)),u.change.pipe(Ce(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=tX}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Ce(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let e=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,r])=>{e.removeEventListener(i,r,zL)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,i){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let r=this._createOverlay(i);this._detach(),this._portal=this._portal||new Vn(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(Ce(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){let i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&o._origin instanceof H)return this._overlayRef;this._detach()}let i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),r=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return r.positionChanges.pipe(Ce(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${$L}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Ce(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Ce(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Ce(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&o.keyCode===27&&!xt(o)&&(o.preventDefault(),o.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){let i=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset(E(E({},r.main),o.main)),this._addOffset(E(E({},r.fallback),o.fallback))])}_addOffset(e){let i=iX,r=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-i:e.originY==="bottom"?e.offsetY=i:e.originX==="start"?e.offsetX=r?-i:i:e.originX==="end"&&(e.offsetX=r?i:-i),e}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",i=this.position,r;i=="above"||i=="below"?r={originX:"center",originY:i=="above"?"top":"bottom"}:i=="before"||i=="left"&&e||i=="right"&&!e?r={originX:"start",originY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(r={originX:"end",originY:"center"});let{x:o,y:s}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:s}}}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",i=this.position,r;i=="above"?r={overlayX:"center",overlayY:"bottom"}:i=="below"?r={overlayX:"center",overlayY:"top"}:i=="before"||i=="left"&&e||i=="right"&&!e?r={overlayX:"end",overlayY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(r={overlayX:"start",overlayY:"center"});let{x:o,y:s}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),jt(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return this.position==="above"||this.position==="below"?i==="top"?i="bottom":i==="bottom"&&(i="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){let{overlayY:i,originX:r,originY:o}=e,s;if(i==="center"?this._dir&&this._dir.value==="rtl"?s=r==="end"?"left":"right":s=r==="start"?"left":"right":s=i==="bottom"&&o==="top"?"above":"below",s!==this._currentPosition){let a=this._overlayRef;if(a){let l=`${this._cssClassPrefix}-${$L}-`;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=>{this._setupPointerExitEventsIfNeeded();let i;e.x!==void 0&&e.y!==void 0&&(i=e),this.show(void 0,i)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{let i=e.targetTouches?.[0],r=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let o=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,r)},this._defaultOptions.touchLongPressShowDelay??o)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{let r=i.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let i=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,zL)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){let i=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let i=this._elementRef.nativeElement,r=i.style;(e==="on"||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA")&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),(e==="on"||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}static{this.\u0275fac=function(i){return new(i||n)(p(dt),p(H),p(to),p(ht),p(X),p(Ne),p(b_),p(yi),p(UL),p(gt),p(dS,8),p(ce))}}static{this.\u0275dir=M({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,r){i&2&&Q("mat-mdc-tooltip-disabled",r.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0})}}return n})(),oX=(()=>{class n{constructor(e,i,r){this._changeDetectorRef=e,this._elementRef=i,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new k,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled=r==="NoopAnimations"}show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>nX&&e.width>=rX}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){let i=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(i.classList.remove(e?o:r),i.classList.add(e?r:o),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let s=getComputedStyle(i);(s.getPropertyValue("animation-duration")==="0s"||s.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static{this.\u0275fac=function(i){return new(i||n)(p(_e),p(H),p(Dt,8))}}static{this.\u0275cmp=A({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(i,r){if(i&1&&le(XZ,7),i&2){let o;B(o=$())&&(r._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(i,r){i&1&&F("mouseleave",function(s){return r._handleMouseLeave(s)})},standalone:!0,features:[O],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(i,r){if(i&1){let o=ye();b(0,"div",1,0),F("animationend",function(a){return N(o),L(r._handleAnimationEnd(a))}),b(2,"div",2),z(3),y()()}i&2&&(Q("mdc-tooltip--multiline",r._isMultiline),q("ngClass",r.tooltipClass),w(3),ft(r.message))},dependencies:[$c],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.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-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color, var(--mat-app-inverse-surface));color:var(--mdc-plain-tooltip-supporting-text-color, var(--mat-app-inverse-on-surface));border-radius:var(--mdc-plain-tooltip-container-shape, var(--mat-app-corner-extra-small));font-family:var(--mdc-plain-tooltip-supporting-text-font, var(--mat-app-body-small-font));font-size:var(--mdc-plain-tooltip-supporting-text-size, var(--mat-app-body-small-size));font-weight:var(--mdc-plain-tooltip-supporting-text-weight, var(--mat-app-body-small-weight));line-height:var(--mdc-plain-tooltip-supporting-text-line-height, var(--mat-app-body-small-line-height));letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, var(--mat-app-body-small-tracking))}.mat-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}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}}return n})();var Gh=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({providers:[eX],imports:[ua,Li,Ti,Me,Me,Zi]})}}return n})();var sX={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},WL=(n,t,e)=>{let i,r=sX[n];return typeof r=="string"?i=r:t===1?i=r.one:i=r.other.replace("{{count}}",t.toString()),e?.addSuffix?e.comparison&&e.comparison>0?"in "+i:i+" ago":i};function J_(n){return(t={})=>{let e=t.width?String(t.width):n.defaultWidth;return n.formats[e]||n.formats[n.defaultWidth]}}var aX={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},lX={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},cX={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},YL={date:J_({formats:aX,defaultWidth:"full"}),time:J_({formats:lX,defaultWidth:"full"}),dateTime:J_({formats:cX,defaultWidth:"full"})};var dX={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},qL=(n,t,e,i)=>dX[n];function Td(n){return(t,e)=>{let i=e?.context?String(e.context):"standalone",r;if(i==="formatting"&&n.formattingValues){let s=n.defaultFormattingWidth||n.defaultWidth,a=e?.width?String(e.width):s;r=n.formattingValues[a]||n.formattingValues[s]}else{let s=n.defaultWidth,a=e?.width?String(e.width):n.defaultWidth;r=n.values[a]||n.values[s]}let o=n.argumentCallback?n.argumentCallback(t):t;return r[o]}}var uX={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},hX={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},fX={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},mX={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},pX={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},gX={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},_X=(n,t)=>{let e=Number(n),i=e%100;if(i>20||i<10)switch(i%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},GL={ordinalNumber:_X,era:Td({values:uX,defaultWidth:"wide"}),quarter:Td({values:hX,defaultWidth:"wide",argumentCallback:n=>n-1}),month:Td({values:fX,defaultWidth:"wide"}),day:Td({values:mX,defaultWidth:"wide"}),dayPeriod:Td({values:pX,defaultWidth:"wide",formattingValues:gX,defaultFormattingWidth:"wide"})};function Ad(n){return(t,e={})=>{let i=e.width,r=i&&n.matchPatterns[i]||n.matchPatterns[n.defaultMatchWidth],o=t.match(r);if(!o)return null;let s=o[0],a=i&&n.parsePatterns[i]||n.parsePatterns[n.defaultParseWidth],l=Array.isArray(a)?vX(a,u=>u.test(s)):bX(a,u=>u.test(s)),c;c=n.valueCallback?n.valueCallback(l):l,c=e.valueCallback?e.valueCallback(c):c;let d=t.slice(s.length);return{value:c,rest:d}}}function bX(n,t){for(let e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&t(n[e]))return e}function vX(n,t){for(let e=0;e{let i=t.match(n.matchPattern);if(!i)return null;let r=i[0],o=t.match(n.parsePattern);if(!o)return null;let s=n.valueCallback?n.valueCallback(o[0]):o[0];s=e.valueCallback?e.valueCallback(s):s;let a=t.slice(r.length);return{value:s,rest:a}}}var yX=/^(\d+)(th|st|nd|rd)?/i,wX=/\d+/i,CX={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},DX={any:[/^b/i,/^(a|c)/i]},xX={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},SX={any:[/1/i,/2/i,/3/i,/4/i]},kX={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},EX={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},IX={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},MX={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},TX={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},AX={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},KL={ordinalNumber:QL({matchPattern:yX,parsePattern:wX,valueCallback:n=>parseInt(n,10)}),era:Ad({matchPatterns:CX,defaultMatchWidth:"wide",parsePatterns:DX,defaultParseWidth:"any"}),quarter:Ad({matchPatterns:xX,defaultMatchWidth:"wide",parsePatterns:SX,defaultParseWidth:"any",valueCallback:n=>n+1}),month:Ad({matchPatterns:kX,defaultMatchWidth:"wide",parsePatterns:EX,defaultParseWidth:"any"}),day:Ad({matchPatterns:IX,defaultMatchWidth:"wide",parsePatterns:MX,defaultParseWidth:"any"}),dayPeriod:Ad({matchPatterns:TX,defaultMatchWidth:"any",parsePatterns:AX,defaultParseWidth:"any"})};var uS={code:"en-US",formatDistance:WL,formatLong:YL,formatRelative:qL,localize:GL,match:KL,options:{weekStartsOn:0,firstWeekContainsDate:1}};var OX={};function Po(){return OX}var RX=Math.pow(10,8)*24*60*60*1e3,FEe=-RX,eb=6048e5,ZL=864e5;var NEe=36e5;var PX=3600;var XL=PX*24,LEe=XL*7,FX=XL*365.2425,NX=FX/12,VEe=NX*3,hS=Symbol.for("constructDateFrom");function Bn(n,t){return typeof n=="function"?n(t):n&&typeof n=="object"&&hS in n?n[hS](t):n instanceof Date?new n.constructor(t):new Date(t)}function li(n,t){return Bn(t||n,n)}function fS(n){let t=li(n),e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),+n-+e}function JL(n,...t){let e=Bn.bind(null,n||t.find(i=>typeof i=="object"));return t.map(e)}function mS(n,t){let e=li(n,t?.in);return e.setHours(0,0,0,0),e}function e2(n,t,e){let[i,r]=JL(e?.in,n,t),o=mS(i),s=mS(r),a=+o-fS(o),l=+s-fS(s);return Math.round((a-l)/ZL)}function t2(n,t){let e=li(n,t?.in);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}function i2(n,t){let e=li(n,t?.in);return e2(e,t2(e))+1}function Ds(n,t){let e=Po(),i=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??e.weekStartsOn??e.locale?.options?.weekStartsOn??0,r=li(n,t?.in),o=r.getDay(),s=(o=o.getTime()?i+1:e.getTime()>=a.getTime()?i:i-1}function n2(n,t){let e=tb(n,t),i=Bn(t?.in||n,0);return i.setFullYear(e,0,4),i.setHours(0,0,0,0),Vl(i)}function r2(n,t){let e=li(n,t?.in),i=+Vl(e)-+n2(e);return Math.round(i/eb)+1}function ib(n,t){let e=li(n,t?.in),i=e.getFullYear(),r=Po(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=Bn(t?.in||n,0);s.setFullYear(i+1,0,o),s.setHours(0,0,0,0);let a=Ds(s,t),l=Bn(t?.in||n,0);l.setFullYear(i,0,o),l.setHours(0,0,0,0);let c=Ds(l,t);return+e>=+a?i+1:+e>=+c?i:i-1}function o2(n,t){let e=Po(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??e.firstWeekContainsDate??e.locale?.options?.firstWeekContainsDate??1,r=ib(n,t),o=Bn(t?.in||n,0);return o.setFullYear(r,0,i),o.setHours(0,0,0,0),Ds(o,t)}function s2(n,t){let e=li(n,t?.in),i=+Ds(e,t)-+o2(e,t);return Math.round(i/eb)+1}function Tt(n,t){let e=n<0?"-":"",i=Math.abs(n).toString().padStart(t,"0");return e+i}var xs={y(n,t){let e=n.getFullYear(),i=e>0?e:1-e;return Tt(t==="yy"?i%100:i,t.length)},M(n,t){let e=n.getMonth();return t==="M"?String(e+1):Tt(e+1,2)},d(n,t){return Tt(n.getDate(),t.length)},a(n,t){let e=n.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];case"aaaa":default:return e==="am"?"a.m.":"p.m."}},h(n,t){return Tt(n.getHours()%12||12,t.length)},H(n,t){return Tt(n.getHours(),t.length)},m(n,t){return Tt(n.getMinutes(),t.length)},s(n,t){return Tt(n.getSeconds(),t.length)},S(n,t){let e=t.length,i=n.getMilliseconds(),r=Math.trunc(i*Math.pow(10,e-3));return Tt(r,t.length)}};var Od={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},pS={G:function(n,t,e){let i=n.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return e.era(i,{width:"abbreviated"});case"GGGGG":return e.era(i,{width:"narrow"});case"GGGG":default:return e.era(i,{width:"wide"})}},y:function(n,t,e){if(t==="yo"){let i=n.getFullYear(),r=i>0?i:1-i;return e.ordinalNumber(r,{unit:"year"})}return xs.y(n,t)},Y:function(n,t,e,i){let r=ib(n,i),o=r>0?r:1-r;if(t==="YY"){let s=o%100;return Tt(s,2)}return t==="Yo"?e.ordinalNumber(o,{unit:"year"}):Tt(o,t.length)},R:function(n,t){let e=tb(n);return Tt(e,t.length)},u:function(n,t){let e=n.getFullYear();return Tt(e,t.length)},Q:function(n,t,e){let i=Math.ceil((n.getMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return Tt(i,2);case"Qo":return e.ordinalNumber(i,{unit:"quarter"});case"QQQ":return e.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(i,{width:"wide",context:"formatting"})}},q:function(n,t,e){let i=Math.ceil((n.getMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return Tt(i,2);case"qo":return e.ordinalNumber(i,{unit:"quarter"});case"qqq":return e.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(i,{width:"wide",context:"standalone"})}},M:function(n,t,e){let i=n.getMonth();switch(t){case"M":case"MM":return xs.M(n,t);case"Mo":return e.ordinalNumber(i+1,{unit:"month"});case"MMM":return e.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(i,{width:"wide",context:"formatting"})}},L:function(n,t,e){let i=n.getMonth();switch(t){case"L":return String(i+1);case"LL":return Tt(i+1,2);case"Lo":return e.ordinalNumber(i+1,{unit:"month"});case"LLL":return e.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(i,{width:"wide",context:"standalone"})}},w:function(n,t,e,i){let r=s2(n,i);return t==="wo"?e.ordinalNumber(r,{unit:"week"}):Tt(r,t.length)},I:function(n,t,e){let i=r2(n);return t==="Io"?e.ordinalNumber(i,{unit:"week"}):Tt(i,t.length)},d:function(n,t,e){return t==="do"?e.ordinalNumber(n.getDate(),{unit:"date"}):xs.d(n,t)},D:function(n,t,e){let i=i2(n);return t==="Do"?e.ordinalNumber(i,{unit:"dayOfYear"}):Tt(i,t.length)},E:function(n,t,e){let i=n.getDay();switch(t){case"E":case"EE":case"EEE":return e.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(i,{width:"short",context:"formatting"});case"EEEE":default:return e.day(i,{width:"wide",context:"formatting"})}},e:function(n,t,e,i){let r=n.getDay(),o=(r-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Tt(o,2);case"eo":return e.ordinalNumber(o,{unit:"day"});case"eee":return e.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(r,{width:"short",context:"formatting"});case"eeee":default:return e.day(r,{width:"wide",context:"formatting"})}},c:function(n,t,e,i){let r=n.getDay(),o=(r-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Tt(o,t.length);case"co":return e.ordinalNumber(o,{unit:"day"});case"ccc":return e.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(r,{width:"narrow",context:"standalone"});case"cccccc":return e.day(r,{width:"short",context:"standalone"});case"cccc":default:return e.day(r,{width:"wide",context:"standalone"})}},i:function(n,t,e){let i=n.getDay(),r=i===0?7:i;switch(t){case"i":return String(r);case"ii":return Tt(r,t.length);case"io":return e.ordinalNumber(r,{unit:"day"});case"iii":return e.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(i,{width:"short",context:"formatting"});case"iiii":default:return e.day(i,{width:"wide",context:"formatting"})}},a:function(n,t,e){let r=n.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(n,t,e){let i=n.getHours(),r;switch(i===12?r=Od.noon:i===0?r=Od.midnight:r=i/12>=1?"pm":"am",t){case"b":case"bb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(n,t,e){let i=n.getHours(),r;switch(i>=17?r=Od.evening:i>=12?r=Od.afternoon:i>=4?r=Od.morning:r=Od.night,t){case"B":case"BB":case"BBB":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(n,t,e){if(t==="ho"){let i=n.getHours()%12;return i===0&&(i=12),e.ordinalNumber(i,{unit:"hour"})}return xs.h(n,t)},H:function(n,t,e){return t==="Ho"?e.ordinalNumber(n.getHours(),{unit:"hour"}):xs.H(n,t)},K:function(n,t,e){let i=n.getHours()%12;return t==="Ko"?e.ordinalNumber(i,{unit:"hour"}):Tt(i,t.length)},k:function(n,t,e){let i=n.getHours();return i===0&&(i=24),t==="ko"?e.ordinalNumber(i,{unit:"hour"}):Tt(i,t.length)},m:function(n,t,e){return t==="mo"?e.ordinalNumber(n.getMinutes(),{unit:"minute"}):xs.m(n,t)},s:function(n,t,e){return t==="so"?e.ordinalNumber(n.getSeconds(),{unit:"second"}):xs.s(n,t)},S:function(n,t){return xs.S(n,t)},X:function(n,t,e){let i=n.getTimezoneOffset();if(i===0)return"Z";switch(t){case"X":return l2(i);case"XXXX":case"XX":return jl(i);case"XXXXX":case"XXX":default:return jl(i,":")}},x:function(n,t,e){let i=n.getTimezoneOffset();switch(t){case"x":return l2(i);case"xxxx":case"xx":return jl(i);case"xxxxx":case"xxx":default:return jl(i,":")}},O:function(n,t,e){let i=n.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+a2(i,":");case"OOOO":default:return"GMT"+jl(i,":")}},z:function(n,t,e){let i=n.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+a2(i,":");case"zzzz":default:return"GMT"+jl(i,":")}},t:function(n,t,e){let i=Math.trunc(+n/1e3);return Tt(i,t.length)},T:function(n,t,e){return Tt(+n,t.length)}};function a2(n,t=""){let e=n>0?"-":"+",i=Math.abs(n),r=Math.trunc(i/60),o=i%60;return o===0?e+String(r):e+String(r)+t+Tt(o,2)}function l2(n,t){return n%60===0?(n>0?"-":"+")+Tt(Math.abs(n)/60,2):jl(n,t)}function jl(n,t=""){let e=n>0?"-":"+",i=Math.abs(n),r=Tt(Math.trunc(i/60),2),o=Tt(i%60,2);return e+r+t+o}var c2=(n,t)=>{switch(n){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},d2=(n,t)=>{switch(n){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},LX=(n,t)=>{let e=n.match(/(P+)(p+)?/)||[],i=e[1],r=e[2];if(!r)return c2(n,t);let o;switch(i){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",c2(i,t)).replace("{{time}}",d2(r,t))},u2={p:d2,P:LX};var VX=/^D+$/,jX=/^Y+$/,BX=["D","DD","YY","YYYY"];function h2(n){return VX.test(n)}function f2(n){return jX.test(n)}function m2(n,t,e){let i=$X(n,t,e);if(console.warn(i),BX.includes(n))throw new RangeError(i)}function $X(n,t,e){let i=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${t}\`) for formatting ${i} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function p2(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function g2(n){return!(!p2(n)&&typeof n!="number"||isNaN(+li(n)))}var zX=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,HX=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,UX=/^'([^]*?)'?$/,WX=/''/g,YX=/[a-zA-Z]/;function _2(n,t,e){let i=Po(),r=e?.locale??i.locale??uS,o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,s=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,a=li(n,e?.in);if(!g2(a))throw new RangeError("Invalid time value");let l=t.match(HX).map(d=>{let u=d[0];if(u==="p"||u==="P"){let h=u2[u];return h(d,r.formatLong)}return d}).join("").match(zX).map(d=>{if(d==="''")return{isToken:!1,value:"'"};let u=d[0];if(u==="'")return{isToken:!1,value:qX(d)};if(pS[u])return{isToken:!0,value:d};if(u.match(YX))throw new RangeError("Format string contains an unescaped latin alphabet character `"+u+"`");return{isToken:!1,value:d}});r.localize.preprocessor&&(l=r.localize.preprocessor(a,l));let c={firstWeekContainsDate:o,weekStartsOn:s,locale:r};return l.map(d=>{if(!d.isToken)return d.value;let u=d.value;(!e?.useAdditionalWeekYearTokens&&f2(u)||!e?.useAdditionalDayOfYearTokens&&h2(u))&&m2(u,t,String(n));let h=pS[u[0]];return h(a,u,r.localize,c)}).join("")}function qX(n){let t=n.match(UX);return t?t[1].replace(WX,"'"):n}function b2(){return Object.assign({},Po())}function gS(n,t,e){let i=b2(),r=KX(n,e.timeZone,e.locale??i.locale);return"formatToParts"in r?GX(r,t):QX(r,t)}function GX(n,t){let e=n.formatToParts(t);for(let i=e.length-1;i>=0;--i)if(e[i].type==="timeZoneName")return e[i].value}function QX(n,t){let e=n.format(t).replace(/\u200E/g,""),i=/ [\w-+ ]+$/.exec(e);return i?i[0].substr(1):""}function KX(n,t,e){return new Intl.DateTimeFormat(e?[e.code,"en-US"]:void 0,{timeZone:t,timeZoneName:n})}function y2(n,t){let e=tJ(t);return"formatToParts"in e?XX(e,n):JX(e,n)}var ZX={year:0,month:1,day:2,hour:3,minute:4,second:5};function XX(n,t){try{let e=n.formatToParts(t),i=[];for(let r=0;r=0?o:1e3+o,i-r}function rJ(n,t,e){let r=n.getTime()-t,o=vS(new Date(r),e);if(t===o)return t;r-=o-t;let s=vS(new Date(r),e);return o===s?o:Math.max(o,s)}function C2(n,t){return-23<=n&&n<=23&&(t==null||0<=t&&t<=59)}var D2={};function oJ(n){if(D2[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),D2[n]=!0,!0}catch{return!1}}var sJ=60*1e3,S2={X:function(n,t,e){let i=yS(e.timeZone,n);if(i===0)return"Z";switch(t){case"X":return x2(i);case"XXXX":case"XX":return Rd(i);case"XXXXX":case"XXX":default:return Rd(i,":")}},x:function(n,t,e){let i=yS(e.timeZone,n);switch(t){case"x":return x2(i);case"xxxx":case"xx":return Rd(i);case"xxxxx":case"xxx":default:return Rd(i,":")}},O:function(n,t,e){let i=yS(e.timeZone,n);switch(t){case"O":case"OO":case"OOO":return"GMT"+aJ(i,":");case"OOOO":default:return"GMT"+Rd(i,":")}},z:function(n,t,e){switch(t){case"z":case"zz":case"zzz":return gS("short",n,e);case"zzzz":default:return gS("long",n,e)}}};function yS(n,t){let e=n?Ea(n,t,!0)/sJ:t?.getTimezoneOffset()??0;if(Number.isNaN(e))throw new RangeError("Invalid time zone specified: "+n);return e}function rb(n,t){let e=n<0?"-":"",i=Math.abs(n).toString();for(;i.length0?"-":"+",i=Math.abs(n),r=rb(Math.floor(i/60),2),o=rb(Math.floor(i%60),2);return e+r+t+o}function x2(n,t){return n%60===0?(n>0?"-":"+")+rb(Math.abs(n)/60,2):Rd(n,t)}function aJ(n,t=""){let e=n>0?"-":"+",i=Math.abs(n),r=Math.floor(i/60),o=i%60;return o===0?e+String(r):e+String(r)+t+rb(o,2)}function wS(n){let t=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return t.setUTCFullYear(n.getFullYear()),+n-+t}var CS=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;var DS=36e5,k2=6e4,lJ=2,xn={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:CS};function Pd(n,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(n===null)return new Date(NaN);let e=t.additionalDigits==null?lJ:Number(t.additionalDigits);if(e!==2&&e!==1&&e!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]")return new Date(n.getTime());if(typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]")return new Date(n);if(Object.prototype.toString.call(n)!=="[object String]")return new Date(NaN);let i=cJ(n),{year:r,restDateString:o}=dJ(i.date,e),s=uJ(o,r);if(s===null||isNaN(s.getTime()))return new Date(NaN);if(s){let a=s.getTime(),l=0,c;if(i.time&&(l=hJ(i.time),l===null||isNaN(l)))return new Date(NaN);if(i.timeZone||t.timeZone){if(c=Ea(i.timeZone||t.timeZone,new Date(a+l)),isNaN(c))return new Date(NaN)}else c=wS(new Date(a+l)),c=wS(new Date(a+l+c));return new Date(a+l+c)}else return new Date(NaN)}function cJ(n){let t={},e=xn.dateTimePattern.exec(n),i;if(e?(t.date=e[1],i=e[3]):(e=xn.datePattern.exec(n),e?(t.date=e[1],i=e[2]):(t.date=null,i=n)),i){let r=xn.timeZone.exec(i);r?(t.time=i.replace(r[1],""),t.timeZone=r[1].trim()):t.time=i}return t}function dJ(n,t){if(n){let e=xn.YYY[t],i=xn.YYYYY[t],r=xn.YYYY.exec(n)||i.exec(n);if(r){let o=r[1];return{year:parseInt(o,10),restDateString:n.slice(o.length)}}if(r=xn.YY.exec(n)||e.exec(n),r){let o=r[1];return{year:parseInt(o,10)*100,restDateString:n.slice(o.length)}}}return{year:null}}function uJ(n,t){if(t===null)return null;let e,i,r;if(!n||!n.length)return e=new Date(0),e.setUTCFullYear(t),e;let o=xn.MM.exec(n);if(o)return e=new Date(0),i=parseInt(o[1],10)-1,I2(t,i)?(e.setUTCFullYear(t,i),e):new Date(NaN);if(o=xn.DDD.exec(n),o){e=new Date(0);let s=parseInt(o[1],10);return pJ(t,s)?(e.setUTCFullYear(t,0,s),e):new Date(NaN)}if(o=xn.MMDD.exec(n),o){e=new Date(0),i=parseInt(o[1],10)-1;let s=parseInt(o[2],10);return I2(t,i,s)?(e.setUTCFullYear(t,i,s),e):new Date(NaN)}if(o=xn.Www.exec(n),o)return r=parseInt(o[1],10)-1,M2(r)?E2(t,r):new Date(NaN);if(o=xn.WwwD.exec(n),o){r=parseInt(o[1],10)-1;let s=parseInt(o[2],10)-1;return M2(r,s)?E2(t,r,s):new Date(NaN)}return null}function hJ(n){let t,e,i=xn.HH.exec(n);if(i)return t=parseFloat(i[1].replace(",",".")),xS(t)?t%24*DS:NaN;if(i=xn.HHMM.exec(n),i)return t=parseInt(i[1],10),e=parseFloat(i[2].replace(",",".")),xS(t,e)?t%24*DS+e*k2:NaN;if(i=xn.HHMMSS.exec(n),i){t=parseInt(i[1],10),e=parseInt(i[2],10);let r=parseFloat(i[3].replace(",","."));return xS(t,e,r)?t%24*DS+e*k2+r*1e3:NaN}return null}function E2(n,t,e){t=t||0,e=e||0;let i=new Date(0);i.setUTCFullYear(n,0,4);let r=i.getUTCDay()||7,o=t*7+e+1-r;return i.setUTCDate(i.getUTCDate()+o),i}var fJ=[31,28,31,30,31,30,31,31,30,31,30,31],mJ=[31,29,31,30,31,30,31,31,30,31,30,31];function T2(n){return n%400===0||n%4===0&&n%100!==0}function I2(n,t,e){if(t<0||t>11)return!1;if(e!=null){if(e<1)return!1;let i=T2(n);if(i&&e>mJ[t]||!i&&e>fJ[t])return!1}return!0}function pJ(n,t){if(t<1)return!1;let e=T2(n);return!(e&&t>366||!e&&t>365)}function M2(n,t){return!(n<0||n>52||t!=null&&(t<0||t>6))}function xS(n,t,e){return!(n<0||n>=25||t!=null&&(t<0||t>=60)||e!=null&&(e<0||e>=60))}var gJ=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function SS(n,t,e={}){t=String(t);let i=t.match(gJ);if(i){let r=Pd(e.originalDate||n,e);t=i.reduce(function(o,s){if(s[0]==="'")return o;let a=o.indexOf(s),l=o[a-1]==="'",c=o.replace(s,"'"+S2[s[0]](r,s,e)+"'");return l?c.substring(0,a-1)+c.substring(a+1):c},t)}return _2(n,t,e)}function kS(n,t,e){n=Pd(n,e);let i=Ea(t,n,!0),r=new Date(n.getTime()-i),o=new Date(0);return o.setFullYear(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()),o.setHours(r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds()),o}function Qh(n,t,e,i){return i=Pe(E({},i),{timeZone:t,originalDate:n}),SS(kS(n,t,{timeZone:i.timeZone}),e,i)}function A2(n){return new ee(3e3,!1)}function _J(){return new ee(3100,!1)}function bJ(){return new ee(3101,!1)}function vJ(n){return new ee(3001,!1)}function yJ(n){return new ee(3003,!1)}function wJ(n){return new ee(3004,!1)}function CJ(n,t){return new ee(3005,!1)}function DJ(){return new ee(3006,!1)}function xJ(){return new ee(3007,!1)}function SJ(n,t){return new ee(3008,!1)}function kJ(n){return new ee(3002,!1)}function EJ(n,t,e,i,r){return new ee(3010,!1)}function IJ(){return new ee(3011,!1)}function MJ(){return new ee(3012,!1)}function TJ(){return new ee(3200,!1)}function AJ(){return new ee(3202,!1)}function OJ(){return new ee(3013,!1)}function RJ(n){return new ee(3014,!1)}function PJ(n){return new ee(3015,!1)}function FJ(n){return new ee(3016,!1)}function NJ(n,t){return new ee(3404,!1)}function LJ(n){return new ee(3502,!1)}function VJ(n){return new ee(3503,!1)}function jJ(){return new ee(3300,!1)}function BJ(n){return new ee(3504,!1)}function $J(n){return new ee(3301,!1)}function zJ(n,t){return new ee(3302,!1)}function HJ(n){return new ee(3303,!1)}function UJ(n,t){return new ee(3400,!1)}function WJ(n){return new ee(3401,!1)}function YJ(n){return new ee(3402,!1)}function qJ(n,t){return new ee(3505,!1)}function Ia(n){switch(n.length){case 0:return new pa;case 1:return n[0];default:return new Ih(n)}}function W2(n,t,e=new Map,i=new Map){let r=[],o=[],s=-1,a=null;if(t.forEach(l=>{let c=l.get("offset"),d=c==s,u=d&&a||new Map;l.forEach((h,f)=>{let m=f,g=h;if(f!=="offset")switch(m=n.normalizePropertyName(m,r),g){case k_:g=e.get(f);break;case Ro:g=i.get(f);break;default:g=n.normalizeStyleValue(f,m,g,r);break}u.set(m,g)}),d||o.push(u),a=u,s=c}),r.length)throw LJ(r);return o}function QS(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&ES(e,"start",n)));break;case"done":n.onDone(()=>i(e&&ES(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&ES(e,"destroy",n)));break}}function ES(n,t,e){let i=e.totalTime,r=!!e.disabled,o=KS(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,i??n.totalTime,r),s=n._data;return s!=null&&(o._data=s),o}function KS(n,t,e,i,r="",o=0,s){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function ar(n,t,e){let i=n.get(t);return i||n.set(t,i=e),i}function O2(n){let t=n.indexOf(":"),e=n.substring(1,t),i=n.slice(t+1);return[e,i]}var GJ=typeof document>"u"?null:document.documentElement;function ZS(n){let t=n.parentNode||n.host||null;return t===GJ?null:t}function QJ(n){return n.substring(1,6)=="ebkit"}var Bl=null,R2=!1;function KJ(n){Bl||(Bl=ZJ()||{},R2=Bl.style?"WebkitAppearance"in Bl.style:!1);let t=!0;return Bl.style&&!QJ(n)&&(t=n in Bl.style,!t&&R2&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Bl.style)),t}function ZJ(){return typeof document<"u"?document.body:null}function Y2(n,t){for(;t;){if(t===n)return!0;t=ZS(t)}return!1}function q2(n,t,e){if(e)return Array.from(n.querySelectorAll(t));let i=n.querySelector(t);return i?[i]:[]}var XS=(()=>{class n{validateStyleProperty(e){return KJ(e)}containsElement(e,i){return Y2(e,i)}getParentElement(e){return ZS(e)}query(e,i,r){return q2(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new pa(r,o)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac})}}return n})(),Hl=class{static{this.NOOP=new XS}},Ul=class{};var XJ=1e3,G2="{{",JJ="}}",Q2="ng-enter",RS="ng-leave",ob="ng-trigger",db=".ng-trigger",P2="ng-animating",PS=".ng-animating";function Ss(n){if(typeof n=="number")return n;let t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:FS(parseFloat(t[1]),t[2])}function FS(n,t){switch(t){case"s":return n*XJ;default:return n}}function ub(n,t,e){return n.hasOwnProperty("duration")?n:eee(n,t,e)}function eee(n,t,e){let i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,o=0,s="";if(typeof n=="string"){let a=n.match(i);if(a===null)return t.push(A2(n)),{duration:0,delay:0,easing:""};r=FS(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(o=FS(parseFloat(l),a[4]));let c=a[5];c&&(s=c)}else r=n;if(!e){let a=!1,l=t.length;r<0&&(t.push(_J()),a=!0),o<0&&(t.push(bJ()),a=!0),a&&t.splice(l,0,A2(n))}return{duration:r,delay:o,easing:s}}function tee(n){return n.length?n[0]instanceof Map?n:n.map(t=>new Map(Object.entries(t))):[]}function Fo(n,t,e){t.forEach((i,r)=>{let o=JS(r);e&&!e.has(r)&&e.set(r,n.style[o]),n.style[o]=i})}function zl(n,t){t.forEach((e,i)=>{let r=JS(i);n.style[r]=""})}function Kh(n){return Array.isArray(n)?n.length==1?n[0]:dN(n):n}function iee(n,t,e){let i=t.params||{},r=K2(n);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(vJ(o))})}var NS=new RegExp(`${G2}\\s*(.+?)\\s*${JJ}`,"g");function K2(n){let t=[];if(typeof n=="string"){let e;for(;e=NS.exec(n);)t.push(e[1]);NS.lastIndex=0}return t}function Xh(n,t,e){let i=`${n}`,r=i.replace(NS,(o,s)=>{let a=t[s];return a==null&&(e.push(yJ(s)),a=""),a.toString()});return r==i?n:r}var nee=/-+([a-z0-9])/g;function JS(n){return n.replace(nee,(...t)=>t[1].toUpperCase())}function ree(n,t){return n===0||t===0}function oee(n,t,e){if(e.size&&t.length){let i=t[0],r=[];if(e.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,ek(n,a)))}}return t}function sr(n,t,e){switch(t.type){case Ge.Trigger:return n.visitTrigger(t,e);case Ge.State:return n.visitState(t,e);case Ge.Transition:return n.visitTransition(t,e);case Ge.Sequence:return n.visitSequence(t,e);case Ge.Group:return n.visitGroup(t,e);case Ge.Animate:return n.visitAnimate(t,e);case Ge.Keyframes:return n.visitKeyframes(t,e);case Ge.Style:return n.visitStyle(t,e);case Ge.Reference:return n.visitReference(t,e);case Ge.AnimateChild:return n.visitAnimateChild(t,e);case Ge.AnimateRef:return n.visitAnimateRef(t,e);case Ge.Query:return n.visitQuery(t,e);case Ge.Stagger:return n.visitStagger(t,e);default:throw wJ(t.type)}}function ek(n,t){return window.getComputedStyle(n)[t]}var see=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"]),hb=class extends Ul{normalizePropertyName(t,e){return JS(t)}normalizeStyleValue(t,e,i,r){let o="",s=i.toString().trim();if(see.has(e)&&i!==0&&i!=="0")if(typeof i=="number")o="px";else{let a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&r.push(CJ(t,i))}return s+o}};var fb="*";function aee(n,t){let e=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(i=>lee(i,e,t)):e.push(n),e}function lee(n,t,e){if(n[0]==":"){let l=cee(n,e);if(typeof l=="function"){t.push(l);return}n=l}let i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return e.push(PJ(n)),t;let r=i[1],o=i[2],s=i[3];t.push(F2(r,s));let a=r==fb&&s==fb;o[0]=="<"&&!a&&t.push(F2(s,r))}function cee(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}var sb=new Set(["true","1"]),ab=new Set(["false","0"]);function F2(n,t){let e=sb.has(n)||ab.has(n),i=sb.has(t)||ab.has(t);return(r,o)=>{let s=n==fb||n==r,a=t==fb||t==o;return!s&&e&&typeof r=="boolean"&&(s=r?sb.has(n):ab.has(n)),!a&&i&&typeof o=="boolean"&&(a=o?sb.has(t):ab.has(t)),s&&a}}var Z2=":self",dee=new RegExp(`s*${Z2}s*,?`,"g");function X2(n,t,e,i){return new LS(n).build(t,e,i)}var N2="",LS=class{constructor(t){this._driver=t}build(t,e,i){let r=new VS(e);return this._resetContextStyleTimingState(r),sr(this,Kh(t),r)}_resetContextStyleTimingState(t){t.currentQuerySelector=N2,t.collectedStyles=new Map,t.collectedStyles.set(N2,new Map),t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0,o=[],s=[];return t.name.charAt(0)=="@"&&e.errors.push(DJ()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),a.type==Ge.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,o.push(this.visitState(l,e))}),l.name=c}else if(a.type==Ge.Transition){let l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,s.push(l)}else e.errors.push(xJ())}),{type:Ge.Trigger,name:t.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(t,e){let i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){let o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{K2(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&e.errors.push(SJ(t.name,[...o.values()]))}return{type:Ge.State,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;let i=sr(this,Kh(t.animation),e),r=aee(t.expr,e.errors);return{type:Ge.Transition,matchers:r,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:$l(t.options)}}visitSequence(t,e){return{type:Ge.Sequence,steps:t.steps.map(i=>sr(this,i,e)),options:$l(t.options)}}visitGroup(t,e){let i=e.currentTime,r=0,o=t.steps.map(s=>{e.currentTime=i;let a=sr(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:Ge.Group,steps:o,options:$l(t.options)}}visitAnimate(t,e){let i=mee(t.timings,e.errors);e.currentAnimateTimings=i;let r,o=t.styles?t.styles:De({});if(o.type==Ge.Keyframes)r=this.visitKeyframes(o,e);else{let s=t.styles,a=!1;if(!s){a=!0;let c={};i.easing&&(c.easing=i.easing),s=De(c)}e.currentTime+=i.duration+i.delay;let l=this.visitStyle(s,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:Ge.Animate,timings:i,style:r,options:null}}visitStyle(t,e){let i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){let i=[],r=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of r)typeof a=="string"?a===Ro?i.push(a):e.errors.push(kJ(a)):i.push(new Map(Object.entries(a)));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o)){for(let l of a.values())if(l.toString().indexOf(G2)>=0){o=!0;break}}}),{type:Ge.Style,styles:i,easing:s,offset:t.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(t,e){let i=e.currentAnimateTimings,r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),t.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,l)=>{let c=e.collectedStyles.get(e.currentQuerySelector),d=c.get(l),u=!0;d&&(o!=r&&o>=d.startTime&&r<=d.endTime&&(e.errors.push(EJ(l,d.startTime,d.endTime,o,r)),u=!1),o=d.startTime),u&&c.set(l,{startTime:o,endTime:r}),e.options&&iee(a,e.options,e.errors)})})}visitKeyframes(t,e){let i={type:Ge.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(IJ()),i;let r=1,o=0,s=[],a=!1,l=!1,c=0,d=t.steps.map(v=>{let x=this._makeStyleAst(v,e),R=x.offset!=null?x.offset:fee(x.styles),V=0;return R!=null&&(o++,V=x.offset=R),l=l||V<0||V>1,a=a||V0&&o{let R=h>0?x==f?1:h*x:s[x],V=R*_;e.currentTime=m+g.delay+V,g.duration=V,this._validateStyleAst(v,e),v.offset=R,i.styles.push(v)}),i}visitReference(t,e){return{type:Ge.Reference,animation:sr(this,Kh(t.animation),e),options:$l(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:Ge.AnimateChild,options:$l(t.options)}}visitAnimateRef(t,e){return{type:Ge.AnimateRef,animation:this.visitReference(t.animation,e),options:$l(t.options)}}visitQuery(t,e){let i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;let[o,s]=uee(t.selector);e.currentQuerySelector=i.length?i+" "+o:o,ar(e.collectedStyles,e.currentQuerySelector,new Map);let a=sr(this,Kh(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:Ge.Query,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:$l(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(OJ());let i=t.timings==="full"?{duration:0,delay:0,easing:"full"}:ub(t.timings,e.errors,!0);return{type:Ge.Stagger,animation:sr(this,Kh(t.animation),e),timings:i,options:null}}};function uee(n){let t=!!n.split(/\s*,\s*/).find(e=>e==Z2);return t&&(n=n.replace(dee,"")),n=n.replace(/@\*/g,db).replace(/@\w+/g,e=>db+"-"+e.slice(1)).replace(/:animating/g,PS),[n,t]}function hee(n){return n?E({},n):null}var VS=class{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 fee(n){if(typeof n=="string")return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){let i=e;t=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let e=n;t=parseFloat(e.get("offset")),e.delete("offset")}return t}function mee(n,t){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let o=ub(n,t).duration;return IS(o,0,"")}let e=n;if(e.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=IS(0,0,"");return o.dynamic=!0,o.strValue=e,o}let r=ub(e,t);return IS(r.duration,r.delay,r.easing)}function $l(n){return n?(n=E({},n),n.params&&(n.params=hee(n.params))):n={},n}function IS(n,t,e){return{duration:n,delay:t,easing:e}}function tk(n,t,e,i,r,o,s=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}var Jh=class{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}},pee=1,gee=":enter",_ee=new RegExp(gee,"g"),bee=":leave",vee=new RegExp(bee,"g");function J2(n,t,e,i,r,o=new Map,s=new Map,a,l,c=[]){return new jS().buildKeyframes(n,t,e,i,r,o,s,a,l,c)}var jS=class{buildKeyframes(t,e,i,r,o,s,a,l,c,d=[]){c=c||new Jh;let u=new BS(t,e,c,r,o,d,[]);u.options=l;let h=l.delay?Ss(l.delay):0;u.currentTimeline.delayNextStep(h),u.currentTimeline.setStyles([s],null,u.errors,l),sr(this,i,u);let f=u.timelines.filter(m=>m.containsAnimation());if(f.length&&a.size){let m;for(let g=f.length-1;g>=0;g--){let _=f[g];if(_.element===e){m=_;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([a],null,u.errors,l)}return f.length?f.map(m=>m.buildKeyframes()):[tk(e,[],[],[],0,h,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){let i=e.subInstructions.get(e.element);if(i){let r=e.createSubContext(t.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){let i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],e,i),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_applyAnimationRefDelays(t,e,i){for(let r of t){let o=r?.delay;if(o){let s=typeof o=="number"?o:Ss(Xh(o,r?.params??{},e.errors));i.delayNextStep(s)}}}_visitSubInstructions(t,e,i){let o=e.currentTimeline.currentTime,s=i.duration!=null?Ss(i.duration):null,a=i.delay!=null?Ss(i.delay):null;return s!==0&&t.forEach(l=>{let c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(t,e){e.updateOptions(t.options,!0),sr(this,t.animation,e),e.previousNode=t}visitSequence(t,e){let i=e.subContextCount,r=e,o=t.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),o.delay!=null)){r.previousNode.type==Ge.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=mb);let s=Ss(o.delay);r.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>sr(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){let i=[],r=e.currentTimeline.currentTime,o=t.options&&t.options.delay?Ss(t.options.delay):0;t.steps.forEach(s=>{let a=e.createSubContext(t.options);o&&a.delayNextStep(o),sr(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){let i=t.strValue,r=e.params?Xh(i,e.params,e.errors):i;return ub(r,e.errors)}else return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){let i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());let o=t.style;o.type==Ge.Keyframes?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){let i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();let o=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(o):i.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){let i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=t}visitQuery(t,e){let i=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?Ss(r.delay):0;o&&(e.previousNode.type===Ge.Style||i==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=mb);let s=i,a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{e.currentQueryIndex=d;let u=e.createSubContext(t.options,c);o&&u.delayNextStep(o),c===e.element&&(l=u.currentTimeline),sr(this,t.animation,u),u.currentTimeline.applyStylesToKeyframe();let h=u.currentTimeline.currentTime;s=Math.max(s,h)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){let i=e.parentContext,r=e.currentTimeline,o=t.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1),l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime;break}let d=e.currentTimeline;l&&d.delayNextStep(l);let u=d.currentTime;sr(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-u+(r.startTime-i.currentTimeline.startTime)}},mb={},BS=class n{constructor(t,e,i,r,o,s,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=mb,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new pb(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;let i=t,r=this.options;i.duration!=null&&(r.duration=Ss(i.duration)),i.delay!=null&&(r.delay=Ss(i.delay));let o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=Xh(o[a],s,this.errors))})}}_copyOptions(){let t={};if(this.options){let e=this.options.params;if(e){let i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){let r=e||this.element,o=new n(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=mb,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){let r={duration:e??t.duration,delay:this.currentTimeline.currentTime+(i??0)+t.delay,easing:""},o=new $S(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,o,s){let a=[];if(r&&a.push(this.element),t.length>0){t=t.replace(_ee,"."+this._enterClassName),t=t.replace(vee,"."+this._leaveClassName);let l=i!=1,c=this._driver.query(this.element,t,l);i!==0&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&a.length==0&&s.push(RJ(e)),a}},pb=class n{constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new n(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+=pee,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,i]of this._globalTimelineStyles)this._backFill.set(e,i||Ro),this._currentKeyframe.set(e,Ro);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&this._previousKeyframe.set("easing",e);let o=r&&r.params||{},s=yee(t,this._globalTimelineStyles);for(let[a,l]of s){let c=Xh(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Ro),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(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(){let t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,i)=>{let r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let t=new Set,e=new Set,i=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((d,u)=>{d===k_?t.add(u):d===Ro&&e.add(u)}),i||c.set("offset",l/this.duration),r.push(c)});let o=[...t.values()],s=[...e.values()];if(i){let a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return tk(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}},$S=class extends pb{constructor(t,e,i,r,o,s,a=!1){super(t,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){let o=[],s=i+e,a=e/s,l=new Map(t[0]);l.set("offset",0),o.push(l);let c=new Map(t[0]);c.set("offset",L2(a)),o.push(c);let d=t.length-1;for(let u=1;u<=d;u++){let h=new Map(t[u]),f=h.get("offset"),m=e+f*i;h.set("offset",L2(m/s)),o.push(h)}i=s,e=0,r="",t=o}return tk(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}};function L2(n,t=3){let e=Math.pow(10,t-1);return Math.round(n*e)/e}function yee(n,t){let e=new Map,i;return n.forEach(r=>{if(r==="*"){i??=t.keys();for(let o of i)e.set(o,Ro)}else for(let[o,s]of r)e.set(o,s)}),e}function V2(n,t,e,i,r,o,s,a,l,c,d,u,h){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:h}}var MS={},gb=class{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return wee(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){let r=this._stateStyles.get("*");return t!==void 0&&(r=this._stateStyles.get(t?.toString())||r),r?r.buildStyles(e,i):new Map}build(t,e,i,r,o,s,a,l,c,d){let u=[],h=this.ast.options&&this.ast.options.params||MS,f=a&&a.params||MS,m=this.buildStyles(i,f,u),g=l&&l.params||MS,_=this.buildStyles(r,g,u),v=new Set,x=new Map,R=new Map,V=r==="void",j={params:eV(g,h),delay:this.ast.options?.delay},K=d?[]:J2(t,e,this.ast.animation,o,s,m,_,j,c,u),J=0;return K.forEach(ke=>{J=Math.max(ke.duration+ke.delay,J)}),u.length?V2(e,this._triggerName,i,r,V,m,_,[],[],x,R,J,u):(K.forEach(ke=>{let Ke=ke.element,bt=ar(x,Ke,new Set);ke.preStyleProps.forEach(Te=>bt.add(Te));let nt=ar(R,Ke,new Set);ke.postStyleProps.forEach(Te=>nt.add(Te)),Ke!==e&&v.add(Ke)}),V2(e,this._triggerName,i,r,V,m,_,K,[...v.values()],x,R,J))}};function wee(n,t,e,i,r){return n.some(o=>o(t,e,i,r))}function eV(n,t){let e=E({},t);return Object.entries(n).forEach(([i,r])=>{r!=null&&(e[i]=r)}),e}var zS=class{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){let i=new Map,r=eV(t,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=Xh(s,r,e));let l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(a,s)})}),i}};function Cee(n,t,e){return new HS(n,t,e)}var HS=class{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{let o=r.options&&r.options.params||{};this.states.set(r.name,new zS(r.style,o,i))}),j2(this.states,"true","1"),j2(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new gb(t,r,this.states))}),this.fallbackTransition=Dee(t,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(s=>s.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}};function Dee(n,t,e){let i=[(s,a)=>!0],r={type:Ge.Sequence,steps:[],options:null},o={type:Ge.Transition,animation:r,matchers:i,options:null,queryCount:0,depCount:0};return new gb(n,o,t)}function j2(n,t,e){n.has(t)?n.has(e)||n.set(e,n.get(t)):n.has(e)&&n.set(t,n.get(e))}var xee=new Jh,US=class{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,e){let i=[],r=[],o=X2(this._driver,e,i,r);if(i.length)throw VJ(i);r.length&&void 0,this._animations.set(t,o)}_buildPlayer(t,e,i){let r=t.element,o=W2(this._normalizer,t.keyframes,e,i);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){let r=[],o=this._animations.get(t),s,a=new Map;if(o?(s=J2(this._driver,e,o,Q2,RS,new Map,new Map,i,xee,r),s.forEach(d=>{let u=ar(a,d.element,new Map);d.postStyleProps.forEach(h=>u.set(h,null))})):(r.push(jJ()),s=[]),r.length)throw BJ(r);a.forEach((d,u)=>{d.forEach((h,f)=>{d.set(f,this._driver.computeStyle(u,f,Ro))})});let l=s.map(d=>{let u=a.get(d.element);return this._buildPlayer(d,new Map,u)}),c=Ia(l);return this._playersById.set(t,c),c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){let e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);let i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){let e=this._playersById.get(t);if(!e)throw $J(t);return e}listen(t,e,i,r){let o=KS(e,"","","");return QS(this._getPlayer(t),i,o,r),()=>{}}command(t,e,i,r){if(i=="register"){this.register(t,r[0]);return}if(i=="create"){let s=r[0]||{};this.create(t,e,s);return}let o=this._getPlayer(t);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t);break}}},B2="ng-animate-queued",See=".ng-animate-queued",TS="ng-animate-disabled",kee=".ng-animate-disabled",Eee="ng-star-inserted",Iee=".ng-star-inserted",Mee=[],tV={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Tee={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ro="__ng_removed",ef=class{get params(){return this.options.params}constructor(t,e=""){this.namespaceId=e;let i=t&&t.hasOwnProperty("value"),r=i?t.value:t;if(this.value=Oee(r),i){let o=t,{value:s}=o,a=e0(o,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){let e=t.params;if(e){let i=this.options.params;Object.keys(e).forEach(r=>{i[r]==null&&(i[r]=e[r])})}}},Zh="void",AS=new ef(Zh),WS=class{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Mr(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.has(e))throw zJ(i,e);if(i==null||i.length==0)throw HJ(e);if(!Ree(i))throw UJ(i,e);let o=ar(this._elementListeners,t,[]),s={name:e,phase:i,callback:r};o.push(s);let a=ar(this._engine.statesByElement,t,new Map);return a.has(e)||(Mr(t,ob),Mr(t,ob+"-"+e),a.set(e,AS)),()=>{this._engine.afterFlush(()=>{let l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(t,e){return this._triggers.has(t)?!1:(this._triggers.set(t,e),!0)}_getTrigger(t){let e=this._triggers.get(t);if(!e)throw WJ(t);return e}trigger(t,e,i,r=!0){let o=this._getTrigger(e),s=new tf(this.id,e,t),a=this._engine.statesByElement.get(t);a||(Mr(t,ob),Mr(t,ob+"-"+e),this._engine.statesByElement.set(t,a=new Map));let l=a.get(e),c=new ef(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=AS),!(c.value===Zh)&&l.value===c.value){if(!Nee(l.params,c.params)){let g=[],_=o.matchStyles(l.value,l.params,g),v=o.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{zl(t,_),Fo(t,v)})}return}let h=ar(this._engine.playersByElement,t,[]);h.forEach(g=>{g.namespaceId==this.id&&g.triggerName==e&&g.queued&&g.destroy()});let f=o.matchTransition(l.value,c.value,t,c.params),m=!1;if(!f){if(!r)return;f=o.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||(Mr(t,B2),s.onStart(()=>{Fd(t,B2)})),s.onDone(()=>{let g=this.players.indexOf(s);g>=0&&this.players.splice(g,1);let _=this._engine.playersByElement.get(t);if(_){let v=_.indexOf(s);v>=0&&_.splice(v,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,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);let e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){let i=this._engine.driver.query(t,db,!0);i.forEach(r=>{if(r[ro])return;let o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){let o=this._engine.statesByElement.get(t),s=new Map;if(o){let a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){let d=this.trigger(t,c,Zh,r);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,s),i&&Ia(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){let e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){let r=new Set;e.forEach(o=>{let s=o.name;if(r.has(s))return;r.add(s);let l=this._triggers.get(s).fallbackTransition,c=i.get(s)||AS,d=new ef(Zh),u=new tf(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){let i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){let o=i.players.length?i.playersByQueriedElement.get(t):[];if(o&&o.length)r=!0;else{let s=t;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{let o=t[ro];(!o||o===tV)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){Mr(t,this._hostClassName)}drainQueuedTransitions(t){let e=[];return this._queue.forEach(i=>{let r=i.player;if(r.destroyed)return;let o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){let l=KS(o,i.triggerName,i.fromState.value,i.toState.value);l._data=t,QS(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{let o=i.transition.ast.depCount,s=r.transition.ast.depCount;return o==0||s==0?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}},YS=class{_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){let t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){let i=new WS(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){let i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){let l=r.get(a);if(l){let c=i.indexOf(l);i.splice(c+1,0,t),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(t)}else i.push(t);return r.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){t&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(t);this.namespacesByHostElement.delete(i.hostElement);let r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(e),delete this._namespaceLookup[t]}))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){let e=new Set,i=this.statesByElement.get(t);if(i){for(let r of i.values())if(r.namespaceId){let o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}}return e}trigger(t,e,i,r){if(lb(e)){let o=this._fetchNamespace(t);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!lb(e))return;let o=e[ro];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){let s=this._fetchNamespace(t);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Mr(t,TS)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Fd(t,TS))}removeNode(t,e,i){if(lb(e)){let r=t?this._fetchNamespace(t):null;r?r.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i);let o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,i,r,o){this.collectedLeaveElements.push(e),e[ro]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,e,i,r,o){return lb(e)?this._fetchNamespace(t).listen(e,i,r,o):()=>{}}_buildInstruction(t,e,i,r,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,o)}destroyInnerAnimations(t){let e=this.driver.query(t,db,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(t,PS,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){let e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){let e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Ia(this.players).onDone(()=>t());t()})}processLeaveNode(t){let e=t[ro];if(e&&e.setForRemoval){if(t[ro]=tV,e.namespaceId){this.destroyInnerAnimations(t);let i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(TS)&&this.markElementAsDisabled(t,!1),this.driver.query(t,kee,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],e.length?Ia(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw YJ(t)}_flushAnimations(t,e){let i=new Jh,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(ue=>{d.add(ue);let we=this.driver.query(ue,See,!0);for(let xe=0;xe{let xe=Q2+g++;m.set(we,xe),ue.forEach(je=>Mr(je,xe))});let _=[],v=new Set,x=new Set;for(let ue=0;uev.add(je)):x.add(we))}let R=new Map,V=H2(h,Array.from(v));V.forEach((ue,we)=>{let xe=RS+g++;R.set(we,xe),ue.forEach(je=>Mr(je,xe))}),t.push(()=>{f.forEach((ue,we)=>{let xe=m.get(we);ue.forEach(je=>Fd(je,xe))}),V.forEach((ue,we)=>{let xe=R.get(we);ue.forEach(je=>Fd(je,xe))}),_.forEach(ue=>{this.processLeaveNode(ue)})});let j=[],K=[];for(let ue=this._namespaceList.length-1;ue>=0;ue--)this._namespaceList[ue].drainQueuedTransitions(e).forEach(xe=>{let je=xe.player,St=xe.element;if(j.push(je),this.collectedEnterElements.length){let ki=St[ro];if(ki&&ki.setForMove){if(ki.previousTriggersValues&&ki.previousTriggersValues.has(xe.triggerName)){let Ya=ki.previousTriggersValues.get(xe.triggerName),gr=this.statesByElement.get(xe.element);if(gr&&gr.has(xe.triggerName)){let hm=gr.get(xe.triggerName);hm.value=Ya,gr.set(xe.triggerName,hm)}}je.destroy();return}}let mi=!u||!this.driver.containsElement(u,St),Ut=R.get(St),Si=m.get(St),kt=this._buildInstruction(xe,i,Si,Ut,mi);if(kt.errors&&kt.errors.length){K.push(kt);return}if(mi){je.onStart(()=>zl(St,kt.fromStyles)),je.onDestroy(()=>Fo(St,kt.toStyles)),r.push(je);return}if(xe.isFallbackTransition){je.onStart(()=>zl(St,kt.fromStyles)),je.onDestroy(()=>Fo(St,kt.toStyles)),r.push(je);return}let qo=[];kt.timelines.forEach(ki=>{ki.stretchStartingKeyframe=!0,this.disabledNodes.has(ki.element)||qo.push(ki)}),kt.timelines=qo,i.append(St,kt.timelines);let hc={instruction:kt,player:je,element:St};s.push(hc),kt.queriedElements.forEach(ki=>ar(a,ki,[]).push(je)),kt.preStyleProps.forEach((ki,Ya)=>{if(ki.size){let gr=l.get(Ya);gr||l.set(Ya,gr=new Set),ki.forEach((hm,Jy)=>gr.add(Jy))}}),kt.postStyleProps.forEach((ki,Ya)=>{let gr=c.get(Ya);gr||c.set(Ya,gr=new Set),ki.forEach((hm,Jy)=>gr.add(Jy))})});if(K.length){let ue=[];K.forEach(we=>{ue.push(qJ(we.triggerName,we.errors))}),j.forEach(we=>we.destroy()),this.reportError(ue)}let J=new Map,ke=new Map;s.forEach(ue=>{let we=ue.element;i.has(we)&&(ke.set(we,we),this._beforeAnimationBuild(ue.player.namespaceId,ue.instruction,J))}),r.forEach(ue=>{let we=ue.element;this._getPreviousPlayers(we,!1,ue.namespaceId,ue.triggerName,null).forEach(je=>{ar(J,we,[]).push(je),je.destroy()})});let Ke=_.filter(ue=>U2(ue,l,c)),bt=new Map;z2(bt,this.driver,x,c,Ro).forEach(ue=>{U2(ue,l,c)&&Ke.push(ue)});let Te=new Map;f.forEach((ue,we)=>{z2(Te,this.driver,new Set(ue),l,k_)}),Ke.forEach(ue=>{let we=bt.get(ue),xe=Te.get(ue);bt.set(ue,new Map([...we?.entries()??[],...xe?.entries()??[]]))});let Ct=[],vt=[],Ot={};s.forEach(ue=>{let{element:we,player:xe,instruction:je}=ue;if(i.has(we)){if(d.has(we)){xe.onDestroy(()=>Fo(we,je.toStyles)),xe.disabled=!0,xe.overrideTotalTime(je.totalTime),r.push(xe);return}let St=Ot;if(ke.size>1){let Ut=we,Si=[];for(;Ut=Ut.parentNode;){let kt=ke.get(Ut);if(kt){St=kt;break}Si.push(Ut)}Si.forEach(kt=>ke.set(kt,St))}let mi=this._buildAnimation(xe.namespaceId,je,J,o,Te,bt);if(xe.setRealPlayer(mi),St===Ot)Ct.push(xe);else{let Ut=this.playersByElement.get(St);Ut&&Ut.length&&(xe.parentPlayer=Ia(Ut)),r.push(xe)}}else zl(we,je.fromStyles),xe.onDestroy(()=>Fo(we,je.toStyles)),vt.push(xe),d.has(we)&&r.push(xe)}),vt.forEach(ue=>{let we=o.get(ue.element);if(we&&we.length){let xe=Ia(we);ue.setRealPlayer(xe)}}),r.forEach(ue=>{ue.parentPlayer?ue.syncPlayerEvents(ue.parentPlayer):ue.destroy()});for(let ue=0;ue<_.length;ue++){let we=_[ue],xe=we[ro];if(Fd(we,RS),xe&&xe.hasAnimation)continue;let je=[];if(a.size){let mi=a.get(we);mi&&mi.length&&je.push(...mi);let Ut=this.driver.query(we,PS,!0);for(let Si=0;Si!mi.destroyed);St.length?Pee(this,we,St):this.processLeaveNode(we)}return _.length=0,Ct.forEach(ue=>{this.players.push(ue),ue.onDone(()=>{ue.destroy();let we=this.players.indexOf(ue);this.players.splice(we,1)}),ue.play()}),Ct}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,o){let s=[];if(e){let a=this.playersByQueriedElement.get(t);a&&(s=a)}else{let a=this.playersByElement.get(t);if(a){let l=!o||o==Zh;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(t,e,i){let r=e.triggerName,o=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:r;for(let l of e.timelines){let c=l.element,d=c!==o,u=ar(i,c,[]);this._getPreviousPlayers(c,d,s,a,e.toState).forEach(f=>{let m=f.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),f.destroy(),u.push(f)})}zl(o,e.fromStyles)}_buildAnimation(t,e,i,r,o,s){let a=e.triggerName,l=e.element,c=[],d=new Set,u=new Set,h=e.timelines.map(m=>{let g=m.element;d.add(g);let _=g[ro];if(_&&_.removedBeforeQueried)return new pa(m.duration,m.delay);let v=g!==l,x=Fee((i.get(g)||Mee).map(J=>J.getRealPlayer())).filter(J=>{let ke=J;return ke.element?ke.element===g:!1}),R=o.get(g),V=s.get(g),j=W2(this._normalizer,m.keyframes,R,V),K=this._buildPlayer(m,j,x);if(m.subTimeline&&r&&u.add(g),v){let J=new tf(t,a,g);J.setRealPlayer(K),c.push(J)}return K});c.forEach(m=>{ar(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>Aee(this.playersByQueriedElement,m.element,m))}),d.forEach(m=>Mr(m,P2));let f=Ia(h);return f.onDestroy(()=>{d.forEach(m=>Fd(m,P2)),Fo(l,e.toStyles)}),u.forEach(m=>{ar(r,m,[]).push(f)}),f}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new pa(t.duration,t.delay)}},tf=class{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new pa,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,i)=>{e.forEach(r=>QS(t,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){let e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){ar(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?!1: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){let e=this._player;e.triggerCallback&&e.triggerCallback(t)}};function Aee(n,t,e){let i=n.get(t);if(i){if(i.length){let r=i.indexOf(e);i.splice(r,1)}i.length==0&&n.delete(t)}return i}function Oee(n){return n??null}function lb(n){return n&&n.nodeType===1}function Ree(n){return n=="start"||n=="done"}function $2(n,t){let e=n.style.display;return n.style.display=t??"none",e}function z2(n,t,e,i,r){let o=[];e.forEach(l=>o.push($2(l)));let s=[];i.forEach((l,c)=>{let d=new Map;l.forEach(u=>{let h=t.computeStyle(c,u,r);d.set(u,h),(!h||h.length==0)&&(c[ro]=Tee,s.push(c))}),n.set(c,d)});let a=0;return e.forEach(l=>$2(l,o[a++])),s}function H2(n,t){let e=new Map;if(n.forEach(a=>e.set(a,[])),t.length==0)return e;let i=1,r=new Set(t),o=new Map;function s(a){if(!a)return i;let l=o.get(a);if(l)return l;let c=a.parentNode;return e.has(c)?l=c:r.has(c)?l=i:l=s(c),o.set(a,l),l}return t.forEach(a=>{let l=s(a);l!==i&&e.get(l).push(a)}),e}function Mr(n,t){n.classList?.add(t)}function Fd(n,t){n.classList?.remove(t)}function Pee(n,t,e){Ia(e).onDone(()=>n.processLeaveNode(t))}function Fee(n){let t=[];return iV(n,t),t}function iV(n,t){for(let e=0;er.add(o)):t.set(n,i),e.delete(n),!0}var Nd=class{constructor(t,e,i){this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new YS(t.body,e,i),this._timelineEngine=new US(t.body,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(t,e,i,r,o){let s=t+"-"+r,a=this._triggerCache[s];if(!a){let l=[],c=[],d=X2(this._driver,o,l,c);if(l.length)throw NJ(r,l);c.length&&void 0,a=Cee(r,d,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i){this._transitionEngine.removeNode(t,e,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if(i.charAt(0)=="@"){let[o,s]=O2(i),a=r;this._timelineEngine.command(o,e,s,a)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,o){if(i.charAt(0)=="@"){let[s,a]=O2(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(t,e,i,r,o)}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)}};function Lee(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=OS(t[0]),t.length>1&&(i=OS(t[t.length-1]))):t instanceof Map&&(e=OS(t)),e||i?new qS(n,e,i):null}var qS=class n{static{this.initialStylesByElement=new WeakMap}constructor(t,e,i){this._element=t,this._startStyles=e,this._endStyles=i,this._state=0;let r=n.initialStylesByElement.get(t);r||n.initialStylesByElement.set(t,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Fo(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Fo(this._element,this._initialStyles),this._endStyles&&(Fo(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(zl(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(zl(this._element,this._endStyles),this._endStyles=null),Fo(this._element,this._initialStyles),this._state=3)}};function OS(n){let t=null;return n.forEach((e,i)=>{Vee(i)&&(t=t||new Map,t.set(i,e))}),t}function Vee(n){return n==="display"||n==="position"}var _b=class{constructor(t,e,i,r){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map;let e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){let e=[];return t.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(t,e,i){return t.animate(this._convertKeyframesToObject(e),i)}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){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{r!=="offset"&&t.set(r,this._finished?i:ek(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){let e=t==="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},bb=class{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}containsElement(t,e){return Y2(t,e)}getParentElement(t){return ZS(t)}query(t,e,i){return q2(t,e,i)}computeStyle(t,e,i){return ek(t,e)}animate(t,e,i,r,o,s=[]){let a=r==0?"both":"forwards",l={duration:i,delay:r,fill:a};o&&(l.easing=o);let c=new Map,d=s.filter(f=>f instanceof _b);ree(i,r)&&d.forEach(f=>{f.currentSnapshot.forEach((m,g)=>c.set(g,m))});let u=tee(e).map(f=>new Map(f));u=oee(t,u,c);let h=Lee(t,u);return new _b(t,u,l,h)}};var cb="@",nV="@.disabled",vb=class{constructor(t,e,i,r){this.namespaceId=t,this.delegate=e,this.engine=i,this._onDestroy=r,this.\u0275type=0}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,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.parentNode(e)&&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,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){e.charAt(0)==cb&&e==nV?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}},GS=class extends vb{constructor(t,e,i,r,o){super(e,i,r,o),this.factory=t,this.namespaceId=e}setProperty(t,e,i){e.charAt(0)==cb?e.charAt(1)=="."&&e==nV?(i=i===void 0?!0:!!i,this.disableAnimations(t,i)):this.engine.process(this.namespaceId,t,e.slice(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if(e.charAt(0)==cb){let r=jee(t),o=e.slice(1),s="";return o.charAt(0)!=cb&&([o,s]=Bee(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,i,a)})}return this.delegate.listen(t,e,i)}};function jee(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function Bee(n){let t=n.indexOf("."),e=n.substring(0,t),i=n.slice(t+1);return[e,i]}var yb=class{constructor(t,e,i){this.delegate=t,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,e.onRemovalComplete=(r,o)=>{o?.removeChild(null,r)}}createRenderer(t,e){let i="",r=this.delegate.createRenderer(t,e);if(!t||!e?.data?.animation){let c=this._rendererCache,d=c.get(r);if(!d){let u=()=>c.delete(r);d=new vb(i,r,this.engine,u),c.set(r,d)}return d}let o=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(o,s,t,c.name,c)};return e.data.animation.forEach(a),new GS(this,s,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,i){if(t>=0&&te(i));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(o=>{let[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),r.push([e,i])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var zee=(()=>{class n extends Nd{constructor(e,i,r){super(e,i,r)}ngOnDestroy(){this.flush()}static{this.\u0275fac=function(i){return new(i||n)(D(ce),D(Hl),D(Ul))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac})}}return n})();function Hee(){return new hb}function Uee(n,t,e){return new yb(n,t,e)}var rV=[{provide:Ul,useFactory:Hee},{provide:Nd,useClass:zee},{provide:Ks,useFactory:Uee,deps:[zg,Nd,X]}],gTe=[{provide:Hl,useFactory:()=>new bb},{provide:Dt,useValue:"BrowserAnimations"},...rV],Wee=[{provide:Hl,useClass:XS},{provide:Dt,useValue:"NoopAnimations"},...rV];function oV(){return[...Wee]}var Yee=["*",[["mat-toolbar-row"]]],qee=["*","mat-toolbar-row"],ik=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275dir=M({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0})}}return n})(),nk=(()=>{class n{constructor(e,i,r){this._elementRef=e,this._platform=i,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}static{this.\u0275fac=function(i){return new(i||n)(p(H),p(Ne),p(ce))}}static{this.\u0275cmp=A({type:n,selectors:[["mat-toolbar"]],contentQueries:function(i,r,o){if(i&1&&He(o,ik,5),i&2){let s;B(s=$())&&(r._toolbarRows=s)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(i,r){i&2&&(ui(r.color?"mat-"+r.color:""),Q("mat-toolbar-multiple-rows",r._toolbarRows.length>0)("mat-toolbar-single-row",r._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[O],ngContentSelectors:qee,decls:2,vars:0,template:function(i,r){i&1&&(ge(Yee),Z(0),Z(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color, var(--mat-app-surface));color:var(--mat-toolbar-container-text-color, var(--mat-app-on-surface))}.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, var(--mat-app-title-large-font));font-size:var(--mat-toolbar-title-text-size, var(--mat-app-title-large-size));line-height:var(--mat-toolbar-title-text-line-height, var(--mat-app-title-large-line-height));font-weight:var(--mat-toolbar-title-text-weight, var(--mat-app-title-large-weight));letter-spacing:var(--mat-toolbar-title-text-tracking, var(--mat-app-title-large-tracking));margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color, var(--mat-app-on-surface));--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color, var(--mat-app-on-surface))}.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 n})();var rk=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({imports:[Me,Me]})}}return n})();var ok=(()=>{class n{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=ai(e)}get inset(){return this._inset}set inset(e){this._inset=ai(e)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(i,r){i&2&&(re("aria-orientation",r.vertical?"vertical":"horizontal"),Q("mat-divider-vertical",r.vertical)("mat-divider-horizontal",!r.vertical)("mat-divider-inset",r.inset))},inputs:{vertical:"vertical",inset:"inset"},standalone:!0,features:[O],decls:0,vars:0,template:function(i,r){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color, var(--mat-app-outline));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, var(--mat-app-outline));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 n})(),sV=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({imports:[Me,Me]})}}return n})();var ak=[],dV=[];(()=>{let n="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(t=>t?parseInt(t,36):1);for(let t=0,e=0;t>1;if(n=dV[i])t=i+1;else return!0;if(t==e)return!1}}function aV(n){return n>=127462&&n<=127487}var lV=8205;function uV(n,t,e=!0,i=!0){return(e?hV:Qee)(n,t,i)}function hV(n,t,e){if(t==n.length)return t;t&&fV(n.charCodeAt(t))&&mV(n.charCodeAt(t-1))&&t--;let i=sk(n,t);for(t+=cV(i);t=0&&aV(sk(n,s));)o++,s-=2;if(o%2==0)break;t+=2}else break}return t}function Qee(n,t,e){for(;t>0;){let i=hV(n,t-2,e);if(i=56320&&n<57344}function mV(n){return n>=55296&&n<56320}function cV(n){return n<65536?1:2}var ut=class n{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,i){[t,e]=$d(this,t,e);let r=[];return this.decompose(0,t,r,2),i.length&&i.decompose(0,i.length,r,3),this.decompose(e,this.length,r,1),Vd.from(r,this.length-(e-t)+i.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,e=this.length){[t,e]=$d(this,t,e);let i=[];return this.decompose(t,e,i,0),Vd.from(i,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),i=this.length-this.scanIdentical(t,-1),r=new ql(this),o=new ql(t);for(let s=e,a=e;;){if(r.next(s),o.next(s),s=0,r.lineBreak!=o.lineBreak||r.done!=o.done||r.value!=o.value)return!1;if(a+=r.value.length,r.done||a>=i)return!0}}iter(t=1){return new ql(this,t)}iterRange(t,e=this.length){return new xb(this,t,e)}iterLines(t,e){let i;if(t==null)i=this.iter();else{e==null&&(e=this.lines+1);let r=this.line(t).from;i=this.iterRange(r,Math.max(r,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new Sb(i)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(t.length==0)throw new RangeError("A document must have at least one line");return t.length==1&&!t[0]?n.empty:t.length<=32?new lr(t):Vd.from(lr.split(t,[]))}},lr=class n extends ut{constructor(t,e=Kee(t)){super(),this.text=t,this.length=e}get lines(){return this.text.length}get children(){return null}lineInner(t,e,i,r){for(let o=0;;o++){let s=this.text[o],a=r+s.length;if((e?i:a)>=t)return new dk(r,a,i,s);r=a+1,i++}}decompose(t,e,i,r){let o=t<=0&&e>=this.length?this:new n(pV(this.text,t,e),Math.min(e,this.length)-Math.max(0,t));if(r&1){let s=i.pop(),a=Db(o.text,s.text.slice(),0,o.length);if(a.length<=32)i.push(new n(a,s.length+o.length));else{let l=a.length>>1;i.push(new n(a.slice(0,l)),new n(a.slice(l)))}}else i.push(o)}replace(t,e,i){if(!(i instanceof n))return super.replace(t,e,i);[t,e]=$d(this,t,e);let r=Db(this.text,Db(i.text,pV(this.text,0,t)),e),o=this.length+i.length-(e-t);return r.length<=32?new n(r,o):Vd.from(n.split(r,[]),o)}sliceString(t,e=this.length,i=`
`){[t,e]=$d(this,t,e);let r="";for(let o=0,s=0;o<=e&&st&&s&&(r+=i),to&&(r+=a.slice(Math.max(0,t-o),e-o)),o=l+1}return r}flatten(t){for(let e of this.text)t.push(e)}scanIdentical(){return 0}static split(t,e){let i=[],r=-1;for(let o of t)i.push(o),r+=o.length+1,i.length==32&&(e.push(new n(i,r)),i=[],r=-1);return r>-1&&e.push(new n(i,r)),e}},Vd=class n extends ut{constructor(t,e){super(),this.children=t,this.length=e,this.lines=0;for(let i of t)this.lines+=i.lines}lineInner(t,e,i,r){for(let o=0;;o++){let s=this.children[o],a=r+s.length,l=i+s.lines-1;if((e?l:a)>=t)return s.lineInner(t,e,i,r);r=a+1,i=l+1}}decompose(t,e,i,r){for(let o=0,s=0;s<=e&&o=s){let c=r&((s<=t?1:0)|(l>=e?2:0));s>=t&&l<=e&&!c?i.push(a):a.decompose(t-s,e-s,i,c)}s=l+1}}replace(t,e,i){if([t,e]=$d(this,t,e),i.lines=o&&e<=a){let l=s.replace(t-o,e-o,i),c=this.lines-s.lines+l.lines;if(l.lines>4&&l.lines>c>>6){let d=this.children.slice();return d[r]=l,new n(d,this.length-(e-t)+i.length)}return super.replace(o,a,l)}o=a+1}return super.replace(t,e,i)}sliceString(t,e=this.length,i=`
`){[t,e]=$d(this,t,e);let r="";for(let o=0,s=0;ot&&o&&(r+=i),ts&&(r+=a.sliceString(t-s,e-s,i)),s=l+1}return r}flatten(t){for(let e of this.children)e.flatten(t)}scanIdentical(t,e){if(!(t instanceof n))return 0;let i=0,[r,o,s,a]=e>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;r+=e,o+=e){if(r==s||o==a)return i;let l=this.children[r],c=t.children[o];if(l!=c)return i+l.scanIdentical(c,e);i+=l.length+1}}static from(t,e=t.reduce((i,r)=>i+r.length+1,-1)){let i=0;for(let f of t)i+=f.lines;if(i<32){let f=[];for(let m of t)m.flatten(f);return new lr(f,e)}let r=Math.max(32,i>>5),o=r<<1,s=r>>1,a=[],l=0,c=-1,d=[];function u(f){let m;if(f.lines>o&&f instanceof n)for(let g of f.children)u(g);else f.lines>s&&(l>s||!l)?(h(),a.push(f)):f instanceof lr&&l&&(m=d[d.length-1])instanceof lr&&f.lines+m.lines<=32?(l+=f.lines,c+=f.length+1,d[d.length-1]=new lr(m.text.concat(f.text),m.length+1+f.length)):(l+f.lines>r&&h(),l+=f.lines,c+=f.length+1,d.push(f))}function h(){l!=0&&(a.push(d.length==1?d[0]:n.from(d,c)),c=-1,l=d.length=0)}for(let f of t)u(f);return h(),a.length==1?a[0]:new n(a,e)}};ut.empty=new lr([""],0);function Kee(n){let t=-1;for(let e of n)t+=e.length+1;return t}function Db(n,t,e=0,i=1e9){for(let r=0,o=0,s=!0;o=e&&(l>i&&(a=a.slice(0,i-r)),r0?1:(t instanceof lr?t.text.length:t.children.length)<<1]}nextInner(t,e){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,r=this.nodes[i],o=this.offsets[i],s=o>>1,a=r instanceof lr?r.text.length:r.children.length;if(s==(e>0?a:0)){if(i==0)return this.done=!0,this.value="",this;e>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((o&1)==(e>0?0:1)){if(this.offsets[i]+=e,t==0)return this.lineBreak=!0,this.value=`
`,this;t--}else if(r instanceof lr){let l=r.text[s+(e<0?-1:0)];if(this.offsets[i]+=e,l.length>Math.max(0,t))return this.value=t==0?l:e>0?l.slice(t):l.slice(0,l.length-t),this;t-=l.length}else{let l=r.children[s+(e<0?-1:0)];t>l.length?(t-=l.length,this.offsets[i]+=e):(e<0&&this.offsets[i]--,this.nodes.push(l),this.offsets.push(e>0?1:(l instanceof lr?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)}},xb=class{constructor(t,e,i){this.value="",this.done=!1,this.cursor=new ql(t,e>i?-1:1),this.pos=e>i?t.length:0,this.from=Math.min(e,i),this.to=Math.max(e,i)}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 i=e<0?this.pos-this.from:this.to-this.pos;t>i&&(t=i),i-=t;let{value:r}=this.cursor.next(t);return this.pos+=(r.length+t)*e,this.value=r.length<=i?r:e<0?r.slice(r.length-i):r.slice(0,i),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!=""}},Sb=class{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:e,lineBreak:i,value:r}=this.inner.next(t);return e&&this.afterBreak?(this.value="",this.afterBreak=!1):e?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}};typeof Symbol<"u"&&(ut.prototype[Symbol.iterator]=function(){return this.iter()},ql.prototype[Symbol.iterator]=xb.prototype[Symbol.iterator]=Sb.prototype[Symbol.iterator]=function(){return this});var dk=class{constructor(t,e,i,r){this.from=t,this.to=e,this.number=i,this.text=r}get length(){return this.to-this.from}};function $d(n,t,e){return t=Math.max(0,Math.min(n.length,t)),[t,Math.max(t,Math.min(n.length,e))]}function Ci(n,t,e=!0,i=!0){return uV(n,t,e,i)}function Zee(n){return n>=56320&&n<57344}function Xee(n){return n>=55296&&n<56320}function en(n,t){let e=n.charCodeAt(t);if(!Xee(e)||t+1==n.length)return e;let i=n.charCodeAt(t+1);return Zee(i)?(e-55296<<10)+(i-56320)+65536:e}function lf(n){return n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode((n>>10)+55296,(n&1023)+56320))}function dr(n){return n<65536?1:2}var uk=/\r\n?|\n/,Ai=function(n){return n[n.Simple=0]="Simple",n[n.TrackDel=1]="TrackDel",n[n.TrackBefore=2]="TrackBefore",n[n.TrackAfter=3]="TrackAfter",n}(Ai||(Ai={})),ks=class n{constructor(t){this.sections=t}get length(){let t=0;for(let e=0;et)return o+(t-r);o+=a}else{if(i!=Ai.Simple&&c>=t&&(i==Ai.TrackDel&&rt||i==Ai.TrackBefore&&rt))return null;if(c>t||c==t&&e<0&&!a)return t==r||e<0?o:o+l;o+=l}r=c}if(t>r)throw new RangeError(`Position ${t} is out of range for changeset of length ${r}`);return o}touchesRange(t,e=t){for(let i=0,r=0;i=0&&r<=e&&a>=t)return re?"cover":!0;r=a}return!1}toString(){let t="";for(let e=0;e=0?":"+r:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(e=>typeof e!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new n(t)}static create(t){return new n(t)}},Sn=class n extends ks{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 hk(this,(e,i,r,o,s)=>t=t.replace(r,r+(i-e),s),!1),t}mapDesc(t,e=!1){return fk(this,t,e,!0)}invert(t){let e=this.sections.slice(),i=[];for(let r=0,o=0;r=0){e[r]=a,e[r+1]=s;let l=r>>1;for(;i.length0&&Ma(i,e,o.text),o.forward(d),a+=d}let c=t[s++];for(;a>1].toJSON()))}return t}static of(t,e,i){let r=[],o=[],s=0,a=null;function l(d=!1){if(!d&&!r.length)return;sh||u<0||h>e)throw new RangeError(`Invalid change range ${u} to ${h} (in doc of length ${e})`);let m=f?typeof f=="string"?ut.of(f.split(i||uk)):f:ut.empty,g=m.length;if(u==h&&g==0)return;us&&hn(r,u-s,-1),hn(r,h-u,g),Ma(o,r,m),s=h}}return c(t),l(!a),a}static empty(t){return new n(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let e=[],i=[];for(let r=0;ra&&typeof s!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(o.length==1)e.push(o[0],0);else{for(;i.length=0&&e<=0&&e==n[r+1]?n[r]+=t:r>=0&&t==0&&n[r]==0?n[r+1]+=e:i?(n[r]+=t,n[r+1]+=e):n.push(t,e)}function Ma(n,t,e){if(e.length==0)return;let i=t.length-2>>1;if(i>1])),!(e||s==n.sections.length||n.sections[s+1]<0);)a=n.sections[s++],l=n.sections[s++];t(r,c,o,d,u),r=c,o=d}}}function fk(n,t,e,i=!1){let r=[],o=i?[]:null,s=new Gl(n),a=new Gl(t);for(let l=-1;;){if(s.done&&a.len||a.done&&s.len)throw new Error("Mismatched change set lengths");if(s.ins==-1&&a.ins==-1){let c=Math.min(s.len,a.len);hn(r,c,-1),s.forward(c),a.forward(c)}else if(a.ins>=0&&(s.ins<0||l==s.i||s.off==0&&(a.len=0&&l=0){let c=0,d=s.len;for(;d;)if(a.ins==-1){let u=Math.min(d,a.len);c+=u,d-=u,a.forward(u)}else if(a.ins==0&&a.lenl||s.ins>=0&&s.len>l)&&(a||i.length>c),o.forward2(l),s.forward(l)}}}}var Gl=class{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i>1;return e>=t.length?ut.empty:t[e]}textBit(t){let{inserted:e}=this.set,i=this.i-2>>1;return i>=e.length&&!t?ut.empty:e[i].slice(this.off,t==null?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){this.ins==-1?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}},Ld=class n{constructor(t,e,i){this.from=t,this.to=e,this.flags=i}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let t=this.flags&7;return t==7?null:t}get goalColumn(){let t=this.flags>>6;return t==16777215?void 0:t}map(t,e=-1){let i,r;return this.empty?i=r=t.mapPos(this.from,e):(i=t.mapPos(this.from,1),r=t.mapPos(this.to,-1)),i==this.from&&r==this.to?this:new n(i,r,this.flags)}extend(t,e=t){if(t<=this.anchor&&e>=this.anchor)return G.range(t,e);let i=Math.abs(t-this.anchor)>Math.abs(e-this.anchor)?t:e;return G.range(this.anchor,i)}eq(t,e=!1){return this.anchor==t.anchor&&this.head==t.head&&(!e||!this.empty||this.assoc==t.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return G.range(t.anchor,t.head)}static create(t,e,i){return new n(t,e,i)}},G=class n{constructor(t,e){this.ranges=t,this.mainIndex=e}map(t,e=-1){return t.empty?this:n.create(this.ranges.map(i=>i.map(t,e)),this.mainIndex)}eq(t,e=!1){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let i=0;it.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!="number"||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new n(t.ranges.map(e=>Ld.fromJSON(e)),t.main)}static single(t,e=t){return new n([n.range(t,e)],0)}static create(t,e=0){if(t.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,r=0;rt?8:0)|o)}static normalized(t,e=0){let i=t[e];t.sort((r,o)=>r.from-o.from),e=t.indexOf(i);for(let r=1;ro.head?n.range(l,a):n.range(a,l))}}return new n(t,e)}};function xV(n,t){for(let e of n.ranges)if(e.to>t)throw new RangeError("Selection points outside of document")}var Ck=0,me=class n{constructor(t,e,i,r,o){this.combine=t,this.compareInput=e,this.compare=i,this.isStatic=r,this.id=Ck++,this.default=t([]),this.extensions=typeof o=="function"?o(this):o}get reader(){return this}static define(t={}){return new n(t.combine||(e=>e),t.compareInput||((e,i)=>e===i),t.compare||(t.combine?(e,i)=>e===i:Dk),!!t.static,t.enables)}of(t){return new jd([],this,0,t)}compute(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new jd(t,this,1,e)}computeN(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new jd(t,this,2,e)}from(t,e){return e||(e=i=>i),this.compute([t],i=>e(i.field(t)))}};function Dk(n,t){return n==t||n.length==t.length&&n.every((e,i)=>e===t[i])}var jd=class{constructor(t,e,i,r){this.dependencies=t,this.facet=e,this.type=i,this.value=r,this.id=Ck++}dynamicSlot(t){var e;let i=this.value,r=this.facet.compareInput,o=this.id,s=t[o]>>1,a=this.type==2,l=!1,c=!1,d=[];for(let u of this.dependencies)u=="doc"?l=!0:u=="selection"?c=!0:((e=t[u.id])!==null&&e!==void 0?e:1)&1||d.push(t[u.id]);return{create(u){return u.values[s]=i(u),1},update(u,h){if(l&&h.docChanged||c&&(h.docChanged||h.selection)||mk(u,d)){let f=i(u);if(a?!gV(f,u.values[s],r):!r(f,u.values[s]))return u.values[s]=f,1}return 0},reconfigure:(u,h)=>{let f,m=h.config.address[o];if(m!=null){let g=Mb(h,m);if(this.dependencies.every(_=>_ instanceof me?h.facet(_)===u.facet(_):_ instanceof zt?h.field(_,!1)==u.field(_,!1):!0)||(a?gV(f=i(u),g,r):r(f=i(u),g)))return u.values[s]=g,0}else f=i(u);return u.values[s]=f,1}}}};function gV(n,t,e){if(n.length!=t.length)return!1;for(let i=0;in[l.id]),r=e.map(l=>l.type),o=i.filter(l=>!(l&1)),s=n[t.id]>>1;function a(l){let c=[];for(let d=0;di===r),t);return t.provide&&(e.provides=t.provide(e)),e}create(t){let e=t.facet(_V).find(i=>i.field==this);return(e?.create||this.createF)(t)}slot(t){let e=t[this.id]>>1;return{create:i=>(i.values[e]=this.create(i),1),update:(i,r)=>{let o=i.values[e],s=this.updateF(o,r);return this.compareF(o,s)?0:(i.values[e]=s,1)},reconfigure:(i,r)=>r.config.address[this.id]!=null?(i.values[e]=r.field(this),0):(i.values[e]=this.create(i),1)}}init(t){return[this,_V.of({field:this,create:t})]}get extension(){return this}},Wl={lowest:4,low:3,default:2,high:1,highest:0};function nf(n){return t=>new kb(t,n)}var Tr={highest:nf(Wl.highest),high:nf(Wl.high),default:nf(Wl.default),low:nf(Wl.low),lowest:nf(Wl.lowest)},kb=class{constructor(t,e){this.inner=t,this.prec=e}},Eb=class n{of(t){return new of(this,t)}reconfigure(t){return n.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}},of=class{constructor(t,e){this.compartment=t,this.inner=e}},Ib=class n{constructor(t,e,i,r,o,s){for(this.base=t,this.compartments=e,this.dynamicSlots=i,this.address=r,this.staticValues=o,this.facets=s,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(t,e,i){let r=[],o=Object.create(null),s=new Map;for(let h of ete(t,e,s))h instanceof zt?r.push(h):(o[h.facet.id]||(o[h.facet.id]=[])).push(h);let a=Object.create(null),l=[],c=[];for(let h of r)a[h.id]=c.length<<1,c.push(f=>h.slot(f));let d=i?.config.facets;for(let h in o){let f=o[h],m=f[0].facet,g=d&&d[h]||[];if(f.every(_=>_.type==0))if(a[m.id]=l.length<<1|1,Dk(g,f))l.push(i.facet(m));else{let _=m.combine(f.map(v=>v.value));l.push(i&&m.compare(_,i.facet(m))?i.facet(m):_)}else{for(let _ of f)_.type==0?(a[_.id]=l.length<<1|1,l.push(_.value)):(a[_.id]=c.length<<1,c.push(v=>_.dynamicSlot(v)));a[m.id]=c.length<<1,c.push(_=>Jee(_,m,f))}}let u=c.map(h=>h(a));return new n(t,s,u,a,l,o)}};function ete(n,t,e){let i=[[],[],[],[],[]],r=new Map;function o(s,a){let l=r.get(s);if(l!=null){if(l<=a)return;let c=i[l].indexOf(s);c>-1&&i[l].splice(c,1),s instanceof of&&e.delete(s.compartment)}if(r.set(s,a),Array.isArray(s))for(let c of s)o(c,a);else if(s instanceof of){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),o(c,a)}else if(s instanceof kb)o(s.inner,s.prec);else if(s instanceof zt)i[a].push(s),s.provides&&o(s.provides,a);else if(s instanceof jd)i[a].push(s),s.facet.extensions&&o(s.facet.extensions,Wl.default);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.`);o(c,a)}}return o(n,Wl.default),i.reduce((s,a)=>s.concat(a))}function rf(n,t){if(t&1)return 2;let e=t>>1,i=n.status[e];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;n.status[e]=4;let r=n.computeSlot(n,n.config.dynamicSlots[e]);return n.status[e]=2|r}function Mb(n,t){return t&1?n.config.staticValues[t>>1]:n.values[t>>1]}var bV=me.define(),lk=me.define({combine:n=>n.some(t=>t),static:!0}),SV=me.define({combine:n=>n.length?n[0]:void 0,static:!0}),kV=me.define(),EV=me.define(),IV=me.define(),vV=me.define({combine:n=>n.length?n[0]:!1}),$n=class{constructor(t,e){this.type=t,this.value=e}static define(){return new pk}},pk=class{of(t){return new $n(this,t)}},gk=class{constructor(t){this.map=t}of(t){return new Ue(this,t)}},Ue=(()=>{class n{constructor(e,i){this.type=e,this.value=i}map(e){let i=this.type.map(this.value,e);return i===void 0?void 0:i==this.value?this:new n(this.type,i)}is(e){return this.type==e}static define(e={}){return new gk(e.map||(i=>i))}static mapEffects(e,i){if(!e.length)return e;let r=[];for(let o of e){let s=o.map(i);s&&r.push(s)}return r}}return n.reconfigure=n.define(),n.appendConfig=n.define(),n})(),zn=(()=>{class n{constructor(e,i,r,o,s,a){this.startState=e,this.changes=i,this.selection=r,this.effects=o,this.annotations=s,this.scrollIntoView=a,this._doc=null,this._state=null,r&&xV(r,i.newLength),s.some(l=>l.type==n.time)||(this.annotations=s.concat(n.time.of(Date.now())))}static create(e,i,r,o,s,a){return new n(e,i,r,o,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 i of this.annotations)if(i.type==e)return i.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let i=this.annotation(n.userEvent);return!!(i&&(i==e||i.length>e.length&&i.slice(0,e.length)==e&&i[e.length]=="."))}}return n.time=$n.define(),n.userEvent=$n.define(),n.addToHistory=$n.define(),n.remote=$n.define(),n})();function tte(n,t){let e=[];for(let i=0,r=0;;){let o,s;if(i=n[i]))o=n[i++],s=n[i++];else if(r=0;r--){let o=i[r](n);o instanceof zn?n=o:Array.isArray(o)&&o.length==1&&o[0]instanceof zn?n=o[0]:n=TV(t,Bd(o),!1)}return n}function nte(n){let t=n.startState,e=t.facet(IV),i=n;for(let r=e.length-1;r>=0;r--){let o=e[r](n);o&&Object.keys(o).length&&(i=MV(i,_k(t,o,n.changes.newLength),!0))}return i==n?n:zn.create(t,n.changes,n.selection,i.effects,i.annotations,i.scrollIntoView)}var rte=[];function Bd(n){return n==null?rte:Array.isArray(n)?n:[n]}var Ft=function(n){return n[n.Word=0]="Word",n[n.Space=1]="Space",n[n.Other=2]="Other",n}(Ft||(Ft={})),ote=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,bk;try{bk=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function ste(n){if(bk)return bk.test(n);for(let t=0;t"\x80"&&(e.toUpperCase()!=e.toLowerCase()||ote.test(e)))return!0}return!1}function ate(n){return t=>{if(!/\S/.test(t))return Ft.Space;if(ste(t))return Ft.Word;for(let e=0;e-1)return Ft.Word;return Ft.Other}}var Di=(()=>{class n{constructor(e,i,r,o,s,a){this.config=e,this.doc=i,this.selection=r,this.values=o,this.status=e.statusTemplate.slice(),this.computeSlot=s,a&&(a._state=this);for(let l=0;lo.set(d,c)),i=null),o.set(l.value.compartment,l.value.extension)):l.is(Ue.reconfigure)?(i=null,r=l.value):l.is(Ue.appendConfig)&&(i=null,r=Bd(r).concat(l.value));let s;i?s=e.startState.values.slice():(i=Ib.resolve(r,o,this),s=new n(i,this.doc,this.selection,i.dynamicSlots.map(()=>null),(c,d)=>d.reconfigure(c,this),null).values);let a=e.startState.facet(lk)?e.newSelection:e.newSelection.asSingle();new n(i,e.newDoc,a,s,(l,c)=>c.update(l,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(i=>({changes:{from:i.from,to:i.to,insert:e},range:G.cursor(i.from+e.length)}))}changeByRange(e){let i=this.selection,r=e(i.ranges[0]),o=this.changes(r.changes),s=[r.range],a=Bd(r.effects);for(let l=1;la.spec.fromJSON(l,c)))}}return n.create({doc:e.doc,selection:G.fromJSON(e.selection),extensions:i.extensions?o.concat([i.extensions]):o})}static create(e={}){let i=Ib.resolve(e.extensions||[],new Map),r=e.doc instanceof ut?e.doc:ut.of((e.doc||"").split(i.staticFacet(n.lineSeparator)||uk)),o=e.selection?e.selection instanceof G?e.selection:G.single(e.selection.anchor,e.selection.head):G.single(0);return xV(o,r.length),i.staticFacet(lk)||(o=o.asSingle()),new n(i,r,o,i.dynamicSlots.map(()=>null),(s,a)=>a.create(s),null)}get tabSize(){return this.facet(n.tabSize)}get lineBreak(){return this.facet(n.lineSeparator)||`
`}get readOnly(){return this.facet(vV)}phrase(e,...i){for(let r of this.facet(n.phrases))if(Object.prototype.hasOwnProperty.call(r,e)){e=r[e];break}return i.length&&(e=e.replace(/\$(\$|\d*)/g,(r,o)=>{if(o=="$")return"$";let s=+(o||1);return!s||s>i.length?r:i[s-1]})),e}languageDataAt(e,i,r=-1){let o=[];for(let s of this.facet(bV))for(let a of s(this,i,r))Object.prototype.hasOwnProperty.call(a,e)&&o.push(a[e]);return o}charCategorizer(e){return ate(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:i,from:r,length:o}=this.doc.lineAt(e),s=this.charCategorizer(e),a=e-r,l=e-r;for(;a>0;){let c=Ci(i,a,!1);if(s(i.slice(c,a))!=Ft.Word)break;a=c}for(;lt.length?t[0]:4}),n.lineSeparator=SV,n.readOnly=vV,n.phrases=me.define({compare(t,e){let i=Object.keys(t),r=Object.keys(e);return i.length==r.length&&i.every(o=>t[o]==e[o])}}),n.languageData=bV,n.changeFilter=kV,n.transactionFilter=EV,n.transactionExtender=IV,n})();Eb.reconfigure=Ue.define();function fn(n,t,e={}){let i={};for(let r of n)for(let o of Object.keys(r)){let s=r[o],a=i[o];if(a===void 0)i[o]=s;else if(!(a===s||s===void 0))if(Object.hasOwnProperty.call(e,o))i[o]=e[o](a,s);else throw new Error("Config merge conflict for field "+o)}for(let r in t)i[r]===void 0&&(i[r]=t[r]);return i}var oo=class{eq(t){return this==t}range(t,e=t){return sf.create(t,e,this)}};oo.prototype.startSide=oo.prototype.endSide=0;oo.prototype.point=!1;oo.prototype.mapMode=Ai.TrackDel;var sf=class n{constructor(t,e,i){this.from=t,this.to=e,this.value=i}static create(t,e,i){return new n(t,e,i)}};function vk(n,t){return n.from-t.from||n.value.startSide-t.value.startSide}var yk=class n{constructor(t,e,i,r){this.from=t,this.to=e,this.value=i,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(t,e,i,r=0){let o=i?this.to:this.from;for(let s=r,a=o.length;;){if(s==a)return s;let l=s+a>>1,c=o[l]-t||(i?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,i,r){for(let o=this.findIndex(e,-1e9,!0),s=this.findIndex(i,1e9,!1,o);of||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)),i.push(c),r.push(h-s),o.push(f-s))}return{mapped:i.length?new n(r,o,i,a):null,pos:s}}},Gt=(()=>{class n{constructor(e,i,r,o){this.chunkPos=e,this.chunk=i,this.nextLayer=r,this.maxPoint=o}static create(e,i,r,o){return new n(e,i,r,o)}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 i of this.chunk)e+=i.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:i=[],sort:r=!1,filterFrom:o=0,filterTo:s=this.length}=e,a=e.filter;if(i.length==0&&!a)return this;if(r&&(i=i.slice().sort(vk)),this.isEmpty)return i.length?n.of(i):this;let l=new Tb(this,null,-1).goto(0),c=0,d=[],u=new cr;for(;l.value||c=0){let h=i[c++];u.addInner(h.from,h.to,h.value)||d.push(h)}else l.rangeIndex==1&&l.chunkIndexthis.chunkEnd(l.chunkIndex)||sl.to||s=s&&e<=s+a.length&&a.between(s,e-s,i-s,r)===!1)return}this.nextLayer.between(e,i,r)}}iter(e=0){return af.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,i=0){return af.from(e).goto(i)}static compare(e,i,r,o,s=-1){let a=e.filter(h=>h.maxPoint>0||!h.isEmpty&&h.maxPoint>=s),l=i.filter(h=>h.maxPoint>0||!h.isEmpty&&h.maxPoint>=s),c=yV(a,l,r),d=new Yl(a,c,s),u=new Yl(l,c,s);r.iterGaps((h,f,m)=>wV(d,h,u,f,m,o)),r.empty&&r.length==0&&wV(d,0,u,0,0,o)}static eq(e,i,r=0,o){o==null&&(o=999999999);let s=e.filter(u=>!u.isEmpty&&i.indexOf(u)<0),a=i.filter(u=>!u.isEmpty&&e.indexOf(u)<0);if(s.length!=a.length)return!1;if(!s.length)return!0;let l=yV(s,a),c=new Yl(s,l,0).goto(r),d=new Yl(a,l,0).goto(r);for(;;){if(c.to!=d.to||!wk(c.active,d.active)||c.point&&(!d.point||!c.point.eq(d.point)))return!1;if(c.to>o)return!0;c.next(),d.next()}}static spans(e,i,r,o,s=-1){let a=new Yl(e,null,s).goto(i),l=i,c=a.openStart;for(;;){let d=Math.min(a.to,r);if(a.point){let u=a.activeForPoint(a.to),h=a.pointFroml&&(o.span(l,d,a.active,c),c=a.openEnd(d));if(a.to>r)return c+(a.point&&a.to>r?1:0);l=a.to,a.next()}}static of(e,i=!1){let r=new cr;for(let o of e instanceof sf?[e]:i?lte(e):e)r.add(o.from,o.to,o.value);return r.finish()}static join(e){if(!e.length)return n.empty;let i=e[e.length-1];for(let r=e.length-2;r>=0;r--)for(let o=e[r];o!=n.empty;o=o.nextLayer)i=new n(o.chunkPos,o.chunk,i,Math.max(o.maxPoint,i.maxPoint));return i}}return n.empty=new n([],[],null,-1),n})();function lte(n){if(n.length>1)for(let t=n[0],e=1;e0)return n.slice().sort(vk);t=i}return n}Gt.empty.nextLayer=Gt.empty;var cr=class n{finishChunk(t){this.chunks.push(new yk(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,i){this.addInner(t,e,i)||(this.nextLayer||(this.nextLayer=new n)).add(t,e,i)}addInner(t,e,i){let r=t-this.lastTo||i.startSide-this.last.endSide;if(r<=0&&(t-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return r<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=t),this.from.push(t-this.chunkStart),this.to.push(e-this.chunkStart),this.last=i,this.lastFrom=t,this.lastTo=e,this.value.push(i),i.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 i=e.value.length-1;return this.last=e.value[i],this.lastFrom=e.from[i]+t,this.lastTo=e.to[i]+t,!0}finish(){return this.finishInner(Gt.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return t;let e=Gt.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,e}};function yV(n,t,e){let i=new Map;for(let o of n)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=i&&r.push(new Tb(s,e,i,o));return r.length==1?r[0]:new n(r)}get startSide(){return this.value?this.value.startSide:0}goto(t,e=-1e9){for(let i of this.heap)i.goto(t,e);for(let i=this.heap.length>>1;i>=0;i--)ck(this.heap,i);return this.next(),this}forward(t,e){for(let i of this.heap)i.forward(t,e);for(let i=this.heap.length>>1;i>=0;i--)ck(this.heap,i);(this.to-t||this.value.endSide-e)<0&&this.next()}next(){if(this.heap.length==0)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(),ck(this.heap,0)}}};function ck(n,t){for(let e=n[t];;){let i=(t<<1)+1;if(i>=n.length)break;let r=n[i];if(i+1=0&&(r=n[i+1],i++),e.compare(r)<0)break;n[i]=e,n[t]=r,t=i}}var Yl=class{constructor(t,e,i){this.minPoint=i,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=af.from(t,e,i)}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){wb(this.active,t),wb(this.activeTo,t),wb(this.activeRank,t),this.minActive=CV(this.active,this.activeTo)}addActive(t){let e=0,{value:i,to:r,rank:o}=this.cursor;for(;e0;)e++;Cb(this.active,e,i),Cb(this.activeTo,e,r),Cb(this.activeRank,e,o),t&&Cb(t,e,this.cursor.from),this.minActive=CV(this.active,this.activeTo)}next(){let t=this.to,e=this.point;this.point=null;let i=this.openStart<0?[]:null;for(;;){let r=this.minActive;if(r>-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>t){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),i&&wb(i,r)}else if(this.cursor.value)if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let o=this.cursor.value;if(!o.point)this.addActive(i),this.cursor.next();else if(e&&this.cursor.to==this.to&&this.cursor.from=0&&i[r]=0&&!(this.activeRank[i]t||this.activeTo[i]==t&&this.active[i].endSide>=this.point.endSide)&&e.push(this.active[i]);return e.reverse()}openEnd(t){let e=0;for(let i=this.activeTo.length-1;i>=0&&this.activeTo[i]>t;i--)e++;return e}};function wV(n,t,e,i,r,o){n.goto(t),e.goto(i);let s=i+r,a=i,l=i-t;for(;;){let c=n.to+l-e.to,d=c||n.endSide-e.endSide,u=d<0?n.to+l:e.to,h=Math.min(u,s);if(n.point||e.point?n.point&&e.point&&(n.point==e.point||n.point.eq(e.point))&&wk(n.activeForPoint(n.to),e.activeForPoint(e.to))||o.comparePoint(a,h,n.point,e.point):h>a&&!wk(n.active,e.active)&&o.compareRange(a,h,n.active,e.active),u>s)break;(c||n.openEnd!=e.openEnd)&&o.boundChange&&o.boundChange(u),a=u,d<=0&&n.next(),d>=0&&e.next()}}function wk(n,t){if(n.length!=t.length)return!1;for(let e=0;e=t;i--)n[i+1]=n[i];n[t]=e}function CV(n,t){let e=-1,i=1e9;for(let r=0;r=t)return r;if(r==n.length)break;o+=n.charCodeAt(r)==9?e-o%e:1,r=Ci(n,r)}return i===!0?-1:n.length}var xk="\u037C",AV=typeof Symbol>"u"?"__"+xk:Symbol.for(xk),Sk=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),OV=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{},Ar=class{constructor(t,e){this.rules=[];let{finish:i}=e||{};function r(s){return/^@/.test(s)?[s]:s.split(/,\s*/)}function o(s,a,l,c){let d=[],u=/^@(\w+)\b/.exec(s[0]),h=u&&u[1]=="keyframes";if(u&&a==null)return l.push(s[0]+";");for(let f in a){let m=a[f];if(/&/.test(f))o(f.split(/,\s*/).map(g=>s.map(_=>g.replace(/&/,_))).reduce((g,_)=>g.concat(_)),m,l);else if(m&&typeof m=="object"){if(!u)throw new RangeError("The value of a property ("+f+") should be a primitive value.");o(r(f),m,d,h)}else m!=null&&d.push(f.replace(/_.*/,"").replace(/[A-Z]/g,g=>"-"+g.toLowerCase())+": "+m+";")}(d.length||h)&&l.push((i&&!u&&!c?s.map(i):s).join(", ")+" {"+d.join(" ")+"}")}for(let s in t)o(r(s),t[s],this.rules)}getRules(){return this.rules.join(`
`)}static newName(){let t=OV[AV]||1;return OV[AV]=t+1,xk+t.toString(36)}static mount(t,e,i){let r=t[Sk],o=i&&i.nonce;r?o&&r.setNonce(o):r=new kk(t,o),r.mount(Array.isArray(e)?e:[e],t)}},RV=new Map,kk=class{constructor(t,e){let i=t.ownerDocument||t,r=i.defaultView;if(!t.head&&t.adoptedStyleSheets&&r.CSSStyleSheet){let o=RV.get(i);if(o)return t[Sk]=o;this.sheet=new r.CSSStyleSheet,RV.set(i,this)}else this.styleTag=i.createElement("style"),e&&this.styleTag.setAttribute("nonce",e);this.modules=[],t[Sk]=this}mount(t,e){let i=this.sheet,r=0,o=0;for(let s=0;s-1&&(this.modules.splice(l,1),o--,l=-1),l==-1){if(this.modules.splice(o++,0,a),i)for(let c=0;c",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},cte=typeof navigator<"u"&&/Mac/.test(navigator.platform),dte=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(xi=0;xi<10;xi++)Is[48+xi]=Is[96+xi]=String(xi);var xi;for(xi=1;xi<=24;xi++)Is[xi+111]="F"+xi;var xi;for(xi=65;xi<=90;xi++)Is[xi]=String.fromCharCode(xi+32),zd[xi]=String.fromCharCode(xi);var xi;for(Ob in Is)zd.hasOwnProperty(Ob)||(zd[Ob]=Is[Ob]);var Ob;function PV(n){var t=cte&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||dte&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",e=!t&&n.key||(n.shiftKey?zd:Is)[n.keyCode]||n.key||"Unidentified";return e=="Esc"&&(e="Escape"),e=="Del"&&(e="Delete"),e=="Left"&&(e="ArrowLeft"),e=="Up"&&(e="ArrowUp"),e=="Right"&&(e="ArrowRight"),e=="Down"&&(e="ArrowDown"),e}function Cf(n){let t;return n.nodeType==11?t=n.getSelection?n:n.ownerDocument:t=n,t.getSelection()}function Nk(n,t){return t?n==t||n.contains(t.nodeType!=1?t.parentNode:t):!1}function zb(n,t){if(!t.anchorNode)return!1;try{return Nk(n,t.anchorNode)}catch{return!1}}function Gd(n){return n.nodeType==3?Zl(n,0,n.nodeValue.length).getClientRects():n.nodeType==1?n.getClientRects():[]}function pf(n,t,e,i){return e?FV(n,t,e,i,-1)||FV(n,t,e,i,1):!1}function Kl(n){for(var t=0;;t++)if(n=n.previousSibling,!n)return t}function Qb(n){return n.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(n.nodeName)}function FV(n,t,e,i,r){for(;;){if(n==e&&t==i)return!0;if(t==(r<0?0:Bo(n))){if(n.nodeName=="DIV")return!1;let o=n.parentNode;if(!o||o.nodeType!=1)return!1;t=Kl(n)+(r<0?0:1),n=o}else if(n.nodeType==1){if(n=n.childNodes[t+(r<0?-1:0)],n.nodeType==1&&n.contentEditable=="false")return!1;t=r<0?Bo(n):0}else return!1}}function Bo(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function Af(n,t){let e=t?n.left:n.right;return{left:e,right:e,top:n.top,bottom:n.bottom}}function ute(n){let t=n.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:n.innerWidth,top:0,bottom:n.innerHeight}}function kj(n,t){let e=t.width/n.offsetWidth,i=t.height/n.offsetHeight;return(e>.995&&e<1.005||!isFinite(e)||Math.abs(t.width-n.offsetWidth)<1)&&(e=1),(i>.995&&i<1.005||!isFinite(i)||Math.abs(t.height-n.offsetHeight)<1)&&(i=1),{scaleX:e,scaleY:i}}function hte(n,t,e,i,r,o,s,a){let l=n.ownerDocument,c=l.defaultView||window;for(let d=n,u=!1;d&&!u;)if(d.nodeType==1){let h,f=d==l.body,m=1,g=1;if(f)h=ute(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 x=d.getBoundingClientRect();({scaleX:m,scaleY:g}=kj(d,x)),h={left:x.left,right:x.left+d.clientWidth*m,top:x.top,bottom:x.top+d.clientHeight*g}}let _=0,v=0;if(r=="nearest")t.top0&&t.bottom>h.bottom+v&&(v=t.bottom-h.bottom+v+s)):t.bottom>h.bottom&&(v=t.bottom-h.bottom+s,e<0&&t.top-v0&&t.right>h.right+_&&(_=t.right-h.right+_+o)):t.right>h.right&&(_=t.right-h.right+o,e<0&&t.leftr.clientHeight&&(i=r),!e&&r.scrollWidth>r.clientWidth&&(e=r),r=r.assignedSlot||r.parentNode;else if(r.nodeType==11)r=r.host;else break;return{x:e,y:i}}var Lk=class{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:i}=t;this.set(e,Math.min(t.anchorOffset,e?Bo(e):0),i,Math.min(t.focusOffset,i?Bo(i):0))}set(t,e,i,r){this.anchorNode=t,this.anchorOffset=e,this.focusNode=i,this.focusOffset=r}},Hd=null;function Ej(n){if(n.setActive)return n.setActive();if(Hd)return n.focus(Hd);let t=[];for(let e=n;e&&(t.push(e,e.scrollTop,e.scrollLeft),e!=e.ownerDocument);e=e.parentNode);if(n.focus(Hd==null?{get preventScroll(){return Hd={preventScroll:!0},!0}}:void 0),!Hd){Hd=!1;for(let e=0;eMath.max(1,n.scrollHeight-n.clientHeight-4)}function Tj(n,t){for(let e=n,i=t;;){if(e.nodeType==3&&i>0)return{node:e,offset:i};if(e.nodeType==1&&i>0){if(e.contentEditable=="false")return null;e=e.childNodes[i-1],i=Bo(e)}else if(e.parentNode&&!Qb(e))i=Kl(e),e=e.parentNode;else return null}}function Aj(n,t){for(let e=n,i=t;;){if(e.nodeType==3&&ie)return u.domBoundsAround(t,e,c);if(h>=t&&r==-1&&(r=l,o=c),c>e&&u.dom.parentNode==this.dom){s=l,a=d;break}d=h,c=h+u.breakAfter}return{from:o,to:a<0?i+this.length:a,startDOM:(r?this.children[r-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),e.flags&1)return;e.flags|=1,t=!1}}setParent(t){this.parent!=t&&(this.parent=t,this.flags&7&&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,i=xE){this.markDirty();for(let r=t;rthis.pos||t==this.pos&&(e>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=t-this.pos,this;let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}};function Oj(n,t,e,i,r,o,s,a,l){let{children:c}=n,d=c.length?c[t]:null,u=o.length?o[o.length-1]:null,h=u?u.breakAfter:s;if(!(t==i&&d&&!s&&!h&&o.length<2&&d.merge(e,r,o.length?u:null,e==0,a,l))){if(i0&&(!s&&o.length&&d.merge(e,d.length,o[0],!1,a,0)?d.breakAfter=o.shift().breakAfter:(e2),be={mac:BV||/Mac/.test(Hn.platform),windows:/Win/.test(Hn.platform),linux:/Linux|X11/.test(Hn.platform),ie:dv,ie_version:Pj?Vk.documentMode||6:Bk?+Bk[1]:jk?+jk[1]:0,gecko:VV,gecko_version:VV?+(/Firefox\/(\d+)/.exec(Hn.userAgent)||[0,0])[1]:0,chrome:!!Ek,chrome_version:Ek?+Ek[1]:0,ios:BV,android:/Android\b/.test(Hn.userAgent),webkit:jV,safari:Fj,webkit_version:jV?+(/\bAppleWebKit\/(\d+)/.exec(Hn.userAgent)||[0,0])[1]:0,tabSize:Vk.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"},gte=256,$o=class n extends Qt{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){t.nodeType==3&&this.createDOM(t)}merge(t,e,i){return this.flags&8||i&&(!(i instanceof n)||this.length-(e-t)+i.length>gte||i.flags&8)?!1:(this.text=this.text.slice(0,t)+(i?i.text:"")+this.text.slice(e),this.markDirty(),!0)}split(t){let e=new n(this.text.slice(t));return this.text=this.text.slice(0,t),this.markDirty(),e.flags|=this.flags&8,e}localPosFromDOM(t,e){return t==this.dom?e:e?this.text.length:0}domAtPos(t){return new kn(this.dom,t)}domBoundsAround(t,e,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(t,e){return _te(this.dom,t,e)}},Oa=class n extends Qt{constructor(t,e=[],i=0){super(),this.mark=t,this.children=e,this.length=i;for(let r of e)r.setParent(this)}setAttrs(t){if(Ij(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)&&!((this.flags|t.flags)&8)}reuseDOM(t){t.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(t),this.flags|=6)}sync(t,e){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(t,e)}merge(t,e,i,r,o,s){return i&&(!(i instanceof n&&i.mark.eq(this.mark))||t&&o<=0||et&&e.push(i=t&&(r=o),i=l,o++}let s=this.length-t;return this.length=t,r>-1&&(this.children.length=r,this.markDirty()),new n(this.mark,e,s)}domAtPos(t){return Nj(this,t)}coordsAt(t,e){return Vj(this,t,e)}};function _te(n,t,e){let i=n.nodeValue.length;t>i&&(t=i);let r=t,o=t,s=0;t==0&&e<0||t==i&&e>=0?be.chrome||be.gecko||(t?(r--,s=1):o=0)?0:a.length-1];return be.safari&&!s&&l.width==0&&(l=Array.prototype.find.call(a,c=>c.width)||l),s?Af(l,s<0):l||null}var Df=class n extends Qt{static create(t,e,i){return new n(t,e,i)}constructor(t,e,i){super(),this.widget=t,this.length=e,this.side=i,this.prevWidget=null}split(t){let e=n.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.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(t,e,i,r,o,s){return i&&(!(i instanceof n)||!this.widget.compare(i.widget)||t>0&&o<=0||e0)?kn.before(this.dom):kn.after(this.dom,t==this.length)}domBoundsAround(){return null}coordsAt(t,e){let i=this.widget.coordsAt(this.dom,t,e);if(i)return i;let r=this.dom.getClientRects(),o=null;if(!r.length)return null;let s=this.side?this.side<0:t>0;for(let a=s?r.length-1:0;o=r[a],!(t>0?a==0:a==r.length-1||o.top0?kn.before(this.dom):kn.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){return this.dom.getBoundingClientRect()}get overrideDOMText(){return ut.empty}get isHidden(){return!0}};$o.prototype.children=Df.prototype.children=xf.prototype.children=xE;function Nj(n,t){let e=n.dom,{children:i}=n,r=0;for(let o=0;ro&&t0;o--){let s=i[o-1];if(s.dom.parentNode==e)return s.domAtPos(s.length)}for(let o=r;o0&&t instanceof Oa&&r.length&&(i=r[r.length-1])instanceof Oa&&i.mark.eq(t.mark)?Lj(i,t.children[0],e-1):(r.push(t),t.setParent(n)),n.length+=t.length}function Vj(n,t,e){let i=null,r=-1,o=null,s=-1;function a(c,d){for(let u=0,h=0;u=d&&(f.children.length?a(f,d-h):(!o||o.isHidden&&e>0)&&(m>d||h==m&&f.getSide()>0)?(o=f,s=d-h):(h-1?1:0)!=r.length-(e&&r.indexOf(e)>-1?1:0))return!1;for(let o of i)if(o!=e&&(r.indexOf(o)==-1||n[o]!==t[o]))return!1;return!0}function zk(n,t,e){let i=!1;if(t)for(let r in t)e&&r in e||(i=!0,r=="style"?n.style.cssText="":n.removeAttribute(r));if(e)for(let r in e)t&&t[r]==e[r]||(i=!0,r=="style"?n.style.cssText=e[r]:n.setAttribute(r,e[r]));return i}function vte(n){let t=Object.create(null);for(let e=0;e0?3e8:-4e8:e>0?1e8:-1e8,new Ra(t,e,e,i,t.widget||null,!1)}static replace(t){let e=!!t.block,i,r;if(t.isBlockGap)i=-5e8,r=4e8;else{let{start:o,end:s}=jj(t,e);i=(o?e?-3e8:-1:5e8)-1,r=(s?e?2e8:1:-6e8)+1}return new Ra(t,i,r,e,t.widget||null,!0)}static line(t){return new kf(t)}static set(t,e=!1){return Gt.of(t,e)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}};ve.none=Gt.empty;var Sf=class n extends ve{constructor(t){let{start:e,end:i}=jj(t);super(e?-1:5e8,i?1:-6e8,null,t),this.tagName=t.tagName||"span",this.class=t.class||"",this.attrs=t.attributes||null}eq(t){var e,i;return this==t||t instanceof n&&this.tagName==t.tagName&&(this.class||((e=this.attrs)===null||e===void 0?void 0:e.class))==(t.class||((i=t.attrs)===null||i===void 0?void 0:i.class))&&Zb(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)}};Sf.prototype.point=!1;var kf=class n extends ve{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof n&&this.spec.class==t.spec.class&&Zb(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)}};kf.prototype.mapMode=Ai.TrackBefore;kf.prototype.point=!0;var Ra=class n extends ve{constructor(t,e,i,r,o,s){super(e,i,o,t),this.block=r,this.isReplace=s,this.mapMode=r?e<=0?Ai.TrackBefore:Ai.TrackAfter:Ai.TrackDel}get type(){return this.startSide!=this.endSide?En.WidgetRange:this.startSide<=0?En.WidgetBefore:En.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof n&&yte(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)}};Ra.prototype.point=!0;function jj(n,t=!1){let{inclusiveStart:e,inclusiveEnd:i}=n;return e==null&&(e=n.inclusive),i==null&&(i=n.inclusive),{start:e??t,end:i??t}}function yte(n,t){return n==t||!!(n&&t&&n.compare(t))}function Hb(n,t,e,i=0){let r=e.length-1;r>=0&&e[r]+i>=n?e[r]=Math.max(e[r],t):e.push(n,t)}var tn=class n extends Qt{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(t,e,i,r,o,s){if(i){if(!(i instanceof n))return!1;this.dom||i.transferDOM(this)}return r&&this.setDeco(i?i.attrs:null),Rj(this,t,e,i?i.children.slice():[],o,s),!0}split(t){let e=new n;if(e.breakAfter=this.breakAfter,this.length==0)return e;let{i,off:r}=this.childPos(t);r&&(e.append(this.children[i].split(r),0),this.children[i].merge(r,this.children[i].length,null,!1,0,0),i++);for(let o=i;o0&&this.children[i-1].length==0;)this.children[--i].destroy();return this.children.length=i,this.markDirty(),this.length=t,e}transferDOM(t){this.dom&&(this.markDirty(),t.setDOM(this.dom),t.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(t){Zb(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}append(t,e){Lj(this,t,e)}addLineDeco(t){let e=t.spec.attributes,i=t.spec.class;e&&(this.attrs=$k(e,this.attrs||{})),i&&(this.attrs=$k({class:i},this.attrs||{}))}domAtPos(t){return Nj(this,t)}reuseDOM(t){t.nodeName=="DIV"&&(this.setDOM(t),this.flags|=6)}sync(t,e){var i;this.dom?this.flags&4&&(Ij(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),this.prevAttrs!==void 0&&(zk(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(t,e);let r=this.dom.lastChild;for(;r&&Qt.get(r)instanceof Oa;)r=r.lastChild;if(!r||!this.length||r.nodeName!="BR"&&((i=Qt.get(r))===null||i===void 0?void 0:i.isEditable)==!1&&(!be.ios||!this.children.some(o=>o instanceof $o))){let o=document.createElement("BR");o.cmIgnore=!0,this.dom.appendChild(o)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let t=0,e;for(let i of this.children){if(!(i instanceof $o)||/[^ -~]/.test(i.text))return null;let r=Gd(i.dom);if(r.length!=1)return null;t+=r[0].width,e=r[0].height}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:e}:null}coordsAt(t,e){let i=Vj(this,t,e);if(!this.children.length&&i&&this.parent){let{heightOracle:r}=this.parent.view.viewState,o=i.bottom-i.top;if(Math.abs(o-r.lineHeight)<2&&r.textHeight=e){if(o instanceof n)return o;if(s>e)break}r=s+o.breakAfter}return null}},Ql=class n extends Qt{constructor(t,e,i){super(),this.widget=t,this.length=e,this.deco=i,this.breakAfter=0,this.prevWidget=null}merge(t,e,i,r,o,s){return i&&(!(i instanceof n)||!this.widget.compare(i.widget)||t>0&&o<=0||e0}},Ef=class extends In{constructor(t){super(),this.height=t}toDOM(){let t=document.createElement("div");return t.className="cm-gap",this.updateDOM(t),t}eq(t){return t.height==this.height}updateDOM(t){return t.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}},gf=class n{constructor(t,e,i,r){this.doc=t,this.pos=e,this.end=i,this.disallowBlockEffectsFor=r,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(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let t=this.content[this.content.length-1];return!(t.breakAfter||t instanceof Ql&&t.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new tn),this.atCursorPos=!0),this.curLine}flushBuffer(t=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(Rb(new xf(-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 Ql)&&this.getLine()}buildText(t,e,i){for(;t>0;){if(this.textOff==this.text.length){let{value:o,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}else this.text=o,this.textOff=0}let r=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(e.slice(e.length-i)),this.getLine().append(Rb(new $o(this.text.slice(this.textOff,this.textOff+r)),e),i),this.atCursorPos=!0,this.textOff+=r,t-=r,i=0}}span(t,e,i,r){this.buildText(e-t,i,r),this.pos=e,this.openStart<0&&(this.openStart=r)}point(t,e,i,r,o,s){if(this.disallowBlockEffectsFor[s]&&i instanceof Ra){if(i.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(i instanceof Ra)if(i.block)i.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Ql(i.widget||zV.block,a,i));else{let l=Df.create(i.widget||zV.inline,a,a?0:i.startSide),c=this.atCursorPos&&!l.isEditable&&o<=r.length&&(t0),d=!l.isEditable&&(tr.length||i.startSide<=0),u=this.getLine();this.pendingBuffer==2&&!c&&!l.isEditable&&(this.pendingBuffer=0),this.flushBuffer(r),c&&(u.append(Rb(new xf(1),r),o),o=r.length+Math.max(0,o-r.length)),u.append(Rb(l,r),o),this.atCursorPos=d,this.pendingBuffer=d?tr.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);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=o)}static build(t,e,i,r,o){let s=new n(t,e,i,o);return s.openEnd=Gt.spans(r,e,i,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}};function Rb(n,t){for(let e of t)n=new Oa(e,[n],n.length);return n}var zV=(()=>{class n extends In{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}return n.inline=new n("span"),n.block=new n("div"),n})(),Nt=function(n){return n[n.LTR=0]="LTR",n[n.RTL=1]="RTL",n}(Nt||(Nt={})),Xl=Nt.LTR,SE=Nt.RTL;function Bj(n){let t=[];for(let e=0;e=e){if(a.level==i)return s;(o<0||(r!=0?r<0?a.frome:t[o].level>a.level))&&(o=s)}}if(o<0)throw new RangeError("Index out of range");return o}};function zj(n,t){if(n.length!=t.length)return!1;for(let e=0;e=0;g-=3)if(No[g+1]==-f){let _=No[g+2],v=_&2?r:_&4?_&1?o:r:0;v&&(Ht[u]=Ht[No[g]]=v),a=g;break}}else{if(No.length==189)break;No[a++]=u,No[a++]=h,No[a++]=l}else if((m=Ht[u])==2||m==1){let g=m==r;l=g?0:1;for(let _=a-3;_>=0;_-=3){let v=No[_+2];if(v&2)break;if(g)No[_+2]|=2;else{if(v&4)break;No[_+2]|=4}}}}}function kte(n,t,e,i){for(let r=0,o=i;r<=e.length;r++){let s=r?e[r-1].to:n,a=rl;)m==_&&(m=e[--g].from,_=g?e[g-1].to:n),Ht[--m]=f;l=d}else o=c,l++}}}function Uk(n,t,e,i,r,o,s){let a=i%2?2:1;if(i%2==r%2)for(let l=t,c=0;ll&&s.push(new Vo(l,g.from,f));let _=g.direction==Xl!=!(f%2);Wk(n,_?i+1:i,r,g.inner,g.from,g.to,s),l=g.to}m=g.to}else{if(m==e||(d?Ht[m]!=a:Ht[m]==a))break;m++}h?Uk(n,l,m,i+1,r,h,s):lt;){let d=!0,u=!1;if(!c||l>o[c-1].to){let g=Ht[l-1];g!=a&&(d=!1,u=g==16)}let h=!d&&a==1?[]:null,f=d?i:i+1,m=l;e:for(;;)if(c&&m==o[c-1].to){if(u)break e;let g=o[--c];if(!d)for(let _=g.from,v=c;;){if(_==t)break e;if(v&&o[v-1].to==_)_=o[--v].from;else{if(Ht[_-1]==a)break e;break}}if(h)h.push(g);else{g.toHt.length;)Ht[Ht.length]=256;let i=[],r=t==Xl?0:1;return Wk(n,r,r,e,0,n.length,i),i}function Hj(n){return[new Vo(0,n,0)]}var Uj="";function Ite(n,t,e,i,r){var o;let s=i.head-n.from,a=Vo.find(t,s,(o=i.bidiLevel)!==null&&o!==void 0?o:-1,i.assoc),l=t[a],c=l.side(r,e);if(s==c){let h=a+=r?1:-1;if(h<0||h>=t.length)return null;l=t[a=h],s=l.side(!r,e),c=l.side(r,e)}let d=Ci(n.text,s,l.forward(r,e));(dl.to)&&(d=c),Uj=n.text.slice(Math.min(s,d),Math.max(s,d));let u=a==(r?t.length-1:0)?null:t[a+(r?1:-1)];return u&&d==c&&u.level+(r?0:1)n.some(t=>t)}),Zj=me.define({combine:n=>n.some(t=>t)}),Xj=me.define(),_f=class n{constructor(t,e="nearest",i="nearest",r=5,o=5,s=!1){this.range=t,this.y=e,this.x=i,this.yMargin=r,this.xMargin=o,this.isSnapshot=s}map(t){return t.empty?this:new n(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(t){return this.range.to<=t.doc.length?this:new n(G.cursor(t.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}},Pb=Ue.define({map:(n,t)=>n.map(t)}),Jj=Ue.define();function nn(n,t,e){let i=n.facet(Gj);i.length?i[0](t):window.onerror?window.onerror(String(t),e,void 0,void 0,t):e?console.error(e+":",t):console.error(t)}var Ms=me.define({combine:n=>n.length?n[0]:!0}),Tte=0,uf=me.define(),ni=class n{constructor(t,e,i,r,o){this.id=t,this.create=e,this.domEventHandlers=i,this.domEventObservers=r,this.extension=o(this)}static define(t,e){let{eventHandlers:i,eventObservers:r,provide:o,decorations:s}=e||{};return new n(Tte++,t,i,r,a=>{let l=[uf.of(a)];return s&&l.push(If.of(c=>{let d=c.plugin(a);return d?s(d):ve.none})),o&&l.push(o(a)),l})}static fromClass(t,e){return n.define(i=>new t(i),e)}},bf=class{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(i){if(nn(e.state,i,"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){nn(t.state,e,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(t){var e;if(!((e=this.value)===null||e===void 0)&&e.destroy)try{this.value.destroy()}catch(i){nn(t.state,i,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}},UV=me.define(),Yk=me.define(),If=me.define(),eB=me.define(),IE=me.define(),tB=me.define();function WV(n,t){let e=n.state.facet(tB);if(!e.length)return e;let i=e.map(o=>o instanceof Function?o(n):o),r=[];return Gt.spans(i,t.from,t.to,{point(){},span(o,s,a,l){let c=o-t.from,d=s-t.from,u=r;for(let h=a.length-1;h>=0;h--,l--){let f=a[h].spec.bidiIsolate,m;if(f==null&&(f=Mte(t.text,c,d)),l>0&&u.length&&(m=u[u.length-1]).to==c&&m.direction==f)m.to=d,u=m.inner;else{let g={from:c,to:d,direction:f,inner:[]};u.push(g),u=g.inner}}}}),r}var iB=me.define();function ME(n){let t=0,e=0,i=0,r=0;for(let o of n.state.facet(iB)){let s=o(n);s&&(s.left!=null&&(t=Math.max(t,s.left)),s.right!=null&&(e=Math.max(e,s.right)),s.top!=null&&(i=Math.max(i,s.top)),s.bottom!=null&&(r=Math.max(r,s.bottom)))}return{left:t,right:e,top:i,bottom:r}}var cf=me.define(),jo=class n{constructor(t,e,i,r){this.fromA=t,this.toA=e,this.fromB=i,this.toB=r}join(t){return new n(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,i=this;for(;e>0;e--){let r=t[e-1];if(!(r.fromA>i.toA)){if(r.toAd)break;o+=2}if(!l)return i;new n(l.fromA,l.toA,l.fromB,l.toB).addToSet(i),s=l.toA,a=l.toB}}},Xb=class n{constructor(t,e,i){this.view=t,this.state=e,this.transactions=i,this.flags=0,this.startState=t.state,this.changes=Sn.empty(this.startState.doc.length);for(let o of i)this.changes=this.changes.compose(o.changes);let r=[];this.changes.iterChangedRanges((o,s,a,l)=>r.push(new jo(o,s,a,l))),this.changedRanges=r}static create(t,e,i){return new n(t,e,i)}get viewportChanged(){return(this.flags&4)>0}get viewportMoved(){return(this.flags&8)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&18)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(t=>t.selection)}get empty(){return this.flags==0&&this.transactions.length==0}},Jb=class extends Qt{get length(){return this.view.state.doc.length}constructor(t){super(),this.view=t,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=ve.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(t.contentDOM),this.children=[new tn],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new jo(0,0,0,t.state.doc.length)],0,null)}update(t){var e;let i=t.changedRanges;this.minWidth>0&&i.length&&(i.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),this.updateEditContextFormatting(t);let r=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((e=this.domChanged)===null||e===void 0)&&e.newSel?r=this.domChanged.newSel.head:!Lte(t.changes,this.hasComposition)&&!t.selectionSet&&(r=t.state.selection.main.head));let o=r>-1?Ote(this.view,t.changes,r):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:c,to:d}=this.hasComposition;i=new jo(c,d,t.changes.mapPos(c,-1),t.changes.mapPos(d,1)).addToSet(i.slice())}this.hasComposition=o?{from:o.range.fromB,to:o.range.toB}:null,(be.ie||be.chrome)&&!o&&t&&t.state.doc.lines!=t.startState.doc.lines&&(this.forceSelection=!0);let s=this.decorations,a=this.updateDeco(),l=Fte(s,a,t.changes);return i=jo.extendWithRanges(i,l),!(this.flags&7)&&i.length==0?!1:(this.updateInner(i,t.startState.doc.length,o),t.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(t,e,i){this.view.viewState.mustMeasureContent=!0,this.updateChildren(t,e,i);let{observer:r}=this.view;r.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let s=be.chrome||be.ios?{node:r.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,s),this.flags&=-8,s&&(s.written||r.selectionRange.focusNode!=s.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(s=>s.flags&=-9);let o=[];if(this.view.viewport.from||this.view.viewport.to=0?r[s]:null;if(!a)break;let{fromA:l,toA:c,fromB:d,toB:u}=a,h,f,m,g;if(i&&i.range.fromBd){let V=gf.build(this.view.state.doc,d,i.range.fromB,this.decorations,this.dynamicDecorationMap),j=gf.build(this.view.state.doc,i.range.toB,u,this.decorations,this.dynamicDecorationMap);f=V.breakAtStart,m=V.openStart,g=j.openEnd;let K=this.compositionView(i);j.breakAtStart?K.breakAfter=1:j.content.length&&K.merge(K.length,K.length,j.content[0],!1,j.openStart,0)&&(K.breakAfter=j.content[0].breakAfter,j.content.shift()),V.content.length&&K.merge(0,0,V.content[V.content.length-1],!0,0,V.openEnd)&&V.content.pop(),h=V.content.concat(K).concat(j.content)}else({content:h,breakAtStart:f,openStart:m,openEnd:g}=gf.build(this.view.state.doc,d,u,this.decorations,this.dynamicDecorationMap));let{i:_,off:v}=o.findPos(c,1),{i:x,off:R}=o.findPos(l,-1);Oj(this,x,R,_,v,h,f,m,g)}i&&this.fixCompositionDOM(i)}updateEditContextFormatting(t){this.editContextFormatting=this.editContextFormatting.map(t.changes);for(let e of t.transactions)for(let i of e.effects)i.is(Jj)&&(this.editContextFormatting=i.value)}compositionView(t){let e=new $o(t.text.nodeValue);e.flags|=8;for(let{deco:r}of t.marks)e=new Oa(r,[e],e.length);let i=new tn;return i.append(e,0),i}fixCompositionDOM(t){let e=(o,s)=>{s.flags|=8|(s.children.some(l=>l.flags&7)?1:0),this.markedForComposition.add(s);let a=Qt.get(o);a&&a!=s&&(a.dom=null),s.setDOM(o)},i=this.childPos(t.range.fromB,1),r=this.children[i.i];e(t.line,r);for(let o=t.marks.length-1;o>=-1;o--)i=r.childPos(i.off,1),r=r.children[i.i],e(o>=0?t.marks[o].node:t.text,r)}updateSelection(t=!1,e=!1){(t||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let i=this.view.root.activeElement,r=i==this.dom,o=!r&&!(this.view.state.facet(Ms)||this.dom.tabIndex>-1)&&zb(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i));if(!(r||e||o))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(be.gecko&&a.empty&&!this.hasComposition&&Ate(l)){let u=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(u,l.node.childNodes[l.offset]||null)),l=c=new kn(u,0),s=!0}let d=this.view.observer.selectionRange;(s||!d.focusNode||(!pf(l.node,l.offset,d.anchorNode,d.anchorOffset)||!pf(c.node,c.offset,d.focusNode,d.focusOffset))&&!this.suppressWidgetCursorChange(d,a))&&(this.view.observer.ignore(()=>{be.android&&be.chrome&&this.dom.contains(d.focusNode)&&Nte(d.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let u=Cf(this.view.root);if(u)if(a.empty){if(be.gecko){let h=Rte(l.node,l.offset);if(h&&h!=3){let f=(h==1?Tj:Aj)(l.node,l.offset);f&&(l=new kn(f.node,f.offset))}}u.collapse(l.node,l.offset),a.bidiLevel!=null&&u.caretBidiLevel!==void 0&&(u.caretBidiLevel=a.bidiLevel)}else if(u.extend){u.collapse(l.node,l.offset);try{u.extend(c.node,c.offset)}catch{}}else{let h=document.createRange();a.anchor>a.head&&([l,c]=[c,l]),h.setEnd(c.node,c.offset),h.setStart(l.node,l.offset),u.removeAllRanges(),u.addRange(h)}o&&this.view.root.activeElement==this.dom&&(this.dom.blur(),i&&i.focus())}),this.view.observer.setSelectionRange(l,c)),this.impreciseAnchor=l.precise?null:new kn(d.anchorNode,d.anchorOffset),this.impreciseHead=c.precise?null:new kn(d.focusNode,d.focusOffset)}suppressWidgetCursorChange(t,e){return this.hasComposition&&e.empty&&pf(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)&&this.posFromDOM(t.focusNode,t.focusOffset)==e.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:t}=this,e=t.state.selection.main,i=Cf(t.root),{anchorNode:r,anchorOffset:o}=t.observer.selectionRange;if(!i||!e.empty||!e.assoc||!i.modify)return;let s=tn.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);i.collapse(d.node,d.offset),i.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&&i.collapse(r,o)}moveToLine(t){let e=this.dom,i;if(t.node!=e)return t;for(let r=t.offset;!i&&r=0;r--){let o=Qt.get(e.childNodes[r]);o instanceof tn&&(i=o.domAtPos(o.length))}return i?new kn(i.node,i.offset,!0):t}nearest(t){for(let e=t;e;){let i=Qt.get(e);if(i&&i.rootView==this)return i;e=e.parentNode}return null}posFromDOM(t,e){let i=this.nearest(t);if(!i)throw new RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(t,e)+i.posAtStart}domAtPos(t){let{i:e,off:i}=this.childCursor().findPos(t,-1);for(;e=0;s--){let a=this.children[s],l=o-a.breakAfter,c=l-a.length;if(lt||a.covers(1))&&(!i||a instanceof tn&&!(i instanceof tn&&e>=0)))i=a,r=c;else if(i&&c==t&&l==t&&a instanceof Ql&&Math.abs(e)<2){if(a.deco.startSide<0)break;s&&(i=null)}o=c}return i?i.coordsAt(t-r,e):null}coordsForChar(t){let{i:e,off:i}=this.childPos(t,1),r=this.children[e];if(!(r instanceof tn))return null;for(;r.children.length;){let{i:a,off:l}=r.childPos(i,1);for(;;a++){if(a==r.children.length)return null;if((r=r.children[a]).length)break}i=l}if(!(r instanceof $o))return null;let o=Ci(r.text,i);if(o==i)return null;let s=Zl(r.dom,i,o).getClientRects();for(let a=0;aMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,l=this.view.textDirection==Nt.LTR;for(let c=0,d=0;dr)break;if(c>=i){let f=u.dom.getBoundingClientRect();if(e.push(f.height),s){let m=u.dom.lastChild,g=m?Gd(m):[];if(g.length){let _=g[g.length-1],v=l?_.right-f.left:f.right-_.left;v>a&&(a=v,this.minWidth=o,this.minWidthFrom=c,this.minWidthTo=h)}}}c=h+u.breakAfter}return e}textDirectionAt(t){let{i:e}=this.childPos(t,1);return getComputedStyle(this.children[e].dom).direction=="rtl"?Nt.RTL:Nt.LTR}measureTextSize(){for(let o of this.children)if(o instanceof tn){let s=o.measureTextSize();if(s)return s}let t=document.createElement("div"),e,i,r;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 o=Gd(t.firstChild)[0];e=t.getBoundingClientRect().height,i=o?o.width/27:7,r=o?o.height:e,t.remove()}),{lineHeight:e,charWidth:i,textHeight:r}}childCursor(t=this.length){let e=this.children.length;return e&&(t-=this.children[--e].length),new Kb(this.children,t,e)}computeBlockGapDeco(){let t=[],e=this.view.viewState;for(let i=0,r=0;;r++){let o=r==e.viewports.length?null:e.viewports[r],s=o?o.from-1:this.length;if(s>i){let a=(e.lineBlockAt(s).bottom-e.lineBlockAt(i).top)/this.view.scaleY;t.push(ve.replace({widget:new Ef(a),block:!0,inclusive:!0,isBlockGap:!0}).range(i,s))}if(!o)break;i=o.to+1}return ve.set(t)}updateDeco(){let t=1,e=this.view.state.facet(If).map(o=>(this.dynamicDecorationMap[t++]=typeof o=="function")?o(this.view):o),i=!1,r=this.view.state.facet(eB).map((o,s)=>{let a=typeof o=="function";return a&&(i=!0),a?o(this.view):o});for(r.length&&(this.dynamicDecorationMap[t++]=i,e.push(Gt.join(r))),this.decorations=[this.editContextFormatting,...e,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];te.anchor?-1:1),r;if(!i)return;!e.empty&&(r=this.coordsAt(e.anchor,e.anchor>e.head?-1:1))&&(i={left:Math.min(i.left,r.left),top:Math.min(i.top,r.top),right:Math.max(i.right,r.right),bottom:Math.max(i.bottom,r.bottom)});let o=ME(this.view),s={left:i.left-o.left,top:i.top-o.top,right:i.right+o.right,bottom:i.bottom+o.bottom},{offsetWidth:a,offsetHeight:l}=this.view.scrollDOM;hte(this.view.scrollDOM,s,e.head{it.from&&(e=!0)}),e}function Vte(n,t,e=1){let i=n.charCategorizer(t),r=n.doc.lineAt(t),o=t-r.from;if(r.length==0)return G.cursor(t);o==0?e=1:o==r.length&&(e=-1);let s=o,a=o;e<0?s=Ci(r.text,o,!1):a=Ci(r.text,o);let l=i(r.text.slice(s,a));for(;s>0;){let c=Ci(r.text,s,!1);if(i(r.text.slice(c,s))!=l)break;s=c}for(;an?t.left-n:Math.max(0,n-t.right)}function Bte(n,t){return t.top>n?t.top-n:Math.max(0,n-t.bottom)}function Mk(n,t){return n.topt.top+1}function YV(n,t){return tn.bottom?{top:n.top,left:n.left,right:n.right,bottom:t}:n}function qk(n,t,e){let i,r,o,s,a=!1,l,c,d,u;for(let m=n.firstChild;m;m=m.nextSibling){let g=Gd(m);for(let _=0;_R||s==R&&o>x){i=m,r=v,o=x,s=R;let V=R?e0?_0)}x==0?e>v.bottom&&(!d||d.bottomv.top)&&(c=m,u=v):d&&Mk(d,v)?d=qV(d,v.bottom):u&&Mk(u,v)&&(u=YV(u,v.top))}}if(d&&d.bottom>=e?(i=l,r=d):u&&u.top<=e&&(i=c,r=u),!i)return{node:n,offset:0};let h=Math.max(r.left,Math.min(r.right,t));if(i.nodeType==3)return GV(i,h,e);if(a&&i.contentEditable!="false")return qk(i,h,e);let f=Array.prototype.indexOf.call(n.childNodes,i)+(t>=(r.left+r.right)/2?1:0);return{node:n,offset:f}}function GV(n,t,e){let i=n.nodeValue.length,r=-1,o=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((be.chrome||be.gecko)&&Zl(n,a).getBoundingClientRect().left==d.right&&(f=!h),u<=0)return{node:n,offset:a+(f?1:0)};r=a+(f?1:0),o=u}}}return{node:n,offset:r>-1?r:s>0?n.nodeValue.length:0}}function rB(n,t,e,i=-1){var r,o;let s=n.contentDOM.getBoundingClientRect(),a=s.top+n.viewState.paddingTop,l,{docHeight:c}=n.viewState,{x:d,y:u}=t,h=u-a;if(h<0)return 0;if(h>c)return n.state.doc.length;for(let V=n.viewState.heightOracle.textHeight/2,j=!1;l=n.elementAtHeight(h),l.type!=En.Text;)for(;h=i>0?l.bottom+V:l.top-V,!(h>=0&&h<=c);){if(j)return e?null:0;j=!0,i=-i}u=a+h;let f=l.from;if(fn.viewport.to)return n.viewport.to==n.state.doc.length?n.state.doc.length:e?null:QV(n,s,l,d,u);let m=n.dom.ownerDocument,g=n.root.elementFromPoint?n.root:m,_=g.elementFromPoint(d,u);_&&!n.contentDOM.contains(_)&&(_=null),_||(d=Math.max(s.left+1,Math.min(s.right-1,d)),_=g.elementFromPoint(d,u),_&&!n.contentDOM.contains(_)&&(_=null));let v,x=-1;if(_&&((r=n.docView.nearest(_))===null||r===void 0?void 0:r.isEditable)!=!1){if(m.caretPositionFromPoint){let V=m.caretPositionFromPoint(d,u);V&&({offsetNode:v,offset:x}=V)}else if(m.caretRangeFromPoint){let V=m.caretRangeFromPoint(d,u);V&&({startContainer:v,startOffset:x}=V,(!n.contentDOM.contains(v)||be.safari&&$te(v,x,d)||be.chrome&&zte(v,x,d))&&(v=void 0))}v&&(x=Math.min(Bo(v),x))}if(!v||!n.docView.dom.contains(v)){let V=tn.find(n.docView,f);if(!V)return h>l.top+l.height/2?l.to:l.from;({node:v,offset:x}=qk(V.dom,d,u))}let R=n.docView.nearest(v);if(!R)return null;if(R.isWidget&&((o=R.dom)===null||o===void 0?void 0:o.nodeType)==1){let V=R.dom.getBoundingClientRect();return t.yn.defaultLineHeight*1.5){let a=n.viewState.heightOracle.textHeight,l=Math.floor((r-e.top-(n.defaultLineHeight-a)*.5)/a);o+=l*n.viewState.heightOracle.lineLength}let s=n.state.sliceDoc(e.from,e.to);return e.from+Ab(s,o,n.state.tabSize)}function $te(n,t,e){let i;if(n.nodeType!=3||t!=(i=n.nodeValue.length))return!1;for(let r=n.nextSibling;r;r=r.nextSibling)if(r.nodeType!=1||r.nodeName!="BR")return!1;return Zl(n,i-1,i).getBoundingClientRect().left>e}function zte(n,t,e){if(t!=0)return!1;for(let r=n;;){let o=r.parentNode;if(!o||o.nodeType!=1||o.firstChild!=r)return!1;if(o.classList.contains("cm-line"))break;r=o}let i=n.nodeType==1?n.getBoundingClientRect():Zl(n,0,Math.max(n.nodeValue.length,1)).getBoundingClientRect();return e-i.left>5}function Gk(n,t){let e=n.lineBlockAt(t);if(Array.isArray(e.type)){for(let i of e.type)if(i.to>t||i.to==t&&(i.to==e.to||i.type==En.Text))return i}return e}function Hte(n,t,e,i){let r=Gk(n,t.head),o=!i||r.type!=En.Text||!(n.lineWrapping||r.widgetLineBreaks)?null:n.coordsAtPos(t.assoc<0&&t.head>r.from?t.head-1:t.head);if(o){let s=n.dom.getBoundingClientRect(),a=n.textDirectionAt(r.from),l=n.posAtCoords({x:e==(a==Nt.LTR)?s.right-1:s.left+1,y:(o.top+o.bottom)/2});if(l!=null)return G.cursor(l,e?-1:1)}return G.cursor(e?r.to:r.from,e?-1:1)}function KV(n,t,e,i){let r=n.state.doc.lineAt(t.head),o=n.bidiSpans(r),s=n.textDirectionAt(r.from);for(let a=t,l=null;;){let c=Ite(r,o,s,a,e),d=Uj;if(!c){if(r.number==(e?n.state.doc.lines:1))return a;d=`
`,r=n.state.doc.line(r.number+(e?1:-1)),o=n.bidiSpans(r),c=n.visualLineSide(r,!e)}if(l){if(!l(d))return a}else{if(!i)return c;l=i(d)}a=c}}function Ute(n,t,e){let i=n.state.charCategorizer(t),r=i(e);return o=>{let s=i(o);return r==Ft.Space&&(r=s),r==s}}function Wte(n,t,e,i){let r=t.head,o=e?1:-1;if(r==(e?n.state.doc.length:0))return G.cursor(r,t.assoc);let s=t.goalColumn,a,l=n.contentDOM.getBoundingClientRect(),c=n.coordsAtPos(r,t.assoc||-1),d=n.documentTop;if(c)s==null&&(s=c.left-l.left),a=o<0?c.top:c.bottom;else{let f=n.viewState.lineBlockAt(r);s==null&&(s=Math.min(l.right-l.left,n.defaultCharacterWidth*(r-f.from))),a=(o<0?f.top:f.bottom)+d}let u=l.left+s,h=i??n.viewState.heightOracle.textHeight>>1;for(let f=0;;f+=10){let m=a+(h+f)*o,g=rB(n,{x:u,y:m},!1,o);if(ml.bottom||(o<0?gr)){let _=n.docView.coordsForChar(g),v=!_||m<_.top?-1:1;return G.cursor(g,v,void 0,s)}}}function Ub(n,t,e){for(;;){let i=0;for(let r of n)r.between(t-1,t+1,(o,s,a)=>{if(t>o&&tr(n)),e.from,t.head>e.from?-1:1);return i==e.from?e:G.cursor(i,io)&&this.lineBreak(),r=s}return this.findPointBefore(i,e),this}readTextNode(t){let e=t.nodeValue;for(let i of this.points)i.node==t&&(i.pos=this.text.length+Math.min(i.offset,e.length));for(let i=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let o=-1,s=1,a;if(this.lineSeparator?(o=e.indexOf(this.lineSeparator,i),s=this.lineSeparator.length):(a=r.exec(e))&&(o=a.index,s=a[0].length),this.append(e.slice(i,o<0?e.length:o)),o<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);i=o+s}}readNode(t){if(t.cmIgnore)return;let e=Qt.get(t),i=e&&e.overrideDOMText;if(i!=null){this.findPointInside(t,i.length);for(let r=i.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else t.nodeType==3?this.readTextNode(t):t.nodeName=="BR"?t.nextSibling&&this.lineBreak():t.nodeType==1&&this.readRange(t.firstChild,null)}findPointBefore(t,e){for(let i of this.points)i.node==t&&t.childNodes[i.offset]==e&&(i.pos=this.text.length)}findPointInside(t,e){for(let i of this.points)(t.nodeType==3?i.node==t:t.contains(i.node))&&(i.pos=this.text.length+(Yte(t,i.node,i.offset)?e:0))}};function Yte(n,t,e){for(;;){if(!t||e-1;let{impreciseHead:o,impreciseAnchor:s}=t.docView;if(t.state.readOnly&&e>-1)this.newSel=null;else if(e>-1&&(this.bounds=t.docView.domBoundsAround(e,i,0))){let a=o||s?[]:Qte(t),l=new Qk(a,t.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=Kte(a,this.bounds.from)}else{let a=t.observer.selectionRange,l=o&&o.node==a.focusNode&&o.offset==a.focusOffset||!Nk(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||!Nk(t.contentDOM,a.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(a.anchorNode,a.anchorOffset),d=t.viewport;if((be.ios||be.chrome)&&t.state.selection.main.empty&&l!=c&&(d.from>0||d.toDate.now()-100?n.inputState.lastKeyCode:-1;if(t.bounds){let{from:s,to:a}=t.bounds,l=r.from,c=null;(o===8||be.android&&t.text.length=r.from&&e.to<=r.to&&(e.from!=r.from||e.to!=r.to)&&r.to-r.from-(e.to-e.from)<=4?e={from:r.from,to:r.to,insert:n.state.doc.slice(r.from,e.from).append(e.insert).append(n.state.doc.slice(e.to,r.to))}:be.chrome&&e&&e.from==e.to&&e.from==r.head&&e.insert.toString()==`
 `&&n.lineWrapping&&(i&&(i=G.single(i.main.anchor-1,i.main.head-1)),e={from:r.from,to:r.to,insert:ut.of([" "])}),e)return TE(n,e,i,o);if(i&&!i.main.eq(r)){let s=!1,a="select";return n.inputState.lastSelectionTime>Date.now()-50&&(n.inputState.lastSelectionOrigin=="select"&&(s=!0),a=n.inputState.lastSelectionOrigin),n.dispatch({selection:i,scrollIntoView:s,userEvent:a}),!0}else return!1}function TE(n,t,e,i=-1){if(be.ios&&n.inputState.flushIOSKey(t))return!0;let r=n.state.selection.main;if(be.android&&(t.to==r.to&&(t.from==r.from||t.from==r.from-1&&n.state.sliceDoc(t.from,r.from)==" ")&&t.insert.length==1&&t.insert.lines==2&&qd(n.contentDOM,"Enter",13)||(t.from==r.from-1&&t.to==r.to&&t.insert.length==0||i==8&&t.insert.lengthr.head)&&qd(n.contentDOM,"Backspace",8)||t.from==r.from&&t.to==r.to+1&&t.insert.length==0&&qd(n.contentDOM,"Delete",46)))return!0;let o=t.insert.toString();n.inputState.composing>=0&&n.inputState.composing++;let s,a=()=>s||(s=qte(n,t,e));return n.state.facet(Qj).some(l=>l(n,t.from,t.to,o,a))||n.dispatch(a()),!0}function qte(n,t,e){let i,r=n.state,o=r.selection.main;if(t.from>=o.from&&t.to<=o.to&&t.to-t.from>=(o.to-o.from)/3&&(!e||e.main.empty&&e.main.from==t.from+t.insert.length)&&n.inputState.composing<0){let a=o.fromt.to?r.sliceDoc(t.to,o.to):"";i=r.replaceSelection(n.state.toText(a+t.insert.sliceString(0,void 0,n.state.lineBreak)+l))}else{let a=r.changes(t),l=e&&e.main.to<=a.newLength?e.main:void 0;if(r.selection.ranges.length>1&&n.inputState.composing>=0&&t.to<=o.to&&t.to>=o.to-10){let c=n.state.sliceDoc(t.from,t.to),d,u=e&&nB(n,e.main.head);if(u){let m=t.insert.length-(t.to-t.from);d={from:u.from,to:u.to-m}}else d=n.state.doc.lineAt(o.head);let h=o.to-t.to,f=o.to-o.from;i=r.changeByRange(m=>{if(m.from==o.from&&m.to==o.to)return{changes:a,range:l||m.map(a)};let g=m.to-h,_=g-c.length;if(m.to-m.from!=f||n.state.sliceDoc(_,g)!=c||m.to>=d.from&&m.from<=d.to)return{range:m};let v=r.changes({from:_,to:g,insert:t.insert}),x=m.to-o.to;return{changes:v,range:l?G.range(Math.max(0,l.anchor+x),Math.max(0,l.head+x)):m.map(v)}})}else i={changes:a,selection:l&&r.selection.replaceRange(l)}}let s="input.type";return(n.composing||n.inputState.compositionPendingChange&&n.inputState.compositionEndedAt>Date.now()-50)&&(n.inputState.compositionPendingChange=!1,s+=".compose",n.inputState.compositionFirstChange&&(s+=".start",n.inputState.compositionFirstChange=!1)),r.update(i,{userEvent:s,scrollIntoView:!0})}function Gte(n,t,e,i){let r=Math.min(n.length,t.length),o=0;for(;o0&&a>0&&n.charCodeAt(s-1)==t.charCodeAt(a-1);)s--,a--;if(i=="end"){let l=Math.max(0,o-Math.min(s,a));e-=s+l-o}if(s=s?o-e:0;o-=l,a=o+(a-s),s=o}else if(a=a?o-e:0;o-=l,s=o+(s-a),a=o}return{from:o,toA:s,toB:a}}function Qte(n){let t=[];if(n.root.activeElement!=n.contentDOM)return t;let{anchorNode:e,anchorOffset:i,focusNode:r,focusOffset:o}=n.observer.selectionRange;return e&&(t.push(new ev(e,i)),(r!=e||o!=i)&&t.push(new ev(r,o))),t}function Kte(n,t){if(n.length==0)return null;let e=n[0].pos,i=n.length==2?n[1].pos:e;return e>-1&&i>-1?G.single(e+t,i+t):null}var Zk=class{setSelectionOrigin(t){this.lastSelectionOrigin=t,this.lastSelectionTime=Date.now()}constructor(t){this.view=t,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=t.hasFocus,be.safari&&t.contentDOM.addEventListener("input",()=>null),be.gecko&&uie(t.contentDOM.ownerDocument)}handleEvent(t){!nie(this.view,t)||this.ignoreDuringComposition(t)||t.type=="keydown"&&this.keydown(t)||this.runHandlers(t.type,t)}runHandlers(t,e){let i=this.handlers[t];if(i){for(let r of i.observers)r(this.view,e);for(let r of i.handlers){if(e.defaultPrevented)break;if(r(this.view,e)){e.preventDefault();break}}}}ensureHandlers(t){let e=Zte(t),i=this.handlers,r=this.view.contentDOM;for(let o in e)if(o!="scroll"){let s=!e[o].handlers.length,a=i[o];a&&s!=!a.handlers.length&&(r.removeEventListener(o,this.handleEvent),a=null),a||r.addEventListener(o,this.handleEvent,{passive:s})}for(let o in i)o!="scroll"&&!e[o]&&r.removeEventListener(o,this.handleEvent);this.handlers=e}keydown(t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),t.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&t.keyCode!=27&&aB.indexOf(t.keyCode)<0&&(this.tabFocusMode=-1),be.android&&be.chrome&&!t.synthetic&&(t.keyCode==13||t.keyCode==8))return this.view.observer.delayAndroidKey(t.key,t.keyCode),!0;let e;return be.ios&&!t.synthetic&&!t.altKey&&!t.metaKey&&((e=sB.find(i=>i.keyCode==t.keyCode))&&!t.ctrlKey||Xte.indexOf(t.key)>-1&&t.ctrlKey&&!t.shiftKey)?(this.pendingIOSKey=e||t,setTimeout(()=>this.flushIOSKey(),250),!0):(t.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(t){let e=this.pendingIOSKey;return!e||e.key=="Enter"&&t&&t.from0?!0:be.safari&&!be.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(t){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=t}update(t){this.view.observer.update(t),this.mouseSelection&&this.mouseSelection.update(t),this.draggedContent&&t.docChanged&&(this.draggedContent=this.draggedContent.map(t.changes)),t.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}};function ZV(n,t){return(e,i)=>{try{return t.call(n,i,e)}catch(r){nn(e.state,r)}}}function Zte(n){let t=Object.create(null);function e(i){return t[i]||(t[i]={observers:[],handlers:[]})}for(let i of n){let r=i.spec;if(r&&r.domEventHandlers)for(let o in r.domEventHandlers){let s=r.domEventHandlers[o];s&&e(o).handlers.push(ZV(i.value,s))}if(r&&r.domEventObservers)for(let o in r.domEventObservers){let s=r.domEventObservers[o];s&&e(o).observers.push(ZV(i.value,s))}}for(let i in so)e(i).handlers.push(so[i]);for(let i in Rr)e(i).observers.push(Rr[i]);return t}var sB=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Xte="dthko",aB=[16,17,18,20,91,92,224,225],Fb=6;function Nb(n){return Math.max(0,n)*.7+8}function Jte(n,t){return Math.max(Math.abs(n.clientX-t.clientX),Math.abs(n.clientY-t.clientY))}var Xk=class{constructor(t,e,i,r){this.view=t,this.startEvent=e,this.style=i,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=e,this.scrollParents=fte(t.contentDOM),this.atoms=t.state.facet(IE).map(s=>s(t));let o=t.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=e.shiftKey,this.multiple=t.state.facet(Di.allowMultipleSelections)&&eie(t,e),this.dragging=iie(t,e)&&dB(e)==1?null:!1}start(t){this.dragging===!1&&this.select(t)}move(t){if(t.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&Jte(this.startEvent,t)<10)return;this.select(this.lastEvent=t);let e=0,i=0,r=0,o=0,s=this.view.win.innerWidth,a=this.view.win.innerHeight;this.scrollParents.x&&({left:r,right:s}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:o,bottom:a}=this.scrollParents.y.getBoundingClientRect());let l=ME(this.view);t.clientX-l.left<=r+Fb?e=-Nb(r-t.clientX):t.clientX+l.right>=s-Fb&&(e=Nb(t.clientX-s)),t.clientY-l.top<=o+Fb?i=-Nb(o-t.clientY):t.clientY+l.bottom>=a-Fb&&(i=Nb(t.clientY-a)),this.setScrollSpeed(e,i)}up(t){this.dragging==null&&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=this.view.inputState.draggedContent=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(){let{x:t,y:e}=this.scrollSpeed;t&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=t,t=0),e&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=e,e=0),(t||e)&&this.view.win.scrollBy(t,e),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(t){let e=null;for(let i=0;ie.isUserEvent("input.type"))?this.destroy():this.style.update(t)&&setTimeout(()=>this.select(this.lastEvent),20)}};function eie(n,t){let e=n.state.facet(Wj);return e.length?e[0](t):be.mac?t.metaKey:t.ctrlKey}function tie(n,t){let e=n.state.facet(Yj);return e.length?e[0](t):be.mac?!t.altKey:!t.ctrlKey}function iie(n,t){let{main:e}=n.state.selection;if(e.empty)return!1;let i=Cf(n.root);if(!i||i.rangeCount==0)return!0;let r=i.getRangeAt(0).getClientRects();for(let o=0;o=t.clientX&&s.top<=t.clientY&&s.bottom>=t.clientY)return!0}return!1}function nie(n,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let e=t.target,i;e!=n.contentDOM;e=e.parentNode)if(!e||e.nodeType==11||(i=Qt.get(e))&&i.ignoreEvent(t))return!1;return!0}var so=Object.create(null),Rr=Object.create(null),lB=be.ie&&be.ie_version<15||be.ios&&be.webkit_version<604;function rie(n){let t=n.dom.parentNode;if(!t)return;let e=t.appendChild(document.createElement("textarea"));e.style.cssText="position: fixed; left: -10000px; top: 10px",e.focus(),setTimeout(()=>{n.focus(),e.remove(),cB(n,e.value)},50)}function uv(n,t,e){for(let i of n.facet(t))e=i(e,n);return e}function cB(n,t){t=uv(n.state,kE,t);let{state:e}=n,i,r=1,o=e.toText(t),s=o.lines==e.selection.ranges.length;if(Jk!=null&&e.selection.ranges.every(l=>l.empty)&&Jk==o.toString()){let l=-1;i=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?o.line(r++).text:t)+e.lineBreak);return{changes:{from:d.from,insert:u},range:G.cursor(c.from+u.length)}})}else s?i=e.changeByRange(l=>{let c=o.line(r++);return{changes:{from:l.from,to:l.to,insert:c.text},range:G.cursor(l.from+c.length)}}):i=e.replaceSelection(o);n.dispatch(i,{userEvent:"input.paste",scrollIntoView:!0})}Rr.scroll=n=>{n.inputState.lastScrollTop=n.scrollDOM.scrollTop,n.inputState.lastScrollLeft=n.scrollDOM.scrollLeft};so.keydown=(n,t)=>(n.inputState.setSelectionOrigin("select"),t.keyCode==27&&n.inputState.tabFocusMode!=0&&(n.inputState.tabFocusMode=Date.now()+2e3),!1);Rr.touchstart=(n,t)=>{n.inputState.lastTouchTime=Date.now(),n.inputState.setSelectionOrigin("select.pointer")};Rr.touchmove=n=>{n.inputState.setSelectionOrigin("select.pointer")};so.mousedown=(n,t)=>{if(n.observer.flush(),n.inputState.lastTouchTime>Date.now()-2e3)return!1;let e=null;for(let i of n.state.facet(qj))if(e=i(n,t),e)break;if(!e&&t.button==0&&(e=aie(n,t)),e){let i=!n.hasFocus;n.inputState.startMouseSelection(new Xk(n,t,e,i)),i&&n.observer.ignore(()=>{Ej(n.contentDOM);let o=n.root.activeElement;o&&!o.contains(n.contentDOM)&&o.blur()});let r=n.inputState.mouseSelection;if(r)return r.start(t),r.dragging===!1}return!1};function XV(n,t,e,i){if(i==1)return G.cursor(t,e);if(i==2)return Vte(n.state,t,e);{let r=tn.find(n.docView,t),o=n.state.doc.lineAt(r?r.posAtEnd:t),s=r?r.posAtStart:o.from,a=r?r.posAtEnd:o.to;return at>=e.top&&t<=e.bottom&&n>=e.left&&n<=e.right;function oie(n,t,e,i){let r=tn.find(n.docView,t);if(!r)return 1;let o=t-r.posAtStart;if(o==0)return 1;if(o==r.length)return-1;let s=r.coordsAt(o,-1);if(s&&JV(e,i,s))return-1;let a=r.coordsAt(o,1);return a&&JV(e,i,a)?1:s&&s.bottom>=i?-1:1}function ej(n,t){let e=n.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:e,bias:oie(n,e,t.clientX,t.clientY)}}var sie=be.ie&&be.ie_version<=11,tj=null,ij=0,nj=0;function dB(n){if(!sie)return n.detail;let t=tj,e=nj;return tj=n,nj=Date.now(),ij=!t||e>Date.now()-400&&Math.abs(t.clientX-n.clientX)<2&&Math.abs(t.clientY-n.clientY)<2?(ij+1)%3:1}function aie(n,t){let e=ej(n,t),i=dB(t),r=n.state.selection;return{update(o){o.docChanged&&(e.pos=o.changes.mapPos(e.pos),r=r.map(o.changes))},get(o,s,a){let l=ej(n,o),c,d=XV(n,l.pos,l.bias,i);if(e.pos!=l.pos&&!s){let u=XV(n,e.pos,e.bias,i),h=Math.min(u.from,d.from),f=Math.max(u.to,d.to);d=h1&&(c=lie(r,l.pos))?c:a?r.addRange(d):G.create([d])}}}function lie(n,t){for(let e=0;e=t)return G.create(n.ranges.slice(0,e).concat(n.ranges.slice(e+1)),n.mainIndex==e?0:n.mainIndex-(n.mainIndex>e?1:0))}return null}so.dragstart=(n,t)=>{let{selection:{main:e}}=n.state;if(t.target.draggable){let r=n.docView.nearest(t.target);if(r&&r.isWidget){let o=r.posAtStart,s=o+r.length;(o>=e.to||s<=e.from)&&(e=G.range(o,s))}}let{inputState:i}=n;return i.mouseSelection&&(i.mouseSelection.dragging=!0),i.draggedContent=e,t.dataTransfer&&(t.dataTransfer.setData("Text",uv(n.state,EE,n.state.sliceDoc(e.from,e.to))),t.dataTransfer.effectAllowed="copyMove"),!1};so.dragend=n=>(n.inputState.draggedContent=null,!1);function rj(n,t,e,i){if(e=uv(n.state,kE,e),!e)return;let r=n.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:o}=n.inputState,s=i&&o&&tie(n,t)?{from:o.from,to:o.to}:null,a={from:r,insert:e},l=n.state.changes(s?[s,a]:a);n.focus(),n.dispatch({changes:l,selection:{anchor:l.mapPos(r,-1),head:l.mapPos(r,1)},userEvent:s?"move.drop":"input.drop"}),n.inputState.draggedContent=null}so.drop=(n,t)=>{if(!t.dataTransfer)return!1;if(n.state.readOnly)return!0;let e=t.dataTransfer.files;if(e&&e.length){let i=Array(e.length),r=0,o=()=>{++r==e.length&&rj(n,t,i.filter(s=>s!=null).join(n.state.lineBreak),!1)};for(let s=0;s{/[\x00-\x08\x0e-\x1f]{2}/.test(a.result)||(i[s]=a.result),o()},a.readAsText(e[s])}return!0}else{let i=t.dataTransfer.getData("Text");if(i)return rj(n,t,i,!0),!0}return!1};so.paste=(n,t)=>{if(n.state.readOnly)return!0;n.observer.flush();let e=lB?null:t.clipboardData;return e?(cB(n,e.getData("text/plain")||e.getData("text/uri-list")),!0):(rie(n),!1)};function cie(n,t){let e=n.dom.parentNode;if(!e)return;let i=e.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.value=t,i.focus(),i.selectionEnd=t.length,i.selectionStart=0,setTimeout(()=>{i.remove(),n.focus()},50)}function die(n){let t=[],e=[],i=!1;for(let r of n.selection.ranges)r.empty||(t.push(n.sliceDoc(r.from,r.to)),e.push(r));if(!t.length){let r=-1;for(let{from:o}of n.selection.ranges){let s=n.doc.lineAt(o);s.number>r&&(t.push(s.text),e.push({from:s.from,to:Math.min(n.doc.length,s.to+1)})),r=s.number}i=!0}return{text:uv(n,EE,t.join(n.lineBreak)),ranges:e,linewise:i}}var Jk=null;so.copy=so.cut=(n,t)=>{let{text:e,ranges:i,linewise:r}=die(n.state);if(!e&&!r)return!1;Jk=r?e:null,t.type=="cut"&&!n.state.readOnly&&n.dispatch({changes:i,scrollIntoView:!0,userEvent:"delete.cut"});let o=lB?null:t.clipboardData;return o?(o.clearData(),o.setData("text/plain",e),!0):(cie(n,e),!1)};var uB=$n.define();function hB(n,t){let e=[];for(let i of n.facet(Kj)){let r=i(n,t);r&&e.push(r)}return e?n.update({effects:e,annotations:uB.of(!0)}):null}function fB(n){setTimeout(()=>{let t=n.hasFocus;if(t!=n.inputState.notifiedFocused){let e=hB(n.state,t);e?n.dispatch(e):n.update([])}},10)}Rr.focus=n=>{n.inputState.lastFocusTime=Date.now(),!n.scrollDOM.scrollTop&&(n.inputState.lastScrollTop||n.inputState.lastScrollLeft)&&(n.scrollDOM.scrollTop=n.inputState.lastScrollTop,n.scrollDOM.scrollLeft=n.inputState.lastScrollLeft),fB(n)};Rr.blur=n=>{n.observer.clearSelectionRange(),fB(n)};Rr.compositionstart=Rr.compositionupdate=n=>{n.observer.editContext||(n.inputState.compositionFirstChange==null&&(n.inputState.compositionFirstChange=!0),n.inputState.composing<0&&(n.inputState.composing=0))};Rr.compositionend=n=>{n.observer.editContext||(n.inputState.composing=-1,n.inputState.compositionEndedAt=Date.now(),n.inputState.compositionPendingKey=!0,n.inputState.compositionPendingChange=n.observer.pendingRecords().length>0,n.inputState.compositionFirstChange=null,be.chrome&&be.android?n.observer.flushSoon():n.inputState.compositionPendingChange?Promise.resolve().then(()=>n.observer.flush()):setTimeout(()=>{n.inputState.composing<0&&n.docView.hasComposition&&n.update([])},50))};Rr.contextmenu=n=>{n.inputState.lastContextMenu=Date.now()};so.beforeinput=(n,t)=>{var e,i;if(t.inputType=="insertReplacementText"&&n.observer.editContext){let o=(e=t.dataTransfer)===null||e===void 0?void 0:e.getData("text/plain"),s=t.getTargetRanges();if(o&&s.length){let a=s[0],l=n.posAtDOM(a.startContainer,a.startOffset),c=n.posAtDOM(a.endContainer,a.endOffset);return TE(n,{from:l,to:c,insert:n.state.toText(o)},null),!0}}let r;if(be.chrome&&be.android&&(r=sB.find(o=>o.inputType==t.inputType))&&(n.observer.delayAndroidKey(r.key,r.keyCode),r.key=="Backspace"||r.key=="Delete")){let o=((i=window.visualViewport)===null||i===void 0?void 0:i.height)||0;setTimeout(()=>{var s;(((s=window.visualViewport)===null||s===void 0?void 0:s.height)||0)>o+10&&n.hasFocus&&(n.contentDOM.blur(),n.focus())},100)}return be.ios&&t.inputType=="deleteContentForward"&&n.observer.flushSoon(),be.safari&&t.inputType=="insertText"&&n.inputState.composing>=0&&setTimeout(()=>Rr.compositionend(n,t),20),!1};var oj=new Set;function uie(n){oj.has(n)||(oj.add(n),n.addEventListener("copy",()=>{}),n.addEventListener("cut",()=>{}))}var sj=["pre-wrap","normal","pre-line","break-spaces"],Qd=!1;function aj(){Qd=!1}var eE=class{constructor(t){this.lineWrapping=t,this.doc=ut.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(t,e){let i=this.doc.lineAt(e).number-this.doc.lineAt(t).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((e-t-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}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 sj.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let e=!1;for(let i=0;i-1,l=Math.round(e)!=Math.round(this.lineHeight)||this.lineWrapping!=a;if(this.lineWrapping=a,this.lineHeight=e,this.charWidth=i,this.textHeight=r,this.lineLength=o,l){this.heightSamples={};for(let c=0;c0}set outdated(t){this.flags=(t?2:0)|this.flags&-3}setHeight(t){this.height!=t&&(Math.abs(this.height-t)>Wb&&(Qd=!0),this.height=t)}replace(t,e,i){return n.of(i)}decomposeLeft(t,e){e.push(this)}decomposeRight(t,e){e.push(this)}applyChanges(t,e,i,r){let o=this,s=i.doc;for(let a=r.length-1;a>=0;a--){let{fromA:l,toA:c,fromB:d,toB:u}=r[a],h=o.lineAt(l,Jt.ByPosNoHeight,i.setDoc(e),0,0),f=h.to>=c?h:o.lineAt(c,Jt.ByPosNoHeight,i,0,0);for(u+=f.to-c,c=f.to;a>0&&h.from<=r[a-1].toA;)l=r[a-1].fromA,d=r[a-1].fromB,a--,lo*2){let a=t[e-1];a.break?t.splice(--e,1,a.left,null,a.right):t.splice(--e,1,a.left,a.right),i+=1+a.break,r-=a.size}else if(o>r*2){let a=t[i];a.break?t.splice(i,1,a.left,null,a.right):t.splice(i,1,a.left,a.right),i+=2+a.break,o-=a.size}else break;else if(r=o&&s(this.blockAt(0,i,r,o))}updateHeight(t,e=0,i=!1,r){return r&&r.from<=e&&r.more&&this.setHeight(r.heights[r.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}},Or=class n extends iv{constructor(t,e){super(t,e,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(t,e,i,r){return new Lo(r,this.length,i,this.height,this.breaks)}replace(t,e,i){let r=i[0];return i.length==1&&(r instanceof n||r instanceof Aa&&r.flags&4)&&Math.abs(this.length-r.length)<10?(r instanceof Aa?r=new n(r.length,this.height):r.height=this.height,this.outdated||(r.outdated=!1),r):ur.of(i)}updateHeight(t,e=0,i=!1,r){return r&&r.from<=e&&r.more?this.setHeight(r.heights[r.index++]):(i||this.outdated)&&this.setHeight(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:""})`}},Aa=class n extends ur{constructor(t){super(t,0)}heightMetrics(t,e){let i=t.doc.lineAt(e).number,r=t.doc.lineAt(e+this.length).number,o=r-i+1,s,a=0;if(t.lineWrapping){let l=Math.min(this.height,t.lineHeight*o);s=l/o,this.length>o+1&&(a=(this.height-l)/(this.length-o-1))}else s=this.height/o;return{firstLine:i,lastLine:r,perLine:s,perChar:a}}blockAt(t,e,i,r){let{firstLine:o,lastLine:s,perLine:a,perChar:l}=this.heightMetrics(e,r);if(e.lineWrapping){let c=r+(t0){let o=i[i.length-1];o instanceof n?i[i.length-1]=new n(o.length+r):i.push(null,new n(r-1))}if(t>0){let o=i[0];o instanceof n?i[0]=new n(t+o.length):i.unshift(new n(t-1),null)}return ur.of(i)}decomposeLeft(t,e){e.push(new n(t-1),null)}decomposeRight(t,e){e.push(null,new n(this.length-t-1))}updateHeight(t,e=0,i=!1,r){let o=e+this.length;if(r&&r.from<=e+this.length&&r.more){let s=[],a=Math.max(e,r.from),l=-1;for(r.from>e&&s.push(new n(r.from-e-1).updateHeight(t,e));a<=o&&r.more;){let d=t.doc.lineAt(a).length;s.length&&s.push(null);let u=r.heights[r.index++];l==-1?l=u:Math.abs(u-l)>=Wb&&(l=-2);let h=new Or(d,u);h.outdated=!1,s.push(h),a+=d+1}a<=o&&s.push(null,new n(o-a).updateHeight(t,a));let c=ur.of(s);return(l<0||Math.abs(c.height-this.height)>=Wb||Math.abs(l-this.heightMetrics(t,e).perLine)>=Wb)&&(Qd=!0),tv(this,c)}else(i||this.outdated)&&(this.setHeight(t.heightForGap(e,e+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}},iE=class extends ur{constructor(t,e,i){super(t.length+e+i.length,t.height+i.height,e|(t.outdated||i.outdated?2:0)),this.left=t,this.right=i,this.size=t.size+i.size}get break(){return this.flags&1}blockAt(t,e,i,r){let o=i+this.left.height;return ta))return c;let d=e==Jt.ByPosNoHeight?Jt.ByPosNoHeight:Jt.ByPos;return l?c.join(this.right.lineAt(a,d,i,s,a)):this.left.lineAt(a,d,i,r,o).join(c)}forEachLine(t,e,i,r,o,s){let a=r+this.left.height,l=o+this.left.length+this.break;if(this.break)t=l&&this.right.forEachLine(t,e,i,a,l,s);else{let c=this.lineAt(l,Jt.ByPos,i,r,o);t=t&&c.from<=e&&s(c),e>c.to&&this.right.forEachLine(c.to+1,e,i,a,l,s)}}replace(t,e,i){let r=this.left.length+this.break;if(ethis.left.length)return this.balanced(this.left,this.right.replace(t-r,e-r,i));let o=[];t>0&&this.decomposeLeft(t,o);let s=o.length;for(let a of i)o.push(a);if(t>0&&lj(o,s-1),e=i&&e.push(null)),t>i&&this.right.decomposeLeft(t-i,e)}decomposeRight(t,e){let i=this.left.length,r=i+this.break;if(t>=r)return this.right.decomposeRight(t-r,e);t2*e.size||e.size>2*t.size?ur.of(this.break?[t,null,e]:[t,e]):(this.left=tv(this.left,t),this.right=tv(this.right,e),this.setHeight(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,i=!1,r){let{left:o,right:s}=this,a=e+o.length+this.break,l=null;return r&&r.from<=e+o.length&&r.more?l=o=o.updateHeight(t,e,i,r):o.updateHeight(t,e,i),r&&r.from<=a+s.length&&r.more?l=s=s.updateHeight(t,a,i,r):s.updateHeight(t,a,i),l?this.balanced(o,s):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}};function lj(n,t){let e,i;n[t]==null&&(e=n[t-1])instanceof Aa&&(i=n[t+1])instanceof Aa&&n.splice(t-1,3,new Aa(e.length+1+i.length))}var hie=5,nE=class n{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 i=Math.min(e,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof Or?r.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new Or(i-this.pos,-1)),this.writtenTo=i,e>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=e}point(t,e,i){if(t=hie)&&this.addLineDeco(r,o,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 Or(this.pos-t,-1)),this.writtenTo=this.pos}blankContent(t,e){let i=new Aa(e-t);return this.oracle.doc.lineAt(t).to==e&&(i.flags|=4),i}ensureLine(){this.enterLine();let t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof Or)return t;let e=new Or(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,i){let r=this.ensureLine();r.length+=i,r.collapsed+=i,r.widgetHeight=Math.max(r.widgetHeight,t),r.breaks+=e,this.writtenTo=this.pos=this.pos+i}finish(t){let e=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(e instanceof Or)&&!this.isCovered?this.nodes.push(new Or(0,-1)):(this.writtenTod.clientHeight||d.scrollWidth>d.clientWidth)&&u.overflow!="visible"){let h=d.getBoundingClientRect();o=Math.max(o,h.left),s=Math.min(s,h.right),a=Math.max(a,h.top),l=Math.min(c==n.parentNode?r.innerHeight:l,h.bottom)}c=u.position=="absolute"||u.position=="fixed"?d.offsetParent:d.parentNode}else if(c.nodeType==11)c=c.host;else break;return{left:o-e.left,right:Math.max(o,s)-e.left,top:a-(e.top+t),bottom:Math.max(a,l)-(e.top+t)}}function pie(n){let t=n.getBoundingClientRect(),e=n.ownerDocument.defaultView||window;return t.left0&&t.top0}function gie(n,t){let e=n.getBoundingClientRect();return{left:0,right:e.right-e.left,top:t,bottom:e.bottom-(e.top+t)}}var vf=class{constructor(t,e,i,r){this.from=t,this.to=e,this.size=i,this.displaySize=r}static same(t,e){if(t.length!=e.length)return!1;for(let i=0;itypeof i!="function"&&i.class=="cm-lineWrapping");this.heightOracle=new eE(e),this.stateDeco=t.facet(If).filter(i=>typeof i!="function"),this.heightMap=ur.empty().applyChanges(this.stateDeco,ut.empty,this.heightOracle.setDoc(t.doc),[new jo(0,0,0,t.doc.length)]);for(let i=0;i<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());i++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=ve.set(this.lineGaps.map(i=>i.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:e}=this.state.selection;for(let i=0;i<=1;i++){let r=i?e.head:e.anchor;if(!t.some(({from:o,to:s})=>r>=o&&r<=s)){let{from:o,to:s}=this.lineBlockAt(r);t.push(new Ud(o,s))}}return this.viewports=t.sort((i,r)=>i.from-r.from),this.updateScaler()}updateScaler(){let t=this.scaler;return this.scaler=this.heightMap.height<=7e6?cj:new sE(this.heightOracle,this.heightMap,this.viewports),t.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,t=>{this.viewportLines.push(ff(t,this.scaler))})}update(t,e=null){this.state=t.state;let i=this.stateDeco;this.stateDeco=this.state.facet(If).filter(d=>typeof d!="function");let r=t.changedRanges,o=jo.extendWithRanges(r,fie(i,this.stateDeco,t?t.changes:Sn.empty(this.state.doc.length))),s=this.heightMap.height,a=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);aj(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),o),(this.heightMap.height!=s||Qd)&&(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=o.length?this.mapViewport(this.viewport,t.changes):this.viewport;(e&&(e.range.headl.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,e));let c=l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,t.flags|=this.updateForViewport(),(c||!t.changes.empty||t.flags&2)&&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(t.changes),e&&(this.scrollTarget=e),!this.mustEnforceCursorAssoc&&t.selectionSet&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(Zj)&&(this.mustEnforceCursorAssoc=!0)}measure(t){let e=t.contentDOM,i=window.getComputedStyle(e),r=this.heightOracle,o=i.whiteSpace;this.defaultTextDirection=i.direction=="rtl"?Nt.RTL:Nt.LTR;let s=this.heightOracle.mustRefreshForWrapping(o),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{scaleX:V,scaleY:j}=kj(e,a);(V>.005&&Math.abs(this.scaleX-V)>.005||j>.005&&Math.abs(this.scaleY-j)>.005)&&(this.scaleX=V,this.scaleY=j,c|=16,s=l=!0)}let u=(parseInt(i.paddingTop)||0)*this.scaleY,h=(parseInt(i.paddingBottom)||0)*this.scaleY;(this.paddingTop!=u||this.paddingBottom!=h)&&(this.paddingTop=u,this.paddingBottom=h,c|=18),this.editorWidth!=t.scrollDOM.clientWidth&&(r.lineWrapping&&(l=!0),this.editorWidth=t.scrollDOM.clientWidth,c|=16);let f=t.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=f&&(this.scrollAnchorHeight=-1,this.scrollTop=f),this.scrolledToBottom=Mj(t.scrollDOM);let m=(this.printing?gie:mie)(e,this.paddingTop),g=m.top-this.pixelViewport.top,_=m.bottom-this.pixelViewport.bottom;this.pixelViewport=m;let v=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(v!=this.inView&&(this.inView=v,v&&(l=!0)),!this.inView&&!this.scrollTarget&&!pie(t.dom))return 0;let x=a.width;if((this.contentDOMWidth!=x||this.editorHeight!=t.scrollDOM.clientHeight)&&(this.contentDOMWidth=a.width,this.editorHeight=t.scrollDOM.clientHeight,c|=16),l){let V=t.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(V)&&(s=!0),s||r.lineWrapping&&Math.abs(x-this.contentDOMWidth)>r.charWidth){let{lineHeight:j,charWidth:K,textHeight:J}=t.docView.measureTextSize();s=j>0&&r.refresh(o,j,K,J,x/K,V),s&&(t.docView.minWidth=0,c|=16)}g>0&&_>0?d=Math.max(g,_):g<0&&_<0&&(d=Math.min(g,_)),aj();for(let j of this.viewports){let K=j.from==this.viewport.from?V:t.docView.measureVisibleLineHeights(j);this.heightMap=(s?ur.empty().applyChanges(this.stateDeco,ut.empty,this.heightOracle,[new jo(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(r,0,s,new tE(j.from,K))}Qd&&(c|=2)}let R=!this.viewportIsAppropriate(this.viewport,d)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return R&&(c&2&&(c|=this.updateScaler()),this.viewport=this.getViewport(d,this.scrollTarget),c|=this.updateForViewport()),(c&2||R)&&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 i=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),r=this.heightMap,o=this.heightOracle,{visibleTop:s,visibleBottom:a}=this,l=new Ud(r.lineAt(s-i*1e3,Jt.ByHeight,o,0,0).from,r.lineAt(a+(1-i)*1e3,Jt.ByHeight,o,0,0).to);if(e){let{head:c}=e.range;if(cl.to){let d=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),u=r.lineAt(c,Jt.ByPos,o,0,0),h;e.y=="center"?h=(u.top+u.bottom)/2-d/2:e.y=="start"||e.y=="nearest"&&c=a+Math.max(10,Math.min(i,250)))&&r>s-2*1e3&&o>1,s=r<<1;if(this.defaultTextDirection!=Nt.LTR&&!i)return[];let a=[],l=(d,u,h,f)=>{if(u-dd&&vv.from>=h.from&&v.to<=h.to&&Math.abs(v.from-d)v.fromx));if(!_){if(uR.from<=u&&R.to>=u)){let R=e.moveToLineBoundary(G.cursor(u),!1,!0).head;R>d&&(u=R)}let v=this.gapSize(h,d,u,f),x=i||v<2e6?v:2e6;_=new vf(d,u,v,x)}a.push(_)},c=d=>{if(d.length2e6)for(let K of t)K.from>=d.from&&K.fromd.from&&l(d.from,f,d,u),me.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(t){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let i=[];Gt.spans(e,this.viewport.from,this.viewport.to,{span(o,s){i.push({from:o,to:s})},point(){}},20);let r=0;if(i.length!=this.visibleRanges.length)r=12;else for(let o=0;o=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find(e=>e.from<=t&&e.to>=t)||ff(this.heightMap.lineAt(t,Jt.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return t>=this.viewportLines[0].top&&t<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(e=>e.top<=t&&e.bottom>=t)||ff(this.heightMap.lineAt(this.scaler.fromDOM(t),Jt.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 ff(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}},Ud=class{constructor(t,e){this.from=t,this.to=e}};function _ie(n,t,e){let i=[],r=n,o=0;return Gt.spans(e,n,t,{span(){},point(s,a){s>r&&(i.push({from:r,to:s}),o+=s-r),r=a}},20),r=1)return t[t.length-1].to;let i=Math.floor(n*e);for(let r=0;;r++){let{from:o,to:s}=t[r],a=s-o;if(i<=a)return o+i;i-=a}}function Vb(n,t){let e=0;for(let{from:i,to:r}of n.ranges){if(t<=r){e+=t-i;break}e+=r-i}return e/n.total}function bie(n,t){for(let e of n)if(t(e))return e}var cj={toDOM(n){return n},fromDOM(n){return n},scale:1,eq(n){return n==this}},sE=class n{constructor(t,e,i){let r=0,o=0,s=0;this.viewports=i.map(({from:a,to:l})=>{let c=e.lineAt(a,Jt.ByPos,t,0,0).top,d=e.lineAt(l,Jt.ByPos,t,0,0).bottom;return r+=d-c,{from:a,to:l,top:c,bottom:d,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(e.height-r);for(let a of this.viewports)a.domTop=s+(a.top-o)*this.scale,s=a.domBottom=a.domTop+(a.bottom-a.top),o=a.bottom}toDOM(t){for(let e=0,i=0,r=0;;e++){let o=ee.from==t.viewports[i].from&&e.to==t.viewports[i].to):!1}};function ff(n,t){if(t.scale==1)return n;let e=t.toDOM(n.top),i=t.toDOM(n.bottom);return new Lo(n.from,n.length,e,i-e,Array.isArray(n._content)?n._content.map(r=>ff(r,t)):n._content)}var jb=me.define({combine:n=>n.join(" ")}),Ak=me.define({combine:n=>n.indexOf(!0)>-1}),aE=Ar.newName(),mB=Ar.newName(),pB=Ar.newName(),gB={"&light":"."+mB,"&dark":"."+pB};function lE(n,t,e){return new Ar(t,{finish(i){return/&/.test(i)?i.replace(/&\w*/,r=>{if(r=="&")return n;if(!e||!e[r])throw new RangeError(`Unsupported selector: ${r}`);return e[r]}):n+" "+i}})}var vie=lE("."+aE,{"&":{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,overflowAnchor:"none"},".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:"#ddd"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&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,zIndex:300},"&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":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".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"}},gB),yie={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Ok=be.ie&&be.ie_version<=11,cE=class{constructor(t){this.view=t,this.active=!1,this.editContext=null,this.selectionRange=new Lk,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.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver(e=>{for(let i of e)this.queue.push(i);(be.ie&&be.ie_version<=11||be.ios&&t.composing)&&e.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&t.constructor.EDIT_CONTEXT!==!1&&!(be.chrome&&be.chrome_version<126)&&(this.editContext=new dE(t),t.state.facet(Ms)&&(t.contentDOM.editContext=this.editContext.editContext)),Ok&&(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),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var e;((e=this.view.docView)===null||e===void 0?void 0:e.lastUpdate){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.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(t)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(t){(t.type=="change"||!t.type)&&!t.matches||(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,i)=>e!=t[i]))){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:i}=this,r=this.selectionRange;if(i.state.facet(Ms)?i.root.activeElement!=this.dom:!zb(this.dom,r))return;let o=r.anchorNode&&i.docView.nearest(r.anchorNode);if(o&&o.ignoreEvent(t)){e||(this.selectionChanged=!1);return}(be.ie&&be.ie_version<=11||be.android&&be.chrome)&&!i.state.selection.main.empty&&r.focusNode&&pf(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,e=Cf(t.root);if(!e)return!1;let i=be.safari&&t.root.nodeType==11&&t.root.activeElement==this.dom&&wie(this.view,e)||e;if(!i||this.selectionRange.eq(i))return!1;let r=zb(this.dom,i);return r&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime{let o=this.delayedAndroidKey;o&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=o.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&o.force&&qd(this.dom,o.key,o.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(r)}(!this.delayedAndroidKey||t=="Enter")&&(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,i=-1,r=!1;for(let o of t){let s=this.readMutation(o);s&&(s.typeOver&&(r=!0),e==-1?{from:e,to:i}=s:(e=Math.min(s.from,e),i=Math.max(s.to,i)))}return{from:e,to:i,typeOver:r}}readChange(){let{from:t,to:e,typeOver:i}=this.processRecords(),r=this.selectionChanged&&zb(this.dom,this.selectionRange);if(t<0&&!r)return null;t>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let o=new Kk(this.view,t,e,i);return this.view.docView.domChanged={newSel:o.newSel?o.newSel.main:null},o}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 i=this.view.state,r=oB(this.view,e);return this.view.state==i&&(e.domChanged||e.newSel&&!e.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),r}readMutation(t){let e=this.view.docView.nearest(t.target);if(!e||e.ignoreMutation(t))return null;if(e.markDirty(t.type=="attributes"),t.type=="attributes"&&(e.flags|=4),t.type=="childList"){let i=dj(e,t.previousSibling||t.target.previousSibling,-1),r=dj(e,t.nextSibling||t.target.nextSibling,1);return{from:i?e.posAfter(i):e.posAtStart,to:r?e.posBefore(r):e.posAtEnd,typeOver:!1}}else return t.type=="characterData"?{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),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):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),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):t.removeEventListener("beforeprint",this.onPrint),t.document.removeEventListener("selectionchange",this.onSelectionChange)}update(t){this.editContext&&(this.editContext.update(t),t.startState.facet(Ms)!=t.state.facet(Ms)&&(t.view.contentDOM.editContext=t.state.facet(Ms)?this.editContext.editContext:null))}destroy(){var t,e,i;this.stop(),(t=this.intersection)===null||t===void 0||t.disconnect(),(e=this.gapIntersection)===null||e===void 0||e.disconnect(),(i=this.resizeScroll)===null||i===void 0||i.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),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}};function dj(n,t,e){for(;t;){let i=Qt.get(t);if(i&&i.parent==n)return i;let r=t.parentNode;t=r!=n.dom?r:e>0?t.nextSibling:t.previousSibling}return null}function uj(n,t){let e=t.startContainer,i=t.startOffset,r=t.endContainer,o=t.endOffset,s=n.docView.domAtPos(n.state.selection.main.anchor);return pf(s.node,s.offset,r,o)&&([e,i,r,o]=[r,o,e,i]),{anchorNode:e,anchorOffset:i,focusNode:r,focusOffset:o}}function wie(n,t){if(t.getComposedRanges){let r=t.getComposedRanges(n.root)[0];if(r)return uj(n,r)}let e=null;function i(r){r.preventDefault(),r.stopImmediatePropagation(),e=r.getTargetRanges()[0]}return n.contentDOM.addEventListener("beforeinput",i,!0),n.dom.ownerDocument.execCommand("indent"),n.contentDOM.removeEventListener("beforeinput",i,!0),e?uj(n,e):null}var dE=class{constructor(t){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(t.state);let e=this.editContext=new window.EditContext({text:t.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,t.state.selection.main.anchor))),selectionEnd:this.toContextPos(t.state.selection.main.head)});this.handlers.textupdate=i=>{let r=t.state.selection.main,{anchor:o,head:s}=r,a=this.toEditorPos(i.updateRangeStart),l=this.toEditorPos(i.updateRangeEnd);t.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:i.updateRangeStart,editorBase:a,drifted:!1});let c={from:a,to:l,insert:ut.of(i.text.split(`
`))};if(c.from==this.from&&othis.to&&(c.to=o),c.from==c.to&&!c.insert.length){let d=G.single(this.toEditorPos(i.selectionStart),this.toEditorPos(i.selectionEnd));d.main.eq(r)||t.dispatch({selection:d,userEvent:"select"});return}if((be.mac||be.android)&&c.from==s-1&&/^\. ?$/.test(i.text)&&t.contentDOM.getAttribute("autocorrect")=="off"&&(c={from:a,to:l,insert:ut.of([i.text.replace("."," ")])}),this.pendingContextChange=c,!t.state.readOnly){let d=this.to-this.from+(c.to-c.from+c.insert.length);TE(t,c,G.single(this.toEditorPos(i.selectionStart,d),this.toEditorPos(i.selectionEnd,d)))}this.pendingContextChange&&(this.revertPending(t.state),this.setSelection(t.state))},this.handlers.characterboundsupdate=i=>{let r=[],o=null;for(let s=this.toEditorPos(i.rangeStart),a=this.toEditorPos(i.rangeEnd);s{let r=[];for(let o of i.getTextFormats()){let s=o.underlineStyle,a=o.underlineThickness;if(s!="None"&&a!="None"){let l=this.toEditorPos(o.rangeStart),c=this.toEditorPos(o.rangeEnd);if(l{t.inputState.composing<0&&(t.inputState.composing=0,t.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(t.inputState.composing=-1,t.inputState.compositionFirstChange=null,this.composing){let{drifted:i}=this.composing;this.composing=null,i&&this.reset(t.state)}};for(let i in this.handlers)e.addEventListener(i,this.handlers[i]);this.measureReq={read:i=>{this.editContext.updateControlBounds(i.contentDOM.getBoundingClientRect());let r=Cf(i.root);r&&r.rangeCount&&this.editContext.updateSelectionBounds(r.getRangeAt(0).getBoundingClientRect())}}}applyEdits(t){let e=0,i=!1,r=this.pendingContextChange;return t.changes.iterChanges((o,s,a,l,c)=>{if(i)return;let d=c.length-(s-o);if(r&&s>=r.to)if(r.from==o&&r.to==s&&r.insert.eq(c)){r=this.pendingContextChange=null,e+=d,this.to+=d;return}else r=null,this.revertPending(t.state);if(o+=e,s+=e,s<=this.from)this.from+=d,this.to+=d;else if(othis.to||this.to-this.from+c.length>3e4){i=!0;return}this.editContext.updateText(this.toContextPos(o),this.toContextPos(s),c.toString()),this.to+=d}e+=d}),r&&!i&&this.revertPending(t.state),!i}update(t){let e=this.pendingContextChange;this.composing&&(this.composing.drifted||t.transactions.some(i=>!i.isUserEvent("input.type")&&i.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=t.changes.mapPos(this.composing.editorBase)):!this.applyEdits(t)||!this.rangeIsValid(t.state)?(this.pendingContextChange=null,this.reset(t.state)):(t.docChanged||t.selectionSet||e)&&this.setSelection(t.state),(t.geometryChanged||t.docChanged||t.selectionSet)&&t.view.requestMeasure(this.measureReq)}resetRange(t){let{head:e}=t.selection.main;this.from=Math.max(0,e-1e4),this.to=Math.min(t.doc.length,e+1e4)}reset(t){this.resetRange(t),this.editContext.updateText(0,this.editContext.text.length,t.doc.sliceString(this.from,this.to)),this.setSelection(t)}revertPending(t){let e=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(e.from),this.toContextPos(e.from+e.insert.length),t.doc.sliceString(e.from,e.to))}setSelection(t){let{main:e}=t.selection,i=this.toContextPos(Math.max(this.from,Math.min(this.to,e.anchor))),r=this.toContextPos(e.head);(this.editContext.selectionStart!=i||this.editContext.selectionEnd!=r)&&this.editContext.updateSelection(i,r)}rangeIsValid(t){let{head:e}=t.selection.main;return!(this.from>0&&e-this.from<500||this.to1e4*3)}toEditorPos(t,e=this.to-this.from){t=Math.min(t,e);let i=this.composing;return i&&i.drifted?i.editorBase+(t-i.contextBase):t+this.from}toContextPos(t){let e=this.composing;return e&&e.drifted?e.contextBase+(t-e.editorBase):t-this.from}destroy(){for(let t in this.handlers)this.editContext.removeEventListener(t,this.handlers[t])}},Re=(()=>{class n{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={}){var i;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.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:r}=e;this.dispatchTransactions=e.dispatchTransactions||r&&(o=>o.forEach(s=>r(s,this)))||(o=>this.update(o)),this.dispatch=this.dispatch.bind(this),this._root=e.root||mte(e.parent)||document,this.viewState=new nv(e.state||Di.create(e)),e.scrollTo&&e.scrollTo.is(Pb)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(uf).map(o=>new bf(o));for(let o of this.plugins)o.update(this);this.observer=new cE(this),this.inputState=new Zk(this),this.inputState.ensureHandlers(this.plugins),this.docView=new Jb(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),!((i=document.fonts)===null||i===void 0)&&i.ready&&document.fonts.ready.then(()=>this.requestMeasure())}dispatch(...e){let i=e.length==1&&e[0]instanceof zn?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(i,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let i=!1,r=!1,o,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){this.viewState.state=s;return}let a=this.hasFocus,l=0,c=null;e.some(f=>f.annotation(uB))?(this.inputState.notifiedFocused=a,l=1):a!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=a,c=hB(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(Di.phrases)!=this.state.facet(Di.phrases))return this.setState(s);o=Xb.create(this,s,e),o.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 _f(m.empty?m:G.cursor(m.head,m.head>m.anchor?-1:1))}for(let m of f.effects)m.is(Pb)&&(h=m.value.clip(this.state))}this.viewState.update(o,h),this.bidiCache=rv.update(this.bidiCache,o.changes),o.empty||(this.updatePlugins(o),this.inputState.update(o)),i=this.docView.update(o),this.state.facet(cf)!=this.styleModules&&this.mountStyles(),r=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(i,e.some(f=>f.isUserEvent("select.pointer")))}finally{this.updateState=0}if(o.startState.facet(jb)!=o.state.facet(jb)&&(this.viewState.mustMeasureContent=!0),(i||r||h||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),i&&this.docViewUpdate(),!o.empty)for(let f of this.state.facet(Ik))try{f(o)}catch(m){nn(this.state,m,"update listener")}(c||u)&&Promise.resolve().then(()=>{c&&this.state==c.startState&&this.dispatch(c),u&&!oB(this,u)&&d.force&&qd(this.contentDOM,d.key,d.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let i=this.hasFocus;try{for(let r of this.plugins)r.destroy(this);this.viewState=new nv(e),this.plugins=e.facet(uf).map(r=>new bf(r)),this.pluginMap.clear();for(let r of this.plugins)r.update(this);this.docView.destroy(),this.docView=new Jb(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}i&&this.focus(),this.requestMeasure()}updatePlugins(e){let i=e.startState.facet(uf),r=e.state.facet(uf);if(i!=r){let o=[];for(let s of r){let a=i.indexOf(s);if(a<0)o.push(new bf(s));else{let l=this.plugins[a];l.mustUpdate=e,o.push(l)}}for(let s of this.plugins)s.mustUpdate!=e&&s.destroy(this);this.plugins=o,this.pluginMap.clear()}else for(let o of this.plugins)o.mustUpdate=e;for(let o=0;o-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let i=null,r=this.scrollDOM,o=r.scrollTop*this.scaleY,{scrollAnchorPos:s,scrollAnchorHeight:a}=this.viewState;Math.abs(o-this.viewState.scrollTop)>1&&(a=-1),this.viewState.scrollAnchorHeight=-1;try{for(let l=0;;l++){if(a<0)if(Mj(r))s=-1,a=this.viewState.heightMap.height;else{let m=this.viewState.scrollAnchorAt(o);s=m.from,a=m.top}this.updateState=1;let c=this.viewState.measure(this);if(!c&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(l>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let d=[];c&4||([this.measureRequests,d]=[d,this.measureRequests]);let u=d.map(m=>{try{return m.read(this)}catch(g){return nn(this.state,g),hj}}),h=Xb.create(this,this.state,[]),f=!1;h.flags|=c,i?i.flags|=c:i=h,this.updateState=2,h.empty||(this.updatePlugins(h),this.inputState.update(h),this.updateAttrs(),f=this.docView.update(h),f&&this.docViewUpdate());for(let m=0;m1||g<-1){o=o+g,r.scrollTop=o/this.scaleY,a=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(i&&!i.empty)for(let l of this.state.facet(Ik))l(i)}get themeClasses(){return aE+" "+(this.state.facet(Ak)?pB:mB)+" "+this.state.facet(jb)}updateAttrs(){let e=fj(this,UV,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),i={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(Ms)?"true":"false",class:"cm-content",style:`${be.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(i["aria-readonly"]="true"),fj(this,Yk,i);let r=this.observer.ignore(()=>{let o=zk(this.contentDOM,this.contentAttrs,i),s=zk(this.dom,this.editorAttrs,e);return o||s});return this.editorAttrs=e,this.contentAttrs=i,r}showAnnouncements(e){let i=!0;for(let r of e)for(let o of r.effects)if(o.is(n.announce)){i&&(this.announceDOM.textContent=""),i=!1;let s=this.announceDOM.appendChild(document.createElement("div"));s.textContent=o.value}}mountStyles(){this.styleModules=this.state.facet(cf);let e=this.state.facet(n.cspNonce);Ar.mount(this.root,this.styleModules.concat(vie).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&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(e.key!=null){for(let i=0;ir.spec==e)||null),i&&i.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,i,r){return Tk(this,e,KV(this,e,i,r))}moveByGroup(e,i){return Tk(this,e,KV(this,e,i,r=>Ute(this,e.head,r)))}visualLineSide(e,i){let r=this.bidiSpans(e),o=this.textDirectionAt(e.from),s=r[i?r.length-1:0];return G.cursor(s.side(i,o)+e.from,s.forward(!i,o)?1:-1)}moveToLineBoundary(e,i,r=!0){return Hte(this,e,i,r)}moveVertically(e,i,r){return Tk(this,e,Wte(this,e,i,r))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,i=0){return this.docView.posFromDOM(e,i)}posAtCoords(e,i=!0){return this.readMeasured(),rB(this,e,i)}coordsAtPos(e,i=1){this.readMeasured();let r=this.docView.coordsAt(e,i);if(!r||r.left==r.right)return r;let o=this.state.doc.lineAt(e),s=this.bidiSpans(o),a=s[Vo.find(s,e-o.from,-1,i)];return Af(r,a.dir==Nt.LTR==i>0)}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(HV)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>Cie)return Hj(e.length);let i=this.textDirectionAt(e.from),r;for(let s of this.bidiCache)if(s.from==e.from&&s.dir==i&&(s.fresh||zj(s.isolates,r=WV(this,e))))return s.order;r||(r=WV(this,e));let o=Ete(e.text,i,r);return this.bidiCache.push(new rv(e.from,e.to,i,r,!0,o)),o}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||be.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{Ej(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,i={}){return Pb.of(new _f(typeof e=="number"?G.cursor(e):e,i.y,i.x,i.yMargin,i.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:i}=this.scrollDOM,r=this.viewState.scrollAnchorAt(e);return Pb.of(new _f(G.cursor(r.from),"start","start",r.top-e,i,!0))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e=="boolean"?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return ni.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return ni.define(()=>({}),{eventObservers:e})}static theme(e,i){let r=Ar.newName(),o=[jb.of(r),cf.of(lE(`.${r}`,e))];return i&&i.dark&&o.push(Ak.of(!0)),o}static baseTheme(e){return Tr.lowest(cf.of(lE("."+aE,e,gB)))}static findFromDOM(e){var i;let r=e.querySelector(".cm-content"),o=r&&Qt.get(r)||Qt.get(e);return((i=o?.rootView)===null||i===void 0?void 0:i.view)||null}}return n.styleModule=cf,n.inputHandler=Qj,n.clipboardInputFilter=kE,n.clipboardOutputFilter=EE,n.scrollHandler=Xj,n.focusChangeEffect=Kj,n.perLineTextDirection=HV,n.exceptionSink=Gj,n.updateListener=Ik,n.editable=Ms,n.mouseSelectionStyle=qj,n.dragMovesSelection=Yj,n.clickAddsSelectionRange=Wj,n.decorations=If,n.outerDecorations=eB,n.atomicRanges=IE,n.bidiIsolatedRanges=tB,n.scrollMargins=iB,n.darkTheme=Ak,n.cspNonce=me.define({combine:t=>t.length?t[0]:""}),n.contentAttributes=Yk,n.editorAttributes=UV,n.lineWrapping=n.contentAttributes.of({class:"cm-lineWrapping"}),n.announce=Ue.define(),n})(),Cie=4096,hj={},rv=class n{constructor(t,e,i,r,o,s){this.from=t,this.to=e,this.dir=i,this.isolates=r,this.fresh=o,this.order=s}static update(t,e){if(e.empty&&!t.some(o=>o.fresh))return t;let i=[],r=t.length?t[t.length-1].dir:Nt.LTR;for(let o=Math.max(0,t.length-10);o=0;r--){let o=i[r],s=typeof o=="function"?o(n):o;s&&$k(s,e)}return e}var Die=be.mac?"mac":be.windows?"win":be.linux?"linux":"key";function xie(n,t){let e=n.split(/-(?!$)/),i=e[e.length-1];i=="Space"&&(i=" ");let r,o,s,a;for(let l=0;li.concat(r),[]))),e}function bB(n,t,e){return vB(_B(n.state),t,n,e)}var Ta=null,kie=4e3;function Eie(n,t=Die){let e=Object.create(null),i=Object.create(null),r=(s,a)=>{let l=i[s];if(l==null)i[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")},o=(s,a,l,c,d)=>{var u,h;let f=e[s]||(e[s]=Object.create(null)),m=a.split(/ (?!$)/).map(v=>xie(v,t));for(let v=1;v{let V=Ta={view:R,prefix:x,scope:s};return setTimeout(()=>{Ta==V&&(Ta=null)},kie),!0}]})}let g=m.join(" ");r(g,!1);let _=f[g]||(f[g]={preventDefault:!1,stopPropagation:!1,run:((h=(u=f._any)===null||u===void 0?void 0:u.run)===null||h===void 0?void 0:h.slice())||[]});l&&_.run.push(l),c&&(_.preventDefault=!0),d&&(_.stopPropagation=!0)};for(let s of n){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:[]});let{any:u}=s;for(let h in d)d[h].run.push(f=>u(f,uE))}let l=s[t]||s.key;if(l)for(let c of a)o(c,l,s.run,s.preventDefault,s.stopPropagation),s.shift&&o(c,"Shift-"+l,s.shift,s.preventDefault,s.stopPropagation)}return e}var uE=null;function vB(n,t,e,i){uE=t;let r=PV(t),o=en(r,0),s=dr(o)==r.length&&r!=" ",a="",l=!1,c=!1,d=!1;Ta&&Ta.view==e&&Ta.scope==i&&(a=Ta.prefix+" ",aB.indexOf(t.keyCode)<0&&(c=!0,Ta=null));let u=new Set,h=_=>{if(_){for(let v of _.run)if(!u.has(v)&&(u.add(v),v(e)))return _.stopPropagation&&(d=!0),!0;_.preventDefault&&(_.stopPropagation&&(d=!0),c=!0)}return!1},f=n[i],m,g;return f&&(h(f[a+Bb(r,t,!s)])?l=!0:s&&(t.altKey||t.metaKey||t.ctrlKey)&&!(be.windows&&t.ctrlKey&&t.altKey)&&(m=Is[t.keyCode])&&m!=r?(h(f[a+Bb(m,t,!0)])||t.shiftKey&&(g=zd[t.keyCode])!=r&&g!=m&&h(f[a+Bb(g,t,!1)]))&&(l=!0):s&&t.shiftKey&&h(f[a+Bb(r,t,!0)])&&(l=!0),!l&&h(f._any)&&(l=!0)),c&&(l=!0),l&&d&&t.stopPropagation(),uE=null,l}var Mf=class n{constructor(t,e,i,r,o){this.className=t,this.left=e,this.top=i,this.width=r,this.height=o}draw(){let t=document.createElement("div");return t.className=this.className,this.adjust(t),t}update(t,e){return e.className!=this.className?!1:(this.adjust(t),!0)}adjust(t){t.style.left=this.left+"px",t.style.top=this.top+"px",this.width!=null&&(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,i){if(i.empty){let r=t.coordsAtPos(i.head,i.assoc||1);if(!r)return[];let o=yB(t);return[new n(e,r.left-o.left,r.top-o.top,null,r.bottom-r.top)]}else return Iie(t,e,i)}};function yB(n){let t=n.scrollDOM.getBoundingClientRect();return{left:(n.textDirection==Nt.LTR?t.left:t.right-n.scrollDOM.clientWidth*n.scaleX)-n.scrollDOM.scrollLeft*n.scaleX,top:t.top-n.scrollDOM.scrollTop*n.scaleY}}function pj(n,t,e,i){let r=n.coordsAtPos(t,e*2);if(!r)return i;let o=n.dom.getBoundingClientRect(),s=(r.top+r.bottom)/2,a=n.posAtCoords({x:o.left+1,y:s}),l=n.posAtCoords({x:o.right-1,y:s});return a==null||l==null?i:{from:Math.max(i.from,Math.min(a,l)),to:Math.min(i.to,Math.max(a,l))}}function Iie(n,t,e){if(e.to<=n.viewport.from||e.from>=n.viewport.to)return[];let i=Math.max(e.from,n.viewport.from),r=Math.min(e.to,n.viewport.to),o=n.textDirection==Nt.LTR,s=n.contentDOM,a=s.getBoundingClientRect(),l=yB(n),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=Gk(n,i),m=Gk(n,r),g=f.type==En.Text?f:null,_=m.type==En.Text?m:null;if(g&&(n.lineWrapping||f.widgetLineBreaks)&&(g=pj(n,i,1,g)),_&&(n.lineWrapping||m.widgetLineBreaks)&&(_=pj(n,r,-1,_)),g&&_&&g.from==_.from&&g.to==_.to)return x(R(e.from,e.to,g));{let j=g?R(e.from,null,g):V(f,!1),K=_?R(null,e.to,_):V(m,!0),J=[];return(g||f).to<(_||m).from-(g&&_?1:0)||f.widgetLineBreaks>1&&j.bottom+n.defaultLineHeight/2Te&&vt.from=ue)break;St>Ot&&nt(Math.max(je,Ot),j==null&&je<=Te,Math.min(St,ue),K==null&&St>=Ct,xe.dir)}if(Ot=we.to+1,Ot>=ue)break}return bt.length==0&&nt(Te,j==null,Ct,K==null,n.textDirection),{top:ke,bottom:Ke,horizontal:bt}}function V(j,K){let J=a.top+(K?j.top:j.bottom);return{top:J,bottom:J,horizontal:[]}}}function Mie(n,t){return n.constructor==t.constructor&&n.eq(t)}var hE=class{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(Yb)!=t.state.facet(Yb)&&this.setOrder(t.state),(this.layer.update(t,this.dom)||t.geometryChanged)&&(this.scale(),t.view.requestMeasure(this.measureReq))}docViewUpdate(t){this.layer.updateOnDocViewUpdate!==!1&&t.requestMeasure(this.measureReq)}setOrder(t){let e=0,i=t.facet(Yb);for(;e!Mie(e,this.drawn[i]))){let e=this.dom.firstChild,i=0;for(let r of t)r.update&&e&&r.constructor&&this.drawn[i].constructor&&r.update(e,this.drawn[i])?(e=e.nextSibling,i++):this.dom.insertBefore(r.draw(),e);for(;e;){let r=e.nextSibling;e.remove(),e=r}this.drawn=t}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}},Yb=me.define();function wB(n){return[ni.define(t=>new hE(t,n)),Yb.of(n)]}var CB=!(be.ios&&be.webkit&&be.webkit_version<534),Tf=me.define({combine(n){return fn(n,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(t,e)=>Math.min(t,e),drawRangeCursor:(t,e)=>t||e})}});function hv(n={}){return[Tf.of(n),Tie,Aie,Oie,Zj.of(!0)]}function DB(n){return n.startState.facet(Tf)!=n.state.facet(Tf)}var Tie=wB({above:!0,markers(n){let{state:t}=n,e=t.facet(Tf),i=[];for(let r of t.selection.ranges){let o=r==t.selection.main;if(r.empty?!o||CB:e.drawRangeCursor){let s=o?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",a=r.empty?r:G.cursor(r.head,r.head>r.anchor?-1:1);for(let l of Mf.forRange(n,s,a))i.push(l)}}return i},update(n,t){n.transactions.some(i=>i.selection)&&(t.style.animationName=t.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let e=DB(n);return e&&gj(n.state,t),n.docChanged||n.selectionSet||e},mount(n,t){gj(t.state,n)},class:"cm-cursorLayer"});function gj(n,t){t.style.animationDuration=n.facet(Tf).cursorBlinkRate+"ms"}var Aie=wB({above:!1,markers(n){return n.state.selection.ranges.map(t=>t.empty?[]:Mf.forRange(n,"cm-selectionBackground",t)).reduce((t,e)=>t.concat(e))},update(n,t){return n.docChanged||n.selectionSet||n.viewportChanged||DB(n)},class:"cm-selectionLayer"}),fE={".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"}},".cm-content":{"& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}};CB&&(fE[".cm-line"].caretColor=fE[".cm-content"].caretColor="transparent !important");var Oie=Tr.highest(Re.theme(fE)),xB=Ue.define({map(n,t){return n==null?null:t.mapPos(n)}}),mf=zt.define({create(){return null},update(n,t){return n!=null&&(n=t.changes.mapPos(n)),t.effects.reduce((e,i)=>i.is(xB)?i.value:e,n)}}),Rie=ni.fromClass(class{constructor(n){this.view=n,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(n){var t;let e=n.state.field(mf);e==null?this.cursor!=null&&((t=this.cursor)===null||t===void 0||t.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(n.startState.field(mf)!=e||n.docChanged||n.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:n}=this,t=n.state.field(mf),e=t!=null&&n.coordsAtPos(t);if(!e)return null;let i=n.scrollDOM.getBoundingClientRect();return{left:e.left-i.left+n.scrollDOM.scrollLeft*n.scaleX,top:e.top-i.top+n.scrollDOM.scrollTop*n.scaleY,height:e.bottom-e.top}}drawCursor(n){if(this.cursor){let{scaleX:t,scaleY:e}=this.view;n?(this.cursor.style.left=n.left/t+"px",this.cursor.style.top=n.top/e+"px",this.cursor.style.height=n.height/e+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(n){this.view.state.field(mf)!=n&&this.view.dispatch({effects:xB.of(n)})}},{eventObservers:{dragover(n){this.setDropPos(this.view.posAtCoords({x:n.clientX,y:n.clientY}))},dragleave(n){(n.target==this.view.contentDOM||!this.view.contentDOM.contains(n.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function fv(){return[mf,Rie]}function _j(n,t,e,i,r){t.lastIndex=0;for(let o=n.iterRange(e,i),s=e,a;!o.next().done;s+=o.value.length)if(!o.lineBreak)for(;a=t.exec(o.value);)r(s+a.index,a)}function Pie(n,t){let e=n.visibleRanges;if(e.length==1&&e[0].from==n.viewport.from&&e[0].to==n.viewport.to)return e;let i=[];for(let{from:r,to:o}of e)r=Math.max(n.state.doc.lineAt(r).from,r-t),o=Math.min(n.state.doc.lineAt(o).to,o+t),i.length&&i[i.length-1].to>=r?i[i.length-1].to=o:i.push({from:r,to:o});return i}var mE=class{constructor(t){let{regexp:e,decoration:i,decorate:r,boundary:o,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,r)this.addMatch=(a,l,c,d)=>r(d,c,c+a[0].length,a,l);else if(typeof i=="function")this.addMatch=(a,l,c,d)=>{let u=i(a,l,c);u&&d(c,c+a[0].length,u)};else if(i)this.addMatch=(a,l,c,d)=>d(c,c+a[0].length,i);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=o,this.maxLength=s}createDeco(t){let e=new cr,i=e.add.bind(e);for(let{from:r,to:o}of Pie(t,this.maxLength))_j(t.state.doc,this.regexp,r,o,(s,a)=>this.addMatch(a,t,s,i));return e.finish()}updateDeco(t,e){let i=1e9,r=-1;return t.docChanged&&t.changes.iterChanges((o,s,a,l)=>{l>=t.view.viewport.from&&a<=t.view.viewport.to&&(i=Math.min(a,i),r=Math.max(l,r))}),t.viewportMoved||r-i>1e3?this.createDeco(t.view):r>-1?this.updateRange(t.view,e.map(t.changes),i,r):e}updateRange(t,e,i,r){for(let o of t.visibleRanges){let s=Math.max(o.from,i),a=Math.min(o.to,r);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(v.range(g,_));if(l==c)for(this.regexp.lastIndex=d-l.from;(f=this.regexp.exec(l.text))&&f.indexthis.addMatch(_,t,g,m));e=e.update({filterFrom:d,filterTo:u,filter:(g,_)=>gu,add:h})}}return e}},pE=/x/.unicode!=null?"gu":"g",Fie=new RegExp(`[\0-\b
-\x7F-\x9F\xAD\u061C\u200B\u200E\u200F\u2028\u2029\u202D\u202E\u2066\u2067\u2069\uFEFF\uFFF9-\uFFFC]`,pE),Nie={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"},Rk=null;function Lie(){var n;if(Rk==null&&typeof document<"u"&&document.body){let t=document.body.style;Rk=((n=t.tabSize)!==null&&n!==void 0?n:t.MozTabSize)!=null}return Rk||!1}var qb=me.define({combine(n){let t=fn(n,{render:null,specialChars:Fie,addSpecialChars:null});return(t.replaceTabs=!Lie())&&(t.specialChars=new RegExp("	|"+t.specialChars.source,pE)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,pE)),t}});function mv(n={}){return[qb.of(n),Vie()]}var bj=null;function Vie(){return bj||(bj=ni.fromClass(class{constructor(n){this.view=n,this.decorations=ve.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(n.state.facet(qb)),this.decorations=this.decorator.createDeco(n)}makeDecorator(n){return new mE({regexp:n.specialChars,decoration:(t,e,i)=>{let{doc:r}=e.state,o=en(t[0],0);if(o==9){let s=r.lineAt(i),a=e.state.tabSize,l=Es(s.text,a,i-s.from);return ve.replace({widget:new _E((a-l%a)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=ve.replace({widget:new gE(n,o)}))},boundary:n.replaceTabs?void 0:/[^]/})}update(n){let t=n.state.facet(qb);n.startState.facet(qb)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(n.view)):this.decorations=this.decorator.updateDeco(n,this.decorations)}},{decorations:n=>n.decorations}))}var jie="\u2022";function Bie(n){return n>=32?jie:n==10?"\u2424":String.fromCharCode(9216+n)}var gE=class extends In{constructor(t,e){super(),this.options=t,this.code=e}eq(t){return t.code==this.code}toDOM(t){let e=Bie(this.code),i=t.state.phrase("Control character")+" "+(Nie[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,i,e);if(r)return r;let o=document.createElement("span");return o.textContent=e,o.title=i,o.setAttribute("aria-label",i),o.className="cm-specialChar",o}ignoreEvent(){return!1}},_E=class extends In{constructor(t){super(),this.width=t}eq(t){return t.width==this.width}toDOM(){let t=document.createElement("span");return t.textContent="	",t.className="cm-tab",t.style.width=this.width+"px",t}ignoreEvent(){return!1}};function pv(){return zie}var $ie=ve.line({class:"cm-activeLine"}),zie=ni.fromClass(class{constructor(n){this.decorations=this.getDeco(n)}update(n){(n.docChanged||n.selectionSet)&&(this.decorations=this.getDeco(n.view))}getDeco(n){let t=-1,e=[];for(let i of n.state.selection.ranges){let r=n.lineBlockAt(i.head);r.from>t&&(e.push($ie.range(r.from)),t=r.from)}return ve.set(e)}},{decorations:n=>n.decorations}),bE=class extends In{constructor(t){super(),this.content=t}toDOM(t){let e=document.createElement("span");return e.className="cm-placeholder",e.style.pointerEvents="none",e.appendChild(typeof this.content=="string"?document.createTextNode(this.content):typeof this.content=="function"?this.content(t):this.content.cloneNode(!0)),typeof this.content=="string"?e.setAttribute("aria-label","placeholder "+this.content):e.setAttribute("aria-hidden","true"),e}coordsAt(t){let e=t.firstChild?Gd(t.firstChild):[];if(!e.length)return null;let i=window.getComputedStyle(t.parentNode),r=Af(e[0],i.direction!="rtl"),o=parseInt(i.lineHeight);return r.bottom-r.top>o*1.5?{left:r.left,right:r.right,top:r.top,bottom:r.top+o}:r}ignoreEvent(){return!1}};function SB(n){return ni.fromClass(class{constructor(t){this.view=t,this.placeholder=n?ve.set([ve.widget({widget:new bE(n),side:1}).range(0)]):ve.none}get decorations(){return this.view.state.doc.length?ve.none:this.placeholder}},{decorations:t=>t.decorations})}var vE=2e3;function Hie(n,t,e){let i=Math.min(t.line,e.line),r=Math.max(t.line,e.line),o=[];if(t.off>vE||e.off>vE||t.col<0||e.col<0){let s=Math.min(t.off,e.off),a=Math.max(t.off,e.off);for(let l=i;l<=r;l++){let c=n.doc.line(l);c.length<=a&&o.push(G.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=i;l<=r;l++){let c=n.doc.line(l),d=Ab(c.text,s,n.tabSize,!0);if(d<0)o.push(G.cursor(c.to));else{let u=Ab(c.text,a,n.tabSize);o.push(G.range(c.from+d,c.from+u))}}}return o}function Uie(n,t){let e=n.coordsAtPos(n.viewport.from);return e?Math.round(Math.abs((e.left-t)/n.defaultCharacterWidth)):-1}function vj(n,t){let e=n.posAtCoords({x:t.clientX,y:t.clientY},!1),i=n.state.doc.lineAt(e),r=e-i.from,o=r>vE?-1:r==i.length?Uie(n,t.clientX):Es(i.text,n.state.tabSize,e-i.from);return{line:i.number,col:o,off:r}}function Wie(n,t){let e=vj(n,t),i=n.state.selection;return e?{update(r){if(r.docChanged){let o=r.changes.mapPos(r.startState.doc.line(e.line).from),s=r.state.doc.lineAt(o);e={line:s.number,col:e.col,off:Math.min(e.off,s.length)},i=i.map(r.changes)}},get(r,o,s){let a=vj(n,r);if(!a)return i;let l=Hie(n.state,e,a);return l.length?s?G.create(l.concat(i.ranges)):G.create(l):i}}:null}function gv(n){let t=n?.eventFilter||(e=>e.altKey&&e.button==0);return Re.mouseSelectionStyle.of((e,i)=>t(i)?Wie(e,i):null)}var Yie={Alt:[18,n=>!!n.altKey],Control:[17,n=>!!n.ctrlKey],Shift:[16,n=>!!n.shiftKey],Meta:[91,n=>!!n.metaKey]},qie={style:"cursor: crosshair"};function _v(n={}){let[t,e]=Yie[n.key||"Alt"],i=ni.fromClass(class{constructor(r){this.view=r,this.isDown=!1}set(r){this.isDown!=r&&(this.isDown=r,this.view.update([]))}},{eventObservers:{keydown(r){this.set(r.keyCode==t||e(r))},keyup(r){(r.keyCode==t||!e(r))&&this.set(!1)},mousemove(r){this.set(e(r))}}});return[i,Re.contentAttributes.of(r=>{var o;return!((o=r.plugin(i))===null||o===void 0)&&o.isDown?qie:null})]}var df="-10000px",ov=class{constructor(t,e,i,r){this.facet=e,this.createTooltipView=i,this.removeTooltipView=r,this.input=t.state.facet(e),this.tooltips=this.input.filter(s=>s);let o=null;this.tooltipViews=this.tooltips.map(s=>o=i(s,o))}update(t,e){var i;let r=t.state.facet(this.facet),o=r.filter(l=>l);if(r===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=r,this.tooltips=o,this.tooltipViews=s,!0}};function Gie(n){let{win:t}=n;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}var Pk=me.define({combine:n=>{var t,e,i;return{position:be.ios?"absolute":((t=n.find(r=>r.position))===null||t===void 0?void 0:t.position)||"fixed",parent:((e=n.find(r=>r.parent))===null||e===void 0?void 0:e.parent)||null,tooltipSpace:((i=n.find(r=>r.tooltipSpace))===null||i===void 0?void 0:i.tooltipSpace)||Gie}}}),yj=new WeakMap,AE=ni.fromClass(class{constructor(n){this.view=n,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=n.state.facet(Pk);this.position=t.position,this.parent=t.parent,this.classes=n.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new ov(n,Of,(e,i)=>this.createTooltip(e,i),e=>{this.resizeObserver&&this.resizeObserver.unobserve(e.dom),e.dom.remove()}),this.above=this.manager.tooltips.map(e=>!!e.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(e=>{Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),n.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 n of this.manager.tooltipViews)this.intersectionObserver.observe(n.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(n){n.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(n,this.above);t&&this.observeIntersection();let e=t||n.geometryChanged,i=n.state.facet(Pk);if(i.position!=this.position&&!this.madeAbsolute){this.position=i.position;for(let r of this.manager.tooltipViews)r.dom.style.position=this.position;e=!0}if(i.parent!=this.parent){this.parent&&this.container.remove(),this.parent=i.parent,this.createContainer();for(let r of this.manager.tooltipViews)this.container.appendChild(r.dom);e=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);e&&this.maybeMeasure()}createTooltip(n,t){let e=n.create(this.view),i=t?t.dom:null;if(e.dom.classList.add("cm-tooltip"),n.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let r=document.createElement("div");r.className="cm-tooltip-arrow",e.dom.appendChild(r)}return e.dom.style.position=this.position,e.dom.style.top=df,e.dom.style.left="0px",this.container.insertBefore(e.dom,i),e.mount&&e.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(e.dom),e}destroy(){var n,t,e;this.view.win.removeEventListener("resize",this.measureSoon);for(let i of this.manager.tooltipViews)i.dom.remove(),(n=i.destroy)===null||n===void 0||n.call(i);this.parent&&this.container.remove(),(t=this.resizeObserver)===null||t===void 0||t.disconnect(),(e=this.intersectionObserver)===null||e===void 0||e.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let n=1,t=1,e=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:o}=this.manager.tooltipViews[0];if(be.gecko)e=o.offsetParent!=this.container.ownerDocument.body;else if(o.style.top==df&&o.style.left=="0px"){let s=o.getBoundingClientRect();e=Math.abs(s.top+1e4)>1||Math.abs(s.left)>1}}if(e||this.position=="absolute")if(this.parent){let o=this.parent.getBoundingClientRect();o.width&&o.height&&(n=o.width/this.parent.offsetWidth,t=o.height/this.parent.offsetHeight)}else({scaleX:n,scaleY:t}=this.view.viewState);let i=this.view.scrollDOM.getBoundingClientRect(),r=ME(this.view);return{visible:{left:i.left+r.left,top:i.top+r.top,right:i.right-r.right,bottom:i.bottom-r.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map((o,s)=>{let a=this.manager.tooltipViews[s];return a.getCoords?a.getCoords(o.pos):this.view.coordsAtPos(o.pos)}),size:this.manager.tooltipViews.map(({dom:o})=>o.getBoundingClientRect()),space:this.view.state.facet(Pk).tooltipSpace(this.view),scaleX:n,scaleY:t,makeAbsolute:e}}writeMeasure(n){var t;if(n.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let a of this.manager.tooltipViews)a.dom.style.position="absolute"}let{visible:e,space:i,scaleX:r,scaleY:o}=n,s=[];for(let a=0;a=Math.min(e.bottom,i.bottom)||u.rightMath.min(e.right,i.right)+.1)){d.style.top=df;continue}let f=l.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,m=f?7:0,g=h.right-h.left,_=(t=yj.get(c))!==null&&t!==void 0?t:h.bottom-h.top,v=c.offset||Kie,x=this.view.textDirection==Nt.LTR,R=h.width>i.right-i.left?x?i.left:i.right-h.width:x?Math.max(i.left,Math.min(u.left-(f?14:0)+v.x,i.right-g)):Math.min(Math.max(i.left,u.left-g+(f?14:0)-v.x),i.right-g),V=this.above[a];!l.strictSide&&(V?u.top-_-m-v.yi.bottom)&&V==i.bottom-u.bottom>u.top-i.top&&(V=this.above[a]=!V);let j=(V?u.top-i.top:i.bottom-u.bottom)-m;if(j<_&&c.resize!==!1){if(jR&&ke.topK&&(K=V?ke.top-_-2-m:ke.bottom+m+2);if(this.position=="absolute"?(d.style.top=(K-n.parent.top)/o+"px",wj(d,(R-n.parent.left)/r)):(d.style.top=K/o+"px",wj(d,R/r)),f){let ke=u.left+(x?v.x:-v.x)-(R+14-7);f.style.left=ke/r+"px"}c.overlap!==!0&&s.push({left:R,top:K,right:J,bottom:K+_}),d.classList.toggle("cm-tooltip-above",V),d.classList.toggle("cm-tooltip-below",!V),c.positioned&&c.positioned(n.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 n of this.manager.tooltipViews)n.dom.style.top=df}},{eventObservers:{scroll(){this.maybeMeasure()}}});function wj(n,t){let e=parseInt(n.style.left,10);(isNaN(e)||Math.abs(t-e)>1)&&(n.style.left=t+"px")}var Qie=Re.baseTheme({".cm-tooltip":{zIndex:500,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:`${7*2}px`,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"}}}),Kie={x:0,y:0},Of=me.define({enables:[AE,Qie]}),sv=me.define({combine:n=>n.reduce((t,e)=>t.concat(e),[])}),av=class n{static create(t){return new n(t)}constructor(t){this.view=t,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new ov(t,sv,(e,i)=>this.createHostedView(e,i),e=>e.dom.remove())}createHostedView(t,e){let i=t.create(this.view);return i.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(i.dom,e?e.dom.nextSibling:this.dom.firstChild),this.mounted&&i.mount&&i.mount(this.view),i}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)(t=e.destroy)===null||t===void 0||t.call(e)}passProp(t){let e;for(let i of this.manager.tooltipViews){let r=i[t];if(r!==void 0){if(e===void 0)e=r;else if(e!==r)return}}return e}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}},Zie=Of.compute([sv],n=>{let t=n.facet(sv);return t.length===0?null:{pos:Math.min(...t.map(e=>e.pos)),end:Math.max(...t.map(e=>{var i;return(i=e.end)!==null&&i!==void 0?i:e.pos})),create:av.create,above:t[0].above,arrow:t.some(e=>e.arrow)}}),yE=class{constructor(t,e,i,r,o){this.view=t,this.source=e,this.field=i,this.setHover=r,this.hoverTime=o,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.length)return;let t=Date.now()-this.lastMove.time;ta.bottom||e.xa.right+t.defaultCharacterWidth)return;let l=t.bidiSpans(t.state.doc.lineAt(r)).find(d=>d.from<=r&&d.to>=r),c=l&&l.dir==Nt.RTL?-1:1;o=e.x{this.pending==a&&(this.pending=null,l&&!(Array.isArray(l)&&!l.length)&&t.dispatch({effects:this.setHover.of(Array.isArray(l)?l:[l])}))},l=>nn(t.state,l,"hover tooltip"))}else s&&!(Array.isArray(s)&&!s.length)&&t.dispatch({effects:this.setHover.of(Array.isArray(s)?s:[s])})}get tooltip(){let t=this.view.plugin(AE),e=t?t.manager.tooltips.findIndex(i=>i.create==av.create):-1;return e>-1?t.manager.tooltipViews[e]:null}mousemove(t){var e,i;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{active:r,tooltip:o}=this;if(r.length&&o&&!Xie(o.dom,t)||this.pending){let{pos:s}=r[0]||this.pending,a=(i=(e=r[0])===null||e===void 0?void 0:e.end)!==null&&i!==void 0?i:s;(s==a?this.view.posAtCoords(this.lastMove)!=s:!Jie(this.view,s,a,t.clientX,t.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(t){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:e}=this;if(e.length){let{tooltip:i}=this;i&&i.dom.contains(t.relatedTarget)?this.watchTooltipLeave(i.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(t){let e=i=>{t.removeEventListener("mouseleave",e),this.active.length&&!this.view.dom.contains(i.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};t.addEventListener("mouseleave",e)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}},$b=4;function Xie(n,t){let{left:e,right:i,top:r,bottom:o}=n.getBoundingClientRect(),s;if(s=n.querySelector(".cm-tooltip-arrow")){let a=s.getBoundingClientRect();r=Math.min(a.top,r),o=Math.max(a.bottom,o)}return t.clientX>=e-$b&&t.clientX<=i+$b&&t.clientY>=r-$b&&t.clientY<=o+$b}function Jie(n,t,e,i,r,o){let s=n.scrollDOM.getBoundingClientRect(),a=n.documentTop+n.documentPadding.top+n.contentHeight;if(s.left>i||s.rightr||Math.min(s.bottom,a)=t&&l<=e}function kB(n,t={}){let e=Ue.define(),i=zt.define({create(){return[]},update(r,o){if(r.length&&(t.hideOnChange&&(o.docChanged||o.selection)?r=[]:t.hideOn&&(r=r.filter(s=>!t.hideOn(o,s))),o.docChanged)){let s=[];for(let a of r){let l=o.changes.mapPos(a.pos,-1,Ai.TrackDel);if(l!=null){let c=Object.assign(Object.create(null),a);c.pos=l,c.end!=null&&(c.end=o.changes.mapPos(c.end)),s.push(c)}}r=s}for(let s of o.effects)s.is(e)&&(r=s.value),s.is(ene)&&(r=[]);return r},provide:r=>sv.from(r)});return{active:i,extension:[i,ni.define(r=>new yE(r,n,i,e,t.hoverTime||300)),Zie]}}function OE(n,t){let e=n.plugin(AE);if(!e)return null;let i=e.manager.tooltips.indexOf(t);return i<0?null:e.manager.tooltipViews[i]}var ene=Ue.define();var Cj=me.define({combine(n){let t,e;for(let i of n)t=t||i.topContainer,e=e||i.bottomContainer;return{topContainer:t,bottomContainer:e}}});function ec(n,t){let e=n.plugin(EB),i=e?e.specs.indexOf(t):-1;return i>-1?e.panels[i]:null}var EB=ni.fromClass(class{constructor(n){this.input=n.state.facet(Jl),this.specs=this.input.filter(e=>e),this.panels=this.specs.map(e=>e(n));let t=n.state.facet(Cj);this.top=new Wd(n,!0,t.topContainer),this.bottom=new Wd(n,!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(n){let t=n.state.facet(Cj);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new Wd(n.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new Wd(n.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let e=n.state.facet(Jl);if(e!=this.input){let i=e.filter(l=>l),r=[],o=[],s=[],a=[];for(let l of i){let c=this.specs.indexOf(l),d;c<0?(d=l(n.view),a.push(d)):(d=this.panels[c],d.update&&d.update(n)),r.push(d),(d.top?o:s).push(d)}this.specs=i,this.panels=r,this.top.sync(o),this.bottom.sync(s);for(let l of a)l.dom.classList.add("cm-panel"),l.mount&&l.mount()}else for(let i of this.panels)i.update&&i.update(n)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:n=>Re.scrollMargins.of(t=>{let e=t.plugin(n);return e&&{top:e.top.scrollMargin(),bottom:e.bottom.scrollMargin()}})}),Wd=class{constructor(t,e,i){this.view=t,this.top=e,this.container=i,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(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}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=Dj(t);t=t.nextSibling}else this.dom.insertBefore(e.dom,t);for(;t;)t=Dj(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 Dj(n){let t=n.nextSibling;return n.remove(),t}var Jl=me.define({enables:EB}),hr=class extends oo{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}};hr.prototype.elementClass="";hr.prototype.toDOM=void 0;hr.prototype.mapMode=Ai.TrackBefore;hr.prototype.startSide=hr.prototype.endSide=-1;hr.prototype.point=!0;var Gb=me.define(),tne=me.define(),ine={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Gt.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},yf=me.define();function RE(n){return[IB(),yf.of(Object.assign(Object.assign({},ine),n))]}var wE=me.define({combine:n=>n.some(t=>t)});function IB(n){let t=[nne];return n&&n.fixed===!1&&t.push(wE.of(!0)),t}var nne=ni.fromClass(class{constructor(n){this.view=n,this.prevViewport=n.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=n.state.facet(yf).map(t=>new lv(n,t));for(let t of this.gutters)this.dom.appendChild(t.dom);this.fixed=!n.state.facet(wE),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),n.scrollDOM.insertBefore(this.dom,n.contentDOM)}update(n){if(this.updateGutters(n)){let t=this.prevViewport,e=n.view.viewport,i=Math.min(t.to,e.to)-Math.max(t.from,e.from);this.syncGutters(i<(e.to-e.from)*.8)}n.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(wE)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=n.view.viewport}syncGutters(n){let t=this.dom.nextSibling;n&&this.dom.remove();let e=Gt.iter(this.view.state.facet(Gb),this.view.viewport.from),i=[],r=this.gutters.map(o=>new DE(o,this.view.viewport,-this.view.documentPadding.top));for(let o of this.view.viewportLineBlocks)if(i.length&&(i=[]),Array.isArray(o.type)){let s=!0;for(let a of o.type)if(a.type==En.Text&&s){CE(e,i,a.from);for(let l of r)l.line(this.view,a,i);s=!1}else if(a.widget)for(let l of r)l.widget(this.view,a)}else if(o.type==En.Text){CE(e,i,o.from);for(let s of r)s.line(this.view,o,i)}else if(o.widget)for(let s of r)s.widget(this.view,o);for(let o of r)o.finish();n&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(n){let t=n.startState.facet(yf),e=n.state.facet(yf),i=n.docChanged||n.heightChanged||n.viewportChanged||!Gt.eq(n.startState.facet(Gb),n.state.facet(Gb),n.view.viewport.from,n.view.viewport.to);if(t==e)for(let r of this.gutters)r.update(n)&&(i=!0);else{i=!0;let r=[];for(let o of e){let s=t.indexOf(o);s<0?r.push(new lv(this.view,o)):(this.gutters[s].update(n),r.push(this.gutters[s]))}for(let o of this.gutters)o.dom.remove(),r.indexOf(o)<0&&o.destroy();for(let o of r)this.dom.appendChild(o.dom);this.gutters=r}return i}destroy(){for(let n of this.gutters)n.destroy();this.dom.remove()}},{provide:n=>Re.scrollMargins.of(t=>{let e=t.plugin(n);return!e||e.gutters.length==0||!e.fixed?null:t.textDirection==Nt.LTR?{left:e.dom.offsetWidth*t.scaleX}:{right:e.dom.offsetWidth*t.scaleX}})});function xj(n){return Array.isArray(n)?n:[n]}function CE(n,t,e){for(;n.value&&n.from<=e;)n.from==e&&t.push(n.value),n.next()}var DE=class{constructor(t,e,i){this.gutter=t,this.height=i,this.i=0,this.cursor=Gt.iter(t.markers,e.from)}addElement(t,e,i){let{gutter:r}=this,o=(e.top-this.height)/t.scaleY,s=e.height/t.scaleY;if(this.i==r.elements.length){let a=new cv(t,s,o,i);r.elements.push(a),r.dom.appendChild(a.dom)}else r.elements[this.i].update(t,s,o,i);this.height=e.bottom,this.i++}line(t,e,i){let r=[];CE(this.cursor,r,e.from),i.length&&(r=r.concat(i));let o=this.gutter.config.lineMarker(t,e,r);o&&r.unshift(o);let s=this.gutter;r.length==0&&!s.config.renderEmptyElements||this.addElement(t,e,r)}widget(t,e){let i=this.gutter.config.widgetMarker(t,e.widget,e),r=i?[i]:null;for(let o of t.state.facet(tne)){let s=o(t,e.widget,e);s&&(r||(r=[])).push(s)}r&&this.addElement(t,e,r)}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let e=t.elements.pop();t.dom.removeChild(e.dom),e.destroy()}}},lv=class{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 i in e.domEventHandlers)this.dom.addEventListener(i,r=>{let o=r.target,s;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let l=o.getBoundingClientRect();s=(l.top+l.bottom)/2}else s=r.clientY;let a=t.lineBlockAtHeight(s-t.documentTop);e.domEventHandlers[i](t,a,r)&&r.preventDefault()});this.markers=xj(e.markers(t)),e.initialSpacer&&(this.spacer=new cv(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=xj(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){let r=this.config.updateSpacer(this.spacer.markers[0],t);r!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[r])}let i=t.view.viewport;return!Gt.eq(this.markers,e,i.from,i.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(t):!1)}destroy(){for(let t of this.elements)t.destroy()}},cv=class{constructor(t,e,i,r){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(t,e,i,r)}update(t,e,i,r){this.height!=e&&(this.height=e,this.dom.style.height=e+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),rne(this.markers,r)||this.setMarkers(t,r)}setMarkers(t,e){let i="cm-gutterElement",r=this.dom.firstChild;for(let o=0,s=0;;){let a=s,l=oo(a,l,c)||s(a,l,c):s}return i}})}}),wf=class extends hr{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}};function Fk(n,t){return n.state.facet(Yd).formatNumber(t,n.state)}var ane=yf.compute([Yd],n=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(t){return t.state.facet(one)},lineMarker(t,e,i){return i.some(r=>r.toDOM)?null:new wf(Fk(t,t.state.doc.lineAt(e.from).number))},widgetMarker:(t,e,i)=>{for(let r of t.state.facet(sne)){let o=r(t,e,i);if(o)return o}return null},lineMarkerChange:t=>t.startState.facet(Yd)!=t.state.facet(Yd),initialSpacer(t){return new wf(Fk(t,Sj(t.state.doc.lines)))},updateSpacer(t,e){let i=Fk(e.view,Sj(e.view.state.doc.lines));return i==t.number?t:new wf(i)},domEventHandlers:n.facet(Yd).domEventHandlers}));function bv(n={}){return[Yd.of(n),IB(),ane]}function Sj(n){let t=9;for(;t{let t=[],e=-1;for(let i of n.selection.ranges){let r=n.doc.lineAt(i.head).from;r>e&&(e=r,t.push(lne.range(r)))}return Gt.of(t)});function vv(){return cne}var dne=0,Un=class{constructor(t,e){this.from=t,this.to=e}},Qe=class{constructor(t={}){this.id=dne++,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 typeof t!="function"&&(t=rn.match(t)),e=>{let i=t(e);return i===void 0?null:[this,i]}}};Qe.closedBy=new Qe({deserialize:n=>n.split(" ")});Qe.openedBy=new Qe({deserialize:n=>n.split(" ")});Qe.group=new Qe({deserialize:n=>n.split(" ")});Qe.isolate=new Qe({deserialize:n=>{if(n&&n!="rtl"&&n!="ltr"&&n!="auto")throw new RangeError("Invalid value for isolate: "+n);return n||"auto"}});Qe.contextHash=new Qe({perNode:!0});Qe.lookAhead=new Qe({perNode:!0});Qe.mounted=new Qe({perNode:!0});var tc=class{constructor(t,e,i){this.tree=t,this.overlay=e,this.parser=i}static get(t){return t&&t.props&&t.props[Qe.mounted.id]}},une=Object.create(null),rn=class n{constructor(t,e,i,r=0){this.name=t,this.props=e,this.id=i,this.flags=r}static define(t){let e=t.props&&t.props.length?Object.create(null):une,i=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),r=new n(t.name||"",e,t.id,i);if(t.props){for(let o of t.props)if(Array.isArray(o)||(o=o(r)),o){if(o[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");e[o[0].id]=o[1]}}return r}prop(t){return this.props[t.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(t){if(typeof t=="string"){if(this.name==t)return!0;let e=this.prop(Qe.group);return e?e.indexOf(t)>-1:!1}return this.id==t}static match(t){let e=Object.create(null);for(let i in t)for(let r of i.split(" "))e[r]=t[i];return i=>{for(let r=i.prop(Qe.group),o=-1;o<(r?r.length:0);o++){let s=e[o<0?i.name:r[o]];if(s)return s}}}};rn.none=new rn("",Object.create(null),0,8);var Rf=class n{constructor(t){this.types=t;for(let e=0;e0;for(let l=this.cursor(s|ei.IncludeAnonymous);;){let c=!1;if(l.from<=o&&l.to>=r&&(!a&&l.type.isAnonymous||e(l)!==!1)){if(l.firstChild())continue;c=!0}for(;c&&i&&(a||!l.type.isAnonymous)&&i(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:UE(rn.none,this.children,this.positions,0,this.children.length,0,this.length,(e,i,r)=>new n(this.type,e,i,r,this.propValues),t.makeTree||((e,i,r)=>new n(rn.none,e,i,r)))}static build(t){return fne(t)}};ri.empty=new ri(rn.none,[],[],0);var PE=class n{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 n(this.buffer,this.index)}},Pa=class n{constructor(t,e,i){this.buffer=t,this.length=e,this.set=i}get type(){return rn.none}toString(){let t=[];for(let e=0;e0));l=s[l+3]);return a}slice(t,e,i){let r=this.buffer,o=new Uint16Array(e-t),s=0;for(let a=t,l=0;a=t&&et;case 1:return e<=t&&i>t;case 2:return i>t;case 4:return!0}}function Pf(n,t,e,i){for(var r;n.from==n.to||(e<1?n.from>=t:n.from>t)||(e>-1?n.to<=t:n.to0?a.length:-1;t!=c;t+=e){let d=a[t],u=l[t]+s.from;if(LB(r,i,u,u+d.length)){if(d instanceof Pa){if(o&ei.ExcludeBuffers)continue;let h=d.findChild(0,d.buffer.length,e,i-u,r);if(h>-1)return new ic(new NE(s,d,t,u),null,h)}else if(o&ei.IncludeAnonymous||!d.type.isAnonymous||HE(d)){let h;if(!(o&ei.IgnoreMounts)&&(h=tc.get(d))&&!h.overlay)return new n(h.tree,u,t,s);let f=new n(d,u,t,s);return o&ei.IncludeAnonymous||!f.type.isAnonymous?f:f.nextChild(e<0?d.children.length-1:0,e,i,r)}}}if(o&ei.IncludeAnonymous||!s.type.isAnonymous||(s.index>=0?t=s.index+e:t=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,i=0){let r;if(!(i&ei.IgnoreOverlays)&&(r=tc.get(this._tree))&&r.overlay){let o=t-this.from;for(let{from:s,to:a}of r.overlay)if((e>0?s<=o:s=o:a>o))return new n(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,e,i)}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 TB(n,t,e,i){let r=n.cursor(),o=[];if(!r.firstChild())return o;if(e!=null){for(let s=!1;!s;)if(s=r.type.is(e),!r.nextSibling())return o}for(;;){if(i!=null&&r.type.is(i))return o;if(r.type.is(t)&&o.push(r.node),!r.nextSibling())return i==null?o:[]}}function FE(n,t,e=t.length-1){for(let i=n;e>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(t[e]&&t[e]!=i.name)return!1;e--}}return!0}var NE=class{constructor(t,e,i,r){this.parent=t,this.buffer=e,this.index=i,this.start=r}},ic=class n extends Cv{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,i){super(),this.context=t,this._parent=e,this.index=i,this.type=t.buffer.set.types[t.buffer.buffer[i]]}child(t,e,i){let{buffer:r}=this.context,o=r.findChild(this.index+4,r.buffer[this.index+3],t,e-this.context.start,i);return o<0?null:new n(this.context,this,o)}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,i=0){if(i&ei.ExcludeBuffers)return null;let{buffer:r}=this.context,o=r.findChild(this.index+4,r.buffer[this.index+3],e>0?1:-1,t-this.context.start,e);return o<0?null:new n(this.context,this,o)}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 n(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 n(this.context,this._parent,t.findChild(e,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],e=[],{buffer:i}=this.context,r=this.index+4,o=i.buffer[this.index+3];if(o>r){let s=i.buffer[this.index+1];t.push(i.slice(r,o,s)),e.push(0)}return new ri(this.type,t,e,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}};function VB(n){if(!n.length)return null;let t=0,e=n[0];for(let o=1;oe.from||s.to=t){let a=new Wn(s.tree,s.overlay[0].from+o.from,-1,o);(r||(r=[i])).push(Pf(a,t,e,!1))}}return r?VB(r):i}var Kd=class{get name(){return this.type.name}constructor(t,e=0){if(this.mode=e,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,t instanceof Wn)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(let i=t._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return t?(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0):!1}yieldBuf(t,e){this.index=t;let{start:i,buffer:r}=this.buffer;return this.type=e||r.set.types[r.buffer[t]],this.from=i+r.buffer[t+1],this.to=i+r.buffer[t+2],!0}yield(t){return t?t instanceof Wn?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,e,i){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,e,i,this.mode));let{buffer:r}=this.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],t,e-this.buffer.start,i);return o<0?!1:(this.stack.push(this.index),this.yieldBuf(o))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,e,i=this.mode){return this.buffer?i&ei.ExcludeBuffers?!1:this.enterChild(1,t,e):this.yield(this._tree.enter(t,e,i))}parent(){if(!this.buffer)return this.yieldNode(this.mode&ei.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&ei.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode)):!1;let{buffer:e}=this.buffer,i=this.stack.length-1;if(t<0){let r=i<0?0:this.stack[i]+4;if(this.index!=r)return this.yieldBuf(e.findChild(r,this.index,-1,0,4))}else{let r=e.buffer[this.index+3];if(r<(i<0?e.buffer.length:e.buffer[this.stack[i]+3]))return this.yieldBuf(r)}return i<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let e,i,{buffer:r}=this;if(r){if(t>0){if(this.index-1)for(let o=e+t,s=t<0?-1:i._tree.children.length;o!=s;o+=t){let a=i._tree.children[o];if(this.mode&ei.IncludeAnonymous||a instanceof Pa||!a.type.isAnonymous||HE(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==r){if(r==this.index)return s;e=s,i=o+1;break e}r=this.stack[--o]}for(let r=i;r=0;o--){if(o<0)return FE(this._tree,t,r);let s=i[e.buffer[this.stack[o]]];if(!s.isAnonymous){if(t[r]&&t[r]!=s.name)return!1;r--}}return!0}};function HE(n){return n.children.some(t=>t instanceof Pa||!t.type.isAnonymous||HE(t))}function fne(n){var t;let{buffer:e,nodeSet:i,maxBufferLength:r=1024,reused:o=[],minRepeatType:s=i.types.length}=n,a=Array.isArray(e)?new PE(e,e.length):e,l=i.types,c=0,d=0;function u(j,K,J,ke,Ke,bt){let{id:nt,start:Te,end:Ct,size:vt}=a,Ot=d,ue=c;for(;vt<0;)if(a.next(),vt==-1){let mi=o[nt];J.push(mi),ke.push(Te-j);return}else if(vt==-3){c=nt;return}else if(vt==-4){d=nt;return}else throw new RangeError(`Unrecognized record size: ${vt}`);let we=l[nt],xe,je,St=Te-j;if(Ct-Te<=r&&(je=_(a.pos-K,Ke))){let mi=new Uint16Array(je.size-je.skip),Ut=a.pos-je.size,Si=mi.length;for(;a.pos>Ut;)Si=v(je.start,mi,Si);xe=new Pa(mi,Ct-je.start,i),St=je.start-j}else{let mi=a.pos-vt;a.next();let Ut=[],Si=[],kt=nt>=s?nt:-1,qo=0,hc=Ct;for(;a.pos>mi;)kt>=0&&a.id==kt&&a.size>=0?(a.end<=hc-r&&(m(Ut,Si,Te,qo,a.end,hc,kt,Ot,ue),qo=Ut.length,hc=a.end),a.next()):bt>2500?h(Te,mi,Ut,Si):u(Te,mi,Ut,Si,kt,bt+1);if(kt>=0&&qo>0&&qo-1&&qo>0){let ki=f(we,ue);xe=UE(we,Ut,Si,0,Ut.length,0,Ct-Te,ki,ki)}else xe=g(we,Ut,Si,Ct-Te,Ot-Ct,ue)}J.push(xe),ke.push(St)}function h(j,K,J,ke){let Ke=[],bt=0,nt=-1;for(;a.pos>K;){let{id:Te,start:Ct,end:vt,size:Ot}=a;if(Ot>4)a.next();else{if(nt>-1&&Ct=0;vt-=3)Te[Ot++]=Ke[vt],Te[Ot++]=Ke[vt+1]-Ct,Te[Ot++]=Ke[vt+2]-Ct,Te[Ot++]=Ot;J.push(new Pa(Te,Ke[2]-Ct,i)),ke.push(Ct-j)}}function f(j,K){return(J,ke,Ke)=>{let bt=0,nt=J.length-1,Te,Ct;if(nt>=0&&(Te=J[nt])instanceof ri){if(!nt&&Te.type==j&&Te.length==Ke)return Te;(Ct=Te.prop(Qe.lookAhead))&&(bt=ke[nt]+Te.length+Ct)}return g(j,J,ke,Ke,bt,K)}}function m(j,K,J,ke,Ke,bt,nt,Te,Ct){let vt=[],Ot=[];for(;j.length>ke;)vt.push(j.pop()),Ot.push(K.pop()+J-Ke);j.push(g(i.types[nt],vt,Ot,bt-Ke,Te-bt,Ct)),K.push(Ke-J)}function g(j,K,J,ke,Ke,bt,nt){if(bt){let Te=[Qe.contextHash,bt];nt=nt?[Te].concat(nt):[Te]}if(Ke>25){let Te=[Qe.lookAhead,Ke];nt=nt?[Te].concat(nt):[Te]}return new ri(j,K,J,ke,nt)}function _(j,K){let J=a.fork(),ke=0,Ke=0,bt=0,nt=J.end-r,Te={size:0,start:0,skip:0};e:for(let Ct=J.pos-j;J.pos>Ct;){let vt=J.size;if(J.id==K&&vt>=0){Te.size=ke,Te.start=Ke,Te.skip=bt,bt+=4,ke+=4,J.next();continue}let Ot=J.pos-vt;if(vt<0||Ot=s?4:0,we=J.start;for(J.next();J.pos>Ot;){if(J.size<0)if(J.size==-3)ue+=4;else break e;else J.id>=s&&(ue+=4);J.next()}Ke=we,ke+=vt,bt+=ue}return(K<0||ke==j)&&(Te.size=ke,Te.start=Ke,Te.skip=bt),Te.size>4?Te:void 0}function v(j,K,J){let{id:ke,start:Ke,end:bt,size:nt}=a;if(a.next(),nt>=0&&ke4){let Ct=a.pos-(nt-4);for(;a.pos>Ct;)J=v(j,K,J)}K[--J]=Te,K[--J]=bt-j,K[--J]=Ke-j,K[--J]=ke}else nt==-3?c=ke:nt==-4&&(d=ke);return J}let x=[],R=[];for(;a.pos>0;)u(n.start||0,n.bufferStart||0,x,R,-1,0);let V=(t=n.length)!==null&&t!==void 0?t:x.length?R[0]+x[0].length:0;return new ri(l[n.topID],x.reverse(),R.reverse(),V)}var AB=new WeakMap;function wv(n,t){if(!n.isAnonymous||t instanceof Pa||t.type!=n)return 1;let e=AB.get(t);if(e==null){e=1;for(let i of t.children){if(i.type!=n||!(i instanceof ri)){e=1;break}e+=wv(n,i)}AB.set(t,e)}return e}function UE(n,t,e,i,r,o,s,a,l){let c=0;for(let m=i;m=d)break;K+=J}if(R==V+1){if(K>d){let J=m[V];f(J.children,J.positions,0,J.children.length,g[V]+x);continue}u.push(m[V])}else{let J=g[R-1]+m[R-1].length-j;u.push(UE(n,m,g,V,R,j,J,null,l))}h.push(j+x-o)}}return f(t,e,i,r,0),(a||l)(u,h,s)}var OB=class{constructor(){this.map=new WeakMap}setBuffer(t,e,i){let r=this.map.get(t);r||this.map.set(t,r=new Map),r.set(e,i)}getBuffer(t,e){let i=this.map.get(t);return i&&i.get(e)}set(t,e){t instanceof ic?this.setBuffer(t.context.buffer,t.index,e):t instanceof Wn&&this.map.set(t.tree,e)}get(t){return t instanceof ic?this.getBuffer(t.context.buffer,t.index):t instanceof Wn?this.map.get(t.tree):void 0}cursorSet(t,e){t.buffer?this.setBuffer(t.buffer.buffer,t.index,e):this.map.set(t.tree,e)}cursorGet(t){return t.buffer?this.getBuffer(t.buffer.buffer,t.index):this.map.get(t.tree)}},As=class n{constructor(t,e,i,r,o=!1,s=!1){this.from=t,this.to=e,this.tree=i,this.offset=r,this.open=(o?1:0)|(s?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(t,e=[],i=!1){let r=[new n(0,t.length,t,0,!1,i)];for(let o of e)o.to>t.length&&r.push(o);return r}static applyChanges(t,e,i=128){if(!e.length)return t;let r=[],o=1,s=t.length?t[0]:null;for(let a=0,l=0,c=0;;a++){let d=a=i)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 n(f,m,h.tree,h.offset+c,a>0,!!d)}if(h&&r.push(h),s.to>u)break;s=onew Un(r.from,r.to)):[new Un(0,0)]:[new Un(0,t.length)],this.createParse(t,e||[],i)}parse(t,e,i){let r=this.startParse(t,e,i);for(;;){let o=r.advance();if(o)return o}}},VE=class{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)}};function HTe(n){return(t,e,i,r)=>new $E(t,n,e,i,r)}var Dv=class{constructor(t,e,i,r,o){this.parser=t,this.parse=e,this.overlay=i,this.target=r,this.from=o}};function RB(n){if(!n.length||n.some(t=>t.from>=t.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(n))}var jE=class{constructor(t,e,i,r,o,s,a){this.parser=t,this.predicate=e,this.mounts=i,this.index=r,this.start=o,this.target=s,this.prev=a,this.depth=0,this.ranges=[]}},BE=new Qe({perNode:!0}),$E=class{constructor(t,e,i,r,o){this.nest=e,this.input=i,this.fragments=r,this.ranges=o,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=t}advance(){if(this.baseParse){let i=this.baseParse.advance();if(!i)return null;if(this.baseParse=null,this.baseTree=i,this.startInner(),this.stoppedAt!=null)for(let r of this.inner)r.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let i=this.baseTree;return this.stoppedAt!=null&&(i=new ri(i.type,i.children,i.positions,i.length,i.propValues.concat([[BE,this.stoppedAt]]))),i}let t=this.inner[this.innerDone],e=t.parse.advance();if(e){this.innerDone++;let i=Object.assign(Object.create(null),t.target.props);i[Qe.mounted.id]=new tc(e,t.overlay,t.parser),t.target.props=i}return null}get parsedPos(){if(this.baseParse)return 0;let t=this.input.length;for(let e=this.innerDone;e=this.stoppedAt)a=!1;else if(t.hasNode(r)){if(e){let c=e.mounts.find(d=>d.frag.from<=r.from&&d.frag.to>=r.to&&d.mount.overlay);if(c)for(let d of c.mount.overlay){let u=d.from+c.pos,h=d.to+c.pos;u>=r.from&&h<=r.to&&!e.ranges.some(f=>f.fromu)&&e.ranges.push({from:u,to:h})}}a=!1}else if(i&&(s=mne(i.ranges,r.from,r.to)))a=s!=2;else if(!r.type.isAnonymous&&(o=this.nest(r,this.input))&&(r.fromnew Un(u.from-r.from,u.to-r.from)):null,r.tree,d.length?d[0].from:r.from)),o.overlay?d.length&&(i={ranges:d,depth:0,prev:i}):a=!1}}else if(e&&(l=e.predicate(r))&&(l===!0&&(l=new Un(r.from,r.to)),l.from=0&&e.ranges[c].to==l.from?e.ranges[c]={from:e.ranges[c].from,to:l.to}:e.ranges.push(l)}if(a&&r.firstChild())e&&e.depth++,i&&i.depth++;else for(;!r.nextSibling();){if(!r.parent())break e;if(e&&!--e.depth){let c=FB(this.ranges,e.ranges);c.length&&(RB(c),this.inner.splice(e.index,0,new Dv(e.parser,e.parser.startParse(this.input,NB(e.mounts,c),c),e.ranges.map(d=>new Un(d.from-e.start,d.to-e.start)),e.target,c[0].from))),e=e.prev}i&&!--i.depth&&(i=i.prev)}}}};function mne(n,t,e){for(let i of n){if(i.from>=e)break;if(i.to>t)return i.from<=t&&i.to>=e?2:1}return 0}function PB(n,t,e,i,r,o){if(t=t&&e.enter(i,1,ei.IgnoreOverlays|ei.ExcludeBuffers)||e.next(!1)||(this.done=!0)}hasNode(t){if(this.moveTo(t.from),!this.done&&this.cursor.from+this.offset==t.from&&this.cursor.tree)for(let e=this.cursor.tree;;){if(e==t.tree)return!0;if(e.children.length&&e.positions[0]==0&&e.children[0]instanceof ri)e=e.children[0];else break}return!1}},zE=class{constructor(t){var e;if(this.fragments=t,this.curTo=0,this.fragI=0,t.length){let i=this.curFrag=t[0];this.curTo=(e=i.tree.prop(BE))!==null&&e!==void 0?e:i.to,this.inner=new xv(i.tree,-i.offset)}else this.curFrag=this.inner=null}hasNode(t){for(;this.curFrag&&t.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=t.from&&this.curTo>=t.to&&this.inner.hasNode(t)}nextFrag(){var t;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let e=this.curFrag=this.fragments[this.fragI];this.curTo=(t=e.tree.prop(BE))!==null&&t!==void 0?t:e.to,this.inner=new xv(e.tree,-e.offset)}}findMounts(t,e){var i;let r=[];if(this.inner){this.inner.cursor.moveTo(t,1);for(let o=this.inner.cursor.node;o;o=o.parent){let s=(i=o.tree)===null||i===void 0?void 0:i.prop(Qe.mounted);if(s&&s.parser==e)for(let a=this.fragI;a=o.to)break;l.tree==this.curFrag.tree&&r.push({frag:l,pos:o.from-l.offset,mount:s})}}}return r}};function FB(n,t){let e=null,i=t;for(let r=1,o=0;r=a)break;l.to<=s||(e||(i=e=t.slice()),l.froma&&e.splice(o+1,0,new Un(a,l.to))):l.to>a?e[o--]=new Un(a,l.to):e.splice(o--,1))}}return i}function gne(n,t,e,i){let r=0,o=0,s=!1,a=!1,l=-1e9,c=[];for(;;){let d=r==n.length?1e9:s?n[r].to:n[r].from,u=o==t.length?1e9:a?t[o].to:t[o].from;if(s!=a){let h=Math.max(l,e),f=Math.min(d,u,i);hnew Un(h.from+i,h.to+i)),u=gne(t,d,l,c);for(let h=0,f=l;;h++){let m=h==u.length,g=m?c:u[h].from;if(g>f&&e.push(new As(f,g,r.tree,-s,o.from>=f||o.openStart,o.to<=g||o.openEnd)),m)break;f=u[h].to}}else e.push(new As(l,c,r.tree,-s,o.from>=s||o.openStart,o.to<=a||o.openEnd))}return e}var _ne=0,ao=class n{constructor(t,e,i,r){this.name=t,this.set=e,this.base=i,this.modified=r,this.id=_ne++}toString(){let{name:t}=this;for(let e of this.modified)e.name&&(t=`${e.name}(${t})`);return t}static define(t,e){let i=typeof t=="string"?t:"?";if(t instanceof n&&(e=t),e?.base)throw new Error("Can not derive from a modified tag");let r=new n(i,[],null,[]);if(r.set.push(r),e)for(let o of e.set)r.set.push(o);return r}static defineModifier(t){let e=new Iv(t);return i=>i.modified.indexOf(e)>-1?i:Iv.get(i.base||i,i.modified.concat(e).sort((r,o)=>r.id-o.id))}},bne=0,Iv=class n{constructor(t){this.name=t,this.instances=[],this.id=bne++}static get(t,e){if(!e.length)return t;let i=e[0].instances.find(a=>a.base==t&&vne(e,a.modified));if(i)return i;let r=[],o=new ao(t.name,r,t,e);for(let a of e)a.instances.push(o);let s=yne(e);for(let a of t.set)if(!a.modified.length)for(let l of s)r.push(n.get(a,l));return o}};function vne(n,t){return n.length==t.length&&n.every((e,i)=>e==t[i])}function yne(n){let t=[[]];for(let e=0;ei.length-e.length)}function Mv(n){let t=Object.create(null);for(let e in n){let i=n[e];Array.isArray(i)||(i=[i]);for(let r of e.split(" "))if(r){let o=[],s=2,a=r;for(let u=0;;){if(a=="..."&&u>0&&u+3==r.length){s=1;break}let h=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!h)throw new RangeError("Invalid path: "+r);if(o.push(h[0]=="*"?"":h[0][0]=='"'?JSON.parse(h[0]):h[0]),u+=h[0].length,u==r.length)break;let f=r[u++];if(u==r.length&&f=="!"){s=0;break}if(f!="/")throw new RangeError("Invalid path: "+r);a=r.slice(u)}let l=o.length-1,c=o[l];if(!c)throw new RangeError("Invalid path: "+r);let d=new Xd(i,s,l>0?o.slice(0,l):null);t[c]=d.sort(t[c])}}return $B.add(t)}var $B=new Qe,Xd=class{constructor(t,e,i,r){this.tags=t,this.mode=e,this.context=i,this.next=r}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(t){return!t||t.depth{let s=r;for(let a of o)for(let l of a.set){let c=e[l.id];if(c){s=s?s+" "+c:c;break}}return s},scope:i}}function wne(n,t){let e=null;for(let i of n){let r=i.style(t);r&&(e=e?e+" "+r:r)}return e}function zB(n,t,e,i=0,r=n.length){let o=new YE(i,Array.isArray(t)?t:[t],e);o.highlightRange(n.cursor(),i,r,"",o.highlighters),o.flush(r)}var YE=class{constructor(t,e,i){this.at=t,this.highlighters=e,this.span=i,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,i,r,o){let{type:s,from:a,to:l}=t;if(a>=i||l<=e)return;s.isTop&&(o=this.highlighters.filter(f=>!f.scope||f.scope(s)));let c=r,d=Cne(t)||Xd.empty,u=wne(o,d.tags);if(u&&(c&&(c+=" "),c+=u,d.mode==1&&(r+=(r?" ":"")+u)),this.startSpan(Math.max(e,a),c),d.opaque)return;let h=t.tree&&t.tree.prop(Qe.mounted);if(h&&h.overlay){let f=t.node.enter(h.overlay[0].from+a,1),m=this.highlighters.filter(_=>!_.scope||_.scope(h.tree.type)),g=t.firstChild();for(let _=0,v=a;;_++){let x=_=R||!t.nextSibling())););if(!x||R>i)break;v=x.to+a,v>e&&(this.highlightRange(f.cursor(),Math.max(e,x.from+a),Math.min(i,v),"",m),this.startSpan(Math.min(i,v),c))}g&&t.parent()}else if(t.firstChild()){h&&(r="");do if(!(t.to<=e)){if(t.from>=i)break;this.highlightRange(t,e,i,r,o),this.startSpan(Math.min(i,t.to),c)}while(t.nextSibling());t.parent()}}};function Cne(n){let t=n.type.prop($B);for(;t&&t.context&&!n.matchContext(t.context);)t=t.next;return t||null}var he=ao.define,Sv=he(),Fa=he(),jB=he(Fa),BB=he(Fa),Na=he(),kv=he(Na),WE=he(Na),Uo=he(),nc=he(Uo),zo=he(),Ho=he(),qE=he(),Ff=he(qE),Ev=he(),te={comment:Sv,lineComment:he(Sv),blockComment:he(Sv),docComment:he(Sv),name:Fa,variableName:he(Fa),typeName:jB,tagName:he(jB),propertyName:BB,attributeName:he(BB),className:he(Fa),labelName:he(Fa),namespace:he(Fa),macroName:he(Fa),literal:Na,string:kv,docString:he(kv),character:he(kv),attributeValue:he(kv),number:WE,integer:he(WE),float:he(WE),bool:he(Na),regexp:he(Na),escape:he(Na),color:he(Na),url:he(Na),keyword:zo,self:he(zo),null:he(zo),atom:he(zo),unit:he(zo),modifier:he(zo),operatorKeyword:he(zo),controlKeyword:he(zo),definitionKeyword:he(zo),moduleKeyword:he(zo),operator:Ho,derefOperator:he(Ho),arithmeticOperator:he(Ho),logicOperator:he(Ho),bitwiseOperator:he(Ho),compareOperator:he(Ho),updateOperator:he(Ho),definitionOperator:he(Ho),typeOperator:he(Ho),controlOperator:he(Ho),punctuation:qE,separator:he(qE),bracket:Ff,angleBracket:he(Ff),squareBracket:he(Ff),paren:he(Ff),brace:he(Ff),content:Uo,heading:nc,heading1:he(nc),heading2:he(nc),heading3:he(nc),heading4:he(nc),heading5:he(nc),heading6:he(nc),contentSeparator:he(Uo),list:he(Uo),quote:he(Uo),emphasis:he(Uo),strong:he(Uo),link:he(Uo),monospace:he(Uo),strikethrough:he(Uo),inserted:he(),deleted:he(),changed:he(),invalid:he(),meta:Ev,documentMeta:he(Ev),annotation:he(Ev),processingInstruction:he(Ev),definition:ao.defineModifier("definition"),constant:ao.defineModifier("constant"),function:ao.defineModifier("function"),standard:ao.defineModifier("standard"),local:ao.defineModifier("local"),special:ao.defineModifier("special")};for(let n in te){let t=te[n];t instanceof ao&&(t.name=n)}var YTe=GE([{tag:te.link,class:"tok-link"},{tag:te.heading,class:"tok-heading"},{tag:te.emphasis,class:"tok-emphasis"},{tag:te.strong,class:"tok-strong"},{tag:te.keyword,class:"tok-keyword"},{tag:te.atom,class:"tok-atom"},{tag:te.bool,class:"tok-bool"},{tag:te.url,class:"tok-url"},{tag:te.labelName,class:"tok-labelName"},{tag:te.inserted,class:"tok-inserted"},{tag:te.deleted,class:"tok-deleted"},{tag:te.literal,class:"tok-literal"},{tag:te.string,class:"tok-string"},{tag:te.number,class:"tok-number"},{tag:[te.regexp,te.escape,te.special(te.string)],class:"tok-string2"},{tag:te.variableName,class:"tok-variableName"},{tag:te.local(te.variableName),class:"tok-variableName tok-local"},{tag:te.definition(te.variableName),class:"tok-variableName tok-definition"},{tag:te.special(te.variableName),class:"tok-variableName2"},{tag:te.definition(te.propertyName),class:"tok-propertyName tok-definition"},{tag:te.typeName,class:"tok-typeName"},{tag:te.namespace,class:"tok-namespace"},{tag:te.className,class:"tok-className"},{tag:te.macroName,class:"tok-macroName"},{tag:te.propertyName,class:"tok-propertyName"},{tag:te.operator,class:"tok-operator"},{tag:te.comment,class:"tok-comment"},{tag:te.meta,class:"tok-meta"},{tag:te.invalid,class:"tok-invalid"},{tag:te.punctuation,class:"tok-punctuation"}]);var QE,Jd=new Qe;function Dne(n){return me.define({combine:n?t=>t.concat(n):void 0})}var xne=new Qe,Wo=(()=>{class n{constructor(e,i,r=[],o=""){this.data=e,this.name=o,Di.prototype.hasOwnProperty("tree")||Object.defineProperty(Di.prototype,"tree",{get(){return Oi(this)}}),this.parser=i,this.extension=[La.of(this),Di.languageData.of((s,a,l)=>{let c=HB(s,a,l),d=c.type.prop(Jd);if(!d)return[];let u=s.facet(d),h=c.type.prop(xne);if(h){let f=c.resolve(a-c.from,l);for(let m of h)if(m.test(f,s)){let g=s.facet(m.facet);return m.type=="replace"?g:g.concat(u)}}return u})].concat(r)}isActiveAt(e,i,r=-1){return HB(e,i,r).type.prop(Jd)==this.data}findRegions(e){let i=e.facet(La);if(i?.data==this.data)return[{from:0,to:e.doc.length}];if(!i||!i.allowsNesting)return[];let r=[],o=(s,a)=>{if(s.prop(Jd)==this.data){r.push({from:a,to:a+s.length});return}let l=s.prop(Qe.mounted);if(l){if(l.tree.prop(Jd)==this.data){if(l.overlay)for(let c of l.overlay)r.push({from:c.from+a,to:c.to+a});else r.push({from:a,to:a+s.length});return}else if(l.overlay){let c=r.length;if(o(l.tree,l.overlay[0].from+a),r.length>c)return}}for(let c=0;ci.isTop?e:void 0)]}),t.name)}configure(t,e){return new n(this.data,this.parser.configure(t),e||this.name)}get allowsNesting(){return this.parser.hasWrappers()}};function Oi(n){let t=n.field(Wo.state,!1);return t?t.tree:ri.empty}var JE=class{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 i=this.cursorPos-this.string.length;return t=this.cursorPos?this.doc.sliceString(t,e):this.string.slice(t-i,e-i)}},Nf=null,eI=class n{constructor(t,e,i=[],r,o,s,a,l){this.parser=t,this.state=e,this.fragments=i,this.tree=r,this.treeLen=o,this.viewport=s,this.skipped=a,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(t,e,i){return new n(t,e,[],ri.empty,0,i,[],null)}startParse(){return this.parser.startParse(new JE(this.state.doc),this.fragments)}work(t,e){return e!=null&&e>=this.state.doc.length&&(e=void 0),this.tree!=ri.empty&&this.isDone(e??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var i;if(typeof t=="number"){let r=Date.now()+t;t=()=>Date.now()>r}for(this.parse||(this.parse=this.startParse()),e!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&e=this.treeLen&&((this.parse.stoppedAt==null||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(As.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let e=Nf;Nf=this;try{return t()}finally{Nf=e}}withoutTempSkipped(t){for(let e;e=this.tempSkipped.pop();)t=UB(t,e.from,e.to);return t}changes(t,e){let{fragments:i,tree:r,treeLen:o,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})),i=As.applyChanges(i,l),r=ri.empty,o=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=UB(this.fragments,r,o),this.skipped.splice(i--,1))}return this.skipped.length>=e?!1:(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 Zd{createParse(e,i,r){let o=r[0].from,s=r[r.length-1].to;return{parsedPos:o,advance(){let l=Nf;if(l){for(let c of r)l.tempSkipped.push(c);t&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,t]):t)}return this.parsedPos=s,new ri(rn.none,[],[],s-o)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let e=this.fragments;return this.treeLen>=t&&e.length&&e[0].from==0&&e[0].to>=t}static get(){return Nf}};function UB(n,t,e){return As.applyChanges(n,[{fromA:t,toA:e,fromB:t,toB:e}])}var Vf=class n{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),i=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),e.viewport.to);return e.work(20,i)||e.takeTree(),new n(e)}static init(t){let e=Math.min(3e3,t.doc.length),i=eI.create(t.facet(La).parser,t,{from:0,to:e});return i.work(20,e)||i.takeTree(),new n(i)}};Wo.state=zt.define({create:Vf.init,update(n,t){for(let e of t.effects)if(e.is(Wo.setState))return e.value;return t.startState.facet(La)!=t.state.facet(La)?Vf.init(t.state):n.apply(t)}});var KB=n=>{let t=setTimeout(()=>n(),500);return()=>clearTimeout(t)};typeof requestIdleCallback<"u"&&(KB=n=>{let t=-1,e=setTimeout(()=>{t=requestIdleCallback(n,{timeout:400})},100);return()=>t<0?clearTimeout(e):cancelIdleCallback(t)});var KE=typeof navigator<"u"&&(!((QE=navigator.scheduling)===null||QE===void 0)&&QE.isInputPending)?()=>navigator.scheduling.isInputPending():null,Sne=ni.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(Wo.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(Wo.state);(e.tree!=e.context.tree||!e.context.isDone(t.doc.length))&&(this.working=KB(this.work))}work(t){this.working=null;let e=Date.now();if(this.chunkEndr+1e3,l=o.context.work(()=>KE&&KE()||Date.now()>s,r+(a?0:1e5));this.chunkBudget-=Date.now()-e,(l||this.chunkBudget<=0)&&(o.context.takeTree(),this.view.dispatch({effects:Wo.setState.of(new Vf(o.context))})),this.chunkBudget>0&&!(l&&!a)&&this.scheduleWork(),this.checkAsyncSchedule(o.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(()=>this.scheduleWork()).catch(e=>nn(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()}}}),La=me.define({combine(n){return n.length?n[0]:null},enables:n=>[Wo.state,Sne,Re.contentAttributes.compute([n],t=>{let e=t.facet(n);return e&&e.name?{"data-language":e.name}:{}})]}),Av=class{constructor(t,e=[]){this.language=t,this.support=e,this.extension=[t,e]}},WB=class n{constructor(t,e,i,r,o,s=void 0){this.name=t,this.alias=e,this.extensions=i,this.filename=r,this.loadFunc=o,this.support=s,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(t=>this.support=t,t=>{throw this.loading=null,t}))}static of(t){let{load:e,support:i}=t;if(!e){if(!i)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");e=()=>Promise.resolve(i)}return new n(t.name,(t.alias||[]).concat(t.name).map(r=>r.toLowerCase()),t.extensions||[],t.filename,e,i)}static matchFilename(t,e){for(let r of t)if(r.filename&&r.filename.test(e))return r;let i=/\.([^.]+)$/.exec(e);if(i){for(let r of t)if(r.extensions.indexOf(i[1])>-1)return r}return null}static matchLanguageName(t,e,i=!0){e=e.toLowerCase();for(let r of t)if(r.alias.some(o=>o==e))return r;if(i)for(let r of t)for(let o of r.alias){let s=e.indexOf(o);if(s>-1&&(o.length>2||!/\w/.test(e[s-1])&&!/\w/.test(e[s+o.length])))return r}return null}},kne=me.define(),tu=me.define({combine:n=>{if(!n.length)return"  ";let t=n[0];if(!t||/\S/.test(t)||Array.from(t).some(e=>e!=t[0]))throw new Error("Invalid indent unit: "+JSON.stringify(n[0]));return t}});function jf(n){let t=n.facet(tu);return t.charCodeAt(0)==9?n.tabSize*t.length:t.length}function iu(n,t){let e="",i=n.tabSize,r=n.facet(tu)[0];if(r=="	"){for(;t>=i;)e+="	",t-=i;r=" "}for(let o=0;o=t?Ine(n,e,t):null}var rc=class{constructor(t,e={}){this.state=t,this.options=e,this.unit=jf(t)}lineAt(t,e=1){let i=this.state.doc.lineAt(t),{simulateBreak:r,simulateDoubleBreak:o}=this.options;return r!=null&&r>=i.from&&r<=i.to?o&&r==t?{text:"",from:t}:(e<0?r-1&&(o+=s-this.countColumn(i,i.search(/\S|$/))),o}countColumn(t,e=t.length){return Es(t,this.state.tabSize,e)}lineIndent(t,e=1){let{text:i,from:r}=this.lineAt(t,e),o=this.options.overrideIndentation;if(o){let s=o(r);if(s>-1)return s}return this.countColumn(i,i.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}},Ene=new Qe;function Ine(n,t,e){let i=t.resolveStack(e),r=t.resolveInner(e,-1).resolve(e,0).enterUnfinishedNodesBefore(e);if(r!=i.node){let o=[];for(let s=r;s&&!(s.from==i.node.from&&s.type==i.node.type);s=s.parent)o.push(s);for(let s=o.length-1;s>=0;s--)i={node:o[s],next:i}}return ZB(i,n,e)}function ZB(n,t,e){for(let i=n;i;i=i.next){let r=Tne(i.node);if(r)return r(tI.create(t,e,i))}return 0}function Mne(n){return n.pos==n.options.simulateBreak&&n.options.simulateDoubleBreak}function Tne(n){let t=n.type.prop(Ene);if(t)return t;let e=n.firstChild,i;if(e&&(i=e.type.prop(Qe.closedBy))){let r=n.lastChild,o=r&&i.indexOf(r.name)>-1;return s=>XB(s,!0,1,void 0,o&&!Mne(s)?r.from:void 0)}return n.parent==null?Ane:null}function Ane(){return 0}var tI=class n extends rc{constructor(t,e,i){super(t.state,t.options),this.base=t,this.pos=e,this.context=i}get node(){return this.context.node}static create(t,e,i){return new n(t,e,i)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(t){let e=this.state.doc.lineAt(t.from);for(;;){let i=t.resolve(e.from);for(;i.parent&&i.parent.from==i.from;)i=i.parent;if(One(i,t))break;e=this.state.doc.lineAt(i.from)}return this.lineIndent(e.from)}continue(){return ZB(this.context.next,this.base,this.pos)}};function One(n,t){for(let e=t;e;e=e.parent)if(n==e)return!0;return!1}function Rne(n){let t=n.node,e=t.childAfter(t.from),i=t.lastChild;if(!e)return null;let r=n.options.simulateBreak,o=n.state.doc.lineAt(e.from),s=r==null||r<=o.from?o.to:Math.min(o.to,r);for(let a=e.to;;){let l=t.childAfter(a);if(!l||l==i)return null;if(!l.type.isSkipped){if(l.from>=s)return null;let c=/^ */.exec(o.text.slice(e.to-o.from))[0].length;return{from:e.from,to:e.to+c}}a=l.to}}function e1e({closing:n,align:t=!0,units:e=1}){return i=>XB(i,t,e,n)}function XB(n,t,e,i,r){let o=n.textAfter,s=o.match(/^\s*/)[0].length,a=i&&o.slice(s,s+i.length)==i||r==n.pos+s,l=t?Rne(n):null;return l?a?n.column(l.from):n.column(l.to):n.baseIndent+(a?0:n.unit*e)}var t1e=n=>n.baseIndent;function i1e({except:n,units:t=1}={}){return e=>{let i=n&&n.test(e.textAfter);return e.baseIndent+(i?0:t*e.unit)}}var Pne=200;function Fv(){return Di.transactionFilter.of(n=>{if(!n.docChanged||!n.isUserEvent("input.type")&&!n.isUserEvent("input.complete"))return n;let t=n.startState.languageDataAt("indentOnInput",n.startState.selection.main.head);if(!t.length)return n;let e=n.newDoc,{head:i}=n.newSelection.main,r=e.lineAt(i);if(i>r.from+Pne)return n;let o=e.sliceString(r.from,i);if(!t.some(c=>c.test(o)))return n;let{state:s}=n,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=Pv(s,d.from);if(u==null)continue;let h=/^\s*/.exec(d.text)[0],f=iu(s,u);h!=f&&l.push({from:d.from,to:d.from+h.length,insert:f})}return l.length?[n,{changes:l,sequential:!0}]:n})}var Fne=me.define(),Nne=new Qe;function n1e(n){let t=n.firstChild,e=n.lastChild;return t&&t.toe)continue;if(o&&a.from=t&&c.to>e&&(o=c)}}return o}function Vne(n){let t=n.lastChild;return t&&t.to==n.to&&t.type.isError}function Ov(n,t,e){for(let i of n.facet(Fne)){let r=i(n,t,e);if(r)return r}return Lne(n,t,e)}function JB(n,t){let e=t.mapPos(n.from,1),i=t.mapPos(n.to,-1);return e>=i?void 0:{from:e,to:i}}var Nv=Ue.define({map:JB}),Bf=Ue.define({map:JB});function e$(n){let t=[];for(let{head:e}of n.state.selection.ranges)t.some(i=>i.from<=e&&i.to>=e)||t.push(n.lineBlockAt(e));return t}var oc=zt.define({create(){return ve.none},update(n,t){n=n.map(t.changes);for(let e of t.effects)if(e.is(Nv)&&!jne(n,e.value.from,e.value.to)){let{preparePlaceholder:i}=t.state.facet(aI),r=i?ve.replace({widget:new iI(i(t.state,e.value))}):YB;n=n.update({add:[r.range(e.value.from,e.value.to)]})}else e.is(Bf)&&(n=n.update({filter:(i,r)=>e.value.from!=i||e.value.to!=r,filterFrom:e.value.from,filterTo:e.value.to}));if(t.selection){let e=!1,{head:i}=t.selection.main;n.between(i,i,(r,o)=>{ri&&(e=!0)}),e&&(n=n.update({filterFrom:i,filterTo:i,filter:(r,o)=>o<=i||r>=i}))}return n},provide:n=>Re.decorations.from(n),toJSON(n,t){let e=[];return n.between(0,t.doc.length,(i,r)=>{e.push(i,r)}),e},fromJSON(n){if(!Array.isArray(n)||n.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let e=0;e{(!r||r.from>o)&&(r={from:o,to:s})}),r}function jne(n,t,e){let i=!1;return n.between(t,t,(r,o)=>{r==t&&o==e&&(i=!0)}),i}function t$(n,t){return n.field(oc,!1)?t:t.concat(Ue.appendConfig.of(r$()))}var Bne=n=>{for(let t of e$(n)){let e=Ov(n.state,t.from,t.to);if(e)return n.dispatch({effects:t$(n.state,[Nv.of(e),i$(n,e)])}),!0}return!1},$ne=n=>{if(!n.state.field(oc,!1))return!1;let t=[];for(let e of e$(n)){let i=Rv(n.state,e.from,e.to);i&&t.push(Bf.of(i),i$(n,i,!1))}return t.length&&n.dispatch({effects:t}),t.length>0};function i$(n,t,e=!0){let i=n.state.doc.lineAt(t.from).number,r=n.state.doc.lineAt(t.to).number;return Re.announce.of(`${n.state.phrase(e?"Folded lines":"Unfolded lines")} ${i} ${n.state.phrase("to")} ${r}.`)}var zne=n=>{let{state:t}=n,e=[];for(let i=0;i{let t=n.state.field(oc,!1);if(!t||!t.size)return!1;let e=[];return t.between(0,n.state.doc.length,(i,r)=>{e.push(Bf.of({from:i,to:r}))}),n.dispatch({effects:e}),!0};var n$=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:Bne},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:$ne},{key:"Ctrl-Alt-[",run:zne},{key:"Ctrl-Alt-]",run:Hne}],Une={placeholderDOM:null,preparePlaceholder:null,placeholderText:"\u2026"},aI=me.define({combine(n){return fn(n,Une)}});function r$(n){let t=[oc,Yne];return n&&t.push(aI.of(n)),t}function o$(n,t){let{state:e}=n,i=e.facet(aI),r=s=>{let a=n.lineBlockAt(n.posAtDOM(s.target)),l=Rv(n.state,a.from,a.to);l&&n.dispatch({effects:Bf.of(l)}),s.preventDefault()};if(i.placeholderDOM)return i.placeholderDOM(n,r,t);let o=document.createElement("span");return o.textContent=i.placeholderText,o.setAttribute("aria-label",e.phrase("folded code")),o.title=e.phrase("unfold"),o.className="cm-foldPlaceholder",o.onclick=r,o}var YB=ve.replace({widget:new class extends In{toDOM(n){return o$(n,null)}}}),iI=class extends In{constructor(t){super(),this.value=t}eq(t){return this.value==t.value}toDOM(t){return o$(t,this.value)}},Wne={openText:"\u2304",closedText:"\u203A",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1},Lf=class extends hr{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 s$(n={}){let t=Object.assign(Object.assign({},Wne),n),e=new Lf(t,!0),i=new Lf(t,!1),r=ni.fromClass(class{constructor(s){this.from=s.viewport.from,this.markers=this.buildMarkers(s)}update(s){(s.docChanged||s.viewportChanged||s.startState.facet(La)!=s.state.facet(La)||s.startState.field(oc,!1)!=s.state.field(oc,!1)||Oi(s.startState)!=Oi(s.state)||t.foldingChanged(s))&&(this.markers=this.buildMarkers(s.view))}buildMarkers(s){let a=new cr;for(let l of s.viewportLineBlocks){let c=Rv(s.state,l.from,l.to)?i:Ov(s.state,l.from,l.to)?e:null;c&&a.add(l.from,l.from,c)}return a.finish()}}),{domEventHandlers:o}=t;return[r,RE({class:"cm-foldGutter",markers(s){var a;return((a=s.plugin(r))===null||a===void 0?void 0:a.markers)||Gt.empty},initialSpacer(){return new Lf(t,!1)},domEventHandlers:Object.assign(Object.assign({},o),{click:(s,a,l)=>{if(o.click&&o.click(s,a,l))return!0;let c=Rv(s.state,a.from,a.to);if(c)return s.dispatch({effects:Bf.of(c)}),!0;let d=Ov(s.state,a.from,a.to);return d?(s.dispatch({effects:Nv.of(d)}),!0):!1}})}),r$()]}var Yne=Re.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"}}),eu=class n{constructor(t,e){this.specs=t;let i;function r(a){let l=Ar.newName();return(i||(i=Object.create(null)))["."+l]=a,l}let o=typeof e.all=="string"?e.all:e.all?r(e.all):void 0,s=e.scope;this.scope=s instanceof Wo?a=>a.prop(Jd)==s.data:s?a=>a==s:void 0,this.style=GE(t.map(a=>({tag:a.tag,class:a.class||r(Object.assign({},a,{tag:null}))})),{all:o}).style,this.module=i?new Ar(i):null,this.themeType=e.themeType}static define(t,e){return new n(t,e||{})}},nI=me.define(),a$=me.define({combine(n){return n.length?[n[0]]:null}});function ZE(n){let t=n.facet(nI);return t.length?t:n.facet(a$)}function Lv(n,t){let e=[qne],i;return n instanceof eu&&(n.module&&e.push(Re.styleModule.of(n.module)),i=n.themeType),t?.fallback?e.push(a$.of(n)):i?e.push(nI.computeN([Re.darkTheme],r=>r.facet(Re.darkTheme)==(i=="dark")?[n]:[])):e.push(nI.of(n)),e}var rI=class{constructor(t){this.markCache=Object.create(null),this.tree=Oi(t.state),this.decorations=this.buildDeco(t,ZE(t.state)),this.decoratedTo=t.viewport.to}update(t){let e=Oi(t.state),i=ZE(t.state),r=i!=ZE(t.startState),{viewport:o}=t.view,s=t.changes.mapPos(this.decoratedTo,1);e.length=o.to?(this.decorations=this.decorations.map(t.changes),this.decoratedTo=s):(e!=this.tree||t.viewportChanged||r)&&(this.tree=e,this.decorations=this.buildDeco(t.view,i),this.decoratedTo=o.to)}buildDeco(t,e){if(!e||!this.tree.length)return ve.none;let i=new cr;for(let{from:r,to:o}of t.visibleRanges)zB(this.tree,e,(s,a,l)=>{i.add(s,a,this.markCache[l]||(this.markCache[l]=ve.mark({class:l})))},r,o);return i.finish()}},qne=Tr.high(ni.fromClass(rI,{decorations:n=>n.decorations})),l$=eu.define([{tag:te.meta,color:"#404740"},{tag:te.link,textDecoration:"underline"},{tag:te.heading,textDecoration:"underline",fontWeight:"bold"},{tag:te.emphasis,fontStyle:"italic"},{tag:te.strong,fontWeight:"bold"},{tag:te.strikethrough,textDecoration:"line-through"},{tag:te.keyword,color:"#708"},{tag:[te.atom,te.bool,te.url,te.contentSeparator,te.labelName],color:"#219"},{tag:[te.literal,te.inserted],color:"#164"},{tag:[te.string,te.deleted],color:"#a11"},{tag:[te.regexp,te.escape,te.special(te.string)],color:"#e40"},{tag:te.definition(te.variableName),color:"#00f"},{tag:te.local(te.variableName),color:"#30a"},{tag:[te.typeName,te.namespace],color:"#085"},{tag:te.className,color:"#167"},{tag:[te.special(te.variableName),te.macroName],color:"#256"},{tag:te.definition(te.propertyName),color:"#00c"},{tag:te.comment,color:"#940"},{tag:te.invalid,color:"#f00"}]),Gne=Re.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),c$=1e4,d$="()[]{}",u$=me.define({combine(n){return fn(n,{afterCursor:!0,brackets:d$,maxScanDistance:c$,renderMatch:Zne})}}),Qne=ve.mark({class:"cm-matchingBracket"}),Kne=ve.mark({class:"cm-nonmatchingBracket"});function Zne(n){let t=[],e=n.matched?Qne:Kne;return t.push(e.range(n.start.from,n.start.to)),n.end&&t.push(e.range(n.end.from,n.end.to)),t}var Xne=zt.define({create(){return ve.none},update(n,t){if(!t.docChanged&&!t.selection)return n;let e=[],i=t.state.facet(u$);for(let r of t.state.selection.ranges){if(!r.empty)continue;let o=lo(t.state,r.head,-1,i)||r.head>0&&lo(t.state,r.head-1,1,i)||i.afterCursor&&(lo(t.state,r.head,1,i)||r.headRe.decorations.from(n)}),Jne=[Xne,Gne];function Vv(n={}){return[u$.of(n),Jne]}var ere=new Qe;function oI(n,t,e){let i=n.prop(t<0?Qe.openedBy:Qe.closedBy);if(i)return i;if(n.name.length==1){let r=e.indexOf(n.name);if(r>-1&&r%2==(t<0?1:0))return[e[r+t]]}return null}function sI(n){let t=n.type.prop(ere);return t?t(n.node):n}function lo(n,t,e,i={}){let r=i.maxScanDistance||c$,o=i.brackets||d$,s=Oi(n),a=s.resolveInner(t,e);for(let l=a;l;l=l.parent){let c=oI(l.type,e,o);if(c&&l.from0?t>=d.from&&td.from&&t<=d.to))return tre(n,t,e,l,d,c,o)}}return ire(n,t,e,s,a.type,r,o)}function tre(n,t,e,i,r,o,s){let a=i.parent,l={from:r.from,to:r.to},c=0,d=a?.cursor();if(d&&(e<0?d.childBefore(i.from):d.childAfter(i.to)))do if(e<0?d.to<=i.from:d.from>=i.to){if(c==0&&o.indexOf(d.type.name)>-1&&d.from0)return null;let c={from:e<0?t-1:t,to:e>0?t+1:t},d=n.doc.iterRange(t,e>0?n.doc.length:0),u=0;for(let h=0;!d.next().done&&h<=o;){let f=d.value;e<0&&(h+=f.length);let m=t+h*e;for(let g=e>0?0:f.length-1,_=e>0?f.length:-1;g!=_;g+=e){let v=s.indexOf(f[g]);if(!(v<0||i.resolveInner(m+g,1).type!=r))if(v%2==0==e>0)u++;else{if(u==1)return{start:c,end:{from:m+g,to:m+g+1},matched:v>>1==l>>1};u--}}e>0&&(h+=f.length)}return d.done?{start:c,matched:!1}:null}var nre=Object.create(null),qB=[rn.none];var GB=[],QB=Object.create(null),rre=Object.create(null);for(let[n,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])rre[n]=ore(nre,t);function XE(n,t){GB.indexOf(n)>-1||(GB.push(n),console.warn(t))}function ore(n,t){let e=[];for(let a of t.split(" ")){let l=[];for(let c of a.split(".")){let d=n[c]||te[c];d?typeof d=="function"?l.length?l=l.map(d):XE(c,`Modifier ${c} used at start of tag`):l.length?XE(c,`Tag ${c} used as modifier`):l=Array.isArray(d)?d:[d]:XE(c,`Unknown highlighting tag ${c}`)}for(let c of l)e.push(c)}if(!e.length)return 0;let i=t.replace(/ /g,"_"),r=i+" "+e.map(a=>a.id),o=QB[r];if(o)return o.id;let s=QB[r]=rn.define({id:qB.length,name:i,props:[Mv({[i]:e})]});return qB.push(s),s.id}var r1e={rtl:ve.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"rtl"},bidiIsolate:Nt.RTL}),ltr:ve.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"ltr"},bidiIsolate:Nt.LTR}),auto:ve.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"auto"},bidiIsolate:null})};var sre=n=>{let{state:t}=n,e=t.doc.lineAt(t.selection.main.from),i=pI(n.state,e.from);return i.line?are(n):i.block?cre(n):!1};function mI(n,t){return({state:e,dispatch:i})=>{if(e.readOnly)return!1;let r=n(t,e);return r?(i(e.update(r)),!0):!1}}var are=mI(hre,0);var lre=mI(y$,0);var cre=mI((n,t)=>y$(n,t,ure(t)),0);function pI(n,t){let e=n.languageDataAt("commentTokens",t);return e.length?e[0]:{}}var $f=50;function dre(n,{open:t,close:e},i,r){let o=n.sliceDoc(i-$f,i),s=n.sliceDoc(r,r+$f),a=/\s*$/.exec(o)[0].length,l=/^\s*/.exec(s)[0].length,c=o.length-a;if(o.slice(c-t.length,c)==t&&s.slice(l,l+e.length)==e)return{open:{pos:i-a,margin:a&&1},close:{pos:r+l,margin:l&&1}};let d,u;r-i<=2*$f?d=u=n.sliceDoc(i,r):(d=n.sliceDoc(i,i+$f),u=n.sliceDoc(r-$f,r));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:i+h+t.length,margin:/\s/.test(d.charAt(h+t.length))?1:0},close:{pos:r-f-e.length,margin:/\s/.test(u.charAt(m-1))?1:0}}:null}function ure(n){let t=[];for(let e of n.selection.ranges){let i=n.doc.lineAt(e.from),r=e.to<=i.to?i:n.doc.lineAt(e.to);r.from>i.from&&r.from==e.to&&(r=e.to==i.to+1?i:n.doc.lineAt(e.to-1));let o=t.length-1;o>=0&&t[o].to>i.from?t[o].to=r.to:t.push({from:i.from+/^\s*/.exec(i.text)[0].length,to:r.to})}return t}function y$(n,t,e=t.selection.ranges){let i=e.map(o=>pI(t,o.from).block);if(!i.every(o=>o))return null;let r=e.map((o,s)=>dre(t,i[s],o.from,o.to));if(n!=2&&!r.every(o=>o))return{changes:t.changes(e.map((o,s)=>r[s]?[]:[{from:o.from,insert:i[s].open+" "},{from:o.to,insert:" "+i[s].close}]))};if(n!=1&&r.some(o=>o)){let o=[];for(let s=0,a;sr&&(o==s||s>u.from)){r=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;ho.comment<0&&(!o.empty||o.single))){let o=[];for(let{line:a,token:l,indent:c,empty:d,single:u}of i)(u||!d)&&o.push({from:a.from+c,insert:l+" "});let s=t.changes(o);return{changes:s,selection:t.selection.map(s,1)}}else if(n!=1&&i.some(o=>o.comment>=0)){let o=[];for(let{line:s,comment:a,token:l}of i)if(a>=0){let c=s.from+a,d=c+l.length;s.text[d-s.from]==" "&&d++,o.push({from:c,to:d})}return{changes:o}}return null}var dI=$n.define(),fre=$n.define(),mre=me.define(),w$=me.define({combine(n){return fn(n,{minDepth:100,newGroupDelay:500,joinToEvent:(t,e)=>e},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(t,e)=>(i,r)=>t(i,r)||e(i,r)})}}),C$=zt.define({create(){return cI.empty},update(n,t){let e=t.state.facet(w$),i=t.annotation(dI);if(i){let l=co.fromTransaction(t,i.selection),c=i.side,d=c==0?n.undone:n.done;return l?d=Bv(d,d.length,e.minDepth,l):d=S$(d,t.startState.selection),new cI(c==0?i.rest:d,c==0?d:i.rest)}let r=t.annotation(fre);if((r=="full"||r=="before")&&(n=n.isolate()),t.annotation(zn.addToHistory)===!1)return t.changes.empty?n:n.addMapping(t.changes.desc);let o=co.fromTransaction(t),s=t.annotation(zn.time),a=t.annotation(zn.userEvent);return o?n=n.addChanges(o,s,a,e,t):t.selection&&(n=n.addSelection(t.startState.selection,s,a,e.newGroupDelay)),(r=="full"||r=="after")&&(n=n.isolate()),n},toJSON(n){return{done:n.done.map(t=>t.toJSON()),undone:n.undone.map(t=>t.toJSON())}},fromJSON(n){return new cI(n.done.map(co.fromJSON),n.undone.map(co.fromJSON))}});function $v(n={}){return[C$,w$.of(n),Re.domEventHandlers({beforeinput(t,e){let i=t.inputType=="historyUndo"?D$:t.inputType=="historyRedo"?uI:null;return i?(t.preventDefault(),i(e)):!1}})]}function zv(n,t){return function({state:e,dispatch:i}){if(!t&&e.readOnly)return!1;let r=e.field(C$,!1);if(!r)return!1;let o=r.pop(n,e,t);return o?(i(o),!0):!1}}var D$=zv(0,!1),uI=zv(1,!1),pre=zv(0,!0),gre=zv(1,!0);var co=class n{constructor(t,e,i,r,o){this.changes=t,this.effects=e,this.mapped=i,this.startSelection=r,this.selectionsAfter=o}setSelAfter(t){return new n(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){var t,e,i;return{changes:(t=this.changes)===null||t===void 0?void 0:t.toJSON(),mapped:(e=this.mapped)===null||e===void 0?void 0:e.toJSON(),startSelection:(i=this.startSelection)===null||i===void 0?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(r=>r.toJSON())}}static fromJSON(t){return new n(t.changes&&Sn.fromJSON(t.changes),[],t.mapped&&ks.fromJSON(t.mapped),t.startSelection&&G.fromJSON(t.startSelection),t.selectionsAfter.map(G.fromJSON))}static fromTransaction(t,e){let i=Pr;for(let r of t.startState.facet(mre)){let o=r(t);o.length&&(i=i.concat(o))}return!i.length&&t.changes.empty?null:new n(t.changes.invert(t.startState.doc),i,void 0,e||t.startState.selection,Pr)}static selection(t){return new n(void 0,Pr,void 0,void 0,t)}};function Bv(n,t,e,i){let r=t+1>e+20?t-e-1:0,o=n.slice(r,t);return o.push(i),o}function _re(n,t){let e=[],i=!1;return n.iterChangedRanges((r,o)=>e.push(r,o)),t.iterChangedRanges((r,o,s,a)=>{for(let l=0;l=c&&s<=d&&(i=!0)}}),i}function bre(n,t){return n.ranges.length==t.ranges.length&&n.ranges.filter((e,i)=>e.empty!=t.ranges[i].empty).length===0}function x$(n,t){return n.length?t.length?n.concat(t):n:t}var Pr=[],vre=200;function S$(n,t){if(n.length){let e=n[n.length-1],i=e.selectionsAfter.slice(Math.max(0,e.selectionsAfter.length-vre));return i.length&&i[i.length-1].eq(t)?n:(i.push(t),Bv(n,n.length-1,1e9,e.setSelAfter(i)))}else return[co.selection([t])]}function yre(n){let t=n[n.length-1],e=n.slice();return e[n.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),e}function lI(n,t){if(!n.length)return n;let e=n.length,i=Pr;for(;e;){let r=wre(n[e-1],t,i);if(r.changes&&!r.changes.empty||r.effects.length){let o=n.slice(0,e);return o[e-1]=r,o}else t=r.mapped,e--,i=r.selectionsAfter}return i.length?[co.selection(i)]:Pr}function wre(n,t,e){let i=x$(n.selectionsAfter.length?n.selectionsAfter.map(a=>a.map(t)):Pr,e);if(!n.changes)return co.selection(i);let r=n.changes.map(t),o=t.mapDesc(n.changes,!0),s=n.mapped?n.mapped.composeDesc(o):o;return new co(r,Ue.mapEffects(n.effects,t),s,n.startSelection.map(o),i)}var Cre=/^(input\.type|delete)($|\.)/,cI=(()=>{class n{constructor(e,i,r=0,o=void 0){this.done=e,this.undone=i,this.prevTime=r,this.prevUserEvent=o}isolate(){return this.prevTime?new n(this.done,this.undone):this}addChanges(e,i,r,o,s){let a=this.done,l=a[a.length-1];return l&&l.changes&&!l.changes.empty&&e.changes&&(!r||Cre.test(r))&&(!l.selectionsAfter.length&&i-this.prevTime0&&i-this.prevTimee.empty?n.moveByChar(e,t):Uv(e,t))}function mn(n){return n.textDirectionAt(n.state.selection.main.head)==Nt.LTR}var E$=n=>k$(n,!mn(n)),I$=n=>k$(n,mn(n));function M$(n,t){return uo(n,e=>e.empty?n.moveByGroup(e,t):Uv(e,t))}var Dre=n=>M$(n,!mn(n)),xre=n=>M$(n,mn(n));var f1e=typeof Intl<"u"&&Intl.Segmenter?new Intl.Segmenter(void 0,{granularity:"word"}):null;function Sre(n,t,e){if(t.type.prop(e))return!0;let i=t.to-t.from;return i&&(i>2||/[^\s,.;:]/.test(n.sliceDoc(t.from,t.to)))||t.firstChild}function Wv(n,t,e){let i=Oi(n).resolveInner(t.head),r=e?Qe.closedBy:Qe.openedBy;for(let l=t.head;;){let c=e?i.childAfter(l):i.childBefore(l);if(!c)break;Sre(n,c,r)?i=c:l=e?c.to:c.from}let o=i.type.prop(r),s,a;return o&&(s=e?lo(n,i.from,1):lo(n,i.to,-1))&&s.matched?a=e?s.end.to:s.end.from:a=e?i.to:i.from,G.cursor(a,e?-1:1)}var kre=n=>uo(n,t=>Wv(n.state,t,!mn(n))),Ere=n=>uo(n,t=>Wv(n.state,t,mn(n)));function T$(n,t){return uo(n,e=>{if(!e.empty)return Uv(e,t);let i=n.moveVertically(e,t);return i.head!=e.head?i:n.moveToLineBoundary(e,t)})}var A$=n=>T$(n,!1),O$=n=>T$(n,!0);function R$(n){let t=n.scrollDOM.clientHeights.empty?n.moveVertically(s,t,e.height):Uv(s,t));if(r.eq(i.selection))return!1;let o;if(e.selfScroll){let s=n.coordsAtPos(i.selection.main.head),a=n.scrollDOM.getBoundingClientRect(),l=a.top+e.marginTop,c=a.bottom-e.marginBottom;s&&s.top>l&&s.bottomP$(n,!1),hI=n=>P$(n,!0);function Va(n,t,e){let i=n.lineBlockAt(t.head),r=n.moveToLineBoundary(t,e);if(r.head==t.head&&r.head!=(e?i.to:i.from)&&(r=n.moveToLineBoundary(t,e,!1)),!e&&r.head==i.from&&i.length){let o=/^\s*/.exec(n.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;o&&t.head!=i.from+o&&(r=G.cursor(i.from+o))}return r}var Ire=n=>uo(n,t=>Va(n,t,!0)),Mre=n=>uo(n,t=>Va(n,t,!1)),Tre=n=>uo(n,t=>Va(n,t,!mn(n))),Are=n=>uo(n,t=>Va(n,t,mn(n))),Ore=n=>uo(n,t=>G.cursor(n.lineBlockAt(t.head).from,1)),Rre=n=>uo(n,t=>G.cursor(n.lineBlockAt(t.head).to,-1));function Pre(n,t,e){let i=!1,r=nu(n.selection,o=>{let s=lo(n,o.head,-1)||lo(n,o.head,1)||o.head>0&&lo(n,o.head-1,1)||o.headPre(n,t,!1);function Fr(n,t){let e=nu(n.state.selection,i=>{let r=t(i);return G.range(i.anchor,r.head,r.goalColumn,r.bidiLevel||void 0)});return e.eq(n.state.selection)?!1:(n.dispatch(Yo(n.state,e)),!0)}function F$(n,t){return Fr(n,e=>n.moveByChar(e,t))}var N$=n=>F$(n,!mn(n)),L$=n=>F$(n,mn(n));function V$(n,t){return Fr(n,e=>n.moveByGroup(e,t))}var Nre=n=>V$(n,!mn(n)),Lre=n=>V$(n,mn(n));var Vre=n=>Fr(n,t=>Wv(n.state,t,!mn(n))),jre=n=>Fr(n,t=>Wv(n.state,t,mn(n)));function j$(n,t){return Fr(n,e=>n.moveVertically(e,t))}var B$=n=>j$(n,!1),$$=n=>j$(n,!0);function z$(n,t){return Fr(n,e=>n.moveVertically(e,t,R$(n).height))}var f$=n=>z$(n,!1),m$=n=>z$(n,!0),Bre=n=>Fr(n,t=>Va(n,t,!0)),$re=n=>Fr(n,t=>Va(n,t,!1)),zre=n=>Fr(n,t=>Va(n,t,!mn(n))),Hre=n=>Fr(n,t=>Va(n,t,mn(n))),Ure=n=>Fr(n,t=>G.cursor(n.lineBlockAt(t.head).from)),Wre=n=>Fr(n,t=>G.cursor(n.lineBlockAt(t.head).to)),p$=({state:n,dispatch:t})=>(t(Yo(n,{anchor:0})),!0),g$=({state:n,dispatch:t})=>(t(Yo(n,{anchor:n.doc.length})),!0),_$=({state:n,dispatch:t})=>(t(Yo(n,{anchor:n.selection.main.anchor,head:0})),!0),b$=({state:n,dispatch:t})=>(t(Yo(n,{anchor:n.selection.main.anchor,head:n.doc.length})),!0),Yre=({state:n,dispatch:t})=>(t(n.update({selection:{anchor:0,head:n.doc.length},userEvent:"select"})),!0),qre=({state:n,dispatch:t})=>{let e=Yv(n).map(({from:i,to:r})=>G.range(i,Math.min(r+1,n.doc.length)));return t(n.update({selection:G.create(e),userEvent:"select"})),!0},Gre=({state:n,dispatch:t})=>{let e=nu(n.selection,i=>{let r=Oi(n),o=r.resolveStack(i.from,1);if(i.empty){let s=r.resolveStack(i.from,-1);s.node.from>=o.node.from&&s.node.to<=o.node.to&&(o=s)}for(let s=o;s;s=s.next){let{node:a}=s;if((a.from=i.to||a.to>i.to&&a.from<=i.from)&&s.next)return G.range(a.to,a.from)}return i});return e.eq(n.selection)?!1:(t(Yo(n,e)),!0)},Qre=({state:n,dispatch:t})=>{let e=n.selection,i=null;return e.ranges.length>1?i=G.create([e.main]):e.main.empty||(i=G.create([G.cursor(e.main.head)])),i?(t(Yo(n,i)),!0):!1};function zf(n,t){if(n.state.readOnly)return!1;let e="delete.selection",{state:i}=n,r=i.changeByRange(o=>{let{from:s,to:a}=o;if(s==a){let l=t(o);ls&&(e="delete.forward",l=jv(n,l,!0)),s=Math.min(s,l),a=Math.max(a,l)}else s=jv(n,s,!1),a=jv(n,a,!0);return s==a?{range:o}:{changes:{from:s,to:a},range:G.cursor(s,sr(n)))i.between(t,t,(r,o)=>{rt&&(t=e?o:r)});return t}var H$=(n,t,e)=>zf(n,i=>{let r=i.from,{state:o}=n,s=o.doc.lineAt(r),a,l;if(e&&!t&&r>s.from&&rH$(n,!1,!0);var U$=n=>H$(n,!0,!1),W$=(n,t)=>zf(n,e=>{let i=e.head,{state:r}=n,o=r.doc.lineAt(i),s=r.charCategorizer(i);for(let a=null;;){if(i==(t?o.to:o.from)){i==e.head&&o.number!=(t?r.doc.lines:1)&&(i+=t?1:-1);break}let l=Ci(o.text,i-o.from,t)+o.from,c=o.text.slice(Math.min(i,l)-o.from,Math.max(i,l)-o.from),d=s(c);if(a!=null&&d!=a)break;(c!=" "||i!=e.head)&&(a=d),i=l}return i}),Y$=n=>W$(n,!1),Kre=n=>W$(n,!0),Zre=n=>zf(n,t=>{let e=n.lineBlockAt(t.head).to;return t.headzf(n,t=>{let e=n.moveToLineBoundary(t,!1).head;return t.head>e?e:Math.max(0,t.head-1)}),Jre=n=>zf(n,t=>{let e=n.moveToLineBoundary(t,!0).head;return t.head{if(n.readOnly)return!1;let e=n.changeByRange(i=>({changes:{from:i.from,to:i.to,insert:ut.of(["",""])},range:G.cursor(i.from)}));return t(n.update(e,{scrollIntoView:!0,userEvent:"input"})),!0},toe=({state:n,dispatch:t})=>{if(n.readOnly)return!1;let e=n.changeByRange(i=>{if(!i.empty||i.from==0||i.from==n.doc.length)return{range:i};let r=i.from,o=n.doc.lineAt(r),s=r==o.from?r-1:Ci(o.text,r-o.from,!1)+o.from,a=r==o.to?r+1:Ci(o.text,r-o.from,!0)+o.from;return{changes:{from:s,to:a,insert:n.doc.slice(r,a).append(n.doc.slice(s,r))},range:G.cursor(a)}});return e.changes.empty?!1:(t(n.update(e,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function Yv(n){let t=[],e=-1;for(let i of n.selection.ranges){let r=n.doc.lineAt(i.from),o=n.doc.lineAt(i.to);if(!i.empty&&i.to==o.from&&(o=n.doc.lineAt(i.to-1)),e>=r.number){let s=t[t.length-1];s.to=o.to,s.ranges.push(i)}else t.push({from:r.from,to:o.to,ranges:[i]});e=o.number+1}return t}function q$(n,t,e){if(n.readOnly)return!1;let i=[],r=[];for(let o of Yv(n)){if(e?o.to==n.doc.length:o.from==0)continue;let s=n.doc.lineAt(e?o.to+1:o.from-1),a=s.length+1;if(e){i.push({from:o.to,to:s.to},{from:o.from,insert:s.text+n.lineBreak});for(let l of o.ranges)r.push(G.range(Math.min(n.doc.length,l.anchor+a),Math.min(n.doc.length,l.head+a)))}else{i.push({from:s.from,to:o.from},{from:o.to,insert:n.lineBreak+s.text});for(let l of o.ranges)r.push(G.range(l.anchor-a,l.head-a))}}return i.length?(t(n.update({changes:i,scrollIntoView:!0,selection:G.create(r,n.selection.mainIndex),userEvent:"move.line"})),!0):!1}var ioe=({state:n,dispatch:t})=>q$(n,t,!1),noe=({state:n,dispatch:t})=>q$(n,t,!0);function G$(n,t,e){if(n.readOnly)return!1;let i=[];for(let r of Yv(n))e?i.push({from:r.from,insert:n.doc.slice(r.from,r.to)+n.lineBreak}):i.push({from:r.to,insert:n.lineBreak+n.doc.slice(r.from,r.to)});return t(n.update({changes:i,scrollIntoView:!0,userEvent:"input.copyline"})),!0}var roe=({state:n,dispatch:t})=>G$(n,t,!1),ooe=({state:n,dispatch:t})=>G$(n,t,!0),soe=n=>{if(n.state.readOnly)return!1;let{state:t}=n,e=t.changes(Yv(t).map(({from:r,to:o})=>(r>0?r--:o{let o;if(n.lineWrapping){let s=n.lineBlockAt(r.head),a=n.coordsAtPos(r.head,r.assoc||1);a&&(o=s.bottom+n.documentTop-a.bottom+n.defaultLineHeight/2)}return n.moveVertically(r,!0,o)}).map(e);return n.dispatch({changes:e,selection:i,scrollIntoView:!0,userEvent:"delete.line"}),!0};function aoe(n,t){if(/\(\)|\[\]|\{\}/.test(n.sliceDoc(t-1,t+1)))return{from:t,to:t};let e=Oi(n).resolveInner(t),i=e.childBefore(t),r=e.childAfter(t),o;return i&&r&&i.to<=t&&r.from>=t&&(o=i.type.prop(Qe.closedBy))&&o.indexOf(r.name)>-1&&n.doc.lineAt(i.to).from==n.doc.lineAt(r.from).from&&!/\S/.test(n.sliceDoc(i.to,r.from))?{from:i.to,to:r.from}:null}var v$=Q$(!1),loe=Q$(!0);function Q$(n){return({state:t,dispatch:e})=>{if(t.readOnly)return!1;let i=t.changeByRange(r=>{let{from:o,to:s}=r,a=t.doc.lineAt(o),l=!n&&o==s&&aoe(t,o);n&&(o=s=(s<=a.to?a:t.doc.lineAt(s)).to);let c=new rc(t,{simulateBreak:o,simulateDoubleBreak:!!l}),d=Pv(c,o);for(d==null&&(d=Es(/^\s*/.exec(t.doc.lineAt(o).text)[0],t.tabSize));sa.from&&o{let r=[];for(let s=i.from;s<=i.to;){let a=n.doc.lineAt(s);a.number>e&&(i.empty||i.to>a.from)&&(t(a,r,i),e=a.number),s=a.to+1}let o=n.changes(r);return{changes:r,range:G.range(o.mapPos(i.anchor,1),o.mapPos(i.head,1))}})}var coe=({state:n,dispatch:t})=>{if(n.readOnly)return!1;let e=Object.create(null),i=new rc(n,{overrideIndentation:o=>{let s=e[o];return s??-1}}),r=gI(n,(o,s,a)=>{let l=Pv(i,o.from);if(l==null)return;/\S/.test(o.text)||(l=0);let c=/^\s*/.exec(o.text)[0],d=iu(n,l);(c!=d||a.fromn.readOnly?!1:(t(n.update(gI(n,(e,i)=>{i.push({from:e.from,insert:n.facet(tu)})}),{userEvent:"input.indent"})),!0),Z$=({state:n,dispatch:t})=>n.readOnly?!1:(t(n.update(gI(n,(e,i)=>{let r=/^\s*/.exec(e.text)[0];if(!r)return;let o=Es(r,n.tabSize),s=0,a=iu(n,Math.max(0,o-jf(n)));for(;s(n.setTabFocusMode(),!0);var uoe=[{key:"Ctrl-b",run:E$,shift:N$,preventDefault:!0},{key:"Ctrl-f",run:I$,shift:L$},{key:"Ctrl-p",run:A$,shift:B$},{key:"Ctrl-n",run:O$,shift:$$},{key:"Ctrl-a",run:Ore,shift:Ure},{key:"Ctrl-e",run:Rre,shift:Wre},{key:"Ctrl-d",run:U$},{key:"Ctrl-h",run:fI},{key:"Ctrl-k",run:Zre},{key:"Ctrl-Alt-h",run:Y$},{key:"Ctrl-o",run:eoe},{key:"Ctrl-t",run:toe},{key:"Ctrl-v",run:hI}],hoe=[{key:"ArrowLeft",run:E$,shift:N$,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:Dre,shift:Nre,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:Tre,shift:zre,preventDefault:!0},{key:"ArrowRight",run:I$,shift:L$,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:xre,shift:Lre,preventDefault:!0},{mac:"Cmd-ArrowRight",run:Are,shift:Hre,preventDefault:!0},{key:"ArrowUp",run:A$,shift:B$,preventDefault:!0},{mac:"Cmd-ArrowUp",run:p$,shift:_$},{mac:"Ctrl-ArrowUp",run:h$,shift:f$},{key:"ArrowDown",run:O$,shift:$$,preventDefault:!0},{mac:"Cmd-ArrowDown",run:g$,shift:b$},{mac:"Ctrl-ArrowDown",run:hI,shift:m$},{key:"PageUp",run:h$,shift:f$},{key:"PageDown",run:hI,shift:m$},{key:"Home",run:Mre,shift:$re,preventDefault:!0},{key:"Mod-Home",run:p$,shift:_$},{key:"End",run:Ire,shift:Bre,preventDefault:!0},{key:"Mod-End",run:g$,shift:b$},{key:"Enter",run:v$,shift:v$},{key:"Mod-a",run:Yre},{key:"Backspace",run:fI,shift:fI},{key:"Delete",run:U$},{key:"Mod-Backspace",mac:"Alt-Backspace",run:Y$},{key:"Mod-Delete",mac:"Alt-Delete",run:Kre},{mac:"Mod-Backspace",run:Xre},{mac:"Mod-Delete",run:Jre}].concat(uoe.map(n=>({mac:n.key,run:n.run,shift:n.shift}))),qv=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:kre,shift:Vre},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:Ere,shift:jre},{key:"Alt-ArrowUp",run:ioe},{key:"Shift-Alt-ArrowUp",run:roe},{key:"Alt-ArrowDown",run:noe},{key:"Shift-Alt-ArrowDown",run:ooe},{key:"Escape",run:Qre},{key:"Mod-Enter",run:loe},{key:"Alt-l",mac:"Ctrl-l",run:qre},{key:"Mod-i",run:Gre,preventDefault:!0},{key:"Mod-[",run:Z$},{key:"Mod-]",run:K$},{key:"Mod-Alt-\\",run:coe},{key:"Shift-Mod-k",run:soe},{key:"Shift-Mod-\\",run:Fre},{key:"Mod-/",run:sre},{key:"Alt-A",run:lre},{key:"Ctrl-m",mac:"Shift-Alt-m",run:doe}].concat(hoe),m1e={key:"Tab",run:K$,shift:Z$};function Pt(){var n=arguments[0];typeof n=="string"&&(n=document.createElement(n));var t=1,e=arguments[1];if(e&&typeof e=="object"&&e.nodeType==null&&!Array.isArray(e)){for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var r=e[i];typeof r=="string"?n.setAttribute(i,r):r!=null&&(n[i]=r)}t++}for(;tn.normalize("NFKD"):n=>n,Ba=class{constructor(t,e,i=0,r=t.length,o,s){this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=t.iterRange(i,r),this.bufferStart=i,this.normalize=o?a=>o(J$(a)):J$,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 en(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=lf(t),i=this.bufferStart+this.bufferPos;this.bufferPos+=dr(t);let r=this.normalize(e);if(r.length)for(let o=0,s=i;;o++){let a=r.charCodeAt(o),l=this.match(a,s,this.bufferPos+this.bufferStart);if(o==r.length-1){if(l)return this.value=l,this;break}s==i&&othis.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 i=this.curLineStart+e.index,r=i+e[0].length;if(this.matchPos=Jv(this.text,r+(i==r?1:0)),i==this.curLineStart+this.curLine.length&&this.nextLine(),(ithis.value.to)&&(!this.test||this.test(i,r,e)))return this.value={from:i,to:r,match:e},this;t=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length=i||r.to<=e){let a=new n(e,t.sliceString(e,i));return _I.set(t,a),a}if(r.from==e&&r.to==i)return r;let{text:o,from:s}=r;return s>e&&(o=t.sliceString(e,s)+o,s=e),r.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 i=this.flat.from+e.index,r=i+e[0].length;if((this.flat.to>=this.to||e.index+e[0].length<=this.flat.text.length-10)&&(!this.test||this.test(i,r,e)))return this.value={from:i,to:r,match:e},this.matchPos=Jv(this.text,r+(i==r?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Zv.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}};typeof Symbol<"u"&&(Kv.prototype[Symbol.iterator]=Xv.prototype[Symbol.iterator]=function(){return this});function foe(n){try{return new RegExp(n,DI),!0}catch{return!1}}function Jv(n,t){if(t>=n.length)return t;let e=n.lineAt(t),i;for(;t=56320&&i<57344;)t++;return t}function bI(n){let t=String(n.state.doc.lineAt(n.state.selection.main.head).number),e=Pt("input",{class:"cm-textfield",name:"line",value:t}),i=Pt("form",{class:"cm-gotoLine",onkeydown:o=>{o.keyCode==27?(o.preventDefault(),n.dispatch({effects:ey.of(!1)}),n.focus()):o.keyCode==13&&(o.preventDefault(),r())},onsubmit:o=>{o.preventDefault(),r()}},Pt("label",n.state.phrase("Go to line"),": ",e)," ",Pt("button",{class:"cm-button",type:"submit"},n.state.phrase("go")));function r(){let o=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(e.value);if(!o)return;let{state:s}=n,a=s.doc.lineAt(s.selection.main.head),[,l,c,d,u]=o,h=d?+d.slice(1):0,f=c?+c:a.number;if(c&&u){let _=f/100;l&&(_=_*(l=="-"?-1:1)+a.number/s.doc.lines),f=Math.round(s.doc.lines*_)}else c&&l&&(f=f*(l=="-"?-1:1)+a.number);let m=s.doc.line(Math.max(1,Math.min(s.doc.lines,f))),g=G.cursor(m.from+Math.max(0,Math.min(h,m.length)));n.dispatch({effects:[ey.of(!1),Re.scrollIntoView(g.from,{y:"center"})],selection:g}),n.focus()}return{dom:i}}var ey=Ue.define(),ez=zt.define({create(){return!0},update(n,t){for(let e of t.effects)e.is(ey)&&(n=e.value);return n},provide:n=>Jl.from(n,t=>t?bI:null)}),moe=n=>{let t=ec(n,bI);if(!t){let e=[ey.of(!0)];n.state.field(ez,!1)==null&&e.push(Ue.appendConfig.of([ez,poe])),n.dispatch({effects:e}),t=ec(n,bI)}return t&&t.dom.querySelector("input").select(),!0},poe=Re.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),goe={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},rz=me.define({combine(n){return fn(n,goe,{highlightWordAroundCursor:(t,e)=>t||e,minSelectionLength:Math.min,maxMatches:Math.min})}});function ay(n){let t=[woe,yoe];return n&&t.push(rz.of(n)),t}var _oe=ve.mark({class:"cm-selectionMatch"}),boe=ve.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function tz(n,t,e,i){return(e==0||n(t.sliceDoc(e-1,e))!=Ft.Word)&&(i==t.doc.length||n(t.sliceDoc(i,i+1))!=Ft.Word)}function voe(n,t,e,i){return n(t.sliceDoc(e,e+1))==Ft.Word&&n(t.sliceDoc(i-1,i))==Ft.Word}var yoe=ni.fromClass(class{constructor(n){this.decorations=this.getDeco(n)}update(n){(n.selectionSet||n.docChanged||n.viewportChanged)&&(this.decorations=this.getDeco(n.view))}getDeco(n){let t=n.state.facet(rz),{state:e}=n,i=e.selection;if(i.ranges.length>1)return ve.none;let r=i.main,o,s=null;if(r.empty){if(!t.highlightWordAroundCursor)return ve.none;let l=e.wordAt(r.head);if(!l)return ve.none;s=e.charCategorizer(r.head),o=e.sliceDoc(l.from,l.to)}else{let l=r.to-r.from;if(l200)return ve.none;if(t.wholeWords){if(o=e.sliceDoc(r.from,r.to),s=e.charCategorizer(r.head),!(tz(s,e,r.from,r.to)&&voe(s,e,r.from,r.to)))return ve.none}else if(o=e.sliceDoc(r.from,r.to),!o)return ve.none}let a=[];for(let l of n.visibleRanges){let c=new Ba(e.doc,o,l.from,l.to);for(;!c.next().done;){let{from:d,to:u}=c.value;if((!s||tz(s,e,d,u))&&(r.empty&&d<=r.from&&u>=r.to?a.push(boe.range(d,u)):(d>=r.to||u<=r.from)&&a.push(_oe.range(d,u)),a.length>t.maxMatches))return ve.none}}return ve.set(a)}},{decorations:n=>n.decorations}),woe=Re.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),Coe=({state:n,dispatch:t})=>{let{selection:e}=n,i=G.create(e.ranges.map(r=>n.wordAt(r.head)||G.cursor(r.head)),e.mainIndex);return i.eq(e)?!1:(t(n.update({selection:i})),!0)};function Doe(n,t){let{main:e,ranges:i}=n.selection,r=n.wordAt(e.head),o=r&&r.from==e.from&&r.to==e.to;for(let s=!1,a=new Ba(n.doc,t,i[i.length-1].to);;)if(a.next(),a.done){if(s)return null;a=new Ba(n.doc,t,0,Math.max(0,i[i.length-1].from-1)),s=!0}else{if(s&&i.some(l=>l.from==a.value.from))continue;if(o){let l=n.wordAt(a.value.from);if(!l||l.from!=a.value.from||l.to!=a.value.to)continue}return a.value}}var xoe=({state:n,dispatch:t})=>{let{ranges:e}=n.selection;if(e.some(o=>o.from===o.to))return Coe({state:n,dispatch:t});let i=n.sliceDoc(e[0].from,e[0].to);if(n.selection.ranges.some(o=>n.sliceDoc(o.from,o.to)!=i))return!1;let r=Doe(n,i);return r?(t(n.update({selection:n.selection.addRange(G.range(r.from,r.to),!1),effects:Re.scrollIntoView(r.to)})),!0):!1},su=me.define({combine(n){return fn(n,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:t=>new CI(t),scrollToMatch:t=>Re.scrollIntoView(t)})}});var ty=class{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||foe(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!t.wholeWord}unquote(t){return this.literal?t:t.replace(/\\([nrt\\])/g,(e,i)=>i=="n"?`
`:i=="r"?"\r":i=="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 yI(this):new vI(this)}getCursor(t,e=0,i){let r=t.doc?t:Di.create({doc:t});return i==null&&(i=r.doc.length),this.regexp?ou(this,r,e,i):ru(this,r,e,i)}},iy=class{constructor(t){this.spec=t}};function ru(n,t,e,i){return new Ba(t.doc,n.unquoted,e,i,n.caseSensitive?void 0:r=>r.toLowerCase(),n.wholeWord?Soe(t.doc,t.charCategorizer(t.selection.main.head)):void 0)}function Soe(n,t){return(e,i,r,o)=>((o>e||o+r.length=e)return null;r.push(i.value)}return r}highlight(t,e,i,r){let o=ru(this.spec,t,Math.max(0,e-this.spec.unquoted.length),Math.min(i+this.spec.unquoted.length,t.doc.length));for(;!o.next().done;)r(o.value.from,o.value.to)}};function ou(n,t,e,i){return new Kv(t.doc,n.search,{ignoreCase:!n.caseSensitive,test:n.wholeWord?koe(t.charCategorizer(t.selection.main.head)):void 0},e,i)}function ny(n,t){return n.slice(Ci(n,t,!1),t)}function ry(n,t){return n.slice(t,Ci(n,t))}function koe(n){return(t,e,i)=>!i[0].length||(n(ny(i.input,i.index))!=Ft.Word||n(ry(i.input,i.index))!=Ft.Word)&&(n(ry(i.input,i.index+i[0].length))!=Ft.Word||n(ny(i.input,i.index+i[0].length))!=Ft.Word)}var yI=class extends iy{nextMatch(t,e,i){let r=ou(this.spec,t,i,t.doc.length).next();return r.done&&(r=ou(this.spec,t,0,e).next()),r.done?null:r.value}prevMatchInRange(t,e,i){for(let r=1;;r++){let o=Math.max(e,i-r*1e4),s=ou(this.spec,t,o,i),a=null;for(;!s.next().done;)a=s.value;if(a&&(o==e||a.from>o+10))return a;if(o==e)return null}}prevMatch(t,e,i){return this.prevMatchInRange(t,0,e)||this.prevMatchInRange(t,i,t.doc.length)}getReplacement(t){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(e,i)=>i=="$"?"$":i=="&"?t.match[0]:i!="0"&&+i=e)return null;r.push(i.value)}return r}highlight(t,e,i,r){let o=ou(this.spec,t,Math.max(0,e-250),Math.min(i+250,t.doc.length));for(;!o.next().done;)r(o.value.from,o.value.to)}},Uf=Ue.define(),xI=Ue.define(),ja=zt.define({create(n){return new Hf(wI(n).create(),null)},update(n,t){for(let e of t.effects)e.is(Uf)?n=new Hf(e.value.create(),n.panel):e.is(xI)&&(n=new Hf(n.query,e.value?SI:null));return n},provide:n=>Jl.from(n,t=>t.panel)});var Hf=class{constructor(t,e){this.query=t,this.panel=e}},Eoe=ve.mark({class:"cm-searchMatch"}),Ioe=ve.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Moe=ni.fromClass(class{constructor(n){this.view=n,this.decorations=this.highlight(n.state.field(ja))}update(n){let t=n.state.field(ja);(t!=n.startState.field(ja)||n.docChanged||n.selectionSet||n.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:n,panel:t}){if(!t||!n.spec.valid)return ve.none;let{view:e}=this,i=new cr;for(let r=0,o=e.visibleRanges,s=o.length;ro[r+1].from-2*250;)l=o[++r].to;n.highlight(e.state,a,l,(c,d)=>{let u=e.state.selection.ranges.some(h=>h.from==c&&h.to==d);i.add(c,d,u?Ioe:Eoe)})}return i.finish()}},{decorations:n=>n.decorations});function Wf(n){return t=>{let e=t.state.field(ja,!1);return e&&e.query.spec.valid?n(t,e):az(t)}}var oy=Wf((n,{query:t})=>{let{to:e}=n.state.selection.main,i=t.nextMatch(n.state,e,e);if(!i)return!1;let r=G.single(i.from,i.to),o=n.state.facet(su);return n.dispatch({selection:r,effects:[kI(n,i),o.scrollToMatch(r.main,n)],userEvent:"select.search"}),sz(n),!0}),sy=Wf((n,{query:t})=>{let{state:e}=n,{from:i}=e.selection.main,r=t.prevMatch(e,i,i);if(!r)return!1;let o=G.single(r.from,r.to),s=n.state.facet(su);return n.dispatch({selection:o,effects:[kI(n,r),s.scrollToMatch(o.main,n)],userEvent:"select.search"}),sz(n),!0}),Toe=Wf((n,{query:t})=>{let e=t.matchAll(n.state,1e3);return!e||!e.length?!1:(n.dispatch({selection:G.create(e.map(i=>G.range(i.from,i.to))),userEvent:"select.search.matches"}),!0)}),Aoe=({state:n,dispatch:t})=>{let e=n.selection;if(e.ranges.length>1||e.main.empty)return!1;let{from:i,to:r}=e.main,o=[],s=0;for(let a=new Ba(n.doc,n.sliceDoc(i,r));!a.next().done;){if(o.length>1e3)return!1;a.value.from==i&&(s=o.length),o.push(G.range(a.value.from,a.value.to))}return t(n.update({selection:G.create(o,s),userEvent:"select.search.matches"})),!0},iz=Wf((n,{query:t})=>{let{state:e}=n,{from:i,to:r}=e.selection.main;if(e.readOnly)return!1;let o=t.nextMatch(e,i,i);if(!o)return!1;let s=o,a=[],l,c,d=[];if(s.from==i&&s.to==r&&(c=e.toText(t.getReplacement(s)),a.push({from:s.from,to:s.to,insert:c}),s=t.nextMatch(e,s.from,s.to),d.push(Re.announce.of(e.phrase("replaced match on line $",e.doc.lineAt(i).number)+"."))),s){let u=a.length==0||a[0].from>=o.to?0:o.to-o.from-c.length;l=G.single(s.from-u,s.to-u),d.push(kI(n,s)),d.push(e.facet(su).scrollToMatch(l.main,n))}return n.dispatch({changes:a,selection:l,effects:d,userEvent:"input.replace"}),!0}),Ooe=Wf((n,{query:t})=>{if(n.state.readOnly)return!1;let e=t.matchAll(n.state,1e9).map(r=>{let{from:o,to:s}=r;return{from:o,to:s,insert:t.getReplacement(r)}});if(!e.length)return!1;let i=n.state.phrase("replaced $ matches",e.length)+".";return n.dispatch({changes:e,effects:Re.announce.of(i),userEvent:"input.replace.all"}),!0});function SI(n){return n.state.facet(su).createPanel(n)}function wI(n,t){var e,i,r,o,s;let a=n.selection.main,l=a.empty||a.to>a.from+100?"":n.sliceDoc(a.from,a.to);if(t&&!l)return t;let c=n.facet(su);return new ty({search:((e=t?.literal)!==null&&e!==void 0?e:c.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:(i=t?.caseSensitive)!==null&&i!==void 0?i:c.caseSensitive,literal:(r=t?.literal)!==null&&r!==void 0?r:c.literal,regexp:(o=t?.regexp)!==null&&o!==void 0?o:c.regexp,wholeWord:(s=t?.wholeWord)!==null&&s!==void 0?s:c.wholeWord})}function oz(n){let t=ec(n,SI);return t&&t.dom.querySelector("[main-field]")}function sz(n){let t=oz(n);t&&t==n.root.activeElement&&t.select()}var az=n=>{let t=n.state.field(ja,!1);if(t&&t.panel){let e=oz(n);if(e&&e!=n.root.activeElement){let i=wI(n.state,t.query.spec);i.valid&&n.dispatch({effects:Uf.of(i)}),e.focus(),e.select()}}else n.dispatch({effects:[xI.of(!0),t?Uf.of(wI(n.state,t.query.spec)):Ue.appendConfig.of(Poe)]});return!0},lz=n=>{let t=n.state.field(ja,!1);if(!t||!t.panel)return!1;let e=ec(n,SI);return e&&e.dom.contains(n.root.activeElement)&&n.focus(),n.dispatch({effects:xI.of(!1)}),!0},cz=[{key:"Mod-f",run:az,scope:"editor search-panel"},{key:"F3",run:oy,shift:sy,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:oy,shift:sy,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:lz,scope:"editor search-panel"},{key:"Mod-Shift-l",run:Aoe},{key:"Mod-Alt-g",run:moe},{key:"Mod-d",run:xoe,preventDefault:!0}],CI=class{constructor(t){this.view=t;let e=this.query=t.state.field(ja).query.spec;this.commit=this.commit.bind(this),this.searchField=Pt("input",{value:e.search,placeholder:fr(t,"Find"),"aria-label":fr(t,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Pt("input",{value:e.replace,placeholder:fr(t,"Replace"),"aria-label":fr(t,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Pt("input",{type:"checkbox",name:"case",form:"",checked:e.caseSensitive,onchange:this.commit}),this.reField=Pt("input",{type:"checkbox",name:"re",form:"",checked:e.regexp,onchange:this.commit}),this.wordField=Pt("input",{type:"checkbox",name:"word",form:"",checked:e.wholeWord,onchange:this.commit});function i(r,o,s){return Pt("button",{class:"cm-button",name:r,onclick:o,type:"button"},s)}this.dom=Pt("div",{onkeydown:r=>this.keydown(r),class:"cm-search"},[this.searchField,i("next",()=>oy(t),[fr(t,"next")]),i("prev",()=>sy(t),[fr(t,"previous")]),i("select",()=>Toe(t),[fr(t,"all")]),Pt("label",null,[this.caseField,fr(t,"match case")]),Pt("label",null,[this.reField,fr(t,"regexp")]),Pt("label",null,[this.wordField,fr(t,"by word")]),...t.state.readOnly?[]:[Pt("br"),this.replaceField,i("replace",()=>iz(t),[fr(t,"replace")]),i("replaceAll",()=>Ooe(t),[fr(t,"replace all")])],Pt("button",{name:"close",onclick:()=>lz(t),"aria-label":fr(t,"close"),type:"button"},["\xD7"])])}commit(){let t=new ty({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:Uf.of(t)}))}keydown(t){bB(this.view,t,"search-panel")?t.preventDefault():t.keyCode==13&&t.target==this.searchField?(t.preventDefault(),(t.shiftKey?sy:oy)(this.view)):t.keyCode==13&&t.target==this.replaceField&&(t.preventDefault(),iz(this.view))}update(t){for(let e of t.transactions)for(let i of e.effects)i.is(Uf)&&!i.value.eq(this.query)&&this.setQuery(i.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(su).top}};function fr(n,t){return n.state.phrase(t)}var Gv=30,Qv=/[\s\.,:;?!]/;function kI(n,{from:t,to:e}){let i=n.state.doc.lineAt(t),r=n.state.doc.lineAt(e).to,o=Math.max(i.from,t-Gv),s=Math.min(r,e+Gv),a=n.state.sliceDoc(o,s);if(o!=i.from){for(let l=0;la.length-Gv;l--)if(!Qv.test(a[l-1])&&Qv.test(a[l])){a=a.slice(0,l);break}}return Re.announce.of(`${n.state.phrase("current match")}. ${a} ${n.state.phrase("on line")} ${i.number}.`)}var Roe=Re.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"}}),Poe=[ja,Tr.low(Moe),Roe];var cy=class{constructor(t,e,i,r){this.state=t,this.pos=e,this.explicit=i,this.view=r,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(t){let e=Oi(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),i=Math.max(e.from,this.pos-250),r=e.text.slice(i-e.from,this.pos-e.from),o=r.search(vz(t,!1));return o<0?null:{from:i+o,to:this.pos,text:r.slice(o)}}get aborted(){return this.abortListeners==null}addEventListener(t,e,i){t=="abort"&&this.abortListeners&&(this.abortListeners.push(e),i&&i.onDocChange&&(this.abortOnDocChange=!0))}};function dz(n){let t=Object.keys(n).join(""),e=/\w/.test(t);return e&&(t=t.replace(/\w/g,"")),`[${e?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function Foe(n){let t=Object.create(null),e=Object.create(null);for(let{label:r}of n){t[r[0]]=!0;for(let o=1;otypeof r=="string"?{label:r}:r),[e,i]=t.every(r=>/^\w+$/.test(r.label))?[/\w*$/,/\w+$/]:Foe(t);return r=>{let o=r.matchBefore(i);return o||r.explicit?{from:o?o.from:r.pos,options:t,validFor:e}:null}}function k1e(n,t){return e=>{for(let i=Oi(e.state).resolveInner(e.pos,-1);i;i=i.parent){if(n.indexOf(i.name)>-1)return null;if(i.type.isTop)break}return t(e)}}var dy=class{constructor(t,e,i,r){this.completion=t,this.source=e,this.match=i,this.score=r}};function ac(n){return n.selection.main.from}function vz(n,t){var e;let{source:i}=n,r=t&&i[0]!="^",o=i[i.length-1]!="$";return!r&&!o?n:new RegExp(`${r?"^":""}(?:${i})${o?"$":""}`,(e=n.flags)!==null&&e!==void 0?e:n.ignoreCase?"i":"")}var VI=$n.define();function Loe(n,t,e,i){let{main:r}=n.selection,o=e-r.from,s=i-r.from;return Object.assign(Object.assign({},n.changeByRange(a=>{if(a!=r&&e!=i&&n.sliceDoc(a.from+o,a.from+s)!=n.sliceDoc(e,i))return{range:a};let l=n.toText(t);return{changes:{from:a.from+o,to:i==r.from?a.to:a.from+s,insert:l},range:G.cursor(a.from+o+l.length)}})),{scrollIntoView:!0,userEvent:"input.complete"})}var uz=new WeakMap;function Voe(n){if(!Array.isArray(n))return n;let t=uz.get(n);return t||uz.set(n,t=Noe(n)),t}var uy=Ue.define(),Yf=Ue.define(),MI=class{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&&j<=57||j>=97&&j<=122?2:j>=65&&j<=90?1:0:(K=lf(j))!=K.toLowerCase()?1:K!=K.toUpperCase()?2:0;(!x||J==1&&_||V==0&&J!=0)&&(e[u]==j||i[u]==j&&(h=!0)?s[u++]=x:s.length&&(v=!1)),V=J,x+=dr(j)}return u==l&&s[0]==0&&v?this.result(-100+(h?-200:0),s,t):f==l&&m==0?this.ret(-200-t.length+(g==t.length?0:-100),[0,g]):a>-1?this.ret(-700-t.length,[a,a+this.pattern.length]):f==l?this.ret(-900-t.length,[m,g]):u==l?this.result(-100+(h?-200:0)+-700+(v?0:-1100),s,t):e.length==2?null:this.result((r[0]?-700:0)+-200+-1100,r,t)}result(t,e,i){let r=[],o=0;for(let s of e){let a=s+(this.astral?dr(en(i,s)):1);o&&r[o-1]==s?r[o-1]=a:(r[o++]=s,r[o++]=a)}return this.ret(t-i.length,r)}},TI=class{constructor(t){this.pattern=t,this.matched=[],this.score=0,this.folded=t.toLowerCase()}match(t){if(t.length!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:joe,filterStrict:!1,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)=>i=>hz(t(i),e(i)),optionClass:(t,e)=>i=>hz(t(i),e(i)),addToOptions:(t,e)=>t.concat(e),filterStrict:(t,e)=>t||e})}});function hz(n,t){return n?t?n+" "+t:n:t}function joe(n,t,e,i,r,o){let s=n.textDirection==Nt.RTL,a=s,l=!1,c="top",d,u,h=t.left-r.left,f=r.right-t.right,m=i.right-i.left,g=i.bottom-i.top;if(a&&h=g||x>t.top?d=e.bottom-t.top:(c="bottom",d=t.bottom-e.top)}let _=(t.bottom-t.top)/o.offsetHeight,v=(t.right-t.left)/o.offsetWidth;return{style:`${c}: ${d/_}px; max-width: ${u/v}px`,class:"cm-completionInfo-"+(l?s?"left-narrow":"right-narrow":a?"left":"right")}}function Boe(n){let t=n.addToOptions.slice();return n.icons&&t.push({render(e){let i=document.createElement("div");return i.classList.add("cm-completionIcon"),e.type&&i.classList.add(...e.type.split(/\s+/g).map(r=>"cm-completionIcon-"+r)),i.setAttribute("aria-hidden","true"),i},position:20}),t.push({render(e,i,r,o){let s=document.createElement("span");s.className="cm-completionLabel";let a=e.displayLabel||e.label,l=0;for(let c=0;cl&&s.appendChild(document.createTextNode(a.slice(l,d)));let h=s.appendChild(document.createElement("span"));h.appendChild(document.createTextNode(a.slice(d,u))),h.className="cm-completionMatchedText",l=u}return le.position-i.position).map(e=>e.render)}function EI(n,t,e){if(n<=e)return{from:0,to:n};if(t<0&&(t=0),t<=n>>1){let r=Math.floor(t/e);return{from:r*e,to:(r+1)*e}}let i=Math.floor((n-t)/e);return{from:n-(i+1)*e,to:n-i*e}}var AI=class{constructor(t,e,i){this.view=t,this.stateField=e,this.applyCompletion=i,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:l=>this.placeInfo(l),key:this},this.space=null,this.currentClass="";let r=t.state.field(e),{options:o,selected:s}=r.open,a=t.state.facet(Hi);this.optionContent=Boe(a),this.optionClass=a.optionClass,this.tooltipClass=a.tooltipClass,this.range=EI(o.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 d=l.target,u;d&&d!=this.dom;d=d.parentNode)if(d.nodeName=="LI"&&(u=/-(\d+)$/.exec(d.id))&&+u[1]{let c=t.state.field(this.stateField,!1);c&&c.tooltip&&t.state.facet(Hi).closeOnBlur&&l.relatedTarget!=t.contentDOM&&t.dispatch({effects:Yf.of(null)})}),this.showOptions(o,r.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 i=t.state.field(this.stateField),r=t.startState.field(this.stateField);if(this.updateTooltipClass(t.state),i!=r){let{options:o,selected:s,disabled:a}=i.open;(!r.open||r.open.options!=o)&&(this.range=EI(o.length,s,t.state.facet(Hi).maxRenderedOptions),this.showOptions(o,i.id)),this.updateSel(),a!=((e=r.open)===null||e===void 0?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 i of this.currentClass.split(" "))i&&this.dom.classList.remove(i);for(let i of e.split(" "))i&&this.dom.classList.add(i);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=EI(e.options.length,e.selected,this.view.state.facet(Hi).maxRenderedOptions),this.showOptions(e.options,t.id)),this.updateSelectedOption(e.selected)){this.destroyInfo();let{completion:i}=e.options[e.selected],{info:r}=i;if(!r)return;let o=typeof r=="string"?document.createTextNode(r):r(i);if(!o)return;"then"in o?o.then(s=>{s&&this.view.state.field(this.stateField,!1)==t&&this.addInfoPane(s,i)}).catch(s=>nn(this.view.state,s,"completion info")):this.addInfoPane(o,i)}}addInfoPane(t,e){this.destroyInfo();let i=this.info=document.createElement("div");if(i.className="cm-tooltip cm-completionInfo",t.nodeType!=null)i.appendChild(t),this.infoDestroy=null;else{let{dom:r,destroy:o}=t;i.appendChild(r),this.infoDestroy=o||null}this.dom.appendChild(i),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(t){let e=null;for(let i=this.list.firstChild,r=this.range.from;i;i=i.nextSibling,r++)i.nodeName!="LI"||!i.id?r--:r==t?i.hasAttribute("aria-selected")||(i.setAttribute("aria-selected","true"),e=i):i.hasAttribute("aria-selected")&&i.removeAttribute("aria-selected");return e&&zoe(this.list,e),e}measureInfo(){let t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;let e=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),r=t.getBoundingClientRect(),o=this.space;if(!o){let s=this.dom.ownerDocument.defaultView||window;o={left:0,top:0,right:s.innerWidth,bottom:s.innerHeight}}return r.top>Math.min(o.bottom,e.bottom)-10||r.bottomi.from||i.from==0))if(o=h,typeof c!="string"&&c.header)r.appendChild(c.header(c));else{let f=r.appendChild(document.createElement("completion-section"));f.textContent=h}}let d=r.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,this.view,l);f&&d.appendChild(f)}}return i.from&&r.classList.add("cm-completionListIncompleteTop"),i.tonew AI(e,n,t)}function zoe(n,t){let e=n.getBoundingClientRect(),i=t.getBoundingClientRect(),r=e.height/n.offsetHeight;i.tope.bottom&&(n.scrollTop+=(i.bottom-e.bottom)/r)}function fz(n){return(n.boost||0)*100+(n.apply?10:0)+(n.info?5:0)+(n.type?1:0)}function Hoe(n,t){let e=[],i=null,r=c=>{e.push(c);let{section:d}=c.completion;if(d){i||(i=[]);let u=typeof d=="string"?d:d.name;i.some(h=>h.name==u)||i.push(typeof d=="string"?{name:u}:d)}},o=t.facet(Hi);for(let c of n)if(c.hasResult()){let d=c.result.getMatch;if(c.result.filter===!1)for(let u of c.result.options)r(new dy(u,c.source,d?d(u):[],1e9-e.length));else{let u=t.sliceDoc(c.from,c.to),h,f=o.filterStrict?new TI(u):new MI(u);for(let m of c.result.options)if(h=f.match(m.label)){let g=m.displayLabel?d?d(m,h.matched):[]:h.matched;r(new dy(m,c.source,g,h.score+(m.boost||0)))}}}if(i){let c=Object.create(null),d=0,u=(h,f)=>{var m,g;return((m=h.rank)!==null&&m!==void 0?m:1e9)-((g=f.rank)!==null&&g!==void 0?g:1e9)||(h.nameu.score-d.score||l(d.completion,u.completion))){let d=c.completion;!a||a.label!=d.label||a.detail!=d.detail||a.type!=null&&d.type!=null&&a.type!=d.type||a.apply!=d.apply||a.boost!=d.boost?s.push(c):fz(c.completion)>fz(a)&&(s[s.length-1]=c),a=c.completion}return s}var OI=class n{constructor(t,e,i,r,o,s){this.options=t,this.attrs=e,this.tooltip=i,this.timestamp=r,this.selected=o,this.disabled=s}setSelected(t,e){return t==this.selected||t>=this.options.length?this:new n(this.options,mz(e,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,e,i,r,o,s){if(r&&!s&&t.some(c=>c.isPending))return r.setDisabled();let a=Hoe(t,e);if(!a.length)return r&&t.some(c=>c.isPending)?r.setDisabled():null;let l=e.facet(Hi).selectOnOpen?0:-1;if(r&&r.selected!=l&&r.selected!=-1){let c=r.options[r.selected].completion;for(let d=0;dd.hasResult()?Math.min(c,d.from):c,1e8),create:Qoe,above:o.aboveCursor},r?r.timestamp:Date.now(),l,!1)}map(t){return new n(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}setDisabled(){return new n(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}},RI=class n{constructor(t,e,i){this.active=t,this.id=e,this.open=i}static start(){return new n(qoe,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(t){let{state:e}=t,i=e.facet(Hi),o=(i.override||e.languageDataAt("autocomplete",ac(e)).map(Voe)).map(l=>(this.active.find(d=>d.source==l)||new Os(l,this.active.some(d=>d.state!=0)?1:0)).update(t,i));o.length==this.active.length&&o.every((l,c)=>l==this.active[c])&&(o=this.active);let s=this.open,a=t.effects.some(l=>l.is(jI));s&&t.docChanged&&(s=s.map(t.changes)),t.selection||o.some(l=>l.hasResult()&&t.changes.touchesRange(l.from,l.to))||!Uoe(o,this.active)||a?s=OI.build(o,e,this.id,s,i,a):s&&s.disabled&&!o.some(l=>l.isPending)&&(s=null),!s&&o.every(l=>!l.isPending)&&o.some(l=>l.hasResult())&&(o=o.map(l=>l.hasResult()?new Os(l.source,0):l));for(let l of t.effects)l.is(wz)&&(s=s&&s.setSelected(l.value,this.id));return o==this.active&&s==this.open?this:new n(o,this.id,s)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?Woe:Yoe}};function Uoe(n,t){if(n==t)return!0;for(let e=0,i=0;;){for(;e-1&&(e["aria-activedescendant"]=n+"-"+t),e}var qoe=[];function yz(n,t){if(n.isUserEvent("input.complete")){let i=n.annotation(VI);if(i&&t.activateOnCompletion(i))return 12}let e=n.isUserEvent("input.type");return e&&t.activateOnTyping?5:e?1:n.isUserEvent("delete.backward")?2:n.selection?8:n.docChanged?16:0}var Os=class n{constructor(t,e,i=!1){this.source=t,this.state=e,this.explicit=i}hasResult(){return!1}get isPending(){return this.state==1}update(t,e){let i=yz(t,e),r=this;(i&8||i&16&&this.touches(t))&&(r=new n(r.source,0)),i&4&&r.state==0&&(r=new n(this.source,1)),r=r.updateFor(t,i);for(let o of t.effects)if(o.is(uy))r=new n(r.source,1,o.value);else if(o.is(Yf))r=new n(r.source,0);else if(o.is(jI))for(let s of o.value)s.source==r.source&&(r=s);return r}updateFor(t,e){return this.map(t.changes)}map(t){return this}touches(t){return t.changes.touchesRange(ac(t.state))}},hy=class n extends Os{constructor(t,e,i,r,o,s){super(t,3,e),this.limit=i,this.result=r,this.from=o,this.to=s}hasResult(){return!0}updateFor(t,e){var i;if(!(e&3))return this.map(t.changes);let r=this.result;r.map&&!t.changes.empty&&(r=r.map(r,t.changes));let o=t.changes.mapPos(this.from),s=t.changes.mapPos(this.to,1),a=ac(t.state);if(a>s||!r||e&2&&(ac(t.startState)==this.from||ae.map(t))}}),wz=Ue.define(),Yn=zt.define({create(){return RI.start()},update(n,t){return n.update(t)},provide:n=>[Of.from(n,t=>t.tooltip),Re.contentAttributes.from(n,t=>t.attrs)]});function BI(n,t){let e=t.completion.apply||t.completion.label,i=n.state.field(Yn).active.find(r=>r.source==t.source);return i instanceof hy?(typeof e=="string"?n.dispatch(Object.assign(Object.assign({},Loe(n.state,e,i.from,i.to)),{annotations:VI.of(t.completion)})):e(n,t.completion,i.from,i.to),!0):!1}var Qoe=$oe(Yn,BI);function ly(n,t="option"){return e=>{let i=e.state.field(Yn,!1);if(!i||!i.open||i.open.disabled||Date.now()-i.open.timestamp-1?i.open.selected+r*(n?1:-1):n?0:s-1;return a<0?a=t=="page"?0:s-1:a>=s&&(a=t=="page"?s-1:0),e.dispatch({effects:wz.of(a)}),!0}}var Koe=n=>{let t=n.state.field(Yn,!1);return n.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestampn.state.field(Yn,!1)?(n.dispatch({effects:uy.of(!0)}),!0):!1,Zoe=n=>{let t=n.state.field(Yn,!1);return!t||!t.active.some(e=>e.state!=0)?!1:(n.dispatch({effects:Yf.of(null)}),!0)},PI=class{constructor(t,e){this.active=t,this.context=e,this.time=Date.now(),this.updates=[],this.done=void 0}},Xoe=50,Joe=1e3,ese=ni.fromClass(class{constructor(n){this.view=n,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let t of n.state.field(Yn).active)t.isPending&&this.startQuery(t)}update(n){let t=n.state.field(Yn),e=n.state.facet(Hi);if(!n.selectionSet&&!n.docChanged&&n.startState.field(Yn)==t)return;let i=n.transactions.some(o=>{let s=yz(o,e);return s&8||(o.selection||o.docChanged)&&!(s&3)});for(let o=0;oXoe&&Date.now()-s.time>Joe){for(let a of s.context.abortListeners)try{a()}catch(l){nn(this.view.state,l)}s.context.abortListeners=null,this.running.splice(o--,1)}else s.updates.push(...n.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),n.transactions.some(o=>o.effects.some(s=>s.is(uy)))&&(this.pendingStart=!0);let r=this.pendingStart?50:e.activateOnTypingDelay;if(this.debounceUpdate=t.active.some(o=>o.isPending&&!this.running.some(s=>s.active.source==o.source))?setTimeout(()=>this.startUpdate(),r):-1,this.composing!=0)for(let o of n.transactions)o.isUserEvent("input.type")?this.composing=2:this.composing==2&&o.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:n}=this.view,t=n.field(Yn);for(let e of t.active)e.isPending&&!this.running.some(i=>i.active.source==e.source)&&this.startQuery(e);this.running.length&&t.open&&t.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Hi).updateSyncTime))}startQuery(n){let{state:t}=this.view,e=ac(t),i=new cy(t,e,n.explicit,this.view),r=new PI(n,i);this.running.push(r),Promise.resolve(n.source(i)).then(o=>{r.context.aborted||(r.done=o||null,this.scheduleAccept())},o=>{this.view.dispatch({effects:Yf.of(null)}),nn(this.view.state,o)})}scheduleAccept(){this.running.every(n=>n.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Hi).updateSyncTime))}accept(){var n;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],e=this.view.state.facet(Hi),i=this.view.state.field(Yn);for(let r=0;ra.source==o.active.source);if(s&&s.isPending)if(o.done==null){let a=new Os(o.active.source,0);for(let l of o.updates)a=a.update(l,e);a.isPending||t.push(a)}else this.startQuery(s)}(t.length||i.open&&i.open.disabled)&&this.view.dispatch({effects:jI.of(t)})}},{eventHandlers:{blur(n){let t=this.view.state.field(Yn,!1);if(t&&t.tooltip&&this.view.state.facet(Hi).closeOnBlur){let e=t.open&&OE(this.view,t.open.tooltip);(!e||!e.dom.contains(n.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:Yf.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:uy.of(!1)}),20),this.composing=0}}}),tse=typeof navigator=="object"&&/Win/.test(navigator.platform),ise=Tr.highest(Re.domEventHandlers({keydown(n,t){let e=t.state.field(Yn,!1);if(!e||!e.open||e.open.disabled||e.open.selected<0||n.key.length>1||n.ctrlKey&&!(tse&&n.altKey)||n.metaKey)return!1;let i=e.open.options[e.open.selected],r=e.active.find(s=>s.source==i.source),o=i.completion.commitCharacters||r.result.commitCharacters;return o&&o.indexOf(n.key)>-1&&BI(t,i),!1}})),Cz=Re.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",whiteSpace:"pre-line"},".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"}}}),FI=class{constructor(t,e,i,r){this.field=t,this.line=e,this.from=i,this.to=r}},NI=class n{constructor(t,e,i){this.field=t,this.from=e,this.to=i}map(t){let e=t.mapPos(this.from,-1,Ai.TrackDel),i=t.mapPos(this.to,1,Ai.TrackDel);return e==null||i==null?null:new n(this.field,e,i)}},LI=class n{constructor(t,e){this.lines=t,this.fieldPositions=e}instantiate(t,e){let i=[],r=[e],o=t.doc.lineAt(e),s=/^\s*/.exec(o.text)[0];for(let l of this.lines){if(i.length){let c=s,d=/^\t*/.exec(l)[0].length;for(let u=0;unew NI(l.field,r[l.line]+l.from,r[l.line]+l.to));return{text:i,ranges:a}}static parse(t){let e=[],i=[],r=[],o;for(let s of t.split(/\r\n?|\n/)){for(;o=/[#$]\{(?:(\d+)(?::([^}]*))?|((?:\\[{}]|[^}])*))\}/.exec(s);){let a=o[1]?+o[1]:null,l=o[2]||o[3]||"",c=-1,d=l.replace(/\\[{}]/g,u=>u[1]);for(let u=0;u=c&&h.field++}r.push(new FI(c,i.length,o.index,o.index+d.length)),s=s.slice(0,o.index)+l+s.slice(o.index+o[0].length)}s=s.replace(/\\([{}])/g,(a,l,c)=>{for(let d of r)d.line==i.length&&d.from>c&&(d.from--,d.to--);return l}),i.push(s)}return new n(i,r)}},nse=ve.widget({widget:new class extends In{toDOM(){let n=document.createElement("span");return n.className="cm-snippetFieldPosition",n}ignoreEvent(){return!1}}}),rse=ve.mark({class:"cm-snippetField"}),au=class n{constructor(t,e){this.ranges=t,this.active=e,this.deco=ve.set(t.map(i=>(i.from==i.to?nse:rse).range(i.from,i.to)))}map(t){let e=[];for(let i of this.ranges){let r=i.map(t);if(!r)return null;e.push(r)}return new n(e,this.active)}selectionInsideField(t){return t.ranges.every(e=>this.ranges.some(i=>i.field==this.active&&i.from<=e.from&&i.to>=e.to))}},Qf=Ue.define({map(n,t){return n&&n.map(t)}}),ose=Ue.define(),qf=zt.define({create(){return null},update(n,t){for(let e of t.effects){if(e.is(Qf))return e.value;if(e.is(ose)&&n)return new au(n.ranges,e.value)}return n&&t.docChanged&&(n=n.map(t.changes)),n&&t.selection&&!n.selectionInsideField(t.selection)&&(n=null),n},provide:n=>Re.decorations.from(n,t=>t?t.deco:ve.none)});function $I(n,t){return G.create(n.filter(e=>e.field==t).map(e=>G.range(e.from,e.to)))}function sse(n){let t=LI.parse(n);return(e,i,r,o)=>{let{text:s,ranges:a}=t.instantiate(e.state,r),{main:l}=e.state.selection,c={changes:{from:r,to:o==l.from?l.to:o,insert:ut.of(s)},scrollIntoView:!0,annotations:i?[VI.of(i),zn.userEvent.of("input.complete")]:void 0};if(a.length&&(c.selection=$I(a,0)),a.some(d=>d.field>0)){let d=new au(a,0),u=c.effects=[Qf.of(d)];e.state.field(qf,!1)===void 0&&u.push(Ue.appendConfig.of([qf,use,hse,Cz]))}e.dispatch(e.state.update(c))}}function Dz(n){return({state:t,dispatch:e})=>{let i=t.field(qf,!1);if(!i||n<0&&i.active==0)return!1;let r=i.active+n,o=n>0&&!i.ranges.some(s=>s.field==r+n);return e(t.update({selection:$I(i.ranges,r),effects:Qf.of(o?null:new au(i.ranges,r)),scrollIntoView:!0})),!0}}var ase=({state:n,dispatch:t})=>n.field(qf,!1)?(t(n.update({effects:Qf.of(null)})),!0):!1,lse=Dz(1),cse=Dz(-1);var dse=[{key:"Tab",run:lse,shift:cse},{key:"Escape",run:ase}],gz=me.define({combine(n){return n.length?n[0]:dse}}),use=Tr.highest(Ts.compute([gz],n=>n.facet(gz)));function E1e(n,t){return Object.assign(Object.assign({},t),{apply:sse(n)})}var hse=Re.domEventHandlers({mousedown(n,t){let e=t.state.field(qf,!1),i;if(!e||(i=t.posAtCoords({x:n.clientX,y:n.clientY}))==null)return!1;let r=e.ranges.find(o=>o.from<=i&&o.to>=i);return!r||r.field==e.active?!1:(t.dispatch({selection:$I(e.ranges,r.field),effects:Qf.of(e.ranges.some(o=>o.field>r.field)?new au(e.ranges,r.field):null),scrollIntoView:!0}),!0)}});var Gf={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},sc=Ue.define({map(n,t){let e=t.mapPos(n,-1,Ai.TrackAfter);return e??void 0}}),zI=new class extends oo{};zI.startSide=1;zI.endSide=-1;var xz=zt.define({create(){return Gt.empty},update(n,t){if(n=n.map(t.changes),t.selection){let e=t.state.doc.lineAt(t.selection.main.head);n=n.update({filter:i=>i>=e.from&&i<=e.to})}for(let e of t.effects)e.is(sc)&&(n=n.update({add:[zI.range(e.value,e.value+1)]}));return n}});function fy(){return[mse,xz]}var II="()[]{}<>";function Sz(n){for(let t=0;t{if((fse?n.composing:n.compositionStarted)||n.state.readOnly)return!1;let r=n.state.selection.main;if(i.length>2||i.length==2&&dr(en(i,0))==1||t!=r.from||e!=r.to)return!1;let o=gse(n.state,i);return o?(n.dispatch(o),!0):!1}),pse=({state:n,dispatch:t})=>{if(n.readOnly)return!1;let i=kz(n,n.selection.main.head).brackets||Gf.brackets,r=null,o=n.changeByRange(s=>{if(s.empty){let a=_se(n.doc,s.head);for(let l of i)if(l==a&&py(n.doc,s.head)==Sz(en(l,0)))return{changes:{from:s.head-l.length,to:s.head+l.length},range:G.cursor(s.head-l.length)}}return{range:r=s}});return r||t(n.update(o,{scrollIntoView:!0,userEvent:"delete.backward"})),!r},my=[{key:"Backspace",run:pse}];function gse(n,t){let e=kz(n,n.selection.main.head),i=e.brackets||Gf.brackets;for(let r of i){let o=Sz(en(r,0));if(t==r)return o==r?yse(n,r,i.indexOf(r+r+r)>-1,e):bse(n,r,o,e.before||Gf.before);if(t==o&&Ez(n,n.selection.main.from))return vse(n,r,o)}return null}function Ez(n,t){let e=!1;return n.field(xz).between(0,n.doc.length,i=>{i==t&&(e=!0)}),e}function py(n,t){let e=n.sliceString(t,t+2);return e.slice(0,dr(en(e,0)))}function _se(n,t){let e=n.sliceString(t-2,t);return dr(en(e,0))==e.length?e:e.slice(1)}function bse(n,t,e,i){let r=null,o=n.changeByRange(s=>{if(!s.empty)return{changes:[{insert:t,from:s.from},{insert:e,from:s.to}],effects:sc.of(s.to+t.length),range:G.range(s.anchor+t.length,s.head+t.length)};let a=py(n.doc,s.head);return!a||/\s/.test(a)||i.indexOf(a)>-1?{changes:{insert:t+e,from:s.head},effects:sc.of(s.head+t.length),range:G.cursor(s.head+t.length)}:{range:r=s}});return r?null:n.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function vse(n,t,e){let i=null,r=n.changeByRange(o=>o.empty&&py(n.doc,o.head)==e?{changes:{from:o.head,to:o.head+e.length,insert:e},range:G.cursor(o.head+e.length)}:i={range:o});return i?null:n.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function yse(n,t,e,i){let r=i.stringPrefixes||Gf.stringPrefixes,o=null,s=n.changeByRange(a=>{if(!a.empty)return{changes:[{insert:t,from:a.from},{insert:t,from:a.to}],effects:sc.of(a.to+t.length),range:G.range(a.anchor+t.length,a.head+t.length)};let l=a.head,c=py(n.doc,l),d;if(c==t){if(_z(n,l))return{changes:{insert:t+t,from:l},effects:sc.of(l+t.length),range:G.cursor(l+t.length)};if(Ez(n,l)){let h=e&&n.sliceDoc(l,l+t.length*3)==t+t+t?t+t+t:t;return{changes:{from:l,to:l+h.length,insert:h},range:G.cursor(l+h.length)}}}else{if(e&&n.sliceDoc(l-2*t.length,l)==t+t&&(d=bz(n,l-2*t.length,r))>-1&&_z(n,d))return{changes:{insert:t+t+t+t,from:l},effects:sc.of(l+t.length),range:G.cursor(l+t.length)};if(n.charCategorizer(l)(c)!=Ft.Word&&bz(n,l,r)>-1&&!wse(n,l,t,r))return{changes:{insert:t+t,from:l},effects:sc.of(l+t.length),range:G.cursor(l+t.length)}}return{range:o=a}});return o?null:n.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function _z(n,t){let e=Oi(n).resolveInner(t+1);return e.parent&&e.from==t}function wse(n,t,e,i){let r=Oi(n).resolveInner(t,-1),o=i.reduce((s,a)=>Math.max(s,a.length),0);for(let s=0;s<5;s++){let a=n.sliceDoc(r.from,Math.min(r.to,r.from+e.length+o)),l=a.indexOf(e);if(!l||l>-1&&i.indexOf(a.slice(0,l))>-1){let d=r.firstChild;for(;d&&d.from==r.from&&d.to-d.from>e.length+l;){if(n.sliceDoc(d.to-e.length,d.to)==e)return!1;d=d.firstChild}return!0}let c=r.to==t&&r.parent;if(!c)break;r=c}return!1}function bz(n,t,e){let i=n.charCategorizer(t);if(i(n.sliceDoc(t-1,t))!=Ft.Word)return t;for(let r of e){let o=t-r.length;if(n.sliceDoc(o,t)==r&&i(n.sliceDoc(o-1,o))!=Ft.Word)return o}return-1}function gy(n={}){return[ise,Yn,Hi.of(n),ese,Cse,Cz]}var Kf=[{key:"Ctrl-Space",run:pz},{mac:"Alt-`",run:pz},{key:"Escape",run:Zoe},{key:"ArrowDown",run:ly(!0)},{key:"ArrowUp",run:ly(!1)},{key:"PageDown",run:ly(!0,"page")},{key:"PageUp",run:ly(!1,"page")},{key:"Enter",run:Koe}],Cse=Tr.highest(Ts.computeN([Hi],n=>n.facet(Hi).defaultKeymap?[Kf]:[]));var by=class{constructor(t,e,i){this.from=t,this.to=e,this.diagnostic=i}},lc=class n{constructor(t,e,i){this.diagnostics=t,this.panel=e,this.selected=i}static init(t,e,i){let r=t,o=i.facet(Zf).markerFilter;o&&(r=o(r,i));let s=t.slice().sort((u,h)=>u.from-h.from||u.to-h.to),a=new cr,l=[],c=0;for(let u=0;;){let h=u==s.length?null:s[u];if(!h&&!l.length)break;let f,m;for(l.length?(f=c,m=l.reduce((_,v)=>Math.min(_,v.to),h&&h.from>f?h.from:1e8)):(f=h.from,m=h.to,l.push(h),u++);u_.from||_.to==f))l.push(_),u++,m=Math.min(_.to,m);else{m=Math.min(_.from,m);break}}let g=Rse(l);if(l.some(_=>_.from==_.to||_.from==_.to-1&&i.doc.lineAt(_.from).to==_.from))a.add(f,f,ve.widget({widget:new HI(g),diagnostics:l.slice()}));else{let _=l.reduce((v,x)=>x.markClass?v+" "+x.markClass:v,"");a.add(f,m,ve.mark({class:"cm-lintRange cm-lintRange-"+g+_,diagnostics:l.slice(),inclusiveEnd:l.some(v=>v.to>m)}))}c=m;for(let _=0;_{if(!(t&&s.diagnostics.indexOf(t)<0))if(!i)i=new by(r,o,t||s.diagnostics[0]);else{if(s.diagnostics.indexOf(i.diagnostic)<0)return!1;i=new by(i.from,o,i.diagnostic)}}),i}function Dse(n,t){let e=t.pos,i=t.end||e,r=n.state.facet(Zf).hideOn(n,e,i);if(r!=null)return r;let o=n.startState.doc.lineAt(t.pos);return!!(n.effects.some(s=>s.is(Mz))||n.changes.touchesRange(o.from,Math.max(o.to,i)))}function xse(n,t){return n.field(mr,!1)?t:t.concat(Ue.appendConfig.of(Pse))}var Mz=Ue.define(),UI=Ue.define(),Tz=Ue.define(),mr=zt.define({create(){return new lc(ve.none,null,null)},update(n,t){if(t.docChanged&&n.diagnostics.size){let e=n.diagnostics.map(t.changes),i=null,r=n.panel;if(n.selected){let o=t.changes.mapPos(n.selected.from,1);i=lu(e,n.selected.diagnostic,o)||lu(e,null,o)}!e.size&&r&&t.state.facet(Zf).autoPanel&&(r=null),n=new lc(e,r,i)}for(let e of t.effects)if(e.is(Mz)){let i=t.state.facet(Zf).autoPanel?e.value.length?Xf.open:null:n.panel;n=lc.init(e.value,i,t.state)}else e.is(UI)?n=new lc(n.diagnostics,e.value?Xf.open:null,n.selected):e.is(Tz)&&(n=new lc(n.diagnostics,n.panel,e.value));return n},provide:n=>[Jl.from(n,t=>t.panel),Re.decorations.from(n,t=>t.diagnostics)]});var Sse=ve.mark({class:"cm-lintRange cm-lintRange-active"});function kse(n,t,e){let{diagnostics:i}=n.state.field(mr),r,o=-1,s=-1;i.between(t-(e<0?1:0),t+(e>0?1:0),(l,c,{spec:d})=>{if(t>=l&&t<=c&&(l==c||(t>l||e>0)&&(tOz(n,e,!1)))}var Ise=n=>{let t=n.state.field(mr,!1);(!t||!t.panel)&&n.dispatch({effects:xse(n.state,[UI.of(!0)])});let e=ec(n,Xf.open);return e&&e.dom.querySelector(".cm-panel-lint ul").focus(),!0},Iz=n=>{let t=n.state.field(mr,!1);return!t||!t.panel?!1:(n.dispatch({effects:UI.of(!1)}),!0)},Mse=n=>{let t=n.state.field(mr,!1);if(!t)return!1;let e=n.state.selection.main,i=t.diagnostics.iter(e.to+1);return!i.value&&(i=t.diagnostics.iter(0),!i.value||i.from==e.from&&i.to==e.to)?!1:(n.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0}),!0)};var yy=[{key:"Mod-Shift-m",run:Ise,preventDefault:!0},{key:"F8",run:Mse}];var Zf=me.define({combine(n){return Object.assign({sources:n.map(t=>t.source).filter(t=>t!=null)},fn(n.map(t=>t.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(t,e)=>t?e?i=>t(i)||e(i):t:e}))}});function Az(n){let t=[];if(n)e:for(let{name:e}of n){for(let i=0;io.toLowerCase()==r.toLowerCase())){t.push(r);continue e}}t.push("")}return t}function Oz(n,t,e){var i;let r=e?Az(t.actions):[];return Pt("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},Pt("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage(n):t.message),(i=t.actions)===null||i===void 0?void 0:i.map((o,s)=>{let a=!1,l=h=>{if(h.preventDefault(),a)return;a=!0;let f=lu(n.state.field(mr).diagnostics,t);f&&o.apply(n,f.from,f.to)},{name:c}=o,d=r[s]?c.indexOf(r[s]):-1,u=d<0?c:[c.slice(0,d),Pt("u",c.slice(d,d+1)),c.slice(d+1)];return Pt("button",{type:"button",class:"cm-diagnosticAction",onclick:l,onmousedown:l,"aria-label":` Action: ${c}${d<0?"":` (access key "${r[s]})"`}.`},u)}),t.source&&Pt("div",{class:"cm-diagnosticSource"},t.source))}var HI=class extends In{constructor(t){super(),this.sev=t}eq(t){return t.sev==this.sev}toDOM(){return Pt("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}},vy=class{constructor(t,e){this.diagnostic=e,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=Oz(t,e,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}},Xf=class n{constructor(t){this.view=t,this.items=[];let e=r=>{if(r.keyCode==27)Iz(this.view),this.view.focus();else if(r.keyCode==38||r.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(r.keyCode==40||r.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(r.keyCode==36)this.moveSelection(0);else if(r.keyCode==35)this.moveSelection(this.items.length-1);else if(r.keyCode==13)this.view.focus();else if(r.keyCode>=65&&r.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:o}=this.items[this.selectedIndex],s=Az(o.actions);for(let a=0;a{for(let o=0;oIz(this.view)},"\xD7")),this.update()}get selectedIndex(){let t=this.view.state.field(mr).selected;if(!t)return-1;for(let e=0;e{for(let d of c.diagnostics){if(s.has(d))continue;s.add(d);let u=-1,h;for(let f=i;fi&&(this.items.splice(i,u-i),r=!0)),e&&h.diagnostic==e.diagnostic?h.dom.hasAttribute("aria-selected")||(h.dom.setAttribute("aria-selected","true"),o=h):h.dom.hasAttribute("aria-selected")&&h.dom.removeAttribute("aria-selected"),i++}});i({sel:o.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:a,panel:l})=>{let c=l.height/this.list.offsetHeight;a.topl.bottom&&(this.list.scrollTop+=(a.bottom-l.bottom)/c)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),r&&this.sync()}sync(){let t=this.list.firstChild;function e(){let i=t;t=i.nextSibling,i.remove()}for(let i of this.items)if(i.dom.parentNode==this.list){for(;t!=i.dom;)e();t=i.dom.nextSibling}else this.list.insertBefore(i.dom,t);for(;t;)e()}moveSelection(t){if(this.selectedIndex<0)return;let e=this.view.state.field(mr),i=lu(e.diagnostics,this.items[t].diagnostic);i&&this.view.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0,effects:Tz.of(i)})}static open(t){return new n(t)}};function Tse(n,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(n)}')`}function _y(n){return Tse(``,'width="6" height="3"')}var Ase=Re.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:_y("#d11")},".cm-lintRange-warning":{backgroundImage:_y("orange")},".cm-lintRange-info":{backgroundImage:_y("#999")},".cm-lintRange-hint":{backgroundImage:_y("#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}}});function Ose(n){return n=="error"?4:n=="warning"?3:n=="info"?2:1}function Rse(n){let t="hint",e=1;for(let i of n){let r=Ose(i.severity);r>e&&(e=r,t=i.severity)}return t}var Pse=[mr,Re.decorations.compute([mr],n=>{let{selected:t,panel:e}=n.field(mr);return!t||!e||t.from==t.to?ve.none:ve.set([Sse.range(t.from,t.to)])}),kB(kse,{hideOn:Dse}),Ase];var H1e=[bv(),vv(),mv(),$v(),s$(),hv(),fv(),Di.allowMultipleSelections.of(!0),Fv(),Lv(l$,{fallback:!0}),Vv(),fy(),gy(),gv(),_v(),pv(),ay(),Ts.of([...my,...qv,...cz,...Hv,...n$,...Kf,...yy])];var qI=class n{constructor(t,e,i,r,o,s,a,l,c,d=0,u){this.p=t,this.stack=e,this.state=i,this.reducePos=r,this.pos=o,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,i=0){let r=t.parser.context;return new n(t,[],e,i,i,0,[],0,r?new wy(r,r.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 i=t>>19,r=t&65535,{parser:o}=this.p,s=this.reducePos=2e3&&!(!((e=this.p.parser.nodeSet.types[r])===null||e===void 0)&&e.isAnonymous)&&(c==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=d):this.p.lastBigReductionSizel;)this.stack.pop();this.reduceContext(r,c)}storeNode(t,e,i,r=4,o=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&s.buffer[a-4]==0&&s.buffer[a-1]>-1){if(e==i)return;if(s.buffer[a-2]>=e){s.buffer[a-2]=i;return}}}if(!o||this.pos==i)this.buffer.push(t,e,i,r);else{let s=this.buffer.length;if(s>0&&this.buffer[s-4]!=0){let a=!1;for(let l=s;l>0&&this.buffer[l-2]>i;l-=4)if(this.buffer[l-1]>=0){a=!0;break}if(a)for(;s>0&&this.buffer[s-2]>i;)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,r>4&&(r-=4)}this.buffer[s]=t,this.buffer[s+1]=e,this.buffer[s+2]=i,this.buffer[s+3]=r}}shift(t,e,i,r){if(t&131072)this.pushState(t&65535,this.pos);else if(t&262144)this.pos=r,this.shiftContext(e,i),e<=this.p.parser.maxNode&&this.buffer.push(e,i,r,4);else{let o=t,{parser:s}=this.p;(r>this.pos||e<=s.maxNode)&&(this.pos=r,s.stateFlag(o,1)||(this.reducePos=r)),this.pushState(o,i),this.shiftContext(e,i),e<=s.maxNode&&this.buffer.push(e,i,r,4)}}apply(t,e,i,r){t&65536?this.reduce(t):this.shift(t,e,i,r)}useNode(t,e){let i=this.p.reused.length-1;(i<0||this.p.reused[i]!=t)&&(this.p.reused.push(t),i++);let r=this.pos;this.reducePos=this.pos=r+t.length,this.pushState(e,r),this.buffer.push(i,r,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 i=t.buffer.slice(e),r=t.bufferBase+e;for(;t&&r==t.bufferBase;)t=t.parent;return new n(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,r,this.curContext,this.lookAhead,t)}recoverByDelete(t,e){let i=t<=this.p.parser.maxNode;i&&this.storeNode(t,this.pos,e,4),this.storeNode(0,this.pos,e,i?8:4),this.pos=this.reducePos=e,this.score-=190}canShift(t){for(let e=new GI(this);;){let i=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,t);if(i==0)return!1;if(!(i&65536))return!0;e.reduce(i)}}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 r=[];for(let o=0,s;ol&1&&a==s)||r.push(e[o],s)}e=r}let i=[];for(let r=0;r>19,r=e&65535,o=this.stack.length-i*3;if(o<0||t.getGoto(this.stack[o],r,!1)<0){let s=this.findForcedReduction();if(s==null)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=[],i=(r,o)=>{if(!e.includes(r))return e.push(r),t.allActions(r,s=>{if(!(s&393216))if(s&65536){let a=(s>>19)-o;if(a>1){let l=s&65535,c=this.stack.length-a*3;if(c>=0&&t.getGoto(this.stack[c],l,!1)>=0)return a<<19|65536|l}}else{let a=i(s,o+1);if(a!=null)return a}})};return i(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(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!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()}},wy=class{constructor(t,e){this.tracker=t,this.context=e,this.hash=t.strict?t.hash(e):0}},GI=class{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let e=t&65535,i=t>>19;i==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(i-1)*3;let r=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=r}},QI=class n{constructor(t,e,i){this.stack=t,this.pos=e,this.index=i,this.buffer=t.buffer,this.index==0&&this.maybeNext()}static create(t,e=t.bufferBase+t.buffer.length){return new n(t,e,e-t.bufferBase)}maybeNext(){let t=this.stack.parent;t!=null&&(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,this.index==0&&this.maybeNext()}fork(){return new n(this.stack,this.pos,this.index)}};function Jf(n,t=Uint16Array){if(typeof n!="string")return n;let e=null;for(let i=0,r=0;i=92&&s--,s>=34&&s--;let l=s-32;if(l>=46&&(l-=46,a=!0),o+=l,a)break;o*=46}e?e[r++]=o:e=new t(o)}return e}var cu=class{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}},Rz=new cu,KI=class{constructor(t,e){this.input=t,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Rz,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 i=this.range,r=this.rangeIndex,o=this.pos+t;for(;oi.to:o>=i.to;){if(r==this.ranges.length-1)return null;let s=this.ranges[++r];o+=s.from-i.to,i=s}return o}clipPos(t){if(t>=this.range.from&&tt)return Math.max(t,e.from);return this.end}peek(t){let e=this.chunkOff+t,i,r;if(e>=0&&e=this.chunk2Pos&&ia.to&&(this.chunk2=this.chunk2.slice(0,a.to-i)),r=this.chunk2.charCodeAt(0)}}return i>=this.token.lookAhead&&(this.token.lookAhead=i+1),r}acceptToken(t,e=0){let i=e?this.resolveOffset(e,-1):this.pos;if(i==null||i=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.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=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=Rz,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 i="";for(let r of this.ranges){if(r.from>=e)break;r.to>t&&(i+=this.input.read(Math.max(r.from,t),Math.min(r.to,e)))}return i}},$a=class{constructor(t,e){this.data=t,this.id=e}token(t,e){let{parser:i}=e.p;Bz(this.data,t,e,this.id,i.data,i.tokenPrecTable)}};$a.prototype.contextual=$a.prototype.fallback=$a.prototype.extend=!1;var ZI=class{constructor(t,e,i){this.precTable=e,this.elseToken=i,this.data=typeof t=="string"?Jf(t):t}token(t,e){let i=t.pos,r=0;for(;;){let o=t.next<0,s=t.resolveOffset(1,1);if(Bz(this.data,t,e,0,this.data,this.precTable),t.token.value>-1)break;if(this.elseToken==null)return;if(o||r++,s==null)break;t.reset(s,t.token)}r&&(t.reset(i,t.token),t.acceptToken(this.elseToken,r))}};ZI.prototype.contextual=$a.prototype.fallback=$a.prototype.extend=!1;var Pz=class{constructor(t,e={}){this.token=t,this.contextual=!!e.contextual,this.fallback=!!e.fallback,this.extend=!!e.extend}};function Bz(n,t,e,i,r,o){let s=0,a=1<0){let m=n[f];if(l.allows(m)&&(t.token.value==-1||t.token.value==m||Nse(m,t.token.value,r,o))){t.acceptToken(m);break}}let d=t.next,u=0,h=n[s+2];if(t.next<0&&h>u&&n[c+h*3-3]==65535){s=n[c+h*3-1];continue e}for(;u>1,m=c+f+(f<<1),g=n[m],_=n[m+1]||65536;if(d=_)u=f+1;else{s=n[m+2],t.advance();continue e}}break}}function Fz(n,t,e){for(let i=t,r;(r=n[i])!=65535;i++)if(r==e)return i-t;return-1}function Nse(n,t,e,i){let r=Fz(e,i,t);return r<0||Fz(e,i,n)t)&&!i.type.isError)return e<0?Math.max(0,Math.min(i.to-1,t-25)):Math.min(n.length,Math.max(i.from+1,t+25));if(e<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return e<0?0:n.length}}var XI=class{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?Nz(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?Nz(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(o instanceof ri){if(s==t){if(s=Math.max(this.safeFrom,t)&&(this.trees.push(o),this.start.push(s),this.index.push(0))}else this.index[e]++,this.nextStart=s+o.length}}},JI=class{constructor(t,e){this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(i=>new cu)}getActions(t){let e=0,i=null,{parser:r}=t.p,{tokenizers:o}=r,s=r.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)),u.value!=0)){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&&(i=u,e>h))break}}for(;this.actions.length>e;)this.actions.pop();return l&&t.setLookAhead(l),!i&&t.pos==this.stream.end&&(i=new cu,i.value=t.p.parser.eofTerm,i.start=i.end=t.pos,e=this.addActions(t,i.value,i.end,e)),this.mainToken=i,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let e=new cu,{pos:i,p:r}=t;return e.start=i,e.end=Math.min(i+1,r.stream.end),e.value=i==r.stream.end?r.parser.eofTerm:0,e}updateCachedToken(t,e,i){let r=this.stream.clipPos(i.pos);if(e.token(this.stream.reset(r,t),i),t.value>-1){let{parser:o}=i.p;for(let s=0;s=0&&i.p.parser.dialect.allows(a>>1)){a&1?t.extended=a>>1:t.value=a>>1;break}}}else t.value=0,t.end=this.stream.clipPos(r+1)}putAction(t,e,i,r){for(let o=0;ot.bufferLength*4?new XI(i,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,e=this.minStackPos,i=this.stacks=[],r,o;if(this.bigReductionCount>300&&t.length==1){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)i.push(a);else{if(this.advanceStack(a,i,t))continue;{r||(r=[],o=[]),r.push(a);let l=this.tokens.getMainToken(a);o.push(l.value,l.end)}}break}}if(!i.length){let s=r&&Lse(r);if(s)return pr&&console.log("Finish with "+this.stackID(s)),this.stackToTree(s);if(this.parser.strict)throw pr&&r&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+e);this.recovering||(this.recovering=5)}if(this.recovering&&r){let s=this.stoppedAt!=null&&r[0].pos>this.stoppedAt?r[0]:this.runRecovery(r,o,i);if(s)return pr&&console.log("Force-finish "+this.stackID(s)),this.stackToTree(s.forceAll())}if(this.recovering){let s=this.recovering==1?1:this.recovering*3;if(i.length>s)for(i.sort((a,l)=>l.score-a.score);i.length>s;)i.pop();i.some(a=>a.reducePos>e)&&this.recovering--}else if(i.length>1){e:for(let s=0;s500&&c.buffer.length>500)if((a.score-c.score||a.buffer.length-c.buffer.length)>0)i.splice(l--,1);else{i.splice(s--,1);continue e}}}i.length>12&&i.splice(12,i.length-12)}this.minStackPos=i[0].pos;for(let s=1;s ":"";if(this.stoppedAt!=null&&r>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(r);u;){let h=this.parser.nodeSet.types[u.type.id]==u.type?o.getGoto(t.state,u.type.id):-1;if(h>-1&&u.length&&(!c||(u.prop(Qe.contextHash)||0)==d))return t.useNode(u,h),pr&&console.log(s+this.stackID(t)+` (via reuse of ${o.getName(u.type.id)})`),!0;if(!(u instanceof ri)||u.children.length==0||u.positions[0]>0)break;let f=u.children[0];if(f instanceof ri&&u.positions[0]==0)u=f;else break}}let a=o.stateSlot(t.state,4);if(a>0)return t.reduce(a),pr&&console.log(s+this.stackID(t)+` (via always-reduce ${o.getName(a&65535)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let l=this.tokens.getActions(t);for(let c=0;cr?e.push(m):i.push(m)}return!1}advanceFully(t,e){let i=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>i)return Lz(t,e),!0}}runRecovery(t,e,i){let r=null,o=!1;for(let s=0;s ":"";if(a.deadEnd&&(o||(o=!0,a.restart(),pr&&console.log(d+this.stackID(a)+" (restarted)"),this.advanceFully(a,i))))continue;let u=a.split(),h=d;for(let f=0;u.forceReduce()&&f<10&&(pr&&console.log(h+this.stackID(u)+" (via force-reduce)"),!this.advanceFully(u,i));f++)pr&&(h=this.stackID(u)+" -> ");for(let f of a.recoverByInsert(l))pr&&console.log(d+this.stackID(f)+" (via recover-insert)"),this.advanceFully(f,i);this.stream.end>a.pos?(c==a.pos&&(c++,l=0),a.recoverByDelete(l,c),pr&&console.log(d+this.stackID(a)+` (via recover-delete ${this.parser.getName(l)})`),Lz(a,i)):(!r||r.scoren,Vz=class{constructor(t){this.start=t.start,this.shift=t.shift||YI,this.reduce=t.reduce||YI,this.reuse=t.reuse||YI,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}},Cy=class n extends Zd{constructor(t){if(super(),this.wrappers=[],t.version!=14)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let e=t.nodeNames.split(" ");this.minRepeatTerm=e.length;for(let a=0;at.topRules[a][1]),r=[];for(let a=0;a=0)o(d,l,a[c++]);else{let u=a[c+-d];for(let h=-d;h>0;h--)o(a[c++],l,u);c++}}}this.nodeSet=new Rf(e.map((a,l)=>rn.define({name:l>=this.minRepeatTerm?void 0:a,id:l,props:r[l],top:i.indexOf(l)>-1,error:l==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(l)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=1024;let s=Jf(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let a=0;atypeof a=="number"?new $a(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,i){let r=new eM(this,t,e,i);for(let o of this.wrappers)r=o(r,t,e,i);return r}getGoto(t,e,i=!1){let r=this.goto;if(e>=r[0])return-1;for(let o=r[e+1];;){let s=r[o++],a=s&1,l=r[o++];if(a&&i)return l;for(let c=o+(s>>1);o0}validAction(t,e){return!!this.allActions(t,i=>i==e?!0:null)}allActions(t,e){let i=this.stateSlot(t,4),r=i?e(i):void 0;for(let o=this.stateSlot(t,1);r==null;o+=3){if(this.data[o]==65535)if(this.data[o+1]==1)o=Rs(this.data,o+2);else break;r=e(Rs(this.data,o+1))}return r}nextStates(t){let e=[];for(let i=this.stateSlot(t,1);;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=Rs(this.data,i+2);else break;if(!(this.data[i+2]&1)){let r=this.data[i+1];e.some((o,s)=>s&1&&o==r)||e.push(this.data[i],r)}}return e}configure(t){let e=Object.assign(Object.create(n.prototype),this);if(t.props&&(e.nodeSet=this.nodeSet.extend(...t.props)),t.top){let i=this.topRules[t.top];if(!i)throw new RangeError(`Invalid top rule name ${t.top}`);e.top=i}return t.tokenizers&&(e.tokenizers=this.tokenizers.map(i=>{let r=t.tokenizers.find(o=>o.from==i);return r?r.to:i})),t.specializers&&(e.specializers=this.specializers.slice(),e.specializerSpecs=this.specializerSpecs.map((i,r)=>{let o=t.specializers.find(a=>a.from==i.external);if(!o)return i;let s=Object.assign(Object.assign({},i),{external:o.to});return e.specializers[r]=jz(s),s})),t.contextTracker&&(e.context=t.contextTracker),t.dialect&&(e.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(e.strict=t.strict),t.wrap&&(e.wrappers=e.wrappers.concat(t.wrap)),t.bufferLength!=null&&(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 e==null?0:e[t]||0}parseDialect(t){let e=Object.keys(this.dialects),i=e.map(()=>!1);if(t)for(let o of t.split(" ")){let s=e.indexOf(o);s>=0&&(i[s]=!0)}let r=null;for(let o=0;oi)&&e.p.parser.stateFlag(e.state,2)&&(!t||t.scoren.external(e,i)<<1|t}return n.get}function Vse(n,t){}var cc=class{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}};var nM=(()=>{class n extends _a{constructor(e,i,r,o,s,a,l,c){super(),this._elementRef=e,this._focusTrapFactory=i,this._config=o,this._interactivityChecker=s,this._ngZone=a,this._overlayRef=l,this._focusMonitor=c,this._platform=C(Ne),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=C(_e),this._injector=C(Oe),this._isDestroyed=!1,this.attachDomPortal=d=>{this._portalOutlet.hasAttached();let u=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),u},this._document=r,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let i=this._ariaLabelledByQueue.indexOf(e);i>-1&&(this._ariaLabelledByQueue.splice(i,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_trapFocus(){this._isDestroyed||jt(()=>{let e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement()||this._focusDialogContainer();break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus);break}},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,i=null;if(typeof e=="string"?i=this._document.querySelector(e):typeof e=="boolean"?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&typeof i.focus=="function"){let r=aa(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){let e=this._elementRef.nativeElement,i=aa();return e===i||e.contains(i)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=aa()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static{this.\u0275fac=function(i){return new(i||n)(p(H),p(El),p(ce,8),p(cc),p(da),p(X),p(vs),p(yi))}}static{this.\u0275cmp=A({type:n,selectors:[["cdk-dialog-container"]],viewQuery:function(i,r){if(i&1&&le(Dn,7),i&2){let o;B(o=$())&&(r._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,r){i&2&&re("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},standalone:!0,features:[ne,O],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,r){i&1&&U(0,Vse,0,0,"ng-template",0)},dependencies:[Dn],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}}return n})(),em=class{constructor(t,e){this.overlayRef=t,this.config=e,this.closed=new k,this.disableClose=e.disableClose,this.backdropClick=t.backdropClick(),this.keydownEvents=t.keydownEvents(),this.outsidePointerEvents=t.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{i.keyCode===27&&!this.disableClose&&!xt(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=t.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(t,e){if(this.containerInstance){let i=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(t),i.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}},jse=new I("DialogScrollStrategy",{providedIn:"root",factory:()=>{let n=C(dt);return()=>n.scrollStrategies.block()}}),Bse=new I("DialogData"),$se=new I("DefaultDialogConfig");var zse=0,rM=(()=>{class n{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(e,i,r,o,s,a){this._overlay=e,this._injector=i,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new k,this._afterOpenedAtThisLevel=new k,this._ariaHiddenElements=new Map,this.afterAllClosed=_r(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(yt(void 0))),this._scrollStrategy=a}open(e,i){let r=this._defaultOptions||new cc;i=E(E({},r),i),i.id=i.id||`cdk-dialog-${zse++}`,i.id&&this.getDialogById(i.id);let o=this._getOverlayConfig(i),s=this._overlay.create(o),a=new em(s,i),l=this._attachContainer(s,a,i);return a.containerInstance=l,this._attachDialogContent(e,a,l,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){iM(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){iM(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),iM(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let i=new jn({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,r){let o=r.injector||r.viewContainerRef?.injector,s=[{provide:cc,useValue:r},{provide:em,useValue:i},{provide:vs,useValue:e}],a;r.container?typeof r.container=="function"?a=r.container:(a=r.container.type,s.push(...r.container.providers(r))):a=nM;let l=new Vn(a,r.viewContainerRef,Oe.create({parent:o||this._injector,providers:s}),r.componentFactoryResolver);return e.attach(l).instance}_attachDialogContent(e,i,r,o){if(e instanceof ct){let s=this._createInjector(o,i,r,void 0),a={$implicit:o.data,dialogRef:i};o.templateContext&&(a=E(E({},a),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),r.attachTemplatePortal(new $i(e,null,a,s))}else{let s=this._createInjector(o,i,r,this._injector),a=r.attachComponentPortal(new Vn(e,o.viewContainerRef,s,o.componentFactoryResolver));i.componentRef=a,i.componentInstance=a.instance}}_createInjector(e,i,r,o){let s=e.injector||e.viewContainerRef?.injector,a=[{provide:Bse,useValue:e.data},{provide:em,useValue:i}];return e.providers&&(typeof e.providers=="function"?a.push(...e.providers(i,e,r)):a.push(...e.providers)),e.direction&&(!s||!s.get(gt,null,{optional:!0}))&&a.push({provide:gt,useValue:{value:e.direction,change:oe()}}),Oe.create({parent:s||o,providers:a})}_removeOpenDialog(e,i){let r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,s)=>{o?s.setAttribute("aria-hidden",o):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){let e=this._overlayContainer.getContainerElement();if(e.parentElement){let i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){let o=i[r];o!==e&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static{this.\u0275fac=function(i){return new(i||n)(D(dt),D(Oe),D($se,8),D(n,12),D(ys),D(jse))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function iM(n,t){let e=n.length;for(;e--;)t(n[e])}var $z=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({providers:[rM],imports:[Ti,eo,ua,eo]})}}return n})();function Hse(n,t){}var tm=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}},oM="mdc-dialog--open",zz="mdc-dialog--opening",Hz="mdc-dialog--closing",Use=150,Wse=75,Yse=(()=>{class n extends nM{constructor(e,i,r,o,s,a,l,c,d){super(e,i,r,o,s,a,l,d),this._animationMode=c,this._animationStateChanged=new P,this._animationsEnabled=this._animationMode!=="NoopAnimations",this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?Wz(this._config.enterAnimationDuration)??Use:0,this._exitAnimationDuration=this._animationsEnabled?Wz(this._config.exitAnimationDuration)??Wse:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(Uz,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(zz,oM)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(oM),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(oM),this._animationsEnabled?(this._hostElement.style.setProperty(Uz,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Hz)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(zz,Hz)}_waitForAnimationToComplete(e,i){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let i=super.attachComponentPortal(e);return i.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),i}static{this.\u0275fac=function(i){return new(i||n)(p(H),p(El),p(ce,8),p(tm),p(da),p(X),p(vs),p(Dt,8),p(yi))}}static{this.\u0275cmp=A({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(i,r){i&2&&(Dr("id",r._config.id),re("aria-modal",r._config.ariaModal)("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),Q("_mat-animation-noopable",!r._animationsEnabled)("mat-mdc-dialog-container-with-actions",r._actionSectionCount>0))},standalone:!0,features:[ne,O],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(i,r){i&1&&(b(0,"div",0)(1,"div",1),U(2,Hse,0,0,"ng-template",2),y()())},dependencies:[Dn],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 80vw);min-width:var(--mat-dialog-container-min-width, 0)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, 80vw)}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-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));border-radius:var(--mdc-dialog-container-shape, var(--mat-app-corner-extra-large, 4px));background-color:var(--mdc-dialog-container-color, var(--mat-app-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-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}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 0 24px 9px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, var(--mat-app-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mdc-dialog-subhead-font, var(--mat-app-headline-small-font, inherit));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-app-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-app-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-app-headline-small-weight, 400));letter-spacing:var(--mdc-dialog-subhead-tracking, var(--mat-app-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, var(--mat-app-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mdc-dialog-supporting-text-font, var(--mat-app-body-medium-font, inherit));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-app-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-app-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-app-body-medium-weight, 400));letter-spacing:var(--mdc-dialog-supporting-text-tracking, var(--mat-app-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{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);padding:var(--mat-dialog-actions-padding, 8px);justify-content:var(--mat-dialog-actions-alignment, start)}.cdk-high-contrast-active .mat-mdc-dialog-actions{border-top-color:CanvasText}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],encapsulation:2})}}return n})(),Uz="--mat-dialog-transition-duration";function Wz(n){return n==null?null:typeof n=="number"?n:n.endsWith("ms")?ji(n.substring(0,n.length-2)):n.endsWith("s")?ji(n.substring(0,n.length-1))*1e3:n==="0"?0:null}var Dy=function(n){return n[n.OPEN=0]="OPEN",n[n.CLOSING=1]="CLOSING",n[n.CLOSED=2]="CLOSED",n}(Dy||{}),im=class{constructor(t,e,i){this._ref=t,this._containerInstance=i,this._afterOpened=new k,this._beforeClosed=new k,this._state=Dy.OPEN,this.disableClose=e.disableClose,this.id=t.id,t.addPanelClass("mat-mdc-dialog-panel"),i._animationStateChanged.pipe(Ae(r=>r.state==="opened"),pt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(Ae(r=>r.state==="closed"),pt(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),et(this.backdropClick(),this.keydownEvents().pipe(Ae(r=>r.keyCode===27&&!this.disableClose&&!xt(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),Yz(this,r.type==="keydown"?"keyboard":"mouse"))})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Ae(e=>e.state==="closing"),pt(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=Dy.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(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=Dy.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function Yz(n,t,e){return n._closeInteractionType=t,n.close(e)}var sM=new I("MatMdcDialogData"),qse=new I("mat-mdc-dialog-default-options"),Gse=new I("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let n=C(dt);return()=>n.scrollStrategies.block()}});var Qse=0,nm=(()=>{class n{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(e,i,r,o,s,a,l,c){this._overlay=e,this._defaultOptions=o,this._scrollStrategy=s,this._parentDialog=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new k,this._afterOpenedAtThisLevel=new k,this.dialogConfigClass=tm,this.afterAllClosed=_r(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(yt(void 0))),this._dialog=i.get(rM),this._dialogRefConstructor=im,this._dialogContainerType=Yse,this._dialogDataToken=sM}open(e,i){let r;i=E(E({},this._defaultOptions||new tm),i),i.id=i.id||`mat-mdc-dialog-${Qse++}`,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(e,Pe(E({},i),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:i},{provide:cc,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(s,a,l)=>(r=new this._dialogRefConstructor(s,i,l),r.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:r}])}));return r.componentRef=o.componentRef,r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{let s=this.openDialogs.indexOf(r);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}static{this.\u0275fac=function(i){return new(i||n)(D(dt),D(Oe),D(Mo,8),D(qse,8),D(Gse),D(n,12),D(ys),D(Dt,8))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Kse=0,qz=(()=>{class n{constructor(e,i,r){this.dialogRef=e,this._elementRef=i,this._dialog=r,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=Xz(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){let i=e._matDialogClose||e._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}_onButtonClick(e){Yz(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult)}static{this.\u0275fac=function(i){return new(i||n)(p(im,8),p(H),p(nm))}}static{this.\u0275dir=M({type:n,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(i,r){i&1&&F("click",function(s){return r._onButtonClick(s)}),i&2&&re("aria-label",r.ariaLabel||null)("type",r.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[ze]})}}return n})(),Gz=(()=>{class n{constructor(e,i,r){this._dialogRef=e,this._elementRef=i,this._dialog=r}ngOnInit(){this._dialogRef||(this._dialogRef=Xz(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static{this.\u0275fac=function(i){return new(i||n)(p(im,8),p(H),p(nm))}}static{this.\u0275dir=M({type:n,standalone:!0})}}return n})(),Qz=(()=>{class n extends Gz{constructor(){super(...arguments),this.id=`mat-mdc-dialog-title-${Kse++}`}_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xe(n)))(r||n)}})()}static{this.\u0275dir=M({type:n,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(i,r){i&2&&Dr("id",r.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],standalone:!0,features:[ne]})}}return n})(),Kz=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275dir=M({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],standalone:!0,features:[IR([io])]})}}return n})(),Zz=(()=>{class n extends Gz{_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xe(n)))(r||n)}})()}static{this.\u0275dir=M({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(i,r){i&2&&Q("mat-mdc-dialog-actions-align-start",r.align==="start")("mat-mdc-dialog-actions-align-center",r.align==="center")("mat-mdc-dialog-actions-align-end",r.align==="end")},inputs:{align:"align"},standalone:!0,features:[ne]})}}return n})();function Xz(n,t){let e=n.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?t.find(i=>i.id===e.id):null}var aM=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({providers:[nm],imports:[$z,Ti,eo,Me,Me]})}}return n})();var Xse=["*"],Jse='.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item{display:flex;position:relative;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer;padding-left:16px;padding-right:16px;background-color:var(--mdc-list-list-item-container-color);border-radius:var(--mdc-list-list-item-container-shape, var(--mat-app-corner-none))}.mdc-list-item.mdc-list-item--selected{background-color:var(--mdc-list-list-item-selected-container-color)}.mdc-list-item:focus{outline:0}.mdc-list-item.mdc-list-item--disabled{cursor:auto}.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-one-line .mdc-list-item__start{align-self:center;margin-top:0}.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{height:var(--mdc-list-list-item-two-line-container-height)}.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-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mdc-list-list-item-three-line-container-height)}.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-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--selected::before,.mdc-list-item.mdc-list-item--selected:focus::before,.mdc-list-item:not(.mdc-list-item--selected):focus::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}.cdk-high-contrast-active .mdc-list-item.mdc-list-item--selected::before,.cdk-high-contrast-active .mdc-list-item.mdc-list-item--selected:focus::before,.cdk-high-contrast-active .mdc-list-item:not(.mdc-list-item--selected):focus::before{border-color:CanvasText}.mdc-list-item.mdc-list-item--selected:focus::before,.mdc-list-item.mdc-list-item--selected::before{border-width:3px;border-style:double}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-leading-icon-color, var(--mat-app-on-surface-variant));width:var(--mdc-list-list-item-leading-icon-size);height:var(--mdc-list-list-item-leading-icon-size);margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:32px;margin-right:16px}.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-leading-avatar .mdc-list-item__start{width:var(--mdc-list-list-item-leading-avatar-size);height:var(--mdc-list-list-item-leading-avatar-size);margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item--with-leading-avatar .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mdc-list-list-item-trailing-supporting-text-font, var(--mat-app-label-small-font));line-height:var(--mdc-list-list-item-trailing-supporting-text-line-height, var(--mat-app-label-small-line-height));font-size:var(--mdc-list-list-item-trailing-supporting-text-size, var(--mat-app-label-small-size));font-weight:var(--mdc-list-list-item-trailing-supporting-text-weight, var(--mat-app-label-small-weight));letter-spacing:var(--mdc-list-list-item-trailing-supporting-text-tracking, var(--mat-app-label-small-tracking))}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-icon-color, var(--mat-app-on-surface-variant));width:var(--mdc-list-list-item-trailing-icon-size);height:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mdc-list-list-item-hover-trailing-icon-color)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-supporting-text-color, var(--mat-app-on-surface-variant))}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-selected-trailing-icon-color, var(--mat-app-primary))}.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__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--mdc-list-list-item-label-text-color, var(--mat-app-on-surface));font-family:var(--mdc-list-list-item-label-text-font, var(--mat-app-body-large-font));line-height:var(--mdc-list-list-item-label-text-line-height, var(--mat-app-body-large-line-height));font-size:var(--mdc-list-list-item-label-text-size, var(--mat-app-body-large-size));font-weight:var(--mdc-list-list-item-label-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mdc-list-list-item-label-text-tracking, var(--mat-app-body-large-tracking))}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mdc-list-list-item-hover-label-text-color, var(--mat-app-on-surface))}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mdc-list-list-item-focus-label-text-color, var(--mat-app-on-surface))}.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;color:var(--mdc-list-list-item-supporting-text-color, var(--mat-app-on-surface-variant));font-family:var(--mdc-list-list-item-supporting-text-font, var(--mat-app-body-medium-font));line-height:var(--mdc-list-list-item-supporting-text-line-height, var(--mat-app-body-medium-line-height));font-size:var(--mdc-list-list-item-supporting-text-size, var(--mat-app-body-medium-size));font-weight:var(--mdc-list-list-item-supporting-text-weight, var(--mat-app-body-medium-weight));letter-spacing:var(--mdc-list-list-item-supporting-text-tracking, var(--mat-app-body-medium-tracking))}.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--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:16px}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:16px;padding-right:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.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-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.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-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.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-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.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-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.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-trailing-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:0;padding-right:0}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-webkit-user-select:none;user-select:none;margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;line-height:normal;align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before,.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-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start,.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-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-left:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-right:0}.mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end,.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-group__subheader{margin:.75rem 16px}.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{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, var(--mat-app-on-surface));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, var(--mat-app-on-surface));opacity:var(--mdc-list-list-item-disabled-trailing-icon-opacity)}.mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing,[dir=rtl] .mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing{padding-left:0;padding-right:0}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mdc-list-list-item-disabled-label-text-color, var(--mat-app-on-surface))}.mdc-list-item:hover::before{background-color:var(--mdc-list-list-item-hover-state-layer-color, var(--mat-app-on-surface));opacity:var(--mdc-list-list-item-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mdc-list-list-item-disabled-state-layer-color, var(--mat-app-on-surface));opacity:var(--mdc-list-list-item-disabled-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mdc-list-item:focus::before{background-color:var(--mdc-list-list-item-focus-state-layer-color, var(--mat-app-on-surface));opacity:var(--mdc-list-list-item-focus-state-layer-opacity, var(--mat-app-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, var(--mat-app-corner-full));background-color:var(--mdc-list-list-item-leading-avatar-color, var(--mat-app-primary-container))}.mat-mdc-list-item-icon{font-size:var(--mdc-list-list-item-leading-icon-size)}.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:start}mat-action-list button::-moz-focus-inner{border:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-inline-start:var(--mat-list-list-item-leading-icon-start-space);margin-inline-end:var(--mat-list-list-item-leading-icon-end-space)}.mat-mdc-nav-list .mat-mdc-list-item{border-radius:var(--mat-list-active-indicator-shape, var(--mat-app-corner-full));--mat-mdc-focus-indicator-border-radius:var(--mat-list-active-indicator-shape, var(--mat-app-corner-full))}.mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated{background-color:var(--mat-list-active-indicator-color, var(--mat-app-secondary-container))}',eae=["unscopedContent"],tae=["text"],iae=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],nae=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"];var rae=new I("ListOption"),oae=(()=>{class n{constructor(e){this._elementRef=e}static{this.\u0275fac=function(i){return new(i||n)(p(H))}}static{this.\u0275dir=M({type:n,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"],standalone:!0})}}return n})(),sae=(()=>{class n{constructor(e){this._elementRef=e}static{this.\u0275fac=function(i){return new(i||n)(p(H))}}static{this.\u0275dir=M({type:n,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"],standalone:!0})}}return n})(),aae=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275dir=M({type:n,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"],standalone:!0})}}return n})(),Jz=(()=>{class n{constructor(e){this._listOption=e}_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after"}static{this.\u0275fac=function(i){return new(i||n)(p(rae,8))}}static{this.\u0275dir=M({type:n,hostVars:4,hostBindings:function(i,r){i&2&&Q("mdc-list-item__start",r._isAlignedAtStart())("mdc-list-item__end",!r._isAlignedAtStart())},standalone:!0})}}return n})(),lae=(()=>{class n extends Jz{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xe(n)))(r||n)}})()}static{this.\u0275dir=M({type:n,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],standalone:!0,features:[ne]})}}return n})(),cae=(()=>{class n extends Jz{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xe(n)))(r||n)}})()}static{this.\u0275dir=M({type:n,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],standalone:!0,features:[ne]})}}return n})(),dae=new I("MAT_LIST_CONFIG"),xy=(()=>{class n{constructor(){this._isNonInteractive=!0,this._disableRipple=!1,this._disabled=!1,this._defaultOptions=C(dae,{optional:!0})}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=ai(e)}get disabled(){return this._disabled}set disabled(e){this._disabled=ai(e)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275dir=M({type:n,hostVars:1,hostBindings:function(i,r){i&2&&re("aria-disabled",r.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},standalone:!0})}}return n})(),uae=(()=>{class n{set lines(e){this._explicitLines=ji(e,null),this._updateItemLines(!1)}get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(e){this._disableRipple=ai(e)}get disabled(){return this._disabled||!!this._listBase?.disabled}set disabled(e){this._disabled=ai(e)}get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(e,i,r,o,s,a){this._elementRef=e,this._ngZone=i,this._listBase=r,this._platform=o,this._explicitLines=null,this._disableRipple=!1,this._disabled=!1,this._subscriptions=new pe,this._rippleRenderer=null,this._hasUnscopedTextContent=!1,this.rippleConfig=s||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement=this._hostElement.nodeName.toLowerCase()==="button",this._noopAnimations=a==="NoopAnimations",r&&!r._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),this._rippleRenderer!==null&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!!(this._avatars.length||this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new xh(this,this._ngZone,this._hostElement,this._platform),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(et(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(e){if(!this._lines||!this._titles||!this._unscopedContent)return;e&&this._checkDomForUnscopedTextContent();let i=this._explicitLines??this._inferLinesFromContent(),r=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",i<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",i<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",i===2),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",i===3),this._hasUnscopedTextContent){let o=this._titles.length===0&&i===1;r.classList.toggle("mdc-list-item__primary-text",o),r.classList.toggle("mdc-list-item__secondary-text",!o)}else r.classList.remove("mdc-list-item__primary-text"),r.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{this.\u0275fac=function(i){return new(i||n)(p(H),p(X),p(xy,8),p(Ne),p(Tl,8),p(Dt,8))}}static{this.\u0275dir=M({type:n,contentQueries:function(i,r,o){if(i&1&&(He(o,lae,4),He(o,cae,4)),i&2){let s;B(s=$())&&(r._avatars=s),B(s=$())&&(r._icons=s)}},hostVars:4,hostBindings:function(i,r){i&2&&(re("aria-disabled",r.disabled)("disabled",r._isButtonElement&&r.disabled||null),Q("mdc-list-item--disabled",r.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"},standalone:!0})}}return n})();var lM=(()=>{class n extends uae{get activated(){return this._activated}set activated(e){this._activated=ai(e)}constructor(e,i,r,o,s,a){super(e,i,r,o,s,a),this._activated=!1}_getAriaCurrent(){return this._hostElement.nodeName==="A"&&this._activated?"page":null}_hasBothLeadingAndTrailing(){return this._meta.length!==0&&(this._avatars.length!==0||this._icons.length!==0)}static{this.\u0275fac=function(i){return new(i||n)(p(H),p(X),p(xy,8),p(Ne),p(Tl,8),p(Dt,8))}}static{this.\u0275cmp=A({type:n,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(i,r,o){if(i&1&&(He(o,sae,5),He(o,oae,5),He(o,aae,5)),i&2){let s;B(s=$())&&(r._lines=s),B(s=$())&&(r._titles=s),B(s=$())&&(r._meta=s)}},viewQuery:function(i,r){if(i&1&&(le(eae,5),le(tae,5)),i&2){let o;B(o=$())&&(r._unscopedContent=o.first),B(o=$())&&(r._itemText=o.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(i,r){i&2&&(re("aria-current",r._getAriaCurrent()),Q("mdc-list-item--activated",r.activated)("mdc-list-item--with-leading-avatar",r._avatars.length!==0)("mdc-list-item--with-leading-icon",r._icons.length!==0)("mdc-list-item--with-trailing-meta",r._meta.length!==0)("mat-mdc-list-item-both-leading-and-trailing",r._hasBothLeadingAndTrailing())("_mat-animation-noopable",r._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],standalone:!0,features:[ne,O],ngContentSelectors:nae,decls:10,vars:0,consts:[["unscopedContent",""],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mat-mdc-focus-indicator"]],template:function(i,r){if(i&1){let o=ye();ge(iae),Z(0),b(1,"span",1),Z(2,1),Z(3,2),b(4,"span",2,0),F("cdkObserveContent",function(){return N(o),L(r._updateItemLines(!0))}),Z(6,3),y()(),Z(7,4),Z(8,5),ie(9,"div",3)}},dependencies:[yh],encapsulation:2,changeDetection:0})}}return n})();var eOe=(()=>{class n extends xy{constructor(){super(...arguments),this._isNonInteractive=!1}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xe(n)))(r||n)}})()}static{this.\u0275cmp=A({type:n,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-mdc-nav-list","mat-mdc-list-base","mdc-list"],exportAs:["matNavList"],standalone:!0,features:[de([{provide:xy,useExisting:n}]),ne,O],ngContentSelectors:Xse,decls:1,vars:0,template:function(i,r){i&1&&(ge(),Z(0))},styles:[Jse],encapsulation:2,changeDetection:0})}}return n})();var cM=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({imports:[rd,Li,Me,Al,Sx,sV]})}}return n})();var hae=["switch"],fae=["*"];function mae(n,t){n&1&&(b(0,"span",10),Yi(),b(1,"svg",12),ie(2,"path",13),y(),b(3,"svg",14),ie(4,"path",15),y()())}var pae=new I("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),gae={provide:$t,useExisting:Ye(()=>ky),multi:!0},Sy=class{constructor(t,e){this.source=t,this.checked=e}},_ae=0,ky=(()=>{class n{_createChangeEvent(e){return new Sy(this,e)}get buttonId(){return`${this.id||this._uniqueId}-button`}focus(){this._switchElement.nativeElement.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,i,r,o,s,a){this._elementRef=e,this._focusMonitor=i,this._changeDetectorRef=r,this.defaults=s,this._onChange=l=>{},this._onTouched=()=>{},this._validatorOnChange=()=>{},this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this.change=new P,this.toggleChange=new P,this.tabIndex=parseInt(o)||0,this.color=s.color||"accent",this._noopAnimations=a==="NoopAnimations",this.id=this._uniqueId=`mat-mdc-slide-toggle-${++_ae}`,this.hideIcon=s.hideIcon??!1,this.disabledInteractive=s.disabledInteractive??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e==="keyboard"||e==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(e){e.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorOnChange=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.disabled||(this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new Sy(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static{this.\u0275fac=function(i){return new(i||n)(p(H),p(yi),p(_e),dn("tabindex"),p(pae),p(Dt,8))}}static{this.\u0275cmp=A({type:n,selectors:[["mat-slide-toggle"]],viewQuery:function(i,r){if(i&1&&le(hae,5),i&2){let o;B(o=$())&&(r._switchElement=o.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(i,r){i&2&&(Dr("id",r.id),re("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),ui(r.color?"mat-"+r.color:""),Q("mat-mdc-slide-toggle-focused",r._focused)("mat-mdc-slide-toggle-checked",r.checked)("_mat-animation-noopable",r._noopAnimations))},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],required:[2,"required","required",W],color:"color",disabled:[2,"disabled","disabled",W],disableRipple:[2,"disableRipple","disableRipple",W],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:gi(e)],checked:[2,"checked","checked",W],hideIcon:[2,"hideIcon","hideIcon",W],disabledInteractive:[2,"disabledInteractive","disabledInteractive",W]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],standalone:!0,features:[de([gae,{provide:Ji,useExisting:n,multi:!0}]),Ie,ze,O],ngContentSelectors:fae,decls:13,vars:27,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(i,r){if(i&1){let o=ye();ge(),b(0,"div",1)(1,"button",2,0),F("click",function(){return N(o),L(r._handleClick())}),ie(3,"span",3),b(4,"span",4)(5,"span",5)(6,"span",6),ie(7,"span",7),y(),b(8,"span",8),ie(9,"span",9),y(),U(10,mae,5,0,"span",10),y()()(),b(11,"label",11),F("click",function(a){return N(o),L(a.stopPropagation())}),Z(12),y()()}if(i&2){let o=Zt(2);q("labelPosition",r.labelPosition),w(),Q("mdc-switch--selected",r.checked)("mdc-switch--unselected",!r.checked)("mdc-switch--checked",r.checked)("mdc-switch--disabled",r.disabled)("mat-mdc-slide-toggle-disabled-interactive",r.disabledInteractive),q("tabIndex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex)("disabled",r.disabled&&!r.disabledInteractive),re("id",r.buttonId)("name",r.name)("aria-label",r.ariaLabel)("aria-labelledby",r._getAriaLabelledBy())("aria-describedby",r.ariaDescribedby)("aria-required",r.required||null)("aria-checked",r.checked)("aria-disabled",r.disabled&&r.disabledInteractive?"true":null),w(8),q("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),w(),Y(r.hideIcon?-1:10),w(),q("for",r.buttonId),re("id",r._labelId)}},dependencies:[Jr,nN],styles:['.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative;width:var(--mdc-switch-track-width)}.mdc-switch.mdc-switch--disabled{cursor:default;pointer-events:none}.mdc-switch.mat-mdc-slide-toggle-disabled-interactive{pointer-events:auto}.mdc-switch__track{overflow:hidden;position:relative;width:100%;height:var(--mdc-switch-track-height);border-radius:var(--mdc-switch-track-shape, var(--mat-app-corner-full))}.mdc-switch--disabled.mdc-switch .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity)}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%;border-width:var(--mat-switch-track-outline-width);border-color:var(--mat-switch-track-outline-color, var(--mat-app-outline))}.cdk-high-contrast-active .mdc-switch__track::before,.cdk-high-contrast-active .mdc-switch__track::after{border-color:currentColor}.mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track::after{border-width:var(--mat-switch-selected-track-outline-width);border-color:var(--mat-switch-selected-track-outline-color)}.mdc-switch--disabled .mdc-switch__track::before,.mdc-switch--disabled .mdc-switch__track::after{border-width:var(--mat-switch-disabled-unselected-track-outline-width);border-color:var(--mat-switch-disabled-unselected-track-outline-color, var(--mat-app-on-surface))}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0);background:var(--mdc-switch-unselected-track-color, var(--mat-app-surface-variant))}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch--selected .mdc-switch__track::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color, var(--mat-app-surface-variant))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color, var(--mat-app-surface-variant))}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color, var(--mat-app-surface-variant))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::before,.mdc-switch.mdc-switch--disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color, var(--mat-app-surface-variant))}.mdc-switch__track::after{transform:translateX(-100%);background:var(--mdc-switch-selected-track-color, var(--mat-app-primary))}[dir=rtl] .mdc-switch__track::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::after{transform:translateX(0)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color, var(--mat-app-primary))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color, var(--mat-app-primary))}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color, var(--mat-app-primary))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::after,.mdc-switch.mdc-switch--disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color, var(--mat-app-on-surface))}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0);width:calc(100% - var(--mdc-switch-handle-width))}[dir=rtl] .mdc-switch__handle-track{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto;transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1);width:var(--mdc-switch-handle-width);height:var(--mdc-switch-handle-height);border-radius:var(--mdc-switch-handle-shape, var(--mat-app-corner-full))}[dir=rtl] .mdc-switch__handle{left:auto;right:0}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-switch-unselected-handle-size);height:var(--mat-switch-unselected-handle-size);margin:var(--mat-switch-unselected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-unselected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-switch-selected-handle-size);height:var(--mat-switch-selected-handle-size);margin:var(--mat-switch-selected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-selected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-switch-with-icon-handle-size);height:var(--mat-switch-with-icon-handle-size)}.mat-mdc-slide-toggle .mdc-switch:active:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-switch-pressed-handle-size);height:var(--mat-switch-pressed-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-selected-pressed-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-unselected-pressed-handle-horizontal-margin)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-selected-handle-opacity)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-unselected-handle-opacity)}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}.cdk-high-contrast-active .mdc-switch__handle::before,.cdk-high-contrast-active .mdc-switch__handle::after{border-color:currentColor}.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color, var(--mat-app-on-primary))}.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color, var(--mat-app-primary-container))}.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color, var(--mat-app-primary-container))}.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color, var(--mat-app-primary-container))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:hover:not(:focus):not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:focus:not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:active .mdc-switch__handle::after,.mdc-switch--selected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color, var(--mat-app-surface))}.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color, var(--mat-app-outline))}.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color, var(--mat-app-on-surface-variant))}.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color, var(--mat-app-on-surface-variant))}.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color, var(--mat-app-on-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color, var(--mat-app-on-surface))}.mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color)}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation-shadow)}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__shadow,.mdc-switch.mdc-switch--disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation-shadow)}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1;width:var(--mdc-switch-state-layer-size);height:var(--mdc-switch-state-layer-size)}.mdc-switch__ripple::after{content:"";opacity:0}.mdc-switch--disabled .mdc-switch__ripple::after{display:none}.mat-mdc-slide-toggle-disabled-interactive .mdc-switch__ripple::after{display:block}.mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:75ms opacity cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:focus .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:active .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:hover:not(:focus) .mdc-switch__ripple::after,.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-hover-state-layer-color, var(--mat-app-on-surface))}.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-focus-state-layer-color, var(--mat-app-on-surface))}.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-pressed-state-layer-color, var(--mat-app-on-surface));opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mdc-switch-selected-hover-state-layer-color, var(--mat-app-primary))}.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background:var(--mdc-switch-selected-focus-state-layer-color, var(--mat-app-primary))}.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background:var(--mdc-switch-selected-pressed-state-layer-color, var(--mat-app-primary));opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch__icons{position:relative;height:100%;width:100%;z-index:1}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity)}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size);height:var(--mdc-switch-unselected-icon-size);fill:var(--mdc-switch-unselected-icon-color, var(--mat-app-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color, var(--mat-app-surface-variant))}.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size);height:var(--mdc-switch-selected-icon-size);fill:var(--mdc-switch-selected-icon-color, var(--mat-app-on-primary-container))}.mdc-switch--selected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color, var(--mat-app-on-surface))}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle{-webkit-user-select:none;user-select:none;display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-internal-form-field{color:var(--mat-switch-label-text-color, var(--mat-app-on-surface));font-family:var(--mat-switch-label-text-font, var(--mat-app-body-medium-font));line-height:var(--mat-switch-label-text-line-height, var(--mat-app-body-medium-line-height));font-size:var(--mat-switch-label-text-size, var(--mat-app-body-medium-size));letter-spacing:var(--mat-switch-label-text-tracking, var(--mat-app-body-medium-tracking));font-weight:var(--mat-switch-label-text-weight, var(--mat-app-body-medium-weight))}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mdc-switch-disabled-label-text-color)}'],encapsulation:2,changeDetection:0})}}return n})();var dM=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({imports:[ky,Me,Me]})}}return n})();var uM=class{constructor(t,e){this._document=e;let i=this._textarea=this._document.createElement("textarea"),r=i.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",i.setAttribute("aria-hidden","true"),i.value=t,i.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(i)}copy(){let t=this._textarea,e=!1;try{if(t){let i=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch{}return e}destroy(){let t=this._textarea;t&&(t.remove(),this._textarea=void 0)}},eH=(()=>{class n{constructor(e){this._document=e}copy(e){let i=this.beginCopy(e),r=i.copy();return i.destroy(),r}beginCopy(e){return new uM(e,this._document)}static{this.\u0275fac=function(i){return new(i||n)(D(ce))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function _H(n){let t=n.cloneNode(!0),e=t.querySelectorAll("[id]"),i=n.nodeName.toLowerCase();t.removeAttribute("id");for(let r=0;r=i&&e<=r&&t>=o&&t<=s}function om(n,t,e){n.top+=t,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function rH(n,t,e,i){let{top:r,right:o,bottom:s,left:a,width:l,height:c}=n,d=l*t,u=c*t;return i>r-u&&ia-d&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:vM(e)})})}handleScroll(t){let e=vi(t),i=this.positions.get(e);if(!i)return null;let r=i.scrollPosition,o,s;if(e===this._document){let c=this.getViewportScrollPosition();o=c.top,s=c.left}else o=e.scrollTop,s=e.scrollLeft;let a=r.top-o,l=r.left-s;return this.positions.forEach((c,d)=>{c.clientRect&&e!==d&&e.contains(d)&&om(c.clientRect,a,l)}),r.top=o,r.left=s,{top:a,left:l}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}};function bH(n,t){let e=n.rootNodes;if(e.length===1&&e[0].nodeType===t.ELEMENT_NODE)return e[0];let i=t.createElement("div");return e.forEach(r=>i.appendChild(r)),i}function yM(n,t,e){for(let i in t)if(t.hasOwnProperty(i)){let r=t[i];r?n.setProperty(i,r,e?.has(i)?"important":""):n.removeProperty(i)}return n}function du(n,t){let e=t?"":"none";yM(n.style,{"touch-action":t?"":"none","-webkit-user-drag":t?"":"none","-webkit-tap-highlight-color":t?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function oH(n,t,e){yM(n.style,{position:t?"":"fixed",top:t?"":"0",opacity:t?"":"0",left:t?"":"-999em"},e)}function Ay(n,t){return t&&t!="none"?n+" "+t:n}function sH(n,t){n.style.width=`${t.width}px`,n.style.height=`${t.height}px`,n.style.transform=Oy(t.left,t.top)}function Oy(n,t){return`translate3d(${Math.round(n)}px, ${Math.round(t)}px, 0)`}function aH(n){let t=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*t}function yae(n){let t=getComputedStyle(n),e=hM(t,"transition-property"),i=e.find(a=>a==="transform"||a==="all");if(!i)return 0;let r=e.indexOf(i),o=hM(t,"transition-duration"),s=hM(t,"transition-delay");return aH(o[r])+aH(s[r])}function hM(n,t){return n.getPropertyValue(t).split(",").map(i=>i.trim())}var wae=new Set(["position"]),mM=class{get element(){return this._preview}constructor(t,e,i,r,o,s,a,l,c){this._document=t,this._rootElement=e,this._direction=i,this._initialDomRect=r,this._previewTemplate=o,this._previewClass=s,this._pickupPositionOnPage=a,this._initialTransform=l,this._zIndex=c}attach(t){this._preview=this._createPreview(),t.appendChild(this._preview),lH(this._preview)&&this._preview.showPopover()}destroy(){this._preview.remove(),this._previewEmbeddedView?.destroy(),this._preview=this._previewEmbeddedView=null}setTransform(t){this._preview.style.transform=t}getBoundingClientRect(){return this._preview.getBoundingClientRect()}addClass(t){this._preview.classList.add(t)}getTransitionDuration(){return yae(this._preview)}addEventListener(t,e){this._preview.addEventListener(t,e)}removeEventListener(t,e){this._preview.removeEventListener(t,e)}_createPreview(){let t=this._previewTemplate,e=this._previewClass,i=t?t.template:null,r;if(i&&t){let o=t.matchSize?this._initialDomRect:null,s=t.viewContainer.createEmbeddedView(i,t.context);s.detectChanges(),r=bH(s,this._document),this._previewEmbeddedView=s,t.matchSize?sH(r,o):r.style.transform=Oy(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=_H(this._rootElement),sH(r,this._initialDomRect),this._initialTransform&&(r.style.transform=this._initialTransform);return yM(r.style,{"pointer-events":"none",margin:lH(r)?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},wae),du(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("popover","manual"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(o=>r.classList.add(o)):r.classList.add(e)),r}};function lH(n){return"showPopover"in n}var cH=hi({passive:!0}),Ey=hi({passive:!1}),dH=hi({passive:!1,capture:!0}),Cae=800,uH=new Set(["position"]),pM=class{get disabled(){return this._disabled||!!(this._dropContainer&&this._dropContainer.disabled)}set disabled(t){t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions(),this._handles.forEach(e=>du(e,t)))}constructor(t,e,i,r,o,s){this._config=e,this._document=i,this._ngZone=r,this._viewportRuler=o,this._dragDropRegistry=s,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=di(!1),this._moveEvents=new k,this._pointerMoveSubscription=pe.EMPTY,this._pointerUpSubscription=pe.EMPTY,this._scrollSubscription=pe.EMPTY,this._resizeSubscription=pe.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this.scale=1,this._disabled=!1,this.beforeStarted=new k,this.started=new k,this.released=new k,this.ended=new k,this.entered=new k,this.exited=new k,this.dropped=new k,this.moved=this._moveEvents,this._pointerDown=a=>{if(this.beforeStarted.next(),this._handles.length){let l=this._getTargetHandle(a);l&&!this._disabledHandles.has(l)&&!this.disabled&&this._initializeDragSequence(l,a)}else this.disabled||this._initializeDragSequence(this._rootElement,a)},this._pointerMove=a=>{let l=this._getPointerPositionOnPage(a);if(!this._hasStartedDragging()){let d=Math.abs(l.x-this._pickupPositionOnPage.x),u=Math.abs(l.y-this._pickupPositionOnPage.y);if(d+u>=this._config.dragStartThreshold){let f=Date.now()>=this._dragStartTime+this._getDragStartDelay(a),m=this._dropContainer;if(!f){this._endDragSequence(a);return}(!m||!m.isDragging()&&!m.isReceiving())&&(a.cancelable&&a.preventDefault(),this._hasStartedDragging.set(!0),this._ngZone.run(()=>this._startDragSequence(a)))}return}a.cancelable&&a.preventDefault();let c=this._getConstrainedPointerPosition(l);if(this._hasMoved=!0,this._lastKnownPointerPosition=l,this._updatePointerDirectionDelta(c),this._dropContainer)this._updateActiveDropContainer(c,l);else{let d=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,u=this._activeTransform;u.x=c.x-d.x+this._passiveTransform.x,u.y=c.y-d.y+this._passiveTransform.y,this._applyRootElementTransform(u.x,u.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:c,event:a,distance:this._getDragDistance(c),delta:this._pointerDirectionDelta})})},this._pointerUp=a=>{this._endDragSequence(a)},this._nativeDragStart=a=>{if(this._handles.length){let l=this._getTargetHandle(a);l&&!this._disabledHandles.has(l)&&!this.disabled&&a.preventDefault()}else this.disabled||a.preventDefault()},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new Ty(i),s.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(i=>Ii(i)),this._handles.forEach(i=>du(i,this.disabled)),this._toggleNativeDragInteractions();let e=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&e.add(i)}),this._disabledHandles=e,this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){let e=Ii(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,Ey),e.addEventListener("touchstart",this._pointerDown,cH),e.addEventListener("dragstart",this._nativeDragStart,Ey)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?Ii(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeListeners(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging()&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),du(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),du(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){let t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){let t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeListeners(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe(),this._getShadowRoot()?.removeEventListener("selectstart",fH,dH)}_destroyPreview(){this._preview?.destroy(),this._preview=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),!!this._hasStartedDragging()))if(this.released.next({source:this,event:t}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;let e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:t})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){rm(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();let e=this._getShadowRoot(),i=this._dropContainer;if(e&&this._ngZone.runOutsideAngular(()=>{e.addEventListener("selectstart",fH,dH)}),i){let r=this._rootElement,o=r.parentNode,s=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment("");o.insertBefore(a,r),this._initialTransform=r.style.transform||"",this._preview=new mM(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1e3),this._preview.attach(this._getPreviewInsertionPoint(o,e)),oH(r,!1,uH),this._document.body.appendChild(o.replaceChild(s,r)),this.started.next({source:this,event:t}),i.start(),this._initialContainer=i,this._initialIndex=i.getItemIndex(this)}else this.started.next({source:this,event:t}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(i?i.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();let i=this.isDragging(),r=rm(e),o=!r&&e.button!==0,s=this._rootElement,a=vi(e),l=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+Cae>Date.now(),c=r?Ml(e):Il(e);if(a&&a.draggable&&e.type==="mousedown"&&e.preventDefault(),i||o||l||c)return;if(this._handles.length){let h=s.style;this._rootElementTapHighlight=h.webkitTapHighlightColor||"",h.webkitTapHighlightColor="transparent"}this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),this._removeListeners(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(h=>this._updateOnScroll(h)),this._boundaryElement&&(this._boundaryRect=vM(this._boundaryElement));let d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,t,e);let u=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:u.x,y:u.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){oH(this._rootElement,!0,uH),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{let e=this._dropContainer,i=e.getItemIndex(this),r=this._getPointerPositionOnPage(t),o=this._getDragDistance(r),s=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:o,dropPoint:r,event:t}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:s,distance:o,dropPoint:r,event:t}),e.drop(this,i,this._initialIndex,this._initialContainer,s,o,r,t),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:i,y:r}){let o=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(o=this._initialContainer),o&&o!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=o,this._dropContainer.enter(this,t,e,o===this._initialContainer&&o.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:o,currentIndex:o.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,r),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(t,e):this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();let t=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);let e=this._preview.getTransitionDuration();return e===0?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{let r=s=>{(!s||this._preview&&vi(s)===this._preview.element&&s.propertyName==="transform")&&(this._preview?.removeEventListener("transitionend",r),i(),clearTimeout(o))},o=setTimeout(r,e*1.5);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){let t=this._placeholderTemplate,e=t?t.template:null,i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=bH(this._placeholderRef,this._document)):i=_H(this._rootElement),i.style.pointerEvents="none",i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e,i){let r=e===this._rootElement?null:e,o=r?r.getBoundingClientRect():t,s=rm(i)?i.targetTouches[0]:i,a=this._getViewportScrollPosition(),l=s.pageX-o.left-a.left,c=s.pageY-o.top-a.top;return{x:o.left-t.left+l,y:o.top-t.top+c}}_getPointerPositionOnPage(t){let e=this._getViewportScrollPosition(),i=rm(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,r=i.pageX-e.left,o=i.pageY-e.top;if(this._ownerSVGElement){let s=this._ownerSVGElement.getScreenCTM();if(s){let a=this._ownerSVGElement.createSVGPoint();return a.x=r,a.y=o,a.matrixTransform(s.inverse())}}return{x:r,y:o}}_getConstrainedPointerPosition(t){let e=this._dropContainer?this._dropContainer.lockAxis:null,{x:i,y:r}=this.constrainPosition?this.constrainPosition(t,this,this._initialDomRect,this._pickupPositionInElement):t;if(this.lockAxis==="x"||e==="x"?r=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):(this.lockAxis==="y"||e==="y")&&(i=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){let{x:o,y:s}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,a=this._boundaryRect,{width:l,height:c}=this._getPreviewRect(),d=a.top+s,u=a.bottom-(c-s),h=a.left+o,f=a.right-(l-o);i=hH(i,h,f),r=hH(r,d,u)}return{x:i,y:r}}_updatePointerDirectionDelta(t){let{x:e,y:i}=t,r=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,s=Math.abs(e-o.x),a=Math.abs(i-o.y);return s>this._config.pointerDirectionChangeThreshold&&(r.x=e>o.x?1:-1,o.x=e),a>this._config.pointerDirectionChangeThreshold&&(r.y=i>o.y?1:-1,o.y=i),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;let t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,du(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,Ey),t.removeEventListener("touchstart",this._pointerDown,cH),t.removeEventListener("dragstart",this._nativeDragStart,Ey)}_applyRootElementTransform(t,e){let i=1/this.scale,r=Oy(t*i,e*i),o=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=o.transform&&o.transform!="none"?o.transform:""),o.transform=Ay(r,this._initialTransform)}_applyPreviewTransform(t,e){let i=this._previewTemplate?.template?void 0:this._initialTransform,r=Oy(t,e);this._preview.setTransform(Ay(r,i))}_getDragDistance(t){let e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(t===0&&e===0||this.isDragging()||!this._boundaryElement)return;let i=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(r.width===0&&r.height===0||i.width===0&&i.height===0)return;let o=r.left-i.left,s=i.right-r.right,a=r.top-i.top,l=i.bottom-r.bottom;r.width>i.width?(o>0&&(t+=o),s>0&&(t-=s)):t=0,r.height>i.height?(a>0&&(e+=a),l>0&&(e-=l)):e=0,(t!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){let e=this.dragStartDelay;return typeof e=="number"?e:rm(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){let e=this._parentPositions.handleScroll(t);if(e){let i=vi(t);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&om(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return this._cachedShadowRoot===void 0&&(this._cachedShadowRoot=nd(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){let i=this._previewContainer||"global";if(i==="parent")return t;if(i==="global"){let r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return Ii(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_getTargetHandle(t){return this._handles.find(e=>t.target&&(t.target===e||e.contains(t.target)))}};function hH(n,t,e){return Math.max(t,Math.min(e,n))}function rm(n){return n.type[0]==="t"}function fH(n){n.preventDefault()}function vH(n,t,e){let i=mH(t,n.length-1),r=mH(e,n.length-1);if(i===r)return;let o=n[i],s=r0)return null;let a=this.orientation==="horizontal",l=o.findIndex(_=>_.drag===t),c=o[s],d=o[l].clientRect,u=c.clientRect,h=l>s?1:-1,f=this._getItemOffsetPx(d,u,h),m=this._getSiblingOffsetPx(l,o,h),g=o.slice();return vH(o,l,s),o.forEach((_,v)=>{if(g[v]===_)return;let x=_.drag===t,R=x?f:m,V=x?t.getPlaceholderElement():_.drag.getRootElement();_.offset+=R;let j=Math.round(_.offset*(1/_.drag.scale));a?(V.style.transform=Ay(`translate3d(${j}px, 0, 0)`,_.initialTransform),om(_.clientRect,0,R)):(V.style.transform=Ay(`translate3d(0, ${j}px, 0)`,_.initialTransform),om(_.clientRect,R,0))}),this._previousSwap.overlaps=fM(u,e,i),this._previousSwap.drag=c.drag,this._previousSwap.delta=a?r.x:r.y,{previousIndex:l,currentIndex:s}}enter(t,e,i,r){let o=r==null||r<0?this._getItemIndexFromPointerPosition(t,e,i):r,s=this._activeDraggables,a=s.indexOf(t),l=t.getPlaceholderElement(),c=s[o];if(c===t&&(c=s[o+1]),!c&&(o==null||o===-1||o-1&&s.splice(a,1),c&&!this._dragDropRegistry.isDragging(c)){let d=c.getRootElement();d.parentElement.insertBefore(l,d),s.splice(o,0,t)}else this._element.appendChild(l),s.push(t);l.style.transform="",this._cacheItemPositions()}withItems(t){this._activeDraggables=t.slice(),this._cacheItemPositions()}withSortPredicate(t){this._sortPredicate=t}reset(){this._activeDraggables?.forEach(t=>{let e=t.getRootElement();if(e){let i=this._itemPositions.find(r=>r.drag===t)?.initialTransform;e.style.transform=i||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(t){return(this.orientation==="horizontal"&&this.direction==="rtl"?this._itemPositions.slice().reverse():this._itemPositions).findIndex(i=>i.drag===t)}updateOnScroll(t,e){this._itemPositions.forEach(({clientRect:i})=>{om(i,t,e)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}withElementContainer(t){this._element=t}_cacheItemPositions(){let t=this.orientation==="horizontal";this._itemPositions=this._activeDraggables.map(e=>{let i=e.getVisibleElement();return{drag:e,offset:0,initialTransform:i.style.transform||"",clientRect:vM(i)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_getItemOffsetPx(t,e,i){let r=this.orientation==="horizontal",o=r?e.left-t.left:e.top-t.top;return i===-1&&(o+=r?e.width-t.width:e.height-t.height),o}_getSiblingOffsetPx(t,e,i){let r=this.orientation==="horizontal",o=e[t].clientRect,s=e[t+i*-1],a=o[r?"width":"height"]*i;if(s){let l=r?"left":"top",c=r?"right":"bottom";i===-1?a-=s.clientRect[l]-o[c]:a+=o[l]-s.clientRect[c]}return a}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;let i=this._itemPositions,r=this.orientation==="horizontal";if(i[0].drag!==this._activeDraggables[0]){let s=i[i.length-1].clientRect;return r?t>=s.right:e>=s.bottom}else{let s=i[0].clientRect;return r?t<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(t,e,i,r){let o=this.orientation==="horizontal",s=this._itemPositions.findIndex(({drag:a,clientRect:l})=>{if(a===t)return!1;if(r){let c=o?r.x:r.y;if(a===this._previousSwap.drag&&this._previousSwap.overlaps&&c===this._previousSwap.delta)return!1}return o?e>=Math.floor(l.left)&&e=Math.floor(l.top)&&il?d.after(c):d.before(c),vH(this._activeItems,l,o);let u=this._getRootNode().elementFromPoint(e,i);return s.deltaX=r.x,s.deltaY=r.y,s.drag=a,s.overlaps=d===u||d.contains(u),{previousIndex:l,currentIndex:o}}enter(t,e,i,r){let o=r==null||r<0?this._getItemIndexFromPointerPosition(t,e,i):r;o===-1&&(o=this._getClosestItemIndexToPointer(t,e,i));let s=this._activeItems[o],a=this._activeItems.indexOf(t);a>-1&&this._activeItems.splice(a,1),s&&!this._dragDropRegistry.isDragging(s)?(this._activeItems.splice(o,0,t),s.getRootElement().before(t.getPlaceholderElement())):(this._activeItems.push(t),this._element.appendChild(t.getPlaceholderElement()))}withItems(t){this._activeItems=t.slice()}withSortPredicate(t){this._sortPredicate=t}reset(){let t=this._element,e=this._previousSwap;for(let i=this._relatedNodes.length-1;i>-1;i--){let[r,o]=this._relatedNodes[i];r.parentNode===t&&r.nextSibling!==o&&(o===null?t.appendChild(r):o.parentNode===t&&t.insertBefore(r,o))}this._relatedNodes=[],this._activeItems=[],e.drag=null,e.deltaX=e.deltaY=0,e.overlaps=!1}getActiveItemsSnapshot(){return this._activeItems}getItemIndex(t){return this._activeItems.indexOf(t)}updateOnScroll(){this._activeItems.forEach(t=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}withElementContainer(t){t!==this._element&&(this._element=t,this._rootNode=void 0)}_getItemIndexFromPointerPosition(t,e,i){let r=this._getRootNode().elementFromPoint(Math.floor(e),Math.floor(i)),o=r?this._activeItems.findIndex(s=>{let a=s.getRootElement();return r===a||a.contains(r)}):-1;return o===-1||!this._sortPredicate(o,t)?-1:o}_getRootNode(){return this._rootNode||(this._rootNode=nd(this._element)||this._document),this._rootNode}_getClosestItemIndexToPointer(t,e,i){if(this._activeItems.length===0)return-1;if(this._activeItems.length===1)return 0;let r=1/0,o=-1;for(let s=0;s!0,this.sortPredicate=()=>!0,this.beforeStarted=new k,this.entered=new k,this.exited=new k,this.dropped=new k,this.sorted=new k,this.receivingStarted=new k,this.receivingStopped=new k,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=pe.EMPTY,this._verticalScrollDirection=Nr.NONE,this._horizontalScrollDirection=Mn.NONE,this._stopScrollTimers=new k,this._cachedShadowRoot=null,this._scrollableElements=[],this._direction="ltr",this._startScrollInterval=()=>{this._stopScrolling(),b0(0,Tm).pipe(Ce(this._stopScrollTimers)).subscribe(()=>{let a=this._scrollNode,l=this.autoScrollStep;this._verticalScrollDirection===Nr.UP?a.scrollBy(0,-l):this._verticalScrollDirection===Nr.DOWN&&a.scrollBy(0,l),this._horizontalScrollDirection===Mn.LEFT?a.scrollBy(-l,0):this._horizontalScrollDirection===Mn.RIGHT&&a.scrollBy(l,0)})};let s=this.element=Ii(t);this._document=i,this.withOrientation("vertical").withElementContainer(s),e.registerDropContainer(this),this._parentPositions=new Ty(i)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(t,e,i,r){this._draggingStarted(),r==null&&this.sortingDisabled&&(r=this._draggables.indexOf(t)),this._sortStrategy.enter(t,e,i,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,r,o,s,a,l={}){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:r,isPointerOverContainer:o,distance:s,dropPoint:a,event:l})}withItems(t){let e=this._draggables;return this._draggables=t,t.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>t.indexOf(r)===-1)?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(t){return this._direction=t,this._sortStrategy instanceof Ry&&(this._sortStrategy.direction=t),this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){if(t==="mixed")this._sortStrategy=new gM(this._document,this._dragDropRegistry);else{let e=new Ry(this._dragDropRegistry);e.direction=this._direction,e.orientation=t,this._sortStrategy=e}return this._sortStrategy.withElementContainer(this._container),this._sortStrategy.withSortPredicate((e,i)=>this.sortPredicate(e,i,this)),this}withScrollableParents(t){let e=this._container;return this._scrollableElements=t.indexOf(e)===-1?[e,...t]:t.slice(),this}withElementContainer(t){if(t===this._container)return this;let e=Ii(this.element),i=this._scrollableElements.indexOf(this._container),r=this._scrollableElements.indexOf(t);return i>-1&&this._scrollableElements.splice(i,1),r>-1&&this._scrollableElements.splice(r,1),this._sortStrategy&&this._sortStrategy.withElementContainer(t),this._cachedShadowRoot=null,this._scrollableElements.unshift(t),this._container=t,this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?this._sortStrategy.getItemIndex(t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,r){if(this.sortingDisabled||!this._domRect||!rH(this._domRect,pH,e,i))return;let o=this._sortStrategy.sort(t,e,i,r);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:t})}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,r=Nr.NONE,o=Mn.NONE;if(this._parentPositions.positions.forEach((s,a)=>{a===this._document||!s.clientRect||i||rH(s.clientRect,pH,t,e)&&([r,o]=Dae(a,s.clientRect,this._direction,t,e),(r||o)&&(i=a))}),!r&&!o){let{width:s,height:a}=this._viewportRuler.getViewportSize(),l={width:s,height:a,top:0,right:s,bottom:a,left:0};r=wH(l,e),o=CH(l,t),i=window}i&&(r!==this._verticalScrollDirection||o!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=i,(r||o)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){let t=this._container.style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(this._container).clientRect}_reset(){this._isDragging=!1;let t=this._container.style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(t,e){return this._domRect!=null&&fM(this._domRect,t,e)}_getSiblingContainerFromPosition(t,e,i){return this._siblings.find(r=>r._canReceive(t,e,i))}_canReceive(t,e,i){if(!this._domRect||!fM(this._domRect,e,i)||!this.enterPredicate(t,this))return!1;let r=this._getShadowRoot().elementFromPoint(e,i);return r?r===this._container||this._container.contains(r):!1}_startReceiving(t,e){let i=this._activeSiblings;!i.has(t)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(i.add(t),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:t,receiver:this,items:e}))}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:t,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(t=>{if(this.isDragging()){let e=this._parentPositions.handleScroll(t);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){let t=nd(this._container);this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){let t=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}};function wH(n,t){let{top:e,bottom:i,height:r}=n,o=r*yH;return t>=e-o&&t<=e+o?Nr.UP:t>=i-o&&t<=i+o?Nr.DOWN:Nr.NONE}function CH(n,t){let{left:e,right:i,width:r}=n,o=r*yH;return t>=e-o&&t<=e+o?Mn.LEFT:t>=i-o&&t<=i+o?Mn.RIGHT:Mn.NONE}function Dae(n,t,e,i,r){let o=wH(t,r),s=CH(t,i),a=Nr.NONE,l=Mn.NONE;if(o){let c=n.scrollTop;o===Nr.UP?c>0&&(a=Nr.UP):n.scrollHeight-c>n.clientHeight&&(a=Nr.DOWN)}if(s){let c=n.scrollLeft;e==="rtl"?s===Mn.RIGHT?c<0&&(l=Mn.RIGHT):n.scrollWidth+c>n.clientWidth&&(l=Mn.LEFT):s===Mn.LEFT?c>0&&(l=Mn.LEFT):n.scrollWidth-c>n.clientWidth&&(l=Mn.RIGHT)}return[a,l]}var Iy=hi({passive:!1,capture:!0}),My=new Set,xae=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],standalone:!0,features:[O],decls:0,vars:0,template:function(i,r){},styles:["@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}"],encapsulation:2,changeDetection:0})}}return n})(),Sae=(()=>{class n{constructor(e,i){this._ngZone=e,this._appRef=C(Xn),this._environmentInjector=C(Pi),this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=di([]),this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new k,this.pointerUp=new k,this.scroll=new k,this._preventDefaultWhileDragging=r=>{this._activeDragInstances().length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=i}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),this._dragInstances.size===1&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Iy)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),this._dragInstances.size===0&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Iy)}startDragging(e,i){if(!(this._activeDragInstances().indexOf(e)>-1)&&(this._loadResets(),this._activeDragInstances.update(r=>[...r,e]),this._activeDragInstances().length===1)){let r=i.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:o=>this.pointerUp.next(o),options:!0}).set("scroll",{handler:o=>this.scroll.next(o),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Iy}),r||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:Iy}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((o,s)=>{this._document.addEventListener(s,o.handler,o.options)})})}}stopDragging(e){this._activeDragInstances.update(i=>{let r=i.indexOf(e);return r>-1?(i.splice(r,1),[...i]):i}),this._activeDragInstances().length===0&&this._clearGlobalListeners()}isDragging(e){return this._activeDragInstances().indexOf(e)>-1}scrolled(e){let i=[this.scroll];return e&&e!==this._document&&i.push(new Se(r=>this._ngZone.runOutsideAngular(()=>{let s=a=>{this._activeDragInstances().length&&r.next(a)};return e.addEventListener("scroll",s,!0),()=>{e.removeEventListener("scroll",s,!0)}}))),et(...i)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,i)=>{this._document.removeEventListener(i,e.handler,e.options)}),this._globalListeners.clear()}_loadResets(){if(!My.has(this._appRef)){My.add(this._appRef);let e=rP(xae,{environmentInjector:this._environmentInjector});this._appRef.onDestroy(()=>{My.delete(this._appRef),My.size===0&&e.destroy()})}}static{this.\u0275fac=function(i){return new(i||n)(D(X),D(ce))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),kae={dragStartThreshold:5,pointerDirectionChangeThreshold:5},wM=(()=>{class n{constructor(e,i,r,o){this._document=e,this._ngZone=i,this._viewportRuler=r,this._dragDropRegistry=o}createDrag(e,i=kae){return new pM(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new _M(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static{this.\u0275fac=function(i){return new(i||n)(D(ce),D(X),D(zi),D(Sae))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),bM=new I("CDK_DRAG_PARENT");var DH=new I("CdkDragHandle"),jOe=(()=>{class n{get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._stateChanges.next(this)}constructor(e,i){this.element=e,this._parentDrag=i,this._stateChanges=new k,this._disabled=!1,i?._addHandle(this)}ngOnDestroy(){this._parentDrag?._removeHandle(this),this._stateChanges.complete()}static{this.\u0275fac=function(i){return new(i||n)(p(H),p(bM,12))}}static{this.\u0275dir=M({type:n,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:[2,"cdkDragHandleDisabled","disabled",W]},standalone:!0,features:[de([{provide:DH,useExisting:n}]),Ie]})}}return n})(),xH=new I("CDK_DRAG_CONFIG"),Eae="cdk-drag",SH=new I("CdkDropList"),BOe=(()=>{class n{static{this._dragInstances=[]}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=e,this._dragRef.disabled=this._disabled}constructor(e,i,r,o,s,a,l,c,d,u,h){this.element=e,this.dropContainer=i,this._ngZone=o,this._viewContainerRef=s,this._dir=l,this._changeDetectorRef=d,this._selfHandle=u,this._parentDrag=h,this._destroyed=new k,this._handles=new Ee([]),this.scale=1,this.started=new P,this.released=new P,this.ended=new P,this.entered=new P,this.exited=new P,this.dropped=new P,this.moved=new Se(f=>{let m=this._dragRef.moved.pipe(fe(g=>({source:this,pointerPosition:g.pointerPosition,event:g.event,delta:g.delta,distance:g.distance}))).subscribe(f);return()=>{m.unsubscribe()}}),this._injector=C(Oe),this._dragRef=c.createDrag(e,{dragStartThreshold:a&&a.dragStartThreshold!=null?a.dragStartThreshold:5,pointerDirectionChangeThreshold:a&&a.pointerDirectionChangeThreshold!=null?a.pointerDirectionChangeThreshold:5,zIndex:a?.zIndex}),this._dragRef.data=this,n._dragInstances.push(this),a&&this._assignDefaults(a),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this),i._dropListRef.beforeStarted.pipe(Ce(this._destroyed)).subscribe(()=>{this._dragRef.scale=this.scale})),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){jt(()=>{this._updateRootElement(),this._setupHandlesListener(),this._dragRef.scale=this.scale,this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)},{injector:this._injector})}ngOnChanges(e){let i=e.rootElementSelector,r=e.freeDragPosition;i&&!i.firstChange&&this._updateRootElement(),this._dragRef.scale=this.scale,r&&!r.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);let e=n._dragInstances.indexOf(this);e>-1&&n._dragInstances.splice(e,1),this._ngZone.runOutsideAngular(()=>{this._handles.complete(),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_addHandle(e){let i=this._handles.getValue();i.push(e),this._handles.next(i)}_removeHandle(e){let i=this._handles.getValue(),r=i.indexOf(e);r>-1&&(i.splice(r,1),this._handles.next(i))}_setPreviewTemplate(e){this._previewTemplate=e}_resetPreviewTemplate(e){e===this._previewTemplate&&(this._previewTemplate=null)}_setPlaceholderTemplate(e){this._placeholderTemplate=e}_resetPlaceholderTemplate(e){e===this._placeholderTemplate&&(this._placeholderTemplate=null)}_updateRootElement(){let e=this.element.nativeElement,i=e;this.rootElementSelector&&(i=e.closest!==void 0?e.closest(this.rootElementSelector):e.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(i||e)}_getBoundaryElement(){let e=this.boundaryElement;return e?typeof e=="string"?this.element.nativeElement.closest(e):Ii(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){let i=this._dir,r=this.dragStartDelay,o=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,s=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.scale=this.scale,e.dragStartDelay=typeof r=="object"&&r?r:ji(r),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(o).withPreviewTemplate(s).withPreviewContainer(this.previewContainer||"global"),i&&e.withDirection(i.value)}}),e.beforeStarted.pipe(pt(1)).subscribe(()=>{if(this._parentDrag){e.withParent(this._parentDrag._dragRef);return}let i=this.element.nativeElement.parentElement;for(;i;){if(i.classList.contains(Eae)){e.withParent(n._dragInstances.find(r=>r.element.nativeElement===i)?._dragRef||null);break}i=i.parentElement}})}_handleEvents(e){e.started.subscribe(i=>{this.started.emit({source:this,event:i.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(i=>{this.released.emit({source:this,event:i.event})}),e.ended.subscribe(i=>{this.ended.emit({source:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(i=>{this.entered.emit({container:i.container.data,item:this,currentIndex:i.currentIndex})}),e.exited.subscribe(i=>{this.exited.emit({container:i.container.data,item:this})}),e.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,isPointerOverContainer:i.isPointerOverContainer,item:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event})})}_assignDefaults(e){let{lockAxis:i,dragStartDelay:r,constrainPosition:o,previewClass:s,boundaryElement:a,draggingDisabled:l,rootElementSelector:c,previewContainer:d}=e;this.disabled=l??!1,this.dragStartDelay=r||0,i&&(this.lockAxis=i),o&&(this.constrainPosition=o),s&&(this.previewClass=s),a&&(this.boundaryElement=a),c&&(this.rootElementSelector=c),d&&(this.previewContainer=d)}_setupHandlesListener(){this._handles.pipe(Et(e=>{let i=e.map(r=>r.element);this._selfHandle&&this.rootElementSelector&&i.push(this.element),this._dragRef.withHandles(i)}),Rt(e=>et(...e.map(i=>i._stateChanges.pipe(yt(i))))),Ce(this._destroyed)).subscribe(e=>{let i=this._dragRef,r=e.element.nativeElement;e.disabled?i.disableHandle(r):i.enableHandle(r)})}static{this.\u0275fac=function(i){return new(i||n)(p(H),p(SH,12),p(ce),p(X),p(ht),p(xH,8),p(gt,8),p(wM),p(_e),p(DH,10),p(bM,12))}}static{this.\u0275dir=M({type:n,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(i,r){i&2&&Q("cdk-drag-disabled",r.disabled)("cdk-drag-dragging",r._dragRef.isDragging())},inputs:{data:[0,"cdkDragData","data"],lockAxis:[0,"cdkDragLockAxis","lockAxis"],rootElementSelector:[0,"cdkDragRootElement","rootElementSelector"],boundaryElement:[0,"cdkDragBoundary","boundaryElement"],dragStartDelay:[0,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[0,"cdkDragFreeDragPosition","freeDragPosition"],disabled:[2,"cdkDragDisabled","disabled",W],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"],scale:[2,"cdkDragScale","scale",gi]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],standalone:!0,features:[de([{provide:bM,useExisting:n}]),Ie,ze]})}}return n})(),gH=new I("CdkDropListGroup");var Iae=0,$Oe=(()=>{class n{static{this._dropLists=[]}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=e}constructor(e,i,r,o,s,a,l){this.element=e,this._changeDetectorRef=r,this._scrollDispatcher=o,this._dir=s,this._group=a,this._destroyed=new k,this.connectedTo=[],this.id=`cdk-drop-list-${Iae++}`,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new P,this.entered=new P,this.exited=new P,this.sorted=new P,this._unsortedItems=new Set,this._dropListRef=i.createDropList(e),this._dropListRef.data=this,l&&this._assignDefaults(l),this._dropListRef.enterPredicate=(c,d)=>this.enterPredicate(c.data,d.data),this._dropListRef.sortPredicate=(c,d,u)=>this.sortPredicate(c,d.data,u.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),n._dropLists.push(this),a&&a._items.add(this)}addItem(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((e,i)=>e._dragRef.getVisibleElement().compareDocumentPosition(i._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){let e=n._dropLists.indexOf(this);e>-1&&n._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(yt(this._dir.value),Ce(this._destroyed)).subscribe(i=>e.withDirection(i)),e.beforeStarted.subscribe(()=>{let i=la(this.connectedTo).map(r=>{if(typeof r=="string"){let o=n._dropLists.find(s=>s.id===r);return o}return r});if(this._group&&this._group._items.forEach(r=>{i.indexOf(r)===-1&&i.push(r)}),!this._scrollableParentsResolved){let r=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(o=>o.getElementRef().nativeElement);this._dropListRef.withScrollableParents(r),this._scrollableParentsResolved=!0}if(this.elementContainerSelector){let r=this.element.nativeElement.querySelector(this.elementContainerSelector);e.withElementContainer(r)}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=this.sortingDisabled,e.autoScrollDisabled=this.autoScrollDisabled,e.autoScrollStep=ji(this.autoScrollStep,2),e.connectedTo(i.filter(r=>r&&r!==this).map(r=>r._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(i=>{this.entered.emit({container:this,item:i.item.data,currentIndex:i.currentIndex})}),e.exited.subscribe(i=>{this.exited.emit({container:this,item:i.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(i=>{this.sorted.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,container:this,item:i.item.data})}),e.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,item:i.item.data,isPointerOverContainer:i.isPointerOverContainer,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),et(e.receivingStarted,e.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck())}_assignDefaults(e){let{lockAxis:i,draggingDisabled:r,sortingDisabled:o,listAutoScrollDisabled:s,listOrientation:a}=e;this.disabled=r??!1,this.sortingDisabled=o??!1,this.autoScrollDisabled=s??!1,this.orientation=a||"vertical",i&&(this.lockAxis=i)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(e=>e._dragRef))}static{this.\u0275fac=function(i){return new(i||n)(p(H),p(wM),p(_e),p(to),p(gt,8),p(gH,12),p(xH,8))}}static{this.\u0275dir=M({type:n,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(i,r){i&2&&(re("id",r.id),Q("cdk-drop-list-disabled",r.disabled)("cdk-drop-list-dragging",r._dropListRef.isDragging())("cdk-drop-list-receiving",r._dropListRef.isReceiving()))},inputs:{connectedTo:[0,"cdkDropListConnectedTo","connectedTo"],data:[0,"cdkDropListData","data"],orientation:[0,"cdkDropListOrientation","orientation"],id:"id",lockAxis:[0,"cdkDropListLockAxis","lockAxis"],disabled:[2,"cdkDropListDisabled","disabled",W],sortingDisabled:[2,"cdkDropListSortingDisabled","sortingDisabled",W],enterPredicate:[0,"cdkDropListEnterPredicate","enterPredicate"],sortPredicate:[0,"cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:[2,"cdkDropListAutoScrollDisabled","autoScrollDisabled",W],autoScrollStep:[0,"cdkDropListAutoScrollStep","autoScrollStep"],elementContainerSelector:[0,"cdkDropListElementContainer","elementContainerSelector"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],standalone:!0,features:[de([{provide:gH,useValue:void 0},{provide:SH,useExisting:n}]),Ie]})}}return n})();var CM=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({providers:[wM],imports:[Zi]})}}return n})();var Tae=[[["caption"]],[["colgroup"],["col"]],"*"],Aae=["caption","colgroup, col","*"];function Oae(n,t){n&1&&Z(0,2)}function Rae(n,t){n&1&&(b(0,"thead",0),Qi(1,1),y(),b(2,"tbody",0),Qi(3,2)(4,3),y(),b(5,"tfoot",0),Qi(6,4),y())}function Pae(n,t){n&1&&Qi(0,1)(1,2)(2,3)(3,4)}var ho=new I("CDK_TABLE");var Vy=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(p(ct))}}static{this.\u0275dir=M({type:n,selectors:[["","cdkCellDef",""]],standalone:!0})}}return n})(),jy=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(p(ct))}}static{this.\u0275dir=M({type:n,selectors:[["","cdkHeaderCellDef",""]],standalone:!0})}}return n})(),By=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(p(ct))}}static{this.\u0275dir=M({type:n,selectors:[["","cdkFooterCellDef",""]],standalone:!0})}}return n})(),dc=(()=>{class n{get name(){return this._name}set name(e){this._setNameInput(e)}get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){e!==this._stickyEnd&&(this._stickyEnd=e,this._hasStickyChanged=!0)}constructor(e){this._table=e,this._hasStickyChanged=!1,this._sticky=!1,this._stickyEnd=!1}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static{this.\u0275fac=function(i){return new(i||n)(p(ho,8))}}static{this.\u0275dir=M({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(i,r,o){if(i&1&&(He(o,Vy,5),He(o,jy,5),He(o,By,5)),i&2){let s;B(s=$())&&(r.cell=s.first),B(s=$())&&(r.headerCell=s.first),B(s=$())&&(r.footerCell=s.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",W],stickyEnd:[2,"stickyEnd","stickyEnd",W]},standalone:!0,features:[de([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),Ie]})}}return n})(),sm=class{constructor(t,e){e.nativeElement.classList.add(...t._columnCssClassName)}},IH=(()=>{class n extends sm{constructor(e,i){super(e,i)}static{this.\u0275fac=function(i){return new(i||n)(p(dc),p(H))}}static{this.\u0275dir=M({type:n,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],standalone:!0,features:[ne]})}}return n})(),MH=(()=>{class n extends sm{constructor(e,i){super(e,i);let r=e._table?._getCellRole();r&&i.nativeElement.setAttribute("role",r)}static{this.\u0275fac=function(i){return new(i||n)(p(dc),p(H))}}static{this.\u0275dir=M({type:n,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],standalone:!0,features:[ne]})}}return n})(),TH=(()=>{class n extends sm{constructor(e,i){super(e,i);let r=e._table?._getCellRole();r&&i.nativeElement.setAttribute("role",r)}static{this.\u0275fac=function(i){return new(i||n)(p(dc),p(H))}}static{this.\u0275dir=M({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],standalone:!0,features:[ne]})}}return n})(),Fy=class{constructor(){this.tasks=[],this.endTasks=[]}},Ny=new I("_COALESCED_STYLE_SCHEDULER"),xM=(()=>{class n{constructor(e){this._currentSchedule=null,this._ngZone=C(X)}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new Fy,this._ngZone.runOutsideAngular(()=>queueMicrotask(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){let e=this._currentSchedule;this._currentSchedule=new Fy;for(let i of e.tasks)i();for(let i of e.endTasks)i()}this._currentSchedule=null})))}static{this.\u0275fac=function(i){return new(i||n)(D(X))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac})}}return n})();var SM=(()=>{class n{constructor(e,i){this.template=e,this._differs=i}ngOnChanges(e){if(!this._columnsDiffer){let i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof am?e.headerCell.template:this instanceof lm?e.footerCell.template:e.cell.template}static{this.\u0275fac=function(i){return new(i||n)(p(ct),p(ds))}}static{this.\u0275dir=M({type:n,features:[ze]})}}return n})(),am=(()=>{class n extends SM{get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}constructor(e,i,r){super(e,i),this._table=r,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static{this.\u0275fac=function(i){return new(i||n)(p(ct),p(ds),p(ho,8))}}static{this.\u0275dir=M({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",W]},standalone:!0,features:[Ie,ne,ze]})}}return n})(),lm=(()=>{class n extends SM{get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}constructor(e,i,r){super(e,i),this._table=r,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static{this.\u0275fac=function(i){return new(i||n)(p(ct),p(ds),p(ho,8))}}static{this.\u0275dir=M({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",W]},standalone:!0,features:[Ie,ne,ze]})}}return n})(),$y=(()=>{class n extends SM{constructor(e,i,r){super(e,i),this._table=r}static{this.\u0275fac=function(i){return new(i||n)(p(ct),p(ds),p(ho,8))}}static{this.\u0275dir=M({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},standalone:!0,features:[ne]})}}return n})(),Ps=(()=>{class n{static{this.mostRecentCellOutlet=null}constructor(e){this._viewContainer=e,n.mostRecentCellOutlet=this}ngOnDestroy(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}static{this.\u0275fac=function(i){return new(i||n)(p(ht))}}static{this.\u0275dir=M({type:n,selectors:[["","cdkCellOutlet",""]],standalone:!0})}}return n})(),kM=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],standalone:!0,features:[O],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Qi(0,0)},dependencies:[Ps],encapsulation:2})}}return n})(),EM=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],standalone:!0,features:[O],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Qi(0,0)},dependencies:[Ps],encapsulation:2})}}return n})(),IM=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],standalone:!0,features:[O],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Qi(0,0)},dependencies:[Ps],encapsulation:2})}}return n})(),AH=(()=>{class n{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}static{this.\u0275fac=function(i){return new(i||n)(p(ct))}}static{this.\u0275dir=M({type:n,selectors:[["ng-template","cdkNoDataRow",""]],standalone:!0})}}return n})(),kH=["top","bottom","left","right"],DM=class{constructor(t,e,i,r,o=!0,s=!0,a){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=s,this._positionListener=a,this._elemSizeCache=new WeakMap,this._resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(l=>this._updateCachedSizes(l)):null,this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(t,e){(e.includes("left")||e.includes("right"))&&this._removeFromStickyColumnReplayQueue(t);let i=[];for(let r of t)if(r.nodeType===r.ELEMENT_NODE){i.push(r);for(let o=0;o{for(let r of i)this._removeStickyStyle(r,e)})}updateStickyColumns(t,e,i,r=!0,o=!0){if(o&&this._updateStickyColumnReplayQueue({rows:[...t],stickyStartStates:[...e],stickyEndStates:[...i]}),!t.length||!this._isBrowser||!(e.some(s=>s)||i.some(s=>s))){this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}));return}this._coalescedStyleScheduler.schedule(()=>{let s=t[0],a=s.children.length,l=this._getCellWidths(s,r),c=this._getStickyStartColumnPositions(l,e),d=this._getStickyEndColumnPositions(l,i),u=e.lastIndexOf(!0),h=i.indexOf(!0),f=this.direction==="rtl",m=f?"right":"left",g=f?"left":"right";for(let _ of t)for(let v=0;ve[v]?_:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:h===-1?[]:l.slice(h).map((_,v)=>i[v+h]?_:null).reverse()}))})}stickRows(t,e,i){this._isBrowser&&this._coalescedStyleScheduler.schedule(()=>{let r=i==="bottom"?t.slice().reverse():t,o=i==="bottom"?e.slice().reverse():e,s=[],a=[],l=[];for(let d=0,u=0;d{let i=t.querySelector("tfoot");i&&(e.some(r=>!r)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1))})}_removeStickyStyle(t,e){for(let r of e)t.style[r]="",t.classList.remove(this._borderCellCss[r]);kH.some(r=>e.indexOf(r)===-1&&t.style[r])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,i,r){t.classList.add(this._stickCellCss),r&&t.classList.add(this._borderCellCss[e]),t.style[e]=`${i}px`,t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){let e={top:100,bottom:10,left:1,right:1},i=0;for(let r of kH)t.style[r]&&(i+=e[r]);return i?`${i}`:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let i=[],r=t.children;for(let o=0;o0;o--)e[o]&&(i[o]=r,r+=t[o]);return i}_retrieveElementSize(t){let e=this._elemSizeCache.get(t);if(e)return e;let i=t.getBoundingClientRect(),r={width:i.width,height:i.height};return this._resizeObserver&&(this._elemSizeCache.set(t,r),this._resizeObserver.observe(t,{box:"border-box"})),r}_updateStickyColumnReplayQueue(t){this._removeFromStickyColumnReplayQueue(t.rows),!this._stickyColumnsReplayTimeout&&this._updatedStickyColumnsParamsToReplay.push(t)}_removeFromStickyColumnReplayQueue(t){let e=new Set(t);for(let i of this._updatedStickyColumnsParamsToReplay)i.rows=i.rows.filter(r=>!e.has(r));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(i=>!!i.rows.length)}_updateCachedSizes(t){let e=!1;for(let i of t){let r=i.borderBoxSize?.length?{width:i.borderBoxSize[0].inlineSize,height:i.borderBoxSize[0].blockSize}:{width:i.contentRect.width,height:i.contentRect.height};r.width!==this._elemSizeCache.get(i.target)?.width&&Fae(i.target)&&(e=!0),this._elemSizeCache.set(i.target,r)}e&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{for(let i of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(i.rows,i.stickyStartStates,i.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null},0))}};function Fae(n){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(t=>n.classList.contains(t))}var Ly=new I("CDK_SPL");var MM=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i;let r=C(ho);r._rowOutlet=this,r._outletAssigned()}static{this.\u0275fac=function(i){return new(i||n)(p(ht),p(H))}}static{this.\u0275dir=M({type:n,selectors:[["","rowOutlet",""]],standalone:!0})}}return n})(),TM=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i;let r=C(ho);r._headerRowOutlet=this,r._outletAssigned()}static{this.\u0275fac=function(i){return new(i||n)(p(ht),p(H))}}static{this.\u0275dir=M({type:n,selectors:[["","headerRowOutlet",""]],standalone:!0})}}return n})(),AM=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i;let r=C(ho);r._footerRowOutlet=this,r._outletAssigned()}static{this.\u0275fac=function(i){return new(i||n)(p(ht),p(H))}}static{this.\u0275dir=M({type:n,selectors:[["","footerRowOutlet",""]],standalone:!0})}}return n})(),OM=(()=>{class n{constructor(e,i){this.viewContainer=e,this.elementRef=i;let r=C(ho);r._noDataRowOutlet=this,r._outletAssigned()}static{this.\u0275fac=function(i){return new(i||n)(p(ht),p(H))}}static{this.\u0275dir=M({type:n,selectors:[["","noDataRowOutlet",""]],standalone:!0})}}return n})();var RM=(()=>{class n{_getCellRole(){if(this._cellRoleInternal===void 0){let e=this._elementRef.nativeElement.getAttribute("role");return e==="grid"||e==="treegrid"?"gridcell":"cell"}return this._cellRoleInternal}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=e,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(e,i,r,o,s,a,l,c,d,u,h,f){this._differs=e,this._changeDetectorRef=i,this._elementRef=r,this._dir=s,this._platform=l,this._viewRepeater=c,this._coalescedStyleScheduler=d,this._viewportRuler=u,this._stickyPositioningListener=h,this._onDestroy=new k,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._hasAllOutlets=!1,this._hasInitialized=!1,this._cellRoleInternal=void 0,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new P,this.viewChange=new Ee({start:0,end:Number.MAX_VALUE}),this._injector=C(Oe),o||r.nativeElement.setAttribute("role","table"),this._document=a,this._isServer=!l.isBrowser,this._isNativeHtmlTable=r.nativeElement.nodeName==="TABLE"}ngOnInit(){this._setupStickyStyler(),this._dataDiffer=this._differs.find([]).create((e,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i),this._viewportRuler.change().pipe(Ce(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),E_(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let e=this._dataDiffer.diff(this._renderRows);if(!e){this._updateNoDataRow(),this.contentChanged.next();return}let i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,(r,o,s)=>this._getEmbeddedViewArgs(r.item,s),r=>r.item.data,r=>{r.operation===pd.INSERTED&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{let o=i.get(r.currentIndex);o.context.$implicit=r.item.data}),this._updateNoDataRow(),jt(()=>{this.updateStickyColumnStyles()},{injector:this._injector}),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){let e=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let r=EH(this._headerRowOutlet,"thead");r&&(r.style.display=e.length?"":"none")}let i=this._headerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,i,"top"),this._headerRowDefs.forEach(r=>r.resetStickyChanged())}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let r=EH(this._footerRowOutlet,"tfoot");r&&(r.style.display=e.length?"":"none")}let i=this._footerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(r=>r.resetStickyChanged())}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...i,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((o,s)=>{this._addStickyColumnStyles([o],this._headerRowDefs[s])}),this._rowDefs.forEach(o=>{let s=[];for(let a=0;a{this._addStickyColumnStyles([o],this._footerRowDefs[s])}),Array.from(this._columnDefsByName.values()).forEach(o=>o.resetStickyChanged())}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){let e=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{let a=r&&r.has(s)?r.get(s):[];if(a.length){let l=a.shift();return l.dataIndex=i,l}else return{data:e,rowDef:s,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Py(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=Py(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Py(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Py(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(i=>!i.when);!this.multiTemplateDataRows&&e.length>1,this._defaultRowDef=e[0]}_renderUpdatedColumns(){let e=(s,a)=>{let l=!!a.getColumnsDiff();return s||l},i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();let r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();let o=this._footerRowDefs.reduce(e,!1);return o&&this._forceRenderFooterRows(),i||r||o}_switchDataSource(e){this._data=[],E_(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;E_(this.dataSource)?e=this.dataSource.connect(this):js(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=oe(this.dataSource)),this._renderChangeSubscription=e.pipe(Ce(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,i)=>this._renderRow(this._headerRowOutlet,e,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,i)=>this._renderRow(this._footerRowOutlet,e,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,i){let r=Array.from(i.columns||[]).map(a=>{let l=this._columnDefsByName.get(a);return l}),o=r.map(a=>a.sticky),s=r.map(a=>a.stickyEnd);this._stickyStyler.updateStickyColumns(e,o,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){let i=[];for(let r=0;r!o.when||o.when(i,e));else{let o=this._rowDefs.find(s=>s.when&&s.when(i,e))||this._defaultRowDef;o&&r.push(o)}return r.length,r}_getEmbeddedViewArgs(e,i){let r=e.rowDef,o={$implicit:e.data};return{templateRef:r.template,context:o,index:i}}_renderRow(e,i,r,o={}){let s=e.viewContainer.createEmbeddedView(i.template,o,r);return this._renderCellTemplateForItem(i,o),s}_renderCellTemplateForItem(e,i){for(let r of this._getCellTemplates(e))Ps.mostRecentCellOutlet&&Ps.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let i=0,r=e.length;i{let r=this._columnDefsByName.get(i);return e.extractCellTemplate(r)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let e=(i,r)=>i||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let e=this._dir?this._dir.value:"ltr";this._stickyStyler=new DM(this._isNativeHtmlTable,this.stickyCssClass,e,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:oe()).pipe(Ce(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let i=this._rowOutlet.viewContainer.length===0;if(i===this._isShowingNoDataRow)return;let r=this._noDataRowOutlet.viewContainer;if(i){let o=r.createEmbeddedView(e.templateRef),s=o.rootNodes[0];o.rootNodes.length===1&&s?.nodeType===this._document.ELEMENT_NODE&&(s.setAttribute("role","row"),s.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=i,this._changeDetectorRef.markForCheck()}static{this.\u0275fac=function(i){return new(i||n)(p(ds),p(_e),p(H),dn("role"),p(gt,8),p(ce),p(Ne),p(Ah),p(Ny),p(zi),p(Ly,12),p(X,8))}}static{this.\u0275cmp=A({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(i,r,o){if(i&1&&(He(o,AH,5),He(o,dc,5),He(o,$y,5),He(o,am,5),He(o,lm,5)),i&2){let s;B(s=$())&&(r._noDataRow=s.first),B(s=$())&&(r._contentColumnDefs=s),B(s=$())&&(r._contentRowDefs=s),B(s=$())&&(r._contentHeaderRowDefs=s),B(s=$())&&(r._contentFooterRowDefs=s)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(i,r){i&2&&Q("cdk-table-fixed-layout",r.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",W],fixedLayout:[2,"fixedLayout","fixedLayout",W]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],standalone:!0,features:[de([{provide:ho,useExisting:n},{provide:Ah,useClass:gd},{provide:Ny,useClass:xM},{provide:Ly,useValue:null}]),Ie,O],ngContentSelectors:Aae,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,r){i&1&&(ge(Tae),Z(0),Z(1,1),U(2,Oae,1,0)(3,Rae,7,0)(4,Pae,4,0)),i&2&&(w(2),Y(r._isServer?2:-1),w(),Y(r._isNativeHtmlTable?3:4))},dependencies:[TM,MM,OM,AM],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2})}}return n})();function Py(n,t){return n.concat(Array.from(t))}function EH(n,t){let e=t.toUpperCase(),i=n.viewContainer.element.nativeElement;for(;i;){let r=i.nodeType===1?i.nodeName:null;if(r===e)return i;if(r==="TABLE")break;i=i.parentNode}return null}var cm=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({imports:[Oh]})}}return n})();var Nae=["panel"],Lae=["*"];function Vae(n,t){if(n&1){let e=ye();b(0,"div",1,0),F("@panelAnimation.done",function(r){N(e);let o=S();return L(o._animationDone.next(r))}),Z(2),y()}if(n&2){let e=t.id,i=S();ui(i._classList),Q("mat-mdc-autocomplete-visible",i.showPanel)("mat-mdc-autocomplete-hidden",!i.showPanel)("mat-primary",i._color==="primary")("mat-accent",i._color==="accent")("mat-warn",i._color==="warn"),q("id",i.id)("@panelAnimation",i.isOpen?"visible":"hidden"),re("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}var jae=qt("panelAnimation",[_t("void, hidden",De({opacity:0,transform:"scaleY(0.8)"})),at(":enter, hidden => visible",[cN([lt("0.03s linear",De({opacity:1})),lt("0.12s cubic-bezier(0, 0, 0.2, 1)",De({transform:"scaleY(1)"}))])]),at(":leave, visible => hidden",[lt("0.075s linear",De({opacity:0}))])]),Bae=0,PM=class{constructor(t,e){this.source=t,this.option=e}},OH=new I("mat-autocomplete-default-options",{providedIn:"root",factory:$ae});function $ae(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}var BRe=(()=>{class n{get isOpen(){return this._isOpen&&this.showPanel}_setColor(e){this._color=e,this._changeDetectorRef.markForCheck()}set classList(e){this._classList=e,this._elementRef.nativeElement.className=""}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}constructor(e,i,r,o){this._changeDetectorRef=e,this._elementRef=i,this._defaults=r,this._activeOptionChanges=pe.EMPTY,this._animationDone=new P,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new P,this.opened=new P,this.closed=new P,this.optionActivated=new P,this.id=`mat-autocomplete-${Bae++}`,this.inertGroups=o?.SAFARI||!1,this.autoActiveFirstOption=!!r.autoActiveFirstOption,this.autoSelectActiveOption=!!r.autoSelectActiveOption,this.requireSelection=!!r.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new ad(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe(),this._animationDone.complete()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){let i=new PM(this,e);this.optionSelected.emit(i)}_getPanelAriaLabelledby(e){if(this.ariaLabel)return null;let i=e?e+" ":"";return this.ariaLabelledby?i+this.ariaLabelledby:e}_skipPredicate(){return!1}static{this.\u0275fac=function(i){return new(i||n)(p(_e),p(H),p(OH),p(Ne))}}static{this.\u0275cmp=A({type:n,selectors:[["mat-autocomplete"]],contentQueries:function(i,r,o){if(i&1&&(He(o,hd,5),He(o,Eh,5)),i&2){let s;B(s=$())&&(r.options=s),B(s=$())&&(r.optionGroups=s)}},viewQuery:function(i,r){if(i&1&&(le(ct,7),le(Nae,5)),i&2){let o;B(o=$())&&(r.template=o.first),B(o=$())&&(r.panel=o.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",W],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",W],requireSelection:[2,"requireSelection","requireSelection",W],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",W],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",W]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],standalone:!0,features:[de([{provide:kh,useExisting:n}]),Ie,O],ngContentSelectors:Lae,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(i,r){i&1&&(ge(),U(0,Vae,3,16,"ng-template"))},styles:["div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:static;border-radius:var(--mat-autocomplete-container-shape, var(--mat-app-corner-extra-small));box-shadow:var(--mat-autocomplete-container-elevation-shadow);background-color:var(--mat-autocomplete-background-color, var(--mat-app-surface-container))}.cdk-high-contrast-active div.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[jae]},changeDetection:0})}}return n})();var zae={provide:$t,useExisting:Ye(()=>Wae),multi:!0};var RH=new I("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let n=C(dt);return()=>n.scrollStrategies.reposition()}});function Hae(n){return()=>n.scrollStrategies.reposition()}var Uae={provide:RH,deps:[dt],useFactory:Hae},Wae=(()=>{class n{constructor(e,i,r,o,s,a,l,c,d,u,h){this._element=e,this._overlay=i,this._viewContainerRef=r,this._zone=o,this._changeDetectorRef=s,this._dir=l,this._formField=c,this._document=d,this._viewportRuler=u,this._defaults=h,this._componentDestroyed=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=pe.EMPTY,this._breakpointObserver=C(od),this._handsetLandscapeSubscription=pe.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new k,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._initialized=new k,this._injector=C(Oe),this._aboveClass="mat-mdc-autocomplete-panel-above",this._overlayAttached=!1,this.optionSelections=_r(()=>{let f=this.autocomplete?this.autocomplete.options:null;return f?f.changes.pipe(yt(f),Rt(()=>et(...f.map(m=>m.onSelectionChange)))):this._initialized.pipe(Rt(()=>this.optionSelections))}),this._handlePanelKeydown=f=>{(f.keyCode===27&&!xt(f)||f.keyCode===38&&xt(f,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),f.stopPropagation(),f.preventDefault())},this._trackedModal=null,this._scrollStrategy=a}ngAfterViewInit(){this._initialized.next(),this._initialized.complete();let e=this._getWindow();typeof e<"u"&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){let e=this._getWindow();typeof e<"u"&&e.removeEventListener("blur",this._windowBlurHandler),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal&&ca(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return et(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Ae(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Ae(()=>this._overlayAttached)):oe()).pipe(fe(e=>e instanceof Sh?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return et(Ri(this._document,"click"),Ri(this._document,"auxclick"),Ri(this._document,"touchend")).pipe(Ae(e=>{let i=vi(e),r=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,o=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&i!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!r||!r.contains(i))&&(!o||!o.contains(i))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(i)}))}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){let i=e.keyCode,r=xt(e);if(i===27&&!r&&e.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&i===13&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){let o=this.autocomplete._keyManager.activeItem,s=i===38||i===40;i===9||s&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):s&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(s||this.autocomplete._keyManager.activeItem!==o)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let i=e.target,r=i.value;if(i.type==="number"&&(r=r==""?null:parseFloat(r)),this._previousValue!==r){if(this._previousValue=r,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(r),!r)this._clearPreviousSelectedOption(null,!1);else if(this.panelOpen&&!this.autocomplete.requireSelection){let o=this.autocomplete.options?.find(s=>s.selected);if(o){let s=this._getDisplayValue(o.value);r!==s&&o.deselect(!1)}}if(this._canOpen()&&this._document.activeElement===e.target){let o=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(o)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_floatLabel(e=!1){this._formField&&this._formField.floatLabel==="auto"&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let e=new Se(r=>{jt(()=>{r.next()},{injector:this._injector})}),i=this.autocomplete.options.changes.pipe(Et(()=>this._positionStrategy.reapplyLastPosition()),Ka(0));return et(e,i).pipe(Rt(()=>this._zone.run(()=>{let r=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),r!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),pt(1)).subscribe(r=>this._setValueAndClose(r))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(e){let i=this.autocomplete;return i&&i.displayWith?i.displayWith(e):e}_assignOptionValue(e){let i=this._getDisplayValue(e);e==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(i??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){let i=this.autocomplete,r=e?e.source:this._pendingAutoselectedOption;r?(this._clearPreviousSelectedOption(r),this._assignOptionValue(r.value),this._onChange(r.value),i._emitSelectEvent(r),this._element.nativeElement.focus()):i.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),i._animationDone?i._animationDone.pipe(pt(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,i){this.autocomplete?.options?.forEach(r=>{r!==e&&r.selected&&r.deselect(i)})}_openPanelInternal(e=this._element.nativeElement.value){if(this._attachOverlay(e),this._floatLabel(),this._trackedModal){let i=this.autocomplete.id;ud(this._trackedModal,"aria-owns",i)}}_attachOverlay(e){this.autocomplete;let i=this._overlayRef;i?(this._positionStrategy.setOrigin(this._getConnectedElement()),i.updateSize({width:this._getPanelWidth()})):(this._portal=new $i(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),i=this._overlay.create(this._getOverlayConfig()),this._overlayRef=i,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&i&&i.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(h_.HandsetLandscape).subscribe(o=>{o.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),i&&!i.hasAttached()&&(i.attach(this._portal),this._valueOnAttach=e,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());let r=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&r!==this.panelOpen&&this._emitOpened()}_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let e=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new jn({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){let e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){let i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,o=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}],s;this.position==="above"?s=o:this.position==="below"?s=i:s=[...i,...o],e.withPositions(s)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){let e=this.autocomplete;if(e.autoActiveFirstOption){let i=-1;for(let r=0;r .cdk-overlay-container [aria-modal="true"]');if(!e)return;let i=this.autocomplete.id;this._trackedModal&&ca(this._trackedModal,"aria-owns",i),ud(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){if(this._trackedModal){let e=this.autocomplete.id;ca(this._trackedModal,"aria-owns",e),this._trackedModal=null}}static{this.\u0275fac=function(i){return new(i||n)(p(H),p(dt),p(ht),p(X),p(_e),p(RH),p(gt,8),p(Ll,9),p(ce,8),p(zi),p(OH,8))}}static{this.\u0275dir=M({type:n,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(i,r){i&1&&F("focusin",function(){return r._handleFocus()})("blur",function(){return r._onTouched()})("input",function(s){return r._handleInput(s)})("keydown",function(s){return r._handleKeydown(s)})("click",function(){return r._handleClick()}),i&2&&re("autocomplete",r.autocompleteAttribute)("role",r.autocompleteDisabled?null:"combobox")("aria-autocomplete",r.autocompleteDisabled?null:"list")("aria-activedescendant",r.panelOpen&&r.activeOption?r.activeOption.id:null)("aria-expanded",r.autocompleteDisabled?null:r.panelOpen.toString())("aria-controls",r.autocompleteDisabled||!r.panelOpen||r.autocomplete==null?null:r.autocomplete.id)("aria-haspopup",r.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",W]},exportAs:["matAutocompleteTrigger"],standalone:!0,features:[de([zae]),Ie,ze]})}}return n})(),FM=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({providers:[Uae],imports:[Ti,fd,Me,Li,Zi,fd,Me]})}}return n})();var NM=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({imports:[ua,Me,Me]})}}return n})();var Yae=["trigger"],qae=["panel"],Gae=[[["mat-select-trigger"]],"*"],Qae=["mat-select-trigger","*"];function Kae(n,t){if(n&1&&(b(0,"span",4),z(1),y()),n&2){let e=S();w(),ft(e.placeholder)}}function Zae(n,t){n&1&&Z(0)}function Xae(n,t){if(n&1&&(b(0,"span",11),z(1),y()),n&2){let e=S(2);w(),ft(e.triggerValue)}}function Jae(n,t){if(n&1&&(b(0,"span",5),U(1,Zae,1,0)(2,Xae,2,1,"span",11),y()),n&2){let e=S();w(),Y(e.customTrigger?1:2)}}function ele(n,t){if(n&1){let e=ye();b(0,"div",12,1),F("@transformPanel.done",function(r){N(e);let o=S();return L(o._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){N(e);let o=S();return L(o._handleKeydown(r))}),Z(2,1),y()}if(n&2){let e=S();WR("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),q("ngClass",e.panelClass)("@transformPanel","showing"),re("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var tle={transformPanelWrap:qt("transformPanelWrap",[at("* => void",S_("@transformPanel",[x_()],{optional:!0}))]),transformPanel:qt("transformPanel",[_t("void",De({opacity:0,transform:"scale(1, 0.8)"})),at("void => showing",lt("120ms cubic-bezier(0, 0, 0.2, 1)",De({opacity:1,transform:"scale(1, 1)"}))),at("* => void",lt("100ms linear",De({opacity:0})))])};var PH=0,FH=new I("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let n=C(dt);return()=>n.scrollStrategies.reposition()}});function ile(n){return()=>n.scrollStrategies.reposition()}var nle=new I("MAT_SELECT_CONFIG"),rle={provide:FH,deps:[dt],useFactory:ile},ole=new I("MatSelectTrigger"),LM=class{constructor(t,e){this.source=t,this.value=e}},NH=(()=>{class n{_scrollOptionIntoView(e){let i=this.options.toArray()[e];if(i){let r=this.panel.nativeElement,o=C_(e,this.options,this.optionGroups),s=i._getHostElement();e===0&&o===1?r.scrollTop=0:r.scrollTop=D_(s.offsetTop,s.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new LM(this,e)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(wa.required)??!1}set required(e){this._required=e,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,i,r,o,s,a,l,c,d,u,h,f,m,g){this._viewportRuler=e,this._changeDetectorRef=i,this._elementRef=s,this._dir=a,this._parentFormField=d,this.ngControl=u,this._liveAnnouncer=m,this._defaultOptions=g,this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._panelOpen=!1,this._compareWith=(_,v)=>_===v,this._uid=`mat-select-${PH++}`,this._triggerAriaLabelledBy=null,this._destroy=new k,this.stateChanges=new k,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mat-select-value-${PH++}`,this._panelDoneAnimatingStream=new k,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._multiple=!1,this.disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._initialized=new k,this.optionSelectionChanges=_r(()=>{let _=this.options;return _?_.changes.pipe(yt(_),Rt(()=>et(..._.map(v=>v.onSelectionChange)))):this._initialized.pipe(Rt(()=>this.optionSelectionChanges))}),this.openedChange=new P,this._openedStream=this.openedChange.pipe(Ae(_=>_),fe(()=>{})),this._closedStream=this.openedChange.pipe(Ae(_=>!_),fe(()=>{})),this.selectionChange=new P,this.valueChange=new P,this._trackedModal=null,this._skipPredicate=_=>this.panelOpen?!1:_.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),g?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=g.typeaheadDebounceInterval),this._errorStateTracker=new Dh(o,u,c,l,this.stateChanges),this._scrollStrategyFactory=f,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}ngOnInit(){this._selectionModel=new _d(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Jo(),Ce(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(Ce(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(Ce(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(yt(null),Ce(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){let r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(this._previousControl!==void 0&&i.disabled!==null&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let i=`${this.id}-panel`;this._trackedModal&&ca(this._trackedModal,"aria-owns",i),ud(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;ca(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let e=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let i=e.keyCode,r=i===40||i===38||i===37||i===39,o=i===13||i===32,s=this._keyManager;if(!s.isTyping()&&o&&!xt(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){let a=this.selected;s.onKeydown(e);let l=this.selected;l&&a!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){let i=this._keyManager,r=e.keyCode,o=r===40||r===38,s=i.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(!s&&(r===13||r===32)&&i.activeItem&&!xt(e))e.preventDefault(),i.activeItem._selectViaInteraction();else if(!s&&this._multiple&&r===65&&e.ctrlKey){e.preventDefault();let a=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(a?l.select():l.deselect())})}else{let a=i.activeItemIndex;i.onKeydown(e),this._multiple&&o&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==a&&i.activeItem._selectViaInteraction()}}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(pt(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{let i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let i=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return r.value!=null&&this._compareWith(r.value,e)}catch{return!1}});return i&&this._selectionModel.select(i),i}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof Ph?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new ad(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(){let e=et(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Ce(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),et(...this.options.map(i=>i._stateChanges)).pipe(Ce(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,i){let r=this._selectionModel.isSelected(e);e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i;this.multiple?i=this.selected.map(r=>r.value):i=this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let i=0;i0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),i=e?e+" ":"";return this.ariaLabelledby?i+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static{this.\u0275fac=function(i){return new(i||n)(p(zi),p(_e),p(X),p(xx),p(H),p(gt,8),p(Gx,8),p(Ed,8),p(Ll,8),p(no,10),dn("tabindex"),p(FH),p(v_),p(nle,8))}}static{this.\u0275cmp=A({type:n,selectors:[["mat-select"]],contentQueries:function(i,r,o){if(i&1&&(He(o,ole,5),He(o,hd,5),He(o,Eh,5)),i&2){let s;B(s=$())&&(r.customTrigger=s.first),B(s=$())&&(r.options=s),B(s=$())&&(r.optionGroups=s)}},viewQuery:function(i,r){if(i&1&&(le(Yae,5),le(qae,5),le(Px,5)),i&2){let o;B(o=$())&&(r.trigger=o.first),B(o=$())&&(r.panel=o.first),B(o=$())&&(r._overlayDir=o.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(i,r){i&1&&F("keydown",function(s){return r._handleKeydown(s)})("focus",function(){return r._onFocus()})("blur",function(){return r._onBlur()}),i&2&&(re("id",r.id)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r.panelOpen?r.id+"-panel":null)("aria-expanded",r.panelOpen)("aria-label",r.ariaLabel||null)("aria-required",r.required.toString())("aria-disabled",r.disabled.toString())("aria-invalid",r.errorState)("aria-activedescendant",r._getAriaActiveDescendant()),Q("mat-mdc-select-disabled",r.disabled)("mat-mdc-select-invalid",r.errorState)("mat-mdc-select-required",r.required)("mat-mdc-select-empty",r.empty)("mat-mdc-select-multiple",r.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",W],disableRipple:[2,"disableRipple","disableRipple",W],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:gi(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",W],placeholder:"placeholder",required:[2,"required","required",W],multiple:[2,"multiple","multiple",W],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",W],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",gi],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[de([{provide:K_,useExisting:n},{provide:kh,useExisting:n}]),Ie,ze,O],ngContentSelectors:Qae,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(i,r){if(i&1){let o=ye();ge(Gae),b(0,"div",2,0),F("click",function(){return N(o),L(r.open())}),b(3,"div",3),U(4,Kae,2,1,"span",4)(5,Jae,3,1,"span",5),y(),b(6,"div",6)(7,"div",7),Yi(),b(8,"svg",8),ie(9,"path",9),y()()()(),U(10,ele,3,9,"ng-template",10),F("backdropClick",function(){return N(o),L(r.close())})("attach",function(){return N(o),L(r._onAttached())})("detach",function(){return N(o),L(r.close())})}if(i&2){let o=Zt(1);w(3),re("id",r._valueId),w(),Y(r.empty?4:5),w(6),q("cdkConnectedOverlayPanelClass",r._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",r._scrollStrategy)("cdkConnectedOverlayOrigin",r._preferredOverlayOrigin||o)("cdkConnectedOverlayOpen",r.panelOpen)("cdkConnectedOverlayPositions",r._positions)("cdkConnectedOverlayWidth",r._overlayWidth)}},dependencies:[Ph,Px,$c],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, var(--mat-app-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-app-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-app-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-app-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-app-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-app-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-app-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-app-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color, var(--mat-app-surface-container))}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-app-on-surface-variant))}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform)}'],encapsulation:2,data:{animation:[tle.transformPanel]},changeDetection:0})}}return n})();var LH=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({providers:[rle],imports:[Li,Ti,fd,Me,Zi,DL,fd,Me]})}}return n})();function sle(n,t){if(n&1&&(b(0,"mat-option",17),z(1),y()),n&2){let e=t.$implicit;q("value",e),w(),qe(" ",e," ")}}function ale(n,t){if(n&1){let e=ye();b(0,"mat-form-field",14)(1,"mat-select",16,0),F("selectionChange",function(r){N(e);let o=S(2);return L(o._changePageSize(r.value))}),qi(3,sle,2,2,"mat-option",17,Kn),y(),b(5,"div",18),F("click",function(){N(e);let r=Zt(2);return L(r.open())}),y()()}if(n&2){let e=S(2);q("appearance",e._formFieldAppearance)("color",e.color),w(),q("value",e.pageSize)("disabled",e.disabled)("aria-labelledby",e._pageSizeLabelId)("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),w(2),Gi(e._displayedPageSizeOptions)}}function lle(n,t){if(n&1&&(b(0,"div",15),z(1),y()),n&2){let e=S(2);w(),ft(e.pageSize)}}function cle(n,t){if(n&1&&(b(0,"div",3)(1,"div",13),z(2),y(),U(3,ale,6,7,"mat-form-field",14)(4,lle,2,1,"div",15),y()),n&2){let e=S();w(),re("id",e._pageSizeLabelId),w(),qe(" ",e._intl.itemsPerPageLabel," "),w(),Y(e._displayedPageSizeOptions.length>1?3:-1),w(),Y(e._displayedPageSizeOptions.length<=1?4:-1)}}function dle(n,t){if(n&1){let e=ye();b(0,"button",19),F("click",function(){N(e);let r=S();return L(r.firstPage())}),Yi(),b(1,"svg",8),ie(2,"path",20),y()()}if(n&2){let e=S();q("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),re("aria-label",e._intl.firstPageLabel)}}function ule(n,t){if(n&1){let e=ye();b(0,"button",21),F("click",function(){N(e);let r=S();return L(r.lastPage())}),Yi(),b(1,"svg",8),ie(2,"path",22),y()()}if(n&2){let e=S();q("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),re("aria-label",e._intl.lastPageLabel)}}var zy=(()=>{class n{constructor(){this.changes=new k,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,i,r)=>{if(r==0||i==0)return`0 of ${r}`;r=Math.max(r,0);let o=e*i,s=o{class n{get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(e||0,0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=e||0,this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(e||0,0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(i=>gi(i,0)),this._updateDisplayedPageSizeOptions()}constructor(e,i,r){if(this._intl=e,this._changeDetectorRef=i,this._pageSizeLabelId=`mat-paginator-page-size-label-${gle++}`,this._isInitialized=!1,this._initializedStream=new qn(1),this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this.hidePageSize=!1,this.showFirstLastButtons=!1,this.selectConfig={},this.disabled=!1,this.page=new P,this.initialized=this._initializedStream,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),r){let{pageSize:o,pageSizeOptions:s,hidePageSize:a,showFirstLastButtons:l}=r;o!=null&&(this._pageSize=o),s!=null&&(this._pageSizeOptions=s),a!=null&&(this.hidePageSize=a),l!=null&&(this.showFirstLastButtons=l)}this._formFieldAppearance=r?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;let e=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;let e=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;let e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;let e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let e=this.getNumberOfPages()-1;return this.pageIndexe-i),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}static{this.\u0275fac=function(i){return new(i||n)(p(zy),p(_e),p(ple,8))}}static{this.\u0275cmp=A({type:n,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",gi],length:[2,"length","length",gi],pageSize:[2,"pageSize","pageSize",gi],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",W],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",W],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",W]},outputs:{page:"page"},exportAs:["matPaginator"],standalone:!0,features:[Ie,O],decls:14,vars:14,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(i,r){i&1&&(b(0,"div",1)(1,"div",2),U(2,cle,5,4,"div",3),b(3,"div",4)(4,"div",5),z(5),y(),U(6,dle,3,5,"button",6),b(7,"button",7),F("click",function(){return r.previousPage()}),Yi(),b(8,"svg",8),ie(9,"path",9),y()(),Vc(),b(10,"button",10),F("click",function(){return r.nextPage()}),Yi(),b(11,"svg",8),ie(12,"path",11),y()(),U(13,ule,3,5,"button",12),y()()()),i&2&&(w(2),Y(r.hidePageSize?-1:2),w(3),qe(" ",r._intl.getRangeLabel(r.pageIndex,r.pageSize,r.length)," "),w(),Y(r.showFirstLastButtons?6:-1),w(),q("matTooltip",r._intl.previousPageLabel)("matTooltipDisabled",r._previousButtonsDisabled())("matTooltipPosition","above")("disabled",r._previousButtonsDisabled()),re("aria-label",r._intl.previousPageLabel),w(3),q("matTooltip",r._intl.nextPageLabel)("matTooltipDisabled",r._nextButtonsDisabled())("matTooltipPosition","above")("disabled",r._nextButtonsDisabled()),re("aria-label",r._intl.nextPageLabel),w(3),Y(r.showFirstLastButtons?13:-1))},dependencies:[CL,NH,hd,ma,ka],styles:[".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-app-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-app-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-app-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-app-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-app-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-app-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-app-body-small-tracking));--mat-form-field-container-height:var(--mat-paginator-form-field-container-height);--mat-form-field-container-vertical-padding:var(--mat-paginator-form-field-container-vertical-padding)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-app-body-small-size))}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color)}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,.cdk-high-contrast-active .mat-mdc-paginator-icon{fill:currentColor;fill:CanvasText}.cdk-high-contrast-active .mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}.mat-mdc-paginator-touch-target{display:var(--mat-paginator-touch-target-display);position:absolute;top:50%;left:50%;width:84px;height:48px;background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer}"],encapsulation:2,changeDetection:0})}}return n})(),VM=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({providers:[fle],imports:[bs,LH,Gh,_le]})}}return n})();var Uy=["*"],ble=["content"],vle=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],yle=["mat-drawer","mat-drawer-content","*"];function wle(n,t){if(n&1){let e=ye();b(0,"div",1),F("click",function(){N(e);let r=S();return L(r._onBackdropClicked())}),y()}if(n&2){let e=S();Q("mat-drawer-shown",e._isShowingBackdrop())}}function Cle(n,t){n&1&&(b(0,"mat-drawer-content"),Z(1,2),y())}var Dle=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],xle=["mat-sidenav","mat-sidenav-content","*"];function Sle(n,t){if(n&1){let e=ye();b(0,"div",1),F("click",function(){N(e);let r=S();return L(r._onBackdropClicked())}),y()}if(n&2){let e=S();Q("mat-drawer-shown",e._isShowingBackdrop())}}function kle(n,t){n&1&&(b(0,"mat-sidenav-content"),Z(1,2),y())}var Ele='.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color, var(--mat-app-on-background));background-color:var(--mat-sidenav-content-background-color, var(--mat-app-background));box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color)}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color, var(--mat-app-on-surface-variant));box-shadow:var(--mat-sidenav-container-elevation-shadow);background-color:var(--mat-sidenav-container-background-color, var(--mat-app-surface));border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));width:var(--mat-sidenav-container-width);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}',jH={transformDrawer:qt("transform",[_t("open, open-instant",De({transform:"none",visibility:"visible"})),_t("void",De({"box-shadow":"none",visibility:"hidden"})),at("void => open-instant",lt("0ms")),at("void <=> open, open-instant => void",lt("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};var Ile=new I("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:Mle}),jM=new I("MAT_DRAWER_CONTAINER");function Mle(){return!1}var Hy=(()=>{class n extends io{constructor(e,i,r,o,s){super(r,o,s),this._changeDetectorRef=e,this._container=i}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}static{this.\u0275fac=function(i){return new(i||n)(p(_e),p(Ye(()=>$H)),p(H),p(to),p(X))}}static{this.\u0275cmp=A({type:n,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(i,r){i&2&&wt("margin-left",r._container._contentMargins.left,"px")("margin-right",r._container._contentMargins.right,"px")},standalone:!0,features:[de([{provide:io,useExisting:n}]),ne,O],ngContentSelectors:Uy,decls:1,vars:0,template:function(i,r){i&1&&(ge(),Z(0))},encapsulation:2,changeDetection:0})}}return n})(),BH=(()=>{class n{get position(){return this._position}set position(e){e=e==="end"?"end":"start",e!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=ai(e)}get autoFocus(){let e=this._autoFocus;return e??(this.mode==="side"?"dialog":"first-tabbable")}set autoFocus(e){(e==="true"||e==="false"||e==null)&&(e=ai(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(ai(e))}constructor(e,i,r,o,s,a,l,c){this._elementRef=e,this._focusTrapFactory=i,this._focusMonitor=r,this._platform=o,this._ngZone=s,this._interactivityChecker=a,this._doc=l,this._container=c,this._focusTrap=null,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new k,this._animationEnd=new k,this._animationState="void",this.openedChange=new P(!0),this._openedStream=this.openedChange.pipe(Ae(d=>d),fe(()=>{})),this.openedStart=this._animationStarted.pipe(Ae(d=>d.fromState!==d.toState&&d.toState.indexOf("open")===0),$s(void 0)),this._closedStream=this.openedChange.pipe(Ae(d=>!d),fe(()=>{})),this.closedStart=this._animationStarted.pipe(Ae(d=>d.fromState!==d.toState&&d.toState==="void"),$s(void 0)),this._destroyed=new k,this.onPositionChanged=new P,this._modeChanged=new k,this._injector=C(Oe),this._changeDetectorRef=C(_e),this.openedChange.pipe(Ce(this._destroyed)).subscribe(d=>{d?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{Ri(this._elementRef.nativeElement,"keydown").pipe(Ae(d=>d.keyCode===27&&!this.disableClose&&!xt(d)),Ce(this._destroyed)).subscribe(d=>this._ngZone.run(()=>{this.close(),d.stopPropagation(),d.preventDefault()}))}),this._animationEnd.subscribe(d=>{let{fromState:u,toState:h}=d;(h.indexOf("open")===0&&u==="void"||h==="void"&&u.indexOf("open")===0)&&this.openedChange.emit(this._opened)})}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_takeFocus(){if(!this._focusTrap)return;let e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":jt(()=>{!this._focusTrap.focusInitialElement()&&typeof e.focus=="function"&&e.focus()},{injector:this._injector});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus);break}}_restoreFocus(e){this.autoFocus!=="dialog"&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){let e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._position==="end"&&this._updatePositionInParent("end"),this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState())}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap?.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,i){e&&i&&(this._openedVia=i);let r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,i,r){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",i&&this._restoreFocus(r)),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(o=>{this.openedChange.pipe(pt(1)).subscribe(s=>o(s?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop&&this.opened)}_updatePositionInParent(e){if(!this._platform.isBrowser)return;let i=this._elementRef.nativeElement,r=i.parentNode;e==="end"?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,i)),r.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}static{this.\u0275fac=function(i){return new(i||n)(p(H),p(El),p(yi),p(Ne),p(X),p(da),p(ce,8),p(jM,8))}}static{this.\u0275cmp=A({type:n,selectors:[["mat-drawer"]],viewQuery:function(i,r){if(i&1&&le(ble,5),i&2){let o;B(o=$())&&(r._content=o.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(i,r){i&1&&_l("@transform.start",function(s){return r._animationStarted.next(s)})("@transform.done",function(s){return r._animationEnd.next(s)}),i&2&&(gl("@transform",r._animationState),re("align",null),Q("mat-drawer-end",r.position==="end")("mat-drawer-over",r.mode==="over")("mat-drawer-push",r.mode==="push")("mat-drawer-side",r.mode==="side")("mat-drawer-opened",r.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],standalone:!0,features:[O],ngContentSelectors:Uy,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(i,r){i&1&&(ge(),b(0,"div",1,0),Z(2),y())},dependencies:[io],encapsulation:2,data:{animation:[jH.transformDrawer]},changeDetection:0})}}return n})(),$H=(()=>{class n{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=ai(e)}get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(e){this._backdropOverride=e==null?null:ai(e)}get scrollable(){return this._userContent||this._content}constructor(e,i,r,o,s,a=!1,l){this._dir=e,this._element=i,this._ngZone=r,this._changeDetectorRef=o,this._animationMode=l,this._drawers=new vr,this.backdropClick=new P,this._destroyed=new k,this._doCheckSubject=new k,this._contentMargins={left:null,right:null},this._contentMarginChanges=new k,this._injector=C(Oe),e&&e.change.pipe(Ce(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),s.change().pipe(Ce(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=a}ngAfterContentInit(){this._allDrawers.changes.pipe(yt(this._allDrawers),Ce(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(yt(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(sn(10),Ce(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,i=0;if(this._left&&this._left.opened){if(this._left.mode=="side")e+=this._left._getWidth();else if(this._left.mode=="push"){let r=this._left._getWidth();e+=r,i-=r}}if(this._right&&this._right.opened){if(this._right.mode=="side")i+=this._right._getWidth();else if(this._right.mode=="push"){let r=this._right._getWidth();i+=r,e-=r}}e=e||null,i=i||null,(e!==this._contentMargins.left||i!==this._contentMargins.right)&&(this._contentMargins={left:e,right:i},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(Ae(i=>i.fromState!==i.toState),Ce(this._drawers.changes)).subscribe(i=>{i.toState!=="open-instant"&&this._animationMode!=="NoopAnimations"&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),e.mode!=="side"&&e.openedChange.pipe(Ce(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e&&e.onPositionChanged.pipe(Ce(this._drawers.changes)).subscribe(()=>{jt(()=>{this._validateDrawers()},{injector:this._injector,phase:Us.Read})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(Ce(et(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){let i=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?i.add(r):i.remove(r)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{e.position=="end"?(this._end!=null,this._end=e):(this._start!=null,this._start=e)}),this._right=this._left=null,this._dir&&this._dir.value==="rtl"?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&this._start.mode!="over"||this._isDrawerOpen(this._end)&&this._end.mode!="over"}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._drawerHasBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(e){return e!=null&&e.opened}_drawerHasBackdrop(e){return this._backdropOverride==null?!!e&&e.mode!=="side":this._backdropOverride}static{this.\u0275fac=function(i){return new(i||n)(p(gt,8),p(H),p(X),p(_e),p(zi),p(Ile),p(Dt,8))}}static{this.\u0275cmp=A({type:n,selectors:[["mat-drawer-container"]],contentQueries:function(i,r,o){if(i&1&&(He(o,Hy,5),He(o,BH,5)),i&2){let s;B(s=$())&&(r._content=s.first),B(s=$())&&(r._allDrawers=s)}},viewQuery:function(i,r){if(i&1&&le(Hy,5),i&2){let o;B(o=$())&&(r._userContent=o.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(i,r){i&2&&Q("mat-drawer-container-explicit-backdrop",r._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],standalone:!0,features:[de([{provide:jM,useExisting:n}]),O],ngContentSelectors:yle,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,r){i&1&&(ge(vle),U(0,wle,1,2,"div",0),Z(1),Z(2,1),U(3,Cle,2,0,"mat-drawer-content")),i&2&&(Y(r.hasBackdrop?0:-1),w(3),Y(r._content?-1:3))},dependencies:[Hy],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color, var(--mat-app-on-background));background-color:var(--mat-sidenav-content-background-color, var(--mat-app-background));box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color)}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color, var(--mat-app-on-surface-variant));box-shadow:var(--mat-sidenav-container-elevation-shadow);background-color:var(--mat-sidenav-container-background-color, var(--mat-app-surface));border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));width:var(--mat-sidenav-container-width);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0})}}return n})(),VH=(()=>{class n extends Hy{constructor(e,i,r,o,s){super(e,i,r,o,s)}static{this.\u0275fac=function(i){return new(i||n)(p(_e),p(Ye(()=>Ale)),p(H),p(to),p(X))}}static{this.\u0275cmp=A({type:n,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(i,r){i&2&&wt("margin-left",r._container._contentMargins.left,"px")("margin-right",r._container._contentMargins.right,"px")},standalone:!0,features:[de([{provide:io,useExisting:n}]),ne,O],ngContentSelectors:Uy,decls:1,vars:0,template:function(i,r){i&1&&(ge(),Z(0))},encapsulation:2,changeDetection:0})}}return n})(),Tle=(()=>{class n extends BH{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=ai(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=ji(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=ji(e)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xe(n)))(r||n)}})()}static{this.\u0275cmp=A({type:n,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(i,r){i&2&&(re("align",null),wt("top",r.fixedInViewport?r.fixedTopGap:null,"px")("bottom",r.fixedInViewport?r.fixedBottomGap:null,"px"),Q("mat-drawer-end",r.position==="end")("mat-drawer-over",r.mode==="over")("mat-drawer-push",r.mode==="push")("mat-drawer-side",r.mode==="side")("mat-drawer-opened",r.opened)("mat-sidenav-fixed",r.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],standalone:!0,features:[ne,O],ngContentSelectors:Uy,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(i,r){i&1&&(ge(),b(0,"div",1,0),Z(2),y())},dependencies:[io],encapsulation:2,data:{animation:[jH.transformDrawer]},changeDetection:0})}}return n})(),Ale=(()=>{class n extends $H{constructor(){super(...arguments),this._allDrawers=void 0,this._content=void 0}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xe(n)))(r||n)}})()}static{this.\u0275cmp=A({type:n,selectors:[["mat-sidenav-container"]],contentQueries:function(i,r,o){if(i&1&&(He(o,VH,5),He(o,Tle,5)),i&2){let s;B(s=$())&&(r._content=s.first),B(s=$())&&(r._allDrawers=s)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(i,r){i&2&&Q("mat-drawer-container-explicit-backdrop",r._backdropOverride)},exportAs:["matSidenavContainer"],standalone:!0,features:[de([{provide:jM,useExisting:n}]),ne,O],ngContentSelectors:xle,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,r){i&1&&(ge(Dle),U(0,Sle,1,2,"div",0),Z(1),Z(2,1),U(3,kle,2,0,"mat-sidenav-content")),i&2&&(Y(r.hasBackdrop?0:-1),w(3),Y(r._content?-1:3))},dependencies:[VH],styles:[Ele],encapsulation:2,changeDetection:0})}}return n})(),BM=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({imports:[Me,Zi,Zi,Me]})}}return n})();var Ole=["mat-sort-header",""],Rle=["*"];function Ple(n,t){if(n&1){let e=ye();b(0,"div",2),F("@arrowPosition.start",function(){N(e);let r=S();return L(r._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){N(e);let r=S();return L(r._disableViewStateAnimation=!1)}),ie(1,"div",3),b(2,"div",4),ie(3,"div",5)(4,"div",6)(5,"div",7),y()()}if(n&2){let e=S();q("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),w(2),q("@indicator",e._getArrowDirectionState()),w(),q("@leftPointer",e._getArrowDirectionState()),w(),q("@rightPointer",e._getArrowDirectionState())}}var zH=new I("MAT_SORT_DEFAULT_OPTIONS"),Fle=(()=>{class n{get direction(){return this._direction}set direction(e){this._direction=e}constructor(e){this._defaultOptions=e,this._initializedStream=new qn(1),this.sortables=new Map,this._stateChanges=new k,this.start="asc",this._direction="",this.disabled=!1,this.sortChange=new P,this.initialized=this._initializedStream}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let i=e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,r=Nle(e.start||this.start,i),o=r.indexOf(this.direction)+1;return o>=r.length&&(o=0),r[o]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}static{this.\u0275fac=function(i){return new(i||n)(p(zH,8))}}static{this.\u0275dir=M({type:n,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",W],disabled:[2,"matSortDisabled","disabled",W]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],standalone:!0,features:[Ie,ze]})}}return n})();function Nle(n,t){let e=["asc","desc"];return n=="desc"&&e.reverse(),t||e.push(""),e}var za=tN.ENTERING+" "+eN.STANDARD_CURVE,uu={indicator:qt("indicator",[_t("active-asc, asc",De({transform:"translateY(0px)"})),_t("active-desc, desc",De({transform:"translateY(10px)"})),at("active-asc <=> active-desc",lt(za))]),leftPointer:qt("leftPointer",[_t("active-asc, asc",De({transform:"rotate(-45deg)"})),_t("active-desc, desc",De({transform:"rotate(45deg)"})),at("active-asc <=> active-desc",lt(za))]),rightPointer:qt("rightPointer",[_t("active-asc, asc",De({transform:"rotate(45deg)"})),_t("active-desc, desc",De({transform:"rotate(-45deg)"})),at("active-asc <=> active-desc",lt(za))]),arrowOpacity:qt("arrowOpacity",[_t("desc-to-active, asc-to-active, active",De({opacity:1})),_t("desc-to-hint, asc-to-hint, hint",De({opacity:.54})),_t("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",De({opacity:0})),at("* => asc, * => desc, * => active, * => hint, * => void",lt("0ms")),at("* <=> *",lt(za))]),arrowPosition:qt("arrowPosition",[at("* => desc-to-hint, * => desc-to-active",lt(za,ga([De({transform:"translateY(-25%)"}),De({transform:"translateY(0)"})]))),at("* => hint-to-desc, * => active-to-desc",lt(za,ga([De({transform:"translateY(0)"}),De({transform:"translateY(25%)"})]))),at("* => asc-to-hint, * => asc-to-active",lt(za,ga([De({transform:"translateY(25%)"}),De({transform:"translateY(0)"})]))),at("* => hint-to-asc, * => active-to-asc",lt(za,ga([De({transform:"translateY(0)"}),De({transform:"translateY(-25%)"})]))),_t("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",De({transform:"translateY(0)"})),_t("hint-to-desc, active-to-desc, desc",De({transform:"translateY(-25%)"})),_t("hint-to-asc, active-to-asc, asc",De({transform:"translateY(25%)"}))]),allowChildren:qt("allowChildren",[at("* <=> *",[S_("@*",x_(),{optional:!0})])])},Wy=(()=>{class n{constructor(){this.changes=new k}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function Lle(n){return n||new Wy}var Vle={provide:Wy,deps:[[new yr,new Ur,Wy]],useFactory:Lle},pFe=(()=>{class n{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}constructor(e,i,r,o,s,a,l,c){this._intl=e,this._changeDetectorRef=i,this._sort=r,this._columnDef=o,this._focusMonitor=s,this._elementRef=a,this._ariaDescriber=l,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this.disabled=!1,this._sortActionDescription="Sort",c?.arrowPosition&&(this.arrowPosition=c?.arrowPosition),this._handleStateChanges()}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{let i=!!e;i!==this._showIndicatorHint&&(this._setIndicatorHintVisible(i),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._showIndicatorHint?this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"hint"}):this._setAnimationTransitionState({fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(e.keyCode===32||e.keyCode===13)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){let e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=et(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&this._viewState.toState==="active"&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}static{this.\u0275fac=function(i){return new(i||n)(p(Wy),p(_e),p(Fle,8),p("MAT_SORT_HEADER_COLUMN_DEF",8),p(yi),p(H),p(b_,8),p(zH,8))}}static{this.\u0275cmp=A({type:n,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(i,r){i&1&&F("click",function(){return r._handleClick()})("keydown",function(s){return r._handleKeydown(s)})("mouseenter",function(){return r._setIndicatorHintVisible(!0)})("mouseleave",function(){return r._setIndicatorHintVisible(!1)}),i&2&&(re("aria-sort",r._getAriaSortAttribute()),Q("mat-sort-header-disabled",r._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",W],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",W]},exportAs:["matSortHeader"],standalone:!0,features:[Ie,O],attrs:Ole,ngContentSelectors:Rle,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(i,r){i&1&&(ge(),b(0,"div",0)(1,"div",1),Z(2),y(),U(3,Ple,6,6,"div",2),y()),i&2&&(Q("mat-sort-header-sorted",r._isSorted())("mat-sort-header-position-before",r.arrowPosition==="before"),re("tabindex",r._isDisabled()?null:0)("role",r._isDisabled()?null:"button"),w(3),Y(r._renderArrow()?3:-1))},styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;color:var(--mat-sort-arrow-color, var(--mat-app-on-surface));opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[uu.indicator,uu.leftPointer,uu.rightPointer,uu.arrowOpacity,uu.arrowPosition,uu.allowChildren]},changeDetection:0})}}return n})(),$M=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({providers:[Vle],imports:[Me]})}}return n})();var jle=[[["caption"]],[["colgroup"],["col"]],"*"],Ble=["caption","colgroup, col","*"];function $le(n,t){n&1&&Z(0,2)}function zle(n,t){n&1&&(b(0,"thead",0),Qi(1,1),y(),b(2,"tbody",2),Qi(3,3)(4,4),y(),b(5,"tfoot",0),Qi(6,5),y())}function Hle(n,t){n&1&&Qi(0,1)(1,3)(2,4)(3,5)}var AFe=(()=>{class n extends RM{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xe(n)))(r||n)}})()}static{this.\u0275cmp=A({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(i,r){i&2&&Q("mdc-table-fixed-layout",r.fixedLayout)},exportAs:["matTable"],standalone:!0,features:[de([{provide:RM,useExisting:n},{provide:ho,useExisting:n},{provide:Ny,useClass:xM},{provide:Ah,useClass:gd},{provide:Ly,useValue:null}]),ne,O],ngContentSelectors:Ble,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,r){i&1&&(ge(jle),Z(0),Z(1,1),U(2,$le,1,0)(3,zle,7,0)(4,Hle,4,0)),i&2&&(w(2),Y(r._isServer?2:-1),w(),Y(r._isNativeHtmlTable?3:4))},dependencies:[TM,MM,OM,AM],styles:[".mat-mdc-table-sticky{position:sticky !important}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{min-width:100%;border:0;border-spacing:0;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color, var(--mat-app-surface))}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell{text-align:right}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, var(--mat-app-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-header-headline-font, var(--mat-app-title-small-font, Roboto, sans-serif));line-height:var(--mat-table-header-headline-line-height, var(--mat-app-title-small-line-height));font-size:var(--mat-table-header-headline-size, var(--mat-app-title-small-size, 14px));font-weight:var(--mat-table-header-headline-weight, var(--mat-app-title-small-weight, 500))}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-app-on-surface, rgba(0, 0, 0, 0.87)))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, var(--mat-app-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-row-item-label-text-line-height, var(--mat-app-body-medium-line-height));font-size:var(--mat-table-row-item-label-text-size, var(--mat-app-body-medium-size, 14px));font-weight:var(--mat-table-row-item-label-text-weight, var(--mat-app-body-medium-weight))}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-app-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-footer-supporting-text-font, var(--mat-app-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-footer-supporting-text-line-height, var(--mat-app-body-medium-line-height));font-size:var(--mat-table-footer-supporting-text-size, var(--mat-app-body-medium-size, 14px));font-weight:var(--mat-table-footer-supporting-text-weight, var(--mat-app-body-medium-weight));letter-spacing:var(--mat-table-footer-supporting-text-tracking, var(--mat-app-body-medium-tracking))}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-app-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking, var(--mat-app-title-small-tracking));font-weight:inherit;line-height:inherit;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mat-mdc-header-cell{text-align:right}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-app-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-app-body-medium-tracking));line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-app-body-medium-tracking))}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2})}}return n})(),OFe=(()=>{class n extends Vy{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xe(n)))(r||n)}})()}static{this.\u0275dir=M({type:n,selectors:[["","matCellDef",""]],standalone:!0,features:[de([{provide:Vy,useExisting:n}]),ne]})}}return n})(),RFe=(()=>{class n extends jy{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xe(n)))(r||n)}})()}static{this.\u0275dir=M({type:n,selectors:[["","matHeaderCellDef",""]],standalone:!0,features:[de([{provide:jy,useExisting:n}]),ne]})}}return n})(),PFe=(()=>{class n extends By{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xe(n)))(r||n)}})()}static{this.\u0275dir=M({type:n,selectors:[["","matFooterCellDef",""]],standalone:!0,features:[de([{provide:By,useExisting:n}]),ne]})}}return n})(),FFe=(()=>{class n extends dc{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xe(n)))(r||n)}})()}static{this.\u0275dir=M({type:n,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},standalone:!0,features:[de([{provide:dc,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),ne]})}}return n})(),NFe=(()=>{class n extends IH{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xe(n)))(r||n)}})()}static{this.\u0275dir=M({type:n,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],standalone:!0,features:[ne]})}}return n})(),LFe=(()=>{class n extends MH{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xe(n)))(r||n)}})()}static{this.\u0275dir=M({type:n,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:[1,"mat-mdc-footer-cell","mdc-data-table__cell"],standalone:!0,features:[ne]})}}return n})(),VFe=(()=>{class n extends TH{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xe(n)))(r||n)}})()}static{this.\u0275dir=M({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],standalone:!0,features:[ne]})}}return n})();var jFe=(()=>{class n extends am{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xe(n)))(r||n)}})()}static{this.\u0275dir=M({type:n,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",W]},standalone:!0,features:[de([{provide:am,useExisting:n}]),Ie,ne]})}}return n})(),BFe=(()=>{class n extends lm{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xe(n)))(r||n)}})()}static{this.\u0275dir=M({type:n,selectors:[["","matFooterRowDef",""]],inputs:{columns:[0,"matFooterRowDef","columns"],sticky:[2,"matFooterRowDefSticky","sticky",W]},standalone:!0,features:[de([{provide:lm,useExisting:n}]),Ie,ne]})}}return n})(),$Fe=(()=>{class n extends $y{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xe(n)))(r||n)}})()}static{this.\u0275dir=M({type:n,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},standalone:!0,features:[de([{provide:$y,useExisting:n}]),ne]})}}return n})(),zFe=(()=>{class n extends kM{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xe(n)))(r||n)}})()}static{this.\u0275cmp=A({type:n,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],standalone:!0,features:[de([{provide:kM,useExisting:n}]),ne,O],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Qi(0,0)},dependencies:[Ps],encapsulation:2})}}return n})(),HFe=(()=>{class n extends EM{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xe(n)))(r||n)}})()}static{this.\u0275cmp=A({type:n,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-mdc-footer-row","mdc-data-table__row"],exportAs:["matFooterRow"],standalone:!0,features:[de([{provide:EM,useExisting:n}]),ne,O],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Qi(0,0)},dependencies:[Ps],encapsulation:2})}}return n})(),UFe=(()=>{class n extends IM{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xe(n)))(r||n)}})()}static{this.\u0275cmp=A({type:n,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],standalone:!0,features:[de([{provide:IM,useExisting:n}]),ne,O],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&Qi(0,0)},dependencies:[Ps],encapsulation:2})}}return n})();var zM=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({imports:[Me,cm,Me]})}}return n})(),Ule=9007199254740991,HH=class extends Th{get data(){return this._data.value}set data(t){t=Array.isArray(t)?t:[],this._data.next(t),this._renderChangesSubscription||this._filterData(t)}get filter(){return this._filter.value}set filter(t){this._filter.next(t),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(t){this._sort=t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(t){this._paginator=t,this._updateChangeSubscription()}constructor(t=[]){super(),this._renderData=new Ee([]),this._filter=new Ee(""),this._internalPageChanges=new k,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,i)=>{let r=e[i];if(cx(r)){let o=Number(r);return o{let r=i.active,o=i.direction;return!r||o==""?e:e.sort((s,a)=>{let l=this.sortingDataAccessor(s,r),c=this.sortingDataAccessor(a,r),d=typeof l,u=typeof c;d!==u&&(d==="number"&&(l+=""),u==="number"&&(c+=""));let h=0;return l!=null&&c!=null?l>c?h=1:l{let r=Object.keys(e).reduce((s,a)=>s+e[a]+"\u25EC","").toLowerCase(),o=i.trim().toLowerCase();return r.indexOf(o)!=-1},this._data=new Ee(t),this._updateChangeSubscription()}_updateChangeSubscription(){let t=this._sort?et(this._sort.sortChange,this._sort.initialized):oe(null),e=this._paginator?et(this._paginator.page,this._internalPageChanges,this._paginator.initialized):oe(null),i=this._data,r=jr([i,this._filter]).pipe(fe(([a])=>this._filterData(a))),o=jr([r,t]).pipe(fe(([a])=>this._orderData(a))),s=jr([o,e]).pipe(fe(([a])=>this._pageData(a)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=s.subscribe(a=>this._renderData.next(a))}_filterData(t){return this.filteredData=this.filter==null||this.filter===""?t:t.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(t){return this.sort?this.sortData(t.slice(),this.sort):t}_pageData(t){if(!this.paginator)return t;let e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(e,e+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{let e=this.paginator;if(e&&(e.length=t,e.pageIndex>0)){let i=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,i);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var hu=["*"];function Wle(n,t){n&1&&Z(0)}var YH=["tabListContainer"],qH=["tabList"],GH=["tabListInner"],QH=["nextPaginator"],KH=["previousPaginator"],Yle=n=>({animationDuration:n}),qle=(n,t)=>({value:n,params:t});function Gle(n,t){}var Qle=["tabBodyWrapper"],Kle=["tabHeader"];function Zle(n,t){}function Xle(n,t){if(n&1&&U(0,Zle,0,0,"ng-template",12),n&2){let e=S().$implicit;q("cdkPortalOutlet",e.templateLabel)}}function Jle(n,t){if(n&1&&z(0),n&2){let e=S().$implicit;ft(e.textLabel)}}function ece(n,t){if(n&1){let e=ye();b(0,"div",7,2),F("click",function(){let r=N(e),o=r.$implicit,s=r.$index,a=S(),l=Zt(1);return L(a._handleClick(o,l,s))})("cdkFocusChange",function(r){let o=N(e).$index,s=S();return L(s._tabFocusChanged(r,o))}),ie(2,"span",8)(3,"div",9),b(4,"span",10)(5,"span",11),U(6,Xle,1,1,null,12)(7,Jle,1,1),y()()()}if(n&2){let e=t.$implicit,i=t.$index,r=Zt(1),o=S();ui(e.labelClass),Q("mdc-tab--active",o.selectedIndex===i),q("id",o._getTabLabelId(i))("disabled",e.disabled)("fitInkBarToContent",o.fitInkBarToContent),re("tabIndex",o._getTabIndex(i))("aria-posinset",i+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(i))("aria-selected",o.selectedIndex===i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),w(3),q("matRippleTrigger",r)("matRippleDisabled",e.disabled||o.disableRipple),w(3),Y(e.templateLabel?6:7)}}function tce(n,t){n&1&&Z(0)}function ice(n,t){if(n&1){let e=ye();b(0,"mat-tab-body",13),F("_onCentered",function(){N(e);let r=S();return L(r._removeTabBodyWrapperHeight())})("_onCentering",function(r){N(e);let o=S();return L(o._setTabBodyWrapperHeight(r))}),y()}if(n&2){let e=t.$implicit,i=t.$index,r=S();ui(e.bodyClass),Q("mat-mdc-tab-body-active",r.selectedIndex===i),q("id",r._getTabContentId(i))("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),re("tabindex",r.contentTabIndex!=null&&r.selectedIndex===i?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(i))("aria-hidden",r.selectedIndex!==i)}}var nce=["mat-tab-nav-bar",""],rce=["mat-tab-link",""],oce=new I("MatTabContent"),sce=(()=>{class n{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||n)(p(ct))}}static{this.\u0275dir=M({type:n,selectors:[["","matTabContent",""]],standalone:!0,features:[de([{provide:oce,useExisting:n}])]})}}return n})(),ace=new I("MatTabLabel"),ZH=new I("MAT_TAB"),lce=(()=>{class n extends uN{constructor(e,i,r){super(e,i),this._closestTab=r}static{this.\u0275fac=function(i){return new(i||n)(p(ct),p(ht),p(ZH,8))}}static{this.\u0275dir=M({type:n,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],standalone:!0,features:[de([{provide:ace,useExisting:n}]),ne]})}}return n})(),XH=new I("MAT_TAB_GROUP"),cce=(()=>{class n{get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}constructor(e,i){this._viewContainerRef=e,this._closestTabGroup=i,this.disabled=!1,this._explicitContent=void 0,this.textLabel="",this._contentPortal=null,this._stateChanges=new k,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new $i(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static{this.\u0275fac=function(i){return new(i||n)(p(ht),p(XH,8))}}static{this.\u0275cmp=A({type:n,selectors:[["mat-tab"]],contentQueries:function(i,r,o){if(i&1&&(He(o,lce,5),He(o,sce,7,ct)),i&2){let s;B(s=$())&&(r.templateLabel=s.first),B(s=$())&&(r._explicitContent=s.first)}},viewQuery:function(i,r){if(i&1&&le(ct,7),i&2){let o;B(o=$())&&(r._implicitContent=o.first)}},hostAttrs:["hidden",""],inputs:{disabled:[2,"disabled","disabled",W],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],standalone:!0,features:[de([{provide:ZH,useExisting:n}]),Ie,ze,O],ngContentSelectors:hu,decls:1,vars:0,template:function(i,r){i&1&&(ge(),U(0,Wle,1,0,"ng-template"))},encapsulation:2})}}return n})(),HM="mdc-tab-indicator--active",UH="mdc-tab-indicator--no-transition",Yy=class{constructor(t){this._items=t}hide(){this._items.forEach(t=>t.deactivateInkBar())}alignToElement(t){let e=this._items.find(r=>r.elementRef.nativeElement===t),i=this._currentItem;if(e!==i&&(i?.deactivateInkBar(),e)){let r=i?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(r),this._currentItem=e}}},JH=(()=>{class n{constructor(){this._elementRef=C(H),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(e){let i=this._elementRef.nativeElement;if(!e||!i.getBoundingClientRect||!this._inkBarContentElement){i.classList.add(HM);return}let r=i.getBoundingClientRect(),o=e.width/r.width,s=e.left-r.left;i.classList.add(UH),this._inkBarContentElement.style.setProperty("transform",`translateX(${s}px) scaleX(${o})`),i.getBoundingClientRect(),i.classList.remove(UH),i.classList.add(HM),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(HM)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let e=this._elementRef.nativeElement.ownerDocument||document,i=this._inkBarElement=e.createElement("span"),r=this._inkBarContentElement=e.createElement("span");i.className="mdc-tab-indicator",r.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",i.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){this._inkBarElement;let e=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;e.appendChild(this._inkBarElement)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275dir=M({type:n,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",W]},features:[Ie]})}}return n})();var eU=(()=>{class n extends JH{constructor(e){super(),this.elementRef=e,this.disabled=!1}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static{this.\u0275fac=function(i){return new(i||n)(p(H))}}static{this.\u0275dir=M({type:n,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(i,r){i&2&&(re("aria-disabled",!!r.disabled),Q("mat-mdc-tab-disabled",r.disabled))},inputs:{disabled:[2,"disabled","disabled",W]},standalone:!0,features:[Ie,ne]})}}return n})(),WH=hi({passive:!0}),dce=650,uce=100,tU=(()=>{class n{get selectedIndex(){return this._selectedIndex}set selectedIndex(e){let i=isNaN(e)?0:e;this._selectedIndex!=i&&(this._selectedIndexChanged=!0,this._selectedIndex=i,this._keyManager&&this._keyManager.updateActiveItem(i))}constructor(e,i,r,o,s,a,l){this._elementRef=e,this._changeDetectorRef=i,this._viewportRuler=r,this._dir=o,this._ngZone=s,this._platform=a,this._animationMode=l,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new k,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new k,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new P,this.indexFocused=new P,this._sharedResizeObserver=C(G_),this._injector=C(Oe),s.runOutsideAngular(()=>{Ri(e.nativeElement,"mouseleave").pipe(Ce(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){Ri(this._previousPaginator.nativeElement,"touchstart",WH).pipe(Ce(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Ri(this._nextPaginator.nativeElement,"touchstart",WH).pipe(Ce(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){let e=this._dir?this._dir.change:oe("ltr"),i=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(sn(32),Ce(this._destroyed)),r=this._viewportRuler.change(150).pipe(Ce(this._destroyed)),o=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new ld(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),jt(o,{injector:this._injector}),et(e,r,i,this._items.changes,this._itemsResized()).pipe(Ce(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),o()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(s=>{this.indexFocused.emit(s),this._setTabFocus(s)})}_itemsResized(){return typeof ResizeObserver!="function"?Ui:this._items.changes.pipe(yt(this._items),Rt(e=>new Se(i=>this._ngZone.runOutsideAngular(()=>{let r=new ResizeObserver(o=>i.next(o));return e.forEach(o=>r.observe(o.elementRef.nativeElement)),()=>{r.disconnect()}}))),Za(1),Ae(e=>e.some(i=>i.contentRect.width>0&&i.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!xt(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let i=this._items.get(this.focusIndex);i&&!i.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e))}break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){let e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){return this._items?!!this._items.toArray()[e]:!0}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();let i=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?i.scrollLeft=0:i.scrollLeft=i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let e=this.scrollDistance,i=this._getLayoutDirection()==="ltr"?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){let i=this._tabListContainer.nativeElement.offsetWidth,r=(e=="before"?-1:1)*i/3;return this._scrollTo(this._scrollDistance+r)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;let i=this._items?this._items.toArray()[e]:null;if(!i)return;let r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:s}=i.elementRef.nativeElement,a,l;this._getLayoutDirection()=="ltr"?(a=o,l=a+s):(l=this._tabListInner.nativeElement.offsetWidth-o,a=l-s);let c=this.scrollDistance,d=this.scrollDistance+r;ad&&(this.scrollDistance+=Math.min(l-d,a-c))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let e=this._tabListInner.nativeElement.scrollWidth,i=this._elementRef.nativeElement.offsetWidth,r=e-i>=5;r||(this.scrollDistance=0),r!==this._showPaginationControls&&(this._showPaginationControls=r,this._changeDetectorRef.markForCheck())}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){let e=this._tabListInner.nativeElement.scrollWidth,i=this._tabListContainer.nativeElement.offsetWidth;return e-i||0}_alignInkBarToSelectedTab(){let e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,i=e?e.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,i){i&&i.button!=null&&i.button!==0||(this._stopInterval(),Gn(dce,uce).pipe(Ce(et(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:r,distance:o}=this._scrollHeader(e);(o===0||o>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}static{this.\u0275fac=function(i){return new(i||n)(p(H),p(_e),p(zi),p(gt,8),p(X),p(Ne),p(Dt,8))}}static{this.\u0275dir=M({type:n,inputs:{disablePagination:[2,"disablePagination","disablePagination",W],selectedIndex:[2,"selectedIndex","selectedIndex",gi]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[Ie]})}}return n})(),hce=(()=>{class n extends tU{constructor(e,i,r,o,s,a,l){super(e,i,r,o,s,a,l),this.disableRipple=!1}ngAfterContentInit(){this._inkBar=new Yy(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static{this.\u0275fac=function(i){return new(i||n)(p(H),p(_e),p(zi),p(gt,8),p(X),p(Ne),p(Dt,8))}}static{this.\u0275cmp=A({type:n,selectors:[["mat-tab-header"]],contentQueries:function(i,r,o){if(i&1&&He(o,eU,4),i&2){let s;B(s=$())&&(r._items=s)}},viewQuery:function(i,r){if(i&1&&(le(YH,7),le(qH,7),le(GH,7),le(QH,5),le(KH,5)),i&2){let o;B(o=$())&&(r._tabListContainer=o.first),B(o=$())&&(r._tabList=o.first),B(o=$())&&(r._tabListInner=o.first),B(o=$())&&(r._nextPaginator=o.first),B(o=$())&&(r._previousPaginator=o.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(i,r){i&2&&Q("mat-mdc-tab-header-pagination-controls-enabled",r._showPaginationControls)("mat-mdc-tab-header-rtl",r._getLayoutDirection()=="rtl")},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",W]},standalone:!0,features:[Ie,ne,O],ngContentSelectors:hu,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled"]],template:function(i,r){if(i&1){let o=ye();ge(),b(0,"div",5,0),F("click",function(){return N(o),L(r._handlePaginatorClick("before"))})("mousedown",function(a){return N(o),L(r._handlePaginatorPress("before",a))})("touchend",function(){return N(o),L(r._stopInterval())}),ie(2,"div",6),y(),b(3,"div",7,1),F("keydown",function(a){return N(o),L(r._handleKeydown(a))}),b(5,"div",8,2),F("cdkObserveContent",function(){return N(o),L(r._onContentChanges())}),b(7,"div",9,3),Z(9),y()()(),b(10,"div",10,4),F("mousedown",function(a){return N(o),L(r._handlePaginatorPress("after",a))})("click",function(){return N(o),L(r._handlePaginatorClick("after"))})("touchend",function(){return N(o),L(r._stopInterval())}),ie(12,"div",6),y()}i&2&&(Q("mat-mdc-tab-header-pagination-disabled",r._disableScrollBefore),q("matRippleDisabled",r._disableScrollBefore||r.disableRipple),w(3),Q("_mat-animation-noopable",r._animationMode==="NoopAnimations"),w(2),re("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby||null),w(5),Q("mat-mdc-tab-header-pagination-disabled",r._disableScrollAfter),q("matRippleDisabled",r._disableScrollAfter||r.disableRipple))},dependencies:[Jr,yh],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color, var(--mat-app-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height);border-bottom-color:var(--mat-tab-header-divider-color, var(--mat-app-surface-variant))}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-header-divider-height);border-top-color:var(--mat-tab-header-divider-color, var(--mat-app-surface-variant))}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2})}}return n})(),iU=new I("MAT_TABS_CONFIG"),fce={translateTab:qt("translateTab",[_t("center, void, left-origin-center, right-origin-center",De({transform:"none",visibility:"visible"})),_t("left",De({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),_t("right",De({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),at("* => left, * => right, left => center, right => center",lt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),at("void => left-origin-center",[De({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),lt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),at("void => right-origin-center",[De({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),lt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},mce=(()=>{class n extends Dn{constructor(e,i,r,o){super(e,i,o),this._host=r,this._centeringSub=pe.EMPTY,this._leavingSub=pe.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(yt(this._host._isCenterPosition(this._host._position))).subscribe(e=>{this._host._content&&e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static{this.\u0275fac=function(i){return new(i||n)(p(Rn),p(ht),p(Ye(()=>nU)),p(ce))}}static{this.\u0275dir=M({type:n,selectors:[["","matTabBodyHost",""]],standalone:!0,features:[ne]})}}return n})(),nU=(()=>{class n{set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(e,i,r){this._elementRef=e,this._dir=i,this._dirChangeSubscription=pe.EMPTY,this._translateTabComplete=new k,this._onCentering=new P,this._beforeCentering=new P,this._afterLeavingCenter=new P,this._onCentered=new P(!0),this.animationDuration="500ms",this.preserveContent=!1,i&&(this._dirChangeSubscription=i.change.subscribe(o=>{this._computePositionAnimationState(o),r.markForCheck()})),this._translateTabComplete.subscribe(o=>{this._isCenterPosition(o.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(o.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){this._position=="center"&&this.origin!=null&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){let i=this._isCenterPosition(e.toState);this._beforeCentering.emit(i),i&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(e){return e=="center"||e=="left-origin-center"||e=="right-origin-center"}_computePositionAnimationState(e=this._getLayoutDirection()){this._positionIndex<0?this._position=e=="ltr"?"left":"right":this._positionIndex>0?this._position=e=="ltr"?"right":"left":this._position="center"}_computePositionFromOrigin(e){let i=this._getLayoutDirection();return i=="ltr"&&e<=0||i=="rtl"&&e>0?"left-origin-center":"right-origin-center"}static{this.\u0275fac=function(i){return new(i||n)(p(H),p(gt,8),p(_e))}}static{this.\u0275cmp=A({type:n,selectors:[["mat-tab-body"]],viewQuery:function(i,r){if(i&1&&le(Dn,5),i&2){let o;B(o=$())&&(r._portalHost=o.first)}},hostAttrs:[1,"mat-mdc-tab-body"],inputs:{_content:[0,"content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"},standalone:!0,features:[O],decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(i,r){if(i&1){let o=ye();b(0,"div",1,0),F("@translateTab.start",function(a){return N(o),L(r._onTranslateTabStarted(a))})("@translateTab.done",function(a){return N(o),L(r._translateTabComplete.next(a))}),U(2,Gle,0,0,"ng-template",2),y()}i&2&&q("@translateTab",QR(3,qle,r._position,GR(1,Yle,r.animationDuration)))},dependencies:[mce,io],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[fce.translateTab]}})}}return n})(),pce=0,gce=!0,bNe=(()=>{class n{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=e,this._changeDetectorRef.markForCheck()}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=isNaN(e)?null:e}get animationDuration(){return this._animationDuration}set animationDuration(e){let i=e+"";this._animationDuration=/^\d+$/.test(i)?e+"ms":i}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){if(!gce)throw new Error("mat-tab-group background color must be set through the Sass theming API");let i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&i.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}constructor(e,i,r,o){this._elementRef=e,this._changeDetectorRef=i,this._animationMode=o,this._tabs=new vr,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=pe.EMPTY,this._tabLabelSubscription=pe.EMPTY,this._fitInkBarToContent=!1,this.stretchTabs=!0,this.dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this.disablePagination=!1,this.disableRipple=!1,this.preserveContent=!1,this.selectedIndexChange=new P,this.focusChange=new P,this.animationDone=new P,this.selectedTabChange=new P(!0),this._isServer=!C(Ne).isBrowser,this._groupId=pce++,this.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",this.disablePagination=r&&r.disablePagination!=null?r.disablePagination:!1,this.dynamicHeight=r&&r.dynamicHeight!=null?r.dynamicHeight:!1,r?.contentTabIndex!=null&&(this.contentTabIndex=r.contentTabIndex),this.preserveContent=!!r?.preserveContent,this.fitInkBarToContent=r&&r.fitInkBarToContent!=null?r.fitInkBarToContent:!1,this.stretchTabs=r&&r.stretchTabs!=null?r.stretchTabs:!0}ngAfterContentChecked(){let e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){let i=this._selectedIndex==null;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));let r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,o)=>r.isActive=o===e),i||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((i,r)=>{i.position=r-e,this._selectedIndex!=null&&i.position==0&&!i.origin&&(i.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{let e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){let i=this._tabs.toArray(),r;for(let o=0;o{i[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(yt(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(i=>i._closestTabGroup===this||!i._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){let i=this._tabHeader;i&&(i.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){let i=new UM;return i.index=e,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[e]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=et(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this.dynamicHeight||!this._tabBodyWrapperHeight)return;let i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.style.height=e+"px")}_removeTabBodyWrapperHeight(){let e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,i,r){i.focusIndex=r,e.disabled||(this.selectedIndex=r)}_getTabIndex(e){let i=this._lastFocusedTabIndex??this.selectedIndex;return e===i?0:-1}_tabFocusChanged(e,i){e&&e!=="mouse"&&e!=="touch"&&(this._tabHeader.focusIndex=i)}static{this.\u0275fac=function(i){return new(i||n)(p(H),p(_e),p(iU,8),p(Dt,8))}}static{this.\u0275cmp=A({type:n,selectors:[["mat-tab-group"]],contentQueries:function(i,r,o){if(i&1&&He(o,cce,5),i&2){let s;B(s=$())&&(r._allTabs=s)}},viewQuery:function(i,r){if(i&1&&(le(Qle,5),le(Kle,5)),i&2){let o;B(o=$())&&(r._tabBodyWrapper=o.first),B(o=$())&&(r._tabHeader=o.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:10,hostBindings:function(i,r){i&2&&(ui("mat-"+(r.color||"primary")),wt("--mat-tab-animation-duration",r.animationDuration),Q("mat-mdc-tab-group-dynamic-height",r.dynamicHeight)("mat-mdc-tab-group-inverted-header",r.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",r.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",W],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",W],dynamicHeight:[2,"dynamicHeight","dynamicHeight",W],selectedIndex:[2,"selectedIndex","selectedIndex",gi],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",gi],disablePagination:[2,"disablePagination","disablePagination",W],disableRipple:[2,"disableRipple","disableRipple",W],preserveContent:[2,"preserveContent","preserveContent",W],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],standalone:!0,features:[de([{provide:XH,useExisting:n}]),Ie,O],ngContentSelectors:hu,decls:9,vars:8,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination","aria-label","aria-labelledby"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","mat-mdc-tab-body-active","class","content","position","origin","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"click","cdkFocusChange","id","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","id","content","position","origin","animationDuration","preserveContent"]],template:function(i,r){if(i&1){let o=ye();ge(),b(0,"mat-tab-header",3,0),F("indexFocused",function(a){return N(o),L(r._focusChanged(a))})("selectFocusedIndex",function(a){return N(o),L(r.selectedIndex=a)}),qi(2,ece,8,17,"div",4,Kn),y(),U(4,tce,1,0),b(5,"div",5,1),qi(7,ice,1,13,"mat-tab-body",6,Kn),y()}i&2&&(q("selectedIndex",r.selectedIndex||0)("disableRipple",r.disableRipple)("disablePagination",r.disablePagination)("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby),w(2),Gi(r._tabs),w(2),Y(r._isServer?4:-1),w(),Q("_mat-animation-noopable",r._animationMode==="NoopAnimations"),w(2),Gi(r._tabs))},dependencies:[hce,eU,y_,Jr,Dn,nU],styles:['.mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mdc-secondary-navigation-tab-container-height);font-family:var(--mat-tab-header-label-text-font, var(--mat-app-title-small-font));font-size:var(--mat-tab-header-label-text-size, var(--mat-app-title-small-size));letter-spacing:var(--mat-tab-header-label-text-tracking, var(--mat-app-title-small-tracking));line-height:var(--mat-tab-header-label-text-line-height, var(--mat-app-title-small-line-height));font-weight:var(--mat-tab-header-label-text-weight, var(--mat-app-title-small-weight))}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color, var(--mat-app-primary));border-top-width:var(--mdc-tab-indicator-active-indicator-height);border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color, var(--mat-app-primary))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color, var(--mat-app-primary))}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color, var(--mat-app-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2})}}return n})(),UM=class{},rU=0,_ce=(()=>{class n extends tU{get fitInkBarToContent(){return this._fitInkBarToContent.value}set fitInkBarToContent(e){this._fitInkBarToContent.next(e),this._changeDetectorRef.markForCheck()}get animationDuration(){return this._animationDuration}set animationDuration(e){let i=e+"";this._animationDuration=/^\d+$/.test(i)?e+"ms":i}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&i.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}constructor(e,i,r,o,s,a,l,c){super(e,o,s,i,r,a,l),this._fitInkBarToContent=new Ee(!1),this.stretchTabs=!0,this.disableRipple=!1,this.color="primary",this.disablePagination=c&&c.disablePagination!=null?c.disablePagination:!1,this.fitInkBarToContent=c&&c.fitInkBarToContent!=null?c.fitInkBarToContent:!1,this.stretchTabs=c&&c.stretchTabs!=null?c.stretchTabs:!0}_itemSelected(){}ngAfterContentInit(){this._inkBar=new Yy(this._items),this._items.changes.pipe(yt(null),Ce(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}ngAfterViewInit(){this.tabPanel,super.ngAfterViewInit()}updateActiveLink(){if(!this._items)return;let e=this._items.toArray();for(let i=0;i.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-links,.mat-mdc-tab-links.cdk-drop-list{min-height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height);border-bottom-color:var(--mat-tab-header-divider-color, var(--mat-app-surface-variant))}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-focus-indicator::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mdc-tab__ripple::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}"],encapsulation:2})}}return n})(),bce=(()=>{class n extends JH{get active(){return this._isActive}set active(e){e!==this._isActive&&(this._isActive=e,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}constructor(e,i,r,o,s,a){super(),this._tabNavBar=e,this.elementRef=i,this._focusMonitor=s,this._destroyed=new k,this._isActive=!1,this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this.id=`mat-tab-link-${rU++}`,this.rippleConfig=r||{},this.tabIndex=parseInt(o)||0,a==="NoopAnimations"&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0}),e._fitInkBarToContent.pipe(Ce(this._destroyed)).subscribe(l=>{this.fitInkBarToContent=l})}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),super.ngOnDestroy(),this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(e){(e.keyCode===32||e.keyCode===13)&&(this.disabled?e.preventDefault():this._tabNavBar.tabPanel&&(e.keyCode===32&&e.preventDefault(),this.elementRef.nativeElement.click()))}_getAriaControls(){return this._tabNavBar.tabPanel?this._tabNavBar.tabPanel?.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}_getTabIndex(){return this._tabNavBar.tabPanel?this._isActive&&!this.disabled?0:-1:this.disabled?-1:this.tabIndex}static{this.\u0275fac=function(i){return new(i||n)(p(_ce),p(H),p(Tl,8),dn("tabindex"),p(yi),p(Dt,8))}}static{this.\u0275cmp=A({type:n,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mdc-tab","mat-mdc-tab-link","mat-mdc-focus-indicator"],hostVars:11,hostBindings:function(i,r){i&1&&F("focus",function(){return r._handleFocus()})("keydown",function(s){return r._handleKeydown(s)}),i&2&&(re("aria-controls",r._getAriaControls())("aria-current",r._getAriaCurrent())("aria-disabled",r.disabled)("aria-selected",r._getAriaSelected())("id",r.id)("tabIndex",r._getTabIndex())("role",r._getRole()),Q("mat-mdc-tab-disabled",r.disabled)("mdc-tab--active",r.active))},inputs:{active:[2,"active","active",W],disabled:[2,"disabled","disabled",W],disableRipple:[2,"disableRipple","disableRipple",W],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:gi(e)],id:"id"},exportAs:["matTabLink"],standalone:!0,features:[Ie,ne,O],attrs:rce,ngContentSelectors:hu,decls:5,vars:2,consts:[[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"]],template:function(i,r){i&1&&(ge(),ie(0,"span",0)(1,"div",1),b(2,"span",2)(3,"span",3),Z(4),y()()),i&2&&(w(),q("matRippleTrigger",r.elementRef.nativeElement)("matRippleDisabled",r.rippleDisabled))},dependencies:[Jr],styles:['.mat-mdc-tab-link{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mdc-secondary-navigation-tab-container-height);font-family:var(--mat-tab-header-label-text-font, var(--mat-app-title-small-font));font-size:var(--mat-tab-header-label-text-size, var(--mat-app-title-small-size));letter-spacing:var(--mat-tab-header-label-text-tracking, var(--mat-app-title-small-tracking));line-height:var(--mat-tab-header-label-text-line-height, var(--mat-app-title-small-line-height));font-weight:var(--mat-tab-header-label-text-weight, var(--mat-app-title-small-weight))}.mat-mdc-tab-link.mdc-tab{flex-grow:0}.mat-mdc-tab-link .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color, var(--mat-app-primary));border-top-width:var(--mdc-tab-indicator-active-indicator-height);border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab-link:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab-link:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab-link.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color, var(--mat-app-primary))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color, var(--mat-app-primary))}.mat-mdc-tab-link.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab-link.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab-link .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color, var(--mat-app-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab-link .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab-link:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab-link.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab-link.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab-link .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab-header.mat-mdc-tab-nav-bar-stretch-tabs .mat-mdc-tab-link{flex-grow:1}.mat-mdc-tab-link::before{margin:5px}@media(max-width: 599px){.mat-mdc-tab-link{min-width:72px}}'],encapsulation:2,changeDetection:0})}}return n})(),vNe=(()=>{class n{constructor(){this.id=`mat-tab-nav-panel-${rU++}`}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-mdc-tab-nav-panel"],hostVars:2,hostBindings:function(i,r){i&2&&re("aria-labelledby",r._activeTabId)("id",r.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],standalone:!0,features:[O],ngContentSelectors:hu,decls:1,vars:0,template:function(i,r){i&1&&(ge(),Z(0))},encapsulation:2,changeDetection:0})}}return n})(),WM=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({imports:[Me,Me]})}}return n})();var Gy=["input"],ci=["*"];function vce(n,t){if(n&1&&(b(0,"mat-icon",3),z(1),y()),n&2){let e=S(2);Q("with-label",e.label),w(),qe(" ",e.icon," ")}}function yce(n,t){if(n&1&&z(0),n&2){let e=S(2);qe(" ",e.label," ")}}function wce(n,t){if(n&1&&(b(0,"a",0),U(1,vce,2,3,"mat-icon",1)(2,yce,1,1),y(),b(3,"mat-icon",2),z(4,"navigate_next"),y()),n&2){let e=S();q("routerLink",e.link)("queryParams",e.queryParams),w(),Y(e.icon?1:-1),w(),Y(e.label?2:-1)}}function Cce(n,t){if(n&1&&(b(0,"mat-icon",3),z(1),y()),n&2){let e=S(2);Q("with-label",e.label),w(),qe(" ",e.icon," ")}}function Dce(n,t){if(n&1&&z(0),n&2){let e=S(2);qe(" ",e.label," ")}}function xce(n,t){if(n&1&&(b(0,"a",4),U(1,Cce,2,3,"mat-icon",1)(2,Dce,1,1),y(),b(3,"mat-icon",2),z(4,"navigate_next"),y()),n&2){let e=S();w(),Y(e.icon?1:-1),w(),Y(e.label?2:-1)}}function Sce(n,t){if(n&1&&z(0),n&2){let e=S();qe(" ",e.label,`
`)}}function kce(n,t){n&1&&(b(0,"mat-icon",1),z(1),y()),n&2&&(w(),ft(t))}function Ece(n,t){n&1&&(b(0,"mat-icon",1),z(1,"arrow_drop_down"),y())}function Ice(n,t){if(n&1){let e=ye();b(0,"button",5),F("click",function(){N(e);let r=S().$implicit,o=S(2);return L(o.toggleColumn(r))}),b(1,"mat-icon"),z(2,"check"),y(),z(3),y()}if(n&2){let e=S().$implicit,i=S(2);w(),wt("visibility",i.isVisible(e)?"visible":"hidden"),w(2),qe(" ",e.label," ")}}function Mce(n,t){if(n&1&&U(0,Ice,4,3,"button",4),n&2){let e=t.$implicit;Y(e.alwaysVisible?-1:0)}}function Tce(n,t){if(n&1&&qi(0,Mce,1,1,null,null,Kn),n&2){let e=S();Gi(e.columns)}}var Ace=["dayInput"],Oce=["hourInput"],Rce=["minuteInput"],Pce=["secondInput"],Fce=["millisInput"],Nce=["picker"];function Lce(n,t){if(n&1){let e=ye();b(0,"ya-icon-action",17),F("click",function(){N(e);let r=S();return L(r.setNow())}),y()}n&2&&q("padding",!0)}function Vce(n,t){if(n&1){let e=ye();b(0,"ya-icon-action",18),F("click",function(){N(e);let r=S();return L(r.clearValue())}),y()}if(n&2){S();let e=Zt(2),i=Zt(9),r=Zt(11),o=Zt(13),s=Zt(15);q("padding",!0)("disabled",!e.value&&!i.value&&!r.value&&!o.value&&!s.value)}}function jce(n,t){if(n&1){let e=ye();ie(0,"span",1),b(1,"ya-icon-action",2),F("click",function(){N(e);let r=S();return L(r.closeDetailPane())}),y()}}var vU=["hiddenLink"];function Bce(n,t){n&1&&z(0),n&2&&qe(" ",t," ")}function $ce(n,t){if(n&1&&(b(0,"span",2),z(1),y()),n&2){let e=S();w(),ft(e.emptyOption())}}function zce(n,t){if(n&1){let e=ye();b(0,"ya-icon-action",6),F("click",function(){N(e);let r=S();return L(r.clearValue())}),y()}if(n&2){let e=S();q("padding",!0)("disabled",!e.label())}}function Hce(n,t){n&1&&ie(0,"mat-divider")}function Uce(n,t){if(n&1){let e=ye();U(0,Hce,1,0,"mat-divider"),b(1,"button",7),F("click",function(){let r=N(e).$implicit,o=S();return L(o.writeValue(r.id))}),b(2,"mat-icon"),z(3,"check"),y(),z(4),y()}if(n&2){let e=t.$implicit,i=S();Y(e.group?0:-1),w(2),wt("visibility",i.isSelected(e.id)?"visible":"hidden"),w(2),qe(" ",e.label," ")}}function Wce(n,t){n&1&&ie(0,"mat-divider")}function Yce(n,t){if(n&1){let e=ye();U(0,Wce,1,0,"mat-divider"),b(1,"button",7),F("click",function(){let r=N(e).$implicit,o=S();return L(o.writeValue(r.id()))}),b(2,"mat-icon"),z(3,"check"),y(),z(4),y()}if(n&2){let e=t.$implicit,i=S();Y(e.group()?0:-1),w(2),wt("visibility",i.isSelected(e.id())?"visible":"hidden"),w(2),qe(" ",e.label()," ")}}function qce(n,t){if(n&1&&(b(0,"div",2),z(1),y()),n&2){let e=S();w(),qe(" ",e.headerTitle," ")}}function Gce(n,t){n&1&&(b(0,"span",0),z(1),y()),n&2&&(w(),qe(" * ",t," "))}function Qce(n,t){if(n&1&&(z(0," \xA0 "),b(1,"mat-icon",0),z(2,"access_time"),y()),n&2){let e=S();w(),q("matTooltip",e.getExpiredTooltip())}}var yU=["editorContainer"];function Kce(n,t){n&1&&(b(0,"div",2)(1,"mat-icon",4),z(2),y()()),n&2&&(w(2),ft(t))}function Zce(n,t){if(n&1){let e=ye();b(0,"div",5),F("click",function(){N(e);let r=S();return L(r.clearInput())}),b(1,"mat-icon",4),z(2,"close"),y()()}}function Xce(n,t){if(n&1&&(b(0,"mat-icon",2),z(1),y(),z(2," \xA0 ")),n&2){let e=S();w(),ft(e.icon)}}var Jce=["dialogContent"],ede=".binary-input[_ngcontent-%COMP%]{position:relative}.binary-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{padding-left:24px}.hex-icon[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:16px;text-align:center;color:#a9a9a9;font-size:12px;line-height:16px;padding:4px;font-weight:300}";function tde(n,t){if(n&1&&(b(0,"mat-icon"),z(1),y()),n&2){let e=S();w(),ft(e.icon)}}function ide(n,t){if(n&1&&z(0),n&2){let e=S().$implicit;qe(" :\xA0",e.value," ")}}function nde(n,t){if(n&1&&(b(0,"ya-label",0),z(1),U(2,ide,1,1),y()),n&2){let e=t.$implicit;w(),qe(" ",e.key," "),w(),Y(e.value?2:-1)}}function rde(n,t){n&1&&qi(0,nde,3,2,"ya-label",0,Kn),n&2&&Gi(t)}var ode=["container"];function sde(n,t){if(n&1){let e=ye();b(0,"mat-toolbar",1)(1,"mat-toolbar-row"),ie(2,"span",2),b(3,"mat-icon"),z(4,"report_problem"),y(),z(5),ie(6,"span",2),b(7,"div",3)(8,"button",4),F("click",function(){N(e);let r=S();return L(r.dismiss())}),b(9,"mat-icon"),z(10,"close"),y()()()()()}if(n&2){let e=t;Q("warning",e.level==="WARNING"),w(5),qe("\xA0 ",e.message," ")}}function ade(n,t){if(n&1&&z(0),n&2){let e=S();qe(" ",e.getLabel(t)," ")}}function lde(n,t){if(n&1&&(b(0,"span"),z(1),y()),n&2){let e=S();w(),ft(e.emptyOption())}}function cde(n,t){n&1&&ie(0,"mat-divider")}function dde(n,t){if(n&1&&(b(0,"mat-icon"),z(1),y()),n&2){let e=S(2).$implicit;w(),ft(e.icon)}}function ude(n,t){if(n&1){let e=ye();b(0,"button",4),F("click",function(r){N(e);let o=S().$implicit,s=S();return L(s.disableOption(r,o.id))}),b(1,"mat-icon"),z(2,"check_box_outline"),y(),U(3,dde,2,1,"mat-icon"),z(4),y()}if(n&2){let e=S().$implicit;w(3),Y(e.icon?3:-1),w(),qe(" ",e.label," ")}}function hde(n,t){if(n&1&&(b(0,"mat-icon"),z(1),y()),n&2){let e=S(2).$implicit;w(),ft(e.icon)}}function fde(n,t){if(n&1){let e=ye();b(0,"button",4),F("click",function(r){N(e);let o=S().$implicit,s=S();return L(s.enableOption(r,o.id))}),b(1,"mat-icon"),z(2,"check_box_outline_blank"),y(),U(3,hde,2,1,"mat-icon"),z(4),y()}if(n&2){let e=S().$implicit;w(3),Y(e.icon?3:-1),w(),qe(" ",e.label," ")}}function mde(n,t){if(n&1&&U(0,cde,1,0,"mat-divider")(1,ude,5,2,"button",3)(2,fde,5,2,"button",3),n&2){let e=t.$implicit,i=S();Y(e.group?0:-1),w(),Y(i.isSelected(e.id)?1:-1),w(),Y(i.isSelected(e.id)?-1:2)}}function pde(n,t){if(n&1&&(b(0,"mat-icon"),z(1),y()),n&2){let e=S();wt("transform",e.iconRotate90()?"rotate(90deg)":"none"),w(),qe(" ",t," ")}}function gde(n,t){n&1&&z(0," \u25BE ")}function _de(n,t){if(n&1&&(b(0,"div",2),z(1),Wt(2,"async"),Wt(3,"percent"),y()),n&2){let e=S();w(),qe(" ",XR(3,3,Xt(2,1,e.ratio$),e.format)," ")}}function bde(n,t){if(n&1){let e=ye();b(0,"div",6),F("click",function(){N(e);let r=S();return L(r.clearInput())}),b(1,"mat-icon",4),z(2,"close"),y()()}}var vde=["oneline"];function yde(n,t){if(n&1&&(ie(0,"ya-filter-textarea",4,0),Wt(2,"async")),n&2){let e,i=S();q("formControl",i.formControl)("errorMark",(e=Xt(2,3,i.errorState$))==null?null:e.context)("completions",i.completions())}}function wde(n,t){if(n&1){let e=ye();b(0,"ya-filter-input",8,1),Wt(2,"async"),F("onEnter",function(){N(e);let r=S();return L(r.doSearch())}),y()}if(n&2){let e,i=S();q("formControl",i.formControl)("errorMark",(e=Xt(2,4,i.errorState$))==null?null:e.context)("placeholder",i.placeholder())("completions",i.completions())}}function Cde(n,t){n&1&&(b(0,"div",6),z(1),y()),n&2&&(w(),qe(" ",t.message," "))}function Dde(n,t){n&1&&(b(0,"mat-icon",1),z(1,"arrow_drop_down"),y())}function xde(n,t){n&1&&(b(0,"mat-icon",1),z(1,"arrow_right"),y())}function Sde(n,t){n&1&&(b(0,"div",3),Z(1),y())}var kde=()=>({matrixParams:"exact",paths:"exact",queryParams:"ignored"});function Ede(n,t){n&1&&ie(0,"div",1)}function Ide(n,t){n&1&&(b(0,"div",4)(1,"div",5),Z(2),y()())}function Mde(n,t){n&1&&z(0," info ")}function Tde(n,t){n&1&&z(0," error_outline ")}function Ade(n,t){if(n&1&&U(0,Mde,1,0)(1,Tde,1,0),n&2){let e=S();Y(e.severity()==="info"?0:e.severity()==="error"?1:-1)}}function Ode(n,t){if(n&1&&z(0),n&2){let e=S();qe(" ",e.icon()," ")}}function Rde(n,t){if(n&1){let e=ye();b(0,"ya-label"),z(1),b(2,"mat-icon",3),F("click",function(){let r=N(e).$implicit,o=S(2);return L(o.removeTag(r))}),z(3,"close"),y()()}if(n&2){let e=t.$implicit;w(),qe(" ",e," ")}}function Pde(n,t){n&1&&z(0," \xA0 ")}function Fde(n,t){if(n&1&&(qi(0,Rde,4,1,"ya-label",null,Kn),U(2,Pde,1,0)),n&2){let e=t;Gi(e),w(2),Y(e.length?2:-1)}}function Nde(n,t){if(n&1&&(z(0," \xA0 "),b(1,"div",0),ie(2,"ya-select",1),Wt(3,"async"),y()),n&2){let e=S();w(2),q("options",Xt(3,2,e.locationOptions$))("formControl",e.locationControl)}}function Lde(n,t){if(n&1&&(z(0," \xA0 "),b(1,"div",0),ie(2,"ya-select",1),Wt(3,"async"),y()),n&2){let e=S();w(2),q("options",Xt(3,2,e.sublocationOptions$))("formControl",e.sublocationControl)}}var Vde=["tooltip"];function jde(n,t){if(n&1){let e=ye();b(0,"span",3),F("click",function(){N(e);let r=S(3).$implicit,o=S(3);return L(o.expandNode(r))}),z(1,"\u25B8"),y()}}function Bde(n,t){if(n&1){let e=ye();b(0,"span",3),F("click",function(){N(e);let r=S(3).$implicit,o=S(3);return L(o.collapseNode(r))}),z(1,"\u25BE"),y()}}function $de(n,t){if(n&1&&U(0,jde,2,0,"span",2)(1,Bde,2,0,"span",2),n&2){let e=S(2).$implicit;Y(e.expanded?-1:0),w(),Y(e.expanded?1:-1)}}function zde(n,t){if(n&1&&(b(0,"span",4),z(1),y(),b(2,"span",5),z(3,": "),y()),n&2){let e=S(2).$implicit;w(),ft(e.key)}}function Hde(n,t){if(n&1){let e=ye();b(0,"span",7),F("click",function(){N(e);let r=S(3).$implicit,o=S(3);return L(o.collapseNode(r))}),z(1),y()}if(n&2){let e=S(3).$implicit;w(),qe("Array(",(e.value.arrayValue==null?null:e.value.arrayValue.length)||0,")")}}function Ude(n,t){if(n&1){let e=ye();b(0,"span",7),F("click",function(){N(e);let r=S(3).$implicit,o=S(3);return L(o.collapseNode(r))}),z(1,"{...}"),y()}}function Wde(n,t){if(n&1&&U(0,Hde,2,1,"span",6)(1,Ude,2,0,"span",6),n&2){let e=S(2).$implicit;Y(e.value.type==="ARRAY"?0:-1),w(),Y(e.value.type==="AGGREGATE"?1:-1)}}function Yde(n,t){if(n&1){let e=ye();b(0,"span",8),F("click",function(){N(e);let r=S(2).$implicit,o=S(3);return L(r.children?o.expandNode(r):!1)}),z(1),Wt(2,"value"),y()}if(n&2){let e=S(2).$implicit;Q("expandable",e.children),w(),ft(Xt(2,3,e.value))}}function qde(n,t){if(n&1&&(b(0,"tr")(1,"td"),ie(2,"div",0),U(3,$de,2,2)(4,zde,4,1)(5,Wde,2,2)(6,Yde,3,5,"span",1),y()()),n&2){let e=S().$implicit;w(2),wt("width",e.margin,"px"),w(),Y(e.children?3:-1),w(),Y(e.key!==void 0?4:-1),w(),Y(e.expanded?5:-1),w(),Y(!e.expanded||e.value.type!=="ARRAY"&&e.value.type!=="AGGREGATE"?6:-1)}}function Gde(n,t){if(n&1&&U(0,qde,7,6,"tr"),n&2){let e=t.$implicit;Y(!e.parent||e.parent.expanded?0:-1)}}function Qde(n,t){n&1&&(b(0,"table"),qi(1,Gde,1,1,null,null,Kn),y()),n&2&&(w(),Gi(t))}function Kde(n,t){if(n&1&&(U(0,Qde,3,0,"table"),Wt(1,"async")),n&2){let e,i=S();Y((e=Xt(1,1,i.nodes$))?0:-1,e)}}function Zde(n,t){if(n&1&&(z(0),Wt(1,"value")),n&2){let e,i=S();qe(" ",(e=Xt(1,1,i.value))!==null&&e!==void 0?e:"-",`
`)}}var Xde=["yaDataTable",""],Jde=["yaSimpleTable",""];var eue=["wrapper"];function tue(n,t){}var oU=class n{constructor(t,e){this.start=t,this.bitlength=e}get stop(){return this.start+this.bitlength}join(t){let e=Math.min(this.start,t.start),i=Math.max(this.stop,t.stop);return new n(e,i-e)}joinBit(t){let e=Math.min(this.start,t),i=Math.max(this.stop,t);return new n(e,i-e)}containsBit(t){return this.start<=t&&t<=this.stop}containsBitExclusive(t){return this.startthis.stop||this.start>t.stop)return null;let e=Math.max(this.start,t.start),i=Math.min(this.stop,t.stop);return new n(e,i-e)}equals(t){return this.start===t.start&&this.bitlength===t.bitlength}toString(){return`${this.start}-${this.stop} (${this.bitlength} bits)`}},Qy=(()=>{class n{constructor(e,i){this.snackBar=e,this.siteMessage$=new Ee(null),this.routerSubscription=i.events.pipe(Ae(r=>r instanceof rr),fe(r=>this.dismiss())).subscribe()}showInfo(e){this.snackBar.open(e,"X",{horizontalPosition:"end",duration:3e3})}showWarning(e){this.siteMessage$.next({level:"WARNING",message:e})}showError(e){this.siteMessage$.next({level:"ERROR",message:e instanceof Error?e.message:e})}dismiss(){this.siteMessage$.next(null)}dismissSnackBar(){this.snackBar.dismiss()}ngOnDestroy(){this.routerSubscription?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||n)(D(Fx),D(bi))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),wU=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),rT=(()=>{class n{constructor(){this.everyFiveSeconds$=Gn(5e3,5e3).pipe(es()),this.everySecond$=Gn(1e3,1e3).pipe(es()),this.everyHalfSecond$=Gn(500,500).pipe(es())}sync(e){return this.everySecond$.subscribe(e)}syncSlow(e){return this.everyFiveSeconds$.subscribe(e)}syncFast(e){return this.everyHalfSecond$.subscribe(e)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),CU=(()=>{class n{constructor(){this.changeDetection=C(_e),this.messageService=C(Qy),this.sdkBridge=C(wU),this.synchronizer=C(rT),this.title=C(Ug),this.appearanceService=this.sdkBridge.appearanceService,this.router=this.sdkBridge.router}setTitle(e){this.title.setTitle(e)}openDetailPane(){this.appearanceService.detailPane$.next(!0)}closeDetailPane(){this.appearanceService.detailPane$.next(!1)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275dir=M({type:n})}}return n})(),fu=class extends Error{constructor(t,e,i){super(e||t.statusText),this.response=t,this.statusCode=t.status,this.statusText=t.statusText,this.detail=i}},GM=class{constructor(t){this.yamcs=t}async createBucket(t){let e=JSON.stringify(t);return await this.yamcs.doFetch(`${this.yamcs.apiUrl}/storage/buckets`,{body:e,method:"POST"})}async getBuckets(){return(await(await this.yamcs.doFetch(`${this.yamcs.apiUrl}/storage/buckets`)).json()).buckets||[]}async getBucket(t){return await(await this.yamcs.doFetch(`${this.yamcs.apiUrl}/storage/buckets/${t}`)).json()}async deleteBucket(t){let e=`${this.yamcs.apiUrl}/storage/buckets/${t}`;return await this.yamcs.doFetch(e,{method:"DELETE"})}async listObjects(t,e={}){let i=`${this.yamcs.apiUrl}/storage/buckets/${t}/objects`;return await(await this.yamcs.doFetch(i+this.queryString(e))).json()}async getObject(t,e){return await this.yamcs.doFetch(this.getObjectURL(t,e))}getObjectURL(t,e){let i=this.encodeObjectName(e);return`${this.yamcs.apiUrl}/storage/buckets/${t}/objects/${i}`}async uploadObject(t,e,i){let r=`${this.yamcs.apiUrl}/storage/buckets/${t}/objects`,o=new FormData;return o.set(e,i,e),await this.yamcs.doFetch(r,{method:"POST",body:o})}async deleteObject(t,e){let i=`${this.yamcs.apiUrl}/storage/buckets/${t}/objects/${encodeURIComponent(e)}`;return await this.yamcs.doFetch(i,{method:"DELETE"})}queryString(t){let e=Object.keys(t).map(i=>`${i}=${t[i]}`).join("&");return e===""?e:"?"+e}encodeObjectName(t){return t.split("/").map(e=>encodeURIComponent(e)).join("/")}};var QM=class{constructor(t,e,i,r){this.client=t,this.requestId=e,this.type=i,this.seq=0,this._frameLoss=!1,this.frameLossListeners=new Set,this.replyListeners=new Set,this.messageListeners=new Set,this.messageListeners.add(r)}get id(){return this._id}get frameLoss(){return this._frameLoss}addFrameLossListener(t){this.frameLossListeners.add(t)}removeFrameLossListener(t){this.frameLossListeners.delete(t)}addReplyListener(t){this.replyListeners.add(t),this._id&&t()}removeReplyListener(t){this.replyListeners.delete(t)}addMessageListener(t){this.messageListeners.add(t)}removeMessageListener(t){this.messageListeners.delete(t)}sendMessage(t){this._id!==void 0?this.client.sendMessage({type:this.type,call:this._id,options:t}):this.client.sendMessage({type:this.type,id:this.requestId,options:t})}consume(t){if(t.type==="reply"&&t.data.replyTo===this.requestId){if(this._id=t.call,t.data.exception){let e=t.data.exception.code,i=t.data.exception.type,r=t.data.exception.msg;console.error(`Received ${e} ${i} for topic '${this.type}': ${r}`)}this.replyListeners.forEach(e=>e())}else t.type===this.type&&t.call===this.id&&(!this.frameLoss&&this.seq+1!==t.seq&&(this._frameLoss=!0,this.frameLossListeners.forEach(e=>e())),this.seq=t.seq,this.messageListeners.forEach(e=>e(t.data)))}cancel(){this.client.cancelCall(this),this.frameLossListeners.clear()}},KM=class{constructor(t,e){this.frameLossListener=e,this.connected$=new Ee(!1),this.calls=[],this.requestSequence=0;let i=window.location,r="ws://";i.protocol==="https:"&&(r="wss://"),r+=`${i.host}${t}/websocket`,this.webSocket$=Lx({url:r,protocol:"json",closeObserver:{next:()=>this.connected$.next(!1)},openObserver:{next:()=>this.connected$.next(!0)}}),this.webSocket$.pipe(Et(o=>{this.calls.forEach(s=>s.consume(o))})).subscribe()}createSubscription(t,e,i){return this.doCreateSubscription(t,!1,e,i)}createLowPrioritySubscription(t,e,i){return this.doCreateSubscription(t,!0,e,i)}doCreateSubscription(t,e,i,r){let o=++this.requestSequence,s=new QM(this,o,t,r);return s.addFrameLossListener(()=>{this.frameLossListener.onFrameLoss()}),this.calls.push(s),this.sendMessage({type:t,id:o,lowPriority:e,options:i}),s}sendMessage(t){this.webSocket$.next(t)}cancelCall(t){let e=this.calls.indexOf(t);e!==-1&&this.calls.splice(e,1),t.id!==void 0&&this.connected$.value&&this.sendMessage({type:"cancel",options:{call:t.id}})}close(){this.calls.length=0,this.webSocket$.unsubscribe()}},ZM=class{constructor(t="/",e,i){this.baseHref=t,this.frameLossListener=e,this.sessionListener=i,this.connected$=new Ee(!1),this.apiUrl=`${this.baseHref}api`,this.authUrl=`${this.baseHref}auth`}createInstancesSubscription(t){return this.webSocketClient.createSubscription("instances",{},t)}async getAuthInfo(){return await(await this.doFetch(`${this.authUrl}`)).json()}async fetchAccessTokenWithPassword(t,e){let i="grant_type=password";return i+=`&username=${encodeURIComponent(t)}`,i+=`&password=${encodeURIComponent(e)}`,this.doFetchAccessToken(i)}async fetchAccessTokenWithAuthorizationCode(t){let e="grant_type=authorization_code";return e+=`&code=${encodeURIComponent(t)}`,this.doFetchAccessToken(e)}async fetchAccessTokenWithRefreshToken(t){let e="grant_type=refresh_token";return e+=`&refresh_token=${encodeURIComponent(t)}`,this.doFetchAccessToken(e)}setAccessToken(t){this.accessToken=t}clearAccessToken(){this.accessToken=void 0}async doFetchAccessToken(t){let e=new Headers;e.append("Content-Type","application/x-www-form-urlencoded");let i=await fetch(`${this.authUrl}/token`,{method:"POST",headers:e,body:t});if(i.status>=200&&i.status<300){let r=await i.json();return Promise.resolve(r)}else return Promise.reject(new fu(i))}setHttpInterceptor(t){this.interceptor=t}async getGeneralInfo(){return await(await this.doFetch(this.apiUrl)).json()}async getUserInfo(){return await(await this.doFetch(`${this.apiUrl}/user`)).json()}async getRoutes(){let t=`${this.apiUrl}/routes`;return await(await this.doFetch(t)).json()}async getTopics(){let t=`${this.apiUrl}/topics`;return await(await this.doFetch(t)).json()}async getProcessorTypes(){let t=`${this.apiUrl}/processor-types`;return await(await this.doFetch(t)).json()}async getThreads(){let t=`${this.apiUrl}/threads`;return await(await this.doFetch(t)).json()}async getThread(t){let e=`${this.apiUrl}/threads/${t}`;return await(await this.doFetch(e)).json()}async getReplicationInfo(){let t=`${this.apiUrl}/replication`;return await(await this.doFetch(t)).json()}async getClearances(){let t=`${this.apiUrl}/clearances`;return await(await this.doFetch(t)).json()}async changeClearance(t,e){let i=JSON.stringify(e);return this.doFetch(`${this.apiUrl}/clearances/${t}`,{method:"PATCH",body:i})}async deleteClearance(t){return this.doFetch(`${this.apiUrl}/clearances/${t}`,{method:"DELETE"})}async createProcessor(t){let e=JSON.stringify(t);return await this.doFetch(`${this.apiUrl}/processors`,{body:e,method:"POST"})}async getLeapSeconds(){let t=`${this.apiUrl}/leap-seconds`;return await(await this.doFetch(t)).json()}async getInstances(t={}){let e=`${this.apiUrl}/instances`;return(await(await this.doFetch(e+this.queryString(t))).json()).instances||[]}async getInstanceTemplates(){return(await(await this.doFetch(`${this.apiUrl}/instance-templates`)).json()).templates||[]}async getInstanceTemplate(t){return await(await this.doFetch(`${this.apiUrl}/instance-templates/${t}`)).json()}async getInstance(t){return await(await this.doFetch(`${this.apiUrl}/instances/${t}`)).json()}async getInstanceConfig(t){return await(await this.doFetch(`${this.apiUrl}/web/instance-config/${t}`)).json()}async startInstance(t){return this.doFetch(`${this.apiUrl}/instances/${t}:start`,{method:"POST"})}async stopInstance(t){return this.doFetch(`${this.apiUrl}/instances/${t}:stop`,{method:"POST"})}async restartInstance(t){return this.doFetch(`${this.apiUrl}/instances/${t}:restart`,{method:"POST"})}async getDatabases(){let t=`${this.apiUrl}/databases`;return(await(await this.doFetch(t)).json()).databases||[]}async getDatabase(t){let e=`${this.apiUrl}/databases/${t}`;return await(await this.doFetch(e)).json()}async getServices(t){let e=`${this.apiUrl}/services/${t}`;return(await(await this.doFetch(e)).json()).services||[]}async getService(t,e){let i=`${this.apiUrl}/services/${t}/${e}`;return await(await this.doFetch(i)).json()}async startService(t,e){return this.doFetch(`${this.apiUrl}/services/${t}/${e}:start`,{method:"POST"})}async stopService(t,e){return this.doFetch(`${this.apiUrl}/services/${t}/${e}:stop`,{method:"POST"})}async getServiceAccounts(){let t=`${this.apiUrl}/service-accounts`;return await(await this.doFetch(t)).json()}async getServiceAccount(t){let e=`${this.apiUrl}/service-accounts/${t}`;return await(await this.doFetch(e)).json()}async createServiceAccount(t){let e=JSON.stringify(t),i=`${this.apiUrl}/service-accounts`;return await(await this.doFetch(i,{body:e,method:"POST"})).json()}async deleteServiceAccount(t){let e=`${this.apiUrl}/service-accounts/${t}`;return await this.doFetch(e,{method:"DELETE"})}async getTimelineViews(t){let e=`${this.apiUrl}/timeline/${t}/views`;return await(await this.doFetch(e)).json()}async getTimelineView(t,e){let i=`${this.apiUrl}/timeline/${t}/views/${e}`;return await(await this.doFetch(i)).json()}async createTimelineView(t,e){let i=JSON.stringify(e),r=`${this.apiUrl}/timeline/${t}/views`;return await(await this.doFetch(r,{body:i,method:"POST"})).json()}async updateTimelineView(t,e,i){let r=JSON.stringify(i),o=`${this.apiUrl}/timeline/${t}/views/${e}`;return await(await this.doFetch(o,{body:r,method:"PUT"})).json()}async deleteTimelineView(t,e){let i=`${this.apiUrl}/timeline/${t}/views/${e}`;return await this.doFetch(i,{method:"DELETE"})}async getAuditRecords(t,e){let i=`${this.apiUrl}/audit/records/${t}`;return await(await this.doFetch(i+this.queryString(e))).json()}async getTimelineTags(t){let e=`${this.apiUrl}/timeline/${t}/tags`;return await(await this.doFetch(e)).json()}async getTimelineBands(t){let e=`${this.apiUrl}/timeline/${t}/bands`;return await(await this.doFetch(e)).json()}async getTimelineBand(t,e){let i=`${this.apiUrl}/timeline/${t}/bands/${e}`;return await(await this.doFetch(i)).json()}async getTimelineItems(t,e){let i=`${this.apiUrl}/timeline/${t}/items`;return await(await this.doFetch(i+this.queryString(e))).json()}async getTimelineItem(t,e){let i=`${this.apiUrl}/timeline/${t}/items/${e}`;return await(await this.doFetch(i)).json()}async createTimelineBand(t,e){let i=JSON.stringify(e),r=`${this.apiUrl}/timeline/${t}/bands`;return await(await this.doFetch(r,{body:i,method:"POST"})).json()}async updateTimelineBand(t,e,i){let r=JSON.stringify(i),o=`${this.apiUrl}/timeline/${t}/bands/${e}`;return await(await this.doFetch(o,{body:r,method:"PUT"})).json()}async deleteTimelineBand(t,e){let i=`${this.apiUrl}/timeline/${t}/bands/${e}`;return await this.doFetch(i,{method:"DELETE"})}async createTimelineItem(t,e){let i=JSON.stringify(e),r=`${this.apiUrl}/timeline/${t}/items`;return await(await this.doFetch(r,{body:i,method:"POST"})).json()}async updateTimelineItem(t,e,i){let r=JSON.stringify(i),o=`${this.apiUrl}/timeline/${t}/items/${e}`;return await(await this.doFetch(o,{body:r,method:"PUT"})).json()}async deleteTimelineItem(t,e){let i=`${this.apiUrl}/timeline/${t}/items/${e}`;return await this.doFetch(i,{method:"DELETE"})}async getParameterLists(t){let e=`${this.apiUrl}/parameter-lists/${t}/lists`;return(await(await this.doFetch(e)).json()).lists||[]}async getParameterList(t,e){let i=`${this.apiUrl}/parameter-lists/${t}/lists/${e}`;return await(await this.doFetch(i)).json()}async createParameterList(t,e){let i=JSON.stringify(e);return await(await this.doFetch(`${this.apiUrl}/parameter-lists/${t}/lists`,{body:i,method:"POST"})).json()}async updateParameterList(t,e,i){let r=JSON.stringify(i);return await(await this.doFetch(`${this.apiUrl}/parameter-lists/${t}/lists/${e}`,{body:r,method:"PATCH"})).json()}async deleteParameterList(t,e){let i=`${this.apiUrl}/parameter-lists/${t}/lists/${e}`;return await this.doFetch(i,{method:"DELETE"})}async getUsers(){let t=`${this.apiUrl}/users`;return(await(await this.doFetch(t)).json()).users||[]}async getUser(t){let e=`${this.apiUrl}/users/${t}`;return await(await this.doFetch(e)).json()}async createUser(t){let e=JSON.stringify(t),i=`${this.apiUrl}/users`;return await this.doFetch(i,{body:e,method:"POST"})}async editUser(t,e){let i=JSON.stringify(e),r=`${this.apiUrl}/users/${t}`;return await this.doFetch(r,{body:i,method:"PATCH"})}async deleteUser(t){let e=`${this.apiUrl}/users/${t}`;return await this.doFetch(e,{method:"DELETE"})}async deleteIdentity(t,e){let i=`${this.apiUrl}/users/${t}/identities/${e}`;return await this.doFetch(i,{method:"DELETE"})}async createGroup(t){let e=JSON.stringify(t);return await(await this.doFetch(`${this.apiUrl}/groups`,{body:e,method:"POST"})).json()}async getGroups(){let t=`${this.apiUrl}/groups`;return(await(await this.doFetch(t)).json()).groups||[]}async getGroup(t){let e=`${this.apiUrl}/groups/${t}`;return await(await this.doFetch(e)).json()}async editGroup(t,e){let i=JSON.stringify(e),r=`${this.apiUrl}/groups/${t}`;return await this.doFetch(r,{body:i,method:"PATCH"})}async deleteGroup(t){let e=`${this.apiUrl}/groups/${t}`;return await this.doFetch(e,{method:"DELETE"})}async getRoles(){let t=`${this.apiUrl}/roles`;return(await(await this.doFetch(t)).json()).roles||[]}async getRole(t){let e=`${this.apiUrl}/roles/${t}`;return await(await this.doFetch(e)).json()}async getSessions(){let t=`${this.apiUrl}/sessions`;return(await(await this.doFetch(t)).json()).sessions||[]}async getHttpTraffic(){let t=`${this.apiUrl}/http-traffic`;return await(await this.doFetch(t)).json()}async closeClientConnection(t){let e=`${this.apiUrl}/connections/${t}`;return await this.doFetch(e,{method:"DELETE"})}createSessionSubscription(t){return this.webSocketClient.createSubscription("session",{},t)}createTimeSubscription(t,e){return this.webSocketClient.createSubscription("time",t,e)}createReplicationInfoSubscription(t){return this.webSocketClient.createSubscription("replication-info",{},t)}createSystemInfoSubscription(t){return this.webSocketClient.createSubscription("sysinfo",{},t)}createHttpTrafficSubscription(t){return this.webSocketClient.createSubscription("http-traffic",{},t)}createClearanceSubscription(t){return this.webSocketClient.createSubscription("clearance",{},t)}createProcessorSubscription(t,e){return this.webSocketClient.createSubscription("processors",t,e)}createBackfillingSubscription(t,e){return this.webSocketClient.createSubscription("backfilling",t,e)}createCop1Subscription(t,e){return this.webSocketClient.createSubscription("cop1",t,e)}createGlobalAlarmStatusSubscription(t,e){return this.webSocketClient.createSubscription("global-alarm-status",t,e)}createGlobalActivityStatusSubscription(t,e){return this.webSocketClient.createSubscription("global-activity-status",t,e)}createTMStatisticsSubscription(t,e){return this.webSocketClient.createSubscription("tmstats",t,e)}createAlgorithmStatusSubscription(t,e){return this.webSocketClient.createSubscription("algorithm-status",t,e)}createEventSubscription(t,e){return this.webSocketClient.createSubscription("events",t,e)}createLinkSubscription(t,e){return this.webSocketClient.createSubscription("links",t,e)}createActivitySubscription(t,e){return this.webSocketClient.createSubscription("activities",t,e)}createActivityLogSubscription(t,e){return this.webSocketClient.createSubscription("activity-log",t,e)}createTransferSubscription(t,e){return this.webSocketClient.createSubscription("file-transfers",t,e)}createRemoteFileListSubscription(t,e){return this.webSocketClient.createSubscription("remote-file-list",t,e)}createParameterSubscription(t,e){return this.webSocketClient.createLowPrioritySubscription("parameters",t,e)}createParseFilterSubscription(t,e){return this.webSocketClient.createSubscription("web.parse-filter",t,e)}createStreamStatisticsSubscription(t,e){return this.webSocketClient.createSubscription("stream-stats",t,e)}createStreamSubscription(t,e){return this.webSocketClient.createLowPrioritySubscription("stream",t,e)}createQueueStatisticsSubscription(t,e){return this.webSocketClient.createSubscription("queue-stats",t,e)}createQueueEventsSubscription(t,e){return this.webSocketClient.createSubscription("queue-events",t,e)}createAlarmSubscription(t,e){return this.webSocketClient.createSubscription("alarms",t,e)}createCommandSubscription(t,e){return this.webSocketClient.createSubscription("commands",t,e)}async getSystemInfo(){let t=`${this.apiUrl}/sysinfo`;return await(await this.doFetch(t)).json()}async getRocksDbDatabases(){let t=`${this.apiUrl}/archive/rocksdb/databases`;return(await(await this.doFetch(t)).json()).databases||[]}async getRocksDbDatabaseProperties(t,e=""){let i=`${this.apiUrl}/archive/rocksdb/${t}/${e}:describe`;return await(await this.doFetch(i)).text()}async compactRocksDbDatabase(t,e="",i){let r=JSON.stringify(i),o=`${this.apiUrl}/archive/rocksdb/${t}/${e}:compact`;return await this.doFetch(o,{body:r,method:"POST"})}getThreadDumpURL(){return`${this.apiUrl}/threads:dump`}async createInstance(t){let e=JSON.stringify(t);return await(await this.doFetch(`${this.apiUrl}/instances`,{body:e,method:"POST"})).json()}async getPackets(t,e={}){let i=`${this.apiUrl}/archive/${t}/packets`;return await(await this.doFetch(i+this.queryString(e))).json()}async getEvents(t,e={}){let i=`${this.apiUrl}/archive/${t}/events:list`,r=JSON.stringify(e);return(await(await this.doFetch(i,{body:r,method:"POST"})).json()).events||[]}async getEventSources(t){let e=`${this.apiUrl}/archive/${t}/events/sources`;return(await(await this.doFetch(e)).json()).sources||[]}getEventsDownloadURL(t,e={}){return`${this.apiUrl}/archive/${t}:exportEvents`+this.queryString(e)}async createEvent(t,e){let i=JSON.stringify(e);return await(await this.doFetch(`${this.apiUrl}/archive/${t}/events`,{body:i,method:"POST"})).json()}async getQueries(t,e){let i=`${this.apiUrl}/web/queries/${t}/${e}`;return(await(await this.doFetch(i)).json()).queries||[]}async createQuery(t,e,i){let r=JSON.stringify(i);return await(await this.doFetch(`${this.apiUrl}/web/queries/${t}/${e}`,{body:r,method:"POST"})).json()}async editQuery(t,e,i,r){let o=JSON.stringify(r),s=`${this.apiUrl}/web/queries/${t}/${e}/${i}`;return await this.doFetch(s,{body:o,method:"PATCH"})}async deleteQuery(t,e,i){let r=`${this.apiUrl}/queries/${t}/${e}/${i}`;return await this.doFetch(r,{method:"DELETE"})}getCommandsDownloadURL(t,e={}){return`${this.apiUrl}/archive/${t}:exportCommands`+this.queryString(e)}async editReplayProcessor(t,e,i){let r=JSON.stringify(i),o=`${this.apiUrl}/processors/${t}/${e}`;return await this.doFetch(o,{body:r,method:"PATCH"})}async deleteReplayProcessor(t,e){let i=`${this.apiUrl}/processors/${t}/${e}`;return await this.doFetch(i,{method:"DELETE"})}async getLinks(t){let e=`${this.apiUrl}/links/${t}`;return(await(await this.doFetch(e)).json()).links||[]}async getLink(t,e){let i=`${this.apiUrl}/links/${t}/${e}`;return await(await this.doFetch(i)).json()}async enableLink(t,e){return this.doFetch(`${this.apiUrl}/links/${t}/${e}:enable`,{method:"POST"})}async disableLink(t,e){return this.doFetch(`${this.apiUrl}/links/${t}/${e}:disable`,{method:"POST"})}async runLinkAction(t,e,i,r){return this.doFetch(`${this.apiUrl}/links/${t}/${e}/actions/${i}`,{method:"POST",body:JSON.stringify(r||{})})}async resetLinkCounters(t,e){return this.doFetch(`${this.apiUrl}/links/${t}/${e}:resetCounters`,{method:"POST"})}async getProcessors(t){let e=`${this.apiUrl}/processors/${t}`;return(await(await this.doFetch(e)).json()).processors||[]}async getProcessor(t,e){let i=`${this.apiUrl}/processors/${t}/${e}`;return await(await this.doFetch(i)).json()}async issueCommand(t,e,i,r){return this.issueCommandForNamespace(t,e,null,i,r)}async issueCommandForNamespace(t,e,i,r,o){let s=i?i+"/"+r:r,a=encodeURIComponent(s),l=JSON.stringify(o);return await(await this.doFetch(`${this.apiUrl}/processors/${t}/${e}/commands/${a}`,{body:l,method:"POST"})).json()}async startProcedure(t,e,i){let r=encodeURIComponent(e),o=JSON.stringify(i);return await(await this.doFetch(`${this.apiUrl}/spell/${t}/procedures/${r}:start`,{body:o,method:"POST"})).json()}async getCommandHistoryEntry(t,e){let i=`${this.apiUrl}/archive/${t}/commands/${e}`;return await(await this.doFetch(i)).json()}getCommandDownloadURL(t,e){return`${this.apiUrl}/archive/${t}/commands/${e}:export`}async getCommandHistoryEntries(t,e={}){let i=`${this.apiUrl}/archive/${t}/commands`;return await(await this.doFetch(i+this.queryString(e))).json()}async getCommandHistoryEntriesForParameter(t,e,i={}){let r=`${this.apiUrl}/archive/${t}/commands${e}`;return await(await this.doFetch(r+this.queryString(i))).json()}async getCommandQueues(t,e){let i=`${this.apiUrl}/processors/${t}/${e}/queues`;return(await(await this.doFetch(i)).json()).queues||[]}async getCommandQueue(t,e,i){let r=`${this.apiUrl}/processors/${t}/${e}/queues/${i}`;return await(await this.doFetch(r)).json()}async enableCommandQueue(t,e,i){let r=`${this.apiUrl}/processors/${t}/${e}/queues/${i}:enable`;return await(await this.doFetch(r,{method:"POST"})).json()}async disableCommandQueue(t,e,i){let r=`${this.apiUrl}/processors/${t}/${e}/queues/${i}:disable`;return await(await this.doFetch(r,{method:"POST"})).json()}async blockCommandQueue(t,e,i){let r=`${this.apiUrl}/processors/${t}/${e}/queues/${i}:block`;return await(await this.doFetch(r,{method:"POST"})).json()}async acceptCommand(t,e,i,r){let o=`${this.apiUrl}/processors/${t}/${e}/queues/${i}/commands/${r}:accept`;await this.doFetch(o,{method:"POST"})}async rejectCommand(t,e,i,r){let o=`${this.apiUrl}/processors/${t}/${e}/queues/${i}/commands/${r}:reject`;await this.doFetch(o,{method:"POST"})}async getActiveAlarms(t,e,i={}){let r=`${this.apiUrl}/processors/${t}/${e}/alarms`;return(await(await this.doFetch(r+this.queryString(i))).json()).alarms||[]}async getAlarms(t,e={}){let i=`${this.apiUrl}/archive/${t}/alarms`;return(await(await this.doFetch(i+this.queryString(e))).json()).alarms||[]}async getAlarmsForParameter(t,e,i={}){let r=`${this.apiUrl}/archive/${t}/alarms${e}`;return await(await(await this.doFetch(r+this.queryString(i))).json()).alarms||[]}async acknowledgeAlarm(t,e,i,r,o){let s=JSON.stringify(o),a=`${this.apiUrl}/processors/${t}/${e}/alarms${i}/${r}:acknowledge`;return await this.doFetch(a,{body:s,method:"POST"})}async shelveAlarm(t,e,i,r,o){let s=JSON.stringify(o),a=`${this.apiUrl}/processors/${t}/${e}/alarms${i}/${r}:shelve`;return await this.doFetch(a,{body:s,method:"POST"})}async unshelveAlarm(t,e,i,r){let o=`${this.apiUrl}/processors/${t}/${e}/alarms${i}/${r}:unshelve`;return await this.doFetch(o,{method:"POST"})}async clearAlarm(t,e,i,r,o){let s=JSON.stringify(o),a=`${this.apiUrl}/processors/${t}/${e}/alarms${i}/${r}:clear`;return await this.doFetch(a,{body:s,method:"POST"})}async getStreams(t){let e=`${this.apiUrl}/archive/${t}/streams`;return await(await(await this.doFetch(e)).json()).streams||[]}async getStream(t,e){let i=`${this.apiUrl}/archive/${t}/streams/${e}`;return await(await this.doFetch(i)).json()}async getTables(t){let e=`${this.apiUrl}/archive/${t}/tables`;return(await(await this.doFetch(e)).json()).tables||[]}async getTable(t,e){let i=`${this.apiUrl}/archive/${t}/tables/${e}`;return await(await this.doFetch(i)).json()}async getTableData(t,e){let i=`${this.apiUrl}/archive/${t}/tables/${e}/data`;return(await(await this.doFetch(i)).json()).record||[]}async executeSQL(t,e){let i=`${this.apiUrl}/archive/${t}:executeSql`;return await(await this.doFetch(i,{body:JSON.stringify({instance:t,statement:e}),method:"POST"})).json()}async getPacketNames(t){let e=`${this.apiUrl}/archive/${t}/packet-names`;return await(await this.doFetch(e)).json()}async streamPacketIndex(t,e){let i=`${this.apiUrl}/archive/${t}:streamPacketIndex`,s="["+(await(await this.doFetch(i,{body:JSON.stringify(e),method:"POST"})).text()).replace(/}{/g,"},{")+"]";return JSON.parse(s)}async streamParameterIndex(t,e){let i=`${this.apiUrl}/archive/${t}:streamParameterIndex`,s="["+(await(await this.doFetch(i,{body:JSON.stringify(e),method:"POST"})).text()).replace(/}{/g,"},{")+"]";return JSON.parse(s)}async streamCommandIndex(t,e){let i=`${this.apiUrl}/archive/${t}:streamCommandIndex`,s="["+(await(await this.doFetch(i,{body:JSON.stringify(e),method:"POST"})).text()).replace(/}{/g,"},{")+"]";return JSON.parse(s)}async streamEventIndex(t,e){let i=`${this.apiUrl}/archive/${t}:streamEventIndex`,s="["+(await(await this.doFetch(i,{body:JSON.stringify(e),method:"POST"})).text()).replace(/}{/g,"},{")+"]";return JSON.parse(s)}async getCompletenessIndex(t,e){let i=`${this.apiUrl}/archive/${t}/completeness-index`;return(await(await this.doFetch(i+this.queryString(e))).json()).group||[]}async streamCompletenessIndex(t,e){let i=`${this.apiUrl}/archive/${t}:streamCompletenessIndex`,s="["+(await(await this.doFetch(i,{body:JSON.stringify(e),method:"POST"})).text()).replace(/}{/g,"},{")+"]";return JSON.parse(s)}getPacketsDownloadURL(t,e={}){return`${this.apiUrl}/archive/${t}:exportPackets`+this.queryString(e)}getPacketDownloadURL(t,e,i,r){let o=encodeURIComponent(e);return`${this.apiUrl}/archive/${t}/packets/${o}/${i}/${r}:export`}async getPacket(t,e,i,r){let o=encodeURIComponent(e),s=`${this.apiUrl}/archive/${t}/packets/${o}/${i}/${r}`;return await(await this.doFetch(s)).json()}async extractPacket(t,e,i,r){let o=encodeURIComponent(e),s=`${this.apiUrl}/archive/${t}/packets/${o}/${i}/${r}:extract`;return await(await this.doFetch(s)).json()}async getMissionDatabase(t){let e=`${this.apiUrl}/mdb/${t}`;return await(await this.doFetch(e)).json()}async getSpaceSystems(t){let e=`${this.apiUrl}/mdb/${t}/space-systems`;return await(await this.doFetch(e)).json()}async getSpaceSystem(t,e){let i=`${this.apiUrl}/mdb/${t}/space-systems${e}`;return await(await this.doFetch(i)).json()}async exportSpaceSystem(t,e){let i=encodeURIComponent(e),r=`${this.apiUrl}/mdb/${t}/space-systems/${i}:exportXTCE`;return await(await this.doFetch(r)).text()}async getParameters(t,e={}){let i=`${this.apiUrl}/mdb/${t}/parameters`;return await(await this.doFetch(i+this.queryString(e))).json()}async getParameter(t,e){let i=`${this.apiUrl}/mdb/${t}/parameters${e}`;return await(await this.doFetch(i)).json()}async getParameterById(t,e){let i=`${this.apiUrl}/mdb/${t}/parameters`;return e.namespace?(i+="/"+encodeURIComponent(e.namespace),i+="/"+encodeURIComponent(e.name),await(await this.doFetch(i)).json()):this.getParameter(t,e.name)}async getParameterTypes(t,e={}){let i=`${this.apiUrl}/mdb/${t}/parameter-types`;return await(await this.doFetch(i+this.queryString(e))).json()}async getParameterType(t,e){let i=`${this.apiUrl}/mdb/${t}/parameter-types${e}`;return await(await this.doFetch(i)).json()}async getParameterValues(t,e,i={}){let r=`${this.apiUrl}/archive/${t}/parameters${e}`;return(await(await this.doFetch(r+this.queryString(i))).json()).parameter||[]}getParameterValuesDownloadURL(t,e={}){return`${this.apiUrl}/archive/${t}:exportParameterValues`+this.queryString(e)}async exportParameterValues(t,e){let i=`${this.apiUrl}/archive/${t}:exportParameterValues`;return await(await this.doFetch(i,{method:"POST",body:JSON.stringify(e)})).text()}async setParameterValue(t,e,i,r){let o=this.encodeParameterName(i),s=`${this.apiUrl}/processors/${t}/${e}/parameters${o}`;return this.doFetch(s,{body:JSON.stringify(r),method:"PUT"})}encodeParameterName(t){if(t.startsWith("/"))return t.split("/").map(e=>encodeURIComponent(e)).join("/");{let e=t.indexOf("/");if(e!==-1){let i=t.substring(0,e),r=t.substring(e+1);return"/"+encodeURIComponent(i)+"/"+encodeURIComponent(r)}else return"/"+encodeURIComponent(t)}}async getAlgorithmStatus(t,e,i){let r=`${this.apiUrl}/processors/${t}/${e}/algorithms${i}/status`;return await(await this.doFetch(r)).json()}async getAlgorithmTrace(t,e,i){let r=`${this.apiUrl}/processors/${t}/${e}/algorithms${i}/trace`;return await(await this.doFetch(r)).json()}async startAlgorithmTrace(t,e,i){let r=`${this.apiUrl}/processors/${t}/${e}/algorithms${i}/trace`;return this.doFetch(r,{body:JSON.stringify({state:"enabled"}),method:"PATCH"})}async stopAlgorithmTrace(t,e,i){let r=`${this.apiUrl}/processors/${t}/${e}/algorithms${i}/trace`;return this.doFetch(r,{body:JSON.stringify({state:"disabled"}),method:"PATCH"})}async updateAlgorithmText(t,e,i,r){let o=`${this.apiUrl}/mdb/${t}/${e}/algorithms${i}`;return this.doFetch(o,{body:JSON.stringify({action:"SET",algorithm:{text:r}}),method:"PATCH"})}async getAlgorithmOverrides(t,e,i){let r=`${this.apiUrl}/mdb-overrides/${t}/${e}/algorithms${i}`;return await(await this.doFetch(r)).json()}async revertAlgorithmText(t,e,i){let r=`${this.apiUrl}/mdb/${t}/${e}/algorithms${i}`;return this.doFetch(r,{body:JSON.stringify({action:"RESET"}),method:"PATCH"})}async getParameterSamples(t,e,i={}){let r=`${this.apiUrl}/archive/${t}/parameters${e}/samples`;return(await(await this.doFetch(r+this.queryString(i))).json()).sample||[]}async getParameterRanges(t,e,i={}){let r=`${this.apiUrl}/archive/${t}/parameters${e}/ranges`;return(await(await this.doFetch(r+this.queryString(i))).json()).range||[]}async getCommands(t,e={}){let i=`${this.apiUrl}/mdb/${t}/commands`;return await(await this.doFetch(i+this.queryString(e))).json()}async getCommand(t,e){return this.getCommandForNamespace(t,null,e)}async getCommandForNamespace(t,e,i){let r=e?e+"/"+i:i,o=encodeURIComponent(r),s=`${this.apiUrl}/mdb/${t}/commands/${o}`;return await(await this.doFetch(s)).json()}async getContainers(t,e={}){let i=`${this.apiUrl}/mdb/${t}/containers`;return await(await this.doFetch(i+this.queryString(e))).json()}async getContainer(t,e){let i=`${this.apiUrl}/mdb/${t}/containers${e}`;return await(await this.doFetch(i)).json()}async getActivities(t,e={}){let i=`${this.apiUrl}/activities/${t}/activities`;return await(await this.doFetch(i+this.queryString(e))).json()}async getActivity(t,e){let i=`${this.apiUrl}/activities/${t}/activities/${e}`;return await(await this.doFetch(i)).json()}async getActivityLog(t,e){let i=`${this.apiUrl}/activities/${t}/activities/${e}/log`;return(await(await this.doFetch(i)).json()).logs||[]}async startActivity(t,e){let i=`${this.apiUrl}/activities/${t}/activities`,r=JSON.stringify(e);return await(await this.doFetch(i,{body:r,method:"POST"})).json()}async cancelActivity(t,e){let i=`${this.apiUrl}/activities/${t}/activities/${e}:cancel`;return await(await this.doFetch(i,{method:"POST"})).json()}async completeManualActivity(t,e,i={}){let r=`${this.apiUrl}/activities/${t}/activities/${e}:complete`,o=JSON.stringify(i);return await(await this.doFetch(r,{body:o,method:"POST"})).json()}async getExecutors(t){let e=`${this.apiUrl}/activities/${t}/executors`;return(await(await this.doFetch(e)).json()).executors||[]}async getActivityScripts(t){let e=`${this.apiUrl}/activities/${t}/scripts`;return await(await this.doFetch(e)).json()}async getAlgorithms(t,e={}){let i=`${this.apiUrl}/mdb/${t}/algorithms`;return await(await this.doFetch(i+this.queryString(e))).json()}async getAlgorithm(t,e){let i=`${this.apiUrl}/mdb/${t}/algorithms${e}`;return await(await this.doFetch(i)).json()}async getFileTransferServices(t){let e=`${this.apiUrl}/filetransfer/${t}/services`;return await(await this.doFetch(e)).json()}async getFileTransfers(t,e,i={}){let r=`${this.apiUrl}/filetransfer/${t}/${e}/transfers`;return await(await this.doFetch(r+this.queryString(i))).json()}async createFileTransfer(t,e,i){let r=`${this.apiUrl}/filetransfer/${t}/${e}/transfers`,o=JSON.stringify(i);return await(await this.doFetch(r,{body:o,method:"POST"})).json()}async pauseFileTransfer(t,e,i){let r=`${this.apiUrl}/filetransfer/${t}/${e}/transfers/${i}:pause`;return this.doFetch(r,{method:"POST"})}async resumeFileTransfer(t,e,i){let r=`${this.apiUrl}/filetransfer/${t}/${e}/transfers/${i}:resume`;return this.doFetch(r,{method:"POST"})}async cancelFileTransfer(t,e,i){let r=`${this.apiUrl}/filetransfer/${t}/${e}/transfers/${i}:cancel`;return this.doFetch(r,{method:"POST"})}async requestFileList(t,e,i){let r=`${this.apiUrl}/filetransfer/${t}/${e}/files:sync`,o=JSON.stringify(i);return this.doFetch(r,{body:o,method:"POST"})}async getFileList(t,e,i){let r=`${this.apiUrl}/filetransfer/${t}/${e}/files`;var o=i;let s=r+this.queryString(Object.keys(o).filter(l=>l!=="options").reduce((l,c)=>(l[c]=o[c],l),{}))+(i.options?"&options="+JSON.stringify(i.options):"");return await(await this.doFetch(s)).json()}async runFileAction(t,e,i){return this.doFetch(`${this.apiUrl}/filetransfer/${t}/${e}/files:runFileAction`,{method:"POST",body:JSON.stringify(i)})}async getCop1Config(t,e){let i=`${this.apiUrl}/cop1/${t}/${e}/config`;return await(await this.doFetch(i)).json()}async initiateCop1(t,e,i){let r=`${this.apiUrl}/cop1/${t}/${e}:initialize`,o=JSON.stringify(i);return this.doFetch(r,{body:o,method:"POST"})}async disableCop1(t,e,i={}){let r=`${this.apiUrl}/cop1/${t}/${e}:disable`,o=JSON.stringify(i);return this.doFetch(r,{body:o,method:"POST"})}async resumeCop1(t,e){let i=`${this.apiUrl}/cop1/${t}/${e}:resume`;return await this.doFetch(i,{method:"POST"})}async doFetch(t,e){this.accessToken&&(e?e.headers||(e.headers=new Headers):e={headers:new Headers},e.headers.append("Authorization",`Bearer ${this.accessToken}`));let i;try{this.interceptor?i=await this.interceptor(this,t,e):i=await this.handle(t,e)}catch(r){return Promise.reject(r)}return i.ok?Promise.resolve(i):new Promise((r,o)=>{i.json().then(s=>{s.hasOwnProperty("detail")?o(new fu(i,s.msg,s.detail)):o(new fu(i,s.msg))}).catch(s=>{console.error("Failure while handling server error",s),o(new fu(i))})})}handle(t,e){return fetch(t,e)}prepareWebSocketClient(){this.webSocketClient||(this.webSocketClient=new KM(this.apiUrl,this.frameLossListener),this.webSocketClient.connected$.subscribe(t=>{t&&this.createSessionSubscription(e=>{this.sessionListener.onSessionEnd(e.endReason)}),this.connected$.next(t)}))}getWebSocketClient(){return this.webSocketClient}closeWebSocketClient(){this.webSocketClient&&(this.webSocketClient.close(),this.webSocketClient=void 0)}queryString(t){let e=Object.keys(t).filter(i=>t[i]!==void 0).map(i=>`${i}=${t[i]}`).join("&");return e===""?e:"?"+e}},iue=/^(yamcs<[^>]+>_)+/,sU=class n{constructor(t,e){this.aliases={},this.assignments=[],this.userAssignments=[],this.extraAcks=[],this.extra=[],this.acksByName={},this.cascadedRecordsByPrefix=new Map,this.entry=t,this.id=t.id,this.generationTime=t.generationTime,this.origin=t.origin,this.sequenceNumber=t.sequenceNumber,this.commandName=t.commandName,this.aliases=t.aliases||{};for(let r of t.assignments||[])this.assignments.push(r),r.userInput&&this.userAssignments.push(r);let i=new Set;for(let r of t.attr){let o=r.name;if(e!==void 0&&(!o.startsWith(e)||(o=o.substring(e.length),o.startsWith("yamcs<"))))continue;let s=o.match(iue);if(s)i.add(s[0]);else if(o==="username")this.username=r.value.stringValue;else if(o!=="source")if(o==="raw")this.raw=r.value.booleanValue;else if(o==="unprocessedBinary")this.unprocessedBinary=r.value.binaryValue;else if(o==="binary")this.binary=r.value.binaryValue;else if(o==="comment")this.comment=r.value.stringValue;else if(o==="queue")this.queue=r.value.stringValue;else if(o.endsWith("_Message")){let a=o.substring(0,o.length-8);this.saveAckMessage(a,r.value.stringValue)}else if(o.endsWith("_Time")){let a=o.substring(0,o.length-5);this.saveAckTime(a,r.value.stringValue)}else if(o.endsWith("_Status")){let a=o.substring(0,o.length-7);this.saveAckStatus(a,r.value.stringValue)}else if(o.endsWith("_Return")){let a=o.substring(0,o.length-7);this.saveAckReturnValue(a,r.value)}else this.extra.push({name:o,value:r.value})}for(let r of Object.values(this.acksByName))r.name==="CommandComplete"?this.completed=r:r.name==="TransmissionConstraints"?this.transmissionConstraints=r:r.name==="Acknowledge_Queued"?this.queued=r:r.name==="Acknowledge_Released"?this.released=r:r.name==="Acknowledge_Sent"?this.sent=r:this.extraAcks.push(r);for(let r of i)this.cascadedRecordsByPrefix.set(r,new n(t,r))}mergeEntry(t,e=!1){let i=e?this.mergeAttr(t.attr,this.entry.attr):this.mergeAttr(this.entry.attr,t.attr),r=e?Pe(E(E({},this.entry),t),{attr:i}):Pe(E(E({},t),this.entry),{attr:i});return new n(r)}mergeAttr(t,e){let i=t.map(o=>o.name),r=[...t];for(let o of e){let s=i.indexOf(o.name);s===-1?r.push(o):r[s]=o}return r}saveAckTime(t,e){let i=null;for(let r in this.acksByName)if(r===t){i=this.acksByName[r];break}i||(i={name:t},this.acksByName[t]=i),i.time=e}saveAckStatus(t,e){let i=null;for(let r in this.acksByName)if(r===t){i=this.acksByName[r];break}i||(i={name:t},this.acksByName[t]=i),i.status=e}saveAckMessage(t,e){let i=null;for(let r in this.acksByName)if(r===t){i=this.acksByName[r];break}i||(i={name:t},this.acksByName[t]=i),i.message=e}saveAckReturnValue(t,e){let i=null;for(let r in this.acksByName)if(r===t){i=this.acksByName[r];break}i||(i={name:t},this.acksByName[t]=i),i.returnValue=e}},aU=class{constructor(t=[],e){this.steps=t,this.stackOptions=e}addStep(t){this.steps.push(t)}toXML(){let t=document.implementation.createDocument(null,null,null),e=t.createElement("commandStack");t.appendChild(e);for(let r of this.steps){if(r.type!=="command")continue;let o=t.createElement("command");if(o.setAttribute("qualifiedName",r.name),r.comment&&o.setAttribute("comment",r.comment),r.extra){let s=t.createElement("extraOptions");for(let a in r.extra){let l=t.createElement("extraOption");l.setAttribute("id",a);let c=this.getValue(r.extra[a]);c!=null&&(l.setAttribute("value",""+c),s.appendChild(l))}o.appendChild(s)}for(let s in r.args){let a=t.createElement("commandArgument");a.setAttribute("argumentName",s);let l=this.formatValue(r.args[s]);a.setAttribute("argumentValue",l),o.appendChild(a)}e.appendChild(o)}let i=new XMLSerializer().serializeToString(e);return this.formatXml(i)}formatValue(t){return Array.isArray(t)||typeof t=="object"?JSON.stringify(t):String(t)}formatXml(t){let e="",i="",r="  ";return t.split(/>\s*\r
`,o.match(/^]*[^\/]$/)&&(i+=r)}),e.substring(1,e.length-3)}toJSON(){let t={$schema:"https://yamcs.org/schema/stack.schema.json",steps:[]};for(let e of this.steps)e.type==="command"?t.steps.push(E(E(E(E(E(E({type:e.type,name:e.name},e.namespace&&{namespace:e.namespace}),e.comment&&{comment:e.comment}),e.stream&&{stream:e.stream}),e.extra&&{extraOptions:this.getExtraOptionsJSON(e.extra)}),e.args&&{arguments:this.getCommandArgumentsJSON(e.args)}),e.advancement&&{advancement:e.advancement})):e.type==="check"?t.steps.push(Pe(E({type:e.type},e.comment&&{comment:e.comment}),{parameters:[...e.parameters]})):e.type==="verify"?t.steps.push(E(E(E({type:e.type,condition:[...e.condition]},e.delay&&{delay:e.delay}),e.timeout&&{timeout:e.timeout}),e.comment&&{comment:e.comment})):e.type==="text"&&t.steps.push({type:e.type,text:e.text});return this.stackOptions.advancement&&(t.advancement=this.stackOptions.advancement),JSON.stringify(t,null,2)}getExtraOptionsJSON(t){let e=[];for(let i in t){let r=this.getValue(t[i]);e.push(E({id:i},r!=null&&{value:r}))}return e}getCommandArgumentsJSON(t){let e=[];for(let i in t)e.push({name:i,value:t[i]});return e}getValue(t){switch(t.type){case"BOOLEAN":return t.booleanValue;case"FLOAT":return t.floatValue;case"DOUBLE":return t.doubleValue;case"UINT32":return t.uint32Value;case"SINT32":return t.sint32Value;case"ENUMERATED":case"STRING":return t.stringValue;case"UINT64":return t.uint64Value;case"SINT64":return t.sint64Value;default:}}},xLe=(()=>{class n{constructor(){this.sanitizer=C(ra),this.text=Ve(),this.html=Jn(()=>{let e=this.text();if(!e)return null;let i=e.replace(/(\'[^\']+\')/g,"$1");return this.sanitizer.sanitize(pi.HTML,i)})}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ya-action-log-summary"]],inputs:{text:[1,"text"]},standalone:!0,features:[O],decls:1,vars:1,consts:[[3,"innerHTML"]],template:function(i,r){i&1&&ie(0,"span",0),i&2&&q("innerHTML",r.html()||"-",rg)},encapsulation:2,changeDetection:0})}}return n})(),nue=n=>n.value===null||n.value===""||!isNaN(n.value)&&Number.isInteger(parseFloat(n.value))?null:{notInteger:{value:n.value}},rue=n=>!isNaN(n.value)&&parseFloat(n.value)>=0?null:{notUnsigned:{value:n.value}},oue=n=>n.value===null||n.value===""||!isNaN(n.value)&&(Number.isInteger(parseFloat(n.value))||n.value%1!==0)?null:{notFloat:{value:n.value}},DU=n=>{if(!n.value)return null;let t=n.value;return/^[a-fA-F0-9]+$/.test(t)?null:{notHex:!0}};function sue(n){return t=>{if(lue(t.value)||!xU(t.value))return null;let e=n*2;return t.value.length{let e=n*2;return xU(t.value)&&t.value.length>e?{maxhexlength:{requiredLength:e,actualLength:t.value.length}}:null}}function lue(n){return n==null||(typeof n=="string"||Array.isArray(n))&&n.length===0}function xU(n){return n!=null&&typeof n.length=="number"}var SLe=Object.freeze({__proto__:null,maxHexLengthValidator:aue,minHexLengthValidator:sue,requireFloat:oue,requireHex:DU,requireInteger:nue,requireUnsigned:rue}),kLe=(()=>{class n{constructor(){this.onChange=e=>{}}writeValue(e){this.inputComponent.nativeElement.value=e,this.onChange(e)}fireChange(){let e=this.inputComponent.nativeElement.value;this.onChange(e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){}validate(e){return DU(e)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ya-binary-input"]],viewQuery:function(i,r){if(i&1&&le(Gy,7),i&2){let o;B(o=$())&&(r.inputComponent=o.first)}},standalone:!0,features:[de([{provide:$t,useExisting:Ye(()=>n),multi:!0},{provide:Ji,useExisting:Ye(()=>n),multi:!0}]),O],decls:5,vars:0,consts:[["input",""],[1,"binary-input"],["type","text","autocomplete","off",1,"ya-input",3,"keyup","change"],[1,"hex-icon"]],template:function(i,r){if(i&1){let o=ye();b(0,"div",1)(1,"input",2,0),F("keyup",function(){return N(o),L(r.fireChange())})("change",function(){return N(o),L(r.fireChange())}),y(),b(3,"div",3),z(4,"0x"),y()()}},styles:[".binary-input[_ngcontent-%COMP%]{position:relative}.binary-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{padding-left:24px}.hex-icon[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:16px;text-align:center;color:#a9a9a9;font-size:12px;line-height:16px;padding:4px;font-weight:300}"],changeDetection:0})}}return n})(),ELe=(()=>{class n{constructor(){this.showMargin=!0}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ya-breadcrumb-trail"]],inputs:{showMargin:"showMargin"},standalone:!0,features:[O],ngContentSelectors:ci,decls:2,vars:2,consts:[[1,"trail"]],template:function(i,r){i&1&&(ge(),b(0,"div",0),Z(1),y()),i&2&&Q("showMargin",r.showMargin)},styles:[".trail[_ngcontent-%COMP%]{height:24px;font:400 12px/24px Roboto,sans-serif}.showMargin[_ngcontent-%COMP%]{margin-bottom:12px}"],changeDetection:0})}}return n})(),cue=(()=>{class n{constructor(){this.action=!1}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ya-breadcrumb"]],inputs:{icon:"icon",label:"label",link:"link",action:"action",queryParams:"queryParams"},standalone:!0,features:[O],decls:3,vars:1,consts:[[1,"ya-link",3,"routerLink","queryParams"],[1,"icon12","item",3,"with-label"],[1,"icon12","sep"],[1,"icon12","item"],[1,"ya-link","action"]],template:function(i,r){i&1&&U(0,wce,5,4)(1,xce,5,2)(2,Sce,1,1),i&2&&Y(r.link?0:r.action?1:2)},dependencies:[oi,hh],styles:[".item.with-label[_ngcontent-%COMP%]{margin-right:5px}.sep[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}.mat-icon[_ngcontent-%COMP%]{vertical-align:middle}.action[_ngcontent-%COMP%]{cursor:pointer}"],changeDetection:0})}}return n})(),Ua=(()=>{class n{constructor(){this.icon=Ve(),this.appearance=Ve("basic"),this.disabled=Ve(!1,{transform:W}),this.dropdown=Ve(!1,{transform:W}),this.toggled=Ve(!1,{transform:W}),this.click=ml()}onClick(e){this.click.emit(e),e.stopPropagation()}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ya-button"]],inputs:{icon:[1,"icon"],appearance:[1,"appearance"],disabled:[1,"disabled"],dropdown:[1,"dropdown"],toggled:[1,"toggled"]},outputs:{click:"click"},standalone:!0,features:[O],ngContentSelectors:ci,decls:4,vars:9,consts:[[3,"click","disabled"],[1,"icon12"]],template:function(i,r){if(i&1&&(ge(),b(0,"button",0),F("click",function(s){return r.onClick(s)}),U(1,kce,2,1,"mat-icon",1),Z(2),U(3,Ece,2,0,"mat-icon",1),y()),i&2){let o;Q("text-only",r.appearance()==="text")("primary",r.appearance()==="primary")("toggled",r.toggled()),q("disabled",r.disabled()),w(),Y((o=r.icon())?1:-1,o),w(2),Y(r.dropdown()?3:-1)}},dependencies:[oi],styles:["[_nghost-%COMP%]{display:inline-block}button[_ngcontent-%COMP%]{width:100%}button[_ngcontent-%COMP%]{height:24px;border:1px solid #d3d3d3;background-color:#fff;outline:none;color:#000000bf;padding:1px 6px;margin:0;border-radius:1px;background-image:linear-gradient(#0000,#00000005);cursor:pointer;font:400 12px/12px Roboto,sans-serif}button[_ngcontent-%COMP%]:active{border-color:#bbb;color:#000000bf;background-image:linear-gradient(#0000000a,#0000000a)}button[_ngcontent-%COMP%]:hover{box-shadow:0 1px 3px #0003}button[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:default}button.toggled[_ngcontent-%COMP%]{color:var(--y-accent)}button[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{font-size:14px;height:14px;width:14px;vertical-align:middle}button.primary[_ngcontent-%COMP%]{background-color:var(--y-accent);color:#fff;border-color:#0000001a}button.text-only[_ngcontent-%COMP%]{border:0;background:inherit;color:var(--y-accent)}button.text-only[_ngcontent-%COMP%]:hover{box-shadow:none}button.text-only[_ngcontent-%COMP%]:hover:not(:disabled){background-color:#e6f1ef}"],changeDetection:0})}}return n})(),SU=(()=>{class n{constructor(){this.preferences={},this.prefix="yamcs.",this.addPreference$("sidebar",!0)}addPreference$(e,i){this.preferences[e]=new Ee(i);let r=localStorage.getItem(this.prefix+e);return typeof i=="boolean"?this.preferences[e].next(r===(!i).toString()?!i:i):this.preferences[e].next(r??i),this.preferences[e]}getPreference$(e){return this.preferences[e]}getValue(e){return this.preferences[e]?.getValue()}setValue(e,i){this.preferences[e].next(i),localStorage.setItem(this.prefix+e,String(i))}getStoredColumnInfo(e){let i=localStorage.getItem(`${this.prefix}${e}.cols`);if(i){let r=JSON.parse(i);for(let o=0;o{class n{constructor(e){this.preferenceStore=e,this.preferenceKey=Ve(),this.icon=Ve(),this.appearance=Ve("basic"),this.displayedColumns$=new Ee([])}ngOnInit(){this.recalculate(this.columns)}recalculate(e){this.columns=e;let i=this.preferenceKey(),r=new Map;if(i){let a=(this.preferenceStore.getStoredColumnInfo(i)||[]).filter(l=>{for(let c of this.columns)if(c.id===l.id)return!0});for(let l of a)r.set(l.id,l)}let o=[];for(let s of this.columns){let a=r.get(s.id);a?(a.visible||s.alwaysVisible)&&o.push(s.id):(s.visible||s.alwaysVisible)&&o.push(s.id)}this.displayedColumns$.next(o)}isVisible(e){let i=this.displayedColumns$.value;return i&&i.indexOf(e.id)>=0}toggleColumn(e){let i=[];for(let r of this.columns)e.id===r.id&&!this.isVisible(r)?i.push({id:r.id,visible:!0}):e.id!==r.id&&this.isVisible(r)?i.push({id:r.id,visible:!0}):i.push({id:r.id,visible:!1});this.writeValue(i)}writeValue(e){let i=this.preferenceKey();i&&this.preferenceStore.setVisibleColumns(i,e);let r=e.filter(o=>o.visible).map(o=>o.id);this.displayedColumns$.next(r)}static{this.\u0275fac=function(i){return new(i||n)(p(SU))}}static{this.\u0275cmp=A({type:n,selectors:[["ya-column-chooser"]],inputs:{columns:"columns",preferenceKey:[1,"preferenceKey"],icon:[1,"icon"],appearance:[1,"appearance"]},standalone:!0,features:[O],decls:5,vars:4,consts:[["colMenu","matMenu"],["dropdown","true",3,"matMenuTriggerFor","appearance","icon"],["yPosition","below",1,"ya-menu",3,"overlapTrigger"],["matMenuContent",""],["mat-menu-item",""],["mat-menu-item","",3,"click"]],template:function(i,r){if(i&1&&(b(0,"ya-button",1),z(1,` Columns
`),y(),b(2,"mat-menu",2,0),U(4,Tce,2,0,"ng-template",3),y()),i&2){let o=Zt(3);q("matMenuTriggerFor",o)("appearance",r.appearance())("icon",r.icon()),w(2),q("overlapTrigger",!1)}},dependencies:[Cs,dL,xa,oi,Hh,Ua],encapsulation:2,changeDetection:0})}}return n})(),uue={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},XM=Array(31);for(let n=0;n=0&&t<100&&r.setUTCFullYear(this.getYear(r)-1900),r}},kU=(()=>{class n{constructor(e){this.document=e,this.fullScreenRequested=di(!1),this.fullScreenMode$=new Ee(!1),this.zenMode$=new Ee(!1),this.detailPane$=new Ee(!1),this.fullScreenChangeListener=()=>{this.document.fullscreenElement?this.fullScreenMode$.next(!0):(this.fullScreenRequested.set(!1),this.fullScreenMode$.next(!1),this.zenMode$.next(!1))},e.addEventListener("fullscreenchange",this.fullScreenChangeListener),yl(()=>{!this.fullScreenRequested()&&e.fullscreenElement&&e.exitFullscreen()})}ngOnDestroy(){this.document.removeEventListener("fullscreenchange",this.fullScreenChangeListener)}static{this.\u0275fac=function(i){return new(i||n)(D(ce))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Wa=(()=>{class n{async loadWebsiteConfig(){let e=document.getElementById("appConfig");return this.websiteConfig=JSON.parse(e.innerText),this.websiteConfig}getServerId(){return this.websiteConfig.serverId}getAuthInfo(){return this.websiteConfig.auth}getPluginIds(){return this.websiteConfig.plugins}getDisplayBucket(){return this.instanceConfig.displayBucket}getStackBucket(){return this.instanceConfig.stackBucket}isParameterArchiveEnabled(){return this.instanceConfig.parameterArchive}getTcStreams(){return this.instanceConfig.tcStreams??[]}getTag(){return this.websiteConfig.tag}getCommandOptions(){return this.websiteConfig.commandOptions}hasTemplates(){return this.websiteConfig.hasTemplates}getDisableLoginForm(){return this.websiteConfig.disableLoginForm}getExtraConfig(e){if(this.websiteConfig.extra.hasOwnProperty(e))return this.websiteConfig.extra[e]}getConfig(){return this.websiteConfig}setInstanceConfig(e){this.instanceConfig=e}getSiteLinks(){return this.websiteConfig.siteLinks||[]}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),fue=Pe(E({},cS()),{disableTooltipInteractivity:!0});function EU(){return[{provide:wi,useClass:JM}]}function ILe(){return[{provide:gs,useFactory:()=>document.getElementsByTagName("base")[0].getAttribute("href")}]}function MLe(){return[EU(),{provide:dS,useValue:fue},{provide:ys,useClass:wN},oV()]}function TLe(){return[{provide:vl,useFactory:n=>()=>n.loadWebsiteConfig(),multi:!0,deps:[Wa]}]}function ALe(){return[{provide:vl,useFactory:(n,t,e)=>()=>{n.router=t,n.appearanceService=e},multi:!0,deps:[wU,bi,kU]}]}var eT=new Date("0001-01-01T00:00:00Z"),tT=new Date("9999-12-31T23:59:59.999999999Z");function mue(n){let t=new Date(n);return t.getTime()tT.getTime()&&t.setTime(tT.getTime()),t}function pue(n){return new Promise(t=>{let{port1:e,port2:i}=new MessageChannel;i.onmessage=r=>t(r.data),e.postMessage(n)})}function gue(n,t){let e=/P((([0-9]*\.?[0-9]*)Y)?(([0-9]*\.?[0-9]*)M)?(([0-9]*\.?[0-9]*)W)?(([0-9]*\.?[0-9]*)D)?)?(T(([0-9]*\.?[0-9]*)H)?(([0-9]*\.?[0-9]*)M)?(([0-9]*\.?[0-9]*)S)?)?/,i=t.match(e);if(!i)throw new Error(`Invalid ISO 8601 duration: ${t}`);let r=new Date(n.getTime());return i[3]&&r.setUTCFullYear(n.getUTCFullYear()-parseFloat(i[3])),i[5]&&r.setUTCMonth(n.getUTCMonth()-parseFloat(i[5])),i[7]&&r.setUTCDate(n.getUTCDate()-7*parseFloat(i[7])),i[9]&&r.setUTCDate(n.getUTCDate()-parseFloat(i[9])),i[12]&&r.setUTCHours(n.getUTCHours()-parseFloat(i[12])),i[14]&&r.setUTCMinutes(n.getUTCMinutes()-parseFloat(i[14])),i[16]&&r.setUTCSeconds(n.getUTCSeconds()-parseFloat(i[16])),r}function _ue(n){if(!n.endsWith("s"))throw new Error(`Invalid proto duration: ${n}`);let t=n.substring(0,n.length-1).split(".",2);if(t.length===1)return Number(t[0])*1e3;{let e=Number(t[0]),i=t[1].substr(0,3),r=Number(i);return i.length===1?r*=100:i.length===2&&(r*=10),e*1e3+r}}function IU(n){let t=/P((([0-9]*\.?[0-9]*)Y)?(([0-9]*\.?[0-9]*)M)?(([0-9]*\.?[0-9]*)W)?(([0-9]*\.?[0-9]*)D)?)?(T(([0-9]*\.?[0-9]*)H)?(([0-9]*\.?[0-9]*)M)?(([0-9]*\.?[0-9]*)S)?)?/,e=n.match(t);if(!e)throw new Error(`Invalid ISO 8601 duration: ${n}`);let i=0;return e[9]&&(i+=parseFloat(e[9])*864e5),e[12]&&(i+=parseFloat(e[12])*36e5),e[14]&&(i+=parseFloat(e[14])*6e4),e[16]&&(i+=parseFloat(e[16])*1e3),i}function bue(n){switch(n.type){case"FLOAT":return n.floatValue;case"DOUBLE":return n.doubleValue;case"UINT32":return n.uint32Value;case"SINT32":return n.sint32Value;case"UINT64":return n.uint64Value;case"SINT64":return n.sint64Value;default:return null}}function MU(n){let t=window.atob(n),e="";for(let i=0;i{let r=0;for(let o=0;ol?1:-1,t[o]&&(r=-r),r!==0)break}return r}}var jU=Object.freeze({__proto__:null,MAX_DATE:tT,MIN_DATE:eT,clampDate:mue,convertBase64ToHex:MU,convertDurationToMillis:IU,convertHexToBase64:vue,convertProtoDurationToMillis:_ue,convertValue:iT,convertValueToNumber:bue,fromBase64URL:Cue,generateRandomName:yue,generateUnsignedJWT:Due,getBasename:RU,getDefaultProcessor:AU,getEntryForOffset:NU,getExtension:FU,getFilename:PU,getMemberPath:OU,getParameterTypeForPath:LU,getUnits:VU,lpad:TU,objectCompareFn:kue,structuredClone:pue,subtractDuration:gue,toBase64URL:nT,toDate:uc,toISOString:wue,toValue:qy,unflattenIndex:Sue}),dm=(()=>{class n{constructor(){this.padding=!0,this.disabled=!1}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ya-icon-action"]],hostVars:6,hostBindings:function(i,r){i&2&&Q("active",r.active)("padding",r.padding)("disabled",r.disabled)},inputs:{icon:"icon",active:"active",padding:"padding",disabled:"disabled"},standalone:!0,features:[O],decls:4,vars:1,consts:[[1,"icon-action"],[1,"action-content"]],template:function(i,r){i&1&&(b(0,"div",0)(1,"span",1)(2,"mat-icon"),z(3),y()()()),i&2&&(w(3),ft(r.icon))},dependencies:[oi],styles:[".icon-action[_ngcontent-%COMP%]{text-decoration:none;display:inline-flex;vertical-align:middle;align-items:center;color:#000;cursor:pointer;user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;font-size:12px}.icon-action[_ngcontent-%COMP%]:hover{color:#009e87}.active[_nghost-%COMP%]   .icon-action[_ngcontent-%COMP%]{color:#009e87}.active[_nghost-%COMP%]   .action-content[_ngcontent-%COMP%]{color:#009e87;margin-bottom:-2px;border-bottom:2px solid #009e87}.disabled[_nghost-%COMP%]   .icon-action[_ngcontent-%COMP%]{cursor:not-allowed}.disabled[_nghost-%COMP%]   .icon-action[_ngcontent-%COMP%]{color:#aaa}.disabled[_nghost-%COMP%]   .action-content[_ngcontent-%COMP%]{color:#aaa}.padding[_nghost-%COMP%]   .icon-action[_ngcontent-%COMP%]{padding-left:6px;padding-right:6px}[_nghost-%COMP%]{display:inline-block;height:20px}.material-icons[_ngcontent-%COMP%]{vertical-align:middle;font-size:20px!important;height:20px!important;width:20px!important}.material-icons[_ngcontent-%COMP%]:hover{background-color:#00000014;border-radius:50%}"],changeDetection:0})}}return n})(),uU={weekStartsOn:1},hU=3,Ky=(()=>{class n{constructor(e){this.DT_FMT_LONG="yyyy-MM-dd HH:mm:ss.SSS",this.DT_FMT_LONG_TZ="yyyy-MM-dd HH:mm:ss.SSS zzz",this.timezone=e.getConfig().utc?"UTC":Intl.DateTimeFormat().resolvedOptions().timeZone}isUTC(){return this.timezone==="UTC"}getTimezone(){return this.timezone}formatDateTime(e,i=!0){return typeof e=="string"&&!e.endsWith("Z")&&(e+="Z"),i?Qh(e,this.timezone,this.DT_FMT_LONG_TZ,uU):Qh(e,this.timezone,this.DT_FMT_LONG,uU)}formatValue(e,i){if(e.type==="AGGREGATE"){let r="{";if(e.aggregateValue){let o=Math.min(e.aggregateValue.name.length,hU);for(let s=0;si*2?"0x"+r.slice(0,i*2)+"\u2026":r.length>0?"0x"+r:""}formatHexDump(e){function i(l,c){return l.length>=c?l:new Array(c-l.length+1).join("0")+l}let r=window.atob(e),o="",s=0,a="";for(let l=0;l{class n{constructor(e){this.formatter=e,this.showMillis=!1,this.showClear=!1,this.showNow=!1,this.onChange=i=>{}}ngAfterViewInit(){this.picker.closedStream.subscribe(()=>{this.dayInputComponent.nativeElement.value&&(this.hourInputComponent.nativeElement.focus(),this.hourInputComponent.nativeElement.select())})}writeValue(e){if(e){let i=e;i=Qh(i,this.formatter.getTimezone(),"yyyy-MM-dd'T'HH:mm:ss.SSS"),this.dayInputComponent.nativeElement.value=i.substring(0,10),this.picker.select(uc(i));let r=i.substring(11,13),o=i.substring(14,16),s=i.length>=18?i.substring(17,19):"00";if(this.hourInputComponent.nativeElement.value=r,this.minuteInputComponent.nativeElement.value=o,this.secondInputComponent.nativeElement.value=s,this.showMillis){let a=i.length>=22?i.substring(20,23):"000";this.millisInputComponent.nativeElement.value=a}}}fireChange(e={}){try{let i=this.createDateOrThrow(e.standardizeInputs??!0);this.onChange(i?.toISOString()||null)}catch{this.onChange(fU)}}registerOnChange(e){this.onChange=e}registerOnTouched(e){}validate(e){return e.value===fU?{date:!0}:null}processPaste(e){let i=(e.clipboardData||window.clipboardData).getData("text");if(i)try{let r=uc(i);if(r instanceof Date&&!isNaN(r.getTime()))return e.preventDefault(),this.writeValue(r.toISOString()),this.fireChange(),!1}catch{}}clearValue(){this.dayInputComponent.nativeElement.value="",this.hourInputComponent.nativeElement.value="",this.minuteInputComponent.nativeElement.value="",this.secondInputComponent.nativeElement.value="",this.millisInputComponent.nativeElement.value="",this.fireChange()}setNow(){let e=new Date().toISOString();this.writeValue(e),this.fireChange()}createDateOrThrow(e){let i=this.dayInputComponent.nativeElement.value,r=this.hourInputComponent.nativeElement.value,o=this.minuteInputComponent.nativeElement.value,s=this.secondInputComponent.nativeElement.value,a=this.millisInputComponent.nativeElement.value;if(!i)return null;let l=i.match(Eue);if(!l)throw new Error("Invalid date pattern");let c=Number(l[1]),d=Number(l[2])-1,u=Number(l[3]),h=r?Number(r):0;if(!Number.isInteger(h))throw new Error("Hours must be an integer");let f=o?Number(o):0;if(!Number.isInteger(f))throw new Error("Minutes must be an integer");let m=s?Number(s):0;if(!Number.isInteger(m))throw new Error("Seconds must be an integer");let g=a?Number(a):0;if(!Number.isInteger(g))throw new Error("Milliseconds must be an integer");if(e){let{nativeElement:_}=this.hourInputComponent;h<10&&(_.value="0"+h);let{nativeElement:v}=this.minuteInputComponent;f<10&&(v.value="0"+f);let{nativeElement:x}=this.secondInputComponent;if(m<10&&(x.value="0"+m),this.showMillis){let{nativeElement:R}=this.millisInputComponent;g<10?R.value="00"+g:g<100&&(R.value="0"+g)}}return new Date(Date.UTC(c,d,u,h,f,m,g))}static{this.\u0275fac=function(i){return new(i||n)(p(Ky))}}static{this.\u0275cmp=A({type:n,selectors:[["ya-date-time-input"]],viewQuery:function(i,r){if(i&1&&(le(Ace,7),le(Oce,7),le(Rce,7),le(Pce,7),le(Fce,7),le(Nce,7)),i&2){let o;B(o=$())&&(r.dayInputComponent=o.first),B(o=$())&&(r.hourInputComponent=o.first),B(o=$())&&(r.minuteInputComponent=o.first),B(o=$())&&(r.secondInputComponent=o.first),B(o=$())&&(r.millisInputComponent=o.first),B(o=$())&&(r.picker=o.first)}},inputs:{showMillis:"showMillis",showClear:"showClear",showNow:"showNow"},standalone:!0,features:[de([{provide:$t,useExisting:Ye(()=>n),multi:!0},{provide:Ji,useExisting:Ye(()=>n),multi:!0},EU()]),O],decls:18,vars:5,consts:[["dayInput",""],["picker",""],["hourInput",""],["minuteInput",""],["secondInput",""],["millisInput",""],[1,"date-time-input"],["type","text","autocomplete","off","placeholder","YYYY-MM-DD",1,"day","ya-input",3,"keyup","dateInput","paste","matDatepicker"],[1,"cal"],[1,"icon14",3,"click"],[3,"restoreFocus"],["type","text","placeholder","hh",1,"hh","ya-input",3,"keyup","change","paste"],["type","text","placeholder","mm",1,"mm","ya-input",3,"keyup","change","paste"],["type","text","placeholder","ss",1,"ss","ya-input",3,"keyup","change","paste"],["placeholder","ms",1,"sss","ya-input",3,"keyup","change","paste","type"],["icon","timer","matTooltip","Set to now",1,"no-print",3,"padding"],["icon","clear","matTooltip","Clear value",1,"no-print",3,"padding","disabled"],["icon","timer","matTooltip","Set to now",1,"no-print",3,"click","padding"],["icon","clear","matTooltip","Clear value",1,"no-print",3,"click","padding","disabled"]],template:function(i,r){if(i&1){let o=ye();b(0,"div",6)(1,"input",7,0),F("keyup",function(){return N(o),L(r.fireChange({standardizeInputs:!1}))})("dateInput",function(){return N(o),L(r.fireChange())})("paste",function(a){return N(o),L(r.processPaste(a))}),y(),b(3,"div",8)(4,"mat-icon",9),F("click",function(){N(o);let a=Zt(7);return L(a.open())}),z(5,"calendar_today"),y()(),ie(6,"mat-datepicker",10,1),b(8,"input",11,2),F("keyup",function(){return N(o),L(r.fireChange({standardizeInputs:!1}))})("change",function(){return N(o),L(r.fireChange())})("paste",function(a){return N(o),L(r.processPaste(a))}),y(),b(10,"input",12,3),F("keyup",function(){return N(o),L(r.fireChange({standardizeInputs:!1}))})("change",function(){return N(o),L(r.fireChange())})("paste",function(a){return N(o),L(r.processPaste(a))}),y(),b(12,"input",13,4),F("keyup",function(){return N(o),L(r.fireChange({standardizeInputs:!1}))})("change",function(){return N(o),L(r.fireChange())})("paste",function(a){return N(o),L(r.processPaste(a))}),y(),b(14,"input",14,5),F("keyup",function(){return N(o),L(r.fireChange({standardizeInputs:!1}))})("change",function(){return N(o),L(r.fireChange())})("paste",function(a){return N(o),L(r.processPaste(a))}),y(),U(16,Lce,1,1,"ya-icon-action",15)(17,Vce,1,2,"ya-icon-action",16),y()}if(i&2){let o=Zt(7);w(),q("matDatepicker",o),w(5),q("restoreFocus",!1),w(8),q("type",r.showMillis?"text":"hidden"),w(2),Y(r.showNow?16:-1),w(),Y(r.showClear?17:-1)}},dependencies:[BL,X_,oi,ka,dm],styles:[".date-time-input[_ngcontent-%COMP%]{display:flex;position:relative;align-items:center}input[_ngcontent-%COMP%]{margin:0!important}input.day[_ngcontent-%COMP%]{padding-left:24px!important;margin-left:0;margin-right:0;display:inline-block!important;width:130px!important;border-top-right-radius:0;border-bottom-right-radius:0}.cal[_ngcontent-%COMP%]{position:absolute;top:2px;left:0}.cal[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{color:#a9a9a9;padding:3px;cursor:pointer}input.hh[_ngcontent-%COMP%], input.mm[_ngcontent-%COMP%], input.ss[_ngcontent-%COMP%]{width:40px!important;display:inline-block!important}input.sss[_ngcontent-%COMP%]{width:50px!important;display:inline-block!important}input.hh[_ngcontent-%COMP%]:not(:focus), input.mm[_ngcontent-%COMP%]:not(:focus), input.ss[_ngcontent-%COMP%]:not(:focus), input.sss[_ngcontent-%COMP%]:not(:focus){border-left-color:transparent}input.hh[_ngcontent-%COMP%], input.mm[_ngcontent-%COMP%]{border-radius:0}input.ss[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}"],changeDetection:0})}}return n})(),OLe=(()=>{class n extends CU{constructor(){super(...arguments),this.alwaysOpen=Ve(!1,{transform:W}),this.closed=di(!0)}ngOnInit(){this.detailPaneSubscription=this.appearanceService.detailPane$.subscribe(e=>{this.closed.set(!e)})}ngOnDestroy(){this.detailPaneSubscription?.unsubscribe(),this.closeDetailPane()}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xe(n)))(r||n)}})()}static{this.\u0275cmp=A({type:n,selectors:[["ya-detail-pane"]],inputs:{alwaysOpen:[1,"alwaysOpen"]},standalone:!0,features:[ne,O],ngContentSelectors:ci,decls:2,vars:2,consts:[[1,"detail"]],template:function(i,r){i&1&&(ge(),b(0,"div",0),Z(1),y()),i&2&&Q("hidden",!r.alwaysOpen()&&r.closed())},styles:["[_nghost-%COMP%]{--panel-width: 450px}.detail[_ngcontent-%COMP%]{background-color:#fcfcfc;float:right;height:100%;width:var(--panel-width);overflow:auto;border-left:1px solid rgba(0,0,0,.1);box-sizing:border-box;font:400 12px/20px Roboto,sans-serif}.detail.hidden[_ngcontent-%COMP%]{display:none}@media print{.detail[_ngcontent-%COMP%]{display:none}}"],changeDetection:0})}}return n})(),Mue=(()=>{class n extends CU{constructor(){super(...arguments),this.alwaysOpen=Ve(!1,{transform:W})}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Xe(n)))(r||n)}})()}static{this.\u0275cmp=A({type:n,selectors:[["ya-detail-toolbar"]],inputs:{alwaysOpen:[1,"alwaysOpen"]},standalone:!0,features:[ne,O],ngContentSelectors:ci,decls:3,vars:1,consts:[[1,"detail-toolbar"],[2,"flex","1 1 auto"],["icon","close","matTooltip","Close pane",1,"icon-action",3,"click"]],template:function(i,r){i&1&&(ge(),b(0,"mat-toolbar",0),Z(1),U(2,jce,2,0),y()),i&2&&(w(2),Y(r.alwaysOpen()?-1:2))},dependencies:[nk,ka,dm],styles:["mat-toolbar[_ngcontent-%COMP%]{background-color:#fcfcfc;font-style:normal;font-weight:400;align-items:center}.icon-action[_ngcontent-%COMP%]{display:flex;align-items:center}"]})}}return n})(),RLe=(()=>{class n{constructor(){this.fontSize="20px"}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ya-dots"]],inputs:{color:"color",fontSize:"fontSize"},standalone:!0,features:[O],decls:6,vars:12,consts:[[1,"dot1"],[1,"dot2"],[1,"dot3"]],template:function(i,r){i&1&&(b(0,"span",0),z(1,"\u25AA"),y(),b(2,"span",1),z(3,"\u25AA"),y(),b(4,"span",2),z(5,"\u25AA"),y()),i&2&&(wt("color",r.color)("font-size",r.fontSize),w(2),wt("color",r.color)("font-size",r.fontSize),w(2),wt("color",r.color)("font-size",r.fontSize))},styles:["@keyframes _ngcontent-%COMP%_blink{0%{opacity:.2}20%{opacity:1}to{opacity:.2}}.dot1[_ngcontent-%COMP%], .dot2[_ngcontent-%COMP%], .dot3[_ngcontent-%COMP%]{animation-name:_ngcontent-%COMP%_blink;animation-duration:1.4s;animation-iteration-count:infinite;animation-fill-mode:both;color:#009e87}.dot2[_ngcontent-%COMP%]{animation-delay:.5s}.dot3[_ngcontent-%COMP%]{animation-delay:1s}"],changeDetection:0})}}return n})(),Tue=(()=>{class n{constructor(){this.link=Ve.required(),this.disabled=Ve(!1,{transform:W}),this.appearance=Ve("basic")}triggerDownload(){this.disabled()||this.hiddenLink.nativeElement.click()}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ya-download-button"]],viewQuery:function(i,r){if(i&1&&le(vU,7),i&2){let o;B(o=$())&&(r.hiddenLink=o.first)}},inputs:{link:[1,"link"],disabled:[1,"disabled"],appearance:[1,"appearance"]},standalone:!0,features:[O],ngContentSelectors:ci,decls:4,vars:3,consts:[["hiddenLink",""],[3,"click","appearance","disabled"],["download","",2,"display","none",3,"href"]],template:function(i,r){if(i&1){let o=ye();ge(),b(0,"ya-button",1),F("click",function(){return N(o),L(r.triggerDownload())}),Z(1),y(),ie(2,"a",2,0)}i&2&&(q("appearance",r.appearance())("disabled",r.disabled()),w(2),q("href",r.link(),og))},dependencies:[Ua],encapsulation:2})}}return n})(),Aue=(()=>{class n{constructor(){this.disabled=!1}triggerDownload(){this.disabled||this.hiddenLink.nativeElement.click()}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ya-download-menu-item"]],viewQuery:function(i,r){if(i&1&&le(vU,7),i&2){let o;B(o=$())&&(r.hiddenLink=o.first)}},inputs:{link:"link",disabled:"disabled"},standalone:!0,features:[O],ngContentSelectors:ci,decls:4,vars:2,consts:[["hiddenLink",""],["mat-menu-item","",1,"ya-menu",3,"click","disabled"],["download","",2,"display","none",3,"href"]],template:function(i,r){if(i&1){let o=ye();ge(),b(0,"button",1),F("click",function(){return N(o),L(r.triggerDownload())}),Z(1),y(),ie(2,"a",2,0)}i&2&&(q("disabled",r.disabled),w(2),q("href",r.link,og))},dependencies:[xa],encapsulation:2})}}return n})(),mU=(()=>{class n{constructor(){this.id=Ve.required(),this.label=Ve.required(),this.icon=Ve(),this.group=Ve(!1,{transform:W})}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ya-option"]],inputs:{id:[1,"id"],label:[1,"label"],icon:[1,"icon"],group:[1,"group"]},standalone:!0,features:[O],decls:0,vars:0,template:function(i,r){},encapsulation:2,changeDetection:0})}}return n})(),oT=(()=>{class n{constructor(){this.icon=Ve(),this.emptyOption=Ve("-- select an option --"),this.showClear=Ve(!1),this.options=Ve([]),this.optionChildren=SR(mU),this.selected=di(null),this.label=Jn(()=>{let e=this.selected()||"";for(let i of this.options())if(i.id===e)return i.label||i.id;for(let i of this.optionChildren())if(i.id()===e)return i.label()||i.id();return e}),this.onChange=e=>{}}isSelected(e){let i=this.selected();return e===""?i===e||i===null:i===e}clearValue(){this.writeValue(null)}writeValue(e){this.selected.set(e),this.onChange(e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ya-select"]],contentQueries:function(i,r,o){i&1&&vg(o,r.optionChildren,mU,4),i&2&&bl()},inputs:{icon:[1,"icon"],emptyOption:[1,"emptyOption"],showClear:[1,"showClear"],options:[1,"options"]},standalone:!0,features:[de([{provide:$t,useExisting:Ye(()=>n),multi:!0}]),O],decls:10,vars:5,consts:[["selMenu","matMenu"],["dropdown","true",3,"matMenuTriggerFor","icon"],[2,"color","grey"],["icon","clear","matTooltip","Clear value",1,"no-print",3,"padding","disabled"],["yPosition","below",1,"ya-menu",3,"overlapTrigger"],["mat-menu-item",""],["icon","clear","matTooltip","Clear value",1,"no-print",3,"click","padding","disabled"],["mat-menu-item","",3,"click"]],template:function(i,r){if(i&1&&(b(0,"ya-button",1),U(1,Bce,1,1)(2,$ce,2,1,"span",2),y(),U(3,zce,1,2,"ya-icon-action",3),b(4,"mat-menu",4,0),qi(6,Uce,5,4,"button",5,Kn),qi(8,Yce,5,4,"button",5,Kn),y()),i&2){let o,s=Zt(5);q("matMenuTriggerFor",s)("icon",r.icon()),w(),Y((o=r.label())?1:2,o),w(2),Y(r.showClear()?3:-1),w(),q("overlapTrigger",!1),w(2),Gi(r.options()),w(2),Gi(r.optionChildren())}},dependencies:[ok,oi,Cs,xa,Hh,ka,Ua,dm],encapsulation:2,changeDetection:0})}}return n})(),pU="invalid",Oue=(()=>{class n{constructor(){this.resolutionOptions=[{id:"seconds",label:"seconds"},{id:"minutes",label:"minutes"},{id:"hours",label:"hours"}],this.onChange=e=>{},this.resolutionControl=new kd("seconds",wa.required),this.resolutionControl.valueChanges.subscribe(()=>this.fireChange())}writeValue(e){if(e){let i=e.substring(0,e.length-1);this.inputComponent.nativeElement.value=i,this.fireChange()}}fireChange(){try{let e=this.createDurationOrThrow();this.onChange(e||null)}catch{this.onChange(pU)}}registerOnChange(e){this.onChange=e}registerOnTouched(e){}validate(e){return e.value===pU?{duration:!0}:null}createDurationOrThrow(){let e=this.inputComponent.nativeElement.value,i=this.resolutionControl.value;if(e===""||!i)return null;if(!Rue(e))throw new Error("Invalid duration pattern");let r;switch(i){case"seconds":r=e;break;case"minutes":r=e*60;break;case"hours":r=e*60*60;break;default:throw new Error(`Unexpected resolution ${i}`)}return r+"s"}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ya-duration-input"]],viewQuery:function(i,r){if(i&1&&le(Gy,7),i&2){let o;B(o=$())&&(r.inputComponent=o.first)}},standalone:!0,features:[de([{provide:$t,useExisting:Ye(()=>n),multi:!0},{provide:Ji,useExisting:Ye(()=>n),multi:!0}]),O],decls:4,vars:2,consts:[["input",""],[1,"duration-input"],["id","duration-input","type","text","autocomplete","off",1,"ya-input",3,"keyup","change"],[3,"formControl","options"]],template:function(i,r){if(i&1){let o=ye();b(0,"div",1)(1,"input",2,0),F("keyup",function(){return N(o),L(r.fireChange())})("change",function(){return N(o),L(r.fireChange())}),y(),ie(3,"ya-select",3),y()}i&2&&(w(3),q("formControl",r.resolutionControl)("options",r.resolutionOptions))},dependencies:[Da,Sd,Nl,oT],styles:[".duration-input[_ngcontent-%COMP%]{display:flex;align-items:center;margin:5px 0 0}input[_ngcontent-%COMP%]{margin:0!important}.duration-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100px!important;margin-right:5px!important}"],changeDetection:0})}}return n})();function Rue(n){return!isNaN(n)&&(Number.isInteger(parseFloat(n))||n%1!==0)}var PLe=(()=>{class n{constructor(){this.marginTop="50px"}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ya-empty-message"]],inputs:{headerTitle:"headerTitle",marginTop:"marginTop"},standalone:!0,features:[O],ngContentSelectors:ci,decls:5,vars:3,consts:[[2,"width","100%","text-align","center"],[1,"frame"],[1,"header"],[1,"body"]],template:function(i,r){i&1&&(ge(),b(0,"div",0)(1,"div",1),U(2,qce,2,1,"div",2),b(3,"div",3),Z(4),y()()()),i&2&&(w(),wt("margin-top",r.marginTop),w(),Y(r.headerTitle?2:-1))},styles:[".frame[_ngcontent-%COMP%]{display:inline-block;width:412px;border-radius:10px;box-shadow:0 10px 16px -8px #0003;background-color:#fff;font:400 12px/24px Roboto,sans-serif}.frame[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]{border-bottom:1px solid #d3d3d3;height:64px;line-height:64px;padding-left:24px;position:relative;text-align:left;font-size:large}.frame[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]{padding:24px;text-align:left}"],changeDetection:0})}}return n})(),Pue={date:()=>"invalid date",min:n=>`the minimum value is ${n.min}`,max:n=>`the maximum value is ${n.max}`,notFloat:()=>"invalid float",notHex:()=>"invalid hex",notInteger:()=>"must be integer",notUnsigned:()=>"must be unsigned",required:()=>"this field is required",minlength:()=>"string too small",maxlength:()=>"string too large",minhexlength:()=>"hexstring too small",maxhexlength:()=>"hexstring too large",invalidDimension:()=>"invalid dimension",argumentRequired:n=>`argument '${n.name}' is required`,parameterRequired:n=>`parameter '${n.qualifiedName}' is required`},FLe=(()=>{class n{constructor(e){this.controlContainer=e,this.errorMessage$=new Ee(null),this.invalid$=this.errorMessage$.pipe(fe(i=>!!i))}ngOnInit(){let e;if(this.controlContainer instanceof U_){let i=this.controlContainer.control,r=Number(this.controlName);e=i.controls[r]}else if(this.controlContainer instanceof H_)e=this.controlContainer.control.controls[this.controlName];else if(this.controlContainer instanceof Ed)e=this.controlContainer.control.controls[this.controlName];else throw new Error("Unexpected control container");this.controlSubscription=e.valueChanges.subscribe(()=>{this.validateControl(e)}),e instanceof Cd&&this.validateControl(e)}validateControl(e){if(e.errors)for(let i in e.errors){let r=Pue[i];if(!r)console.warn(`No validation message for key '${i}'`),this.errorMessage$.next("invalid");else{let o=e.errors[i],s=r(o);this.errorMessage$.next(s)}break}else this.errorMessage$.next(null)}ngOnDestroy(){this.controlSubscription?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||n)(p(un))}}static{this.\u0275cmp=A({type:n,selectors:[["ya-errors"]],inputs:{controlName:"controlName"},standalone:!0,features:[O],decls:2,vars:3,consts:[[1,"errmessage"]],template:function(i,r){if(i&1&&(U(0,Gce,2,1,"span",0),Wt(1,"async")),i&2){let o;Y((o=Xt(1,1,r.errorMessage$))?0:-1,o)}},dependencies:[tr],styles:[".errmessage[_ngcontent-%COMP%]{color:var(--y-error-color);font-weight:400;letter-spacing:normal;margin-left:10px}"]})}}return n})(),Fue=(()=>{class n{get expired(){return this.pval&&this.pval.acquisitionStatus==="EXPIRED"}getExpiredTooltip(){if(this.pval){let e=`EXPIRED VALUE.
`;return e+=`Generated: ${this.pval.generationTime}
`,e+=`Received: ${this.pval.acquisitionTime}`,e}else return"EXPIRED VALUE"}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ya-expirable"]],inputs:{pval:"pval"},standalone:!0,features:[O],ngContentSelectors:ci,decls:3,vars:3,consts:[["matTooltipClass","multiline",1,"icon12",3,"matTooltip"]],template:function(i,r){i&1&&(ge(),b(0,"span"),Z(1),U(2,Qce,3,1,"mat-icon",0),y()),i&2&&(Q("expired",r.expired),w(2),Y(r.expired?2:-1))},dependencies:[oi,ka],styles:[".expired[_ngcontent-%COMP%]{font-style:italic}mat-icon[_ngcontent-%COMP%]{color:#1b61b9}  .mat-tooltip{white-space:pre-line}"],changeDetection:0})}}return n})(),Nue=eu.define([{tag:te.compareOperator,color:"rgb(95, 99, 104)"},{tag:te.lineComment,color:"rgb(176, 96, 0)"},{tag:te.literal,color:"rgb(0, 0, 0)"},{tag:te.logicOperator,color:"rgb(19, 115, 51)"},{tag:te.operator,color:"rgb(217, 48, 37)"},{tag:te.propertyName,color:"rgb(118, 39, 187)"},{tag:te.string,color:"rgb(201, 39, 134)"}]),Lue=Re.theme({"&":{width:"100%",height:"100%",fontSize:"12px",fontWeight:"normal",letterSpacing:"normal"},".cm-content, .cm-gutter":{minHeight:"100px"},".cm-scroller":{overflow:"auto",fontFamily:"'Roboto Mono', monospace"},"&.cm-focused":{outline:"none"},".cm-underline":{textDecoration:"underline 1px red",textDecorationStyle:"wavy"}},{dark:!1});function Vue(n){let t={"&":{width:"100%",height:"100%",fontSize:"12px",fontWeight:"normal",letterSpacing:"normal"},".cm-content":{padding:0},".cm-scroller":{overflow:"auto",fontFamily:"Roboto, sans-serif",backgroundColor:"#fff",lineHeight:"22px"},"&.cm-focused":{outline:"none"},".cm-underline":{textDecoration:"underline 1px red",textDecorationStyle:"wavy"}};return n&&(t[".cm-line"]={paddingLeft:n}),Re.theme(t,{dark:!1})}function BU(n){function t(i){let r=i.matchBefore(/\w+/);return!i.explicit&&!r?null:{from:r?r.from:i.pos,options:n?.completions||[],validFor:/^\w*$/}}let e=[mv(),$v(),hv(),fv(),Fv(),Lv(Nue),Vv(),fy(),gy({override:[t]}),ay()];if(n?.oneline){n.onEnter&&e.push(Ts.of([{key:"Enter",run:r=>(n.onEnter(r),!0),preventDefault:!0}]));let i=Vue(n?.paddingLeft);e.push(i)}else e.push(Lue,bv(),vv(),Di.allowMultipleSelections.of(!0),gv(),_v(),pv(),Re.lineWrapping);return e.push(Ts.of([...my,...qv,...Hv,...Kf,...yy])),n?.placeholder&&e.push(SB(n.placeholder)),e}var jue=Mv({String:te.string,Text:te.literal,LineComment:te.lineComment,CompareOp:te.compareOperator,Comparable:te.propertyName,LogicOp:te.logicOperator,Number:te.number,"True False":te.bool,Minus:te.operator,Null:te.null,"( )":te.paren}),Bue=Cy.deserialize({version:14,states:"#lQ`QPOOO!oQPO'#CfO#fQPO'#CgOOQO'#Cp'#CpO$]QPO'#CpO$eQPO'#ChOOQO'#Ck'#CkOOQO'#Cl'#ClQ`QPOOOOQO,59[,59[O$eQPO,59SOOQO'#Cj'#CjO%SQPO,59SOOQO-E6j-E6jO%SQPO1G.nOOQO'#Cf'#CfOOQO'#Cg'#CgO%cQPO'#CpOOQO1G.n1G.nOOQO7+$Y7+$Y",stateData:"%v~OcOSPOSQOSROS~OTROUROVROWROXSOePOfQOpUOqUOrUO~Og]Xh]Xi]Xj]Xk]Xl]Xm]Xn]Xo]X~OTYXUYXVYXWYXXYXaYXeYXfYXpYXqYXrYX~P!QOTZXUZXVZXWZXXZXaZXeZXfZXpZXqZXrZX~P!QOePOfQO~OgZOhZOiZOjZOkZOlZOmZOnZOoZO~OTROUROVROWROXaOe_Of`O~OTrqpWUPXVf~",goto:"!cePPPPPPPPPPffpt{p!RPPP!XWROW[^TXSaTVOWSTOWRYSQ[TR^YQWOR]WSVOWQb[Rc^",nodeNames:"\u26A0 LineComment ( ) Filter True False Null Number Minus String Text Comparison Comparable CompareOp LogicOp",maxTerm:34,nodeProps:[["isolate",-3,10,11,13,""]],propSources:[jue],skippedNodes:[0,1,2,3],repeatNodeCount:1,tokenData:"5p~RmXY!|YZ!|]^!|pq!|qr#Rrs#ftu$yxy%byz%g}!O%l!Q!R&c!R!['q![!](S!^!_(X!_!`(f!`!a(s!c!d)Q!d!p$y!p!q*w!q!r,n!r!}$y#R#S$y#T#Y$y#Y#Z-v#Z#b$y#b#c0v#c#h$y#h#i3[#i#o$y~#ROc~~#UQ!_!`#[#r#s#a~#aOh~~#fOn~~#iWpq#fqr#frs$Rs#O#f#O#P$W#P;'S#f;'S;=`$s<%lO#f~$WOe~~$ZWrs#f!P!Q#f#O#P#f#U#V#f#Y#Z#f#b#c#f#f#g#f#h#i#f~$vP;=`<%l#f~%OUf~tu$y!O!P$y!Q![$y!c!}$y#R#S$y#T#o$y~%gOQ~~%lOR~~%qRX~}!O%z!Q!R&c!R!['q~&PSP~OY%zZ;'S%z;'S;=`&]<%lO%z~&`P;=`<%l%z~&hRW~!O!P&q!g!h'V#X#Y'V~&tP!Q![&w~&|RW~!Q![&w!g!h'V#X#Y'V~'YR{|'c}!O'c!Q!['i~'fP!Q!['i~'nPW~!Q!['i~'vSW~!O!P&q!Q!['q!g!h'V#X#Y'V~(XOo~~(^Pi~!_!`(a~(fOk~~(kPg~#r#s(n~(sOm~~(xPj~!_!`({~)QOl~~)VWf~tu$y!O!P$y!Q![$y!c!p$y!p!q)o!q!}$y#R#S$y#T#o$y~)tWf~tu$y!O!P$y!Q![$y!c!f$y!f!g*^!g!}$y#R#S$y#T#o$y~*eUp~f~tu$y!O!P$y!Q![$y!c!}$y#R#S$y#T#o$y~*|Wf~tu$y!O!P$y!Q![$y!c!q$y!q!r+f!r!}$y#R#S$y#T#o$y~+kWf~tu$y!O!P$y!Q![$y!c!v$y!v!w,T!w!}$y#R#S$y#T#o$y~,[Ur~f~tu$y!O!P$y!Q![$y!c!}$y#R#S$y#T#o$y~,sWf~tu$y!O!P$y!Q![$y!c!t$y!t!u-]!u!}$y#R#S$y#T#o$y~-dUq~f~tu$y!O!P$y!Q![$y!c!}$y#R#S$y#T#o$y~-{Vf~tu$y!O!P$y!Q![$y!c!}$y#R#S$y#T#U.b#U#o$y~.gWf~tu$y!O!P$y!Q![$y!c!}$y#R#S$y#T#`$y#`#a/P#a#o$y~/UWf~tu$y!O!P$y!Q![$y!c!}$y#R#S$y#T#g$y#g#h/n#h#o$y~/sWf~tu$y!O!P$y!Q![$y!c!}$y#R#S$y#T#X$y#X#Y0]#Y#o$y~0dUU~f~tu$y!O!P$y!Q![$y!c!}$y#R#S$y#T#o$y~0{Wf~tu$y!O!P$y!Q![$y!c!}$y#R#S$y#T#i$y#i#j1e#j#o$y~1jWf~tu$y!O!P$y!Q![$y!c!}$y#R#S$y#T#`$y#`#a2S#a#o$y~2XWf~tu$y!O!P$y!Q![$y!c!}$y#R#S$y#T#`$y#`#a2q#a#o$y~2xUV~f~tu$y!O!P$y!Q![$y!c!}$y#R#S$y#T#o$y~3aWf~tu$y!O!P$y!Q![$y!c!}$y#R#S$y#T#f$y#f#g3y#g#o$y~4OWf~tu$y!O!P$y!Q![$y!c!}$y#R#S$y#T#i$y#i#j4h#j#o$y~4mWf~tu$y!O!P$y!Q![$y!c!}$y#R#S$y#T#X$y#X#Y5V#Y#o$y~5^UT~f~tu$y!O!P$y!Q![$y!c!}$y#R#S$y#T#o$y",tokenizers:[0],topRules:{Filter:[0,4]},tokenPrec:211}),$ue=Tv.define({name:"filter",parser:Bue.configure({}),languageData:{closeBrackets:{brackets:["(",'"']}}});function $U(){return new Av($ue)}var zU=(()=>{class n{constructor(){this.completions=Ve(),this.errorMark=Ve(),this.placeholder=Ve(),this.icon=Ve(),this.onEnter=ml(),this.editorContainerRef=pg.required("editorContainer"),this.editorView=null,this.showClear=di(!1),this.onChange=e=>{},yl(()=>{let e=this.errorMark();if(this.editorView.dispatch({effects:this.removeUnderlineEffect.of(null)}),e){let{doc:i}=this.editorView.state,{beginLine:r,beginColumn:o,endLine:s,endColumn:a}=e,l=i.line(r).from+(o-1),c=i.line(s).from+a;this.editorView.dispatch({effects:this.addUnderlineEffect.of(this.underlineDecoration.range(l,c))})}})}writeValue(e){this.initialDocString=e||void 0,this.editorView?.dispatch({changes:{from:0,to:this.editorView.state.doc.length,insert:this.initialDocString}})}registerOnChange(e){this.onChange=e}registerOnTouched(e){}ngAfterViewInit(){let e=this.editorContainerRef().nativeElement;this.initializeEditor(e)}focus(){this.editorView?.focus()}clearInput(){this.writeValue(null),this.focus()}initializeEditor(e){this.addUnderlineEffect=Ue.define({map:({from:s,to:a},l)=>({from:l.mapPos(s),to:l.mapPos(a)})}),this.removeUnderlineEffect=Ue.define(),this.underlineDecoration=ve.mark({class:"cm-underline"});let i=this,r=zt.define({create(){return ve.none},update(s,a){s=s.map(a.changes);for(let l of a.effects)l.is(i.addUnderlineEffect)?s=s.update({add:[i.underlineDecoration.range(l.value.from,l.value.to)]}):l.is(i.removeUnderlineEffect)&&(s=s.update({filter:(c,d,u)=>!1}));return s},provide:s=>Re.decorations.from(s)}),o=Di.create({doc:this.initialDocString,extensions:[BU({oneline:!0,placeholder:this.placeholder(),paddingLeft:this.icon()?"24px":void 0,onEnter:s=>{this.onEnter.emit(s.state.doc.toString())},completions:this.completions()}),$U(),Re.updateListener.of(s=>{if(s.docChanged){let a=s.state.doc.toString();this.onChange(a),this.showClear.set(!!a)}}),r]});this.editorView=new Re({state:o,parent:e}),this.showClear.set(!!this.initialDocString)}ngOnDestroy(){this.editorView?.destroy(),this.editorView=null}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ya-filter-input"]],viewQuery:function(i,r){i&1&&yg(r.editorContainerRef,yU,5),i&2&&bl()},inputs:{completions:[1,"completions"],errorMark:[1,"errorMark"],placeholder:[1,"placeholder"],icon:[1,"icon"]},outputs:{onEnter:"onEnter"},standalone:!0,features:[de([{provide:$t,useExisting:Ye(()=>n),multi:!0}]),O],decls:4,vars:2,consts:[["editorContainer",""],[1,"editor-container"],[1,"icon"],[1,"clear"],[1,"icon16"],[1,"clear",3,"click"]],template:function(i,r){if(i&1&&(ie(0,"div",1,0),U(2,Kce,3,1,"div",2)(3,Zce,3,0,"div",3)),i&2){let o;w(2),Y((o=r.icon())?2:-1,o),w(),Y(r.showClear()?3:-1)}},dependencies:[oi],styles:["[_nghost-%COMP%]{display:block;position:relative}.editor-container[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.1)}.icon[_ngcontent-%COMP%]{position:absolute;top:0;left:0}.icon[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{color:#a9a9a9;padding:4px}.clear[_ngcontent-%COMP%]{position:absolute;top:0;right:0}.clear[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{cursor:pointer;color:#a9a9a9;padding:4px}.clear[_ngcontent-%COMP%]:hover   .material-icons[_ngcontent-%COMP%]{color:#000}"],changeDetection:0})}}return n})(),zue=(()=>{class n{constructor(){this.errorMark=Ve(),this.placeholder=Ve(),this.completions=Ve(),this.onEnter=ml(),this.editorContainerRef=pg.required("editorContainer"),this.editorView=null,this.onChange=e=>{},yl(()=>{let e=this.errorMark();if(this.editorView.dispatch({effects:this.removeUnderlineEffect.of(null)}),e){let{doc:i}=this.editorView.state,{beginLine:r,beginColumn:o,endLine:s,endColumn:a}=e,l=i.line(r).from+(o-1),c=i.line(s).from+a;this.editorView.dispatch({effects:this.addUnderlineEffect.of(this.underlineDecoration.range(l,c))})}})}writeValue(e){this.initialDocString=e||void 0,this.editorView?.dispatch({changes:{from:0,to:this.editorView.state.doc.length,insert:this.initialDocString}})}registerOnChange(e){this.onChange=e}registerOnTouched(e){}ngAfterViewInit(){let e=this.editorContainerRef().nativeElement;this.initializeEditor(e)}initializeEditor(e){this.addUnderlineEffect=Ue.define({map:({from:s,to:a},l)=>({from:l.mapPos(s),to:l.mapPos(a)})}),this.removeUnderlineEffect=Ue.define(),this.underlineDecoration=ve.mark({class:"cm-underline"});let i=this,r=zt.define({create(){return ve.none},update(s,a){s=s.map(a.changes);for(let l of a.effects)l.is(i.addUnderlineEffect)?s=s.update({add:[i.underlineDecoration.range(l.value.from,l.value.to)]}):l.is(i.removeUnderlineEffect)&&(s=s.update({filter:(c,d,u)=>!1}));return s},provide:s=>Re.decorations.from(s)}),o=Di.create({doc:this.initialDocString,extensions:[BU({completions:this.completions()}),$U(),Re.updateListener.of(s=>{s.docChanged&&this.onChange(s.state.doc.toString())}),r]});this.editorView=new Re({state:o,parent:e})}ngOnDestroy(){this.editorView?.destroy(),this.editorView=null}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ya-filter-textarea"]],viewQuery:function(i,r){i&1&&yg(r.editorContainerRef,yU,5),i&2&&bl()},inputs:{errorMark:[1,"errorMark"],placeholder:[1,"placeholder"],completions:[1,"completions"]},outputs:{onEnter:"onEnter"},standalone:!0,features:[de([{provide:$t,useExisting:Ye(()=>n),multi:!0}]),O],decls:2,vars:0,consts:[["editorContainer",""],[1,"editor-container"]],template:function(i,r){i&1&&ie(0,"div",1,0)},styles:[".editor-container[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.1)}"],changeDetection:0})}}return n})(),HU=(()=>{class n{constructor(){this.padding=!0,this.disabled=!1}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ya-text-action"]],hostVars:6,hostBindings:function(i,r){i&2&&Q("active",r.active)("padding",r.padding)("disabled",r.disabled)},inputs:{icon:"icon",active:"active",padding:"padding",disabled:"disabled"},standalone:!0,features:[O],ngContentSelectors:ci,decls:4,vars:1,consts:[[1,"text-action"],[1,"action-content"],[1,"icon14"]],template:function(i,r){i&1&&(ge(),b(0,"div",0)(1,"span",1),U(2,Xce,3,1),Z(3),y()()),i&2&&(w(2),Y(r.icon?2:-1))},dependencies:[oi],styles:[".text-action[_ngcontent-%COMP%]{text-decoration:none;display:inline-flex;vertical-align:middle;align-items:center;color:#000;cursor:pointer;user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;font-size:12px}.text-action[_ngcontent-%COMP%]:hover{color:#009e87}.active[_nghost-%COMP%]   .text-action[_ngcontent-%COMP%]{color:#009e87}.active[_nghost-%COMP%]   .action-content[_ngcontent-%COMP%]{color:#009e87;margin-bottom:-2px;border-bottom:2px solid #009e87}.disabled[_nghost-%COMP%]   .text-action[_ngcontent-%COMP%]{cursor:not-allowed}.disabled[_nghost-%COMP%]   .text-action[_ngcontent-%COMP%]{color:#aaa}.disabled[_nghost-%COMP%]   .action-content[_ngcontent-%COMP%]{color:#aaa}.padding[_nghost-%COMP%]   .text-action[_ngcontent-%COMP%]{padding-left:6px;padding-right:6px}.icon14[_ngcontent-%COMP%]{vertical-align:middle}"],changeDetection:0})}}return n})(),UU=(()=>{class n{constructor(e){this.data=e}static{this.\u0275fac=function(i){return new(i||n)(p(sM))}}static{this.\u0275cmp=A({type:n,selectors:[["ya-help-dialog"]],standalone:!0,features:[O],decls:10,vars:4,consts:[["mat-dialog-title",""],[2,"vertical-align","middle"],[2,"text-align","justify"],[1,"help-dialog-content",3,"innerHTML"],["align","end"],["appearance","primary","mat-dialog-close",""]],template:function(i,r){i&1&&(b(0,"h2",0)(1,"mat-icon",1),z(2),y(),b(3,"span",1),z(4),y()(),b(5,"mat-dialog-content",2),ie(6,"span",3),y(),b(7,"mat-dialog-actions",4)(8,"ya-button",5),z(9),y()()),i&2&&(w(2),ft(r.data.icon||"help"),w(2),ft(r.data.title),w(2),q("innerHTML",r.data.content,rg),w(3),ft(r.data.closeText||"Close"))},dependencies:[Zz,qz,Kz,Qz,oi,Ua],styles:["span.help-dialog-content[_ngcontent-%COMP%]{font-size:14px!important;line-height:16px!important}"]})}}return n})(),Hue=(()=>{class n{constructor(e,i){this.dialog=e,this.sanitizer=i,this.dialogWidth="500px"}showHelp(){let e=this.dialogContent.nativeElement.innerHTML;return this.dialog.open(UU,{width:this.dialogWidth,data:{title:this.dialogTitle,content:this.sanitizer.bypassSecurityTrustHtml(e)}}),!1}static{this.\u0275fac=function(i){return new(i||n)(p(nm),p(ra))}}static{this.\u0275cmp=A({type:n,selectors:[["ya-help"]],viewQuery:function(i,r){if(i&1&&le(Jce,7),i&2){let o;B(o=$())&&(r.dialogContent=o.first)}},inputs:{dialogTitle:"dialogTitle",dialogWidth:"dialogWidth"},standalone:!0,features:[O],ngContentSelectors:ci,decls:6,vars:0,consts:[["dialogContent",""],[1,"help",3,"click"],[1,"icon12"],[2,"display","none"]],template:function(i,r){if(i&1){let o=ye();ge(),b(0,"ya-text-action",1),F("click",function(){return N(o),L(r.showHelp())}),b(1,"mat-icon",2),z(2,"help"),y(),b(3,"div",3,0),Z(5),y()()}},dependencies:[oi,HU],styles:[".help table{border-spacing:0}  .help td,   .help th{font-size:12px;color:#000000a7;border-bottom:1px solid #d3d3d3}"]})}}return n})(),NLe=(()=>{class n{constructor(){this.onChange=e=>{}}writeValue(e){if(e){let i=Number(e);isNaN(i)||(this.inputComponent.nativeElement.value=i.toString(16),this.fireChange())}}fireChange(){try{let e=this.createNumberOrThrow();this.onChange(e)}catch{this.onChange(NaN)}}createNumberOrThrow(){let e=this.inputComponent.nativeElement.value;if(!e)return null;if(/^[a-fA-F0-9]+$/.test(e))return parseInt(e,16);throw new Error("Invalid hex pattern")}registerOnChange(e){this.onChange=e}registerOnTouched(e){}validate(e){return e.value&&isNaN(e.value)?{notHex:!0}:null}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ya-hex-integer-input"]],viewQuery:function(i,r){if(i&1&&le(Gy,7),i&2){let o;B(o=$())&&(r.inputComponent=o.first)}},standalone:!0,features:[de([{provide:$t,useExisting:Ye(()=>n),multi:!0},{provide:Ji,useExisting:Ye(()=>n),multi:!0}]),O],decls:5,vars:0,consts:[["input",""],[1,"binary-input"],["type","text","autocomplete","off",1,"ya-input",3,"keyup","change"],[1,"hex-icon"]],template:function(i,r){if(i&1){let o=ye();b(0,"div",1)(1,"input",2,0),F("keyup",function(){return N(o),L(r.fireChange())})("change",function(){return N(o),L(r.fireChange())}),y(),b(3,"div",3),z(4,"0x"),y()()}},styles:[ede],changeDetection:0})}}return n})(),LLe=(()=>{class n{constructor(){this.sanitizer=C(ra),this.text=Ve(),this.term=Ve(),this.html=Jn(()=>{let e=this.text(),i=this.term();if(!e||!i)return e||"";{let r=new RegExp("("+this.escapeRegex(i)+")","ig"),o=e.replace(r,"$1");return this.sanitizer.sanitize(pi.HTML,o)||""}})}escapeRegex(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ya-highlight"]],inputs:{text:[1,"text"],term:[1,"term"]},standalone:!0,features:[O],decls:1,vars:1,consts:[[3,"innerHTML"]],template:function(i,r){i&1&&ie(0,"span",0),i&2&&q("innerHTML",r.html(),rg)},encapsulation:2,changeDetection:0})}}return n})();var VLe=(()=>{class n{constructor(){this.leftInclusive=!0,this.rightInclusive=!0,this.singleValueIfEqual=!1,this.outside=!1,this.interval$=new Ee(null)}ngOnChanges(){let e=this.outside?this.printOutsideForm():this.printInsideForm();this.interval$.next(e)}printInsideForm(){let e;return this.singleValueIfEqual&&this.left!==void 0&&this.left===this.right?e=String(this.left):(e="(-\u221E",this.left!==void 0&&(e=this.leftInclusive?"[":"(",e+=this.left),e+=", ",this.right!==void 0?(e+=this.right,e+=this.rightInclusive?"]":")"):e+="+\u221E)"),e}printOutsideForm(){let e="";return this.left!==void 0&&(e+="(-\u221E, ",e+=this.left,e+=this.leftInclusive?")":"]",this.right!==void 0&&(e+=", ")),this.right!==void 0&&(e+=this.rightInclusive?"(":"[",e+=this.right,e+=", +\u221E)"),e}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ya-interval"]],inputs:{left:"left",right:"right",leftInclusive:"leftInclusive",rightInclusive:"rightInclusive",singleValueIfEqual:"singleValueIfEqual",outside:"outside"},standalone:!0,features:[ze,O],decls:2,vars:3,template:function(i,r){i&1&&(z(0),Wt(1,"async")),i&2&&qe("",Xt(1,1,r.interval$),`
`)},dependencies:[tr],encapsulation:2,changeDetection:0})}}return n})(),sT=(()=>{class n{constructor(){this.backgroundColor="#eee",this.color="inherit",this.borderColor="#ccc"}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ya-label"]],inputs:{icon:"icon",backgroundColor:"backgroundColor",color:"color",borderColor:"borderColor"},standalone:!0,features:[O],ngContentSelectors:ci,decls:3,vars:7,consts:[[1,"label"]],template:function(i,r){i&1&&(ge(),b(0,"span",0),U(1,tde,2,1,"mat-icon"),Z(2),y()),i&2&&(wt("background-color",r.backgroundColor)("border-color",r.borderColor)("color",r.color),w(),Y(r.icon?1:-1))},dependencies:[oi],styles:["span.label[_ngcontent-%COMP%]{padding:4px;margin-right:5px;border-radius:12px;white-space:nowrap;border:1px solid transparent}span.label[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{vertical-align:middle;font-size:12px!important;line-height:16px}"]})}}return n})(),Uue=(()=>{class n{constructor(){this.sortedLabels$=new Ee([])}ngOnInit(){let e=[];if(this.dict)for(let i in this.dict)this.dict.hasOwnProperty(i)&&e.push({key:i,value:this.dict[i]});e.sort((i,r)=>i.key.localeCompare(r.key)),this.sortedLabels$.next(e)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ya-labels"]],inputs:{dict:"dict"},standalone:!0,features:[O],decls:2,vars:3,consts:[[1,"label"]],template:function(i,r){if(i&1&&(U(0,rde,2,0),Wt(1,"async")),i&2){let o;Y((o=Xt(1,1,r.sortedLabels$))?0:-1,o)}},dependencies:[tr,sT],encapsulation:2})}}return n})(),Wue="rgb(0,255,0)",jLe="rgb(0,100,0)",Yue=0,BLe=(()=>{class n{constructor(){this.width=16,this.height=16,this.color=Wue,this.borderColor="rgb(150,150,150)",this.border=2,this.fade=!0,this.id=Yue++}ngAfterViewInit(){this.render()}ngOnChanges(){this.containerEl&&this.render()}render(){let e=this.width-2*this.border,i=this.height-2*this.border,r=`
            
                
                    
                        
                        
                    
                    
                        
                        
                    
                
                
                
                
                
                
        `;this.containerEl.nativeElement.innerHTML=r}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ya-led"]],viewQuery:function(i,r){if(i&1&&le(ode,5),i&2){let o;B(o=$())&&(r.containerEl=o.first)}},inputs:{width:"width",height:"height",color:"color",borderColor:"borderColor",border:"border",fade:"fade"},standalone:!0,features:[ze,O],decls:2,vars:6,consts:[["container",""],[2,"display","inline-block","line-height","0"]],template:function(i,r){i&1&&ie(0,"div",1,0),i&2&&wt("opacity",r.fade?.3:1)("width",r.width+"px")("height",r.height+"px")},styles:["[_nghost-%COMP%]{line-height:0;font-size:0}"],changeDetection:0})}}return n})(),que=(()=>{class n{constructor(e){this.messageService=e,this.siteMessage$=e.siteMessage$,this.show$=this.siteMessage$.pipe(fe(i=>!!i))}dismiss(){this.messageService.dismiss()}static{this.\u0275fac=function(i){return new(i||n)(p(Qy))}}static{this.\u0275cmp=A({type:n,selectors:[["ya-message-bar"]],standalone:!0,features:[O],decls:2,vars:3,consts:[[1,"message-bar",3,"warning"],[1,"message-bar"],[2,"flex","1 1 auto"],[1,"actions"],["mat-icon-button","",3,"click"]],template:function(i,r){if(i&1&&(U(0,sde,11,3,"mat-toolbar",0),Wt(1,"async")),i&2){let o;Y((o=Xt(1,1,r.siteMessage$))?0:-1,o)}},dependencies:[tr,oi,ma,nk,ik],styles:[".message-bar[_ngcontent-%COMP%]{background-color:var(--y-error-color)!important;color:#fff!important;overflow:hidden;position:relative;z-index:2000}.message-bar.warning[_ngcontent-%COMP%]{background-color:var(--y-warning-color)!important}.mat-toolbar-row[_ngcontent-%COMP%]{height:48px}.mat-toolbar-multiple-rows[_ngcontent-%COMP%]{min-height:48px}.actions[_ngcontent-%COMP%]{position:absolute;top:0;right:0;background-color:var(--y-error-color);height:48px;line-height:48px}.actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:4px;color:#fff;margin-right:11px}.message-bar.warning[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{background-color:var(--y-warning-color)!important}"],changeDetection:0})}}return n})(),Gue=(()=>{class n{constructor(){this.icon="more_vert",this.padding=!0}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ya-more"]],inputs:{icon:"icon",padding:"padding"},standalone:!0,features:[O],ngContentSelectors:ci,decls:4,vars:3,consts:[["moreMenu","matMenu"],["overlapTrigger","false",1,"ya-menu"],[1,"no-print",3,"click","matMenuTriggerFor","icon","padding"]],template:function(i,r){if(i&1){let o=ye();ge(),b(0,"mat-menu",1,0),Z(2),y(),b(3,"ya-icon-action",2),F("click",function(a){return N(o),L(a.stopPropagation())}),y()}if(i&2){let o=Zt(1);w(3),q("matMenuTriggerFor",o)("icon",r.icon)("padding",r.padding)}},dependencies:[dm,Cs,Hh],encapsulation:2,changeDetection:0})}}return n})(),Que=(()=>{class n{constructor(){this.options=[],this.icon=Ve(),this.emptyOption=Ve("-- select an option --"),this.options$=new Ee([]),this.selected$=new Ee([]),this.onChange=e=>{}}ngOnChanges(){this.options$.next(this.options)}isSelected(e){return this.selected$.value.indexOf(e)!==-1}writeValue(e){this.selected$.next(e),this.onChange(e)}enableOption(e,i){let r=[...this.selected$.value];return r.indexOf(i)===-1&&r.push(i),this.writeValue(r),e.preventDefault(),e.stopPropagation(),!1}disableOption(e,i){let r=[...this.selected$.value],o=r.indexOf(i);return o!==-1&&r.splice(o,1),this.writeValue(r),e.preventDefault(),e.stopPropagation(),!1}registerOnChange(e){this.onChange=e}registerOnTouched(e){}getLabel(e){return e.map(r=>{let o=this.findOption(r);return o?o.label||o.id:r}).join(", ")}findOption(e){for(let i of this.options)if(i.id===e)return i;return null}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ya-multi-select"]],inputs:{options:"options",icon:[1,"icon"],emptyOption:[1,"emptyOption"]},standalone:!0,features:[de([{provide:$t,useExisting:Ye(()=>n),multi:!0}]),ze,O],decls:10,vars:11,consts:[["selMenu","matMenu"],["dropdown","true",3,"matMenuTriggerFor","icon"],["yPosition","below",1,"ya-menu",3,"overlapTrigger"],["mat-menu-item",""],["mat-menu-item","",3,"click"]],template:function(i,r){if(i&1&&(b(0,"ya-button",1),U(1,ade,1,1),Wt(2,"async"),U(3,lde,2,1,"span"),Wt(4,"async"),y(),b(5,"mat-menu",2,0),qi(7,mde,3,3,null,null,Kn),Wt(9,"async"),y()),i&2){let o,s=Zt(6);q("matMenuTriggerFor",s)("icon",r.icon()),w(),Y((o=Xt(2,5,r.selected$))?1:-1,o),w(2),Y(Xt(4,7,r.selected$).length?-1:3),w(2),q("overlapTrigger",!1),w(2),Gi(Xt(9,9,r.options$))}},dependencies:[tr,ok,oi,Cs,xa,Hh,Ua],encapsulation:2,changeDetection:0})}}return n})(),Kue=(()=>{class n{constructor(){this.icon=Ve(),this.iconRotate90=Ve(!1,{transform:W}),this.disabled=Ve(!1,{transform:W}),this.dropdown=Ve(!1,{transform:W}),this.color=Ve("primary"),this.clicked=ml()}onClick(e){this.disabled()||this.clicked.emit(e)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ya-page-button"]],inputs:{icon:[1,"icon"],iconRotate90:[1,"iconRotate90"],disabled:[1,"disabled"],dropdown:[1,"dropdown"],color:[1,"color"]},outputs:{clicked:"clicked"},standalone:!0,features:[O],ngContentSelectors:ci,decls:4,vars:4,consts:[["mat-button","",3,"click","color","disabled"],[3,"transform"]],template:function(i,r){if(i&1&&(ge(),b(0,"button",0),F("click",function(s){return r.onClick(s)}),U(1,pde,2,3,"mat-icon",1),Z(2),U(3,gde,1,0),y()),i&2){let o;q("color",r.color())("disabled",r.disabled()),w(),Y((o=r.icon())?1:-1,o),w(2),Y(r.dropdown()?3:-1)}},dependencies:[Ol,oi],encapsulation:2,changeDetection:0})}}return n})(),Zue=(()=>{class n{constructor(){this.icon=Ve.required(),this.iconRotate90=Ve(!1,{transform:W}),this.disabled=Ve(!1,{transform:W}),this.color=Ve("primary"),this.clicked=ml()}onClick(e){this.disabled()||this.clicked.emit(e)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ya-page-icon-button"]],inputs:{icon:[1,"icon"],iconRotate90:[1,"iconRotate90"],disabled:[1,"disabled"],color:[1,"color"]},outputs:{clicked:"clicked"},standalone:!0,features:[O],decls:3,vars:5,consts:[["mat-icon-button","",3,"click","color","disabled"]],template:function(i,r){i&1&&(b(0,"button",0),F("click",function(s){return r.onClick(s)}),b(1,"mat-icon"),z(2),y()()),i&2&&(q("color",r.color())("disabled",r.disabled()),w(),wt("transform",r.iconRotate90()?"rotate(90deg)":"none"),w(),qe(" ",r.icon()," "))},dependencies:[ma,oi],encapsulation:2,changeDetection:0})}}return n})(),$Le=(()=>{class n{constructor(){this.format="1.1",this.ratio$=new Ee(null),this.boundedRatio$=new Ee(0)}ngOnChanges(){let e=this.value/this.total;if(e==null){this.ratio$.next(null),this.boundedRatio$.next(0);return}this.ratio$.next(e),this.boundedRatio$.next(Math.max(0,Math.min(1,e)))}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ya-progress"]],inputs:{value:"value",total:"total",width:"width"},standalone:!0,features:[ze,O],decls:7,vars:9,consts:[[1,"progress"],[1,"fill"],[1,"label"]],template:function(i,r){i&1&&(b(0,"div",0),ie(1,"div",1),Wt(2,"async"),U(3,_de,4,6,"div",2),Wt(4,"async"),b(5,"span"),z(6,"\xA0"),y()()),i&2&&(wt("width",r.width),w(),wt("width",100*Xt(2,5,r.boundedRatio$)+"%"),w(2),Y(Xt(4,7,r.ratio$)!==null?3:-1))},dependencies:[tr,DP],styles:[".progress[_ngcontent-%COMP%]{display:inline-block;min-width:100px;min-height:16px;position:relative;text-align:center;margin-right:5px;background-color:#eee;border:1px solid rgba(0,0,0,.1)}.fill[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;background-color:var(--y-accent);background:linear-gradient(to bottom,var(--y-accent),#bce3dd 50%,var(--y-accent))}.label[_ngcontent-%COMP%]{all:unset!important;position:absolute!important;inset:0!important;margin:0 auto!important}"],changeDetection:0})}}return n})(),Xue=(()=>{class n{constructor(e){this.changeDetection=e,this.placeholder="Filter",this.width="400px",this.debounceTime=400,this.icon="filter_list",this.onArrowDown=new P,this.onArrowUp=new P,this.onEnter=new P,this.showClear$=new k,this.setEvent$=new k,this.onChange=i=>{}}ngAfterViewInit(){let e=Ri(this.filter.nativeElement,"keyup").pipe(sn(this.debounceTime),fe(()=>this.filter.nativeElement.value.trim()));this.showClear$.next(!!this.getValue()),this.changeDetection.detectChanges(),this.eventSubscription=et(e,this.setEvent$).pipe(Jo()).subscribe(i=>{this.onChange(i),this.showClear$.next(!!i)})}getValue(){return this.filter.nativeElement.value.trim()}writeValue(e){this.filter.nativeElement.value=e,this.setEvent$.next(e)}clearInput(){this.writeValue(""),this.filter.nativeElement.focus()}registerOnChange(e){this.onChange=e}registerOnTouched(e){}onKeydown(e){switch(e.key){case"ArrowDown":return this.onArrowDown.emit(e.target.value),e.preventDefault(),!1;case"ArrowUp":return this.onArrowUp.emit(e.target.value),e.preventDefault(),!1;case"Enter":return this.onEnter.emit(e.target.value),e.preventDefault(),!1}}ngOnDestroy(){this.eventSubscription?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||n)(p(_e))}}static{this.\u0275cmp=A({type:n,selectors:[["ya-search-filter"]],viewQuery:function(i,r){if(i&1&&le(Gy,7),i&2){let o;B(o=$())&&(r.filter=o.first)}},inputs:{placeholder:"placeholder",width:"width",debounceTime:"debounceTime",icon:"icon"},outputs:{onArrowDown:"onArrowDown",onArrowUp:"onArrowUp",onEnter:"onEnter"},standalone:!0,features:[de([{provide:$t,useExisting:Ye(()=>n),multi:!0}]),O],decls:8,vars:7,consts:[["input",""],[1,"search-input"],["type","text",1,"ya-input",3,"keydown","placeholder"],[1,"filter"],[1,"icon16"],[1,"clear"],[1,"clear",3,"click"]],template:function(i,r){if(i&1){let o=ye();b(0,"div",1)(1,"input",2,0),F("keydown",function(a){return N(o),L(r.onKeydown(a))}),y(),b(3,"div",3)(4,"mat-icon",4),z(5),y()(),U(6,bde,3,0,"div",5),Wt(7,"async"),y()}i&2&&(wt("width",r.width),w(),q("placeholder",r.placeholder),w(4),ft(r.icon),w(),Y(Xt(7,5,r.showClear$)?6:-1))},dependencies:[tr,oi],styles:[".search-input[_ngcontent-%COMP%]{position:relative;display:inline-block}.search-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%;padding-left:24px;padding-right:24px}.filter[_ngcontent-%COMP%]{position:absolute;top:0;left:0}.filter[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{color:#a9a9a9;padding:4px}.clear[_ngcontent-%COMP%]{position:absolute;top:0;right:0}.clear[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{cursor:pointer;color:#a9a9a9;padding:4px}.clear[_ngcontent-%COMP%]:hover   .material-icons[_ngcontent-%COMP%]{color:#000}"],changeDetection:0})}}return n})(),Jue=(()=>{class n{constructor(){this.placeholder=Ve("Filter"),this.width=Ve("100%"),this.debounceTime=Ve(400),this.expanded=Ve(!1),this.completions=Ve(),this.dirty=di(!1),this.typedValue=ml(),this.empty=di(!1),this.onelineFilterInput=pg("oneline"),this.errorState$=new Ee(null),this.onChange=r=>{},this.formControl=new va(null),this.subscriptions=[];let e=this.formControl.valueChanges.subscribe(r=>{this.empty.set(!!r),this.dirty.set((this.value||"")!==(r||""))});this.subscriptions.push(e);let i=this.formControl.valueChanges.pipe(sn(this.debounceTime())).subscribe(r=>{this.typedValue.emit(r||"")});this.subscriptions.push(i)}getTypedValue(){return this.formControl.value}addErrorMark(e,i){this.errorState$.next({message:e,context:i})}clearErrorMark(){this.errorState$.next(null)}getValue(){return this.formControl.value}writeValue(e){this.value=e??null,this.formControl.setValue(this.value)}registerOnChange(e){this.onChange=e}registerOnTouched(e){}doSearch(){this.errorState$.value||(this.value=this.formControl.value??"",this.onChange(this.value),this.dirty.set(!1))}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe())}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ya-search-filter2"]],viewQuery:function(i,r){i&1&&yg(r.onelineFilterInput,vde,5),i&2&&bl()},inputs:{placeholder:[1,"placeholder"],width:[1,"width"],debounceTime:[1,"debounceTime"],expanded:[1,"expanded"],completions:[1,"completions"]},outputs:{typedValue:"typedValue"},standalone:!0,features:[de([{provide:$t,useExisting:Ye(()=>n),multi:!0}]),O],decls:9,vars:9,consts:[["multiline",""],["oneline",""],[1,"search-input"],[1,"query-container-and-error"],[3,"formControl","errorMark","completions"],["icon","search",3,"formControl","errorMark","placeholder","completions"],[1,"query-error"],["appearance","primary",3,"click","disabled"],["icon","search",3,"onEnter","formControl","errorMark","placeholder","completions"]],template:function(i,r){if(i&1&&(b(0,"div",2)(1,"div",3),U(2,yde,3,5,"ya-filter-textarea",4)(3,wde,3,6,"ya-filter-input",5)(4,Cde,2,1,"div",6),Wt(5,"async"),y(),b(6,"ya-button",7),Wt(7,"async"),F("click",function(){return r.doSearch()}),z(8," Search "),y()()),i&2){let o;wt("width",r.width()),w(2),Y(r.expanded()?2:3),w(2),Y((o=Xt(5,5,r.errorState$))?4:-1,o),w(2),q("disabled",!!Xt(7,7,r.errorState$))}},dependencies:[tr,Da,Sd,Nl,Ua,zU,zue],styles:[".search-input[_ngcontent-%COMP%]{position:relative;display:flex}.search-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{flex:1 1 auto;padding-left:24px;padding-right:24px}.query-container-and-error[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;position:relative}.query-error[_ngcontent-%COMP%]{color:var(--y-error-color)}"],changeDetection:0})}}return n})(),ehe=(()=>{class n{constructor(){this.active=!1,this.expanded=!1,this.toggle=new P}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ya-sidebar-nav-group"]],inputs:{label:"label",icon:"icon",svgIcon:"svgIcon",active:"active",expanded:"expanded"},outputs:{toggle:"toggle"},standalone:!0,features:[O],ngContentSelectors:ci,decls:7,vars:11,consts:[[1,"nav-item-group",3,"click"],[1,"arrow","icon16"],[1,"item-icon",3,"svgIcon"],[1,"nav-item-group-items"]],template:function(i,r){i&1&&(ge(),b(0,"mat-list-item",0),F("click",function(){return r.toggle.emit(!r.expanded)}),U(1,Dde,2,0,"mat-icon",1)(2,xde,2,0,"mat-icon",1),b(3,"mat-icon",2),z(4),y(),z(5),y(),U(6,Sde,2,0,"div",3)),i&2&&(Q("active",r.active)("expanded",r.expanded),w(),Y(r.expanded?1:2),w(2),Q("svg-icon",!!r.svgIcon),q("svgIcon",r.svgIcon),w(),ft(r.icon),w(),qe(" ",r.label,`
`),w(),Y(r.expanded?6:-1))},dependencies:[oi,lM],styles:[".nav-item-group[_ngcontent-%COMP%]{color:#fff!important;position:relative}.nav-item-group.active[_ngcontent-%COMP%]{background-color:#ffffff1a}.arrow[_ngcontent-%COMP%]{position:absolute;top:12px;left:0}.item-icon[_ngcontent-%COMP%]{padding-right:16px}.item-icon.svg-icon[_ngcontent-%COMP%]{height:18px;width:18px;padding-left:3px}.item-icon.material-icons[_ngcontent-%COMP%]{font-size:18px!important;height:24px!important;width:24px!important;line-height:24px;text-align:center}.nav-item-group-items[_ngcontent-%COMP%]{margin-right:20px;overflow:hidden}.mat-mdc-list-item[_ngcontent-%COMP%]:hover, .mat-mdc-list-item[_ngcontent-%COMP%]:focus{background-color:#ffffff1a!important}"],changeDetection:0})}}return n})(),the=(()=>{class n{constructor(){this.exact=!1,this.subitem=!1}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ya-sidebar-nav-item"]],inputs:{routerLink:"routerLink",queryParams:"queryParams",exact:"exact",subitem:"subitem",color:"color"},standalone:!0,features:[O],ngContentSelectors:ci,decls:3,vars:9,consts:[["mat-list-item","","routerLinkActive","link-active",3,"routerLinkActiveOptions","routerLink","queryParams"],[2,"display","inline-block","width","60px"]],template:function(i,r){i&1&&(ge(),b(0,"a",0),U(1,Ede,1,0,"div",1),Z(2),y()),i&2&&(wt("color",r.color?r.color+" !important":void 0),Q("subitem",r.subitem),q("routerLinkActiveOptions",r.exact?qR(8,kde):!1)("routerLink",r.routerLink)("queryParams",r.queryParams),w(),Y(r.subitem?1:-1))},dependencies:[lM,hh,kF],styles:["a.subitem[_ngcontent-%COMP%]{border-top-right-radius:25px;border-bottom-right-radius:25px}a.subitem.mat-mdc-list-item[_ngcontent-%COMP%]{height:32px}[_nghost-%COMP%]:focus{outline:none}  .item-icon{padding-right:16px}  .item-icon.material-icons{font-size:18px!important;height:24px!important;width:24px!important;line-height:24px;text-align:center}  .mat-mdc-nav-list{padding:4px 0}.mat-mdc-list-item[_ngcontent-%COMP%]:hover, .mat-mdc-list-item[_ngcontent-%COMP%]:focus{background-color:#ffffff1a!important}.mat-mdc-list-item.link-active[_ngcontent-%COMP%], .mat-mdc-list-item.link-active[_ngcontent-%COMP%]:hover, .mat-mdc-list-item.link-active[_ngcontent-%COMP%]:focus{background-color:#009e87!important}  .mdc-list-item__primary-text{display:flex;align-items:center;flex-direction:row}  .mdc-list-item.mdc-list-item--with-one-line{height:40px}  .mat-mdc-list-item .mdc-list-item__primary-text{color:#fff!important;font-size:12px}"],changeDetection:0})}}return n})(),zLe=(()=>{class n{constructor(){this.label=Ve.required(),this.visible=Ve(!0),this.expanded=ER(!1)}toggle(){this.expanded.set(!this.expanded())}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ya-stepper-step"]],inputs:{label:[1,"label"],visible:[1,"visible"],expanded:[1,"expanded"]},outputs:{expanded:"expandedChange"},standalone:!0,features:[O],ngContentSelectors:ci,decls:6,vars:6,consts:[[1,"stepper-step"],[1,"header",3,"click"],[1,"bullet"],[1,"title"],[1,"content-box"],[1,"content"]],template:function(i,r){i&1&&(ge(),b(0,"div",0)(1,"div",1),F("click",function(){return r.toggle()}),ie(2,"div",2),b(3,"div",3),z(4),y()(),U(5,Ide,3,0,"div",4),y()),i&2&&(Q("hidden",!r.visible()),w(),Q("expanded",r.expanded()),w(3),ft(r.label()),w(),Y(r.expanded()?5:-1))},styles:[".stepper-step.hidden[_ngcontent-%COMP%]{display:none}.header[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;padding-left:24px}.header[_ngcontent-%COMP%]:hover{background-color:#eee}.header[_ngcontent-%COMP%]   .bullet[_ngcontent-%COMP%], .header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{height:28px;font-size:15px;line-height:28px}.header[_ngcontent-%COMP%]   .bullet[_ngcontent-%COMP%]{background-color:#d3d3d3;width:8px;height:8px;border-radius:50%}.header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{margin-left:20px;padding:6px 0}.header.expanded[_ngcontent-%COMP%]   .bullet[_ngcontent-%COMP%]{background-color:#000000a7}.content-box[_ngcontent-%COMP%]{border-left:1px solid #d3d3d3;padding-bottom:12px;margin-left:27px}.content[_ngcontent-%COMP%]{padding-left:24px}"],changeDetection:0})}}return n})(),HLe=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ya-stepper"]],standalone:!0,features:[O],ngContentSelectors:ci,decls:1,vars:0,template:function(i,r){i&1&&(ge(),Z(0))},styles:["[_nghost-%COMP%]{display:block;margin-left:-24px}"],changeDetection:0})}}return n})(),ihe=(()=>{class n{constructor(){this.formControl=new va(!1),this.preferenceStore=C(SU)}ngOnInit(){if(this.preferenceKey){this.preferenceStore.addPreference$(this.preferenceKey,!1);let e=this.preferenceStore.getValue(this.preferenceKey);this.formControl.setValue(e),this.formControl.valueChanges.subscribe(i=>{this.preferenceStore.setValue(this.preferenceKey,i)})}}get checked(){return this.formControl.value??!1}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ya-table-toggle"]],inputs:{preferenceKey:"preferenceKey"},standalone:!0,features:[O],ngContentSelectors:ci,decls:2,vars:2,consts:[[1,"ya-table-toggle",3,"formControl","disableRipple"]],template:function(i,r){i&1&&(ge(),b(0,"mat-slide-toggle",0),Z(1),y()),i&2&&q("formControl",r.formControl)("disableRipple",!0)},dependencies:[ky,Da,Sd,Nl],styles:[".ya-table-toggle.mat-mdc-slide-toggle .mdc-label{font-size:12px!important}"],changeDetection:0})}}return n})(),nhe=(()=>{class n{constructor(){this.icon=Ve("auto"),this.severity=Ve("info")}get error(){return this.severity()==="error"}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ya-table-top"]],hostVars:2,hostBindings:function(i,r){i&2&&Q("error",r.error)},inputs:{icon:[1,"icon"],severity:[1,"severity"]},standalone:!0,features:[O],ngContentSelectors:ci,decls:4,vars:1,consts:[[1,"icon14"]],template:function(i,r){i&1&&(ge(),b(0,"mat-icon",0),U(1,Ade,2,1)(2,Ode,1,1),y(),Z(3)),i&2&&(w(),Y(r.icon()==="auto"?1:2))},dependencies:[oi],styles:["[_nghost-%COMP%]{background-color:#e6f1ef;color:var(--y-accent);border:1px solid var(--y-border-color);border-bottom:0;padding-left:8px;padding-right:8px;height:26px;display:flex;align-items:center}.error[_nghost-%COMP%]{background-color:#fcc;color:var(--y-error-color)}[_nghost-%COMP%] > mat-icon[_ngcontent-%COMP%]{margin-right:4px}"]})}}return n})(),rhe=(()=>{class n{constructor(){this.control=new kd(null),this.onChange=e=>{},this.tags$=new Ee([])}addTag(){let e=this.control.value;if(e){let i=[...this.tags$.value];i.indexOf(e)===-1&&i.push(e),i.sort(),this.tags$.next(i)}this.control.setValue(""),this.onChange(this.tags$.value)}removeTag(e){let i=[...this.tags$.value],r=i.indexOf(e);r!==-1&&i.splice(r,1),this.tags$.next(i),this.onChange(i)}writeValue(e){if(e){let i=e;this.tags$.next(i)}else this.tags$.next([])}registerOnChange(e){this.onChange=e}registerOnTouched(e){}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ya-tag-select"]],standalone:!0,features:[de([{provide:$t,useExisting:Ye(()=>n),multi:!0}]),O],decls:6,vars:5,consts:[[1,"tag-select"],["type","text","placeholder","my-tag",2,"width","120px",3,"keydown.enter","formControl"],[3,"click","disabled"],[1,"tag-icon",3,"click"]],template:function(i,r){if(i&1&&(b(0,"div",0),U(1,Fde,3,1),Wt(2,"async"),b(3,"input",1),F("keydown.enter",function(s){return r.addTag(),s.preventDefault()}),y(),b(4,"ya-button",2),F("click",function(){return r.addTag()}),z(5,"Add"),y()()),i&2){let o;w(),Y((o=Xt(2,3,r.tags$))?1:-1,o),w(2),q("formControl",r.control),w(),q("disabled",!r.control.value)}},dependencies:[tr,oi,Da,B_,Sd,Nl,Ua,sT],styles:[".tag-select[_ngcontent-%COMP%]{display:flex;align-items:center}.tag-select[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{margin-right:5px}.tag-icon[_ngcontent-%COMP%]{vertical-align:middle;font-size:12px!important;line-height:16px;height:16px;width:16px;color:gray;cursor:pointer}.tag-icon[_ngcontent-%COMP%]:hover{color:inherit}"],changeDetection:0})}}return n})(),ohe=["Africa/Abidjan","Africa/Algiers","Africa/Bissau","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/El_Aaiun","Africa/Johannesburg","Africa/Juba","Africa/Khartoum","Africa/Lagos","Africa/Maputo","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Sao_Tome","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Asuncion","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Boa_Vista","America/Bogota","America/Boise","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Cayenne","America/Chicago","America/Chihuahua","America/Ciudad_Juarez","America/Costa_Rica","America/Cuiaba","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Fort_Nelson","America/Fortaleza","America/Glace_Bay","America/Goose_Bay","America/Grand_Turk","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Inuvik","America/Iqaluit","America/Jamaica","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/La_Paz","America/Lima","America/Los_Angeles","America/Maceio","America/Managua","America/Manaus","America/Martinique","America/Matamoros","America/Mazatlan","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/New_York","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Nuuk","America/Ojinaga","America/Panama","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Sitka","America/St_Johns","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Tijuana","America/Toronto","America/Vancouver","America/Whitehorse","America/Winnipeg","America/Yakutat","Antarctica/Casey","Antarctica/Davis","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/Palmer","Antarctica/Rothera","Antarctica/Troll","Antarctica/Vostok","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Atyrau","Asia/Baghdad","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Chita","Asia/Choibalsan","Asia/Colombo","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kathmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuching","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Riyadh","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Urumqi","Asia/Ust-Nera","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faroe","Atlantic/Madeira","Atlantic/South_Georgia","Atlantic/Stanley","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/Perth","Australia/Sydney","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belgrade","Europe/Berlin","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Chisinau","Europe/Dublin","Europe/Gibraltar","Europe/Helsinki","Europe/Istanbul","Europe/Kaliningrad","Europe/Kirov","Europe/Kyiv","Europe/Lisbon","Europe/London","Europe/Madrid","Europe/Malta","Europe/Minsk","Europe/Moscow","Europe/Paris","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/Saratov","Europe/Simferopol","Europe/Sofia","Europe/Tallinn","Europe/Tirane","Europe/Ulyanovsk","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zurich","Indian/Chagos","Indian/Maldives","Indian/Mauritius","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Easter","Pacific/Efate","Pacific/Fakaofo","Pacific/Fiji","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Kanton","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Marquesas","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","UTC"],she=(()=>{class n{constructor(e){this.changeDetection=e,this.areaOptions=[],this.areaControl=new kd,this.locationControl=new kd,this.locationOptionsByArea={},this.locationOptions$=new Ee([]),this.sublocationControl=new kd,this.sublocationOptionsByLocation={},this.sublocationOptions$=new Ee([]),this.onChange=i=>{},this.processTznames(),this.areaControl.valueChanges.subscribe(()=>{let i=this.areaControl.value||null;if(this.hasLocations(i)){let r=this.locationOptionsByArea[i];this.locationOptions$.next(r),this.locationControl.setValue(r[0].id)}else this.locationOptions$.next([]),this.sublocationOptions$.next([]),this.onChange(i)}),this.locationControl.valueChanges.subscribe(()=>{let i=this.areaControl.value||null;if(i){let r=this.locationControl.value;if(r)if(this.hasSublocations(r)){let o=this.sublocationOptionsByLocation[r];this.sublocationOptions$.next(o),this.sublocationControl.setValue(o[0].id)}else this.sublocationOptions$.next([]),this.onChange(`${i}/${r}`);else this.onChange(null)}else this.onChange(null)}),this.sublocationControl.valueChanges.subscribe(()=>{let i=this.areaControl.value||null,r=this.locationControl.value||null,o=this.sublocationControl.value||null;this.onChange(o?`${i}/${r}/${o}`:null)})}processTznames(){let e=[],i=[];for(let r of ohe){let o=r.indexOf("/");if(o===-1)e.push(r),this.areaOptions.push({id:r,label:r});else{let s=r.substring(0,o);e.indexOf(s)===-1&&(e.push(s),this.areaOptions.push({id:s,label:s}),this.locationOptionsByArea[s]=[]);let a=r.substring(o+1);if(o=a.indexOf("/"),o===-1)this.locationOptionsByArea[s].push({id:a,label:a});else{let l=a.substring(o+1);a=a.substring(0,o),i.indexOf(a)===-1&&(i.push(a),this.locationOptionsByArea[s].push({id:a,label:a}),this.sublocationOptionsByLocation[a]=[]),this.sublocationOptionsByLocation[a].push({id:l,label:l})}}}}hasLocations(e){return e&&e in this.locationOptionsByArea}hasSublocations(e){return e&&e in this.sublocationOptionsByLocation}writeValue(e){if(e){let i=e.split("/",3);this.areaControl.setValue(i[0]),i.length>1&&this.locationControl.setValue(i[1]),i.length>2&&this.sublocationControl.setValue(i[2]),this.onChange(e)}else this.areaControl.setValue(null),this.locationControl.setValue(null),this.sublocationControl.setValue(null),this.onChange(null);this.changeDetection.detectChanges()}registerOnChange(e){this.onChange=e}registerOnTouched(e){}static{this.\u0275fac=function(i){return new(i||n)(p(_e))}}static{this.\u0275cmp=A({type:n,selectors:[["ya-timezone-select"]],standalone:!0,features:[de([{provide:$t,useExisting:Ye(()=>n),multi:!0}]),O],decls:6,vars:8,consts:[[2,"display","inline-block"],[3,"options","formControl"]],template:function(i,r){i&1&&(b(0,"div",0),ie(1,"ya-select",1),y(),U(2,Nde,4,4,"div",0),Wt(3,"async"),U(4,Lde,4,4,"div",0),Wt(5,"async")),i&2&&(w(),q("options",r.areaOptions)("formControl",r.areaControl),w(),Y(Xt(3,4,r.locationOptions$).length?2:-1),w(2),Y(Xt(5,6,r.sublocationOptions$).length?4:-1))},dependencies:[tr,Da,Sd,Nl,oT],encapsulation:2,changeDetection:0})}}return n})(),gU="Copy to clipboard",ahe=(()=>{class n{constructor(e){this.clipboard=e,this.tooltip$=new Ee(gU)}doCopy(){this.clipboard.copy(this.text)?this.tooltip$.next("Copied!"):this.tooltip$.next("Copy failed!"),this.tooltip.show(),setTimeout(()=>{this.tooltip.hide(),this.tooltip$.next(gU)},1500)}static{this.\u0275fac=function(i){return new(i||n)(p(eH))}}static{this.\u0275cmp=A({type:n,selectors:[["ya-title-copy"]],viewQuery:function(i,r){if(i&1&&le(Vde,5),i&2){let o;B(o=$())&&(r.tooltip=o.first)}},inputs:{text:"text"},standalone:!0,features:[O],decls:4,vars:3,consts:[["tooltip","matTooltip"],[1,"icon14","title-copy",3,"click","matTooltip"]],template:function(i,r){if(i&1){let o=ye();b(0,"mat-icon",1,0),Wt(2,"async"),F("click",function(){return N(o),L(r.doCopy())}),z(3,"content_paste"),y()}i&2&&q("matTooltip",Xt(2,1,r.tooltip$))},dependencies:[tr,oi,ka],styles:[".title-copy[_ngcontent-%COMP%]{margin-left:10px;cursor:pointer;user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none}.title-copy[_ngcontent-%COMP%]:hover{color:#1b61b9}"],changeDetection:0})}}return n})();var lhe=(()=>{class n{constructor(e){this.formatter=e}transform(e,i){return e?this.formatter.formatValue(e,i):null}static{this.\u0275fac=function(i){return new(i||n)(p(Ky,16))}}static{this.\u0275pipe=rt({name:"value",type:n,pure:!0,standalone:!0})}}return n})(),che=20,ULe=(()=>{class n{constructor(){this.alwaysExpand=!1,this.nodes$=new Ee([]),this.collapsed$=new Ee(!0)}ngOnChanges(){let{value:e}=this;if(!e){this.nodes$.next([]);return}let i=[];this.processValue(e,this.alwaysExpand,i),this.nodes$.next(i)}processValue(e,i,r,o){let s={margin:o?o.margin+che:0,parent:o,expanded:i,value:e};return r.push(s),e.type==="AGGREGATE"?s.children=this.processAggregateValue(e.aggregateValue,r,s):e.type==="ARRAY"&&(s.children=this.processArrayValue(e.arrayValue||[],r,s)),s}processArrayValue(e,i,r){let o=[];for(let s=0;s{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ya-warning-message"]],standalone:!0,features:[O],ngContentSelectors:ci,decls:6,vars:0,consts:[[1,"panel"],[1,"icon"]],template:function(i,r){i&1&&(ge(),b(0,"div",0)(1,"div",1)(2,"mat-icon"),z(3,"warning"),y()(),b(4,"div"),Z(5),y()())},dependencies:[oi],styles:[".panel[_ngcontent-%COMP%]{background-color:#fcc;color:var(--y-error-color);display:flex;align-items:center;margin-top:1em;border:1px solid rgba(0,0,0,.1)}.panel[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{padding:10px}.panel[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{vertical-align:middle}"]})}}return n})(),WLe=(()=>{class n{constructor(){this.applyClass=!0}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["table","yaDataTable",""]],hostVars:2,hostBindings:function(i,r){i&2&&Q("ya-data-table",r.applyClass)},standalone:!0,features:[O],attrs:Xde,ngContentSelectors:ci,decls:1,vars:0,template:function(i,r){i&1&&(ge(),Z(0))},styles:[`table.ya-data-table{border-spacing:0;border-collapse:collapse;border-top:1px solid rgba(0,0,0,.1)}.ya-data-table th,.ya-data-table td{font-size:12px;line-height:16px;padding:4px 8px 4px 0}.ya-data-table th{text-align:left;font-weight:500;color:#000000a7;border-bottom:1px solid rgba(0,0,0,.1)}.ya-data-table th.lcolumn{border-bottom:1px solid rgba(0,0,0,.1)}.ya-data-table td{color:#000000a7;border-bottom:1px solid rgba(0,0,0,.1);background-color:#fff}.ya-data-table td.wrap200{min-width:200px;white-space:normal;word-break:break-word}
`],encapsulation:2,changeDetection:0})}}return n})(),YLe=(()=>{class n{constructor(){this.applyClass=!0}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=A({type:n,selectors:[["table","yaSimpleTable",""]],hostVars:2,hostBindings:function(i,r){i&2&&Q("ya-simple-table",r.applyClass)},standalone:!0,features:[O],attrs:Jde,ngContentSelectors:ci,decls:1,vars:0,template:function(i,r){i&1&&(ge(),Z(0))},styles:[`table.ya-simple-table{width:100%;overflow:auto;border-spacing:0;border-collapse:collapse}.ya-simple-table th,.ya-simple-table td{border-top:1px solid rgba(0,0,0,.03);border-bottom:1px solid rgba(0,0,0,.03)}.ya-simple-table th{background-color:var(--y-background-color);text-align:left;font-weight:500;color:#000;width:150px;vertical-align:top}
`],encapsulation:2,changeDetection:0})}}return n})();var qLe=(()=>{class n{transform(e,i){if(!e?.alias?.length&&!e?.aliases)return null;for(let r of e?.alias||[])if(r.namespace===i)return r.name;return e.aliases?.hasOwnProperty(i)?e.aliases[i]:null}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275pipe=rt({name:"alias",type:n,pure:!0,standalone:!0})}}return n})(),GLe=(()=>{class n{transform(e,i){return e?e.indexOf(i)!==-1:!1}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275pipe=rt({name:"arrayContains",type:n,pure:!0,standalone:!0})}}return n})(),QLe=(()=>{class n{transform(e){return RU(e)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275pipe=rt({name:"basename",type:n,pure:!0,standalone:!0})}}return n})(),KLe=(()=>{class n{transform(e){if(!e)return null;let i=e.lastIndexOf(".");if(i===-1)return e;{let r=e.substring(0,i+1),o=e.substring(i+1);return`${r}${o}`}}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275pipe=rt({name:"classNameHtml",type:n,pure:!0,standalone:!0})}}return n})(),uhe=["bps","kbps","Mbps","Gbps","Tbps"],ZLe=(()=>{class n{transform(e,i=1){let r=Number(e);if(r===0)return"0 bps";if(!e)return null;let o=Math.floor(Math.log(r)/Math.log(1e3));return parseFloat((r/Math.pow(1e3,o)).toFixed(i))+" "+uhe[o]}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275pipe=rt({name:"dataRate",type:n,pure:!0,standalone:!0})}}return n})(),XLe=(()=>{class n{constructor(e){this.formatter=e}transform(e,i=!0){return e?this.formatter.formatDateTime(e,i):null}static{this.\u0275fac=function(i){return new(i||n)(p(Ky,16))}}static{this.\u0275pipe=rt({name:"datetime",type:n,pure:!0,standalone:!0})}}return n})(),JLe=(()=>{class n{transform(e){if(!e)return null;for(let i of e.processors||[])if(i.persistent&&!i.replay)return i.name;return null}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275pipe=rt({name:"defaultProcessor",type:n,pure:!0,standalone:!0})}}return n})(),e2e=(()=>{class n{transform(e,i,r=!0){if(!i||!e)return null;let o=uc(i),a=uc(e).getTime()-o.getTime(),l=r?a>=0?"+":"-":"";a=Math.abs(a);let c=Math.floor(a/1e3),d=Math.floor(c/3600),u=Math.floor((c-d*3600)/60),h=c-d*3600-u*60,f=a%1e3,m=Math.floor(d/24),g=Math.floor(m/365);return g?g===1?`${l}1 year`:`${l}${g} years`:m?m===1?`${l}1 day`:`${l}${m} days`:d?u?`${l}${d}h ${u}m`:`${l}${d}h`:u?h?`${l}${u}m ${h}s`:`${l}${u} min`:h?`${l}${h} s`:`${l}${f} ms`}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275pipe=rt({name:"deltaWith",type:n,pure:!0,standalone:!0})}}return n})(),t2e=(()=>{class n{transform(e){if(e==null)return null;let i=!isNaN(e)&&Number.isInteger(parseFloat(e));typeof e=="string"&&!i&&(e=IU(e));let r=Math.floor(e/1e3),o=Math.floor(r/86400),s=Math.floor((r-o*86400)/3600),a=Math.floor((r-o*86400-s*3600)/60),l=r-o*86400-s*3600-a*60;return o?s?`${o}d ${s}h`:`${o}d`:s?a?`${s}h ${a}m`:`${s}h`:a?l?`${a}m ${l}s`:`${a}m`:`${l}s`}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275pipe=rt({name:"duration",type:n,pure:!0,standalone:!0})}}return n})(),i2e=(()=>{class n{transform(e,i){return NU(e,i)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275pipe=rt({name:"entryForOffset",type:n,pure:!0,standalone:!0})}}return n})(),n2e=(()=>{class n{transform(e){return FU(e)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275pipe=rt({name:"extension",type:n,pure:!0,standalone:!0})}}return n})(),r2e=(()=>{class n{transform(e){return PU(e)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275pipe=rt({name:"filename",type:n,pure:!0,standalone:!0})}}return n})(),hhe=["bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],o2e=(()=>{class n{transform(e,i=2){let r=Number(e);if(r===0)return"0 bytes";if(!e)return null;let o=Math.floor(Math.log(r)/Math.log(1024));return parseFloat((r/Math.pow(1024,o)).toFixed(i))+" "+hhe[o]}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275pipe=rt({name:"formatBytes",type:n,pure:!0,standalone:!0})}}return n})(),s2e=(()=>{class n{constructor(e){this.formatter=e}transform(e){return e?this.formatter.formatHexDump(e):null}static{this.\u0275fac=function(i){return new(i||n)(p(Ky,16))}}static{this.\u0275pipe=rt({name:"hexDump",type:n,pure:!0,standalone:!0})}}return n})();var a2e=(()=>{class n{transform(e){return e?e.hasSystemPrivilege("web.AccessAdminArea"):!1}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275pipe=rt({name:"mayAccessAdminArea",type:n,pure:!0,standalone:!0})}}return n})(),l2e=(()=>{class n{transform(e){return OU(e)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275pipe=rt({name:"memberPath",type:n,pure:!0,standalone:!0})}}return n})(),c2e=(()=>{class n{transform(e){if(e==null)return null;e=Math.floor(e);let i=Math.floor(e/1e3),r=Math.floor(i/3600),o=Math.floor((i-r*3600)/60),s=i-r*3600-o*60,a=e-i*1e3;return r?o?`${r}h ${o}m`:`${r}h`:o?s?`${o}m ${s}s`:`${o}m`:s?a?`${s}s ${a}ms`:`${s}s`:`${a}ms`}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275pipe=rt({name:"millisDuration",type:n,pure:!0,standalone:!0})}}return n})(),d2e=(()=>{class n{transform(e){if(e==null)return null;e=Math.floor(e);let i=Math.floor(e/1e3/1e3/1e3),r=Math.floor(i/3600),o=Math.floor((i-r*3600)/60),s=i-r*3600-o*60,a=e-i*1e3*1e3*1e3;if(r)return o?`${r}h ${o}m`:`${r}h`;if(o)return s?`${o}m ${s}s`:`${o}m`;{let l=TU(a,9);return`${s}.${l} s`}}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275pipe=rt({name:"nanosDuration",type:n,pure:!0,standalone:!0})}}return n})(),u2e=(()=>{class n{transform(e,i){return e??i}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275pipe=rt({name:"nvl",type:n,pure:!0,standalone:!0})}}return n})(),h2e=(()=>{class n{transform(e){if(!e)return null;switch(e){case"EQUAL_TO":return"==";case"NOT_EQUAL_TO":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL_TO":return">=";case"SMALLER_THAN":return"<";case"SMALLER_THAN_OR_EQUAL_TO":return"<=";default:return e}}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275pipe=rt({name:"operator",type:n,pure:!0,standalone:!0})}}return n})(),f2e=(()=>{class n{transform(e,i){return LU(e,i)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275pipe=rt({name:"parameterTypeForPath",type:n,pure:!0,standalone:!0})}}return n})(),m2e=(()=>{class n{transform(e){if(!e)return null;if(e.lastIndexOf("/")===-1)return[];{let r=e.split("/");r.length>1&&r.splice(r.length-1,1);let o=[],s="";for(let a=0;a{class n{transform(e){return e&&this.doPrint(e)}doPrint(e){if(typeof e=="number")return""+e;if(typeof e=="boolean")return""+e;if(typeof e=="string")return e;{let i=[];for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],s=`${r}:`;if(Array.isArray(o)){i.push(s+"[");for(let a of o)i.push(this.doPrint(o));i.push("]")}else typeof o=="object"?(i.push(s),i.push(this.doPrint(o))):i.push(`${s} ${o}`)}return i.join("")}}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275pipe=rt({name:"printObj",type:n,pure:!0,standalone:!0})}}return n})();var g2e=(()=>{class n{transform(e){if(!e)return null;let i=e.lastIndexOf("/");return i===-1?e:e.substring(i+1)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275pipe=rt({name:"shortName",type:n,pure:!0,standalone:!0})}}return n})(),_2e=(()=>{class n{transform(e){if(!e)return null;let i=e.lastIndexOf("/");return i===-1?"":e.substring(0,i)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275pipe=rt({name:"spaceSystemName",type:n,pure:!0,standalone:!0})}}return n})(),b2e=(()=>{class n{transform(e,i){return!i||!e?null:`ys://${i}/${e}`}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275pipe=rt({name:"storageUrl",type:n,pure:!0,standalone:!0})}}return n})(),v2e=(()=>{class n{transform(e){return e==null?null:qy(e)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275pipe=rt({name:"tovalue",type:n,pure:!0,standalone:!0})}}return n})(),y2e=(()=>{class n{transform(e){return VU(e)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275pipe=rt({name:"units",type:n,pure:!0,standalone:!0})}}return n})(),_U=(()=>{class n{constructor(e){this.viewContainerRef=e}static{this.\u0275fac=function(i){return new(i||n)(p(ht))}}static{this.\u0275dir=M({type:n,selectors:[["","printable-host",""]],standalone:!0})}}return n})();var fhe=(()=>{class n{constructor(){this.printOrders$=new k}printComponent(e,i,r){this.printOrders$.next({componentType:e,title:i,data:r})}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),w2e=(()=>{class n{constructor(e){this.printService=e,this.printService.printOrders$.subscribe(i=>{this.createAndPrint(i.componentType,i.title,i.data)})}createAndPrint(e,i,r){let o=this.printableHost.viewContainerRef;o.clear();let s=o.createComponent(e);s.instance.pageTitle=i,s.instance.data=r,s.changeDetectorRef.detectChanges();let a=document.getElementsByClassName("printable");for(let u=0;u
`),c.write(`
`),c.write(`
      
    `),c.write(`
`),c.write(`
`);let d=this.printableContent.nativeElement;c.write(d.innerHTML),c.write(`
`),c.write(`
`),c.close()}static{this.\u0275fac=function(i){return new(i||n)(p(fhe))}}static{this.\u0275cmp=A({type:n,selectors:[["ya-print-zone"]],viewQuery:function(i,r){if(i&1&&(le(eue,7),le(_U,7)),i&2){let o;B(o=$())&&(r.printableContent=o.first),B(o=$())&&(r.printableHost=o.first)}},standalone:!0,features:[O],decls:3,vars:0,consts:[["wrapper",""],["printable-host",""]],template:function(i,r){i&1&&(b(0,"div",null,0),U(2,tue,0,0,"ng-template",1),y())},dependencies:[_U],styles:["[_nghost-%COMP%]{display:none}"],changeDetection:0})}}return n})(),um=(()=>{class n{constructor(e,i,r,o){this.router=i,this.messageService=r,this.configService=o,this.connectionInfo$=new Ee(null),this.clearance$=new Ee(null),this.time$=new Ee(null),this.range$=new Ee("PT15M"),this.sessionEnded$=new Ee(!1),this.yamcsClient=new ZM(e,this,this)}onFrameLoss(){this.messageService.showWarning("A gap was detected in one of the data feeds. Typically this occurs when data is fastly updating.")}onSessionEnd(e){this.sessionEnded$.next(!0)}setContext(e,i){return i?this.setProcessorContext(e,i):this.setInstanceContext(e)}async switchContext(e,i){let r=e;if(i)r+="__"+i;else{let o=await this.yamcsClient.getInstance(e),s=AU(o);s&&(r+="__"+s)}this.router.navigate(["/context-switch",r,this.router.url],{skipLocationChange:!0})}setInstanceContext(e){return new Promise((i,r)=>{let o=this.connectionInfo$.value;if(o&&o.instance?.name===e){i();return}this.clearContext(),this.yamcsClient.getInstance(e).then(s=>{this.connectionInfo$.next({instance:s}),this.time$.next(s.missionTime),this.timeSubscription=this.yamcsClient.createTimeSubscription({instance:s.name},a=>{this.time$.next(a.value),i()}),this.clearanceSubscription=this.yamcsClient.createClearanceSubscription(a=>{this.clearance$.next(a),i()})}).catch(s=>{r(s)})})}setProcessorContext(e,i){return new Promise((r,o)=>{let s=this.connectionInfo$.value;if(s&&s.instance?.name===e&&s.processor?.name===i){r();return}this.clearContext(),Promise.all([this.yamcsClient.getInstance(e),this.yamcsClient.getProcessor(e,i),this.yamcsClient.getInstanceConfig(e)]).then(a=>{this.connectionInfo$.next({instance:a[0],processor:a[1]}),this.time$.next(a[1].time),this.configService.setInstanceConfig(a[2]),this.timeSubscription=this.yamcsClient.createTimeSubscription({instance:e,processor:i},l=>{this.time$.next(l.value),r()}),this.clearanceSubscription=this.yamcsClient.createClearanceSubscription(l=>{this.clearance$.next(l),r()})}).catch(a=>{o(a)})})}get context(){let e=this.connectionInfo$.getValue();if(e){let i=e.processor?.name;return i?`${e.instance.name}__${i}`:e.instance.name}}get instance(){return this.connectionInfo$.getValue()?.instance?.name}get processor(){return this.connectionInfo$.getValue()?.processor?.name}clearContext(){this.connectionInfo$.next(null),this.time$.next(null),this.clearance$.next(null),this.timeSubscription?.cancel(),this.clearanceSubscription?.cancel()}getProcessor(){return this.connectionInfo$.getValue().processor}createStorageClient(){return new GM(this.yamcsClient)}getMissionTime(){return new Date(Date.parse(this.time$.getValue()))}getTimeRange(){return this.range$.value}static{this.\u0275fac=function(i){return new(i||n)(D(gs),D(bi),D(Qy),D(Wa))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),C2e=(()=>{class n{constructor(){this.configService=C(Wa),this.messageService=C(Qy),this.appearanceService=C(kU),this.router=C(bi),this.route=C(Oo),this.yamcs=C(um),this.extraNavItems=new Map}getExtraNavItems(e){return this.extraNavItems.get(e)||[]}addNavItem(e,i){let r=this.extraNavItems.get(e);r||(r=[],this.extraNavItems.set(e,r)),r.push(i)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),YM="favicon.ico",qM="favicon-notification.ico",D2e=(()=>{class n{showNotification(e){let i=document.querySelector('link[rel="shortcut icon"]');e&&i.href.indexOf(YM)!==-1?i.href=i.href.replace(YM,qM):!e&&i.href.indexOf(qM)!==-1&&(i.href=i.href.replace(qM,YM))}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),bU=class extends _d{constructor(t,e,i){super(e,i),this.tracker=t}matchNewValues(t){let e=[];for(let o of t)e.push(this.tracker(-1,o));let i=this.selected.map(o=>this.tracker(-1,o)),r=[];for(let o of t){let s=this.tracker(-1,o);i.indexOf(s)!==-1&&r.push(o)}this.clear(),r.length&&this.select(...r)}isSelected(t){let e=this.tracker(-1,t);for(let i of this.selected)if(e===this.tracker(-1,i))return!0;return!1}};function x2e(n){return n?Array.isArray(n)?n:[n]:[]}var Ha=class{constructor(t){this.userInfo=t}getName(){return this.userInfo.name}getEmail(){return this.userInfo.email}getDisplayName(){return this.userInfo.displayName}isSuperuser(){return this.userInfo.superuser||!1}getGroups(){return this.userInfo.groups||[]}getRoles(){return this.userInfo.roles||[]}getSystemPrivileges(){return this.userInfo.systemPrivileges||[]}getObjectPrivileges(){return this.userInfo.objectPrivileges||[]}hasSystemPrivilege(t){return this.userInfo.superuser?!0:this.getSystemPrivileges().indexOf(t)!==-1}hasObjectPrivilege(t,e){if(this.userInfo.superuser)return!0;for(let i of this.getObjectPrivileges())if(i.type===t){for(let r of i.objects)if(e.match(r))return!0}return!1}hasAnyObjectPrivilegeOfType(t){if(this.userInfo.superuser)return!0;for(let e of this.getObjectPrivileges())if(e.type===t)return!0;return!1}getClearance(){return this.userInfo.clearance}};var mhe=[Ti,cm,CM,FM,NM,bs,lS,aM,Kx,cM,Xx,Dx,VM,BM,dM,$M,Nx,zM,WM,rk,Gh],S2e=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=ae({type:n})}static{this.\u0275inj=se({imports:[Li,Da,ox,mhe,cue,Ua,due,Iue,Mue,Tue,Aue,Oue,Fue,zU,Hue,UU,dm,sT,Uue,que,Gue,Que,Kue,Zue,Xue,Jue,oT,ehe,the,ihe,nhe,rhe,HU,she,ahe,dhe,Li,Da,ox,Ti,cm,CM,FM,NM,bs,lS,aM,Kx,cM,Xx,Dx,VM,BM,dM,$M,Nx,zM,WM,rk,Gh]})}}return n})();var Zy=class n{constructor(t,e,i,r,o){this.yamcsService=t;this.configService=e;this.router=i;this.baseHref=r;this.user$=new Ee(null);this.authInfo=e.getAuthInfo(),this.logoutRedirectUrl=e.getConfig().logoutRedirectUrl,t.sessionEnded$.subscribe(a=>{a&&!this.authInfo.spnego&&this.logout(!0)}),t.yamcsClient.setHttpInterceptor(async(a,l,c)=>{let d;try{await this.loginAutomatically(),c=this.modifyRequest(c),d=await a.handle(l,c),d.status===401&&(this.clearCookie("access_token"),await this.loginAutomatically())}catch(u){throw u.name==="TypeError"?this.router.navigate(["/down"],{skipLocationChange:!0}):this.logout(!0),u}return d.status===401&&(c=this.modifyRequest(c),d=await a.handle(l,c)),d}),this.getCookie("access_token")&&(this.nextRefresh=new Date,this.nextRefresh.setTime(this.nextRefresh.getTime()+1e4)),this.syncSubscription=o.syncSlow(()=>{this.nextRefresh&&new Date().getTime()>=this.nextRefresh.getTime()&&(this.nextRefresh=null,this.loginAutomatically(!0))})}modifyRequest(t){let e=this.getCookie("access_token");return e&&(t?t.headers||(t.headers=new Headers):t={headers:new Headers},t.headers.append("Authorization",`Bearer ${e}`)),t}getUser(){return this.user$.value}async loginAutomatically(t=!1){if(!this.authInfo.requireAuthentication||this.configService.getDisableLoginForm()){if(!this.user$.value){let r=await fetch(`${this.baseHref}api/user`);this.user$.next(new Ha(await r.json()))}return}let e=this.getCookie("access_token"),i=this.getCookie("refresh_token");if(e&&!t){if(!this.user$.value){let r=new Headers;r.append("Authorization",`Bearer ${e}`);let o=await fetch(`${this.baseHref}api/user`,{headers:r});if(o.status===200){let s=new Ha(await o.json());this.user$.next(s)}else if(o.status===401){if(i){this.clearCookie("access_token");try{return await this.loginWithRefreshToken(i)}catch{console.log("Server refused our refresh token")}}return this.logout(!1),await this.loginAutomatically()}else return Promise.reject("Unexpected response when retrieving user info")}return this.extractClaims(this.getCookie("access_token"))}else if(i)try{return await this.loginWithRefreshToken(i)}catch{console.log("Server refused our refresh token"),this.logout(!1)}if(this.authInfo.spnego)try{return await this.loginWithSpnego()}catch{}throw this.logout(!0),new Error("Could not login automatically")}login(t,e){return this.yamcsService.yamcsClient.fetchAccessTokenWithPassword(t,e).then(i=>(this.updateLoginState(i),this.user$.next(new Ha(i.user)),this.extractClaims(i.access_token)))}loginWithAuthorizationCode(t){return this.yamcsService.yamcsClient.fetchAccessTokenWithAuthorizationCode(t).then(e=>(this.updateLoginState(e),this.user$.next(new Ha(e.user)),this.extractClaims(e.access_token)))}async loginWithSpnego(){let t=await fetch("/auth/spnego",{credentials:"include"});if(t.status===200){let e=(await t.text()).trim();return await this.loginWithAuthorizationCode(e)}else throw new Error("SPNEGO authentication failed")}loginWithRefreshToken(t){return this.yamcsService.yamcsClient.fetchAccessTokenWithRefreshToken(t).then(e=>(this.updateLoginState(e),this.user$.next(new Ha(e.user)),this.extractClaims(e.access_token)))}updateLoginState(t){let e=t.expires_in*1e3,i=new Date;i.setTime(i.getTime()+e);let r=`access_token=${encodeURIComponent(t.access_token)}`;r+=`; expires=${i.toUTCString()}`,r+=`; path=${this.getCookiePath()}`;let o=this.configService.getConfig().cookie;r+=`; SameSite=${o.sameSite}`,o.secure&&(r+="; Secure"),document.cookie=r,t.refresh_token&&(r=`refresh_token=${encodeURIComponent(t.refresh_token)}`,r+=`; path=${this.getCookiePath()}`,r+=`; SameSite=${o.sameSite}`,o.secure&&(r+="; Secure"),document.cookie=r),this.nextRefresh=new Date(i.getTime()-2e4)}logout(t){if(this.nextRefresh=null,this.clearCookie("access_token"),this.clearCookie("refresh_token"),this.yamcsService.clearContext(),this.user$.next(null),this.yamcsService.yamcsClient.closeWebSocketClient(),t){if(this.logoutRedirectUrl)window.location.href=this.logoutRedirectUrl;else if(!this.configService.getConfig().disableLoginForm){let e=this.buildOpenIDRedirectURI();window.location.href=this.buildRedirector({clientId:"yamcs-web",authorizationEndpoint:`${location.protocol}//${location.host}${this.baseHref}auth/authorize`,scope:"openid"},e)}}}buildOpenIDRedirectURI(){return`${location.protocol}//${location.host}${this.baseHref}cb`}buildServerSideOpenIDRedirectURI(){return`${location.protocol}//${location.host}${this.baseHref}oidc-browser-callback`}buildRedirector(t,e){let i=t.authorizationEndpoint;return i+=`?client_id=${encodeURIComponent(t.clientId)}`,i+="&response_mode=query",i+="&response_type=code",i+=`&scope=${encodeURIComponent(t.scope)}`,i+=`&redirect_uri=${encodeURIComponent(e)}`,i}extractClaims(t){let i=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/");return JSON.parse(window.atob(i))}getCookie(t){let i=("; "+document.cookie).split("; "+t+"=");if(i.length===2)return i.pop().split(";").shift()||void 0}clearCookie(t){let e=this.getCookiePath();e&&(this.clearCookieForPath(t,e),e!=="/"&&this.clearCookieForPath(t,"/"))}clearCookieForPath(t,e){let i=`${t}=; expires=Thu, 01 Jan 1970 00:00:00 GMT`;i+=`; path=${e}`;let r=this.configService.getConfig().cookie;i+=`; SameSite=${r.sameSite}`,r.secure&&(i+="; Secure"),document.cookie=i}getCookiePath(){if(this.baseHref==="/")return"/";if(this.baseHref.endsWith("/"))return this.baseHref.substring(0,this.baseHref.length-1)}ngOnDestroy(){this.syncSubscription?.unsubscribe()}static{this.\u0275fac=function(e){return new(e||n)(D(um),D(Wa),D(bi),D(gs),D(rT))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}};var G2e=(n,t)=>C(Xy).canActivate(n,t),Q2e=(n,t)=>C(Xy).canActivateChild(n,t),Xy=class n{constructor(t,e,i,r,o){this.baseHref=t;this.authService=e;this.yamcs=i;this.router=r;this.configService=o;this.authInfo=o.getAuthInfo()}async canActivate(t,e){try{return await this.authService.loginAutomatically(),this.yamcs.yamcsClient.prepareWebSocketClient(),!0}catch(i){if(i.name==="NetworkError"||i.name==="TypeError")return this.router.navigate(["/down"],{skipLocationChange:!0}),!1;if(this.configService.getConfig().logoutRedirectUrl?this.authService.logout(!0):this.authService.logout(!1),this.authInfo.openid){let r=this.authService.buildServerSideOpenIDRedirectURI();window.location.href=this.buildRedirector(this.authInfo.openid,r,e.url)}else if(!this.configService.getConfig().disableLoginForm){let r=this.authService.buildOpenIDRedirectURI();window.location.href=this.buildRedirector({clientId:"yamcs-web",authorizationEndpoint:`${location.protocol}//${location.host}${this.baseHref}auth/authorize`,scope:"openid"},r,e.url)}return!1}}async canActivateChild(t,e){return this.canActivate(t,e)}buildRedirector(t,e,i){let r=jU.toBase64URL(i),o=t.authorizationEndpoint;return o+=`?client_id=${encodeURIComponent(t.clientId)}`,o+=`&state=${r}`,o+="&response_mode=query",o+="&response_type=code",o+=`&scope=${encodeURIComponent(t.scope)}`,o+=`&redirect_uri=${encodeURIComponent(e)}`,o}static{this.\u0275fac=function(e){return new(e||n)(D(gs),D(Zy),D(um),D(bi),D(Wa))}}static{this.\u0275prov=T({token:n,factory:n.\u0275fac,providedIn:"root"})}};export{E as a,Pe as b,pe as c,Se as d,k as e,Ee as f,Ui as g,Lt as h,oe as i,Vs as j,qT as k,_3 as l,fe as m,go as n,_r as o,Ri as p,et as q,R3 as r,Ae as s,sn as t,pt as u,Ka as v,Jo as w,Br as x,L3 as y,yt as z,Rt as A,Ce as B,Et as C,Ye as D,T as E,se as F,I as G,D as H,C as I,yr as J,Ur as K,A as L,ae as M,M as N,rt as O,Hp as P,ze as Q,N as R,L as S,Yi as T,Vc as U,Xe as V,Oe as W,P as X,X as Y,Ve as Z,H as _,vr as $,Io as aa,pi as ba,rg as ca,og as da,i0e as ea,w as fa,p as ga,ct as ha,ht as ia,di as ja,pg as ka,ne as la,Ie as ma,U as na,re as oa,q as pa,wt as qa,Q as ra,ui as sa,WR as ta,Y as ua,Kn as va,qi as wa,Gi as xa,b as ya,y as za,ie as Aa,_g as Ba,bg as Ca,Qi as Da,ye as Ea,F as Fa,S as Ga,ge as Ha,Z as Ia,He as Ja,le as Ka,B as La,$ as Ma,yg as Na,bl as Oa,Zt as Pa,z as Qa,ft as Ra,qe as Sa,KY as Ta,ZY as Ua,de as Va,O as Wa,qR as Xa,GR as Ya,QR as Za,s0e as _a,a0e as $a,Wt as ab,Xt as bb,XR as cb,zC as db,vl as eb,Xn as fb,pq as gb,_e as hb,W as ib,gi as jb,Jn as kb,yl as lb,gs as mb,Mo as nb,$c as ob,I0e as pb,rD as qb,tr as rb,M0e as sb,T0e as tb,A0e as ub,O0e as vb,R0e as wb,P0e as xb,F0e as yb,Li as zb,sD as Ab,nwe as Bb,Ug as Cb,ra as Db,wl as Eb,rr as Fb,Oo as Gb,gG as Hb,bi as Ib,hh as Jb,kF as Kb,wwe as Lb,M9 as Mb,Cwe as Nb,T9 as Ob,Ne as Pb,aa as Qb,xt as Rb,ld as Sb,yi as Tb,gt as Ub,ha as Vb,Me as Wb,xx as Xb,Jr as Yb,Al as Zb,hd as _b,Ol as $b,JCe as ac,ma as bc,qt as cc,lt as dc,cN as ec,De as fc,_t as gc,at as hc,x_ as ic,S_ as jc,Vn as kc,$i as lc,Dn as mc,eo as nc,Th as oc,_d as pc,dt as qc,Fx as rc,$t as sc,D7 as tc,B_ as uc,Ji as vc,wa as wc,un as xc,Sd as yc,Rxe as zc,Fl as Ac,Pxe as Bc,va as Cc,kd as Dc,Nxe as Ec,Q7 as Fc,X7 as Gc,Nl as Hc,Ed as Ic,H_ as Jc,U_ as Kc,rK as Lc,JN as Mc,Lxe as Nc,Vxe as Oc,uK as Pc,fK as Qc,Cd as Rc,jxe as Sc,Bxe as Tc,oi as Uc,Kx as Vc,xa as Wc,dL as Xc,Cs as Yc,Hh as Zc,ka as _c,NEe as $c,Bn as ad,li as bd,ik as cd,nk as dd,ok as ed,G as fd,Tr as gd,Di as hd,Es as id,Re as jd,Ts as kd,hv as ld,fv as md,mv as nd,_v as od,Qe as pd,rn as qd,Rf as rd,ei as sd,ri as td,OB as ud,Zd as vd,HTe as wd,ao as xd,Mv as yd,te as zd,Jd as Ad,Dne as Bd,xne as Cd,Wo as Dd,Tv as Ed,Oi as Fd,eI as Gd,Av as Hd,WB as Id,tu as Jd,Ene as Kd,e1e as Ld,t1e as Md,i1e as Nd,Fv as Od,Fne as Pd,Nne as Qd,n1e as Rd,Lv as Sd,l$ as Td,Vv as Ud,ere as Vd,$v as Wd,Hv as Xd,qv as Yd,m1e as Zd,ay as _d,cy as $d,Noe as ae,k1e as be,Loe as ce,E1e as de,fy as ee,my as fe,gy as ge,Kf as he,yy as ie,H1e as je,ZI as ke,Pz as le,Vz as me,Cy as ne,im as oe,sM as pe,nm as qe,qz as re,Qz as se,Kz as te,Zz as ue,eOe as ve,ky as we,eH as xe,vH as ye,jOe as ze,BOe as Ae,$Oe as Be,Vy as Ce,jy as De,By as Ee,dc as Fe,am as Ge,lm as He,$y as Ie,BRe as Je,Wae as Ke,_le as Le,VH as Me,Tle as Ne,Ale as Oe,Fle as Pe,pFe as Qe,AFe as Re,OFe as Se,RFe as Te,PFe as Ue,FFe as Ve,NFe as We,LFe as Xe,VFe as Ye,jFe as Ze,BFe as _e,$Fe as $e,zFe as af,HFe as bf,UFe as cf,HH as df,lce as ef,cce as ff,bNe as gf,_ce as hf,bce as if,vNe as jf,oU as kf,Qy as lf,rT as mf,CU as nf,sU as of,aU as pf,xLe as qf,SLe as rf,kLe as sf,ELe as tf,cue as uf,Ua as vf,SU as wf,due as xf,kU as yf,Wa as zf,ILe as Af,MLe as Bf,TLe as Cf,ALe as Df,jU as Ef,dm as Ff,Ky as Gf,Iue as Hf,OLe as If,Mue as Jf,RLe as Kf,Tue as Lf,Aue as Mf,mU as Nf,oT as Of,Oue as Pf,PLe as Qf,FLe as Rf,Fue as Sf,zue as Tf,HU as Uf,UU as Vf,Hue as Wf,NLe as Xf,LLe as Yf,VLe as Zf,sT as _f,Uue as $f,Wue as ag,jLe as bg,BLe as cg,que as dg,Gue as eg,Que as fg,Kue as gg,Zue as hg,$Le as ig,Xue as jg,Jue as kg,ehe as lg,the as mg,zLe as ng,HLe as og,ihe as pg,nhe as qg,rhe as rg,she as sg,ahe as tg,lhe as ug,ULe as vg,dhe as wg,WLe as xg,YLe as yg,qLe as zg,GLe as Ag,QLe as Bg,KLe as Cg,ZLe as Dg,XLe as Eg,JLe as Fg,e2e as Gg,t2e as Hg,i2e as Ig,n2e as Jg,r2e as Kg,o2e as Lg,s2e as Mg,a2e as Ng,l2e as Og,c2e as Pg,d2e as Qg,u2e as Rg,h2e as Sg,f2e as Tg,m2e as Ug,p2e as Vg,g2e as Wg,_2e as Xg,b2e as Yg,v2e as Zg,y2e as _g,fhe as $g,w2e as ah,um as bh,C2e as ch,D2e as dh,bU as eh,x2e as fh,Ha as gh,S2e as hh,Zy as ih,G2e as jh,Q2e as kh};




© 2015 - 2025 Weber Informatics LLC | Privacy Policy