From 09810386b5bf241ee7d8756d700fdb85de4b76a5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 15 Nov 2024 03:14:20 +0000 Subject: [PATCH] Deploy to GitHub pages --- 404.html | 15 ++++ assets/github.svg | 6 ++ assets/logo.svg | 1 + chunk-3VTLHUFB.js | 7 ++ chunk-47CQYKNA.js | 1 + favicon.ico | Bin 0 -> 15086 bytes index.html | 15 ++++ main-JCP4EDUZ.js | 168 ++++++++++++++++++++++++++++++++++++++++++ polyfills-QBXW4TBJ.js | 2 + styles-MIULPDTT.css | 1 + 10 files changed, 216 insertions(+) create mode 100644 404.html create mode 100644 assets/github.svg create mode 100644 assets/logo.svg create mode 100644 chunk-3VTLHUFB.js create mode 100644 chunk-47CQYKNA.js create mode 100644 favicon.ico create mode 100644 index.html create mode 100644 main-JCP4EDUZ.js create mode 100644 polyfills-QBXW4TBJ.js create mode 100644 styles-MIULPDTT.css diff --git a/404.html b/404.html new file mode 100644 index 00000000..74c76b75 --- /dev/null +++ b/404.html @@ -0,0 +1,15 @@ + + + + + @ecodev/natural + + + + + + + + + + diff --git a/assets/github.svg b/assets/github.svg new file mode 100644 index 00000000..49884fa6 --- /dev/null +++ b/assets/github.svg @@ -0,0 +1,6 @@ + + GitHub icon + + diff --git a/assets/logo.svg b/assets/logo.svg new file mode 100644 index 00000000..6bad313b --- /dev/null +++ b/assets/logo.svg @@ -0,0 +1 @@ +Logo \ No newline at end of file diff --git a/chunk-3VTLHUFB.js b/chunk-3VTLHUFB.js new file mode 100644 index 00000000..b6e22383 --- /dev/null +++ b/chunk-3VTLHUFB.js @@ -0,0 +1,7 @@ +var Yp=Object.defineProperty,Qp=Object.defineProperties;var Kp=Object.getOwnPropertyDescriptors;var Kn=Object.getOwnPropertySymbols;var vu=Object.prototype.hasOwnProperty,Du=Object.prototype.propertyIsEnumerable;var yu=(e,t,n)=>t in e?Yp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,De=(e,t)=>{for(var n in t||={})vu.call(t,n)&&yu(e,n,t[n]);if(Kn)for(var n of Kn(t))Du.call(t,n)&&yu(e,n,t[n]);return e},Ie=(e,t)=>Qp(e,Kp(t));var Ew=(e,t)=>{var n={};for(var r in e)vu.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Kn)for(var r of Kn(e))t.indexOf(r)<0&&Du.call(e,r)&&(n[r]=e[r]);return n};var Jp=(e,t,n)=>new Promise((r,o)=>{var i=u=>{try{a(n.next(u))}catch(c){o(c)}},s=u=>{try{a(n.throw(u))}catch(c){o(c)}},a=u=>u.done?r(u.value):Promise.resolve(u.value).then(i,s);a((n=n.apply(e,t)).next())});function Iu(e,t){return Object.is(e,t)}var B=null,cn=!1,Jn=1,ue=Symbol("SIGNAL");function x(e){let t=B;return B=e,t}function Eu(){return B}function Xp(){return cn}var Rt={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 er(e){if(cn)throw new Error("");if(B===null)return;B.consumerOnSignalRead(e);let t=B.nextProducerIndex++;if(ir(B),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function nr(e){ir(e);for(let t=0;t0}function ir(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function xu(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Su(e){return e.producerNode!==void 0}function ri(e){let t=Object.create(th);t.computation=e;let n=()=>{if(wu(t),er(t),t.value===Xn)throw t.error;return t.value};return n[ue]=t,n}var ei=Symbol("UNSET"),ti=Symbol("COMPUTING"),Xn=Symbol("ERRORED"),th=Ie(De({},Rt),{value:ei,dirty:!0,error:null,equal:Iu,producerMustRecompute(e){return e.value===ei||e.value===ti},producerRecomputeValue(e){if(e.value===ti)throw new Error("Detected cycle in computations.");let t=e.value;e.value=ti;let n=dn(e),r;try{r=e.computation()}catch(o){r=Xn,e.error=o}finally{tr(e,n)}if(t!==ei&&t!==Xn&&r!==Xn&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function nh(){throw new Error}var Tu=nh;function Nu(){Tu()}function Au(e){Tu=e}var rh=null;function Ou(e){let t=Object.create(oi);t.value=e;let n=()=>(er(t),t.value);return n[ue]=t,n}function sr(e,t){bu()||Nu(),e.equal(e.value,t)||(e.value=t,oh(e))}function Fu(e,t){bu()||Nu(),sr(e,t(e.value))}var oi=Ie(De({},Rt),{equal:Iu,value:void 0});function oh(e){e.version++,eh(),Cu(e),rh?.()}function Ru(e,t,n){let r=Object.create(ih);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;let o=u=>{r.cleanupFn=u};function i(u){return u.fn===null&&u.schedule===null}function s(u){i(u)||(rr(u),u.cleanupFn(),u.fn=null,u.schedule=null,u.cleanupFn=ni)}let a=()=>{if(r.fn===null)return;if(Xp())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!nr(r))return;r.hasRun=!0;let u=dn(r);try{r.cleanupFn(),r.cleanupFn=ni,r.fn(o)}finally{tr(r,u)}};return r.ref={notify:()=>_u(r),run:a,cleanup:()=>r.cleanupFn(),destroy:()=>s(r),[ue]:r},r.ref}var ni=()=>{},ih=Ie(De({},Rt),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule!==null&&e.schedule(e.ref)},hasRun:!1,cleanupFn:ni});function I(e){return typeof e=="function"}function Pt(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var ar=Pt(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: +${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=n});function at(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var j=class e{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:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(I(r))try{r()}catch(i){t=i instanceof ar?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Pu(i)}catch(s){t=t??[],s instanceof ar?t=[...t,...s.errors]:t.push(s)}}if(t)throw new ar(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Pu(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&at(n,t)}remove(t){let{_finalizers:n}=this;n&&at(n,t),t instanceof e&&t._removeParent(this)}};j.EMPTY=(()=>{let e=new j;return e.closed=!0,e})();var ii=j.EMPTY;function ur(e){return e instanceof j||e&&"closed"in e&&I(e.remove)&&I(e.add)&&I(e.unsubscribe)}function Pu(e){I(e)?e():e.unsubscribe()}var Ee={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var kt={setTimeout(e,t,...n){let{delegate:r}=kt;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=kt;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function cr(e){kt.setTimeout(()=>{let{onUnhandledError:t}=Ee;if(t)t(e);else throw e})}function Pe(){}var ku=si("C",void 0,void 0);function Lu(e){return si("E",void 0,e)}function ju(e){return si("N",e,void 0)}function si(e,t,n){return{kind:e,value:t,error:n}}var ut=null;function Lt(e){if(Ee.useDeprecatedSynchronousErrorHandling){let t=!ut;if(t&&(ut={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=ut;if(ut=null,n)throw r}}else e()}function Vu(e){Ee.useDeprecatedSynchronousErrorHandling&&ut&&(ut.errorThrown=!0,ut.error=e)}var ct=class extends j{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,ur(t)&&t.add(this)):this.destination=uh}static create(t,n,r){return new ke(t,n,r)}next(t){this.isStopped?ui(ju(t),this):this._next(t)}error(t){this.isStopped?ui(Lu(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?ui(ku,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()}}},sh=Function.prototype.bind;function ai(e,t){return sh.call(e,t)}var ci=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){lr(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){lr(r)}else lr(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){lr(n)}}},ke=class extends ct{constructor(t,n,r){super();let o;if(I(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Ee.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&ai(t.next,i),error:t.error&&ai(t.error,i),complete:t.complete&&ai(t.complete,i)}):o=t}this.destination=new ci(o)}};function lr(e){Ee.useDeprecatedSynchronousErrorHandling?Vu(e):cr(e)}function ah(e){throw e}function ui(e,t){let{onStoppedNotification:n}=Ee;n&&kt.setTimeout(()=>n(e,t))}var uh={closed:!0,next:Pe,error:ah,complete:Pe};var lt=typeof Symbol=="function"&&Symbol.observable||"@@observable";function G(e){return e}function ch(...e){return li(e)}function li(e){return e.length===0?G:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var S=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=dh(n)?n:new ke(n,r,o);return Lt(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=Bu(r),new r((o,i)=>{let s=new ke({next:a=>{try{n(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[lt](){return this}pipe(...n){return li(n)(this)}toPromise(n){return n=Bu(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Bu(e){var t;return(t=e??Ee.Promise)!==null&&t!==void 0?t:Promise}function lh(e){return e&&I(e.next)&&I(e.error)&&I(e.complete)}function dh(e){return e&&e instanceof ct||lh(e)&&ur(e)}function di(e){return I(e?.lift)}function y(e){return t=>{if(di(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function D(e,t,n,r,o){return new fi(e,t,n,r,o)}var fi=class extends ct{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=o?function(a){try{o(a)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function pi(){return y((e,t)=>{let n=null;e._refCount++;let r=D(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var hi=class extends S{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,di(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 j;let n=this.getSubject();t.add(this.source.subscribe(D(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=j.EMPTY)}return t}refCount(){return pi()(this)}};var $u=Pt(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ce=(()=>{class e extends S{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new dr(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new $u}next(n){Lt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Lt(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Lt(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?ii:(this.currentObservers=null,i.push(n),new j(()=>{this.currentObservers=null,at(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new S;return n.source=this,n}}return e.create=(t,n)=>new dr(t,n),e})(),dr=class extends ce{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:ii}};var fn=class extends ce{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var pn={now(){return(pn.delegate||Date).now()},delegate:void 0};var hn=class extends ce{constructor(t=1/0,n=1/0,r=pn){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;sHu(t)&&e()),t},clearImmediate(e){Hu(e)}};var{setImmediate:ph,clearImmediate:hh}=Uu,mn={setImmediate(...e){let{delegate:t}=mn;return(t?.setImmediate||ph)(...e)},clearImmediate(e){let{delegate:t}=mn;return(t?.clearImmediate||hh)(e)},delegate:void 0};var pr=class extends qe{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=mn.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(mn.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0))}};var jt=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};jt.now=pn.now;var Ze=class extends jt{constructor(t,n=jt.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var hr=class extends Ze{flush(t){this._active=!0;let n=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var gh=new hr(pr);var Me=new Ze(qe),yi=Me;var gr=class extends qe{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}schedule(t,n=0){return n>0?super.schedule(t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)}execute(t,n){return n>0||this.closed?super.execute(t,n):this._execute(t,n)}requestAsyncId(t,n,r=0){return r!=null&&r>0||r==null&&this.delay>0?super.requestAsyncId(t,n,r):(t.flush(this),0)}};var mr=class extends Ze{};var mh=new mr(gr);var dt=new S(e=>e.complete());function yr(e){return e&&I(e.schedule)}function vi(e){return e[e.length-1]}function vr(e){return I(vi(e))?e.pop():void 0}function le(e){return yr(vi(e))?e.pop():void 0}function zu(e,t){return typeof vi(e)=="number"?e.pop():t}function Wu(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{c(r.next(l))}catch(d){s(d)}}function u(l){try{c(r.throw(l))}catch(d){s(d)}}function c(l){l.done?i(l.value):o(l.value).then(a,u)}c((r=r.apply(e,t||[])).next())})}function Gu(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ft(e){return this instanceof ft?(this.v=e,this):new ft(e)}function qu(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){r[f]&&(o[f]=function(p){return new Promise(function(h,g){i.push([f,p,h,g])>1||a(f,p)})})}function a(f,p){try{u(r[f](p))}catch(h){d(i[0][3],h)}}function u(f){f.value instanceof ft?Promise.resolve(f.value.v).then(c,l):d(i[0][2],f)}function c(f){a("next",f)}function l(f){a("throw",f)}function d(f,p){f(p),i.shift(),i.length&&a(i[0][0],i[0][1])}}function Zu(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Gu=="function"?Gu(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,u){s=e[i](s),o(a,u,s.done,s.value)})}}function o(i,s,a,u){Promise.resolve(u).then(function(c){i({value:c,done:a})},s)}}var Vt=e=>e&&typeof e.length=="number"&&typeof e!="function";function Dr(e){return I(e?.then)}function Ir(e){return I(e[lt])}function Er(e){return Symbol.asyncIterator&&I(e?.[Symbol.asyncIterator])}function wr(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function yh(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Cr=yh();function br(e){return I(e?.[Cr])}function _r(e){return qu(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield ft(n.read());if(o)return yield ft(void 0);yield yield ft(r)}}finally{n.releaseLock()}})}function Mr(e){return I(e?.getReader)}function N(e){if(e instanceof S)return e;if(e!=null){if(Ir(e))return vh(e);if(Vt(e))return Dh(e);if(Dr(e))return Ih(e);if(Er(e))return Yu(e);if(br(e))return Eh(e);if(Mr(e))return wh(e)}throw wr(e)}function vh(e){return new S(t=>{let n=e[lt]();if(I(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Dh(e){return new S(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,cr)})}function Eh(e){return new S(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Yu(e){return new S(t=>{Ch(e,t).catch(n=>t.error(n))})}function wh(e){return Yu(_r(e))}function Ch(e,t){var n,r,o,i;return Wu(this,void 0,void 0,function*(){try{for(n=Zu(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function ne(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function yn(e,t=0){return y((n,r)=>{n.subscribe(D(r,o=>ne(r,e,()=>r.next(o),t),()=>ne(r,e,()=>r.complete(),t),o=>ne(r,e,()=>r.error(o),t)))})}function xr(e,t=0){return y((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Qu(e,t){return N(e).pipe(xr(t),yn(t))}function Ku(e,t){return N(e).pipe(xr(t),yn(t))}function Ju(e,t){return new S(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Xu(e,t){return new S(n=>{let r;return ne(n,t,()=>{r=e[Cr](),ne(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>I(r?.return)&&r.return()})}function Sr(e,t){if(!e)throw new Error("Iterable cannot be null");return new S(n=>{ne(n,t,()=>{let r=e[Symbol.asyncIterator]();ne(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function ec(e,t){return Sr(_r(e),t)}function tc(e,t){if(e!=null){if(Ir(e))return Qu(e,t);if(Vt(e))return Ju(e,t);if(Dr(e))return Ku(e,t);if(Er(e))return Sr(e,t);if(br(e))return Xu(e,t);if(Mr(e))return ec(e,t)}throw wr(e)}function de(e,t){return t?tc(e,t):N(e)}function Di(...e){let t=le(e);return de(e,t)}function bh(e,t){let n=I(e)?e:()=>e,r=o=>o.error(n());return new S(t?o=>t.schedule(r,0,o):r)}function _h(e){return!!e&&(e instanceof S||I(e.lift)&&I(e.subscribe))}var pt=Pt(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function nc(e){return e instanceof Date&&!isNaN(e)}function xe(e,t){return y((n,r)=>{let o=0;n.subscribe(D(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:Mh}=Array;function xh(e,t){return Mh(t)?e(...t):e(t)}function Bt(e){return xe(t=>xh(e,t))}var{isArray:Sh}=Array,{getPrototypeOf:Th,prototype:Nh,keys:Ah}=Object;function Tr(e){if(e.length===1){let t=e[0];if(Sh(t))return{args:t,keys:null};if(Oh(t)){let n=Ah(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Oh(e){return e&&typeof e=="object"&&Th(e)===Nh}function Nr(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Fh(...e){let t=le(e),n=vr(e),{args:r,keys:o}=Tr(e);if(r.length===0)return de([],t);let i=new S(Rh(r,t,o?s=>Nr(o,s):G));return n?i.pipe(Bt(n)):i}function Rh(e,t,n=G){return r=>{rc(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let u=0;u{let c=de(e[u],t),l=!1;c.subscribe(D(r,d=>{i[u]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function rc(e,t,n){e?ne(n,e,t):t()}function oc(e,t,n,r,o,i,s,a){let u=[],c=0,l=0,d=!1,f=()=>{d&&!u.length&&!c&&t.complete()},p=g=>c{i&&t.next(g),c++;let b=!1;N(n(g,l++)).subscribe(D(t,m=>{o?.(m),i?p(m):t.next(m)},()=>{b=!0},void 0,()=>{if(b)try{for(c--;u.length&&ch(m)):h(m)}f()}catch(m){t.error(m)}}))};return e.subscribe(D(t,p,()=>{d=!0,f()})),()=>{a?.()}}function fe(e,t,n=1/0){return I(t)?fe((r,o)=>xe((i,s)=>t(r,i,o,s))(N(e(r,o))),n):(typeof t=="number"&&(n=t),y((r,o)=>oc(r,o,e,n)))}function Ar(e=1/0){return fe(G,e)}function Or(){return Ar(1)}function Ye(...e){return Or()(de(e,le(e)))}function Ph(e){return new S(t=>{N(e()).subscribe(t)})}function kh(...e){let t=vr(e),{args:n,keys:r}=Tr(e),o=new S(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),u=s,c=s;for(let l=0;l{d||(d=!0,c--),a[l]=f},()=>u--,void 0,()=>{(!u||!d)&&(c||i.next(r?Nr(r,a):a),i.complete())}))}});return t?o.pipe(Bt(t)):o}var Lh=["addListener","removeListener"],jh=["addEventListener","removeEventListener"],Vh=["on","off"];function Ii(e,t,n,r){if(I(n)&&(r=n,n=void 0),r)return Ii(e,t,n).pipe(Bt(r));let[o,i]=Hh(e)?jh.map(s=>a=>e[s](t,a,n)):Bh(e)?Lh.map(ic(e,t)):$h(e)?Vh.map(ic(e,t)):[];if(!o&&Vt(e))return fe(s=>Ii(s,t,n))(N(e));if(!o)throw new TypeError("Invalid event target");return new S(s=>{let a=(...u)=>s.next(1i(a)})}function ic(e,t){return n=>r=>e[n](t,r)}function Bh(e){return I(e.addListener)&&I(e.removeListener)}function $h(e){return I(e.on)&&I(e.off)}function Hh(e){return I(e.addEventListener)&&I(e.removeEventListener)}function ht(e=0,t,n=yi){let r=-1;return t!=null&&(yr(t)?n=t:r=t),new S(o=>{let i=nc(e)?+e-n.now():e;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function Uh(...e){let t=le(e),n=zu(e,1/0),r=e;return r.length?r.length===1?N(r[0]):Ar(n)(de(r,t)):dt}var zh=new S(Pe);function Qe(e,t){return y((n,r)=>{let o=0;n.subscribe(D(r,i=>e.call(t,i,o++)&&r.next(i)))})}function sc(e){return t=>{let n=[];for(let r=0;n&&!t.closed&&r{if(n){for(let i=0;i{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let c=o;o=null,n.next(c)}s&&n.complete()},u=()=>{i=null,s&&n.complete()};t.subscribe(D(n,c=>{r=!0,o=c,i||N(e(c)).subscribe(i=D(n,a,u))},()=>{s=!0,(!r||!i||i.closed)&&n.complete()}))})}function Gh(e,t=Me){return ac(()=>ht(e,t))}function Ei(e){return y((t,n)=>{let r=null,o=!1,i;r=t.subscribe(D(n,void 0,void 0,s=>{i=N(e(s,Ei(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Fr(e,t,n,r,o){return(i,s)=>{let a=n,u=t,c=0;i.subscribe(D(s,l=>{let d=c++;u=a?e(u,l,d):(a=!0,l),r&&s.next(u)},o&&(()=>{a&&s.next(u),s.complete()})))}}function Wh(e,t){return y(Fr(e,t,arguments.length>=2,!1,!0))}function qh(e,t){return I(t)?fe(e,t,1):fe(e,1)}function uc(...e){let t=le(e);return y((n,r)=>{Or()(de([n,...e],t)).subscribe(r)})}function Zh(...e){return uc(...e)}function cc(e,t=Me){return y((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let c=i;i=null,r.next(c)}};function u(){let c=s+e,l=t.now();if(l{i=c,s=t.now(),o||(o=t.schedule(u,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function vn(e){return y((t,n)=>{let r=!1;t.subscribe(D(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function gt(e){return e<=0?()=>dt:y((t,n)=>{let r=0;t.subscribe(D(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function lc(){return y((e,t)=>{e.subscribe(D(t,Pe))})}function wi(e){return xe(()=>e)}function Ci(e,t){return t?n=>Ye(t.pipe(gt(1),lc()),n.pipe(Ci(e))):fe((n,r)=>N(e(n,r)).pipe(gt(1),wi(n)))}function dc(e,t=Me){let n=ht(e,t);return Ci(()=>n)}function Yh(e,t=G){return e=e??Qh,y((n,r)=>{let o,i=!0;n.subscribe(D(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function Qh(e,t){return e===t}function Rr(e=Kh){return y((t,n)=>{let r=!1;t.subscribe(D(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function Kh(){return new pt}function Jh(...e){return t=>Ye(t,Di(...e))}function fc(e){return y((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function bi(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Qe((o,i)=>e(o,i,r)):G,gt(1),n?vn(t):Rr(()=>new pt))}function _i(e){return e<=0?()=>dt:y((t,n)=>{let r=[];t.subscribe(D(n,o=>{r.push(o),e{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function pc(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Qe((o,i)=>e(o,i,r)):G,_i(1),n?vn(t):Rr(()=>new pt))}function Xh(...e){return e.length?y((t,n)=>{sc([t,...e])(n)}):G}function eg(e,t){return y(Fr(e,t,arguments.length>=2,!0))}function xi(e={}){let{connector:t=()=>new ce,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,u,c=0,l=!1,d=!1,f=()=>{a?.unsubscribe(),a=void 0},p=()=>{f(),s=u=void 0,l=d=!1},h=()=>{let g=s;p(),g?.unsubscribe()};return y((g,b)=>{c++,!d&&!l&&f();let m=u=u??t();b.add(()=>{c--,c===0&&!d&&!l&&(a=Mi(h,o))}),m.subscribe(b),!s&&c>0&&(s=new ke({next:A=>m.next(A),error:A=>{d=!0,f(),a=Mi(p,n,A),m.error(A)},complete:()=>{l=!0,f(),a=Mi(p,r),m.complete()}}),N(g).subscribe(s))})(i)}}function Mi(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new ke({next:()=>{r.unsubscribe(),e()}});return N(t(...n)).subscribe(r)}function hc(e,t,n){let r,o=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:o=!1,scheduler:n}=e:r=e??1/0,xi({connector:()=>new hn(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function tg(e){return Qe((t,n)=>e<=n)}function gc(...e){let t=le(e);return y((n,r)=>{(t?Ye(e,n,t):Ye(e,n)).subscribe(r)})}function mc(e,t){return y((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(D(r,u=>{o?.unsubscribe();let c=0,l=i++;N(e(u,l)).subscribe(o=D(r,d=>r.next(t?t(u,d,l,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function yc(e){return y((t,n)=>{N(e).subscribe(D(n,()=>n.complete(),Pe)),!n.closed&&t.subscribe(n)})}function ng(e,t=!1){return y((n,r)=>{let o=0;n.subscribe(D(r,i=>{let s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete()}))})}function vc(e,t,n){let r=I(e)||t||n?{next:e,error:t,complete:n}:e;return r?y((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(D(i,u=>{var c;(c=r.next)===null||c===void 0||c.call(r,u),i.next(u)},()=>{var u;a=!1,(u=r.complete)===null||u===void 0||u.call(r),i.complete()},u=>{var c;a=!1,(c=r.error)===null||c===void 0||c.call(r,u),i.error(u)},()=>{var u,c;a&&((u=r.unsubscribe)===null||u===void 0||u.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):G}function Dc(e,t){return y((n,r)=>{let{leading:o=!0,trailing:i=!1}=t??{},s=!1,a=null,u=null,c=!1,l=()=>{u?.unsubscribe(),u=null,i&&(p(),c&&r.complete())},d=()=>{u=null,c&&r.complete()},f=h=>u=N(e(h)).subscribe(D(r,l,d)),p=()=>{if(s){s=!1;let h=a;a=null,r.next(h),!c&&f(h)}};n.subscribe(D(r,h=>{s=!0,a=h,!(u&&!u.closed)&&(o?p():f(h))},()=>{c=!0,!(i&&s&&u&&!u.closed)&&r.complete()}))})}function rg(e,t=Me,n){let r=ht(e,t);return Dc(()=>r,n)}var hl="https://g.co/ng/security#xss",_=class extends Error{constructor(t,n){super(gl(t,n)),this.code=t}};function gl(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}var ml=Symbol("InputSignalNode#UNSET"),og=Ie(De({},oi),{transformFn:void 0,applyValueToInputSignal(e,t){sr(e,t)}});function yl(e,t){let n=Object.create(og);n.value=e,n.transformFn=t?.transform;function r(){if(er(n),n.value===ml)throw new _(-950,!1);return n.value}return r[ue]=n,r}function kn(e){return{toString:e}.toString()}var Pr="__parameters__";function ig(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function vl(e,t,n){return kn(()=>{let r=ig(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(u,c,l){let d=u.hasOwnProperty(Pr)?u[Pr]:Object.defineProperty(u,Pr,{value:[]})[Pr];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),u}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var Je=globalThis;function R(e){for(let t in e)if(e[t]===R)return t;throw Error("Could not find renamed property on target object.")}function sg(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function oe(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(oe).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` +`);return n===-1?t:t.substring(0,n)}function Ui(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var ag=R({__forward_ref__:R});function Dl(e){return e.__forward_ref__=Dl,e.toString=function(){return oe(this())},e}function W(e){return Il(e)?e():e}function Il(e){return typeof e=="function"&&e.hasOwnProperty(ag)&&e.__forward_ref__===Dl}function ug(e,t,n){e!=t&&cg(n,e,t,"==")}function cg(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(r==null?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function k(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function El(e){return{providers:e.providers||[],imports:e.imports||[]}}function Mo(e){return Ic(e,wl)||Ic(e,Cl)}function yN(e){return Mo(e)!==null}function Ic(e,t){return e.hasOwnProperty(t)?e[t]:null}function lg(e){let t=e&&(e[wl]||e[Cl]);return t||null}function Ec(e){return e&&(e.hasOwnProperty(wc)||e.hasOwnProperty(dg))?e[wc]:null}var wl=R({\u0275prov:R}),wc=R({\u0275inj:R}),Cl=R({ngInjectableDef:R}),dg=R({ngInjectorDef:R}),F=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=k({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function bl(e){return e&&!!e.\u0275providers}var fg=R({\u0275cmp:R}),pg=R({\u0275dir:R}),hg=R({\u0275pipe:R}),gg=R({\u0275mod:R}),Kr=R({\u0275fac:R}),In=R({__NG_ELEMENT_ID__:R}),Cc=R({__NG_ENV_ID__:R});function L(e){return typeof e=="string"?e:e==null?"":String(e)}function mg(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():L(e)}function yg(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new _(-200,e)}function la(e,t){throw new _(-201,!1)}var T=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(T||{}),zi;function _l(){return zi}function re(e){let t=zi;return zi=e,t}function Ml(e,t,n){let r=Mo(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&T.Optional)return null;if(t!==void 0)return t;la(e,"Injector")}var vg={},bn=vg,Gi="__NG_DI_FLAG__",Jr="ngTempTokenPath",Dg="ngTokenPath",Ig=/\n/gm,Eg="\u0275",bc="__source",Gt;function wg(){return Gt}function Ke(e){let t=Gt;return Gt=e,t}function Cg(e,t=T.Default){if(Gt===void 0)throw new _(-203,!1);return Gt===null?Ml(e,void 0,t):Gt.get(e,t&T.Optional?null:void 0,t)}function se(e,t=T.Default){return(_l()||Cg)(W(e),t)}function M(e,t=T.Default){return se(e,xo(t))}function xo(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Wi(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):oe(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(Ig,` + `)}`}var Sl=xl(vl("Optional"),8);var Tl=xl(vl("SkipSelf"),4);function It(e,t){let n=e.hasOwnProperty(Kr);return n?e[Kr]:null}function xg(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rArray.isArray(n)?da(n,t):t(n))}function Nl(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Xr(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Tg(e,t){let n=[];for(let r=0;rt;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function Ln(e,t,n){let r=jn(e,t);return r>=0?e[r|1]=n:(r=~r,Ng(e,r,t,n)),r}function Si(e,t){let n=jn(e,t);if(n>=0)return e[n|1]}function jn(e,t){return Ag(e,t,1)}function Ag(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<t){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&c!==d){if(we(r))return!1;s=!0}}}}return we(r)||s}function we(e){return(e&1)===0}function Lg(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!we(s)&&(t+=Mc(i,o),o=""),r=s,i=i||!we(r);n++}return o!==""&&(t+=Mc(i,o)),t}function Ug(e){return e.map(Hg).join(",")}function zg(e){let t=[],n=[],r=1,o=2;for(;r{let t=Bl(e),n=Ie(De({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Fl.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||_n.Emulated,styles:e.styles||Z,_:null,schemas:e.schemas||null,tView:null,id:""});$l(n);let r=e.dependencies;return n.directiveDefs=Sc(r,!1),n.pipeDefs=Sc(r,!0),n.id=Zg(n),n})}function Gg(e){return nt(e)||pa(e)}function Wg(e){return e!==null}function Ll(e){return kn(()=>({type:e.type,bootstrap:e.bootstrap||Z,declarations:e.declarations||Z,imports:e.imports||Z,exports:e.exports||Z,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function xc(e,t){if(e==null)return je;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=tt.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==tt.None?[r,a]:r,t[i]=s):n[i]=r}return n}function So(e){return kn(()=>{let t=Bl(e);return $l(t),t})}function To(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone===!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function nt(e){return e[fg]||null}function pa(e){return e[pg]||null}function jl(e){return e[hg]||null}function qg(e){let t=nt(e)||pa(e)||jl(e);return t!==null?t.standalone:!1}function Vl(e,t){let n=e[gg]||null;if(!n&&t===!0)throw new Error(`Type ${oe(e)} does not have '\u0275mod' property.`);return n}function Bl(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||je,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||Z,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:xc(e.inputs,t),outputs:xc(e.outputs),debugInfo:null}}function $l(e){e.features?.forEach(t=>t(e))}function Sc(e,t){if(!e)return null;let n=t?jl:Gg;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(Wg)}function Zg(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function Yg(e){return{\u0275providers:e}}function Qg(...e){return{\u0275providers:Hl(!0,e),\u0275fromNgModule:!0}}function Hl(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return da(t,s=>{let a=s;Zi(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Ul(o,i),n}function Ul(e,t){for(let n=0;n{t(i,r)})}}function Zi(e,t,n,r){if(e=W(e),!e)return!1;let o=null,i=Ec(e),s=!i&&nt(e);if(!i&&!s){let u=e.ngModule;if(i=Ec(u),i)o=u;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)Zi(c,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;try{da(i.imports,l=>{Zi(l,t,n,r)&&(c||=[],c.push(l))})}finally{}c!==void 0&&Ul(c,t)}if(!a){let c=It(o)||(()=>new o);t({provide:o,useFactory:c,deps:Z},o),t({provide:Ol,useValue:o,multi:!0},o),t({provide:eo,useValue:()=>se(o),multi:!0},o)}let u=i.providers;if(u!=null&&!a){let c=e;ha(u,l=>{t(l,c)})}}else return!1;return o!==e&&e.providers!==void 0}function ha(e,t){for(let n of e)bl(n)&&(n=n.\u0275providers),Array.isArray(n)?ha(n,t):t(n)}var Kg=R({provide:String,useValue:R});function zl(e){return e!==null&&typeof e=="object"&&Kg in e}function Jg(e){return!!(e&&e.useExisting)}function Xg(e){return!!(e&&e.useFactory)}function qt(e){return typeof e=="function"}function em(e){return!!e.useClass}var Gl=new F(""),Hr={},tm={},Ti;function No(){return Ti===void 0&&(Ti=new to),Ti}var rt=class{},xn=class extends rt{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Qi(t,s=>this.processProvider(s)),this.records.set(Al,$t(void 0,this)),o.has("environment")&&this.records.set(rt,$t(void 0,this));let i=this.records.get(Gl);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Ol,Z,T.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=x(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),x(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=Ke(this),r=re(void 0),o;try{return t()}finally{Ke(n),re(r)}}get(t,n=bn,r=T.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Cc))return t[Cc](this);r=xo(r);let o,i=Ke(this),s=re(void 0);try{if(!(r&T.SkipSelf)){let u=this.records.get(t);if(u===void 0){let c=sm(t)&&Mo(t);c&&this.injectableDefInScope(c)?u=$t(Yi(t),Hr):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u)}let a=r&T.Self?No():this.parent;return n=r&T.Optional&&n===bn?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Jr]=a[Jr]||[]).unshift(oe(t)),i)throw a;return _g(a,t,"R3InjectorError",this.source)}else throw a}finally{re(s),Ke(i)}}resolveInjectorInitializers(){let t=x(null),n=Ke(this),r=re(void 0),o;try{let i=this.get(eo,Z,T.Self);for(let s of i)s()}finally{Ke(n),re(r),x(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(oe(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new _(205,!1)}processProvider(t){t=W(t);let n=qt(t)?t:W(t&&t.provide),r=rm(t);if(!qt(t)&&t.multi===!0){let o=this.records.get(n);o||(o=$t(void 0,Hr,!0),o.factory=()=>Wi(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=x(null);try{return n.value===Hr&&(n.value=tm,n.value=n.factory()),typeof n.value=="object"&&n.value&&im(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{x(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=W(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Yi(e){let t=Mo(e),n=t!==null?t.factory:It(e);if(n!==null)return n;if(e instanceof F)throw new _(204,!1);if(e instanceof Function)return nm(e);throw new _(204,!1)}function nm(e){if(e.length>0)throw new _(204,!1);let n=lg(e);return n!==null?()=>n.factory(e):()=>new e}function rm(e){if(zl(e))return $t(void 0,e.useValue);{let t=Wl(e);return $t(t,Hr)}}function Wl(e,t,n){let r;if(qt(e)){let o=W(e);return It(o)||Yi(o)}else if(zl(e))r=()=>W(e.useValue);else if(Xg(e))r=()=>e.useFactory(...Wi(e.deps||[]));else if(Jg(e))r=()=>se(W(e.useExisting));else{let o=W(e&&(e.useClass||e.provide));if(om(e))r=()=>new o(...Wi(e.deps));else return It(o)||Yi(o)}return r}function $t(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function om(e){return!!e.deps}function im(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function sm(e){return typeof e=="function"||typeof e=="object"&&e instanceof F}function Qi(e,t){for(let n of e)Array.isArray(n)?Qi(n,t):n&&bl(n)?Qi(n.\u0275providers,t):t(n)}function DN(e,t){e instanceof xn&&e.assertNotDestroyed();let n,r=Ke(e),o=re(void 0);try{return t()}finally{Ke(r),re(o)}}function ql(){return _l()!==void 0||wg()!=null}function ga(e){if(!ql())throw new _(-203,!1)}function am(e){return typeof e=="function"}var Fe=0,w=1,E=2,K=3,be=4,X=5,Zt=6,no=7,Y=8,Yt=9,Ne=10,O=11,Sn=12,Tc=13,on=14,ae=15,Et=16,Ht=17,Ve=18,Ao=19,Zl=20,Xe=21,Ur=22,pe=23,V=25,ma=1;var wt=7,ro=8,Qt=9,Q=10,oo=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(oo||{});function et(e){return Array.isArray(e)&&typeof e[ma]=="object"}function ze(e){return Array.isArray(e)&&e[ma]===!0}function ya(e){return(e.flags&4)!==0}function Oo(e){return e.componentOffset>-1}function Fo(e){return(e.flags&1)===1}function Be(e){return!!e.template}function Ki(e){return(e[E]&512)!==0}var Ji=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Yl(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function va(){return Ql}function Ql(e){return e.type.prototype.ngOnChanges&&(e.setInput=cm),um}va.ngInherit=!0;function um(){let e=Jl(this),t=e?.current;if(t){let n=e.previous;if(n===je)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function cm(e,t,n,r,o){let i=this.declaredInputs[r],s=Jl(e)||lm(e,{previous:je,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[i];a[i]=new Ji(c&&c.currentValue,n,u===je),Yl(e,t,o,n)}var Kl="__ngSimpleChanges__";function Jl(e){return e[Kl]||null}function lm(e,t){return e[Kl]=t}var Nc=null;var Se=function(e,t,n){Nc?.(e,t,n)},Xl="svg",dm="math";function he(e){for(;Array.isArray(e);)e=e[Fe];return e}function fm(e){for(;Array.isArray(e);){if(typeof e[ma]=="object")return e;e=e[Fe]}return null}function Ro(e,t){return he(t[e])}function ge(e,t){return he(t[e.index])}function Da(e,t){return e.data[t]}function ed(e,t){return e[t]}function it(e,t){let n=t[e];return et(n)?n:n[Fe]}function pm(e){return(e[E]&4)===4}function Ia(e){return(e[E]&128)===128}function hm(e){return ze(e[K])}function $e(e,t){return t==null?null:e[t]}function td(e){e[Ht]=0}function nd(e){e[E]&1024||(e[E]|=1024,Ia(e)&&ko(e))}function gm(e,t){for(;e>0;)t=t[on],e--;return t}function Po(e){return!!(e[E]&9216||e[pe]?.dirty)}function Xi(e){e[Ne].changeDetectionScheduler?.notify(8),e[E]&64&&(e[E]|=1024),Po(e)&&ko(e)}function ko(e){e[Ne].changeDetectionScheduler?.notify(0);let t=Ct(e);for(;t!==null&&!(t[E]&8192||(t[E]|=8192,!Ia(t)));)t=Ct(t)}function rd(e,t){if((e[E]&256)===256)throw new _(911,!1);e[Xe]===null&&(e[Xe]=[]),e[Xe].push(t)}function mm(e,t){if(e[Xe]===null)return;let n=e[Xe].indexOf(t);n!==-1&&e[Xe].splice(n,1)}function Ct(e){let t=e[K];return ze(t)?t[K]:t}var C={lFrame:fd(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var od=!1;function ym(){return C.lFrame.elementDepthCount}function vm(){C.lFrame.elementDepthCount++}function Dm(){C.lFrame.elementDepthCount--}function id(){return C.bindingsEnabled}function sd(){return C.skipHydrationRootTNode!==null}function Im(e){return C.skipHydrationRootTNode===e}function Em(){C.skipHydrationRootTNode=null}function v(){return C.lFrame.lView}function P(){return C.lFrame.tView}function IN(e){return C.lFrame.contextLView=e,e[Y]}function EN(e){return C.lFrame.contextLView=null,e}function U(){let e=ad();for(;e!==null&&e.type===64;)e=e.parent;return e}function ad(){return C.lFrame.currentTNode}function Tn(){let e=C.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Ae(e,t){let n=C.lFrame;n.currentTNode=e,n.isParent=t}function Ea(){return C.lFrame.isParent}function wa(){C.lFrame.isParent=!1}function wm(){return C.lFrame.contextLView}function ud(){return od}function Ac(e){od=e}function Lo(){let e=C.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Vn(){return C.lFrame.bindingIndex}function Cm(e){return C.lFrame.bindingIndex=e}function Ge(){return C.lFrame.bindingIndex++}function sn(e){let t=C.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function bm(){return C.lFrame.inI18n}function cd(e){C.lFrame.inI18n=e}function _m(e,t){let n=C.lFrame;n.bindingIndex=n.bindingRootIndex=e,es(t)}function Mm(){return C.lFrame.currentDirectiveIndex}function es(e){C.lFrame.currentDirectiveIndex=e}function Ca(e){let t=C.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function ba(){return C.lFrame.currentQueryIndex}function jo(e){C.lFrame.currentQueryIndex=e}function xm(e){let t=e[w];return t.type===2?t.declTNode:t.type===1?e[X]:null}function ld(e,t,n){if(n&T.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&T.Host);)if(o=xm(i),o===null||(i=i[on],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=C.lFrame=dd();return r.currentTNode=t,r.lView=e,!0}function _a(e){let t=dd(),n=e[w];C.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function dd(){let e=C.lFrame,t=e===null?null:e.child;return t===null?fd(e):t}function fd(e){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:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function pd(){let e=C.lFrame;return C.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var hd=pd;function Ma(){let e=pd();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Sm(e){return(C.lFrame.contextLView=gm(e,C.lFrame.contextLView))[Y]}function me(){return C.lFrame.selectedIndex}function bt(e){C.lFrame.selectedIndex=e}function Bn(){let e=C.lFrame;return Da(e.tView,e.selectedIndex)}function wN(){C.lFrame.currentNamespace=Xl}function CN(){Tm()}function Tm(){C.lFrame.currentNamespace=null}function Nm(){return C.lFrame.currentNamespace}var gd=!0;function $n(){return gd}function Hn(e){gd=e}function Am(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Ql(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function Vo(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[Ht]+=65536),(a>14>16&&(e[E]&3)===t&&(e[E]+=16384,Oc(a,i)):Oc(a,i)}var Wt=-1,_t=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function Fm(e){return e instanceof _t}function Rm(e){return(e.flags&8)!==0}function Pm(e){return(e.flags&16)!==0}var Ai={},ts=class{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=xo(r);let o=this.injector.get(t,Ai,r);return o!==Ai||n===Ai?o:this.parentInjector.get(t,n,r)}};function yd(e){return e!==Wt}function io(e){return e&32767}function km(e){return e>>16}function so(e,t){let n=km(e),r=t;for(;n>0;)r=r[on],n--;return r}var ns=!0;function ao(e){let t=ns;return ns=e,t}var Lm=256,vd=Lm-1,Dd=5,jm=0,Te={};function Vm(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(In)&&(r=n[In]),r==null&&(r=n[In]=jm++);let o=r&vd,i=1<>Dd)]|=i}function uo(e,t){let n=Id(e,t);if(n!==-1)return n;let r=t[w];r.firstCreatePass&&(e.injectorIndex=t.length,Oi(r.data,e),Oi(t,null),Oi(r.blueprint,null));let o=xa(e,t),i=e.injectorIndex;if(yd(o)){let s=io(o),a=so(o,t),u=a[w].data;for(let c=0;c<8;c++)t[i+c]=a[s+c]|u[s+c]}return t[i+8]=o,i}function Oi(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Id(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function xa(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=_d(o),r===null)return Wt;if(n++,o=o[on],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Wt}function rs(e,t,n){Vm(e,t,n)}function Bm(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o>20,d=r?a:a+l,f=o?a+l:c;for(let p=d;p=u&&h.type===n)return p}if(o){let p=s[u];if(p&&Be(p)&&p.type===n)return u}return null}function Mt(e,t,n,r){let o=e[n],i=t.data;if(Fm(o)){let s=o;s.resolving&&yg(mg(i[n]));let a=ao(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?re(s.injectImpl):null,l=ld(e,r,T.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&Am(n,i[n],t)}finally{c!==null&&re(c),ao(a),s.resolving=!1,hd()}}return o}function Hm(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(In)?e[In]:void 0;return typeof t=="number"?t>=0?t&vd:Um:t}function Fc(e,t,n){let r=1<>Dd)]&r)}function Rc(e,t){return!(e&T.Self)&&!(e&T.Host&&t)}var Dt=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Cd(this._tNode,this._lView,t,xo(r),n)}};function Um(){return new Dt(U(),v())}function bN(e){return kn(()=>{let t=e.prototype.constructor,n=t[Kr]||os(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Kr]||os(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function os(e){return Il(e)?()=>{let t=os(W(e));return t&&t()}:It(e)}function zm(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[E]&2048&&!(s[E]&512);){let a=bd(i,s,n,r|T.Self,Te);if(a!==Te)return a;let u=i.parent;if(!u){let c=s[Zl];if(c){let l=c.get(n,Te,r);if(l!==Te)return l}u=_d(s),s=s[on]}i=u}return o}function _d(e){let t=e[w],n=t.type;return n===2?t.declTNode:n===1?e[X]:null}function Gm(e){return Bm(U(),e)}function Pc(e,t=null,n=null,r){let o=Md(e,t,n,r);return o.resolveInjectorInitializers(),o}function Md(e,t=null,n=null,r,o=new Set){let i=[n||Z,Qg(e)];return r=r||(typeof e=="object"?void 0:oe(e)),new xn(i,t||No(),r||null,o)}var yt=class yt{static create(t,n){if(Array.isArray(t))return Pc({name:""},n,t,"");{let r=t.name??"";return Pc({name:r},t.parent,t.providers,r)}}};yt.THROW_IF_NOT_FOUND=bn,yt.NULL=new to,yt.\u0275prov=k({token:yt,providedIn:"any",factory:()=>se(Al)}),yt.__NG_ELEMENT_ID__=-1;var He=yt;var Wm=new F("");Wm.__NG_ELEMENT_ID__=e=>{let t=U();if(t===null)throw new _(204,!1);if(t.type&2)return t.value;if(e&T.Optional)return null;throw new _(204,!1)};var qm="ngOriginalError";function Fi(e){return e[qm]}var xd=!0,Bo=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=Zm,t.__NG_ENV_ID__=r=>r;let e=t;return e})(),is=class extends Bo{constructor(t){super(),this._lView=t}onDestroy(t){return rd(this._lView,t),()=>mm(this._lView,t)}};function Zm(){return new is(v())}var Un=(()=>{let t=class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new fn(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};t.\u0275prov=k({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})();var ss=class extends ce{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,ql()&&(this.destroyRef=M(Bo,{optional:!0})??void 0,this.pendingTasks=M(Un,{optional:!0})??void 0)}emit(t){let n=x(null);try{super.next(t)}finally{x(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let u=t;o=u.next?.bind(u),i=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof j&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},Ce=ss;function co(...e){}function Sd(e){let t,n;function r(){e=co;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function kc(e){return queueMicrotask(()=>e()),()=>{e=co}}var Sa="isAngularZone",lo=Sa+"_ID",Ym=0,ie=class e{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ce(!1),this.onMicrotaskEmpty=new Ce(!1),this.onStable=new Ce(!1),this.onError=new Ce(!1);let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=xd}=t;if(typeof Zone>"u")throw new _(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)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,Jm(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Sa)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new _(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new _(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Qm,co,co);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},Qm={};function Ta(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Km(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Sd(()=>{e.callbackScheduled=!1,as(e),e.isCheckStableRunning=!0,Ta(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),as(e)}function Jm(e){let t=()=>{Km(e)},n=Ym++;e._inner=e._inner.fork({name:"angular",properties:{[Sa]:!0,[lo]:n,[lo+n]:!0},onInvokeTask:(r,o,i,s,a,u)=>{if(Xm(u))return r.invokeTask(i,s,a,u);try{return Lc(e),r.invokeTask(i,s,a,u)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),jc(e)}},onInvoke:(r,o,i,s,a,u,c)=>{try{return Lc(e),r.invoke(i,s,a,u,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!ey(u)&&t(),jc(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,as(e),Ta(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function as(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Lc(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function jc(e){e._nesting--,Ta(e)}var us=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ce,this.onMicrotaskEmpty=new Ce,this.onStable=new Ce,this.onError=new Ce}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function Xm(e){return Td(e,"__ignore_ng_zone__")}function ey(e){return Td(e,"__scheduler_tick__")}function Td(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var xt=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Fi(t);for(;n&&Fi(n);)n=Fi(n);return n||null}},ty=new F("",{providedIn:"root",factory:()=>{let e=M(ie),t=M(xt);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function Vc(e,t){return yl(e,t)}function ny(e){return yl(ml,e)}var _N=(Vc.required=ny,Vc);function ry(){return an(U(),v())}function an(e,t){return new st(ge(e,t))}var st=(()=>{let t=class t{constructor(r){this.nativeElement=r}};t.__NG_ELEMENT_ID__=ry;let e=t;return e})();function Nd(e){return e instanceof st?e.nativeElement:e}function oy(){return this._results[Symbol.iterator]()}var cs=class e{get changes(){return this._changes??=new Ce}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 n=e.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=oy)}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,n){return this._results.reduce(t,n)}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,n){this.dirty=!1;let r=Sg(t);(this._changesDetected=!xg(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[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 Ad(e){return(e.flags&128)===128}var Od=new Map,iy=0;function sy(){return iy++}function ay(e){Od.set(e[Ao],e)}function ls(e){Od.delete(e[Ao])}var Bc="__ngContext__";function Oe(e,t){et(t)?(e[Bc]=t[Ao],ay(t)):e[Bc]=t}function Fd(e){return Pd(e[Sn])}function Rd(e){return Pd(e[be])}function Pd(e){for(;e!==null&&!ze(e);)e=e[be];return e}var ds;function MN(e){ds=e}function Na(){if(ds!==void 0)return ds;if(typeof document<"u")return document;throw new _(210,!1)}var xN=new F("",{providedIn:"root",factory:()=>uy}),uy="ng",cy=new F(""),kd=new F("",{providedIn:"platform",factory:()=>"unknown"});var SN=new F(""),TN=new F("",{providedIn:"root",factory:()=>Na().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var ly="h",dy="b";var fy=()=>null;function Aa(e,t,n=!1){return fy(e,t,n)}var Ld=!1,py=new F("",{providedIn:"root",factory:()=>Ld});var kr;function hy(){if(kr===void 0&&(kr=null,Je.trustedTypes))try{kr=Je.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return kr}function $o(e){return hy()?.createHTML(e)||e}var Lr;function jd(){if(Lr===void 0&&(Lr=null,Je.trustedTypes))try{Lr=Je.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Lr}function $c(e){return jd()?.createHTML(e)||e}function Hc(e){return jd()?.createScriptURL(e)||e}var Ue=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${hl})`}},fs=class extends Ue{getTypeName(){return"HTML"}},ps=class extends Ue{getTypeName(){return"Style"}},hs=class extends Ue{getTypeName(){return"Script"}},gs=class extends Ue{getTypeName(){return"URL"}},ms=class extends Ue{getTypeName(){return"ResourceURL"}};function At(e){return e instanceof Ue?e.changingThisBreaksApplicationSecurity:e}function Oa(e,t){let n=gy(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${hl})`)}return n===t}function gy(e){return e instanceof Ue&&e.getTypeName()||null}function NN(e){return new fs(e)}function AN(e){return new ps(e)}function ON(e){return new hs(e)}function FN(e){return new gs(e)}function RN(e){return new ms(e)}function Vd(e){let t=new vs(e);return my()?new ys(t):t}var ys=class{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{let n=new window.DOMParser().parseFromString($o(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},vs=class{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=$o(t),n}};function my(){try{return!!new window.DOMParser().parseFromString($o(""),"text/html")}catch{return!1}}var yy=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Fa(e){return e=String(e),e.match(yy)?e:"unsafe:"+e}function We(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function zn(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var Bd=We("area,br,col,hr,img,wbr"),$d=We("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Hd=We("rp,rt"),vy=zn(Hd,$d),Dy=zn($d,We("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")),Iy=zn(Hd,We("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")),Ds=zn(Bd,Dy,Iy,vy),Ra=We("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ey=We("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"),wy=We("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"),Ud=zn(Ra,Ey,wy),Cy=We("script,style,template"),Is=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){o.push(n),n=My(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=_y(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(t){let n=Uc(t).toLowerCase();if(!Ds.hasOwnProperty(n))return this.sanitizedSomething=!0,!Cy.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o"),!0}endElement(t){let n=Uc(t).toLowerCase();Ds.hasOwnProperty(n)&&!Bd.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(zc(t))}};function by(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function _y(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw zd(t);return t}function My(e){let t=e.firstChild;if(t&&by(e,t))throw zd(t);return t}function Uc(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function zd(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var xy=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Sy=/([^\#-~ |!])/g;function zc(e){return e.replace(/&/g,"&").replace(xy,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(Sy,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var jr;function Ty(e,t){let n=null;try{jr=jr||Vd(e);let r=t?String(t):"";n=jr.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=jr.getInertBodyElement(r)}while(r!==i);let a=new Is().sanitizeChildren(Es(n)||n);return $o(a)}finally{if(n){let r=Es(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Es(e){return"content"in e&&Ny(e)?e.content:null}function Ny(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var Ho=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Ho||{});function PN(e){let t=Pa();return t?$c(t.sanitize(Ho.HTML,e)||""):Oa(e,"HTML")?$c(At(e)):Ty(Na(),L(e))}function Ay(e){let t=Pa();return t?t.sanitize(Ho.URL,e)||"":Oa(e,"URL")?At(e):Fa(L(e))}function Oy(e){let t=Pa();if(t)return Hc(t.sanitize(Ho.RESOURCE_URL,e)||"");if(Oa(e,"ResourceURL"))return Hc(At(e));throw new _(904,!1)}function Fy(e,t){return t==="src"&&(e==="embed"||e==="frame"||e==="iframe"||e==="media"||e==="script")||t==="href"&&(e==="base"||e==="link")?Oy:Ay}function kN(e,t,n){return Fy(t,n)(e)}function Pa(){let e=v();return e&&e[Ne].sanitizer}var Ry=/^>|^->||--!>|)/g,ky="\u200B$1\u200B";function Ly(e){return e.replace(Ry,t=>t.replace(Py,ky))}function Gd(e){return e instanceof Function?e():e}function Wd(e){return(e??M(He)).get(kd)==="browser"}var Nn=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Nn||{}),ws;function ka(e,t){return ws(e,t)}function jy(e){ws===void 0&&(ws=e())}function Ut(e,t,n,r,o){if(r!=null){let i,s=!1;ze(r)?i=r:et(r)&&(s=!0,r=r[Fe]);let a=he(r);e===0&&n!==null?o==null?ef(t,n,a):St(t,n,a,o||null,!0):e===1&&n!==null?St(t,n,a,o||null,!0):e===2?af(t,a,s):e===3&&t.destroyNode(a),i!=null&&qy(t,e,i,n,o)}}function qd(e,t){return e.createText(t)}function Zd(e,t,n){e.setValue(t,n)}function Yd(e,t){return e.createComment(Ly(t))}function La(e,t,n){return e.createElement(t,n)}function Vy(e,t){Qd(e,t),t[Fe]=null,t[X]=null}function By(e,t,n,r,o,i){r[Fe]=o,r[X]=t,Go(e,r,n,1,o,i)}function Qd(e,t){t[Ne].changeDetectionScheduler?.notify(9),Go(e,t,t[O],2,null,null)}function $y(e){let t=e[Sn];if(!t)return Ri(e[w],e);for(;t;){let n=null;if(et(t))n=t[Sn];else{let r=t[Q];r&&(n=r)}if(!n){for(;t&&!t[be]&&t!==e;)et(t)&&Ri(t[w],t),t=t[K];t===null&&(t=e),et(t)&&Ri(t[w],t),n=t&&t[be]}t=n}}function Hy(e,t,n,r){let o=Q+r,i=n.length;r>0&&(n[o-1][be]=t),r0&&(e[n-1][be]=r[be]);let i=Xr(e,Q+t);Vy(r[w],r);let s=i[Ve];s!==null&&s.detachView(i[w]),r[K]=null,r[be]=null,r[E]&=-129}return r}function Uo(e,t){if(!(t[E]&256)){let n=t[O];n.destroyNode&&Go(e,t,n,3,null,null),$y(t)}}function Ri(e,t){if(t[E]&256)return;let n=x(null);try{t[E]&=-129,t[E]|=256,t[pe]&&rr(t[pe]),zy(e,t),Uy(e,t),t[w].type===1&&t[O].destroy();let r=t[Et];if(r!==null&&ze(t[K])){r!==t[K]&&ja(r,t);let o=t[Ve];o!==null&&o.detachView(e)}ls(t)}finally{x(n)}}function Uy(e,t){let n=e.cleanup,r=t[no];if(n!==null)for(let i=0;i=0?r[s]():r[-s].unsubscribe(),i+=2}else{let s=r[n[i+1]];n[i].call(s)}r!==null&&(t[no]=null);let o=t[Xe];if(o!==null){t[Xe]=null;for(let i=0;i-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===_n.None||i===_n.Emulated)return null}return ge(r,n)}}function St(e,t,n,r,o){e.insertBefore(t,n,r,o)}function ef(e,t,n){e.appendChild(t,n)}function Gc(e,t,n,r,o){r!==null?St(e,t,n,r,o):ef(e,t,n)}function Va(e,t){return e.parentNode(t)}function Gy(e,t){return e.nextSibling(t)}function tf(e,t,n){return rf(e,t,n)}function nf(e,t,n){return e.type&40?ge(e,n):null}var rf=nf,Cs;function of(e,t){rf=e,Cs=t}function zo(e,t,n,r){let o=Jd(e,r,t),i=t[O],s=r.parent||t[X],a=tf(s,r,t);if(o!=null)if(Array.isArray(n))for(let u=0;uV&&df(e,t,V,!1),Se(s?2:0,o),n(r,o)}finally{bt(i),Se(s?3:1,o)}}function Ha(e,t,n){if(ya(t)){let r=x(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function tv(e,t,n,r){let o=Df(t);o.push(n),e.firstCreatePass&&If(e).push(r,o.length-1)}function nv(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return sd()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,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 Wc(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,u=tt.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let c=i;if(o!==null){if(!o.hasOwnProperty(i))continue;c=o[i]}e===0?qc(r,n,c,a,u):qc(r,n,c,a)}return r}function qc(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function rv(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],u=null,c=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function uv(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;Oo(n)&&gv(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||uo(n,t),Oe(r,t);let s=n.initialInputs;for(let a=o;a{ko(e.lView)},consumerOnSignalRead(){this.lView[pe]=this}});function xv(e){let t=e[pe]??Object.create(Sv);return t.lView=e,t}var Sv=Ie(De({},Rt),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=Ct(e.lView);for(;t&&!Mf(t[w]);)t=Ct(t);t&&nd(t)},consumerOnSignalRead(){this.lView[pe]=this}});function Mf(e){return e.type!==2}var Tv=100;function xf(e,t=!0,n=0){let r=e[Ne],o=r.rendererFactory,i=!1;i||o.begin?.();try{Nv(e,n)}catch(s){throw t&&wf(e,s),s}finally{i||(o.end?.(),r.inlineEffectRunner?.flush())}}function Nv(e,t){let n=ud();try{Ac(!0),xs(e,t);let r=0;for(;Po(e);){if(r===Tv)throw new _(103,!1);r++,xs(e,1)}}finally{Ac(n)}}function Av(e,t,n,r){let o=t[E];if((o&256)===256)return;let i=!1,s=!1;!i&&t[Ne].inlineEffectRunner?.flush(),_a(t);let a=!0,u=null,c=null;i||(Mf(e)?(c=Cv(t),u=dn(c)):Eu()===null?(a=!1,c=xv(t),u=dn(c)):t[pe]&&(rr(t[pe]),t[pe]=null));try{td(t),Cm(e.bindingStartIndex),n!==null&&pf(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let p=e.preOrderCheckHooks;p!==null&&zr(t,p,null)}else{let p=e.preOrderHooks;p!==null&&Gr(t,p,0,null),Ni(t,0)}if(s||Ov(t),Sf(t,0),e.contentQueries!==null&&vf(e,t),!i)if(l){let p=e.contentCheckHooks;p!==null&&zr(t,p)}else{let p=e.contentHooks;p!==null&&Gr(t,p,1),Ni(t,1)}Qy(e,t);let d=e.components;d!==null&&Nf(t,d,0);let f=e.viewQuery;if(f!==null&&Ms(2,f,r),!i)if(l){let p=e.viewCheckHooks;p!==null&&zr(t,p)}else{let p=e.viewHooks;p!==null&&Gr(t,p,2),Ni(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Ur]){for(let p of t[Ur])p();t[Ur]=null}i||(t[E]&=-73)}catch(l){throw i||ko(t),l}finally{c!==null&&(tr(c,u),a&&_v(c)),Ma()}}function Sf(e,t){for(let n=Fd(e);n!==null;n=Rd(n))for(let r=Q;r-1&&(An(t,r),Xr(n,r))}this._attachedToViewContainer=!1}Uo(this._lView[w],this._lView)}onDestroy(t){rd(this._lView,t)}markForCheck(){Qa(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[E]&=-129}reattach(){Xi(this._lView),this._lView[E]|=128}detectChanges(){this._lView[E]|=1024,xf(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new _(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Ki(this._lView),n=this._lView[Et];n!==null&&!t&&ja(n,this._lView),Qd(this._lView[w],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new _(902,!1);this._appRef=t;let n=Ki(this._lView),r=this._lView[Et];r!==null&&!n&&Kd(r,this._lView),Xi(this._lView)}},On=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=kv;let e=t;return e})(),Rv=On,Pv=class extends Rv{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=Zn(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new Tt(o)}};function kv(){return Zo(U(),v())}function Zo(e,t){return e.type&4?new Pv(t,e,an(e,t)):null}function Af(e,t,n){let r=t.insertBeforeIndex,o=Array.isArray(r)?r[0]:r;return o===null?nf(e,t,n):he(n[o])}function Of(e,t,n,r,o){let i=t.insertBeforeIndex;if(Array.isArray(i)){let s=r,a=null;if(t.type&3||(a=s,s=o),s!==null&&t.componentOffset===-1)for(let u=1;u1)for(let n=e.length-2;n>=0;n--){let r=e[n];Rf(r)||Lv(r,t)&&jv(r)===null&&Vv(r,t.index)}}function Rf(e){return!(e.type&64)}function Lv(e,t){return Rf(t)||e.index>t.index}function jv(e){let t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function Vv(e,t){let n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(of(Af,Of),e.insertBeforeIndex=t)}function En(e,t){let n=e.data[t];return n===null||typeof n=="string"?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}function Bv(e,t,n){let r=e.data[t];r===null?e.data[t]=n:r.value=n}function $v(e,t){let n=e.insertBeforeIndex;n===null?(of(Af,Of),n=e.insertBeforeIndex=[null,t]):(ug(Array.isArray(n),!0,"Expecting array here"),n.push(t))}function Hv(e,t,n){let r=$a(e,n,64,null,null);return Ff(t,r),r}function Yo(e,t){let n=t[e.currentCaseLViewIndex];return n===null?n:n<0?~n:n}function Uv(e){return e>>>17}function zv(e){return(e&131070)>>>1}function Gv(e,t,n){return e|t<<17|n<<1}function Wv(e){return e===-1}function Pf(e,t,n){e.index=0;let r=Yo(t,n);r!==null?e.removes=t.remove[r]:e.removes=Z}function Ss(e){if(e.index0)return e.lView[t];{e.stack.push(e.index,e.removes);let n=~t,r=e.lView[w].data[n];return Pf(e,r,e.lView),Ss(e)}}else return e.stack.length===0?null:(e.removes=e.stack.pop(),e.index=e.stack.pop(),Ss(e))}function qv(){let e={stack:[],index:-1};function t(n,r){for(e.lView=r;e.stack.length;)e.stack.pop();return Pf(e,n.value,r),Ss.bind(null,e)}return t}var BN=new RegExp(`^(\\d+)*(${dy}|${ly})*(.*)`);var Zv=()=>{};function Yv(e,t,n,r){Zv(e,t,n,r)}var Qv=()=>{};function Kv(e,t,n){Qv(e,t,n)}var Jv=()=>null;function Jt(e,t){return Jv(e,t)}var Xt=class{},Ka=new F("",{providedIn:"root",factory:()=>!1});var kf=new F(""),Lf=new F(""),Ts=class{},po=class{};function Xv(e){let t=Error(`No component factory found for ${oe(e)}.`);return t[eD]=e,t}var eD="ngComponent";var Ns=class{resolveComponentFactory(t){throw Xv(t)}},lu=class lu{};lu.NULL=new Ns;var en=lu,ho=class{},Qo=(()=>{let t=class t{constructor(){this.destroyNode=null}};t.__NG_ELEMENT_ID__=()=>tD();let e=t;return e})();function tD(){let e=v(),t=U(),n=it(t.index,e);return(et(n)?n:e)[O]}var nD=(()=>{let t=class t{};t.\u0275prov=k({token:t,providedIn:"root",factory:()=>null});let e=t;return e})();function go(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&cf(e,n,i.join(" "))}}function cD(e,t,n){let r=e.projection=[];for(let o=0;o{let t=class t{};t.__NG_ELEMENT_ID__=dD;let e=t;return e})();function dD(){let e=U();return Vf(e,v())}var fD=Qn,jf=class extends fD{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return an(this._hostTNode,this._hostLView)}get injector(){return new Dt(this._hostTNode,this._hostLView)}get parentInjector(){let t=xa(this._hostTNode,this._hostLView);if(yd(t)){let n=so(t,this._hostLView),r=io(t),o=n[w].data[r+8];return new Dt(o,n)}else return new Dt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Yc(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-Q}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Jt(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Kt(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!am(t),a;if(s)a=n;else{let h=n||{};a=h.index,r=h.injector,o=h.projectableNodes,i=h.environmentInjector||h.ngModuleRef}let u=s?t:new tn(nt(t)),c=r||this.parentInjector;if(!i&&u.ngModule==null){let g=(s?c:this.parentInjector).get(rt,null);g&&(i=g)}let l=nt(u.componentType??{}),d=Jt(this._lContainer,l?.id??null),f=d?.firstChild??null,p=u.create(c,o,f,i);return this.insertImpl(p.hostView,a,Kt(this._hostTNode,d)),p}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(hm(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let u=o[K],c=new jf(u,u[X],u[K]);c.detach(c.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return Yn(s,o,i,r),t.attachToViewContainerRef(),Nl(Pi(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Yc(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=An(this._lContainer,n);r&&(Xr(Pi(this._lContainer),n),Uo(r[w],r))}detach(t){let n=this._adjustIndex(t,-1),r=An(this._lContainer,n);return r&&Xr(Pi(this._lContainer),n)!=null?new Tt(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Yc(e){return e[ro]}function Pi(e){return e[ro]||(e[ro]=[])}function Vf(e,t){let n,r=t[e.index];return ze(r)?n=r:(n=yf(r,t,null,e),t[e.index]=n,qo(t,n)),hD(n,t,e,r),new jf(n,e,t)}function pD(e,t){let n=e[O],r=n.createComment(""),o=ge(t,e),i=Va(n,o);return St(n,i,r,Gy(n,o),!1),r}var hD=yD,gD=()=>!1;function mD(e,t,n){return gD(e,t,n)}function yD(e,t,n,r){if(e[wt])return;let o;n.type&8?o=he(r):o=pD(t,n),e[wt]=o}var Os=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Fs=class e{constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i0)r.push(s[a/2]);else{let c=i[a+1],l=t[-u];for(let d=Q;dt.trim())}function Uf(e,t,n){e.queries===null&&(e.queries=new Rs),e.queries.track(new Ps(t,n))}function bD(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t)}function Xa(e,t){return e.queries.getByIndex(t)}function zf(e,t){let n=e[w],r=Xa(n,t);return r.crossesNgTemplate?ks(n,e,t,[]):Bf(n,e,r,t)}var Qc=new Set;function Re(e){Qc.has(e)||(Qc.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function _D(e){return typeof e=="function"&&e[ue]!==void 0}function MD(e,t){Re("NgSignals");let n=Ou(e),r=n[ue];return t?.equal&&(r.equal=t.equal),n.set=o=>sr(r,o),n.update=o=>Fu(r,o),n.asReadonly=xD.bind(n),n}function xD(){let e=this[ue];if(e.readonlyFn===void 0){let t=()=>this();t[ue]=e,e.readonlyFn=t}return e.readonlyFn}function Gf(e){return _D(e)&&typeof e.set=="function"}function Wf(e,t){let n,r=ri(()=>{n._dirtyCounter();let o=AD(n,e);if(t&&o===void 0)throw new _(-951,!1);return o});return n=r[ue],n._dirtyCounter=MD(0),n._flatValue=void 0,r}function SD(){return Wf(!0,!1)}function TD(){return Wf(!0,!0)}function ND(e,t){let n=e[ue];n._lView=v(),n._queryIndex=t,n._queryList=Ja(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1))}function AD(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[E]&4)return t?void 0:Z;let o=Ja(n,r),i=zf(n,r);return o.reset(i,Nd),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}function Kc(e,t){return SD()}function OD(e,t){return TD()}var HN=(Kc.required=OD,Kc);function FD(e){return Object.getPrototypeOf(e.prototype).constructor}function RD(e){let t=FD(e.type),n=!0,r=[e];for(;t;){let o;if(Be(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new _(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=Vr(e.inputs),s.inputTransforms=Vr(e.inputTransforms),s.declaredInputs=Vr(e.declaredInputs),s.outputs=Vr(e.outputs);let a=o.hostBindings;a&&VD(e,a);let u=o.viewQuery,c=o.contentQueries;if(u&&LD(e,u),c&&jD(e,c),PD(e,o),sg(e.outputs,o.outputs),Be(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Mn(o.hostAttrs,n=Mn(n,o.hostAttrs))}}function Vr(e){return e===je?{}:e===Z?[]:e}function LD(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function jD(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function VD(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function UN(e){let t=n=>{let r=(Array.isArray(e)?e:e()).map(o=>typeof o=="function"?{directive:W(o),inputs:je,outputs:je}:{directive:W(o.directive),inputs:Jc(o.inputs),outputs:Jc(o.outputs)});n.hostDirectives===null?(n.findHostDirectiveDefs=qf,n.hostDirectives=r):n.hostDirectives.unshift(...r)};return t.ngInherit=!0,t}function qf(e,t,n){if(e.hostDirectives!==null)for(let r of e.hostDirectives){let o=pa(r.directive);BD(o.declaredInputs,r.inputs),qf(o,t,n),n.set(o,r),t.push(o)}}function Jc(e){if(e===void 0||e.length===0)return je;let t={};for(let n=0;nn()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Vs=class extends Ls{constructor(t){super(),this.moduleType=t}create(t){return new js(this.moduleType,t,[])}};var vo=class extends ot{constructor(t){super(),this.componentFactoryResolver=new mo(this),this.instance=null;let n=new xn([...t.providers,{provide:ot,useValue:this},{provide:en,useValue:this.componentFactoryResolver}],t.parent||No(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function HD(e,t,n=null){return new vo({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function Zf(e){return eu(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function UD(e,t){if(Array.isArray(e))for(let n=0;n{let t=class t{constructor(){this.impl=null}execute(){this.impl?.execute()}};t.\u0275prov=k({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})(),vt=class vt{constructor(){this.ngZone=M(ie),this.scheduler=M(Xt),this.errorHandler=M(xt,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}execute(){this.executing=!0;for(let t of vt.PHASES)for(let n of this.sequences)if(!(n.erroredOrDestroyed||!n.hooks[t]))try{n.pipelinedValue=this.ngZone.runOutsideAngular(()=>n.hooks[t](n.pipelinedValue))}catch(r){n.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let t of this.sequences)t.afterRun(),t.once&&this.sequences.delete(t);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))}};vt.PHASES=[zt.EarlyRead,zt.Write,zt.MixedReadWrite,zt.Read],vt.\u0275prov=k({token:vt,providedIn:"root",factory:()=>new vt});var Bs=vt,$s=class{constructor(t,n,r,o){this.impl=t,this.hooks=n,this.once=r,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=o.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy()}};function QD(e,t){!t?.injector&&ga(QD);let n=t?.injector??M(He);return Wd(n)?(Re("NgAfterRender"),Qf(e,n,t,!1)):Kf}function KD(e,t){!t?.injector&&ga(KD);let n=t?.injector??M(He);return Wd(n)?(Re("NgAfterNextRender"),Qf(e,n,t,!0)):Kf}function JD(e,t){if(e instanceof Function){let n=[void 0,void 0,void 0,void 0];return n[t]=e,n}else return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function Qf(e,t,n,r){let o=t.get(Yf);o.impl??=t.get(Bs);let i=n?.phase??zt.MixedReadWrite,s=new $s(o.impl,JD(e,i),r,t.get(Bo));return o.impl.register(s),s}var Kf={destroy(){}};function XD(e,t,n,r){let o=v(),i=Ge();if(J(o,i,t)){let s=P(),a=Bn();mv(a,o,e,t,n,r)}return XD}function Jf(e,t,n,r){return J(e,Ge(),n)?t+L(n)+r:H}function eI(e,t,n,r,o,i){let s=Vn(),a=Fn(e,s,n,o);return sn(2),a?t+L(n)+r+L(o)+i:H}function tI(e,t,n,r,o,i,s,a,u,c){let l=Vn(),d=nu(e,l,n,o,s,u);return sn(4),d?t+L(n)+r+L(o)+i+L(s)+a+L(u)+c:H}function nI(e,t,n,r,o,i,s,a,u,c,l,d){let f=Vn(),p=nu(e,f,n,o,s,u);return p=J(e,f+4,l)||p,sn(5),p?t+L(n)+r+L(o)+i+L(s)+a+L(u)+c+L(l)+d:H}function rI(e,t,n,r,o,i,s,a,u,c,l,d,f,p){let h=Vn(),g=nu(e,h,n,o,s,u);return g=Fn(e,h+4,l,f)||g,sn(6),g?t+L(n)+r+L(o)+i+L(s)+a+L(u)+c+L(l)+d+L(f)+p:H}function Br(e,t){return e<<17|t<<2}function Nt(e){return e>>17&32767}function oI(e){return(e&2)==2}function iI(e,t){return e&131071|t<<17}function Hs(e){return e|2}function nn(e){return(e&131068)>>2}function ki(e,t){return e&-131069|t<<2}function sI(e){return(e&1)===1}function Us(e){return e|1}function aI(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Nt(s),u=nn(s);e[r]=n;let c=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||jn(d,l)>0)&&(c=!0)}else l=n;if(o)if(u!==0){let f=Nt(e[a+1]);e[r+1]=Br(f,a),f!==0&&(e[f+1]=ki(e[f+1],r)),e[a+1]=iI(e[a+1],r)}else e[r+1]=Br(a,0),a!==0&&(e[a+1]=ki(e[a+1],r)),a=r;else e[r+1]=Br(u,0),a===0?a=r:e[u+1]=ki(e[u+1],r),u=r;c&&(e[r+1]=Hs(e[r+1])),Xc(e,l,r,!0),Xc(e,l,r,!1),uI(t,l,e,r,i),s=Br(a,u),i?t.classBindings=s:t.styleBindings=s}function uI(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&jn(i,t)>=0&&(n[r+1]=Us(n[r+1]))}function Xc(e,t,n,r){let o=e[n+1],i=t===null,s=r?Nt(o):nn(o),a=!1;for(;s!==0&&(a===!1||i);){let u=e[s],c=e[s+1];cI(u,t)&&(a=!0,e[s+1]=r?Us(c):Hs(c)),s=r?Nt(c):nn(c)}a&&(e[n+1]=r?Hs(o):Us(o))}function cI(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?jn(e,t)>=0:!1}var $={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Xf(e){return e.substring($.key,$.keyEnd)}function lI(e){return e.substring($.value,$.valueEnd)}function dI(e){return np(e),ep(e,rn(e,0,$.textEnd))}function ep(e,t){let n=$.textEnd;return n===t?-1:(t=$.keyEnd=pI(e,$.key=t,n),rn(e,t,n))}function fI(e){return np(e),tp(e,rn(e,0,$.textEnd))}function tp(e,t){let n=$.textEnd,r=$.key=rn(e,t,n);return n===r?-1:(r=$.keyEnd=hI(e,r,n),r=el(e,r,n,58),r=$.value=rn(e,r,n),r=$.valueEnd=gI(e,r,n),el(e,r,n,59))}function np(e){$.key=0,$.keyEnd=0,$.value=0,$.valueEnd=0,$.textEnd=e.length}function rn(e,t,n){for(;t32;)t++;return t}function hI(e,t,n){let r;for(;t=65&&(r&-33)<=90||r>=48&&r<=57);)t++;return t}function el(e,t,n,r){return t=rn(e,t,n),t32&&(a=s),i=o,o=r,r=u&-33}return a}function tl(e,t,n,r){let o=-1,i=n;for(;i=0;n=tp(t,n))up(e,Xf(t),lI(t))}function GN(e){ru(bI,op,e,!0)}function op(e,t){for(let n=dI(t);n>=0;n=ep(t,n))Ln(e,Xf(t),!0)}function ip(e,t,n,r){let o=v(),i=P(),s=sn(2);if(i.firstUpdatePass&&ap(i,e,s,r),t!==H&&J(o,s,t)){let a=i.data[me()];cp(i,a,o,o[O],e,o[s+1]=MI(t,n),r,s)}}function ru(e,t,n,r){let o=P(),i=sn(2);o.firstUpdatePass&&ap(o,null,i,r);let s=v();if(n!==H&&J(s,i,n)){let a=o.data[me()];if(lp(a,r)&&!sp(o,i)){let u=r?a.classesWithoutHost:a.stylesWithoutHost;u!==null&&(n=Ui(u,n||"")),zs(o,a,s,n,r)}else _I(o,a,s,s[O],s[i+1],s[i+1]=CI(e,t,n),r,i)}}function sp(e,t){return t>=e.expandoStartIndex}function ap(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[me()],s=sp(e,n);lp(i,r)&&t===null&&!s&&(t=!1),t=DI(o,i,t,r),aI(o,i,t,n,s,r)}}function DI(e,t,n,r){let o=Ca(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Li(null,e,t,n,r),n=Rn(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Li(o,e,t,n,r),i===null){let u=II(e,t,r);u!==void 0&&Array.isArray(u)&&(u=Li(null,e,t,u[1],r),u=Rn(u,t.attrs,r),EI(e,t,r,u))}else i=wI(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function II(e,t,n){let r=n?t.classBindings:t.styleBindings;if(nn(r)!==0)return e[Nt(r)]}function EI(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Nt(o)]=r}function wI(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let u=e[o],c=Array.isArray(u),l=c?u[1]:u,d=l===null,f=n[o+1];f===H&&(f=d?Z:void 0);let p=d?Si(f,r):l===r?f:void 0;if(c&&!Io(p)&&(p=Si(u,r)),Io(p)&&(a=p,s))return a;let h=e[o+1];o=s?Nt(h):nn(h)}if(t!==null){let u=i?t.residualClasses:t.residualStyles;u!=null&&(a=Si(u,r))}return a}function Io(e){return e!==void 0}function MI(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=oe(At(e)))),e}function lp(e,t){return(e.flags&(t?8:16))!==0}function WN(e,t,n){let r=v(),o=Jf(r,e,t,n);ru(Ln,op,o,!0)}var Gs=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function ji(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function xI(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let u=t.length-1;for(;i<=s&&i<=u;){let c=e.at(i),l=t[i],d=ji(i,c,i,l,n);if(d!==0){d<0&&e.updateValue(i,l),i++;continue}let f=e.at(s),p=t[u],h=ji(s,f,u,p,n);if(h!==0){h<0&&e.updateValue(s,p),s--,u--;continue}let g=n(i,c),b=n(s,f),m=n(i,l);if(Object.is(m,b)){let A=n(u,p);Object.is(A,g)?(e.swap(i,s),e.updateValue(s,p),u--,s--):e.move(s,i),e.updateValue(i,l),i++;continue}if(r??=new Eo,o??=ol(e,i,s,n),Ws(e,r,i,m))e.updateValue(i,l),i++,s++;else if(o.has(m))r.set(g,e.detach(i)),s--;else{let A=e.create(i,t[i]);e.attach(i,A),i++,s++}}for(;i<=u;)rl(e,r,n,i,t[i]),i++}else if(t!=null){let u=t[Symbol.iterator](),c=u.next();for(;!c.done&&i<=s;){let l=e.at(i),d=c.value,f=ji(i,l,i,d,n);if(f!==0)f<0&&e.updateValue(i,d),i++,c=u.next();else{r??=new Eo,o??=ol(e,i,s,n);let p=n(i,d);if(Ws(e,r,i,p))e.updateValue(i,d),i++,s++,c=u.next();else if(!o.has(p))e.attach(i,e.create(i,d)),i++,s++,c=u.next();else{let h=n(i,l);r.set(h,e.detach(i)),s--}}}for(;!c.done;)rl(e,r,n,e.length,c.value),c=u.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(u=>{e.destroy(u)})}function Ws(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function rl(e,t,n,r,o){if(Ws(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function ol(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var Eo=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 n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function qN(e,t){Re("NgControlFlow");let n=v(),r=Ge(),o=n[r]!==H?n[r]:-1,i=o!==-1?wo(n,V+o):void 0,s=0;if(J(n,r,e)){let a=x(null);try{if(i!==void 0&&bf(i,s),e!==-1){let u=V+e,c=wo(n,u),l=Qs(n[w],u),d=Jt(c,l.tView.ssrId),f=Zn(n,l,t,{dehydratedView:d});Yn(c,f,s,Kt(l,d))}}finally{x(a)}}else if(i!==void 0){let a=Cf(i,s);a!==void 0&&(a[Y]=t)}}var qs=class{constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-Q}};function ZN(e){return e}function YN(e,t){return t}var Zs=class{constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function QN(e,t,n,r,o,i,s,a,u,c,l,d,f){Re("NgControlFlow");let p=v(),h=P(),g=u!==void 0,b=v(),m=a?s.bind(b[ae][Y]):s,A=new Zs(g,m);b[V+e]=A,Do(p,h,e+1,t,n,r,o,$e(h.consts,i)),g&&Do(p,h,e+2,u,c,l,d,$e(h.consts,f))}var Ys=class extends Gs{constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Q}at(t){return this.getLView(t)[Y].$implicit}attach(t,n){let r=n[Zt];this.needsIndexUpdate||=t!==this.length,Yn(this.lContainer,n,t,Kt(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,SI(this.lContainer,t)}create(t,n){let r=Jt(this.lContainer,this.templateTNode.tView.ssrId),o=Zn(this.hostLView,this.templateTNode,new qs(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){Uo(t[w],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[Y].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t(Hn(!0),La(r,o,Nm()));function FI(e,t,n,r,o){let i=t.consts,s=$e(i,r),a=un(t,e,8,"ng-container",s);s!==null&&go(a,s,!0);let u=$e(i,o);return Wa(t,n,a,u),t.queries!==null&&t.queries.elementStart(t,a),a}function pp(e,t,n){let r=v(),o=P(),i=e+V,s=o.firstCreatePass?FI(i,o,r,t,n):o.data[i];Ae(s,!0);let a=PI(o,r,s,e);return r[i]=a,$n()&&zo(o,r,a,s),Oe(a,r),Fo(s)&&(Ua(o,r,s),Ha(o,s,r)),n!=null&&za(r,s),pp}function hp(){let e=U(),t=P();return Ea()?wa():(e=e.parent,Ae(e,!1)),t.firstCreatePass&&(Vo(t,e),ya(e)&&t.queries.elementEnd(e)),hp}function RI(e,t,n){return pp(e,t,n),hp(),RI}var PI=(e,t,n,r)=>(Hn(!0),Yd(t[O],""));function JN(){return v()}function kI(e,t,n){let r=v(),o=Ge();if(J(r,o,t)){let i=P(),s=Bn();Wn(i,s,r,e,t,r[O],n,!0)}return kI}function LI(e,t,n){let r=v(),o=Ge();if(J(r,o,t)){let i=P(),s=Bn(),a=Ca(i.data),u=Ef(a,s,r);Wn(i,s,r,e,t,u,n,!0)}return LI}var mt=void 0;function jI(e){let t=e,n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return n===1&&r===0?1:5}var VI=["en",[["a","p"],["AM","PM"],mt],[["AM","PM"],mt,mt],[["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"]],mt,[["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"]],mt,[["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}",mt,"{1} 'at' {0}",mt],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",jI],Vi={};function gp(e){let t=BI(e),n=il(t);if(n)return n;let r=t.split("-")[0];if(n=il(r),n)return n;if(r==="en")return VI;throw new _(701,!1)}function mp(e){return gp(e)[ou.PluralCase]}function il(e){return e in Vi||(Vi[e]=Je.ng&&Je.ng.common&&Je.ng.common.locales&&Je.ng.common.locales[e]),Vi[e]}var ou=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(ou||{});function BI(e){return e.toLowerCase().replace(/_/g,"-")}var $I=["zero","one","two","few","many"];function HI(e,t){let n=mp(t)(parseInt(e,10)),r=$I[n];return r!==void 0?r:"other"}var Co="en-US";var yp={marker:"element"},vp={marker:"ICU"},Le=function(e){return e[e.SHIFT=2]="SHIFT",e[e.APPEND_EAGERLY=1]="APPEND_EAGERLY",e[e.COMMENT=2]="COMMENT",e}(Le||{}),Dp=Co;function UI(e){typeof e=="string"&&(Dp=e.toLowerCase().replace(/_/g,"-"))}function zI(){return Dp}var Pn=0,wn=0;function GI(e){e&&(Pn=Pn|1<0){let r=e.data[n],o=Array.isArray(r)?r:r.update,i=Vn()-wn-1;Ep(e,t,o,i,Pn)}Pn=0,wn=0}function qI(e,t,n){let r=e[O];switch(n){case Node.COMMENT_NODE:return Yd(r,t);case Node.TEXT_NODE:return qd(r,t);case Node.ELEMENT_NODE:return La(r,t,null)}}var qr=(e,t,n,r)=>(Hn(!0),qI(e,n,r));function ZI(e,t,n,r){let o=e[O];for(let i=0;i>>Le.SHIFT,d=e[l],f=!1;d===null&&(d=e[l]=qr(e,l,a,u?Node.COMMENT_NODE:Node.TEXT_NODE),f=$n()),c&&n!==null&&f&&St(o,n,d,r,!1)}}function Ip(e,t,n,r){let o=n[O],i=null,s;for(let a=0;a>>1,p=t[++a],h=t[++a];qa(o,Ro(f,n),null,null,p,h,null);break;default:}else switch(u){case vp:let c=t[++a],l=t[++a];if(n[l]===null){let p=n[l]=qr(n,l,c,Node.COMMENT_NODE);Oe(p,n)}break;case yp:let d=t[++a],f=t[++a];if(n[f]===null){let p=n[f]=qr(n,f,d,Node.ELEMENT_NODE);Oe(p,n)}break;default:}}}function Ep(e,t,n,r,o){for(let i=0;i>>2;switch(l&3){case 1:let f=n[++c],p=n[++c],h=e.data[d];typeof h=="string"?qa(t[O],t[d],null,h,f,u,p):Wn(e,h,t,f,u,t[O],p,!1);break;case 0:let g=t[d];g!==null&&Zd(t[O],g,u);break;case 2:YI(e,En(e,d),t,u);break;case 3:sl(e,En(e,d),r,t);break}}}}else{let u=n[i+1];if(u>0&&(u&3)===3){let c=u>>>2,l=En(e,c);t[l.currentCaseLViewIndex]<0&&sl(e,l,r,t)}}i+=a}}function sl(e,t,n,r){let o=r[t.currentCaseLViewIndex];if(o!==null){let i=Pn;o<0&&(o=r[t.currentCaseLViewIndex]=~o,i=-1),Ep(e,r,t.update[o],n,i)}}function YI(e,t,n,r){let o=QI(t,r);if(Yo(t,n)!==o&&(wp(e,t,n),n[t.currentCaseLViewIndex]=o===null?null:~o,o!==null)){let s=n[t.anchorIdx];s&&Ip(e,t.create[o],n,s),Kv(n,t.anchorIdx,o)}}function wp(e,t,n){let r=Yo(t,n);if(r!==null){let o=t.remove[r];for(let i=0;i0){let a=Ro(s,n);a!==null&&af(n[O],a)}else wp(e,En(e,~s),n)}}}function QI(e,t){let n=e.cases.indexOf(t);if(n===-1)switch(e.type){case 1:{let r=HI(t,zI());n=e.cases.indexOf(r),n===-1&&r!=="other"&&(n=e.cases.indexOf("other"));break}case 0:{n=e.cases.indexOf("other");break}}return n===-1?null:n}var bo=/�(\d+):?\d*�/gi;var KI=/�(\d+)�/,Cp=/^\s*(�\d+:?\d*�)\s*,\s*(select|plural)\s*,/,Cn="\uFFFD",JI=/�\/?\*(\d+:\d+)�/gi,XI=/�(\/?[#*]\d+):?\d*�/gi,eE=/\uE500/g;function tE(e){return e.replace(eE," ")}function nE(e,t,n,r,o,i){let s=Tn(),a=[],u=[],c=[[]],l=[[]];o=oE(o,i);let d=tE(o).split(XI);for(let f=0;f`}}let h=[];l.push(h),a=sE(h,t,u,n,r,o,i.cases[d],f.join(""),p)|a}a&&cE(r,a,s),e.push({kind:3,index:s,cases:l,currentCaseLViewIndex:u.currentCaseLViewIndex})}function iE(e){let t=[],n=[],r=1,o=0;e=e.replace(Cp,function(s,a,u){return u==="select"?r=0:r=1,o=parseInt(a.slice(1),10),""});let i=Ks(e);for(let s=0;sn.length&&n.push(u)}return{type:r,mainBinding:o,cases:t,values:n}}function Ks(e){if(!e)return[];let t=0,n=[],r=[],o=/[{}]/g;o.lastIndex=0;let i;for(;i=o.exec(e);){let a=i.index;if(i[0]=="}"){if(n.pop(),n.length==0){let u=e.substring(t,a);Cp.test(u)?r.push(iE(u)):r.push(u),t=a+1}}else{if(n.length==0){let u=e.substring(t,a);r.push(u),t=a+1}n.push("{")}}let s=e.substring(t);return r.push(s),r}function sE(e,t,n,r,o,i,s,a,u){let c=[],l=[],d=[];n.cases.push(s),n.create.push(c),n.remove.push(l),n.update.push(d);let p=Vd(Na()).getInertBodyElement(a),h=Es(p)||p;return h?xp(e,t,n,r,o,c,l,d,h,i,u,0):0}function xp(e,t,n,r,o,i,s,a,u,c,l,d){let f=0,p=u.firstChild;for(;p;){let h=Gn(t,r,1,null);switch(p.nodeType){case Node.ELEMENT_NODE:let g=p,b=g.tagName.toLowerCase();if(Ds.hasOwnProperty(b)){Bi(i,yp,b,c,h),t.data[h]=b;let q=g.attributes;for(let z=0;z{};function gE(e,t,n,r){let o=v(),i=P(),s=U();return iu(i,o,o[O],s,e,t,r),gE}function mE(e,t){let n=U(),r=v(),o=P(),i=Ca(o.data),s=Ef(i,n,r);return iu(o,r,s,n,e,t),mE}function yE(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;iu?a[u]:null}typeof s=="string"&&(i+=2)}return null}function iu(e,t,n,r,o,i,s){let a=Fo(r),c=e.firstCreatePass&&If(e),l=t[Y],d=Df(t),f=!0;if(r.type&3||s){let g=ge(r,t),b=s?s(g):g,m=d.length,A=s?q=>s(he(q[r.index])):r.index,ee=null;if(!s&&a&&(ee=yE(e,t,o,r.index)),ee!==null){let q=ee.__ngLastListenerFn__||ee;q.__ngNextListenerFn__=i,ee.__ngLastListenerFn__=i,f=!1}else{i=ll(r,t,l,i),hE(g,o,i);let q=n.listen(b,o,i);d.push(i,q),c&&c.push(o,A,m,m+1)}}else i=ll(r,t,l,i);let p=r.outputs,h;if(f&&p!==null&&(h=p[o])){let g=h.length;if(g)for(let b=0;b-1?it(e.index,t):t;Qa(s,5);let a=cl(t,n,r,i),u=o.__ngNextListenerFn__;for(;u;)a=cl(t,n,u,i)&&a,u=u.__ngNextListenerFn__;return a}}function tA(e=1){return Sm(e)}function vE(e,t){let n=null,r=jg(e);for(let o=0;o=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function lA(e){let t=wm();return ed(t,V+e)}function dA(e,t=""){let n=v(),r=P(),o=e+V,i=r.firstCreatePass?un(r,o,1,t,null):r.data[o],s=EE(r,n,i,t,e);n[o]=s,$n()&&zo(r,n,s,i),Ae(i,!1)}var EE=(e,t,n,r,o)=>(Hn(!0),qd(t[O],r));function wE(e){return Sp("",e,""),wE}function Sp(e,t,n){let r=v(),o=Jf(r,e,t,n);return o!==H&&qn(r,me(),o),Sp}function CE(e,t,n,r,o){let i=v(),s=eI(i,e,t,n,r,o);return s!==H&&qn(i,me(),s),CE}function bE(e,t,n,r,o,i,s,a,u){let c=v(),l=tI(c,e,t,n,r,o,i,s,a,u);return l!==H&&qn(c,me(),l),bE}function _E(e,t,n,r,o,i,s,a,u,c,l){let d=v(),f=nI(d,e,t,n,r,o,i,s,a,u,c,l);return f!==H&&qn(d,me(),f),_E}function ME(e,t,n,r,o,i,s,a,u,c,l,d,f){let p=v(),h=rI(p,e,t,n,r,o,i,s,a,u,c,l,d,f);return h!==H&&qn(p,me(),h),ME}function xE(e,t,n){Gf(t)&&(t=t());let r=v(),o=Ge();if(J(r,o,t)){let i=P(),s=Bn();Wn(i,s,r,e,t,r[O],n,!1)}return xE}function fA(e,t){let n=Gf(e);return n&&e.set(t),n}function SE(e,t){let n=v(),r=P(),o=U();return iu(r,n,n[O],o,e,t),SE}function TE(e,t,n){let r=P();if(r.firstCreatePass){let o=Be(e);Js(n,r.data,r.blueprint,o,!0),Js(t,r.data,r.blueprint,o,!1)}}function Js(e,t,n,r,o){if(e=W(e),Array.isArray(e))for(let i=0;i>20;if(qt(e)||!e.multi){let p=new _t(c,o,ye),h=Hi(u,t,o?l:l+f,d);h===-1?(rs(uo(a,s),i,u),$i(i,e,t.length),t.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(p),s.push(p)):(n[h]=p,s[h]=p)}else{let p=Hi(u,t,l+f,d),h=Hi(u,t,l,l+f),g=p>=0&&n[p],b=h>=0&&n[h];if(o&&!b||!o&&!g){rs(uo(a,s),i,u);let m=OE(o?AE:NE,n.length,o,r,c);!o&&b&&(n[h].providerFactory=m),$i(i,e,t.length,0),t.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(m),s.push(m)}else{let m=Tp(n[o?h:p],c,!o&&r);$i(i,e,p>-1?p:h,m)}!o&&r&&b&&n[h].componentProviders++}}}function $i(e,t,n,r){let o=qt(t),i=em(t);if(o||i){let u=(i?W(t.useClass):t).prototype.ngOnDestroy;if(u){let c=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=c.indexOf(n);l===-1?c.push(n,[r,u]):c[l+1].push(r,u)}else c.push(n,u)}}}function Tp(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Hi(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>TE(r,o?o(e):e,t)}}var FE=(()=>{let t=class t{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){let o=Hl(!1,r.type),i=o.length>0?HD([o],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r,i)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(let r of this.cachedInjectors.values())r!==null&&r.destroy()}finally{this.cachedInjectors.clear()}}};t.\u0275prov=k({token:t,providedIn:"environment",factory:()=>new t(se(rt))});let e=t;return e})();function hA(e){Re("NgStandalone"),e.getStandaloneInjector=t=>t.get(FE).getOrCreateStandaloneInjector(e)}function gA(e,t,n){let r=Lo()+e,o=v();return o[r]===H?tu(o,r,n?t.call(n):t()):zD(o,r)}function mA(e,t,n,r){return Ap(v(),Lo(),e,t,n,r)}function yA(e,t,n,r,o){return RE(v(),Lo(),e,t,n,r,o)}function Np(e,t){let n=e[t];return n===H?void 0:n}function Ap(e,t,n,r,o,i){let s=t+n;return J(e,s,o)?tu(e,s+1,i?r.call(i,o):r(o)):Np(e,s+1)}function RE(e,t,n,r,o,i,s){let a=t+n;return Fn(e,a,o,i)?tu(e,a+2,s?r.call(s,o,i):r(o,i)):Np(e,a+2)}function vA(e,t){let n=P(),r,o=e+V;n.firstCreatePass?(r=PE(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=It(r.type,!0)),s,a=re(ye);try{let u=ao(!1),c=i();return ao(u),IE(n,v(),o,c),c}finally{re(a)}}function PE(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function DA(e,t,n){let r=e+V,o=v(),i=ed(o,r);return kE(o,r)?Ap(o,Lo(),t,i.transform,n,i):i.transform(n)}function kE(e,t){return e[w].data[t].pure}function IA(e,t){return Zo(e,t)}var EA=(()=>{let t=class t{log(r){console.log(r)}warn(r){console.warn(r)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})();var LE=new F("");function Ko(e){return!!e&&typeof e.then=="function"}function su(e){return!!e&&typeof e.subscribe=="function"}var jE=new F(""),Op=(()=>{let t=class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o}),this.appInits=M(jE,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let r=[];for(let i of this.appInits){let s=i();if(Ko(s))r.push(s);else if(su(s)){let a=new Promise((u,c)=>{s.subscribe({complete:u,error:c})});r.push(a)}}let o=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{o()}).catch(i=>{this.reject(i)}),r.length===0&&o(),this.initialized=!0}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),VE=new F("");function BE(){Au(()=>{throw new _(600,!1)})}function $E(e){return e.isBoundToModule}var HE=10;function UE(e,t,n){try{let r=n();return Ko(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var Jo=(()=>{let t=class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=M(ty),this.afterRenderManager=M(Yf),this.zonelessEnabled=M(Ka),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new ce,this.afterTick=new ce,this.componentTypes=[],this.components=[],this.isStable=M(Un).hasPendingTasks.pipe(xe(r=>!r)),this._injector=M(rt)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let r;return new Promise(o=>{r=this.isStable.subscribe({next:i=>{i&&o()}})}).finally(()=>{r.unsubscribe()})}get injector(){return this._injector}bootstrap(r,o){let i=r instanceof po;if(!this._injector.get(Op).done){let p=!i&&qg(r),h=!1;throw new _(405,h)}let a;i?a=r:a=this._injector.get(en).resolveComponentFactory(r),this.componentTypes.push(a.componentType);let u=$E(a)?void 0:this._injector.get(ot),c=o||a.selector,l=a.create(He.NULL,[],c,u),d=l.location.nativeElement,f=l.injector.get(LE,null);return f?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),Yr(this.components,l),f?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new _(101,!1);let r=x(null);try{this._runningTick=!0,this.synchronize()}catch(o){this.internalErrorHandler(o)}finally{this._runningTick=!1,x(r),this.afterTick.next()}}synchronize(){let r=null;this._injector.destroyed||(r=this._injector.get(ho,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let o=0;for(;this.dirtyFlags!==0&&o++Po(r))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(r){let o=r;this._views.push(o),o.attachToAppRef(this)}detachView(r){let o=r;Yr(this._views,o),o.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);let o=this._injector.get(VE,[]);[...this._bootstrapListeners,...o].forEach(i=>i(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>Yr(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new _(406,!1);let r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Yr(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function zE(e,t,n,r){if(!n&&!Po(e))return;xf(e,t,n&&!r?0:1)}var ea=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},wA=(()=>{let t=class t{compileModuleSync(r){return new Vs(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){let o=this.compileModuleSync(r),i=Vl(r),s=Gd(i.declarations).reduce((a,u)=>{let c=nt(u);return c&&a.push(new tn(c)),a},[]);return new ea(o,s)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var GE=(()=>{let t=class t{constructor(){this.zone=M(ie),this.changeDetectionScheduler=M(Xt),this.applicationRef=M(Jo)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),WE=new F("",{factory:()=>!1});function Fp({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new ie(Ie(De({},Rp()),{scheduleInRootZone:n})),[{provide:ie,useFactory:e},{provide:eo,multi:!0,useFactory:()=>{let r=M(GE,{optional:!0});return()=>r.initialize()}},{provide:eo,multi:!0,useFactory:()=>{let r=M(qE);return()=>{r.initialize()}}},t===!0?{provide:kf,useValue:!0}:[],{provide:Lf,useValue:n??xd}]}function CA(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=Fp({ngZoneFactory:()=>{let o=Rp(e);return o.scheduleInRootZone=n,o.shouldCoalesceEventChangeDetection&&Re("NgZone_CoalesceEvent"),new ie(o)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return Yg([{provide:WE,useValue:!0},{provide:Ka,useValue:!1},r])}function Rp(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var qE=(()=>{let t=class t{constructor(){this.subscription=new j,this.initialized=!1,this.zone=M(ie),this.pendingTasks=M(Un)}initialize(){if(this.initialized)return;this.initialized=!0;let r=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(r=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ie.assertNotInAngularZone(),queueMicrotask(()=>{r!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(r),r=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ie.assertInAngularZone(),r??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var ZE=(()=>{let t=class t{constructor(){this.appRef=M(Jo),this.taskService=M(Un),this.ngZone=M(ie),this.zonelessEnabled=M(Ka),this.disableScheduling=M(kf,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new j,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(lo):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(M(Lf,{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 us||!this.zoneIsDefined)}notify(r){if(!this.zonelessEnabled&&r===5)return;switch(r){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 o=this.useMicrotaskScheduler?kc:Sd;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(lo+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let r=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(o){throw this.taskService.remove(r),o}finally{this.cleanup()}this.useMicrotaskScheduler=!0,kc(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(r)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let r=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(r)}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function YE(){return typeof $localize<"u"&&$localize.locale||Co}var au=new F("",{providedIn:"root",factory:()=>M(au,T.Optional|T.SkipSelf)||YE()});var Pp=new F("");function $r(e){return!!e.platformInjector}function QE(e){let t=$r(e)?e.r3Injector:e.moduleRef.injector,n=t.get(ie);return n.run(()=>{$r(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(xt,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),$r(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Pp);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else e.moduleRef.onDestroy(()=>{Yr(e.allPlatformModules,e.moduleRef),o.unsubscribe()});return UE(r,n,()=>{let i=t.get(Op);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(au,Co);if(UI(s||Co),$r(e)){let a=t.get(Jo);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return KE(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function KE(e,t){let n=e.injector.get(Jo);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new _(-403,!1);t.push(e)}var Qr=null;function JE(e=[],t){return He.create({name:t,providers:[{provide:Gl,useValue:"platform"},{provide:Pp,useValue:new Set([()=>Qr=null])},...e]})}function XE(e=[]){if(Qr)return Qr;let t=JE(e);return Qr=t,BE(),ew(t),t}function ew(e){e.get(cy,null)?.forEach(n=>n())}var Xo=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=tw;let e=t;return e})();function tw(e){return nw(U(),v(),(e&16)===16)}function nw(e,t,n){if(Oo(e)&&!n){let r=it(e.index,t);return new Tt(r,r)}else if(e.type&175){let r=t[ae];return new Tt(r,t)}return null}var ta=class{constructor(){}supports(t){return Zf(t)}create(t){return new na(t)}},rw=(e,t)=>t,na=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||rw}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),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,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new ra(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}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,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new _o),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new _o),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,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},ra=class{constructor(t,n){this.item=t,this.trackById=n,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}},oa=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,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},_o=class{constructor(){this.map=new Map}put(t){let n=t.trackById,r=this.map.get(n);r||(r=new oa,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function dl(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{let i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;r!==null;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){let r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){let o=this._records.get(t);this._maybeAddToChanges(o,n);let i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}let r=new aa(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_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,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,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,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}},aa=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 fl(){return new kp([new ta])}var kp=(()=>{let t=class t{constructor(r){this.factories=r}static create(r,o){if(o!=null){let i=o.factories.slice();r=r.concat(i)}return new t(r)}static extend(r){return{provide:t,useFactory:o=>t.create(r,o||fl()),deps:[[t,new Tl,new Sl]]}}find(r){let o=this.factories.find(i=>i.supports(r));if(o!=null)return o;throw new _(901,!1)}};t.\u0275prov=k({token:t,providedIn:"root",factory:fl});let e=t;return e})();function pl(){return new uu([new ia])}var uu=(()=>{let t=class t{constructor(r){this.factories=r}static create(r,o){if(o){let i=o.factories.slice();r=r.concat(i)}return new t(r)}static extend(r){return{provide:t,useFactory:o=>t.create(r,o||pl()),deps:[[t,new Tl,new Sl]]}}find(r){let o=this.factories.find(i=>i.supports(r));if(o)return o;throw new _(901,!1)}};t.\u0275prov=k({token:t,providedIn:"root",factory:pl});let e=t;return e})();function bA(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=XE(r),i=[Fp({}),{provide:Xt,useExisting:ZE},...n||[]],s=new vo({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return QE({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}}var _A=new F("");function ow(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function iw(e,t=NaN){return!isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}function MA(e,t){Re("NgSignals");let n=ri(e);return t?.equal&&(n[ue].equal=t.equal),n}function cu(e){let t=x(null);try{return e()}finally{x(t)}}var sw=new F("",{providedIn:"root",factory:()=>M(aw)}),aw=(()=>{let t=class t{};t.\u0275prov=k({token:t,providedIn:"root",factory:()=>new ua});let e=t;return e})(),ua=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=M(Un),this.taskId=null}scheduleEffect(t){if(this.enqueue(t),this.taskId===null){let n=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(n),this.taskId=null})}}enqueue(t){let n=t.creationZone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}},ca=class{constructor(t,n,r,o,i,s){this.scheduler=t,this.effectFn=n,this.creationZone=r,this.injector=i,this.watcher=Ru(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(n){this.injector.get(xt,null,{optional:!0})?.handleError(n)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function uw(e,t){Re("NgSignals"),!t?.injector&&ga(uw);let n=t?.injector??M(He),r=t?.manualCleanup!==!0?n.get(Bo):null,o=new ca(n.get(sw),e,typeof Zone>"u"?null:Zone.current,r,n,t?.allowSignalWrites??!1),i=n.get(Xo,null,{optional:!0});return!i||!(i._lView[E]&8)?o.watcher.notify():(i._lView[Ur]??=[]).push(o.watcher.notify),o}function xA(e,t){let n=nt(e),r=t.elementInjector||No();return new tn(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector)}var Hp=null;function du(){return Hp}function ZA(e){Hp??=e}var Lp=class{};var Up=new F(""),zp=(()=>{let t=class t{historyGo(r){throw new Error("")}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=k({token:t,factory:()=>M(lw),providedIn:"platform"});let e=t;return e})();var lw=(()=>{let t=class t extends zp{constructor(){super(),this._doc=M(Up),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return du().getBaseHref(this._doc)}onPopState(r){let o=du().getGlobalEventTarget(this._doc,"window");return o.addEventListener("popstate",r,!1),()=>o.removeEventListener("popstate",r)}onHashChange(r){let o=du().getGlobalEventTarget(this._doc,"window");return o.addEventListener("hashchange",r,!1),()=>o.removeEventListener("hashchange",r)}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(r){this._location.pathname=r}pushState(r,o,i){this._history.pushState(r,o,i)}replaceState(r,o,i){this._history.replaceState(r,o,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(r=0){this._history.go(r)}getState(){return this._history.state}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=k({token:t,factory:()=>new t,providedIn:"platform"});let e=t;return e})();function Gp(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function jp(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function Ot(e){return e&&e[0]!=="?"?"?"+e:e}var gu=(()=>{let t=class t{historyGo(r){throw new Error("")}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=k({token:t,factory:()=>M(fw),providedIn:"root"});let e=t;return e})(),dw=new F(""),fw=(()=>{let t=class t extends gu{constructor(r,o){super(),this._platformLocation=r,this._removeListenerFns=[],this._baseHref=o??this._platformLocation.getBaseHrefFromDOM()??M(Up).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(r){this._removeListenerFns.push(this._platformLocation.onPopState(r),this._platformLocation.onHashChange(r))}getBaseHref(){return this._baseHref}prepareExternalUrl(r){return Gp(this._baseHref,r)}path(r=!1){let o=this._platformLocation.pathname+Ot(this._platformLocation.search),i=this._platformLocation.hash;return i&&r?`${o}${i}`:o}pushState(r,o,i,s){let a=this.prepareExternalUrl(i+Ot(s));this._platformLocation.pushState(r,o,a)}replaceState(r,o,i,s){let a=this.prepareExternalUrl(i+Ot(s));this._platformLocation.replaceState(r,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(r=0){this._platformLocation.historyGo?.(r)}};t.\u0275fac=function(o){return new(o||t)(se(zp),se(dw,8))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var pw=(()=>{let t=class t{constructor(r){this._subject=new Ce,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=r;let o=this._locationStrategy.getBaseHref();this._basePath=mw(jp(Vp(o))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(r=!1){return this.normalize(this._locationStrategy.path(r))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(r,o=""){return this.path()==this.normalize(r+Ot(o))}normalize(r){return t.stripTrailingSlash(gw(this._basePath,Vp(r)))}prepareExternalUrl(r){return r&&r[0]!=="/"&&(r="/"+r),this._locationStrategy.prepareExternalUrl(r)}go(r,o="",i=null){this._locationStrategy.pushState(i,"",r,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+Ot(o)),i)}replaceState(r,o="",i=null){this._locationStrategy.replaceState(i,"",r,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+Ot(o)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(r=0){this._locationStrategy.historyGo?.(r)}onUrlChange(r){return this._urlChangeListeners.push(r),this._urlChangeSubscription??=this.subscribe(o=>{this._notifyUrlChangeListeners(o.url,o.state)}),()=>{let o=this._urlChangeListeners.indexOf(r);this._urlChangeListeners.splice(o,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(r="",o){this._urlChangeListeners.forEach(i=>i(r,o))}subscribe(r,o,i){return this._subject.subscribe({next:r,error:o,complete:i})}};t.normalizeQueryParams=Ot,t.joinWithSlash=Gp,t.stripTrailingSlash=jp,t.\u0275fac=function(o){return new(o||t)(se(gu))},t.\u0275prov=k({token:t,factory:()=>hw(),providedIn:"root"});let e=t;return e})();function hw(){return new pw(se(gu))}function gw(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Vp(e){return e.replace(/\/index.html$/,"")}function mw(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}function YA(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var fu=/\s+/,Bp=[],QA=(()=>{let t=class t{constructor(r,o){this._ngEl=r,this._renderer=o,this.initialClasses=Bp,this.stateMap=new Map}set klass(r){this.initialClasses=r!=null?r.trim().split(fu):Bp}set ngClass(r){this.rawClass=typeof r=="string"?r.trim().split(fu):r}ngDoCheck(){for(let o of this.initialClasses)this._updateState(o,!0);let r=this.rawClass;if(Array.isArray(r)||r instanceof Set)for(let o of r)this._updateState(o,!0);else if(r!=null)for(let o of Object.keys(r))this._updateState(o,!!r[o]);this._applyStateDiff()}_updateState(r,o){let i=this.stateMap.get(r);i!==void 0?(i.enabled!==o&&(i.changed=!0,i.enabled=o),i.touched=!0):this.stateMap.set(r,{enabled:o,changed:!0,touched:!0})}_applyStateDiff(){for(let r of this.stateMap){let o=r[0],i=r[1];i.changed?(this._toggleClass(o,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(o,!1),this.stateMap.delete(o)),i.touched=!1}}_toggleClass(r,o){r=r.trim(),r.length>0&&r.split(fu).forEach(i=>{o?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}};t.\u0275fac=function(o){return new(o||t)(ye(st),ye(Qo))},t.\u0275dir=So({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0});let e=t;return e})();var KA=(()=>{let t=class t{constructor(r,o,i){this._ngEl=r,this._differs=o,this._renderer=i,this._ngStyle=null,this._differ=null}set ngStyle(r){this._ngStyle=r,!this._differ&&r&&(this._differ=this._differs.find(r).create())}ngDoCheck(){if(this._differ){let r=this._differ.diff(this._ngStyle);r&&this._applyChanges(r)}}_setStyle(r,o){let[i,s]=r.split("."),a=i.indexOf("-")===-1?void 0:Nn.DashCase;o!=null?this._renderer.setStyle(this._ngEl.nativeElement,i,s?`${o}${s}`:o,a):this._renderer.removeStyle(this._ngEl.nativeElement,i,a)}_applyChanges(r){r.forEachRemovedItem(o=>this._setStyle(o.key,null)),r.forEachAddedItem(o=>this._setStyle(o.key,o.currentValue)),r.forEachChangedItem(o=>this._setStyle(o.key,o.currentValue))}};t.\u0275fac=function(o){return new(o||t)(ye(st),ye(uu),ye(Qo))},t.\u0275dir=So({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});let e=t;return e})(),JA=(()=>{let t=class t{constructor(r){this._viewContainerRef=r,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(r){if(this._shouldRecreateView(r)){let o=this._viewContainerRef;if(this._viewRef&&o.remove(o.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=o.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(r){return!!r.ngTemplateOutlet||!!r.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(r,o,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,o,i):!1,get:(r,o,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,o,i)}})}};t.\u0275fac=function(o){return new(o||t)(ye(Qn))},t.\u0275dir=So({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[va]});let e=t;return e})();function Wp(e,t){return new _(2100,!1)}var pu=class{createSubscription(t,n){return cu(()=>t.subscribe({next:n,error:r=>{throw r}}))}dispose(t){cu(()=>t.unsubscribe())}},hu=class{createSubscription(t,n){return t.then(n,r=>{throw r})}dispose(t){}},yw=new hu,vw=new pu,XA=(()=>{let t=class t{constructor(r){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=r}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(r){if(!this._obj){if(r)try{this.markForCheckOnValueUpdate=!1,this._subscribe(r)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return r!==this._obj?(this._dispose(),this.transform(r)):this._latestValue}_subscribe(r){this._obj=r,this._strategy=this._selectStrategy(r),this._subscription=this._strategy.createSubscription(r,o=>this._updateLatestValue(r,o))}_selectStrategy(r){if(Ko(r))return yw;if(su(r))return vw;throw Wp(t,r)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(r,o){r===this._obj&&(this._latestValue=o,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}};t.\u0275fac=function(o){return new(o||t)(ye(Xo,16))},t.\u0275pipe=To({name:"async",type:t,pure:!1,standalone:!0});let e=t;return e})();var eO=(()=>{let t=class t{transform(r){if(r==null)return null;if(typeof r!="string")throw Wp(t,r);return r.toUpperCase()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275pipe=To({name:"uppercase",type:t,pure:!0,standalone:!0});let e=t;return e})();var tO=(()=>{let t=class t{transform(r){return JSON.stringify(r,null,2)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275pipe=To({name:"json",type:t,pure:!1,standalone:!0});let e=t;return e})();var nO=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=Ll({type:t}),t.\u0275inj=El({});let e=t;return e})(),Dw="browser",Iw="server";function rO(e){return e===Dw}function oO(e){return e===Iw}var $p=class{};var _e=function(e){return e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger",e}(_e||{}),aO="*";function uO(e,t){return{type:_e.Trigger,name:e,definitions:t,options:{}}}function cO(e,t=null){return{type:_e.Animate,styles:t,timings:e}}function lO(e,t=null){return{type:_e.Group,steps:e,options:t}}function dO(e,t=null){return{type:_e.Sequence,steps:e,options:t}}function fO(e){return{type:_e.Style,styles:e,offset:null}}function pO(e,t,n){return{type:_e.State,name:e,styles:t,options:n}}function hO(e){return{type:_e.Keyframes,steps:e}}function gO(e,t,n=null){return{type:_e.Transition,expr:e,animation:t,options:n}}function mO(e=null){return{type:_e.AnimateChild,options:e}}function yO(e,t,n=null){return{type:_e.Query,selector:e,animation:t,options:n}}var qp=class{constructor(t=0,n=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+n}_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 n=t=="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},Zp=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 n=0,r=0,o=0,i=this.players.length;i==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++n==i&&this._onFinish()}),s.onDestroy(()=>{++r==i&&this._onDestroy()}),s.onStart(()=>{++o==i&&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 n=t*this.totalTime;this.players.forEach(r=>{let o=r.totalTime?Math.min(1,n/r.totalTime):1;r.setPosition(o)})}getPosition(){let t=this.players.reduce((n,r)=>n===null||r.totalTime>n.totalTime?r:n,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){let n=t=="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},vO="!";export{De as a,Ie as b,Ew as c,Jp as d,j as e,lt as f,ch as g,S as h,pi as i,hi as j,ce as k,fn as l,hn as m,gh as n,Me as o,mh as p,dt as q,yn as r,de as s,Di as t,bh as u,_h as v,pt as w,xe as x,Fh as y,fe as z,Ye as A,Ph as B,kh as C,Ii as D,ht as E,Uh as F,zh as G,Qe as H,Gh as I,Ei as J,Wh as K,qh as L,Zh as M,cc as N,vn as O,gt as P,wi as Q,dc as R,Yh as S,Jh as T,fc as U,bi as V,_i as W,pc as X,Xh as Y,eg as Z,xi as _,hc as $,tg as aa,gc as ba,mc as ca,yc as da,ng as ea,vc as fa,rg as ga,_ as ha,Dl as ia,k as ja,El as ka,yN as la,F as ma,T as na,se as oa,M as pa,Sl as qa,Tl as ra,_n as sa,vN as ta,Ll as ua,So as va,To as wa,Yg as xa,Qg as ya,Gl as za,rt as Aa,DN as Ba,ga as Ca,va as Da,IN as Ea,EN as Fa,wN as Ga,CN as Ha,bN as Ia,Gm as Ja,He as Ka,Bo as La,Un as Ma,Ce as Na,ie as Oa,xt as Pa,_N as Qa,st as Ra,cs as Sa,MN as Ta,xN as Ua,cy as Va,kd as Wa,SN as Xa,TN as Ya,At as Za,Oa as _a,NN as $a,AN as ab,ON as bb,FN as cb,RN as db,Fa as eb,Ty as fb,Ho as gb,PN as hb,Ay as ib,kN as jb,Nn as kb,LN as lb,ye as mb,jN as nb,On as ob,Xt as pb,en as qb,ho as rb,Qo as sb,Qn as tb,Re as ub,_D as vb,MD as wb,HN as xb,RD as yb,UN as zb,$D as Ab,Ls as Bb,HD as Cb,qD as Db,zt as Eb,QD as Fb,KD as Gb,XD as Hb,mI as Ib,rp as Jb,yI as Kb,zN as Lb,GN as Mb,WN as Nb,qN as Ob,ZN as Pb,YN as Qb,QN as Rb,KN as Sb,dp as Tb,fp as Ub,AI as Vb,pp as Wb,hp as Xb,RI as Yb,JN as Zb,kI as _b,LI as $b,XN as ac,pE as bc,eA as cc,gE as dc,mE as ec,tA as fc,nA as gc,rA as hc,oA as ic,iA as jc,sA as kc,aA as lc,uA as mc,cA as nc,lA as oc,dA as pc,wE as qc,Sp as rc,CE as sc,bE as tc,_E as uc,ME as vc,xE as wc,fA as xc,SE as yc,pA as zc,hA as Ac,gA as Bc,mA as Cc,yA as Dc,vA as Ec,DA as Fc,IA as Gc,EA as Hc,Ko as Ic,jE as Jc,VE as Kc,Jo as Lc,wA as Mc,CA as Nc,au as Oc,Xo as Pc,kp as Qc,bA as Rc,_A as Sc,ow as Tc,iw as Uc,MA as Vc,cu as Wc,uw as Xc,xA as Yc,du as Zc,ZA as _c,Lp as $c,Up as ad,gu as bd,pw as cd,YA as dd,QA as ed,KA as fd,JA as gd,XA as hd,eO as id,tO as jd,nO as kd,Dw as ld,rO as md,oO as nd,$p as od,_e as pd,aO as qd,uO as rd,cO as sd,lO as td,dO as ud,fO as vd,pO as wd,hO as xd,gO as yd,mO as zd,yO as Ad,qp as Bd,Zp as Cd,vO as Dd}; diff --git a/chunk-47CQYKNA.js b/chunk-47CQYKNA.js new file mode 100644 index 00000000..46679427 --- /dev/null +++ b/chunk-47CQYKNA.js @@ -0,0 +1 @@ +import{Bd as x,Cd as Ce,Dd as ue,a as he,c as pt,ha as S,ja as gt,pd as E,qd as B,ud as yt,vd as Me}from"./chunk-3VTLHUFB.js";function _t(n){return new S(3e3,!1)}function Ht(){return new S(3100,!1)}function Yt(){return new S(3101,!1)}function Xt(n){return new S(3001,!1)}function Zt(n){return new S(3003,!1)}function Jt(n){return new S(3004,!1)}function xt(n,e){return new S(3005,!1)}function es(){return new S(3006,!1)}function ts(){return new S(3007,!1)}function ss(n,e){return new S(3008,!1)}function is(n){return new S(3002,!1)}function ns(n,e,t,s,i){return new S(3010,!1)}function rs(){return new S(3011,!1)}function as(){return new S(3012,!1)}function os(){return new S(3200,!1)}function ls(){return new S(3202,!1)}function hs(){return new S(3013,!1)}function us(n){return new S(3014,!1)}function cs(n){return new S(3015,!1)}function fs(n){return new S(3016,!1)}function ds(n){return new S(3500,!1)}function ms(n){return new S(3501,!1)}function ps(n,e){return new S(3404,!1)}function gs(n){return new S(3502,!1)}function ys(n){return new S(3503,!1)}function _s(){return new S(3300,!1)}function Ss(n){return new S(3504,!1)}function Es(n){return new S(3301,!1)}function Ts(n,e){return new S(3302,!1)}function vs(n){return new S(3303,!1)}function ws(n,e){return new S(3400,!1)}function bs(n){return new S(3401,!1)}function As(n){return new S(3402,!1)}function Ps(n,e){return new S(3505,!1)}var Ns=new Set(["-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-ms-grid-columns","-ms-grid-rows","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","accent-color","all","backdrop-filter","background","background-color","background-position","background-size","block-size","border","border-block-end","border-block-end-color","border-block-end-width","border-block-start","border-block-start-color","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-width","border-color","border-end-end-radius","border-end-start-radius","border-image-outset","border-image-slice","border-image-width","border-inline-end","border-inline-end-color","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-width","border-left","border-left-color","border-left-width","border-radius","border-right","border-right-color","border-right-width","border-start-end-radius","border-start-start-radius","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-width","border-width","bottom","box-shadow","caret-color","clip","clip-path","color","column-count","column-gap","column-rule","column-rule-color","column-rule-width","column-width","columns","filter","flex","flex-basis","flex-grow","flex-shrink","font","font-size","font-size-adjust","font-stretch","font-variation-settings","font-weight","gap","grid-column-gap","grid-gap","grid-row-gap","grid-template-columns","grid-template-rows","height","inline-size","input-security","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","left","letter-spacing","line-clamp","line-height","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","mask","mask-border","mask-position","mask-size","max-block-size","max-height","max-inline-size","max-lines","max-width","min-block-size","min-height","min-inline-size","min-width","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","outline","outline-color","outline-offset","outline-width","padding","padding-block-end","padding-block-start","padding-bottom","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","perspective","perspective-origin","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-coordinate","scroll-snap-destination","scrollbar-color","shape-image-threshold","shape-margin","shape-outside","tab-size","text-decoration","text-decoration-color","text-decoration-thickness","text-emphasis","text-emphasis-color","text-indent","text-shadow","text-underline-offset","top","transform","transform-origin","translate","vertical-align","visibility","width","word-spacing","z-index","zoom"]);function U(n){switch(n.length){case 0:return new x;case 1:return n[0];default:return new Ce(n)}}function It(n,e,t=new Map,s=new Map){let i=[],r=[],a=-1,o=null;if(e.forEach(l=>{let h=l.get("offset"),c=h==a,u=c&&o||new Map;l.forEach((_,y)=>{let d=y,g=_;if(y!=="offset")switch(d=n.normalizePropertyName(d,i),g){case ue:g=t.get(y);break;case B:g=s.get(y);break;default:g=n.normalizeStyleValue(y,d,g,i);break}u.set(d,g)}),c||r.push(u),o=u,a=h}),i.length)throw gs(i);return r}function tt(n,e,t,s){switch(e){case"start":n.onStart(()=>s(t&&ke(t,"start",n)));break;case"done":n.onDone(()=>s(t&&ke(t,"done",n)));break;case"destroy":n.onDestroy(()=>s(t&&ke(t,"destroy",n)));break}}function ke(n,e,t){let s=t.totalTime,i=!!t.disabled,r=st(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,s??n.totalTime,i),a=n._data;return a!=null&&(r._data=a),r}function st(n,e,t,s,i="",r=0,a){return{element:n,triggerName:e,fromState:t,toState:s,phaseName:i,totalTime:r,disabled:!!a}}function L(n,e,t){let s=n.get(e);return s||n.set(e,s=t),s}function St(n){let e=n.indexOf(":"),t=n.substring(1,e),s=n.slice(e+1);return[t,s]}var Ms=typeof document>"u"?null:document.documentElement;function it(n){let e=n.parentNode||n.host||null;return e===Ms?null:e}function Cs(n){return n.substring(1,6)=="ebkit"}var H=null,Et=!1;function ks(n){H||(H=Ds()||{},Et=H.style?"WebkitAppearance"in H.style:!1);let e=!0;return H.style&&!Cs(n)&&(e=n in H.style,!e&&Et&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in H.style)),e}function Ai(n){return Ns.has(n)}function Ds(){return typeof document<"u"?document.body:null}function zt(n,e){for(;e;){if(e===n)return!0;e=it(e)}return!1}function Kt(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let s=n.querySelector(e);return s?[s]:[]}var qt=(()=>{let e=class e{validateStyleProperty(s){return ks(s)}containsElement(s,i){return zt(s,i)}getParentElement(s){return it(s)}query(s,i,r){return Kt(s,i,r)}computeStyle(s,i,r){return r||""}animate(s,i,r,a,o,l=[],h){return new x(r,a)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=gt({token:e,factory:e.\u0275fac});let n=e;return n})(),ut=class ut{};ut.NOOP=new qt;var Tt=ut,Ie=class{},ze=class{normalizePropertyName(e,t){return e}normalizeStyleValue(e,t,s,i){return s}},Rs=1e3,Bt="{{",Os="}}",nt="ng-enter",ge="ng-leave",ce="ng-trigger",ye=".ng-trigger",vt="ng-animating",Ke=".ng-animating";function $(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:qe(parseFloat(e[1]),e[2])}function qe(n,e){switch(e){case"s":return n*Rs;default:return n}}function _e(n,e,t){return n.hasOwnProperty("duration")?n:Ls(n,e,t)}function Ls(n,e,t){let s=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i,r=0,a="";if(typeof n=="string"){let o=n.match(s);if(o===null)return e.push(_t(n)),{duration:0,delay:0,easing:""};i=qe(parseFloat(o[1]),o[2]);let l=o[3];l!=null&&(r=qe(parseFloat(l),o[4]));let h=o[5];h&&(a=h)}else i=n;if(!t){let o=!1,l=e.length;i<0&&(e.push(Ht()),o=!0),r<0&&(e.push(Yt()),o=!0),o&&e.splice(l,0,_t(n))}return{duration:i,delay:r,easing:a}}function Fs(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function wt(n){return Array.isArray(n)?new Map(...n):new Map(n)}function Q(n,e,t){e.forEach((s,i)=>{let r=rt(i);t&&!t.has(i)&&t.set(i,n.style[r]),n.style[r]=s})}function X(n,e){e.forEach((t,s)=>{let i=rt(s);n.style[i]=""})}function ie(n){return Array.isArray(n)?n.length==1?n[0]:yt(n):n}function Is(n,e,t){let s=e.params||{},i=Qt(n);i.length&&i.forEach(r=>{s.hasOwnProperty(r)||t.push(Xt(r))})}var Be=new RegExp(`${Bt}\\s*(.+?)\\s*${Os}`,"g");function Qt(n){let e=[];if(typeof n=="string"){let t;for(;t=Be.exec(n);)e.push(t[1]);Be.lastIndex=0}return e}function re(n,e,t){let s=`${n}`,i=s.replace(Be,(r,a)=>{let o=e[a];return o==null&&(t.push(Zt(a)),o=""),o.toString()});return i==s?n:i}var zs=/-+([a-z0-9])/g;function rt(n){return n.replace(zs,(...e)=>e[1].toUpperCase())}function Pi(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ks(n,e){return n===0||e===0}function qs(n,e,t){if(t.size&&e.length){let s=e[0],i=[];if(t.forEach((r,a)=>{s.has(a)||i.push(a),s.set(a,r)}),i.length)for(let r=1;ra.set(o,at(n,o)))}}return e}function O(n,e,t){switch(e.type){case E.Trigger:return n.visitTrigger(e,t);case E.State:return n.visitState(e,t);case E.Transition:return n.visitTransition(e,t);case E.Sequence:return n.visitSequence(e,t);case E.Group:return n.visitGroup(e,t);case E.Animate:return n.visitAnimate(e,t);case E.Keyframes:return n.visitKeyframes(e,t);case E.Style:return n.visitStyle(e,t);case E.Reference:return n.visitReference(e,t);case E.AnimateChild:return n.visitAnimateChild(e,t);case E.AnimateRef:return n.visitAnimateRef(e,t);case E.Query:return n.visitQuery(e,t);case E.Stagger:return n.visitStagger(e,t);default:throw Jt(e.type)}}function at(n,e){return window.getComputedStyle(n)[e]}var Bs=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"]),Qe=class extends Ie{normalizePropertyName(e,t){return rt(e)}normalizeStyleValue(e,t,s,i){let r="",a=s.toString().trim();if(Bs.has(t)&&s!==0&&s!=="0")if(typeof s=="number")r="px";else{let o=s.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&i.push(xt(e,s))}return a+r}};var Se="*";function Qs(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(s=>$s(s,t,e)):t.push(n),t}function $s(n,e,t){if(n[0]==":"){let l=Vs(n,t);if(typeof l=="function"){e.push(l);return}n=l}let s=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(s==null||s.length<4)return t.push(cs(n)),e;let i=s[1],r=s[2],a=s[3];e.push(bt(i,a));let o=i==Se&&a==Se;r[0]=="<"&&!o&&e.push(bt(a,i))}function Vs(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,s)=>parseFloat(s)>parseFloat(t);case":decrement":return(t,s)=>parseFloat(s) *"}}var fe=new Set(["true","1"]),de=new Set(["false","0"]);function bt(n,e){let t=fe.has(n)||de.has(n),s=fe.has(e)||de.has(e);return(i,r)=>{let a=n==Se||n==i,o=e==Se||e==r;return!a&&t&&typeof i=="boolean"&&(a=i?fe.has(n):de.has(n)),!o&&s&&typeof r=="boolean"&&(o=r?fe.has(e):de.has(e)),a&&o}}var $t=":self",Us=new RegExp(`s*${$t}s*,?`,"g");function ot(n,e,t,s){return new $e(n).build(e,t,s)}var At="",$e=class{constructor(e){this._driver=e}build(e,t,s){let i=new Ve(t);return this._resetContextStyleTimingState(i),O(this,ie(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=At,e.collectedStyles=new Map,e.collectedStyles.set(At,new Map),e.currentTime=0}visitTrigger(e,t){let s=t.queryCount=0,i=t.depCount=0,r=[],a=[];return e.name.charAt(0)=="@"&&t.errors.push(es()),e.definitions.forEach(o=>{if(this._resetContextStyleTimingState(t),o.type==E.State){let l=o,h=l.name;h.toString().split(/\s*,\s*/).forEach(c=>{l.name=c,r.push(this.visitState(l,t))}),l.name=h}else if(o.type==E.Transition){let l=this.visitTransition(o,t);s+=l.queryCount,i+=l.depCount,a.push(l)}else t.errors.push(ts())}),{type:E.Trigger,name:e.name,states:r,transitions:a,queryCount:s,depCount:i,options:null}}visitState(e,t){let s=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(s.containsDynamicStyles){let r=new Set,a=i||{};s.styles.forEach(o=>{o instanceof Map&&o.forEach(l=>{Qt(l).forEach(h=>{a.hasOwnProperty(h)||r.add(h)})})}),r.size&&t.errors.push(ss(e.name,[...r.values()]))}return{type:E.State,name:e.name,style:s,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let s=O(this,ie(e.animation),t),i=Qs(e.expr,t.errors);return{type:E.Transition,matchers:i,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:Y(e.options)}}visitSequence(e,t){return{type:E.Sequence,steps:e.steps.map(s=>O(this,s,t)),options:Y(e.options)}}visitGroup(e,t){let s=t.currentTime,i=0,r=e.steps.map(a=>{t.currentTime=s;let o=O(this,a,t);return i=Math.max(i,t.currentTime),o});return t.currentTime=i,{type:E.Group,steps:r,options:Y(e.options)}}visitAnimate(e,t){let s=Hs(e.timings,t.errors);t.currentAnimateTimings=s;let i,r=e.styles?e.styles:Me({});if(r.type==E.Keyframes)i=this.visitKeyframes(r,t);else{let a=e.styles,o=!1;if(!a){o=!0;let h={};s.easing&&(h.easing=s.easing),a=Me(h)}t.currentTime+=s.duration+s.delay;let l=this.visitStyle(a,t);l.isEmptyStep=o,i=l}return t.currentAnimateTimings=null,{type:E.Animate,timings:s,style:i,options:null}}visitStyle(e,t){let s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){let s=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let o of i)typeof o=="string"?o===B?s.push(o):t.errors.push(is(o)):s.push(new Map(Object.entries(o)));let r=!1,a=null;return s.forEach(o=>{if(o instanceof Map&&(o.has("easing")&&(a=o.get("easing"),o.delete("easing")),!r)){for(let l of o.values())if(l.toString().indexOf(Bt)>=0){r=!0;break}}}),{type:E.Style,styles:s,easing:a,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let s=t.currentAnimateTimings,i=t.currentTime,r=t.currentTime;s&&r>0&&(r-=s.duration+s.delay),e.styles.forEach(a=>{typeof a!="string"&&a.forEach((o,l)=>{let h=t.collectedStyles.get(t.currentQuerySelector),c=h.get(l),u=!0;c&&(r!=i&&r>=c.startTime&&i<=c.endTime&&(t.errors.push(ns(l,c.startTime,c.endTime,r,i)),u=!1),r=c.startTime),u&&h.set(l,{startTime:r,endTime:i}),t.options&&Is(o,t.options,t.errors)})})}visitKeyframes(e,t){let s={type:E.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(rs()),s;let i=1,r=0,a=[],o=!1,l=!1,h=0,c=e.steps.map(b=>{let A=this._makeStyleAst(b,t),C=A.offset!=null?A.offset:Gs(A.styles),N=0;return C!=null&&(r++,N=A.offset=C),l=l||N<0||N>1,o=o||N0&&r{let C=_>0?A==y?1:_*A:a[A],N=C*v;t.currentTime=d+g.delay+N,g.duration=N,this._validateStyleAst(b,t),b.offset=C,s.styles.push(b)}),s}visitReference(e,t){return{type:E.Reference,animation:O(this,ie(e.animation),t),options:Y(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:E.AnimateChild,options:Y(e.options)}}visitAnimateRef(e,t){return{type:E.AnimateRef,animation:this.visitReference(e.animation,t),options:Y(e.options)}}visitQuery(e,t){let s=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;let[r,a]=js(e.selector);t.currentQuerySelector=s.length?s+" "+r:r,L(t.collectedStyles,t.currentQuerySelector,new Map);let o=O(this,ie(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:E.Query,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:o,originalSelector:e.selector,options:Y(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(hs());let s=e.timings==="full"?{duration:0,delay:0,easing:"full"}:_e(e.timings,t.errors,!0);return{type:E.Stagger,animation:O(this,ie(e.animation),t),timings:s,options:null}}};function js(n){let e=!!n.split(/\s*,\s*/).find(t=>t==$t);return e&&(n=n.replace(Us,"")),n=n.replace(/@\*/g,ye).replace(/@\w+/g,t=>ye+"-"+t.slice(1)).replace(/:animating/g,Ke),[n,e]}function Ws(n){return n?he({},n):null}var Ve=class{constructor(e){this.errors=e,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 Gs(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){let s=t;e=parseFloat(s.get("offset")),s.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function Hs(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let r=_e(n,e).duration;return De(r,0,"")}let t=n;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=De(0,0,"");return r.dynamic=!0,r.strValue=t,r}let i=_e(t,e);return De(i.duration,i.delay,i.easing)}function Y(n){return n?(n=he({},n),n.params&&(n.params=Ws(n.params))):n={},n}function De(n,e,t){return{duration:n,delay:e,easing:t}}function lt(n,e,t,s,i,r,a=null,o=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:s,duration:i,delay:r,totalTime:i+r,easing:a,subTimeline:o}}var se=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Ys=1,Xs=":enter",Zs=new RegExp(Xs,"g"),Js=":leave",xs=new RegExp(Js,"g");function ht(n,e,t,s,i,r=new Map,a=new Map,o,l,h=[]){return new Ue().buildKeyframes(n,e,t,s,i,r,a,o,l,h)}var Ue=class{buildKeyframes(e,t,s,i,r,a,o,l,h,c=[]){h=h||new se;let u=new je(e,t,h,i,r,c,[]);u.options=l;let _=l.delay?$(l.delay):0;u.currentTimeline.delayNextStep(_),u.currentTimeline.setStyles([a],null,u.errors,l),O(this,s,u);let y=u.timelines.filter(d=>d.containsAnimation());if(y.length&&o.size){let d;for(let g=y.length-1;g>=0;g--){let v=y[g];if(v.element===t){d=v;break}}d&&!d.allowOnlyTimelineStyles()&&d.setStyles([o],null,u.errors,l)}return y.length?y.map(d=>d.buildKeyframes()):[lt(t,[],[],[],0,_,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let s=t.subInstructions.get(t.element);if(s){let i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,a=this._visitSubInstructions(s,i,i.options);r!=a&&t.transformIntoNewTimeline(a)}t.previousNode=e}visitAnimateRef(e,t){let s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,s),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,s){for(let i of e){let r=i?.delay;if(r){let a=typeof r=="number"?r:$(re(r,i?.params??{},t.errors));s.delayNextStep(a)}}}_visitSubInstructions(e,t,s){let r=t.currentTimeline.currentTime,a=s.duration!=null?$(s.duration):null,o=s.delay!=null?$(s.delay):null;return a!==0&&e.forEach(l=>{let h=t.appendInstructionToTimeline(l,a,o);r=Math.max(r,h.duration+h.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),O(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let s=t.subContextCount,i=t,r=e.options;if(r&&(r.params||r.delay)&&(i=t.createSubContext(r),i.transformIntoNewTimeline(),r.delay!=null)){i.previousNode.type==E.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Ee);let a=$(r.delay);i.delayNextStep(a)}e.steps.length&&(e.steps.forEach(a=>O(this,a,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>s&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let s=[],i=t.currentTimeline.currentTime,r=e.options&&e.options.delay?$(e.options.delay):0;e.steps.forEach(a=>{let o=t.createSubContext(e.options);r&&o.delayNextStep(r),O(this,a,o),i=Math.max(i,o.currentTimeline.currentTime),s.push(o.currentTimeline)}),s.forEach(a=>t.currentTimeline.mergeTimelineCollectedStyles(a)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let s=e.strValue,i=t.params?re(s,t.params,t.errors):s;return _e(i,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let s=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),i.snapshotCurrentStyles());let r=e.style;r.type==E.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(s.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let s=t.currentTimeline,i=t.currentAnimateTimings;!i&&s.hasCurrentStyleProperties()&&s.forwardFrame();let r=i&&i.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(r):s.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let s=t.currentAnimateTimings,i=t.currentTimeline.duration,r=s.duration,o=t.createSubContext().currentTimeline;o.easing=s.easing,e.styles.forEach(l=>{let h=l.offset||0;o.forwardTime(h*r),o.setStyles(l.styles,l.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e}visitQuery(e,t){let s=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?$(i.delay):0;r&&(t.previousNode.type===E.Style||s==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ee);let a=s,o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=o.length;let l=null;o.forEach((h,c)=>{t.currentQueryIndex=c;let u=t.createSubContext(e.options,h);r&&u.delayNextStep(r),h===t.element&&(l=u.currentTimeline),O(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let _=u.currentTimeline.currentTime;a=Math.max(a,_)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let s=t.parentContext,i=t.currentTimeline,r=e.timings,a=Math.abs(r.duration),o=a*(t.currentQueryTotal-1),l=a*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=o-l;break;case"full":l=s.currentStaggerTime;break}let c=t.currentTimeline;l&&c.delayNextStep(l);let u=c.currentTime;O(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=i.currentTime-u+(i.startTime-s.currentTimeline.startTime)}},Ee={},je=class n{constructor(e,t,s,i,r,a,o,l){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=i,this._leaveClassName=r,this.errors=a,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ee,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Te(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let s=e,i=this.options;s.duration!=null&&(i.duration=$(s.duration)),s.delay!=null&&(i.delay=$(s.delay));let r=s.params;if(r){let a=i.params;a||(a=this.options.params={}),Object.keys(r).forEach(o=>{(!t||!a.hasOwnProperty(o))&&(a[o]=re(r[o],a,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let s=e.params={};Object.keys(t).forEach(i=>{s[i]=t[i]})}}return e}createSubContext(e=null,t,s){let i=t||this.element,r=new n(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,s||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=Ee,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){let i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(s??0)+e.delay,easing:""},r=new We(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,s,i,r,a){let o=[];if(i&&o.push(this.element),e.length>0){e=e.replace(Zs,"."+this._enterClassName),e=e.replace(xs,"."+this._leaveClassName);let l=s!=1,h=this._driver.query(this.element,e,l);s!==0&&(h=s<0?h.slice(h.length+s,h.length):h.slice(0,s)),o.push(...h)}return!r&&o.length==0&&a.push(us(t)),o}},Te=class n{constructor(e,t,s,i){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=i,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(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,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(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new n(this._driver,e,t||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+=Ys,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,s]of this._globalTimelineStyles)this._backFill.set(t,s||B),this._currentKeyframe.set(t,B);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,s,i){t&&this._previousKeyframe.set("easing",t);let r=i&&i.params||{},a=ei(e,this._globalTimelineStyles);for(let[o,l]of a){let h=re(l,r,s);this._pendingStyles.set(o,h),this._localTimelineStyles.has(o)||this._backFill.set(o,this._globalTimelineStyles.get(o)??B),this._updateStyle(o,h)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,s)=>{let i=this._styleSummary.get(s);(!i||t.time>i.time)&&this._updateStyle(s,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,s=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((o,l)=>{let h=new Map([...this._backFill,...o]);h.forEach((c,u)=>{c===ue?e.add(u):c===B&&t.add(u)}),s||h.set("offset",l/this.duration),i.push(h)});let r=[...e.values()],a=[...t.values()];if(s){let o=i[0],l=new Map(o);o.set("offset",0),l.set("offset",1),i=[o,l]}return lt(this.element,i,r,a,this.duration,this.startTime,this.easing,!1)}},We=class extends Te{constructor(e,t,s,i,r,a,o=!1){super(e,t,a.delay),this.keyframes=s,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:s,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],a=s+t,o=t/a,l=new Map(e[0]);l.set("offset",0),r.push(l);let h=new Map(e[0]);h.set("offset",Pt(o)),r.push(h);let c=e.length-1;for(let u=1;u<=c;u++){let _=new Map(e[u]),y=_.get("offset"),d=t+y*s;_.set("offset",Pt(d/a)),r.push(_)}s=a,t=0,i="",e=r}return lt(this.element,e,this.preStyleProps,this.postStyleProps,s,t,i,!0)}};function Pt(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function ei(n,e){let t=new Map,s;return n.forEach(i=>{if(i==="*"){s??=e.keys();for(let r of s)t.set(r,B)}else for(let[r,a]of i)t.set(r,a)}),t}function Nt(n,e,t,s,i,r,a,o,l,h,c,u,_){return{type:0,element:n,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:r,toState:s,toStyles:a,timelines:o,queriedElements:l,preStyleProps:h,postStyleProps:c,totalTime:u,errors:_}}var Re={},ve=class{constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,i){return ti(this.ast.matchers,e,t,s,i)}buildStyles(e,t,s){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,s):new Map}build(e,t,s,i,r,a,o,l,h,c){let u=[],_=this.ast.options&&this.ast.options.params||Re,y=o&&o.params||Re,d=this.buildStyles(s,y,u),g=l&&l.params||Re,v=this.buildStyles(i,g,u),b=new Set,A=new Map,C=new Map,N=i==="void",Z={params:Vt(g,_),delay:this.ast.options?.delay},K=c?[]:ht(e,t,this.ast.animation,r,a,d,v,Z,h,u),k=0;return K.forEach(D=>{k=Math.max(D.duration+D.delay,k)}),u.length?Nt(t,this._triggerName,s,i,N,d,v,[],[],A,C,k,u):(K.forEach(D=>{let j=D.element,J=L(A,j,new Set);D.preStyleProps.forEach(W=>J.add(W));let ct=L(C,j,new Set);D.postStyleProps.forEach(W=>ct.add(W)),j!==t&&b.add(j)}),Nt(t,this._triggerName,s,i,N,d,v,K,[...b.values()],A,C,k))}};function ti(n,e,t,s,i){return n.some(r=>r(e,t,s,i))}function Vt(n,e){let t=he({},e);return Object.entries(n).forEach(([s,i])=>{i!=null&&(t[s]=i)}),t}var Ge=class{constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){let s=new Map,i=Vt(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,o)=>{a&&(a=re(a,i,t));let l=this.normalizer.normalizePropertyName(o,t);a=this.normalizer.normalizeStyleValue(o,l,a,t),s.set(o,a)})}),s}};function si(n,e,t){return new He(n,e,t)}var He=class{constructor(e,t,s){this.name=e,this.ast=t,this._normalizer=s,this.transitionFactories=[],this.states=new Map,t.states.forEach(i=>{let r=i.options&&i.options.params||{};this.states.set(i.name,new Ge(i.style,r,s))}),Mt(this.states,"true","1"),Mt(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new ve(e,i,this.states))}),this.fallbackTransition=ii(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,i){return this.transitionFactories.find(a=>a.match(e,t,s,i))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}};function ii(n,e,t){let s=[(a,o)=>!0],i={type:E.Sequence,steps:[],options:null},r={type:E.Transition,animation:i,matchers:s,options:null,queryCount:0,depCount:0};return new ve(n,r,e)}function Mt(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}var ni=new se,Ye=class{constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let s=[],i=[],r=ot(this._driver,t,s,i);if(s.length)throw ys(s);i.length&&void 0,this._animations.set(e,r)}_buildPlayer(e,t,s){let i=e.element,r=It(this._normalizer,e.keyframes,t,s);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,s={}){let i=[],r=this._animations.get(e),a,o=new Map;if(r?(a=ht(this._driver,t,r,nt,ge,new Map,new Map,s,ni,i),a.forEach(c=>{let u=L(o,c.element,new Map);c.postStyleProps.forEach(_=>u.set(_,null))})):(i.push(_s()),a=[]),i.length)throw Ss(i);o.forEach((c,u)=>{c.forEach((_,y)=>{c.set(y,this._driver.computeStyle(u,y,B))})});let l=a.map(c=>{let u=o.get(c.element);return this._buildPlayer(c,new Map,u)}),h=U(l);return this._playersById.set(e,h),h.onDestroy(()=>this.destroy(e)),this.players.push(h),h}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let s=this.players.indexOf(t);s>=0&&this.players.splice(s,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Es(e);return t}listen(e,t,s,i){let r=st(t,"","","");return tt(this._getPlayer(e),s,r,i),()=>{}}command(e,t,s,i){if(s=="register"){this.register(e,i[0]);return}if(s=="create"){let a=i[0]||{};this.create(e,t,a);return}let r=this._getPlayer(e);switch(s){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e);break}}},Ct="ng-animate-queued",ri=".ng-animate-queued",Oe="ng-animate-disabled",ai=".ng-animate-disabled",oi="ng-star-inserted",li=".ng-star-inserted",hi=[],Ut={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ui={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},z="__ng_removed",ae=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let s=e&&e.hasOwnProperty("value"),i=s?e.value:e;if(this.value=fi(i),s){let r=e,{value:a}=r,o=pt(r,["value"]);this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let s=this.options.params;Object.keys(t).forEach(i=>{s[i]==null&&(s[i]=t[i])})}}},ne="void",Le=new ae(ne),Xe=class{constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,I(t,this._hostClassName)}listen(e,t,s,i){if(!this._triggers.has(t))throw Ts(s,t);if(s==null||s.length==0)throw vs(t);if(!di(s))throw ws(s,t);let r=L(this._elementListeners,e,[]),a={name:t,phase:s,callback:i};r.push(a);let o=L(this._engine.statesByElement,e,new Map);return o.has(t)||(I(e,ce),I(e,ce+"-"+t),o.set(t,Le)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(t)||o.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw bs(e);return t}trigger(e,t,s,i=!0){let r=this._getTrigger(t),a=new oe(this.id,t,e),o=this._engine.statesByElement.get(e);o||(I(e,ce),I(e,ce+"-"+t),this._engine.statesByElement.set(e,o=new Map));let l=o.get(t),h=new ae(s,this.id);if(!(s&&s.hasOwnProperty("value"))&&l&&h.absorbOptions(l.options),o.set(t,h),l||(l=Le),!(h.value===ne)&&l.value===h.value){if(!gi(l.params,h.params)){let g=[],v=r.matchStyles(l.value,l.params,g),b=r.matchStyles(h.value,h.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{X(e,v),Q(e,b)})}return}let _=L(this._engine.playersByElement,e,[]);_.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let y=r.matchTransition(l.value,h.value,e,h.params),d=!1;if(!y){if(!i)return;y=r.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:h,player:a,isFallbackTransition:d}),d||(I(e,Ct),a.onStart(()=>{ee(e,Ct)})),a.onDone(()=>{let g=this.players.indexOf(a);g>=0&&this.players.splice(g,1);let v=this._engine.playersByElement.get(e);if(v){let b=v.indexOf(a);b>=0&&v.splice(b,1)}}),this.players.push(a),_.push(a),a}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,s)=>{this._elementListeners.set(s,t.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(s=>s.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let s=this._engine.driver.query(e,ye,!0);s.forEach(i=>{if(i[z])return;let r=this._engine.fetchNamespacesByElement(i);r.size?r.forEach(a=>a.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>s.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,t,s,i){let r=this._engine.statesByElement.get(e),a=new Map;if(r){let o=[];if(r.forEach((l,h)=>{if(a.set(h,l.value),this._triggers.has(h)){let c=this.trigger(e,h,ne,i);c&&o.push(c)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,a),s&&U(o).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){let i=new Set;t.forEach(r=>{let a=r.name;if(i.has(a))return;i.add(a);let l=this._triggers.get(a).fallbackTransition,h=s.get(a)||Le,c=new ae(ne),u=new oe(this.id,a,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:a,transition:l,fromState:h,toState:c,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(s.totalAnimations){let r=s.players.length?s.playersByQueriedElement.get(e):[];if(r&&r.length)i=!0;else{let a=e;for(;a=a.parentNode;)if(s.statesByElement.get(a)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)s.markElementAsRemoved(this.id,e,!1,t);else{let r=e[z];(!r||r===Ut)&&(s.afterFlush(()=>this.clearElementCache(e)),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){I(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(s=>{let i=s.player;if(i.destroyed)return;let r=s.element,a=this._elementListeners.get(r);a&&a.forEach(o=>{if(o.name==s.triggerName){let l=st(r,s.triggerName,s.fromState.value,s.toState.value);l._data=e,tt(s.player,o.phase,l,o.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(s)}),this._queue=[],t.sort((s,i)=>{let r=s.transition.ast.depCount,a=i.transition.ast.depCount;return r==0||a==0?r-a:this._engine.driver.containsElement(s.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Ze=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,s){this.bodyNode=e,this.driver=t,this._normalizer=s,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=(i,r)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(s=>{s.queued&&e.push(s)})}),e}createNamespace(e,t){let s=new Xe(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){let s=this._namespaceList,i=this.namespacesByHostElement;if(s.length-1>=0){let a=!1,o=this.driver.getParentElement(t);for(;o;){let l=i.get(o);if(l){let h=s.indexOf(l);s.splice(h+1,0,e),a=!0;break}o=this.driver.getParentElement(o)}a||s.unshift(e)}else s.push(e);return i.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let i=this._namespaceLookup[e];i&&i.register(t,s)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);let i=this._namespaceList.indexOf(s);i>=0&&this._namespaceList.splice(i,1),s.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,s=this.statesByElement.get(e);if(s){for(let i of s.values())if(i.namespaceId){let r=this._fetchNamespace(i.namespaceId);r&&t.add(r)}}return t}trigger(e,t,s,i){if(me(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,s,i),!0}return!1}insertNode(e,t,s,i){if(!me(t))return;let r=t[z];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let a=this.collectedLeaveElements.indexOf(t);a>=0&&this.collectedLeaveElements.splice(a,1)}if(e){let a=this._fetchNamespace(e);a&&a.insertNode(t,s)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),I(e,Oe)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ee(e,Oe))}removeNode(e,t,s){if(me(t)){let i=e?this._fetchNamespace(e):null;i?i.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,s)}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,s,i,r){this.collectedLeaveElements.push(t),t[z]={namespaceId:e,setForRemoval:i,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,s,i,r){return me(t)?this._fetchNamespace(e).listen(t,s,i,r):()=>{}}_buildInstruction(e,t,s,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,i,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,ye,!0);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Ke,!0),t.forEach(s=>this.finishActiveQueriedAnimationOnElement(s)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(s=>{s.queued?s.markedForDestroy=!0:s.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(s=>s.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return U(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[z];if(t&&t.setForRemoval){if(e[z]=Ut,t.namespaceId){this.destroyInnerAnimations(e);let s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Oe)&&this.markElementAsDisabled(e,!1),this.driver.query(e,ai,!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((s,i)=>this._balanceNamespaceList(s,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let s=0;ss()),this._flushFns=[],this._whenQuietFns.length){let s=this._whenQuietFns;this._whenQuietFns=[],t.length?U(t).onDone(()=>{s.forEach(i=>i())}):s.forEach(i=>i())}}reportError(e){throw As(e)}_flushAnimations(e,t){let s=new se,i=[],r=new Map,a=[],o=new Map,l=new Map,h=new Map,c=new Set;this.disabledNodes.forEach(f=>{c.add(f);let m=this.driver.query(f,ri,!0);for(let p=0;p{let p=nt+g++;d.set(m,p),f.forEach(T=>I(T,p))});let v=[],b=new Set,A=new Set;for(let f=0;fb.add(T)):A.add(m))}let C=new Map,N=Rt(_,Array.from(b));N.forEach((f,m)=>{let p=ge+g++;C.set(m,p),f.forEach(T=>I(T,p))}),e.push(()=>{y.forEach((f,m)=>{let p=d.get(m);f.forEach(T=>ee(T,p))}),N.forEach((f,m)=>{let p=C.get(m);f.forEach(T=>ee(T,p))}),v.forEach(f=>{this.processLeaveNode(f)})});let Z=[],K=[];for(let f=this._namespaceList.length-1;f>=0;f--)this._namespaceList[f].drainQueuedTransitions(t).forEach(p=>{let T=p.player,P=p.element;if(Z.push(T),this.collectedEnterElements.length){let M=P[z];if(M&&M.setForMove){if(M.previousTriggersValues&&M.previousTriggersValues.has(p.triggerName)){let G=M.previousTriggersValues.get(p.triggerName),F=this.statesByElement.get(p.element);if(F&&F.has(p.triggerName)){let le=F.get(p.triggerName);le.value=G,F.set(p.triggerName,le)}}T.destroy();return}}let q=!u||!this.driver.containsElement(u,P),R=C.get(P),V=d.get(P),w=this._buildInstruction(p,s,V,R,q);if(w.errors&&w.errors.length){K.push(w);return}if(q){T.onStart(()=>X(P,w.fromStyles)),T.onDestroy(()=>Q(P,w.toStyles)),i.push(T);return}if(p.isFallbackTransition){T.onStart(()=>X(P,w.fromStyles)),T.onDestroy(()=>Q(P,w.toStyles)),i.push(T);return}let mt=[];w.timelines.forEach(M=>{M.stretchStartingKeyframe=!0,this.disabledNodes.has(M.element)||mt.push(M)}),w.timelines=mt,s.append(P,w.timelines);let Gt={instruction:w,player:T,element:P};a.push(Gt),w.queriedElements.forEach(M=>L(o,M,[]).push(T)),w.preStyleProps.forEach((M,G)=>{if(M.size){let F=l.get(G);F||l.set(G,F=new Set),M.forEach((le,Ne)=>F.add(Ne))}}),w.postStyleProps.forEach((M,G)=>{let F=h.get(G);F||h.set(G,F=new Set),M.forEach((le,Ne)=>F.add(Ne))})});if(K.length){let f=[];K.forEach(m=>{f.push(Ps(m.triggerName,m.errors))}),Z.forEach(m=>m.destroy()),this.reportError(f)}let k=new Map,D=new Map;a.forEach(f=>{let m=f.element;s.has(m)&&(D.set(m,m),this._beforeAnimationBuild(f.player.namespaceId,f.instruction,k))}),i.forEach(f=>{let m=f.element;this._getPreviousPlayers(m,!1,f.namespaceId,f.triggerName,null).forEach(T=>{L(k,m,[]).push(T),T.destroy()})});let j=v.filter(f=>Ot(f,l,h)),J=new Map;Dt(J,this.driver,A,h,B).forEach(f=>{Ot(f,l,h)&&j.push(f)});let W=new Map;y.forEach((f,m)=>{Dt(W,this.driver,new Set(f),l,ue)}),j.forEach(f=>{let m=J.get(f),p=W.get(f);J.set(f,new Map([...m?.entries()??[],...p?.entries()??[]]))});let Pe=[],ft=[],dt={};a.forEach(f=>{let{element:m,player:p,instruction:T}=f;if(s.has(m)){if(c.has(m)){p.onDestroy(()=>Q(m,T.toStyles)),p.disabled=!0,p.overrideTotalTime(T.totalTime),i.push(p);return}let P=dt;if(D.size>1){let R=m,V=[];for(;R=R.parentNode;){let w=D.get(R);if(w){P=w;break}V.push(R)}V.forEach(w=>D.set(w,P))}let q=this._buildAnimation(p.namespaceId,T,k,r,W,J);if(p.setRealPlayer(q),P===dt)Pe.push(p);else{let R=this.playersByElement.get(P);R&&R.length&&(p.parentPlayer=U(R)),i.push(p)}}else X(m,T.fromStyles),p.onDestroy(()=>Q(m,T.toStyles)),ft.push(p),c.has(m)&&i.push(p)}),ft.forEach(f=>{let m=r.get(f.element);if(m&&m.length){let p=U(m);f.setRealPlayer(p)}}),i.forEach(f=>{f.parentPlayer?f.syncPlayerEvents(f.parentPlayer):f.destroy()});for(let f=0;f!q.destroyed);P.length?mi(this,m,P):this.processLeaveNode(m)}return v.length=0,Pe.forEach(f=>{this.players.push(f),f.onDone(()=>{f.destroy();let m=this.players.indexOf(f);this.players.splice(m,1)}),f.play()}),Pe}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,s,i,r){let a=[];if(t){let o=this.playersByQueriedElement.get(e);o&&(a=o)}else{let o=this.playersByElement.get(e);if(o){let l=!r||r==ne;o.forEach(h=>{h.queued||!l&&h.triggerName!=i||a.push(h)})}}return(s||i)&&(a=a.filter(o=>!(s&&s!=o.namespaceId||i&&i!=o.triggerName))),a}_beforeAnimationBuild(e,t,s){let i=t.triggerName,r=t.element,a=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:i;for(let l of t.timelines){let h=l.element,c=h!==r,u=L(s,h,[]);this._getPreviousPlayers(h,c,a,o,t.toState).forEach(y=>{let d=y.getRealPlayer();d.beforeDestroy&&d.beforeDestroy(),y.destroy(),u.push(y)})}X(r,t.fromStyles)}_buildAnimation(e,t,s,i,r,a){let o=t.triggerName,l=t.element,h=[],c=new Set,u=new Set,_=t.timelines.map(d=>{let g=d.element;c.add(g);let v=g[z];if(v&&v.removedBeforeQueried)return new x(d.duration,d.delay);let b=g!==l,A=pi((s.get(g)||hi).map(k=>k.getRealPlayer())).filter(k=>{let D=k;return D.element?D.element===g:!1}),C=r.get(g),N=a.get(g),Z=It(this._normalizer,d.keyframes,C,N),K=this._buildPlayer(d,Z,A);if(d.subTimeline&&i&&u.add(g),b){let k=new oe(e,o,g);k.setRealPlayer(K),h.push(k)}return K});h.forEach(d=>{L(this.playersByQueriedElement,d.element,[]).push(d),d.onDone(()=>ci(this.playersByQueriedElement,d.element,d))}),c.forEach(d=>I(d,vt));let y=U(_);return y.onDestroy(()=>{c.forEach(d=>ee(d,vt)),Q(l,t.toStyles)}),u.forEach(d=>{L(i,d,[]).push(y)}),y}_buildPlayer(e,t,s){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,s):new x(e.duration,e.delay)}},oe=class{constructor(e,t,s){this.namespaceId=e,this.triggerName=t,this.element=s,this._player=new x,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(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,s)=>{t.forEach(i=>tt(e,s,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){L(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}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(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function ci(n,e,t){let s=n.get(e);if(s){if(s.length){let i=s.indexOf(t);s.splice(i,1)}s.length==0&&n.delete(e)}return s}function fi(n){return n??null}function me(n){return n&&n.nodeType===1}function di(n){return n=="start"||n=="done"}function kt(n,e){let t=n.style.display;return n.style.display=e??"none",t}function Dt(n,e,t,s,i){let r=[];t.forEach(l=>r.push(kt(l)));let a=[];s.forEach((l,h)=>{let c=new Map;l.forEach(u=>{let _=e.computeStyle(h,u,i);c.set(u,_),(!_||_.length==0)&&(h[z]=ui,a.push(h))}),n.set(h,c)});let o=0;return t.forEach(l=>kt(l,r[o++])),a}function Rt(n,e){let t=new Map;if(n.forEach(o=>t.set(o,[])),e.length==0)return t;let s=1,i=new Set(e),r=new Map;function a(o){if(!o)return s;let l=r.get(o);if(l)return l;let h=o.parentNode;return t.has(h)?l=h:i.has(h)?l=s:l=a(h),r.set(o,l),l}return e.forEach(o=>{let l=a(o);l!==s&&t.get(l).push(o)}),t}function I(n,e){n.classList?.add(e)}function ee(n,e){n.classList?.remove(e)}function mi(n,e,t){U(t).onDone(()=>n.processLeaveNode(e))}function pi(n){let e=[];return jt(n,e),e}function jt(n,e){for(let t=0;ti.add(r)):e.set(n,s),t.delete(n),!0}var we=class{constructor(e,t,s){this._driver=t,this._normalizer=s,this._triggerCache={},this.onRemovalComplete=(i,r)=>{},this._transitionEngine=new Ze(e.body,t,s),this._timelineEngine=new Ye(e.body,t,s),this._transitionEngine.onRemovalComplete=(i,r)=>this.onRemovalComplete(i,r)}registerTrigger(e,t,s,i,r){let a=e+"-"+i,o=this._triggerCache[a];if(!o){let l=[],h=[],c=ot(this._driver,r,l,h);if(l.length)throw ps(i,l);h.length&&void 0,o=si(i,c,this._normalizer),this._triggerCache[a]=o}this._transitionEngine.registerTrigger(t,i,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,s,i){this._transitionEngine.insertNode(e,t,s,i)}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,s,i){if(s.charAt(0)=="@"){let[r,a]=St(s),o=i;this._timelineEngine.command(r,t,a,o)}else this._transitionEngine.trigger(e,t,s,i)}listen(e,t,s,i,r){if(s.charAt(0)=="@"){let[a,o]=St(s);return this._timelineEngine.listen(a,t,o,r)}return this._transitionEngine.listen(e,t,s,i,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function yi(n,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=Fe(e[0]),e.length>1&&(s=Fe(e[e.length-1]))):e instanceof Map&&(t=Fe(e)),t||s?new Je(n,t,s):null}var te=class te{constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let i=te.initialStylesByElement.get(e);i||te.initialStylesByElement.set(e,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&Q(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Q(this._element,this._initialStyles),this._endStyles&&(Q(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(te.initialStylesByElement.delete(this._element),this._startStyles&&(X(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(X(this._element,this._endStyles),this._endStyles=null),Q(this._element,this._initialStyles),this._state=3)}};te.initialStylesByElement=new WeakMap;var Je=te;function Fe(n){let e=null;return n.forEach((t,s)=>{_i(s)&&(e=e||new Map,e.set(s,t))}),e}function _i(n){return n==="display"||n==="position"}var be=class{constructor(e,t,s,i){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=i,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=s.duration,this._delay=s.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(s=>{t.push(Object.fromEntries(s))}),t}_triggerWebAnimation(e,t,s){return e.animate(this._convertKeyframesToObject(t),s)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),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(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((s,i)=>{i!=="offset"&&e.set(i,this._finished?s:at(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},xe=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return zt(e,t)}getParentElement(e){return it(e)}query(e,t,s){return Kt(e,t,s)}computeStyle(e,t,s){return at(e,t)}animate(e,t,s,i,r,a=[]){let o=i==0?"both":"forwards",l={duration:s,delay:i,fill:o};r&&(l.easing=r);let h=new Map,c=a.filter(y=>y instanceof be);Ks(s,i)&&c.forEach(y=>{y.currentSnapshot.forEach((d,g)=>h.set(g,d))});let u=Fs(t).map(y=>new Map(y));u=qs(e,u,h);let _=yi(e,u);return new be(e,u,l,_)}};function Ni(n,e){return n==="noop"?new we(e,new qt,new ze):new we(e,new xe,new Qe)}var Lt=class{constructor(e,t){this._driver=e;let s=[],i=[],r=ot(e,t,s,i);if(s.length)throw ds(s);i.length&&void 0,this._animationAst=r}buildTimelines(e,t,s,i,r){let a=Array.isArray(t)?wt(t):t,o=Array.isArray(s)?wt(s):s,l=[];r=r||new se;let h=ht(this._driver,e,this._animationAst,nt,ge,a,o,i,r,l);if(l.length)throw ms(l);return h}},pe="@",Wt="@.disabled",Ae=class{constructor(e,t,s,i){this.namespaceId=e,this.delegate=t,this.engine=s,this._onDestroy=i,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,s,i=!0){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,s){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,s,i){this.delegate.setAttribute(e,t,s,i)}removeAttribute(e,t,s){this.delegate.removeAttribute(e,t,s)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,s,i){this.delegate.setStyle(e,t,s,i)}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s)}setProperty(e,t,s){t.charAt(0)==pe&&t==Wt?this.disableAnimations(e,!!s):this.delegate.setProperty(e,t,s)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,s){return this.delegate.listen(e,t,s)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},et=class extends Ae{constructor(e,t,s,i,r){super(t,s,i,r),this.factory=e,this.namespaceId=t}setProperty(e,t,s){t.charAt(0)==pe?t.charAt(1)=="."&&t==Wt?(s=s===void 0?!0:!!s,this.disableAnimations(e,s)):this.engine.process(this.namespaceId,e,t.slice(1),s):this.delegate.setProperty(e,t,s)}listen(e,t,s){if(t.charAt(0)==pe){let i=Si(e),r=t.slice(1),a="";return r.charAt(0)!=pe&&([r,a]=Ei(r)),this.engine.listen(this.namespaceId,i,r,a,o=>{let l=o._data||-1;this.factory.scheduleListenerCallback(l,s,o)})}return this.delegate.listen(e,t,s)}};function Si(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function Ei(n){let e=n.indexOf("."),t=n.substring(0,e),s=n.slice(e+1);return[t,s]}var Ft=class{constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(i,r)=>{r?.removeChild(null,i)}}createRenderer(e,t){let s="",i=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let h=this._rendererCache,c=h.get(i);if(!c){let u=()=>h.delete(i);c=new Ae(s,i,this.engine,u),h.set(i,c)}return c}let r=t.id,a=t.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);let o=h=>{Array.isArray(h)?h.forEach(o):this.engine.registerTrigger(r,a,e,h.name,h)};return t.data.animation.forEach(o),new et(this,a,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,s){if(e>=0&&et(s));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(r=>{let[a,o]=r;a(o)}),this._animationCallbacksBuffer=[]})}),i.push([t,s])}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()}};export{Tt as AnimationDriver,qt as NoopAnimationDriver,Lt as \u0275Animation,we as \u0275AnimationEngine,et as \u0275AnimationRenderer,Ft as \u0275AnimationRendererFactory,Ie as \u0275AnimationStyleNormalizer,Ae as \u0275BaseAnimationRenderer,ze as \u0275NoopAnimationStyleNormalizer,xe as \u0275WebAnimationsDriver,be as \u0275WebAnimationsPlayer,Qe as \u0275WebAnimationsStyleNormalizer,Ks as \u0275allowPreviousPlayerStylesMerge,Pi as \u0275camelCaseToDashCase,zt as \u0275containsElement,Ni as \u0275createEngine,it as \u0275getParentElement,Kt as \u0275invokeQuery,Fs as \u0275normalizeKeyframes,ks as \u0275validateStyleProperty,Ai as \u0275validateWebAnimatableStyleProperty}; diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..385abf38520299f18bd2e0ea28e6c1f8689e1a19 GIT binary patch literal 15086 zcmeHOd0dp`+8)D`-|29u&M&`|GG<{LS=>V05Jg}Bl`s>O9R_j3C0oo?L^cr-WmjA} zE(w%L7FlTvWvJ-M%%u!@5nfK`cfLAxJf~ARg52Nryvy(ojzCTSeBaOcb@$9W!#nr& z+|TvQyzhNos#F71cB+vhRT$N(Y8RDitV*R)tEJ-yRH_!d_5eoq{=$JORWAO(9e;yU zREY@oy6|uohr9p3TYMR))LK+UJB3zDQ4^yMeI-U6_G+x!7h$KY-|pez z>ixRti2b@41RJ~K0A6G9vMx5_APeW%h$`o}SqN9Nx0>C`D376^>a{tCKrwgfMozqBeHC zs!r)Tq)w?mtWF)I{G4C&9GD{!KOl$&a1(F~0o(-K1l$DN1l)8OQ5&zxQ0B@BaWrlp z6+j1_k`YN%g^@)yqDE~bU`C`6aML06e0mLWSd;pFttQn^`8mJlIWRjQ-tH%EdOco4 zM-nt&ypgDJlJjMUK5Q)Tcc%l|SOK$j+$l0{0&aR;vw)6h7VN0gEVAID{F%RGM7^UK zS9+0H@%@*NN;KveqEfSZmcYw7J|ZR0ye?O>Le;m-~oLRzXbZy7gzkgB8l1%_*vuyKSl>Vo&xSgjNjJkt;9|5J1?UToR^=kcV6LW>m0Bz-NEl`Z-L|Bx4GU{ zaMMQ%o$16PXF9pqr8{FZs5thbDt8eN~GGp^6mS=Uu{pSr#92V3WWeK{5UzHY7FO5Ep`yVCg; zZgk;kH>yq0NZ92$45j@(!NC1A<9F}4-BuBB(>b>n{(atUb+E1Yf&KU3NiE~|Nr@+o zih9eqKL_rME8XbwGwyU2>rfQ_h6+0BU;9oesyV&G^N=;7G5G38zyo z&oO>?^TaxCy5zo=F6-BQ`=x%}I9u@p_x<4a2Qu!@z!SONGVU*d`zzqS`n;aFReJgi zd@7u2xdx?Eyy+A7CF>mFO@fO;nZcZYx*T(O3`8Ms?s z&{ON`;naqB71!6 znPn?}c0TyM5qY#!5!AYN1ic)iu~>sV!!UY(R03T_ ztyw5|BG+4qn>g<*;znd&;YMbwZJh&ftAYDUH*USa6ISnT+}^-GlKAvd)V_WUonGNd zo5C#DV6Wdqx;%UheI@d{H{1l=#Er`7;zsAJv=u))AN`BDu_)+^te|m4}NWyiU#dlHd zq#6CiP29wM;`}!M#7*8DVKe^pQTKx12l$NMar3$U#OF?-_PnWdWy54Do8A3;z}BER zNKY4hR#D3s@WTfj7kQ$rw~U*Bn>hah;-(bTasgX@Z}S{Bj130A|1H*gJh(CuToLOn z~_<$e2h;E)pxKZs(;r zRGaZ7R34Y(;b9>;<3q;LD-27$(@tZ@5F9;)k%XF$;I1>1W znAagU#PQaL{>JZGCKhyYepc(P#7&%G8v*;@xv-+gZ9}h8@i~(p1iw$1>zz04j=1?P zGpK!QIGx`RM1@a0X1+Gf4tcng8d9b&FG!_60l6TkHd;MTGm#{1PH^6TPe(&H*7*BfQjz!Hy-29G2;wzJ>eW#JGmd4Zed3wqWdbk_^tTHF; z%P%B;%RC|QM6S1tn}D0R#NEUt?S7jx?s2er4y93ksQ35X^}Zc9Uuh(MXA1GV=2QFb z1$69%Ahrf({K6W{smPG{-4|}+lJ^j>|A4T$Ux&RpsI4rfx~)96tF0ogqpc#oqiuU) zN8661j<(8Vgt4P-=X`VUyHY#8D2~1P%HnYr*Y((!depla{Jsf(o4^y3#1j*jxXXlk zn}FK{%yQhs^JBKwpPm2J)+pDeZF6Te70ruiDvFM1DvpV0Dv6C~Dvd)V+!kMz#z!>f z%u*|JV{h64yDzYZ0edL0hk`4i;7Ta4hXSj$u(?;K#Blfd-3t6)s{jcPm8!2%HK=|7 zkxG?eXC85mN>y)HFOCE1RqJuwDvv7h_&P>^ynbCZMH*EqCmi2Eq2%#?9CzYa9tYvL z3&-+khhzMwlE(q;I0L?>9wYlBs>dJ7<9a-8#j!m4IHAB^aK zG5Z=C;34@_FDWhFLS8NAdr9_)DDo2W%6k7sc2ZW@;LyU!o~DD^c)<&z%qx3W;Quha zsa-VJB1sJ5(wg69zNy3Unl@p+mU#)fFCB-c;ll;aE1{nl;AJosO&Ue7nY|3m?_$mi zU3v)}(=Gkaaow^|bAmpeR7I-?ypfTb7$XUg&(bEaK5*Xt6(o2Z9%& zPO}(Zl|{^}BIjkE33v~d(}&J0s-SY|j z$6Ksd#=HQv!()+mxjbJvub_!ax?(xB&wlG|A1=@ZLZkf`^H0cm1)WpUIGN75CldW4 z=x7YXo^k%H&erlW&6{b*fBnpDwU<1{zDBI^eaL%+%~zRM*0PzV%D9jR4Tj|}2-MNB z;VBmSuauXNSJ1^Sy06LUE3fi>f)-&z?l9ZQeY_d+pLtCp~=mHHyT!U@X z+^NB1DfG)1h50J-GQCySbe`=kXV3RAUnAz*DddH=C+n#E8m2{h(bd&nv}3l&1J-*! z;xh}{<2rf1%DhZ(WO~dwXc|L$=DE``@(#g#&zbWwO-|Ag1uZUP3>{yn7y31f2jx?} z>4L}ebX6~Cw4#P3<`p%G(K(&att{?q@04499lG(ef)=RAD`-2=8QP(bTv_WwrB8}A zU|RC~J~7nd0e#XkudJ7$C%>_t8=u$jD|0+T}q!w+ag&1 zcnC2q_r$pQ-TFy)UP4}3dpH8UpuZK{qN8hm-_jV1_Awn z^*Gzm53e?g{a4iBr*{Hk4!8Ih-Z1ySMU8~z75lI=ioZe6oBdOZem#);Ui7uA#GW>^ z4=JzQgKsaMO=s2zQT`0(lN$2#u3+EfYty!!HTSN&^NPK8v0q)p#qGphMgJbqTtfMR z>Hpyi(f@~T!FvDZelB`+tOva>QQ(0oE9Acot-+-$74uc*C2qFRYi?tGq5fqD54X&) zN8Y17^NKy>Xlh3fwjn(Pze|spG7W*{=f%9NPb~IZV=8g?*8d0Q zI~V;_lh~7Fy=&G-m3n&ULvm$tv^&nzlo2>sxb8yVbfeHWy*)3X_UM)Fx`h5wzkiqb zk~x3Ed>btCqIb*hNJ07(>8Q~u1y#Qd|%N1&(wwPLJ*lyEhq1A>GNlo{z{V>j@t@Q^Gex-OLhga+`(>hc zcAAT=Y(U?v0sX!PE_rtY^0GLIsQxASFXTTt@M6JJ4i^g|9WHK(a=5s49wOQtUlzwX z0E7Ad3q8Ag(X+Eht?kjTvqzuN9yyiq$6u2F|Ks0^{Q{|LumYWu6@w^a{JzG?D0ussHy;0XBG20SIL{yFeFHDJ-~q>d&foq# z_mR}1iKG5;NNZ&037&3v=bPa@*Y*4i+#}u#5B7fMVP+m++$S)9Z$0kC{#oTYTks?^ z&pPwO!h3Ahw~q6IaUc5w^9r-;dtB>xYQyC$zqP~%?6iQe%_6z(~gmk-zco$!*S_B@{*>ftBan7562!{Dttl;lEN0-fp85zFDR z6Fh3nyK{r{*=SVt$Ym#&rSg zH~gO`1D4gd1a9jRv|Fa_hnMb$wtw4wG|toE`lDIUR-t3Ju;1V$uYc4A%}#BZUh+3+ zcTAIJn%6h@4)(W-p?FT7pb6sllWBmbv%+;}Iqbau1!jy8R{#J2 literal 0 HcmV?d00001 diff --git a/index.html b/index.html new file mode 100644 index 00000000..74c76b75 --- /dev/null +++ b/index.html @@ -0,0 +1,15 @@ + + + + + @ecodev/natural + + + + + + + + + + diff --git a/main-JCP4EDUZ.js b/main-JCP4EDUZ.js new file mode 100644 index 00000000..f2f28a76 --- /dev/null +++ b/main-JCP4EDUZ.js @@ -0,0 +1,168 @@ +import{$ as nc,$a as iD,$b as kd,$c as DD,A as Pa,Aa as ra,Ab as xe,Ac as P,Ad as ac,B as Ao,Ba as Br,Bb as mD,Bc as Xt,C as Yi,Ca as JT,Cb as ag,Cc as Ur,D as fr,Da as Ne,Db as M,Dc as Md,E as La,Ea as A,Eb as hD,Ec as te,F as Ge,Fa as R,Fb as sg,Fc as ie,G as dC,Ga as pi,Gb as si,Gc as oo,H as Re,Ha as oa,Hb as ne,Hc as lg,I as uC,Ia as Te,Ib as v,Ic as cg,J as Xn,Ja as gi,Jb as Gt,Jc as dm,K as pC,Ka as ze,Kb as se,Kc as vC,L as na,La as _i,Lb as bC,Lc as ks,M as HT,Ma as ng,Mb as Yt,Mc as yC,N as Dn,Na as $,Nb as fD,Nc as xD,O as mC,Oa as de,Ob as k,Oc as dg,P as pt,Pa as Ro,Pb as Ds,Pc as Se,Q as rm,Qa as ZT,Qb as Tt,Qc as aa,R as ai,Ra as J,Rb as He,Rc as wD,S as jr,Sa as gr,Sb as Ue,Sc as SD,T as UT,Ta as eD,Tb as u,Tc as ee,U as Xi,Ua as am,Ub as m,Uc as Lt,V as Ji,Va as tD,Vb as T,Vc as sa,W as hC,Wa as ja,Wb as bi,Wc as ao,X as tg,Xa as gt,Xb as vi,Xc as CC,Y as $T,Ya as sm,Yb as yi,Yc as ED,Z as GT,Za as Td,Zb as z,Zc as oc,_ as qT,_a as Dd,_b as Ci,_c as TD,a as N,aa as Ed,ab as nD,ac as fe,ad as pe,b as ce,ba as Ye,bb as rD,bc as gD,bd as xC,c as sC,ca as qe,cb as oD,cc as _D,cd as Is,d as lC,da as ye,db as aD,dc as w,dd as ug,e as et,ea as ig,eb as sD,ec as Id,ed as _r,f as PT,fa as lt,fb as lD,fc as C,fd as kD,g as LT,ga as WT,gb as zr,gc as Me,gd as la,h as Ct,ha as Ut,hb as rg,hc as ae,hd as Ms,i as cC,ia as $t,ib as ro,ic as Ie,id as ID,j as nm,ja as W,jb as cD,jc as ve,jd as xi,k as q,ka as _e,kb as lm,kc as K,kd as Pe,l as Be,la as QT,lb as f,lc as Y,ld as MD,m as tc,ma as H,mb as b,mc as bD,md as OD,n as eg,na as fC,nb as kn,nc as vD,nd as pg,o as VT,oa as G,ob as ft,oc as Je,od as mg,p as jT,pa as x,pb as dD,pc as y,q as Ht,qa as Va,qb as Ts,qc as ge,r as BT,ra as Es,rb as og,rc as ue,rd as Vt,s as Di,sa as om,sb as cm,sc as yD,sd as nt,t as U,ta as F,tb as Ft,tc as za,td as hg,u as ic,ua as be,ub as gC,uc as Hr,ud as AD,v as no,va as B,vb as _C,vc as CD,vd as Ee,w as zT,wa as KT,wb as Ba,wc as Ai,wd as dt,x as re,xa as rc,xb as uD,xc as Ri,xd as Os,y as nn,ya as YT,yb as X,yc as Ni,yd as ot,z as hr,za as XT,zb as pD,zc as me,zd as fg}from"./chunk-3VTLHUFB.js";var pm=class{},_g=class{},No=class i{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` +`).forEach(n=>{let t=n.indexOf(":");if(t>0){let r=n.slice(0,t),o=r.toLowerCase(),a=n.slice(t+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(a):this.headers.set(o,[a])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((n,t)=>{this.setHeaderEntries(t,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([n,t])=>{this.setHeaderEntries(n,t)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let n=this.headers.get(e.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,n){return this.clone({name:e,value:n,op:"a"})}set(e,n){return this.clone({name:e,value:n,op:"s"})}delete(e,n){return this.clone({name:e,value:n,op:"d"})}maybeSetNormalizedName(e,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,e)}init(){this.lazyInit&&(this.lazyInit instanceof i?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(n=>{this.headers.set(n,e.headers.get(n)),this.normalizedNames.set(n,e.normalizedNames.get(n))})}clone(e){let n=new i;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof i?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}applyUpdate(e){let n=e.name.toLowerCase();switch(e.op){case"a":case"s":let t=e.value;if(typeof t=="string"&&(t=[t]),t.length===0)return;this.maybeSetNormalizedName(e.name,n);let r=(e.op==="a"?this.headers.get(n):void 0)||[];r.push(...t),this.headers.set(n,r);break;case"d":let o=e.value;if(!o)this.headers.delete(n),this.normalizedNames.delete(n);else{let a=this.headers.get(n);if(!a)return;a=a.filter(s=>o.indexOf(s)===-1),a.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,a)}break}}setHeaderEntries(e,n){let t=(Array.isArray(n)?n:[n]).map(o=>o.toString()),r=e.toLowerCase();this.headers.set(r,t),this.maybeSetNormalizedName(e,r)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>e(this.normalizedNames.get(n),this.headers.get(n)))}};var SC=class{encodeKey(e){return RD(e)}encodeValue(e){return RD(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function r4(i,e){let n=new Map;return i.length>0&&i.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[a,s]=o==-1?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,o)),e.decodeValue(r.slice(o+1))],l=n.get(a)||[];l.push(s),n.set(a,l)}),n}var o4=/%(\d[a-f0-9])/gi,a4={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function RD(i){return encodeURIComponent(i).replace(o4,(e,n)=>a4[n]??e)}function gg(i){return`${i}`}var Rs=class i{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new SC,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=r4(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(n=>{let t=e.fromObject[n],r=Array.isArray(t)?t.map(gg):[gg(t)];this.map.set(n,r)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let n=this.map.get(e);return n?n[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,n){return this.clone({param:e,value:n,op:"a"})}appendAll(e){let n=[];return Object.keys(e).forEach(t=>{let r=e[t];Array.isArray(r)?r.forEach(o=>{n.push({param:t,value:o,op:"a"})}):n.push({param:t,value:r,op:"a"})}),this.clone(n)}set(e,n){return this.clone({param:e,value:n,op:"s"})}delete(e,n){return this.clone({param:e,value:n,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let n=this.encoder.encodeKey(e);return this.map.get(e).map(t=>n+"="+this.encoder.encodeValue(t)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let n=new i({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let n=(e.op==="a"?this.map.get(e.param):void 0)||[];n.push(gg(e.value)),this.map.set(e.param,n);break;case"d":if(e.value!==void 0){let t=this.map.get(e.param)||[],r=t.indexOf(gg(e.value));r!==-1&&t.splice(r,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var EC=class{constructor(){this.map=new Map}set(e,n){return this.map.set(e,n),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function s4(i){switch(i){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function ND(i){return typeof ArrayBuffer<"u"&&i instanceof ArrayBuffer}function FD(i){return typeof Blob<"u"&&i instanceof Blob}function PD(i){return typeof FormData<"u"&&i instanceof FormData}function l4(i){return typeof URLSearchParams<"u"&&i instanceof URLSearchParams}var um=class i{constructor(e,n,t,r){this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(s4(this.method)||r?(this.body=t!==void 0?t:null,o=r):o=t,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 No,this.context??=new EC,!this.params)this.params=new Rs,this.urlWithParams=n;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=n;else{let s=n.indexOf("?"),l=s===-1?"?":sh.set(g,e.setHeaders[g]),c)),e.setParams&&(d=Object.keys(e.setParams).reduce((h,g)=>h.set(g,e.setParams[g]),d)),new i(n,t,a,{params:d,headers:c,context:p,reportProgress:l,responseType:r,withCredentials:s,transferCache:o})}},Ns=function(i){return i[i.Sent=0]="Sent",i[i.UploadProgress=1]="UploadProgress",i[i.ResponseHeader=2]="ResponseHeader",i[i.DownloadProgress=3]="DownloadProgress",i[i.Response=4]="Response",i[i.User=5]="User",i}(Ns||{}),mm=class{constructor(e,n=200,t="OK"){this.headers=e.headers||new No,this.status=e.status!==void 0?e.status:n,this.statusText=e.statusText||t,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},bg=class i extends mm{constructor(e={}){super(e),this.type=Ns.ResponseHeader}clone(e={}){return new i({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},hm=class i extends mm{constructor(e={}){super(e),this.type=Ns.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new i({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},As=class extends mm{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},BD=200,c4=204;function wC(i,e){return{body:e,headers:i.headers,context:i.context,observe:i.observe,params:i.params,reportProgress:i.reportProgress,responseType:i.responseType,withCredentials:i.withCredentials,transferCache:i.transferCache}}var sc=(()=>{let e=class e{constructor(t){this.handler=t}request(t,r,o={}){let a;if(t instanceof um)a=t;else{let c;o.headers instanceof No?c=o.headers:c=new No(o.headers);let d;o.params&&(o.params instanceof Rs?d=o.params:d=new Rs({fromObject:o.params})),a=new um(t,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:d,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let s=U(a).pipe(na(c=>this.handler.handle(c)));if(t instanceof um||o.observe==="events")return s;let l=s.pipe(Re(c=>c instanceof hm));switch(o.observe||"body"){case"body":switch(a.responseType){case"arraybuffer":return l.pipe(re(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return l.pipe(re(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return l.pipe(re(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return l.pipe(re(c=>c.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:new Rs().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,o={}){return this.request("PATCH",t,wC(o,r))}post(t,r,o={}){return this.request("POST",t,wC(o,r))}put(t,r,o={}){return this.request("PUT",t,wC(o,r))}};e.\u0275fac=function(r){return new(r||e)(G(pm))},e.\u0275prov=W({token:e,factory:e.\u0275fac});let i=e;return i})(),d4=/^\)\]\}',?\n/,u4="X-Request-URL";function LD(i){if(i.url)return i.url;let e=u4.toLocaleLowerCase();return i.headers.get(e)}var p4=(()=>{let e=class e{constructor(){this.fetchImpl=x(TC,{optional:!0})?.fetch??((...t)=>globalThis.fetch(...t)),this.ngZone=x(de)}handle(t){return new Ct(r=>{let o=new AbortController;return this.doRequest(t,o.signal,r).then(DC,a=>r.error(new As({error:a}))),()=>o.abort()})}doRequest(t,r,o){return lC(this,null,function*(){let a=this.createRequestInit(t),s;try{let _=this.ngZone.runOutsideAngular(()=>this.fetchImpl(t.urlWithParams,N({signal:r},a)));m4(_),o.next({type:Ns.Sent}),s=yield _}catch(_){o.error(new As({error:_,status:_.status??0,statusText:_.statusText,url:t.urlWithParams,headers:_.headers}));return}let l=new No(s.headers),c=s.statusText,d=LD(s)??t.urlWithParams,p=s.status,h=null;if(t.reportProgress&&o.next(new bg({headers:l,status:p,statusText:c,url:d})),s.body){let _=s.headers.get("content-length"),S=[],E=s.body.getReader(),D=0,O,I,L=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>lC(this,null,function*(){for(;;){let{done:he,value:Z}=yield E.read();if(he)break;if(S.push(Z),D+=Z.length,t.reportProgress){I=t.responseType==="text"?(I??"")+(O??=new TextDecoder).decode(Z,{stream:!0}):void 0;let je=()=>o.next({type:Ns.DownloadProgress,total:_?+_:void 0,loaded:D,partialText:I});L?L.run(je):je()}}}));let V=this.concatChunks(S,D);try{let he=s.headers.get("Content-Type")??"";h=this.parseBody(t,V,he)}catch(he){o.error(new As({error:he,headers:new No(s.headers),status:s.status,statusText:s.statusText,url:LD(s)??t.urlWithParams}));return}}p===0&&(p=h?BD:0),p>=200&&p<300?(o.next(new hm({body:h,headers:l,status:p,statusText:c,url:d})),o.complete()):o.error(new As({error:h,headers:l,status:p,statusText:c,url:d}))})}parseBody(t,r,o){switch(t.responseType){case"json":let a=new TextDecoder().decode(r).replace(d4,"");return a===""?null:JSON.parse(a);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(t){let r={},o=t.withCredentials?"include":void 0;if(t.headers.forEach((a,s)=>r[a]=s.join(",")),t.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!t.headers.has("Content-Type")){let a=t.detectContentTypeHeader();a!==null&&(r["Content-Type"]=a)}return{body:t.serializeBody(),method:t.method,headers:r,credentials:o}}concatChunks(t,r){let o=new Uint8Array(r),a=0;for(let s of t)o.set(s,a),a+=s.length;return o}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=W({token:e,factory:e.\u0275fac});let i=e;return i})(),TC=class{};function DC(){}function m4(i){i.then(DC,DC)}function h4(i,e){return e(i)}function f4(i,e,n){return(t,r)=>Br(n,()=>e(t,o=>i(o,r)))}var zD=new H(""),g4=new H(""),_4=new H("",{providedIn:"root",factory:()=>!0});var VD=(()=>{let e=class e extends pm{constructor(t,r){super(),this.backend=t,this.injector=r,this.chain=null,this.pendingTasks=x(ng),this.contributeToStability=x(_4)}handle(t){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(zD),...this.injector.get(g4,[])]));this.chain=r.reduceRight((o,a)=>f4(o,a,this.injector),h4)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(t,o=>this.backend.handle(o)).pipe(Xi(()=>this.pendingTasks.remove(r)))}else return this.chain(t,r=>this.backend.handle(r))}};e.\u0275fac=function(r){return new(r||e)(G(_g),G(ra))},e.\u0275prov=W({token:e,factory:e.\u0275fac});let i=e;return i})();var b4=/^\)\]\}',?\n/;function v4(i){return"responseURL"in i&&i.responseURL?i.responseURL:/^X-Request-URL:/m.test(i.getAllResponseHeaders())?i.getResponseHeader("X-Request-URL"):null}var jD=(()=>{let e=class e{constructor(t){this.xhrFactory=t}handle(t){if(t.method==="JSONP")throw new Ut(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?Di(r.\u0275loadImpl()):U(null)).pipe(qe(()=>new Ct(a=>{let s=r.build();if(s.open(t.method,t.urlWithParams),t.withCredentials&&(s.withCredentials=!0),t.headers.forEach((E,D)=>s.setRequestHeader(E,D.join(","))),t.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){let E=t.detectContentTypeHeader();E!==null&&s.setRequestHeader("Content-Type",E)}if(t.responseType){let E=t.responseType.toLowerCase();s.responseType=E!=="json"?E:"text"}let l=t.serializeBody(),c=null,d=()=>{if(c!==null)return c;let E=s.statusText||"OK",D=new No(s.getAllResponseHeaders()),O=v4(s)||t.url;return c=new bg({headers:D,status:s.status,statusText:E,url:O}),c},p=()=>{let{headers:E,status:D,statusText:O,url:I}=d(),L=null;D!==c4&&(L=typeof s.response>"u"?s.responseText:s.response),D===0&&(D=L?BD:0);let V=D>=200&&D<300;if(t.responseType==="json"&&typeof L=="string"){let he=L;L=L.replace(b4,"");try{L=L!==""?JSON.parse(L):null}catch(Z){L=he,V&&(V=!1,L={error:Z,text:L})}}V?(a.next(new hm({body:L,headers:E,status:D,statusText:O,url:I||void 0})),a.complete()):a.error(new As({error:L,headers:E,status:D,statusText:O,url:I||void 0}))},h=E=>{let{url:D}=d(),O=new As({error:E,status:s.status||0,statusText:s.statusText||"Unknown Error",url:D||void 0});a.error(O)},g=!1,_=E=>{g||(a.next(d()),g=!0);let D={type:Ns.DownloadProgress,loaded:E.loaded};E.lengthComputable&&(D.total=E.total),t.responseType==="text"&&s.responseText&&(D.partialText=s.responseText),a.next(D)},S=E=>{let D={type:Ns.UploadProgress,loaded:E.loaded};E.lengthComputable&&(D.total=E.total),a.next(D)};return s.addEventListener("load",p),s.addEventListener("error",h),s.addEventListener("timeout",h),s.addEventListener("abort",h),t.reportProgress&&(s.addEventListener("progress",_),l!==null&&s.upload&&s.upload.addEventListener("progress",S)),s.send(l),a.next({type:Ns.Sent}),()=>{s.removeEventListener("error",h),s.removeEventListener("abort",h),s.removeEventListener("load",p),s.removeEventListener("timeout",h),t.reportProgress&&(s.removeEventListener("progress",_),l!==null&&s.upload&&s.upload.removeEventListener("progress",S)),s.readyState!==s.DONE&&s.abort()}})))}};e.\u0275fac=function(r){return new(r||e)(G(mg))},e.\u0275prov=W({token:e,factory:e.\u0275fac});let i=e;return i})(),HD=new H(""),y4="XSRF-TOKEN",C4=new H("",{providedIn:"root",factory:()=>y4}),x4="X-XSRF-TOKEN",w4=new H("",{providedIn:"root",factory:()=>x4}),vg=class{},S4=(()=>{let e=class e{constructor(t,r,o){this.doc=t,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=ug(t,this.cookieName),this.lastCookieString=t),this.lastToken}};e.\u0275fac=function(r){return new(r||e)(G(pe),G(ja),G(C4))},e.\u0275prov=W({token:e,factory:e.\u0275fac});let i=e;return i})();function E4(i,e){let n=i.url.toLowerCase();if(!x(HD)||i.method==="GET"||i.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return e(i);let t=x(vg).getToken(),r=x(w4);return t!=null&&!i.headers.has(r)&&(i=i.clone({headers:i.headers.set(r,t)})),e(i)}function UD(...i){let e=[sc,jD,VD,{provide:pm,useExisting:VD},{provide:_g,useFactory:()=>x(p4,{optional:!0})??x(jD)},{provide:zD,useValue:E4,multi:!0},{provide:HD,useValue:!0},{provide:vg,useClass:S4}];for(let n of i)e.push(...n.\u0275providers);return rc(e)}var IC;try{IC=typeof Intl<"u"&&Intl.v8BreakIterator}catch{IC=!1}var Le=(()=>{let e=class e{constructor(t){this._platformId=t,this.isBrowser=this._platformId?OD(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||IC)&&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}};e.\u0275fac=function(r){return new(r||e)(G(ja))},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Od,$D=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function MC(){if(Od)return Od;if(typeof document!="object"||!document)return Od=new Set($D),Od;let i=document.createElement("input");return Od=new Set($D.filter(e=>(i.setAttribute("type",e),i.type===e))),Od}var fm;function D4(){if(fm==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>fm=!0}))}finally{fm=fm||!1}return fm}function rn(i){return D4()?i:!!i.capture}var Fo=function(i){return i[i.NORMAL=0]="NORMAL",i[i.NEGATED=1]="NEGATED",i[i.INVERTED=2]="INVERTED",i}(Fo||{}),yg,lc;function Cg(){if(lc==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return lc=!1,lc;if("scrollBehavior"in document.documentElement.style)lc=!0;else{let i=Element.prototype.scrollTo;i?lc=!/\{\s*\[native code\]\s*\}/.test(i.toString()):lc=!1}}return lc}function Ad(){if(typeof document!="object"||!document)return Fo.NORMAL;if(yg==null){let i=document.createElement("div"),e=i.style;i.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";let n=document.createElement("div"),t=n.style;t.width="2px",t.height="1px",i.appendChild(n),document.body.appendChild(i),yg=Fo.NORMAL,i.scrollLeft===0&&(i.scrollLeft=1,yg=i.scrollLeft===0?Fo.NEGATED:Fo.INVERTED),i.remove()}return yg}var kC;function k4(){if(kC==null){let i=typeof document<"u"?document.head:null;kC=!!(i&&(i.createShadowRoot||i.attachShadow))}return kC}function GD(i){if(k4()){let e=i.getRootNode?i.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function ca(){let i=typeof document<"u"&&document?document.activeElement:null;for(;i&&i.shadowRoot;){let e=i.shadowRoot.activeElement;if(e===i)break;i=e}return i}function Jn(i){return i.composedPath?i.composedPath()[0]:i.target}function gm(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Dt(i,...e){return e.length?e.some(n=>i[n]):i.altKey||i.shiftKey||i.ctrlKey||i.metaKey}function cc(i){return no(i)?i:U(i)}function jt(i){return i!=null&&`${i}`!="false"}function In(i,e=0){return OC(i)?Number(i):arguments.length===2?e:0}function OC(i){return!isNaN(parseFloat(i))&&!isNaN(Number(i))}function Rd(i){return Array.isArray(i)?i:[i]}function ki(i){return i==null?"":typeof i=="string"?i:`${i}px`}function br(i){return i instanceof J?i.nativeElement:i}function qD(i,e=/\s+/){let n=[];if(i!=null){let t=Array.isArray(i)?i:`${i}`.split(e);for(let r of t){let o=`${r}`.trim();o&&n.push(o)}}return n}function I4(i){if(i.type==="characterData"&&i.target instanceof Comment)return!0;if(i.type==="childList"){for(let e=0;e{let e=class e{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),M4=(()=>{let e=class e{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map,this._ngZone=x(de)}ngOnDestroy(){this._observedElements.forEach((t,r)=>this._cleanupObserver(r))}observe(t){let r=br(t);return new Ct(o=>{let s=this._observeElement(r).pipe(re(l=>l.filter(c=>!I4(c))),Re(l=>!!l.length)).subscribe(l=>{this._ngZone.run(()=>{o.next(l)})});return()=>{s.unsubscribe(),this._unobserveElement(r)}})}_observeElement(t){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(t))this._observedElements.get(t).count++;else{let r=new q,o=this._mutationObserverFactory.create(a=>r.next(a));o&&o.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:o,stream:r,count:1})}return this._observedElements.get(t).stream})}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){let{observer:r,stream:o}=this._observedElements.get(t);r&&r.disconnect(),o.complete(),this._observedElements.delete(t)}}};e.\u0275fac=function(r){return new(r||e)(G(WD))},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),_m=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=In(t),this._subscribe()}constructor(t,r){this._contentObserver=t,this._elementRef=r,this.event=new $,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let t=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?t.pipe(Dn(this.debounce)):t).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(b(M4),b(J))},e.\u0275dir=B({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",ee],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],standalone:!0,features:[xe]});let i=e;return i})(),Nd=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({providers:[WD]});let i=e;return i})();var QD=new Set,dc,O4=(()=>{let e=class e{constructor(t,r){this._platform=t,this._nonce=r,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):R4}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&A4(t,this._nonce),this._matchMedia(t)}};e.\u0275fac=function(r){return new(r||e)(G(Le),G(sm,8))},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function A4(i,e){if(!QD.has(i))try{dc||(dc=document.createElement("style"),e&&dc.setAttribute("nonce",e),dc.setAttribute("type","text/css"),document.head.appendChild(dc)),dc.sheet&&(dc.sheet.insertRule(`@media ${i} {body{ }}`,0),QD.add(i))}catch(n){console.error(n)}}function R4(i){return{matches:i==="all"||i==="",media:i,addListener:()=>{},removeListener:()=>{}}}var vr=(()=>{let e=class e{constructor(t,r){this._mediaMatcher=t,this._zone=r,this._queries=new Map,this._destroySubject=new q}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return KD(Rd(t)).some(o=>this._registerQuery(o).mql.matches)}observe(t){let o=KD(Rd(t)).map(s=>this._registerQuery(s).observable),a=nn(o);return a=Pa(a.pipe(pt(1)),a.pipe(Ed(1),Dn(0))),a.pipe(re(s=>{let l={matches:!1,breakpoints:{}};return s.forEach(({matches:c,query:d})=>{l.matches=l.matches||c,l.breakpoints[d]=c}),l}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);let r=this._mediaMatcher.matchMedia(t),a={observable:new Ct(s=>{let l=c=>this._zone.run(()=>s.next(c));return r.addListener(l),()=>{r.removeListener(l)}}).pipe(Ye(r),re(({matches:s})=>({query:t,matches:s})),ye(this._destroySubject)),mql:r};return this._queries.set(t,a),a}};e.\u0275fac=function(r){return new(r||e)(G(O4),G(de))},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function KD(i){return i.map(e=>e.split(",")).reduce((e,n)=>e.concat(n)).map(e=>e.trim())}var $r={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 ek=" ";function jd(i,e,n){let t=Eg(i,e);n=n.trim(),!t.some(r=>r.trim()===n)&&(t.push(n),i.setAttribute(e,t.join(ek)))}function Fs(i,e,n){let t=Eg(i,e);n=n.trim();let r=t.filter(o=>o!==n);r.length?i.setAttribute(e,r.join(ek)):i.removeAttribute(e)}function Eg(i,e){return i.getAttribute(e)?.match(/\S+/g)??[]}var tk="cdk-describedby-message",xg="cdk-describedby-host",NC=0,Mg=(()=>{let e=class e{constructor(t,r){this._platform=r,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${NC++}`,this._document=t,this._id=x(am)+"-"+NC++}describe(t,r,o){if(!this._canBeDescribed(t,r))return;let a=AC(r,o);typeof r!="string"?(YD(r,this._id),this._messageRegistry.set(a,{messageElement:r,referenceCount:0})):this._messageRegistry.has(a)||this._createMessageElement(r,o),this._isElementDescribedByMessage(t,a)||this._addMessageReference(t,a)}removeDescription(t,r,o){if(!r||!this._isElementNode(t))return;let a=AC(r,o);if(this._isElementDescribedByMessage(t,a)&&this._removeMessageReference(t,a),typeof r=="string"){let s=this._messageRegistry.get(a);s&&s.referenceCount===0&&this._deleteMessageElement(a)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let t=this._document.querySelectorAll(`[${xg}="${this._id}"]`);for(let r=0;ro.indexOf(tk)!=0);t.setAttribute("aria-describedby",r.join(" "))}_addMessageReference(t,r){let o=this._messageRegistry.get(r);jd(t,"aria-describedby",o.messageElement.id),t.setAttribute(xg,this._id),o.referenceCount++}_removeMessageReference(t,r){let o=this._messageRegistry.get(r);o.referenceCount--,Fs(t,"aria-describedby",o.messageElement.id),t.removeAttribute(xg)}_isElementDescribedByMessage(t,r){let o=Eg(t,"aria-describedby"),a=this._messageRegistry.get(r),s=a&&a.messageElement.id;return!!s&&o.indexOf(s)!=-1}_canBeDescribed(t,r){if(!this._isElementNode(t))return!1;if(r&&typeof r=="object")return!0;let o=r==null?"":`${r}`.trim(),a=t.getAttribute("aria-label");return o?!a||a.trim()!==o:!1}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}};e.\u0275fac=function(r){return new(r||e)(G(pe),G(Le))},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function AC(i,e){return typeof i=="string"?`${e||""}/${i}`:i}function YD(i,e){i.id||(i.id=`${tk}-${e}-${NC++}`)}var U4=200,Tg=class{constructor(e,n){this._letterKeyStream=new q,this._items=[],this._selectedItemIndex=-1,this._pressedLetters=[],this._selectedItem=new q,this.selectedItem=this._selectedItem;let t=typeof n?.debounceInterval=="number"?n.debounceInterval:U4;n?.skipPredicate&&(this._skipPredicateFn=n.skipPredicate),this.setItems(e),this._setupKeyHandler(t)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(e){this._selectedItemIndex=e}setItems(e){this._items=e}handleKey(e){let n=e.keyCode;e.key&&e.key.length===1?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(e){this._letterKeyStream.pipe(lt(n=>this._pressedLetters.push(n)),Dn(e),Re(()=>this._pressedLetters.length>0),re(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(n=>{for(let t=1;tt.disabled,this.tabOut=new q,this.change=new q,e instanceof gr?this._itemChangesSubscription=e.changes.subscribe(t=>this._itemsChanged(t.toArray())):_C(e)&&(this._effectRef=CC(()=>this._itemsChanged(e()),{injector:n}))}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){this._typeaheadSubscription.unsubscribe();let n=this._getItemsArray();return this._typeahead=new Tg(n,{debounceInterval:typeof e=="number"?e:void 0,skipPredicate:t=>this._skipPredicateFn(t)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(t=>{this.setActiveItem(t)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(e=!0){return this._homeAndEnd=e,this}withPageUpDown(e=!0,n=10){return this._pageUpAndDown={enabled:e,delta:n},this}setActiveItem(e){let n=this._activeItem;this.updateActiveItem(e),this._activeItem!==n&&this.change.next(this._activeItemIndex)}onKeydown(e){let n=e.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!e[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(n){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,a=this._getItemsArray().length;this._setActiveItemByIndex(o-1&&n!==this._activeItemIndex&&(this._activeItemIndex=n,this._typeahead?.setCurrentSelectedItemIndex(n))}}},Pd=class extends Dg{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}},so=class extends Dg{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}},FC=class{_initializeFocus(){if(this._hasInitialFocused||this._items.length===0)return;let e=0;for(let t=0;t!1,this._trackByFn=t=>t,this._items=[],this._typeaheadSubscription=et.EMPTY,this._hasInitialFocused=!1,this.change=new q,e instanceof gr?(this._items=e.toArray(),e.changes.subscribe(t=>{this._items=t.toArray(),this._typeahead?.setItems(this._items),this._updateActiveItemIndex(this._items),this._initializeFocus()})):no(e)?e.subscribe(t=>{this._items=t,this._typeahead?.setItems(t),this._updateActiveItemIndex(t),this._initializeFocus()}):(this._items=e,this._initializeFocus()),typeof n.shouldActivationFollowFocus=="boolean"&&(this._shouldActivationFollowFocus=n.shouldActivationFollowFocus),n.horizontalOrientation&&(this._horizontalOrientation=n.horizontalOrientation),n.skipPredicate&&(this._skipPredicateFn=n.skipPredicate),n.trackBy&&(this._trackByFn=n.trackBy),typeof n.typeAheadDebounceInterval<"u"&&this._setTypeAhead(n.typeAheadDebounceInterval)}destroy(){this._typeaheadSubscription.unsubscribe(),this._typeahead?.destroy(),this.change.complete()}onKeydown(e){switch(e.key){case"Tab":return;case"ArrowDown":this._focusNextItem();break;case"ArrowUp":this._focusPreviousItem();break;case"ArrowRight":this._horizontalOrientation==="rtl"?this._collapseCurrentItem():this._expandCurrentItem();break;case"ArrowLeft":this._horizontalOrientation==="rtl"?this._expandCurrentItem():this._collapseCurrentItem();break;case"Home":this._focusFirstItem();break;case"End":this._focusLastItem();break;case"Enter":case" ":this._activateCurrentItem();break;default:if(e.key==="*"){this._expandAllItemsAtCurrentItemLevel();break}this._typeahead?.handleKey(e);return}this._typeahead?.reset(),e.preventDefault()}getActiveItemIndex(){return this._activeItemIndex}getActiveItem(){return this._activeItem}_focusFirstItem(){this.focusItem(this._findNextAvailableItemIndex(-1))}_focusLastItem(){this.focusItem(this._findPreviousAvailableItemIndex(this._items.length))}_focusNextItem(){this.focusItem(this._findNextAvailableItemIndex(this._activeItemIndex))}_focusPreviousItem(){this.focusItem(this._findPreviousAvailableItemIndex(this._activeItemIndex))}focusItem(e,n={}){n.emitChangeEvent??=!0;let t=typeof e=="number"?e:this._items.findIndex(a=>this._trackByFn(a)===this._trackByFn(e));if(t<0||t>=this._items.length)return;let r=this._items[t];if(this._activeItem!==null&&this._trackByFn(r)===this._trackByFn(this._activeItem))return;let o=this._activeItem;this._activeItem=r??null,this._activeItemIndex=t,this._typeahead?.setCurrentSelectedItemIndex(t),this._activeItem?.focus(),o?.unfocus(),n.emitChangeEvent&&this.change.next(this._activeItem),this._shouldActivationFollowFocus&&this._activateCurrentItem()}_updateActiveItemIndex(e){let n=this._activeItem;if(!n)return;let t=e.findIndex(r=>this._trackByFn(r)===this._trackByFn(n));t>-1&&t!==this._activeItemIndex&&(this._activeItemIndex=t,this._typeahead?.setCurrentSelectedItemIndex(t))}_setTypeAhead(e){this._typeahead=new Tg(this._items,{debounceInterval:typeof e=="number"?e:void 0,skipPredicate:n=>this._skipPredicateFn(n)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(n=>{this.focusItem(n)})}_findNextAvailableItemIndex(e){for(let n=e+1;n=0;n--)if(!this._skipPredicateFn(this._items[n]))return n;return e}_collapseCurrentItem(){if(this._activeItem)if(this._isCurrentItemExpanded())this._activeItem.collapse();else{let e=this._activeItem.getParent();if(!e||this._skipPredicateFn(e))return;this.focusItem(e)}}_expandCurrentItem(){this._activeItem&&(this._isCurrentItemExpanded()?cc(this._activeItem.getChildren()).pipe(pt(1)).subscribe(e=>{let n=e.find(t=>!this._skipPredicateFn(t));n&&this.focusItem(n)}):this._activeItem.expand())}_isCurrentItemExpanded(){return this._activeItem?typeof this._activeItem.isExpanded=="boolean"?this._activeItem.isExpanded:this._activeItem.isExpanded():!1}_isItemDisabled(e){return typeof e.isDisabled=="boolean"?e.isDisabled:e.isDisabled?.()}_expandAllItemsAtCurrentItemLevel(){if(!this._activeItem)return;let e=this._activeItem.getParent(),n;e?n=cc(e.getChildren()):n=U(this._items.filter(t=>t.getParent()===null)),n.pipe(pt(1)).subscribe(t=>{for(let r of t)r.expand()})}_activateCurrentItem(){this._activeItem?.activate()}};function $4(){return(i,e)=>new FC(i,e)}var ik=new H("tree-key-manager",{providedIn:"root",factory:$4});var Ps=(()=>{let e=class e{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return q4(t)&&getComputedStyle(t).visibility==="visible"}isTabbable(t){if(!this._platform.isBrowser)return!1;let r=G4(ej(t));if(r&&(XD(r)===-1||!this.isVisible(r)))return!1;let o=t.nodeName.toLowerCase(),a=XD(t);return t.hasAttribute("contenteditable")?a!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!J4(t)?!1:o==="audio"?t.hasAttribute("controls")?a!==-1:!1:o==="video"?a===-1?!1:a!==null?!0:this._platform.FIREFOX||t.hasAttribute("controls"):t.tabIndex>=0}isFocusable(t,r){return Z4(t)&&!this.isDisabled(t)&&(r?.ignoreVisibility||this.isVisible(t))}};e.\u0275fac=function(r){return new(r||e)(G(Le))},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function G4(i){try{return i.frameElement}catch{return null}}function q4(i){return!!(i.offsetWidth||i.offsetHeight||typeof i.getClientRects=="function"&&i.getClientRects().length)}function W4(i){let e=i.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function Q4(i){return Y4(i)&&i.type=="hidden"}function K4(i){return X4(i)&&i.hasAttribute("href")}function Y4(i){return i.nodeName.toLowerCase()=="input"}function X4(i){return i.nodeName.toLowerCase()=="a"}function nk(i){if(!i.hasAttribute("tabindex")||i.tabIndex===void 0)return!1;let e=i.getAttribute("tabindex");return!!(e&&!isNaN(parseInt(e,10)))}function XD(i){if(!nk(i))return null;let e=parseInt(i.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function J4(i){let e=i.nodeName.toLowerCase(),n=e==="input"&&i.type;return n==="text"||n==="password"||e==="select"||e==="textarea"}function Z4(i){return Q4(i)?!1:W4(i)||K4(i)||i.hasAttribute("contenteditable")||nk(i)}function ej(i){return i.ownerDocument&&i.ownerDocument.defaultView||window}var kg=class{get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}constructor(e,n,t,r,o=!1,a){this._element=e,this._checker=n,this._ngZone=t,this._document=r,this._injector=a,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}destroy(){let e=this._startAnchor,n=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),n&&(n.removeEventListener("focus",this.endAnchorListener),n.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(e){return new Promise(n=>{this._executeOnStable(()=>n(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(n=>{this._executeOnStable(()=>n(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(n=>{this._executeOnStable(()=>n(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){let n=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e=="start"?n.length?n[0]:this._getFirstTabbableElement(this._element):n.length?n[n.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let n=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(n){if(!this._checker.isFocusable(n)){let t=this._getFirstTabbableElement(n);return t?.focus(e),!!t}return n.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let n=this._getRegionBoundary("start");return n&&n.focus(e),!!n}focusLastTabbableElement(e){let n=this._getRegionBoundary("end");return n&&n.focus(e),!!n}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let n=e.children;for(let t=0;t=0;t--){let r=n[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(n[t]):null;if(r)return r}return null}_createAnchor(){let e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,n){e?n.setAttribute("tabindex","0"):n.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._injector?si(e,{injector:this._injector}):setTimeout(e)}},pc=(()=>{let e=class e{constructor(t,r,o){this._checker=t,this._ngZone=r,this._injector=x(ze),this._document=o}create(t,r=!1){return new kg(t,this._checker,this._ngZone,this._document,r,this._injector)}};e.\u0275fac=function(r){return new(r||e)(G(Ps),G(de),G(pe))},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),rk=(()=>{let e=class e{get enabled(){return this.focusTrap?.enabled||!1}set enabled(t){this.focusTrap&&(this.focusTrap.enabled=t)}constructor(t,r,o){this._elementRef=t,this._focusTrapFactory=r,this._previouslyFocusedElement=null,x(Le).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(t){let r=t.autoCapture;r&&!r.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=ca(),this.focusTrap?.focusInitialElementWhenReady()}};e.\u0275fac=function(r){return new(r||e)(b(J),b(pc),b(pe))},e.\u0275dir=B({type:e,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",ee],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",ee]},exportAs:["cdkTrapFocus"],standalone:!0,features:[xe,Ne]});let i=e;return i})(),PC=class extends kg{get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._enabled?this._focusTrapManager.register(this):this._focusTrapManager.deregister(this)}constructor(e,n,t,r,o,a,s,l){super(e,n,t,r,s.defer,l),this._focusTrapManager=o,this._inertStrategy=a,this._focusTrapManager.register(this)}destroy(){this._focusTrapManager.deregister(this),super.destroy()}_enable(){this._inertStrategy.preventFocus(this),this.toggleAnchors(!0)}_disable(){this._inertStrategy.allowFocus(this),this.toggleAnchors(!1)}},LC=class{constructor(){this._listener=null}preventFocus(e){this._listener&&e._document.removeEventListener("focus",this._listener,!0),this._listener=n=>this._trapFocus(e,n),e._ngZone.runOutsideAngular(()=>{e._document.addEventListener("focus",this._listener,!0)})}allowFocus(e){this._listener&&(e._document.removeEventListener("focus",this._listener,!0),this._listener=null)}_trapFocus(e,n){let t=n.target,r=e._element;t&&!r.contains(t)&&!t.closest?.("div.cdk-overlay-pane")&&setTimeout(()=>{e.enabled&&!r.contains(e._document.activeElement)&&e.focusFirstTabbableElement()})}},tj=new H("FOCUS_TRAP_INERT_STRATEGY"),ij=(()=>{let e=class e{constructor(){this._focusTrapStack=[]}register(t){this._focusTrapStack=this._focusTrapStack.filter(o=>o!==t);let r=this._focusTrapStack;r.length&&r[r.length-1]._disable(),r.push(t),t._enable()}deregister(t){t._disable();let r=this._focusTrapStack,o=r.indexOf(t);o!==-1&&(r.splice(o,1),r.length&&r[r.length-1]._enable())}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),ok=(()=>{let e=class e{constructor(t,r,o,a,s){this._checker=t,this._ngZone=r,this._focusTrapManager=o,this._injector=x(ze),this._document=a,this._inertStrategy=s||new LC}create(t,r={defer:!1}){let o;return typeof r=="boolean"?o={defer:r}:o=r,new PC(t,this._checker,this._ngZone,this._document,this._focusTrapManager,this._inertStrategy,o,this._injector)}};e.\u0275fac=function(r){return new(r||e)(G(Ps),G(de),G(ij),G(pe),G(tj,8))},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function Cm(i){return i.buttons===0||i.detail===0}function xm(i){let e=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0];return!!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var nj=new H("cdk-input-modality-detector-options"),rj={ignoreKeys:[18,17,224,91,16]},ak=650,Fd=rn({passive:!0,capture:!0}),oj=(()=>{let e=class e{get mostRecentModality(){return this._modality.value}constructor(t,r,o,a){this._platform=t,this._mostRecentTarget=null,this._modality=new Be(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(l=>l===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Jn(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs{if(xm(s)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Jn(s)},this._options=N(N({},rj),a),this.modalityDetected=this._modality.pipe(Ed(1)),this.modalityChanged=this.modalityDetected.pipe(jr()),t.isBrowser&&r.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,Fd),o.addEventListener("mousedown",this._onMousedown,Fd),o.addEventListener("touchstart",this._onTouchstart,Fd)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Fd),document.removeEventListener("mousedown",this._onMousedown,Fd),document.removeEventListener("touchstart",this._onTouchstart,Fd))}};e.\u0275fac=function(r){return new(r||e)(G(Le),G(de),G(pe),G(nj,8))},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),aj=new H("liveAnnouncerElement",{providedIn:"root",factory:sj});function sj(){return null}var lj=new H("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),cj=0,Og=(()=>{let e=class e{constructor(t,r,o,a){this._ngZone=r,this._defaultOptions=a,this._document=o,this._liveElement=t||this._createLiveElement()}announce(t,...r){let o=this._defaultOptions,a,s;return r.length===1&&typeof r[0]=="number"?s=r[0]:[a,s]=r,this.clear(),clearTimeout(this._previousTimeout),a||(a=o&&o.politeness?o.politeness:"polite"),s==null&&o&&(s=o.duration),this._liveElement.setAttribute("aria-live",a),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(l=>this._currentResolve=l)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,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 t="cdk-live-announcer-element",r=this._document.getElementsByClassName(t),o=this._document.createElement("div");for(let a=0;a .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{let e=class e{constructor(t,r,o,a,s){this._ngZone=t,this._platform=r,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new q,this._rootNodeFocusAndBlurListener=l=>{let c=Jn(l);for(let d=c;d;d=d.parentElement)l.type==="focus"?this._onFocus(l,d):this._onBlur(l,d)},this._document=a,this._detectionMode=s?.detectionMode||Sg.IMMEDIATE}monitor(t,r=!1){let o=br(t);if(!this._platform.isBrowser||o.nodeType!==1)return U();let a=GD(o)||this._getDocument(),s=this._elementInfo.get(o);if(s)return r&&(s.checkChildren=!0),s.subject;let l={checkChildren:r,subject:new q,rootNode:a};return this._elementInfo.set(o,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(t){let r=br(t),o=this._elementInfo.get(r);o&&(o.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(o))}focusVia(t,r,o){let a=br(t),s=this._getDocument().activeElement;a===s?this._getClosestElementsInfo(a).forEach(([l,c])=>this._originChanged(l,r,c)):(this._setOrigin(r),typeof a.focus=="function"&&a.focus(o))}ngOnDestroy(){this._elementInfo.forEach((t,r)=>this.stopMonitoring(r))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:t&&this._isLastInteractionFromInputLabel(t)?"mouse":"program"}_shouldBeAttributedToTouch(t){return this._detectionMode===Sg.EVENTUAL||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,r){t.classList.toggle("cdk-focused",!!r),t.classList.toggle("cdk-touch-focused",r==="touch"),t.classList.toggle("cdk-keyboard-focused",r==="keyboard"),t.classList.toggle("cdk-mouse-focused",r==="mouse"),t.classList.toggle("cdk-program-focused",r==="program")}_setOrigin(t,r=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=t,this._originFromTouchInteraction=t==="touch"&&r,this._detectionMode===Sg.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?ak:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(t,r){let o=this._elementInfo.get(r),a=Jn(t);!o||!o.checkChildren&&r!==a||this._originChanged(r,this._getFocusOrigin(a),o)}_onBlur(t,r){let o=this._elementInfo.get(r);!o||o.checkChildren&&t.relatedTarget instanceof Node&&r.contains(t.relatedTarget)||(this._setClasses(r),this._emitOrigin(o,null))}_emitOrigin(t,r){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(r))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;let r=t.rootNode,o=this._rootNodeFocusListenerCount.get(r)||0;o||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,wg),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,wg)}),this._rootNodeFocusListenerCount.set(r,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ye(this._stopInputModalityDetector)).subscribe(a=>{this._setOrigin(a,!0)}))}_removeGlobalListeners(t){let r=t.rootNode;if(this._rootNodeFocusListenerCount.has(r)){let o=this._rootNodeFocusListenerCount.get(r);o>1?this._rootNodeFocusListenerCount.set(r,o-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,wg),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,wg),this._rootNodeFocusListenerCount.delete(r))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,r,o){this._setClasses(t,r),this._emitOrigin(o,r),this._lastFocusOrigin=r}_getClosestElementsInfo(t){let r=[];return this._elementInfo.forEach((o,a)=>{(a===t||o.checkChildren&&a.contains(t))&&r.push([a,o])}),r}_isLastInteractionFromInputLabel(t){let{_mostRecentTarget:r,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!r||r===t||t.nodeName!=="INPUT"&&t.nodeName!=="TEXTAREA"||t.disabled)return!1;let a=t.labels;if(a){for(let s=0;s{let e=class e{constructor(t,r){this._elementRef=t,this._focusMonitor=r,this._focusOrigin=null,this.cdkFocusChange=new $}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,t.nodeType===1&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(r=>{this._focusOrigin=r,this.cdkFocusChange.emit(r)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(b(J),b(wi))},e.\u0275dir=B({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"],standalone:!0});let i=e;return i})(),uc=function(i){return i[i.NONE=0]="NONE",i[i.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",i[i.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",i}(uc||{}),JD="cdk-high-contrast-black-on-white",ZD="cdk-high-contrast-white-on-black",RC="cdk-high-contrast-active",VC=(()=>{let e=class e{constructor(t,r){this._platform=t,this._document=r,this._breakpointSubscription=x(vr).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return uc.NONE;let t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);let r=this._document.defaultView||window,o=r&&r.getComputedStyle?r.getComputedStyle(t):null,a=(o&&o.backgroundColor||"").replace(/ /g,"");switch(t.remove(),a){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return uc.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return uc.BLACK_ON_WHITE}return uc.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let t=this._document.body.classList;t.remove(RC,JD,ZD),this._hasCheckedHighContrastMode=!0;let r=this.getHighContrastMode();r===uc.BLACK_ON_WHITE?t.add(RC,JD):r===uc.WHITE_ON_BLACK&&t.add(RC,ZD)}}};e.\u0275fac=function(r){return new(r||e)(G(Le),G(pe))},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),Bd=(()=>{let e=class e{constructor(t){t._applyBodyHighContrastModeCssClasses()}};e.\u0275fac=function(r){return new(r||e)(G(VC))},e.\u0275mod=be({type:e}),e.\u0275inj=_e({imports:[Nd]});let i=e;return i})();var uj=new H("cdk-dir-doc",{providedIn:"root",factory:pj});function pj(){return x(pe)}var mj=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function hj(i){let e=i?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?mj.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var vt=(()=>{let e=class e{constructor(t){if(this.value="ltr",this.change=new $,t){let r=t.body?t.body.dir:null,o=t.documentElement?t.documentElement.dir:null;this.value=hj(r||o||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(r){return new(r||e)(G(uj,8))},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Ls=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({});let i=e;return i})();var fj=["text"],gj=[[["mat-icon"]],"*"],_j=["mat-icon","*"];function bj(i,e){if(i&1&&T(0,"mat-pseudo-checkbox",1),i&2){let n=C();v("disabled",n.disabled)("state",n.selected?"checked":"unchecked")}}function vj(i,e){if(i&1&&T(0,"mat-pseudo-checkbox",3),i&2){let n=C();v("disabled",n.disabled)}}function yj(i,e){if(i&1&&(u(0,"span",4),y(1),m()),i&2){let n=C();f(),ue("(",n.group.label,")")}}var Cj=["mat-internal-form-field",""],xj=["*"];var gk=(()=>{let e=class e{};e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";let i=e;return i})(),_k=(()=>{let e=class e{};e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms";let i=e;return i})();function wj(){return!0}var Sj=new H("mat-sanity-checks",{providedIn:"root",factory:wj}),De=(()=>{let e=class e{constructor(t,r,o){this._sanityChecks=r,this._document=o,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return gm()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[t]}};e.\u0275fac=function(r){return new(r||e)(G(VC),G(Sj,8),G(pe))},e.\u0275mod=be({type:e}),e.\u0275inj=_e({imports:[Ls,Ls]});let i=e;return i})();var Vs=class{constructor(e,n,t,r,o){this._defaultMatcher=e,this.ngControl=n,this._parentFormGroup=t,this._parentForm=r,this._stateChanges=o,this.errorState=!1}updateErrorState(){let e=this.errorState,n=this._parentFormGroup||this._parentForm,t=this.matcher||this._defaultMatcher,r=this.ngControl?this.ngControl.control:null,o=t?.isErrorState(r,n)??!1;o!==e&&(this.errorState=o,this._stateChanges.next())}};var sk=new H("MAT_DATE_LOCALE",{providedIn:"root",factory:Ej});function Ej(){return x(dg)}var hi=class{constructor(){this._localeChanges=new q,this.localeChanges=this._localeChanges}getValidDateOrNull(e){return this.isDateInstance(e)&&this.isValid(e)?e:null}deserialize(e){return e==null||this.isDateInstance(e)&&this.isValid(e)?e:this.invalid()}setLocale(e){this.locale=e,this._localeChanges.next()}compareDate(e,n){return this.getYear(e)-this.getYear(n)||this.getMonth(e)-this.getMonth(n)||this.getDate(e)-this.getDate(n)}sameDate(e,n){if(e&&n){let t=this.isValid(e),r=this.isValid(n);return t&&r?!this.compareDate(e,n):t==r}return e==n}clampDate(e,n,t){return n&&this.compareDate(e,n)<0?n:t&&this.compareDate(e,t)>0?t:e}},mo=new H("mat-date-formats"),Tj=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function jC(i,e){let n=Array(i);for(let t=0;t{let e=class e extends hi{constructor(t){super(),this.useUtcForDisplay=!1,this._matDateLocale=x(sk,{optional:!0}),t!==void 0&&(this._matDateLocale=t),super.setLocale(this._matDateLocale)}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){let r=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return jC(12,o=>this._format(r,new Date(2017,o,1)))}getDateNames(){let t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return jC(31,r=>this._format(t,new Date(2017,0,r+1)))}getDayOfWeekNames(t){let r=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return jC(7,o=>this._format(r,new Date(2017,0,o+1)))}getYearName(t){let r=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(r,t)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,r,o){let a=this._createDateWithOverflow(t,r,o);return a.getMonth()!=r,a}today(){return new Date}parse(t,r){return typeof t=="number"?new Date(t):t?new Date(Date.parse(t)):null}format(t,r){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");let o=new Intl.DateTimeFormat(this.locale,ce(N({},r),{timeZone:"utc"}));return this._format(o,t)}addCalendarYears(t,r){return this.addCalendarMonths(t,r*12)}addCalendarMonths(t,r){let o=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+r,this.getDate(t));return this.getMonth(o)!=((this.getMonth(t)+r)%12+12)%12&&(o=this._createDateWithOverflow(this.getYear(o),this.getMonth(o),0)),o}addCalendarDays(t,r){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+r)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if(typeof t=="string"){if(!t)return null;if(Tj.test(t)){let r=new Date(t);if(this.isValid(r))return r}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,r,o){let a=new Date;return a.setFullYear(t,r,o),a.setHours(0,0,0,0),a}_2digit(t){return("00"+t).slice(-2)}_format(t,r){let o=new Date;return o.setUTCFullYear(r.getFullYear(),r.getMonth(),r.getDate()),o.setUTCHours(r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()),t.format(o)}};e.\u0275fac=function(r){return new(r||e)(G(sk,8))},e.\u0275prov=W({token:e,factory:e.\u0275fac});let i=e;return i})(),Dj={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"}}};function bk(i=Dj){return[{provide:hi,useClass:GC},{provide:mo,useValue:i}]}var Ha=(()=>{let e=class e{isErrorState(t,r){return!!(t&&t.invalid&&(t.touched||r&&r.submitted))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var po=function(i){return i[i.FADING_IN=0]="FADING_IN",i[i.VISIBLE=1]="VISIBLE",i[i.FADING_OUT=2]="FADING_OUT",i[i.HIDDEN=3]="HIDDEN",i}(po||{}),HC=class{constructor(e,n,t,r=!1){this._renderer=e,this.element=n,this.config=t,this._animationForciblyDisabledThroughCss=r,this.state=po.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},lk=rn({passive:!0,capture:!0}),UC=class{constructor(){this._events=new Map,this._delegateEventHandler=e=>{let n=Jn(e);n&&this._events.get(e.type)?.forEach((t,r)=>{(r===n||r.contains(n))&&t.forEach(o=>o.handleEvent(e))})}}addHandler(e,n,t,r){let o=this._events.get(n);if(o){let a=o.get(t);a?a.add(r):o.set(t,new Set([r]))}else this._events.set(n,new Map([[t,new Set([r])]])),e.runOutsideAngular(()=>{document.addEventListener(n,this._delegateEventHandler,lk)})}removeHandler(e,n,t){let r=this._events.get(e);if(!r)return;let o=r.get(n);o&&(o.delete(t),o.size===0&&r.delete(n),r.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,lk)))}},ck={enterDuration:225,exitDuration:150},kj=800,dk=rn({passive:!0,capture:!0}),uk=["mousedown","touchstart"],pk=["mouseup","mouseleave","touchend","touchcancel"],wm=class wm{constructor(e,n,t,r){this._target=e,this._ngZone=n,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=br(t))}fadeInRipple(e,n,t={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=N(N({},ck),t.animation);t.centered&&(e=r.left+r.width/2,n=r.top+r.height/2);let a=t.radius||Ij(e,n,r),s=e-r.left,l=n-r.top,c=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=`${s-a}px`,d.style.top=`${l-a}px`,d.style.height=`${a*2}px`,d.style.width=`${a*2}px`,t.color!=null&&(d.style.backgroundColor=t.color),d.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(d);let p=window.getComputedStyle(d),h=p.transitionProperty,g=p.transitionDuration,_=h==="none"||g==="0s"||g==="0s, 0s"||r.width===0&&r.height===0,S=new HC(this,d,t,_);d.style.transform="scale3d(1, 1, 1)",S.state=po.FADING_IN,t.persistent||(this._mostRecentTransientRipple=S);let E=null;return!_&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let D=()=>{E&&(E.fallbackTimer=null),clearTimeout(I),this._finishRippleTransition(S)},O=()=>this._destroyRipple(S),I=setTimeout(O,c+100);d.addEventListener("transitionend",D),d.addEventListener("transitioncancel",O),E={onTransitionEnd:D,onTransitionCancel:O,fallbackTimer:I}}),this._activeRipples.set(S,E),(_||!c)&&this._finishRippleTransition(S),S}fadeOutRipple(e){if(e.state===po.FADING_OUT||e.state===po.HIDDEN)return;let n=e.element,t=N(N({},ck),e.config.animation);n.style.transitionDuration=`${t.exitDuration}ms`,n.style.opacity="0",e.state=po.FADING_OUT,(e._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){let n=br(e);!this._platform.isBrowser||!n||n===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=n,uk.forEach(t=>{wm._eventManager.addHandler(this._ngZone,t,n,this)}))}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{pk.forEach(n=>{this._triggerElement.addEventListener(n,this,dk)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===po.FADING_IN?this._startFadeOutTransition(e):e.state===po.FADING_OUT&&this._destroyRipple(e)}_startFadeOutTransition(e){let n=e===this._mostRecentTransientRipple,{persistent:t}=e.config;e.state=po.VISIBLE,!t&&(!n||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){let n=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=po.HIDDEN,n!==null&&(e.element.removeEventListener("transitionend",n.onTransitionEnd),e.element.removeEventListener("transitioncancel",n.onTransitionCancel),n.fallbackTimer!==null&&clearTimeout(n.fallbackTimer)),e.element.remove()}_onMousedown(e){let n=Cm(e),t=this._lastTouchStartEvent&&Date.now(){let n=e.state===po.VISIBLE||e.config.terminateOnPointerUp&&e.state===po.FADING_IN;!e.config.persistent&&n&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(uk.forEach(n=>wm._eventManager.removeHandler(n,e,this)),this._pointerUpEventsRegistered&&(pk.forEach(n=>e.removeEventListener(n,this,dk)),this._pointerUpEventsRegistered=!1))}};wm._eventManager=new UC;var Sm=wm;function Ij(i,e,n){let t=Math.max(Math.abs(i-n.left),Math.abs(i-n.right)),r=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(t*t+r*r)}var Ua=new H("mat-ripple-global-options"),Fi=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}constructor(t,r,o,a,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=a||{},this._rippleRenderer=new Sm(this,r,t,o)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:N(N(N({},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(t,r=0,o){return typeof t=="number"?this._rippleRenderer.fadeInRipple(t,r,N(N({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,N(N({},this.rippleConfig),t))}};e.\u0275fac=function(r){return new(r||e)(b(J),b(de),b(Le),b(Ua,8),b(gt,8))},e.\u0275dir=B({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(r,o){r&2&&se("mat-ripple-unbounded",o.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});let i=e;return i})(),fn=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({imports:[De,De]});let i=e;return i})(),qC=(()=>{let e=class e{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1,this.appearance="full"}};e.\u0275fac=function(r){return new(r||e)(b(gt,8))},e.\u0275cmp=F({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(r,o){r&2&&se("mat-pseudo-checkbox-indeterminate",o.state==="indeterminate")("mat-pseudo-checkbox-checked",o.state==="checked")("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal",o.appearance==="minimal")("mat-pseudo-checkbox-full",o.appearance==="full")("_mat-animation-noopable",o._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[P],decls:0,vars:0,template:function(r,o){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-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});let i=e;return i})(),WC=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({imports:[De]});let i=e;return i})(),Tm=new H("MAT_OPTION_PARENT_COMPONENT");var Dm=new H("MatOptgroup");var Mj=0,Em=class{constructor(e,n=!1){this.source=e,this.isUserInput=n}},Pi=(()=>{let e=class e{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(t){this._disabled=t}get disableRipple(){return!!(this._parent&&this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}constructor(t,r,o,a){this._element=t,this._changeDetectorRef=r,this._parent=o,this.group=a,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${Mj++}`,this.onSelectionChange=new $,this._stateChanges=new q}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(t=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),t&&this._emitSelectionChangeEvent())}deselect(t=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),t&&this._emitSelectionChangeEvent())}focus(t,r){let o=this._getHostElement();typeof o.focus=="function"&&o.focus(r)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){(t.keyCode===13||t.keyCode===32)&&!Dt(t)&&(this._selectViaInteraction(),t.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 t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=t)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new Em(this,t))}};e.\u0275fac=function(r){return new(r||e)(b(J),b(Se),b(Tm,8),b(Dm,8))},e.\u0275cmp=F({type:e,selectors:[["mat-option"]],viewQuery:function(r,o){if(r&1&&ve(fj,7),r&2){let a;K(a=Y())&&(o._text=a.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(r,o){r&1&&w("click",function(){return o._selectViaInteraction()})("keydown",function(s){return o._handleKeydown(s)}),r&2&&(Ci("id",o.id),ne("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),se("mdc-list-item--selected",o.selected)("mat-mdc-option-multiple",o.multiple)("mat-mdc-option-active",o.active)("mdc-list-item--disabled",o.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",ee]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[xe,P],ngContentSelectors:_j,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(r,o){r&1&&(Me(gj),M(0,bj,1,2,"mat-pseudo-checkbox",1),ae(1),u(2,"span",2,0),ae(4,1),m(),M(5,vj,1,1,"mat-pseudo-checkbox",3)(6,yj,2,1,"span",4),T(7,"div",5)),r&2&&(k(o.multiple?0:-1),f(5),k(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),f(),k(o.group&&o.group._inert?6:-1),f(),v("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[qC,Fi],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.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});let i=e;return i})();function Ng(i,e,n){if(n.length){let t=e.toArray(),r=n.toArray(),o=0;for(let a=0;an+t?Math.max(0,i-t+e):n}var Li=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({imports:[fn,De,WC]});let i=e;return i})(),mk={capture:!0},hk=["focus","mousedown","mouseenter","touchstart"],BC="mat-ripple-loader-uninitialized",zC="mat-ripple-loader-class-name",fk="mat-ripple-loader-centered",Rg="mat-ripple-loader-disabled",Pg=(()=>{let e=class e{constructor(){this._document=x(pe,{optional:!0}),this._animationMode=x(gt,{optional:!0}),this._globalRippleOptions=x(Ua,{optional:!0}),this._platform=x(Le),this._ngZone=x(de),this._hosts=new Map,this._onInteraction=t=>{let r=Jn(t);if(r instanceof HTMLElement){let o=r.closest(`[${BC}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o)}},this._ngZone.runOutsideAngular(()=>{for(let t of hk)this._document?.addEventListener(t,this._onInteraction,mk)})}ngOnDestroy(){let t=this._hosts.keys();for(let r of t)this.destroyRipple(r);for(let r of hk)this._document?.removeEventListener(r,this._onInteraction,mk)}configureRipple(t,r){t.setAttribute(BC,this._globalRippleOptions?.namespace??""),(r.className||!t.hasAttribute(zC))&&t.setAttribute(zC,r.className||""),r.centered&&t.setAttribute(fk,""),r.disabled&&t.setAttribute(Rg,"")}getRipple(t){return this._hosts.get(t)||this._createRipple(t)}setDisabled(t,r){let o=this._hosts.get(t);if(o){o.disabled=r;return}r?t.setAttribute(Rg,""):t.removeAttribute(Rg)}_createRipple(t){if(!this._document)return;let r=this._hosts.get(t);if(r)return r;t.querySelector(".mat-ripple")?.remove();let o=this._document.createElement("span");o.classList.add("mat-ripple",t.getAttribute(zC)),t.append(o);let a=new Fi(new J(o),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return a._isInitialized=!0,a.trigger=t,a.centered=t.hasAttribute(fk),a.disabled=t.hasAttribute(Rg),this.attachRipple(t,a),a}attachRipple(t,r){t.removeAttribute(BC),this._hosts.set(t,r)}destroyRipple(t){let r=this._hosts.get(t);r&&(r.ngOnDestroy(),this._hosts.delete(t))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),vk=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=F({type:e,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(r,o){r&2&&se("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[P],attrs:Cj,ngContentSelectors:xj,decls:1,vars:0,template:function(r,o){r&1&&(Me(),ae(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});let i=e;return i})();var Ck=["mat-button",""],QC=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],KC=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],Oj='.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)}',YC=".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}",Aj=["mat-fab",""];var xk=["mat-icon-button",""],wk=["*"],Rj='.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}',Nj=new H("MAT_BUTTON_CONFIG");var Fj=[{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"]}],Lg=(()=>{let e=class e{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(t){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,t)}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=t,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._updateRippleDisabled()}constructor(t,r,o,a){this._elementRef=t,this._platform=r,this._ngZone=o,this._animationMode=a,this._focusMonitor=x(wi),this._rippleLoader=x(Pg),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let s=x(Nj,{optional:!0}),l=t.nativeElement,c=l.classList;this.disabledInteractive=s?.disabledInteractive??!1,this.color=s?.color??null,this._rippleLoader?.configureRipple(l,{className:"mat-mdc-button-ripple"});for(let{attribute:d,mdcClasses:p}of Fj)l.hasAttribute(d)&&c.add(...p)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(t="program",r){t?this._focusMonitor.focusVia(this._elementRef.nativeElement,t,r):this._elementRef.nativeElement.focus(r)}_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)}};e.\u0275fac=function(r){kn()},e.\u0275dir=B({type:e,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",ee],disabled:[2,"disabled","disabled",ee],ariaDisabled:[2,"aria-disabled","ariaDisabled",ee],disabledInteractive:[2,"disabledInteractive","disabledInteractive",ee]},features:[xe]});let i=e;return i})();var Sk=(()=>{let e=class e extends Lg{constructor(t,r,o,a){super(t,r,o,a),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.disabled:this.ariaDisabled}};e.\u0275fac=function(r){kn()},e.\u0275dir=B({type:e,inputs:{tabIndex:[2,"tabIndex","tabIndex",t=>t==null?void 0:Lt(t)]},features:[xe,X]});let i=e;return i})(),Ze=(()=>{let e=class e extends Lg{constructor(t,r,o,a){super(t,r,o,a)}};e.\u0275fac=function(r){return new(r||e)(b(J),b(Le),b(de),b(gt,8))},e.\u0275cmp=F({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(r,o){r&2&&(ne("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),Yt(o.color?"mat-"+o.color:""),se("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[X,P],attrs:Ck,ngContentSelectors:KC,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(r,o){r&1&&(Me(QC),T(0,"span",0),ae(1),u(2,"span",1),ae(3,1),m(),ae(4,2),T(5,"span",2)(6,"span",3)),r&2&&se("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._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});let i=e;return i})(),Cr=(()=>{let e=class e extends Sk{constructor(t,r,o,a){super(t,r,o,a)}};e.\u0275fac=function(r){return new(r||e)(b(J),b(Le),b(de),b(gt,8))},e.\u0275cmp=F({type:e,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:15,hostBindings:function(r,o){r&2&&(ne("disabled",o._getDisabledAttribute())("tabindex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("aria-disabled",o._getDisabledAttribute()),Yt(o.color?"mat-"+o.color:""),se("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[X,P],attrs:Ck,ngContentSelectors:KC,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(r,o){r&1&&(Me(QC),T(0,"span",0),ae(1),u(2,"span",1),ae(3,1),m(),ae(4,2),T(5,"span",2)(6,"span",3)),r&2&&se("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[Oj,YC],encapsulation:2,changeDetection:0});let i=e;return i})(),Pj=new H("mat-mdc-fab-default-options",{providedIn:"root",factory:Ek});function Ek(){return{color:"accent"}}var yk=Ek(),Tk=(()=>{let e=class e extends Lg{constructor(t,r,o,a,s){super(t,r,o,a),this._options=s,this._isFab=!0,this._options=this._options||yk,this.color=this._options.color||yk.color}};e.\u0275fac=function(r){return new(r||e)(b(J),b(Le),b(de),b(gt,8),b(Pj,8))},e.\u0275cmp=F({type:e,selectors:[["button","mat-fab",""]],hostVars:18,hostBindings:function(r,o){r&2&&(ne("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),Yt(o.color?"mat-"+o.color:""),se("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0)("mdc-fab--extended",o.extended)("mat-mdc-extended-fab",o.extended))},inputs:{extended:[2,"extended","extended",ee]},exportAs:["matButton"],standalone:!0,features:[xe,X,P],attrs:Aj,ngContentSelectors:KC,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(r,o){r&1&&(Me(QC),T(0,"span",0),ae(1),u(2,"span",1),ae(3,1),m(),ae(4,2),T(5,"span",2)(6,"span",3)),r&2&&se("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:['.mat-mdc-fab-base{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1);flex-shrink:0}.mat-mdc-fab-base .mat-mdc-button-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab-base .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab-base .mdc-button__label,.mat-mdc-fab-base .mat-icon{z-index:1;position:relative}.mat-mdc-fab-base .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab-base:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-fab-base._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab-base::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}.mat-mdc-fab-base[hidden]{display:none}.mat-mdc-fab-base::-moz-focus-inner{padding:0;border:0}.mat-mdc-fab-base:active,.mat-mdc-fab-base:focus{outline:none}.mat-mdc-fab-base:hover{cursor:pointer}.mat-mdc-fab-base>svg{width:100%}.mat-mdc-fab-base .mat-icon,.mat-mdc-fab-base .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab-base .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base[disabled]:focus,.mat-mdc-fab-base.mat-mdc-button-disabled,.mat-mdc-fab-base.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab-base.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{background-color:var(--mdc-fab-container-color, var(--mat-app-primary-container));border-radius:var(--mdc-fab-container-shape, var(--mat-app-corner-large));color:var(--mat-fab-foreground-color, var(--mat-app-on-primary-container, inherit));box-shadow:var(--mdc-fab-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-touch-target-display)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color)}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color, var(--mat-app-on-primary-container))}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-fab:hover{box-shadow:var(--mdc-fab-hover-container-elevation-shadow, var(--mat-app-level4))}.mat-mdc-fab:focus{box-shadow:var(--mdc-fab-focus-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mdc-fab-pressed-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color);background-color:var(--mat-fab-disabled-state-container-color)}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab{width:40px;height:40px;background-color:var(--mdc-fab-small-container-color, var(--mat-app-primary-container));border-radius:var(--mdc-fab-small-container-shape, var(--mat-app-corner-medium));color:var(--mat-fab-small-foreground-color, var(--mat-app-on-primary-container, inherit));box-shadow:var(--mdc-fab-small-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-small-touch-target-display)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color)}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color, var(--mat-app-on-primary-container))}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-mini-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-mini-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-mini-fab:hover{box-shadow:var(--mdc-fab-small-hover-container-elevation-shadow, var(--mat-app-level4))}.mat-mdc-mini-fab:focus{box-shadow:var(--mdc-fab-small-focus-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mdc-fab-small-pressed-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color);background-color:var(--mat-fab-small-disabled-state-container-color)}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;line-height:normal;box-shadow:var(--mdc-extended-fab-container-elevation-shadow, var(--mat-app-level3));height:var(--mdc-extended-fab-container-height);border-radius:var(--mdc-extended-fab-container-shape, var(--mat-app-corner-large));font-family:var(--mdc-extended-fab-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-extended-fab-label-text-size, var(--mat-app-label-large-size));font-weight:var(--mdc-extended-fab-label-text-weight, var(--mat-app-label-large-weight));letter-spacing:var(--mdc-extended-fab-label-text-tracking, var(--mat-app-label-large-tracking))}.mat-mdc-extended-fab:hover{box-shadow:var(--mdc-extended-fab-hover-container-elevation-shadow, var(--mat-app-level4))}.mat-mdc-extended-fab:focus{box-shadow:var(--mdc-extended-fab-focus-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mdc-extended-fab-pressed-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:-8px;margin-right:12px}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons,[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons{margin-left:12px;margin-right:-8px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}'],encapsulation:2,changeDetection:0});let i=e;return i})();var li=(()=>{let e=class e extends Lg{constructor(t,r,o,a){super(t,r,o,a),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}};e.\u0275fac=function(r){return new(r||e)(b(J),b(Le),b(de),b(gt,8))},e.\u0275cmp=F({type:e,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(r,o){r&2&&(ne("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),Yt(o.color?"mat-"+o.color:""),se("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[X,P],attrs:xk,ngContentSelectors:wk,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(r,o){r&1&&(Me(),T(0,"span",0),ae(1),T(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}',YC],encapsulation:2,changeDetection:0});let i=e;return i})(),zd=(()=>{let e=class e extends Sk{constructor(t,r,o,a){super(t,r,o,a)}};e.\u0275fac=function(r){return new(r||e)(b(J),b(Le),b(de),b(gt,8))},e.\u0275cmp=F({type:e,selectors:[["a","mat-icon-button",""]],hostVars:15,hostBindings:function(r,o){r&2&&(ne("disabled",o._getDisabledAttribute())("tabindex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("aria-disabled",o._getDisabledAttribute()),Yt(o.color?"mat-"+o.color:""),se("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[X,P],attrs:xk,ngContentSelectors:wk,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(r,o){r&1&&(Me(),T(0,"span",0),ae(1),T(2,"span",1)(3,"span",2))},styles:[Rj,YC],encapsulation:2,changeDetection:0});let i=e;return i})(),we=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({imports:[De,fn,De]});let i=e;return i})();var js=class{};function $d(i){return i&&typeof i.connect=="function"&&!(i instanceof nm)}var Hd=function(i){return i[i.REPLACED=0]="REPLACED",i[i.INSERTED=1]="INSERTED",i[i.MOVED=2]="MOVED",i[i.REMOVED=3]="REMOVED",i}(Hd||{}),km=new H("_ViewRepeater"),Ud=class{applyChanges(e,n,t,r,o){e.forEachOperation((a,s,l)=>{let c,d;if(a.previousIndex==null){let p=t(a,s,l);c=n.createEmbeddedView(p.templateRef,p.context,p.index),d=Hd.INSERTED}else l==null?(n.remove(s),d=Hd.REMOVED):(c=n.get(s),n.move(c,l),d=Hd.MOVED);o&&o({context:c?.context,operation:d,record:a})})}detach(){}};var On=class{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(e=!1,n,t=!0,r){this._multiple=e,this._emitChanges=t,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new q,n&&n.length&&(e?n.forEach(o=>this._markSelected(o)):this._markSelected(n[0]),this._selectedToEmit.length=0)}select(...e){this._verifyValueAssignment(e),e.forEach(t=>this._markSelected(t));let n=this._hasQueuedChanges();return this._emitChangeEvent(),n}deselect(...e){this._verifyValueAssignment(e),e.forEach(t=>this._unmarkSelected(t));let n=this._hasQueuedChanges();return this._emitChangeEvent(),n}setSelection(...e){this._verifyValueAssignment(e);let n=this.selected,t=new Set(e);e.forEach(o=>this._markSelected(o)),n.filter(o=>!t.has(this._getConcreteValue(o,t))).forEach(o=>this._unmarkSelected(o));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(e){return this.isSelected(e)?this.deselect(e):this.select(e)}clear(e=!0){this._unmarkAll();let n=this._hasQueuedChanges();return e&&this._emitChangeEvent(),n}isSelected(e){return this._selection.has(this._getConcreteValue(e))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}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(e){e=this._getConcreteValue(e),this.isSelected(e)||(this._multiple||this._unmarkAll(),this.isSelected(e)||this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){e=this._getConcreteValue(e),this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){e.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(e,n){if(this.compareWith){n=n??this._selection;for(let t of n)if(this.compareWith(e,t))return t;return e}else return e}};var Vg=(()=>{let e=class e{constructor(){this._listeners=[]}notify(t,r){for(let o of this._listeners)o(t,r)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(r=>t!==r)}}ngOnDestroy(){this._listeners=[]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Lj=20,$a=(()=>{let e=class e{constructor(t,r,o){this._ngZone=t,this._platform=r,this._scrolled=new q,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){let r=this.scrollContainers.get(t);r&&(r.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=Lj){return this._platform.isBrowser?new Ct(r=>{this._globalSubscription||this._addGlobalListener();let o=t>0?this._scrolled.pipe(uC(t)).subscribe(r):this._scrolled.subscribe(r);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):U()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,r)=>this.deregister(r)),this._scrolled.complete()}ancestorScrolled(t,r){let o=this.getAncestorScrollContainers(t);return this.scrolled(r).pipe(Re(a=>!a||o.indexOf(a)>-1))}getAncestorScrollContainers(t){let r=[];return this.scrollContainers.forEach((o,a)=>{this._scrollableContainsElement(a,t)&&r.push(a)}),r}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,r){let o=br(r),a=t.getElementRef().nativeElement;do if(o==a)return!0;while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let t=this._getWindow();return fr(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};e.\u0275fac=function(r){return new(r||e)(G(de),G(Le),G(pe,8))},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),Po=(()=>{let e=class e{constructor(t,r,o,a){this.elementRef=t,this.scrollDispatcher=r,this.ngZone=o,this.dir=a,this._destroyed=new q,this._elementScrolled=new Ct(s=>this.ngZone.runOutsideAngular(()=>fr(this.elementRef.nativeElement,"scroll").pipe(ye(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(t){let r=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";t.left==null&&(t.left=o?t.end:t.start),t.right==null&&(t.right=o?t.start:t.end),t.bottom!=null&&(t.top=r.scrollHeight-r.clientHeight-t.bottom),o&&Ad()!=Fo.NORMAL?(t.left!=null&&(t.right=r.scrollWidth-r.clientWidth-t.left),Ad()==Fo.INVERTED?t.left=t.right:Ad()==Fo.NEGATED&&(t.left=t.right?-t.right:t.right)):t.right!=null&&(t.left=r.scrollWidth-r.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){let r=this.elementRef.nativeElement;Cg()?r.scrollTo(t):(t.top!=null&&(r.scrollTop=t.top),t.left!=null&&(r.scrollLeft=t.left))}measureScrollOffset(t){let r="left",o="right",a=this.elementRef.nativeElement;if(t=="top")return a.scrollTop;if(t=="bottom")return a.scrollHeight-a.clientHeight-a.scrollTop;let s=this.dir&&this.dir.value=="rtl";return t=="start"?t=s?o:r:t=="end"&&(t=s?r:o),s&&Ad()==Fo.INVERTED?t==r?a.scrollWidth-a.clientWidth-a.scrollLeft:a.scrollLeft:s&&Ad()==Fo.NEGATED?t==r?a.scrollLeft+a.scrollWidth-a.clientWidth:-a.scrollLeft:t==r?a.scrollLeft:a.scrollWidth-a.clientWidth-a.scrollLeft}};e.\u0275fac=function(r){return new(r||e)(b(J),b($a),b(de),b(vt,8))},e.\u0275dir=B({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0});let i=e;return i})(),Vj=20,tr=(()=>{let e=class e{constructor(t,r,o){this._platform=t,this._change=new q,this._changeListener=a=>{this._change.next(a)},this._document=o,r.runOutsideAngular(()=>{if(t.isBrowser){let a=this._getWindow();a.addEventListener("resize",this._changeListener),a.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){let t=this.getViewportScrollPosition(),{width:r,height:o}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+o,right:t.left+r,height:o,width:r}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let t=this._document,r=this._getWindow(),o=t.documentElement,a=o.getBoundingClientRect(),s=-a.top||t.body.scrollTop||r.scrollY||o.scrollTop||0,l=-a.left||t.body.scrollLeft||r.scrollX||o.scrollLeft||0;return{top:s,left:l}}change(t=Vj){return t>0?this._change.pipe(uC(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}};e.\u0275fac=function(r){return new(r||e)(G(Le),G(de),G(pe,8))},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var er=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({});let i=e;return i})(),Im=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({imports:[Ls,er,Ls,er]});let i=e;return i})();var Mm=class{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},on=class extends Mm{constructor(e,n,t,r,o){super(),this.component=e,this.viewContainerRef=n,this.injector=t,this.componentFactoryResolver=r,this.projectableNodes=o}},Vi=class extends Mm{constructor(e,n,t,r){super(),this.templateRef=e,this.viewContainerRef=n,this.context=t,this.injector=r}get origin(){return this.templateRef.elementRef}attach(e,n=this.context){return this.context=n,super.attach(e)}detach(){return this.context=void 0,super.detach()}},XC=class extends Mm{constructor(e){super(),this.element=e instanceof J?e.nativeElement:e}},da=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof on)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof Vi)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof XC)return this._attachedPortal=e,this.attachDomPortal(e)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var Gd=class extends da{constructor(e,n,t,r,o){super(),this.outletElement=e,this._componentFactoryResolver=n,this._appRef=t,this._defaultInjector=r,this.attachDomPortal=a=>{this._document;let s=a.element;s.parentNode;let l=this._document.createComment("dom-portal");s.parentNode.insertBefore(l,s),this.outletElement.appendChild(s),this._attachedPortal=a,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(s,l)})},this._document=o}attachComponentPortal(e){let t=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r;return e.viewContainerRef?(r=e.viewContainerRef.createComponent(t,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector,e.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=t.create(e.injector||this._defaultInjector||ze.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=e,r}attachTemplatePortal(e){let n=e.viewContainerRef,t=n.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return t.rootNodes.forEach(r=>this.outletElement.appendChild(r)),t.detectChanges(),this.setDisposeFn(()=>{let r=n.indexOf(t);r!==-1&&n.remove(r)}),this._attachedPortal=e,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var kk=(()=>{let e=class e extends Vi{constructor(t,r){super(t,r)}};e.\u0275fac=function(r){return new(r||e)(b(ft),b(Ft))},e.\u0275dir=B({type:e,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],standalone:!0,features:[X]});let i=e;return i})();var Ii=(()=>{let e=class e extends da{constructor(t,r,o){super(),this._componentFactoryResolver=t,this._viewContainerRef=r,this._isInitialized=!1,this.attached=new $,this.attachDomPortal=a=>{this._document;let s=a.element;s.parentNode;let l=this._document.createComment("dom-portal");a.setAttachedHost(this),s.parentNode.insertBefore(l,s),this._getRootNode().appendChild(s),this._attachedPortal=a,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(s,l)})},this._document=o}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(t){t.setAttachedHost(this);let r=t.viewContainerRef!=null?t.viewContainerRef:this._viewContainerRef,a=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),s=r.createComponent(a,r.length,t.injector||r.injector,t.projectableNodes||void 0);return r!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=t,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(t){t.setAttachedHost(this);let r=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=r,this.attached.emit(r),r}_getRootNode(){let t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}};e.\u0275fac=function(r){return new(r||e)(b(Ts),b(Ft),b(pe))},e.\u0275dir=B({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[X]});let i=e;return i})();var ir=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({});let i=e;return i})();var Ik=Cg(),JC=class{constructor(e,n){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=ki(-this._previousScrollPosition.left),e.style.top=ki(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let e=this._document.documentElement,n=this._document.body,t=e.style,r=n.style,o=t.scrollBehavior||"",a=r.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),Ik&&(t.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Ik&&(t.scrollBehavior=o,r.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let n=this._document.body,t=this._viewportRuler.getViewportSize();return n.scrollHeight>t.height||n.scrollWidth>t.width}};var ZC=class{constructor(e,n,t,r){this._scrollDispatcher=e,this._ngZone=n,this._viewportRuler=t,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(Re(n=>!n||!this._overlayRef.overlayElement.contains(n.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let n=this._viewportRuler.getViewportScrollPosition().top;Math.abs(n-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},jg=class{enable(){}disable(){}attach(){}};function ex(i,e){return e.some(n=>{let t=i.bottomn.bottom,o=i.rightn.right;return t||r||o||a})}function Mk(i,e){return e.some(n=>{let t=i.topn.bottom,o=i.leftn.right;return t||r||o||a})}var tx=class{constructor(e,n,t,r){this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=t,this._config=r,this._scrollSubscription=null}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(!this._scrollSubscription){let e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let n=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:r}=this._viewportRuler.getViewportSize();ex(n,[{width:t,height:r,bottom:r,right:t,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}},Bj=(()=>{let e=class e{constructor(t,r,o,a){this._scrollDispatcher=t,this._viewportRuler=r,this._ngZone=o,this.noop=()=>new jg,this.close=s=>new ZC(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new JC(this._viewportRuler,this._document),this.reposition=s=>new tx(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=a}};e.\u0275fac=function(r){return new(r||e)(G($a),G(tr),G(de),G(pe))},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),An=class{constructor(e){if(this.scrollStrategy=new jg,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){let n=Object.keys(e);for(let t of n)e[t]!==void 0&&(this[t]=e[t])}}};var ix=class{constructor(e,n){this.connectionPair=e,this.scrollableViewProperties=n}};var Pk=(()=>{let e=class e{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){let r=this._attachedOverlays.indexOf(t);r>-1&&this._attachedOverlays.splice(r,1),this._attachedOverlays.length===0&&this.detach()}};e.\u0275fac=function(r){return new(r||e)(G(pe))},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),zj=(()=>{let e=class e extends Pk{constructor(t,r){super(t),this._ngZone=r,this._keydownListener=o=>{let a=this._attachedOverlays;for(let s=a.length-1;s>-1;s--)if(a[s]._keydownEvents.observers.length>0){let l=a[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>l.next(o)):l.next(o);break}}}add(t){super.add(t),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)}};e.\u0275fac=function(r){return new(r||e)(G(pe),G(de,8))},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),Hj=(()=>{let e=class e extends Pk{constructor(t,r,o){super(t),this._platform=r,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=a=>{this._pointerDownEventTarget=Jn(a)},this._clickListener=a=>{let s=Jn(a),l=a.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;let c=this._attachedOverlays.slice();for(let d=c.length-1;d>-1;d--){let p=c[d];if(p._outsidePointerEvents.observers.length<1||!p.hasAttached())continue;if(Ok(p.overlayElement,s)||Ok(p.overlayElement,l))break;let h=p._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>h.next(a)):h.next(a)}}}add(t){if(super.add(t),!this._isAttached){let r=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(r)):this._addEventListeners(r),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=r.style.cursor,r.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(t){t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0)}};e.\u0275fac=function(r){return new(r||e)(G(pe),G(Le),G(de,8))},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function Ok(i,e){let n=typeof ShadowRoot<"u"&&ShadowRoot,t=e;for(;t;){if(t===i)return!0;t=n&&t instanceof ShadowRoot?t.host:t.parentNode}return!1}var qd=(()=>{let e=class e{constructor(t,r){this._platform=r,this._document=t}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t="cdk-overlay-container";if(this._platform.isBrowser||gm()){let o=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let a=0;athis._backdropClick.next(h),this._backdropTransitionendHandler=h=>{this._disposeBackdrop(h.target)},this._keydownEvents=new q,this._outsidePointerEvents=new q,this._renders=new q,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy,this._afterRenderRef=ao(()=>sg(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let n=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),si(()=>{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 n?.onDestroy=="function"&&n.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),n}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,e&&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(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=N(N({},this._config),e),this._updateElementSize()}setDirection(e){this._config=ce(N({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=ki(this._config.width),e.height=ki(this._config.height),e.minWidth=ki(this._config.minWidth),e.minHeight=ki(this._config.minHeight),e.maxWidth=ki(this._config.maxWidth),e.maxHeight=ki(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){let e="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(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let e=this._backdropElement;if(e){if(this._animationsDisabled){this._disposeBackdrop(e);return}e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500))}}_toggleClasses(e,n,t){let r=Rd(n||[]).filter(o=>!!o);r.length&&(t?e.classList.add(...r):e.classList.remove(...r))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let e=this._renders.pipe(ye(Ge(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()),e.unsubscribe())})})}_disposeScrollStrategy(){let e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},Ak="cdk-overlay-connected-position-bounding-box",Uj=/([A-Za-z%]+)$/,Om=class{get positions(){return this._preferredPositions}constructor(e,n,t,r,o){this._viewportRuler=n,this._document=t,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 q,this._resizeSubscription=et.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(Ak),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.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 e=this._originRect,n=this._overlayRect,t=this._viewportRect,r=this._containerRect,o=[],a;for(let s of this._preferredPositions){let l=this._getOriginPoint(e,r,s),c=this._getOverlayPoint(l,n,s),d=this._getOverlayFit(c,n,t,s);if(d.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,l);return}if(this._canFitWithFlexibleDimensions(d,c,t)){o.push({position:s,origin:l,overlayRect:n,boundingBoxRect:this._calculateBoundingBoxRect(l,s)});continue}(!a||a.overlayFit.visibleAreal&&(l=d,s=c)}this._isPushed=!1,this._applyPosition(s.position,s.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(a.position,a.originPoint);return}this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&hc(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Ak),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let n=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,n)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,n,t){let r;if(t.originX=="center")r=e.left+e.width/2;else{let a=this._isRtl()?e.right:e.left,s=this._isRtl()?e.left:e.right;r=t.originX=="start"?a:s}n.left<0&&(r-=n.left);let o;return t.originY=="center"?o=e.top+e.height/2:o=t.originY=="top"?e.top:e.bottom,n.top<0&&(o-=n.top),{x:r,y:o}}_getOverlayPoint(e,n,t){let r;t.overlayX=="center"?r=-n.width/2:t.overlayX==="start"?r=this._isRtl()?-n.width:0:r=this._isRtl()?0:-n.width;let o;return t.overlayY=="center"?o=-n.height/2:o=t.overlayY=="top"?0:-n.height,{x:e.x+r,y:e.y+o}}_getOverlayFit(e,n,t,r){let o=Nk(n),{x:a,y:s}=e,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(a+=l),c&&(s+=c);let d=0-a,p=a+o.width-t.width,h=0-s,g=s+o.height-t.height,_=this._subtractOverflows(o.width,d,p),S=this._subtractOverflows(o.height,h,g),E=_*S;return{visibleArea:E,isCompletelyWithinViewport:o.width*o.height===E,fitsInViewportVertically:S===o.height,fitsInViewportHorizontally:_==o.width}}_canFitWithFlexibleDimensions(e,n,t){if(this._hasFlexibleDimensions){let r=t.bottom-n.y,o=t.right-n.x,a=Rk(this._overlayRef.getConfig().minHeight),s=Rk(this._overlayRef.getConfig().minWidth),l=e.fitsInViewportVertically||a!=null&&a<=r,c=e.fitsInViewportHorizontally||s!=null&&s<=o;return l&&c}return!1}_pushOverlayOnScreen(e,n,t){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let r=Nk(n),o=this._viewportRect,a=Math.max(e.x+r.width-o.width,0),s=Math.max(e.y+r.height-o.height,0),l=Math.max(o.top-t.top-e.y,0),c=Math.max(o.left-t.left-e.x,0),d=0,p=0;return r.width<=o.width?d=c||-a:d=e.x_&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.y-_/2)}let l=n.overlayX==="start"&&!r||n.overlayX==="end"&&r,c=n.overlayX==="end"&&!r||n.overlayX==="start"&&r,d,p,h;if(c)h=t.width-e.x+this._viewportMargin*2,d=e.x-this._viewportMargin;else if(l)p=e.x,d=t.right-e.x;else{let g=Math.min(t.right-e.x+t.left,e.x),_=this._lastBoundingBoxSize.width;d=g*2,p=e.x-g,d>_&&!this._isInitialRender&&!this._growAfterOpen&&(p=e.x-_/2)}return{top:a,left:p,bottom:s,right:h,width:d,height:o}}_setBoundingBoxStyles(e,n){let t=this._calculateBoundingBoxRect(e,n);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.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,a=this._overlayRef.getConfig().maxWidth;r.height=ki(t.height),r.top=ki(t.top),r.bottom=ki(t.bottom),r.width=ki(t.width),r.left=ki(t.left),r.right=ki(t.right),n.overlayX==="center"?r.alignItems="center":r.alignItems=n.overlayX==="end"?"flex-end":"flex-start",n.overlayY==="center"?r.justifyContent="center":r.justifyContent=n.overlayY==="bottom"?"flex-end":"flex-start",o&&(r.maxHeight=ki(o)),a&&(r.maxWidth=ki(a))}this._lastBoundingBoxSize=t,hc(this._boundingBox.style,r)}_resetBoundingBoxStyles(){hc(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){hc(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,n){let t={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(r){let d=this._viewportRuler.getViewportScrollPosition();hc(t,this._getExactOverlayY(n,e,d)),hc(t,this._getExactOverlayX(n,e,d))}else t.position="static";let s="",l=this._getOffset(n,"x"),c=this._getOffset(n,"y");l&&(s+=`translateX(${l}px) `),c&&(s+=`translateY(${c}px)`),t.transform=s.trim(),a.maxHeight&&(r?t.maxHeight=ki(a.maxHeight):o&&(t.maxHeight="")),a.maxWidth&&(r?t.maxWidth=ki(a.maxWidth):o&&(t.maxWidth="")),hc(this._pane.style,t)}_getExactOverlayY(e,n,t){let r={top:"",bottom:""},o=this._getOverlayPoint(n,this._overlayRect,e);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,t)),e.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;r.bottom=`${a-(o.y+this._overlayRect.height)}px`}else r.top=ki(o.y);return r}_getExactOverlayX(e,n,t){let r={left:"",right:""},o=this._getOverlayPoint(n,this._overlayRect,e);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,t));let a;if(this._isRtl()?a=e.overlayX==="end"?"left":"right":a=e.overlayX==="end"?"right":"left",a==="right"){let s=this._document.documentElement.clientWidth;r.right=`${s-(o.x+this._overlayRect.width)}px`}else r.left=ki(o.x);return r}_getScrollVisibility(){let e=this._getOriginRect(),n=this._pane.getBoundingClientRect(),t=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Mk(e,t),isOriginOutsideView:ex(e,t),isOverlayClipped:Mk(n,t),isOverlayOutsideView:ex(n,t)}}_subtractOverflows(e,...n){return n.reduce((t,r)=>t-Math.max(r,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,n=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+e-this._viewportMargin,bottom:t.top+n-this._viewportMargin,width:e-2*this._viewportMargin,height:n-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,n){return n==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&Rd(e).forEach(n=>{n!==""&&this._appliedPanelClasses.indexOf(n)===-1&&(this._appliedPanelClasses.push(n),this._pane.classList.add(n))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){let e=this._origin;if(e instanceof J)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let n=e.width||0,t=e.height||0;return{top:e.y,bottom:e.y+t,left:e.x,right:e.x+n,height:t,width:n}}};function hc(i,e){for(let n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);return i}function Rk(i){if(typeof i!="number"&&i!=null){let[e,n]=i.split(Uj);return!n||n==="px"?parseFloat(e):null}return i||null}function Nk(i){return{top:Math.floor(i.top),right:Math.floor(i.right),bottom:Math.floor(i.bottom),left:Math.floor(i.left),width:Math.floor(i.width),height:Math.floor(i.height)}}function $j(i,e){return i===e?!0:i.isOriginClipped===e.isOriginClipped&&i.isOriginOutsideView===e.isOriginOutsideView&&i.isOverlayClipped===e.isOverlayClipped&&i.isOverlayOutsideView===e.isOverlayOutsideView}var Fk="cdk-global-overlay-wrapper",nx=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(e){let n=e.getConfig();this._overlayRef=e,this._width&&!n.width&&e.updateSize({width:this._width}),this._height&&!n.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(Fk),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:a,maxHeight:s}=t,l=(r==="100%"||r==="100vw")&&(!a||a==="100%"||a==="100vw"),c=(o==="100%"||o==="100vh")&&(!s||s==="100%"||s==="100vh"),d=this._xPosition,p=this._xOffset,h=this._overlayRef.getConfig().direction==="rtl",g="",_="",S="";l?S="flex-start":d==="center"?(S="center",h?_=p:g=p):h?d==="left"||d==="end"?(S="flex-end",g=p):(d==="right"||d==="start")&&(S="flex-start",_=p):d==="left"||d==="start"?(S="flex-start",g=p):(d==="right"||d==="end")&&(S="flex-end",_=p),e.position=this._cssPosition,e.marginLeft=l?"0":g,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=l?"0":_,n.justifyContent=S,n.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement,t=n.style;n.classList.remove(Fk),t.justifyContent=t.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}},Gj=(()=>{let e=class e{constructor(t,r,o,a){this._viewportRuler=t,this._document=r,this._platform=o,this._overlayContainer=a}global(){return new nx}flexibleConnectedTo(t){return new Om(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}};e.\u0275fac=function(r){return new(r||e)(G(tr),G(pe),G(Le),G(qd))},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),qj=0,yt=(()=>{let e=class e{constructor(t,r,o,a,s,l,c,d,p,h,g,_){this.scrollStrategies=t,this._overlayContainer=r,this._componentFactoryResolver=o,this._positionBuilder=a,this._keyboardDispatcher=s,this._injector=l,this._ngZone=c,this._document=d,this._directionality=p,this._location=h,this._outsideClickDispatcher=g,this._animationsModuleType=_}create(t){let r=this._createHostElement(),o=this._createPaneElement(r),a=this._createPortalOutlet(o),s=new An(t);return s.direction=s.direction||this._directionality.value,new Ga(a,r,o,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(ra))}position(){return this._positionBuilder}_createPaneElement(t){let r=this._document.createElement("div");return r.id=`cdk-overlay-${qj++}`,r.classList.add("cdk-overlay-pane"),t.appendChild(r),r}_createHostElement(){let t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(ks)),new Gd(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}};e.\u0275fac=function(r){return new(r||e)(G(Bj),G(qd),G(Ts),G(Gj),G(zj),G(ze),G(de),G(pe),G(vt),G(Is),G(Hj),G(gt,8))},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),Wj=[{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"}],Lk=new H("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let i=x(yt);return()=>i.scrollStrategies.reposition()}}),Am=(()=>{let e=class e{constructor(t){this.elementRef=t}};e.\u0275fac=function(r){return new(r||e)(b(J))},e.\u0275dir=B({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0});let i=e;return i})(),rx=(()=>{let e=class e{get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(t){this._disposeOnNavigation=t}constructor(t,r,o,a,s){this._overlay=t,this._dir=s,this._backdropSubscription=et.EMPTY,this._attachSubscription=et.EMPTY,this._detachSubscription=et.EMPTY,this._positionSubscription=et.EMPTY,this._disposeOnNavigation=!1,this._ngZone=x(de),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 $,this.positionChange=new $,this.attach=new $,this.detach=new $,this.overlayKeydown=new $,this.overlayOutsideClick=new $,this._templatePortal=new Vi(r,o),this._scrollStrategyFactory=a,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(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Wj);let t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(r=>{this.overlayKeydown.next(r),r.keyCode===27&&!this.disableClose&&!Dt(r)&&(r.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(r=>{let o=this._getOriginElement(),a=Jn(r);(!o||o!==a&&!o.contains(a))&&this.overlayOutsideClick.next(r)})}_buildConfig(){let t=this._position=this.positionStrategy||this._createPositionStrategy(),r=new An({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(r.width=this.width),(this.height||this.height===0)&&(r.height=this.height),(this.minWidth||this.minWidth===0)&&(r.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(r.minHeight=this.minHeight),this.backdropClass&&(r.backdropClass=this.backdropClass),this.panelClass&&(r.panelClass=this.panelClass),r}_updatePositionStrategy(t){let r=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return t.setOrigin(this._getOrigin()).withPositions(r).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let t=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(t),t}_getOrigin(){return this.origin instanceof Am?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Am?this.origin.elementRef.nativeElement:this.origin instanceof J?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(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(ig(()=>this.positionChange.observers.length>0)).subscribe(t=>{this._ngZone.run(()=>this.positionChange.emit(t)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(b(yt),b(ft),b(Ft),b(Lk),b(vt,8))},e.\u0275dir=B({type:e,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",ee],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",ee],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",ee],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",ee],push:[2,"cdkConnectedOverlayPush","push",ee],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",ee]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[xe,Ne]});let i=e;return i})();function Qj(i){return()=>i.scrollStrategies.reposition()}var Kj={provide:Lk,deps:[yt],useFactory:Qj},Rn=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({providers:[yt,Kj],imports:[Ls,ir,Im,Im]});let i=e;return i})();var ox=class{constructor(e){this._box=e,this._destroyed=new q,this._resizeSubject=new q,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(n=>this._resizeSubject.next(n)))}observe(e){return this._elementObservables.has(e)||this._elementObservables.set(e,new Ct(n=>{let t=this._resizeSubject.subscribe(n);return this._resizeObserver?.observe(e,{box:this._box}),()=>{this._resizeObserver?.unobserve(e),t.unsubscribe(),this._elementObservables.delete(e)}}).pipe(Re(n=>n.some(t=>t.target===e)),nc({bufferSize:1,refCount:!0}),ye(this._destroyed))),this._elementObservables.get(e)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},Bg=(()=>{let e=class e{constructor(){this._observers=new Map,this._ngZone=x(de),typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,t]of this._observers)t.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(t,r){let o=r?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new ox(o)),this._observers.get(o).observe(t)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Yj=["notch"],Xj=["matFormFieldNotchedOutline",""],Jj=["*"],Zj=["textField"],eB=["iconPrefixContainer"],tB=["textPrefixContainer"],iB=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],nB=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function rB(i,e){i&1&&T(0,"span",19)}function oB(i,e){if(i&1&&(u(0,"label",18),ae(1,1),M(2,rB,1,0,"span",19),m()),i&2){let n=C(2);v("floating",n._shouldLabelFloat())("monitorResize",n._hasOutline())("id",n._labelId),ne("for",n._control.disableAutomaticLabeling?null:n._control.id),f(2),k(!n.hideRequiredMarker&&n._control.required?2:-1)}}function aB(i,e){if(i&1&&M(0,oB,3,5,"label",18),i&2){let n=C();k(n._hasFloatingLabel()?0:-1)}}function sB(i,e){i&1&&T(0,"div",5)}function lB(i,e){}function cB(i,e){if(i&1&&M(0,lB,0,0,"ng-template",11),i&2){C(2);let n=Je(1);v("ngTemplateOutlet",n)}}function dB(i,e){if(i&1&&(u(0,"div",7),M(1,cB,1,1,null,11),m()),i&2){let n=C();v("matFormFieldNotchedOutlineOpen",n._shouldLabelFloat()),f(),k(n._forceDisplayInfixLabel()?-1:1)}}function uB(i,e){i&1&&(u(0,"div",8,2),ae(2,2),m())}function pB(i,e){i&1&&(u(0,"div",9,3),ae(2,3),m())}function mB(i,e){}function hB(i,e){if(i&1&&M(0,mB,0,0,"ng-template",11),i&2){C();let n=Je(1);v("ngTemplateOutlet",n)}}function fB(i,e){i&1&&(u(0,"div",12),ae(1,4),m())}function gB(i,e){i&1&&(u(0,"div",13),ae(1,5),m())}function _B(i,e){i&1&&T(0,"div",14)}function bB(i,e){if(i&1&&(u(0,"div",16),ae(1,6),m()),i&2){let n=C();v("@transitionMessages",n._subscriptAnimationState)}}function vB(i,e){if(i&1&&(u(0,"mat-hint",20),y(1),m()),i&2){let n=C(2);v("id",n._hintLabelId),f(),ge(n.hintLabel)}}function yB(i,e){if(i&1&&(u(0,"div",17),M(1,vB,2,2,"mat-hint",20),ae(2,7),T(3,"div",21),ae(4,8),m()),i&2){let n=C();v("@transitionMessages",n._subscriptAnimationState),f(),k(n.hintLabel?1:-1)}}var _t=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=B({type:e,selectors:[["mat-label"]],standalone:!0});let i=e;return i})(),CB=0,Gk=new H("MatError"),di=(()=>{let e=class e{constructor(t,r){this.id=`mat-mdc-error-${CB++}`,t||r.nativeElement.setAttribute("aria-live","polite")}};e.\u0275fac=function(r){return new(r||e)(gi("aria-live"),b(J))},e.\u0275dir=B({type:e,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(r,o){r&2&&Ci("id",o.id)},inputs:{id:"id"},standalone:!0,features:[me([{provide:Gk,useExisting:e}])]});let i=e;return i})(),xB=0,ho=(()=>{let e=class e{constructor(){this.align="start",this.id=`mat-mdc-hint-${xB++}`}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=B({type:e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(r,o){r&2&&(Ci("id",o.id),ne("align",null),se("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"},standalone:!0});let i=e;return i})(),qk=new H("MatPrefix"),Bs=(()=>{let e=class e{constructor(){this._isText=!1}set _isTextSelector(t){this._isText=!0}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=B({type:e,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},standalone:!0,features:[me([{provide:qk,useExisting:e}])]});let i=e;return i})(),Wk=new H("MatSuffix"),xr=(()=>{let e=class e{constructor(){this._isText=!1}set _isTextSelector(t){this._isText=!0}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=B({type:e,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},standalone:!0,features:[me([{provide:Wk,useExisting:e}])]});let i=e;return i})(),Qk=new H("FloatingLabelParent"),Vk=(()=>{let e=class e{get floating(){return this._floating}set floating(t){this._floating=t,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(t){this._monitorResize=t,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(t){this._elementRef=t,this._floating=!1,this._monitorResize=!1,this._resizeObserver=x(Bg),this._ngZone=x(de),this._parent=x(Qk),this._resizeSubscription=new et}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return wB(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())})}};e.\u0275fac=function(r){return new(r||e)(b(J))},e.\u0275dir=B({type:e,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(r,o){r&2&&se("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0});let i=e;return i})();function wB(i){let e=i;if(e.offsetParent!==null)return e.scrollWidth;let n=e.cloneNode(!0);n.style.setProperty("position","absolute"),n.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(n);let t=n.scrollWidth;return n.remove(),t}var jk="mdc-line-ripple--active",zg="mdc-line-ripple--deactivating",Bk=(()=>{let e=class e{constructor(t,r){this._elementRef=t,this._handleTransitionEnd=o=>{let a=this._elementRef.nativeElement.classList,s=a.contains(zg);o.propertyName==="opacity"&&s&&a.remove(jk,zg)},r.runOutsideAngular(()=>{t.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){let t=this._elementRef.nativeElement.classList;t.remove(zg),t.add(jk)}deactivate(){this._elementRef.nativeElement.classList.add(zg)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}};e.\u0275fac=function(r){return new(r||e)(b(J),b(de))},e.\u0275dir=B({type:e,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0});let i=e;return i})(),zk=(()=>{let e=class e{constructor(t,r){this._elementRef=t,this._ngZone=r,this.open=!1}ngAfterViewInit(){let t=this._elementRef.nativeElement.querySelector(".mdc-floating-label");t?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(t.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>t.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(t){!this.open||!t?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${t}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}};e.\u0275fac=function(r){return new(r||e)(b(J),b(de))},e.\u0275cmp=F({type:e,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(r,o){if(r&1&&ve(Yj,5),r&2){let a;K(a=Y())&&(o._notch=a.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(r,o){r&2&&se("mdc-notched-outline--notched",o.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[P],attrs:Xj,ngContentSelectors:Jj,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(r,o){r&1&&(Me(),T(0,"div",1),u(1,"div",2,0),ae(3),m(),T(4,"div",3))},encapsulation:2,changeDetection:0});let i=e;return i})(),SB={transitionMessages:Vt("transitionMessages",[dt("enter",Ee({opacity:1,transform:"translateY(0%)"})),ot("void => enter",[Ee({opacity:0,transform:"translateY(-5px)"}),nt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Wd=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=B({type:e});let i=e;return i})();var qa=new H("MatFormField"),EB=new H("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Hk=0,Uk="fill",TB="auto",$k="fixed",DB="translateY(-50%)",mt=(()=>{let e=class e{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=jt(t)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||TB}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(t){let r=this._appearance,o=t||this._defaults?.appearance||Uk;this._appearance=o,this._appearance==="outline"&&this._appearance!==r&&(this._needsOutlineLabelOffsetUpdate=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||$k}set subscriptSizing(t){this._subscriptSizing=t||this._defaults?.subscriptSizing||$k}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(t){this._explicitFormFieldControl=t}constructor(t,r,o,a,s,l,c,d){this._elementRef=t,this._changeDetectorRef=r,this._dir=a,this._platform=s,this._defaults=l,this._animationMode=c,this._labelChild=uD(_t),this._hideRequiredMarker=!1,this.color="primary",this._appearance=Uk,this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId=`mat-mdc-form-field-label-${Hk++}`,this._hintLabelId=`mat-mdc-hint-${Hk++}`,this._subscriptAnimationState="",this._destroyed=new q,this._isFocused=null,this._needsOutlineLabelOffsetUpdate=!1,this._previousControl=null,this._injector=x(ze),this.getLabelId=sa(()=>this._hasFloatingLabel()?this._labelId:null),this._hasFloatingLabel=sa(()=>!!this._labelChild()),l&&(l.appearance&&(this.appearance=l.appearance),this._hideRequiredMarker=!!l?.hideRequiredMarker,l.color&&(this.color=l.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(t){let r=this._control,o="mat-mdc-form-field-type-";t&&this._elementRef.nativeElement.classList.remove(o+t.controlType),r.controlType&&this._elementRef.nativeElement.classList.add(o+r.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=r.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._valueChanges?.unsubscribe(),r.ngControl&&r.ngControl.valueChanges&&(this._valueChanges=r.ngControl.valueChanges.pipe(ye(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(t=>!t._isText),this._hasTextPrefix=!!this._prefixChildren.find(t=>t._isText),this._hasIconSuffix=!!this._suffixChildren.find(t=>!t._isText),this._hasTextSuffix=!!this._suffixChildren.find(t=>t._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),Ge(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),sg(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(ye(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(t){let r=this._control?this._control.ngControl:null;return r&&r[t]}_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 t=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&t.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let r=this._hintChildren?this._hintChildren.find(a=>a.align==="start"):null,o=this._hintChildren?this._hintChildren.find(a=>a.align==="end"):null;r?t.push(r.id):this._hintLabel&&t.push(this._hintLabelId),o&&t.push(o.id)}else this._errorChildren&&t.push(...this._errorChildren.map(r=>r.id));this._control.setDescribedByIds(t)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let t=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){t.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return}let r=this._iconPrefixContainer?.nativeElement,o=this._textPrefixContainer?.nativeElement,a=r?.getBoundingClientRect().width??0,s=o?.getBoundingClientRect().width??0,l=this._dir.value==="rtl"?"-1":"1",c=`${a+s}px`,p=`calc(${l} * (${c} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;t.style.transform=`var( + --mat-mdc-form-field-label-transform, + ${DB} translateX(${p}) + )`}_isAttachedToDom(){let t=this._elementRef.nativeElement;if(t.getRootNode){let r=t.getRootNode();return r&&r!==t}return document.documentElement.contains(t)}};e.\u0275fac=function(r){return new(r||e)(b(J),b(Se),b(de),b(vt),b(Le),b(EB,8),b(gt,8),b(pe))},e.\u0275cmp=F({type:e,selectors:[["mat-form-field"]],contentQueries:function(r,o,a){if(r&1&&(bD(a,o._labelChild,_t,5),Ie(a,Wd,5),Ie(a,qk,5),Ie(a,Wk,5),Ie(a,Gk,5),Ie(a,ho,5)),r&2){vD();let s;K(s=Y())&&(o._formFieldControl=s.first),K(s=Y())&&(o._prefixChildren=s),K(s=Y())&&(o._suffixChildren=s),K(s=Y())&&(o._errorChildren=s),K(s=Y())&&(o._hintChildren=s)}},viewQuery:function(r,o){if(r&1&&(ve(Zj,5),ve(eB,5),ve(tB,5),ve(Vk,5),ve(zk,5),ve(Bk,5)),r&2){let a;K(a=Y())&&(o._textField=a.first),K(a=Y())&&(o._iconPrefixContainer=a.first),K(a=Y())&&(o._textPrefixContainer=a.first),K(a=Y())&&(o._floatingLabel=a.first),K(a=Y())&&(o._notchedOutline=a.first),K(a=Y())&&(o._lineRipple=a.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(r,o){r&2&&se("mat-mdc-form-field-label-always-float",o._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",o._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",o._hasIconSuffix)("mat-form-field-invalid",o._control.errorState)("mat-form-field-disabled",o._control.disabled)("mat-form-field-autofilled",o._control.autofilled)("mat-form-field-no-animations",o._animationMode==="NoopAnimations")("mat-form-field-appearance-fill",o.appearance=="fill")("mat-form-field-appearance-outline",o.appearance=="outline")("mat-form-field-hide-placeholder",o._hasFloatingLabel()&&!o._shouldLabelFloat())("mat-focused",o._control.focused)("mat-primary",o.color!=="accent"&&o.color!=="warn")("mat-accent",o.color==="accent")("mat-warn",o.color==="warn")("ng-untouched",o._shouldForward("untouched"))("ng-touched",o._shouldForward("touched"))("ng-pristine",o._shouldForward("pristine"))("ng-dirty",o._shouldForward("dirty"))("ng-valid",o._shouldForward("valid"))("ng-invalid",o._shouldForward("invalid"))("ng-pending",o._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[me([{provide:qa,useExisting:e},{provide:Qk,useExisting:e}]),P],ngContentSelectors:nB,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[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(r,o){if(r&1){let a=z();Me(iB),M(0,aB,1,1,"ng-template",null,0,oo),u(2,"div",4,1),w("click",function(l){return A(a),R(o._control.onContainerClick(l))}),M(4,sB,1,0,"div",5),u(5,"div",6),M(6,dB,2,2,"div",7)(7,uB,3,0,"div",8)(8,pB,3,0,"div",9),u(9,"div",10),M(10,hB,1,1,null,11),ae(11),m(),M(12,fB,2,0,"div",12)(13,gB,2,0,"div",13),m(),M(14,_B,1,0,"div",14),m(),u(15,"div",15),M(16,bB,2,1,"div",16)(17,yB,5,2,"div",17),m()}if(r&2){let a;f(2),se("mdc-text-field--filled",!o._hasOutline())("mdc-text-field--outlined",o._hasOutline())("mdc-text-field--no-label",!o._hasFloatingLabel())("mdc-text-field--disabled",o._control.disabled)("mdc-text-field--invalid",o._control.errorState),f(2),k(!o._hasOutline()&&!o._control.disabled?4:-1),f(2),k(o._hasOutline()?6:-1),f(),k(o._hasIconPrefix?7:-1),f(),k(o._hasTextPrefix?8:-1),f(2),k(!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),f(2),k(o._hasTextSuffix?12:-1),f(),k(o._hasIconSuffix?13:-1),f(),k(o._hasOutline()?-1:14),f(),se("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic"),f(),k((a=o._getDisplayedMessages())==="error"?16:a==="hint"?17:-1)}},dependencies:[Vk,zk,la,Bk,ho],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-left:16px;padding-right:16px}@supports(top: max(0%)){.mdc-text-field--outlined{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;width:12px;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))}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape, 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;max-width:calc(100% - 24px)}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-outlined-text-field-container-shape, 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}[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 .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:[SB.transitionMessages]},changeDetection:0});let i=e;return i})(),at=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({imports:[De,Pe,Nd,De]});let i=e;return i})();var tI=(()=>{let e=class e{constructor(t,r){this._renderer=t,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}};e.\u0275fac=function(r){return new(r||e)(b(cm),b(J))},e.\u0275dir=B({type:e});let i=e;return i})(),iI=(()=>{let e=class e extends tI{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275dir=B({type:e,features:[X]});let i=e;return i})(),_n=new H("");var kB={provide:_n,useExisting:$t(()=>qt),multi:!0};function IB(){let i=oc()?oc().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var MB=new H(""),qt=(()=>{let e=class e extends tI{constructor(t,r,o){super(t,r),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!IB())}writeValue(t){let r=t??"";this.setProperty("value",r)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}};e.\u0275fac=function(r){return new(r||e)(b(cm),b(J),b(MB,8))},e.\u0275dir=B({type:e,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(r,o){r&1&&w("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},features:[me([kB]),X]});let i=e;return i})();function zs(i){return i==null||(typeof i=="string"||Array.isArray(i))&&i.length===0}function nI(i){return i!=null&&typeof i.length=="number"}var fo=new H(""),gc=new H(""),OB=/^(?=.{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])?)*$/,tt=class{static min(e){return AB(e)}static max(e){return RB(e)}static required(e){return rI(e)}static requiredTrue(e){return NB(e)}static email(e){return FB(e)}static minLength(e){return PB(e)}static maxLength(e){return LB(e)}static pattern(e){return VB(e)}static nullValidator(e){return Ug(e)}static compose(e){return dI(e)}static composeAsync(e){return uI(e)}};function AB(i){return e=>{if(zs(e.value)||zs(i))return null;let n=parseFloat(e.value);return!isNaN(n)&&n{if(zs(e.value)||zs(i))return null;let n=parseFloat(e.value);return!isNaN(n)&&n>i?{max:{max:i,actual:e.value}}:null}}function rI(i){return zs(i.value)?{required:!0}:null}function NB(i){return i.value===!0?null:{required:!0}}function FB(i){return zs(i.value)||OB.test(i.value)?null:{email:!0}}function PB(i){return e=>zs(e.value)||!nI(e.value)?null:e.value.lengthnI(e.value)&&e.value.length>i?{maxlength:{requiredLength:i,actualLength:e.value.length}}:null}function VB(i){if(!i)return Ug;let e,n;return typeof i=="string"?(n="",i.charAt(0)!=="^"&&(n+="^"),n+=i,i.charAt(i.length-1)!=="$"&&(n+="$"),e=new RegExp(n)):(n=i.toString(),e=i),t=>{if(zs(t.value))return null;let r=t.value;return e.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}function Ug(i){return null}function oI(i){return i!=null}function aI(i){return cg(i)?Di(i):i}function sI(i){let e={};return i.forEach(n=>{e=n!=null?N(N({},e),n):e}),Object.keys(e).length===0?null:e}function lI(i,e){return e.map(n=>n(i))}function jB(i){return!i.validate}function cI(i){return i.map(e=>jB(e)?e:n=>e.validate(n))}function dI(i){if(!i)return null;let e=i.filter(oI);return e.length==0?null:function(n){return sI(lI(n,e))}}function cx(i){return i!=null?dI(cI(i)):null}function uI(i){if(!i)return null;let e=i.filter(oI);return e.length==0?null:function(n){let t=lI(n,e).map(aI);return Yi(t).pipe(re(sI))}}function dx(i){return i!=null?uI(cI(i)):null}function Kk(i,e){return i===null?[e]:Array.isArray(i)?[...i,e]:[i,e]}function pI(i){return i._rawValidators}function mI(i){return i._rawAsyncValidators}function ax(i){return i?Array.isArray(i)?i:[i]:[]}function $g(i,e){return Array.isArray(i)?i.includes(e):i===e}function Yk(i,e){let n=ax(e);return ax(i).forEach(r=>{$g(n,r)||n.push(r)}),n}function Xk(i,e){return ax(e).filter(n=>!$g(i,n))}var Gg=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(e){this._rawValidators=e||[],this._composedValidatorFn=cx(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=dx(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,n){return this.control?this.control.hasError(e,n):!1}getError(e,n){return this.control?this.control.getError(e,n):null}},nr=class extends Gg{get formDirective(){return null}get path(){return null}},an=class extends Gg{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},qg=class{constructor(e){this._cd=e}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}},BB={"[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"},The=ce(N({},BB),{"[class.ng-submitted]":"isSubmitted"}),We=(()=>{let e=class e extends qg{constructor(t){super(t)}};e.\u0275fac=function(r){return new(r||e)(b(an,2))},e.\u0275dir=B({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&se("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[X]});let i=e;return i})(),Rt=(()=>{let e=class e extends qg{constructor(t){super(t)}};e.\u0275fac=function(r){return new(r||e)(b(nr,10))},e.\u0275dir=B({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){r&2&&se("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[X]});let i=e;return i})();var Rm="VALID",Hg="INVALID",Qd="PENDING",Nm="DISABLED",Hs=class{},Wg=class extends Hs{constructor(e,n){super(),this.value=e,this.source=n}},Pm=class extends Hs{constructor(e,n){super(),this.pristine=e,this.source=n}},Lm=class extends Hs{constructor(e,n){super(),this.touched=e,this.source=n}},Kd=class extends Hs{constructor(e,n){super(),this.status=e,this.source=n}},sx=class extends Hs{constructor(e){super(),this.source=e}},lx=class extends Hs{constructor(e){super(),this.source=e}};function ux(i){return(Xg(i)?i.validators:i)||null}function zB(i){return Array.isArray(i)?cx(i):i||null}function px(i,e){return(Xg(e)?e.asyncValidators:i)||null}function HB(i){return Array.isArray(i)?dx(i):i||null}function Xg(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function hI(i,e,n){let t=i.controls;if(!(e?Object.keys(t):t).length)throw new Ut(1e3,"");if(!t[n])throw new Ut(1001,"")}function fI(i,e,n){i._forEachChild((t,r)=>{if(n[r]===void 0)throw new Ut(1002,"")})}var Vm=class{constructor(e,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=sa(()=>this.statusReactive()),this.statusReactive=Ba(void 0),this._pristine=sa(()=>this.pristineReactive()),this.pristineReactive=Ba(!0),this._touched=sa(()=>this.touchedReactive()),this.touchedReactive=Ba(!1),this._events=new q,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return ao(this.statusReactive)}set status(e){ao(()=>this.statusReactive.set(e))}get valid(){return this.status===Rm}get invalid(){return this.status===Hg}get pending(){return this.status==Qd}get disabled(){return this.status===Nm}get enabled(){return this.status!==Nm}get pristine(){return ao(this.pristineReactive)}set pristine(e){ao(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return ao(this.touchedReactive)}set touched(e){ao(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(Yk(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Yk(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Xk(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Xk(e,this._rawAsyncValidators))}hasValidator(e){return $g(this._rawValidators,e)}hasAsyncValidator(e){return $g(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let n=this.touched===!1;this.touched=!0;let t=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(ce(N({},e),{sourceControl:t})),n&&e.emitEvent!==!1&&this._events.next(new Lm(!0,t))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(e))}markAsUntouched(e={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let t=e.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:t})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,t),n&&e.emitEvent!==!1&&this._events.next(new Lm(!1,t))}markAsDirty(e={}){let n=this.pristine===!0;this.pristine=!1;let t=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(ce(N({},e),{sourceControl:t})),n&&e.emitEvent!==!1&&this._events.next(new Pm(!1,t))}markAsPristine(e={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let t=e.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,t),n&&e.emitEvent!==!1&&this._events.next(new Pm(!0,t))}markAsPending(e={}){this.status=Qd;let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Kd(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(ce(N({},e),{sourceControl:n}))}disable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=Nm,this.errors=null,this._forEachChild(r=>{r.disable(ce(N({},e),{onlySelf:!0}))}),this._updateValue();let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Wg(this.value,t)),this._events.next(new Kd(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(ce(N({},e),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=Rm,this._forEachChild(t=>{t.enable(ce(N({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(ce(N({},e),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(e,n){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let t=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Rm||this.status===Qd)&&this._runAsyncValidator(t,e.emitEvent)}let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Wg(this.value,n)),this._events.next(new Kd(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(ce(N({},e),{sourceControl:n}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Nm:Rm}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,n){if(this.asyncValidator){this.status=Qd,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let t=aI(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:n,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,n={}){this.errors=e,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(e){let n=e;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((t,r)=>t&&t._find(r),this)}getError(e,n){let t=n?this.get(n):this;return t&&t.errors?t.errors[e]:null}hasError(e,n){return!!this.getError(e,n)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,n,t){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||t)&&this._events.next(new Kd(this.status,n)),this._parent&&this._parent._updateControlsErrors(e,n,t)}_initObservables(){this.valueChanges=new $,this.statusChanges=new $}_calculateStatus(){return this._allControlsDisabled()?Nm:this.errors?Hg:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Qd)?Qd:this._anyControlsHaveStatus(Hg)?Hg:Rm}_anyControlsHaveStatus(e){return this._anyControls(n=>n.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,n){let t=!this._anyControlsDirty(),r=this.pristine!==t;this.pristine=t,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),r&&this._events.next(new Pm(this.pristine,n))}_updateTouched(e={},n){this.touched=this._anyControlsTouched(),this._events.next(new Lm(this.touched,n)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Xg(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let n=this._parent&&this._parent.dirty;return!e&&!!n&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=zB(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=HB(this._rawAsyncValidators)}},Pt=class extends Vm{constructor(e,n,t){super(ux(n),px(t,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,n){return this.controls[e]?this.controls[e]:(this.controls[e]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(e,n,t={}){this.registerControl(e,n),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(e,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(e,n,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],n&&this.registerControl(e,n),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,n={}){fI(this,!0,e),Object.keys(e).forEach(t=>{hI(this,!0,t),this.controls[t].setValue(e[t],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){e!=null&&(Object.keys(e).forEach(t=>{let r=this.controls[t];r&&r.patchValue(e[t],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e={},n={}){this._forEachChild((t,r)=>{t.reset(e?e[r]:null,{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(e,n,t)=>(e[t]=n.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(n,t)=>t._syncPendingControls()?!0:n);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(n=>{let t=this.controls[n];t&&e(t,n)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[n,t]of Object.entries(this.controls))if(this.contains(n)&&e(t))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(n,t,r)=>((t.enabled||this.disabled)&&(n[r]=t.value),n))}_reduceChildren(e,n){let t=e;return this._forEachChild((r,o)=>{t=n(t,r,o)}),t}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var Xd=Pt;var Jd=new H("CallSetDisabledState",{providedIn:"root",factory:()=>Jg}),Jg="always";function Zg(i,e){return[...e.path,i]}function jm(i,e,n=Jg){mx(i,e),e.valueAccessor.writeValue(i.value),(i.disabled||n==="always")&&e.valueAccessor.setDisabledState?.(i.disabled),$B(i,e),qB(i,e),GB(i,e),UB(i,e)}function Qg(i,e,n=!0){let t=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(t),e.valueAccessor.registerOnTouched(t)),Yg(i,e),i&&(e._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function Kg(i,e){i.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(e)})}function UB(i,e){if(e.valueAccessor.setDisabledState){let n=t=>{e.valueAccessor.setDisabledState(t)};i.registerOnDisabledChange(n),e._registerOnDestroy(()=>{i._unregisterOnDisabledChange(n)})}}function mx(i,e){let n=pI(i);e.validator!==null?i.setValidators(Kk(n,e.validator)):typeof n=="function"&&i.setValidators([n]);let t=mI(i);e.asyncValidator!==null?i.setAsyncValidators(Kk(t,e.asyncValidator)):typeof t=="function"&&i.setAsyncValidators([t]);let r=()=>i.updateValueAndValidity();Kg(e._rawValidators,r),Kg(e._rawAsyncValidators,r)}function Yg(i,e){let n=!1;if(i!==null){if(e.validator!==null){let r=pI(i);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==e.validator);o.length!==r.length&&(n=!0,i.setValidators(o))}}if(e.asyncValidator!==null){let r=mI(i);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==e.asyncValidator);o.length!==r.length&&(n=!0,i.setAsyncValidators(o))}}}let t=()=>{};return Kg(e._rawValidators,t),Kg(e._rawAsyncValidators,t),n}function $B(i,e){e.valueAccessor.registerOnChange(n=>{i._pendingValue=n,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&gI(i,e)})}function GB(i,e){e.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&gI(i,e),i.updateOn!=="submit"&&i.markAsTouched()})}function gI(i,e){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function qB(i,e){let n=(t,r)=>{e.valueAccessor.writeValue(t),r&&e.viewToModelUpdate(t)};i.registerOnChange(n),e._registerOnDestroy(()=>{i._unregisterOnChange(n)})}function _I(i,e){i==null,mx(i,e)}function WB(i,e){return Yg(i,e)}function hx(i,e){if(!i.hasOwnProperty("model"))return!1;let n=i.model;return n.isFirstChange()?!0:!Object.is(e,n.currentValue)}function QB(i){return Object.getPrototypeOf(i.constructor)===iI}function bI(i,e){i._syncPendingControls(),e.forEach(n=>{let t=n.control;t.updateOn==="submit"&&t._pendingChange&&(n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function fx(i,e){if(!e)return null;Array.isArray(e);let n,t,r;return e.forEach(o=>{o.constructor===qt?n=o:QB(o)?t=o:r=o}),r||t||n||null}function KB(i,e){let n=i.indexOf(e);n>-1&&i.splice(n,1)}var YB={provide:nr,useExisting:$t(()=>Bm)},Fm=Promise.resolve(),Bm=(()=>{let e=class e extends nr{get submitted(){return ao(this.submittedReactive)}constructor(t,r,o){super(),this.callSetDisabledState=o,this._submitted=sa(()=>this.submittedReactive()),this.submittedReactive=Ba(!1),this._directives=new Set,this.ngSubmit=new $,this.form=new Pt({},cx(t),dx(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Fm.then(()=>{let r=this._findContainer(t.path);t.control=r.registerControl(t.name,t.control),jm(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Fm.then(()=>{let r=this._findContainer(t.path);r&&r.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){Fm.then(()=>{let r=this._findContainer(t.path),o=new Pt({});_I(o,t),r.registerControl(t.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Fm.then(()=>{let r=this._findContainer(t.path);r&&r.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,r){Fm.then(()=>{this.form.get(t.path).setValue(r)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submittedReactive.set(!0),bI(this.form,this._directives),this.ngSubmit.emit(t),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}};e.\u0275fac=function(r){return new(r||e)(b(fo,10),b(gc,10),b(Jd,8))},e.\u0275dir=B({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,o){r&1&&w("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[me([YB]),X]});let i=e;return i})();function Jk(i,e){let n=i.indexOf(e);n>-1&&i.splice(n,1)}function Zk(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var Xe=class extends Vm{constructor(e=null,n,t){super(ux(n),px(t,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Xg(n)&&(n.nonNullable||n.initialValueIsDefault)&&(Zk(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,n={}){this.value=this._pendingValue=e,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(t=>t(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(e,n={}){this.setValue(e,n)}reset(e=this.defaultValue,n={}){this._applyFormState(e),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Jk(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Jk(this._onDisabledChange,e)}_forEachChild(e){}_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(e){Zk(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}},zm=Xe,XB=i=>i instanceof Xe,JB=(()=>{let e=class e extends nr{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Zg(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275dir=B({type:e,features:[X]});let i=e;return i})();var ZB={provide:an,useExisting:$t(()=>qr)},eI=Promise.resolve(),qr=(()=>{let e=class e extends an{constructor(t,r,o,a,s,l){super(),this._changeDetectorRef=s,this.callSetDisabledState=l,this.control=new Xe,this._registered=!1,this.name="",this.update=new $,this._parent=t,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=fx(this,a)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){let r=t.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),hx(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){jm(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(t){eI.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){let r=t.isDisabled.currentValue,o=r!==0&&ee(r);eI.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?Zg(t,this._parent):[t]}};e.\u0275fac=function(r){return new(r||e)(b(nr,9),b(fo,10),b(gc,10),b(_n,10),b(Se,8),b(Jd,8))},e.\u0275dir=B({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[me([ZB]),X,Ne]});let i=e;return i})(),go=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=B({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let i=e;return i})(),e5={provide:_n,useExisting:$t(()=>gx),multi:!0},gx=(()=>{let e=class e extends iI{writeValue(t){let r=t??"";this.setProperty("value",r)}registerOnChange(t){this.onChange=r=>{t(r==""?null:parseFloat(r))}}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275dir=B({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(r,o){r&1&&w("input",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},features:[me([e5]),X]});let i=e;return i})();var _x=new H(""),t5={provide:an,useExisting:$t(()=>st)},st=(()=>{let e=class e extends an{set isDisabled(t){}constructor(t,r,o,a,s){super(),this._ngModelWarningConfig=a,this.callSetDisabledState=s,this.update=new $,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=fx(this,o)}ngOnChanges(t){if(this._isControlChanged(t)){let r=t.form.previousValue;r&&Qg(r,this,!1),jm(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}hx(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Qg(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(r){return new(r||e)(b(fo,10),b(gc,10),b(_n,10),b(_x,8),b(Jd,8))},e.\u0275dir=B({type:e,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[me([t5]),X,Ne]});let i=e;return i})(),i5={provide:nr,useExisting:$t(()=>bt)},bt=(()=>{let e=class e extends nr{get submitted(){return ao(this._submittedReactive)}set submitted(t){this._submittedReactive.set(t)}constructor(t,r,o){super(),this.callSetDisabledState=o,this._submitted=sa(()=>this._submittedReactive()),this._submittedReactive=Ba(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new $,this._setValidators(t),this._setAsyncValidators(r)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Yg(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){let r=this.form.get(t.path);return jm(r,t,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),r}getControl(t){return this.form.get(t.path)}removeControl(t){Qg(t.control||null,t,!1),KB(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,r){this.form.get(t.path).setValue(r)}onSubmit(t){return this._submittedReactive.set(!0),bI(this.form,this.directives),this.ngSubmit.emit(t),this.form._events.next(new sx(this.control)),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this._submittedReactive.set(!1),this.form._events.next(new lx(this.form))}_updateDomValue(){this.directives.forEach(t=>{let r=t.control,o=this.form.get(t.path);r!==o&&(Qg(r||null,t),XB(o)&&(jm(o,t,this.callSetDisabledState),t.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){let r=this.form.get(t.path);_I(r,t),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){let r=this.form.get(t.path);r&&WB(r,t)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){mx(this.form,this),this._oldForm&&Yg(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(r){return new(r||e)(b(fo,10),b(gc,10),b(Jd,8))},e.\u0275dir=B({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){r&1&&w("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[me([i5]),X,Ne]});let i=e;return i})(),n5={provide:nr,useExisting:$t(()=>e_)},e_=(()=>{let e=class e extends JB{constructor(t,r,o){super(),this.name=null,this._parent=t,this._setValidators(r),this._setAsyncValidators(o)}_checkParentType(){vI(this._parent)}};e.\u0275fac=function(r){return new(r||e)(b(nr,13),b(fo,10),b(gc,10))},e.\u0275dir=B({type:e,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},features:[me([n5]),X]});let i=e;return i})(),r5={provide:nr,useExisting:$t(()=>t_)},t_=(()=>{let e=class e extends nr{constructor(t,r,o){super(),this.name=null,this._parent=t,this._setValidators(r),this._setAsyncValidators(o)}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 Zg(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){vI(this._parent)}};e.\u0275fac=function(r){return new(r||e)(b(nr,13),b(fo,10),b(gc,10))},e.\u0275dir=B({type:e,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},features:[me([r5]),X]});let i=e;return i})();function vI(i){return!(i instanceof e_)&&!(i instanceof bt)&&!(i instanceof t_)}var o5={provide:an,useExisting:$t(()=>rr)},rr=(()=>{let e=class e extends an{set isDisabled(t){}constructor(t,r,o,a,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.name=null,this.update=new $,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=fx(this,a)}ngOnChanges(t){this._added||this._setUpControl(),hx(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return Zg(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}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(r){return new(r||e)(b(nr,13),b(fo,10),b(gc,10),b(_n,10),b(_x,8))},e.\u0275dir=B({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[me([o5]),X,Ne]});let i=e;return i})();var a5=(()=>{let e=class e{constructor(){this._validator=Ug}ngOnChanges(t){if(this.inputName in t){let r=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):Ug,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return t!=null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=B({type:e,features:[Ne]});let i=e;return i})();var s5={provide:fo,useExisting:$t(()=>Zi),multi:!0};var Zi=(()=>{let e=class e extends a5{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=ee,this.createValidator=t=>rI}enabled(t){return t}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275dir=B({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(r,o){r&2&&ne("required",o._enabled?"":null)},inputs:{required:"required"},features:[me([s5]),X]});let i=e;return i})();var yI=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({});let i=e;return i})(),Yd=class extends Vm{constructor(e,n,t){super(ux(n),px(t,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,n={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}insert(e,n,t={}){this.controls.splice(e,0,n),this._registerControl(n),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(e,n={}){let t=this._adjustIndex(e);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:n.emitEvent})}setControl(e,n,t={}){let r=this._adjustIndex(e);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),n&&(this.controls.splice(r,0,n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,n={}){fI(this,!1,e),e.forEach((t,r)=>{hI(this,!1,r),this.at(r).setValue(t,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){e!=null&&(e.forEach((t,r)=>{this.at(r)&&this.at(r).patchValue(t,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e=[],n={}){this._forEachChild((t,r)=>{t.reset(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(n=>n._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((n,t)=>t._syncPendingControls()?!0:n,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((n,t)=>{e(n,t)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(n=>n.enabled&&e(n))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}},CI=Yd;var $e=(()=>{let e=class e{static withConfig(t){return{ngModule:e,providers:[{provide:Jd,useValue:t.callSetDisabledState??Jg}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({imports:[yI]});let i=e;return i})(),it=(()=>{let e=class e{static withConfig(t){return{ngModule:e,providers:[{provide:_x,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Jd,useValue:t.callSetDisabledState??Jg}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({imports:[yI]});let i=e;return i})();var l5=["trigger"],c5=["panel"],d5=[[["mat-select-trigger"]],"*"],u5=["mat-select-trigger","*"];function p5(i,e){if(i&1&&(u(0,"span",4),y(1),m()),i&2){let n=C();f(),ge(n.placeholder)}}function m5(i,e){i&1&&ae(0)}function h5(i,e){if(i&1&&(u(0,"span",11),y(1),m()),i&2){let n=C(2);f(),ge(n.triggerValue)}}function f5(i,e){if(i&1&&(u(0,"span",5),M(1,m5,1,0)(2,h5,2,1,"span",11),m()),i&2){let n=C();f(),k(n.customTrigger?1:2)}}function g5(i,e){if(i&1){let n=z();u(0,"div",12,1),w("@transformPanel.done",function(r){A(n);let o=C();return R(o._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){A(n);let o=C();return R(o._handleKeydown(r))}),ae(2,1),m()}if(i&2){let n=C();fD("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",n._getPanelTheme(),""),v("ngClass",n.panelClass)("@transformPanel","showing"),ne("id",n.id+"-panel")("aria-multiselectable",n.multiple)("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby())}}var _5={transformPanelWrap:Vt("transformPanelWrap",[ot("* => void",ac("@transformPanel",[fg()],{optional:!0}))]),transformPanel:Vt("transformPanel",[dt("void",Ee({opacity:0,transform:"scale(1, 0.8)"})),ot("void => showing",nt("120ms cubic-bezier(0, 0, 0.2, 1)",Ee({opacity:1,transform:"scale(1, 1)"}))),ot("* => void",nt("100ms linear",Ee({opacity:0})))])};var xI=0,wI=new H("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let i=x(yt);return()=>i.scrollStrategies.reposition()}});function b5(i){return()=>i.scrollStrategies.reposition()}var v5=new H("MAT_SELECT_CONFIG"),y5={provide:wI,deps:[yt],useFactory:b5},C5=new H("MatSelectTrigger"),bx=class{constructor(e,n){this.source=e,this.value=n}},wr=(()=>{let e=class e{_scrollOptionIntoView(t){let r=this.options.toArray()[t];if(r){let o=this.panel.nativeElement,a=Ng(t,this.options,this.optionGroups),s=r._getHostElement();t===0&&a===1?o.scrollTop=0:o.scrollTop=Fg(s.offsetTop,s.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(t){return new bx(this,t)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(t){this._hideSingleSelectionIndicator=t,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(tt.required)??!1}set required(t){this._required=t,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._selectionModel,this._multiple=t}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){this._assignValue(t)&&this._onChange(t)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(t){this._errorStateTracker.matcher=t}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(t){this._errorStateTracker.errorState=t}constructor(t,r,o,a,s,l,c,d,p,h,g,_,S,E){this._viewportRuler=t,this._changeDetectorRef=r,this._elementRef=s,this._dir=l,this._parentFormField=p,this.ngControl=h,this._liveAnnouncer=S,this._defaultOptions=E,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=(D,O)=>D===O,this._uid=`mat-select-${xI++}`,this._triggerAriaLabelledBy=null,this._destroy=new q,this.stateChanges=new q,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mat-select-value-${xI++}`,this._panelDoneAnimatingStream=new q,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 q,this.optionSelectionChanges=Ao(()=>{let D=this.options;return D?D.changes.pipe(Ye(D),qe(()=>Ge(...D.map(O=>O.onSelectionChange)))):this._initialized.pipe(qe(()=>this.optionSelectionChanges))}),this.openedChange=new $,this._openedStream=this.openedChange.pipe(Re(D=>D),re(()=>{})),this._closedStream=this.openedChange.pipe(Re(D=>!D),re(()=>{})),this.selectionChange=new $,this.valueChange=new $,this._trackedModal=null,this._skipPredicate=D=>this.panelOpen?!1:D.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),E?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=E.typeaheadDebounceInterval),this._errorStateTracker=new Vs(a,h,d,c,this.stateChanges),this._scrollStrategyFactory=_,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(g)||0,this.id=this.id}ngOnInit(){this._selectionModel=new On(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(jr(),ye(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(ye(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(ye(this._destroy)).subscribe(t=>{t.added.forEach(r=>r.select()),t.removed.forEach(r=>r.deselect())}),this.options.changes.pipe(Ye(null),ye(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let t=this._getTriggerAriaLabelledby(),r=this.ngControl;if(t!==this._triggerAriaLabelledBy){let o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?o.setAttribute("aria-labelledby",t):o.removeAttribute("aria-labelledby")}r&&(this._previousControl!==r.control&&(this._previousControl!==void 0&&r.disabled!==null&&r.disabled!==this.disabled&&(this.disabled=r.disabled),this._previousControl=r.control),this.updateErrorState())}ngOnChanges(t){(t.disabled||t.userAriaDescribedBy)&&this.stateChanges.next(),t.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 t=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!t)return;let r=`${this.id}-panel`;this._trackedModal&&Fs(this._trackedModal,"aria-owns",r),jd(t,"aria-owns",r),this._trackedModal=t}_clearFromModal(){if(!this._trackedModal)return;let t=`${this.id}-panel`;Fs(this._trackedModal,"aria-owns",t),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(t){this._assignValue(t)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,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 t=this._selectionModel.selected.map(r=>r.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){let r=t.keyCode,o=r===40||r===38||r===37||r===39,a=r===13||r===32,s=this._keyManager;if(!s.isTyping()&&a&&!Dt(t)||(this.multiple||t.altKey)&&o)t.preventDefault(),this.open();else if(!this.multiple){let l=this.selected;s.onKeydown(t);let c=this.selected;c&&l!==c&&this._liveAnnouncer.announce(c.viewValue,1e4)}}_handleOpenKeydown(t){let r=this._keyManager,o=t.keyCode,a=o===40||o===38,s=r.isTyping();if(a&&t.altKey)t.preventDefault(),this.close();else if(!s&&(o===13||o===32)&&r.activeItem&&!Dt(t))t.preventDefault(),r.activeItem._selectViaInteraction();else if(!s&&this._multiple&&o===65&&t.ctrlKey){t.preventDefault();let l=this.options.some(c=>!c.disabled&&!c.selected);this.options.forEach(c=>{c.disabled||(l?c.select():c.deselect())})}else{let l=r.activeItemIndex;r.onKeydown(t),this._multiple&&a&&t.shiftKey&&r.activeItem&&r.activeItemIndex!==l&&r.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(t){if(this.options.forEach(r=>r.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(r=>this._selectOptionByValue(r)),this._sortValues();else{let r=this._selectOptionByValue(t);r?this._keyManager.updateActiveItem(r):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(t){let r=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return o.value!=null&&this._compareWith(o.value,t)}catch{return!1}});return r&&this._selectionModel.select(r),r}_assignValue(t){return t!==this._value||this._multiple&&Array.isArray(t)?(this.options&&this._setSelectionByValue(t),this._value=t,!0):!1}_getOverlayWidth(t){return this.panelWidth==="auto"?(t instanceof Am?t.elementRef:t||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let t of this.options)t._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new Pd(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 t=Ge(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(ye(t)).subscribe(r=>{this._onSelect(r.source,r.isUserInput),r.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Ge(...this.options.map(r=>r._stateChanges)).pipe(ye(t)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(t,r){let o=this._selectionModel.isSelected(t);t.value==null&&!this._multiple?(t.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(t.value)):(o!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),r&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),r&&this.focus())),o!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let t=this.options.toArray();this._selectionModel.sort((r,o)=>this.sortComparator?this.sortComparator(r,o,t):t.indexOf(r)-t.indexOf(o)),this.stateChanges.next()}}_propagateChanges(t){let r;this.multiple?r=this.selected.map(o=>o.value):r=this.selected?this.selected.value:t,this._value=r,this.valueChange.emit(r),this._onChange(r),this.selectionChange.emit(this._getChangeEvent(r)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let t=-1;for(let r=0;r0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let t=this._parentFormField?.getLabelId(),r=t?t+" ":"";return this.ariaLabelledby?r+this.ariaLabelledby:t}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let t=this._parentFormField?.getLabelId(),r=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}};e.\u0275fac=function(r){return new(r||e)(b(tr),b(Se),b(de),b(Ha),b(J),b(vt,8),b(Bm,8),b(bt,8),b(qa,8),b(an,10),gi("tabindex"),b(wI),b(Og),b(v5,8))},e.\u0275cmp=F({type:e,selectors:[["mat-select"]],contentQueries:function(r,o,a){if(r&1&&(Ie(a,C5,5),Ie(a,Pi,5),Ie(a,Dm,5)),r&2){let s;K(s=Y())&&(o.customTrigger=s.first),K(s=Y())&&(o.options=s),K(s=Y())&&(o.optionGroups=s)}},viewQuery:function(r,o){if(r&1&&(ve(l5,5),ve(c5,5),ve(rx,5)),r&2){let a;K(a=Y())&&(o.trigger=a.first),K(a=Y())&&(o.panel=a.first),K(a=Y())&&(o._overlayDir=a.first)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(r,o){r&1&&w("keydown",function(s){return o._handleKeydown(s)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),r&2&&(ne("id",o.id)("tabindex",o.disabled?-1:o.tabIndex)("aria-controls",o.panelOpen?o.id+"-panel":null)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState)("aria-activedescendant",o._getAriaActiveDescendant()),se("mat-mdc-select-disabled",o.disabled)("mat-mdc-select-invalid",o.errorState)("mat-mdc-select-required",o.required)("mat-mdc-select-empty",o.empty)("mat-mdc-select-multiple",o.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",ee],disableRipple:[2,"disableRipple","disableRipple",ee],tabIndex:[2,"tabIndex","tabIndex",t=>t==null?0:Lt(t)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",ee],placeholder:"placeholder",required:[2,"required","required",ee],multiple:[2,"multiple","multiple",ee],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",ee],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",Lt],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[me([{provide:Wd,useExisting:e},{provide:Tm,useExisting:e}]),xe,Ne,P],ngContentSelectors:u5,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(r,o){if(r&1){let a=z();Me(d5),u(0,"div",2,0),w("click",function(){return A(a),R(o.open())}),u(3,"div",3),M(4,p5,2,1,"span",4)(5,f5,3,1,"span",5),m(),u(6,"div",6)(7,"div",7),pi(),u(8,"svg",8),T(9,"path",9),m()()()(),M(10,g5,3,9,"ng-template",10),w("backdropClick",function(){return A(a),R(o.close())})("attach",function(){return A(a),R(o._onAttached())})("detach",function(){return A(a),R(o.close())})}if(r&2){let a=Je(1);f(3),ne("id",o._valueId),f(),k(o.empty?4:5),f(6),v("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||a)("cdkConnectedOverlayOpen",o.panelOpen)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)}},dependencies:[Am,rx,_r],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:[_5.transformPanel]},changeDetection:0});let i=e;return i})();var Sr=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({providers:[y5],imports:[Pe,Rn,Li,De,er,at,Li,De]});let i=e;return i})();var x5=["tooltip"],TI=20;var DI=new H("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let i=x(yt);return()=>i.scrollStrategies.reposition({scrollThrottle:TI})}});function w5(i){return()=>i.scrollStrategies.reposition({scrollThrottle:TI})}var S5={provide:DI,deps:[yt],useFactory:w5};function E5(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var T5=new H("mat-tooltip-default-options",{providedIn:"root",factory:E5});var SI="tooltip-panel",EI=rn({passive:!0}),D5=8,k5=8,I5=24,M5=200,sn=(()=>{let e=class e{get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(t){this._positionAtOrigin=jt(t),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(t){let r=jt(t);this._disabled!==r&&(this._disabled=r,r?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=In(t)}get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=In(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(t){let r=this._message;this._message=t!=null?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(r)}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(t,r,o,a,s,l,c,d,p,h,g,_){this._overlay=t,this._elementRef=r,this._scrollDispatcher=o,this._viewContainerRef=a,this._ngZone=s,this._platform=l,this._ariaDescriber=c,this._focusMonitor=d,this._dir=h,this._defaultOptions=g,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=O5,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._touchstartTimeout=null,this._destroyed=new q,this._injector=x(ze),this._scrollStrategy=p,this._document=_,g&&(this._showDelay=g.showDelay,this._hideDelay=g.hideDelay,g.position&&(this.position=g.position),g.positionAtOrigin&&(this.positionAtOrigin=g.positionAtOrigin),g.touchGestures&&(this.touchGestures=g.touchGestures),g.tooltipClass&&(this.tooltipClass=g.tooltipClass)),h.change.pipe(ye(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=D5}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(ye(this._destroyed)).subscribe(t=>{t?t==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let t=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([r,o])=>{t.removeEventListener(r,o,EI)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay,r){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let o=this._createOverlay(r);this._detach(),this._portal=this._portal||new on(this._tooltipComponent,this._viewContainerRef);let a=this._tooltipInstance=o.attach(this._portal).instance;a._triggerElement=this._elementRef.nativeElement,a._mouseLeaveHideDelay=this._hideDelay,a.afterHidden().pipe(ye(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),a.show(t)}hide(t=this.hideDelay){let r=this._tooltipInstance;r&&(r.isVisible()?r.hide(t):(r._cancelPendingAnimations(),this._detach()))}toggle(t){this._isTooltipVisible()?this.hide():this.show(void 0,t)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(t){if(this._overlayRef){let a=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!t)&&a._origin instanceof J)return this._overlayRef;this._detach()}let r=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),o=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin?t||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(r);return o.positionChanges.pipe(ye(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:o,panelClass:`${this._cssClassPrefix}-${SI}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(ye(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(ye(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(ye(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&a.keyCode===27&&!Dt(a)&&(a.preventDefault(),a.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(t){let r=t.getConfig().positionStrategy,o=this._getOrigin(),a=this._getOverlayPosition();r.withPositions([this._addOffset(N(N({},o.main),a.main)),this._addOffset(N(N({},o.fallback),a.fallback))])}_addOffset(t){let r=k5,o=!this._dir||this._dir.value=="ltr";return t.originY==="top"?t.offsetY=-r:t.originY==="bottom"?t.offsetY=r:t.originX==="start"?t.offsetX=o?-r:r:t.originX==="end"&&(t.offsetX=o?r:-r),t}_getOrigin(){let t=!this._dir||this._dir.value=="ltr",r=this.position,o;r=="above"||r=="below"?o={originX:"center",originY:r=="above"?"top":"bottom"}:r=="before"||r=="left"&&t||r=="right"&&!t?o={originX:"start",originY:"center"}:(r=="after"||r=="right"&&t||r=="left"&&!t)&&(o={originX:"end",originY:"center"});let{x:a,y:s}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:a,originY:s}}}_getOverlayPosition(){let t=!this._dir||this._dir.value=="ltr",r=this.position,o;r=="above"?o={overlayX:"center",overlayY:"bottom"}:r=="below"?o={overlayX:"center",overlayY:"top"}:r=="before"||r=="left"&&t||r=="right"&&!t?o={overlayX:"end",overlayY:"center"}:(r=="after"||r=="right"&&t||r=="left"&&!t)&&(o={overlayX:"start",overlayY:"center"});let{x:a,y:s}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:a,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),si(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,r){return this.position==="above"||this.position==="below"?r==="top"?r="bottom":r==="bottom"&&(r="top"):t==="end"?t="start":t==="start"&&(t="end"),{x:t,y:r}}_updateCurrentPositionClass(t){let{overlayY:r,originX:o,originY:a}=t,s;if(r==="center"?this._dir&&this._dir.value==="rtl"?s=o==="end"?"left":"right":s=o==="start"?"left":"right":s=r==="bottom"&&a==="top"?"above":"below",s!==this._currentPosition){let l=this._overlayRef;if(l){let c=`${this._cssClassPrefix}-${SI}-`;l.removePanelClass(c+this._currentPosition),l.addPanelClass(c+s)}this._currentPosition=s}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",t=>{this._setupPointerExitEventsIfNeeded();let r;t.x!==void 0&&t.y!==void 0&&(r=t),this.show(void 0,r)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",t=>{let r=t.targetTouches?.[0],o=r?{x:r.clientX,y:r.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let a=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,o)},this._defaultOptions.touchLongPressShowDelay??a)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",r=>{let o=r.relatedTarget;(!o||!this._overlayRef?.overlayElement.contains(o))&&this.hide()}],["wheel",r=>this._wheelListener(r)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let r=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",r],["touchcancel",r])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([r,o])=>{this._elementRef.nativeElement.addEventListener(r,o,EI)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){let r=this._document.elementFromPoint(t.clientX,t.clientY),o=this._elementRef.nativeElement;r!==o&&!o.contains(r)&&this.hide()}}_disableNativeGesturesIfNecessary(){let t=this.touchGestures;if(t!=="off"){let r=this._elementRef.nativeElement,o=r.style;(t==="on"||r.nodeName!=="INPUT"&&r.nodeName!=="TEXTAREA")&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),(t==="on"||!r.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}_syncAriaDescription(t){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,t,"tooltip"),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}};e.\u0275fac=function(r){return new(r||e)(b(yt),b(J),b($a),b(Ft),b(de),b(Le),b(Mg),b(wi),b(DI),b(vt),b(T5,8),b(pe))},e.\u0275dir=B({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(r,o){r&2&&se("mat-mdc-tooltip-disabled",o.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});let i=e;return i})(),O5=(()=>{let e=class e{constructor(t,r,o){this._changeDetectorRef=t,this._elementRef=r,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new q,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled=o==="NoopAnimations"}show(t){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},t)}hide(t){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},t)}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:t}){(!t||!this._triggerElement.contains(t))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let t=this._elementRef.nativeElement.getBoundingClientRect();return t.height>I5&&t.width>=M5}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(t){t?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(t){let r=this._tooltip.nativeElement,o=this._showAnimation,a=this._hideAnimation;if(r.classList.remove(t?a:o),r.classList.add(t?o:a),this._isVisible!==t&&(this._isVisible=t,this._changeDetectorRef.markForCheck()),t&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let s=getComputedStyle(r);(s.getPropertyValue("animation-duration")==="0s"||s.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}t&&this._onShow(),this._animationsDisabled&&(r.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t))}};e.\u0275fac=function(r){return new(r||e)(b(Se),b(J),b(gt,8))},e.\u0275cmp=F({type:e,selectors:[["mat-tooltip-component"]],viewQuery:function(r,o){if(r&1&&ve(x5,7),r&2){let a;K(a=Y())&&(o._tooltip=a.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(r,o){r&1&&w("mouseleave",function(s){return o._handleMouseLeave(s)})},standalone:!0,features:[P],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(r,o){if(r&1){let a=z();u(0,"div",1,0),w("animationend",function(l){return A(a),R(o._handleAnimationEnd(l))}),u(2,"div",2),y(3),m()()}r&2&&(se("mdc-tooltip--multiline",o._isMultiline),v("ngClass",o.tooltipClass),f(3),ge(o.message))},dependencies:[_r],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});let i=e;return i})();var ln=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({providers:[S5],imports:[Bd,Pe,Rn,De,De,er]});let i=e;return i})();function A5(i,e){if(i&1&&(u(0,"mat-option",17),y(1),m()),i&2){let n=e.$implicit;v("value",n),f(),ue(" ",n," ")}}function R5(i,e){if(i&1){let n=z();u(0,"mat-form-field",14)(1,"mat-select",16,0),w("selectionChange",function(r){A(n);let o=C(2);return R(o._changePageSize(r.value))}),He(3,A5,2,2,"mat-option",17,Tt),m(),u(5,"div",18),w("click",function(){A(n);let r=Je(2);return R(r.open())}),m()()}if(i&2){let n=C(2);v("appearance",n._formFieldAppearance)("color",n.color),f(),v("value",n.pageSize)("disabled",n.disabled)("aria-labelledby",n._pageSizeLabelId)("panelClass",n.selectConfig.panelClass||"")("disableOptionCentering",n.selectConfig.disableOptionCentering),f(2),Ue(n._displayedPageSizeOptions)}}function N5(i,e){if(i&1&&(u(0,"div",15),y(1),m()),i&2){let n=C(2);f(),ge(n.pageSize)}}function F5(i,e){if(i&1&&(u(0,"div",3)(1,"div",13),y(2),m(),M(3,R5,6,7,"mat-form-field",14)(4,N5,2,1,"div",15),m()),i&2){let n=C();f(),ne("id",n._pageSizeLabelId),f(),ue(" ",n._intl.itemsPerPageLabel," "),f(),k(n._displayedPageSizeOptions.length>1?3:-1),f(),k(n._displayedPageSizeOptions.length<=1?4:-1)}}function P5(i,e){if(i&1){let n=z();u(0,"button",19),w("click",function(){A(n);let r=C();return R(r.firstPage())}),pi(),u(1,"svg",8),T(2,"path",20),m()()}if(i&2){let n=C();v("matTooltip",n._intl.firstPageLabel)("matTooltipDisabled",n._previousButtonsDisabled())("matTooltipPosition","above")("disabled",n._previousButtonsDisabled()),ne("aria-label",n._intl.firstPageLabel)}}function L5(i,e){if(i&1){let n=z();u(0,"button",21),w("click",function(){A(n);let r=C();return R(r.lastPage())}),pi(),u(1,"svg",8),T(2,"path",22),m()()}if(i&2){let n=C();v("matTooltip",n._intl.lastPageLabel)("matTooltipDisabled",n._nextButtonsDisabled())("matTooltipPosition","above")("disabled",n._nextButtonsDisabled()),ne("aria-label",n._intl.lastPageLabel)}}var i_=(()=>{let e=class e{constructor(){this.changes=new q,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,r,o)=>{if(o==0||r==0)return`0 of ${o}`;o=Math.max(o,0);let a=t*r,s=a{let e=class e{get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(t||0,0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=t||0,this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(t||0,0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(r=>Lt(r,0)),this._updateDisplayedPageSizeOptions()}constructor(t,r,o){if(this._intl=t,this._changeDetectorRef=r,this._pageSizeLabelId=`mat-paginator-page-size-label-${z5++}`,this._isInitialized=!1,this._initializedStream=new tc(1),this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this.hidePageSize=!1,this.showFirstLastButtons=!1,this.selectConfig={},this.disabled=!1,this.page=new $,this.initialized=this._initializedStream,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),o){let{pageSize:a,pageSizeOptions:s,hidePageSize:l,showFirstLastButtons:c}=o;a!=null&&(this._pageSize=a),s!=null&&(this._pageSizeOptions=s),l!=null&&(this.hidePageSize=l),c!=null&&(this.showFirstLastButtons=c)}this._formFieldAppearance=o?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;let t=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;let t=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;let t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;let t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let t=this.getNumberOfPages()-1;return this.pageIndext-r),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}};e.\u0275fac=function(r){return new(r||e)(b(i_),b(Se),b(vx,8))},e.\u0275cmp=F({type:e,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",Lt],length:[2,"length","length",Lt],pageSize:[2,"pageSize","pageSize",Lt],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",ee],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",ee],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",ee]},outputs:{page:"page"},exportAs:["matPaginator"],standalone:!0,features:[xe,P],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(r,o){r&1&&(u(0,"div",1)(1,"div",2),M(2,F5,5,4,"div",3),u(3,"div",4)(4,"div",5),y(5),m(),M(6,P5,3,5,"button",6),u(7,"button",7),w("click",function(){return o.previousPage()}),pi(),u(8,"svg",8),T(9,"path",9),m()(),oa(),u(10,"button",10),w("click",function(){return o.nextPage()}),pi(),u(11,"svg",8),T(12,"path",11),m()(),M(13,L5,3,5,"button",12),m()()()),r&2&&(f(2),k(o.hidePageSize?-1:2),f(3),ue(" ",o._intl.getRangeLabel(o.pageIndex,o.pageSize,o.length)," "),f(),k(o.showFirstLastButtons?6:-1),f(),v("matTooltip",o._intl.previousPageLabel)("matTooltipDisabled",o._previousButtonsDisabled())("matTooltipPosition","above")("disabled",o._previousButtonsDisabled()),ne("aria-label",o._intl.previousPageLabel),f(3),v("matTooltip",o._intl.nextPageLabel)("matTooltipDisabled",o._nextButtonsDisabled())("matTooltipPosition","above")("disabled",o._nextButtonsDisabled()),ne("aria-label",o._intl.nextPageLabel),f(3),k(o.showFirstLastButtons?13:-1))},dependencies:[mt,wr,Pi,li,sn],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});let i=e;return i})(),eu=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({providers:[j5],imports:[we,Sr,ln,_c]});let i=e;return i})();var Sx=["*"];function H5(i,e){i&1&&ae(0)}var U5=["tabListContainer"],$5=["tabList"],G5=["tabListInner"],q5=["nextPaginator"],W5=["previousPaginator"],Q5=i=>({animationDuration:i}),K5=(i,e)=>({value:i,params:e});function Y5(i,e){}var X5=["tabBodyWrapper"],J5=["tabHeader"];function Z5(i,e){}function ez(i,e){if(i&1&&M(0,Z5,0,0,"ng-template",12),i&2){let n=C().$implicit;v("cdkPortalOutlet",n.templateLabel)}}function tz(i,e){if(i&1&&y(0),i&2){let n=C().$implicit;ge(n.textLabel)}}function iz(i,e){if(i&1){let n=z();u(0,"div",7,2),w("click",function(){let r=A(n),o=r.$implicit,a=r.$index,s=C(),l=Je(1);return R(s._handleClick(o,l,a))})("cdkFocusChange",function(r){let o=A(n).$index,a=C();return R(a._tabFocusChanged(r,o))}),T(2,"span",8)(3,"div",9),u(4,"span",10)(5,"span",11),M(6,ez,1,1,null,12)(7,tz,1,1),m()()()}if(i&2){let n=e.$implicit,t=e.$index,r=Je(1),o=C();Yt(n.labelClass),se("mdc-tab--active",o.selectedIndex===t),v("id",o._getTabLabelId(t))("disabled",n.disabled)("fitInkBarToContent",o.fitInkBarToContent),ne("tabIndex",o._getTabIndex(t))("aria-posinset",t+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(t))("aria-selected",o.selectedIndex===t)("aria-label",n.ariaLabel||null)("aria-labelledby",!n.ariaLabel&&n.ariaLabelledby?n.ariaLabelledby:null),f(3),v("matRippleTrigger",r)("matRippleDisabled",n.disabled||o.disableRipple),f(3),k(n.templateLabel?6:7)}}function nz(i,e){i&1&&ae(0)}function rz(i,e){if(i&1){let n=z();u(0,"mat-tab-body",13),w("_onCentered",function(){A(n);let r=C();return R(r._removeTabBodyWrapperHeight())})("_onCentering",function(r){A(n);let o=C();return R(o._setTabBodyWrapperHeight(r))}),m()}if(i&2){let n=e.$implicit,t=e.$index,r=C();Yt(n.bodyClass),se("mat-mdc-tab-body-active",r.selectedIndex===t),v("id",r._getTabContentId(t))("content",n.content)("position",n.position)("origin",n.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),ne("tabindex",r.contentTabIndex!=null&&r.selectedIndex===t?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(t))("aria-hidden",r.selectedIndex!==t)}}var oz=new H("MatTabContent"),az=(()=>{let e=class e{constructor(t){this.template=t}};e.\u0275fac=function(r){return new(r||e)(b(ft))},e.\u0275dir=B({type:e,selectors:[["","matTabContent",""]],standalone:!0,features:[me([{provide:oz,useExisting:e}])]});let i=e;return i})(),sz=new H("MatTabLabel"),MI=new H("MAT_TAB"),lz=(()=>{let e=class e extends kk{constructor(t,r,o){super(t,r),this._closestTab=o}};e.\u0275fac=function(r){return new(r||e)(b(ft),b(Ft),b(MI,8))},e.\u0275dir=B({type:e,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],standalone:!0,features:[me([{provide:sz,useExisting:e}]),X]});let i=e;return i})(),OI=new H("MAT_TAB_GROUP"),Hm=(()=>{let e=class e{get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}get content(){return this._contentPortal}constructor(t,r){this._viewContainerRef=t,this._closestTabGroup=r,this.disabled=!1,this._explicitContent=void 0,this.textLabel="",this._contentPortal=null,this._stateChanges=new q,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Vi(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&t._closestTab===this&&(this._templateLabel=t)}};e.\u0275fac=function(r){return new(r||e)(b(Ft),b(OI,8))},e.\u0275cmp=F({type:e,selectors:[["mat-tab"]],contentQueries:function(r,o,a){if(r&1&&(Ie(a,lz,5),Ie(a,az,7,ft)),r&2){let s;K(s=Y())&&(o.templateLabel=s.first),K(s=Y())&&(o._explicitContent=s.first)}},viewQuery:function(r,o){if(r&1&&ve(ft,7),r&2){let a;K(a=Y())&&(o._implicitContent=a.first)}},hostAttrs:["hidden",""],inputs:{disabled:[2,"disabled","disabled",ee],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],standalone:!0,features:[me([{provide:MI,useExisting:e}]),xe,Ne,P],ngContentSelectors:Sx,decls:1,vars:0,template:function(r,o){r&1&&(Me(),M(0,H5,1,0,"ng-template"))},encapsulation:2});let i=e;return i})(),Cx="mdc-tab-indicator--active",kI="mdc-tab-indicator--no-transition",xx=class{constructor(e){this._items=e}hide(){this._items.forEach(e=>e.deactivateInkBar())}alignToElement(e){let n=this._items.find(r=>r.elementRef.nativeElement===e),t=this._currentItem;if(n!==t&&(t?.deactivateInkBar(),n)){let r=t?.elementRef.nativeElement.getBoundingClientRect?.();n.activateInkBar(r),this._currentItem=n}}},cz=(()=>{let e=class e{constructor(){this._elementRef=x(J),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(t){this._fitToContent!==t&&(this._fitToContent=t,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(t){let r=this._elementRef.nativeElement;if(!t||!r.getBoundingClientRect||!this._inkBarContentElement){r.classList.add(Cx);return}let o=r.getBoundingClientRect(),a=t.width/o.width,s=t.left-o.left;r.classList.add(kI),this._inkBarContentElement.style.setProperty("transform",`translateX(${s}px) scaleX(${a})`),r.getBoundingClientRect(),r.classList.remove(kI),r.classList.add(Cx),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(Cx)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let t=this._elementRef.nativeElement.ownerDocument||document,r=this._inkBarElement=t.createElement("span"),o=this._inkBarContentElement=t.createElement("span");r.className="mdc-tab-indicator",o.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",r.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){this._inkBarElement;let t=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;t.appendChild(this._inkBarElement)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=B({type:e,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",ee]},features:[xe]});let i=e;return i})();var AI=(()=>{let e=class e extends cz{constructor(t){super(),this.elementRef=t,this.disabled=!1}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}};e.\u0275fac=function(r){return new(r||e)(b(J))},e.\u0275dir=B({type:e,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(r,o){r&2&&(ne("aria-disabled",!!o.disabled),se("mat-mdc-tab-disabled",o.disabled))},inputs:{disabled:[2,"disabled","disabled",ee]},standalone:!0,features:[xe,X]});let i=e;return i})(),II=rn({passive:!0}),dz=650,uz=100,pz=(()=>{let e=class e{get selectedIndex(){return this._selectedIndex}set selectedIndex(t){let r=isNaN(t)?0:t;this._selectedIndex!=r&&(this._selectedIndexChanged=!0,this._selectedIndex=r,this._keyManager&&this._keyManager.updateActiveItem(r))}constructor(t,r,o,a,s,l,c){this._elementRef=t,this._changeDetectorRef=r,this._viewportRuler=o,this._dir=a,this._ngZone=s,this._platform=l,this._animationMode=c,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new q,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new q,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new $,this.indexFocused=new $,this._sharedResizeObserver=x(Bg),this._injector=x(ze),s.runOutsideAngular(()=>{fr(t.nativeElement,"mouseleave").pipe(ye(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){fr(this._previousPaginator.nativeElement,"touchstart",II).pipe(ye(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),fr(this._nextPaginator.nativeElement,"touchstart",II).pipe(ye(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){let t=this._dir?this._dir.change:U("ltr"),r=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(Dn(32),ye(this._destroyed)),o=this._viewportRuler.change(150).pipe(ye(this._destroyed)),a=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new so(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),si(a,{injector:this._injector}),Ge(t,o,r,this._items.changes,this._itemsResized()).pipe(ye(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),a()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(s=>{this.indexFocused.emit(s),this._setTabFocus(s)})}_itemsResized(){return typeof ResizeObserver!="function"?Ht:this._items.changes.pipe(Ye(this._items),qe(t=>new Ct(r=>this._ngZone.runOutsideAngular(()=>{let o=new ResizeObserver(a=>r.next(a));return t.forEach(a=>o.observe(a.elementRef.nativeElement)),()=>{o.disconnect()}}))),Ed(1),Re(t=>t.some(r=>r.contentRect.width>0&&r.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(t){if(!Dt(t))switch(t.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let r=this._items.get(this.focusIndex);r&&!r.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t))}break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){let t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",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(t){!this._isValidIndex(t)||this.focusIndex===t||!this._keyManager||this._keyManager.setActiveItem(t)}_isValidIndex(t){return this._items?!!this._items.toArray()[t]:!0}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();let r=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?r.scrollLeft=0:r.scrollLeft=r.scrollWidth-r.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let t=this.scrollDistance,r=this._getLayoutDirection()==="ltr"?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(r)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){let r=this._tabListContainer.nativeElement.offsetWidth,o=(t=="before"?-1:1)*r/3;return this._scrollTo(this._scrollDistance+o)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;let r=this._items?this._items.toArray()[t]:null;if(!r)return;let o=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:a,offsetWidth:s}=r.elementRef.nativeElement,l,c;this._getLayoutDirection()=="ltr"?(l=a,c=l+s):(c=this._tabListInner.nativeElement.offsetWidth-a,l=c-s);let d=this.scrollDistance,p=this.scrollDistance+o;lp&&(this.scrollDistance+=Math.min(c-p,l-d))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let t=this._tabListInner.nativeElement.scrollWidth,r=this._elementRef.nativeElement.offsetWidth,o=t-r>=5;o||(this.scrollDistance=0),o!==this._showPaginationControls&&(this._showPaginationControls=o,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 t=this._tabListInner.nativeElement.scrollWidth,r=this._tabListContainer.nativeElement.offsetWidth;return t-r||0}_alignInkBarToSelectedTab(){let t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,r=t?t.elementRef.nativeElement:null;r?this._inkBar.alignToElement(r):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,r){r&&r.button!=null&&r.button!==0||(this._stopInterval(),La(dz,uz).pipe(ye(Ge(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:o,distance:a}=this._scrollHeader(t);(a===0||a>=o)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let r=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(r,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:r,distance:this._scrollDistance}}};e.\u0275fac=function(r){return new(r||e)(b(J),b(Se),b(tr),b(vt,8),b(de),b(Le),b(gt,8))},e.\u0275dir=B({type:e,inputs:{disablePagination:[2,"disablePagination","disablePagination",ee],selectedIndex:[2,"selectedIndex","selectedIndex",Lt]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[xe]});let i=e;return i})(),mz=(()=>{let e=class e extends pz{constructor(t,r,o,a,s,l,c){super(t,r,o,a,s,l,c),this.disableRipple=!1}ngAfterContentInit(){this._inkBar=new xx(this._items),super.ngAfterContentInit()}_itemSelected(t){t.preventDefault()}};e.\u0275fac=function(r){return new(r||e)(b(J),b(Se),b(tr),b(vt,8),b(de),b(Le),b(gt,8))},e.\u0275cmp=F({type:e,selectors:[["mat-tab-header"]],contentQueries:function(r,o,a){if(r&1&&Ie(a,AI,4),r&2){let s;K(s=Y())&&(o._items=s)}},viewQuery:function(r,o){if(r&1&&(ve(U5,7),ve($5,7),ve(G5,7),ve(q5,5),ve(W5,5)),r&2){let a;K(a=Y())&&(o._tabListContainer=a.first),K(a=Y())&&(o._tabList=a.first),K(a=Y())&&(o._tabListInner=a.first),K(a=Y())&&(o._nextPaginator=a.first),K(a=Y())&&(o._previousPaginator=a.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(r,o){r&2&&se("mat-mdc-tab-header-pagination-controls-enabled",o._showPaginationControls)("mat-mdc-tab-header-rtl",o._getLayoutDirection()=="rtl")},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",ee]},standalone:!0,features:[xe,X,P],ngContentSelectors:Sx,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(r,o){if(r&1){let a=z();Me(),u(0,"div",5,0),w("click",function(){return A(a),R(o._handlePaginatorClick("before"))})("mousedown",function(l){return A(a),R(o._handlePaginatorPress("before",l))})("touchend",function(){return A(a),R(o._stopInterval())}),T(2,"div",6),m(),u(3,"div",7,1),w("keydown",function(l){return A(a),R(o._handleKeydown(l))}),u(5,"div",8,2),w("cdkObserveContent",function(){return A(a),R(o._onContentChanges())}),u(7,"div",9,3),ae(9),m()()(),u(10,"div",10,4),w("mousedown",function(l){return A(a),R(o._handlePaginatorPress("after",l))})("click",function(){return A(a),R(o._handlePaginatorClick("after"))})("touchend",function(){return A(a),R(o._stopInterval())}),T(12,"div",6),m()}r&2&&(se("mat-mdc-tab-header-pagination-disabled",o._disableScrollBefore),v("matRippleDisabled",o._disableScrollBefore||o.disableRipple),f(3),se("_mat-animation-noopable",o._animationMode==="NoopAnimations"),f(2),ne("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby||null),f(5),se("mat-mdc-tab-header-pagination-disabled",o._disableScrollAfter),v("matRippleDisabled",o._disableScrollAfter||o.disableRipple))},dependencies:[Fi,_m],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});let i=e;return i})(),Ex=new H("MAT_TABS_CONFIG"),hz={translateTab:Vt("translateTab",[dt("center, void, left-origin-center, right-origin-center",Ee({transform:"none",visibility:"visible"})),dt("left",Ee({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),dt("right",Ee({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),ot("* => left, * => right, left => center, right => center",nt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),ot("void => left-origin-center",[Ee({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),nt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),ot("void => right-origin-center",[Ee({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),nt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},fz=(()=>{let e=class e extends Ii{constructor(t,r,o,a){super(t,r,a),this._host=o,this._centeringSub=et.EMPTY,this._leavingSub=et.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Ye(this._host._isCenterPosition(this._host._position))).subscribe(t=>{this._host._content&&t&&!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()}};e.\u0275fac=function(r){return new(r||e)(b(Ts),b(Ft),b($t(()=>RI)),b(pe))},e.\u0275dir=B({type:e,selectors:[["","matTabBodyHost",""]],standalone:!0,features:[X]});let i=e;return i})(),RI=(()=>{let e=class e{set position(t){this._positionIndex=t,this._computePositionAnimationState()}constructor(t,r,o){this._elementRef=t,this._dir=r,this._dirChangeSubscription=et.EMPTY,this._translateTabComplete=new q,this._onCentering=new $,this._beforeCentering=new $,this._afterLeavingCenter=new $,this._onCentered=new $(!0),this.animationDuration="500ms",this.preserveContent=!1,r&&(this._dirChangeSubscription=r.change.subscribe(a=>{this._computePositionAnimationState(a),o.markForCheck()})),this._translateTabComplete.pipe(jr((a,s)=>a.fromState===s.fromState&&a.toState===s.toState)).subscribe(a=>{this._isCenterPosition(a.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(a.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(t){let r=this._isCenterPosition(t.toState);this._beforeCentering.emit(r),r&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(t){return t=="center"||t=="left-origin-center"||t=="right-origin-center"}_computePositionAnimationState(t=this._getLayoutDirection()){this._positionIndex<0?this._position=t=="ltr"?"left":"right":this._positionIndex>0?this._position=t=="ltr"?"right":"left":this._position="center"}_computePositionFromOrigin(t){let r=this._getLayoutDirection();return r=="ltr"&&t<=0||r=="rtl"&&t>0?"left-origin-center":"right-origin-center"}};e.\u0275fac=function(r){return new(r||e)(b(J),b(vt,8),b(Se))},e.\u0275cmp=F({type:e,selectors:[["mat-tab-body"]],viewQuery:function(r,o){if(r&1&&ve(Ii,5),r&2){let a;K(a=Y())&&(o._portalHost=a.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:[P],decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(r,o){if(r&1){let a=z();u(0,"div",1,0),w("@translateTab.start",function(l){return A(a),R(o._onTranslateTabStarted(l))})("@translateTab.done",function(l){return A(a),R(o._translateTabComplete.next(l))}),M(2,Y5,0,0,"ng-template",2),m()}r&2&&v("@translateTab",Md(3,K5,o._position,Ur(1,Q5,o.animationDuration)))},dependencies:[fz,Po],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:[hz.translateTab]}});let i=e;return i})(),gz=0,_z=!0,tu=(()=>{let e=class e{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(t){this._fitInkBarToContent=t,this._changeDetectorRef.markForCheck()}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=isNaN(t)?null:t}get animationDuration(){return this._animationDuration}set animationDuration(t){let r=t+"";this._animationDuration=/^\d+$/.test(r)?t+"ms":r}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(t){this._contentTabIndex=isNaN(t)?null:t}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){if(!_z)throw new Error("mat-tab-group background color must be set through the Sass theming API");let r=this._elementRef.nativeElement.classList;r.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),t&&r.add("mat-tabs-with-background",`mat-background-${t}`),this._backgroundColor=t}constructor(t,r,o,a){this._elementRef=t,this._changeDetectorRef=r,this._animationMode=a,this._tabs=new gr,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=et.EMPTY,this._tabLabelSubscription=et.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 $,this.focusChange=new $,this.animationDone=new $,this.selectedTabChange=new $(!0),this._isServer=!x(Le).isBrowser,this._groupId=gz++,this.animationDuration=o&&o.animationDuration?o.animationDuration:"500ms",this.disablePagination=o&&o.disablePagination!=null?o.disablePagination:!1,this.dynamicHeight=o&&o.dynamicHeight!=null?o.dynamicHeight:!1,o?.contentTabIndex!=null&&(this.contentTabIndex=o.contentTabIndex),this.preserveContent=!!o?.preserveContent,this.fitInkBarToContent=o&&o.fitInkBarToContent!=null?o.fitInkBarToContent:!1,this.stretchTabs=o&&o.stretchTabs!=null?o.stretchTabs:!0}ngAfterContentChecked(){let t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){let r=this._selectedIndex==null;if(!r){this.selectedTabChange.emit(this._createChangeEvent(t));let o=this._tabBodyWrapper.nativeElement;o.style.minHeight=o.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((o,a)=>o.isActive=a===t),r||(this.selectedIndexChange.emit(t),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((r,o)=>{r.position=o-t,this._selectedIndex!=null&&r.position==0&&!r.origin&&(r.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{let t=this._clampTabIndex(this._indexToSelect);if(t===this._selectedIndex){let r=this._tabs.toArray(),o;for(let a=0;a{r[t].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(t))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Ye(this._allTabs)).subscribe(t=>{this._tabs.reset(t.filter(r=>r._closestTabGroup===this||!r._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(t){let r=this._tabHeader;r&&(r.focusIndex=t)}_focusChanged(t){this._lastFocusedTabIndex=t,this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){let r=new wx;return r.index=t,this._tabs&&this._tabs.length&&(r.tab=this._tabs.toArray()[t]),r}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Ge(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this.dynamicHeight||!this._tabBodyWrapperHeight)return;let r=this._tabBodyWrapper.nativeElement;r.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(r.style.height=t+"px")}_removeTabBodyWrapperHeight(){let t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,r,o){r.focusIndex=o,t.disabled||(this.selectedIndex=o)}_getTabIndex(t){let r=this._lastFocusedTabIndex??this.selectedIndex;return t===r?0:-1}_tabFocusChanged(t,r){t&&t!=="mouse"&&t!=="touch"&&(this._tabHeader.focusIndex=r)}};e.\u0275fac=function(r){return new(r||e)(b(J),b(Se),b(Ex,8),b(gt,8))},e.\u0275cmp=F({type:e,selectors:[["mat-tab-group"]],contentQueries:function(r,o,a){if(r&1&&Ie(a,Hm,5),r&2){let s;K(s=Y())&&(o._allTabs=s)}},viewQuery:function(r,o){if(r&1&&(ve(X5,5),ve(J5,5)),r&2){let a;K(a=Y())&&(o._tabBodyWrapper=a.first),K(a=Y())&&(o._tabHeader=a.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:10,hostBindings:function(r,o){r&2&&(Yt("mat-"+(o.color||"primary")),Gt("--mat-tab-animation-duration",o.animationDuration),se("mat-mdc-tab-group-dynamic-height",o.dynamicHeight)("mat-mdc-tab-group-inverted-header",o.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",o.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",ee],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",ee],dynamicHeight:[2,"dynamicHeight","dynamicHeight",ee],selectedIndex:[2,"selectedIndex","selectedIndex",Lt],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",Lt],disablePagination:[2,"disablePagination","disablePagination",ee],disableRipple:[2,"disableRipple","disableRipple",ee],preserveContent:[2,"preserveContent","preserveContent",ee],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:[me([{provide:OI,useExisting:e}]),xe,P],ngContentSelectors:Sx,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(r,o){if(r&1){let a=z();Me(),u(0,"mat-tab-header",3,0),w("indexFocused",function(l){return A(a),R(o._focusChanged(l))})("selectFocusedIndex",function(l){return A(a),R(o.selectedIndex=l)}),He(2,iz,8,17,"div",4,Tt),m(),M(4,nz,1,0),u(5,"div",5,1),He(7,rz,1,13,"mat-tab-body",6,Tt),m()}r&2&&(v("selectedIndex",o.selectedIndex||0)("disableRipple",o.disableRipple)("disablePagination",o.disablePagination)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby),f(2),Ue(o._tabs),f(2),k(o._isServer?4:-1),f(),se("_mat-animation-noopable",o._animationMode==="NoopAnimations"),f(2),Ue(o._tabs))},dependencies:[mz,AI,Ag,Fi,Ii,RI],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});let i=e;return i})(),wx=class{};var n_=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({imports:[De,De]});let i=e;return i})();var kx=class extends DD{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Ix=class i extends kx{static makeCurrent(){TD(new i)}onAndCancel(e,n,t){return e.addEventListener(n,t),()=>{e.removeEventListener(n,t)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.remove()}createElement(e,n){return n=n||this.getDefaultDocument(),n.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return n==="window"?window:n==="document"?e:n==="body"?e.body:null}getBaseHref(e){let n=vz();return n==null?null:yz(n)}resetBaseElement(){Um=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return ug(document.cookie,e)}},Um=null;function vz(){return Um=Um||document.querySelector("base"),Um?Um.getAttribute("href"):null}function yz(i){return new URL(i,document.baseURI).pathname}var Cz=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=W({token:e,factory:e.\u0275fac});let i=e;return i})(),r_=new H(""),LI=(()=>{let e=class e{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(o=>{o.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,o){return this._findPluginFor(r).addEventListener(t,r,o)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(a=>a.supports(t)),!r)throw new Ut(5101,!1);return this._eventNameToPlugin.set(t,r),r}};e.\u0275fac=function(r){return new(r||e)(G(r_),G(de))},e.\u0275prov=W({token:e,factory:e.\u0275fac});let i=e;return i})(),$m=class{constructor(e){this._doc=e}},Tx="ng-app-id",VI=(()=>{let e=class e{constructor(t,r,o,a={}){this.doc=t,this.appId=r,this.nonce=o,this.platformId=a,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=pg(a),this.resetHostNodes()}addStyles(t){for(let r of t)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(t){for(let r of t)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let t=this.styleNodesInDOM;t&&(t.forEach(r=>r.remove()),t.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(let r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(let r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){let r=this.styleRef;r.get(t)?.elements?.forEach(o=>o.remove()),r.delete(t)}collectServerRenderedStyles(){let t=this.doc.head?.querySelectorAll(`style[${Tx}="${this.appId}"]`);if(t?.length){let r=new Map;return t.forEach(o=>{o.textContent!=null&&r.set(o.textContent,o)}),r}return null}changeUsageCount(t,r){let o=this.styleRef;if(o.has(t)){let a=o.get(t);return a.usage+=r,a.usage}return o.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){let o=this.styleNodesInDOM,a=o?.get(r);if(a?.parentNode===t)return o.delete(r),a.removeAttribute(Tx),a;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(Tx,this.appId),t.appendChild(s),s}}addStyleToHost(t,r){let o=this.getStyleElement(t,r),a=this.styleRef,s=a.get(r)?.elements;s?s.push(o):a.set(r,{elements:[o],usage:1})}resetHostNodes(){let t=this.hostNodes;t.clear(),t.add(this.doc.head)}};e.\u0275fac=function(r){return new(r||e)(G(pe),G(am),G(sm,8),G(ja))},e.\u0275prov=W({token:e,factory:e.\u0275fac});let i=e;return i})(),Dx={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"},Ox=/%COMP%/g,jI="%COMP%",xz=`_nghost-${jI}`,wz=`_ngcontent-${jI}`,Sz=!0,Ez=new H("",{providedIn:"root",factory:()=>Sz});function Tz(i){return wz.replace(Ox,i)}function Dz(i){return xz.replace(Ox,i)}function BI(i,e){return e.map(n=>n.replace(Ox,i))}var o_=(()=>{let e=class e{constructor(t,r,o,a,s,l,c,d=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=a,this.doc=s,this.platformId=l,this.ngZone=c,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=pg(l),this.defaultRenderer=new Gm(t,s,c,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===om.ShadowDom&&(r=ce(N({},r),{encapsulation:om.Emulated}));let o=this.getOrCreateRenderer(t,r);return o instanceof a_?o.applyToHost(t):o instanceof qm&&o.applyStyles(),o}getOrCreateRenderer(t,r){let o=this.rendererByCompId,a=o.get(r.id);if(!a){let s=this.doc,l=this.ngZone,c=this.eventManager,d=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(r.encapsulation){case om.Emulated:a=new a_(c,d,r,this.appId,p,s,l,h);break;case om.ShadowDom:return new Mx(c,d,t,r,s,l,this.nonce,h);default:a=new qm(c,d,r,p,s,l,h);break}o.set(r.id,a)}return a}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(G(LI),G(VI),G(am),G(Ez),G(pe),G(ja),G(de),G(sm))},e.\u0275prov=W({token:e,factory:e.\u0275fac});let i=e;return i})(),Gm=class{constructor(e,n,t,r){this.eventManager=e,this.doc=n,this.ngZone=t,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,n){return n?this.doc.createElementNS(Dx[n]||n,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,n){(FI(e)?e.content:e).appendChild(n)}insertBefore(e,n,t){e&&(FI(e)?e.content:e).insertBefore(n,t)}removeChild(e,n){n.remove()}selectRootElement(e,n){let t=typeof e=="string"?this.doc.querySelector(e):e;if(!t)throw new Ut(-5104,!1);return n||(t.textContent=""),t}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,n,t,r){if(r){n=r+":"+n;let o=Dx[r];o?e.setAttributeNS(o,n,t):e.setAttribute(n,t)}else e.setAttribute(n,t)}removeAttribute(e,n,t){if(t){let r=Dx[t];r?e.removeAttributeNS(r,n):e.removeAttribute(`${t}:${n}`)}else e.removeAttribute(n)}addClass(e,n){e.classList.add(n)}removeClass(e,n){e.classList.remove(n)}setStyle(e,n,t,r){r&(lm.DashCase|lm.Important)?e.style.setProperty(n,t,r&lm.Important?"important":""):e.style[n]=t}removeStyle(e,n,t){t&lm.DashCase?e.style.removeProperty(n):e.style[n]=""}setProperty(e,n,t){e!=null&&(e[n]=t)}setValue(e,n){e.nodeValue=n}listen(e,n,t){if(typeof e=="string"&&(e=oc().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${n}`);return this.eventManager.addEventListener(e,n,this.decoratePreventDefault(t))}decoratePreventDefault(e){return n=>{if(n==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(n)):e(n))===!1&&n.preventDefault()}}};function FI(i){return i.tagName==="TEMPLATE"&&i.content!==void 0}var Mx=class extends Gm{constructor(e,n,t,r,o,a,s,l){super(e,o,a,l),this.sharedStylesHost=n,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=BI(r.id,r.styles);for(let d of c){let p=document.createElement("style");s&&p.setAttribute("nonce",s),p.textContent=d,this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,n){return super.appendChild(this.nodeOrShadowRoot(e),n)}insertBefore(e,n,t){return super.insertBefore(this.nodeOrShadowRoot(e),n,t)}removeChild(e,n){return super.removeChild(null,n)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},qm=class extends Gm{constructor(e,n,t,r,o,a,s,l){super(e,o,a,s),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=r,this.styles=l?BI(l,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},a_=class extends qm{constructor(e,n,t,r,o,a,s,l){let c=r+"-"+t.id;super(e,n,t,o,a,s,l,c),this.contentAttr=Tz(c),this.hostAttr=Dz(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,n){let t=super.createElement(e,n);return super.setAttribute(t,this.contentAttr,""),t}},kz=(()=>{let e=class e extends $m{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,o){return t.addEventListener(r,o,!1),()=>this.removeEventListener(t,r,o)}removeEventListener(t,r,o){return t.removeEventListener(r,o)}};e.\u0275fac=function(r){return new(r||e)(G(pe))},e.\u0275prov=W({token:e,factory:e.\u0275fac});let i=e;return i})(),Iz=(()=>{let e=class e extends $m{constructor(t){super(t),this.delegate=x(SD,{optional:!0})}supports(t){return this.delegate?this.delegate.supports(t):!1}addEventListener(t,r,o){return this.delegate.addEventListener(t,r,o)}removeEventListener(t,r,o){return this.delegate.removeEventListener(t,r,o)}};e.\u0275fac=function(r){return new(r||e)(G(pe))},e.\u0275prov=W({token:e,factory:e.\u0275fac});let i=e;return i})(),PI=["alt","control","meta","shift"],Mz={"\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"},Oz={alt:i=>i.altKey,control:i=>i.ctrlKey,meta:i=>i.metaKey,shift:i=>i.shiftKey},Az=(()=>{let e=class e extends $m{constructor(t){super(t)}supports(t){return e.parseEventName(t)!=null}addEventListener(t,r,o){let a=e.parseEventName(r),s=e.eventCallback(a.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>oc().onAndCancel(t,a.domEventName,s))}static parseEventName(t){let r=t.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let a=e._normalizeKey(r.pop()),s="",l=r.indexOf("code");if(l>-1&&(r.splice(l,1),s="code."),PI.forEach(d=>{let p=r.indexOf(d);p>-1&&(r.splice(p,1),s+=d+".")}),s+=a,r.length!=0||a.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(t,r){let o=Mz[t.key]||t.key,a="";return r.indexOf("code.")>-1&&(o=t.code,a="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),PI.forEach(s=>{if(s!==o){let l=Oz[s];l(t)&&(a+=s+".")}}),a+=o,a===r)}static eventCallback(t,r,o){return a=>{e.matchEventFullKeyCode(a,t)&&o.runGuarded(()=>r(a))}}static _normalizeKey(t){return t==="esc"?"escape":t}};e.\u0275fac=function(r){return new(r||e)(G(pe))},e.\u0275prov=W({token:e,factory:e.\u0275fac});let i=e;return i})();function zI(i,e){return wD(N({rootComponent:i},Rz(e)))}function Rz(i){return{appProviders:[...Vz,...i?.providers??[]],platformProviders:Lz}}function Nz(){Ix.makeCurrent()}function Fz(){return new Ro}function Pz(){return eD(document),document}var Lz=[{provide:ja,useValue:MD},{provide:tD,useValue:Nz,multi:!0},{provide:pe,useFactory:Pz,deps:[]}];var Vz=[{provide:XT,useValue:"root"},{provide:Ro,useFactory:Fz,deps:[]},{provide:r_,useClass:kz,multi:!0,deps:[pe,de,ja]},{provide:r_,useClass:Az,multi:!0,deps:[pe]},{provide:r_,useClass:Iz,multi:!0},o_,VI,LI,{provide:og,useExisting:o_},{provide:mg,useClass:Cz,deps:[]},[]];var HI=(()=>{let e=class e{constructor(t){this._doc=t,this._dom=oc()}addTag(t,r=!1){return t?this._getOrCreateElement(t,r):null}addTags(t,r=!1){return t?t.reduce((o,a)=>(a&&o.push(this._getOrCreateElement(a,r)),o),[]):[]}getTag(t){return t&&this._doc.querySelector(`meta[${t}]`)||null}getTags(t){if(!t)return[];let r=this._doc.querySelectorAll(`meta[${t}]`);return r?[].slice.call(r):[]}updateTag(t,r){if(!t)return null;r=r||this._parseSelector(t);let o=this.getTag(r);return o?this._setMetaElementAttributes(t,o):this._getOrCreateElement(t,!0)}removeTag(t){this.removeTagElement(this.getTag(t))}removeTagElement(t){t&&this._dom.remove(t)}_getOrCreateElement(t,r=!1){if(!r){let s=this._parseSelector(t),l=this.getTags(s).filter(c=>this._containsAttributes(t,c))[0];if(l!==void 0)return l}let o=this._dom.createElement("meta");return this._setMetaElementAttributes(t,o),this._doc.getElementsByTagName("head")[0].appendChild(o),o}_setMetaElementAttributes(t,r){return Object.keys(t).forEach(o=>r.setAttribute(this._getMetaKeyMap(o),t[o])),r}_parseSelector(t){let r=t.name?"name":"property";return`${r}="${t[r]}"`}_containsAttributes(t,r){return Object.keys(t).every(o=>r.getAttribute(this._getMetaKeyMap(o))===t[o])}_getMetaKeyMap(t){return jz[t]||t}};e.\u0275fac=function(r){return new(r||e)(G(pe))},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),jz={httpEquiv:"http-equiv"},s_=(()=>{let e=class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}};e.\u0275fac=function(r){return new(r||e)(G(pe))},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var bc=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=W({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=G(Bz),o},providedIn:"root"});let i=e;return i})(),Bz=(()=>{let e=class e extends bc{constructor(t){super(),this._doc=t}sanitize(t,r){if(r==null)return null;switch(t){case zr.NONE:return r;case zr.HTML:return Dd(r,"HTML")?Td(r):lD(this._doc,String(r)).toString();case zr.STYLE:return Dd(r,"Style")?Td(r):r;case zr.SCRIPT:if(Dd(r,"Script"))return Td(r);throw new Ut(5200,!1);case zr.URL:return Dd(r,"URL")?Td(r):sD(String(r));case zr.RESOURCE_URL:if(Dd(r,"ResourceURL"))return Td(r);throw new Ut(5201,!1);default:throw new Ut(5202,!1)}}bypassSecurityTrustHtml(t){return iD(t)}bypassSecurityTrustStyle(t){return nD(t)}bypassSecurityTrustScript(t){return rD(t)}bypassSecurityTrustUrl(t){return oD(t)}bypassSecurityTrustResourceUrl(t){return aD(t)}};e.\u0275fac=function(r){return new(r||e)(G(pe))},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var zz="@",Hz=(()=>{let e=class e{constructor(t,r,o,a,s){this.doc=t,this.delegate=r,this.zone=o,this.animationType=a,this.moduleImpl=s,this._rendererFactoryPromise=null,this.scheduler=x(dD,{optional:!0}),this.loadingSchedulerFn=x(Uz,{optional:!0})}ngOnDestroy(){this._engine?.flush()}loadImpl(){let t=()=>this.moduleImpl??import("./chunk-47CQYKNA.js").then(o=>o),r;return this.loadingSchedulerFn?r=this.loadingSchedulerFn(t):r=t(),r.catch(o=>{throw new Ut(5300,!1)}).then(({\u0275createEngine:o,\u0275AnimationRendererFactory:a})=>{this._engine=o(this.animationType,this.doc);let s=new a(this.delegate,this._engine,this.zone);return this.delegate=s,s})}createRenderer(t,r){let o=this.delegate.createRenderer(t,r);if(o.\u0275type===0)return o;typeof o.throwOnSyntheticProps=="boolean"&&(o.throwOnSyntheticProps=!1);let a=new Ax(o);return r?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(s=>{let l=s.createRenderer(t,r);a.use(l),this.scheduler?.notify(10)}).catch(s=>{a.use(o)}),a}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}};e.\u0275fac=function(r){kn()},e.\u0275prov=W({token:e,factory:e.\u0275fac});let i=e;return i})(),Ax=class{constructor(e){this.delegate=e,this.replay=[],this.\u0275type=1}use(e){if(this.delegate=e,this.replay!==null){for(let n of this.replay)n(e);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(e,n){return this.delegate.createElement(e,n)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}get destroyNode(){return this.delegate.destroyNode}appendChild(e,n){this.delegate.appendChild(e,n)}insertBefore(e,n,t,r){this.delegate.insertBefore(e,n,t,r)}removeChild(e,n,t){this.delegate.removeChild(e,n,t)}selectRootElement(e,n){return this.delegate.selectRootElement(e,n)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,n,t,r){this.delegate.setAttribute(e,n,t,r)}removeAttribute(e,n,t){this.delegate.removeAttribute(e,n,t)}addClass(e,n){this.delegate.addClass(e,n)}removeClass(e,n){this.delegate.removeClass(e,n)}setStyle(e,n,t,r){this.delegate.setStyle(e,n,t,r)}removeStyle(e,n,t){this.delegate.removeStyle(e,n,t)}setProperty(e,n,t){this.shouldReplay(n)&&this.replay.push(r=>r.setProperty(e,n,t)),this.delegate.setProperty(e,n,t)}setValue(e,n){this.delegate.setValue(e,n)}listen(e,n,t){return this.shouldReplay(n)&&this.replay.push(r=>r.listen(e,n,t)),this.delegate.listen(e,n,t)}shouldReplay(e){return this.replay!==null&&e.startsWith(zz)}},Uz=new H("");function $I(i="animations"){return gC("NgAsyncAnimations"),rc([{provide:og,useFactory:(e,n,t)=>new Hz(e,n,t,i),deps:[pe,o_,de]},{provide:gt,useValue:i==="noop"?"NoopAnimations":"BrowserAnimations"}])}var ut="primary",sh=Symbol("RouteTitle"),Lx=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let n=this.params[e];return Array.isArray(n)?n[0]:n}return null}getAll(e){if(this.has(e)){let n=this.params[e];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function su(i){return new Lx(i)}function $z(i,e,n){let t=n.path.split("/");if(t.length>i.length||n.pathMatch==="full"&&(e.hasChildren()||t.lengtht[o]===r)}else return i===e}function ZI(i){return i.length>0?i[i.length-1]:null}function $s(i){return no(i)?i:cg(i)?Di(Promise.resolve(i)):U(i)}var qz={exact:tM,subset:iM},eM={exact:Wz,subset:Qz,ignored:()=>!0};function GI(i,e,n){return qz[n.paths](i.root,e.root,n.matrixParams)&&eM[n.queryParams](i.queryParams,e.queryParams)&&!(n.fragment==="exact"&&i.fragment!==e.fragment)}function Wz(i,e){return ua(i,e)}function tM(i,e,n){if(!yc(i.segments,e.segments)||!d_(i.segments,e.segments,n)||i.numberOfChildren!==e.numberOfChildren)return!1;for(let t in e.children)if(!i.children[t]||!tM(i.children[t],e.children[t],n))return!1;return!0}function Qz(i,e){return Object.keys(e).length<=Object.keys(i).length&&Object.keys(e).every(n=>JI(i[n],e[n]))}function iM(i,e,n){return nM(i,e,e.segments,n)}function nM(i,e,n,t){if(i.segments.length>n.length){let r=i.segments.slice(0,n.length);return!(!yc(r,n)||e.hasChildren()||!d_(r,n,t))}else if(i.segments.length===n.length){if(!yc(i.segments,n)||!d_(i.segments,n,t))return!1;for(let r in e.children)if(!i.children[r]||!iM(i.children[r],e.children[r],t))return!1;return!0}else{let r=n.slice(0,i.segments.length),o=n.slice(i.segments.length);return!yc(i.segments,r)||!d_(i.segments,r,t)||!i.children[ut]?!1:nM(i.children[ut],e,o,t)}}function d_(i,e,n){return e.every((t,r)=>eM[n](i[r].parameters,t.parameters))}var Vo=class{constructor(e=new Wt([],{}),n={},t=null){this.root=e,this.queryParams=n,this.fragment=t}get queryParamMap(){return this._queryParamMap??=su(this.queryParams),this._queryParamMap}toString(){return Xz.serialize(this)}},Wt=class{constructor(e,n){this.segments=e,this.children=n,this.parent=null,Object.values(n).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return u_(this)}},vc=class{constructor(e,n){this.path=e,this.parameters=n}get parameterMap(){return this._parameterMap??=su(this.parameters),this._parameterMap}toString(){return oM(this)}};function Kz(i,e){return yc(i,e)&&i.every((n,t)=>ua(n.parameters,e[t].parameters))}function yc(i,e){return i.length!==e.length?!1:i.every((n,t)=>n.path===e[t].path)}function Yz(i,e){let n=[];return Object.entries(i.children).forEach(([t,r])=>{t===ut&&(n=n.concat(e(r,t)))}),Object.entries(i.children).forEach(([t,r])=>{t!==ut&&(n=n.concat(e(r,t)))}),n}var lw=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=W({token:e,factory:()=>new Cc,providedIn:"root"});let i=e;return i})(),Cc=class{parse(e){let n=new Bx(e);return new Vo(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(e){let n=`/${Wm(e.root,!0)}`,t=e6(e.queryParams),r=typeof e.fragment=="string"?`#${Jz(e.fragment)}`:"";return`${n}${t}${r}`}},Xz=new Cc;function u_(i){return i.segments.map(e=>oM(e)).join("/")}function Wm(i,e){if(!i.hasChildren())return u_(i);if(e){let n=i.children[ut]?Wm(i.children[ut],!1):"",t=[];return Object.entries(i.children).forEach(([r,o])=>{r!==ut&&t.push(`${r}:${Wm(o,!1)}`)}),t.length>0?`${n}(${t.join("//")})`:n}else{let n=Yz(i,(t,r)=>r===ut?[Wm(i.children[ut],!1)]:[`${r}:${Wm(t,!1)}`]);return Object.keys(i.children).length===1&&i.children[ut]!=null?`${u_(i)}/${n[0]}`:`${u_(i)}/(${n.join("//")})`}}function rM(i){return encodeURIComponent(i).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function l_(i){return rM(i).replace(/%3B/gi,";")}function Jz(i){return encodeURI(i)}function jx(i){return rM(i).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function p_(i){return decodeURIComponent(i)}function qI(i){return p_(i.replace(/\+/g,"%20"))}function oM(i){return`${jx(i.path)}${Zz(i.parameters)}`}function Zz(i){return Object.entries(i).map(([e,n])=>`;${jx(e)}=${jx(n)}`).join("")}function e6(i){let e=Object.entries(i).map(([n,t])=>Array.isArray(t)?t.map(r=>`${l_(n)}=${l_(r)}`).join("&"):`${l_(n)}=${l_(t)}`).filter(n=>n);return e.length?`?${e.join("&")}`:""}var t6=/^[^\/()?;#]+/;function Rx(i){let e=i.match(t6);return e?e[0]:""}var i6=/^[^\/()?;=#]+/;function n6(i){let e=i.match(i6);return e?e[0]:""}var r6=/^[^=?&#]+/;function o6(i){let e=i.match(r6);return e?e[0]:""}var a6=/^[^&#]+/;function s6(i){let e=i.match(a6);return e?e[0]:""}var Bx=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Wt([],{}):new Wt([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(e.length>0||Object.keys(n).length>0)&&(t[ut]=new Wt(e,n)),t}parseSegment(){let e=Rx(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new Ut(4009,!1);return this.capture(e),new vc(p_(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let n=n6(this.remaining);if(!n)return;this.capture(n);let t="";if(this.consumeOptional("=")){let r=Rx(this.remaining);r&&(t=r,this.capture(t))}e[p_(n)]=p_(t)}parseQueryParam(e){let n=o6(this.remaining);if(!n)return;this.capture(n);let t="";if(this.consumeOptional("=")){let a=s6(this.remaining);a&&(t=a,this.capture(t))}let r=qI(n),o=qI(t);if(e.hasOwnProperty(r)){let a=e[r];Array.isArray(a)||(a=[a],e[r]=a),a.push(o)}else e[r]=o}parseParens(e){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let t=Rx(this.remaining),r=this.remaining[t.length];if(r!=="/"&&r!==")"&&r!==";")throw new Ut(4010,!1);let o;t.indexOf(":")>-1?(o=t.slice(0,t.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=ut);let a=this.parseChildren();n[o]=Object.keys(a).length===1?a[ut]:new Wt([],a),this.consumeOptional("//")}return n}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new Ut(4011,!1)}};function aM(i){return i.segments.length>0?new Wt([],{[ut]:i}):i}function sM(i){let e={};for(let[t,r]of Object.entries(i.children)){let o=sM(r);if(t===ut&&o.segments.length===0&&o.hasChildren())for(let[a,s]of Object.entries(o.children))e[a]=s;else(o.segments.length>0||o.hasChildren())&&(e[t]=o)}let n=new Wt(i.segments,e);return l6(n)}function l6(i){if(i.numberOfChildren===1&&i.children[ut]){let e=i.children[ut];return new Wt(i.segments.concat(e.segments),e.children)}return i}function xc(i){return i instanceof Vo}function c6(i,e,n=null,t=null){let r=lM(i);return cM(r,e,n,t)}function lM(i){let e;function n(o){let a={};for(let l of o.children){let c=n(l);a[l.outlet]=c}let s=new Wt(o.url,a);return o===i&&(e=s),s}let t=n(i.root),r=aM(t);return e??r}function cM(i,e,n,t){let r=i;for(;r.parent;)r=r.parent;if(e.length===0)return Nx(r,r,r,n,t);let o=d6(e);if(o.toRoot())return Nx(r,r,new Wt([],{}),n,t);let a=u6(o,r,i),s=a.processChildren?Ym(a.segmentGroup,a.index,o.commands):uM(a.segmentGroup,a.index,o.commands);return Nx(r,a.segmentGroup,s,n,t)}function m_(i){return typeof i=="object"&&i!=null&&!i.outlets&&!i.segmentPath}function Zm(i){return typeof i=="object"&&i!=null&&i.outlets}function Nx(i,e,n,t,r){let o={};t&&Object.entries(t).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`});let a;i===e?a=n:a=dM(i,e,n);let s=aM(sM(a));return new Vo(s,o,r)}function dM(i,e,n){let t={};return Object.entries(i.children).forEach(([r,o])=>{o===e?t[r]=n:t[r]=dM(o,e,n)}),new Wt(i.segments,t)}var h_=class{constructor(e,n,t){if(this.isAbsolute=e,this.numberOfDoubleDots=n,this.commands=t,e&&t.length>0&&m_(t[0]))throw new Ut(4003,!1);let r=t.find(Zm);if(r&&r!==ZI(t))throw new Ut(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function d6(i){if(typeof i[0]=="string"&&i.length===1&&i[0]==="/")return new h_(!0,0,i);let e=0,n=!1,t=i.reduce((r,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let s={};return Object.entries(o.outlets).forEach(([l,c])=>{s[l]=typeof c=="string"?c.split("/"):c}),[...r,{outlets:s}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:a===0?(o.split("/").forEach((s,l)=>{l==0&&s==="."||(l==0&&s===""?n=!0:s===".."?e++:s!=""&&r.push(s))}),r):[...r,o]},[]);return new h_(n,e,t)}var ru=class{constructor(e,n,t){this.segmentGroup=e,this.processChildren=n,this.index=t}};function u6(i,e,n){if(i.isAbsolute)return new ru(e,!0,0);if(!n)return new ru(e,!1,NaN);if(n.parent===null)return new ru(n,!0,0);let t=m_(i.commands[0])?0:1,r=n.segments.length-1+t;return p6(n,r,i.numberOfDoubleDots)}function p6(i,e,n){let t=i,r=e,o=n;for(;o>r;){if(o-=r,t=t.parent,!t)throw new Ut(4005,!1);r=t.segments.length}return new ru(t,!1,r-o)}function m6(i){return Zm(i[0])?i[0].outlets:{[ut]:i}}function uM(i,e,n){if(i??=new Wt([],{}),i.segments.length===0&&i.hasChildren())return Ym(i,e,n);let t=h6(i,e,n),r=n.slice(t.commandIndex);if(t.match&&t.pathIndexo!==ut)&&i.children[ut]&&i.numberOfChildren===1&&i.children[ut].segments.length===0){let o=Ym(i.children[ut],e,n);return new Wt(i.segments,o.children)}return Object.entries(t).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(r[o]=uM(i.children[o],e,a))}),Object.entries(i.children).forEach(([o,a])=>{t[o]===void 0&&(r[o]=a)}),new Wt(i.segments,r)}}function h6(i,e,n){let t=0,r=e,o={match:!1,pathIndex:0,commandIndex:0};for(;r=n.length)return o;let a=i.segments[r],s=n[t];if(Zm(s))break;let l=`${s}`,c=t0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!QI(l,c,a))return o;t+=2}else{if(!QI(l,{},a))return o;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}function zx(i,e,n){let t=i.segments.slice(0,e),r=0;for(;r{typeof t=="string"&&(t=[t]),t!==null&&(e[n]=zx(new Wt([],{}),0,t))}),e}function WI(i){let e={};return Object.entries(i).forEach(([n,t])=>e[n]=`${t}`),e}function QI(i,e,n){return i==n.path&&ua(e,n.parameters)}var Xm="imperative",bn=function(i){return i[i.NavigationStart=0]="NavigationStart",i[i.NavigationEnd=1]="NavigationEnd",i[i.NavigationCancel=2]="NavigationCancel",i[i.NavigationError=3]="NavigationError",i[i.RoutesRecognized=4]="RoutesRecognized",i[i.ResolveStart=5]="ResolveStart",i[i.ResolveEnd=6]="ResolveEnd",i[i.GuardsCheckStart=7]="GuardsCheckStart",i[i.GuardsCheckEnd=8]="GuardsCheckEnd",i[i.RouteConfigLoadStart=9]="RouteConfigLoadStart",i[i.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",i[i.ChildActivationStart=11]="ChildActivationStart",i[i.ChildActivationEnd=12]="ChildActivationEnd",i[i.ActivationStart=13]="ActivationStart",i[i.ActivationEnd=14]="ActivationEnd",i[i.Scroll=15]="Scroll",i[i.NavigationSkipped=16]="NavigationSkipped",i}(bn||{}),_o=class{constructor(e,n){this.id=e,this.url=n}},wc=class extends _o{constructor(e,n,t="imperative",r=null){super(e,n),this.type=bn.NavigationStart,this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Er=class extends _o{constructor(e,n,t){super(e,n),this.urlAfterRedirects=t,this.type=bn.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Qr=function(i){return i[i.Redirect=0]="Redirect",i[i.SupersededByNewNavigation=1]="SupersededByNewNavigation",i[i.NoDataFromResolver=2]="NoDataFromResolver",i[i.GuardRejected=3]="GuardRejected",i}(Qr||{}),Hx=function(i){return i[i.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",i[i.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",i}(Hx||{}),Wa=class extends _o{constructor(e,n,t,r){super(e,n),this.reason=t,this.code=r,this.type=bn.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Sc=class extends _o{constructor(e,n,t,r){super(e,n),this.reason=t,this.code=r,this.type=bn.NavigationSkipped}},Ec=class extends _o{constructor(e,n,t,r){super(e,n),this.error=t,this.target=r,this.type=bn.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},f_=class extends _o{constructor(e,n,t,r){super(e,n),this.urlAfterRedirects=t,this.state=r,this.type=bn.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ux=class extends _o{constructor(e,n,t,r){super(e,n),this.urlAfterRedirects=t,this.state=r,this.type=bn.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},$x=class extends _o{constructor(e,n,t,r,o){super(e,n),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=o,this.type=bn.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Gx=class extends _o{constructor(e,n,t,r){super(e,n),this.urlAfterRedirects=t,this.state=r,this.type=bn.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},qx=class extends _o{constructor(e,n,t,r){super(e,n),this.urlAfterRedirects=t,this.state=r,this.type=bn.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},eh=class{constructor(e){this.route=e,this.type=bn.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},th=class{constructor(e){this.route=e,this.type=bn.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Wx=class{constructor(e){this.snapshot=e,this.type=bn.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Qx=class{constructor(e){this.snapshot=e,this.type=bn.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Kx=class{constructor(e){this.snapshot=e,this.type=bn.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Yx=class{constructor(e){this.snapshot=e,this.type=bn.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var ih=class{},lu=class{constructor(e,n){this.url=e,this.navigationBehaviorOptions=n}};function g6(i,e){return i.providers&&!i._injector&&(i._injector=ag(i.providers,e,`Route: ${i.path}`)),i._injector??e}function Lo(i){return i.outlet||ut}function _6(i,e){let n=i.filter(t=>Lo(t)===e);return n.push(...i.filter(t=>Lo(t)!==e)),n}function lh(i){if(!i)return null;if(i.routeConfig?._injector)return i.routeConfig._injector;for(let e=i.parent;e;e=e.parent){let n=e.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}var Xx=class{get injector(){return lh(this.route?.snapshot)??this.rootInjector}set injector(e){}constructor(e){this.rootInjector=e,this.outlet=null,this.route=null,this.children=new x_(this.rootInjector),this.attachRef=null}},x_=(()=>{let e=class e{constructor(t){this.rootInjector=t,this.contexts=new Map}onChildOutletCreated(t,r){let o=this.getOrCreateContext(t);o.outlet=r,this.contexts.set(t,o)}onChildOutletDestroyed(t){let r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new Xx(this.rootInjector),this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}};e.\u0275fac=function(r){return new(r||e)(G(ra))},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),g_=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let n=this.pathFromRoot(e);return n.length>1?n[n.length-2]:null}children(e){let n=Jx(e,this._root);return n?n.children.map(t=>t.value):[]}firstChild(e){let n=Jx(e,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(e){let n=Zx(e,this._root);return n.length<2?[]:n[n.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return Zx(e,this._root).map(n=>n.value)}};function Jx(i,e){if(i===e.value)return e;for(let n of e.children){let t=Jx(i,n);if(t)return t}return null}function Zx(i,e){if(i===e.value)return[e];for(let n of e.children){let t=Zx(i,n);if(t.length)return t.unshift(e),t}return[]}var Wr=class{constructor(e,n){this.value=e,this.children=n}toString(){return`TreeNode(${this.value})`}};function nu(i){let e={};return i&&i.children.forEach(n=>e[n.value.outlet]=n),e}var __=class extends g_{constructor(e,n){super(e),this.snapshot=n,cw(this,e)}toString(){return this.snapshot.toString()}};function pM(i){let e=b6(i),n=new Be([new vc("",{})]),t=new Be({}),r=new Be({}),o=new Be({}),a=new Be(""),s=new Si(n,t,o,a,r,ut,i,e.root);return s.snapshot=e.root,new __(new Wr(s,[]),e)}function b6(i){let e={},n={},t={},r="",o=new ou([],e,t,r,n,ut,i,null,{});return new v_("",new Wr(o,[]))}var Si=class{constructor(e,n,t,r,o,a,s,l){this.urlSubject=e,this.paramsSubject=n,this.queryParamsSubject=t,this.fragmentSubject=r,this.dataSubject=o,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(re(c=>c[sh]))??U(void 0),this.url=e,this.params=n,this.queryParams=t,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(re(e=>su(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(re(e=>su(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function b_(i,e,n="emptyOnly"){let t,{routeConfig:r}=i;return e!==null&&(n==="always"||r?.path===""||!e.component&&!e.routeConfig?.loadComponent)?t={params:N(N({},e.params),i.params),data:N(N({},e.data),i.data),resolve:N(N(N(N({},i.data),e.data),r?.data),i._resolvedData)}:t={params:N({},i.params),data:N({},i.data),resolve:N(N({},i.data),i._resolvedData??{})},r&&hM(r)&&(t.resolve[sh]=r.title),t}var ou=class{get title(){return this.data?.[sh]}constructor(e,n,t,r,o,a,s,l,c){this.url=e,this.params=n,this.queryParams=t,this.fragment=r,this.data=o,this.outlet=a,this.component=s,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??=su(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=su(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(t=>t.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${n}')`}},v_=class extends g_{constructor(e,n){super(n),this.url=e,cw(this,n)}toString(){return mM(this._root)}};function cw(i,e){e.value._routerState=i,e.children.forEach(n=>cw(i,n))}function mM(i){let e=i.children.length>0?` { ${i.children.map(mM).join(", ")} } `:"";return`${i.value}${e}`}function Fx(i){if(i.snapshot){let e=i.snapshot,n=i._futureSnapshot;i.snapshot=n,ua(e.queryParams,n.queryParams)||i.queryParamsSubject.next(n.queryParams),e.fragment!==n.fragment&&i.fragmentSubject.next(n.fragment),ua(e.params,n.params)||i.paramsSubject.next(n.params),Gz(e.url,n.url)||i.urlSubject.next(n.url),ua(e.data,n.data)||i.dataSubject.next(n.data)}else i.snapshot=i._futureSnapshot,i.dataSubject.next(i._futureSnapshot.data)}function ew(i,e){let n=ua(i.params,e.params)&&Kz(i.url,e.url),t=!i.parent!=!e.parent;return n&&!t&&(!i.parent||ew(i.parent,e.parent))}function hM(i){return typeof i.title=="string"||i.title===null}var jo=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=ut,this.activateEvents=new $,this.deactivateEvents=new $,this.attachEvents=new $,this.detachEvents=new $,this.parentContexts=x(x_),this.location=x(Ft),this.changeDetector=x(Se),this.inputBinder=x(dw,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){let{firstChange:r,previousValue:o}=t.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Ut(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Ut(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Ut(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new Ut(4013,!1);this._activatedRoute=t;let o=this.location,s=t.snapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,c=new tw(t,l,o.injector);this.activated=o.createComponent(s,{index:o.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=B({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Ne]});let i=e;return i})(),tw=class i{__ngOutletInjector(e){return new i(this.route,this.childContexts,e)}constructor(e,n,t){this.route=e,this.childContexts=n,this.parent=t}get(e,n){return e===Si?this.route:e===x_?this.childContexts:this.parent.get(e,n)}},dw=new H("");function v6(i,e,n){let t=nh(i,e._root,n?n._root:void 0);return new __(t,e)}function nh(i,e,n){if(n&&i.shouldReuseRoute(e.value,n.value.snapshot)){let t=n.value;t._futureSnapshot=e.value;let r=y6(i,e,n);return new Wr(t,r)}else{if(i.shouldAttach(e.value)){let o=i.retrieve(e.value);if(o!==null){let a=o.route;return a.value._futureSnapshot=e.value,a.children=e.children.map(s=>nh(i,s)),a}}let t=C6(e.value),r=e.children.map(o=>nh(i,o));return new Wr(t,r)}}function y6(i,e,n){return e.children.map(t=>{for(let r of n.children)if(i.shouldReuseRoute(t.value,r.value.snapshot))return nh(i,t,r);return nh(i,t)})}function C6(i){return new Si(new Be(i.url),new Be(i.params),new Be(i.queryParams),new Be(i.fragment),new Be(i.data),i.outlet,i.component,i)}var rh=class{constructor(e,n){this.redirectTo=e,this.navigationBehaviorOptions=n}},fM="ngNavigationCancelingError";function y_(i,e){let{redirectTo:n,navigationBehaviorOptions:t}=xc(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=gM(!1,Qr.Redirect);return r.url=n,r.navigationBehaviorOptions=t,r}function gM(i,e){let n=new Error(`NavigationCancelingError: ${i||""}`);return n[fM]=!0,n.cancellationCode=e,n}function x6(i){return _M(i)&&xc(i.url)}function _M(i){return!!i&&i[fM]}var w6=(i,e,n,t)=>re(r=>(new iw(e,r.targetRouterState,r.currentRouterState,n,t).activate(i),r)),iw=class{constructor(e,n,t,r,o){this.routeReuseStrategy=e,this.futureState=n,this.currState=t,this.forwardEvent=r,this.inputBindingEnabled=o}activate(e){let n=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,t,e),Fx(this.futureState.root),this.activateChildRoutes(n,t,e)}deactivateChildRoutes(e,n,t){let r=nu(n);e.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,r[a],t),delete r[a]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,t)})}deactivateRoutes(e,n,t){let r=e.value,o=n?n.value:null;if(r===o)if(r.component){let a=t.getContext(r.outlet);a&&this.deactivateChildRoutes(e,n,a.children)}else this.deactivateChildRoutes(e,n,t);else o&&this.deactivateRouteAndItsChildren(n,t)}deactivateRouteAndItsChildren(e,n){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,n):this.deactivateRouteAndOutlet(e,n)}detachAndStoreRouteSubtree(e,n){let t=n.getContext(e.value.outlet),r=t&&e.value.component?t.children:n,o=nu(e);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,r);if(t&&t.outlet){let a=t.outlet.detach(),s=t.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:a,route:e,contexts:s})}}deactivateRouteAndOutlet(e,n){let t=n.getContext(e.value.outlet),r=t&&e.value.component?t.children:n,o=nu(e);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,r);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(e,n,t){let r=nu(n);e.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],t),this.forwardEvent(new Yx(o.value.snapshot))}),e.children.length&&this.forwardEvent(new Qx(e.value.snapshot))}activateRoutes(e,n,t){let r=e.value,o=n?n.value:null;if(Fx(r),r===o)if(r.component){let a=t.getOrCreateContext(r.outlet);this.activateChildRoutes(e,n,a.children)}else this.activateChildRoutes(e,n,t);else if(r.component){let a=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),Fx(s.route.value),this.activateChildRoutes(e,null,a.children)}else a.attachRef=null,a.route=r,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(e,null,a.children)}else this.activateChildRoutes(e,null,t)}},C_=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},au=class{constructor(e,n){this.component=e,this.route=n}};function S6(i,e,n){let t=i._root,r=e?e._root:null;return Qm(t,r,n,[t.value])}function E6(i){let e=i.routeConfig?i.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:i,guards:e}}function du(i,e){let n=Symbol(),t=e.get(i,n);return t===n?typeof i=="function"&&!QT(i)?i:e.get(i):t}function Qm(i,e,n,t,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=nu(e);return i.children.forEach(a=>{T6(a,o[a.value.outlet],n,t.concat([a.value]),r),delete o[a.value.outlet]}),Object.entries(o).forEach(([a,s])=>Jm(s,n.getContext(a),r)),r}function T6(i,e,n,t,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=i.value,a=e?e.value:null,s=n?n.getContext(i.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let l=D6(a,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new C_(t)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?Qm(i,e,s?s.children:null,t,r):Qm(i,e,n,t,r),l&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new au(s.outlet.component,a))}else a&&Jm(e,s,r),r.canActivateChecks.push(new C_(t)),o.component?Qm(i,null,s?s.children:null,t,r):Qm(i,null,n,t,r);return r}function D6(i,e,n){if(typeof n=="function")return n(i,e);switch(n){case"pathParamsChange":return!yc(i.url,e.url);case"pathParamsOrQueryParamsChange":return!yc(i.url,e.url)||!ua(i.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ew(i,e)||!ua(i.queryParams,e.queryParams);case"paramsChange":default:return!ew(i,e)}}function Jm(i,e,n){let t=nu(i),r=i.value;Object.entries(t).forEach(([o,a])=>{r.component?e?Jm(a,e.children.getContext(o),n):Jm(a,null,n):Jm(a,e,n)}),r.component?e&&e.outlet&&e.outlet.isActivated?n.canDeactivateChecks.push(new au(e.outlet.component,r)):n.canDeactivateChecks.push(new au(null,r)):n.canDeactivateChecks.push(new au(null,r))}function ch(i){return typeof i=="function"}function k6(i){return typeof i=="boolean"}function I6(i){return i&&ch(i.canLoad)}function M6(i){return i&&ch(i.canActivate)}function O6(i){return i&&ch(i.canActivateChild)}function A6(i){return i&&ch(i.canDeactivate)}function R6(i){return i&&ch(i.canMatch)}function bM(i){return i instanceof zT||i?.name==="EmptyError"}var c_=Symbol("INITIAL_VALUE");function cu(){return qe(i=>nn(i.map(e=>e.pipe(pt(1),Ye(c_)))).pipe(re(e=>{for(let n of e)if(n!==!0){if(n===c_)return c_;if(n===!1||N6(n))return n}return!0}),Re(e=>e!==c_),pt(1)))}function N6(i){return xc(i)||i instanceof rh}function F6(i,e){return hr(n=>{let{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:a}}=n;return a.length===0&&o.length===0?U(ce(N({},n),{guardsResult:!0})):P6(a,t,r,i).pipe(hr(s=>s&&k6(s)?L6(t,o,i,e):U(s)),re(s=>ce(N({},n),{guardsResult:s})))})}function P6(i,e,n,t){return Di(i).pipe(hr(r=>H6(r.component,r.route,n,e,t)),Ji(r=>r!==!0,!0))}function L6(i,e,n,t){return Di(e).pipe(na(r=>Pa(j6(r.route.parent,t),V6(r.route,t),z6(i,r.path,n),B6(i,r.route,n))),Ji(r=>r!==!0,!0))}function V6(i,e){return i!==null&&e&&e(new Kx(i)),U(!0)}function j6(i,e){return i!==null&&e&&e(new Wx(i)),U(!0)}function B6(i,e,n){let t=e.routeConfig?e.routeConfig.canActivate:null;if(!t||t.length===0)return U(!0);let r=t.map(o=>Ao(()=>{let a=lh(e)??n,s=du(o,a),l=M6(s)?s.canActivate(e,i):Br(a,()=>s(e,i));return $s(l).pipe(Ji())}));return U(r).pipe(cu())}function z6(i,e,n){let t=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(a=>E6(a)).filter(a=>a!==null).map(a=>Ao(()=>{let s=a.guards.map(l=>{let c=lh(a.node)??n,d=du(l,c),p=O6(d)?d.canActivateChild(t,i):Br(c,()=>d(t,i));return $s(p).pipe(Ji())});return U(s).pipe(cu())}));return U(o).pipe(cu())}function H6(i,e,n,t,r){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return U(!0);let a=o.map(s=>{let l=lh(e)??r,c=du(s,l),d=A6(c)?c.canDeactivate(i,e,n,t):Br(l,()=>c(i,e,n,t));return $s(d).pipe(Ji())});return U(a).pipe(cu())}function U6(i,e,n,t){let r=e.canLoad;if(r===void 0||r.length===0)return U(!0);let o=r.map(a=>{let s=du(a,i),l=I6(s)?s.canLoad(e,n):Br(i,()=>s(e,n));return $s(l)});return U(o).pipe(cu(),vM(t))}function vM(i){return LT(lt(e=>{if(typeof e!="boolean")throw y_(i,e)}),re(e=>e===!0))}function $6(i,e,n,t){let r=e.canMatch;if(!r||r.length===0)return U(!0);let o=r.map(a=>{let s=du(a,i),l=R6(s)?s.canMatch(e,n):Br(i,()=>s(e,n));return $s(l)});return U(o).pipe(cu(),vM(t))}var oh=class{constructor(e){this.segmentGroup=e||null}},ah=class extends Error{constructor(e){super(),this.urlTree=e}};function iu(i){return ic(new oh(i))}function G6(i){return ic(new Ut(4e3,!1))}function q6(i){return ic(gM(!1,Qr.GuardRejected))}var nw=class{constructor(e,n){this.urlSerializer=e,this.urlTree=n}lineralizeSegments(e,n){let t=[],r=n.root;for(;;){if(t=t.concat(r.segments),r.numberOfChildren===0)return U(t);if(r.numberOfChildren>1||!r.children[ut])return G6(`${e.redirectTo}`);r=r.children[ut]}}applyRedirectCommands(e,n,t,r,o){if(typeof n!="string"){let s=n,{queryParams:l,fragment:c,routeConfig:d,url:p,outlet:h,params:g,data:_,title:S}=r,E=Br(o,()=>s({params:g,data:_,queryParams:l,fragment:c,routeConfig:d,url:p,outlet:h,title:S}));if(E instanceof Vo)throw new ah(E);n=E}let a=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),e,t);if(n[0]==="/")throw new ah(a);return a}applyRedirectCreateUrlTree(e,n,t,r){let o=this.createSegmentGroup(e,n.root,t,r);return new Vo(o,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(e,n){let t={};return Object.entries(e).forEach(([r,o])=>{if(typeof o=="string"&&o[0]===":"){let s=o.substring(1);t[r]=n[s]}else t[r]=o}),t}createSegmentGroup(e,n,t,r){let o=this.createSegments(e,n.segments,t,r),a={};return Object.entries(n.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(e,l,t,r)}),new Wt(o,a)}createSegments(e,n,t,r){return n.map(o=>o.path[0]===":"?this.findPosParam(e,o,r):this.findOrReturn(o,t))}findPosParam(e,n,t){let r=t[n.path.substring(1)];if(!r)throw new Ut(4001,!1);return r}findOrReturn(e,n){let t=0;for(let r of n){if(r.path===e.path)return n.splice(t),r;t++}return e}},rw={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function W6(i,e,n,t,r){let o=yM(i,e,n);return o.matched?(t=g6(e,t),$6(t,e,n,r).pipe(re(a=>a===!0?o:N({},rw)))):U(o)}function yM(i,e,n){if(e.path==="**")return Q6(n);if(e.path==="")return e.pathMatch==="full"&&(i.hasChildren()||n.length>0)?N({},rw):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let r=(e.matcher||$z)(n,i,e);if(!r)return N({},rw);let o={};Object.entries(r.posParams??{}).forEach(([s,l])=>{o[s]=l.path});let a=r.consumed.length>0?N(N({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:n.slice(r.consumed.length),parameters:a,positionalParamSegments:r.posParams??{}}}function Q6(i){return{matched:!0,parameters:i.length>0?ZI(i).parameters:{},consumedSegments:i,remainingSegments:[],positionalParamSegments:{}}}function KI(i,e,n,t){return n.length>0&&X6(i,n,t)?{segmentGroup:new Wt(e,Y6(t,new Wt(n,i.children))),slicedSegments:[]}:n.length===0&&J6(i,n,t)?{segmentGroup:new Wt(i.segments,K6(i,n,t,i.children)),slicedSegments:n}:{segmentGroup:new Wt(i.segments,i.children),slicedSegments:n}}function K6(i,e,n,t){let r={};for(let o of n)if(w_(i,e,o)&&!t[Lo(o)]){let a=new Wt([],{});r[Lo(o)]=a}return N(N({},t),r)}function Y6(i,e){let n={};n[ut]=e;for(let t of i)if(t.path===""&&Lo(t)!==ut){let r=new Wt([],{});n[Lo(t)]=r}return n}function X6(i,e,n){return n.some(t=>w_(i,e,t)&&Lo(t)!==ut)}function J6(i,e,n){return n.some(t=>w_(i,e,t))}function w_(i,e,n){return(i.hasChildren()||e.length>0)&&n.pathMatch==="full"?!1:n.path===""}function Z6(i,e,n){return e.length===0&&!i.children[n]}var ow=class{};function e7(i,e,n,t,r,o,a="emptyOnly"){return new aw(i,e,n,t,r,a,o).recognize()}var t7=31,aw=class{constructor(e,n,t,r,o,a,s){this.injector=e,this.configLoader=n,this.rootComponentType=t,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new nw(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new Ut(4002,`'${e.segmentGroup}'`)}recognize(){let e=KI(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(re(({children:n,rootSnapshot:t})=>{let r=new Wr(t,n),o=new v_("",r),a=c6(t,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}}))}match(e){let n=new ou([],Object.freeze({}),Object.freeze(N({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),ut,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,ut,n).pipe(re(t=>({children:t,rootSnapshot:n})),Xn(t=>{if(t instanceof ah)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof oh?this.noMatchError(t):t}))}processSegmentGroup(e,n,t,r,o){return t.segments.length===0&&t.hasChildren()?this.processChildren(e,n,t,o):this.processSegment(e,n,t,t.segments,r,!0,o).pipe(re(a=>a instanceof Wr?[a]:[]))}processChildren(e,n,t,r){let o=[];for(let a of Object.keys(t.children))a==="primary"?o.unshift(a):o.push(a);return Di(o).pipe(na(a=>{let s=t.children[a],l=_6(n,a);return this.processSegmentGroup(e,l,s,a,r)}),GT((a,s)=>(a.push(...s),a)),mC(null),tg(),hr(a=>{if(a===null)return iu(t);let s=CM(a);return i7(s),U(s)}))}processSegment(e,n,t,r,o,a,s){return Di(n).pipe(na(l=>this.processSegmentAgainstRoute(l._injector??e,n,l,t,r,o,a,s).pipe(Xn(c=>{if(c instanceof oh)return U(null);throw c}))),Ji(l=>!!l),Xn(l=>{if(bM(l))return Z6(t,r,o)?U(new ow):iu(t);throw l}))}processSegmentAgainstRoute(e,n,t,r,o,a,s,l){return Lo(t)!==a&&(a===ut||!w_(r,o,t))?iu(r):t.redirectTo===void 0?this.matchSegmentAgainstRoute(e,r,t,o,a,l):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(e,r,n,t,o,a,l):iu(r)}expandSegmentAgainstRouteUsingRedirect(e,n,t,r,o,a,s){let{matched:l,parameters:c,consumedSegments:d,positionalParamSegments:p,remainingSegments:h}=yM(n,r,o);if(!l)return iu(n);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>t7&&(this.allowRedirects=!1));let g=new ou(o,c,Object.freeze(N({},this.urlTree.queryParams)),this.urlTree.fragment,YI(r),Lo(r),r.component??r._loadedComponent??null,r,XI(r)),_=b_(g,s,this.paramsInheritanceStrategy);g.params=Object.freeze(_.params),g.data=Object.freeze(_.data);let S=this.applyRedirects.applyRedirectCommands(d,r.redirectTo,p,g,e);return this.applyRedirects.lineralizeSegments(r,S).pipe(hr(E=>this.processSegment(e,t,n,E.concat(h),a,!1,s)))}matchSegmentAgainstRoute(e,n,t,r,o,a){let s=W6(n,t,r,e,this.urlSerializer);return t.path==="**"&&(n.children={}),s.pipe(qe(l=>l.matched?(e=t._injector??e,this.getChildConfig(e,t,r).pipe(qe(({routes:c})=>{let d=t._loadedInjector??e,{parameters:p,consumedSegments:h,remainingSegments:g}=l,_=new ou(h,p,Object.freeze(N({},this.urlTree.queryParams)),this.urlTree.fragment,YI(t),Lo(t),t.component??t._loadedComponent??null,t,XI(t)),S=b_(_,a,this.paramsInheritanceStrategy);_.params=Object.freeze(S.params),_.data=Object.freeze(S.data);let{segmentGroup:E,slicedSegments:D}=KI(n,h,g,c);if(D.length===0&&E.hasChildren())return this.processChildren(d,c,E,_).pipe(re(I=>new Wr(_,I)));if(c.length===0&&D.length===0)return U(new Wr(_,[]));let O=Lo(t)===o;return this.processSegment(d,c,E,D,O?ut:o,!0,_).pipe(re(I=>new Wr(_,I instanceof Wr?[I]:[])))}))):iu(n)))}getChildConfig(e,n,t){return n.children?U({routes:n.children,injector:e}):n.loadChildren?n._loadedRoutes!==void 0?U({routes:n._loadedRoutes,injector:n._loadedInjector}):U6(e,n,t,this.urlSerializer).pipe(hr(r=>r?this.configLoader.loadChildren(e,n).pipe(lt(o=>{n._loadedRoutes=o.routes,n._loadedInjector=o.injector})):q6(n))):U({routes:[],injector:e})}};function i7(i){i.sort((e,n)=>e.value.outlet===ut?-1:n.value.outlet===ut?1:e.value.outlet.localeCompare(n.value.outlet))}function n7(i){let e=i.value.routeConfig;return e&&e.path===""}function CM(i){let e=[],n=new Set;for(let t of i){if(!n7(t)){e.push(t);continue}let r=e.find(o=>t.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...t.children),n.add(r)):e.push(t)}for(let t of n){let r=CM(t.children);e.push(new Wr(t.value,r))}return e.filter(t=>!n.has(t))}function YI(i){return i.data||{}}function XI(i){return i.resolve||{}}function r7(i,e,n,t,r,o){return hr(a=>e7(i,e,n,t,a.extractedUrl,r,o).pipe(re(({state:s,tree:l})=>ce(N({},a),{targetSnapshot:s,urlAfterRedirects:l}))))}function o7(i,e){return hr(n=>{let{targetSnapshot:t,guards:{canActivateChecks:r}}=n;if(!r.length)return U(n);let o=new Set(r.map(l=>l.route)),a=new Set;for(let l of o)if(!a.has(l))for(let c of xM(l))a.add(c);let s=0;return Di(a).pipe(na(l=>o.has(l)?a7(l,t,i,e):(l.data=b_(l,l.parent,i).resolve,U(void 0))),lt(()=>s++),hC(1),hr(l=>s===a.size?U(n):Ht))})}function xM(i){let e=i.children.map(n=>xM(n)).flat();return[i,...e]}function a7(i,e,n,t){let r=i.routeConfig,o=i._resolve;return r?.title!==void 0&&!hM(r)&&(o[sh]=r.title),s7(o,i,e,t).pipe(re(a=>(i._resolvedData=a,i.data=b_(i,i.parent,n).resolve,null)))}function s7(i,e,n,t){let r=Vx(i);if(r.length===0)return U({});let o={};return Di(r).pipe(hr(a=>l7(i[a],e,n,t).pipe(Ji(),lt(s=>{if(s instanceof rh)throw y_(new Cc,s);o[a]=s}))),hC(1),rm(o),Xn(a=>bM(a)?Ht:ic(a)))}function l7(i,e,n,t){let r=lh(e)??t,o=du(i,r),a=o.resolve?o.resolve(e,n):Br(r,()=>o(e,n));return $s(a)}function Px(i){return qe(e=>{let n=i(e);return n?Di(n).pipe(re(()=>e)):U(e)})}var wM=(()=>{let e=class e{buildTitle(t){let r,o=t.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(a=>a.outlet===ut);return r}getResolvedTitleForRoute(t){return t.data[sh]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=W({token:e,factory:()=>x(c7),providedIn:"root"});let i=e;return i})(),c7=(()=>{let e=class e extends wM{constructor(t){super(),this.title=t}updateTitle(t){let r=this.buildTitle(t);r!==void 0&&this.title.setTitle(r)}};e.\u0275fac=function(r){return new(r||e)(G(s_))},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),S_=new H("",{providedIn:"root",factory:()=>({})}),d7=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=F({type:e,selectors:[["ng-component"]],standalone:!0,features:[P],decls:1,vars:0,template:function(r,o){r&1&&T(0,"router-outlet")},dependencies:[jo],encapsulation:2});let i=e;return i})();function uw(i){let e=i.children&&i.children.map(uw),n=e?ce(N({},i),{children:e}):N({},i);return!n.component&&!n.loadComponent&&(e||n.loadChildren)&&n.outlet&&n.outlet!==ut&&(n.component=d7),n}var pw=new H(""),u7=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=x(yC)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return U(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);let r=$s(t.loadComponent()).pipe(re(SM),lt(a=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=a}),Xi(()=>{this.componentLoaders.delete(t)})),o=new nm(r,()=>new q).pipe(cC());return this.componentLoaders.set(t,o),o}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return U({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let a=p7(r,this.compiler,t,this.onLoadEndListener).pipe(Xi(()=>{this.childrenLoaders.delete(r)})),s=new nm(a,()=>new q).pipe(cC());return this.childrenLoaders.set(r,s),s}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function p7(i,e,n,t){return $s(i.loadChildren()).pipe(re(SM),hr(r=>r instanceof mD||Array.isArray(r)?U(r):Di(e.compileModuleAsync(r))),re(r=>{t&&t(i);let o,a,s=!1;return Array.isArray(r)?(a=r,s=!0):(o=r.create(n).injector,a=o.get(pw,[],{optional:!0,self:!0}).flat()),{routes:a.map(uw),injector:o}}))}function m7(i){return i&&typeof i=="object"&&"default"in i}function SM(i){return m7(i)?i.default:i}var mw=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=W({token:e,factory:()=>x(h7),providedIn:"root"});let i=e;return i})(),h7=(()=>{let e=class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),f7=new H("");var g7=new H(""),_7=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new q,this.transitionAbortSubject=new q,this.configLoader=x(u7),this.environmentInjector=x(ra),this.urlSerializer=x(lw),this.rootContexts=x(x_),this.location=x(Is),this.inputBindingEnabled=x(dw,{optional:!0})!==null,this.titleStrategy=x(wM),this.options=x(S_,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=x(mw),this.createViewTransition=x(f7,{optional:!0}),this.navigationErrorHandler=x(g7,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>U(void 0),this.rootComponentType=null;let t=o=>this.events.next(new eh(o)),r=o=>this.events.next(new th(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=t}complete(){this.transitions?.complete()}handleNavigationRequest(t){let r=++this.navigationId;this.transitions?.next(ce(N(N({},this.transitions.value),t),{id:r}))}setupNavigations(t,r,o){return this.transitions=new Be({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Xm,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Re(a=>a.id!==0),re(a=>ce(N({},a),{extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),qe(a=>{let s=!1,l=!1;return U(a).pipe(qe(c=>{if(this.navigationId>a.id)return this.cancelNavigationTransition(a,"",Qr.SupersededByNewNavigation),Ht;this.currentTransition=a,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,targetBrowserUrl:typeof c.extras.browserUrl=="string"?this.urlSerializer.parse(c.extras.browserUrl):c.extras.browserUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?ce(N({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let d=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),p=c.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!d&&p!=="reload"){let h="";return this.events.next(new Sc(c.id,this.urlSerializer.serialize(c.rawUrl),h,Hx.IgnoredSameUrlNavigation)),c.resolve(!1),Ht}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return U(c).pipe(qe(h=>{let g=this.transitions?.getValue();return this.events.next(new wc(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),g!==this.transitions?.getValue()?Ht:Promise.resolve(h)}),r7(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),lt(h=>{a.targetSnapshot=h.targetSnapshot,a.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=ce(N({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let g=new f_(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(g)}));if(d&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:h,extractedUrl:g,source:_,restoredState:S,extras:E}=c,D=new wc(h,this.urlSerializer.serialize(g),_,S);this.events.next(D);let O=pM(this.rootComponentType).snapshot;return this.currentTransition=a=ce(N({},c),{targetSnapshot:O,urlAfterRedirects:g,extras:ce(N({},E),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=g,U(a)}else{let h="";return this.events.next(new Sc(c.id,this.urlSerializer.serialize(c.extractedUrl),h,Hx.IgnoredByUrlHandlingStrategy)),c.resolve(!1),Ht}}),lt(c=>{let d=new Ux(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}),re(c=>(this.currentTransition=a=ce(N({},c),{guards:S6(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),a)),F6(this.environmentInjector,c=>this.events.next(c)),lt(c=>{if(a.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw y_(this.urlSerializer,c.guardsResult);let d=new $x(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(d)}),Re(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",Qr.GuardRejected),!1)),Px(c=>{if(c.guards.canActivateChecks.length)return U(c).pipe(lt(d=>{let p=new Gx(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(p)}),qe(d=>{let p=!1;return U(d).pipe(o7(this.paramsInheritanceStrategy,this.environmentInjector),lt({next:()=>p=!0,complete:()=>{p||this.cancelNavigationTransition(d,"",Qr.NoDataFromResolver)}}))}),lt(d=>{let p=new qx(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(p)}))}),Px(c=>{let d=p=>{let h=[];p.routeConfig?.loadComponent&&!p.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(p.routeConfig).pipe(lt(g=>{p.component=g}),re(()=>{})));for(let g of p.children)h.push(...d(g));return h};return nn(d(c.targetSnapshot.root)).pipe(mC(null),pt(1))}),Px(()=>this.afterPreactivation()),qe(()=>{let{currentSnapshot:c,targetSnapshot:d}=a,p=this.createViewTransition?.(this.environmentInjector,c.root,d.root);return p?Di(p).pipe(re(()=>a)):U(a)}),re(c=>{let d=v6(t.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=a=ce(N({},c),{targetRouterState:d}),this.currentNavigation.targetRouterState=d,a}),lt(()=>{this.events.next(new ih)}),w6(this.rootContexts,t.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),pt(1),lt({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Er(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),ye(this.transitionAbortSubject.pipe(lt(c=>{throw c}))),Xi(()=>{!s&&!l&&this.cancelNavigationTransition(a,"",Qr.SupersededByNewNavigation),this.currentTransition?.id===a.id&&(this.currentNavigation=null,this.currentTransition=null)}),Xn(c=>{if(l=!0,_M(c))this.events.next(new Wa(a.id,this.urlSerializer.serialize(a.extractedUrl),c.message,c.cancellationCode)),x6(c)?this.events.next(new lu(c.url,c.navigationBehaviorOptions)):a.resolve(!1);else{let d=new Ec(a.id,this.urlSerializer.serialize(a.extractedUrl),c,a.targetSnapshot??void 0);try{let p=Br(this.environmentInjector,()=>this.navigationErrorHandler?.(d));if(p instanceof rh){let{message:h,cancellationCode:g}=y_(this.urlSerializer,p);this.events.next(new Wa(a.id,this.urlSerializer.serialize(a.extractedUrl),h,g)),this.events.next(new lu(p.redirectTo,p.navigationBehaviorOptions))}else{this.events.next(d);let h=t.errorHandler(c);a.resolve(!!h)}}catch(p){this.options.resolveNavigationPromiseOnError?a.resolve(!1):a.reject(p)}}return Ht}))}))}cancelNavigationTransition(t,r,o){let a=new Wa(t.id,this.urlSerializer.serialize(t.extractedUrl),r,o);this.events.next(a),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let t=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return t.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function b7(i){return i!==Xm}var v7=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=W({token:e,factory:()=>x(y7),providedIn:"root"});let i=e;return i})(),sw=class{shouldDetach(e){return!1}store(e,n){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,n){return e.routeConfig===n.routeConfig}},y7=(()=>{let e=class e extends sw{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),EM=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=W({token:e,factory:()=>x(C7),providedIn:"root"});let i=e;return i})(),C7=(()=>{let e=class e extends EM{constructor(){super(...arguments),this.location=x(Is),this.urlSerializer=x(lw),this.options=x(S_,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=x(mw),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Vo,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=pM(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(t){return this.location.subscribe(r=>{r.type==="popstate"&&t(r.url,r.state)})}handleRouterEvent(t,r){if(t instanceof wc)this.stateMemento=this.createStateMemento();else if(t instanceof Sc)this.rawUrlTree=r.initialUrl;else if(t instanceof f_){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??o,r)}}else t instanceof ih?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(r.targetBrowserUrl??this.rawUrlTree,r)):t instanceof Wa&&(t.code===Qr.GuardRejected||t.code===Qr.NoDataFromResolver)?this.restoreHistory(r):t instanceof Ec?this.restoreHistory(r,!0):t instanceof Er&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,r){let o=t instanceof Vo?this.urlSerializer.serialize(t):t;if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){let a=this.browserPageId,s=N(N({},r.extras.state),this.generateNgRouterState(r.id,a));this.location.replaceState(o,"",s)}else{let a=N(N({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(o,"",a)}}restoreHistory(t,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,a=this.currentPageId-o;a!==0?this.location.historyGo(a):this.currentUrlTree===t.finalUrl&&a===0&&(this.resetState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,r){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),Km=function(i){return i[i.COMPLETE=0]="COMPLETE",i[i.FAILED=1]="FAILED",i[i.REDIRECTING=2]="REDIRECTING",i}(Km||{});function x7(i,e){i.events.pipe(Re(n=>n instanceof Er||n instanceof Wa||n instanceof Ec||n instanceof Sc),re(n=>n instanceof Er||n instanceof Sc?Km.COMPLETE:(n instanceof Wa?n.code===Qr.Redirect||n.code===Qr.SupersededByNewNavigation:!1)?Km.REDIRECTING:Km.FAILED),Re(n=>n!==Km.REDIRECTING),pt(1)).subscribe(()=>{e()})}function w7(i){throw i}var S7={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},E7={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Mi=(()=>{let e=class e{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=x(lg),this.stateManager=x(EM),this.options=x(S_,{optional:!0})||{},this.pendingTasks=x(ng),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=x(_7),this.urlSerializer=x(lw),this.location=x(Is),this.urlHandlingStrategy=x(mw),this._events=new q,this.errorHandler=this.options.errorHandler||w7,this.navigated=!1,this.routeReuseStrategy=x(v7),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=x(pw,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!x(dw,{optional:!0}),this.eventsSubscription=new et,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,a=this.navigationTransitions.currentNavigation;if(o!==null&&a!==null){if(this.stateManager.handleRouterEvent(r,a),r instanceof Wa&&r.code!==Qr.Redirect&&r.code!==Qr.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Er)this.navigated=!0;else if(r instanceof lu){let s=r.navigationBehaviorOptions,l=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),c=N({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||b7(o.source)},s);this.scheduleNavigation(l,Xm,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}D7(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Xm,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(t,"popstate",r)},0)})}navigateToSyncWithBrowser(t,r,o){let a={replaceUrl:!0},s=o?.navigationId?o:null;if(o){let c=N({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(a.state=c)}let l=this.parseUrl(t);this.scheduleNavigation(l,r,s,a)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(uw),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(t,r={}){let{relativeTo:o,queryParams:a,fragment:s,queryParamsHandling:l,preserveFragment:c}=r,d=c?this.currentUrlTree.fragment:s,p=null;switch(l??this.options.defaultQueryParamsHandling){case"merge":p=N(N({},this.currentUrlTree.queryParams),a);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=a||null}p!==null&&(p=this.removeEmptyProps(p));let h;try{let g=o?o.snapshot:this.routerState.snapshot.root;h=lM(g)}catch{(typeof t[0]!="string"||t[0][0]!=="/")&&(t=[]),h=this.currentUrlTree.root}return cM(h,t,p,d??null)}navigateByUrl(t,r={skipLocationChange:!1}){let o=xc(t)?t:this.parseUrl(t),a=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(a,Xm,null,r)}navigate(t,r={skipLocationChange:!1}){return T7(t),this.navigateByUrl(this.createUrlTree(t,r),r)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.urlSerializer.parse("/")}}isActive(t,r){let o;if(r===!0?o=N({},S7):r===!1?o=N({},E7):o=r,xc(t))return GI(this.currentUrlTree,t,o);let a=this.parseUrl(t);return GI(this.currentUrlTree,a,o)}removeEmptyProps(t){return Object.entries(t).reduce((r,[o,a])=>(a!=null&&(r[o]=a),r),{})}scheduleNavigation(t,r,o,a,s){if(this.disposed)return Promise.resolve(!1);let l,c,d;s?(l=s.resolve,c=s.reject,d=s.promise):d=new Promise((h,g)=>{l=h,c=g});let p=this.pendingTasks.add();return x7(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(p))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:a,resolve:l,reject:c,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(h=>Promise.reject(h))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function T7(i){for(let e=0;e{let e=class e{constructor(t,r,o,a,s,l){this.router=t,this.route=r,this.tabIndexAttribute=o,this.renderer=a,this.el=s,this.locationStrategy=l,this.href=null,this.onChanges=new q,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=t.events.subscribe(d=>{d instanceof Er&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(t){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(t){t==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(xc(t)?this.routerLinkInput=t:this.routerLinkInput=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0"))}onClick(t,r,o,a,s){let l=this.urlTree;if(l===null||this.isAnchorElement&&(t!==0||r||o||a||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(l,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let t=this.urlTree;this.href=t!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(t)):null;let r=this.href===null?null:cD(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(t,r){let o=this.renderer,a=this.el.nativeElement;r!==null?o.setAttribute(a,t,r):o.removeAttribute(a,t)}get urlTree(){return this.routerLinkInput===null?null:xc(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})}};e.\u0275fac=function(r){return new(r||e)(b(Mi),b(Si),gi("tabindex"),b(cm),b(J),b(xC))},e.\u0275dir=B({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,o){r&1&&w("click",function(s){return o.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&ne("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",ee],skipLocationChange:[2,"skipLocationChange","skipLocationChange",ee],replaceUrl:[2,"replaceUrl","replaceUrl",ee],routerLink:"routerLink"},standalone:!0,features:[xe,Ne]});let i=e;return i})();var k7=new H("");function TM(i,...e){return rc([{provide:pw,multi:!0,useValue:i},[],{provide:Si,useFactory:I7,deps:[Mi]},{provide:vC,multi:!0,useFactory:O7},e.map(n=>n.\u0275providers)])}function I7(i){return i.routerState.root}function M7(i,e){return{\u0275kind:i,\u0275providers:e}}function O7(){let i=x(ze);return e=>{let n=i.get(ks);if(e!==n.components[0])return;let t=i.get(Mi),r=i.get(A7);i.get(R7)===1&&t.initialNavigation(),i.get(N7,null,fC.Optional)?.setUpPreloading(),i.get(k7,null,fC.Optional)?.init(),t.resetRootComponentType(n.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var A7=new H("",{factory:()=>new q}),R7=new H("",{providedIn:"root",factory:()=>1});var N7=new H("");function DM(i){return M7(5,[{provide:S_,useValue:i}])}var F7=typeof global=="object"&&global&&global.Object===Object&&global,E_=F7;var P7=typeof self=="object"&&self&&self.Object===Object&&self,L7=E_||P7||Function("return this")(),Bi=L7;var V7=Bi.Symbol,cn=V7;var kM=Object.prototype,j7=kM.hasOwnProperty,B7=kM.toString,dh=cn?cn.toStringTag:void 0;function z7(i){var e=j7.call(i,dh),n=i[dh];try{i[dh]=void 0;var t=!0}catch{}var r=B7.call(i);return t&&(e?i[dh]=n:delete i[dh]),r}var IM=z7;var H7=Object.prototype,U7=H7.toString;function $7(i){return U7.call(i)}var MM=$7;var G7="[object Null]",q7="[object Undefined]",OM=cn?cn.toStringTag:void 0;function W7(i){return i==null?i===void 0?q7:G7:OM&&OM in Object(i)?IM(i):MM(i)}var Kr=W7;function Q7(i){return i!=null&&typeof i=="object"}var en=Q7;var K7="[object Symbol]";function Y7(i){return typeof i=="symbol"||en(i)&&Kr(i)==K7}var uu=Y7;function X7(i,e){for(var n=-1,t=i==null?0:i.length,r=Array(t);++n0){if(++e>=D9)return arguments[0]}else e=0;return i.apply(void 0,arguments)}}var UM=M9;function O9(i){return function(){return i}}var $M=O9;var A9=function(){try{var i=Tr(Object,"defineProperty");return i({},"",{}),i}catch{}}(),hu=A9;var R9=hu?function(i,e){return hu(i,"toString",{configurable:!0,enumerable:!1,value:$M(e),writable:!0})}:pu,GM=R9;var N9=UM(GM),M_=N9;function F9(i,e){for(var n=-1,t=i==null?0:i.length;++n-1}var fu=B9;var z9=9007199254740991,H9=/^(?:0|[1-9]\d*)$/;function U9(i,e){var n=typeof i;return e=e??z9,!!e&&(n=="number"||n!="symbol"&&H9.test(i))&&i>-1&&i%1==0&&i-1&&i%1==0&&i<=J9}var _u=Z9;function eH(i){return i!=null&&_u(i.length)&&!mu(i)}var Co=eH;function tH(i,e,n){if(!ui(n))return!1;var t=typeof e;return(t=="number"?Co(n)&&Gs(e,n.length):t=="string"&&e in n)?vo(n[e],i):!1}var A_=tH;function iH(i){return pa(function(e,n){var t=-1,r=n.length,o=r>1?n[r-1]:void 0,a=r>2?n[2]:void 0;for(o=i.length>3&&typeof o=="function"?(r--,o):void 0,a&&A_(n[0],n[1],a)&&(o=r<3?void 0:o,r=1),e=Object(e);++t-1}var bO=EU;function TU(i,e){var n=this.__data__,t=Ks(n,i);return t<0?(++this.size,n.push([i,e])):n[t][1]=e,this}var vO=TU;function yu(i){var e=-1,n=i==null?0:i.length;for(this.clear();++e0&&n(s)?e>1?AO(s,e-1,n,t,r):wu(r,s):t||(r[r.length]=s)}return r}var L_=AO;function KU(i){var e=i==null?0:i.length;return e?L_(i,1):[]}var Dc=KU;function YU(i){return M_(O_(i,void 0,Dc),i+"")}var V_=YU;var XU=F_(Object.getPrototypeOf,Object),Su=XU;var JU="[object Object]",ZU=Function.prototype,e$=Object.prototype,RO=ZU.toString,t$=e$.hasOwnProperty,i$=RO.call(Object);function n$(i){if(!en(i)||Kr(i)!=JU)return!1;var e=Su(i);if(e===null)return!0;var n=t$.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&RO.call(n)==i$}var j_=n$;function r$(i,e,n){var t=-1,r=i.length;e<0&&(e=-e>r?0:r+e),n=n>r?r:n,n<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(r);++ts))return!1;var c=o.get(i),d=o.get(e);if(c&&d)return c==e&&d==i;var p=-1,h=!0,g=n&Gq?new tl:void 0;for(o.set(i,e),o.set(e,i);++p2?e[2]:void 0;for(r&&A_(e[0],e[1],r)&&(t=1);++n=XW&&(o=Xa,a=!1,e=new tl(e));e:for(;++r=120&&d.length>=120)?new tl(a&&d):void 0}d=i[0];var p=-1,h=s[0];e:for(;++p1),o}),yo(i,ku(i),n),t&&(n=Ou(n,vQ|yQ|CQ,kR));for(var r=e.length;r--;)DR(n,e[r]);return n}),Sw=xQ;function wQ(i,e,n,t){if(!ui(i))return i;e=wo(e,i);for(var r=-1,o=e.length,a=o-1,s=i;s!=null&&++r=MQ){var c=e?null:OR(i);if(c)return Au(c);a=!1,r=Xa,l=new tl}else l=e?[]:s;e:for(;++t{let e=class e extends da{constructor(t,r,o,a,s,l,c,d){super(),this._elementRef=t,this._focusTrapFactory=r,this._config=a,this._interactivityChecker=s,this._ngZone=l,this._overlayRef=c,this._focusMonitor=d,this._platform=x(Le),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=x(Se),this._injector=x(ze),this._isDestroyed=!1,this.attachDomPortal=p=>{this._portalOutlet.hasAttached();let h=this._portalOutlet.attachDomPortal(p);return this._contentAttached(),h},this._document=o,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(t){this._ariaLabelledByQueue.push(t),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(t){let r=this._ariaLabelledByQueue.indexOf(t);r>-1&&(this._ariaLabelledByQueue.splice(r,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(t){this._portalOutlet.hasAttached();let r=this._portalOutlet.attachComponentPortal(t);return this._contentAttached(),r}attachTemplatePortal(t){this._portalOutlet.hasAttached();let r=this._portalOutlet.attachTemplatePortal(t);return this._contentAttached(),r}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(t,r){this._interactivityChecker.isFocusable(t)||(t.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{t.removeEventListener("blur",o),t.removeEventListener("mousedown",o),t.removeAttribute("tabindex")};t.addEventListener("blur",o),t.addEventListener("mousedown",o)})),t.focus(r)}_focusByCssSelector(t,r){let o=this._elementRef.nativeElement.querySelector(t);o&&this._forceFocus(o,r)}_trapFocus(){this._isDestroyed||si(()=>{let t=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||t.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 t=this._config.restoreFocus,r=null;if(typeof t=="string"?r=this._document.querySelector(t):typeof t=="boolean"?r=t?this._elementFocusedBeforeDialogWasOpened:null:t&&(r=t),this._config.restoreFocus&&r&&typeof r.focus=="function"){let o=ca(),a=this._elementRef.nativeElement;(!o||o===this._document.body||o===a||a.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(r,this._closeInteractionType),this._closeInteractionType=null):r.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){let t=this._elementRef.nativeElement,r=ca();return t===r||t.contains(r)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=ca()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}};e.\u0275fac=function(r){return new(r||e)(b(J),b(pc),b(pe,8),b(Mc),b(Ps),b(de),b(Ga),b(wi))},e.\u0275cmp=F({type:e,selectors:[["cdk-dialog-container"]],viewQuery:function(r,o){if(r&1&&ve(Ii,7),r&2){let a;K(a=Y())&&(o._portalOutlet=a.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(r,o){r&2&&ne("id",o._config.id||null)("role",o._config.role)("aria-modal",o._config.ariaModal)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null)},standalone:!0,features:[X,P],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(r,o){r&1&&M(0,RQ,0,0,"ng-template",0)},dependencies:[Ii],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2});let i=e;return i})(),fh=class{constructor(e,n){this.overlayRef=e,this.config=n,this.closed=new q,this.disableClose=n.disableClose,this.backdropClick=e.backdropClick(),this.keydownEvents=e.keydownEvents(),this.outsidePointerEvents=e.outsidePointerEvents(),this.id=n.id,this.keydownEvents.subscribe(t=>{t.keyCode===27&&!this.disableClose&&!Dt(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=e.detachments().subscribe(()=>{n.closeOnOverlayDetachments!==!1&&this.close()})}close(e,n){if(this.containerInstance){let t=this.closed;this.containerInstance._closeInteractionType=n?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),t.next(e),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(e="",n=""){return this.overlayRef.updateSize({width:e,height:n}),this}addPanelClass(e){return this.overlayRef.addPanelClass(e),this}removePanelClass(e){return this.overlayRef.removePanelClass(e),this}},NQ=new H("DialogScrollStrategy",{providedIn:"root",factory:()=>{let i=x(yt);return()=>i.scrollStrategies.block()}}),FQ=new H("DialogData"),PQ=new H("DefaultDialogConfig");var LQ=0,Iw=(()=>{let e=class e{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(t,r,o,a,s,l){this._overlay=t,this._injector=r,this._defaultOptions=o,this._parentDialog=a,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new q,this._afterOpenedAtThisLevel=new q,this._ariaHiddenElements=new Map,this.afterAllClosed=Ao(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Ye(void 0))),this._scrollStrategy=l}open(t,r){let o=this._defaultOptions||new Mc;r=N(N({},o),r),r.id=r.id||`cdk-dialog-${LQ++}`,r.id&&this.getDialogById(r.id);let a=this._getOverlayConfig(r),s=this._overlay.create(a),l=new fh(s,r),c=this._attachContainer(s,l,r);return l.containerInstance=c,this._attachDialogContent(t,l,c,r),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(l),l.closed.subscribe(()=>this._removeOpenDialog(l,!0)),this.afterOpened.next(l),l}closeAll(){Dw(this.openDialogs,t=>t.close())}getDialogById(t){return this.openDialogs.find(r=>r.id===t)}ngOnDestroy(){Dw(this._openDialogsAtThisLevel,t=>{t.config.closeOnDestroy===!1&&this._removeOpenDialog(t,!1)}),Dw(this._openDialogsAtThisLevel,t=>t.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(t){let r=new An({positionStrategy:t.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,width:t.width,height:t.height,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(r.backdropClass=t.backdropClass),r}_attachContainer(t,r,o){let a=o.injector||o.viewContainerRef?.injector,s=[{provide:Mc,useValue:o},{provide:fh,useValue:r},{provide:Ga,useValue:t}],l;o.container?typeof o.container=="function"?l=o.container:(l=o.container.type,s.push(...o.container.providers(o))):l=kw;let c=new on(l,o.viewContainerRef,ze.create({parent:a||this._injector,providers:s}),o.componentFactoryResolver);return t.attach(c).instance}_attachDialogContent(t,r,o,a){if(t instanceof ft){let s=this._createInjector(a,r,o,void 0),l={$implicit:a.data,dialogRef:r};a.templateContext&&(l=N(N({},l),typeof a.templateContext=="function"?a.templateContext():a.templateContext)),o.attachTemplatePortal(new Vi(t,null,l,s))}else{let s=this._createInjector(a,r,o,this._injector),l=o.attachComponentPortal(new on(t,a.viewContainerRef,s,a.componentFactoryResolver));r.componentRef=l,r.componentInstance=l.instance}}_createInjector(t,r,o,a){let s=t.injector||t.viewContainerRef?.injector,l=[{provide:FQ,useValue:t.data},{provide:fh,useValue:r}];return t.providers&&(typeof t.providers=="function"?l.push(...t.providers(r,t,o)):l.push(...t.providers)),t.direction&&(!s||!s.get(vt,null,{optional:!0}))&&l.push({provide:vt,useValue:{value:t.direction,change:U()}}),ze.create({parent:s||a,providers:l})}_removeOpenDialog(t,r){let o=this.openDialogs.indexOf(t);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((a,s)=>{a?s.setAttribute("aria-hidden",a):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),r&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){let t=this._overlayContainer.getContainerElement();if(t.parentElement){let r=t.parentElement.children;for(let o=r.length-1;o>-1;o--){let a=r[o];a!==t&&a.nodeName!=="SCRIPT"&&a.nodeName!=="STYLE"&&!a.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(a,a.getAttribute("aria-hidden")),a.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}};e.\u0275fac=function(r){return new(r||e)(G(yt),G(ze),G(PQ,8),G(e,12),G(qd),G(NQ))},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function Dw(i,e){let n=i.length;for(;n--;)e(i[n])}var RR=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({providers:[Iw],imports:[Rn,ir,Bd,ir]});let i=e;return i})();function VQ(i,e){}var gh=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}},Mw="mdc-dialog--open",NR="mdc-dialog--opening",FR="mdc-dialog--closing",jQ=150,BQ=75,zQ=(()=>{let e=class e extends kw{constructor(t,r,o,a,s,l,c,d,p){super(t,r,o,a,s,l,c,p),this._animationMode=d,this._animationStateChanged=new $,this._animationsEnabled=this._animationMode!=="NoopAnimations",this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?LR(this._config.enterAnimationDuration)??jQ:0,this._exitAnimationDuration=this._animationsEnabled?LR(this._config.exitAnimationDuration)??BQ: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(PR,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(NR,Mw)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(Mw),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(Mw),this._animationsEnabled?(this._hostElement.style.setProperty(PR,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(FR)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(t){this._actionSectionCount+=t,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(NR,FR)}_waitForAnimationToComplete(t,r){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(r,t)}_requestAnimationFrame(t){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(t):t()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(t){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(t){let r=super.attachComponentPortal(t);return r.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),r}};e.\u0275fac=function(r){return new(r||e)(b(J),b(pc),b(pe,8),b(gh),b(Ps),b(de),b(Ga),b(gt,8),b(wi))},e.\u0275cmp=F({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(r,o){r&2&&(Ci("id",o._config.id),ne("aria-modal",o._config.ariaModal)("role",o._config.role)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null),se("_mat-animation-noopable",!o._animationsEnabled)("mat-mdc-dialog-container-with-actions",o._actionSectionCount>0))},standalone:!0,features:[X,P],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(r,o){r&1&&(u(0,"div",0)(1,"div",1),M(2,VQ,0,0,"ng-template",2),m()())},dependencies:[Ii],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});let i=e;return i})(),PR="--mat-dialog-transition-duration";function LR(i){return i==null?null:typeof i=="number"?i:i.endsWith("ms")?In(i.substring(0,i.length-2)):i.endsWith("s")?In(i.substring(0,i.length-1))*1e3:i==="0"?0:null}var ab=function(i){return i[i.OPEN=0]="OPEN",i[i.CLOSING=1]="CLOSING",i[i.CLOSED=2]="CLOSED",i}(ab||{}),or=class{constructor(e,n,t){this._ref=e,this._containerInstance=t,this._afterOpened=new q,this._beforeClosed=new q,this._state=ab.OPEN,this.disableClose=n.disableClose,this.id=e.id,e.addPanelClass("mat-mdc-dialog-panel"),t._animationStateChanged.pipe(Re(r=>r.state==="opened"),pt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe(Re(r=>r.state==="closed"),pt(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),e.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Ge(this.backdropClick(),this.keydownEvents().pipe(Re(r=>r.keyCode===27&&!this.disableClose&&!Dt(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),VR(this,r.type==="keydown"?"keyboard":"mouse"))})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(Re(n=>n.state==="closing"),pt(1)).subscribe(n=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),n.totalTime+100)}),this._state=ab.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(e){let n=this._ref.config.positionStrategy;return e&&(e.left||e.right)?e.left?n.left(e.left):n.right(e.right):n.centerHorizontally(),e&&(e.top||e.bottom)?e.top?n.top(e.top):n.bottom(e.bottom):n.centerVertically(),this._ref.updatePosition(),this}updateSize(e="",n=""){return this._ref.updateSize(e,n),this}addPanelClass(e){return this._ref.addPanelClass(e),this}removePanelClass(e){return this._ref.removePanelClass(e),this}getState(){return this._state}_finishDialogClose(){this._state=ab.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function VR(i,e,n){return i._closeInteractionType=e,i.close(n)}var ar=new H("MatMdcDialogData"),HQ=new H("mat-mdc-dialog-default-options"),UQ=new H("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let i=x(yt);return()=>i.scrollStrategies.block()}});var $Q=0,Xr=(()=>{let e=class e{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(t,r,o,a,s,l,c,d){this._overlay=t,this._defaultOptions=a,this._scrollStrategy=s,this._parentDialog=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new q,this._afterOpenedAtThisLevel=new q,this.dialogConfigClass=gh,this.afterAllClosed=Ao(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Ye(void 0))),this._dialog=r.get(Iw),this._dialogRefConstructor=or,this._dialogContainerType=zQ,this._dialogDataToken=ar}open(t,r){let o;r=N(N({},this._defaultOptions||new gh),r),r.id=r.id||`mat-mdc-dialog-${$Q++}`,r.scrollStrategy=r.scrollStrategy||this._scrollStrategy();let a=this._dialog.open(t,ce(N({},r),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:r},{provide:Mc,useValue:r}]},templateContext:()=>({dialogRef:o}),providers:(s,l,c)=>(o=new this._dialogRefConstructor(s,r,c),o.updatePosition(r?.position),[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:l.data},{provide:this._dialogRefConstructor,useValue:o}])}));return o.componentRef=a.componentRef,o.componentInstance=a.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{let s=this.openDialogs.indexOf(o);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(r=>r.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(t){let r=t.length;for(;r--;)t[r].close()}};e.\u0275fac=function(r){return new(r||e)(G(yt),G(ze),G(Is,8),G(HQ,8),G(UQ),G(e,12),G(qd),G(gt,8))},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),GQ=0,Dr=(()=>{let e=class e{constructor(t,r,o){this.dialogRef=t,this._elementRef=r,this._dialog=o,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=BR(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){let r=t._matDialogClose||t._matDialogCloseResult;r&&(this.dialogResult=r.currentValue)}_onButtonClick(t){VR(this.dialogRef,t.screenX===0&&t.screenY===0?"keyboard":"mouse",this.dialogResult)}};e.\u0275fac=function(r){return new(r||e)(b(or,8),b(J),b(Xr))},e.\u0275dir=B({type:e,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(r,o){r&1&&w("click",function(s){return o._onButtonClick(s)}),r&2&&ne("aria-label",o.ariaLabel||null)("type",o.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[Ne]});let i=e;return i})(),jR=(()=>{let e=class e{constructor(t,r,o){this._dialogRef=t,this._elementRef=r,this._dialog=o}ngOnInit(){this._dialogRef||(this._dialogRef=BR(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}};e.\u0275fac=function(r){return new(r||e)(b(or,8),b(J),b(Xr))},e.\u0275dir=B({type:e,standalone:!0});let i=e;return i})(),kr=(()=>{let e=class e extends jR{constructor(){super(...arguments),this.id=`mat-mdc-dialog-title-${GQ++}`}_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275dir=B({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(r,o){r&2&&Ci("id",o.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],standalone:!0,features:[X]});let i=e;return i})(),Ir=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=B({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],standalone:!0,features:[pD([Po])]});let i=e;return i})(),Mr=(()=>{let e=class e extends jR{_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275dir=B({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(r,o){r&2&&se("mat-mdc-dialog-actions-align-start",o.align==="start")("mat-mdc-dialog-actions-align-center",o.align==="center")("mat-mdc-dialog-actions-align-end",o.align==="end")},inputs:{align:"align"},standalone:!0,features:[X]});let i=e;return i})();function BR(i,e){let n=i.nativeElement.parentElement;for(;n&&!n.classList.contains("mat-mdc-dialog-container");)n=n.parentElement;return n?e.find(t=>t.id===n.id):null}var Nn=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({providers:[Xr],imports:[RR,Rn,ir,De,De]});let i=e;return i})();function qQ(i,e){if(i&1){let n=z();u(0,"div",1)(1,"button",2),w("click",function(){A(n);let r=C();return R(r.action())}),y(2),m()()}if(i&2){let n=C();f(2),ue(" ",n.data.action," ")}}var WQ=["label"];function QQ(i,e){}var KQ=Math.pow(2,31)-1,_h=class{constructor(e,n){this._overlayRef=n,this._afterDismissed=new q,this._afterOpened=new q,this._onAction=new q,this._dismissedByAction=!1,this.containerInstance=e,e._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(e){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(e,KQ))}_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}},zR=new H("MatSnackBarData"),Pu=class{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}},YQ=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=B({type:e,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"],standalone:!0});let i=e;return i})(),XQ=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=B({type:e,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"],standalone:!0});let i=e;return i})(),JQ=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=B({type:e,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"],standalone:!0});let i=e;return i})(),HR=(()=>{let e=class e{constructor(t,r){this.snackBarRef=t,this.data=r}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}};e.\u0275fac=function(r){return new(r||e)(b(_h),b(zR))},e.\u0275cmp=F({type:e,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],standalone:!0,features:[P],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(r,o){r&1&&(u(0,"div",0),y(1),m(),M(2,qQ,3,1,"div",1)),r&2&&(f(),ue(" ",o.data.message,` +`),f(),k(o.hasAction?2:-1))},dependencies:[Ze,YQ,XQ,JQ],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0});let i=e;return i})(),ZQ={snackBarState:Vt("state",[dt("void, hidden",Ee({transform:"scale(0.8)",opacity:0})),dt("visible",Ee({transform:"scale(1)",opacity:1})),ot("* => visible",nt("150ms cubic-bezier(0, 0, 0.2, 1)")),ot("* => void, * => hidden",nt("75ms cubic-bezier(0.4, 0.0, 1, 1)",Ee({opacity:0})))])},eK=0,tK=(()=>{let e=class e extends da{constructor(t,r,o,a,s){super(),this._ngZone=t,this._elementRef=r,this._changeDetectorRef=o,this._platform=a,this.snackBarConfig=s,this._document=x(pe),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new q,this._onExit=new q,this._onEnter=new q,this._animationState="void",this._liveElementId=`mat-snack-bar-container-live-${eK++}`,this.attachDomPortal=l=>{this._assertNotAttached();let c=this._portalOutlet.attachDomPortal(l);return this._afterPortalAttached(),c},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(t){this._assertNotAttached();let r=this._portalOutlet.attachComponentPortal(t);return this._afterPortalAttached(),r}attachTemplatePortal(t){this._assertNotAttached();let r=this._portalOutlet.attachTemplatePortal(t);return this._afterPortalAttached(),r}onAnimationEnd(t){let{fromState:r,toState:o}=t;if((o==="void"&&r!=="void"||o==="hidden")&&this._completeExit(),o==="visible"){let a=this._onEnter;this._ngZone.run(()=>{a.next(),a.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 t=this._elementRef.nativeElement,r=this.snackBarConfig.panelClass;r&&(Array.isArray(r)?r.forEach(s=>t.classList.add(s)):t.classList.add(r)),this._exposeToModals();let o=this._label.nativeElement,a="mdc-snackbar__label";o.classList.toggle(a,!o.querySelector(`.${a}`))}_exposeToModals(){let t=this._liveElementId,r=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{let r=t.getAttribute("aria-owns");if(r){let o=r.replace(this._liveElementId,"").trim();o.length>0?t.setAttribute("aria-owns",o):t.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{let t=this._elementRef.nativeElement.querySelector("[aria-hidden]"),r=this._elementRef.nativeElement.querySelector("[aria-live]");if(t&&r){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&t.contains(document.activeElement)&&(o=document.activeElement),t.removeAttribute("aria-hidden"),r.appendChild(t),o?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}};e.\u0275fac=function(r){return new(r||e)(b(de),b(J),b(Se),b(Le),b(Pu))},e.\u0275cmp=F({type:e,selectors:[["mat-snack-bar-container"]],viewQuery:function(r,o){if(r&1&&(ve(Ii,7),ve(WQ,7)),r&2){let a;K(a=Y())&&(o._portalOutlet=a.first),K(a=Y())&&(o._label=a.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:1,hostBindings:function(r,o){r&1&&Id("@state.done",function(s){return o.onAnimationEnd(s)}),r&2&&kd("@state",o._animationState)},standalone:!0,features:[X,P],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(r,o){r&1&&(u(0,"div",1)(1,"div",2,0)(3,"div",3),M(4,QQ,0,0,"ng-template",4),m(),T(5,"div"),m()()),r&2&&(f(5),ne("aria-live",o._live)("role",o._role)("id",o._liveElementId))},dependencies:[Ii],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){color:var(--mat-snack-bar-button-color, var(--mat-app-inverse-primary));--mat-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}"],encapsulation:2,data:{animation:[ZQ.snackBarState]}});let i=e;return i})();function iK(){return new Pu}var nK=new H("mat-snack-bar-default-options",{providedIn:"root",factory:iK}),bh=(()=>{let e=class e{get _openedSnackBarRef(){let t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}constructor(t,r,o,a,s,l){this._overlay=t,this._live=r,this._injector=o,this._breakpointObserver=a,this._parentSnackBar=s,this._defaultConfig=l,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=HR,this.snackBarContainerComponent=tK,this.handsetCssClass="mat-mdc-snack-bar-handset"}openFromComponent(t,r){return this._attach(t,r)}openFromTemplate(t,r){return this._attach(t,r)}open(t,r="",o){let a=N(N({},this._defaultConfig),o);return a.data={message:t,action:r},a.announcementMessage===t&&(a.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,a)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(t,r){let o=r&&r.viewContainerRef&&r.viewContainerRef.injector,a=ze.create({parent:o||this._injector,providers:[{provide:Pu,useValue:r}]}),s=new on(this.snackBarContainerComponent,r.viewContainerRef,a),l=t.attach(s);return l.instance.snackBarConfig=r,l.instance}_attach(t,r){let o=N(N(N({},new Pu),this._defaultConfig),r),a=this._createOverlay(o),s=this._attachSnackBarContainer(a,o),l=new _h(s,a);if(t instanceof ft){let c=new Vi(t,null,{$implicit:o.data,snackBarRef:l});l.instance=s.attachTemplatePortal(c)}else{let c=this._createInjector(o,l),d=new on(t,void 0,c),p=s.attachComponentPortal(d);l.instance=p.instance}return this._breakpointObserver.observe($r.HandsetPortrait).pipe(ye(a.detachments())).subscribe(c=>{a.overlayElement.classList.toggle(this.handsetCssClass,c.matches)}),o.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(l,o),this._openedSnackBarRef=l,this._openedSnackBarRef}_animateSnackBar(t,r){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),r.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),r.duration&&r.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(r.duration))}_createOverlay(t){let r=new An;r.direction=t.direction;let o=this._overlay.position().global(),a=t.direction==="rtl",s=t.horizontalPosition==="left"||t.horizontalPosition==="start"&&!a||t.horizontalPosition==="end"&&a,l=!s&&t.horizontalPosition!=="center";return s?o.left("0"):l?o.right("0"):o.centerHorizontally(),t.verticalPosition==="top"?o.top("0"):o.bottom("0"),r.positionStrategy=o,this._overlay.create(r)}_createInjector(t,r){let o=t&&t.viewContainerRef&&t.viewContainerRef.injector;return ze.create({parent:o||this._injector,providers:[{provide:_h,useValue:r},{provide:zR,useValue:t.data}]})}};e.\u0275fac=function(r){return new(r||e)(G(yt),G(Og),G(ze),G(vr),G(e,12),G(nK))},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var UR=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({providers:[bh],imports:[Rn,ir,we,De,HR,De]});let i=e;return i})();var sb=class i{data=x(ar);static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["ng-component"]],standalone:!0,features:[P],decls:10,vars:6,consts:[["mat-dialog-title",""],[1,"mat-body"],["align","end"],["mat-button","",3,"mat-dialog-close"],["mat-stroked-button","","cdkFocusInitial","",3,"mat-dialog-close"]],template:function(n,t){n&1&&(u(0,"h2",0),y(1),m(),u(2,"mat-dialog-content")(3,"p",1),y(4),m()(),u(5,"mat-dialog-actions",2)(6,"button",3),y(7),m(),u(8,"button",4),y(9),m()()),n&2&&(f(),ge(t.data.title),f(3),ge(t.data.message),f(2),v("mat-dialog-close",!1),f(),ge(t.data.cancelText),f(),v("mat-dialog-close",!0),f(),ge(t.data.confirmText))},dependencies:[Nn,Dr,kr,Mr,Ir,we,Ze],styles:["mat-dialog-content[_ngcontent-%COMP%]{max-width:40em}"]})};var _a=class i{dialog=x(Xr);snackBar=x(bh);info(e,n=2500){return this.snackBar.open(e,void 0,{duration:n===null?void 0:n,verticalPosition:"top",horizontalPosition:"end"})}error(e,n=2500,t){return this.snackBar.open(e,t,{duration:n===null?void 0:n,panelClass:["snackbar-error"],verticalPosition:"top",horizontalPosition:"end"})}confirm(e,n,t,r=$localize`Annuler`){return this.dialog.open(sb,{data:{title:e,message:n,confirmText:t,cancelText:r}}).afterClosed()}static \u0275fac=function(n){return new(n||i)};static \u0275prov=W({token:i,factory:i.\u0275fac,providedIn:"root"})};function ht(i){i||(JT(ht),i=x(_i));let e=new Ct(n=>i.onDestroy(n.next.bind(n)));return n=>n.pipe(ye(e))}var rl=class i{destroyRef=x(_i);data={};isFrontPanel=!1;isPanel=!1;panelData;panelService;clickPanel(){!this.isFrontPanel&&this.panelService&&this.panelService.goToPanelByComponent(this)}initPanel(e){this.panelData=e,this.isPanel=!0,this.panelData?.data&&(this.panelData.data.model instanceof Ct?this.panelData.data.model.pipe(ht(this.destroyRef)).subscribe(n=>{this.data=ce(N(N({},this.data),this.panelData?.data),{model:n})}):this.data=N(N({},this.data),this.panelData.data))}static \u0275fac=function(n){return new(n||i)};static \u0275dir=B({type:i,hostVars:4,hostBindings:function(n,t){n&1&&w("click",function(){return t.clickPanel()}),n&2&&se("isFrontPanel",t.isFrontPanel)("isPanel",t.isPanel)},standalone:!0})};function Ow(i){if(!i)return null;let e=i.getFullYear(),n=i.getMonth()+1,t=i.getDate();return e+"-"+(n<10?"0":"")+n+"-"+(t<10?"0":"")+t}function GR(i){let e={};return Object.keys(i).forEach(n=>{let t=i[n];t==null||($R(t)?t=t.id:Array.isArray(t)?t=t.map(r=>$R(r)?r.id:r):typeof t=="object"&&!(t instanceof File)&&!(t instanceof Date)&&(t=Ew(t,(r,o)=>o!=="__typename"))),e[n]=t}),e}function $R(i){return!!i&&typeof i=="object"&&"id"in i&&!!i.id}function qR(i){return/[aeiou]y$/.exec(i)?i+"s":(i+"s").replace(/ys$/,"ies").replace(/ss$/,"ses").replace(/xs$/,"xes")}function ba(i){return i.charAt(0).toUpperCase()+i.slice(1)}function WR(i,e){!i||!e||(Object.keys(i).forEach(n=>{delete i[n]}),Object.keys(e).forEach(n=>{i[n]=e[n]}))}function QR(i){let e=/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/.exec(i);return e?"#"+[e[1],e[2],e[3]].map(n=>parseInt(n).toString(16).toUpperCase().padStart(2,"0")).join(""):i}function KR(i,e){if(Array.isArray(e))return e}function Lu(i){return Object.values(i).forEach(e=>Object.isFrozen(e)||Lu(e)),Object.freeze(i)}function YR(i){if(!i||typeof i!="object"||Array.isArray(i))return null;let e={};return"offset"in i&&(i.offset===null||typeof i.offset=="number")&&(e.offset=i.offset),"pageIndex"in i&&(i.pageIndex===null||typeof i.pageIndex=="number")&&(e.pageIndex=i.pageIndex),"pageSize"in i&&(i.pageSize===null||typeof i.pageSize=="number")&&(e.pageSize=i.pageSize),e}function XR(i){if(!Array.isArray(i))return null;let e=[];return i.forEach(n=>{let t=rK(n);t&&e.push(t)}),e}function rK(i){if(!i||typeof i!="object"||!("field"in i))return null;let e={field:i.field};return"order"in i&&(i.order==="ASC"||i.order==="DESC"||i.order===null)&&(e.order=i.order),"nullAsHighest"in i&&(i.nullAsHighest===null||typeof i.nullAsHighest=="boolean")&&(e.nullAsHighest=i.nullAsHighest),"emptyStringAsHighest"in i&&(i.emptyStringAsHighest===null||typeof i.emptyStringAsHighest=="boolean")&&(e.emptyStringAsHighest=i.emptyStringAsHighest),e}function JR(i){return typeof i!="string"?null:i.split(",").filter(e=>e)}function Aw(i){let e=Uo(i).map(t=>(t.groupLogic||(t.groupLogic="AND"),t));return Tw(Object.keys(yw(e.slice(1),"groupLogic"))).length>1}function Rw(i,e){if(Array.isArray(e))return i?i.concat(e):e}var zi=class{variables=new Be(void 0);channels=new Map;constructor(e){e&&(this.channels=e.getChannelsCopy(),this.updateVariables())}set(e,n){n?this.channels.set(e,Uo(n)):this.channels.delete(e),this.updateVariables()}get(e){return Uo(this.channels.get(e))}merge(e,n){let t=this.channels.get(e);t?(nl(t,Uo(n),KR),this.updateVariables()):this.set(e,n)}defaults(e,n){let t=this.channels.get(e);t?(vw(t,n),this.updateVariables()):this.set(e,n)}getChannelsCopy(){return new Map(this.channels)}updateVariables(){let e={};this.channels.forEach(n=>{if(n.filter){let t=this.mergeGroupList(e.filter?.groups?e.filter.groups:[],n.filter.groups||[]);t?.length?e.filter?e.filter.groups=t:e.filter={groups:t}:nl(e,{filter:n.filter},Rw)}nl(e,Sw(n,"filter"),Rw)}),this.variables.next(e)}mergeGroupList(e,n){if(e.length===0&&n.length===0)return[];if(e.length===0&&n.length>0)return n;if(n.length===0&&e.length>0)return e;let t=[];if(Aw(e)||Aw(n))throw Error("QueryVariables groups contain mixed group logics");return e.forEach(r=>{n.forEach(o=>{t.push(nl(Uo(r),o,Rw))})}),t}};function ol(i){let e=null;return(i instanceof Pt||i instanceof Yd)&&(e=Object.entries(i.controls).reduce((n,[t,r])=>{let o=ol(r);return o&&(n=ce(N({},n),{[t]:o})),n},null)),e||(e=i.errors),e}function $o(i){if(i.markAsDirty({onlySelf:!0}),i.markAsTouched({onlySelf:!0}),i instanceof Pt||i instanceof Yd)for(let[,e]of Object.entries(i.controls))$o(e)}function oK(i){return i==="VALID"}function va(i){return(i.pending?i.statusChanges.pipe(Ji()):U(i.status)).pipe(Re(oK))}var MIe=tt.pattern(/^https?:\/\/(?:[^.\s]+\.)+[^.\s]+$/);function Nw(i){let e=new RegExp(`^-?\\d+(\\.\\d{0,${i}})?$`);return n=>n.value===null||n.value===void 0||n.value===""||(""+n.value).match(e)?null:{decimal:i}}var OIe=Nw(2);var lb=class{original={};diff={};initialize(e){this.original=Uo(e),this.diff={}}differences(e){return Object.keys(e).forEach(n=>{let t=e[n];(n in this.diff||t!==void 0&&(!(n in this.original)||!Eo(this.original[n],t)))&&(this.diff[n]=t)}),Object.keys(this.diff).length?this.diff:null}commit(e){this.original=N(N({},this.original),Uo(e)),Object.keys(e).forEach(n=>{n in this.diff&&Eo(this.diff[n],e[n])&&delete this.diff[n]})}};function aK(i){return!!i&&typeof i=="object"&&"activatedRoute"in i&&i.activatedRoute instanceof Si}var Vu=class i extends rl{constructor(n,t){super();this.key=n;this.service=t;this.data={model:this.service.getDefaultForServer()}}data;form=new Xd({});showFabButton=!0;alertService=x(_a);router=x(Mi);route=x(Si);_dialogData=x(ar,{optional:!0});_isUpdatePage=!1;changes=new lb;ngOnInit(){if(this.isPanel)this.initForm();else{let n=aK(this._dialogData)?this._dialogData.activatedRoute:this.route;this.#e(n)}}changeTab(n){this.showFabButton=n===0}#e(n){let t=-1;n.data.pipe(qe(r=>{if(!(r.model instanceof Ct))throw new Error("Resolved data must include the key `model`, and it must be an observable (usually one from Apollo).");return r.model.pipe(lt(o=>{this.data=ce(N({},r),{model:o}),t!==o.id&&(t=o.id,this.initForm())}))}),ht(this.destroyRef)).subscribe()}isUpdatePage(){return this._isUpdatePage}update(n=!1,t=!1){this.isUpdatePage()&&($o(this.form),va(this.form).subscribe(()=>{let r=this.form.getRawValue();t&&this.changes.initialize({});let o=N({id:this.data.model.id},this.changes.differences(r));(n?this.service.updateNow(o):this.service.update(o)).subscribe(s=>{this.changes.commit(r),this.alertService.info($localize`Mis à jour`),this.postUpdate(s)})}))}create(n=!0){if($o(this.form),!this.form.valid)return;let t=this.form.getRawValue();this.form.disable(),this.service.create(t).pipe(qe(r=>(this.alertService.info($localize`Créé`),this.postCreate(r).pipe(UT(r),tg()))),qe(r=>{if(n)if(this.isPanel){let o=this.router.url,a=this.panelData?.config.params.nextRoute,s=o.replace("/new","/"+r.id)+(a?"/"+a:"");return this.router.navigateByUrl(s)}else{let o=this.route.snapshot.queryParams;return this.router.navigate(["..",r.id],{relativeTo:this.route,queryParams:o})}return Ht}),Xi(()=>this.form.enable())).subscribe()}delete(n,t){this.form.disable(),(t??this.alertService.confirm($localize`Suppression`,$localize`Voulez-vous supprimer définitivement cet élément ?`,$localize`Supprimer définitivement`)).pipe(qe(r=>!r||!this.isUpdatePage()?Ht:(this.preDelete(this.data.model),this.service.delete([this.data.model]).pipe(qe(()=>{if(this.alertService.info($localize`Supprimé`),this.isPanel)return this.panelService?.goToPenultimatePanel(),Ht;{let o=["../../"+ww(this.key)];return this.router.navigate(n||o,{relativeTo:this.route})}})))),Xi(()=>this.form.enable())).subscribe()}postUpdate(n){}postCreate(n){return Ht}preDelete(n){}initForm(){this._isUpdatePage=!!this.data.model.id,this.form=this.service.getFormGroup(this.data.model),this.changes.initialize(this.form.getRawValue())}static \u0275fac=function(t){kn()};static \u0275dir=B({type:i,standalone:!0,features:[X]})};var lK=[[["caption"]],[["colgroup"],["col"]],"*"],cK=["caption","colgroup, col","*"];function dK(i,e){i&1&&ae(0,2)}function uK(i,e){i&1&&(u(0,"thead",0),yi(1,1),m(),u(2,"tbody",0),yi(3,2)(4,3),m(),u(5,"tfoot",0),yi(6,4),m())}function pK(i,e){i&1&&yi(0,1)(1,2)(2,3)(3,4)}var Go=new H("CDK_TABLE");var mb=(()=>{let e=class e{constructor(t){this.template=t}};e.\u0275fac=function(r){return new(r||e)(b(ft))},e.\u0275dir=B({type:e,selectors:[["","cdkCellDef",""]],standalone:!0});let i=e;return i})(),hb=(()=>{let e=class e{constructor(t){this.template=t}};e.\u0275fac=function(r){return new(r||e)(b(ft))},e.\u0275dir=B({type:e,selectors:[["","cdkHeaderCellDef",""]],standalone:!0});let i=e;return i})(),fb=(()=>{let e=class e{constructor(t){this.template=t}};e.\u0275fac=function(r){return new(r||e)(b(ft))},e.\u0275dir=B({type:e,selectors:[["","cdkFooterCellDef",""]],standalone:!0});let i=e;return i})(),Rc=(()=>{let e=class e{get name(){return this._name}set name(t){this._setNameInput(t)}get sticky(){return this._sticky}set sticky(t){t!==this._sticky&&(this._sticky=t,this._hasStickyChanged=!0)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){t!==this._stickyEnd&&(this._stickyEnd=t,this._hasStickyChanged=!0)}constructor(t){this._table=t,this._hasStickyChanged=!1,this._sticky=!1,this._stickyEnd=!1}hasStickyChanged(){let t=this._hasStickyChanged;return this.resetStickyChanged(),t}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}};e.\u0275fac=function(r){return new(r||e)(b(Go,8))},e.\u0275dir=B({type:e,selectors:[["","cdkColumnDef",""]],contentQueries:function(r,o,a){if(r&1&&(Ie(a,mb,5),Ie(a,hb,5),Ie(a,fb,5)),r&2){let s;K(s=Y())&&(o.cell=s.first),K(s=Y())&&(o.headerCell=s.first),K(s=Y())&&(o.footerCell=s.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",ee],stickyEnd:[2,"stickyEnd","stickyEnd",ee]},standalone:!0,features:[me([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),xe]});let i=e;return i})(),vh=class{constructor(e,n){n.nativeElement.classList.add(...e._columnCssClassName)}},tN=(()=>{let e=class e extends vh{constructor(t,r){super(t,r)}};e.\u0275fac=function(r){return new(r||e)(b(Rc),b(J))},e.\u0275dir=B({type:e,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],standalone:!0,features:[X]});let i=e;return i})(),iN=(()=>{let e=class e extends vh{constructor(t,r){super(t,r);let o=t._table?._getCellRole();o&&r.nativeElement.setAttribute("role",o)}};e.\u0275fac=function(r){return new(r||e)(b(Rc),b(J))},e.\u0275dir=B({type:e,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],standalone:!0,features:[X]});let i=e;return i})(),nN=(()=>{let e=class e extends vh{constructor(t,r){super(t,r);let o=t._table?._getCellRole();o&&r.nativeElement.setAttribute("role",o)}};e.\u0275fac=function(r){return new(r||e)(b(Rc),b(J))},e.\u0275dir=B({type:e,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],standalone:!0,features:[X]});let i=e;return i})(),db=class{constructor(){this.tasks=[],this.endTasks=[]}},ub=new H("_COALESCED_STYLE_SCHEDULER"),Pw=(()=>{let e=class e{constructor(t){this._currentSchedule=null,this._ngZone=x(de)}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new db,this._ngZone.runOutsideAngular(()=>queueMicrotask(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){let t=this._currentSchedule;this._currentSchedule=new db;for(let r of t.tasks)r();for(let r of t.endTasks)r()}this._currentSchedule=null})))}};e.\u0275fac=function(r){return new(r||e)(G(de))},e.\u0275prov=W({token:e,factory:e.\u0275fac});let i=e;return i})();var Lw=(()=>{let e=class e{constructor(t,r){this.template=t,this._differs=r}ngOnChanges(t){if(!this._columnsDiffer){let r=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(r).create(),this._columnsDiffer.diff(r)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof yh?t.headerCell.template:this instanceof Vw?t.footerCell.template:t.cell.template}};e.\u0275fac=function(r){return new(r||e)(b(ft),b(aa))},e.\u0275dir=B({type:e,features:[Ne]});let i=e;return i})(),yh=(()=>{let e=class e extends Lw{get sticky(){return this._sticky}set sticky(t){t!==this._sticky&&(this._sticky=t,this._hasStickyChanged=!0)}constructor(t,r,o){super(t,r),this._table=o,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(t){super.ngOnChanges(t)}hasStickyChanged(){let t=this._hasStickyChanged;return this.resetStickyChanged(),t}resetStickyChanged(){this._hasStickyChanged=!1}};e.\u0275fac=function(r){return new(r||e)(b(ft),b(aa),b(Go,8))},e.\u0275dir=B({type:e,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",ee]},standalone:!0,features:[xe,X,Ne]});let i=e;return i})(),Vw=(()=>{let e=class e extends Lw{get sticky(){return this._sticky}set sticky(t){t!==this._sticky&&(this._sticky=t,this._hasStickyChanged=!0)}constructor(t,r,o){super(t,r),this._table=o,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(t){super.ngOnChanges(t)}hasStickyChanged(){let t=this._hasStickyChanged;return this.resetStickyChanged(),t}resetStickyChanged(){this._hasStickyChanged=!1}};e.\u0275fac=function(r){return new(r||e)(b(ft),b(aa),b(Go,8))},e.\u0275dir=B({type:e,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",ee]},standalone:!0,features:[xe,X,Ne]});let i=e;return i})(),gb=(()=>{let e=class e extends Lw{constructor(t,r,o){super(t,r),this._table=o}};e.\u0275fac=function(r){return new(r||e)(b(ft),b(aa),b(Go,8))},e.\u0275dir=B({type:e,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},standalone:!0,features:[X]});let i=e;return i})(),Ac=(()=>{let e=class e{constructor(t){this._viewContainer=t,e.mostRecentCellOutlet=this}ngOnDestroy(){e.mostRecentCellOutlet===this&&(e.mostRecentCellOutlet=null)}};e.mostRecentCellOutlet=null,e.\u0275fac=function(r){return new(r||e)(b(Ft))},e.\u0275dir=B({type:e,selectors:[["","cdkCellOutlet",""]],standalone:!0});let i=e;return i})(),jw=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=F({type:e,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],standalone:!0,features:[P],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,o){r&1&&yi(0,0)},dependencies:[Ac],encapsulation:2});let i=e;return i})();var Bw=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=F({type:e,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],standalone:!0,features:[P],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,o){r&1&&yi(0,0)},dependencies:[Ac],encapsulation:2});let i=e;return i})(),rN=(()=>{let e=class e{constructor(t){this.templateRef=t,this._contentClassName="cdk-no-data-row"}};e.\u0275fac=function(r){return new(r||e)(b(ft))},e.\u0275dir=B({type:e,selectors:[["ng-template","cdkNoDataRow",""]],standalone:!0});let i=e;return i})(),ZR=["top","bottom","left","right"],Fw=class{constructor(e,n,t,r,o=!0,a=!0,s){this._isNativeHtmlTable=e,this._stickCellCss=n,this.direction=t,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=a,this._positionListener=s,this._cachedCellWidths=[],this._borderCellCss={top:`${n}-border-elem-top`,bottom:`${n}-border-elem-bottom`,left:`${n}-border-elem-left`,right:`${n}-border-elem-right`}}clearStickyPositioning(e,n){let t=[];for(let r of e)if(r.nodeType===r.ELEMENT_NODE){t.push(r);for(let o=0;o{for(let r of t)this._removeStickyStyle(r,n)})}updateStickyColumns(e,n,t,r=!0){if(!e.length||!this._isBrowser||!(n.some(o=>o)||t.some(o=>o))){this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}));return}this._coalescedStyleScheduler.schedule(()=>{let o=e[0],a=o.children.length,s=this._getCellWidths(o,r),l=this._getStickyStartColumnPositions(s,n),c=this._getStickyEndColumnPositions(s,t),d=n.lastIndexOf(!0),p=t.indexOf(!0),h=this.direction==="rtl",g=h?"right":"left",_=h?"left":"right";for(let S of e)for(let E=0;En[E]?S:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:p===-1?[]:s.slice(p).map((S,E)=>t[E+p]?S:null).reverse()}))})}stickRows(e,n,t){this._isBrowser&&this._coalescedStyleScheduler.schedule(()=>{let r=t==="bottom"?e.slice().reverse():e,o=t==="bottom"?n.slice().reverse():n,a=[],s=[],l=[];for(let d=0,p=0;d{let t=e.querySelector("tfoot");t&&(n.some(r=>!r)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1))})}_removeStickyStyle(e,n){for(let r of n)e.style[r]="",e.classList.remove(this._borderCellCss[r]);ZR.some(r=>n.indexOf(r)===-1&&e.style[r])?e.style.zIndex=this._getCalculatedZIndex(e):(e.style.zIndex="",this._needsPositionStickyOnElement&&(e.style.position=""),e.classList.remove(this._stickCellCss))}_addStickyStyle(e,n,t,r){e.classList.add(this._stickCellCss),r&&e.classList.add(this._borderCellCss[n]),e.style[n]=`${t}px`,e.style.zIndex=this._getCalculatedZIndex(e),this._needsPositionStickyOnElement&&(e.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(e){let n={top:100,bottom:10,left:1,right:1},t=0;for(let r of ZR)e.style[r]&&(t+=n[r]);return t?`${t}`:""}_getCellWidths(e,n=!0){if(!n&&this._cachedCellWidths.length)return this._cachedCellWidths;let t=[],r=e.children;for(let o=0;o0;o--)n[o]&&(t[o]=r,r+=e[o]);return t}};var pb=new H("CDK_SPL");var zw=(()=>{let e=class e{constructor(t,r){this.viewContainer=t,this.elementRef=r;let o=x(Go);o._rowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(r){return new(r||e)(b(Ft),b(J))},e.\u0275dir=B({type:e,selectors:[["","rowOutlet",""]],standalone:!0});let i=e;return i})(),Hw=(()=>{let e=class e{constructor(t,r){this.viewContainer=t,this.elementRef=r;let o=x(Go);o._headerRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(r){return new(r||e)(b(Ft),b(J))},e.\u0275dir=B({type:e,selectors:[["","headerRowOutlet",""]],standalone:!0});let i=e;return i})(),Uw=(()=>{let e=class e{constructor(t,r){this.viewContainer=t,this.elementRef=r;let o=x(Go);o._footerRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(r){return new(r||e)(b(Ft),b(J))},e.\u0275dir=B({type:e,selectors:[["","footerRowOutlet",""]],standalone:!0});let i=e;return i})(),$w=(()=>{let e=class e{constructor(t,r){this.viewContainer=t,this.elementRef=r;let o=x(Go);o._noDataRowOutlet=this,o._outletAssigned()}};e.\u0275fac=function(r){return new(r||e)(b(Ft),b(J))},e.\u0275dir=B({type:e,selectors:[["","noDataRowOutlet",""]],standalone:!0});let i=e;return i})();var Gw=(()=>{let e=class e{_getCellRole(){if(this._cellRoleInternal===void 0){let t=this._elementRef.nativeElement.getAttribute("role"),r=t==="grid"||t==="treegrid"?"gridcell":"cell";this._cellRoleInternal=this._isNativeHtmlTable&&r==="cell"?null:r}return this._cellRoleInternal}get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=t,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=t,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(t,r,o,a,s,l,c,d,p,h,g,_){this._differs=t,this._changeDetectorRef=r,this._elementRef=o,this._dir=s,this._platform=c,this._viewRepeater=d,this._coalescedStyleScheduler=p,this._viewportRuler=h,this._stickyPositioningListener=g,this._onDestroy=new q,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 $,this.viewChange=new Be({start:0,end:Number.MAX_VALUE}),this._injector=x(ze),a||o.nativeElement.setAttribute("role","table"),this._document=l,this._isServer=!c.isBrowser,this._isNativeHtmlTable=o.nativeElement.nodeName==="TABLE"}ngOnInit(){this._setupStickyStyler(),this._dataDiffer=this._differs.find([]).create((t,r)=>this.trackBy?this.trackBy(r.dataIndex,r.data):r),this._viewportRuler.change().pipe(ye(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(t=>{t?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),$d(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let t=this._dataDiffer.diff(this._renderRows);if(!t){this._updateNoDataRow(),this.contentChanged.next();return}let r=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,r,(o,a,s)=>this._getEmbeddedViewArgs(o.item,s),o=>o.item.data,o=>{o.operation===Hd.INSERTED&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(o=>{let a=r.get(o.currentIndex);a.context.$implicit=o.item.data}),this._updateNoDataRow(),si(()=>{this.updateStickyColumnStyles()},{injector:this._injector}),this.contentChanged.next()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){let t=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let o=eN(this._headerRowOutlet,"thead");o&&(o.style.display=t.length?"":"none")}let r=this._headerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,r,"top"),this._headerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyFooterRowStyles(){let t=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let o=eN(this._footerRowOutlet,"tfoot");o&&(o.style.display=t.length?"":"none")}let r=this._footerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,r,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,r),this._footerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyColumnStyles(){let t=this._getRenderedRows(this._headerRowOutlet),r=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...r,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((a,s)=>{this._addStickyColumnStyles([a],this._headerRowDefs[s])}),this._rowDefs.forEach(a=>{let s=[];for(let l=0;l{this._addStickyColumnStyles([a],this._footerRowDefs[s])}),Array.from(this._columnDefsByName.values()).forEach(a=>a.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 r=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||r,this._forceRecalculateCellWidths=r,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 t=[],r=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let o=0;o{let l=o&&o.has(s)?o.get(s):[];if(l.length){let c=l.shift();return c.dataIndex=r,c}else return{data:t,rowDef:s,dataIndex:r}})}_cacheColumnDefs(){this._columnDefsByName.clear(),cb(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(r=>{this._columnDefsByName.has(r.name),this._columnDefsByName.set(r.name,r)})}_cacheRowDefs(){this._headerRowDefs=cb(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=cb(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=cb(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let t=this._rowDefs.filter(r=>!r.when);!this.multiTemplateDataRows&&t.length>1,this._defaultRowDef=t[0]}_renderUpdatedColumns(){let t=(s,l)=>s||!!l.getColumnsDiff(),r=this._rowDefs.reduce(t,!1);r&&this._forceRenderDataRows();let o=this._headerRowDefs.reduce(t,!1);o&&this._forceRenderHeaderRows();let a=this._footerRowDefs.reduce(t,!1);return a&&this._forceRenderFooterRows(),r||o||a}_switchDataSource(t){this._data=[],$d(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;$d(this.dataSource)?t=this.dataSource.connect(this):no(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=U(this.dataSource)),this._renderChangeSubscription=t.pipe(ye(this._onDestroy)).subscribe(r=>{this._data=r||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,r)=>this._renderRow(this._headerRowOutlet,t,r)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,r)=>this._renderRow(this._footerRowOutlet,t,r)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,r){let o=Array.from(r.columns||[]).map(l=>{let c=this._columnDefsByName.get(l);return c}),a=o.map(l=>l.sticky),s=o.map(l=>l.stickyEnd);this._stickyStyler.updateStickyColumns(t,a,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){let r=[];for(let o=0;o!a.when||a.when(r,t));else{let a=this._rowDefs.find(s=>s.when&&s.when(r,t))||this._defaultRowDef;a&&o.push(a)}return o.length,o}_getEmbeddedViewArgs(t,r){let o=t.rowDef,a={$implicit:t.data};return{templateRef:o.template,context:a,index:r}}_renderRow(t,r,o,a={}){let s=t.viewContainer.createEmbeddedView(r.template,a,o);return this._renderCellTemplateForItem(r,a),s}_renderCellTemplateForItem(t,r){for(let o of this._getCellTemplates(t))Ac.mostRecentCellOutlet&&Ac.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,r);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let t=this._rowOutlet.viewContainer;for(let r=0,o=t.length;r{let o=this._columnDefsByName.get(r);return t.extractCellTemplate(o)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let t=(r,o)=>r||o.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let t=this._dir?this._dir.value:"ltr";this._stickyStyler=new Fw(this._isNativeHtmlTable,this.stickyCssClass,t,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:U()).pipe(ye(this._onDestroy)).subscribe(r=>{this._stickyStyler.direction=r,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(r=>!r._table||r._table===this)}_updateNoDataRow(){let t=this._customNoDataRow||this._noDataRow;if(!t)return;let r=this._rowOutlet.viewContainer.length===0;if(r===this._isShowingNoDataRow)return;let o=this._noDataRowOutlet.viewContainer;if(r){let a=o.createEmbeddedView(t.templateRef),s=a.rootNodes[0];a.rootNodes.length===1&&s?.nodeType===this._document.ELEMENT_NODE&&(s.setAttribute("role","row"),s.classList.add(t._contentClassName))}else o.clear();this._isShowingNoDataRow=r,this._changeDetectorRef.markForCheck()}};e.\u0275fac=function(r){return new(r||e)(b(aa),b(Se),b(J),gi("role"),b(vt,8),b(pe),b(Le),b(km),b(ub),b(tr),b(pb,12),b(de,8))},e.\u0275cmp=F({type:e,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(r,o,a){if(r&1&&(Ie(a,rN,5),Ie(a,Rc,5),Ie(a,gb,5),Ie(a,yh,5),Ie(a,Vw,5)),r&2){let s;K(s=Y())&&(o._noDataRow=s.first),K(s=Y())&&(o._contentColumnDefs=s),K(s=Y())&&(o._contentRowDefs=s),K(s=Y())&&(o._contentHeaderRowDefs=s),K(s=Y())&&(o._contentFooterRowDefs=s)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(r,o){r&2&&se("cdk-table-fixed-layout",o.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",ee],fixedLayout:[2,"fixedLayout","fixedLayout",ee]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],standalone:!0,features:[me([{provide:Go,useExisting:e},{provide:km,useClass:Ud},{provide:ub,useClass:Pw},{provide:pb,useValue:null}]),xe,P],ngContentSelectors:cK,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(r,o){r&1&&(Me(lK),ae(0),ae(1,1),M(2,dK,1,0)(3,uK,7,0)(4,pK,4,0)),r&2&&(f(2),k(o._isServer?2:-1),f(),k(o._isNativeHtmlTable?3:4))},dependencies:[Hw,zw,$w,Uw],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2});let i=e;return i})();function cb(i,e){return i.concat(Array.from(e))}function eN(i,e){let n=e.toUpperCase(),t=i.viewContainer.element.nativeElement;for(;t;){let r=t.nodeType===1?t.nodeName:null;if(r===n)return t;if(r==="TABLE")break;t=t.parentNode}return null}var oN=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({imports:[Im]});let i=e;return i})();var mK=[[["caption"]],[["colgroup"],["col"]],"*"],hK=["caption","colgroup, col","*"];function fK(i,e){i&1&&ae(0,2)}function gK(i,e){i&1&&(u(0,"thead",0),yi(1,1),m(),u(2,"tbody",2),yi(3,3)(4,4),m(),u(5,"tfoot",0),yi(6,5),m())}function _K(i,e){i&1&&yi(0,1)(1,3)(2,4)(3,5)}var al=(()=>{let e=class e extends Gw{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275cmp=F({type:e,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(r,o){r&2&&se("mdc-table-fixed-layout",o.fixedLayout)},exportAs:["matTable"],standalone:!0,features:[me([{provide:Gw,useExisting:e},{provide:Go,useExisting:e},{provide:ub,useClass:Pw},{provide:km,useClass:Ud},{provide:pb,useValue:null}]),X,P],ngContentSelectors:hK,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(r,o){r&1&&(Me(mK),ae(0),ae(1,1),M(2,fK,1,0)(3,gK,7,0)(4,_K,4,0)),r&2&&(f(2),k(o._isServer?2:-1),f(),k(o._isNativeHtmlTable?3:4))},dependencies:[Hw,zw,$w,Uw],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});let i=e;return i})(),sl=(()=>{let e=class e extends mb{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275dir=B({type:e,selectors:[["","matCellDef",""]],standalone:!0,features:[me([{provide:mb,useExisting:e}]),X]});let i=e;return i})(),ll=(()=>{let e=class e extends hb{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275dir=B({type:e,selectors:[["","matHeaderCellDef",""]],standalone:!0,features:[me([{provide:hb,useExisting:e}]),X]});let i=e;return i})(),aN=(()=>{let e=class e extends fb{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275dir=B({type:e,selectors:[["","matFooterCellDef",""]],standalone:!0,features:[me([{provide:fb,useExisting:e}]),X]});let i=e;return i})(),cl=(()=>{let e=class e extends Rc{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275dir=B({type:e,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},standalone:!0,features:[me([{provide:Rc,useExisting:e},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),X]});let i=e;return i})(),dl=(()=>{let e=class e extends tN{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275dir=B({type:e,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],standalone:!0,features:[X]});let i=e;return i})(),sN=(()=>{let e=class e extends iN{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275dir=B({type:e,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:[1,"mat-mdc-footer-cell","mdc-data-table__cell"],standalone:!0,features:[X]});let i=e;return i})(),ul=(()=>{let e=class e extends nN{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275dir=B({type:e,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],standalone:!0,features:[X]});let i=e;return i})();var pl=(()=>{let e=class e extends yh{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275dir=B({type:e,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",ee]},standalone:!0,features:[me([{provide:yh,useExisting:e}]),xe,X]});let i=e;return i})();var ml=(()=>{let e=class e extends gb{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275dir=B({type:e,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},standalone:!0,features:[me([{provide:gb,useExisting:e}]),X]});let i=e;return i})(),hl=(()=>{let e=class e extends jw{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275cmp=F({type:e,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:[me([{provide:jw,useExisting:e}]),X,P],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,o){r&1&&yi(0,0)},dependencies:[Ac],encapsulation:2});let i=e;return i})();var fl=(()=>{let e=class e extends Bw{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275cmp=F({type:e,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],standalone:!0,features:[me([{provide:Bw,useExisting:e}]),X,P],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,o){r&1&&yi(0,0)},dependencies:[Ac],encapsulation:2});let i=e;return i})();var gl=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({imports:[De,oN,De]});let i=e;return i})(),bK=9007199254740991,_b=class extends js{get data(){return this._data.value}set data(e){e=Array.isArray(e)?e:[],this._data.next(e),this._renderChangesSubscription||this._filterData(e)}get filter(){return this._filter.value}set filter(e){this._filter.next(e),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(e){this._sort=e,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(e){this._paginator=e,this._updateChangeSubscription()}constructor(e=[]){super(),this._renderData=new Be([]),this._filter=new Be(""),this._internalPageChanges=new q,this._renderChangesSubscription=null,this.sortingDataAccessor=(n,t)=>{let r=n[t];if(OC(r)){let o=Number(r);return o{let r=t.active,o=t.direction;return!r||o==""?n:n.sort((a,s)=>{let l=this.sortingDataAccessor(a,r),c=this.sortingDataAccessor(s,r),d=typeof l,p=typeof c;d!==p&&(d==="number"&&(l+=""),p==="number"&&(c+=""));let h=0;return l!=null&&c!=null?l>c?h=1:l{let r=Object.keys(n).reduce((a,s)=>a+n[s]+"\u25EC","").toLowerCase(),o=t.trim().toLowerCase();return r.indexOf(o)!=-1},this._data=new Be(e),this._updateChangeSubscription()}_updateChangeSubscription(){let e=this._sort?Ge(this._sort.sortChange,this._sort.initialized):U(null),n=this._paginator?Ge(this._paginator.page,this._internalPageChanges,this._paginator.initialized):U(null),t=this._data,r=nn([t,this._filter]).pipe(re(([s])=>this._filterData(s))),o=nn([r,e]).pipe(re(([s])=>this._orderData(s))),a=nn([o,n]).pipe(re(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(e){return this.filteredData=this.filter==null||this.filter===""?e:e.filter(n=>this.filterPredicate(n,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(e){return this.sort?this.sortData(e.slice(),this.sort):e}_pageData(e){if(!this.paginator)return e;let n=this.paginator.pageIndex*this.paginator.pageSize;return e.slice(n,n+this.paginator.pageSize)}_updatePaginator(e){Promise.resolve().then(()=>{let n=this.paginator;if(n&&(n.length=e,n.pageIndex>0)){let t=Math.ceil(n.length/n.pageSize)-1||0,r=Math.min(n.pageIndex,t);r!==n.pageIndex&&(n.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var vb=class i{constructor(e){this.service=e;this.form=new Xd({rows:this.formArray}),this.dataSource.data=this.formArray.controls,this.variablesManager.set("pagination",{pagination:{pageSize:999,pageIndex:0}})}form;formArray=new CI([]);variablesManager=new zi;dataSource=new _b;setItems(e){this.formArray.clear(),this.addItems(e)}addItems(e){e.forEach(n=>{let t=Yr(this.service.getDefaultForServer(),n),r=this.service.getFormGroup(t);this.formArray.push(r)}),this.dataSource.data=this.formArray.controls}removeAt(e){this.formArray.removeAt(e),this.dataSource.data=this.formArray.controls}addEmpty(){this.addItems([{}])}getItems(){return this.formArray.getRawValue()}validateForm(){$o(this.form)}static \u0275fac=function(n){kn()};static \u0275dir=B({type:i,standalone:!0})};function yb(i,e){return i&&(i.find(n=>n.name!=null&&n.name===e.name)||i.find(n=>n.field===e.field))||null}function Jr(i){return JSON.parse(JSON.stringify(i))}function lN(i){let e=new Date,n=Ow(e);e.setDate(e.getDate()+1);let t=Ow(e),r=i.condition;Object.keys(r).length===1&&(r.lessOrEqual?.value==="today"?(delete r.lessOrEqual,r.less={value:"tomorrow"}):r.greater?.value==="today"&&(delete r.greater,r.greaterOrEqual={value:"tomorrow"}));for(let o in r){let a=r[o];a&&"value"in a&&(a.value==="today"?a.value=n:a.value==="tomorrow"&&(a.value=t))}return i}var qw={transformMenu:Vt("transformMenu",[dt("void",Ee({opacity:0,transform:"scale(0.01, 0.01)"})),ot("void => enter",AD([ac(".natural-dropdown-container-content",Ee({opacity:0})),nt("100ms linear",Ee({opacity:1,transform:"scale(1, 0.5)"})),hg([ac(".natural-dropdown-container-content",nt("400ms cubic-bezier(0.55, 0, 0.55, 0.2)",Ee({opacity:1}))),nt("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",Ee({transform:"scale(1, 1)"}))])])),ot("* => void",nt("150ms 50ms linear",Ee({opacity:0})))]),fadeInItems:Vt("fadeInItems",[dt("showing",Ee({opacity:1})),ot("void => *",[Ee({opacity:0}),nt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};function vK(i,e){}function yK(i,e){if(i&1){let n=z();u(0,"div",4)(1,"button",5),w("click",function(){A(n);let r=C();return R(r.close())}),fe(2,0),m()()}}function CK(){throw Error("Attempting to attach dialog content after content is already attached")}var Ww=new H("NaturalDropdownContainerData"),Cb=class i extends da{elementRef=x(J);focusTrapFactory=x(ok);data=x(Ww);portalOutlet;templateRef;closed=new q;panelAnimationState="void";animationDone=new q;focusTrap=null;elementFocusedBeforeDialogWasOpened=null;constructor(){super()}ngOnDestroy(){this.closed.complete()}close(){this.closed.next()}attachTemplatePortal(e){return this.portalOutlet.attachTemplatePortal(e)}attachComponentPortal(e){return this.portalOutlet.hasAttached()&&CK(),this.portalOutlet.attachComponentPortal(e)}startAnimation(){this.panelAnimationState="enter"}onAnimationDone(e){e.toState==="enter"?this.trapFocus():e.toState==="exit"&&this.restoreFocus(),this.animationDone.next()}trapFocus(){this.focusTrap||(this.focusTrap=this.focusTrapFactory.create(this.elementRef.nativeElement)),this.focusTrap.focusInitialElementWhenReady()}restoreFocus(){let e=this.elementFocusedBeforeDialogWasOpened;e&&typeof e.focus=="function"&&e.focus(),this.focusTrap&&this.focusTrap.destroy()}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["ng-component"]],viewQuery:function(n,t){if(n&1&&(ve(Ii,7),ve(ft,7)),n&2){let r;K(r=Y())&&(t.portalOutlet=r.first),K(r=Y())&&(t.templateRef=r.first)}},standalone:!0,features:[X,P],decls:4,vars:2,consts:()=>{let e;return e=$localize`:␟5d689cec6690d9dd229ac67c852d365d67e3b4e3␟4003387801369922138:Valider`,[e,["role","menu","tabindex","-1",1,"natural-dropdown-container","mat-elevation-z2"],[1,"natural-dropdown-container-content"],["cdkPortalOutlet",""],[1,"natural-dropdown-validate-button"],["color","primary","mat-raised-button","",3,"click"]]},template:function(n,t){n&1&&(u(0,"div",1),w("@transformMenu.done",function(o){return t.onAnimationDone(o)}),u(1,"div",2),M(2,vK,0,0,"ng-template",3),m(),M(3,yK,3,0,"div",4),m()),n&2&&(v("@transformMenu",t.panelAnimationState),f(3),k(t.data.showValidateButton?3:-1))},dependencies:[ir,Ii,we,Ze],styles:[`.natural-dropdown-container{display:flex;flex-direction:column;border-radius:2px;height:100%}.natural-dropdown-container-content{flex:1;padding:5px;overflow:auto}.natural-dropdown-container .natural-dropdown-validate-button{display:flex;flex:none;flex-direction:row;justify-content:flex-end;margin:5px} +`],encapsulation:2,data:{animation:[qw.transformMenu,qw.fadeInItems]}})};var Or=class i{constructor(e,n,t,r,o){this.dropdownContainer=e;t.push({provide:i,useValue:this});let a=ze.create({providers:t,parent:r}),s=new on(n,void 0,a),l=o.instance.attachComponentPortal(s);this.componentInstance=l.instance}componentInstance;closed=new q;close(e){this.closed.next(e),this.closed.complete(),this.dropdownContainer.close()}};var Hi=new H("NaturalDropdownData"),xb=class i{overlay=x(yt);injector=x(ze);open(e,n,t,r){let a=[{provide:Ww,useValue:{showValidateButton:r}}],s=ze.create({providers:a,parent:this.injector}),l=this.overlay.create(this.getOverlayConfig(n)),c=new on(Cb,void 0,s),d=l.attach(c),p=d.instance,h=new Or(p,e,t,this.injector,d);p.startAnimation();let g=()=>{h.componentInstance.isValid()&&h.componentInstance.isDirty()?h.close({condition:h.componentInstance.getCondition()}):h.close()};return p.closed.subscribe(()=>{l.dispose(),g()}),l.backdropClick().pipe(ye(p.closed)).subscribe(()=>p.close()),h}getOverlayConfig(e){return new An({positionStrategy:this.getPosition(e),hasBackdrop:!0,backdropClass:"cdk-overlay-transparent-backdrop"})}getPosition(e){return this.overlay.position().flexibleConnectedTo(e).withFlexibleDimensions(!0).withViewportMargin(30).withPush(!1).withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top",offsetY:10}])}static \u0275fac=function(n){return new(n||i)};static \u0275prov=W({token:i,factory:i.\u0275fac,providedIn:"root"})};var wb=[{key:"less",label:"<"},{key:"lessOrEqual",label:"\u2264"},{key:"equal",label:"="},{key:"greaterOrEqual",label:"\u2265"},{key:"greater",label:">"}],Sb=[{key:"is",label:$localize`est`},{key:"isnot",label:$localize`n'est pas`},{key:"any",label:$localize`avec`},{key:"none",label:$localize`sans`}];function ju(i,e){if(!e)return"";let n=i.getYear(e),t=i.getMonth(e)+1,r=i.getDate(e);return n+"-"+(t<10?"0":"")+t+"-"+(r<10?"0":"")+r}function Eb(i,e){return n=>n.value&&i.compareDate(n.value,e)<0?{min:!0}:null}function Tb(i,e){return n=>n.value&&i.compareDate(n.value,e)>0?{max:!0}:null}var xK=["input"],wK=["label"],SK=["*"],EK=new H("mat-checkbox-default-options",{providedIn:"root",factory:dN});function dN(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1}}var Fn=function(i){return i[i.Init=0]="Init",i[i.Checked=1]="Checked",i[i.Unchecked=2]="Unchecked",i[i.Indeterminate=3]="Indeterminate",i}(Fn||{}),TK={provide:_n,useExisting:$t(()=>Pn),multi:!0},Qw=class{},DK=0,cN=dN(),Pn=(()=>{let e=class e{focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(t){let r=new Qw;return r.source=this,r.checked=t,r}_getAnimationTargetElement(){return this._inputElement?.nativeElement}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(t,r,o,a,s,l){this._elementRef=t,this._changeDetectorRef=r,this._ngZone=o,this._animationMode=s,this._options=l,this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"},this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new $,this.indeterminateChange=new $,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=Fn.Init,this._controlValueAccessorChangeFn=()=>{},this._validatorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||cN,this.color=this._options.color||cN.color,this.tabIndex=parseInt(a)||0,this.id=this._uniqueId=`mat-mdc-checkbox-${++DK}`,this.disabledInteractive=l?.disabledInteractive??!1}ngOnChanges(t){t.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){let r=t!=this._indeterminate;this._indeterminate=t,r&&(this._indeterminate?this._transitionCheckState(Fn.Indeterminate):this._transitionCheckState(this.checked?Fn.Checked:Fn.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}validate(t){return this.required&&t.value!==!0?{required:!0}:null}registerOnValidatorChange(t){this._validatorChangeFn=t}_transitionCheckState(t){let r=this._currentCheckState,o=this._getAnimationTargetElement();if(!(r===t||!o)&&(this._currentAnimationClass&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(r,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);let a=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(a)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){let t=this._options?.clickAction;!this.disabled&&t!=="noop"?(this.indeterminate&&t!=="check"&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?Fn.Checked:Fn.Unchecked),this._emitChangeEvent()):(this.disabled&&this.disabledInteractive||!this.disabled&&t==="noop")&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(t){t.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(t,r){if(this._animationMode==="NoopAnimations")return"";switch(t){case Fn.Init:if(r===Fn.Checked)return this._animationClasses.uncheckedToChecked;if(r==Fn.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case Fn.Unchecked:return r===Fn.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case Fn.Checked:return r===Fn.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case Fn.Indeterminate:return r===Fn.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(t){let r=this._inputElement;r&&(r.nativeElement.indeterminate=t)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(t){t.target&&this._labelElement.nativeElement.contains(t.target)&&t.stopPropagation()}};e.\u0275fac=function(r){return new(r||e)(b(J),b(Se),b(de),gi("tabindex"),b(gt,8),b(EK,8))},e.\u0275cmp=F({type:e,selectors:[["mat-checkbox"]],viewQuery:function(r,o){if(r&1&&(ve(xK,5),ve(wK,5),ve(Fi,5)),r&2){let a;K(a=Y())&&(o._inputElement=a.first),K(a=Y())&&(o._labelElement=a.first),K(a=Y())&&(o.ripple=a.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(r,o){r&2&&(Ci("id",o.id),ne("tabindex",null)("aria-label",null)("aria-labelledby",null),Yt(o.color?"mat-"+o.color:"mat-accent"),se("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mdc-checkbox--disabled",o.disabled)("mat-mdc-checkbox-disabled",o.disabled)("mat-mdc-checkbox-checked",o.checked)("mat-mdc-checkbox-disabled-interactive",o.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],id:"id",required:[2,"required","required",ee],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",ee],tabIndex:[2,"tabIndex","tabIndex",t=>t==null?void 0:Lt(t)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",ee],checked:[2,"checked","checked",ee],disabled:[2,"disabled","disabled",ee],indeterminate:[2,"indeterminate","indeterminate",ee]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],standalone:!0,features:[me([TK,{provide:fo,useExisting:e,multi:!0}]),xe,Ne,P],ngContentSelectors:SK,decls:15,vars:20,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(r,o){if(r&1){let a=z();Me(),u(0,"div",3),w("click",function(l){return A(a),R(o._preventBubblingFromLabel(l))}),u(1,"div",4,0)(3,"div",5),w("click",function(){return A(a),R(o._onTouchTargetClick())}),m(),u(4,"input",6,1),w("blur",function(){return A(a),R(o._onBlur())})("click",function(){return A(a),R(o._onInputClick())})("change",function(l){return A(a),R(o._onInteractionEvent(l))}),m(),T(6,"div",7),u(7,"div",8),pi(),u(8,"svg",9),T(9,"path",10),m(),oa(),T(10,"div",11),m(),T(11,"div",12),m(),u(12,"label",13,2),ae(14),m()()}if(r&2){let a=Je(2);v("labelPosition",o.labelPosition),f(4),se("mdc-checkbox--selected",o.checked),v("checked",o.checked)("indeterminate",o.indeterminate)("disabled",o.disabled&&!o.disabledInteractive)("id",o.inputId)("required",o.required)("tabIndex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex),ne("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby)("aria-checked",o.indeterminate?"mixed":null)("aria-disabled",o.disabled&&o.disabledInteractive?!0:null)("name",o.name)("value",o.value),f(7),v("matRippleTrigger",a)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),f(),v("for",o.inputId)}},dependencies:[Fi,vk],styles:['.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-focus-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color, var(--mat-app-primary))}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color, var(--mat-app-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity));background-color:var(--mdc-checkbox-selected-hover-state-layer-color, var(--mat-app-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color, var(--mat-app-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity));background-color:var(--mdc-checkbox-selected-focus-state-layer-color, var(--mat-app-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color, var(--mat-app-primary))}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity));background-color:var(--mdc-checkbox-selected-pressed-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mdc-checkbox__ripple{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-app-on-surface))}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.cdk-high-contrast-active .mdc-checkbox--disabled{opacity:.5}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mdc-checkbox-unselected-icon-color, var(--mat-app-on-surface-variant));top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mat-app-primary));background-color:var(--mdc-checkbox-selected-icon-color, var(--mat-app-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color)}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color);border-color:rgba(0,0,0,0)}.mdc-checkbox:hover .mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mat-app-on-surface));background-color:rgba(0,0,0,0)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-app-primary));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-app-primary))}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mat-app-on-surface))}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-app-primary));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-app-primary))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover .mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color)}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color);border-color:rgba(0,0,0,0)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-app-on-primary))}.cdk-high-contrast-active .mdc-checkbox__checkmark{color:CanvasText}.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-app-surface))}.cdk-high-contrast-active .mdc-checkbox--disabled .mdc-checkbox__checkmark,.cdk-high-contrast-active .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:CanvasText}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-app-on-primary))}.cdk-high-contrast-active .mdc-checkbox__mixedmark{margin:0 1px}.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-app-surface))}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable .mdc-checkbox *,.mat-mdc-checkbox._mat-animation-noopable .mdc-checkbox *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-app-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-app-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-app-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-app-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-app-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-app-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color)}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let i=e;return i})();var Ar=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({imports:[Pn,De,De]});let i=e;return i})();var uN=rn({passive:!0}),pN=(()=>{let e=class e{constructor(t,r){this._platform=t,this._ngZone=r,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return Ht;let r=br(t),o=this._monitoredElements.get(r);if(o)return o.subject;let a=new q,s="cdk-text-field-autofilled",l=c=>{c.animationName==="cdk-text-field-autofill-start"&&!r.classList.contains(s)?(r.classList.add(s),this._ngZone.run(()=>a.next({target:c.target,isAutofilled:!0}))):c.animationName==="cdk-text-field-autofill-end"&&r.classList.contains(s)&&(r.classList.remove(s),this._ngZone.run(()=>a.next({target:c.target,isAutofilled:!1})))};return this._ngZone.runOutsideAngular(()=>{r.addEventListener("animationstart",l,uN),r.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(r,{subject:a,unlisten:()=>{r.removeEventListener("animationstart",l,uN)}}),a}stopMonitoring(t){let r=br(t),o=this._monitoredElements.get(r);o&&(o.unlisten(),o.subject.complete(),r.classList.remove("cdk-text-field-autofill-monitored"),r.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(r))}ngOnDestroy(){this._monitoredElements.forEach((t,r)=>this.stopMonitoring(r))}};e.\u0275fac=function(r){return new(r||e)(G(Le),G(de))},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var mN=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({});let i=e;return i})();var Kw=new H("MAT_INPUT_VALUE_ACCESSOR"),IK=["button","checkbox","file","hidden","image","radio","range","reset","submit"],MK=0,Bt=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(t){this._disabled=jt(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(tt.required)??!1}set required(t){this._required=jt(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&MC().has(this._type)&&(this._elementRef.nativeElement.type=this._type),this._ensureWheelDefaultBehavior()}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(t){this._errorStateTracker.matcher=t}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=jt(t)}get errorState(){return this._errorStateTracker.errorState}set errorState(t){this._errorStateTracker.errorState=t}constructor(t,r,o,a,s,l,c,d,p,h){this._elementRef=t,this._platform=r,this.ngControl=o,this._autofillMonitor=d,this._ngZone=p,this._formField=h,this._uid=`mat-input-${MK++}`,this._webkitBlinkWheelListenerAttached=!1,this.focused=!1,this.stateChanges=new q,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(S=>MC().has(S)),this._iOSKeyupListener=S=>{let E=S.target;!E.value&&E.selectionStart===0&&E.selectionEnd===0&&(E.setSelectionRange(1,1),E.setSelectionRange(0,0))},this._webkitBlinkWheelListener=()=>{};let g=this._elementRef.nativeElement,_=g.nodeName.toLowerCase();this._inputValueAccessor=c||g,this._previousNativeValue=this.value,this.id=this.id,r.IOS&&p.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new Vs(l,o,s,a,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=_==="select",this._isTextarea=_==="textarea",this._isInFormField=!!h,this._isNativeSelect&&(this.controlType=g.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener),this._webkitBlinkWheelListenerAttached&&this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(t){t!==this.focused&&(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){let t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_dirtyCheckPlaceholder(){let t=this._getPlaceholder();if(t!==this._previousPlaceholder){let r=this._elementRef.nativeElement;this._previousPlaceholder=t,t?r.setAttribute("placeholder",t):r.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){IK.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let t=this._elementRef.nativeElement,r=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&r&&r.label)}else return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let t=this._elementRef.nativeElement;return this._isNativeSelect&&(t.multiple||t.size>1)}_ensureWheelDefaultBehavior(){!this._webkitBlinkWheelListenerAttached&&this._type==="number"&&(this._platform.BLINK||this._platform.WEBKIT)&&(this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("wheel",this._webkitBlinkWheelListener)}),this._webkitBlinkWheelListenerAttached=!0),this._webkitBlinkWheelListenerAttached&&this._type!=="number"&&(this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener),this._webkitBlinkWheelListenerAttached=!0)}};e.\u0275fac=function(r){return new(r||e)(b(J),b(Le),b(an,10),b(Bm,8),b(bt,8),b(Ha),b(Kw,10),b(pN),b(de),b(qa,8))},e.\u0275dir=B({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(r,o){r&1&&w("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),r&2&&(Ci("id",o.id)("disabled",o.disabled)("required",o.required),ne("name",o.name||null)("readonly",o.readonly&&!o._isNativeSelect||null)("aria-invalid",o.empty&&o.required?null:o.errorState)("aria-required",o.required)("id",o.id),se("mat-input-server",o._isServer)("mat-mdc-form-field-textarea-control",o._isInFormField&&o._isTextarea)("mat-mdc-form-field-input-control",o._isInFormField)("mdc-text-field__input",o._isInFormField)("mat-mdc-native-select-inline",o._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],standalone:!0,features:[me([{provide:Wd,useExisting:e}]),Ne]});let i=e;return i})(),zt=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({imports:[De,at,at,mN,De]});let i=e;return i})();var AK=["mat-calendar-body",""];function RK(i,e){return this._trackRow(e)}var CN=(i,e)=>e.id;function NK(i,e){if(i&1&&(u(0,"tr",0)(1,"td",3),y(2),m()()),i&2){let n=C();f(),Gt("padding-top",n._cellPadding)("padding-bottom",n._cellPadding),ne("colspan",n.numCols),f(),ue(" ",n.label," ")}}function FK(i,e){if(i&1&&(u(0,"td",3),y(1),m()),i&2){let n=C(2);Gt("padding-top",n._cellPadding)("padding-bottom",n._cellPadding),ne("colspan",n._firstRowOffset),f(),ue(" ",n._firstRowOffset>=n.labelMinRequiredCells?n.label:""," ")}}function PK(i,e){if(i&1){let n=z();u(0,"td",6)(1,"button",7),w("click",function(r){let o=A(n).$implicit,a=C(2);return R(a._cellClicked(o,r))})("focus",function(r){let o=A(n).$implicit,a=C(2);return R(a._emitActiveDateChange(o,r))}),u(2,"span",8),y(3),m(),T(4,"span",9),m()()}if(i&2){let n=e.$implicit,t=e.$index,r=C().$index,o=C();Gt("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),ne("data-mat-row",r)("data-mat-col",t),f(),se("mat-calendar-body-disabled",!n.enabled)("mat-calendar-body-active",o._isActiveCell(r,t))("mat-calendar-body-range-start",o._isRangeStart(n.compareValue))("mat-calendar-body-range-end",o._isRangeEnd(n.compareValue))("mat-calendar-body-in-range",o._isInRange(n.compareValue))("mat-calendar-body-comparison-bridge-start",o._isComparisonBridgeStart(n.compareValue,r,t))("mat-calendar-body-comparison-bridge-end",o._isComparisonBridgeEnd(n.compareValue,r,t))("mat-calendar-body-comparison-start",o._isComparisonStart(n.compareValue))("mat-calendar-body-comparison-end",o._isComparisonEnd(n.compareValue))("mat-calendar-body-in-comparison-range",o._isInComparisonRange(n.compareValue))("mat-calendar-body-preview-start",o._isPreviewStart(n.compareValue))("mat-calendar-body-preview-end",o._isPreviewEnd(n.compareValue))("mat-calendar-body-in-preview",o._isInPreview(n.compareValue)),v("ngClass",n.cssClasses)("tabindex",o._isActiveCell(r,t)?0:-1),ne("aria-label",n.ariaLabel)("aria-disabled",!n.enabled||null)("aria-pressed",o._isSelected(n.compareValue))("aria-current",o.todayValue===n.compareValue?"date":null)("aria-describedby",o._getDescribedby(n.compareValue)),f(),se("mat-calendar-body-selected",o._isSelected(n.compareValue))("mat-calendar-body-comparison-identical",o._isComparisonIdentical(n.compareValue))("mat-calendar-body-today",o.todayValue===n.compareValue),f(),ue(" ",n.displayValue," ")}}function LK(i,e){if(i&1&&(u(0,"tr",1),M(1,FK,2,6,"td",4),He(2,PK,5,48,"td",5,CN),m()),i&2){let n=e.$implicit,t=e.$index,r=C();f(),k(t===0&&r._firstRowOffset?1:-1),f(),Ue(n)}}function VK(i,e){if(i&1&&(u(0,"th",2)(1,"span",6),y(2),m(),u(3,"span",3),y(4),m()()),i&2){let n=e.$implicit;f(2),ge(n.long),f(2),ge(n.narrow)}}var jK=["*"];function BK(i,e){}function zK(i,e){if(i&1){let n=z();u(0,"mat-month-view",4),Ni("activeDateChange",function(r){A(n);let o=C();return Ri(o.activeDate,r)||(o.activeDate=r),R(r)}),w("_userSelection",function(r){A(n);let o=C();return R(o._dateSelected(r))})("dragStarted",function(r){A(n);let o=C();return R(o._dragStarted(r))})("dragEnded",function(r){A(n);let o=C();return R(o._dragEnded(r))}),m()}if(i&2){let n=C();Ai("activeDate",n.activeDate),v("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)("comparisonStart",n.comparisonStart)("comparisonEnd",n.comparisonEnd)("startDateAccessibleName",n.startDateAccessibleName)("endDateAccessibleName",n.endDateAccessibleName)("activeDrag",n._activeDrag)}}function HK(i,e){if(i&1){let n=z();u(0,"mat-year-view",5),Ni("activeDateChange",function(r){A(n);let o=C();return Ri(o.activeDate,r)||(o.activeDate=r),R(r)}),w("monthSelected",function(r){A(n);let o=C();return R(o._monthSelectedInYearView(r))})("selectedChange",function(r){A(n);let o=C();return R(o._goToDateInView(r,"month"))}),m()}if(i&2){let n=C();Ai("activeDate",n.activeDate),v("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)}}function UK(i,e){if(i&1){let n=z();u(0,"mat-multi-year-view",6),Ni("activeDateChange",function(r){A(n);let o=C();return Ri(o.activeDate,r)||(o.activeDate=r),R(r)}),w("yearSelected",function(r){A(n);let o=C();return R(o._yearSelectedInMultiYearView(r))})("selectedChange",function(r){A(n);let o=C();return R(o._goToDateInView(r,"year"))}),m()}if(i&2){let n=C();Ai("activeDate",n.activeDate),v("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)}}function $K(i,e){}var GK=["button"],qK=[[["","matDatepickerToggleIcon",""]]],WK=["[matDatepickerToggleIcon]"];function QK(i,e){i&1&&(pi(),u(0,"svg",2),T(1,"path",3),m())}var Sh=(()=>{let e=class e{constructor(){this.changes=new q,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(t,r){return`${t} \u2013 ${r}`}formatYearRangeLabel(t,r){return`${t} to ${r}`}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),KK=0,xh=class{constructor(e,n,t,r,o={},a=e,s){this.value=e,this.displayValue=n,this.ariaLabel=t,this.enabled=r,this.cssClasses=o,this.compareValue=a,this.rawValue=s,this.id=KK++}},YK=1,hN=rn({passive:!1,capture:!0}),_l=rn({passive:!0,capture:!0}),Db=rn({passive:!0}),zu=(()=>{let e=class e{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(t,r){this._elementRef=t,this._ngZone=r,this._platform=x(Le),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new $,this.previewChange=new $,this.activeDateChange=new $,this.dragStarted=new $,this.dragEnded=new $,this._didDragSinceMouseDown=!1,this._injector=x(ze),this._trackRow=o=>o,this._enterHandler=o=>{if(this._skipNextFocus&&o.type==="focus"){this._skipNextFocus=!1;return}if(o.target&&this.isRange){let a=this._getCellFromElement(o.target);a&&this._ngZone.run(()=>this.previewChange.emit({value:a.enabled?a:null,event:o}))}},this._touchmoveHandler=o=>{if(!this.isRange)return;let a=fN(o),s=a?this._getCellFromElement(a):null;a!==o.target&&(this._didDragSinceMouseDown=!0),Xw(o.target)&&o.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:s?.enabled?s:null,event:o}))},this._leaveHandler=o=>{this.previewEnd!==null&&this.isRange&&(o.type!=="blur"&&(this._didDragSinceMouseDown=!0),o.target&&this._getCellFromElement(o.target)&&!(o.relatedTarget&&this._getCellFromElement(o.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:o})))},this._mousedownHandler=o=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let a=o.target&&this._getCellFromElement(o.target);!a||!this._isInRange(a.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:a.rawValue,event:o})})},this._mouseupHandler=o=>{if(!this.isRange)return;let a=Xw(o.target);if(!a){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:o})});return}a.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let s=this._getCellFromElement(a);this.dragEnded.emit({value:s?.rawValue??null,event:o})})},this._touchendHandler=o=>{let a=fN(o);a&&this._mouseupHandler({target:a})},this._id=`mat-calendar-body-${YK++}`,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,r.runOutsideAngular(()=>{let o=t.nativeElement;o.addEventListener("touchmove",this._touchmoveHandler,hN),o.addEventListener("mouseenter",this._enterHandler,_l),o.addEventListener("focus",this._enterHandler,_l),o.addEventListener("mouseleave",this._leaveHandler,_l),o.addEventListener("blur",this._leaveHandler,_l),o.addEventListener("mousedown",this._mousedownHandler,Db),o.addEventListener("touchstart",this._mousedownHandler,Db),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(t,r){this._didDragSinceMouseDown||t.enabled&&this.selectedValueChange.emit({value:t.value,event:r})}_emitActiveDateChange(t,r){t.enabled&&this.activeDateChange.emit({value:t.value,event:r})}_isSelected(t){return this.startValue===t||this.endValue===t}ngOnChanges(t){let r=t.numCols,{rows:o,numCols:a}=this;(t.rows||r)&&(this._firstRowOffset=o&&o.length&&o[0].length?a-o[0].length:0),(t.cellAspectRatio||r||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/a}%`),(r||!this._cellWidth)&&(this._cellWidth=`${100/a}%`)}ngOnDestroy(){let t=this._elementRef.nativeElement;t.removeEventListener("touchmove",this._touchmoveHandler,hN),t.removeEventListener("mouseenter",this._enterHandler,_l),t.removeEventListener("focus",this._enterHandler,_l),t.removeEventListener("mouseleave",this._leaveHandler,_l),t.removeEventListener("blur",this._leaveHandler,_l),t.removeEventListener("mousedown",this._mousedownHandler,Db),t.removeEventListener("touchstart",this._mousedownHandler,Db),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(t,r){let o=t*this.numCols+r;return t&&(o-=this._firstRowOffset),o==this.activeCell}_focusActiveCell(t=!0){si(()=>{setTimeout(()=>{let r=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");r&&(t||(this._skipNextFocus=!0),r.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(t){return Jw(t,this.startValue,this.endValue)}_isRangeEnd(t){return Zw(t,this.startValue,this.endValue)}_isInRange(t){return e1(t,this.startValue,this.endValue,this.isRange)}_isComparisonStart(t){return Jw(t,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(t,r,o){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;let a=this.rows[r][o-1];if(!a){let s=this.rows[r-1];a=s&&s[s.length-1]}return a&&!this._isRangeEnd(a.compareValue)}_isComparisonBridgeEnd(t,r,o){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;let a=this.rows[r][o+1];if(!a){let s=this.rows[r+1];a=s&&s[0]}return a&&!this._isRangeStart(a.compareValue)}_isComparisonEnd(t){return Zw(t,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(t){return e1(t,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}_isPreviewStart(t){return Jw(t,this.previewStart,this.previewEnd)}_isPreviewEnd(t){return Zw(t,this.previewStart,this.previewEnd)}_isInPreview(t){return e1(t,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(t){return this.isRange?this.startValue===t&&this.endValue===t?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===t?this._startDateLabelId:this.endValue===t?this._endDateLabelId:null:null}_getCellFromElement(t){let r=Xw(t);if(r){let o=r.getAttribute("data-mat-row"),a=r.getAttribute("data-mat-col");if(o&&a)return this.rows[parseInt(o)][parseInt(a)]}return null}};e.\u0275fac=function(r){return new(r||e)(b(J),b(de))},e.\u0275cmp=F({type:e,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:[Ne,P],attrs:AK,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(r,o){r&1&&(M(0,NK,3,6,"tr",0),He(1,LK,4,1,"tr",1,RK,!0),u(3,"label",2),y(4),m(),u(5,"label",2),y(6),m()),r&2&&(k(o._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});let i=e;return i})();function Yw(i){return i?.nodeName==="TD"}function Xw(i){let e;return Yw(i)?e=i:Yw(i.parentNode)?e=i.parentNode:Yw(i.parentNode?.parentNode)&&(e=i.parentNode.parentNode),e?.getAttribute("data-mat-row")!=null?e:null}function Jw(i,e,n){return n!==null&&e!==n&&i=e&&i===n}function e1(i,e,n,t){return t&&e!==null&&n!==null&&e!==n&&i>=e&&i<=n}function fN(i){let e=i.changedTouches[0];return document.elementFromPoint(e.clientX,e.clientY)}var To=class{constructor(e,n){this.start=e,this.end=n}},wh=(()=>{let e=class e{constructor(t,r){this.selection=t,this._adapter=r,this._selectionChanged=new q,this.selectionChanged=this._selectionChanged,this.selection=t}updateSelection(t,r){let o=this.selection;this.selection=t,this._selectionChanged.next({selection:t,source:r,oldValue:o})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}};e.\u0275fac=function(r){kn()},e.\u0275prov=W({token:e,factory:e.\u0275fac});let i=e;return i})(),XK=(()=>{let e=class e extends wh{constructor(t){super(null,t)}add(t){super.updateSelection(t,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let t=new e(this._adapter);return t.updateSelection(this.selection,this),t}};e.\u0275fac=function(r){return new(r||e)(G(hi))},e.\u0275prov=W({token:e,factory:e.\u0275fac});let i=e;return i})();function JK(i,e){return i||new XK(e)}var xN={provide:wh,deps:[[new Va,new Es,wh],hi],useFactory:JK};var wN=new H("MAT_DATE_RANGE_SELECTION_STRATEGY");var t1=7,ZK=0,gN=(()=>{let e=class e{get activeDate(){return this._activeDate}set activeDate(t){let r=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._hasSameMonthAndYear(r,this._activeDate)||this._init()}get selected(){return this._selected}set selected(t){t instanceof To?this._selected=t:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}constructor(t,r,o,a,s){this._changeDetectorRef=t,this._dateFormats=r,this._dateAdapter=o,this._dir=a,this._rangeStrategy=s,this._rerenderSubscription=et.EMPTY,this.activeDrag=null,this.selectedChange=new $,this._userSelection=new $,this.dragStarted=new $,this.dragEnded=new $,this.activeDateChange=new $,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Ye(null)).subscribe(()=>this._init())}ngOnChanges(t){let r=t.comparisonStart||t.comparisonEnd;r&&!r.firstChange&&this._setRanges(this.selected),t.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(t){let r=t.value,o=this._getDateFromDayOfMonth(r),a,s;this._selected instanceof To?(a=this._getDateInCurrentMonth(this._selected.start),s=this._getDateInCurrentMonth(this._selected.end)):a=s=this._getDateInCurrentMonth(this._selected),(a!==r||s!==r)&&this.selectedChange.emit(o),this._userSelection.emit({value:o,event:t.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(t){let r=t.value,o=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(r),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(t){let r=this._activeDate,o=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,o?-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=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=t.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)&&t.preventDefault();return;case 27:this._previewEnd!=null&&!Dt(t)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:t}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t})),t.preventDefault(),t.stopPropagation());return;default:return}this._dateAdapter.compareDate(r,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),t.preventDefault()}_handleCalendarBodyKeyup(t){(t.keyCode===32||t.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),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 t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(t1+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%t1,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(t){this._matCalendarBody._focusActiveCell(t)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:t,value:r}){if(this._rangeStrategy){let o=r?r.rawValue:null,a=this._rangeStrategy.createPreview(o,this.selected,t);if(this._previewStart=this._getCellCompareValue(a.start),this._previewEnd=this._getCellCompareValue(a.end),this.activeDrag&&o){let s=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,o,t);s&&(this._previewStart=this._getCellCompareValue(s.start),this._previewEnd=this._getCellCompareValue(s.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(t){if(this.activeDrag)if(t.value){let r=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,t.value,t.event);this.dragEnded.emit({value:r??null,event:t.event})}else this.dragEnded.emit({value:null,event:t.event})}_getDateFromDayOfMonth(t){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),t)}_initWeekdays(){let t=this._dateAdapter.getFirstDayOfWeek(),r=this._dateAdapter.getDayOfWeekNames("narrow"),a=this._dateAdapter.getDayOfWeekNames("long").map((s,l)=>({long:s,narrow:r[l],id:ZK++}));this._weekdays=a.slice(t).concat(a.slice(0,t))}_createWeekCells(){let t=this._dateAdapter.getNumDaysInMonth(this.activeDate),r=this._dateAdapter.getDateNames();this._weeks=[[]];for(let o=0,a=this._firstWeekOffset;o=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}_getDateInCurrentMonth(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}_hasSameMonthAndYear(t,r){return!!(t&&r&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(r)&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(r))}_getCellCompareValue(t){if(t){let r=this._dateAdapter.getYear(t),o=this._dateAdapter.getMonth(t),a=this._dateAdapter.getDate(t);return new Date(r,o,a).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(t){t instanceof To?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(t){return!this.dateFilter||this.dateFilter(t)}_clearPreview(){this._previewStart=this._previewEnd=null}};e.\u0275fac=function(r){return new(r||e)(b(Se),b(mo,8),b(hi,8),b(vt,8),b(wN,8))},e.\u0275cmp=F({type:e,selectors:[["mat-month-view"]],viewQuery:function(r,o){if(r&1&&ve(zu,5),r&2){let a;K(a=Y())&&(o._matCalendarBody=a.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:[Ne,P],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(r,o){r&1&&(u(0,"table",0)(1,"thead",1)(2,"tr"),He(3,VK,5,2,"th",2,CN),m(),u(5,"tr",3),T(6,"th",4),m()(),u(7,"tbody",5),w("selectedValueChange",function(s){return o._dateSelected(s)})("activeDateChange",function(s){return o._updateActiveDate(s)})("previewChange",function(s){return o._previewChanged(s)})("dragStarted",function(s){return o.dragStarted.emit(s)})("dragEnded",function(s){return o._dragEnded(s)})("keyup",function(s){return o._handleCalendarBodyKeyup(s)})("keydown",function(s){return o._handleCalendarBodyKeydown(s)}),m()()),r&2&&(f(3),Ue(o._weekdays),f(4),v("label",o._monthLabel)("rows",o._weeks)("todayValue",o._todayDate)("startValue",o._rangeStart)("endValue",o._rangeEnd)("comparisonStart",o._comparisonRangeStart)("comparisonEnd",o._comparisonRangeEnd)("previewStart",o._previewStart)("previewEnd",o._previewEnd)("isRange",o._isRange)("labelMinRequiredCells",3)("activeCell",o._dateAdapter.getDate(o.activeDate)-1)("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName))},dependencies:[zu],encapsulation:2,changeDetection:0});let i=e;return i})(),Zr=24,i1=4,_N=(()=>{let e=class e{get activeDate(){return this._activeDate}set activeDate(t){let r=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),SN(this._dateAdapter,r,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){t instanceof To?this._selected=t:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedYear(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}constructor(t,r,o){this._changeDetectorRef=t,this._dateAdapter=r,this._dir=o,this._rerenderSubscription=et.EMPTY,this.selectedChange=new $,this.yearSelected=new $,this.activeDateChange=new $,this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Ye(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());let r=this._dateAdapter.getYear(this._activeDate)-Ch(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let o=0,a=[];othis._createCellForYear(s))),a=[]);this._changeDetectorRef.markForCheck()}_yearSelected(t){let r=t.value,o=this._dateAdapter.createDate(r,0,1),a=this._getDateFromYear(r);this.yearSelected.emit(o),this.selectedChange.emit(a)}_updateActiveDate(t){let r=t.value,o=this._activeDate;this.activeDate=this._getDateFromYear(r),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(t){let r=this._activeDate,o=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-i1);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i1);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Ch(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Zr-Ch(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-Zr*10:-Zr);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?Zr*10:Zr);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),t.preventDefault()}_handleCalendarBodyKeyup(t){(t.keyCode===32||t.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:t}),this._selectionKeyPressed=!1)}_getActiveCell(){return Ch(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(t){let r=this._dateAdapter.getMonth(this.activeDate),o=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(t,r,1));return this._dateAdapter.createDate(t,r,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForYear(t){let r=this._dateAdapter.createDate(t,0,1),o=this._dateAdapter.getYearName(r),a=this.dateClass?this.dateClass(r,"multi-year"):void 0;return new xh(t,o,o,this._shouldEnableYear(t),a)}_shouldEnableYear(t){if(t==null||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t{let e=class e{get activeDate(){return this._activeDate}set activeDate(t){let r=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._dateAdapter.getYear(r)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(t){t instanceof To?this._selected=t:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedMonth(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}constructor(t,r,o,a){this._changeDetectorRef=t,this._dateFormats=r,this._dateAdapter=o,this._dir=a,this._rerenderSubscription=et.EMPTY,this.selectedChange=new $,this.monthSelected=new $,this.activeDateChange=new $,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Ye(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(t){let r=t.value,o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),r,1);this.monthSelected.emit(o);let a=this._getDateFromMonth(r);this.selectedChange.emit(a)}_updateActiveDate(t){let r=t.value,o=this._activeDate;this.activeDate=this._getDateFromMonth(r),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(t){let r=this._activeDate,o=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,o?-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,t.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(r,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),t.preventDefault()}_handleCalendarBodyKeyup(t){(t.keyCode===32||t.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:t}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(r=>r.map(o=>this._createCellForMonth(o,t[o]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null}_getDateFromMonth(t){let r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),o=this._dateAdapter.getNumDaysInMonth(r);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForMonth(t,r){let o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),a=this._dateAdapter.format(o,this._dateFormats.display.monthYearA11yLabel),s=this.dateClass?this.dateClass(o,"year"):void 0;return new xh(t,r.toLocaleUpperCase(),a,this._shouldEnableMonth(t),s)}_shouldEnableMonth(t){let r=this._dateAdapter.getYear(this.activeDate);if(t==null||this._isYearAndMonthAfterMaxDate(r,t)||this._isYearAndMonthBeforeMinDate(r,t))return!1;if(!this.dateFilter)return!0;let o=this._dateAdapter.createDate(r,t,1);for(let a=o;this._dateAdapter.getMonth(a)==t;a=this._dateAdapter.addCalendarDays(a,1))if(this.dateFilter(a))return!0;return!1}_isYearAndMonthAfterMaxDate(t,r){if(this.maxDate){let o=this._dateAdapter.getYear(this.maxDate),a=this._dateAdapter.getMonth(this.maxDate);return t>o||t===o&&r>a}return!1}_isYearAndMonthBeforeMinDate(t,r){if(this.minDate){let o=this._dateAdapter.getYear(this.minDate),a=this._dateAdapter.getMonth(this.minDate);return t{let e=class e{constructor(t,r,o,a,s){this._intl=t,this.calendar=r,this._dateAdapter=o,this._dateFormats=a,this._id=`mat-calendar-header-${tY++}`,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:-Zr)}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:Zr)}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(t,r){return this.calendar.currentView=="month"?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(r)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(r):this.calendar.currentView=="year"?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(r):SN(this._dateAdapter,t,r,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let r=this._dateAdapter.getYear(this.calendar.activeDate)-Ch(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),o=r+Zr-1,a=this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1)),s=this._dateAdapter.getYearName(this._dateAdapter.createDate(o,0,1));return[a,s]}};e.\u0275fac=function(r){return new(r||e)(b(Sh),b($t(()=>n1)),b(hi,8),b(mo,8),b(Se))},e.\u0275cmp=F({type:e,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],standalone:!0,features:[P],ngContentSelectors:jK,decls:13,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"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"click","disabled"]],template:function(r,o){r&1&&(Me(),u(0,"div",0)(1,"div",1)(2,"label",2),y(3),m(),u(4,"button",3),w("click",function(){return o.currentPeriodClicked()}),u(5,"span",4),y(6),m(),pi(),u(7,"svg",5),T(8,"polygon",6),m()(),oa(),T(9,"div",7),ae(10),u(11,"button",8),w("click",function(){return o.previousClicked()}),m(),u(12,"button",9),w("click",function(){return o.nextClicked()}),m()()()),r&2&&(f(2),v("id",o._periodButtonLabelId),f(),ge(o.periodButtonDescription),f(),ne("aria-label",o.periodButtonLabel)("aria-describedby",o._periodButtonLabelId),f(2),ge(o.periodButtonText),f(),se("mat-calendar-invert",o.calendar.currentView!=="month"),f(4),v("disabled",!o.previousEnabled()),ne("aria-label",o.prevButtonLabel),f(),v("disabled",!o.nextEnabled()),ne("aria-label",o.nextButtonLabel))},dependencies:[Ze,li],encapsulation:2,changeDetection:0});let i=e;return i})(),n1=(()=>{let e=class e{get startAt(){return this._startAt}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get selected(){return this._selected}set selected(t){t instanceof To?this._selected=t:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get activeDate(){return this._clampedActiveDate}set activeDate(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(t){let r=this._currentView!==t?t:null;this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),r&&this.viewChanged.emit(r)}constructor(t,r,o,a){this._dateAdapter=r,this._dateFormats=o,this._changeDetectorRef=a,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new $,this.yearSelected=new $,this.monthSelected=new $,this.viewChanged=new $(!0),this._userSelection=new $,this._userDragDrop=new $,this._activeDrag=null,this.stateChanges=new q,this._intlChanges=t.changes.subscribe(()=>{a.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new on(this.headerComponent||TN),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(t){let r=t.minDate&&!this._dateAdapter.sameDate(t.minDate.previousValue,t.minDate.currentValue)?t.minDate:void 0,o=t.maxDate&&!this._dateAdapter.sameDate(t.maxDate.previousValue,t.maxDate.currentValue)?t.maxDate:void 0,a=r||o||t.dateFilter;if(a&&!a.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(t){let r=t.value;(this.selected instanceof To||r&&!this._dateAdapter.sameDate(r,this.selected))&&this.selectedChange.emit(r),this._userSelection.emit(t)}_yearSelectedInMultiYearView(t){this.yearSelected.emit(t)}_monthSelectedInYearView(t){this.monthSelected.emit(t)}_goToDateInView(t,r){this.activeDate=t,this.currentView=r}_dragStarted(t){this._activeDrag=t}_dragEnded(t){this._activeDrag&&(t.value&&this._userDragDrop.emit(t),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}};e.\u0275fac=function(r){return new(r||e)(b(Sh),b(hi,8),b(mo,8),b(Se))},e.\u0275cmp=F({type:e,selectors:[["mat-calendar"]],viewQuery:function(r,o){if(r&1&&(ve(gN,5),ve(bN,5),ve(_N,5)),r&2){let a;K(a=Y())&&(o.monthView=a.first),K(a=Y())&&(o.yearView=a.first),K(a=Y())&&(o.multiYearView=a.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:[me([xN]),Ne,P],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(r,o){if(r&1&&(M(0,BK,0,0,"ng-template",0),u(1,"div",1),M(2,zK,1,11,"mat-month-view",2)(3,HK,1,6,"mat-year-view",3)(4,UK,1,6,"mat-multi-year-view",3),m()),r&2){let a;v("cdkPortalOutlet",o._calendarHeaderPortal),f(2),k((a=o.currentView)==="month"?2:a==="year"?3:a==="multi-year"?4:-1)}},dependencies:[Ii,Ag,gN,bN,_N],styles:['.mat-calendar{display:block;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-calendar-previous-button,.mat-calendar-next-button{position:relative}.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))}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.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});let i=e;return i})(),vN={transformPanel:Vt("transformPanel",[ot("void => enter-dropdown",nt("120ms cubic-bezier(0, 0, 0.2, 1)",Os([Ee({opacity:0,transform:"scale(1, 0.8)"}),Ee({opacity:1,transform:"scale(1, 1)"})]))),ot("void => enter-dialog",nt("150ms cubic-bezier(0, 0, 0.2, 1)",Os([Ee({opacity:0,transform:"scale(0.7)"}),Ee({transform:"none",opacity:1})]))),ot("* => void",nt("100ms linear",Ee({opacity:0})))]),fadeInCalendar:Vt("fadeInCalendar",[dt("void",Ee({opacity:0})),dt("enter",Ee({opacity:1})),ot("void => *",nt("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},iY=0,DN=new H("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let i=x(yt);return()=>i.scrollStrategies.reposition()}});function nY(i){return()=>i.scrollStrategies.reposition()}var rY={provide:DN,deps:[yt],useFactory:nY},kN=(()=>{let e=class e{constructor(t,r,o,a,s,l){this._elementRef=t,this._changeDetectorRef=r,this._globalModel=o,this._dateAdapter=a,this._rangeSelectionStrategy=s,this._subscriptions=new et,this._animationDone=new q,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=l.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(t){let r=this._model.selection,o=t.value,a=r instanceof To;if(a&&this._rangeSelectionStrategy){let s=this._rangeSelectionStrategy.selectionFinished(o,r,t.event);this._model.updateSelection(s,this)}else o&&(a||!this._dateAdapter.sameDate(o,r))&&this._model.add(o);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(t){this._model.updateSelection(t.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(t){this._isAnimating=t.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(t,r){this._model=t?this._globalModel.clone():this._globalModel,this._actionsPortal=t,r&&this._changeDetectorRef.detectChanges()}};e.\u0275fac=function(r){return new(r||e)(b(J),b(Se),b(wh),b(hi),b(wN,8),b(Sh))},e.\u0275cmp=F({type:e,selectors:[["mat-datepicker-content"]],viewQuery:function(r,o){if(r&1&&ve(n1,5),r&2){let a;K(a=Y())&&(o._calendar=a.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:5,hostBindings:function(r,o){r&1&&Id("@transformPanel.start",function(s){return o._handleAnimationEvent(s)})("@transformPanel.done",function(s){return o._handleAnimationEvent(s)}),r&2&&(kd("@transformPanel",o._animationState),Yt(o.color?"mat-"+o.color:""),se("mat-datepicker-content-touch",o.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],standalone:!0,features:[P],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(r,o){if(r&1&&(u(0,"div",0)(1,"mat-calendar",1),w("yearSelected",function(s){return o.datepicker._selectYear(s)})("monthSelected",function(s){return o.datepicker._selectMonth(s)})("viewChanged",function(s){return o.datepicker._viewChanged(s)})("_userSelection",function(s){return o._handleUserSelection(s)})("_userDragDrop",function(s){return o._handleUserDragDrop(s)}),m(),M(2,$K,0,0,"ng-template",2),u(3,"button",3),w("focus",function(){return o._closeButtonFocused=!0})("blur",function(){return o._closeButtonFocused=!1})("click",function(){return o.datepicker.close()}),y(4),m()()),r&2){let a;se("mat-datepicker-content-container-with-custom-header",o.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",o._actionsPortal),ne("aria-modal",!0)("aria-labelledby",(a=o._dialogLabelId)!==null&&a!==void 0?a:void 0),f(),Yt(o.datepicker.panelClass),v("id",o.datepicker.id)("startAt",o.datepicker.startAt)("startView",o.datepicker.startView)("minDate",o.datepicker._getMinDate())("maxDate",o.datepicker._getMaxDate())("dateFilter",o.datepicker._getDateFilter())("headerComponent",o.datepicker.calendarHeaderComponent)("selected",o._getSelected())("dateClass",o.datepicker.dateClass)("comparisonStart",o.comparisonStart)("comparisonEnd",o.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName),f(),v("cdkPortalOutlet",o._actionsPortal),f(),se("cdk-visually-hidden",!o._closeButtonFocused),v("color",o.color||"primary"),f(),ge(o._closeButtonText)}},dependencies:[rk,n1,Ii,Ze],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:[vN.transformPanel,vN.fadeInCalendar]},changeDetection:0});let i=e;return i})(),yN=(()=>{let e=class e{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(t){this._color=t}get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(t){t!==this._disabled&&(this._disabled=t,this.stateChanges.next(void 0))}get panelClass(){return this._panelClass}set panelClass(t){this._panelClass=qD(t)}get opened(){return this._opened}set opened(t){t?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(t,r,o,a,s,l,c){this._overlay=t,this._viewContainerRef=o,this._dateAdapter=s,this._dir=l,this._model=c,this._inputStateChanges=et.EMPTY,this._document=x(pe),this.startView="month",this.touchUi=!1,this.xPosition="start",this.yPosition="below",this.restoreFocus=!0,this.yearSelected=new $,this.monthSelected=new $,this.viewChanged=new $(!0),this.openedStream=new $,this.closedStream=new $,this._opened=!1,this.id=`mat-datepicker-${iY++}`,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new q,this._injector=x(ze),this._changeDetectorRef=x(Se),this._dateAdapter,this._scrollStrategy=a,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(t){let r=t.xPosition||t.yPosition;if(r&&!r.firstChange&&this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;o instanceof Om&&(this._setConnectedPositions(o),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(t){this._model.add(t)}_selectYear(t){this.yearSelected.emit(t)}_selectMonth(t){this.monthSelected.emit(t)}_viewChanged(t){this.viewChanged.emit(t)}registerInput(t){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=t,this._inputStateChanges=t.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(t){this._actionsPortal,this._actionsPortal=t,this._componentRef?.instance._assignActions(t,!0)}removeActions(t){t===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=ca(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let t=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",r=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){let{instance:o,location:a}=this._componentRef;o._startExitAnimation(),o._animationDone.pipe(pt(1)).subscribe(()=>{let s=this._document.activeElement;t&&(!s||s===this._document.activeElement||a.nativeElement.contains(s))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}t?setTimeout(r):r()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(t){t.datepicker=this,t.color=this.color,t._dialogLabelId=this.datepickerInput.getOverlayLabelId(),t._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let t=this.touchUi,r=new on(kN,this._viewContainerRef),o=this._overlayRef=this._overlay.create(new An({positionStrategy:t?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[t?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:t?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:`mat-datepicker-${t?"dialog":"popup"}`}));this._getCloseStream(o).subscribe(a=>{a&&a.preventDefault(),this.close()}),o.keydownEvents().subscribe(a=>{let s=a.keyCode;(s===38||s===40||s===37||s===39||s===33||s===34)&&a.preventDefault()}),this._componentRef=o.attach(r),this._forwardContentValues(this._componentRef.instance),t||si(()=>{o.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 t=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(t)}_setConnectedPositions(t){let r=this.xPosition==="end"?"end":"start",o=r==="start"?"end":"start",a=this.yPosition==="above"?"bottom":"top",s=a==="top"?"bottom":"top";return t.withPositions([{originX:r,originY:s,overlayX:r,overlayY:a},{originX:r,originY:a,overlayX:r,overlayY:s},{originX:o,originY:s,overlayX:o,overlayY:a},{originX:o,originY:a,overlayX:o,overlayY:s}])}_getCloseStream(t){let r=["ctrlKey","shiftKey","metaKey"];return Ge(t.backdropClick(),t.detachments(),t.keydownEvents().pipe(Re(o=>o.keyCode===27&&!Dt(o)||this.datepickerInput&&Dt(o,"altKey")&&o.keyCode===38&&r.every(a=>!Dt(o,a)))))}};e.\u0275fac=function(r){return new(r||e)(b(yt),b(de),b(Ft),b(DN),b(hi,8),b(vt,8),b(wh))},e.\u0275dir=B({type:e,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",ee],disabled:[2,"disabled","disabled",ee],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",ee],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",ee]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[xe,Ne]});let i=e;return i})(),kb=(()=>{let e=class e extends yN{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275cmp=F({type:e,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],standalone:!0,features:[me([xN,{provide:yN,useExisting:e}]),X,P],decls:0,vars:0,template:function(r,o){},encapsulation:2,changeDetection:0});let i=e;return i})(),Bu=class{constructor(e,n){this.target=e,this.targetElement=n,this.value=this.target.value}},oY=(()=>{let e=class e{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(t){this._assignValueProgrammatically(t)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(t){let r=t,o=this._elementRef.nativeElement;this._disabled!==r&&(this._disabled=r,this.stateChanges.next(void 0)),r&&this._isInitialized&&o.blur&&o.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(t){this._model=t,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(r=>{if(this._shouldHandleChangeEvent(r)){let o=this._getValueFromModel(r.selection);this._lastValueValid=this._isValidValue(o),this._cvaOnChange(o),this._onTouched(),this._formatValue(o),this.dateInput.emit(new Bu(this,this._elementRef.nativeElement)),this.dateChange.emit(new Bu(this,this._elementRef.nativeElement))}})}constructor(t,r,o){this._elementRef=t,this._dateAdapter=r,this._dateFormats=o,this.dateChange=new $,this.dateInput=new $,this.stateChanges=new q,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=et.EMPTY,this._localeSubscription=et.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=a=>{let s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(a.value));return!s||this._matchesFilter(s)?null:{matDatepickerFilter:!0}},this._minValidator=a=>{let s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(a.value)),l=this._getMinDate();return!l||!s||this._dateAdapter.compareDate(l,s)<=0?null:{matDatepickerMin:{min:l,actual:s}}},this._maxValidator=a=>{let s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(a.value)),l=this._getMaxDate();return!l||!s||this._dateAdapter.compareDate(l,s)>=0?null:{matDatepickerMax:{max:l,actual:s}}},this._lastValueValid=!1,this._localeSubscription=r.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(t){aY(t,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(t){this._validatorOnChange=t}validate(t){return this._validator?this._validator(t):null}writeValue(t){this._assignValueProgrammatically(t)}registerOnChange(t){this._cvaOnChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_onKeydown(t){let r=["ctrlKey","shiftKey","metaKey"];Dt(t,"altKey")&&t.keyCode===40&&r.every(a=>!Dt(t,a))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),t.preventDefault())}_onInput(t){let r=this._lastValueValid,o=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(o),o=this._dateAdapter.getValidDateOrNull(o);let a=!this._dateAdapter.sameDate(o,this.value);!o||a?this._cvaOnChange(o):(t&&!this.value&&this._cvaOnChange(o),r!==this._lastValueValid&&this._validatorOnChange()),a&&(this._assignValue(o),this.dateInput.emit(new Bu(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Bu(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(t){this._elementRef.nativeElement.value=t!=null?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""}_assignValue(t){this._model?(this._assignValueToModel(t),this._pendingValue=null):this._pendingValue=t}_isValidValue(t){return!t||this._dateAdapter.isValid(t)}_parentDisabled(){return!1}_assignValueProgrammatically(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=this._isValidValue(t),t=this._dateAdapter.getValidDateOrNull(t),this._assignValue(t),this._formatValue(t)}_matchesFilter(t){let r=this._getDateFilter();return!r||r(t)}};e.\u0275fac=function(r){return new(r||e)(b(J),b(hi,8),b(mo,8))},e.\u0275dir=B({type:e,inputs:{value:"value",disabled:[2,"disabled","disabled",ee]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},standalone:!0,features:[xe,Ne]});let i=e;return i})();function aY(i,e){let n=Object.keys(i);for(let t of n){let{previousValue:r,currentValue:o}=i[t];if(e.isDateInstance(r)&&e.isDateInstance(o)){if(!e.sameDate(r,o))return!0}else return!0}return!1}var sY={provide:_n,useExisting:$t(()=>Hu),multi:!0},lY={provide:fo,useExisting:$t(()=>Hu),multi:!0},Hu=(()=>{let e=class e extends oY{set matDatepicker(t){t&&(this._datepicker=t,this._ariaOwns.set(t.opened?t.id:null),this._closedSubscription=t.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=t.openedStream.subscribe(()=>{this._ariaOwns.set(t.id)}),this._registerModel(t.registerInput(this)))}get min(){return this._min}set min(t){let r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(r,this._min)||(this._min=r,this._validatorOnChange())}get max(){return this._max}set max(t){let r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(r,this._max)||(this._max=r,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(t){let r=this._matchesFilter(this.value);this._dateFilter=t,this._matchesFilter(this.value)!==r&&this._validatorOnChange()}constructor(t,r,o,a){super(t,r,o),this._formField=a,this._closedSubscription=et.EMPTY,this._openedSubscription=et.EMPTY,this._ariaOwns=Ba(null),this._validator=tt.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(t){return t}_assignValueToModel(t){this._model&&this._model.updateSelection(t,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(t){return t.source!==this}};e.\u0275fac=function(r){return new(r||e)(b(J),b(hi,8),b(mo,8),b(qa,8))},e.\u0275dir=B({type:e,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(r,o){r&1&&w("input",function(s){return o._onInput(s.target.value)})("change",function(){return o._onChange()})("blur",function(){return o._onBlur()})("keydown",function(s){return o._onKeydown(s)}),r&2&&(Ci("disabled",o.disabled),ne("aria-haspopup",o._datepicker?"dialog":null)("aria-owns",o._ariaOwns())("min",o.min?o._dateAdapter.toIso8601(o.min):null)("max",o.max?o._dateAdapter.toIso8601(o.max):null)("data-mat-calendar",o._datepicker?o._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],standalone:!0,features:[me([sY,lY,{provide:Kw,useExisting:e}]),X]});let i=e;return i})(),cY=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=B({type:e,selectors:[["","matDatepickerToggleIcon",""]],standalone:!0});let i=e;return i})(),Fc=(()=>{let e=class e{get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(t){this._disabled=t}constructor(t,r,o){this._intl=t,this._changeDetectorRef=r,this._stateChanges=et.EMPTY;let a=Number(o);this.tabIndex=a||a===0?a:null}ngOnChanges(t){t.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())}_watchStateChanges(){let t=this.datepicker?this.datepicker.stateChanges:U(),r=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:U(),o=this.datepicker?Ge(this.datepicker.openedStream,this.datepicker.closedStream):U();this._stateChanges.unsubscribe(),this._stateChanges=Ge(this._intl.changes,t,r,o).subscribe(()=>this._changeDetectorRef.markForCheck())}};e.\u0275fac=function(r){return new(r||e)(b(Sh),b(Se),gi("tabindex"))},e.\u0275cmp=F({type:e,selectors:[["mat-datepicker-toggle"]],contentQueries:function(r,o,a){if(r&1&&Ie(a,cY,5),r&2){let s;K(s=Y())&&(o._customIcon=s.first)}},viewQuery:function(r,o){if(r&1&&ve(GK,5),r&2){let a;K(a=Y())&&(o._button=a.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(r,o){r&1&&w("click",function(s){return o._open(s)}),r&2&&(ne("tabindex",null)("data-mat-calendar",o.datepicker?o.datepicker.id:null),se("mat-datepicker-toggle-active",o.datepicker&&o.datepicker.opened)("mat-accent",o.datepicker&&o.datepicker.color==="accent")("mat-warn",o.datepicker&&o.datepicker.color==="warn"))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",ee],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],standalone:!0,features:[xe,Ne,P],ngContentSelectors:WK,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(r,o){r&1&&(Me(qK),u(0,"button",1,0),M(2,QK,2,0,":svg:svg",2),ae(3),m()),r&2&&(v("disabled",o.disabled)("disableRipple",o.disableRipple),ne("aria-haspopup",o.datepicker?"dialog":null)("aria-label",o.ariaLabel||o._intl.openCalendarLabel)("tabindex",o.disabled?-1:o.tabIndex),f(2),k(o._customIcon?-1:2))},dependencies:[li],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});let i=e;return i})();var Uu=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({providers:[Sh,rY],imports:[Pe,we,Rn,Bd,ir,De,kN,Fc,TN,er]});let i=e;return i})();function dY(i,e){if(i&1&&(u(0,"mat-option",6),y(1),m()),i&2){let n=e.$implicit;v("value",n.key),f(),ue(" ",n.label," ")}}function uY(i,e){if(i&1&&(u(0,"mat-error"),y(1),m()),i&2){let n=C();f(),ue("< ",n.configuration.min,"")}}function pY(i,e){if(i&1&&(u(0,"mat-error"),y(1),m()),i&2){let n=C();f(),ue("> ",n.configuration.max,"")}}function mY(i,e){i&1&&(u(0,"mat-error"),y(1,"*"),m())}var Pc=class i{dateAdapter=x(hi);dateFormats=x(mo);renderedValue=new Be("");configuration;operatorCtrl=new Xe("equal",{nonNullable:!0});valueCtrl=new Xe(null);todayCtrl=new Xe(!1);operators=wb;form=new Pt({operator:this.operatorCtrl,value:this.valueCtrl,today:this.todayCtrl});defaults={min:null,max:null};constructor(){let e=x(Hi);this.configuration=N(N({},this.defaults),e.configuration),this.todayCtrl.valueChanges.pipe(ht()).subscribe(n=>{n?(this.valueCtrl.setValue(this.dateAdapter.today()),this.valueCtrl.disable()):this.valueCtrl.enable()}),Ge(this.operatorCtrl.valueChanges,this.valueCtrl.valueChanges,this.todayCtrl.valueChanges).pipe(ht()).subscribe(()=>this.renderedValue.next(this.getRenderedValue())),this.initValidators(),this.reloadCondition(e.condition)}getCondition(){if(!this.valueCtrl.value)return{};let e={},n=this.operatorCtrl.value,t,r;return this.todayCtrl.value?(t="today",r="tomorrow"):(t=ju(this.dateAdapter,this.valueCtrl.value),r=ju(this.dateAdapter,this.getDayAfter(this.valueCtrl.value))),n==="equal"?(e.greaterOrEqual={value:t},e.less={value:r}):(t!=="today"&&(n==="greater"?(n="greaterOrEqual",t=r):n==="lessOrEqual"&&(n="less",t=r)),e[n]={value:t}),e}isValid(){return this.form.valid}isDirty(){return this.form.dirty}reloadCondition(e){if(e){if(e.greaterOrEqual&&e.less){this.operatorCtrl.setValue("equal"),this.setTodayOrDate(e.greaterOrEqual.value);return}for(let n of this.operators){let t=e[n.key];t&&(this.operatorCtrl.setValue(n.key),this.setTodayOrDate(t.value))}}}setTodayOrDate(e){e==="today"?(this.valueCtrl.setValue(this.dateAdapter.today()),this.todayCtrl.setValue(!0)):(this.valueCtrl.setValue(this.dateAdapter.deserialize(e)),this.todayCtrl.setValue(!1))}initValidators(){let e=[tt.required];this.configuration.min&&e.push(Eb(this.dateAdapter,this.configuration.min)),this.configuration.max&&e.push(Tb(this.dateAdapter,this.configuration.max)),this.valueCtrl.setValidators(e)}getDayAfter(e){return this.dateAdapter.addCalendarDays(this.dateAdapter.clone(e),1)}getRenderedValue(){let e=this.operators.find(t=>t.key===this.operatorCtrl.value),n="";return this.todayCtrl.value?n=$localize`Aujourd'hui`:this.valueCtrl.value&&(n=this.dateAdapter.format(this.valueCtrl.value,this.dateFormats.display.dateInput)),e&&n?e.label+" "+n:""}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["ng-component"]],standalone:!0,features:[P],decls:19,vars:13,consts:()=>{let e;e=$localize`:Mathematical operator < > =␟5303b7a3dba72e7b2b83d54ecffbe9da76edaca3␟725374975979979308:Opérateur`;let n;n=$localize`:␟2f933b826a570836cab04f683970a2d22068458c␟3973931101896534797:Date`;let t;return t=$localize`:␟0d2abaedb3d973e6f6f10be08b3095b9252ae48d␟588955082819236113:Aujourd'hui`,[["value",""],e,n,t,[3,"formGroup"],["panelWidth","",3,"formControl","required"],[3,"value"],["matInput","",3,"formControl","matDatepicker","max","min","required"],["matIconSuffix","",3,"for"],[3,"formControl"]]},template:function(n,t){if(n&1&&(u(0,"form",4)(1,"mat-form-field")(2,"mat-label"),fe(3,1),m(),u(4,"mat-select",5),He(5,dY,2,2,"mat-option",6,Tt),m()(),u(7,"mat-form-field")(8,"mat-label"),fe(9,2),m(),T(10,"input",7)(11,"mat-datepicker-toggle",8)(12,"mat-datepicker",null,0),M(14,uY,2,1,"mat-error")(15,pY,2,1,"mat-error")(16,mY,2,0,"mat-error"),m(),u(17,"mat-checkbox",9),fe(18,3),m()()),n&2){let r=Je(13);v("formGroup",t.form),f(4),v("formControl",t.operatorCtrl)("required",!0),f(),Ue(t.operators),f(5),v("formControl",t.valueCtrl)("matDatepicker",r)("max",t.configuration.max)("min",t.configuration.min)("required",!0),f(),v("for",r),f(3),k(t.valueCtrl.hasError("min")?14:-1),f(),k(t.valueCtrl.hasError("max")?15:-1),f(),k(t.valueCtrl.hasError("required")?16:-1),f(),v("formControl",t.todayCtrl)}},dependencies:[$e,go,qt,We,Rt,Zi,it,st,bt,at,mt,_t,di,xr,Sr,wr,Pi,Li,zt,Bt,Uu,kb,Hu,Fc,Ar,Pn],styles:["form[_ngcontent-%COMP%]{display:grid;grid:auto auto/4em auto;grid-gap:0 1em}form[_ngcontent-%COMP%] > mat-checkbox[_ngcontent-%COMP%]{grid-column-start:2;margin-bottom:.3em}"]})};function bl(i,e){e=Jr(e);let n={};(!e||e.length===0)&&(e=[[]]);for(let t of e){let r={},o=i?i.filter(AN):[];for(let a of t){let s=yb(i,a),l=ON(s,a);AN(s)?o.splice(o.indexOf(s),1):IN(r,l)}for(let a of o){let s=ON(a,{field:a.field,name:a.name,condition:Jr(a.condition)});IN(r,s)}gY(n,r)}return n}function IN(i,e){let[n,t]=e.field.split("."),r,o;t?(r=hY(i,n),o=MN(t,e.condition)):(r=i,o=MN(e.field,e.condition)),fY(r,o)}function hY(i,e){return i.joins||(i.joins={}),i.joins[e]||(i.joins[e]={}),i.joins[e]}function fY(i,e){e&&(i.conditions||(i.conditions=[]),i.conditions.push(e))}function gY(i,e){(e.conditions||e.joins)&&(i.groups||(i.groups=[]),i.groups.push(e),i.groups.length>1&&(e.groupLogic="OR"))}function MN(i,e){let n={};return i==="search"&&e.like?{custom:{search:{value:e.like.value}}}:(n[i]=e,n)}function ON(i,e){let n=i?.transform?i.transform(e):e;return _Y(i)?lN(n):e}function AN(i){return!!i&&"inversed"in i&&i.inversed||!1}function _Y(i){return!!i&&"component"in i&&i.component===Pc}function $u(i){if(!i?.length)return null;let e=Jr(i);for(let t of e)for(let r of t)r.f=r.field,r.c=r.condition,delete r.field,delete r.condition;let n=JSON.stringify(e);return n==="[[]]"?null:n}function Gu(i){if(!i?.length)return[[]];let e=JSON.parse(i);for(let n of e)for(let t of n)t.field=t.f,t.condition=t.c,delete t.f,delete t.c;return e.length===0&&e.push([]),e}var Eh=new H("Session storage that can be shimed when running on server or in tests"),bY=new H("Local storage that can be shimed when running on server or in tests"),Ib=class i{data=new Map;get length(){return this.data.size}clear(){this.data.clear()}getItem(e){let n=this.data.get(e);return n===void 0?null:n}key(e){let n=0;for(let t of this.data.keys())if(n++===e)return t;return null}removeItem(e){this.data.delete(e)}setItem(e,n){this.data.set(e,n)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=W({token:i,factory:i.\u0275fac,providedIn:"root"})};function vY(){try{if(typeof sessionStorage<"u")return sessionStorage}catch{}return new Ib}var RN={provide:Eh,useFactory:vY};function yY(){try{if(typeof localStorage<"u")return localStorage}catch{}return new Ib}var NN={provide:bY,useFactory:yY};var CY=new H("Validator for persisted value retrieved from NaturalPersistenceService. If returns false, the persisted value will never be returned."),Mb=class i{router=x(Mi);sessionStorage=x(Eh);isValid=x(CY,{optional:!0})??(()=>!0);persist(e,n,t,r,o){return this.persistInStorage(e,n,r),this.persistInUrl(e,n,t,o)}get(e,n,t){let r=this.getFromUrl(e,n);return this.isFalseyValue(r)?(r=this.getFromStorage(e,t),this.isFalseyValue(r)?null:(this.persistInUrl(e,r,n),r)):(this.persistInStorage(e,r,t),r)}getFromUrl(e,n){let t=n.snapshot.paramMap.get(e);return this.deserialize(e,null,t)}persistInUrl(e,n,t,r){let o=ga(t.snapshot.url[t.snapshot.url.length-1].parameters);return this.isFalseyValue(n)?delete o[e]:o[e]=JSON.stringify(n),r=Object.assign(r||{},{relativeTo:t}),this.router.navigate([".",o],r)}getFromStorage(e,n){let t=this.sessionStorage.getItem(this.getStorageKey(e,n));return this.deserialize(e,n,t)}persistInStorage(e,n,t){this.isFalseyValue(n)?this.sessionStorage.removeItem(this.getStorageKey(e,t)):this.sessionStorage.setItem(this.getStorageKey(e,t),JSON.stringify(n))}getStorageKey(e,n){return n+"-"+e}isFalseyValue(e){return e==null||e===""}deserialize(e,n,t){if(!t)return null;let r=null;try{r=JSON.parse(t)}catch{}return this.isValid(e,n,r)?r:null}static \u0275fac=function(n){return new(n||i)};static \u0275prov=W({token:i,factory:i.\u0275fac,providedIn:"root"})};var qu=class extends js{ngUnsubscribe=new q;internalData;constructor(e){super(),e instanceof Ct?(this.internalData=new Be(null),e.pipe(ye(this.ngUnsubscribe)).subscribe(n=>this.data=n)):this.internalData=new Be(e)}get internalDataObservable(){return this.internalData}get data(){return this.internalData.value}set data(e){this.internalData.next(e)}connect(){return this.internalData.pipe(ye(this.ngUnsubscribe),re(e=>e?e.items:[]))}disconnect(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}push(e){if(!this.data)return;let n=[...this.data.items];n.push(e),this.data=ce(N({},this.data),{items:n,length:n.length})}pop(){if(!this.data)return;let e=[...this.data.items],n=e.pop();return this.data=ce(N({},this.data),{items:e,length:e.length}),n}remove(e){if(!this.data)return;let n=this.data.items.indexOf(e);if(n>-1){let t=[...this.data.items];t.splice(n,1),this.data=ce(N({},this.data),{items:t,length:t.length})}}};function FN(i){return"item"in i&&"hasNavigation"in i?i.item:i}var Wu=class i extends rl{constructor(n){super();this.service=n}persistSearch=!0;availableColumns=[];columnsForTable=[];defaultSelectedColumns=null;selectedColumns;dataSource;selection=new On(!0,[]);bulkActionSelected=null;variablesManager=new zi;naturalSearchFacets=[];naturalSearchSelections=[[]];routeData;pageSizeOptions=[5,25,50,100,200];defaultPagination={offset:null,pageIndex:0,pageSize:25};defaultSorting;router=x(Mi);route=x(Si);alertService=x(_a);persistenceService=x(Mb);set forcedVariables(n){n&&this.applyForcedVariables(n)}ngOnInit(){this.routeData=this.route.snapshot.data,this.initFromRoute(),this.initFromPersisted(),this.variablesManager.defaults("pagination",{pagination:this.defaultPagination}),this.variablesManager.defaults("sorting",{sorting:this.defaultSorting}),this.dataSource=new qu(this.getDataObservable()),this.selection.clear();let n=!1;this.router.events.pipe(ht(this.destroyRef),Re(t=>t instanceof wc&&t.navigationTrigger==="popstate")).subscribe(()=>{n=!0}),this.router.events.pipe(ht(this.destroyRef),Re(t=>t instanceof Er&&n)).subscribe(()=>{n=!1,this.naturalSearchSelections=Gu(this.persistenceService.getFromUrl("ns",this.route))})}search(n,t,r=!0){if(r&&this.variablesManager.merge("pagination",{pagination:Ic(this.defaultPagination,["offset","pageIndex"])}),this.persistSearch&&!this.isPanel){let o=this.persistenceService.persist("ns",$u(n),this.route,this.getStorageKey()),a=this.getPagination();this.pagination(a,o,t)}this.translateSearchAndRefreshList(n)}sorting(n){this.variablesManager.merge("pagination",{pagination:Ic(this.defaultPagination,["offset","pageIndex"])});let t=n.filter(r=>!!r.direction).map(r=>{let o={field:r.active};return r.direction==="asc"?o.order="ASC":r.direction==="desc"&&(o.order="DESC"),"nullAsHighest"in r&&(o.nullAsHighest=r.nullAsHighest),"emptyStringAsHighest"in r&&(o.emptyStringAsHighest=r.emptyStringAsHighest),o});if(t.length===0&&this.defaultSorting&&(t=this.defaultSorting),this.variablesManager.set("sorting",{sorting:t}),this.persistSearch&&!this.isPanel){let r=this.persistenceService.persist("so",Eo(t,this.defaultSorting)?null:t,this.route,this.getStorageKey()),o=this.getPagination();this.pagination(o,r)}}getPagination(){let n=this.variablesManager.get("pagination");return n&&n.pagination?n.pagination:this.defaultPagination}pagination(n,t,r){let o=this.defaultPagination,a=null,s=Ic(n,Object.keys(this.defaultPagination));s=Ja(s,this.defaultPagination),Eo(s,this.defaultPagination)||(o=a=s),this.variablesManager.set("pagination",{pagination:o}),this.persistPagination(a,t,r)}persistPagination(n,t,r){if(this.persistSearch&&!this.isPanel){let o=a=>this.persistenceService.persist("pa",a,this.route,this.getStorageKey(),r);t?t.then(()=>o(n)):o(n)}}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource?.data?.items.forEach(n=>{let t=FN(n);t.id&&this.selection.select(t)})}isAllSelected(){let n=this.selection.selected.length,t=0;return this.dataSource?.data?.items.forEach(r=>{FN(r).id&&t++}),n===t}bulkAction(){if(!this.bulkActionSelected)throw new Error("Trying to execute a bulk action without selecting one");if(!(this.bulkActionSelected in this))throw new Error("Trying to execute a bulk action that does not exist: "+this.bulkActionSelected);this[this.bulkActionSelected]()}showHeader(){return!this.isPanel||this.isPanel&&this.showTable()}showSearch(){return!this.isPanel}showTable(){return!!this.dataSource&&!!this.dataSource.data&&this.dataSource.data.length>0}showNoResults(){return!this.isPanel&&!!this.dataSource&&!!this.dataSource.data&&this.dataSource.data.length===0}initFromRoute(){this.route.snapshot.data.forcedVariables&&this.applyForcedVariables(this.route.snapshot.data.forcedVariables),this.route.snapshot.data.availableColumns&&(this.availableColumns=this.route.snapshot.data.availableColumns),this.route.snapshot.data.selectedColumns&&(this.selectedColumns=this.route.snapshot.data.selectedColumns)}getDataObservable(){return this.service.watchAll(this.variablesManager).pipe(ht(this.destroyRef))}initFromPersisted(){if(!this.persistSearch||this.isPanel)return;let n=this.getStorageKey(),t=YR(this.persistenceService.get("pa",this.route,n));t&&this.variablesManager.set("pagination",{pagination:t});let r=XR(this.persistenceService.get("so",this.route,n));r&&this.variablesManager.set("sorting",{sorting:r});let o=JR(this.persistenceService.get("col",this.route,n));o&&(this.selectedColumns=o),this.naturalSearchSelections=Gu(this.persistenceService.get("ns",this.route,n)),this.translateSearchAndRefreshList(this.naturalSearchSelections,!0)}translateSearchAndRefreshList(n,t=!1){let r=bl(this.naturalSearchFacets,n);t&&xw(r)||this.variablesManager.set("natural-search",{filter:r})}getStorageKey(){let n=this.router.parseUrl(this.router.url);return n.root.children.primary.segments[n.root.children.primary.segments.length-1].parameters={},n.toString()}bulkdDeleteConfirmation(){return this.alertService.confirm($localize`Suppression`,$localize`Voulez-vous supprimer définitivement les éléments sélectionnés ?`,$localize`Supprimer définitivement`)}bulkDelete(){let n=new q;return this.bulkdDeleteConfirmation().subscribe(t=>{if(this.bulkActionSelected=null,t){let r=this.selection.selected;this.service.delete(r).subscribe(()=>{this.selection.clear(),this.alertService.info($localize`Supprimé`),n.next(),n.complete()})}}),n}applyForcedVariables(n){n.filter&&this.variablesManager.set("forced-filter",{filter:n.filter}),n.pagination&&this.variablesManager.set("pagination",{pagination:n.pagination}),n.sorting&&this.variablesManager.set("sorting",{sorting:n.sorting})}selectColumns(n){if(this.columnsForTable=n,!(!this.persistSearch||this.isPanel))if(!this.defaultSelectedColumns)this.defaultSelectedColumns=n;else{let t=Eo(this.defaultSelectedColumns,n)?null:n.join(",");this.persistenceService.persist("col",t,this.route,this.getStorageKey())}}static \u0275fac=function(t){kn()};static \u0275dir=B({type:i,inputs:{persistSearch:"persistSearch",availableColumns:"availableColumns",selectedColumns:"selectedColumns",forcedVariables:"forcedVariables"},standalone:!0,features:[X]})};var Ob=class i extends Wu{ancestorRelationName="parent";oldAncertorId=null;breadcrumbs=[];constructor(e){super(e)}ngOnInit(){this.route.params.subscribe(e=>{if(e.ns)return;let n=null;if(e.na){n={have:{values:[e.na]}},this.service.getOne(e.na).subscribe(a=>this.breadcrumbs=this.getBreadcrumb(a));let o=e.na!==this.oldAncertorId;this.oldAncertorId=e.na,this.clearSearch(o)}else n={empty:{}},this.breadcrumbs=[];let t={};t[this.ancestorRelationName]=n;let r={filter:{groups:[{conditions:[t]}]}};this.variablesManager.set("navigation",r)}),super.ngOnInit()}getDataObservable(){return this.service.watchAll(this.variablesManager).pipe(ht(this.destroyRef),re(e=>{let n=e.items.map(r=>{let o={item:r,hasNavigation:!1},a={};a[this.ancestorRelationName]={have:{values:[r.id]}};let s={filter:{groups:[{conditions:[a]}]}},l=new zi;return l.set("variables",s),this.service.count(l).pipe(Ji()).subscribe(c=>o.hasNavigation=c>0),o});return ce(N({},e),{items:n})}))}translateSearchAndRefreshList(e){e.some(n=>n.length)&&(this.variablesManager.set("navigation",null),this.breadcrumbs=[]),super.translateSearchAndRefreshList(e)}clearSearch(e=!0){this.naturalSearchSelections=[[]],super.search([[]],void 0,e),this.persistenceService.persistInStorage("ns",null,this.getStorageKey())}search(e,n,t=!0){this.persistenceService.persistInUrl("na",null,this.route).then(()=>{super.search(e,n,t)})}getChildLink(e){return e?.id?[".",{na:e.id}]:[".",{}]}getBreadcrumb(e){let n=e[this.ancestorRelationName];return n?this.getBreadcrumb(n).concat([e]):[e]}static \u0275fac=function(n){kn()};static \u0275dir=B({type:i,inputs:{ancestorRelationName:"ancestorRelationName"},standalone:!0,features:[X]})};var o1=function(i,e){return o1=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])},o1(i,e)};function Vn(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");o1(i,e);function n(){this.constructor=i}i.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var j=function(){return j=Object.assign||function(e){for(var n,t=1,r=arguments.length;t0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]=l1){var e=console[i]||console.log;return e.apply(console,arguments)}}}(function(i){i.debug=Ab("debug"),i.log=Ab("log"),i.warn=Ab("warn"),i.error=Ab("error")})(vl||(vl={}));function jN(i){var e=Rb[l1];return l1=Math.max(0,Rb.indexOf(i)),e}var Th="3.11.8";function jn(i){try{return i()}catch{}}var Qu=jn(function(){return globalThis})||jn(function(){return window})||jn(function(){return self})||jn(function(){return global})||jn(function(){return jn.constructor("return this")()});var BN=new Map;function Dh(i){var e=BN.get(i)||1;return BN.set(i,e+1),"".concat(i,":").concat(e,":").concat(Math.random().toString(36).slice(2))}function Fb(i,e){e===void 0&&(e=0);var n=Dh("stringifyForDisplay");return JSON.stringify(i,function(t,r){return r===void 0?n:r},e).split(JSON.stringify(n)).join("")}function Pb(i){return function(e){for(var n=[],t=1;t"}}function c1(i,e){if(e===void 0&&(e=[]),!!i)return Qu[zN]&&Qu[zN](i,e.map(HN))}function d1(i,e){if(e===void 0&&(e=[]),!!i)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:Th,message:i,args:e.map(HN)})))}var wY=globalThis.__DEV__!==!1;function Ku(i,e){if(!!!i)throw new Error(e)}function UN(i){return typeof i=="object"&&i!==null}function $N(i,e){if(!!!i)throw new Error(e??"Unexpected invariant triggered.")}var SY=/\r\n|[\n\r]/g;function Yu(i,e){let n=0,t=1;for(let r of i.body.matchAll(SY)){if(typeof r.index=="number"||$N(!1),r.index>=e)break;n=r.index+r[0].length,t+=1}return{line:t,column:e+1-n}}function u1(i){return Lb(i.source,Yu(i.source,i.start))}function Lb(i,e){let n=i.locationOffset.column-1,t="".padStart(n)+i.body,r=e.line-1,o=i.locationOffset.line-1,a=e.line+o,s=e.line===1?n:0,l=e.column+s,c=`${i.name}:${a}:${l} +`,d=t.split(/\r\n|[\n\r]/g),p=d[r];if(p.length>120){let h=Math.floor(l/80),g=l%80,_=[];for(let S=0;S["|",S]),["|","^".padStart(g)],["|",_[h+1]]])}return c+GN([[`${a-1} |`,d[r-1]],[`${a} |`,p],["|","^".padStart(l)],[`${a+1} |`,d[r+1]]])}function GN(i){let e=i.filter(([t,r])=>r!==void 0),n=Math.max(...e.map(([t])=>t.length));return e.map(([t,r])=>t.padStart(n)+(r?" "+r:"")).join(` +`)}function EY(i){let e=i[0];return e==null||"kind"in e||"length"in e?{nodes:e,source:i[1],positions:i[2],path:i[3],originalError:i[4],extensions:i[5]}:e}var Vb=class i extends Error{constructor(e,...n){var t,r,o;let{nodes:a,source:s,positions:l,path:c,originalError:d,extensions:p}=EY(n);super(e),this.name="GraphQLError",this.path=c??void 0,this.originalError=d??void 0,this.nodes=qN(Array.isArray(a)?a:a?[a]:void 0);let h=qN((t=this.nodes)===null||t===void 0?void 0:t.map(_=>_.loc).filter(_=>_!=null));this.source=s??(h==null||(r=h[0])===null||r===void 0?void 0:r.source),this.positions=l??h?.map(_=>_.start),this.locations=l&&s?l.map(_=>Yu(s,_)):h?.map(_=>Yu(_.source,_.start));let g=UN(d?.extensions)?d?.extensions:void 0;this.extensions=(o=p??g)!==null&&o!==void 0?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),d!=null&&d.stack?Object.defineProperty(this,"stack",{value:d.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,i):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(e+=` + +`+u1(n.loc));else if(this.source&&this.locations)for(let n of this.locations)e+=` + +`+Lb(this.source,n);return e}toJSON(){let e={message:this.message};return this.locations!=null&&(e.locations=this.locations),this.path!=null&&(e.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}};function qN(i){return i===void 0||i.length===0?void 0:i}function $i(i,e,n){return new Vb(`Syntax Error: ${n}`,{source:i,positions:[e]})}var kh=class{constructor(e,n,t){this.start=e.start,this.end=n.end,this.startToken=e,this.endToken=n,this.source=t}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},Xu=class{constructor(e,n,t,r,o,a){this.kind=e,this.start=n,this.end=t,this.line=r,this.column=o,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},p1={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},TY=new Set(Object.keys(p1));function m1(i){let e=i?.kind;return typeof e=="string"&&TY.has(e)}var Lc=function(i){return i.QUERY="query",i.MUTATION="mutation",i.SUBSCRIPTION="subscription",i}(Lc||{});var jb=function(i){return i.QUERY="QUERY",i.MUTATION="MUTATION",i.SUBSCRIPTION="SUBSCRIPTION",i.FIELD="FIELD",i.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",i.FRAGMENT_SPREAD="FRAGMENT_SPREAD",i.INLINE_FRAGMENT="INLINE_FRAGMENT",i.VARIABLE_DEFINITION="VARIABLE_DEFINITION",i.SCHEMA="SCHEMA",i.SCALAR="SCALAR",i.OBJECT="OBJECT",i.FIELD_DEFINITION="FIELD_DEFINITION",i.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",i.INTERFACE="INTERFACE",i.UNION="UNION",i.ENUM="ENUM",i.ENUM_VALUE="ENUM_VALUE",i.INPUT_OBJECT="INPUT_OBJECT",i.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",i}(jb||{});var ke=function(i){return i.NAME="Name",i.DOCUMENT="Document",i.OPERATION_DEFINITION="OperationDefinition",i.VARIABLE_DEFINITION="VariableDefinition",i.SELECTION_SET="SelectionSet",i.FIELD="Field",i.ARGUMENT="Argument",i.FRAGMENT_SPREAD="FragmentSpread",i.INLINE_FRAGMENT="InlineFragment",i.FRAGMENT_DEFINITION="FragmentDefinition",i.VARIABLE="Variable",i.INT="IntValue",i.FLOAT="FloatValue",i.STRING="StringValue",i.BOOLEAN="BooleanValue",i.NULL="NullValue",i.ENUM="EnumValue",i.LIST="ListValue",i.OBJECT="ObjectValue",i.OBJECT_FIELD="ObjectField",i.DIRECTIVE="Directive",i.NAMED_TYPE="NamedType",i.LIST_TYPE="ListType",i.NON_NULL_TYPE="NonNullType",i.SCHEMA_DEFINITION="SchemaDefinition",i.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",i.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",i.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",i.FIELD_DEFINITION="FieldDefinition",i.INPUT_VALUE_DEFINITION="InputValueDefinition",i.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",i.UNION_TYPE_DEFINITION="UnionTypeDefinition",i.ENUM_TYPE_DEFINITION="EnumTypeDefinition",i.ENUM_VALUE_DEFINITION="EnumValueDefinition",i.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",i.DIRECTIVE_DEFINITION="DirectiveDefinition",i.SCHEMA_EXTENSION="SchemaExtension",i.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",i.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",i.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",i.UNION_TYPE_EXTENSION="UnionTypeExtension",i.ENUM_TYPE_EXTENSION="EnumTypeExtension",i.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",i}(ke||{});function Bb(i){return i===9||i===32}function Ju(i){return i>=48&&i<=57}function WN(i){return i>=97&&i<=122||i>=65&&i<=90}function h1(i){return WN(i)||i===95}function QN(i){return WN(i)||Ju(i)||i===95}function KN(i){var e;let n=Number.MAX_SAFE_INTEGER,t=null,r=-1;for(let a=0;as===0?a:a.slice(n)).slice((e=t)!==null&&e!==void 0?e:0,r+1)}function DY(i){let e=0;for(;e1&&t.slice(1).every(g=>g.length===0||Bb(g.charCodeAt(0))),a=n.endsWith('\\"""'),s=i.endsWith('"')&&!a,l=i.endsWith("\\"),c=s||l,d=!(e!=null&&e.minimize)&&(!r||i.length>70||c||o||a),p="",h=r&&Bb(i.charCodeAt(0));return(d&&!h||o)&&(p+=` +`),p+=n,(d||c)&&(p+=` +`),'"""'+p+'"""'}var oe=function(i){return i.SOF="",i.EOF="",i.BANG="!",i.DOLLAR="$",i.AMP="&",i.PAREN_L="(",i.PAREN_R=")",i.SPREAD="...",i.COLON=":",i.EQUALS="=",i.AT="@",i.BRACKET_L="[",i.BRACKET_R="]",i.BRACE_L="{",i.PIPE="|",i.BRACE_R="}",i.NAME="Name",i.INT="Int",i.FLOAT="Float",i.STRING="String",i.BLOCK_STRING="BlockString",i.COMMENT="Comment",i}(oe||{});var Mh=class{constructor(e){let n=new Xu(oe.SOF,0,0,0,0);this.source=e,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==oe.EOF)do if(e.next)e=e.next;else{let n=kY(this,e.end);e.next=n,n.prev=e,e=n}while(e.kind===oe.COMMENT);return e}};function JN(i){return i===oe.BANG||i===oe.DOLLAR||i===oe.AMP||i===oe.PAREN_L||i===oe.PAREN_R||i===oe.SPREAD||i===oe.COLON||i===oe.EQUALS||i===oe.AT||i===oe.BRACKET_L||i===oe.BRACKET_R||i===oe.BRACE_L||i===oe.PIPE||i===oe.BRACE_R}function Zu(i){return i>=0&&i<=55295||i>=57344&&i<=1114111}function zb(i,e){return ZN(i.charCodeAt(e))&&e2(i.charCodeAt(e+1))}function ZN(i){return i>=55296&&i<=56319}function e2(i){return i>=56320&&i<=57343}function Vc(i,e){let n=i.source.body.codePointAt(e);if(n===void 0)return oe.EOF;if(n>=32&&n<=126){let t=String.fromCodePoint(n);return t==='"'?`'"'`:`"${t}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Gi(i,e,n,t,r){let o=i.line,a=1+n-i.lineStart;return new Xu(e,n,t,o,a,r)}function kY(i,e){let n=i.source.body,t=n.length,r=e;for(;r=48&&i<=57?i-48:i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:-1}function NY(i,e){let n=i.source.body;switch(n.charCodeAt(e+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` +`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw $i(i.source,e,`Invalid character escape sequence: "${n.slice(e,e+2)}".`)}function FY(i,e){let n=i.source.body,t=n.length,r=i.lineStart,o=e+3,a=o,s="",l=[];for(;o2?"["+zY(i)+"]":"{ "+n.map(([r,o])=>r+": "+Hb(o,e)).join(", ")+" }"}function BY(i,e){if(i.length===0)return"[]";if(e.length>2)return"[Array]";let n=Math.min(10,i.length),t=i.length-n,r=[];for(let o=0;o1&&r.push(`... ${t} more items`),"["+r.join(", ")+"]"}function zY(i){let e=Object.prototype.toString.call(i).replace(/^\[object /,"").replace(/]$/,"");if(e==="Object"&&typeof i.constructor=="function"){let n=i.constructor.name;if(typeof n=="string"&&n!=="")return n}return e}var HY=globalThis.process&&!0,t2=HY?function(e,n){return e instanceof n}:function(e,n){if(e instanceof n)return!0;if(typeof e=="object"&&e!==null){var t;let r=n.prototype[Symbol.toStringTag],o=Symbol.toStringTag in e?e[Symbol.toStringTag]:(t=e.constructor)===null||t===void 0?void 0:t.name;if(r===o){let a=ep(e);throw new Error(`Cannot use ${r} "${a}" from another module or realm. + +Ensure that there is only one instance of "graphql" in the node_modules +directory. If different versions of "graphql" are the dependencies of other +relied on modules, use "resolutions" to ensure only one version is installed. + +https://yarnpkg.com/en/docs/selective-version-resolutions + +Duplicate "graphql" modules cannot be used at the same time since different +versions may have different capabilities and behavior. The data from one +version used in the function from another could produce confusing and +spurious results.`)}}return!1};var tp=class{constructor(e,n="GraphQL request",t={line:1,column:1}){typeof e=="string"||Ku(!1,`Body must be a string. Received: ${ep(e)}.`),this.body=e,this.name=n,this.locationOffset=t,this.locationOffset.line>0||Ku(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Ku(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};function i2(i){return t2(i,tp)}function $b(i,e){return new g1(i,e).parseDocument()}var g1=class{constructor(e,n={}){let t=i2(e)?e:new tp(e);this._lexer=new Mh(t),this._options=n,this._tokenCounter=0}parseName(){let e=this.expectToken(oe.NAME);return this.node(e,{kind:ke.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:ke.DOCUMENT,definitions:this.many(oe.SOF,this.parseDefinition,oe.EOF)})}parseDefinition(){if(this.peek(oe.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),n=e?this._lexer.lookahead():this._lexer.token;if(n.kind===oe.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw $i(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){let e=this._lexer.token;if(this.peek(oe.BRACE_L))return this.node(e,{kind:ke.OPERATION_DEFINITION,operation:Lc.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType(),t;return this.peek(oe.NAME)&&(t=this.parseName()),this.node(e,{kind:ke.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(oe.NAME);switch(e.value){case"query":return Lc.QUERY;case"mutation":return Lc.MUTATION;case"subscription":return Lc.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(oe.PAREN_L,this.parseVariableDefinition,oe.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:ke.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(oe.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(oe.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(oe.DOLLAR),this.node(e,{kind:ke.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:ke.SELECTION_SET,selections:this.many(oe.BRACE_L,this.parseSelection,oe.BRACE_R)})}parseSelection(){return this.peek(oe.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e=this._lexer.token,n=this.parseName(),t,r;return this.expectOptionalToken(oe.COLON)?(t=n,r=this.parseName()):r=n,this.node(e,{kind:ke.FIELD,alias:t,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(oe.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let n=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(oe.PAREN_L,n,oe.PAREN_R)}parseArgument(e=!1){let n=this._lexer.token,t=this.parseName();return this.expectToken(oe.COLON),this.node(n,{kind:ke.ARGUMENT,name:t,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(oe.SPREAD);let n=this.expectOptionalKeyword("on");return!n&&this.peek(oe.NAME)?this.node(e,{kind:ke.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:ke.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(e,{kind:ke.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:ke.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(e){let n=this._lexer.token;switch(n.kind){case oe.BRACKET_L:return this.parseList(e);case oe.BRACE_L:return this.parseObject(e);case oe.INT:return this.advanceLexer(),this.node(n,{kind:ke.INT,value:n.value});case oe.FLOAT:return this.advanceLexer(),this.node(n,{kind:ke.FLOAT,value:n.value});case oe.STRING:case oe.BLOCK_STRING:return this.parseStringLiteral();case oe.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:ke.BOOLEAN,value:!0});case"false":return this.node(n,{kind:ke.BOOLEAN,value:!1});case"null":return this.node(n,{kind:ke.NULL});default:return this.node(n,{kind:ke.ENUM,value:n.value})}case oe.DOLLAR:if(e)if(this.expectToken(oe.DOLLAR),this._lexer.token.kind===oe.NAME){let t=this._lexer.token.value;throw $i(this._lexer.source,n.start,`Unexpected variable "$${t}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:ke.STRING,value:e.value,block:e.kind===oe.BLOCK_STRING})}parseList(e){let n=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:ke.LIST,values:this.any(oe.BRACKET_L,n,oe.BRACKET_R)})}parseObject(e){let n=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:ke.OBJECT,fields:this.any(oe.BRACE_L,n,oe.BRACE_R)})}parseObjectField(e){let n=this._lexer.token,t=this.parseName();return this.expectToken(oe.COLON),this.node(n,{kind:ke.OBJECT_FIELD,name:t,value:this.parseValueLiteral(e)})}parseDirectives(e){let n=[];for(;this.peek(oe.AT);)n.push(this.parseDirective(e));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let n=this._lexer.token;return this.expectToken(oe.AT),this.node(n,{kind:ke.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e=this._lexer.token,n;if(this.expectOptionalToken(oe.BRACKET_L)){let t=this.parseTypeReference();this.expectToken(oe.BRACKET_R),n=this.node(e,{kind:ke.LIST_TYPE,type:t})}else n=this.parseNamedType();return this.expectOptionalToken(oe.BANG)?this.node(e,{kind:ke.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:ke.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(oe.STRING)||this.peek(oe.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");let t=this.parseConstDirectives(),r=this.many(oe.BRACE_L,this.parseOperationTypeDefinition,oe.BRACE_R);return this.node(e,{kind:ke.SCHEMA_DEFINITION,description:n,directives:t,operationTypes:r})}parseOperationTypeDefinition(){let e=this._lexer.token,n=this.parseOperationType();this.expectToken(oe.COLON);let t=this.parseNamedType();return this.node(e,{kind:ke.OPERATION_TYPE_DEFINITION,operation:n,type:t})}parseScalarTypeDefinition(){let e=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");let t=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:ke.SCALAR_TYPE_DEFINITION,description:n,name:t,directives:r})}parseObjectTypeDefinition(){let e=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");let t=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:ke.OBJECT_TYPE_DEFINITION,description:n,name:t,interfaces:r,directives:o,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(oe.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(oe.BRACE_L,this.parseFieldDefinition,oe.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,n=this.parseDescription(),t=this.parseName(),r=this.parseArgumentDefs();this.expectToken(oe.COLON);let o=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:ke.FIELD_DEFINITION,description:n,name:t,arguments:r,type:o,directives:a})}parseArgumentDefs(){return this.optionalMany(oe.PAREN_L,this.parseInputValueDef,oe.PAREN_R)}parseInputValueDef(){let e=this._lexer.token,n=this.parseDescription(),t=this.parseName();this.expectToken(oe.COLON);let r=this.parseTypeReference(),o;this.expectOptionalToken(oe.EQUALS)&&(o=this.parseConstValueLiteral());let a=this.parseConstDirectives();return this.node(e,{kind:ke.INPUT_VALUE_DEFINITION,description:n,name:t,type:r,defaultValue:o,directives:a})}parseInterfaceTypeDefinition(){let e=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");let t=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:ke.INTERFACE_TYPE_DEFINITION,description:n,name:t,interfaces:r,directives:o,fields:a})}parseUnionTypeDefinition(){let e=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");let t=this.parseName(),r=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(e,{kind:ke.UNION_TYPE_DEFINITION,description:n,name:t,directives:r,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(oe.EQUALS)?this.delimitedMany(oe.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");let t=this.parseName(),r=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(e,{kind:ke.ENUM_TYPE_DEFINITION,description:n,name:t,directives:r,values:o})}parseEnumValuesDefinition(){return this.optionalMany(oe.BRACE_L,this.parseEnumValueDefinition,oe.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,n=this.parseDescription(),t=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:ke.ENUM_VALUE_DEFINITION,description:n,name:t,directives:r})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw $i(this._lexer.source,this._lexer.token.start,`${Ub(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");let t=this.parseName(),r=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(e,{kind:ke.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:t,directives:r,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(oe.BRACE_L,this.parseInputValueDef,oe.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===oe.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let n=this.parseConstDirectives(),t=this.optionalMany(oe.BRACE_L,this.parseOperationTypeDefinition,oe.BRACE_R);if(n.length===0&&t.length===0)throw this.unexpected();return this.node(e,{kind:ke.SCHEMA_EXTENSION,directives:n,operationTypes:t})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let n=this.parseName(),t=this.parseConstDirectives();if(t.length===0)throw this.unexpected();return this.node(e,{kind:ke.SCALAR_TYPE_EXTENSION,name:n,directives:t})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let n=this.parseName(),t=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(t.length===0&&r.length===0&&o.length===0)throw this.unexpected();return this.node(e,{kind:ke.OBJECT_TYPE_EXTENSION,name:n,interfaces:t,directives:r,fields:o})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let n=this.parseName(),t=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(t.length===0&&r.length===0&&o.length===0)throw this.unexpected();return this.node(e,{kind:ke.INTERFACE_TYPE_EXTENSION,name:n,interfaces:t,directives:r,fields:o})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let n=this.parseName(),t=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(t.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:ke.UNION_TYPE_EXTENSION,name:n,directives:t,types:r})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let n=this.parseName(),t=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(t.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:ke.ENUM_TYPE_EXTENSION,name:n,directives:t,values:r})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let n=this.parseName(),t=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(t.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:ke.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:t,fields:r})}parseDirectiveDefinition(){let e=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(oe.AT);let t=this.parseName(),r=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let a=this.parseDirectiveLocations();return this.node(e,{kind:ke.DIRECTIVE_DEFINITION,description:n,name:t,arguments:r,repeatable:o,locations:a})}parseDirectiveLocations(){return this.delimitedMany(oe.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(jb,n.value))return n;throw this.unexpected(e)}node(e,n){return this._options.noLocation!==!0&&(n.loc=new kh(e,this._lexer.lastToken,this._lexer.source)),n}peek(e){return this._lexer.token.kind===e}expectToken(e){let n=this._lexer.token;if(n.kind===e)return this.advanceLexer(),n;throw $i(this._lexer.source,n.start,`Expected ${n2(e)}, found ${Ub(n)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e?(this.advanceLexer(),!0):!1}expectKeyword(e){let n=this._lexer.token;if(n.kind===oe.NAME&&n.value===e)this.advanceLexer();else throw $i(this._lexer.source,n.start,`Expected "${e}", found ${Ub(n)}.`)}expectOptionalKeyword(e){let n=this._lexer.token;return n.kind===oe.NAME&&n.value===e?(this.advanceLexer(),!0):!1}unexpected(e){let n=e??this._lexer.token;return $i(this._lexer.source,n.start,`Unexpected ${Ub(n)}.`)}any(e,n,t){this.expectToken(e);let r=[];for(;!this.expectOptionalToken(t);)r.push(n.call(this));return r}optionalMany(e,n,t){if(this.expectOptionalToken(e)){let r=[];do r.push(n.call(this));while(!this.expectOptionalToken(t));return r}return[]}many(e,n,t){this.expectToken(e);let r=[];do r.push(n.call(this));while(!this.expectOptionalToken(t));return r}delimitedMany(e,n){this.expectOptionalToken(e);let t=[];do t.push(n.call(this));while(this.expectOptionalToken(e));return t}advanceLexer(){let{maxTokens:e}=this._options,n=this._lexer.advance();if(e!==void 0&&n.kind!==oe.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw $i(this._lexer.source,n.start,`Document contains more that ${e} tokens. Parsing aborted.`)}};function Ub(i){let e=i.value;return n2(i.kind)+(e!=null?` "${e}"`:"")}function n2(i){return JN(i)?`"${i}"`:i}function r2(i){return`"${i.replace(UY,$Y)}"`}var UY=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function $Y(i){return GY[i.charCodeAt(0)]}var GY=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var jc=Object.freeze({});function Bn(i,e,n=p1){let t=new Map;for(let D of Object.values(ke))t.set(D,_1(e,D));let r,o=Array.isArray(i),a=[i],s=-1,l=[],c=i,d,p,h=[],g=[];do{s++;let D=s===a.length,O=D&&l.length!==0;if(D){if(d=g.length===0?void 0:h[h.length-1],c=p,p=g.pop(),O)if(o){c=c.slice();let L=0;for(let[V,he]of l){let Z=V-L;he===null?(c.splice(Z,1),L++):c[Z]=he}}else{c=Object.defineProperties({},Object.getOwnPropertyDescriptors(c));for(let[L,V]of l)c[L]=V}s=r.index,a=r.keys,l=r.edits,o=r.inArray,r=r.prev}else if(p){if(d=o?s:a[s],c=p[d],c==null)continue;h.push(d)}let I;if(!Array.isArray(c)){var _,S;m1(c)||Ku(!1,`Invalid AST Node: ${ep(c)}.`);let L=D?(_=t.get(c.kind))===null||_===void 0?void 0:_.leave:(S=t.get(c.kind))===null||S===void 0?void 0:S.enter;if(I=L?.call(e,c,d,p,h,g),I===jc)break;if(I===!1){if(!D){h.pop();continue}}else if(I!==void 0&&(l.push([d,I]),!D))if(m1(I))c=I;else{h.pop();continue}}if(I===void 0&&O&&l.push([d,c]),D)h.pop();else{var E;r={inArray:o,index:s,keys:a,edits:l,prev:r},o=Array.isArray(c),a=o?c:(E=n[c.kind])!==null&&E!==void 0?E:[],s=-1,l=[],p&&g.push(p),p=c}}while(r!==void 0);return l.length!==0?l[l.length-1][1]:i}function _1(i,e){let n=i[e];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:i.enter,leave:i.leave}}function qb(i){return Bn(i,WY)}var qY=80,WY={Name:{leave:i=>i.value},Variable:{leave:i=>"$"+i.name},Document:{leave:i=>Fe(i.definitions,` + +`)},OperationDefinition:{leave(i){let e=kt("(",Fe(i.variableDefinitions,", "),")"),n=Fe([i.operation,Fe([i.name,e]),Fe(i.directives," ")]," ");return(n==="query"?"":n+" ")+i.selectionSet}},VariableDefinition:{leave:({variable:i,type:e,defaultValue:n,directives:t})=>i+": "+e+kt(" = ",n)+kt(" ",Fe(t," "))},SelectionSet:{leave:({selections:i})=>Qo(i)},Field:{leave({alias:i,name:e,arguments:n,directives:t,selectionSet:r}){let o=kt("",i,": ")+e,a=o+kt("(",Fe(n,", "),")");return a.length>qY&&(a=o+kt(`( +`,Gb(Fe(n,` +`)),` +)`)),Fe([a,Fe(t," "),r]," ")}},Argument:{leave:({name:i,value:e})=>i+": "+e},FragmentSpread:{leave:({name:i,directives:e})=>"..."+i+kt(" ",Fe(e," "))},InlineFragment:{leave:({typeCondition:i,directives:e,selectionSet:n})=>Fe(["...",kt("on ",i),Fe(e," "),n]," ")},FragmentDefinition:{leave:({name:i,typeCondition:e,variableDefinitions:n,directives:t,selectionSet:r})=>`fragment ${i}${kt("(",Fe(n,", "),")")} on ${e} ${kt("",Fe(t," ")," ")}`+r},IntValue:{leave:({value:i})=>i},FloatValue:{leave:({value:i})=>i},StringValue:{leave:({value:i,block:e})=>e?YN(i):r2(i)},BooleanValue:{leave:({value:i})=>i?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:i})=>i},ListValue:{leave:({values:i})=>"["+Fe(i,", ")+"]"},ObjectValue:{leave:({fields:i})=>"{"+Fe(i,", ")+"}"},ObjectField:{leave:({name:i,value:e})=>i+": "+e},Directive:{leave:({name:i,arguments:e})=>"@"+i+kt("(",Fe(e,", "),")")},NamedType:{leave:({name:i})=>i},ListType:{leave:({type:i})=>"["+i+"]"},NonNullType:{leave:({type:i})=>i+"!"},SchemaDefinition:{leave:({description:i,directives:e,operationTypes:n})=>kt("",i,` +`)+Fe(["schema",Fe(e," "),Qo(n)]," ")},OperationTypeDefinition:{leave:({operation:i,type:e})=>i+": "+e},ScalarTypeDefinition:{leave:({description:i,name:e,directives:n})=>kt("",i,` +`)+Fe(["scalar",e,Fe(n," ")]," ")},ObjectTypeDefinition:{leave:({description:i,name:e,interfaces:n,directives:t,fields:r})=>kt("",i,` +`)+Fe(["type",e,kt("implements ",Fe(n," & ")),Fe(t," "),Qo(r)]," ")},FieldDefinition:{leave:({description:i,name:e,arguments:n,type:t,directives:r})=>kt("",i,` +`)+e+(o2(n)?kt(`( +`,Gb(Fe(n,` +`)),` +)`):kt("(",Fe(n,", "),")"))+": "+t+kt(" ",Fe(r," "))},InputValueDefinition:{leave:({description:i,name:e,type:n,defaultValue:t,directives:r})=>kt("",i,` +`)+Fe([e+": "+n,kt("= ",t),Fe(r," ")]," ")},InterfaceTypeDefinition:{leave:({description:i,name:e,interfaces:n,directives:t,fields:r})=>kt("",i,` +`)+Fe(["interface",e,kt("implements ",Fe(n," & ")),Fe(t," "),Qo(r)]," ")},UnionTypeDefinition:{leave:({description:i,name:e,directives:n,types:t})=>kt("",i,` +`)+Fe(["union",e,Fe(n," "),kt("= ",Fe(t," | "))]," ")},EnumTypeDefinition:{leave:({description:i,name:e,directives:n,values:t})=>kt("",i,` +`)+Fe(["enum",e,Fe(n," "),Qo(t)]," ")},EnumValueDefinition:{leave:({description:i,name:e,directives:n})=>kt("",i,` +`)+Fe([e,Fe(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:i,name:e,directives:n,fields:t})=>kt("",i,` +`)+Fe(["input",e,Fe(n," "),Qo(t)]," ")},DirectiveDefinition:{leave:({description:i,name:e,arguments:n,repeatable:t,locations:r})=>kt("",i,` +`)+"directive @"+e+(o2(n)?kt(`( +`,Gb(Fe(n,` +`)),` +)`):kt("(",Fe(n,", "),")"))+(t?" repeatable":"")+" on "+Fe(r," | ")},SchemaExtension:{leave:({directives:i,operationTypes:e})=>Fe(["extend schema",Fe(i," "),Qo(e)]," ")},ScalarTypeExtension:{leave:({name:i,directives:e})=>Fe(["extend scalar",i,Fe(e," ")]," ")},ObjectTypeExtension:{leave:({name:i,interfaces:e,directives:n,fields:t})=>Fe(["extend type",i,kt("implements ",Fe(e," & ")),Fe(n," "),Qo(t)]," ")},InterfaceTypeExtension:{leave:({name:i,interfaces:e,directives:n,fields:t})=>Fe(["extend interface",i,kt("implements ",Fe(e," & ")),Fe(n," "),Qo(t)]," ")},UnionTypeExtension:{leave:({name:i,directives:e,types:n})=>Fe(["extend union",i,Fe(e," "),kt("= ",Fe(n," | "))]," ")},EnumTypeExtension:{leave:({name:i,directives:e,values:n})=>Fe(["extend enum",i,Fe(e," "),Qo(n)]," ")},InputObjectTypeExtension:{leave:({name:i,directives:e,fields:n})=>Fe(["extend input",i,Fe(e," "),Qo(n)]," ")}};function Fe(i,e=""){var n;return(n=i?.filter(t=>t).join(e))!==null&&n!==void 0?n:""}function Qo(i){return kt(`{ +`,Gb(Fe(i,` +`)),` +}`)}function kt(i,e,n=""){return e!=null&&e!==""?i+e+n:""}function Gb(i){return kt(" ",i.replace(/\n/g,` + `))}function o2(i){var e;return(e=i?.some(n=>n.includes(` +`)))!==null&&e!==void 0?e:!1}function Oh(i){return i.kind===ke.FIELD||i.kind===ke.FRAGMENT_SPREAD||i.kind===ke.INLINE_FRAGMENT}function Ko(i,e){var n=i.directives;return!n||!n.length?!0:a2(n).every(function(t){var r=t.directive,o=t.ifArgument,a=!1;return o.value.kind==="Variable"?(a=e&&e[o.value.name.value],Oe(a!==void 0,70,r.name.value)):a=o.value.value,r.name.value==="skip"?!a:a})}function Za(i,e,n){var t=new Set(i),r=t.size;return Bn(e,{Directive:function(o){if(t.delete(o.name.value)&&(!n||!t.size))return jc}}),n?!t.size:t.sizeObject.create(null),{forEach:dX,slice:s2}=Array.prototype,{hasOwnProperty:uX}=Object.prototype,eo=class i{constructor(e=!0,n=cX){this.weakness=e,this.makeData=n}lookup(){return this.lookupArray(arguments)}lookupArray(e){let n=this;return dX.call(e,t=>n=n.getChildTrie(t)),uX.call(n,"data")?n.data:n.data=this.makeData(s2.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let n=this;for(let t=0,r=e.length;n&&t=0})||!1;function Nt(i){return i!==null&&typeof i=="object"}function y1(i,e){var n=e,t=[];i.definitions.forEach(function(o){if(o.kind==="OperationDefinition")throw ii(74,o.operation,o.name?" named '".concat(o.name.value,"'"):"");o.kind==="FragmentDefinition"&&t.push(o)}),typeof n>"u"&&(Oe(t.length===1,75,t.length),n=t[0].name.value);var r=j(j({},i),{definitions:Ui([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],i.definitions,!0)});return r}function es(i){i===void 0&&(i=[]);var e={};return i.forEach(function(n){e[n.name.value]=n}),e}function ts(i,e){switch(i.kind){case"InlineFragment":return i;case"FragmentSpread":{var n=i.name.value;if(typeof e=="function")return e(n);var t=e&&e[n];return Oe(t,76,n),t||null}default:return null}}function hX(){}var Cl=class{constructor(e=1/0,n=hX){this.max=e,this.dispose=n,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){let n=this.getNode(e);return n&&n.value}get size(){return this.map.size}getNode(e){let n=this.map.get(e);if(n&&n!==this.newest){let{older:t,newer:r}=n;r&&(r.older=t),t&&(t.newer=r),n.older=this.newest,n.older.newer=n,n.newer=null,this.newest=n,n===this.oldest&&(this.oldest=r)}return n}set(e,n){let t=this.getNode(e);return t?t.value=n:(t={key:e,value:n,newer:null,older:this.newest},this.newest&&(this.newest.newer=t),this.newest=t,this.oldest=this.oldest||t,this.map.set(e,t),t.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){let n=this.map.get(e);return n?(n===this.newest&&(this.newest=n.older),n===this.oldest&&(this.oldest=n.newer),n.newer&&(n.newer.older=n.older),n.older&&(n.older.newer=n.newer),this.map.delete(e),this.dispose(n.value,e),!0):!1}};function C1(){}var fX=C1,gX=typeof WeakRef<"u"?WeakRef:function(i){return{deref:()=>i}},_X=typeof WeakMap<"u"?WeakMap:Map,bX=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:C1,unregister:C1}},vX=10024,ya=class{constructor(e=1/0,n=fX){this.max=e,this.dispose=n,this.map=new _X,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{let t=this.unfinalizedNodes.values();for(let r=0;r0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new bX(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){let n=this.getNode(e);return n&&n.value}getNode(e){let n=this.map.get(e);if(n&&n!==this.newest){let{older:t,newer:r}=n;r&&(r.older=t),t&&(t.newer=r),n.older=this.newest,n.older.newer=n,n.newer=null,this.newest=n,n===this.oldest&&(this.oldest=r)}return n}set(e,n){let t=this.getNode(e);return t?t.value=n:(t={key:e,value:n,newer:null,older:this.newest},this.newest&&(this.newest.newer=t),this.newest=t,this.oldest=this.oldest||t,this.scheduleFinalization(t),this.map.set(e,t),this.size++,t.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;let n=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,n),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),n&&this.map.delete(n)}delete(e){let n=this.map.get(e);return n?(this.deleteNode(n),!0):!1}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}};var x1=new WeakSet;function l2(i){i.size<=(i.max||-1)||x1.has(i)||(x1.add(i),setTimeout(function(){i.clean(),x1.delete(i)},100))}var ip=function(i,e){var n=new ya(i,e);return n.set=function(t,r){var o=ya.prototype.set.call(this,t,r);return l2(this),o},n},Qb=function(i,e){var n=new Cl(i,e);return n.set=function(t,r){var o=Cl.prototype.set.call(this,t,r);return l2(this),o},n};var yX=Symbol.for("apollo.cacheSize"),tn=j({},Qu[yX]);var Bc={};function Kb(i,e){Bc[i]=e}var c2=globalThis.__DEV__!==!1?xX:void 0,d2=globalThis.__DEV__!==!1?wX:void 0,u2=globalThis.__DEV__!==!1?p2:void 0;function CX(){var i={parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4};return Object.fromEntries(Object.entries(i).map(function(e){var n=e[0],t=e[1];return[n,tn[n]||t]}))}function xX(){var i,e,n,t,r;if(globalThis.__DEV__===!1)throw new Error("only supported in development mode");return{limits:CX(),sizes:j({print:(i=Bc.print)===null||i===void 0?void 0:i.call(Bc),parser:(e=Bc.parser)===null||e===void 0?void 0:e.call(Bc),canonicalStringify:(n=Bc.canonicalStringify)===null||n===void 0?void 0:n.call(Bc),links:S1(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:h2(this.queryManager.documentTransform)}},(r=(t=this.cache).getMemoryInternals)===null||r===void 0?void 0:r.call(t))}}function p2(){return{cache:{fragmentQueryDocuments:xl(this.getFragmentDoc)}}}function wX(){var i=this.config.fragments;return j(j({},p2.apply(this)),{addTypenameDocumentTransform:h2(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:xl(this.storeReader.executeSelectionSet),executeSubSelectedArray:xl(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:xl(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:xl(i?.findFragmentSpreads),lookup:xl(i?.lookup),transform:xl(i?.transform)}})}function SX(i){return!!i&&"dirtyKey"in i}function xl(i){return SX(i)?i.size:void 0}function m2(i){return i!=null}function h2(i){return w1(i).map(function(e){return{cache:e}})}function w1(i){return i?Ui(Ui([xl(i?.performWork)],w1(i?.left),!0),w1(i?.right),!0).filter(m2):[]}function S1(i){var e;return i?Ui(Ui([(e=i?.getMemoryInternals)===null||e===void 0?void 0:e.call(i)],S1(i?.left),!0),S1(i?.right),!0).filter(m2):[]}var sr=Object.assign(function(e){return JSON.stringify(e,EX)},{reset:function(){np=new Qb(tn.canonicalStringify||1e3)}});globalThis.__DEV__!==!1&&Kb("canonicalStringify",function(){return np.size});var np;sr.reset();function EX(i,e){if(e&&typeof e=="object"){var n=Object.getPrototypeOf(e);if(n===Object.prototype||n===null){var t=Object.keys(e);if(t.every(TX))return e;var r=JSON.stringify(t),o=np.get(r);if(!o){t.sort();var a=JSON.stringify(t);o=np.get(a)||t,np.set(r,o),np.set(a,o)}var s=Object.create(n);return o.forEach(function(l){s[l]=e[l]}),s}}return e}function TX(i,e,n){return e===0||n[e-1]<=i}function Xo(i){return{__ref:String(i)}}function xt(i){return!!(i&&typeof i=="object"&&typeof i.__ref=="string")}function E1(i){return Nt(i)&&i.kind==="Document"&&Array.isArray(i.definitions)}function DX(i){return i.kind==="StringValue"}function kX(i){return i.kind==="BooleanValue"}function IX(i){return i.kind==="IntValue"}function MX(i){return i.kind==="FloatValue"}function OX(i){return i.kind==="Variable"}function AX(i){return i.kind==="ObjectValue"}function RX(i){return i.kind==="ListValue"}function NX(i){return i.kind==="EnumValue"}function FX(i){return i.kind==="NullValue"}function wl(i,e,n,t){if(IX(n)||MX(n))i[e.value]=Number(n.value);else if(kX(n)||DX(n))i[e.value]=n.value;else if(AX(n)){var r={};n.fields.map(function(a){return wl(r,a.name,a.value,t)}),i[e.value]=r}else if(OX(n)){var o=(t||{})[n.name.value];i[e.value]=o}else if(RX(n))i[e.value]=n.values.map(function(a){var s={};return wl(s,e,a,t),s[e.value]});else if(NX(n))i[e.value]=n.value;else if(FX(n))i[e.value]=null;else throw ii(85,e.value,n.kind)}function T1(i,e){var n=null;i.directives&&(n={},i.directives.forEach(function(r){n[r.name.value]={},r.arguments&&r.arguments.forEach(function(o){var a=o.name,s=o.value;return wl(n[r.name.value],a,s,e)})}));var t=null;return i.arguments&&i.arguments.length&&(t={},i.arguments.forEach(function(r){var o=r.name,a=r.value;return wl(t,o,a,e)})),Yb(i.name.value,t,n)}var PX=["connection","include","skip","client","rest","export","nonreactive"],Ah=sr,Yb=Object.assign(function(i,e,n){if(e&&n&&n.connection&&n.connection.key)if(n.connection.filter&&n.connection.filter.length>0){var t=n.connection.filter?n.connection.filter:[];t.sort();var r={};return t.forEach(function(s){r[s]=e[s]}),"".concat(n.connection.key,"(").concat(Ah(r),")")}else return n.connection.key;var o=i;if(e){var a=Ah(e);o+="(".concat(a,")")}return n&&Object.keys(n).forEach(function(s){PX.indexOf(s)===-1&&(n[s]&&Object.keys(n[s]).length?o+="@".concat(s,"(").concat(Ah(n[s]),")"):o+="@".concat(s))}),o},{setStringify:function(i){var e=Ah;return Ah=i,e}});function is(i,e){if(i.arguments&&i.arguments.length){var n={};return i.arguments.forEach(function(t){var r=t.name,o=t.value;return wl(n,r,o,e)}),n}return null}function Nr(i){return i.alias?i.alias.value:i.name.value}function Rh(i,e,n){for(var t,r=0,o=e.selections;rObject.create(null),{forEach:VX,slice:jX}=Array.prototype,{hasOwnProperty:BX}=Object.prototype,Xb=class i{constructor(e=!0,n=LX){this.weakness=e,this.makeData=n}lookup(...e){return this.lookupArray(e)}lookupArray(e){let n=this;return VX.call(e,t=>n=n.getChildTrie(t)),BX.call(n,"data")?n.data:n.data=this.makeData(jX.call(e))}peek(...e){return this.peekArray(e)}peekArray(e){let n=this;for(let t=0,r=e.length;n&&tclass{constructor(){this.id=["slot",zX++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=vn;e;e=e.parent)if(this.id in e.slots){let n=e.slots[this.id];if(n===g2)break;return e!==vn&&(vn.slots[this.id]=n),!0}return vn&&(vn.slots[this.id]=g2),!1}getValue(){if(this.hasValue())return vn.slots[this.id]}withValue(e,n,t,r){let o={__proto__:null,[this.id]:e},a=vn;vn={parent:a,slots:o};try{return n.apply(r,t)}finally{vn=a}}static bind(e){let n=vn;return function(){let t=vn;try{return vn=n,e.apply(this,arguments)}finally{vn=t}}}static noContext(e,n,t){if(vn){let r=vn;try{return vn=null,e.apply(t,n)}finally{vn=r}}else return e.apply(t,n)}};function _2(i){try{return i()}catch{}}var I1="@wry/context:Slot",UX=_2(()=>globalThis)||_2(()=>global)||Object.create(null),b2=UX,Hc=b2[I1]||Array[I1]||function(i){try{Object.defineProperty(b2,I1,{value:i,enumerable:!1,writable:!1,configurable:!0})}finally{return i}}(HX());var{bind:v2,noContext:y2}=Hc;var Uc=new Hc;var{hasOwnProperty:C2}=Object.prototype,Fh=Array.from||function(i){let e=[];return i.forEach(n=>e.push(n)),e};function op(i){let{unsubscribe:e}=i;typeof e=="function"&&(i.unsubscribe=void 0,e())}var Ph=[],qX=100;function ap(i,e){if(!i)throw new Error(e||"assertion failure")}function w2(i,e){let n=i.length;return n>0&&n===e.length&&i[n-1]===e[n-1]}function S2(i){switch(i.length){case 0:throw new Error("unknown value");case 1:return i[0];case 2:throw i[1]}}function E2(i){return i.slice(0)}var T2=(()=>{class i{constructor(n){this.fn=n,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++i.count}peek(){if(this.value.length===1&&!El(this))return x2(this),this.value[0]}recompute(n){return ap(!this.recomputing,"already recomputing"),x2(this),El(this)?WX(this,n):S2(this.value)}setDirty(){this.dirty||(this.dirty=!0,D2(this),op(this))}dispose(){this.setDirty(),A2(this),M1(this,(n,t)=>{n.setDirty(),R2(n,this)})}forget(){this.dispose()}dependOn(n){n.add(this),this.deps||(this.deps=Ph.pop()||new Set),this.deps.add(n)}forgetDeps(){this.deps&&(Fh(this.deps).forEach(n=>n.delete(this)),this.deps.clear(),Ph.push(this.deps),this.deps=null)}}return i.count=0,i})();function x2(i){let e=Uc.getValue();if(e)return i.parents.add(e),e.childValues.has(i)||e.childValues.set(i,[]),El(i)?I2(e,i):M2(e,i),e}function WX(i,e){return A2(i),Uc.withValue(i,QX,[i,e]),YX(i,e)&&KX(i),S2(i.value)}function QX(i,e){i.recomputing=!0;let{normalizeResult:n}=i,t;n&&i.value.length===1&&(t=E2(i.value)),i.value.length=0;try{if(i.value[0]=i.fn.apply(null,e),n&&t&&!w2(t,i.value))try{i.value[0]=n(i.value[0],t[0])}catch{}}catch(r){i.value[1]=r}i.recomputing=!1}function El(i){return i.dirty||!!(i.dirtyChildren&&i.dirtyChildren.size)}function KX(i){i.dirty=!1,!El(i)&&k2(i)}function D2(i){M1(i,I2)}function k2(i){M1(i,M2)}function M1(i,e){let n=i.parents.size;if(n){let t=Fh(i.parents);for(let r=0;r0&&i.childValues.forEach((e,n)=>{R2(i,n)}),i.forgetDeps(),ap(i.dirtyChildren===null)}function R2(i,e){e.parents.delete(i),i.childValues.delete(e),O2(i,e)}function YX(i,e){if(typeof i.subscribe=="function")try{op(i),i.unsubscribe=i.subscribe.apply(null,e)}catch{return i.setDirty(),!1}return!0}var XX={setDirty:!0,dispose:!0,forget:!0};function Lh(i){let e=new Map,n=i&&i.subscribe;function t(r){let o=Uc.getValue();if(o){let a=e.get(r);a||e.set(r,a=new Set),o.dependOn(a),typeof n=="function"&&(op(a),a.unsubscribe=n(r))}}return t.dirty=function(o,a){let s=e.get(o);if(s){let l=a&&C2.call(XX,a)?a:"setDirty";Fh(s).forEach(c=>c[l]()),e.delete(o),op(s)}},t}var N2;function JX(...i){return(N2||(N2=new Xb(typeof WeakMap=="function"))).lookupArray(i)}var O1=new Set;function rs(i,{max:e=Math.pow(2,16),keyArgs:n,makeCacheKey:t=JX,normalizeResult:r,subscribe:o,cache:a=Cl}=Object.create(null)){let s=typeof a=="function"?new a(e,h=>h.dispose()):a,l=function(){let h=t.apply(null,n?n.apply(null,arguments):arguments);if(h===void 0)return i.apply(null,arguments);let g=s.get(h);g||(s.set(h,g=new T2(i)),g.normalizeResult=r,g.subscribe=o,g.forget=()=>s.delete(h));let _=g.recompute(Array.prototype.slice.call(arguments));return s.set(h,g),O1.add(s),Uc.hasValue()||(O1.forEach(S=>S.clean()),O1.clear()),_};Object.defineProperty(l,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(l.options={max:e,keyArgs:n,makeCacheKey:t,normalizeResult:r,subscribe:o,cache:s});function c(h){let g=h&&s.get(h);g&&g.setDirty()}l.dirtyKey=c,l.dirty=function(){c(t.apply(null,arguments))};function d(h){let g=h&&s.get(h);if(g)return g.peek()}l.peekKey=d,l.peek=function(){return d(t.apply(null,arguments))};function p(h){return h?s.delete(h):!1}return l.forgetKey=p,l.forget=function(){return p(t.apply(null,arguments))},l.makeCacheKey=t,l.getKey=n?function(){return t.apply(null,n.apply(null,arguments))}:t,Object.freeze(l)}function ZX(i){return i}var Vh=function(){function i(e,n){n===void 0&&(n=Object.create(null)),this.resultCache=Wb?new WeakSet:new Set,this.transform=e,n.getCacheKey&&(this.getCacheKey=n.getCacheKey),this.cached=n.cache!==!1,this.resetCache()}return i.prototype.getCacheKey=function(e){return[e]},i.identity=function(){return new i(ZX,{cache:!1})},i.split=function(e,n,t){return t===void 0&&(t=i.identity()),Object.assign(new i(function(r){var o=e(r)?n:t;return o.transformDocument(r)},{cache:!1}),{left:n,right:t})},i.prototype.resetCache=function(){var e=this;if(this.cached){var n=new eo(Yo);this.performWork=rs(i.prototype.performWork.bind(this),{makeCacheKey:function(t){var r=e.getCacheKey(t);if(r)return Oe(Array.isArray(r),69),n.lookupArray(r)},max:tn["documentTransform.cache"],cache:ya})}},i.prototype.performWork=function(e){return Sl(e),this.transform(e)},i.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var n=this.performWork(e);return this.resultCache.add(n),n},i.prototype.concat=function(e){var n=this;return Object.assign(new i(function(t){return e.transformDocument(n.transformDocument(t))},{cache:!1}),{left:this,right:e})},i}();var jh,Tl=Object.assign(function(i){var e=jh.get(i);return e||(e=qb(i),jh.set(i,e)),e},{reset:function(){jh=new ip(tn.print||2e3)}});Tl.reset();globalThis.__DEV__!==!1&&Kb("print",function(){return jh?jh.size:0});var Zt=Array.isArray;function yn(i){return Array.isArray(i)&&i.length>0}var F2={kind:ke.FIELD,name:{kind:ke.NAME,value:"__typename"}};function L2(i,e){return!i||i.selectionSet.selections.every(function(n){return n.kind===ke.FRAGMENT_SPREAD&&L2(e[n.name.value],e)})}function eJ(i){return L2(Ca(i)||k1(i),es(ns(i)))?null:i}function tJ(i){var e=new Map,n=new Map;return i.forEach(function(t){t&&(t.name?e.set(t.name,t):t.test&&n.set(t.test,t))}),function(t){var r=e.get(t.name.value);return!r&&n.size&&n.forEach(function(o,a){a(t)&&(r=o)}),r}}function P2(i){var e=new Map;return function(t){t===void 0&&(t=i);var r=e.get(t);return r||e.set(t,r={variables:new Set,fragmentSpreads:new Set}),r}}function Jb(i,e){Sl(e);for(var n=P2(""),t=P2(""),r=function(D){for(var O=0,I=void 0;O=0;--a)e.definitions[a].kind===ke.OPERATION_DEFINITION&&++o;var s=tJ(i),l=function(D){return yn(D)&&D.map(s).some(function(O){return O&&O.remove})},c=new Map,d=!1,p={enter:function(D){if(l(D.directives))return d=!0,null}},h=Bn(e,{Field:p,InlineFragment:p,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(D,O,I,L,V){var he=r(V);he&&he.variables.add(D.name.value)}},FragmentSpread:{enter:function(D,O,I,L,V){if(l(D.directives))return d=!0,null;var he=r(V);he&&he.fragmentSpreads.add(D.name.value)}},FragmentDefinition:{enter:function(D,O,I,L){c.set(JSON.stringify(L),D)},leave:function(D,O,I,L){var V=c.get(JSON.stringify(L));if(D===V)return D;if(o>0&&D.selectionSet.selections.every(function(he){return he.kind===ke.FIELD&&he.name.value==="__typename"}))return t(D.name.value).removed=!0,d=!0,null}},Directive:{leave:function(D){if(s(D))return d=!0,null}}});if(!d)return e;var g=function(D){return D.transitiveVars||(D.transitiveVars=new Set(D.variables),D.removed||D.fragmentSpreads.forEach(function(O){g(t(O)).transitiveVars.forEach(function(I){D.transitiveVars.add(I)})})),D},_=new Set;h.definitions.forEach(function(D){D.kind===ke.OPERATION_DEFINITION?g(n(D.name&&D.name.value)).fragmentSpreads.forEach(function(O){_.add(O)}):D.kind===ke.FRAGMENT_DEFINITION&&o===0&&!t(D.name.value).removed&&_.add(D.name.value)}),_.forEach(function(D){g(t(D)).fragmentSpreads.forEach(function(O){_.add(O)})});var S=function(D){return!!(!_.has(D)||t(D).removed)},E={enter:function(D){if(S(D.name.value))return null}};return eJ(Bn(h,{FragmentSpread:E,FragmentDefinition:E,OperationDefinition:{leave:function(D){if(D.variableDefinitions){var O=g(n(D.name&&D.name.value)).transitiveVars;if(O.size1)for(var t=new Fr,r=1;r=i.length?{done:!0}:{done:!1,value:i[t++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oJ(i,e){if(i){if(typeof i=="string")return V2(i,e);var n=Object.prototype.toString.call(i).slice(8,-1);if(n==="Object"&&i.constructor&&(n=i.constructor.name),n==="Map"||n==="Set")return Array.from(i);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return V2(i,e)}}function V2(i,e){(e==null||e>i.length)&&(e=i.length);for(var n=0,t=new Array(e);n1,s=!1,l=arguments[1],c=l;return new o(function(d){return r.subscribe({next:function(p){var h=!s;if(s=!0,!h||a)try{c=t(c,p)}catch(g){return d.error(g)}else c=p},error:function(p){d.error(p)},complete:function(){if(!s&&!a)return d.error(new TypeError("Cannot reduce an empty sequence"));d.next(c),d.complete()}})})},e.concat=function(){for(var t=this,r=arguments.length,o=new Array(r),a=0;a=0&&s.splice(h,1),c()}});s.push(p)},error:function(d){a.error(d)},complete:function(){c()}});function c(){l.closed&&s.length===0&&a.complete()}return function(){s.forEach(function(d){return d.unsubscribe()}),l.unsubscribe()}})},e[F1]=function(){return this},i.from=function(t){var r=typeof this=="function"?this:i;if(t==null)throw new TypeError(t+" is not an object");var o=ev(t,F1);if(o){var a=o.call(t);if(Object(a)!==a)throw new TypeError(a+" is not an object");return sJ(a)&&a.constructor===r?a:new r(function(s){return a.subscribe(s)})}if(j1("iterator")&&(o=ev(t,aJ),o))return new r(function(s){Zb(function(){if(!s.closed){for(var l=rJ(o.call(t)),c;!(c=l()).done;){var d=c.value;if(s.next(d),s.closed)return}s.complete()}})});if(Array.isArray(t))return new r(function(s){Zb(function(){if(!s.closed){for(var l=0;l=0;--s){var l=a[s],c=!isNaN(+l),d=c?[]:{};d[l]=o,o=d}n=t.merge(n,o)}),n}function cp(i){var e=ov(i);return yn(e)}function ov(i){var e=yn(i.errors)?i.errors.slice(0):[];return Dl(i)&&yn(i.incremental)&&i.incremental.forEach(function(n){n.errors&&e.push.apply(e,n.errors)}),e}function xa(){for(var i=[],e=0;e-1;){if(E=void 0,Z=[s.slice(0,S),s.slice(S+a.length)],E=Z[0],s=Z[1],D=E.indexOf(`\r +\r +`),O=xJ(E.slice(0,D)),I=O["content-type"],I&&I.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");if(L=E.slice(D),L){if(V=Z2(i,L),Object.keys(V).length>1||"data"in V||"incremental"in V||"errors"in V||"payload"in V)if(W2(V)){if(he={},"payload"in V){if(Object.keys(V).length===1&&V.payload===null)return[2];he=j({},V.payload)}"errors"in V&&(he=j(j({},he),{extensions:j(j({},"extensions"in he?he.extensions:null),(je={},je[qh]=V.errors,je))})),e(he)}else e(V);else if(Object.keys(V).length===1&&"hasNext"in V&&!V.hasNext)return[2]}S=s.indexOf(a)}return[3,1];case 3:return[2]}})})}function xJ(i){var e={};return i.split(` +`).forEach(function(n){var t=n.indexOf(":");if(t>-1){var r=n.slice(0,t).trim().toLowerCase(),o=n.slice(t+1).trim();e[r]=o}}),e}function Z2(i,e){if(i.status>=300){var n=function(){try{return JSON.parse(e)}catch{return e}};av(i,n(),"Response not successful: Received status code ".concat(i.status))}try{return JSON.parse(e)}catch(r){var t=r;throw t.name="ServerParseError",t.response=i,t.statusCode=i.status,t.bodyText=e,t}}function eF(i,e){i.result&&i.result.errors&&i.result.data&&e.next(i.result),e.error(i)}function tF(i){return function(e){return e.text().then(function(n){return Z2(e,n)}).then(function(n){return!Array.isArray(n)&&!X2.call(n,"data")&&!X2.call(n,"errors")&&av(e,n,"Server response was missing for query '".concat(Array.isArray(i)?i.map(function(t){return t.operationName}):i.operationName,"'.")),n})}}var Wh=function(i,e){var n;try{n=JSON.stringify(i)}catch(r){var t=ii(40,e,r.message);throw t.parseError=r,t}return n};var wJ={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},SJ={accept:"*/*","content-type":"application/json"},EJ={method:"POST"},iF={http:wJ,headers:SJ,options:EJ},nF=function(i,e){return e(i)};function rF(i,e){for(var n=[],t=2;t"u")throw ii(38)};var aF=function(i,e){var n=i.getContext(),t=n.uri;return t||(typeof e=="function"?e(i):e||"/graphql")};function sF(i,e){var n=[],t=function(p,h){n.push("".concat(p,"=").concat(encodeURIComponent(h)))};if("query"in e&&t("query",e.query),e.operationName&&t("operationName",e.operationName),e.variables){var r=void 0;try{r=Wh(e.variables,"Variables map")}catch(p){return{parseError:p}}t("variables",r)}if(e.extensions){var o=void 0;try{o=Wh(e.extensions,"Extensions map")}catch(p){return{parseError:p}}t("extensions",o)}var a="",s=i,l=i.indexOf("#");l!==-1&&(a=i.substr(l),s=i.substr(0,l));var c=s.indexOf("?")===-1?"?":"&",d=s+c+n.join("&")+a;return{newURI:d}}var lF=jn(function(){return fetch}),cF=function(i){i===void 0&&(i={});var e=i.uri,n=e===void 0?"/graphql":e,t=i.fetch,r=i.print,o=r===void 0?nF:r,a=i.includeExtensions,s=i.preserveHeaderCase,l=i.useGETForQueries,c=i.includeUnusedVariables,d=c===void 0?!1:c,p=Rr(i,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);globalThis.__DEV__!==!1&&oF(t||lF);var h={http:{includeExtensions:a,preserveHeaderCase:s},options:p.fetchOptions,credentials:p.credentials,headers:p.headers};return new wa(function(g){var _=aF(g,n),S=g.getContext(),E={};if(S.clientAwareness){var D=S.clientAwareness,O=D.name,I=D.version;O&&(E["apollographql-client-name"]=O),I&&(E["apollographql-client-version"]=I)}var L=j(j({},E),S.headers),V={http:S.http,options:S.fetchOptions,credentials:S.credentials,headers:L};if(Za(["client"],g.query)){var he=Bh(g.query);if(!he)return $h(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));g.query=he}var Z=rF(g,o,iF,h,V),je=Z.options,Ae=Z.body;Ae.variables&&!d&&(Ae.variables=q1(Ae.variables,g.query));var Et;!je.signal&&typeof AbortController<"u"&&(Et=new AbortController,je.signal=Et.signal);var Tn=function(Yn){return Yn.kind==="OperationDefinition"&&Yn.operation==="mutation"},Mo=function(Yn){return Yn.kind==="OperationDefinition"&&Yn.operation==="subscription"},Ki=Mo(Jo(g.query)),Oo=Za(["defer"],g.query);if(l&&!g.query.definitions.some(Tn)&&(je.method="GET"),Oo||Ki){je.headers=je.headers||{};var wd="multipart/mixed;";Ki&&Oo&&globalThis.__DEV__!==!1&&Oe.warn(39),Ki?wd+="boundary=graphql;subscriptionSpec=1.0,application/json":Oo&&(wd+="deferSpec=20220824,application/json"),je.headers.accept=wd}if(je.method==="GET"){var Zp=sF(_,Ae),Jf=Zp.newURI,em=Zp.parseError;if(em)return $h(em);_=Jf}else try{je.body=Wh(Ae,"Payload")}catch(Yn){return $h(Yn)}return new St(function(Yn){var Zf=t||jn(function(){return fetch})||lF,tm=Yn.next.bind(Yn);return Zf(_,je).then(function(Fa){var Sd;g.setContext({response:Fa});var im=(Sd=Fa.headers)===null||Sd===void 0?void 0:Sd.get("content-type");return im!==null&&/^multipart\/mixed/i.test(im)?J2(Fa,tm):tF(g)(Fa).then(tm)}).then(function(){Et=void 0,Yn.complete()}).catch(function(Fa){Et=void 0,eF(Fa,Yn)}),function(){Et&&Et.abort()}})})};var Y1=function(i){Vn(e,i);function e(n){n===void 0&&(n={});var t=i.call(this,cF(n).request)||this;return t.options=n,t}return e}(wa);var{toString:dF,hasOwnProperty:DJ}=Object.prototype,uF=Function.prototype.toString,X1=new Map;function Qt(i,e){try{return J1(i,e)}finally{X1.clear()}}var Z1=Qt;function J1(i,e){if(i===e)return!0;let n=dF.call(i),t=dF.call(e);if(n!==t)return!1;switch(n){case"[object Array]":if(i.length!==e.length)return!1;case"[object Object]":{if(mF(i,e))return!0;let r=pF(i),o=pF(e),a=r.length;if(a!==o.length)return!1;for(let s=0;s=0&&i.indexOf(e,n)===n}function mF(i,e){let n=X1.get(i);if(n){if(n.has(e))return!0}else X1.set(i,n=new Set);return n.add(e),!1}function uv(i,e,n,t){var r=e.data,o=Rr(e,["data"]),a=n.data,s=Rr(n,["data"]);return Z1(o,s)&&dv(Jo(i).selectionSet,r,a,{fragmentMap:es(ns(i)),variables:t})}function dv(i,e,n,t){if(e===n)return!0;var r=new Set;return i.selections.every(function(o){if(r.has(o)||(r.add(o),!Ko(o,t.variables))||hF(o))return!0;if(lr(o)){var a=Nr(o),s=e&&e[a],l=n&&n[a],c=o.selectionSet;if(!c)return Z1(s,l);var d=Array.isArray(s),p=Array.isArray(l);if(d!==p)return!1;if(d&&p){var h=s.length;if(l.length!==h)return!1;for(var g=0;g"u"||typeof o=="string"?o:this.identify(o),query:c,optimistic:s}),p;return new St(function(h){return n.watch(j(j({},d),{immediate:!0,callback:function(g){if(!(p&&uv(c,{data:p?.result},{data:g.result}))){var _={data:g.result,complete:!!g.complete};g.missing&&(_.missing=Gc(g.missing.map(function(S){return S.missing}))),p=g,h.next(_)}}}))})},i.prototype.readFragment=function(e,n){return n===void 0&&(n=!!e.optimistic),this.read(j(j({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:n}))},i.prototype.writeQuery=function(e){var n=e.id,t=e.data,r=Rr(e,["id","data"]);return this.write(Object.assign(r,{dataId:n||"ROOT_QUERY",result:t}))},i.prototype.writeFragment=function(e){var n=e.id,t=e.data,r=e.fragment,o=e.fragmentName,a=Rr(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(r,o),dataId:n,result:t}))},i.prototype.updateQuery=function(e,n){return this.batch({update:function(t){var r=t.readQuery(e),o=n(r);return o==null?r:(t.writeQuery(j(j({},e),{data:o})),o)}})},i.prototype.updateFragment=function(e,n){return this.batch({update:function(t){var r=t.readFragment(e),o=n(r);return o==null?r:(t.writeFragment(j(j({},e),{data:o})),o)}})},i}();globalThis.__DEV__!==!1&&(pv.prototype.getMemoryInternals=u2);var Qh=function(i){Vn(e,i);function e(n,t,r,o){var a,s=i.call(this,n)||this;if(s.message=n,s.path=t,s.query=r,s.variables=o,Array.isArray(s.path)){s.missing=s.message;for(var l=s.path.length-1;l>=0;--l)s.missing=(a={},a[s.path[l]]=s.missing,a)}else s.missing=s.path;return s.__proto__=e.prototype,s}return e}(Error);var Ti=Object.prototype.hasOwnProperty;function Kh(i){return i==null}function hv(i,e){var n=i.__typename,t=i.id,r=i._id;if(typeof n=="string"&&(e&&(e.keyObject=Kh(t)?Kh(r)?void 0:{_id:r}:{id:t}),Kh(t)&&!Kh(r)&&(t=r),!Kh(t)))return"".concat(n,":").concat(typeof t=="number"||typeof t=="string"?t:JSON.stringify(t))}var fF={dataIdFromObject:hv,addTypename:!0,resultCaching:!0,canonizeResults:!1};function gF(i){return xa(fF,i)}function fv(i){var e=i.canonizeResults;return e===void 0?fF.canonizeResults:e}function _F(i,e){return xt(e)?i.get(e.__ref,"__typename"):e&&e.__typename}var eS=/^[_a-z][_0-9a-z]*/i;function Zo(i){var e=i.match(eS);return e?e[0]:i}function mv(i,e,n){return Nt(e)?Zt(e)?e.every(function(t){return mv(i,t,n)}):i.selections.every(function(t){if(lr(t)&&Ko(t,n)){var r=Nr(t);return Ti.call(e,r)&&(!t.selectionSet||mv(t.selectionSet,e[r],n))}return!0}):!1}function kl(i){return Nt(i)&&!xt(i)&&!Zt(i)}function bF(){return new Fr}function gv(i,e){var n=es(ns(i));return{fragmentMap:n,lookupFragment:function(t){var r=n[t];return!r&&e&&(r=e.lookup(t)),r||null}}}var _v=Object.create(null),tS=function(){return _v},vF=Object.create(null),up=function(){function i(e,n){var t=this;this.policies=e,this.group=n,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(r,o){return Hh(xt(r)?t.get(r.__ref,o):r&&r[o])},this.canRead=function(r){return xt(r)?t.has(r.__ref):typeof r=="object"},this.toReference=function(r,o){if(typeof r=="string")return Xo(r);if(xt(r))return r;var a=t.policies.identify(r)[0];if(a){var s=Xo(a);return o&&t.merge(a,r),s}}}return i.prototype.toObject=function(){return j({},this.data)},i.prototype.has=function(e){return this.lookup(e,!0)!==void 0},i.prototype.get=function(e,n){if(this.group.depend(e,n),Ti.call(this.data,e)){var t=this.data[e];if(t&&Ti.call(t,n))return t[n]}if(n==="__typename"&&Ti.call(this.policies.rootTypenamesById,e))return this.policies.rootTypenamesById[e];if(this instanceof Il)return this.parent.get(e,n)},i.prototype.lookup=function(e,n){if(n&&this.group.depend(e,"__exists"),Ti.call(this.data,e))return this.data[e];if(this instanceof Il)return this.parent.lookup(e,n);if(this.policies.rootTypenamesById[e])return Object.create(null)},i.prototype.merge=function(e,n){var t=this,r;xt(e)&&(e=e.__ref),xt(n)&&(n=n.__ref);var o=typeof e=="string"?this.lookup(r=e):e,a=typeof n=="string"?this.lookup(r=n):n;if(a){Oe(typeof r=="string",1);var s=new Fr(RJ).merge(o,a);if(this.data[r]=s,s!==o&&(delete this.refs[r],this.group.caching)){var l=Object.create(null);o||(l.__exists=1),Object.keys(a).forEach(function(c){if(!o||o[c]!==s[c]){l[c]=1;var d=Zo(c);d!==c&&!t.policies.hasKeyArgs(s.__typename,d)&&(l[d]=1),s[c]===void 0&&!(t instanceof Il)&&delete s[c]}}),l.__typename&&!(o&&o.__typename)&&this.policies.rootTypenamesById[r]===s.__typename&&delete l.__typename,Object.keys(l).forEach(function(c){return t.group.dirty(r,c)})}}},i.prototype.modify=function(e,n){var t=this,r=this.lookup(e);if(r){var o=Object.create(null),a=!1,s=!0,l={DELETE:_v,INVALIDATE:vF,isReference:xt,toReference:this.toReference,canRead:this.canRead,readField:function(c,d){return t.policies.readField(typeof c=="string"?{fieldName:c,from:d||Xo(e)}:c,{store:t})}};if(Object.keys(r).forEach(function(c){var d=Zo(c),p=r[c];if(p!==void 0){var h=typeof n=="function"?n:n[c]||n[d];if(h){var g=h===tS?_v:h(Hh(p),j(j({},l),{fieldName:d,storeFieldName:c,storage:t.getStorage(e,c)}));if(g===vF)t.group.dirty(e,c);else if(g===_v&&(g=void 0),g!==p&&(o[c]=g,a=!0,p=g,globalThis.__DEV__!==!1)){var _=function(V){if(t.lookup(V.__ref)===void 0)return globalThis.__DEV__!==!1&&Oe.warn(2,V),!0};if(xt(g))_(g);else if(Array.isArray(g))for(var S=!1,E=void 0,D=0,O=g;D0){var n=--this.rootIds[e];return n||delete this.rootIds[e],n}return 0},i.prototype.getRootIdSet=function(e){return e===void 0&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof Il?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},i.prototype.gc=function(){var e=this,n=this.getRootIdSet(),t=this.toObject();n.forEach(function(a){Ti.call(t,a)&&(Object.keys(e.findChildRefIds(a)).forEach(n.add,n),delete t[a])});var r=Object.keys(t);if(r.length){for(var o=this;o instanceof Il;)o=o.parent;r.forEach(function(a){return o.delete(a)})}return r},i.prototype.findChildRefIds=function(e){if(!Ti.call(this.refs,e)){var n=this.refs[e]=Object.create(null),t=this.data[e];if(!t)return n;var r=new Set([t]);r.forEach(function(o){xt(o)&&(n[o.__ref]=!0),Nt(o)&&Object.keys(o).forEach(function(a){var s=o[a];Nt(s)&&r.add(s)})})}return this.refs[e]},i.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},i}();var yF=function(){function i(e,n){n===void 0&&(n=null),this.caching=e,this.parent=n,this.d=null,this.resetCaching()}return i.prototype.resetCaching=function(){this.d=this.caching?Lh():null,this.keyMaker=new eo(Yo)},i.prototype.depend=function(e,n){if(this.d){this.d(iS(e,n));var t=Zo(n);t!==n&&this.d(iS(e,t)),this.parent&&this.parent.depend(e,n)}},i.prototype.dirty=function(e,n){this.d&&this.d.dirty(iS(e,n),n==="__exists"?"forget":"setDirty")},i}();function iS(i,e){return e+"#"+i}function nS(i,e){Qc(i)&&i.group.depend(e,"__exists")}(function(i){var e=function(n){Vn(t,n);function t(r){var o=r.policies,a=r.resultCaching,s=a===void 0?!0:a,l=r.seed,c=n.call(this,o,new yF(s))||this;return c.stump=new AJ(c),c.storageTrie=new eo(Yo),l&&c.replace(l),c}return t.prototype.addLayer=function(r,o){return this.stump.addLayer(r,o)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(i);i.Root=e})(up||(up={}));var Il=function(i){Vn(e,i);function e(n,t,r,o){var a=i.call(this,t.policies,o)||this;return a.id=n,a.parent=t,a.replay=r,a.group=o,r(a),a}return e.prototype.addLayer=function(n,t){return new e(n,this,t,this.group)},e.prototype.removeLayer=function(n){var t=this,r=this.parent.removeLayer(n);return n===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(o){var a=t.data[o],s=r.lookup(o);s?a?a!==s&&Object.keys(a).forEach(function(l){Qt(a[l],s[l])||t.group.dirty(o,l)}):(t.group.dirty(o,"__exists"),Object.keys(s).forEach(function(l){t.group.dirty(o,l)})):t.delete(o)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)},e.prototype.toObject=function(){return j(j({},this.parent.toObject()),this.data)},e.prototype.findChildRefIds=function(n){var t=this.parent.findChildRefIds(n);return Ti.call(this.data,n)?j(j({},t),i.prototype.findChildRefIds.call(this,n)):t},e.prototype.getStorage=function(){for(var n=this.parent;n.parent;)n=n.parent;return n.getStorage.apply(n,arguments)},e}(up),AJ=function(i){Vn(e,i);function e(n){return i.call(this,"EntityStore.Stump",n,function(){},new yF(n.group.caching,n.group))||this}return e.prototype.removeLayer=function(){return this},e.prototype.merge=function(n,t){return this.parent.merge(n,t)},e}(Il);function RJ(i,e,n){var t=i[n],r=e[n];return Qt(t,r)?t:r}function Qc(i){return!!(i instanceof up&&i.group.caching)}function NJ(i){return Nt(i)?Zt(i)?i.slice(0):j({__proto__:Object.getPrototypeOf(i)},i):i}var rS=function(){function i(){this.known=new(Wb?WeakSet:Set),this.pool=new eo(Yo),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return i.prototype.isKnown=function(e){return Nt(e)&&this.known.has(e)},i.prototype.pass=function(e){if(Nt(e)){var n=NJ(e);return this.passes.set(n,e),n}return e},i.prototype.admit=function(e){var n=this;if(Nt(e)){var t=this.passes.get(e);if(t)return t;var r=Object.getPrototypeOf(e);switch(r){case Array.prototype:{if(this.known.has(e))return e;var o=e.map(this.admit,this),a=this.pool.lookupArray(o);return a.array||(this.known.add(a.array=o),globalThis.__DEV__!==!1&&Object.freeze(o)),a.array}case null:case Object.prototype:{if(this.known.has(e))return e;var s=Object.getPrototypeOf(e),l=[s],c=this.sortedKeys(e);l.push(c.json);var d=l.length;c.sorted.forEach(function(g){l.push(n.admit(e[g]))});var a=this.pool.lookupArray(l);if(!a.object){var p=a.object=Object.create(s);this.known.add(p),c.sorted.forEach(function(g,_){p[g]=l[d+_]}),globalThis.__DEV__!==!1&&Object.freeze(p)}return a.object}}}return e},i.prototype.sortedKeys=function(e){var n=Object.keys(e),t=this.pool.lookupArray(n);if(!t.keys){n.sort();var r=JSON.stringify(n);(t.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,t.keys={sorted:n,json:r})}return t.keys},i}();function CF(i){return[i.selectionSet,i.objectOrReference,i.context,i.context.canonizeResults]}var xF=function(){function i(e){var n=this;this.knownResults=new(Yo?WeakMap:Map),this.config=xa(e,{addTypename:e.addTypename!==!1,canonizeResults:fv(e)}),this.canon=e.canon||new rS,this.executeSelectionSet=rs(function(t){var r,o=t.context.canonizeResults,a=CF(t);a[3]=!o;var s=(r=n.executeSelectionSet).peek.apply(r,a);return s?o?j(j({},s),{result:n.canon.admit(s.result)}):s:(nS(t.context.store,t.enclosingRef.__ref),n.execSelectionSetImpl(t))},{max:this.config.resultCacheMaxSize||tn["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:CF,makeCacheKey:function(t,r,o,a){if(Qc(o.store))return o.store.makeCacheKey(t,xt(r)?r.__ref:r,o.varString,a)}}),this.executeSubSelectedArray=rs(function(t){return nS(t.context.store,t.enclosingRef.__ref),n.execSubSelectedArrayImpl(t)},{max:this.config.resultCacheMaxSize||tn["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(t){var r=t.field,o=t.array,a=t.context;if(Qc(a.store))return a.store.makeCacheKey(r,o,a.varString)}})}return i.prototype.resetCanon=function(){this.canon=new rS},i.prototype.diffQueryAgainstStore=function(e){var n=e.store,t=e.query,r=e.rootId,o=r===void 0?"ROOT_QUERY":r,a=e.variables,s=e.returnPartialData,l=s===void 0?!0:s,c=e.canonizeResults,d=c===void 0?this.config.canonizeResults:c,p=this.config.cache.policies;a=j(j({},zc(Nh(t))),a);var h=Xo(o),g=this.executeSelectionSet({selectionSet:Jo(t).selectionSet,objectOrReference:h,enclosingRef:h,context:j({store:n,query:t,policies:p,variables:a,varString:sr(a),canonizeResults:d},gv(t,this.config.fragments))}),_;if(g.missing&&(_=[new Qh(FJ(g.missing),g.missing,t,a)],!l))throw _[0];return{result:g.result,complete:!_,missing:_}},i.prototype.isFresh=function(e,n,t,r){if(Qc(r.store)&&this.knownResults.get(e)===t){var o=this.executeSelectionSet.peek(t,n,r,this.canon.isKnown(e));if(o&&e===o.result)return!0}return!1},i.prototype.execSelectionSetImpl=function(e){var n=this,t=e.selectionSet,r=e.objectOrReference,o=e.enclosingRef,a=e.context;if(xt(r)&&!a.policies.rootTypenamesById[r.__ref]&&!a.store.has(r.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(r.__ref," object")};var s=a.variables,l=a.policies,c=a.store,d=c.getFieldValue(r,"__typename"),p=[],h,g=new Fr;this.config.addTypename&&typeof d=="string"&&!l.rootIdsByTypename[d]&&p.push({__typename:d});function _(I,L){var V;return I.missing&&(h=g.merge(h,(V={},V[L]=I.missing,V))),I.result}var S=new Set(t.selections);S.forEach(function(I){var L,V;if(Ko(I,s))if(lr(I)){var he=l.readField({fieldName:I.name.value,field:I,variables:a.variables,from:r},a),Z=Nr(I);he===void 0?$c.added(I)||(h=g.merge(h,(L={},L[Z]="Can't find field '".concat(I.name.value,"' on ").concat(xt(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2)),L))):Zt(he)?he.length>0&&(he=_(n.executeSubSelectedArray({field:I,array:he,enclosingRef:o,context:a}),Z)):I.selectionSet?he!=null&&(he=_(n.executeSelectionSet({selectionSet:I.selectionSet,objectOrReference:he,enclosingRef:xt(he)?he:o,context:a}),Z)):a.canonizeResults&&(he=n.canon.pass(he)),he!==void 0&&p.push((V={},V[Z]=he,V))}else{var je=ts(I,a.lookupFragment);if(!je&&I.kind===ke.FRAGMENT_SPREAD)throw ii(9,I.name.value);je&&l.fragmentMatches(je,d)&&je.selectionSet.selections.forEach(S.add,S)}});var E=Gc(p),D={result:E,missing:h},O=a.canonizeResults?this.canon.admit(D):Hh(D);return O.result&&this.knownResults.set(O.result,t),O},i.prototype.execSubSelectedArrayImpl=function(e){var n=this,t=e.field,r=e.array,o=e.enclosingRef,a=e.context,s,l=new Fr;function c(d,p){var h;return d.missing&&(s=l.merge(s,(h={},h[p]=d.missing,h))),d.result}return t.selectionSet&&(r=r.filter(a.store.canRead)),r=r.map(function(d,p){return d===null?null:Zt(d)?c(n.executeSubSelectedArray({field:t,array:d,enclosingRef:o,context:a}),p):t.selectionSet?c(n.executeSelectionSet({selectionSet:t.selectionSet,objectOrReference:d,enclosingRef:xt(d)?d:o,context:a}),p):(globalThis.__DEV__!==!1&&PJ(a.store,t,d),d)}),{result:a.canonizeResults?this.canon.admit(r):r,missing:s}},i}();function FJ(i){try{JSON.stringify(i,function(e,n){if(typeof n=="string")throw n;return n})}catch(e){return e}}function PJ(i,e,n){if(!e.selectionSet){var t=new Set([n]);t.forEach(function(r){Nt(r)&&(Oe(!xt(r),10,_F(i,r),e.name.value),Object.values(r).forEach(t.add,t))})}}var pp=new Hc,wF=new WeakMap;function Yh(i){var e=wF.get(i);return e||wF.set(i,e={vars:new Set,dep:Lh()}),e}function oS(i){Yh(i).vars.forEach(function(e){return e.forgetCache(i)})}function SF(i){Yh(i).vars.forEach(function(e){return e.attachCache(i)})}function bv(i){var e=new Set,n=new Set,t=function(o){if(arguments.length>0){if(i!==o){i=o,e.forEach(function(l){Yh(l).dep.dirty(t),LJ(l)});var a=Array.from(n);n.clear(),a.forEach(function(l){return l(i)})}}else{var s=pp.getValue();s&&(r(s),Yh(s).dep(t))}return i};t.onNextChange=function(o){return n.add(o),function(){n.delete(o)}};var r=t.attachCache=function(o){return e.add(o),Yh(o).vars.add(t),t};return t.forgetCache=function(o){return e.delete(o)},t}function LJ(i){i.broadcastWatches&&i.broadcastWatches()}var EF=Object.create(null);function aS(i){var e=JSON.stringify(i);return EF[e]||(EF[e]=Object.create(null))}function sS(i){var e=aS(i);return e.keyFieldsFn||(e.keyFieldsFn=function(n,t){var r=function(a,s){return t.readField(s,a)},o=t.keyObject=cS(i,function(a){var s=mp(t.storeObject,a,r);return s===void 0&&n!==t.storeObject&&Ti.call(n,a[0])&&(s=mp(n,a,DF)),Oe(s!==void 0,4,a.join("."),n),s});return"".concat(t.typename,":").concat(JSON.stringify(o))})}function lS(i){var e=aS(i);return e.keyArgsFn||(e.keyArgsFn=function(n,t){var r=t.field,o=t.variables,a=t.fieldName,s=cS(i,function(c){var d=c[0],p=d.charAt(0);if(p==="@"){if(r&&yn(r.directives)){var h=d.slice(1),g=r.directives.find(function(D){return D.name.value===h}),_=g&&is(g,o);return _&&mp(_,c.slice(1))}return}if(p==="$"){var S=d.slice(1);if(o&&Ti.call(o,S)){var E=c.slice(0);return E[0]=S,mp(o,E)}return}if(n)return mp(n,c)}),l=JSON.stringify(s);return(n||l!=="{}")&&(a+=":"+l),a})}function cS(i,e){var n=new Fr;return TF(i).reduce(function(t,r){var o,a=e(r);if(a!==void 0){for(var s=r.length-1;s>=0;--s)a=(o={},o[r[s]]=a,o);t=n.merge(t,a)}return t},Object.create(null))}function TF(i){var e=aS(i);if(!e.paths){var n=e.paths=[],t=[];i.forEach(function(r,o){Zt(r)?(TF(r).forEach(function(a){return n.push(t.concat(a))}),t.length=0):(t.push(r),Zt(i[o+1])||(n.push(t.slice(0)),t.length=0))})}return e.paths}function DF(i,e){return i[e]}function mp(i,e,n){return n=n||DF,kF(e.reduce(function t(r,o){return Zt(r)?r.map(function(a){return t(a,o)}):r&&n(r,o)},i))}function kF(i){return Nt(i)?Zt(i)?i.map(kF):cS(Object.keys(i).sort(),function(e){return mp(i,e)}):i}function dS(i){return i.args!==void 0?i.args:i.field?is(i.field,i.variables):null}var VJ=function(){},IF=function(i,e){return e.fieldName},MF=function(i,e,n){var t=n.mergeObjects;return t(i,e)},OF=function(i,e){return e},RF=function(){function i(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=j({dataIdFromObject:hv},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return i.prototype.identify=function(e,n){var t,r=this,o=n&&(n.typename||((t=n.storeObject)===null||t===void 0?void 0:t.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var a=n&&n.storeObject||e,s=j(j({},n),{typename:o,storeObject:a,readField:n&&n.readField||function(){var h=vv(arguments,a);return r.readField(h,{store:r.cache.data,variables:h.variables})}}),l,c=o&&this.getTypePolicy(o),d=c&&c.keyFn||this.config.dataIdFromObject;d;){var p=d(j(j({},e),a),s);if(Zt(p))d=sS(p);else{l=p;break}}return l=l?String(l):void 0,s.keyObject?[l,s.keyObject]:[l]},i.prototype.addTypePolicies=function(e){var n=this;Object.keys(e).forEach(function(t){var r=e[t],o=r.queryType,a=r.mutationType,s=r.subscriptionType,l=Rr(r,["queryType","mutationType","subscriptionType"]);o&&n.setRootTypename("Query",t),a&&n.setRootTypename("Mutation",t),s&&n.setRootTypename("Subscription",t),Ti.call(n.toBeAdded,t)?n.toBeAdded[t].push(l):n.toBeAdded[t]=[l]})},i.prototype.updateTypePolicy=function(e,n){var t=this,r=this.getTypePolicy(e),o=n.keyFields,a=n.fields;function s(l,c){l.merge=typeof c=="function"?c:c===!0?MF:c===!1?OF:l.merge}s(r,n.merge),r.keyFn=o===!1?VJ:Zt(o)?sS(o):typeof o=="function"?o:r.keyFn,a&&Object.keys(a).forEach(function(l){var c=t.getFieldPolicy(e,l,!0),d=a[l];if(typeof d=="function")c.read=d;else{var p=d.keyArgs,h=d.read,g=d.merge;c.keyFn=p===!1?IF:Zt(p)?lS(p):typeof p=="function"?p:c.keyFn,typeof h=="function"&&(c.read=h),s(c,g)}c.read&&c.merge&&(c.keyFn=c.keyFn||IF)})},i.prototype.setRootTypename=function(e,n){n===void 0&&(n=e);var t="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[t];n!==r&&(Oe(!r||r===e,5,e),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[n]=t,this.rootTypenamesById[t]=n)},i.prototype.addPossibleTypes=function(e){var n=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(t){n.getSupertypeSet(t,!0),e[t].forEach(function(r){n.getSupertypeSet(r,!0).add(t);var o=r.match(eS);(!o||o[0]!==r)&&n.fuzzySubtypes.set(r,new RegExp(r))})})},i.prototype.getTypePolicy=function(e){var n=this;if(!Ti.call(this.typePolicies,e)){var t=this.typePolicies[e]=Object.create(null);t.fields=Object.create(null);var r=this.supertypeMap.get(e);!r&&this.fuzzySubtypes.size&&(r=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(a,s){if(a.test(e)){var l=n.supertypeMap.get(s);l&&l.forEach(function(c){return r.add(c)})}})),r&&r.size&&r.forEach(function(a){var s=n.getTypePolicy(a),l=s.fields,c=Rr(s,["fields"]);Object.assign(t,c),Object.assign(t.fields,l)})}var o=this.toBeAdded[e];return o&&o.length&&o.splice(0).forEach(function(a){n.updateTypePolicy(e,a)}),this.typePolicies[e]},i.prototype.getFieldPolicy=function(e,n,t){if(e){var r=this.getTypePolicy(e).fields;return r[n]||t&&(r[n]=Object.create(null))}},i.prototype.getSupertypeSet=function(e,n){var t=this.supertypeMap.get(e);return!t&&n&&this.supertypeMap.set(e,t=new Set),t},i.prototype.fragmentMatches=function(e,n,t,r){var o=this;if(!e.typeCondition)return!0;if(!n)return!1;var a=e.typeCondition.name.value;if(n===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var s=this.getSupertypeSet(n,!0),l=[s],c=function(_){var S=o.getSupertypeSet(_,!1);S&&S.size&&l.indexOf(S)<0&&l.push(S)},d=!!(t&&this.fuzzySubtypes.size),p=!1,h=0;h1?r:e}:(a=j({},t),Ti.call(a,"from")||(a.from=e)),globalThis.__DEV__!==!1&&a.from===void 0&&globalThis.__DEV__!==!1&&Oe.warn(7,Fb(Array.from(i))),a.variables===void 0&&(a.variables=n),a}function NF(i){return function(n,t){if(Zt(n)||Zt(t))throw ii(8);if(Nt(n)&&Nt(t)){var r=i.getFieldValue(n,"__typename"),o=i.getFieldValue(t,"__typename"),a=r&&o&&r!==o;if(a)return t;if(xt(n)&&kl(t))return i.merge(n.__ref,t),n;if(kl(n)&&xt(t))return i.merge(n,t.__ref),t;if(kl(n)&&kl(t))return j(j({},n),t)}return t}}function uS(i,e,n){var t="".concat(e).concat(n),r=i.flavors.get(t);return r||i.flavors.set(t,r=i.clientOnly===e&&i.deferred===n?i:j(j({},i),{clientOnly:e,deferred:n})),r}var VF=function(){function i(e,n,t){this.cache=e,this.reader=n,this.fragments=t}return i.prototype.writeToStore=function(e,n){var t=this,r=n.query,o=n.result,a=n.dataId,s=n.variables,l=n.overwrite,c=Ca(r),d=bF();s=j(j({},zc(c)),s);var p=j(j({store:e,written:Object.create(null),merge:function(g,_){return d.merge(g,_)},variables:s,varString:sr(s)},gv(r,this.fragments)),{overwrite:!!l,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),h=this.processSelectionSet({result:o||Object.create(null),dataId:a,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:p});if(!xt(h))throw ii(11,o);return p.incomingById.forEach(function(g,_){var S=g.storeObject,E=g.mergeTree,D=g.fieldNodeSet,O=Xo(_);if(E&&E.map.size){var I=t.applyMerges(E,O,S,p);if(xt(I))return;S=I}if(globalThis.__DEV__!==!1&&!p.overwrite){var L=Object.create(null);D.forEach(function(Z){Z.selectionSet&&(L[Z.name.value]=!0)});var V=function(Z){return L[Zo(Z)]===!0},he=function(Z){var je=E&&E.map.get(Z);return!!(je&&je.info&&je.info.merge)};Object.keys(S).forEach(function(Z){V(Z)&&!he(Z)&&jJ(O,S,Z,p.store)})}e.merge(_,S)}),e.retain(h.__ref),h},i.prototype.processSelectionSet=function(e){var n=this,t=e.dataId,r=e.result,o=e.selectionSet,a=e.context,s=e.mergeTree,l=this.cache.policies,c=Object.create(null),d=t&&l.rootTypenamesById[t]||Rh(r,o,a.fragmentMap)||t&&a.store.get(t,"__typename");typeof d=="string"&&(c.__typename=d);var p=function(){var I=vv(arguments,c,a.variables);if(xt(I.from)){var L=a.incomingById.get(I.from.__ref);if(L){var V=l.readField(j(j({},I),{from:L.storeObject}),a);if(V!==void 0)return V}}return l.readField(I,a)},h=new Set;this.flattenFields(o,r,a,d).forEach(function(I,L){var V,he=Nr(L),Z=r[he];if(h.add(L),Z!==void 0){var je=l.getStoreFieldName({typename:d,fieldName:L.name.value,field:L,variables:I.variables}),Ae=FF(s,je),Et=n.processFieldValue(Z,L,L.selectionSet?uS(I,!1,!1):I,Ae),Tn=void 0;L.selectionSet&&(xt(Et)||kl(Et))&&(Tn=p("__typename",Et));var Mo=l.getMergeFunction(d,L.name.value,Tn);Mo?Ae.info={field:L,typename:d,merge:Mo}:PF(s,je),c=I.merge(c,(V={},V[je]=Et,V))}else globalThis.__DEV__!==!1&&!I.clientOnly&&!I.deferred&&!$c.added(L)&&!l.getReadFunction(d,L.name.value)&&globalThis.__DEV__!==!1&&Oe.error(12,Nr(L),r)});try{var g=l.identify(r,{typename:d,selectionSet:o,fragmentMap:a.fragmentMap,storeObject:c,readField:p}),_=g[0],S=g[1];t=t||_,S&&(c=a.merge(c,S))}catch(I){if(!t)throw I}if(typeof t=="string"){var E=Xo(t),D=a.written[t]||(a.written[t]=[]);if(D.indexOf(o)>=0||(D.push(o),this.reader&&this.reader.isFresh(r,E,o,a)))return E;var O=a.incomingById.get(t);return O?(O.storeObject=a.merge(O.storeObject,c),O.mergeTree=pS(O.mergeTree,s),h.forEach(function(I){return O.fieldNodeSet.add(I)})):a.incomingById.set(t,{storeObject:c,mergeTree:yv(s)?void 0:s,fieldNodeSet:h}),E}return c},i.prototype.processFieldValue=function(e,n,t,r){var o=this;return!n.selectionSet||e===null?globalThis.__DEV__!==!1?tv(e):e:Zt(e)?e.map(function(a,s){var l=o.processFieldValue(a,n,t,FF(r,s));return PF(r,s),l}):this.processSelectionSet({result:e,selectionSet:n.selectionSet,context:t,mergeTree:r})},i.prototype.flattenFields=function(e,n,t,r){r===void 0&&(r=Rh(n,e,t.fragmentMap));var o=new Map,a=this.cache.policies,s=new eo(!1);return function l(c,d){var p=s.lookup(c,d.clientOnly,d.deferred);p.visited||(p.visited=!0,c.selections.forEach(function(h){if(Ko(h,t.variables)){var g=d.clientOnly,_=d.deferred;if(!(g&&_)&&yn(h.directives)&&h.directives.forEach(function(D){var O=D.name.value;if(O==="client"&&(g=!0),O==="defer"){var I=is(D,t.variables);(!I||I.if!==!1)&&(_=!0)}}),lr(h)){var S=o.get(h);S&&(g=g&&S.clientOnly,_=_&&S.deferred),o.set(h,uS(t,g,_))}else{var E=ts(h,t.lookupFragment);if(!E&&h.kind===ke.FRAGMENT_SPREAD)throw ii(13,h.name.value);E&&a.fragmentMatches(E,r,n,t.variables)&&l(E.selectionSet,uS(t,g,_))}}}))}(e,t),o},i.prototype.applyMerges=function(e,n,t,r,o){var a,s=this;if(e.map.size&&!xt(t)){var l=!Zt(t)&&(xt(n)||kl(n))?n:void 0,c=t;l&&!o&&(o=[xt(l)?l.__ref:l]);var d,p=function(h,g){return Zt(h)?typeof g=="number"?h[g]:void 0:r.store.getFieldValue(h,String(g))};e.map.forEach(function(h,g){var _=p(l,g),S=p(c,g);if(S!==void 0){o&&o.push(g);var E=s.applyMerges(h,_,S,r,o);E!==S&&(d=d||new Map,d.set(g,E)),o&&Oe(o.pop()===g)}}),d&&(t=Zt(c)?c.slice(0):j({},c),d.forEach(function(h,g){t[g]=h}))}return e.info?this.cache.policies.runMergeFunction(n,t,e.info,r,o&&(a=r.store).getStorage.apply(a,o)):t},i}();var jF=[];function FF(i,e){var n=i.map;return n.has(e)||n.set(e,jF.pop()||{map:new Map}),n.get(e)}function pS(i,e){if(i===e||!e||yv(e))return i;if(!i||yv(i))return e;var n=i.info&&e.info?j(j({},i.info),e.info):i.info||e.info,t=i.map.size&&e.map.size,r=t?new Map:i.map.size?i.map:e.map,o={info:n,map:r};if(t){var a=new Set(e.map.keys());i.map.forEach(function(s,l){o.map.set(l,pS(s,e.map.get(l))),a.delete(l)}),a.forEach(function(s){o.map.set(s,pS(e.map.get(s),i.map.get(s)))})}return o}function yv(i){return!i||!(i.info||i.map.size)}function PF(i,e){var n=i.map,t=n.get(e);t&&yv(t)&&(jF.push(t),n.delete(e))}var LF=new Set;function jJ(i,e,n,t){var r=function(p){var h=t.getFieldValue(p,n);return typeof h=="object"&&h},o=r(i);if(o){var a=r(e);if(a&&!xt(o)&&!Qt(o,a)&&!Object.keys(o).every(function(p){return t.getFieldValue(a,p)!==void 0})){var s=t.getFieldValue(i,"__typename")||t.getFieldValue(e,"__typename"),l=Zo(n),c="".concat(s,".").concat(l);if(!LF.has(c)){LF.add(c);var d=[];!Zt(o)&&!Zt(a)&&[o,a].forEach(function(p){var h=t.getFieldValue(p,"__typename");typeof h=="string"&&!d.includes(h)&&d.push(h)}),globalThis.__DEV__!==!1&&Oe.warn(14,l,s,d.length?"either ensure all objects of type "+d.join(" and ")+" have an ID or a custom merge function, or ":"",c,j({},o),j({},a))}}}}var Xh=function(i){Vn(e,i);function e(n){n===void 0&&(n={});var t=i.call(this)||this;return t.watches=new Set,t.addTypenameTransform=new Vh($c),t.assumeImmutableResults=!0,t.makeVar=bv,t.txCount=0,t.config=gF(n),t.addTypename=!!t.config.addTypename,t.policies=new RF({cache:t,dataIdFromObject:t.config.dataIdFromObject,possibleTypes:t.config.possibleTypes,typePolicies:t.config.typePolicies}),t.init(),t}return e.prototype.init=function(){var n=this.data=new up.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=n.stump,this.resetResultCache()},e.prototype.resetResultCache=function(n){var t=this,r=this.storeReader,o=this.config.fragments;this.storeWriter=new VF(this,this.storeReader=new xF({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:fv(this.config),canon:n?void 0:r&&r.canon,fragments:o}),o),this.maybeBroadcastWatch=rs(function(a,s){return t.broadcastWatch(a,s)},{max:this.config.resultCacheMaxSize||tn["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(a){var s=a.optimistic?t.optimisticData:t.data;if(Qc(s)){var l=a.optimistic,c=a.id,d=a.variables;return s.makeCacheKey(a.query,a.callback,sr({optimistic:l,id:c,variables:d}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(a){return a.resetCaching()})},e.prototype.restore=function(n){return this.init(),n&&this.data.replace(n),this},e.prototype.extract=function(n){return n===void 0&&(n=!1),(n?this.optimisticData:this.data).extract()},e.prototype.read=function(n){var t=n.returnPartialData,r=t===void 0?!1:t;try{return this.storeReader.diffQueryAgainstStore(j(j({},n),{store:n.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:r})).result||null}catch(o){if(o instanceof Qh)return null;throw o}},e.prototype.write=function(n){try{return++this.txCount,this.storeWriter.writeToStore(this.data,n)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},e.prototype.modify=function(n){if(Ti.call(n,"id")&&!n.id)return!1;var t=n.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(n.id||"ROOT_QUERY",n.fields)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},e.prototype.diff=function(n){return this.storeReader.diffQueryAgainstStore(j(j({},n),{store:n.optimistic?this.optimisticData:this.data,rootId:n.id||"ROOT_QUERY",config:this.config}))},e.prototype.watch=function(n){var t=this;return this.watches.size||SF(this),this.watches.add(n),n.immediate&&this.maybeBroadcastWatch(n),function(){t.watches.delete(n)&&!t.watches.size&&oS(t),t.maybeBroadcastWatch.forget(n)}},e.prototype.gc=function(n){var t;sr.reset(),Tl.reset(),this.addTypenameTransform.resetCache(),(t=this.config.fragments)===null||t===void 0||t.resetCaches();var r=this.optimisticData.gc();return n&&!this.txCount&&(n.resetResultCache?this.resetResultCache(n.resetResultIdentities):n.resetResultIdentities&&this.storeReader.resetCanon()),r},e.prototype.retain=function(n,t){return(t?this.optimisticData:this.data).retain(n)},e.prototype.release=function(n,t){return(t?this.optimisticData:this.data).release(n)},e.prototype.identify=function(n){if(xt(n))return n.__ref;try{return this.policies.identify(n)[0]}catch(t){globalThis.__DEV__!==!1&&Oe.warn(t)}},e.prototype.evict=function(n){if(!n.id){if(Ti.call(n,"id"))return!1;n=j(j({},n),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(n,this.data)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},e.prototype.reset=function(n){var t=this;return this.init(),sr.reset(),n&&n.discardWatches?(this.watches.forEach(function(r){return t.maybeBroadcastWatch.forget(r)}),this.watches.clear(),oS(this)):this.broadcastWatches(),Promise.resolve()},e.prototype.removeOptimistic=function(n){var t=this.optimisticData.removeLayer(n);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},e.prototype.batch=function(n){var t=this,r=n.update,o=n.optimistic,a=o===void 0?!0:o,s=n.removeOptimistic,l=n.onWatchUpdated,c,d=function(h){var g=t,_=g.data,S=g.optimisticData;++t.txCount,h&&(t.data=t.optimisticData=h);try{return c=r(t)}finally{--t.txCount,t.data=_,t.optimisticData=S}},p=new Set;return l&&!this.txCount&&this.broadcastWatches(j(j({},n),{onWatchUpdated:function(h){return p.add(h),!1}})),typeof a=="string"?this.optimisticData=this.optimisticData.addLayer(a,d):a===!1?d(this.data):d(),typeof s=="string"&&(this.optimisticData=this.optimisticData.removeLayer(s)),l&&p.size?(this.broadcastWatches(j(j({},n),{onWatchUpdated:function(h,g){var _=l.call(this,h,g);return _!==!1&&p.delete(h),_}})),p.size&&p.forEach(function(h){return t.maybeBroadcastWatch.dirty(h)})):this.broadcastWatches(n),c},e.prototype.performTransaction=function(n,t){return this.batch({update:n,optimistic:t||t!==null})},e.prototype.transformDocument=function(n){return this.addTypenameToDocument(this.addFragmentsToDocument(n))},e.prototype.broadcastWatches=function(n){var t=this;this.txCount||this.watches.forEach(function(r){return t.maybeBroadcastWatch(r,n)})},e.prototype.addFragmentsToDocument=function(n){var t=this.config.fragments;return t?t.transform(n):n},e.prototype.addTypenameToDocument=function(n){return this.addTypename?this.addTypenameTransform.transformDocument(n):n},e.prototype.broadcastWatch=function(n,t){var r=n.lastDiff,o=this.diff(n);t&&(n.optimistic&&typeof t.optimistic=="string"&&(o.fromOptimisticTransaction=!0),t.onWatchUpdated&&t.onWatchUpdated.call(this,n,o,r)===!1)||(!r||!Qt(r.result,o.result))&&n.callback(n.lastDiff=o,r)},e}(pv);globalThis.__DEV__!==!1&&(Xh.prototype.getMemoryInternals=d2);var At=function(i){return i[i.loading=1]="loading",i[i.setVariables=2]="setVariables",i[i.fetchMore=3]="fetchMore",i[i.refetch=4]="refetch",i[i.poll=6]="poll",i[i.ready=7]="ready",i[i.error=8]="error",i}(At||{});function Ml(i){return i?i<7:!1}var BF=Object.assign,BJ=Object.hasOwnProperty,Cv=function(i){Vn(e,i);function e(n){var t=n.queryManager,r=n.queryInfo,o=n.options,a=i.call(this,function(E){try{var D=E._subscription._observer;D&&!D.error&&(D.error=zJ)}catch{}var O=!a.observers.size;a.observers.add(E);var I=a.last;return I&&I.error?E.error&&E.error(I.error):I&&I.result&&E.next&&E.next(I.result),O&&a.reobserve().catch(function(){}),function(){a.observers.delete(E)&&!a.observers.size&&a.tearDownQuery()}})||this;a.observers=new Set,a.subscriptions=new Set,a.queryInfo=r,a.queryManager=t,a.waitForOwnResult=mS(o.fetchPolicy),a.isTornDown=!1,a.subscribeToMore=a.subscribeToMore.bind(a);var s=t.defaultOptions.watchQuery,l=s===void 0?{}:s,c=l.fetchPolicy,d=c===void 0?"cache-first":c,p=o.fetchPolicy,h=p===void 0?d:p,g=o.initialFetchPolicy,_=g===void 0?h==="standby"?d:h:g;a.options=j(j({},o),{initialFetchPolicy:_,fetchPolicy:h}),a.queryId=r.queryId||t.generateQueryId();var S=Ca(a.query);return a.queryName=S&&S.name&&S.name.value,a}return Object.defineProperty(e.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),e.prototype.result=function(){var n=this;return new Promise(function(t,r){var o={next:function(s){t(s),n.observers.delete(o),n.observers.size||n.queryManager.removeQuery(n.queryId),setTimeout(function(){a.unsubscribe()},0)},error:r},a=n.subscribe(o)})},e.prototype.resetDiff=function(){this.queryInfo.resetDiff()},e.prototype.getCurrentResult=function(n){n===void 0&&(n=!0);var t=this.getLastResult(!0),r=this.queryInfo.networkStatus||t&&t.networkStatus||At.ready,o=j(j({},t),{loading:Ml(r),networkStatus:r}),a=this.options.fetchPolicy,s=a===void 0?"cache-first":a;if(!(mS(s)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers))if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var l=this.queryInfo.getDiff();(l.complete||this.options.returnPartialData)&&(o.data=l.result),Qt(o.data,{})&&(o.data=void 0),l.complete?(delete o.partial,l.complete&&o.networkStatus===At.loading&&(s==="cache-first"||s==="cache-only")&&(o.networkStatus=At.ready,o.loading=!1)):o.partial=!0,globalThis.__DEV__!==!1&&!l.complete&&!this.options.partialRefetch&&!o.loading&&!o.data&&!o.error&&fS(l.missing)}return n&&this.updateLastResult(o),o},e.prototype.isDifferentFromLastResult=function(n,t){if(!this.last)return!0;var r=this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!uv(this.query,this.last.result,n,this.variables):!Qt(this.last.result,n);return r||t&&!Qt(this.last.variables,t)},e.prototype.getLast=function(n,t){var r=this.last;if(r&&r[n]&&(!t||Qt(r.variables,this.variables)))return r[n]},e.prototype.getLastResult=function(n){return this.getLast("result",n)},e.prototype.getLastError=function(n){return this.getLast("error",n)},e.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},e.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},e.prototype.refetch=function(n){var t,r={pollInterval:0},o=this.options.fetchPolicy;if(o==="cache-and-network"?r.fetchPolicy=o:o==="no-cache"?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",globalThis.__DEV__!==!1&&n&&BJ.call(n,"variables")){var a=Nh(this.query),s=a.variableDefinitions;(!s||!s.some(function(l){return l.variable.name.value==="variables"}))&&globalThis.__DEV__!==!1&&Oe.warn(20,n,((t=a.name)===null||t===void 0?void 0:t.value)||a)}return n&&!Qt(this.options.variables,n)&&(r.variables=this.options.variables=j(j({},this.options.variables),n)),this.queryInfo.resetLastWrite(),this.reobserve(r,At.refetch)},e.prototype.fetchMore=function(n){var t=this,r=j(j({},n.query?n:j(j(j(j({},this.options),{query:this.options.query}),n),{variables:j(j({},this.options.variables),n.variables)})),{fetchPolicy:"no-cache"});r.query=this.transformDocument(r.query);var o=this.queryManager.generateQueryId();this.lastQuery=n.query?this.transformDocument(this.options.query):r.query;var a=this.queryInfo,s=a.networkStatus;a.networkStatus=At.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var l=new Set,c=n?.updateQuery,d=this.options.fetchPolicy!=="no-cache";return d||Oe(c,21),this.queryManager.fetchQuery(o,r,At.fetchMore).then(function(p){if(t.queryManager.removeQuery(o),a.networkStatus===At.fetchMore&&(a.networkStatus=s),d)t.queryManager.cache.batch({update:function(_){var S=n.updateQuery;S?_.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(E){return S(E,{fetchMoreResult:p.data,variables:r.variables})}):_.writeQuery({query:r.query,variables:r.variables,data:p.data})},onWatchUpdated:function(_){l.add(_.query)}});else{var h=t.getLast("result"),g=c(h.data,{fetchMoreResult:p.data,variables:r.variables});t.reportResult(j(j({},h),{data:g}),t.variables)}return p}).finally(function(){d&&!l.has(t.query)&&hS(t)})},e.prototype.subscribeToMore=function(n){var t=this,r=this.queryManager.startGraphQLSubscription({query:n.document,variables:n.variables,context:n.context}).subscribe({next:function(o){var a=n.updateQuery;a&&t.updateQuery(function(s,l){var c=l.variables;return a(s,{subscriptionData:o,variables:c})})},error:function(o){if(n.onError){n.onError(o);return}globalThis.__DEV__!==!1&&Oe.error(22,o)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},e.prototype.setOptions=function(n){return this.reobserve(n)},e.prototype.silentSetOptions=function(n){var t=xa(this.options,n||{});BF(this.options,t)},e.prototype.setVariables=function(n){return Qt(this.variables,n)?this.observers.size?this.result():Promise.resolve():(this.options.variables=n,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:n},At.setVariables):Promise.resolve())},e.prototype.updateQuery=function(n){var t=this.queryManager,r=t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,o=n(r,{variables:this.variables});o&&(t.cache.writeQuery({query:this.options.query,data:o,variables:this.variables}),t.broadcastQueries())},e.prototype.startPolling=function(n){this.options.pollInterval=n,this.updatePolling()},e.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},e.prototype.applyNextFetchPolicy=function(n,t){if(t.nextFetchPolicy){var r=t.fetchPolicy,o=r===void 0?"cache-first":r,a=t.initialFetchPolicy,s=a===void 0?o:a;o==="standby"||(typeof t.nextFetchPolicy=="function"?t.fetchPolicy=t.nextFetchPolicy(o,{reason:n,options:t,observable:this,initialFetchPolicy:s}):n==="variables-changed"?t.fetchPolicy=s:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy},e.prototype.fetch=function(n,t,r){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,n,t,r)},e.prototype.updatePolling=function(){var n=this;if(!this.queryManager.ssrMode){var t=this,r=t.pollingInfo,o=t.options.pollInterval;if(!o||!this.hasObservers()){r&&(clearTimeout(r.timeout),delete this.pollingInfo);return}if(!(r&&r.interval===o)){Oe(o,23);var a=r||(this.pollingInfo={});a.interval=o;var s=function(){var c,d;n.pollingInfo&&(!Ml(n.queryInfo.networkStatus)&&!(!((d=(c=n.options).skipPollAttempt)===null||d===void 0)&&d.call(c))?n.reobserve({fetchPolicy:n.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},At.poll).then(l,l):l())},l=function(){var c=n.pollingInfo;c&&(clearTimeout(c.timeout),c.timeout=setTimeout(s,c.interval))};l()}}},e.prototype.updateLastResult=function(n,t){t===void 0&&(t=this.variables);var r=this.getLastError();return r&&this.last&&!Qt(t,this.last.variables)&&(r=void 0),this.last=j({result:this.queryManager.assumeImmutableResults?n:tv(n),variables:t},r?{error:r}:null)},e.prototype.reobserveAsConcast=function(n,t){var r=this;this.isTornDown=!1;var o=t===At.refetch||t===At.fetchMore||t===At.poll,a=this.options.variables,s=this.options.fetchPolicy,l=xa(this.options,n||{}),c=o?l:BF(this.options,l),d=this.transformDocument(c.query);this.lastQuery=d,o||(this.updatePolling(),n&&n.variables&&!Qt(n.variables,a)&&c.fetchPolicy!=="standby"&&(c.fetchPolicy===s||typeof c.nextFetchPolicy=="function")&&(this.applyNextFetchPolicy("variables-changed",c),t===void 0&&(t=At.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=mS(c.fetchPolicy));var p=function(){r.concast===_&&(r.waitForOwnResult=!1)},h=c.variables&&j({},c.variables),g=this.fetch(c,t,d),_=g.concast,S=g.fromLink,E={next:function(D){Qt(r.variables,h)&&(p(),r.reportResult(D,h))},error:function(D){Qt(r.variables,h)&&(cv(D)||(D=new as({networkError:D})),p(),r.reportError(D,h))}};return!o&&(S||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=_,this.observer=E),_.addObserver(E),_},e.prototype.reobserve=function(n,t){return this.reobserveAsConcast(n,t).promise},e.prototype.resubscribeAfterError=function(){for(var n=[],t=0;t0},e.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(n){return n.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},e.prototype.transformDocument=function(n){return this.queryManager.transform(n)},e}(St);nv(Cv);function hS(i){var e=i.options,n=e.fetchPolicy,t=e.nextFetchPolicy;return n==="cache-and-network"||n==="network-only"?i.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(r,o){return this.nextFetchPolicy=t,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(r,o):n}}):i.reobserve()}function zJ(i){globalThis.__DEV__!==!1&&Oe.error(24,i.message,i.stack)}function fS(i){globalThis.__DEV__!==!1&&i&&globalThis.__DEV__!==!1&&Oe.debug(25,i)}function mS(i){return i==="network-only"||i==="no-cache"||i==="standby"}var hp=new(Yo?WeakMap:Map);function gS(i,e){var n=i[e];typeof n=="function"&&(i[e]=function(){return hp.set(i,(hp.get(i)+1)%1e15),n.apply(this,arguments)})}function zF(i){i.notifyTimeout&&(clearTimeout(i.notifyTimeout),i.notifyTimeout=void 0)}var xv=function(){function i(e,n){n===void 0&&(n=e.generateQueryId()),this.queryId=n,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var t=this.cache=e.cache;hp.has(t)||(hp.set(t,0),gS(t,"evict"),gS(t,"modify"),gS(t,"reset"))}return i.prototype.init=function(e){var n=e.networkStatus||At.loading;return this.variables&&this.networkStatus!==At.loading&&!Qt(this.variables,e.variables)&&(n=At.setVariables),Qt(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:n}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},i.prototype.reset=function(){zF(this),this.dirty=!1},i.prototype.resetDiff=function(){this.lastDiff=void 0},i.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&Qt(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var n=this.observableQuery;if(n&&n.options.fetchPolicy==="no-cache")return{complete:!1};var t=this.cache.diff(e);return this.updateLastDiff(t,e),t},i.prototype.updateLastDiff=function(e,n){this.lastDiff=e?{diff:e,options:n||this.getDiffOptions()}:void 0},i.prototype.getDiffOptions=function(e){var n;return e===void 0&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:(n=this.observableQuery)===null||n===void 0?void 0:n.options.canonizeResults}},i.prototype.setDiff=function(e){var n=this,t,r=this.lastDiff&&this.lastDiff.diff;e&&!e.complete&&(!((t=this.observableQuery)===null||t===void 0)&&t.getLastError())||(this.updateLastDiff(e),!this.dirty&&!Qt(r&&r.result,e&&e.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return n.notify()},0))))},i.prototype.setObservableQuery=function(e){var n=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){var t=n.getDiff();t.fromOptimisticTransaction?e.observe():hS(e)})):delete this.oqListener)},i.prototype.notify=function(){var e=this;zF(this),this.shouldNotify()&&this.listeners.forEach(function(n){return n(e)}),this.dirty=!1},i.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(Ml(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if(e!=="cache-only"&&e!=="cache-and-network")return!1}return!0},i.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=i.prototype.cancel;var e=this.observableQuery;e&&e.stopPolling()}},i.prototype.cancel=function(){},i.prototype.updateWatch=function(e){var n=this;e===void 0&&(e=this.variables);var t=this.observableQuery;if(!(t&&t.options.fetchPolicy==="no-cache")){var r=j(j({},this.getDiffOptions(e)),{watcher:this,callback:function(o){return n.setDiff(o)}});(!this.lastWatch||!Qt(r,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=r))}},i.prototype.resetLastWrite=function(){this.lastWrite=void 0},i.prototype.shouldWrite=function(e,n){var t=this.lastWrite;return!(t&&t.dmCount===hp.get(this.cache)&&Qt(n,t.variables)&&Qt(e.data,t.result.data))},i.prototype.markResult=function(e,n,t,r){var o=this,a=new Fr,s=yn(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&yn(e.incremental)){var l=rv(this.getDiff().result,e);e.data=l}else if("hasNext"in e&&e.hasNext){var c=this.getDiff();e.data=a.merge(c.result,e.data)}this.graphQLErrors=s,t.fetchPolicy==="no-cache"?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(t.variables)):r!==0&&(wv(e,t.errorPolicy)?this.cache.performTransaction(function(d){if(o.shouldWrite(e,t.variables))d.writeQuery({query:n,data:e.data,variables:t.variables,overwrite:r===1}),o.lastWrite={result:e,variables:t.variables,dmCount:hp.get(o.cache)};else if(o.lastDiff&&o.lastDiff.diff.complete){e.data=o.lastDiff.diff.result;return}var p=o.getDiffOptions(t.variables),h=d.diff(p);!o.stopped&&Qt(o.variables,t.variables)&&o.updateWatch(t.variables),o.updateLastDiff(h,p),h.complete&&(e.data=h.result)}):this.lastWrite=void 0)},i.prototype.markReady=function(){return this.networkError=null,this.networkStatus=At.ready},i.prototype.markError=function(e){return this.networkStatus=At.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},i}();function wv(i,e){e===void 0&&(e="none");var n=e==="ignore"||e==="all",t=!cp(i);return!t&&n&&i.data&&(t=!0),t}var HJ=Object.prototype.hasOwnProperty,HF=Object.create(null),UF=function(){function i(e){var n=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new ip(tn["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new eo(!1);var t=new Vh(function(o){return n.cache.transformDocument(o)},{cache:!1});this.cache=e.cache,this.link=e.link,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientAwareness=e.clientAwareness,this.localState=e.localState,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults;var r=e.documentTransform;this.documentTransform=r?t.concat(r).concat(t):t,this.defaultContext=e.defaultContext||Object.create(null),(this.onBroadcast=e.onBroadcast)&&(this.mutationStore=Object.create(null))}return i.prototype.stop=function(){var e=this;this.queries.forEach(function(n,t){e.stopQueryNoBroadcast(t)}),this.cancelPendingFetches(ii(26))},i.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(n){return n(e)}),this.fetchCancelFns.clear()},i.prototype.mutate=function(e){return qo(this,arguments,void 0,function(n){var t,r,o,a,s,l,c,d=n.mutation,p=n.variables,h=n.optimisticResponse,g=n.updateQueries,_=n.refetchQueries,S=_===void 0?[]:_,E=n.awaitRefetchQueries,D=E===void 0?!1:E,O=n.update,I=n.onQueryUpdated,L=n.fetchPolicy,V=L===void 0?((l=this.defaultOptions.mutate)===null||l===void 0?void 0:l.fetchPolicy)||"network-only":L,he=n.errorPolicy,Z=he===void 0?((c=this.defaultOptions.mutate)===null||c===void 0?void 0:c.errorPolicy)||"none":he,je=n.keepRootFields,Ae=n.context;return Wo(this,function(Et){switch(Et.label){case 0:return Oe(d,27),Oe(V==="network-only"||V==="no-cache",28),t=this.generateMutationId(),d=this.cache.transformForLink(this.transform(d)),r=this.getDocumentInfo(d).hasClientExports,p=this.getVariables(d,p),r?[4,this.localState.addExportedVariables(d,p,Ae)]:[3,2];case 1:p=Et.sent(),Et.label=2;case 2:return o=this.mutationStore&&(this.mutationStore[t]={mutation:d,variables:p,loading:!0,error:null}),a=h&&this.markMutationOptimistic(h,{mutationId:t,document:d,variables:p,fetchPolicy:V,errorPolicy:Z,context:Ae,updateQueries:g,update:O,keepRootFields:je}),this.broadcastQueries(),s=this,[2,new Promise(function(Tn,Mo){return iv(s.getObservableFromLink(d,j(j({},Ae),{optimisticResponse:a?h:void 0}),p,{},!1),function(Ki){if(cp(Ki)&&Z==="none")throw new as({graphQLErrors:ov(Ki)});o&&(o.loading=!1,o.error=null);var Oo=j({},Ki);return typeof S=="function"&&(S=S(Oo)),Z==="ignore"&&cp(Oo)&&delete Oo.errors,s.markMutationResult({mutationId:t,result:Oo,document:d,variables:p,fetchPolicy:V,errorPolicy:Z,context:Ae,update:O,updateQueries:g,awaitRefetchQueries:D,refetchQueries:S,removeOptimistic:a?t:void 0,onQueryUpdated:I,keepRootFields:je})}).subscribe({next:function(Ki){s.broadcastQueries(),(!("hasNext"in Ki)||Ki.hasNext===!1)&&Tn(Ki)},error:function(Ki){o&&(o.loading=!1,o.error=Ki),a&&s.cache.removeOptimistic(t),s.broadcastQueries(),Mo(Ki instanceof as?Ki:new as({networkError:Ki}))}})})]}})})},i.prototype.markMutationResult=function(e,n){var t=this;n===void 0&&(n=this.cache);var r=e.result,o=[],a=e.fetchPolicy==="no-cache";if(!a&&wv(r,e.errorPolicy)){if(Dl(r)||o.push({result:r.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),Dl(r)&&yn(r.incremental)){var s=n.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),l=void 0;s.result&&(l=rv(s.result,r)),typeof l<"u"&&(r.data=l,o.push({result:l,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var c=e.updateQueries;c&&this.queries.forEach(function(p,h){var g=p.observableQuery,_=g&&g.queryName;if(!(!_||!HJ.call(c,_))){var S=c[_],E=t.queries.get(h),D=E.document,O=E.variables,I=n.diff({query:D,variables:O,returnPartialData:!0,optimistic:!1}),L=I.result,V=I.complete;if(V&&L){var he=S(L,{mutationResult:r,queryName:D&&rp(D)||void 0,queryVariables:O});he&&o.push({result:he,dataId:"ROOT_QUERY",query:D,variables:O})}}})}if(o.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var d=[];if(this.refetchQueries({updateCache:function(p){a||o.forEach(function(S){return p.write(S)});var h=e.update,g=!q2(r)||Dl(r)&&!r.hasNext;if(h){if(!a){var _=p.diff({id:"ROOT_MUTATION",query:t.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});_.complete&&(r=j(j({},r),{data:_.result}),"incremental"in r&&delete r.incremental,"hasNext"in r&&delete r.hasNext)}g&&h(p,r,{context:e.context,variables:e.variables})}!a&&!e.keepRootFields&&g&&p.modify({id:"ROOT_MUTATION",fields:function(S,E){var D=E.fieldName,O=E.DELETE;return D==="__typename"?S:O}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(p){return d.push(p)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(d).then(function(){return r})}return Promise.resolve(r)},i.prototype.markMutationOptimistic=function(e,n){var t=this,r=typeof e=="function"?e(n.variables,{IGNORE:HF}):e;return r===HF?!1:(this.cache.recordOptimisticTransaction(function(o){try{t.markMutationResult(j(j({},n),{result:{data:r}}),o)}catch(a){globalThis.__DEV__!==!1&&Oe.error(a)}},n.mutationId),!0)},i.prototype.fetchQuery=function(e,n,t){return this.fetchConcastWithInfo(e,n,t).concast.promise},i.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(n,t){e[t]={variables:n.variables,networkStatus:n.networkStatus,networkError:n.networkError,graphQLErrors:n.graphQLErrors}}),e},i.prototype.resetErrors=function(e){var n=this.queries.get(e);n&&(n.networkError=void 0,n.graphQLErrors=[])},i.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},i.prototype.getDocumentInfo=function(e){var n=this.transformCache;if(!n.has(e)){var t={hasClientExports:b1(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:Za(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:Jb([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:zc(Ca(e)),asQuery:j(j({},e),{definitions:e.definitions.map(function(r){return r.kind==="OperationDefinition"&&r.operation!=="query"?j(j({},r),{operation:"query"}):r})})};n.set(e,t)}return n.get(e)},i.prototype.getVariables=function(e,n){return j(j({},this.getDocumentInfo(e).defaultVars),n)},i.prototype.watchQuery=function(e){var n=this.transform(e.query);e=j(j({},e),{variables:this.getVariables(n,e.variables)}),typeof e.notifyOnNetworkStatusChange>"u"&&(e.notifyOnNetworkStatusChange=!1);var t=new xv(this),r=new Cv({queryManager:this,queryInfo:t,options:e});return r.lastQuery=n,this.queries.set(r.queryId,t),t.init({document:n,observableQuery:r,variables:r.variables}),r},i.prototype.query=function(e,n){var t=this;return n===void 0&&(n=this.generateQueryId()),Oe(e.query,29),Oe(e.query.kind==="Document",30),Oe(!e.returnPartialData,31),Oe(!e.pollInterval,32),this.fetchQuery(n,j(j({},e),{query:this.transform(e.query)})).finally(function(){return t.stopQuery(n)})},i.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},i.prototype.generateRequestId=function(){return this.requestIdCounter++},i.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},i.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},i.prototype.stopQueryInStoreNoBroadcast=function(e){var n=this.queries.get(e);n&&n.stop()},i.prototype.clearStore=function(e){return e===void 0&&(e={discardWatches:!0}),this.cancelPendingFetches(ii(33)),this.queries.forEach(function(n){n.observableQuery?n.networkStatus=At.loading:n.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},i.prototype.getObservableQueries=function(e){var n=this;e===void 0&&(e="active");var t=new Map,r=new Map,o=new Set;return Array.isArray(e)&&e.forEach(function(a){typeof a=="string"?r.set(a,!1):E1(a)?r.set(n.transform(a),!1):Nt(a)&&a.query&&o.add(a)}),this.queries.forEach(function(a,s){var l=a.observableQuery,c=a.document;if(l){if(e==="all"){t.set(s,l);return}var d=l.queryName,p=l.options.fetchPolicy;if(p==="standby"||e==="active"&&!l.hasObservers())return;(e==="active"||d&&r.has(d)||c&&r.has(c))&&(t.set(s,l),d&&r.set(d,!0),c&&r.set(c,!0))}}),o.size&&o.forEach(function(a){var s=Dh("legacyOneTimeQuery"),l=n.getQuery(s).init({document:a.query,variables:a.variables}),c=new Cv({queryManager:n,queryInfo:l,options:j(j({},a),{fetchPolicy:"network-only"})});Oe(c.queryId===s),l.setObservableQuery(c),t.set(s,c)}),globalThis.__DEV__!==!1&&r.size&&r.forEach(function(a,s){a||globalThis.__DEV__!==!1&&Oe.warn(typeof s=="string"?34:35,s)}),t},i.prototype.reFetchObservableQueries=function(e){var n=this;e===void 0&&(e=!1);var t=[];return this.getObservableQueries(e?"all":"active").forEach(function(r,o){var a=r.options.fetchPolicy;r.resetLastResults(),(e||a!=="standby"&&a!=="cache-only")&&t.push(r.refetch()),n.getQuery(o).setDiff(null)}),this.broadcastQueries(),Promise.all(t)},i.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},i.prototype.startGraphQLSubscription=function(e){var n=this,t=e.query,r=e.fetchPolicy,o=e.errorPolicy,a=o===void 0?"none":o,s=e.variables,l=e.context,c=l===void 0?{}:l,d=e.extensions,p=d===void 0?{}:d;t=this.transform(t),s=this.getVariables(t,s);var h=function(_){return n.getObservableFromLink(t,c,_,p).map(function(S){r!=="no-cache"&&(wv(S,a)&&n.cache.write({query:t,result:S.data,dataId:"ROOT_SUBSCRIPTION",variables:_}),n.broadcastQueries());var E=cp(S),D=Y2(S);if(E||D){var O={};if(E&&(O.graphQLErrors=S.errors),D&&(O.protocolErrors=S.extensions[qh]),a==="none"||D)throw new as(O)}return a==="ignore"&&delete S.errors,S})};if(this.getDocumentInfo(t).hasClientExports){var g=this.localState.addExportedVariables(t,s,c).then(h);return new St(function(_){var S=null;return g.then(function(E){return S=E.subscribe(_)},_.error),function(){return S&&S.unsubscribe()}})}return h(s)},i.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},i.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},i.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},i.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},i.prototype.getLocalState=function(){return this.localState},i.prototype.getObservableFromLink=function(e,n,t,r,o){var a=this,s;o===void 0&&(o=(s=n?.queryDeduplication)!==null&&s!==void 0?s:this.queryDeduplication);var l,c=this.getDocumentInfo(e),d=c.serverQuery,p=c.clientQuery;if(d){var h=this,g=h.inFlightLinkObservables,_=h.link,S={query:d,variables:t,operationName:rp(d)||void 0,context:this.prepareContext(j(j({},n),{forceFetch:!o})),extensions:r};if(n=S.context,o){var E=Tl(d),D=sr(t),O=g.lookup(E,D);if(l=O.observable,!l){var I=new Wc([dp(_,S)]);l=O.observable=I,I.beforeNext(function(){g.remove(E,D)})}}else l=new Wc([dp(_,S)])}else l=new Wc([St.of({data:{}})]),n=this.prepareContext(n);return p&&(l=iv(l,function(L){return a.localState.runResolvers({document:p,remoteResult:L,context:n,variables:t})})),l},i.prototype.getResultsFromLink=function(e,n,t){var r=e.lastRequestId=this.generateRequestId(),o=this.cache.transformForLink(t.query);return iv(this.getObservableFromLink(o,t.context,t.variables),function(a){var s=ov(a),l=s.length>0,c=t.errorPolicy;if(r>=e.lastRequestId){if(l&&c==="none")throw e.markError(new as({graphQLErrors:s}));e.markResult(a,o,t,n),e.markReady()}var d={data:a.data,loading:!1,networkStatus:At.ready};return l&&c==="none"&&(d.data=void 0),l&&c!=="ignore"&&(d.errors=s,d.networkStatus=At.error),d},function(a){var s=cv(a)?a:new as({networkError:a});throw r>=e.lastRequestId&&e.markError(s),s})},i.prototype.fetchConcastWithInfo=function(e,n,t,r){var o=this;t===void 0&&(t=At.loading),r===void 0&&(r=n.query);var a=this.getVariables(r,n.variables),s=this.getQuery(e),l=this.defaultOptions.watchQuery,c=n.fetchPolicy,d=c===void 0?l&&l.fetchPolicy||"cache-first":c,p=n.errorPolicy,h=p===void 0?l&&l.errorPolicy||"none":p,g=n.returnPartialData,_=g===void 0?!1:g,S=n.notifyOnNetworkStatusChange,E=S===void 0?!1:S,D=n.context,O=D===void 0?{}:D,I=Object.assign({},n,{query:r,variables:a,fetchPolicy:d,errorPolicy:h,returnPartialData:_,notifyOnNetworkStatusChange:E,context:O}),L=function(Ae){I.variables=Ae;var Et=o.fetchQueryByPolicy(s,I,t);return I.fetchPolicy!=="standby"&&Et.sources.length>0&&s.observableQuery&&s.observableQuery.applyNextFetchPolicy("after-fetch",n),Et},V=function(){return o.fetchCancelFns.delete(e)};this.fetchCancelFns.set(e,function(Ae){V(),setTimeout(function(){return he.cancel(Ae)})});var he,Z;if(this.getDocumentInfo(I.query).hasClientExports)he=new Wc(this.localState.addExportedVariables(I.query,I.variables,I.context).then(L).then(function(Ae){return Ae.sources})),Z=!0;else{var je=L(I.variables);Z=je.fromLink,he=new Wc(je.sources)}return he.promise.then(V,V),{concast:he,fromLink:Z}},i.prototype.refetchQueries=function(e){var n=this,t=e.updateCache,r=e.include,o=e.optimistic,a=o===void 0?!1:o,s=e.removeOptimistic,l=s===void 0?a?Dh("refetchQueries"):void 0:s,c=e.onQueryUpdated,d=new Map;r&&this.getObservableQueries(r).forEach(function(h,g){d.set(g,{oq:h,lastDiff:n.getQuery(g).getDiff()})});var p=new Map;return t&&this.cache.batch({update:t,optimistic:a&&l||!1,removeOptimistic:l,onWatchUpdated:function(h,g,_){var S=h.watcher instanceof xv&&h.watcher.observableQuery;if(S){if(c){d.delete(S.queryId);var E=c(S,g,_);return E===!0&&(E=S.refetch()),E!==!1&&p.set(S,E),E}c!==null&&d.set(S.queryId,{oq:S,lastDiff:_,diff:g})}}}),d.size&&d.forEach(function(h,g){var _=h.oq,S=h.lastDiff,E=h.diff,D;if(c){if(!E){var O=_.queryInfo;O.reset(),E=O.getDiff()}D=c(_,E,S)}(!c||D===!0)&&(D=_.refetch()),D!==!1&&p.set(_,D),g.indexOf("legacyOneTimeQuery")>=0&&n.stopQueryNoBroadcast(g)}),l&&this.cache.removeOptimistic(l),p},i.prototype.fetchQueryByPolicy=function(e,n,t){var r=this,o=n.query,a=n.variables,s=n.fetchPolicy,l=n.refetchWritePolicy,c=n.errorPolicy,d=n.returnPartialData,p=n.context,h=n.notifyOnNetworkStatusChange,g=e.networkStatus;e.init({document:o,variables:a,networkStatus:t});var _=function(){return e.getDiff()},S=function(L,V){V===void 0&&(V=e.networkStatus||At.loading);var he=L.result;globalThis.__DEV__!==!1&&!d&&!Qt(he,{})&&fS(L.missing);var Z=function(je){return St.of(j({data:je,loading:Ml(V),networkStatus:V},L.complete?null:{partial:!0}))};return he&&r.getDocumentInfo(o).hasForcedResolvers?r.localState.runResolvers({document:o,remoteResult:{data:he},context:p,variables:a,onlyRunForcedResolvers:!0}).then(function(je){return Z(je.data||void 0)}):c==="none"&&V===At.refetch&&Array.isArray(L.missing)?Z(void 0):Z(he)},E=s==="no-cache"?0:t===At.refetch&&l!=="merge"?1:2,D=function(){return r.getResultsFromLink(e,E,{query:o,variables:a,context:p,fetchPolicy:s,errorPolicy:c})},O=h&&typeof g=="number"&&g!==t&&Ml(t);switch(s){default:case"cache-first":{var I=_();return I.complete?{fromLink:!1,sources:[S(I,e.markReady())]}:d||O?{fromLink:!0,sources:[S(I),D()]}:{fromLink:!0,sources:[D()]}}case"cache-and-network":{var I=_();return I.complete||d||O?{fromLink:!0,sources:[S(I),D()]}:{fromLink:!0,sources:[D()]}}case"cache-only":return{fromLink:!1,sources:[S(_(),e.markReady())]};case"network-only":return O?{fromLink:!0,sources:[S(_()),D()]}:{fromLink:!0,sources:[D()]};case"no-cache":return O?{fromLink:!0,sources:[S(e.getDiff()),D()]}:{fromLink:!0,sources:[D()]};case"standby":return{fromLink:!1,sources:[]}}},i.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new xv(this,e)),this.queries.get(e)},i.prototype.prepareContext=function(e){e===void 0&&(e={});var n=this.localState.prepareContext(e);return j(j(j({},this.defaultContext),n),{clientAwareness:this.clientAwareness})},i}();var $F=function(){function i(e){var n=e.cache,t=e.client,r=e.resolvers,o=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=n,t&&(this.client=t),r&&this.addResolvers(r),o&&this.setFragmentMatcher(o)}return i.prototype.addResolvers=function(e){var n=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(t){n.resolvers=R1(n.resolvers,t)}):this.resolvers=R1(this.resolvers,e)},i.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},i.prototype.getResolvers=function(){return this.resolvers||{}},i.prototype.runResolvers=function(e){return qo(this,arguments,void 0,function(n){var t=n.document,r=n.remoteResult,o=n.context,a=n.variables,s=n.onlyRunForcedResolvers,l=s===void 0?!1:s;return Wo(this,function(c){return t?[2,this.resolveDocument(t,r.data,o,a,this.fragmentMatcher,l).then(function(d){return j(j({},r),{data:d.result})})]:[2,r]})})},i.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},i.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},i.prototype.clientQuery=function(e){return Za(["client"],e)&&this.resolvers?e:null},i.prototype.serverQuery=function(e){return Bh(e)},i.prototype.prepareContext=function(e){var n=this.cache;return j(j({},e),{cache:n,getCacheKey:function(t){return n.identify(t)}})},i.prototype.addExportedVariables=function(e){return qo(this,arguments,void 0,function(n,t,r){return t===void 0&&(t={}),r===void 0&&(r={}),Wo(this,function(o){return n?[2,this.resolveDocument(n,this.buildRootValueFromCache(n,t)||{},this.prepareContext(r),t).then(function(a){return j(j({},t),a.exportedVariables)})]:[2,j({},t)]})})},i.prototype.shouldForceResolvers=function(e){var n=!1;return Bn(e,{Directive:{enter:function(t){if(t.name.value==="client"&&t.arguments&&(n=t.arguments.some(function(r){return r.name.value==="always"&&r.value.kind==="BooleanValue"&&r.value.value===!0}),n))return jc}}}),n},i.prototype.buildRootValueFromCache=function(e,n){return this.cache.diff({query:A1(e),variables:n,returnPartialData:!0,optimistic:!1}).result},i.prototype.resolveDocument=function(e,n){return qo(this,arguments,void 0,function(t,r,o,a,s,l){var c,d,p,h,g,_,S,E,D,O,I;return o===void 0&&(o={}),a===void 0&&(a={}),s===void 0&&(s=function(){return!0}),l===void 0&&(l=!1),Wo(this,function(L){return c=Jo(t),d=ns(t),p=es(d),h=this.collectSelectionsToResolve(c,p),g=c.operation,_=g?g.charAt(0).toUpperCase()+g.slice(1):"Query",S=this,E=S.cache,D=S.client,O={fragmentMap:p,context:j(j({},o),{cache:E,client:D}),variables:a,fragmentMatcher:s,defaultOperationType:_,exportedVariables:{},selectionsToResolve:h,onlyRunForcedResolvers:l},I=!1,[2,this.resolveSelectionSet(c.selectionSet,I,r,O).then(function(V){return{result:V,exportedVariables:O.exportedVariables}})]})})},i.prototype.resolveSelectionSet=function(e,n,t,r){return qo(this,void 0,void 0,function(){var o,a,s,l,c,d=this;return Wo(this,function(p){return o=r.fragmentMap,a=r.context,s=r.variables,l=[t],c=function(h){return qo(d,void 0,void 0,function(){var g,_;return Wo(this,function(S){return!n&&!r.selectionsToResolve.has(h)?[2]:Ko(h,s)?lr(h)?[2,this.resolveField(h,n,t,r).then(function(E){var D;typeof E<"u"&&l.push((D={},D[Nr(h)]=E,D))})]:(D1(h)?g=h:(g=o[h.name.value],Oe(g,18,h.name.value)),g&&g.typeCondition&&(_=g.typeCondition.name.value,r.fragmentMatcher(t,_,a))?[2,this.resolveSelectionSet(g.selectionSet,n,t,r).then(function(E){l.push(E)})]:[2]):[2]})})},[2,Promise.all(e.selections.map(c)).then(function(){return Gc(l)})]})})},i.prototype.resolveField=function(e,n,t,r){return qo(this,void 0,void 0,function(){var o,a,s,l,c,d,p,h,g,_=this;return Wo(this,function(S){return t?(o=r.variables,a=e.name.value,s=Nr(e),l=a!==s,c=t[s]||t[a],d=Promise.resolve(c),(!r.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(p=t.__typename||r.defaultOperationType,h=this.resolvers&&this.resolvers[p],h&&(g=h[l?a:s],g&&(d=Promise.resolve(pp.withValue(this.cache,g,[t,is(e,o),r.context,{field:e,fragmentMap:r.fragmentMap}]))))),[2,d.then(function(E){var D,O;if(E===void 0&&(E=c),e.directives&&e.directives.forEach(function(L){L.name.value==="export"&&L.arguments&&L.arguments.forEach(function(V){V.name.value==="as"&&V.value.kind==="StringValue"&&(r.exportedVariables[V.value.value]=E)})}),!e.selectionSet||E==null)return E;var I=(O=(D=e.directives)===null||D===void 0?void 0:D.some(function(L){return L.name.value==="client"}))!==null&&O!==void 0?O:!1;if(Array.isArray(E))return _.resolveSubSelectedArray(e,n||I,E,r);if(e.selectionSet)return _.resolveSelectionSet(e.selectionSet,n||I,E,r)})]):[2,null]})})},i.prototype.resolveSubSelectedArray=function(e,n,t,r){var o=this;return Promise.all(t.map(function(a){if(a===null)return null;if(Array.isArray(a))return o.resolveSubSelectedArray(e,n,a,r);if(e.selectionSet)return o.resolveSelectionSet(e.selectionSet,n,a,r)}))},i.prototype.collectSelectionsToResolve=function(e,n){var t=function(a){return!Array.isArray(a)},r=this.selectionsToResolveCache;function o(a){if(!r.has(a)){var s=new Set;r.set(a,s),Bn(a,{Directive:function(l,c,d,p,h){l.name.value==="client"&&h.forEach(function(g){t(g)&&Oh(g)&&s.add(g)})},FragmentSpread:function(l,c,d,p,h){var g=n[l.name.value];Oe(g,19,l.name.value);var _=o(g);_.size>0&&(h.forEach(function(S){t(S)&&Oh(S)&&s.add(S)}),s.add(l),_.forEach(function(S){s.add(S)}))}})}return r.get(a)}return o(e)},i}();var GF=!1;var Jh=function(){function i(e){var n=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw ii(15);var t=e.uri,r=e.credentials,o=e.headers,a=e.cache,s=e.documentTransform,l=e.ssrMode,c=l===void 0?!1:l,d=e.ssrForceFetchDelay,p=d===void 0?0:d,h=e.connectToDevTools,g=e.queryDeduplication,_=g===void 0?!0:g,S=e.defaultOptions,E=e.defaultContext,D=e.assumeImmutableResults,O=D===void 0?a.assumeImmutableResults:D,I=e.resolvers,L=e.typeDefs,V=e.fragmentMatcher,he=e.name,Z=e.version,je=e.devtools,Ae=e.link;Ae||(Ae=t?new Y1({uri:t,credentials:r,headers:o}):wa.empty()),this.link=Ae,this.cache=a,this.disableNetworkFetches=c||p>0,this.queryDeduplication=_,this.defaultOptions=S||Object.create(null),this.typeDefs=L,this.devtoolsConfig=j(j({},je),{enabled:je?.enabled||h}),this.devtoolsConfig.enabled===void 0&&(this.devtoolsConfig.enabled=globalThis.__DEV__!==!1),p&&setTimeout(function(){return n.disableNetworkFetches=!1},p),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=Th,this.localState=new $F({cache:a,client:this,resolvers:I,fragmentMatcher:V}),this.queryManager=new UF({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:E,documentTransform:s,queryDeduplication:_,ssrMode:c,clientAwareness:{name:he,version:Z},localState:this.localState,assumeImmutableResults:O,onBroadcast:this.devtoolsConfig.enabled?function(){n.devToolsHookCb&&n.devToolsHookCb({action:{},state:{queries:n.queryManager.getQueryStore(),mutations:n.queryManager.mutationStore||{}},dataWithOptimisticResults:n.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return i.prototype.connectToDevTools=function(){if(!(typeof window>"u")){var e=window,n=Symbol.for("apollo.devtools");(e[n]=e[n]||[]).push(this),e.__APOLLO_CLIENT__=this,!GF&&globalThis.__DEV__!==!1&&(GF=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var t=window.navigator,r=t&&t.userAgent,o=void 0;typeof r=="string"&&(r.indexOf("Chrome/")>-1?o="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":r.indexOf("Firefox/")>-1&&(o="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),o&&globalThis.__DEV__!==!1&&Oe.log("Download the Apollo DevTools for a better development experience: %s",o)}},1e4))}},Object.defineProperty(i.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),i.prototype.stop=function(){this.queryManager.stop()},i.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Uh(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&(e.fetchPolicy==="network-only"||e.fetchPolicy==="cache-and-network")&&(e=j(j({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},i.prototype.query=function(e){return this.defaultOptions.query&&(e=Uh(this.defaultOptions.query,e)),Oe(e.fetchPolicy!=="cache-and-network",16),this.disableNetworkFetches&&e.fetchPolicy==="network-only"&&(e=j(j({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},i.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Uh(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},i.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},i.prototype.readQuery=function(e,n){return n===void 0&&(n=!1),this.cache.readQuery(e,n)},i.prototype.watchFragment=function(e){return this.cache.watchFragment(e)},i.prototype.readFragment=function(e,n){return n===void 0&&(n=!1),this.cache.readFragment(e,n)},i.prototype.writeQuery=function(e){var n=this.cache.writeQuery(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),n},i.prototype.writeFragment=function(e){var n=this.cache.writeFragment(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),n},i.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},i.prototype.__requestRaw=function(e){return dp(this.link,e)},i.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(n){return n()}))}).then(function(){return e.reFetchObservableQueries()})},i.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(n){return n()}))})},i.prototype.onResetStore=function(e){var n=this;return this.resetStoreCallbacks.push(e),function(){n.resetStoreCallbacks=n.resetStoreCallbacks.filter(function(t){return t!==e})}},i.prototype.onClearStore=function(e){var n=this;return this.clearStoreCallbacks.push(e),function(){n.clearStoreCallbacks=n.clearStoreCallbacks.filter(function(t){return t!==e})}},i.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},i.prototype.refetchQueries=function(e){var n=this.queryManager.refetchQueries(e),t=[],r=[];n.forEach(function(a,s){t.push(s),r.push(a)});var o=Promise.all(r);return o.queries=t,o.results=r,o.catch(function(a){globalThis.__DEV__!==!1&&Oe.debug(17,a)}),o},i.prototype.getObservableQueries=function(e){return e===void 0&&(e="active"),this.queryManager.getObservableQueries(e)},i.prototype.extract=function(e){return this.cache.extract(e)},i.prototype.restore=function(e){return this.cache.restore(e)},i.prototype.addResolvers=function(e){this.localState.addResolvers(e)},i.prototype.setResolvers=function(e){this.localState.setResolvers(e)},i.prototype.getResolvers=function(){return this.localState.getResolvers()},i.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},i.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(i.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),i}();globalThis.__DEV__!==!1&&(Jh.prototype.getMemoryInternals=c2);var Zh=function(){return Zh=Object.assign||function(e){for(var n,t=1,r=arguments.length;t{}))}function tf(i){return lt({subscribe:()=>console.log("SUBSCRIBE",i),unsubscribe:()=>console.log("UNSUBSCRIBE",i),next:e=>console.log("NEXT",i,e),error:e=>console.log("ERROR",i,e),complete:()=>console.log("COMPLETE",i)})}function JF(i){return new Ct(e=>(i().then(n=>{e.closed||(e.next(n),e.complete())},n=>{e.closed||e.error(n)}),()=>e.unsubscribe()))}function WJ(i,e){return e?i.pipe(Ye({loading:!0}),re(n=>ce(N({},n),{loading:!!n.loading}))):i.pipe(re(n=>ce(N({},n),{loading:!1})))}var yS=class{zone;constructor(e){this.zone=e}now=Date.now?Date.now:()=>+new Date;schedule(e,n=0,t){return this.zone.run(()=>jT.schedule(e,n,t))}};function CS(i){return i[PT]=()=>i,i}function xS(i,e){return i.pipe(BT(new yS(e)))}function QJ(i){return function(n){return new Ct(function(r){let o=i.getCurrentResult(),{loading:a,errors:s,error:l,partial:c,data:d}=o,{partialRefetch:p,fetchPolicy:h}=i.options,g=s||l;return p&&c&&(!d||Object.keys(d).length===0)&&h!=="cache-only"&&!a&&!g&&r.next(ce(N({},o),{loading:!0,networkStatus:At.loading})),n.subscribe(r)})}}var wS=class{obsQuery;valueChanges;queryId;constructor(e,n,t){this.obsQuery=e;let r=xS(Di(CS(this.obsQuery)),n);this.valueChanges=t.useInitialLoading?r.pipe(QJ(this.obsQuery)):r,this.queryId=this.obsQuery.queryId}get options(){return this.obsQuery.options}get variables(){return this.obsQuery.variables}result(){return this.obsQuery.result()}getCurrentResult(){return this.obsQuery.getCurrentResult()}getLastResult(){return this.obsQuery.getLastResult()}getLastError(){return this.obsQuery.getLastError()}resetLastResults(){return this.obsQuery.resetLastResults()}refetch(e){return this.obsQuery.refetch(e)}fetchMore(e){return this.obsQuery.fetchMore(e)}subscribeToMore(e){return this.obsQuery.subscribeToMore(e)}updateQuery(e){return this.obsQuery.updateQuery(e)}stopPolling(){return this.obsQuery.stopPolling()}startPolling(e){return this.obsQuery.startPolling(e)}setOptions(e){return this.obsQuery.setOptions(e)}setVariables(e){return this.obsQuery.setVariables(e)}},ZF=new H("APOLLO_FLAGS"),eP=new H("APOLLO_OPTIONS"),KJ=new H("APOLLO_NAMED_OPTIONS"),Tv=class{ngZone;flags;_client;useInitialLoading;useMutationLoading;constructor(e,n,t){this.ngZone=e,this.flags=n,this._client=t,this.useInitialLoading=n?.useInitialLoading??!1,this.useMutationLoading=n?.useMutationLoading??!1}watchQuery(e){return new wS(this.ensureClient().watchQuery(N({},e)),this.ngZone,N({useInitialLoading:this.useInitialLoading},e))}query(e){return JF(()=>this.ensureClient().query(N({},e)))}mutate(e){return WJ(JF(()=>this.ensureClient().mutate(N({},e))),e.useMutationLoading??this.useMutationLoading)}watchFragment(e,n){let t=Di(CS(this.ensureClient().watchFragment(N({},e))));return n&&n.useZone!==!0?t:xS(t,this.ngZone)}subscribe(e,n){let t=Di(CS(this.ensureClient().subscribe(N({},e))));return n&&n.useZone!==!0?t:xS(t,this.ngZone)}get client(){return this.ensureClient()}set client(e){if(this._client)throw new Error("Client has been already defined");this._client=e}ensureClient(){return this.checkInstance(),this._client}checkInstance(){if(this._client)return!0;throw new Error("Client has not been defined yet")}},Kc=(()=>{class i extends Tv{map=new Map;constructor(n,t,r,o){if(super(n,o),t&&this.createDefault(t),r&&typeof r=="object"){for(let a in r)if(r.hasOwnProperty(a)){let s=r[a];this.create(s,a)}}}create(n,t){vS(t)?this.createNamed(t,n):this.createDefault(n)}default(){return this}use(n){return vS(n)?this.map.get(n):this.default()}createDefault(n){if(this._client)throw new Error("Apollo has been already created.");this.client=this.ngZone.runOutsideAngular(()=>new Jh(n))}createNamed(n,t){if(this.map.has(n))throw new Error(`Client ${n} has been already created`);this.map.set(n,new Tv(this.ngZone,this.flags,this.ngZone.runOutsideAngular(()=>new Jh(t))))}removeClient(n){vS(n)?this.map.delete(n):this._client=void 0}static \u0275fac=function(t){return new(t||i)(G(de),G(eP,8),G(KJ,8),G(ZF,8))};static \u0275prov=W({token:i,factory:i.\u0275fac})}return i})();function vS(i){return!!i&&i!=="default"}function tP(i,e={}){return[Kc,{provide:eP,useFactory:i},{provide:ZF,useValue:e}]}function YJ(i,...e){return Ol(i,...e)}var Yc=YJ;var Dv=class i{allDebouncedUpdateCache=new Map;debounce(e,n,t){let r=this.getMap(e),o=r.get(n);if(o)o.object=N(N({},o.object),t);else{let a=new tc(1),s=!1,l=new q;l.subscribe(()=>{s=!0,a.complete(),l.complete(),this.delete(e,n)});let c=new q;o={object:t,debouncer:a,canceller:l,flusher:c,modelService:e,result:a.pipe(Dn(2e3),$T(c),pt(1),hr(()=>(this.delete(e,n),s||!o?Ht:e.updateNow(o.object))),nc())},r.set(n,o)}return o.debouncer.next(),o.result}cancelOne(e,n){this.allDebouncedUpdateCache.get(e)?.get(n)?.canceller.next()}flushOne(e,n){let t=this.allDebouncedUpdateCache.get(e)?.get(n);return this.internalFlush(t?[t]:[])}flush(){let e=[];return this.allDebouncedUpdateCache.forEach(n=>n.forEach(t=>e.push(t))),this.internalFlush(e)}internalFlush(e){let n=[],t=[];return e.forEach(r=>{n.push(r.result.pipe(Xn(()=>U(void 0)))),t.push(r.flusher)}),n.length||n.push(U(void 0)),new Ct(r=>{let o=Yi(n).pipe(re(()=>{})).subscribe(r);return t.forEach(a=>a.next()),o})}get count(){let e=0;return this.allDebouncedUpdateCache.forEach(n=>e+=n.size),e}getMap(e){let n=this.allDebouncedUpdateCache.get(e);return n||(n=new Map,this.allDebouncedUpdateCache.set(e,n)),n}delete(e,n){let t=this.allDebouncedUpdateCache.get(e);t&&(t.delete(n),t.size||this.allDebouncedUpdateCache.delete(e))}static \u0275fac=function(n){return new(n||i)};static \u0275prov=W({token:i,factory:i.\u0275fac,providedIn:"root"})};var Al=class{constructor(e,n,t,r,o,a,s=null,l=null,c=null,d=null){this.name=e;this.oneQuery=n;this.allQuery=t;this.createMutation=r;this.updateMutation=o;this.deleteMutation=a;this.createName=l;this.updateName=c;this.deleteName=d;this.plural=s??qR(this.name)}creatingCache=new Map;apollo=x(Kc);naturalDebounceService=x(Dv);plural;getFormValidators(e){return{}}getFormAsyncValidators(e){return{}}getFormGroupValidators(e){return[]}getFormGroupAsyncValidators(e){return[]}getFormConfig(e){let n=N(N({},this.getDefaultForServer()),this.getFormExtraFieldDefaultValues()),t=this.getFormValidators(e),r=this.getFormAsyncValidators(e),o={},a=e.permissions?!e.permissions.update:!1;e.id&&(o.id=new zm({value:e.id,disabled:!0}));for(let s of Object.keys(n)){let c={value:e[s]!==void 0?e[s]:n[s],disabled:a},d=typeof t[s]<"u"?t[s]:null,p=typeof r[s]<"u"?r[s]:null;o[s]=new zm(c,d,p)}for(let s of Object.keys(t))if(!o[s]){let l={value:e[s]?e[s]:null,disabled:a};o[s]=new zm(l,t[s])}for(let s of Object.keys(r))if(o[s]&&r[s])o[s].setAsyncValidators(r[s]);else{let l={value:e[s]?e[s]:null,disabled:a};o[s]=new zm(l,null,r[s])}return o}getFormGroup(e){let n=this.getFormConfig(Jr(e));return new Xd(n,{validators:this.getFormGroupValidators(e),asyncValidators:this.getFormGroupAsyncValidators(e)})}getOne(e){return this.prepareOneQuery(e,"cache-and-network").pipe(ig(n=>n.networkStatus!==At.ready,!0),re(n=>n.data[this.name]))}watchOne(e,n="cache-and-network"){return this.prepareOneQuery(e,n).pipe(re(t=>t.data[this.name]))}prepareOneQuery(e,n){return this.throwIfObservable(e),this.throwIfNotQuery(this.oneQuery),this.getVariablesForOne(e).pipe(qe(t=>(this.throwIfNotQuery(this.oneQuery),this.apollo.watchQuery({query:this.oneQuery,variables:t,fetchPolicy:n,nextFetchPolicy:"cache-only"}).valueChanges)),Re(t=>!!t.data))}getAll(e){return this.throwIfNotQuery(this.allQuery),this.getPartialVariablesForAll().pipe(Ji(),qe(n=>{this.throwIfNotQuery(this.allQuery);let t=new zi(e);return t.merge("partial-variables",n),this.apollo.query({query:this.allQuery,variables:t.variables.value,fetchPolicy:"network-only"})}),this.mapAll())}watchAll(e,n="cache-and-network"){return this.throwIfNotQuery(this.allQuery),nn({variables:e.variables.pipe(Dn(20),Re(t=>typeof t<"u")),partialVariables:this.getPartialVariablesForAll()}).pipe(qe(t=>{let r=new zi(e);return r.merge("partial-variables",t.partialVariables),this.throwIfNotQuery(this.allQuery),this.apollo.watchQuery({query:this.allQuery,variables:r.variables.value,fetchPolicy:n}).valueChanges.pipe(Xn(()=>Ht),Re(o=>!!o.data),this.mapAll())}))}createOrUpdate(e,n=!1){this.throwIfObservable(e),this.throwIfNotQuery(this.createMutation),this.throwIfNotQuery(this.updateMutation);let t=this.creatingCache.get(e);if(t)return t.pipe(qe(o=>this.update(N({id:o.id},e))));if("id"in e&&e.id)return n?this.updateNow(e):this.update(e);let r=this.create(e).pipe(lt(()=>{this.creatingCache.delete(e)}));return this.creatingCache.set(e,r.pipe(nc())),r}create(e){this.throwIfObservable(e),this.throwIfNotQuery(this.createMutation);let n=Yr({},{input:this.getInput(e,!0)},this.getPartialVariablesForCreation(e));return this.apollo.mutate({mutation:this.createMutation,variables:n}).pipe(re(t=>(this.apollo.client.reFetchObservableQueries(),this.mapCreation(t))))}update(e){this.throwIfObservable(e),this.throwIfNotQuery(this.updateMutation);let n=e.id;return this.naturalDebounceService.debounce(this,n,e)}updateNow(e){this.throwIfObservable(e),this.throwIfNotQuery(this.updateMutation);let n=Yr({id:e.id,input:this.getInput(e,!1)},this.getPartialVariablesForUpdate(e));return this.apollo.mutate({mutation:this.updateMutation,variables:n}).pipe(re(t=>(this.apollo.client.reFetchObservableQueries(),this.mapUpdate(t))))}delete(e){this.throwIfObservable(e),this.throwIfNotQuery(this.deleteMutation);let n=e.map(r=>(this.naturalDebounceService.cancelOne(this,r.id),r.id)),t=Yr({ids:n},this.getPartialVariablesForDelete(e));return this.apollo.mutate({mutation:this.deleteMutation,variables:t}).pipe(qe(r=>{let o=this.mapDelete(r);return Di(this.apollo.client.reFetchObservableQueries()).pipe(re(()=>o))}))}resolve(e){if(e){let n=this.watchOne(e,"network-only").pipe(Ji()),t=this.watchOne(e,"cache-first");return n.pipe(re(r=>t.pipe(Ye(r))))}else return U(U(this.getDefaultForServer()))}getInput(e,n){e=GR(e);let t=this.getDefaultForServer(),r=Ic(e,Object.keys(t));return n&&(r=Ja(r,t)),r}count(e){let n="Count"+ba(this.plural),t=ba(this.name)+"Filter",r=Yc` + query ${n} ($filter: ${t}) { + count: ${this.plural} (filter: $filter, pagination: {pageSize: 0, pageIndex: 0}) { + length + } + }`;return this.getPartialVariablesForAll().pipe(qe(o=>{let a=new zi(e);return a.merge("partial-variables",o),this.apollo.query({query:r,variables:a.variables.value,fetchPolicy:"network-only"})}),re(o=>o.data.count.length))}getDefaultForServer(){return{}}getFormExtraFieldDefaultValues(){return{}}mapAll(){return re(e=>e.data[this.plural])}mapCreation(e){let n=this.createName??"create"+ba(this.name);return e.data[n]}mapUpdate(e){let n=this.updateName??"update"+ba(this.name);return e.data[n]}mapDelete(e){let n=this.deleteName??"delete"+ba(this.plural);return e.data[n]}getPartialVariablesForOne(){return U({})}getPartialVariablesForAll(){return U({})}getPartialVariablesForCreation(e){return{}}getPartialVariablesForUpdate(e){return{}}getPartialVariablesForDelete(e){return{}}throwIfObservable(e){if(e instanceof Ct)throw new Error("Cannot use Observable as variables. Instead you should use .subscribe() to call the method with a real value")}getVariablesForOne(e){return this.getPartialVariablesForOne().pipe(re(n=>Yr({},{id:e},n)))}throwIfNotQuery(e){if(!e)throw new Error("GraphQL query for this method was not configured in this service constructor")}};var XJ=Yc` + query EnumType($name: String!) { + __type(name: $name) { + __typename + enumValues { + name + description + } + } + } +`,Rl=class i{apollo=x(Kc);get(e){return this.apollo.query({query:XJ,variables:{name:e},fetchPolicy:"cache-first"}).pipe(re(n=>{let t=[];if(n.data.__type?.enumValues)for(let r of n.data.__type.enumValues)t.push({value:r.name,name:r.description||""});return t}))}getValueName(e,n){return this.get(n).pipe(re(t=>{for(let r of t)if(r.value===e)return r.name;return""}))}static \u0275fac=function(n){return new(n||i)};static \u0275prov=W({token:i,factory:i.\u0275fac,providedIn:"root"})};var JJ=Yc` + query Mutations { + __type(name: "Mutation") { + fields { + name + args { + name + type { + ofType { + name + } + } + } + } + } + } +`,fp=class i{apollo=x(Kc);allMutations;link(e,n,t=null,r={}){let o=ga(r);return this.getMutation("link",e,n,t,o).pipe(qe(a=>this.execute(a)))}linkMany(e,n,t=null,r={}){return Yi(n.map(o=>this.link(e,o,t,r)))}unlink(e,n,t=null){return this.getMutation("unlink",e,n,t).pipe(qe(r=>this.execute(r)))}getAllMutationNames(){if(this.allMutations)return U(this.allMutations);let e=n=>({name:n.name,type:n.type?.ofType?.name?.replace(/ID$/,"")||"should-never-happen"});return this.apollo.query({query:JJ,fetchPolicy:"cache-first"}).pipe(re(({data:n})=>(n.__type?.fields?this.allMutations=n.__type.fields.filter(t=>/^(link|unlink)/.exec(t.name)).map(t=>({name:t.name,arg1:e(t.args[0]),arg2:e(t.args[1])})):this.allMutations=[],this.allMutations)))}getMutation(e,n,t,r,o={}){r=r&&ba(r);let a=e+n.__typename+(r||t.__typename),s=e+t.__typename+(r||n.__typename);return this.getAllMutationNames().pipe(re(l=>{let c=l.find(d=>d.name===a)||l.find(d=>d.name===s);if(c)return this.buildTemplate(c,n,t,o);throw TypeError("API does not allow to "+e+" "+n.__typename+" and "+t.__typename)}))}execute(e){return this.apollo.mutate({mutation:Yc(e)}).pipe(re(n=>(this.apollo.client.reFetchObservableQueries(),n)))}buildTemplate(e,n,t,r={}){let o,a;n.__typename===e.arg1.type?(o=e.arg1.name,a=e.arg2.name):(o=e.arg2.name,a=e.arg1.name),r[o]=n.id,r[a]=t.id;let s="";for(let l of Object.keys(r))s+=l+": "+JSON.stringify(r[l])+" ";return`mutation linkAndUnlink { + ${e.name}(${s}) { + id + } + }`}static \u0275fac=function(n){return new(n||i)};static \u0275prov=W({token:i,factory:i.\u0275fac,providedIn:"root"})};var ZJ=[/^(?\d{1,2})\.(?\d{1,2})\.(?\d{4}|\d{2})$/,/^(?\d{1,2})-(?\d{1,2})-(?\d{4}|\d{2})$/,/^(?\d{1,2})\/(?\d{1,2})\/(?\d{4}|\d{2})$/,/^(?\d{1,2})\\(?\d{1,2})\\(?\d{4}|\d{2})$/,/^(?\d{4})-(?\d{2})-(?\d{2})$/],kv=class i extends GC{parse(e){if(typeof e=="number")return new Date(e);if(typeof e=="string"){let n=e.trim();for(let t of ZJ){let r=n.match(t);if(r?.groups){let o=+r.groups.year,a=+r.groups.month,s=+r.groups.day;return this.createDateIfValid(o,a,s)}}}return null}createDateIfValid(e,n,t){return e<100&&(e+=2e3),n=n-1,n>=0&&n<=11&&t>=1&&t<=31?this.createDate(e,n,t):null}getFirstDayOfWeek(){return 1}static \u0275fac=(()=>{let e;return function(t){return(e||(e=Te(i)))(t||i)}})();static \u0275prov=W({token:i,factory:i.\u0275fac,providedIn:"root"})};var eZ=["*"],Iv;function tZ(){if(Iv===void 0&&(Iv=null,typeof window<"u")){let i=window;i.trustedTypes!==void 0&&(Iv=i.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return Iv}function nf(i){return tZ()?.createHTML(i)||i}function iP(i){return Error(`Unable to find icon with the name "${i}"`)}function iZ(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function nP(i){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${i}".`)}function rP(i){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${i}".`)}var ss=class{constructor(e,n,t){this.url=e,this.svgText=n,this.options=t}},rf=(()=>{let e=class e{constructor(t,r,o,a){this._httpClient=t,this._sanitizer=r,this._errorHandler=a,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=o}addSvgIcon(t,r,o){return this.addSvgIconInNamespace("",t,r,o)}addSvgIconLiteral(t,r,o){return this.addSvgIconLiteralInNamespace("",t,r,o)}addSvgIconInNamespace(t,r,o,a){return this._addSvgIconConfig(t,r,new ss(o,null,a))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,r,o,a){let s=this._sanitizer.sanitize(zr.HTML,o);if(!s)throw rP(o);let l=nf(s);return this._addSvgIconConfig(t,r,new ss("",l,a))}addSvgIconSet(t,r){return this.addSvgIconSetInNamespace("",t,r)}addSvgIconSetLiteral(t,r){return this.addSvgIconSetLiteralInNamespace("",t,r)}addSvgIconSetInNamespace(t,r,o){return this._addSvgIconSetConfig(t,new ss(r,null,o))}addSvgIconSetLiteralInNamespace(t,r,o){let a=this._sanitizer.sanitize(zr.HTML,r);if(!a)throw rP(r);let s=nf(a);return this._addSvgIconSetConfig(t,new ss("",s,o))}registerFontClassAlias(t,r=t){return this._fontCssClassesByAlias.set(t,r),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(...t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){let r=this._sanitizer.sanitize(zr.RESOURCE_URL,t);if(!r)throw nP(t);let o=this._cachedIconsByUrl.get(r);return o?U(Mv(o)):this._loadSvgIconFromConfig(new ss(t,null)).pipe(lt(a=>this._cachedIconsByUrl.set(r,a)),re(a=>Mv(a)))}getNamedSvgIcon(t,r=""){let o=oP(r,t),a=this._svgIconConfigs.get(o);if(a)return this._getSvgFromConfig(a);if(a=this._getIconConfigFromResolvers(r,t),a)return this._svgIconConfigs.set(o,a),this._getSvgFromConfig(a);let s=this._iconSetConfigs.get(r);return s?this._getSvgFromIconSetConfigs(t,s):ic(iP(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?U(Mv(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(re(r=>Mv(r)))}_getSvgFromIconSetConfigs(t,r){let o=this._extractIconWithNameFromAnySet(t,r);if(o)return U(o);let a=r.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(Xn(l=>{let d=`Loading icon set URL: ${this._sanitizer.sanitize(zr.RESOURCE_URL,s.url)} failed: ${l.message}`;return this._errorHandler.handleError(new Error(d)),U(null)})));return Yi(a).pipe(re(()=>{let s=this._extractIconWithNameFromAnySet(t,r);if(!s)throw iP(t);return s}))}_extractIconWithNameFromAnySet(t,r){for(let o=r.length-1;o>=0;o--){let a=r[o];if(a.svgText&&a.svgText.toString().indexOf(t)>-1){let s=this._svgElementFromConfig(a),l=this._extractSvgIconFromSet(s,t,a.options);if(l)return l}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(lt(r=>t.svgText=r),re(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?U(null):this._fetchIcon(t).pipe(lt(r=>t.svgText=r))}_extractSvgIconFromSet(t,r,o){let a=t.querySelector(`[id="${r}"]`);if(!a)return null;let s=a.cloneNode(!0);if(s.removeAttribute("id"),s.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(s,o);if(s.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(s),o);let l=this._svgElementFromString(nf(""));return l.appendChild(s),this._setSvgAttributes(l,o)}_svgElementFromString(t){let r=this._document.createElement("DIV");r.innerHTML=t;let o=r.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(t){let r=this._svgElementFromString(nf("")),o=t.attributes;for(let a=0;anf(d)),Xi(()=>this._inProgressUrlFetches.delete(s)),qT());return this._inProgressUrlFetches.set(s,c),c}_addSvgIconConfig(t,r,o){return this._svgIconConfigs.set(oP(t,r),o),this}_addSvgIconSetConfig(t,r){let o=this._iconSetConfigs.get(t);return o?o.push(r):this._iconSetConfigs.set(t,[r]),this}_svgElementFromConfig(t){if(!t.svgElement){let r=this._svgElementFromString(t.svgText);this._setSvgAttributes(r,t.options),t.svgElement=r}return t.svgElement}_getIconConfigFromResolvers(t,r){for(let o=0;oe?e.pathname+e.search:""}}var aP=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],sZ=aP.map(i=>`[${i}]`).join(", "),lZ=/^url\(['"]?#(.*?)['"]?\)$/,wt=(()=>{let e=class e{get color(){return this._color||this._defaultColor}set color(t){this._color=t}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){let r=this._cleanupFontValue(t);r!==this._fontSet&&(this._fontSet=r,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){let r=this._cleanupFontValue(t);r!==this._fontIcon&&(this._fontIcon=r,this._updateFontIconClasses())}constructor(t,r,o,a,s,l){this._elementRef=t,this._iconRegistry=r,this._location=a,this._errorHandler=s,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=et.EMPTY,l&&(l.color&&(this.color=this._defaultColor=l.color),l.fontSet&&(this.fontSet=l.fontSet)),o||t.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(t){if(!t)return["",""];let r=t.split(":");switch(r.length){case 1:return["",r[0]];case 2:return r;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let t=this._elementsWithExternalReferences;if(t&&t.size){let r=this._location.getPathname();r!==this._previousPath&&(this._previousPath=r,this._prependPathToReferences(r))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();let r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(r),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){let t=this._elementRef.nativeElement,r=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();r--;){let o=t.childNodes[r];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let t=this._elementRef.nativeElement,r=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>t.classList.remove(o)),r.forEach(o=>t.classList.add(o)),this._previousFontSetClass=r,this.fontIcon!==this._previousFontIconClass&&!r.includes("mat-ligature-font")&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return typeof t=="string"?t.trim().split(" ")[0]:t}_prependPathToReferences(t){let r=this._elementsWithExternalReferences;r&&r.forEach((o,a)=>{o.forEach(s=>{a.setAttribute(s.name,`url('${t}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(t){let r=t.querySelectorAll(sZ),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let a=0;a{let l=r[a],c=l.getAttribute(s),d=c?c.match(lZ):null;if(d){let p=o.get(l);p||(p=[],o.set(l,p)),p.push({name:s,value:d[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){let[r,o]=this._splitIconName(t);r&&(this._svgNamespace=r),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,r).pipe(pt(1)).subscribe(a=>this._setSvgElement(a),a=>{let s=`Error retrieving icon ${r}:${o}! ${a.message}`;this._errorHandler.handleError(new Error(s))})}}};e.\u0275fac=function(r){return new(r||e)(b(J),b(rf),gi("aria-hidden"),b(oZ),b(Ro),b(rZ,8))},e.\u0275cmp=F({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(r,o){r&2&&(ne("data-mat-icon-type",o._usingFontIcon()?"font":"svg")("data-mat-icon-name",o._svgName||o.fontIcon)("data-mat-icon-namespace",o._svgNamespace||o.fontSet)("fontIcon",o._usingFontIcon()?o.fontIcon:null),Yt(o.color?"mat-"+o.color:""),se("mat-icon-inline",o.inline)("mat-icon-no-color",o.color!=="primary"&&o.color!=="accent"&&o.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",ee],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[xe,P],ngContentSelectors:eZ,decls:1,vars:0,template:function(r,o){r&1&&(Me(),ae(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});let i=e;return i})(),It=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({imports:[De,De]});let i=e;return i})();var SS=new H("Configuration for Natural Icons"),sP=Symbol("Natural icon registered"),Mt=class i{matIconRegistry=x(rf);domSanitizer=x(bc);config=x(SS,{optional:!0});matIconComponent=x(wt,{host:!0,self:!0});_size=void 0;classes="";constructor(){let e=this.config;this.registerIcons(e??{})}set naturalIcon(e){let n=N({name:e},this.config?.[e]??{font:e});n.class&&(this.classes=n.class),this.matIconComponent.fontIcon=void 0,this.matIconComponent.svgIcon=void 0,n.font?this.matIconComponent.fontIcon=n.font:n.svg&&(this.matIconComponent.svgIcon=n.name)}set size(e){this._size=e??void 0}registerIcons(e){let n=this.matIconRegistry;if(!n[sP]){n[sP]=!0;for(let t of Object.keys(e)){let r=e[t].svg;r&&this.matIconRegistry.addSvgIcon(t,this.domSanitizer.bypassSecurityTrustResourceUrl(r))}}}static \u0275fac=function(n){return new(n||i)};static \u0275dir=B({type:i,selectors:[["mat-icon","naturalIcon",""]],hostVars:8,hostBindings:function(n,t){n&2&&(Yt(t.classes),Gt("font-size",t._size,"px")("min-height",t._size,"px")("min-width",t._size,"px"))},inputs:{naturalIcon:"naturalIcon",size:"size"},standalone:!0})};var cZ=["mat-menu-item",""],dZ=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],uZ=["mat-icon, [matMenuItemIcon]","*"];function pZ(i,e){i&1&&(pi(),u(0,"svg",2),T(1,"polygon",3),m())}var mZ=["*"];function hZ(i,e){if(i&1){let n=z();u(0,"div",0),w("keydown",function(r){A(n);let o=C();return R(o._handleKeydown(r))})("click",function(){A(n);let r=C();return R(r.closed.emit("click"))})("@transformMenu.start",function(r){A(n);let o=C();return R(o._onAnimationStart(r))})("@transformMenu.done",function(r){A(n);let o=C();return R(o._onAnimationDone(r))}),u(1,"div",1),ae(2),m()()}if(i&2){let n=C();Yt(n._classList),v("id",n.panelId)("@transformMenu",n._panelAnimationState),ne("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby||null)("aria-describedby",n.ariaDescribedby||null)}}var ES=new H("MAT_MENU_PANEL"),ls=(()=>{let e=class e{constructor(t,r,o,a,s){this._elementRef=t,this._document=r,this._focusMonitor=o,this._parentMenu=a,this._changeDetectorRef=s,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new q,this._focused=new q,this._highlighted=!1,this._triggersSubmenu=!1,a?.addItem?.(this)}focus(t,r){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,r):this._getHostElement().focus(r),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(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let t=this._elementRef.nativeElement.cloneNode(!0),r=t.querySelectorAll("mat-icon, .material-icons");for(let o=0;o{let e=class e{constructor(t,r,o,a,s,l,c){this._template=t,this._componentFactoryResolver=r,this._appRef=o,this._injector=a,this._viewContainerRef=s,this._document=l,this._changeDetectorRef=c,this._attached=new q}attach(t={}){this._portal||(this._portal=new Vi(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new Gd(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));let r=this._template.elementRef.nativeElement;r.parentNode.insertBefore(this._outlet.outletElement,r),this._changeDetectorRef?.markForCheck(),this._portal.attach(this._outlet,t),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}};e.\u0275fac=function(r){return new(r||e)(b(ft),b(Ts),b(ks),b(ze),b(Ft),b(pe),b(Se))},e.\u0275dir=B({type:e,selectors:[["ng-template","matMenuContent",""]],standalone:!0,features:[me([{provide:cP,useExisting:e}])]});let i=e;return i})(),Ov={transformMenu:Vt("transformMenu",[dt("void",Ee({opacity:0,transform:"scale(0.8)"})),ot("void => enter",nt("120ms cubic-bezier(0, 0, 0.2, 1)",Ee({opacity:1,transform:"scale(1)"}))),ot("* => void",nt("100ms 25ms linear",Ee({opacity:0})))]),fadeInItems:Vt("fadeInItems",[dt("showing",Ee({opacity:1})),ot("void => *",[Ee({opacity:0}),nt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},HBe=Ov.fadeInItems,UBe=Ov.transformMenu,fZ=0,gZ=new H("mat-menu-default-options",{providedIn:"root",factory:_Z});function _Z(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}var Sa=(()=>{let e=class e{get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}set panelClass(t){let r=this._previousPanelClass,o=N({},this._classList);r&&r.length&&r.split(" ").forEach(a=>{o[a]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(a=>{o[a]=!0}),this._elementRef.nativeElement.className=""),this._classList=o}get classList(){return this.panelClass}set classList(t){this.panelClass=t}constructor(t,r,o,a){this._elementRef=t,this._changeDetectorRef=a,this._elevationPrefix="mat-elevation-z",this._baseElevation=null,this._directDescendantItems=new gr,this._classList={},this._panelAnimationState="void",this._animationDone=new q,this.closed=new $,this.close=this.closed,this.panelId=`mat-menu-panel-${fZ++}`,this._injector=x(ze),this.overlayPanelClass=o.overlayPanelClass||"",this._xPosition=o.xPosition,this._yPosition=o.yPosition,this.backdropClass=o.backdropClass,this.overlapTrigger=o.overlapTrigger,this.hasBackdrop=o.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new so(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Ye(this._directDescendantItems),qe(t=>Ge(...t.map(r=>r._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t)),this._directDescendantItems.changes.subscribe(t=>{let r=this._keyManager;if(this._panelAnimationState==="enter"&&r.activeItem?._hasFocus()){let o=t.toArray(),a=Math.max(0,Math.min(o.length-1,r.activeItemIndex||0));o[a]&&!o[a].disabled?r.setActiveItem(a):r.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy()}_hovered(){return this._directDescendantItems.changes.pipe(Ye(this._directDescendantItems),qe(r=>Ge(...r.map(o=>o._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){let r=t.keyCode,o=this._keyManager;switch(r){case 27:Dt(t)||(t.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:(r===38||r===40)&&o.setFocusOrigin("keyboard"),o.onKeydown(t);return}t.stopPropagation()}focusFirstItem(t="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=si(()=>{let r=null;if(this._directDescendantItems.length&&(r=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!r||!r.contains(document.activeElement)){let o=this._keyManager;o.setFocusOrigin(t).setFirstItemActive(),!o.activeItem&&r&&r.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){if(this._baseElevation===null){let l=(typeof getComputedStyle=="function"?getComputedStyle(this._elementRef.nativeElement):null)?.getPropertyValue("--mat-menu-base-elevation-level")||"8";this._baseElevation=parseInt(l)}let r=Math.min(this._baseElevation+t,24),o=`${this._elevationPrefix}${r}`,a=Object.keys(this._classList).find(s=>s.startsWith(this._elevationPrefix));if(!a||a===this._previousElevation){let s=N({},this._classList);this._previousElevation&&(s[this._previousElevation]=!1),s[o]=!0,this._previousElevation=o,this._classList=s}}setPositionClasses(t=this.xPosition,r=this.yPosition){this._classList=ce(N({},this._classList),{"mat-menu-before":t==="before","mat-menu-after":t==="after","mat-menu-above":r==="above","mat-menu-below":r==="below"}),this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,t.toState==="enter"&&this._keyManager.activeItemIndex===0&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Ye(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(r=>r._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}};e.\u0275fac=function(r){return new(r||e)(b(J),b(de),b(gZ),b(Se))},e.\u0275cmp=F({type:e,selectors:[["mat-menu"]],contentQueries:function(r,o,a){if(r&1&&(Ie(a,cP,5),Ie(a,ls,5),Ie(a,ls,4)),r&2){let s;K(s=Y())&&(o.lazyContent=s.first),K(s=Y())&&(o._allItems=s),K(s=Y())&&(o.items=s)}},viewQuery:function(r,o){if(r&1&&ve(ft,5),r&2){let a;K(a=Y())&&(o.templateRef=a.first)}},hostVars:3,hostBindings:function(r,o){r&2&&ne("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",ee],hasBackdrop:[2,"hasBackdrop","hasBackdrop",t=>t==null?null:ee(t)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],standalone:!0,features:[me([{provide:ES,useExisting:e}]),xe,P],ngContentSelectors:mZ,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(r,o){r&1&&(Me(),M(0,hZ,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:[Ov.transformMenu,Ov.fadeInItems]},changeDetection:0});let i=e;return i})(),uP=new H("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let i=x(yt);return()=>i.scrollStrategies.reposition()}});function bZ(i){return()=>i.scrollStrategies.reposition()}var vZ={provide:uP,deps:[yt],useFactory:bZ},lP=rn({passive:!0});var gp=(()=>{let e=class e{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._parentMaterialMenu,this._menuCloseSubscription=t.close.subscribe(r=>{this._destroyMenu(r),(r==="click"||r==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(r)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(t,r,o,a,s,l,c,d,p){this._overlay=t,this._element=r,this._viewContainerRef=o,this._menuItemInstance=l,this._dir=c,this._focusMonitor=d,this._ngZone=p,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=et.EMPTY,this._hoverSubscription=et.EMPTY,this._menuCloseSubscription=et.EMPTY,this._changeDetectorRef=x(Se),this._handleTouchStart=h=>{xm(h)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new $,this.onMenuOpen=this.menuOpened,this.menuClosed=new $,this.onMenuClose=this.menuClosed,this._scrollStrategy=a,this._parentMaterialMenu=s instanceof Sa?s:void 0,r.nativeElement.addEventListener("touchstart",this._handleTouchStart,lP)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,lP),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 t=this.menu;if(this._menuOpen||!t)return;let r=this._createOverlay(t),o=r.getConfig(),a=o.positionStrategy;this._setPosition(t,a),o.hasBackdrop=t.hasBackdrop==null?!this.triggersSubmenu():t.hasBackdrop,r.attach(this._getPortal(t)),t.lazyContent&&t.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(t),t instanceof Sa&&(t._startAnimation(),t._directDescendantItems.changes.pipe(ye(t.close)).subscribe(()=>{a.withLockedPosition(!1).reapplyLastPosition(),a.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(t,r){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,r):this._element.nativeElement.focus(r)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;let r=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&(t==="keydown"||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,r instanceof Sa?(r._resetAnimation(),r.lazyContent?r._animationDone.pipe(Re(o=>o.toState==="void"),pt(1),ye(r.lazyContent._attached)).subscribe({next:()=>r.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),r?.lazyContent?.detach())}_initMenu(t){t.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,t.direction=this.dir,this._setMenuElevation(t),t.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(t){if(t.setElevation){let r=0,o=t.parentMenu;for(;o;)r++,o=o.parentMenu;t.setElevation(r)}}_setIsMenuOpen(t){t!==this._menuOpen&&(this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(t),this._changeDetectorRef.markForCheck())}_createOverlay(t){if(!this._overlayRef){let r=this._getOverlayConfig(t);this._subscribeToPositions(t,r.positionStrategy),this._overlayRef=this._overlay.create(r),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(t){return new An({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:t.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:t.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t,r){t.setPositionClasses&&r.positionChanges.subscribe(o=>{let a=o.connectionPair.overlayX==="start"?"after":"before",s=o.connectionPair.overlayY==="top"?"below":"above";this._ngZone?this._ngZone.run(()=>t.setPositionClasses(a,s)):t.setPositionClasses(a,s)})}_setPosition(t,r){let[o,a]=t.xPosition==="before"?["end","start"]:["start","end"],[s,l]=t.yPosition==="above"?["bottom","top"]:["top","bottom"],[c,d]=[s,l],[p,h]=[o,a],g=0;if(this.triggersSubmenu()){if(h=o=t.xPosition==="before"?"start":"end",a=p=o==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let _=this._parentMaterialMenu.items.first;this._parentInnerPadding=_?_._getHostElement().offsetTop:0}g=s==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else t.overlapTrigger||(c=s==="top"?"bottom":"top",d=l==="top"?"bottom":"top");r.withPositions([{originX:o,originY:c,overlayX:p,overlayY:s,offsetY:g},{originX:a,originY:c,overlayX:h,overlayY:s,offsetY:g},{originX:o,originY:d,overlayX:p,overlayY:l,offsetY:-g},{originX:a,originY:d,overlayX:h,overlayY:l,offsetY:-g}])}_menuClosingActions(){let t=this._overlayRef.backdropClick(),r=this._overlayRef.detachments(),o=this._parentMaterialMenu?this._parentMaterialMenu.closed:U(),a=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Re(s=>s!==this._menuItemInstance),Re(()=>this._menuOpen)):U();return Ge(t,o,a,r)}_handleMousedown(t){Cm(t)||(this._openedBy=t.button===0?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){let r=t.keyCode;(r===13||r===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(r===39&&this.dir==="ltr"||r===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Re(t=>t===this._menuItemInstance&&!t.disabled),ai(0,eg)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Sa&&this.menu._isAnimating?this.menu._animationDone.pipe(pt(1),ai(0,eg),ye(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(t){return(!this._portal||this._portal.templateRef!==t.templateRef)&&(this._portal=new Vi(t.templateRef,this._viewContainerRef)),this._portal}};e.\u0275fac=function(r){return new(r||e)(b(yt),b(J),b(Ft),b(uP),b(ES,8),b(ls,10),b(vt,8),b(wi),b(de))},e.\u0275dir=B({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(r,o){r&1&&w("click",function(s){return o._handleClick(s)})("mousedown",function(s){return o._handleMousedown(s)})("keydown",function(s){return o._handleKeydown(s)}),r&2&&ne("aria-haspopup",o.menu?"menu":null)("aria-expanded",o.menuOpen)("aria-controls",o.menuOpen?o.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});let i=e;return i})(),_p=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({providers:[vZ],imports:[Pe,fn,De,Rn,er,De]});let i=e;return i})();function yZ(i,e){if(i&1&&T(0,"mat-checkbox",12),i&2){let n=C(2).$implicit;v("checked",n.checked)}}function CZ(i,e){if(i&1){let n=z();u(0,"a",11),w("click",function(r){A(n);let o=C().$implicit;return R(o.click==null?null:o.click(o,r))}),M(1,yZ,1,1,"mat-checkbox",12),y(2),m()}if(i&2){let n=C().$implicit,t=C(3);v("href",t.defaultTrue(n.show)&&n.href,ro)("disabled",n.disabled)("ngClass",t.needMargin(n)),f(),k(t.useCheckbox(n)?1:-1),f(),ue(" ",n.label," ")}}function xZ(i,e){if(i&1&&T(0,"mat-checkbox",12),i&2){let n=C(2).$implicit;v("checked",n.checked)}}function wZ(i,e){if(i&1){let n=z();u(0,"button",13),w("click",function(r){A(n);let o=C().$implicit;return R(o.click==null?null:o.click(o,r))}),M(1,xZ,1,1,"mat-checkbox",12),y(2),m()}if(i&2){let n=C().$implicit,t=C(3);v("disabled",n.disabled)("ngClass",t.needMargin(n)),f(),k(t.useCheckbox(n)?1:-1),f(),ue(" ",n.label," ")}}function SZ(i,e){if(i&1&&T(0,"mat-checkbox",12),i&2){let n=C(2).$implicit;v("checked",n.checked)}}function EZ(i,e){if(i&1){let n=z();u(0,"a",16),w("click",function(r){let o=A(n).$implicit;return R(o.click(o,r))}),y(1),m()}if(i&2){let n=e.$implicit;v("disabled",n.disabled),f(),ue(" ",n.label," ")}}function TZ(i,e){if(i&1&&He(0,EZ,2,2,"a",15,Tt),i&2){let n=C(2).$implicit;Ue(n.buttons)}}function DZ(i,e){if(i&1){let n=z();u(0,"button",14),w("click",function(r){A(n);let o=C().$implicit;return R(o.click==null?null:o.click(o,r))}),M(1,SZ,1,1,"mat-checkbox",12),y(2),m(),u(3,"mat-menu",null,2),M(5,TZ,2,0,"ng-template",5),m()}if(i&2){let n=Je(4),t=C().$implicit,r=C(3);v("matMenuTriggerFor",n)("ngClass",r.needMargin(t)),f(),k(r.useCheckbox(t)?1:-1),f(),ue(" ",t.label," ")}}function kZ(i,e){if(i&1&&M(0,CZ,3,5,"a",9)(1,wZ,3,4,"button",10)(2,DZ,6,4),i&2){let n=e.$implicit,t=C(3);k(n.href?0:-1),f(),k(t.defaultTrue(n.show)&&!n.href&&!n.buttons?1:-1),f(),k(t.defaultTrue(n.show)&&n.buttons?2:-1)}}function IZ(i,e){if(i&1&&(u(0,"button",8)(1,"span"),fe(2,4),m()()),i&2){let n=C(3),t=Je(5);v("matMenuTriggerFor",t)("ngClass",n.needMargin(null))}}function MZ(i,e){if(i&1&&(He(0,kZ,3,3,null,null,Tt),M(2,IZ,3,2,"button",8)),i&2){let n=C(2);Ue(n.buttons),f(2),k(n.displayedColumns.length?2:-1)}}function OZ(i,e){if(i&1&&(u(0,"button",6),T(1,"mat-icon",7),m(),u(2,"mat-menu",null,1),M(4,MZ,3,1,"ng-template",5),m()),i&2){let n=Je(3);v("matMenuTriggerFor",n)}}function AZ(i,e){if(i&1){let n=z();u(0,"a",20),w("click",function(r){A(n);let o=C().$implicit;return R(o.click==null?null:o.click(o,r))}),T(1,"mat-icon",21),m()}if(i&2){let n=C().$implicit,t=C(2);v("href",t.defaultTrue(n.show)&&n.href,ro)("disabled",n.disabled)("color",t.color(n))("matTooltip",n.label),f(),v("naturalIcon",n.icon)}}function RZ(i,e){if(i&1){let n=z();u(0,"button",22),w("click",function(r){A(n);let o=C().$implicit;return R(o.click==null?null:o.click(o,r))}),T(1,"mat-icon",21),m()}if(i&2){let n=C().$implicit,t=C(2);v("disabled",n.disabled)("color",t.color(n))("matTooltip",n.label),f(),v("naturalIcon",n.icon)}}function NZ(i,e){if(i&1){let n=z();u(0,"a",16),w("click",function(r){let o=A(n).$implicit;return R(o.click(o,r))}),y(1),m()}if(i&2){let n=e.$implicit;v("disabled",n.disabled),f(),ue(" ",n.label," ")}}function FZ(i,e){if(i&1&&He(0,NZ,2,2,"a",15,Tt),i&2){let n=C(2).$implicit;Ue(n.buttons)}}function PZ(i,e){if(i&1){let n=z();u(0,"button",23),w("click",function(r){A(n);let o=C().$implicit;return R(o.click==null?null:o.click(o,r))}),T(1,"mat-icon",21),m(),u(2,"mat-menu",null,3),M(4,FZ,2,0,"ng-template",5),m()}if(i&2){let n=Je(3),t=C().$implicit,r=C(2);v("matMenuTriggerFor",n)("disabled",t.disabled)("color",r.color(t))("matTooltip",t.label),f(),v("naturalIcon",t.icon)}}function LZ(i,e){if(i&1&&M(0,AZ,2,5,"a",18)(1,RZ,2,4,"button",19)(2,PZ,5,5),i&2){let n=e.$implicit,t=C(2);k(n.href?0:-1),f(),k(t.defaultTrue(n.show)&&!n.href&&!n.buttons?1:-1),f(),k(t.defaultTrue(n.show)&&n.buttons?2:-1)}}function VZ(i,e){if(i&1&&(u(0,"button",17),T(1,"mat-icon",24),m()),i&2){C(2);let n=Je(5);v("matMenuTriggerFor",n)}}function jZ(i,e){if(i&1&&(He(0,LZ,3,3,null,null,Tt),M(2,VZ,2,1,"button",17)),i&2){let n=C();Ue(n.buttons),f(2),k(n.displayedColumns.length?2:-1)}}function BZ(i,e){if(i&1){let n=z();u(0,"div",26),w("click",function(r){let o=A(n).$implicit,a=C(2);return r.stopPropagation(),o.checked=!o.checked,R(a.updateColumns())}),u(1,"mat-checkbox",27),w("click",function(r){return A(n),R(r.stopPropagation())})("change",function(){A(n);let r=C(2);return R(r.updateColumns())}),Ni("ngModelChange",function(r){let o=A(n).$implicit;return Ri(o.checked,r)||(o.checked=r),R(r)}),y(2),m()()}if(i&2){let n=e.$implicit;f(),Ai("ngModel",n.checked),f(),ge(n.label)}}function zZ(i,e){if(i&1&&He(0,BZ,3,2,"div",25,Tt),i&2){let n=C();Ue(n.displayedColumns)}}var bp=class i{destroyRef=x(_i);breakpointObserver=x(vr);_selections;_availableColumns=[];buttons=[];set availableColumns(e){this._availableColumns=e?.map(n=>N({checked:!0,hidden:!1},n))??[]}set selections(e){this._selections=e,!(!e||!this._availableColumns.length)&&this._availableColumns.forEach(n=>{n.checked=e.includes(n.id)})}selectionChange=new $;displayedColumns=[];isMobile=this.breakpointObserver.observe($r.XSmall).pipe(re(e=>e.matches));initColumns(){this._availableColumns?.forEach(e=>{e.checked=this._selections?.length?this._selections.includes(e.id):e.checked}),this.displayedColumns=this._availableColumns.filter(e=>!e.hidden)??[]}updateColumns(){let e=this._availableColumns.filter(n=>n.checked).map(n=>n.id);this.selectionChange.emit(e)}ngOnChanges(e){bS(this.destroyRef).subscribe(()=>{e.availableColumns?(this.initColumns(),this.updateColumns()):e.selections&&this.updateColumns()})}defaultTrue(e){return e??!0}color(e){return e.checked?"primary":null}useCheckbox(e){return"checked"in e}needMargin(e=null){return this.buttons?.some(this.useCheckbox)&&(!e||!this.useCheckbox(e))?"align-with-checkbox":""}someVisibleButtons(){return(this.buttons?.reduce((n,t)=>this.defaultTrue(t.show)?1:0,0)??0)>0}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["natural-columns-picker"]],inputs:{buttons:"buttons",availableColumns:"availableColumns",selections:"selections"},outputs:{selectionChange:"selectionChange"},standalone:!0,features:[Ne,P],decls:7,vars:3,consts:()=>{let e;e=$localize`:␟d9c43f4cfc3cde8d56a7c8461e33a23aea2dca69␟3298063886296349322:Colonnes`;let n;return n=$localize`:␟e8a4364be8b1df617e75d6d4d6510d8afa887ae0␟7906097430996361692:Sélectionner les colonnes`,[["columnMenu","matMenu"],["mobileMenu","matMenu"],["subMenu","matMenu"],["menu","matMenu"],e,["matMenuContent",""],["mat-icon-button","",3,"matMenuTriggerFor"],["naturalIcon","more_vert"],["mat-menu-item","",3,"matMenuTriggerFor","ngClass"],["mat-menu-item","",3,"href","disabled","ngClass"],["mat-menu-item","",3,"disabled","ngClass"],["mat-menu-item","",3,"click","href","disabled","ngClass"],[3,"checked"],["mat-menu-item","",3,"click","disabled","ngClass"],["mat-menu-item","",3,"click","matMenuTriggerFor","ngClass"],["mat-menu-item","",3,"disabled"],["mat-menu-item","",3,"click","disabled"],["mat-icon-button","","matTooltip",n,3,"matMenuTriggerFor"],["mat-icon-button","",3,"href","disabled","color","matTooltip"],["mat-icon-button","",3,"disabled","color","matTooltip"],["mat-icon-button","",3,"click","href","disabled","color","matTooltip"],[3,"naturalIcon"],["mat-icon-button","",3,"click","disabled","color","matTooltip"],["mat-icon-button","",3,"click","matMenuTriggerFor","disabled","color","matTooltip"],["naturalIcon","view_column"],["mat-menu-item",""],["mat-menu-item","",3,"click"],[3,"click","change","ngModelChange","ngModel"]]},template:function(n,t){n&1&&(u(0,"div"),M(1,OZ,5,1),te(2,"async"),M(3,jZ,3,1),m(),u(4,"mat-menu",null,0),M(6,zZ,2,0,"ng-template",5),m()),n&2&&(f(),k(ie(2,1,t.isMobile)&&t.someVisibleButtons()?1:3))},dependencies:[Pe,_r,Ms,we,zd,li,_p,Sa,ls,dP,gp,It,wt,Mt,Ar,Pn,ln,sn,$e,We,qr],styles:[".align-with-checkbox[_ngcontent-%COMP%]{padding-left:61px}"]})};function pP(i){return i.content?.viewContainerRef.element.nativeElement.id??""}var vp=class i{destroyRef=x(_i);component=x(tu);route=x(Si);router=x(Mi);naturalLinkableTab=!0;isLoadingRouteConfig=!1;constructor(){this.router.events.pipe(ht()).subscribe(e=>{e instanceof eh?this.isLoadingRouteConfig=!0:e instanceof th&&(this.isLoadingRouteConfig=!1)})}ngAfterViewInit(){this.naturalLinkableTab!==!1&&(this.route.fragment.pipe(ht(this.destroyRef)).subscribe(e=>{let n=this.getTabIndex(e);(n>=0||!e)&&(this.component.selectedIndex=n)}),this.component.selectedTabChange.pipe(ht(this.destroyRef)).subscribe(e=>{if(this.isLoadingRouteConfig)return;let n=pP(e.tab),t=this.route.snapshot.url;if(!t.length)throw new Error("Cannot update URL for tabs without any segments in URL");let r=ga(t[t.length-1].parameters);this.router.navigate([".",r],{relativeTo:this.route,queryParamsHandling:"preserve",fragment:n?.length?n:void 0})}))}getTabIndex(e){return this.component._tabs.toArray().findIndex(n=>e===pP(n))}static \u0275fac=function(n){return new(n||i)};static \u0275dir=B({type:i,selectors:[["mat-tab-group","naturalLinkableTab",""]],inputs:{naturalLinkableTab:"naturalLinkableTab"},standalone:!0})};var Av=class i{transform(e){return e&&ba(e)}static \u0275fac=function(n){return new(n||i)};static \u0275pipe=KT({name:"capitalize",type:i,pure:!0,standalone:!0})};function mP(i,e){let n=/^(.*\/)(\d+)$/.exec(i),t=n?.[1],r=+(n?.[2]??0);if(!t||!r)return"";let o=[1,1.5,2,3,4].map(a=>{let s=`${t}${Math.round(r*a)}`;return e&&(s=`url("${s}")`),`${s} ${a}x`}).join(", ");return e&&(o=`image-set(${o})`),o}var Rv=class i{elementRef=x(J);set naturalBackgroundDensity(e){if(e.startsWith("url(")){this.elementRef.nativeElement.style.backgroundImage=e;return}let n=e?`url(${e})`:"";this.elementRef.nativeElement.style.backgroundImage=n;let t=mP(e,!0);t&&(this.elementRef.nativeElement.style.backgroundImage=t)}static \u0275fac=function(n){return new(n||i)};static \u0275dir=B({type:i,selectors:[["","naturalBackgroundDensity",""]],inputs:{naturalBackgroundDensity:"naturalBackgroundDensity"},standalone:!0})};var yp=class i{dialog=x(Xr);route=x(Si);router=x(Mi);dialogRef;triggerConfig;constructor(){this.triggerConfig=this.route.snapshot.data.trigger;let r=this.triggerConfig.dialogConfig,{data:e}=r,n=sC(r,["data"]),t=ce(N({},n),{data:{data:e,activatedRoute:this.route}});this.dialogRef=this.dialog.open(this.triggerConfig.component,t),this.dialogRef.beforeClosed().subscribe(o=>this.redirect(o))}ngOnDestroy(){this.dialogRef&&this.dialogRef.close(-1)}redirect(e){let n=e==null||e==="";e!==-1&&(n?n&&this.triggerConfig.afterClosedRoute?this.router.navigate(this.triggerConfig.afterClosedRoute):n&&this.router.navigate(["."],{relativeTo:this.route.parent}):this.router.navigate(e))}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["ng-component"]],standalone:!0,features:[P],decls:0,vars:0,template:function(n,t){},encapsulation:2})};var DS=new H("Configuration for SEO service");function HZ(i){return i.replace(/<\/?[^>]*>/g,"")}var Nv=class i{router=x(Mi);titleService=x(s_);metaTagService=x(HI);document=x(pe);locale=x(dg);routeData;config={applicationName:""};constructor(){let e=x(DS);nn({config:e instanceof Ct?e.pipe(Ye(this.config)):U(e),navigationEnd:this.router.events.pipe(Re(n=>n instanceof Er))}).pipe(ht(),qe(({config:n})=>{this.config=n;let t=this.router.routerState.root.snapshot;this.routeData=this.getRouteData(t);let r=this.routeData.seo??{title:""},o=this.getDialogRouteData(t),a=o?.seo,s=this.toBasic(r,this.routeData),l=o&&a?this.toBasic(a,o):U(null);return nn({basic:s,dialogBasic:l})})).subscribe(({basic:n,dialogBasic:t})=>{t&&(n=ce(N({},t),{title:this.join([t.title,n.title])})),this.update(n)})}update(e){let n=[e.title,this.config.extraPart&&this.routeData?this.config.extraPart(this.routeData):"",this.config.applicationName],t=this.join(n);this.titleService.setTitle(t);let r=e?.description??this.config.defaultDescription;this.updateTag("description",r);let o=e?.robots??this.config.defaultRobots;this.updateTag("robots",o);let a=this.config.languages?.length&&this.locale?this.locale.split("-")[0]:"",s=this.getUrlParts(e.canonicalQueryParamsWhitelist??[]);this.updateLinkTag({rel:"canonical",href:this.getUrl(s,a)}),this.updateAlternates(s)}updateAlternates(e){this.config.languages?.forEach(n=>{this.updateLinkTag({rel:"alternate",href:this.getUrl(e,n),hreflang:n})})}getUrlParts(e){let n="https://"+this.document.defaultView?.window.location.hostname,t=this.router.parseUrl(this.router.url);if(t.root.hasChildren()){let o=t.root.children.primary?.segments;o&&o.length>0&&(n+="/"+o.map(a=>a.path).join("/"))}let r="";for(let o of e)if(o in t.queryParams){let a=encodeURIComponent(o),s=encodeURIComponent(t.queryParams[o]);r.length&&(r+="&"),r+=`${a}=${s}`}return r.length&&(r="?"+r),{url:n,params:r}}getUrl(e,n){let t=e.url;return n&&(t=this.addLanguageSegment(t,n)),e.params&&(t+=e.params),t}addLanguageSegment(e,n){let t=new URL(e),r=t.pathname==="/"?`/${n}`:`/${n}${t.pathname}`;return t.origin+r+t.search+t.hash}join(e){return e.filter(n=>!!n).join(" - ")}updateTag(e,n){n?this.metaTagService.updateTag({name:e,value:HZ(n)}):this.metaTagService.removeTag(`name="${e}"`)}updateLinkTag(e){let n=this.document.head.querySelector(this.parseSelector(e))??this.document.head.appendChild(this.document.createElement("link"));n&&Object.keys(e).forEach(t=>{n.setAttribute(t,e[t])})}parseSelector(e){let n="link";return Object.keys(e).forEach(t=>{t!=="href"&&(n+=`[${t}="${e[t]}"]`)}),n}getRouteData(e){return e.firstChild?this.getRouteData(e.firstChild):e.data}getDialogRouteData(e){if(e.component===yp&&e.outlet!==ut)return e.data;for(let n of e.children){let t=this.getDialogRouteData(n);if(t)return t}return null}toBasic(e,n){if(typeof e=="function"){let t=e(n);return t instanceof Ct?t:U(t)}else if("resolve"in e){if(!("model"in n))throw new Error("Could not find resolved data `model` for SEO service");let t=n.model;return(t instanceof Ct?t:U(t)).pipe(re(r=>({title:r?.fullName??r?.name??"",description:r?.description,robots:e.robots})))}return U(e)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=W({token:i,factory:i.\u0275fac,providedIn:"root"})};function kS(i){return[{provide:DS,useValue:i},{provide:dm,multi:!0,useFactory:()=>(x(Nv),()=>{})}]}var UZ=["*"],$Z=(i,e)=>e.id,hP=()=>[];function GZ(i,e){if(i&1&&(u(0,"a",1),y(1),m()),i&2){let n=C();v("routerLink",n.isPanel?Xt(3,hP):n.getRootLink())("fragment",n.listFragment),f(),ge(n.rootLabel||n.label)}}function qZ(i,e){if(i&1&&(y(0," / "),u(1,"a",2),y(2),m()),i&2){let n=e.$implicit,t=C();f(),v("routerLink",t.isPanel?Xt(2,hP):t.getLink(n.id)),f(),ue(" ",(n==null?null:n.fullName)||(n==null?null:n.name),"")}}function WZ(i,e){if(i&1&&(u(0,"div",4),T(1,"mat-icon",7),m()),i&2){let n=C();f(),v("naturalIcon",n.icon)}}function QZ(i,e){if(i&1&&(u(0,"div",5),y(1),m()),i&2){let n=C();f(),ge(n.newLabel)}}function KZ(i,e){if(i&1&&(u(0,"div",6),y(1),m()),i&2){let n=C();f(),ge(n.model.name||n.model.fullName||n.label)}}var Cp=class i{currentBaseUrl;isPanel=!1;icon="";label="";rootLabel="";newLabel="";model;breadcrumbs=[];listRoute=[];listFragment;link;getRootLink(){return[this.currentBaseUrl||"/"].concat(this.listRoute)}getLink(e){return this.link?this.getRootLink().concat(this.link(e)):this.getRootLink().concat([e])}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["natural-detail-header"]],inputs:{currentBaseUrl:"currentBaseUrl",isPanel:"isPanel",icon:"icon",label:"label",rootLabel:"rootLabel",newLabel:"newLabel",model:"model",breadcrumbs:"breadcrumbs",listRoute:"listRoute",listFragment:"listFragment",link:"link"},standalone:!0,features:[P],ngContentSelectors:UZ,decls:10,vars:4,consts:[[1,"breadcrumb"],["color","primary","mat-button","",3,"routerLink","fragment"],["color","primary","mat-button","",3,"routerLink"],[1,"body"],[2,"width","30px"],[1,"mat-headline-5","nat-no-margin","newLabel"],[1,"mat-headline-5","nat-no-margin","label"],[3,"naturalIcon"]],template:function(n,t){n&1&&(Me(),u(0,"div",0),M(1,GZ,2,4,"a",1),He(2,qZ,3,3,"a",2,$Z),m(),u(4,"div",3),M(5,WZ,2,1,"div",4)(6,QZ,2,1,"div",5)(7,KZ,2,1,"div",6),u(8,"div"),ae(9),m()()),n&2&&(f(),k(t.rootLabel||t.label?1:-1),f(),Ue(t.breadcrumbs),f(3),k(t.icon?5:-1),f(),k(t.model.id?-1:6),f(),k(t.model.id?7:-1))},dependencies:[we,Cr,Ei,It,wt,Mt],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] .breadcrumb[_ngcontent-%COMP%], [_nghost-%COMP%] .body[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}[_nghost-%COMP%] .breadcrumb[_ngcontent-%COMP%]{position:relative;top:5px}[_nghost-%COMP%] .body[_ngcontent-%COMP%]{min-height:40px}[_nghost-%COMP%] .body[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(:last-child){margin-right:5px}[_nghost-%COMP%] .body[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], [_nghost-%COMP%] .body[_ngcontent-%COMP%] .newLabel[_ngcontent-%COMP%]{flex:1}@media screen and (max-width: 600px){[_nghost-%COMP%] .body[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start}[_nghost-%COMP%] .body[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(:last-child){margin-bottom:10px!important}[_nghost-%COMP%] .body[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{display:none}}"]})};var Fv=(()=>{let e=class e{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(t){this._vertical=jt(t)}get inset(){return this._inset}set inset(t){this._inset=jt(t)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=F({type:e,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(r,o){r&2&&(ne("aria-orientation",o.vertical?"vertical":"horizontal"),se("mat-divider-vertical",o.vertical)("mat-divider-horizontal",!o.vertical)("mat-divider-inset",o.inset))},inputs:{vertical:"vertical",inset:"inset"},standalone:!0,features:[P],decls:0,vars:0,template:function(r,o){},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});let i=e;return i})(),xp=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({imports:[De,De]});let i=e;return i})();var gP=["*"],_P='.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))}',bP=["unscopedContent"],YZ=["text"],XZ=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],JZ=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"],ZZ=[[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["mat-divider"]],[["","matListItemAvatar",""],["","matListItemIcon",""]]],eee=["[matListItemTitle]","[matListItemLine]","*","mat-divider","[matListItemAvatar],[matListItemIcon]"];function tee(i,e){i&1&&ae(0,4)}function iee(i,e){if(i&1&&(u(0,"div",11),T(1,"input",12),u(2,"div",13),pi(),u(3,"svg",14),T(4,"path",15),m(),oa(),T(5,"div",16),m()()),i&2){let n=C();se("mdc-checkbox--disabled",n.disabled),f(),v("checked",n.selected)("disabled",n.disabled)}}function nee(i,e){if(i&1&&(u(0,"div",17),T(1,"input",18),u(2,"div",19),T(3,"div",20)(4,"div",21),m()()),i&2){let n=C();se("mdc-radio--disabled",n.disabled),f(),v("checked",n.selected)("disabled",n.disabled)}}function ree(i,e){}function oee(i,e){if(i&1&&(u(0,"span",4),M(1,ree,0,0,"ng-template",6),m()),i&2){C();let n=Je(3);f(),v("ngTemplateOutlet",n)}}function aee(i,e){}function see(i,e){if(i&1&&(u(0,"span",5),M(1,aee,0,0,"ng-template",6),m()),i&2){C();let n=Je(5);f(),v("ngTemplateOutlet",n)}}function lee(i,e){}function cee(i,e){if(i&1&&M(0,lee,0,0,"ng-template",6),i&2){C();let n=Je(1);v("ngTemplateOutlet",n)}}function dee(i,e){}function uee(i,e){if(i&1&&(u(0,"span",9),M(1,dee,0,0,"ng-template",6),m()),i&2){C();let n=Je(3);f(),v("ngTemplateOutlet",n)}}function pee(i,e){}function mee(i,e){if(i&1&&(u(0,"span",9),M(1,pee,0,0,"ng-template",6),m()),i&2){C();let n=Je(5);f(),v("ngTemplateOutlet",n)}}function hee(i,e){}function fee(i,e){if(i&1&&M(0,hee,0,0,"ng-template",6),i&2){C();let n=Je(1);v("ngTemplateOutlet",n)}}var vP=new H("ListOption"),yP=(()=>{let e=class e{constructor(t){this._elementRef=t}};e.\u0275fac=function(r){return new(r||e)(b(J))},e.\u0275dir=B({type:e,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"],standalone:!0});let i=e;return i})(),CP=(()=>{let e=class e{constructor(t){this._elementRef=t}};e.\u0275fac=function(r){return new(r||e)(b(J))},e.\u0275dir=B({type:e,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"],standalone:!0});let i=e;return i})(),gee=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=B({type:e,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"],standalone:!0});let i=e;return i})(),xP=(()=>{let e=class e{constructor(t){this._listOption=t}_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after"}};e.\u0275fac=function(r){return new(r||e)(b(vP,8))},e.\u0275dir=B({type:e,hostVars:4,hostBindings:function(r,o){r&2&&se("mdc-list-item__start",o._isAlignedAtStart())("mdc-list-item__end",!o._isAlignedAtStart())},standalone:!0});let i=e;return i})(),_ee=(()=>{let e=class e extends xP{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275dir=B({type:e,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],standalone:!0,features:[X]});let i=e;return i})(),OS=(()=>{let e=class e extends xP{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275dir=B({type:e,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],standalone:!0,features:[X]});let i=e;return i})(),bee=new H("MAT_LIST_CONFIG"),wp=(()=>{let e=class e{constructor(){this._isNonInteractive=!0,this._disableRipple=!1,this._disabled=!1,this._defaultOptions=x(bee,{optional:!0})}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=jt(t)}get disabled(){return this._disabled}set disabled(t){this._disabled=jt(t)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=B({type:e,hostVars:1,hostBindings:function(r,o){r&2&&ne("aria-disabled",o.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},standalone:!0});let i=e;return i})(),IS=(()=>{let e=class e{set lines(t){this._explicitLines=In(t,null),this._updateItemLines(!1)}get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(t){this._disableRipple=jt(t)}get disabled(){return this._disabled||!!this._listBase?.disabled}set disabled(t){this._disabled=jt(t)}get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(t,r,o,a,s,l){this._elementRef=t,this._ngZone=r,this._listBase=o,this._platform=a,this._explicitLines=null,this._disableRipple=!1,this._disabled=!1,this._subscriptions=new et,this._rippleRenderer=null,this._hasUnscopedTextContent=!1,this.rippleConfig=s||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement=this._hostElement.nodeName.toLowerCase()==="button",this._noopAnimations=l==="NoopAnimations",o&&!o._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),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 Sm(this,this._ngZone,this._hostElement,this._platform),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(Ge(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(t){if(!this._lines||!this._titles||!this._unscopedContent)return;t&&this._checkDomForUnscopedTextContent();let r=this._explicitLines??this._inferLinesFromContent(),o=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",r<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",r<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",r===2),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",r===3),this._hasUnscopedTextContent){let a=this._titles.length===0&&r===1;o.classList.toggle("mdc-list-item__primary-text",a),o.classList.toggle("mdc-list-item__secondary-text",!a)}else o.classList.remove("mdc-list-item__primary-text"),o.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let t=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(t+=1),t}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(t=>t.nodeType!==t.COMMENT_NODE).some(t=>!!(t.textContent&&t.textContent.trim()))}};e.\u0275fac=function(r){return new(r||e)(b(J),b(de),b(wp,8),b(Le),b(Ua,8),b(gt,8))},e.\u0275dir=B({type:e,contentQueries:function(r,o,a){if(r&1&&(Ie(a,_ee,4),Ie(a,OS,4)),r&2){let s;K(s=Y())&&(o._avatars=s),K(s=Y())&&(o._icons=s)}},hostVars:4,hostBindings:function(r,o){r&2&&(ne("aria-disabled",o.disabled)("disabled",o._isButtonElement&&o.disabled||null),se("mdc-list-item--disabled",o.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"},standalone:!0});let i=e;return i})();var Pv=(()=>{let e=class e extends IS{get activated(){return this._activated}set activated(t){this._activated=jt(t)}constructor(t,r,o,a,s,l){super(t,r,o,a,s,l),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)}};e.\u0275fac=function(r){return new(r||e)(b(J),b(de),b(wp,8),b(Le),b(Ua,8),b(gt,8))},e.\u0275cmp=F({type:e,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(r,o,a){if(r&1&&(Ie(a,CP,5),Ie(a,yP,5),Ie(a,gee,5)),r&2){let s;K(s=Y())&&(o._lines=s),K(s=Y())&&(o._titles=s),K(s=Y())&&(o._meta=s)}},viewQuery:function(r,o){if(r&1&&(ve(bP,5),ve(YZ,5)),r&2){let a;K(a=Y())&&(o._unscopedContent=a.first),K(a=Y())&&(o._itemText=a.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(r,o){r&2&&(ne("aria-current",o._getAriaCurrent()),se("mdc-list-item--activated",o.activated)("mdc-list-item--with-leading-avatar",o._avatars.length!==0)("mdc-list-item--with-leading-icon",o._icons.length!==0)("mdc-list-item--with-trailing-meta",o._meta.length!==0)("mat-mdc-list-item-both-leading-and-trailing",o._hasBothLeadingAndTrailing())("_mat-animation-noopable",o._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],standalone:!0,features:[X,P],ngContentSelectors:JZ,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(r,o){if(r&1){let a=z();Me(XZ),ae(0),u(1,"span",1),ae(2,1),ae(3,2),u(4,"span",2,0),w("cdkObserveContent",function(){return A(a),R(o._updateItemLines(!0))}),ae(6,3),m()(),ae(7,4),ae(8,5),T(9,"div",3)}},dependencies:[_m],encapsulation:2,changeDetection:0});let i=e;return i})(),wP=new H("SelectionList"),AS=(()=>{let e=class e extends IS{get checkboxPosition(){return this.togglePosition}set checkboxPosition(t){this.togglePosition=t}get color(){return this._color||this._selectionList.color}set color(t){this._color=t}get value(){return this._value}set value(t){this.selected&&t!==this.value&&this._inputsInitialized&&(this.selected=!1),this._value=t}get selected(){return this._selectionList.selectedOptions.isSelected(this)}set selected(t){let r=jt(t);r!==this._selected&&(this._setSelected(r),(r||this._selectionList.multiple)&&this._selectionList._reportValueChange())}constructor(t,r,o,a,s,l,c){super(t,r,o,a,l,c),this._selectionList=o,this._changeDetectorRef=s,this.selectedChange=new $,this.togglePosition="after",this._selected=!1,this._inputsInitialized=!1}ngOnInit(){let t=this._selectionList;t._value&&t._value.some(o=>t.compareWith(this._value,o))&&this._setSelected(!0);let r=this._selected;Promise.resolve().then(()=>{(this._selected||r)&&(this.selected=!0,this._changeDetectorRef.markForCheck())}),this._inputsInitialized=!0}ngOnDestroy(){super.ngOnDestroy(),this.selected&&Promise.resolve().then(()=>{this.selected=!1})}toggle(){this.selected=!this.selected}focus(){this._hostElement.focus()}getLabel(){return(this._titles?.get(0)?._elementRef.nativeElement||this._unscopedContent?.nativeElement)?.textContent||""}_hasCheckboxAt(t){return this._selectionList.multiple&&this._getTogglePosition()===t}_hasRadioAt(t){return!this._selectionList.multiple&&this._getTogglePosition()===t&&!this._selectionList.hideSingleSelectionIndicator}_hasIconsOrAvatarsAt(t){return this._hasProjected("icons",t)||this._hasProjected("avatars",t)}_hasProjected(t,r){return this._getTogglePosition()!==r&&(t==="avatars"?this._avatars.length!==0:this._icons.length!==0)}_handleBlur(){this._selectionList._onTouched()}_getTogglePosition(){return this.togglePosition||"after"}_setSelected(t){return t===this._selected?!1:(this._selected=t,t?this._selectionList.selectedOptions.select(this):this._selectionList.selectedOptions.deselect(this),this.selectedChange.emit(t),this._changeDetectorRef.markForCheck(),!0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_toggleOnInteraction(){this.disabled||(this._selectionList.multiple?(this.selected=!this.selected,this._selectionList._emitChangeEvent([this])):this.selected||(this.selected=!0,this._selectionList._emitChangeEvent([this])))}_setTabindex(t){this._hostElement.setAttribute("tabindex",t+"")}_hasBothLeadingAndTrailing(){let t=this._hasProjected("avatars","before")||this._hasProjected("icons","before")||this._hasCheckboxAt("before")||this._hasRadioAt("before"),r=this._hasProjected("icons","after")||this._hasProjected("avatars","after")||this._hasCheckboxAt("after")||this._hasRadioAt("after");return t&&r}};e.\u0275fac=function(r){return new(r||e)(b(J),b(de),b(wP),b(Le),b(Se),b(Ua,8),b(gt,8))},e.\u0275cmp=F({type:e,selectors:[["mat-list-option"]],contentQueries:function(r,o,a){if(r&1&&(Ie(a,CP,5),Ie(a,yP,5)),r&2){let s;K(s=Y())&&(o._lines=s),K(s=Y())&&(o._titles=s)}},viewQuery:function(r,o){if(r&1&&ve(bP,5),r&2){let a;K(a=Y())&&(o._unscopedContent=a.first)}},hostAttrs:["role","option",1,"mat-mdc-list-item","mat-mdc-list-option","mdc-list-item"],hostVars:27,hostBindings:function(r,o){r&1&&w("blur",function(){return o._handleBlur()})("click",function(){return o._toggleOnInteraction()}),r&2&&(ne("aria-selected",o.selected),se("mdc-list-item--selected",o.selected&&!o._selectionList.multiple&&o._selectionList.hideSingleSelectionIndicator)("mdc-list-item--with-leading-avatar",o._hasProjected("avatars","before"))("mdc-list-item--with-leading-icon",o._hasProjected("icons","before"))("mdc-list-item--with-trailing-icon",o._hasProjected("icons","after"))("mat-mdc-list-option-with-trailing-avatar",o._hasProjected("avatars","after"))("mdc-list-item--with-leading-checkbox",o._hasCheckboxAt("before"))("mdc-list-item--with-trailing-checkbox",o._hasCheckboxAt("after"))("mdc-list-item--with-leading-radio",o._hasRadioAt("before"))("mdc-list-item--with-trailing-radio",o._hasRadioAt("after"))("mat-mdc-list-item-both-leading-and-trailing",o._hasBothLeadingAndTrailing())("mat-accent",o.color!=="primary"&&o.color!=="warn")("mat-warn",o.color==="warn")("_mat-animation-noopable",o._noopAnimations))},inputs:{togglePosition:"togglePosition",checkboxPosition:"checkboxPosition",color:"color",value:"value",selected:"selected"},outputs:{selectedChange:"selectedChange"},exportAs:["matListOption"],standalone:!0,features:[me([{provide:IS,useExisting:e},{provide:vP,useExisting:e}]),X,P],ngContentSelectors:eee,decls:20,vars:4,consts:[["icons",""],["checkbox",""],["radio",""],["unscopedContent",""],[1,"mdc-list-item__start","mat-mdc-list-option-checkbox-before"],[1,"mdc-list-item__start","mat-mdc-list-option-radio-before"],[3,"ngTemplateOutlet"],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mdc-list-item__end"],[1,"mat-mdc-focus-indicator"],[1,"mdc-checkbox"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","disabled"],[1,"mdc-checkbox__background"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],[1,"mdc-radio"],["type","radio",1,"mdc-radio__native-control",3,"checked","disabled"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"]],template:function(r,o){if(r&1){let a=z();Me(ZZ),M(0,tee,1,0,"ng-template",null,0,oo)(2,iee,6,4,"ng-template",null,1,oo)(4,nee,5,4,"ng-template",null,2,oo)(6,oee,2,1,"span",4)(7,see,2,1,"span",5)(8,cee,1,1,null,6),u(9,"span",7),ae(10),ae(11,1),u(12,"span",8,3),w("cdkObserveContent",function(){return A(a),R(o._updateItemLines(!0))}),ae(14,2),m()(),M(15,uee,2,1,"span",9)(16,mee,2,1,"span",9)(17,fee,1,1,null,6),ae(18,3),T(19,"div",10)}r&2&&(f(6),k(o._hasCheckboxAt("before")?6:o._hasRadioAt("before")?7:-1),f(2),k(o._hasIconsOrAvatarsAt("before")?8:-1),f(7),k(o._hasCheckboxAt("after")?15:o._hasRadioAt("after")?16:-1),f(2),k(o._hasIconsOrAvatarsAt("after")?17:-1))},dependencies:[la,_m],styles:['.mat-mdc-list-option-with-trailing-avatar.mdc-list-item,[dir=rtl] .mat-mdc-list-option-with-trailing-avatar.mdc-list-item{padding-left:0;padding-right:0}.mat-mdc-list-option-with-trailing-avatar .mdc-list-item__end{margin-left:16px;margin-right:16px;width:40px;height:40px}.mat-mdc-list-option-with-trailing-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mat-mdc-list-option-with-trailing-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mat-mdc-list-option-with-trailing-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mat-mdc-list-option-with-trailing-avatar .mdc-list-item__end{border-radius:50%}.mat-mdc-list-option .mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mat-mdc-list-option .mdc-checkbox--disabled{cursor:default;pointer-events:none}.cdk-high-contrast-active .mat-mdc-list-option .mdc-checkbox--disabled{opacity:.5}.mat-mdc-list-option .mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mdc-checkbox-unselected-icon-color, var(--mat-app-on-surface-variant));top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2)}.mat-mdc-list-option .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mat-app-primary));background-color:var(--mdc-checkbox-selected-icon-color, var(--mat-app-primary))}.mat-mdc-list-option .mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color)}.mat-mdc-list-option .mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-mdc-list-option .mdc-checkbox:hover .mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:hover .mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mat-app-on-surface));background-color:rgba(0,0,0,0)}.mat-mdc-list-option .mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:hover .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-app-primary));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-app-primary))}.mat-mdc-list-option .mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mat-app-on-surface))}.mat-mdc-list-option .mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-app-primary));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-app-primary))}.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover .mdc-checkbox__native-control~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color)}.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-mdc-list-option .mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-app-on-primary))}.cdk-high-contrast-active .mat-mdc-list-option .mdc-checkbox__checkmark{color:CanvasText}.mat-mdc-list-option .mdc-checkbox--disabled .mdc-checkbox__checkmark,.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-app-surface))}.cdk-high-contrast-active .mat-mdc-list-option .mdc-checkbox--disabled .mdc-checkbox__checkmark,.cdk-high-contrast-active .mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:CanvasText}.mat-mdc-list-option .mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mat-mdc-list-option .mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-app-on-primary))}.cdk-high-contrast-active .mat-mdc-list-option .mdc-checkbox__mixedmark{margin:0 1px}.mat-mdc-list-option .mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-app-surface))}.mat-mdc-list-option .mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mat-mdc-list-option .mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option .mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mat-mdc-list-option .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mat-mdc-list-option .mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mat-mdc-list-option .mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-mdc-list-option .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-list-option .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-list-option._mat-animation-noopable .mdc-checkbox *,.mat-mdc-list-option._mat-animation-noopable .mdc-checkbox *::before{transition:none !important;animation:none !important}.mat-mdc-list-option .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color;padding:calc((var(--mdc-radio-state-layer-size) - 20px)/2)}.mat-mdc-list-option .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-list-option .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size);top:calc(-1*(var(--mdc-radio-state-layer-size) - 20px)/2);left:calc(-1*(var(--mdc-radio-state-layer-size) - 20px)/2)}.mat-mdc-list-option .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-list-option .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-list-option .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;top:0;right:0;left:0;cursor:inherit;z-index:1;width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-list-option .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-list-option .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-list-option .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-list-option .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color, var(--mat-app-on-surface));opacity:var(--mdc-radio-disabled-unselected-icon-opacity)}.mat-mdc-list-option .mdc-radio__native-control:disabled+.mdc-radio__background{cursor:default}.mat-mdc-list-option .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-list-option .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color, var(--mat-app-on-surface));opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-list-option .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color, var(--mat-app-on-surface-variant))}.mat-mdc-list-option .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-list-option .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color, var(--mat-app-primary))}.mat-mdc-list-option .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-list-option._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-list-option._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-list-option .mdc-checkbox__native-control,.mat-mdc-list-option .mdc-radio__native-control{display:none}.cdk-high-contrast-active .mat-mdc-list-option.mdc-list-item--selected::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active .mat-mdc-list-option.mdc-list-item--selected [dir=rtl]::after{right:auto;left:16px}'],encapsulation:2,changeDetection:0});let i=e;return i})();var Lv=(()=>{let e=class e extends wp{constructor(){super(...arguments),this._isNonInteractive=!1}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275cmp=F({type:e,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-mdc-nav-list","mat-mdc-list-base","mdc-list"],exportAs:["matNavList"],standalone:!0,features:[me([{provide:wp,useExisting:e}]),X,P],ngContentSelectors:gP,decls:1,vars:0,template:function(r,o){r&1&&(Me(),ae(0))},styles:[_P],encapsulation:2,changeDetection:0});let i=e;return i})(),vee={provide:_n,useExisting:$t(()=>of),multi:!0},MS=class{constructor(e,n){this.source=e,this.options=n}},of=(()=>{let e=class e extends wp{get multiple(){return this._multiple}set multiple(t){let r=jt(t);r!==this._multiple&&(this._multiple=r,this.selectedOptions=new On(this._multiple,this.selectedOptions.selected))}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(t){this._hideSingleSelectionIndicator=jt(t)}constructor(t,r){super(),this._element=t,this._ngZone=r,this._initialized=!1,this._destroyed=new q,this._onChange=o=>{},this.selectionChange=new $,this.color="accent",this.compareWith=(o,a)=>o===a,this._multiple=!0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this.selectedOptions=new On(this._multiple),this._onTouched=()=>{},this._changeDetectorRef=x(Se),this._selectionListDisabled=!1,this._handleFocusout=()=>{setTimeout(()=>{this._containsFocus()||this._resetActiveOption()})},this._handleFocusin=o=>{if(this.disabled)return;let a=this._items.toArray().findIndex(s=>s._elementRef.nativeElement.contains(o.target));a>-1?this._setActiveOption(a):this._resetActiveOption()},this._isNonInteractive=!1}ngAfterViewInit(){this._initialized=!0,this._setupRovingTabindex(),this._ngZone.runOutsideAngular(()=>{this._element.nativeElement.addEventListener("focusin",this._handleFocusin),this._element.nativeElement.addEventListener("focusout",this._handleFocusout)}),this._value&&this._setOptionsFromValues(this._value),this._watchForSelectionChange()}ngOnChanges(t){let r=t.disabled,o=t.disableRipple,a=t.hideSingleSelectionIndicator;(o&&!o.firstChange||r&&!r.firstChange||a&&!a.firstChange)&&this._markOptionsForCheck()}ngOnDestroy(){this._keyManager?.destroy(),this._element.nativeElement.removeEventListener("focusin",this._handleFocusin),this._element.nativeElement.removeEventListener("focusout",this._handleFocusout),this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}focus(t){this._element.nativeElement.focus(t)}selectAll(){return this._setAllOptionsSelected(!0)}deselectAll(){return this._setAllOptionsSelected(!1)}_reportValueChange(){if(this.options&&!this._isDestroyed){let t=this._getSelectedOptionValues();this._onChange(t),this._value=t}}_emitChangeEvent(t){this.selectionChange.emit(new MS(this,t))}writeValue(t){this._value=t,this.options&&this._setOptionsFromValues(t||[])}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck()}get disabled(){return this._selectionListDisabled}set disabled(t){this._selectionListDisabled=jt(t),this._selectionListDisabled&&this._keyManager?.setActiveItem(-1)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}_watchForSelectionChange(){this.selectedOptions.changed.pipe(ye(this._destroyed)).subscribe(t=>{for(let r of t.added)r.selected=!0;for(let r of t.removed)r.selected=!1;this._containsFocus()||this._resetActiveOption()})}_setOptionsFromValues(t){this.options.forEach(r=>r._setSelected(!1)),t.forEach(r=>{let o=this.options.find(a=>a.selected?!1:this.compareWith(a.value,r));o&&o._setSelected(!0)})}_getSelectedOptionValues(){return this.options.filter(t=>t.selected).map(t=>t.value)}_markOptionsForCheck(){this.options&&this.options.forEach(t=>t._markForCheck())}_setAllOptionsSelected(t,r){let o=[];return this.options.forEach(a=>{(!r||!a.disabled)&&a._setSelected(t)&&o.push(a)}),o.length&&this._reportValueChange(),o}get options(){return this._items}_handleKeydown(t){let r=this._keyManager.activeItem;if((t.keyCode===13||t.keyCode===32)&&!this._keyManager.isTyping()&&r&&!r.disabled)t.preventDefault(),r._toggleOnInteraction();else if(t.keyCode===65&&this.multiple&&!this._keyManager.isTyping()&&Dt(t,"ctrlKey")){let o=this.options.some(a=>!a.disabled&&!a.selected);t.preventDefault(),this._emitChangeEvent(this._setAllOptionsSelected(o,!0))}else this._keyManager.onKeydown(t)}_setupRovingTabindex(){this._keyManager=new so(this._items).withHomeAndEnd().withTypeAhead().withWrap().skipPredicate(()=>this.disabled),this._resetActiveOption(),this._keyManager.change.subscribe(t=>this._setActiveOption(t)),this._items.changes.pipe(ye(this._destroyed)).subscribe(()=>{let t=this._keyManager.activeItem;(!t||this._items.toArray().indexOf(t)===-1)&&this._resetActiveOption()})}_setActiveOption(t){this._items.forEach((r,o)=>r._setTabindex(o===t?0:-1)),this._keyManager.updateActiveItem(t)}_resetActiveOption(){if(this.disabled){this._setActiveOption(-1);return}let t=this._items.find(r=>r.selected&&!r.disabled)||this._items.first;this._setActiveOption(t?this._items.toArray().indexOf(t):-1)}_containsFocus(){let t=ca();return t&&this._element.nativeElement.contains(t)}};e.\u0275fac=function(r){return new(r||e)(b(J),b(de))},e.\u0275cmp=F({type:e,selectors:[["mat-selection-list"]],contentQueries:function(r,o,a){if(r&1&&Ie(a,AS,5),r&2){let s;K(s=Y())&&(o._items=s)}},hostAttrs:["role","listbox",1,"mat-mdc-selection-list","mat-mdc-list-base","mdc-list"],hostVars:1,hostBindings:function(r,o){r&1&&w("keydown",function(s){return o._handleKeydown(s)}),r&2&&ne("aria-multiselectable",o.multiple)},inputs:{color:"color",compareWith:"compareWith",multiple:"multiple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator",disabled:"disabled"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],standalone:!0,features:[me([vee,{provide:wp,useExisting:e},{provide:wP,useExisting:e}]),X,Ne,P],ngContentSelectors:gP,decls:1,vars:0,template:function(r,o){r&1&&(Me(),ae(0))},styles:[_P],encapsulation:2,changeDetection:0});let i=e;return i})(),Sp=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({imports:[Nd,Pe,De,fn,WC,xp]});let i=e;return i})();function yee(i,e){if(i&1&&(u(0,"mat-option",5),y(1),m()),i&2){let n=e.$implicit;v("value",n.key),f(),ue(" ",n.label," ")}}function Cee(i,e){if(i&1&&(u(0,"mat-form-field",2)(1,"mat-label"),fe(2,0),m(),u(3,"mat-select",4),He(4,yee,2,2,"mat-option",5,Tt),m()()),i&2){let n=C();f(3),v("formControl",n.operatorCtrl)("required",!0),f(),Ue(n.operators)}}function xee(i,e){if(i&1&&(u(0,"mat-list-option",6),y(1),m()),i&2){let n=e.$implicit,t=C(2);v("value",t.getId(n)),f(),ue(" ",t.getDisplay(n)," ")}}function wee(i,e){if(i&1&&(u(0,"mat-selection-list",3),He(1,xee,2,2,"mat-list-option",6,Tt),m()),i&2){let n=C();v("formControl",n.valueCtrl),f(),Ue(n.items)}}var cs=class i{destroyRef=x(_i);renderedValue=new Be("");list;requireValueCtrl=!1;operators=Sb;operatorCtrl=new Xe("is",{nonNullable:!0});valueCtrl=new Xe;form=new Pt({operator:this.operatorCtrl,value:this.valueCtrl});items=[];configuration;defaults={items:[],multiple:!0,operators:!0};constructor(){let e=x(Hi);this.configuration=N(N({},this.defaults),e.configuration),this.operatorCtrl.valueChanges.pipe(Ye(null)).subscribe(()=>this.initValidators()),Ge(this.operatorCtrl.valueChanges,this.valueCtrl.valueChanges).subscribe(()=>{let n=this.getRenderedValue();this.renderedValue.next(n)}),this.reloadCondition(e.condition)}ngAfterViewInit(){!this.isMultiple()&&this.list&&(this.list.selectedOptions._multiple=!1)}getId(e){return typeof e=="object"&&e?e.id||e.value:e}getDisplay(e){return typeof e=="object"&&e?.name?e.name:e}getCondition(){if(!this.isValid())return{};let e=this.valueCtrl.value;return this.operatorKeyToCondition(this.operatorCtrl.value,e)}isValid(){return this.form.valid}isDirty(){return this.form.dirty}initValidators(){let e=["is","isnot"];this.requireValueCtrl=e.includes(this.operatorCtrl.value);let n=this.requireValueCtrl?[tt.required]:[];this.valueCtrl.setValidators(n),this.valueCtrl.updateValueAndValidity()}isMultiple(){return this.configuration.multiple}getItemById(e){return this.items.find(n=>this.getId(n)===e)}reloadCondition(e){if(e){let n=this.conditionToOperatorKey(e);this.operatorCtrl.setValue(n)}this.reloadValue(e).subscribe(n=>{this.valueCtrl.setValue(n),this.renderedValue.next(this.getRenderedValue())})}reloadValue(e){let n=e?.in?.values??[];return(Array.isArray(this.configuration.items)?U(this.configuration.items):this.configuration.items).pipe(ht(this.destroyRef),re(r=>{this.items=r;let o=this.items.map(s=>this.getId(s));return n.filter(s=>o.some(l=>l===s))}))}getRenderedValue(){let e=this.operators.find(t=>t.key===this.operatorCtrl.value);if(!e||!this.isValid())return"";let n=this.valueCtrl.value?.map(t=>{let r=this.getItemById(t);if(r)return this.getDisplay(r)}).join(", ")??null;return[e.label,n].filter(t=>t).join(" ")}conditionToOperatorKey(e){return!this.configuration.operators||e.in&&!e.in.not?"is":e.in?.not?"isnot":e.null?.not?"any":e.null&&!e.null.not?"none":"is"}operatorKeyToCondition(e,n){switch(e){case"is":return{in:{values:n}};case"isnot":return{in:{values:n,not:!0}};case"any":return{null:{not:!0}};case"none":return{null:{not:!1}};default:throw new Error("Unsupported operator key: "+e)}}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["ng-component"]],viewQuery:function(n,t){if(n&1&&ve(of,5),n&2){let r;K(r=Y())&&(t.list=r.first)}},standalone:!0,features:[P],decls:3,vars:3,consts:()=>{let e;return e=$localize`:Mathematical operator < > =␟5303b7a3dba72e7b2b83d54ecffbe9da76edaca3␟725374975979979308:Opérateur`,[e,[3,"formGroup"],[2,"max-width","7em","margin-right","1em"],[3,"formControl"],["panelWidth","",3,"formControl","required"],[3,"value"],["togglePosition","before",3,"value"]]},template:function(n,t){n&1&&(u(0,"form",1),M(1,Cee,6,2,"mat-form-field",2)(2,wee,3,1,"mat-selection-list",3),m()),n&2&&(v("formGroup",t.form),f(),k(t.configuration.operators?1:-1),f(),k(t.requireValueCtrl?2:-1))},dependencies:[$e,go,We,Rt,Zi,it,st,bt,at,mt,_t,Sr,wr,Pi,Li,Sp,of,AS],encapsulation:2})};var Ep=class i{configuration;renderedValue=new Be("");requireValueCtrl=!1;operators=Sb;operatorCtrl=new Xe("is",{nonNullable:!0});valueCtrl=new Xe;form=new Pt({operator:this.operatorCtrl,value:this.valueCtrl});constructor(e){this.configuration=e.configuration,this.operatorCtrl.valueChanges.pipe(Ye(null)).subscribe(()=>this.initValidators()),Ge(this.operatorCtrl.valueChanges,this.valueCtrl.valueChanges).subscribe(()=>{let n=this.getRenderedValue();this.renderedValue.next(n)}),this.reloadCondition(e.condition)}isValid(){return this.form.valid}isDirty(){return this.form.dirty}initValidators(){let e=["is","isnot"];this.requireValueCtrl=e.includes(this.operatorCtrl.value);let n=this.requireValueCtrl?[tt.required]:[];this.valueCtrl.setValidators(n),this.valueCtrl.updateValueAndValidity()}reloadCondition(e){if(!e)return;let n=this.conditionToOperatorKey(e);this.operatorCtrl.setValue(n),this.reloadValue(e).subscribe(t=>{this.valueCtrl.setValue(t),this.renderedValue.next(this.getRenderedValue())})}getRenderedValue(){let e=this.operators.find(t=>t.key===this.operatorCtrl.value);if(!e||!this.isValid())return"";let n=this.renderValueWithoutOperator();return[e.label,n].filter(t=>t).join(" ")}conditionToOperatorKey(e){return e.have&&!e.have.not?"is":e.have?.not?"isnot":e.empty?.not?"any":e.empty&&!e.empty.not?"none":"is"}operatorKeyToCondition(e,n){switch(e){case"is":return{have:{values:n}};case"isnot":return{have:{values:n,not:!0}};case"any":return{empty:{not:!0}};case"none":return{empty:{not:!1}};default:throw new Error("Unsupported operator key: "+e)}}static \u0275fac=function(n){return new(n||i)(b(Hi))};static \u0275dir=B({type:i,standalone:!0})};var See=["panel"],Eee=["*"];function Tee(i,e){if(i&1){let n=z();u(0,"div",1,0),w("@panelAnimation.done",function(r){A(n);let o=C();return R(o._animationDone.next(r))}),ae(2),m()}if(i&2){let n=e.id,t=C();Yt(t._classList),se("mat-mdc-autocomplete-visible",t.showPanel)("mat-mdc-autocomplete-hidden",!t.showPanel)("mat-primary",t._color==="primary")("mat-accent",t._color==="accent")("mat-warn",t._color==="warn"),v("id",t.id)("@panelAnimation",t.isOpen?"visible":"hidden"),ne("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby(n))}}var Dee=Vt("panelAnimation",[dt("void, hidden",Ee({opacity:0,transform:"scaleY(0.8)"})),ot(":enter, hidden => visible",[hg([nt("0.03s linear",Ee({opacity:1})),nt("0.12s cubic-bezier(0, 0, 0.2, 1)",Ee({transform:"scaleY(1)"}))])]),ot(":leave, visible => hidden",[nt("0.075s linear",Ee({opacity:0}))])]),kee=0,NS=class{constructor(e,n){this.source=e,this.option=n}},SP=new H("mat-autocomplete-default-options",{providedIn:"root",factory:Iee});function Iee(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}var EP=(()=>{let e=class e{get isOpen(){return this._isOpen&&this.showPanel}_setColor(t){this._color=t,this._changeDetectorRef.markForCheck()}set classList(t){this._classList=t,this._elementRef.nativeElement.className=""}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(t){this._hideSingleSelectionIndicator=t,this._syncParentProperties()}_syncParentProperties(){if(this.options)for(let t of this.options)t._changeDetectorRef.markForCheck()}constructor(t,r,o,a){this._changeDetectorRef=t,this._elementRef=r,this._defaults=o,this._activeOptionChanges=et.EMPTY,this._animationDone=new $,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new $,this.opened=new $,this.closed=new $,this.optionActivated=new $,this.id=`mat-autocomplete-${kee++}`,this.inertGroups=a?.SAFARI||!1,this.autoActiveFirstOption=!!o.autoActiveFirstOption,this.autoSelectActiveOption=!!o.autoSelectActiveOption,this.requireSelection=!!o.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new Pd(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe(),this._animationDone.complete()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){let r=new NS(this,t);this.optionSelected.emit(r)}_getPanelAriaLabelledby(t){if(this.ariaLabel)return null;let r=t?t+" ":"";return this.ariaLabelledby?r+this.ariaLabelledby:t}_skipPredicate(){return!1}};e.\u0275fac=function(r){return new(r||e)(b(Se),b(J),b(SP),b(Le))},e.\u0275cmp=F({type:e,selectors:[["mat-autocomplete"]],contentQueries:function(r,o,a){if(r&1&&(Ie(a,Pi,5),Ie(a,Dm,5)),r&2){let s;K(s=Y())&&(o.options=s),K(s=Y())&&(o.optionGroups=s)}},viewQuery:function(r,o){if(r&1&&(ve(ft,7),ve(See,5)),r&2){let a;K(a=Y())&&(o.template=a.first),K(a=Y())&&(o.panel=a.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",ee],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",ee],requireSelection:[2,"requireSelection","requireSelection",ee],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",ee],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",ee]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],standalone:!0,features:[me([{provide:Tm,useExisting:e}]),xe,P],ngContentSelectors:Eee,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(r,o){r&1&&(Me(),M(0,Tee,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:[Dee]},changeDetection:0});let i=e;return i})();var Mee={provide:_n,useExisting:$t(()=>af),multi:!0};var TP=new H("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let i=x(yt);return()=>i.scrollStrategies.reposition()}});function Oee(i){return()=>i.scrollStrategies.reposition()}var Aee={provide:TP,deps:[yt],useFactory:Oee},af=(()=>{let e=class e{constructor(t,r,o,a,s,l,c,d,p,h,g){this._element=t,this._overlay=r,this._viewContainerRef=o,this._zone=a,this._changeDetectorRef=s,this._dir=c,this._formField=d,this._document=p,this._viewportRuler=h,this._defaults=g,this._componentDestroyed=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=et.EMPTY,this._breakpointObserver=x(vr),this._handsetLandscapeSubscription=et.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new q,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 q,this._injector=x(ze),this._aboveClass="mat-mdc-autocomplete-panel-above",this._overlayAttached=!1,this.optionSelections=Ao(()=>{let _=this.autocomplete?this.autocomplete.options:null;return _?_.changes.pipe(Ye(_),qe(()=>Ge(..._.map(S=>S.onSelectionChange)))):this._initialized.pipe(qe(()=>this.optionSelections))}),this._handlePanelKeydown=_=>{(_.keyCode===27&&!Dt(_)||_.keyCode===38&&Dt(_,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),_.stopPropagation(),_.preventDefault())},this._trackedModal=null,this._scrollStrategy=l}ngAfterViewInit(){this._initialized.next(),this._initialized.complete();let t=this._getWindow();typeof t<"u"&&this._zone.runOutsideAngular(()=>t.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){let t=this._getWindow();typeof t<"u"&&t.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&&Fs(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Ge(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Re(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Re(()=>this._overlayAttached)):U()).pipe(re(t=>t instanceof Em?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Ge(fr(this._document,"click"),fr(this._document,"auxclick"),fr(this._document,"touchend")).pipe(Re(t=>{let r=Jn(t),o=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,a=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&r!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!o||!o.contains(r))&&(!a||!a.contains(r))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(r)}))}writeValue(t){Promise.resolve(null).then(()=>this._assignOptionValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t}_handleKeydown(t){let r=t.keyCode,o=Dt(t);if(r===27&&!o&&t.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&r===13&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){let a=this.autocomplete._keyManager.activeItem,s=r===38||r===40;r===9||s&&!o&&this.panelOpen?this.autocomplete._keyManager.onKeydown(t):s&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(s||this.autocomplete._keyManager.activeItem!==a)&&(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(t){let r=t.target,o=r.value;if(r.type==="number"&&(o=o==""?null:parseFloat(o)),this._previousValue!==o){if(this._previousValue=o,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(o),!o)this._clearPreviousSelectedOption(null,!1);else if(this.panelOpen&&!this.autocomplete.requireSelection){let a=this.autocomplete.options?.find(s=>s.selected);if(a){let s=this._getDisplayValue(a.value);o!==s&&a.deselect(!1)}}if(this._canOpen()&&this._document.activeElement===t.target){let a=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(a)}}}_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(t=!1){this._formField&&this._formField.floatLabel==="auto"&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let t=new Ct(o=>{si(()=>{o.next()},{injector:this._injector})}),r=this.autocomplete.options.changes.pipe(lt(()=>this._positionStrategy.reapplyLastPosition()),ai(0));return Ge(t,r).pipe(qe(()=>this._zone.run(()=>{let o=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),o!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),pt(1)).subscribe(o=>this._setValueAndClose(o))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(t){let r=this.autocomplete;return r&&r.displayWith?r.displayWith(t):t}_assignOptionValue(t){let r=this._getDisplayValue(t);t==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(r??"")}_updateNativeInputValue(t){this._formField?this._formField._control.value=t:this._element.nativeElement.value=t,this._previousValue=t}_setValueAndClose(t){let r=this.autocomplete,o=t?t.source:this._pendingAutoselectedOption;o?(this._clearPreviousSelectedOption(o),this._assignOptionValue(o.value),this._onChange(o.value),r._emitSelectEvent(o),this._element.nativeElement.focus()):r.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),r._animationDone?r._animationDone.pipe(pt(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(t,r){this.autocomplete?.options?.forEach(o=>{o!==t&&o.selected&&o.deselect(r)})}_openPanelInternal(t=this._element.nativeElement.value){if(this._attachOverlay(t),this._floatLabel(),this._trackedModal){let r=this.autocomplete.id;jd(this._trackedModal,"aria-owns",r)}}_attachOverlay(t){this.autocomplete;let r=this._overlayRef;r?(this._positionStrategy.setOrigin(this._getConnectedElement()),r.updateSize({width:this._getPanelWidth()})):(this._portal=new Vi(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),r=this._overlay.create(this._getOverlayConfig()),this._overlayRef=r,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&r&&r.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe($r.HandsetLandscape).subscribe(a=>{a.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),r&&!r.hasAttached()&&(r.attach(this._portal),this._valueOnAttach=t,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());let o=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&o!==this.panelOpen&&this._emitOpened()}_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let t=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=t.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=t.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new An({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){let t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){let r=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],o=this._aboveClass,a=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:o},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:o}],s;this.position==="above"?s=a:this.position==="below"?s=r:s=[...r,...a],t.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 t=this.autocomplete;if(t.autoActiveFirstOption){let r=-1;for(let o=0;o .cdk-overlay-container [aria-modal="true"]');if(!t)return;let r=this.autocomplete.id;this._trackedModal&&Fs(this._trackedModal,"aria-owns",r),jd(t,"aria-owns",r),this._trackedModal=t}_clearFromModal(){if(this._trackedModal){let t=this.autocomplete.id;Fs(this._trackedModal,"aria-owns",t),this._trackedModal=null}}};e.\u0275fac=function(r){return new(r||e)(b(J),b(yt),b(Ft),b(de),b(Se),b(TP),b(vt,8),b(qa,9),b(pe,8),b(tr),b(SP,8))},e.\u0275dir=B({type:e,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(r,o){r&1&&w("focusin",function(){return o._handleFocus()})("blur",function(){return o._onTouched()})("input",function(s){return o._handleInput(s)})("keydown",function(s){return o._handleKeydown(s)})("click",function(){return o._handleClick()}),r&2&&ne("autocomplete",o.autocompleteAttribute)("role",o.autocompleteDisabled?null:"combobox")("aria-autocomplete",o.autocompleteDisabled?null:"list")("aria-activedescendant",o.panelOpen&&o.activeOption?o.activeOption.id:null)("aria-expanded",o.autocompleteDisabled?null:o.panelOpen.toString())("aria-controls",o.autocompleteDisabled||!o.panelOpen||o.autocomplete==null?null:o.autocomplete.id)("aria-haspopup",o.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",ee]},exportAs:["matAutocompleteTrigger"],standalone:!0,features:[me([Mee]),xe,Ne]});let i=e;return i})(),DP=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({providers:[Aee],imports:[Rn,Li,De,Pe,er,Li,De]});let i=e;return i})();var FS=class extends Ha{constructor(n){super();this.component=n}isErrorState(){let n=this.component.ngControl?.control||this.component.internalCtrl;return n?!!(n.errors&&(n.touched||n.dirty)):!1}},Nl=class i{placeholder;hint=null;set required(e){this._required=jt(e),this.applyRequired()}get required(){return!!this._required}_required;navigateTo;clearLabel;showIcon=!0;icon="search";displayWith;selectionChange=new $;blur=new $;internalCtrl=new Xe(null);onChange;onTouched;matcher;ngControl=x(an,{optional:!0,self:!0});constructor(){this.ngControl&&(this.ngControl.valueAccessor=this),this.matcher=new FS(this)}ngDoCheck(){this.ngControl&&this.applyRequired()}writeValue(e){this.internalCtrl.setValue(e)}ngOnInit(){(this.ngControl instanceof st||this.ngControl instanceof rr)&&typeof this._required<"u"&&console.warn(" should not be used as ReactiveForm and with the [required] attribute")}set disabled(e){e?this.internalCtrl.disable():this.internalCtrl.enable()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}clear(){this.internalCtrl.setValue(null),this.propagateValue(null)}onBlur(){this.touch(),this.blur.emit()}propagateValue(e){this.onChange&&this.onChange(e),this.selectionChange.emit(e)}setDisabledState(e){this.disabled=e}showClearButton(){return this.internalCtrl?.enabled&&!!this.clearLabel&&!!this.internalCtrl.value}touch(){this.onTouched&&this.onTouched()}hasRequiredError(){return(this.ngControl?.control?this.ngControl?.control:this.internalCtrl).hasError("required")}applyRequired(){let e=this?.ngControl?.control?.validator?.({})?.required,n=typeof this._required<"u"?this._required:e;this.internalCtrl?.validator?.({})?.required!==n&&(n?this.internalCtrl.setValidators(tt.required):this.internalCtrl.clearValidators(),this.internalCtrl.updateValueAndValidity())}static \u0275fac=function(n){return new(n||i)};static \u0275dir=B({type:i,inputs:{placeholder:"placeholder",hint:"hint",required:"required",navigateTo:"navigateTo",clearLabel:"clearLabel",showIcon:"showIcon",icon:"icon",displayWith:"displayWith",disabled:"disabled"},outputs:{selectionChange:"selectionChange",blur:"blur"},standalone:!0})};var Nee=["determinateSpinner"];function Fee(i,e){if(i&1&&(pi(),u(0,"svg",11),T(1,"circle",12),m()),i&2){let n=C();ne("viewBox",n._viewBox()),f(),Gt("stroke-dasharray",n._strokeCircumference(),"px")("stroke-dashoffset",n._strokeCircumference()/2,"px")("stroke-width",n._circleStrokeWidth(),"%"),ne("r",n._circleRadius())}}var Pee=new H("mat-progress-spinner-default-options",{providedIn:"root",factory:Lee});function Lee(){return{diameter:kP}}var kP=100,Vee=10,Ea=(()=>{let e=class e{get color(){return this._color||this._defaultColor}set color(t){this._color=t}constructor(t,r,o){this._elementRef=t,this._defaultColor="primary",this._value=0,this._diameter=kP,this._noopAnimations=r==="NoopAnimations"&&!!o&&!o._forceAnimations,this.mode=t.nativeElement.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",o&&(o.color&&(this.color=this._defaultColor=o.color),o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth))}get value(){return this.mode==="determinate"?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,t||0))}get diameter(){return this._diameter}set diameter(t){this._diameter=t||0}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(t){this._strokeWidth=t||0}_circleRadius(){return(this.diameter-Vee)/2}_viewBox(){let t=this._circleRadius()*2+this.strokeWidth;return`0 0 ${t} ${t}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}};e.\u0275fac=function(r){return new(r||e)(b(J),b(gt,8),b(Pee))},e.\u0275cmp=F({type:e,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(r,o){if(r&1&&ve(Nee,5),r&2){let a;K(a=Y())&&(o._determinateCircle=a.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(r,o){r&2&&(ne("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",o.mode==="determinate"?o.value:null)("mode",o.mode),Yt("mat-"+o.color),Gt("width",o.diameter,"px")("height",o.diameter,"px")("--mdc-circular-progress-size",o.diameter+"px")("--mdc-circular-progress-active-indicator-width",o.diameter+"px"),se("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate",o.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",Lt],diameter:[2,"diameter","diameter",Lt],strokeWidth:[2,"strokeWidth","strokeWidth",Lt]},exportAs:["matProgressSpinner"],standalone:!0,features:[xe,P],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(r,o){if(r&1&&(M(0,Fee,2,8,"ng-template",null,0,oo),u(2,"div",2,1),pi(),u(4,"svg",3),T(5,"circle",4),m()(),oa(),u(6,"div",5)(7,"div",6)(8,"div",7),yi(9,8),m(),u(10,"div",9),yi(11,8),m(),u(12,"div",10),yi(13,8),m()()()),r&2){let a=Je(1);f(4),ne("viewBox",o._viewBox()),f(),Gt("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),ne("r",o._circleRadius()),f(4),v("ngTemplateOutlet",a),f(2),v("ngTemplateOutlet",a),f(2),v("ngTemplateOutlet",a)}},dependencies:[la],styles:[".mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color, var(--mat-app-primary))}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}"],encapsulation:2,changeDetection:0});let i=e;return i})();var Ta=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({imports:[Pe,De]});let i=e;return i})();var jee=i=>({item:i});function Bee(i,e){}function zee(i,e){if(i&1&&(u(0,"mat-option",5),M(1,Bee,0,0,"ng-template",15),m()),i&2){let n=e.$implicit,t=C(),r=Je(7);v("value",n),f(),v("ngTemplateOutletContext",Ur(3,jee,n))("ngTemplateOutlet",t.itemTemplate?t.itemTemplate:r)}}function Hee(i,e){if(i&1&&(u(0,"div",6),fe(1,2),m()),i&2){let n=C();f(),gD(n.nbTotal),_D(1)}}function Uee(i,e){if(i&1&&(u(0,"span"),y(1),m()),i&2){let n=e.item,t=C();f(),ge(t.getDisplayFn()(n))}}function $ee(i,e){if(i&1&&(u(0,"mat-hint"),y(1),m()),i&2){let n=C();f(),ge(n.hint)}}function Gee(i,e){if(i&1&&T(0,"mat-icon",8),i&2){let n=C();v("naturalIcon",n.icon)}}function qee(i,e){i&1&&(u(0,"div",9),T(1,"mat-progress-spinner",16),m()),i&2&&(f(),v("diameter",21)("strokeWidth",5))}function Wee(i,e){if(i&1){let n=z();u(0,"button",17),w("click",function(){A(n);let r=C();return R(r.clear())}),T(1,"mat-icon",18),m()}}function Qee(i,e){if(i&1){let n=z();u(0,"button",19),w("click",function(){A(n);let r=C();return R(r.reset())}),T(1,"mat-icon",20),m()}}function Kee(i,e){if(i&1){let n=z();u(0,"button",21),w("click",function(r){return A(n),R(r.stopPropagation())}),T(1,"mat-icon",22),m()}if(i&2){let n=C();v("routerLink",n.navigateTo)}}function Yee(i,e){i&1&&(u(0,"mat-error"),fe(1,3),m())}function Xee(i,e){if(i&1){let n=z();u(0,"button",24),w("click",function(){A(n);let r=C(2);return R(r.clear())}),y(1),m()}if(i&2){let n=C(2);f(),ge(n.clearLabel)}}function Jee(i,e){if(i&1&&(u(0,"div",14),M(1,Xee,2,1,"button",23),m()),i&2){let n=C();f(),k(n.showClearButton()?1:-1)}}var ds=class i extends Nl{destroyRef=x(_i);autoTrigger;itemTemplate;service;optionRequired=!0;searchField="custom";searchOperator=null;lastValidValue=null;set filter(e){this.variablesManager.set("additional-filter",{filter:e})}items=null;loading=!1;hasMoreItems=!1;nbTotal=0;pageSize=10;variablesManager=new zi;set disabled(e){e?this.internalCtrl.disable():this.internalCtrl.enable()}ngOnInit(){super.ngOnInit(),this.initService()}ngAfterViewInit(){this.internalCtrl.valueChanges.pipe(ht(this.destroyRef),jr(),Dn(300)).subscribe(e=>this.search(e))}onInternalFormChange(){this.optionRequired||this.propagateValue(this.internalCtrl.value)}onBlur(){this.internalCtrl.dirty&&this.reset(),super.onBlur()}reset(){this.internalCtrl.setValue(this.lastValidValue),this.internalCtrl.markAsPristine()}onKeyEnter(){this.internalCtrl.value||(this.clear(),this.autoTrigger.closePanel())}writeValue(e){super.writeValue(e),this.lastValidValue=this.internalCtrl.value}initService(){if(typeof this.service.watchAll!="function")throw new TypeError("Provided service does not contain watchAll function");let e={pagination:{pageIndex:0,pageSize:this.pageSize}},n=Yr(e,this.getSearchFilter(null));this.variablesManager.set("variables",n)}startSearch(){this.items||(this.items=this.service.watchAll(this.variablesManager).pipe(ht(this.destroyRef),Xi(()=>this.loading=!1),re(e=>{this.loading=!1,this.nbTotal=e.length;let n=Math.min(e.length,this.pageSize);return this.hasMoreItems=this.nbTotal>n,e.items})),this.loading=!0,this.items.subscribe())}propagateValue(e){this.internalCtrl.markAsPristine(),this.lastValidValue=this.internalCtrl.value,this.loading=!1,!this.optionRequired&&e===null&&(e=""),super.propagateValue(e)}getDisplayFn(){return this.displayWith?this.displayWith:e=>e?typeof e=="string"?e:e.fullName||e.name||e.iban||e[this.searchField]||e.id:""}clear(){this.search(null),super.clear()}search(e){(typeof e=="string"||e===null)&&(e&&(this.loading=!!this.items),this.variablesManager.merge("variables",this.getSearchFilter(e)))}showClearButton(){return this.internalCtrl?.enabled&&!!this.clearLabel&&!!this.internalCtrl.value}getSearchFilter(e){let n=this.searchOperator??(this.searchField==="custom"?"search":"like");return e&&n==="like"&&(e="%"+e+"%"),{filter:{groups:[{conditions:[{[this.searchField]:e?{[n]:{value:e}}:null}]}]}}}getVariablesForDebug(){return this.variablesManager.variables.value}static \u0275fac=(()=>{let e;return function(t){return(e||(e=Te(i)))(t||i)}})();static \u0275cmp=F({type:i,selectors:[["natural-select"]],contentQueries:function(n,t,r){if(n&1&&Ie(r,ft,5),n&2){let o;K(o=Y())&&(t.itemTemplate=o.first)}},viewQuery:function(n,t){if(n&1&&ve(af,5),n&2){let r;K(r=Y())&&(t.autoTrigger=r.first)}},inputs:{service:"service",optionRequired:"optionRequired",searchField:"searchField",searchOperator:"searchOperator",filter:"filter",disabled:"disabled"},standalone:!0,features:[X,P],decls:21,vars:16,consts:()=>{let e;e=$localize`:␟24db55d2b71cb10137208e99c6c112b630194818␟3383260231057423151:Recherche et sélection`;let n;n=$localize`:␟b73f9486556a620fa0bc34490ca8aef60d5ba50e␟7476559703529470786:Désélectionner`;let t;t=$localize`:␟544712c95235b75b3adeb737b44273acbd5b1373␟7476112743504592464:Annuler la recherche`;let r;r=$localize`:␟c556a47cd554d8b94066106f1832d6272fbca1e1␟6489170507220514306:Naviguer vers`;let o;o=$localize`:␟2c80cb86f7314fa5b26f151e329d342c70685c46␟6318736219215959044:Saisir pour chercher parmi ${"\uFFFD0\uFFFD"}:INTERPOLATION: résultats`;let a;return a=$localize`:␟c0635fdb2285e10406f861a2135c2d72eab0e8c4␟8857159515510586089:Ce champ est requis`,[["ac","matAutocomplete"],["defaultACItem",""],o,a,["panelWidth","auto !important",3,"optionSelected","displayWith"],[3,"value"],[1,"mat-caption",2,"padding","5px 10px"],["aria-label",e,"matInput","",3,"blur","change","click","focus","keydown.esc","keydown.enter","formControl","matAutocomplete","errorStateMatcher"],["matIconPrefix","",3,"naturalIcon"],["matIconPrefix","",1,"loading-wrapper"],["matIconSuffix",""],["mat-icon-button","","matTooltip",n],["mat-icon-button","","matTooltip",t],["mat-icon-button","","matTooltip",r,3,"routerLink"],[1,"external-buttons"],[3,"ngTemplateOutletContext","ngTemplateOutlet"],["mode","indeterminate",3,"diameter","strokeWidth"],["mat-icon-button","","matTooltip",n,3,"click"],["naturalIcon","close"],["mat-icon-button","","matTooltip",t,3,"click"],["naturalIcon","undo"],["mat-icon-button","","matTooltip",r,3,"click","routerLink"],["naturalIcon","open_in_browser"],["color","warn","mat-button",""],["color","warn","mat-button","",3,"click"]]},template:function(n,t){if(n&1){let r=z();u(0,"mat-autocomplete",4,0),w("optionSelected",function(a){return A(r),R(t.propagateValue(a.option.value))}),He(2,zee,2,5,"mat-option",5,Ds),te(4,"async"),M(5,Hee,2,1,"div",6),m(),M(6,Uee,2,1,"ng-template",null,1,oo),u(8,"mat-form-field")(9,"mat-label"),y(10),m(),u(11,"input",7),w("blur",function(){return A(r),R(t.onBlur())})("change",function(){return A(r),R(t.onInternalFormChange())})("click",function(){return A(r),R(t.autoTrigger.openPanel())})("focus",function(){return A(r),R(t.startSearch())})("keydown.esc",function(){return A(r),R(t.reset())})("keydown.enter",function(){return A(r),R(t.onKeyEnter())}),m(),M(12,$ee,2,1,"mat-hint")(13,Gee,1,1,"mat-icon",8)(14,qee,2,2,"div",9),u(15,"div",10),M(16,Wee,2,0,"button",11)(17,Qee,2,0,"button",12)(18,Kee,2,1,"button",13),m(),M(19,Yee,2,0,"mat-error"),m(),M(20,Jee,2,1,"div",14)}if(n&2){let r=Je(1);v("displayWith",t.getDisplayFn()),f(2),Ue(ie(4,14,t.items)),f(3),k(t.hasMoreItems?5:-1),f(5),ge(t.placeholder),f(),v("formControl",t.internalCtrl)("matAutocomplete",r)("errorStateMatcher",t.matcher),f(),k(t.hint?12:-1),f(),k(!t.loading&&t.showIcon?13:-1),f(),k(t.loading?14:-1),f(2),k(t.internalCtrl.pristine&&t.internalCtrl.value&&t.internalCtrl.enabled&&!t.clearLabel?16:-1),f(),k(t.internalCtrl.dirty&&t.internalCtrl.enabled&&t.optionRequired?17:-1),f(),k(t.internalCtrl.pristine&&t.internalCtrl.value&&t.navigateTo?18:-1),f(),k(t.hasRequiredError()?19:-1),f(),k(t.showClearButton()?20:-1)}},dependencies:[DP,EP,Pi,af,Pe,la,Ms,Li,at,mt,_t,ho,di,Bs,xr,zt,Bt,$e,qt,We,it,st,It,wt,Mt,Ta,Ea,we,Ze,li,ln,sn,Ei],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] > *[_ngcontent-%COMP%]:not(:last-child){margin-bottom:20px}[_nghost-%COMP%] > mat-autocomplete[_ngcontent-%COMP%]{margin-bottom:0!important}[_nghost-%COMP%] .external-buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row}[_nghost-%COMP%] .external-buttons[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(:last-child){margin-right:10px}[_nghost-%COMP%] .loading-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:48px;height:48px}"]})};function Zee(i,e){if(i&1&&(u(0,"mat-option",4),y(1),m()),i&2){let n=e.$implicit;v("value",n.key),f(),ue(" ",n.label," ")}}function ete(i,e){if(i&1&&T(0,"natural-select",5),i&2){let n=C();v("formControl",n.valueCtrl)("placeholder",n.configuration.placeholder)("service",n.configuration.service)("filter",n.configuration.filter)}}var Tp=class i extends Ep{getCondition(){if(!this.isValid())return{};let e=this.valueCtrl.value?.id,n=e?[e]:[];return this.operatorKeyToCondition(this.operatorCtrl.value,n)}reloadValue(e){return e.have?this.configuration.service.getOne(e.have.values[0]):Ht}renderValueWithoutOperator(){let e=this.valueCtrl.value;return e?.fullName||e?.name||""}static \u0275fac=(()=>{let e;return function(t){return(e||(e=Te(i)))(t||i)}})();static \u0275cmp=F({type:i,selectors:[["ng-component"]],standalone:!0,features:[X,P],decls:8,vars:4,consts:()=>{let e;return e=$localize`:Mathematical operator < > =␟5303b7a3dba72e7b2b83d54ecffbe9da76edaca3␟725374975979979308:Opérateur`,[e,[3,"formGroup"],[2,"max-width","7em","margin-right","1em"],["panelWidth","",3,"formControl","required"],[3,"value"],[2,"display","inline",3,"formControl","placeholder","service","filter"]]},template:function(n,t){n&1&&(u(0,"form",1)(1,"mat-form-field",2)(2,"mat-label"),fe(3,0),m(),u(4,"mat-select",3),He(5,Zee,2,2,"mat-option",4,Tt),m()(),M(7,ete,1,4,"natural-select",5),m()),n&2&&(v("formGroup",t.form),f(4),v("formControl",t.operatorCtrl)("required",!0),f(),Ue(t.operators),f(2),k(t.configuration&&t.requireValueCtrl?7:-1))},dependencies:[$e,go,We,Rt,Zi,it,st,bt,at,mt,_t,Sr,wr,Pi,Li,ds],encapsulation:2})};function tte(i,e){i&1&&(u(0,"mat-error"),y(1,"*"),m())}var Dp=class{isErrorState(e){return e&&e.invalid&&e.value}},kp=class i{dropdownRef=x(Or);renderedValue=new Be("");formCtrl=new Xe("",{nonNullable:!0});matcher=new Dp;constructor(){let e=x(Hi);this.formCtrl.valueChanges.subscribe(n=>{this.renderedValue.next(n===null?"":this.formCtrl.value+"")}),this.formCtrl.setValidators([tt.required]),e.condition?.like&&this.formCtrl.setValue(""+e.condition.like.value)}getCondition(){return this.formCtrl.value?{like:{value:this.formCtrl.value}}:{}}isValid(){return this.formCtrl.valid}isDirty(){return this.formCtrl.dirty}close(){this.isValid()?this.dropdownRef.close({condition:this.getCondition()}):this.dropdownRef.close()}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["ng-component"]],standalone:!0,features:[P],decls:5,vars:4,consts:()=>{let e;return e=$localize`:␟682c6738dc138ad385790cf462130300117061c1␟3717603792840045364:Valeur`,[e,["matInput","","type","text","autocomplete","off",3,"keydown.enter","errorStateMatcher","formControl","required"]]},template:function(n,t){n&1&&(u(0,"mat-form-field")(1,"mat-label"),fe(2,0),m(),u(3,"input",1),w("keydown.enter",function(){return t.close()}),m(),M(4,tte,2,0,"mat-error"),m()),n&2&&(f(3),v("errorStateMatcher",t.matcher)("formControl",t.formCtrl)("required",!0),f(),k(t.formCtrl.hasError("required")?4:-1))},dependencies:[at,mt,_t,di,zt,Bt,$e,qt,We,Zi,it,st],styles:["[_nghost-%COMP%] input[_ngcontent-%COMP%]::-webkit-outer-spin-button, [_nghost-%COMP%] input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}"]})};function ite(i,e){if(i&1&&(u(0,"mat-option",5),y(1),m()),i&2){let n=e.$implicit;v("value",n.key),f(),ue(" ",n.label," ")}}function nte(i,e){if(i&1&&(u(0,"mat-error"),y(1),m()),i&2){let n=C();f(),ue("< ",n.configuration.min,"")}}function rte(i,e){if(i&1&&(u(0,"mat-error"),y(1),m()),i&2){let n=C();f(),ue("> ",n.configuration.max,"")}}var us=class i{dropdownRef=x(Or);renderedValue=new Be("");configuration;operatorCtrl=new Xe("equal",{nonNullable:!0});valueCtrl=new Xe;matcher=new Dp;form=new Pt({operator:this.operatorCtrl,value:this.valueCtrl});operators=wb;defaults={min:null,max:null,step:null};constructor(){let e=x(Hi);this.configuration=N(N({},this.defaults),e.configuration),Ge(this.operatorCtrl.valueChanges,this.valueCtrl.valueChanges).subscribe(()=>{let n=this.getRenderedValue();this.renderedValue.next(n)}),this.initValidators(),this.reloadCondition(e.condition)}getCondition(){let e={};return e[this.operatorCtrl.value]={value:this.valueCtrl.value},e}isValid(){return this.form.valid}isDirty(){return this.form.dirty}close(){this.isValid()?this.dropdownRef.close({condition:this.getCondition()}):this.dropdownRef.close()}initValidators(){let e=[tt.required];if(typeof this.configuration.min=="number"&&e.push(tt.min(this.configuration.min)),typeof this.configuration.max=="number"&&e.push(tt.max(this.configuration.max)),this.configuration.step){let t=(/\.(\d+)$/.exec(""+this.configuration.step)?.[1]??"").length;e.push(Nw(t))}this.valueCtrl.setValidators(e)}reloadCondition(e){if(e)for(let n of this.operators){let t=e[n.key];t&&(this.operatorCtrl.setValue(n.key),this.valueCtrl.setValue(t.value))}}getRenderedValue(){let e=this.operators.find(n=>n.key===this.operatorCtrl.value);return this.valueCtrl.value===null||!e?"":e.label+" "+this.valueCtrl.value}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["ng-component"]],standalone:!0,features:[P],decls:13,vars:11,consts:()=>{let e;e=$localize`:Mathematical operator < > =␟5303b7a3dba72e7b2b83d54ecffbe9da76edaca3␟725374975979979308:Opérateur`;let n;return n=$localize`:␟682c6738dc138ad385790cf462130300117061c1␟3717603792840045364:Valeur`,[e,n,[3,"formGroup"],[2,"max-width","4em","margin-right","1em"],["panelWidth","",3,"formControl","required"],[3,"value"],["matInput","","type","number",3,"keydown.enter","errorStateMatcher","formControl","required","step"]]},template:function(n,t){n&1&&(u(0,"form",2)(1,"mat-form-field",3)(2,"mat-label"),fe(3,0),m(),u(4,"mat-select",4),He(5,ite,2,2,"mat-option",5,Tt),m()(),u(7,"mat-form-field")(8,"mat-label"),fe(9,1),m(),u(10,"input",6),w("keydown.enter",function(){return t.close()}),m(),M(11,nte,2,1,"mat-error")(12,rte,2,1,"mat-error"),m()()),n&2&&(v("formGroup",t.form),f(4),v("formControl",t.operatorCtrl)("required",!0),f(),Ue(t.operators),f(5),v("errorStateMatcher",t.matcher)("formControl",t.valueCtrl)("required",!0)("step",t.configuration.step),ne("max",t.configuration.max)("min",t.configuration.min),f(),k(t.valueCtrl.hasError("min")?11:-1),f(),k(t.valueCtrl.hasError("max")?12:-1))},dependencies:[$e,go,qt,gx,We,Rt,Zi,it,st,bt,at,mt,_t,di,Sr,wr,Pi,Li,zt,Bt],styles:["[_nghost-%COMP%] input[_ngcontent-%COMP%]::-webkit-outer-spin-button, [_nghost-%COMP%] input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}"]})};var PS=class{constructor(){this.expansionModel=new On(!0)}toggle(e){this.expansionModel.toggle(this._trackByValue(e))}expand(e){this.expansionModel.select(this._trackByValue(e))}collapse(e){this.expansionModel.deselect(this._trackByValue(e))}isExpanded(e){return this.expansionModel.isSelected(this._trackByValue(e))}toggleDescendants(e){this.expansionModel.isSelected(this._trackByValue(e))?this.collapseDescendants(e):this.expandDescendants(e)}collapseAll(){this.expansionModel.clear()}expandDescendants(e){let n=[e];n.push(...this.getDescendants(e)),this.expansionModel.select(...n.map(t=>this._trackByValue(t)))}collapseDescendants(e){let n=[e];n.push(...this.getDescendants(e)),this.expansionModel.deselect(...n.map(t=>this._trackByValue(t)))}_trackByValue(e){return this.trackBy?this.trackBy(e):e}},Vv=class extends PS{constructor(e,n,t){super(),this.getLevel=e,this.isExpandable=n,this.options=t,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(e){let n=this.dataNodes.indexOf(e),t=[];for(let r=n+1;rthis._trackByValue(e)))}};var VS=new H("CDK_TREE_NODE_OUTLET_NODE"),jv=(()=>{let e=class e{constructor(t,r){this.viewContainer=t,this._node=r}};e.\u0275fac=function(r){return new(r||e)(b(Ft),b(VS,8))},e.\u0275dir=B({type:e,selectors:[["","cdkTreeNodeOutlet",""]],standalone:!0});let i=e;return i})(),LS=class{constructor(e){this.$implicit=e}},Bv=(()=>{let e=class e{constructor(t){this.template=t}};e.\u0275fac=function(r){return new(r||e)(b(ft))},e.\u0275dir=B({type:e,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:[0,"cdkTreeNodeDefWhen","when"]},standalone:!0});let i=e;return i})();function IP(){return Error("Could not find a tree control, levelAccessor, or childrenAccessor for the tree.")}var Fl=(()=>{let e=class e{get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}constructor(t,r){this._differs=t,this._changeDetectorRef=r,this._dir=x(vt),this._onDestroy=new q,this._levels=new Map,this._parents=new Map,this._ariaSets=new Map,this.viewChange=new Be({start:0,end:Number.MAX_VALUE}),this._flattenedNodes=new Be([]),this._nodeType=new Be(null),this._nodes=new Be(new Map),this._keyManagerNodes=new Be([]),this._keyManagerFactory=x(ik),this._viewInit=!1}ngAfterContentInit(){this._initializeKeyManager()}ngAfterContentChecked(){this._updateDefaultNodeDefinition(),this._subscribeToDataChanges()}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&typeof this._dataSource.disconnect=="function"&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),this._keyManager?.destroy()}ngOnInit(){this._checkTreeControlUsage(),this._initializeDataDiffer()}ngAfterViewInit(){this._viewInit=!0}_updateDefaultNodeDefinition(){let t=this._nodeDefs.filter(r=>!r.when);t.length>1,this._defaultNodeDef=t[0]}_setNodeTypeIfUnset(t){this._nodeType.value===null&&this._nodeType.next(t)}_switchDataSource(t){this._dataSource&&typeof this._dataSource.disconnect=="function"&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),t||this._nodeOutlet.viewContainer.clear(),this._dataSource=t,this._nodeDefs&&this._subscribeToDataChanges()}_getExpansionModel(){return this.treeControl?this.treeControl.expansionModel:(this._expansionModel??=new On(!0),this._expansionModel)}_subscribeToDataChanges(){if(this._dataSubscription)return;let t;$d(this._dataSource)?t=this._dataSource.connect(this):no(this._dataSource)?t=this._dataSource:Array.isArray(this._dataSource)&&(t=U(this._dataSource)),t&&(this._dataSubscription=this._getRenderData(t).pipe(ye(this._onDestroy)).subscribe(r=>{this._renderDataChanges(r)}))}_getRenderData(t){let r=this._getExpansionModel();return nn([t,this._nodeType,r.changed.pipe(Ye(null),lt(o=>{this._emitExpansionChanges(o)}))]).pipe(qe(([o,a])=>a===null?U({renderNodes:o,flattenedNodes:null,nodeType:a}):this._computeRenderingData(o,a).pipe(re(s=>ce(N({},s),{nodeType:a})))))}_renderDataChanges(t){if(t.nodeType===null){this.renderNodeChanges(t.renderNodes);return}this._updateCachedData(t.flattenedNodes),this.renderNodeChanges(t.renderNodes),this._updateKeyManagerItems(t.flattenedNodes)}_emitExpansionChanges(t){if(!t)return;let r=this._nodes.value;for(let o of t.added)r.get(o)?._emitExpansionState(!0);for(let o of t.removed)r.get(o)?._emitExpansionState(!1)}_initializeKeyManager(){let t=nn([this._keyManagerNodes,this._nodes]).pipe(re(([o,a])=>o.reduce((s,l)=>{let c=a.get(this._getExpansionKey(l));return c&&s.push(c),s},[]))),r={trackBy:o=>this._getExpansionKey(o.data),skipPredicate:o=>!!o.isDisabled,typeAheadDebounceInterval:!0,horizontalOrientation:this._dir.value};this._keyManager=this._keyManagerFactory(t,r)}_initializeDataDiffer(){let t=this.trackBy??((r,o)=>this._getExpansionKey(o));this._dataDiffer=this._differs.find([]).create(t)}_checkTreeControlUsage(){}renderNodeChanges(t,r=this._dataDiffer,o=this._nodeOutlet.viewContainer,a){let s=r.diff(t);!s&&!this._viewInit||(s?.forEachOperation((l,c,d)=>{if(l.previousIndex==null)this.insertNode(t[d],d,o,a);else if(d==null)o.remove(c);else{let p=o.get(c);o.move(p,d)}}),s?.forEachIdentityChange(l=>{let c=l.item;if(l.currentIndex!=null){let d=o.get(l.currentIndex);d.context.$implicit=c}}),this._changeDetectorRef.detectChanges())}_getNodeDef(t,r){if(this._nodeDefs.length===1)return this._nodeDefs.first;let o=this._nodeDefs.find(a=>a.when&&a.when(r,t))||this._defaultNodeDef;return o}insertNode(t,r,o,a){let s=this._getLevelAccessor(),l=this._getNodeDef(t,r),c=this._getExpansionKey(t),d=new LS(t);a??=this._parents.get(c)??void 0,s?d.level=s(t):a!==void 0&&this._levels.has(this._getExpansionKey(a))?d.level=this._levels.get(this._getExpansionKey(a))+1:d.level=0,this._levels.set(c,d.level),(o||this._nodeOutlet.viewContainer).createEmbeddedView(l.template,d,r),Xc.mostRecentTreeNode&&(Xc.mostRecentTreeNode.data=t)}isExpanded(t){return!!(this.treeControl?.isExpanded(t)||this._expansionModel?.isSelected(this._getExpansionKey(t)))}toggle(t){this.treeControl?this.treeControl.toggle(t):this._expansionModel&&this._expansionModel.toggle(this._getExpansionKey(t))}expand(t){this.treeControl?this.treeControl.expand(t):this._expansionModel&&this._expansionModel.select(this._getExpansionKey(t))}collapse(t){this.treeControl?this.treeControl.collapse(t):this._expansionModel&&this._expansionModel.deselect(this._getExpansionKey(t))}toggleDescendants(t){this.treeControl?this.treeControl.toggleDescendants(t):this._expansionModel&&(this.isExpanded(t)?this.collapseDescendants(t):this.expandDescendants(t))}expandDescendants(t){if(this.treeControl)this.treeControl.expandDescendants(t);else if(this._expansionModel){let r=this._expansionModel;r.select(this._getExpansionKey(t)),this._getDescendants(t).pipe(pt(1),ye(this._onDestroy)).subscribe(o=>{r.select(...o.map(a=>this._getExpansionKey(a)))})}}collapseDescendants(t){if(this.treeControl)this.treeControl.collapseDescendants(t);else if(this._expansionModel){let r=this._expansionModel;r.deselect(this._getExpansionKey(t)),this._getDescendants(t).pipe(pt(1),ye(this._onDestroy)).subscribe(o=>{r.deselect(...o.map(a=>this._getExpansionKey(a)))})}}expandAll(){this.treeControl?this.treeControl.expandAll():this._expansionModel&&this._expansionModel.select(...this._flattenedNodes.value.map(r=>this._getExpansionKey(r)))}collapseAll(){this.treeControl?this.treeControl.collapseAll():this._expansionModel&&this._expansionModel.deselect(...this._flattenedNodes.value.map(r=>this._getExpansionKey(r)))}_getLevelAccessor(){return this.treeControl?.getLevel?.bind(this.treeControl)??this.levelAccessor}_getChildrenAccessor(){return this.treeControl?.getChildren?.bind(this.treeControl)??this.childrenAccessor}_getDirectChildren(t){let r=this._getLevelAccessor(),o=this._expansionModel??this.treeControl?.expansionModel;if(!o)return U([]);let a=this._getExpansionKey(t),s=o.changed.pipe(qe(c=>c.added.includes(a)?U(!0):c.removed.includes(a)?U(!1):Ht),Ye(this.isExpanded(t)));if(r)return nn([s,this._flattenedNodes]).pipe(re(([c,d])=>c?this._findChildrenByLevel(r,d,t,1):[]));let l=this._getChildrenAccessor();if(l)return cc(l(t)??[]);throw IP()}_findChildrenByLevel(t,r,o,a){let s=this._getExpansionKey(o),l=r.findIndex(h=>this._getExpansionKey(h)===s),c=t(o),d=c+a,p=[];for(let h=l+1;hthis._getExpansionKey(a)===o)+1}_getNodeParent(t){let r=this._parents.get(this._getExpansionKey(t.data));return r&&this._nodes.value.get(this._getExpansionKey(r))}_getNodeChildren(t){return this._getDirectChildren(t.data).pipe(re(r=>r.reduce((o,a)=>{let s=this._nodes.value.get(this._getExpansionKey(a));return s&&o.push(s),o},[])))}_sendKeydownToKeyManager(t){this._keyManager.onKeydown(t)}_getDescendants(t){if(this.treeControl)return U(this.treeControl.getDescendants(t));if(this.levelAccessor){let r=this._findChildrenByLevel(this.levelAccessor,this._flattenedNodes.value,t,1/0);return U(r)}if(this.childrenAccessor)return this._getAllChildrenRecursively(t).pipe(pC((r,o)=>(r.push(...o),r),[]));throw IP()}_getAllChildrenRecursively(t){return this.childrenAccessor?cc(this.childrenAccessor(t)).pipe(pt(1),qe(r=>{for(let o of r)this._parents.set(this._getExpansionKey(o),t);return U(...r).pipe(na(o=>Pa(U([o]),this._getAllChildrenRecursively(o))))})):U([])}_getExpansionKey(t){return this.expansionKey?.(t)??t}_getAriaSet(t){let r=this._getExpansionKey(t),o=this._parents.get(r),a=o?this._getExpansionKey(o):null;return this._ariaSets.get(a)??[t]}_findParentForNode(t,r,o){if(!o.length)return null;let a=this._levels.get(this._getExpansionKey(t))??0;for(let s=r-1;s>=0;s--){let l=o[s];if((this._levels.get(this._getExpansionKey(l))??0){let s=this._getExpansionKey(a);this._parents.has(s)||this._parents.set(s,null),this._levels.set(s,r);let l=cc(o(a));return Pa(U([a]),l.pipe(pt(1),lt(c=>{this._ariaSets.set(s,[...c??[]]);for(let d of c??[]){let p=this._getExpansionKey(d);this._parents.set(p,a),this._levels.set(p,r+1)}}),qe(c=>c?this._flattenNestedNodesWithExpansion(c,r+1).pipe(re(d=>this.isExpanded(a)?d:[])):U([]))))}),pC((a,s)=>(a.push(...s),a),[])):U([...t])}_computeRenderingData(t,r){if(this.childrenAccessor&&r==="flat")return this._ariaSets.set(null,[...t]),this._flattenNestedNodesWithExpansion(t).pipe(re(o=>({renderNodes:o,flattenedNodes:o})));if(this.levelAccessor&&r==="nested"){let o=this.levelAccessor;return U(t.filter(a=>o(a)===0)).pipe(re(a=>({renderNodes:a,flattenedNodes:t})),lt(({flattenedNodes:a})=>{this._calculateParents(a)}))}else return r==="flat"?U({renderNodes:t,flattenedNodes:t}).pipe(lt(({flattenedNodes:o})=>{this._calculateParents(o)})):(this._ariaSets.set(null,[...t]),this._flattenNestedNodesWithExpansion(t).pipe(re(o=>({renderNodes:t,flattenedNodes:o}))))}_updateCachedData(t){this._flattenedNodes.next(t)}_updateKeyManagerItems(t){this._keyManagerNodes.next(t)}_calculateParents(t){let r=this._getLevelAccessor();if(r){this._parents.clear(),this._ariaSets.clear();for(let o=0;o{let e=class e{get role(){return"treeitem"}set role(t){}get isExpandable(){return this._isExpandable()}set isExpandable(t){this._inputIsExpandable=t,!(this.data&&!this._isExpandable||!this._inputIsExpandable)&&(this._inputIsExpanded?this.expand():this._inputIsExpanded===!1&&this.collapse())}get isExpanded(){return this._tree.isExpanded(this._data)}set isExpanded(t){this._inputIsExpanded=t,t?this.expand():this.collapse()}getLabel(){return this.typeaheadLabel||this._elementRef.nativeElement.textContent?.trim()||""}get data(){return this._data}set data(t){t!==this._data&&(this._data=t,this._dataChanges.next())}get isLeafNode(){return this._tree.treeControl?.isExpandable!==void 0&&!this._tree.treeControl.isExpandable(this._data)?!0:this._tree.treeControl?.isExpandable===void 0&&this._tree.treeControl?.getDescendants(this._data).length===0}get level(){return this._tree._getLevel(this._data)??this._parentNodeAriaLevel}_isExpandable(){return this._tree.treeControl?!this.isLeafNode:this._inputIsExpandable}_getAriaExpanded(){return this._isExpandable()?String(this.isExpanded):null}_getSetSize(){return this._tree._getSetSize(this._data)}_getPositionInSet(){return this._tree._getPositionInSet(this._data)}constructor(t,r){this._elementRef=t,this._tree=r,this._tabindex=-1,this.activation=new $,this.expandedChange=new $,this._destroyed=new q,this._dataChanges=new q,this._inputIsExpandable=!1,this._inputIsExpanded=void 0,this._shouldFocus=!0,this._changeDetectorRef=x(Se),e.mostRecentTreeNode=this}ngOnInit(){this._parentNodeAriaLevel=ote(this._elementRef.nativeElement),this._tree._getExpansionModel().changed.pipe(re(()=>this.isExpanded),jr()).subscribe(()=>{this._changeDetectorRef.markForCheck()}),this._tree._setNodeTypeIfUnset("flat"),this._tree._registerNode(this)}ngOnDestroy(){e.mostRecentTreeNode===this&&(e.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}getParent(){return this._tree._getNodeParent(this)??null}getChildren(){return this._tree._getNodeChildren(this)}focus(){this._tabindex=0,this._shouldFocus&&this._elementRef.nativeElement.focus(),this._changeDetectorRef.markForCheck()}unfocus(){this._tabindex=-1,this._changeDetectorRef.markForCheck()}activate(){this.isDisabled||this.activation.next(this._data)}collapse(){this.isExpandable&&this._tree.collapse(this._data)}expand(){this.isExpandable&&this._tree.expand(this._data)}makeFocusable(){this._tabindex=0,this._changeDetectorRef.markForCheck()}_focusItem(){this.isDisabled||this._tree._keyManager.focusItem(this)}_setActiveItem(){this.isDisabled||(this._shouldFocus=!1,this._tree._keyManager.focusItem(this),this._shouldFocus=!0)}_emitExpansionState(t){this.expandedChange.emit(t)}};e.mostRecentTreeNode=null,e.\u0275fac=function(r){return new(r||e)(b(J),b(Fl))},e.\u0275dir=B({type:e,selectors:[["cdk-tree-node"]],hostAttrs:["role","treeitem",1,"cdk-tree-node"],hostVars:5,hostBindings:function(r,o){r&1&&w("click",function(){return o._setActiveItem()})("focus",function(){return o._focusItem()}),r&2&&(Ci("tabindex",o._tabindex),ne("aria-expanded",o._getAriaExpanded())("aria-level",o.level+1)("aria-posinset",o._getPositionInSet())("aria-setsize",o._getSetSize()))},inputs:{role:"role",isExpandable:[2,"isExpandable","isExpandable",ee],isExpanded:"isExpanded",isDisabled:[2,"isDisabled","isDisabled",ee],typeaheadLabel:[0,"cdkTreeNodeTypeaheadLabel","typeaheadLabel"]},outputs:{activation:"activation",expandedChange:"expandedChange"},exportAs:["cdkTreeNode"],standalone:!0,features:[xe]});let i=e;return i})();function ote(i){let e=i.parentElement;for(;e&&!ate(e);)e=e.parentElement;return e?e.classList.contains("cdk-nested-tree-node")?Lt(e.getAttribute("aria-level")):0:-1}function ate(i){let e=i.classList;return!!(e?.contains("cdk-nested-tree-node")||e?.contains("cdk-tree"))}var ste=/([A-Za-z%]+)$/,jS=(()=>{let e=class e{get level(){return this._level}set level(t){this._setLevelInput(t)}get indent(){return this._indent}set indent(t){this._setIndentInput(t)}constructor(t,r,o,a){this._treeNode=t,this._tree=r,this._element=o,this._dir=a,this._destroyed=new q,this.indentUnits="px",this._indent=40,this._setPadding(),a&&a.change.pipe(ye(this._destroyed)).subscribe(()=>this._setPadding(!0)),t._dataChanges.subscribe(()=>this._setPadding())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){let t=(this._treeNode.data&&this._tree._getLevel(this._treeNode.data))??null,r=this._level==null?t:this._level;return typeof r=="number"?`${r*this._indent}${this.indentUnits}`:null}_setPadding(t=!1){let r=this._paddingIndent();if(r!==this._currentPadding||t){let o=this._element.nativeElement,a=this._dir&&this._dir.value==="rtl"?"paddingRight":"paddingLeft",s=a==="paddingLeft"?"paddingRight":"paddingLeft";o.style[a]=r||"",o.style[s]="",this._currentPadding=r}}_setLevelInput(t){this._level=isNaN(t)?null:t,this._setPadding()}_setIndentInput(t){let r=t,o="px";if(typeof t=="string"){let a=t.split(ste);r=a[0],o=a[1]||o}this.indentUnits=o,this._indent=Lt(r),this._setPadding()}};e.\u0275fac=function(r){return new(r||e)(b(Xc),b(Fl),b(J),b(vt,8))},e.\u0275dir=B({type:e,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:[2,"cdkTreeNodePadding","level",Lt],indent:[0,"cdkTreeNodePaddingIndent","indent"]},standalone:!0,features:[xe]});let i=e;return i})(),BS=(()=>{let e=class e{constructor(t,r){this._tree=t,this._treeNode=r,this.recursive=!1}_toggle(){this.recursive?this._tree.toggleDescendants(this._treeNode.data):this._tree.toggle(this._treeNode.data),this._tree._keyManager.focusItem(this._treeNode)}};e.\u0275fac=function(r){return new(r||e)(b(Fl),b(Xc))},e.\u0275dir=B({type:e,selectors:[["","cdkTreeNodeToggle",""]],hostAttrs:["tabindex","-1"],hostBindings:function(r,o){r&1&&w("click",function(s){return o._toggle(),s.stopPropagation()})("keydown.Enter",function(s){return o._toggle(),s.preventDefault()})("keydown.Space",function(s){return o._toggle(),s.preventDefault()})},inputs:{recursive:[2,"cdkTreeNodeToggleRecursive","recursive",ee]},standalone:!0,features:[xe]});let i=e;return i})();var MP=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({});let i=e;return i})();function cte(i){return!!i._isNoopTreeKeyManager}var AP=(()=>{let e=class e extends Xc{get tabIndexInputBinding(){return this._tabIndexInputBinding}set tabIndexInputBinding(t){this._tabIndexInputBinding=t}_getTabindexAttribute(){return cte(this._tree._keyManager)?this.tabIndexInputBinding:this._tabindex}get disabled(){return this.isDisabled}set disabled(t){this.isDisabled=t}constructor(t,r,o){super(t,r),this.defaultTabIndex=0,this.tabIndexInputBinding=Number(o)||this.defaultTabIndex}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}};e.\u0275fac=function(r){return new(r||e)(b(J),b(Fl),gi("tabindex"))},e.\u0275dir=B({type:e,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],hostVars:5,hostBindings:function(r,o){r&1&&w("click",function(){return o._focusItem()}),r&2&&(Ci("tabindex",o._getTabindexAttribute()),ne("aria-expanded",o._getAriaExpanded())("aria-level",o.level+1)("aria-posinset",o._getPositionInSet())("aria-setsize",o._getSetSize()))},inputs:{tabIndexInputBinding:[2,"tabIndex","tabIndexInputBinding",t=>t==null?0:Lt(t)],disabled:[2,"disabled","disabled",ee]},outputs:{activation:"activation",expandedChange:"expandedChange"},exportAs:["matTreeNode"],standalone:!0,features:[me([{provide:Xc,useExisting:e}]),xe,X]});let i=e;return i})(),RP=(()=>{let e=class e extends Bv{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275dir=B({type:e,selectors:[["","matTreeNodeDef",""]],inputs:{when:[0,"matTreeNodeDefWhen","when"],data:[0,"matTreeNode","data"]},standalone:!0,features:[me([{provide:Bv,useExisting:e}]),X]});let i=e;return i})();var NP=(()=>{let e=class e extends jS{get level(){return this._level}set level(t){this._setLevelInput(t)}get indent(){return this._indent}set indent(t){this._setIndentInput(t)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275dir=B({type:e,selectors:[["","matTreeNodePadding",""]],inputs:{level:[2,"matTreeNodePadding","level",Lt],indent:[0,"matTreeNodePaddingIndent","indent"]},standalone:!0,features:[me([{provide:jS,useExisting:e}]),xe,X]});let i=e;return i})(),OP=(()=>{let e=class e{constructor(t,r){this.viewContainer=t,this._node=r}};e.\u0275fac=function(r){return new(r||e)(b(Ft),b(VS,8))},e.\u0275dir=B({type:e,selectors:[["","matTreeNodeOutlet",""]],standalone:!0,features:[me([{provide:jv,useExisting:e}])]});let i=e;return i})(),FP=(()=>{let e=class e extends Fl{constructor(){super(...arguments),this._nodeOutlet=void 0}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275cmp=F({type:e,selectors:[["mat-tree"]],viewQuery:function(r,o){if(r&1&&ve(OP,7),r&2){let a;K(a=Y())&&(o._nodeOutlet=a.first)}},hostAttrs:[1,"mat-tree"],exportAs:["matTree"],standalone:!0,features:[me([{provide:Fl,useExisting:e}]),X,P],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(r,o){r&1&&yi(0,0)},dependencies:[OP],styles:[".mat-tree{display:block;background-color:var(--mat-tree-container-background-color, var(--mat-app-surface))}.mat-tree-node,.mat-nested-tree-node{color:var(--mat-tree-node-text-color, var(--mat-app-on-surface));font-family:var(--mat-tree-node-text-font, var(--mat-app-body-large-font));font-size:var(--mat-tree-node-text-size, var(--mat-app-body-large-size));font-weight:var(--mat-tree-node-text-weight, var(--mat-app-body-large-weight))}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word;min-height:var(--mat-tree-node-min-height)}.mat-nested-tree-node{border-bottom-width:0}"],encapsulation:2});let i=e;return i})(),PP=(()=>{let e=class e extends BS{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275dir=B({type:e,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:[0,"matTreeNodeToggleRecursive","recursive"]},standalone:!0,features:[me([{provide:BS,useExisting:e}]),X]});let i=e;return i})();var LP=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({imports:[MP,De,De]});let i=e;return i})(),zv=class{constructor(e,n,t,r){this.transformFunction=e,this.getLevel=n,this.isExpandable=t,this.getChildren=r}_flattenNode(e,n,t,r){let o=this.transformFunction(e,n);if(t.push(o),this.isExpandable(o)){let a=this.getChildren(e);a&&(Array.isArray(a)?this._flattenChildren(a,n,t,r):a.pipe(pt(1)).subscribe(s=>{this._flattenChildren(s,n,t,r)}))}return t}_flattenChildren(e,n,t,r){e.forEach((o,a)=>{let s=r.slice();s.push(a!=e.length-1),this._flattenNode(o,n+1,t,s)})}flattenNodes(e){let n=[];return e.forEach(t=>this._flattenNode(t,0,n,[])),n}expandFlattenedNodes(e,n){let t=[],r=[];return r[0]=!0,e.forEach(o=>{let a=!0;for(let s=0;s<=this.getLevel(o);s++)a=a&&r[s];a&&t.push(o),this.isExpandable(o)&&(r[this.getLevel(o)+1]=n.isExpanded(o))}),t}},Hv=class extends js{get data(){return this._data.value}set data(e){this._data.next(e),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}constructor(e,n,t){super(),this._treeControl=e,this._treeFlattener=n,this._flattenedData=new Be([]),this._expandedData=new Be([]),this._data=new Be([]),t&&(this.data=t)}connect(e){return Ge(e.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe(re(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}};var Uv=class{constructor(e,n,t=0,r=!1,o=!0,a=!0){this.node=e;this.name=n;this.level=t;this.expandable=r;this.selectable=o;this.deselectable=a}loading=!1};var lf=class{constructor(e,n){this.model=e;this.config=n}childrenChange=new Be([]);get children(){return this.childrenChange.value}};var cf=class i{injector=x(ze);dataChange=new Be([]);configuration=[];init(e,n=null,t=null){return this.validateConfiguration(e),this.configuration=e,this.getList(null,n,t).pipe(re(r=>this.dataChange.next(r)))}loadChildren(e,n=null){e.node.children.length||(e.loading=!0,this.getList(e,n).pipe(Xi(()=>e.loading=!1)).subscribe(t=>{e.node.childrenChange.next(t),this.dataChange.next(this.dataChange.value)}))}search(e,n=null){this.getList(null,n,e).subscribe(t=>{this.dataChange.next(t)})}getList(e=null,n=null,t=null){let r=this.getContextualizedConfigs(e,n,t),o=r.map(a=>a.injectedService.getAll(a.variablesManager));return Yi(o).pipe(re(a=>{let s=[];for(let l=0;lo.injectedService.count(o.variablesManager).pipe(Ji()));Yi(r).subscribe(o=>{let a=o.reduce((s,l)=>s+l,0);e.expandable=a>0})}getContextualizedConfigs(e=null,n=null,t=null){let r=[],o=e?this.getNextConfigs(e.node.config):this.configuration,a={pageIndex:0,pageSize:999};for(let s of o){let l=this.getFilterByService(s,n),c=this.getServiceFilter(e,s,l,!!t);if(!c)continue;let d=new zi;d.set("variables",{filter:c,pagination:a}),d.set("config-filter",{filter:s.filter}),t&&d.set("natural-search",t);let p=this.injector.get(s.service);r.push({configuration:s,injectedService:p,variablesManager:d})}return r}toOrganizedSelection(e){let n=this.configuration.reduce((t,r)=>(r.selectableAtKey&&(t[r.selectableAtKey]=[]),t),{});for(let t of e)t.config.selectableAtKey&&n[t.config.selectableAtKey].push(t.model);return n}fromOrganizedSelection(e){if(!e)return[];let n=[];for(let t of Object.keys(e)){let r=this.getConfigurationBySelectableKey(t);if(r)for(let o of e[t])n.push(new lf(o,r))}return n}validateConfiguration(e){let n=[];for(let t of e)if(t.selectableAtKey){let r=n.indexOf(t.selectableAtKey);r===-1&&t.selectableAtKey&&n.push(t.selectableAtKey),r<-1&&console.warn("Invalid hierarchic configuration : selectableAtKey attribute should be unique")}}getNextConfigs(e){let n=this.configuration.findIndex(t=>t===e);return this.configuration.slice(n)}getServiceFilter(e,n,t=null,r=!1){let o={};if(e){if(!e.node.config.childrenRelationNames||!n.parentsRelationNames)return null;let s=Cw(e.node.config.childrenRelationNames,n.parentsRelationNames);if(!s.length)return null;o[s[0]]={have:{values:[e.node.model.id]}}}else{if(!n.parentsRelationNames)return t||{};r||n.parentsRelationNames.forEach(s=>{o[s]={empty:{}}})}let a={groups:[{conditions:[o]}]};return t&&a.groups.push(...t.groups),a}getFilterByService(e,n){if(!n||!e)return null;let t=n.find(r=>r.service===e.service);return t?t.filter:null}getConfigurationBySelectableKey(e){return this.configuration&&this.configuration.find(n=>n.selectableAtKey===e)||null}getOrCreateModelNode(e,n){return this.dataChange.value.find(r=>r.model.id===e.id&&r.model.__typename===e.__typename)||new lf(e,n)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=W({token:i,factory:i.\u0275fac,providedIn:"root"})};var jP=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],BP=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function ute(i,e){i&1&&(u(0,"span",3),ae(1,1),m())}function pte(i,e){i&1&&(u(0,"span",6),ae(1,2),m())}function mte(i,e){i&1&&(u(0,"span",3),ae(1,1),u(2,"span",8),pi(),u(3,"svg",9),T(4,"path",10),m()()())}function hte(i,e){i&1&&(u(0,"span",6),ae(1,2),m())}var fte='.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-outline-width);border-radius:var(--mdc-chip-container-shape-radius);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-outline-color, var(--mat-app-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mdc-chip-focus-outline-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-disabled-outline-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-app-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font, var(--mat-app-label-large-font));line-height:var(--mdc-chip-label-text-line-height, var(--mat-app-label-large-line-height));font-size:var(--mdc-chip-label-text-size, var(--mat-app-label-large-size));font-weight:var(--mdc-chip-label-text-weight, var(--mat-app-label-large-weight));letter-spacing:var(--mdc-chip-label-text-tracking, var(--mat-app-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mdc-chip-with-avatar-avatar-size);height:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-app-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.cdk-high-contrast-active .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-app-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius);width:var(--mdc-chip-with-icon-icon-size);height:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-app-on-surface))}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-app-on-secondary-container));--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-app-secondary-container));--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color, var(--mat-app-on-secondary-container));--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-app-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color, var(--mat-app-on-surface-variant));opacity:var(--mdc-chip-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color, var(--mat-app-on-secondary-container));opacity:var(--mdc-chip-selected-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-app-on-surface-variant));opacity:var(--mdc-chip-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-app-on-secondary-container));opacity:var(--mdc-chip-selected-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-app-on-surface))}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity)}.mat-mdc-chip-remove::after{background:var(--mat-chip-trailing-action-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-2px;bottom:-2px;left:6px;right:6px;border-radius:50%}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}';var zP=["*"],gte=".mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}",GS=new H("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),zS=new H("MatChipAvatar"),VP=new H("MatChipTrailingIcon"),HS=new H("MatChipRemove"),qS=new H("MatChip"),$v=(()=>{let e=class e{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(t){this._disabled=t}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(t,r){this._elementRef=t,this._parentChip=r,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this.tabIndex=-1,this._allowFocusWhenDisabled=!1,t.nativeElement.nodeName==="BUTTON"&&t.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(t){!this.disabled&&this.isInteractive&&this._isPrimary&&(t.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(t){(t.keyCode===13||t.keyCode===32)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(t.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}};e.\u0275fac=function(r){return new(r||e)(b(J),b(qS))},e.\u0275dir=B({type:e,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(r,o){r&1&&w("click",function(s){return o._handleClick(s)})("keydown",function(s){return o._handleKeydown(s)}),r&2&&(ne("tabindex",o._getTabindex())("disabled",o._getDisabledAttribute())("aria-disabled",o.disabled),se("mdc-evolution-chip__action--primary",o._isPrimary)("mdc-evolution-chip__action--presentational",!o.isInteractive)("mdc-evolution-chip__action--trailing",!o._isPrimary))},inputs:{isInteractive:"isInteractive",disabled:[2,"disabled","disabled",ee],tabIndex:[2,"tabIndex","tabIndex",t=>t==null?-1:Lt(t)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},standalone:!0,features:[xe]});let i=e;return i})(),HP=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=B({type:e,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:["role","img",1,"mat-mdc-chip-avatar","mdc-evolution-chip__icon","mdc-evolution-chip__icon--primary"],standalone:!0,features:[me([{provide:zS,useExisting:e}])]});let i=e;return i})();var UP=(()=>{let e=class e extends $v{constructor(){super(...arguments),this._isPrimary=!1}_handleClick(t){this.disabled||(t.stopPropagation(),t.preventDefault(),this._parentChip.remove())}_handleKeydown(t){(t.keyCode===13||t.keyCode===32)&&!this.disabled&&(t.stopPropagation(),t.preventDefault(),this._parentChip.remove())}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275dir=B({type:e,selectors:[["","matChipRemove",""]],hostAttrs:["role","button",1,"mat-mdc-chip-remove","mat-mdc-chip-trailing-icon","mat-mdc-focus-indicator","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],hostVars:1,hostBindings:function(r,o){r&2&&ne("aria-hidden",null)},standalone:!0,features:[me([{provide:HS,useExisting:e}]),X]});let i=e;return i})(),_te=0,US=(()=>{let e=class e{_hasFocus(){return this._hasFocusInternal}get value(){return this._value!==void 0?this._value:this._textElement.textContent.trim()}set value(t){this._value=t}get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(t){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,t)}constructor(t,r,o,a,s,l,c){this._changeDetectorRef=t,this._elementRef=r,this._ngZone=o,this._focusMonitor=a,this._globalRippleOptions=c,this._onFocus=new q,this._onBlur=new q,this.role=null,this._hasFocusInternal=!1,this.id=`mat-mdc-chip-${_te++}`,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this.removable=!0,this.highlighted=!1,this.disableRipple=!1,this.disabled=!1,this.removed=new $,this.destroyed=new $,this.basicChipAttrName="mat-basic-chip",this._rippleLoader=x(Pg),this._injector=x(ze),this._document=s,this._animationsDisabled=l==="NoopAnimations",this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){let t=this._elementRef.nativeElement;this._isBasicChip=t.hasAttribute(this.basicChipAttrName)||t.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=Ge(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!!(this.trailingIcon||this.removeIcon)}_handleKeydown(t){(t.keyCode===8&&!t.repeat||t.keyCode===46)&&(t.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(t){return this._getActions().find(r=>{let o=r._elementRef.nativeElement;return o===t||o.contains(t)})}_getActions(){let t=[];return this.primaryAction&&t.push(this.primaryAction),this.removeIcon&&t.push(this.removeIcon),this.trailingIcon&&t.push(this.trailingIcon),t}_handlePrimaryActionInteraction(){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{let r=t!==null;r!==this._hasFocusInternal&&(this._hasFocusInternal=r,r?this._onFocus.next({chip:this}):si(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})),{injector:this._injector}))})}};e.\u0275fac=function(r){return new(r||e)(b(Se),b(J),b(de),b(wi),b(pe),b(gt,8),b(Ua,8))},e.\u0275cmp=F({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(r,o,a){if(r&1&&(Ie(a,zS,5),Ie(a,VP,5),Ie(a,HS,5),Ie(a,zS,5),Ie(a,VP,5),Ie(a,HS,5)),r&2){let s;K(s=Y())&&(o.leadingIcon=s.first),K(s=Y())&&(o.trailingIcon=s.first),K(s=Y())&&(o.removeIcon=s.first),K(s=Y())&&(o._allLeadingIcons=s),K(s=Y())&&(o._allTrailingIcons=s),K(s=Y())&&(o._allRemoveIcons=s)}},viewQuery:function(r,o){if(r&1&&ve($v,5),r&2){let a;K(a=Y())&&(o.primaryAction=a.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(r,o){r&1&&w("keydown",function(s){return o._handleKeydown(s)}),r&2&&(Ci("id",o.id),ne("role",o.role)("aria-label",o.ariaLabel),Yt("mat-"+(o.color||"primary")),se("mdc-evolution-chip",!o._isBasicChip)("mdc-evolution-chip--disabled",o.disabled)("mdc-evolution-chip--with-trailing-action",o._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",o.leadingIcon)("mdc-evolution-chip--with-primary-icon",o.leadingIcon)("mdc-evolution-chip--with-avatar",o.leadingIcon)("mat-mdc-chip-with-avatar",o.leadingIcon)("mat-mdc-chip-highlighted",o.highlighted)("mat-mdc-chip-disabled",o.disabled)("mat-mdc-basic-chip",o._isBasicChip)("mat-mdc-standard-chip",!o._isBasicChip)("mat-mdc-chip-with-trailing-icon",o._hasTrailingIcon())("_mat-animation-noopable",o._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",ee],highlighted:[2,"highlighted","highlighted",ee],disableRipple:[2,"disableRipple","disableRipple",ee],disabled:[2,"disabled","disabled",ee]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],standalone:!0,features:[me([{provide:qS,useExisting:e}]),xe,P],ngContentSelectors:BP,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(r,o){r&1&&(Me(jP),T(0,"span",0),u(1,"span",1)(2,"span",2),M(3,ute,2,0,"span",3),u(4,"span",4),ae(5),T(6,"span",5),m()()(),M(7,pte,2,0,"span",6)),r&2&&(f(2),v("isInteractive",!1),f(),k(o.leadingIcon?3:-1),f(4),k(o._hasTrailingIcon()?7:-1))},dependencies:[$v],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-outline-width);border-radius:var(--mdc-chip-container-shape-radius);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-outline-color, var(--mat-app-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mdc-chip-focus-outline-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-disabled-outline-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-app-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font, var(--mat-app-label-large-font));line-height:var(--mdc-chip-label-text-line-height, var(--mat-app-label-large-line-height));font-size:var(--mdc-chip-label-text-size, var(--mat-app-label-large-size));font-weight:var(--mdc-chip-label-text-weight, var(--mat-app-label-large-weight));letter-spacing:var(--mdc-chip-label-text-tracking, var(--mat-app-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mdc-chip-with-avatar-avatar-size);height:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-app-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.cdk-high-contrast-active .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-app-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius);width:var(--mdc-chip-with-icon-icon-size);height:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, var(--mat-app-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-app-on-surface))}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-app-on-secondary-container));--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-app-secondary-container));--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color, var(--mat-app-on-secondary-container));--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-app-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color, var(--mat-app-on-surface-variant));opacity:var(--mdc-chip-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color, var(--mat-app-on-secondary-container));opacity:var(--mdc-chip-selected-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-app-on-surface-variant));opacity:var(--mdc-chip-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-app-on-secondary-container));opacity:var(--mdc-chip-selected-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-app-on-surface))}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity)}.mat-mdc-chip-remove::after{background:var(--mat-chip-trailing-action-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-app-on-secondary-container))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-2px;bottom:-2px;left:6px;right:6px;border-radius:50%}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let i=e;return i})();var WS=(()=>{let e=class e extends US{constructor(){super(...arguments),this._defaultOptions=x(GS,{optional:!0}),this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListHideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._selectable=!0,this._selected=!1,this.basicChipAttrName="mat-basic-chip-option",this.selectionChange=new $}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(t){this._selectable=t,this._changeDetectorRef.markForCheck()}get selected(){return this._selected}set selected(t){this._setSelectedState(t,!1,!0)}get ariaSelected(){return this.selectable?this.selected.toString():null}ngOnInit(){super.ngOnInit(),this.role="presentation"}select(){this._setSelectedState(!0,!1,!0)}deselect(){this._setSelectedState(!1,!1,!0)}selectViaInteraction(){this._setSelectedState(!0,!0,!0)}toggleSelected(t=!1){return this._setSelectedState(!this.selected,t,!0),this.selected}_handlePrimaryActionInteraction(){this.disabled||(this.focus(),this.selectable&&this.toggleSelected(!0))}_hasLeadingGraphic(){return this.leadingIcon?!0:!this._chipListHideSingleSelectionIndicator||this._chipListMultiple}_setSelectedState(t,r,o){t!==this.selected&&(this._selected=t,o&&this.selectionChange.emit({source:this,isUserInput:r,selected:this.selected}),this._changeDetectorRef.markForCheck())}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275cmp=F({type:e,selectors:[["mat-basic-chip-option"],["","mat-basic-chip-option",""],["mat-chip-option"],["","mat-chip-option",""]],hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-option"],hostVars:37,hostBindings:function(r,o){r&2&&(Ci("id",o.id),ne("tabindex",null)("aria-label",null)("aria-description",null)("role",o.role),se("mdc-evolution-chip",!o._isBasicChip)("mdc-evolution-chip--filter",!o._isBasicChip)("mdc-evolution-chip--selectable",!o._isBasicChip)("mat-mdc-chip-selected",o.selected)("mat-mdc-chip-multiple",o._chipListMultiple)("mat-mdc-chip-disabled",o.disabled)("mat-mdc-chip-with-avatar",o.leadingIcon)("mdc-evolution-chip--disabled",o.disabled)("mdc-evolution-chip--selected",o.selected)("mdc-evolution-chip--selecting",!o._animationsDisabled)("mdc-evolution-chip--with-trailing-action",o._hasTrailingIcon())("mdc-evolution-chip--with-primary-icon",o.leadingIcon)("mdc-evolution-chip--with-primary-graphic",o._hasLeadingGraphic())("mdc-evolution-chip--with-avatar",o.leadingIcon)("mat-mdc-chip-highlighted",o.highlighted)("mat-mdc-chip-with-trailing-icon",o._hasTrailingIcon()))},inputs:{selectable:[2,"selectable","selectable",ee],selected:[2,"selected","selected",ee]},outputs:{selectionChange:"selectionChange"},standalone:!0,features:[me([{provide:US,useExisting:e},{provide:qS,useExisting:e}]),xe,X,P],ngContentSelectors:BP,decls:10,vars:8,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","","role","option",3,"_allowFocusWhenDisabled"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"],[1,"cdk-visually-hidden",3,"id"],[1,"mdc-evolution-chip__checkmark"],["viewBox","-2 -3 30 30","focusable","false","aria-hidden","true",1,"mdc-evolution-chip__checkmark-svg"],["fill","none","stroke","currentColor","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-evolution-chip__checkmark-path"]],template:function(r,o){r&1&&(Me(jP),T(0,"span",0),u(1,"span",1)(2,"button",2),M(3,mte,5,0,"span",3),u(4,"span",4),ae(5),T(6,"span",5),m()()(),M(7,hte,2,0,"span",6),u(8,"span",7),y(9),m()),r&2&&(f(2),v("_allowFocusWhenDisabled",!0),ne("aria-selected",o.ariaSelected)("aria-label",o.ariaLabel)("aria-describedby",o._ariaDescriptionId),f(),k(o._hasLeadingGraphic()?3:-1),f(4),k(o._hasTrailingIcon()?7:-1),f(),v("id",o._ariaDescriptionId),f(),ge(o.ariaDescription))},dependencies:[$v],styles:[fte],encapsulation:2,changeDetection:0});let i=e;return i})();var bte=(()=>{let e=class e{get chipFocusChanges(){return this._getChipStream(t=>t._onFocus)}get chipDestroyedChanges(){return this._getChipStream(t=>t.destroyed)}get chipRemovedChanges(){return this._getChipStream(t=>t.removed)}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._syncChipsState()}get empty(){return!this._chips||this._chips.length===0}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(t){this._explicitRole=t}get focused(){return this._hasFocusedChip()}constructor(t,r,o){this._elementRef=t,this._changeDetectorRef=r,this._dir=o,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new q,this._defaultRole="presentation",this._disabled=!1,this.tabIndex=0,this._explicitRole=null,this._chipActions=new gr}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(t=>t._hasFocus())}_syncChipsState(){this._chips&&this._chips.forEach(t=>{t.disabled=this._disabled,t._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(t){this._originatesFromChip(t)&&this._keyManager.onKeydown(t)}_isValidIndex(t){return t>=0&&t{this.tabIndex=t,this._changeDetectorRef.markForCheck()})}}_getChipStream(t){return this._chips.changes.pipe(Ye(null),qe(()=>Ge(...this._chips.map(t))))}_originatesFromChip(t){let r=t.target;for(;r&&r!==this._elementRef.nativeElement;){if(r.classList.contains("mat-mdc-chip"))return!0;r=r.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(Ye(this._chips)).subscribe(t=>{let r=[];t.forEach(o=>o._getActions().forEach(a=>r.push(a))),this._chipActions.reset(r),this._chipActions.notifyOnChanges()}),this._keyManager=new so(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(t=>this._skipPredicate(t)),this.chipFocusChanges.pipe(ye(this._destroyed)).subscribe(({chip:t})=>{let r=t._getSourceAction(document.activeElement);r&&this._keyManager.updateActiveItem(r)}),this._dir?.change.pipe(ye(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t))}_skipPredicate(t){return!t.isInteractive||t.disabled}_trackChipSetChanges(){this._chips.changes.pipe(Ye(null),ye(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(ye(this._destroyed)).subscribe(t=>{let o=this._chips.toArray().indexOf(t.chip);this._isValidIndex(o)&&t.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=o)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let t=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),r=this._chips.toArray()[t];r.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():r.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}};e.\u0275fac=function(r){return new(r||e)(b(J),b(Se),b(vt,8))},e.\u0275cmp=F({type:e,selectors:[["mat-chip-set"]],contentQueries:function(r,o,a){if(r&1&&Ie(a,US,5),r&2){let s;K(s=Y())&&(o._chips=s)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(r,o){r&1&&w("keydown",function(s){return o._handleKeydown(s)}),r&2&&ne("role",o.role)},inputs:{disabled:[2,"disabled","disabled",ee],role:"role",tabIndex:[2,"tabIndex","tabIndex",t=>t==null?0:Lt(t)]},standalone:!0,features:[xe,P],ngContentSelectors:zP,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(r,o){r&1&&(Me(),u(0,"div",0),ae(1),m())},styles:[".mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0});let i=e;return i})(),$S=class{constructor(e,n){this.source=e,this.value=n}},vte={provide:_n,useExisting:$t(()=>QS),multi:!0},QS=(()=>{let e=class e extends bte{constructor(){super(...arguments),this._onTouched=()=>{},this._onChange=()=>{},this._defaultRole="listbox",this._defaultOptions=x(GS,{optional:!0}),this._multiple=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.compareWith=(t,r)=>t===r,this.required=!1,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this.change=new $,this._chips=void 0}get multiple(){return this._multiple}set multiple(t){this._multiple=t,this._syncListboxProperties()}get selected(){let t=this._chips.toArray().filter(r=>r.selected);return this.multiple?t:t[0]}get selectable(){return this._selectable}set selectable(t){this._selectable=t,this._syncListboxProperties()}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(t){this._hideSingleSelectionIndicator=t,this._syncListboxProperties()}get chipSelectionChanges(){return this._getChipStream(t=>t.selectionChange)}get chipBlurChanges(){return this._getChipStream(t=>t._onBlur)}get value(){return this._value}set value(t){this.writeValue(t),this._value=t}ngAfterContentInit(){this._pendingInitialValue!==void 0&&Promise.resolve().then(()=>{this._setSelectionByValue(this._pendingInitialValue,!1),this._pendingInitialValue=void 0}),this._chips.changes.pipe(Ye(null),ye(this._destroyed)).subscribe(()=>{this._syncListboxProperties()}),this.chipBlurChanges.pipe(ye(this._destroyed)).subscribe(()=>this._blur()),this.chipSelectionChanges.pipe(ye(this._destroyed)).subscribe(t=>{this.multiple||this._chips.forEach(r=>{r!==t.source&&r._setSelectedState(!1,!1,!1)}),t.isUserInput&&this._propagateChanges()})}focus(){if(this.disabled)return;let t=this._getFirstSelectedChip();t&&!t.disabled?t.focus():this._chips.length>0?this._keyManager.setFirstItemActive():this._elementRef.nativeElement.focus()}writeValue(t){this._chips?this._setSelectionByValue(t,!1):t!=null&&(this._pendingInitialValue=t)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_setSelectionByValue(t,r=!0){this._clearSelection(),Array.isArray(t)?t.forEach(o=>this._selectValue(o,r)):this._selectValue(t,r)}_blur(){this.disabled||setTimeout(()=>{this.focused||this._markAsTouched()})}_keydown(t){t.keyCode===9&&super._allowFocusEscape()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck()}_propagateChanges(){let t=null;Array.isArray(this.selected)?t=this.selected.map(r=>r.value):t=this.selected?this.selected.value:void 0,this._value=t,this.change.emit(new $S(this,t)),this._onChange(t),this._changeDetectorRef.markForCheck()}_clearSelection(t){this._chips.forEach(r=>{r!==t&&r.deselect()})}_selectValue(t,r){let o=this._chips.find(a=>a.value!=null&&this.compareWith(a.value,t));return o&&(r?o.selectViaInteraction():o.select()),o}_syncListboxProperties(){this._chips&&Promise.resolve().then(()=>{this._chips.forEach(t=>{t._chipListMultiple=this.multiple,t.chipListSelectable=this._selectable,t._chipListHideSingleSelectionIndicator=this.hideSingleSelectionIndicator,t._changeDetectorRef.markForCheck()})})}_getFirstSelectedChip(){return Array.isArray(this.selected)?this.selected.length?this.selected[0]:void 0:this.selected}_skipPredicate(t){return!t.isInteractive}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275cmp=F({type:e,selectors:[["mat-chip-listbox"]],contentQueries:function(r,o,a){if(r&1&&Ie(a,WS,5),r&2){let s;K(s=Y())&&(o._chips=s)}},hostAttrs:[1,"mdc-evolution-chip-set","mat-mdc-chip-listbox"],hostVars:11,hostBindings:function(r,o){r&1&&w("focus",function(){return o.focus()})("blur",function(){return o._blur()})("keydown",function(s){return o._keydown(s)}),r&2&&(Ci("tabIndex",o.disabled||o.empty?-1:o.tabIndex),ne("role",o.role)("aria-describedby",o._ariaDescribedby||null)("aria-required",o.role?o.required:null)("aria-disabled",o.disabled.toString())("aria-multiselectable",o.multiple)("aria-orientation",o.ariaOrientation),se("mat-mdc-chip-list-disabled",o.disabled)("mat-mdc-chip-list-required",o.required))},inputs:{multiple:[2,"multiple","multiple",ee],ariaOrientation:[0,"aria-orientation","ariaOrientation"],selectable:[2,"selectable","selectable",ee],compareWith:"compareWith",required:[2,"required","required",ee],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",ee],value:"value"},outputs:{change:"change"},standalone:!0,features:[me([vte]),xe,X,P],ngContentSelectors:zP,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(r,o){r&1&&(Me(),u(0,"div",0),ae(1),m())},styles:[gte],encapsulation:2,changeDetection:0});let i=e;return i})();var $P=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({providers:[Ha,{provide:GS,useValue:{separatorKeyCodes:[13]}}],imports:[De,fn,De]});let i=e;return i})();function Cte(i,e){if(i&1&&(u(0,"div",0),y(1),m()),i&2){let n=C();f(),ge(n.data.title)}}function xte(i,e){if(i&1){let n=z();u(0,"mat-list-item",1),w("click",function(){let r=A(n).$implicit,o=C();return o.selection=r,R(o.close())}),u(1,"a"),y(2),m()()}if(i&2){let n=e.$implicit;f(2),ge(n.display)}}var Gv=class i{data=x(Hi);dropdownRef=x(Or);renderedValue=new Be("");facets=this.data.configuration.facets;selection=null;getCondition(){return{}}close(){this.selection&&this.dropdownRef.close({condition:{},facet:this.selection})}isValid(){return!!this.selection}isDirty(){return!0}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["ng-component"]],standalone:!0,features:[P],decls:4,vars:1,consts:[[1,"dropdown-title","mat-body-2"],[3,"click"]],template:function(n,t){n&1&&(M(0,Cte,2,1,"div",0),u(1,"mat-nav-list"),He(2,xte,3,1,"mat-list-item",null,Ds),m()),n&2&&(k(t.data.title?0:-1),f(2),Ue(t.facets))},dependencies:[Sp,Lv,Pv],styles:[".mat-nav-list[_ngcontent-%COMP%]{padding:0}.dropdown-title[_ngcontent-%COMP%]{opacity:.7;padding:5px;font-variant:all-small-caps;font-size:18px}"]})};var wte=["input"];function Ste(i,e){if(i&1&&(u(0,"mat-label"),y(1),m()),i&2){let n=C();f(),ge(n.facet.display)}}function Ete(i,e){if(i&1&&(u(0,"mat-label"),y(1),m()),i&2){let n=C();f(),ge(n.placeholder)}}function Tte(i,e){i&1&&T(0,"mat-icon",4)}function Dte(i,e){if(i&1){let n=z();u(0,"button",7),w("click",function(){A(n);let r=C();return R(r.clear())}),T(1,"mat-icon",8),m()}}function kte(i,e){if(i&1){let n=z();u(0,"button",7),w("click",function(){A(n);let r=C();return R(r.clear())}),T(1,"mat-icon",9),m()}}var KS=class{isErrorState(e){return!!e&&e.invalid}};function Ite(i){return()=>i.isValid()?null:{component:!0}}var qv=class i{element=x(J);dropdownService=x(xb);injector=x(ra);ripple;input;placeholder;searchFieldName="search";selection=null;facets;dropdownTitle="";selectionChange=new $;cleared=new $;facet=null;formCtrl=new Xe(null);errorMatcher=new KS;dropdownRef=null;dropdownComponentRef=null;minLength=5;length=this.minLength;neutralizeDropdownOpening=!1;focus(){this.neutralizeDropdownOpening=!0,this.input.nativeElement.focus(),this.neutralizeDropdownOpening=!1}ngOnChanges(){if(!this.facets&&this.selection)setTimeout(()=>this.clear());else if(this.facets&&this.selection)if(this.facet=yb(this.facets,this.selection),this.isDropdown()){let e=this.createComponent(this.facet);this.formCtrl.setValidators([Ite(e)]),e.renderedValue.subscribe(n=>{this.formCtrl.setValue(n)})}else this.isFlag()?this.formCtrl.setValue(""):this.selection&&this.selection.field===this.searchFieldName&&this.selection.condition.like?this.formCtrl.setValue(""+this.selection.condition.like.value):setTimeout(()=>this.clear())}ngOnInit(){this.input.nativeElement.addEventListener("focus",()=>{this.openDropdown()}),this.input.nativeElement.addEventListener("keyup",()=>{this.dropdownRef&&this.formCtrl.value!==""&&this.dropdownRef.close()}),this.placeholder||(this.placeholder=$localize`Recherche`);let e=(this.facet?this.facet.display.length:this.placeholder.length)*.66;this.length=Math.max(this.minLength,Math.ceil(e))}ngOnDestroy(){this.dropdownComponentRef&&this.dropdownComponentRef.destroy()}search(e){e.stopPropagation(),e.preventDefault(),this.formCtrl.value&&(this.isDropdown()||this.formCtrl.valid&&this.formCtrl.dirty&&this.selectionChange.emit(this.getSelection({like:{value:this.formCtrl.value}})))}clear(){this.neutralizeDropdownOpening=!0,setTimeout(()=>this.neutralizeDropdownOpening=!1),this.facet=null,this.selection=null,this.formCtrl.setValue(null),this.cleared.emit(this)}openDropdown(){this.dropdownRef||this.neutralizeDropdownOpening||(this.launchRipple(),!this.facet&&!this.formCtrl.value?this.openFacetSelectorDropdown(this.dropdownTitle):this.openTypeDropdown())}isDropdown(){return!!(this.facet&&this.facet.component)}isFlag(){return!!(this.facet&&this.facet.condition)}createComponent(e){this.dropdownComponentRef&&this.dropdownComponentRef.destroy();let t={condition:this.selection?this.selection.condition:null,configuration:e.configuration},r=ag(this.createProviders(t),this.injector);return this.dropdownComponentRef=ED(e.component,{environmentInjector:r}),this.dropdownComponentRef.instance}createProviders(e){return[{provide:Or,useValue:null},{provide:Hi,useValue:e}]}launchRipple(){this.ripple.launch({persistent:!0,centered:!0}).fadeOut()}openFacetSelectorDropdown(e){if(!this.facets||this.facets&&!this.facets.length)return;let n={condition:{},title:e,configuration:{facets:this.facets}},t=this.createProviders(n);this.dropdownRef=this.dropdownService.open(Gv,this.element,t,!1),this.dropdownRef.closed.subscribe(r=>{this.dropdownRef=null,r!==void 0&&(r.facet?this.setFacet(r.facet):r.condition&&this.setValue(r))})}openTypeDropdown(){if(!this.isDropdown())return;let e=this.facet,n={condition:this.selection?this.selection.condition:null,configuration:e.configuration},t=this.createProviders(n),r=e.component;this.dropdownRef=this.dropdownService.open(r,this.element,t,e.showValidateButton!==void 0?e.showValidateButton:!0),this.dropdownRef.closed.subscribe(o=>{this.dropdownRef=null,o!==void 0&&this.setValue(o)})}setFacet(e){this.facet=e,this.isDropdown()?this.openTypeDropdown():this.isFlag()?this.setValue({condition:e.condition}):this.input.nativeElement.focus()}setValue(e){this.facet&&this.selectionChange.emit(this.getSelection(e.condition))}getSelection(e){let n={field:this.facet?this.facet.field:this.searchFieldName,condition:e};return this.facet?.name&&(n.name=this.facet.name),n}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["natural-input"]],viewQuery:function(n,t){if(n&1&&(ve(Fi,7),ve(wte,7)),n&2){let r;K(r=Y())&&(t.ripple=r.first),K(r=Y())&&(t.input=r.first)}},hostBindings:function(n,t){n&1&&w("focus",function(){return t.focus()})},inputs:{placeholder:"placeholder",searchFieldName:"searchFieldName",selection:"selection",facets:"facets",dropdownTitle:"dropdownTitle"},outputs:{selectionChange:"selectionChange",cleared:"cleared"},standalone:!0,features:[Ne,P],decls:11,vars:10,consts:[["field",""],["input",""],["matRipple","",3,"click"],["autocomplete","off","matInput","","type","text",3,"blur","keydown.enter","errorStateMatcher","formControl","readonly"],["naturalIcon","search","matIconPrefix",""],["mat-icon-button","","matIconSuffix",""],[1,"hide"],["mat-icon-button","","matIconSuffix","",3,"click"],["naturalIcon","close"],["naturalIcon","undo"]],template:function(n,t){if(n&1){let r=z();u(0,"mat-form-field",2,0),w("click",function(){return A(r),R(!t.selection&&!(t.facet&&!t.selection)?t.openDropdown():null)}),M(2,Ste,2,1,"mat-label")(3,Ete,2,1,"mat-label"),u(4,"input",3,1),w("blur",function(a){return A(r),R(t.search(a))})("keydown.enter",function(a){return A(r),R(t.search(a))}),m(),M(6,Tte,1,0,"mat-icon",4)(7,Dte,2,0,"button",5)(8,kte,2,0,"button",5),m(),u(9,"div",6),y(10),m()}n&2&&(f(2),k(t.facet?2:-1),f(),k(t.facet?-1:3),f(),v("errorStateMatcher",t.errorMatcher)("formControl",t.formCtrl)("readonly",t.isDropdown()&&!!t.selection||t.isFlag()),ne("size",t.length),f(2),k(!t.facet&&!t.selection?6:-1),f(),k(t.selection?7:-1),f(),k(t.facet&&!t.selection?8:-1),f(2),ge(t.formCtrl.value?t.formCtrl.value:t.facet?t.facet.display:t.placeholder))},dependencies:[at,mt,_t,Bs,xr,fn,Fi,zt,Bt,$e,qt,We,it,st,It,wt,Mt,we,li],styles:["[_nghost-%COMP%]{display:flex;position:relative;flex-direction:column;border-top-right-radius:4px;border-top-left-radius:4px;overflow:hidden}[_nghost-%COMP%] .hide[_ngcontent-%COMP%]{margin:0 50px 0 10px;height:0;color:transparent;font-size:inherit;font-family:Roboto,Helvetica Neue,sans-serif;white-space:nowrap}"]})};var Mte=["newValueInput"];function Ote(i,e){if(i&1){let n=z();u(0,"natural-input",3),w("cleared",function(){let r=A(n).$index,o=C();return R(o.removeInput(r))})("selectionChange",function(r){let o=A(n).$index,a=C();return R(a.updateInput(r,o))}),m()}if(i&2){let n=e.$implicit,t=C();v("facets",t.facets)("selection",n)}}var Wv=class i{newValueInput;dropdownTitle="";placeholder;facets;selectionChange=new $;innerSelections=[];set selections(e){this.innerSelections=Jr(e)}updateInput(e,n){this.innerSelections[n]=e,this.selectionChange.emit(this.innerSelections)}addInput(e){this.newValueInput.clear(),this.innerSelections.push(e),this.selectionChange.emit(this.innerSelections)}removeInput(e){this.innerSelections.splice(e,1),this.selectionChange.emit(this.innerSelections)}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["natural-group"]],viewQuery:function(n,t){if(n&1&&ve(Mte,5),n&2){let r;K(r=Y())&&(t.newValueInput=r.first)}},inputs:{dropdownTitle:"dropdownTitle",placeholder:"placeholder",facets:"facets",selections:"selections"},outputs:{selectionChange:"selectionChange"},standalone:!0,features:[P],decls:4,vars:3,consts:[["newValueInput",""],[3,"facets","selection"],["tabIndex","10","cdkFocusInitial","",3,"selectionChange","facets","placeholder","dropdownTitle"],[3,"cleared","selectionChange","facets","selection"]],template:function(n,t){if(n&1){let r=z();He(0,Ote,1,2,"natural-input",1,Ds),u(2,"natural-input",2,0),w("selectionChange",function(a){return A(r),R(t.addInput(a))}),m()}n&2&&(Ue(t.innerSelections),f(2),v("facets",t.facets)("placeholder",t.placeholder)("dropdownTitle",t.dropdownTitle))},dependencies:[qv],styles:["[_nghost-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap}[_nghost-%COMP%] natural-input[_ngcontent-%COMP%]{display:inline-flex;flex:auto;margin-right:10px;margin-bottom:10px}[_nghost-%COMP%] natural-input[_ngcontent-%COMP%]:last-of-type{flex:1;min-width:250px}"]})};var Ate=(i,e)=>({mobile:i,hasMultipleGroups:e});function Rte(i,e){if(i&1){let n=z();u(0,"button",9),w("click",function(){A(n);let r=C().$index,o=C();return R(o.removeGroup(r))}),T(1,"mat-icon",10),m()}}function Nte(i,e){i&1&&T(0,"mat-divider")}function Fte(i,e){if(i&1){let n=z();u(0,"div",6)(1,"natural-group",7),w("selectionChange",function(r){let o=A(n).$index,a=C();return R(a.updateGroup(r,o))}),m(),u(2,"div",2),M(3,Rte,2,0,"button",8),m()(),M(4,Nte,1,0,"mat-divider")}if(i&2){let n=e.$implicit,t=e.$index,r=e.$count,o=C();f(),v("facets",o.facets)("placeholder",o.placeholder)("selections",n)("dropdownTitle",o.dropdownTitle),f(2),k(o.innerSelections.length>1?3:-1),f(),k(t!==r-1?4:-1)}}function Pte(i,e){if(i&1){let n=z();u(0,"button",11),w("click",function(){A(n);let r=C();return R(r.addGroup())}),T(1,"mat-icon",12),m()}}var Da=class i{breakpointObserver=x(vr);placeholder=$localize`Rechercher`;facets=[];multipleGroups=!1;dropdownTitle="";selectionChange=new $;innerSelections=[[]];set selections(e){this.innerSelections=e?.[0]?Jr(e):[[]]}isMobile=this.breakpointObserver.observe($r.XSmall).pipe(re(e=>e.matches));ngOnChanges(){this.facets||(this.facets=[])}updateGroup(e,n){for(let t=0;t{let e;e=$localize`:␟bd65d2839cfd8227f86b0b86d54c60996aa45eb3␟7212027413845572823:Ajouter un groupe`;let n;n=$localize`:␟544712c95235b75b3adeb737b44273acbd5b1373␟7476112743504592464:Annuler la recherche`;let t;return t=$localize`:␟3e790ac9758c6948b0240ebef37a84e33ace5163␟1292721718016522485:Supprimer ce groupe`,[[1,"natural-search",3,"ngClass"],[1,"groupsWrapper"],[1,"endOfRowButton"],["mat-icon-button","","matTooltip",e],["mat-icon-button","","matTooltip",n,1,"clear-button",3,"click"],["naturalIcon","close"],[1,"groupWrapper"],[3,"selectionChange","facets","placeholder","selections","dropdownTitle"],["mat-icon-button","","matTooltip",t],["mat-icon-button","","matTooltip",t,3,"click"],["naturalIcon","remove"],["mat-icon-button","","matTooltip",e,3,"click"],["naturalIcon","add"]]},template:function(n,t){n&1&&(u(0,"div",0),te(1,"async"),u(2,"div",1),He(3,Fte,5,6,null,null,Ds),m(),u(5,"div",2),M(6,Pte,2,0,"button",3),u(7,"button",4),w("click",function(){return t.clear()}),T(8,"mat-icon",5),m()()()),n&2&&(v("ngClass",Md(4,Ate,ie(1,2,t.isMobile),t.innerSelections.length>1)),f(3),Ue(t.innerSelections),f(3),k(t.multipleGroups?6:-1))},dependencies:[Pe,_r,Ms,Wv,we,li,ln,sn,It,wt,Mt,xp,Fv],styles:[".natural-search[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:flex-end}.natural-search[_ngcontent-%COMP%] .groupsWrapper[_ngcontent-%COMP%]{display:flex;flex:1;flex-direction:column;min-width:0}.natural-search[_ngcontent-%COMP%] .groupWrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-bottom:10px;min-width:0}.natural-search[_ngcontent-%COMP%] .groupWrapper[_ngcontent-%COMP%] natural-group[_ngcontent-%COMP%]{flex:1;max-width:100%}.natural-search[_ngcontent-%COMP%] .groupWrapper[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}.natural-search[_ngcontent-%COMP%] .endOfRowButton[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;margin-bottom:15px;height:53px}.natural-search[_ngcontent-%COMP%] mat-divider[_ngcontent-%COMP%]{margin:-10px 0 10px}.natural-search.mobile[_ngcontent-%COMP%] .clear-button[_ngcontent-%COMP%]{display:none}.natural-search.mobile.hasMultipleGroups[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch}.natural-search.mobile.hasMultipleGroups[_ngcontent-%COMP%] .endOfRowButton[_ngcontent-%COMP%]{flex-direction:row-reverse;margin-bottom:0}"]})};var Lte=(i,e)=>e.model.id,Vte=i=>({leaf:i});function jte(i,e){i&1&&T(0,"mat-progress-spinner",4),i&2&&v("diameter",36)}function Bte(i,e){i&1&&T(0,"mat-progress-spinner",15),i&2&&v("diameter",24)("strokeWidth",5)}function zte(i,e){if(i&1&&T(0,"mat-icon",16),i&2){let n=C(2).$implicit,t=C();v("naturalIcon",t.treeControl.isExpanded(n)?"expand_more":"chevron_right")}}function Hte(i,e){if(i&1){let n=z();u(0,"button",14),w("click",function(){A(n);let r=C().$implicit,o=C();return R(o.loadChildren(r))}),M(1,Bte,1,2,"mat-progress-spinner",15)(2,zte,1,1,"mat-icon",16),m()}if(i&2){let n=C().$implicit;ne("aria-label","toggle "+n.name),f(),k(n.loading?1:-1),f(),k(n.loading?-1:2)}}function Ute(i,e){if(i&1&&T(0,"mat-icon",13),i&2){let n=C().$implicit;v("naturalIcon",n.node.config.icon)}}function $te(i,e){if(i&1){let n=z();u(0,"mat-tree-node",10),M(1,Hte,3,3,"button",11),u(2,"mat-checkbox",12),w("change",function(){let r=A(n).$implicit,o=C();return R(o.toggleFlatNode(r))}),M(3,Ute,1,1,"mat-icon",13),u(4,"span"),y(5),m()()()}if(i&2){let n=e.$implicit,t=C();v("ngClass",Ur(6,Vte,!n.expandable)),f(),k(n.expandable?1:-1),f(),v("checked",t.flatNodesSelection.isSelected(n))("disabled",!t.isNodeTogglable(n)),f(),k(n.node.config.icon?3:-1),f(2),ge(n.name)}}function Gte(i,e){if(i&1&&T(0,"mat-icon",18),i&2){let n=C().$implicit;v("naturalIcon",n.config.icon)}}function qte(i,e){if(i&1){let n=z();u(0,"mat-chip-option",17),w("removed",function(){let r=A(n).$implicit,o=C();return R(o.unselectModelNode(r))}),M(1,Gte,1,1,"mat-icon",18),y(2),u(3,"button",19),T(4,"mat-icon",20),m()()}if(i&2){let n=e.$implicit;v("removable",!0)("selectable",!1),f(),k(n.config.icon?1:-1),f(),ue(" ",n.model.name||n.model.fullName," ")}}function Wte(i,e){i&1&&(u(0,"p",9),fe(1,0),m())}function Qte(i,e){i&1&&(u(0,"div"),fe(1,1),m())}var Pl=class i{destroyRef=x(_i);hierarchicSelectorService=x(cf);displayWith;config;multiple=!1;selected={};allowUnselect=!0;filters;searchFacets=[];searchSelections=[];searchSelectionChange=new $;selectedNodes=[];selectionChange=new $;flatNodesSelection;treeControl;treeFlattener;dataSource;loading=!1;flatNodeMap=new Map;ngOnChanges(e){e.selected&&!e.selected.firstChange&&this.updateInnerSelection(this.selected),e.filters&&!e.filters.firstChange&&this.loadRoots()}ngOnInit(){this.flatNodesSelection=new On(this.multiple),this.treeFlattener=new zv(this.transformer(),this.getLevel(),this.isExpandable(),this.getChildren()),this.treeControl=new Vv(this.getLevel(),this.isExpandable()),this.dataSource=new Hv(this.treeControl,this.treeFlattener),this.hierarchicSelectorService.dataChange.pipe(ht(this.destroyRef)).subscribe(n=>this.dataSource.data=n);let e;this.searchSelections.some(n=>n.length)&&(e={filter:bl(this.searchFacets,this.searchSelections)}),this.loadRoots(e),this.updateInnerSelection(this.selected)}toggleFlatNode(e){this.multiple?this.flatNodesSelection.isSelected(e)?this.unselectFlatNode(e):this.selectFlatNode(e):this.multiple||(this.flatNodesSelection.isSelected(e)?this.unselectSingleFlatNode():this.selectSingleFlatNode(e))}unselectModelNode(e){let n=this.getFlatNode(e);n?this.unselectFlatNode(n):(this.removeModelNode(e),this.updateSelection(this.selectedNodes))}isNodeTogglable(e){return this.isNodeSelected(e.node)?e.deselectable:e.selectable}getDisplayFn(e){return e.displayWith?e.displayWith:this.displayWith?this.displayWith:n=>n?n.fullName||n.name:""}loadChildren(e){this.treeControl.isExpanded(e)&&this.hierarchicSelectorService.loadChildren(e,this.filters)}getChildren(){return e=>e.childrenChange}transformer(){return(e,n)=>this.getOrCreateFlatNode(e,n)}getLevel(){return e=>e.level}isExpandable(){return e=>e.expandable}getOrCreateFlatNode(e,n){let t=this.getFlatNode(e);return t||this.createFlatNode(e,n)}search(e){if(this.searchSelectionChange.emit(e),e.some(n=>n.length)){let n={filter:bl(this.searchFacets,e)};this.hierarchicSelectorService.search(n,this.filters)}else this.loadRoots()}loadRoots(e){this.loading=!0,this.flatNodeMap=new Map,this.hierarchicSelectorService.init(this.config,this.filters,e||null).pipe(Xi(()=>this.loading=!1)).subscribe()}updateInnerSelection(e){this.selectedNodes=this.hierarchicSelectorService.fromOrganizedSelection(e),this.flatNodesSelection.clear();for(let n of this.selectedNodes){let t=this.getFlatNode(n);t&&this.flatNodesSelection.select(t)}}unselectFlatNode(e){this.flatNodesSelection.deselect(e),this.removeModelNode(e.node),this.updateSelection(this.selectedNodes)}removeModelNode(e){let n=this.getMapKey(e.model),t=this.selectedNodes.findIndex(r=>this.getMapKey(r.model)===n);this.selectedNodes.splice(t,1)}selectFlatNode(e){this.flatNodesSelection.select(e),this.selectedNodes.push(e.node),this.updateSelection(this.selectedNodes)}selectSingleFlatNode(e){this.flatNodesSelection.clear(),this.flatNodesSelection.select(e),this.selectedNodes=[e.node],this.updateSelection(this.selectedNodes)}unselectSingleFlatNode(){this.flatNodesSelection.clear(),this.selectedNodes=[],this.updateSelection(this.selectedNodes)}updateSelection(e){let n=this.hierarchicSelectorService.toOrganizedSelection(e);WR(this.selected,n),this.selectionChange.emit(n)}isNodeSelected(e){let n=this.getMapKey(e.model);return this.selectedNodes.some(t=>this.getMapKey(t.model)===n)}getFlatNode(e){let n=this.getMapKey(e.model);return this.flatNodeMap.get(n)||null}createFlatNode(e,n){let t=this.getMapKey(e.model),r=this.getDisplayFn(e.config)(e.model),o=!1,a=e.config.isSelectableCallback?e.config.isSelectableCallback(e.model):!0,s=!!e.config.selectableAtKey&&a,l=new Uv(e,r,n,o,s);return this.hierarchicSelectorService.countItems(l,this.filters),this.isNodeSelected(e)&&(this.allowUnselect||(l.deselectable=!1),this.flatNodesSelection.select(l)),this.flatNodeMap.set(t,l),l}getMapKey(e){return e.__typename+"-"+e.id}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["natural-hierarchic-selector"]],inputs:{displayWith:"displayWith",config:"config",multiple:"multiple",selected:"selected",allowUnselect:"allowUnselect",filters:"filters",searchFacets:"searchFacets",searchSelections:"searchSelections"},outputs:{searchSelectionChange:"searchSelectionChange",selectionChange:"selectionChange"},standalone:!0,features:[me([cf]),Ne,P],decls:11,vars:9,consts:()=>{let e;e=$localize`:␟d43306cafe2741ad997e5a0c2f8bc166a0ec0f48␟5242404308597772328:Aucune sélection`;let n;return n=$localize`:␟dd6839133282aa13835f301df1cae5bc06cef85f␟8332478813279888013:Aucun résultat`,[e,n,[3,"selectionChange","facets","selections"],[1,"body"],["mode","indeterminate",2,"margin","10px",3,"diameter"],[3,"dataSource","treeControl"],["matTreeNodePadding","",3,"ngClass",4,"matTreeNodeDef"],["aria-orientation","vertical",1,"mat-mdc-chip-set-stacked"],[3,"removable","selectable"],[1,"mat-body","nat-padding-horizontal"],["matTreeNodePadding","",3,"ngClass"],["mat-icon-button","","matTreeNodeToggle",""],[2,"margin-right","10px",3,"change","checked","disabled"],[2,"margin-right","10px",3,"naturalIcon"],["mat-icon-button","","matTreeNodeToggle","",3,"click"],["mode","indeterminate",3,"diameter","strokeWidth"],[3,"naturalIcon"],[3,"removed","removable","selectable"],["matChipAvatar","",3,"naturalIcon"],["matChipRemove",""],["naturalIcon","cancel"]]},template:function(n,t){n&1&&(u(0,"div")(1,"natural-search",2),w("selectionChange",function(o){return t.search(o)}),m()(),u(2,"div",3),M(3,jte,1,1,"mat-progress-spinner",4),u(4,"mat-tree",5),M(5,$te,6,8,"mat-tree-node",6),m(),u(6,"mat-chip-listbox",7),He(7,qte,5,4,"mat-chip-option",8,Lte,!1,Wte,2,0,"p",9),m()(),M(10,Qte,2,0,"div")),n&2&&(Gt("margin-bottom",20,"px"),f(),v("facets",t.searchFacets)("selections",t.searchSelections),f(2),k(t.loading?3:-1),f(),v("dataSource",t.dataSource)("treeControl",t.treeControl),f(3),Ue(t.selectedNodes),f(3),k(!t.loading&&!t.dataSource.data.length?10:-1))},dependencies:[Da,Pe,_r,Ta,Ea,LP,RP,NP,PP,FP,AP,we,li,It,wt,Mt,Ar,Pn,$P,HP,QS,WS,UP],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] ul[_ngcontent-%COMP%], [_nghost-%COMP%] li[_ngcontent-%COMP%]{-webkit-margin-before:0;-webkit-margin-after:0;list-style-type:none}[_nghost-%COMP%] mat-icon[_ngcontent-%COMP%]{width:18px;height:18px;font-size:18px}[_nghost-%COMP%] .mat-tree-node.leaf[_ngcontent-%COMP%]{margin-left:48px}[_nghost-%COMP%] .body[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between}[_nghost-%COMP%] .body[_ngcontent-%COMP%] mat-tree[_ngcontent-%COMP%]{flex:66}[_nghost-%COMP%] .body[_ngcontent-%COMP%] mat-chip-listbox[_ngcontent-%COMP%]{flex:33}[_nghost-%COMP%] mat-tree[_ngcontent-%COMP%]{flex-shrink:0}[_nghost-%COMP%] mat-chip-listbox[_ngcontent-%COMP%]{margin-left:10px}"]})};var Kte=()=>({});function Yte(i,e){if(i&1&&(u(0,"mat-option",4),y(1),m()),i&2){let n=e.$implicit;v("value",n.key),f(),ue(" ",n.label," ")}}function Xte(i,e){if(i&1){let n=z();u(0,"natural-hierarchic-selector",6),w("selectionChange",function(r){A(n);let o=C();return R(o.selectionChange(r))}),m()}if(i&2){let n=C();v("config",n.configuration.config)("filters",n.configuration.filters)("multiple",!0)("selected",n.valueCtrl.value||Xt(4,Kte))}}var Ip=class i extends Ep{getCondition(){if(!this.isValid())return{};let e=this.valueCtrl.value?.[this.configuration.key].map(n=>n.id)??[];return this.operatorKeyToCondition(this.operatorCtrl.value,e)}reloadValue(e){if(!e.have)return Ht;let n=e.have.values,t=new zi;return t.set("a",{filter:{groups:[{conditions:[{id:{in:{values:n}}}]}]}}),this.configuration.service.getAll(t).pipe(re(r=>{let o={};return o[this.configuration.key]=r.items,this.noEmptySelection(o)}))}renderValueWithoutOperator(){let e=this.valueCtrl.value?.[this.configuration.key];return e?e.map(n=>n.fullName||n.name).join(", "):""}selectionChange(e){this.valueCtrl.setValue(this.noEmptySelection(e)),this.valueCtrl.markAsDirty()}noEmptySelection(e){return e[this.configuration.key].length?e:null}static \u0275fac=(()=>{let e;return function(t){return(e||(e=Te(i)))(t||i)}})();static \u0275cmp=F({type:i,selectors:[["ng-component"]],standalone:!0,features:[X,P],decls:8,vars:4,consts:()=>{let e;return e=$localize`:Mathematical operator < > =␟5303b7a3dba72e7b2b83d54ecffbe9da76edaca3␟725374975979979308:Opérateur`,[e,[3,"formGroup"],[2,"max-width","7em","margin-right","1em"],["panelWidth","",3,"formControl","required"],[3,"value"],[2,"margin-right","20px",3,"config","filters","multiple","selected"],[2,"margin-right","20px",3,"selectionChange","config","filters","multiple","selected"]]},template:function(n,t){n&1&&(u(0,"form",1)(1,"mat-form-field",2)(2,"mat-label"),fe(3,0),m(),u(4,"mat-select",3),He(5,Yte,2,2,"mat-option",4,Tt),m()(),M(7,Xte,1,5,"natural-hierarchic-selector",5),m()),n&2&&(v("formGroup",t.form),f(4),v("formControl",t.operatorCtrl)("required",!0),f(),Ue(t.operators),f(2),k(t.requireValueCtrl?7:-1))},dependencies:[$e,go,We,Rt,Zi,it,st,bt,at,mt,_t,Sr,wr,Pi,Li,Pl],encapsulation:2})};function Jte(i,e){if(i&1&&(u(0,"mat-error"),y(1),m()),i&2){let n=C();f(),yD("",n.render(n.fromCtrl.value)," > ",n.render(n.toCtrl.value),"")}}function Zte(i,e){if(i&1&&(u(0,"mat-error"),y(1),m()),i&2){let n=C();f(),ue("< ",n.configuration.min,"")}}function eie(i,e){if(i&1&&(u(0,"mat-error"),y(1),m()),i&2){let n=C();f(),ue("> ",n.configuration.max,"")}}function tie(i,e){i&1&&(u(0,"mat-error"),y(1,"*"),m())}function iie(i,e){if(i&1&&(u(0,"mat-error"),y(1),m()),i&2){let n=C();f(),ue(" < ",n.configuration.min,"")}}function nie(i,e){if(i&1&&(u(0,"mat-error"),y(1),m()),i&2){let n=C();f(),ue(" > ",n.configuration.max,"")}}function rie(i,e){i&1&&(u(0,"mat-error"),y(1,"*"),m())}var YS=class{isErrorState(e,n){return n&&n.invalid&&(n.value.to||n.value.from)||e?.invalid}};function GP(i,e){let n=i.get(e);return n?n.value:null}function oie(i){return e=>{let n=GP(e,"from"),t=GP(e,"to");return n&&t&&i.compareDate(n,t)>0?{toGreaterThanFrom:!0}:null}}var df=class i{dateAdapter=x(hi);dateFormats=x(mo);renderedValue=new Be("");configuration;matcher=new YS;fromCtrl=new Xe(null);toCtrl=new Xe(null);form=new Pt({from:this.fromCtrl,to:this.toCtrl});defaults={min:null,max:null};constructor(){let e=x(Hi);this.configuration=N(N({},this.defaults),e.configuration),Ge(this.fromCtrl.valueChanges,this.toCtrl.valueChanges).subscribe(()=>{this.renderedValue.next(this.getRenderedValue())}),this.initValidators(),this.reloadCondition(e.condition)}getCondition(){let e=ju(this.dateAdapter,this.fromCtrl.value),n=ju(this.dateAdapter,this.toCtrl.value);return e&&n?{between:{from:e,to:n}}:{}}isValid(){return this.form.valid}isDirty(){return this.form.dirty}reloadCondition(e){if(!e)return;let n={from:null,to:null};e.between&&(n.from=this.dateAdapter.parse(e.between.from,null),n.to=this.dateAdapter.parse(e.between.to,null)),this.form.setValue(n)}initValidators(){let e=[tt.required];this.configuration.min&&e.push(Eb(this.dateAdapter,this.configuration.min)),this.configuration.max&&e.push(Tb(this.dateAdapter,this.configuration.max)),this.fromCtrl.setValidators(e),this.toCtrl.setValidators(e),this.form.setValidators([oie(this.dateAdapter)])}render(e){return e?this.dateAdapter.format(e,this.dateFormats.display.dateInput):""}getRenderedValue(){let e=this.render(this.fromCtrl.value),n=this.render(this.toCtrl.value);return e&&n?e+" - "+n:""}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["ng-component"]],standalone:!0,features:[P],decls:18,vars:20,consts:()=>{let e;e=$localize`:␟6c8ece7f659c7cd21f116307a736e5f34efa07d7␟7826820431635283594:De`;let n;return n=$localize`:␟fae3d83e162f3eacd1ef4195de37f505bddb9ccd␟3245184823025180727:à`,[["from",""],["to",""],[3,"formGroup"],["matInput","","placeholder",e,3,"matDatepicker","formControl","errorStateMatcher","min","max"],["matIconSuffix","",3,"for"],["matInput","","placeholder",n,3,"matDatepicker","formControl","errorStateMatcher","min","max"]]},template:function(n,t){if(n&1&&(u(0,"form",2)(1,"mat-form-field"),T(2,"input",3)(3,"mat-datepicker-toggle",4)(4,"mat-datepicker",null,0),M(6,Jte,2,2,"mat-error")(7,Zte,2,1,"mat-error")(8,eie,2,1,"mat-error")(9,tie,2,0,"mat-error"),m(),u(10,"mat-form-field"),T(11,"input",5)(12,"mat-datepicker-toggle",4)(13,"mat-datepicker",null,1),M(15,iie,2,1,"mat-error")(16,nie,2,1,"mat-error")(17,rie,2,0,"mat-error"),m()()),n&2){let r=Je(5),o=Je(14);v("formGroup",t.form),f(2),v("matDatepicker",r)("formControl",t.fromCtrl)("errorStateMatcher",t.matcher)("min",t.configuration.min)("max",t.configuration.max),f(),v("for",r),f(3),k(t.form.hasError("toGreaterThanFrom")?6:-1),f(),k(t.fromCtrl.hasError("min")&&!t.form.hasError("toGreaterThanFrom")?7:-1),f(),k(t.fromCtrl.hasError("max")&&!t.form.hasError("toGreaterThanFrom")?8:-1),f(),k(t.fromCtrl.hasError("required")?9:-1),f(2),v("matDatepicker",o)("formControl",t.toCtrl)("errorStateMatcher",t.matcher)("min",t.configuration.min)("max",t.configuration.max),f(),v("for",o),f(3),k(t.toCtrl.hasError("min")&&!t.form.hasError("toGreaterThanFrom")?15:-1),f(),k(t.toCtrl.hasError("max")&&!t.form.hasError("toGreaterThanFrom")?16:-1),f(),k(t.toCtrl.hasError("required")?17:-1)}},dependencies:[$e,go,qt,We,Rt,it,st,bt,at,mt,di,xr,zt,Bt,Uu,kb,Hu,Fc],encapsulation:2})};var aie=["button"],sie=["*"];function lie(i,e){if(i&1&&T(0,"mat-pseudo-checkbox",3),i&2){let n=C();v("disabled",n.disabled)}}function cie(i,e){if(i&1&&T(0,"mat-pseudo-checkbox",3),i&2){let n=C();v("disabled",n.disabled)}}var qP=new H("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:die});function die(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1}}var WP=new H("MatButtonToggleGroup"),uie={provide:_n,useExisting:$t(()=>Jc),multi:!0},QP=0,Qv=class{constructor(e,n){this.source=e,this.value=n}},Jc=(()=>{let e=class e{get name(){return this._name}set name(t){this._name=t,this._markButtonsForCheck()}get value(){let t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t.map(r=>r.value):t[0]?t[0].value:void 0}set value(t){this._setSelectionByValue(t),this.valueChange.emit(this.value)}get selected(){let t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t:t[0]||null}get multiple(){return this._multiple}set multiple(t){this._multiple=t,this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._markButtonsForCheck()}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(t){this._disabledInteractive=t,this._markButtonsForCheck()}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(t){this._hideSingleSelectionIndicator=t,this._markButtonsForCheck()}get hideMultipleSelectionIndicator(){return this._hideMultipleSelectionIndicator}set hideMultipleSelectionIndicator(t){this._hideMultipleSelectionIndicator=t,this._markButtonsForCheck()}constructor(t,r,o){this._changeDetector=t,this._dir=o,this._multiple=!1,this._disabled=!1,this._disabledInteractive=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name=`mat-button-toggle-group-${QP++}`,this.valueChange=new $,this.change=new $,this.appearance=r&&r.appearance?r.appearance:"standard",this.hideSingleSelectionIndicator=r?.hideSingleSelectionIndicator??!1,this.hideMultipleSelectionIndicator=r?.hideMultipleSelectionIndicator??!1}ngOnInit(){this._selectionModel=new On(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(t=>t.checked)),this.multiple||this._initializeTabIndex()}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_keydown(t){if(this.multiple||this.disabled)return;let o=t.target.id,a=this._buttonToggles.toArray().findIndex(l=>l.buttonId===o),s=null;switch(t.keyCode){case 32:case 13:s=this._buttonToggles.get(a)||null;break;case 38:s=this._getNextButton(a,-1);break;case 37:s=this._getNextButton(a,this.dir==="ltr"?-1:1);break;case 40:s=this._getNextButton(a,1);break;case 39:s=this._getNextButton(a,this.dir==="ltr"?1:-1);break;default:return}s&&(t.preventDefault(),s._onButtonClick(),s.focus())}_emitChangeEvent(t){let r=new Qv(t,this.value);this._rawValue=r.value,this._controlValueAccessorChangeFn(r.value),this.change.emit(r)}_syncButtonToggle(t,r,o=!1,a=!1){!this.multiple&&this.selected&&!t.checked&&(this.selected.checked=!1),this._selectionModel?r?this._selectionModel.select(t):this._selectionModel.deselect(t):a=!0,a?Promise.resolve().then(()=>this._updateModelValue(t,o)):this._updateModelValue(t,o)}_isSelected(t){return this._selectionModel&&this._selectionModel.isSelected(t)}_isPrechecked(t){return typeof this._rawValue>"u"?!1:this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(r=>t.value!=null&&r===t.value):t.value===this._rawValue}_initializeTabIndex(){if(this._buttonToggles.forEach(t=>{t.tabIndex=-1}),this.selected)this.selected.tabIndex=0;else for(let t=0;tthis._selectValue(r))):(this._clearSelection(),this._selectValue(t)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(t=>{t.checked=!1,this.multiple||(t.tabIndex=-1)})}_selectValue(t){let r=this._buttonToggles.find(o=>o.value!=null&&o.value===t);r&&(r.checked=!0,this._selectionModel.select(r),this.multiple||(r.tabIndex=0))}_updateModelValue(t,r){r&&this._emitChangeEvent(t),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(t=>t._markForCheck())}};e.\u0275fac=function(r){return new(r||e)(b(Se),b(qP,8),b(vt,8))},e.\u0275dir=B({type:e,selectors:[["mat-button-toggle-group"]],contentQueries:function(r,o,a){if(r&1&&Ie(a,Ll,5),r&2){let s;K(s=Y())&&(o._buttonToggles=s)}},hostAttrs:[1,"mat-button-toggle-group"],hostVars:6,hostBindings:function(r,o){r&1&&w("keydown",function(s){return o._keydown(s)}),r&2&&(ne("role",o.multiple?"group":"radiogroup")("aria-disabled",o.disabled),se("mat-button-toggle-vertical",o.vertical)("mat-button-toggle-group-appearance-standard",o.appearance==="standard"))},inputs:{appearance:"appearance",name:"name",vertical:[2,"vertical","vertical",ee],value:"value",multiple:[2,"multiple","multiple",ee],disabled:[2,"disabled","disabled",ee],disabledInteractive:[2,"disabledInteractive","disabledInteractive",ee],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",ee],hideMultipleSelectionIndicator:[2,"hideMultipleSelectionIndicator","hideMultipleSelectionIndicator",ee]},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],standalone:!0,features:[me([uie,{provide:WP,useExisting:e}]),xe]});let i=e;return i})(),Ll=(()=>{let e=class e{get buttonId(){return`${this.id}-button`}get tabIndex(){return this._tabIndex}set tabIndex(t){this._tabIndex=t,this._markForCheck()}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(t){this._appearance=t}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(t){t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(t){this._disabled=t}get disabledInteractive(){return this._disabledInteractive||this.buttonToggleGroup!==null&&this.buttonToggleGroup.disabledInteractive}set disabledInteractive(t){this._disabledInteractive=t}constructor(t,r,o,a,s,l){this._changeDetectorRef=r,this._elementRef=o,this._focusMonitor=a,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new $;let c=Number(s);this.tabIndex=c||c===0?c:null,this.buttonToggleGroup=t,this.appearance=l&&l.appearance?l.appearance:"standard",this.disabledInteractive=l?.disabledInteractive??!1}ngOnInit(){let t=this.buttonToggleGroup;this.id=this.id||`mat-button-toggle-${QP++}`,t&&(t._isPrechecked(this)?this.checked=!0:t._isSelected(this)!==this._checked&&t._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)}focus(t){this._buttonElement.nativeElement.focus(t)}_onButtonClick(){if(this.disabled)return;let t=this.isSingleSelector()?!0:!this._checked;if(t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.isSingleSelector()){let r=this.buttonToggleGroup._buttonToggles.find(o=>o.tabIndex===0);r&&(r.tabIndex=-1),this.tabIndex=0}this.change.emit(new Qv(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}};e.\u0275fac=function(r){return new(r||e)(b(WP,8),b(Se),b(J),b(wi),gi("tabindex"),b(qP,8))},e.\u0275cmp=F({type:e,selectors:[["mat-button-toggle"]],viewQuery:function(r,o){if(r&1&&ve(aie,5),r&2){let a;K(a=Y())&&(o._buttonElement=a.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(r,o){r&1&&w("focus",function(){return o.focus()}),r&2&&(ne("aria-label",null)("aria-labelledby",null)("id",o.id)("name",null),se("mat-button-toggle-standalone",!o.buttonToggleGroup)("mat-button-toggle-checked",o.checked)("mat-button-toggle-disabled",o.disabled)("mat-button-toggle-disabled-interactive",o.disabledInteractive)("mat-button-toggle-appearance-standard",o.appearance==="standard"))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",disableRipple:[2,"disableRipple","disableRipple",ee],appearance:"appearance",checked:[2,"checked","checked",ee],disabled:[2,"disabled","disabled",ee],disabledInteractive:[2,"disabledInteractive","disabledInteractive",ee]},outputs:{change:"change"},exportAs:["matButtonToggle"],standalone:!0,features:[xe,P],ngContentSelectors:sie,decls:8,vars:14,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-label-content"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(r,o){if(r&1){let a=z();Me(),u(0,"button",1,0),w("click",function(){return A(a),R(o._onButtonClick())}),u(2,"span",2),M(3,lie,1,1,"mat-pseudo-checkbox",3)(4,cie,1,1,"mat-pseudo-checkbox",3),ae(5),m()(),T(6,"span",4)(7,"span",5)}if(r&2){let a=Je(1);v("id",o.buttonId)("disabled",o.disabled&&!o.disabledInteractive||null),ne("role",o.isSingleSelector()?"radio":"button")("tabindex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("aria-pressed",o.isSingleSelector()?null:o.checked)("aria-checked",o.isSingleSelector()?o.checked:null)("name",o._getButtonName())("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby)("aria-disabled",o.disabled&&o.disabledInteractive?"true":null),f(3),k(o.buttonToggleGroup&&o.checked&&!o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideSingleSelectionIndicator?3:-1),f(),k(o.buttonToggleGroup&&o.checked&&o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideMultipleSelectionIndicator?4:-1),f(3),v("matRippleTrigger",a)("matRippleDisabled",o.disableRipple||o.disabled)}},dependencies:[Fi,qC],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0);border-radius:var(--mat-legacy-button-toggle-shape)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:var(--mat-standard-button-toggle-shape, var(--mat-app-corner-full));border:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-app-outline))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard .mat-pseudo-checkbox,.mat-button-toggle-group-appearance-standard .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-standard-button-toggle-selected-state-text-color, var(--mat-app-on-secondary-container))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative;color:var(--mat-legacy-button-toggle-text-color);font-family:var(--mat-legacy-button-toggle-label-text-font);font-size:var(--mat-legacy-button-toggle-label-text-size);line-height:var(--mat-legacy-button-toggle-label-text-line-height);font-weight:var(--mat-legacy-button-toggle-label-text-weight);letter-spacing:var(--mat-legacy-button-toggle-label-text-tracking);--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-legacy-button-toggle-selected-state-text-color)}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-legacy-button-toggle-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle .mat-pseudo-checkbox{margin-right:12px}[dir=rtl] .mat-button-toggle .mat-pseudo-checkbox{margin-right:0;margin-left:12px}.mat-button-toggle-checked{color:var(--mat-legacy-button-toggle-selected-state-text-color);background-color:var(--mat-legacy-button-toggle-selected-state-background-color)}.mat-button-toggle-disabled{pointer-events:none;color:var(--mat-legacy-button-toggle-disabled-state-text-color);background-color:var(--mat-legacy-button-toggle-disabled-state-background-color);--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var(--mat-legacy-button-toggle-disabled-state-text-color)}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-legacy-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-disabled-interactive{pointer-events:auto}.mat-button-toggle-appearance-standard{color:var(--mat-standard-button-toggle-text-color, var(--mat-app-on-surface));background-color:var(--mat-standard-button-toggle-background-color);font-family:var(--mat-standard-button-toggle-label-text-font, var(--mat-app-label-large-font));font-size:var(--mat-standard-button-toggle-label-text-size, var(--mat-app-label-large-size));line-height:var(--mat-standard-button-toggle-label-text-line-height, var(--mat-app-label-large-line-height));font-weight:var(--mat-standard-button-toggle-label-text-weight, var(--mat-app-label-large-weight));letter-spacing:var(--mat-standard-button-toggle-label-text-tracking, var(--mat-app-label-large-tracking))}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-app-outline))}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-app-outline))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-app-outline))}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-selected-state-text-color, var(--mat-app-on-secondary-container));background-color:var(--mat-standard-button-toggle-selected-state-background-color, var(--mat-app-secondary-container))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-standard-button-toggle-disabled-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-state-background-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var(--mat-standard-button-toggle-disabled-selected-state-text-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-disabled-selected-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-standard-button-toggle-state-layer-color, var(--mat-app-on-surface))}.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-button-toggle-appearance-standard.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}@media(hover: none){.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-legacy-button-toggle-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-standard-button-toggle-height)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-legacy-button-toggle-state-layer-color)}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{--mat-focus-indicator-border-radius:var(--mat-standard-button-toggle-shape, var(--mat-app-corner-full))}.mat-button-toggle-group-appearance-standard .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-standard-button-toggle-shape, var(--mat-app-corner-full));border-bottom-right-radius:var(--mat-standard-button-toggle-shape, var(--mat-app-corner-full))}.mat-button-toggle-group-appearance-standard .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-left-radius:var(--mat-standard-button-toggle-shape, var(--mat-app-corner-full));border-bottom-left-radius:var(--mat-standard-button-toggle-shape, var(--mat-app-corner-full))}"],encapsulation:2,changeDetection:0});let i=e;return i})(),Mp=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({imports:[De,fn,Ll,De]});let i=e;return i})();function pie(i,e){if(i&1&&(u(0,"mat-button-toggle",1),y(1),m()),i&2){let n=e.$implicit;v("value",n),f(),ge(n.display)}}var Op=class i{constructor(e){this.data=e;if(this.configuration=N(N({},this.defaults),e.configuration),!this.configuration.options.length)throw new Error("TypeOptions need options, empty array or null given");if(this.formControl.setValidators([tt.required]),e.condition){let n=this.configuration.options.find(t=>Eo(t.condition,e.condition));n&&(this.formControl.setValue(n),this.renderedValue.next(n.display))}this.formControl.valueChanges.subscribe(n=>{n&&(this.renderedValue.next(n.display),this.dropdownRef.close(n))})}renderedValue=new Be("");formControl=new Xe({},{nonNullable:!0});configuration;defaults={options:[]};dropdownRef=x(Or);getCondition(){return this.isValid()?this.formControl.value.condition:{}}isValid(){return this.formControl.valid&&!!this.formControl.value?.condition}isDirty(){return this.formControl.dirty}static \u0275fac=function(n){return new(n||i)(b(Hi))};static \u0275cmp=F({type:i,selectors:[["ng-component"]],standalone:!0,features:[P],decls:3,vars:1,consts:[[3,"formControl"],[3,"value"]],template:function(n,t){n&1&&(u(0,"mat-button-toggle-group",0),He(1,pie,2,2,"mat-button-toggle",1,Tt),m()),n&2&&(v("formControl",t.formControl),f(),Ue(t.configuration.options))},dependencies:[$e,We,it,st,Mp,Jc,Ll],encapsulation:2})};function mie(i,e){if(i&1&&(u(0,"mat-button-toggle",1),y(1),m()),i&2){let n=e.$implicit;v("value",n),f(),ge(n.display)}}var Kv=class i extends Op{constructor(){let e=x(Hi),n={options:[{display:e.configuration.displayWhenActive,condition:{equal:{value:!0}}},{display:e.configuration.displayWhenInactive,condition:{equal:{value:!1}}}]},t=ce(N({},e),{configuration:n});super(t)}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["ng-component"]],standalone:!0,features:[X,P],decls:3,vars:1,consts:[[3,"formControl"],[3,"value"]],template:function(n,t){n&1&&(u(0,"mat-button-toggle-group",0),He(1,mie,2,2,"mat-button-toggle",1,Tt),m()),n&2&&(v("formControl",t.formControl),f(),Ue(t.configuration.options))},dependencies:[$e,We,it,st,Pe,Mp,Jc,Ll],encapsulation:2})};function XP(i,e,n){return i.trim()?(e=e.toLowerCase(),n=n.toLowerCase(),i.split(",").some(t=>{if(t=t.trim().toLowerCase(),t.startsWith("."))return n.endsWith(t);{let r=t.replace(/\*/g,".*");return e.match(r)}})):!0}function JS(i){let e=i.getAttribute("type");return i.tagName.toLowerCase()==="input"&&!!e&&e.toLowerCase()==="file"}var KP=0,YP=0;function JP(i){let e="changedTouches"in i?i.changedTouches:null;if(!e)return!1;if(i.type==="touchstart")return YP=e[0].clientX,KP=e[0].clientY,!0;if(i.type==="touchend"){let n=e[0].clientX,t=e[0].clientY;if(Math.abs(n-YP)>20||Math.abs(t-KP)>20)return i.stopPropagation(),i.cancelable&&i.preventDefault(),!1}return!0}function ZP(i){let e=hie(i),n=i.createElement("label");return n.innerHTML="upload",n.style.visibility="hidden",n.style.position="absolute",n.style.overflow="hidden",n.style.width="0px",n.style.height="0px",n.style.border="none",n.style.margin="0px",n.style.padding="0px",n.setAttribute("tabindex","-1"),n.appendChild(e),n}function hie(i){let e=i.createElement("input");return e.type="file",e}function eL(i){return fie(i.slice(0,1)).then(e=>e!=="",()=>!1)}function fie(i){return new Promise((e,n)=>{let t=new FileReader;t.onload=()=>{e(t.result)},t.onerror=n,t.readAsText(i)})}function Zc(i){i.preventDefault(),i.stopPropagation()}function Yv(i){let e=[];for(let n=0;nthis.beforeSelect();e.addEventListener("click",n),e.addEventListener("touchstart",n);return}else{let n=t=>this.clickHandler(t);e.addEventListener("click",n),e.addEventListener("touchstart",n),e.addEventListener("touchend",n)}}handleFiles(e){let n={valid:[],invalid:[]};Yi(e.map(t=>this.validate(t).pipe(lt(r=>{r?n.invalid.push({file:t,error:r}):n.valid.push(t)})))).subscribe(()=>{n.valid.length&&this.fileChange.emit(n.valid[0]),(n.valid.length||n.invalid.length)&&(this.filesChange.emit(n),this.broadcast&&this.naturalFileService.filesChanged.next(n)),this.getFileElement().value=""})}changeFn(e){if(!(e.target instanceof HTMLInputElement))return;let n=e.target.files;n&&(Zc(e),this.handleFiles(Yv(n)))}clickHandler(e){return this.element.nativeElement.getAttribute("disabled")||this.fileSelectionDisabled?!1:JP(e)?!0:(this.getFileElement().click(),this.beforeSelect(),!1)}beforeSelect(){this.fileElement&&(this.fileElement.value="")}onChange(e){let n=this.getFileElement().files,t=n?Yv(n):Xv(e);t.length&&(Zc(e),this.handleFiles(t))}validate(e){return Yi({accept:U(XP(this.accept,e.type,e.name)),fileSize:U(!(this.maxSize&&e.size>this.maxSize)),directory:eL(e)}).pipe(re(n=>{for(let[t,r]of Object.entries(n))if(!r)return t;return null}))}static \u0275fac=function(n){return new(n||i)(b(J),b(Vl),b(pe))};static \u0275dir=B({type:i,hostBindings:function(n,t){n&1&&w("change",function(o){return t.onChange(o)})},inputs:{multiple:"multiple",accept:"accept",maxSize:"maxSize",fileSelectionDisabled:"fileSelectionDisabled",selectable:"selectable",broadcast:"broadcast"},outputs:{fileChange:"fileChange",filesChange:"filesChange"},standalone:!0,features:[Ne]})};var jl=class i extends Ap{destroyRef=x(_i);fileOverClass=!1;fileOver=new $;rawFileOver=new q;ngOnInit(){super.ngOnInit(),this.rawFileOver.pipe(ht(this.destroyRef),WT(200,VT,{leading:!0,trailing:!0})).subscribe(e=>{this.fileOver.emit(e),this.fileOverClass=e})}onDrop(e){if(this.fileSelectionDisabled)return;this.closeDrags();let n=Xv(e);n.length&&(Zc(e),this.handleFiles(n))}onDragOver(e){if(!this.hasObservers()||this.fileSelectionDisabled)return;Zc(e);let n=e.dataTransfer;n&&(n.dropEffect="copy"),this.rawFileOver.next(!0)}closeDrags(){this.rawFileOver.next(!1)}onDragLeave(e){this.fileSelectionDisabled||(Zc(e),this.closeDrags())}hasObservers(){return this.fileChange.observed||this.filesChange.observed||this.broadcast&&this.naturalFileService.filesChanged.observed}static \u0275fac=(()=>{let e;return function(t){return(e||(e=Te(i)))(t||i)}})();static \u0275dir=B({type:i,selectors:[["","naturalFileDrop","",3,"naturalFileSelect",""]],hostVars:2,hostBindings:function(n,t){n&1&&w("drop",function(o){return t.onDrop(o)})("dragover",function(o){return t.onDragOver(o)})("dragleave",function(o){return t.onDragLeave(o)}),n&2&&se("natural-file-over",t.fileOverClass)},outputs:{fileOver:"fileOver"},standalone:!0,features:[X]})};var Jv=class i extends Ap{selectable=!0;static \u0275fac=(()=>{let e;return function(t){return(e||(e=Te(i)))(t||i)}})();static \u0275dir=B({type:i,selectors:[["","naturalFileSelect","",3,"naturalFileDrop",""]],inputs:{selectable:"selectable"},standalone:!0,features:[X]})};function bie(i,e){if(i&1&&(u(0,"div",1),T(1,"mat-icon",5),y(2),te(3,"uppercase"),m()),i&2){let n=C();f(),v("size",n.height*.33),f(),ue(" ",ie(3,2,n.filePreview)," ")}}function vie(i,e){if(i&1&&T(0,"mat-icon",3),i&2){let n=C();v("size",n.height*.66)}}function yie(i,e){if(i&1&&T(0,"mat-icon",4),i&2){let n=C();v("size",n.height*.66)}}var Zv=class i{naturalFileService=x(Vl);alertService=x(_a);document=x(pe);height=250;action=null;backgroundSize="contain";accept="image/avif,image/bmp,image/gif,image/heic,image/heif,image/jpeg,image/pjpeg,image/png,image/svg+xml,image/svg,image/webp";uploader;model=null;formCtrl=null;modelChange=new $;imagePreview="";filePreview=null;ngOnChanges(e){e.model&&e.model.previousValue!==e.model.currentValue&&this.updateImage()}ngOnInit(){this.updateImage()}upload(e){this.model={file:e},this.updateImage(),this.formCtrl&&this.formCtrl.setValue(this.model),(this.uploader?.(e).pipe(lt(()=>this.alertService.info($localize`Mis à jour`)))??U(this.model)).subscribe(t=>{this.model=t,this.formCtrl&&this.formCtrl.setValue(this.model),this.modelChange.emit(this.model)})}getDownloadLink(){return this.action!=="download"?null:this.naturalFileService.getDownloadLink(this.model)}updateImage(){if(this.imagePreview="",this.filePreview=null,!!this.model)if(this.model.file?.type.includes("image/"))this.getBase64(this.model.file).subscribe(e=>{if(this.model?.file?.type){let n="url(data:"+this.model?.file?.type+";base64,"+e+")";this.imagePreview=n}});else if(this.model.file)this.filePreview=this.model.file.type.split("/")[1];else if(this.model.__typename==="Image"&&this.model.id){let e=this.document.defaultView;if(!e)throw new Error("Could not show image preview because `window` is undefined");let n=e.location,t=this.height?"/"+this.height:"",r=n.protocol+"//"+n.hostname+"/api/image/"+this.model.id+t;this.imagePreview=r}else this.model?.mime&&["File","AccountingDocument"].includes(this.model.__typename||"")?this.filePreview=this.model.mime.split("/")[1]:this.model.src&&(this.imagePreview=this.model.src)}getBase64(e){if(!e)return U("");let n=new q,t=new FileReader;return t.addEventListener("load",r=>{n.next(btoa(r.target.result)),n.complete()}),t.readAsBinaryString(e),n.asObservable()}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["natural-file"]],hostVars:2,hostBindings:function(n,t){n&2&&Gt("height",t.height,"px")},inputs:{height:"height",action:"action",backgroundSize:"backgroundSize",accept:"accept",uploader:"uploader",model:"model",formCtrl:"formCtrl"},outputs:{modelChange:"modelChange"},standalone:!0,features:[Ne,P],decls:7,vars:18,consts:[["naturalFileDrop","","matRipple","","target","_blank",3,"fileChange","selectable","accept","fileSelectionDisabled","matRippleDisabled","naturalBackgroundDensity"],[1,"file-preview"],[1,"action-overlay"],["naturalIcon","cloud_upload",3,"size"],["naturalIcon","get_app",3,"size"],["naturalIcon","attachment",3,"size"]],template:function(n,t){n&1&&(u(0,"a",0),w("fileChange",function(o){return t.upload(o)}),M(1,bie,4,4,"div",1),u(2,"div",2),M(3,vie,1,1,"mat-icon",3)(4,yie,1,1,"mat-icon",4),y(5),te(6,"capitalize"),m()()),n&2&&(Gt("background-size",t.backgroundSize),se("has-action",!!t.action)("suggest-upload",!t.model&&t.action==="upload"),v("selectable",!0)("accept",t.accept)("fileSelectionDisabled",t.action!=="upload")("matRippleDisabled",!t.action)("naturalBackgroundDensity",t.imagePreview),ne("href",t.getDownloadLink(),ro),f(),k(t.filePreview?1:-1),f(2),k(t.action==="upload"?3:-1),f(),k(t.action==="download"?4:-1),f(),ue(" ",ie(6,16,t.action)," "))},dependencies:[jl,fn,Fi,Pe,ID,It,wt,Mt,Av,Rv],styles:["[_nghost-%COMP%]{display:flex;position:relative;flex-direction:row;overflow:hidden}[_nghost-%COMP%] > a[_ngcontent-%COMP%]{position:relative;flex:1;background-position:center;background-repeat:no-repeat}[_nghost-%COMP%] > a.has-action[_ngcontent-%COMP%]{cursor:pointer}[_nghost-%COMP%] > a.has-action.suggest-upload[_ngcontent-%COMP%] .action-overlay[_ngcontent-%COMP%]{opacity:.66}[_nghost-%COMP%] > a.has-action[_ngcontent-%COMP%]:hover .action-overlay[_ngcontent-%COMP%], [_nghost-%COMP%] > a.has-action.natural-file-over[_ngcontent-%COMP%] .action-overlay[_ngcontent-%COMP%]{opacity:1}[_nghost-%COMP%] .action-overlay[_ngcontent-%COMP%], [_nghost-%COMP%] .file-preview[_ngcontent-%COMP%]{display:flex;position:absolute;inset:0;flex-direction:column;justify-content:center;align-items:center;font-size:36px;line-height:1.3em;text-align:center}[_nghost-%COMP%] .action-overlay[_ngcontent-%COMP%]{opacity:0}[_nghost-%COMP%] .action-overlay[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;position:absolute;inset:0;justify-content:center;align-items:center;opacity:0}"]})};var e0=class i{icon;link=null;color="accent";disabled=!1;static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["natural-fixed-button"]],inputs:{icon:"icon",link:"link",color:"color",disabled:"disabled"},standalone:!0,features:[P],decls:2,vars:4,consts:[["mat-fab","",3,"color","disabled","routerLink"],[3,"naturalIcon"]],template:function(n,t){n&1&&(u(0,"button",0),T(1,"mat-icon",1),m()),n&2&&(v("color",t.color)("disabled",t.disabled)("routerLink",t.link),f(),v("naturalIcon",t.icon))},dependencies:[we,Tk,Ei,It,wt,Mt],styles:["[_nghost-%COMP%]{position:fixed!important;right:32px;bottom:32px;z-index:999}"]})};function Cie(i,e){if(i&1){let n=z();u(0,"natural-fixed-button",2),w("click",function(){A(n);let r=C();return R(r.clickCreate())}),m()}if(i&2){let n=C();v("disabled",n.form.disabled)("color",n.form.valid?"accent":"warn")}}function xie(i,e){if(i&1){let n=z();u(0,"natural-fixed-button",3),w("click",function(){A(n);let r=C();return R(r.clickDelete())}),m()}if(i&2){let n=C();v("disabled",n.form.disabled)}}var t0=class i{canChange=!0;isCreation=!1;get model(){return this._model}set model(e){this._model=e,this.canChange&&(this.isCreation=!this._model.id,this.canChange=!1)}_model;form;create=new $;delete=new $;constructor(){x(Si).params.pipe(ht()).subscribe(()=>this.canChange=!0)}clickCreate(){this.form.enabled&&this.create.emit()}clickDelete(){this.form.enabled&&this.delete.emit()}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["natural-fixed-button-detail"]],inputs:{model:"model",form:"form"},outputs:{create:"create",delete:"delete"},standalone:!0,features:[P],decls:2,vars:2,consts:()=>{let e;return e=$localize`:␟6d0f238f184fc8f62fc7812df8bfd1d80ff2134c␟4278759715584032282:Supprimer définitivement`,[["icon","save",1,"detail-speed-dial",3,"disabled","color"],["color","warn","icon","delete_forever","matTooltip",e,"matTooltipPosition","left",1,"detail-speed-dial",3,"disabled"],["icon","save",1,"detail-speed-dial",3,"click","disabled","color"],["color","warn","icon","delete_forever","matTooltip",e,"matTooltipPosition","left",1,"detail-speed-dial",3,"click","disabled"]]},template:function(n,t){n&1&&M(0,Cie,1,2,"natural-fixed-button",0)(1,xie,1,1,"natural-fixed-button",1),n&2&&(k(t.isCreation?0:-1),f(),k(!t.isCreation&&(!t.model.permissions||t.model.permissions.delete)?1:-1))},dependencies:[e0,ln,sn]})};var wie=()=>({}),tL=()=>[],i0=class i{dialogRef=x(or);config;searchSelectionsOutput;constructor(){let e=x(ar);this.config=Ja(e,{multiple:!0,allowUnselect:!0}),this.searchSelectionsOutput=this.config.searchSelections}close(e){let n={hierarchicSelection:ga(e),searchSelections:ga(this.searchSelectionsOutput)};this.dialogRef.close(n)}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["ng-component"]],standalone:!0,features:[P],decls:10,vars:10,consts:()=>{let e;e=$localize`:␟da386a4b0b09e6213d2755b17da58ca888466b59␟7244876284182662703:Sélection`;let n;n=$localize`:␟12380235948088ddf227ad226ce8a2ae63878fe5␟1711750570766225138:Annuler`;let t;return t=$localize`:␟5d689cec6690d9dd229ac67c852d365d67e3b4e3␟4003387801369922138:Valider`,[e,n,t,["mat-dialog-title",""],[3,"selectionChange","searchSelectionChange","selected","config","filters","multiple","allowUnselect","searchFacets","searchSelections"],["align","end"],["mat-dialog-close","","mat-button",""],["color","primary","mat-raised-button","",3,"click"]]},template:function(n,t){if(n&1&&(u(0,"h2",3),fe(1,0),m(),u(2,"mat-dialog-content")(3,"natural-hierarchic-selector",4),w("selectionChange",function(o){return t.config.hierarchicSelection=o})("searchSelectionChange",function(o){return t.searchSelectionsOutput=o}),m()(),u(4,"mat-dialog-actions",5)(5,"button",6),fe(6,1),m(),u(7,"button",7),w("click",function(){return t.close(t.config.hierarchicSelection)}),u(8,"span"),fe(9,2),m()()()),n&2){let r,o,a,s,l;f(3),v("selected",(r=t.config.hierarchicSelection)!==null&&r!==void 0?r:Xt(7,wie))("config",t.config.hierarchicConfig)("filters",t.config.hierarchicFilters)("multiple",(o=t.config.multiple)!==null&&o!==void 0?o:!1)("allowUnselect",(a=t.config.allowUnselect)!==null&&a!==void 0?a:!0)("searchFacets",(s=t.config.searchFacets)!==null&&s!==void 0?s:Xt(8,tL))("searchSelections",(l=t.config.searchSelections)!==null&&l!==void 0?l:Xt(9,tL))}},dependencies:[Nn,Dr,kr,Mr,Ir,Pl,we,Ze]})};var Bl=class i{dialog=x(Xr);open(e,n){let t={width:"700px",data:e};return this.dialog.open(i0,Ja(n,t))}static \u0275fac=function(n){return new(n||i)};static \u0275prov=W({token:i,factory:i.\u0275fac,providedIn:"root"})};function ZS(i){return[{provide:SS,useValue:i},{provide:dm,multi:!0,useFactory:()=>{let e=x(rf);return()=>{let t=e.getDefaultFontSetClass().filter(r=>r!=="material-icons").concat(["material-symbols-outlined"]);e.setDefaultFontSetClass(...t)}}}]}var n0=new H("NaturalPanelsHooksConfig");function eE(i){return[{provide:n0,useValue:i}]}function Sie(i,e){return Dc(Rp(i,e).map(n=>n.route.segments))}function Rp(i,e,n=null){if(!e)return[];let t=iL(i,e,n);return t?[t].concat(Rp(i.slice(t.route.segments.length),e,n)):[]}function iL(i,e,n=null){if(!i.length)return null;for(let t of e){let r={},o=t.path.split("/"),a=!0;for(let s=0;s0)r[o[s].replace(":","")]=i[s].path;else if(o[s]!==i[s].path){a=!1;break}}if(a){let s=i.reduce((l,c)=>Yr(l,c.parameters),{});return{component:t.component,injector:n,resolve:t.resolve??{},params:Yr(r,s),rule:t,route:{segments:i,path:i.map(l=>l.path).join("/")}}}}return i.length>1?iL(i.slice(0,-1),e,n):null}var r0=(i,e,n)=>{let t=Sie(i,n.data?n.data.panelsRoutes:[]);return t.length?{consumed:t}:null};function nL(i){return i.map(e=>e.toString()).join("/")}function rL(i,e){return i.route.path===e.route.path&&i.rule===e.rule&&Eo(i.params,e.params)}var Np=class i{router=x(Mi);dialog=x(Xr);injector=x(ze);hooksConfig=x(n0);panelWidth="960px";static _opened=!1;static get opened(){return this._opened}afterAllClosed=new q;counter=1;panelClass="panel";oldFullConfig=[];routeSub;navSub;panelsOffsetH=35;panelsOffsetV=40;isVertical=!1;constructor(){x(vr).observe($r.XSmall).pipe(ht()).subscribe(n=>{this.isVertical=n.matches,this.updateComponentsPosition()})}start(e){i._opened=!0,this.routeSub=e.url.subscribe(n=>{this.updatePanels(n,e.snapshot.data.panelsRoutes)}),this.navSub=this.router.events.subscribe(n=>{if(!(n instanceof Ec))return;if(n.url.endsWith("/")){this.stop(),this.router.navigateByUrl("panels-reached-invalid-url");return}this.counter++;let t=n.url+";pc="+this.counter,r=new Cc().parse(t).root.children.primary.segments,o=Rp(r,e.snapshot.data.panelsRoutes,this.injector);if(o.length)return this.appendConfigToCurrentUrl(o);let s=Dc(this.dialog.openDialogs.map(c=>c.componentInstance.panelData.config.route.segments)).slice(-1),l=Rp(s.concat(r),e.snapshot.data.panelsRoutes,this.injector);return this.appendConfigToCurrentUrl(l)})}appendConfigToCurrentUrl(e){let n=this.router.errorHandler;e&&(this.router.errorHandler=()=>{});let t=e.map(r=>nL(r.route.segments)).join("/");this.router.navigateByUrl(this.router.url+"/"+t).then(()=>{this.router.errorHandler=n})}stop(){i._opened=!1,this.routeSub?.unsubscribe(),this.navSub?.unsubscribe(),this.dialog.closeAll(),this.oldFullConfig=[],this.afterAllClosed.next()}goToPanelByComponent(e){this.goToPanelByIndex(this.getPanelIndex(e))}goToPenultimatePanel(){this.goToPanelByIndex(this.dialog.openDialogs.length-2)}goToPanelByIndex(e){let n=this.dialog.openDialogs.slice(e+1).map(t=>nL(t.componentInstance.panelData.config.route.segments)).join("/");this.router.navigateByUrl(this.router.url.replace("/"+n,""))}selectPanelByIndex(e){let n=this.dialog.openDialogs[this.dialog.openDialogs.length-1];this.updateComponentsPosition();for(let t=this.dialog.openDialogs.length-1;t>=e+1;t--)this.dialog.openDialogs[t].close();return n.afterClosed()}updatePanels(e,n){let t=Rp(e,n,this.injector),r=rb(this.oldFullConfig,t,rL),o=rb(t,this.oldFullConfig,rL),a=this.oldFullConfig.length-r.length-1;r.length&&o.length?this.selectPanelByIndex(a).subscribe(()=>{this.openPanels(o,t).subscribe(()=>this.updateComponentsPosition())}):r.length&&!o.length?this.selectPanelByIndex(a).subscribe(()=>this.updateComponentsPosition()):!r.length&&o.length&&this.openPanels(o,t).subscribe(()=>this.updateComponentsPosition()),this.oldFullConfig=t}openPanels(e,n){let t=new q,r=e.map(o=>this.getResolvedData(o));return Yi(r).subscribe(o=>{for(let a=0;a{t.next(null)})}),t}getResolvedData(e){if(!e.resolve||e.resolve&&Object.keys(e.resolve).length===0)return U({});let n=Object.keys(e.resolve),t={},r=e.injector;return r&&n.forEach(o=>{t[o]=Br(r,()=>e.resolve[o](e))}),Yi(t)}openPanel(e,n){let t={panelClass:this.panelClass,closeOnNavigation:!1,hasBackdrop:this.dialog.openDialogs.length===0,height:"100%",width:this.panelWidth,position:{top:"0",right:"0"}},r=this.dialog.open(e,t);r.componentInstance.initPanel(n),r.beforeClosed().subscribe(()=>{let o=this.getPanelIndex(r.componentInstance);this.goToPanelByIndex(o-1)})}getPanelIndex(e){return e?this.dialog.openDialogs.findIndex(n=>n.componentInstance===e):-1}updateComponentsPosition(){if(!this.dialog.openDialogs.length)return;let e=this.dialog.openDialogs;for(let n=0;n1){let a=n*this.panelsOffsetV+"px";o={top:a,right:"0px"},t.updateSize(this.panelWidth,`calc(100% - ${a})`)}else t.updateSize(this.panelWidth,"100%");t.updatePosition(o)}}static \u0275fac=function(n){return new(n||i)};static \u0275prov=W({token:i,factory:i.\u0275fac,providedIn:"root"})};var uf=class i{panelsService=x(Np);constructor(){let e=x(Si);this.panelsService.start(e)}ngOnDestroy(){this.panelsService.stop()}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["natural-panels"]],standalone:!0,features:[P],decls:0,vars:0,template:function(n,t){},encapsulation:2})};var tE=i=>Np.opened?null:{consumed:i};var Eie=i=>({item:i});function Tie(i,e){if(i&1&&y(0),i&2){let n=e.item,t=C();ue(" ",t.getDisplayFn()(n)," ")}}function Die(i,e){i&1&&T(0,"tr",14)}function kie(i,e){i&1&&T(0,"tr",15)}function Iie(i,e){i&1&&(u(0,"th",16),fe(1,1),m())}function Mie(i,e){}function Oie(i,e){if(i&1&&(u(0,"td",17),M(1,Mie,0,0,"ng-template",18),m()),i&2){let n=e.$implicit,t=C(),r=Je(2);f(),v("ngTemplateOutletContext",Ur(2,Eie,n))("ngTemplateOutlet",t.itemTemplate?t.itemTemplate:r)}}function Aie(i,e){i&1&&T(0,"th",16)}function Rie(i,e){if(i&1){let n=z();u(0,"button",20),w("click",function(){A(n);let r=C().$implicit,o=C();return R(o.removeRelation(r))}),T(1,"mat-icon",21),m()}if(i&2){let n=C().$implicit,t=C();v("disabled",t.removing.has(n))}}function Nie(i,e){if(i&1&&(u(0,"td",17),M(1,Rie,2,1,"button",19),m()),i&2){let n=C();f(),k(n.disabled?-1:1)}}function Fie(i,e){if(i&1){let n=z();u(0,"mat-paginator",22),w("page",function(r){A(n);let o=C();return R(o.pagination(r))}),m()}if(i&2){let n=C();v("length",n.dataSource.data.length||0)("pageIndex",n.dataSource.data.pageIndex||0)("pageSizeOptions",n.pageSizeOptions)("pageSize",n.dataSource.data.pageSize||0)}}function Pie(i,e){i&1&&(u(0,"div",12)(1,"span"),fe(2,2),m()())}function Lie(i,e){i&1&&T(0,"mat-progress-spinner",13),i&2&&v("diameter",40)}function Vie(i,e){if(i&1){let n=z();u(0,"div")(1,"button",24),w("click",function(){A(n);let r=C(2);return R(r.openNaturalHierarchicSelector())}),y(2),m()()}if(i&2){let n=C(2);f(2),ge(n.placeholder)}}function jie(i,e){if(i&1){let n=z();u(0,"natural-select",25),w("selectionChange",function(r){A(n);let o=C(2);return R(o.addRelations([r]))}),m()}if(i&2){let n=C(2);v("displayWith",n.getDisplayFn())("filter",n.autocompleteSelectorFilter)("placeholder",n.placeholder)("service",n.service)("showIcon",!1)}}function Bie(i,e){if(i&1&&M(0,Vie,3,1,"div")(1,jie,1,5,"natural-select",23),i&2){let n=C();k(n.hierarchicSelectorConfig?0:1)}}var o0=class i{destroyRef=x(_i);linkMutationService=x(fp);hierarchicSelectorDialog=x(Bl);select;itemTemplate;_service;get service(){return this._service}set service(e){this._service=e,this.loading=!0;let n=this._service.watchAll(this.variablesManager).pipe(ht(this.destroyRef),lt({next:()=>this.loading=!1,complete:()=>this.loading=!1,error:()=>this.loading=!1}));this.dataSource=new qu(n)}placeholder="";autocompleteSelectorFilter;displayWith;disabled=!1;main;selectionChange=new $;hierarchicSelectorFilters;hierarchicSelectorConfig;otherName;dataSource;loading=!1;displayedColumns=["name"];pageSizeOptions=[5,25,50,100];defaultPagination={pageIndex:0,pageSize:25};variablesManager=new zi;removing=new Set;set filter(e){this.variablesManager.set("relations-filter",{filter:e})}ngOnChanges(){this.disabled&&this.displayedColumns.includes("unlink")?this.displayedColumns.pop():!this.disabled&&!this.displayedColumns.includes("unlink")&&this.displayedColumns.push("unlink")}ngOnInit(){this.pagination(),this.main&&this.main.permissions&&(this.disabled=this.disabled||!this.main.permissions.update)}removeRelation(e){this.removing.add(e),this.linkMutationService.unlink(this.main,e,this.otherName).pipe(Xi(()=>this.removing.delete(e))).subscribe(()=>this.dataSource?.remove(e))}addRelations(e){let n=e.filter(t=>!!t&&typeof t=="object").map(t=>this.linkMutationService.link(this.main,t,this.otherName));Yi(n).subscribe(()=>{this.selectionChange.emit(),this.select?.clear()})}pagination(e){let n=null;e&&(e.pageIndex!==this.defaultPagination.pageIndex||e.pageSize!==this.defaultPagination.pageSize)&&(n={pageIndex:e.pageIndex,pageSize:e.pageSize}),this.variablesManager.set("pagination",{pagination:n||this.defaultPagination})}getDisplayFn(){return this.displayWith?this.displayWith:e=>e?e.fullName||e.name:""}openNaturalHierarchicSelector(){let e=this.getSelectKey();if(!e||!this.hierarchicSelectorConfig)return;let n={},t={hierarchicConfig:this.hierarchicSelectorConfig,hierarchicSelection:n,hierarchicFilters:this.hierarchicSelectorFilters,multiple:!0};this.hierarchicSelectorDialog.open(t).afterClosed().subscribe(r=>{if(r?.hierarchicSelection!==void 0){let o=r.hierarchicSelection[e];o.length&&this.addRelations(o)}})}getSelectKey(){if(this.hierarchicSelectorConfig)return this.hierarchicSelectorConfig.find(e=>!!e.selectableAtKey)?.selectableAtKey}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["natural-relations"]],contentQueries:function(n,t,r){if(n&1&&Ie(r,ft,5),n&2){let o;K(o=Y())&&(t.itemTemplate=o.first)}},viewQuery:function(n,t){if(n&1&&ve(ds,5),n&2){let r;K(r=Y())&&(t.select=r.first)}},inputs:{service:"service",placeholder:"placeholder",autocompleteSelectorFilter:"autocompleteSelectorFilter",displayWith:"displayWith",disabled:"disabled",main:"main",hierarchicSelectorFilters:"hierarchicSelectorFilters",hierarchicSelectorConfig:"hierarchicSelectorConfig",otherName:"otherName",filter:"filter"},outputs:{selectionChange:"selectionChange"},standalone:!0,features:[Ne,P],decls:16,vars:7,consts:()=>{let e;e=$localize`:␟622c8cdb03ed166e3e1b652021cf0992cb26bc18␟6518032478600962138:Titre`;let n;n=$localize`:␟3aeaa4ce648ca57b4432ae80ca47541597ae574e␟5982725333971978109:Dissocier`;let t;return t=$localize`:␟dd6839133282aa13835f301df1cae5bc06cef85f␟8332478813279888013:Aucun résultat`,[["defaultNameCell",""],e,t,[1,"body"],["mat-table","",1,"natural-row-click",3,"dataSource"],["mat-header-row","","style","display: none",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","unlink"],[3,"length","pageIndex","pageSizeOptions","pageSize"],[1,"nat-margin-vertical","mat-body"],["mode","indeterminate",1,"loading",3,"diameter"],["mat-header-row","",2,"display","none"],["mat-row",""],["mat-header-cell",""],["mat-cell",""],[3,"ngTemplateOutletContext","ngTemplateOutlet"],["color","warn","mat-icon-button","","matTooltip",n,3,"disabled"],["color","warn","mat-icon-button","","matTooltip",n,3,"click","disabled"],["naturalIcon","link_off"],[3,"page","length","pageIndex","pageSizeOptions","pageSize"],[3,"displayWith","filter","placeholder","service","showIcon"],["color","primary","mat-flat-button","",3,"click"],[3,"selectionChange","displayWith","filter","placeholder","service","showIcon"]]},template:function(n,t){n&1&&(u(0,"div",3),M(1,Tie,1,1,"ng-template",null,0,oo),u(3,"table",4),M(4,Die,1,0,"tr",5)(5,kie,1,0,"tr",6),bi(6,7),M(7,Iie,2,0,"th",8)(8,Oie,2,4,"td",9),vi(),bi(9,10),M(10,Aie,1,0,"th",8)(11,Nie,2,1,"td",9),vi(),m(),M(12,Fie,1,4,"mat-paginator",11)(13,Pie,3,0,"div",12)(14,Lie,1,1,"mat-progress-spinner",13),m(),M(15,Bie,2,1)),n&2&&(f(3),v("dataSource",t.dataSource),f(),v("matHeaderRowDef",t.displayedColumns),f(),v("matRowDefColumns",t.displayedColumns),f(7),k(t.dataSource.data&&(t.dataSource.data.length||0)>(t.dataSource.data.pageSize||0)?12:-1),f(),k(!t.loading&&(t.dataSource.data==null?null:t.dataSource.data.length)===0?13:-1),f(),k(t.loading?14:-1),f(),k(t.disabled?-1:15))},dependencies:[Pe,la,gl,al,ll,pl,cl,sl,ml,dl,ul,hl,fl,we,Ze,li,ln,sn,It,wt,Mt,eu,_c,Ta,Ea,ds],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] > *[_ngcontent-%COMP%]:not(:last-child){margin-bottom:20px}[_nghost-%COMP%] .body[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] .loading[_ngcontent-%COMP%]{margin:20px auto}[_nghost-%COMP%] .mat-column-unlink[_ngcontent-%COMP%]{width:2.5em}"]})};var zie=(i,e)=>e.value;function Hie(i,e){if(i&1&&(u(0,"mat-option",2),y(1),m()),i&2){let n=C();v("value",null),f(),ge(n.nullLabel)}}function Uie(i,e){if(i&1&&(u(0,"mat-option",3),y(1),m()),i&2){let n=e.$implicit,t=C();v("value",n.value)("disabled",t.optionDisabled?t.optionDisabled(n):!1),f(),ue(" ",n.name," ")}}function $ie(i,e){if(i&1&&(u(0,"mat-hint"),y(1),m()),i&2){let n=C();f(),ge(n.hint)}}function Gie(i,e){i&1&&(u(0,"mat-error"),fe(1,0),m())}var a0=class i extends Nl{enumService=x(Rl);enumName;nullLabel;optionDisabled;multiple=!1;items;ngOnInit(){super.ngOnInit(),this.items=this.enumService.get(this.enumName)}getDisplayFn(){throw new Error("This should never be called")}static \u0275fac=(()=>{let e;return function(t){return(e||(e=Te(i)))(t||i)}})();static \u0275cmp=F({type:i,selectors:[["natural-select-enum"]],inputs:{enumName:"enumName",nullLabel:"nullLabel",optionDisabled:"optionDisabled",multiple:"multiple"},standalone:!0,features:[X,P],decls:10,vars:9,consts:()=>{let e;return e=$localize`:␟c0635fdb2285e10406f861a2135c2d72eab0e8c4␟8857159515510586089:Ce champ est requis`,[e,[3,"selectionChange","blur","formControl","errorStateMatcher","multiple"],[3,"value"],[3,"value","disabled"]]},template:function(n,t){n&1&&(u(0,"mat-form-field")(1,"mat-label"),y(2),m(),u(3,"mat-select",1),w("selectionChange",function(o){return t.propagateValue(o.value)})("blur",function(){return t.onBlur()}),M(4,Hie,2,2,"mat-option",2),He(5,Uie,2,3,"mat-option",3,zie),te(7,"async"),m(),M(8,$ie,2,1,"mat-hint")(9,Gie,2,0,"mat-error"),m()),n&2&&(f(2),ge(t.placeholder),f(),v("formControl",t.internalCtrl)("errorStateMatcher",t.matcher)("multiple",t.multiple),f(),k(t.nullLabel?4:-1),f(),Ue(ie(7,7,t.items)),f(3),k(t.hint?8:-1),f(),k(t.hasRequiredError()?9:-1))},dependencies:[at,mt,_t,ho,di,Sr,wr,Pi,$e,We,it,st,Pe,Ms,Li],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}"]})};function qie(i,e){if(i&1&&T(0,"mat-icon",2),i&2){let n=C();v("naturalIcon",n.icon)}}function Wie(i,e){if(i&1&&(u(0,"mat-hint"),y(1),m()),i&2){let n=C();f(),ge(n.hint)}}function Qie(i,e){if(i&1){let n=z();u(0,"button",7),w("click",function(r){return A(n),C().clear(),R(r.stopPropagation())}),T(1,"mat-icon",8),m()}}function Kie(i,e){if(i&1){let n=z();u(0,"button",9),w("click",function(r){return A(n),R(r.stopPropagation())}),T(1,"mat-icon",10),m()}if(i&2){let n=C();v("routerLink",n.navigateTo)}}function Yie(i,e){i&1&&(u(0,"mat-error"),fe(1,0),m())}function Xie(i,e){if(i&1){let n=z();u(0,"button",13),w("click",function(){A(n);let r=C(2);return R(r.openDialog())}),y(1),m()}if(i&2){let n=C(2);f(),ge(n.selectLabel)}}function Jie(i,e){if(i&1){let n=z();u(0,"button",14),w("click",function(){A(n);let r=C(2);return R(r.clear())}),y(1),m()}if(i&2){let n=C(2);f(),ge(n.clearLabel)}}function Zie(i,e){if(i&1&&(u(0,"div",6),M(1,Xie,2,1,"button",11)(2,Jie,2,1,"button",12),m()),i&2){let n=C();f(),k(n.showSelectButton()?1:-1),f(),k(n.showClearButton()?2:-1)}}function ene(i){return i?i.fullName||i.name||i.iban||i.id||i:""}var s0=class i extends Nl{hierarchicSelectorDialogService=x(Bl);selectLabel;config=null;filters;value=null;lockOpenDialog=!1;getDisplayFn(){return this.displayWith?this.displayWith:ene}writeValue(e){this.value=e,this.internalCtrl.setValue(this.getDisplayFn()(this.value))}openDialog(){if(this.internalCtrl.disabled||this.lockOpenDialog)return;let e=this.getSelectKey();if(!e||!this.config)return;this.lockOpenDialog=!0,this.onTouched&&this.onTouched();let n={};this.internalCtrl.value&&(n[e]=[this.value]);let t={hierarchicConfig:this.config,hierarchicSelection:n,hierarchicFilters:this.filters,multiple:!1},r={restoreFocus:!1};this.hierarchicSelectorDialogService.open(t,r).afterClosed().subscribe(o=>{if(this.lockOpenDialog=!1,o?.hierarchicSelection){let a=o.hierarchicSelection,s=Object.keys(a).find(c=>a[c][0]),l=s?a[s][0]:null;this.writeValue(l),this.propagateValue(l)}})}showSelectButton(){return!!(this.internalCtrl?.enabled&&this.selectLabel&&this.getSelectKey())}getSelectKey(){return this.config?.find(e=>!!e.selectableAtKey)?.selectableAtKey}static \u0275fac=(()=>{let e;return function(t){return(e||(e=Te(i)))(t||i)}})();static \u0275cmp=F({type:i,selectors:[["natural-select-hierarchic"]],inputs:{selectLabel:"selectLabel",config:"config",filters:"filters"},standalone:!0,features:[X,P],decls:11,vars:9,consts:()=>{let e;e=$localize`:␟24db55d2b71cb10137208e99c6c112b630194818␟3383260231057423151:Recherche et sélection`;let n;n=$localize`:␟b73f9486556a620fa0bc34490ca8aef60d5ba50e␟7476559703529470786:Désélectionner`;let t;t=$localize`:␟c556a47cd554d8b94066106f1832d6272fbca1e1␟6489170507220514306:Naviguer vers`;let r;return r=$localize`:␟c0635fdb2285e10406f861a2135c2d72eab0e8c4␟8857159515510586089:Ce champ est requis`,[r,["aria-label",e,"matInput","",3,"blur","focus","formControl","errorStateMatcher"],["matIconPrefix","",3,"naturalIcon"],["matIconSuffix",""],["mat-icon-button","","matTooltip",n],["mat-icon-button","","matTooltip",t,3,"routerLink"],[1,"external-buttons"],["mat-icon-button","","matTooltip",n,3,"click"],["naturalIcon","close"],["mat-icon-button","","matTooltip",t,3,"click","routerLink"],["naturalIcon","open_in_browser"],["color","primary","mat-flat-button",""],["color","warn","mat-button",""],["color","primary","mat-flat-button","",3,"click"],["color","warn","mat-button","",3,"click"]]},template:function(n,t){n&1&&(u(0,"mat-form-field")(1,"mat-label"),y(2),m(),u(3,"input",1),w("blur",function(){return t.blur.emit()})("focus",function(){return t.openDialog()}),m(),M(4,qie,1,1,"mat-icon",2)(5,Wie,2,1,"mat-hint"),u(6,"div",3),M(7,Qie,2,0,"button",4)(8,Kie,2,1,"button",5),m(),M(9,Yie,2,0,"mat-error"),m(),M(10,Zie,3,2,"div",6)),n&2&&(f(2),ge(t.placeholder),f(),v("formControl",t.internalCtrl)("errorStateMatcher",t.matcher),f(),k(t.showIcon?4:-1),f(),k(t.hint?5:-1),f(2),k(t.internalCtrl.value&&t.internalCtrl.enabled&&!t.clearLabel?7:-1),f(),k(t.internalCtrl.value&&t.navigateTo?8:-1),f(),k(t.hasRequiredError()?9:-1),f(),k(t.showSelectButton()||t.showClearButton()?10:-1))},dependencies:[at,mt,_t,ho,di,Bs,xr,zt,Bt,$e,qt,We,it,st,It,wt,Mt,we,Ze,li,ln,sn,Ei],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] > *[_ngcontent-%COMP%]:not(:last-child){margin-bottom:20px}[_nghost-%COMP%] .external-buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row}[_nghost-%COMP%] .external-buttons[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(:last-child){margin-right:10px}"]})};var l0=class i{sidenavs=[];currentSidenav=new q;register(e){if(this.sidenavs.some(t=>t.name===e.name))throw new Error("Duplicated side nav name: "+e.name);this.sidenavs.push(e),this.next()}unregister(e){let n=this.sidenavs.indexOf(e);if(n===-1)throw Error("Trying to remove a SidenavContainer that was never registered");this.sidenavs.splice(n,1),this.next()}next(){this.currentSidenav.next(this.sidenavs[this.sidenavs.length-1])}static \u0275fac=function(n){return new(n||i)};static \u0275prov=W({token:i,factory:i.\u0275fac,providedIn:"root"})};function c0(i){if(!i)throw new Error("Must call NaturalSidenavService.init() before using the service")}var pf=class i{destroyRef=x(_i);breakpointObserver=x(vr);router=x(Mi);sessionStorage=x(Eh);naturalSidenavStackService=x(l0);modes=["side","push"];mode=this.modes[0];opened=!0;tmpOpened=this.opened;minimized=!1;minimizedStorageKey="menu-minimized";openedStorageKey="menu-opened";minimizedStorageKeyWithName=null;openedStorageKeyWithName=null;_isMobileView=!1;get activeMode(){return this.mode}get isOpened(){return this.opened}get isMinimized(){return this.minimized}destroy(e){this.naturalSidenavStackService.unregister(e)}init(e,n,t=!1){if(!e||e==="")throw new Error('No sidenav name provided, use ');this.naturalSidenavStackService.register(n),this.minimizedStorageKeyWithName=e+"-"+this.minimizedStorageKey,this.openedStorageKeyWithName=e+"-"+this.openedStorageKey,this.minimized=this.getMinimizedStatus(),this.opened=this.getMenuOpenedStatus(),this.tmpOpened=this.opened;let r=null;this.breakpointObserver.observe([$r.XSmall,$r.Small]).pipe(ht(this.destroyRef)).subscribe(o=>{this._isMobileView=o.matches;let a=!this._isMobileView;this.mode=a?this.modes[0]:this.modes[1],(r===null||a!==r)&&(r=a,a||(this.tmpOpened=this.opened,this.opened=!1),a&&this.tmpOpened&&(this.opened=!0,this.minimized=this.getMinimizedStatus()))}),t&&this.router.events.pipe(ht(this.destroyRef),Re(o=>o instanceof Er)).subscribe(()=>{this.navItemClicked()})}isMobileView(){return this._isMobileView}navItemClicked(){this._isMobileView&&this.close()}setMinimized(e){this.minimized=e,c0(this.minimizedStorageKeyWithName),this.sessionStorage.setItem(this.minimizedStorageKeyWithName,e?"true":"false")}minimize(){this.setMinimized(!0)}expand(){this.setMinimized(!1)}toggleMinimized(){this.setMinimized(!this.minimized)}getMinimizedStatus(){c0(this.minimizedStorageKeyWithName);let e=this.sessionStorage.getItem(this.minimizedStorageKeyWithName);return e===null?!1:e==="true"}getMenuOpenedStatus(){c0(this.openedStorageKeyWithName);let e=this.sessionStorage.getItem(this.openedStorageKeyWithName);return e===null?!this._isMobileView:e==="true"}toggle(){this.setOpened(!this.opened)}close(){this.setOpened(!1)}open(){this.setOpened(!0)}setOpened(e){this.opened=e,this.opened&&this._isMobileView?this.minimized=!1:this._isMobileView||(c0(this.openedStorageKeyWithName),this.sessionStorage.setItem(this.openedStorageKeyWithName,this.opened?"true":"false"))}static \u0275fac=function(n){return new(n||i)};static \u0275prov=W({token:i,factory:i.\u0275fac,providedIn:"root"})};var tne=["*"],d0=class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["natural-sidenav"]],standalone:!0,features:[P],ngContentSelectors:tne,decls:1,vars:0,template:function(n,t){n&1&&(Me(),ae(0))},encapsulation:2})};var m0=["*"],ine=["content"],nne=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],rne=["mat-drawer","mat-drawer-content","*"];function one(i,e){if(i&1){let n=z();u(0,"div",1),w("click",function(){A(n);let r=C();return R(r._onBackdropClicked())}),m()}if(i&2){let n=C();se("mat-drawer-shown",n._isShowingBackdrop())}}function ane(i,e){i&1&&(u(0,"mat-drawer-content"),ae(1,2),m())}var sne=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],lne=["mat-sidenav","mat-sidenav-content","*"];function cne(i,e){if(i&1){let n=z();u(0,"div",1),w("click",function(){A(n);let r=C();return R(r._onBackdropClicked())}),m()}if(i&2){let n=C();se("mat-drawer-shown",n._isShowingBackdrop())}}function dne(i,e){i&1&&(u(0,"mat-sidenav-content"),ae(1,2),m())}var une='.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}',oL={transformDrawer:Vt("transform",[dt("open, open-instant",Ee({transform:"none",visibility:"visible"})),dt("void",Ee({"box-shadow":"none",visibility:"hidden"})),ot("void => open-instant",nt("0ms")),ot("void <=> open, open-instant => void",nt("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};var pne=new H("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:mne}),iE=new H("MAT_DRAWER_CONTAINER");function mne(){return!1}var u0=(()=>{let e=class e extends Po{constructor(t,r,o,a,s){super(o,a,s),this._changeDetectorRef=t,this._container=r}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}};e.\u0275fac=function(r){return new(r||e)(b(Se),b($t(()=>sL)),b(J),b($a),b(de))},e.\u0275cmp=F({type:e,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(r,o){r&2&&Gt("margin-left",o._container._contentMargins.left,"px")("margin-right",o._container._contentMargins.right,"px")},standalone:!0,features:[me([{provide:Po,useExisting:e}]),X,P],ngContentSelectors:m0,decls:1,vars:0,template:function(r,o){r&1&&(Me(),ae(0))},encapsulation:2,changeDetection:0});let i=e;return i})(),aL=(()=>{let e=class e{get position(){return this._position}set position(t){t=t==="end"?"end":"start",t!==this._position&&(this._isAttached&&this._updatePositionInParent(t),this._position=t,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=jt(t)}get autoFocus(){let t=this._autoFocus;return t??(this.mode==="side"?"dialog":"first-tabbable")}set autoFocus(t){(t==="true"||t==="false"||t==null)&&(t=jt(t)),this._autoFocus=t}get opened(){return this._opened}set opened(t){this.toggle(jt(t))}constructor(t,r,o,a,s,l,c,d){this._elementRef=t,this._focusTrapFactory=r,this._focusMonitor=o,this._platform=a,this._ngZone=s,this._interactivityChecker=l,this._doc=c,this._container=d,this._focusTrap=null,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new q,this._animationEnd=new q,this._animationState="void",this.openedChange=new $(!0),this._openedStream=this.openedChange.pipe(Re(p=>p),re(()=>{})),this.openedStart=this._animationStarted.pipe(Re(p=>p.fromState!==p.toState&&p.toState.indexOf("open")===0),rm(void 0)),this._closedStream=this.openedChange.pipe(Re(p=>!p),re(()=>{})),this.closedStart=this._animationStarted.pipe(Re(p=>p.fromState!==p.toState&&p.toState==="void"),rm(void 0)),this._destroyed=new q,this.onPositionChanged=new $,this._modeChanged=new q,this._injector=x(ze),this._changeDetectorRef=x(Se),this.openedChange.pipe(ye(this._destroyed)).subscribe(p=>{p?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{fr(this._elementRef.nativeElement,"keydown").pipe(Re(p=>p.keyCode===27&&!this.disableClose&&!Dt(p)),ye(this._destroyed)).subscribe(p=>this._ngZone.run(()=>{this.close(),p.stopPropagation(),p.preventDefault()}))}),this._animationEnd.pipe(jr((p,h)=>p.fromState===h.fromState&&p.toState===h.toState)).subscribe(p=>{let{fromState:h,toState:g}=p;(g.indexOf("open")===0&&h==="void"||g==="void"&&h.indexOf("open")===0)&&this.openedChange.emit(this._opened)})}_forceFocus(t,r){this._interactivityChecker.isFocusable(t)||(t.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{t.removeEventListener("blur",o),t.removeEventListener("mousedown",o),t.removeAttribute("tabindex")};t.addEventListener("blur",o),t.addEventListener("mousedown",o)})),t.focus(r)}_focusByCssSelector(t,r){let o=this._elementRef.nativeElement.querySelector(t);o&&this._forceFocus(o,r)}_takeFocus(){if(!this._focusTrap)return;let t=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":si(()=>{!this._focusTrap.focusInitialElement()&&typeof t.focus=="function"&&t.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(t){this.autoFocus!=="dialog"&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,t):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){let t=this._doc.activeElement;return!!t&&this._elementRef.nativeElement.contains(t)}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(t){return this.toggle(!0,t)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(t=!this.opened,r){t&&r&&(this._openedVia=r);let o=this._setOpen(t,!t&&this._isFocusWithinDrawer(),this._openedVia||"program");return t||(this._openedVia=null),o}_setOpen(t,r,o){return this._opened=t,t?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",r&&this._restoreFocus(o)),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(a=>{this.openedChange.pipe(pt(1)).subscribe(s=>a(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(t){if(!this._platform.isBrowser)return;let r=this._elementRef.nativeElement,o=r.parentNode;t==="end"?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),o.insertBefore(this._anchor,r)),o.appendChild(r)):this._anchor&&this._anchor.parentNode.insertBefore(r,this._anchor)}};e.\u0275fac=function(r){return new(r||e)(b(J),b(pc),b(wi),b(Le),b(de),b(Ps),b(pe,8),b(iE,8))},e.\u0275cmp=F({type:e,selectors:[["mat-drawer"]],viewQuery:function(r,o){if(r&1&&ve(ine,5),r&2){let a;K(a=Y())&&(o._content=a.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(r,o){r&1&&Id("@transform.start",function(s){return o._animationStarted.next(s)})("@transform.done",function(s){return o._animationEnd.next(s)}),r&2&&(kd("@transform",o._animationState),ne("align",null),se("mat-drawer-end",o.position==="end")("mat-drawer-over",o.mode==="over")("mat-drawer-push",o.mode==="push")("mat-drawer-side",o.mode==="side")("mat-drawer-opened",o.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:[P],ngContentSelectors:m0,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(r,o){r&1&&(Me(),u(0,"div",1,0),ae(2),m())},dependencies:[Po],encapsulation:2,data:{animation:[oL.transformDrawer]},changeDetection:0});let i=e;return i})(),sL=(()=>{let e=class e{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=jt(t)}get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(t){this._backdropOverride=t==null?null:jt(t)}get scrollable(){return this._userContent||this._content}constructor(t,r,o,a,s,l=!1,c){this._dir=t,this._element=r,this._ngZone=o,this._changeDetectorRef=a,this._animationMode=c,this._drawers=new gr,this.backdropClick=new $,this._destroyed=new q,this._doCheckSubject=new q,this._contentMargins={left:null,right:null},this._contentMarginChanges=new q,this._injector=x(ze),t&&t.change.pipe(ye(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),s.change().pipe(ye(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=l}ngAfterContentInit(){this._allDrawers.changes.pipe(Ye(this._allDrawers),ye(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(r=>!r._container||r._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Ye(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Dn(10),ye(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(t=>t.open())}close(){this._drawers.forEach(t=>t.close())}updateContentMargins(){let t=0,r=0;if(this._left&&this._left.opened){if(this._left.mode=="side")t+=this._left._getWidth();else if(this._left.mode=="push"){let o=this._left._getWidth();t+=o,r-=o}}if(this._right&&this._right.opened){if(this._right.mode=="side")r+=this._right._getWidth();else if(this._right.mode=="push"){let o=this._right._getWidth();r+=o,t-=o}}t=t||null,r=r||null,(t!==this._contentMargins.left||r!==this._contentMargins.right)&&(this._contentMargins={left:t,right:r},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(t){t._animationStarted.pipe(Re(r=>r.fromState!==r.toState),ye(this._drawers.changes)).subscribe(r=>{r.toState!=="open-instant"&&this._animationMode!=="NoopAnimations"&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),t.mode!=="side"&&t.openedChange.pipe(ye(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe(ye(this._drawers.changes)).subscribe(()=>{si(()=>{this._validateDrawers()},{injector:this._injector,phase:hD.Read})})}_watchDrawerMode(t){t&&t._modeChanged.pipe(ye(Ge(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(t){let r=this._element.nativeElement.classList,o="mat-drawer-container-has-open";t?r.add(o):r.remove(o)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{t.position=="end"?(this._end!=null,this._end=t):(this._start!=null,this._start=t)}),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(t=>t&&!t.disableClose&&this._drawerHasBackdrop(t)).forEach(t=>t._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(t){return t!=null&&t.opened}_drawerHasBackdrop(t){return this._backdropOverride==null?!!t&&t.mode!=="side":this._backdropOverride}};e.\u0275fac=function(r){return new(r||e)(b(vt,8),b(J),b(de),b(Se),b(tr),b(pne),b(gt,8))},e.\u0275cmp=F({type:e,selectors:[["mat-drawer-container"]],contentQueries:function(r,o,a){if(r&1&&(Ie(a,u0,5),Ie(a,aL,5)),r&2){let s;K(s=Y())&&(o._content=s.first),K(s=Y())&&(o._allDrawers=s)}},viewQuery:function(r,o){if(r&1&&ve(u0,5),r&2){let a;K(a=Y())&&(o._userContent=a.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(r,o){r&2&&se("mat-drawer-container-explicit-backdrop",o._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],standalone:!0,features:[me([{provide:iE,useExisting:e}]),P],ngContentSelectors:rne,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(r,o){r&1&&(Me(nne),M(0,one,1,2,"div",0),ae(1),ae(2,1),M(3,ane,2,0,"mat-drawer-content")),r&2&&(k(o.hasBackdrop?0:-1),f(3),k(o._content?-1:3))},dependencies:[u0],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});let i=e;return i})(),p0=(()=>{let e=class e extends u0{constructor(t,r,o,a,s){super(t,r,o,a,s)}};e.\u0275fac=function(r){return new(r||e)(b(Se),b($t(()=>nE)),b(J),b($a),b(de))},e.\u0275cmp=F({type:e,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(r,o){r&2&&Gt("margin-left",o._container._contentMargins.left,"px")("margin-right",o._container._contentMargins.right,"px")},standalone:!0,features:[me([{provide:Po,useExisting:e}]),X,P],ngContentSelectors:m0,decls:1,vars:0,template:function(r,o){r&1&&(Me(),ae(0))},encapsulation:2,changeDetection:0});let i=e;return i})(),mf=(()=>{let e=class e extends aL{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=jt(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=In(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=In(t)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275cmp=F({type:e,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(r,o){r&2&&(ne("align",null),Gt("top",o.fixedInViewport?o.fixedTopGap:null,"px")("bottom",o.fixedInViewport?o.fixedBottomGap:null,"px"),se("mat-drawer-end",o.position==="end")("mat-drawer-over",o.mode==="over")("mat-drawer-push",o.mode==="push")("mat-drawer-side",o.mode==="side")("mat-drawer-opened",o.opened)("mat-sidenav-fixed",o.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],standalone:!0,features:[X,P],ngContentSelectors:m0,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(r,o){r&1&&(Me(),u(0,"div",1,0),ae(2),m())},dependencies:[Po],encapsulation:2,data:{animation:[oL.transformDrawer]},changeDetection:0});let i=e;return i})(),nE=(()=>{let e=class e extends sL{constructor(){super(...arguments),this._allDrawers=void 0,this._content=void 0}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275cmp=F({type:e,selectors:[["mat-sidenav-container"]],contentQueries:function(r,o,a){if(r&1&&(Ie(a,p0,5),Ie(a,mf,5)),r&2){let s;K(s=Y())&&(o._content=s.first),K(s=Y())&&(o._allDrawers=s)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(r,o){r&2&&se("mat-drawer-container-explicit-backdrop",o._backdropOverride)},exportAs:["matSidenavContainer"],standalone:!0,features:[me([{provide:iE,useExisting:e}]),X,P],ngContentSelectors:lne,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(r,o){r&1&&(Me(sne),M(0,cne,1,2,"div",0),ae(1),ae(2,1),M(3,dne,2,0,"mat-sidenav-content")),r&2&&(k(o.hasBackdrop?0:-1),f(3),k(o._content?-1:3))},dependencies:[p0],styles:[une],encapsulation:2,changeDetection:0});let i=e;return i})(),lL=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({imports:[De,er,er,De]});let i=e;return i})();var fne=[[["natural-sidenav"]],[["natural-sidenav-content"]]],gne=["natural-sidenav","natural-sidenav-content"],h0=class i{sidenavService=x(pf);name;position="start";mobileAutoClose=!0;minimizedWidth=150;noScroll=!1;menuSidenav;get isMinimized(){return this.sidenavService.isMinimized}get isMobileView(){return this.sidenavService.isMobileView()}ngOnInit(){this.sidenavService.init(this.name,this,this.mobileAutoClose)}ngOnDestroy(){this.sidenavService.destroy(this)}toggle(){this.sidenavService.toggle()}close(){this.sidenavService.close()}open(){this.sidenavService.open()}minimize(){this.sidenavService.minimize()}expand(){this.sidenavService.expand()}toggleMinimized(){this.sidenavService.toggleMinimized()}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["natural-sidenav-container"]],viewQuery:function(n,t){if(n&1&&ve(mf,7),n&2){let r;K(r=Y())&&(t.menuSidenav=r.first)}},hostVars:1,hostBindings:function(n,t){n&2&&ne("no-scroll",t.noScroll)},inputs:{name:"name",position:"position",mobileAutoClose:"mobileAutoClose",minimizedWidth:"minimizedWidth",noScroll:"noScroll"},standalone:!0,features:[me([pf]),P],ngContentSelectors:gne,decls:6,vars:8,consts:[[3,"backdropClick"],[3,"mode","ngClass","opened","position"]],template:function(n,t){n&1&&(Me(fne),u(0,"mat-sidenav-container",0),w("backdropClick",function(){return t.sidenavService.setOpened(!1)}),u(1,"mat-sidenav",1),ae(2),m(),u(3,"mat-sidenav-content")(4,"div"),ae(5,1),m()()()),n&2&&(f(),Gt("min-width",t.sidenavService.isMinimized&&t.minimizedWidth?t.minimizedWidth:null,"px")("width",t.sidenavService.isMinimized&&t.minimizedWidth?t.minimizedWidth:null,"px"),v("mode",t.sidenavService.activeMode)("ngClass",t.sidenavService.isMinimized?"menuMinimized":"")("opened",t.sidenavService.isOpened)("position",t.position))},dependencies:[lL,mf,nE,p0,Pe,_r],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] mat-sidenav-container[_ngcontent-%COMP%]{display:flex;flex:1;flex-direction:column}[_nghost-%COMP%] mat-sidenav-content[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{overflow:auto}[_nghost-%COMP%] .menuMinimized[_ngcontent-%COMP%]{overflow-x:hidden}[_nghost-%COMP%] .buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-end}"]})};var _ne=["*"],f0=class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["natural-sidenav-content"]],standalone:!0,features:[P],ngContentSelectors:_ne,decls:1,vars:0,template:function(n,t){n&1&&(Me(),ae(0))},styles:["[_nghost-%COMP%]{display:flex;flex:1;flex-direction:column;overflow:auto}"]})};function bne(i,e){if(i&1&&T(0,"mat-icon",0),i&2){let n=C(2);v("naturalIcon",n.icon)}}function vne(i,e){if(i&1&&(u(0,"span"),y(1),m()),i&2){let n=C(2);f(),ge(n.label)}}function yne(i,e){if(i&1&&(u(0,"span"),M(1,bne,1,1,"mat-icon",0)(2,vne,2,1,"span"),m()),i&2){let n=C();f(),k(n.icon?1:-1),f(),k(n.label?2:-1)}}function Cne(i,e){if(i&1&&T(0,"mat-icon",0),i&2){let n=C(3);v("naturalIcon",n.icon)}}function xne(i,e){if(i&1&&(u(0,"a",1),M(1,Cne,1,1,"mat-icon",0),u(2,"span"),y(3),m()()),i&2){let n=C(2);v("color",n.color)("queryParams",n.queryParams)("queryParamsHandling",n.queryParamsHandling)("routerLink",n.navigate)("fragment",n.fragment)("preserveFragment",n.preserveFragment)("disabled",n.disabled),f(),k(n.icon?1:-1),f(2),ge(n.label)}}function wne(i,e){if(i&1&&T(0,"mat-icon",0),i&2){let n=C(3);v("naturalIcon",n.icon)}}function Sne(i,e){if(i&1&&(u(0,"a",2),M(1,wne,1,1,"mat-icon",0),m()),i&2){let n=C(2);v("color",n.color)("queryParams",n.queryParams)("queryParamsHandling",n.queryParamsHandling)("routerLink",n.navigate)("fragment",n.fragment)("preserveFragment",n.preserveFragment)("disabled",n.disabled),f(),k(n.icon?1:-1)}}function Ene(i,e){if(i&1&&T(0,"mat-icon",0),i&2){let n=C(3);v("naturalIcon",n.icon)}}function Tne(i,e){if(i&1){let n=z();u(0,"a",7),w("click",function(r){A(n);let o=C(2);return R(o.buttonClick.emit(r))}),M(1,Ene,1,1,"mat-icon",0),u(2,"span"),y(3),m()()}if(i&2){let n=C(2);v("color",n.color)("disabled",n.disabled),f(),k(n.icon?1:-1),f(2),ge(n.label)}}function Dne(i,e){if(i&1&&T(0,"mat-icon",0),i&2){let n=C(3);v("naturalIcon",n.icon)}}function kne(i,e){if(i&1){let n=z();u(0,"a",8),w("click",function(r){A(n);let o=C(2);return R(o.buttonClick.emit(r))}),M(1,Dne,1,1,"mat-icon",0),m()}if(i&2){let n=C(2);v("disabled",n.disabled),f(),k(n.icon?1:-1)}}function Ine(i,e){if(i&1&&T(0,"mat-icon",0),i&2){let n=C(3);v("naturalIcon",n.icon)}}function Mne(i,e){if(i&1&&(u(0,"a",5),M(1,Ine,1,1,"mat-icon",0),u(2,"span"),y(3),m()()),i&2){let n=C(2);v("color",n.color)("disabled",n.disabled),ne("href",n.href,ro),f(),k(n.icon?1:-1),f(2),ge(n.label)}}function One(i,e){if(i&1&&T(0,"mat-icon",0),i&2){let n=C(3);v("naturalIcon",n.icon)}}function Ane(i,e){if(i&1&&(u(0,"a",6),M(1,One,1,1,"mat-icon",0),m()),i&2){let n=C(2);v("color",n.color)("disabled",n.disabled),ne("href",n.href,ro),f(),k(n.icon?1:-1)}}function Rne(i,e){if(i&1&&M(0,xne,4,9,"a",1)(1,Sne,2,8,"a",2)(2,Tne,4,4,"a",3)(3,kne,2,2,"a",4)(4,Mne,4,5,"a",5)(5,Ane,2,4,"a",6),i&2){let n=C();k(n.type==="routerLink"&&n.label?0:-1),f(),k(n.type==="routerLink"&&!n.label?1:-1),f(),k(n.type==="click"&&n.label?2:-1),f(),k(n.type==="click"&&!n.label?3:-1),f(),k(n.type==="href"&&n.label?4:-1),f(),k(n.type==="href"&&!n.label?5:-1)}}function Nne(i,e){if(i&1&&T(0,"mat-icon",0),i&2){let n=C(3);v("naturalIcon",n.icon)}}function Fne(i,e){if(i&1&&(u(0,"a",9),M(1,Nne,1,1,"mat-icon",0),u(2,"span"),y(3),m()()),i&2){let n=C(2);v("color",n.color)("queryParams",n.queryParams)("queryParamsHandling",n.queryParamsHandling)("routerLink",n.navigate)("fragment",n.fragment)("preserveFragment",n.preserveFragment)("disabled",n.disabled),f(),k(n.icon?1:-1),f(2),ge(n.label)}}function Pne(i,e){if(i&1&&T(0,"mat-icon",0),i&2){let n=C(3);v("naturalIcon",n.icon)}}function Lne(i,e){if(i&1&&(u(0,"a",10),M(1,Pne,1,1,"mat-icon",0),m()),i&2){let n=C(2);v("color",n.color)("queryParams",n.queryParams)("queryParamsHandling",n.queryParamsHandling)("routerLink",n.navigate)("fragment",n.fragment)("preserveFragment",n.preserveFragment)("disabled",n.disabled),f(),k(n.icon?1:-1)}}function Vne(i,e){if(i&1&&T(0,"mat-icon",0),i&2){let n=C(3);v("naturalIcon",n.icon)}}function jne(i,e){if(i&1){let n=z();u(0,"a",15),w("click",function(r){A(n);let o=C(2);return R(o.buttonClick.emit(r))}),M(1,Vne,1,1,"mat-icon",0),u(2,"span"),y(3),m()()}if(i&2){let n=C(2);v("color",n.color)("disabled",n.disabled),f(),k(n.icon?1:-1),f(2),ge(n.label)}}function Bne(i,e){if(i&1&&T(0,"mat-icon",0),i&2){let n=C(3);v("naturalIcon",n.icon)}}function zne(i,e){if(i&1){let n=z();u(0,"a",16),w("click",function(r){A(n);let o=C(2);return R(o.buttonClick.emit(r))}),M(1,Bne,1,1,"mat-icon",0),m()}if(i&2){let n=C(2);v("color",n.color)("disabled",n.disabled),f(),k(n.icon?1:-1)}}function Hne(i,e){if(i&1&&T(0,"mat-icon",0),i&2){let n=C(3);v("naturalIcon",n.icon)}}function Une(i,e){if(i&1&&(u(0,"a",13),M(1,Hne,1,1,"mat-icon",0),u(2,"span"),y(3),m()()),i&2){let n=C(2);v("color",n.color)("disabled",n.disabled),ne("href",n.href,ro),f(),k(n.icon?1:-1),f(2),ge(n.label)}}function $ne(i,e){if(i&1&&T(0,"mat-icon",0),i&2){let n=C(3);v("naturalIcon",n.icon)}}function Gne(i,e){if(i&1&&(u(0,"a",14),M(1,$ne,1,1,"mat-icon",0),m()),i&2){let n=C(2);v("color",n.color)("disabled",n.disabled),ne("href",n.href,ro),f(),k(n.icon?1:-1)}}function qne(i,e){if(i&1&&M(0,Fne,4,9,"a",9)(1,Lne,2,8,"a",10)(2,jne,4,4,"a",11)(3,zne,2,3,"a",12)(4,Une,4,5,"a",13)(5,Gne,2,4,"a",14),i&2){let n=C();k(n.type==="routerLink"&&n.label?0:-1),f(),k(n.type==="routerLink"&&!n.label?1:-1),f(),k(n.type==="click"&&n.label?2:-1),f(),k(n.type==="click"&&!n.label?3:-1),f(),k(n.type==="href"&&n.label?4:-1),f(),k(n.type==="href"&&!n.label?5:-1)}}var zl=class i{queryParams={};queryParamsHandling="";label;icon;href;navigate=[];fragment;preserveFragment=!1;disabled=!1;raised=!1;color;buttonClick=new $;type="none";ngOnChanges(){this.navigate instanceof Vo||this.navigate?.length||Object.keys(this.queryParams).length?this.type="routerLink":this.href?this.type="href":this.buttonClick.observed?this.type="click":this.type="none"}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["natural-table-button"]],inputs:{queryParams:"queryParams",queryParamsHandling:"queryParamsHandling",label:"label",icon:"icon",href:"href",navigate:"navigate",fragment:"fragment",preserveFragment:"preserveFragment",disabled:"disabled",raised:"raised",color:"color"},outputs:{buttonClick:"buttonClick"},standalone:!0,features:[Ne,P],decls:3,vars:3,consts:[[3,"naturalIcon"],["mat-button","",3,"color","queryParams","queryParamsHandling","routerLink","fragment","preserveFragment","disabled"],["mat-icon-button","",3,"color","queryParams","queryParamsHandling","routerLink","fragment","preserveFragment","disabled"],["mat-button","",3,"color","disabled"],["mat-icon-button","",3,"disabled"],["mat-button","","target","_blank",3,"color","disabled"],["mat-icon-button","","target","_blank",3,"color","disabled"],["mat-button","",3,"click","color","disabled"],["mat-icon-button","",3,"click","disabled"],["mat-raised-button","",3,"color","queryParams","queryParamsHandling","routerLink","fragment","preserveFragment","disabled"],["mat-icon-button","",1,"mat-elevation-z4",3,"color","queryParams","queryParamsHandling","routerLink","fragment","preserveFragment","disabled"],["mat-raised-button","",3,"color","disabled"],["mat-icon-button","",1,"mat-elevation-z4",3,"color","disabled"],["mat-raised-button","","target","_blank",3,"color","disabled"],["mat-icon-button","","target","_blank",1,"mat-elevation-z4",3,"color","disabled"],["mat-raised-button","",3,"click","color","disabled"],["mat-icon-button","",1,"mat-elevation-z4",3,"click","color","disabled"]],template:function(n,t){n&1&&M(0,yne,3,2,"span")(1,Rne,6,6)(2,qne,6,6),n&2&&(k(t.type==="none"?0:-1),f(),k(t.raised?-1:1),f(),k(t.raised?2:-1))},dependencies:[It,wt,Mt,we,Cr,zd,Ei],styles:[`natural-table-button{display:flex;flex:1;flex-direction:row;justify-content:flex-start;align-items:center}natural-table-button mat-icon:not(:last-child){margin-right:5px}natural-table-button a.mat-mdc-button{display:flex;flex:1;flex-direction:row;justify-content:flex-start;align-items:center}natural-table-button a.mat-mdc-button .mdc-button__label{display:flex;flex-direction:row;align-items:center}natural-table-button>span{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;padding:0 8px} +`],encapsulation:2})};var Hl=class{constructor(e){this.value=e;this.value=e}getValue(){return this.value}};function cL(i){let e=Xne(Jne(i)),n=7,t=12,r=17,o=22,a=5,s=9,l=14,c=20,d=4,p=11,h=16,g=23,_=6,S=10,E=15,D=21,O=1732584193,I=4023233417,L=2562383102,V=271733878;for(let Z=0;Z>>32-e}function Wne(i,e,n){return i&e|~i&n}function Qne(i,e,n){return i&n|e&~n}function Kne(i,e,n){return i^e^n}function Yne(i,e,n){return e^(i|~n)}function zn(i,e,n,t,r,o,a){return i=qi(i,qi(qi(Wne(e,n,t),r),a)),qi(_0(i,o),e)}function Hn(i,e,n,t,r,o,a){return i=qi(i,qi(qi(Qne(e,n,t),r),a)),qi(_0(i,o),e)}function Un(i,e,n,t,r,o,a){return i=qi(i,qi(qi(Kne(e,n,t),r),a)),qi(_0(i,o),e)}function $n(i,e,n,t,r,o,a){return i=qi(i,qi(qi(Yne(e,n,t),r),a)),qi(_0(i,o),e)}function Xne(i){let e,n=i.length,t=n+8,o=((t-t%64)/64+1)*16,a=Array(o-1),s=0,l=0;for(;l>>29,a}function g0(i){let e="",n="",t,r;for(r=0;r<=3;r++)t=i>>>r*8&255,n="0"+t.toString(16),e=e+n.substr(n.length-2,2);return e}function Jne(i){let e="",n;i=i.replace(/\r\n/g,` +`);for(let t=0;t127&&n<2048?(e+=String.fromCharCode(n>>6|192),e+=String.fromCharCode(n&63|128)):(e+=String.fromCharCode(n>>12|224),e+=String.fromCharCode(n>>6&63|128),e+=String.fromCharCode(n&63|128));return e}function Zne(){let i=window;return i?.devicePixelRatio>1.25?!0:!!i?.matchMedia("(-webkit-min-device-pixel-ratio: 1.25), (min--moz-device-pixel-ratio: 1.25), (-o-min-device-pixel-ratio: 5/4), (min-resolution: 1.25dppx)").matches}var b0=class extends Hl{getAvatar(e){let n=this.getValue(),t=/^[a-f0-9]{32}$/.exec(n)?n:cL(n.trim().toLowerCase()).toString(),r=Zne()?e*2:e;return`https://secure.gravatar.com/avatar/${t}?s=${r}&d=404`}isTextual(){return!1}};function ere(i,e){if(i=i.replace(/\([^)]*\)/g,""),i=i.trim(),i.length<=e)return i.toUpperCase();if(i=i.replace(/[^\p{L}\p{N}\s]/gu,""),!i)return"";let n=i.split(/\s+/);return e&&et.length>0).map(t=>t[0]).join("").toUpperCase()}var v0=class extends Hl{getAvatar(e){return ere(this.getValue(),e)}isTextual(){return!0}};var y0=class extends Hl{getAvatar(){return this.getValue()}isTextual(){return!1}};var C0=class i{sourceCreators=new Map([["gravatar",b0],["image",y0],["initials",v0]]);avatarColors=["#e37900","#e6b102","#00bbbb","#008cff","#d9138c","#7321d1","#3b3b3b"];failedSources=new Map;getRandomColor(e){if(!e)return"transparent";let n=this.calculateAsciiCode(e);return this.avatarColors[n%this.avatarColors.length]}getCreators(){return this.sourceCreators.entries()}getSourceKey(e){return e.constructor.name+"-"+e.getValue()}sourceHasFailedBefore(e){return this.failedSources.has(this.getSourceKey(e))}markSourceAsFailed(e){this.failedSources.set(this.getSourceKey(e),e)}calculateAsciiCode(e){return e.split("").map(n=>n.charCodeAt(0)).reduce((n,t)=>n+t)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=W({token:i,factory:i.\u0275fac,providedIn:"root"})};function tre(i,e){if(i&1){let n=z();u(0,"img",3),w("error",function(){A(n);let r=C();return R(r.tryNextSource())}),m()}if(i&2){let n=C();v("src",n.avatarSrc,ro)("width",n.size)("height",n.size)("ngStyle",n.avatarStyle)}}function ire(i,e){if(i&1&&(u(0,"div",4),y(1),m()),i&2){let n=C();se("natural-elevation",n.decorated),v("ngStyle",n.avatarStyle),f(),ue(" ",n.avatarText," ")}}var x0=class i{avatarService=x(C0);image;initials;gravatar;size=50;decorated=!0;textSizeRatio=2.25;bgColor;fgColor="#FFF";borderRadius="";textMaximumLength=2;avatarSrc=null;avatarText=null;avatarStyle={};hostStyle={};currentIndex=-1;sources=[];ngOnChanges(e){this.sources.length=0;for(let[n,t]of this.avatarService.getCreators()){if(!e[n])continue;let r=e[n].currentValue;r&&typeof r=="string"&&this.sources.push(new t(r))}this.initializeAvatar()}tryNextSource(){let e=this.sources[this.currentIndex];e&&this.avatarService.markSourceAsFailed(e);let n=this.findNextSource();if(!n){this.clearAvatar();return}n.isTextual()?this.buildTextAvatar(n):this.buildImageAvatar(n)}findNextSource(){for(;++this.currentIndex0&&(this.tryNextSource(),this.hostStyle={width:this.size+"px",height:this.size+"px"})}clearAvatar(){this.avatarSrc=null,this.avatarText=null,this.avatarStyle={}}buildTextAvatar(e){this.clearAvatar(),this.avatarText=e.getAvatar(+this.textMaximumLength),this.avatarStyle=this.getTextualStyle(e.getValue())}buildImageAvatar(e){this.clearAvatar(),this.avatarSrc=e.getAvatar(+this.size),this.avatarStyle=this.getImageStyle()}getTextualStyle(e){return{textAlign:"center",borderRadius:this.borderRadius||"100%",textTransform:"uppercase",color:this.fgColor,backgroundColor:this.bgColor?this.bgColor:this.avatarService.getRandomColor(e),font:Math.floor(+this.size/this.textSizeRatio)+"px Helvetica, Arial, sans-serif",lineHeight:this.size+"px",width:this.size+"px",height:this.size+"px"}}getImageStyle(){return{maxWidth:"100%",borderRadius:this.borderRadius||"100%",width:this.size+"px",height:this.size+"px"}}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["natural-avatar"]],hostVars:6,hostBindings:function(n,t){n&2&&(Gt("height",t.size,"px")("width",t.size,"px"),se("decorated",t.decorated))},inputs:{image:"image",initials:"initials",gravatar:"gravatar",size:"size",decorated:"decorated",textSizeRatio:"textSizeRatio",bgColor:"bgColor",fgColor:"fgColor",borderRadius:"borderRadius",textMaximumLength:"textMaximumLength"},standalone:!0,features:[Ne,P],decls:3,vars:3,consts:[[1,"avatar-container",3,"ngStyle"],["loading","lazy",1,"avatar-content",3,"src","width","height","ngStyle"],[1,"avatar-content",3,"natural-elevation","ngStyle"],["loading","lazy",1,"avatar-content",3,"error","src","width","height","ngStyle"],[1,"avatar-content",3,"ngStyle"]],template:function(n,t){n&1&&(u(0,"div",0),M(1,tre,1,4,"img",1)(2,ire,2,4,"div",2),m()),n&2&&(v("ngStyle",t.hostStyle),f(),k(t.avatarSrc?1:-1),f(),k(t.avatarText?2:-1))},dependencies:[Pe,kD],styles:['[_nghost-%COMP%]{display:block}.decorated[_nghost-%COMP%]{position:relative}.decorated[_nghost-%COMP%] .avatar-container[_ngcontent-%COMP%]:before{position:absolute;inset:0;border-radius:50%;background:linear-gradient(345deg,#fff0 25%,#ffffff54);content:""}.decorated[_nghost-%COMP%] .avatar-content[_ngcontent-%COMP%]{text-shadow:0 1px 0 rgba(0,0,0,.6)}']})};var rE=new H("Absolute URL of the log server"),oE=new H("Class that may provide extra data to log"),w0=class i extends Ro{http=x(sc);document=x(pe);url=x(rE,{optional:!0});loggerExtra=x(oE,{optional:!0});constructor(){super()}handleError(e){console.error(e);let n={message:this.toMessage(e),href:this.document.defaultView?.window.location.href,host:this.document.defaultView?.window.location.hostname,path:this.document.defaultView?.window.location.pathname,agent:this.document.defaultView?.window.navigator.userAgent,level:"error"};e?.stack&&(n.stacktrace=e.stack),typeof e?.status<"u"&&(n.status=e.status),e?.referrer&&(n.referrer=e.referrer),e?.url&&(n.url=e.url),this.loggerExtra?this.loggerExtra.getExtras(e).pipe(Xn(t=>U({getExtrasErrorMessage:this.toMessage(t)})),Ji()).subscribe(t=>{this.postLog(Object.assign(n,t))}):this.postLog(n)}toMessage(e){return e&&typeof e=="object"&&"message"in e?""+e.message:""+e}postLog(e){this.url&&this.http.post(this.url,e,{headers:new No().set("content-type","application/json")}).pipe(Xn(()=>Ht)).subscribe()}static \u0275fac=function(n){return new(n||i)};static \u0275prov=W({token:i,factory:i.\u0275fac,providedIn:"root"})};function aE(i,e){let n=[{provide:Ro,useClass:w0},{provide:rE,useValue:i}];return e&&n.push({provide:oE,useClass:e}),n}function nre(i){if(!i)return i;let e=/^(https?):\/\//i.test(i),n="https://".startsWith(i)||"http://".startsWith(i);return!e&&!n?"http://"+i:i}var S0=class i{naturalHttpPrefix=null;httpize(e){if(this.naturalHttpPrefix){let n=nre(e)||e;e!==n&&this.naturalHttpPrefix.setValue(n)}}static \u0275fac=function(n){return new(n||i)};static \u0275dir=B({type:i,selectors:[["","naturalHttpPrefix",""]],hostBindings:function(n,t){n&1&&w("ngModelChange",function(o){return t.httpize(o)})},inputs:{naturalHttpPrefix:"naturalHttpPrefix"},standalone:!0})};var sE=[YT([Nn,UR]),RN,NN];var Kt=class i extends Al{id=1;cachedPaginatedItems=new E0;cachedCount=new E0;constructor(){super("user",null,null,null,null,null)}getItem(e=!1,n=0,t){let r=t??this.id++;return Lu({__typename:"Item",id:""+r,name:"name-"+r,description:"description-"+r,children:Lu(e?[this.getItem(),this.getItem()]:[]),parent:n>0?this.getItem(e,n-1):null})}getItems(e){let n=this.cachedPaginatedItems.get(e,()=>{let t=e.variables.value?.filter?.groups?.[0]?.conditions?.[0]?.id?.in?.values;if(t){let r=t.map(o=>this.getItem(!0,0,o));return Lu({items:r,length:r.length,pageIndex:0,pageSize:Math.max(5,r.length)})}else return Lu({items:[this.getItem(!0),this.getItem(!0),this.getItem(!0),this.getItem(!0),this.getItem(!0)],length:20,pageIndex:0,pageSize:5})});return U(n).pipe(ai(500))}watchAll(e){return e.variables.pipe(qe(()=>this.getItems(e)))}getAll(e){return this.getItems(e)}getOne(e){return U(this.getItem(!0,2,e))}watchOne(e){let n=this.getItem(!0,2,e);return Pa(U(n),U(ce(N({},n),{name:n.name+" cache update 1"})).pipe(ai(1e3)),U(ce(N({},n),{name:n.name+" cache update 2"})).pipe(ai(1e3)),dC)}getDefaultForServer(){return{name:"",description:"",children:[],parent:null}}getFormValidators(){return{name:[tt.required,tt.maxLength(10)],description:[tt.maxLength(20)]}}count(e){let n=this.cachedCount.get(e,()=>{let t=[0,5,10];return t[Math.floor(Math.random()*t.length)]});return U(n).pipe(ai(500),HT(dC))}create(e){return U(ce(N({},e),{id:this.id++,__typename:"Item"})).pipe(ai(500))}delete(e){return U(!0).pipe(ai(500))}static \u0275fac=function(n){return new(n||i)};static \u0275prov=W({token:i,factory:i.\u0275fac,providedIn:"root"})},E0=class{cache=new Map;get(e,n){let t=this.getCacheKey(e),r=this.cache.get(t);return typeof r>"u"&&(r=n(),this.cache.set(t,r)),r}getCacheKey(e){let n=Jr(e.variables.value??{});return n&&(n.filter??={}),this.stringify(n)}stringify(e){let n=[];return JSON.stringify(e,(t,r)=>(n.push(t),r)),n.sort(),JSON.stringify(e,n)}};function dL(i){let e=x(Kt);return console.warn("resolve Item"),e.resolve(i.params.id)}function lE(){let i=x(Kt);return console.warn("resolve hardcoded Item"),i.resolve("123")}var T0=class i{alertService=x(_a);confirm(){this.alertService.confirm("Confirm example","Are you sure ?","Do it !").subscribe(e=>console.log("confirmation result:",e))}error(){this.alertService.error("Something bad happened")}info(){this.alertService.info("Useful information")}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["app-panels"]],standalone:!0,features:[P],decls:9,vars:0,consts:[[1,"mat-headline-4"],[1,"nat-horizontal","nat-gap-10"],["mat-flat-button","",3,"click"]],template:function(n,t){n&1&&(u(0,"h1",0),y(1,"NaturalAlertService"),m(),u(2,"div",1)(3,"a",2),w("click",function(){return t.confirm()}),y(4,"alertService.confirm()"),m(),u(5,"a",2),w("click",function(){return t.error()}),y(6,"alertService.error()"),m(),u(7,"a",2),w("click",function(){return t.info()}),y(8,"alertService.info()"),m()())},dependencies:[we,Cr],encapsulation:2})};function rre(i,e){i&1&&(u(0,"span"),T(1,"natural-avatar",33),m())}var D0=class i{failedSources=[];static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["ng-component"]],standalone:!0,features:[P],decls:55,vars:3,consts:[[1,"mat-headline-4"],[1,"nat-vertical","nat-gap-30"],[1,"mat-h2"],[1,"nat-horizontal","nat-gap-10"],["gravatar","webmaster@ecodev.ch"],["gravatar","5fa7e880db8ff6741e0268ff52c22057"],["image","assets/logo.svg"],["initials","John Doe"],["gravatar","non-existing-email@example.com","image","assets/logo.svg"],["gravatar","non-existing-email@example.com","initials","John Doe"],["gravatar","non-existing-email@example.com","initials",""],["initials","asdf - qwer"],["initials","asdf (qwer)"],["initials","asdf / qwer"],["initials","auto color 1"],["initials","auto color 2"],["initials","auto color 3"],["initials","auto color 4"],["initials","auto color 5"],["initials","auto color 6"],["initials","auto color 7"],["initials","auto color 8"],["initials","auto color 9"],["initials","auto color 10"],["initials","auto color 11"],["gravatar","5fa7e880db8ff6741e0268ff52c22057",3,"size"],["gravatar","5fa7e880db8ff6741e0268ff52c22057","borderRadius","15%"],["gravatar","5fa7e880db8ff6741e0268ff52c22057","borderRadius","0"],["initials","Aaa Bbb Ccc Ddd Eee"],["initials","Aaa Bbb Ccc Ddd Eee","bgColor","pink","fgColor","black"],["initials","Aaa Bbb Ccc Ddd Eee",3,"textMaximumLength"],["initials","Aaa Bbb Ccc Ddd Eee",3,"textSizeRatio"],["mat-raised-button","",3,"click"],["initials","failing","gravatar","invalid-are-not-retried@example.com"]],template:function(n,t){n&1&&(u(0,"h1",0),y(1,"natural-avatar"),m(),u(2,"div",1)(3,"h2",2),y(4,"Avatar from different sources"),m(),u(5,"div",3),T(6,"natural-avatar",4)(7,"natural-avatar",5)(8,"natural-avatar",6)(9,"natural-avatar",7),m(),u(10,"h2",2),y(11,"Avatar with fallback"),m(),u(12,"div",3),T(13,"natural-avatar",8)(14,"natural-avatar",9)(15,"natural-avatar",10),m(),u(16,"h2",2),y(17,"Ignore special chars"),m(),u(18,"div",3),T(19,"natural-avatar",11)(20,"natural-avatar",12)(21,"natural-avatar",13),m(),u(22,"h2",2),y(23,"Colors"),m(),u(24,"div",3),T(25,"natural-avatar",14)(26,"natural-avatar",15)(27,"natural-avatar",16)(28,"natural-avatar",17)(29,"natural-avatar",18)(30,"natural-avatar",19)(31,"natural-avatar",20)(32,"natural-avatar",21)(33,"natural-avatar",22)(34,"natural-avatar",23)(35,"natural-avatar",24),m(),u(36,"h2",2),y(37,"Misc"),m(),u(38,"div",3),T(39,"natural-avatar",5)(40,"natural-avatar",25)(41,"natural-avatar",26)(42,"natural-avatar",27)(43,"natural-avatar",28)(44,"natural-avatar",29)(45,"natural-avatar",30)(46,"natural-avatar",31),m(),u(47,"h2",2),y(48,"Failed sources are not retried"),m(),u(49,"div")(50,"button",32),w("click",function(){return t.failedSources.push(t.failedSources.length)}),y(51,"Add 1 failing source"),m()(),u(52,"div",3),He(53,rre,2,0,"span",null,Tt),m()()),n&2&&(f(40),v("size",100),f(5),v("textMaximumLength",2),f(),v("textSizeRatio",5),f(7),Ue(t.failedSources))},dependencies:[x0,we,Ze],styles:["natural-avatar[_ngcontent-%COMP%]{display:inline-block}"]})};var ore=()=>["admin","product"],k0=class i{model={};static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["app-detail-header"]],standalone:!0,features:[P],decls:35,vars:7,consts:[[1,"nat-vertical",2,"gap","80px"],[1,"mat-headline-4"],["mat-raised-button","",3,"click"],[1,"mat-h2"],["newLabel","My new label","label","My label",3,"model"],["newLabel","My new label","label","My label","icon","pets",3,"model"],["newLabel","My new label","label","My label",3,"model","listRoute","rootLabel"],[1,"nat-horizontal","nat-gap-10"],["mat-flat-button","","color","primary"],[3,"model"]],template:function(n,t){n&1&&(u(0,"div",0)(1,"div")(2,"h1",1),y(3,"NaturalDetailHeaderComponent"),m(),u(4,"button",2),w("click",function(){return t.model={}}),y(5,"With new model"),m(),u(6,"button",2),w("click",function(){return t.model={id:123}}),y(7,"With existing model without name"),m(),u(8,"button",2),w("click",function(){return t.model={id:123,name:"Some model name"}}),y(9,"With existing model with name "),m(),u(10,"button",2),w("click",function(){return t.model={id:123,fullName:"Some longer model full name with more information and codes"}}),y(11,"With existing model with full name "),m()(),u(12,"div")(13,"h2",3),y(14,"Simple"),m(),T(15,"natural-detail-header",4),m(),u(16,"div")(17,"h2",3),y(18,"With icon"),m(),T(19,"natural-detail-header",5),m(),u(20,"div")(21,"h2",3),y(22,"All"),m(),u(23,"natural-detail-header",6)(24,"div",7)(25,"button",8),y(26,"Extra"),m(),u(27,"button",8),y(28,"Buttons"),m(),u(29,"button",8),y(30,"Here"),m()()()(),u(31,"div")(32,"h2",3),y(33,"Minimal"),m(),T(34,"natural-detail-header",9),m()()),n&2&&(f(15),v("model",t.model),f(4),v("model",t.model),f(4),v("model",t.model)("listRoute",Xt(6,ore))("rootLabel","My root label"),f(11),v("model",t.model))},dependencies:[we,Ze,Cp]})};var are=()=>({}),sre=()=>["admin","product"],uL=()=>["."];function lre(i,e){if(i&1){let n=z();u(0,"natural-fixed-button-detail",26),w("create",function(){A(n);let r=C();return R(r.create())})("delete",function(){A(n);let r=C();return R(r.delete())}),m()}if(i&2){let n=C();v("form",n.form)("model",n.data.model)}}var I0=class i extends Vu{collectErrors=ol;constructor(){let e=x(Kt);super("detail",e),this.isUpdatePage()?this.doSomethingWithFetchedModel(this.data.model):this.doSomethingWithDefaultValues(this.data.model)}doSomethingWithFetchedModel(e){return e.id}doSomethingWithDefaultValues(e){return"id"in e}setIdToTestDeleteButton(){this.data.model=ce(N({},this.data.model),{id:"123"})}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["app-detail"]],standalone:!0,features:[X,P],decls:75,vars:23,consts:[[1,"nat-vertical",2,"gap","50px"],[1,"mat-headline-4"],["newLabel","Very Very Very Very long title","label","title zone",3,"model","listRoute"],[1,"nat-horizontal","nat-gap-10"],["mat-flat-button","","color","primary","routerLink","panel/123"],["mat-flat-button","","color","primary",3,"routerLink"],["mat-flat-button","","color","primary","fragment","asdasfd",3,"routerLink"],["naturalLinkableTab",""],["label","Tab 1","id","tab-1"],[1,"detail-body","nat-padding-top",3,"formGroup"],[1,"nat-horizontal","nat-wrap","nat-left","nat-gap"],["matInput","","formControlName","name",3,"change"],["matInput","","formControlName","description",3,"change"],["color","primary","mat-raised-button","",3,"click"],[1,"debug"],[3,"form","model"],["label","Tab 2","id","tab-2"],["label","Tab 3","id","tab-3"],[1,"mat-h1"],["label","Tab d-2","id","tab-d-2"],["label","Tab d-3","id","tab-d-3"],["label","Tab b-2","id","tab-b-2"],["label","Tab b-3","id","tab-b-3"],[3,"naturalLinkableTab"],["label","Tab c-2","id","tab-c-2"],["label","Tab c-3","id","tab-c-3"],[3,"create","delete","form","model"]],template:function(n,t){n&1&&(u(0,"div",0)(1,"h1",1),y(2,"NaturalAbstractDetail"),m(),u(3,"natural-detail-header",2)(4,"div",3)(5,"button",4),y(6,"Open panel"),m(),u(7,"button",5),y(8,"Clear fragment"),m(),u(9,"button",6),y(10,"Invalid fragment"),m()()(),u(11,"mat-tab-group",7)(12,"mat-tab",8)(13,"div",9)(14,"div",10)(15,"mat-form-field")(16,"mat-label"),y(17,"Name"),m(),u(18,"input",11),w("change",function(){return t.update()}),m()(),u(19,"mat-form-field")(20,"mat-label"),y(21,"Description"),m(),u(22,"input",12),w("change",function(){return t.update()}),m()(),u(23,"button",13),w("click",function(){return t.setIdToTestDeleteButton()}),y(24,"Set ID to test delete button"),m()(),u(25,"pre",14)(26,"strong"),y(27,"form.enabled:"),m(),y(28),te(29,"json"),m(),u(30,"pre",14)(31,"strong"),y(32,"form.valid:"),m(),y(33),te(34,"json"),m(),u(35,"pre",14)(36,"strong"),y(37,"form.value:"),m(),y(38),te(39,"json"),m(),u(40,"pre",14)(41,"strong"),y(42,"form.errors:"),m(),y(43),te(44,"json"),m(),M(45,lre,1,2,"natural-fixed-button-detail",15),m()(),u(46,"mat-tab",16),y(47,"Tab 2 content"),m(),u(48,"mat-tab",17),y(49,"Tab 3 content"),m()(),u(50,"div")(51,"h1",18),y(52,"Second linkable tabs"),m(),u(53,"mat-tab-group",7)(54,"mat-tab",19),y(55,"Tab d-2 content"),m(),u(56,"mat-tab",20),y(57,"Tab d-3 content"),m()()(),u(58,"div")(59,"h1",18),y(60,"Unlinkable tabs (ignored)"),m(),u(61,"mat-tab-group")(62,"mat-tab",21),y(63,"Tab b-2 content"),m(),u(64,"mat-tab",22),y(65,"Tab b-3 content"),m()()(),u(66,"div")(67,"h1",18),y(68,"Unlinkable tabs (set to false)"),m(),u(69,"mat-tab-group",23)(70,"mat-tab",24),y(71,"Tab c-2 content"),m(),u(72,"mat-tab",25),y(73,"Tab c-3 content"),m()()(),T(74,"router-outlet"),m()),n&2&&(f(3),v("model",Xt(19,are))("listRoute",Xt(20,sre)),f(4),v("routerLink",Xt(21,uL)),f(2),v("routerLink",Xt(22,uL)),f(4),v("formGroup",t.form),f(15),ge(ie(29,11,t.form.enabled)),f(5),ge(ie(34,13,t.form.valid)),f(5),ge(ie(39,15,t.form.value)),f(5),ge(ie(44,17,t.collectErrors(t.form))),f(2),k(t.showFabButton?45:-1),f(24),v("naturalLinkableTab",!1))},dependencies:[Cp,we,Ze,Ei,n_,Hm,tu,vp,$e,qt,We,Rt,it,bt,rr,at,mt,_t,zt,Bt,Pe,xi,t0,jo],styles:["[_nghost-%COMP%]{display:flex;flex:1;flex-direction:column}"]})};function cre(i,e){i&1&&T(0,"tr",15)}function dre(i,e){i&1&&T(0,"tr",16)}function ure(i,e){i&1&&(u(0,"th",17),y(1,"Name"),m())}function pre(i,e){if(i&1&&(u(0,"mat-error"),y(1),m()),i&2){let n,t=C().index,r=C();f(),ue(" Maximum ",(n=r.formArray.at(t).get("name"))==null||n.errors==null?null:n.errors.maxlength.requiredLength," caract\xE8res ")}}function mre(i,e){i&1&&(u(0,"mat-error"),y(1,"Requis"),m())}function hre(i,e){if(i&1&&(u(0,"td",18)(1,"mat-form-field")(2,"mat-label"),y(3,"Name"),m(),T(4,"input",19),M(5,pre,2,1,"mat-error")(6,mre,2,0,"mat-error"),m()()),i&2){let n,t,r=e.index,o=C();v("formGroupName",r),f(5),k((n=o.formArray.at(r).get("name"))!=null&&n.hasError("maxlength")?5:-1),f(),k((t=o.formArray.at(r).get("name"))!=null&&t.hasError("required")?6:-1)}}function fre(i,e){i&1&&(u(0,"th",17),y(1,"Description"),m())}function gre(i,e){if(i&1&&(u(0,"mat-error"),y(1),m()),i&2){let n,t=C().index,r=C();f(),ue(" Maximum",(n=r.formArray.at(t).get("description"))==null||n.errors==null?null:n.errors.maxlength.requiredLength," caract\xE8res ")}}function _re(i,e){if(i&1&&(u(0,"td",18)(1,"mat-form-field")(2,"mat-label"),y(3,"Description"),m(),T(4,"input",20),M(5,gre,2,1,"mat-error"),m()()),i&2){let n,t=e.index,r=C();v("formGroupName",t),f(5),k((n=r.formArray.at(t).get("description"))!=null&&n.hasError("maxlength")?5:-1)}}function bre(i,e){i&1&&T(0,"th",17)}function vre(i,e){if(i&1){let n=z();u(0,"td",18)(1,"button",21),w("click",function(){let r=A(n).index,o=C();return R(o.removeAt(r))}),T(2,"mat-icon",22),m()()}if(i&2){let n=e.index;v("formGroupName",n)}}function yre(i,e){i&1&&T(0,"td",23)}function Cre(i,e){if(i&1&&(u(0,"mat-error"),y(1),m()),i&2){let n,t=C().$index,r=C();f(),ue(" Maximum",(n=r.formArray.at(t).get("name"))==null||n.errors==null?null:n.errors.maxlength.requiredLength,"caract\xE8res ")}}function xre(i,e){i&1&&(u(0,"mat-error"),y(1,"Requis"),m())}function wre(i,e){if(i&1&&(u(0,"mat-error"),y(1),m()),i&2){let n,t=C().$index,r=C();f(),ue(" Maximum",(n=r.formArray.at(t).get("description"))==null||n.errors==null?null:n.errors.maxlength.requiredLength,"caract\xE8res ")}}function Sre(i,e){if(i&1&&(u(0,"div",13)(1,"div",24)(2,"mat-form-field")(3,"mat-label"),y(4,"Name"),m(),T(5,"input",19),M(6,Cre,2,1,"mat-error")(7,xre,2,0,"mat-error"),m(),u(8,"mat-form-field")(9,"mat-label"),y(10,"Description"),m(),T(11,"input",20),M(12,wre,2,1,"mat-error"),m()()()),i&2){let n,t,r,o=e.$index,a=C();f(),v("formGroupName",o),f(5),k((n=a.formArray.at(o).get("name"))!=null&&n.hasError("maxlength")?6:-1),f(),k((t=a.formArray.at(o).get("name"))!=null&&t.hasError("required")?7:-1),f(5),k((r=a.formArray.at(o).get("description"))!=null&&r.hasError("maxlength")?12:-1)}}var M0=class i extends vb{columns=["name","description"];constructor(){let e=x(Kt);super(e),this.service.getAll(this.variablesManager).pipe(ht()).subscribe(n=>{this.setItems(n.items),this.addEmpty()})}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["app-editable-list"]],standalone:!0,features:[X,P],decls:35,vars:11,consts:[[1,"mat-headline-4"],[1,"nat-horizontal","nat-left","nat-gap"],[3,"formGroup"],[1,"mat-headline-6"],["mat-table","","formArrayName","rows",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",3,"formGroupName",4,"matCellDef"],["matColumnDef","description"],["matColumnDef","remove"],["mat-footer-cell","",4,"matFooterCellDef"],["formArrayName","rows"],[1,"debug"],["mat-header-row",""],["mat-row",""],["mat-header-cell",""],["mat-cell","",3,"formGroupName"],["matInput","","formControlName","name"],["matInput","","formControlName","description"],["mat-icon-button","","color","warn",3,"click"],["naturalIcon","delete"],["mat-footer-cell",""],[1,"nat-horizontal","nat-gap",3,"formGroupName"]],template:function(n,t){n&1&&(u(0,"h1",0),y(1,"NaturalAbstractEditableList"),m(),u(2,"div",1)(3,"div",2)(4,"div",3),y(5,"As a mat-table"),m(),u(6,"table",4),M(7,cre,1,0,"tr",5)(8,dre,1,0,"tr",6),bi(9,7),M(10,ure,2,0,"th",8)(11,hre,7,3,"td",9),vi(),bi(12,10),M(13,fre,2,0,"th",8)(14,_re,6,2,"td",9),vi(),bi(15,11),M(16,bre,1,0,"th",8)(17,vre,3,1,"td",9)(18,yre,1,0,"td",12),vi(),m()(),u(19,"div",2)(20,"div",3),y(21,"As a `for` loop"),m(),He(22,Sre,13,4,"div",13,Tt),m(),u(24,"div")(25,"pre",14)(26,"strong"),y(27,"form.valid:"),m(),y(28),te(29,"json"),m(),u(30,"pre",14)(31,"strong"),y(32,"getItems():"),m(),y(33),te(34,"json"),m()()()),n&2&&(f(3),v("formGroup",t.form),f(3),v("dataSource",t.dataSource),f(),v("matHeaderRowDef",t.columns),f(),v("matRowDefColumns",t.columns),f(11),v("formGroup",t.form),f(3),Ue(t.dataSource.data),f(6),ue(" ",ie(29,7,t.form.valid),""),f(5),ue(" ",ie(34,9,t.getItems()),""))},dependencies:[$e,qt,We,Rt,it,bt,rr,e_,t_,gl,al,ll,pl,cl,sl,ml,aN,dl,ul,sN,hl,fl,at,mt,_t,di,zt,Bt,Pe,xi,we,li,It,wt,Mt]})};function Ere(i,e){return i=` +`+i+" ",e.replace(/([^{}]*){/gs,n=>n.split(",").map(t=>t.trim().startsWith("@media")?t.trim():i+t.trim()).join(",")).trim()}var pL=0,mL=0,O0=class i{document=x(pe);style=null;id="n"+ ++pL;set naturalCustomCss(e){e&&!this.style&&(this.style=this.document.createElement("style"),this.document.head.appendChild(this.style)),this.style&&(this.style.innerHTML=e?Ere(`[data-natural-id=${this.id}]`,e):"")}ngOnDestroy(){this.style?.remove(),mL--,mL<=0&&(pL=0)}static \u0275fac=function(n){return new(n||i)};static \u0275dir=B({type:i,selectors:[["","naturalCustomCss",""]],hostVars:1,hostBindings:function(n,t){n&2&&ne("data-natural-id",t.id)},inputs:{naturalCustomCss:"naturalCustomCss"},standalone:!0})};function Gn(i){this.content=i}Gn.prototype={constructor:Gn,find:function(i){for(var e=0;e>1}};Gn.from=function(i){if(i instanceof Gn)return i;var e=[];if(i)for(var n in i)e.push(n,i[n]);return new Gn(e)};var cE=Gn;function wL(i,e,n){for(let t=0;;t++){if(t==i.childCount||t==e.childCount)return i.childCount==e.childCount?null:n;let r=i.child(t),o=e.child(t);if(r==o){n+=r.nodeSize;continue}if(!r.sameMarkup(o))return n;if(r.isText&&r.text!=o.text){for(let a=0;r.text[a]==o.text[a];a++)n++;return n}if(r.content.size||o.content.size){let a=wL(r.content,o.content,n+1);if(a!=null)return a}n+=r.nodeSize}}function SL(i,e,n,t){for(let r=i.childCount,o=e.childCount;;){if(r==0||o==0)return r==o?null:{a:n,b:t};let a=i.child(--r),s=e.child(--o),l=a.nodeSize;if(a==s){n-=l,t-=l;continue}if(!a.sameMarkup(s))return{a:n,b:t};if(a.isText&&a.text!=s.text){let c=0,d=Math.min(a.text.length,s.text.length);for(;ce&&t(l,r+s,o||null,a)!==!1&&l.content.size){let d=s+1;l.nodesBetween(Math.max(0,e-d),Math.min(l.content.size,n-d),t,r+d)}s=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,t,r){let o="",a=!0;return this.nodesBetween(e,n,(s,l)=>{let c=s.isText?s.text.slice(Math.max(e,l)-l,n-l):s.isLeaf?r?typeof r=="function"?r(s):r:s.type.spec.leafText?s.type.spec.leafText(s):"":"";s.isBlock&&(s.isLeaf&&c||s.isTextblock)&&t&&(a?a=!1:o+=t),o+=c},0),o}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,t=e.firstChild,r=this.content.slice(),o=0;for(n.isText&&n.sameMarkup(t)&&(r[r.length-1]=n.withText(n.text+t.text),o=1);oe)for(let o=0,a=0;ae&&((an)&&(s.isText?s=s.cut(Math.max(0,e-a),Math.min(s.text.length,n-a)):s=s.cut(Math.max(0,e-a-1),Math.min(s.content.size,n-a-1))),t.push(s),r+=s.nodeSize),a=l}return new i(t,r)}cutByIndex(e,n){return e==n?i.empty:e==0&&n==this.content.length?this:new i(this.content.slice(e,n))}replaceChild(e,n){let t=this.content[e];if(t==n)return this;let r=this.content.slice(),o=this.size+n.nodeSize-t.nodeSize;return r[e]=n,new i(r,o)}addToStart(e){return new i([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new i(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;nthis.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,r=0;;t++){let o=this.child(t),a=r+o.nodeSize;if(a>=e)return a==e||n>0?A0(t+1,a):A0(t,r);r=a}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return i.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new i(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return i.empty;let n,t=0;for(let r=0;r{class i{constructor(n,t){this.type=n,this.attrs=t}addToSet(n){let t,r=!1;for(let o=0;othis.type.rank&&(t||(t=n.slice(0,o)),t.push(this),r=!0),t&&t.push(a)}}return t||(t=n.slice()),r||t.push(this),t}removeFromSet(n){for(let t=0;tr.type.rank-o.type.rank),t}}return i.none=[],i})(),id=class extends Error{},Ce=class i{constructor(e,n,t){this.content=e,this.openStart=n,this.openEnd=t}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let t=TL(this.content,e+this.openStart,n);return t&&new i(t,this.openStart,this.openEnd)}removeBetween(e,n){return new i(EL(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return i.empty;let t=n.openStart||0,r=n.openEnd||0;if(typeof t!="number"||typeof r!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new i(le.fromJSON(e,n.content),t,r)}static maxOpen(e,n=!0){let t=0,r=0;for(let o=e.firstChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.firstChild)t++;for(let o=e.lastChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.lastChild)r++;return new i(e,t,r)}};Ce.empty=new Ce(le.empty,0,0);function EL(i,e,n){let{index:t,offset:r}=i.findIndex(e),o=i.maybeChild(t),{index:a,offset:s}=i.findIndex(n);if(r==e||o.isText){if(s!=n&&!i.child(a).isText)throw new RangeError("Removing non-flat range");return i.cut(0,e).append(i.cut(n))}if(t!=a)throw new RangeError("Removing non-flat range");return i.replaceChild(t,o.copy(EL(o.content,e-r-1,n-r-1)))}function TL(i,e,n,t){let{index:r,offset:o}=i.findIndex(e),a=i.maybeChild(r);if(o==e||a.isText)return t&&!t.canReplace(r,r,n)?null:i.cut(0,e).append(n).append(i.cut(e));let s=TL(a.content,e-o-1,n);return s&&i.replaceChild(r,a.copy(s))}function Tre(i,e,n){if(n.openStart>i.depth)throw new id("Inserted content deeper than insertion position");if(i.depth-n.openStart!=e.depth-n.openEnd)throw new id("Inconsistent open depths");return DL(i,e,n,0)}function DL(i,e,n,t){let r=i.index(t),o=i.node(t);if(r==e.index(t)&&t=0&&i.isText&&i.sameMarkup(e[n])?e[n]=i.withText(e[n].text+i.text):e.push(i)}function hf(i,e,n,t){let r=(e||i).node(n),o=0,a=e?e.index(n):r.childCount;i&&(o=i.index(n),i.depth>n?o++:i.textOffset&&(ed(i.nodeAfter,t),o++));for(let s=o;sr&&pE(i,e,r+1),a=t.depth>r&&pE(n,t,r+1),s=[];return hf(null,i,r,s),o&&a&&e.index(r)==n.index(r)?(kL(o,a),ed(td(o,IL(i,e,n,t,r+1)),s)):(o&&ed(td(o,F0(i,e,r+1)),s),hf(e,n,r,s),a&&ed(td(a,F0(n,t,r+1)),s)),hf(t,null,r,s),new le(s)}function F0(i,e,n){let t=[];if(hf(null,i,n,t),i.depth>n){let r=pE(i,e,n+1);ed(td(r,F0(i,e,n+1)),t)}return hf(e,null,n,t),new le(t)}function Dre(i,e){let n=e.depth-i.openStart,r=e.node(n).copy(i.content);for(let o=n-1;o>=0;o--)r=e.node(o).copy(le.from(r));return{start:r.resolveNoCache(i.openStart+n),end:r.resolveNoCache(r.content.size-i.openEnd-n)}}var P0=class i{constructor(e,n,t){this.pos=e,this.path=n,this.parentOffset=t,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let t=this.pos-this.path[this.path.length-1],r=e.child(n);return t?e.child(n).cut(t):r}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let t=this.path[n*3],r=n==0?0:this.path[n*3-1]+1;for(let o=0;o0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos=0;t--)if(e.pos<=this.end(t)&&(!n||n(this.node(t))))return new nd(this,e,t);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let t=[],r=0,o=n;for(let a=e;;){let{index:s,offset:l}=a.content.findIndex(o),c=o-l;if(t.push(a,s,r+l),!c||(a=a.child(s),a.isText))break;o=c-1,r+=l+1}return new i(n,t,o)}static resolveCached(e,n){let t=hL.get(e);if(t)for(let o=0;oe&&this.nodesBetween(e,n,o=>(t.isInSet(o.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),ML(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,t=le.empty,r=0,o=t.childCount){let a=this.contentMatchAt(e).matchFragment(t,r,o),s=a&&a.matchFragment(this.content,n);if(!s||!s.validEnd)return!1;for(let l=r;ln.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let t;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");t=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,t)}let r=le.fromJSON(e,n.content),o=e.nodeType(n.type).create(n.attrs,r,t);return o.type.checkAttrs(o.attrs),o}};ka.prototype.text=void 0;var hE=class i extends ka{constructor(e,n,t,r){if(super(e,n,null,r),!t)throw new RangeError("Empty text nodes are not allowed");this.text=t}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):ML(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new i(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new i(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function ML(i,e){for(let n=i.length-1;n>=0;n--)e=i[n].type.name+"("+e+")";return e}var rd=class i{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let t=new fE(e,n);if(t.next==null)return i.empty;let r=OL(t);t.next&&t.err("Unexpected trailing text");let o=Pre(Fre(r));return Lre(o,t),o}matchType(e){for(let n=0;nc.createAndFill()));for(let c=0;c=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(t){e.push(t);for(let r=0;r{let o=r+(t.validEnd?"*":" ")+" ";for(let a=0;a"+e.indexOf(t.next[a].next);return o}).join(` +`)}};rd.empty=new rd(!0);var fE=class{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}};function OL(i){let e=[];do e.push(Mre(i));while(i.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function Mre(i){let e=[];do e.push(Ore(i));while(i.next&&i.next!=")"&&i.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function Ore(i){let e=Nre(i);for(;;)if(i.eat("+"))e={type:"plus",expr:e};else if(i.eat("*"))e={type:"star",expr:e};else if(i.eat("?"))e={type:"opt",expr:e};else if(i.eat("{"))e=Are(i,e);else break;return e}function fL(i){/\D/.test(i.next)&&i.err("Expected number, got '"+i.next+"'");let e=Number(i.next);return i.pos++,e}function Are(i,e){let n=fL(i),t=n;return i.eat(",")&&(i.next!="}"?t=fL(i):t=-1),i.eat("}")||i.err("Unclosed braced range"),{type:"range",min:n,max:t,expr:e}}function Rre(i,e){let n=i.nodeTypes,t=n[e];if(t)return[t];let r=[];for(let o in n){let a=n[o];a.isInGroup(e)&&r.push(a)}return r.length==0&&i.err("No node type or group '"+e+"' found"),r}function Nre(i){if(i.eat("(")){let e=OL(i);return i.eat(")")||i.err("Missing closing paren"),e}else if(/\W/.test(i.next))i.err("Unexpected token '"+i.next+"'");else{let e=Rre(i,i.next).map(n=>(i.inline==null?i.inline=n.isInline:i.inline!=n.isInline&&i.err("Mixing inline and block content"),{type:"name",value:n}));return i.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function Fre(i){let e=[[]];return r(o(i,0),n()),e;function n(){return e.push([])-1}function t(a,s,l){let c={term:l,to:s};return e[a].push(c),c}function r(a,s){a.forEach(l=>l.to=s)}function o(a,s){if(a.type=="choice")return a.exprs.reduce((l,c)=>l.concat(o(c,s)),[]);if(a.type=="seq")for(let l=0;;l++){let c=o(a.exprs[l],s);if(l==a.exprs.length-1)return c;r(c,s=n())}else if(a.type=="star"){let l=n();return t(s,l),r(o(a.expr,l),l),[t(l)]}else if(a.type=="plus"){let l=n();return r(o(a.expr,s),l),r(o(a.expr,l),l),[t(l)]}else{if(a.type=="opt")return[t(s)].concat(o(a.expr,s));if(a.type=="range"){let l=s;for(let c=0;c{i[a].forEach(({term:s,to:l})=>{if(!s)return;let c;for(let d=0;d{c||r.push([s,c=[]]),c.indexOf(d)==-1&&c.push(d)})})});let o=e[t.join(",")]=new rd(t.indexOf(i.length-1)>-1);for(let a=0;a-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:NL(this.attrs,e)}create(e=null,n,t){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new ka(this,this.computeAttrs(e),le.from(n),ei.setFrom(t))}createChecked(e=null,n,t){return n=le.from(n),this.checkContent(n),new ka(this,this.computeAttrs(e),n,ei.setFrom(t))}createAndFill(e=null,n,t){if(e=this.computeAttrs(e),n=le.from(n),n.size){let a=this.contentMatch.fillBefore(n);if(!a)return null;n=a.append(n)}let r=this.contentMatch.matchFragment(n),o=r&&r.fillBefore(le.empty,!0);return o?new ka(this,e,n.append(o),ei.setFrom(t)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let t=0;t-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;nt[o]=new i(o,n,a));let r=n.spec.topNode||"doc";if(!t[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!t.text)throw new RangeError("Every schema needs a 'text' type");for(let o in t.text.attrs)throw new RangeError("The text node type should not have attributes");return t}};function Vre(i,e,n){let t=n.split("|");return r=>{let o=r===null?"null":typeof r;if(t.indexOf(o)<0)throw new RangeError(`Expected value of type ${t} for attribute ${e} on type ${i}, got ${o}`)}}var gE=class{constructor(e,n,t){this.hasDefault=Object.prototype.hasOwnProperty.call(t,"default"),this.default=t.default,this.validate=typeof t.validate=="string"?Vre(e,n,t.validate):t.validate}get isRequired(){return!this.hasDefault}},gf=class i{constructor(e,n,t,r){this.name=e,this.rank=n,this.schema=t,this.spec=r,this.attrs=PL(e,r.attrs),this.excluded=null;let o=RL(this.attrs);this.instance=o?new ei(this,o):null}create(e=null){return!e&&this.instance?this.instance:new ei(this,NL(this.attrs,e))}static compile(e,n){let t=Object.create(null),r=0;return e.forEach((o,a)=>t[o]=new i(o,r++,n,a)),t}removeFromSet(e){for(var n=0;n-1}},ps=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let r in e)n[r]=e[r];n.nodes=cE.from(e.nodes),n.marks=cE.from(e.marks||{}),this.nodes=L0.compile(this.spec.nodes,this),this.marks=gf.compile(this.spec.marks,this);let t=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let o=this.nodes[r],a=o.spec.content||"",s=o.spec.marks;if(o.contentMatch=t[a]||(t[a]=rd.parse(a,this.nodes)),o.inlineContent=o.contentMatch.inlineContent,o.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!o.isInline||!o.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=o}o.markSet=s=="_"?null:s?_L(this,s.split(" ")):s==""||!o.inlineContent?[]:null}for(let r in this.marks){let o=this.marks[r],a=o.spec.excludes;o.excluded=a==null?[o]:a==""?[]:_L(this,a.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,t,r){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof L0){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,t,r)}text(e,n){let t=this.nodes.text;return new hE(t,t.defaultAttrs,e,ei.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeFromJSON(e){return ka.fromJSON(this,e)}markFromJSON(e){return ei.fromJSON(this,e)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}};function _L(i,e){let n=[];for(let t=0;t-1)&&n.push(a=l)}if(!a)throw new SyntaxError("Unknown mark type: '"+e[t]+"'")}return n}function jre(i){return i.tag!=null}function Bre(i){return i.style!=null}var od=class i{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let t=this.matchedStyles=[];n.forEach(r=>{if(jre(r))this.tags.push(r);else if(Bre(r)){let o=/[^=]*/.exec(r.style)[0];t.indexOf(o)<0&&t.push(o),this.styles.push(r)}}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let o=e.nodes[r.node];return o.contentMatch.matchType(o)})}parse(e,n={}){let t=new B0(this,n,!1);return t.addAll(e,ei.none,n.from,n.to),t.finish()}parseSlice(e,n={}){let t=new B0(this,n,!0);return t.addAll(e,ei.none,n.from,n.to),Ce.maxOpen(t.finish())}matchTag(e,n,t){for(let r=t?this.tags.indexOf(t)+1:0;re.length&&(s.charCodeAt(e.length)!=61||s.slice(e.length+1)!=n))){if(a.getAttrs){let l=a.getAttrs(n);if(l===!1)continue;a.attrs=l||void 0}return a}}}static schemaRules(e){let n=[];function t(r){let o=r.priority==null?50:r.priority,a=0;for(;a{t(a=vL(a)),a.mark||a.ignore||a.clearMark||(a.mark=r)})}for(let r in e.nodes){let o=e.nodes[r].spec.parseDOM;o&&o.forEach(a=>{t(a=vL(a)),a.node||a.ignore||a.mark||(a.node=r)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new i(e,i.schemaRules(e)))}},LL={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},zre={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},VL={ol:!0,ul:!0},V0=1,j0=2,ff=4;function bL(i,e,n){return e!=null?(e?V0:0)|(e==="full"?j0:0):i&&i.whitespace=="pre"?V0|j0:n&~ff}var Fp=class{constructor(e,n,t,r,o,a){this.type=e,this.attrs=n,this.marks=t,this.solid=r,this.options=a,this.content=[],this.activeMarks=ei.none,this.match=o||(a&ff?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(le.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let t=this.type.contentMatch,r;return(r=t.findWrapping(e.type))?(this.match=t,r):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&V0)){let t=this.content[this.content.length-1],r;if(t&&t.isText&&(r=/[ \t\r\n\u000c]+$/.exec(t.text))){let o=t;t.text.length==r[0].length?this.content.pop():this.content[this.content.length-1]=o.withText(o.text.slice(0,o.text.length-r[0].length))}}let n=le.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(le.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!LL.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}},B0=class{constructor(e,n,t){this.parser=e,this.options=n,this.isOpen=t,this.open=0;let r=n.topNode,o,a=bL(null,n.preserveWhitespace,0)|(t?ff:0);r?o=new Fp(r.type,r.attrs,ei.none,!0,n.topMatch||r.type.contentMatch,a):t?o=new Fp(null,null,ei.none,!0,null,a):o=new Fp(e.schema.topNodeType,null,ei.none,!0,null,a),this.nodes=[o],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,n){e.nodeType==3?this.addTextNode(e,n):e.nodeType==1&&this.addElement(e,n)}addTextNode(e,n){let t=e.nodeValue,r=this.top;if(r.options&j0||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(t)){if(r.options&V0)r.options&j0?t=t.replace(/\r\n?/g,` +`):t=t.replace(/\r?\n|\r/g," ");else if(t=t.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(t)&&this.open==this.nodes.length-1){let o=r.content[r.content.length-1],a=e.previousSibling;(!o||a&&a.nodeName=="BR"||o.isText&&/[ \t\r\n\u000c]$/.test(o.text))&&(t=t.slice(1))}t&&this.insertNode(this.parser.schema.text(t),n),this.findInText(e)}else this.findInside(e)}addElement(e,n,t){let r=e.nodeName.toLowerCase(),o;VL.hasOwnProperty(r)&&this.parser.normalizeLists&&Hre(e);let a=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,t));if(a?a.ignore:zre.hasOwnProperty(r))this.findInside(e),this.ignoreFallback(e,n);else if(!a||a.skip||a.closeParent){a&&a.closeParent?this.open=Math.max(0,this.open-1):a&&a.skip.nodeType&&(e=a.skip);let s,l=this.top,c=this.needsBlock;if(LL.hasOwnProperty(r))l.content.length&&l.content[0].isInline&&this.open&&(this.open--,l=this.top),s=!0,l.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);return}let d=a&&a.skip?n:this.readStyles(e,n);d&&this.addAll(e,d),s&&this.sync(l),this.needsBlock=c}else{let s=this.readStyles(e,n);s&&this.addElementByRule(e,a,s,a.consuming===!1?o:void 0)}}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(` +`),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n)}readStyles(e,n){let t=e.style;if(t&&t.length)for(let r=0;r!l.clearMark(c)):n=n.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)s=l;else break}}return n}addElementByRule(e,n,t,r){let o,a;if(n.node)if(a=this.parser.schema.nodes[n.node],a.isLeaf)this.insertNode(a.create(n.attrs),t)||this.leafFallback(e,t);else{let l=this.enter(a,n.attrs||null,t,n.preserveWhitespace);l&&(o=!0,t=l)}else{let l=this.parser.schema.marks[n.mark];t=t.concat(l.create(n.attrs))}let s=this.top;if(a&&a.isLeaf)this.findInside(e);else if(r)this.addElement(e,t,r);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(l=>this.insertNode(l,t));else{let l=e;typeof n.contentElement=="string"?l=e.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(e):n.contentElement&&(l=n.contentElement),this.findAround(e,l,!0),this.addAll(l,t),this.findAround(e,l,!1)}o&&this.sync(s)&&this.open--}addAll(e,n,t,r){let o=t||0;for(let a=t?e.childNodes[t]:e.firstChild,s=r==null?null:e.childNodes[r];a!=s;a=a.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(a,n);this.findAtPoint(e,o)}findPlace(e,n){let t,r;for(let o=this.open;o>=0;o--){let a=this.nodes[o],s=a.findWrapping(e);if(s&&(!t||t.length>s.length)&&(t=s,r=a,!s.length)||a.solid)break}if(!t)return null;this.sync(r);for(let o=0;o(a.type?a.type.allowsMarkType(c.type):yL(c.type,e))?(l=c.addToSet(l),!1):!0),this.nodes.push(new Fp(e,n,l,r,null,s)),this.open++,t}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let n=this.open;n>=0;n--)if(this.nodes[n]==e)return this.open=n,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let t=this.nodes[n].content;for(let r=t.length-1;r>=0;r--)e+=t[r].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let t=0;t-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),t=this.options.context,r=!this.isOpen&&(!t||t.parent.type==this.nodes[0].type),o=-(t?t.depth+1:0)+(r?0:1),a=(s,l)=>{for(;s>=0;s--){let c=n[s];if(c==""){if(s==n.length-1||s==0)continue;for(;l>=o;l--)if(a(s-1,l))return!0;return!1}else{let d=l>0||l==0&&r?this.nodes[l].type:t&&l>=o?t.node(l-o).type:null;if(!d||d.name!=c&&!d.isInGroup(c))return!1;l--}}return!0};return a(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let t=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(t&&t.isTextblock&&t.defaultAttrs)return t}for(let n in this.parser.schema.nodes){let t=this.parser.schema.nodes[n];if(t.isTextblock&&t.defaultAttrs)return t}}};function Hre(i){for(let e=i.firstChild,n=null;e;e=e.nextSibling){let t=e.nodeType==1?e.nodeName.toLowerCase():null;t&&VL.hasOwnProperty(t)&&n?(n.appendChild(e),e=n):t=="li"?n=e:t&&(n=null)}}function Ure(i,e){return(i.matches||i.msMatchesSelector||i.webkitMatchesSelector||i.mozMatchesSelector).call(i,e)}function vL(i){let e={};for(let n in i)e[n]=i[n];return e}function yL(i,e){let n=e.schema.nodes;for(let t in n){let r=n[t];if(!r.allowsMarkType(i))continue;let o=[],a=s=>{o.push(s);for(let l=0;l{if(o.length||a.marks.length){let s=0,l=0;for(;s=0;r--){let o=this.serializeMark(e.marks[r],e.isInline,n);o&&((o.contentDOM||o.dom).appendChild(t),t=o.dom)}return t}serializeMark(e,n,t={}){let r=this.marks[e.type.name];return r&&R0(uE(t),r(e,n),null,e.attrs)}static renderSpec(e,n,t=null,r){return R0(e,n,t,r)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new i(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=CL(e.nodes);return n.text||(n.text=t=>t.text),n}static marksFromSchema(e){return CL(e.marks)}};function CL(i){let e={};for(let n in i){let t=i[n].spec.toDOM;t&&(e[n]=t)}return e}function uE(i){return i.document||window.document}var xL=new WeakMap;function $re(i){let e=xL.get(i);return e===void 0&&xL.set(i,e=Gre(i)),e}function Gre(i){let e=null;function n(t){if(t&&typeof t=="object")if(Array.isArray(t))if(typeof t[0]=="string")e||(e=[]),e.push(t);else for(let r=0;r-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let a=r.indexOf(" ");a>0&&(n=r.slice(0,a),r=r.slice(a+1));let s,l=n?i.createElementNS(n,r):i.createElement(r),c=e[1],d=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){d=2;for(let p in c)if(c[p]!=null){let h=p.indexOf(" ");h>0?l.setAttributeNS(p.slice(0,h),p.slice(h+1),c[p]):l.setAttribute(p,c[p])}}for(let p=d;pd)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:g,contentDOM:_}=R0(i,h,n,t);if(l.appendChild(g),_){if(s)throw new RangeError("Multiple content holes");s=_}}}return{dom:l,contentDOM:s}}var zL=65535,HL=Math.pow(2,16);function qre(i,e){return i+e*HL}function jL(i){return i&zL}function Wre(i){return(i-(i&zL))/HL}var UL=1,$L=2,z0=4,GL=8,vf=class{constructor(e,n,t){this.pos=e,this.delInfo=n,this.recover=t}get deleted(){return(this.delInfo&GL)>0}get deletedBefore(){return(this.delInfo&(UL|z0))>0}get deletedAfter(){return(this.delInfo&($L|z0))>0}get deletedAcross(){return(this.delInfo&z0)>0}},hs=class i{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&i.empty)return i.empty}recover(e){let n=0,t=jL(e);if(!this.inverted)for(let r=0;re)break;let c=this.ranges[s+o],d=this.ranges[s+a],p=l+c;if(e<=p){let h=c?e==l?-1:e==p?1:n:n,g=l+r+(h<0?0:d);if(t)return g;let _=e==(n<0?l:p)?null:qre(s/3,e-l),S=e==l?$L:e==p?UL:z0;return(n<0?e!=l:e!=p)&&(S|=GL),new vf(g,S,_)}r+=d-c}return t?e+r:new vf(e+r,0,null)}touches(e,n){let t=0,r=jL(n),o=this.inverted?2:1,a=this.inverted?1:2;for(let s=0;se)break;let c=this.ranges[s+o],d=l+c;if(e<=d&&s==r*3)return!0;t+=this.ranges[s+a]-c}return!1}forEach(e){let n=this.inverted?2:1,t=this.inverted?1:2;for(let r=0,o=0;r=0;n--){let r=e.getMirror(n);this.appendMap(e.maps[n].invert(),r!=null&&r>n?t-r-1:void 0)}}invert(){let e=new i;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let t=this.from;to&&l!a.isAtom||!s.type.allowsMarkType(this.mark.type)?a:a.mark(this.mark.addToSet(a.marks)),r),n.openStart,n.openEnd);return Cn.fromReplace(e,this.from,this.to,o)}invert(){return new ad(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),t=e.mapResult(this.to,-1);return n.deleted&&t.deleted||n.pos>=t.pos?null:new i(n.pos,t.pos,this.mark)}merge(e){return e instanceof i&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new i(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new i(n.from,n.to,e.markFromJSON(n.mark))}};un.jsonID("addMark",Cf);var ad=class i extends un{constructor(e,n,t){super(),this.from=e,this.to=n,this.mark=t}apply(e){let n=e.slice(this.from,this.to),t=new Ce(xE(n.content,r=>r.mark(this.mark.removeFromSet(r.marks)),e),n.openStart,n.openEnd);return Cn.fromReplace(e,this.from,this.to,t)}invert(){return new Cf(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),t=e.mapResult(this.to,-1);return n.deleted&&t.deleted||n.pos>=t.pos?null:new i(n.pos,t.pos,this.mark)}merge(e){return e instanceof i&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new i(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new i(n.from,n.to,e.markFromJSON(n.mark))}};un.jsonID("removeMark",ad);var xf=class i extends un{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return Cn.fail("No node at mark step's position");let t=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return Cn.fromReplace(e,this.pos,this.pos+1,new Ce(le.from(t),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let t=this.mark.addToSet(n.marks);if(t.length==n.marks.length){for(let r=0;rt.pos?null:new i(n.pos,t.pos,r,o,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new i(n.from,n.to,n.gapFrom,n.gapTo,Ce.fromJSON(e,n.slice),n.insert,!!n.structure)}};un.jsonID("replaceAround",pn);function yE(i,e,n){let t=i.resolve(e),r=n-e,o=t.depth;for(;r>0&&o>0&&t.indexAfter(o)==t.node(o).childCount;)o--,r--;if(r>0){let a=t.node(o).maybeChild(t.indexAfter(o));for(;r>0;){if(!a||a.isLeaf)return!0;a=a.firstChild,r--}}return!1}function Qre(i,e,n,t){let r=[],o=[],a,s;i.doc.nodesBetween(e,n,(l,c,d)=>{if(!l.isInline)return;let p=l.marks;if(!t.isInSet(p)&&d.type.allowsMarkType(t.type)){let h=Math.max(c,e),g=Math.min(c+l.nodeSize,n),_=t.addToSet(p);for(let S=0;Si.step(l)),o.forEach(l=>i.step(l))}function Kre(i,e,n,t){let r=[],o=0;i.doc.nodesBetween(e,n,(a,s)=>{if(!a.isInline)return;o++;let l=null;if(t instanceof gf){let c=a.marks,d;for(;d=t.isInSet(c);)(l||(l=[])).push(d),c=d.removeFromSet(c)}else t?t.isInSet(a.marks)&&(l=[t]):l=a.marks;if(l&&l.length){let c=Math.min(s+a.nodeSize,n);for(let d=0;di.step(new ad(a.from,a.to,a.style)))}function wE(i,e,n,t=n.contentMatch,r=!0){let o=i.doc.nodeAt(e),a=[],s=e+1;for(let l=0;l=0;l--)i.step(a[l])}function Yre(i,e,n){return(e==0||i.canReplace(e,i.childCount))&&(n==i.childCount||i.canReplace(0,n))}function sd(i){let n=i.parent.content.cutByIndex(i.startIndex,i.endIndex);for(let t=i.depth;;--t){let r=i.$from.node(t),o=i.$from.index(t),a=i.$to.indexAfter(t);if(tn;_--)S||t.index(_)>0?(S=!0,d=le.from(t.node(_).copy(d)),p++):l--;let h=le.empty,g=0;for(let _=o,S=!1;_>n;_--)S||r.after(_+1)=0;a--){if(t.size){let s=n[a].type.contentMatch.matchFragment(t);if(!s||!s.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}t=le.from(n[a].type.create(n[a].attrs,t))}let r=e.start,o=e.end;i.step(new pn(r,o,r,o,new Ce(t,0,0),n.length,!0))}function toe(i,e,n,t,r){if(!t.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let o=i.steps.length;i.doc.nodesBetween(e,n,(a,s)=>{let l=typeof r=="function"?r(a):r;if(a.isTextblock&&!a.hasMarkup(t,l)&&ioe(i.doc,i.mapping.slice(o).map(s),t)){let c=null;if(t.schema.linebreakReplacement){let g=t.whitespace=="pre",_=!!t.contentMatch.matchType(t.schema.linebreakReplacement);g&&!_?c=!1:!g&&_&&(c=!0)}c===!1&&WL(i,a,s,o),wE(i,i.mapping.slice(o).map(s,1),t,void 0,c===null);let d=i.mapping.slice(o),p=d.map(s,1),h=d.map(s+a.nodeSize,1);return i.step(new pn(p,h,p+1,h-1,new Ce(le.from(t.create(l,null,a.marks)),0,0),1,!0)),c===!0&&qL(i,a,s,o),!1}})}function qL(i,e,n,t){e.forEach((r,o)=>{if(r.isText){let a,s=/\r?\n|\r/g;for(;a=s.exec(r.text);){let l=i.mapping.slice(t).map(n+1+o+a.index);i.replaceWith(l,l+1,e.type.schema.linebreakReplacement.create())}}})}function WL(i,e,n,t){e.forEach((r,o)=>{if(r.type==r.type.schema.linebreakReplacement){let a=i.mapping.slice(t).map(n+1+o);i.replaceWith(a,a+1,e.type.schema.text(` +`))}})}function ioe(i,e,n){let t=i.resolve(e),r=t.index();return t.parent.canReplaceWith(r,r+1,n)}function noe(i,e,n,t,r){let o=i.doc.nodeAt(e);if(!o)throw new RangeError("No node at given position");n||(n=o.type);let a=n.create(t,null,r||o.marks);if(o.isLeaf)return i.replaceWith(e,e+o.nodeSize,a);if(!n.validContent(o.content))throw new RangeError("Invalid content for node type "+n.name);i.step(new pn(e,e+o.nodeSize,e+1,e+o.nodeSize-1,new Ce(le.from(a),0,0),1,!0))}function Ul(i,e,n=1,t){let r=i.resolve(e),o=r.depth-n,a=t&&t[t.length-1]||r.parent;if(o<0||r.parent.type.spec.isolating||!r.parent.canReplace(r.index(),r.parent.childCount)||!a.type.validContent(r.parent.content.cutByIndex(r.index(),r.parent.childCount)))return!1;for(let c=r.depth-1,d=n-2;c>o;c--,d--){let p=r.node(c),h=r.index(c);if(p.type.spec.isolating)return!1;let g=p.content.cutByIndex(h,p.childCount),_=t&&t[d+1];_&&(g=g.replaceChild(0,_.type.create(_.attrs)));let S=t&&t[d]||p;if(!p.canReplace(h+1,p.childCount)||!S.type.validContent(g))return!1}let s=r.indexAfter(o),l=t&&t[0];return r.node(o).canReplaceWith(s,s,l?l.type:r.node(o+1).type)}function roe(i,e,n=1,t){let r=i.doc.resolve(e),o=le.empty,a=le.empty;for(let s=r.depth,l=r.depth-n,c=n-1;s>l;s--,c--){o=le.from(r.node(s).copy(o));let d=t&&t[c];a=le.from(d?d.type.create(d.attrs,a):r.node(s).copy(a))}i.step(new to(e,e,new Ce(o.append(a),n,n),!0))}function fs(i,e){let n=i.resolve(e),t=n.index();return QL(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(t,t+1)}function ooe(i,e){e.content.size||i.type.compatibleContent(e.type);let n=i.contentMatchAt(i.childCount),{linebreakReplacement:t}=i.type.schema;for(let r=0;r0?(o=t.node(r+1),s++,a=t.node(r).maybeChild(s)):(o=t.node(r).maybeChild(s-1),a=t.node(r+1)),o&&!o.isTextblock&&QL(o,a)&&t.node(r).canReplace(s,s+1))return e;if(r==0)break;e=n<0?t.before(r):t.after(r)}}function aoe(i,e,n){let t=null,{linebreakReplacement:r}=i.doc.type.schema,o=i.doc.resolve(e-n),a=o.node().type;if(r&&a.inlineContent){let d=a.whitespace=="pre",p=!!a.contentMatch.matchType(r);d&&!p?t=!1:!d&&p&&(t=!0)}let s=i.steps.length;if(t===!1){let d=i.doc.resolve(e+n);WL(i,d.node(),d.before(),s)}a.inlineContent&&wE(i,e+n-1,a,o.node().contentMatchAt(o.index()),t==null);let l=i.mapping.slice(s),c=l.map(e-n);if(i.step(new to(c,l.map(e+n,-1),Ce.empty,!0)),t===!0){let d=i.doc.resolve(c);qL(i,d.node(),d.before(),i.steps.length)}return i}function soe(i,e,n){let t=i.resolve(e);if(t.parent.canReplaceWith(t.index(),t.index(),n))return e;if(t.parentOffset==0)for(let r=t.depth-1;r>=0;r--){let o=t.index(r);if(t.node(r).canReplaceWith(o,o,n))return t.before(r+1);if(o>0)return null}if(t.parentOffset==t.parent.content.size)for(let r=t.depth-1;r>=0;r--){let o=t.indexAfter(r);if(t.node(r).canReplaceWith(o,o,n))return t.after(r+1);if(o=0;a--){let s=a==t.depth?0:t.pos<=(t.start(a+1)+t.end(a+1))/2?-1:1,l=t.index(a)+(s>0?1:0),c=t.node(a),d=!1;if(o==1)d=c.canReplace(l,l,r);else{let p=c.contentMatchAt(l).findWrapping(r.firstChild.type);d=p&&c.canReplaceWith(l,l,p[0])}if(d)return s==0?t.pos:s<0?t.before(a+1):t.after(a+1)}return null}function G0(i,e,n=e,t=Ce.empty){if(e==n&&!t.size)return null;let r=i.resolve(e),o=i.resolve(n);return KL(r,o,t)?new to(e,n,t):new CE(r,o,t).fit()}function KL(i,e,n){return!n.openStart&&!n.openEnd&&i.start()==e.start()&&i.parent.canReplace(i.index(),e.index(),n.content)}var CE=class{constructor(e,n,t){this.$from=e,this.$to=n,this.unplaced=t,this.frontier=[],this.placed=le.empty;for(let r=0;r<=e.depth;r++){let o=e.node(r);this.frontier.push({type:o.type,match:o.contentMatchAt(e.indexAfter(r))})}for(let r=e.depth;r>0;r--)this.placed=le.from(e.node(r).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,t=this.$from,r=this.close(e<0?this.$to:t.doc.resolve(e));if(!r)return null;let o=this.placed,a=t.depth,s=r.depth;for(;a&&s&&o.childCount==1;)o=o.firstChild.content,a--,s--;let l=new Ce(o,a,s);return e>-1?new pn(t.pos,e,this.$to.pos,this.$to.end(),l,n):l.size||t.pos!=this.$to.pos?new to(t.pos,r.pos,l):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,t=0,r=this.unplaced.openEnd;t1&&(r=0),o.type.spec.isolating&&r<=t){e=t;break}n=o.content}for(let n=1;n<=2;n++)for(let t=n==1?e:this.unplaced.openStart;t>=0;t--){let r,o=null;t?(o=bE(this.unplaced.content,t-1).firstChild,r=o.content):r=this.unplaced.content;let a=r.firstChild;for(let s=this.depth;s>=0;s--){let{type:l,match:c}=this.frontier[s],d,p=null;if(n==1&&(a?c.matchType(a.type)||(p=c.fillBefore(le.from(a),!1)):o&&l.compatibleContent(o.type)))return{sliceDepth:t,frontierDepth:s,parent:o,inject:p};if(n==2&&a&&(d=c.findWrapping(a.type)))return{sliceDepth:t,frontierDepth:s,parent:o,wrap:d};if(o&&c.matchType(o.type))break}}}openMore(){let{content:e,openStart:n,openEnd:t}=this.unplaced,r=bE(e,n);return!r.childCount||r.firstChild.isLeaf?!1:(this.unplaced=new Ce(e,n+1,Math.max(t,r.size+n>=e.size-t?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:t}=this.unplaced,r=bE(e,n);if(r.childCount<=1&&n>0){let o=e.size-n<=n+r.size;this.unplaced=new Ce(_f(e,n-1,1),n-1,o?n-1:t)}else this.unplaced=new Ce(_f(e,n,1),n,t)}placeNodes({sliceDepth:e,frontierDepth:n,parent:t,inject:r,wrap:o}){for(;this.depth>n;)this.closeFrontierNode();if(o)for(let S=0;S1||l==0||S.content.size)&&(p=E,d.push(YL(S.mark(h.allowedMarks(S.marks)),c==1?l:0,c==s.childCount?g:-1)))}let _=c==s.childCount;_||(g=-1),this.placed=bf(this.placed,n,le.from(d)),this.frontier[n].match=p,_&&g<0&&t&&t.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let S=0,E=s;S1&&r==this.$to.end(--t);)++r;return r}findCloseLevel(e){e:for(let n=Math.min(this.depth,e.depth);n>=0;n--){let{match:t,type:r}=this.frontier[n],o=n=0;s--){let{match:l,type:c}=this.frontier[s],d=vE(e,s,c,l,!0);if(!d||d.childCount)continue e}return{depth:n,fit:a,move:o?e.doc.resolve(e.after(n+1)):e}}}}close(e){let n=this.findCloseLevel(e);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=bf(this.placed,n.depth,n.fit)),e=n.move;for(let t=n.depth+1;t<=e.depth;t++){let r=e.node(t),o=r.type.contentMatch.fillBefore(r.content,!0,e.index(t));this.openFrontierNode(r.type,r.attrs,o)}return e}openFrontierNode(e,n=null,t){let r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=bf(this.placed,this.depth,le.from(e.create(n,t))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(le.empty,!0);n.childCount&&(this.placed=bf(this.placed,this.frontier.length,n))}};function _f(i,e,n){return e==0?i.cutByIndex(n,i.childCount):i.replaceChild(0,i.firstChild.copy(_f(i.firstChild.content,e-1,n)))}function bf(i,e,n){return e==0?i.append(n):i.replaceChild(i.childCount-1,i.lastChild.copy(bf(i.lastChild.content,e-1,n)))}function bE(i,e){for(let n=0;n1&&(t=t.replaceChild(0,YL(t.firstChild,e-1,t.childCount==1?n-1:0))),e>0&&(t=i.type.contentMatch.fillBefore(t).append(t),n<=0&&(t=t.append(i.type.contentMatch.matchFragment(t).fillBefore(le.empty,!0)))),i.copy(t)}function vE(i,e,n,t,r){let o=i.node(e),a=r?i.indexAfter(e):i.index(e);if(a==o.childCount&&!n.compatibleContent(o.type))return null;let s=t.fillBefore(o.content,!0,a);return s&&!loe(n,o.content,a)?s:null}function loe(i,e,n){for(let t=n;t0;h--,g--){let _=r.node(h).type.spec;if(_.defining||_.definingAsContext||_.isolating)break;a.indexOf(h)>-1?s=h:r.before(h)==g&&a.splice(1,0,-h)}let l=a.indexOf(s),c=[],d=t.openStart;for(let h=t.content,g=0;;g++){let _=h.firstChild;if(c.push(_),g==t.openStart)break;h=_.content}for(let h=d-1;h>=0;h--){let g=c[h],_=coe(g.type);if(_&&!g.sameMarkup(r.node(Math.abs(s)-1)))d=h;else if(_||!g.type.isTextblock)break}for(let h=t.openStart;h>=0;h--){let g=(h+d+1)%(t.openStart+1),_=c[g];if(_)for(let S=0;S=0&&(i.replace(e,n,t),!(i.steps.length>p));h--){let g=a[h];g<0||(e=r.before(g),n=o.after(g))}}function XL(i,e,n,t,r){if(et){let o=r.contentMatchAt(0),a=o.fillBefore(i).append(i);i=a.append(o.matchFragment(a).fillBefore(le.empty,!0))}return i}function uoe(i,e,n,t){if(!t.isInline&&e==n&&i.doc.resolve(e).parent.content.size){let r=soe(i.doc,e,t.type);r!=null&&(e=n=r)}i.replaceRange(e,n,new Ce(le.from(t),0,0))}function poe(i,e,n){let t=i.doc.resolve(e),r=i.doc.resolve(n),o=JL(t,r);for(let a=0;a0&&(l||t.node(s-1).canReplace(t.index(s-1),r.indexAfter(s-1))))return i.delete(t.before(s),r.after(s))}for(let a=1;a<=t.depth&&a<=r.depth;a++)if(e-t.start(a)==t.depth-a&&n>t.end(a)&&r.end(a)-n!=r.depth-a&&t.start(a-1)==r.start(a-1)&&t.node(a-1).canReplace(t.index(a-1),r.index(a-1)))return i.delete(t.before(a),n);i.delete(e,n)}function JL(i,e){let n=[],t=Math.min(i.depth,e.depth);for(let r=t;r>=0;r--){let o=i.start(r);if(oe.pos+(e.depth-r)||i.node(r).type.spec.isolating||e.node(r).type.spec.isolating)break;(o==e.start(r)||r==i.depth&&r==e.depth&&i.parent.inlineContent&&e.parent.inlineContent&&r&&e.start(r-1)==o-1)&&n.push(r)}return n}var H0=class i extends un{constructor(e,n,t){super(),this.pos=e,this.attr=n,this.value=t}apply(e){let n=e.nodeAt(this.pos);if(!n)return Cn.fail("No node at attribute step's position");let t=Object.create(null);for(let o in n.attrs)t[o]=n.attrs[o];t[this.attr]=this.value;let r=n.type.create(t,null,n.marks);return Cn.fromReplace(e,this.pos,this.pos+1,new Ce(le.from(r),0,n.isLeaf?0:1))}getMap(){return hs.empty}invert(e){return new i(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new i(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new i(n.pos,n.attr,n.value)}};un.jsonID("attr",H0);var U0=class i extends un{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let r in e.attrs)n[r]=e.attrs[r];n[this.attr]=this.value;let t=e.type.create(n,e.content,e.marks);return Cn.ok(t)}getMap(){return hs.empty}invert(e){return new i(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new i(n.attr,n.value)}};un.jsonID("docAttr",U0);var Pp=class extends Error{};Pp=function i(e){let n=Error.call(this,e);return n.__proto__=i.prototype,n};Pp.prototype=Object.create(Error.prototype);Pp.prototype.constructor=Pp;Pp.prototype.name="TransformError";var Lp=class{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new yf}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new Pp(n.failed);return this}maybeStep(e){let n=e.apply(this.doc);return n.failed||this.addStep(e,n.doc),n}get docChanged(){return this.steps.length>0}addStep(e,n){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=n}replace(e,n=e,t=Ce.empty){let r=G0(this.doc,e,n,t);return r&&this.step(r),this}replaceWith(e,n,t){return this.replace(e,n,new Ce(le.from(t),0,0))}delete(e,n){return this.replace(e,n,Ce.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,t){return doe(this,e,n,t),this}replaceRangeWith(e,n,t){return uoe(this,e,n,t),this}deleteRange(e,n){return poe(this,e,n),this}lift(e,n){return Xre(this,e,n),this}join(e,n=1){return aoe(this,e,n),this}wrap(e,n){return eoe(this,e,n),this}setBlockType(e,n=e,t,r=null){return toe(this,e,n,t,r),this}setNodeMarkup(e,n,t=null,r){return noe(this,e,n,t,r),this}setNodeAttribute(e,n,t){return this.step(new H0(e,n,t)),this}setDocAttribute(e,n){return this.step(new U0(e,n)),this}addNodeMark(e,n){return this.step(new xf(e,n)),this}removeNodeMark(e,n){if(!(n instanceof ei)){let t=this.doc.nodeAt(e);if(!t)throw new RangeError("No node at position "+e);if(n=n.isInSet(t.marks),!n)return this}return this.step(new wf(e,n)),this}split(e,n=1,t){return roe(this,e,n,t),this}addMark(e,n,t){return Qre(this,e,n,t),this}removeMark(e,n,t){return Kre(this,e,n,t),this}clearIncompatible(e,n,t){return wE(this,e,n,t),this}};var EE=Object.create(null),Qe=class{constructor(e,n,t){this.$anchor=e,this.$head=n,this.ranges=t||[new $l(e.min(n),e.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let n=0;n=0;o--){let a=n<0?jp(e.node(0),e.node(o),e.before(o+1),e.index(o),n,t):jp(e.node(0),e.node(o),e.after(o+1),e.index(o)+1,n,t);if(a)return a}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new cr(e.node(0))}static atStart(e){return jp(e,e,0,0,1)||new cr(e)}static atEnd(e){return jp(e,e,e.content.size,e.childCount,-1)||new cr(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let t=EE[n.type];if(!t)throw new RangeError(`No selection type ${n.type} defined`);return t.fromJSON(e,n)}static jsonID(e,n){if(e in EE)throw new RangeError("Duplicate use of selection JSON ID "+e);return EE[e]=n,n.prototype.jsonID=e,n}getBookmark(){return ct.between(this.$anchor,this.$head).getBookmark()}};Qe.prototype.visible=!0;var $l=class{constructor(e,n){this.$from=e,this.$to=n}},ZL=!1;function e3(i){!ZL&&!i.parent.inlineContent&&(ZL=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+i.parent.type.name+")"))}var ct=class i extends Qe{constructor(e,n=e){e3(e),e3(n),super(e,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,n){let t=e.resolve(n.map(this.head));if(!t.parent.inlineContent)return Qe.near(t);let r=e.resolve(n.map(this.anchor));return new i(r.parent.inlineContent?r:t,t)}replace(e,n=Ce.empty){if(super.replace(e,n),n==Ce.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof i&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new W0(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new i(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,t=n){let r=e.resolve(n);return new this(r,t==n?r:e.resolve(t))}static between(e,n,t){let r=e.pos-n.pos;if((!t||r)&&(t=r>=0?1:-1),!n.parent.inlineContent){let o=Qe.findFrom(n,t,!0)||Qe.findFrom(n,-t,!0);if(o)n=o.$head;else return Qe.near(n,t)}return e.parent.inlineContent||(r==0?e=n:(e=(Qe.findFrom(e,-t,!0)||Qe.findFrom(e,t,!0)).$anchor,e.pos0?0:1);r>0?a=0;a+=r){let s=e.child(a);if(s.isAtom){if(!o&&Ke.isSelectable(s))return Ke.create(i,n-(r<0?s.nodeSize:0))}else{let l=jp(i,s,n+r,r<0?s.childCount:0,r,o);if(l)return l}n+=s.nodeSize*r}return null}function t3(i,e,n){let t=i.steps.length-1;if(t{a==null&&(a=d)}),i.setSelection(Qe.near(i.doc.resolve(a),n))}var i3=1,q0=2,n3=4,kE=class extends Lp{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor0}setStoredMarks(e){return this.storedMarks=e,this.updated|=q0,this}ensureMarks(e){return ei.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&q0)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~q0,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let t=this.selection;return n&&(e=e.mark(this.storedMarks||(t.empty?t.$from.marks():t.$from.marksAcross(t.$to)||ei.none))),t.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,t){let r=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(t==null&&(t=n),t=t??n,!e)return this.deleteRange(n,t);let o=this.storedMarks;if(!o){let a=this.doc.resolve(n);o=t==n?a.marks():a.marksAcross(this.doc.resolve(t))}return this.replaceRangeWith(n,t,r.text(e,o)),this.selection.empty||this.setSelection(Qe.near(this.selection.$to)),this}}setMeta(e,n){return this.meta[typeof e=="string"?e:e.key]=n,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=n3,this}get scrolledIntoView(){return(this.updated&n3)>0}};function r3(i,e){return!e||!i?i:i.bind(e)}var ld=class{constructor(e,n,t){this.name=e,this.init=r3(n.init,t),this.apply=r3(n.apply,t)}},hoe=[new ld("doc",{init(i){return i.doc||i.schema.topNodeType.createAndFill()},apply(i){return i.doc}}),new ld("selection",{init(i,e){return i.selection||Qe.atStart(e.doc)},apply(i){return i.selection}}),new ld("storedMarks",{init(i){return i.storedMarks||null},apply(i,e,n,t){return t.selection.$cursor?i.storedMarks:null}}),new ld("scrollToSelection",{init(){return 0},apply(i,e){return i.scrolledIntoView?e+1:e}})],Sf=class{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=hoe.slice(),n&&n.forEach(t=>{if(this.pluginsByKey[t.key])throw new RangeError("Adding different instances of a keyed plugin ("+t.key+")");this.plugins.push(t),this.pluginsByKey[t.key]=t,t.spec.state&&this.fields.push(new ld(t.key,t.spec.state,t))})}},Q0=class i{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,n=-1){for(let t=0;tt.toJSON())),e&&typeof e=="object")for(let t in e){if(t=="doc"||t=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[t],o=r.spec.state;o&&o.toJSON&&(n[t]=o.toJSON.call(r,this[r.key]))}return n}static fromJSON(e,n,t){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let r=new Sf(e.schema,e.plugins),o=new i(r);return r.fields.forEach(a=>{if(a.name=="doc")o.doc=ka.fromJSON(e.schema,n.doc);else if(a.name=="selection")o.selection=Qe.fromJSON(o.doc,n.selection);else if(a.name=="storedMarks")n.storedMarks&&(o.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(t)for(let s in t){let l=t[s],c=l.spec.state;if(l.key==a.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(n,s)){o[a.name]=c.fromJSON.call(l,e,n[s],o);return}}o[a.name]=a.init(e,o)}}),o}};function o3(i,e,n){for(let t in i){let r=i[t];r instanceof Function?r=r.bind(e):t=="handleDOMEvents"&&(r=o3(r,e,{})),n[t]=r}return n}var Wi=class{constructor(e){this.spec=e,this.props={},e.props&&o3(e.props,this,this.props),this.key=e.key?e.key.key:a3("plugin")}getState(e){return e[this.key]}},TE=Object.create(null);function a3(i){return i in TE?i+"$"+ ++TE[i]:(TE[i]=0,i+"$")}var ea=class{constructor(e="key"){this.key=a3(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}};var xn=function(i){for(var e=0;;e++)if(i=i.previousSibling,!i)return e},kf=function(i){let e=i.assignedSlot||i.parentNode;return e&&e.nodeType==11?e.host:e},RE=null,_s=function(i,e,n){let t=RE||(RE=document.createRange());return t.setEnd(i,n??i.nodeValue.length),t.setStart(i,e||0),t},foe=function(){RE=null},fd=function(i,e,n,t){return n&&(s3(i,e,n,t,-1)||s3(i,e,n,t,1))},goe=/^(img|br|input|textarea|hr)$/i;function s3(i,e,n,t,r){for(;;){if(i==n&&e==t)return!0;if(e==(r<0?0:ko(i))){let o=i.parentNode;if(!o||o.nodeType!=1||Af(i)||goe.test(i.nodeName)||i.contentEditable=="false")return!1;e=xn(i)+(r<0?0:1),i=o}else if(i.nodeType==1){if(i=i.childNodes[e+(r<0?-1:0)],i.contentEditable=="false")return!1;e=r<0?ko(i):0}else return!1}}function ko(i){return i.nodeType==3?i.nodeValue.length:i.childNodes.length}function _oe(i,e){for(;;){if(i.nodeType==3&&e)return i;if(i.nodeType==1&&e>0){if(i.contentEditable=="false")return null;i=i.childNodes[e-1],e=ko(i)}else if(i.parentNode&&!Af(i))e=xn(i),i=i.parentNode;else return null}}function boe(i,e){for(;;){if(i.nodeType==3&&e2),Do=$p||(Ia?/Mac/.test(Ia.platform):!1),xoe=Ia?/Win/.test(Ia.platform):!1,ta=/Android \d/.test(Yl),Rf=!!l3&&"webkitFontSmoothing"in l3.documentElement.style,woe=Rf?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function Soe(i){let e=i.defaultView&&i.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:i.documentElement.clientWidth,top:0,bottom:i.documentElement.clientHeight}}function gs(i,e){return typeof i=="number"?i:i[e]}function Eoe(i){let e=i.getBoundingClientRect(),n=e.width/i.offsetWidth||1,t=e.height/i.offsetHeight||1;return{left:e.left,right:e.left+i.clientWidth*n,top:e.top,bottom:e.top+i.clientHeight*t}}function c3(i,e,n){let t=i.someProp("scrollThreshold")||0,r=i.someProp("scrollMargin")||5,o=i.dom.ownerDocument;for(let a=n||i.dom;a;a=kf(a)){if(a.nodeType!=1)continue;let s=a,l=s==o.body,c=l?Soe(o):Eoe(s),d=0,p=0;if(e.topc.bottom-gs(t,"bottom")&&(p=e.bottom-e.top>c.bottom-c.top?e.top+gs(r,"top")-c.top:e.bottom-c.bottom+gs(r,"bottom")),e.leftc.right-gs(t,"right")&&(d=e.right-c.right+gs(r,"right")),d||p)if(l)o.defaultView.scrollBy(d,p);else{let h=s.scrollLeft,g=s.scrollTop;p&&(s.scrollTop+=p),d&&(s.scrollLeft+=d);let _=s.scrollLeft-h,S=s.scrollTop-g;e={left:e.left-_,top:e.top-S,right:e.right-_,bottom:e.bottom-S}}if(l||/^(fixed|sticky)$/.test(getComputedStyle(a).position))break}}function Toe(i){let e=i.dom.getBoundingClientRect(),n=Math.max(0,e.top),t,r;for(let o=(e.left+e.right)/2,a=n+1;a=n-20){t=s,r=l.top;break}}return{refDOM:t,refTop:r,stack:H3(i.dom)}}function H3(i){let e=[],n=i.ownerDocument;for(let t=i;t&&(e.push({dom:t,top:t.scrollTop,left:t.scrollLeft}),i!=n);t=kf(t));return e}function Doe({refDOM:i,refTop:e,stack:n}){let t=i?i.getBoundingClientRect().top:0;U3(n,t==0?0:t-e)}function U3(i,e){for(let n=0;n=s){a=Math.max(_.bottom,a),s=Math.min(_.top,s);let S=_.left>e.left?_.left-e.left:_.right=(_.left+_.right)/2?1:0));continue}}else _.top>e.top&&!l&&_.left<=e.left&&_.right>=e.left&&(l=d,c={left:Math.max(_.left,Math.min(_.right,e.left)),top:_.top});!n&&(e.left>=_.right&&e.top>=_.top||e.left>=_.left&&e.top>=_.bottom)&&(o=p+1)}}return!n&&l&&(n=l,r=c,t=0),n&&n.nodeType==3?Ioe(n,r):!n||t&&n.nodeType==1?{node:i,offset:o}:$3(n,r)}function Ioe(i,e){let n=i.nodeValue.length,t=document.createRange();for(let r=0;r=(o.left+o.right)/2?1:0)}}return{node:i,offset:0}}function XE(i,e){return i.left>=e.left-1&&i.left<=e.right+1&&i.top>=e.top-1&&i.top<=e.bottom+1}function Moe(i,e){let n=i.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left(a.left+a.right)/2?1:-1}return i.docView.posFromDOM(t,r,o)}function Aoe(i,e,n,t){let r=-1;for(let o=e,a=!1;o!=i.dom;){let s=i.docView.nearestDesc(o,!0);if(!s)return null;if(s.dom.nodeType==1&&(s.node.isBlock&&s.parent||!s.contentDOM)){let l=s.dom.getBoundingClientRect();if(s.node.isBlock&&s.parent&&(!a&&l.left>t.left||l.top>t.top?r=s.posBefore:(!a&&l.right-1?r:i.docView.posFromDOM(e,n,-1)}function G3(i,e,n){let t=i.childNodes.length;if(t&&n.tope.top&&r++}let c;Rf&&r&&t.nodeType==1&&(c=t.childNodes[r-1]).nodeType==1&&c.contentEditable=="false"&&c.getBoundingClientRect().top>=e.top&&r--,t==i.dom&&r==t.childNodes.length-1&&t.lastChild.nodeType==1&&e.top>t.lastChild.getBoundingClientRect().bottom?s=i.state.doc.content.size:(r==0||t.nodeType!=1||t.childNodes[r-1].nodeName!="BR")&&(s=Aoe(i,t,r,e))}s==null&&(s=Ooe(i,a,e));let l=i.docView.nearestDesc(a,!0);return{pos:s,inside:l?l.posAtStart-l.border:-1}}function d3(i){return i.top=0&&r==t.nodeValue.length?(l--,d=1):n<0?l--:c++,Ef(Gl(_s(t,l,c),d),d<0)}if(!i.state.doc.resolve(e-(o||0)).parent.inlineContent){if(o==null&&r&&(n<0||r==ko(t))){let l=t.childNodes[r-1];if(l.nodeType==1)return IE(l.getBoundingClientRect(),!1)}if(o==null&&r=0)}if(o==null&&r&&(n<0||r==ko(t))){let l=t.childNodes[r-1],c=l.nodeType==3?_s(l,ko(l)-(a?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(c)return Ef(Gl(c,1),!1)}if(o==null&&r=0)}function Ef(i,e){if(i.width==0)return i;let n=e?i.left:i.right;return{top:i.top,bottom:i.bottom,left:n,right:n}}function IE(i,e){if(i.height==0)return i;let n=e?i.top:i.bottom;return{top:n,bottom:n,left:i.left,right:i.right}}function W3(i,e,n){let t=i.state,r=i.root.activeElement;t!=e&&i.updateState(e),r!=i.dom&&i.focus();try{return n()}finally{t!=e&&i.updateState(t),r!=i.dom&&r&&r.focus()}}function Foe(i,e,n){let t=e.selection,r=n=="up"?t.$from:t.$to;return W3(i,e,()=>{let{node:o}=i.docView.domFromPos(r.pos,n=="up"?-1:1);for(;;){let s=i.docView.nearestDesc(o,!0);if(!s)break;if(s.node.isBlock){o=s.contentDOM||s.dom;break}o=s.dom.parentNode}let a=q3(i,r.pos,1);for(let s=o.firstChild;s;s=s.nextSibling){let l;if(s.nodeType==1)l=s.getClientRects();else if(s.nodeType==3)l=_s(s,0,s.nodeValue.length).getClientRects();else continue;for(let c=0;cd.top+1&&(n=="up"?a.top-d.top>(d.bottom-a.top)*2:d.bottom-a.bottom>(a.bottom-d.top)*2))return!1}}return!0})}var Poe=/[\u0590-\u08ac]/;function Loe(i,e,n){let{$head:t}=e.selection;if(!t.parent.isTextblock)return!1;let r=t.parentOffset,o=!r,a=r==t.parent.content.size,s=i.domSelection();return s?!Poe.test(t.parent.textContent)||!s.modify?n=="left"||n=="backward"?o:a:W3(i,e,()=>{let{focusNode:l,focusOffset:c,anchorNode:d,anchorOffset:p}=i.domSelectionRange(),h=s.caretBidiLevel;s.modify("move",n,"character");let g=t.depth?i.docView.domAfterPos(t.before()):i.dom,{focusNode:_,focusOffset:S}=i.domSelectionRange(),E=_&&!g.contains(_.nodeType==1?_:_.parentNode)||l==_&&c==S;try{s.collapse(d,p),l&&(l!=d||c!=p)&&s.extend&&s.extend(l,c)}catch{}return h!=null&&(s.caretBidiLevel=h),E}):t.pos==t.start()||t.pos==t.end()}var u3=null,p3=null,m3=!1;function Voe(i,e,n){return u3==e&&p3==n?m3:(u3=e,p3=n,m3=n=="up"||n=="down"?Foe(i,e,n):Loe(i,e,n))}var Io=0,h3=1,dd=2,Ma=3,gd=class{constructor(e,n,t,r){this.parent=e,this.children=n,this.dom=t,this.contentDOM=r,this.dirty=Io,t.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,n,t){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let n=0;nxn(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let o=e;;o=o.parentNode){if(o==this.dom){r=!1;break}if(o.previousSibling)break}if(r==null&&n==e.childNodes.length)for(let o=e;;o=o.parentNode){if(o==this.dom){r=!0;break}if(o.nextSibling)break}}return r??t>0?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let t=!0,r=e;r;r=r.parentNode){let o=this.getDesc(r),a;if(o&&(!n||o.node))if(t&&(a=o.nodeDOM)&&!(a.nodeType==1?a.contains(e.nodeType==1?e:e.parentNode):a==e))t=!1;else return o}}getDesc(e){let n=e.pmViewDesc;for(let t=n;t;t=t.parent)if(t==this)return n}posFromDOM(e,n,t){for(let r=e;r;r=r.parentNode){let o=this.getDesc(r);if(o)return o.localPosFromDOM(e,n,t)}return-1}descAt(e){for(let n=0,t=0;ne||a instanceof X0){r=e-o;break}o=s}if(r)return this.children[t].domFromPos(r-this.children[t].border,n);for(let o;t&&!(o=this.children[t-1]).size&&o instanceof K0&&o.side>=0;t--);if(n<=0){let o,a=!0;for(;o=t?this.children[t-1]:null,!(!o||o.dom.parentNode==this.contentDOM);t--,a=!1);return o&&n&&a&&!o.border&&!o.domAtom?o.domFromPos(o.size,n):{node:this.contentDOM,offset:o?xn(o.dom)+1:0}}else{let o,a=!0;for(;o=t=d&&n<=c-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(e,n,d);e=a;for(let p=s;p>0;p--){let h=this.children[p-1];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(1)){r=xn(h.dom)+1;break}e-=h.size}r==-1&&(r=0)}if(r>-1&&(c>n||s==this.children.length-1)){n=c;for(let d=s+1;dg&&an){let g=s;s=l,l=g}let h=document.createRange();h.setEnd(l.node,l.offset),h.setStart(s.node,s.offset),c.removeAllRanges(),c.addRange(h)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,n){for(let t=0,r=0;r=t:et){let s=t+o.border,l=a-o.border;if(e>=s&&n<=l){this.dirty=e==t||n==a?dd:h3,e==s&&n==l&&(o.contentLost||o.dom.parentNode!=this.contentDOM)?o.dirty=Ma:o.markDirty(e-s,n-s);return}else o.dirty=o.dom==o.contentDOM&&o.dom.parentNode==this.contentDOM&&!o.children.length?dd:Ma}t=a}this.dirty=dd}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let t=e==1?dd:h3;n.dirty{if(!o)return r;if(o.parent)return o.parent.posBeforeChild(o)})),!n.type.spec.raw){if(a.nodeType!=1){let s=document.createElement("span");s.appendChild(a),a=s}a.contentEditable="false",a.classList.add("ProseMirror-widget")}super(e,[],a,null),this.widget=n,this.widget=n,o=this}matchesWidget(e){return this.dirty==Io&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let n=this.widget.spec.stopEvent;return n?n(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}},LE=class extends gd{constructor(e,n,t,r){super(e,[],n,null),this.textDOM=t,this.text=r}get size(){return this.text.length}localPosFromDOM(e,n){return e!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}},Gp=class i extends gd{constructor(e,n,t,r){super(e,[],t,r),this.mark=n}static create(e,n,t,r){let o=r.nodeViews[n.type.name],a=o&&o(n,r,t);return(!a||!a.dom)&&(a=ms.renderSpec(document,n.type.spec.toDOM(n,t),null,n.attrs)),new i(e,n,a.dom,a.contentDOM||a.dom)}parseRule(){return this.dirty&Ma||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=Ma&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=Io){let t=this.parent;for(;!t.node;)t=t.parent;t.dirty0&&(o=zE(o,0,e,t));for(let s=0;s{if(!l)return a;if(l.parent)return l.parent.posBeforeChild(l)},t,r),d=c&&c.dom,p=c&&c.contentDOM;if(n.isText){if(!d)d=document.createTextNode(n.text);else if(d.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else d||({dom:d,contentDOM:p}=ms.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!p&&!n.isText&&d.nodeName!="BR"&&(d.hasAttribute("contenteditable")||(d.contentEditable="false"),n.type.spec.draggable&&(d.draggable=!0));let h=d;return d=Y3(d,t,n),c?l=new VE(e,n,t,r,d,p||null,h,c,o,a+1):n.isText?new Y0(e,n,t,r,d,h,o):new i(e,n,t,r,d,p||null,h,o,a+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let t=this.children[n];if(this.dom.contains(t.dom.parentNode)){e.contentElement=t.dom.parentNode;break}}e.contentElement||(e.getContent=()=>le.empty)}return e}matchesNode(e,n,t){return this.dirty==Io&&e.eq(this.node)&&J0(n,this.outerDeco)&&t.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,n){let t=this.node.inlineContent,r=n,o=e.composing?this.localCompositionInfo(e,n):null,a=o&&o.pos>-1?o:null,s=o&&o.pos<0,l=new BE(this,a&&a.node,e);Hoe(this.node,this.innerDeco,(c,d,p)=>{c.spec.marks?l.syncToMarks(c.spec.marks,t,e):c.type.side>=0&&!p&&l.syncToMarks(d==this.node.childCount?ei.none:this.node.child(d).marks,t,e),l.placeWidget(c,e,r)},(c,d,p,h)=>{l.syncToMarks(c.marks,t,e);let g;l.findNodeMatch(c,d,p,h)||s&&e.state.selection.from>r&&e.state.selection.to-1&&l.updateNodeAt(c,d,p,g,e)||l.updateNextNode(c,d,p,e,h,r)||l.addNode(c,d,p,e,r),r+=c.nodeSize}),l.syncToMarks([],t,e),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==dd)&&(a&&this.protectLocalComposition(e,a),Q3(this.contentDOM,this.children,e),$p&&Uoe(this.dom))}localCompositionInfo(e,n){let{from:t,to:r}=e.state.selection;if(!(e.state.selection instanceof ct)||tn+this.node.content.size)return null;let o=e.input.compositionNode;if(!o||!this.dom.contains(o.parentNode))return null;if(this.node.inlineContent){let a=o.nodeValue,s=$oe(this.node.content,a,t-n,r-n);return s<0?null:{node:o,pos:s,text:a}}else return{node:o,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:t,text:r}){if(this.getDesc(n))return;let o=n;for(;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=void 0)}let a=new LE(this,o,n,r);e.input.compositionNodes.push(a),this.children=zE(this.children,t,t+r.length,e,a)}update(e,n,t,r){return this.dirty==Ma||!e.sameMarkup(this.node)?!1:(this.updateInner(e,n,t,r),!0)}updateInner(e,n,t,r){this.updateOuterDeco(n),this.node=e,this.innerDeco=t,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=Io}updateOuterDeco(e){if(J0(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,t=this.dom;this.dom=K3(this.dom,this.nodeDOM,jE(this.outerDeco,this.node,n),jE(e,this.node,n)),this.dom!=t&&(t.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}};function f3(i,e,n,t,r){Y3(t,e,i);let o=new Kl(void 0,i,e,n,t,t,t,r,0);return o.contentDOM&&o.updateChildren(r,0),o}var Y0=class i extends Kl{constructor(e,n,t,r,o,a,s){super(e,n,t,r,o,null,a,s,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,n,t,r){return this.dirty==Ma||this.dirty!=Io&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=Io||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=Io,!0)}inParent(){let e=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,n,t){return e==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(e,n,t)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,n,t){let r=this.node.cut(e,n),o=document.createTextNode(r.text);return new i(this.parent,r,this.outerDeco,this.innerDeco,o,o,t)}markDirty(e,n){super.markDirty(e,n),this.dom!=this.nodeDOM&&(e==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=Ma)}get domAtom(){return!1}isText(e){return this.node.text==e}},X0=class extends gd{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==Io&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}},VE=class extends Kl{constructor(e,n,t,r,o,a,s,l,c,d){super(e,n,t,r,o,a,s,c,d),this.spec=l}update(e,n,t,r){if(this.dirty==Ma)return!1;if(this.spec.update){let o=this.spec.update(e,n,t);return o&&this.updateInner(e,n,t,r),o}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,t,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,t,r){this.spec.setSelection?this.spec.setSelection(e,n,t):super.setSelection(e,n,t,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}};function Q3(i,e,n){let t=i.firstChild,r=!1;for(let o=0;o>1,a=Math.min(o,e.length);for(;r-1)s>this.index&&(this.changed=!0,this.destroyBetween(this.index,s)),this.top=this.top.children[this.index];else{let l=Gp.create(this.top,e[o],n,t);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,o++}}findNodeMatch(e,n,t,r){let o=-1,a;if(r>=this.preMatch.index&&(a=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&a.matchesNode(e,n,t))o=this.top.children.indexOf(a,this.index);else for(let s=this.index,l=Math.min(this.top.children.length,s+5);s0;){let s;for(;;)if(t){let c=n.children[t-1];if(c instanceof Gp)n=c,t=c.children.length;else{s=c,t--;break}}else{if(n==e)break e;t=n.parent.children.indexOf(n),n=n.parent}let l=s.node;if(l){if(l!=i.child(r-1))break;--r,o.set(s,r),a.push(s)}}return{index:r,matched:o,matches:a.reverse()}}function zoe(i,e){return i.type.side-e.type.side}function Hoe(i,e,n,t){let r=e.locals(i),o=0;if(r.length==0){for(let c=0;co;)s.push(r[a++]);let _=o+h.nodeSize;if(h.isText){let E=_;a!E.inline):s.slice();t(h,S,e.forChild(o,h),g),o=_}}function Uoe(i){if(i.nodeName=="UL"||i.nodeName=="OL"){let e=i.style.cssText;i.style.cssText=e+"; list-style: square !important",window.getComputedStyle(i).listStyle,i.style.cssText=e}}function $oe(i,e,n,t){for(let r=0,o=0;r=n){if(o>=t&&l.slice(t-e.length-s,t-s)==e)return t-e.length;let c=s=0&&c+e.length+s>=n)return s+c;if(n==t&&l.length>=t+e.length-s&&l.slice(t-s,t-s+e.length)==e)return t}}return-1}function zE(i,e,n,t,r){let o=[];for(let a=0,s=0;a=n||d<=e?o.push(l):(cn&&o.push(l.slice(n-c,l.size,t)))}return o}function JE(i,e=null){let n=i.domSelectionRange(),t=i.state.doc;if(!n.focusNode)return null;let r=i.docView.nearestDesc(n.focusNode),o=r&&r.size==0,a=i.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(a<0)return null;let s=t.resolve(a),l,c;if(ay(n)){for(l=a;r&&!r.node;)r=r.parent;let p=r.node;if(r&&p.isAtom&&Ke.isSelectable(p)&&r.parent&&!(p.isInline&&voe(n.focusNode,n.focusOffset,r.dom))){let h=r.posBefore;c=new Ke(a==h?s:t.resolve(h))}}else{if(n instanceof i.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let p=a,h=a;for(let g=0;g{(n.anchorNode!=t||n.anchorOffset!=r)&&(e.removeEventListener("selectionchange",i.input.hideSelectionGuard),setTimeout(()=>{(!X3(i)||i.state.selection.visible)&&i.dom.classList.remove("ProseMirror-hideselection")},20))})}function qoe(i){let e=i.domSelection(),n=document.createRange();if(!e)return;let t=i.cursorWrapper.dom,r=t.nodeName=="IMG";r?n.setStart(t.parentNode,xn(t)+1):n.setStart(t,0),n.collapse(!0),e.removeAllRanges(),e.addRange(n),!r&&!i.state.selection.visible&&Pr&&Ql<=11&&(t.disabled=!0,t.disabled=!1)}function J3(i,e){if(e instanceof Ke){let n=i.docView.descAt(e.from);n!=i.lastSelectedViewDesc&&(y3(i),n&&n.selectNode(),i.lastSelectedViewDesc=n)}else y3(i)}function y3(i){i.lastSelectedViewDesc&&(i.lastSelectedViewDesc.parent&&i.lastSelectedViewDesc.deselectNode(),i.lastSelectedViewDesc=void 0)}function ZE(i,e,n,t){return i.someProp("createSelectionBetween",r=>r(i,e,n))||ct.between(e,n,t)}function C3(i){return i.editable&&!i.hasFocus()?!1:Z3(i)}function Z3(i){let e=i.domSelectionRange();if(!e.anchorNode)return!1;try{return i.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(i.editable||i.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function Woe(i){let e=i.docView.domFromPos(i.state.selection.anchor,0),n=i.domSelectionRange();return fd(e.node,e.offset,n.anchorNode,n.anchorOffset)}function HE(i,e){let{$anchor:n,$head:t}=i.selection,r=e>0?n.max(t):n.min(t),o=r.parent.inlineContent?r.depth?i.doc.resolve(e>0?r.after():r.before()):null:r;return o&&Qe.findFrom(o,e)}function ql(i,e){return i.dispatch(i.state.tr.setSelection(e).scrollIntoView()),!0}function x3(i,e,n){let t=i.state.selection;if(t instanceof ct)if(n.indexOf("s")>-1){let{$head:r}=t,o=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter;if(!o||o.isText||!o.isLeaf)return!1;let a=i.state.doc.resolve(r.pos+o.nodeSize*(e<0?-1:1));return ql(i,new ct(t.$anchor,a))}else if(t.empty){if(i.endOfTextblock(e>0?"forward":"backward")){let r=HE(i.state,e);return r&&r instanceof Ke?ql(i,r):!1}else if(!(Do&&n.indexOf("m")>-1)){let r=t.$head,o=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter,a;if(!o||o.isText)return!1;let s=e<0?r.pos-o.nodeSize:r.pos;return o.isAtom||(a=i.docView.descAt(s))&&!a.contentDOM?Ke.isSelectable(o)?ql(i,new Ke(e<0?i.state.doc.resolve(r.pos-o.nodeSize):r)):Rf?ql(i,new ct(i.state.doc.resolve(e<0?s:s+o.nodeSize))):!1:!1}}else return!1;else{if(t instanceof Ke&&t.node.isInline)return ql(i,new ct(e>0?t.$to:t.$from));{let r=HE(i.state,e);return r?ql(i,r):!1}}}function Z0(i){return i.nodeType==3?i.nodeValue.length:i.childNodes.length}function Df(i,e){let n=i.pmViewDesc;return n&&n.size==0&&(e<0||i.nextSibling||i.nodeName!="BR")}function zp(i,e){return e<0?Qoe(i):Koe(i)}function Qoe(i){let e=i.domSelectionRange(),n=e.focusNode,t=e.focusOffset;if(!n)return;let r,o,a=!1;for(ia&&n.nodeType==1&&t0){if(n.nodeType!=1)break;{let s=n.childNodes[t-1];if(Df(s,-1))r=n,o=--t;else if(s.nodeType==3)n=s,t=n.nodeValue.length;else break}}else{if(eV(n))break;{let s=n.previousSibling;for(;s&&Df(s,-1);)r=n.parentNode,o=xn(s),s=s.previousSibling;if(s)n=s,t=Z0(n);else{if(n=n.parentNode,n==i.dom)break;t=0}}}a?UE(i,n,t):r&&UE(i,r,o)}function Koe(i){let e=i.domSelectionRange(),n=e.focusNode,t=e.focusOffset;if(!n)return;let r=Z0(n),o,a;for(;;)if(t{i.state==r&&bs(i)},50)}function w3(i,e){let n=i.state.doc.resolve(e);if(!(Wn||xoe)&&n.parent.inlineContent){let r=i.coordsAtPos(e);if(e>n.start()){let o=i.coordsAtPos(e-1),a=(o.top+o.bottom)/2;if(a>r.top&&a1)return o.leftr.top&&a1)return o.left>r.left?"ltr":"rtl"}}return getComputedStyle(i.dom).direction=="rtl"?"rtl":"ltr"}function S3(i,e,n){let t=i.state.selection;if(t instanceof ct&&!t.empty||n.indexOf("s")>-1||Do&&n.indexOf("m")>-1)return!1;let{$from:r,$to:o}=t;if(!r.parent.inlineContent||i.endOfTextblock(e<0?"up":"down")){let a=HE(i.state,e);if(a&&a instanceof Ke)return ql(i,a)}if(!r.parent.inlineContent){let a=e<0?r:o,s=t instanceof cr?Qe.near(a,e):Qe.findFrom(a,e);return s?ql(i,s):!1}return!1}function E3(i,e){if(!(i.state.selection instanceof ct))return!0;let{$head:n,$anchor:t,empty:r}=i.state.selection;if(!n.sameParent(t))return!0;if(!r)return!1;if(i.endOfTextblock(e>0?"forward":"backward"))return!0;let o=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(o&&!o.isText){let a=i.state.tr;return e<0?a.delete(n.pos-o.nodeSize,n.pos):a.delete(n.pos,n.pos+o.nodeSize),i.dispatch(a),!0}return!1}function T3(i,e,n){i.domObserver.stop(),e.contentEditable=n,i.domObserver.start()}function Joe(i){if(!dr||i.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=i.domSelectionRange();if(e&&e.nodeType==1&&n==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let t=e.firstChild;T3(i,t,"true"),setTimeout(()=>T3(i,t,"false"),20)}return!1}function Zoe(i){let e="";return i.ctrlKey&&(e+="c"),i.metaKey&&(e+="m"),i.altKey&&(e+="a"),i.shiftKey&&(e+="s"),e}function eae(i,e){let n=e.keyCode,t=Zoe(e);if(n==8||Do&&n==72&&t=="c")return E3(i,-1)||zp(i,-1);if(n==46&&!e.shiftKey||Do&&n==68&&t=="c")return E3(i,1)||zp(i,1);if(n==13||n==27)return!0;if(n==37||Do&&n==66&&t=="c"){let r=n==37?w3(i,i.state.selection.from)=="ltr"?-1:1:-1;return x3(i,r,t)||zp(i,r)}else if(n==39||Do&&n==70&&t=="c"){let r=n==39?w3(i,i.state.selection.from)=="ltr"?1:-1:1;return x3(i,r,t)||zp(i,r)}else{if(n==38||Do&&n==80&&t=="c")return S3(i,-1,t)||zp(i,-1);if(n==40||Do&&n==78&&t=="c")return Joe(i)||S3(i,1,t)||zp(i,1);if(t==(Do?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function tV(i,e){i.someProp("transformCopied",g=>{e=g(e,i)});let n=[],{content:t,openStart:r,openEnd:o}=e;for(;r>1&&o>1&&t.childCount==1&&t.firstChild.childCount==1;){r--,o--;let g=t.firstChild;n.push(g.type.name,g.attrs!=g.type.defaultAttrs?g.attrs:null),t=g.content}let a=i.someProp("clipboardSerializer")||ms.fromSchema(i.state.schema),s=sV(),l=s.createElement("div");l.appendChild(a.serializeFragment(t,{document:s}));let c=l.firstChild,d,p=0;for(;c&&c.nodeType==1&&(d=aV[c.nodeName.toLowerCase()]);){for(let g=d.length-1;g>=0;g--){let _=s.createElement(d[g]);for(;l.firstChild;)_.appendChild(l.firstChild);l.appendChild(_),p++}c=l.firstChild}c&&c.nodeType==1&&c.setAttribute("data-pm-slice",`${r} ${o}${p?` -${p}`:""} ${JSON.stringify(n)}`);let h=i.someProp("clipboardTextSerializer",g=>g(e,i))||e.content.textBetween(0,e.content.size,` + +`);return{dom:l,text:h,slice:e}}function iV(i,e,n,t,r){let o=r.parent.type.spec.code,a,s;if(!n&&!e)return null;let l=e&&(t||o||!n);if(l){if(i.someProp("transformPastedText",h=>{e=h(e,o||t,i)}),o)return e?new Ce(le.from(i.state.schema.text(e.replace(/\r\n?/g,` +`))),0,0):Ce.empty;let p=i.someProp("clipboardTextParser",h=>h(e,r,t,i));if(p)s=p;else{let h=r.marks(),{schema:g}=i.state,_=ms.fromSchema(g);a=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(S=>{let E=a.appendChild(document.createElement("p"));S&&E.appendChild(_.serializeNode(g.text(S,h)))})}}else i.someProp("transformPastedHTML",p=>{n=p(n,i)}),a=rae(n),Rf&&oae(a);let c=a&&a.querySelector("[data-pm-slice]"),d=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(d&&d[3])for(let p=+d[3];p>0;p--){let h=a.firstChild;for(;h&&h.nodeType!=1;)h=h.nextSibling;if(!h)break;a=h}if(s||(s=(i.someProp("clipboardParser")||i.someProp("domParser")||od.fromSchema(i.state.schema)).parseSlice(a,{preserveWhitespace:!!(l||d),context:r,ruleFromNode(h){return h.nodeName=="BR"&&!h.nextSibling&&h.parentNode&&!tae.test(h.parentNode.nodeName)?{ignore:!0}:null}})),d)s=aae(D3(s,+d[1],+d[2]),d[4]);else if(s=Ce.maxOpen(iae(s.content,r),!0),s.openStart||s.openEnd){let p=0,h=0;for(let g=s.content.firstChild;p{s=p(s,i)}),s}var tae=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function iae(i,e){if(i.childCount<2)return i;for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.index(n)),o,a=[];if(i.forEach(s=>{if(!a)return;let l=r.findWrapping(s.type),c;if(!l)return a=null;if(c=a.length&&o.length&&rV(l,o,s,a[a.length-1],0))a[a.length-1]=c;else{a.length&&(a[a.length-1]=oV(a[a.length-1],o.length));let d=nV(s,l);a.push(d),r=r.matchType(d.type),o=l}}),a)return le.from(a)}return i}function nV(i,e,n=0){for(let t=e.length-1;t>=n;t--)i=e[t].create(null,le.from(i));return i}function rV(i,e,n,t,r){if(r1&&(o=0),r=n&&(s=e<0?a.contentMatchAt(0).fillBefore(s,o<=r).append(s):s.append(a.contentMatchAt(a.childCount).fillBefore(le.empty,!0))),i.replaceChild(e<0?0:i.childCount-1,a.copy(s))}function D3(i,e,n){return en}).createHTML(i):i}function rae(i){let e=/^(\s*]*>)*/.exec(i);e&&(i=i.slice(e[0].length));let n=sV().createElement("div"),t=/<([a-z][^>\s]+)/i.exec(i),r;if((r=t&&aV[t[1].toLowerCase()])&&(i=r.map(o=>"<"+o+">").join("")+i+r.map(o=>"").reverse().join("")),n.innerHTML=nae(i),r)for(let o=0;o=0;s-=2){let l=n.nodes[t[s]];if(!l||l.hasRequiredAttrs())break;r=le.from(l.create(t[s+1],r)),o++,a++}return new Ce(r,o,a)}var ur={},pr={},sae={touchstart:!0,touchmove:!0},GE=class{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}};function lae(i){for(let e in ur){let n=ur[e];i.dom.addEventListener(e,i.input.eventHandlers[e]=t=>{dae(i,t)&&!eT(i,t)&&(i.editable||!(t.type in pr))&&n(i,t)},sae[e]?{passive:!0}:void 0)}dr&&i.dom.addEventListener("input",()=>null),qE(i)}function Wl(i,e){i.input.lastSelectionOrigin=e,i.input.lastSelectionTime=Date.now()}function cae(i){i.domObserver.stop();for(let e in i.input.eventHandlers)i.dom.removeEventListener(e,i.input.eventHandlers[e]);clearTimeout(i.input.composingTimeout),clearTimeout(i.input.lastIOSEnterFallbackTimeout)}function qE(i){i.someProp("handleDOMEvents",e=>{for(let n in e)i.input.eventHandlers[n]||i.dom.addEventListener(n,i.input.eventHandlers[n]=t=>eT(i,t))})}function eT(i,e){return i.someProp("handleDOMEvents",n=>{let t=n[e.type];return t?t(i,e)||e.defaultPrevented:!1})}function dae(i,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=i.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function uae(i,e){!eT(i,e)&&ur[e.type]&&(i.editable||!(e.type in pr))&&ur[e.type](i,e)}pr.keydown=(i,e)=>{let n=e;if(i.input.shiftKey=n.keyCode==16||n.shiftKey,!cV(i,n)&&(i.input.lastKeyCode=n.keyCode,i.input.lastKeyCodeTime=Date.now(),!(ta&&Wn&&n.keyCode==13)))if(i.domObserver.selectionChanged(i.domSelectionRange())?i.domObserver.flush():n.keyCode!=229&&i.domObserver.forceFlush(),$p&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let t=Date.now();i.input.lastIOSEnter=t,i.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{i.input.lastIOSEnter==t&&(i.someProp("handleKeyDown",r=>r(i,cd(13,"Enter"))),i.input.lastIOSEnter=0)},200)}else i.someProp("handleKeyDown",t=>t(i,n))||eae(i,n)?n.preventDefault():Wl(i,"key")};pr.keyup=(i,e)=>{e.keyCode==16&&(i.input.shiftKey=!1)};pr.keypress=(i,e)=>{let n=e;if(cV(i,n)||!n.charCode||n.ctrlKey&&!n.altKey||Do&&n.metaKey)return;if(i.someProp("handleKeyPress",r=>r(i,n))){n.preventDefault();return}let t=i.state.selection;if(!(t instanceof ct)||!t.$from.sameParent(t.$to)){let r=String.fromCharCode(n.charCode);!/[\r\n]/.test(r)&&!i.someProp("handleTextInput",o=>o(i,t.$from.pos,t.$to.pos,r))&&i.dispatch(i.state.tr.insertText(r).scrollIntoView()),n.preventDefault()}};function sy(i){return{left:i.clientX,top:i.clientY}}function pae(i,e){let n=e.x-i.clientX,t=e.y-i.clientY;return n*n+t*t<100}function tT(i,e,n,t,r){if(t==-1)return!1;let o=i.state.doc.resolve(t);for(let a=o.depth+1;a>0;a--)if(i.someProp(e,s=>a>o.depth?s(i,n,o.nodeAfter,o.before(a),r,!0):s(i,n,o.node(a),o.before(a),r,!1)))return!0;return!1}function Up(i,e,n){if(i.focused||i.focus(),i.state.selection.eq(e))return;let t=i.state.tr.setSelection(e);n=="pointer"&&t.setMeta("pointer",!0),i.dispatch(t)}function mae(i,e){if(e==-1)return!1;let n=i.state.doc.resolve(e),t=n.nodeAfter;return t&&t.isAtom&&Ke.isSelectable(t)?(Up(i,new Ke(n),"pointer"),!0):!1}function hae(i,e){if(e==-1)return!1;let n=i.state.selection,t,r;n instanceof Ke&&(t=n.node);let o=i.state.doc.resolve(e);for(let a=o.depth+1;a>0;a--){let s=a>o.depth?o.nodeAfter:o.node(a);if(Ke.isSelectable(s)){t&&n.$from.depth>0&&a>=n.$from.depth&&o.before(n.$from.depth+1)==n.$from.pos?r=o.before(n.$from.depth):r=o.before(a);break}}return r!=null?(Up(i,Ke.create(i.state.doc,r),"pointer"),!0):!1}function fae(i,e,n,t,r){return tT(i,"handleClickOn",e,n,t)||i.someProp("handleClick",o=>o(i,e,t))||(r?hae(i,n):mae(i,n))}function gae(i,e,n,t){return tT(i,"handleDoubleClickOn",e,n,t)||i.someProp("handleDoubleClick",r=>r(i,e,t))}function _ae(i,e,n,t){return tT(i,"handleTripleClickOn",e,n,t)||i.someProp("handleTripleClick",r=>r(i,e,t))||bae(i,n,t)}function bae(i,e,n){if(n.button!=0)return!1;let t=i.state.doc;if(e==-1)return t.inlineContent?(Up(i,ct.create(t,0,t.content.size),"pointer"),!0):!1;let r=t.resolve(e);for(let o=r.depth+1;o>0;o--){let a=o>r.depth?r.nodeAfter:r.node(o),s=r.before(o);if(a.inlineContent)Up(i,ct.create(t,s+1,s+1+a.content.size),"pointer");else if(Ke.isSelectable(a))Up(i,Ke.create(t,s),"pointer");else continue;return!0}}function iT(i){return ey(i)}var lV=Do?"metaKey":"ctrlKey";ur.mousedown=(i,e)=>{let n=e;i.input.shiftKey=n.shiftKey;let t=iT(i),r=Date.now(),o="singleClick";r-i.input.lastClick.time<500&&pae(n,i.input.lastClick)&&!n[lV]&&(i.input.lastClick.type=="singleClick"?o="doubleClick":i.input.lastClick.type=="doubleClick"&&(o="tripleClick")),i.input.lastClick={time:r,x:n.clientX,y:n.clientY,type:o};let a=i.posAtCoords(sy(n));a&&(o=="singleClick"?(i.input.mouseDown&&i.input.mouseDown.done(),i.input.mouseDown=new WE(i,a,n,!!t)):(o=="doubleClick"?gae:_ae)(i,a.pos,a.inside,n)?n.preventDefault():Wl(i,"pointer"))};var WE=class{constructor(e,n,t,r){this.view=e,this.pos=n,this.event=t,this.flushed=r,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!t[lV],this.allowDefault=t.shiftKey;let o,a;if(n.inside>-1)o=e.state.doc.nodeAt(n.inside),a=n.inside;else{let d=e.state.doc.resolve(n.pos);o=d.parent,a=d.depth?d.before():0}let s=r?null:t.target,l=s?e.docView.nearestDesc(s,!0):null;this.target=l&&l.dom.nodeType==1?l.dom:null;let{selection:c}=e.state;(t.button==0&&o.type.spec.draggable&&o.type.spec.selectable!==!1||c instanceof Ke&&c.from<=a&&c.to>a)&&(this.mightDrag={node:o,pos:a,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&ia&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),Wl(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>bs(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(sy(e))),this.updateAllowDefault(e),this.allowDefault||!n?Wl(this.view,"pointer"):fae(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||dr&&this.mightDrag&&!this.mightDrag.node.isAtom||Wn&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(Up(this.view,Qe.near(this.view.state.doc.resolve(n.pos)),"pointer"),e.preventDefault()):Wl(this.view,"pointer")}move(e){this.updateAllowDefault(e),Wl(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}};ur.touchstart=i=>{i.input.lastTouch=Date.now(),iT(i),Wl(i,"pointer")};ur.touchmove=i=>{i.input.lastTouch=Date.now(),Wl(i,"pointer")};ur.contextmenu=i=>iT(i);function cV(i,e){return i.composing?!0:dr&&Math.abs(e.timeStamp-i.input.compositionEndedAt)<500?(i.input.compositionEndedAt=-2e8,!0):!1}var vae=ta?5e3:-1;pr.compositionstart=pr.compositionupdate=i=>{if(!i.composing){i.domObserver.flush();let{state:e}=i,n=e.selection.$to;if(e.selection instanceof ct&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(t=>t.type.spec.inclusive===!1)))i.markCursor=i.state.storedMarks||n.marks(),ey(i,!0),i.markCursor=null;else if(ey(i,!e.selection.empty),ia&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let t=i.domSelectionRange();for(let r=t.focusNode,o=t.focusOffset;r&&r.nodeType==1&&o!=0;){let a=o<0?r.lastChild:r.childNodes[o-1];if(!a)break;if(a.nodeType==3){let s=i.domSelection();s&&s.collapse(a,a.nodeValue.length);break}else r=a,o=-1}}i.input.composing=!0}dV(i,vae)};pr.compositionend=(i,e)=>{i.composing&&(i.input.composing=!1,i.input.compositionEndedAt=e.timeStamp,i.input.compositionPendingChanges=i.domObserver.pendingRecords().length?i.input.compositionID:0,i.input.compositionNode=null,i.input.compositionPendingChanges&&Promise.resolve().then(()=>i.domObserver.flush()),i.input.compositionID++,dV(i,20))};function dV(i,e){clearTimeout(i.input.composingTimeout),e>-1&&(i.input.composingTimeout=setTimeout(()=>ey(i),e))}function uV(i){for(i.composing&&(i.input.composing=!1,i.input.compositionEndedAt=Cae());i.input.compositionNodes.length>0;)i.input.compositionNodes.pop().markParentsDirty()}function yae(i){let e=i.domSelectionRange();if(!e.focusNode)return null;let n=_oe(e.focusNode,e.focusOffset),t=boe(e.focusNode,e.focusOffset);if(n&&t&&n!=t){let r=t.pmViewDesc,o=i.domObserver.lastChangedTextNode;if(n==o||t==o)return o;if(!r||!r.isText(t.nodeValue))return t;if(i.input.compositionNode==t){let a=n.pmViewDesc;if(!(!a||!a.isText(n.nodeValue)))return t}}return n||t}function Cae(){let i=document.createEvent("Event");return i.initEvent("event",!0,!0),i.timeStamp}function ey(i,e=!1){if(!(ta&&i.domObserver.flushingSoon>=0)){if(i.domObserver.forceFlush(),uV(i),e||i.docView&&i.docView.dirty){let n=JE(i);return n&&!n.eq(i.state.selection)?i.dispatch(i.state.tr.setSelection(n)):(i.markCursor||e)&&!i.state.selection.empty?i.dispatch(i.state.tr.deleteSelection()):i.updateState(i.state),!0}return!1}}function xae(i,e){if(!i.dom.parentNode)return;let n=i.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let t=getSelection(),r=document.createRange();r.selectNodeContents(e),i.dom.blur(),t.removeAllRanges(),t.addRange(r),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),i.focus()},50)}var If=Pr&&Ql<15||$p&&woe<604;ur.copy=pr.cut=(i,e)=>{let n=e,t=i.state.selection,r=n.type=="cut";if(t.empty)return;let o=If?null:n.clipboardData,a=t.content(),{dom:s,text:l}=tV(i,a);o?(n.preventDefault(),o.clearData(),o.setData("text/html",s.innerHTML),o.setData("text/plain",l)):xae(i,s),r&&i.dispatch(i.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function wae(i){return i.openStart==0&&i.openEnd==0&&i.content.childCount==1?i.content.firstChild:null}function Sae(i,e){if(!i.dom.parentNode)return;let n=i.input.shiftKey||i.state.selection.$from.parent.type.spec.code,t=i.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(t.contentEditable="true"),t.style.cssText="position: fixed; left: -10000px; top: 10px",t.focus();let r=i.input.shiftKey&&i.input.lastKeyCode!=45;setTimeout(()=>{i.focus(),t.parentNode&&t.parentNode.removeChild(t),n?Mf(i,t.value,null,r,e):Mf(i,t.textContent,t.innerHTML,r,e)},50)}function Mf(i,e,n,t,r){let o=iV(i,e,n,t,i.state.selection.$from);if(i.someProp("handlePaste",l=>l(i,r,o||Ce.empty)))return!0;if(!o)return!1;let a=wae(o),s=a?i.state.tr.replaceSelectionWith(a,t):i.state.tr.replaceSelection(o);return i.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function pV(i){let e=i.getData("text/plain")||i.getData("Text");if(e)return e;let n=i.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}pr.paste=(i,e)=>{let n=e;if(i.composing&&!ta)return;let t=If?null:n.clipboardData,r=i.input.shiftKey&&i.input.lastKeyCode!=45;t&&Mf(i,pV(t),t.getData("text/html"),r,n)?n.preventDefault():Sae(i,n)};var ty=class{constructor(e,n,t){this.slice=e,this.move=n,this.node=t}},mV=Do?"altKey":"ctrlKey";ur.dragstart=(i,e)=>{let n=e,t=i.input.mouseDown;if(t&&t.done(),!n.dataTransfer)return;let r=i.state.selection,o=r.empty?null:i.posAtCoords(sy(n)),a;if(!(o&&o.pos>=r.from&&o.pos<=(r instanceof Ke?r.to-1:r.to))){if(t&&t.mightDrag)a=Ke.create(i.state.doc,t.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let p=i.docView.nearestDesc(n.target,!0);p&&p.node.type.spec.draggable&&p!=i.docView&&(a=Ke.create(i.state.doc,p.posBefore))}}let s=(a||i.state.selection).content(),{dom:l,text:c,slice:d}=tV(i,s);(!n.dataTransfer.files.length||!Wn||z3>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(If?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",If||n.dataTransfer.setData("text/plain",c),i.dragging=new ty(d,!n[mV],a)};ur.dragend=i=>{let e=i.dragging;window.setTimeout(()=>{i.dragging==e&&(i.dragging=null)},50)};pr.dragover=pr.dragenter=(i,e)=>e.preventDefault();pr.drop=(i,e)=>{let n=e,t=i.dragging;if(i.dragging=null,!n.dataTransfer)return;let r=i.posAtCoords(sy(n));if(!r)return;let o=i.state.doc.resolve(r.pos),a=t&&t.slice;a?i.someProp("transformPasted",_=>{a=_(a,i)}):a=iV(i,pV(n.dataTransfer),If?null:n.dataTransfer.getData("text/html"),!1,o);let s=!!(t&&!n[mV]);if(i.someProp("handleDrop",_=>_(i,n,a||Ce.empty,s))){n.preventDefault();return}if(!a)return;n.preventDefault();let l=a?$0(i.state.doc,o.pos,a):o.pos;l==null&&(l=o.pos);let c=i.state.tr;if(s){let{node:_}=t;_?_.replace(c):c.deleteSelection()}let d=c.mapping.map(l),p=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,h=c.doc;if(p?c.replaceRangeWith(d,d,a.content.firstChild):c.replaceRange(d,d,a),c.doc.eq(h))return;let g=c.doc.resolve(d);if(p&&Ke.isSelectable(a.content.firstChild)&&g.nodeAfter&&g.nodeAfter.sameMarkup(a.content.firstChild))c.setSelection(new Ke(g));else{let _=c.mapping.map(l);c.mapping.maps[c.mapping.maps.length-1].forEach((S,E,D,O)=>_=O),c.setSelection(ZE(i,g,c.doc.resolve(_)))}i.focus(),i.dispatch(c.setMeta("uiEvent","drop"))};ur.focus=i=>{i.input.lastFocus=Date.now(),i.focused||(i.domObserver.stop(),i.dom.classList.add("ProseMirror-focused"),i.domObserver.start(),i.focused=!0,setTimeout(()=>{i.docView&&i.hasFocus()&&!i.domObserver.currentSelection.eq(i.domSelectionRange())&&bs(i)},20))};ur.blur=(i,e)=>{let n=e;i.focused&&(i.domObserver.stop(),i.dom.classList.remove("ProseMirror-focused"),i.domObserver.start(),n.relatedTarget&&i.dom.contains(n.relatedTarget)&&i.domObserver.currentSelection.clear(),i.focused=!1)};ur.beforeinput=(i,e)=>{if(Wn&&ta&&e.inputType=="deleteContentBackward"){i.domObserver.flushSoon();let{domChangeCount:t}=i.input;setTimeout(()=>{if(i.input.domChangeCount!=t||(i.dom.blur(),i.focus(),i.someProp("handleKeyDown",o=>o(i,cd(8,"Backspace")))))return;let{$cursor:r}=i.state.selection;r&&r.pos>0&&i.dispatch(i.state.tr.delete(r.pos-1,r.pos).scrollIntoView())},50)}};for(let i in pr)ur[i]=pr[i];function Of(i,e){if(i==e)return!0;for(let n in i)if(i[n]!==e[n])return!1;for(let n in e)if(!(n in i))return!1;return!0}var iy=class i{constructor(e,n){this.toDOM=e,this.spec=n||md,this.side=this.spec.side||0}map(e,n,t,r){let{pos:o,deleted:a}=e.mapResult(n.from+r,this.side<0?-1:1);return a?null:new Lr(o-t,o-t,this)}valid(){return!0}eq(e){return this==e||e instanceof i&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Of(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}},pd=class i{constructor(e,n){this.attrs=e,this.spec=n||md}map(e,n,t,r){let o=e.map(n.from+r,this.spec.inclusiveStart?-1:1)-t,a=e.map(n.to+r,this.spec.inclusiveEnd?1:-1)-t;return o>=a?null:new Lr(o,a,this)}valid(e,n){return n.from=e&&(!o||o(s.spec))&&t.push(s.copy(s.from+r,s.to+r))}for(let a=0;ae){let s=this.children[a]+1;this.children[a+2].findInner(e-s,n-s,t,r+s,o)}}map(e,n,t){return this==qn||e.maps.length==0?this:this.mapInner(e,n,0,0,t||md)}mapInner(e,n,t,r,o){let a;for(let s=0;s{let c=l+t,d;if(d=fV(n,s,c)){for(r||(r=this.children.slice());os&&p.to=e){this.children[s]==e&&(t=this.children[s+2]);break}let o=e+1,a=o+n.content.size;for(let s=0;so&&l.type instanceof pd){let c=Math.max(o,l.from)-o,d=Math.min(a,l.to)-o;cr.map(e,n,md));return i.from(t)}forChild(e,n){if(n.isLeaf)return mn.empty;let t=[];for(let r=0;rn instanceof mn)?e:e.reduce((n,t)=>n.concat(t instanceof mn?t:t.members),[]))}}forEachSet(e){for(let n=0;n{let E=S-_-(g-h);for(let D=0;DO+d-p)continue;let I=s[D]+d-p;g>=I?s[D+1]=h<=I?-2:-1:h>=d&&E&&(s[D]+=E,s[D+1]+=E)}p+=E}),d=n.maps[c].map(d,-1)}let l=!1;for(let c=0;c=t.content.size){l=!0;continue}let h=n.map(i[c+1]+o,-1),g=h-r,{index:_,offset:S}=t.content.findIndex(p),E=t.maybeChild(_);if(E&&S==p&&S+E.nodeSize==g){let D=s[c+2].mapInner(n,E,d+1,i[c]+o+1,a);D!=qn?(s[c]=p,s[c+1]=g,s[c+2]=D):(s[c+1]=-2,l=!0)}else l=!0}if(l){let c=Tae(s,i,e,n,r,o,a),d=ry(c,t,0,a);e=d.local;for(let p=0;pn&&a.to{let c=fV(i,s,l+n);if(c){o=!0;let d=ry(c,s,n+l+1,t);d!=qn&&r.push(l,l+s.nodeSize,d)}});let a=hV(o?gV(i):i,-n).sort(hd);for(let s=0;s0;)e++;i.splice(e,0,n)}function OE(i){let e=[];return i.someProp("decorations",n=>{let t=n(i.state);t&&t!=qn&&e.push(t)}),i.cursorWrapper&&e.push(mn.create(i.state.doc,[i.cursorWrapper.deco])),ny.from(e)}var Dae={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},kae=Pr&&Ql<=11,KE=class{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}},YE=class{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new KE,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(t=>{for(let r=0;rr.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),kae&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,Dae)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let n=0;nthis.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(C3(this.view)){if(this.suppressingSelectionUpdates)return bs(this.view);if(Pr&&Ql<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&fd(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let n=new Set,t;for(let o=e.focusNode;o;o=kf(o))n.add(o);for(let o=e.anchorNode;o;o=kf(o))if(n.has(o)){t=o;break}let r=t&&this.view.docView.nearestDesc(t);if(r&&r.ignoreMutation({type:"selection",target:t.nodeType==3?t.parentNode:t}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}selectionChanged(e){return!this.suppressingSelectionUpdates&&!this.currentSelection.eq(e)&&C3(this.view)&&!this.ignoreSelectionChange(e)}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let t=e.domSelectionRange(),r=this.selectionChanged(t),o=-1,a=-1,s=!1,l=[];if(e.editable)for(let d=0;dp.nodeName=="BR");if(d.length==2){let[p,h]=d;p.parentNode&&p.parentNode.parentNode==h.parentNode?h.remove():p.remove()}else{let{focusNode:p}=this.currentSelection;for(let h of d){let g=h.parentNode;g&&g.nodeName=="LI"&&(!p||Oae(e,p)!=g)&&h.remove()}}}let c=null;o<0&&r&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)-1||r)&&(o>-1&&(e.docView.markDirty(o,a),Iae(e)),this.handleDOMChange(o,a,s,l),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(t)||bs(e),this.currentSelection.set(t))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let t=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(t==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!t||t.ignoreMutation(e))return null;if(e.type=="childList"){for(let d=0;dr;E--){let D=t.childNodes[E-1],O=D.pmViewDesc;if(D.nodeName=="BR"&&!O){o=E;break}if(!O||O.size)break}let p=i.state.doc,h=i.someProp("domParser")||od.fromSchema(i.state.schema),g=p.resolve(a),_=null,S=h.parse(t,{topNode:g.parent,topMatch:g.parent.contentMatchAt(g.index()),topOpen:!0,from:r,to:o,preserveWhitespace:g.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:Rae,context:g});if(c&&c[0].pos!=null){let E=c[0].pos,D=c[1]&&c[1].pos;D==null&&(D=E),_={anchor:E+a,head:D+a}}return{doc:S,sel:_,from:a,to:s}}function Rae(i){let e=i.pmViewDesc;if(e)return e.parseRule();if(i.nodeName=="BR"&&i.parentNode){if(dr&&/^(ul|ol)$/i.test(i.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(i.parentNode.lastChild==i||dr&&/^(tr|table)$/i.test(i.parentNode.nodeName))return{ignore:!0}}else if(i.nodeName=="IMG"&&i.getAttribute("mark-placeholder"))return{ignore:!0};return null}var Nae=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function Fae(i,e,n,t,r){let o=i.input.compositionPendingChanges||(i.composing?i.input.compositionID:0);if(i.input.compositionPendingChanges=0,e<0){let Ae=i.input.lastSelectionTime>Date.now()-50?i.input.lastSelectionOrigin:null,Et=JE(i,Ae);if(Et&&!i.state.selection.eq(Et)){if(Wn&&ta&&i.input.lastKeyCode===13&&Date.now()-100Mo(i,cd(13,"Enter"))))return;let Tn=i.state.tr.setSelection(Et);Ae=="pointer"?Tn.setMeta("pointer",!0):Ae=="key"&&Tn.scrollIntoView(),o&&Tn.setMeta("composition",o),i.dispatch(Tn)}return}let a=i.state.doc.resolve(e),s=a.sharedDepth(n);e=a.before(s+1),n=i.state.doc.resolve(n).after(s+1);let l=i.state.selection,c=Aae(i,e,n),d=i.state.doc,p=d.slice(c.from,c.to),h,g;i.input.lastKeyCode===8&&Date.now()-100Date.now()-225||ta)&&r.some(Ae=>Ae.nodeType==1&&!Nae.test(Ae.nodeName))&&(!_||_.endA>=_.endB)&&i.someProp("handleKeyDown",Ae=>Ae(i,cd(13,"Enter")))){i.input.lastIOSEnter=0;return}if(!_)if(t&&l instanceof ct&&!l.empty&&l.$head.sameParent(l.$anchor)&&!i.composing&&!(c.sel&&c.sel.anchor!=c.sel.head))_={start:l.from,endA:l.to,endB:l.to};else{if(c.sel){let Ae=R3(i,i.state.doc,c.sel);if(Ae&&!Ae.eq(i.state.selection)){let Et=i.state.tr.setSelection(Ae);o&&Et.setMeta("composition",o),i.dispatch(Et)}}return}i.state.selection.fromi.state.selection.from&&_.start<=i.state.selection.from+2&&i.state.selection.from>=c.from?_.start=i.state.selection.from:_.endA=i.state.selection.to-2&&i.state.selection.to<=c.to&&(_.endB+=i.state.selection.to-_.endA,_.endA=i.state.selection.to)),Pr&&Ql<=11&&_.endB==_.start+1&&_.endA==_.start&&_.start>c.from&&c.doc.textBetween(_.start-c.from-1,_.start-c.from+1)==" \xA0"&&(_.start--,_.endA--,_.endB--);let S=c.doc.resolveNoCache(_.start-c.from),E=c.doc.resolveNoCache(_.endB-c.from),D=d.resolve(_.start),O=S.sameParent(E)&&S.parent.inlineContent&&D.end()>=_.endA,I;if(($p&&i.input.lastIOSEnter>Date.now()-225&&(!O||r.some(Ae=>Ae.nodeName=="DIV"||Ae.nodeName=="P"))||!O&&S.posAe(i,cd(13,"Enter")))){i.input.lastIOSEnter=0;return}if(i.state.selection.anchor>_.start&&Lae(d,_.start,_.endA,S,E)&&i.someProp("handleKeyDown",Ae=>Ae(i,cd(8,"Backspace")))){ta&&Wn&&i.domObserver.suppressSelectionUpdates();return}Wn&&ta&&_.endB==_.start&&(i.input.lastAndroidDelete=Date.now()),ta&&!O&&S.start()!=E.start()&&E.parentOffset==0&&S.depth==E.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==_.endA&&(_.endB-=2,E=c.doc.resolveNoCache(_.endB-c.from),setTimeout(()=>{i.someProp("handleKeyDown",function(Ae){return Ae(i,cd(13,"Enter"))})},20));let L=_.start,V=_.endA,he,Z,je;if(O){if(S.pos==E.pos)Pr&&Ql<=11&&S.parentOffset==0&&(i.domObserver.suppressSelectionUpdates(),setTimeout(()=>bs(i),20)),he=i.state.tr.delete(L,V),Z=d.resolve(_.start).marksAcross(d.resolve(_.endA));else if(_.endA==_.endB&&(je=Pae(S.parent.content.cut(S.parentOffset,E.parentOffset),D.parent.content.cut(D.parentOffset,_.endA-D.start()))))he=i.state.tr,je.type=="add"?he.addMark(L,V,je.mark):he.removeMark(L,V,je.mark);else if(S.parent.child(S.index()).isText&&S.index()==E.index()-(E.textOffset?0:1)){let Ae=S.parent.textBetween(S.parentOffset,E.parentOffset);if(i.someProp("handleTextInput",Et=>Et(i,L,V,Ae)))return;he=i.state.tr.insertText(Ae,L,V)}}if(he||(he=i.state.tr.replace(L,V,c.doc.slice(_.start-c.from,_.endB-c.from))),c.sel){let Ae=R3(i,he.doc,c.sel);Ae&&!(Wn&&ta&&i.composing&&Ae.empty&&(_.start!=_.endB||i.input.lastAndroidDeletee.content.size?null:ZE(i,e.resolve(n.anchor),e.resolve(n.head))}function Pae(i,e){let n=i.firstChild.marks,t=e.firstChild.marks,r=n,o=t,a,s,l;for(let d=0;dd.mark(s.addToSet(d.marks));else if(r.length==0&&o.length==1)s=o[0],a="remove",l=d=>d.mark(s.removeFromSet(d.marks));else return null;let c=[];for(let d=0;dn||AE(a,!0,!1)0&&(e||i.indexAfter(t)==i.node(t).childCount);)t--,r++,e=!1;if(n){let o=i.node(t).maybeChild(i.indexAfter(t));for(;o&&!o.isLeaf;)o=o.firstChild,r++}return r}function Vae(i,e,n,t,r){let o=i.findDiffStart(e,n);if(o==null)return null;let{a,b:s}=i.findDiffEnd(e,n+i.size,n+e.size);if(r=="end"){let l=Math.max(0,o-Math.min(a,s));t-=a+l-o}if(a=a?o-t:0;o-=l,o&&o=s?o-t:0;o-=l,o&&o=56320&&e<=57343&&n>=55296&&n<=56319}var oy=class{constructor(e,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new GE,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(j3),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=L3(this),P3(this),this.nodeViews=V3(this),this.docView=f3(this.state.doc,F3(this),OE(this),this.dom,this),this.domObserver=new YE(this,(t,r,o,a)=>Fae(this,t,r,o,a)),this.domObserver.start(),lae(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let n in e)this._props[n]=e[n];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&qE(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(j3),this.directPlugins=e.plugins),this.updateStateInner(e.state,n)}setProps(e){let n={};for(let t in this._props)n[t]=this._props[t];n.state=this.state;for(let t in e)n[t]=e[t];this.update(n)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,n){var t;let r=this.state,o=!1,a=!1;e.storedMarks&&this.composing&&(uV(this),a=!0),this.state=e;let s=r.plugins!=e.plugins||this._props.plugins!=n.plugins;if(s||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let g=V3(this);Bae(g,this.nodeViews)&&(this.nodeViews=g,o=!0)}(s||n.handleDOMEvents!=this._props.handleDOMEvents)&&qE(this),this.editable=L3(this),P3(this);let l=OE(this),c=F3(this),d=r.plugins!=e.plugins&&!r.doc.eq(e.doc)?"reset":e.scrollToSelection>r.scrollToSelection?"to selection":"preserve",p=o||!this.docView.matchesNode(e.doc,c,l);(p||!e.selection.eq(r.selection))&&(a=!0);let h=d=="preserve"&&a&&this.dom.style.overflowAnchor==null&&Toe(this);if(a){this.domObserver.stop();let g=p&&(Pr||Wn)&&!this.composing&&!r.selection.empty&&!e.selection.empty&&jae(r.selection,e.selection);if(p){let _=Wn?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=yae(this)),(o||!this.docView.update(e.doc,c,l,this))&&(this.docView.updateOuterDeco(c),this.docView.destroy(),this.docView=f3(e.doc,c,l,this.dom,this)),_&&!this.trackWrites&&(g=!0)}g||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&Woe(this))?bs(this,g):(J3(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),!((t=this.dragging)===null||t===void 0)&&t.node&&!r.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,r),d=="reset"?this.dom.scrollTop=0:d=="to selection"?this.scrollToSelection():h&&Doe(h)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof Ke){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&c3(this,n.getBoundingClientRect(),e)}else c3(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n0&&this.state.doc.nodeAt(o))==t.node&&(r=o)}this.dragging=new ty(e.slice,e.move,r<0?void 0:Ke.create(this.state.doc,r))}someProp(e,n){let t=this._props&&this._props[e],r;if(t!=null&&(r=n?n(t):t))return r;for(let a=0;an.ownerDocument.getSelection()),this._root=n}return e||document}updateRoot(){this._root=null}posAtCoords(e){return Roe(this,e)}coordsAtPos(e,n=1){return q3(this,e,n)}domAtPos(e,n=0){return this.docView.domFromPos(e,n)}nodeDOM(e){let n=this.docView.descAt(e);return n?n.nodeDOM:null}posAtDOM(e,n,t=-1){let r=this.docView.posFromDOM(e,n,t);if(r==null)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(e,n){return Voe(this,n||this.state,e)}pasteHTML(e,n){return Mf(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return Mf(this,e,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(cae(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],OE(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,foe())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return uae(this,e)}dispatch(e){let n=this._props.dispatchTransaction;n?n.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){let e=this.domSelection();return e?dr&&this.root.nodeType===11&&yoe(this.dom.ownerDocument)==this.dom&&Mae(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}};function F3(i){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(i.editable),i.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(i.state)),n)for(let t in n)t=="class"?e.class+=" "+n[t]:t=="style"?e.style=(e.style?e.style+";":"")+n[t]:!e[t]&&t!="contenteditable"&&t!="nodeName"&&(e[t]=String(n[t]))}),e.translate||(e.translate="no"),[Lr.node(0,i.state.doc.content.size,e)]}function P3(i){if(i.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),i.cursorWrapper={dom:e,deco:Lr.widget(i.state.selection.from,e,{raw:!0,marks:i.markCursor})}}else i.cursorWrapper=null}function L3(i){return!i.someProp("editable",e=>e(i.state)===!1)}function jae(i,e){let n=Math.min(i.$anchor.sharedDepth(i.head),e.$anchor.sharedDepth(e.head));return i.$anchor.start(n)!=e.$anchor.start(n)}function V3(i){let e=Object.create(null);function n(t){for(let r in t)Object.prototype.hasOwnProperty.call(e,r)||(e[r]=t[r])}return i.someProp("nodeViews",n),i.someProp("markViews",n),e}function Bae(i,e){let n=0,t=0;for(let r in i){if(i[r]!=e[r])return!0;n++}for(let r in e)t++;return n!=t}function j3(i){if(i.spec.state||i.spec.filterTransaction||i.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var vs={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},cy={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},zae=typeof navigator<"u"&&/Mac/.test(navigator.platform),Hae=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(Qi=0;Qi<10;Qi++)vs[48+Qi]=vs[96+Qi]=String(Qi);var Qi;for(Qi=1;Qi<=24;Qi++)vs[Qi+111]="F"+Qi;var Qi;for(Qi=65;Qi<=90;Qi++)vs[Qi]=String.fromCharCode(Qi+32),cy[Qi]=String.fromCharCode(Qi);var Qi;for(ly in vs)cy.hasOwnProperty(ly)||(cy[ly]=vs[ly]);var ly;function _V(i){var e=zae&&i.metaKey&&i.shiftKey&&!i.ctrlKey&&!i.altKey||Hae&&i.shiftKey&&i.key&&i.key.length==1||i.key=="Unidentified",n=!e&&i.key||(i.shiftKey?cy:vs)[i.keyCode]||i.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}var Uae=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function $ae(i){let e=i.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let t,r,o,a;for(let s=0;s127)&&(o=vs[t.keyCode])&&o!=r){let s=e[rT(o,t)];if(s&&s(n.state,n.dispatch,n))return!0}}return!1}}var aT,sT;if(typeof WeakMap<"u"){let i=new WeakMap;aT=e=>i.get(e),sT=(e,n)=>(i.set(e,n),n)}else{let i=[],n=0;aT=t=>{for(let r=0;r(n==10&&(n=0),i[n++]=t,i[n++]=r)}var wn=class{constructor(i,e,n,t){this.width=i,this.height=e,this.map=n,this.problems=t}findCell(i){for(let e=0;e=n){(o||(o=[])).push({type:"overlong_rowspan",pos:d,n:D-I});break}let L=r+I*e;for(let V=0;Vt&&(o+=c.attrs.colspan)}}for(let a=0;a1&&(n=!0)}e==-1?e=o:e!=o&&(e=Math.max(e,o))}return e}function Qae(i,e,n){i.problems||(i.problems=[]);let t={};for(let r=0;r0;e--)if(i.node(e).type.spec.tableRole=="row")return i.node(0).resolve(i.before(e+1));return null}function Yae(i){for(let e=i.depth;e>0;e--){let n=i.node(e).type.spec.tableRole;if(n==="cell"||n==="header_cell")return i.node(e)}return null}function io(i){let e=i.selection.$head;for(let n=e.depth;n>0;n--)if(e.node(n).type.spec.tableRole=="row")return!0;return!1}function qp(i){let e=i.selection;if("$anchorCell"in e&&e.$anchorCell)return e.$anchorCell.pos>e.$headCell.pos?e.$anchorCell:e.$headCell;if("node"in e&&e.node&&e.node.type.spec.tableRole=="cell")return e.$anchor;let n=Ff(e.$head)||Xae(e.$head);if(n)return n;throw new RangeError(`No cell found around position ${e.head}`)}function Xae(i){for(let e=i.nodeAfter,n=i.pos;e;e=e.firstChild,n++){let t=e.type.spec.tableRole;if(t=="cell"||t=="header_cell")return i.doc.resolve(n)}for(let e=i.nodeBefore,n=i.pos;e;e=e.lastChild,n--){let t=e.type.spec.tableRole;if(t=="cell"||t=="header_cell")return i.doc.resolve(n-e.nodeSize)}}function bV(i){return i.parent.type.spec.tableRole=="row"&&!!i.nodeAfter}function Jae(i){return i.node(0).resolve(i.pos+i.nodeAfter.nodeSize)}function cT(i,e){return i.depth==e.depth&&i.pos>=e.start(-1)&&i.pos<=e.end(-1)}function EV(i,e,n){let t=i.node(-1),r=wn.get(t),o=i.start(-1),a=r.nextCell(i.pos-o,e,n);return a==null?null:i.node(0).resolve(o+a)}function _d(i,e,n=1){let t=ce(N({},i),{colspan:i.colspan-n});return t.colwidth&&(t.colwidth=t.colwidth.slice(),t.colwidth.splice(e,n),t.colwidth.some(r=>r>0)||(t.colwidth=null)),t}function TV(i,e,n=1){let t=ce(N({},i),{colspan:i.colspan+n});if(t.colwidth){t.colwidth=t.colwidth.slice();for(let r=0;rd!=n.pos-o);l.unshift(n.pos-o);let c=l.map(d=>{let p=t.nodeAt(d);if(!p)throw RangeError(`No cell with offset ${d} found`);let h=o+d+1;return new $l(s.resolve(h),s.resolve(h+p.content.size))});super(c[0].$from,c[0].$to,c),this.$anchorCell=e,this.$headCell=n}map(e,n){let t=e.resolve(n.map(this.$anchorCell.pos)),r=e.resolve(n.map(this.$headCell.pos));if(bV(t)&&bV(r)&&cT(t,r)){let o=this.$anchorCell.node(-1)!=t.node(-1);return o&&this.isRowSelection()?ys.rowSelection(t,r):o&&this.isColSelection()?ys.colSelection(t,r):new ys(t,r)}return ct.between(t,r)}content(){let e=this.$anchorCell.node(-1),n=wn.get(e),t=this.$anchorCell.start(-1),r=n.rectBetween(this.$anchorCell.pos-t,this.$headCell.pos-t),o={},a=[];for(let l=r.top;l0||E>0){let D=_.attrs;if(S>0&&(D=_d(D,0,S)),E>0&&(D=_d(D,D.colspan-E,E)),g.leftr.bottom){let D=ce(N({},_.attrs),{rowspan:Math.min(g.bottom,r.bottom)-Math.max(g.top,r.top)});g.top0)return!1;let t=e+this.$anchorCell.nodeAfter.attrs.rowspan,r=n+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(t,r)==this.$headCell.node(-1).childCount}static colSelection(e,n=e){let t=e.node(-1),r=wn.get(t),o=e.start(-1),a=r.findCell(e.pos-o),s=r.findCell(n.pos-o),l=e.node(0);return a.top<=s.top?(a.top>0&&(e=l.resolve(o+r.map[a.left])),s.bottom0&&(n=l.resolve(o+r.map[s.left])),a.bottom0)return!1;let a=r+this.$anchorCell.nodeAfter.attrs.colspan,s=o+this.$headCell.nodeAfter.attrs.colspan;return Math.max(a,s)==n.width}eq(e){return e instanceof ys&&e.$anchorCell.pos==this.$anchorCell.pos&&e.$headCell.pos==this.$headCell.pos}static rowSelection(e,n=e){let t=e.node(-1),r=wn.get(t),o=e.start(-1),a=r.findCell(e.pos-o),s=r.findCell(n.pos-o),l=e.node(0);return a.left<=s.left?(a.left>0&&(e=l.resolve(o+r.map[a.top*r.width])),s.right0&&(n=l.resolve(o+r.map[s.top*r.width])),a.right{e.push(Lr.node(t,t+n.nodeSize,{class:"selectedCell"}))}),mn.create(i.doc,e)}function ise({$from:i,$to:e}){if(i.pos==e.pos||i.pos=0&&!(i.after(r+1)=0&&!(e.before(o+1)>e.start(o));o--,t--);return n==t&&/row|table/.test(i.node(r).type.spec.tableRole)}function nse({$from:i,$to:e}){let n,t;for(let r=i.depth;r>0;r--){let o=i.node(r);if(o.type.spec.tableRole==="cell"||o.type.spec.tableRole==="header_cell"){n=o;break}}for(let r=e.depth;r>0;r--){let o=e.node(r);if(o.type.spec.tableRole==="cell"||o.type.spec.tableRole==="header_cell"){t=o;break}}return n!==t&&e.parentOffset===0}function rse(i,e,n){let t=(e||i).selection,r=(e||i).doc,o,a;if(t instanceof Ke&&(a=t.node.type.spec.tableRole)){if(a=="cell"||a=="header_cell")o=oi.create(r,t.from);else if(a=="row"){let s=r.resolve(t.from+1);o=oi.rowSelection(s,s)}else if(!n){let s=wn.get(t.node),l=t.from+1,c=l+s.map[s.width*s.height-1];o=oi.create(r,l+1,c)}}else t instanceof ct&&ise(t)?o=ct.create(r,t.from):t instanceof ct&&nse(t)&&(o=ct.create(r,t.$from.start(),t.$from.end()));return o&&(e||(e=i.tr)).setSelection(o),e}var ose=new ea("fix-tables");function kV(i,e,n,t){let r=i.childCount,o=e.childCount;e:for(let a=0,s=0;a{r.type.spec.tableRole=="table"&&(n=sse(i,r,o,n))};return e?e.doc!=i.doc&&kV(e.doc,i.doc,0,t):i.doc.descendants(t),n}function sse(i,e,n,t){let r=wn.get(e);if(!r.problems)return t;t||(t=i.tr);let o=[];for(let l=0;l0){let g="cell";d.firstChild&&(g=d.firstChild.type.spec.tableRole);let _=[];for(let E=0;E0?-1:0;Zae(e,t,r+o)&&(o=r==0||r==e.width?null:0);for(let a=0;a0&&r0&&e.map[s-1]==l||r0?-1:0;cse(e,t,r+l)&&(l=r==0||r==e.height?null:0);for(let c=0,d=e.width*r;c0&&r0&&p==e.map[d-e.width]){let h=n.nodeAt(p).attrs;i.setNodeMarkup(i.mapping.slice(s).map(p+t),null,ce(N({},h),{rowspan:h.rowspan-1})),c+=h.colspan-1}else if(r0&&n[o]==n[o-1]||t.right0&&n[r]==n[r-i]||t.bottomn[t.type.spec.tableRole])(i,e)}function pse(i){return(e,n)=>{var t;let r=e.selection,o,a;if(r instanceof oi){if(r.$anchorCell.pos!=r.$headCell.pos)return!1;o=r.$anchorCell.nodeAfter,a=r.$anchorCell.pos}else{if(o=Yae(r.$from),!o)return!1;a=(t=Ff(r.$from))==null?void 0:t.pos}if(o==null||a==null||o.attrs.colspan==1&&o.attrs.rowspan==1)return!1;if(n){let s=o.attrs,l=[],c=s.colwidth;s.rowspan>1&&(s=ce(N({},s),{rowspan:1})),s.colspan>1&&(s=ce(N({},s),{colspan:1}));let d=Oa(e),p=e.tr;for(let g=0;g{a.attrs[i]!==e&&o.setNodeMarkup(s,null,ce(N({},a.attrs),{[i]:e}))}):o.setNodeMarkup(r.pos,null,ce(N({},r.nodeAfter.attrs),{[i]:e})),t(o)}return!0}}function mse(i){return function(e,n){if(!io(e))return!1;if(n){let t=Sn(e.schema),r=Oa(e),o=e.tr,a=r.map.cellsInRect(i=="column"?{left:r.left,top:0,right:r.right,bottom:r.map.height}:i=="row"?{left:0,top:r.top,right:r.map.width,bottom:r.bottom}:r),s=a.map(l=>r.table.nodeAt(l));for(let l=0;l{let _=g+o.tableStart,S=a.doc.nodeAt(_);S&&a.setNodeMarkup(_,h,S.attrs)}),t(a)}return!0}}var BV=dT("row",{useDeprecatedLogic:!0}),zV=dT("column",{useDeprecatedLogic:!0}),HV=dT("cell",{useDeprecatedLogic:!0});function hse(i,e){if(e<0){let n=i.nodeBefore;if(n)return i.pos-n.nodeSize;for(let t=i.index(-1)-1,r=i.before();t>=0;t--){let o=i.node(-1).child(t),a=o.lastChild;if(a)return r-1-a.nodeSize;r-=o.nodeSize}}else{if(i.index()0;t--)if(n.node(t).type.spec.tableRole=="table")return e&&e(i.tr.delete(n.before(t),n.after(t)).scrollIntoView()),!0;return!1}function uy(i,e){let n=i.selection;if(!(n instanceof oi))return!1;if(e){let t=i.tr,r=Sn(i.schema).cell.createAndFill().content;n.forEachCell((o,a)=>{o.content.eq(r)||t.replace(t.mapping.map(a+1),t.mapping.map(a+o.nodeSize-1),new Ce(r,0,0))}),t.docChanged&&e(t)}return!0}function fse(i){if(!i.size)return null;let{content:e,openStart:n,openEnd:t}=i;for(;e.childCount==1&&(n>0&&t>0||e.child(0).type.spec.tableRole=="table");)n--,t--,e=e.child(0).content;let r=e.child(0),o=r.type.spec.tableRole,a=r.type.schema,s=[];if(o=="row")for(let l=0;l=0;a--){let{rowspan:s,colspan:l}=o.child(a).attrs;for(let c=r;c=e.length&&e.push(le.empty),n[r]t&&(h=h.type.createChecked(_d(h.attrs,h.attrs.colspan,d+h.attrs.colspan-t),h.content)),c.push(h),d+=h.attrs.colspan;for(let g=1;gr&&(p=p.type.create(ce(N({},p.attrs),{rowspan:Math.max(1,r-p.attrs.rowspan)}),p.content)),l.push(p)}o.push(le.from(l))}n=o,e=r}return{width:i,height:e,rows:n}}function bse(i,e,n,t,r,o,a){let s=i.doc.type.schema,l=Sn(s),c,d;if(r>e.width)for(let p=0,h=0;pe.height){let p=[];for(let _=0,S=(e.height-1)*e.width;_=e.width?!1:n.nodeAt(e.map[S+_]).type==l.header_cell;p.push(E?d||(d=l.header_cell.createAndFill()):c||(c=l.cell.createAndFill()))}let h=l.row.create(null,le.from(p)),g=[];for(let _=e.height;_{if(!r)return!1;let o=n.selection;if(o instanceof oi)return hy(n,t,Qe.near(o.$headCell,e));if(i!="horiz"&&!o.empty)return!1;let a=$V(r,i,e);if(a==null)return!1;if(i=="horiz")return hy(n,t,Qe.near(n.doc.resolve(o.head+e),e));{let s=n.doc.resolve(a),l=EV(s,i,e),c;return l?c=Qe.near(l,1):e<0?c=Qe.near(n.doc.resolve(s.before(-1)),-1):c=Qe.near(n.doc.resolve(s.after(-1)),1),hy(n,t,c)}}}function my(i,e){return(n,t,r)=>{if(!r)return!1;let o=n.selection,a;if(o instanceof oi)a=o;else{let l=$V(r,i,e);if(l==null)return!1;a=new oi(n.doc.resolve(l))}let s=EV(a.$headCell,i,e);return s?hy(n,t,new oi(a.$anchorCell,s)):!1}}function yse(i,e){let n=i.state.doc,t=Ff(n.resolve(e));return t?(i.dispatch(i.state.tr.setSelection(new oi(t))),!0):!1}function Cse(i,e,n){if(!io(i.state))return!1;let t=fse(n),r=i.state.selection;if(r instanceof oi){t||(t={width:1,height:1,rows:[le.from(lT(Sn(i.state.schema).cell,n))]});let o=r.$anchorCell.node(-1),a=r.$anchorCell.start(-1),s=wn.get(o).rectBetween(r.$anchorCell.pos-a,r.$headCell.pos-a);return t=_se(t,s.right-s.left,s.bottom-s.top),wV(i.state,i.dispatch,a,s,t),!0}else if(t){let o=qp(i.state),a=o.start(-1);return wV(i.state,i.dispatch,a,wn.get(o.node(-1)).findCell(o.pos-a),t),!0}else return!1}function xse(i,e){var n;if(e.ctrlKey||e.metaKey)return;let t=SV(i,e.target),r;if(e.shiftKey&&i.state.selection instanceof oi)o(i.state.selection.$anchorCell,e),e.preventDefault();else if(e.shiftKey&&t&&(r=Ff(i.state.selection.$anchor))!=null&&((n=oT(i,e))==null?void 0:n.pos)!=r.pos)o(r,e),e.preventDefault();else if(!t)return;function o(l,c){let d=oT(i,c),p=Xl.getState(i.state)==null;if(!d||!cT(l,d))if(p)d=l;else return;let h=new oi(l,d);if(p||!i.state.selection.eq(h)){let g=i.state.tr.setSelection(h);p&&g.setMeta(Xl,l.pos),i.dispatch(g)}}function a(){i.root.removeEventListener("mouseup",a),i.root.removeEventListener("dragstart",a),i.root.removeEventListener("mousemove",s),Xl.getState(i.state)!=null&&i.dispatch(i.state.tr.setMeta(Xl,-1))}function s(l){let c=l,d=Xl.getState(i.state),p;if(d!=null)p=i.state.doc.resolve(d);else if(SV(i,c.target)!=t&&(p=oT(i,e),!p))return a();p&&o(p,c)}i.root.addEventListener("mouseup",a),i.root.addEventListener("dragstart",a),i.root.addEventListener("mousemove",s)}function $V(i,e,n){if(!(i.state.selection instanceof ct))return null;let{$head:t}=i.state.selection;for(let r=t.depth-1;r>=0;r--){let o=t.node(r);if((n<0?t.index(r):t.indexAfter(r))!=(n<0?0:o.childCount))return null;if(o.type.spec.tableRole=="cell"||o.type.spec.tableRole=="header_cell"){let s=t.before(r),l=e=="vert"?n>0?"down":"up":n>0?"right":"left";return i.endOfTextblock(l)?s:null}}return null}function SV(i,e){for(;e&&e!=i.dom;e=e.parentNode)if(e.nodeName=="TD"||e.nodeName=="TH")return e;return null}function oT(i,e){let n=i.posAtCoords({left:e.clientX,top:e.clientY});return n&&n?Ff(i.state.doc.resolve(n.pos)):null}var XZe=new ea("tableColumnResizing");function GV({allowTableNodeSelection:i=!1}={}){return new Wi({key:Xl,state:{init(){return null},apply(e,n){let t=e.getMeta(Xl);if(t!=null)return t==-1?null:t;if(n==null||!e.docChanged)return n;let{deleted:r,pos:o}=e.mapping.mapResult(n);return r?null:o}},props:{decorations:tse,handleDOMEvents:{mousedown:xse},createSelectionBetween(e){return Xl.getState(e.state)!=null?e.state.selection:null},handleTripleClick:yse,handleKeyDown:vse,handlePaste:Cse},appendTransaction(e,n,t){return rse(t,ase(t,n),i)}})}var Pf=class i{plugin;constructor(){let e=x(pe),n=this;this.plugin=new Wi({state:{init(){return mn.empty},apply(t,r){r=r.map(t.mapping,t.doc);let o=t.getMeta(n.plugin);if(o?.add){let a=e.createElement("placeholder"),s=Lr.widget(o.add.pos,a,{id:o.add.id});r=r.add(t.doc,[s])}else o?.remove&&(r=r.remove(r.find(void 0,void 0,a=>a.id===o.remove.id)));return r}},props:{decorations(t){return this.getState(t)}}})}findPlaceholder(e,n){let r=this.plugin.getState(e)?.find(void 0,void 0,o=>o.id===n);return r?.length?r[0].from:null}startImageUpload(e,n,t,r){let o={},a=e.state.tr;a.selection.empty||a.deleteSelection(),a.setMeta(this.plugin,{add:{id:o,pos:a.selection.from}}),e.dispatch(a),t(n).subscribe({next:s=>{let l=this.findPlaceholder(e.state,o);l!==null&&e.dispatch(e.state.tr.replaceWith(l,l,r.nodes.image.create({src:s})).setMeta(this.plugin,{remove:{id:o}}))},error:()=>{e?.dispatch(a.setMeta(this.plugin,{remove:{id:o}}))}})}static \u0275fac=function(n){return new(n||i)};static \u0275prov=W({token:i,factory:i.\u0275fac,providedIn:"root"})};var wse=["p",0],Sse=["blockquote",0],Ese=["hr"],Tse=["pre",["code",0]],Dse=["br"],Jl={doc:{content:"block+"},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM(){return wse}},blockquote:{content:"block+",group:"block",defining:!0,parseDOM:[{tag:"blockquote"}],toDOM(){return Sse}},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM(){return Ese}},heading:{attrs:{level:{default:1,validate:"number"}},content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"h1",attrs:{level:1}},{tag:"h2",attrs:{level:2}},{tag:"h3",attrs:{level:3}},{tag:"h4",attrs:{level:4}},{tag:"h5",attrs:{level:5}},{tag:"h6",attrs:{level:6}}],toDOM(i){return["h"+i.attrs.level,0]}},code_block:{content:"text*",marks:"",group:"block",code:!0,defining:!0,parseDOM:[{tag:"pre",preserveWhitespace:"full"}],toDOM(){return Tse}},text:{group:"inline"},image:{inline:!0,attrs:{src:{validate:"string"},alt:{default:null,validate:"string|null"},title:{default:null,validate:"string|null"}},group:"inline",draggable:!0,parseDOM:[{tag:"img[src]",getAttrs(i){return{src:i.getAttribute("src"),title:i.getAttribute("title"),alt:i.getAttribute("alt")}}}],toDOM(i){let{src:e,alt:n,title:t}=i.attrs;return["img",{src:e,alt:n,title:t}]}},hard_break:{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM(){return Dse}}},kse=["em",0],Ise=["strong",0],Mse=["code",0],Lf={link:{attrs:{href:{validate:"string"},title:{default:null,validate:"string|null"}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs(i){return{href:i.getAttribute("href"),title:i.getAttribute("title")}}}],toDOM(i){let{href:e,title:n}=i.attrs;return["a",{href:e,title:n},0]}},em:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"},{style:"font-style=normal",clearMark:i=>i.type.name=="em"}],toDOM(){return kse}},strong:{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:i=>i.style.fontWeight!="normal"&&null},{style:"font-weight=400",clearMark:i=>i.type.name=="strong"},{style:"font-weight",getAttrs:i=>/^(bold(er)?|[5-9]\d{2,})$/.test(i)&&null}],toDOM(){return Ise}},code:{parseDOM:[{tag:"code"}],toDOM(){return Mse}}},uet=new ps({nodes:Jl,marks:Lf});var Ose=["ol",0],Ase=["ul",0],Rse=["li",0],Nse={attrs:{order:{default:1,validate:"number"}},parseDOM:[{tag:"ol",getAttrs(i){return{order:i.hasAttribute("start")?+i.getAttribute("start"):1}}}],toDOM(i){return i.attrs.order==1?Ose:["ol",{start:i.attrs.order},0]}},Fse={parseDOM:[{tag:"ul"}],toDOM(){return Ase}},Pse={parseDOM:[{tag:"li"}],toDOM(){return Rse},defining:!0};function pT(i,e){let n={};for(let t in i)n[t]=i[t];for(let t in e)n[t]=e[t];return n}function mT(i,e,n){return i.append({ordered_list:pT(Nse,{content:"list_item+",group:n}),bullet_list:pT(Fse,{content:"list_item+",group:n}),list_item:pT(Pse,{content:e})})}function Vf(i,e=null){return function(n,t){let{$from:r,$to:o}=n.selection,a=r.blockRange(o),s=!1,l=a;if(!a)return!1;if(a.depth>=2&&r.node(a.depth-1).type.compatibleContent(i)&&a.startIndex==0){if(r.index(a.depth-1)==0)return!1;let d=n.doc.resolve(a.start-2);l=new nd(d,d,a.depth),a.endIndex=0;d--)o=le.from(n[d].type.create(n[d].attrs,o));i.step(new pn(e.start-(t?2:0),e.end,e.start,e.end,new Ce(o,0,0),n.length,!0));let a=0;for(let d=0;d=r.depth-3;D--)p=le.from(r.node(D).copy(p));let g=r.indexAfter(-1){if(E>-1)return!1;D.isTextblock&&D.content.size==0&&(E=O+1)}),E>-1&&S.setSelection(Qe.near(S.doc.resolve(E))),t(S.scrollIntoView())}return!0}let l=o.pos==r.end()?s.contentMatchAt(0).defaultType:null,c=n.tr.delete(r.pos,o.pos),d=l?[e?{type:i,attrs:e}:null,{type:l}]:void 0;return Ul(c.doc,r.pos,2,d)?(t&&t(c.split(r.pos,2,d).scrollIntoView()),!0):!1}}function WV(i){return function(e,n){let{$from:t,$to:r}=e.selection,o=t.blockRange(r,a=>a.childCount>0&&a.firstChild.type==i);return o?n?t.node(o.depth-1).type==i?Vse(e,n,i,o):jse(e,n,o):!0:!1}}function Vse(i,e,n,t){let r=i.tr,o=t.end,a=t.$to.end(t.depth);oS;_--)g-=r.child(_).nodeSize,t.delete(g-1,g+1);let o=t.doc.resolve(n.start),a=o.nodeAfter;if(t.mapping.map(n.end)!=n.start+o.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,l=n.endIndex==r.childCount,c=o.node(-1),d=o.index(-1);if(!c.canReplace(d+(s?0:1),d+1,a.content.append(l?le.empty:le.from(r))))return!1;let p=o.pos,h=p+a.nodeSize;return t.step(new pn(p-(s?1:0),h+(l?1:0),p+1,h-1,new Ce((s?le.empty:le.from(r.copy(le.empty))).append(l?le.empty:le.from(r.copy(le.empty))),s?0:1,l?0:1),s?0:1)),e(t.scrollIntoView()),!0}function QV(i){return function(e,n){let{$from:t,$to:r}=e.selection,o=t.blockRange(r,c=>c.childCount>0&&c.firstChild.type==i);if(!o)return!1;let a=o.startIndex;if(a==0)return!1;let s=o.parent,l=s.child(a-1);if(l.type!=i)return!1;if(n){let c=l.lastChild&&l.lastChild.type==s.type,d=le.from(c?i.create():null),p=new Ce(le.from(i.create(null,le.from(s.type.create(null,d)))),c?3:1,0),h=o.start,g=o.end;n(e.tr.step(new pn(h-(c?3:1),g,h,g,p,1,!0)).scrollIntoView())}return!0}}var Bse=/(left|right|center|justify)/,jf={attrs:{align:{default:null},class:{default:null},id:{default:null}},content:"inline*",group:"block",parseDOM:[{tag:"p",getAttrs:i=>{if(!(i instanceof HTMLElement))return null;let{textAlign:e}=i.style,n=i.getAttribute("align")||e||"";n=Bse.test(n)?n:null;let t=i.getAttribute("id")||"";return{align:n,class:i.className,id:t}}}],toDOM:i=>{let{align:e,id:n}=i.attrs,t={},r="";return e&&e!=="left"&&(r+=`text-align: ${e};`),r&&(t.style=r),n&&(t.id=n),i.attrs.class&&(t.class=i.attrs.class),["p",t,0]}};var Wp=function(i){return e=>{if(!(e instanceof HTMLElement))return null;let n=e.getAttribute("id")||null;return{level:i,class:e.className,id:n}}},KV={attrs:{level:{default:1},class:{default:null},id:{default:null}},content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"h1",getAttrs:Wp(1)},{tag:"h2",getAttrs:Wp(2)},{tag:"h3",getAttrs:Wp(3)},{tag:"h4",getAttrs:Wp(4)},{tag:"h5",getAttrs:Wp(5)},{tag:"h6",getAttrs:Wp(6)}],toDOM:i=>{let{id:e}=i.attrs,n={};return e&&(n.id=e),i.attrs.class&&(n.class=i.attrs.class),["h"+i.attrs.level,n,0]}};function YV(i,e){if(!(i instanceof HTMLElement))return null;let n=i.getAttribute("data-colwidth"),t=n&&/^\d+(,\d+)*$/.test(n)?n.split(",").map(a=>Number(a)):null,r=Number(i.getAttribute("colspan")||1),o={colspan:r,rowspan:Number(i.getAttribute("rowspan")||1),colwidth:t&&t.length==r?t:null};for(let a in e){let s=e[a].getFromDOM,l=s?.(i);l!=null&&(o[a]=l)}return o}function XV(i,e){let n={};i.attrs.colspan!=1&&(n.colspan=i.attrs.colspan),i.attrs.rowspan!=1&&(n.rowspan=i.attrs.rowspan),i.attrs.colwidth&&(n["data-colwidth"]=i.attrs.colwidth.join(","));for(let t in e){let r=e[t].setDOMAttr;r&&r(i.attrs[t],n)}return n}function JV(i){let e=i.cellAttributes||{},n={colspan:{default:1},rowspan:{default:1},colwidth:{default:null}};for(let t in e)n[t]={default:e[t].default};return{table:{attrs:{class:{default:null},id:{default:""}},content:"table_row+",tableRole:"table",isolating:!0,group:i.tableGroup,parseDOM:[{tag:"table",getAttrs:t=>t instanceof HTMLElement?{class:t.className,id:t.id}:null}],toDOM:t=>{let r={};return t.attrs.class&&(r.class=t.attrs.class),t.attrs.id&&(r.id=t.attrs.id),["table",r,["tbody",0]]}},table_row:{content:"(table_cell | table_header)*",tableRole:"row",parseDOM:[{tag:"tr"}],toDOM:()=>["tr",0]},table_cell:{content:i.cellContent,attrs:n,tableRole:"cell",isolating:!0,parseDOM:[{tag:"td",getAttrs:t=>YV(t,e)}],toDOM:t=>["td",XV(t,e),0]},table_header:{content:i.cellContent,attrs:n,tableRole:"header_cell",isolating:!0,parseDOM:[{tag:"th",getAttrs:t=>YV(t,e)}],toDOM:t=>["th",XV(t,e),0]}}}var ZV={attrs:{color:{default:"#FF0000"}},parseDOM:[{style:"color",getAttrs:i=>typeof i=="string"?{color:i}:null}],toDOM(i){return["span",{style:`color: ${i.attrs.color}`},0]}};var zse={doc:Jl.doc,paragraph:Jl.paragraph,heading:Jl.heading,text:Jl.text,hard_break:Jl.hard_break},t8={link:Lf.link,em:Lf.em,strong:Lf.strong},i8=ce(N({},t8),{textColor:ZV}),e8=new ps({nodes:zse,marks:t8}),hT=new ps({nodes:mT(e8.spec.nodes,"paragraph block*","block"),marks:e8.spec.marks}),Hse=new ps({nodes:ce(N(ce(N({},Jl),{heading:KV}),JV({tableGroup:"block",cellContent:"block+",cellAttributes:{background:{default:null,getFromDOM(i){return i.style.backgroundColor||null},setDOMAttr(i,e){typeof i=="string"&&i&&(e.style=(e.style||"")+`background-color: ${i};`)}}}})),{paragraph:jf}),marks:i8}),fT=new ps({nodes:mT(Hse.spec.nodes,"paragraph block*","block"),marks:i8});function gT(){var i=arguments[0];typeof i=="string"&&(i=document.createElement(i));var e=1,n=arguments[1];if(n&&typeof n=="object"&&n.nodeType==null&&!Array.isArray(n)){for(var t in n)if(Object.prototype.hasOwnProperty.call(n,t)){var r=n[t];typeof r=="string"?i.setAttribute(t,r):r!=null&&(i[t]=r)}e++}for(;ei.selection.empty?!1:(e&&e(i.tr.deleteSelection().scrollIntoView()),!0);function Use(i,e){let{$cursor:n}=i.selection;return!n||(e?!e.endOfTextblock("backward",i):n.parentOffset>0)?null:n}var $se=(i,e,n)=>{let t=Use(i,n);if(!t)return!1;let r=a8(t);if(!r){let a=t.blockRange(),s=a&&sd(a);return s==null?!1:(e&&e(i.tr.lift(a,s).scrollIntoView()),!0)}let o=r.nodeBefore;if(c8(i,r,e,-1))return!0;if(t.parent.content.size==0&&(Qp(o,"end")||Ke.isSelectable(o)))for(let a=t.depth;;a--){let s=G0(i.doc,t.before(a),t.after(a),Ce.empty);if(s&&s.slice.size1)break}return o.isAtom&&r.depth==t.depth-1?(e&&e(i.tr.delete(r.pos-o.nodeSize,r.pos).scrollIntoView()),!0):!1};function Qp(i,e,n=!1){for(let t=i;t;t=e=="start"?t.firstChild:t.lastChild){if(t.isTextblock)return!0;if(n&&t.childCount!=1)return!1}return!1}var Gse=(i,e,n)=>{let{$head:t,empty:r}=i.selection,o=t;if(!r)return!1;if(t.parent.isTextblock){if(n?!n.endOfTextblock("backward",i):t.parentOffset>0)return!1;o=a8(t)}let a=o&&o.nodeBefore;return!a||!Ke.isSelectable(a)?!1:(e&&e(i.tr.setSelection(Ke.create(i.doc,o.pos-a.nodeSize)).scrollIntoView()),!0)};function a8(i){if(!i.parent.type.spec.isolating)for(let e=i.depth-1;e>=0;e--){if(i.index(e)>0)return i.doc.resolve(i.before(e+1));if(i.node(e).type.spec.isolating)break}return null}function qse(i,e){let{$cursor:n}=i.selection;return!n||(e?!e.endOfTextblock("forward",i):n.parentOffset{let t=qse(i,n);if(!t)return!1;let r=s8(t);if(!r)return!1;let o=r.nodeAfter;if(c8(i,r,e,1))return!0;if(t.parent.content.size==0&&(Qp(o,"start")||Ke.isSelectable(o))){let a=G0(i.doc,t.before(),t.after(),Ce.empty);if(a&&a.slice.size{let{$head:t,empty:r}=i.selection,o=t;if(!r)return!1;if(t.parent.isTextblock){if(n?!n.endOfTextblock("forward",i):t.parentOffset=0;e--){let n=i.node(e);if(i.index(e)+1{let n=i.selection,t=n instanceof Ke,r;if(t){if(n.node.isTextblock||!fs(i.doc,n.from))return!1;r=n.from}else if(r=SE(i.doc,n.from,-1),r==null)return!1;if(e){let o=i.tr.join(r);t&&o.setSelection(Ke.create(o.doc,r-i.doc.resolve(r).nodeBefore.nodeSize)),e(o.scrollIntoView())}return!0},l8=(i,e)=>{let n=i.selection,t;if(n instanceof Ke){if(n.node.isTextblock||!fs(i.doc,n.to))return!1;t=n.to}else if(t=SE(i.doc,n.to,1),t==null)return!1;return e&&e(i.tr.join(t).scrollIntoView()),!0},zf=(i,e)=>{let{$from:n,$to:t}=i.selection,r=n.blockRange(t),o=r&&sd(r);return o==null?!1:(e&&e(i.tr.lift(r,o).scrollIntoView()),!0)},Kse=(i,e)=>{let{$head:n,$anchor:t}=i.selection;return!n.parent.type.spec.code||!n.sameParent(t)?!1:(e&&e(i.tr.insertText(` +`).scrollIntoView()),!0)};function bT(i){for(let e=0;e{let{$head:n,$anchor:t}=i.selection;if(!n.parent.type.spec.code||!n.sameParent(t))return!1;let r=n.node(-1),o=n.indexAfter(-1),a=bT(r.contentMatchAt(o));if(!a||!r.canReplaceWith(o,o,a))return!1;if(e){let s=n.after(),l=i.tr.replaceWith(s,s,a.createAndFill());l.setSelection(Qe.near(l.doc.resolve(s),1)),e(l.scrollIntoView())}return!0},Yse=(i,e)=>{let n=i.selection,{$from:t,$to:r}=n;if(n instanceof cr||t.parent.inlineContent||r.parent.inlineContent)return!1;let o=bT(r.parent.contentMatchAt(r.indexAfter()));if(!o||!o.isTextblock)return!1;if(e){let a=(!t.parentOffset&&r.index(){let{$cursor:n}=i.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let o=n.before();if(Ul(i.doc,o))return e&&e(i.tr.split(o).scrollIntoView()),!0}let t=n.blockRange(),r=t&&sd(t);return r==null?!1:(e&&e(i.tr.lift(t,r).scrollIntoView()),!0)};function Jse(i){return(e,n)=>{let{$from:t,$to:r}=e.selection;if(e.selection instanceof Ke&&e.selection.node.isBlock)return!t.parentOffset||!Ul(e.doc,t.pos)?!1:(n&&n(e.tr.split(t.pos).scrollIntoView()),!0);if(!t.parent.isBlock)return!1;let o=r.parentOffset==r.parent.content.size,a=e.tr;(e.selection instanceof ct||e.selection instanceof cr)&&a.deleteSelection();let s=t.depth==0?null:bT(t.node(-1).contentMatchAt(t.indexAfter(-1))),l=i&&i(r.parent,o,t),c=l?[l]:o&&s?[{type:s}]:void 0,d=Ul(a.doc,a.mapping.map(t.pos),1,c);if(!c&&!d&&Ul(a.doc,a.mapping.map(t.pos),1,s?[{type:s}]:void 0)&&(s&&(c=[{type:s}]),d=!0),!d)return!1;if(a.split(a.mapping.map(t.pos),1,c),!o&&!t.parentOffset&&t.parent.type!=s){let p=a.mapping.map(t.before()),h=a.doc.resolve(p);s&&t.node(-1).canReplaceWith(h.index(),h.index()+1,s)&&a.setNodeMarkup(a.mapping.map(t.before()),s)}return n&&n(a.scrollIntoView()),!0}}var Zse=Jse();var Hf=(i,e)=>{let{$from:n,to:t}=i.selection,r,o=n.sharedDepth(t);return o==0?!1:(r=n.before(o),e&&e(i.tr.setSelection(Ke.create(i.doc,r))),!0)},ele=(i,e)=>(e&&e(i.tr.setSelection(new cr(i.doc))),!0);function tle(i,e,n){let t=e.nodeBefore,r=e.nodeAfter,o=e.index();return!t||!r||!t.type.compatibleContent(r.type)?!1:!t.content.size&&e.parent.canReplace(o-1,o)?(n&&n(i.tr.delete(e.pos-t.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(o,o+1)||!(r.isTextblock||fs(i.doc,e.pos))?!1:(n&&n(i.tr.join(e.pos).scrollIntoView()),!0)}function c8(i,e,n,t){let r=e.nodeBefore,o=e.nodeAfter,a,s,l=r.type.spec.isolating||o.type.spec.isolating;if(!l&&tle(i,e,n))return!0;let c=!l&&e.parent.canReplace(e.index(),e.index()+1);if(c&&(a=(s=r.contentMatchAt(r.childCount)).findWrapping(o.type))&&s.matchType(a[0]||o.type).validEnd){if(n){let g=e.pos+o.nodeSize,_=le.empty;for(let D=a.length-1;D>=0;D--)_=le.from(a[D].create(null,_));_=le.from(r.copy(_));let S=i.tr.step(new pn(e.pos-1,g,e.pos,g,new Ce(_,1,0),a.length,!0)),E=S.doc.resolve(g+2*a.length);E.nodeAfter&&E.nodeAfter.type==r.type&&fs(S.doc,E.pos)&&S.join(E.pos),n(S.scrollIntoView())}return!0}let d=o.type.spec.isolating||t>0&&l?null:Qe.findFrom(e,1),p=d&&d.$from.blockRange(d.$to),h=p&&sd(p);if(h!=null&&h>=e.depth)return n&&n(i.tr.lift(p,h).scrollIntoView()),!0;if(c&&Qp(o,"start",!0)&&Qp(r,"end")){let g=r,_=[];for(;_.push(g),!g.isTextblock;)g=g.lastChild;let S=o,E=1;for(;!S.isTextblock;S=S.firstChild)E++;if(g.canReplace(g.childCount,g.childCount,S.content)){if(n){let D=le.empty;for(let I=_.length-1;I>=0;I--)D=le.from(_[I].copy(D));let O=i.tr.step(new pn(e.pos-_.length,e.pos+o.nodeSize,e.pos+E,e.pos+o.nodeSize-E,new Ce(D,_.length,0),0,!0));n(O.scrollIntoView())}return!0}}return!1}function d8(i){return function(e,n){let t=e.selection,r=i<0?t.$from:t.$to,o=r.depth;for(;r.node(o).isInline;){if(!o)return!1;o--}return r.node(o).isTextblock?(n&&n(e.tr.setSelection(ct.create(e.doc,i<0?r.start(o):r.end(o)))),!0):!1}}var ile=d8(-1),nle=d8(1);function Uf(i,e=null){return function(n,t){let{$from:r,$to:o}=n.selection,a=r.blockRange(o),s=a&&Vp(a,i,e);return s?(t&&t(n.tr.wrap(a,s).scrollIntoView()),!0):!1}}function Kp(i,e=null){return function(n,t){let r=!1;for(let o=0;o{if(r)return!1;if(!(!l.isTextblock||l.hasMarkup(i,e)))if(l.type==i)r=!0;else{let d=n.doc.resolve(c),p=d.index();r=d.parent.canReplaceWith(p,p+1,i)}})}if(!r)return!1;if(t){let o=n.tr;for(let a=0;a{if(s||!t&&l.isAtom&&l.isInline&&c>=o.pos&&c+l.nodeSize<=a.pos)return!1;s=l.inlineContent&&l.type.allowsMarkType(n)}),s)return!0}return!1}function ole(i){let e=[];for(let n=0;n{if(o.isAtom&&o.content.size&&o.isInline&&a>=t.pos&&a+o.nodeSize<=r.pos)return a+1>t.pos&&e.push(new $l(t,t.doc.resolve(a+1))),t=t.doc.resolve(a+1+o.content.size),!1}),t.poso.doc.rangeHasMark(h.$from.pos,h.$to.pos,i)):d=!c.every(h=>{let g=!1;return p.doc.nodesBetween(h.$from.pos,h.$to.pos,(_,S,E)=>{if(g)return!1;g=!i.isInSet(_.marks)&&!!E&&E.type.allowsMarkType(i)&&!(_.isText&&/^\s*$/.test(_.textBetween(Math.max(0,h.$from.pos-S),Math.min(_.nodeSize,h.$to.pos-S))))}),!g});for(let h=0;h=n?En.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))};En.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)};En.prototype.forEach=function(e,n,t){n===void 0&&(n=0),t===void 0&&(t=this.length),n<=t?this.forEachInner(e,n,t,0):this.forEachInvertedInner(e,n,t,0)};En.prototype.map=function(e,n,t){n===void 0&&(n=0),t===void 0&&(t=this.length);var r=[];return this.forEach(function(o,a){return r.push(e(o,a))},n,t),r};En.from=function(e){return e instanceof En?e:e&&e.length?new m8(e):En.empty};var m8=function(i){function e(t){i.call(this),this.values=t}i&&(e.__proto__=i),e.prototype=Object.create(i&&i.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(r,o){return r==0&&o==this.length?this:new e(this.values.slice(r,o))},e.prototype.getInner=function(r){return this.values[r]},e.prototype.forEachInner=function(r,o,a,s){for(var l=o;l=a;l--)if(r(this.values[l],s+l)===!1)return!1},e.prototype.leafAppend=function(r){if(this.length+r.length<=fy)return new e(this.values.concat(r.flatten()))},e.prototype.leafPrepend=function(r){if(this.length+r.length<=fy)return new e(r.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e}(En);En.empty=new m8([]);var sle=function(i){function e(n,t){i.call(this),this.left=n,this.right=t,this.length=n.length+t.length,this.depth=Math.max(n.depth,t.depth)+1}return i&&(e.__proto__=i),e.prototype=Object.create(i&&i.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(t){return ts&&this.right.forEachInner(t,Math.max(r-s,0),Math.min(this.length,o)-s,a+s)===!1)return!1},e.prototype.forEachInvertedInner=function(t,r,o,a){var s=this.left.length;if(r>s&&this.right.forEachInvertedInner(t,r-s,Math.max(o,s)-s,a+s)===!1||o=o?this.right.slice(t-o,r-o):this.left.slice(t,o).append(this.right.slice(0,r-o))},e.prototype.leafAppend=function(t){var r=this.right.leafAppend(t);if(r)return new e(this.left,r)},e.prototype.leafPrepend=function(t){var r=this.left.leafPrepend(t);if(r)return new e(r,this.right)},e.prototype.appendInner=function(t){return this.left.depth>=Math.max(this.right.depth,t.depth)+1?new e(this.left,new e(this.right,t)):new e(this,t)},e}(En),yT=En;var lle=500,vd=class i{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let t=this.items.length;for(;;t--)if(this.items.get(t-1).selection){--t;break}let r,o;n&&(r=this.remapping(t,this.items.length),o=r.maps.length);let a=e.tr,s,l,c=[],d=[];return this.items.forEach((p,h)=>{if(!p.step){r||(r=this.remapping(t,h+1),o=r.maps.length),o--,d.push(p);return}if(r){d.push(new Aa(p.map));let g=p.step.map(r.slice(o)),_;g&&a.maybeStep(g).doc&&(_=a.mapping.maps[a.mapping.maps.length-1],c.push(new Aa(_,void 0,void 0,c.length+d.length))),o--,_&&r.appendMap(_,o)}else a.maybeStep(p.step);if(p.selection)return s=r?p.selection.map(r.slice(o)):p.selection,l=new i(this.items.slice(0,t).append(d.reverse().concat(c)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:a,selection:s}}addTransform(e,n,t,r){let o=[],a=this.eventCount,s=this.items,l=!r&&s.length?s.get(s.length-1):null;for(let d=0;ddle&&(s=cle(s,c),a-=c),new i(s.append(o),a)}remapping(e,n){let t=new yf;return this.items.forEach((r,o)=>{let a=r.mirrorOffset!=null&&o-r.mirrorOffset>=e?t.maps.length-r.mirrorOffset:void 0;t.appendMap(r.map,a)},e,n),t}addMaps(e){return this.eventCount==0?this:new i(this.items.append(e.map(n=>new Aa(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let t=[],r=Math.max(0,this.items.length-n),o=e.mapping,a=e.steps.length,s=this.eventCount;this.items.forEach(h=>{h.selection&&s--},r);let l=n;this.items.forEach(h=>{let g=o.getMirror(--l);if(g==null)return;a=Math.min(a,g);let _=o.maps[g];if(h.step){let S=e.steps[g].invert(e.docs[g]),E=h.selection&&h.selection.map(o.slice(l+1,g));E&&s++,t.push(new Aa(_,S,E))}else t.push(new Aa(_))},r);let c=[];for(let h=n;hlle&&(p=p.compress(this.items.length-t.length)),p}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),t=n.maps.length,r=[],o=0;return this.items.forEach((a,s)=>{if(s>=e)r.push(a),a.selection&&o++;else if(a.step){let l=a.step.map(n.slice(t)),c=l&&l.getMap();if(t--,c&&n.appendMap(c,t),l){let d=a.selection&&a.selection.map(n.slice(t));d&&o++;let p=new Aa(c.invert(),l,d),h,g=r.length-1;(h=r.length&&r[g].merge(p))?r[g]=h:r.push(p)}}else a.map&&t--},this.items.length,0),new i(yT.from(r.reverse()),o)}};vd.empty=new vd(yT.empty,0);function cle(i,e){let n;return i.forEach((t,r)=>{if(t.selection&&e--==0)return n=r,!1}),i.slice(n)}var Aa=class i{constructor(e,n,t,r){this.map=e,this.step=n,this.selection=t,this.mirrorOffset=r}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new i(n.getMap().invert(),n,this.selection)}}},Ra=class{constructor(e,n,t,r,o){this.done=e,this.undone=n,this.prevRanges=t,this.prevTime=r,this.prevComposition=o}},dle=20;function ule(i,e,n,t){let r=n.getMeta(bd),o;if(r)return r.historyState;n.getMeta(hle)&&(i=new Ra(i.done,i.undone,null,0,-1));let a=n.getMeta("appendedTransaction");if(n.steps.length==0)return i;if(a&&a.getMeta(bd))return a.getMeta(bd).redo?new Ra(i.done.addTransform(n,void 0,t,gy(e)),i.undone,h8(n.mapping.maps),i.prevTime,i.prevComposition):new Ra(i.done,i.undone.addTransform(n,void 0,t,gy(e)),null,i.prevTime,i.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(a&&a.getMeta("addToHistory")===!1)){let s=n.getMeta("composition"),l=i.prevTime==0||!a&&i.prevComposition!=s&&(i.prevTime<(n.time||0)-t.newGroupDelay||!ple(n,i.prevRanges)),c=a?CT(i.prevRanges,n.mapping):h8(n.mapping.maps);return new Ra(i.done.addTransform(n,l?e.selection.getBookmark():void 0,t,gy(e)),vd.empty,c,n.time,s??i.prevComposition)}else return(o=n.getMeta("rebased"))?new Ra(i.done.rebased(n,o),i.undone.rebased(n,o),CT(i.prevRanges,n.mapping),i.prevTime,i.prevComposition):new Ra(i.done.addMaps(n.mapping.maps),i.undone.addMaps(n.mapping.maps),CT(i.prevRanges,n.mapping),i.prevTime,i.prevComposition)}function ple(i,e){if(!e)return!1;if(!i.docChanged)return!0;let n=!1;return i.mapping.maps[0].forEach((t,r)=>{for(let o=0;o=e[o]&&(n=!0)}),n}function h8(i){let e=[];for(let n=i.length-1;n>=0&&e.length==0;n--)i[n].forEach((t,r,o,a)=>e.push(o,a));return e}function CT(i,e){if(!i)return null;let n=[];for(let t=0;t{let r=bd.getState(n);if(!r||(i?r.undone:r.done).eventCount==0)return!1;if(t){let o=mle(r,n,i);o&&t(e?o.scrollIntoView():o)}return!0}}var Yp=_y(!1,!0),yd=_y(!0,!0),Bet=_y(!1,!1),zet=_y(!0,!1);var Gf="http://www.w3.org/2000/svg",fle="http://www.w3.org/1999/xlink",ST="ProseMirror-icon";function gle(i){let e=0;for(let n=0;n{o.preventDefault(),t.classList.contains(wT+"-disabled")||n.run(e.state,e.dispatch,e,o)});function r(o){if(n.select){let s=n.select(o);if(t.style.display=s?"":"none",!s)return!1}let a=!0;if(n.enable&&(a=n.enable(o)||!1,b8(t,wT+"-disabled",!a)),n.active){let s=a&&n.active(o)||!1;b8(t,wT+"-active",s)}return!0}return{dom:t,update:r}}};function _8(i,e){return i._props.translate?i._props.translate(e):e}var qf={join:{width:800,height:900,path:"M0 75h800v125h-800z M0 825h800v-125h-800z M250 400h100v-100h100v100h100v100h-100v100h-100v-100h-100z"},lift:{width:1024,height:1024,path:"M219 310v329q0 7-5 12t-12 5q-8 0-13-5l-164-164q-5-5-5-13t5-13l164-164q5-5 13-5 7 0 12 5t5 12zM1024 749v109q0 7-5 12t-12 5h-987q-7 0-12-5t-5-12v-109q0-7 5-12t12-5h987q7 0 12 5t5 12zM1024 530v109q0 7-5 12t-12 5h-621q-7 0-12-5t-5-12v-109q0-7 5-12t12-5h621q7 0 12 5t5 12zM1024 310v109q0 7-5 12t-12 5h-621q-7 0-12-5t-5-12v-109q0-7 5-12t12-5h621q7 0 12 5t5 12zM1024 91v109q0 7-5 12t-12 5h-987q-7 0-12-5t-5-12v-109q0-7 5-12t12-5h987q7 0 12 5t5 12z"},selectParentNode:{text:"\u2B1A",css:"font-weight: bold"},undo:{width:1024,height:1024,path:"M761 1024c113-206 132-520-313-509v253l-384-384 384-384v248c534-13 594 472 313 775z"},redo:{width:1024,height:1024,path:"M576 248v-248l384 384-384 384v-253c-446-10-427 303-313 509-280-303-221-789 313-775z"},strong:{width:805,height:1024,path:"M317 869q42 18 80 18 214 0 214-191 0-65-23-102-15-25-35-42t-38-26-46-14-48-6-54-1q-41 0-57 5 0 30-0 90t-0 90q0 4-0 38t-0 55 2 47 6 38zM309 442q24 4 62 4 46 0 81-7t62-25 42-51 14-81q0-40-16-70t-45-46-61-24-70-8q-28 0-74 7 0 28 2 86t2 86q0 15-0 45t-0 45q0 26 0 39zM0 950l1-53q8-2 48-9t60-15q4-6 7-15t4-19 3-18 1-21 0-19v-37q0-561-12-585-2-4-12-8t-25-6-28-4-27-2-17-1l-2-47q56-1 194-6t213-5q13 0 39 0t38 0q40 0 78 7t73 24 61 40 42 59 16 78q0 29-9 54t-22 41-36 32-41 25-48 22q88 20 146 76t58 141q0 57-20 102t-53 74-78 48-93 27-100 8q-25 0-75-1t-75-1q-60 0-175 6t-132 6z"},em:{width:585,height:1024,path:"M0 949l9-48q3-1 46-12t63-21q16-20 23-57 0-4 35-165t65-310 29-169v-14q-13-7-31-10t-39-4-33-3l10-58q18 1 68 3t85 4 68 1q27 0 56-1t69-4 56-3q-2 22-10 50-17 5-58 16t-62 19q-4 10-8 24t-5 22-4 26-3 24q-15 84-50 239t-44 203q-1 5-7 33t-11 51-9 47-3 32l0 10q9 2 105 17-1 25-9 56-6 0-18 0t-18 0q-16 0-49-5t-49-5q-78-1-117-1-29 0-81 5t-69 6z"},code:{width:896,height:1024,path:"M608 192l-96 96 224 224-224 224 96 96 288-320-288-320zM288 192l-288 320 288 320 96-96-224-224 224-224-96-96z"},link:{width:951,height:1024,path:"M832 694q0-22-16-38l-118-118q-16-16-38-16-24 0-41 18 1 1 10 10t12 12 8 10 7 14 2 15q0 22-16 38t-38 16q-8 0-15-2t-14-7-10-8-12-12-10-10q-18 17-18 41 0 22 16 38l117 118q15 15 38 15 22 0 38-14l84-83q16-16 16-38zM430 292q0-22-16-38l-117-118q-16-16-38-16-22 0-38 15l-84 83q-16 16-16 38 0 22 16 38l118 118q15 15 38 15 24 0 41-17-1-1-10-10t-12-12-8-10-7-14-2-15q0-22 16-38t38-16q8 0 15 2t14 7 10 8 12 12 10 10q18-17 18-41zM941 694q0 68-48 116l-84 83q-47 47-116 47-69 0-116-48l-117-118q-47-47-47-116 0-70 50-119l-50-50q-49 50-118 50-68 0-116-48l-118-118q-48-48-48-116t48-116l84-83q47-47 116-47 69 0 116 48l117 118q47 47 47 116 0 70-50 119l50 50q49-50 118-50 68 0 116 48l118 118q48 48 48 116z"},bulletList:{width:768,height:896,path:"M0 512h128v-128h-128v128zM0 256h128v-128h-128v128zM0 768h128v-128h-128v128zM256 512h512v-128h-512v128zM256 256h512v-128h-512v128zM256 768h512v-128h-512v128z"},orderedList:{width:768,height:896,path:"M320 512h448v-128h-448v128zM320 768h448v-128h-448v128zM320 128v128h448v-128h-448zM79 384h78v-256h-36l-85 23v50l43-2v185zM189 590c0-36-12-78-96-78-33 0-64 6-83 16l1 66c21-10 42-15 67-15s32 11 32 28c0 26-30 58-110 112v50h192v-67l-91 2c49-30 87-66 87-113l1-1z"},blockquote:{width:640,height:896,path:"M0 448v256h256v-256h-128c0 0 0-128 128-128v-128c0 0-256 0-256 256zM640 320v-128c0 0-256 0-256 256v256h256v-256h-128c0 0 0-128 128-128z"}},v8=new xs({title:"Join with above block",run:Bf,select:i=>Bf(i),icon:qf.join}),y8=new xs({title:"Lift out of enclosing block",run:zf,select:i=>zf(i),icon:qf.lift}),C8=new xs({title:"Select parent node",run:Hf,select:i=>Hf(i),icon:qf.selectParentNode}),x8=new xs({title:"Undo last change",run:Yp,enable:i=>Yp(i),icon:qf.undo}),w8=new xs({title:"Redo last undone change",run:yd,enable:i=>yd(i),icon:qf.redo});function S8(i,e){let n={run(t,r){return Uf(i,e.attrs)(t,r)},select(t){return Uf(i,e.attrs)(t)}};for(let t in e)n[t]=e[t];return new xs(n)}function ws(i,e){let n=Kp(i,e.attrs),t={run:n,enable(r){return n(r)},active(r){let{$from:o,to:a,node:s}=r.selection;return s?s.hasMarkup(i,e.attrs):a<=o.end()&&o.parent.hasMarkup(i,e.attrs)}};for(let r in e)t[r]=e[r];return new xs(t)}function b8(i,e,n){n?i.classList.add(e):i.classList.remove(e)}var Oi=class{constructor(e){this.spec=e}active=!1;disabled=!1;show=!0;update(e,n){this.spec.active&&(this.active=this.spec.active(n)),this.spec.enable&&(this.disabled=!this.spec.enable(n)),this.spec.select&&(this.show=this.spec.select(n))}};function vle(i,e,n){let{selection:t,doc:r}=i;if(!t||!r)return i;let{from:o,to:a}=t,{nodes:s}=e,l=[];n=n||null;let c=new Set([s.paragraph]);return r.nodesBetween(o,a,(d,p)=>{let h=d.type;return(d.attrs.align||null)!==n&&c.has(h)&&l.push({node:d,pos:p,nodeType:h}),!0}),l.length&&l.forEach(d=>{let{node:p,pos:h,nodeType:g}=d,_=ce(N({},p.attrs),{align:n||null});i=i.setNodeMarkup(h,g,_,p.marks)}),i}var Cd=class extends Oi{constructor(e){super({active:n=>{let{selection:t,doc:r}=n,{from:o,to:a}=t,s=!0,l=!1;return r.nodesBetween(o,a,c=>(s&&c.attrs.align===e&&(s=!1,l=!0),s)),l},enable:n=>{let{selection:t}=n;return t instanceof ct||t instanceof cr},run:(n,t)=>{let{schema:r,selection:o}=n,a=vle(n.tr.setSelection(o),r,this.active?null:e);return a.docChanged?(t?.(a),!0):!1}})}};var E8=i=>({backgroundColor:i});function yle(i,e){if(i&1){let n=z();u(0,"div",16),w("click",function(){let r=A(n).$implicit,o=C(2);return R(o.selectColor(r))}),m()}if(i&2){let n=e.$implicit;bC(Ur(2,E8,n))}}function Cle(i,e){if(i&1&&(u(0,"div"),He(1,yle,1,4,"div",15,Tt),m()),i&2){let n=e.$implicit;f(),Ue(n)}}function xle(i,e){i&1&&(u(0,"mat-error"),fe(1,5),m())}var Xp=class i{dialogRef=x(or);colors=[["#000000","#111111","#1c1c1c","#333333","#666666","#808080","#999999","#b2b2b2","#cccccc","#dddddd","#eeeeee","#ffffff"],["#ffff00","#ffbf00","#ff8000","#ff4000","#ff0000","#bf0041","#800080","#55308d","#2a6099","#158466","#00a933","#81d41a"],["#ffffd7","#fff5ce","#ffdbb6","#ffd8ce","#ffd7d7","#f7d1d5","#e0c2cd","#dedce6","#dee6ef","#dee7e5","#dde8cb","#f6f9d4"],["#ffffa6","#ffe994","#ffb66c","#ffaa95","#ffa6a6","#ec9ba4","#bf819e","#b7b3ca","#b4c7dc","#b3cac7","#afd095","#e8f2a1"],["#ffff6d","#ffde59","#ff972f","#ff7b59","#ff6d6d","#e16173","#a1467e","#8e86ae","#729fcf","#81aca6","#77bc65","#d4ea6b"],["#ffff38","#ffd428","#ff860d","#ff5429","#ff3838","#d62e4e","#8d1d75","#6b5e9b","#5983b0","#50938a","#3faf46","#bbe33d"],["#e6e905","#e8a202","#ea7500","#ed4c05","#f10d0c","#a7074b","#780373","#5b277d","#3465a4","#168253","#069a2e","#5eb91e"],["#acb20c","#b47804","#b85c00","#be480a","#c9211e","#861141","#650953","#55215b","#355269","#1e6a39","#127622","#468a1a"],["#706e0c","#784b04","#7b3d00","#813709","#8d281e","#611729","#4e102d","#481d32","#383d3c","#28471f","#224b12","#395511"],["#443205","#472702","#492300","#4b2204","#50200c","#41190d","#3b160e","#3a1a0f","#362413","#302709","#2e2706","#342a06"]];colorControl=new Xe("",{validators:tt.pattern(new RegExp("^#\\p{Hex_Digit}{6}","u")),nonNullable:!0});form=new Pt({color:this.colorControl});constructor(){let e=x(ar);this.form.setValue(e)}maybeConfirm(){va(this.form).subscribe(()=>this.confirm())}confirm(){this.dialogRef.close(this.form.getRawValue())}selectColor(e){this.colorControl.setValue(e),this.maybeConfirm()}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["ng-component"]],standalone:!0,features:[P],decls:23,vars:8,consts:()=>{let e;e=$localize`:␟03820e4ea2df1ce55bb67c61bcc5545e42f73487␟295912300910134862:Sélectionner une couleur`;let n;n=$localize`:␟4a9cf92f6e8136deb955a031242ae939c4ccf346␟7075059674276878139:Transparent`;let t;t=$localize`:␟4a605db7fe490b92ce2d286ccf5327e2354362d4␟3623818903326968730:Couleur`;let r;r=$localize`:␟12380235948088ddf227ad226ce8a2ae63878fe5␟1711750570766225138:Annuler`;let o;o=$localize`:␟5d689cec6690d9dd229ac67c852d365d67e3b4e3␟4003387801369922138:Valider`;let a;return a=$localize`:␟b9428ba2cd7e6d9ce2592b9c8c055c4c53365869␟3990185639842962885:Doit être le format hexadecimal. Par exemple: #ff4000 `,[e,n,t,r,o,a,["mat-dialog-title",""],[3,"formGroup"],["mat-button","",3,"click"],["naturalIcon","format_color_reset"],["matInput","","cdkFocusInitial","",3,"keydown.enter","formControl"],["matTextSuffix","",1,"sample"],["align","end"],["mat-button","","mat-dialog-close",""],["mat-stroked-button","",3,"click","disabled"],[1,"color",3,"style"],[1,"color",3,"click"]]},template:function(n,t){n&1&&(u(0,"h2",6),fe(1,0),m(),u(2,"mat-dialog-content",7)(3,"div"),He(4,Cle,3,0,"div",null,Tt),m(),u(6,"div")(7,"button",8),w("click",function(){return t.selectColor("")}),T(8,"mat-icon",9),u(9,"span"),fe(10,1),m()()(),u(11,"mat-form-field")(12,"mat-label"),fe(13,2),m(),u(14,"input",10),w("keydown.enter",function(){return t.maybeConfirm()}),m(),T(15,"div",11),M(16,xle,2,0,"mat-error"),m()(),u(17,"mat-dialog-actions",12)(18,"button",13),fe(19,3),m(),u(20,"button",14),w("click",function(){return t.maybeConfirm()}),u(21,"span"),fe(22,4),m()()()),n&2&&(f(2),v("formGroup",t.form),f(2),Ue(t.colors),f(10),v("formControl",t.colorControl),f(),bC(Ur(6,E8,t.colorControl.valid?t.colorControl.value:"")),f(),k(t.colorControl.hasError("pattern")?16:-1),f(4),v("disabled",!t.form.valid))},dependencies:[Nn,Dr,kr,Mr,Ir,$e,qt,We,Rt,it,st,bt,we,Ze,It,wt,Mt,at,mt,_t,di,xr,zt,Bt],styles:["mat-dialog-content[_ngcontent-%COMP%]{display:grid;row-gap:25px;justify-content:center;width:70vw;max-width:30em}.color[_ngcontent-%COMP%]{display:inline-block;cursor:pointer;margin:3px;width:25px;height:25px}.color[_ngcontent-%COMP%]:hover{margin:0;padding:3px}.sample[_ngcontent-%COMP%]{width:27px;height:27px}"]})};var T8=jV.bind(null,"background");function wle(i){if(!io(i))return"";let n=qp(i)?.nodeAfter?.attrs.background??"";if(n)return n;let t=!0;return i.selection instanceof oi&&i.selection.forEachCell(r=>{let o=r.attrs.background;t&&o&&(t=!1,n=o)}),n}var by=class extends Oi{constructor(e){super({enable(n){return T8("#000001")(n)},run(n,t,r){e.open(Xp,{data:{color:wle(n)}}).afterClosed().subscribe(o=>{t&&o&&T8(o.color)(n,t),r.focus()})}})}};function Sle(i,e){i&1&&(u(0,"mat-error"),fe(1,5),m())}var vy=class i{dialogRef=x(or);hrefControl=new Xe("",{validators:tt.required,nonNullable:!0});titleControl=new Xe("",{nonNullable:!0});form=new Pt({href:this.hrefControl,title:this.titleControl});constructor(){let e=x(ar);this.form.setValue(N({title:""},e))}maybeConfirm(){va(this.form).subscribe(()=>this.confirm())}confirm(){this.dialogRef.close(this.form.getRawValue())}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["ng-component"]],standalone:!0,features:[P],decls:18,vars:5,consts:()=>{let e;e=$localize`:␟39e6ab4addb6241cc85ada225193c1c3383878aa␟119963413501148110:Insérer un lien`;let n;n=$localize`:␟801b98c6f02fe3b32f6afa3ee854c99ed83474e6␟2375260419993138758:URL`;let t;t=$localize`:␟622c8cdb03ed166e3e1b652021cf0992cb26bc18␟6518032478600962138:Titre`;let r;r=$localize`:␟12380235948088ddf227ad226ce8a2ae63878fe5␟1711750570766225138:Annuler`;let o;o=$localize`:␟5d689cec6690d9dd229ac67c852d365d67e3b4e3␟4003387801369922138:Valider`;let a;return a=$localize`:␟c0635fdb2285e10406f861a2135c2d72eab0e8c4␟8857159515510586089:Ce champ est requis`,[e,n,t,r,o,a,["mat-dialog-title",""],[3,"formGroup"],["matInput","",3,"keydown.enter","formControl"],["align","end"],["mat-button","","mat-dialog-close",""],["mat-stroked-button","",3,"click","disabled"]]},template:function(n,t){n&1&&(u(0,"h2",6),fe(1,0),m(),u(2,"mat-dialog-content",7)(3,"mat-form-field")(4,"mat-label"),fe(5,1),m(),u(6,"input",8),w("keydown.enter",function(){return t.maybeConfirm()}),m(),M(7,Sle,2,0,"mat-error"),m(),u(8,"mat-form-field")(9,"mat-label"),fe(10,2),m(),u(11,"input",8),w("keydown.enter",function(){return t.maybeConfirm()}),m()()(),u(12,"mat-dialog-actions",9)(13,"button",10),fe(14,3),m(),u(15,"button",11),w("click",function(){return t.maybeConfirm()}),u(16,"span"),fe(17,4),m()()()),n&2&&(f(2),v("formGroup",t.form),f(4),v("formControl",t.hrefControl),f(),k(t.hrefControl.hasError("required")?7:-1),f(4),v("formControl",t.titleControl),f(4),v("disabled",!t.form.valid))},dependencies:[Nn,Dr,kr,Mr,Ir,$e,qt,We,Rt,it,st,bt,at,mt,_t,di,zt,Bt,we,Ze],styles:["mat-dialog-content[_ngcontent-%COMP%]{display:grid;width:70vw;max-width:60em}"]})};function xd(i,e){let{from:n,$from:t,to:r,empty:o}=i.selection;return o?!!e.isInSet(i.storedMarks||t.marks()):i.doc.rangeHasMark(n,r,e)}function mr(i){return new Oi(i.spec)}function Qn(i,e={}){let n=N({run:i},e);return!e.enable&&!e.select&&(n.enable=t=>i(t)),new Oi(n)}function yy(i){return Qn(Vr(i),{active(e){return xd(e,i)}})}function Cy(i,e){let{selection:n,doc:t}=i,{from:r,to:o}=n,a=!0,s=!1;return t.nodesBetween(r,o,l=>(a&&e.includes(l.type.name)&&(a=!1,s=!0),a)),s}var xy=class extends Oi{constructor(e,n){super({active(t){return xd(t,e)},enable(t){return!t.selection.empty},run(t,r,o){if(xd(t,e)){Vr(e)(t,r);return}n.open(vy,{data:{href:"",title:""}}).afterClosed().subscribe(a=>{a&&(a.title||delete a.title,Vr(e,a)(o.state,o.dispatch)),o.focus()})}})}};function Ele(i,e){let n=i.selection.$from;for(let t=n.depth;t>=0;t--){let r=n.index(t);if(n.node(t).canReplaceWith(r,r,e))return!0}return!1}var wy=class extends Oi{constructor(e){super({enable(n){return Ele(n,e)},run(n,t){t(n.tr.replaceSelectionWith(e.create()))}})}};function ET(i){return Qn(Vf(i))}function Tle(i,e){i&1&&(u(0,"mat-error"),fe(1,4),m())}var Sy=class i{dialogRef=x(or);classControl=new Xe("",{validators:tt.pattern(/(^\s*(-?[_a-zA-Z]+[_a-zA-Z0-9-]*\s*)+)/),nonNullable:!0});form=new Pt({class:this.classControl});constructor(){let e=x(ar);this.form.setValue(e)}maybeConfirm(){va(this.form).subscribe(()=>this.confirm())}confirm(){this.dialogRef.close(this.form.getRawValue())}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["ng-component"]],standalone:!0,features:[P],decls:14,vars:4,consts:()=>{let e;e=$localize`:␟7fc4585194c171f794c907258033e76963286da5␟5915007300033018520:Saisir les classes CSS`;let n;n=$localize`:␟fbe16e0d43f01135dfa18e9d73ab87bef9dae169␟770147264955285350:Classes CSS`;let t;t=$localize`:␟12380235948088ddf227ad226ce8a2ae63878fe5␟1711750570766225138:Annuler`;let r;r=$localize`:␟5d689cec6690d9dd229ac67c852d365d67e3b4e3␟4003387801369922138:Valider`;let o;return o=$localize`:␟77ff24a189b5c61c62c6fdfbda255f7ec521642f␟8967184240542661309:Doit être un ou plusieurs nom de classe CSS`,[e,n,t,r,o,["mat-dialog-title",""],[3,"formGroup"],["matInput","","cdkFocusInitial","",3,"keydown.enter","formControl"],["align","end"],["mat-button","","mat-dialog-close",""],["mat-stroked-button","",3,"click","disabled"]]},template:function(n,t){n&1&&(u(0,"h2",5),fe(1,0),m(),u(2,"mat-dialog-content",6)(3,"mat-form-field")(4,"mat-label"),fe(5,1),m(),u(6,"input",7),w("keydown.enter",function(){return t.maybeConfirm()}),m(),M(7,Tle,2,0,"mat-error"),m()(),u(8,"mat-dialog-actions",8)(9,"button",9),fe(10,2),m(),u(11,"button",10),w("click",function(){return t.maybeConfirm()}),u(12,"span"),fe(13,3),m()()()),n&2&&(f(2),v("formGroup",t.form),f(4),v("formControl",t.classControl),f(),k(t.classControl.hasError("pattern")?7:-1),f(4),v("disabled",!t.form.valid))},dependencies:[Nn,Dr,kr,Mr,Ir,$e,qt,We,Rt,it,st,bt,at,mt,_t,di,zt,Bt,we,Ze],styles:["mat-dialog-content[_ngcontent-%COMP%]{display:grid;width:70vw;max-width:30em}"]})};function Dle(i,e,n){let{selection:t,doc:r}=i;if(!t||!r)return i;let{from:o,to:a}=t,s=[];return r.nodesBetween(o,a,(l,c)=>{let d=l.type;return(l.attrs.class||null)!==e&&n.includes(d.name)&&s.push({node:l,pos:c,nodeType:d}),!0}),s.length&&s.forEach(l=>{let{node:c,pos:d,nodeType:p}=l,h=ce(N({},c.attrs),{class:e||null});i=i.setNodeMarkup(d,p,h,c.marks)}),i}function D8(i,e){let{selection:n,doc:t}=i,{from:r,to:o}=n,a=!0,s="";return t.nodesBetween(r,o,l=>(a&&e.includes(l.type.name)&&l.attrs.class&&(a=!1,s=l.attrs.class),a)),s}var Wf=class extends Oi{constructor(e,n){super({active:t=>!!D8(t,n),enable:t=>Cy(t,n),run:(t,r,o)=>{e.open(Sy,{data:{class:D8(t,n)}}).afterClosed().subscribe(a=>{if(r&&a){let{selection:s}=t,l=Dle(t.tr.setSelection(s),a.class,n);l.docChanged&&r?.(l)}o.focus()})}})}};function kle(i,e){i&1&&(u(0,"mat-error"),fe(1,4),m())}var Ey=class i{dialogRef=x(or);idControl=new Xe("",{validators:tt.pattern(/(^(-?[_a-zA-Z]+[_a-zA-Z0-9-]*)+)/),nonNullable:!0});form=new Pt({id:this.idControl});constructor(){let e=x(ar);this.form.setValue(e)}maybeConfirm(){va(this.form).subscribe(()=>this.confirm())}confirm(){this.dialogRef.close(this.form.getRawValue())}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["ng-component"]],standalone:!0,features:[P],decls:14,vars:4,consts:()=>{let e;e=$localize`:␟467e083199695102d67fb6102133ed08e6d5779e␟3460345462620774021:Saisir le ID`;let n;n=$localize`:␟45cc8ca94b5a50842a9a8ef804a5ab089a38ae5c␟8040881171107393560:ID`;let t;t=$localize`:␟12380235948088ddf227ad226ce8a2ae63878fe5␟1711750570766225138:Annuler`;let r;r=$localize`:␟5d689cec6690d9dd229ac67c852d365d67e3b4e3␟4003387801369922138:Valider`;let o;return o=$localize`:␟36128a9b88800b04c7eb752cc5d9c7f118336f88␟2746908585963893086:Doit être un ID valide`,[e,n,t,r,o,["mat-dialog-title",""],[3,"formGroup"],["matInput","","cdkFocusInitial","",3,"keydown.enter","formControl"],["align","end"],["mat-button","","mat-dialog-close",""],["mat-stroked-button","",3,"click","disabled"]]},template:function(n,t){n&1&&(u(0,"h2",5),fe(1,0),m(),u(2,"mat-dialog-content",6)(3,"mat-form-field")(4,"mat-label"),fe(5,1),m(),u(6,"input",7),w("keydown.enter",function(){return t.maybeConfirm()}),m(),M(7,kle,2,0,"mat-error"),m()(),u(8,"mat-dialog-actions",8)(9,"button",9),fe(10,2),m(),u(11,"button",10),w("click",function(){return t.maybeConfirm()}),u(12,"span"),fe(13,3),m()()()),n&2&&(f(2),v("formGroup",t.form),f(4),v("formControl",t.idControl),f(),k(t.idControl.hasError("pattern")?7:-1),f(4),v("disabled",!t.form.valid))},dependencies:[Nn,Dr,kr,Mr,Ir,$e,qt,We,Rt,it,st,bt,at,mt,_t,di,zt,Bt,we,Ze],styles:["mat-dialog-content[_ngcontent-%COMP%]{display:grid;width:70vw;max-width:30em}"]})};function Ile(i,e,n){let{selection:t,doc:r}=i;if(!t||!r)return i;let{from:o,to:a}=t,s=[];return r.nodesBetween(o,a,(l,c)=>{let d=l.type;return(l.attrs.id||null)!==e&&n.includes(d.name)&&s.push({node:l,pos:c,nodeType:d}),!0}),s.length&&s.forEach(l=>{let{node:c,pos:d,nodeType:p}=l,h=ce(N({},c.attrs),{id:e||null});i=i.setNodeMarkup(d,p,h,c.marks)}),i}function k8(i,e){let{selection:n,doc:t}=i,{from:r,to:o}=n,a=!0,s="";return t.nodesBetween(r,o,l=>(a&&e.includes(l.type.name)&&l.attrs.id&&(a=!1,s=l.attrs.id),a)),s}var Qf=class extends Oi{constructor(e,n){super({active:t=>!!k8(t,n),enable:t=>Cy(t,n),run:(t,r,o)=>{e.open(Ey,{data:{id:k8(t,n)}}).afterClosed().subscribe(a=>{if(r&&a){let{selection:s}=t,l=Ile(t.tr.setSelection(s),a.id,n);l.docChanged&&r?.(l)}o.focus()})}})}};function I8(i,e){return e?i.createChecked(null,e):i.createAndFill()}function Mle(i,e,n,t,r){let o=Sn(i.schema),a=[],s=[];for(let c=0;cOle(e,n)})}};function Ale(i,e){let{selection:n,doc:t}=i,{from:r,to:o}=n,a="";return t.nodesBetween(r,o,s=>{if(a)return!1;let l=s.marks.find(c=>c.type===e);return l?.attrs.color&&(a=l.attrs.color),!a}),QR(a)}var Dy=class extends Oi{constructor(e,n){super({active(t){return xd(t,e)},enable(t){return!t.selection.empty},run(t,r,o){n.open(Xp,{data:{color:Ale(t,e)}}).afterClosed().subscribe(a=>{a&&(xd(t,e)&&Vr(e,{},{})(o.state,o.dispatch),a.color&&Vr(e,a,{})(o.state,o.dispatch)),o.focus()})}})}};function M8(i,e){let n={joinUp:mr(v8),lift:mr(y8),selectParentNode:mr(C8),undo:mr(x8),redo:mr(w8)},t;return t=i.marks.strong,t&&(n.toggleStrong=yy(t)),t=i.marks.em,t&&(n.toggleEm=yy(t)),t=i.marks.code,t&&(n.toggleCode=yy(t)),t=i.marks.link,t&&(n.toggleLink=new xy(t,e)),t=i.marks.textColor,t&&(n.textColor=new Dy(t,e)),t=i.nodes.bullet_list,t&&(n.wrapBulletList=ET(t)),t=i.nodes.ordered_list,t&&(n.wrapOrderedList=ET(t)),t=i.nodes.blockquote,t&&(n.wrapBlockQuote=mr(S8(t,{}))),t=i.nodes.paragraph,t&&(n.makeParagraph=mr(ws(t,{})),t.spec===jf&&(n.alignLeft=new Cd("left"),n.alignRight=new Cd("right"),n.alignCenter=new Cd("center"),n.alignJustify=new Cd("justify"))),t=i.nodes.code_block,t&&(n.makeCodeBlock=mr(ws(t,{}))),t=i.nodes.heading,t&&(n.makeHead1=mr(ws(t,{attrs:{level:1}})),n.makeHead2=mr(ws(t,{attrs:{level:2}})),n.makeHead3=mr(ws(t,{attrs:{level:3}})),n.makeHead4=mr(ws(t,{attrs:{level:4}})),n.makeHead5=mr(ws(t,{attrs:{level:5}})),n.makeHead6=mr(ws(t,{attrs:{level:6}}))),i.nodes.paragraph?.spec===jf&&(n.blockId=new Qf(e,["heading","paragraph"]),n.blockClass=new Wf(e,["heading","paragraph"])),t=i.nodes.horizontal_rule,t&&(n.insertHorizontalRule=new wy(t)),t=i.nodes.table,t&&(n.insertTable=new Ty,n.addColumnBefore=Qn(MV),n.addColumnAfter=Qn(OV),n.deleteColumn=Qn(AV),n.addRowBefore=Qn(NV),n.addRowAfter=Qn(FV),n.deleteRow=Qn(PV),n.deleteTable=Qn(UV),n.mergeCells=Qn(LV),n.splitCell=Qn(VV),n.toggleHeaderColumn=Qn(zV),n.toggleHeaderRow=Qn(BV),n.toggleHeaderCell=Qn(HV),n.cellBackgroundColor=new by(e),n.tableClass=new Wf(e,["table"]),n.tableId=new Qf(e,["table"])),n}function O8(i={}){return new Wi({view(e){return new TT(e,i)}})}var TT=class{constructor(e,n){var t;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(t=n.width)!==null&&t!==void 0?t:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(r=>{let o=a=>{this[r](a)};return e.dom.addEventListener(r,o),{name:r,handler:o}})}destroy(){this.handlers.forEach(({name:e,handler:n})=>this.editorView.dom.removeEventListener(e,n))}update(e,n){this.cursorPos!=null&&n.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent,t;if(n){let s=e.nodeBefore,l=e.nodeAfter;if(s||l){let c=this.editorView.nodeDOM(this.cursorPos-(s?s.nodeSize:0));if(c){let d=c.getBoundingClientRect(),p=s?d.bottom:d.top;s&&l&&(p=(p+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),t={left:d.left,right:d.right,top:p-this.width/2,bottom:p+this.width/2}}}}if(!t){let s=this.editorView.coordsAtPos(this.cursorPos);t={left:s.left-this.width/2,right:s.left+this.width/2,top:s.top,bottom:s.bottom}}let r=this.editorView.dom.offsetParent;this.element||(this.element=r.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let o,a;if(!r||r==document.body&&getComputedStyle(r).position=="static")o=-pageXOffset,a=-pageYOffset;else{let s=r.getBoundingClientRect();o=s.left-r.scrollLeft,a=s.top-r.scrollTop}this.element.style.left=t.left-o+"px",this.element.style.top=t.top-a+"px",this.element.style.width=t.right-t.left+"px",this.element.style.height=t.bottom-t.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),t=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),r=t&&t.type.spec.disableDropCursor,o=typeof r=="function"?r(this.editorView,n,e):r;if(n&&!o){let a=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let s=$0(this.editorView.state.doc,a,this.editorView.dragging.slice);s!=null&&(a=s)}this.setCursor(a),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){(e.target==this.editorView.dom||!this.editorView.dom.contains(e.relatedTarget))&&this.setCursor(null)}};var Kn=class i extends Qe{constructor(e){super(e,e)}map(e,n){let t=e.resolve(n.map(this.head));return i.valid(t)?new i(t):Qe.near(t)}content(){return Ce.empty}eq(e){return e instanceof i&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new i(e.resolve(n.pos))}getBookmark(){return new DT(this.anchor)}static valid(e){let n=e.parent;if(n.isTextblock||!Rle(e)||!Nle(e))return!1;let t=n.type.spec.allowGapCursor;if(t!=null)return t;let r=n.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(e,n,t=!1){e:for(;;){if(!t&&i.valid(e))return e;let r=e.pos,o=null;for(let a=e.depth;;a--){let s=e.node(a);if(n>0?e.indexAfter(a)0){o=s.child(n>0?e.indexAfter(a):e.index(a)-1);break}else if(a==0)return null;r+=n;let l=e.doc.resolve(r);if(i.valid(l))return l}for(;;){let a=n>0?o.firstChild:o.lastChild;if(!a){if(o.isAtom&&!o.isText&&!Ke.isSelectable(o)){e=e.doc.resolve(r+o.nodeSize*n),t=!1;continue e}break}o=a,r+=n;let s=e.doc.resolve(r);if(i.valid(s))return s}return null}}};Kn.prototype.visible=!1;Kn.findFrom=Kn.findGapCursorFrom;Qe.jsonID("gapcursor",Kn);var DT=class i{constructor(e){this.pos=e}map(e){return new i(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return Kn.valid(n)?new Kn(n):Qe.near(n)}};function Rle(i){for(let e=i.depth;e>=0;e--){let n=i.index(e),t=i.node(e);if(n==0){if(t.type.spec.isolating)return!0;continue}for(let r=t.child(n-1);;r=r.lastChild){if(r.childCount==0&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}}return!0}function Nle(i){for(let e=i.depth;e>=0;e--){let n=i.indexAfter(e),t=i.node(e);if(n==t.childCount){if(t.type.spec.isolating)return!0;continue}for(let r=t.child(n);;r=r.firstChild){if(r.childCount==0&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}}return!0}function A8(){return new Wi({props:{decorations:Vle,createSelectionBetween(i,e,n){return e.pos==n.pos&&Kn.valid(n)?new Kn(n):null},handleClick:Ple,handleKeyDown:Fle,handleDOMEvents:{beforeinput:Lle}}})}var Fle=Nf({ArrowLeft:ky("horiz",-1),ArrowRight:ky("horiz",1),ArrowUp:ky("vert",-1),ArrowDown:ky("vert",1)});function ky(i,e){let n=i=="vert"?e>0?"down":"up":e>0?"right":"left";return function(t,r,o){let a=t.selection,s=e>0?a.$to:a.$from,l=a.empty;if(a instanceof ct){if(!o.endOfTextblock(n)||s.depth==0)return!1;l=!1,s=t.doc.resolve(e>0?s.after():s.before())}let c=Kn.findGapCursorFrom(s,e,l);return c?(r&&r(t.tr.setSelection(new Kn(c))),!0):!1}}function Ple(i,e,n){if(!i||!i.editable)return!1;let t=i.state.doc.resolve(e);if(!Kn.valid(t))return!1;let r=i.posAtCoords({left:n.clientX,top:n.clientY});return r&&r.inside>-1&&Ke.isSelectable(i.state.doc.nodeAt(r.inside))?!1:(i.dispatch(i.state.tr.setSelection(new Kn(t))),!0)}function Lle(i,e){if(e.inputType!="insertCompositionText"||!(i.state.selection instanceof Kn))return!1;let{$from:n}=i.state.selection,t=n.parent.contentMatchAt(n.index()).findWrapping(i.state.schema.nodes.text);if(!t)return!1;let r=le.empty;for(let a=t.length-1;a>=0;a--)r=le.from(t[a].createAndFill(null,r));let o=i.state.tr.replace(n.pos,n.pos,new Ce(r,0,0));return o.setSelection(ct.near(o.doc.resolve(n.pos+1))),i.dispatch(o),!1}function Vle(i){if(!(i.selection instanceof Kn))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",mn.create(i.doc,[Lr.widget(i.selection.head,e,{key:"gapcursor"})])}var Na=class{constructor(e,n,t={}){this.match=e,this.match=e,this.handler=typeof n=="string"?jle(n):n,this.undoable=t.undoable!==!1,this.inCode=t.inCode||!1}};function jle(i){return function(e,n,t,r){let o=i;if(n[1]){let a=n[0].lastIndexOf(n[1]);o+=n[0].slice(a+n[1].length),t+=a;let s=t-r;s>0&&(o=n[0].slice(a-s,a)+o,t=r)}return e.tr.insertText(o,t,r)}}var Ble=500;function N8({rules:i}){let e=new Wi({state:{init(){return null},apply(n,t){let r=n.getMeta(this);return r||(n.selectionSet||n.docChanged?null:t)}},props:{handleTextInput(n,t,r,o){return R8(n,t,r,o,i,e)},handleDOMEvents:{compositionend:n=>{setTimeout(()=>{let{$cursor:t}=n.state.selection;t&&R8(n,t.pos,t.pos,"",i,e)})}}},isInputRules:!0});return e}function R8(i,e,n,t,r,o){if(i.composing)return!1;let a=i.state,s=a.doc.resolve(e),l=s.parent.textBetween(Math.max(0,s.parentOffset-Ble),s.parentOffset,null,"\uFFFC")+t;for(let c=0;c{let n=i.plugins;for(let t=0;t=0;l--)a.step(s.steps[l].invert(s.docs[l]));if(o.text){let l=a.doc.resolve(o.from).marks();a.replaceWith(o.from,o.to,i.schema.text(o.text,l))}else a.delete(o.from,o.to);e(a)}return!0}}return!1},P8=new Na(/--$/,"\u2014"),L8=new Na(/\.\.\.$/,"\u2026"),Jit=new Na(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"\u201C"),Zit=new Na(/"$/,"\u201D"),ent=new Na(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"\u2018"),tnt=new Na(/'$/,"\u2019");function Iy(i,e,n=null,t){return new Na(i,(r,o,a,s)=>{let l=n instanceof Function?n(o):n,c=r.tr.delete(a,s),d=c.doc.resolve(a),p=d.blockRange(),h=p&&Vp(p,e,l);if(!h)return null;c.wrap(p,h);let g=c.doc.resolve(a-1).nodeBefore;return g&&g.type==e&&fs(c.doc,a-1)&&(!t||t(o,g))&&c.join(a-1),c})}function kT(i,e,n=null){return new Na(i,(t,r,o,a)=>{let s=t.doc.resolve(o),l=n instanceof Function?n(r):n;return s.node(-1).canReplaceWith(s.index(-1),s.indexAfter(-1),e)?t.tr.delete(o,a).setBlockType(o,o,e,l):null})}function zle(i){return Iy(/^\s*>\s$/,i)}function Hle(i){return Iy(/^(\d+)\.\s$/,i,e=>({order:+e[1]}),(e,n)=>n.childCount+n.attrs.order===+e[1])}function Ule(i){return Iy(/^\s*([-+*])\s$/,i)}function $le(i){return kT(/^```$/,i)}function Gle(i,e){return kT(new RegExp("^(#{1,"+e+"})\\s$"),i,n=>({level:n[1].length}))}function V8(i){let e=[L8,P8],n=i.nodes.blockquote;return n&&e.push(zle(n)),n=i.nodes.ordered_list,n&&e.push(Hle(n)),n=i.nodes.bullet_list,n&&e.push(Ule(n)),n=i.nodes.code_block,n&&e.push($le(n)),n=i.nodes.heading,n&&e.push(Gle(n,6)),N8({rules:e})}function j8(i,e){let n={};n["Mod-z"]=Yp,n["Shift-Mod-z"]=yd,n.Backspace=F8,e||(n["Mod-y"]=yd),n["Alt-ArrowUp"]=Bf,n["Alt-ArrowDown"]=l8,n["Mod-BracketLeft"]=zf,n.Escape=Hf;let t=i.marks.strong;if(t&&(n["Mod-b"]=Vr(t),n["Mod-B"]=Vr(t)),t=i.marks.em,t&&(n["Mod-i"]=Vr(t),n["Mod-I"]=Vr(t)),t=i.marks.code,t&&(n["Mod-`"]=Vr(t)),t=i.nodes.bullet_list,t&&(n["Shift-Ctrl-8"]=Vf(t)),t=i.nodes.ordered_list,t&&(n["Shift-Ctrl-9"]=Vf(t)),t=i.nodes.blockquote,t&&(n["Ctrl->"]=Uf(t)),t=i.nodes.hard_break,t){let r=t,o=$f(vT,(a,s)=>(s?.(a.tr.replaceSelectionWith(r.create()).scrollIntoView()),!0));n["Mod-Enter"]=o,n["Shift-Enter"]=o,e&&(n["Ctrl-Enter"]=o)}if(t=i.nodes.list_item,t&&(n.Enter=qV(t),n["Mod-["]=WV(t),n["Mod-]"]=QV(t)),t=i.nodes.paragraph,t&&(n["Shift-Ctrl-0"]=Kp(t)),t=i.nodes.code_block,t&&(n["Shift-Ctrl-\\"]=Kp(t)),t=i.nodes.heading,t)for(let r=1;r<=6;r++)n["Shift-Ctrl-"+r]=Kp(t,{level:r});if(t=i.nodes.horizontal_rule,t){let r=t;n["Mod-_"]=(o,a)=>(a?.(o.tr.replaceSelectionWith(r.create()).scrollIntoView()),!0)}return n}var qle=["editor"];function Wle(i,e){if(i&1){let n=z();u(0,"button",54),w("click",function(){A(n);let r=C(2);return R(r.save.emit())}),T(1,"mat-icon",55),m()}}function Qle(i,e){if(i&1){let n=z();u(0,"mat-button-toggle",56),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"toggleStrong"))}),T(1,"mat-icon",57),m()}if(i&2){let n=C(2);v("disabled",n.menu.toggleStrong.disabled)("checked",n.menu.toggleStrong.active)}}function Kle(i,e){if(i&1){let n=z();u(0,"mat-button-toggle",58),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"toggleEm"))}),T(1,"mat-icon",59),m()}if(i&2){let n=C(2);v("disabled",n.menu.toggleEm.disabled)("checked",n.menu.toggleEm.active)}}function Yle(i,e){if(i&1){let n=z();u(0,"mat-button-toggle",60),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"toggleCode"))}),T(1,"mat-icon",61),m()}if(i&2){let n=C(2);v("disabled",n.menu.toggleCode.disabled)("checked",n.menu.toggleCode.active)}}function Xle(i,e){if(i&1){let n=z();u(0,"mat-button-toggle",62),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"toggleLink"))}),T(1,"mat-icon",63),m()}if(i&2){let n=C(2);v("disabled",n.menu.toggleLink.disabled)("checked",n.menu.toggleLink.active)}}function Jle(i,e){if(i&1){let n=z();u(0,"mat-button-toggle",64),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"textColor"))}),T(1,"mat-icon",65),m()}if(i&2){let n=C(2);v("disabled",n.menu.textColor.disabled)("checked",n.menu.textColor.active)}}function Zle(i,e){if(i&1){let n=z();u(0,"button",66),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"makeParagraph"))}),fe(1,4),m()}if(i&2){let n=C(2);v("disabled",n.menu.makeParagraph.disabled)}}function ece(i,e){if(i&1){let n=z();u(0,"button",66),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"makeCodeBlock"))}),fe(1,5),m()}if(i&2){let n=C(2);v("disabled",n.menu.makeCodeBlock.disabled)}}function tce(i,e){if(i&1){let n=z();u(0,"button",66),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"makeHead1"))}),fe(1,6),m()}if(i&2){let n=C(2);v("disabled",n.menu.makeHead1.disabled)}}function ice(i,e){if(i&1){let n=z();u(0,"button",66),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"makeHead2"))}),fe(1,7),m()}if(i&2){let n=C(2);v("disabled",n.menu.makeHead2.disabled)}}function nce(i,e){if(i&1){let n=z();u(0,"button",66),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"makeHead3"))}),fe(1,8),m()}if(i&2){let n=C(2);v("disabled",n.menu.makeHead3.disabled)}}function rce(i,e){if(i&1){let n=z();u(0,"button",66),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"makeHead4"))}),fe(1,9),m()}if(i&2){let n=C(2);v("disabled",n.menu.makeHead4.disabled)}}function oce(i,e){if(i&1){let n=z();u(0,"button",66),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"makeHead5"))}),fe(1,10),m()}if(i&2){let n=C(2);v("disabled",n.menu.makeHead5.disabled)}}function ace(i,e){if(i&1){let n=z();u(0,"button",66),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"makeHead6"))}),fe(1,11),m()}if(i&2){let n=C(2);v("disabled",n.menu.makeHead6.disabled)}}function sce(i,e){i&1&&T(0,"mat-divider")}function lce(i,e){if(i&1){let n=z();u(0,"button",66),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"blockClass"))}),fe(1,12),m()}if(i&2){let n=C(2);v("disabled",n.menu.blockClass.disabled)}}function cce(i,e){if(i&1){let n=z();u(0,"button",66),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"blockId"))}),fe(1,13),m()}if(i&2){let n=C(2);v("disabled",n.menu.blockId.disabled)}}function dce(i,e){if(i&1&&(u(0,"button",41)(1,"span"),fe(2,14),m(),T(3,"mat-icon",42),m()),i&2){C();let n=Je(28);v("matMenuTriggerFor",n)}}function uce(i,e){if(i&1){let n=z();u(0,"button",66),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"insertTable"))}),fe(1,15),m()}if(i&2){let n=C(2);v("disabled",n.menu.insertTable.disabled)}}function pce(i,e){if(i&1){let n=z();u(0,"button",66),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"deleteTable"))}),fe(1,16),m()}if(i&2){let n=C(2);v("disabled",n.menu.deleteTable.disabled)}}function mce(i,e){if(i&1){let n=z();u(0,"button",66),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"mergeCells"))}),fe(1,17),m()}if(i&2){let n=C(2);v("disabled",n.menu.mergeCells.disabled)}}function hce(i,e){if(i&1){let n=z();u(0,"button",66),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"splitCell"))}),fe(1,18),m()}if(i&2){let n=C(2);v("disabled",n.menu.splitCell.disabled)}}function fce(i,e){if(i&1){let n=z();u(0,"button",66),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"cellBackgroundColor"))}),fe(1,19),m()}if(i&2){let n=C(2);v("disabled",n.menu.cellBackgroundColor.disabled)}}function gce(i,e){if(i&1){let n=z();u(0,"button",66),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"tableClass"))}),fe(1,20),m()}if(i&2){let n=C(2);v("disabled",n.menu.tableClass.disabled)}}function _ce(i,e){if(i&1){let n=z();u(0,"button",66),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"tableId"))}),fe(1,21),m()}if(i&2){let n=C(2);v("disabled",n.menu.tableId.disabled)}}function bce(i,e){if(i&1){let n=z();u(0,"button",66),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"addColumnBefore"))}),fe(1,22),m()}if(i&2){let n=C(2);v("disabled",n.menu.addColumnBefore.disabled)}}function vce(i,e){if(i&1){let n=z();u(0,"button",66),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"addColumnAfter"))}),fe(1,23),m()}if(i&2){let n=C(2);v("disabled",n.menu.addColumnAfter.disabled)}}function yce(i,e){if(i&1){let n=z();u(0,"button",66),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"deleteColumn"))}),fe(1,24),m()}if(i&2){let n=C(2);v("disabled",n.menu.deleteColumn.disabled)}}function Cce(i,e){if(i&1){let n=z();u(0,"button",66),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"addRowBefore"))}),fe(1,25),m()}if(i&2){let n=C(2);v("disabled",n.menu.addRowBefore.disabled)}}function xce(i,e){if(i&1){let n=z();u(0,"button",66),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"addRowAfter"))}),fe(1,26),m()}if(i&2){let n=C(2);v("disabled",n.menu.addRowAfter.disabled)}}function wce(i,e){if(i&1){let n=z();u(0,"button",66),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"deleteRow"))}),fe(1,27),m()}if(i&2){let n=C(2);v("disabled",n.menu.deleteRow.disabled)}}function Sce(i,e){if(i&1){let n=z();u(0,"button",66),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"toggleHeaderColumn"))}),fe(1,28),m()}if(i&2){let n=C(2);v("disabled",n.menu.toggleHeaderColumn.disabled)}}function Ece(i,e){if(i&1){let n=z();u(0,"button",66),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"toggleHeaderRow"))}),fe(1,29),m()}if(i&2){let n=C(2);v("disabled",n.menu.toggleHeaderRow.disabled)}}function Tce(i,e){if(i&1){let n=z();u(0,"button",66),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"toggleHeaderCell"))}),fe(1,30),m()}if(i&2){let n=C(2);v("disabled",n.menu.toggleHeaderCell.disabled)}}function Dce(i,e){if(i&1){let n=z();u(0,"button",67),w("fileChange",function(r){A(n);let o=C(2);return R(o.upload(r))}),T(1,"mat-icon",68),m()}i&2&&v("selectable",!0)("broadcast",!1)}function kce(i,e){if(i&1){let n=z();u(0,"mat-button-toggle",73),w("click",function(r){A(n);let o=C(3);return R(o.run(r,"alignLeft"))}),T(1,"mat-icon",74),m()}if(i&2){let n=C(3);v("disabled",n.menu.alignLeft.disabled)("checked",n.menu.alignLeft.active)}}function Ice(i,e){if(i&1){let n=z();u(0,"mat-button-toggle",75),w("click",function(r){A(n);let o=C(3);return R(o.run(r,"alignCenter"))}),T(1,"mat-icon",76),m()}if(i&2){let n=C(3);v("disabled",n.menu.alignCenter.disabled)("checked",n.menu.alignCenter.active)}}function Mce(i,e){if(i&1){let n=z();u(0,"mat-button-toggle",77),w("click",function(r){A(n);let o=C(3);return R(o.run(r,"alignRight"))}),T(1,"mat-icon",78),m()}if(i&2){let n=C(3);v("disabled",n.menu.alignRight.disabled)("checked",n.menu.alignRight.active)}}function Oce(i,e){if(i&1){let n=z();u(0,"mat-button-toggle",79),w("click",function(r){A(n);let o=C(3);return R(o.run(r,"alignJustify"))}),T(1,"mat-icon",80),m()}if(i&2){let n=C(3);v("disabled",n.menu.alignJustify.disabled)("checked",n.menu.alignJustify.active)}}function Ace(i,e){if(i&1&&(u(0,"mat-button-toggle-group",45),M(1,kce,2,2,"mat-button-toggle",69)(2,Ice,2,2,"mat-button-toggle",70)(3,Mce,2,2,"mat-button-toggle",71)(4,Oce,2,2,"mat-button-toggle",72),m()),i&2){let n=C(2);f(),k(n.menu.alignLeft?1:-1),f(),k(n.menu.alignCenter?2:-1),f(),k(n.menu.alignRight?3:-1),f(),k(n.menu.alignJustify?4:-1)}}function Rce(i,e){if(i&1){let n=z();u(0,"button",81),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"undo"))}),T(1,"mat-icon",82),m()}if(i&2){let n=C(2);v("disabled",n.menu.undo.disabled)}}function Nce(i,e){if(i&1){let n=z();u(0,"button",83),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"redo"))}),T(1,"mat-icon",84),m()}if(i&2){let n=C(2);v("disabled",n.menu.redo.disabled)}}function Fce(i,e){if(i&1){let n=z();u(0,"button",85),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"wrapBulletList"))}),T(1,"mat-icon",86),m()}if(i&2){let n=C(2);v("disabled",n.menu.wrapBulletList.disabled)}}function Pce(i,e){if(i&1){let n=z();u(0,"button",87),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"wrapOrderedList"))}),T(1,"mat-icon",88),m()}if(i&2){let n=C(2);v("disabled",n.menu.wrapOrderedList.disabled)}}function Lce(i,e){if(i&1){let n=z();u(0,"button",89),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"wrapBlockQuote"))}),T(1,"mat-icon",90),m()}if(i&2){let n=C(2);v("disabled",n.menu.wrapBlockQuote.disabled)}}function Vce(i,e){if(i&1){let n=z();u(0,"button",91),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"joinUp"))}),T(1,"mat-icon",92),m()}if(i&2){let n=C(2);v("disabled",n.menu.joinUp.disabled)}}function jce(i,e){if(i&1){let n=z();u(0,"button",93),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"lift"))}),T(1,"mat-icon",94),m()}if(i&2){let n=C(2);v("disabled",n.menu.lift.disabled)}}function Bce(i,e){if(i&1){let n=z();u(0,"button",95),w("click",function(r){A(n);let o=C(2);return R(o.run(r,"selectParentNode"))}),T(1,"mat-icon",96),m()}if(i&2){let n=C(2);v("disabled",n.menu.selectParentNode.disabled)}}function zce(i,e){if(i&1&&(u(0,"div",31)(1,"div",33),M(2,Wle,2,0,"button",34),u(3,"mat-button-toggle-group",35),M(4,Qle,2,2,"mat-button-toggle",36)(5,Kle,2,2,"mat-button-toggle",37)(6,Yle,2,2,"mat-button-toggle",38)(7,Xle,2,2,"mat-button-toggle",39)(8,Jle,2,2,"mat-button-toggle",40),m(),u(9,"button",41)(10,"span"),fe(11,3),m(),T(12,"mat-icon",42),m(),u(13,"mat-menu",null,1),M(15,Zle,2,1,"button",43)(16,ece,2,1,"button",43)(17,tce,2,1,"button",43)(18,ice,2,1,"button",43)(19,nce,2,1,"button",43)(20,rce,2,1,"button",43)(21,oce,2,1,"button",43)(22,ace,2,1,"button",43)(23,sce,1,0,"mat-divider")(24,lce,2,1,"button",43)(25,cce,2,1,"button",43),m(),M(26,dce,4,1,"button",41),u(27,"mat-menu",null,2),M(29,uce,2,1,"button",43)(30,pce,2,1,"button",43)(31,mce,2,1,"button",43)(32,hce,2,1,"button",43)(33,fce,2,1,"button",43)(34,gce,2,1,"button",43)(35,_ce,2,1,"button",43),T(36,"mat-divider"),M(37,bce,2,1,"button",43)(38,vce,2,1,"button",43)(39,yce,2,1,"button",43),T(40,"mat-divider"),M(41,Cce,2,1,"button",43)(42,xce,2,1,"button",43)(43,wce,2,1,"button",43),T(44,"mat-divider"),M(45,Sce,2,1,"button",43)(46,Ece,2,1,"button",43)(47,Tce,2,1,"button",43),m(),M(48,Dce,2,2,"button",44)(49,Ace,5,4,"mat-button-toggle-group",45)(50,Rce,2,1,"button",46)(51,Nce,2,1,"button",47)(52,Fce,2,1,"button",48)(53,Pce,2,1,"button",49)(54,Lce,2,1,"button",50)(55,Vce,2,1,"button",51)(56,jce,2,1,"button",52)(57,Bce,2,1,"button",53),m()()),i&2){let n=Je(14),t=C();f(2),k(t.save.observed?2:-1),f(2),k(t.menu.toggleStrong?4:-1),f(),k(t.menu.toggleEm?5:-1),f(),k(t.menu.toggleCode?6:-1),f(),k(t.menu.toggleLink?7:-1),f(),k(t.menu.textColor?8:-1),f(),v("matMenuTriggerFor",n),f(6),k(t.menu.makeParagraph?15:-1),f(),k(t.menu.makeCodeBlock?16:-1),f(),k(t.menu.makeHead1?17:-1),f(),k(t.menu.makeHead2?18:-1),f(),k(t.menu.makeHead3?19:-1),f(),k(t.menu.makeHead4?20:-1),f(),k(t.menu.makeHead5?21:-1),f(),k(t.menu.makeHead6?22:-1),f(),k(t.menu.blockClass||t.menu.blockId?23:-1),f(),k(t.menu.blockClass?24:-1),f(),k(t.menu.blockId?25:-1),f(),k(t.menu.addColumnBefore?26:-1),f(3),k(t.menu.insertTable?29:-1),f(),k(t.menu.deleteTable?30:-1),f(),k(t.menu.mergeCells?31:-1),f(),k(t.menu.splitCell?32:-1),f(),k(t.menu.cellBackgroundColor?33:-1),f(),k(t.menu.tableClass?34:-1),f(),k(t.menu.tableId?35:-1),f(2),k(t.menu.addColumnBefore?37:-1),f(),k(t.menu.addColumnAfter?38:-1),f(),k(t.menu.deleteColumn?39:-1),f(2),k(t.menu.addRowBefore?41:-1),f(),k(t.menu.addRowAfter?42:-1),f(),k(t.menu.deleteRow?43:-1),f(2),k(t.menu.toggleHeaderColumn?45:-1),f(),k(t.menu.toggleHeaderRow?46:-1),f(),k(t.menu.toggleHeaderCell?47:-1),f(),k(t.imageUploader?48:-1),f(),k(t.menu.alignLeft?49:-1),f(),k(t.menu.undo?50:-1),f(),k(t.menu.redo?51:-1),f(),k(t.menu.wrapBulletList&&t.menu.wrapBulletList.show?52:-1),f(),k(t.menu.wrapOrderedList&&t.menu.wrapOrderedList.show?53:-1),f(),k(t.menu.wrapBlockQuote&&t.menu.wrapBlockQuote.show?54:-1),f(),k(t.menu.joinUp&&t.menu.joinUp.show?55:-1),f(),k(t.menu.lift&&t.menu.lift.show?56:-1),f(),k(t.menu.selectParentNode&&t.menu.selectParentNode.show?57:-1)}}var My=class i{ngControl=x(an,{optional:!0,self:!0});document=x(pe);dialog=x(Xr);imagePlugin=x(Pf);view=null;editor;contentChange=new $;imageUploader=null;mode=ZT("basic");schema=hT;onChange;content="";menu=null;save=new $;disabled=!1;constructor(){this.ngControl!==null&&(this.ngControl.valueAccessor=this)}ngOnInit(){this.schema=this.imageUploader||this.mode()==="advanced"?fT:hT,this.menu=M8(this.schema,this.dialog);let e=ms.fromSchema(this.schema),n=this.createState();this.view=new oy(this.editor.nativeElement,{state:n,editable:()=>!this.disabled,dispatchTransaction:t=>{if(!this.view)return;let r=this.view.state.apply(t);this.view.updateState(r);let o=e.serializeFragment(this.view.state.doc),a=this.document.createElement("_");a.appendChild(o);let s=a.innerHTML;this.content===s||this.disabled||(this.content=a.innerHTML,this.onChange&&this.onChange(this.content),this.contentChange.emit(this.content))}}),this.update()}writeValue(e){if(typeof e=="string"&&e!==this.content&&(this.content=e),this.view!==null){let n=this.createState();this.view.updateState(n)}}createState(){let e=this.document.createElement("_");if(e.innerHTML="
"+this.content+"
",!e.firstChild)throw new Error("child of template element could not be created");let t=od.fromSchema(this.schema).parse(e.firstChild);return Q0.create({doc:t,plugins:this.createPlugins()})}createPlugins(){let e=!!this.document.defaultView?.navigator.platform.match(/Mac/),n=[V8(this.schema),dy(j8(this.schema,e)),dy(p8),O8(),A8(),g8(),new Wi({props:{attributes:{class:"ProseMirror-example-setup-style"}}}),new Wi({view:()=>this})];return this.imageUploader&&n.push(this.imagePlugin.plugin),this.schema===fT&&n.push(GV(),dy({Tab:uT(1),"Shift-Tab":uT(-1)})),n}update(){if(!(!this.view||!this.menu))for(let e of Object.values(this.menu))e.update(this.view,this.view.state)}registerOnChange(e){this.onChange=e}registerOnTouched(){}setDisabledState(e){this.disabled=e}ngOnDestroy(){this.view&&(this.view.destroy(),this.view=null)}run(e,n){if(!this.view||!this.menu)return;let t=this.menu[n];!t||t.disabled||!t.show||(t.spec.run(this.view.state,this.view.dispatch,this.view,e),this.view.focus())}upload(e){!this.view||!this.imageUploader||(this.view.state.selection.$from.parent.inlineContent&&this.imagePlugin.startImageUpload(this.view,e,this.imageUploader,this.schema),this.view.focus())}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["natural-editor"]],viewQuery:function(n,t){if(n&1&&ve(qle,7,J),n&2){let r;K(r=Y())&&(t.editor=r.first)}},inputs:{imageUploader:"imageUploader",mode:[1,"mode"]},outputs:{contentChange:"contentChange",save:"save"},standalone:!0,features:[me([Pf]),P],decls:3,vars:1,consts:()=>{let e;e=$localize`:␟ed4e9803a21e1ebd2da72379252b471d64eda506␟4977912145007192180:Enregistrer`;let n;n=$localize`:␟e571e69c1f6b7f0dff9ff4f1466b2e994b1192e5␟853518071026302177:Gras`;let t;t=$localize`:␟47d9e7ef80f669552e3df42dbba8be7088b822d3␟300198309511639809:Italique`;let r;r=$localize`:␟68572de01b84c678be4bf8a27b990ecac2f41ce9␟8186013988289067040:Code`;let o;o=$localize`:␟ba7473f3a215d1323eff2ad3167d0e9e9274218e␟1557041251955945552:Insérer un lien...`;let a;a=$localize`:␟34eba331dfd953f78d5d3f1d523c16709e85bc39␟4641248034186736687:Couleur du texte...`;let s;s=$localize`:␟9be03b6413d8068efe175697621131615a6ab3a0␟3841978350801808879:Insérer une image`;let l;l=$localize`:␟12380235948088ddf227ad226ce8a2ae63878fe5␟1711750570766225138:Annuler`;let c;c=$localize`:␟8b5d0e4c0dec651a66d89de01f137cb5e5e04257␟6403851193916651073:Refaire`;let d;d=$localize`:␟3ff6c7a0175eb584e95dca05def5571c9035940b␟4704418596776975081:Liste à puce`;let p;p=$localize`:␟60623fec2df2e8744df5619b9b6dadc73672e24b␟7216232907864469265:Liste à numéro`;let h;h=$localize`:␟7dabf675c8fe0749ca2779c47bba8f358c1019a4␟2451656483824020015:Citation`;let g;g=$localize`:␟ace5a15008479d64be5ac213ca232ba5ecd8bb73␟5064870605618369023:Fusionner avec l'élément du haut`;let _;_=$localize`:␟cb9750d7d225829cfd5d95b74ae4351b5ed65aa6␟2000897235581877997:Désindenter`;let S;S=$localize`:␟83be2abf76edda9dc5b9154186284dc0f41fab77␟8614235463900586550:Sélectionner l'élément parent`;let E;E=$localize`:␟f61c6867295f3b53d23557021f2f4e0aa1d0b8fc␟8650499415827640724:Type`;let D;D=$localize`:␟17153a3162ea213fb0f02ebf771c2a084fd23ecc␟2616847389967896985:Paragraphe `;let O;O=$localize`:␟ad3f83221c027ec19c150330d5f3c35fdc7a8681␟8592887885712106750:Code `;let I;I=$localize`:␟649ac42ed1b64d05a9b0ca5fed4fd9617f57ea06␟8656471444452953850:Titre 1 `;let L;L=$localize`:␟8ede7137b2d5a389ea31c54cb7ad0e859cd8ad52␟1743363237372378407:Titre 2 `;let V;V=$localize`:␟999380a4a26dad5e8de4161a83b983452797660c␟806498482803227549:Titre 3 `;let he;he=$localize`:␟52f3e9ef94911c4d836942b3dc38f8b618e66687␟8008452910027070647:Titre 4 `;let Z;Z=$localize`:␟e99d219b5c0a3b216947dc6afca817b1121a4d7e␟4984617313968859434:Titre 5 `;let je;je=$localize`:␟722953ad57d423e2572668967dc876b21f169034␟7607323582340307864:Titre 6 `;let Ae;Ae=$localize`:␟133f383236a2f5915eff41e6dafe68993812ebd5␟8539598382979144178:Classe... `;let Et;Et=$localize`:␟9fd0db16ad56825a928b7a575ac48d380002b55d␟1243867841644434764:ID... `;let Tn;Tn=$localize`:␟b9549ffcf4f755b1d130ef02e560e470df4ddccc␟5784023628268896817:Tableau`;let Mo;Mo=$localize`:␟861e1430c847682e5b4bce4d952694aa2571de26␟6569449704697744255:Insérer un tableau `;let Ki;Ki=$localize`:␟725f126c4d1a074e9b6eb1e2b50e64343d7c3b37␟758857834724157322:Supprimer le tableau `;let Oo;Oo=$localize`:␟1872a3a5f68d822afc646af4755a6caa4bc573a3␟6336008619358908134:Fusionner les cellules `;let wd;wd=$localize`:␟c72be437a7e75283034ae9c43d0809a68959fc99␟1824167723228591942:Scinder les cellules `;let Zp;Zp=$localize`:␟0853b8f0ed12311129ce5299da3e94b2ec7d38ac␟5035018164815920799:Couleur de fond... `;let Jf;Jf=$localize`:␟133f383236a2f5915eff41e6dafe68993812ebd5␟8539598382979144178:Classe... `;let em;em=$localize`:␟9fd0db16ad56825a928b7a575ac48d380002b55d␟1243867841644434764:ID... `;let Yn;Yn=$localize`:␟f981f5cbe52cdd1798dd60d807731c609a86b966␟3047464496294141513:Insérer une colonne avant `;let Zf;Zf=$localize`:␟9ec77a5c99dce8967b5bb321a50a9b5fec848c10␟4197465589777491064:Insérer une colonne après `;let tm;tm=$localize`:␟55370071b1925abe7d938c4496995719581909f4␟1997981708542325773:Supprimer la colonne `;let Fa;Fa=$localize`:␟0ffec5d208610642c5f7c2e7cc94794e8bc0d148␟8565476298989800706:Insérer une ligne avant `;let Sd;Sd=$localize`:␟9b961d08ec391344f0e63c5e9059daa437509416␟4025481865490043525:Insérer une ligne après `;let im;im=$localize`:␟7b537185817144f3cf99ee987bbde6dbe1a7af28␟1897209169234701240:Supprimer la ligne `;let RT;RT=$localize`:␟8abe9a9d04d87586ebe89cb56a58d97c253fbce0␟7651302317607197944:Entête de colonne `;let NT;NT=$localize`:␟321ee6982d372424d396041bcd239d48b31e1b17␟6173825558467812773:Entête de ligne `;let FT;FT=$localize`:␟8914a07c44f68fe6723a0efa7d421143d1558798␟5533258849879760261:Entête de cellule `;let nC;nC=$localize`:␟9c53596030535cb177aa59e9842e246c31653f1f␟115347249111072315:Aligner gauche`;let rC;rC=$localize`:␟f8b1dc60bc104c4a24e9539c099dc2d39382dfa0␟928726635862596808:Centrer`;let oC;oC=$localize`:␟4e5190f42014bef9660dec2299437ea94817593c␟1503396568088382412:Aligner droite`;let aC;return aC=$localize`:␟782b8c1f80b16b4bddb129186f9f5d9d2a53d0ef␟5699727622825203342:Justifier`,[["editor",""],["blockMenu","matMenu"],["tableMenu","matMenu"],E,D,O,I,L,V,he,Z,je,Ae,Et,Tn,Mo,Ki,Oo,wd,Zp,Jf,em,Yn,Zf,tm,Fa,Sd,im,RT,NT,FT,[1,"menu-container"],[1,"editor-container"],[1,"menu"],["mat-icon-button","","matTooltip",e],["hideMultipleSelectionIndicator","","multiple",""],["matTooltip",n,3,"disabled","checked"],["matTooltip",t,3,"disabled","checked"],["matTooltip",r,3,"disabled","checked"],["matTooltip",o,3,"disabled","checked"],["matTooltip",a,3,"disabled","checked"],["mat-button","",3,"matMenuTriggerFor"],["fontIcon","arrow_drop_down"],["mat-menu-item","",3,"disabled"],["mat-icon-button","","naturalFileDrop","","matTooltip",s,3,"selectable","broadcast"],["hideSingleSelectionIndicator",""],["mat-icon-button","","matTooltip",l,3,"disabled"],["mat-icon-button","","matTooltip",c,3,"disabled"],["mat-icon-button","","matTooltip",d,3,"disabled"],["mat-icon-button","","matTooltip",p,3,"disabled"],["mat-icon-button","","matTooltip",h,3,"disabled"],["mat-icon-button","","matTooltip",g,3,"disabled"],["mat-icon-button","","matTooltip",_,3,"disabled"],["mat-icon-button","","matTooltip",S,3,"disabled"],["mat-icon-button","","matTooltip",e,3,"click"],["fontIcon","save"],["matTooltip",n,3,"click","disabled","checked"],["fontIcon","format_bold"],["matTooltip",t,3,"click","disabled","checked"],["fontIcon","format_italic"],["matTooltip",r,3,"click","disabled","checked"],["fontIcon","code"],["matTooltip",o,3,"click","disabled","checked"],["fontIcon","insert_link"],["matTooltip",a,3,"click","disabled","checked"],["fontIcon","format_color_text"],["mat-menu-item","",3,"click","disabled"],["mat-icon-button","","naturalFileDrop","","matTooltip",s,3,"fileChange","selectable","broadcast"],["fontIcon","insert_photo"],["matTooltip",nC,3,"disabled","checked"],["matTooltip",rC,3,"disabled","checked"],["matTooltip",oC,3,"disabled","checked"],["matTooltip",aC,3,"disabled","checked"],["matTooltip",nC,3,"click","disabled","checked"],["fontIcon","format_align_left"],["matTooltip",rC,3,"click","disabled","checked"],["fontIcon","format_align_center"],["matTooltip",oC,3,"click","disabled","checked"],["fontIcon","format_align_right"],["matTooltip",aC,3,"click","disabled","checked"],["fontIcon","format_align_justify"],["mat-icon-button","","matTooltip",l,3,"click","disabled"],["fontIcon","undo"],["mat-icon-button","","matTooltip",c,3,"click","disabled"],["fontIcon","redo"],["mat-icon-button","","matTooltip",d,3,"click","disabled"],["fontIcon","format_list_bulleted"],["mat-icon-button","","matTooltip",p,3,"click","disabled"],["fontIcon","format_list_numbered"],["mat-icon-button","","matTooltip",h,3,"click","disabled"],["fontIcon","format_quote"],["mat-icon-button","","matTooltip",g,3,"click","disabled"],["fontIcon","move_up"],["mat-icon-button","","matTooltip",_,3,"click","disabled"],["fontIcon","format_indent_decrease"],["mat-icon-button","","matTooltip",S,3,"click","disabled"],["fontIcon","select_all"]]},template:function(n,t){n&1&&(M(0,zce,58,45,"div",31),T(1,"div",32,0)),n&2&&k(t.menu&&!t.disabled?0:-1)},dependencies:[we,Ze,li,ln,sn,It,wt,Mp,Jc,Ll,_p,Sa,ls,gp,xp,Fv,jl],styles:['.menu[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;border-bottom:1px solid;padding:10px 18px}.menu-container[_ngcontent-%COMP%]{position:sticky;top:-20px;z-index:999} .ProseMirror{--padding-right: 8px;--padding-left: 14px;position:relative;outline:none;padding:4px var(--padding-right) 4px var(--padding-left);width:calc(100% - var(--padding-right) - var(--padding-left));line-height:1.2;word-wrap:break-word;-webkit-font-variant-ligatures:none;font-variant-ligatures:none;white-space:pre-wrap} .ProseMirror pre{white-space:pre-wrap} .ProseMirror li{position:relative} .ProseMirror-hideselection *::selection{background:transparent} .ProseMirror-hideselection *::-moz-selection{background:transparent} .ProseMirror-hideselection{caret-color:transparent} .ProseMirror-selectednode{outline:2px solid #8cf} li.ProseMirror-selectednode{outline:none} li.ProseMirror-selectednode:after{position:absolute;inset:-2px -2px -2px -32px;border:2px solid #8cf;pointer-events:none;content:""} .ProseMirror-gapcursor{display:none;position:absolute;pointer-events:none} .ProseMirror-gapcursor:after{display:block;position:absolute;top:-2px;animation:_ngcontent-%COMP%_ProseMirror-cursor-blink 1.1s steps(2,start) infinite;border-top:1px solid black;width:20px;content:""}@keyframes _ngcontent-%COMP%_ProseMirror-cursor-blink{to{visibility:hidden}} .ProseMirror-focused .ProseMirror-gapcursor{display:block} .ProseMirror-example-setup-style hr{margin:1em 0;border:none;padding:2px 10px} .ProseMirror-example-setup-style hr:after{display:block;background-color:silver;height:1px;content:"";line-height:2px} .ProseMirror ul, .ProseMirror ol{padding-left:30px} .ProseMirror blockquote{margin-right:0;margin-left:0;border-left:3px solid #eee;padding-left:1em} .ProseMirror-example-setup-style img{cursor:default} .ProseMirror p:first-child, .ProseMirror h1:first-child, .ProseMirror h2:first-child, .ProseMirror h3:first-child, .ProseMirror h4:first-child, .ProseMirror h5:first-child, .ProseMirror h6:first-child{margin-top:10px} .ProseMirror p{margin-bottom:1em} .ProseMirror .tableWrapper{overflow-x:auto} .ProseMirror table{border-collapse:collapse;width:100%;table-layout:fixed;overflow:hidden} .ProseMirror td, .ProseMirror th{position:relative;vertical-align:top;box-sizing:border-box} .ProseMirror .column-resize-handle{position:absolute;top:0;right:-2px;bottom:0;z-index:20;background-color:#adf;width:4px;pointer-events:none} .ProseMirror.resize-cursor{cursor:col-resize} .ProseMirror .selectedCell:after{position:absolute;inset:0;z-index:2;background:#c8c8ff66;pointer-events:none;content:""} .ProseMirror table{margin:0} .ProseMirror th, .ProseMirror td{border:1px solid #ddd;padding:3px 5px;min-width:1em} .ProseMirror .tableWrapper{margin:1em 0} .ProseMirror th{font-weight:700;text-align:left} placeholder{display:block;animation:_ngcontent-%COMP%_gradient 3s none infinite;background-size:500% 100%!important;width:50px;height:50px}@keyframes _ngcontent-%COMP%_gradient{0%{background-position:100% 100%}to{background-position:0 0}}']})};var Oy=class i{domSanitizer=x(bc);disabled=!1;htmlStringBasic=`

Basic

+

Nap all day cat dog hate mouse eat string barf pillow no baths hate everything but kitty poochy. Sleep on keyboard toy mouse squeak roll over. Mesmerizing birds. Poop on grasses licks paws destroy couch intently sniff hand. The dog smells bad gnaw the corn cob.

+

Throw down all the stuff in the kitchen fooled again thinking the dog likes me play riveting piece on synthesizer keyboard chew on cable missing until dinner time. Licks your face milk the cow.

+
    +
  • item 1
  • +
  • item 2
  • +
  • item 3
  • +
`;htmlStringAdvanced=`

Advanced

+ + + + +
Wide header
OneTwoThree
FourFiveSix
+

This text should be red when viewport is larger than 900px. Nap all day cat dog hate mouse eat string barf pillow no baths hate everything but kitty poochy. Sleep on keyboard toy mouse squeak roll over. Mesmerizing birds. Poop on grasses licks paws destroy couch intently sniff hand.

+

Nap all day cat dog hate mouse.

+

qweqweqwe qwe qw eq eqw

+

Throw down all the stuff in the kitchen fooled again thinking the dog likes me play riveting piece on synthesizer keyboard chew on cable missing until dinner time. Licks your face milk the cow.

+
    +
  • item 1
  • +
  • item 2
  • +
  • item 3
  • +
+

Title Level2 green italic

+`;htmlStringAdvancedWithImage=this.htmlStringAdvanced.replace("Advanced","Advanced with image");css=` + .my-paragraph-class {background: pink} + .my-table-class tr:nth-child(even) {background: darkgreen} + .my-title-class {color: green} + #chapter2 {font-style: italic} + #myTable tr th {color: #2a7ae2} + @media screen and (min-width: 900px) { + .my-paragraph-class {color: red} + } + `;uploader(e){return new Ct(n=>{let t=new FileReader;t.onload=()=>{n.next(t.result),n.complete()},t.onerror=()=>n.error(t.error);let r=setTimeout(()=>t.readAsDataURL(e),1500);return()=>{clearTimeout(r)}})}update(){console.log("Save button was clicked")}trustHTML(e){return this.domSanitizer.bypassSecurityTrustHtml(e)}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["app-editor"]],standalone:!0,features:[P],decls:37,vars:18,consts:[[1,"nat-vertical"],[3,"ngModelChange","ngModel"],[1,"nat-expand","nat-horizontal","nat-gap"],[1,"nat-expand","nat-vertical"],[3,"ngModelChange","ngModel","disabled"],[1,"mat-headline-4","nat-margin-bottom"],[1,"preview",3,"innerHTML"],[1,"debug"],["mode","advanced",3,"ngModelChange","ngModel","naturalCustomCss","disabled"],[1,"preview",3,"innerHTML","naturalCustomCss"],[3,"ngModelChange","save","ngModel","imageUploader","naturalCustomCss","disabled"]],template:function(n,t){n&1&&(u(0,"div",0)(1,"mat-checkbox",1),Ni("ngModelChange",function(o){return Ri(t.disabled,o)||(t.disabled=o),o}),y(2,"Disabled"),m(),u(3,"div",2)(4,"div",3)(5,"natural-editor",4),Ni("ngModelChange",function(o){return Ri(t.htmlStringBasic,o)||(t.htmlStringBasic=o),o}),m(),u(6,"div")(7,"h1",5),y(8,"Preview"),m(),T(9,"div",6),m(),u(10,"div")(11,"h1",5),y(12,"Debug"),m(),u(13,"p",7),y(14),m()()(),u(15,"div",3)(16,"natural-editor",8),Ni("ngModelChange",function(o){return Ri(t.htmlStringAdvanced,o)||(t.htmlStringAdvanced=o),o}),m(),u(17,"div")(18,"h1",5),y(19,"Preview"),m(),T(20,"div",9),m(),u(21,"div")(22,"h1",5),y(23,"Debug"),m(),u(24,"p",7),y(25),m()()(),u(26,"div",3)(27,"natural-editor",10),Ni("ngModelChange",function(o){return Ri(t.htmlStringAdvancedWithImage,o)||(t.htmlStringAdvancedWithImage=o),o}),w("save",function(){return t.update()}),m(),u(28,"div")(29,"h1",5),y(30,"Preview"),m(),T(31,"div",9),m(),u(32,"div")(33,"h1",5),y(34,"Debug"),m(),u(35,"p",7),y(36),m()()()()()),n&2&&(f(),Ai("ngModel",t.disabled),f(4),Ai("ngModel",t.htmlStringBasic),v("disabled",t.disabled),f(4),v("innerHTML",t.htmlStringBasic,rg),f(5),ge(t.htmlStringBasic),f(2),Ai("ngModel",t.htmlStringAdvanced),v("naturalCustomCss",t.css)("disabled",t.disabled),f(4),v("innerHTML",t.trustHTML(t.htmlStringAdvanced),rg)("naturalCustomCss",t.css),f(5),ge(t.htmlStringAdvanced),f(2),Ai("ngModel",t.htmlStringAdvancedWithImage),v("imageUploader",t.uploader)("naturalCustomCss",t.css)("disabled",t.disabled),f(4),v("innerHTML",t.trustHTML(t.htmlStringAdvancedWithImage),rg)("naturalCustomCss",t.css),f(5),ge(t.htmlStringAdvancedWithImage))},dependencies:[Ar,Pn,$e,We,qr,My,O0],styles:[".preview[_ngcontent-%COMP%]{border-radius:8px;background:#0000001a;padding:20px 30px}"]})};var Ay=class i extends Al{id=1;constructor(){super("user",null,null,null,null,null)}getFileModel(){return{id:""+this.id++}}watchAll(){return U({items:[this.getFileModel(),this.getFileModel(),this.getFileModel(),this.getFileModel(),this.getFileModel()],length:20,pageIndex:0,pageSize:5}).pipe(ai(500))}getAll(){return U({items:[this.getFileModel(),this.getFileModel(),this.getFileModel(),this.getFileModel(),this.getFileModel()],length:20,pageIndex:0,pageSize:5}).pipe(ai(500))}getOne(){return U(this.getFileModel())}create(e){return U(ce(N({},e),{id:this.id++})).pipe(ai(500))}delete(){return U(!0).pipe(ai(500))}static \u0275fac=function(n){return new(n||i)};static \u0275prov=W({token:i,factory:i.\u0275fac,providedIn:"root"})};function Ry(i){return{name:i.name,type:i.type,size:i.size,lastModified:i.lastModified}}function B8(i){return{valid:i.valid.map(Ry),invalid:i.invalid.map(e=>({error:e.error,file:Ry(e.file)}))}}var Ny=class i{uploadService=x(Vl);fileService=x(Ay);disabled=!1;fileOver=null;fileOverJpg=null;fileOverSelectable=null;fileOverSelectableJpg=null;fileOverMaxSize=null;fileOverService=null;subscription=null;model=null;fileChange(e){console.log("fileChange",Ry(e))}filesChange(e){console.log("filesChange",B8(e))}subscribe(){this.subscription||(this.subscription=this.uploadService.filesChanged.subscribe(e=>console.log("service filesChanged",B8(e))))}unsubscribe(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)}modelChange(e){console.log(ce(N({},e),{file:e.file?Ry(e.file):null}))}setImage(){this.model={__typename:"Image",id:"123",mime:"image/jpeg"}}setImageWithSrc(){this.model={id:"456",src:"./assets/logo.svg"}}setFile(){this.model={__typename:"File",id:"789",mime:"application/pdf"}}clear(){this.model=null}uploadAndLink(e){return this.fileService.create({file:e}).pipe(lt(n=>console.log("pretend to do something more with the uploaded file",n)))}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["app-file"]],standalone:!0,features:[P],decls:106,vars:46,consts:[[1,"mat-headline-4"],[1,"mat-body"],[1,"nat-vertical","nat-gap-30"],[1,"nat-horizontal","nat-wrap","nat-gap-10"],[3,"ngModelChange","ngModel"],[1,"mat-h2"],[1,"nat-horizontal","nat-gap-10"],["mat-raised-button","","naturalFileSelect","",3,"fileChange","filesChange","disabled"],["mat-raised-button","","naturalFileSelect","",3,"fileChange","filesChange","disabled","multiple"],["mat-raised-button","","naturalFileSelect","","accept","image/jpeg",3,"fileChange","filesChange","disabled"],["mat-raised-button","","naturalFileSelect","","accept","image/jpeg",3,"fileChange","filesChange","disabled","multiple"],["mat-raised-button","","naturalFileDrop","",3,"fileChange","filesChange","selectable","disabled"],["mat-raised-button","","naturalFileDrop","",3,"fileChange","filesChange","selectable","disabled","multiple"],["mat-raised-button","","naturalFileDrop","","accept","image/jpeg",3,"fileChange","filesChange","selectable","disabled"],["mat-raised-button","","naturalFileDrop","","accept","image/jpeg",3,"fileChange","filesChange","selectable","disabled","multiple"],["naturalFileDrop","",3,"fileChange","filesChange","fileOver","fileSelectionDisabled"],["naturalFileDrop","","accept","image/jpeg",3,"fileChange","filesChange","fileOver","fileSelectionDisabled"],["naturalFileDrop","",3,"fileChange","filesChange","fileOver","fileSelectionDisabled","selectable"],["naturalFileDrop","","accept","image/jpeg",3,"fileChange","filesChange","fileOver","fileSelectionDisabled","selectable"],["naturalFileDrop","",3,"fileChange","filesChange","fileOver","fileSelectionDisabled","maxSize"],["mat-raised-button","",3,"click"],["naturalFileDrop","",3,"fileOver","fileSelectionDisabled"],["action","upload",3,"modelChange","model","uploader"]],template:function(n,t){n&1&&(u(0,"h1",0),y(1,"natural-file"),m(),u(2,"p",1),y(3,"Open the console to see events"),m(),u(4,"div",2)(5,"div",3)(6,"mat-checkbox",4),Ni("ngModelChange",function(o){return Ri(t.disabled,o)||(t.disabled=o),o}),y(7,"disabled"),m()(),u(8,"h2",5),y(9,"Button"),m(),u(10,"div",6)(11,"div")(12,"button",7),w("fileChange",function(o){return t.fileChange(o)})("filesChange",function(o){return t.filesChange(o)}),y(13," Select one file "),m()(),u(14,"div")(15,"button",8),w("fileChange",function(o){return t.fileChange(o)})("filesChange",function(o){return t.filesChange(o)}),y(16," Select multiples files "),m()(),u(17,"div")(18,"button",9),w("fileChange",function(o){return t.fileChange(o)})("filesChange",function(o){return t.filesChange(o)}),y(19," Select one JPG "),m()(),u(20,"div")(21,"button",10),w("fileChange",function(o){return t.fileChange(o)})("filesChange",function(o){return t.filesChange(o)}),y(22," Select multiples JPG "),m()()(),u(23,"h2",5),y(24,"Button that can also be drag'n'dropped on"),m(),u(25,"div",6)(26,"div")(27,"button",11),w("fileChange",function(o){return t.fileChange(o)})("filesChange",function(o){return t.filesChange(o)}),y(28," Select one file "),m()(),u(29,"div")(30,"button",12),w("fileChange",function(o){return t.fileChange(o)})("filesChange",function(o){return t.filesChange(o)}),y(31," Select multiples files "),m()(),u(32,"div")(33,"button",13),w("fileChange",function(o){return t.fileChange(o)})("filesChange",function(o){return t.filesChange(o)}),y(34," Select one JPG "),m()(),u(35,"div")(36,"button",14),w("fileChange",function(o){return t.fileChange(o)})("filesChange",function(o){return t.filesChange(o)}),y(37," Select multiples JPG "),m()()(),u(38,"h2",5),y(39,"Drag'n'drop on link"),m(),u(40,"div",6)(41,"a",15),w("fileChange",function(o){return t.fileChange(o)})("filesChange",function(o){return t.filesChange(o)})("fileOver",function(o){return t.fileOver=o}),u(42,"div",1),y(43,"Drag here any files"),m(),u(44,"pre"),y(45),te(46,"json"),m()()(),u(47,"div",6)(48,"a",16),w("fileChange",function(o){return t.fileChange(o)})("filesChange",function(o){return t.filesChange(o)})("fileOver",function(o){return t.fileOverJpg=o}),u(49,"div",1),y(50,"Drag here only JPG"),m(),u(51,"pre"),y(52),te(53,"json"),m()()(),u(54,"h2",5),y(55,"Drag'n'drop on link that can also be clicked"),m(),u(56,"div",6)(57,"a",17),w("fileChange",function(o){return t.fileChange(o)})("filesChange",function(o){return t.filesChange(o)})("fileOver",function(o){return t.fileOverSelectable=o}),u(58,"div",1),y(59,"Drag here any files"),m(),u(60,"pre"),y(61),te(62,"json"),m()()(),u(63,"div",6)(64,"a",18),w("fileChange",function(o){return t.fileChange(o)})("filesChange",function(o){return t.filesChange(o)})("fileOver",function(o){return t.fileOverSelectableJpg=o}),u(65,"div",1),y(66,"Drag here only JPG"),m(),u(67,"pre"),y(68),te(69,"json"),m()()(),u(70,"h2",5),y(71,"Size limit"),m(),u(72,"div",6)(73,"a",19),w("fileChange",function(o){return t.fileChange(o)})("filesChange",function(o){return t.filesChange(o)})("fileOver",function(o){return t.fileOverMaxSize=o}),u(74,"div",1),y(75,"Drag here any files"),m(),u(76,"pre"),y(77),te(78,"json"),m()()(),u(79,"h2",5),y(80,"Drag'n'drop, relying on service"),m(),u(81,"div",6)(82,"button",20),w("click",function(){return t.subscribe()}),y(83,"Subscribe to service"),m(),u(84,"button",20),w("click",function(){return t.unsubscribe()}),y(85,"Unsubscribe to service"),m()(),u(86,"div",6)(87,"a",21),w("fileOver",function(o){return t.fileOverService=o}),u(88,"div",1),y(89,"Drag here any files. Hover is disabled if nobody subscribed to service"),m(),u(90,"pre"),y(91),te(92,"json"),m()()(),u(93,"h2",5),y(94,"File component"),m(),u(95,"div",6)(96,"button",20),w("click",function(){return t.setImage()}),y(97,"Set image (won't work because we don't have API to serve image) "),m(),u(98,"button",20),w("click",function(){return t.setImageWithSrc()}),y(99,"Set image with src"),m(),u(100,"button",20),w("click",function(){return t.setFile()}),y(101,"Set file"),m(),u(102,"button",20),w("click",function(){return t.clear()}),y(103,"Clear"),m()(),u(104,"div")(105,"natural-file",22),w("modelChange",function(o){return t.modelChange(o)}),m()()()),n&2&&(f(6),Ai("ngModel",t.disabled),f(6),v("disabled",t.disabled),f(3),v("disabled",t.disabled)("multiple",!0),f(3),v("disabled",t.disabled),f(3),v("disabled",t.disabled)("multiple",!0),f(6),v("selectable",!0)("disabled",t.disabled),f(3),v("selectable",!0)("disabled",t.disabled)("multiple",!0),f(3),v("selectable",!0)("disabled",t.disabled),f(3),v("selectable",!0)("disabled",t.disabled)("multiple",!0),f(5),v("fileSelectionDisabled",t.disabled),f(4),ue("fileOver: ",ie(46,34,t.fileOver),""),f(3),v("fileSelectionDisabled",t.disabled),f(4),ue("fileOver: ",ie(53,36,t.fileOverJpg),""),f(5),v("fileSelectionDisabled",t.disabled)("selectable",!0),f(4),ue("fileOver: ",ie(62,38,t.fileOverSelectable),""),f(3),v("fileSelectionDisabled",t.disabled)("selectable",!0),f(4),ue("fileOver: ",ie(69,40,t.fileOverSelectableJpg),""),f(5),v("fileSelectionDisabled",t.disabled)("maxSize",123),f(4),ue("fileOver: ",ie(78,42,t.fileOverMaxSize),""),f(10),v("fileSelectionDisabled",t.disabled),f(4),ue("fileOver: ",ie(92,44,t.fileOverService),""),f(14),v("model",t.model)("uploader",t.uploadAndLink.bind(t)))},dependencies:[Ar,Pn,$e,We,qr,we,Ze,Jv,jl,Zv,Pe,xi],styles:["a[naturalFileDrop][_ngcontent-%COMP%]{border:1px dashed #a541c1}.natural-file-over[_ngcontent-%COMP%]{border-color:pink;background-color:#00b0ff}"]})};var Fy=class i{hierarchicDialogService=x(Bl);searchFacets=[{display:"Number less than 100",field:"number",component:us,configuration:{max:100}},{display:"With archives",field:"archived",condition:{equal:{value:!0}}}];searchSelections=[[{field:"number",condition:{equal:{value:50}}}]];selected={any:[{id:123,name:"Any 123"},{id:124,name:"Any 124"}]};config=[{service:Kt,parentsRelationNames:["parent"],childrenRelationNames:["parent"],selectableAtKey:"any",icon:"deployed_code"}];log(...e){console.log(e)}select(){let e={hierarchicConfig:this.config,hierarchicSelection:this.selected,searchFacets:this.searchFacets,searchSelections:this.searchSelections};this.hierarchicDialogService.open(e).afterClosed().subscribe(n=>{this.log("dialog usage",n)})}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["app-hierarchic"]],standalone:!0,features:[P],decls:12,vars:6,consts:[[1,"mat-headline-4"],[1,"nat-vertical"],[1,"mat-headline-6"],[3,"selectionChange","allowUnselect","config","multiple","selected","searchFacets","searchSelections"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,t){n&1&&(u(0,"h1",0),y(1,"natural-search"),m(),u(2,"div",1)(3,"div")(4,"div",2),y(5,"Component usage"),m(),u(6,"natural-hierarchic-selector",3),w("selectionChange",function(o){return t.log("component usage",o)}),m()(),u(7,"div")(8,"div",2),y(9,"Dialog usage"),m(),u(10,"button",4),w("click",function(){return t.select()}),y(11,"Select any"),m()()()),n&2&&(f(6),v("allowUnselect",!0)("config",t.config)("multiple",!0)("selected",t.selected)("searchFacets",t.searchFacets)("searchSelections",t.searchSelections))},dependencies:[Pl,we,Ze]})};var Hce=0,IT=new H("CdkAccordion"),z8=(()=>{let e=class e{constructor(){this._stateChanges=new q,this._openCloseAllActions=new q,this.id=`cdk-accordion-${Hce++}`,this.multi=!1}openAll(){this.multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=B({type:e,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:[2,"multi","multi",ee]},exportAs:["cdkAccordion"],standalone:!0,features:[me([{provide:IT,useExisting:e}]),xe,Ne]});let i=e;return i})(),Uce=0,H8=(()=>{let e=class e{get expanded(){return this._expanded}set expanded(t){if(this._expanded!==t){if(this._expanded=t,this.expandedChange.emit(t),t){this.opened.emit();let r=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,r)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}constructor(t,r,o){this.accordion=t,this._changeDetectorRef=r,this._expansionDispatcher=o,this._openCloseAllSubscription=et.EMPTY,this.closed=new $,this.opened=new $,this.destroyed=new $,this.expandedChange=new $,this.id=`cdk-accordion-child-${Uce++}`,this._expanded=!1,this.disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=o.listen((a,s)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===s&&this.id!==a&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(t=>{this.disabled||(this.expanded=t)})}};e.\u0275fac=function(r){return new(r||e)(b(IT,12),b(Se),b(Vg))},e.\u0275dir=B({type:e,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",ee],disabled:[2,"disabled","disabled",ee]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],standalone:!0,features:[me([{provide:IT,useValue:void 0}]),xe]});let i=e;return i})(),U8=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({});let i=e;return i})();var $ce=["body"],Gce=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],qce=["mat-expansion-panel-header","*","mat-action-row"];function Wce(i,e){}var Qce=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Kce=["mat-panel-title","mat-panel-description","*"];function Yce(i,e){if(i&1&&(u(0,"span",1),pi(),u(1,"svg",2),T(2,"path",3),m()()),i&2){let n=C();v("@indicatorRotate",n._getExpandedState())}}var MT=new H("MAT_ACCORDION"),$8="225ms cubic-bezier(0.4,0.0,0.2,1)",q8={indicatorRotate:Vt("indicatorRotate",[dt("collapsed, void",Ee({transform:"rotate(0deg)"})),dt("expanded",Ee({transform:"rotate(180deg)"})),ot("expanded <=> collapsed, void => collapsed",nt($8))]),bodyExpansion:Vt("bodyExpansion",[dt("collapsed, void",Ee({height:"0px",visibility:"hidden"})),dt("expanded",Ee({height:"*",visibility:""})),ot("expanded <=> collapsed, void => collapsed",nt($8))])},W8=new H("MAT_EXPANSION_PANEL"),Xce=(()=>{let e=class e{constructor(t,r){this._template=t,this._expansionPanel=r}};e.\u0275fac=function(r){return new(r||e)(b(ft),b(W8,8))},e.\u0275dir=B({type:e,selectors:[["ng-template","matExpansionPanelContent",""]],standalone:!0});let i=e;return i})(),Jce=0,Q8=new H("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),OT=(()=>{let e=class e extends H8{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=t}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}constructor(t,r,o,a,s,l,c){super(t,r,o),this._viewContainerRef=a,this._animationMode=l,this._hideToggle=!1,this.afterExpand=new $,this.afterCollapse=new $,this._inputChanges=new q,this._headerId=`mat-expansion-panel-header-${Jce++}`,this.accordion=t,this._document=s,this._animationsDisabled=l==="NoopAnimations",c&&(this.hideToggle=c.hideToggle)}_hasSpacing(){return this.accordion?this.expanded&&this.accordion.displayMode==="default":!1}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(Ye(null),Re(()=>this.expanded&&!this._portal),pt(1)).subscribe(()=>{this._portal=new Vi(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._inputChanges.complete()}_containsFocus(){if(this._body){let t=this._document.activeElement,r=this._body.nativeElement;return t===r||r.contains(t)}return!1}_animationStarted(t){!G8(t)&&!this._animationsDisabled&&this._body&&this._body?.nativeElement.setAttribute("inert","")}_animationDone(t){G8(t)||(t.toState==="expanded"?this.afterExpand.emit():t.toState==="collapsed"&&this.afterCollapse.emit(),!this._animationsDisabled&&this._body&&this._body.nativeElement.removeAttribute("inert"))}};e.\u0275fac=function(r){return new(r||e)(b(MT,12),b(Se),b(Vg),b(Ft),b(pe),b(gt,8),b(Q8,8))},e.\u0275cmp=F({type:e,selectors:[["mat-expansion-panel"]],contentQueries:function(r,o,a){if(r&1&&Ie(a,Xce,5),r&2){let s;K(s=Y())&&(o._lazyContent=s.first)}},viewQuery:function(r,o){if(r&1&&ve($ce,5),r&2){let a;K(a=Y())&&(o._body=a.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(r,o){r&2&&se("mat-expanded",o.expanded)("_mat-animation-noopable",o._animationsDisabled)("mat-expansion-panel-spacing",o._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",ee],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],standalone:!0,features:[me([{provide:MT,useValue:void 0},{provide:W8,useExisting:e}]),xe,X,Ne,P],ngContentSelectors:qce,decls:7,vars:4,consts:[["body",""],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(r,o){if(r&1){let a=z();Me(Gce),ae(0),u(1,"div",1,0),w("@bodyExpansion.start",function(l){return A(a),R(o._animationStarted(l))})("@bodyExpansion.done",function(l){return A(a),R(o._animationDone(l))}),u(3,"div",2),ae(4,1),M(5,Wce,0,0,"ng-template",3),m(),ae(6,2),m()}r&2&&(f(),v("@bodyExpansion",o._getExpandedState())("id",o.id),ne("aria-labelledby",o._headerId),f(4),v("cdkPortalOutlet",o._portal))},dependencies:[Ii],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative;background:var(--mat-expansion-container-background-color, var(--mat-app-surface));color:var(--mat-expansion-container-text-color, var(--mat-app-on-surface));border-radius:var(--mat-expansion-container-shape)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape);border-top-left-radius:var(--mat-expansion-container-shape)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape);border-bottom-left-radius:var(--mat-expansion-container-shape)}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;font-family:var(--mat-expansion-container-text-font, var(--mat-app-body-large-font));font-size:var(--mat-expansion-container-text-size, var(--mat-app-body-large-size));font-weight:var(--mat-expansion-container-text-weight, var(--mat-app-body-large-weight));line-height:var(--mat-expansion-container-text-line-height, var(--mat-app-body-large-line-height));letter-spacing:var(--mat-expansion-container-text-tracking, var(--mat-app-body-large-tracking))}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color, var(--mat-app-outline))}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[q8.bodyExpansion]},changeDetection:0});let i=e;return i})();function G8(i){return i.fromState==="void"}var Zce=(()=>{let e=class e{constructor(t,r,o,a,s,l,c){this.panel=t,this._element=r,this._focusMonitor=o,this._changeDetectorRef=a,this._animationMode=l,this._parentChangeSubscription=et.EMPTY,this.tabIndex=0;let d=t.accordion?t.accordion._stateChanges.pipe(Re(p=>!!(p.hideToggle||p.togglePosition))):Ht;this.tabIndex=parseInt(c||"")||0,this._parentChangeSubscription=Ge(t.opened,t.closed,d,t._inputChanges.pipe(Re(p=>!!(p.hideToggle||p.disabled||p.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe(Re(()=>t._containsFocus())).subscribe(()=>o.focusVia(r,"program")),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){let t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}_keydown(t){switch(t.keyCode){case 32:case 13:Dt(t)||(t.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t);return}}focus(t,r){t?this._focusMonitor.focusVia(this._element,t,r):this._element.nativeElement.focus(r)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(t=>{t&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}};e.\u0275fac=function(r){return new(r||e)(b(OT,1),b(J),b(wi),b(Se),b(Q8,8),b(gt,8),gi("tabindex"))},e.\u0275cmp=F({type:e,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(r,o){r&1&&w("click",function(){return o._toggle()})("keydown",function(s){return o._keydown(s)}),r&2&&(ne("id",o.panel._headerId)("tabindex",o.disabled?-1:o.tabIndex)("aria-controls",o._getPanelId())("aria-expanded",o._isExpanded())("aria-disabled",o.panel.disabled),Gt("height",o._getHeaderHeight()),se("mat-expanded",o._isExpanded())("mat-expansion-toggle-indicator-after",o._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",o._getTogglePosition()==="before")("_mat-animation-noopable",o._animationMode==="NoopAnimations"))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",t=>t==null?0:Lt(t)]},standalone:!0,features:[xe,P],ngContentSelectors:Kce,decls:5,vars:3,consts:[[1,"mat-content"],[1,"mat-expansion-indicator"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 -960 960 960","aria-hidden","true","focusable","false"],["d","M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"]],template:function(r,o){r&1&&(Me(Qce),u(0,"span",0),ae(1),ae(2,1),ae(3,2),m(),M(4,Yce,3,1,"span",1)),r&2&&(se("mat-content-hide-toggle",!o._showToggle()),f(4),k(o._showToggle()?4:-1))},styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-expansion-header-collapsed-state-height);font-family:var(--mat-expansion-header-text-font, var(--mat-app-title-medium-font));font-size:var(--mat-expansion-header-text-size, var(--mat-app-title-medium-size));font-weight:var(--mat-expansion-header-text-weight, var(--mat-app-title-medium-weight));line-height:var(--mat-expansion-header-text-line-height, var(--mat-app-title-medium-line-height));letter-spacing:var(--mat-expansion-header-text-tracking, var(--mat-app-title-medium-tracking))}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color)}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color)}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color, var(--mat-app-surface))}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color, var(--mat-app-on-surface))}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color, var(--mat-app-on-surface-variant))}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color, var(--mat-app-on-surface-variant));display:var(--mat-expansion-legacy-header-indicator-display, inline-block)}.mat-expansion-indicator svg{width:24px;height:24px;margin:0 -8px;vertical-align:middle;fill:var(--mat-expansion-header-indicator-color, var(--mat-app-on-surface-variant));display:var(--mat-expansion-header-indicator-display, none)}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[q8.indicatorRotate]},changeDetection:0});let i=e;return i})();var K8=(()=>{let e=class e extends z8{constructor(){super(...arguments),this._ownHeaders=new gr,this.hideToggle=!1,this.displayMode="default",this.togglePosition="after"}ngAfterContentInit(){this._headers.changes.pipe(Ye(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(r=>r.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new so(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(t){this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275dir=B({type:e,selectors:[["mat-accordion"]],contentQueries:function(r,o,a){if(r&1&&Ie(a,Zce,5),r&2){let s;K(s=Y())&&(o._headers=s)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(r,o){r&2&&se("mat-accordion-multi",o.multi)},inputs:{hideToggle:[2,"hideToggle","hideToggle",ee],displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],standalone:!0,features:[me([{provide:MT,useExisting:e}]),xe,X]});let i=e;return i})(),Y8=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({imports:[De,U8,ir]});let i=e;return i})();var tde=["*",[["mat-toolbar-row"]]],ide=["*","mat-toolbar-row"],nde=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=B({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0});let i=e;return i})(),X8=(()=>{let e=class e{constructor(t,r,o){this._elementRef=t,this._platform=r,this._document=o}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}};e.\u0275fac=function(r){return new(r||e)(b(J),b(Le),b(pe))},e.\u0275cmp=F({type:e,selectors:[["mat-toolbar"]],contentQueries:function(r,o,a){if(r&1&&Ie(a,nde,5),r&2){let s;K(s=Y())&&(o._toolbarRows=s)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(r,o){r&2&&(Yt(o.color?"mat-"+o.color:""),se("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",o._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[P],ngContentSelectors:ide,decls:2,vars:0,template:function(r,o){r&1&&(Me(tde),ae(0),ae(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});let i=e;return i})();var J8=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({imports:[De,De]});let i=e;return i})();var Py=class i{theme=new Be("defaultDark");darkActivated=!1;constructor(){this.theme.value.includes("Dark")&&(this.darkActivated=!0)}set(e){this.darkActivated&&!e.includes("Dark")?this.theme.next("defaultDark"):this.theme.next("default")}setNightMode(e){this.darkActivated=e,this.set(this.theme.getValue())}toggle(){this.setNightMode(!this.darkActivated)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=W({token:i,factory:i.\u0275fac,providedIn:"root"})};var ode=()=>({dog:"qwer"}),ade=i=>["/list",i],sde=()=>({cat:"cat"}),lde=()=>({dog:"dog"}),cde=(i,e)=>["/nested/anyValue",i,"list",e],dde=()=>["/editable-list"],ude=()=>["/navigable-list"],pde=()=>["/detail/123"],mde=()=>["/detail-header"];function hde(i,e){if(i&1){let n=z();u(0,"button",8),w("click",function(){A(n),C();let r=Je(14);return R(r.toggle())}),T(1,"mat-icon",48),m()}}function fde(i,e){if(i&1){let n=z();u(0,"a",49),w("click",function(){A(n),C();let r=Je(14);return R(r.toggleMinimized())}),T(1,"mat-icon",50),m()}if(i&2){C();let n=Je(14);f(),v("naturalIcon",n.isMinimized?"keyboard_arrow_right":"keyboard_arrow_left")}}var Ly=class i{themeService=x(Py);document=x(pe);ngOnInit(){this.themeService.theme.subscribe(e=>{this.document.body.classList.remove("default"),this.document.body.classList.remove("defaultDark"),this.document.body.classList.add(e)})}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["app-home"]],standalone:!0,features:[P],decls:101,vars:23,consts:[["menu",""],[1,"nat-expand","nat-vertical"],[1,"nat-horizontal","nat-left","nat-center","nat-gap"],["mat-icon-button",""],["href","/","mat-button","",1,"logo"],["height","40px","src","assets/logo.svg"],[1,"mat-headline-6"],[1,"nat-expand"],["mat-icon-button","",3,"click"],["naturalIcon","invert_colors"],["href","https://github.com/ecodev/natural","mat-icon-button",""],["src","assets/github.svg",2,"height","24px"],["name","menu",1,"nat-expand",3,"noScroll"],[2,"overflow-x","auto","margin","20px"],["id","menu"],["displayMode","flat"],[1,"mat-elevation-z0",3,"disabled","expanded"],["mat-list-item","","routerLink","/"],["matListItemIcon","","naturalIcon","home"],["mat-list-item","","routerLink","/search"],["matListItemIcon","","naturalIcon","search"],["mat-list-item","",3,"routerLink"],["matListItemIcon","","naturalIcon","list"],["matListItemIcon","","naturalIcon","subdirectory_arrow_right"],["matListItemIcon","","naturalIcon","details"],["matListItemIcon","","naturalIcon","title"],["mat-list-item","","routerLink","/select"],["matListItemIcon","","naturalIcon","check"],["mat-list-item","","routerLink","/select-hierarchic"],["mat-list-item","","routerLink","/select-enum"],["mat-list-item","","routerLink","/relation"],["matListItemIcon","","naturalIcon","device_hub"],["mat-list-item","","routerLink","/hierarchic"],["matListItemIcon","","naturalIcon","account_tree"],["mat-list-item","","routerLink","/panels"],["matListItemIcon","","naturalIcon","filter_none"],["mat-list-item","","routerLink","/file"],["matListItemIcon","","naturalIcon","file_upload"],["mat-list-item","","routerLink","/alert-service"],["matListItemIcon","","naturalIcon","error"],["mat-list-item","","routerLink","/avatar"],["matListItemIcon","","naturalIcon","face"],["mat-list-item","","routerLink","/editor"],["matListItemIcon","","naturalIcon","format_size"],["mat-list-item","","routerLink","/other"],["matListItemIcon","","naturalIcon","build"],["mat-list-item",""],[1,"nat-expand","nat-vertical",2,"padding","20px","overflow","auto"],["naturalIcon","menu"],["mat-list-item","",3,"click"],["matListItemIcon","",3,"naturalIcon"]],template:function(n,t){if(n&1){let r=z();u(0,"div",1)(1,"mat-toolbar",2),M(2,hde,2,0,"button",3),u(3,"a",4),T(4,"img",5),u(5,"span",6),y(6,"@ecodev/natural"),m()(),T(7,"div",7),u(8,"button",8),w("click",function(){return A(r),R(t.themeService.toggle())}),T(9,"mat-icon",9),m(),u(10,"a",10),T(11,"img",11),m()(),u(12,"div",1)(13,"natural-sidenav-container",12,0)(15,"natural-sidenav")(16,"div",13)(17,"div",14)(18,"mat-accordion",15)(19,"mat-expansion-panel",16)(20,"mat-nav-list")(21,"a",17),T(22,"mat-icon",18),u(23,"span"),y(24,"Home"),m()(),u(25,"a",19),T(26,"mat-icon",20),u(27,"span"),y(28,"Search"),m()(),u(29,"a",21),T(30,"mat-icon",22),u(31,"span"),y(32,"List A"),m()(),u(33,"a",21),T(34,"mat-icon",22),u(35,"span"),y(36,"List B"),m()(),u(37,"a",21),T(38,"mat-icon",22),u(39,"span"),y(40,"Editable list"),m()(),u(41,"a",21),T(42,"mat-icon",23),u(43,"span"),y(44,"Navigable list"),m()(),u(45,"a",21),T(46,"mat-icon",24),u(47,"span"),y(48,"Detail"),m()(),u(49,"a",21),T(50,"mat-icon",25),u(51,"span"),y(52,"Detail header"),m()(),u(53,"a",26),T(54,"mat-icon",27),u(55,"span"),y(56,"Select"),m()(),u(57,"a",28),T(58,"mat-icon",27),u(59,"span"),y(60,"Select hierarchic"),m()(),u(61,"a",29),T(62,"mat-icon",27),u(63,"span"),y(64,"Select Enum"),m()(),u(65,"a",30),T(66,"mat-icon",31),u(67,"span"),y(68,"Relation"),m()(),u(69,"a",32),T(70,"mat-icon",33),u(71,"span"),y(72,"Hi\xE9rarchic"),m()(),u(73,"a",34),T(74,"mat-icon",35),u(75,"span"),y(76,"Panels"),m()(),u(77,"a",36),T(78,"mat-icon",37),u(79,"span"),y(80,"File"),m()(),u(81,"a",38),T(82,"mat-icon",39),u(83,"span"),y(84,"Alert service"),m()(),u(85,"a",40),T(86,"mat-icon",41),u(87,"span"),y(88,"Avatar"),m()(),u(89,"a",42),T(90,"mat-icon",43),u(91,"span"),y(92,"Editor"),m()(),u(93,"a",44),T(94,"mat-icon",45),u(95,"span"),y(96,"Other tools"),m()(),M(97,fde,2,1,"a",46),m()()()()()(),u(98,"natural-sidenav-content")(99,"div",47),T(100,"router-outlet"),m()()()()()}if(n&2){let r=Je(14);f(2),k(r?2:-1),f(11),v("noScroll",!0),f(6),v("disabled",!0)("expanded",!0),f(10),v("routerLink",Ur(12,ade,Xt(11,ode))),f(4),v("routerLink",Md(16,cde,Xt(14,sde),Xt(15,lde))),f(4),v("routerLink",Xt(19,dde)),f(4),v("routerLink",Xt(20,ude)),f(4),v("routerLink",Xt(21,pde)),f(4),v("routerLink",Xt(22,mde)),f(48),k(r.isMobileView?-1:97)}},dependencies:[J8,X8,we,Cr,zd,li,It,wt,Mt,h0,d0,Y8,K8,OT,Sp,Lv,Pv,OS,Ei,f0,jo],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}"]})};var Vy=class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["app-homepage"]],standalone:!0,features:[P],decls:3,vars:0,consts:[["src","assets/logo.svg",2,"height","20vmax","max-height","150px","margin-bottom","30px"],[1,"mat-headline-4"]],template:function(n,t){n&1&&(T(0,"img",0),u(1,"h1",1),y(2,"@ecodev/natural"),m())},styles:["[_nghost-%COMP%]{display:flex;flex:1;flex-direction:column;justify-content:center;align-items:center}"]})};var gde=["mat-sort-header",""],_de=["*"];function bde(i,e){if(i&1){let n=z();u(0,"div",2),w("@arrowPosition.start",function(){A(n);let r=C();return R(r._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){A(n);let r=C();return R(r._disableViewStateAnimation=!1)}),T(1,"div",3),u(2,"div",4),T(3,"div",5)(4,"div",6)(5,"div",7),m()()}if(i&2){let n=C();v("@arrowOpacity",n._getArrowViewState())("@arrowPosition",n._getArrowViewState())("@allowChildren",n._getArrowDirectionState()),f(2),v("@indicator",n._getArrowDirectionState()),f(),v("@leftPointer",n._getArrowDirectionState()),f(),v("@rightPointer",n._getArrowDirectionState())}}var Z8=new H("MAT_SORT_DEFAULT_OPTIONS"),Kf=(()=>{let e=class e{get direction(){return this._direction}set direction(t){this._direction=t}constructor(t){this._defaultOptions=t,this._initializedStream=new tc(1),this.sortables=new Map,this._stateChanges=new q,this.start="asc",this._direction="",this.disabled=!1,this.sortChange=new $,this.initialized=this._initializedStream}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){if(!t)return"";let r=t?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,o=vde(t.start||this.start,r),a=o.indexOf(this.direction)+1;return a>=o.length&&(a=0),o[a]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}};e.\u0275fac=function(r){return new(r||e)(b(Z8,8))},e.\u0275dir=B({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",ee],disabled:[2,"matSortDisabled","disabled",ee]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],standalone:!0,features:[xe,Ne]});let i=e;return i})();function vde(i,e){let n=["asc","desc"];return i=="desc"&&n.reverse(),e||n.push(""),n}var Zl=_k.ENTERING+" "+gk.STANDARD_CURVE,Jp={indicator:Vt("indicator",[dt("active-asc, asc",Ee({transform:"translateY(0px)"})),dt("active-desc, desc",Ee({transform:"translateY(10px)"})),ot("active-asc <=> active-desc",nt(Zl))]),leftPointer:Vt("leftPointer",[dt("active-asc, asc",Ee({transform:"rotate(-45deg)"})),dt("active-desc, desc",Ee({transform:"rotate(45deg)"})),ot("active-asc <=> active-desc",nt(Zl))]),rightPointer:Vt("rightPointer",[dt("active-asc, asc",Ee({transform:"rotate(45deg)"})),dt("active-desc, desc",Ee({transform:"rotate(-45deg)"})),ot("active-asc <=> active-desc",nt(Zl))]),arrowOpacity:Vt("arrowOpacity",[dt("desc-to-active, asc-to-active, active",Ee({opacity:1})),dt("desc-to-hint, asc-to-hint, hint",Ee({opacity:.54})),dt("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Ee({opacity:0})),ot("* => asc, * => desc, * => active, * => hint, * => void",nt("0ms")),ot("* <=> *",nt(Zl))]),arrowPosition:Vt("arrowPosition",[ot("* => desc-to-hint, * => desc-to-active",nt(Zl,Os([Ee({transform:"translateY(-25%)"}),Ee({transform:"translateY(0)"})]))),ot("* => hint-to-desc, * => active-to-desc",nt(Zl,Os([Ee({transform:"translateY(0)"}),Ee({transform:"translateY(25%)"})]))),ot("* => asc-to-hint, * => asc-to-active",nt(Zl,Os([Ee({transform:"translateY(25%)"}),Ee({transform:"translateY(0)"})]))),ot("* => hint-to-asc, * => active-to-asc",nt(Zl,Os([Ee({transform:"translateY(0)"}),Ee({transform:"translateY(-25%)"})]))),dt("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Ee({transform:"translateY(0)"})),dt("hint-to-desc, active-to-desc, desc",Ee({transform:"translateY(-25%)"})),dt("hint-to-asc, active-to-asc, asc",Ee({transform:"translateY(25%)"}))]),allowChildren:Vt("allowChildren",[ot("* <=> *",[ac("@*",fg(),{optional:!0})])])},jy=(()=>{let e=class e{constructor(){this.changes=new q}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function yde(i){return i||new jy}var Cde={provide:jy,deps:[[new Va,new Es,jy]],useFactory:yde},By=(()=>{let e=class e{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(t){this._updateSortActionDescription(t)}constructor(t,r,o,a,s,l,c,d){this._intl=t,this._changeDetectorRef=r,this._sort=o,this._columnDef=a,this._focusMonitor=s,this._elementRef=l,this._ariaDescriber=c,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this.disabled=!1,this._sortActionDescription="Sort",d?.arrowPosition&&(this.arrowPosition=d?.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(t=>{let r=!!t;r!==this._showIndicatorHint&&(this._setIndicatorHintVisible(r),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(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._showIndicatorHint?this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"hint"}):this._setAnimationTransitionState({fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t||{},this._disableViewStateAnimation&&(this._viewState={toState:t.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(t){!this._isDisabled()&&(t.keyCode===32||t.keyCode===13)&&(t.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 t=this._viewState.fromState;return(t?`${t}-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(t){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,t)),this._sortActionDescription=t}_handleStateChanges(){this._rerenderSubscription=Ge(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()})}};e.\u0275fac=function(r){return new(r||e)(b(jy),b(Se),b(Kf,8),b("MAT_SORT_HEADER_COLUMN_DEF",8),b(wi),b(J),b(Mg,8),b(Z8,8))},e.\u0275cmp=F({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(r,o){r&1&&w("click",function(){return o._handleClick()})("keydown",function(s){return o._handleKeydown(s)})("mouseenter",function(){return o._setIndicatorHintVisible(!0)})("mouseleave",function(){return o._setIndicatorHintVisible(!1)}),r&2&&(ne("aria-sort",o._getAriaSortAttribute()),se("mat-sort-header-disabled",o._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",ee],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",ee]},exportAs:["matSortHeader"],standalone:!0,features:[xe,P],attrs:gde,ngContentSelectors:_de,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(r,o){r&1&&(Me(),u(0,"div",0)(1,"div",1),ae(2),m(),M(3,bde,6,6,"div",2),m()),r&2&&(se("mat-sort-header-sorted",o._isSorted())("mat-sort-header-position-before",o.arrowPosition==="before"),ne("tabindex",o._isDisabled()?null:0)("role",o._isDisabled()?null:"button"),f(3),k(o._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:[Jp.indicator,Jp.leftPointer,Jp.rightPointer,Jp.arrowOpacity,Jp.arrowPosition,Jp.allowChildren]},changeDetection:0});let i=e;return i})(),zy=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=be({type:e}),e.\u0275inj=_e({providers:[Cde],imports:[De]});let i=e;return i})();var xde=()=>["."];function wde(i,e){i&1&&T(0,"tr",28)}function Sde(i,e){i&1&&T(0,"tr",29)}function Ede(i,e){if(i&1){let n=z();u(0,"th",30)(1,"mat-checkbox",31),w("change",function(r){A(n);let o=C(2);return R(r?o.masterToggle():null)}),m()()}if(i&2){let n=C(2);f(),v("checked",n.selection.hasValue()&&n.isAllSelected())("indeterminate",n.selection.hasValue()&&!n.isAllSelected())}}function Tde(i,e){if(i&1){let n=z();u(0,"td",32)(1,"mat-checkbox",33),w("change",function(r){let o=A(n).$implicit,a=C(2);return R(r?a.selection.toggle(o):null)})("click",function(r){return A(n),R(r.stopPropagation())}),m()()}if(i&2){let n=e.$implicit,t=C(2);f(),v("checked",t.selection.isSelected(n))}}function Dde(i,e){i&1&&(u(0,"th",30),y(1,"id"),m())}function kde(i,e){if(i&1&&(u(0,"td",32),y(1),m()),i&2){let n=e.$implicit;f(),ge(n.id)}}function Ide(i,e){i&1&&(u(0,"th",34),y(1,"name"),m())}function Mde(i,e){if(i&1&&(u(0,"td",32),T(1,"natural-table-button",35),m()),i&2){let n=e.$implicit;f(),v("label",n.name)("navigate",Xt(2,xde))}}function Ode(i,e){i&1&&(u(0,"th",36),y(1,"description"),m())}function Ade(i,e){if(i&1&&(u(0,"td",37),y(1),m()),i&2){let n=e.$implicit;f(),ge(n.description)}}function Rde(i,e){i&1&&(u(0,"th",36),y(1,"hidden"),m())}function Nde(i,e){i&1&&(u(0,"td",37),y(1,"visible but hidden in dropdown"),m())}function Fde(i,e){i&1&&(u(0,"th",36),y(1,"Not in picker"),m())}function Pde(i,e){i&1&&(u(0,"td",37),y(1,"should never be visible, even if solicited by url "),m())}function Lde(i,e){i&1&&(u(0,"div",23),y(1," Pas de r\xE9sultats "),m())}function Vde(i,e){i&1&&(u(0,"div",23),T(1,"mat-progress-spinner",38),m()),i&2&&(f(),v("diameter",40))}function jde(i,e){if(i&1){let n=z();u(0,"div",1)(1,"div",2)(2,"div",3),y(3),m(),u(4,"natural-columns-picker",4),w("selectionChange",function(r){A(n);let o=C();return R(o.selectColumns(r))}),m()(),u(5,"div",5)(6,"div",6)(7,"natural-search",7),w("selectionChange",function(r){A(n);let o=C();return R(o.search(r))}),m()(),u(8,"div",8)(9,"table",9),w("matSortChange",function(r){A(n);let o=C();return R(o.sorting([r]))}),M(10,wde,1,0,"tr",10)(11,Sde,1,0,"tr",11),bi(12,12),M(13,Ede,2,2,"th",13)(14,Tde,2,1,"td",14),vi(),bi(15,15),M(16,Dde,2,0,"th",13)(17,kde,2,1,"td",14),vi(),bi(18,16),M(19,Ide,2,0,"th",17)(20,Mde,2,3,"td",14),vi(),bi(21,18),M(22,Ode,2,0,"th",19)(23,Ade,2,1,"td",20),vi(),bi(24,21),M(25,Rde,2,0,"th",19)(26,Nde,2,0,"td",20),vi(),bi(27,22),M(28,Fde,2,0,"th",19)(29,Pde,2,0,"td",20),vi(),m()(),M(30,Lde,2,0,"div",23)(31,Vde,2,1,"div",23),u(32,"mat-paginator",24),w("page",function(r){A(n);let o=C();return R(o.pagination(r))}),m()(),u(33,"div",25)(34,"pre",26),y(35),te(36,"json"),m(),u(37,"pre",26),y(38),te(39,"json"),m(),u(40,"pre",27),y(41),te(42,"json"),m(),u(43,"pre",27),y(44),te(45,"json"),m()()()}if(i&2){let n=C();f(3),ge(n.routeData==null?null:n.routeData.title),f(),v("availableColumns",n.availableColumns)("selections",n.selectedColumns)("buttons",n.buttons),f(3),v("facets",n.naturalSearchFacets)("multipleGroups",!0)("selections",n.naturalSearchSelections),f(2),v("dataSource",n.dataSource),f(),v("matHeaderRowDef",n.columnsForTable),f(),v("matRowDefColumns",n.columnsForTable),f(19),k((n.dataSource.data==null?null:n.dataSource.data.length)===0?30:-1),f(),k(n.dataSource.data?-1:31),f(),v("length",n.dataSource.data==null?null:n.dataSource.data.length)("pageIndex",n.dataSource.data==null?null:n.dataSource.data.pageIndex)("pageSizeOptions",n.pageSizeOptions)("pageSize",n.dataSource.data==null?null:n.dataSource.data.pageSize),f(3),ue("columnsForTable : ",ie(36,20,n.columnsForTable),""),f(3),ue("selectedColumns : ",ie(39,22,n.selectedColumns),""),f(3),ue("variables : ",ie(42,24,n.variablesManager.variables.value),""),f(3),ue("row selection : ",ie(45,26,n.selection.selected),"")}}var Yf=class i extends Wu{pageSizeOptions=[1,2,3,4,5];availableColumns=[{id:"select",label:"select"},{id:"id",label:"id",checked:!1},{id:"name",label:"name"},{id:"description",label:"description"},{id:"hidden",label:"hidden in menu",hidden:!0}];buttons=[{label:"Button with nothing",icon:"favorite"},{label:"Button with callback",icon:"forest",click:console.log},{label:"Button with href",icon:"diamond",href:"/"},{label:"Button with check",icon:"check",checked:!1,click:e=>{e.checked=!e.checked}},{label:"Button with sub-buttons",icon:"bolt",buttons:[{label:"My sub-button 1",click:console.log},{label:"My sub-button 2",click:console.log}]}];defaultPagination={offset:null,pageIndex:0,pageSize:5};defaultSorting=[{field:"name",order:"DESC"}];constructor(){let e=x(Kt);super(e)}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["app-list"]],standalone:!0,features:[X,P],decls:3,vars:1,consts:[[1,"mat-headline-4"],[1,"nat-expand","nat-vertical"],[1,"nat-horizontal"],[1,"mat-headline-6","nat-no-margin","nat-expand"],[3,"selectionChange","availableColumns","selections","buttons"],[1,"nat-vertical"],["overflow","",1,"nat-margin-vertical","nat-horizontal"],[1,"nat-expand",3,"selectionChange","facets","multipleGroups","selections"],[1,"responsive-table"],["mat-table","","matSort","",3,"matSortChange","dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","select"],["mat-header-cell","","natural-3em-column","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","description"],["mat-header-cell","","natural-align-right","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","natural-align-right","",4,"matCellDef"],["matColumnDef","hidden"],["matColumnDef","not-in-picker"],[1,"nat-margin","nat-center","nat-vertical"],[3,"page","length","pageIndex","pageSizeOptions","pageSize"],[1,"nat-horizontal","nat-gap"],[1,"debug",2,"overflow","auto"],[1,"debug","nat-expand",2,"overflow","auto"],["mat-header-row",""],["mat-row",""],["mat-header-cell","","natural-3em-column",""],[3,"change","checked","indeterminate"],["mat-cell",""],[3,"change","click","checked"],["mat-header-cell","","mat-sort-header",""],["icon","add",3,"label","navigate"],["mat-header-cell","","natural-align-right","","mat-sort-header",""],["mat-cell","","natural-align-right",""],["mode","indeterminate",3,"diameter"]],template:function(n,t){n&1&&(u(0,"h1",0),y(1,"NaturalAbstractList"),m(),M(2,jde,46,28,"div",1)),n&2&&(f(2),k(t.dataSource?2:-1))},dependencies:[Pe,xi,bp,Da,gl,al,ll,pl,cl,sl,ml,dl,ul,hl,fl,zy,Kf,By,Ar,Pn,zl,Ta,Ea,eu,_c],styles:["[_nghost-%COMP%]{display:flex;flex:1;flex-direction:column}"]})};var Hy=class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["app-modal-placeholder"]],standalone:!0,features:[P],decls:9,vars:1,consts:[["mat-dialog-title",""],[1,"mat-typography"],["align","end"],["mat-button","","mat-dialog-close",""],["mat-button","","cdkFocusInitial","",3,"mat-dialog-close"]],template:function(n,t){n&1&&(u(0,"h2",0),y(1,"title"),m(),u(2,"mat-dialog-content",1),y(3,` Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi cursus, lectus sed facilisis viverra, turpis massa bibendum orci, porttitor aliquam sapien odio eget leo. Integer aliquet orci accumsan sapien sollicitudin eleifend. Etiam at tortor odio. Pellentesque aliquet sapien ac lacus rutrum accumsan. Donec rutrum placerat leo, vitae placerat augue tincidunt non. Sed non leo suscipit, euismod arcu eget, vestibulum purus. Nunc pretium, arcu et sodales vestibulum, massa tellus tincidunt tellus, ac aliquam lectus lectus nec lectus. Vivamus semper lacus at nibh auctor, quis vehicula metus accumsan. Fusce tristique, magna at vestibulum aliquet, dolor enim ornare lorem, eget vestibulum nisl massa a diam. Cras ut molestie ligula. Nam posuere nibh sed velit porta mattis. Sed nec justo eget nulla sodales egestas. Nulla facilisi. +`),m(),u(4,"mat-dialog-actions",2)(5,"button",3),y(6,"Cancel"),m(),u(7,"button",4),y(8,"Ok"),m()()),n&2&&(f(7),v("mat-dialog-close",!0))},dependencies:[Nn,Dr,kr,Mr,Ir,we,Ze]})};var Bde=(i,e)=>e.id;function zde(i,e){if(i&1&&(u(0,"a",4),T(1,"mat-icon",27),u(2,"span"),y(3),m()()),i&2){let n=e.$implicit,t=C(2);v("routerLink",t.getChildLink(n)),f(3),ge(n.name)}}function Hde(i,e){i&1&&T(0,"tr",28)}function Ude(i,e){i&1&&T(0,"tr",29)}function $de(i,e){if(i&1){let n=z();u(0,"th",30)(1,"mat-checkbox",31),w("change",function(r){A(n);let o=C(2);return R(r?o.masterToggle():null)}),m()()}if(i&2){let n=C(2);f(),v("checked",n.selection.hasValue()&&n.isAllSelected())("indeterminate",n.selection.hasValue()&&!n.isAllSelected())}}function Gde(i,e){if(i&1){let n=z();u(0,"td",32)(1,"mat-checkbox",33),w("change",function(r){let o=A(n).$implicit,a=C(2);return R(r?a.selection.toggle(o.item):null)})("click",function(r){return A(n),R(r.stopPropagation())}),m()()}if(i&2){let n=e.$implicit,t=C(2);f(),v("checked",t.selection.isSelected(n.item))}}function qde(i,e){i&1&&T(0,"th",30)}function Wde(i,e){if(i&1&&T(0,"natural-table-button",34),i&2){let n=C().$implicit,t=C(2);v("navigate",t.getChildLink(n.item))}}function Qde(i,e){if(i&1&&(u(0,"td",32),M(1,Wde,1,1,"natural-table-button",34),m()),i&2){let n=e.$implicit;f(),k(n.hasNavigation?1:-1)}}function Kde(i,e){i&1&&(u(0,"th",30),y(1,"id"),m())}function Yde(i,e){if(i&1&&(u(0,"td",32),y(1),m()),i&2){let n=e.$implicit;f(),ge(n.item.id)}}function Xde(i,e){i&1&&(u(0,"th",35),y(1,"name"),m())}function Jde(i,e){if(i&1&&(u(0,"td",32),y(1),m()),i&2){let n=e.$implicit;f(),ge(n.item.name)}}function Zde(i,e){i&1&&(u(0,"th",36),y(1,"description"),m())}function eue(i,e){if(i&1&&(u(0,"td",37),y(1),m()),i&2){let n=e.$implicit;f(),ge(n.item.description)}}function tue(i,e){i&1&&(u(0,"div",22),y(1," Pas de r\xE9sultats "),m())}function iue(i,e){i&1&&(u(0,"div",22),T(1,"mat-progress-spinner",38),m()),i&2&&(f(),v("diameter",40))}function nue(i,e){if(i&1){let n=z();u(0,"div",1)(1,"div",2)(2,"div",3),He(3,zde,4,2,"a",4,Bde),m(),u(5,"div",5)(6,"natural-search",6),w("selectionChange",function(r){A(n);let o=C();return R(o.search(r))}),u(7,"natural-columns-picker",7),w("selectionChange",function(r){A(n);let o=C();return R(o.selectColumns(r))}),m()()(),u(8,"div",8)(9,"table",9),w("matSortChange",function(r){A(n);let o=C();return R(o.sorting([r]))}),M(10,Hde,1,0,"tr",10)(11,Ude,1,0,"tr",11),bi(12,12),M(13,$de,2,2,"th",13)(14,Gde,2,1,"td",14),vi(),bi(15,15),M(16,qde,1,0,"th",13)(17,Qde,2,1,"td",14),vi(),bi(18,16),M(19,Kde,2,0,"th",13)(20,Yde,2,1,"td",14),vi(),bi(21,17),M(22,Xde,2,0,"th",18)(23,Jde,2,1,"td",14),vi(),bi(24,19),M(25,Zde,2,0,"th",20)(26,eue,2,1,"td",21),vi(),m()(),M(27,tue,2,0,"div",22)(28,iue,2,1,"div",22),u(29,"mat-paginator",23),w("page",function(r){A(n);let o=C();return R(o.pagination(r))}),m()(),u(30,"div",24)(31,"pre",25),y(32),te(33,"json"),m(),u(34,"pre",25),y(35),te(36,"json"),m(),u(37,"pre",26),y(38),te(39,"json"),m(),u(40,"pre",26),y(41),te(42,"json"),m()()()}if(i&2){let n=C();f(3),Ue(n.breadcrumbs),f(3),v("facets",n.naturalSearchFacets)("multipleGroups",!0)("selections",n.naturalSearchSelections),f(),v("availableColumns",n.availableColumns)("selections",n.selectedColumns),f(2),v("dataSource",n.dataSource),f(),v("matHeaderRowDef",n.columnsForTable),f(),v("matRowDefColumns",n.columnsForTable),f(16),k((n.dataSource.data==null?null:n.dataSource.data.length)===0?27:-1),f(),k(n.dataSource.data?-1:28),f(),v("length",n.dataSource.data==null?null:n.dataSource.data.length)("pageIndex",n.dataSource.data==null?null:n.dataSource.data.pageIndex)("pageSizeOptions",n.pageSizeOptions)("pageSize",n.dataSource.data==null?null:n.dataSource.data.pageSize),f(3),ue("columnsForTable : ",ie(33,18,n.columnsForTable),""),f(3),ue("selectedColumns : ",ie(36,20,n.selectedColumns),""),f(3),ue("variables : ",ie(39,22,n.variablesManager.variables.value),""),f(3),ue("row selection : ",ie(42,24,n.selection.selected),"")}}var Uy=class i extends Ob{defaultPagination={offset:null,pageIndex:0,pageSize:5};availableColumns=[{id:"select",label:"select"},{id:"navigation",label:"navigation"},{id:"name",label:"name"},{id:"description",label:"description"}];defaultSorting=[{field:"name",order:"DESC"}];constructor(){let e=x(Kt);super(e)}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["app-navigable-list"]],standalone:!0,features:[X,P],decls:3,vars:1,consts:[[1,"mat-headline-4"],[1,"nat-expand","nat-vertical"],[1,"nat-vertical"],[1,"nat-horizontal","nat-wrap"],["mat-button","",1,"nat-no-padding",3,"routerLink"],["overflow","",1,"nat-margin-vertical","nat-horizontal"],[1,"nat-expand",3,"selectionChange","facets","multipleGroups","selections"],[3,"selectionChange","availableColumns","selections"],[1,"responsive-table"],["mat-table","","matSort","",3,"matSortChange","dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","select"],["mat-header-cell","","natural-3em-column","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","navigation"],["matColumnDef","id"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","description"],["mat-header-cell","","natural-align-right","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","natural-align-right","",4,"matCellDef"],[1,"nat-margin","nat-center","nat-vertical"],[3,"page","length","pageIndex","pageSizeOptions","pageSize"],[1,"nat-horizontal","nat-gap"],[1,"debug",2,"overflow","auto"],[1,"debug","nat-expand",2,"overflow","auto"],["naturalIcon","chevron_right"],["mat-header-row",""],["mat-row",""],["mat-header-cell","","natural-3em-column",""],[3,"change","checked","indeterminate"],["mat-cell",""],[3,"change","click","checked"],["icon","chevron_right","matTooltip","Show children",3,"navigate"],["mat-header-cell","","mat-sort-header",""],["mat-header-cell","","natural-align-right","","mat-sort-header",""],["mat-cell","","natural-align-right",""],["mode","indeterminate",3,"diameter"]],template:function(n,t){n&1&&(u(0,"h1",0),y(1,"NaturalAbstractNavigableList"),m(),M(2,nue,43,26,"div",1)),n&2&&(f(2),k(t.dataSource?2:-1))},dependencies:[Pe,xi,we,Cr,Ei,It,wt,Mt,Da,bp,gl,al,ll,pl,cl,sl,ml,dl,ul,hl,fl,zy,Kf,By,Ar,Pn,zl,ln,sn,Ta,Ea,eu,_c],styles:["[_nghost-%COMP%]{display:flex;flex:1;flex-direction:column}"]})};function rue(i,e){if(i&1&&T(0,"natural-table-button",3),i&2){let n=e.$implicit;v("label",n.label)("icon",n.icon)("href",n.href)("navigate",n.navigate)("queryParams",n.queryParams)("queryParamsHandling",n.queryParamsHandling)("fragment",n.fragment)("preserveFragment",n.preserveFragment)("color",n.color)}}function oue(i,e){if(i&1){let n=z();u(0,"natural-table-button",25),w("buttonClick",function(r){A(n);let o=C();return R(o.log(r))}),m()}if(i&2){let n=e.$implicit;v("label",n.label)("icon",n.icon)("color",n.color)}}var $y=class i{httpClient=x(sc);httpPrefixControl=new Xe("",[tt.required]);configurations=[{label:"my label without any link",icon:void 0,href:void 0,navigate:[],queryParams:{},queryParamsHandling:"",fragment:void 0,preserveFragment:!1,color:void 0},{label:void 0,icon:"home",href:void 0,navigate:[],queryParams:{},queryParamsHandling:"",fragment:void 0,preserveFragment:!1,color:void 0},{label:"my label without any link",icon:"home",href:void 0,navigate:[],queryParams:{},queryParamsHandling:"",fragment:void 0,preserveFragment:!1,color:void 0},{label:"my label with undefined navigate",icon:"home",href:void 0,navigate:void 0,queryParams:{},queryParamsHandling:"",fragment:void 0,preserveFragment:!1,color:void 0},{label:"my label with routerLink",icon:void 0,href:void 0,navigate:["/search"],queryParams:{},queryParamsHandling:"",fragment:void 0,preserveFragment:!1,color:void 0},{label:"my label with href",icon:void 0,href:"/search",navigate:[],queryParams:{},queryParamsHandling:"",fragment:void 0,preserveFragment:!1,color:void 0},{label:"my label with queryParams but no routerLink",icon:void 0,href:void 0,navigate:[],queryParams:{foo:"bar"},queryParamsHandling:"",fragment:void 0,preserveFragment:!1,color:void 0},{label:"my label with queryParams and routerLink",icon:"home",href:void 0,navigate:["/search"],queryParams:{foo:"bar"},queryParamsHandling:"",fragment:void 0,preserveFragment:!1,color:void 0},{label:"with colors",icon:"home",href:void 0,navigate:["/search"],queryParams:{foo:"bar"},queryParamsHandling:"",fragment:void 0,preserveFragment:!1,color:"primary"}];configurationsWithClick=[{label:"my label with click",icon:void 0,href:void 0,navigate:[],queryParams:{},queryParamsHandling:"",fragment:void 0,preserveFragment:!1,color:void 0},{label:void 0,icon:"home",href:void 0,navigate:[],queryParams:{},queryParamsHandling:"",fragment:void 0,preserveFragment:!1,color:void 0},{label:"my label with click",icon:void 0,href:void 0,navigate:[],queryParams:{},queryParamsHandling:"",fragment:void 0,preserveFragment:!1,color:void 0},{label:void 0,icon:"home",href:void 0,navigate:[],queryParams:{},queryParamsHandling:"",fragment:void 0,preserveFragment:!1,color:void 0}];httpPrefixGroup=new Pt({prefix:new Xe("",[tt.required])});ngOnInit(){this.httpPrefixControl.valueChanges.subscribe(e=>{console.log("httpPrefixControl.valueChanges",e)}),this.httpPrefixGroup.valueChanges.subscribe(e=>{console.log("httpPrefixGroup.valueChanges",e)})}error(){throw Error("I'm a natural error")}error2(){this.httpClient.get("https://doesnotexist.youpi").subscribe()}error3(){fetch("https://doesnotexist.youpi").then()}log(e){console.log("clicked",e)}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["app-other"]],standalone:!0,features:[P],decls:111,vars:42,consts:[["menu","matMenu"],[1,"mat-headline-6"],[1,"mat-body"],[3,"label","icon","href","navigate","queryParams","queryParamsHandling","fragment","preserveFragment","color"],[3,"label","icon","color"],[1,"nat-horizontal","nat-gap"],["matInput","",3,"naturalHttpPrefix","formControl"],[1,"debug"],[3,"formGroup"],["matInput","","formControlName","prefix",3,"naturalHttpPrefix"],[1,"mat-body","icons"],["fontIcon","search"],["naturalIcon","search",3,"size"],["naturalIcon","search"],["naturalIcon","natural",3,"size"],["naturalIcon","github",3,"size"],["mat-raised-button","","color","accent","aria-label","Example icon-button with a menu",3,"matMenuTriggerFor"],["mat-menu-item",""],["matInput",""],["matIconPrefix","","fontIcon","language"],["matIconSuffix",""],["matIconPrefix","","naturalIcon","language"],["mat-flat-button","","color","primary","routerLink","dialog"],["mat-flat-button","","color","primary",3,"click"],["matRipple","",2,"padding","20px","border","1px solid cyan"],[3,"buttonClick","label","icon","color"]],template:function(n,t){if(n&1){let r=z();u(0,"div")(1,"h1",1),y(2,"natural-table-button"),m(),u(3,"div",2),He(4,rue,1,9,"natural-table-button",3,Tt),He(6,oue,1,3,"natural-table-button",4,Tt),m(),u(8,"h1",1),y(9,"HTTP Prefix"),m(),u(10,"div",5)(11,"div")(12,"mat-form-field")(13,"mat-label"),y(14,"formControl"),m(),T(15,"input",6),m(),u(16,"pre",7),y(17),te(18,"json"),te(19,"json"),te(20,"json"),te(21,"json"),te(22,"json"),m()(),u(23,"div",8)(24,"mat-form-field")(25,"mat-label"),y(26,"formGroup"),m(),T(27,"input",9),m(),u(28,"pre",7),y(29),te(30,"json"),te(31,"json"),te(32,"json"),te(33,"json"),te(34,"json"),m()()(),T(35,"br")(36,"br")(37,"br"),u(38,"h1",1),y(39,"Icons"),m(),u(40,"div",10)(41,"span"),y(42,"Native font mat-icon"),m(),T(43,"mat-icon",11),u(44,"span"),y(45,"Font naturalIcon"),m(),T(46,"mat-icon",12)(47,"mat-icon",13)(48,"mat-icon",12)(49,"mat-icon",12)(50,"mat-icon",12),u(51,"span"),y(52,"SVG naturalIcon"),m(),T(53,"mat-icon",14)(54,"mat-icon",15),m(),u(55,"div",10)(56,"button",16),T(57,"mat-icon",11),y(58," Button with native mat-icon "),m(),u(59,"button",16),T(60,"mat-icon",13),y(61," Button with naturalIcon "),m(),u(62,"mat-menu",null,0)(64,"button",17),T(65,"mat-icon",11),u(66,"span"),y(67,"Option mat-icon"),m()(),u(68,"button",17),T(69,"mat-icon",13),u(70,"span"),y(71,"Option mat-icon"),m()()(),u(72,"mat-form-field")(73,"mat-label"),y(74,"Test mat-icon"),m(),T(75,"input",18)(76,"mat-icon",19)(77,"mat-datepicker-toggle",20),m(),u(78,"mat-form-field")(79,"mat-label"),y(80,"Test naturalIcon"),m(),T(81,"input",18)(82,"mat-icon",21)(83,"mat-datepicker-toggle",20),m()(),T(84,"br")(85,"br")(86,"br"),u(87,"h1",1),y(88,"Dialog trigger"),m(),u(89,"button",22),y(90,"Open dialog"),m(),T(91,"br")(92,"br")(93,"br")(94,"br"),u(95,"h1",1),y(96,"Error handler"),m(),u(97,"button",23),w("click",function(){return A(r),R(t.error())}),y(98,"Throw error !"),m(),u(99,"button",23),w("click",function(){return A(r),R(t.error2())}),y(100,"httpClient error !"),m(),u(101,"button",23),w("click",function(){return A(r),R(t.error3())}),y(102,"fetch error !"),m(),T(103,"br")(104,"br")(105,"br")(106,"br")(107,"br"),u(108,"div",24),y(109,"custom ripple"),m()(),T(110,"router-outlet")}if(n&2){let r,o=Je(63);f(4),Ue(t.configurations),f(2),Ue(t.configurationsWithClick),f(9),v("naturalHttpPrefix",t.httpPrefixControl)("formControl",t.httpPrefixControl),f(2),Hr(" touched: ",ie(18,22,t.httpPrefixControl.touched),"dirty: ",ie(19,24,t.httpPrefixControl.dirty),"status: ",ie(20,26,t.httpPrefixControl.status),"errors: ",ie(21,28,t.httpPrefixControl.errors),"value: ",ie(22,30,t.httpPrefixControl.value),` + `),f(6),v("formGroup",t.httpPrefixGroup),f(4),v("naturalHttpPrefix",t.httpPrefixGroup.get("prefix")),f(2),Hr(" touched: ",ie(30,32,t.httpPrefixGroup.touched),"dirty: ",ie(31,34,t.httpPrefixGroup.dirty),"status: ",ie(32,36,t.httpPrefixGroup.status),"errors: ",ie(33,38,(r=t.httpPrefixGroup.get("prefix"))==null?null:r.errors),"value: ",ie(34,40,t.httpPrefixGroup.value),` + `),f(17),v("size",35),f(2),v("size",null),f(),v("size",void 0),f(),v("size",24),f(3),v("size",35),f(),v("size",150),f(2),v("matMenuTriggerFor",o),f(3),v("matMenuTriggerFor",o)}},dependencies:[Pe,xi,zl,at,mt,_t,Bs,xr,zt,Bt,$e,qt,We,Rt,S0,it,st,bt,rr,It,wt,Mt,we,Ze,_p,Sa,ls,gp,Uu,Fc,Ei,fn,Fi,jo],styles:[".icons[_ngcontent-%COMP%]{display:flex;align-items:center}.icons[_ngcontent-%COMP%] *[_ngcontent-%COMP%]:not(:last-child){margin-right:20px}"]})};var aue=()=>["panel","2"],sue=()=>["invalid-url"],Xf=class i extends rl{constructor(){super()}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["app-any"]],standalone:!0,features:[X,P],decls:22,vars:11,consts:[[1,"nat-horizontal","nat-gap-10"],["mat-flat-button","",3,"routerLink"],["mat-flat-button","","routerLink","panel/3"],["mat-flat-button","","routerLink","modelPanel/3"],[3,"naturalLinkableTab"],["label","Tab1"],["label","Tab2"],["label","Tab3"],[1,"debug"]],template:function(n,t){n&1&&(u(0,"div",0)(1,"a",1),y(2,"Panel 2 (dynamic)"),m(),u(3,"a",2),y(4,"Panel 3 (static)"),m(),u(5,"a",3),y(6,"Panel with observable model (static)"),m(),u(7,"a",1),y(8,"invalid url"),m()(),u(9,"mat-tab-group",4)(10,"mat-tab",5),y(11,"Tab1"),m(),u(12,"mat-tab",6),y(13,"Tab2"),m(),u(14,"mat-tab",7),y(15,"Tab3"),m()(),u(16,"pre",8),y(17),te(18,"json"),m(),u(19,"pre",8),y(20),te(21,"json"),m()),n&2&&(f(),v("routerLink",Xt(9,aue)),f(6),v("routerLink",Xt(10,sue)),f(2),v("naturalLinkableTab",!1),f(8),ue("data : ",ie(18,5,t.data),""),f(3),ue("panelData : ",ie(21,7,t.panelData),""))},dependencies:[we,Cr,Ei,n_,Hm,tu,vp,Pe,xi]})};function lue(){let i=x(Kt);return U(ce(N({},i.getItem()),{name:"resolved",description:"resolved description"}))}var AT=[{path:"panel/:param",component:Xf,resolve:{foo:lue}},{path:"modelPanel/:param",component:Xf,resolve:{model:i=>x(Kt).resolve(i.params.param)}}];var Gy=class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["app-panels"]],standalone:!0,features:[P],decls:12,vars:0,consts:[[1,"mat-headline-4"],[1,"nat-horizontal","nat-gap-10"],["mat-flat-button","","routerLink","panel/1"],["mat-flat-button","","routerLink","panel/1/panel/2"],["mat-flat-button","","routerLink","modelPanel/1"],["mat-flat-button","","routerLink","invalid-url"]],template:function(n,t){n&1&&(u(0,"h1",0),y(1,"NaturalPanelsService"),m(),u(2,"div",1)(3,"a",2),y(4,"Panel 1"),m(),u(5,"a",3),y(6,"Panel 1 & 2"),m(),u(7,"a",4),y(8,"Panel with observable model"),m(),u(9,"a",5),y(10,"invalid url"),m()(),T(11,"router-outlet"))},dependencies:[we,Cr,Ei,jo]})};function qy(i){return La(1e3).pipe(re(()=>{throw new Error("ErrorService."+i+" error")}))}var Ss=class i extends Al{constructor(){super("user",null,null,null,null,null)}watchAll(){return qy("watchAll")}getAll(){return qy("getAll")}getOne(){return qy("getOne")}count(){return qy("count")}static \u0275fac=function(n){return new(n||i)};static \u0275prov=W({token:i,factory:i.\u0275fac,providedIn:"root"})};var Wy=class i extends Kt{watchAll(){return U({items:[],length:0,pageIndex:0,pageSize:5}).pipe(ai(500))}getAll(){return U({items:[],length:0,pageIndex:0,pageSize:5}).pipe(ai(500))}count(){return U(0).pipe(ai(500))}static \u0275fac=(()=>{let e;return function(t){return(e||(e=Te(i)))(t||i)}})();static \u0275prov=W({token:i,factory:i.\u0275fac,providedIn:"root"})};function cue(i,e){if(i&1){let n=z();u(0,"div",2)(1,"div")(2,"div",3),y(3,"Hierarchic selector"),m(),u(4,"natural-relations",4),w("selectionChange",function(){A(n);let r=C();return R(r.relationsAdded("Hierarchic selector"))}),m()(),u(5,"div")(6,"div",3),y(7,"Service"),m(),u(8,"natural-relations",5),w("selectionChange",function(){A(n);let r=C();return R(r.relationsAdded("Service"))}),m()(),u(9,"div")(10,"div",3),y(11,"No result service"),m(),u(12,"natural-relations",5),w("selectionChange",function(){A(n);let r=C();return R(r.relationsAdded("NoResultService"))}),m()(),u(13,"div")(14,"div",3),y(15,"ErrorService"),m(),u(16,"natural-relations",5),w("selectionChange",function(){A(n);let r=C();return R(r.relationsAdded("ErrorService"))}),m()()()}if(i&2){let n=C();v("formGroup",n.form),f(4),v("hierarchicSelectorConfig",n.hierarchicConfig)("main",n.data.model)("service",n.service),f(4),v("main",n.data.model)("service",n.service),f(4),v("main",n.data.model)("service",n.noResultService),f(4),v("main",n.data.model)("service",n.errorService)}}var Qy=class i extends Vu{noResultService=x(Wy);errorService=x(Ss);hierarchicConfig=[{service:Kt,parentsRelationNames:["parent"],childrenRelationNames:["parent"],selectableAtKey:"any"}];constructor(){let e=x(Kt);super("any",e)}relationsAdded(e){console.log("Relations added",e)}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["app-relations"]],standalone:!0,features:[X,P],decls:5,vars:1,consts:[[1,"mat-headline-4"],[1,"mat-body-2"],[1,"nat-horizontal",3,"formGroup"],[1,"mat-headline-6"],["placeholder","Link",3,"selectionChange","hierarchicSelectorConfig","main","service"],["placeholder","Link",3,"selectionChange","main","service"]],template:function(n,t){n&1&&(u(0,"h1",0),y(1,"natural-relations"),m(),u(2,"div",1),y(3,`Use ItemService.watchAll() that always returns 5 elements. Seems to be buggy but it's normal. +`),m(),M(4,cue,17,10,"div",2)),n&2&&(f(4),k(t.isUpdatePage()?4:-1))},dependencies:[$e,Rt,it,bt,o0],styles:["[_nghost-%COMP%] > div[_ngcontent-%COMP%] natural-relations[_ngcontent-%COMP%]{border-radius:4px;background:#0000001a;padding:20px}"]})};var Ky=class i{router=x(Mi);route=x(Si);itemService=x(Kt);errorService=x(Ss);facets1=[{display:"Active",field:"isActive",component:Kv,showValidateButton:!1,configuration:{displayWhenActive:"Actives",displayWhenInactive:"Inactives"}},{display:"Options / Facets",field:"isFlagged",component:Op,showValidateButton:!1,configuration:{options:[{display:"Is active",condition:{equal:{value:!0}}},{display:"Is inactive",condition:{equal:{value:!0}}},{display:"Is not defined",condition:{null:{}}},{display:"Is defined",condition:{null:{not:!0}}}]}},{display:"Date",field:"date",component:Pc},{display:"Date range",field:"date",name:"dateRange",component:df},{display:"Artist",field:"artist.name",component:kp},{display:"Number",field:"number",component:us},{display:"Same field number",field:"sameField",name:"sameFieldNumber",component:us},{display:"Same field string",field:"sameField",name:"sameFieldString",component:kp},{display:"Hierarchic",field:"hierarchic",component:Ip,configuration:{key:"any",service:this.itemService,config:[{service:Kt,parentsRelationNames:["parent"],childrenRelationNames:["parent"],selectableAtKey:"any"}]}},{display:"Hierarchic with error",field:"hierarchic-with-error",component:Ip,configuration:{key:"any",service:this.errorService,config:[{service:Ss,parentsRelationNames:["parent"],childrenRelationNames:["parent"],selectableAtKey:"any"}]}},{display:"Select single",field:"single",component:cs,configuration:{items:[{id:1,name:"Option A"},{id:2,name:"Option B"},{id:3,name:"Option C"}],multiple:!1}},{display:"Overflow menu",field:"overflow",component:cs,configuration:{items:[{id:1,name:"Option A"},{id:2,name:"Option B"},{id:3,name:"Option C"},{id:4,name:"Option D"},{id:5,name:"Option E"},{id:6,name:"Option F"},{id:7,name:"Option G"},{id:8,name:"Option H"},{id:9,name:"Option I"},{id:10,name:"Option J"},{id:11,name:"Option K"},{id:12,name:"Option L"},{id:13,name:"Option M"},{id:14,name:"Option N"},{id:15,name:"Option O"},{id:16,name:"Option P"},{id:17,name:"Option Q"},{id:18,name:"Option R"},{id:19,name:"Option S"},{id:20,name:"Option T"},{id:21,name:"Option U"},{id:22,name:"Option V"},{id:23,name:"Option W"},{id:24,name:"Option X"},{id:25,name:"Option Y"},{id:26,name:"Option Z"},{id:27,name:"One before last option"},{id:28,name:"Last option"}],multiple:!1}},{display:"Select multiple",field:"multiple",component:cs,configuration:{items:[{id:1,name:"Option A asd fasdfasd fasdfadfa as asd afd asd fas fasf ad fasf asfas"},{id:2,name:"Option B asd fasdfasd fasdfadfa as asd afd asd fas fasf ad fasf asfas"},{id:3,name:"Option C asd fasdfasd fasdfadfa as asd afd asd fas fasf ad fasf asfas"}],multiple:!0}},{display:"Select 2s delayed",field:"delayed",component:cs,configuration:{items:La(2e3).pipe(re(()=>[{id:1,name:"Option A"},{id:2,name:"Option B"},{id:3,name:"Option C"}])),multiple:!0}},{display:"Select without operators",field:"nooperator",component:cs,configuration:{items:[{id:1,name:"Option A"},{id:2,name:"Option B"},{id:3,name:"Option C"}],operators:!1}},{display:"Is published",field:"published",condition:{equal:{value:!0}}},{display:"Include archives",field:"archived",inversed:!0,condition:{equal:{value:!1}}},{display:"Natural select",field:"natural-select",component:Tp,configuration:{service:this.itemService}},{display:"Natural select with error",field:"natural-select-with-error",component:Tp,configuration:{service:this.errorService}}];facets=this.facets1;facets2=[{display:"Number less than 100",field:"number",component:us,configuration:{max:100}},{display:"With archives",field:"archived",condition:{equal:{value:!0}}}];graphqlSelections={};selectionsDone;selections=[[{field:"delayed",condition:{in:{values:[1]}}},{field:"single",condition:{in:{values:[2]}}},{field:"overflow",condition:{in:{values:[2]}}},{field:"artist.name",condition:{like:{value:"picasso"}}},{field:"number",condition:{equal:{value:123}}},{field:"archived",condition:{equal:{value:"true"}}},{field:"unsued",condition:{equal:{value:"unused value"}}},{field:"search",condition:{like:{value:"searched"}}},{field:"sameField",name:"sameFieldNumber",condition:{equal:{value:123}}},{field:"multiple",condition:{in:{values:[1,2]}}}]];ngOnInit(){let e=this.route.snapshot.params.search;e&&(this.selections=Gu(e))}updateFilter(e){this.graphqlSelections=bl(this.facets,e);let n={search:$u(e)};this.router.navigate(["."],{relativeTo:this.route,queryParams:n})}stringify(e){return JSON.stringify(e)}toUrl(e){return $u(e)}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["app-search"]],standalone:!0,features:[P],decls:33,vars:18,consts:[[1,"mat-headline-4"],[1,"nat-vertical","nat-gap"],["dropdownTitle","Very long dropdown title asdf",3,"selectionChange","facets","multipleGroups","selections"],["color","primary","mat-raised-button",""],[1,"nat-horizontal","nat-gap"],["color","primary","mat-raised-button","",3,"click"],[1,"debug","nat-expand",2,"overflow","auto"],[1,"debug",2,"overflow","auto"]],template:function(n,t){if(n&1&&(u(0,"h1",0),y(1,"natural-search"),m(),u(2,"div",1)(3,"natural-search",2),w("selectionChange",function(o){return t.updateFilter(o),t.selectionsDone=o}),u(4,"button",3),y(5,"extern."),m()(),u(6,"div",4)(7,"button",5),w("click",function(){return t.facets=t.facets1}),y(8,"Config 1"),m(),u(9,"button",5),w("click",function(){return t.facets=t.facets2}),y(10,"Config 2"),m(),u(11,"button",5),w("click",function(){return t.facets=[]}),y(12,"No config"),m()(),u(13,"div",4)(14,"pre",6)(15,"strong"),y(16,"Selections input: "),m(),y(17),te(18,"json"),m(),u(19,"pre",6)(20,"strong"),y(21,"Selections output: "),m(),y(22),te(23,"json"),m(),u(24,"pre",6)(25,"strong"),y(26,"GraphQL selections: "),m(),y(27),te(28,"json"),m()(),u(29,"pre",7)(30,"strong"),y(31,"JSON serialized length: "),m(),y(32),m()()),n&2){let r;f(3),v("facets",t.facets)("multipleGroups",!0)("selections",t.selections),f(14),ge(ie(18,12,t.selections)),f(5),ge(ie(23,14,t.selectionsDone)),f(5),ge(ie(28,16,t.graphqlSelections)),f(5),CD(` + + Selections:`,t.stringify(t.selections).length,"",t.stringify(t.selections),` + + GraphQL selections:`,t.stringify(t.graphqlSelections).length,"",t.stringify(t.graphqlSelections),` + + Compressed selections:`,(r=t.toUrl(t.selections))==null?null:r.length,"",t.toUrl(t.selections),` + `)}},dependencies:[Da,we,Ze,Pe,xi]})};var Yy=class i extends Rl{get(){return U([{value:"val1",name:"name1"},{value:"val2",name:"name2"},{value:"val3",name:"name3"}])}static \u0275fac=(()=>{let e;return function(t){return(e||(e=Te(i)))(t||i)}})();static \u0275prov=W({token:i,factory:i.\u0275fac,providedIn:"root"})};var ec=class{required=!0;formControl=new Xe(null,this.getRequiredAtStart());formControlReplace=new Xe(null,this.getRequiredAtStart());formGroup=new Pt({amazingField:new Xe(null,this.getRequiredAtStart())});formGroupReplace=new Pt({amazingField:new Xe(null,this.getRequiredAtStart())});myValue=null;disabled=!1;freeText=null;withoutModelOutput=null;service=x(Kt);errorService=x(Ss);toggleDisabledAllFormControls(){this.formControl.disabled?this.formControl.enable():this.formControl.disable(),this.formControlReplace.disabled?this.formControlReplace.enable():this.formControlReplace.disable(),this.formGroup.disabled?this.formGroup.enable():this.formGroup.disable(),this.formGroupReplace.disabled?this.formGroupReplace.enable():this.formGroupReplace.disable(),this.disabled=!this.disabled}getRequiredAtStart(){return tt.required}getRequiredOnChange(){return tt.required}validateAllFormControls(){$o(this.formControl),$o(this.formControlReplace),$o(this.formGroup),$o(this.formGroupReplace),console.log("form errors formControl",ol(this.formControl)),console.log("form errors formControlReplace",ol(this.formControlReplace)),console.log("form errors formGroup",ol(this.formGroup)),console.log("form errors formGroupReplace",ol(this.formGroupReplace))}getNextValue(){return this.service.getOne("foo")}setValue(){this.getNextValue().subscribe(e=>{this.myValue=e,this.formControl.setValue(this.myValue),this.formGroup.setValue({amazingField:this.myValue}),this.formControlReplace=new Xe(this.myValue,this.getRequiredOnChange()),this.formGroupReplace=new Pt({amazingField:new Xe(this.myValue,this.getRequiredOnChange())})})}clearValue(){this.myValue=null,this.formControl.setValue(this.myValue),this.formGroup.setValue({amazingField:this.myValue}),this.formControlReplace=new Xe(this.myValue,this.getRequiredOnChange()),this.formGroupReplace=new Pt({amazingField:new Xe(this.myValue,this.getRequiredOnChange())})}updateValidatorRequired(e){e.setValidators(tt.required),e.updateValueAndValidity()}updateValidatorOptional(e){e.clearValidators(),e.updateValueAndValidity()}};var Xy=class i extends ec{formControlMultiple=new Xe;optionDisabled(e){return e.value==="val2"}getNextValue(){return U("val"+Math.ceil(Math.random()*Math.floor(3)))}static \u0275fac=(()=>{let e;return function(t){return(e||(e=Te(i)))(t||i)}})();static \u0275cmp=F({type:i,selectors:[["app-select"]],standalone:!0,features:[me([{provide:Rl,useClass:Yy}]),X,P],decls:85,vars:88,consts:[[1,"mat-headline-4"],[1,"nat-vertical","nat-gap-30"],[1,"nat-horizontal","nat-wrap","nat-gap-10"],["mat-raised-button","",3,"click"],[1,"mat-h2","nat-gap-10","nat-horizontal","nat-left","nat-center"],[1,"nat-horizontal","nat-gap-10"],["enumName","FooEnum","placeholder","Without model (output only)",3,"selectionChange"],[1,"debug"],["enumName","FooEnum","placeholder","Input from previous output",3,"ngModel"],["enumName","FooEnum","placeholder","Without model, required",3,"required"],["enumName","FooEnum","placeholder","With model, required",3,"ngModelChange","ngModel","required","disabled"],[1,"mat-h2"],["enumName","FooEnum","placeholder","FormControl (update)",3,"formControl"],["enumName","FooEnum","placeholder","FormControl (replace)",3,"formControl"],[1,"form-group",3,"formGroup"],["enumName","FooEnum","formControlName","amazingField","placeholder","FormGroup (update)"],["enumName","FooEnum","formControlName","amazingField","placeholder","FormGroup (replace)"],["enumName","myEnum","placeholder","Disabled option with formControl",3,"formControl","optionDisabled"],["enumName","myEnum","placeholder","Multiple options with formControlMultiple",3,"formControl","multiple"]],template:function(n,t){n&1&&(u(0,"h1",0),y(1,"natural-select-enum"),m(),u(2,"div",1)(3,"div",2)(4,"button",3),w("click",function(){return t.validateAllFormControls()}),y(5,"Validate all controls"),m(),u(6,"button",3),w("click",function(){return t.toggleDisabledAllFormControls()}),y(7,"Disable all controls"),m(),u(8,"button",3),w("click",function(){return t.setValue()}),y(9,"Set value"),m(),u(10,"button",3),w("click",function(){return t.clearValue()}),y(11,"Clear value"),m()(),u(12,"h2",4)(13,"div"),y(14,"ngModel"),m(),u(15,"button",3),w("click",function(){return t.required=!0}),y(16,"required"),m(),u(17,"button",3),w("click",function(){return t.required=!1}),y(18,"optional"),m()(),u(19,"div",5)(20,"div")(21,"natural-select-enum",6),w("selectionChange",function(o){return t.withoutModelOutput=o}),m(),u(22,"pre",7),y(23),te(24,"json"),m()(),T(25,"natural-select-enum",8)(26,"natural-select-enum",9),u(27,"div")(28,"natural-select-enum",10),Ni("ngModelChange",function(o){return Ri(t.myValue,o)||(t.myValue=o),o}),m(),u(29,"pre",7),y(30),te(31,"json"),m()()(),u(32,"h2",11),y(33,"FormControl"),m(),u(34,"div",5)(35,"div"),T(36,"natural-select-enum",12),u(37,"pre",7),y(38),te(39,"json"),te(40,"json"),te(41,"json"),te(42,"json"),te(43,"json"),m()(),u(44,"div"),T(45,"natural-select-enum",13),u(46,"pre",7),y(47),te(48,"json"),te(49,"json"),te(50,"json"),te(51,"json"),te(52,"json"),m()()(),u(53,"h2",11),y(54,"FormGroup"),m(),u(55,"div",5)(56,"div")(57,"div",14),T(58,"natural-select-enum",15),m(),u(59,"pre",7),y(60),te(61,"json"),te(62,"json"),te(63,"json"),te(64,"json"),m()(),u(65,"div")(66,"div",14),T(67,"natural-select-enum",16),m(),u(68,"pre",7),y(69),te(70,"json"),te(71,"json"),te(72,"json"),te(73,"json"),m()()(),u(74,"h2",11),y(75,"Others"),m(),T(76,"natural-select-enum",17)(77,"natural-select-enum",18),u(78,"pre",7),y(79),te(80,"json"),te(81,"json"),te(82,"json"),te(83,"json"),te(84,"json"),m()()),n&2&&(f(23),ue("value: ",ie(24,38,t.withoutModelOutput),""),f(2),v("ngModel",t.withoutModelOutput),f(),v("required",t.required),f(2),Ai("ngModel",t.myValue),v("required",t.required)("disabled",t.disabled),f(2),ue("value: ",ie(31,40,t.myValue),""),f(6),v("formControl",t.formControl),f(2),Hr("touched: ",ie(39,42,t.formControl.touched),"dirty: ",ie(40,44,t.formControl.dirty),"status: ",ie(41,46,t.formControl.status),"errors: ",ie(42,48,t.formControl.errors),"value: ",ie(43,50,t.formControl.value),` + `),f(7),v("formControl",t.formControlReplace),f(2),Hr("touched: ",ie(48,52,t.formControlReplace.touched),"dirty: ",ie(49,54,t.formControlReplace.dirty),"status: ",ie(50,56,t.formControlReplace.status),"errors: ",ie(51,58,t.formControlReplace.errors),"value: ",ie(52,60,t.formControlReplace.value),` + `),f(10),v("formGroup",t.formGroup),f(3),za("touched: ",ie(61,62,t.formGroup.touched),"dirty: ",ie(62,64,t.formGroup.dirty),"status: ",ie(63,66,t.formGroup.status),"value: ",ie(64,68,t.formGroup.value),` + `),f(6),v("formGroup",t.formGroupReplace),f(3),za("touched: ",ie(70,70,t.formGroupReplace.touched),"dirty: ",ie(71,72,t.formGroupReplace.dirty),"status: ",ie(72,74,t.formGroupReplace.status),"value: ",ie(73,76,t.formGroupReplace.value),` + `),f(7),v("formControl",t.formControl)("optionDisabled",t.optionDisabled),f(),v("formControl",t.formControlMultiple)("multiple",!0),f(2),Hr("touched: ",ie(80,78,t.formControlMultiple.touched),"dirty: ",ie(81,80,t.formControlMultiple.dirty),"status: ",ie(82,82,t.formControlMultiple.status),"errors: ",ie(83,84,t.formControlMultiple.errors),"value: ",ie(84,86,t.formControlMultiple.value),` +`))},dependencies:[we,Ze,a0,$e,We,Rt,Zi,qr,it,st,bt,rr,Pe,xi],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;justify-content:stretch}[_nghost-%COMP%] .debug[_ngcontent-%COMP%]{max-height:200px;overflow:auto}[_nghost-%COMP%] .form-group[_ngcontent-%COMP%], [_nghost-%COMP%] .form-group[_ngcontent-%COMP%] + .debug[_ngcontent-%COMP%], [_nghost-%COMP%] natural-select[_ngcontent-%COMP%], [_nghost-%COMP%] natural-select[_ngcontent-%COMP%] + .debug[_ngcontent-%COMP%]{margin-right:0;margin-left:0;width:230px}"]})};var Jy=class i extends ec{hierarchicConfig=[{service:Kt,parentsRelationNames:["parent"],childrenRelationNames:["parent"],selectableAtKey:"any"}];static \u0275fac=(()=>{let e;return function(t){return(e||(e=Te(i)))(t||i)}})();static \u0275cmp=F({type:i,selectors:[["ng-component"]],standalone:!0,features:[X,P],decls:94,vars:80,consts:[[1,"mat-headline-4"],[1,"nat-vertical","nat-gap-30"],[1,"nat-horizontal","nat-wrap","nat-gap-10"],["mat-raised-button","",3,"click"],[1,"mat-h2","nat-gap-10","nat-horizontal","nat-left","nat-center"],[1,"nat-horizontal","nat-gap-10"],["placeholder","Without model (output only)",3,"selectionChange","config"],[1,"debug"],["placeholder","Input from previous output",3,"config","ngModel"],["placeholder","Without model, required",3,"config","required"],["placeholder","With model, required",3,"ngModelChange","config","ngModel","required","disabled"],[1,"mat-h2"],["placeholder","FormControl (update)",3,"config","formControl"],["placeholder","FormControl (replace)",3,"config","formControl"],[1,"form-group",3,"formGroup"],["formControlName","amazingField","placeholder","FormGroup (update)",3,"config"],["formControlName","amazingField","placeholder","FormGroup (replace)",3,"config"],["matInput",""],["navigateTo","/","placeholder","With navigateTo",3,"config"],["icon","pets","placeholder","With custom icon",3,"config"],["clearLabel","Unselect","selectLabel","Select something","placeholder","With select and clear label",3,"config"]],template:function(n,t){n&1&&(u(0,"h1",0),y(1,"natural-select-hierarchic"),m(),u(2,"div",1)(3,"div",2)(4,"button",3),w("click",function(){return t.validateAllFormControls()}),y(5,"Validate controls with formControl"),m(),u(6,"button",3),w("click",function(){return t.toggleDisabledAllFormControls()}),y(7,"Disable controls with formControl"),m(),u(8,"button",3),w("click",function(){return t.setValue()}),y(9,"Set value"),m(),u(10,"button",3),w("click",function(){return t.clearValue()}),y(11,"Clear value"),m()(),u(12,"h2",4)(13,"div"),y(14,"ngModel"),m(),u(15,"button",3),w("click",function(){return t.required=!0}),y(16,"required"),m(),u(17,"button",3),w("click",function(){return t.required=!1}),y(18,"optional"),m()(),u(19,"div",5)(20,"div")(21,"natural-select-hierarchic",6),w("selectionChange",function(o){return t.withoutModelOutput=o}),m(),u(22,"pre",7),y(23),te(24,"json"),m()(),T(25,"natural-select-hierarchic",8)(26,"natural-select-hierarchic",9),u(27,"div")(28,"natural-select-hierarchic",10),Ni("ngModelChange",function(o){return Ri(t.myValue,o)||(t.myValue=o),o}),m(),u(29,"pre",7),y(30),te(31,"json"),m()()(),u(32,"h2",11),y(33,"FormControl"),m(),u(34,"div",5)(35,"div"),T(36,"natural-select-hierarchic",12),u(37,"button",3),w("click",function(){return t.updateValidatorRequired(t.formControl)}),y(38,"required"),m(),u(39,"button",3),w("click",function(){return t.updateValidatorOptional(t.formControl)}),y(40,"optional"),m(),u(41,"pre",7),y(42),te(43,"json"),te(44,"json"),te(45,"json"),te(46,"json"),te(47,"json"),m()(),u(48,"div"),T(49,"natural-select-hierarchic",13),u(50,"pre",7),y(51),te(52,"json"),te(53,"json"),te(54,"json"),te(55,"json"),te(56,"json"),m()()(),u(57,"h2",11),y(58,"FormGroup"),m(),u(59,"div",5)(60,"div")(61,"div",14),T(62,"natural-select-hierarchic",15),m(),u(63,"button",3),w("click",function(){return t.updateValidatorRequired(t.formGroup.get("amazingField"))}),y(64,"required "),m(),u(65,"button",3),w("click",function(){return t.updateValidatorOptional(t.formGroup.get("amazingField"))}),y(66,"optional "),m(),u(67,"pre",7),y(68),te(69,"json"),te(70,"json"),te(71,"json"),te(72,"json"),m()(),u(73,"div")(74,"div",14),T(75,"natural-select-hierarchic",16),m(),u(76,"pre",7),y(77),te(78,"json"),te(79,"json"),te(80,"json"),te(81,"json"),m()()(),u(82,"h2",11),y(83,"Others"),m(),u(84,"div",5)(85,"mat-form-field")(86,"mat-label"),y(87,"Pr\xE9text"),m(),T(88,"input",17),u(89,"mat-hint"),y(90,"Basic input field to test alt+tab and focus on next field"),m()(),T(91,"natural-select-hierarchic",18)(92,"natural-select-hierarchic",19)(93,"natural-select-hierarchic",20),m()()),n&2&&(f(21),v("config",t.hierarchicConfig),f(2),ue("value: ",ie(24,40,t.withoutModelOutput),""),f(2),v("config",t.hierarchicConfig)("ngModel",t.withoutModelOutput),f(),v("config",t.hierarchicConfig)("required",t.required),f(2),v("config",t.hierarchicConfig),Ai("ngModel",t.myValue),v("required",t.required)("disabled",t.disabled),f(2),ue("value: ",ie(31,42,t.myValue),""),f(6),v("config",t.hierarchicConfig)("formControl",t.formControl),f(6),Hr("touched: ",ie(43,44,t.formControl.touched),"dirty: ",ie(44,46,t.formControl.dirty),"status: ",ie(45,48,t.formControl.status),"errors: ",ie(46,50,t.formControl.errors),"value: ",ie(47,52,t.formControl.value),` + `),f(7),v("config",t.hierarchicConfig)("formControl",t.formControlReplace),f(2),Hr("touched: ",ie(52,54,t.formControlReplace.touched),"dirty: ",ie(53,56,t.formControlReplace.dirty),"status: ",ie(54,58,t.formControlReplace.status),"errors: ",ie(55,60,t.formControlReplace.errors),"value: ",ie(56,62,t.formControlReplace.value),` + `),f(10),v("formGroup",t.formGroup),f(),v("config",t.hierarchicConfig),f(6),za("touched: ",ie(69,64,t.formGroup.touched),"dirty: ",ie(70,66,t.formGroup.dirty),"status: ",ie(71,68,t.formGroup.status),"value: ",ie(72,70,t.formGroup.value),` + `),f(6),v("formGroup",t.formGroupReplace),f(),v("config",t.hierarchicConfig),f(2),za("touched: ",ie(78,72,t.formGroupReplace.touched),"dirty: ",ie(79,74,t.formGroupReplace.dirty),"status: ",ie(80,76,t.formGroupReplace.status),"value: ",ie(81,78,t.formGroupReplace.value),` + `),f(14),v("config",t.hierarchicConfig),f(),v("config",t.hierarchicConfig),f(),v("config",t.hierarchicConfig))},dependencies:[we,Ze,s0,$e,We,Rt,Zi,qr,it,st,bt,rr,at,mt,_t,ho,zt,Bt,Pe,xi],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;justify-content:stretch}[_nghost-%COMP%] .debug[_ngcontent-%COMP%]{max-height:200px;overflow:auto}[_nghost-%COMP%] .form-group[_ngcontent-%COMP%], [_nghost-%COMP%] .form-group[_ngcontent-%COMP%] + .debug[_ngcontent-%COMP%], [_nghost-%COMP%] natural-select-hierarchic[_ngcontent-%COMP%], [_nghost-%COMP%] natural-select-hierarchic[_ngcontent-%COMP%] + .debug[_ngcontent-%COMP%]{margin-right:0;margin-left:0;width:230px}"]})};function due(i,e){if(i&1&&(T(0,"mat-icon",25),u(1,"span"),y(2),m()),i&2){let n=e.item;f(2),ue("Hello ",n.name," !")}}var Zy=class i extends ec{static \u0275fac=(()=>{let e;return function(t){return(e||(e=Te(i)))(t||i)}})();static \u0275cmp=F({type:i,selectors:[["app-select"]],standalone:!0,features:[X,P],decls:102,vars:88,consts:[[1,"mat-headline-4"],[1,"nat-vertical","nat-gap-30"],[1,"nat-horizontal","nat-wrap","nat-gap-10"],["mat-raised-button","",3,"click"],[1,"mat-h2","nat-gap-10","nat-horizontal","nat-left","nat-center"],[1,"nat-horizontal","nat-gap-10"],["placeholder","Without model (output only)",3,"selectionChange","service"],[1,"debug"],["placeholder","Input from previous output",3,"service","ngModel"],["placeholder","Without model, required",3,"service","required"],["placeholder","With model, required",3,"ngModelChange","service","ngModel","required","disabled"],[1,"mat-h2"],["id","test-select","placeholder","FormControl (update)",3,"service","formControl"],["placeholder","FormControl (replace)",3,"service","formControl"],[1,"form-group",3,"formGroup"],["formControlName","amazingField","placeholder","FormGroup (update)",3,"service"],["formControlName","amazingField","placeholder","FormGroup (replace)",3,"service"],["matInput",""],["navigateTo","/","placeholder","With navigateTo",3,"service"],["placeholder","Without icon",3,"service","showIcon"],["icon","pets","placeholder","With custom icon",3,"service"],["clearLabel","Clear selected item","placeholder","With clear label",3,"service"],["placeholder","With service throwing error",3,"service"],["placeholder","Custom item template",3,"service"],["placeholder","Free text allowed",3,"ngModelChange","service","ngModel","optionRequired"],["naturalIcon","pets"]],template:function(n,t){n&1&&(u(0,"h1",0),y(1,"natural-select"),m(),u(2,"div",1)(3,"div",2)(4,"button",3),w("click",function(){return t.validateAllFormControls()}),y(5,"Validate controls with formControl"),m(),u(6,"button",3),w("click",function(){return t.toggleDisabledAllFormControls()}),y(7,"Disable controls with formControl"),m(),u(8,"button",3),w("click",function(){return t.setValue()}),y(9,"Set value"),m(),u(10,"button",3),w("click",function(){return t.clearValue()}),y(11,"Clear value"),m()(),u(12,"h2",4)(13,"div"),y(14,"ngModel"),m(),u(15,"button",3),w("click",function(){return t.required=!0}),y(16,"required"),m(),u(17,"button",3),w("click",function(){return t.required=!1}),y(18,"optional"),m()(),u(19,"div",5)(20,"div")(21,"natural-select",6),w("selectionChange",function(o){return t.withoutModelOutput=o}),m(),u(22,"pre",7),y(23),te(24,"json"),m()(),T(25,"natural-select",8)(26,"natural-select",9),u(27,"div")(28,"natural-select",10),Ni("ngModelChange",function(o){return Ri(t.myValue,o)||(t.myValue=o),o}),m(),u(29,"pre",7),y(30),te(31,"json"),m()()(),u(32,"h2",11),y(33,"FormControl"),m(),u(34,"div",5)(35,"div"),T(36,"natural-select",12),u(37,"button",3),w("click",function(){return t.updateValidatorRequired(t.formControl)}),y(38,"required"),m(),u(39,"button",3),w("click",function(){return t.updateValidatorOptional(t.formControl)}),y(40,"optional"),m(),u(41,"pre",7),y(42),te(43,"json"),te(44,"json"),te(45,"json"),te(46,"json"),te(47,"json"),m()(),u(48,"div"),T(49,"natural-select",13),u(50,"pre",7),y(51),te(52,"json"),te(53,"json"),te(54,"json"),te(55,"json"),te(56,"json"),m()()(),u(57,"h2",11),y(58,"FormGroup"),m(),u(59,"div",5)(60,"div")(61,"div",14),T(62,"natural-select",15),m(),u(63,"button",3),w("click",function(){return t.updateValidatorRequired(t.formGroup.get("amazingField"))}),y(64,"required "),m(),u(65,"button",3),w("click",function(){return t.updateValidatorOptional(t.formGroup.get("amazingField"))}),y(66,"optional "),m(),u(67,"pre",7),y(68),te(69,"json"),te(70,"json"),te(71,"json"),te(72,"json"),m()(),u(73,"div")(74,"div",14),T(75,"natural-select",16),m(),u(76,"pre",7),y(77),te(78,"json"),te(79,"json"),te(80,"json"),te(81,"json"),m()()(),u(82,"h2",11),y(83,"Others"),m(),u(84,"div",2)(85,"mat-form-field")(86,"mat-label"),y(87,"Pr\xE9text"),m(),T(88,"input",17),u(89,"mat-hint"),y(90,"Basic input field to test alt+tab and focus on next field"),m()(),T(91,"natural-select",18)(92,"natural-select",19)(93,"natural-select",20)(94,"natural-select",21)(95,"natural-select",22),u(96,"natural-select",23),M(97,due,3,1,"ng-template"),m(),u(98,"div")(99,"natural-select",24),Ni("ngModelChange",function(o){return Ri(t.freeText,o)||(t.freeText=o),o}),m(),u(100,"pre",7),y(101),m()()()()),n&2&&(f(21),v("service",t.service),f(2),ue("value: ",ie(24,48,t.withoutModelOutput),""),f(2),v("service",t.service)("ngModel",t.withoutModelOutput),f(),v("service",t.service)("required",t.required),f(2),v("service",t.service),Ai("ngModel",t.myValue),v("required",t.required)("disabled",t.disabled),f(2),ue("value: ",ie(31,50,t.myValue),""),f(6),v("service",t.service)("formControl",t.formControl),f(6),Hr("touched: ",ie(43,52,t.formControl.touched),"dirty: ",ie(44,54,t.formControl.dirty),"status: ",ie(45,56,t.formControl.status),"errors: ",ie(46,58,t.formControl.errors),"value: ",ie(47,60,t.formControl.value),` + `),f(7),v("service",t.service)("formControl",t.formControlReplace),f(2),Hr("touched: ",ie(52,62,t.formControlReplace.touched),"dirty: ",ie(53,64,t.formControlReplace.dirty),"status: ",ie(54,66,t.formControlReplace.status),"errors: ",ie(55,68,t.formControlReplace.errors),"value: ",ie(56,70,t.formControlReplace.value),` + `),f(10),v("formGroup",t.formGroup),f(),v("service",t.service),f(6),za("touched: ",ie(69,72,t.formGroup.touched),"dirty: ",ie(70,74,t.formGroup.dirty),"status: ",ie(71,76,t.formGroup.status),"value: ",ie(72,78,t.formGroup.value),` + `),f(6),v("formGroup",t.formGroupReplace),f(),v("service",t.service),f(2),za("touched: ",ie(78,80,t.formGroupReplace.touched),"dirty: ",ie(79,82,t.formGroupReplace.dirty),"status: ",ie(80,84,t.formGroupReplace.status),"value: ",ie(81,86,t.formGroupReplace.value),` + `),f(14),v("service",t.service),f(),v("service",t.service)("showIcon",!1),f(),v("service",t.service),f(),v("service",t.service),f(),v("service",t.errorService),f(),v("service",t.service),f(3),v("service",t.service),Ai("ngModel",t.freeText),v("optionRequired",!1),f(2),ue("freeText: ",t.freeText,""))},dependencies:[we,Ze,ds,$e,We,Rt,Zi,qr,it,st,bt,rr,at,mt,_t,ho,zt,Bt,It,wt,Mt,Pe,xi],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;justify-content:stretch}[_nghost-%COMP%] .debug[_ngcontent-%COMP%]{max-height:200px;overflow:auto}[_nghost-%COMP%] .form-group[_ngcontent-%COMP%], [_nghost-%COMP%] .form-group[_ngcontent-%COMP%] + .debug[_ngcontent-%COMP%], [_nghost-%COMP%] natural-select[_ngcontent-%COMP%], [_nghost-%COMP%] natural-select[_ngcontent-%COMP%] + .debug[_ngcontent-%COMP%]{margin-right:0;margin-left:0;width:230px}"]})};var t4=[{path:"",component:Ly,children:[{path:"",component:Vy},{path:"search",component:Ky,data:{seo:{title:"Search",canonicalQueryParamsWhitelist:["search"]}}},{path:"select",component:Zy},{path:"select-hierarchic",component:Jy},{path:"select-enum",component:Xy},{path:"hierarchic",component:Fy},{path:"relation",component:Qy,resolve:{model:lE}},{path:"panels",component:Gy,children:[{matcher:r0,component:uf,data:{panelsRoutes:AT}}]},{path:"list",component:Yf,data:{seo:{title:"Listing of something"}}},{path:"alert-service",component:T0},{path:"nested/:listParamName",children:[{path:"list",component:Yf,data:{seo:{title:"Listing of something else"},selectedColumns:["name","description","hidden"]}}]},{path:"editable-list",component:M0,data:{seo:{title:"Listing of editable items"}}},{path:"navigable-list",component:Uy,data:{seo:{title:"Listing of navigable items"}}},{path:"file",component:Ny,data:{seo:{title:"File upload"}}},{path:"detail/:id",component:I0,resolve:{model:dL},data:{seo:{resolve:!0}},children:[{matcher:r0,component:uf,data:{panelsRoutes:AT}}]},{path:"detail-header",component:k0,resolve:{model:lE},data:{seo:{title:"Detail header"}}},{path:"editor",component:Oy,data:{seo:{title:"Editor"}}},{path:"other",component:$y,data:{seo:{title:"Other tools"}},children:[{path:"dialog",component:yp,data:{trigger:{component:Hy,dialogConfig:{width:"600px",maxWidth:"95vw",maxHeight:"97vh",data:{cancelText:"asdfasfd",confirmText:"asdfasdf"}}}}}]},{path:"avatar",component:D0,data:{seo:{title:"Avatar"}}}]},{matcher:tE,redirectTo:""}];var eC=class i{title="natural";static \u0275fac=function(n){return new(n||i)};static \u0275cmp=F({type:i,selectors:[["app-root"]],standalone:!0,features:[P],decls:2,vars:0,consts:[[1,"app-component","nat-fill","nat-vertical"]],template:function(n,t){n&1&&(u(0,"div",0),T(1,"router-outlet"),m())},dependencies:[jo]})};var tC=class i{snackBar=x(bh);getExtras(){return this.snackBar.open("An error happened","Yes",{duration:3e3,panelClass:["snackbar-error"],verticalPosition:"top",horizontalPosition:"end"}),U({extraAddedKey:"extraAddedValue"})}static \u0275fac=function(n){return new(n||i)};static \u0275prov=W({token:i,factory:i.\u0275fac,providedIn:"root"})};var iC=class i{link(e){return U({data:e}).pipe(tf("Mock NaturalLinkMutationService.link()"),ai(500))}linkMany(e){return U([{data:e}]).pipe(tf("Mock NaturalLinkMutationService.linkMany()"),ai(500))}unlink(e){return U({data:e}).pipe(tf("Mock NaturalLinkMutationService.unlink()"),ai(500))}static \u0275fac=function(n){return new(n||i)};static \u0275prov=W({token:i,factory:i.\u0275fac,providedIn:"root"})};var i4={production:!0};i4.production&&void 0;zI(eC,{providers:[xD({eventCoalescing:!0}),bk(),tP(()=>({cache:new Xh})),sE,ZS({natural:{svg:"assets/logo.svg"},github:{svg:"assets/github.svg"}}),aE(null,tC),eE({}),{provide:hi,useClass:kv},{provide:fp,useClass:iC},{provide:vx,useValue:{formFieldAppearance:"fill"}},{provide:Ex,useValue:{stretchTabs:!1}},$I(),UD(),TM(t4,DM({paramsInheritanceStrategy:"always"})),kS({applicationName:"Natural",defaultDescription:"An amazing angular library",languages:["fr","en","de","it","pt"]})]}).catch(i=>{console.error(i)}); diff --git a/polyfills-QBXW4TBJ.js b/polyfills-QBXW4TBJ.js new file mode 100644 index 00000000..a68f229a --- /dev/null +++ b/polyfills-QBXW4TBJ.js @@ -0,0 +1,2 @@ +var ae=globalThis;function ee(e){return(ae.__Zone_symbol_prefix||"__zone_symbol__")+e}function Et(){let e=ae.performance;function t(x){e&&e.mark&&e.mark(x)}function c(x,i){e&&e.measure&&e.measure(x,i)}t("Zone");let X=class X{static assertZonePatched(){if(ae.Promise!==O.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let i=X.current;for(;i.parent;)i=i.parent;return i}static get current(){return b.zone}static get currentTask(){return S}static __load_patch(i,s,o=!1){if(O.hasOwnProperty(i)){let y=ae[ee("forceDuplicateZoneCheck")]===!0;if(!o&&y)throw Error("Already loaded patch: "+i)}else if(!ae["__Zone_disable_"+i]){let y="Zone:"+i;t(y),O[i]=s(ae,X,P),c(y,y)}}get parent(){return this._parent}get name(){return this._name}constructor(i,s){this._parent=i,this._name=s?s.name||"unnamed":"",this._properties=s&&s.properties||{},this._zoneDelegate=new f(this,this._parent&&this._parent._zoneDelegate,s)}get(i){let s=this.getZoneWith(i);if(s)return s._properties[i]}getZoneWith(i){let s=this;for(;s;){if(s._properties.hasOwnProperty(i))return s;s=s._parent}return null}fork(i){if(!i)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,i)}wrap(i,s){if(typeof i!="function")throw new Error("Expecting function got: "+i);let o=this._zoneDelegate.intercept(this,i,s),y=this;return function(){return y.runGuarded(o,this,arguments,s)}}run(i,s,o,y){b={parent:b,zone:this};try{return this._zoneDelegate.invoke(this,i,s,o,y)}finally{b=b.parent}}runGuarded(i,s=null,o,y){b={parent:b,zone:this};try{try{return this._zoneDelegate.invoke(this,i,s,o,y)}catch(Z){if(this._zoneDelegate.handleError(this,Z))throw Z}}finally{b=b.parent}}runTask(i,s,o){if(i.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(i.zone||J).name+"; Execution: "+this.name+")");let y=i,{type:Z,data:{isPeriodic:L=!1,isRefreshable:se=!1}={}}=i;if(i.state===W&&(Z===G||Z===E))return;let le=i.state!=A;le&&y._transitionTo(A,d);let ue=S;S=y,b={parent:b,zone:this};try{Z==E&&i.data&&!L&&!se&&(i.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,y,s,o)}catch(ne){if(this._zoneDelegate.handleError(this,ne))throw ne}}finally{let ne=i.state;if(ne!==W&&ne!==q)if(Z==G||L||se&&ne===k)le&&y._transitionTo(d,A,k);else{let h=y._zoneDelegates;this._updateTaskCount(y,-1),le&&y._transitionTo(W,A,W),se&&(y._zoneDelegates=h)}b=b.parent,S=ue}}scheduleTask(i){if(i.zone&&i.zone!==this){let o=this;for(;o;){if(o===i.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${i.zone.name}`);o=o.parent}}i._transitionTo(k,W);let s=[];i._zoneDelegates=s,i._zone=this;try{i=this._zoneDelegate.scheduleTask(this,i)}catch(o){throw i._transitionTo(q,k,W),this._zoneDelegate.handleError(this,o),o}return i._zoneDelegates===s&&this._updateTaskCount(i,1),i.state==k&&i._transitionTo(d,k),i}scheduleMicroTask(i,s,o,y){return this.scheduleTask(new T(B,i,s,o,y,void 0))}scheduleMacroTask(i,s,o,y,Z){return this.scheduleTask(new T(E,i,s,o,y,Z))}scheduleEventTask(i,s,o,y,Z){return this.scheduleTask(new T(G,i,s,o,y,Z))}cancelTask(i){if(i.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(i.zone||J).name+"; Execution: "+this.name+")");if(!(i.state!==d&&i.state!==A)){i._transitionTo(H,d,A);try{this._zoneDelegate.cancelTask(this,i)}catch(s){throw i._transitionTo(q,H),this._zoneDelegate.handleError(this,s),s}return this._updateTaskCount(i,-1),i._transitionTo(W,H),i.runCount=-1,i}}_updateTaskCount(i,s){let o=i._zoneDelegates;s==-1&&(i._zoneDelegates=null);for(let y=0;yx.hasTask(s,o),onScheduleTask:(x,i,s,o)=>x.scheduleTask(s,o),onInvokeTask:(x,i,s,o,y,Z)=>x.invokeTask(s,o,y,Z),onCancelTask:(x,i,s,o)=>x.cancelTask(s,o)};class f{get zone(){return this._zone}constructor(i,s,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=i,this._parentDelegate=s,this._forkZS=o&&(o&&o.onFork?o:s._forkZS),this._forkDlgt=o&&(o.onFork?s:s._forkDlgt),this._forkCurrZone=o&&(o.onFork?this._zone:s._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:s._interceptZS),this._interceptDlgt=o&&(o.onIntercept?s:s._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this._zone:s._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:s._invokeZS),this._invokeDlgt=o&&(o.onInvoke?s:s._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this._zone:s._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:s._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?s:s._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this._zone:s._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:s._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?s:s._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this._zone:s._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:s._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?s:s._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this._zone:s._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:s._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?s:s._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this._zone:s._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let y=o&&o.onHasTask,Z=s&&s._hasTaskZS;(y||Z)&&(this._hasTaskZS=y?o:a,this._hasTaskDlgt=s,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,o.onScheduleTask||(this._scheduleTaskZS=a,this._scheduleTaskDlgt=s,this._scheduleTaskCurrZone=this._zone),o.onInvokeTask||(this._invokeTaskZS=a,this._invokeTaskDlgt=s,this._invokeTaskCurrZone=this._zone),o.onCancelTask||(this._cancelTaskZS=a,this._cancelTaskDlgt=s,this._cancelTaskCurrZone=this._zone))}fork(i,s){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,i,s):new n(i,s)}intercept(i,s,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,i,s,o):s}invoke(i,s,o,y,Z){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,i,s,o,y,Z):s.apply(o,y)}handleError(i,s){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,i,s):!0}scheduleTask(i,s){let o=s;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,i,s),o||(o=s);else if(s.scheduleFn)s.scheduleFn(s);else if(s.type==B)V(s);else throw new Error("Task is missing scheduleFn.");return o}invokeTask(i,s,o,y){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,i,s,o,y):s.callback.apply(o,y)}cancelTask(i,s){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,i,s);else{if(!s.cancelFn)throw Error("Task is not cancelable");o=s.cancelFn(s)}return o}hasTask(i,s){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,i,s)}catch(o){this.handleError(i,o)}}_updateTaskCount(i,s){let o=this._taskCounts,y=o[i],Z=o[i]=y+s;if(Z<0)throw new Error("More tasks executed then were scheduled.");if(y==0||Z==0){let L={microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:i};this.hasTask(this._zone,L)}}}class T{constructor(i,s,o,y,Z,L){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=i,this.source=s,this.data=y,this.scheduleFn=Z,this.cancelFn=L,!o)throw new Error("callback is not defined");this.callback=o;let se=this;i===G&&y&&y.useG?this.invoke=T.invokeTask:this.invoke=function(){return T.invokeTask.call(ae,se,this,arguments)}}static invokeTask(i,s,o){i||(i=this),Q++;try{return i.runCount++,i.zone.runTask(i,s,o)}finally{Q==1&&K(),Q--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(W,k)}_transitionTo(i,s,o){if(this._state===s||this._state===o)this._state=i,i==W&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${i}', expecting state '${s}'${o?" or '"+o+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let g=ee("setTimeout"),p=ee("Promise"),N=ee("then"),_=[],w=!1,M;function $(x){if(M||ae[p]&&(M=ae[p].resolve(0)),M){let i=M[N];i||(i=M.then),i.call(M,x)}else ae[g](x,0)}function V(x){Q===0&&_.length===0&&$(K),x&&_.push(x)}function K(){if(!w){for(w=!0;_.length;){let x=_;_=[];for(let i=0;ib,onUnhandledError:F,microtaskDrainDone:F,scheduleMicroTask:V,showUncaughtError:()=>!n[ee("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:F,patchMethod:()=>F,bindArguments:()=>[],patchThen:()=>F,patchMacroTask:()=>F,patchEventPrototype:()=>F,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>F,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>F,wrapWithCurrentZone:()=>F,filterProperties:()=>[],attachOriginToPatched:()=>F,_redefineProperty:()=>F,patchCallbacks:()=>F,nativeScheduleMicroTask:$},b={parent:null,zone:new n(null,null)},S=null,Q=0;function F(){}return c("Zone","Zone"),n}function mt(){let e=globalThis,t=e[ee("forceDuplicateZoneCheck")]===!0;if(e.Zone&&(t||typeof e.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return e.Zone??=Et(),e.Zone}var be=Object.getOwnPropertyDescriptor,xe=Object.defineProperty,Ze=Object.getPrototypeOf,pt=Object.create,yt=Array.prototype.slice,$e="addEventListener",He="removeEventListener",Me=ee($e),Le=ee(He),fe="true",he="false",we=ee("");function Be(e,t){return Zone.current.wrap(e,t)}function Ue(e,t,c,n,a){return Zone.current.scheduleMacroTask(e,t,c,n,a)}var j=ee,Se=typeof window<"u",ye=Se?window:void 0,Y=Se&&ye||globalThis,kt="removeAttribute";function ze(e,t){for(let c=e.length-1;c>=0;c--)typeof e[c]=="function"&&(e[c]=Be(e[c],t+"_"+c));return e}function vt(e,t){let c=e.constructor.name;for(let n=0;n{let p=function(){return g.apply(this,ze(arguments,c+"."+a))};return _e(p,g),p})(f)}}}function rt(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var ot=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Oe=!("nw"in Y)&&typeof Y.process<"u"&&Y.process.toString()==="[object process]",Ve=!Oe&&!ot&&!!(Se&&ye.HTMLElement),st=typeof Y.process<"u"&&Y.process.toString()==="[object process]"&&!ot&&!!(Se&&ye.HTMLElement),Ne={},bt=j("enable_beforeunload"),Ke=function(e){if(e=e||Y.event,!e)return;let t=Ne[e.type];t||(t=Ne[e.type]=j("ON_PROPERTY"+e.type));let c=this||e.target||Y,n=c[t],a;if(Ve&&c===ye&&e.type==="error"){let f=e;a=n&&n.call(this,f.message,f.filename,f.lineno,f.colno,f.error),a===!0&&e.preventDefault()}else a=n&&n.apply(this,arguments),e.type==="beforeunload"&&Y[bt]&&typeof a=="string"?e.returnValue=a:a!=null&&!a&&e.preventDefault();return a};function Je(e,t,c){let n=be(e,t);if(!n&&c&&be(c,t)&&(n={enumerable:!0,configurable:!0}),!n||!n.configurable)return;let a=j("on"+t+"patched");if(e.hasOwnProperty(a)&&e[a])return;delete n.writable,delete n.value;let f=n.get,T=n.set,g=t.slice(2),p=Ne[g];p||(p=Ne[g]=j("ON_PROPERTY"+g)),n.set=function(N){let _=this;if(!_&&e===Y&&(_=Y),!_)return;typeof _[p]=="function"&&_.removeEventListener(g,Ke),T&&T.call(_,null),_[p]=N,typeof N=="function"&&_.addEventListener(g,Ke,!1)},n.get=function(){let N=this;if(!N&&e===Y&&(N=Y),!N)return null;let _=N[p];if(_)return _;if(f){let w=f.call(this);if(w)return n.set.call(this,w),typeof N[kt]=="function"&&N.removeAttribute(t),w}return null},xe(e,t,n),e[a]=!0}function it(e,t,c){if(t)for(let n=0;nfunction(T,g){let p=c(T,g);return p.cbIdx>=0&&typeof g[p.cbIdx]=="function"?Ue(p.name,g[p.cbIdx],p,a):f.apply(T,g)})}function _e(e,t){e[j("OriginalDelegate")]=t}var Qe=!1,Ae=!1;function Pt(){try{let e=ye.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function Rt(){if(Qe)return Ae;Qe=!0;try{let e=ye.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Ae=!0)}catch{}return Ae}function et(e){return typeof e=="function"}function tt(e){return typeof e=="number"}var pe=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){pe=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{pe=!1}var Nt={useG:!0},te={},ct={},at=new RegExp("^"+we+"(\\w+)(true|false)$"),lt=j("propagationStopped");function ut(e,t){let c=(t?t(e):e)+he,n=(t?t(e):e)+fe,a=we+c,f=we+n;te[e]={},te[e][he]=a,te[e][fe]=f}function St(e,t,c,n){let a=n&&n.add||$e,f=n&&n.rm||He,T=n&&n.listeners||"eventListeners",g=n&&n.rmAll||"removeAllListeners",p=j(a),N="."+a+":",_="prependListener",w="."+_+":",M=function(k,d,A){if(k.isRemoved)return;let H=k.callback;typeof H=="object"&&H.handleEvent&&(k.callback=E=>H.handleEvent(E),k.originalDelegate=H);let q;try{k.invoke(k,d,[A])}catch(E){q=E}let B=k.options;if(B&&typeof B=="object"&&B.once){let E=k.originalDelegate?k.originalDelegate:k.callback;d[f].call(d,A.type,E,B)}return q};function $(k,d,A){if(d=d||e.event,!d)return;let H=k||d.target||e,q=H[te[d.type][A?fe:he]];if(q){let B=[];if(q.length===1){let E=M(q[0],H,d);E&&B.push(E)}else{let E=q.slice();for(let G=0;G{throw G})}}}let V=function(k){return $(this,k,!1)},K=function(k){return $(this,k,!0)};function J(k,d){if(!k)return!1;let A=!0;d&&d.useG!==void 0&&(A=d.useG);let H=d&&d.vh,q=!0;d&&d.chkDup!==void 0&&(q=d.chkDup);let B=!1;d&&d.rt!==void 0&&(B=d.rt);let E=k;for(;E&&!E.hasOwnProperty(a);)E=Ze(E);if(!E&&k[a]&&(E=k),!E||E[p])return!1;let G=d&&d.eventNameToString,O={},P=E[p]=E[a],b=E[j(f)]=E[f],S=E[j(T)]=E[T],Q=E[j(g)]=E[g],F;d&&d.prepend&&(F=E[j(d.prepend)]=E[d.prepend]);function X(r,u){return!pe&&typeof r=="object"&&r?!!r.capture:!pe||!u?r:typeof r=="boolean"?{capture:r,passive:!0}:r?typeof r=="object"&&r.passive!==!1?{...r,passive:!0}:r:{passive:!0}}let x=function(r){if(!O.isExisting)return P.call(O.target,O.eventName,O.capture?K:V,O.options)},i=function(r){if(!r.isRemoved){let u=te[r.eventName],v;u&&(v=u[r.capture?fe:he]);let R=v&&r.target[v];if(R){for(let m=0;mre.zone.cancelTask(re);r.call(ge,"abort",ce,{once:!0}),re.removeAbortListener=()=>ge.removeEventListener("abort",ce)}if(O.target=null,ke&&(ke.taskData=null),Fe&&(O.options.once=!0),!pe&&typeof re.options=="boolean"||(re.options=ie),re.target=I,re.capture=Ie,re.eventName=D,z&&(re.originalDelegate=U),C?Ee.unshift(re):Ee.push(re),m)return I}};return E[a]=l(P,N,Z,L,B),F&&(E[_]=l(F,w,o,L,B,!0)),E[f]=function(){let r=this||e,u=arguments[0];d&&d.transferEventName&&(u=d.transferEventName(u));let v=arguments[2],R=v?typeof v=="boolean"?!0:v.capture:!1,m=arguments[1];if(!m)return b.apply(this,arguments);if(H&&!H(b,m,r,arguments))return;let C=te[u],I;C&&(I=C[R?fe:he]);let D=I&&r[I];if(D)for(let U=0;Ufunction(a,f){a[lt]=!0,n&&n.apply(a,f)})}function Ct(e,t){t.patchMethod(e,"queueMicrotask",c=>function(n,a){Zone.current.scheduleMicroTask("queueMicrotask",a[0])})}var Re=j("zoneTask");function me(e,t,c,n){let a=null,f=null;t+=n,c+=n;let T={};function g(N){let _=N.data;_.args[0]=function(){return N.invoke.apply(this,arguments)};let w=a.apply(e,_.args);return tt(w)?_.handleId=w:(_.handle=w,_.isRefreshable=et(w.refresh)),N}function p(N){let{handle:_,handleId:w}=N.data;return f.call(e,_??w)}a=de(e,t,N=>function(_,w){if(et(w[0])){let M={isRefreshable:!1,isPeriodic:n==="Interval",delay:n==="Timeout"||n==="Interval"?w[1]||0:void 0,args:w},$=w[0];w[0]=function(){try{return $.apply(this,arguments)}finally{let{handle:A,handleId:H,isPeriodic:q,isRefreshable:B}=M;!q&&!B&&(H?delete T[H]:A&&(A[Re]=null))}};let V=Ue(t,w[0],M,g,p);if(!V)return V;let{handleId:K,handle:J,isRefreshable:W,isPeriodic:k}=V.data;if(K)T[K]=V;else if(J&&(J[Re]=V,W&&!k)){let d=J.refresh;J.refresh=function(){let{zone:A,state:H}=V;return H==="notScheduled"?(V._state="scheduled",A._updateTaskCount(V,1)):H==="running"&&(V._state="scheduling"),d.call(this)}}return J??K??V}else return N.apply(e,w)}),f=de(e,c,N=>function(_,w){let M=w[0],$;tt(M)?($=T[M],delete T[M]):($=M?.[Re],$?M[Re]=null:$=M),$?.type?$.cancelFn&&$.zone.cancelTask($):N.apply(e,w)})}function It(e,t){let{isBrowser:c,isMix:n}=t.getGlobalObjects();if(!c&&!n||!e.customElements||!("customElements"in e))return;let a=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];t.patchCallbacks(t,e.customElements,"customElements","define",a)}function Dt(e,t){if(Zone[t.symbol("patchEventTarget")])return;let{eventNames:c,zoneSymbolEventNames:n,TRUE_STR:a,FALSE_STR:f,ZONE_SYMBOL_PREFIX:T}=t.getGlobalObjects();for(let p=0;pf.target===e);if(!n||n.length===0)return t;let a=n[0].ignoreProperties;return t.filter(f=>a.indexOf(f)===-1)}function nt(e,t,c,n){if(!e)return;let a=ht(e,t,c);it(e,a,n)}function je(e){return Object.getOwnPropertyNames(e).filter(t=>t.startsWith("on")&&t.length>2).map(t=>t.substring(2))}function Lt(e,t){if(Oe&&!st||Zone[e.symbol("patchEvents")])return;let c=t.__Zone_ignore_on_properties,n=[];if(Ve){let a=window;n=n.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let f=Pt()?[{target:a,ignoreProperties:["error"]}]:[];nt(a,je(a),c&&c.concat(f),Ze(a))}n=n.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let a=0;a{let c=t[e.__symbol__("legacyPatch")];c&&c()}),e.__load_patch("timers",t=>{let c="set",n="clear";me(t,c,n,"Timeout"),me(t,c,n,"Interval"),me(t,c,n,"Immediate")}),e.__load_patch("requestAnimationFrame",t=>{me(t,"request","cancel","AnimationFrame"),me(t,"mozRequest","mozCancel","AnimationFrame"),me(t,"webkitRequest","webkitCancel","AnimationFrame")}),e.__load_patch("blocking",(t,c)=>{let n=["alert","prompt","confirm"];for(let a=0;afunction(N,_){return c.current.run(T,t,_,p)})}}),e.__load_patch("EventTarget",(t,c,n)=>{Mt(t,n),Dt(t,n);let a=t.XMLHttpRequestEventTarget;a&&a.prototype&&n.patchEventTarget(t,n,[a.prototype])}),e.__load_patch("MutationObserver",(t,c,n)=>{ve("MutationObserver"),ve("WebKitMutationObserver")}),e.__load_patch("IntersectionObserver",(t,c,n)=>{ve("IntersectionObserver")}),e.__load_patch("FileReader",(t,c,n)=>{ve("FileReader")}),e.__load_patch("on_property",(t,c,n)=>{Lt(n,t)}),e.__load_patch("customElements",(t,c,n)=>{It(t,n)}),e.__load_patch("XHR",(t,c)=>{N(t);let n=j("xhrTask"),a=j("xhrSync"),f=j("xhrListener"),T=j("xhrScheduled"),g=j("xhrURL"),p=j("xhrErrorBeforeScheduled");function N(_){let w=_.XMLHttpRequest;if(!w)return;let M=w.prototype;function $(P){return P[n]}let V=M[Me],K=M[Le];if(!V){let P=_.XMLHttpRequestEventTarget;if(P){let b=P.prototype;V=b[Me],K=b[Le]}}let J="readystatechange",W="scheduled";function k(P){let b=P.data,S=b.target;S[T]=!1,S[p]=!1;let Q=S[f];V||(V=S[Me],K=S[Le]),Q&&K.call(S,J,Q);let F=S[f]=()=>{if(S.readyState===S.DONE)if(!b.aborted&&S[T]&&P.state===W){let x=S[c.__symbol__("loadfalse")];if(S.status!==0&&x&&x.length>0){let i=P.invoke;P.invoke=function(){let s=S[c.__symbol__("loadfalse")];for(let o=0;ofunction(P,b){return P[a]=b[2]==!1,P[g]=b[1],H.apply(P,b)}),q="XMLHttpRequest.send",B=j("fetchTaskAborting"),E=j("fetchTaskScheduling"),G=de(M,"send",()=>function(P,b){if(c.current[E]===!0||P[a])return G.apply(P,b);{let S={target:P,url:P[g],isPeriodic:!1,args:b,aborted:!1},Q=Ue(q,d,S,k,A);P&&P[p]===!0&&!S.aborted&&Q.state===W&&Q.invoke()}}),O=de(M,"abort",()=>function(P,b){let S=$(P);if(S&&typeof S.type=="string"){if(S.cancelFn==null||S.data&&S.data.aborted)return;S.zone.cancelTask(S)}else if(c.current[B]===!0)return O.apply(P,b)})}}),e.__load_patch("geolocation",t=>{t.navigator&&t.navigator.geolocation&&vt(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(t,c)=>{function n(a){return function(f){ft(t,a).forEach(g=>{let p=t.PromiseRejectionEvent;if(p){let N=new p(a,{promise:f.promise,reason:f.rejection});g.invoke(N)}})}}t.PromiseRejectionEvent&&(c[j("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),c[j("rejectionHandledHandler")]=n("rejectionhandled"))}),e.__load_patch("queueMicrotask",(t,c,n)=>{Ct(t,n)})}function jt(e){e.__load_patch("ZoneAwarePromise",(t,c,n)=>{let a=Object.getOwnPropertyDescriptor,f=Object.defineProperty;function T(h){if(h&&h.toString===Object.prototype.toString){let l=h.constructor&&h.constructor.name;return(l||"")+": "+JSON.stringify(h)}return h?h.toString():Object.prototype.toString.call(h)}let g=n.symbol,p=[],N=t[g("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,_=g("Promise"),w=g("then"),M="__creationTrace__";n.onUnhandledError=h=>{if(n.showUncaughtError()){let l=h&&h.rejection;l?console.error("Unhandled Promise rejection:",l instanceof Error?l.message:l,"; Zone:",h.zone.name,"; Task:",h.task&&h.task.source,"; Value:",l,l instanceof Error?l.stack:void 0):console.error(h)}},n.microtaskDrainDone=()=>{for(;p.length;){let h=p.shift();try{h.zone.runGuarded(()=>{throw h.throwOriginal?h.rejection:h})}catch(l){V(l)}}};let $=g("unhandledPromiseRejectionHandler");function V(h){n.onUnhandledError(h);try{let l=c[$];typeof l=="function"&&l.call(this,h)}catch{}}function K(h){return h&&h.then}function J(h){return h}function W(h){return L.reject(h)}let k=g("state"),d=g("value"),A=g("finally"),H=g("parentPromiseValue"),q=g("parentPromiseState"),B="Promise.then",E=null,G=!0,O=!1,P=0;function b(h,l){return r=>{try{X(h,l,r)}catch(u){X(h,!1,u)}}}let S=function(){let h=!1;return function(r){return function(){h||(h=!0,r.apply(null,arguments))}}},Q="Promise resolved with itself",F=g("currentTaskTrace");function X(h,l,r){let u=S();if(h===r)throw new TypeError(Q);if(h[k]===E){let v=null;try{(typeof r=="object"||typeof r=="function")&&(v=r&&r.then)}catch(R){return u(()=>{X(h,!1,R)})(),h}if(l!==O&&r instanceof L&&r.hasOwnProperty(k)&&r.hasOwnProperty(d)&&r[k]!==E)i(r),X(h,r[k],r[d]);else if(l!==O&&typeof v=="function")try{v.call(r,u(b(h,l)),u(b(h,!1)))}catch(R){u(()=>{X(h,!1,R)})()}else{h[k]=l;let R=h[d];if(h[d]=r,h[A]===A&&l===G&&(h[k]=h[q],h[d]=h[H]),l===O&&r instanceof Error){let m=c.currentTask&&c.currentTask.data&&c.currentTask.data[M];m&&f(r,F,{configurable:!0,enumerable:!1,writable:!0,value:m})}for(let m=0;m{try{let C=h[d],I=!!r&&A===r[A];I&&(r[H]=C,r[q]=R);let D=l.run(m,void 0,I&&m!==W&&m!==J?[]:[C]);X(r,!0,D)}catch(C){X(r,!1,C)}},r)}let o="function ZoneAwarePromise() { [native code] }",y=function(){},Z=t.AggregateError;class L{static toString(){return o}static resolve(l){return l instanceof L?l:X(new this(null),G,l)}static reject(l){return X(new this(null),O,l)}static withResolvers(){let l={};return l.promise=new L((r,u)=>{l.resolve=r,l.reject=u}),l}static any(l){if(!l||typeof l[Symbol.iterator]!="function")return Promise.reject(new Z([],"All promises were rejected"));let r=[],u=0;try{for(let m of l)u++,r.push(L.resolve(m))}catch{return Promise.reject(new Z([],"All promises were rejected"))}if(u===0)return Promise.reject(new Z([],"All promises were rejected"));let v=!1,R=[];return new L((m,C)=>{for(let I=0;I{v||(v=!0,m(D))},D=>{R.push(D),u--,u===0&&(v=!0,C(new Z(R,"All promises were rejected")))})})}static race(l){let r,u,v=new this((C,I)=>{r=C,u=I});function R(C){r(C)}function m(C){u(C)}for(let C of l)K(C)||(C=this.resolve(C)),C.then(R,m);return v}static all(l){return L.allWithCallback(l)}static allSettled(l){return(this&&this.prototype instanceof L?this:L).allWithCallback(l,{thenCallback:u=>({status:"fulfilled",value:u}),errorCallback:u=>({status:"rejected",reason:u})})}static allWithCallback(l,r){let u,v,R=new this((D,U)=>{u=D,v=U}),m=2,C=0,I=[];for(let D of l){K(D)||(D=this.resolve(D));let U=C;try{D.then(z=>{I[U]=r?r.thenCallback(z):z,m--,m===0&&u(I)},z=>{r?(I[U]=r.errorCallback(z),m--,m===0&&u(I)):v(z)})}catch(z){v(z)}m++,C++}return m-=2,m===0&&u(I),R}constructor(l){let r=this;if(!(r instanceof L))throw new Error("Must be an instanceof Promise.");r[k]=E,r[d]=[];try{let u=S();l&&l(u(b(r,G)),u(b(r,O)))}catch(u){X(r,!1,u)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return L}then(l,r){let u=this.constructor?.[Symbol.species];(!u||typeof u!="function")&&(u=this.constructor||L);let v=new u(y),R=c.current;return this[k]==E?this[d].push(R,v,l,r):s(this,R,v,l,r),v}catch(l){return this.then(null,l)}finally(l){let r=this.constructor?.[Symbol.species];(!r||typeof r!="function")&&(r=L);let u=new r(y);u[A]=A;let v=c.current;return this[k]==E?this[d].push(v,u,l,l):s(this,v,u,l,l),u}}L.resolve=L.resolve,L.reject=L.reject,L.race=L.race,L.all=L.all;let se=t[_]=t.Promise;t.Promise=L;let le=g("thenPatched");function ue(h){let l=h.prototype,r=a(l,"then");if(r&&(r.writable===!1||!r.configurable))return;let u=l.then;l[w]=u,h.prototype.then=function(v,R){return new L((C,I)=>{u.call(this,C,I)}).then(v,R)},h[le]=!0}n.patchThen=ue;function ne(h){return function(l,r){let u=h.apply(l,r);if(u instanceof L)return u;let v=u.constructor;return v[le]||ue(v),u}}return se&&(ue(se),de(t,"fetch",h=>ne(h))),Promise[c.__symbol__("uncaughtPromiseErrors")]=p,L})}function xt(e){e.__load_patch("toString",t=>{let c=Function.prototype.toString,n=j("OriginalDelegate"),a=j("Promise"),f=j("Error"),T=function(){if(typeof this=="function"){let _=this[n];if(_)return typeof _=="function"?c.call(_):Object.prototype.toString.call(_);if(this===Promise){let w=t[a];if(w)return c.call(w)}if(this===Error){let w=t[f];if(w)return c.call(w)}}return c.call(this)};T[n]=c,Function.prototype.toString=T;let g=Object.prototype.toString,p="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?p:g.call(this)}})}function Zt(e,t,c,n,a){let f=Zone.__symbol__(n);if(t[f])return;let T=t[f]=t[n];t[n]=function(g,p,N){return p&&p.prototype&&a.forEach(function(_){let w=`${c}.${n}::`+_,M=p.prototype;try{if(M.hasOwnProperty(_)){let $=e.ObjectGetOwnPropertyDescriptor(M,_);$&&$.value?($.value=e.wrapWithCurrentZone($.value,w),e._redefineProperty(p.prototype,_,$)):M[_]&&(M[_]=e.wrapWithCurrentZone(M[_],w))}else M[_]&&(M[_]=e.wrapWithCurrentZone(M[_],w))}catch{}}),T.call(t,g,p,N)},e.attachOriginToPatched(t[n],T)}function $t(e){e.__load_patch("util",(t,c,n)=>{let a=je(t);n.patchOnProperties=it,n.patchMethod=de,n.bindArguments=ze,n.patchMacroTask=wt;let f=c.__symbol__("BLACK_LISTED_EVENTS"),T=c.__symbol__("UNPATCHED_EVENTS");t[T]&&(t[f]=t[T]),t[f]&&(c[f]=c[T]=t[f]),n.patchEventPrototype=Ot,n.patchEventTarget=St,n.isIEOrEdge=Rt,n.ObjectDefineProperty=xe,n.ObjectGetOwnPropertyDescriptor=be,n.ObjectCreate=pt,n.ArraySlice=yt,n.patchClass=ve,n.wrapWithCurrentZone=Be,n.filterProperties=ht,n.attachOriginToPatched=_e,n._redefineProperty=Object.defineProperty,n.patchCallbacks=Zt,n.getGlobalObjects=()=>({globalSources:ct,zoneSymbolEventNames:te,eventNames:a,isBrowser:Ve,isMix:st,isNode:Oe,TRUE_STR:fe,FALSE_STR:he,ZONE_SYMBOL_PREFIX:we,ADD_EVENT_LISTENER_STR:$e,REMOVE_EVENT_LISTENER_STR:He})})}function Ht(e){jt(e),xt(e),$t(e)}var dt=mt();Ht(dt);At(dt);var Bt=":";var Ge=class{visitText(t,c){return t.value}visitContainer(t,c){return`[${t.children.map(n=>n.visit(this)).join(", ")}]`}visitIcu(t,c){let n=Object.keys(t.cases).map(a=>`${a} {${t.cases[a].visit(this)}}`);return`{${t.expression}, ${t.type}, ${n.join(", ")}}`}visitTagPlaceholder(t,c){return t.isVoid?``:`${t.children.map(n=>n.visit(this)).join(", ")}`}visitPlaceholder(t,c){return t.value?`${t.value}`:``}visitIcuPlaceholder(t,c){return`${t.value.visit(this)}`}visitBlockPlaceholder(t,c){return`${t.children.map(n=>n.visit(this)).join(", ")}`}},Vt=new Ge;var _t;(function(e){e[e.Little=0]="Little",e[e.Big=1]="Big"})(_t||(_t={}));function Ut(e,t){for(let c=1,n=1;c*{display:flex;flex:1;flex-direction:column}.cdk-overlay-container .panel .isPanel{padding:3px}.cdk-overlay-container .panel .isPanel>div>div>div.mat-headline-5.no-margin{padding-top:40px}.cdk-overlay-container .panel .isPanel.isFrontPanel>div>div>div.mat-headline-5.no-margin,.cdk-overlay-container .panel .isPanel.isFrontPanel natural-detail-header>div{padding-right:20px;padding-left:20px}.cdk-overlay-container .panel .isPanel .panelBody{padding:20px}.cdk-overlay-container .panel .isPanel:not(.isFrontPanel){position:relative;cursor:pointer}.cdk-overlay-container .panel .isPanel:not(.isFrontPanel) .panelBody{display:none!important}.cdk-overlay-container .panel .isPanel:not(.isFrontPanel):hover:before{display:block;position:absolute;inset:0;background:#0003;content:""}.mat-mdc-table .mdc-button__label{white-space:nowrap}.mdc-snackbar{margin-top:75px!important}.mat-h1,.mat-headline-5,.mat-typography .mat-h1,.mat-typography .mat-headline-5,.mat-typography h1{font:400 24px/32px Roboto,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h2,.mat-headline-6,.mat-typography .mat-h2,.mat-typography .mat-headline-6,.mat-typography h2{font:500 20px/32px Roboto,sans-serif;letter-spacing:.0125em;margin:0 0 16px}.mat-h3,.mat-subtitle-1,.mat-typography .mat-h3,.mat-typography .mat-subtitle-1,.mat-typography h3{font:400 16px/28px Roboto,sans-serif;letter-spacing:.009375em;margin:0 0 16px}.mat-h4,.mat-body-1,.mat-typography .mat-h4,.mat-typography .mat-body-1,.mat-typography h4{font:400 16px/24px Roboto,sans-serif;letter-spacing:.03125em;margin:0 0 16px}.mat-h5,.mat-typography .mat-h5,.mat-typography h5{font:400 11.62px/20px Roboto,sans-serif;margin:0 0 12px}.mat-h6,.mat-typography .mat-h6,.mat-typography h6{font:400 9.38px/20px Roboto,sans-serif;margin:0 0 12px}.mat-body-strong,.mat-subtitle-2,.mat-typography .mat-body-strong,.mat-typography .mat-subtitle-2{font:500 14px/22px Roboto,sans-serif;letter-spacing:.0071428571em}.mat-body,.mat-body-2,.mat-typography .mat-body,.mat-typography .mat-body-2,.mat-typography{font:400 14px/20px Roboto,sans-serif;letter-spacing:.0178571429em}.mat-body p,.mat-body-2 p,.mat-typography .mat-body p,.mat-typography .mat-body-2 p,.mat-typography p{margin:0 0 12px}.mat-small,.mat-caption,.mat-typography .mat-small,.mat-typography .mat-caption{font:400 12px/20px Roboto,sans-serif;letter-spacing:.0333333333em}.mat-headline-1,.mat-typography .mat-headline-1{font:300 96px/96px Roboto,sans-serif;letter-spacing:-.015625em;margin:0 0 56px}.mat-headline-2,.mat-typography .mat-headline-2{font:300 60px/60px Roboto,sans-serif;letter-spacing:-.0083333333em;margin:0 0 64px}.mat-headline-3,.mat-typography .mat-headline-3{font:400 48px/50px Roboto,sans-serif;letter-spacing:normal;margin:0 0 64px}.mat-headline-4,.mat-typography .mat-headline-4{font:400 34px/40px Roboto,sans-serif;letter-spacing:.0073529412em;margin:0 0 64px}.mat-mdc-tab-header{--mat-tab-header-label-text-font: Roboto, sans-serif;--mat-tab-header-label-text-size: 14px;--mat-tab-header-label-text-tracking: .0892857143em;--mat-tab-header-label-text-line-height: 36px;--mat-tab-header-label-text-weight: 500}html{--mdc-text-button-label-text-font: Roboto, sans-serif;--mdc-text-button-label-text-size: 14px;--mdc-text-button-label-text-tracking: .0892857143em;--mdc-text-button-label-text-weight: 500;--mdc-text-button-label-text-transform: none;--mdc-filled-button-label-text-font: Roboto, sans-serif;--mdc-filled-button-label-text-size: 14px;--mdc-filled-button-label-text-tracking: .0892857143em;--mdc-filled-button-label-text-weight: 500;--mdc-filled-button-label-text-transform: none;--mdc-protected-button-label-text-font: Roboto, sans-serif;--mdc-protected-button-label-text-size: 14px;--mdc-protected-button-label-text-tracking: .0892857143em;--mdc-protected-button-label-text-weight: 500;--mdc-protected-button-label-text-transform: none;--mdc-outlined-button-label-text-font: Roboto, sans-serif;--mdc-outlined-button-label-text-size: 14px;--mdc-outlined-button-label-text-tracking: .0892857143em;--mdc-outlined-button-label-text-weight: 500;--mdc-outlined-button-label-text-transform: none}html{--mdc-extended-fab-label-text-font: Roboto, sans-serif;--mdc-extended-fab-label-text-size: 14px;--mdc-extended-fab-label-text-tracking: .0892857143em;--mdc-extended-fab-label-text-weight: 500}.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale3d(0,0,0);background-color:var(--mat-ripple-color, rgba(0, 0, 0, .1))}.cdk-high-contrast-active .mat-ripple-element,.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}.cdk-overlay-dark-backdrop{background:#00000052}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@keyframes cdk-text-field-autofill-start{}@keyframes cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator{position:relative}.mat-focus-indicator:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border:var(--mat-focus-indicator-border-width, 3px) var(--mat-focus-indicator-border-style, solid) var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus:before{content:""}.cdk-high-contrast-active{--mat-focus-indicator-display: block}.mat-mdc-focus-indicator{position:relative}.mat-mdc-focus-indicator:before{inset:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-mdc-focus-indicator-display, none);border:var(--mat-mdc-focus-indicator-border-width, 3px) var(--mat-mdc-focus-indicator-border-style, solid) var(--mat-mdc-focus-indicator-border-color, transparent);border-radius:var(--mat-mdc-focus-indicator-border-radius, 4px)}.mat-mdc-focus-indicator:focus:before{content:""}.cdk-high-contrast-active{--mat-mdc-focus-indicator-display: block}.mat-app-background{background-color:var(--mat-app-background-color, var(--mat-app-background, transparent));color:var(--mat-app-text-color, var(--mat-app-on-background, inherit))}.mat-elevation-z0,.mat-mdc-elevation-specific.mat-elevation-z0{box-shadow:var(--mat-app-elevation-shadow-level-0, none)}.mat-elevation-z1,.mat-mdc-elevation-specific.mat-elevation-z1{box-shadow:var(--mat-app-elevation-shadow-level-1, none)}.mat-elevation-z2,.mat-mdc-elevation-specific.mat-elevation-z2{box-shadow:var(--mat-app-elevation-shadow-level-2, none)}.mat-elevation-z3,.mat-mdc-elevation-specific.mat-elevation-z3{box-shadow:var(--mat-app-elevation-shadow-level-3, none)}.mat-elevation-z4,.mat-mdc-elevation-specific.mat-elevation-z4{box-shadow:var(--mat-app-elevation-shadow-level-4, none)}.mat-elevation-z5,.mat-mdc-elevation-specific.mat-elevation-z5{box-shadow:var(--mat-app-elevation-shadow-level-5, none)}.mat-elevation-z6,.mat-mdc-elevation-specific.mat-elevation-z6{box-shadow:var(--mat-app-elevation-shadow-level-6, none)}.mat-elevation-z7,.mat-mdc-elevation-specific.mat-elevation-z7{box-shadow:var(--mat-app-elevation-shadow-level-7, none)}.mat-elevation-z8,.mat-mdc-elevation-specific.mat-elevation-z8{box-shadow:var(--mat-app-elevation-shadow-level-8, none)}.mat-elevation-z9,.mat-mdc-elevation-specific.mat-elevation-z9{box-shadow:var(--mat-app-elevation-shadow-level-9, none)}.mat-elevation-z10,.mat-mdc-elevation-specific.mat-elevation-z10{box-shadow:var(--mat-app-elevation-shadow-level-10, none)}.mat-elevation-z11,.mat-mdc-elevation-specific.mat-elevation-z11{box-shadow:var(--mat-app-elevation-shadow-level-11, none)}.mat-elevation-z12,.mat-mdc-elevation-specific.mat-elevation-z12{box-shadow:var(--mat-app-elevation-shadow-level-12, none)}.mat-elevation-z13,.mat-mdc-elevation-specific.mat-elevation-z13{box-shadow:var(--mat-app-elevation-shadow-level-13, none)}.mat-elevation-z14,.mat-mdc-elevation-specific.mat-elevation-z14{box-shadow:var(--mat-app-elevation-shadow-level-14, none)}.mat-elevation-z15,.mat-mdc-elevation-specific.mat-elevation-z15{box-shadow:var(--mat-app-elevation-shadow-level-15, none)}.mat-elevation-z16,.mat-mdc-elevation-specific.mat-elevation-z16{box-shadow:var(--mat-app-elevation-shadow-level-16, none)}.mat-elevation-z17,.mat-mdc-elevation-specific.mat-elevation-z17{box-shadow:var(--mat-app-elevation-shadow-level-17, none)}.mat-elevation-z18,.mat-mdc-elevation-specific.mat-elevation-z18{box-shadow:var(--mat-app-elevation-shadow-level-18, none)}.mat-elevation-z19,.mat-mdc-elevation-specific.mat-elevation-z19{box-shadow:var(--mat-app-elevation-shadow-level-19, none)}.mat-elevation-z20,.mat-mdc-elevation-specific.mat-elevation-z20{box-shadow:var(--mat-app-elevation-shadow-level-20, none)}.mat-elevation-z21,.mat-mdc-elevation-specific.mat-elevation-z21{box-shadow:var(--mat-app-elevation-shadow-level-21, none)}.mat-elevation-z22,.mat-mdc-elevation-specific.mat-elevation-z22{box-shadow:var(--mat-app-elevation-shadow-level-22, none)}.mat-elevation-z23,.mat-mdc-elevation-specific.mat-elevation-z23{box-shadow:var(--mat-app-elevation-shadow-level-23, none)}.mat-elevation-z24,.mat-mdc-elevation-specific.mat-elevation-z24{box-shadow:var(--mat-app-elevation-shadow-level-24, none)}.mat-theme-loaded-marker{display:none}html{--mat-ripple-color: rgba(0, 0, 0, .1)}html{--mat-option-selected-state-label-text-color: #2a7ae2;--mat-option-label-text-color: rgba(0, 0, 0, .87);--mat-option-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-option-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-option-selected-state-layer-color: rgba(0, 0, 0, .04)}.mat-accent{--mat-option-selected-state-label-text-color: #b72ae2;--mat-option-label-text-color: rgba(0, 0, 0, .87);--mat-option-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-option-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-option-selected-state-layer-color: rgba(0, 0, 0, .04)}.mat-warn{--mat-option-selected-state-label-text-color: #f44336;--mat-option-label-text-color: rgba(0, 0, 0, .87);--mat-option-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-option-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-option-selected-state-layer-color: rgba(0, 0, 0, .04)}html{--mat-optgroup-label-text-color: rgba(0, 0, 0, .87)}.mat-primary{--mat-full-pseudo-checkbox-selected-icon-color: #2a7ae2;--mat-full-pseudo-checkbox-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mat-full-pseudo-checkbox-disabled-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-disabled-unselected-icon-color: #b0b0b0;--mat-full-pseudo-checkbox-disabled-selected-icon-color: #b0b0b0;--mat-minimal-pseudo-checkbox-selected-checkmark-color: #2a7ae2;--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: #b0b0b0}html,.mat-accent{--mat-full-pseudo-checkbox-selected-icon-color: #b72ae2;--mat-full-pseudo-checkbox-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mat-full-pseudo-checkbox-disabled-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-disabled-unselected-icon-color: #b0b0b0;--mat-full-pseudo-checkbox-disabled-selected-icon-color: #b0b0b0;--mat-minimal-pseudo-checkbox-selected-checkmark-color: #b72ae2;--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: #b0b0b0}.mat-warn{--mat-full-pseudo-checkbox-selected-icon-color: #f44336;--mat-full-pseudo-checkbox-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mat-full-pseudo-checkbox-disabled-selected-checkmark-color: #fafafa;--mat-full-pseudo-checkbox-disabled-unselected-icon-color: #b0b0b0;--mat-full-pseudo-checkbox-disabled-selected-icon-color: #b0b0b0;--mat-minimal-pseudo-checkbox-selected-checkmark-color: #f44336;--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: #b0b0b0}html{--mat-app-background-color: #fafafa;--mat-app-text-color: rgba(0, 0, 0, .87);--mat-app-elevation-shadow-level-0: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-1: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-2: 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-3: 0px 3px 3px -2px rgba(0, 0, 0, .2), 0px 3px 4px 0px rgba(0, 0, 0, .14), 0px 1px 8px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-4: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-5: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 5px 8px 0px rgba(0, 0, 0, .14), 0px 1px 14px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-6: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-7: 0px 4px 5px -2px rgba(0, 0, 0, .2), 0px 7px 10px 1px rgba(0, 0, 0, .14), 0px 2px 16px 1px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-8: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-9: 0px 5px 6px -3px rgba(0, 0, 0, .2), 0px 9px 12px 1px rgba(0, 0, 0, .14), 0px 3px 16px 2px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-10: 0px 6px 6px -3px rgba(0, 0, 0, .2), 0px 10px 14px 1px rgba(0, 0, 0, .14), 0px 4px 18px 3px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-11: 0px 6px 7px -4px rgba(0, 0, 0, .2), 0px 11px 15px 1px rgba(0, 0, 0, .14), 0px 4px 20px 3px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-12: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-13: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 13px 19px 2px rgba(0, 0, 0, .14), 0px 5px 24px 4px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-14: 0px 7px 9px -4px rgba(0, 0, 0, .2), 0px 14px 21px 2px rgba(0, 0, 0, .14), 0px 5px 26px 4px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-15: 0px 8px 9px -5px rgba(0, 0, 0, .2), 0px 15px 22px 2px rgba(0, 0, 0, .14), 0px 6px 28px 5px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-16: 0px 8px 10px -5px rgba(0, 0, 0, .2), 0px 16px 24px 2px rgba(0, 0, 0, .14), 0px 6px 30px 5px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-17: 0px 8px 11px -5px rgba(0, 0, 0, .2), 0px 17px 26px 2px rgba(0, 0, 0, .14), 0px 6px 32px 5px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-18: 0px 9px 11px -5px rgba(0, 0, 0, .2), 0px 18px 28px 2px rgba(0, 0, 0, .14), 0px 7px 34px 6px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-19: 0px 9px 12px -6px rgba(0, 0, 0, .2), 0px 19px 29px 2px rgba(0, 0, 0, .14), 0px 7px 36px 6px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-20: 0px 10px 13px -6px rgba(0, 0, 0, .2), 0px 20px 31px 3px rgba(0, 0, 0, .14), 0px 8px 38px 7px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-21: 0px 10px 13px -6px rgba(0, 0, 0, .2), 0px 21px 33px 3px rgba(0, 0, 0, .14), 0px 8px 40px 7px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-22: 0px 10px 14px -6px rgba(0, 0, 0, .2), 0px 22px 35px 3px rgba(0, 0, 0, .14), 0px 8px 42px 7px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-23: 0px 11px 14px -7px rgba(0, 0, 0, .2), 0px 23px 36px 3px rgba(0, 0, 0, .14), 0px 9px 44px 8px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-24: 0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12)}html{--mat-option-label-text-font: Roboto, sans-serif;--mat-option-label-text-line-height: 24px;--mat-option-label-text-size: 16px;--mat-option-label-text-tracking: .03125em;--mat-option-label-text-weight: 400}html{--mat-optgroup-label-text-font: Roboto, sans-serif;--mat-optgroup-label-text-line-height: 24px;--mat-optgroup-label-text-size: 16px;--mat-optgroup-label-text-tracking: .03125em;--mat-optgroup-label-text-weight: 400}html{--mdc-elevated-card-container-shape: 4px;--mdc-outlined-card-container-shape: 4px;--mdc-outlined-card-outline-width: 1px}html{--mdc-elevated-card-container-color: white;--mdc-elevated-card-container-elevation: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mdc-outlined-card-container-color: white;--mdc-outlined-card-outline-color: rgba(0, 0, 0, .12);--mdc-outlined-card-container-elevation: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-card-subtitle-text-color: rgba(0, 0, 0, .54)}html{--mat-card-title-text-font: Roboto, sans-serif;--mat-card-title-text-line-height: 32px;--mat-card-title-text-size: 20px;--mat-card-title-text-tracking: .0125em;--mat-card-title-text-weight: 500;--mat-card-subtitle-text-font: Roboto, sans-serif;--mat-card-subtitle-text-line-height: 22px;--mat-card-subtitle-text-size: 14px;--mat-card-subtitle-text-tracking: .0071428571em;--mat-card-subtitle-text-weight: 500}html{--mdc-linear-progress-active-indicator-height: 4px;--mdc-linear-progress-track-height: 4px;--mdc-linear-progress-track-shape: 0}.mat-mdc-progress-bar{--mdc-linear-progress-active-indicator-color: #2a7ae2;--mdc-linear-progress-track-color: rgba(42, 122, 226, .25)}.mat-mdc-progress-bar.mat-accent{--mdc-linear-progress-active-indicator-color: #b72ae2;--mdc-linear-progress-track-color: rgba(183, 42, 226, .25)}.mat-mdc-progress-bar.mat-warn{--mdc-linear-progress-active-indicator-color: #f44336;--mdc-linear-progress-track-color: rgba(244, 67, 54, .25)}html{--mdc-plain-tooltip-container-shape: 4px;--mdc-plain-tooltip-supporting-text-line-height: 16px}html{--mdc-plain-tooltip-container-color: #616161;--mdc-plain-tooltip-supporting-text-color: #fff}html{--mdc-plain-tooltip-supporting-text-font: Roboto, sans-serif;--mdc-plain-tooltip-supporting-text-size: 12px;--mdc-plain-tooltip-supporting-text-weight: 400;--mdc-plain-tooltip-supporting-text-tracking: .0333333333em}html{--mdc-filled-text-field-active-indicator-height: 1px;--mdc-filled-text-field-focus-active-indicator-height: 2px;--mdc-filled-text-field-container-shape: 4px;--mdc-outlined-text-field-outline-width: 1px;--mdc-outlined-text-field-focus-outline-width: 2px;--mdc-outlined-text-field-container-shape: 4px}html{--mdc-filled-text-field-caret-color: #2a7ae2;--mdc-filled-text-field-focus-active-indicator-color: #2a7ae2;--mdc-filled-text-field-focus-label-text-color: rgba(42, 122, 226, .87);--mdc-filled-text-field-container-color: whitesmoke;--mdc-filled-text-field-disabled-container-color: #fafafa;--mdc-filled-text-field-label-text-color: rgba(0, 0, 0, .6);--mdc-filled-text-field-hover-label-text-color: rgba(0, 0, 0, .6);--mdc-filled-text-field-disabled-label-text-color: rgba(0, 0, 0, .38);--mdc-filled-text-field-input-text-color: rgba(0, 0, 0, .87);--mdc-filled-text-field-disabled-input-text-color: rgba(0, 0, 0, .38);--mdc-filled-text-field-input-text-placeholder-color: rgba(0, 0, 0, .6);--mdc-filled-text-field-error-hover-label-text-color: #f44336;--mdc-filled-text-field-error-focus-label-text-color: #f44336;--mdc-filled-text-field-error-label-text-color: #f44336;--mdc-filled-text-field-error-caret-color: #f44336;--mdc-filled-text-field-active-indicator-color: rgba(0, 0, 0, .42);--mdc-filled-text-field-disabled-active-indicator-color: rgba(0, 0, 0, .06);--mdc-filled-text-field-hover-active-indicator-color: rgba(0, 0, 0, .87);--mdc-filled-text-field-error-active-indicator-color: #f44336;--mdc-filled-text-field-error-focus-active-indicator-color: #f44336;--mdc-filled-text-field-error-hover-active-indicator-color: #f44336;--mdc-outlined-text-field-caret-color: #2a7ae2;--mdc-outlined-text-field-focus-outline-color: #2a7ae2;--mdc-outlined-text-field-focus-label-text-color: rgba(42, 122, 226, .87);--mdc-outlined-text-field-label-text-color: rgba(0, 0, 0, .6);--mdc-outlined-text-field-hover-label-text-color: rgba(0, 0, 0, .6);--mdc-outlined-text-field-disabled-label-text-color: rgba(0, 0, 0, .38);--mdc-outlined-text-field-input-text-color: rgba(0, 0, 0, .87);--mdc-outlined-text-field-disabled-input-text-color: rgba(0, 0, 0, .38);--mdc-outlined-text-field-input-text-placeholder-color: rgba(0, 0, 0, .6);--mdc-outlined-text-field-error-caret-color: #f44336;--mdc-outlined-text-field-error-focus-label-text-color: #f44336;--mdc-outlined-text-field-error-label-text-color: #f44336;--mdc-outlined-text-field-error-hover-label-text-color: #f44336;--mdc-outlined-text-field-outline-color: rgba(0, 0, 0, .38);--mdc-outlined-text-field-disabled-outline-color: rgba(0, 0, 0, .06);--mdc-outlined-text-field-hover-outline-color: rgba(0, 0, 0, .87);--mdc-outlined-text-field-error-focus-outline-color: #f44336;--mdc-outlined-text-field-error-hover-outline-color: #f44336;--mdc-outlined-text-field-error-outline-color: #f44336;--mat-form-field-focus-select-arrow-color: rgba(42, 122, 226, .87);--mat-form-field-disabled-input-text-placeholder-color: rgba(0, 0, 0, .38);--mat-form-field-state-layer-color: rgba(0, 0, 0, .87);--mat-form-field-error-text-color: #f44336;--mat-form-field-select-option-text-color: inherit;--mat-form-field-select-disabled-option-text-color: GrayText;--mat-form-field-leading-icon-color: unset;--mat-form-field-disabled-leading-icon-color: unset;--mat-form-field-trailing-icon-color: unset;--mat-form-field-disabled-trailing-icon-color: unset;--mat-form-field-error-focus-trailing-icon-color: unset;--mat-form-field-error-hover-trailing-icon-color: unset;--mat-form-field-error-trailing-icon-color: unset;--mat-form-field-enabled-select-arrow-color: rgba(0, 0, 0, .54);--mat-form-field-disabled-select-arrow-color: rgba(0, 0, 0, .38);--mat-form-field-hover-state-layer-opacity: .04;--mat-form-field-focus-state-layer-opacity: .08}.mat-mdc-form-field.mat-accent{--mdc-filled-text-field-caret-color: #b72ae2;--mdc-filled-text-field-focus-active-indicator-color: #b72ae2;--mdc-filled-text-field-focus-label-text-color: rgba(183, 42, 226, .87);--mdc-outlined-text-field-caret-color: #b72ae2;--mdc-outlined-text-field-focus-outline-color: #b72ae2;--mdc-outlined-text-field-focus-label-text-color: rgba(183, 42, 226, .87);--mat-form-field-focus-select-arrow-color: rgba(183, 42, 226, .87)}.mat-mdc-form-field.mat-warn{--mdc-filled-text-field-caret-color: #f44336;--mdc-filled-text-field-focus-active-indicator-color: #f44336;--mdc-filled-text-field-focus-label-text-color: rgba(244, 67, 54, .87);--mdc-outlined-text-field-caret-color: #f44336;--mdc-outlined-text-field-focus-outline-color: #f44336;--mdc-outlined-text-field-focus-label-text-color: rgba(244, 67, 54, .87);--mat-form-field-focus-select-arrow-color: rgba(244, 67, 54, .87)}html{--mat-form-field-container-height: 56px;--mat-form-field-filled-label-display: block;--mat-form-field-container-vertical-padding: 16px;--mat-form-field-filled-with-label-container-padding-top: 24px;--mat-form-field-filled-with-label-container-padding-bottom: 8px}html{--mdc-filled-text-field-label-text-font: Roboto, sans-serif;--mdc-filled-text-field-label-text-size: 16px;--mdc-filled-text-field-label-text-tracking: .03125em;--mdc-filled-text-field-label-text-weight: 400;--mdc-outlined-text-field-label-text-font: Roboto, sans-serif;--mdc-outlined-text-field-label-text-size: 16px;--mdc-outlined-text-field-label-text-tracking: .03125em;--mdc-outlined-text-field-label-text-weight: 400;--mat-form-field-container-text-font: Roboto, sans-serif;--mat-form-field-container-text-line-height: 24px;--mat-form-field-container-text-size: 16px;--mat-form-field-container-text-tracking: .03125em;--mat-form-field-container-text-weight: 400;--mat-form-field-outlined-label-text-populated-size: 16px;--mat-form-field-subscript-text-font: Roboto, sans-serif;--mat-form-field-subscript-text-line-height: 20px;--mat-form-field-subscript-text-size: 12px;--mat-form-field-subscript-text-tracking: .0333333333em;--mat-form-field-subscript-text-weight: 400}html{--mat-select-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12)}html{--mat-select-panel-background-color: white;--mat-select-enabled-trigger-text-color: rgba(0, 0, 0, .87);--mat-select-disabled-trigger-text-color: rgba(0, 0, 0, .38);--mat-select-placeholder-text-color: rgba(0, 0, 0, .6);--mat-select-enabled-arrow-color: rgba(0, 0, 0, .54);--mat-select-disabled-arrow-color: rgba(0, 0, 0, .38);--mat-select-focused-arrow-color: rgba(42, 122, 226, .87);--mat-select-invalid-arrow-color: rgba(244, 67, 54, .87)}html .mat-mdc-form-field.mat-accent{--mat-select-panel-background-color: white;--mat-select-enabled-trigger-text-color: rgba(0, 0, 0, .87);--mat-select-disabled-trigger-text-color: rgba(0, 0, 0, .38);--mat-select-placeholder-text-color: rgba(0, 0, 0, .6);--mat-select-enabled-arrow-color: rgba(0, 0, 0, .54);--mat-select-disabled-arrow-color: rgba(0, 0, 0, .38);--mat-select-focused-arrow-color: rgba(183, 42, 226, .87);--mat-select-invalid-arrow-color: rgba(244, 67, 54, .87)}html .mat-mdc-form-field.mat-warn{--mat-select-panel-background-color: white;--mat-select-enabled-trigger-text-color: rgba(0, 0, 0, .87);--mat-select-disabled-trigger-text-color: rgba(0, 0, 0, .38);--mat-select-placeholder-text-color: rgba(0, 0, 0, .6);--mat-select-enabled-arrow-color: rgba(0, 0, 0, .54);--mat-select-disabled-arrow-color: rgba(0, 0, 0, .38);--mat-select-focused-arrow-color: rgba(244, 67, 54, .87);--mat-select-invalid-arrow-color: rgba(244, 67, 54, .87)}html{--mat-select-arrow-transform: translateY(-8px)}html{--mat-select-trigger-text-font: Roboto, sans-serif;--mat-select-trigger-text-line-height: 24px;--mat-select-trigger-text-size: 16px;--mat-select-trigger-text-tracking: .03125em;--mat-select-trigger-text-weight: 400}html{--mat-autocomplete-container-shape: 4px;--mat-autocomplete-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12)}html{--mat-autocomplete-background-color: white}html{--mdc-dialog-container-shape: 4px;--mat-dialog-container-elevation-shadow: 0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12);--mat-dialog-container-max-width: 80vw;--mat-dialog-container-small-max-width: 80vw;--mat-dialog-container-min-width: 0;--mat-dialog-actions-alignment: start;--mat-dialog-actions-padding: 8px;--mat-dialog-content-padding: 20px 24px;--mat-dialog-with-actions-content-padding: 20px 24px;--mat-dialog-headline-padding: 0 24px 9px}html{--mdc-dialog-container-color: white;--mdc-dialog-subhead-color: rgba(0, 0, 0, .87);--mdc-dialog-supporting-text-color: rgba(0, 0, 0, .6)}html{--mdc-dialog-subhead-font: Roboto, sans-serif;--mdc-dialog-subhead-line-height: 32px;--mdc-dialog-subhead-size: 20px;--mdc-dialog-subhead-weight: 500;--mdc-dialog-subhead-tracking: .0125em;--mdc-dialog-supporting-text-font: Roboto, sans-serif;--mdc-dialog-supporting-text-line-height: 24px;--mdc-dialog-supporting-text-size: 16px;--mdc-dialog-supporting-text-weight: 400;--mdc-dialog-supporting-text-tracking: .03125em}.mat-mdc-standard-chip{--mdc-chip-container-shape-radius: 16px;--mdc-chip-with-avatar-avatar-shape-radius: 14px;--mdc-chip-with-avatar-avatar-size: 28px;--mdc-chip-with-icon-icon-size: 18px;--mdc-chip-outline-width: 0;--mdc-chip-outline-color: transparent;--mdc-chip-disabled-outline-color: transparent;--mdc-chip-focus-outline-color: transparent;--mdc-chip-hover-state-layer-opacity: .04;--mdc-chip-with-avatar-disabled-avatar-opacity: 1;--mdc-chip-flat-selected-outline-width: 0;--mdc-chip-selected-hover-state-layer-opacity: .04;--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity: 1;--mdc-chip-with-icon-disabled-icon-opacity: 1;--mat-chip-disabled-container-opacity: .4;--mat-chip-trailing-action-opacity: .54;--mat-chip-trailing-action-focus-opacity: 1;--mat-chip-trailing-action-state-layer-color: transparent;--mat-chip-selected-trailing-action-state-layer-color: transparent;--mat-chip-trailing-action-hover-state-layer-opacity: 0;--mat-chip-trailing-action-focus-state-layer-opacity: 0}.mat-mdc-standard-chip{--mdc-chip-disabled-label-text-color: #212121;--mdc-chip-elevated-container-color: #e0e0e0;--mdc-chip-elevated-selected-container-color: #e0e0e0;--mdc-chip-elevated-disabled-container-color: #e0e0e0;--mdc-chip-flat-disabled-selected-container-color: #e0e0e0;--mdc-chip-focus-state-layer-color: black;--mdc-chip-hover-state-layer-color: black;--mdc-chip-selected-hover-state-layer-color: black;--mdc-chip-focus-state-layer-opacity: .12;--mdc-chip-selected-focus-state-layer-color: black;--mdc-chip-selected-focus-state-layer-opacity: .12;--mdc-chip-label-text-color: #212121;--mdc-chip-selected-label-text-color: #212121;--mdc-chip-with-icon-icon-color: #212121;--mdc-chip-with-icon-disabled-icon-color: #212121;--mdc-chip-with-icon-selected-icon-color: #212121;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color: #212121;--mdc-chip-with-trailing-icon-trailing-icon-color: #212121;--mat-chip-selected-disabled-trailing-icon-color: #212121;--mat-chip-selected-trailing-icon-color: #212121}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-primary,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-primary{--mdc-chip-disabled-label-text-color: white;--mdc-chip-elevated-container-color: #2a7ae2;--mdc-chip-elevated-selected-container-color: #2a7ae2;--mdc-chip-elevated-disabled-container-color: #2a7ae2;--mdc-chip-flat-disabled-selected-container-color: #2a7ae2;--mdc-chip-focus-state-layer-color: black;--mdc-chip-hover-state-layer-color: black;--mdc-chip-selected-hover-state-layer-color: black;--mdc-chip-focus-state-layer-opacity: .12;--mdc-chip-selected-focus-state-layer-color: black;--mdc-chip-selected-focus-state-layer-opacity: .12;--mdc-chip-label-text-color: white;--mdc-chip-selected-label-text-color: white;--mdc-chip-with-icon-icon-color: white;--mdc-chip-with-icon-disabled-icon-color: white;--mdc-chip-with-icon-selected-icon-color: white;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mdc-chip-with-trailing-icon-trailing-icon-color: white;--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-trailing-icon-color: white}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-accent,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-accent{--mdc-chip-disabled-label-text-color: rgba(0, 0, 0, .87);--mdc-chip-elevated-container-color: #b72ae2;--mdc-chip-elevated-selected-container-color: #b72ae2;--mdc-chip-elevated-disabled-container-color: #b72ae2;--mdc-chip-flat-disabled-selected-container-color: #b72ae2;--mdc-chip-focus-state-layer-color: black;--mdc-chip-hover-state-layer-color: black;--mdc-chip-selected-hover-state-layer-color: black;--mdc-chip-focus-state-layer-opacity: .12;--mdc-chip-selected-focus-state-layer-color: black;--mdc-chip-selected-focus-state-layer-opacity: .12;--mdc-chip-label-text-color: rgba(0, 0, 0, .87);--mdc-chip-selected-label-text-color: rgba(0, 0, 0, .87);--mdc-chip-with-icon-icon-color: rgba(0, 0, 0, .87);--mdc-chip-with-icon-disabled-icon-color: rgba(0, 0, 0, .87);--mdc-chip-with-icon-selected-icon-color: rgba(0, 0, 0, .87);--mdc-chip-with-trailing-icon-disabled-trailing-icon-color: rgba(0, 0, 0, .87);--mdc-chip-with-trailing-icon-trailing-icon-color: rgba(0, 0, 0, .87);--mat-chip-selected-disabled-trailing-icon-color: rgba(0, 0, 0, .87);--mat-chip-selected-trailing-icon-color: rgba(0, 0, 0, .87)}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-warn,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-warn{--mdc-chip-disabled-label-text-color: white;--mdc-chip-elevated-container-color: #f44336;--mdc-chip-elevated-selected-container-color: #f44336;--mdc-chip-elevated-disabled-container-color: #f44336;--mdc-chip-flat-disabled-selected-container-color: #f44336;--mdc-chip-focus-state-layer-color: black;--mdc-chip-hover-state-layer-color: black;--mdc-chip-selected-hover-state-layer-color: black;--mdc-chip-focus-state-layer-opacity: .12;--mdc-chip-selected-focus-state-layer-color: black;--mdc-chip-selected-focus-state-layer-opacity: .12;--mdc-chip-label-text-color: white;--mdc-chip-selected-label-text-color: white;--mdc-chip-with-icon-icon-color: white;--mdc-chip-with-icon-disabled-icon-color: white;--mdc-chip-with-icon-selected-icon-color: white;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mdc-chip-with-trailing-icon-trailing-icon-color: white;--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-trailing-icon-color: white}.mat-mdc-chip.mat-mdc-standard-chip{--mdc-chip-container-height: 32px}.mat-mdc-standard-chip{--mdc-chip-label-text-font: Roboto, sans-serif;--mdc-chip-label-text-line-height: 20px;--mdc-chip-label-text-size: 14px;--mdc-chip-label-text-tracking: .0178571429em;--mdc-chip-label-text-weight: 400}html{--mdc-switch-disabled-selected-icon-opacity: .38;--mdc-switch-disabled-track-opacity: .12;--mdc-switch-disabled-unselected-icon-opacity: .38;--mdc-switch-handle-height: 20px;--mdc-switch-handle-shape: 10px;--mdc-switch-handle-width: 20px;--mdc-switch-selected-icon-size: 18px;--mdc-switch-track-height: 14px;--mdc-switch-track-shape: 7px;--mdc-switch-track-width: 36px;--mdc-switch-unselected-icon-size: 18px;--mdc-switch-selected-focus-state-layer-opacity: .12;--mdc-switch-selected-hover-state-layer-opacity: .04;--mdc-switch-selected-pressed-state-layer-opacity: .1;--mdc-switch-unselected-focus-state-layer-opacity: .12;--mdc-switch-unselected-hover-state-layer-opacity: .04;--mdc-switch-unselected-pressed-state-layer-opacity: .1}html .mat-mdc-slide-toggle{--mat-switch-disabled-selected-handle-opacity: .38;--mat-switch-disabled-unselected-handle-opacity: .38;--mat-switch-unselected-handle-size: 20px;--mat-switch-selected-handle-size: 20px;--mat-switch-pressed-handle-size: 20px;--mat-switch-with-icon-handle-size: 20px;--mat-switch-selected-handle-horizontal-margin: 0;--mat-switch-selected-with-icon-handle-horizontal-margin: 0;--mat-switch-selected-pressed-handle-horizontal-margin: 0;--mat-switch-unselected-handle-horizontal-margin: 0;--mat-switch-unselected-with-icon-handle-horizontal-margin: 0;--mat-switch-unselected-pressed-handle-horizontal-margin: 0;--mat-switch-visible-track-opacity: 1;--mat-switch-hidden-track-opacity: 1;--mat-switch-visible-track-transition: transform 75ms 0ms cubic-bezier(0, 0, .2, 1);--mat-switch-hidden-track-transition: transform 75ms 0ms cubic-bezier(.4, 0, .6, 1);--mat-switch-track-outline-width: 1px;--mat-switch-track-outline-color: transparent;--mat-switch-selected-track-outline-width: 1px;--mat-switch-selected-track-outline-color: transparent;--mat-switch-disabled-unselected-track-outline-width: 1px;--mat-switch-disabled-unselected-track-outline-color: transparent}html{--mdc-switch-selected-focus-state-layer-color: #2364b9;--mdc-switch-selected-handle-color: #2364b9;--mdc-switch-selected-hover-state-layer-color: #2364b9;--mdc-switch-selected-pressed-state-layer-color: #2364b9;--mdc-switch-selected-focus-handle-color: #0c223e;--mdc-switch-selected-hover-handle-color: #0c223e;--mdc-switch-selected-pressed-handle-color: #0c223e;--mdc-switch-selected-focus-track-color: #77aaec;--mdc-switch-selected-hover-track-color: #77aaec;--mdc-switch-selected-pressed-track-color: #77aaec;--mdc-switch-selected-track-color: #77aaec;--mdc-switch-disabled-selected-handle-color: #424242;--mdc-switch-disabled-selected-icon-color: #fff;--mdc-switch-disabled-selected-track-color: #424242;--mdc-switch-disabled-unselected-handle-color: #424242;--mdc-switch-disabled-unselected-icon-color: #fff;--mdc-switch-disabled-unselected-track-color: #424242;--mdc-switch-handle-surface-color: #fff;--mdc-switch-selected-icon-color: #fff;--mdc-switch-unselected-focus-handle-color: #212121;--mdc-switch-unselected-focus-state-layer-color: #424242;--mdc-switch-unselected-focus-track-color: #e0e0e0;--mdc-switch-unselected-handle-color: #616161;--mdc-switch-unselected-hover-handle-color: #212121;--mdc-switch-unselected-hover-state-layer-color: #424242;--mdc-switch-unselected-hover-track-color: #e0e0e0;--mdc-switch-unselected-icon-color: #fff;--mdc-switch-unselected-pressed-handle-color: #212121;--mdc-switch-unselected-pressed-state-layer-color: #424242;--mdc-switch-unselected-pressed-track-color: #e0e0e0;--mdc-switch-unselected-track-color: #e0e0e0;--mdc-switch-handle-elevation-shadow: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mdc-switch-disabled-handle-elevation-shadow: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mdc-switch-disabled-label-text-color: rgba(0, 0, 0, .38)}html .mat-mdc-slide-toggle{--mat-switch-label-text-color: rgba(0, 0, 0, .87)}html .mat-mdc-slide-toggle.mat-accent{--mdc-switch-selected-focus-state-layer-color: #9623b9;--mdc-switch-selected-handle-color: #9623b9;--mdc-switch-selected-hover-state-layer-color: #9623b9;--mdc-switch-selected-pressed-state-layer-color: #9623b9;--mdc-switch-selected-focus-handle-color: #320c3e;--mdc-switch-selected-hover-handle-color: #320c3e;--mdc-switch-selected-pressed-handle-color: #320c3e;--mdc-switch-selected-focus-track-color: #d177ec;--mdc-switch-selected-hover-track-color: #d177ec;--mdc-switch-selected-pressed-track-color: #d177ec;--mdc-switch-selected-track-color: #d177ec}html .mat-mdc-slide-toggle.mat-warn{--mdc-switch-selected-focus-state-layer-color: #e53935;--mdc-switch-selected-handle-color: #e53935;--mdc-switch-selected-hover-state-layer-color: #e53935;--mdc-switch-selected-pressed-state-layer-color: #e53935;--mdc-switch-selected-focus-handle-color: #b71c1c;--mdc-switch-selected-hover-handle-color: #b71c1c;--mdc-switch-selected-pressed-handle-color: #b71c1c;--mdc-switch-selected-focus-track-color: #e57373;--mdc-switch-selected-hover-track-color: #e57373;--mdc-switch-selected-pressed-track-color: #e57373;--mdc-switch-selected-track-color: #e57373}html{--mdc-switch-state-layer-size: 40px}html .mat-mdc-slide-toggle{--mat-switch-label-text-font: Roboto, sans-serif;--mat-switch-label-text-line-height: 20px;--mat-switch-label-text-size: 14px;--mat-switch-label-text-tracking: .0178571429em;--mat-switch-label-text-weight: 400}html{--mdc-radio-disabled-selected-icon-opacity: .38;--mdc-radio-disabled-unselected-icon-opacity: .38;--mdc-radio-state-layer-size: 40px}.mat-mdc-radio-button.mat-primary{--mdc-radio-disabled-selected-icon-color: black;--mdc-radio-disabled-unselected-icon-color: black;--mdc-radio-unselected-hover-icon-color: #212121;--mdc-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color: #2a7ae2;--mdc-radio-selected-hover-icon-color: #2a7ae2;--mdc-radio-selected-icon-color: #2a7ae2;--mdc-radio-selected-pressed-icon-color: #2a7ae2;--mat-radio-ripple-color: black;--mat-radio-checked-ripple-color: #2a7ae2;--mat-radio-disabled-label-color: rgba(0, 0, 0, .38);--mat-radio-label-text-color: rgba(0, 0, 0, .87)}.mat-mdc-radio-button.mat-accent{--mdc-radio-disabled-selected-icon-color: black;--mdc-radio-disabled-unselected-icon-color: black;--mdc-radio-unselected-hover-icon-color: #212121;--mdc-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color: #b72ae2;--mdc-radio-selected-hover-icon-color: #b72ae2;--mdc-radio-selected-icon-color: #b72ae2;--mdc-radio-selected-pressed-icon-color: #b72ae2;--mat-radio-ripple-color: black;--mat-radio-checked-ripple-color: #b72ae2;--mat-radio-disabled-label-color: rgba(0, 0, 0, .38);--mat-radio-label-text-color: rgba(0, 0, 0, .87)}.mat-mdc-radio-button.mat-warn{--mdc-radio-disabled-selected-icon-color: black;--mdc-radio-disabled-unselected-icon-color: black;--mdc-radio-unselected-hover-icon-color: #212121;--mdc-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color: #f44336;--mdc-radio-selected-hover-icon-color: #f44336;--mdc-radio-selected-icon-color: #f44336;--mdc-radio-selected-pressed-icon-color: #f44336;--mat-radio-ripple-color: black;--mat-radio-checked-ripple-color: #f44336;--mat-radio-disabled-label-color: rgba(0, 0, 0, .38);--mat-radio-label-text-color: rgba(0, 0, 0, .87)}html{--mdc-radio-state-layer-size: 40px;--mat-radio-touch-target-display: block}html{--mat-radio-label-text-font: Roboto, sans-serif;--mat-radio-label-text-line-height: 20px;--mat-radio-label-text-size: 14px;--mat-radio-label-text-tracking: .0178571429em;--mat-radio-label-text-weight: 400}html{--mdc-slider-active-track-height: 6px;--mdc-slider-active-track-shape: 9999px;--mdc-slider-handle-height: 20px;--mdc-slider-handle-shape: 50%;--mdc-slider-handle-width: 20px;--mdc-slider-inactive-track-height: 4px;--mdc-slider-inactive-track-shape: 9999px;--mdc-slider-with-overlap-handle-outline-width: 1px;--mdc-slider-with-tick-marks-active-container-opacity: .6;--mdc-slider-with-tick-marks-container-shape: 50%;--mdc-slider-with-tick-marks-container-size: 2px;--mdc-slider-with-tick-marks-inactive-container-opacity: .6;--mdc-slider-handle-elevation: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-slider-value-indicator-width: auto;--mat-slider-value-indicator-height: 32px;--mat-slider-value-indicator-caret-display: block;--mat-slider-value-indicator-border-radius: 4px;--mat-slider-value-indicator-padding: 0 12px;--mat-slider-value-indicator-text-transform: none;--mat-slider-value-indicator-container-transform: translateX(-50%)}html{--mdc-slider-handle-color: #2a7ae2;--mdc-slider-focus-handle-color: #2a7ae2;--mdc-slider-hover-handle-color: #2a7ae2;--mdc-slider-active-track-color: #2a7ae2;--mdc-slider-inactive-track-color: #2a7ae2;--mdc-slider-with-tick-marks-inactive-container-color: #2a7ae2;--mdc-slider-with-tick-marks-active-container-color: white;--mdc-slider-disabled-active-track-color: #000;--mdc-slider-disabled-handle-color: #000;--mdc-slider-disabled-inactive-track-color: #000;--mdc-slider-label-container-color: #000;--mdc-slider-label-label-text-color: #fff;--mdc-slider-with-overlap-handle-outline-color: #fff;--mdc-slider-with-tick-marks-disabled-container-color: #000;--mat-slider-ripple-color: #2a7ae2;--mat-slider-hover-state-layer-color: rgba(42, 122, 226, .05);--mat-slider-focus-state-layer-color: rgba(42, 122, 226, .2);--mat-slider-value-indicator-opacity: .6}html .mat-accent{--mdc-slider-handle-color: #b72ae2;--mdc-slider-focus-handle-color: #b72ae2;--mdc-slider-hover-handle-color: #b72ae2;--mdc-slider-active-track-color: #b72ae2;--mdc-slider-inactive-track-color: #b72ae2;--mdc-slider-with-tick-marks-inactive-container-color: #b72ae2;--mdc-slider-with-tick-marks-active-container-color: rgba(0, 0, 0, .87);--mat-slider-ripple-color: #b72ae2;--mat-slider-hover-state-layer-color: rgba(183, 42, 226, .05);--mat-slider-focus-state-layer-color: rgba(183, 42, 226, .2)}html .mat-warn{--mdc-slider-handle-color: #f44336;--mdc-slider-focus-handle-color: #f44336;--mdc-slider-hover-handle-color: #f44336;--mdc-slider-active-track-color: #f44336;--mdc-slider-inactive-track-color: #f44336;--mdc-slider-with-tick-marks-inactive-container-color: #f44336;--mdc-slider-with-tick-marks-active-container-color: white;--mat-slider-ripple-color: #f44336;--mat-slider-hover-state-layer-color: rgba(244, 67, 54, .05);--mat-slider-focus-state-layer-color: rgba(244, 67, 54, .2)}html{--mdc-slider-label-label-text-font: Roboto, sans-serif;--mdc-slider-label-label-text-size: 14px;--mdc-slider-label-label-text-line-height: 22px;--mdc-slider-label-label-text-tracking: .0071428571em;--mdc-slider-label-label-text-weight: 500}html{--mat-menu-container-shape: 4px;--mat-menu-divider-bottom-spacing: 0;--mat-menu-divider-top-spacing: 0;--mat-menu-item-spacing: 16px;--mat-menu-item-icon-size: 24px;--mat-menu-item-leading-spacing: 16px;--mat-menu-item-trailing-spacing: 16px;--mat-menu-item-with-icon-leading-spacing: 16px;--mat-menu-item-with-icon-trailing-spacing: 16px;--mat-menu-base-elevation-level: 8}html{--mat-menu-item-label-text-color: rgba(0, 0, 0, .87);--mat-menu-item-icon-color: rgba(0, 0, 0, .87);--mat-menu-item-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-menu-item-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-menu-container-color: white;--mat-menu-divider-color: rgba(0, 0, 0, .12)}html{--mat-menu-item-label-text-font: Roboto, sans-serif;--mat-menu-item-label-text-size: 16px;--mat-menu-item-label-text-tracking: .03125em;--mat-menu-item-label-text-line-height: 24px;--mat-menu-item-label-text-weight: 400}html{--mdc-list-list-item-container-shape: 0;--mdc-list-list-item-leading-avatar-shape: 50%;--mdc-list-list-item-container-color: transparent;--mdc-list-list-item-selected-container-color: transparent;--mdc-list-list-item-leading-avatar-color: transparent;--mdc-list-list-item-leading-icon-size: 24px;--mdc-list-list-item-leading-avatar-size: 40px;--mdc-list-list-item-trailing-icon-size: 24px;--mdc-list-list-item-disabled-state-layer-color: transparent;--mdc-list-list-item-disabled-state-layer-opacity: 0;--mdc-list-list-item-disabled-label-text-opacity: .38;--mdc-list-list-item-disabled-leading-icon-opacity: .38;--mdc-list-list-item-disabled-trailing-icon-opacity: .38;--mat-list-active-indicator-color: transparent;--mat-list-active-indicator-shape: 4px}html{--mdc-list-list-item-label-text-color: rgba(0, 0, 0, .87);--mdc-list-list-item-supporting-text-color: rgba(0, 0, 0, .54);--mdc-list-list-item-leading-icon-color: rgba(0, 0, 0, .38);--mdc-list-list-item-trailing-supporting-text-color: rgba(0, 0, 0, .38);--mdc-list-list-item-trailing-icon-color: rgba(0, 0, 0, .38);--mdc-list-list-item-selected-trailing-icon-color: rgba(0, 0, 0, .38);--mdc-list-list-item-disabled-label-text-color: black;--mdc-list-list-item-disabled-leading-icon-color: black;--mdc-list-list-item-disabled-trailing-icon-color: black;--mdc-list-list-item-hover-label-text-color: rgba(0, 0, 0, .87);--mdc-list-list-item-hover-leading-icon-color: rgba(0, 0, 0, .38);--mdc-list-list-item-hover-trailing-icon-color: rgba(0, 0, 0, .38);--mdc-list-list-item-focus-label-text-color: rgba(0, 0, 0, .87);--mdc-list-list-item-hover-state-layer-color: black;--mdc-list-list-item-hover-state-layer-opacity: .04;--mdc-list-list-item-focus-state-layer-color: black;--mdc-list-list-item-focus-state-layer-opacity: .12}.mdc-list-item__start,.mdc-list-item__end{--mdc-radio-disabled-selected-icon-color: black;--mdc-radio-disabled-unselected-icon-color: black;--mdc-radio-unselected-hover-icon-color: #212121;--mdc-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color: #2a7ae2;--mdc-radio-selected-hover-icon-color: #2a7ae2;--mdc-radio-selected-icon-color: #2a7ae2;--mdc-radio-selected-pressed-icon-color: #2a7ae2}.mat-accent .mdc-list-item__start,.mat-accent .mdc-list-item__end{--mdc-radio-disabled-selected-icon-color: black;--mdc-radio-disabled-unselected-icon-color: black;--mdc-radio-unselected-hover-icon-color: #212121;--mdc-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color: #b72ae2;--mdc-radio-selected-hover-icon-color: #b72ae2;--mdc-radio-selected-icon-color: #b72ae2;--mdc-radio-selected-pressed-icon-color: #b72ae2}.mat-warn .mdc-list-item__start,.mat-warn .mdc-list-item__end{--mdc-radio-disabled-selected-icon-color: black;--mdc-radio-disabled-unselected-icon-color: black;--mdc-radio-unselected-hover-icon-color: #212121;--mdc-radio-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .54);--mdc-radio-selected-focus-icon-color: #f44336;--mdc-radio-selected-hover-icon-color: #f44336;--mdc-radio-selected-icon-color: #f44336;--mdc-radio-selected-pressed-icon-color: #f44336}.mat-mdc-list-option{--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: white;--mdc-checkbox-selected-focus-icon-color: #2a7ae2;--mdc-checkbox-selected-hover-icon-color: #2a7ae2;--mdc-checkbox-selected-icon-color: #2a7ae2;--mdc-checkbox-selected-pressed-icon-color: #2a7ae2;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #2a7ae2;--mdc-checkbox-selected-hover-state-layer-color: #2a7ae2;--mdc-checkbox-selected-pressed-state-layer-color: #2a7ae2;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black}.mat-mdc-list-option.mat-accent{--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: black;--mdc-checkbox-selected-focus-icon-color: #b72ae2;--mdc-checkbox-selected-hover-icon-color: #b72ae2;--mdc-checkbox-selected-icon-color: #b72ae2;--mdc-checkbox-selected-pressed-icon-color: #b72ae2;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #b72ae2;--mdc-checkbox-selected-hover-state-layer-color: #b72ae2;--mdc-checkbox-selected-pressed-state-layer-color: #b72ae2;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black}.mat-mdc-list-option.mat-warn{--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: white;--mdc-checkbox-selected-focus-icon-color: #f44336;--mdc-checkbox-selected-hover-icon-color: #f44336;--mdc-checkbox-selected-icon-color: #f44336;--mdc-checkbox-selected-pressed-icon-color: #f44336;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #f44336;--mdc-checkbox-selected-hover-state-layer-color: #f44336;--mdc-checkbox-selected-pressed-state-layer-color: #f44336;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black}.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--selected .mdc-list-item__primary-text,.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--selected .mdc-list-item__start,.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--activated .mdc-list-item__primary-text,.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--activated .mdc-list-item__start{color:#2a7ae2}.mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__content,.mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__end{opacity:1}html{--mdc-list-list-item-one-line-container-height: 48px;--mdc-list-list-item-two-line-container-height: 64px;--mdc-list-list-item-three-line-container-height: 88px;--mat-list-list-item-leading-icon-start-space: 16px;--mat-list-list-item-leading-icon-end-space: 32px}.mdc-list-item__start,.mdc-list-item__end{--mdc-radio-state-layer-size: 40px}.mat-mdc-list-item.mdc-list-item--with-leading-avatar.mdc-list-item--with-one-line,.mat-mdc-list-item.mdc-list-item--with-leading-checkbox.mdc-list-item--with-one-line,.mat-mdc-list-item.mdc-list-item--with-leading-icon.mdc-list-item--with-one-line{height:56px}.mat-mdc-list-item.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines,.mat-mdc-list-item.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines,.mat-mdc-list-item.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines{height:72px}html{--mdc-list-list-item-label-text-font: Roboto, sans-serif;--mdc-list-list-item-label-text-line-height: 24px;--mdc-list-list-item-label-text-size: 16px;--mdc-list-list-item-label-text-tracking: .03125em;--mdc-list-list-item-label-text-weight: 400;--mdc-list-list-item-supporting-text-font: Roboto, sans-serif;--mdc-list-list-item-supporting-text-line-height: 20px;--mdc-list-list-item-supporting-text-size: 14px;--mdc-list-list-item-supporting-text-tracking: .0178571429em;--mdc-list-list-item-supporting-text-weight: 400;--mdc-list-list-item-trailing-supporting-text-font: Roboto, sans-serif;--mdc-list-list-item-trailing-supporting-text-line-height: 20px;--mdc-list-list-item-trailing-supporting-text-size: 12px;--mdc-list-list-item-trailing-supporting-text-tracking: .0333333333em;--mdc-list-list-item-trailing-supporting-text-weight: 400}.mdc-list-group__subheader{font:400 16px/28px Roboto,sans-serif;letter-spacing:.009375em}html{--mat-paginator-container-text-color: rgba(0, 0, 0, .87);--mat-paginator-container-background-color: white;--mat-paginator-enabled-icon-color: rgba(0, 0, 0, .54);--mat-paginator-disabled-icon-color: rgba(0, 0, 0, .12)}html{--mat-paginator-container-size: 56px;--mat-paginator-form-field-container-height: 40px;--mat-paginator-form-field-container-vertical-padding: 8px;--mat-paginator-touch-target-display: block}html{--mat-paginator-container-text-font: Roboto, sans-serif;--mat-paginator-container-text-line-height: 20px;--mat-paginator-container-text-size: 12px;--mat-paginator-container-text-tracking: .0333333333em;--mat-paginator-container-text-weight: 400;--mat-paginator-select-trigger-text-size: 12px}html{--mdc-secondary-navigation-tab-container-height: 48px;--mdc-tab-indicator-active-indicator-height: 2px;--mdc-tab-indicator-active-indicator-shape: 0;--mat-tab-header-divider-color: transparent;--mat-tab-header-divider-height: 0}.mat-mdc-tab-group,.mat-mdc-tab-nav-bar{--mdc-tab-indicator-active-indicator-color: #2a7ae2;--mat-tab-header-disabled-ripple-color: rgba(0, 0, 0, .38);--mat-tab-header-pagination-icon-color: black;--mat-tab-header-inactive-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-active-label-text-color: #2a7ae2;--mat-tab-header-active-ripple-color: #2a7ae2;--mat-tab-header-inactive-ripple-color: #2a7ae2;--mat-tab-header-inactive-focus-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-inactive-hover-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-active-focus-label-text-color: #2a7ae2;--mat-tab-header-active-hover-label-text-color: #2a7ae2;--mat-tab-header-active-focus-indicator-color: #2a7ae2;--mat-tab-header-active-hover-indicator-color: #2a7ae2}.mat-mdc-tab-group.mat-accent,.mat-mdc-tab-nav-bar.mat-accent{--mdc-tab-indicator-active-indicator-color: #b72ae2;--mat-tab-header-disabled-ripple-color: rgba(0, 0, 0, .38);--mat-tab-header-pagination-icon-color: black;--mat-tab-header-inactive-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-active-label-text-color: #b72ae2;--mat-tab-header-active-ripple-color: #b72ae2;--mat-tab-header-inactive-ripple-color: #b72ae2;--mat-tab-header-inactive-focus-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-inactive-hover-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-active-focus-label-text-color: #b72ae2;--mat-tab-header-active-hover-label-text-color: #b72ae2;--mat-tab-header-active-focus-indicator-color: #b72ae2;--mat-tab-header-active-hover-indicator-color: #b72ae2}.mat-mdc-tab-group.mat-warn,.mat-mdc-tab-nav-bar.mat-warn{--mdc-tab-indicator-active-indicator-color: #f44336;--mat-tab-header-disabled-ripple-color: rgba(0, 0, 0, .38);--mat-tab-header-pagination-icon-color: black;--mat-tab-header-inactive-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-active-label-text-color: #f44336;--mat-tab-header-active-ripple-color: #f44336;--mat-tab-header-inactive-ripple-color: #f44336;--mat-tab-header-inactive-focus-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-inactive-hover-label-text-color: rgba(0, 0, 0, .6);--mat-tab-header-active-focus-label-text-color: #f44336;--mat-tab-header-active-hover-label-text-color: #f44336;--mat-tab-header-active-focus-indicator-color: #f44336;--mat-tab-header-active-hover-indicator-color: #f44336}.mat-mdc-tab-group.mat-background-primary,.mat-mdc-tab-nav-bar.mat-background-primary{--mat-tab-header-with-background-background-color: #2a7ae2;--mat-tab-header-with-background-foreground-color: white}.mat-mdc-tab-group.mat-background-accent,.mat-mdc-tab-nav-bar.mat-background-accent{--mat-tab-header-with-background-background-color: #b72ae2;--mat-tab-header-with-background-foreground-color: rgba(0, 0, 0, .87)}.mat-mdc-tab-group.mat-background-warn,.mat-mdc-tab-nav-bar.mat-background-warn{--mat-tab-header-with-background-background-color: #f44336;--mat-tab-header-with-background-foreground-color: white}.mat-mdc-tab-header{--mdc-secondary-navigation-tab-container-height: 48px}.mat-mdc-tab-header{--mat-tab-header-label-text-font: Roboto, sans-serif;--mat-tab-header-label-text-size: 14px;--mat-tab-header-label-text-tracking: normal;--mat-tab-header-label-text-line-height: 36px;--mat-tab-header-label-text-weight: 500}html{--mdc-checkbox-disabled-selected-checkmark-color: #fff;--mdc-checkbox-selected-focus-state-layer-opacity: .16;--mdc-checkbox-selected-hover-state-layer-opacity: .04;--mdc-checkbox-selected-pressed-state-layer-opacity: .16;--mdc-checkbox-unselected-focus-state-layer-opacity: .16;--mdc-checkbox-unselected-hover-state-layer-opacity: .04;--mdc-checkbox-unselected-pressed-state-layer-opacity: .16}html{--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: black;--mdc-checkbox-selected-focus-icon-color: #b72ae2;--mdc-checkbox-selected-hover-icon-color: #b72ae2;--mdc-checkbox-selected-icon-color: #b72ae2;--mdc-checkbox-selected-pressed-icon-color: #b72ae2;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #b72ae2;--mdc-checkbox-selected-hover-state-layer-color: #b72ae2;--mdc-checkbox-selected-pressed-state-layer-color: #b72ae2;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black;--mat-checkbox-disabled-label-color: rgba(0, 0, 0, .38);--mat-checkbox-label-text-color: rgba(0, 0, 0, .87)}.mat-mdc-checkbox.mat-primary{--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: white;--mdc-checkbox-selected-focus-icon-color: #2a7ae2;--mdc-checkbox-selected-hover-icon-color: #2a7ae2;--mdc-checkbox-selected-icon-color: #2a7ae2;--mdc-checkbox-selected-pressed-icon-color: #2a7ae2;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #2a7ae2;--mdc-checkbox-selected-hover-state-layer-color: #2a7ae2;--mdc-checkbox-selected-pressed-state-layer-color: #2a7ae2;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black}.mat-mdc-checkbox.mat-warn{--mdc-checkbox-disabled-selected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(0, 0, 0, .38);--mdc-checkbox-selected-checkmark-color: white;--mdc-checkbox-selected-focus-icon-color: #f44336;--mdc-checkbox-selected-hover-icon-color: #f44336;--mdc-checkbox-selected-icon-color: #f44336;--mdc-checkbox-selected-pressed-icon-color: #f44336;--mdc-checkbox-unselected-focus-icon-color: #212121;--mdc-checkbox-unselected-hover-icon-color: #212121;--mdc-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--mdc-checkbox-selected-focus-state-layer-color: #f44336;--mdc-checkbox-selected-hover-state-layer-color: #f44336;--mdc-checkbox-selected-pressed-state-layer-color: #f44336;--mdc-checkbox-unselected-focus-state-layer-color: black;--mdc-checkbox-unselected-hover-state-layer-color: black;--mdc-checkbox-unselected-pressed-state-layer-color: black}html{--mdc-checkbox-state-layer-size: 40px;--mat-checkbox-touch-target-display: block}html{--mat-checkbox-label-text-font: Roboto, sans-serif;--mat-checkbox-label-text-line-height: 20px;--mat-checkbox-label-text-size: 14px;--mat-checkbox-label-text-tracking: .0178571429em;--mat-checkbox-label-text-weight: 400}html{--mdc-text-button-container-shape: 4px;--mdc-text-button-keep-touch-target: false;--mdc-filled-button-container-shape: 4px;--mdc-filled-button-keep-touch-target: false;--mdc-protected-button-container-shape: 4px;--mdc-protected-button-container-elevation-shadow: 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12);--mdc-protected-button-disabled-container-elevation-shadow: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mdc-protected-button-focus-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mdc-protected-button-hover-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mdc-protected-button-pressed-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-outlined-button-keep-touch-target: false;--mdc-outlined-button-outline-width: 1px;--mdc-outlined-button-container-shape: 4px;--mat-text-button-horizontal-padding: 8px;--mat-text-button-with-icon-horizontal-padding: 8px;--mat-text-button-icon-spacing: 8px;--mat-text-button-icon-offset: 0;--mat-filled-button-horizontal-padding: 16px;--mat-filled-button-icon-spacing: 8px;--mat-filled-button-icon-offset: -4px;--mat-protected-button-horizontal-padding: 16px;--mat-protected-button-icon-spacing: 8px;--mat-protected-button-icon-offset: -4px;--mat-outlined-button-horizontal-padding: 15px;--mat-outlined-button-icon-spacing: 8px;--mat-outlined-button-icon-offset: -4px}html{--mdc-text-button-label-text-color: black;--mdc-text-button-disabled-label-text-color: rgba(0, 0, 0, .38);--mat-text-button-state-layer-color: black;--mat-text-button-disabled-state-layer-color: black;--mat-text-button-ripple-color: rgba(0, 0, 0, .1);--mat-text-button-hover-state-layer-opacity: .04;--mat-text-button-focus-state-layer-opacity: .12;--mat-text-button-pressed-state-layer-opacity: .12;--mdc-filled-button-container-color: white;--mdc-filled-button-label-text-color: black;--mdc-filled-button-disabled-container-color: rgba(0, 0, 0, .12);--mdc-filled-button-disabled-label-text-color: rgba(0, 0, 0, .38);--mat-filled-button-state-layer-color: black;--mat-filled-button-disabled-state-layer-color: black;--mat-filled-button-ripple-color: rgba(0, 0, 0, .1);--mat-filled-button-hover-state-layer-opacity: .04;--mat-filled-button-focus-state-layer-opacity: .12;--mat-filled-button-pressed-state-layer-opacity: .12;--mdc-protected-button-container-color: white;--mdc-protected-button-label-text-color: black;--mdc-protected-button-disabled-container-color: rgba(0, 0, 0, .12);--mdc-protected-button-disabled-label-text-color: rgba(0, 0, 0, .38);--mat-protected-button-state-layer-color: black;--mat-protected-button-disabled-state-layer-color: black;--mat-protected-button-ripple-color: rgba(0, 0, 0, .1);--mat-protected-button-hover-state-layer-opacity: .04;--mat-protected-button-focus-state-layer-opacity: .12;--mat-protected-button-pressed-state-layer-opacity: .12;--mdc-outlined-button-disabled-outline-color: rgba(0, 0, 0, .12);--mdc-outlined-button-disabled-label-text-color: rgba(0, 0, 0, .38);--mdc-outlined-button-label-text-color: black;--mdc-outlined-button-outline-color: rgba(0, 0, 0, .12);--mat-outlined-button-state-layer-color: black;--mat-outlined-button-disabled-state-layer-color: black;--mat-outlined-button-ripple-color: rgba(0, 0, 0, .1);--mat-outlined-button-hover-state-layer-opacity: .04;--mat-outlined-button-focus-state-layer-opacity: .12;--mat-outlined-button-pressed-state-layer-opacity: .12}.mat-mdc-button.mat-primary{--mdc-text-button-label-text-color: #2a7ae2;--mat-text-button-state-layer-color: #2a7ae2;--mat-text-button-ripple-color: rgba(42, 122, 226, .1)}.mat-mdc-button.mat-accent{--mdc-text-button-label-text-color: #b72ae2;--mat-text-button-state-layer-color: #b72ae2;--mat-text-button-ripple-color: rgba(183, 42, 226, .1)}.mat-mdc-button.mat-warn{--mdc-text-button-label-text-color: #f44336;--mat-text-button-state-layer-color: #f44336;--mat-text-button-ripple-color: rgba(244, 67, 54, .1)}.mat-mdc-unelevated-button.mat-primary{--mdc-filled-button-container-color: #2a7ae2;--mdc-filled-button-label-text-color: white;--mat-filled-button-state-layer-color: white;--mat-filled-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-unelevated-button.mat-accent{--mdc-filled-button-container-color: #b72ae2;--mdc-filled-button-label-text-color: black;--mat-filled-button-state-layer-color: black;--mat-filled-button-ripple-color: rgba(0, 0, 0, .1)}.mat-mdc-unelevated-button.mat-warn{--mdc-filled-button-container-color: #f44336;--mdc-filled-button-label-text-color: white;--mat-filled-button-state-layer-color: white;--mat-filled-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-raised-button.mat-primary{--mdc-protected-button-container-color: #2a7ae2;--mdc-protected-button-label-text-color: white;--mat-protected-button-state-layer-color: white;--mat-protected-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-raised-button.mat-accent{--mdc-protected-button-container-color: #b72ae2;--mdc-protected-button-label-text-color: black;--mat-protected-button-state-layer-color: black;--mat-protected-button-ripple-color: rgba(0, 0, 0, .1)}.mat-mdc-raised-button.mat-warn{--mdc-protected-button-container-color: #f44336;--mdc-protected-button-label-text-color: white;--mat-protected-button-state-layer-color: white;--mat-protected-button-ripple-color: rgba(255, 255, 255, .1)}.mat-mdc-outlined-button.mat-primary{--mdc-outlined-button-label-text-color: #2a7ae2;--mdc-outlined-button-outline-color: rgba(0, 0, 0, .12);--mat-outlined-button-state-layer-color: #2a7ae2;--mat-outlined-button-ripple-color: rgba(42, 122, 226, .1)}.mat-mdc-outlined-button.mat-accent{--mdc-outlined-button-label-text-color: #b72ae2;--mdc-outlined-button-outline-color: rgba(0, 0, 0, .12);--mat-outlined-button-state-layer-color: #b72ae2;--mat-outlined-button-ripple-color: rgba(183, 42, 226, .1)}.mat-mdc-outlined-button.mat-warn{--mdc-outlined-button-label-text-color: #f44336;--mdc-outlined-button-outline-color: rgba(0, 0, 0, .12);--mat-outlined-button-state-layer-color: #f44336;--mat-outlined-button-ripple-color: rgba(244, 67, 54, .1)}html{--mdc-text-button-container-height: 36px;--mdc-filled-button-container-height: 36px;--mdc-protected-button-container-height: 36px;--mdc-outlined-button-container-height: 36px;--mat-text-button-touch-target-display: block;--mat-filled-button-touch-target-display: block;--mat-protected-button-touch-target-display: block;--mat-outlined-button-touch-target-display: block}html{--mdc-text-button-label-text-font: Roboto, sans-serif;--mdc-text-button-label-text-size: 14px;--mdc-text-button-label-text-tracking: normal;--mdc-text-button-label-text-weight: 500;--mdc-text-button-label-text-transform: none;--mdc-filled-button-label-text-font: Roboto, sans-serif;--mdc-filled-button-label-text-size: 14px;--mdc-filled-button-label-text-tracking: normal;--mdc-filled-button-label-text-weight: 500;--mdc-filled-button-label-text-transform: none;--mdc-protected-button-label-text-font: Roboto, sans-serif;--mdc-protected-button-label-text-size: 14px;--mdc-protected-button-label-text-tracking: normal;--mdc-protected-button-label-text-weight: 500;--mdc-protected-button-label-text-transform: none;--mdc-outlined-button-label-text-font: Roboto, sans-serif;--mdc-outlined-button-label-text-size: 14px;--mdc-outlined-button-label-text-tracking: normal;--mdc-outlined-button-label-text-weight: 500;--mdc-outlined-button-label-text-transform: none}html{--mdc-icon-button-icon-size: 24px}html{--mdc-icon-button-icon-color: inherit;--mdc-icon-button-disabled-icon-color: rgba(0, 0, 0, .38);--mat-icon-button-state-layer-color: black;--mat-icon-button-disabled-state-layer-color: black;--mat-icon-button-ripple-color: rgba(0, 0, 0, .1);--mat-icon-button-hover-state-layer-opacity: .04;--mat-icon-button-focus-state-layer-opacity: .12;--mat-icon-button-pressed-state-layer-opacity: .12}html .mat-mdc-icon-button.mat-primary{--mdc-icon-button-icon-color: #2a7ae2;--mat-icon-button-state-layer-color: #2a7ae2;--mat-icon-button-ripple-color: rgba(42, 122, 226, .1)}html .mat-mdc-icon-button.mat-accent{--mdc-icon-button-icon-color: #b72ae2;--mat-icon-button-state-layer-color: #b72ae2;--mat-icon-button-ripple-color: rgba(183, 42, 226, .1)}html .mat-mdc-icon-button.mat-warn{--mdc-icon-button-icon-color: #f44336;--mat-icon-button-state-layer-color: #f44336;--mat-icon-button-ripple-color: rgba(244, 67, 54, .1)}html{--mat-icon-button-touch-target-display: block}.mat-mdc-icon-button.mat-mdc-button-base{--mdc-icon-button-state-layer-size: 48px;width:var(--mdc-icon-button-state-layer-size);height:var(--mdc-icon-button-state-layer-size);padding:12px}html{--mdc-fab-container-shape: 50%;--mdc-fab-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mdc-fab-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-fab-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-fab-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mdc-fab-small-container-shape: 50%;--mdc-fab-small-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mdc-fab-small-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-fab-small-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-fab-small-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mdc-extended-fab-container-height: 48px;--mdc-extended-fab-container-shape: 24px;--mdc-extended-fab-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mdc-extended-fab-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-extended-fab-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-extended-fab-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12)}html{--mdc-fab-container-color: white;--mat-fab-foreground-color: black;--mat-fab-state-layer-color: black;--mat-fab-disabled-state-layer-color: black;--mat-fab-ripple-color: rgba(0, 0, 0, .1);--mat-fab-hover-state-layer-opacity: .04;--mat-fab-focus-state-layer-opacity: .12;--mat-fab-pressed-state-layer-opacity: .12;--mat-fab-disabled-state-container-color: rgba(0, 0, 0, .12);--mat-fab-disabled-state-foreground-color: rgba(0, 0, 0, .38);--mdc-fab-small-container-color: white;--mat-fab-small-foreground-color: black;--mat-fab-small-state-layer-color: black;--mat-fab-small-disabled-state-layer-color: black;--mat-fab-small-ripple-color: rgba(0, 0, 0, .1);--mat-fab-small-hover-state-layer-opacity: .04;--mat-fab-small-focus-state-layer-opacity: .12;--mat-fab-small-pressed-state-layer-opacity: .12;--mat-fab-small-disabled-state-container-color: rgba(0, 0, 0, .12);--mat-fab-small-disabled-state-foreground-color: rgba(0, 0, 0, .38)}html .mat-mdc-fab.mat-primary{--mdc-fab-container-color: #2a7ae2;--mat-fab-foreground-color: white;--mat-fab-state-layer-color: white;--mat-fab-ripple-color: rgba(255, 255, 255, .1)}html .mat-mdc-fab.mat-accent{--mdc-fab-container-color: #b72ae2;--mat-fab-foreground-color: black;--mat-fab-state-layer-color: black;--mat-fab-ripple-color: rgba(0, 0, 0, .1)}html .mat-mdc-fab.mat-warn{--mdc-fab-container-color: #f44336;--mat-fab-foreground-color: white;--mat-fab-state-layer-color: white;--mat-fab-ripple-color: rgba(255, 255, 255, .1)}html .mat-mdc-mini-fab.mat-primary{--mdc-fab-small-container-color: #2a7ae2;--mat-fab-small-foreground-color: white;--mat-fab-small-state-layer-color: white;--mat-fab-small-ripple-color: rgba(255, 255, 255, .1)}html .mat-mdc-mini-fab.mat-accent{--mdc-fab-small-container-color: #b72ae2;--mat-fab-small-foreground-color: black;--mat-fab-small-state-layer-color: black;--mat-fab-small-ripple-color: rgba(0, 0, 0, .1)}html .mat-mdc-mini-fab.mat-warn{--mdc-fab-small-container-color: #f44336;--mat-fab-small-foreground-color: white;--mat-fab-small-state-layer-color: white;--mat-fab-small-ripple-color: rgba(255, 255, 255, .1)}html{--mat-fab-touch-target-display: block;--mat-fab-small-touch-target-display: block}html{--mdc-extended-fab-label-text-font: Roboto, sans-serif;--mdc-extended-fab-label-text-size: 14px;--mdc-extended-fab-label-text-tracking: normal;--mdc-extended-fab-label-text-weight: 500}html{--mdc-snackbar-container-shape: 4px}html{--mdc-snackbar-container-color: #333333;--mdc-snackbar-supporting-text-color: rgba(255, 255, 255, .87);--mat-snack-bar-button-color: #b72ae2}html{--mdc-snackbar-supporting-text-font: Roboto, sans-serif;--mdc-snackbar-supporting-text-line-height: 20px;--mdc-snackbar-supporting-text-size: 14px;--mdc-snackbar-supporting-text-weight: 400}html{--mat-table-row-item-outline-width: 1px}html{--mat-table-background-color: white;--mat-table-header-headline-color: rgba(0, 0, 0, .87);--mat-table-row-item-label-text-color: rgba(0, 0, 0, .87);--mat-table-row-item-outline-color: rgba(0, 0, 0, .12)}html{--mat-table-header-container-height: 56px;--mat-table-footer-container-height: 52px;--mat-table-row-item-container-height: 52px}html{--mat-table-header-headline-font: Roboto, sans-serif;--mat-table-header-headline-line-height: 22px;--mat-table-header-headline-size: 14px;--mat-table-header-headline-weight: 500;--mat-table-header-headline-tracking: .0071428571em;--mat-table-row-item-label-text-font: Roboto, sans-serif;--mat-table-row-item-label-text-line-height: 20px;--mat-table-row-item-label-text-size: 14px;--mat-table-row-item-label-text-weight: 400;--mat-table-row-item-label-text-tracking: .0178571429em;--mat-table-footer-supporting-text-font: Roboto, sans-serif;--mat-table-footer-supporting-text-line-height: 20px;--mat-table-footer-supporting-text-size: 14px;--mat-table-footer-supporting-text-weight: 400;--mat-table-footer-supporting-text-tracking: .0178571429em}html{--mdc-circular-progress-active-indicator-width: 4px;--mdc-circular-progress-size: 48px}html{--mdc-circular-progress-active-indicator-color: #2a7ae2}html .mat-accent{--mdc-circular-progress-active-indicator-color: #b72ae2}html .mat-warn{--mdc-circular-progress-active-indicator-color: #f44336}html{--mat-badge-container-shape: 50%;--mat-badge-container-size: unset;--mat-badge-small-size-container-size: unset;--mat-badge-large-size-container-size: unset;--mat-badge-legacy-container-size: 22px;--mat-badge-legacy-small-size-container-size: 16px;--mat-badge-legacy-large-size-container-size: 28px;--mat-badge-container-offset: -11px 0;--mat-badge-small-size-container-offset: -8px 0;--mat-badge-large-size-container-offset: -14px 0;--mat-badge-container-overlap-offset: -11px;--mat-badge-small-size-container-overlap-offset: -8px;--mat-badge-large-size-container-overlap-offset: -14px;--mat-badge-container-padding: 0;--mat-badge-small-size-container-padding: 0;--mat-badge-large-size-container-padding: 0}html{--mat-badge-background-color: #2a7ae2;--mat-badge-text-color: white;--mat-badge-disabled-state-background-color: #b9b9b9;--mat-badge-disabled-state-text-color: rgba(0, 0, 0, .38)}.mat-badge-accent{--mat-badge-background-color: #b72ae2;--mat-badge-text-color: rgba(0, 0, 0, .87)}.mat-badge-warn{--mat-badge-background-color: #f44336;--mat-badge-text-color: white}html{--mat-badge-text-font: Roboto, sans-serif;--mat-badge-text-size: 12px;--mat-badge-text-weight: 600;--mat-badge-small-size-text-size: 9px;--mat-badge-large-size-text-size: 24px}html{--mat-bottom-sheet-container-shape: 4px}html{--mat-bottom-sheet-container-text-color: rgba(0, 0, 0, .87);--mat-bottom-sheet-container-background-color: white}html{--mat-bottom-sheet-container-text-font: Roboto, sans-serif;--mat-bottom-sheet-container-text-line-height: 20px;--mat-bottom-sheet-container-text-size: 14px;--mat-bottom-sheet-container-text-tracking: .0178571429em;--mat-bottom-sheet-container-text-weight: 400}html{--mat-legacy-button-toggle-height: 36px;--mat-legacy-button-toggle-shape: 2px;--mat-legacy-button-toggle-focus-state-layer-opacity: 1;--mat-standard-button-toggle-shape: 4px;--mat-standard-button-toggle-hover-state-layer-opacity: .04;--mat-standard-button-toggle-focus-state-layer-opacity: .12}html{--mat-legacy-button-toggle-text-color: rgba(0, 0, 0, .38);--mat-legacy-button-toggle-state-layer-color: rgba(0, 0, 0, .12);--mat-legacy-button-toggle-selected-state-text-color: rgba(0, 0, 0, .54);--mat-legacy-button-toggle-selected-state-background-color: #e0e0e0;--mat-legacy-button-toggle-disabled-state-text-color: rgba(0, 0, 0, .26);--mat-legacy-button-toggle-disabled-state-background-color: #eeeeee;--mat-legacy-button-toggle-disabled-selected-state-background-color: #bdbdbd;--mat-standard-button-toggle-text-color: rgba(0, 0, 0, .87);--mat-standard-button-toggle-background-color: white;--mat-standard-button-toggle-state-layer-color: black;--mat-standard-button-toggle-selected-state-background-color: #e0e0e0;--mat-standard-button-toggle-selected-state-text-color: rgba(0, 0, 0, .87);--mat-standard-button-toggle-disabled-state-text-color: rgba(0, 0, 0, .26);--mat-standard-button-toggle-disabled-state-background-color: white;--mat-standard-button-toggle-disabled-selected-state-text-color: rgba(0, 0, 0, .87);--mat-standard-button-toggle-disabled-selected-state-background-color: #bdbdbd;--mat-standard-button-toggle-divider-color: #e0e0e0}html{--mat-standard-button-toggle-height: 48px}html{--mat-legacy-button-toggle-label-text-font: Roboto, sans-serif;--mat-legacy-button-toggle-label-text-line-height: 24px;--mat-legacy-button-toggle-label-text-size: 16px;--mat-legacy-button-toggle-label-text-tracking: .03125em;--mat-legacy-button-toggle-label-text-weight: 400;--mat-standard-button-toggle-label-text-font: Roboto, sans-serif;--mat-standard-button-toggle-label-text-line-height: 24px;--mat-standard-button-toggle-label-text-size: 16px;--mat-standard-button-toggle-label-text-tracking: .03125em;--mat-standard-button-toggle-label-text-weight: 400}html{--mat-datepicker-calendar-container-shape: 4px;--mat-datepicker-calendar-container-touch-shape: 4px;--mat-datepicker-calendar-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mat-datepicker-calendar-container-touch-elevation-shadow: 0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12)}html{--mat-datepicker-calendar-date-selected-state-text-color: white;--mat-datepicker-calendar-date-selected-state-background-color: #2a7ae2;--mat-datepicker-calendar-date-selected-disabled-state-background-color: rgba(42, 122, 226, .4);--mat-datepicker-calendar-date-today-selected-state-outline-color: white;--mat-datepicker-calendar-date-focus-state-background-color: rgba(42, 122, 226, .3);--mat-datepicker-calendar-date-hover-state-background-color: rgba(42, 122, 226, .3);--mat-datepicker-toggle-active-state-icon-color: #2a7ae2;--mat-datepicker-calendar-date-in-range-state-background-color: rgba(42, 122, 226, .2);--mat-datepicker-calendar-date-in-comparison-range-state-background-color: rgba(249, 171, 0, .2);--mat-datepicker-calendar-date-in-overlap-range-state-background-color: #a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color: #46a35e;--mat-datepicker-toggle-icon-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-body-label-text-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-period-button-text-color: black;--mat-datepicker-calendar-period-button-icon-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-navigation-button-icon-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-header-divider-color: rgba(0, 0, 0, .12);--mat-datepicker-calendar-header-text-color: rgba(0, 0, 0, .54);--mat-datepicker-calendar-date-today-outline-color: rgba(0, 0, 0, .38);--mat-datepicker-calendar-date-today-disabled-state-outline-color: rgba(0, 0, 0, .18);--mat-datepicker-calendar-date-text-color: rgba(0, 0, 0, .87);--mat-datepicker-calendar-date-outline-color: transparent;--mat-datepicker-calendar-date-disabled-state-text-color: rgba(0, 0, 0, .38);--mat-datepicker-calendar-date-preview-state-outline-color: rgba(0, 0, 0, .24);--mat-datepicker-range-input-separator-color: rgba(0, 0, 0, .87);--mat-datepicker-range-input-disabled-state-separator-color: rgba(0, 0, 0, .38);--mat-datepicker-range-input-disabled-state-text-color: rgba(0, 0, 0, .38);--mat-datepicker-calendar-container-background-color: white;--mat-datepicker-calendar-container-text-color: rgba(0, 0, 0, .87)}.mat-datepicker-content.mat-accent{--mat-datepicker-calendar-date-selected-state-text-color: rgba(0, 0, 0, .87);--mat-datepicker-calendar-date-selected-state-background-color: #b72ae2;--mat-datepicker-calendar-date-selected-disabled-state-background-color: rgba(183, 42, 226, .4);--mat-datepicker-calendar-date-today-selected-state-outline-color: rgba(0, 0, 0, .87);--mat-datepicker-calendar-date-focus-state-background-color: rgba(183, 42, 226, .3);--mat-datepicker-calendar-date-hover-state-background-color: rgba(183, 42, 226, .3);--mat-datepicker-calendar-date-in-range-state-background-color: rgba(183, 42, 226, .2);--mat-datepicker-calendar-date-in-comparison-range-state-background-color: rgba(249, 171, 0, .2);--mat-datepicker-calendar-date-in-overlap-range-state-background-color: #a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color: #46a35e}.mat-datepicker-content.mat-warn{--mat-datepicker-calendar-date-selected-state-text-color: white;--mat-datepicker-calendar-date-selected-state-background-color: #f44336;--mat-datepicker-calendar-date-selected-disabled-state-background-color: rgba(244, 67, 54, .4);--mat-datepicker-calendar-date-today-selected-state-outline-color: white;--mat-datepicker-calendar-date-focus-state-background-color: rgba(244, 67, 54, .3);--mat-datepicker-calendar-date-hover-state-background-color: rgba(244, 67, 54, .3);--mat-datepicker-calendar-date-in-range-state-background-color: rgba(244, 67, 54, .2);--mat-datepicker-calendar-date-in-comparison-range-state-background-color: rgba(249, 171, 0, .2);--mat-datepicker-calendar-date-in-overlap-range-state-background-color: #a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color: #46a35e}.mat-datepicker-toggle-active.mat-accent{--mat-datepicker-toggle-active-state-icon-color: #b72ae2}.mat-datepicker-toggle-active.mat-warn{--mat-datepicker-toggle-active-state-icon-color: #f44336}.mat-calendar-controls{--mat-icon-button-touch-target-display: none}.mat-calendar-controls .mat-mdc-icon-button.mat-mdc-button-base{--mdc-icon-button-state-layer-size: 40px;width:var(--mdc-icon-button-state-layer-size);height:var(--mdc-icon-button-state-layer-size);padding:8px}html{--mat-datepicker-calendar-text-font: Roboto, sans-serif;--mat-datepicker-calendar-text-size: 13px;--mat-datepicker-calendar-body-label-text-size: 14px;--mat-datepicker-calendar-body-label-text-weight: 500;--mat-datepicker-calendar-period-button-text-size: 14px;--mat-datepicker-calendar-period-button-text-weight: 500;--mat-datepicker-calendar-header-text-size: 11px;--mat-datepicker-calendar-header-text-weight: 400}html{--mat-divider-width: 1px}html{--mat-divider-color: rgba(0, 0, 0, .12)}html{--mat-expansion-container-shape: 4px;--mat-expansion-legacy-header-indicator-display: inline-block;--mat-expansion-header-indicator-display: none}html{--mat-expansion-container-background-color: white;--mat-expansion-container-text-color: rgba(0, 0, 0, .87);--mat-expansion-actions-divider-color: rgba(0, 0, 0, .12);--mat-expansion-header-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-expansion-header-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-expansion-header-disabled-state-text-color: rgba(0, 0, 0, .26);--mat-expansion-header-text-color: rgba(0, 0, 0, .87);--mat-expansion-header-description-color: rgba(0, 0, 0, .54);--mat-expansion-header-indicator-color: rgba(0, 0, 0, .54)}html{--mat-expansion-header-collapsed-state-height: 48px;--mat-expansion-header-expanded-state-height: 64px}html{--mat-expansion-header-text-font: Roboto, sans-serif;--mat-expansion-header-text-size: 14px;--mat-expansion-header-text-weight: 500;--mat-expansion-header-text-line-height: inherit;--mat-expansion-header-text-tracking: inherit;--mat-expansion-container-text-font: Roboto, sans-serif;--mat-expansion-container-text-line-height: 20px;--mat-expansion-container-text-size: 14px;--mat-expansion-container-text-tracking: .0178571429em;--mat-expansion-container-text-weight: 400}html{--mat-grid-list-tile-header-primary-text-size: 14px;--mat-grid-list-tile-header-secondary-text-size: 12px;--mat-grid-list-tile-footer-primary-text-size: 14px;--mat-grid-list-tile-footer-secondary-text-size: 12px}html{--mat-icon-color: inherit}.mat-icon.mat-primary{--mat-icon-color: #2a7ae2}.mat-icon.mat-accent{--mat-icon-color: #b72ae2}.mat-icon.mat-warn{--mat-icon-color: #f44336}html{--mat-sidenav-container-shape: 0;--mat-sidenav-container-elevation-shadow: 0px 8px 10px -5px rgba(0, 0, 0, .2), 0px 16px 24px 2px rgba(0, 0, 0, .14), 0px 6px 30px 5px rgba(0, 0, 0, .12);--mat-sidenav-container-width: auto}html{--mat-sidenav-container-divider-color: rgba(0, 0, 0, .12);--mat-sidenav-container-background-color: white;--mat-sidenav-container-text-color: rgba(0, 0, 0, .87);--mat-sidenav-content-background-color: #fafafa;--mat-sidenav-content-text-color: rgba(0, 0, 0, .87);--mat-sidenav-scrim-color: rgba(0, 0, 0, .6)}html{--mat-stepper-header-icon-foreground-color: white;--mat-stepper-header-selected-state-icon-background-color: #2a7ae2;--mat-stepper-header-selected-state-icon-foreground-color: white;--mat-stepper-header-done-state-icon-background-color: #2a7ae2;--mat-stepper-header-done-state-icon-foreground-color: white;--mat-stepper-header-edit-state-icon-background-color: #2a7ae2;--mat-stepper-header-edit-state-icon-foreground-color: white;--mat-stepper-container-color: white;--mat-stepper-line-color: rgba(0, 0, 0, .12);--mat-stepper-header-hover-state-layer-color: rgba(0, 0, 0, .04);--mat-stepper-header-focus-state-layer-color: rgba(0, 0, 0, .04);--mat-stepper-header-label-text-color: rgba(0, 0, 0, .54);--mat-stepper-header-optional-label-text-color: rgba(0, 0, 0, .54);--mat-stepper-header-selected-state-label-text-color: rgba(0, 0, 0, .87);--mat-stepper-header-error-state-label-text-color: #f44336;--mat-stepper-header-icon-background-color: rgba(0, 0, 0, .54);--mat-stepper-header-error-state-icon-foreground-color: #f44336;--mat-stepper-header-error-state-icon-background-color: transparent}html .mat-step-header.mat-accent{--mat-stepper-header-icon-foreground-color: rgba(0, 0, 0, .87);--mat-stepper-header-selected-state-icon-background-color: #b72ae2;--mat-stepper-header-selected-state-icon-foreground-color: rgba(0, 0, 0, .87);--mat-stepper-header-done-state-icon-background-color: #b72ae2;--mat-stepper-header-done-state-icon-foreground-color: rgba(0, 0, 0, .87);--mat-stepper-header-edit-state-icon-background-color: #b72ae2;--mat-stepper-header-edit-state-icon-foreground-color: rgba(0, 0, 0, .87)}html .mat-step-header.mat-warn{--mat-stepper-header-icon-foreground-color: white;--mat-stepper-header-selected-state-icon-background-color: #f44336;--mat-stepper-header-selected-state-icon-foreground-color: white;--mat-stepper-header-done-state-icon-background-color: #f44336;--mat-stepper-header-done-state-icon-foreground-color: white;--mat-stepper-header-edit-state-icon-background-color: #f44336;--mat-stepper-header-edit-state-icon-foreground-color: white}html{--mat-stepper-header-height: 72px}html{--mat-stepper-container-text-font: Roboto, sans-serif;--mat-stepper-header-label-text-font: Roboto, sans-serif;--mat-stepper-header-label-text-size: 14px;--mat-stepper-header-label-text-weight: 400;--mat-stepper-header-error-state-label-text-size: 16px;--mat-stepper-header-selected-state-label-text-size: 16px;--mat-stepper-header-selected-state-label-text-weight: 400}html{--mat-sort-arrow-color: #757575}html{--mat-toolbar-container-background-color: whitesmoke;--mat-toolbar-container-text-color: rgba(0, 0, 0, .87)}.mat-toolbar.mat-primary{--mat-toolbar-container-background-color: #2a7ae2;--mat-toolbar-container-text-color: white}.mat-toolbar.mat-accent{--mat-toolbar-container-background-color: #b72ae2;--mat-toolbar-container-text-color: rgba(0, 0, 0, .87)}.mat-toolbar.mat-warn{--mat-toolbar-container-background-color: #f44336;--mat-toolbar-container-text-color: white}html{--mat-toolbar-standard-height: 64px;--mat-toolbar-mobile-height: 56px}html{--mat-toolbar-title-text-font: Roboto, sans-serif;--mat-toolbar-title-text-line-height: 32px;--mat-toolbar-title-text-size: 20px;--mat-toolbar-title-text-tracking: .0125em;--mat-toolbar-title-text-weight: 500}html{--mat-tree-container-background-color: white;--mat-tree-node-text-color: rgba(0, 0, 0, .87)}html{--mat-tree-node-min-height: 48px}html{--mat-tree-node-text-font: Roboto, sans-serif;--mat-tree-node-text-size: 14px;--mat-tree-node-text-weight: 400}.default{color:#000}.default .snackbar-error .mdc-snackbar__surface{background-color:#f44336!important;color:#fff!important}.default natural-sidenav-container .mat-drawer{border-right:none}.default natural-sidenav-container mat-sidenav[ng-reflect-mode=side] .mat-drawer-inner-container{display:flex;flex-direction:column}.default natural-sidenav-container mat-sidenav[ng-reflect-mode=side] natural-sidenav{display:flex;flex:1;min-height:0}.default natural-sidenav-container mat-sidenav-content{display:flex!important}.default natural-sidenav-container mat-sidenav-content>div{display:flex;flex:1}.default natural-sidenav-container mat-sidenav-content>div natural-sidenav-content{display:flex;flex:1}.default natural-input .mat-mdc-form-field-infix{margin-right:10px;margin-left:10px;width:auto}.default natural-input .mat-form-field-flex{align-items:flex-start;padding-right:0;padding-left:0}.default natural-input .mat-mdc-form-field{margin-bottom:-1.25em}.default .natural-dropdown-container{background:#fff}.default .natural-dropdown-container>*>*>*{outline:none!important}.default .responsive-table{overflow-x:auto;overflow-y:hidden}.default [mat-table]{width:100%;max-width:100%}.default [mat-table] [mat-cell]{justify-content:center}.default [mat-table] .mat-mdc-cell:first-child,.default [mat-table] .mat-mdc-header-cell:first-child,.default [mat-table] .mat-mdc-footer-cell:first-child{padding-right:5px}.default [mat-table] .mat-mdc-cell:last-child,.default [mat-table] .mat-mdc-header-cell:last-child,.default [mat-table] .mat-mdc-footer-cell:last-child{padding-left:5px}.default [mat-table] .mat-mdc-cell:not(:first-child):not(:last-child),.default [mat-table] .mat-mdc-header-cell:not(:first-child):not(:last-child),.default [mat-table] .mat-mdc-footer-cell:not(:first-child):not(:last-child){padding-right:5px;padding-left:5px}.default [mat-table] .mat-mdc-cell[natural-align-right],.default [mat-table] .mat-mdc-header-cell[natural-align-right],.default [mat-table] .mat-mdc-footer-cell[natural-align-right]{text-align:right}.default [mat-table] .mat-mdc-cell[natural-align-right] .mat-sort-header-container,.default [mat-table] .mat-mdc-header-cell[natural-align-right] .mat-sort-header-container,.default [mat-table] .mat-mdc-footer-cell[natural-align-right] .mat-sort-header-container{justify-content:flex-end}.default [mat-table] .mat-mdc-cell[natural-align-center],.default [mat-table] .mat-mdc-header-cell[natural-align-center],.default [mat-table] .mat-mdc-footer-cell[natural-align-center]{text-align:center}.default [mat-table] .mat-mdc-cell[natural-align-center] .mat-sort-header-container,.default [mat-table] .mat-mdc-header-cell[natural-align-center] .mat-sort-header-container,.default [mat-table] .mat-mdc-footer-cell[natural-align-center] .mat-sort-header-container{justify-content:center}.default [mat-table] [mat-row].selected{background:#e0e0e0}.default [mat-table] [mat-header-row]{background:#f5f5f5}.default [mat-table] .mat-mdc-footer-cell{font-weight:700}.default [mat-table] [natural-1em-column]{width:1em}.default [mat-table] [natural-2em-column]{width:2em}.default [mat-table] [natural-3em-column]{width:3em}.default [mat-table] [natural-4em-column]{width:4em}.default [mat-table] [natural-5em-column]{width:5em}.default [mat-table] [natural-6em-column]{width:6em}.default [mat-table] [natural-7em-column]{width:7em}.default natural-file a{background-color:#fff}.default natural-file .action-overlay{background-color:#b72ae2d9;color:#000000de}.default natural-file .file-preview{background-color:#2a7ae2d9;color:#fff}.default .mat-mdc-tab-labels,.default .mat-mdc-tab-links,.default .mdc-data-table__row:last-child .mdc-data-table__cell{border-bottom:1px solid rgba(0,0,0,.12)}.default .mat-mdc-dialog-container .mdc-dialog__content{color:#000000de}.default .natural-elevation{box-shadow:inset 0 1px #ffffff4d,0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}.default natural-editor .mat-mdc-icon-button,.default natural-editor .mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:4px}.default natural-editor button.mat-mdc-button.mat-mdc-button-base.mat-mdc-menu-trigger{height:50px}.default natural-editor .menu-container{background-color:#fafafa}.default natural-editor .menu,.default natural-editor .ProseMirror{background-color:#0000000a}.default natural-editor .menu{border-color:#0000006b}.default natural-editor placeholder{background:linear-gradient(90deg,#2a7ae2,#2a7ae2,#b72ae2,#2a7ae2,#2a7ae2)}.default app-home .mat-toolbar{background:#212121;color:#fff}.default app-home #menu{border-radius:4px;background:#2a7ae2;background:-moz-linear-gradient(bottom,#2a7ae2 50%,#b72ae2 150%);background:-webkit-linear-gradient(bottom,#2a7ae2 50%,#b72ae2 150%);background:linear-gradient(to bottom,#2a7ae2 50%,#b72ae2 150%)}.defaultDark{background:#303030;color:#fff;--mat-ripple-color: rgba(255, 255, 255, .1);--mat-option-selected-state-label-text-color: #2a7ae2;--mat-option-label-text-color: white;--mat-option-hover-state-layer-color: rgba(255, 255, 255, .08);--mat-option-focus-state-layer-color: rgba(255, 255, 255, .08);--mat-option-selected-state-layer-color: rgba(255, 255, 255, .08);--mat-optgroup-label-text-color: white;--mat-full-pseudo-checkbox-selected-icon-color: #b72ae2;--mat-full-pseudo-checkbox-selected-checkmark-color: #303030;--mat-full-pseudo-checkbox-unselected-icon-color: rgba(255, 255, 255, .7);--mat-full-pseudo-checkbox-disabled-selected-checkmark-color: #303030;--mat-full-pseudo-checkbox-disabled-unselected-icon-color: #686868;--mat-full-pseudo-checkbox-disabled-selected-icon-color: #686868;--mat-minimal-pseudo-checkbox-selected-checkmark-color: #b72ae2;--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: #686868;--mat-app-background-color: #303030;--mat-app-text-color: white;--mat-app-elevation-shadow-level-0: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-1: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-2: 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-3: 0px 3px 3px -2px rgba(0, 0, 0, .2), 0px 3px 4px 0px rgba(0, 0, 0, .14), 0px 1px 8px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-4: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-5: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 5px 8px 0px rgba(0, 0, 0, .14), 0px 1px 14px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-6: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-7: 0px 4px 5px -2px rgba(0, 0, 0, .2), 0px 7px 10px 1px rgba(0, 0, 0, .14), 0px 2px 16px 1px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-8: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-9: 0px 5px 6px -3px rgba(0, 0, 0, .2), 0px 9px 12px 1px rgba(0, 0, 0, .14), 0px 3px 16px 2px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-10: 0px 6px 6px -3px rgba(0, 0, 0, .2), 0px 10px 14px 1px rgba(0, 0, 0, .14), 0px 4px 18px 3px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-11: 0px 6px 7px -4px rgba(0, 0, 0, .2), 0px 11px 15px 1px rgba(0, 0, 0, .14), 0px 4px 20px 3px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-12: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-13: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 13px 19px 2px rgba(0, 0, 0, .14), 0px 5px 24px 4px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-14: 0px 7px 9px -4px rgba(0, 0, 0, .2), 0px 14px 21px 2px rgba(0, 0, 0, .14), 0px 5px 26px 4px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-15: 0px 8px 9px -5px rgba(0, 0, 0, .2), 0px 15px 22px 2px rgba(0, 0, 0, .14), 0px 6px 28px 5px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-16: 0px 8px 10px -5px rgba(0, 0, 0, .2), 0px 16px 24px 2px rgba(0, 0, 0, .14), 0px 6px 30px 5px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-17: 0px 8px 11px -5px rgba(0, 0, 0, .2), 0px 17px 26px 2px rgba(0, 0, 0, .14), 0px 6px 32px 5px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-18: 0px 9px 11px -5px rgba(0, 0, 0, .2), 0px 18px 28px 2px rgba(0, 0, 0, .14), 0px 7px 34px 6px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-19: 0px 9px 12px -6px rgba(0, 0, 0, .2), 0px 19px 29px 2px rgba(0, 0, 0, .14), 0px 7px 36px 6px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-20: 0px 10px 13px -6px rgba(0, 0, 0, .2), 0px 20px 31px 3px rgba(0, 0, 0, .14), 0px 8px 38px 7px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-21: 0px 10px 13px -6px rgba(0, 0, 0, .2), 0px 21px 33px 3px rgba(0, 0, 0, .14), 0px 8px 40px 7px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-22: 0px 10px 14px -6px rgba(0, 0, 0, .2), 0px 22px 35px 3px rgba(0, 0, 0, .14), 0px 8px 42px 7px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-23: 0px 11px 14px -7px rgba(0, 0, 0, .2), 0px 23px 36px 3px rgba(0, 0, 0, .14), 0px 9px 44px 8px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-24: 0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12);--mdc-elevated-card-container-shape: 4px;--mdc-outlined-card-container-shape: 4px;--mdc-outlined-card-outline-width: 1px;--mdc-elevated-card-container-color: #424242;--mdc-elevated-card-container-elevation: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mdc-outlined-card-container-color: #424242;--mdc-outlined-card-outline-color: rgba(255, 255, 255, .12);--mdc-outlined-card-container-elevation: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-card-subtitle-text-color: rgba(255, 255, 255, .7);--mdc-linear-progress-active-indicator-height: 4px;--mdc-linear-progress-track-height: 4px;--mdc-linear-progress-track-shape: 0;--mdc-plain-tooltip-container-shape: 4px;--mdc-plain-tooltip-supporting-text-line-height: 16px;--mdc-plain-tooltip-container-color: #616161;--mdc-plain-tooltip-supporting-text-color: #fff;--mdc-filled-text-field-active-indicator-height: 1px;--mdc-filled-text-field-focus-active-indicator-height: 2px;--mdc-filled-text-field-container-shape: 4px;--mdc-outlined-text-field-outline-width: 1px;--mdc-outlined-text-field-focus-outline-width: 2px;--mdc-outlined-text-field-container-shape: 4px;--mdc-filled-text-field-caret-color: #2a7ae2;--mdc-filled-text-field-focus-active-indicator-color: #2a7ae2;--mdc-filled-text-field-focus-label-text-color: rgba(42, 122, 226, .87);--mdc-filled-text-field-container-color: #4a4a4a;--mdc-filled-text-field-disabled-container-color: #464646;--mdc-filled-text-field-label-text-color: rgba(255, 255, 255, .6);--mdc-filled-text-field-hover-label-text-color: rgba(255, 255, 255, .6);--mdc-filled-text-field-disabled-label-text-color: rgba(255, 255, 255, .38);--mdc-filled-text-field-input-text-color: rgba(255, 255, 255, .87);--mdc-filled-text-field-disabled-input-text-color: rgba(255, 255, 255, .38);--mdc-filled-text-field-input-text-placeholder-color: rgba(255, 255, 255, .6);--mdc-filled-text-field-error-hover-label-text-color: #f44336;--mdc-filled-text-field-error-focus-label-text-color: #f44336;--mdc-filled-text-field-error-label-text-color: #f44336;--mdc-filled-text-field-error-caret-color: #f44336;--mdc-filled-text-field-active-indicator-color: rgba(255, 255, 255, .42);--mdc-filled-text-field-disabled-active-indicator-color: rgba(255, 255, 255, .06);--mdc-filled-text-field-hover-active-indicator-color: rgba(255, 255, 255, .87);--mdc-filled-text-field-error-active-indicator-color: #f44336;--mdc-filled-text-field-error-focus-active-indicator-color: #f44336;--mdc-filled-text-field-error-hover-active-indicator-color: #f44336;--mdc-outlined-text-field-caret-color: #2a7ae2;--mdc-outlined-text-field-focus-outline-color: #2a7ae2;--mdc-outlined-text-field-focus-label-text-color: rgba(42, 122, 226, .87);--mdc-outlined-text-field-label-text-color: rgba(255, 255, 255, .6);--mdc-outlined-text-field-hover-label-text-color: rgba(255, 255, 255, .6);--mdc-outlined-text-field-disabled-label-text-color: rgba(255, 255, 255, .38);--mdc-outlined-text-field-input-text-color: rgba(255, 255, 255, .87);--mdc-outlined-text-field-disabled-input-text-color: rgba(255, 255, 255, .38);--mdc-outlined-text-field-input-text-placeholder-color: rgba(255, 255, 255, .6);--mdc-outlined-text-field-error-caret-color: #f44336;--mdc-outlined-text-field-error-focus-label-text-color: #f44336;--mdc-outlined-text-field-error-label-text-color: #f44336;--mdc-outlined-text-field-error-hover-label-text-color: #f44336;--mdc-outlined-text-field-outline-color: rgba(255, 255, 255, .38);--mdc-outlined-text-field-disabled-outline-color: rgba(255, 255, 255, .06);--mdc-outlined-text-field-hover-outline-color: rgba(255, 255, 255, .87);--mdc-outlined-text-field-error-focus-outline-color: #f44336;--mdc-outlined-text-field-error-hover-outline-color: #f44336;--mdc-outlined-text-field-error-outline-color: #f44336;--mat-form-field-focus-select-arrow-color: rgba(42, 122, 226, .87);--mat-form-field-disabled-input-text-placeholder-color: rgba(255, 255, 255, .38);--mat-form-field-state-layer-color: rgba(255, 255, 255, .87);--mat-form-field-error-text-color: #f44336;--mat-form-field-select-option-text-color: rgba(0, 0, 0, .87);--mat-form-field-select-disabled-option-text-color: rgba(0, 0, 0, .38);--mat-form-field-leading-icon-color: unset;--mat-form-field-disabled-leading-icon-color: unset;--mat-form-field-trailing-icon-color: unset;--mat-form-field-disabled-trailing-icon-color: unset;--mat-form-field-error-focus-trailing-icon-color: unset;--mat-form-field-error-hover-trailing-icon-color: unset;--mat-form-field-error-trailing-icon-color: unset;--mat-form-field-enabled-select-arrow-color: rgba(255, 255, 255, .54);--mat-form-field-disabled-select-arrow-color: rgba(255, 255, 255, .38);--mat-form-field-hover-state-layer-opacity: .08;--mat-form-field-focus-state-layer-opacity: .24;--mat-select-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-select-panel-background-color: #424242;--mat-select-enabled-trigger-text-color: rgba(255, 255, 255, .87);--mat-select-disabled-trigger-text-color: rgba(255, 255, 255, .38);--mat-select-placeholder-text-color: rgba(255, 255, 255, .6);--mat-select-enabled-arrow-color: rgba(255, 255, 255, .54);--mat-select-disabled-arrow-color: rgba(255, 255, 255, .38);--mat-select-focused-arrow-color: rgba(42, 122, 226, .87);--mat-select-invalid-arrow-color: rgba(244, 67, 54, .87);--mat-autocomplete-container-shape: 4px;--mat-autocomplete-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-autocomplete-background-color: #424242;--mdc-dialog-container-shape: 4px;--mat-dialog-container-elevation-shadow: 0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12);--mat-dialog-container-max-width: 80vw;--mat-dialog-container-small-max-width: 80vw;--mat-dialog-container-min-width: 0;--mat-dialog-actions-alignment: start;--mat-dialog-actions-padding: 8px;--mat-dialog-content-padding: 20px 24px;--mat-dialog-with-actions-content-padding: 20px 24px;--mat-dialog-headline-padding: 0 24px 9px;--mdc-dialog-container-color: #424242;--mdc-dialog-subhead-color: rgba(255, 255, 255, .87);--mdc-dialog-supporting-text-color: rgba(255, 255, 255, .6);--mdc-switch-disabled-selected-icon-opacity: .38;--mdc-switch-disabled-track-opacity: .12;--mdc-switch-disabled-unselected-icon-opacity: .38;--mdc-switch-handle-height: 20px;--mdc-switch-handle-shape: 10px;--mdc-switch-handle-width: 20px;--mdc-switch-selected-icon-size: 18px;--mdc-switch-track-height: 14px;--mdc-switch-track-shape: 7px;--mdc-switch-track-width: 36px;--mdc-switch-unselected-icon-size: 18px;--mdc-switch-selected-focus-state-layer-opacity: .12;--mdc-switch-selected-hover-state-layer-opacity: .04;--mdc-switch-selected-pressed-state-layer-opacity: .1;--mdc-switch-unselected-focus-state-layer-opacity: .12;--mdc-switch-unselected-hover-state-layer-opacity: .04;--mdc-switch-unselected-pressed-state-layer-opacity: .1;--mdc-switch-selected-focus-state-layer-color: #77aaec;--mdc-switch-selected-handle-color: #77aaec;--mdc-switch-selected-hover-state-layer-color: #77aaec;--mdc-switch-selected-pressed-state-layer-color: #77aaec;--mdc-switch-selected-focus-handle-color: #9ec2f1;--mdc-switch-selected-hover-handle-color: #9ec2f1;--mdc-switch-selected-pressed-handle-color: #9ec2f1;--mdc-switch-selected-focus-track-color: #2364b9;--mdc-switch-selected-hover-track-color: #2364b9;--mdc-switch-selected-pressed-track-color: #2364b9;--mdc-switch-selected-track-color: #2364b9;--mdc-switch-disabled-selected-handle-color: #000;--mdc-switch-disabled-selected-icon-color: #212121;--mdc-switch-disabled-selected-track-color: #f5f5f5;--mdc-switch-disabled-unselected-handle-color: #000;--mdc-switch-disabled-unselected-icon-color: #212121;--mdc-switch-disabled-unselected-track-color: #f5f5f5;--mdc-switch-handle-surface-color: #fff;--mdc-switch-selected-icon-color: #212121;--mdc-switch-unselected-focus-handle-color: #fafafa;--mdc-switch-unselected-focus-state-layer-color: #f5f5f5;--mdc-switch-unselected-focus-track-color: #616161;--mdc-switch-unselected-handle-color: #9e9e9e;--mdc-switch-unselected-hover-handle-color: #fafafa;--mdc-switch-unselected-hover-state-layer-color: #f5f5f5;--mdc-switch-unselected-hover-track-color: #616161;--mdc-switch-unselected-icon-color: #212121;--mdc-switch-unselected-pressed-handle-color: #fafafa;--mdc-switch-unselected-pressed-state-layer-color: #f5f5f5;--mdc-switch-unselected-pressed-track-color: #616161;--mdc-switch-unselected-track-color: #616161;--mdc-switch-handle-elevation-shadow: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mdc-switch-disabled-handle-elevation-shadow: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mdc-switch-disabled-label-text-color: rgba(255, 255, 255, .5);--mdc-radio-disabled-selected-icon-opacity: .38;--mdc-radio-disabled-unselected-icon-opacity: .38;--mdc-radio-state-layer-size: 40px;--mdc-slider-active-track-height: 6px;--mdc-slider-active-track-shape: 9999px;--mdc-slider-handle-height: 20px;--mdc-slider-handle-shape: 50%;--mdc-slider-handle-width: 20px;--mdc-slider-inactive-track-height: 4px;--mdc-slider-inactive-track-shape: 9999px;--mdc-slider-with-overlap-handle-outline-width: 1px;--mdc-slider-with-tick-marks-active-container-opacity: .6;--mdc-slider-with-tick-marks-container-shape: 50%;--mdc-slider-with-tick-marks-container-size: 2px;--mdc-slider-with-tick-marks-inactive-container-opacity: .6;--mdc-slider-handle-elevation: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-slider-value-indicator-width: auto;--mat-slider-value-indicator-height: 32px;--mat-slider-value-indicator-caret-display: block;--mat-slider-value-indicator-border-radius: 4px;--mat-slider-value-indicator-padding: 0 12px;--mat-slider-value-indicator-text-transform: none;--mat-slider-value-indicator-container-transform: translateX(-50%);--mdc-slider-handle-color: #2a7ae2;--mdc-slider-focus-handle-color: #2a7ae2;--mdc-slider-hover-handle-color: #2a7ae2;--mdc-slider-active-track-color: #2a7ae2;--mdc-slider-inactive-track-color: #2a7ae2;--mdc-slider-with-tick-marks-inactive-container-color: #2a7ae2;--mdc-slider-with-tick-marks-active-container-color: white;--mdc-slider-disabled-active-track-color: #fff;--mdc-slider-disabled-handle-color: #fff;--mdc-slider-disabled-inactive-track-color: #fff;--mdc-slider-label-container-color: #fff;--mdc-slider-label-label-text-color: #000;--mdc-slider-with-overlap-handle-outline-color: #fff;--mdc-slider-with-tick-marks-disabled-container-color: #fff;--mat-slider-ripple-color: #2a7ae2;--mat-slider-hover-state-layer-color: rgba(42, 122, 226, .05);--mat-slider-focus-state-layer-color: rgba(42, 122, 226, .2);--mat-slider-value-indicator-opacity: .9;--mat-menu-container-shape: 4px;--mat-menu-divider-bottom-spacing: 0;--mat-menu-divider-top-spacing: 0;--mat-menu-item-spacing: 16px;--mat-menu-item-icon-size: 24px;--mat-menu-item-leading-spacing: 16px;--mat-menu-item-trailing-spacing: 16px;--mat-menu-item-with-icon-leading-spacing: 16px;--mat-menu-item-with-icon-trailing-spacing: 16px;--mat-menu-base-elevation-level: 8;--mat-menu-item-label-text-color: white;--mat-menu-item-icon-color: white;--mat-menu-item-hover-state-layer-color: rgba(255, 255, 255, .08);--mat-menu-item-focus-state-layer-color: rgba(255, 255, 255, .08);--mat-menu-container-color: #424242;--mat-menu-divider-color: rgba(255, 255, 255, .12);--mdc-list-list-item-container-shape: 0;--mdc-list-list-item-leading-avatar-shape: 50%;--mdc-list-list-item-container-color: transparent;--mdc-list-list-item-selected-container-color: transparent;--mdc-list-list-item-leading-avatar-color: transparent;--mdc-list-list-item-leading-icon-size: 24px;--mdc-list-list-item-leading-avatar-size: 40px;--mdc-list-list-item-trailing-icon-size: 24px;--mdc-list-list-item-disabled-state-layer-color: transparent;--mdc-list-list-item-disabled-state-layer-opacity: 0;--mdc-list-list-item-disabled-label-text-opacity: .38;--mdc-list-list-item-disabled-leading-icon-opacity: .38;--mdc-list-list-item-disabled-trailing-icon-opacity: .38;--mat-list-active-indicator-color: transparent;--mat-list-active-indicator-shape: 4px;--mdc-list-list-item-label-text-color: white;--mdc-list-list-item-supporting-text-color: rgba(255, 255, 255, .7);--mdc-list-list-item-leading-icon-color: rgba(255, 255, 255, .5);--mdc-list-list-item-trailing-supporting-text-color: rgba(255, 255, 255, .5);--mdc-list-list-item-trailing-icon-color: rgba(255, 255, 255, .5);--mdc-list-list-item-selected-trailing-icon-color: rgba(255, 255, 255, .5);--mdc-list-list-item-disabled-label-text-color: white;--mdc-list-list-item-disabled-leading-icon-color: white;--mdc-list-list-item-disabled-trailing-icon-color: white;--mdc-list-list-item-hover-label-text-color: white;--mdc-list-list-item-hover-leading-icon-color: rgba(255, 255, 255, .5);--mdc-list-list-item-hover-trailing-icon-color: rgba(255, 255, 255, .5);--mdc-list-list-item-focus-label-text-color: white;--mdc-list-list-item-hover-state-layer-color: white;--mdc-list-list-item-hover-state-layer-opacity: .08;--mdc-list-list-item-focus-state-layer-color: white;--mdc-list-list-item-focus-state-layer-opacity: .24;--mat-paginator-container-text-color: rgba(255, 255, 255, .87);--mat-paginator-container-background-color: #424242;--mat-paginator-enabled-icon-color: rgba(255, 255, 255, .54);--mat-paginator-disabled-icon-color: rgba(255, 255, 255, .12);--mdc-secondary-navigation-tab-container-height: 48px;--mdc-tab-indicator-active-indicator-height: 2px;--mdc-tab-indicator-active-indicator-shape: 0;--mat-tab-header-divider-color: transparent;--mat-tab-header-divider-height: 0;--mdc-checkbox-disabled-selected-checkmark-color: #fff;--mdc-checkbox-selected-focus-state-layer-opacity: .16;--mdc-checkbox-selected-hover-state-layer-opacity: .04;--mdc-checkbox-selected-pressed-state-layer-opacity: .16;--mdc-checkbox-unselected-focus-state-layer-opacity: .16;--mdc-checkbox-unselected-hover-state-layer-opacity: .04;--mdc-checkbox-unselected-pressed-state-layer-opacity: .16;--mdc-checkbox-disabled-selected-icon-color: rgba(255, 255, 255, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(255, 255, 255, .38);--mdc-checkbox-selected-checkmark-color: black;--mdc-checkbox-selected-focus-icon-color: #b72ae2;--mdc-checkbox-selected-hover-icon-color: #b72ae2;--mdc-checkbox-selected-icon-color: #b72ae2;--mdc-checkbox-selected-pressed-icon-color: #b72ae2;--mdc-checkbox-unselected-focus-icon-color: #eeeeee;--mdc-checkbox-unselected-hover-icon-color: #eeeeee;--mdc-checkbox-unselected-icon-color: rgba(255, 255, 255, .54);--mdc-checkbox-selected-focus-state-layer-color: #b72ae2;--mdc-checkbox-selected-hover-state-layer-color: #b72ae2;--mdc-checkbox-selected-pressed-state-layer-color: #b72ae2;--mdc-checkbox-unselected-focus-state-layer-color: white;--mdc-checkbox-unselected-hover-state-layer-color: white;--mdc-checkbox-unselected-pressed-state-layer-color: white;--mat-checkbox-disabled-label-color: rgba(255, 255, 255, .5);--mat-checkbox-label-text-color: white;--mdc-text-button-container-shape: 4px;--mdc-text-button-keep-touch-target: false;--mdc-filled-button-container-shape: 4px;--mdc-filled-button-keep-touch-target: false;--mdc-protected-button-container-shape: 4px;--mdc-protected-button-container-elevation-shadow: 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12);--mdc-protected-button-disabled-container-elevation-shadow: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mdc-protected-button-focus-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mdc-protected-button-hover-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mdc-protected-button-pressed-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-outlined-button-keep-touch-target: false;--mdc-outlined-button-outline-width: 1px;--mdc-outlined-button-container-shape: 4px;--mat-text-button-horizontal-padding: 8px;--mat-text-button-with-icon-horizontal-padding: 8px;--mat-text-button-icon-spacing: 8px;--mat-text-button-icon-offset: 0;--mat-filled-button-horizontal-padding: 16px;--mat-filled-button-icon-spacing: 8px;--mat-filled-button-icon-offset: -4px;--mat-protected-button-horizontal-padding: 16px;--mat-protected-button-icon-spacing: 8px;--mat-protected-button-icon-offset: -4px;--mat-outlined-button-horizontal-padding: 15px;--mat-outlined-button-icon-spacing: 8px;--mat-outlined-button-icon-offset: -4px;--mdc-text-button-label-text-color: white;--mdc-text-button-disabled-label-text-color: rgba(255, 255, 255, .5);--mat-text-button-state-layer-color: white;--mat-text-button-disabled-state-layer-color: white;--mat-text-button-ripple-color: rgba(255, 255, 255, .1);--mat-text-button-hover-state-layer-opacity: .08;--mat-text-button-focus-state-layer-opacity: .24;--mat-text-button-pressed-state-layer-opacity: .24;--mdc-filled-button-container-color: #424242;--mdc-filled-button-label-text-color: white;--mdc-filled-button-disabled-container-color: rgba(255, 255, 255, .12);--mdc-filled-button-disabled-label-text-color: rgba(255, 255, 255, .5);--mat-filled-button-state-layer-color: white;--mat-filled-button-disabled-state-layer-color: white;--mat-filled-button-ripple-color: rgba(255, 255, 255, .1);--mat-filled-button-hover-state-layer-opacity: .08;--mat-filled-button-focus-state-layer-opacity: .24;--mat-filled-button-pressed-state-layer-opacity: .24;--mdc-protected-button-container-color: #424242;--mdc-protected-button-label-text-color: white;--mdc-protected-button-disabled-container-color: rgba(255, 255, 255, .12);--mdc-protected-button-disabled-label-text-color: rgba(255, 255, 255, .5);--mat-protected-button-state-layer-color: white;--mat-protected-button-disabled-state-layer-color: white;--mat-protected-button-ripple-color: rgba(255, 255, 255, .1);--mat-protected-button-hover-state-layer-opacity: .08;--mat-protected-button-focus-state-layer-opacity: .24;--mat-protected-button-pressed-state-layer-opacity: .24;--mdc-outlined-button-disabled-outline-color: rgba(255, 255, 255, .12);--mdc-outlined-button-disabled-label-text-color: rgba(255, 255, 255, .5);--mdc-outlined-button-label-text-color: white;--mdc-outlined-button-outline-color: rgba(255, 255, 255, .12);--mat-outlined-button-state-layer-color: white;--mat-outlined-button-disabled-state-layer-color: white;--mat-outlined-button-ripple-color: rgba(255, 255, 255, .1);--mat-outlined-button-hover-state-layer-opacity: .08;--mat-outlined-button-focus-state-layer-opacity: .24;--mat-outlined-button-pressed-state-layer-opacity: .24;--mdc-icon-button-icon-size: 24px;--mdc-icon-button-icon-color: inherit;--mdc-icon-button-disabled-icon-color: rgba(255, 255, 255, .5);--mat-icon-button-state-layer-color: white;--mat-icon-button-disabled-state-layer-color: white;--mat-icon-button-ripple-color: rgba(255, 255, 255, .1);--mat-icon-button-hover-state-layer-opacity: .08;--mat-icon-button-focus-state-layer-opacity: .24;--mat-icon-button-pressed-state-layer-opacity: .24;--mdc-fab-container-shape: 50%;--mdc-fab-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mdc-fab-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-fab-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-fab-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mdc-fab-small-container-shape: 50%;--mdc-fab-small-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mdc-fab-small-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-fab-small-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-fab-small-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mdc-extended-fab-container-height: 48px;--mdc-extended-fab-container-shape: 24px;--mdc-extended-fab-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mdc-extended-fab-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-extended-fab-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mdc-extended-fab-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mdc-fab-container-color: #424242;--mat-fab-foreground-color: white;--mat-fab-state-layer-color: white;--mat-fab-disabled-state-layer-color: white;--mat-fab-ripple-color: rgba(255, 255, 255, .1);--mat-fab-hover-state-layer-opacity: .08;--mat-fab-focus-state-layer-opacity: .24;--mat-fab-pressed-state-layer-opacity: .24;--mat-fab-disabled-state-container-color: rgba(255, 255, 255, .12);--mat-fab-disabled-state-foreground-color: rgba(255, 255, 255, .5);--mdc-fab-small-container-color: #424242;--mat-fab-small-foreground-color: white;--mat-fab-small-state-layer-color: white;--mat-fab-small-disabled-state-layer-color: white;--mat-fab-small-ripple-color: rgba(255, 255, 255, .1);--mat-fab-small-hover-state-layer-opacity: .08;--mat-fab-small-focus-state-layer-opacity: .24;--mat-fab-small-pressed-state-layer-opacity: .24;--mat-fab-small-disabled-state-container-color: rgba(255, 255, 255, .12);--mat-fab-small-disabled-state-foreground-color: rgba(255, 255, 255, .5);--mdc-snackbar-container-shape: 4px;--mdc-snackbar-container-color: #d9d9d9;--mdc-snackbar-supporting-text-color: rgba(66, 66, 66, .87);--mat-snack-bar-button-color: rgba(0, 0, 0, .87);--mat-table-row-item-outline-width: 1px;--mat-table-background-color: #424242;--mat-table-header-headline-color: white;--mat-table-row-item-label-text-color: white;--mat-table-row-item-outline-color: rgba(255, 255, 255, .12);--mdc-circular-progress-active-indicator-width: 4px;--mdc-circular-progress-size: 48px;--mdc-circular-progress-active-indicator-color: #2a7ae2;--mat-badge-container-shape: 50%;--mat-badge-container-size: unset;--mat-badge-small-size-container-size: unset;--mat-badge-large-size-container-size: unset;--mat-badge-legacy-container-size: 22px;--mat-badge-legacy-small-size-container-size: 16px;--mat-badge-legacy-large-size-container-size: 28px;--mat-badge-container-offset: -11px 0;--mat-badge-small-size-container-offset: -8px 0;--mat-badge-large-size-container-offset: -14px 0;--mat-badge-container-overlap-offset: -11px;--mat-badge-small-size-container-overlap-offset: -8px;--mat-badge-large-size-container-overlap-offset: -14px;--mat-badge-container-padding: 0;--mat-badge-small-size-container-padding: 0;--mat-badge-large-size-container-padding: 0;--mat-badge-background-color: #2a7ae2;--mat-badge-text-color: white;--mat-badge-disabled-state-background-color: #6e6e6e;--mat-badge-disabled-state-text-color: rgba(255, 255, 255, .5);--mat-bottom-sheet-container-shape: 4px;--mat-bottom-sheet-container-text-color: white;--mat-bottom-sheet-container-background-color: #424242;--mat-legacy-button-toggle-height: 36px;--mat-legacy-button-toggle-shape: 2px;--mat-legacy-button-toggle-focus-state-layer-opacity: 1;--mat-standard-button-toggle-shape: 4px;--mat-standard-button-toggle-hover-state-layer-opacity: .04;--mat-standard-button-toggle-focus-state-layer-opacity: .12;--mat-legacy-button-toggle-text-color: rgba(255, 255, 255, .5);--mat-legacy-button-toggle-state-layer-color: rgba(255, 255, 255, .12);--mat-legacy-button-toggle-selected-state-text-color: rgba(255, 255, 255, .7);--mat-legacy-button-toggle-selected-state-background-color: #212121;--mat-legacy-button-toggle-disabled-state-text-color: rgba(255, 255, 255, .3);--mat-legacy-button-toggle-disabled-state-background-color: black;--mat-legacy-button-toggle-disabled-selected-state-background-color: #424242;--mat-standard-button-toggle-text-color: white;--mat-standard-button-toggle-background-color: #424242;--mat-standard-button-toggle-state-layer-color: white;--mat-standard-button-toggle-selected-state-background-color: #212121;--mat-standard-button-toggle-selected-state-text-color: white;--mat-standard-button-toggle-disabled-state-text-color: rgba(255, 255, 255, .3);--mat-standard-button-toggle-disabled-state-background-color: #424242;--mat-standard-button-toggle-disabled-selected-state-text-color: white;--mat-standard-button-toggle-disabled-selected-state-background-color: #424242;--mat-standard-button-toggle-divider-color: #595959;--mat-datepicker-calendar-container-shape: 4px;--mat-datepicker-calendar-container-touch-shape: 4px;--mat-datepicker-calendar-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mat-datepicker-calendar-container-touch-elevation-shadow: 0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12);--mat-datepicker-calendar-date-selected-state-text-color: white;--mat-datepicker-calendar-date-selected-state-background-color: #2a7ae2;--mat-datepicker-calendar-date-selected-disabled-state-background-color: rgba(42, 122, 226, .4);--mat-datepicker-calendar-date-today-selected-state-outline-color: white;--mat-datepicker-calendar-date-focus-state-background-color: rgba(42, 122, 226, .3);--mat-datepicker-calendar-date-hover-state-background-color: rgba(42, 122, 226, .3);--mat-datepicker-toggle-active-state-icon-color: #2a7ae2;--mat-datepicker-calendar-date-in-range-state-background-color: rgba(42, 122, 226, .2);--mat-datepicker-calendar-date-in-comparison-range-state-background-color: rgba(249, 171, 0, .2);--mat-datepicker-calendar-date-in-overlap-range-state-background-color: #a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color: #46a35e;--mat-datepicker-toggle-icon-color: white;--mat-datepicker-calendar-body-label-text-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-period-button-text-color: white;--mat-datepicker-calendar-period-button-icon-color: white;--mat-datepicker-calendar-navigation-button-icon-color: white;--mat-datepicker-calendar-header-divider-color: rgba(255, 255, 255, .12);--mat-datepicker-calendar-header-text-color: rgba(255, 255, 255, .7);--mat-datepicker-calendar-date-today-outline-color: rgba(255, 255, 255, .5);--mat-datepicker-calendar-date-today-disabled-state-outline-color: rgba(255, 255, 255, .3);--mat-datepicker-calendar-date-text-color: white;--mat-datepicker-calendar-date-outline-color: transparent;--mat-datepicker-calendar-date-disabled-state-text-color: rgba(255, 255, 255, .5);--mat-datepicker-calendar-date-preview-state-outline-color: rgba(255, 255, 255, .24);--mat-datepicker-range-input-separator-color: white;--mat-datepicker-range-input-disabled-state-separator-color: rgba(255, 255, 255, .5);--mat-datepicker-range-input-disabled-state-text-color: rgba(255, 255, 255, .5);--mat-datepicker-calendar-container-background-color: #424242;--mat-datepicker-calendar-container-text-color: white;--mat-divider-width: 1px;--mat-divider-color: rgba(255, 255, 255, .12);--mat-expansion-container-shape: 4px;--mat-expansion-legacy-header-indicator-display: inline-block;--mat-expansion-header-indicator-display: none;--mat-expansion-container-background-color: #424242;--mat-expansion-container-text-color: white;--mat-expansion-actions-divider-color: rgba(255, 255, 255, .12);--mat-expansion-header-hover-state-layer-color: rgba(255, 255, 255, .04);--mat-expansion-header-focus-state-layer-color: rgba(255, 255, 255, .04);--mat-expansion-header-disabled-state-text-color: rgba(255, 255, 255, .3);--mat-expansion-header-text-color: white;--mat-expansion-header-description-color: rgba(255, 255, 255, .7);--mat-expansion-header-indicator-color: rgba(255, 255, 255, .7);--mat-icon-color: inherit;--mat-sidenav-container-shape: 0;--mat-sidenav-container-elevation-shadow: 0px 8px 10px -5px rgba(0, 0, 0, .2), 0px 16px 24px 2px rgba(0, 0, 0, .14), 0px 6px 30px 5px rgba(0, 0, 0, .12);--mat-sidenav-container-width: auto;--mat-sidenav-container-divider-color: rgba(255, 255, 255, .12);--mat-sidenav-container-background-color: #424242;--mat-sidenav-container-text-color: white;--mat-sidenav-content-background-color: #303030;--mat-sidenav-content-text-color: white;--mat-sidenav-scrim-color: rgba(189, 189, 189, .6);--mat-stepper-header-icon-foreground-color: white;--mat-stepper-header-selected-state-icon-background-color: #2a7ae2;--mat-stepper-header-selected-state-icon-foreground-color: white;--mat-stepper-header-done-state-icon-background-color: #2a7ae2;--mat-stepper-header-done-state-icon-foreground-color: white;--mat-stepper-header-edit-state-icon-background-color: #2a7ae2;--mat-stepper-header-edit-state-icon-foreground-color: white;--mat-stepper-container-color: #424242;--mat-stepper-line-color: rgba(255, 255, 255, .12);--mat-stepper-header-hover-state-layer-color: rgba(255, 255, 255, .04);--mat-stepper-header-focus-state-layer-color: rgba(255, 255, 255, .04);--mat-stepper-header-label-text-color: rgba(255, 255, 255, .7);--mat-stepper-header-optional-label-text-color: rgba(255, 255, 255, .7);--mat-stepper-header-selected-state-label-text-color: white;--mat-stepper-header-error-state-label-text-color: #f44336;--mat-stepper-header-icon-background-color: rgba(255, 255, 255, .7);--mat-stepper-header-error-state-icon-foreground-color: #f44336;--mat-stepper-header-error-state-icon-background-color: transparent;--mat-sort-arrow-color: #c6c6c6;--mat-toolbar-container-background-color: #212121;--mat-toolbar-container-text-color: white;--mat-tree-container-background-color: #424242;--mat-tree-node-text-color: white}.defaultDark .mat-accent{--mat-option-selected-state-label-text-color: #b72ae2;--mat-option-label-text-color: white;--mat-option-hover-state-layer-color: rgba(255, 255, 255, .08);--mat-option-focus-state-layer-color: rgba(255, 255, 255, .08);--mat-option-selected-state-layer-color: rgba(255, 255, 255, .08)}.defaultDark .mat-warn{--mat-option-selected-state-label-text-color: #f44336;--mat-option-label-text-color: white;--mat-option-hover-state-layer-color: rgba(255, 255, 255, .08);--mat-option-focus-state-layer-color: rgba(255, 255, 255, .08);--mat-option-selected-state-layer-color: rgba(255, 255, 255, .08)}.defaultDark .mat-primary{--mat-full-pseudo-checkbox-selected-icon-color: #2a7ae2;--mat-full-pseudo-checkbox-selected-checkmark-color: #303030;--mat-full-pseudo-checkbox-unselected-icon-color: rgba(255, 255, 255, .7);--mat-full-pseudo-checkbox-disabled-selected-checkmark-color: #303030;--mat-full-pseudo-checkbox-disabled-unselected-icon-color: #686868;--mat-full-pseudo-checkbox-disabled-selected-icon-color: #686868;--mat-minimal-pseudo-checkbox-selected-checkmark-color: #2a7ae2;--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: #686868}.defaultDark .mat-accent{--mat-full-pseudo-checkbox-selected-icon-color: #b72ae2;--mat-full-pseudo-checkbox-selected-checkmark-color: #303030;--mat-full-pseudo-checkbox-unselected-icon-color: rgba(255, 255, 255, .7);--mat-full-pseudo-checkbox-disabled-selected-checkmark-color: #303030;--mat-full-pseudo-checkbox-disabled-unselected-icon-color: #686868;--mat-full-pseudo-checkbox-disabled-selected-icon-color: #686868;--mat-minimal-pseudo-checkbox-selected-checkmark-color: #b72ae2;--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: #686868}.defaultDark .mat-warn{--mat-full-pseudo-checkbox-selected-icon-color: #f44336;--mat-full-pseudo-checkbox-selected-checkmark-color: #303030;--mat-full-pseudo-checkbox-unselected-icon-color: rgba(255, 255, 255, .7);--mat-full-pseudo-checkbox-disabled-selected-checkmark-color: #303030;--mat-full-pseudo-checkbox-disabled-unselected-icon-color: #686868;--mat-full-pseudo-checkbox-disabled-selected-icon-color: #686868;--mat-minimal-pseudo-checkbox-selected-checkmark-color: #f44336;--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: #686868}.defaultDark .mat-mdc-progress-bar{--mdc-linear-progress-active-indicator-color: #2a7ae2;--mdc-linear-progress-track-color: rgba(42, 122, 226, .25)}.defaultDark .mat-mdc-progress-bar.mat-accent{--mdc-linear-progress-active-indicator-color: #b72ae2;--mdc-linear-progress-track-color: rgba(183, 42, 226, .25)}.defaultDark .mat-mdc-progress-bar.mat-warn{--mdc-linear-progress-active-indicator-color: #f44336;--mdc-linear-progress-track-color: rgba(244, 67, 54, .25)}.defaultDark .mat-mdc-form-field.mat-accent{--mdc-filled-text-field-caret-color: #b72ae2;--mdc-filled-text-field-focus-active-indicator-color: #b72ae2;--mdc-filled-text-field-focus-label-text-color: rgba(183, 42, 226, .87);--mdc-outlined-text-field-caret-color: #b72ae2;--mdc-outlined-text-field-focus-outline-color: #b72ae2;--mdc-outlined-text-field-focus-label-text-color: rgba(183, 42, 226, .87);--mat-form-field-focus-select-arrow-color: rgba(183, 42, 226, .87)}.defaultDark .mat-mdc-form-field.mat-warn{--mdc-filled-text-field-caret-color: #f44336;--mdc-filled-text-field-focus-active-indicator-color: #f44336;--mdc-filled-text-field-focus-label-text-color: rgba(244, 67, 54, .87);--mdc-outlined-text-field-caret-color: #f44336;--mdc-outlined-text-field-focus-outline-color: #f44336;--mdc-outlined-text-field-focus-label-text-color: rgba(244, 67, 54, .87);--mat-form-field-focus-select-arrow-color: rgba(244, 67, 54, .87)}.defaultDark .mat-mdc-form-field.mat-accent{--mat-select-panel-background-color: #424242;--mat-select-enabled-trigger-text-color: rgba(255, 255, 255, .87);--mat-select-disabled-trigger-text-color: rgba(255, 255, 255, .38);--mat-select-placeholder-text-color: rgba(255, 255, 255, .6);--mat-select-enabled-arrow-color: rgba(255, 255, 255, .54);--mat-select-disabled-arrow-color: rgba(255, 255, 255, .38);--mat-select-focused-arrow-color: rgba(183, 42, 226, .87);--mat-select-invalid-arrow-color: rgba(244, 67, 54, .87)}.defaultDark .mat-mdc-form-field.mat-warn{--mat-select-panel-background-color: #424242;--mat-select-enabled-trigger-text-color: rgba(255, 255, 255, .87);--mat-select-disabled-trigger-text-color: rgba(255, 255, 255, .38);--mat-select-placeholder-text-color: rgba(255, 255, 255, .6);--mat-select-enabled-arrow-color: rgba(255, 255, 255, .54);--mat-select-disabled-arrow-color: rgba(255, 255, 255, .38);--mat-select-focused-arrow-color: rgba(244, 67, 54, .87);--mat-select-invalid-arrow-color: rgba(244, 67, 54, .87)}.defaultDark .mat-mdc-standard-chip{--mdc-chip-container-shape-radius: 16px;--mdc-chip-with-avatar-avatar-shape-radius: 14px;--mdc-chip-with-avatar-avatar-size: 28px;--mdc-chip-with-icon-icon-size: 18px;--mdc-chip-outline-width: 0;--mdc-chip-outline-color: transparent;--mdc-chip-disabled-outline-color: transparent;--mdc-chip-focus-outline-color: transparent;--mdc-chip-hover-state-layer-opacity: .04;--mdc-chip-with-avatar-disabled-avatar-opacity: 1;--mdc-chip-flat-selected-outline-width: 0;--mdc-chip-selected-hover-state-layer-opacity: .04;--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity: 1;--mdc-chip-with-icon-disabled-icon-opacity: 1;--mat-chip-disabled-container-opacity: .4;--mat-chip-trailing-action-opacity: .54;--mat-chip-trailing-action-focus-opacity: 1;--mat-chip-trailing-action-state-layer-color: transparent;--mat-chip-selected-trailing-action-state-layer-color: transparent;--mat-chip-trailing-action-hover-state-layer-opacity: 0;--mat-chip-trailing-action-focus-state-layer-opacity: 0}.defaultDark .mat-mdc-standard-chip{--mdc-chip-disabled-label-text-color: #fafafa;--mdc-chip-elevated-container-color: #595959;--mdc-chip-elevated-selected-container-color: #595959;--mdc-chip-elevated-disabled-container-color: #595959;--mdc-chip-flat-disabled-selected-container-color: #595959;--mdc-chip-focus-state-layer-color: white;--mdc-chip-hover-state-layer-color: white;--mdc-chip-selected-hover-state-layer-color: white;--mdc-chip-focus-state-layer-opacity: .12;--mdc-chip-selected-focus-state-layer-color: white;--mdc-chip-selected-focus-state-layer-opacity: .12;--mdc-chip-label-text-color: #fafafa;--mdc-chip-selected-label-text-color: #fafafa;--mdc-chip-with-icon-icon-color: #fafafa;--mdc-chip-with-icon-disabled-icon-color: #fafafa;--mdc-chip-with-icon-selected-icon-color: #fafafa;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color: #fafafa;--mdc-chip-with-trailing-icon-trailing-icon-color: #fafafa;--mat-chip-selected-disabled-trailing-icon-color: #fafafa;--mat-chip-selected-trailing-icon-color: #fafafa}.defaultDark .mat-mdc-standard-chip.mat-mdc-chip-selected.mat-primary,.defaultDark .mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-primary{--mdc-chip-disabled-label-text-color: white;--mdc-chip-elevated-container-color: #2a7ae2;--mdc-chip-elevated-selected-container-color: #2a7ae2;--mdc-chip-elevated-disabled-container-color: #2a7ae2;--mdc-chip-flat-disabled-selected-container-color: #2a7ae2;--mdc-chip-focus-state-layer-color: white;--mdc-chip-hover-state-layer-color: white;--mdc-chip-selected-hover-state-layer-color: white;--mdc-chip-focus-state-layer-opacity: .12;--mdc-chip-selected-focus-state-layer-color: white;--mdc-chip-selected-focus-state-layer-opacity: .12;--mdc-chip-label-text-color: white;--mdc-chip-selected-label-text-color: white;--mdc-chip-with-icon-icon-color: white;--mdc-chip-with-icon-disabled-icon-color: white;--mdc-chip-with-icon-selected-icon-color: white;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mdc-chip-with-trailing-icon-trailing-icon-color: white;--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-trailing-icon-color: white}.defaultDark .mat-mdc-standard-chip.mat-mdc-chip-selected.mat-accent,.defaultDark .mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-accent{--mdc-chip-disabled-label-text-color: rgba(0, 0, 0, .87);--mdc-chip-elevated-container-color: #b72ae2;--mdc-chip-elevated-selected-container-color: #b72ae2;--mdc-chip-elevated-disabled-container-color: #b72ae2;--mdc-chip-flat-disabled-selected-container-color: #b72ae2;--mdc-chip-focus-state-layer-color: white;--mdc-chip-hover-state-layer-color: white;--mdc-chip-selected-hover-state-layer-color: white;--mdc-chip-focus-state-layer-opacity: .12;--mdc-chip-selected-focus-state-layer-color: white;--mdc-chip-selected-focus-state-layer-opacity: .12;--mdc-chip-label-text-color: rgba(0, 0, 0, .87);--mdc-chip-selected-label-text-color: rgba(0, 0, 0, .87);--mdc-chip-with-icon-icon-color: rgba(0, 0, 0, .87);--mdc-chip-with-icon-disabled-icon-color: rgba(0, 0, 0, .87);--mdc-chip-with-icon-selected-icon-color: rgba(0, 0, 0, .87);--mdc-chip-with-trailing-icon-disabled-trailing-icon-color: rgba(0, 0, 0, .87);--mdc-chip-with-trailing-icon-trailing-icon-color: rgba(0, 0, 0, .87);--mat-chip-selected-disabled-trailing-icon-color: rgba(0, 0, 0, .87);--mat-chip-selected-trailing-icon-color: rgba(0, 0, 0, .87)}.defaultDark .mat-mdc-standard-chip.mat-mdc-chip-selected.mat-warn,.defaultDark .mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-warn{--mdc-chip-disabled-label-text-color: white;--mdc-chip-elevated-container-color: #f44336;--mdc-chip-elevated-selected-container-color: #f44336;--mdc-chip-elevated-disabled-container-color: #f44336;--mdc-chip-flat-disabled-selected-container-color: #f44336;--mdc-chip-focus-state-layer-color: white;--mdc-chip-hover-state-layer-color: white;--mdc-chip-selected-hover-state-layer-color: white;--mdc-chip-focus-state-layer-opacity: .12;--mdc-chip-selected-focus-state-layer-color: white;--mdc-chip-selected-focus-state-layer-opacity: .12;--mdc-chip-label-text-color: white;--mdc-chip-selected-label-text-color: white;--mdc-chip-with-icon-icon-color: white;--mdc-chip-with-icon-disabled-icon-color: white;--mdc-chip-with-icon-selected-icon-color: white;--mdc-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mdc-chip-with-trailing-icon-trailing-icon-color: white;--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-trailing-icon-color: white}.defaultDark .mat-mdc-slide-toggle{--mat-switch-disabled-selected-handle-opacity: .38;--mat-switch-disabled-unselected-handle-opacity: .38;--mat-switch-unselected-handle-size: 20px;--mat-switch-selected-handle-size: 20px;--mat-switch-pressed-handle-size: 20px;--mat-switch-with-icon-handle-size: 20px;--mat-switch-selected-handle-horizontal-margin: 0;--mat-switch-selected-with-icon-handle-horizontal-margin: 0;--mat-switch-selected-pressed-handle-horizontal-margin: 0;--mat-switch-unselected-handle-horizontal-margin: 0;--mat-switch-unselected-with-icon-handle-horizontal-margin: 0;--mat-switch-unselected-pressed-handle-horizontal-margin: 0;--mat-switch-visible-track-opacity: 1;--mat-switch-hidden-track-opacity: 1;--mat-switch-visible-track-transition: transform 75ms 0ms cubic-bezier(0, 0, .2, 1);--mat-switch-hidden-track-transition: transform 75ms 0ms cubic-bezier(.4, 0, .6, 1);--mat-switch-track-outline-width: 1px;--mat-switch-track-outline-color: transparent;--mat-switch-selected-track-outline-width: 1px;--mat-switch-selected-track-outline-color: transparent;--mat-switch-disabled-unselected-track-outline-width: 1px;--mat-switch-disabled-unselected-track-outline-color: transparent}.defaultDark .mat-mdc-slide-toggle{--mat-switch-label-text-color: white}.defaultDark .mat-mdc-slide-toggle.mat-accent{--mdc-switch-selected-focus-state-layer-color: #d177ec;--mdc-switch-selected-handle-color: #d177ec;--mdc-switch-selected-hover-state-layer-color: #d177ec;--mdc-switch-selected-pressed-state-layer-color: #d177ec;--mdc-switch-selected-focus-handle-color: #de9ef1;--mdc-switch-selected-hover-handle-color: #de9ef1;--mdc-switch-selected-pressed-handle-color: #de9ef1;--mdc-switch-selected-focus-track-color: #9623b9;--mdc-switch-selected-hover-track-color: #9623b9;--mdc-switch-selected-pressed-track-color: #9623b9;--mdc-switch-selected-track-color: #9623b9}.defaultDark .mat-mdc-slide-toggle.mat-warn{--mdc-switch-selected-focus-state-layer-color: #e57373;--mdc-switch-selected-handle-color: #e57373;--mdc-switch-selected-hover-state-layer-color: #e57373;--mdc-switch-selected-pressed-state-layer-color: #e57373;--mdc-switch-selected-focus-handle-color: #ef9a9a;--mdc-switch-selected-hover-handle-color: #ef9a9a;--mdc-switch-selected-pressed-handle-color: #ef9a9a;--mdc-switch-selected-focus-track-color: #e53935;--mdc-switch-selected-hover-track-color: #e53935;--mdc-switch-selected-pressed-track-color: #e53935;--mdc-switch-selected-track-color: #e53935}.defaultDark .mat-mdc-radio-button.mat-primary{--mdc-radio-disabled-selected-icon-color: white;--mdc-radio-disabled-unselected-icon-color: white;--mdc-radio-unselected-hover-icon-color: #eeeeee;--mdc-radio-unselected-icon-color: rgba(255, 255, 255, .54);--mdc-radio-unselected-pressed-icon-color: rgba(255, 255, 255, .54);--mdc-radio-selected-focus-icon-color: #2a7ae2;--mdc-radio-selected-hover-icon-color: #2a7ae2;--mdc-radio-selected-icon-color: #2a7ae2;--mdc-radio-selected-pressed-icon-color: #2a7ae2;--mat-radio-ripple-color: white;--mat-radio-checked-ripple-color: #2a7ae2;--mat-radio-disabled-label-color: rgba(255, 255, 255, .5);--mat-radio-label-text-color: white}.defaultDark .mat-mdc-radio-button.mat-accent{--mdc-radio-disabled-selected-icon-color: white;--mdc-radio-disabled-unselected-icon-color: white;--mdc-radio-unselected-hover-icon-color: #eeeeee;--mdc-radio-unselected-icon-color: rgba(255, 255, 255, .54);--mdc-radio-unselected-pressed-icon-color: rgba(255, 255, 255, .54);--mdc-radio-selected-focus-icon-color: #b72ae2;--mdc-radio-selected-hover-icon-color: #b72ae2;--mdc-radio-selected-icon-color: #b72ae2;--mdc-radio-selected-pressed-icon-color: #b72ae2;--mat-radio-ripple-color: white;--mat-radio-checked-ripple-color: #b72ae2;--mat-radio-disabled-label-color: rgba(255, 255, 255, .5);--mat-radio-label-text-color: white}.defaultDark .mat-mdc-radio-button.mat-warn{--mdc-radio-disabled-selected-icon-color: white;--mdc-radio-disabled-unselected-icon-color: white;--mdc-radio-unselected-hover-icon-color: #eeeeee;--mdc-radio-unselected-icon-color: rgba(255, 255, 255, .54);--mdc-radio-unselected-pressed-icon-color: rgba(255, 255, 255, .54);--mdc-radio-selected-focus-icon-color: #f44336;--mdc-radio-selected-hover-icon-color: #f44336;--mdc-radio-selected-icon-color: #f44336;--mdc-radio-selected-pressed-icon-color: #f44336;--mat-radio-ripple-color: white;--mat-radio-checked-ripple-color: #f44336;--mat-radio-disabled-label-color: rgba(255, 255, 255, .5);--mat-radio-label-text-color: white}.defaultDark .mat-accent{--mdc-slider-handle-color: #b72ae2;--mdc-slider-focus-handle-color: #b72ae2;--mdc-slider-hover-handle-color: #b72ae2;--mdc-slider-active-track-color: #b72ae2;--mdc-slider-inactive-track-color: #b72ae2;--mdc-slider-with-tick-marks-inactive-container-color: #b72ae2;--mdc-slider-with-tick-marks-active-container-color: rgba(0, 0, 0, .87);--mat-slider-ripple-color: #b72ae2;--mat-slider-hover-state-layer-color: rgba(183, 42, 226, .05);--mat-slider-focus-state-layer-color: rgba(183, 42, 226, .2)}.defaultDark .mat-warn{--mdc-slider-handle-color: #f44336;--mdc-slider-focus-handle-color: #f44336;--mdc-slider-hover-handle-color: #f44336;--mdc-slider-active-track-color: #f44336;--mdc-slider-inactive-track-color: #f44336;--mdc-slider-with-tick-marks-inactive-container-color: #f44336;--mdc-slider-with-tick-marks-active-container-color: white;--mat-slider-ripple-color: #f44336;--mat-slider-hover-state-layer-color: rgba(244, 67, 54, .05);--mat-slider-focus-state-layer-color: rgba(244, 67, 54, .2)}.defaultDark .mdc-list-item__start,.defaultDark .mdc-list-item__end{--mdc-radio-disabled-selected-icon-color: white;--mdc-radio-disabled-unselected-icon-color: white;--mdc-radio-unselected-hover-icon-color: #eeeeee;--mdc-radio-unselected-icon-color: rgba(255, 255, 255, .54);--mdc-radio-unselected-pressed-icon-color: rgba(255, 255, 255, .54);--mdc-radio-selected-focus-icon-color: #2a7ae2;--mdc-radio-selected-hover-icon-color: #2a7ae2;--mdc-radio-selected-icon-color: #2a7ae2;--mdc-radio-selected-pressed-icon-color: #2a7ae2}.defaultDark .mat-accent .mdc-list-item__start,.defaultDark .mat-accent .mdc-list-item__end{--mdc-radio-disabled-selected-icon-color: white;--mdc-radio-disabled-unselected-icon-color: white;--mdc-radio-unselected-hover-icon-color: #eeeeee;--mdc-radio-unselected-icon-color: rgba(255, 255, 255, .54);--mdc-radio-unselected-pressed-icon-color: rgba(255, 255, 255, .54);--mdc-radio-selected-focus-icon-color: #b72ae2;--mdc-radio-selected-hover-icon-color: #b72ae2;--mdc-radio-selected-icon-color: #b72ae2;--mdc-radio-selected-pressed-icon-color: #b72ae2}.defaultDark .mat-warn .mdc-list-item__start,.defaultDark .mat-warn .mdc-list-item__end{--mdc-radio-disabled-selected-icon-color: white;--mdc-radio-disabled-unselected-icon-color: white;--mdc-radio-unselected-hover-icon-color: #eeeeee;--mdc-radio-unselected-icon-color: rgba(255, 255, 255, .54);--mdc-radio-unselected-pressed-icon-color: rgba(255, 255, 255, .54);--mdc-radio-selected-focus-icon-color: #f44336;--mdc-radio-selected-hover-icon-color: #f44336;--mdc-radio-selected-icon-color: #f44336;--mdc-radio-selected-pressed-icon-color: #f44336}.defaultDark .mat-mdc-list-option{--mdc-checkbox-disabled-selected-icon-color: rgba(255, 255, 255, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(255, 255, 255, .38);--mdc-checkbox-selected-checkmark-color: white;--mdc-checkbox-selected-focus-icon-color: #2a7ae2;--mdc-checkbox-selected-hover-icon-color: #2a7ae2;--mdc-checkbox-selected-icon-color: #2a7ae2;--mdc-checkbox-selected-pressed-icon-color: #2a7ae2;--mdc-checkbox-unselected-focus-icon-color: #eeeeee;--mdc-checkbox-unselected-hover-icon-color: #eeeeee;--mdc-checkbox-unselected-icon-color: rgba(255, 255, 255, .54);--mdc-checkbox-selected-focus-state-layer-color: #2a7ae2;--mdc-checkbox-selected-hover-state-layer-color: #2a7ae2;--mdc-checkbox-selected-pressed-state-layer-color: #2a7ae2;--mdc-checkbox-unselected-focus-state-layer-color: white;--mdc-checkbox-unselected-hover-state-layer-color: white;--mdc-checkbox-unselected-pressed-state-layer-color: white}.defaultDark .mat-mdc-list-option.mat-accent{--mdc-checkbox-disabled-selected-icon-color: rgba(255, 255, 255, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(255, 255, 255, .38);--mdc-checkbox-selected-checkmark-color: black;--mdc-checkbox-selected-focus-icon-color: #b72ae2;--mdc-checkbox-selected-hover-icon-color: #b72ae2;--mdc-checkbox-selected-icon-color: #b72ae2;--mdc-checkbox-selected-pressed-icon-color: #b72ae2;--mdc-checkbox-unselected-focus-icon-color: #eeeeee;--mdc-checkbox-unselected-hover-icon-color: #eeeeee;--mdc-checkbox-unselected-icon-color: rgba(255, 255, 255, .54);--mdc-checkbox-selected-focus-state-layer-color: #b72ae2;--mdc-checkbox-selected-hover-state-layer-color: #b72ae2;--mdc-checkbox-selected-pressed-state-layer-color: #b72ae2;--mdc-checkbox-unselected-focus-state-layer-color: white;--mdc-checkbox-unselected-hover-state-layer-color: white;--mdc-checkbox-unselected-pressed-state-layer-color: white}.defaultDark .mat-mdc-list-option.mat-warn{--mdc-checkbox-disabled-selected-icon-color: rgba(255, 255, 255, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(255, 255, 255, .38);--mdc-checkbox-selected-checkmark-color: white;--mdc-checkbox-selected-focus-icon-color: #f44336;--mdc-checkbox-selected-hover-icon-color: #f44336;--mdc-checkbox-selected-icon-color: #f44336;--mdc-checkbox-selected-pressed-icon-color: #f44336;--mdc-checkbox-unselected-focus-icon-color: #eeeeee;--mdc-checkbox-unselected-hover-icon-color: #eeeeee;--mdc-checkbox-unselected-icon-color: rgba(255, 255, 255, .54);--mdc-checkbox-selected-focus-state-layer-color: #f44336;--mdc-checkbox-selected-hover-state-layer-color: #f44336;--mdc-checkbox-selected-pressed-state-layer-color: #f44336;--mdc-checkbox-unselected-focus-state-layer-color: white;--mdc-checkbox-unselected-hover-state-layer-color: white;--mdc-checkbox-unselected-pressed-state-layer-color: white}.defaultDark .mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--selected .mdc-list-item__primary-text,.defaultDark .mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--selected .mdc-list-item__start,.defaultDark .mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--activated .mdc-list-item__primary-text,.defaultDark .mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--activated .mdc-list-item__start{color:#2a7ae2}.defaultDark .mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__start,.defaultDark .mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__content,.defaultDark .mat-mdc-list-base .mdc-list-item--disabled .mdc-list-item__end{opacity:1}.defaultDark .mat-mdc-tab-group,.defaultDark .mat-mdc-tab-nav-bar{--mdc-tab-indicator-active-indicator-color: #2a7ae2;--mat-tab-header-disabled-ripple-color: rgba(255, 255, 255, .5);--mat-tab-header-pagination-icon-color: white;--mat-tab-header-inactive-label-text-color: rgba(255, 255, 255, .6);--mat-tab-header-active-label-text-color: #2a7ae2;--mat-tab-header-active-ripple-color: #2a7ae2;--mat-tab-header-inactive-ripple-color: #2a7ae2;--mat-tab-header-inactive-focus-label-text-color: rgba(255, 255, 255, .6);--mat-tab-header-inactive-hover-label-text-color: rgba(255, 255, 255, .6);--mat-tab-header-active-focus-label-text-color: #2a7ae2;--mat-tab-header-active-hover-label-text-color: #2a7ae2;--mat-tab-header-active-focus-indicator-color: #2a7ae2;--mat-tab-header-active-hover-indicator-color: #2a7ae2}.defaultDark .mat-mdc-tab-group.mat-accent,.defaultDark .mat-mdc-tab-nav-bar.mat-accent{--mdc-tab-indicator-active-indicator-color: #b72ae2;--mat-tab-header-disabled-ripple-color: rgba(255, 255, 255, .5);--mat-tab-header-pagination-icon-color: white;--mat-tab-header-inactive-label-text-color: rgba(255, 255, 255, .6);--mat-tab-header-active-label-text-color: #b72ae2;--mat-tab-header-active-ripple-color: #b72ae2;--mat-tab-header-inactive-ripple-color: #b72ae2;--mat-tab-header-inactive-focus-label-text-color: rgba(255, 255, 255, .6);--mat-tab-header-inactive-hover-label-text-color: rgba(255, 255, 255, .6);--mat-tab-header-active-focus-label-text-color: #b72ae2;--mat-tab-header-active-hover-label-text-color: #b72ae2;--mat-tab-header-active-focus-indicator-color: #b72ae2;--mat-tab-header-active-hover-indicator-color: #b72ae2}.defaultDark .mat-mdc-tab-group.mat-warn,.defaultDark .mat-mdc-tab-nav-bar.mat-warn{--mdc-tab-indicator-active-indicator-color: #f44336;--mat-tab-header-disabled-ripple-color: rgba(255, 255, 255, .5);--mat-tab-header-pagination-icon-color: white;--mat-tab-header-inactive-label-text-color: rgba(255, 255, 255, .6);--mat-tab-header-active-label-text-color: #f44336;--mat-tab-header-active-ripple-color: #f44336;--mat-tab-header-inactive-ripple-color: #f44336;--mat-tab-header-inactive-focus-label-text-color: rgba(255, 255, 255, .6);--mat-tab-header-inactive-hover-label-text-color: rgba(255, 255, 255, .6);--mat-tab-header-active-focus-label-text-color: #f44336;--mat-tab-header-active-hover-label-text-color: #f44336;--mat-tab-header-active-focus-indicator-color: #f44336;--mat-tab-header-active-hover-indicator-color: #f44336}.defaultDark .mat-mdc-tab-group.mat-background-primary,.defaultDark .mat-mdc-tab-nav-bar.mat-background-primary{--mat-tab-header-with-background-background-color: #2a7ae2;--mat-tab-header-with-background-foreground-color: white}.defaultDark .mat-mdc-tab-group.mat-background-accent,.defaultDark .mat-mdc-tab-nav-bar.mat-background-accent{--mat-tab-header-with-background-background-color: #b72ae2;--mat-tab-header-with-background-foreground-color: rgba(0, 0, 0, .87)}.defaultDark .mat-mdc-tab-group.mat-background-warn,.defaultDark .mat-mdc-tab-nav-bar.mat-background-warn{--mat-tab-header-with-background-background-color: #f44336;--mat-tab-header-with-background-foreground-color: white}.defaultDark .mat-mdc-checkbox.mat-primary{--mdc-checkbox-disabled-selected-icon-color: rgba(255, 255, 255, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(255, 255, 255, .38);--mdc-checkbox-selected-checkmark-color: white;--mdc-checkbox-selected-focus-icon-color: #2a7ae2;--mdc-checkbox-selected-hover-icon-color: #2a7ae2;--mdc-checkbox-selected-icon-color: #2a7ae2;--mdc-checkbox-selected-pressed-icon-color: #2a7ae2;--mdc-checkbox-unselected-focus-icon-color: #eeeeee;--mdc-checkbox-unselected-hover-icon-color: #eeeeee;--mdc-checkbox-unselected-icon-color: rgba(255, 255, 255, .54);--mdc-checkbox-selected-focus-state-layer-color: #2a7ae2;--mdc-checkbox-selected-hover-state-layer-color: #2a7ae2;--mdc-checkbox-selected-pressed-state-layer-color: #2a7ae2;--mdc-checkbox-unselected-focus-state-layer-color: white;--mdc-checkbox-unselected-hover-state-layer-color: white;--mdc-checkbox-unselected-pressed-state-layer-color: white}.defaultDark .mat-mdc-checkbox.mat-warn{--mdc-checkbox-disabled-selected-icon-color: rgba(255, 255, 255, .38);--mdc-checkbox-disabled-unselected-icon-color: rgba(255, 255, 255, .38);--mdc-checkbox-selected-checkmark-color: white;--mdc-checkbox-selected-focus-icon-color: #f44336;--mdc-checkbox-selected-hover-icon-color: #f44336;--mdc-checkbox-selected-icon-color: #f44336;--mdc-checkbox-selected-pressed-icon-color: #f44336;--mdc-checkbox-unselected-focus-icon-color: #eeeeee;--mdc-checkbox-unselected-hover-icon-color: #eeeeee;--mdc-checkbox-unselected-icon-color: rgba(255, 255, 255, .54);--mdc-checkbox-selected-focus-state-layer-color: #f44336;--mdc-checkbox-selected-hover-state-layer-color: #f44336;--mdc-checkbox-selected-pressed-state-layer-color: #f44336;--mdc-checkbox-unselected-focus-state-layer-color: white;--mdc-checkbox-unselected-hover-state-layer-color: white;--mdc-checkbox-unselected-pressed-state-layer-color: white}.defaultDark .mat-mdc-button.mat-primary{--mdc-text-button-label-text-color: #2a7ae2;--mat-text-button-state-layer-color: #2a7ae2;--mat-text-button-ripple-color: rgba(42, 122, 226, .1)}.defaultDark .mat-mdc-button.mat-accent{--mdc-text-button-label-text-color: #b72ae2;--mat-text-button-state-layer-color: #b72ae2;--mat-text-button-ripple-color: rgba(183, 42, 226, .1)}.defaultDark .mat-mdc-button.mat-warn{--mdc-text-button-label-text-color: #f44336;--mat-text-button-state-layer-color: #f44336;--mat-text-button-ripple-color: rgba(244, 67, 54, .1)}.defaultDark .mat-mdc-unelevated-button.mat-primary{--mdc-filled-button-container-color: #2a7ae2;--mdc-filled-button-label-text-color: white;--mat-filled-button-state-layer-color: white;--mat-filled-button-ripple-color: rgba(255, 255, 255, .1)}.defaultDark .mat-mdc-unelevated-button.mat-accent{--mdc-filled-button-container-color: #b72ae2;--mdc-filled-button-label-text-color: black;--mat-filled-button-state-layer-color: black;--mat-filled-button-ripple-color: rgba(0, 0, 0, .1)}.defaultDark .mat-mdc-unelevated-button.mat-warn{--mdc-filled-button-container-color: #f44336;--mdc-filled-button-label-text-color: white;--mat-filled-button-state-layer-color: white;--mat-filled-button-ripple-color: rgba(255, 255, 255, .1)}.defaultDark .mat-mdc-raised-button.mat-primary{--mdc-protected-button-container-color: #2a7ae2;--mdc-protected-button-label-text-color: white;--mat-protected-button-state-layer-color: white;--mat-protected-button-ripple-color: rgba(255, 255, 255, .1)}.defaultDark .mat-mdc-raised-button.mat-accent{--mdc-protected-button-container-color: #b72ae2;--mdc-protected-button-label-text-color: black;--mat-protected-button-state-layer-color: black;--mat-protected-button-ripple-color: rgba(0, 0, 0, .1)}.defaultDark .mat-mdc-raised-button.mat-warn{--mdc-protected-button-container-color: #f44336;--mdc-protected-button-label-text-color: white;--mat-protected-button-state-layer-color: white;--mat-protected-button-ripple-color: rgba(255, 255, 255, .1)}.defaultDark .mat-mdc-outlined-button.mat-primary{--mdc-outlined-button-label-text-color: #2a7ae2;--mdc-outlined-button-outline-color: rgba(255, 255, 255, .12);--mat-outlined-button-state-layer-color: #2a7ae2;--mat-outlined-button-ripple-color: rgba(42, 122, 226, .1)}.defaultDark .mat-mdc-outlined-button.mat-accent{--mdc-outlined-button-label-text-color: #b72ae2;--mdc-outlined-button-outline-color: rgba(255, 255, 255, .12);--mat-outlined-button-state-layer-color: #b72ae2;--mat-outlined-button-ripple-color: rgba(183, 42, 226, .1)}.defaultDark .mat-mdc-outlined-button.mat-warn{--mdc-outlined-button-label-text-color: #f44336;--mdc-outlined-button-outline-color: rgba(255, 255, 255, .12);--mat-outlined-button-state-layer-color: #f44336;--mat-outlined-button-ripple-color: rgba(244, 67, 54, .1)}.defaultDark .mat-mdc-icon-button.mat-primary{--mdc-icon-button-icon-color: #2a7ae2;--mat-icon-button-state-layer-color: #2a7ae2;--mat-icon-button-ripple-color: rgba(42, 122, 226, .1)}.defaultDark .mat-mdc-icon-button.mat-accent{--mdc-icon-button-icon-color: #b72ae2;--mat-icon-button-state-layer-color: #b72ae2;--mat-icon-button-ripple-color: rgba(183, 42, 226, .1)}.defaultDark .mat-mdc-icon-button.mat-warn{--mdc-icon-button-icon-color: #f44336;--mat-icon-button-state-layer-color: #f44336;--mat-icon-button-ripple-color: rgba(244, 67, 54, .1)}.defaultDark .mat-mdc-fab.mat-primary{--mdc-fab-container-color: #2a7ae2;--mat-fab-foreground-color: white;--mat-fab-state-layer-color: white;--mat-fab-ripple-color: rgba(255, 255, 255, .1)}.defaultDark .mat-mdc-fab.mat-accent{--mdc-fab-container-color: #b72ae2;--mat-fab-foreground-color: black;--mat-fab-state-layer-color: black;--mat-fab-ripple-color: rgba(0, 0, 0, .1)}.defaultDark .mat-mdc-fab.mat-warn{--mdc-fab-container-color: #f44336;--mat-fab-foreground-color: white;--mat-fab-state-layer-color: white;--mat-fab-ripple-color: rgba(255, 255, 255, .1)}.defaultDark .mat-mdc-mini-fab.mat-primary{--mdc-fab-small-container-color: #2a7ae2;--mat-fab-small-foreground-color: white;--mat-fab-small-state-layer-color: white;--mat-fab-small-ripple-color: rgba(255, 255, 255, .1)}.defaultDark .mat-mdc-mini-fab.mat-accent{--mdc-fab-small-container-color: #b72ae2;--mat-fab-small-foreground-color: black;--mat-fab-small-state-layer-color: black;--mat-fab-small-ripple-color: rgba(0, 0, 0, .1)}.defaultDark .mat-mdc-mini-fab.mat-warn{--mdc-fab-small-container-color: #f44336;--mat-fab-small-foreground-color: white;--mat-fab-small-state-layer-color: white;--mat-fab-small-ripple-color: rgba(255, 255, 255, .1)}.defaultDark .mat-accent{--mdc-circular-progress-active-indicator-color: #b72ae2}.defaultDark .mat-warn{--mdc-circular-progress-active-indicator-color: #f44336}.defaultDark .mat-badge-accent{--mat-badge-background-color: #b72ae2;--mat-badge-text-color: rgba(0, 0, 0, .87)}.defaultDark .mat-badge-warn{--mat-badge-background-color: #f44336;--mat-badge-text-color: white}.defaultDark .mat-datepicker-content.mat-accent{--mat-datepicker-calendar-date-selected-state-text-color: rgba(0, 0, 0, .87);--mat-datepicker-calendar-date-selected-state-background-color: #b72ae2;--mat-datepicker-calendar-date-selected-disabled-state-background-color: rgba(183, 42, 226, .4);--mat-datepicker-calendar-date-today-selected-state-outline-color: rgba(0, 0, 0, .87);--mat-datepicker-calendar-date-focus-state-background-color: rgba(183, 42, 226, .3);--mat-datepicker-calendar-date-hover-state-background-color: rgba(183, 42, 226, .3);--mat-datepicker-calendar-date-in-range-state-background-color: rgba(183, 42, 226, .2);--mat-datepicker-calendar-date-in-comparison-range-state-background-color: rgba(249, 171, 0, .2);--mat-datepicker-calendar-date-in-overlap-range-state-background-color: #a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color: #46a35e}.defaultDark .mat-datepicker-content.mat-warn{--mat-datepicker-calendar-date-selected-state-text-color: white;--mat-datepicker-calendar-date-selected-state-background-color: #f44336;--mat-datepicker-calendar-date-selected-disabled-state-background-color: rgba(244, 67, 54, .4);--mat-datepicker-calendar-date-today-selected-state-outline-color: white;--mat-datepicker-calendar-date-focus-state-background-color: rgba(244, 67, 54, .3);--mat-datepicker-calendar-date-hover-state-background-color: rgba(244, 67, 54, .3);--mat-datepicker-calendar-date-in-range-state-background-color: rgba(244, 67, 54, .2);--mat-datepicker-calendar-date-in-comparison-range-state-background-color: rgba(249, 171, 0, .2);--mat-datepicker-calendar-date-in-overlap-range-state-background-color: #a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color: #46a35e}.defaultDark .mat-datepicker-toggle-active.mat-accent{--mat-datepicker-toggle-active-state-icon-color: #b72ae2}.defaultDark .mat-datepicker-toggle-active.mat-warn{--mat-datepicker-toggle-active-state-icon-color: #f44336}.defaultDark .mat-icon.mat-primary{--mat-icon-color: #2a7ae2}.defaultDark .mat-icon.mat-accent{--mat-icon-color: #b72ae2}.defaultDark .mat-icon.mat-warn{--mat-icon-color: #f44336}.defaultDark .mat-step-header.mat-accent{--mat-stepper-header-icon-foreground-color: rgba(0, 0, 0, .87);--mat-stepper-header-selected-state-icon-background-color: #b72ae2;--mat-stepper-header-selected-state-icon-foreground-color: rgba(0, 0, 0, .87);--mat-stepper-header-done-state-icon-background-color: #b72ae2;--mat-stepper-header-done-state-icon-foreground-color: rgba(0, 0, 0, .87);--mat-stepper-header-edit-state-icon-background-color: #b72ae2;--mat-stepper-header-edit-state-icon-foreground-color: rgba(0, 0, 0, .87)}.defaultDark .mat-step-header.mat-warn{--mat-stepper-header-icon-foreground-color: white;--mat-stepper-header-selected-state-icon-background-color: #f44336;--mat-stepper-header-selected-state-icon-foreground-color: white;--mat-stepper-header-done-state-icon-background-color: #f44336;--mat-stepper-header-done-state-icon-foreground-color: white;--mat-stepper-header-edit-state-icon-background-color: #f44336;--mat-stepper-header-edit-state-icon-foreground-color: white}.defaultDark .mat-toolbar.mat-primary{--mat-toolbar-container-background-color: #2a7ae2;--mat-toolbar-container-text-color: white}.defaultDark .mat-toolbar.mat-accent{--mat-toolbar-container-background-color: #b72ae2;--mat-toolbar-container-text-color: rgba(0, 0, 0, .87)}.defaultDark .mat-toolbar.mat-warn{--mat-toolbar-container-background-color: #f44336;--mat-toolbar-container-text-color: white}.defaultDark .snackbar-error .mdc-snackbar__surface{background-color:#f44336!important;color:#fff!important}.defaultDark natural-sidenav-container .mat-drawer{border-right:none}.defaultDark natural-sidenav-container mat-sidenav[ng-reflect-mode=side] .mat-drawer-inner-container{display:flex;flex-direction:column}.defaultDark natural-sidenav-container mat-sidenav[ng-reflect-mode=side] natural-sidenav{display:flex;flex:1;min-height:0}.defaultDark natural-sidenav-container mat-sidenav-content{display:flex!important}.defaultDark natural-sidenav-container mat-sidenav-content>div{display:flex;flex:1}.defaultDark natural-sidenav-container mat-sidenav-content>div natural-sidenav-content{display:flex;flex:1}.defaultDark natural-input .mat-mdc-form-field-infix{margin-right:10px;margin-left:10px;width:auto}.defaultDark natural-input .mat-form-field-flex{align-items:flex-start;padding-right:0;padding-left:0}.defaultDark natural-input .mat-mdc-form-field{margin-bottom:-1.25em}.defaultDark .natural-dropdown-container{background:#424242}.defaultDark .natural-dropdown-container>*>*>*{outline:none!important}.defaultDark .responsive-table{overflow-x:auto;overflow-y:hidden}.defaultDark [mat-table]{width:100%;max-width:100%}.defaultDark [mat-table] [mat-cell]{justify-content:center}.defaultDark [mat-table] .mat-mdc-cell:first-child,.defaultDark [mat-table] .mat-mdc-header-cell:first-child,.defaultDark [mat-table] .mat-mdc-footer-cell:first-child{padding-right:5px}.defaultDark [mat-table] .mat-mdc-cell:last-child,.defaultDark [mat-table] .mat-mdc-header-cell:last-child,.defaultDark [mat-table] .mat-mdc-footer-cell:last-child{padding-left:5px}.defaultDark [mat-table] .mat-mdc-cell:not(:first-child):not(:last-child),.defaultDark [mat-table] .mat-mdc-header-cell:not(:first-child):not(:last-child),.defaultDark [mat-table] .mat-mdc-footer-cell:not(:first-child):not(:last-child){padding-right:5px;padding-left:5px}.defaultDark [mat-table] .mat-mdc-cell[natural-align-right],.defaultDark [mat-table] .mat-mdc-header-cell[natural-align-right],.defaultDark [mat-table] .mat-mdc-footer-cell[natural-align-right]{text-align:right}.defaultDark [mat-table] .mat-mdc-cell[natural-align-right] .mat-sort-header-container,.defaultDark [mat-table] .mat-mdc-header-cell[natural-align-right] .mat-sort-header-container,.defaultDark [mat-table] .mat-mdc-footer-cell[natural-align-right] .mat-sort-header-container{justify-content:flex-end}.defaultDark [mat-table] .mat-mdc-cell[natural-align-center],.defaultDark [mat-table] .mat-mdc-header-cell[natural-align-center],.defaultDark [mat-table] .mat-mdc-footer-cell[natural-align-center]{text-align:center}.defaultDark [mat-table] .mat-mdc-cell[natural-align-center] .mat-sort-header-container,.defaultDark [mat-table] .mat-mdc-header-cell[natural-align-center] .mat-sort-header-container,.defaultDark [mat-table] .mat-mdc-footer-cell[natural-align-center] .mat-sort-header-container{justify-content:center}.defaultDark [mat-table] [mat-row].selected,.defaultDark [mat-table] [mat-header-row]{background:#212121}.defaultDark [mat-table] .mat-mdc-footer-cell{font-weight:700}.defaultDark [mat-table] [natural-1em-column]{width:1em}.defaultDark [mat-table] [natural-2em-column]{width:2em}.defaultDark [mat-table] [natural-3em-column]{width:3em}.defaultDark [mat-table] [natural-4em-column]{width:4em}.defaultDark [mat-table] [natural-5em-column]{width:5em}.defaultDark [mat-table] [natural-6em-column]{width:6em}.defaultDark [mat-table] [natural-7em-column]{width:7em}.defaultDark natural-file a{background-color:#424242}.defaultDark natural-file .action-overlay{background-color:#b72ae2d9;color:#000000de}.defaultDark natural-file .file-preview{background-color:#2a7ae2d9;color:#fff}.defaultDark .mat-mdc-tab-labels,.defaultDark .mat-mdc-tab-links,.defaultDark .mdc-data-table__row:last-child .mdc-data-table__cell{border-bottom:1px solid rgba(255,255,255,.12)}.defaultDark .mat-mdc-dialog-container .mdc-dialog__content{color:#ffffffde}.defaultDark .natural-elevation{box-shadow:inset 0 1px #ffffff4d,0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}.defaultDark natural-editor .mat-mdc-icon-button,.defaultDark natural-editor .mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:4px}.defaultDark natural-editor button.mat-mdc-button.mat-mdc-button-base.mat-mdc-menu-trigger{height:50px}.defaultDark natural-editor .menu-container{background-color:#303030}.defaultDark natural-editor .menu,.defaultDark natural-editor .ProseMirror{background-color:#ffffff1a}.defaultDark natural-editor .menu{border-color:#ffffff80}.defaultDark natural-editor placeholder{background:linear-gradient(90deg,#2a7ae2,#2a7ae2,#b72ae2,#2a7ae2,#2a7ae2)}.defaultDark app-home .mat-toolbar{background:#212121;color:#fff}.defaultDark app-home #menu{border-radius:4px;background:#2a7ae2;background:-moz-linear-gradient(bottom,#2a7ae2 50%,#b72ae2 150%);background:-webkit-linear-gradient(bottom,#2a7ae2 50%,#b72ae2 150%);background:linear-gradient(to bottom,#2a7ae2 50%,#b72ae2 150%)}body{margin:0}html,body,app-root{height:100%;min-height:100%;font-size:14px}app-root{display:flex;flex-direction:row;justify-content:center;align-items:center}p.debug,pre.debug{margin:10px;border:1px solid rgba(0,0,0,.5);background:#0003;padding:10px;font-size:16px;line-height:1.5em;font-family:Courrier,monospace}[debug]{border:2px solid red}[debug][children]>*{border:2px solid orange}[debug][children][grandchildren]>*>*{border:2px solid green}.app-component>router-outlet+*{flex:1;flex-direction:column}[overflow]{overflow:auto}#menu .mat-expansion-panel{background:transparent}#menu *{color:#fff!important}.nat-gap-50{gap:50px}[class^=app-] .mat-headline-4{margin-bottom:30px!important}.nat-padding{padding:var(--natural-default-spacing)!important}.nat-padding-horizontal{padding-inline:var(--natural-default-spacing)!important}.nat-padding-bottom{padding-bottom:var(--natural-default-spacing)!important}.nat-padding-top{padding-top:var(--natural-default-spacing)!important}.nat-padding-right{padding-right:var(--natural-default-spacing)!important}.nat-padding-left{padding-left:var(--natural-default-spacing)!important}.nat-padding-vertical{padding-block:var(--natural-default-spacing)!important}.nat-no-padding{padding:0!important}.nat-no-padding-vertical{padding-block:0!important}.nat-no-padding-horizontal{padding-inline:0!important}.nat-no-padding-right{padding-right:0!important}.nat-no-padding-top{padding-top:0!important}.nat-no-padding-left{padding-left:0!important}.nat-no-padding-bottom{padding-bottom:0!important}.nat-margin{margin:var(--natural-default-spacing)!important}.nat-margin-top{margin-top:var(--natural-default-spacing)!important}.nat-margin-bottom{margin-bottom:var(--natural-default-spacing)!important}.nat-margin-right{margin-right:var(--natural-default-spacing)!important}.nat-margin-left{margin-left:var(--natural-default-spacing)!important}.nat-margin-horizontal{margin-inline:var(--natural-default-spacing)!important}.nat-margin-vertical{margin-block:var(--natural-default-spacing)!important}.nat-no-margin{margin:0!important}.nat-no-margin-vertical{margin-block:0!important}.nat-no-margin-horizontal{margin-inline:0!important}.nat-no-margin-right{margin-right:0!important}.nat-no-margin-top{margin-top:0!important}.nat-no-margin-left{margin-left:0!important}.nat-no-margin-bottom{margin-bottom:0!important}.nat-fill{height:100%;min-height:100%;min-width:100%;width:100%}.nat-wrap{flex-wrap:wrap}.nat-wrap-reverse{flex-wrap:wrap-reverse}.nat-center{align-items:center;justify-content:center}.nat-vertical{display:flex;flex-direction:column}.nat-vertical.nat-top{justify-content:flex-start}.nat-vertical.nat-bottom{justify-content:flex-end}.nat-vertical.nat-left{align-items:flex-start}.nat-vertical.nat-right{align-items:flex-end}.nat-vertical.nat-align{align-items:center}.nat-vertical.nat-distribute{justify-content:space-between}.nat-vertical>.nat-expand{flex:1 1 .000000001px}.nat-vertical>.nat-expand-25{max-height:25%}.nat-vertical>.nat-expand-33{max-height:33%}.nat-vertical>.nat-expand-50{max-height:50%}.nat-vertical>.nat-expand-66{max-height:66%}.nat-vertical>.nat-expand-75{max-height:75%}@media screen and (min-width: 600px){.nat-vertical>.nat-sm-expand{flex:1 1 .000000001px}.nat-vertical>.nat-sm-expand-25{max-height:25%}.nat-vertical>.nat-sm-expand-33{max-height:33%}.nat-vertical>.nat-sm-expand-50{max-height:50%}.nat-vertical>.nat-sm-expand-66{max-height:66%}.nat-vertical>.nat-sm-expand-75{max-height:75%}}@media screen and (min-width: 960px){.nat-vertical>.nat-md-expand{flex:1 1 .000000001px}.nat-vertical>.nat-md-expand-25{max-height:25%}.nat-vertical>.nat-md-expand-33{max-height:33%}.nat-vertical>.nat-md-expand-50{max-height:50%}.nat-vertical>.nat-md-expand-66{max-height:66%}.nat-vertical>.nat-md-expand-75{max-height:75%}}@media screen and (min-width: 1280px){.nat-vertical>.nat-lg-expand{flex:1 1 .000000001px}.nat-vertical>.nat-lg-expand-25{max-height:25%}.nat-vertical>.nat-lg-expand-33{max-height:33%}.nat-vertical>.nat-lg-expand-50{max-height:50%}.nat-vertical>.nat-lg-expand-66{max-height:66%}.nat-vertical>.nat-lg-expand-75{max-height:75%}}@media screen and (min-width: 1920px){.nat-vertical>.nat-xl-expand{flex:1 1 .000000001px}.nat-vertical>.nat-xl-expand-25{max-height:25%}.nat-vertical>.nat-xl-expand-33{max-height:33%}.nat-vertical>.nat-xl-expand-50{max-height:50%}.nat-vertical>.nat-xl-expand-66{max-height:66%}.nat-vertical>.nat-xl-expand-75{max-height:75%}}.nat-horizontal{display:flex;flex-direction:row}.nat-horizontal.nat-top{align-items:flex-start}.nat-horizontal.nat-bottom{align-items:flex-end}.nat-horizontal.nat-align{align-items:center}.nat-horizontal.nat-left{justify-content:flex-start}.nat-horizontal.nat-right{justify-content:flex-end}.nat-horizontal.nat-distribute{justify-content:space-between}.nat-horizontal>.nat-expand{flex:1 1 .000000001px}.nat-horizontal>.nat-expand-25{max-width:25%}.nat-horizontal>.nat-expand-33{max-width:33%}.nat-horizontal>.nat-expand-50{max-width:50%}.nat-horizontal>.nat-expand-66{max-width:66%}.nat-horizontal>.nat-expand-75{max-width:75%}@media screen and (min-width: 600px){.nat-horizontal>.nat-sm-expand{flex:1 1 .000000001px}.nat-horizontal>.nat-sm-expand-25{max-width:25%}.nat-horizontal>.nat-sm-expand-33{max-width:33%}.nat-horizontal>.nat-sm-expand-50{max-width:50%}.nat-horizontal>.nat-sm-expand-66{max-width:66%}.nat-horizontal>.nat-sm-expand-75{max-width:75%}}@media screen and (min-width: 960px){.nat-horizontal>.nat-md-expand{flex:1 1 .000000001px}.nat-horizontal>.nat-md-expand-25{max-width:25%}.nat-horizontal>.nat-md-expand-33{max-width:33%}.nat-horizontal>.nat-md-expand-50{max-width:50%}.nat-horizontal>.nat-md-expand-66{max-width:66%}.nat-horizontal>.nat-md-expand-75{max-width:75%}}@media screen and (min-width: 1280px){.nat-horizontal>.nat-lg-expand{flex:1 1 .000000001px}.nat-horizontal>.nat-lg-expand-25{max-width:25%}.nat-horizontal>.nat-lg-expand-33{max-width:33%}.nat-horizontal>.nat-lg-expand-50{max-width:50%}.nat-horizontal>.nat-lg-expand-66{max-width:66%}.nat-horizontal>.nat-lg-expand-75{max-width:75%}}@media screen and (min-width: 1920px){.nat-horizontal>.nat-xl-expand{flex:1 1 .000000001px}.nat-horizontal>.nat-xl-expand-25{max-width:25%}.nat-horizontal>.nat-xl-expand-33{max-width:33%}.nat-horizontal>.nat-xl-expand-50{max-width:50%}.nat-horizontal>.nat-xl-expand-66{max-width:66%}.nat-horizontal>.nat-xl-expand-75{max-width:75%}}.nat-gap{gap:var(--natural-default-spacing)}.nat-gap-horizontal{column-gap:var(--natural-default-spacing)}.nat-gap-vertical{row-gap:var(--natural-default-spacing)}.nat-gap-0{gap:0px}.nat-gap-horizontal-0{column-gap:0px}.nat-gap-vertical-0{row-gap:0px}.nat-gap-5{gap:5px}.nat-gap-horizontal-5{column-gap:5px}.nat-gap-vertical-5{row-gap:5px}.nat-gap-10{gap:10px}.nat-gap-horizontal-10{column-gap:10px}.nat-gap-vertical-10{row-gap:10px}.nat-gap-15{gap:15px}.nat-gap-horizontal-15{column-gap:15px}.nat-gap-vertical-15{row-gap:15px}.nat-gap-20{gap:20px}.nat-gap-horizontal-20{column-gap:20px}.nat-gap-vertical-20{row-gap:20px}.nat-gap-30{gap:30px}.nat-gap-horizontal-30{column-gap:30px}.nat-gap-vertical-30{row-gap:30px}[class*=-expand]{box-sizing:border-box}[class*=expand-]{flex:1 1 100%}.nat-expand{flex:1 1 .000000001px}.nat-expand-no-collapse{flex:1 0 auto}.nat-no-collapse{min-width:fit-content}.nat-no-expand{flex-grow:0}[class*=nat-horizontal][class*=nat-gap]>*{margin-right:0!important}[class*=nat-vertical][class*=nat-gap]>*{margin-bottom:0!important}@media screen and (min-width: 600px){.nat-sm-vertical{display:flex;flex-direction:column}.nat-sm-vertical.nat-sm-top{justify-content:flex-start}.nat-sm-vertical.nat-sm-bottom{justify-content:flex-end}.nat-sm-vertical.nat-sm-left{align-items:flex-start}.nat-sm-vertical.nat-sm-right{align-items:flex-end}.nat-sm-vertical.nat-sm-align{align-items:center}.nat-sm-vertical.nat-sm-distribute{justify-content:space-between}.nat-sm-vertical>.nat-sm-expand{flex:1 1 .000000001px}.nat-sm-vertical>.nat-sm-expand-25{max-height:25%}.nat-sm-vertical>.nat-sm-expand-33{max-height:33%}.nat-sm-vertical>.nat-sm-expand-50{max-height:50%}.nat-sm-vertical>.nat-sm-expand-66{max-height:66%}.nat-sm-vertical>.nat-sm-expand-75{max-height:75%}.nat-sm-horizontal{display:flex;flex-direction:row}.nat-sm-horizontal.nat-sm-top{align-items:flex-start}.nat-sm-horizontal.nat-sm-bottom{align-items:flex-end}.nat-sm-horizontal.nat-sm-align{align-items:center}.nat-sm-horizontal.nat-sm-left{justify-content:flex-start}.nat-sm-horizontal.nat-sm-right{justify-content:flex-end}.nat-sm-horizontal.nat-sm-distribute{justify-content:space-between}.nat-sm-horizontal>.nat-sm-expand{flex:1 1 .000000001px}.nat-sm-horizontal>.nat-sm-expand-25{max-width:25%}.nat-sm-horizontal>.nat-sm-expand-33{max-width:33%}.nat-sm-horizontal>.nat-sm-expand-50{max-width:50%}.nat-sm-horizontal>.nat-sm-expand-66{max-width:66%}.nat-sm-horizontal>.nat-sm-expand-75{max-width:75%}.nat-sm-gap{gap:var(--natural-default-spacing)}.nat-sm-gap-horizontal{column-gap:var(--natural-default-spacing)}.nat-sm-gap-vertical{row-gap:var(--natural-default-spacing)}.nat-sm-gap-0{gap:0px}.nat-sm-gap-horizontal-0{column-gap:0px}.nat-sm-gap-vertical-0{row-gap:0px}.nat-sm-gap-5{gap:5px}.nat-sm-gap-horizontal-5{column-gap:5px}.nat-sm-gap-vertical-5{row-gap:5px}.nat-sm-gap-10{gap:10px}.nat-sm-gap-horizontal-10{column-gap:10px}.nat-sm-gap-vertical-10{row-gap:10px}.nat-sm-gap-15{gap:15px}.nat-sm-gap-horizontal-15{column-gap:15px}.nat-sm-gap-vertical-15{row-gap:15px}.nat-sm-gap-20{gap:20px}.nat-sm-gap-horizontal-20{column-gap:20px}.nat-sm-gap-vertical-20{row-gap:20px}.nat-sm-gap-30{gap:30px}.nat-sm-gap-horizontal-30{column-gap:30px}.nat-sm-gap-vertical-30{row-gap:30px}.nat-sm-expand{flex:1 1 .000000001px}[class*=nat-sm-horizontal][class*=nat-sm-gap]>*{margin-right:0!important}[class*=nat-sm-vertical][class*=nat-sm-gap]>*{margin-bottom:0!important}}@media screen and (min-width: 960px){.nat-md-vertical{display:flex;flex-direction:column}.nat-md-vertical.nat-md-top{justify-content:flex-start}.nat-md-vertical.nat-md-bottom{justify-content:flex-end}.nat-md-vertical.nat-md-left{align-items:flex-start}.nat-md-vertical.nat-md-right{align-items:flex-end}.nat-md-vertical.nat-md-align{align-items:center}.nat-md-vertical.nat-md-distribute{justify-content:space-between}.nat-md-vertical>.nat-md-expand{flex:1 1 .000000001px}.nat-md-vertical>.nat-md-expand-25{max-height:25%}.nat-md-vertical>.nat-md-expand-33{max-height:33%}.nat-md-vertical>.nat-md-expand-50{max-height:50%}.nat-md-vertical>.nat-md-expand-66{max-height:66%}.nat-md-vertical>.nat-md-expand-75{max-height:75%}.nat-md-horizontal{display:flex;flex-direction:row}.nat-md-horizontal.nat-md-top{align-items:flex-start}.nat-md-horizontal.nat-md-bottom{align-items:flex-end}.nat-md-horizontal.nat-md-align{align-items:center}.nat-md-horizontal.nat-md-left{justify-content:flex-start}.nat-md-horizontal.nat-md-right{justify-content:flex-end}.nat-md-horizontal.nat-md-distribute{justify-content:space-between}.nat-md-horizontal>.nat-md-expand{flex:1 1 .000000001px}.nat-md-horizontal>.nat-md-expand-25{max-width:25%}.nat-md-horizontal>.nat-md-expand-33{max-width:33%}.nat-md-horizontal>.nat-md-expand-50{max-width:50%}.nat-md-horizontal>.nat-md-expand-66{max-width:66%}.nat-md-horizontal>.nat-md-expand-75{max-width:75%}.nat-md-gap{gap:var(--natural-default-spacing)}.nat-md-gap-horizontal{column-gap:var(--natural-default-spacing)}.nat-md-gap-vertical{row-gap:var(--natural-default-spacing)}.nat-md-gap-0{gap:0px}.nat-md-gap-horizontal-0{column-gap:0px}.nat-md-gap-vertical-0{row-gap:0px}.nat-md-gap-5{gap:5px}.nat-md-gap-horizontal-5{column-gap:5px}.nat-md-gap-vertical-5{row-gap:5px}.nat-md-gap-10{gap:10px}.nat-md-gap-horizontal-10{column-gap:10px}.nat-md-gap-vertical-10{row-gap:10px}.nat-md-gap-15{gap:15px}.nat-md-gap-horizontal-15{column-gap:15px}.nat-md-gap-vertical-15{row-gap:15px}.nat-md-gap-20{gap:20px}.nat-md-gap-horizontal-20{column-gap:20px}.nat-md-gap-vertical-20{row-gap:20px}.nat-md-gap-30{gap:30px}.nat-md-gap-horizontal-30{column-gap:30px}.nat-md-gap-vertical-30{row-gap:30px}.nat-md-expand{flex:1 1 .000000001px}[class*=nat-md-horizontal][class*=nat-md-gap]>*{margin-right:0!important}[class*=nat-md-vertical][class*=nat-md-gap]>*{margin-bottom:0!important}}@media screen and (min-width: 1280px){.nat-lg-vertical{display:flex;flex-direction:column}.nat-lg-vertical.nat-lg-top{justify-content:flex-start}.nat-lg-vertical.nat-lg-bottom{justify-content:flex-end}.nat-lg-vertical.nat-lg-left{align-items:flex-start}.nat-lg-vertical.nat-lg-right{align-items:flex-end}.nat-lg-vertical.nat-lg-align{align-items:center}.nat-lg-vertical.nat-lg-distribute{justify-content:space-between}.nat-lg-vertical>.nat-lg-expand{flex:1 1 .000000001px}.nat-lg-vertical>.nat-lg-expand-25{max-height:25%}.nat-lg-vertical>.nat-lg-expand-33{max-height:33%}.nat-lg-vertical>.nat-lg-expand-50{max-height:50%}.nat-lg-vertical>.nat-lg-expand-66{max-height:66%}.nat-lg-vertical>.nat-lg-expand-75{max-height:75%}.nat-lg-horizontal{display:flex;flex-direction:row}.nat-lg-horizontal.nat-lg-top{align-items:flex-start}.nat-lg-horizontal.nat-lg-bottom{align-items:flex-end}.nat-lg-horizontal.nat-lg-align{align-items:center}.nat-lg-horizontal.nat-lg-left{justify-content:flex-start}.nat-lg-horizontal.nat-lg-right{justify-content:flex-end}.nat-lg-horizontal.nat-lg-distribute{justify-content:space-between}.nat-lg-horizontal>.nat-lg-expand{flex:1 1 .000000001px}.nat-lg-horizontal>.nat-lg-expand-25{max-width:25%}.nat-lg-horizontal>.nat-lg-expand-33{max-width:33%}.nat-lg-horizontal>.nat-lg-expand-50{max-width:50%}.nat-lg-horizontal>.nat-lg-expand-66{max-width:66%}.nat-lg-horizontal>.nat-lg-expand-75{max-width:75%}.nat-lg-gap{gap:var(--natural-default-spacing)}.nat-lg-gap-horizontal{column-gap:var(--natural-default-spacing)}.nat-lg-gap-vertical{row-gap:var(--natural-default-spacing)}.nat-lg-gap-0{gap:0px}.nat-lg-gap-horizontal-0{column-gap:0px}.nat-lg-gap-vertical-0{row-gap:0px}.nat-lg-gap-5{gap:5px}.nat-lg-gap-horizontal-5{column-gap:5px}.nat-lg-gap-vertical-5{row-gap:5px}.nat-lg-gap-10{gap:10px}.nat-lg-gap-horizontal-10{column-gap:10px}.nat-lg-gap-vertical-10{row-gap:10px}.nat-lg-gap-15{gap:15px}.nat-lg-gap-horizontal-15{column-gap:15px}.nat-lg-gap-vertical-15{row-gap:15px}.nat-lg-gap-20{gap:20px}.nat-lg-gap-horizontal-20{column-gap:20px}.nat-lg-gap-vertical-20{row-gap:20px}.nat-lg-gap-30{gap:30px}.nat-lg-gap-horizontal-30{column-gap:30px}.nat-lg-gap-vertical-30{row-gap:30px}.nat-lg-expand{flex:1 1 .000000001px}[class*=nat-lg-horizontal][class*=nat-lg-gap]>*{margin-right:0!important}[class*=nat-lg-vertical][class*=nat-lg-gap]>*{margin-bottom:0!important}}@media screen and (min-width: 1920px){.nat-xl-vertical{display:flex;flex-direction:column}.nat-xl-vertical.nat-xl-top{justify-content:flex-start}.nat-xl-vertical.nat-xl-bottom{justify-content:flex-end}.nat-xl-vertical.nat-xl-left{align-items:flex-start}.nat-xl-vertical.nat-xl-right{align-items:flex-end}.nat-xl-vertical.nat-xl-align{align-items:center}.nat-xl-vertical.nat-xl-distribute{justify-content:space-between}.nat-xl-vertical>.nat-xl-expand{flex:1 1 .000000001px}.nat-xl-vertical>.nat-xl-expand-25{max-height:25%}.nat-xl-vertical>.nat-xl-expand-33{max-height:33%}.nat-xl-vertical>.nat-xl-expand-50{max-height:50%}.nat-xl-vertical>.nat-xl-expand-66{max-height:66%}.nat-xl-vertical>.nat-xl-expand-75{max-height:75%}.nat-xl-horizontal{display:flex;flex-direction:row}.nat-xl-horizontal.nat-xl-top{align-items:flex-start}.nat-xl-horizontal.nat-xl-bottom{align-items:flex-end}.nat-xl-horizontal.nat-xl-align{align-items:center}.nat-xl-horizontal.nat-xl-left{justify-content:flex-start}.nat-xl-horizontal.nat-xl-right{justify-content:flex-end}.nat-xl-horizontal.nat-xl-distribute{justify-content:space-between}.nat-xl-horizontal>.nat-xl-expand{flex:1 1 .000000001px}.nat-xl-horizontal>.nat-xl-expand-25{max-width:25%}.nat-xl-horizontal>.nat-xl-expand-33{max-width:33%}.nat-xl-horizontal>.nat-xl-expand-50{max-width:50%}.nat-xl-horizontal>.nat-xl-expand-66{max-width:66%}.nat-xl-horizontal>.nat-xl-expand-75{max-width:75%}.nat-xl-gap{gap:var(--natural-default-spacing)}.nat-xl-gap-horizontal{column-gap:var(--natural-default-spacing)}.nat-xl-gap-vertical{row-gap:var(--natural-default-spacing)}.nat-xl-gap-0{gap:0px}.nat-xl-gap-horizontal-0{column-gap:0px}.nat-xl-gap-vertical-0{row-gap:0px}.nat-xl-gap-5{gap:5px}.nat-xl-gap-horizontal-5{column-gap:5px}.nat-xl-gap-vertical-5{row-gap:5px}.nat-xl-gap-10{gap:10px}.nat-xl-gap-horizontal-10{column-gap:10px}.nat-xl-gap-vertical-10{row-gap:10px}.nat-xl-gap-15{gap:15px}.nat-xl-gap-horizontal-15{column-gap:15px}.nat-xl-gap-vertical-15{row-gap:15px}.nat-xl-gap-20{gap:20px}.nat-xl-gap-horizontal-20{column-gap:20px}.nat-xl-gap-vertical-20{row-gap:20px}.nat-xl-gap-30{gap:30px}.nat-xl-gap-horizontal-30{column-gap:30px}.nat-xl-gap-vertical-30{row-gap:30px}.nat-xl-expand{flex:1 1 .000000001px}[class*=nat-xl-horizontal][class*=nat-xl-gap]>*{margin-right:0!important}[class*=nat-xl-vertical][class*=nat-xl-gap]>*{margin-bottom:0!important}}.nat-hide{display:none!important}@media screen and (min-width: 600px){.nat-sm-hide{display:none!important}}@media screen and (max-width: 599.8px){.nat-sm-show{display:none!important}}@media screen and (min-width: 960px){.nat-md-hide{display:none!important}}@media screen and (max-width: 959.8px){.nat-md-show{display:none!important}}@media screen and (min-width: 1280px){.nat-lg-hide{display:none!important}}@media screen and (max-width: 1279.8px){.nat-lg-show{display:none!important}}@media screen and (min-width: 1920px){.nat-xl-hide{display:none!important}}@media screen and (max-width: 1919.8px){.nat-xl-show{display:none!important}}@media screen and (min-width: 600px) and (max-width: 959.8px){.nat-sm-only-hide{display:none}}@media screen and (min-width: 960px) and (max-width: 1279.8px){.nat-md-only-hide{display:none}}@media screen and (min-width: 1280px) and (max-width: 1919.8px){.nat-lg-only-hide{display:none}}html{--natural-default-spacing: 20px}